:root {
  color-scheme: dark;
  --bg: #07090f;
  --bg-soft: #0b1019;
  --panel: rgba(16, 23, 36, 0.78);
  --panel-solid: #101724;
  --panel-2: rgba(23, 32, 49, 0.72);
  --line: rgba(255, 255, 255, 0.085);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f4f7fc;
  --muted: #8e9ab0;
  --muted-2: #647088;
  --mint: #6ee7b7;
  --mint-strong: #34d399;
  --blue: #60a5fa;
  --violet: #a78bfa;
  --amber: #fbbf24;
  --rose: #fb7185;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --radius-sm: 12px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(900px 540px at 8% -12%, rgba(96, 165, 250, 0.16), transparent 62%),
    radial-gradient(760px 500px at 96% 2%, rgba(110, 231, 183, 0.11), transparent 60%),
    radial-gradient(600px 500px at 50% 100%, rgba(167, 139, 250, 0.06), transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
  z-index: 0;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
::selection { background: rgba(110, 231, 183, 0.25); color: white; }

.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; position: relative; z-index: 1; }
.site-header {
  position: sticky; top: 0; z-index: 30;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(7, 9, 15, 0.72);
  backdrop-filter: blur(18px) saturate(130%);
}
.header-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 210px; }
.brand-mark {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(110,231,183,0.22), rgba(96,165,250,0.18));
  border: 1px solid rgba(110,231,183,0.32);
  color: var(--mint);
  font-weight: 800; font-size: 13px; letter-spacing: 0.5px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 8px 24px rgba(52,211,153,0.12);
}
.brand strong { display: block; font-size: 15px; letter-spacing: 0.2px; line-height: 1.3; }
.brand small { display: block; color: var(--muted-2); font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; line-height: 1.3; }
.site-nav { display: flex; align-items: center; gap: 28px; color: var(--muted); font-size: 14px; }
.site-nav a { transition: color .2s ease; }
.site-nav a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 11px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,0.035);
  color: var(--muted); font-size: 12px; white-space: nowrap;
}
.status-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(251,191,36,0.1); }
.status-pill.ok { color: #b9f6db; border-color: rgba(110,231,183,0.22); background: rgba(110,231,183,0.07); }
.status-pill.ok i { background: var(--mint); box-shadow: 0 0 0 4px rgba(110,231,183,0.12), 0 0 16px rgba(110,231,183,0.7); }
.status-pill.bad { color: #ffd1d8; border-color: rgba(251,113,133,0.25); background: rgba(251,113,133,0.08); }
.status-pill.bad i { background: var(--rose); box-shadow: 0 0 0 4px rgba(251,113,133,0.12); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 18px; border-radius: 11px;
  border: 1px solid transparent; font-weight: 600; font-size: 14px;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, #8cf5cd, #4ade80 58%, #38bdf8);
  color: #04110d; border-color: rgba(255,255,255,0.15);
  box-shadow: 0 12px 30px rgba(52,211,153,0.18);
}
.btn-primary:hover { box-shadow: 0 16px 36px rgba(52,211,153,0.25); }
.btn-ghost { color: var(--text); border-color: var(--line-strong); background: rgba(255,255,255,0.035); }
.btn-ghost:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.22); }
.btn-soft { color: var(--mint); border-color: rgba(110,231,183,0.2); background: rgba(110,231,183,0.07); }
.btn-soft:hover { background: rgba(110,231,183,0.12); }
.btn-danger { color: #ffd1d8; border-color: rgba(251,113,133,0.22); background: rgba(251,113,133,0.08); }
.btn-sm { min-height: 34px; padding: 0 12px; border-radius: 9px; font-size: 12px; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.hero { display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 56px; align-items: center; padding: 82px 0 42px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 12px;
  border: 1px solid rgba(110,231,183,0.18); border-radius: 999px;
  color: #baf7df; background: rgba(110,231,183,0.055);
  font-size: 11px; letter-spacing: 1.1px; text-transform: uppercase; font-weight: 700;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 12px var(--mint); }
.hero h1 { margin: 24px 0 18px; font-size: clamp(42px, 6vw, 72px); line-height: 1.04; letter-spacing: -2.8px; font-weight: 760; }
.hero h1 span {
  background: linear-gradient(100deg, #f8fbff 4%, #9ff5d4 45%, #72b8ff 88%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { margin: 0; max-width: 590px; color: var(--muted); font-size: 17px; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.endpoint-box {
  display: flex; align-items: center; gap: 14px; margin-top: 30px;
  padding: 12px 12px 12px 16px; border: 1px solid var(--line); border-radius: 13px;
  background: rgba(8, 13, 21, 0.72); box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  max-width: 620px;
}
.endpoint-box .label { color: var(--muted-2); font-size: 10px; letter-spacing: 1.2px; font-weight: 700; white-space: nowrap; }
.endpoint-box code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #c6f9e5; font-family: var(--mono); font-size: 13px; }
.copy-btn { border: 1px solid var(--line); background: rgba(255,255,255,0.045); color: var(--muted); padding: 7px 10px; border-radius: 8px; font-size: 12px; transition: .2s; }
.copy-btn:hover { color: var(--text); border-color: var(--line-strong); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; color: var(--muted-2); font-size: 12px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta b { color: #cbd5e1; font-weight: 600; }

.hero-card {
  position: relative; padding: 20px; border: 1px solid var(--line); border-radius: 20px;
  background: linear-gradient(155deg, rgba(22,32,49,0.88), rgba(9,14,23,0.86));
  box-shadow: var(--shadow); overflow: hidden;
}
.hero-card::after { content: ""; position: absolute; width: 220px; height: 220px; right: -100px; top: -120px; background: radial-gradient(circle, rgba(96,165,250,0.25), transparent 65%); pointer-events: none; }
.terminal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.terminal-dots { display: flex; gap: 6px; }
.terminal-dots i { width: 9px; height: 9px; border-radius: 50%; background: #2b3445; }
.terminal-dots i:nth-child(1) { background: #f87171; }
.terminal-dots i:nth-child(2) { background: #fbbf24; }
.terminal-dots i:nth-child(3) { background: #34d399; }
.terminal-title { color: var(--muted-2); font-family: var(--mono); font-size: 11px; }
.code-block {
  margin: 0; padding: 16px; border-radius: 13px; background: rgba(4, 8, 13, 0.8);
  border: 1px solid rgba(255,255,255,0.06); overflow: auto;
  color: #c7d2e5; font-family: var(--mono); font-size: 12.5px; line-height: 1.75;
}
.code-block .c-key { color: #fca5a5; }
.code-block .c-str { color: #a7f3d0; }
.code-block .c-cmd { color: #93c5fd; }
.code-block .c-muted { color: #64748b; }
.hero-card .code-block { max-height: 310px; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.mini-stat { padding: 12px; border-radius: 11px; border: 1px solid rgba(255,255,255,0.06); background: rgba(255,255,255,0.025); }
.mini-stat span { display: block; color: var(--muted-2); font-size: 10px; letter-spacing: .6px; text-transform: uppercase; }
.mini-stat strong { display: block; margin-top: 3px; font-size: 16px; font-weight: 650; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 18px auto 0; }
.stat-card { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); backdrop-filter: blur(12px); }
.stat-card .stat-label { color: var(--muted-2); font-size: 11px; letter-spacing: .8px; text-transform: uppercase; }
.stat-card .stat-value { margin-top: 5px; font-size: 25px; font-weight: 700; letter-spacing: -0.6px; }
.stat-card .stat-sub { color: var(--muted-2); font-size: 11px; margin-top: 2px; }
.stat-value .unit { color: var(--muted); font-size: 12px; font-weight: 500; margin-left: 3px; }

.section { padding: 76px 0 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 24px; }
.section-kicker { color: var(--mint); font-size: 10px; font-weight: 800; letter-spacing: 1.8px; text-transform: uppercase; }
.section h2 { margin: 7px 0 6px; font-size: clamp(28px, 3vw, 38px); letter-spacing: -1.1px; line-height: 1.15; }
.section-head p { margin: 0; color: var(--muted); font-size: 14px; }
.model-tools { display: flex; gap: 10px; align-items: center; }
.search-box { position: relative; }
.search-box input {
  width: 220px; height: 40px; padding: 0 13px 0 35px; border-radius: 10px;
  border: 1px solid var(--line); background: rgba(255,255,255,0.035); color: var(--text); outline: none;
  transition: border-color .2s, background .2s;
}
.search-box input:focus { border-color: rgba(110,231,183,0.35); background: rgba(255,255,255,0.055); }
.search-box::before { content: "⌕"; position: absolute; left: 12px; top: 5px; color: var(--muted-2); font-size: 17px; }
.model-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.model-card {
  position: relative; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: linear-gradient(155deg, rgba(21,30,46,0.72), rgba(12,18,28,0.72));
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
  overflow: hidden;
}
.model-card:hover { transform: translateY(-3px); border-color: rgba(110,231,183,0.22); background: linear-gradient(155deg, rgba(26,38,57,0.8), rgba(13,20,31,0.8)); }
.model-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(110,231,183,0.07), transparent 40%); opacity: 0; transition: opacity .2s; pointer-events: none; }
.model-card:hover::before { opacity: 1; }
.model-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.model-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: rgba(96,165,250,0.09); border: 1px solid rgba(96,165,250,0.16); color: #93c5fd; font-size: 14px; font-weight: 700; }
.model-name { font-family: var(--mono); font-size: 13.5px; font-weight: 600; color: #e5edf9; overflow-wrap: anywhere; }
.model-sub { margin-top: 2px; color: var(--muted-2); font-size: 11px; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border-radius: 999px; font-size: 10px; font-weight: 600; white-space: nowrap; }
.badge-mint { color: #b9f6db; background: rgba(110,231,183,0.09); border: 1px solid rgba(110,231,183,0.15); }
.badge-blue { color: #bfdbfe; background: rgba(96,165,250,0.09); border: 1px solid rgba(96,165,250,0.15); }
.model-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; padding-top: 13px; border-top: 1px solid rgba(255,255,255,0.055); }
.model-foot span { color: var(--muted-2); font-size: 11px; }
.model-foot code { color: #9fb0c8; font-family: var(--mono); font-size: 10px; }
.skeleton { height: 132px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: linear-gradient(100deg, rgba(255,255,255,0.03), rgba(255,255,255,0.07), rgba(255,255,255,0.03)); background-size: 200% 100%; animation: shimmer 1.5s infinite; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); backdrop-filter: blur(14px); box-shadow: 0 18px 50px rgba(0,0,0,0.18); }
.playground-grid { display: grid; grid-template-columns: 0.88fr 1.12fr; gap: 16px; }
.config-panel { padding: 20px; }
.field { display: block; margin-bottom: 15px; }
.field > span { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; }
.field small { color: var(--muted-2); font-size: 10px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.input-row { display: flex; gap: 8px; }
.input, .select, .textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,0.035);
  color: var(--text); outline: none; transition: border-color .2s, background .2s;
}
.input, .select { height: 42px; padding: 0 12px; }
.textarea { padding: 11px 12px; resize: vertical; min-height: 88px; line-height: 1.7; }
.input:focus, .select:focus, .textarea:focus { border-color: rgba(110,231,183,0.35); background: rgba(255,255,255,0.055); }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 16px) 18px, calc(100% - 11px) 18px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 30px; }
.input-row .input { flex: 1; }
.playground-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.pg-status { color: var(--muted-2); font-size: 12px; }
.output-panel { padding: 20px; display: flex; flex-direction: column; min-height: 390px; }
.output-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 13px; border-bottom: 1px solid rgba(255,255,255,0.06); color: var(--muted); font-size: 11px; letter-spacing: .8px; text-transform: uppercase; font-weight: 700; }
.output-head .meta { color: var(--muted-2); font-family: var(--mono); font-size: 10px; letter-spacing: 0; text-transform: none; }
.output { flex: 1; padding: 18px 2px 4px; white-space: pre-wrap; overflow-wrap: anywhere; color: #dbe7f6; font-size: 14px; line-height: 1.85; }
.output.placeholder { color: var(--muted-2); font-size: 13px; }
.reasoning-box { margin-top: 12px; border-top: 1px solid rgba(255,255,255,0.06); padding-top: 10px; color: var(--muted); }
.reasoning-box summary { cursor: pointer; font-size: 11px; color: var(--muted-2); }
.reasoning-box pre { margin: 8px 0 0; white-space: pre-wrap; font-family: var(--mono); font-size: 11px; line-height: 1.7; color: #8b9bb2; max-height: 150px; overflow: auto; }

.docs-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 16px; }
.code-panel { padding: 20px; }
.tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.tab { padding: 7px 12px; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--muted); font-size: 12px; }
.tab.active { color: var(--mint); background: rgba(110,231,183,0.07); border-color: rgba(110,231,183,0.16); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }
.docs-panel { padding: 20px; }
.endpoint-row { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.endpoint-row:last-child { border-bottom: 0; }
.method { width: 48px; text-align: center; padding: 4px 0; border-radius: 6px; font-family: var(--mono); font-size: 9px; font-weight: 700; }
.method.get { color: #b9f6db; background: rgba(110,231,183,0.09); }
.method.post { color: #bfdbfe; background: rgba(96,165,250,0.09); }
.endpoint-row code { color: #d8e5f5; font-family: var(--mono); font-size: 12px; }
.endpoint-row span { margin-left: auto; color: var(--muted-2); font-size: 11px; }
.note { margin-top: 15px; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(251,191,36,0.16); background: rgba(251,191,36,0.055); color: #e7cf9b; font-size: 12px; line-height: 1.7; }
.note strong { color: #fde68a; }

.site-footer { margin-top: 84px; border-top: 1px solid rgba(255,255,255,0.06); padding: 26px 0 38px; color: var(--muted-2); font-size: 12px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 20px; }
.footer-links a:hover { color: var(--text); }

.toast { position: fixed; right: 22px; bottom: 22px; z-index: 80; padding: 11px 15px; border-radius: 10px; border: 1px solid rgba(110,231,183,0.24); background: rgba(12, 28, 24, 0.95); color: #c8f9e4; box-shadow: var(--shadow); font-size: 13px; opacity: 0; transform: translateY(8px); pointer-events: none; transition: .2s; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { border-color: rgba(251,113,133,0.28); background: rgba(35, 12, 18, 0.96); color: #ffd1d8; }

/* Admin */
.admin-page { padding-bottom: 60px; }
.admin-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 32px 0 24px; }
.admin-top h1 { margin: 0; font-size: 30px; letter-spacing: -1px; }
.admin-top p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.admin-login { max-width: 470px; margin: 60px auto 0; padding: 28px; }
.admin-login h2 { margin: 0 0 6px; font-size: 22px; }
.admin-login p { margin: 0 0 20px; color: var(--muted); font-size: 13px; }
.admin-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.admin-grid .stat-card { padding: 15px 16px; }
.admin-grid .stat-value { font-size: 21px; }
.admin-columns { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 16px; align-items: start; }
.admin-panel { padding: 18px; }
.admin-panel h3 { margin: 0 0 12px; font-size: 15px; }
.admin-panel h3 span { color: var(--muted-2); font-size: 11px; font-weight: 500; margin-left: 7px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { text-align: left; padding: 9px 8px; color: var(--muted-2); font-size: 10px; letter-spacing: .6px; text-transform: uppercase; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,0.07); white-space: nowrap; }
td { padding: 10px 8px; border-bottom: 1px solid rgba(255,255,255,0.045); color: #c8d5e6; vertical-align: middle; }
td code { font-family: var(--mono); font-size: 10.5px; color: #a9bdd6; }
.table-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.empty { padding: 22px; text-align: center; color: var(--muted-2); font-size: 12px; }
.create-row { display: flex; gap: 8px; margin-bottom: 14px; }
.create-row .input { flex: 1; }
.key-reveal { margin-top: 12px; padding: 12px; border-radius: 10px; background: rgba(110,231,183,0.06); border: 1px solid rgba(110,231,183,0.16); display: none; }
.key-reveal.show { display: block; }
.key-reveal code { display: block; margin-top: 6px; font-family: var(--mono); font-size: 11px; color: #b9f6db; overflow-wrap: anywhere; }
.recent-list { display: flex; flex-direction: column; gap: 0; }
.recent-item { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.045); }
.recent-item:last-child { border-bottom: 0; }
.recent-item .r-top { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.recent-item .r-path { color: #cbd8e8; font-family: var(--mono); font-size: 10.5px; }
.recent-item .r-meta { color: var(--muted-2); font-size: 10px; margin-top: 3px; }
.recent-item .r-right { text-align: right; color: var(--muted-2); font-size: 10px; white-space: nowrap; }
.ok-text { color: var(--mint); }
.err-text { color: var(--rose); }
.muted-text { color: var(--muted-2); }

.modal-backdrop { position: fixed; inset: 0; z-index: 90; display: none; place-items: center; padding: 20px; background: rgba(2,5,9,0.72); backdrop-filter: blur(8px); }
.modal-backdrop.show { display: grid; }
.modal { width: min(560px, 100%); padding: 22px; border-radius: 16px; border: 1px solid var(--line-strong); background: #0e1623; box-shadow: var(--shadow); }
.modal h3 { margin: 0 0 6px; font-size: 18px; }
.modal p { margin: 0 0 14px; color: var(--muted); font-size: 12px; }
.modal .key-box { padding: 12px; border-radius: 10px; border: 1px solid rgba(110,231,183,0.18); background: rgba(110,231,183,0.06); color: #b9f6db; font-family: var(--mono); font-size: 12px; overflow-wrap: anywhere; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 34px; padding-top: 58px; }
  .hero-card { max-width: 680px; }
  .stats-grid, .admin-grid { grid-template-columns: repeat(2, 1fr); }
  .model-grid { grid-template-columns: repeat(2, 1fr); }
  .playground-grid, .docs-grid, .admin-columns { grid-template-columns: 1fr; }
  .site-nav { display: none; }
}
@media (max-width: 620px) {
  .container { width: min(100% - 24px, 1160px); }
  .header-inner { min-height: 64px; }
  .header-actions .btn { display: none; }
  .brand { min-width: 0; }
  .hero { padding-top: 44px; }
  .hero h1 { font-size: 42px; letter-spacing: -2px; }
  .lead { font-size: 15px; }
  .stats-grid, .admin-grid, .model-grid { grid-template-columns: 1fr; }
  .section { padding-top: 56px; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .model-tools { width: 100%; }
  .search-box, .search-box input { width: 100%; }
  .endpoint-box { align-items: flex-start; flex-wrap: wrap; }
  .endpoint-box code { flex-basis: 100%; order: 3; }
  .mini-stats { grid-template-columns: 1fr; }
  .admin-top { align-items: flex-start; flex-direction: column; }
}

/* Endpoint cards */
.endpoint-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.endpoint-card { padding: 17px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); transition: border-color .2s, transform .2s; }
.endpoint-card:hover { border-color: rgba(96,165,250,0.25); transform: translateY(-2px); }
.endpoint-top { display: flex; align-items: center; gap: 9px; }
.endpoint-top code { color: #dbe7f7; font-family: var(--mono); font-size: 12px; }
.endpoint-card p { margin: 10px 0 0; color: var(--muted-2); font-size: 12px; line-height: 1.7; }

/* Pricing */
.pricing-layout { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 16px; align-items: start; }
.pricing-panel { padding: 6px 18px 14px; }
.pricing-table th { padding-top: 14px; }
.pricing-table td { font-size: 12.5px; }
.pricing-table td:first-child { min-width: 190px; }
.model-id-cell strong { display: block; color: #e6effb; font-weight: 600; }
.model-id-cell code { display: block; margin-top: 2px; color: var(--muted-2); font-family: var(--mono); font-size: 10px; }
.price-cell { color: #c7f9e5; font-family: var(--mono); font-size: 11.5px; white-space: nowrap; }
.price-cell.muted { color: var(--muted-2); }
.provider-chip { display: inline-flex; align-items: center; padding: 3px 7px; border-radius: 999px; color: #bfdbfe; background: rgba(96,165,250,0.08); border: 1px solid rgba(96,165,250,0.13); font-size: 10px; white-space: nowrap; }
.calculator { padding: 20px; position: sticky; top: 92px; }
.calculator-head h3 { margin: 5px 0 4px; font-size: 20px; }
.calculator-head p { margin: 0 0 17px; color: var(--muted-2); font-size: 12px; }
.calc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.calc-result { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; padding: 14px; border-radius: 11px; border: 1px solid rgba(110,231,183,0.16); background: rgba(110,231,183,0.06); }
.calc-result span { color: var(--muted); font-size: 12px; }
.calc-result strong { color: var(--mint); font-family: var(--mono); font-size: 18px; }
.calc-note { margin: 12px 0 0; color: var(--muted-2); font-size: 10.5px; line-height: 1.7; }
.model-price-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.price-chip { padding: 4px 7px; border-radius: 7px; background: rgba(255,255,255,0.035); border: 1px solid rgba(255,255,255,0.07); color: #c9f7e7; font-family: var(--mono); font-size: 10px; }
.price-chip.muted { color: var(--muted-2); }

/* Admin forms and tabs */
.admin-shell { display: flex; gap: 20px; align-items: flex-start; padding: 28px 0 60px; }
.admin-sidebar { width: 210px; flex: 0 0 210px; position: sticky; top: 92px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.admin-sidebar button { display: flex; width: 100%; align-items: center; gap: 9px; padding: 10px 11px; margin: 2px 0; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--muted); text-align: left; font-size: 13px; }
.admin-sidebar button:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.admin-sidebar button.active { color: #baf7df; background: rgba(110,231,183,0.08); border-color: rgba(110,231,183,0.15); }
.admin-sidebar .side-label { padding: 9px 10px 5px; color: var(--muted-2); font-size: 9px; letter-spacing: 1.2px; text-transform: uppercase; }
.admin-main { flex: 1; min-width: 0; }
.admin-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.admin-panel-head h2 { margin: 0; font-size: 21px; letter-spacing: -.5px; }
.admin-panel-head p { margin: 2px 0 0; color: var(--muted-2); font-size: 11px; }
.admin-tab-pane { display: none; }
.admin-tab-pane.active { display: block; }
.admin-card { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); margin-bottom: 16px; }
.admin-card h3 { margin: 0 0 4px; font-size: 15px; }
.admin-card .hint { color: var(--muted-2); font-size: 11px; margin: 0 0 14px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.form-grid .span-2 { grid-column: span 2; }
.form-grid .field { margin-bottom: 0; }
.form-grid .field > span { font-size: 10px; }
.form-grid .input, .form-grid .select { height: 38px; }
.form-grid .textarea { min-height: 70px; }
.form-actions { display: flex; align-items: center; gap: 9px; margin-top: 14px; }
.check-row { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.check-row input { accent-color: var(--mint); width: 15px; height: 15px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.admin-table th { padding: 9px 8px; color: var(--muted-2); font-size: 9.5px; letter-spacing: .6px; text-transform: uppercase; border-bottom: 1px solid rgba(255,255,255,0.07); text-align: left; white-space: nowrap; }
.admin-table td { padding: 10px 8px; border-bottom: 1px solid rgba(255,255,255,0.045); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table .name-cell strong { display: block; color: #e7effa; font-size: 12px; }
.admin-table .name-cell small { display: block; color: var(--muted-2); font-size: 10px; margin-top: 2px; }
.status-dot { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; white-space: nowrap; }
.status-dot i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted-2); }
.status-dot.online { color: #b9f6db; } .status-dot.online i { background: var(--mint); box-shadow: 0 0 8px rgba(110,231,183,.7); }
.status-dot.error { color: #ffd1d8; } .status-dot.error i { background: var(--rose); }
.status-dot.unconfigured, .status-dot.disabled { color: var(--muted-2); }
.status-dot.untested { color: #fde68a; } .status-dot.untested i { background: var(--amber); }
.inline-actions { display: flex; gap: 5px; flex-wrap: wrap; }
.inline-actions button { padding: 4px 8px; border-radius: 6px; border: 1px solid var(--line); background: rgba(255,255,255,0.035); color: var(--muted); font-size: 10px; }
.inline-actions button:hover { color: var(--text); border-color: var(--line-strong); }
.inline-actions button.danger:hover { color: #ffd1d8; border-color: rgba(251,113,133,0.3); }
.toggle { position: relative; display: inline-block; width: 34px; height: 19px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle span { position: absolute; inset: 0; border-radius: 999px; background: #293246; transition: .2s; }
.toggle span::before { content: ""; position: absolute; width: 13px; height: 13px; left: 3px; top: 3px; border-radius: 50%; background: #8b98ad; transition: .2s; }
.toggle input:checked + span { background: rgba(110,231,183,0.3); }
.toggle input:checked + span::before { transform: translateX(15px); background: var(--mint); }
.admin-note { padding: 11px 13px; border-radius: 9px; background: rgba(96,165,250,0.06); border: 1px solid rgba(96,165,250,0.13); color: #b9d7ff; font-size: 11px; line-height: 1.7; }
.admin-note.warn { background: rgba(251,191,36,0.055); border-color: rgba(251,191,36,0.15); color: #e7cf9b; }
.admin-note code { font-family: var(--mono); font-size: 10px; }
.log-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.log-filters .input, .log-filters .select { height: 36px; width: auto; min-width: 140px; }
.log-filters .input { flex: 1; min-width: 160px; }
.empty-state { padding: 34px 18px; text-align: center; color: var(--muted-2); font-size: 12px; }
.modal .form-grid { margin-top: 12px; }
.modal .form-grid .field { margin-bottom: 0; }

@media (max-width: 1080px) {
  .endpoint-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-layout { grid-template-columns: 1fr; }
  .calculator { position: static; }
  .admin-shell { flex-direction: column; }
  .admin-sidebar { width: 100%; flex: none; position: static; display: flex; flex-wrap: wrap; gap: 4px; }
  .admin-sidebar .side-label { display: none; }
  .admin-sidebar button { width: auto; flex: 1 1 auto; justify-content: center; }
  .admin-main { width: 100%; }
}
@media (max-width: 620px) {
  .endpoint-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .calc-row { grid-template-columns: 1fr; }
  .pricing-panel { padding-left: 10px; padding-right: 10px; }
}

[hidden] { display: none !important; }
.admin-table code { overflow-wrap: anywhere; }

/* Pull models modal */
.pull-list { margin-top: 12px; max-height: 360px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; background: rgba(4,8,13,.35); }
.pull-row { display: grid; grid-template-columns: 20px 180px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,.05); }
.pull-row:last-child { border-bottom: 0; }
.pull-check { accent-color: var(--mint); width: 15px; height: 15px; }
.pull-id { height: 32px !important; font-family: var(--mono); font-size: 11px; }
.pull-meta strong { display: block; color: #dce8f7; font-size: 12px; }
.pull-meta small { display: block; color: var(--muted-2); font-size: 10px; margin-top: 2px; }
.pull-state { color: var(--muted-2); font-size: 10px; white-space: nowrap; }
.pull-row:has(.pull-check:checked) .pull-state { color: var(--mint); }
.pull-row:has(.pull-check:disabled) { opacity: .45; }
@media (max-width: 700px) {
  .pull-row { grid-template-columns: 20px 1fr; }
  .pull-id { grid-column: 2; }
  .pull-meta { grid-column: 2; }
  .pull-state { grid-column: 2; }
}

/* Auth pages */
.auth-wrap { display: grid; grid-template-columns: minmax(0, 470px) minmax(0, 1fr); gap: 52px; align-items: center; padding: 64px 0 80px; }
.auth-card { padding: 30px; }
.auth-card h1 { margin: 7px 0 5px; font-size: 28px; letter-spacing: -1px; }
.auth-sub { margin: 0 0 20px; color: var(--muted); font-size: 13px; }
.auth-tabs { display: flex; gap: 5px; padding: 4px; margin-bottom: 20px; border-radius: 10px; background: rgba(255,255,255,.035); border: 1px solid var(--line); }
.auth-tab { flex: 1; padding: 9px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--muted); font-size: 13px; }
.auth-tab.active { color: var(--mint); background: rgba(110,231,183,.08); border-color: rgba(110,231,183,.15); }
.auth-form { display: none; }
.auth-form.active { display: block; }
.auth-submit { width: 100%; margin-top: 4px; }
.auth-message { display: none; margin-top: 14px; padding: 10px 12px; border-radius: 9px; background: rgba(96,165,250,.07); border: 1px solid rgba(96,165,250,.14); color: #bfdbfe; font-size: 12px; }
.auth-message.show { display: block; }
.auth-message.error { background: rgba(251,113,133,.07); border-color: rgba(251,113,133,.2); color: #ffd1d8; }
.auth-note { margin-top: 18px; color: var(--muted-2); font-size: 11px; line-height: 1.7; }
.auth-aside h2 { margin: 9px 0 20px; font-size: clamp(28px, 3.2vw, 42px); letter-spacing: -1.4px; line-height: 1.12; }
.auth-features { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; }
.auth-features li { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.025); color: #cbd8e8; font-size: 13px; }
.auth-features li span { color: var(--mint); font-family: var(--mono); font-size: 10px; }

/* User dashboard */
.dashboard-page { padding-bottom: 70px; }
.dashboard-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 42px 0 22px; }
.dashboard-head h1 { margin: 7px 0 3px; font-size: 36px; letter-spacing: -1.4px; }
.dashboard-head p { margin: 0; color: var(--muted); font-size: 13px; }
.balance-box { min-width: 210px; padding: 16px 18px; border: 1px solid rgba(110,231,183,.17); border-radius: 13px; background: linear-gradient(150deg, rgba(110,231,183,.09), rgba(96,165,250,.05)); text-align: right; }
.balance-box span { display: block; color: var(--muted); font-size: 10px; letter-spacing: .8px; text-transform: uppercase; }
.balance-box strong { display: block; margin: 3px 0 1px; color: var(--mint); font-family: var(--mono); font-size: 27px; }
.balance-box small { color: var(--muted-2); font-size: 10px; }
.dashboard-stats { margin-bottom: 16px; }
.dashboard-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 16px; align-items: start; }
.dashboard-panel { padding: 18px; }
.dashboard-panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 13px; }
.dashboard-panel-head h2 { margin: 5px 0 0; font-size: 19px; letter-spacing: -.5px; }
.quick-info { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.05); color: var(--muted); font-size: 11px; }
.quick-info code { color: #c7f9e5; font-family: var(--mono); font-size: 10.5px; overflow-wrap: anywhere; text-align: right; }
.dashboard-code { margin: 13px 0; font-size: 10.5px; }
.profile-grid { margin-top: 4px; }
@media (max-width: 980px) {
  .auth-wrap { grid-template-columns: 1fr; gap: 30px; padding-top: 40px; }
  .auth-aside { order: -1; }
  .auth-aside h2 { font-size: 32px; }
  .dashboard-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .dashboard-head { align-items: flex-start; flex-direction: column; }
  .balance-box { width: 100%; text-align: left; }
  .header-actions #userPill { display: none; }
}

/* Bottom tab app layout */
body { padding-bottom: 92px; }
.app-main { min-height: calc(100vh - 74px); }
.tab-view { display: none; }
.tab-view.active { display: block; animation: tabFade .24s ease both; }
@keyframes tabFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.tab-view .section { padding-top: 34px; }
.tab-view .section:first-child { padding-top: 38px; }
.home-stats { margin-top: 2px; }
.home-quick { padding-top: 58px !important; }
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.quick-card { display: flex; flex-direction: column; align-items: flex-start; min-height: 190px; padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: linear-gradient(155deg, rgba(23,33,50,.72), rgba(11,17,27,.72)); transition: transform .2s, border-color .2s; }
.quick-card:hover { transform: translateY(-3px); border-color: rgba(110,231,183,.24); }
.quick-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; color: var(--mint); background: rgba(110,231,183,.08); border: 1px solid rgba(110,231,183,.16); font-family: var(--mono); font-size: 16px; }
.quick-card strong { margin-top: 16px; color: #e9f2fd; font-size: 16px; }
.quick-card p { margin: 6px 0 14px; color: var(--muted-2); font-size: 12px; line-height: 1.75; }
.quick-arrow { margin-top: auto; color: var(--mint); font-size: 11px; }
.account-section { max-width: 860px; margin: 0 auto; }
.account-card { display: flex; align-items: center; gap: 18px; padding: 22px; }
.account-avatar { flex: 0 0 56px; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; background: linear-gradient(145deg, rgba(110,231,183,.18), rgba(96,165,250,.16)); border: 1px solid rgba(110,231,183,.25); color: var(--mint); font-size: 22px; font-weight: 700; }
.account-copy { flex: 1; min-width: 0; }
.account-copy h3 { margin: 0 0 3px; font-size: 20px; }
.account-copy p { margin: 0; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.account-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.account-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; }
.account-tip { display: flex; gap: 12px; align-items: baseline; margin-top: 14px; padding: 14px 16px; color: var(--muted-2); font-size: 12px; }
.account-tip strong { color: #dce8f7; white-space: nowrap; }

.bottom-tabs {
  position: fixed; z-index: 60; left: 50%; bottom: max(16px, env(safe-area-inset-bottom));
  transform: translateX(-50%); display: flex; gap: 4px; width: min(520px, calc(100% - 28px));
  padding: 7px; border: 1px solid rgba(255,255,255,.12); border-radius: 19px;
  background: rgba(11,16,25,.88); backdrop-filter: blur(20px) saturate(140%);
  box-shadow: 0 18px 50px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.08);
}
.bottom-tab { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 7px 4px; border: 1px solid transparent; border-radius: 12px; background: transparent; color: var(--muted-2); font-size: 10px; line-height: 1.2; transition: color .2s, background .2s, border-color .2s; }
.bottom-tab svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.bottom-tab:hover { color: var(--text); background: rgba(255,255,255,.04); }
.bottom-tab.active { color: var(--mint); background: rgba(110,231,183,.08); border-color: rgba(110,231,183,.14); }
.bottom-tab.active svg { filter: drop-shadow(0 0 7px rgba(110,231,183,.35)); }

@media (max-width: 980px) {
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .account-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  body { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .app-main { min-height: calc(100vh - 64px); }
  .tab-view .section, .tab-view .section:first-child { padding-top: 26px; }
  .home-quick { padding-top: 42px !important; }
  .quick-grid { grid-template-columns: 1fr; }
  .quick-card { min-height: 0; }
  .account-card { align-items: flex-start; flex-wrap: wrap; padding: 18px; }
  .account-copy { flex-basis: calc(100% - 80px); }
  .account-actions { flex-basis: 100%; margin-top: 6px; }
  .account-actions .btn { flex: 1; }
  .account-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .account-tip { flex-direction: column; gap: 4px; }
  .bottom-tabs {
    left: 0; right: 0; bottom: 0; transform: none; width: 100%; max-width: none;
    border-radius: 20px 20px 0 0; padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    border-left: 0; border-right: 0; border-bottom: 0;
  }
  .bottom-tab { padding: 6px 2px; }
  .bottom-tab svg { width: 19px; height: 19px; }
  .site-footer { margin-top: 44px; padding-bottom: 26px; }
}

/* Responsive hardening */
body { overflow-x: hidden; }
.panel, .hero-card, .endpoint-card, .model-card, .quick-card, .account-card, .admin-card, .admin-main { min-width: 0; }
.pricing-table { min-width: 620px; }
.table-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.code-block, pre { max-width: 100%; }
.endpoint-row code { overflow-wrap: anywhere; }

/* Admin mobile bottom tabs */
.admin-bottom-tabs { display: none; }
@media (max-width: 980px) {
  body.admin-page-body { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  .admin-bottom-tabs {
    display: flex; position: fixed; z-index: 70; left: 0; right: 0; bottom: 0;
    padding: 7px 7px calc(7px + env(safe-area-inset-bottom));
    background: rgba(11,16,25,.94); backdrop-filter: blur(20px) saturate(140%);
    border-top: 1px solid rgba(255,255,255,.1); box-shadow: 0 -12px 36px rgba(0,0,0,.35);
  }
  .admin-bottom-tab {
    flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 5px 1px; border: 1px solid transparent; border-radius: 9px;
    background: transparent; color: var(--muted-2); font-size: 9.5px; line-height: 1.2;
  }
  .admin-bottom-tab span {
    display: grid; place-items: center; width: 25px; height: 25px; border-radius: 8px;
    background: rgba(255,255,255,.04); color: var(--muted); font-size: 10px; font-weight: 700;
  }
  .admin-bottom-tab.active { color: var(--mint); background: rgba(110,231,183,.055); border-color: rgba(110,231,183,.12); }
  .admin-bottom-tab.active span { color: var(--mint); background: rgba(110,231,183,.1); }
  .admin-sidebar { display: none !important; }
  .admin-shell { flex-direction: column; padding-top: 8px; }
  .admin-main { width: 100%; }
  .admin-panel-head { align-items: flex-start; flex-wrap: wrap; }
  .admin-panel-head .inline-actions { width: 100%; }
  .admin-panel-head .inline-actions .btn { flex: 1; }
  .admin-card { padding: 14px; }
  .admin-table { min-width: 680px; }
  .log-filters .input, .log-filters .select { width: 100%; min-width: 0; }
  .modal { width: calc(100% - 20px); padding: 18px; }
}
@media (max-width: 700px) {
  .container { width: calc(100% - 24px); }
  .hero-card { padding: 14px; }
  .terminal-title { display: none; }
  .hero-actions .btn { flex: 1; }
  .endpoint-box { padding: 10px 12px; gap: 8px; }
  .endpoint-box .label { font-size: 9px; }
  .endpoint-box code { font-size: 11px; }
  .model-card { padding: 15px; }
  .section-head h2 { font-size: 28px; }
  .playground-actions .btn { flex: 1; }
  .docs-panel, .code-panel, .config-panel, .output-panel { padding: 15px; }
  .output-panel { min-height: 300px; }
  .pricing-panel { padding: 0 10px 12px; }
  .pricing-table { min-width: 580px; }
  .account-card { padding: 16px; }
  .account-avatar { width: 48px; height: 48px; flex-basis: 48px; }
  .site-footer { padding-bottom: 24px; }
  .admin-grid { grid-template-columns: 1fr; }
}

.auth-remember { margin: 0 0 14px; }

/* User dashboard tabs */
.dash-view { display: none; }
.dash-view.active { display: block; animation: tabFade .22s ease both; }
.dashboard-page-body { padding-bottom: 96px; }
.dashboard-page .admin-table { min-width: 680px; }
.dashboard-panel { min-width: 0; }
.dash-tip-list { display: grid; gap: 12px; margin-top: 4px; }
.dash-tip-list > div { display: flex; gap: 11px; align-items: flex-start; padding: 11px 12px; border: 1px solid rgba(255,255,255,.06); border-radius: 10px; background: rgba(255,255,255,.025); }
.dash-tip-list span { color: var(--mint); font-family: var(--mono); font-size: 10px; padding-top: 2px; }
.dash-tip-list p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.75; }
.dash-tip-list code { color: #c7f9e5; font-family: var(--mono); font-size: 10.5px; overflow-wrap: anywhere; }
.dashboard-bottom-tabs { width: min(440px, calc(100% - 28px)); }
@media (max-width: 700px) {
  .dashboard-page-body { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .dashboard-panel { padding: 14px; }
  .dashboard-bottom-tabs { width: 100%; }
  .dashboard-head { padding-top: 26px; }
  .dashboard-stats { margin-bottom: 12px; }
}

/* ==========================================================================
   Call groups / scoped API keys + responsive hardening
   ========================================================================== */

/* Viewport containment: cards and grid children must be allowed to shrink. */
.hero,
.stats-grid,
.endpoint-grid,
.model-grid,
.quick-grid,
.account-stats-grid,
.admin-grid,
.admin-columns,
.dashboard-grid,
.playground-grid,
.docs-grid,
.pricing-layout,
.form-grid,
.group-grid,
.model-check-grid {
  min-width: 0;
  max-width: 100%;
}
.hero > *,
.stats-grid > *,
.endpoint-grid > *,
.model-grid > *,
.quick-grid > *,
.account-stats-grid > *,
.admin-grid > *,
.admin-columns > *,
.dashboard-grid > *,
.playground-grid > *,
.docs-grid > *,
.pricing-layout > *,
.form-grid > *,
.group-grid > *,
.model-check-grid > * {
  min-width: 0;
  max-width: 100%;
}
.hero-card,
.stat-card,
.pricing-panel,
.calculator,
.endpoint-card,
.model-card,
.quick-card,
.account-card,
.auth-card,
.admin-card,
.admin-panel,
.dashboard-panel,
.group-card,
.modal {
  min-width: 0;
  max-width: 100%;
}
.hero-card,
.pricing-panel,
.endpoint-card,
.model-card,
.quick-card,
.account-card,
.admin-card,
.admin-panel,
.dashboard-panel,
.group-card {
  width: 100%;
}
.hero-card code,
.endpoint-card code,
.model-card code,
.account-card code,
.admin-card code,
.admin-panel code,
.dashboard-panel code,
.group-card code,
.pricing-panel code {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Group management cards */
.group-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}
.group-card {
  display: flex;
  flex-direction: column;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(155deg, rgba(21, 30, 46, 0.72), rgba(12, 18, 28, 0.72));
  overflow: hidden;
}
.group-card > * {
  min-width: 0;
  max-width: 100%;
}
.group-card h3,
.group-card h4,
.group-card p,
.group-card strong,
.group-card small {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.group-card .inline-actions {
  margin-top: auto;
  padding-top: 12px;
}
.group-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 10px;
  min-width: 0;
  max-width: 100%;
  margin-top: 8px;
  color: var(--muted-2);
  font-size: 11px;
  line-height: 1.55;
}
.group-meta > * {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Multi-select model grid */
.model-check-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
  max-height: 280px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(4, 8, 13, 0.35);
  overscroll-behavior: contain;
}
.model-check {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  min-width: 0;
  max-width: 100%;
  padding: 8px 9px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.5;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.model-check:hover {
  color: var(--text);
  border-color: rgba(110, 231, 183, 0.2);
  background: rgba(110, 231, 183, 0.055);
}
.model-check input {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin: 1px 0 0;
  accent-color: var(--mint);
}
.model-check > span,
.model-check > code,
.model-check > strong,
.model-check > div,
.model-check > small {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.model-check code {
  color: #cbd8e8;
  font-family: var(--mono);
  font-size: 10px;
}

/* Compact status chips */
.scope-chip,
.quota-chip,
.expiry-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  padding: 2px 7px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  vertical-align: middle;
}
.scope-chip {
  color: #bfdbfe;
  background: rgba(96, 165, 250, 0.09);
  border-color: rgba(96, 165, 250, 0.16);
}
.quota-chip {
  color: #fde68a;
  background: rgba(251, 191, 36, 0.075);
  border-color: rgba(251, 191, 36, 0.17);
}
.expiry-chip {
  color: #ddd6fe;
  background: rgba(167, 139, 250, 0.08);
  border-color: rgba(167, 139, 250, 0.17);
}
/* Doubled selectors also override page-level inline chip rules without !important. */
.scope-chip.scope-chip,
.quota-chip.quota-chip,
.expiry-chip.expiry-chip {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.scope-chip.muted,
.quota-chip.muted,
.expiry-chip.muted {
  color: var(--muted-2);
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.075);
}
.scope-chip.bad,
.quota-chip.bad,
.expiry-chip.bad {
  color: #ffd1d8;
  background: rgba(251, 113, 133, 0.075);
  border-color: rgba(251, 113, 133, 0.2);
}

/* Key scope summary inside tables */
.key-scope-cell {
  min-width: 170px;
  max-width: 280px;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.55;
  vertical-align: top;
}
.key-scope-cell > * {
  min-width: 0;
  max-width: 100%;
}
.key-scope-cell .scope-chip,
.key-scope-cell .quota-chip,
.key-scope-cell .expiry-chip {
  margin: 1px 2px 1px 0;
}
.key-scope-cell code,
.key-scope-cell small {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.dashboard-key-table .key-scope-cell {
  min-width: 180px;
  max-width: 280px;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Wide modal for group/key editing */
.modal.modal-wide {
  width: min(720px, 100%);
  max-width: 720px;
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.modal-wide .form-grid,
.dashboard-key-modal .form-grid {
  grid-template-columns: minmax(0, 1fr);
}
.modal-wide .form-grid .span-2,
.dashboard-key-modal .form-grid .span-2 {
  grid-column: auto;
}
.modal-wide .form-grid .field,
.dashboard-key-modal .form-grid .field {
  min-width: 0;
}
.modal-wide .input,
.modal-wide .select,
.modal-wide .textarea,
.dashboard-key-modal .input,
.dashboard-key-modal .select,
.dashboard-key-modal .textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.modal-wide .modal-actions,
.dashboard-key-modal .modal-actions {
  flex-wrap: wrap;
}
.key-group-select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.form-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  grid-column: 1 / -1;
  min-width: 0;
  margin: 18px 0 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: #dbe7f7;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  line-height: 1.45;
  text-transform: uppercase;
}
.form-section-title::before {
  content: "";
  flex: 0 0 auto;
  width: 3px;
  height: 12px;
  border-radius: 999px;
  background: var(--mint);
}
.form-section-title:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.form-section-title small {
  min-width: 0;
  color: var(--muted-2);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  overflow-wrap: anywhere;
}

/* User-center API key modal */
.dashboard-key-modal {
  min-width: 0;
  max-width: 100%;
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.dashboard-key-modal .model-check-grid {
  max-height: 220px;
}

/* Tablet */
@media (max-width: 1080px) {
  .group-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .model-check-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Mobile */
@media (max-width: 700px) {
  .hero,
  .stats-grid,
  .endpoint-grid,
  .model-grid,
  .quick-grid,
  .account-stats-grid,
  .admin-grid,
  .admin-columns,
  .dashboard-grid,
  .playground-grid,
  .docs-grid,
  .pricing-layout,
  .form-grid,
  .group-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-card,
  .pricing-panel,
  .calculator,
  .endpoint-card,
  .model-card,
  .quick-card,
  .account-card,
  .auth-card,
  .admin-card,
  .admin-panel,
  .dashboard-panel,
  .group-card {
    width: 100%;
    max-width: 100%;
  }
  .group-grid {
    gap: 10px;
  }
  .group-card {
    padding: 14px;
  }
  .group-meta {
    gap: 5px 8px;
  }
  .model-check-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 240px;
    padding: 7px;
  }
  .key-scope-cell,
  .dashboard-key-table .key-scope-cell {
    min-width: 180px;
    max-width: 260px;
    white-space: normal;
  }
  .modal.modal-wide,
  .dashboard-key-modal {
    width: calc(100% - 20px);
    max-width: calc(100% - 20px);
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    padding: 16px;
  }
  .modal-wide .modal-actions,
  .dashboard-key-modal .modal-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .modal-wide .modal-actions .btn,
  .dashboard-key-modal .modal-actions .btn {
    width: 100%;
    flex: 1 1 100%;
  }
  .section-head,
  .admin-panel-head,
  .dashboard-panel-head,
  .admin-top {
    min-width: 0;
    max-width: 100%;
    flex-wrap: wrap;
  }
  .inline-actions {
    min-width: 0;
    max-width: 100%;
  }
}

@media (max-width: 420px) {
  .model-check-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================================
   Channel-bound groups (current UI)
   Groups now bind one channel; model multi-select is legacy/optional.
   ========================================================================== */

/* Group listing cards */
.group-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}
.group-grid > .group-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: linear-gradient(155deg, rgba(23, 33, 50, 0.78), rgba(11, 17, 27, 0.78));
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.group-grid > .group-card:hover {
  border-color: rgba(110, 231, 183, 0.24);
  background: linear-gradient(155deg, rgba(27, 40, 60, 0.86), rgba(12, 19, 30, 0.86));
  transform: translateY(-2px);
}
.group-card-head,
.group-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}
.group-card-title,
.group-card-head h3,
.group-card-head h4,
.group-card-top h3,
.group-card-top h4 {
  min-width: 0;
  margin: 0;
  color: #e8f1fc;
  font-size: 14px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.group-card-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 4px;
}
.group-card > .group-meta {
  margin-top: 9px;
}
.group-meta > span {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 2px 6px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted-2);
  font-size: 9.5px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.group-card-foot,
.group-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  color: var(--muted-2);
  font-size: 10px;
}
.group-card-foot .inline-actions,
.group-card-footer .inline-actions {
  margin-left: auto;
}

/* Channel picker cards inside the group modal */
.channel-select-grid,
.provider-select-grid,
.channel-choice-grid,
.provider-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
  max-height: 280px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 2px;
  overscroll-behavior: contain;
}
.channel-select-card,
.provider-select-card,
.channel-choice-card,
.provider-choice-card,
.channel-option-card,
.provider-option-card {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-width: 0;
  max-width: 100%;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.channel-select-card:hover,
.provider-select-card:hover,
.channel-choice-card:hover,
.provider-choice-card:hover,
.channel-option-card:hover,
.provider-option-card:hover {
  border-color: rgba(110, 231, 183, 0.24);
  background: rgba(110, 231, 183, 0.055);
}
.channel-select-card:has(input:checked),
.provider-select-card:has(input:checked),
.channel-choice-card:has(input:checked),
.provider-choice-card:has(input:checked),
.channel-option-card:has(input:checked),
.provider-option-card:has(input:checked),
.channel-select-card.is-selected,
.provider-select-card.is-selected,
.channel-choice-card.is-selected,
.provider-choice-card.is-selected,
.channel-option-card.is-selected,
.provider-option-card.is-selected {
  border-color: rgba(110, 231, 183, 0.42);
  background: rgba(110, 231, 183, 0.08);
  box-shadow: inset 3px 0 0 var(--mint), 0 8px 24px rgba(52, 211, 153, 0.08);
}
.channel-select-card:has(input:disabled),
.provider-select-card:has(input:disabled),
.channel-choice-card:has(input:disabled),
.provider-choice-card:has(input:disabled),
.channel-option-card:has(input:disabled),
.provider-option-card:has(input:disabled),
.channel-select-card.is-disabled,
.provider-select-card.is-disabled,
.channel-choice-card.is-disabled,
.provider-choice-card.is-disabled,
.channel-option-card.is-disabled,
.provider-option-card.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.channel-select-card > input,
.provider-select-card > input,
.channel-choice-card > input,
.provider-choice-card > input,
.channel-option-card > input,
.provider-option-card > input {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin: 1px 0 0;
  accent-color: var(--mint);
}
.channel-select-card > span,
.channel-select-card > div,
.provider-select-card > span,
.provider-select-card > div,
.channel-choice-card > span,
.channel-choice-card > div,
.provider-choice-card > span,
.provider-choice-card > div,
.channel-option-card > span,
.channel-option-card > div,
.provider-option-card > span,
.provider-option-card > div {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.channel-select-card strong,
.provider-select-card strong,
.channel-choice-card strong,
.provider-choice-card strong,
.channel-option-card strong,
.provider-option-card strong {
  display: block;
  color: #e5edf9;
  font-size: 11.5px;
  line-height: 1.4;
}
.channel-select-card small,
.provider-select-card small,
.channel-choice-card small,
.provider-choice-card small,
.channel-option-card small,
.provider-option-card small {
  display: block;
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 9.5px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Default quota / validity blocks on a group */
.group-defaults,
.group-default-grid,
.group-card-facts,
.group-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
  margin-top: 12px;
}
.group-default-item,
.group-default,
.group-card-fact,
.group-fact {
  min-width: 0;
  max-width: 100%;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
}
.group-default-label,
.group-card-fact > span:first-child,
.group-fact > span:first-child {
  display: block;
  margin-bottom: 4px;
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.55px;
  line-height: 1.4;
  text-transform: uppercase;
}
.group-default-value,
.group-card-fact > strong,
.group-fact > strong {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
  color: #dbe7f7;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.group-default-value .quota-chip,
.group-default-value .expiry-chip,
.group-card-fact .quota-chip,
.group-card-fact .expiry-chip,
.group-fact .quota-chip,
.group-fact .expiry-chip {
  margin: 0;
}

/* Keep the default quota/validity fields card-like even when plain form labels are used. */
.field:has(#gfQuota),
.field:has(#gfValidityDays) {
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
}
.field:has(#gfQuota) > span,
.field:has(#gfValidityDays) > span {
  margin-bottom: 6px;
}

/* Key group / quota / expiry tag aliases */
.key-group-tag,
.key-quota-tag,
.key-expiry-tag {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  vertical-align: middle;
}
.key-group-tag {
  color: #bfdbfe;
  background: rgba(96, 165, 250, 0.09);
  border: 1px solid rgba(96, 165, 250, 0.16);
}
.key-quota-tag {
  color: #fde68a;
  background: rgba(251, 191, 36, 0.075);
  border: 1px solid rgba(251, 191, 36, 0.17);
}
.key-expiry-tag {
  color: #ddd6fe;
  background: rgba(167, 139, 250, 0.08);
  border: 1px solid rgba(167, 139, 250, 0.17);
}

/* Tablet */
@media (max-width: 1080px) {
  .group-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .channel-select-grid,
  .provider-select-grid,
  .channel-choice-grid,
  .provider-choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Mobile */
@media (max-width: 700px) {
  .group-grid { grid-template-columns: minmax(0, 1fr); }
  .group-grid > .group-card { padding: 13px; }
  .group-card-head,
  .group-card-top { flex-wrap: wrap; }
  .group-card-actions { width: 100%; }
  .group-card-actions .btn,
  .group-card-actions button { flex: 1 1 auto; }
  .channel-select-grid,
  .provider-select-grid,
  .channel-choice-grid,
  .provider-choice-grid,
  .group-defaults,
  .group-default-grid,
  .group-card-facts,
  .group-facts { grid-template-columns: minmax(0, 1fr); }
  .channel-select-grid,
  .provider-select-grid,
  .channel-choice-grid,
  .provider-choice-grid { max-height: 240px; }
  .channel-select-card,
  .provider-select-card,
  .channel-choice-card,
  .provider-choice-card,
  .channel-option-card,
  .provider-option-card { padding: 9px 10px; }
}

/* Single channel-select field fallback: present the provider picker as a card. */
.field:has(#gfProvider) {
  grid-column: 1 / -1;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(110, 231, 183, 0.16);
  border-radius: 12px;
  background: linear-gradient(150deg, rgba(110, 231, 183, 0.055), rgba(96, 165, 250, 0.035));
}
.field:has(#gfProvider) > span {
  margin-bottom: 7px;
  color: #b9f6db;
}
.field:has(#gfProvider) .select {
  width: 100%;
  min-width: 0;
  height: 44px;
  background-color: rgba(5, 10, 17, 0.36);
  border-color: rgba(110, 231, 183, 0.18);
}
.field:has(#gfProvider) small {
  color: var(--muted-2);
}

@media (max-width: 700px) {
  .field:has(#gfProvider) {
    padding: 10px;
  }
  .field:has(#gfQuota),
  .field:has(#gfValidityDays) {
    padding: 9px;
  }
}

/* Compact group / quota summary inside key tables */
.key-scope-cell > strong {
  display: block;
  min-width: 0;
  color: #e7effa;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.key-scope-cell > small {
  display: block;
  min-width: 0;
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 9.5px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.key-scope-cell > .quota-chip,
.key-scope-cell > .expiry-chip,
.key-scope-cell > .scope-chip {
  margin-top: 1px;
}
