/* The public site: one stylesheet for every page. Mobile first (the owner reads it on an iPhone, 390 px), then
   wider screens from 720 px and 1040 px. One accent: the azure of the premium avatar's sky. */
:root {
  --ink: #0a0f1c; --text: #1f2633; --muted: #5a6475; --faint: #8a93a3;
  --line: #e7eaf0; --bg: #fff; --soft: #f5f8fb;
  --accent: #0277bd; --accent-strong: #015f99; --accent-soft: #e9f5fc; --accent-ink: #035a8f;
  --sky: linear-gradient(180deg, #0166a2 0%, #0a86c8 52%, #74c6ec 100%);
  --code-bg: #0b1220; --code-fg: #dfe7f3;
  --radius: 18px; --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(10, 15, 28, .06), 0 8px 28px rgba(10, 15, 28, .08);
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }
h1, h2, h3 { color: var(--ink); line-height: 1.12; letter-spacing: -0.025em; margin: 0; text-wrap: balance; }
p { margin: 0; }
code { font-family: var(--mono); font-size: .9em; }
:focus-visible { outline: 3px solid #7cc8f2; outline-offset: 2px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid rgba(231, 234, 240, .8); }
.bar { display: flex; align-items: center; gap: 14px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 700; font-size: 17px; letter-spacing: -0.02em; text-decoration: none; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.mark { display: block; flex: none; width: 24px; height: 24px; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { color: var(--text); text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 10px; border-radius: 10px; }
.nav a:hover { background: var(--soft); color: var(--ink); }
.nav a[aria-current] { color: var(--accent-ink); }
/* A phone's header: the mark, Pricing, Docs, Sign in. The "Get an API key" button joins from 560 px (the home page's
   hero has its own), Contact from 720 px (both are in the footer too). */
.nav-more, .bar .nav-cta { display: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent; transition: background .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { background: var(--accent-strong); color: #fff; box-shadow: 0 6px 18px rgba(2, 119, 189, .28); }
.btn-sm { min-height: 38px; padding: 0 15px; font-size: 15px; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--soft); color: var(--ink); box-shadow: none; }
.btn-dark { background: var(--ink); }
.btn-dark:hover { background: #1c2436; box-shadow: none; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Sections */
.section { padding: 64px 0; }
.section-soft { background: var(--soft); }
.eyebrow { display: inline-block; color: var(--accent-ink); font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.section h2 { font-size: clamp(1.75rem, 4.6vw + .4rem, 2.75rem); }
.section-head { max-width: 640px; margin-bottom: 32px; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 17px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* Hero */
.hero { padding: 36px 0 56px; }
.hero-grid { display: grid; gap: 36px; }
.hero h1 { font-size: clamp(2.4rem, 8.6vw + .2rem, 4.4rem); letter-spacing: -0.04em; line-height: 1.02; font-weight: 750; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lead { margin-top: 18px; font-size: 18px; color: var(--muted); max-width: 560px; }
.hero .actions { margin-top: 26px; }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--muted); }
.hero-note strong { color: var(--ink); }
.hero-art { position: relative; border-radius: 28px; overflow: hidden; background: var(--sky); aspect-ratio: 4 / 5; box-shadow: var(--shadow); max-width: 480px; width: 100%; justify-self: center; }
.hero-art > img { position: absolute; left: 50%; bottom: -2%; height: 104%; width: auto; max-width: none; transform: translateX(-50%); }
.chip { position: absolute; display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border-radius: 16px; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 8px 24px rgba(1, 54, 90, .2); font-size: 13px; line-height: 1.3; color: var(--ink); }
.chip img { width: 48px; height: 48px; object-fit: cover; border-radius: 10px; }
.chip-in { flex-direction: column; gap: 5px; padding: 6px 6px 7px; border-radius: 14px; }
.chip-in img { width: 58px; height: 66px; }
.chip-in b { font-size: 12px; }
.chip b { display: block; font-size: 14px; }
.chip span { color: var(--muted); }
.chip-in { left: 14px; top: 14px; }
.chip-out { right: 14px; top: 14px; padding: 9px 13px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; margin-right: 6px; box-shadow: 0 0 0 3px rgba(34, 197, 94, .18); }

/* Products */
.products { display: grid; gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { font-size: 22px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.card h3 small { font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.card > p { margin-top: 8px; color: var(--muted); }
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); letter-spacing: 0; }
.figure { margin: 0; }
.tile { border-radius: var(--radius-sm); overflow: hidden; background: var(--soft); aspect-ratio: 2 / 3; }
.tile img, .tile video { width: 100%; height: 100%; object-fit: cover; }
.tile.photo { aspect-ratio: 3 / 4; align-self: start; }
.caption { margin-top: 8px; font-size: 13px; color: var(--muted); line-height: 1.35; }

.gallery { margin-top: 20px; display: grid; gap: 14px; }
.gallery-head, .person { display: grid; grid-template-columns: .82fr 1fr 1fr; gap: 10px; align-items: start; }
.gallery-head { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.gallery-head span:nth-child(2) { color: var(--accent-ink); }
.person .tile.simple { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }

.outfit { margin-top: 20px; display: grid; grid-template-columns: 1fr 64px 1fr; gap: 10px; align-items: center; }
.items { display: grid; gap: 8px; }
.item { width: 64px; height: 80px; border-radius: 10px; overflow: hidden; background: #f7f3ee; box-shadow: inset 0 0 0 1px var(--line); }
.item img { width: 100%; height: 100%; object-fit: cover; }
.plus { text-align: center; color: var(--faint); font-size: 13px; }

.emotes { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.credit { margin-top: 12px; font-size: 12px; color: var(--faint); }

/* Steps */
.steps { display: grid; gap: 14px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; padding: 22px 22px 22px 70px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 20px; top: 20px; width: 34px; height: 34px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; display: grid; place-items: center; }
.steps h3 { font-size: 18px; }
.steps p { margin-top: 6px; color: var(--muted); font-size: 15px; }

/* Code */
.code { margin-top: 28px; border-radius: var(--radius); background: var(--code-bg); color: var(--code-fg); overflow: hidden; box-shadow: var(--shadow); }
.code-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, .08); font: 500 12.5px var(--mono); color: #8d9ab0; }
.code-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a3448; }
.code-bar span { margin-left: 6px; }
.code pre { margin: 0; padding: 16px; overflow-x: auto; font: 13px/1.65 var(--mono); -webkit-overflow-scrolling: touch; }
.code .c { color: #6f7d94; } .code .s { color: #9fdcff; } .code .k { color: #f8c77a; } .code .p { color: #7ee2b8; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 14px; }
.stat b { display: block; font-size: clamp(1.7rem, 6vw, 2.6rem); letter-spacing: -0.04em; color: var(--ink); line-height: 1.05; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); }
.note { margin-top: 16px; font-size: 14px; color: var(--muted); max-width: 720px; }

/* Points */
.points { display: grid; gap: 14px; list-style: none; padding: 0; margin: 0; }
.points li { padding: 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.points h3 { font-size: 17px; }
.points p { margin-top: 6px; color: var(--muted); font-size: 15px; }
.icon { width: 36px; height: 36px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 12px; }
.icon svg { width: 20px; height: 20px; }

/* Pricing */
.price-tiles { display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr); }
.price-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 14px; }
.price-tile span { display: block; font-size: 14px; color: var(--muted); }
.price-tile b { display: block; margin-top: 4px; font-size: clamp(1.9rem, 7vw, 2.6rem); letter-spacing: -0.035em; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.price-tile b em { display: block; font-style: normal; font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.price-tile small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--faint); }
.plans { display: grid; gap: 14px; }
.plan { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; }
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.plan .badge { position: absolute; top: -11px; left: 22px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.plan h3 { font-size: 18px; }
.plan .amount { margin-top: 10px; font-size: 34px; font-weight: 700; letter-spacing: -0.035em; color: var(--ink); line-height: 1.1; }
.plan .amount small { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .sub { margin-top: 4px; color: var(--muted); font-size: 14px; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 8px; font-size: 15px; }
.plan li { padding-left: 24px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.plan .btn { margin-top: auto; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { padding: 13px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
thead th { font-size: 13px; color: var(--muted); font-weight: 600; background: var(--soft); white-space: nowrap; }
.prices td { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; color: var(--ink); }
.prices td.num { color: var(--muted); font-weight: 500; }
.prices tbody th { color: var(--ink); min-width: 150px; }
.prices tbody th span { display: block; font-weight: 400; font-size: 13px; color: var(--muted); }
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; font-weight: 600; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 13px; font-size: 22px; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 18px 18px; color: var(--muted); font-size: 15px; }
.faq details > div p + p { margin-top: 10px; }

/* Call to action */
.cta { border-radius: 28px; background: linear-gradient(155deg, #014f80 0%, #0270ad 55%, #1d93d1 100%); color: #fff; padding: 36px 24px; position: relative; overflow: hidden; }
.cta h2 { color: #fff; font-size: clamp(1.8rem, 5vw + .4rem, 2.8rem); }
.cta p { margin-top: 12px; color: rgba(255, 255, 255, .9); max-width: 560px; font-size: 17px; }
.cta .actions { margin-top: 24px; }
.cta .btn { background: #fff; color: var(--accent-ink); }
.cta .btn:hover { background: #eef8ff; box-shadow: none; }
.cta .btn-ghost { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .45); }
.cta .btn-ghost:hover { background: rgba(255, 255, 255, .2); color: #fff; }

/* Text pages: contact, legal */
.page-head { padding: 44px 0 8px; }
.page-head h1 { font-size: clamp(2.2rem, 7vw, 3.4rem); letter-spacing: -0.035em; }
.page-head .lead { margin-top: 14px; }
.legal { max-width: 760px; margin: 0 auto; padding: 44px 20px 72px; }
.legal h1 { font-size: clamp(2rem, 6.5vw, 3rem); letter-spacing: -0.035em; }
.legal .updated { margin-top: 10px; color: var(--faint); font-size: 14px; }
.legal .lead { margin-top: 16px; font-size: 18px; }
.legal h2 { font-size: 21px; margin: 40px 0 10px; letter-spacing: -0.015em; }
.legal h3 { font-size: 17px; margin: 24px 0 8px; }
.legal p, .legal ul, .legal ol { margin: 10px 0; }
.legal ul, .legal ol { padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal .table-wrap { margin: 16px 0; }
.legal table { font-size: 14.5px; }
.contact-grid { display: grid; gap: 14px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.contact-card h2 { font-size: 20px; }
.contact-card p { margin-top: 8px; color: var(--muted); }
.contact-card .actions { margin-top: 16px; }
.contact-card ul { margin: 12px 0 0; padding-left: 20px; color: var(--muted); }
.contact-card li { margin: 4px 0; }
.facts { margin: 14px 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; font-size: 15px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; color: var(--ink); }

/* Footer */
.foot { margin-top: 24px; border-top: 1px solid var(--line); background: var(--soft); padding: 44px 0 28px; font-size: 15px; }
.foot-grid { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
.foot-brand { grid-column: 1 / -1; }
.foot-brand p { margin-top: 8px; color: var(--muted); }
.foot-links { display: grid; gap: 8px; align-content: start; }
.foot-links h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin-bottom: 4px; }
.foot-links a { color: var(--text); text-decoration: none; }
.foot-links a:hover { color: var(--accent-ink); text-decoration: underline; }
.foot-legal { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 4px; color: var(--faint); font-size: 13px; }

@media (max-width: 419px) {
  .bar { gap: 10px; }
  .nav a { padding: 8px 8px; }
}
@media (min-width: 560px) {
  .bar .nav-cta { display: inline-flex; }
}
@media (min-width: 720px) {
  .nav a.nav-more { display: inline-block; }
  .wrap { padding: 0 32px; }
  .section { padding: 96px 0; }
  .hero { padding: 64px 0 88px; }
  .products { grid-template-columns: 1fr 1fr; }
  .products .card-avatar { grid-column: 1 / -1; }
  .card { padding: 28px; }
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .gallery-head { display: none; }
  .person { grid-template-columns: .82fr 1fr 1fr; }
  .person-label { display: block; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .points { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 2fr 1fr 1fr; }
  .foot-brand { grid-column: auto; }
  .cta { padding: 56px 48px; }
  .stat { padding: 24px 22px; }
  .price-tile { padding: 22px; }
}
@media (min-width: 1040px) {
  .hero-grid { grid-template-columns: 1.08fr .92fr; align-items: center; gap: 56px; }
  .hero-art { justify-self: end; }
  .products { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: repeat(4, 1fr); }
  .points { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* Pack cards and the credits list (pricing) */
.plan .per-job { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 0; font-size: 15px; border-top: 1px solid var(--line); }
.per-job li { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); }
.per-job li::before { content: none; }
.per-job span { color: var(--muted); }
.per-job b { color: var(--ink); font-variant-numeric: tabular-nums; }
.plan .sub b { color: var(--ink); }
.job-costs { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); max-width: 820px; }
.job-costs li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.job-costs li:last-child { border-bottom: 0; }
.job-costs b { color: var(--ink); display: block; }
.job-costs span { display: block; font-size: 14px; color: var(--muted); }
.job-costs strong { white-space: nowrap; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.split { display: grid; gap: 14px; margin-top: 14px; max-width: 820px; }
@media (min-width: 720px) { .split { grid-template-columns: 1fr 1fr; } }
.section.tight-top { padding-top: 32px; }
.section.no-top { padding-top: 0; }
.actions.mt { margin-top: 22px; }

/* The account pages (api.loopfig.com/account, api/routes/account.py): forms, panels, tables, the key shown once */
button.btn { font: inherit; font-weight: 600; cursor: pointer; }
.btn[disabled], .btn[disabled]:hover { opacity: .5; cursor: not-allowed; box-shadow: none; background: transparent; color: var(--muted); }
.btn:not(.btn-ghost)[disabled] { background: var(--accent); color: #fff; }
.auth { padding: 36px 20px 72px; }
.auth-card { max-width: 440px; margin: 0 auto; }
.auth-card h1 { font-size: clamp(1.9rem, 6vw, 2.4rem); letter-spacing: -0.03em; margin-bottom: 10px; }
.auth-card > p { margin-top: 14px; }
.auth-card .form { margin-top: 22px; }
.form { display: grid; gap: 16px; max-width: 440px; }
.form.inline { max-width: none; grid-template-columns: 1fr; align-items: end; margin-top: 18px; }
.field label { display: block; font-weight: 600; font-size: 14px; color: var(--ink); margin-bottom: 6px; }
.field input { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid #d5dae3; border-radius: var(--radius-sm); font: inherit; color: var(--ink); background: #fff; }
.field input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.field input:disabled { background: var(--soft); }
.field small { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); line-height: 1.5; }
.check input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
.alert { margin-top: 16px; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 15px; background: var(--accent-soft); color: var(--accent-ink); }
.alert.error { background: #fdeeee; color: #9b1c1c; }
.alert.ok { background: #e9f7ef; color: #11633a; }
.acct { padding: 28px 0 72px; }
.acct-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; }
.acct-head .eyebrow { margin-bottom: 6px; }
.acct-head h1 { font-size: clamp(1.9rem, 6vw, 2.6rem); letter-spacing: -0.03em; }
.acct-who { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); min-width: 0; }
.acct-who span { overflow-wrap: anywhere; }
.acct-nav { display: flex; gap: 2px; margin: 22px 0 6px; overflow-x: auto; border-bottom: 1px solid var(--line); -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.acct-nav a { flex: none; padding: 10px 12px; color: var(--muted); font-weight: 500; font-size: 15px; text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.acct-nav a:hover { color: var(--ink); }
.acct-nav a[aria-current] { color: var(--accent-ink); border-bottom-color: var(--accent); }
.acct .alert { margin: 16px 0 0; }
.panel { margin-top: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.panel h2, .acct-section h2 { font-size: 20px; letter-spacing: -0.015em; }
.panel > p { margin-top: 8px; }
.panel .table-wrap { margin-top: 14px; }
.panel .actions { margin-top: 14px; }
.panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.note-panel { background: var(--accent-soft); border-color: #cfe8f7; }
.note-panel p, .note-panel li { color: var(--text); }
.start { margin: 10px 0 0; padding-left: 22px; }
.start li { margin: 4px 0; }
.acct-grid { display: grid; gap: 0 16px; }
.overline { display: block; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.balance p { margin-top: 4px; color: var(--muted); }
.balance p b { font-size: clamp(2.6rem, 9vw, 3.4rem); font-weight: 750; letter-spacing: -0.04em; color: var(--ink); font-variant-numeric: tabular-nums; margin-right: 6px; }
.balance p b.bad { color: #b42318; }
.balance p.small { margin-top: 8px; }
.prices-mini { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; font-size: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.prices-mini li { display: flex; justify-content: space-between; gap: 8px; }
.prices-mini span { color: var(--muted); }
.prices-mini b { color: var(--ink); font-variant-numeric: tabular-nums; }
.acct-section { margin-top: 40px; }
.acct-section > p { margin-top: 8px; max-width: 720px; }
.acct-section .plans { margin-top: 18px; }
.acct-table { font-size: 14.5px; }
.acct-table th, .acct-table td { padding: 11px 12px; }
.acct-table tbody th, .acct-table tfoot th { color: var(--ink); font-weight: 600; }
.acct-table tbody th span, .acct-table td span { display: block; font-weight: 400; font-size: 13px; color: var(--muted); }
.acct-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.acct-table tfoot th, .acct-table tfoot td { border-top: 1px solid var(--line); background: var(--soft); }
.acct-table td.act { text-align: right; width: 1%; vertical-align: middle; }
.acct-table th span.mono { overflow-wrap: anywhere; word-break: break-all; }
.acct-table .date { white-space: nowrap; }
.usage-table { min-width: 0; }
@media (max-width: 719px) {
  .acct-nav a { padding: 10px 7px; font-size: 14.5px; }
  .acct-table { font-size: 14px; }
  .acct-table th, .acct-table td { padding: 10px 8px; }
  .usage-table thead th { font-size: 12px; }
}
.acct-table b.plus { color: #11633a; } .acct-table b.minus { color: var(--ink); }
.mono { font-family: var(--mono); font-size: 13px; }
.seg { display: flex; gap: 4px; }
.seg a { padding: 5px 10px; border-radius: 999px; font-size: 14px; color: var(--muted); text-decoration: none; border: 1px solid var(--line); }
.seg a[aria-current] { background: var(--accent-soft); border-color: #cfe8f7; color: var(--accent-ink); font-weight: 600; }
.reveal { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.secret-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.secret { flex: 1 1 260px; min-width: 0; font: 14px/1.5 var(--mono); word-break: break-all; background: var(--code-bg); color: var(--code-fg); padding: 12px 14px; border-radius: var(--radius-sm); }
.panel .secret-row + p { margin-top: 10px; }
@media (min-width: 720px) {
  .auth { padding-top: 64px; }
  .acct { padding-top: 44px; }
  .panel { padding: 24px; }
  .acct-grid { grid-template-columns: 1fr 1.25fr; align-items: start; }
  .form.inline { grid-template-columns: minmax(0, 340px) auto; justify-content: start; }
}
