:root{color-scheme:dark;--forest:#152b22;--gold:#d9bf84}*{box-sizing:border-box}body{margin:0;background:#172a23;color:#e4e7d6;font:16px/1.6 Georgia,serif}.site-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 5%;border-bottom:1px solid #4b604b}.brand{font:bold 28px Georgia;letter-spacing:.08em}.site-header a{color:var(--gold);text-decoration:none}.heroes-main{max-width:1400px;margin:auto;padding:28px 5% 60px}.collection-header{display:flex;align-items:center;justify-content:space-between;gap:24px}.collection-header h1{font-size:2.7rem;line-height:1.15;margin:8px 0}.collection-header a,.heroes-main>a{color:#e0c68f}.eyebrow{font:600 10px/1.5 system-ui,sans-serif;letter-spacing:.18em;color:#b48c4b}.storage-note{font:13px/1.6 system-ui,sans-serif;max-width:760px;color:#c2cdb9}.collection-actions,.record-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:20px 0}button,.file-control{font:600 13px/1.4 system-ui,sans-serif;min-height:44px;cursor:pointer;border:1px solid #667855;border-radius:5px;padding:10px 15px;background:#455e38;color:#fff}button:hover{filter:brightness(1.12)}button:disabled{opacity:.55;cursor:default}.file-control{display:flex;gap:8px;align-items:center}.file-control input{max-width:210px;font-size:12px}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #ac8742;outline-offset:3px}.heroes-layout{display:grid;grid-template-columns:230px minmax(0,1fr);gap:26px;align-items:start}.heroes-layout aside h2{font-size:20px;margin:8px 0}.hero-list-row{width:100%;display:block;text-align:left;margin:0 0 10px;background:#20382d;color:#ebe7d4}.hero-list-row[aria-current=true]{border-color:#d3b56b;background:#415436}.hero-list-row small{display:block;font-size:11px;font-weight:400;margin-top:5px}.hero-parchment{min-width:0;padding:28px 32px;color:#302b21;background:radial-gradient(ellipse at 0 0,#e4d2a9,transparent 60%),linear-gradient(100deg,#f2e6c9,#eadbbc 70%,#dfcba0);box-shadow:0 5px 24px #0003;border:1px solid #a58c56;border-radius:8px}.hero-parchment h2,.hero-parchment h3{font-family:Georgia,serif;color:#5b3c20;line-height:1.3}.record-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:2px solid #ad8a4b}.record-heading h2{font-size:2rem;margin:6px 0;overflow-wrap:anywhere}.record-heading p{margin:6px 0 18px}.hero-seal{display:grid;place-items:center;flex-shrink:0;width:60px;height:60px;border:3px double #a7894d;border-radius:50%;font:32px Georgia;color:#7c5b2b}.hero-parchment a{color:#574525}.hero-parchment button{background:#ece0c0;border-color:#9c885f;color:#42351f}.record-actions{gap:7px}.record-actions button{font-size:12px;padding:9px}.record-actions span{flex:1 1 120px;font:600 12px system-ui,sans-serif}.editor-hint{font:12px/1.6 system-ui,sans-serif;color:#695e49}.hero-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.hero-parchment label{display:flex;flex-direction:column;gap:6px;font:600 12px/1.5 system-ui,sans-serif;min-width:0}.hero-parchment input,.hero-parchment select,.hero-parchment textarea{font:15px/1.5 Georgia,serif;padding:9px;color:#2d2a20;border:1px solid #ab9872;border-radius:3px;background:#fff9e78c;max-width:100%;width:100%;min-height:42px}.hero-parchment textarea{resize:vertical;min-height:80px}.hero-parchment input[type=checkbox]{width:22px;min-height:22px;margin:8px 0}.hero-parchment input[type=number]{max-width:100px}.hero-parchment input:focus,.hero-parchment select:focus,.hero-parchment textarea:focus{outline:2px solid #967334;outline-offset:1px}.hero-parchment input[readonly]{background:#e0d0ac;color:#645b49}.field-search{margin:20px 0}.health-panel{border:1px solid #ac9670;padding:16px;margin:20px 0}.health-panel .hero-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.record-section{margin-top:20px;border-top:1px solid #bca575;padding-top:12px}.record-section>summary{font:bold 19px/1.6 Georgia;min-height:44px;color:#624824;cursor:pointer}.training-section{border-top:1px solid #ccb98e;margin:12px 0;padding-top:8px}.training-section summary{min-height:44px;font:600 13px/1.6 system-ui,sans-serif;cursor:pointer}.training-section .hero-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.hero-grid+.training-section{margin-top:20px}.hero-bag-row{display:grid;grid-template-columns:minmax(0,1fr) 85px;gap:12px;padding:8px 0;border-bottom:1px solid #c8b58b}.hero-bag-row span{overflow-wrap:anywhere;font-size:14px}#heroCampaign label{margin:14px 0}#heroPortraitPreview{max-width:240px;width:100%;height:auto;margin-top:15px;border:1px solid #a88d59}pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}#heroesNotice{white-space:pre-wrap;color:#f2d7a6}#heroFields p{font-size:13px}.save-error{color:#8f281a} @media(max-width:850px){.heroes-layout{grid-template-columns:1fr}.heroes-layout aside #heroList{display:flex;flex-wrap:wrap;gap:8px}.hero-list-row{max-width:230px;flex:1 1 170px}.hero-parchment{padding:20px}.collection-header{display:block}.site-header{flex-wrap:wrap}.heroes-main{padding:20px 4%}}@media(max-width:480px){.hero-grid{grid-template-columns:1fr}.hero-parchment{padding:16px}.record-heading h2{font-size:1.7rem}.hero-seal{width:42px;height:42px;font-size:24px}.file-control{flex-wrap:wrap}.training-section .hero-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media print{body{background:#fff;color:#000}.site-header,.collection-header,.storage-note,.collection-actions,.heroes-layout aside,.record-actions,.field-search,#heroesNotice,#heroEmpty,footer,#pageLinkCopy{display:none!important}.heroes-layout{display:block}.heroes-main{padding:0;max-width:none}.hero-parchment{box-shadow:none;background:#fff;border:0;padding:0}.record-section,.health-panel{break-inside:avoid}.hero-parchment input,.hero-parchment textarea,.hero-parchment select{background:#fff;color:#000;border-color:#bbb}.hero-parchment button{display:none}}
.hero-story{max-width:760px;margin:28px auto}.hero-story .story-title{text-align:center;font-style:italic;font-weight:400;font-size:1.45rem;letter-spacing:.03em}.story-chapter{margin:28px 0}.story-chapter h3{font-size:1.18rem;color:#79552b}.chapter-prose{font-size:1.08rem;line-height:1.95}.chapter-prose>p:first-child:first-letter{font-size:1.6em;line-height:1;color:#735226}.hero-parchment .story-chapter button.field{display:inline;min-height:0;padding:0 1px;border:0;border-bottom:1px dotted #a48b5f;border-radius:0;background:transparent;color:inherit;font:inherit;text-align:left;white-space:normal;line-height:inherit;cursor:pointer}.hero-parchment .story-chapter button.field:hover{background:#d1b98650}.story-writing{font:12px/1.6 system-ui,sans-serif;color:#6b604b}.story-writing summary,.story-further summary{cursor:pointer;min-height:36px;display:list-item}.story-writing textarea{margin:8px 0}.story-writing button{font-size:12px}.story-further{font-size:.95em;margin:15px 0}#heroStoryDialog{width:min(560px,92vw);border:1px solid #a58c56;border-radius:8px;background:#efe1bf;color:#332c21;padding:24px}#heroStoryDialog::backdrop{background:#10231cc9}#heroStoryDialog select,#heroStoryDialog textarea{font:16px/1.5 Georgia,serif;width:100%;padding:10px;border:1px solid #a58c56;border-radius:4px;background:#fff8e9;color:#30281e}#heroStoryDialog button{background:#455e38}#heroStoryError{color:#8b2c20;font:13px/1.5 system-ui,sans-serif}@media(max-width:480px){.chapter-prose{font-size:1rem;line-height:1.85}.hero-story{margin:20px 0}.story-chapter{margin:20px 0}}@media print{.story-writing,.hero-story .editor-hint{display:none!important}.hero-parchment .story-chapter button.field{display:inline!important;border:0}.hero-story{max-width:none}}
.chapter-prose,.story-word{overflow-wrap:anywhere}

/* Parchment controls must use light native menus even inside the dark site theme. */
.hero-parchment,#heroStoryDialog{color-scheme:light}.hero-parchment select option,#heroStoryDialog select option{color:#30281e;background:#fff8e9}.hero-parchment .story-chapter button.field{border-bottom-color:transparent}.hero-parchment .story-chapter button.field:hover,.hero-parchment .story-chapter button.field:focus-visible{border-bottom:1px dotted #a48b5f}

/* Finished chronicle: one reading surface, with editing available on request. */
#heroPublishedPortrait{display:block;max-width:100%;max-height:560px;object-fit:contain;margin:30px auto;border:1px solid #a58c56;border-radius:3px}#heroPublishedPortrait[hidden]{display:none}.is-published{padding:38px 48px}.is-published .record-heading{padding-bottom:18px}.is-published .record-heading h2{font-size:clamp(2rem,5vw,3.2rem);font-weight:400}.is-published>.editor-hint,.is-published .hero-story>.editor-hint,.is-published #heroRetry,.is-published #heroDuplicate,.is-published #heroDelete{display:none}.is-published .hero-story{max-width:650px}.is-published .chapter-prose{font-size:1.14rem;line-height:2}.is-published .story-chapter{margin:40px 0}.is-published .story-chapter h3{font-variant:small-caps;letter-spacing:.04em;border-bottom:1px solid #bca575;padding-bottom:10px}.reading-stats{display:flex;flex-wrap:wrap;justify-content:center;gap:10px 25px;padding:18px 0;border-block:1px solid #bca575;font-variant:small-caps;letter-spacing:.06em;color:#624824}.reading-note{white-space:pre-wrap;overflow-wrap:anywhere}.is-published .record-actions{border-bottom:1px solid #bca575;padding-bottom:18px}.chapter-prose{overflow-wrap:anywhere}@media(max-width:600px){.is-published{padding:24px 18px}.is-published .chapter-prose{font-size:1.05rem;line-height:1.9}.is-published .hero-seal{display:none}}@media print{.is-published #heroMechanics{display:none!important}.is-published .story-writing{display:none!important}}

/* Only the disciplines this life carries. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.ability-editor{margin:24px 0}.ability-row{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(120px,1fr) auto;align-items:center;gap:8px;margin:8px 0}.ability-row select{font-size:14px}.ability-row button{font-size:12px;padding:8px;min-height:42px}.ability-help{margin-top:12px}.ability-help summary{font-size:13px;cursor:pointer;min-height:36px}.current-maximum{display:flex;align-items:center;gap:8px;font:16px Georgia,serif}.current-maximum input[type=number]{width:64px;min-width:0;max-width:64px;padding:7px}.current-maximum>span{white-space:nowrap}.compact-reserves{display:flex;flex-wrap:wrap;gap:10px 22px;font:14px/1.7 Georgia,serif}.compact-reserves>span{display:inline-flex;align-items:baseline;gap:9px}.compact-reserves strong{font-weight:400;color:#624824}.compact-counters{display:flex;flex-wrap:wrap;gap:12px 22px;margin-top:14px}.ability-chronicle{max-width:650px;margin:40px auto;border-top:1px solid #bca575;padding-top:20px}.ability-chronicle[hidden]{display:none}.ability-chronicle h3{font-variant:small-caps;letter-spacing:.04em}.ability-chronicle>p{font-style:italic;color:#695237}.chronicle-ability-group h4{font:600 10px/1.6 system-ui,sans-serif;text-transform:uppercase;letter-spacing:.16em;color:#79613c;margin:22px 0 8px}.chronicle-ability-group ul{list-style:none;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 30px}.chronicle-ability-group li{display:flex;align-items:baseline;justify-content:space-between;gap:12px;border-bottom:1px solid #bca57566;padding-bottom:5px}.chronicle-ability-group small{font-style:italic;color:#79613c;font-size:.85em}@media(max-width:600px){.ability-row{grid-template-columns:minmax(0,1fr) minmax(105px,.75fr)}.ability-row button{grid-column:2;justify-self:end;min-height:36px}.chronicle-ability-group ul{grid-template-columns:1fr}.health-panel{padding:12px}.health-panel .hero-grid{gap:8px}.current-maximum{gap:4px}.current-maximum input[type=number]{width:50px;padding:5px}}

.ability-row button{font-size:20px;padding:0;width:44px;min-height:44px;justify-self:end}.ability-row{grid-template-columns:minmax(0,1.5fr) minmax(120px,1fr) 44px}@media(max-width:600px){.ability-row{grid-template-columns:minmax(0,1fr) minmax(90px,.75fr) 44px;gap:6px}.ability-row button{grid-column:auto;width:44px;min-height:44px}.ability-row select{padding:8px 4px;font-size:13px}}

/* Editable details read as inked choices; a finished chronicle keeps the facts in bold. */
.hero-parchment:not(.is-published) .story-chapter button.field{display:inline;background:#263f33;color:#fff8e5;border:1px solid #526a51;border-radius:4px;padding:0 .22em;box-decoration-break:clone;-webkit-box-decoration-break:clone;font-weight:500;line-height:1.55;vertical-align:baseline;max-width:100%}.hero-parchment:not(.is-published) .story-chapter button.field:hover{background:#385540;color:#fff}.hero-parchment:not(.is-published) .story-chapter button.field:focus-visible{outline:3px solid #98712b;outline-offset:2px}.hero-parchment input:not([readonly]):not([disabled]),.hero-parchment select:not([disabled]),.hero-parchment textarea,#heroStoryDialog select,#heroStoryDialog textarea{background:#263f33;color:#fff8e5;border-color:#637956;color-scheme:dark}.hero-parchment input::placeholder,.hero-parchment textarea::placeholder,#heroStoryDialog textarea::placeholder{color:#c3cdbb}.hero-parchment select option,#heroStoryDialog select option{background:#263f33;color:#fff8e5}.is-published .chapter-prose .hero-fact{font-weight:700;color:inherit}.hero-parchment [readonly]{cursor:default}@media print{.hero-parchment .story-chapter button.field{background:transparent!important;color:#000!important;border:0!important;box-shadow:none!important}}

.hero-glance-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 18px}.hero-glance-grid>div{min-width:0}.hero-glance-grid dt{font:600 11px/1.5 system-ui,sans-serif;color:#79613c}.hero-glance-grid dd{margin:3px 0;overflow-wrap:anywhere}.hero-parchment .glossary-info{display:inline-grid;width:26px;min-width:26px;height:26px;min-height:26px;border-radius:50%;margin:0 4px;padding:0;background:transparent;color:#65471f;font:italic 15px Georgia,serif;vertical-align:baseline}.reference-controls{font:12px/1.8 system-ui,sans-serif}.glossary-popover p{white-space:pre-line}.development-entry{border-top:1px solid #c2ad81;padding:10px 0}.development-entry summary{cursor:pointer;font-size:15px;overflow-wrap:anywhere;min-height:36px}.development-body{display:grid;gap:14px;padding:12px 0}.development-body h5{margin:4px 0;color:#69502e;font-size:14px}.development-body p{margin:0}.development-body label{margin:0}.development-body textarea{width:100%}#heroDevelopmentFields>section>h4{color:#79552b;font-variant:small-caps;letter-spacing:.03em}#heroStoryDialog input{display:block;box-sizing:border-box;width:100%;padding:12px;background:#263f33;color:#fff8e5;border:1px solid #637956;border-radius:4px;font:16px Georgia,serif}#heroStoryDialog .record-actions button{min-height:44px}@media(max-width:600px){.hero-glance-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.development-body{gap:12px}}

.glossary-popover{overflow-wrap:anywhere}

#heroStoryDialog input{color-scheme:dark}

.hero-tools{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 26px}.hero-tools a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:9px 15px;border:1px solid #667855;border-radius:5px;background:#20382d;color:#e4e7d6;text-decoration:none;font:600 13px/1.4 system-ui,sans-serif}.hero-tools a:hover{background:#344b37}.hero-tools a[aria-current=page]{background:#455e38;border-color:#a7b77f;color:#fff}@media print{.hero-tools{display:none}}

/* Additional sheet details follow a single reading column. */
.hero-detail-list{display:flex;flex-direction:column;margin-top:12px}.hero-parchment .hero-detail-row{display:grid;grid-template-columns:minmax(145px,.8fr) minmax(0,1.4fr);align-items:start;gap:12px 24px;padding:14px 0;border-bottom:1px solid #bca57570}.hero-detail-row>span{padding-top:10px;overflow-wrap:anywhere}.hero-detail-row>input[type=checkbox]{justify-self:start}.hero-detail-row>input[type=number]{width:100px}.detail-list-heading{font:600 15px/1.5 Georgia,serif;color:#76512d;letter-spacing:.03em;margin:25px 0 4px;padding-bottom:8px;border-bottom:1px solid #bca575}.hero-detail-row textarea{min-height:68px}.hero-bag-row{align-items:center}.hero-bag-row>span{font-size:14px;line-height:1.5}.hero-bag-row label{font-size:10px;color:#695e49}@media(max-width:600px){.hero-parchment .hero-detail-row{grid-template-columns:minmax(0,1fr);gap:7px;padding:14px 0}.hero-detail-row>span{padding-top:0}.hero-bag-row{grid-template-columns:minmax(0,1fr) 72px;gap:10px}}

/* Existing token artwork beside its name in edit and reading views. */
.hero-token-label{display:flex;align-items:center;gap:12px;min-width:0}.hero-token-icon{width:48px;height:48px;object-fit:contain;flex:0 0 48px}.hero-token-list{list-style:none;padding:0;margin:10px 0}.hero-token-list li{display:flex;align-items:center;gap:12px;padding:9px 0;border-bottom:1px solid #bca57570}.hero-token-list li>span{flex:1;min-width:0;overflow-wrap:anywhere}.hero-token-list strong{white-space:nowrap;font-size:13px}.hero-token-label>span{min-width:0}@media(max-width:480px){.hero-token-icon{width:40px;height:40px;flex-basis:40px}.hero-token-label,.hero-token-list li{gap:8px}}

.item-record{padding:12px 0;border-bottom:1px solid #bca57580}.item-caption{display:flex;justify-content:space-between;gap:12px;align-items:center;font:600 12px/1.5 system-ui;color:#66492a;margin-bottom:7px}.training-gate{display:block;font:11px/1.5 system-ui;color:#6d624d;font-weight:400}.item-line{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.7fr);gap:10px;align-items:start}.item-line.has-qty{grid-template-columns:48px minmax(0,1fr) minmax(0,1.7fr)}.item-line.has-power{grid-template-columns:minmax(0,1fr) minmax(0,1.7fr) 64px}.hero-parchment .item-cell{display:flex;flex-direction:column;min-width:0;gap:3px}.item-cell>span:first-child{font:11px/1.5 system-ui;color:#695e49}.hero-parchment .item-cell input{min-width:0;width:100%;box-sizing:border-box;padding:7px;min-height:40px}.item-value{overflow-wrap:anywhere;font:15px/1.6 Georgia,serif}.item-extra{margin-top:7px;font-size:12px}.item-extra summary{cursor:pointer;color:#6d624d}.item-extra .item-cell{margin-top:8px}.hero-parchment input:disabled,.hero-parchment select:disabled{opacity:.65;cursor:not-allowed}@media(max-width:540px){.item-line,.item-line.has-qty,.item-line.has-power{gap:7px}.item-line.has-qty{grid-template-columns:42px minmax(0,1fr)}.item-line.has-qty .item-notes{grid-column:2}.item-line.has-power{grid-template-columns:minmax(0,1fr) 58px}.item-line.has-power .item-notes{grid-row:2;grid-column:1/-1}.item-line.has-power .item-power{grid-column:2;grid-row:1}.item-caption{align-items:flex-start}.item-cell>span:first-child{font-size:10px}}

.hero-parchment .training-gate.is-locked{color:#9d271d;font-weight:700}.hero-parchment [data-story-key]:disabled{color:#9d271d;border-color:#9d271d}.hero-token-quantity{font:600 14px/1.5 system-ui;white-space:nowrap;text-align:right}

.compact-row-section{margin:12px 0}.hero-parchment .row-add{min-height:36px;padding:5px 12px;margin:8px 0 12px;font-size:18px}.row-add span{font:12px system-ui;margin-left:4px}.tool-line,.note-heading{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:10px}.hero-note-row{padding:10px 0;border-bottom:1px solid #bca57570}.note-heading{grid-template-columns:120px minmax(0,1fr);margin-bottom:7px}.hero-parchment .hero-note-row textarea,.hero-parchment .development-body textarea{min-height:42px;resize:vertical}.hero-note-row label{margin:0}.hero-note-row textarea{width:100%}.hero-note-section{margin-bottom:20px}@media(max-width:480px){.note-heading{grid-template-columns:95px minmax(0,1fr)}.tool-line{grid-template-columns:minmax(0,1fr)}.hero-note-row input,.hero-note-row select{padding:7px;font-size:14px}}

.hero-fashion{margin-top:14px}.hero-fashion>summary{cursor:pointer;padding:10px 0}.fashion-other{margin:12px 0}.hero-injury label{display:block;margin:12px 0}.hero-injury select,.hero-injury textarea{display:block;width:100%;margin-top:6px}.hero-injury textarea{min-height:54px}.fashion-parts input{min-width:0}

/* Consistent playing-card portrait in editing, reading and print views. */
#heroPublishedPortrait,#heroPortraitPreview{width:150px;height:210px;max-width:100%;aspect-ratio:5/7;object-fit:cover;object-position:center;border:3px double #a58c56;border-radius:8px;background:#243d30;margin:0;flex:0 0 auto}#heroPortraitPreview{margin-top:14px}.record-heading>div:first-of-type{flex:1;min-width:0}.record-heading{padding-bottom:18px;align-items:center}#heroPublishedPortrait[hidden],#heroPortraitPreview[hidden]{display:none}@media(max-width:600px){.record-heading{flex-wrap:wrap;justify-content:flex-start}#heroPublishedPortrait{width:110px;height:154px}.record-heading>div:first-of-type{flex:1 1 130px}.record-heading .hero-seal{display:none}}@media print{#heroPublishedPortrait{width:125px;height:175px}}

.hero-unbound label{margin:14px 0}.hero-unbound>details>summary{cursor:pointer;min-height:44px;color:#624824}.unbound-roll-controls{display:flex;align-items:end;flex-wrap:wrap;gap:12px}.unbound-roll-controls label{flex:1 1 230px}.unbound-roll-controls button{margin-bottom:14px}.hero-unbound textarea{min-height:95px}

@media print{.hero-unbound>[data-unbound-editor]{display:none!important}}
/* Keep frequently used statistics beside the story; optional detail fields stay compact. */
#heroReadDetails{margin:22px 0 30px}#heroReadDetails>.record-section{margin-top:0}#heroReadDetails .hero-glance-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;border:1px solid #bca575}#heroReadDetails .hero-glance-grid>div{padding:10px;border-bottom:1px solid #c8b58b;min-width:0}#heroReadDetails .hero-glance-grid dt{font:600 11px/1.4 system-ui,sans-serif}#heroReadDetails .hero-glance-grid dd{margin:5px 0 0;font:19px/1.3 Georgia,serif}#heroReadDetails .health-panel{margin:12px 0;padding:12px}#heroReadDetails .health-panel h3{margin:0 0 10px}.portrait-controls{margin:12px 0 18px}.portrait-controls>summary{display:inline-block;border:1px solid #9c885f;border-radius:4px;padding:9px 14px;cursor:pointer}.portrait-controls label{margin-top:12px}.portrait-controls[open]{max-width:600px}.hero-travel-role{max-width:420px;margin:16px 0}.fashion-picker{margin:14px 0}.fashion-picker>summary{display:inline-block;padding:9px 14px;border:1px solid #9c885f;border-radius:4px;cursor:pointer}.fashion-picker label{margin-top:10px}#heroEarlierNotes{margin:20px 0}.hero-fashion{margin-top:0}@media(max-width:600px){#heroReadDetails .hero-glance-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media print{.portrait-controls{display:none!important}}
.hero-stat-training{display:flex;flex-wrap:wrap;gap:8px 20px;margin:12px 0}.hero-stat-training>div{display:flex;gap:8px;border-bottom:1px solid #c8b58b;padding:6px 0}.hero-stat-training dt{font-weight:600}.hero-stat-training dd{margin:0}#heroReadDetails .reference-controls{font-size:12px;margin:10px 0}
/* Compact creation sheet: explanations appear on hover/focus, not as extra paragraphs. */
.ability-heading{display:flex;align-items:center;gap:10px}.ability-heading h3{margin-right:0}.sheet-info{position:relative;display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border:1px solid #88774e;border-radius:50%;font:italic 15px Georgia;cursor:help}.sheet-info>[role=tooltip]{display:none;position:absolute;left:0;bottom:calc(100% + 8px);z-index:20;width:min(300px,70vw);padding:12px;background:#243e32;color:#fff5db;border:1px solid #a58c56;font:14px/1.6 Georgia;box-shadow:0 5px 20px #0005}.sheet-info:hover>[role=tooltip],.sheet-info:focus-within>[role=tooltip],.sheet-info:focus>[role=tooltip]{display:block}.sheet-info a{color:#f1d699}.natural-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 18px}.natural-appearance{margin:10px 0 20px}.natural-appearance h4{margin:0 0 14px}.bag-picker{max-width:420px;margin:20px 0}.compact-row-section h4 small{font:12px system-ui;font-weight:400}.hero-token-grid{list-style:none;padding:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;max-width:600px}.hero-token-grid li{min-width:0;text-align:center;border:1px solid #bca575;border-radius:6px;padding:8px 4px;background:#fff8e44d}.hero-token-grid .hero-token-icon{width:38px;height:38px;display:block;margin:0 auto 5px}.hero-token-grid li>span:last-child{display:block;font:11px/1.4 system-ui;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hero-token-grid li:focus{outline:2px solid #94743d}.token-list-details{margin:14px 0}#heroCreator{max-width:820px;margin:25px auto}#heroCreator progress{width:100%;height:6px;accent-color:#7b8b58}#heroCreator h2{font:32px/1.3 Georgia}.creator-top,.creator-nav{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}.creator-field{margin:18px 0}.creator-answer{display:flex;gap:10px;align-items:start;margin-top:6px}.creator-answer>input,.creator-answer>select,.creator-answer>textarea{flex:1;min-width:0}.creator-answer>button{flex:0 0 auto}.creator-nav{margin-top:24px;border-top:1px solid #bca575;padding-top:20px}.creator-restart{margin-top:24px;font-size:12px}.creator-bags{border:1px solid #bca575;padding:16px;margin:20px 0}.creator-bags label{display:flex;flex-direction:row;align-items:center;gap:10px}.creator-bags input{width:20px!important}.creator-review dl{display:grid;grid-template-columns:minmax(100px,1fr) 2fr;gap:8px}.creator-review dd{margin:0;overflow-wrap:anywhere}.creator-review section{margin:20px 0}#creatorStatus{color:#78552d;line-height:1.5}#heroCreator[hidden]{display:none}@media(max-width:480px){.natural-grid{grid-template-columns:1fr}.hero-token-grid{gap:5px}.hero-token-grid li{padding:6px 2px}.hero-token-grid .hero-token-icon{width:30px;height:30px}.hero-token-grid li>span:last-child{font-size:10px}.creator-answer{flex-wrap:wrap}.creator-answer>textarea{flex-basis:100%}.creator-answer>button{margin-left:auto}.creator-top>button{font-size:12px}#heroCreator{padding:18px}}
#heroCollectionLayout[hidden]{display:none}.is-creating .collection-actions{display:none}.creator-inventory{margin-top:22px}.creator-inventory .item-line{align-items:start}

.creator-lore{margin:1.25rem 0;padding:.85rem 1rem;border-left:3px solid var(--gold,#a18448);background:rgba(119,100,57,.08);font-size:.95rem}.creator-lore p{margin:0 0 .6rem;line-height:1.5}.creator-lore a{font-size:.85rem}.creator-origin-summary dl{display:grid;grid-template-columns:auto 1fr;gap:.4rem 1rem}.creator-origin-summary dd{margin:0}

.creator-origin-banner{display:block;width:100%;height:auto;max-height:230px;object-fit:contain;object-position:center;margin:0 0 .85rem;border-radius:5px}.creator-lore:has(.creator-origin-banner){border-left:0;padding:0 0 .85rem;background:transparent}.creator-lore:has(.creator-origin-banner) p{margin:.5rem 0}

/* Guided creation: compact answers, readable labels and optional book help. */
#heroCreator .creator-label-row{position:relative;display:flex;align-items:center;gap:10px;min-height:32px}
#heroCreator .creator-label-row>label{font:700 18px/1.4 Georgia,serif;color:#513a20}
#heroCreator .creator-info{display:inline-flex;align-items:center;justify-content:center;flex:0 0 28px;width:28px;min-height:28px;padding:0;border-radius:50%;font:italic bold 16px Georgia;background:transparent}
.creator-tooltip{position:absolute;left:0;top:calc(100% - 1px);z-index:40;width:min(390px,100%);padding:16px;background:#243e32;color:#fff5db;border:1px solid #b89a60;border-radius:6px;box-shadow:0 8px 24px #0005;font:15px/1.5 Georgia;overflow-wrap:anywhere}
.creator-tooltip[hidden]{display:none}.creator-tooltip p{margin:8px 0 12px}.hero-parchment .creator-tooltip a{color:#f1d699;font:13px/1.5 system-ui;text-decoration:underline}.creator-help-links{display:flex;flex-wrap:wrap;gap:8px 16px}
#heroCreator .creator-answer{align-items:flex-start}#heroCreator .creator-answer>input,#heroCreator .creator-answer>select{height:44px;min-height:44px;padding:9px}
#heroCreator .creator-short-age .creator-answer>input{max-width:125px}#heroCreator .creator-short-answer .creator-answer>input{max-width:240px}
.creator-pathway-row{display:grid;grid-template-columns:1fr 1fr;gap:20px;padding:4px 0;border-bottom:1px solid #bca575}.creator-pathway-row .creator-field{min-width:0}.creator-pathway-row .creator-answer{flex-wrap:nowrap}.creator-pathway-row .creator-answer>select{flex-basis:auto}.creator-pathway-row .creator-answer>button{margin-left:auto}
@media(max-width:600px){.creator-pathway-row{grid-template-columns:1fr;gap:0}.creator-pathway-row .creator-field{margin:12px 0}.creator-pathway-row .creator-answer{flex-wrap:nowrap}.creator-pathway-row .creator-answer>select{flex-basis:auto}#heroCreator .creator-answer>input{flex-basis:auto}#heroCreator .creator-label-row>label{font-size:18px}}

.creator-choice-note{font:15px/1.5 Georgia,serif;color:#574525;margin:8px 0 0;max-width:62ch}.creator-tooltip dl{margin:10px 0}.creator-tooltip dt{font-weight:700}.creator-tooltip dd{margin:0 0 8px}

.creator-tooltip{max-height:min(65vh,460px);overflow:auto}
.creator-group-label{font:700 18px/1.4 Georgia,serif;color:#513a20}.creator-sense-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 18px;margin:12px 0}.creator-sense-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:50px;border-bottom:1px solid #bca575;padding:5px 0}#heroCreator .sense-check{display:flex;flex-direction:row;align-items:center;gap:8px;font:600 16px Georgia;flex-shrink:0}#heroCreator .sense-check input{accent-color:#314f3e;margin:0;width:20px;min-height:20px;height:20px}#heroCreator .creator-sense-row select{width:135px;min-width:0;font-size:14px}.sense-unavailable{font:13px/1.4 system-ui;color:#74654b}.sense-editor-footer{display:flex;justify-content:space-between;align-items:center;gap:16px}.sense-editor-footer p{font:13px/1.5 system-ui}.creator-homeland-banner{margin:0 0 16px}.creator-homeland-banner img{display:block;width:100%;aspect-ratio:2.5;object-fit:cover;object-position:center;border-radius:5px}.creator-homeland-banner figcaption{font:600 13px/1.5 system-ui;margin-top:7px}.creator-lore:has(.creator-homeland-banner){border-left:0;padding:0 0 12px;background:transparent}@media(max-width:680px){.creator-sense-grid{grid-template-columns:1fr}.creator-sense-row{gap:20px}}

.creator-token-badges{display:inline-flex;gap:3px;align-items:center;flex-shrink:0}.creator-token-icon{display:block;width:26px;height:26px;object-fit:contain}.creator-label-row{flex-wrap:wrap}.creator-tooltip{white-space:pre-line}.creator-legacy-group{border-top:1px solid #bca575;margin:16px 0;padding:12px 0}.creator-legacy-group>summary{font:bold 20px/1.5 Georgia;color:#5b3c20;cursor:pointer;min-height:44px}.creator-fashion-preset{padding:16px;border:1px solid #ad9564;border-radius:5px;margin:12px 0 22px}.creator-fashion-preset h3{margin-top:0}.creator-preset-options{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:12px 0}.creator-fashion-preset label{font-size:15px}.creator-field input[readonly]{background:#e4d4ae;color:#4e4028;border-style:dashed}@media(max-width:480px){.creator-preset-options{grid-template-columns:1fr}.creator-token-icon{width:24px;height:24px}}
