:root {
  --accent: #8b3dff;
  --accent-soft: rgba(139,61,255,.42);
  --bg: #06090f;
  --bg-2: #090e16;
  --panel: #0d131e;
  --panel-2: #111927;
  --panel-3: #151f2e;
  --text: #f5f7fb;
  --muted: #9da7b5;
  --subtle: #6f7a89;
  --line: rgba(255,255,255,.08);
  --line-strong: rgba(255,255,255,.14);
  --success: #31d982;
  --warning: #ffbf57;
  --danger: #ff647c;
  --shadow: 0 24px 80px rgba(0,0,0,.32);
  --radius: 18px;
  color-scheme: dark;
}
html[data-theme="light"] {
  --bg: #eef2f7;
  --bg-2: #f7f9fc;
  --panel: #ffffff;
  --panel-2: #f8faff;
  --panel-3: #edf2fa;
  --text: #121723;
  --muted: #566275;
  --subtle: #7b8796;
  --line: rgba(17,31,52,.09);
  --line-strong: rgba(17,31,52,.16);
  --shadow: 0 20px 60px rgba(45,62,92,.14);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { min-height:100%; background:var(--bg); scroll-behavior:smooth; }
body { margin:0; min-height:100vh; background:var(--bg); color:var(--text); font: 14px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color:var(--accent); text-decoration:none; }
button,input,select,textarea { font:inherit; }
button { cursor:pointer; }
img { max-width:100%; }
code { color:var(--accent); }
.hidden { display:none !important; }
.brand { display:flex; align-items:center; gap:10px; color:var(--text); font-weight:800; letter-spacing:-.03em; font-size:22px; }
.brand img { width:32px; height:32px; filter: drop-shadow(0 0 20px var(--accent-soft)); }
.brand span span { color:var(--accent); }
.eyebrow { display:inline-flex; align-items:center; gap:7px; color:var(--accent); text-transform:uppercase; letter-spacing:.14em; font-size:10px; font-weight:800; }
.eyebrow::before { content:""; width:7px; height:7px; background:var(--accent); border-radius:50%; box-shadow:0 0 18px var(--accent); }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:10px; min-height:44px; border:0; border-radius:11px; padding:0 18px; font-weight:800; transition:transform .22s ease, box-shadow .22s ease, background .22s ease; }
.btn:hover { transform:translateY(-2px); }
.btn-primary { color:white; background:var(--accent); box-shadow:0 12px 28px var(--accent-soft); }
.btn-secondary { color:var(--text); background:var(--panel-3); border:1px solid var(--line); }
.btn-danger { color:white; background:var(--danger); }
.btn-block { width:100%; }
.btn-small { min-height:34px; padding:0 12px; border-radius:8px; font-size:12px; }
.disabled { opacity:.45; pointer-events:none; }
.icon-btn { display:inline-grid; place-items:center; width:40px; height:40px; color:var(--muted); background:var(--panel-2); border:1px solid var(--line); border-radius:11px; transition:.2s ease; }
.icon-btn:hover { color:var(--text); border-color:var(--accent); box-shadow:0 0 22px var(--accent-soft); }
.alert { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 14px; border:1px solid var(--line); border-radius:11px; margin:0 0 16px; background:var(--panel-2); animation:slideDown .28s ease both; }
.alert button { color:inherit; background:transparent; border:0; font-size:18px; }
.alert-error { color:#ffb5c0; border-color:rgba(255,100,124,.28); background:rgba(255,100,124,.08); }
.alert-success { color:#a4f7c8; border-color:rgba(49,217,130,.3); background:rgba(49,217,130,.08); }
.alert-warning { color:#ffe1a8; border-color:rgba(255,191,87,.28); background:rgba(255,191,87,.08); }
.alert-info { color:#c9dcff; border-color:rgba(112,159,255,.28); background:rgba(112,159,255,.08); }

/* Animated auth and installer */
.auth-page { position:relative; overflow-x:hidden; background:var(--bg); }
.auth-page::before,.auth-page::after { content:""; position:fixed; width:420px; height:420px; border:1px solid var(--accent-soft); border-radius:50%; opacity:.3; pointer-events:none; animation:orbit 18s linear infinite; }
.auth-page::before { left:-160px; top:-110px; }
.auth-page::after { right:-170px; bottom:-170px; animation-direction:reverse; animation-duration:24s; }
.particle-field { position:fixed; inset:0; overflow:hidden; pointer-events:none; opacity:.88; }
.particle-field i { position:absolute; left:var(--x); top:var(--y); width:var(--size); height:var(--size); background:var(--accent); border-radius:50%; box-shadow:0 0 16px var(--accent); animation:particleFloat var(--d) ease-in-out var(--delay) infinite; }
.auth-shell,.install-shell { position:relative; z-index:1; min-height:100vh; display:grid; grid-template-columns:minmax(360px,1.05fr) minmax(400px,.95fr); max-width:1440px; margin:0 auto; padding:28px; }
.auth-showcase,.install-showcase { padding:22px 48px; display:flex; flex-direction:column; justify-content:space-between; }
.showcase-copy { max-width:660px; margin:auto 0; }
.showcase-copy h1 { margin:12px 0 14px; max-width:620px; font-size:clamp(48px,6vw,88px); line-height:.94; letter-spacing:-.08em; }
.showcase-copy h1 em { color:var(--accent); font-style:normal; }
.showcase-copy p { max-width:580px; margin:0; color:var(--muted); font-size:17px; }
.feature-stack { display:grid; gap:10px; margin-top:34px; max-width:600px; }
.feature-stack div { display:grid; grid-template-columns:38px 1fr; gap:0 12px; padding:13px; border:1px solid var(--line); background:var(--glass-soft); border-radius:13px; backdrop-filter:blur(16px); }
.feature-stack small { color:var(--muted); grid-column:2; }
.icon-chip { display:grid; place-items:center; grid-row:span 2; width:36px; height:36px; color:white; background:var(--accent); border-radius:10px; box-shadow:0 0 22px var(--accent-soft); }
.auth-card,.install-card { align-self:center; width:min(100%,510px); margin:auto; padding:28px; background:var(--glass-card); border:0; border-radius:22px; box-shadow:var(--shadow), 0 0 50px var(--accent-soft); backdrop-filter:blur(22px); animation:cardReveal .72s cubic-bezier(.2,.85,.28,1) both; }
.wide-card { width:min(100%,640px); }
.card-heading { margin-bottom:20px; }
.card-heading h2 { margin:9px 0 6px; font-size:31px; line-height:1.08; letter-spacing:-.05em; }
.card-heading p { margin:0; color:var(--muted); }
.centered { text-align:center; }
.auth-form { display:grid; gap:14px; }
label span { display:block; margin:0 0 6px; color:var(--muted); font-size:12px; font-weight:700; }
input,select,textarea { width:100%; border:1px solid var(--line); background:var(--panel-2); color:var(--text); border-radius:10px; padding:11px 12px; outline:none; transition:.2s ease; }
input:focus,select:focus,textarea:focus { border-color:var(--accent); box-shadow:0 0 0 4px var(--accent-soft); }
textarea { min-height:100px; resize:vertical; }
.password-wrap { position:relative; }
.password-wrap input { padding-right:62px; }
.password-wrap button { position:absolute; right:8px; top:50%; transform:translateY(-50%); padding:4px 6px; border:0; background:transparent; color:var(--accent); font-size:12px; font-weight:800; }
.form-row { display:flex; align-items:center; justify-content:space-between; gap:12px; color:var(--muted); font-size:12px; }
.check { display:flex; align-items:center; gap:8px; }
.check input { width:auto; accent-color:var(--accent); }
.auth-links { margin-top:16px; color:var(--muted); text-align:center; font-size:12px; }
.auth-brand-mobile { display:none; margin-bottom:24px; }
.orb-logo { width:74px; height:74px; display:grid; place-items:center; margin:0 auto 18px; background:var(--accent); border-radius:24px; animation:pulseGlow 2.8s ease-in-out infinite; }
.orb-logo img { width:46px; height:46px; }
.success-orb { width:76px; height:76px; display:grid; place-items:center; margin:4px auto 18px; background:rgba(49,217,130,.14); border:1px solid rgba(49,217,130,.36); border-radius:50%; color:var(--success); font-size:34px; animation:pulseGlow 3s ease infinite; }
.microcopy { margin:14px 0 0; color:var(--subtle); text-align:center; font-size:11px; }
.stepper { display:flex; align-items:center; justify-content:center; gap:8px; margin-bottom:24px; }
.stepper span { display:grid; place-items:center; width:30px; height:30px; border-radius:50%; border:1px solid var(--line-strong); color:var(--muted); font-weight:800; }
.stepper span.active { color:white; background:var(--accent); border-color:var(--accent); box-shadow:0 0 22px var(--accent-soft); }
.stepper i { width:54px; height:1px; background:var(--line-strong); }
.requirements-list { display:grid; gap:8px; margin:18px 0 22px; }
.requirements-list div { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:12px; border-radius:10px; background:var(--panel-2); border:1px solid var(--line); }
.ok { color:var(--success); }.fail { color:var(--danger); }
.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px; }
.form-grid h3 { grid-column:1/-1; margin:6px 0 -2px; color:var(--accent); font-size:12px; text-transform:uppercase; letter-spacing:.14em; }
.full { grid-column:1/-1; }

/* Admin */
.admin-body { background:var(--bg); }
.admin-shell { min-height:100vh; display:grid; grid-template-columns:248px minmax(0,1fr); }
.admin-sidebar { position:sticky; top:0; height:100vh; display:flex; flex-direction:column; padding:20px 14px; border-right:1px solid var(--line); background:var(--bg-2); z-index:10; }
.admin-sidebar .brand { padding:3px 8px 22px; }
.nav-group { margin:12px 0 2px; padding:0 9px; color:var(--subtle); font-size:10px; letter-spacing:.13em; text-transform:uppercase; font-weight:800; }
.admin-nav { display:grid; gap:3px; }
.admin-nav a { display:flex; align-items:center; gap:10px; padding:10px; color:var(--muted); border-radius:9px; font-size:13px; font-weight:700; transition:.2s ease; }
.admin-nav a:hover,.admin-nav a.active { color:var(--text); background:rgba(139,61,255,.14); }
.admin-nav a.active { box-shadow:inset 3px 0 0 var(--accent); }
.admin-nav svg { width:17px; height:17px; stroke:currentColor; fill:none; stroke-width:1.8; }
.sidebar-bottom { margin-top:auto; }
.admin-profile { display:flex; align-items:center; gap:10px; margin-top:14px; padding:10px; border:1px solid var(--line); background:var(--panel); border-radius:12px; }
.avatar { display:grid; place-items:center; flex:0 0 auto; width:34px; height:34px; color:white; background:var(--accent); border-radius:50%; font-weight:800; }
.admin-profile b,.admin-profile small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.admin-profile small { color:var(--subtle); font-size:11px; }
.admin-main { min-width:0; }
.admin-topbar { position:sticky; top:0; z-index:8; display:flex; align-items:center; justify-content:space-between; gap:18px; min-height:68px; padding:12px 22px; border-bottom:1px solid var(--line); background:rgba(6,9,15,.84); backdrop-filter:blur(18px); }
html[data-theme="light"] .admin-topbar { background:rgba(247,249,252,.84); }
.topbar-left,.topbar-right { display:flex; align-items:center; gap:10px; }
.topbar-left h1 { margin:0; font-size:18px; letter-spacing:-.03em; }
.topbar-left small { display:block; color:var(--muted); }
.mobile-menu { display:none; }
.admin-content { padding:22px; }
.page-intro { display:flex; align-items:end; justify-content:space-between; gap:18px; margin-bottom:18px; }
.page-intro h2 { margin:0; font-size:28px; letter-spacing:-.05em; }
.page-intro p { margin:4px 0 0; color:var(--muted); }
.stats-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.stat-card,.panel { border:1px solid var(--line); background:var(--panel); border-radius:14px; box-shadow:0 8px 32px rgba(0,0,0,.08); }
.stat-card { position:relative; overflow:hidden; min-height:126px; padding:16px; animation:rise .55s ease both; }
.stat-card::after { content:""; position:absolute; right:-24px; bottom:-34px; width:86px; height:86px; border:1px solid var(--accent-soft); border-radius:50%; }
.stat-card span { color:var(--muted); font-size:12px; }
.stat-card strong { display:block; margin-top:12px; font-size:28px; letter-spacing:-.06em; }
.stat-card small { color:var(--success); }
.dashboard-grid { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(290px,.65fr); gap:12px; margin-top:12px; }
.panel { padding:16px; }
.panel-title { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:14px; }
.panel-title h3 { margin:0; font-size:15px; }
.panel-title p { margin:2px 0 0; color:var(--muted); font-size:12px; }
.chart-wrap { min-height:215px; display:grid; align-items:center; border-radius:12px; background:var(--panel-2); overflow:hidden; }
.chart-wrap svg { width:100%; height:190px; overflow:visible; }
.activity-list { display:grid; gap:9px; }
.activity-item { display:grid; grid-template-columns:34px minmax(0,1fr); gap:10px; align-items:center; padding:9px; border:1px solid var(--line); background:var(--panel-2); border-radius:10px; }
.activity-item .dot { display:grid; place-items:center; width:32px; height:32px; border-radius:50%; color:var(--accent); background:rgba(139,61,255,.14); }
.activity-item b,.activity-item small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.activity-item small { color:var(--subtle); }
.table-wrap { overflow:auto; border:1px solid var(--line); border-radius:12px; }
table { width:100%; border-collapse:collapse; min-width:720px; background:var(--panel); }
th,td { padding:12px 13px; border-bottom:1px solid var(--line); text-align:left; vertical-align:middle; }
th { color:var(--subtle); background:var(--panel-2); text-transform:uppercase; letter-spacing:.09em; font-size:10px; }
td { color:var(--muted); font-size:12px; }
td strong { color:var(--text); }
.badge { display:inline-flex; align-items:center; gap:5px; padding:4px 8px; border-radius:99px; background:var(--panel-3); color:var(--muted); font-size:10px; font-weight:800; }
.badge-success { color:var(--success); background:rgba(49,217,130,.1); }
.badge-warning { color:var(--warning); background:rgba(255,191,87,.1); }
.badge-danger { color:var(--danger); background:rgba(255,100,124,.1); }
.badge-accent { color:#c69dff; background:rgba(139,61,255,.15); }
.table-actions { display:flex; align-items:center; gap:6px; }
.filter-bar { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px; margin:0 0 12px; }
.filter-bar form { display:flex; flex-wrap:wrap; gap:8px; }
.filter-bar input,.filter-bar select { width:auto; min-width:160px; }
.pagination { display:flex; flex-wrap:wrap; gap:6px; margin-top:14px; }
.pagination a { display:grid; place-items:center; min-width:34px; height:34px; padding:0 8px; color:var(--muted); border:1px solid var(--line); background:var(--panel); border-radius:8px; }
.pagination a.active { color:white; border-color:var(--accent); background:var(--accent); }
.settings-shell { display:grid; grid-template-columns:210px minmax(0,1fr); gap:14px; }
.settings-tabs { align-self:start; position:sticky; top:88px; display:grid; gap:4px; padding:8px; border:1px solid var(--line); background:var(--panel); border-radius:12px; }
.settings-tabs button { padding:10px; border:0; border-radius:8px; color:var(--muted); background:transparent; text-align:left; font-size:12px; font-weight:800; }
.settings-tabs button:hover,.settings-tabs button.active { color:var(--text); background:rgba(139,61,255,.14); }
.settings-section { padding:18px; border:1px solid var(--line); background:var(--panel); border-radius:13px; }
.settings-section h3 { margin:0; font-size:20px; letter-spacing:-.04em; }
.settings-section > p { margin:4px 0 18px; color:var(--muted); }
.setting-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.setting-row { padding:12px; border:1px solid var(--line); background:var(--panel-2); border-radius:10px; }
.setting-row.full { grid-column:1/-1; }
.setting-row label { display:block; }
.setting-row small { display:block; margin-top:7px; color:var(--subtle); }
.switch-row { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.switch { position:relative; display:inline-block; width:44px; height:24px; flex:0 0 auto; }
.switch input { opacity:0; width:0; height:0; }
.switch i { position:absolute; inset:0; border:1px solid var(--line-strong); background:var(--panel-3); border-radius:50px; transition:.2s ease; }
.switch i::before { content:""; position:absolute; width:16px; height:16px; left:3px; top:3px; background:var(--muted); border-radius:50%; transition:.2s ease; }
.switch input:checked + i { background:var(--accent); border-color:var(--accent); }
.switch input:checked + i::before { transform:translateX(20px); background:white; }
.color-picker { display:flex; align-items:center; gap:10px; }
.color-picker input[type=color] { width:54px; height:42px; padding:4px; }
.sidebar-backdrop { display:none; }
.empty { padding:28px; color:var(--muted); text-align:center; }
.log-code { max-width:420px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-family:ui-monospace,SFMono-Regular,Menlo,monospace; color:var(--subtle); }

@keyframes orbit { to { transform:rotate(360deg) scale(1.08); } }
@keyframes particleFloat { 0%,100% { transform:translate3d(0,0,0); opacity:.2; } 50% { transform:translate3d(18px,-36px,0); opacity:1; } }
@keyframes cardReveal { from { opacity:0; transform:translateY(20px) scale(.985); } to { opacity:1; transform:none; } }
@keyframes slideDown { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:none; } }
@keyframes rise { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:none; } }
@keyframes pulseGlow { 0%,100% { box-shadow:0 0 20px var(--accent-soft); } 50% { box-shadow:0 0 52px var(--accent-soft); transform:translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; scroll-behavior:auto !important; } }
@media (max-width:1100px) {
  .auth-shell,.install-shell { grid-template-columns:1fr; max-width:700px; }
  .auth-showcase,.install-showcase { min-height:auto; padding:12px 8px 22px; }
  .showcase-copy { display:none; }
  .stats-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .dashboard-grid { grid-template-columns:1fr; }
}
@media (max-width:820px) {
  .admin-shell { display:block; }
  .admin-sidebar { position:fixed; left:0; top:0; width:256px; transform:translateX(-105%); transition:transform .25s ease; box-shadow:var(--shadow); }
  .sidebar-open .admin-sidebar { transform:none; }
  .sidebar-open .sidebar-backdrop { display:block; position:fixed; inset:0; z-index:9; background:rgba(0,0,0,.56); }
  .mobile-menu { display:inline-grid; }
  .admin-content { padding:15px; }
  .settings-shell { grid-template-columns:1fr; }
  .settings-tabs { position:static; grid-template-columns:repeat(3,minmax(0,1fr)); overflow:auto; }
  .settings-tabs button { white-space:nowrap; text-align:center; }
  .page-intro { align-items:start; flex-direction:column; }
}
@media (max-width:620px) {
  .auth-shell,.install-shell { display:block; padding:14px; }
  .auth-showcase,.install-showcase { padding:6px 2px 18px; }
  .auth-showcase > .brand,.install-showcase > .brand { margin:5px 2px 12px; }
  .auth-card,.install-card { padding:19px; border-radius:17px; }
  .card-heading h2 { font-size:26px; }
  .form-grid,.setting-grid { grid-template-columns:1fr; }
  .form-grid h3,.full,.setting-row.full { grid-column:auto; }
  .stats-grid { grid-template-columns:1fr; }
  .topbar-left small { display:none; }
  .admin-topbar { padding:10px 14px; min-height:60px; }
  .admin-content { padding:12px; }
  .page-intro h2 { font-size:24px; }
  .settings-tabs { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

html[data-motion="subtle"] .particle-field{opacity:.38} html[data-motion="subtle"] .auth-page::before,html[data-motion="subtle"] .auth-page::after{opacity:.16} html[data-motion="expressive"] .particle-field{opacity:1} html[data-motion="expressive"] .auth-page::before,html[data-motion="expressive"] .auth-page::after{opacity:.46}

textarea{width:100%;min-height:100px;resize:vertical;border:1px solid var(--line);border-radius:9px;padding:11px;background:var(--panel-3);color:var(--text)} .inline-checks{display:flex;flex-wrap:wrap;gap:16px}.inline-checks label{display:flex;align-items:center;gap:7px;color:var(--muted)}

/* v5 professional surface and SVG consistency */
:root {
  --glass-card: rgba(13,19,30,.9);
  --glass-soft: rgba(13,19,30,.68);
  --glass-strong: rgba(17,25,39,.96);
  --topbar-glass: rgba(6,9,15,.88);
  --focus-ring: 0 0 0 4px var(--accent-soft);
}
html[data-theme="light"] {
  --glass-card: rgba(255,255,255,.94);
  --glass-soft: rgba(255,255,255,.76);
  --glass-strong: rgba(255,255,255,.98);
  --topbar-glass: rgba(247,249,252,.9);
}
.ui-icon { width:18px; height:18px; flex:0 0 auto; display:inline-block; vertical-align:middle; }
.btn .ui-icon { width:16px; height:16px; }
.icon-chip .ui-icon { width:18px; height:18px; }
.icon-btn .ui-icon,.admin-nav .ui-icon { width:17px; height:17px; }
.orb-logo .ui-icon { width:36px; height:36px; color:#fff; }
.success-orb .ui-icon { width:34px; height:34px; }
.auth-card,.install-card { background:var(--glass-card); border:0; box-shadow:var(--shadow),0 0 50px var(--accent-soft); }
.feature-stack div { background:var(--glass-soft); border:0; box-shadow:0 10px 24px rgba(0,0,0,.08); }
html[data-theme="light"] .feature-stack div { box-shadow:0 12px 30px rgba(45,62,92,.1); }
.theme-fab { position:fixed; z-index:8; right:22px; top:20px; display:grid; place-items:center; width:42px; height:42px; border:0; border-radius:12px; color:var(--text); background:var(--glass-card); box-shadow:0 10px 30px rgba(0,0,0,.16); transition:transform .2s ease, box-shadow .2s ease; }
.theme-fab:hover { transform:translateY(-2px); box-shadow:0 14px 34px var(--accent-soft); }
.theme-fab .ui-icon { width:18px; height:18px; }
.alert button { display:grid; place-items:center; width:28px; height:28px; padding:0; }
.alert button .ui-icon { width:16px; height:16px; }
.auth-page input,.auth-page select,.auth-page textarea { background:var(--panel-2); color:var(--text); }
.auth-page input::placeholder { color:var(--subtle); }
html[data-theme="light"] .auth-card,html[data-theme="light"] .install-card { box-shadow:0 24px 70px rgba(45,62,92,.18),0 0 38px var(--accent-soft); }
html[data-theme="light"] .alert-error { color:#a3283c; }
html[data-theme="light"] .alert-success { color:#13753f; }
html[data-theme="light"] .alert-warning { color:#8a5a08; }
html[data-theme="light"] .alert-info { color:#315d9c; }
html[data-theme="light"] .admin-topbar { background:var(--topbar-glass); }
.admin-topbar { background:var(--topbar-glass); }
.stat-card,.panel,.settings-section,.settings-tabs,.admin-profile { border:0; box-shadow:0 8px 28px rgba(0,0,0,.08); }
.setting-row { border:0; }
.table-wrap { border-color:var(--line); box-shadow:0 8px 28px rgba(0,0,0,.06); }
.settings-tabs button,.admin-nav a { transition:background .2s ease,color .2s ease,transform .2s ease; }
.settings-tabs button:hover,.admin-nav a:hover { transform:translateX(2px); }
html[data-theme="light"] .badge-accent { color:#7132c6; }
html[data-theme="light"] .alert { box-shadow:0 8px 20px rgba(45,62,92,.08); }
html[data-motion="minimal"] *,html[data-motion="minimal"] *::before,html[data-motion="minimal"] *::after { animation-duration:.12s !important; transition-duration:.12s !important; }
html[data-motion="off"] *,html[data-motion="off"] *::before,html[data-motion="off"] *::after { animation:none !important; transition:none !important; scroll-behavior:auto !important; }
@media(max-width:560px){.theme-fab{right:14px;top:14px;width:38px;height:38px}.auth-card,.install-card{padding:20px;border-radius:17px}.card-heading h2{font-size:27px}}
.install-form input[type="color"] { min-height:46px; padding:5px; cursor:pointer; }
html[data-motion="subtle"] .particle-field{opacity:.46}html[data-motion="subtle"] .stat-card{animation-duration:.25s}html[data-motion="expressive"] .particle-field{opacity:1}html[data-motion="expressive"] .auth-card,html[data-motion="expressive"] .install-card{animation-duration:.86s}

/* v5 raw SVG sizing for admin and shared buttons */
.icon-btn svg,.btn svg,.activity-item .dot svg { width:17px; height:17px; flex:0 0 auto; stroke:currentColor; fill:none; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.activity-item .dot svg { width:15px; height:15px; }

/* v6 application interface stabilization */
.ui-icon{display:block!important;width:18px!important;height:18px!important;min-width:18px!important;max-width:18px!important;min-height:18px!important;max-height:18px!important;overflow:visible;flex:0 0 18px!important}
.btn .ui-icon,.icon-btn .ui-icon,.admin-nav .ui-icon,.alert button .ui-icon{width:17px!important;height:17px!important;min-width:17px!important;max-width:17px!important;min-height:17px!important;max-height:17px!important;flex-basis:17px!important}
.icon-chip{display:grid!important;place-items:center;flex:0 0 38px}
.icon-chip .ui-icon{width:18px!important;height:18px!important}
.auth-card,.install-card,.panel,.settings-card,.stat-card{isolation:isolate}
html[data-theme="light"] .auth-card,html[data-theme="light"] .install-card,html[data-theme="light"] .panel,html[data-theme="light"] .settings-card,html[data-theme="light"] .stat-card{color:var(--text)}
/* v8 plans and media */
.plan-admin-grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:14px}.plan-editor{display:grid;gap:14px}.plan-advantage-groups{display:grid;gap:12px}.plan-advantage-groups section{padding:14px;border-radius:12px;background:var(--panel-2)}.plan-advantage-groups h4{margin:0 0 10px;color:var(--accent)}.plan-admin-card{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 0;border-bottom:1px solid var(--line)}.plan-admin-card small,.plan-admin-card strong{display:block}.plan-admin-card small{margin-top:4px;color:var(--muted)}.plan-admin-card>div:last-child{display:flex;gap:6px}.plan-admin-card form{display:inline}.inline-checks input[type=number]{width:70px}@media(max-width:980px){.plan-admin-grid{grid-template-columns:1fr}}

/* v8 installer optional media services */
.compact-heading{margin-top:18px}.compact-heading p{margin-bottom:0}.optional-services small{display:block;margin-top:4px;color:var(--muted);font-weight:500;line-height:1.45}.requirements-list .optional{color:var(--accent);white-space:nowrap}
/* v9 integrations */
.integration-health-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px;margin-bottom:16px}.health-card{display:grid;gap:9px;padding:15px;border-radius:14px;background:var(--panel);box-shadow:0 8px 28px rgba(0,0,0,.07)}.health-card p,.health-card small,.test-row small{margin:0;color:var(--muted);line-height:1.45}.health-card b{font-size:13px}.health-card-head{display:flex;align-items:center;gap:9px}.health-card-head h3{margin:0;font-size:15px}.health-dot{width:10px;height:10px;border-radius:50%;background:#d3485c;box-shadow:0 0 14px rgba(211,72,92,.5)}.health-card.is-ready .health-dot{background:#23b36b;box-shadow:0 0 14px rgba(35,179,107,.5)}.integration-layout{align-items:start}.integration-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:10px}.integration-meta{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.integration-meta span{padding:8px 10px;border-radius:9px;background:var(--panel-2);color:var(--muted);font-size:12px}.integration-meta b{color:var(--text)}.test-list{display:grid;gap:8px}.test-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border-radius:10px;background:var(--panel-2)}.test-row b,.test-row small{display:block}.test-row small{margin-top:3px}
.auth-separator{display:flex;align-items:center;gap:10px;margin:14px 0;color:var(--muted);font-size:12px;text-transform:uppercase;letter-spacing:.12em}.auth-separator::before,.auth-separator::after{content:"";height:1px;flex:1;background:var(--line)}.google-btn{justify-content:center}
.health-card.is-off .health-dot{background:var(--subtle);box-shadow:none}.health-card.is-off{opacity:.78}
.health-inline{display:inline-block;width:8px;height:8px;border-radius:50%;vertical-align:middle;background:#d3485c}.health-inline.ok{background:#23b36b}.health-inline.fail{background:#d3485c}
.integration-inline-status{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 16px;margin:0 0 14px;border-radius:14px;background:var(--panel-2);box-shadow:0 8px 24px rgba(0,0,0,.05)}.integration-inline-status b,.integration-inline-status small{display:block}.integration-inline-status small{margin-top:4px;color:var(--muted);line-height:1.45}.integration-inline-status.is-ready{box-shadow:inset 3px 0 0 #23b36b,0 8px 24px rgba(0,0,0,.05)}.integration-inline-status.is-error{box-shadow:inset 3px 0 0 #d3485c,0 8px 24px rgba(0,0,0,.05)}.integration-inline-status.is-off{box-shadow:inset 3px 0 0 var(--subtle),0 8px 24px rgba(0,0,0,.05)}
