/* Aetherhand: cut strokes, living curves, cold light held inside aged brass. */
.aether-glyph{width:1em;height:1.1em;display:inline-block;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.aether-number{display:inline-flex;align-items:center;vertical-align:middle;white-space:nowrap;color:inherit;gap:1px;line-height:1;min-width:1em;justify-content:center}
.aether-seal{--sigil-light:#9ae8e0;display:inline-grid;place-items:center;flex:0 0 38px;width:38px;height:42px;vertical-align:middle;border:1px solid #a58b55;border-radius:12px 4px 12px 4px;background:linear-gradient(135deg,#304444,#112126 60%,#253536);box-shadow:inset 0 0 0 3px #122229,inset 0 0 0 4px #7b70454f,0 2px 4px #16140b22;color:var(--sigil-light);margin-right:9px;transform:none}
.aether-seal svg{width:27px;height:30px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 2px color-mix(in srgb,var(--sigil-light) 55%,transparent))}
.recovered-sheet .card-title .icon:has(.aether-seal),.recovered-sheet .ability-grimoire-sigil:has(.aether-seal){width:auto;height:auto;display:inline-flex;border:0;background:none;box-shadow:none;transform:none;padding:0;overflow:visible;color:inherit}
.recovered-sheet .card-title .icon:has(.aether-seal):before,.recovered-sheet .card-title .icon:has(.aether-seal):after{display:none}
.recovered-sheet .card-title .icon .aether-seal{margin-right:0}
.recovered-sheet .card-title{min-height:42px;gap:10px;align-items:center}
.recovered-sheet .card{border-top:2px solid color-mix(in srgb,var(--panel-light,#d5c6a5) 40%,#8b754f);box-shadow:inset 0 2px 0 color-mix(in srgb,var(--panel-light,#d5c6a5) 18%,transparent),0 3px 12px #51321a10}
.recovered-sheet .page:before{border-image:none;border-top-color:#98d8d1;border-right-color:#bda4cf;border-bottom-color:#cdad73;border-left-color:#94b9a6;box-shadow:inset 0 0 20px #9cb6aa0a}
.recovered-sheet .page-number{font-size:26px;height:auto;min-width:30px}
.recovered-sheet .trial-check .aether-number{width:auto;min-height:0;border:0;box-shadow:none;background:none;color:inherit}
.recovered-sheet .trial-check .aether-glyph{width:24px;height:29px}
.recovered-sheet .knack-grid .num .aether-number{font-size:23px}
.recovered-sheet .folio-index .aether-number{font-size:23px}
.recovered-sheet .tier-tabs .aether-number{font-size:22px}
.aether-list{list-style:none!important;padding-left:2.8em!important}
.aether-list>li{position:relative;min-height:2em;margin-bottom:1em}
.aether-list-marker{position:absolute;right:calc(100% + .65em);top:0;font-size:24px;color:#496762;line-height:1.2}
.aether-list-marker .aether-number{font-size:24px}
.rulebook-manual h2 .aether-seal,.tier-block h3 .aether-seal{margin-bottom:3px}
.aether-key-link{display:block;text-align:center;font:italic 13px/1.5 Georgia,serif;margin:16px auto;color:#665239}
.aether-key-link a{color:inherit;text-underline-offset:3px}
.aether-specimen{background:#111d22;color:#f5ecd7;font:16px/1.65 Georgia,serif;margin:0;padding:32px 20px}
.script-wrap{max-width:1040px;margin:auto}.script-wrap a{color:#b7e8dc}.script-wrap h1{font-size:clamp(42px,7vw,82px);line-height:1;margin:18px 0}.script-wrap h2{font-size:28px;font-weight:400;margin:48px 0 16px}.script-wrap .lede{max-width:720px;color:#c8cebd;font-size:19px}.script-kicker{letter-spacing:.2em;text-transform:uppercase;font:12px system-ui;color:#cfb982}
.script-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(95px,1fr));gap:10px}.script-tile{display:grid;place-items:center;border:1px solid #526057;border-radius:10px 3px;background:linear-gradient(140deg,#263a3d,#142529);padding:18px 6px 12px;min-width:0}.script-tile>.aether-glyph{width:50px;height:58px;color:#a2f2df;filter:drop-shadow(0 0 3px #78e8d14a)}.script-tile b{font:14px system-ui;color:#ecdbb0;margin-top:12px}.script-tile small{font:11px system-ui;color:#b1bbb1;margin-top:6px;text-align:center}.script-family{margin:20px 0}.script-family>p{color:#c5b68f;margin:0 0 8px}.script-family .script-grid{grid-template-columns:repeat(3,minmax(0,1fr));max-width:460px}.script-letters{display:grid;grid-template-columns:1fr 1fr;gap:8px 28px}
.script-sigils{grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}.script-sigils .aether-seal{width:52px;height:58px;margin:0}.script-sigils .aether-seal svg{width:36px;height:40px}
.script-demo{margin:30px 0;padding:24px;border:1px solid #6d7862;border-radius:16px 4px;background:#1a2c30}.script-demo label{display:block;margin-bottom:8px}.script-demo input{box-sizing:border-box;width:100%;font:18px Georgia;padding:12px;background:#f4f0e4;color:#25342f;border:1px solid #a79362;border-radius:5px}.script-inscription{display:flex;flex-wrap:wrap;gap:5px;min-height:64px;padding-top:22px;color:#9aeedd}.script-inscription .aether-glyph{width:34px;height:42px}.aether-word-space{width:20px}
@media(max-width:600px){.script-letters{grid-template-columns:1fr}.aether-specimen{padding:24px 16px}.script-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.script-tile>.aether-glyph{width:36px;height:45px}.script-sigils{grid-template-columns:repeat(2,minmax(0,1fr))}.aether-list-marker{font-size:20px}}
@media print{.aether-seal{background:white!important;color:#243d3d!important;box-shadow:none!important;border-color:#675937}.aether-seal svg,.aether-glyph{filter:none!important}.aether-list-marker{color:#243d3d}.aether-specimen{background:white;color:#1d3030}.script-tile{background:white;border-color:#777;break-inside:avoid}.script-tile>.aether-glyph,.script-tile b,.script-tile small,.script-wrap .lede,.script-kicker,.script-family>p{color:#233}.script-demo{display:none}.script-letters{display:block}.script-family{break-inside:avoid}}
.recovered-sheet .card-title .icon .aether-seal svg,.recovered-sheet .ability-grimoire-sigil .aether-seal svg{width:27px;height:30px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.aether-inscription{display:flex;gap:3px;color:#a2e6d6;opacity:.85;margin-top:7px;line-height:1}.aether-inscription .aether-glyph{width:14px;height:17px}
.recovered-sheet .learning-book>summary .aether-seal{width:30px;height:34px;vertical-align:middle}
.recovered-sheet .ability-section-head h2 .aether-seal{width:30px;height:34px}
.recovered-sheet .prepared-card>summary>.aether-seal{vertical-align:middle}
@media print{.aether-inscription{color:#294f4c}}
.ability-ribbon .aether-number,.empty-ability>.micro .aether-number{font-size:19px}

/* Remove decorative layers over writing surfaces and headings entirely. */
.recovered-sheet .page::before,.recovered-sheet .page::after,
.recovered-sheet .card::before,.recovered-sheet .card::after,
.recovered-sheet .card-title::before,.recovered-sheet .card-title::after{content:none!important;display:none!important}
.recovered-sheet .card,.recovered-sheet .card:hover,.recovered-sheet .card:focus-within{box-shadow:none!important;filter:none!important;backdrop-filter:none!important;z-index:auto;transition:none}
.recovered-sheet .card-title{text-shadow:none}
.recovered-sheet .story-art{grid-template-columns:1fr}
/* Two-step creation, with no changes to the current hero until Finish. */
#creationDialog{box-sizing:border-box;width:min(800px,calc(100vw - 24px));max-width:800px;max-height:90dvh;overflow:auto;overscroll-behavior:contain;padding:24px;border:1px solid #987844;border-radius:14px;background:#faf4e6;color:#302b25;box-shadow:0 18px 60px #0007}
#creationDialog::backdrop{background:#101b22b8}
#creationDialog [hidden]{display:none!important}
.creation-header,.creation-footer{display:flex;align-items:center;justify-content:space-between;gap:12px}
#creationDialog h2{font:700 clamp(25px,4vw,34px)/1.15 Georgia,serif;margin:12px 0}
#creationIntro{font:16px/1.5 Georgia,serif;margin:0 0 20px}
#creationDialog button,#creationDialog select{min-height:44px;font-size:14px;padding:10px 14px}
#creationDialog button:focus-visible,#creationDialog select:focus-visible{outline:3px solid #17847e;outline-offset:3px}
.creation-classes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#creationDialog .creation-classes button{text-align:left;display:flex;flex-direction:column;justify-content:center;min-height:106px;padding:20px;gap:10px;background:#fffcf5;border:1px solid #c8b99b;border-left:4px solid var(--accent);color:#302b25}
.creation-classes small{text-transform:uppercase;letter-spacing:.1em;color:#655644}
.creation-classes strong{font:700 24px Georgia,serif;color:var(--accentDark)}
#creationAbilities>label{display:block;font-weight:bold;margin-bottom:6px}
#creationClassFilter{width:100%;border:1px solid #a39070;border-radius:6px;background:#fffaf1;color:#302b25}
#creationCount{font-weight:bold;margin:16px 0 10px}
.creation-choices{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}
.creation-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.creation-option{padding:16px;background:#fffcf5;border:1px solid #c8b99b;border-top:3px solid var(--accent);border-radius:8px;display:flex;flex-direction:column}
.creation-option h3{font:700 22px Georgia,serif;color:var(--accentDark);margin:0 0 8px}
.creation-option p{font:15px/1.5 Georgia,serif;margin:0 0 14px}
.creation-option .creation-cost{font:12px system-ui;color:#625645}
.creation-option button{margin-top:auto}
#creationDialog button[aria-pressed=true]{background:#d6e8df;border-color:#36705b}
.creation-footer{position:sticky;bottom:-24px;margin:22px -24px -24px;padding:16px 24px;background:#faf4e6;border-top:1px solid #d4c6aa}.creation-footer:has(#finishCreation[hidden]){display:none}
#finishCreation{margin-left:auto;background:#244e44;color:#fff}
.vault-welcome nav #createOwn{border:1px solid #a48e64;border-radius:6px;padding:10px 14px;background:#f4e8ce;color:#392a1e;font:inherit;cursor:pointer;min-height:44px}
@media(max-width:540px){#creationDialog{padding:18px}.creation-options{grid-template-columns:1fr}#creationDialog .creation-classes button{min-height:94px;padding:12px}.creation-classes strong{font-size:clamp(18px,5vw,22px)}.creation-footer{gap:8px;bottom:-18px;margin-inline:-18px;margin-bottom:-18px;padding:12px 18px}.creation-footer button{flex:1}}
@media print{#creationDialog{display:none!important}}

