/* ==============================================================================
   RIN.IPOD — 20 RETRO UI THEMES ENGINE & STUDIO CHROME
   Preserves html:not([data-retro-theme]) & html[data-retro-theme="default"] 100%.
   ============================================================================== */

/* ------------------------------------------------------------------------------
   1. FONT COMFORT SCALE & SVG ICON BASE
   ------------------------------------------------------------------------------ */
html[data-retro-font-scale="95"] {
  font-size: 95%;
}

html[data-retro-font-scale="100"] {
  font-size: 100%;
}

html[data-retro-font-scale="108"] {
  font-size: 108%;
}

.rt-svg-ico {
  display: inline-block;
  width: 1.05em;
  height: 1.05em;
  vertical-align: -0.16em;
  flex-shrink: 0;
}

/* ------------------------------------------------------------------------------
   2. 20 SCOPED RETRO THEME TOKEN DEFINITIONS
   Works on both <html data-retro-theme="..."> and scoped .retro-mini-mockup[data-retro-theme="..."]
   Every text/surface pair meets >= 4.5:1 WCAG AA contrast.
   ------------------------------------------------------------------------------ */

/* #01 iPod Classic 2001 — Brushed Aluminum & Click-Wheel Blue */
[data-retro-theme="01-ipod-2001"] {
  --rt-rail-bg: #232a36;
  --rt-rail-border: #191f29;
  --rt-rail-text: #f8fafc;
  --rt-rail-active-bg: rgba(147, 197, 253, 0.2);
  --rt-rail-active-bar: #60a5fa;
  --rt-rail-active-text: #ffffff;

  --rt-topbar-bg: #2b3442;
  --rt-topbar-border: #1e2530;
  --rt-topbar-text: #f8fafc;
  --rt-topbar-muted: #cbd5e1;
  --rt-topbar-pill-bg: rgba(255, 255, 255, 0.14);
  --rt-topbar-pill-text: #f8fafc;
  --rt-topbar-active-bg: #ffffff;
  --rt-topbar-active-text: #18202c;

  --rt-sidebar-bg: #e5e9f0;
  --rt-sidebar-header-bg: #dce1ea;
  --rt-sidebar-border: #cbd5e1;
  --rt-sidebar-text: #18202c;
  --rt-sidebar-muted: #475569;
  --rt-sidebar-hover: #d8dee9;
  --rt-sidebar-active: #f7f8fa;
  --rt-sidebar-active-border: #1a5fb4;
  --rt-sidebar-pinned-bg: rgba(26, 95, 180, 0.08);
  --rt-sidebar-input-bg: #ffffff;
  --rt-sidebar-input-border: #c4cddb;

  --rt-chat-bg: #f7f8fa;
  --rt-chat-text: #18202c;
  --rt-chat-muted: #475569;
  --rt-chat-header-bg: #eef1f6;
  --rt-chat-header-border: #d3dbe6;
  --rt-chat-header-text: #18202c;
  --rt-chat-header-muted: #475569;
  --rt-chat-pattern: none;

  --rt-cust-bubble-bg: #e1edfb;
  --rt-cust-bubble-border: #bdd4f2;
  --rt-cust-bubble-text: #142338;
  --rt-cust-quote-bg: rgba(20, 35, 56, 0.07);
  --rt-cust-quote-border: #1a5fb4;
  --rt-cust-link-bg: #d4e5f9;
  --rt-cust-link-border: #b3cef0;

  --rt-shop-bubble-bg: #ffffff;
  --rt-shop-bubble-border: #d3dbe6;
  --rt-shop-bubble-text: #18202c;
  --rt-shop-quote-bg: rgba(24, 32, 44, 0.05);
  --rt-shop-quote-border: #64748b;
  --rt-shop-link-bg: #eef2f7;
  --rt-shop-link-border: #cbd5e1;

  --rt-quote-sender: #142338;
  --rt-quote-text: #475569;
  --rt-inline-link: #1a5fb4;
  --rt-ai-tag-color: #15803d;

  --rt-composer-bg: #eef1f6;
  --rt-composer-border: #d3dbe6;
  --rt-composer-input-bg: #ffffff;
  --rt-composer-input-border: #c4cddb;
  --rt-composer-input-text: #18202c;
  --rt-composer-placeholder: #64748b;

  --rt-btn-mini-bg: #ffffff;
  --rt-btn-mini-border: #c4cddb;
  --rt-btn-mini-text: #18202c;
  --rt-btn-mini-hover: #e5e9f0;

  --rt-inspector-bg: #e5e9f0;
  --rt-inspector-border: #cbd5e1;
  --rt-inspector-tabs-bg: #d8dee9;
  --rt-inspector-card-bg: #ffffff;
  --rt-inspector-card-border: #d3dbe6;
  --rt-inspector-sub-bg: #f7f8fa;
  --rt-inspector-input-bg: #ffffff;
  --rt-inspector-text: #18202c;
  --rt-inspector-muted: #475569;

  --rt-surface-bg: #e5e9f0;
  --rt-surface-card: #f7f8fa;
  --rt-surface-input: #ffffff;
  --rt-surface-hover: #d8dee9;
  --rt-surface-border: #cbd5e1;
  --rt-surface-text: #18202c;
  --rt-surface-muted: #475569;

  --rt-popover-bg: #ffffff;
  --rt-popover-border: #cbd5e1;
  --rt-popover-text: #18202c;
  --rt-popover-muted: #475569;
  --rt-popover-hover: #eef2f7;

  --rt-pill-bg: #1a5fb4;
  --rt-pill-border: #144a8c;
  --rt-pill-text: #ffffff;
  --rt-divider-bg: #e5e9f0;
  --rt-divider-border: #cbd5e1;
  --rt-divider-text: #334155;

  --rt-banner-bg: #eef2f7;
  --rt-banner-border: #cbd5e1;
  --rt-banner-text: #18202c;
  --rt-copilot-bg: #eef4fc;
  --rt-copilot-title: #1a5fb4;
  --rt-copilot-input-bg: #ffffff;

  --rt-accent: #1a5fb4;
  --rt-accent-hover: #144a8c;
  --rt-btn-bg: #1a5fb4;
  --rt-btn-hover: #144a8c;
  --rt-btn-text: #ffffff;
  --rt-icon-accent: #1a5fb4;
  --rt-unreplied-accent: #c2410c;

  --rt-font-display: "Space Grotesk", "IBM Plex Sans", system-ui, sans-serif;
  --rt-font-body: "IBM Plex Sans", system-ui, sans-serif;
  --rt-font-mono: "IBM Plex Mono", "JetBrains Mono", monospace;
  --rt-shadow-bubble: 0 1px 3px rgba(24, 32, 44, 0.08);
  --rt-radius-bubble: 12px;
  --rt-radius-card: 10px;
}

/* #02 iPod U2 Special Edition — Obsidian Black & Crimson Click-Wheel */
[data-retro-theme="02-ipod-u2"] {
  --rt-rail-bg: #0e0f12;
  --rt-rail-border: #23262e;
  --rt-rail-text: #f1f2f5;
  --rt-rail-active-bg: rgba(220, 38, 38, 0.22);
  --rt-rail-active-bar: #dc2626;
  --rt-rail-active-text: #ffffff;

  --rt-topbar-bg: #141518;
  --rt-topbar-border: #272a32;
  --rt-topbar-text: #f1f2f5;
  --rt-topbar-muted: #a1a6b3;
  --rt-topbar-pill-bg: rgba(255, 255, 255, 0.1);
  --rt-topbar-pill-text: #f1f2f5;
  --rt-topbar-active-bg: #dc2626;
  --rt-topbar-active-text: #ffffff;

  --rt-sidebar-bg: #1e2025;
  --rt-sidebar-header-bg: #181a1f;
  --rt-sidebar-border: #2e323c;
  --rt-sidebar-text: #f1f2f5;
  --rt-sidebar-muted: #a1a6b3;
  --rt-sidebar-hover: #262930;
  --rt-sidebar-active: #2a2d35;
  --rt-sidebar-active-border: #dc2626;
  --rt-sidebar-pinned-bg: rgba(220, 38, 38, 0.1);
  --rt-sidebar-input-bg: #141518;
  --rt-sidebar-input-border: #333742;

  --rt-chat-bg: #141518;
  --rt-chat-text: #f1f2f5;
  --rt-chat-muted: #a1a6b3;
  --rt-chat-header-bg: #1a1c21;
  --rt-chat-header-border: #2b2e37;
  --rt-chat-header-text: #f1f2f5;
  --rt-chat-header-muted: #a1a6b3;
  --rt-chat-pattern: none;

  --rt-cust-bubble-bg: #2d1b1e;
  --rt-cust-bubble-border: #7f1d1d;
  --rt-cust-bubble-text: #fce8e8;
  --rt-cust-quote-bg: rgba(0, 0, 0, 0.25);
  --rt-cust-quote-border: #f87171;
  --rt-cust-link-bg: #241518;
  --rt-cust-link-border: #7f1d1d;

  --rt-shop-bubble-bg: #25272d;
  --rt-shop-bubble-border: #3b3f4a;
  --rt-shop-bubble-text: #f3f4f6;
  --rt-shop-quote-bg: rgba(0, 0, 0, 0.25);
  --rt-shop-quote-border: #a1a6b3;
  --rt-shop-link-bg: #1c1e23;
  --rt-shop-link-border: #3b3f4a;

  --rt-quote-sender: #ffffff;
  --rt-quote-text: #cbd5e1;
  --rt-inline-link: #fca5a5;
  --rt-ai-tag-color: #4ade80;

  --rt-composer-bg: #1a1c21;
  --rt-composer-border: #2b2e37;
  --rt-composer-input-bg: #111215;
  --rt-composer-input-border: #383c47;
  --rt-composer-input-text: #f1f2f5;
  --rt-composer-placeholder: #8e94a3;

  --rt-btn-mini-bg: #262930;
  --rt-btn-mini-border: #3b3f4a;
  --rt-btn-mini-text: #f1f2f5;
  --rt-btn-mini-hover: #323640;

  --rt-inspector-bg: #1b1d22;
  --rt-inspector-border: #2e323c;
  --rt-inspector-tabs-bg: #141518;
  --rt-inspector-card-bg: #23262d;
  --rt-inspector-card-border: #343844;
  --rt-inspector-sub-bg: #1a1c21;
  --rt-inspector-input-bg: #141518;
  --rt-inspector-text: #f1f2f5;
  --rt-inspector-muted: #a1a6b3;

  --rt-surface-bg: #141518;
  --rt-surface-card: #1e2025;
  --rt-surface-input: #23262d;
  --rt-surface-hover: #2c3039;
  --rt-surface-border: #343844;
  --rt-surface-text: #f1f2f5;
  --rt-surface-muted: #a1a6b3;

  --rt-popover-bg: #202228;
  --rt-popover-border: #3b3f4a;
  --rt-popover-text: #f1f2f5;
  --rt-popover-muted: #a1a6b3;
  --rt-popover-hover: #2d3039;

  --rt-pill-bg: #dc2626;
  --rt-pill-border: #ef4444;
  --rt-pill-text: #ffffff;
  --rt-divider-bg: #23262d;
  --rt-divider-border: #3b3f4a;
  --rt-divider-text: #e2e8f0;

  --rt-banner-bg: #23262d;
  --rt-banner-border: #3b3f4a;
  --rt-banner-text: #f1f2f5;
  --rt-copilot-bg: #231a1c;
  --rt-copilot-title: #fca5a5;
  --rt-copilot-input-bg: #141518;

  --rt-accent: #dc2626;
  --rt-accent-hover: #b91c1c;
  --rt-btn-bg: #dc2626;
  --rt-btn-hover: #b91c1c;
  --rt-btn-text: #ffffff;
  --rt-icon-accent: #f87171;
  --rt-unreplied-accent: #f87171;

  --rt-font-display: "Space Grotesk", "IBM Plex Sans", system-ui, sans-serif;
  --rt-font-body: "IBM Plex Sans", system-ui, sans-serif;
  --rt-font-mono: "JetBrains Mono", "IBM Plex Mono", monospace;
  --rt-shadow-bubble: 0 2px 8px rgba(0, 0, 0, 0.35);
  --rt-radius-bubble: 12px;
  --rt-radius-card: 10px;
}

/* #03 Braun SK-4 Dieter Rams — Warm Chalk, Graphite & Signal Orange */
[data-retro-theme="03-braun-sk4"] {
  --rt-rail-bg: #22211f;
  --rt-rail-border: #171614;
  --rt-rail-text: #f6f4ee;
  --rt-rail-active-bg: rgba(217, 83, 30, 0.24);
  --rt-rail-active-bar: #d9531e;
  --rt-rail-active-text: #ffffff;

  --rt-topbar-bg: #2c2a27;
  --rt-topbar-border: #1e1d1a;
  --rt-topbar-text: #f6f4ee;
  --rt-topbar-muted: #cbc5b8;
  --rt-topbar-pill-bg: rgba(255, 255, 255, 0.12);
  --rt-topbar-pill-text: #f6f4ee;
  --rt-topbar-active-bg: #f6f4ee;
  --rt-topbar-active-text: #22211f;

  --rt-sidebar-bg: #dfdcd3;
  --rt-sidebar-header-bg: #d7d3c8;
  --rt-sidebar-border: #c5c0b4;
  --rt-sidebar-text: #22211f;
  --rt-sidebar-muted: #524f49;
  --rt-sidebar-hover: #d5d0c4;
  --rt-sidebar-active: #f6f4ee;
  --rt-sidebar-active-border: #d9531e;
  --rt-sidebar-pinned-bg: rgba(217, 83, 30, 0.08);
  --rt-sidebar-input-bg: #f6f4ee;
  --rt-sidebar-input-border: #beb9ac;

  --rt-chat-bg: #f6f4ee;
  --rt-chat-text: #1f1e1c;
  --rt-chat-muted: #55524b;
  --rt-chat-header-bg: #ece9e0;
  --rt-chat-header-border: #d5d1c6;
  --rt-chat-header-text: #1f1e1c;
  --rt-chat-header-muted: #55524b;
  --rt-chat-pattern: none;

  --rt-cust-bubble-bg: #efe4d2;
  --rt-cust-bubble-border: #d8c5a8;
  --rt-cust-bubble-text: #22211f;
  --rt-cust-quote-bg: rgba(34, 33, 31, 0.07);
  --rt-cust-quote-border: #b84214;
  --rt-cust-link-bg: #e7d8c0;
  --rt-cust-link-border: #ccb592;

  --rt-shop-bubble-bg: #fcfbf8;
  --rt-shop-bubble-border: #d5d1c6;
  --rt-shop-bubble-text: #1f1e1c;
  --rt-shop-quote-bg: rgba(31, 30, 28, 0.06);
  --rt-shop-quote-border: #6b675f;
  --rt-shop-link-bg: #f0ede4;
  --rt-shop-link-border: #d5d1c6;

  --rt-quote-sender: #22211f;
  --rt-quote-text: #55524b;
  --rt-inline-link: #b84214;
  --rt-ai-tag-color: #166534;

  --rt-composer-bg: #ece9e0;
  --rt-composer-border: #d5d1c6;
  --rt-composer-input-bg: #fcfbf8;
  --rt-composer-input-border: #c5c0b4;
  --rt-composer-input-text: #1f1e1c;
  --rt-composer-placeholder: #6b675f;

  --rt-btn-mini-bg: #fcfbf8;
  --rt-btn-mini-border: #c5c0b4;
  --rt-btn-mini-text: #1f1e1c;
  --rt-btn-mini-hover: #e5e1d6;

  --rt-inspector-bg: #dfdcd3;
  --rt-inspector-border: #c5c0b4;
  --rt-inspector-tabs-bg: #d2cec2;
  --rt-inspector-card-bg: #fcfbf8;
  --rt-inspector-card-border: #d5d1c6;
  --rt-inspector-sub-bg: #f6f4ee;
  --rt-inspector-input-bg: #ffffff;
  --rt-inspector-text: #22211f;
  --rt-inspector-muted: #524f49;

  --rt-surface-bg: #dfdcd3;
  --rt-surface-card: #ece9e0;
  --rt-surface-input: #fcfbf8;
  --rt-surface-hover: #d5d0c4;
  --rt-surface-border: #c5c0b4;
  --rt-surface-text: #1f1e1c;
  --rt-surface-muted: #524f49;

  --rt-popover-bg: #fcfbf8;
  --rt-popover-border: #c5c0b4;
  --rt-popover-text: #1f1e1c;
  --rt-popover-muted: #55524b;
  --rt-popover-hover: #ece9e0;

  --rt-pill-bg: #b84214;
  --rt-pill-border: #9a340f;
  --rt-pill-text: #ffffff;
  --rt-divider-bg: #e6e2d8;
  --rt-divider-border: #c5c0b4;
  --rt-divider-text: #22211f;

  --rt-banner-bg: #ece9e0;
  --rt-banner-border: #c5c0b4;
  --rt-banner-text: #1f1e1c;
  --rt-copilot-bg: #f4ece0;
  --rt-copilot-title: #b84214;
  --rt-copilot-input-bg: #fcfbf8;

  --rt-accent: #d9531e;
  --rt-accent-hover: #b84214;
  --rt-btn-bg: #b84214;
  --rt-btn-hover: #9a340f;
  --rt-btn-text: #ffffff;
  --rt-icon-accent: #d9531e;
  --rt-unreplied-accent: #b84214;

  --rt-font-display: "Archivo", "IBM Plex Sans", system-ui, sans-serif;
  --rt-font-body: "IBM Plex Sans", system-ui, sans-serif;
  --rt-font-mono: "IBM Plex Mono", monospace;
  --rt-shadow-bubble: 0 1px 2px rgba(34, 33, 31, 0.08);
  --rt-radius-bubble: 8px;
  --rt-radius-card: 8px;
}

/* #04 Apple Macintosh 1984 — Platinum Parchment & Crisp 1-Bit Ink */
[data-retro-theme="04-macintosh-1984"] {
  --rt-rail-bg: #1c1b18;
  --rt-rail-border: #000000;
  --rt-rail-text: #faf6ec;
  --rt-rail-active-bg: #264a7d;
  --rt-rail-active-bar: #faf6ec;
  --rt-rail-active-text: #ffffff;

  --rt-topbar-bg: #264a7d;
  --rt-topbar-border: #1c1b18;
  --rt-topbar-text: #ffffff;
  --rt-topbar-muted: #dbeafe;
  --rt-topbar-pill-bg: rgba(255, 255, 255, 0.16);
  --rt-topbar-pill-text: #ffffff;
  --rt-topbar-active-bg: #faf6ec;
  --rt-topbar-active-text: #1c1b18;

  --rt-sidebar-bg: #e6e0d2;
  --rt-sidebar-header-bg: #ddd6c5;
  --rt-sidebar-border: #1c1b18;
  --rt-sidebar-text: #1c1b18;
  --rt-sidebar-muted: #4b473e;
  --rt-sidebar-hover: #dcd4c2;
  --rt-sidebar-active: #ffffff;
  --rt-sidebar-active-border: #264a7d;
  --rt-sidebar-pinned-bg: rgba(38, 74, 125, 0.1);
  --rt-sidebar-input-bg: #ffffff;
  --rt-sidebar-input-border: #1c1b18;

  --rt-chat-bg: #faf6ec;
  --rt-chat-text: #1c1b18;
  --rt-chat-muted: #4b473e;
  --rt-chat-header-bg: #efe9da;
  --rt-chat-header-border: #1c1b18;
  --rt-chat-header-text: #1c1b18;
  --rt-chat-header-muted: #4b473e;
  --rt-chat-pattern: radial-gradient(rgba(28, 27, 24, 0.06) 1px, transparent 0);

  --rt-cust-bubble-bg: #efe7d4;
  --rt-cust-bubble-border: #1c1b18;
  --rt-cust-bubble-text: #1c1b18;
  --rt-cust-quote-bg: rgba(28, 27, 24, 0.07);
  --rt-cust-quote-border: #264a7d;
  --rt-cust-link-bg: #e5dbc3;
  --rt-cust-link-border: #1c1b18;

  --rt-shop-bubble-bg: #ffffff;
  --rt-shop-bubble-border: #1c1b18;
  --rt-shop-bubble-text: #1c1b18;
  --rt-shop-quote-bg: rgba(28, 27, 24, 0.06);
  --rt-shop-quote-border: #1c1b18;
  --rt-shop-link-bg: #f4efe3;
  --rt-shop-link-border: #1c1b18;

  --rt-quote-sender: #1c1b18;
  --rt-quote-text: #4b473e;
  --rt-inline-link: #1d4ed8;
  --rt-ai-tag-color: #166534;

  --rt-composer-bg: #efe9da;
  --rt-composer-border: #1c1b18;
  --rt-composer-input-bg: #ffffff;
  --rt-composer-input-border: #1c1b18;
  --rt-composer-input-text: #1c1b18;
  --rt-composer-placeholder: #5c574d;

  --rt-btn-mini-bg: #ffffff;
  --rt-btn-mini-border: #1c1b18;
  --rt-btn-mini-text: #1c1b18;
  --rt-btn-mini-hover: #e6e0d2;

  --rt-inspector-bg: #e6e0d2;
  --rt-inspector-border: #1c1b18;
  --rt-inspector-tabs-bg: #d9d2c1;
  --rt-inspector-card-bg: #ffffff;
  --rt-inspector-card-border: #1c1b18;
  --rt-inspector-sub-bg: #faf6ec;
  --rt-inspector-input-bg: #ffffff;
  --rt-inspector-text: #1c1b18;
  --rt-inspector-muted: #4b473e;

  --rt-surface-bg: #e6e0d2;
  --rt-surface-card: #f2ede1;
  --rt-surface-input: #ffffff;
  --rt-surface-hover: #dcd4c2;
  --rt-surface-border: #1c1b18;
  --rt-surface-text: #1c1b18;
  --rt-surface-muted: #4b473e;

  --rt-popover-bg: #ffffff;
  --rt-popover-border: #1c1b18;
  --rt-popover-text: #1c1b18;
  --rt-popover-muted: #4b473e;
  --rt-popover-hover: #efe7d4;

  --rt-pill-bg: #264a7d;
  --rt-pill-border: #1c1b18;
  --rt-pill-text: #ffffff;
  --rt-divider-bg: #ffffff;
  --rt-divider-border: #1c1b18;
  --rt-divider-text: #1c1b18;

  --rt-banner-bg: #ffffff;
  --rt-banner-border: #1c1b18;
  --rt-banner-text: #1c1b18;
  --rt-copilot-bg: #efe7d4;
  --rt-copilot-title: #264a7d;
  --rt-copilot-input-bg: #ffffff;

  --rt-accent: #264a7d;
  --rt-accent-hover: #1b365d;
  --rt-btn-bg: #264a7d;
  --rt-btn-hover: #1b365d;
  --rt-btn-text: #ffffff;
  --rt-icon-accent: #264a7d;
  --rt-unreplied-accent: #9a3412;

  --rt-font-display: "VT323", "IBM Plex Mono", monospace;
  --rt-font-body: "IBM Plex Mono", monospace;
  --rt-font-mono: "IBM Plex Mono", monospace;
  --rt-shadow-bubble: 2px 2px 0 rgba(28, 27, 24, 0.85);
  --rt-radius-bubble: 3px;
  --rt-radius-card: 3px;
}

