/* account.bloot.app — from the website Figma (ohaALcKj…), section "Account dashboard · current".
   Same tokens as bloot.app; the dashboard's blue is #0071E3 everywhere. */

@font-face { font-family: 'Geist'; src: url('/assets/fonts/Geist-Latin-1.woff2') format('woff2-variations'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('/assets/fonts/GeistMono-Latin-1.woff2') format('woff2-variations'); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #181a1f;
  --surface: #121212;
  --raised: #1a1a1a;
  --hover: #232323;
  --selected: #2c2c2c;
  --well: #0a0a0a;
  --border: #232323;
  --border-strong: #2e2e2e;
  --fg: #f2f2f0;
  --fg-2: #a6a6a1;
  --fg-3: #86857f;
  --blue: #0071e3;
  --blue-hover: #0a7ef5;
  --blue-subtle: #16212f;
  --success: #3dd68c;
  --success-bg: #182d23;
  --warning: #f5b83d;
  --warning-bg: #2f2716;
  --danger: #ff6359;
  --danger-bg: #331d1b;
  --sans: 'Geist', system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --side: 264px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; background: var(--bg); color: var(--fg); font: 400 15px/1.5 var(--sans); letter-spacing: -0.005em; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
img, svg { display: block; }
.ic { flex: none; }
:focus-visible { outline: 2px solid #3d63ff; outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.mono { font-family: var(--mono); }
.muted { color: var(--fg-2); }
.faint { color: var(--fg-3); }
.u { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--fg-3); }
.u:hover { text-decoration-color: var(--fg); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; } }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; font-size: 15px; font-weight: 500; white-space: nowrap; transition: background-color .15s, color .15s, border-color .15s, opacity .15s; }
.btn .ic { width: 16px; height: 16px; }
.btn-l { height: 52px; padding: 0 24px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); }
.btn-secondary { background: var(--hover); color: var(--fg); }
.btn-secondary:hover { background: var(--selected); }
.btn-ghost { color: var(--fg-2); }
.btn-ghost:hover { color: var(--fg); background: var(--hover); }
.btn-white { background: #fff; color: #0a0a0a; }
.btn-white:hover { background: #e9e9e7; }
.btn-black { background: #0a0a0a; color: #fff; }
.btn-black:hover { background: #1c1c1c; }
.btn-danger { border: 1px solid var(--danger); color: var(--danger); }
.btn-danger:hover { background: rgba(255, 99, 89, .1); }
.btn-danger-solid { background: var(--danger); color: #1a0d0c; }
.btn:disabled { opacity: .5; cursor: default; pointer-events: none; }
.btn-copy { height: 40px; padding: 0 16px; background: var(--selected); }
.btn-copy:hover { background: #363636; }

.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 500; white-space: nowrap; background: var(--hover); color: var(--fg); }
.pill-ok { background: var(--success-bg); color: var(--success); }
.pill-no { background: var(--danger-bg); color: var(--danger); }
.pill-wait { background: var(--warning-bg); color: var(--warning); }
.pill-white { background: #fff; color: #0a0a0a; }
.pill-blue { background: var(--blue); color: #fff; }
.label { font: 400 11px/1.2 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--fg-3); }

/* ── Account shell: sidebar + content ─────────────────────────────────────── */
.shell { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 20px 16px 16px; background: var(--surface); border-right: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px; height: 38px; }
.brand svg { height: 28px; width: auto; color: var(--fg); }
.brand-pill { height: 20px; padding: 0 8px; border-radius: 999px; background: var(--hover); color: var(--fg-2); font-size: 11px; line-height: 20px; }
.nav { display: flex; flex-direction: column; gap: 4px; margin-top: 18px; }
.nav a { display: flex; align-items: center; gap: 12px; height: 41px; padding: 0 12px; border-radius: 10px; font-size: 15px; color: var(--fg-2); transition: background-color .15s, color .15s; }
.nav a .ic { width: 18px; height: 18px; }
.nav a:hover { color: var(--fg); }
.nav a.on { background: var(--hover); color: var(--fg); font-weight: 500; }
.nav .nav-ext { margin-top: 16px; }
.nav .nav-ext .ic-ext { margin-left: auto; width: 14px; height: 14px; }
.side-card { margin-top: auto; padding: 16px; border-radius: 14px; background: var(--raised); border: 1px solid var(--border); }
.side-card p { font-size: 13px; line-height: 1.45; color: var(--fg-2); }
.side-card .side-card-h { color: var(--fg); font-weight: 500; margin-bottom: 10px; }
.side-card .btn { margin-top: 16px; width: 100%; }
.side-icons { display: flex; gap: 6px; margin-bottom: 14px; }
.side-icons img { width: 28px; height: 28px; border-radius: 6px; }
.me { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding: 16px 8px 0; border-top: 1px solid var(--border); }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%; background: #2c3645; color: #dde3ec; font-weight: 600; font-size: 15px; }
.avatar-xl { width: 72px; height: 72px; font-size: 28px; }
.me-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.me-name { font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-id { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-id { font: 11px/1.4 var(--mono); color: var(--fg-3); }
.me button { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; color: var(--fg-2); }
.me button:hover { background: var(--hover); color: var(--fg); }

.main { min-width: 0; padding: 48px 64px 80px; }
.main-narrow { max-width: 560px; margin: 0 auto; }
.page-title { font-size: 34px; font-weight: 600; line-height: 1.15; letter-spacing: -0.03em; }
.page-sub { margin-top: 10px; font-size: 16px; color: var(--fg-2); }
.stack { display: flex; flex-direction: column; gap: 28px; margin-top: 32px; }
.back { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--fg-2); }
.back:hover { color: var(--fg); }

/* Phone: the sidebar becomes a top bar with a menu. */
.topbar, .scrim { display: none; }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; z-index: 60; width: min(300px, 86vw); transform: translateX(-102%); transition: transform .28s var(--ease); }
  .shell.menu-open .side { transform: none; }
  .scrim { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(0, 0, 0, .5); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .28s; }
  .shell.menu-open .scrim { opacity: 1; pointer-events: auto; }
  .topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; height: 60px; padding: 0 16px; background: rgba(24, 26, 31, .9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
  .topbar .brand { padding: 0; }
  .topbar .brand svg { height: 24px; }
  .topbar button { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; }
  .main { padding: 28px 20px 64px; }
  .page-title { font-size: 28px; }
}

/* ── Cards ────────────────────────────────────────────────────────────────── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; }
.card-pad { padding: 30px 28px; }
.card-h { font-size: 20px; font-weight: 600; letter-spacing: -0.015em; }
.rows { margin-top: 18px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 14px 0; border-top: 1px solid var(--border); font-size: 15px; }
.row:first-child { border-top: 0; }
.row dt { color: var(--fg-2); }
.row dd { text-align: right; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 1100px) { .grid-2 { grid-template-columns: 1fr; } }

/* The blue plan card (Overview, Plan & billing). */
.plan { position: relative; padding: 34px 32px 32px; border-radius: 22px; background: var(--blue); color: #fff; }
.plan-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.plan-name { font-size: 40px; font-weight: 600; line-height: 1.1; letter-spacing: -0.035em; }
.plan-side { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; font-size: 13px; }
.plan .label { color: rgba(255, 255, 255, .78); }
.plan-line { margin-top: 18px; font-size: 15px; }
.plan-bar { height: 6px; margin-top: 26px; border-radius: 3px; background: var(--hover); overflow: hidden; }
.plan-bar i { display: block; height: 100%; border-radius: 3px; background: #fff; }
.plan-bar-meta { display: flex; justify-content: space-between; margin-top: 10px; font: 12.5px/1.3 var(--mono); }
.plan-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 28px; }
.plan-btns .btn { height: 40px; }
.plan-cta-note { display: flex; flex-direction: column; margin-left: 6px; font-size: 14px; }
.plan-cta-note small { font-size: 13px; opacity: .85; }
.plan-cta-note .plan-pitch { font-size: 15px; opacity: 1; }
.plan-usage .plan-bar ~ .plan-bar { margin-top: 20px; }
.plan-note { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; padding: 10px 14px; border-radius: 10px; background: rgba(0, 0, 0, .2); font-size: 13px; }
.plan-note .ic { width: 16px; height: 16px; }
.plan-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.plan-actions .link { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; font-weight: 500; }
.plan-actions .link:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 720px) {
  .plan { padding: 26px 22px; }
  .plan-name { font-size: 32px; }
  .plan-top { flex-direction: column; }
  .plan-side, .plan-actions { align-items: flex-start; }
}

/* Release / info strip. */
.strip { display: flex; align-items: center; gap: 18px; padding: 22px 24px; }
.strip img { width: 44px; height: 44px; border-radius: 10px; }
.strip-text { flex: 1; min-width: 0; }
.strip-h { font-weight: 500; font-size: 15.5px; }
.strip-b { font-size: 14px; color: var(--fg-2); }
.strip .btn { color: var(--fg-2); }
.info { display: flex; gap: 18px; padding: 26px 24px; }
.tile { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 10px; background: var(--raised); color: var(--fg); }
.tile .ic { width: 18px; height: 18px; }
.info-h { font-size: 16px; font-weight: 500; }
.info-b { margin-top: 6px; font-size: 14px; line-height: 1.55; color: var(--fg-2); }

/* Payment history table. */
.table { width: 100%; border-collapse: collapse; margin-top: 22px; font-size: 15px; }
.table th { padding: 0 0 14px; text-align: left; font: 400 11px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--fg-3); }
.table td { padding: 16px 0; border-top: 1px solid var(--border); }
.table th:last-child, .table td:last-child { text-align: right; }
.table td.muted { color: var(--fg-2); }
.table-wrap { overflow-x: auto; }
.table-wrap .table { min-width: 560px; }
.empty { padding: 28px 0 8px; color: var(--fg-2); font-size: 15px; }

/* Forms. */
.input { width: 100%; height: 44px; padding: 0 16px; border-radius: 12px; background: var(--well); border: 1px solid var(--border-strong); color: var(--fg); font-size: 15px; outline: none; transition: border-color .15s; }
.input:focus { border-color: #4a4a4a; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid var(--border-strong); }
.seg button { height: 34px; padding: 0 16px; border-radius: 999px; font-size: 14px; color: var(--fg-2); }
.seg button[aria-pressed='true'] { background: var(--hover); color: var(--fg); font-weight: 500; }
.check { display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 15px; }
.check input { appearance: none; width: 20px; height: 20px; flex: none; border-radius: 5px; border: 1.5px solid var(--border-strong); background: var(--well); display: grid; place-items: center; cursor: pointer; transition: background-color .15s, border-color .15s; }
.check input:checked { background: var(--blue); border-color: var(--blue); }
.check input:checked::after { content: ''; width: 10px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.msg { margin-top: 12px; font-size: 14px; }
.msg-err { color: var(--danger); }
.msg-ok { color: var(--success); }

/* Modal (blurred backdrop that builds slowly, like the apps). */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, .48); backdrop-filter: blur(6px); animation: fade .42s var(--ease); }
.modal-box { width: 100%; max-width: 440px; padding: 28px; border-radius: 20px; background: var(--raised); border: 1px solid var(--border-strong); animation: rise .42s var(--ease); }
.modal-box h2 { font-size: 20px; font-weight: 600; letter-spacing: -.015em; }
.modal-box p { margin-top: 10px; font-size: 15px; line-height: 1.55; color: var(--fg-2); }
.modal-box .input { margin-top: 18px; }
.modal-btns { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.modal-img { max-width: min(92vw, 720px); max-height: 86vh; border-radius: 12px; background: #fff; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }

/* ── Get Pro steps ────────────────────────────────────────────────────────── */
.steps { display: flex; align-items: center; gap: 12px; margin: 56px 0 44px; font-size: 14px; }
.step { display: flex; align-items: center; gap: 10px; color: var(--fg-3); white-space: nowrap; }
.step-n { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 12px; }
.step.on { color: var(--fg); font-weight: 500; }
.step.on .step-n { background: var(--blue); color: #fff; }
.step.done { color: var(--fg); }
.step.done .step-n { background: var(--blue); color: #fff; }
.step-line { flex: 1; height: 1px; background: var(--border-strong); }
.step-line.done { background: var(--blue); }
.h-xl { font-size: 40px; font-weight: 600; line-height: 1.12; letter-spacing: -0.035em; }
.lead { margin-top: 14px; font-size: 16px; line-height: 1.6; color: var(--fg-2); }
.choice { display: flex; align-items: center; gap: 16px; width: 100%; padding: 22px; border-radius: 16px; border: 1px solid var(--border-strong); text-align: left; transition: border-color .15s, background-color .15s; }
.choice + .choice { margin-top: 12px; }
.choice[aria-checked='true'] { border-color: var(--blue); background: var(--blue-subtle); }
.radio { width: 20px; height: 20px; flex: none; border-radius: 50%; border: 1.5px solid var(--border-strong); background: var(--well); display: grid; place-items: center; }
.choice[aria-checked='true'] .radio { border-color: var(--blue); background: var(--blue); }
.choice[aria-checked='true'] .radio::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.choice-text { flex: 1; }
.choice-h { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 500; }
.choice-b { margin-top: 2px; font-size: 14px; color: var(--fg-2); }
.choice-price { text-align: right; font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.choice-price small { display: block; font-size: 13px; font-weight: 400; color: var(--fg-2); letter-spacing: 0; }
.note { display: flex; gap: 12px; margin-top: 26px; font-size: 14px; line-height: 1.6; color: var(--fg-2); }
.note .ic { width: 18px; height: 18px; margin-top: 1px; }
.pay-rows { margin-top: 28px; border-top: 1px solid var(--border); }
.pay-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--border); }
.pay-v { margin-top: 8px; font-size: 32px; font-weight: 600; letter-spacing: -.025em; }
.pay-v.mono { font-size: 21px; font-weight: 500; letter-spacing: .02em; }
.pay-v.dim { font-size: 21px; font-weight: 400; color: var(--fg-2); letter-spacing: 0; }
.pay-qr { width: 156px; height: 156px; padding: 8px; border-radius: 12px; background: #fff; cursor: zoom-in; }
.btn-row { display: flex; gap: 10px; margin-top: 28px; }
.btn-row .btn-primary { flex: 1; }
.drop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 30px; padding: 38px 20px; border: 1px dashed var(--border-strong); border-radius: 16px; text-align: center; transition: border-color .15s, background-color .15s; }
.drop.over { border-color: var(--blue); background: var(--blue-subtle); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop .ic { color: var(--fg-2); }
.drop-h { font-size: 17px; font-weight: 600; }
.drop-b { font-size: 14px; color: var(--fg-2); }
.file { display: flex; align-items: center; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.file-text { flex: 1; min-width: 0; }
.file-name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-size { font-size: 13px; color: var(--fg-3); }
.file button { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; color: var(--fg-2); }
.file button:hover { background: var(--hover); color: var(--fg); }
.status-line { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; }
.status-line .ic { width: 22px; height: 22px; }
.status-ok { color: var(--success); }
.status-no { color: var(--danger); }
.h-result { margin-top: 18px; font-size: 54px; font-weight: 600; line-height: 1.05; letter-spacing: -0.04em; }
.h-result.sm { font-size: 40px; line-height: 1.12; }
.apps-row { display: flex; gap: 10px; margin-top: 30px; }
.apps-row img { width: 40px; height: 40px; border-radius: 9px; }
.check-note { display: flex; gap: 12px; margin-top: 30px; padding: 24px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.check-note .ic { width: 18px; height: 18px; margin-top: 2px; color: var(--warning); }
.check-note b { font-weight: 500; }
.check-note p { margin-top: 6px; font-size: 14px; line-height: 1.6; color: var(--fg-2); }
.tries { padding: 24px 0; margin-top: 30px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.tries-top { display: flex; justify-content: space-between; font-size: 14px; color: var(--fg-3); }
.tries-top b { font-size: 15px; font-weight: 500; color: var(--fg); }
.tries-bar { height: 4px; margin-top: 12px; border-radius: 2px; background: var(--hover); overflow: hidden; }
.tries-bar i { display: block; height: 100%; background: var(--danger); border-radius: 2px; }
.bullets { list-style: none; padding: 24px 0; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 12px; font-size: 15px; color: var(--fg-2); }
.bullets li { position: relative; padding-left: 18px; }
.bullets li::before { content: ''; position: absolute; left: 2px; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--fg-3); }
@media (max-width: 640px) {
  .steps { margin: 32px 0 32px; gap: 8px; font-size: 13px; }
  .h-xl, .h-result.sm { font-size: 32px; }
  .h-result { font-size: 42px; }
  .choice { padding: 18px 16px; }
  .pay-v { font-size: 26px; }
}

/* ── Profile ──────────────────────────────────────────────────────────────── */
.name-card { display: flex; align-items: center; gap: 24px; padding: 34px 28px; }
.name-field { flex: 1; min-width: 0; }
.name-input-row { display: flex; gap: 10px; margin-top: 8px; }
.name-hint { margin-top: 10px; font-size: 13px; color: var(--fg-2); }
.id-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; padding: 10px 12px 10px 16px; border-radius: 12px; background: var(--raised); }
.id-box .mono { font-size: 17px; letter-spacing: .04em; }
.tg-box { display: flex; align-items: center; gap: 14px; margin-top: 20px; padding: 12px 16px 12px 12px; border-radius: 12px; background: var(--raised); }
.tg-box .tile { width: 36px; height: 36px; background: var(--hover); }
.tg-text { flex: 1; min-width: 0; }
.tg-text small { display: block; font-size: 12.5px; color: var(--fg-3); }
.pref { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; border-top: 1px solid var(--border); }
.pref:first-of-type { border-top: 0; }
.pref-h { font-size: 15px; font-weight: 500; }
.pref-b { font-size: 13px; color: var(--fg-2); }
.danger-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 30px 28px; border-radius: 22px; background: #261e22; border: 1px solid rgba(255, 99, 89, .6); }
.danger-card h2 { font-size: 18px; font-weight: 600; color: var(--danger); }
.danger-card p { margin-top: 8px; font-size: 14px; color: var(--fg-2); }
@media (max-width: 720px) {
  .name-card { flex-direction: column; align-items: flex-start; padding: 26px 22px; }
  .name-input-row { flex-direction: column; }
  .danger-card, .pref { flex-direction: column; align-items: flex-start; }
}

/* ── Sign in (no sidebar) ─────────────────────────────────────────────────── */
:root { --auth-top-h: 72px; }
.auth-top { display: flex; align-items: center; justify-content: space-between; height: var(--auth-top-h); padding: 0 120px; }
.auth-top .brand { padding: 0; }
.auth-top .brand svg { height: 30px; }
.auth-top .brand-pill { background: none; font-family: var(--mono); font-size: 12px; color: var(--fg-3); }
.auth-top a.help { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: var(--fg-2); }
.auth-top a.help:hover { color: var(--fg); }
/* Every sign-in page (sign in, register, Google, /connect/) sits in the middle of the window, under
   the top bar. On tall windows the bottom padding matches the top bar, so it is centred on the whole
   window; short screens keep it small, so nothing is pushed below the fold. */
.auth { display: flex; justify-content: center; align-items: center; min-height: calc(100vh - var(--auth-top-h)); min-height: calc(100dvh - var(--auth-top-h)); padding: 24px 20px; text-align: center; }
@media (min-height: 760px) { .auth { padding-bottom: calc(24px + var(--auth-top-h)); } }
.auth-col { width: 100%; max-width: 440px; display: flex; flex-direction: column; align-items: center; }
.tg-mark { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(180deg, #37aee2, #1e96c8); color: #fff; }
.tg-mark .ic { width: 28px; height: 28px; transform: translateX(-1px); }
.auth h1 { margin-top: 24px; font-size: 42px; font-weight: 600; line-height: 1.1; letter-spacing: -0.035em; }
.auth .lead { margin-top: 18px; }
.auth .btn-l { width: 320px; max-width: 100%; margin-top: 34px; }
.auth-alt { margin-top: 22px; font-size: 14px; color: var(--fg-2); }
.auth-alt a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
/* Telegram, the extra way in: a quiet line under the Google button (signin.js, connect.js). */
.auth-alt .u { color: var(--fg); }
.auth-tg { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); width: 320px; max-width: 100%; }
.code-label { margin-top: 36px; }
.code-row { display: flex; align-items: center; gap: 18px; margin-top: 12px; }
.code { font: 400 44px/1 var(--mono); letter-spacing: .04em; }
.code.dead { color: var(--fg-3); text-decoration: line-through; text-decoration-thickness: 2px; }
.wait { display: flex; align-items: center; gap: 12px; margin-top: 34px; font-size: 15px; color: var(--fg-2); }
.wait.dead { color: var(--danger); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .3; } }
.timer { width: 240px; height: 3px; margin-top: 16px; border-radius: 2px; background: var(--border-strong); overflow: hidden; }
.timer i { display: block; height: 100%; background: var(--blue); transition: width 1s linear; }
.timer-text { margin-top: 12px; font: 12.5px/1 var(--mono); color: var(--fg-3); }
.auth-btns { display: flex; align-items: center; gap: 12px; margin-top: 26px; }
.how { width: 100%; margin-top: 28px; padding: 18px 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); text-align: left; list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 14px; color: var(--fg-2); }
.how li { display: flex; align-items: center; gap: 12px; }
.how b { display: grid; place-items: center; width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--hover); font-size: 12px; font-weight: 500; color: var(--fg-2); }
.auth .field { width: 100%; margin-top: 30px; text-align: left; }
.auth .field label { display: block; margin-bottom: 8px; font-size: 14px; color: var(--fg-2); }

/* Signed in: ring draws, then the check (spec on the Figma notes card). */
.done-mark { width: 64px; height: 64px; animation: pop .5s var(--ease) .55s both; }
.done-mark circle { fill: none; stroke: var(--blue); stroke-width: 2.5; stroke-dasharray: 151; stroke-dashoffset: 151; transform: rotate(-90deg); transform-origin: center; animation: draw .55s var(--ease) forwards; }
.done-mark path { fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 34; stroke-dashoffset: 34; animation: draw .35s var(--ease) .45s forwards; }
.done-text { animation: up .4s var(--ease) .6s both; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { 50% { transform: scale(1.04); } }
@keyframes up { from { opacity: 0; transform: translateY(4px); } }
@media (max-width: 720px) {
  :root { --auth-top-h: 64px; }
  .auth-top { padding: 0 20px; }
  .auth h1 { font-size: 32px; }
  .code { font-size: 36px; }
  .auth-btns { flex-direction: column; }
}

/* ── Approve bloot apps (/connect/, pages/connect.js): the sign-in column made compact, so
   Approve shows in a 650 px tall window. Text that changes sits in fixed slots. ── */
.connect h1 { font-size: 28px; }
.connect-col h1 { margin-top: 0; }
.connect .lead { margin-top: 10px; font-size: 15px; }
.connect-rows { width: 100%; margin-top: 20px; padding: 0 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); text-align: left; }
.connect-rows .row { padding: 9px 0; font-size: 14px; }
.connect-rows dt { flex: none; }
.connect-rows dd { min-width: 0; overflow-wrap: anywhere; }
.connect-rows .mono { font-size: 15px; letter-spacing: .04em; }
.connect-note { margin-top: 12px; font-size: 14px; color: var(--fg-2); }
.auth .connect-btns { display: flex; gap: 12px; width: 100%; margin-top: 20px; }
.auth .connect-btns .btn-l { flex: 1; width: auto; margin-top: 0; }
.auth .connect-btns.stack { flex-direction: column; align-items: center; margin-top: 24px; }
.auth .connect-btns.stack .btn-l { flex: none; width: 320px; max-width: 100%; }
.connect .auth-alt { margin-top: 16px; }
.connect .auth-alt .u { color: var(--fg); }
.connect .done-lead { min-height: 3.2em; }
.skel.connect-skel { width: 100%; height: 162px; margin-top: 20px; border-radius: 14px; }
.connect-btns .skel-btn { flex: 1; height: 52px; margin-top: 0; }
@media (max-width: 720px) {
  .auth .connect-btns { flex-direction: column; }
  .auth .connect-btns .btn-l, .connect-btns .skel-btn { flex: none; width: 100%; }
}

/* ── Loading placeholders (first visit only; later visits draw from this tab's last copy) ── */
.skel { display: block; height: 14px; border-radius: 7px; background: var(--hover); animation: skel 1.6s ease-in-out infinite; }
.skel-title { width: 320px; max-width: 70%; height: 34px; border-radius: 10px; }
.skel-block { height: 180px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); animation: skel 1.6s ease-in-out infinite; }
.skel-card { display: flex; flex-direction: column; gap: 10px; }
.skel-btn { height: 40px; border-radius: 999px; margin-top: 6px; }
@keyframes skel { 50% { opacity: .55; } }

/* Moving between account pages cross-fades instead of flashing (browsers that support it). */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; animation-timing-function: var(--ease); }
.side { view-transition-name: side; }
