/* Three complete interface palettes. Original maps, portraits and spell art are untouched. */
:root,html[data-theme="retro"]{
 --theme-bg:#f4e3b3;--theme-paper:#eed69e;--theme-paper-deep:#dfbd78;--theme-card:#fff0c7;--theme-ink:#392711;--theme-muted:#654824;--theme-border:#b68742;
 --theme-accent:#477316;--theme-accent-ink:#365d0a;--theme-accent-hover:#345b0d;--theme-accent-text:#fff7dc;--theme-accent-soft:#d6dfa0;--theme-gold:#ffd468;--theme-gold-ink:#694306;
 --theme-chrome:#302714;--theme-chrome-2:#44371d;--theme-chrome-text:#fff0be;--theme-chrome-muted:#d4be8c;--theme-chrome-line:#b78a3d;--theme-positive:#2f5e08;--theme-negative:#a33025;
 --theme-hp-bg:#f7d7b0;--theme-hp-ink:#963c23;--theme-mana-bg:#d4e3e8;--theme-mana-ink:#1c5d87;--theme-damage-bg:#efdc8f;--theme-damage-ink:#775106;--theme-hero-rgb:48,39,20;
}
html[data-theme="bonta"]{
 --theme-bg:#f2efdd;--theme-paper:#e9eadb;--theme-paper-deep:#cbd9dd;--theme-card:#fffcef;--theme-ink:#153451;--theme-muted:#415e76;--theme-border:#8ca8b7;
 --theme-accent:#215d91;--theme-accent-ink:#174d7b;--theme-accent-hover:#164772;--theme-accent-text:#fffbe9;--theme-accent-soft:#c7dfed;--theme-gold:#f9d786;--theme-gold-ink:#765411;
 --theme-chrome:#132d49;--theme-chrome-2:#1c4064;--theme-chrome-text:#fff4d7;--theme-chrome-muted:#bbd3e5;--theme-chrome-line:#728fa6;--theme-positive:#24692c;--theme-negative:#ab3429;
 --theme-hp-bg:#f5ded3;--theme-hp-ink:#913f32;--theme-mana-bg:#d3e9f4;--theme-mana-ink:#18587f;--theme-damage-bg:#f1e2b7;--theme-damage-ink:#795319;--theme-hero-rgb:19,45,73;
}
html[data-theme="brakmar"]{
 --theme-bg:#21191b;--theme-paper:#302326;--theme-paper-deep:#23191d;--theme-card:#3e2c2f;--theme-ink:#ffe6cc;--theme-muted:#d4b6a0;--theme-border:#906051;
 --theme-accent:#983b37;--theme-accent-ink:#ffb6a8;--theme-accent-hover:#ad4740;--theme-accent-text:#fff1da;--theme-accent-soft:#603231;--theme-gold:#f6b86f;--theme-gold-ink:#ffc282;
 --theme-chrome:#24181c;--theme-chrome-2:#40242a;--theme-chrome-text:#ffe5c6;--theme-chrome-muted:#d7ac98;--theme-chrome-line:#a86648;--theme-positive:#b1d780;--theme-negative:#ffad98;
 --theme-hp-bg:#55332f;--theme-hp-ink:#ffc7a4;--theme-mana-bg:#273c4b;--theme-mana-ink:#a9d6f3;--theme-damage-bg:#514025;--theme-damage-ink:#ffda93;--theme-hero-rgb:36,24,28;
}
html[data-theme]{--rv-paper:var(--theme-paper);--rv-paper-deep:var(--theme-paper-deep);--rv-ink:var(--theme-ink);--rv-muted:var(--theme-muted);--rv-olive:var(--theme-accent);--rv-olive-dark:var(--theme-chrome);--rv-gold:var(--theme-gold);--rv-line:var(--theme-border);--bg:var(--theme-bg);--panel:var(--theme-card);--line:var(--theme-border);--cream:var(--theme-ink);--muted:var(--theme-muted);--gold:var(--theme-gold-ink);--mint:var(--theme-positive)}
html[data-theme] body{background-color:var(--theme-bg)}
html[data-theme] :is(button,a,summary,input,select):focus-visible{outline-color:var(--theme-gold-ink)}