/* #05 Sony Walkman TPS-L2 — Metallic Blue & Hotline Orange */
[data-retro-theme="05-walkman-tpsl2"] {
  --rt-rail-bg: #1b2838;
  --rt-rail-border: #121c28;
  --rt-rail-text: #f4f7fb;
  --rt-rail-active-bg: rgba(240, 90, 40, 0.25);
  --rt-rail-active-bar: #f05a28;
  --rt-rail-active-text: #ffffff;

  --rt-topbar-bg: #213247;
  --rt-topbar-border: #162231;
  --rt-topbar-text: #f4f7fb;
  --rt-topbar-muted: #c2d1e5;
  --rt-topbar-pill-bg: rgba(255, 255, 255, 0.13);
  --rt-topbar-pill-text: #f4f7fb;
  --rt-topbar-active-bg: #f4f7fb;
  --rt-topbar-active-text: #1b2430;

  --rt-sidebar-bg: #dfe6ef;
  --rt-sidebar-header-bg: #d3dce8;
  --rt-sidebar-border: #bcc9da;
  --rt-sidebar-text: #1b2430;
  --rt-sidebar-muted: #4a596c;
  --rt-sidebar-hover: #d2dce9;
  --rt-sidebar-active: #f4f7fb;
  --rt-sidebar-active-border: #f05a28;
  --rt-sidebar-pinned-bg: rgba(240, 90, 40, 0.09);
  --rt-sidebar-input-bg: #f4f7fb;
  --rt-sidebar-input-border: #b4c2d4;

  --rt-chat-bg: #223144;
  --rt-chat-text: #f4f7fb;
  --rt-chat-muted: #c2d1e5;
  --rt-chat-header-bg: #1b2838;
  --rt-chat-header-border: #141f2d;
  --rt-chat-header-text: #f4f7fb;
  --rt-chat-header-muted: #c2d1e5;
  --rt-chat-pattern: none;

  --rt-cust-bubble-bg: #f9eed8;
  --rt-cust-bubble-border: #e5cfa3;
  --rt-cust-bubble-text: #1b2430;
  --rt-cust-quote-bg: rgba(27, 36, 48, 0.08);
  --rt-cust-quote-border: #c84115;
  --rt-cust-link-bg: #f3e2be;
  --rt-cust-link-border: #d9be89;

  --rt-shop-bubble-bg: #f4f7fb;
  --rt-shop-bubble-border: #cad6e4;
  --rt-shop-bubble-text: #18222f;
  --rt-shop-quote-bg: rgba(24, 34, 47, 0.06);
  --rt-shop-quote-border: #5a6c82;
  --rt-shop-link-bg: #e6edf6;
  --rt-shop-link-border: #c2d0e1;

  --rt-quote-sender: #1b2430;
  --rt-quote-text: #4a596c;
  --rt-inline-link: #1d4ed8;
  --rt-ai-tag-color: #86efac;

  --rt-composer-bg: #1b2838;
  --rt-composer-border: #141f2d;
  --rt-composer-input-bg: #131e2c;
  --rt-composer-input-border: #334863;
  --rt-composer-input-text: #f4f7fb;
  --rt-composer-placeholder: #9ab0c9;

  --rt-btn-mini-bg: rgba(255, 255, 255, 0.12);
  --rt-btn-mini-border: rgba(255, 255, 255, 0.22);
  --rt-btn-mini-text: #f4f7fb;
  --rt-btn-mini-hover: rgba(255, 255, 255, 0.22);

  --rt-inspector-bg: #dfe6ef;
  --rt-inspector-border: #bcc9da;
  --rt-inspector-tabs-bg: #ced8e5;
  --rt-inspector-card-bg: #f4f7fb;
  --rt-inspector-card-border: #c4d0df;
  --rt-inspector-sub-bg: #ffffff;
  --rt-inspector-input-bg: #ffffff;
  --rt-inspector-text: #1b2430;
  --rt-inspector-muted: #4a596c;

  --rt-surface-bg: #dfe6ef;
  --rt-surface-card: #ebf0f6;
  --rt-surface-input: #ffffff;
  --rt-surface-hover: #d2dce9;
  --rt-surface-border: #bcc9da;
  --rt-surface-text: #1b2430;
  --rt-surface-muted: #4a596c;

  --rt-popover-bg: #1b2838;
  --rt-popover-border: #334863;
  --rt-popover-text: #f4f7fb;
  --rt-popover-muted: #b8c8dc;
  --rt-popover-hover: #293c54;

  --rt-pill-bg: #f9eed8;
  --rt-pill-border: #e5cfa3;
  --rt-pill-text: #1b2430;
  --rt-divider-bg: rgba(16, 25, 36, 0.55);
  --rt-divider-border: rgba(255, 255, 255, 0.18);
  --rt-divider-text: #f4f7fb;

  --rt-banner-bg: #1b2838;
  --rt-banner-border: #334863;
  --rt-banner-text: #f4f7fb;
  --rt-copilot-bg: #192534;
  --rt-copilot-title: #fdba74;
  --rt-copilot-input-bg: #111b27;

  --rt-accent: #f05a28;
  --rt-accent-hover: #c84115;
  --rt-btn-bg: #c84115;
  --rt-btn-hover: #a5330e;
  --rt-btn-text: #ffffff;
  --rt-icon-accent: #f05a28;
  --rt-unreplied-accent: #c84115;

  --rt-font-display: "Chakra Petch", "IBM Plex Sans", sans-serif;
  --rt-font-body: "IBM Plex Sans", system-ui, sans-serif;
  --rt-font-mono: "Space Mono", monospace;
  --rt-shadow-bubble: 0 2px 6px rgba(10, 18, 28, 0.25);
  --rt-radius-bubble: 10px;
  --rt-radius-card: 10px;
}

/* #06 Marantz 2270 Champagne VU — Walnut Dark & Gyro-Touch Cyan */
[data-retro-theme="06-marantz-2270"] {
  --rt-rail-bg: #231a15;
  --rt-rail-border: #332720;
  --rt-rail-text: #f5efe6;
  --rt-rail-active-bg: rgba(56, 189, 248, 0.18);
  --rt-rail-active-bar: #38bdf8;
  --rt-rail-active-text: #ffffff;

  --rt-topbar-bg: #1d1916;
  --rt-topbar-border: #302923;
  --rt-topbar-text: #f5efe6;
  --rt-topbar-muted: #b9ad9e;
  --rt-topbar-pill-bg: rgba(255, 255, 255, 0.1);
  --rt-topbar-pill-text: #f5efe6;
  --rt-topbar-active-bg: #38bdf8;
  --rt-topbar-active-text: #0c1926;

  --rt-sidebar-bg: #201d1a;
  --rt-sidebar-header-bg: #1a1715;
  --rt-sidebar-border: #332d27;
  --rt-sidebar-text: #f5efe6;
  --rt-sidebar-muted: #b9ad9e;
  --rt-sidebar-hover: #292521;
  --rt-sidebar-active: #2e2924;
  --rt-sidebar-active-border: #38bdf8;
  --rt-sidebar-pinned-bg: rgba(56, 189, 248, 0.09);
  --rt-sidebar-input-bg: #161514;
  --rt-sidebar-input-border: #3a332c;

  --rt-chat-bg: #161514;
  --rt-chat-text: #f5efe6;
  --rt-chat-muted: #b9ad9e;
  --rt-chat-header-bg: #1d1916;
  --rt-chat-header-border: #302923;
  --rt-chat-header-text: #f5efe6;
  --rt-chat-header-muted: #b9ad9e;
  --rt-chat-pattern: none;

  --rt-cust-bubble-bg: #302920;
  --rt-cust-bubble-border: #695841;
  --rt-cust-bubble-text: #f7eedb;
  --rt-cust-quote-bg: rgba(0, 0, 0, 0.24);
  --rt-cust-quote-border: #f59e0b;
  --rt-cust-link-bg: #262018;
  --rt-cust-link-border: #695841;

  --rt-shop-bubble-bg: #1d2933;
  --rt-shop-bubble-border: #315169;
  --rt-shop-bubble-text: #eaf4fb;
  --rt-shop-quote-bg: rgba(0, 0, 0, 0.24);
  --rt-shop-quote-border: #38bdf8;
  --rt-shop-link-bg: #162029;
  --rt-shop-link-border: #315169;

  --rt-quote-sender: #fef3c7;
  --rt-quote-text: #d6cbbd;
  --rt-inline-link: #7dd3fc;
  --rt-ai-tag-color: #4ade80;

  --rt-composer-bg: #1d1916;
  --rt-composer-border: #302923;
  --rt-composer-input-bg: #131110;
  --rt-composer-input-border: #3d352e;
  --rt-composer-input-text: #f5efe6;
  --rt-composer-placeholder: #9e9182;

  --rt-btn-mini-bg: #292420;
  --rt-btn-mini-border: #3f3730;
  --rt-btn-mini-text: #f5efe6;
  --rt-btn-mini-hover: #362f2a;

  --rt-inspector-bg: #1c1916;
  --rt-inspector-border: #332d27;
  --rt-inspector-tabs-bg: #151311;
  --rt-inspector-card-bg: #24201c;
  --rt-inspector-card-border: #38312a;
  --rt-inspector-sub-bg: #1a1714;
  --rt-inspector-input-bg: #151311;
  --rt-inspector-text: #f5efe6;
  --rt-inspector-muted: #b9ad9e;

  --rt-surface-bg: #161514;
  --rt-surface-card: #201d1a;
  --rt-surface-input: #24201c;
  --rt-surface-hover: #2e2924;
  --rt-surface-border: #38312a;
  --rt-surface-text: #f5efe6;
  --rt-surface-muted: #b9ad9e;

  --rt-popover-bg: #221e1b;
  --rt-popover-border: #3f3730;
  --rt-popover-text: #f5efe6;
  --rt-popover-muted: #b9ad9e;
  --rt-popover-hover: #302a25;

  --rt-pill-bg: #38bdf8;
  --rt-pill-border: #7dd3fc;
  --rt-pill-text: #0c1926;
  --rt-divider-bg: #24201c;
  --rt-divider-border: #3f3730;
  --rt-divider-text: #f5efe6;

  --rt-banner-bg: #24201c;
  --rt-banner-border: #3f3730;
  --rt-banner-text: #f5efe6;
  --rt-copilot-bg: #211d18;
  --rt-copilot-title: #7dd3fc;
  --rt-copilot-input-bg: #141210;

  --rt-accent: #38bdf8;
  --rt-accent-hover: #0ea5e9;
  --rt-btn-bg: #38bdf8;
  --rt-btn-hover: #0ea5e9;
  --rt-btn-text: #0c1926;
  --rt-icon-accent: #38bdf8;
  --rt-unreplied-accent: #f59e0b;

  --rt-font-display: "Space Grotesk", "Be Vietnam Pro", sans-serif;
  --rt-font-body: "Be Vietnam Pro", system-ui, sans-serif;
  --rt-font-mono: "Space Mono", monospace;
  --rt-shadow-bubble: 0 2px 8px rgba(0, 0, 0, 0.35);
  --rt-radius-bubble: 11px;
  --rt-radius-card: 10px;
}

/* #07 Blue Note Vinyl 1959 — Deep Midnight Sleeve & Cobalt Ink */
[data-retro-theme="07-bluenote-vinyl"] {
  --rt-rail-bg: #141821;
  --rt-rail-border: #252d3e;
  --rt-rail-text: #edf2fa;
  --rt-rail-active-bg: rgba(56, 132, 196, 0.25);
  --rt-rail-active-bar: #60a5fa;
  --rt-rail-active-text: #ffffff;

  --rt-topbar-bg: #18202c;
  --rt-topbar-border: #263144;
  --rt-topbar-text: #edf2fa;
  --rt-topbar-muted: #9aa9c1;
  --rt-topbar-pill-bg: rgba(255, 255, 255, 0.1);
  --rt-topbar-pill-text: #edf2fa;
  --rt-topbar-active-bg: #edf2fa;
  --rt-topbar-active-text: #141821;

  --rt-sidebar-bg: #1d2330;
  --rt-sidebar-header-bg: #171c27;
  --rt-sidebar-border: #2b3447;
  --rt-sidebar-text: #edf2fa;
  --rt-sidebar-muted: #9aa9c1;
  --rt-sidebar-hover: #242b3b;
  --rt-sidebar-active: #273042;
  --rt-sidebar-active-border: #60a5fa;
  --rt-sidebar-pinned-bg: rgba(56, 132, 196, 0.12);
  --rt-sidebar-input-bg: #141821;
  --rt-sidebar-input-border: #323d52;

  --rt-chat-bg: #141821;
  --rt-chat-text: #edf2fa;
  --rt-chat-muted: #9aa9c1;
  --rt-chat-header-bg: #18202c;
  --rt-chat-header-border: #263144;
  --rt-chat-header-text: #edf2fa;
  --rt-chat-header-muted: #9aa9c1;
  --rt-chat-pattern: none;

  --rt-cust-bubble-bg: #233147;
  --rt-cust-bubble-border: #385582;
  --rt-cust-bubble-text: #edf4fc;
  --rt-cust-quote-bg: rgba(0, 0, 0, 0.25);
  --rt-cust-quote-border: #60a5fa;
  --rt-cust-link-bg: #1b2738;
  --rt-cust-link-border: #385582;

  --rt-shop-bubble-bg: #282c37;
  --rt-shop-bubble-border: #3e4557;
  --rt-shop-bubble-text: #f5f1e8;
  --rt-shop-quote-bg: rgba(0, 0, 0, 0.25);
  --rt-shop-quote-border: #9aa9c1;
  --rt-shop-link-bg: #1f232c;
  --rt-shop-link-border: #3e4557;

  --rt-quote-sender: #ffffff;
  --rt-quote-text: #cbd5e1;
  --rt-inline-link: #93c5fd;
  --rt-ai-tag-color: #4ade80;

  --rt-composer-bg: #18202c;
  --rt-composer-border: #263144;
  --rt-composer-input-bg: #10141c;
  --rt-composer-input-border: #334157;
  --rt-composer-input-text: #edf2fa;
  --rt-composer-placeholder: #8394b0;

  --rt-btn-mini-bg: #232b3b;
  --rt-btn-mini-border: #36435b;
  --rt-btn-mini-text: #edf2fa;
  --rt-btn-mini-hover: #2d384d;

  --rt-inspector-bg: #191e29;
  --rt-inspector-border: #2b3447;
  --rt-inspector-tabs-bg: #141821;
  --rt-inspector-card-bg: #212736;
  --rt-inspector-card-border: #323c52;
  --rt-inspector-sub-bg: #181d28;
  --rt-inspector-input-bg: #141821;
  --rt-inspector-text: #edf2fa;
  --rt-inspector-muted: #9aa9c1;

  --rt-surface-bg: #141821;
  --rt-surface-card: #1d2330;
  --rt-surface-input: #212736;
  --rt-surface-hover: #273042;
  --rt-surface-border: #323c52;
  --rt-surface-text: #edf2fa;
  --rt-surface-muted: #9aa9c1;

  --rt-popover-bg: #1d2330;
  --rt-popover-border: #36435b;
  --rt-popover-text: #edf2fa;
  --rt-popover-muted: #9aa9c1;
  --rt-popover-hover: #283144;

  --rt-pill-bg: #2b6ca3;
  --rt-pill-border: #3884c4;
  --rt-pill-text: #ffffff;
  --rt-divider-bg: #212736;
  --rt-divider-border: #36435b;
  --rt-divider-text: #edf2fa;

  --rt-banner-bg: #212736;
  --rt-banner-border: #36435b;
  --rt-banner-text: #edf2fa;
  --rt-copilot-bg: #1a2434;
  --rt-copilot-title: #93c5fd;
  --rt-copilot-input-bg: #121722;

  --rt-accent: #3884c4;
  --rt-accent-hover: #2b6ca3;
  --rt-btn-bg: #2b6ca3;
  --rt-btn-hover: #225684;
  --rt-btn-text: #ffffff;
  --rt-icon-accent: #60a5fa;
  --rt-unreplied-accent: #fbbf24;

  --rt-font-display: "Fraunces", "IBM Plex Sans", serif;
  --rt-font-body: "IBM Plex Sans", system-ui, sans-serif;
  --rt-font-mono: "Space Mono", monospace;
  --rt-shadow-bubble: 0 2px 8px rgba(0, 0, 0, 0.35);
  --rt-radius-bubble: 12px;
  --rt-radius-card: 10px;
}

/* #08 TDK SA-90 Chrome Tape — Cassette Cream & Gold Foil */
[data-retro-theme="08-tdk-sa90"] {
  --rt-rail-bg: #211f1d;
  --rt-rail-border: #141312;
  --rt-rail-text: #faf8f3;
  --rt-rail-active-bg: rgba(212, 163, 71, 0.22);
  --rt-rail-active-bar: #d4a347;
  --rt-rail-active-text: #fef3c7;

  --rt-topbar-bg: #2b2724;
  --rt-topbar-border: #1d1a18;
  --rt-topbar-text: #faf8f3;
  --rt-topbar-muted: #d2c7b7;
  --rt-topbar-pill-bg: rgba(255, 255, 255, 0.12);
  --rt-topbar-pill-text: #faf8f3;
  --rt-topbar-active-bg: #f7ebd2;
  --rt-topbar-active-text: #231f1d;

  --rt-sidebar-bg: #f2ece0;
  --rt-sidebar-header-bg: #e8e0d0;
  --rt-sidebar-border: #d4cab7;
  --rt-sidebar-text: #231f1d;
  --rt-sidebar-muted: #5c534a;
  --rt-sidebar-hover: #e6dfd1;
  --rt-sidebar-active: #faf8f3;
  --rt-sidebar-active-border: #a67721;
  --rt-sidebar-pinned-bg: rgba(212, 163, 71, 0.14);
  --rt-sidebar-input-bg: #faf8f3;
  --rt-sidebar-input-border: #cabfa9;

  --rt-chat-bg: #292624;
  --rt-chat-text: #faf8f3;
  --rt-chat-muted: #cfc5b6;
  --rt-chat-header-bg: #211f1d;
  --rt-chat-header-border: #171514;
  --rt-chat-header-text: #faf8f3;
  --rt-chat-header-muted: #cfc5b6;
  --rt-chat-pattern: none;

  --rt-cust-bubble-bg: #f7ebd2;
  --rt-cust-bubble-border: #d8be85;
  --rt-cust-bubble-text: #231f1d;
  --rt-cust-quote-bg: rgba(35, 31, 29, 0.08);
  --rt-cust-quote-border: #9c6e1c;
  --rt-cust-link-bg: #efe0be;
  --rt-cust-link-border: #cfb06d;

  --rt-shop-bubble-bg: #faf8f3;
  --rt-shop-bubble-border: #ded7c9;
  --rt-shop-bubble-text: #1e1b19;
  --rt-shop-quote-bg: rgba(30, 27, 25, 0.06);
  --rt-shop-quote-border: #6e655c;
  --rt-shop-link-bg: #efeae0;
  --rt-shop-link-border: #d6cebe;

  --rt-quote-sender: #231f1d;
  --rt-quote-text: #5c534a;
  --rt-inline-link: #1d4ed8;
  --rt-ai-tag-color: #86efac;

  --rt-composer-bg: #211f1d;
  --rt-composer-border: #171514;
  --rt-composer-input-bg: #171513;
  --rt-composer-input-border: #47413c;
  --rt-composer-input-text: #faf8f3;
  --rt-composer-placeholder: #a69c8f;

  --rt-btn-mini-bg: rgba(255, 255, 255, 0.12);
  --rt-btn-mini-border: rgba(255, 255, 255, 0.22);
  --rt-btn-mini-text: #faf8f3;
  --rt-btn-mini-hover: rgba(255, 255, 255, 0.22);

  --rt-inspector-bg: #f2ece0;
  --rt-inspector-border: #d4cab7;
  --rt-inspector-tabs-bg: #e4dccb;
  --rt-inspector-card-bg: #faf8f3;
  --rt-inspector-card-border: #d8cfc0;
  --rt-inspector-sub-bg: #ffffff;
  --rt-inspector-input-bg: #ffffff;
  --rt-inspector-text: #231f1d;
  --rt-inspector-muted: #5c534a;

  --rt-surface-bg: #f2ece0;
  --rt-surface-card: #f7f3ea;
  --rt-surface-input: #faf8f3;
  --rt-surface-hover: #e6dfd1;
  --rt-surface-border: #d4cab7;
  --rt-surface-text: #231f1d;
  --rt-surface-muted: #5c534a;

  --rt-popover-bg: #211f1d;
  --rt-popover-border: #47413c;
  --rt-popover-text: #faf8f3;
  --rt-popover-muted: #cfc5b6;
  --rt-popover-hover: #332f2c;

  --rt-pill-bg: #f7ebd2;
  --rt-pill-border: #d8be85;
  --rt-pill-text: #231f1d;
  --rt-divider-bg: rgba(18, 16, 15, 0.55);
  --rt-divider-border: rgba(255, 255, 255, 0.16);
  --rt-divider-text: #faf8f3;

  --rt-banner-bg: #211f1d;
  --rt-banner-border: #47413c;
  --rt-banner-text: #faf8f3;
  --rt-copilot-bg: #26221e;
  --rt-copilot-title: #f3c873;
  --rt-copilot-input-bg: #171513;

  --rt-accent: #d4a347;
  --rt-accent-hover: #b88930;
  --rt-btn-bg: #d4a347;
  --rt-btn-hover: #be8e35;
  --rt-btn-text: #1c1816;
  --rt-icon-accent: #d4a347;
  --rt-unreplied-accent: #b45309;

  --rt-font-display: "Space Mono", "Be Vietnam Pro", monospace;
  --rt-font-body: "Be Vietnam Pro", system-ui, sans-serif;
  --rt-font-mono: "Space Mono", monospace;
  --rt-shadow-bubble: 0 2px 6px rgba(0, 0, 0, 0.24);
  --rt-radius-bubble: 10px;
  --rt-radius-card: 10px;
}

