/* Isolated alternate sheet. The original character workshop keeps its styling. */
body:has([data-workshop-layout="beyond"]) { --beyond-ink:#e8ece5; --beyond-muted:#9ca9a5; --beyond-accent:var(--beyond-theme-accent,#b7c779); --beyond-line:var(--beyond-divider); --beyond-panel:#242e2d; background:#e5e6dc; }
body:has([data-workshop-layout="beyond"]) .md-main { background:radial-gradient(ellipse at 7% 10%,#818d7a55,transparent 45%),radial-gradient(ellipse at 100% 20%,#51665940,transparent 48%),linear-gradient(135deg,#d9ddd0,#f4f3e9 65%); }
.md-content:has([data-workshop-layout="beyond"]) {max-width:1540px;width:100%;margin:0 auto;}
/* Material uses the primary sidebar as its menu drawer below 76.25em. */
@media(min-width:76.25em){body:has([data-workshop-layout="beyond"]) .md-sidebar {display:none;}}
body:has([data-workshop-layout="beyond"]) .md-grid {max-width:1600px;}
.md-content:has([data-workshop-layout="beyond"]) .md-content__inner {margin:18px 24px 40px;}
[data-workshop-layout="beyond"] {font-family:"Arial Narrow",Arial,sans-serif;color:var(--beyond-ink);font-size:13px; --codex-muted:var(--beyond-muted);--codex-line:#52604d;--codex-paper:#2a3432;--codex-gold:var(--beyond-accent);--md-default-bg-color:#202928;--md-default-fg-color:var(--beyond-ink);--md-typeset-a-color:#cfdda4;}
[data-workshop-layout="beyond"] [hidden] {display:none!important;}
[data-workshop-layout="beyond"] .beyond-original-summary {display:none;}
[data-workshop-layout="beyond"] .beyond-mast {display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:20px 24px;background:var(--beyond-surface);border:1px solid var(--beyond-border);border-radius:10px 10px 0 0;box-shadow:0 8px 30px #15231f17;}
[data-workshop-layout="beyond"] .beyond-identity {display:flex;align-items:center;gap:14px;flex:1 1 310px;min-width:0;}
[data-workshop-layout="beyond"] .beyond-portrait {display:grid;place-items:center;width:60px;height:66px;flex:none;border:1px solid var(--beyond-border);border-radius:4px 16px 4px 16px;background:linear-gradient(145deg,#536345,#25352c);font:30px Georgia,serif;color:#dbe3ad;}
[data-workshop-layout="beyond"] .beyond-eyebrow {font-size:9px!important;letter-spacing:1.8px;color:var(--beyond-accent);font-weight:700;margin:0 0 6px!important;}
[data-workshop-layout="beyond"] .summary-identity .eyebrow {display:none;}
[data-workshop-layout="beyond"] #sheet-name {font:28px Georgia,serif;color:#f5f3e7;margin:0 0 5px;line-height:1.1;}
[data-workshop-layout="beyond"] #sheet-description {font-size:11px;color:#b8c3ba;margin:0;max-width:460px;}
[data-workshop-layout="beyond"] .beyond-mast .roster-label {flex:0 1 190px;font-size:10px;}
[data-workshop-layout="beyond"] .beyond-mast .roster-label select {font-size:11px;padding:7px;}
[data-workshop-layout="beyond"] .beyond-classic {font-size:10px;color:#c1cbb7;}
[data-workshop-layout="beyond"] .beyond-rest {margin:0;gap:6px;}
[data-workshop-layout="beyond"] .sheet-button {font:600 11px Arial,sans-serif;min-height:32px;padding:7px 10px;background:var(--beyond-fill);border-color:var(--beyond-border);white-space:normal;}
[data-workshop-layout="beyond"] .sheet-button.primary {background:#647442;border-color:var(--beyond-border);color:#fff;}
[data-workshop-layout="beyond"] .beyond-management {position:relative;font-size:11px;}
[data-workshop-layout="beyond"] .beyond-management>summary {padding:8px 10px;border:1px solid var(--beyond-border);border-radius:4px;cursor:pointer;}
[data-workshop-layout="beyond"] .beyond-management[open] .sheet-toolbar {position:absolute;right:0;top:38px;width:350px;z-index:15;box-shadow:0 16px 36px #0008;}
[data-workshop-layout="beyond"] .sheet-status {color:#415039;font-size:11px;min-height:14px;margin:8px 2px!important;}
[data-workshop-layout="beyond"] .sheet-privacy {font-size:10px;color:#56624e;margin:4px 2px 12px;}
[data-workshop-layout="beyond"] .beyond-overview {display:grid;grid-template-columns:1.12fr 1fr;gap:16px;padding:17px 0 0;}
[data-workshop-layout="beyond"] .beyond-abilities {display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;}
[data-workshop-layout="beyond"] .beyond-vitals {display:grid;grid-template-columns:.85fr .9fr 1fr 2fr;gap:9px;}
[data-workshop-layout="beyond"] .beyond-button {font:inherit;cursor:pointer;color:inherit;}
[data-workshop-layout="beyond"] .beyond-ability,[data-workshop-layout="beyond"] .beyond-stat {background:linear-gradient(145deg,#35403b,#222d2a);border:1px solid var(--beyond-border);border-top:3px solid var(--beyond-border);border-radius:8px 8px 18px 8px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:6px;min-height:102px;padding:10px 7px;box-shadow:0 3px 0 color-mix(in srgb,var(--beyond-accent) 25%,transparent);}
[data-workshop-layout="beyond"] .beyond-stat-label {font-size:9px;letter-spacing:.6px;font-weight:700;text-transform:uppercase;color:#bcc6b6;}
[data-workshop-layout="beyond"] .beyond-ability strong,[data-workshop-layout="beyond"] .beyond-stat strong {font-size:27px;line-height:1.15;font-weight:600;color:#f7f7ed;}
[data-workshop-layout="beyond"] .beyond-score {border:1px solid var(--beyond-border);border-radius:20px;min-width:36px;padding:1px 7px;font-size:13px;color:#c9d4b6;background:var(--beyond-inset);}
[data-workshop-layout="beyond"] .beyond-stat-foot {font-size:9px;color:#afbaa7;}
[data-workshop-layout="beyond"] .beyond-inspiration[aria-pressed="true"] {background:#61723e;}
[data-workshop-layout="beyond"] .beyond-grid {display:grid;grid-template-columns:minmax(185px,.86fr) minmax(215px,.96fr) minmax(0,2.25fr);align-items:start;gap:16px;margin-top:12px;}
[data-workshop-layout="beyond"] .beyond-sidebar {display:grid;gap:14px;color:var(--beyond-ink);}
[data-workshop-layout="beyond"] .beyond-box,[data-workshop-layout="beyond"] .beyond-book {background:linear-gradient(140deg,#303c37f7,#24302dfc);border:1px solid var(--beyond-border);border-top:3px solid var(--beyond-border);border-radius:9px 9px 18px 9px;box-shadow:0 3px 12px #162c1c13;overflow:hidden;}
[data-workshop-layout="beyond"] .beyond-box {padding:14px 13px;color:var(--beyond-ink);}
[data-workshop-layout="beyond"] .beyond-section-heading {display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:14px;}
[data-workshop-layout="beyond"] .beyond-section-heading h3 {font:700 11px Arial,sans-serif;text-transform:uppercase;letter-spacing:.7px;color:#e2e8d7;margin:0;}
[data-workshop-layout="beyond"] .beyond-section-heading>span {font-size:8px;color:#9daa8d;letter-spacing:.7px;}
[data-workshop-layout="beyond"] .beyond-save-grid {display:grid;grid-template-columns:1fr 1fr;gap:9px;}
[data-workshop-layout="beyond"] .beyond-save {display:flex;align-items:center;gap:8px;border:1px solid var(--beyond-border);border-radius:18px;padding:5px 7px;font-size:11px;background:var(--beyond-inset);}
[data-workshop-layout="beyond"] .beyond-save strong {margin-left:auto;font-size:15px;color:#e0e8cd;}
[data-workshop-layout="beyond"] .beyond-dot {width:8px;height:8px;border:1px solid var(--beyond-border);border-radius:50%;display:inline-block;flex:none;}
[data-workshop-layout="beyond"] .beyond-dot.is-trained {background:#a4b567;border-color:var(--beyond-border);}
[data-workshop-layout="beyond"] .beyond-dot.is-expert {border-radius:1px;transform:rotate(45deg);background:#d9dbaa;}
[data-workshop-layout="beyond"] .beyond-manage {display:block;background:none;border:0;color:#b9c7a6;margin:14px auto 0;text-decoration:underline;text-underline-offset:3px;font-size:10px;}
[data-workshop-layout="beyond"] .beyond-passive {width:100%;display:flex;gap:12px;align-items:center;margin-bottom:9px;border:1px solid var(--beyond-border);border-radius:25px;background:var(--beyond-inset);padding:4px 8px;font-size:10px;}
[data-workshop-layout="beyond"] .beyond-passive strong {font-size:17px;color:#e3eacb;width:28px;border-right:1px solid var(--beyond-border);padding-right:8px;}
[data-workshop-layout="beyond"] .beyond-training h4 {color:#abb99e;text-transform:uppercase;font-size:9px;letter-spacing:.8px;margin:15px 0 5px;}
[data-workshop-layout="beyond"] .beyond-training p {font-size:11px;line-height:1.6;margin:0;padding-bottom:12px;border-bottom:1px solid var(--beyond-divider);overflow-wrap:anywhere;}
[data-workshop-layout="beyond"] .beyond-skills {padding:14px 12px;min-height:685px;}
[data-workshop-layout="beyond"] .beyond-skill {display:grid;width:100%;grid-template-columns:8px 25px 1fr 32px;gap:8px;align-items:center;text-align:left;background:none;border:0;border-bottom:1px solid var(--beyond-divider);padding:8px 1px;line-height:1.2;font-size:11px;}
[data-workshop-layout="beyond"] .beyond-skill small {font-size:9px;color:#9baa9d;}
[data-workshop-layout="beyond"] .beyond-skill strong {text-align:center;font-size:15px;border:1px solid var(--beyond-border);border-radius:3px;line-height:1.3;}
[data-workshop-layout="beyond"] .beyond-defense-row {display:grid;grid-template-columns:96px 106px 96px 1fr;gap:12px;margin-bottom:14px;}
[data-workshop-layout="beyond"] .beyond-defense-row .beyond-stat {min-height:94px;border-radius:9px 9px 22px 9px;}
[data-workshop-layout="beyond"] .beyond-defense-info {display:flex;align-items:flex-start;justify-content:center;flex-direction:column;gap:7px;text-align:left;background:var(--beyond-surface);border:1px solid var(--beyond-border);border-left:3px solid var(--beyond-border);padding:13px 16px;border-radius:5px;}
[data-workshop-layout="beyond"] .beyond-defense-info strong {font-size:13px;}
[data-workshop-layout="beyond"] .beyond-defense-info small {font-size:10px;color:#b6c0af;line-height:1.4;}
[data-workshop-layout="beyond"] .sheet-tabs {padding-top:0;position:sticky;top:0;z-index:4;background:var(--beyond-surface);display:flex;gap:0;margin:0;border-bottom:1px solid var(--beyond-border);overflow:auto;scrollbar-width:thin;}
[data-workshop-layout="beyond"] .sheet-tabs button {font:700 10px Arial,sans-serif;text-transform:uppercase;white-space:nowrap;color:#aebda8;padding:15px 10px;border:0;border-bottom:3px solid transparent;}
[data-workshop-layout="beyond"] .sheet-tabs button[aria-selected="true"] {color:#edf2d4;border-color:var(--beyond-border);background:#71824b20;}
[data-workshop-layout="beyond"] .beyond-pages {height:590px;overflow:auto;scrollbar-width:thin;scrollbar-color:#708257 #24302c;padding:16px;}
[data-workshop-layout="beyond"] .sheet-panel {padding:0;border:0;min-width:0;}
[data-workshop-layout="beyond"] .panel-title {margin:0 0 14px;}
[data-workshop-layout="beyond"] .panel-title h2 {font:20px Georgia,serif;margin:0 0 8px;color:#f0f2e2;}
[data-workshop-layout="beyond"] .panel-title p {font-size:11px;color:#acbba7;margin:0;}
[data-workshop-layout="beyond"] .sheet-panel h3 {font-size:12px;color:#c8d7a4;margin-top:22px;}
[data-workshop-layout="beyond"] .sheet-panel h4 {font-size:11px;}
[data-workshop-layout="beyond"] .sheet-panel p,[data-workshop-layout="beyond"] .field-hint {font-size:11px;line-height:1.65;}
[data-workshop-layout="beyond"] .sheet-fields {grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
[data-workshop-layout="beyond"] input:not([type="checkbox"]):not([type="file"]),[data-workshop-layout="beyond"] select,[data-workshop-layout="beyond"] textarea {font:12px Arial,sans-serif;padding:8px;background:var(--beyond-inset);color:#ecf0e2;border-color:var(--beyond-border);}
[data-workshop-layout="beyond"] label {font:600 10px Arial,sans-serif;color:#b5c4ab;}
[data-workshop-layout="beyond"] .beyond-action-filters {display:flex;gap:5px;flex-wrap:wrap;margin:10px 0 20px;}
[data-workshop-layout="beyond"] .beyond-action-filters button {font:700 9px Arial,sans-serif;text-transform:uppercase;background:var(--beyond-inset);border:1px solid var(--beyond-border);border-radius:3px;color:#bfcbb6;padding:6px 8px;}
[data-workshop-layout="beyond"] .beyond-action-filters button[aria-pressed="true"] {background:#82984e;color:#fff;border-color:var(--beyond-border);}
[data-workshop-layout="beyond"] .attack-group>h4 {font:700 10px Arial,sans-serif;text-transform:uppercase;letter-spacing:.8px;border-bottom:1px solid var(--beyond-divider);padding-bottom:8px;color:#b4c47b;margin:18px 0 4px;}
[data-workshop-layout="beyond"] details.attack-card,[data-workshop-layout="beyond"] details.spellbook-card,[data-workshop-layout="beyond"] details.inventory-record,[data-workshop-layout="beyond"] details.feature-reference,[data-workshop-layout="beyond"] details.feat-card,[data-workshop-layout="beyond"] details.resource-card,[data-workshop-layout="beyond"] details.passive-card {border:0;border-bottom:1px solid var(--beyond-divider);border-radius:0;background:transparent;padding:0;margin:0;}
[data-workshop-layout="beyond"] details>summary {font-size:12px;}
/* Inventory summaries no longer have the original card padding to offset. */
[data-workshop-layout="beyond"] details.inventory-record>summary {margin:0!important;text-align:left;}
[data-workshop-layout="beyond"] .attack-card>summary,[data-workshop-layout="beyond"] .spellbook-card>summary,[data-workshop-layout="beyond"] .inventory-record>summary,[data-workshop-layout="beyond"] .feature-reference>summary,[data-workshop-layout="beyond"] .feat-card>summary,[data-workshop-layout="beyond"] .resource-card>summary,[data-workshop-layout="beyond"] .passive-card>summary {padding:12px 7px!important;font-size:12px;}
[data-workshop-layout="beyond"] summary .feature-source {font:10px Arial,sans-serif;color:#a1b39c;margin-top:5px;line-height:1.6;}
[data-workshop-layout="beyond"] summary strong {font-weight:500;font-family:Arial,sans-serif;font-size:13px;}
[data-workshop-layout="beyond"] .wiki-info {font-size:11px;min-height:20px;padding:0 3px;color:#c5d797;}
[data-workshop-layout="beyond"] .workshop-record {padding:14px;background:var(--beyond-surface);border-color:var(--beyond-border);}
[data-workshop-layout="beyond"] .spell-source-summary {padding:12px;}
[data-workshop-layout="beyond"] .beyond-row-placeholder {width:100%;background:#8ca35419;border:0;border-bottom:1px solid var(--beyond-border);color:#edf4d3;text-align:left;padding:12px 7px;cursor:pointer;display:block;}
[data-workshop-layout="beyond"] .beyond-row-placeholder .feature-source {display:block;font-size:10px;color:#b4c6a3;margin-top:5px;}
[data-workshop-layout="beyond"] .beyond-row-placeholder strong {font-size:13px;}
[data-workshop-layout="beyond"] .beyond-drawer {color:var(--beyond-ink);position:fixed;right:16px;top:64px;bottom:16px;width:min(420px,calc(100vw - 24px));z-index:25;background:var(--beyond-surface);border:1px solid var(--beyond-border);border-top:3px solid var(--beyond-border);border-radius:10px 10px 16px 10px;box-shadow:-18px 10px 65px #0008;display:flex;flex-direction:column;overflow:hidden;}
[data-workshop-layout="beyond"] .beyond-drawer-head {padding:17px 20px;border-bottom:1px solid var(--beyond-border);flex:none;}
[data-workshop-layout="beyond"] .beyond-drawer-head h2 {font:23px Georgia,serif;margin:12px 0 0;line-height:1.2;color:#eff3df;}
[data-workshop-layout="beyond"] .beyond-close {float:right;border:1px solid var(--beyond-border);border-radius:4px;padding:6px 9px;background:var(--beyond-fill);font-size:11px;margin-top:-22px;}
[data-workshop-layout="beyond"] .beyond-drawer-body {overflow:auto;padding:18px 20px;flex:1;scrollbar-width:thin;font-size:12px;line-height:1.65;}
[data-workshop-layout="beyond"] .beyond-drawer-body>.sheet-panel {display:block;}
[data-workshop-layout="beyond"] .beyond-drawer-body>details>summary {padding:0 0 14px!important;}
[data-workshop-layout="beyond"] .beyond-drawer-body .sheet-columns {display:block;}
[data-workshop-layout="beyond"] .beyond-drawer-body .training-row {grid-template-columns:minmax(0,1.5fr) 30px minmax(55px,1fr) 50px;gap:5px;}
[data-workshop-layout="beyond"] .beyond-drawer-body .save-row {grid-template-columns:minmax(0,1fr) 32px 60px;}
[data-workshop-layout="beyond"] .beyond-drawer-body .ability-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
[data-workshop-layout="beyond"] .beyond-drawer-body .ability-card {padding:10px;background:var(--beyond-surface);}
[data-workshop-layout="beyond"] .beyond-drawer-body .workshop-dialog {margin:0;background:transparent;border:0;padding:0;}
[data-workshop-layout="beyond"] .beyond-drawer-body p,[data-workshop-layout="beyond"] .beyond-drawer-body li {font-size:12px;}
body:has([data-workshop-layout="beyond"]) .wiki-sidepane {top:64px;bottom:16px;right:16px;margin:0 0 0 auto;width:min(460px,calc(100vw - 24px));max-height:calc(100vh - 80px);background:var(--beyond-surface);color:#e8ece0;border:1px solid var(--beyond-border);border-radius:10px;}
body:has([data-workshop-layout="beyond"]) .wiki-sidepane::backdrop {background:#10261b35;}
[data-workshop-layout="beyond"] button:hover {filter:brightness(1.16);}
[data-workshop-layout="beyond"] button:focus-visible,[data-workshop-layout="beyond"] summary:focus-visible {outline:2px solid var(--beyond-border);outline-offset:3px;}
@media(min-width:1700px){[data-workshop-layout="beyond"].beyond-drawer-open {margin-right:360px;}[data-workshop-layout="beyond"].beyond-drawer-open .beyond-overview {grid-template-columns:1fr;}[data-workshop-layout="beyond"].beyond-drawer-open .beyond-abilities {max-width:none;}[data-workshop-layout="beyond"].beyond-drawer-open .beyond-grid {grid-template-columns:180px 215px minmax(0,1fr);}}
@media(max-width:1150px){[data-workshop-layout="beyond"] .beyond-overview {grid-template-columns:1fr;}[data-workshop-layout="beyond"] .beyond-grid {grid-template-columns:210px minmax(0,1fr);}[data-workshop-layout="beyond"] .beyond-sidebar {grid-column:1;grid-row:1;}[data-workshop-layout="beyond"] .beyond-skills {grid-column:1;grid-row:2;min-height:0;}[data-workshop-layout="beyond"] .beyond-workspace {grid-column:2;grid-row:1 / span 2;}[data-workshop-layout="beyond"] .beyond-pages {height:1000px;}[data-workshop-layout="beyond"] .beyond-mast {gap:12px;padding:16px;}[data-workshop-layout="beyond"] .beyond-defense-row {grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;}}
@media(max-width:720px){.md-content:has([data-workshop-layout="beyond"]) .md-content__inner {margin:12px 12px 30px;}[data-workshop-layout="beyond"] .beyond-grid {display:flex;flex-direction:column;gap:12px;}[data-workshop-layout="beyond"] .beyond-workspace {order:0;width:100%;}[data-workshop-layout="beyond"] .beyond-sidebar {order:1;width:100%;grid-template-columns:1fr;}[data-workshop-layout="beyond"] .beyond-skills {order:2;width:100%;}[data-workshop-layout="beyond"] .beyond-pages {height:auto;max-height:72vh;padding:12px;}[data-workshop-layout="beyond"] .beyond-mast {padding:14px;gap:12px;}[data-workshop-layout="beyond"] .beyond-identity {flex-basis:100%;}[data-workshop-layout="beyond"] .beyond-mast .roster-label {flex:1 1 140px;}[data-workshop-layout="beyond"] .beyond-rest {width:100%;}[data-workshop-layout="beyond"] .beyond-abilities {gap:5px;}[data-workshop-layout="beyond"] .beyond-ability {padding:9px 2px;min-height:94px;}[data-workshop-layout="beyond"] .beyond-ability .beyond-stat-label {font-size:7px;letter-spacing:0;}[data-workshop-layout="beyond"] .beyond-ability strong {font-size:24px;}[data-workshop-layout="beyond"] .beyond-vitals {grid-template-columns:.8fr .8fr 1fr 1.7fr;gap:5px;}[data-workshop-layout="beyond"] .beyond-vitals .beyond-stat {min-height:88px;padding:8px 3px;}[data-workshop-layout="beyond"] .beyond-vitals .beyond-stat strong {font-size:22px;}[data-workshop-layout="beyond"] .beyond-stat-foot {font-size:8px;}[data-workshop-layout="beyond"] .beyond-defense-row {grid-template-columns:repeat(3,minmax(0,1fr));}[data-workshop-layout="beyond"] .beyond-defense-info {padding:9px;}[data-workshop-layout="beyond"] .beyond-defense-info small {font-size:9px;}[data-workshop-layout="beyond"] .beyond-stat-label {font-size:8px;}[data-workshop-layout="beyond"] .beyond-drawer {top:55px;right:6px;bottom:6px;width:calc(100vw - 12px);}[data-workshop-layout="beyond"] .beyond-management[open] .sheet-toolbar {right:-10px;width:min(340px,calc(100vw - 38px));}}
@media print{[data-workshop-layout="beyond"] .beyond-overview,[data-workshop-layout="beyond"] .beyond-sidebar,[data-workshop-layout="beyond"] .beyond-skills,[data-workshop-layout="beyond"] .beyond-drawer {display:none!important;}}
/* Keep the play surface compact and stable when a detail panel opens. */
body:has([data-workshop-layout="beyond"]) .md-banner {display:none;}
body:has([data-workshop-layout="beyond"]) .md-main__inner {margin-top:8px;}
.md-content:has([data-workshop-layout="beyond"]) .md-content__inner {margin-top:8px;padding-top:0;}
body:has([data-workshop-layout="beyond"]) .reference-breadcrumb {margin:4px 0 12px;padding:0;font-size:10px;color:#4a5940;}
[data-workshop-layout="beyond"] .beyond-mast {padding:14px 18px;gap:12px;}
[data-workshop-layout="beyond"] .beyond-overview {padding-top:12px;}
[data-workshop-layout="beyond"] .beyond-ability,[data-workshop-layout="beyond"] .beyond-stat {min-height:92px;}
[data-workshop-layout="beyond"] .beyond-passive strong {flex:none;min-width:34px;width:34px;white-space:nowrap;}
[data-workshop-layout="beyond"] .beyond-skill {padding-top:7px;padding-bottom:7px;}
[data-workshop-layout="beyond"] .beyond-skills {min-height:650px;}
[data-workshop-layout="beyond"] .beyond-management summary .disclosure-chevron {margin-left:8px;}
@media(min-width:1700px){[data-workshop-layout="beyond"].beyond-drawer-open {margin-right:0;}[data-workshop-layout="beyond"].beyond-drawer-open .beyond-overview {grid-template-columns:1.12fr 1fr;}[data-workshop-layout="beyond"].beyond-drawer-open .beyond-grid {grid-template-columns:minmax(185px,.86fr) minmax(215px,.96fr) minmax(0,2.25fr);}}
[data-workshop-layout="beyond"] .beyond-spell-toolbar {display:flex;justify-content:flex-end;margin:10px 0;}
[data-workshop-layout="beyond"] .beyond-spell-toolbar button {border:1px solid var(--beyond-border);background:var(--beyond-fill);font-size:11px;padding:7px 10px;border-radius:3px;}
[data-workshop-layout="beyond"] .beyond-slot-overview {padding:10px 0;margin-bottom:10px;border-top:1px solid var(--beyond-divider);border-bottom:1px solid var(--beyond-divider);}
[data-workshop-layout="beyond"] .beyond-slot-overview button {background:none;border:0;font-size:11px;line-height:1.8;color:#d2e1ac;text-align:left;}
[data-workshop-layout="beyond"] .spell-facts {gap:20px;padding:10px;background:var(--beyond-surface);border:1px solid var(--beyond-border);border-radius:5px;}
[data-workshop-layout="beyond"] .spell-facts span {font-size:11px;}
[data-workshop-layout="beyond"] .spell-facts .calculation-note {font-size:10px;}
[data-workshop-layout="beyond"] details.companion-card {border:0;border-bottom:1px solid var(--beyond-divider);border-radius:0;background:transparent;padding:0;margin:0;}
[data-workshop-layout="beyond"] .companion-card>summary {padding:12px 7px!important;}

/* Reference content is outside the workshop root, so supply its complete palette. */
body:has([data-workshop-layout="beyond"]) .wiki-sidepane {--md-default-bg-color:#1f3026;--md-default-fg-color:#e8ece0;--md-default-fg-color--light:#c5cfbf;--md-default-fg-color--lighter:#a8b49f;--md-default-fg-color--lightest:#617155;--md-typeset-color:#e8ece0;--md-typeset-a-color:#cfdda4;--codex-paper:#293b30;--codex-line:#617155;--codex-muted:#b7c4ae;--codex-gold:#c5d797;}
@media(max-width:1150px){[data-workshop-layout="beyond"] .beyond-defense-info {grid-column:1 / -1;}}
body:has([data-workshop-layout="beyond"]) .wiki-sidepane .reference-breadcrumb {color:var(--codex-muted);}

/* Equipment uses the same quiet, clickable rows as combat options. */
[data-workshop-layout="beyond"] details.inventory-record,
[data-workshop-layout="beyond"] details.ready-equipment-card {border:0!important;border-bottom:1px solid var(--beyond-divider)!important;border-radius:0;background:transparent!important;padding:0;margin:0!important;box-shadow:none!important;}
[data-workshop-layout="beyond"] details.inventory-record>summary,
[data-workshop-layout="beyond"] details.ready-equipment-card>summary {margin:0!important;padding:16px 2rem 16px 7px!important;background:transparent!important;font:400 13px Arial,sans-serif;line-height:1.6;}
[data-workshop-layout="beyond"] .beyond-drawer-body>details.inventory-record>summary,
[data-workshop-layout="beyond"] .beyond-drawer-body>details.ready-equipment-card>summary {padding:0 2rem 14px 0!important;}

[data-workshop-layout="beyond"] #panel-equipment>.coins {grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:12px 0 20px;}
[data-workshop-layout="beyond"] .beyond-add-item {margin:8px 0 12px;}
[data-workshop-layout="beyond"] .beyond-carrying {margin:18px 0 12px;}
[data-workshop-layout="beyond"] .beyond-carrying>summary {font:600 12px Arial,sans-serif;padding:12px 2rem 12px 10px!important;}
[data-workshop-layout="beyond"] .beyond-carrying #carrying-status {border:0;padding:8px;margin:0;background:transparent;}
[data-workshop-layout="beyond"] .beyond-carrying .carry-total {font-size:16px;}
[data-workshop-layout="beyond"] .beyond-item-manager .sheet-fields {grid-template-columns:1fr;}
@media(max-width:480px){[data-workshop-layout="beyond"] #panel-equipment>.coins {grid-template-columns:repeat(3,minmax(0,1fr));}}
/* Fit slot cards to their container, including the narrow control drawer. */
[data-workshop-layout="beyond"] .slot-grid {grid-template-columns:repeat(auto-fit,minmax(min(100%,96px),1fr));gap:10px;}
[data-workshop-layout="beyond"] .slot-card {min-width:0;padding:10px;}
[data-workshop-layout="beyond"] .slot-card strong {font:600 12px Arial,sans-serif;white-space:nowrap;}
[data-workshop-layout="beyond"] .slot-card label {font-size:10px;line-height:1.4;}

/* Theme accents share neutral surfaces so every palette keeps readable text. */
body:has([data-workshop-layout="beyond"]) {--beyond-border:color-mix(in srgb,var(--beyond-accent) 65%,#29322d);--beyond-fill:color-mix(in srgb,var(--beyond-accent) 25%,#202928);}
[data-workshop-layout="beyond"] .beyond-ability,[data-workshop-layout="beyond"] .beyond-stat {border-top-color:var(--beyond-accent);background:linear-gradient(145deg,var(--beyond-fill),#222a29);}
[data-workshop-layout="beyond"] .beyond-box,[data-workshop-layout="beyond"] .beyond-book {border-top-color:var(--beyond-accent);background:linear-gradient(140deg,color-mix(in srgb,var(--beyond-accent) 9%,#303735),#242e2d);}
[data-workshop-layout="beyond"] .beyond-dot.is-trained,[data-workshop-layout="beyond"] .beyond-dot.is-expert {background:var(--beyond-accent);border-color:var(--beyond-accent);}
[data-workshop-layout="beyond"] .sheet-tabs button[aria-selected="true"] {border-color:var(--beyond-accent);}
[data-workshop-layout="beyond"] .sheet-button.primary,[data-workshop-layout="beyond"] .beyond-action-filters button[aria-pressed="true"] {background:var(--beyond-accent);color:#18221e;border-color:var(--beyond-accent);}
[data-workshop-layout="beyond"] .beyond-portrait {background:linear-gradient(145deg,var(--beyond-fill),#202928);color:var(--beyond-accent);}
[data-workshop-layout="beyond"] .attack-group>h4,[data-workshop-layout="beyond"] .wiki-info {color:var(--beyond-accent);}
body:has([data-workshop-layout="beyond"]) .wiki-sidepane {--codex-gold:var(--beyond-accent);border-color:var(--beyond-border);}
[data-md-color-scheme="slate"]:has([data-workshop-layout="beyond"]) {background:#151b1a;}
[data-md-color-scheme="slate"]:has([data-workshop-layout="beyond"]) .md-main {background:radial-gradient(ellipse at 10% 0%,#35483e33,transparent 55%),#151b1a;}
[data-md-color-scheme="slate"] [data-workshop-layout="beyond"] .sheet-status,[data-md-color-scheme="slate"] [data-workshop-layout="beyond"] .sheet-privacy,[data-md-color-scheme="slate"]:has([data-workshop-layout="beyond"]) .reference-breadcrumb {color:#b8c4b7;}
[data-workshop-layout="beyond"] .beyond-theme-label {flex:1 1 180px;}

/* Share themed surfaces across summary panels, tabs, editors and references. */
body:has([data-workshop-layout="beyond"]) {--beyond-surface:color-mix(in srgb,var(--beyond-accent) 10%,#232928);--beyond-inset:color-mix(in srgb,var(--beyond-accent) 5%,#19201f);}
[data-workshop-layout="beyond"] {--codex-paper:var(--beyond-surface);--codex-line:var(--beyond-border);--md-default-bg-color:var(--beyond-inset);}
[data-workshop-layout="beyond"] .beyond-drawer-head {background:var(--beyond-surface);border-color:var(--beyond-border);}
[data-workshop-layout="beyond"] .sheet-tabs button[aria-selected="true"] {background:var(--beyond-fill);}
[data-workshop-layout="beyond"] .beyond-row-placeholder {background:color-mix(in srgb,var(--beyond-accent) 10%,transparent);border-color:var(--beyond-border);}
[data-workshop-layout="beyond"] .beyond-pages {scrollbar-color:var(--beyond-border) var(--beyond-inset);}
body:has([data-workshop-layout="beyond"]) .wiki-sidepane {--md-default-bg-color:var(--beyond-inset);--codex-paper:var(--beyond-surface);--codex-line:var(--beyond-border);background:var(--beyond-surface);}
[data-workshop-layout="beyond"] button:focus-visible,[data-workshop-layout="beyond"] summary:focus-visible {outline-color:var(--beyond-accent);}
/* Theme-aware typography: bright content, softer supporting text, accent headings. */
body:has([data-workshop-layout="beyond"]) {--beyond-ink:color-mix(in srgb,var(--beyond-accent) 10%,#f3f5f4);--beyond-muted:color-mix(in srgb,var(--beyond-accent) 20%,#bbc2c0);--beyond-link:color-mix(in srgb,var(--beyond-accent) 80%,#ffffff);--beyond-label:color-mix(in srgb,var(--beyond-accent) 45%,#e8ecea);}
[data-workshop-layout="beyond"] {--md-default-fg-color:var(--beyond-ink);--md-typeset-a-color:var(--beyond-link);--codex-muted:var(--beyond-muted);color:var(--beyond-ink);}
[data-workshop-layout="beyond"] .beyond-section-heading h3,
[data-workshop-layout="beyond"] .beyond-training h4,
[data-workshop-layout="beyond"] .sheet-panel h3,
[data-workshop-layout="beyond"] .sheet-panel h4,
[data-workshop-layout="beyond"] .beyond-drawer-head h2,
[data-workshop-layout="beyond"] .beyond-slot-overview button,
[data-workshop-layout="beyond"] .beyond-manage,
[data-workshop-layout="beyond"] .beyond-classic {color:var(--beyond-link);}
[data-workshop-layout="beyond"] .beyond-stat-label,
[data-workshop-layout="beyond"] label,
[data-workshop-layout="beyond"] .sheet-tabs button,
[data-workshop-layout="beyond"] .beyond-action-filters button,
[data-workshop-layout="beyond"] .beyond-score {color:var(--beyond-label);}
[data-workshop-layout="beyond"] .sheet-tabs button[aria-selected="true"] {color:var(--beyond-link);}
[data-workshop-layout="beyond"] .beyond-section-heading>span,
[data-workshop-layout="beyond"] .beyond-skill small,
[data-workshop-layout="beyond"] .beyond-stat-foot,
[data-workshop-layout="beyond"] .beyond-defense-info small,
[data-workshop-layout="beyond"] #sheet-description,
[data-workshop-layout="beyond"] .panel-title p,
[data-workshop-layout="beyond"] summary .feature-source,
[data-workshop-layout="beyond"] .feature-source,
[data-workshop-layout="beyond"] .beyond-row-placeholder .feature-source {color:var(--beyond-muted);}
[data-workshop-layout="beyond"] #sheet-name,
[data-workshop-layout="beyond"] .beyond-ability strong,
[data-workshop-layout="beyond"] .beyond-stat strong,
[data-workshop-layout="beyond"] .beyond-save strong,
[data-workshop-layout="beyond"] .beyond-passive strong,
[data-workshop-layout="beyond"] .panel-title h2,
[data-workshop-layout="beyond"] .beyond-row-placeholder,
[data-workshop-layout="beyond"] input:not([type="checkbox"]):not([type="file"]),
[data-workshop-layout="beyond"] select,[data-workshop-layout="beyond"] textarea {color:var(--beyond-ink);}
body:has([data-workshop-layout="beyond"]) .wiki-sidepane {color:var(--beyond-ink);--md-default-fg-color:var(--beyond-ink);--md-default-fg-color--light:var(--beyond-muted);--md-typeset-color:var(--beyond-ink);--md-typeset-a-color:var(--beyond-link);--codex-muted:var(--beyond-muted);}
body:has([data-workshop-layout="beyond"]) .wiki-sidepane :is(h1,h2,h3,h4) {color:var(--beyond-link);}
[data-workshop-layout="beyond"] .beyond-action-filters button[aria-pressed="true"] {color:#18221e;}

/* All separators and control outlines use the active palette. */
body:has([data-workshop-layout="beyond"]) {--beyond-divider:color-mix(in srgb,var(--beyond-accent) 35%,#343b39);}
[data-workshop-layout="beyond"] hr {border-color:var(--beyond-divider);background:var(--beyond-divider);}
[data-workshop-layout="beyond"] input[type="checkbox"],[data-workshop-layout="beyond"] input[type="radio"] {accent-color:var(--beyond-accent);}
[data-workshop-layout="beyond"] .sheet-button:hover {border-color:var(--beyond-accent);}
body:has([data-workshop-layout="beyond"]) .wiki-sidepane {--md-default-fg-color--lightest:var(--beyond-divider);}
/* Active Inspiration follows the palette and remains distinct from inactive stats. */
[data-workshop-layout="beyond"] .beyond-inspiration[aria-pressed="true"] {background:var(--beyond-accent);border-color:var(--beyond-accent);}
[data-workshop-layout="beyond"] .beyond-inspiration[aria-pressed="true"] .beyond-stat-label,
[data-workshop-layout="beyond"] .beyond-inspiration[aria-pressed="true"] strong {color:#18221e;}

[data-workshop-layout="beyond"] .beyond-dice-dialog {width:min(520px,calc(100vw - 32px));max-height:calc(100dvh - 40px);overflow:auto;position:fixed;inset:0;margin:auto;padding:20px;border:1px solid var(--beyond-border);border-top:3px solid var(--beyond-accent);border-radius:12px;background:var(--beyond-surface);color:var(--beyond-ink);font:13px Arial,sans-serif;box-shadow:0 16px 70px #0009;}
[data-workshop-layout="beyond"] .beyond-dice-dialog::backdrop {background:#090d0ccc;}
[data-workshop-layout="beyond"] .beyond-dice-head {display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--beyond-divider);padding-bottom:12px;}
[data-workshop-layout="beyond"] .beyond-dice-head h2 {font:24px Georgia,serif;color:var(--beyond-link);margin:0;}
[data-workshop-layout="beyond"] .beyond-dice-close {flex:none;}
[data-workshop-layout="beyond"] .beyond-dice-form {margin:18px 0;}
[data-workshop-layout="beyond"] .beyond-dice-actions {display:flex;gap:10px;flex-wrap:wrap;margin-top:16px;}
[data-workshop-layout="beyond"] .beyond-dice-result {border-top:1px solid var(--beyond-divider);padding-top:14px;}
[data-workshop-layout="beyond"] .beyond-dice-result h3 {color:var(--beyond-link);margin:0 0 12px;font-size:16px;}
[data-workshop-layout="beyond"] .beyond-dice-values {display:grid;grid-template-columns:repeat(auto-fit,minmax(95px,1fr));gap:8px;list-style:none;margin:0;padding:0;max-height:260px;overflow:auto;}
[data-workshop-layout="beyond"] .beyond-dice-values li {border:1px solid var(--beyond-border);border-radius:5px;padding:10px;margin:0;background:var(--beyond-inset);}
[data-workshop-layout="beyond"] .beyond-dice-total {font-size:22px;font-weight:700;color:var(--beyond-link);margin:16px 0 0;}

[data-workshop-layout="beyond"] .spellbook-filters {display:flex;flex-direction:column;gap:10px;}
[data-workshop-layout="beyond"] .beyond-spell-filters {margin:0;}
[data-workshop-layout="beyond"] .beyond-spell-level {color:var(--beyond-link);border-bottom:1px solid var(--beyond-border);padding:12px 0 8px;margin:18px 0 0;font:700 11px Arial,sans-serif;text-transform:uppercase;letter-spacing:.06em;}

[data-workshop-layout="beyond"] .beyond-defense-row {grid-template-columns:repeat(3,minmax(0,1fr));}
[data-workshop-layout="beyond"] .beyond-defense-info {grid-column:auto;min-width:0;padding:10px;}
[data-workshop-layout="beyond"] .beyond-death {min-width:0;}
[data-workshop-layout="beyond"] .beyond-death .beyond-stat-label {line-height:1.4;}
[data-workshop-layout="beyond"] .beyond-xp {grid-column:1 / -1;display:flex;flex-direction:column;gap:8px;width:100%;padding:10px 12px;text-align:left;background:var(--beyond-surface);border:1px solid var(--beyond-border);border-radius:6px;color:var(--beyond-label);font-size:11px;}
[data-workshop-layout="beyond"] .beyond-xp progress {display:block;width:100%;height:8px;border:0;border-radius:4px;overflow:hidden;background:var(--beyond-inset);accent-color:var(--beyond-accent);}
[data-workshop-layout="beyond"] .beyond-xp progress::-webkit-progress-bar {background:var(--beyond-inset);}
[data-workshop-layout="beyond"] .beyond-xp progress::-webkit-progress-value {background:var(--beyond-accent);}
[data-workshop-layout="beyond"] .beyond-xp progress::-moz-progress-bar {background:var(--beyond-accent);}

/* Compact secondary statistics, including both death save counters. */
[data-workshop-layout="beyond"] .beyond-defense-row {grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;}
[data-workshop-layout="beyond"] .beyond-defense-row .beyond-stat {min-width:0;min-height:88px;padding:8px 3px;border-radius:7px 7px 18px 7px;}
[data-workshop-layout="beyond"] .beyond-defense-row .beyond-stat strong {font-size:22px;}
[data-workshop-layout="beyond"] .beyond-defense-row .beyond-stat-label {font-size:8px;letter-spacing:0;line-height:1.4;}
@media(max-width:380px){[data-workshop-layout="beyond"] .beyond-defense-row {grid-template-columns:repeat(6,minmax(0,1fr));}[data-workshop-layout="beyond"] .beyond-defense-row .beyond-stat {grid-column:span 2;min-height:76px;}[data-workshop-layout="beyond"] .beyond-defense-row .beyond-death {grid-column:span 3;}}

[data-workshop-layout="beyond"] .beyond-focused-fields {grid-template-columns:1fr;gap:16px;}

[data-workshop-layout="beyond"] .hit-dice-adjustments {display:flex;flex-direction:column;gap:10px;margin-top:10px;}
[data-workshop-layout="beyond"] .hit-dice-adjustment {display:flex;flex-wrap:wrap;align-items:center;gap:8px;}
[data-workshop-layout="beyond"] .hit-dice-adjustment > span {flex-basis:100%;}

[data-workshop-layout="beyond"] .beyond-name-button {cursor:pointer;}
[data-workshop-layout="beyond"] .beyond-name-button:focus-visible {outline:2px solid var(--beyond-accent);outline-offset:4px;}
[data-workshop-layout="beyond"] .beyond-character-combat {margin-top:24px;padding-top:16px;border-top:1px solid var(--beyond-border);}
[data-workshop-layout="beyond"] .beyond-focused-fields #origin-choices {grid-template-columns:1fr;}

[data-workshop-layout="beyond"] .beyond-add-feature {display:inline-flex;align-items:center;gap:8px;min-height:34px;margin:12px 0;padding:8px 12px;background:var(--beyond-fill);border:1px solid var(--beyond-border);border-radius:4px;color:var(--beyond-ink);font:700 11px Arial,sans-serif;cursor:pointer;}
[data-workshop-layout="beyond"] .beyond-add-feature::before {content:"+";font-size:16px;}
[data-workshop-layout="beyond"] .beyond-add-feature:hover {border-color:var(--beyond-accent);background:var(--beyond-surface);}
[data-workshop-layout="beyond"] #sheet-name.beyond-name-button {display:inline-block;color:var(--beyond-link);text-decoration:underline;text-decoration-color:var(--beyond-border);text-underline-offset:5px;text-decoration-thickness:1px;}
[data-workshop-layout="beyond"] #sheet-name.beyond-name-button:hover {text-decoration-color:var(--beyond-accent);}

[data-workshop-layout="beyond"] .option-selection-title {display:flex;align-items:center;gap:5px;}
[data-workshop-layout="beyond"] .option-selection-title > label {margin:0;}
[data-workshop-layout="beyond"] .option-selection-title > .wiki-info {flex:none;margin:0;}