/* Labelled swatches keep the same accessible layout wherever a picker is mounted. */
html[data-theme] [data-theme-picker]{display:flex;flex-wrap:wrap;gap:6px;min-width:0;margin:10px 0 0;padding:0;border:0}
html[data-theme] [data-theme-picker] .theme-option{display:flex;align-items:center;justify-content:center;gap:6px;flex:1 1 72px;min-width:0;min-height:36px;padding:7px 7px;border:1px solid var(--theme-border)!important;border-radius:7px;background:var(--theme-card)!important;color:var(--theme-ink)!important;box-shadow:none;font:600 11.5px/1.3 var(--font-ui,system-ui,sans-serif)!important;letter-spacing:0;cursor:pointer;white-space:nowrap;transition:background .15s,border-color .15s}
html[data-theme] [data-theme-picker] .theme-option>span{color:inherit!important;font-size:11.5px!important;line-height:1.3}
html[data-theme] [data-theme-picker] .theme-option[aria-pressed=true]{background:var(--theme-accent-soft)!important;border-color:var(--theme-accent)!important;box-shadow:inset 0 0 0 1px var(--theme-accent);font-weight:800!important}
html[data-theme] [data-theme-picker] .theme-option:hover{border-color:var(--theme-accent)!important;transform:none}
html[data-theme] [data-theme-picker] .theme-option:focus-visible{outline:3px solid var(--theme-accent-ink);outline-offset:3px}
.theme-swatch{display:block;width:16px;height:16px;flex:0 0 16px;border:1px solid #fff8;border-radius:50%;box-shadow:0 1px 3px #0005}.theme-swatch-retro{background:conic-gradient(#477316 0deg 140deg,#edb42d 140deg 220deg,#eed69e 220deg 360deg)}.theme-swatch-bonta{background:conic-gradient(#215d91 0deg 140deg,#d0ae51 140deg 220deg,#fffcef 220deg 360deg)}.theme-swatch-brakmar{background:conic-gradient(#a63b34 0deg 140deg,#d49154 140deg 220deg,#302326 220deg 360deg)}

/* Home: bright parchment under the illustration, with rich chrome over the hero. */
html[data-theme] .site-header{background:linear-gradient(180deg,var(--theme-chrome),rgba(var(--theme-hero-rgb),.9));border-color:var(--theme-chrome-line);color:var(--theme-chrome-text)}
html[data-theme] .site-header :is(.brand,nav){color:var(--theme-chrome-text)}html[data-theme] .site-header .brand small{color:var(--theme-chrome-muted)}
html[data-theme] .hero-shade{background:linear-gradient(90deg,rgba(var(--theme-hero-rgb),.97) 0%,rgba(var(--theme-hero-rgb),.91) 24%,rgba(var(--theme-hero-rgb),.72) 39%,rgba(var(--theme-hero-rgb),.15) 59%,transparent 78%),linear-gradient(0deg,var(--theme-bg),transparent 8%)}
html[data-theme] .hero-copy{color:var(--theme-chrome-text)}html[data-theme] .hero-copy :is(h1,.text-link){color:var(--theme-chrome-text)}html[data-theme] .hero-copy :is(em,.eyebrow,.hero-facts b){color:var(--theme-gold)}html[data-theme] .hero-copy>p{color:var(--theme-chrome-text)}html[data-theme] .hero-copy :is(.save-note,.hero-facts span){color:var(--theme-chrome-muted)}html[data-theme] .hero-facts div{border-color:var(--theme-chrome-line)}
html[data-theme] .art-caption{background:var(--theme-chrome);color:var(--theme-chrome-text)}
html[data-theme] :is(.button-gold,.account-panel .account-login){background:var(--theme-accent);border-color:var(--theme-accent-hover);color:var(--theme-accent-text);box-shadow:0 4px 0 color-mix(in srgb,var(--theme-accent-hover) 75%,#000)}html[data-theme] :is(.button-gold,.account-panel .account-login):hover{background:var(--theme-accent-hover);color:var(--theme-accent-text)}
html[data-theme] .button-outline{background:var(--theme-card);border-color:var(--theme-border);color:var(--theme-ink)}
html[data-theme] :is(.feature-grid article,.honesty){background:var(--theme-card);border-color:var(--theme-border)}html[data-theme] .feature-grid article{box-shadow:0 4px 0 color-mix(in srgb,var(--theme-border) 40%,transparent)}
html[data-theme] :is(.feature-num,.honesty summary){color:var(--theme-ink)}html[data-theme] .status.live{background:var(--theme-accent-soft);color:var(--theme-positive);border-color:var(--theme-accent)}html[data-theme] .status.next{color:var(--theme-gold-ink);border-color:var(--theme-border);background:var(--theme-paper)}html[data-theme] .status.later{color:var(--theme-mana-ink);border-color:var(--theme-border);background:var(--theme-mana-bg)}
html[data-theme] :is(.roadmap-grid article,.combat-steps li>span){border-color:var(--theme-border)}html[data-theme] .combat-steps li>span{background:var(--theme-paper);color:var(--theme-gold-ink)}html[data-theme] .join{background:radial-gradient(ellipse at center,var(--theme-accent-soft),transparent 68%)}html[data-theme] footer p{color:var(--theme-muted)}

/* Shared paper surfaces, including the native modal dialogs and context menu. */
html[data-theme] :is(#player-dialog,#class-dialog,#prepare-dialog,#monster-context,#account-control,.account-panel,#game-topbar){background:var(--theme-paper);color:var(--theme-ink);border-color:var(--theme-border);box-shadow:0 12px 44px #140d0840}html[data-theme]:where([data-theme="nuit"]) :is(#player-dialog,#class-dialog,#prepare-dialog,#monster-context,#account-control,.account-panel,#game-topbar){box-shadow:0 12px 44px #0a0d1240}
html[data-theme] :is(#player-dialog,#class-dialog,#prepare-dialog)::backdrop{background:#100a08a8;backdrop-filter:blur(5px)}html[data-theme]:where([data-theme="nuit"]) :is(#player-dialog,#class-dialog,#prepare-dialog)::backdrop{background:#090b0fa8}
html[data-theme] :is(#player-dialog,#class-dialog,#prepare-dialog,#monster-context,#account-control,.account-panel) :is(h2,h3,h4,strong,b,label,summary){color:var(--theme-ink)}
html[data-theme] :is(#player-dialog,#class-dialog,#prepare-dialog,#monster-context,#account-control,.account-panel) :is(p,small){color:var(--theme-muted)}
html[data-theme] :is(#player-dialog,#class-dialog,#prepare-dialog,#monster-context,#account-control,.account-panel) :is(header,nav,footer){border-color:var(--theme-border)}html[data-theme] #player-dialog header{background:var(--theme-paper)}
html[data-theme] :is(#player-dialog,#class-dialog,#prepare-dialog) button{background:var(--theme-accent);color:var(--theme-accent-text);border-color:var(--theme-accent-hover)}html[data-theme] :is(#player-dialog,#class-dialog,#prepare-dialog) button:hover:not(:disabled){background:var(--theme-accent-hover);color:var(--theme-accent-text)}
html[data-theme] :is(#player-dialog,#class-dialog,#prepare-dialog) button :is(span,strong,b,small){color:inherit}
html[data-theme] :is(#player-dialog-close,#close-book,#cancel-prepare){background:var(--theme-paper-deep)!important;color:var(--theme-ink)!important;border-color:var(--theme-border)!important}
html[data-theme] :is(#player-dialog,#class-dialog) :is(input,select){background:var(--theme-card);color:var(--theme-ink);border-color:var(--theme-border)}
html[data-theme] :is(.account-panel,.account-panel:before){background:var(--theme-paper);border-color:var(--theme-border)}html[data-theme] .account-nav>summary{background:var(--theme-paper);color:var(--theme-ink);border-color:var(--theme-border)}html[data-theme] .account-avatar{background:var(--theme-accent-soft)}html[data-theme] .account-nav summary i{border-color:var(--theme-muted)}html[data-theme] :is(.account-panel .eyebrow,.account-register,.account-footnote,#save-status,#account-trigger small,.account-chevron){color:var(--theme-muted)}html[data-theme] #account-trigger strong{color:var(--theme-ink)}html[data-theme] :is(.account-save,.account-footnote,#account-menu){border-color:var(--theme-border)}

/* Inventory and character: saturated semantic colours, legible in all three palettes. */
html[data-theme] :is(.equipment-paper,.character-identity){background:radial-gradient(ellipse at 50% 32%,var(--theme-card),var(--theme-paper-deep));border-color:var(--theme-border)}html[data-theme] .hero-disc{background:var(--theme-accent-soft);border-color:var(--theme-border);box-shadow:0 0 0 7px color-mix(in srgb,var(--theme-accent-soft) 35%,transparent)}html[data-theme] .class-illustration{background:radial-gradient(ellipse,var(--theme-accent-soft),transparent 70%)}
html[data-theme] :is(.hero-portrait strong,.identity-class,.identity-level strong,.bag-empty strong,.attribute-heading h3,.attribute-card strong,.recipe-detail h3){color:var(--theme-ink)}html[data-theme] :is(.hero-portrait>span,.identity-level span,.identity-xp,.bag-topline,.bag-empty span,.bag-footer,.equipped-legend,.character-next span,.attribute-card small,.attribute-heading>div>span,.attribute-heading>strong>small,.recipe-detail>small,.workshop-intro,.recipe-empty){color:var(--theme-muted)}
html[data-theme] :is(.bag-grid,.item-inspector,.equipment-comparison,.recipe-list,.recipe-detail,.stat-breakdown,.character-next){background:var(--theme-paper-deep);border-color:var(--theme-border)}
html[data-theme] #player-dialog :is(.equip-slot,.bag-cell,.bag-tabs button,.recipe-option,#character-class){background:var(--theme-card);color:var(--theme-ink);border-color:var(--theme-border);box-shadow:inset 0 0 0 2px color-mix(in srgb,var(--theme-paper) 50%,transparent)}
html[data-theme] #player-dialog :is(.equip-slot,.bag-cell,.recipe-option):hover:not(:disabled){background:var(--theme-accent-soft);color:var(--theme-ink);border-color:var(--theme-accent)}html[data-theme] #player-dialog :is(.bag-cell.selected,.recipe-option.selected,.bag-tabs button[aria-pressed=true]){background:var(--theme-accent-soft);color:var(--theme-ink);border-color:var(--theme-accent);box-shadow:inset 0 0 0 1px var(--theme-accent)}
html[data-theme] #player-dialog .bag-cell.equipped{background:var(--theme-accent-soft);border-color:var(--theme-accent)}html[data-theme] :is(.item-count,.reward-owned){background:var(--theme-paper);color:var(--theme-ink)}html[data-theme] .equipped-mark{color:var(--theme-positive)}
html[data-theme] :is(.attribute-card,.item-card,.recipe-ingredients li,.comparison-stats>div){background:var(--theme-card);border-color:var(--theme-border)}html[data-theme] :is(.item-inspector>img,.inspector-heading>img){background:var(--theme-card);border-color:var(--theme-border)}
html[data-theme] .stat-chips>span{background:var(--theme-hp-bg);border-color:var(--theme-border)}html[data-theme] .stat-chips .stat-mana{background:var(--theme-mana-bg)}html[data-theme] .stat-chips .stat-power{background:var(--theme-damage-bg)}html[data-theme] #player-dialog .stat-chips b{color:var(--theme-hp-ink)}html[data-theme] #player-dialog .stat-chips .stat-mana b{color:var(--theme-mana-ink)}html[data-theme] #player-dialog .stat-chips .stat-power b{color:var(--theme-damage-ink)}html[data-theme] #player-dialog .stat-chips small{color:var(--theme-muted)}
html[data-theme] .attribute-icon{background:var(--theme-hp-bg)}html[data-theme] .attribute-card.power .attribute-icon{background:var(--theme-damage-bg)}html[data-theme] .attribute-card.focus .attribute-icon{background:var(--theme-mana-bg)}html[data-theme] #player-dialog .attribute-card>button{background:var(--theme-accent)!important;color:var(--theme-accent-text)!important;border-color:var(--theme-accent-hover)!important}
html[data-theme] #player-dialog :is(.item-inspector p,.positive,.craft-ready,.recipe-condition.ready){color:var(--theme-positive)}html[data-theme] #player-dialog :is(.negative,.missing){color:var(--theme-negative)}html[data-theme] #player-dialog :is(.neutral,.item-origin,.resource-purpose,.item-sale,.item-inspector span,.item-inspector small,.comparison-stats span,.recipe-ingredients span,.sale-actions span,.stat-breakdown p,.stat-breakdown td){color:var(--theme-muted)}
html[data-theme] #player-dialog :is(.kamas,.recipe-price,.recipe-cost,.reward-kamas,.item-bonus-damage){color:var(--theme-gold-ink)}html[data-theme] #player-dialog .item-bonus-hp{color:var(--theme-hp-ink)}html[data-theme] #player-dialog .item-bonus-mana{color:var(--theme-mana-ink)}html[data-theme] #player-dialog :is(.text-button,#character-reset){background:transparent;color:var(--theme-muted);border-color:transparent}html[data-theme] #player-dialog progress{accent-color:var(--theme-accent)}html[data-theme] #player-dialog progress::-webkit-progress-bar{background:var(--theme-paper-deep)}html[data-theme] #player-dialog progress::-webkit-progress-value{background:var(--theme-accent)}html[data-theme] #player-dialog :is(th,td){border-color:var(--theme-border)}

/* Grimoire and preparation use the same parchment as the character sheet. */
html[data-theme] :is(#class-dialog,#prepare-dialog) :is(.combat-note,.spell-options>small,.spell-origin,.spell-origin summary,.spell-role-label,.loadout-heading>span,.loadout-editor>p,.spell-detail-title h3>small,.next-rank>small,.basic-attack-note){color:var(--theme-muted)!important}
html[data-theme] :is(.spell-detail,.class-card,.prepared-list>div){background:var(--theme-card)!important;color:var(--theme-ink);border-color:var(--theme-border)}html[data-theme] #combat-ui .class-card small{color:var(--theme-muted)}html[data-theme] #combat-ui .class-card.active{background:var(--theme-accent-soft)!important;border-color:var(--theme-accent)}
html[data-theme] #class-dialog .class-card{color:var(--theme-ink)}html[data-theme] #class-dialog nav>button{background:var(--theme-paper-deep);color:var(--theme-ink);border-color:var(--theme-border)}html[data-theme] #class-dialog nav>button.active{background:var(--theme-accent);color:var(--theme-accent-text)}html[data-theme] #class-dialog .book-empty{color:var(--theme-muted)}
html[data-theme] #combat-ui :is(.spell-detail p,.adapted-effect,.spell-effect-line){color:var(--theme-ink)!important}html[data-theme] #combat-ui .spell-origin p{color:var(--theme-muted)!important}html[data-theme] #combat-ui .spell-origin .origin-note{color:var(--theme-muted)!important}html[data-theme] #combat-ui .spell-detail.locked{opacity:1}html[data-theme] .adapted-effect{border-color:var(--theme-accent)}
html[data-theme] :is(.loadout-editor,.next-rank){background:var(--theme-paper-deep);border-color:var(--theme-border);color:var(--theme-ink)}html[data-theme] .loadout-slot{background:var(--theme-card);border-color:var(--theme-border)}html[data-theme] .loadout-slot>span{color:var(--theme-ink)}html[data-theme] .loadout-slot.empty{background:transparent}html[data-theme] .loadout-slot.empty>span{color:var(--theme-muted)}html[data-theme] .loadout-key{background:var(--theme-accent);color:var(--theme-accent-text);border-color:var(--theme-accent-hover)}
html[data-theme] :is(.spell-status,.spell-status.prepared){background:var(--theme-accent-soft);color:var(--theme-ink);border-color:var(--theme-border)}html[data-theme] .spell-detail.not-adapted .spell-status{background:var(--theme-paper-deep);color:var(--theme-muted)}html[data-theme] #class-dialog .spell-filters button{background:var(--theme-card);color:var(--theme-ink);border-color:var(--theme-border)}html[data-theme] #class-dialog .spell-filters button[aria-pressed=true]{background:var(--theme-accent-soft);color:var(--theme-ink);border-color:var(--theme-accent)}html[data-theme] #class-dialog .spell-filters button b{background:var(--theme-paper-deep)}html[data-theme] #class-dialog .spell-options>button[data-upgrade]:not(:disabled){background:var(--theme-accent)!important;color:var(--theme-accent-text)!important}
html[data-theme] :is(#combat-ui,#prepare-dialog) .spell-metric{color:var(--theme-muted)}html[data-theme] :is(#combat-ui,#prepare-dialog) .spell-metric.mana{color:var(--theme-mana-ink)}html[data-theme] :is(#combat-ui,#prepare-dialog) .spell-metric.range{color:var(--theme-positive)}html[data-theme] :is(#combat-ui,#prepare-dialog) .spell-metric.recharge{color:var(--theme-gold-ink)}html[data-theme] #prepare-dialog .basic-attack-note{background:var(--theme-paper-deep);border-color:var(--theme-border)}html[data-theme] #prepare-dialog .prepared-list kbd{background:var(--theme-accent);color:var(--theme-accent-text);border-color:var(--theme-accent-hover)}

/* Dark game chrome retains its contrast independently from the paper surfaces. */
html[data-theme] :is(.glass,#spell-dock,#fight-hud,#battle-feedback,#chat-panel,#chat-toggle){background:var(--theme-chrome)!important;color:var(--theme-chrome-text);border-color:var(--theme-chrome-line)!important;box-shadow:0 7px 24px #140b0844!important}html[data-theme]:where([data-theme="nuit"]) :is(.glass,#spell-dock,#fight-hud,#battle-feedback,#chat-panel,#chat-toggle){box-shadow:0 7px 24px #0a0d1244!important}
html[data-theme] :is(.title h1,.title small,.map header,.tools button,.combat-launch button,#player-level,#player-strip button,.dock-identity b,.dock-book span,#fight-status,#fight-enemies,#leave-fight,#cast-action strong){color:var(--theme-chrome-text)}html[data-theme] :is(.dock-identity small,#player-strip #player-xp-text,#cast-info){color:var(--theme-chrome-muted)!important}html[data-theme] #spell-dock #player-strip{border-color:var(--theme-chrome-line)}html[data-theme] #player-strip progress{accent-color:var(--theme-gold)}
html[data-theme] body #spell-bar :is(.spell-slot,.spell-empty){background:var(--theme-chrome-2)!important;border-color:var(--theme-chrome-line)!important;color:var(--theme-chrome-muted)}html[data-theme] body #spell-bar .spell-slot.active{background:var(--theme-accent)!important;outline-color:var(--theme-gold);border-color:var(--theme-gold)!important}html[data-theme] body #spell-bar :is(.spell-key,.spell-rank,.spell-slot em){background:var(--theme-chrome)!important;color:var(--theme-chrome-text);border-color:var(--theme-chrome-line)}
html[data-theme] #cast-action .spell-metric{color:var(--theme-chrome-text)!important}html[data-theme] #cast-action .spell-metric.mana{color:#acd9f5!important}html[data-theme] #cast-action .spell-metric.recharge{color:var(--theme-gold)!important}html[data-theme] #cast-action.has-active-effects strong{color:#d7ed98}html[data-theme] #cast-action #cast-self{background:var(--theme-accent);color:var(--theme-accent-text);border-color:var(--theme-chrome-line)}html[data-theme] .monster-toggle{background:var(--theme-chrome)!important;color:var(--theme-chrome-text);border-color:var(--theme-chrome-line)!important}
html[data-theme] #monster-context :is(header span,li b){color:var(--theme-muted)}html[data-theme] #monster-context #attack-group{background:var(--theme-paper-deep);color:var(--theme-ink);border-color:var(--theme-border)}html[data-theme] #monster-context #attack-group:hover{background:var(--theme-accent-soft)}html[data-theme] #monster-context #attack-group span{color:var(--theme-accent-ink)}

/* Chat colours remain readable on the deliberately dark, compact overlay. */
html[data-theme] #retroverse-chat{color:var(--theme-chrome-text)}html[data-theme] .chat-header{border-color:var(--theme-chrome-line)}html[data-theme] .chat-header strong{color:var(--theme-gold)}html[data-theme] :is(.chat-header span,.chat-channel-note,.chat-message-meta time,.chat-compose-note,#chat-clear,#chat-toggle kbd,.chat-entry time){color:var(--theme-chrome-muted)!important}html[data-theme] .chat-tabs button{color:var(--theme-chrome-muted);background:transparent}html[data-theme] .chat-tabs button[aria-selected=true]{color:var(--theme-gold);border-color:var(--theme-gold)}html[data-theme] .chat-empty strong{color:var(--theme-chrome-text)}html[data-theme] .chat-empty p{color:var(--theme-chrome-muted)!important}html[data-theme] .chat-message p{color:var(--theme-chrome-text)!important}html[data-theme] .chat-message-meta b{color:var(--theme-gold)}html[data-theme] .chat-message.own{background:var(--theme-chrome-2);border-color:var(--theme-chrome-line)}html[data-theme] .chat-message.own .chat-message-meta b{color:var(--theme-gold)}html[data-theme] :is(#chat-access a,#chat-status button,#chat-send){background:var(--theme-chrome-2);color:var(--theme-gold);border-color:var(--theme-chrome-line)}html[data-theme] #chat-form{background:var(--theme-chrome-2);border-color:var(--theme-chrome-line)}html[data-theme] #chat-input{color:var(--theme-chrome-text)}html[data-theme] #chat-input::placeholder{color:var(--theme-chrome-muted)}html[data-theme] #chat-close{color:var(--theme-chrome-text);border-color:var(--theme-chrome-line)}html[data-theme] #chat-unread{background:var(--theme-gold);color:var(--theme-chrome)}html[data-theme] .chat-entry.system span{color:var(--theme-chrome-text)}

@media(max-width:760px){html[data-theme] .hero-shade{background:linear-gradient(180deg,var(--theme-bg) 0%,var(--theme-bg) calc(100% - 320px),transparent calc(100% - 220px),transparent 93%,var(--theme-bg) 100%)}html[data-theme] .hero-copy,html[data-theme] .hero-copy :is(h1,.text-link){color:var(--theme-ink)}html[data-theme] .hero-copy :is(em,.eyebrow,.hero-facts b){color:var(--theme-gold-ink)}html[data-theme] .hero-copy>p{color:var(--theme-ink)}html[data-theme] .hero-copy :is(.save-note,.hero-facts span){color:var(--theme-muted)}html[data-theme] .hero-facts div{border-color:var(--theme-border)}}
@media(prefers-reduced-motion:reduce){html[data-theme] [data-theme-picker] .theme-option{transition:none}}
/* Mode streamer (themes.js) : nom du compte flouté, un clic le révèle quelques secondes */
html.rv-streamer :is(.rv-private,#account-name,#account-label,#landing-account-title,#identity-title){filter:blur(7px);user-select:none;cursor:pointer;transition:filter .2s}
html.rv-streamer :is(.rv-private,#account-name,#account-label,#landing-account-title,#identity-title).is-revealed{filter:none}