/* #09 Olivetti Valentine 1969 — Typewriter Paper & Pop Crimson */
[data-retro-theme="09-olivetti-valentine"] {
  --rt-rail-bg: #7f1d1d;
  --rt-rail-border: #5c1313;
  --rt-rail-text: #fffbfa;
  --rt-rail-active-bg: rgba(255, 255, 255, 0.2);
  --rt-rail-active-bar: #fef3c7;
  --rt-rail-active-text: #ffffff;

  --rt-topbar-bg: #991b1b;
  --rt-topbar-border: #721414;
  --rt-topbar-text: #fffbfa;
  --rt-topbar-muted: #fecaca;
  --rt-topbar-pill-bg: rgba(255, 255, 255, 0.16);
  --rt-topbar-pill-text: #ffffff;
  --rt-topbar-active-bg: #f7f3eb;
  --rt-topbar-active-text: #7f1d1d;

  --rt-sidebar-bg: #efeae1;
  --rt-sidebar-header-bg: #e7e0d4;
  --rt-sidebar-border: #d6cec0;
  --rt-sidebar-text: #1f1d1a;
  --rt-sidebar-muted: #59534b;
  --rt-sidebar-hover: #e5ded1;
  --rt-sidebar-active: #ffffff;
  --rt-sidebar-active-border: #b91c1c;
  --rt-sidebar-pinned-bg: rgba(185, 28, 28, 0.08);
  --rt-sidebar-input-bg: #ffffff;
  --rt-sidebar-input-border: #ccc3b3;

  --rt-chat-bg: #f7f3eb;
  --rt-chat-text: #1f1d1a;
  --rt-chat-muted: #59534b;
  --rt-chat-header-bg: #efeae1;
  --rt-chat-header-border: #d9d1c3;
  --rt-chat-header-text: #1f1d1a;
  --rt-chat-header-muted: #59534b;
  --rt-chat-pattern: none;

  --rt-cust-bubble-bg: #f2e2c4;
  --rt-cust-bubble-border: #d9be8d;
  --rt-cust-bubble-text: #1f1d1a;
  --rt-cust-quote-bg: rgba(31, 29, 26, 0.07);
  --rt-cust-quote-border: #b91c1c;
  --rt-cust-link-bg: #ead6b0;
  --rt-cust-link-border: #cdb079;

  --rt-shop-bubble-bg: #ffffff;
  --rt-shop-bubble-border: #ded8cb;
  --rt-shop-bubble-text: #1f1d1a;
  --rt-shop-quote-bg: rgba(31, 29, 26, 0.05);
  --rt-shop-quote-border: #78716c;
  --rt-shop-link-bg: #f3efe6;
  --rt-shop-link-border: #ded8cb;

  --rt-quote-sender: #1f1d1a;
  --rt-quote-text: #59534b;
  --rt-inline-link: #b91c1c;
  --rt-ai-tag-color: #15803d;

  --rt-composer-bg: #efeae1;
  --rt-composer-border: #d9d1c3;
  --rt-composer-input-bg: #ffffff;
  --rt-composer-input-border: #ccc3b3;
  --rt-composer-input-text: #1f1d1a;
  --rt-composer-placeholder: #6e675d;

  --rt-btn-mini-bg: #ffffff;
  --rt-btn-mini-border: #ccc3b3;
  --rt-btn-mini-text: #1f1d1a;
  --rt-btn-mini-hover: #e5ded1;

  --rt-inspector-bg: #efeae1;
  --rt-inspector-border: #d6cec0;
  --rt-inspector-tabs-bg: #e2dbce;
  --rt-inspector-card-bg: #ffffff;
  --rt-inspector-card-border: #dad2c4;
  --rt-inspector-sub-bg: #f7f3eb;
  --rt-inspector-input-bg: #ffffff;
  --rt-inspector-text: #1f1d1a;
  --rt-inspector-muted: #59534b;

  --rt-surface-bg: #efeae1;
  --rt-surface-card: #f7f3eb;
  --rt-surface-input: #ffffff;
  --rt-surface-hover: #e5ded1;
  --rt-surface-border: #d6cec0;
  --rt-surface-text: #1f1d1a;
  --rt-surface-muted: #59534b;

  --rt-popover-bg: #ffffff;
  --rt-popover-border: #d6cec0;
  --rt-popover-text: #1f1d1a;
  --rt-popover-muted: #59534b;
  --rt-popover-hover: #f2e2c4;

  --rt-pill-bg: #b91c1c;
  --rt-pill-border: #991b1b;
  --rt-pill-text: #ffffff;
  --rt-divider-bg: #e7e0d4;
  --rt-divider-border: #d6cec0;
  --rt-divider-text: #1f1d1a;

  --rt-banner-bg: #ffffff;
  --rt-banner-border: #d6cec0;
  --rt-banner-text: #1f1d1a;
  --rt-copilot-bg: #f5ebd8;
  --rt-copilot-title: #b91c1c;
  --rt-copilot-input-bg: #ffffff;

  --rt-accent: #b91c1c;
  --rt-accent-hover: #991b1b;
  --rt-btn-bg: #b91c1c;
  --rt-btn-hover: #991b1b;
  --rt-btn-text: #ffffff;
  --rt-icon-accent: #b91c1c;
  --rt-unreplied-accent: #b91c1c;

  --rt-font-display: "Bitter", Georgia, serif;
  --rt-font-body: "Bitter", Georgia, serif;
  --rt-font-mono: "IBM Plex Mono", monospace;
  --rt-shadow-bubble: 0 1px 3px rgba(31, 29, 26, 0.08);
  --rt-radius-bubble: 10px;
  --rt-radius-card: 10px;
}

/* #10 Kodachrome 64 Slide — Darkroom Mahogany & Amber Gold */
[data-retro-theme="10-kodachrome-64"] {
  --rt-rail-bg: #2c211b;
  --rt-rail-border: #1d1511;
  --rt-rail-text: #fcf8f0;
  --rt-rail-active-bg: rgba(223, 160, 40, 0.24);
  --rt-rail-active-bar: #dfa028;
  --rt-rail-active-text: #fef3c7;

  --rt-topbar-bg: #382921;
  --rt-topbar-border: #251b15;
  --rt-topbar-text: #fcf8f0;
  --rt-topbar-muted: #dfd2be;
  --rt-topbar-pill-bg: rgba(255, 255, 255, 0.12);
  --rt-topbar-pill-text: #fcf8f0;
  --rt-topbar-active-bg: #f9e8c2;
  --rt-topbar-active-text: #261c16;

  --rt-sidebar-bg: #eee5d5;
  --rt-sidebar-header-bg: #e5d9c5;
  --rt-sidebar-border: #d2c3aa;
  --rt-sidebar-text: #261c16;
  --rt-sidebar-muted: #5d4a3d;
  --rt-sidebar-hover: #e4d8c4;
  --rt-sidebar-active: #fcf8f0;
  --rt-sidebar-active-border: #b87b12;
  --rt-sidebar-pinned-bg: rgba(223, 160, 40, 0.16);
  --rt-sidebar-input-bg: #fcf8f0;
  --rt-sidebar-input-border: #cab89a;

  --rt-chat-bg: #362923;
  --rt-chat-text: #fcf8f0;
  --rt-chat-muted: #dacab5;
  --rt-chat-header-bg: #2c211b;
  --rt-chat-header-border: #201713;
  --rt-chat-header-text: #fcf8f0;
  --rt-chat-header-muted: #dacab5;
  --rt-chat-pattern: none;

  --rt-cust-bubble-bg: #f9e8c2;
  --rt-cust-bubble-border: #dfb86e;
  --rt-cust-bubble-text: #261c16;
  --rt-cust-quote-bg: rgba(38, 28, 22, 0.08);
  --rt-cust-quote-border: #9a650e;
  --rt-cust-link-bg: #f2da9f;
  --rt-cust-link-border: #d3a756;

  --rt-shop-bubble-bg: #fcf8f0;
  --rt-shop-bubble-border: #e2d7c2;
  --rt-shop-bubble-text: #231a15;
  --rt-shop-quote-bg: rgba(35, 26, 21, 0.06);
  --rt-shop-quote-border: #735c4d;
  --rt-shop-link-bg: #f2eadc;
  --rt-shop-link-border: #ddd0b9;

  --rt-quote-sender: #261c16;
  --rt-quote-text: #5d4a3d;
  --rt-inline-link: #9a3412;
  --rt-ai-tag-color: #86efac;

  --rt-composer-bg: #2c211b;
  --rt-composer-border: #201713;
  --rt-composer-input-bg: #1e1612;
  --rt-composer-input-border: #574236;
  --rt-composer-input-text: #fcf8f0;
  --rt-composer-placeholder: #b39f8c;

  --rt-btn-mini-bg: rgba(255, 255, 255, 0.12);
  --rt-btn-mini-border: rgba(255, 255, 255, 0.22);
  --rt-btn-mini-text: #fcf8f0;
  --rt-btn-mini-hover: rgba(255, 255, 255, 0.22);

  --rt-inspector-bg: #eee5d5;
  --rt-inspector-border: #d2c3aa;
  --rt-inspector-tabs-bg: #e1d4be;
  --rt-inspector-card-bg: #fcf8f0;
  --rt-inspector-card-border: #d9cbb3;
  --rt-inspector-sub-bg: #ffffff;
  --rt-inspector-input-bg: #ffffff;
  --rt-inspector-text: #261c16;
  --rt-inspector-muted: #5d4a3d;

  --rt-surface-bg: #eee5d5;
  --rt-surface-card: #f6efe3;
  --rt-surface-input: #fcf8f0;
  --rt-surface-hover: #e4d8c4;
  --rt-surface-border: #d2c3aa;
  --rt-surface-text: #261c16;
  --rt-surface-muted: #5d4a3d;

  --rt-popover-bg: #2c211b;
  --rt-popover-border: #574236;
  --rt-popover-text: #fcf8f0;
  --rt-popover-muted: #dacab5;
  --rt-popover-hover: #423229;

  --rt-pill-bg: #f9e8c2;
  --rt-pill-border: #dfb86e;
  --rt-pill-text: #261c16;
  --rt-divider-bg: rgba(26, 18, 14, 0.55);
  --rt-divider-border: rgba(255, 255, 255, 0.16);
  --rt-divider-text: #fcf8f0;

  --rt-banner-bg: #2c211b;
  --rt-banner-border: #574236;
  --rt-banner-text: #fcf8f0;
  --rt-copilot-bg: #32251d;
  --rt-copilot-title: #fcd34d;
  --rt-copilot-input-bg: #1e1612;

  --rt-accent: #dfa028;
  --rt-accent-hover: #c5891b;
  --rt-btn-bg: #dfa028;
  --rt-btn-hover: #c5891b;
  --rt-btn-text: #1f1712;
  --rt-icon-accent: #dfa028;
  --rt-unreplied-accent: #b45309;

  --rt-font-display: "Fraunces", Georgia, serif;
  --rt-font-body: "Lora", Georgia, serif;
  --rt-font-mono: "IBM Plex Mono", monospace;
  --rt-shadow-bubble: 0 2px 6px rgba(0, 0, 0, 0.22);
  --rt-radius-bubble: 11px;
  --rt-radius-card: 10px;
}

/* #11 Leica M3 Rangefinder — Brushed Chrome, Vulcanite & Red Dot */
[data-retro-theme="11-leica-m3"] {
  --rt-rail-bg: #1a1b1d;
  --rt-rail-border: #101113;
  --rt-rail-text: #f8fafc;
  --rt-rail-active-bg: rgba(204, 34, 34, 0.24);
  --rt-rail-active-bar: #cc2222;
  --rt-rail-active-text: #ffffff;

  --rt-topbar-bg: #242629;
  --rt-topbar-border: #17181b;
  --rt-topbar-text: #f8fafc;
  --rt-topbar-muted: #c2c7d0;
  --rt-topbar-pill-bg: rgba(255, 255, 255, 0.12);
  --rt-topbar-pill-text: #f8fafc;
  --rt-topbar-active-bg: #ffffff;
  --rt-topbar-active-text: #191a1c;

  --rt-sidebar-bg: #e4e6e9;
  --rt-sidebar-header-bg: #dadce0;
  --rt-sidebar-border: #c5c9d0;
  --rt-sidebar-text: #191a1c;
  --rt-sidebar-muted: #4c5057;
  --rt-sidebar-hover: #d8dbe0;
  --rt-sidebar-active: #ffffff;
  --rt-sidebar-active-border: #cc2222;
  --rt-sidebar-pinned-bg: rgba(204, 34, 34, 0.08);
  --rt-sidebar-input-bg: #ffffff;
  --rt-sidebar-input-border: #bfc4cc;

  --rt-chat-bg: #27292d;
  --rt-chat-text: #ffffff;
  --rt-chat-muted: #c2c7d0;
  --rt-chat-header-bg: #1e2024;
  --rt-chat-header-border: #151619;
  --rt-chat-header-text: #ffffff;
  --rt-chat-header-muted: #c2c7d0;
  --rt-chat-pattern: none;

  --rt-cust-bubble-bg: #eef0f3;
  --rt-cust-bubble-border: #cfd5dc;
  --rt-cust-bubble-text: #191a1c;
  --rt-cust-quote-bg: rgba(25, 26, 28, 0.07);
  --rt-cust-quote-border: #cc2222;
  --rt-cust-link-bg: #e2e6eb;
  --rt-cust-link-border: #c2c8d1;

  --rt-shop-bubble-bg: #ffffff;
  --rt-shop-bubble-border: #d9dde3;
  --rt-shop-bubble-text: #161719;
  --rt-shop-quote-bg: rgba(22, 23, 25, 0.06);
  --rt-shop-quote-border: #5e636b;
  --rt-shop-link-bg: #f1f3f6;
  --rt-shop-link-border: #d5d9e0;

  --rt-quote-sender: #161719;
  --rt-quote-text: #4c5057;
  --rt-inline-link: #1d4ed8;
  --rt-ai-tag-color: #86efac;

  --rt-composer-bg: #1e2024;
  --rt-composer-border: #151619;
  --rt-composer-input-bg: #141518;
  --rt-composer-input-border: #3d4149;
  --rt-composer-input-text: #ffffff;
  --rt-composer-placeholder: #9ca3af;

  --rt-btn-mini-bg: rgba(255, 255, 255, 0.12);
  --rt-btn-mini-border: rgba(255, 255, 255, 0.22);
  --rt-btn-mini-text: #ffffff;
  --rt-btn-mini-hover: rgba(255, 255, 255, 0.22);

  --rt-inspector-bg: #e4e6e9;
  --rt-inspector-border: #c5c9d0;
  --rt-inspector-tabs-bg: #d4d7dc;
  --rt-inspector-card-bg: #ffffff;
  --rt-inspector-card-border: #cfd4dc;
  --rt-inspector-sub-bg: #f4f5f7;
  --rt-inspector-input-bg: #ffffff;
  --rt-inspector-text: #191a1c;
  --rt-inspector-muted: #4c5057;

  --rt-surface-bg: #e4e6e9;
  --rt-surface-card: #f1f3f5;
  --rt-surface-input: #ffffff;
  --rt-surface-hover: #d8dbe0;
  --rt-surface-border: #c5c9d0;
  --rt-surface-text: #191a1c;
  --rt-surface-muted: #4c5057;

  --rt-popover-bg: #1e2024;
  --rt-popover-border: #3d4149;
  --rt-popover-text: #ffffff;
  --rt-popover-muted: #c2c7d0;
  --rt-popover-hover: #2f3238;

  --rt-pill-bg: #eef0f3;
  --rt-pill-border: #cfd5dc;
  --rt-pill-text: #191a1c;
  --rt-divider-bg: rgba(16, 17, 19, 0.55);
  --rt-divider-border: rgba(255, 255, 255, 0.18);
  --rt-divider-text: #ffffff;

  --rt-banner-bg: #1e2024;
  --rt-banner-border: #3d4149;
  --rt-banner-text: #ffffff;
  --rt-copilot-bg: #222428;
  --rt-copilot-title: #fca5a5;
  --rt-copilot-input-bg: #141518;

  --rt-accent: #cc2222;
  --rt-accent-hover: #a61b1b;
  --rt-btn-bg: #cc2222;
  --rt-btn-hover: #a61b1b;
  --rt-btn-text: #ffffff;
  --rt-icon-accent: #cc2222;
  --rt-unreplied-accent: #cc2222;

  --rt-font-display: "Archivo", "IBM Plex Sans", sans-serif;
  --rt-font-body: "IBM Plex Sans", system-ui, sans-serif;
  --rt-font-mono: "JetBrains Mono", monospace;
  --rt-shadow-bubble: 0 2px 6px rgba(0, 0, 0, 0.24);
  --rt-radius-bubble: 9px;
  --rt-radius-card: 9px;
}

/* #12 Havana Ledger & Espresso — Roasted Bean & Aged Brass */
[data-retro-theme="12-havana-espresso"] {
  --rt-rail-bg: #241a15;
  --rt-rail-border: #17100c;
  --rt-rail-text: #fbf7ef;
  --rt-rail-active-bg: rgba(200, 155, 84, 0.24);
  --rt-rail-active-bar: #c89b54;
  --rt-rail-active-text: #fef3c7;

  --rt-topbar-bg: #2f221b;
  --rt-topbar-border: #1e1611;
  --rt-topbar-text: #fbf7ef;
  --rt-topbar-muted: #dacab5;
  --rt-topbar-pill-bg: rgba(255, 255, 255, 0.12);
  --rt-topbar-pill-text: #fbf7ef;
  --rt-topbar-active-bg: #f5e2bc;
  --rt-topbar-active-text: #241a14;

  --rt-sidebar-bg: #ebe1cf;
  --rt-sidebar-header-bg: #e2d5bf;
  --rt-sidebar-border: #cfc0a6;
  --rt-sidebar-text: #241a14;
  --rt-sidebar-muted: #5c493d;
  --rt-sidebar-hover: #e1d4bd;
  --rt-sidebar-active: #fbf7ef;
  --rt-sidebar-active-border: #9a6c27;
  --rt-sidebar-pinned-bg: rgba(200, 155, 84, 0.16);
  --rt-sidebar-input-bg: #fbf7ef;
  --rt-sidebar-input-border: #c7b598;

  --rt-chat-bg: #2f231d;
  --rt-chat-text: #fbf7ef;
  --rt-chat-muted: #d6c5b0;
  --rt-chat-header-bg: #241a15;
  --rt-chat-header-border: #1a120e;
  --rt-chat-header-text: #fbf7ef;
  --rt-chat-header-muted: #d6c5b0;
  --rt-chat-pattern: none;

  --rt-cust-bubble-bg: #f5e2bc;
  --rt-cust-bubble-border: #d4b172;
  --rt-cust-bubble-text: #241a14;
  --rt-cust-quote-bg: rgba(36, 26, 20, 0.08);
  --rt-cust-quote-border: #8f621e;
  --rt-cust-link-bg: #eed4a2;
  --rt-cust-link-border: #c8a260;

  --rt-shop-bubble-bg: #fbf7ef;
  --rt-shop-bubble-border: #e0d5c1;
  --rt-shop-bubble-text: #211813;
  --rt-shop-quote-bg: rgba(33, 24, 19, 0.06);
  --rt-shop-quote-border: #6f5a4c;
  --rt-shop-link-bg: #f1e9da;
  --rt-shop-link-border: #d9cbb3;

  --rt-quote-sender: #241a14;
  --rt-quote-text: #5c493d;
  --rt-inline-link: #1d4ed8;
  --rt-ai-tag-color: #86efac;

  --rt-composer-bg: #241a15;
  --rt-composer-border: #1a120e;
  --rt-composer-input-bg: #1a120e;
  --rt-composer-input-border: #4e3b30;
  --rt-composer-input-text: #fbf7ef;
  --rt-composer-placeholder: #ac9986;

  --rt-btn-mini-bg: rgba(255, 255, 255, 0.12);
  --rt-btn-mini-border: rgba(255, 255, 255, 0.22);
  --rt-btn-mini-text: #fbf7ef;
  --rt-btn-mini-hover: rgba(255, 255, 255, 0.22);

  --rt-inspector-bg: #ebe1cf;
  --rt-inspector-border: #cfc0a6;
  --rt-inspector-tabs-bg: #ddd0b9;
  --rt-inspector-card-bg: #fbf7ef;
  --rt-inspector-card-border: #d7c7ad;
  --rt-inspector-sub-bg: #ffffff;
  --rt-inspector-input-bg: #ffffff;
  --rt-inspector-text: #241a14;
  --rt-inspector-muted: #5c493d;

  --rt-surface-bg: #ebe1cf;
  --rt-surface-card: #f4ecde;
  --rt-surface-input: #fbf7ef;
  --rt-surface-hover: #e1d4bd;
  --rt-surface-border: #cfc0a6;
  --rt-surface-text: #241a14;
  --rt-surface-muted: #5c493d;

  --rt-popover-bg: #241a15;
  --rt-popover-border: #4e3b30;
  --rt-popover-text: #fbf7ef;
  --rt-popover-muted: #d6c5b0;
  --rt-popover-hover: #382921;

  --rt-pill-bg: #f5e2bc;
  --rt-pill-border: #d4b172;
  --rt-pill-text: #241a14;
  --rt-divider-bg: rgba(20, 14, 10, 0.55);
  --rt-divider-border: rgba(255, 255, 255, 0.16);
  --rt-divider-text: #fbf7ef;

  --rt-banner-bg: #241a15;
  --rt-banner-border: #4e3b30;
  --rt-banner-text: #fbf7ef;
  --rt-copilot-bg: #291f19;
  --rt-copilot-title: #f5cc7d;
  --rt-copilot-input-bg: #1a120e;

  --rt-accent: #c89b54;
  --rt-accent-hover: #b1843e;
  --rt-btn-bg: #c89b54;
  --rt-btn-hover: #b1843e;
  --rt-btn-text: #1d140f;
  --rt-icon-accent: #c89b54;
  --rt-unreplied-accent: #b45309;

  --rt-font-display: "IBM Plex Serif", Georgia, serif;
  --rt-font-body: "IBM Plex Serif", Georgia, serif;
  --rt-font-mono: "IBM Plex Mono", monospace;
  --rt-shadow-bubble: 0 2px 6px rgba(0, 0, 0, 0.22);
  --rt-radius-bubble: 11px;
  --rt-radius-card: 10px;
}

