/* Paper palette for shared sheet controls. Keep game state and dimensions unchanged. */
html[data-theme="paper"] .character-sheet{--gold:#80601e;--cyan:#2f6370;--sheet-line:#c4bba9;--control-ready:#287347;--control-used:#716e69;--control-ready-border:#71957a;--control-ready-fill:#e4eddf;--accent:#355e69;--muted:#68625c}
html[data-theme="paper"] body:has(.character-sheet){background:#e5e0d6}
html[data-theme="paper"] .sheet-identity{background:none!important;border-bottom:1px solid #c6bba4;box-shadow:none}
html[data-theme="paper"] .threshold-recess{background:#e9e3d7!important;box-shadow:none!important;border:1px solid #c4bba9!important}
html[data-theme="paper"] .character-sheet .meta,
html[data-theme="paper"] .character-sheet .hope-feature button,
html[data-theme="paper"] .character-sheet .rest-badge{color:#80601e}
html[data-theme="paper"] .character-sheet [data-control-mold]{box-shadow:none!important}
html[data-theme="paper"] .character-sheet [data-control-mold] .ability-charge-dot{box-shadow:none!important}
html[data-theme="paper"] .character-sheet .ability-charge[data-control-mold="resource"]:not(.is-used):not(:disabled),
html[data-theme="paper"] .character-sheet [data-control-mold="resource"]:not(.is-used):not(:disabled){color:#80601e}
html[data-theme="paper"] .character-sheet .feature-view-tabs .ribbon-title{color:#48423a!important;background:#b2a58c!important}
html[data-theme="paper"] .character-sheet .feature-view-tabs .ribbon-title[aria-selected="false"]::before{background:#eee8dc!important;box-shadow:none!important}
html[data-theme="paper"] .character-sheet .feature-view-tabs .ribbon-title[aria-selected="true"]{color:#fffaf0!important;background:#6b685d!important}
html[data-theme="paper"] .character-sheet .feature-view-tabs .ribbon-title[aria-selected="true"]::before{background:#5f6258!important;box-shadow:none!important}
html[data-theme="paper"] .domain-card .controls{background:#e5ded0;border-top-color:#b3a17e;color:#403a34}
html[data-theme="paper"] .domain-card .controls button{background:#f5f0e6;border-color:#b7aa91;color:#403a34;box-shadow:none}
html[data-theme="paper"] .domain-card .controls button:hover{background:#e8ddc5;border-color:#80601e}
html[data-theme="paper"] .domain-card .controls .move-card svg{stroke:#49453e}
html[data-theme="paper"] .domain-card .controls .status-dot{background:#287347;box-shadow:none}
html[data-theme="paper"] .domain-card .controls .status-dot.spent{background:#7c7871}
html[data-theme="paper"] .domain-card .controls .active-label,
html[data-theme="paper"] .domain-card .controls .card-state-label{color:#365c40}
html[data-theme="paper"] .domain-card .controls small{color:#625b50}
html[data-theme="paper"] .character-sheet .recharge-badge{color:#79591b;border-color:#ac976d;background:#f1eadc}
html[data-theme="paper"] .character-sheet .threshold-track strong{color:#403a34}
html[data-theme="paper"] .character-sheet .threshold-track small{color:#59534b}
html[data-theme="paper"] .character-sheet .rally-die-token,
html[data-theme="paper"] .character-sheet .refocus-die.is-ready{color:#80601e!important;border-color:#a68b50!important;background:#eee4ce!important;box-shadow:none!important}
html[data-theme="paper"] .character-sheet .hope-feature .assassin-control{color:#287347}
html[data-theme="paper"] .character-sheet :focus-visible{outline-color:#356575}
html[data-theme="paper"] .character-sheet .meta{color:#79591b!important}
html[data-theme="paper"] .domain-card .controls :is(.tiny-label,.passive-state,.touched-status){color:#575047!important}
html[data-theme="paper"] .domain-card .controls .switch{border-color:#817766;background:#e2dac9}
html[data-theme="paper"] .domain-card .controls .switch::after{background:#6d685f}
html[data-theme="paper"] .character-sheet .panel-switcher button{background:#eee7d9!important;color:#655024!important;border-color:#b6a78d!important}
html[data-theme="paper"] .character-sheet .panel-switcher button:hover{background:#e1d5bd!important}
html[data-theme="paper"] .character-sheet .conditions-row>small{color:#74684f}
@media(max-width:760px){
 html[data-theme="paper"] .character-sheet .mobile-detail-tabs button.active{color:#705019!important;border-color:#987536!important;background:#e8ddc5!important;box-shadow:inset 0 -2px #987536}
 html[data-theme="paper"] .character-sheet .mobile-detail-tabs button.active svg{color:inherit;stroke:currentColor}
}

/* Active words and automatic Touched indicators share the ready dot color. */
html[data-theme="paper"] .domain-card .controls :is(.active-label,.domain-prerequisite.on){color:#287347;text-shadow:none}
html[data-theme="paper"] .domain-card .controls .domain-prerequisite.on{border-color:#71957a;background:#e4eddf}

/* Slightly deeper parchment, retaining separation from beige controls. */
@media screen{
 html[data-theme="paper"] .character-sheet{--sheet-paper:#f1ede3;--panel:#f8f5ed;--panel2:#e8e2d5;background:linear-gradient(180deg,#f4f0e7,#ece7dd)}
 html[data-theme="paper"] .character-sheet .sheet-section{background:#f8f5ed;border-color:#a299895c}
}
