/* Local night palette. Native item materials keep their hue and are dimmed once. */
html.local-dark-screen {
 --hd-page:#182231; --hd-panel:#1d2a3c; --hd-raised:#253347;
 --hd-inset:#202c40; --hd-edge:#41516a; --hd-line:#41516a;
 --hd-text:#edf1f7; --hd-soft:#b8c6da; --hd-dim:#a1b3cc;
 --hd-mint:#cbdcf2; --hd-gold:#edcc95;
 background:var(--hd-page)!important;
}
html.local-dark-screen body,
html.local-dark-screen #app,
html.hero-dark-screen #hero {
 background:var(--hd-page)!important;
}
html.hero-dark-screen #hero {
 color:var(--hd-text); color-scheme:dark;
 scrollbar-color:#6981a2 #182231;
}
html.hero-dark-screen #hero .panel {
 background:linear-gradient(145deg,#253347,#1d2a3c)!important;
 border:1px solid var(--hd-edge)!important; border-image:none!important;
 box-shadow:inset 0 1px 0 #92b3a51a,0 3px 10px #14282530!important;
}
html.hero-dark-screen #hero .panel::before,
html.hero-dark-screen #hero .panel::after {
 background-image:none!important; border-image:none!important; box-shadow:none!important;
}
html.hero-dark-screen #hero .hero-nameplate {
 background:linear-gradient(#253347,#202c40)!important;
 border-color:#41516a!important; box-shadow:inset 0 1px 0 #b8cdb21a!important;
}
html.hero-dark-screen #hero :is(h1,h2,h3,.fold-head strong,.attribute-name strong,.hero-combat-details>summary) {
 color:var(--hd-text)!important; text-shadow:none!important;
}
html.hero-dark-screen #hero :is(.hero-nameplate>strong,.points-chip) {
 background:#303e53!important; color:#edcc95!important; border-color:#6d7390!important;
 box-shadow:none!important;
}
html.hero-dark-screen #hero :is(.hero-rename,.hero-xp-line,.hero-xp-line>span:last-child,.hero-xp-line i,.hero-loadout-hint,.hero-loadout-shelf,.hero-technique-facts,.hero-technique-detail>p) {
 color:var(--hd-soft)!important; text-shadow:none!important;
}
html.hero-dark-screen #hero .coins {background:#253347!important;color:var(--hd-gold)!important;border-color:#736650!important;box-shadow:none!important;}
html.hero-dark-screen #hero .hero-xp-bar {background:#151e2c!important;box-shadow:none!important;}
html.hero-dark-screen #hero .hero-xp-bar>span {background:linear-gradient(90deg,#799b75,#b3c18c)!important;}

/* Equipment cards keep their original colours, type and rarity frames. */
html.hero-dark-screen #hero .inspection-side {
 color:rgb(48,76,72); color-scheme:light;
}
html.hero-dark-screen #hero .inspection-figure {
 background:transparent!important;
 border-color:transparent!important; box-shadow:none!important;
 border-radius:12px!important;
 overflow:hidden; isolation:isolate;
}

/* Preserve the meaning and familiar colours of the gauges. */
html.hero-dark-screen #hero .v13-meter {
 background:#253347!important; border-color:#41516a!important;
 box-shadow:none!important; color:var(--hd-text)!important;
}
html.hero-dark-screen #hero .v13-meter-label strong {color:#edf1f7!important;}
html.hero-dark-screen #hero .health .v13-meter-label>span {color:#e5a292!important;}
html.hero-dark-screen #hero .resource-stamina .v13-meter-label>span {color:#dfcb8e!important;}
html.hero-dark-screen #hero .resource-mana .v13-meter-label>span {color:#a5d0e7!important;}
html.hero-dark-screen #hero .progress {background:#151e2c!important;box-shadow:inset 0 1px 2px #10242030!important;border-color:#41516a!important;}
html.hero-dark-screen #hero .health .progress>span {background:linear-gradient(90deg,#b96e5c,#d7967b)!important;}
html.hero-dark-screen #hero .resource-mana .progress>span {background:linear-gradient(90deg,#588da9,#8fbcd2)!important;}
html.hero-dark-screen #hero .resource-stamina .progress>span {background:linear-gradient(90deg,#a99150,#d0bc7e)!important;}
html.hero-dark-screen #hero :is(.hero-combat-details,.hero-combat-details>summary,.hero-stats-body,.v13-combat-numbers,.hero-technique-facts,.attribute-block,.attribute-description) {border-color:var(--hd-line)!important;}
html.hero-dark-screen #hero .hero-combat-stats>button,
html.hero-dark-screen #hero .elemental-stat,
html.hero-dark-screen #hero [data-hero-stat] {
 background:#253347!important; color:var(--hd-text)!important; border-color:#41516a!important;
 box-shadow:none!important;
}
html.hero-dark-screen #hero :is(.hero-combat-stats strong,[data-hero-stat] strong) {color:#edf1f7!important;}
html.hero-dark-screen #hero :is(.hero-combat-stats small,[data-hero-stat] small) {color:#b8c6da!important;}
html.hero-dark-screen #hero [data-hero-stat][aria-expanded=true] {background:#30435d!important;border-color:#92aacb!important;}
html.hero-dark-screen #hero .hero-stat-explanation {background:#202c40!important;color:var(--hd-soft)!important;border-color:#41516a!important;box-shadow:none!important;}
html.hero-dark-screen #hero .hero-stat-explanation strong {color:var(--hd-mint)!important;}
html.hero-dark-screen #hero .hero-stat-explanation p {color:var(--hd-soft)!important;}
html.hero-dark-screen #hero .hero-defense-art {filter:brightness(1.3) saturate(.8)!important;}

