/* TestGo design system — modern, friendly, premium. Light + dark. */
:root {
  --brand: #5b4bff;
  --brand-2: #8b5cf6;
  --brand-ink: #3d2fe0;
  --brand-soft: #eeecff;
  --lime: #c6f432;
  --lime-ink: #3a5200;
  --ok: #16a34a;
  --ok-soft: #e8f8ee;
  --bad: #e5484d;
  --bad-soft: #fdecec;
  --warn: #b45309;
  --warn-soft: #fff4e0;
  --bg: #f6f6fb;
  --bg-2: #ffffff;
  --card: #ffffff;
  --ink: #12101f;
  --ink-2: #4a4760;
  --ink-3: #8a87a0;
  --line: #e7e6f0;
  --shadow-sm: 0 1px 2px rgba(18, 16, 31, .06);
  --shadow: 0 1px 2px rgba(18, 16, 31, .04), 0 8px 24px rgba(18, 16, 31, .06);
  --shadow-lg: 0 24px 60px rgba(61, 47, 224, .18);
  --radius: 18px;
  --radius-sm: 12px;
  --font: ui-sans-serif, -apple-system, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: ui-sans-serif, -apple-system, "Segoe UI Variable Display", "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #7b6dff;
    --brand-2: #a78bfa;
    --brand-ink: #b3aaff;
    --brand-soft: #24204a;
    --ok: #3ccf74;
    --ok-soft: #0f2a1b;
    --bad: #ff6b70;
    --bad-soft: #341517;
    --warn: #f5b453;
    --warn-soft: #33240b;
    --bg: #0c0b14;
    --bg-2: #12111d;
    --card: #15131f;
    --ink: #f3f2fa;
    --ink-2: #bdbad0;
    --ink-3: #807d96;
    --line: #26243a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, .45);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--ink);
  background: var(--bg); -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; }