/* #13 IBM 3278 Green Phosphor — P39 Terminal & Subtle Scanlines */
[data-retro-theme="13-ibm-3278-crt"] {
  --rt-rail-bg: #0a120e;
  --rt-rail-border: #1e3629;
  --rt-rail-text: #d1fae5;
  --rt-rail-active-bg: rgba(74, 222, 128, 0.18);
  --rt-rail-active-bar: #4ade80;
  --rt-rail-active-text: #ecfdf5;

  --rt-topbar-bg: #0d1712;
  --rt-topbar-border: #1e3629;
  --rt-topbar-text: #d1fae5;
  --rt-topbar-muted: #6ee7b7;
  --rt-topbar-pill-bg: rgba(74, 222, 128, 0.12);
  --rt-topbar-pill-text: #d1fae5;
  --rt-topbar-active-bg: #4ade80;
  --rt-topbar-active-text: #07140d;

  --rt-sidebar-bg: #121e18;
  --rt-sidebar-header-bg: #0d1712;
  --rt-sidebar-border: #234232;
  --rt-sidebar-text: #d1fae5;
  --rt-sidebar-muted: #6ee7b7;
  --rt-sidebar-hover: #17271f;
  --rt-sidebar-active: #1b3125;
  --rt-sidebar-active-border: #4ade80;
  --rt-sidebar-pinned-bg: rgba(74, 222, 128, 0.08);
  --rt-sidebar-input-bg: #0a120e;
  --rt-sidebar-input-border: #2b543e;

  --rt-chat-bg: #101b15;
  --rt-chat-text: #d1fae5;
  --rt-chat-muted: #6ee7b7;
  --rt-chat-header-bg: #0d1712;
  --rt-chat-header-border: #1e3629;
  --rt-chat-header-text: #d1fae5;
  --rt-chat-header-muted: #6ee7b7;
  --rt-chat-pattern: repeating-linear-gradient(
    to bottom,
    rgba(74, 222, 128, 0.025) 0px,
    rgba(74, 222, 128, 0.025) 1px,
    transparent 1px,
    transparent 3px
  );

  --rt-cust-bubble-bg: #192d22;
  --rt-cust-bubble-border: #2d5a40;
  --rt-cust-bubble-text: #dcfae7;
  --rt-cust-quote-bg: rgba(0, 0, 0, 0.28);
  --rt-cust-quote-border: #4ade80;
  --rt-cust-link-bg: #13241b;
  --rt-cust-link-border: #2d5a40;

  --rt-shop-bubble-bg: #1f382a;
  --rt-shop-bubble-border: #3b7a57;
  --rt-shop-bubble-text: #ecfdf5;
  --rt-shop-quote-bg: rgba(0, 0, 0, 0.28);
  --rt-shop-quote-border: #6ee7b7;
  --rt-shop-link-bg: #16291f;
  --rt-shop-link-border: #3b7a57;

  --rt-quote-sender: #ecfdf5;
  --rt-quote-text: #a7f3d0;
  --rt-inline-link: #86efac;
  --rt-ai-tag-color: #4ade80;

  --rt-composer-bg: #0d1712;
  --rt-composer-border: #1e3629;
  --rt-composer-input-bg: #09100c;
  --rt-composer-input-border: #2d5a40;
  --rt-composer-input-text: #d1fae5;
  --rt-composer-placeholder: #5bb98c;

  --rt-btn-mini-bg: #16261e;
  --rt-btn-mini-border: #2d5a40;
  --rt-btn-mini-text: #d1fae5;
  --rt-btn-mini-hover: #1e3529;

  --rt-inspector-bg: #111c16;
  --rt-inspector-border: #234232;
  --rt-inspector-tabs-bg: #0b130f;
  --rt-inspector-card-bg: #16261e;
  --rt-inspector-card-border: #2a4d3a;
  --rt-inspector-sub-bg: #101c16;
  --rt-inspector-input-bg: #0a120e;
  --rt-inspector-text: #d1fae5;
  --rt-inspector-muted: #6ee7b7;

  --rt-surface-bg: #101b15;
  --rt-surface-card: #121e18;
  --rt-surface-input: #16261e;
  --rt-surface-hover: #1b3125;
  --rt-surface-border: #2a4d3a;
  --rt-surface-text: #d1fae5;
  --rt-surface-muted: #6ee7b7;

  --rt-popover-bg: #111e17;
  --rt-popover-border: #2d5a40;
  --rt-popover-text: #d1fae5;
  --rt-popover-muted: #6ee7b7;
  --rt-popover-hover: #1b3125;

  --rt-pill-bg: #4ade80;
  --rt-pill-border: #86efac;
  --rt-pill-text: #07140d;
  --rt-divider-bg: #14241c;
  --rt-divider-border: #2d5a40;
  --rt-divider-text: #d1fae5;

  --rt-banner-bg: #14241c;
  --rt-banner-border: #2d5a40;
  --rt-banner-text: #d1fae5;
  --rt-copilot-bg: #13221a;
  --rt-copilot-title: #86efac;
  --rt-copilot-input-bg: #0a120e;

  --rt-accent: #4ade80;
  --rt-accent-hover: #22c55e;
  --rt-btn-bg: #4ade80;
  --rt-btn-hover: #22c55e;
  --rt-btn-text: #07140d;
  --rt-icon-accent: #4ade80;
  --rt-unreplied-accent: #4ade80;

  --rt-font-display: "VT323", "JetBrains Mono", monospace;
  --rt-font-body: "JetBrains Mono", monospace;
  --rt-font-mono: "JetBrains Mono", monospace;
  --rt-shadow-bubble: 0 0 0 1px rgba(74, 222, 128, 0.14);
  --rt-radius-bubble: 4px;
  --rt-radius-card: 4px;
}

/* #14 DEC VT220 Amber Night — Warm Phosphor & Subtle Scanlines */
[data-retro-theme="14-vt220-amber"] {
  --rt-rail-bg: #120d07;
  --rt-rail-border: #3a2914;
  --rt-rail-text: #fef3c7;
  --rt-rail-active-bg: rgba(245, 158, 11, 0.22);
  --rt-rail-active-bar: #f59e0b;
  --rt-rail-active-text: #fffbeb;

  --rt-topbar-bg: #18110a;
  --rt-topbar-border: #3a2914;
  --rt-topbar-text: #fef3c7;
  --rt-topbar-muted: #f59e0b;
  --rt-topbar-pill-bg: rgba(245, 158, 11, 0.14);
  --rt-topbar-pill-text: #fef3c7;
  --rt-topbar-active-bg: #f59e0b;
  --rt-topbar-active-text: #140d05;

  --rt-sidebar-bg: #1e160d;
  --rt-sidebar-header-bg: #161009;
  --rt-sidebar-border: #422e17;
  --rt-sidebar-text: #fef3c7;
  --rt-sidebar-muted: #d97706;
  --rt-sidebar-hover: #261c11;
  --rt-sidebar-active: #2e2214;
  --rt-sidebar-active-border: #f59e0b;
  --rt-sidebar-pinned-bg: rgba(245, 158, 11, 0.1);
  --rt-sidebar-input-bg: #120d07;
  --rt-sidebar-input-border: #5a3e1d;

  --rt-chat-bg: #19120a;
  --rt-chat-text: #fef3c7;
  --rt-chat-muted: #fbbf24;
  --rt-chat-header-bg: #140e08;
  --rt-chat-header-border: #3a2914;
  --rt-chat-header-text: #fef3c7;
  --rt-chat-header-muted: #f59e0b;
  --rt-chat-pattern: repeating-linear-gradient(
    to bottom,
    rgba(245, 158, 11, 0.025) 0px,
    rgba(245, 158, 11, 0.025) 1px,
    transparent 1px,
    transparent 3px
  );

  --rt-cust-bubble-bg: #2c2011;
  --rt-cust-bubble-border: #6b4c23;
  --rt-cust-bubble-text: #fde68a;
  --rt-cust-quote-bg: rgba(0, 0, 0, 0.28);
  --rt-cust-quote-border: #f59e0b;
  --rt-cust-link-bg: #22180c;
  --rt-cust-link-border: #6b4c23;

  --rt-shop-bubble-bg: #362714;
  --rt-shop-bubble-border: #8c6229;
  --rt-shop-bubble-text: #fffbeb;
  --rt-shop-quote-bg: rgba(0, 0, 0, 0.28);
  --rt-shop-quote-border: #fbbf24;
  --rt-shop-link-bg: #291d0f;
  --rt-shop-link-border: #8c6229;

  --rt-quote-sender: #fffbeb;
  --rt-quote-text: #fde68a;
  --rt-inline-link: #fcd34d;
  --rt-ai-tag-color: #86efac;

  --rt-composer-bg: #140e08;
  --rt-composer-border: #3a2914;
  --rt-composer-input-bg: #0f0a05;
  --rt-composer-input-border: #6b4c23;
  --rt-composer-input-text: #fef3c7;
  --rt-composer-placeholder: #c47a1c;

  --rt-btn-mini-bg: #241a0f;
  --rt-btn-mini-border: #5a3e1d;
  --rt-btn-mini-text: #fef3c7;
  --rt-btn-mini-hover: #332414;

  --rt-inspector-bg: #1b130b;
  --rt-inspector-border: #422e17;
  --rt-inspector-tabs-bg: #120d07;
  --rt-inspector-card-bg: #241a0f;
  --rt-inspector-card-border: #543b1c;
  --rt-inspector-sub-bg: #19120a;
  --rt-inspector-input-bg: #120d07;
  --rt-inspector-text: #fef3c7;
  --rt-inspector-muted: #f59e0b;

  --rt-surface-bg: #19120a;
  --rt-surface-card: #1e160d;
  --rt-surface-input: #241a0f;
  --rt-surface-hover: #2e2214;
  --rt-surface-border: #543b1c;
  --rt-surface-text: #fef3c7;
  --rt-surface-muted: #f59e0b;

  --rt-popover-bg: #1e160d;
  --rt-popover-border: #6b4c23;
  --rt-popover-text: #fef3c7;
  --rt-popover-muted: #f59e0b;
  --rt-popover-hover: #2e2214;

  --rt-pill-bg: #f59e0b;
  --rt-pill-border: #fbbf24;
  --rt-pill-text: #140d05;
  --rt-divider-bg: #241a0f;
  --rt-divider-border: #6b4c23;
  --rt-divider-text: #fef3c7;

  --rt-banner-bg: #241a0f;
  --rt-banner-border: #6b4c23;
  --rt-banner-text: #fef3c7;
  --rt-copilot-bg: #241a0f;
  --rt-copilot-title: #fcd34d;
  --rt-copilot-input-bg: #120d07;

  --rt-accent: #f59e0b;
  --rt-accent-hover: #d97706;
  --rt-btn-bg: #f59e0b;
  --rt-btn-hover: #d97706;
  --rt-btn-text: #140d05;
  --rt-icon-accent: #f59e0b;
  --rt-unreplied-accent: #f59e0b;

  --rt-font-display: "VT323", "IBM Plex Mono", monospace;
  --rt-font-body: "IBM Plex Mono", monospace;
  --rt-font-mono: "IBM Plex Mono", monospace;
  --rt-shadow-bubble: 0 0 0 1px rgba(245, 158, 11, 0.14);
  --rt-radius-bubble: 4px;
  --rt-radius-card: 4px;
}

/* #15 Nintendo Game Boy DMG-01 — Dot-Matrix Olive & Magenta Button */
[data-retro-theme="15-gameboy-dmg01"] {
  --rt-rail-bg: #26283b;
  --rt-rail-border: #191b29;
  --rt-rail-text: #f6f5ef;
  --rt-rail-active-bg: rgba(143, 29, 79, 0.45);
  --rt-rail-active-bar: #f472b6;
  --rt-rail-active-text: #ffffff;

  --rt-topbar-bg: #30334a;
  --rt-topbar-border: #1e2031;
  --rt-topbar-text: #f6f5ef;
  --rt-topbar-muted: #c7cbdc;
  --rt-topbar-pill-bg: rgba(255, 255, 255, 0.13);
  --rt-topbar-pill-text: #f6f5ef;
  --rt-topbar-active-bg: #d2dcab;
  --rt-topbar-active-text: #1e2d16;

  --rt-sidebar-bg: #dcd9d0;
  --rt-sidebar-header-bg: #d1cec4;
  --rt-sidebar-border: #b5b2a6;
  --rt-sidebar-text: #1e2d16;
  --rt-sidebar-muted: #46543d;
  --rt-sidebar-hover: #cfccc1;
  --rt-sidebar-active: #f6f5ef;
  --rt-sidebar-active-border: #8f1d4f;
  --rt-sidebar-pinned-bg: rgba(143, 29, 79, 0.08);
  --rt-sidebar-input-bg: #f6f5ef;
  --rt-sidebar-input-border: #a8ab9e;

  --rt-chat-bg: #d2dcab;
  --rt-chat-text: #1e2d16;
  --rt-chat-muted: #394b2d;
  --rt-chat-header-bg: #c4cf9a;
  --rt-chat-header-border: #8fa064;
  --rt-chat-header-text: #1e2d16;
  --rt-chat-header-muted: #394b2d;
  --rt-chat-pattern: radial-gradient(rgba(30, 45, 22, 0.07) 1px, transparent 0);

  --rt-cust-bubble-bg: #e4ecc5;
  --rt-cust-bubble-border: #8fa064;
  --rt-cust-bubble-text: #1c2b14;
  --rt-cust-quote-bg: rgba(28, 43, 20, 0.08);
  --rt-cust-quote-border: #8f1d4f;
  --rt-cust-link-bg: #dae5b4;
  --rt-cust-link-border: #7f9154;

  --rt-shop-bubble-bg: #f6f5ef;
  --rt-shop-bubble-border: #a8ab9e;
  --rt-shop-bubble-text: #1f241c;
  --rt-shop-quote-bg: rgba(31, 36, 28, 0.06);
  --rt-shop-quote-border: #55614e;
  --rt-shop-link-bg: #ebebe2;
  --rt-shop-link-border: #a8ab9e;

  --rt-quote-sender: #1c2b14;
  --rt-quote-text: #394b2d;
  --rt-inline-link: #8f1d4f;
  --rt-ai-tag-color: #14532d;

  --rt-composer-bg: #c4cf9a;
  --rt-composer-border: #8fa064;
  --rt-composer-input-bg: #f6f5ef;
  --rt-composer-input-border: #8fa064;
  --rt-composer-input-text: #1e2d16;
  --rt-composer-placeholder: #4d5f41;

  --rt-btn-mini-bg: #f6f5ef;
  --rt-btn-mini-border: #8fa064;
  --rt-btn-mini-text: #1e2d16;
  --rt-btn-mini-hover: #e4ecc5;

  --rt-inspector-bg: #dcd9d0;
  --rt-inspector-border: #b5b2a6;
  --rt-inspector-tabs-bg: #cecbc1;
  --rt-inspector-card-bg: #f6f5ef;
  --rt-inspector-card-border: #b8b5a9;
  --rt-inspector-sub-bg: #ffffff;
  --rt-inspector-input-bg: #ffffff;
  --rt-inspector-text: #1e2d16;
  --rt-inspector-muted: #46543d;

  --rt-surface-bg: #dcd9d0;
  --rt-surface-card: #eae8e0;
  --rt-surface-input: #f6f5ef;
  --rt-surface-hover: #cfccc1;
  --rt-surface-border: #b5b2a6;
  --rt-surface-text: #1e2d16;
  --rt-surface-muted: #46543d;

  --rt-popover-bg: #f6f5ef;
  --rt-popover-border: #8fa064;
  --rt-popover-text: #1e2d16;
  --rt-popover-muted: #46543d;
  --rt-popover-hover: #e4ecc5;

  --rt-pill-bg: #8f1d4f;
  --rt-pill-border: #70143c;
  --rt-pill-text: #ffffff;
  --rt-divider-bg: #e4ecc5;
  --rt-divider-border: #8fa064;
  --rt-divider-text: #1e2d16;

  --rt-banner-bg: #f6f5ef;
  --rt-banner-border: #8fa064;
  --rt-banner-text: #1e2d16;
  --rt-copilot-bg: #e4ecc5;
  --rt-copilot-title: #8f1d4f;
  --rt-copilot-input-bg: #f6f5ef;

  --rt-accent: #8f1d4f;
  --rt-accent-hover: #70143c;
  --rt-btn-bg: #8f1d4f;
  --rt-btn-hover: #70143c;
  --rt-btn-text: #ffffff;
  --rt-icon-accent: #8f1d4f;
  --rt-unreplied-accent: #8f1d4f;

  --rt-font-display: "Chakra Petch", "Space Mono", sans-serif;
  --rt-font-body: "Space Mono", monospace;
  --rt-font-mono: "Space Mono", monospace;
  --rt-shadow-bubble: 0 2px 0 rgba(30, 45, 22, 0.28);
  --rt-radius-bubble: 6px;
  --rt-radius-card: 6px;
}

