/* ==========================================================================
   JZPLUS STANDALONE - LUXURY ENTERPRISE REDESIGN (2026-09-23)
   Themes: Glacier Sapphire (Default), Emerald & Gold, Midnight Obsidian, Titanium
   ========================================================================== */

:root, [data-theme="glacier"] {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  font-synthesis: none;

  /* Theme: 冰川深蓝 (Glacier Sapphire · 深海高定科技) */
  --bg-page: #f4f7fb;
  --bg-gradient: linear-gradient(135deg, #f0f4fa 0%, #ffffff 50%, #ebf2fb 100%);
  --sidebar-bg: #0b1528;
  --sidebar-border: rgba(59, 130, 246, 0.16);
  --sidebar-text: #dbeafe;
  --sidebar-muted: #748ba7;
  --sidebar-brand-title: #ffffff;
  --sidebar-brand-sub: #93c5fd;
  --sidebar-active-bg: linear-gradient(90deg, rgba(37, 99, 235, 0.22) 0%, rgba(37, 99, 235, 0.05) 100%);
  --sidebar-active-border: #3b82f6;
  --sidebar-active-text: #60a5fa;
  --sidebar-hover-bg: rgba(37, 99, 235, 0.08);
  --sidebar-hover-text: #ffffff;
  --topbar-bg: rgba(255, 255, 255, 0.88);
  --topbar-border: rgba(59, 130, 246, 0.14);
  --topbar-text: #1e3a8a;
  --card-bg: #ffffff;
  --card-border: rgba(59, 130, 246, 0.16);
  --card-shadow: 0 20px 45px -12px rgba(30, 64, 175, 0.09), 0 2px 6px rgba(0, 0, 0, 0.02);
  --ink: #0f172a;
  --muted: #64748b;
  --line: rgba(59, 130, 246, 0.14);
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-gold: #0284c7;
  --accent-soft: #eff6ff;
  --btn-primary-bg: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  --btn-primary-hover: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  --btn-primary-shadow: 0 8px 24px -4px rgba(37, 99, 235, 0.35);
  --btn-primary-text: #ffffff;
  --btn-sec-border: rgba(59, 130, 246, 0.22);
  --btn-sec-text: #1e40af;
  --btn-sec-hover: #eff6ff;
  --btn-quiet-bg: #eff6ff;
  --btn-quiet-text: #1d4ed8;
  --btn-quiet-border: rgba(59, 130, 246, 0.2);
  --input-bg: #ffffff;
  --input-border: #cbd5e1;
  --input-focus-border: #3b82f6;
  --input-focus-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
  --step-num-bg: #ffffff;
  --step-num-border: #cbd5e1;
  --step-num-text: #64748b;
  --step-active-bg: #1e3a8a;
  --step-active-border: #60a5fa;
  --step-active-text: #ffffff;
  --step-done-bg: #eff6ff;
  --step-done-border: #bfdbfe;
  --step-done-text: #2563eb;
  --step-bar-active: linear-gradient(90deg, #3b82f6, #60a5fa);
  --product-mark-bg: #e0ecff;
  --product-mark-color: #2563eb;
  --brand-mark-bg: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  --brand-mark-color: #ffffff;
  --dialog-border: rgba(59, 130, 246, 0.25);
  --dialog-backdrop: rgba(23, 59, 118, 0.35);
  --tag-tag-bg: #eff6ff;
  --tag-tag-border: rgba(59, 130, 246, 0.25);
  --tag-tag-text: #1e40af;
}

[data-theme="emerald"] {
  color-scheme: light;
  /* Theme: 翡翠流金 (Emerald & Royal Gold · 官方海报同款旗舰) */
  --bg-page: #f5f8f6;
  --bg-gradient: linear-gradient(135deg, #f2f7f4 0%, #ffffff 50%, #edf5f0 100%);
  --sidebar-bg: #071915;
  --sidebar-border: rgba(212, 175, 55, 0.18);
  --sidebar-text: #e2f1ec;
  --sidebar-muted: #7ba397;
  --sidebar-brand-title: #ffffff;
  --sidebar-brand-sub: #a7f3d0;
  --sidebar-active-bg: linear-gradient(90deg, rgba(16, 185, 129, 0.22) 0%, rgba(16, 185, 129, 0.05) 100%);
  --sidebar-active-border: #10b981;
  --sidebar-active-text: #34d399;
  --sidebar-hover-bg: rgba(16, 185, 129, 0.08);
  --sidebar-hover-text: #ffffff;
  --topbar-bg: rgba(255, 255, 255, 0.88);
  --topbar-border: rgba(16, 185, 129, 0.14);
  --topbar-text: #102a22;
  --card-bg: #ffffff;
  --card-border: rgba(16, 185, 129, 0.16);
  --card-shadow: 0 20px 45px -12px rgba(6, 78, 59, 0.09), 0 2px 6px rgba(0, 0, 0, 0.02);
  --ink: #0f2620;
  --muted: #58736a;
  --line: rgba(16, 185, 129, 0.15);
  --accent: #059669;
  --accent-hover: #047857;
  --accent-gold: #d4af37;
  --accent-soft: #ecfdf5;
  --btn-primary-bg: linear-gradient(135deg, #059669 0%, #047857 100%);
  --btn-primary-hover: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --btn-primary-shadow: 0 8px 24px -4px rgba(5, 150, 105, 0.35);
  --btn-primary-text: #ffffff;
  --btn-sec-border: rgba(16, 185, 129, 0.25);
  --btn-sec-text: #065f46;
  --btn-sec-hover: #ecfdf5;
  --btn-quiet-bg: #ecfdf5;
  --btn-quiet-text: #065f46;
  --btn-quiet-border: rgba(16, 185, 129, 0.2);
  --input-bg: #ffffff;
  --input-border: #cbd5e1;
  --input-focus-border: #10b981;
  --input-focus-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  --step-num-bg: #ffffff;
  --step-num-border: #cbd5e1;
  --step-num-text: #64748b;
  --step-active-bg: #064e3b;
  --step-active-border: #d4af37;
  --step-active-text: #ffffff;
  --step-done-bg: #ecfdf5;
  --step-done-border: #a7f3d0;
  --step-done-text: #059669;
  --step-bar-active: linear-gradient(90deg, #10b981, #d4af37);
  --product-mark-bg: #ecfdf5;
  --product-mark-color: #059669;
  --brand-mark-bg: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --brand-mark-color: #ffffff;
  --dialog-border: rgba(16, 185, 129, 0.25);
  --dialog-backdrop: rgba(6, 78, 59, 0.35);
  --tag-tag-bg: #ecfdf5;
  --tag-tag-border: rgba(16, 185, 129, 0.25);
  --tag-tag-text: #065f46;
  --btn-disabled-bg: #e6f4ea;
  --btn-disabled-text: #6b8f7e;
  --btn-disabled-border: rgba(16, 185, 129, 0.2);
}

[data-theme="obsidian"] {
  color-scheme: dark;
  /* Theme: 黑曜极夜 (Midnight Obsidian · 极夜奢华暗黑) */
  --bg-page: #070a12;
  --bg-gradient: linear-gradient(180deg, #0b111e 0%, #070a12 100%);
  --sidebar-bg: #050810;
  --sidebar-border: rgba(255, 255, 255, 0.08);
  --sidebar-text: #cbd5e1;
  --sidebar-muted: #64748b;
  --sidebar-brand-title: #f8fafc;
  --sidebar-brand-sub: #38bdf8;
  --sidebar-active-bg: linear-gradient(90deg, rgba(56, 189, 248, 0.16) 0%, rgba(56, 189, 248, 0.03) 100%);
  --sidebar-active-border: #38bdf8;
  --sidebar-active-text: #38bdf8;
  --sidebar-hover-bg: rgba(255, 255, 255, 0.04);
  --sidebar-hover-text: #ffffff;
  --topbar-bg: rgba(11, 17, 30, 0.88);
  --topbar-border: rgba(255, 255, 255, 0.08);
  --topbar-text: #f1f5f9;
  --card-bg: #0f172a;
  --card-border: rgba(255, 255, 255, 0.1);
  --card-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7);
  --ink: #f1f5f9;
  --muted: #94a3b8;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #38bdf8;
  --accent-hover: #0ea5e9;
  --accent-gold: #f59e0b;
  --accent-soft: rgba(56, 189, 248, 0.12);
  --btn-primary-bg: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  --btn-primary-hover: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  --btn-primary-shadow: 0 8px 24px -4px rgba(2, 132, 199, 0.45);
  --btn-primary-text: #ffffff;
  --btn-sec-border: rgba(255, 255, 255, 0.16);
  --btn-sec-text: #e2e8f0;
  --btn-sec-hover: rgba(255, 255, 255, 0.08);
  --btn-quiet-bg: rgba(56, 189, 248, 0.1);
  --btn-quiet-text: #38bdf8;
  --btn-quiet-border: rgba(56, 189, 248, 0.2);
  --input-bg: #0b111e;
  --input-border: rgba(255, 255, 255, 0.16);
  --input-focus-border: #38bdf8;
  --input-focus-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
  --step-num-bg: #0b111e;
  --step-num-border: rgba(255, 255, 255, 0.16);
  --step-num-text: #64748b;
  --step-active-bg: #38bdf8;
  --step-active-border: #38bdf8;
  --step-active-text: #090d16;
  --step-done-bg: rgba(56, 189, 248, 0.15);
  --step-done-border: rgba(56, 189, 248, 0.3);
  --step-done-text: #38bdf8;
  --step-bar-active: linear-gradient(90deg, #38bdf8, #818cf8);
  --product-mark-bg: rgba(56, 189, 248, 0.15);
  --product-mark-color: #38bdf8;
  --brand-mark-bg: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
  --brand-mark-color: #ffffff;
  --dialog-border: rgba(255, 255, 255, 0.16);
  --dialog-backdrop: rgba(0, 0, 0, 0.65);
  --tag-tag-bg: rgba(56, 189, 248, 0.12);
  --tag-tag-border: rgba(56, 189, 248, 0.25);
  --tag-tag-text: #38bdf8;
  --btn-disabled-bg: #111827;
  --btn-disabled-text: #4b5563;
  --btn-disabled-border: rgba(255, 255, 255, 0.08);
}

[data-theme="titanium"] {
  color-scheme: light;
  /* Theme: 钛金灰白 (Titanium Platinum · 苹果极简纯净) */
  --bg-page: #f8fafc;
  --bg-gradient: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  --sidebar-bg: #0f172a;
  --sidebar-border: #1e293b;
  --sidebar-text: #cbd5e1;
  --sidebar-muted: #64748b;
  --sidebar-brand-title: #ffffff;
  --sidebar-brand-sub: #94a3b8;
  --sidebar-active-bg: rgba(255, 255, 255, 0.12);
  --sidebar-active-border: #ffffff;
  --sidebar-active-text: #ffffff;
  --sidebar-hover-bg: rgba(255, 255, 255, 0.05);
  --sidebar-hover-text: #ffffff;
  --topbar-bg: rgba(255, 255, 255, 0.88);
  --topbar-border: #e2e8f0;
  --topbar-text: #0f172a;
  --card-bg: #ffffff;
  --card-border: #e2e8f0;
  --card-shadow: 0 16px 36px -10px rgba(15, 23, 42, 0.07), 0 1px 3px rgba(0, 0, 0, 0.02);
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --accent: #0f172a;
  --accent-hover: #1e293b;
  --accent-gold: #475569;
  --accent-soft: #f1f5f9;
  --btn-primary-bg: #0f172a;
  --btn-primary-hover: #1e293b;
  --btn-primary-shadow: 0 8px 20px -2px rgba(15, 23, 42, 0.25);
  --btn-primary-text: #ffffff;
  --btn-sec-border: #cbd5e1;
  --btn-sec-text: #334155;
  --btn-sec-hover: #f1f5f9;
  --btn-quiet-bg: #f1f5f9;
  --btn-quiet-text: #334155;
  --btn-quiet-border: #e2e8f0;
  --input-bg: #ffffff;
  --input-border: #cbd5e1;
  --input-focus-border: #0f172a;
  --input-focus-shadow: 0 0 0 3px rgba(15, 23, 42, 0.15);
  --step-num-bg: #ffffff;
  --step-num-border: #cbd5e1;
  --step-num-text: #64748b;
  --step-active-bg: #0f172a;
  --step-active-border: #0f172a;
  --step-active-text: #ffffff;
  --step-done-bg: #f1f5f9;
  --step-done-border: #cbd5e1;
  --step-done-text: #0f172a;
  --step-bar-active: #0f172a;
  --product-mark-bg: #f1f5f9;
  --product-mark-color: #0f172a;
  --brand-mark-bg: #0f172a;
  --brand-mark-color: #ffffff;
  --dialog-border: #e2e8f0;
  --dialog-backdrop: rgba(15, 23, 42, 0.4);
  --tag-tag-bg: #f1f5f9;
  --tag-tag-border: #e2e8f0;
  --tag-tag-text: #0f172a;
  --btn-disabled-bg: #f1f5f9;
  --btn-disabled-text: #94a3b8;
  --btn-disabled-border: #e2e8f0;
}

/* ==========================================================================
   Base Layout & Reset
   ========================================================================== */
* {
  box-sizing: border-box;
  letter-spacing: 0;
}

body {
  margin: 0;
  background: var(--bg-gradient);
  background-color: var(--bg-page);
  color: var(--ink);
  min-height: 100vh;
  transition: background-color 0.25s ease, color 0.25s ease;
}

button, input, textarea {
  font: inherit;
}

button, a, input, textarea {
  touch-action: manipulation;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: .5;
}

.button.primary:disabled,
.button.primary[disabled] {
  background: var(--btn-disabled-bg, #e2e8f0) !important;
  color: var(--btn-disabled-text, #94a3b8) !important;
  border: 1px solid var(--btn-disabled-border, #cbd5e1) !important;
  box-shadow: none !important;
  cursor: not-allowed;
  opacity: 1 !important;
}

a {
  color: inherit;
  text-decoration: none;
}

button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--input-focus-border);
  box-shadow: var(--input-focus-shadow);
}

svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke-width: 1.8;
}

button svg {
  pointer-events: none;
}

h1, h2, h3, p {
  margin: 0;
}

h1 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  letter-spacing: -0.02em;
}

h2 {
  font-size: 18px;
  line-height: 1.5;
  font-weight: 650;
  color: var(--ink);
}

h3 {
  font-size: 15px;
  color: var(--ink);
}

p {
  overflow-wrap: anywhere;
}

[hidden] {
  display: none !important;
}

.skip {
  position: fixed;
  top: -50px;
  left: 10px;
  z-index: 30;
  padding: 10px;
  background: white;
}

.skip:focus {
  top: 10px;
}

/* ==========================================================================
   Sidebar Navigation
   ========================================================================== */
.sidebar {
  width: 230px;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  color: var(--sidebar-text);
  position: fixed;
  inset: 0 auto 0 0;
  padding: 32px 18px 24px;
  display: flex;
  flex-direction: column;
  z-index: 10;
  box-shadow: 6px 0 28px rgba(0, 0, 0, 0.08);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 750;
  line-height: 1.2;
  padding: 0 6px;
  color: var(--sidebar-brand-title);
}

.brand-mark {
  height: 40px;
  width: 40px;
  background: var(--brand-mark-bg);
  color: var(--brand-mark-color);
  border-radius: 10px;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.brand-mark svg {
  width: 22px;
  height: 22px;
}

.brand small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--sidebar-brand-sub);
  margin-top: 5px;
  letter-spacing: 0.05em;
}

.nav-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--sidebar-muted);
  text-transform: uppercase;
  margin: 40px 12px 12px;
}

.sidebar nav {
  display: grid;
  gap: 6px;
}

.nav-link {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border-radius: 8px;
  color: var(--sidebar-muted);
  font-weight: 550;
  font-size: 13px;
  transition: all 0.15s ease;
}

.nav-link.active {
  background: var(--sidebar-active-bg);
  color: var(--sidebar-active-text);
  border-left: 3px solid var(--sidebar-active-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-link:hover {
  background: var(--sidebar-hover-bg);
  color: var(--sidebar-hover-text);
}

.nav-arrow {
  margin-left: auto;
  width: 14px;
  opacity: 0.8;
}

.nav-link:not(.active) .nav-arrow {
  display: none;
}

.sidebar-bottom {
  margin-top: auto;
  display: flex;
  gap: 10px;
  font-size: 12px;
  padding: 16px 8px 0;
  align-items: center;
  color: var(--sidebar-text);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-bottom small {
  display: block;
  font-size: 10px;
  color: var(--sidebar-muted);
  margin-top: 3px;
}

.privacy-icon {
  color: var(--sidebar-active-border);
}

/* ==========================================================================
   Shell & Topbar
   ========================================================================== */
.shell {
  margin-left: 230px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: 68px;
  border-bottom: 1px solid var(--topbar-border);
  padding: 0 40px;
  background: var(--topbar-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 20;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.topbar > span {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}

.topbar > span svg {
  width: 13px;
}

.topbar strong {
  color: var(--topbar-text);
  font-weight: 650;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Theme Switcher */
.theme-bar {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--accent-soft);
  border: 1px solid var(--line);
  padding: 3px 4px;
  border-radius: 20px;
}

.theme-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 550;
  color: var(--muted);
  transition: all 0.15s ease;
  cursor: pointer;
}

.theme-chip:hover {
  color: var(--ink);
}

.theme-chip.active {
  background: var(--card-bg);
  color: var(--ink);
  font-weight: 650;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.theme-swatch {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.swatch-glacier { background: linear-gradient(135deg, #2563eb, #38bdf8); }
.swatch-emerald { background: linear-gradient(135deg, #10b981, #d4af37); }
.swatch-obsidian { background: linear-gradient(135deg, #38bdf8, #818cf8); }
.swatch-titanium { background: linear-gradient(135deg, #64748b, #0f172a); }

/* Main content */
main {
  padding: 32px 40px 0;
  max-width: 1200px;
  flex: 1;
}

.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
}

.eyebrow {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .1em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.page-heading p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.header-tag {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--tag-tag-text);
  border: 1px solid var(--tag-tag-border);
  background: var(--tag-tag-bg);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.header-tag svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

/* ==========================================================================
   Steps Indicator (Continuous Milestone Rail)
   ========================================================================== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0;
  list-style: none;
  margin: 0 0 36px;
  gap: 14px;
}

.steps li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 4px 18px 0;
  color: var(--muted);
  font-size: 13px;
  border-bottom: 2px solid var(--line);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.steps li.current {
  color: var(--ink);
  font-weight: 650;
  border-bottom-color: var(--accent);
}

.steps li.current::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--step-bar-active);
  box-shadow: 0 0 10px var(--accent);
  border-radius: 2px;
}

.steps li.done {
  color: var(--ink);
  font-weight: 550;
  border-bottom-color: var(--accent);
}

.step-number {
  border: 1.5px solid var(--step-num-border);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  background: var(--step-num-bg);
  color: var(--step-num-text);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.steps .current .step-number {
  background: var(--btn-primary-bg);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 0 0 4px var(--accent-soft), 0 4px 14px var(--btn-primary-shadow);
}

.steps .done .step-number {
  color: var(--step-done-text);
  border-color: var(--step-done-border);
  background: var(--step-done-bg);
  font-weight: 700;
}

.steps small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  margin-top: 2px;
  color: var(--muted);
}

/* ==========================================================================
   Redeem Layout & Cards
   ========================================================================== */
.redeem-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 36px;
  align-items: start;
}

.primary-column {
  min-width: 0;
}

.form-section {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.section-heading {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 26px;
}

.section-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 10px;
  flex-shrink: 0;
}

.section-icon svg {
  width: 22px;
  height: 22px;
}

.section-heading p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

input:not([type=checkbox]), textarea {
  display: block;
  width: 100%;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
  font-size: 14px;
  min-width: 0;
}

input:not([type=checkbox]) {
  height: 48px;
}

textarea {
  resize: vertical;
  min-height: 110px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  line-height: 1.8;
  max-height: 450px;
}

input::placeholder, textarea::placeholder {
  color: var(--muted);
  opacity: 0.65;
  font-weight: 400;
}

.input-action {
  position: relative;
}

.input-action input {
  padding-right: 48px;
}

.input-action .icon-button {
  position: absolute;
  right: 6px;
  top: 6px;
}

.icon-button {
  border: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: transparent;
  color: var(--muted);
  transition: all 0.15s ease;
}

.icon-button:hover {
  background: var(--accent-soft);
  color: var(--ink);
}

.field-hint {
  display: flex;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
  margin: 10px 0 22px;
  align-items: flex-start;
}

.field-hint svg {
  width: 13px;
  height: 16px;
  color: var(--accent);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  line-height: 1.5;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 650;
  font-size: 13px;
  transition: all .15s ease;
  white-space: normal;
}

.button.primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border-color: transparent;
  box-shadow: var(--btn-primary-shadow);
}

.button.primary:hover:not(:disabled) {
  background: var(--btn-primary-hover);
  transform: translateY(-1px);
}

.button.secondary {
  border-color: var(--btn-sec-border);
  background: var(--card-bg);
  color: var(--btn-sec-text);
}

.button.secondary:hover:not(:disabled) {
  background: var(--btn-sec-hover);
}

.button.quiet {
  background: var(--btn-quiet-bg);
  color: var(--btn-quiet-text);
  border-color: var(--btn-quiet-border);
}

.button.small {
  min-height: 34px;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 6px;
}

.button.small svg {
  width: 14px;
  height: 14px;
}

.button.full {
  width: 100%;
}

.button[aria-busy=true] svg {
  animation: spin 1s linear infinite;
}

/* Products badges */
.products {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.products > div {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.products > div span {
  display: inline-flex;
  align-items: center;
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 11px;
  font-weight: 550;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.products > div span:before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 6px;
}

/* ==========================================================================
   Context Column (Sidebar on right)
   ========================================================================== */
.context-column {
  padding: 2px 0;
}

.product-preview {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 24px;
  box-shadow: var(--card-shadow);
}

.product-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--product-mark-bg);
  color: var(--product-mark-color);
  border-radius: 12px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
}

.product-mark svg {
  width: 26px;
  height: 26px;
}

.product-preview .eyebrow {
  font-size: 9px;
}

.product-preview h2 {
  font-size: 18px;
  color: var(--ink);
  margin-top: 4px;
}

.product-preview p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 8px;
}

.product-rule {
  height: 1px;
  background: var(--line);
  margin: 20px 0 16px;
}

.product-fact {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.product-fact svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

.support-note {
  display: flex;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
  padding: 20px 4px 16px;
}

.support-note > svg {
  width: 15px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
}

.text-link {
  color: var(--accent);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  padding-left: 4px;
}

.text-link svg {
  width: 14px;
  height: 14px;
}

.text-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding: 24px 0 30px;
  margin-top: 60px;
  font-size: 11px;
}

.footer-divider {
  color: var(--line);
  margin: 0 8px;
}

/* ==========================================================================
   Alerts & Feedback
   ========================================================================== */
.alert {
  border: 1px solid;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.8;
  margin: 16px 0;
  overflow-wrap: anywhere;
}

.alert.error {
  background: #fff3f5;
  color: #b14448;
  border-color: #f4cdd3;
}

.alert.warning {
  background: #fffbeb;
  color: #92400e;
  border-color: #fde68a;
}

.alert.neutral {
  background: var(--accent-soft);
  color: var(--ink);
  border-color: var(--line);
}

/* Mode tabs */
.mode-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
  gap: 22px;
}

.mode-tabs button {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  background: none;
  color: var(--muted);
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 0 0 13px;
  font-size: 13px;
  font-weight: 550;
  transition: all 0.15s ease;
}

.mode-tabs button.selected {
  color: var(--accent);
  border-color: var(--accent);
  font-weight: 650;
}

.mode-tabs svg {
  width: 15px;
  height: 15px;
}

.credential-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin: 0 0 24px;
}

.credential-links a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 550;
}

.credential-links svg {
  height: 12px;
  width: 12px;
}

.tiny-number {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  font-size: 10px;
  color: var(--accent);
  font-weight: 700;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.form-actions .primary {
  flex: 1;
}

.form-actions .secondary {
  flex: 0 1 auto;
}

#id-fields > input {
  margin-bottom: 18px;
  font-size: 13px;
}

/* Details list */
.details {
  margin: 0 0 25px;
}

.details > div {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.details dt {
  color: var(--muted);
}

.details dd {
  margin: 0;
  overflow-wrap: anywhere;
  text-align: right;
  font-weight: 650;
  color: var(--ink);
}

.details dd.accent {
  color: var(--accent);
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--ink);
  font-weight: 400;
  margin: 16px 0;
}

.checkbox input {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  margin: 3px 0 0;
  flex-shrink: 0;
}

/* ==========================================================================
   Redeem Result Display
   ========================================================================== */
.result-display {
  text-align: center;
  padding: 12px 0;
}

.result-symbol {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 50%;
  border: 1px solid var(--line);
}

.result-symbol svg {
  width: 30px;
  height: 30px;
}

.result-display h2 {
  font-size: 24px;
  color: var(--ink);
}

.result-display > p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 440px;
  margin: 12px auto 20px;
}

.result-display .details {
  margin: 18px 0 0;
  text-align: left;
}

.result-display.failed .result-symbol {
  background: #fff1f1;
  color: #dc2626;
  border-color: #fecaca;
}

.result-display.review .result-symbol {
  background: #fffbeb;
  color: #d97706;
  border-color: #fde68a;
}

.result-display.processing .result-symbol svg {
  animation: spin 2s linear infinite;
}

.progress-track {
  height: 6px;
  background: var(--accent-soft);
  border-radius: 3px;
  overflow: hidden;
  margin: 24px 0;
}

.progress-track:after {
  content: "";
  display: block;
  width: 35%;
  height: 100%;
  background: var(--accent);
  animation: progress 2s ease-in-out infinite;
}

/* ==========================================================================
   Query Section
   ========================================================================== */
.query-section {
  border-bottom: 1px solid var(--line);
  padding-bottom: 26px;
  max-width: 900px;
}

.query-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.query-heading label {
  margin: 0;
}

.query-heading span {
  font-size: 11px;
  color: var(--muted);
}

.query-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
}

.query-actions > span {
  font-size: 12px;
  color: var(--muted);
}

.empty-state {
  padding: 60px 0;
  text-align: center;
  color: var(--muted);
}

.empty-state > svg {
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  color: var(--accent);
}

.empty-state h2 {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.empty-state p {
  font-size: 12px;
  margin-top: 6px;
}

.results-header {
  display: flex;
  justify-content: space-between;
  margin: 24px 0 14px;
  font-size: 13px;
  color: var(--muted);
}

.result-row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 120px;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.result-row .mono {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
  color: var(--ink);
}

.result-row p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
}

.result-row .status-tag {
  justify-self: end;
}

.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  white-space: nowrap;
  color: #854d0e;
  background: #fef9c3;
  border-radius: 5px;
  padding: 4px 8px;
}

.status-tag:before {
  content: "";
  width: 5px;
  height: 5px;
  background: currentColor;
  border-radius: 50%;
}

.status-tag.completed {
  color: #047857;
  background: #dcfce7;
}

.status-tag.failed, .status-tag.invalid, .status-tag.disabled {
  color: #b91c1c;
  background: #fee2e2;
}

.status-tag.unused {
  color: #0369a1;
  background: #e0f2fe;
}

/* ==========================================================================
   Guide Section
   ========================================================================== */
.guide-content {
  max-width: 740px;
}

.guide-steps {
  list-style: none;
  margin: 25px 0 45px;
  padding: 0;
}

.guide-steps li {
  display: flex;
  gap: 18px;
  padding: 0 0 28px;
}

.guide-steps li > span {
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--line);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
}

.guide-steps p {
  font-size: 13px;
  color: var(--muted);
  margin: 6px 0 8px;
}

.faq-heading {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

summary::-webkit-details-marker {
  display: none;
}

summary svg {
  width: 15px;
  height: 15px;
  color: var(--muted);
  transition: transform 0.2s ease;
}

details[open] summary svg {
  transform: rotate(45deg);
}

details p {
  padding-top: 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
}

/* ==========================================================================
   Dialog (Stock Modal)
   ========================================================================== */
dialog {
  width: min(440px, calc(100% - 32px));
  border: 1px solid var(--dialog-border);
  padding: 24px;
  border-radius: 14px;
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.2);
  background: var(--card-bg);
}

dialog::backdrop {
  background: var(--dialog-backdrop);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dialog-note {
  font-size: 12px;
  color: var(--muted);
  margin: 10px 0 20px;
}

#stock-content {
  min-height: 125px;
}

#stock-content > p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  margin: 20px 0;
}

#stock-content .details {
  margin-bottom: 20px;
}

.stock-time {
  font-size: 10px;
  color: var(--muted);
  text-align: right;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes progress {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(390%); }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (min-width: 1500px) {
  main {
    padding-top: 44px;
  }
  .redeem-layout {
    grid-template-columns: minmax(0, 720px) 270px;
    gap: 48px;
  }
  .form-section {
    padding: 36px;
  }
  .page-heading {
    margin-bottom: 36px;
  }
}

@media (max-width: 1100px) {
  .sidebar {
    width: 200px;
    padding: 28px 14px;
  }
  .shell {
    margin-left: 200px;
  }
  .topbar {
    padding: 0 28px;
  }
  main {
    padding: 28px 28px 0;
  }
  .redeem-layout {
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 24px;
  }
  .form-section {
    padding: 24px;
  }
  .steps li {
    gap: 7px;
  }
  .steps small {
    font-size: 9px;
  }
  .brand {
    font-size: 18px;
  }
  .brand-mark {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 900px) {
  .context-column {
    display: none;
  }
  .redeem-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .steps small {
    display: none;
  }
  .steps li {
    font-size: 12px;
  }
  .sidebar {
    width: 180px;
  }
  .shell {
    margin-left: 180px;
  }
  .brand {
    font-size: 17px;
    gap: 8px;
  }
  .brand small {
    font-size: 10px;
  }
  .nav-link {
    font-size: 12px;
    padding: 0 10px;
    gap: 8px;
  }
  .sidebar-bottom {
    font-size: 11px;
  }
  .sidebar-bottom small {
    font-size: 9px;
  }
  .theme-chip .theme-label {
    display: none;
  }
  .theme-chip {
    padding: 4px 6px;
  }
}

@media (max-width: 640px) {
  .sidebar {
    position: static;
    width: auto;
    padding: 16px 20px 0;
    border-right: 0;
    border-bottom: 1px solid var(--sidebar-border);
  }
  .brand {
    font-size: 19px;
    padding: 0;
  }
  .brand small {
    font-size: 10px;
    margin-top: 4px;
  }
  .brand-mark {
    width: 36px;
    height: 36px;
  }
  .nav-label, .sidebar-bottom {
    display: none;
  }
  .sidebar nav {
    display: flex;
    gap: 14px;
    margin-top: 18px;
  }
  .nav-link {
    height: 40px;
    padding: 0 4px;
    border-radius: 0;
    gap: 6px;
    border-bottom: 2px solid transparent;
    font-size: 12px;
  }
  .nav-link svg {
    height: 15px;
    width: 15px;
  }
  .nav-link.active {
    background: transparent;
    border-color: var(--accent);
    border-left: 0;
  }
  .nav-arrow {
    display: none !important;
  }
  .shell {
    margin: 0;
  }
  .topbar {
    height: 52px;
    padding: 0 16px;
  }
  .topbar > span {
    font-size: 11px;
    gap: 5px;
  }
  .button.small {
    font-size: 11px;
    padding: 4px 8px;
  }
  .theme-bar {
    gap: 2px;
    padding: 2px;
  }
  .theme-chip {
    padding: 3px 5px;
  }
  main {
    padding: 22px 16px 0;
  }
  .page-heading {
    margin-bottom: 22px;
  }
  .page-heading h1 {
    font-size: 23px;
  }
  .page-heading p {
    font-size: 11px;
  }
  .header-tag {
    font-size: 11px;
    padding: 4px 8px;
  }
  .header-tag svg {
    width: 13px;
    height: 13px;
  }
  .eyebrow {
    font-size: 9px;
  }
  .steps {
    gap: 6px;
    margin-bottom: 22px;
  }
  .steps li {
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
    font-size: 10px;
    padding-bottom: 12px;
  }
  .step-number {
    height: 24px;
    width: 24px;
    font-size: 11px;
  }
  .form-section {
    padding: 20px 16px;
  }
  .section-heading {
    gap: 10px;
    margin-bottom: 20px;
  }
  .section-heading h2 {
    font-size: 16px;
  }
  .section-heading p {
    font-size: 11px;
  }
  .section-icon {
    width: 36px;
    height: 36px;
  }
  .button {
    font-size: 12px;
    padding: 10px 14px;
  }
  .form-actions {
    gap: 8px;
  }
  .products > div {
    gap: 8px;
  }
  .footer {
    font-size: 10px;
    margin-top: 36px;
    flex-direction: column;
    gap: 8px;
    padding: 18px 0 24px;
  }
  .mode-tabs {
    gap: 16px;
  }
  .mode-tabs button {
    font-size: 12px;
  }
  .credential-links {
    gap: 12px;
  }
  .credential-links a {
    font-size: 11px;
  }
  .field-hint {
    font-size: 10px;
  }
  .details > div {
    gap: 8px;
    font-size: 12px;
    grid-template-columns: 80px minmax(0, 1fr);
  }
  .checkbox {
    font-size: 11px;
  }
  .result-row {
    grid-template-columns: minmax(0, 1fr) 90px;
    gap: 10px;
  }
  .result-row > .query-product {
    grid-row: 2;
    grid-column: 1 / -1;
  }
  .result-row .status-tag {
    grid-row: 1;
    grid-column: 2;
  }
  .result-row .mono {
    font-size: 11px;
  }
  .query-heading span {
    font-size: 10px;
  }
  .query-heading label {
    font-size: 12px;
  }
  .query-actions .button {
    min-height: 40px;
  }
  .result-display h2 {
    font-size: 20px;
  }
  .guide-content h2 {
    font-size: 16px;
  }
  .guide-steps li {
    gap: 12px;
  }
  .guide-steps p, details p {
    font-size: 12px;
  }
  summary {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after {
    animation: none !important;
    transition: none !important;
  }
}

.skip:not(:focus) {
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}

/* ==========================================================================
   Trust & Status Badge Enhancements
   ========================================================================== */
.system-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  background: rgba(16, 185, 129, 0.09);
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  color: #059669;
  margin-bottom: 16px;
}

[data-theme="obsidian"] .system-status-badge {
  background: rgba(52, 211, 153, 0.12);
  border-color: rgba(52, 211, 153, 0.3);
  color: #34d399;
}

.status-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-ring 2.2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  flex-shrink: 0;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.form-section, .product-preview {
  position: relative;
}

.form-section::before, .product-preview::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.95) 40%, rgba(255, 255, 255, 0.95) 60%, transparent 100%);
  pointer-events: none;
}

[data-theme="obsidian"] .form-section::before,
[data-theme="obsidian"] .product-preview::before {
  background: linear-gradient(90deg, transparent 0%, rgba(56, 189, 248, 0.35) 50%, transparent 100%);
}

.products div span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  padding: 5px 11px;
  border-radius: 7px;
  background: var(--tag-tag-bg);
  color: var(--tag-tag-text);
  border: 1px solid var(--tag-tag-border);
  font-weight: 550;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
}

.products div span:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  box-shadow: 0 3px 10px -2px rgba(0, 0, 0, 0.07);
}

/* ==========================================================================
   Meticulous Detail Polish (Scrollbars, Cursors & Interactions)
   ========================================================================== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.35);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.55);
}

[data-theme="obsidian"] ::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
}
[data-theme="obsidian"] ::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.32);
}

.checkbox {
  cursor: pointer;
}
.checkbox input {
  cursor: pointer;
}

.mode-tabs button {
  cursor: pointer;
}
.mode-tabs button:hover:not(.selected) {
  color: var(--ink);
}

.credential-links a:hover {
  text-decoration: underline;
}

/* Result Symbol Themes */
.result-display.completed .result-symbol {
  background: #ecfdf5;
  color: #059669;
  border-color: #a7f3d0;
}

[data-theme="obsidian"] .result-display.completed .result-symbol {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.35);
}