h2 { font-size: clamp(1.3rem, 3vw, 1.6rem); font-weight: 750; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--ink-2); }
.small { font-size: .875rem; }
.tiny { font-size: .78rem; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.section { padding: 48px 0; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-3 { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 820px) { .grid-3 { grid-template-columns: 1fr; } }

/* header */
.topbar {
  position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar .container { display: flex; align-items: center; gap: 18px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 850; font-size: 1.25rem; color: var(--ink); letter-spacing: -.03em; }
.logo:hover { text-decoration: none; }
.logo .go { background: linear-gradient(135deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { color: var(--ink-2); font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 10px; }
.nav a:hover, .nav a.active { color: var(--ink); background: var(--brand-soft); text-decoration: none; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.token-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 8px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-ink); font-weight: 750; font-size: .9rem; white-space: nowrap;
}
.token-pill:hover { text-decoration: none; filter: brightness(.97); }
.coin { width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(135deg, var(--lime), #8be000); display: inline-grid; place-items: center; color: var(--lime-ink); font-size: .7rem; font-weight: 900; }
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.lang-switch form { margin: 0; }
.lang-switch button { border: 0; background: transparent; color: var(--ink-3); font: inherit; font-size: .78rem; font-weight: 800; padding: 6px 9px; cursor: pointer; }
.lang-switch button[aria-pressed="true"] { background: var(--ink); color: var(--bg-2); }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 230px; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow-lg); padding: 8px; display: flex; flex-direction: column;
}
.menu-panel a, .menu-panel button { display: block; text-align: left; padding: 10px 12px; border-radius: 9px; color: var(--ink); font: inherit; font-weight: 550; background: none; border: 0; cursor: pointer; width: 100%; }
.menu-panel a:hover, .menu-panel button:hover { background: var(--brand-soft); text-decoration: none; }
.menu-panel hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.only-mobile { display: none; }
@media (max-width: 820px) {
  .nav { display: none; }
  .only-mobile { display: block; }
  .hide-mobile { display: none !important; }
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; cursor: pointer;
  font: inherit; font-weight: 700; font-size: .98rem; padding: 12px 20px; border-radius: 12px; transition: transform .08s ease, box-shadow .2s ease, background .2s;
  text-decoration: none !important; line-height: 1.2; min-height: 46px;
}
.btn:active { transform: translateY(1px); }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 6px 18px color-mix(in srgb, var(--brand) 35%, transparent); }
.btn-primary:hover { box-shadow: 0 10px 26px color-mix(in srgb, var(--brand) 45%, transparent); }
.btn-lime { color: #182300; background: var(--lime); }
.btn-lime:hover { filter: brightness(1.04); }
.btn-ghost { color: var(--ink); background: var(--card); border-color: var(--line); }
.btn-ghost:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.btn-danger { color: #fff; background: var(--bad); }
.btn-sm { padding: 8px 14px; font-size: .88rem; min-height: 38px; border-radius: 10px; }
.btn-lg { padding: 15px 26px; font-size: 1.05rem; min-height: 54px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .5; pointer-events: none; }

/* cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card-link { display: block; color: inherit; transition: transform .15s ease, box-shadow .2s, border-color .2s; }
.card-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); text-decoration: none; }
.card h3 { margin-bottom: 6px; }
.icon-tile { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.6rem; background: var(--brand-soft); margin-bottom: 14px; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; font-weight: 800; letter-spacing: .02em; padding: 4px 9px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); text-transform: uppercase; }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-bad { background: var(--bad-soft); color: var(--bad); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-lime { background: var(--lime); color: #1e2c00; }
.meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--ink-3); font-size: .86rem; font-weight: 600; margin-top: 12px; }

/* hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 56px; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto; height: 120%; z-index: -1;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent); mask-image: linear-gradient(to bottom, #000 55%, transparent);
  background: radial-gradient(600px 300px at 15% 20%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 70%),
              radial-gradient(500px 300px at 85% 10%, color-mix(in srgb, var(--brand-2) 22%, transparent), transparent 70%),
              radial-gradient(400px 240px at 60% 80%, color-mix(in srgb, var(--lime) 18%, transparent), transparent 70%);
}
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); font-weight: 850; letter-spacing: -.035em; max-width: 14ch; }
.hero .lead { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--ink-2); max-width: 54ch; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding-top: 40px; } }
.gradient-text { background: linear-gradient(135deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-card { transform: rotate(1.5deg); }
.hero-card .opt { pointer-events: none; }
.stats { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 28px; }
.stat b { display: block; font-size: 1.6rem; font-weight: 850; letter-spacing: -.02em; }
.stat span { color: var(--ink-3); font-size: .86rem; font-weight: 600; }
.section-title { text-align: center; }
.section-sub { text-align: center; color: var(--ink-2); max-width: 52ch; margin: 0 auto; }
.step { text-align: center; padding: 28px 24px; }
.step-n {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin: 0 auto 16px;
  font-weight: 850; font-size: 1.15rem; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 8px 20px color-mix(in srgb, var(--brand) 30%, transparent);
}
.step p { max-width: 32ch; margin-left: auto; margin-right: auto; }

/* page header */
.page-head { padding: 36px 0 12px; }
.crumbs { font-size: .86rem; color: var(--ink-3); margin-bottom: 10px; font-weight: 600; }
.crumbs a { color: var(--ink-3); }

/* alerts */
.messages { margin: 16px 0 0; display: grid; gap: 10px; }
.alert { padding: 13px 16px; border-radius: 12px; font-weight: 550; border: 1px solid transparent; background: var(--brand-soft); color: var(--brand-ink); }
.alert-success { background: var(--ok-soft); color: var(--ok); }
.alert-error { background: var(--bad-soft); color: var(--bad); }
.alert-warning { background: var(--warn-soft); color: var(--warn); }

/* forms */
.form-card { max-width: 440px; margin: 40px auto; }
label { display: block; font-weight: 650; font-size: .9rem; margin: 0 0 6px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], input[type=tel], textarea, select {
  width: 100%; font: inherit; color: var(--ink); background: var(--bg-2); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; min-height: 48px; transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.field { margin-bottom: 16px; }
.field-check { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.field-check label { margin: 0; font-weight: 550; }
.helptext, .help { display: block; color: var(--ink-3); font-size: .8rem; margin-top: 6px; }
.errorlist { list-style: none; margin: 0 0 8px; padding: 0; color: var(--bad); font-size: .86rem; font-weight: 600; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: .82rem; font-weight: 700; margin: 20px 0; text-transform: uppercase; letter-spacing: .05em; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.btn-google { width: 100%; background: var(--card); color: var(--ink); border: 1.5px solid var(--line); }
.btn-google:hover { border-color: var(--ink-3); }
.auth-card h1 { font-size: 1.7rem; }
.auth-card .allauth-content form button[type=submit] { width: 100%; }
.allauth-content ul:not(.errorlist) { padding-left: 18px; }
.allauth-content section { margin-bottom: 22px; }
.allauth-content table { width: 100%; border-collapse: collapse; }
.allauth-content td, .allauth-content th { padding: 8px; border-bottom: 1px solid var(--line); text-align: left; }
.allauth-content .btn + .btn { margin-left: 8px; }

/* test taking */
.quiz-shell { max-width: 780px; margin: 0 auto; padding: 22px 20px 120px; }
.quiz-top { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.progress { flex: 1; height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; }
.progress > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--brand-2)); border-radius: 99px; transition: width .3s ease; }
.q-counter { font-weight: 800; font-size: .92rem; color: var(--ink-2); white-space: nowrap; }
.q-card { padding: 26px; }
.q-kind { margin-bottom: 12px; }
.q-text { font-size: clamp(1.1rem, 2.6vw, 1.3rem); font-weight: 700; line-height: 1.4; margin-bottom: 20px; white-space: pre-line; letter-spacing: -.01em; }
.opts { display: grid; gap: 10px; }
.opt {
  position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 15px 16px; border: 1.5px solid var(--line); border-radius: 14px;
  cursor: pointer; background: var(--bg-2); transition: border-color .15s, background .15s, transform .08s; font-weight: 550; margin: 0;
}
.opt:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .letter { flex: none; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-weight: 850; font-size: .9rem; background: var(--bg); border: 1.5px solid var(--line); color: var(--ink-2); transition: all .15s; }
.opt.multi .letter { border-radius: 8px; }
.opt:not(.multi) .letter { border-radius: 50%; }
.opt .otext { padding-top: 4px; white-space: pre-line; }
.opt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.opt:has(input:checked) .letter { background: var(--brand); border-color: var(--brand); color: #fff; }
.opt:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--brand) 50%, transparent); outline-offset: 2px; }
.q-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: color-mix(in srgb, var(--bg-2) 90%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); }
.q-nav .inner { width: 100%; max-width: 780px; margin: 0 auto; padding: 0 20px; display: flex; gap: 10px; align-items: center; }
.q-nav .spacer { flex: 1; }
.save-state { font-size: .8rem; color: var(--ink-3); font-weight: 650; }
.dots { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 0; }
.dot { width: 34px; height: 34px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--bg-2); font: inherit; font-size: .8rem; font-weight: 800; color: var(--ink-3); cursor: pointer; }
.dot.answered { background: var(--brand-soft); border-color: transparent; color: var(--brand-ink); }
.dot.current { border-color: var(--brand); color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent); }
.js .q-item { display: none; }
.js .q-item.active { display: block; animation: fadeIn .2s ease; }
.no-js-only { display: block; }
.js .no-js-only { display: none; }
.js-only { display: none; }
.js .js-only { display: flex; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.q-item + .q-item { margin-top: 16px; }

/* results */
.score-hero { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
@media (max-width: 640px) { .score-hero { grid-template-columns: 1fr; text-align: center; justify-items: center; } }
.ring { --p: 0; width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--ring-color, var(--brand)) calc(var(--p) * 1%), var(--line) 0); }
.ring > div { width: 118px; height: 118px; border-radius: 50%; background: var(--card); display: grid; place-items: center; text-align: center; }
.ring b { font-size: 2rem; font-weight: 850; letter-spacing: -.03em; line-height: 1; }
.ring span { font-size: .8rem; color: var(--ink-3); font-weight: 700; }
.review .opt { cursor: default; }
.opt.is-correct { border-color: var(--ok); background: var(--ok-soft); }
.opt.is-correct .letter { background: var(--ok); border-color: var(--ok); color: #fff; }
.opt.is-wrong { border-color: var(--bad); background: var(--bad-soft); }
.opt.is-wrong .letter { background: var(--bad); border-color: var(--bad); color: #fff; }
.opt .tag { margin-left: auto; flex: none; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; padding-top: 6px; }
.opt.is-correct .tag { color: var(--ok); }
.opt.is-wrong .tag { color: var(--bad); }
.q-result-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.filter-bar { display: inline-flex; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 4px; gap: 4px; }
.filter-bar button { border: 0; background: none; font: inherit; font-weight: 700; font-size: .88rem; padding: 8px 14px; border-radius: 9px; color: var(--ink-2); cursor: pointer; }
.filter-bar button[aria-pressed="true"] { background: var(--ink); color: var(--bg-2); }
.hidden { display: none !important; }

/* tables / lists */
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list .grow { flex: 1; min-width: 0; }
.list .title { font-weight: 700; color: var(--ink); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pct { font-weight: 850; font-size: 1.05rem; min-width: 52px; text-align: right; }
.amount-plus { color: var(--ok); font-weight: 800; }
.amount-minus { color: var(--ink-2); font-weight: 800; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 640px) { .kpis { grid-template-columns: 1fr 1fr; } .kpis .card:first-child { grid-column: span 2; } }
.kpi { padding: 18px 20px; }
.kpi b { display: block; font-size: 1.8rem; font-weight: 850; letter-spacing: -.03em; }
.kpi span { color: var(--ink-3); font-size: .84rem; font-weight: 650; }
.kpi-brand { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; border: 0; }
.kpi-brand span { color: rgba(255,255,255,.8); }
.bar { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; margin-top: 8px; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }

/* pricing */
.price-card { position: relative; display: flex; flex-direction: column; gap: 6px; text-align: center; padding: 28px 22px; }
.price-card.featured { border: 2px solid var(--brand); box-shadow: var(--shadow-lg); }
.price-card .ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); }
.price-card .tokens { font-size: 2.6rem; font-weight: 850; letter-spacing: -.04em; line-height: 1; }
.price-card .price { font-size: 1.3rem; font-weight: 800; }
.price-card form { margin-top: auto; padding-top: 14px; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 34px 0 40px; margin-top: 60px; color: var(--ink-3); font-size: .88rem; background: var(--bg-2); }
.footer .cols { display: flex; gap: 30px; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; }
.footer a { color: var(--ink-2); }
.footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.anpc { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.anpc a { border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: .74rem; font-weight: 700; color: var(--ink-2); }
.legal h2 { margin-top: 1.6em; font-size: 1.2rem; }
.empty { text-align: center; padding: 40px 20px; color: var(--ink-3); }
.empty .big { font-size: 2.4rem; margin-bottom: 8px; }
.menu-email { padding: 6px 12px; overflow: hidden; text-overflow: ellipsis; }
.footer-blurb { margin-top: 10px; max-width: 38ch; }
.footer-copy { margin-top: 16px; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.w-full { width: 100%; }
.site-banner { background: var(--lime); color: #1e2c00; text-align: center; font-size: .85rem; font-weight: 700; padding: 7px 16px; }
.tg-dialog {
  border: 1px solid var(--line); border-radius: 20px; padding: 26px 24px 22px; width: min(420px, calc(100vw - 32px));
  background: var(--card); color: var(--ink); box-shadow: var(--shadow-lg);
}
.tg-dialog::backdrop { background: rgba(12, 11, 20, .55); backdrop-filter: blur(3px); }
.tg-dialog[open] { animation: fadeIn .15s ease; }
.tg-dialog p { white-space: pre-line; font-weight: 600; font-size: 1.05rem; margin: 0 0 20px; line-height: 1.5; }
.tg-dialog-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
@media (max-width: 480px) { .tg-dialog-actions .btn { flex: 1; } }
@media (min-width: 821px) { #recent { grid-column: span 2; } }
.dash-cats .icon-tile { width: 42px; height: 42px; font-size: 1.25rem; border-radius: 12px; }
