/* The Classic theme keeps style.css unchanged. */
.theme-options { margin:0; padding:18px; border:1px solid var(--line); border-radius:14px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.theme-options legend { padding:0 8px; font-weight:700; }
.theme-option { min-width:0; padding:18px; border:1px solid var(--line); border-radius:12px; cursor:pointer; }
.theme-option:has(input:checked) { outline:2px solid var(--brand); outline-offset:2px; }
.theme-swatch { display:block; height:90px; border-radius:10px; border:1px solid var(--line); }
.theme-swatch-classic { background:linear-gradient(135deg,#f3f5f9 0% 35%,#fff 35% 70%,#1f3228 70%); }
.theme-swatch-dark { background:linear-gradient(135deg,#080b12 0% 30%,#141a27 30% 60%,#55d9e8 60% 80%,#9b87f5 80%); }

html[data-theme="hub_dark"] {
  color-scheme:dark;
  --ink:#f5f7fb; --muted:#9da9bd; --line:rgba(255,255,255,.09);
  --panel:#141a27; --bg:#080b12; --brand:#55d9e8; --brand-dark:#8cf0d0;
  --green:#65dfa0; --red:#ff9b94; --amber:#ffd18a;
}
html[data-theme="hub_dark"] body {
  min-height:100vh;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:radial-gradient(circle at 12% 8%,rgba(84,216,232,.14),transparent 31rem),radial-gradient(circle at 90% 2%,rgba(155,135,245,.15),transparent 30rem),var(--bg);
}
html[data-theme="hub_dark"] body::before {
  content:""; position:fixed; inset:0; pointer-events:none; opacity:.18;
  background-image:linear-gradient(var(--line) 1px,transparent 1px),linear-gradient(90deg,var(--line) 1px,transparent 1px);
  background-size:42px 42px; mask-image:linear-gradient(to bottom,black,transparent 70%);
}
html[data-theme="hub_dark"] .site-header {
  position:relative; background:rgba(8,11,18,.82); border-bottom:1px solid var(--line); backdrop-filter:blur(16px);
}
html[data-theme="hub_dark"] .site-header a,
html[data-theme="hub_dark"] .link-button { color:var(--ink); }
html[data-theme="hub_dark"] .site-header nav a:hover,
html[data-theme="hub_dark"] .link-button:hover { color:var(--brand); }
html[data-theme="hub_dark"] .site-header .nav-tools-panel a { color:var(--ink); }
html[data-theme="hub_dark"] .site-header .nav-tools-panel a:hover { color:var(--brand); background:var(--bg); }
html[data-theme="hub_dark"] .container,
html[data-theme="hub_dark"] .deployment-footer { position:relative; }
html[data-theme="hub_dark"] h1,
html[data-theme="hub_dark"] h2,
html[data-theme="hub_dark"] h3 { letter-spacing:-.035em; }
html[data-theme="hub_dark"] .eyebrow { color:var(--brand); letter-spacing:.15em; }
html[data-theme="hub_dark"] .card {
  background:linear-gradient(145deg,rgba(24,31,47,.94),rgba(14,18,29,.94));
  border-radius:22px; box-shadow:0 14px 34px rgba(0,0,0,.2);
}
html[data-theme="hub_dark"] .app-card { transition:transform .2s ease,border-color .2s ease; }
html[data-theme="hub_dark"] .app-card:hover { transform:translateY(-3px); border-color:rgba(85,217,232,.28); }
html[data-theme="hub_dark"] input,
html[data-theme="hub_dark"] select { color:var(--ink); background:var(--panel); border-color:#536078; border-radius:12px; }
html[data-theme="hub_dark"] input { accent-color:var(--brand); }
html[data-theme="hub_dark"] input[readonly] { color:var(--muted); background:#0e121d; }
html[data-theme="hub_dark"] input::placeholder { color:var(--muted); opacity:1; }
html[data-theme="hub_dark"] .button { border-radius:12px; }
html[data-theme="hub_dark"] .button.primary { color:#071015; background:linear-gradient(135deg,var(--brand),#8cf0d0); }
html[data-theme="hub_dark"] .button.primary:hover { background:linear-gradient(135deg,#8cf0d0,var(--brand)); }
html[data-theme="hub_dark"] .button.secondary { color:var(--ink); background:rgba(255,255,255,.04); border-color:#536078; }
html[data-theme="hub_dark"] .button.secondary:hover { border-color:var(--brand); background:rgba(85,217,232,.09); }
html[data-theme="hub_dark"] .button.danger,
html[data-theme="hub_dark"] .alert.error { color:var(--red); background:#361e26; }
html[data-theme="hub_dark"] .button.warning,
html[data-theme="hub_dark"] .alert.warning,
html[data-theme="hub_dark"] .status.working { color:var(--amber); background:#362c20; }
html[data-theme="hub_dark"] .alert { color:#c6bafc; background:#27213e; }
html[data-theme="hub_dark"] .alert.success,
html[data-theme="hub_dark"] .status.active { color:var(--green); background:#153329; }
html[data-theme="hub_dark"] .status.inactive { color:#b6c1d3; background:#252e40; }
html[data-theme="hub_dark"] .app-kind { color:#c6bafc; background:rgba(155,135,245,.09); border:1px solid rgba(155,135,245,.25); }
html[data-theme="hub_dark"] .meter { background:#30394b; }
html[data-theme="hub_dark"] .class-code-copy code { background:#0e121d; }
html[data-theme="hub_dark"] .danger-zone { border-color:#a85858; }
html[data-theme="hub_dark"] .qr-card img { background:#fff; padding:8px; border-radius:12px; }
html[data-theme="hub_dark"] .provisioning-status { background:linear-gradient(135deg,#182033,#0e121d); }
html[data-theme="hub_dark"] .provisioning-steps li::before { background:#414d63; }
html[data-theme="hub_dark"] .step-marker { background:var(--panel); border-color:#536078; }
html[data-theme="hub_dark"] .provisioning-steps li.complete::before { background:var(--green); }
html[data-theme="hub_dark"] .provisioning-steps li.complete .step-marker,
html[data-theme="hub_dark"] .provisioning-steps li.failed .step-marker { box-shadow:inset 0 0 0 3px var(--panel); }
html[data-theme="hub_dark"] .provisioning-steps li.active .step-marker { background:var(--panel); box-shadow:0 0 0 4px rgba(85,217,232,.14); }
html[data-theme="hub_dark"] :focus-visible { outline:2px solid var(--brand); outline-offset:3px; }
@media (max-width:700px) { .theme-options { grid-template-columns:1fr; } }
@media (prefers-reduced-motion:reduce) {
  html[data-theme="hub_dark"] *,html[data-theme="hub_dark"] *::before,html[data-theme="hub_dark"] *::after { scroll-behavior:auto !important; animation:none !important; transition:none !important; }
}