/* #16 Classic 95 Teal & Platinum — Crisp Workstation Bevels */
[data-retro-theme="16-win95-workstation"] {
  --rt-rail-bg: #002b5c;
  --rt-rail-border: #001a3a;
  --rt-rail-text: #ffffff;
  --rt-rail-active-bg: #004080;
  --rt-rail-active-bar: #fff7dc;
  --rt-rail-active-text: #ffffff;

  --rt-topbar-bg: #004080;
  --rt-topbar-border: #002b5c;
  --rt-topbar-text: #ffffff;
  --rt-topbar-muted: #dbeafe;
  --rt-topbar-pill-bg: rgba(255, 255, 255, 0.16);
  --rt-topbar-pill-text: #ffffff;
  --rt-topbar-active-bg: #dedede;
  --rt-topbar-active-text: #141414;

  --rt-sidebar-bg: #dedede;
  --rt-sidebar-header-bg: #d4d0c8;
  --rt-sidebar-border: #808080;
  --rt-sidebar-text: #141414;
  --rt-sidebar-muted: #4a4a4a;
  --rt-sidebar-hover: #cfcfcf;
  --rt-sidebar-active: #ffffff;
  --rt-sidebar-active-border: #004080;
  --rt-sidebar-pinned-bg: rgba(0, 64, 128, 0.08);
  --rt-sidebar-input-bg: #ffffff;
  --rt-sidebar-input-border: #808080;

  --rt-chat-bg: #1f5c60;
  --rt-chat-text: #ffffff;
  --rt-chat-muted: #d1fae5;
  --rt-chat-header-bg: #d4d0c8;
  --rt-chat-header-border: #808080;
  --rt-chat-header-text: #141414;
  --rt-chat-header-muted: #4a4a4a;
  --rt-chat-pattern: none;

  --rt-cust-bubble-bg: #fff7dc;
  --rt-cust-bubble-border: #c9be93;
  --rt-cust-bubble-text: #171717;
  --rt-cust-quote-bg: rgba(23, 23, 23, 0.07);
  --rt-cust-quote-border: #004080;
  --rt-cust-link-bg: #f6ebc4;
  --rt-cust-link-border: #b8ac7d;

  --rt-shop-bubble-bg: #ffffff;
  --rt-shop-bubble-border: #808080;
  --rt-shop-bubble-text: #141414;
  --rt-shop-quote-bg: rgba(20, 20, 20, 0.06);
  --rt-shop-quote-border: #555555;
  --rt-shop-link-bg: #efefef;
  --rt-shop-link-border: #808080;

  --rt-quote-sender: #141414;
  --rt-quote-text: #4a4a4a;
  --rt-inline-link: #004080;
  --rt-ai-tag-color: #bbf7d0;

  --rt-composer-bg: #d4d0c8;
  --rt-composer-border: #808080;
  --rt-composer-input-bg: #ffffff;
  --rt-composer-input-border: #808080;
  --rt-composer-input-text: #141414;
  --rt-composer-placeholder: #595959;

  --rt-btn-mini-bg: #d4d0c8;
  --rt-btn-mini-border: #808080;
  --rt-btn-mini-text: #141414;
  --rt-btn-mini-hover: #e5e2dc;

  --rt-inspector-bg: #dedede;
  --rt-inspector-border: #808080;
  --rt-inspector-tabs-bg: #cccccc;
  --rt-inspector-card-bg: #efefef;
  --rt-inspector-card-border: #808080;
  --rt-inspector-sub-bg: #ffffff;
  --rt-inspector-input-bg: #ffffff;
  --rt-inspector-text: #141414;
  --rt-inspector-muted: #4a4a4a;

  --rt-surface-bg: #dedede;
  --rt-surface-card: #efefef;
  --rt-surface-input: #ffffff;
  --rt-surface-hover: #cfcfcf;
  --rt-surface-border: #808080;
  --rt-surface-text: #141414;
  --rt-surface-muted: #4a4a4a;

  --rt-popover-bg: #d4d0c8;
  --rt-popover-border: #808080;
  --rt-popover-text: #141414;
  --rt-popover-muted: #4a4a4a;
  --rt-popover-hover: #004080;

  --rt-pill-bg: #fff7dc;
  --rt-pill-border: #808080;
  --rt-pill-text: #141414;
  --rt-divider-bg: rgba(0, 0, 0, 0.35);
  --rt-divider-border: rgba(255, 255, 255, 0.25);
  --rt-divider-text: #ffffff;

  --rt-banner-bg: #d4d0c8;
  --rt-banner-border: #808080;
  --rt-banner-text: #141414;
  --rt-copilot-bg: #dedede;
  --rt-copilot-title: #004080;
  --rt-copilot-input-bg: #ffffff;

  --rt-accent: #004080;
  --rt-accent-hover: #002b5c;
  --rt-btn-bg: #004080;
  --rt-btn-hover: #002b5c;
  --rt-btn-text: #ffffff;
  --rt-icon-accent: #004080;
  --rt-unreplied-accent: #b91c1c;

  --rt-font-display: "IBM Plex Sans", system-ui, sans-serif;
  --rt-font-body: "IBM Plex Sans", system-ui, sans-serif;
  --rt-font-mono: "Inconsolata", "IBM Plex Mono", monospace;
  --rt-shadow-bubble: 1px 1px 0 rgba(0, 0, 0, 0.45);
  --rt-radius-bubble: 2px;
  --rt-radius-card: 2px;
}

/* #17 Kyoto Matcha Kissaten — Cedar Tea Room & Washi Cream */
[data-retro-theme="17-kyoto-kissaten"] {
  --rt-rail-bg: #222a23;
  --rt-rail-border: #171d18;
  --rt-rail-text: #f4f0e6;
  --rt-rail-active-bg: rgba(134, 179, 134, 0.22);
  --rt-rail-active-bar: #86efac;
  --rt-rail-active-text: #ffffff;

  --rt-topbar-bg: #2b362d;
  --rt-topbar-border: #1c241e;
  --rt-topbar-text: #f4f0e6;
  --rt-topbar-muted: #c8d4c8;
  --rt-topbar-pill-bg: rgba(255, 255, 255, 0.12);
  --rt-topbar-pill-text: #f4f0e6;
  --rt-topbar-active-bg: #f4f0e6;
  --rt-topbar-active-text: #1d261e;

  --rt-sidebar-bg: #e8e2d5;
  --rt-sidebar-header-bg: #dfd8c8;
  --rt-sidebar-border: #ccc4b4;
  --rt-sidebar-text: #1d261e;
  --rt-sidebar-muted: #4b574c;
  --rt-sidebar-hover: #ded7c7;
  --rt-sidebar-active: #fcfaf5;
  --rt-sidebar-active-border: #3f6240;
  --rt-sidebar-pinned-bg: rgba(63, 98, 64, 0.09);
  --rt-sidebar-input-bg: #fcfaf5;
  --rt-sidebar-input-border: #c2b9a7;

  --rt-chat-bg: #f4f0e6;
  --rt-chat-text: #1d261e;
  --rt-chat-muted: #4b574c;
  --rt-chat-header-bg: #eae4d7;
  --rt-chat-header-border: #d2cbbd;
  --rt-chat-header-text: #1d261e;
  --rt-chat-header-muted: #4b574c;
  --rt-chat-pattern: none;

  --rt-cust-bubble-bg: #e2ecde;
  --rt-cust-bubble-border: #b6cbb0;
  --rt-cust-bubble-text: #1d261e;
  --rt-cust-quote-bg: rgba(29, 38, 30, 0.07);
  --rt-cust-quote-border: #3f6240;
  --rt-cust-link-bg: #d6e4d0;
  --rt-cust-link-border: #a3be9b;

  --rt-shop-bubble-bg: #fcfaf5;
  --rt-shop-bubble-border: #d6d0c4;
  --rt-shop-bubble-text: #1f241f;
  --rt-shop-quote-bg: rgba(31, 36, 31, 0.05);
  --rt-shop-quote-border: #5f6d60;
  --rt-shop-link-bg: #efece3;
  --rt-shop-link-border: #d6d0c4;

  --rt-quote-sender: #1d261e;
  --rt-quote-text: #4b574c;
  --rt-inline-link: #2f5530;
  --rt-ai-tag-color: #166534;

  --rt-composer-bg: #eae4d7;
  --rt-composer-border: #d2cbbd;
  --rt-composer-input-bg: #fcfaf5;
  --rt-composer-input-border: #c2b9a7;
  --rt-composer-input-text: #1d261e;
  --rt-composer-placeholder: #5f6a5f;

  --rt-btn-mini-bg: #fcfaf5;
  --rt-btn-mini-border: #c2b9a7;
  --rt-btn-mini-text: #1d261e;
  --rt-btn-mini-hover: #e2dbcc;

  --rt-inspector-bg: #e8e2d5;
  --rt-inspector-border: #ccc4b4;
  --rt-inspector-tabs-bg: #dbd4c4;
  --rt-inspector-card-bg: #fcfaf5;
  --rt-inspector-card-border: #d2cbbd;
  --rt-inspector-sub-bg: #ffffff;
  --rt-inspector-input-bg: #ffffff;
  --rt-inspector-text: #1d261e;
  --rt-inspector-muted: #4b574c;

  --rt-surface-bg: #e8e2d5;
  --rt-surface-card: #f4f0e6;
  --rt-surface-input: #fcfaf5;
  --rt-surface-hover: #ded7c7;
  --rt-surface-border: #ccc4b4;
  --rt-surface-text: #1d261e;
  --rt-surface-muted: #4b574c;

  --rt-popover-bg: #fcfaf5;
  --rt-popover-border: #ccc4b4;
  --rt-popover-text: #1d261e;
  --rt-popover-muted: #4b574c;
  --rt-popover-hover: #e2ecde;

  --rt-pill-bg: #3f6240;
  --rt-pill-border: #2f4b30;
  --rt-pill-text: #ffffff;
  --rt-divider-bg: #e4ded0;
  --rt-divider-border: #c2b9a7;
  --rt-divider-text: #1d261e;

  --rt-banner-bg: #fcfaf5;
  --rt-banner-border: #c2b9a7;
  --rt-banner-text: #1d261e;
  --rt-copilot-bg: #e2ecde;
  --rt-copilot-title: #2f5530;
  --rt-copilot-input-bg: #fcfaf5;

  --rt-accent: #3f6240;
  --rt-accent-hover: #2f4b30;
  --rt-btn-bg: #3f6240;
  --rt-btn-hover: #2f4b30;
  --rt-btn-text: #ffffff;
  --rt-icon-accent: #3f6240;
  --rt-unreplied-accent: #9a3412;

  --rt-font-display: "Spectral", Georgia, serif;
  --rt-font-body: "Spectral", Georgia, serif;
  --rt-font-mono: "IBM Plex Mono", monospace;
  --rt-shadow-bubble: 0 1px 3px rgba(29, 38, 30, 0.08);
  --rt-radius-bubble: 12px;
  --rt-radius-card: 10px;
}

/* #18 Polaroid SX-70 Rainbow — Instant Cream & 5-Color Spectrum */
[data-retro-theme="18-polaroid-sx70"] {
  --rt-rail-bg: #2c221c;
  --rt-rail-border: #1d1612;
  --rt-rail-text: #fcfbf8;
  --rt-rail-active-bg: rgba(230, 81, 0, 0.25);
  --rt-rail-active-bar: #fb8c00;
  --rt-rail-active-text: #ffffff;

  --rt-topbar-bg: #332922;
  --rt-topbar-border: #241c17;
  --rt-topbar-text: #fcfbf8;
  --rt-topbar-muted: #d6cfc6;
  --rt-topbar-pill-bg: rgba(255, 255, 255, 0.12);
  --rt-topbar-pill-text: #fcfbf8;
  --rt-topbar-active-bg: #fcfbf8;
  --rt-topbar-active-text: #241e1a;

  --rt-sidebar-bg: #ece9e2;
  --rt-sidebar-header-bg: #e3dfd6;
  --rt-sidebar-border: #cfc9be;
  --rt-sidebar-text: #241e1a;
  --rt-sidebar-muted: #59504a;
  --rt-sidebar-hover: #e2ded4;
  --rt-sidebar-active: #fcfbf8;
  --rt-sidebar-active-border: #e65100;
  --rt-sidebar-pinned-bg: rgba(230, 81, 0, 0.08);
  --rt-sidebar-input-bg: #fcfbf8;
  --rt-sidebar-input-border: #c5beb1;

  --rt-chat-bg: #332d29;
  --rt-chat-text: #fcfbf8;
  --rt-chat-muted: #cfc7be;
  --rt-chat-header-bg: #2b2521;
  --rt-chat-header-border: #1e1916;
  --rt-chat-header-text: #fcfbf8;
  --rt-chat-header-muted: #cfc7be;
  --rt-chat-pattern: none;

  --rt-cust-bubble-bg: #f7ead3;
  --rt-cust-bubble-border: #dfc496;
  --rt-cust-bubble-text: #241e1a;
  --rt-cust-quote-bg: rgba(36, 30, 26, 0.08);
  --rt-cust-quote-border: #c24200;
  --rt-cust-link-bg: #efdcba;
  --rt-cust-link-border: #d0ad74;

  --rt-shop-bubble-bg: #fcfbf8;
  --rt-shop-bubble-border: #dedad1;
  --rt-shop-bubble-text: #1e1b18;
  --rt-shop-quote-bg: rgba(30, 27, 24, 0.06);
  --rt-shop-quote-border: #6b6158;
  --rt-shop-link-bg: #f1eee7;
  --rt-shop-link-border: #d7d1c5;

  --rt-quote-sender: #241e1a;
  --rt-quote-text: #59504a;
  --rt-inline-link: #1d4ed8;
  --rt-ai-tag-color: #86efac;

  --rt-composer-bg: #2b2521;
  --rt-composer-border: #1e1916;
  --rt-composer-input-bg: #1f1a17;
  --rt-composer-input-border: #524740;
  --rt-composer-input-text: #fcfbf8;
  --rt-composer-placeholder: #afa59b;

  --rt-btn-mini-bg: rgba(255, 255, 255, 0.12);
  --rt-btn-mini-border: rgba(255, 255, 255, 0.22);
  --rt-btn-mini-text: #fcfbf8;
  --rt-btn-mini-hover: rgba(255, 255, 255, 0.22);

  --rt-inspector-bg: #ece9e2;
  --rt-inspector-border: #cfc9be;
  --rt-inspector-tabs-bg: #dfd9ce;
  --rt-inspector-card-bg: #fcfbf8;
  --rt-inspector-card-border: #d6d0c5;
  --rt-inspector-sub-bg: #ffffff;
  --rt-inspector-input-bg: #ffffff;
  --rt-inspector-text: #241e1a;
  --rt-inspector-muted: #59504a;

  --rt-surface-bg: #ece9e2;
  --rt-surface-card: #f6f4ef;
  --rt-surface-input: #fcfbf8;
  --rt-surface-hover: #e2ded4;
  --rt-surface-border: #cfc9be;
  --rt-surface-text: #241e1a;
  --rt-surface-muted: #59504a;

  --rt-popover-bg: #2b2521;
  --rt-popover-border: #524740;
  --rt-popover-text: #fcfbf8;
  --rt-popover-muted: #cfc7be;
  --rt-popover-hover: #3d352f;

  --rt-pill-bg: #f7ead3;
  --rt-pill-border: #dfc496;
  --rt-pill-text: #241e1a;
  --rt-divider-bg: rgba(20, 16, 14, 0.55);
  --rt-divider-border: rgba(255, 255, 255, 0.16);
  --rt-divider-text: #fcfbf8;

  --rt-banner-bg: #2b2521;
  --rt-banner-border: #524740;
  --rt-banner-text: #fcfbf8;
  --rt-copilot-bg: #2d2622;
  --rt-copilot-title: #fdba74;
  --rt-copilot-input-bg: #1f1a17;

  --rt-accent: #e65100;
  --rt-accent-hover: #c24200;
  --rt-btn-bg: #c24200;
  --rt-btn-hover: #9a3400;
  --rt-btn-text: #ffffff;
  --rt-icon-accent: #e65100;
  --rt-unreplied-accent: #c24200;

  --rt-font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --rt-font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --rt-font-mono: "Space Mono", monospace;
  --rt-shadow-bubble: 0 2px 6px rgba(0, 0, 0, 0.22);
  --rt-radius-bubble: 12px;
  --rt-radius-card: 10px;
}