/* Attribute rows and the book/skill shelves. */
html.hero-dark-screen #hero :is(.hero-fold-symbol,.attribute-symbol) {background:#253347!important;border-color:#526782!important;box-shadow:none!important;}
html.hero-dark-screen #hero .hero-loadout-slots {
 background:linear-gradient(145deg,#182231,#202c40)!important;
 border-color:#41516a!important;
 box-shadow:inset 0 0 0 2px #354b6840!important;
}
html.hero-dark-screen #hero :is(.attribute-row,.attribute-block,.v14-attribute,.attribute-description,.next-point) {background:transparent!important;color:var(--hd-soft)!important;box-shadow:none!important;}
html.hero-dark-screen #hero :is(.attribute-value,.next-point strong) {color:#edcc95!important;}
html.hero-dark-screen #hero :is(.attribute-description p,.attribute-description small,.next-point span,.fold-head small) {color:var(--hd-soft)!important;}
html.hero-dark-screen #hero .attribute-add {background:#354b68!important;border-color:#6981a2!important;color:#edf1f7!important;box-shadow:none!important;}
html.hero-dark-screen #hero .attribute-add:disabled {background:#202c40!important;border-color:#41516a!important;color:#9cabc0!important;opacity:.65;}
html.hero-dark-screen #hero .gear-bonus {color:#b8d5bf!important;}
html.hero-dark-screen #hero :is(.hero-loadout-slot>button,.hero-loadout-choice,.hero-book-entry,.hero-book-art,.hero-technique-detail) {
 background:linear-gradient(145deg,#253347,#202c40)!important;
 border-color:#41516a!important; color:var(--hd-text)!important;
 box-shadow:inset 0 1px 0 #b2c69a17!important;
}
html.hero-dark-screen #hero :is(.hero-loadout-slot.selected>button,.hero-loadout-choice.equipped,.hero-loadout-choice.inspected) {border-color:#92aacb!important;box-shadow:inset 0 0 0 1px #6981a270!important;}
html.hero-dark-screen #hero .hero-loadout-choice>i {background:#cbdcf2!important;color:#182231!important;border-color:#92aacb!important;box-shadow:none!important;}
html.hero-dark-screen #hero :is(.hero-loadout-slot>button>small,.hero-loadout-choice>small.passive-symbol) {background:#202c40!important;color:#b8c6da!important;}
html.hero-dark-screen #hero .hero-loadout-shelf::before {background:linear-gradient(90deg,transparent,#41516a)!important;}
html.hero-dark-screen #hero .hero-loadout-shelf::after {background:linear-gradient(90deg,#41516a,transparent)!important;}
html.hero-dark-screen #hero :is(.hero-book-copy strong,.hero-technique-detail strong) {color:var(--hd-text)!important;}
html.hero-dark-screen #hero :is(.hero-book-copy small,.hero-technique-detail small) {color:var(--hd-soft)!important;}
html.hero-dark-screen #hero :is(.secondary,.icon-button) {background:#253347!important;border-color:#41516a!important;color:#edf1f7!important;box-shadow:none!important;}
html.hero-dark-screen #hero .primary {background:linear-gradient(#3e5a7b,#304765)!important;border-color:#6981a2!important;color:#edf1f7!important;box-shadow:0 2px 4px #12281f35!important;}
html.hero-dark-screen #hero :is(button,input,summary):focus-visible {outline:2px solid #edcc95!important;outline-offset:2px;}

