/* Approved manuscript materials. Shared source: shared/styles/manuscript-surfaces.css. */
:root:is([data-material=herbier],[data-material=velin]){--manuscript-paper:#f4eddd;--manuscript-ground:#e2d8c3;--manuscript-ink:#41372e;--manuscript-muted:#786b59;--manuscript-accent:#967747;--manuscript-botanic:#778573;--manuscript-line:#a695744d;--manuscript-title:Palatino Linotype,Book Antiqua,Georgia,serif;--manuscript-radius:5px;--manuscript-shadow:0 8px 28px #58432713;--manuscript-grain:repeating-linear-gradient(3deg,#8a704003 0 1px,transparent 1px 4px);}
:root[data-material=herbier]{--manuscript-paper:#f1e7d0;--manuscript-ground:#ded6bd;--manuscript-ink:#424436;--manuscript-muted:#74775f;--manuscript-accent:#9b705c;--manuscript-botanic:#71886d;--manuscript-line:#85917155;--manuscript-title:'Segoe Print','Bradley Hand','Comic Sans MS',cursive;--manuscript-radius:3px 7px 4px 9px;--manuscript-shadow:0 3px 12px #63502b0b;--manuscript-grain:repeating-linear-gradient(1deg,#82663806 0 1px,transparent 1px 5px);}
html:is([data-material=herbier],[data-material=velin]),html:is([data-material=herbier],[data-material=velin]) .portal-edition{color-scheme:light;--bg:var(--manuscript-ground);--panel:var(--manuscript-paper);--panel-raised:#fbf6ea;--field:#ede4d1;--text:var(--manuscript-ink);--ink:var(--manuscript-ink);--muted:var(--manuscript-muted);--line:var(--manuscript-line);--shadow:#59432220;--chrome:#f4edddf2;--gold:var(--manuscript-accent);--violet:var(--manuscript-botanic);--edition-serif:var(--manuscript-title);--edition-paper:var(--manuscript-paper);--edition-ink:var(--manuscript-ink);--edition-paper-muted:var(--manuscript-muted);--edition-pool:#b0ae94;--edition-pool-secondary:#c5b08a;--edition-frame:var(--manuscript-line);--edition-grain:var(--manuscript-grain);--edition-ink-wash:.2;--edition-contours:.03;--edition-veil:#fffaf02b;--radius:var(--manuscript-radius);--ja:var(--manuscript-accent);--vio:var(--manuscript-botanic);--ambient-base:var(--manuscript-paper);--ambient-canvas:var(--manuscript-ground);--document-base:var(--manuscript-paper);--ambient-line:var(--manuscript-line);--ambient-glass:var(--manuscript-grain),#f4edddd9;--ambient-shadow:var(--manuscript-shadow);--game-radius:var(--manuscript-radius);--game-control-radius:4px;--game-line:var(--manuscript-line);--game-muted:var(--manuscript-muted);--game-control-bg:#f7f0e1;--game-panel-bg:var(--manuscript-paper);--game-glass:linear-gradient(120deg,#b7bc9b18,#ffffff28);--game-inset:inset 0 1px #fff9;--ui-text:var(--manuscript-ink);--ui-card-base:var(--manuscript-paper);}
html:is([data-material=herbier],[data-material=velin]) body{background:var(--manuscript-grain),var(--manuscript-ground);color:var(--manuscript-ink);}
html:is([data-material=herbier],[data-material=velin]) .portal-edition :is(h1,h2,h3),html:is([data-material=herbier],[data-material=velin]) .journal-app .journal-page .journal-title{font-family:var(--manuscript-title)!important;color:var(--manuscript-ink)!important;text-shadow:none;}
html:is([data-material=herbier],[data-material=velin]) .portal-edition :is(.world-hero,.gateway-card,.management-panel,.campaign-card,.world-card,.auth-card){border-radius:var(--manuscript-radius);box-shadow:var(--manuscript-shadow);}
html:is([data-material=herbier],[data-material=velin]) .portal-edition .site-header{background:var(--manuscript-grain),var(--manuscript-paper);box-shadow:0 2px 8px #58432710;border-block:1px solid var(--manuscript-line);}
html:is([data-material=herbier],[data-material=velin]) .portal-edition .main-nav a.active{background:#bcb39320;box-shadow:inset 0 -2px var(--manuscript-accent);border-color:transparent;}
html:is([data-material=herbier],[data-material=velin]) .portal-edition .portal-scene{background:var(--manuscript-grain),radial-gradient(ellipse at 70% 60%,#b0bca355,transparent 70%),var(--manuscript-paper);}
html:is([data-material=herbier],[data-material=velin]) .portal-edition .portal-scene-symbol{color:var(--manuscript-botanic);opacity:.65;}
html:is([data-material=herbier],[data-material=velin]) .portal-edition .portal-scene-image{filter:sepia(.18) saturate(.7);}
html:is([data-material=herbier],[data-material=velin]) body .shell-navigation,html:is([data-material=herbier],[data-material=velin]) body #leftHud>.hud-section,html:is([data-material=herbier],[data-material=velin]) body :is(.map-sidebar,.journal-sidebar,.scene-column,.codex-header){border-radius:var(--manuscript-radius)!important;background:var(--ambient-glass)!important;box-shadow:var(--manuscript-shadow)!important;border-color:var(--manuscript-line)!important;backdrop-filter:none;}
html:is([data-material=herbier],[data-material=velin]) body .journal-app .journal-page{border-radius:var(--manuscript-radius)!important;box-shadow:var(--manuscript-shadow)!important;}
html:is([data-material=herbier],[data-material=velin]) body .journal-app .journal-editor{font-family:Georgia,serif;}
html:is([data-material=herbier],[data-material=velin]) .app .shell-navigation .tab{color:var(--manuscript-ink)!important;background:#f6eedf!important;box-shadow:none!important;border-color:transparent!important;}
html:is([data-material=herbier],[data-material=velin]) .app .shell-navigation .tab[aria-selected=true]{background:#bbc09b33!important;box-shadow:inset 0 -2px var(--manuscript-accent)!important;}
html[data-material=herbier] .portal-edition :is(.management-panel,.gateway-card,.auth-card){border-inline-color:transparent;border-top-color:transparent;border-bottom:1px solid var(--manuscript-line);}
html[data-material=herbier] .portal-edition :is(h1,h2),html[data-material=herbier] .journal-title{text-decoration-line:underline;text-decoration-color:#93a07b70;text-decoration-thickness:1px;text-underline-offset:8px;}
html[data-material=herbier] .portal-page:before,html[data-material=herbier] .portal-page:after{border:0;}
html[data-material=herbier] .portal-edition .edition-card-content{background:linear-gradient(175deg,#f7eed9,#e7e4ca);}
html[data-material=herbier] .portal-edition .edition-card-kicker{color:#697852;}

html[data-material=herbier] .portal-scene-symbol{font-size:0!important;}
html[data-material=herbier] .portal-scene-symbol::after{content:"";width:100px;height:110px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 120' fill='none' stroke='black' stroke-width='1.2'%3E%3Cpath d='M49 110Q56 65 48 10M51 89Q17 86 20 60Q47 65 51 89ZM52 67Q81 65 83 41Q55 43 52 67ZM50 44Q29 42 29 22Q47 27 50 44ZM49 25Q65 17 58 4Q46 12 49 25Z'/%3E%3C/svg%3E") center/contain no-repeat;}
html[data-material=herbier] body #leftHud>.hud-section{border-inline-color:transparent!important;border-top-color:transparent!important;box-shadow:none!important;}
html[data-material=herbier] body .journal-app .journal-sidebar{border:0!important;border-right:1px solid var(--manuscript-line)!important;box-shadow:none!important;background:transparent!important;}
html:is([data-material=herbier],[data-material=velin]) .portal-edition .edition-card-content>strong,html:is([data-material=herbier],[data-material=velin]) .portal-edition .world-card>span>strong{font-family:var(--manuscript-title);color:var(--manuscript-ink);}

/* Second study: nocturnal vellum, mineral slate and copper instead of pale botany. */
:root[data-material=velin]{--manuscript-paper:#232e36;--manuscript-ground:#111c24;--manuscript-ink:#eee3cd;--manuscript-muted:#b8b5aa;--manuscript-accent:#c99b71;--manuscript-botanic:#91b3b4;--manuscript-line:#acc4c22b;--manuscript-title:Georgia,serif;--manuscript-radius:2px;--manuscript-shadow:0 8px 28px #0003;--manuscript-grain:none;}
html[data-material=velin],html[data-material=velin] .portal-edition{color-scheme:dark;--panel-raised:#2e3d47;--field:#19262f;--chrome:#1a2832;--edition-veil:#fff2;--ambient-glass:linear-gradient(125deg,#9fbab60b,transparent),#23313bed;--game-control-bg:#263943;--game-glass:linear-gradient(130deg,#d5b48009,#91b3b40b);--game-inset:inset 0 1px #c8d8da10;}
html[data-material=velin] .portal-edition .site-header{background:#17252eee;border-bottom:1px solid #c99b7140;}
html[data-material=velin] .app .shell-navigation .tab{background:#22313b!important;}
html[data-material=velin] .portal-edition .portal-scene{background:radial-gradient(ellipse at 70% 30%,#53757755,transparent 70%),#152630;}
html[data-material=velin] .portal-edition .portal-scene-symbol{color:#c99b71;}
html[data-material=velin] .portal-edition :is(h1,h2,h3){font-style:normal;letter-spacing:.025em;}
html[data-material=velin] .journal-app .journal-page{--document-base:#e6dcc5;}
html[data-material=velin] .journal-app .journal-page .journal-title{color:#39372f!important;}
html[data-material=herbier] .app :is(.quickbtn,.left-panel-toggle,.hud-section-toggle),html[data-material=herbier] .journal-app :is(.soft-btn,.mini-btn,.icon-btn,.journal-scope-btn){background:#ede8d8!important;color:#484e3d!important;border-color:#89937455!important;box-shadow:inset 0 1px #fff7!important;}
html:is([data-material=herbier],[data-material=velin]) .app .fear-vial-wrap,html:is([data-material=herbier],[data-material=velin]) .app #vialFrame{background:transparent!important;box-shadow:none!important;border:0!important;color-scheme:normal;}
html:is([data-material=herbier],[data-material=velin]):has(body.vial-embed),html:is([data-material=herbier],[data-material=velin]) body.vial-embed{background:transparent!important;color-scheme:normal;}
html:is([data-material=herbier],[data-material=velin]) body:not(.auth-locked):has(>.app){background:var(--manuscript-grain),var(--manuscript-ground)!important;}
html:is([data-material=herbier],[data-material=velin]) .app .tabs>.dock-right .quickbtn{width:26px!important;min-width:26px!important;height:28px!important;padding:4px!important;}
html:is([data-material=herbier],[data-material=velin]) .app .game-glyph{width:18px;height:18px;}
html:is([data-material=herbier],[data-material=velin])[data-auto-compact=true] .shell-navigation .tab .tab-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}
html:is([data-material=herbier],[data-material=velin])[data-auto-compact=true] .app .tabs .shell-navigation>.tab{width:32px!important;min-width:32px!important;padding:6px!important;gap:0!important;justify-content:center;}
html:is([data-material=herbier],[data-material=velin])[data-auto-compact=true] .app .context-summary #contextPseudo{display:none;}
html:is([data-material=herbier],[data-material=velin])[data-auto-compact=true] .app .context-summary{width:27px;padding:4px!important;box-sizing:border-box;}
html:is([data-material=herbier],[data-material=velin]) .app .shell-navigation .tab::before{width:18px;height:18px;}

/* Match embedding and embedded color schemes so transparent frames stay transparent. */
html[data-material=herbier] iframe,html[data-material=herbier]:has(body.vial-embed){color-scheme:light!important;}
html[data-material=velin] iframe,html[data-material=velin]:has(body.vial-embed){color-scheme:dark!important;}
html:is([data-material=herbier],[data-material=velin]) body.vial-embed{color-scheme:inherit!important;}
html[data-material=herbier] body .journal-app .journal-sidebar{background:#eee8d5aa!important;}