/* #19 Teenage Audio Field (OP-1) — Anodized Aluminum & Drafting Grid */
[data-retro-theme="19-teenage-op1"] {
  --rt-rail-bg: #232629;
  --rt-rail-border: #17191b;
  --rt-rail-text: #f3f5f8;
  --rt-rail-active-bg: rgba(29, 86, 166, 0.35);
  --rt-rail-active-bar: #60a5fa;
  --rt-rail-active-text: #ffffff;

  --rt-topbar-bg: #2d3136;
  --rt-topbar-border: #1f2226;
  --rt-topbar-text: #f3f5f8;
  --rt-topbar-muted: #c2c8d1;
  --rt-topbar-pill-bg: rgba(255, 255, 255, 0.12);
  --rt-topbar-pill-text: #f3f5f8;
  --rt-topbar-active-bg: #ffffff;
  --rt-topbar-active-text: #171b20;

  --rt-sidebar-bg: #dfe2e6;
  --rt-sidebar-header-bg: #d4d8dd;
  --rt-sidebar-border: #c1c7cf;
  --rt-sidebar-text: #171b20;
  --rt-sidebar-muted: #4b525c;
  --rt-sidebar-hover: #d3d7dc;
  --rt-sidebar-active: #ffffff;
  --rt-sidebar-active-border: #1d56a6;
  --rt-sidebar-pinned-bg: rgba(29, 86, 166, 0.08);
  --rt-sidebar-input-bg: #ffffff;
  --rt-sidebar-input-border: #bbc2cb;

  --rt-chat-bg: #eff1f4;
  --rt-chat-text: #171b20;
  --rt-chat-muted: #4b525c;
  --rt-chat-header-bg: #e5e8ec;
  --rt-chat-header-border: #cfd5dc;
  --rt-chat-header-text: #171b20;
  --rt-chat-header-muted: #4b525c;
  --rt-chat-pattern:
    linear-gradient(to right, rgba(23, 27, 32, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(23, 27, 32, 0.035) 1px, transparent 1px);

  --rt-cust-bubble-bg: #e2eaf4;
  --rt-cust-bubble-border: #b4c6de;
  --rt-cust-bubble-text: #171b20;
  --rt-cust-quote-bg: rgba(23, 27, 32, 0.07);
  --rt-cust-quote-border: #1d56a6;
  --rt-cust-link-bg: #d5e1f0;
  --rt-cust-link-border: #a5bbd8;

  --rt-shop-bubble-bg: #ffffff;
  --rt-shop-bubble-border: #cfd5dc;
  --rt-shop-bubble-text: #15181c;
  --rt-shop-quote-bg: rgba(21, 24, 28, 0.05);
  --rt-shop-quote-border: #5f6773;
  --rt-shop-link-bg: #eef0f3;
  --rt-shop-link-border: #cfd5dc;

  --rt-quote-sender: #171b20;
  --rt-quote-text: #4b525c;
  --rt-inline-link: #1d56a6;
  --rt-ai-tag-color: #166534;

  --rt-composer-bg: #e5e8ec;
  --rt-composer-border: #cfd5dc;
  --rt-composer-input-bg: #ffffff;
  --rt-composer-input-border: #bbc2cb;
  --rt-composer-input-text: #171b20;
  --rt-composer-placeholder: #5c6470;

  --rt-btn-mini-bg: #ffffff;
  --rt-btn-mini-border: #bbc2cb;
  --rt-btn-mini-text: #171b20;
  --rt-btn-mini-hover: #dfe2e6;

  --rt-inspector-bg: #dfe2e6;
  --rt-inspector-border: #c1c7cf;
  --rt-inspector-tabs-bg: #cfd4da;
  --rt-inspector-card-bg: #ffffff;
  --rt-inspector-card-border: #c8ced6;
  --rt-inspector-sub-bg: #f5f7f9;
  --rt-inspector-input-bg: #ffffff;
  --rt-inspector-text: #171b20;
  --rt-inspector-muted: #4b525c;

  --rt-surface-bg: #dfe2e6;
  --rt-surface-card: #eceef1;
  --rt-surface-input: #ffffff;
  --rt-surface-hover: #d3d7dc;
  --rt-surface-border: #c1c7cf;
  --rt-surface-text: #171b20;
  --rt-surface-muted: #4b525c;

  --rt-popover-bg: #ffffff;
  --rt-popover-border: #c1c7cf;
  --rt-popover-text: #171b20;
  --rt-popover-muted: #4b525c;
  --rt-popover-hover: #e2eaf4;

  --rt-pill-bg: #1d56a6;
  --rt-pill-border: #15407d;
  --rt-pill-text: #ffffff;
  --rt-divider-bg: #e5e8ec;
  --rt-divider-border: #bbc2cb;
  --rt-divider-text: #171b20;

  --rt-banner-bg: #ffffff;
  --rt-banner-border: #bbc2cb;
  --rt-banner-text: #171b20;
  --rt-copilot-bg: #e2eaf4;
  --rt-copilot-title: #1d56a6;
  --rt-copilot-input-bg: #ffffff;

  --rt-accent: #1d56a6;
  --rt-accent-hover: #15407d;
  --rt-btn-bg: #1d56a6;
  --rt-btn-hover: #15407d;
  --rt-btn-text: #ffffff;
  --rt-icon-accent: #1d56a6;
  --rt-unreplied-accent: #c2410c;

  --rt-font-display: "Space Grotesk", system-ui, sans-serif;
  --rt-font-body: "Space Grotesk", system-ui, sans-serif;
  --rt-font-mono: "IBM Plex Mono", monospace;
  --rt-shadow-bubble: 0 1px 2px rgba(23, 27, 32, 0.08);
  --rt-radius-bubble: 8px;
  --rt-radius-card: 8px;
}

/* #20 Grand Budapest 1932 — Burgundy Velvet, Rose & Sage Mint */
[data-retro-theme="20-budapest-parlor"] {
  --rt-rail-bg: #3d1c26;
  --rt-rail-border: #291118;
  --rt-rail-text: #fcf7f2;
  --rt-rail-active-bg: rgba(199, 152, 70, 0.28);
  --rt-rail-active-bar: #c79846;
  --rt-rail-active-text: #fef3c7;

  --rt-topbar-bg: #4c2330;
  --rt-topbar-border: #33161f;
  --rt-topbar-text: #fcf7f2;
  --rt-topbar-muted: #e9d2d8;
  --rt-topbar-pill-bg: rgba(255, 255, 255, 0.14);
  --rt-topbar-pill-text: #fcf7f2;
  --rt-topbar-active-bg: #fcf7f2;
  --rt-topbar-active-text: #3d1c26;

  --rt-sidebar-bg: #f2e6e4;
  --rt-sidebar-header-bg: #eadad8;
  --rt-sidebar-border: #d9c1bd;
  --rt-sidebar-text: #281b20;
  --rt-sidebar-muted: #5f474f;
  --rt-sidebar-hover: #e7d6d4;
  --rt-sidebar-active: #fcf7f2;
  --rt-sidebar-active-border: #8a5e19;
  --rt-sidebar-pinned-bg: rgba(199, 152, 70, 0.14);
  --rt-sidebar-input-bg: #fcf7f2;
  --rt-sidebar-input-border: #cfaea9;

  --rt-chat-bg: #342329;
  --rt-chat-text: #fcf7f2;
  --rt-chat-muted: #dec8cf;
  --rt-chat-header-bg: #2b1c22;
  --rt-chat-header-border: #1e1217;
  --rt-chat-header-text: #fcf7f2;
  --rt-chat-header-muted: #dec8cf;
  --rt-chat-pattern: none;

  --rt-cust-bubble-bg: #e2eee0;
  --rt-cust-bubble-border: #b5cfb1;
  --rt-cust-bubble-text: #1e2920;
  --rt-cust-quote-bg: rgba(30, 41, 32, 0.08);
  --rt-cust-quote-border: #3f6240;
  --rt-cust-link-bg: #d4e6d1;
  --rt-cust-link-border: #9ec099;

  --rt-shop-bubble-bg: #fcf7f2;
  --rt-shop-bubble-border: #e3d0cc;
  --rt-shop-bubble-text: #281b20;
  --rt-shop-quote-bg: rgba(40, 27, 32, 0.06);
  --rt-shop-quote-border: #7a5864;
  --rt-shop-link-bg: #f3e9e4;
  --rt-shop-link-border: #dfc7c2;

  --rt-quote-sender: #281b20;
  --rt-quote-text: #5f474f;
  --rt-inline-link: #1d4ed8;
  --rt-ai-tag-color: #86efac;

  --rt-composer-bg: #2b1c22;
  --rt-composer-border: #1e1217;
  --rt-composer-input-bg: #201419;
  --rt-composer-input-border: #5c3a46;
  --rt-composer-input-text: #fcf7f2;
  --rt-composer-placeholder: #ba9da6;

  --rt-btn-mini-bg: rgba(255, 255, 255, 0.12);
  --rt-btn-mini-border: rgba(255, 255, 255, 0.22);
  --rt-btn-mini-text: #fcf7f2;
  --rt-btn-mini-hover: rgba(255, 255, 255, 0.22);

  --rt-inspector-bg: #f2e6e4;
  --rt-inspector-border: #d9c1bd;
  --rt-inspector-tabs-bg: #e5d2cf;
  --rt-inspector-card-bg: #fcf7f2;
  --rt-inspector-card-border: #dec8c4;
  --rt-inspector-sub-bg: #ffffff;
  --rt-inspector-input-bg: #ffffff;
  --rt-inspector-text: #281b20;
  --rt-inspector-muted: #5f474f;

  --rt-surface-bg: #f2e6e4;
  --rt-surface-card: #f8efec;
  --rt-surface-input: #fcf7f2;
  --rt-surface-hover: #e7d6d4;
  --rt-surface-border: #d9c1bd;
  --rt-surface-text: #281b20;
  --rt-surface-muted: #5f474f;

  --rt-popover-bg: #2b1c22;
  --rt-popover-border: #5c3a46;
  --rt-popover-text: #fcf7f2;
  --rt-popover-muted: #dec8cf;
  --rt-popover-hover: #422a33;

  --rt-pill-bg: #e2eee0;
  --rt-pill-border: #b5cfb1;
  --rt-pill-text: #1e2920;
  --rt-divider-bg: rgba(24, 14, 18, 0.55);
  --rt-divider-border: rgba(255, 255, 255, 0.16);
  --rt-divider-text: #fcf7f2;

  --rt-banner-bg: #2b1c22;
  --rt-banner-border: #5c3a46;
  --rt-banner-text: #fcf7f2;
  --rt-copilot-bg: #322027;
  --rt-copilot-title: #f3c873;
  --rt-copilot-input-bg: #201419;

  --rt-accent: #c79846;
  --rt-accent-hover: #b08133;
  --rt-btn-bg: #c79846;
  --rt-btn-hover: #b08133;
  --rt-btn-text: #211519;
  --rt-icon-accent: #c79846;
  --rt-unreplied-accent: #9a3412;

  --rt-font-display: "Playfair Display", Georgia, serif;
  --rt-font-body: "Lora", Georgia, serif;
  --rt-font-mono: "IBM Plex Mono", monospace;
  --rt-shadow-bubble: 0 2px 6px rgba(0, 0, 0, 0.24);
  --rt-radius-bubble: 12px;
  --rt-radius-card: 10px;
}

/* #21 Rin.iPod Signature (りん) — Black Cat & Milk-Glass Stone + Chakra Petch / Space Mono */
[data-retro-theme="21-rin-signature"] {
  --rt-rail-bg: #121110;
  --rt-rail-border: #000000;
  --rt-rail-text: #faf9f6;
  --rt-rail-active-bg: #2b2926;
  --rt-rail-active-bar: #e4e2dd;
  --rt-rail-active-text: #ffffff;

  --rt-topbar-bg: #1c1a18;
  --rt-topbar-border: #0f0e0d;
  --rt-topbar-text: #faf9f6;
  --rt-topbar-muted: #c9c5bc;
  --rt-topbar-pill-bg: rgba(255, 255, 255, 0.13);
  --rt-topbar-pill-text: #faf9f6;
  --rt-topbar-active-bg: #e4e2dd;
  --rt-topbar-active-text: #121110;

  --rt-sidebar-bg: #dbd8d0;
  --rt-sidebar-header-bg: #d2cfc6;
  --rt-sidebar-border: #bab5a9;
  --rt-sidebar-text: #141312;
  --rt-sidebar-muted: #524e48;
  --rt-sidebar-hover: #cfccc3;
  --rt-sidebar-active: #faf9f6;
  --rt-sidebar-active-border: #121110;
  --rt-sidebar-pinned-bg: rgba(18, 17, 16, 0.06);
  --rt-sidebar-input-bg: #faf9f6;
  --rt-sidebar-input-border: #b2ada0;

  --rt-chat-bg: #e4e2dd;
  --rt-chat-text: #141312;
  --rt-chat-muted: #4a4640;
  --rt-chat-header-bg: #d8d5cd;
  --rt-chat-header-border: #b5b0a4;
  --rt-chat-header-text: #121110;
  --rt-chat-header-muted: #4a4640;
  --rt-chat-pattern: radial-gradient(rgba(18, 17, 16, 0.065) 1px, transparent 0);

  --rt-cust-bubble-bg: #f0ede6;
  --rt-cust-bubble-border: #b5b0a4;
  --rt-cust-bubble-text: #141312;
  --rt-cust-quote-bg: rgba(18, 17, 16, 0.06);
  --rt-cust-quote-border: #121110;
  --rt-cust-link-bg: #e6e2d9;
  --rt-cust-link-border: #aba598;

  --rt-shop-bubble-bg: #ffffff;
  --rt-shop-bubble-border: #bdb8ac;
  --rt-shop-bubble-text: #121110;
  --rt-shop-quote-bg: rgba(18, 17, 16, 0.05);
  --rt-shop-quote-border: #524e48;
  --rt-shop-link-bg: #f4f2ed;
  --rt-shop-link-border: #c5c0b4;

  --rt-quote-sender: #121110;
  --rt-quote-text: #4a4640;
  --rt-inline-link: #1e3a5f;
  --rt-ai-tag-color: #166534;

  --rt-composer-bg: #d8d5cd;
  --rt-composer-border: #b5b0a4;
  --rt-composer-input-bg: #fcfbf9;
  --rt-composer-input-border: #9e998d;
  --rt-composer-input-text: #121110;
  --rt-composer-placeholder: #5c5851;

  --rt-btn-mini-bg: #faf9f6;
  --rt-btn-mini-border: #a8a396;
  --rt-btn-mini-text: #141312;
  --rt-btn-mini-hover: #ebe8e0;

  --rt-inspector-bg: #dbd8d0;
  --rt-inspector-border: #bab5a9;
  --rt-inspector-tabs-bg: #cecbc2;
  --rt-inspector-card-bg: #faf9f6;
  --rt-inspector-card-border: #c2bdb1;
  --rt-inspector-sub-bg: #ffffff;
  --rt-inspector-input-bg: #ffffff;
  --rt-inspector-text: #141312;
  --rt-inspector-muted: #524e48;

  --rt-surface-bg: #dbd8d0;
  --rt-surface-card: #eae7e0;
  --rt-surface-input: #faf9f6;
  --rt-surface-hover: #cfccc3;
  --rt-surface-border: #bab5a9;
  --rt-surface-text: #141312;
  --rt-surface-muted: #524e48;

  --rt-popover-bg: #181715;
  --rt-popover-border: #383530;
  --rt-popover-text: #faf9f6;
  --rt-popover-muted: #c9c5bc;
  --rt-popover-hover: #292724;

  --rt-pill-bg: #121110;
  --rt-pill-border: #000000;
  --rt-pill-text: #faf9f6;
  --rt-divider-bg: #f0ede6;
  --rt-divider-border: #b5b0a4;
  --rt-divider-text: #141312;

  --rt-banner-bg: #faf9f6;
  --rt-banner-border: #b5b0a4;
  --rt-banner-text: #141312;
  --rt-copilot-bg: #f0ede6;
  --rt-copilot-title: #121110;
  --rt-copilot-input-bg: #ffffff;

  --rt-accent: #141312;
  --rt-accent-hover: #2b2926;
  --rt-btn-bg: #141312;
  --rt-btn-hover: #2b2926;
  --rt-btn-text: #faf9f6;
  --rt-icon-accent: #141312;
  --rt-unreplied-accent: #b45309;

  --rt-font-display: "Chakra Petch", "Space Mono", sans-serif;
  --rt-font-body: "Space Mono", monospace;
  --rt-font-mono: "Space Mono", monospace;
  --rt-shadow-bubble: 0 2px 0 rgba(18, 17, 16, 0.22);
  --rt-radius-bubble: 6px;
  --rt-radius-card: 6px;
}

/* ------------------------------------------------------------------------------
   3. WORKSPACE OVERRIDES (SCOPED TO ACTIVE RETRO THEME ONLY)
   ------------------------------------------------------------------------------ */
html[data-retro-theme]:not([data-retro-theme="default"]) {
  --bg-primary: var(--rt-surface-bg);
  --bg-card: var(--rt-surface-card);
  --bg-input: var(--rt-surface-input);
  --bg-hover: var(--rt-surface-hover);
  --bg-btn-hover: var(--rt-surface-hover);
  --border-color: var(--rt-surface-border);
  --text-main: var(--rt-surface-text);
  --text-primary: var(--rt-surface-text);
  --text-secondary: var(--rt-surface-muted);
  --text-muted: var(--rt-surface-muted);
  --primary: var(--rt-btn-bg);
  --primary-hover: var(--rt-btn-hover);
  --font-family: var(--rt-font-body);
  --font-mono: var(--rt-font-mono);
}

html[data-retro-theme]:not([data-retro-theme="default"]) body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-family);
}

html[data-retro-theme]:not([data-retro-theme="default"]) button,
html[data-retro-theme]:not([data-retro-theme="default"]) input,
html[data-retro-theme]:not([data-retro-theme="default"]) select,
html[data-retro-theme]:not([data-retro-theme="default"]) textarea {
  font-family: var(--font-family);
}

html[data-retro-theme]:not([data-retro-theme="default"]) h1,
html[data-retro-theme]:not([data-retro-theme="default"]) h2,
html[data-retro-theme]:not([data-retro-theme="default"]) h3,
html[data-retro-theme]:not([data-retro-theme="default"]) .chat-header-title,
html[data-retro-theme]:not([data-retro-theme="default"]) .conv-name,
html[data-retro-theme]:not([data-retro-theme="default"]) .retro-card-title {
  font-family: var(--rt-font-display, var(--font-family));
}

