/* SERA / Curiosity workshop. Shared presentation only; map and document canvases retain their own semantics. */
:root {
  color-scheme: light;
  --readable-emphasis: #8a3b24;
  --paper: #f3efe5; --paper-panel: #fbf8f1; --paper-ink: #272621; --vermilion: #ad3624;
  --page-bg: var(--paper); --panel: var(--paper-panel); --panel-hover: #eee8dc;
  --text: var(--paper-ink); --muted: #68665d; --line: #d4cfc1; --line-strong: #a6a091;
  --accent: var(--vermilion); --accent-2: #375e85;
  --gold: #956329; --orange: #a94b25; --coral: #b34935; --red: #b33f39; --rose: #a34660;
  --pink: #934b76; --violet: #70588d; --purple: #7b5089; --indigo: #4b5c91; --blue: #365f91;
  --sky: #2d697f; --cyan: #276e77; --teal: #306e63; --emerald: #36734e; --green: #53713d;
  --lime: #63702d; --sand: #7d6947; --slate: #576476;
  --seat-bg: var(--paper); --seat-panel: var(--paper-panel); --seat-panel-soft: #e9e4d9;
  --seat-text: var(--paper-ink); --seat-muted: #68665d; --seat-line: #d4cfc1; --seat-accent: var(--vermilion);
}
body[data-sera-theme="editorial"] {
  --ui-accent: var(--vermilion); --accent: var(--vermilion); --seat-accent: var(--vermilion);
  background: var(--paper); color: var(--paper-ink);
  font-family:var(--sera-ui-font); font-synthesis:none; line-height:1.65;
}
body[data-sera-theme] :is(h1,h2,h3,h4,button,input,select,textarea,table) { font-family:inherit; }
body[data-sera-theme] :is(h1,h2,h3,h4,button,strong,.eyebrow) { font-weight:400; }
body[data-sera-theme] ::selection { background: #ecc4ad; color: #272621; }
body[data-sera-theme] :is(a,button,input,select,textarea,summary):focus-visible { outline: 2px solid var(--vermilion); outline-offset: 4px; }
body[data-sera-theme] :is(h1,h2,h3) { word-break: keep-all; }
body[data-sera-theme] main { min-width: 0; }
.sera-dev-marker { display:inline-block; margin-left:7px; color:#8a6c56; font-size:10px; font-weight:500; letter-spacing:0; vertical-align:middle; line-height:1; }
body[data-sera-theme] select option { color:var(--paper-ink); background:#fffdf7; }
body[data-sera-theme] :is(.form-card,.lucky-item) { background:var(--paper-panel); border:1px solid var(--line); color:var(--paper-ink); border-radius:4px; box-shadow:none; backdrop-filter:none; }
body[data-sera-theme] .form-card :is(label,.field-title) { color:var(--paper-ink); }
body[data-sera-theme] :is(.hero p,.label,.lucky-item span) { color:var(--muted); }
body[data-sera-theme] .gender-option span { background:#eee8dc; color:var(--paper-ink); border-color:var(--line-strong); border-radius:3px; }
body[data-sera-theme] .gender-option input:checked+span { background:#f0ded0; color:var(--vermilion); border-color:var(--vermilion); box-shadow:none; }
body[data-sera-theme] .gender-option input:focus-visible+span { outline:2px solid var(--vermilion); outline-offset:3px; }
body[data-sera-theme] .submit-button { background:var(--vermilion); color:#fffdf7; box-shadow:none; }
body[data-sera-theme] .hero-icon { box-shadow:none; border-color:var(--line); border-radius:4px; }
body[data-sera-theme] :is(.score,.score-number,.stars) { color:var(--vermilion); }
body[data-sera-theme] .reason-cell { color:var(--muted); }
body[data-sera-theme] :is(.value-table th,.value-table td) { border-color:var(--line); }
body[data-sera-theme] .value-table th { background:#e9e3d6; }
body[data-sera-theme] :is(.guide-panel summary,.offer-detail summary) { color:var(--vermilion); }
body[data-sera-theme] .seat-tab.ui-card.is-active { background:var(--vermilion); color:#fffdf7; border-color:var(--vermilion); box-shadow:none; }
body[data-sera-theme] :is(.shop-buttons button[aria-pressed=true],.voyage-shop-buttons a[aria-current=page]) { background:var(--vermilion); color:#fffdf7; }
body[data-sera-theme] .seat-page-body summary,body[data-sera-theme].seat-page-body summary { color:var(--vermilion); }
body[data-sera-theme] :is(.bad,.badge.bad) { color:#9b302e; background:#f6e1dd; }
body[data-sera-theme] :is(.neutral,.badge.neutral) { color:#625e53; background:#e9e4d9; }
body[data-sera-theme] .fixed { color:#526044; background:#e7eadc; }
body[data-sera-theme] .page>.hero { color:var(--paper-ink); background:transparent; border-radius:0; border-bottom:2px solid var(--paper-ink); box-shadow:none; }
body[data-sera-theme] .page>.card { background:var(--paper-panel); border-color:var(--line); border-radius:4px; box-shadow:none; }
body[data-sera-theme] :is(.proposal-counts>span,.seal-paper) { background:#ece7db; }
body[data-sera-theme] .day-head { background:var(--paper-panel); border-radius:4px; box-shadow:none; border:1px solid var(--line); }
body[data-sera-theme] .tabs-wrap { background:var(--paper); }
body[data-sera-theme] .tab { border-radius:3px; box-shadow:none; }
body[data-sera-theme] .tab.active { background:var(--vermilion); color:#fffdf7; }
body[data-sera-theme] :where(button:not(.primary):not(.calc-btn):not(.submit-button):not(.danger):not(.error):not(.nextgo):not(.check)) {
  background-color:#eee8dc; color:var(--paper-ink); border-color:var(--line-strong);
}
body[data-sera-theme] .badge.strong { color:#735323; background:#f1e7d0; }
body[data-sera-theme] :is(.seat-tab,.map-tab) { background:var(--paper-panel); color:var(--paper-ink); }
body[data-sera-theme] :is(.seat-tab,.map-tab).is-active { background:#f0ded0; color:var(--vermilion); border-color:var(--vermilion); }
body[data-sera-theme] .ui-card :is(.primary,.calc-btn,.download-button,.button-primary):not(.error):not(.danger) { background:var(--vermilion); color:#fffdf7; }
body[data-sera-theme] .lock-form .field { color:var(--paper-ink); }
body[data-sera-theme] .lock-form button { background:var(--vermilion); color:#fffdf7; }
body[data-sera-theme] .hero>a:not(.button) { color:var(--vermilion); }
body[data-sera-theme] .toc-card { background:#e9e3d6; border-color:var(--line); border-radius:3px; box-shadow:none; }
body[data-sera-theme] .toc a { color:var(--paper-ink); border-radius:2px; }
body[data-sera-theme] .toc a:hover { color:var(--vermilion); background:#ded6c5; }
body[data-sera-theme] :is(.lead,.callout,.shot-placeholder strong) { color:var(--muted); }
body[data-sera-theme] :is(.quick-step,.shot-placeholder) { background:#eee8dc; border-color:var(--line); border-radius:3px; }
body[data-sera-theme] .quick-step::before { background:var(--vermilion); color:#fffdf7; border-radius:2px; }
body[data-sera-theme].manual-page { --ok:#35613f; --warn:#8c5c1d; --danger:#9b302e; --accent-soft:#efe0d2; }
body[data-sera-theme].manual-page :is(th,td) { border-color:var(--line); }
body[data-sera-theme].manual-page th { background:#e9e3d6; color:var(--paper-ink); }
body[data-sera-theme] .app>.hero { background:transparent; color:var(--paper-ink); border-bottom:2px solid var(--paper-ink); }
body[data-sera-theme] .hero-card { color:var(--vermilion); border-color:var(--line-strong); background:transparent; border-radius:3px; }
body[data-sera-theme] .item .card { background:var(--paper-panel); border-radius:4px; box-shadow:none; }
body[data-sera-theme] .nextbar { background:#302e27; border-radius:4px; }
body[data-sera-theme] :is(.portal-page,main.page) { width: min(1180px, calc(100% - 64px)); padding-top: 32px; }
body[data-sera-theme] :is(.ui-hero,.portal-page>.hero) {
  --card-color: var(--vermilion) !important;
  background: transparent; color: var(--paper-ink); border: 0; border-bottom: 2px solid var(--paper-ink);
  border-radius: 0; box-shadow: none; padding: 36px 0 32px; overflow: visible;
}
body[data-sera-theme] :is(.ui-hero,.portal-page>.hero)::before,
body[data-sera-theme] :is(.ui-hero,.portal-page>.hero)::after { display: none; }
body[data-sera-theme] .ui-hero h1 { font-size: clamp(32px,4.5vw,58px); line-height: 1.18; letter-spacing: -.055em; }
body[data-sera-theme] :is(.ui-hero,.portal-page>.hero) .eyebrow { color: var(--vermilion); font-size: 11px; letter-spacing: .12em; margin-bottom: 18px; }
body[data-sera-theme] .ui-card {
  --ui-card-background: var(--paper-panel); background: var(--paper-panel); border-color: var(--line);
  border-radius: 4px; box-shadow: none;
}
body[data-sera-theme] .ui-card :is(.summary-value,h2,h3) { color: var(--paper-ink); }
body[data-sera-theme] :is(.panel,.toolbar,.calc-card,.table-shell,.summary-card,.stat-card,.editor-panel,.export,.bar):not(.ui-hero) {
  border-color: var(--line); border-radius: 4px; box-shadow: none;
}
body[data-sera-theme] :is(input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=range]),select,textarea) {
  color: var(--paper-ink); background: #fffdf7; border-color: var(--line-strong); border-radius: 3px;
}
body[data-sera-theme] input::placeholder,body[data-sera-theme] textarea::placeholder { color: #767368; opacity: 1; }
body[data-sera-theme] :is(input[type=checkbox],input[type=radio],input[type=range]) { accent-color: var(--vermilion); }
body[data-sera-theme] :is(button,.button,.btn,.knowledge-nav a) { border-radius: 3px; }
body[data-sera-theme] :is(.primary,.calc-btn,.button-primary,.download-button,#save) {
  background: var(--vermilion); border-color: var(--vermilion); color: #fffdf7;
}
body[data-sera-theme] .ui-card :is(.primary,.calc-btn,.button-primary,.download-button,#save):not(.error):not(.danger) {
  background: var(--vermilion); border-color: var(--vermilion); color: #fffdf7;
}
body[data-sera-theme] :is(.secondary,.download,.knowledge-nav a) {
  color: var(--paper-ink); background: transparent; border-color: var(--line-strong);
}
body[data-sera-theme] :is(.secondary[aria-pressed=true],.knowledge-nav a[aria-current=page]) {
  color: var(--vermilion); background: #f0ded0; border-color: var(--vermilion);
}
body[data-sera-theme] :is(.drop-zone,.document-thumbnail,.rate-box) { background: #ece7db; border-color: var(--line-strong); }
body[data-sera-theme] .ui-card :is(.rate-box,.drop-zone.dragging) { background: #ece7db; color: var(--paper-ink); }
body[data-sera-theme] input[type=file]::file-selector-button { background:#ece7db; color:var(--paper-ink); border:1px solid var(--line-strong); }
body[data-sera-theme] .ui-card .rate-box strong { color: var(--vermilion); }
body[data-sera-theme] :is(.notice,.message) { background: #f1e7d0; color: #735323; border-color: #c2a66e; }
body[data-sera-theme] :is(.error,.danger.badge) { background: #f6e1dd; color: #9b302e; border-color: #c58a7d; }
body[data-sera-theme] .good { background: #e0eadd; color: #35613f; border-color: #9bb397; }
body[data-sera-theme] .warn { background: #f1e7d0; color: #735323; border-color: #c2a66e; }
body[data-sera-theme] .muted.badge { background: #e9e4d9; color: #625e53; border-color: #cbc3b5; }
body[data-sera-theme] .hub-breadcrumb { margin-bottom: 28px; }
body[data-sera-theme] .hub-breadcrumb :is(.hub-breadcrumb-link,.hub-breadcrumb-current) { color: var(--muted); }
body[data-sera-theme] .hub-breadcrumb .hub-breadcrumb-link:hover { color: var(--vermilion); }
body[data-sera-theme] :is(.site-page-footer,.footer) { color: var(--muted); border-color: var(--line-strong); text-align: left; box-shadow: none; }
/* The hub becomes an index of tools, preserving native details keyboard behavior. */
.editorial-masthead { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 0 0 20px; border-bottom: 1px solid var(--paper-ink); }
.editorial-masthead a { color: inherit; text-decoration: none; }
.editorial-wordmark { font-size: 24px; font-weight: 900; letter-spacing: -.06em; }
.editorial-masthead span { font-size: 11px; letter-spacing: .08em; }
.hub-intro { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: end; }
.hub-intro h1 { max-width: 700px; }
.hub-intro .hero-description { max-width: 370px; margin-left: auto; }
.index-label { display: flex; justify-content: space-between; gap: 20px; margin: 28px 0 12px; font-size: 11px; color: var(--muted); letter-spacing: .08em; }
body[data-sera-theme] .portal-groups { gap: 0; margin-top: 0; counter-reset: chapter; }
body[data-sera-theme] .portal-groups>.section {
  counter-increment: chapter; background: transparent; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0; box-shadow: none;
}
body[data-sera-theme] .portal-groups .section-heading { padding: 23px 4px; gap: 20px; min-height: 90px; }
body[data-sera-theme] .portal-groups .section-heading::before { content: counter(chapter,decimal-leading-zero); color: var(--vermilion); font-size: 13px; font-family: ui-monospace,monospace; }
body[data-sera-theme] .portal-groups .section-heading:hover { background: #eae4d780; }
body[data-sera-theme] .portal-groups .section-heading:focus-visible { outline: 2px solid var(--vermilion); outline-offset: -2px; }
body[data-sera-theme] .portal-groups .section-heading h2 { font-size: 23px; color: var(--paper-ink); }
body[data-sera-theme] .portal-groups .section-heading p { color: var(--muted); }
body[data-sera-theme] .portal-groups .section-heading::after { color: var(--vermilion); border: 0; border-radius: 0; }
body[data-sera-theme] .portal-groups .group-icon { color: var(--vermilion); background: transparent; border-radius: 0; }
body[data-sera-theme] .card-grid { gap: 16px; border: 0; padding: 12px 0 28px; }
body[data-sera-theme] .tool-card {
  background: var(--paper-panel); border: 1px solid var(--line); border-top: 3px solid var(--card-color,var(--vermilion));
  border-radius: 2px; box-shadow: none; padding: 24px; margin-top: 0; min-height: 205px; color: var(--paper-ink);
}
body[data-sera-theme] .tool-card::after { display: none; }
body[data-sera-theme] .tool-card:hover { background: #fffdf7; transform: translateY(-2px); border-color: var(--card-color,var(--vermilion)); box-shadow: 4px 4px 0 #dfd8c9; }
body[data-sera-theme] .tool-card:focus-visible { outline: 2px solid var(--vermilion); outline-offset: 3px; }
body[data-sera-theme] .tool-card .icon { border: 0; background: transparent; border-radius: 0; place-items: start; width: 28px; height: 28px; flex-basis: 28px; }
body[data-sera-theme] .tool-card h3 { margin-top: 18px; font-size: 20px; }
body[data-sera-theme] .badge { border-radius: 2px; }
body[data-sera-theme] :is(.badge.lock,.badge.admin,.badge.public) { background: #ece7db; color: #625e53; border-color: #cbc3b5; }
body[data-sera-theme] .menu-section { background: transparent; border: 0; box-shadow: none; }
/* Tables keep their sizing and all map/seat state classes are intentionally untouched. */
body[data-sera-theme] :is(.data-table,.result-table,.compare-table,.admin-table) { color: var(--paper-ink); }
body[data-sera-theme] :is(.data-table,.result-table,.compare-table,.admin-table) th { background: #e9e3d6; color: var(--paper-ink); }
@media(max-width:700px) {
  body[data-sera-theme] :is(.portal-page,main.page) { width: calc(100% - 36px); padding-top: 20px; }
  body[data-sera-theme] .ui-hero { padding: 28px 0; }
  .editorial-masthead { gap: 12px; padding-bottom: 15px; }
  .editorial-masthead span { font-size: 9px; letter-spacing: .02em; }
  .hub-intro { grid-template-columns: 1fr; gap: 12px; }
  .hub-intro .hero-description { margin-left: 0; }
  body[data-sera-theme] .portal-groups .section-heading { gap: 12px; padding: 20px 0; }
  body[data-sera-theme] .portal-groups .group-icon { display: none; }
  body[data-sera-theme] .portal-groups .section-heading h2 { font-size: 19px; }
  body[data-sera-theme] .portal-groups .section-heading p { font-size: 12px; }
  body[data-sera-theme] .tool-card { padding: 22px; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior: auto; } body[data-sera-theme] .tool-card { transition: none; } }
@media print { body[data-sera-theme] { background: white; color: black; } .editorial-masthead { display: none; } }
/* User-requested micro-interactions; functional maps and print canvases stay fixed. */
body[data-sera-theme] :is(button,.knowledge-nav a,.seat-tab,.summary-card,.stat-card,.tool-card) {
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease,background-color .2s ease;
}
body[data-sera-theme] .portal-groups .group-icon,
body[data-sera-theme] .card-link::after { transition:transform .22s ease; }
@media(hover:hover) and (pointer:fine) {
  body[data-sera-theme] :is(button:not(:disabled),.knowledge-nav a,.seat-tab):hover { transform:translateY(-2px); box-shadow:2px 3px 0 #d6cebd; }
  body[data-sera-theme] :is(.summary-card,.stat-card):hover { transform:translateY(-2px); box-shadow:3px 4px 0 #e2dacb; }
  body[data-sera-theme] .tool-card:hover { transform:translateY(-4px) rotate(-.2deg); box-shadow:5px 7px 0 #dfd8c9; }
  body[data-sera-theme] .portal-groups summary:hover .group-icon { transform:translateY(-2px) rotate(-7deg); }
  body[data-sera-theme] .tool-card:hover .card-link::after { transform:translateX(5px); }
}
body[data-sera-theme] :is(button:not(:disabled),.knowledge-nav a,.tool-card):active { transform:translateY(1px); box-shadow:none; }
@media print { body[data-sera-theme] :is(button,.tool-card,.summary-card,.stat-card) { transform:none !important; box-shadow:none !important; } }

/* Readable paper-theme surfaces and state labels after the full-page contrast audit. */
body[data-sera-theme] { --ok:#35613f; --warn:#735323; --danger:#9b302e; }
.sera-dev-marker { color:#75543e; }
body[data-sera-theme] .hub-breadcrumb-divider { color:#68665d; opacity:1; }
body[data-sera-theme] :is(.hint,.help,.small-note,.list-hint,.notes,.personal-header .intro) { color:#625e53; }
body[data-sera-theme] .manual-download a { color:#9b302e; border-color:#9b302e; }
body[data-sera-theme] .manual-download a:hover { background:#9b302e; color:#fffdf7; }
body[data-sera-theme] .edit-note { color:#735323; background:#f1e7d0; border-color:#b89b62; }
body[data-sera-theme] :is(.badge-other,.badge.other,.badge.pending) { color:#625e53; background:#e9e4d9; border-color:#b9b0a0; }
body[data-sera-theme] .badge.badge-colored { color:var(--paper-ink); }
body[data-sera-theme] .seat-tab.is-active :is(strong,.seat-tab-trap) { color:inherit; opacity:1; }
body[data-sera-theme] button { background-image:none; }
body[data-sera-theme] button:not(:disabled):hover { background-image:none; }
body[data-sera-theme] :is(button.primary,button.calc-btn,button.submit-button,button#save):not(:disabled):hover { background:#943020; color:#fffdf7; }
body[data-sera-theme] button.danger { background:#9b302e; color:#fffdf7; border-color:#9b302e; }
body[data-sera-theme] button.danger:not(:disabled):hover { background:#7f2726; color:#fffdf7; }
body[data-sera-theme] button:disabled {
  background:#e9e4d9!important; color:#625e53!important; border-color:#b9b0a0!important;
  opacity:1!important; box-shadow:none!important; cursor:not-allowed;
}
body[data-sera-theme] :is(input,select,textarea):disabled { color:#625e53; background:#e9e4d9; opacity:1; }
body[data-sera-theme] :is(.table-scroll,.changes) th { background:#e9e3d6; color:var(--paper-ink); }
body[data-sera-theme] :is(.table-scroll,.changes) td { color:var(--paper-ink); }
body[data-sera-theme] .issue { color:#735323; }
body[data-sera-theme] main:has(#canvas) nav button { background:var(--paper-panel); color:var(--paper-ink); }
body[data-sera-theme] main:has(#canvas) nav button.active { background:#f0ded0; color:#943020; border-color:#ad3624; }
body[data-sera-theme] main:has(#canvas) nav button small { color:#625e53; }
body[data-sera-theme] :is(#homePanel,#homePanel .card,#adminNav button,.editor,.menu-group,.icon-guide,.icon-guide span,.icon-preview) {
  background:var(--paper-panel); color:var(--paper-ink); border-color:var(--line-strong);
}
body[data-sera-theme] :is(#homePanel .card p,#adminNav button,.editor small,.edit-form label,.edit-form label span,.menu-group summary small,.icon-guide summary) { color:#625e53; }
body[data-sera-theme] #adminNav button:hover { background:#eee8dc; color:var(--paper-ink); }
body[data-sera-theme] main:has(.personal-header) :is(p,.hint,.notes) { color:#625e53; }
body[data-sera-theme] .icon-guide svg,body[data-sera-theme] .icon-preview svg { stroke:#306e63; }
body[data-sera-theme] main:has(.fields) nav a { background:#eee8dc; color:var(--paper-ink); }
body[data-sera-theme] main:has(.fields) nav a[aria-current=page] { background:#f0ded0; color:#943020; }
body[data-sera-theme] main:has(.fields) :is(h3,.help,.editor small,.fields label,.fields label span) { color:#625e53; }
body[data-sera-theme].device-admin :is(.summary-label,.list-hint,.browser,.detail-label,.subtitle,.micro) { color:#625e53; }
body[data-sera-theme].device-admin :is(.device-detail,.detail-item) { background:#eee8dc; color:var(--paper-ink); }
body[data-sera-theme] .lock-mark { color:#735323; background:#f1e7d0; }
body[data-sera-theme] #tripSub { color:#625e53; opacity:1; }
body[data-sera-theme] a.skip { background:#ad3624; color:#fffdf7; }
body[data-sera-theme] .badge.badge-sub { background:#f6e1dd; color:#9b302e; }
body[data-sera-theme] .seat-tab.is-active { background:#ad3624; color:#fffdf7; }
body[data-sera-theme] .seat-tab.is-active :is(.seat-tab-copy,strong,.seat-tab-trap) { color:#fffdf7; opacity:1; }
body[data-sera-theme] main:has(.fields) nav b { color:#943020; }
body[data-sera-theme].device-admin .detail { background:#eee8dc; color:var(--paper-ink); }
/* Promotional artwork keeps its dark canvas; use a matching contrast palette. */
body[data-sera-theme] .slide-container .highlight { color:#ff6464; }
body[data-sera-theme] .slide-container .server-badge,
body[data-sera-theme] .slide-container .cta-button { background:#ad3624; color:#fffdf7; }
body[data-sera-theme].publicity-banner .main-content { top:10px; height:auto; padding-bottom:0; gap:4px; transform:translateX(-50%); line-height:1.2; }
body[data-sera-theme].publicity-banner .main-title { font-size:32px; margin:0; }
body[data-sera-theme].publicity-banner .subtitle { font-size:16px; }
body[data-sera-theme].publicity-banner .governing-text { bottom:6px; font-size:12px; line-height:1.3; color:#c5c5c5; }
body[data-sera-theme] main:has(.personal-header) :is(label,#hint) { color:#625e53; }
body[data-sera-theme] main:has(.personal-header) #message { color:#735323; }
body[data-sera-theme] main:has(.personal-header) .order { color:#365f91; }
body[data-sera-theme] dialog { background:var(--paper-panel); color:var(--paper-ink); border-color:var(--line-strong); }
body[data-sera-theme].device-admin .badge.approved { color:#31543b; background:#e0eadd; }
body[data-sera-theme].device-admin .badge.current { color:#365f91; background:#e3eaf2; }
body[data-sera-theme].device-admin .badge.blocked { color:#9b302e; background:#f6e1dd; }
body[data-sera-theme] :is(.apply-confirm-panel,.preview-modal-panel,.preview-modal-head,.preview-modal-body) { background:var(--paper-panel); color:var(--paper-ink); }
body[data-sera-theme] :is(.apply-confirm-head,.apply-warning) { background:#f6e1dd; color:#9b302e; border-color:#c58a7d; }
body[data-sera-theme] .apply-confirm-error { color:#9b302e; }
body[data-sera-theme] .actions { background:#eee8dc; border-color:var(--line-strong); }
body[data-sera-theme] main:has(.personal-header) button:not(.primary):not(.danger):not(#save) { color:var(--paper-ink); }
body[data-sera-theme] .drop-zone p { color:#625e53; }
/* Pending/blocked device access screen, also rendered before page-specific CSS. */
body[data-sera-theme]:has(.reload) .box { background:var(--paper-panel); border-color:var(--line-strong); }
body[data-sera-theme]:has(.reload) .code { color:#365f91; }
body[data-sera-theme]:has(.reload) :is(p,.label) { color:#625e53; }
body[data-sera-theme]:has(.reload) .info { background:#eee8dc; color:var(--paper-ink); }
/* State changes switch colors immediately; keep lift/press motion without a low-contrast fade. */
body[data-sera-theme] button { transition-property:transform,box-shadow!important; }