/* The surrounding chrome changes only while the hero screen is shown. */
html.local-dark-screen :is(.topbar,.bottom-nav) {
 background:#202c40!important; color:var(--hd-soft)!important;
 border-color:#41516a!important; border-image:none!important;
 box-shadow:0 -1px 0 #b0c3a315!important;
}
html.local-dark-screen #app > .bottom-nav::before,
html.local-dark-screen #app > .bottom-nav::after,
html.local-dark-screen .topbar::before,
html.local-dark-screen .topbar::after {background:none!important;border-image:none!important;box-shadow:none!important;}
html.local-dark-screen :is(.topbar,.bottom-nav) button {background-color:transparent!important;color:#b8c6da!important;border-color:#41516a!important;box-shadow:none!important;}
html.local-dark-screen .bottom-nav .active {background:#30435d!important;color:#f1e4cc!important;border-color:#92aacb!important;}
html.local-dark-screen .nav-badge {background:#a95e4d!important;color:#fff4db!important;}
html.local-dark-screen .nav-painted-icon img {filter:drop-shadow(0 1px 1px #10292350)!important;}
html.local-dark-screen .winter-nav-decor {opacity:.75;}

/* Frost can stay pale; the white paper mat behind it cannot. */
html.hero-dark-screen #hero :is(.hero-character,.hero-page-head,.v13-vitals-panel,.v14-attributes-panel,.hero-loadout) {border-image:none!important;}

/* Bag chrome only. Paper item cards keep their original material and colours. */
html.bag-dark-screen #bag {
 color-scheme:dark;
 background:var(--hd-page)!important; color:var(--hd-text)!important;
 scrollbar-color:#6981a2 #182231;
}
html.bag-dark-screen #bag .bag-panel-head {
 background:transparent!important; border-color:var(--hd-line)!important;
 box-shadow:none!important;
}
html.bag-dark-screen #bag .bag-panel-head h1 {
 background:linear-gradient(#253347,#202c40)!important;border-color:#41516a!important;
 color:var(--hd-text)!important;text-shadow:none!important;box-shadow:none!important;
}
html.bag-dark-screen #bag .bag-weight-meter {background:#253347!important;border-color:#41516a!important;box-shadow:none!important;}
html.bag-dark-screen #bag :is(.bag-weight,.bag-weight>i) {color:var(--hd-soft)!important;}
html.bag-dark-screen #bag .bag-weight-bar {background:#151e2c!important;}
html.bag-dark-screen #bag .bag-weight-meter.is-over {background:#59443b!important;border-color:#b38367!important;}
html.bag-dark-screen #bag .bag-weight-meter.is-over :is(.bag-weight,.bag-weight>i) {color:#f3be9c!important;}
html.bag-dark-screen #bag [data-bag-count] {color:var(--hd-soft)!important;}
html.bag-dark-screen #bag .coins {background:#253347!important;color:var(--hd-gold)!important;border-color:#736650!important;box-shadow:none!important;}
html.bag-dark-screen #bag :is(.bag-tools,.bag-filter-fold) {background:transparent!important;border-color:var(--hd-line)!important;box-shadow:none!important;}
html.bag-dark-screen #bag .bag-search {
 background:#253347!important; border-color:#41516a!important;
 box-shadow:inset 0 1px 0 #92b3a515!important; color:var(--hd-soft)!important;
}
html.bag-dark-screen #bag .bag-search input {
 background:transparent!important; color:var(--hd-text)!important;
 border:0!important;box-shadow:none!important;caret-color:#dfc694;
}
html.bag-dark-screen #bag .bag-search input::placeholder {color:#b8c6da!important;opacity:1;}
html.bag-dark-screen #bag .filter-tabs {background:#1d2a3c!important;border-color:#41516a!important;box-shadow:none!important;}
html.bag-dark-screen #bag .bag-filter-toggle {background:#253347!important;color:#edf1f7!important;border-color:#526782!important;box-shadow:none!important;}
html.bag-dark-screen #bag .bag-bulk-toggle {background:#6a4b41!important;color:#efc9ae!important;border-color:#a7846a!important;box-shadow:none!important;}
html.bag-dark-screen #bag .filter-tabs button {
 background:#253347!important;color:#cbdcf2!important;border-color:#41516a!important;box-shadow:none!important;
}
html.bag-dark-screen #bag .filter-tabs button[aria-pressed=true],
html.bag-dark-screen #bag .filter-tabs button.active {background:#354b68!important;color:#f1e4cc!important;border-color:#92aacb!important;}
html.bag-dark-screen #bag .bag-filter-art {background:transparent!important;box-shadow:none!important;}
html.bag-dark-screen #bag .empty-state {color:var(--hd-soft)!important;background:transparent!important;}
html.bag-dark-screen #bag :is(.bag-search input,.filter-tabs button):focus-visible {outline:2px solid #edcc95!important;outline-offset:2px;}
html.bag-dark-screen #bag .item-grid {color:rgb(48,76,72);color-scheme:light;}