[data-theme="obsidian"] .result-display.failed .result-symbol {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.35);
}

[data-theme="obsidian"] .result-display.review .result-symbol {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.35);
}

/* Alerts in Dark Mode */
[data-theme="obsidian"] .alert.error {
  background: rgba(239, 68, 68, 0.14);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.32);
}

[data-theme="obsidian"] .alert.warning {
  background: rgba(245, 158, 11, 0.14);
  color: #fcd34d;
  border-color: rgba(245, 158, 11, 0.32);
}

[data-theme="obsidian"] .alert.neutral {
  background: rgba(56, 189, 248, 0.1);
  color: #e2e8f0;
  border-color: rgba(56, 189, 248, 0.22);
}

/* Status tags in Dark Mode */
[data-theme="obsidian"] .status-tag {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

[data-theme="obsidian"] .status-tag.completed {
  color: #34d399;
  background: rgba(16, 185, 129, 0.15);
}

[data-theme="obsidian"] .status-tag.failed,
[data-theme="obsidian"] .status-tag.invalid,
[data-theme="obsidian"] .status-tag.disabled {
  color: #f87171;
  background: rgba(239, 68, 68, 0.15);
}

[data-theme="obsidian"] .status-tag.unused {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
}

/* Theme Switcher Active Chip in Dark Mode */
[data-theme="obsidian"] .theme-chip.active {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
