@import "customer.css";

/* VerseAI — VerseKeys visual language: near-black navy, deep navy panels, royal electric blue accent. */
:root {
  --bg: #06080e;
  --bg-2: #080d1a;
  --panel: #0a1220;
  --card: #0b1424;
  --card-2: #0e1a30;
  --line: rgba(59, 130, 246, 0.12);
  --line-2: rgba(255, 255, 255, 0.08);
  --text: #f8fafc;
  --text-2: #94a3b8;
  --muted: #64748b;
  --accent: #3b82f6;
  --accent-2: #2563eb;
  --accent-ink: #ffffff;
  --accent-soft: rgba(59, 130, 246, 0.12);
  --glow: 0 0 0 1px rgba(59, 130, 246, 0.28), 0 0 18px rgba(37, 99, 235, 0.18);
  --ok: #22c55e;
  --warn: #eab308;
  --bad: #ef4444;
  --info: #3b82f6;
  --radius: 12px;
  --radius-sm: 8px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  background-image: radial-gradient(1200px 600px at 85% -10%, rgba(37, 99, 235, 0.08), transparent 60%),
                    radial-gradient(900px 500px at -10% 110%, rgba(59, 130, 246, 0.05), transparent 60%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .5rem; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: 1.45rem; }
h2 { font-size: 1.1rem; }
h3 { font-size: .95rem; color: var(--text-2); }
p { margin: 0 0 .75rem; }
code, kbd, pre, .mono { font-family: var(--mono); }
code { background: rgba(148, 197, 255, .07); padding: .1em .35em; border-radius: 5px; font-size: .9em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1rem 0; }
::selection { background: rgba(59, 130, 246, .25); }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.sidebar {
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border-right: 1px solid var(--line);
  padding: 18px 12px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: rgba(59, 130, 246, .12);
  border: 1px solid rgba(59, 130, 246, .35); box-shadow: 0 0 14px rgba(37, 99, 235, .25);
  font-weight: 700; color: var(--accent); font-size: 14px;
}
.brand-name { font-weight: 700; letter-spacing: .02em; }
.brand-name span { color: var(--accent); }
.brand-sub { font-size: 11px; color: var(--muted); }
.nav-section { font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted);
  padding: 14px 10px 6px; }