/* Buttons & Forms */
html[data-retro-theme]:not([data-retro-theme="default"]) .btn-primary {
  background: var(--rt-btn-bg);
  color: var(--rt-btn-text);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .btn-primary:hover:not(:disabled) {
  background: var(--rt-btn-hover);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .btn-secondary {
  background: var(--rt-surface-card);
  border-color: var(--rt-surface-border);
  color: var(--rt-surface-text);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .btn-secondary:hover:not(:disabled) {
  background: var(--rt-surface-hover);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .btn-mini {
  background: var(--rt-surface-card);
  border-color: var(--rt-surface-border);
  color: var(--rt-surface-text);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .btn-mini:hover:not(:disabled) {
  background: var(--rt-surface-hover);
}

/* App Shell & Left Rail */
html[data-retro-theme]:not([data-retro-theme="default"]) .zalo-app-shell {
  background: var(--rt-surface-bg);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .zalo-left-rail {
  background: var(--rt-rail-bg);
  border-right-color: var(--rt-rail-border);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .zalo-rail-avatar {
  border-color: rgba(255, 255, 255, 0.28);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .rail-live-dot {
  border-color: var(--rt-rail-bg);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .zalo-rail-divider {
  background: rgba(255, 255, 255, 0.2);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .zalo-left-rail .nav-tab,
html[data-retro-theme]:not([data-retro-theme="default"]) .zalo-left-rail .zalo-rail-btn {
  color: var(--rt-rail-text);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .zalo-left-rail .nav-tab:hover:not(.active),
html[data-retro-theme]:not([data-retro-theme="default"]) .zalo-left-rail .zalo-rail-btn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.14);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .zalo-left-rail .nav-tab.active {
  background: var(--rt-rail-active-bg);
  border-color: rgba(255, 255, 255, 0.26);
  color: var(--rt-rail-active-text);
  box-shadow: inset 3px 0 0 var(--rt-rail-active-bar), 0 2px 6px rgba(0, 0, 0, 0.24);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .zalo-left-rail .nav-count-badge {
  border-color: var(--rt-rail-bg);
}

/* Top Inbox Filters Bar */
html[data-retro-theme]:not([data-retro-theme="default"]) .top-inbox-filters-bar {
  background: var(--rt-topbar-bg);
  border-bottom-color: var(--rt-topbar-border);
}

html[data-retro-theme="18-polaroid-sx70"] .top-inbox-filters-bar {
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(
      90deg,
      #e53935 0%,
      #e53935 20%,
      #fb8c00 20%,
      #fb8c00 40%,
      #fdd835 40%,
      #fdd835 60%,
      #43a047 60%,
      #43a047 80%,
      #1e88e5 80%,
      #1e88e5 100%
    )
    1;
}

html[data-retro-theme]:not([data-retro-theme="default"]) .top-inbox-filters-bar .top-filter-caption {
  color: var(--rt-topbar-muted);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .top-inbox-filters-bar .top-filter-sep {
  background: rgba(255, 255, 255, 0.2);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .top-inbox-filters-bar .filter-btn,
html[data-retro-theme]:not([data-retro-theme="default"]) .top-inbox-filters-bar .status-filter-btn {
  color: var(--rt-topbar-text);
  background: transparent;
}

html[data-retro-theme]:not([data-retro-theme="default"]) .top-inbox-filters-bar .rt-svg-ico {
  width: 15px;
  height: 15px;
  margin-right: 4px;
  vertical-align: -2.5px;
}

html[data-retro-theme]:not([data-retro-theme="default"]) .top-inbox-filters-bar .filter-btn:hover:not(.active),
html[data-retro-theme]:not([data-retro-theme="default"]) .top-inbox-filters-bar .status-filter-btn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

html[data-retro-theme]:not([data-retro-theme="default"]) .top-inbox-filters-bar .filter-btn.active,
html[data-retro-theme]:not([data-retro-theme="default"]) .top-inbox-filters-bar .status-filter-btn.active {
  background: var(--rt-topbar-active-bg);
  color: var(--rt-topbar-active-text);
  border-color: var(--rt-topbar-active-bg);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .top-inbox-filters-bar .f-pill-cnt {
  background: var(--rt-topbar-pill-bg);
  color: var(--rt-topbar-pill-text);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .top-inbox-filters-bar .f-pill-cnt.is-alert {
  background: #fef3c7;
  color: #78350f;
}

html[data-retro-theme]:not([data-retro-theme="default"]) .top-inbox-filters-bar .f-pill-cnt.is-warn {
  background: #e0e7ff;
  color: #1e1b4b;
}

html[data-retro-theme]:not([data-retro-theme="default"]) .top-inbox-filters-bar .filter-btn.active .f-pill-cnt,
html[data-retro-theme]:not([data-retro-theme="default"]) .top-inbox-filters-bar .status-filter-btn.active .f-pill-cnt {
  background: var(--rt-topbar-bg);
  color: var(--rt-topbar-text);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .top-bar-status-cluster .status-badge {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #86efac;
}

html[data-retro-theme]:not([data-retro-theme="default"]) .top-bar-status-cluster .status-badge.offline {
  color: #fca5a5;
}

/* Inbox Sidebar & Conversations */
html[data-retro-theme]:not([data-retro-theme="default"]) .inbox-sidebar {
  background: var(--rt-sidebar-bg);
  border-right-color: var(--rt-sidebar-border);
  color: var(--rt-sidebar-text);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .sidebar-header {
  background: var(--rt-sidebar-header-bg);
  border-bottom-color: var(--rt-sidebar-border);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .sidebar-header h2,
html[data-retro-theme]:not([data-retro-theme="default"]) #conv-total-pill {
  color: var(--rt-sidebar-text);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .btn-mini-inline {
  background: var(--rt-sidebar-input-bg);
  border-color: var(--rt-sidebar-input-border);
  color: var(--rt-sidebar-text);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .btn-mini-inline:hover:not(:disabled) {
  background: var(--rt-sidebar-hover);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .conv-search {
  background: var(--rt-sidebar-input-bg);
  border-color: var(--rt-sidebar-input-border);
  color: var(--rt-sidebar-text);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .conv-search::placeholder {
  color: var(--rt-sidebar-muted);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .conv-search:focus {
  background: var(--rt-sidebar-active);
  border-color: var(--rt-accent);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .zalo-subtab {
  color: var(--rt-sidebar-muted);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .zalo-subtab:hover {
  color: var(--rt-sidebar-text);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .zalo-subtab.active {
  color: var(--rt-sidebar-active-border);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .zalo-subtab.active::after {
  background: var(--rt-sidebar-active-border);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .zalo-classify-btn {
  color: var(--rt-sidebar-muted);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .zalo-classify-btn:hover {
  background: var(--rt-sidebar-hover);
  color: var(--rt-sidebar-text);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .zalo-classify-btn.is-open,
html[data-retro-theme]:not([data-retro-theme="default"]) .zalo-classify-btn.has-active-filter {
  background: var(--rt-sidebar-active);
  border-color: var(--rt-sidebar-active-border);
  color: var(--rt-sidebar-text);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .zalo-classify-cnt {
  background: var(--rt-btn-bg);
  color: var(--rt-btn-text);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .zalo-more-btn {
  color: var(--rt-sidebar-muted);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .zalo-more-btn:hover {
  background: var(--rt-sidebar-hover);
  color: var(--rt-sidebar-text);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .zalo-active-filters-strip {
  border-top-color: var(--rt-sidebar-border);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .zalo-active-chip {
  background: var(--rt-sidebar-input-bg);
  border-color: var(--rt-sidebar-input-border);
  color: var(--rt-sidebar-text);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .conv-item {
  border-bottom-color: var(--rt-sidebar-border);
  color: var(--rt-sidebar-text);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .conv-item:hover {
  background: var(--rt-sidebar-hover);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .conv-item.is-pinned {
  background: var(--rt-sidebar-pinned-bg);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .conv-item.is-pinned:hover {
  background: var(--rt-sidebar-hover);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .conv-item.is-unreplied {
  border-left: 3.5px solid var(--rt-unreplied-accent);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .conv-item.active,
html[data-retro-theme]:not([data-retro-theme="default"]) .conv-item.is-pinned.active {
  background: var(--rt-sidebar-active);
  border-left: 3.5px solid var(--rt-sidebar-active-border);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .conv-name,
html[data-retro-theme]:not([data-retro-theme="default"]) .conv-item.has-unread .conv-name,
html[data-retro-theme]:not([data-retro-theme="default"]) .conv-item.has-unread .conv-preview {
  color: var(--rt-sidebar-text);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .conv-preview,
html[data-retro-theme]:not([data-retro-theme="default"]) .conv-time {
  color: var(--rt-sidebar-muted);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .conv-quick-tag-btn {
  color: var(--rt-sidebar-muted);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .conv-quick-tag-btn:hover {
  background: var(--rt-sidebar-hover);
  color: var(--rt-sidebar-text);
}

/* Dark-mode safe incoming message arrival pulse (prevents light #fef3c7 flash behind light text) */
@keyframes convJustArrivedPulseDark {
  0% {
    background-color: var(--rt-sidebar-active);
    box-shadow: inset 3px 0 0 var(--rt-unreplied-accent), 0 0 0 2px rgba(245, 158, 11, 0.35);
  }
  65% {
    background-color: var(--rt-sidebar-hover);
    box-shadow: inset 3px 0 0 var(--rt-unreplied-accent), 0 0 0 1px rgba(245, 158, 11, 0.2);
  }
  100% {
    background-color: inherit;
    box-shadow: none;
  }
}

html[data-retro-theme="02-ipod-u2"] .conv-item.is-just-arrived,
html[data-retro-theme="06-marantz-2270"] .conv-item.is-just-arrived,
html[data-retro-theme="07-bluenote-vinyl"] .conv-item.is-just-arrived,
html[data-retro-theme="13-ibm-3278-crt"] .conv-item.is-just-arrived,
html[data-retro-theme="14-vt220-amber"] .conv-item.is-just-arrived {
  animation: convJustArrivedPulseDark 3.6s ease-out;
}

html[data-retro-theme="02-ipod-u2"] .pos-spx-coin-toggle,
html[data-retro-theme="06-marantz-2270"] .pos-spx-coin-toggle,
html[data-retro-theme="07-bluenote-vinyl"] .pos-spx-coin-toggle,
html[data-retro-theme="13-ibm-3278-crt"] .pos-spx-coin-toggle,
html[data-retro-theme="14-vt220-amber"] .pos-spx-coin-toggle {
  color: #fcd34d;
}

/* Chat Window, Header, Bubbles & Interactive Controls */
html[data-retro-theme]:not([data-retro-theme="default"]) .chat-window {
  background-color: var(--rt-chat-bg);
  background-image: var(--rt-chat-pattern, none);
  color: var(--rt-chat-text);
}

html[data-retro-theme="04-macintosh-1984"] .chat-window,
html[data-retro-theme="15-gameboy-dmg01"] .chat-window,
html[data-retro-theme="21-rin-signature"] .chat-window {
  background-size: 8px 8px;
}

html[data-retro-theme="19-teenage-op1"] .chat-window {
  background-size: 20px 20px;
}

html[data-retro-theme]:not([data-retro-theme="default"]) .chat-header {
  background: var(--rt-chat-header-bg);
  border-bottom-color: var(--rt-chat-header-border);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .chat-window .chat-header-title {
  color: var(--rt-chat-header-text);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .chat-window .chat-header-sub {
  color: var(--rt-chat-header-muted);
}

html[data-retro-theme]:not([data-retro-theme="default"]) #chat-header-avatar {
  background: var(--rt-btn-mini-bg);
  border-color: var(--rt-btn-mini-border);
  color: var(--rt-chat-header-text);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .chat-header .btn-mini {
  background: var(--rt-btn-mini-bg);
  border-color: var(--rt-btn-mini-border);
  color: var(--rt-btn-mini-text);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .chat-header .btn-mini:hover:not(:disabled) {
  background: var(--rt-btn-mini-hover);
  color: var(--rt-btn-mini-text);
}

html[data-retro-theme]:not([data-retro-theme="default"]) #btn-toggle-right-pane.active {
  background: var(--rt-btn-bg);
  border-color: var(--rt-btn-bg);
  color: var(--rt-btn-text);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .chat-header-tag-pill {
  background: var(--rt-btn-mini-bg);
  border-color: var(--rt-btn-mini-border);
  color: var(--rt-chat-header-text);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .chat-header-add-tag-btn {
  background: transparent;
  border-color: var(--rt-btn-mini-border);
  color: var(--rt-chat-header-muted);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .chat-header-add-tag-btn:hover {
  background: var(--rt-btn-mini-bg);
  color: var(--rt-chat-header-text);
}

/* Bubbles */
html[data-retro-theme]:not([data-retro-theme="default"]) .chat-window .message-customer .message-bubble {
  background: var(--rt-cust-bubble-bg);
  border: 1px solid var(--rt-cust-bubble-border);
  color: var(--rt-cust-bubble-text);
  box-shadow: var(--rt-shadow-bubble);
  border-radius: var(--rt-radius-bubble);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .chat-window .message-bot .message-bubble,
html[data-retro-theme]:not([data-retro-theme="default"]) .chat-window .message-bot.admin-reply .message-bubble {
  background: var(--rt-shop-bubble-bg);
  border: 1px solid var(--rt-shop-bubble-border);
  color: var(--rt-shop-bubble-text);
  box-shadow: var(--rt-shadow-bubble);
  border-radius: var(--rt-radius-bubble);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .chat-window .message-meta {
  color: var(--rt-chat-muted);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .chat-window .ai-tag {
  color: var(--rt-ai-tag-color);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .chat-window .msg-quote-block {
  background: var(--rt-cust-quote-bg);
  border-left-color: var(--rt-cust-quote-border);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .chat-window .message-bot .msg-quote-block {
  background: var(--rt-shop-quote-bg);
  border-left-color: var(--rt-shop-quote-border);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .chat-window .msg-quote-sender {
  color: var(--rt-quote-sender);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .chat-window .msg-quote-text {
  color: var(--rt-quote-text);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .chat-window .message-customer .msg-link-card {
  background: var(--rt-cust-link-bg);
  border-color: var(--rt-cust-link-border);
  color: var(--rt-cust-bubble-text);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .chat-window .message-bot .msg-link-card {
  background: var(--rt-shop-link-bg);
  border-color: var(--rt-shop-link-border);
  color: var(--rt-shop-bubble-text);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .chat-window .msg-inline-link,
html[data-retro-theme]:not([data-retro-theme="default"]) .chat-window .message-bot .msg-inline-link {
  color: var(--rt-inline-link);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .chat-window .chat-phone-chip,
html[data-retro-theme]:not([data-retro-theme="default"]) .chat-window .message-bot .chat-phone-chip {
  background: rgba(234, 88, 12, 0.14);
  border-color: rgba(234, 88, 12, 0.35);
  color: var(--rt-cust-bubble-text);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .chat-window .message-bot .chat-phone-chip {
  color: var(--rt-shop-bubble-text);
}

/* Dividers, History Loader, Request Folder, Copilot */
html[data-retro-theme]:not([data-retro-theme="default"]) .chat-window .msg-date-divider,
html[data-retro-theme]:not([data-retro-theme="default"]) .chat-window .history-day1-divider {
  background: var(--rt-divider-bg);
  border-color: var(--rt-divider-border);
  color: var(--rt-divider-text);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .chat-window .history-loader-bar {
  background: var(--rt-banner-bg);
  border-color: var(--rt-banner-border);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .chat-window .history-loader-info {
  color: var(--rt-banner-text);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .chat-window .btn-history-more,
html[data-retro-theme]:not([data-retro-theme="default"]) .chat-window .btn-accept-only,
html[data-retro-theme]:not([data-retro-theme="default"]) .chat-window .btn-edit {
  background: var(--rt-btn-mini-bg);
  border-color: var(--rt-btn-mini-border);
  color: var(--rt-btn-mini-text);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .chat-window .btn-history-all,
html[data-retro-theme]:not([data-retro-theme="default"]) .chat-window .btn-accept-reply {
  background: var(--rt-btn-bg);
  border-color: var(--rt-btn-bg);
  color: var(--rt-btn-text);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .chat-window .request-folder-banner {
  background: var(--rt-banner-bg);
  border-color: var(--rt-banner-border);
  border-left: 4px solid var(--rt-accent);
  color: var(--rt-banner-text);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .chat-window .request-folder-banner.is-hidden {
  border-left-color: #a855f7;
}

html[data-retro-theme]:not([data-retro-theme="default"]) .chat-window .copilot-review-box {
  background: var(--rt-copilot-bg);
  border-color: var(--rt-accent);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .chat-window .copilot-title {
  color: var(--rt-copilot-title);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .chat-window .copilot-text {
  background: var(--rt-copilot-input-bg);
  border-color: var(--rt-banner-border);
  color: var(--rt-banner-text);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .chat-pending-media-bar {
  background: var(--rt-composer-bg);
  border-top-color: var(--rt-composer-border);
  color: var(--rt-chat-header-text);
}

html[data-retro-theme]:not([data-retro-theme="default"]) #chat-reply-quote-bar,
html[data-retro-theme]:not([data-retro-theme="default"]) .chat-reply-quote-bar {
  background: var(--rt-composer-bg);
  border-top-color: var(--rt-composer-border);
  border-left-color: var(--rt-accent);
  color: var(--rt-chat-header-text);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .chat-reply-quote-title {
  color: var(--rt-accent);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .chat-reply-quote-text {
  color: var(--rt-chat-header-text);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .chat-reply-quote-close {
  background: var(--rt-btn-mini-bg);
  color: var(--rt-btn-mini-text);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .chat-inthread-search-bar {
  background: var(--rt-chat-header-bg);
  border-bottom-color: var(--rt-chat-header-border);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .chat-inthread-search-input {
  background: var(--rt-composer-input-bg);
  border-color: var(--rt-composer-input-border);
  color: var(--rt-composer-input-text);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .chat-inthread-search-input::placeholder {
  color: var(--rt-composer-placeholder);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .chat-inthread-search-count {
  color: var(--rt-chat-header-text);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .chat-inthread-search-bar .btn-mini {
  background: var(--rt-btn-mini-bg);
  border-color: var(--rt-btn-mini-border);
  color: var(--rt-btn-mini-text);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .chat-inthread-search-bar .close-btn {
  color: var(--rt-chat-header-muted);
}

html[data-retro-theme]:not([data-retro-theme="default"]) #chat-new-msg-pill,
html[data-retro-theme]:not([data-retro-theme="default"]) .chat-new-msg-pill {
  background: var(--rt-pill-bg);
  border-color: var(--rt-pill-border);
  color: var(--rt-pill-text);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .msg-action-btn {
  background: var(--rt-popover-bg);
  border-color: var(--rt-popover-border);
  color: var(--rt-popover-text);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .msg-action-btn:hover {
  background: var(--rt-btn-bg);
  border-color: var(--rt-btn-bg);
  color: var(--rt-btn-text);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .msg-reaction-chip {
  background: var(--rt-popover-bg);
  border-color: var(--rt-popover-border);
  color: var(--rt-popover-text);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .msg-reaction-picker-pop {
  background: var(--rt-popover-bg);
  border-color: var(--rt-popover-border);
}

/* Sticker & Quick-Reply Popovers */
html[data-retro-theme]:not([data-retro-theme="default"]) .chat-sticker-popover,
html[data-retro-theme]:not([data-retro-theme="default"]) .chat-window .quick-reply-popover {
  background: var(--rt-popover-bg);
  border-color: var(--rt-popover-border);
  color: var(--rt-popover-text);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .sticker-tabs,
html[data-retro-theme]:not([data-retro-theme="default"]) .chat-window .qr-popover-header {
  background: var(--rt-composer-bg);
  border-bottom-color: var(--rt-popover-border);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .sticker-tabs button,
html[data-retro-theme]:not([data-retro-theme="default"]) .sticker-tab-btn {
  background: var(--rt-btn-mini-bg);
  border-color: var(--rt-btn-mini-border);
  color: var(--rt-btn-mini-text);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .sticker-tabs button.active,
html[data-retro-theme]:not([data-retro-theme="default"]) .sticker-tab-btn.active {
  background: var(--rt-btn-bg);
  border-color: var(--rt-btn-bg);
  color: var(--rt-btn-text);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .sticker-item-btn {
  color: var(--rt-popover-text);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .chat-window .qr-popover-header input {
  background: var(--rt-composer-input-bg);
  border-color: var(--rt-composer-input-border);
  color: var(--rt-composer-input-text);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .chat-window .qr-popover-item {
  background: var(--rt-popover-bg);
  border-color: var(--rt-popover-border);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .chat-window .qr-popover-item:hover {
  background: var(--rt-popover-hover);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .chat-window .qr-popover-item-head {
  color: var(--rt-popover-text);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .chat-window .qr-popover-item-preview {
  color: var(--rt-popover-muted);
}

/* Composer Bar */
html[data-retro-theme]:not([data-retro-theme="default"]) .chat-input-bar {
  background: var(--rt-composer-bg);
  border-top-color: var(--rt-composer-border);
}

html[data-retro-theme]:not([data-retro-theme="default"]) textarea.chat-input-field,
html[data-retro-theme]:not([data-retro-theme="default"]) .chat-input-field {
  background: var(--rt-composer-input-bg);
  border-color: var(--rt-composer-input-border);
  color: var(--rt-composer-input-text);
}

html[data-retro-theme]:not([data-retro-theme="default"]) textarea.chat-input-field::placeholder,
html[data-retro-theme]:not([data-retro-theme="default"]) .chat-input-field::placeholder {
  color: var(--rt-composer-placeholder);
}

html[data-retro-theme]:not([data-retro-theme="default"]) textarea.chat-input-field:focus,
html[data-retro-theme]:not([data-retro-theme="default"]) .chat-input-field:focus {
  border-color: var(--rt-accent);
  background: var(--rt-composer-input-bg);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .chat-input-bar .btn-mini {
  background: var(--rt-btn-mini-bg);
  border-color: var(--rt-btn-mini-border);
  color: var(--rt-btn-mini-text);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .chat-input-bar .btn-mini:hover:not(:disabled) {
  background: var(--rt-btn-mini-hover);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .chat-input-bar .btn-primary {
  background: var(--rt-btn-bg);
  color: var(--rt-btn-text);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .chat-input-bar .btn-primary:hover:not(:disabled) {
  background: var(--rt-btn-hover);
}

/* Right Inspector (AI / POS & SPX / CRM / Media) */
html[data-retro-theme]:not([data-retro-theme="default"]) .ai-inspector {
  background: var(--rt-inspector-bg);
  border-left-color: var(--rt-inspector-border);
  color: var(--rt-inspector-text);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .ai-inspector .right-panel-tabs {
  background: var(--rt-inspector-tabs-bg);
  border-color: var(--rt-inspector-border);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .ai-inspector .right-tab-btn {
  color: var(--rt-inspector-muted);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .ai-inspector .right-tab-btn:hover {
  background: var(--rt-inspector-card-bg);
  color: var(--rt-inspector-text);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .ai-inspector .right-tab-btn.active {
  background: var(--rt-btn-bg);
  color: var(--rt-btn-text);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .ai-inspector .inspector-card {
  background: var(--rt-inspector-card-bg);
  border-color: var(--rt-inspector-card-border);
  color: var(--rt-inspector-text);
  border-radius: var(--rt-radius-card);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .ai-inspector .pos-addr-cascade,
html[data-retro-theme]:not([data-retro-theme="default"]) .ai-inspector .pos-total-bar,
html[data-retro-theme]:not([data-retro-theme="default"]) .ai-inspector .ai-qr-item,
html[data-retro-theme]:not([data-retro-theme="default"]) .ai-inspector .crm-order-item,
html[data-retro-theme]:not([data-retro-theme="default"]) .ai-inspector .crm-note-item {
  background: var(--rt-inspector-sub-bg);
  border-color: var(--rt-inspector-card-border);
  color: var(--rt-inspector-text);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .ai-inspector .pos-input,
html[data-retro-theme]:not([data-retro-theme="default"]) .ai-inspector .pos-textarea,
html[data-retro-theme]:not([data-retro-theme="default"]) .ai-inspector .pos-select {
  background: var(--rt-inspector-input-bg);
  border-color: var(--rt-inspector-card-border);
  color: var(--rt-inspector-text);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .ai-inspector .pos-input:focus,
html[data-retro-theme]:not([data-retro-theme="default"]) .ai-inspector .pos-textarea:focus,
html[data-retro-theme]:not([data-retro-theme="default"]) .ai-inspector .pos-select:focus {
  background: var(--rt-inspector-input-bg);
  border-color: var(--rt-accent);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .ai-inspector .pos-label,
html[data-retro-theme]:not([data-retro-theme="default"]) .ai-inspector .pos-addr-hint,
html[data-retro-theme]:not([data-retro-theme="default"]) .ai-inspector .ai-qr-item-preview {
  color: var(--rt-inspector-muted);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .ai-inspector .pos-detect-status,
html[data-retro-theme]:not([data-retro-theme="default"]) .ai-inspector .ai-qr-item-title {
  color: var(--rt-inspector-text);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .ai-inspector .pos-phone-chip {
  background: var(--rt-inspector-sub-bg);
  border-color: var(--rt-inspector-card-border);
  color: var(--rt-inspector-text);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .chat-shared-link-item {
  background: var(--rt-inspector-sub-bg);
  border-color: var(--rt-inspector-card-border);
  color: var(--rt-inline-link);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .chat-shared-link-item:hover {
  background: var(--rt-inspector-card-bg);
  border-color: var(--rt-accent);
}

/* Global Popovers, Modals, Settings, Zalo Poster, Comments, Remote Access */
html[data-retro-theme]:not([data-retro-theme="default"]) .zalo-popover {
  background: var(--rt-popover-bg);
  border-color: var(--rt-popover-border);
  color: var(--rt-popover-text);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .zalo-pop-title,
html[data-retro-theme]:not([data-retro-theme="default"]) .zalo-pop-count,
html[data-retro-theme]:not([data-retro-theme="default"]) .zalo-pop-close-x {
  color: var(--rt-popover-muted);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .zalo-pop-item,
html[data-retro-theme]:not([data-retro-theme="default"]) .zalo-pop-footer-btn,
html[data-retro-theme]:not([data-retro-theme="default"]) .zalo-conv-context-menu .zalo-pop-item {
  color: var(--rt-popover-text);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .zalo-pop-item:hover,
html[data-retro-theme]:not([data-retro-theme="default"]) .zalo-pop-footer-btn:hover,
html[data-retro-theme]:not([data-retro-theme="default"]) .zalo-conv-context-menu .zalo-pop-item:hover {
  background: var(--rt-popover-hover);
  color: var(--rt-popover-text);
}

html[data-retro-theme="16-win95-workstation"] .zalo-pop-item:hover,
html[data-retro-theme="16-win95-workstation"] .zalo-pop-footer-btn:hover {
  color: #ffffff;
}

html[data-retro-theme]:not([data-retro-theme="default"]) .modal-content {
  background: var(--rt-surface-card);
  border-color: var(--rt-surface-border);
  color: var(--rt-surface-text);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .modal-header h3,
html[data-retro-theme]:not([data-retro-theme="default"]) .close-btn:hover {
  color: var(--rt-surface-text);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .close-btn {
  color: var(--rt-surface-muted);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .settings-card,
html[data-retro-theme]:not([data-retro-theme="default"]) .zp-card,
html[data-retro-theme]:not([data-retro-theme="default"]) .remote-access-card,
html[data-retro-theme]:not([data-retro-theme="default"]) .comment-card,
html[data-retro-theme]:not([data-retro-theme="default"]) .comments-toolbar,
html[data-retro-theme]:not([data-retro-theme="default"]) .comments-empty-state,
html[data-retro-theme]:not([data-retro-theme="default"]) .zp-item-card,
html[data-retro-theme]:not([data-retro-theme="default"]) .tag-mgr-form,
html[data-retro-theme]:not([data-retro-theme="default"]) .tag-mgr-row {
  background: var(--rt-surface-card);
  border-color: var(--rt-surface-border);
  color: var(--rt-surface-text);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .settings-card h3,
html[data-retro-theme]:not([data-retro-theme="default"]) .zp-card-head h3,
html[data-retro-theme]:not([data-retro-theme="default"]) .zp-item-title,
html[data-retro-theme]:not([data-retro-theme="default"]) .zp-queue-head,
html[data-retro-theme]:not([data-retro-theme="default"]) .tag-mgr-row-label,
html[data-retro-theme]:not([data-retro-theme="default"]) .remote-public-url {
  color: var(--rt-surface-text);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .form-input,
html[data-retro-theme]:not([data-retro-theme="default"]) .form-textarea,
html[data-retro-theme]:not([data-retro-theme="default"]) .form-select,
html[data-retro-theme]:not([data-retro-theme="default"]) .modal-content .form-input,
html[data-retro-theme]:not([data-retro-theme="default"]) .modal-content .form-textarea,
html[data-retro-theme]:not([data-retro-theme="default"]) .modal-content .form-select,
html[data-retro-theme]:not([data-retro-theme="default"]) .comments-search-input {
  background: var(--rt-surface-input);
  border-color: var(--rt-surface-border);
  color: var(--rt-surface-text);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .remote-url-row,
html[data-retro-theme]:not([data-retro-theme="default"]) .zp-vault-cheatsheet,
html[data-retro-theme]:not([data-retro-theme="default"]) .zp-time-chip,
html[data-retro-theme]:not([data-retro-theme="default"]) .cmt-pill {
  background: var(--rt-surface-input);
  border-color: var(--rt-surface-border);
  color: var(--rt-surface-text);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .cmt-pill.active {
  background: var(--rt-btn-bg);
  border-color: var(--rt-btn-bg);
  color: var(--rt-btn-text);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .ws-reconnecting-pill {
  background: var(--rt-popover-bg);
  border-bottom-color: var(--rt-popover-border);
  color: var(--rt-accent);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .auth-lock-card {
  background: var(--rt-surface-card);
  border-color: var(--rt-surface-border);
  color: var(--rt-surface-text);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .auth-lock-card h2 {
  color: var(--rt-surface-text);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .auth-lock-card p {
  color: var(--rt-surface-muted);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .auth-pin-input {
  background: var(--rt-surface-input);
  border-color: var(--rt-surface-border);
  color: var(--rt-surface-text);
}

/* ------------------------------------------------------------------------------
   4. BESPOKE TACTILE HARDWARE GEOMETRY (#04 MACINTOSH 1984 & #16 WIN95)
   ------------------------------------------------------------------------------ */
html[data-retro-theme="04-macintosh-1984"] .chat-window .message-bubble,
html[data-retro-theme="04-macintosh-1984"] .ai-inspector .inspector-card,
html[data-retro-theme="04-macintosh-1984"] .settings-card,
html[data-retro-theme="04-macintosh-1984"] .zp-card,
html[data-retro-theme="04-macintosh-1984"] .modal-content,
html[data-retro-theme="04-macintosh-1984"] .zalo-popover {
  border: 1.5px solid #1c1b18;
  box-shadow: 2px 2px 0 rgba(28, 27, 24, 0.85);
}

html[data-retro-theme="16-win95-workstation"] .chat-header,
html[data-retro-theme="16-win95-workstation"] .chat-input-bar,
html[data-retro-theme="16-win95-workstation"] .ai-inspector .inspector-card,
html[data-retro-theme="16-win95-workstation"] .settings-card,
html[data-retro-theme="16-win95-workstation"] .zp-card,
html[data-retro-theme="16-win95-workstation"] .modal-content {
  border-radius: 2px;
  box-shadow:
    inset 1px 1px 0 #ffffff,
    inset -1px -1px 0 #808080,
    1px 1px 0 #000000;
}

html[data-retro-theme="16-win95-workstation"] .btn-mini,
html[data-retro-theme="16-win95-workstation"] .btn-secondary,
html[data-retro-theme="16-win95-workstation"] .btn-primary {
  border-radius: 2px;
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.7),
    inset -1px -1px 0 rgba(0, 0, 0, 0.35);
}

/* ------------------------------------------------------------------------------
   5. THEME STUDIO UI CHROME (RAIL BADGE, SETTINGS BANNER, MODAL, FLOATING BAR)
   ------------------------------------------------------------------------------ */
.zalo-left-rail .nav-count-badge.nav-badge-retro {
  background: #d97706;
  color: #ffffff;
  font-size: 8.5px;
  padding: 0 3.5px;
}

/* Settings Banner */
.retro-settings-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-left: 4px solid var(--primary);
}

.retro-settings-banner-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 220px;
  flex: 1;
}

.retro-settings-banner h3 {
  margin-bottom: 2px;
}

.retro-active-theme-lbl {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.retro-settings-banner-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

/* Studio Modal */
#retro-theme-modal.open,
#retro-theme-modal.is-open,
#retro-theme-modal.active {
  display: flex;
  z-index: 1200;
}

.modal-content.retro-studio-modal-content {
  width: min(1120px, 95vw);
  max-width: 1120px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 18px 20px;
}

.retro-studio-toolbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.retro-smart-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
}

.retro-smart-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  margin-right: 4px;
}

.retro-smart-select,
.form-select.retro-smart-select {
  width: auto;
  min-width: 165px;
  max-width: 230px;
  height: 32px;
  padding: 4px 9px;
  font-size: 11.5px;
}

.retro-scale-group {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px;
  border-radius: 8px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
}

.retro-scale-btn,
.retro-scale-group button {
  padding: 4px 8px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.14s ease, color 0.14s ease;
}

.retro-scale-btn:hover,
.retro-scale-group button:hover {
  color: var(--text-main);
}

.retro-scale-btn.active,
.retro-scale-group button.active {
  background: var(--primary);
  color: var(--rt-btn-text, #ffffff);
}

.retro-category-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.retro-cat-btn,
.retro-cat-pill,
.retro-category-bar button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: var(--bg-input);
  color: var(--text-main);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.retro-cat-btn:hover,
.retro-cat-pill:hover,
.retro-category-bar button:hover {
  background: var(--bg-hover);
}

.retro-cat-btn.active,
.retro-cat-pill.active,
.retro-category-bar button.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--rt-btn-text, #ffffff);
}

/* 3-col Desktop / 2-col Tablet / 1-col Mobile Grid */
.retro-themes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  overflow-y: auto;
  padding: 2px 4px 8px 2px;
  min-height: 0;
}

@media (max-width: 1024px) {
  .retro-themes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .retro-themes-grid {
    grid-template-columns: 1fr;
  }
}

.retro-theme-card {
  background: var(--bg-input);
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}

.retro-theme-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  border-color: var(--primary);
}

.retro-theme-card.is-active,
.retro-theme-card.is-previewing {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary);
}

.retro-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.retro-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.retro-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
}

.retro-card-num,
.retro-num-pill {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  flex-shrink: 0;
  margin-right: 4px;
}

.retro-era-pill {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Scoped Miniature Live UI Mockup */
.retro-mini-mockup {
  border-radius: 9px;
  overflow: hidden;
  border: 1px solid rgba(128, 128, 128, 0.32);
  display: flex;
  flex-direction: column;
  background: var(--rt-chat-bg, #322e2c);
  color: var(--rt-chat-text, #faf8f4);
  font-family: var(--rt-font-body, var(--font-family));
  user-select: none;
}

.retro-mini-shell {
  font-family: var(--rt-font-body, var(--font-family));
}

.retro-mini-topbar {
  height: 18px;
  background: var(--rt-topbar-bg, #383331);
  border-bottom: 1px solid var(--rt-topbar-border, rgba(0, 0, 0, 0.25));
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 7px;
  font-size: 8.5px;
  font-weight: 700;
  color: var(--rt-topbar-text, #fafaf9);
  flex-shrink: 0;
}

.retro-mini-mockup[data-retro-theme="18-polaroid-sx70"] .retro-mini-topbar {
  border-bottom: 2.5px solid transparent;
  border-image: linear-gradient(
      90deg,
      #e53935 0%,
      #e53935 20%,
      #fb8c00 20%,
      #fb8c00 40%,
      #fdd835 40%,
      #fdd835 60%,
      #43a047 60%,
      #43a047 80%,
      #1e88e5 80%,
      #1e88e5 100%
    )
    1;
}

.retro-mini-body {
  flex: 1;
  min-height: 0;
  display: flex;
}

.retro-mini-rail {
  width: 24px;
  background: var(--rt-rail-bg, #2e2a29);
  color: var(--rt-rail-text, #fafaf9);
  border-right: 1px solid var(--rt-rail-border, rgba(0, 0, 0, 0.25));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  padding: 6px 2px;
  font-size: 10px;
  flex-shrink: 0;
}

.retro-mini-rail-ico {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  opacity: 0.85;
}

.retro-mini-rail-ico.is-active {
  background: var(--rt-rail-active-bg, rgba(255, 255, 255, 0.18));
  color: var(--rt-rail-active-text, #ffffff);
  opacity: 1;
}

.retro-mini-sidebar {
  width: 40%;
  background: var(--rt-sidebar-bg, #eae6de);
  color: var(--rt-sidebar-text, #1c1917);
  border-right: 1px solid var(--rt-sidebar-border, rgba(0, 0, 0, 0.15));
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}

.retro-mini-conv-card {
  background: var(--rt-sidebar-active, #f8f6f1);
  border-left: 2.5px solid var(--rt-sidebar-active-border, #383331);
  border-radius: 5px;
  padding: 4px 5px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.retro-mini-conv-name {
  font-family: var(--rt-font-display, var(--rt-font-body, inherit));
  font-size: 10.5px;
  font-weight: 700;
  color: var(--rt-sidebar-text, #1c1917);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.retro-mini-conv-msg {
  font-size: 9px;
  line-height: 1.25;
  color: var(--rt-sidebar-muted, #57534e);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.retro-mini-chat {
  flex: 1;
  min-width: 0;
  background-color: var(--rt-chat-bg, #322e2c);
  background-image: var(--rt-chat-pattern, none);
  padding: 6px 7px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  overflow: hidden;
}

.retro-mini-bubble {
  padding: 4px 7px;
  border-radius: var(--rt-radius-bubble, 7px);
  font-size: 9.5px;
  line-height: 1.3;
  max-width: 94%;
  box-shadow: var(--rt-shadow-bubble, 0 1px 2px rgba(0, 0, 0, 0.14));
}

.retro-mini-bubble.is-cust {
  align-self: flex-start;
  background: var(--rt-cust-bubble-bg, #f6e8c8);
  border: 1px solid var(--rt-cust-bubble-border, #e2cb99);
  color: var(--rt-cust-bubble-text, #231f1e);
}

.retro-mini-bubble.is-shop {
  align-self: flex-end;
  background: var(--rt-shop-bubble-bg, #faf8f4);
  border: 1px solid var(--rt-shop-bubble-border, #e4dfd5);
  color: var(--rt-shop-bubble-text, #1c1917);
}

/* Swatches, Meta Pills & Card Actions */
.retro-swatch-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.retro-swatch-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid rgba(128, 128, 128, 0.4);
  cursor: pointer;
  padding: 0;
  transition: transform 0.12s ease;
}

.retro-swatch-dot:hover {
  transform: scale(1.16);
}

.retro-meta-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.retro-meta-pill {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  white-space: nowrap;
}

.retro-meta-pill.is-approved {
  background: #dcfce7;
  border-color: #86efac;
  color: #166534;
}

.retro-btn-fav.is-fav {
  background: rgba(250, 204, 21, 0.2);
  border-color: #eab308;
  color: #854d0e;
}

.retro-smart-note {
  font-size: 11px;
  line-height: 1.4;
  color: var(--text-muted);
}

.retro-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 4px;
}

.retro-card-actions .btn-mini,
.retro-card-actions .btn-secondary {
  height: 30px;
  padding: 0 9px;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.retro-card-actions .btn-primary {
  flex: 1;
  height: 30px;
  padding: 0 10px;
  font-size: 11.5px;
}

/* Floating Live Preview Bar (#retro-preview-bar) */
#retro-preview-bar,
.retro-preview-bar {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 2500;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(24, 22, 20, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
  color: #faf8f4;
  max-width: calc(100vw - 24px);
}

.retro-preview-info {
  display: flex;
  flex-direction: column;
  min-width: 120px;
  max-width: 240px;
  line-height: 1.2;
  padding: 0 4px;
}

#retro-preview-title {
  font-size: 12px;
  font-weight: 700;
  color: #f6e8c8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#retro-preview-meta {
  font-size: 10px;
  color: rgba(250, 248, 244, 0.74);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#retro-preview-bar .btn-mini {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #faf8f4;
  border-radius: 999px;
  height: 30px;
  padding: 0 10px;
  font-size: 11.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

#retro-preview-bar .btn-mini:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.24);
  color: #ffffff;
}

#btn-retro-fav.is-fav {
  background: rgba(250, 204, 21, 0.24);
  border-color: #facc15;
  color: #fde047;
}

#btn-retro-approve {
  border-radius: 999px;
  height: 30px;
  padding: 0 13px;
  font-size: 11.5px;
  background: #16a34a;
  border: 1px solid #22c55e;
  color: #ffffff;
  flex-shrink: 0;
}

#btn-retro-approve:hover:not(:disabled) {
  background: #15803d;
}

@media (max-width: 768px) {
  #retro-preview-bar,
  .retro-preview-bar {
    top: calc(50px + env(safe-area-inset-top, 0px));
    bottom: auto;
    left: 8px;
    right: 8px;
    transform: none;
    width: calc(100vw - 16px);
    max-width: none;
    border-radius: 12px;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 6px 9px;
    gap: 5px;
  }

  .retro-preview-info {
    order: -1;
    width: 100%;
    max-width: none;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 2px;
  }

  #retro-preview-bar .btn-mini,
  #btn-retro-approve {
    height: 28px;
    padding: 0 8px;
    font-size: 11px;
  }
}

/* ==============================================================================
   CUSTOM RETRO FONT OVERRIDE ENGINE (10 VIETNAMESE-COMPLETE PAIRINGS)
   ============================================================================== */
[data-retro-font="f01-chakra-spacemono"] {
  --custom-font-display: "Chakra Petch", "Space Mono", sans-serif;
  --custom-font-body: "Space Mono", monospace;
  --custom-font-mono: "Space Mono", monospace;
}

[data-retro-font="f02-tektur-chivomono"] {
  --custom-font-display: "Tektur", "Chivo Mono", sans-serif;
  --custom-font-body: "Chivo Mono", monospace;
  --custom-font-mono: "Chivo Mono", monospace;
}

[data-retro-font="f03-handjet-jetbrains"] {
  --custom-font-display: "Handjet", "JetBrains Mono", monospace;
  --custom-font-body: "JetBrains Mono", monospace;
  --custom-font-mono: "JetBrains Mono", monospace;
}

[data-retro-font="f04-goldman-ibmmono"] {
  --custom-font-display: "Goldman", "IBM Plex Mono", sans-serif;
  --custom-font-body: "IBM Plex Mono", monospace;
  --custom-font-mono: "IBM Plex Mono", monospace;
}

[data-retro-font="f05-jura-spacemono"] {
  --custom-font-display: "Jura", "Space Mono", sans-serif;
  --custom-font-body: "Space Mono", monospace;
  --custom-font-mono: "Space Mono", monospace;
}

[data-retro-font="f06-vt323-inconsolata"] {
  --custom-font-display: "VT323", "Inconsolata", monospace;
  --custom-font-body: "Inconsolata", monospace;
  --custom-font-mono: "Inconsolata", monospace;
}

[data-retro-font="f07-saira-robotomono"] {
  --custom-font-display: "Saira", "Roboto Mono", sans-serif;
  --custom-font-body: "Roboto Mono", monospace;
  --custom-font-mono: "Roboto Mono", monospace;
}

[data-retro-font="f08-exo2-sourcecode"] {
  --custom-font-display: "Exo 2", "Source Code Pro", sans-serif;
  --custom-font-body: "Source Code Pro", monospace;
  --custom-font-mono: "Source Code Pro", monospace;
}

[data-retro-font="f09-spacegrotesk-victormono"] {
  --custom-font-display: "Space Grotesk", "Victor Mono", sans-serif;
  --custom-font-body: "Victor Mono", monospace;
  --custom-font-mono: "Victor Mono", monospace;
}

[data-retro-font="f10-spacemono-full"] {
  --custom-font-display: "Space Mono", monospace;
  --custom-font-body: "Space Mono", monospace;
  --custom-font-mono: "Space Mono", monospace;
}

html[data-retro-font]:not([data-retro-font="theme_default"]) {
  --rt-font-display: var(--custom-font-display);
  --rt-font-body: var(--custom-font-body);
  --rt-font-mono: var(--custom-font-mono);
  --font-family: var(--custom-font-body);
  --font-mono: var(--custom-font-mono);
}

html[data-retro-font]:not([data-retro-font="theme_default"]) .retro-mini-mockup,
html[data-retro-font]:not([data-retro-font="theme_default"]) .lb-mini-shell {
  --rt-font-display: var(--custom-font-display) !important;
  --rt-font-body: var(--custom-font-body) !important;
  --rt-font-mono: var(--custom-font-mono) !important;
  font-family: var(--custom-font-body) !important;
}

html[data-retro-font]:not([data-retro-font="theme_default"]) body,
html[data-retro-font]:not([data-retro-font="theme_default"]) button,
html[data-retro-font]:not([data-retro-font="theme_default"]) input,
html[data-retro-font]:not([data-retro-font="theme_default"]) select,
html[data-retro-font]:not([data-retro-font="theme_default"]) textarea {
  font-family: var(--custom-font-body);
}

html[data-retro-font]:not([data-retro-font="theme_default"]) h1,
html[data-retro-font]:not([data-retro-font="theme_default"]) h2,
html[data-retro-font]:not([data-retro-font="theme_default"]) h3,
html[data-retro-font]:not([data-retro-font="theme_default"]) .chat-header-title,
html[data-retro-font]:not([data-retro-font="theme_default"]) .conv-name,
html[data-retro-font]:not([data-retro-font="theme_default"]) .sidebar-header h2,
html[data-retro-font]:not([data-retro-font="theme_default"]) .card-title,
html[data-retro-font]:not([data-retro-font="theme_default"]) .retro-card-title {
  font-family: var(--custom-font-display);
}

html[data-retro-font="f03-handjet-jetbrains"] h1,
html[data-retro-font="f03-handjet-jetbrains"] h2,
html[data-retro-font="f03-handjet-jetbrains"] h3,
html[data-retro-font="f03-handjet-jetbrains"] .chat-header-title,
html[data-retro-font="f06-vt323-inconsolata"] h1,
html[data-retro-font="f06-vt323-inconsolata"] h2,
html[data-retro-font="f06-vt323-inconsolata"] h3,
html[data-retro-font="f06-vt323-inconsolata"] .chat-header-title {
  letter-spacing: 0.4px;
}

/* Studio Modal Font Customizer Panel (#retro-font-customizer) */
.retro-font-customizer {
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.retro-font-cust-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.retro-font-cust-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.retro-font-cust-active {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.retro-font-pills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
  gap: 6px;
}

.retro-font-card-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 7px 9px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-main);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.14s ease, background 0.14s ease, transform 0.1s ease;
}

.retro-font-card-btn:hover {
  border-color: var(--primary);
  background: var(--bg-hover);
}

.retro-font-card-btn.active {
  border-color: #15803d;
  background: rgba(21, 128, 61, 0.12);
  box-shadow: inset 0 0 0 1px rgba(21, 128, 61, 0.35);
}

.retro-font-card-top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
}

.retro-font-card-sample {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.retro-font-card-sub {
  font-size: 10px;
  line-height: 1.25;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.retro-preview-font-select {
  height: 30px;
  max-width: 175px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.13);
  color: #faf8f4;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

.retro-preview-font-select option {
  background: #23201f;
  color: #faf8f4;
}

@media (max-width: 768px) {
  .retro-font-pills-grid {
    display: flex;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 3px;
    scrollbar-width: none;
  }
  .retro-font-pills-grid::-webkit-scrollbar {
    display: none;
  }
  .retro-font-card-btn {
    min-width: 175px;
    flex-shrink: 0;
  }
  .retro-preview-font-select {
    height: 28px;
    max-width: 145px;
    font-size: 10.5px;
  }
}

/* ============================================================================
   Orders Management (#orders-tab) — Distinct Card Surfaces vs Canvas
   ============================================================================ */
html[data-retro-theme]:not([data-retro-theme="default"]) #orders-tab {
  background-color: var(--rt-surface-bg);
}

html[data-retro-theme="21-rin-signature"] #orders-tab {
  background-color: #d4d0c6;
  background-image: var(--rt-chat-pattern);
  background-size: 8px 8px;
}

html[data-retro-theme]:not([data-retro-theme="default"]) .orders-kpi-card {
  background: var(--rt-inspector-card-bg);
  border: 1.5px solid var(--rt-btn-mini-border);
  color: var(--rt-surface-text);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.08);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .orders-kpi-card.active {
  background: var(--rt-btn-bg);
  border-color: var(--rt-btn-bg);
  color: var(--rt-btn-text);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .orders-kpi-card.active .orders-kpi-label,
html[data-retro-theme]:not([data-retro-theme="default"]) .orders-kpi-card.active strong {
  color: var(--rt-btn-text);
}

html[data-retro-theme]:not([data-retro-theme="default"]) #orders-search-input {
  background: var(--rt-inspector-input-bg);
  border: 1.5px solid var(--rt-btn-mini-border);
  color: var(--rt-surface-text);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .spx-order-row-card {
  background: var(--rt-inspector-card-bg);
  border: 1.5px solid var(--rt-btn-mini-border);
  border-left: 4.5px solid #d97706;
  border-radius: var(--rt-radius-card, 10px);
  color: var(--rt-surface-text);
  box-shadow: var(--rt-shadow-bubble, 0 3px 10px rgba(0, 0, 0, 0.08));
}

html[data-retro-theme]:not([data-retro-theme="default"]) .spx-order-row-card.order-status-pending_pickup {
  border-left-color: #d97706;
}
html[data-retro-theme]:not([data-retro-theme="default"]) .spx-order-row-card.order-status-in_transit {
  border-left-color: #2563eb;
}
html[data-retro-theme]:not([data-retro-theme="default"]) .spx-order-row-card.order-status-delivered {
  border-left-color: #059669;
}
html[data-retro-theme]:not([data-retro-theme="default"]) .spx-order-row-card.order-status-returning {
  border-left-color: #ea580c;
}
html[data-retro-theme]:not([data-retro-theme="default"]) .spx-order-row-card.order-status-cancelled {
  border-left-color: #dc2626;
}

html[data-retro-theme="21-rin-signature"] .spx-order-row-card {
  background: #ffffff;
  border-color: #969082;
  box-shadow: 0 2px 0 rgba(18, 17, 16, 0.16), 0 6px 14px rgba(18, 17, 16, 0.05);
}

html[data-retro-theme="21-rin-signature"] .spx-order-row-card:nth-child(even) {
  background: #f9f7f2;
}

html[data-retro-theme]:not([data-retro-theme="default"]) .spx-order-row-top {
  background: var(--rt-surface-card);
  border-bottom: 1px solid var(--rt-surface-border);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .spx-order-dh-tag {
  background: var(--rt-inspector-input-bg);
  border: 1px solid var(--rt-btn-mini-border);
  color: var(--rt-surface-text);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .spx-order-dh-tag.is-rin-order-id {
  background: var(--rt-pill-bg);
  color: var(--rt-pill-text);
  border-color: var(--rt-pill-border);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .spx-order-milestone {
  background: var(--rt-surface-card);
  border: 1px solid var(--rt-surface-border);
  border-left: 3px solid var(--rt-accent);
  color: var(--rt-surface-text);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .spx-timeline-drawer {
  background: var(--rt-surface-card);
  border: 1px solid var(--rt-surface-border);
  color: var(--rt-surface-text);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .spx-order-row-footer {
  background: rgba(0, 0, 0, 0.03);
  border-top: 1px dashed var(--rt-surface-border);
}

html[data-retro-theme="02-ipod-u2"] .spx-order-row-footer,
html[data-retro-theme="06-marantz-2270"] .spx-order-row-footer,
html[data-retro-theme="07-bluenote-vinyl"] .spx-order-row-footer,
html[data-retro-theme="13-ibm-3278-crt"] .spx-order-row-footer,
html[data-retro-theme="14-vt220-amber"] .spx-order-row-footer {
  background: rgba(255, 255, 255, 0.03);
}

html[data-retro-theme="02-ipod-u2"] .spx-order-cod,
html[data-retro-theme="06-marantz-2270"] .spx-order-cod,
html[data-retro-theme="07-bluenote-vinyl"] .spx-order-cod,
html[data-retro-theme="13-ibm-3278-crt"] .spx-order-cod,
html[data-retro-theme="14-vt220-amber"] .spx-order-cod {
  color: #fbbf24;
}

html[data-retro-theme="02-ipod-u2"] .spx-order-cod.is-cod-zero,
html[data-retro-theme="06-marantz-2270"] .spx-order-cod.is-cod-zero,
html[data-retro-theme="07-bluenote-vinyl"] .spx-order-cod.is-cod-zero,
html[data-retro-theme="13-ibm-3278-crt"] .spx-order-cod.is-cod-zero,
html[data-retro-theme="14-vt220-amber"] .spx-order-cod.is-cod-zero {
  color: #34d399;
}

html[data-retro-theme]:not([data-retro-theme="default"]) .spx-order-row-footer .btn-secondary {
  background: var(--rt-btn-mini-bg);
  border: 1px solid var(--rt-btn-mini-border);
  color: var(--rt-btn-mini-text);
}

html[data-retro-theme]:not([data-retro-theme="default"]) .spx-order-row-footer .btn-secondary:hover:not(:disabled) {
  background: var(--rt-btn-mini-hover);
}