/* Empty equipment is part of the interface; occupied cards retain their material. */
html.hero-dark-screen #hero .inspection-side>.inspection-gear {
 background:var(--hd-raised)!important;border-color:var(--hd-edge)!important;
 box-shadow:inset 0 1px #92aacb12!important;color:var(--hd-soft)!important;
}
html.hero-dark-screen #hero .inspection-gear :is(small,b) {color:var(--hd-soft)!important;text-shadow:none!important;}

/* World chrome. Painted scenes, monster illustrations and item cards are untouched. */
html.world-dark-screen #world,
html.settings-dark-screen #settings {background:var(--hd-page)!important;color:var(--hd-text)!important;scrollbar-color:#6981a2 #182231;}
html.world-dark-screen :is(.world-header,#destination,#location-inline-panel,.location-actions,.world-panel-head,.world-deck-header) {
 background:var(--hd-panel)!important;color:var(--hd-text)!important;border-color:var(--hd-edge)!important;border-image:none!important;box-shadow:none!important;
}
html.world-dark-screen :is(#destination,#location-inline-panel)::before,
html.world-dark-screen :is(#destination,#location-inline-panel)::after {background-image:none!important;border-image:none!important;box-shadow:none!important;}
html.world-dark-screen :is(.location-header,.location-title,.destination-head,.world-panel-title,.world-location-caption,.world-choice-caption,.world-choice-footer,.world-panel-subtitle,.world-deck-title) {background:transparent!important;color:var(--hd-text)!important;border-color:var(--hd-edge)!important;text-shadow:none!important;}
html.world-dark-screen #destination :is(h1,h2,h3,.location-name,strong):not(:where(.world-encounter-card *,.opponent-card *)),
html.world-dark-screen #location-inline-panel :is(h1,h2,h3,.world-deck-heading) {color:var(--hd-text)!important;text-shadow:none!important;}
html.world-dark-screen #destination :is(p,small,.eyebrow):not(:where(.world-encounter-card *,.opponent-card *)),
html.world-dark-screen #location-inline-panel :is(.world-panel-caption,.world-empty,.world-pit-empty,.world-pit-description) {color:var(--hd-soft)!important;}
html.world-dark-screen :is(.location-choice,.world-choice,.world-pit-card,.world-pit-tabs,.world-pit-quantity,.world-pit-description,.world-panel-head button,.location-sheet-button,.location-icon-button,.world-deck-expand,.world-deck-back) {background-color:var(--hd-raised)!important;color:var(--hd-text)!important;border-color:var(--hd-edge)!important;box-shadow:none!important;}
html.world-dark-screen :is(.world-choice strong,.world-choice-caption-text,.world-pit-copy strong,.world-pit-copy small) {color:var(--hd-text)!important;text-shadow:none!important;}
html.world-dark-screen :is(.world-mini-primary,.world-mini-secondary,.world-pit-discard,.world-pit-list-back,.world-pit-quantity button):not(:where(.world-encounter-card *,.opponent-card *)) {background:#304765!important;border-color:#526782!important;color:var(--hd-text)!important;box-shadow:none!important;}
html.world-dark-screen :is(.world-mini-primary,.world-mini-secondary):disabled {opacity:.5;}
html.world-dark-screen :is(.location-level,.world-levels,.location-description,.destination-copy) {color:var(--hd-soft)!important;}
html.world-dark-screen :is(.world-header,.world-panel-head) .icon-button {background:var(--hd-raised)!important;border-color:var(--hd-edge)!important;color:var(--hd-text)!important;box-shadow:none!important;}
html.world-dark-screen:not(.winter-preview) :is(.world-choice,.world-choice-scene) {background:var(--hd-raised)!important;border-image:none!important;border-color:var(--hd-edge)!important;box-shadow:none!important;}
html.world-dark-screen:not(.winter-preview) :is(.world-choice,.world-choice-scene)::before,
html.world-dark-screen:not(.winter-preview) :is(.world-choice,.world-choice-scene)::after {background-image:none!important;border-image:none!important;box-shadow:none!important;}
html.world-dark-screen .world-panel-heading {border-color:var(--hd-line)!important;color:var(--hd-text)!important;}
html.world-dark-screen .world-panel-heading>button {background:#253347!important;color:#edf1f7!important;border-color:#526782!important;box-shadow:none!important;}
html.world-dark-screen .world-road-bed {stroke:#142130;}
html.world-dark-screen .world-road-dots {stroke:#d5c39b;}
html.world-dark-screen #world :is(.location-board,.location-board-page,.location-board-viewport,.location-actions-home,.location-actions-panel) {background-color:var(--hd-panel)!important;border-color:var(--hd-line)!important;}
html.world-dark-screen #world #destination-thumb {
 width:62px!important;height:62px!important;flex:0 0 62px!important;box-sizing:border-box!important;
 border:1px solid #7d91a6!important;border-radius:50%!important;object-fit:cover!important;object-position:50% 56%!important;
 padding:0!important;transform:none!important;clip-path:circle(50% at 50% 50%);background:#253347!important;
}
html.hero-dark-screen #hero .attribute-description {background:#202e42!important;border-color:#536981!important;color:#dce7f1!important;}
html.hero-dark-screen #hero .attribute-description p {color:#e5edf5!important;}
html.hero-dark-screen #hero .attribute-breakdown {color:#c8d7e6!important;}
html.hero-dark-screen #hero .attribute-breakdown b {background:#3a5069!important;color:#f1e4c5!important;border-color:#70869a!important;}
html.hero-dark-screen #hero .next-point {border-color:#536981!important;color:#c8d7e6!important;gap:8px;}
html.hero-dark-screen #hero .next-point strong {color:#f1d391!important;}

/* Settings keep the same controls and behavior, using the chat palette. */
html.settings-dark-screen #settings :is(.vs-panel,.vs-group,.vg-audio-options,.winter-style-control,.vg-quests-open) {background:var(--hd-panel)!important;color:var(--hd-text)!important;border-color:var(--hd-edge)!important;box-shadow:none!important;border-image:none!important;}
html.settings-dark-screen #settings :is(.vs-hero,.vs-row,.vs-item,.vs-account-link,.vs-invite,.winter-style-options button,.vs-hero-switch) {background:var(--hd-raised)!important;color:var(--hd-text)!important;border-color:var(--hd-edge)!important;box-shadow:none!important;}
html.settings-dark-screen #settings :is(strong,h3,h3>span,.vs-copy,.vs-go,.vg-go,.vg-audio-options label,.vg-audio-options summary) {color:var(--hd-text)!important;background-color:transparent!important;text-shadow:none!important;}
html.settings-dark-screen #settings :is(small,.vs-hero span,.vs-footer,.vs-footer span,.vg-audio-options output,.text-scale-input output) {color:var(--hd-soft)!important;text-shadow:none!important;}
html.settings-dark-screen #settings .vs-group h3::after {background:var(--hd-line)!important;}
html.settings-dark-screen #settings .vs-ic {background:transparent!important;box-shadow:none!important;}
html.settings-dark-screen #settings :is(.vs-item[aria-checked=true],.winter-style-options [aria-pressed=true]) {border-color:#92aacb!important;background:#30435d!important;}
html.settings-dark-screen #settings .toggle {background:#41516a!important;}
html.settings-dark-screen #settings [aria-checked=true] .toggle {background:#5882aa!important;}
html.settings-dark-screen #settings .is-danger .vs-copy strong {color:#e5a292!important;}
html.settings-dark-screen #settings input {accent-color:#8fb2db;}

/* Shells of item selection/confirmation dialogs; item dossiers and chat stay native. */
html.local-dark-screen #modal-root .modal:not(.chat-modal):not(.item-detail) {
 background:var(--hd-panel)!important;color:var(--hd-text)!important;border-color:#6981a2!important;border-image:none!important;
 box-shadow:0 12px 36px #07101b80!important;
}
html.local-dark-screen #modal-root .modal:not(.chat-modal):not(.item-detail)::before,
html.local-dark-screen #modal-root .modal:not(.chat-modal):not(.item-detail)::after {background-image:none!important;border-image:none!important;box-shadow:none!important;}
html.local-dark-screen #modal-root .modal:not(.chat-modal):not(.item-detail)>.modal-header,
html.local-dark-screen #modal-root .modal:not(.chat-modal):not(.item-detail)>.modal-header :is(h2,h3) {color:var(--hd-text)!important;border-color:var(--hd-line)!important;}
html.local-dark-screen #modal-root .modal:not(.chat-modal):not(.item-detail)>.modal-copy,
html.local-dark-screen #modal-root .modal:not(.chat-modal):not(.item-detail)>.empty-state {color:var(--hd-soft)!important;}
html.local-dark-screen #modal-root :is(.slot-sheet,.confirm-modal) .icon-button {background:var(--hd-raised)!important;color:var(--hd-text)!important;border-color:var(--hd-edge)!important;}
html.local-dark-screen #modal-root .item-grid {color:rgb(48,76,72);color-scheme:light;}
html.local-dark-screen #valgard-effect-note.discard-note {
 background:var(--hd-panel)!important;border-color:#6981a2!important;color:var(--hd-text)!important;
 box-shadow:0 6px 24px #07101b80!important;
}
html.local-dark-screen #valgard-effect-note.discard-note::after {background:var(--hd-panel)!important;border-color:#6981a2!important;}
html.local-dark-screen .discard-note :is(h3,.effect-note-text,.discard-count-head,.num-step input) {color:var(--hd-text)!important;background-color:transparent!important;}
html.local-dark-screen .discard-note :is(header,.discard-count,.discard-actions) {border-color:var(--hd-line)!important;}
html.local-dark-screen .discard-note :is(.secondary,.num-step button,.num-step input) {background:#253347!important;color:#edf1f7!important;border-color:#526782!important;}

/* Reviewed sheets: empty slot, character selection, party and settings footer. */
html.local-dark-screen #modal-root .slot-sheet .modal-header {display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:36px;margin-bottom:8px;}
html.local-dark-screen #modal-root .slot-sheet .modal-header h2 {margin:0;line-height:1.3;}
html.local-dark-screen #modal-root .slot-sheet .modal-copy {margin:0 0 16px;line-height:1.5;}
html.local-dark-screen #modal-root .slot-sheet .empty-state {background:#25374c!important;border-color:#536981!important;border-radius:12px;padding:22px 14px;color:#d0dfec!important;}
html.local-dark-screen #modal-root .slot-sheet .empty-state p {color:#d0dfec!important;font-size:12px;line-height:1.6;margin:10px 0 0;}
html.local-dark-screen #modal-root .slot-sheet .empty-state>.icon {color:#91badc!important;}
html.local-dark-screen #modal-root .slot-sheet [data-close] {flex:none;width:32px;height:32px;display:grid;place-items:center;padding:0;background:#31465f!important;color:#e5edf5!important;border-color:#70869a!important;border-radius:9px;}
html.local-dark-screen #modal-root .character-modal :is(.character-sheet-heading h3,.character-picker-heading h2,.character-slot strong) {color:#e5edf5!important;text-shadow:none!important;}
html.local-dark-screen #modal-root .character-modal :is(.character-slot,.character-slot-empty) {background:#2b3d54!important;color:#d4e1ed!important;border-color:#60758d!important;box-shadow:none!important;}
html.local-dark-screen #modal-root .character-modal .character-slot.active {background:#36536a!important;border-color:#89b5b7!important;}
html.local-dark-screen #modal-root .character-modal :is(.character-slot-add,.character-slot small,.character-slot-state) {color:#c6d6e5!important;background-color:transparent!important;border-color:#60758d!important;}
html.local-dark-screen #modal-root .character-modal :is([data-close],.character-sheet-heading button) {background:#31465f!important;color:#e5edf5!important;border-color:#70869a!important;}
html.local-dark-screen #modal-root .party-modal :is(h2,h3,.party-empty-intro>strong,.party-sheet-title,.party-sheet-head strong) {color:#e5edf5!important;text-shadow:none!important;}
html.local-dark-screen #modal-root .party-modal :is(p,label,small,.party-sheet-subtitle) {color:#c5d5e4!important;}
html.local-dark-screen #modal-root .party-modal :is(.party-sheet-join,.party-sheet-code,.party-card-member,.party-code-info) {background:#2b3d54!important;border-color:#536981!important;color:#e5edf5!important;box-shadow:none!important;}
html.local-dark-screen #modal-root .party-modal :is(input,.secondary,[data-close]) {background:#31465f!important;color:#e5edf5!important;border-color:#70869a!important;box-shadow:none!important;}
html.settings-dark-screen #settings .vs-footer {background:transparent!important;padding:8px 0 2px;box-shadow:none!important;}
html.settings-dark-screen #settings .vs-footer>span {background:#25374c!important;border-color:#536981!important;box-shadow:none!important;color:#c5d5e4!important;}
html.local-dark-screen:not(.battle-night-screen) :is(#characters-open,#character-open,#header-character,.character-switch,.header-character-button) {background:#25374c!important;border-color:#536981!important;box-shadow:none!important;}
html.local-dark-screen:not(.battle-night-screen) :is(.character-switch-open,.battle-character-switch) {background:#25374c!important;border-color:#536981!important;box-shadow:none!important;}

/* Softer paper keeps its rarity hue, typography, icons and frame geometry. */
html.bag-dark-screen #bag .relic-card,
html.hero-dark-screen #hero .inspection-side>.inspection-item,
html.hero-dark-screen #hero .relic-card {filter:brightness(.80);}

/* Keep the online jewel green, remove its old ivory backing only. */
html.world-dark-screen #world #online-open .shore-online-track>i:after {box-shadow:0 0 0 2px #1d2a3c,0 1px 3px #08121d66!important;}
html.world-dark-screen #world #online-open .shore-online-track {box-shadow:none!important;border:0!important;}
html.world-dark-screen #world #online-open .shore-online-track>i {box-shadow:none!important;}

html #world :is([data-pin="duel-circle"],[data-scene-select="duel-circle"]) .world-map-medallion {overflow:hidden!important;border-radius:50%!important;}
html #world :is([data-pin="duel-circle"],[data-scene-select="duel-circle"]) .world-map-medallion>img {width:100%!important;height:100%!important;object-fit:cover!important;object-position:50% 56%!important;clip-path:none!important;border-radius:50%!important;padding:0!important;transform:none!important;position:absolute!important;inset:0!important;margin:0!important;}

/* A quiet blue hour for combat. Static stars cost no timers, DOM or animation. */
html.battle-night-screen #battle-root {background:#233348!important;color:#e5edf5!important;}
html.battle-night-screen #app #battle-root>.spell-panel-battle{background:#293c50!important;}
html.battle-night-screen.card-field #battle-root .battle-field {
 background-color:#253b50!important;
 background-image:radial-gradient(circle at 15% 11%,#e0efff88 0 1px,transparent 1.6px),radial-gradient(circle at 68% 7%,#d4e9ff77 0 1px,transparent 1.6px),radial-gradient(circle at 87% 22%,#e2eeff66 0 1px,transparent 1.6px),radial-gradient(circle at 39% 27%,#f0f8ff66 0 .8px,transparent 1.4px),linear-gradient(#263e54,#344958 58%,#34424e)!important;
 border-color:#4b6175!important;
}
html.battle-night-screen.card-field #battle-root .battle-field::before {background:linear-gradient(transparent,#8298ac80 20%,#8298ac80 80%,transparent)!important;}
html.battle-night-screen.card-field #battle-root .battle-field::after {background:#30465b!important;color:#e5cf9b!important;border-color:#718598!important;}
html.battle-night-screen.card-field #battle-root :is(.battle-field,.card-enemy-scroll,.card-ally-scroll)>.battle-unit {
 filter:brightness(.88);
}
/* Combat controls keep their original paper, inks, frames and geometry. */
html.battle-night-screen #battle-root{color:rgb(48,76,72)!important;--ink:#183e40;--muted:#627d78;--paper:#fffdf7;--panel:#fffdf7;}
html.battle-night-screen #battle-root :is(.battle-top,.battle-console){filter:brightness(.86);color:rgb(48,76,72);color-scheme:light;}
html.world-dark-screen #world .world-encounter-card{filter:brightness(.88);color:rgb(48,76,72);color-scheme:light;}