.nav a {
  display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; color: var(--text-2);
  font-size: 13.5px; border: 1px solid transparent;
}
.nav a:hover { background: rgba(148, 197, 255, .05); color: var(--text); text-decoration: none; }
.nav a.active { background: var(--accent-soft); color: var(--text); border-color: rgba(59, 130, 246, .25); }
.nav a .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); flex: none; }
.nav a.active .dot { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.sidebar-foot { margin-top: 18px; padding: 12px 10px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.sidebar-foot .who { color: var(--text-2); font-weight: 500; overflow: hidden; text-overflow: ellipsis; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; gap: 12px; padding: 12px 24px; border-bottom: 1px solid var(--line);
  background: rgba(5, 8, 15, .7); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 20;
}
.topbar .title { font-weight: 600; font-size: 15px; }
.topbar .spacer { flex: 1; }
.content { padding: 22px 24px 48px; max-width: 1500px; width: 100%; }
.content.narrow { max-width: 1100px; }
.menu-btn { display: none; }

/* ---------- cards / grid ---------- */
.card {
  background: linear-gradient(180deg, var(--card), var(--panel));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px;
}
.card + .card { margin-top: 14px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.card-head h2, .card-head h3 { margin: 0; }
.card.glow { box-shadow: var(--glow); }
.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.stack > * + * { margin-top: 14px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.mt { margin-top: 14px; } .mb { margin-bottom: 14px; } .mt-lg { margin-top: 24px; }
.muted { color: var(--muted); } .dim { color: var(--text-2); } .small { font-size: 12px; } .tiny { font-size: 11px; }
.right { text-align: right; } .nowrap { white-space: nowrap; } .ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.accent { color: var(--accent); }
.ok-text { color: var(--ok); } .bad-text { color: var(--bad); } .warn-text { color: var(--warn); }

.stat { padding: 14px 16px; }
.stat .label { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.stat .value { font-size: 1.5rem; font-weight: 650; margin-top: 4px; letter-spacing: -0.02em; }
.stat .sub { font-size: 12px; color: var(--text-2); margin-top: 2px; }

/* ---------- buttons / forms ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: rgba(148, 197, 255, .08);
  color: var(--text);
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s ease;
  box-sizing: border-box;
}
.btn:hover {
  border-color: rgba(59, 130, 246, .4);
  background: rgba(59, 130, 246, .12);
  text-decoration: none;
}
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, .45);
}
.btn.primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
  border: 1px solid rgba(59, 130, 246, .5);
  font-weight: 600;
  box-shadow: 0 2px 12px rgba(37, 99, 235, .3);
}
.btn.primary:hover {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(37, 99, 235, .45);
}
.btn.ok {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  border: 1px solid rgba(16, 185, 129, .5);
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(5, 150, 105, .25);
}
.btn.ok:hover {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
}
.btn.danger {
  color: #fca5a5;
  border-color: rgba(248, 113, 113, .35);
  background: rgba(248, 113, 113, .1);
  font-weight: 500;
}
.btn.danger:hover {
  background: rgba(248, 113, 113, .2);
  border-color: rgba(248, 113, 113, .6);
  color: #ffffff;
}
.btn.ghost {
  background: transparent;
  border-color: transparent;
}
.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}
.btn.sm {
  min-height: 32px;
  padding: 5px 12px;
  font-size: 12.5px;
  border-radius: 7px;
  font-weight: 500;
}
.btn.lg {
  min-height: 44px;
  padding: 10px 20px;
  font-size: 14.5px;
  border-radius: 9px;
  font-weight: 600;
}
.btn[disabled], .btn.disabled {
  opacity: .45;
  pointer-events: none;
}
.btn.block {
  width: 100%;
}

label { display: block; font-size: 12px; color: var(--text-2); margin-bottom: 5px; font-weight: 500; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search],
input[type=datetime-local], input:not([type]), select, textarea:not(.v-pill-input) {
  width: 100%; background: #070d18; color: var(--text); border: 1px solid var(--line-2); border-radius: 8px;
  padding: 8px 10px; font: inherit; font-size: 13.5px; transition: border-color .15s;
}
textarea:not(.v-pill-input) { min-height: 80px; resize: vertical; }
input:hover, select:hover, textarea:not(.v-pill-input):hover { border-color: rgba(59, 130, 246, .3); }
input[type=checkbox] { accent-color: var(--accent); width: 15px; height: 15px; vertical-align: middle; }
.field { margin-bottom: 12px; }
.field .help { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text); margin: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.form-grid .full { grid-column: 1 / -1; }
.inline-form { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.inline-form input, .inline-form select { width: auto; min-width: 90px; }

/* ---------- alerts ---------- */
.alert { padding: 10px 14px; border-radius: 9px; border: 1px solid; font-size: 13px; margin-bottom: 12px; }
.alert.ok { color: #bbf7d0; border-color: rgba(52, 211, 153, .3); background: rgba(52, 211, 153, .07); }
.alert.error { color: #fecaca; border-color: rgba(248, 113, 113, .35); background: rgba(248, 113, 113, .07); }
.alert.warn { color: #fde68a; border-color: rgba(251, 191, 36, .3); background: rgba(251, 191, 36, .07); }
.alert.info { color: #bfdbfe; border-color: rgba(59, 130, 246, .3); background: var(--accent-soft); }

/* ---------- badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; font-size: 11px;
  font-weight: 600; letter-spacing: .02em; border: 1px solid; text-transform: capitalize; white-space: nowrap;
}
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.b-active, .b-ok, .b-success, .b-completed { color: var(--ok); border-color: rgba(52, 211, 153, .3); background: rgba(52, 211, 153, .07); }
.b-unredeemed, .b-info, .b-generating, .b-queued { color: var(--accent); border-color: rgba(59, 130, 246, .3); background: var(--accent-soft); }
.b-paused, .b-warn, .b-quota_paused, .b-degraded, .b-rate_limited, .b-maintenance { color: var(--warn); border-color: rgba(251, 191, 36, .3); background: rgba(251, 191, 36, .07); }
.b-exhausted, .b-expired, .b-cancelled, .b-unknown, .b-rejected, .b-redeemed, .b-muted { color: var(--text-2); border-color: rgba(148, 163, 184, .25); background: rgba(148, 163, 184, .06); }
.b-revoked, .b-error, .b-failed, .b-down, .b-suspended { color: var(--bad); border-color: rgba(248, 113, 113, .3); background: rgba(248, 113, 113, .07); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 8px 12px; text-align: left; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
th { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600;
  background: rgba(7, 12, 22, .6); position: sticky; top: 0; white-space: nowrap; }
th a { color: var(--muted); }
tbody tr:hover { background: rgba(59, 130, 246, .04); }
tbody tr:last-child td { border-bottom: 0; }
td.mono, .code { font-family: var(--mono); font-size: 12.5px; letter-spacing: .01em; }
.compact th, .compact td { padding: 6px 10px; }
.empty { padding: 28px; text-align: center; color: var(--muted); }

.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.toolbar input[type=search], .toolbar input[type=text] { width: 280px; }
.toolbar select { width: auto; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 7px 12px; color: var(--text-2); border-bottom: 2px solid transparent; font-size: 13px; }
.tabs a.active { color: var(--text); border-color: var(--accent); }
.tabs a:hover { text-decoration: none; color: var(--text); }
.pagination { display: flex; gap: 6px; align-items: center; justify-content: flex-end; margin-top: 10px; font-size: 12px; color: var(--muted); }

.bulkbar {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 10px 12px; margin-bottom: 10px;
  border: 1px solid rgba(59, 130, 246, .2); border-radius: 10px; background: rgba(59, 130, 246, .05);
}
.bulkbar select, .bulkbar input { width: auto; }
.bulk-params { display: none; gap: 6px; align-items: center; }
.bulk-params.show { display: inline-flex; }

/* ---------- progress / meters ---------- */
.meter { height: 7px; border-radius: 999px; background: rgba(148, 197, 255, .08); overflow: hidden; }
.meter > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent-2), var(--accent)); }
.meter.warn > span { background: linear-gradient(90deg, #f59e0b, var(--warn)); }
.meter.bad > span { background: linear-gradient(90deg, #ef4444, var(--bad)); }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 6px 14px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

/* bar chart */
.bars { display: flex; align-items: flex-end; gap: 4px; height: 120px; padding-top: 6px; }
.bars .bar { flex: 1; min-width: 4px; background: linear-gradient(180deg, var(--accent), rgba(37, 99, 235, .35));
  border-radius: 4px 4px 1px 1px; position: relative; opacity: .85; }
.bars .bar:hover { opacity: 1; box-shadow: 0 0 10px rgba(59, 130, 246, .35); }
.bars .bar.zero { background: rgba(148, 197, 255, .08); }
.bar-labels { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--muted); margin-top: 6px; }
.hbar { display: grid; grid-template-columns: 150px 1fr 80px; gap: 10px; align-items: center; font-size: 12.5px; margin: 6px 0; }
.hbar .track { height: 8px; background: rgba(148, 197, 255, .06); border-radius: 999px; overflow: hidden; }
.hbar .fill { height: 100%; background: linear-gradient(90deg, var(--accent-2), var(--accent)); border-radius: 999px; }

/* ---------- model cards (customer) ---------- */
.model-card { position: relative; overflow: hidden; }
.model-card .name { font-size: 1.05rem; font-weight: 650; }
.model-card .big { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; }
.model-card .section { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.model-card .actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }

.secret-box {
  display: flex; gap: 8px; align-items: center; padding: 12px; border-radius: 10px; background: #050a13;
  border: 1px dashed rgba(59, 130, 246, .4); font-family: var(--mono); font-size: 13px; word-break: break-all;
}
.secret-box code { background: none; padding: 0; flex: 1; color: var(--accent); }
.codebox {
  background: #050a13; border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px; overflow-x: auto;
  font-family: var(--mono); font-size: 12.5px; line-height: 1.6; color: #cfe7ff; white-space: pre;
}
textarea.codes { font-family: var(--mono); font-size: 12.5px; min-height: 240px; }

/* ---------- auth ---------- */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card {
  width: 100%; max-width: 420px;
  background: #0a101f;
  border: 1px solid rgba(59, 130, 246, 0.22);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.15), 0 12px 40px rgba(0, 0, 0, 0.6);
  border-radius: 16px;
  padding: 32px 28px;
}
.auth-card .brand { justify-content: center; padding-bottom: 12px; gap: 12px; }
.auth-brand-emblem { width: 34px; height: 34px; object-fit: contain; filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.7)); }
.auth-card h1 { text-align: center; font-size: 1.35rem; font-weight: 700; margin-bottom: 4px; color: #ffffff; letter-spacing: -0.01em; }
.auth-card .sub { text-align: center; color: var(--text-2); margin-bottom: 22px; font-size: 13px; }

/* redeem */
.redeem-input { font-family: var(--mono) !important; font-size: 16px !important; letter-spacing: .06em;
  text-transform: uppercase; padding: 12px 14px !important; text-align: center; }
.success-hero { text-align: center; padding: 26px 18px; }
.success-hero .check-ring {
  width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(52, 211, 153, .5); color: var(--ok); font-size: 26px; box-shadow: 0 0 22px rgba(52, 211, 153, .2);
}

/* ---------- playground ---------- */
.pg { display: grid; grid-template-columns: 260px 1fr; height: calc(100vh - 53px); }
.pg-side { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; background: var(--bg-2); }
.pg-side .head { padding: 12px; display: grid; gap: 8px; border-bottom: 1px solid var(--line); }
.pg-list { overflow-y: auto; flex: 1; padding: 6px; }
.pg-item { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 8px; cursor: pointer;
  color: var(--text-2); font-size: 13px; border: 1px solid transparent; }
.pg-item:hover { background: rgba(148, 197, 255, .05); color: var(--text); }
.pg-item.active { background: var(--accent-soft); color: var(--text); border-color: rgba(59, 130, 246, .25); }
.pg-item .t { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-item .m { font-size: 10.5px; color: var(--muted); }
.pg-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.pg-bar { display: flex; align-items: center; gap: 10px; padding: 10px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; font-size: 12.5px; }
.pg-bar .model-pill { padding: 3px 10px; border-radius: 999px; border: 1px solid rgba(59, 130, 246, .35); color: var(--accent); background: var(--accent-soft); font-weight: 600; font-size: 12px; }
.pg-msgs { flex: 1; overflow-y: auto; padding: 18px 0; }
.pg-msgs .inner { max-width: 860px; margin: 0 auto; padding: 0 18px; }
.msg { margin-bottom: 18px; }
.msg .who { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 4px; display: flex; gap: 8px; align-items: center; }
.msg.user .bubble { background: var(--card-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 14px; white-space: pre-wrap; word-wrap: break-word; }
.msg.assistant .bubble { padding: 2px 2px; }
.msg .meta { display: flex; gap: 10px; align-items: center; margin-top: 6px; font-size: 11.5px; color: var(--muted); flex-wrap: wrap; }
.msg .notice { margin-top: 8px; padding: 9px 12px; border-radius: 9px; font-size: 12.5px; border: 1px solid rgba(251, 191, 36, .3); background: rgba(251, 191, 36, .06); color: #fde68a; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.msg .notice.err { border-color: rgba(248, 113, 113, .3); background: rgba(248, 113, 113, .06); color: #fecaca; }
.md { line-height: 1.65; overflow-wrap: anywhere; }
.md p { margin: 0 0 .7em; }
.md h1, .md h2, .md h3, .md h4 { margin: 1em 0 .5em; color: var(--text); }
.md ul, .md ol { padding-left: 1.4em; margin: 0 0 .7em; }
.md blockquote { margin: 0 0 .7em; padding-left: 12px; border-left: 3px solid var(--line); color: var(--text-2); }
.md table { margin: 0 0 .8em; border: 1px solid var(--line-2); }
.md a { text-decoration: underline; }
.code-block { margin: 0 0 .8em; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: #050a13; }
.code-block .cb-head { display: flex; justify-content: space-between; align-items: center; padding: 5px 10px; font-size: 11px; color: var(--muted); background: rgba(148, 197, 255, .04); border-bottom: 1px solid var(--line-2); font-family: var(--mono); }
.code-block pre { margin: 0; padding: 12px 14px; overflow-x: auto; font-size: 12.5px; line-height: 1.55; }
.code-block code { background: none; padding: 0; font-size: inherit; }
.tok-k { color: #7dd3fc; } .tok-s { color: #86efac; } .tok-c { color: #64748b; font-style: italic; } .tok-n { color: #fca5a5; } .tok-f { color: #c4b5fd; }
.pg-input { border-top: 1px solid var(--line); padding: 12px 18px 16px; }
.pg-input .inner { max-width: 860px; margin: 0 auto; }
.pg-input textarea { min-height: 54px; max-height: 260px; resize: none; padding: 11px 12px; }
.pg-input .row { margin-top: 8px; }
.cursor::after { content: "▍"; color: var(--accent); animation: blink 1s steps(2) infinite; margin-left: 1px; }
@keyframes blink { 50% { opacity: 0; } }
.pg-empty { text-align: center; color: var(--muted); padding: 60px 20px; }

/* ---------- docs ---------- */
.docs h2 { margin-top: 1.6rem; }
.docs .codebox { margin-bottom: 1rem; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 50; left: 0; top: 0; width: 250px; transform: translateX(-100%); transition: transform .2s; }
  body.nav-open .sidebar { transform: translateX(0); box-shadow: 0 0 40px rgba(0, 0, 0, .6); }
  .menu-btn { display: inline-flex; }
  .content { padding: 16px; }
  .topbar { padding: 10px 16px; }
  .grid-2, .grid-3, .grid-4, .form-grid { grid-template-columns: 1fr; }
  .toolbar input[type=search], .toolbar input[type=text] { width: 100%; }
  .kv { grid-template-columns: 120px 1fr; }
  .pg { grid-template-columns: 1fr; height: auto; min-height: calc(100vh - 53px); }
  .pg-side { max-height: 210px; border-right: 0; border-bottom: 1px solid var(--line); }
  .hbar { grid-template-columns: 100px 1fr 60px; }
}

/* ---------- Math CAPTCHA Widget ---------- */
.v-captcha-field {
  margin-top: 14px;
}
.v-captcha-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.v-captcha-head label {
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 0;
}
.v-captcha-timer-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: 999px;
}
.v-captcha-timer-pill strong {
  color: #60a5fa;
  font-family: var(--mono, monospace);
}
.v-captcha-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 10px 10px 0 0;
  padding: 10px 14px;
}
.v-captcha-math {
  font-family: var(--mono, monospace);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #ffffff;
}
.v-captcha-refresh-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #94a3b8;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}
.v-captcha-refresh-btn:hover {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.4);
}
.v-captcha-refresh-btn svg.spinning {
  animation: spinOnce 0.4s linear;
}
@keyframes spinOnce {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.v-captcha-track {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 0 0 2px 2px;
  overflow: hidden;
  margin-bottom: 2px;
}
.v-captcha-progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  transition: width 1s linear;
}
