/* Crystallab web client (B6.1). The Crystallab design system:
   1. tokens (:root) — the only place values live: 13 colours, 8 spacing steps, 4 radii, 1 shadow;
   2. components — the design system's component styles, one section each;
   3. app — layout of this page: workspace, orbit, chrome positions, dialogs, guide, account and plans screens.
   No raw colours below :root. Spacing uses the 4 8 12 16 24 32 40 56 scale. No inline styles anywhere (the CSP in
   _headers allows style sheets from 'self' and Google Fonts only); widths that change are set through the CSSOM. */
:root {
  /* colour */
  --canvas: #f3f1ed;
  --card: #ffffff;
  --line: #e7e5e4;
  --line-strong: #d6d3cd;
  --ink: #292524;
  --muted: #6b645f;
  --accent: #7a3df0;
  --accent-soft: #f1eaff;
  --ok: #16a34a;
  --warn: #d97706;
  --danger: #b91c1c;
  --danger-soft: #fef2f2;
  --backdrop: rgba(41, 37, 36, 0.18);
  /* spacing */
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-24: 24px;
  --space-32: 32px;
  --space-40: 40px;
  --space-56: 56px;
  /* radius */
  --r-ctl: 8px;
  --r-card: 12px;
  --r-dlg: 16px;
  --r-round: 50%;
  /* depth */
  --shadow: 0 8px 16px rgba(41, 37, 36, 0.08);
  /* type */
  --font-sans: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Roboto Mono", monospace;
  /* motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ═════════════════════════════ Components ═════════════════════════════ */

/* ── Base ─────────────────────────────────────────────── */
* { box-sizing: border-box; -webkit-font-smoothing: antialiased; }
html, body { margin: 0; height: 100%; overflow: clip; background: var(--canvas); color: var(--ink); font-family: var(--font-sans); font-size: 13px; line-height: 18px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
code { font-family: var(--font-mono); font-size: 12px; line-height: 16px; color: var(--muted); }
svg { flex-shrink: 0; }
.is-hidden { display: none !important; }
.caps { font-weight: 700; font-size: 11px; line-height: 14px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.tag { font-size: 11px; line-height: 14px; color: var(--muted); }
.fine, .lead, .note { margin: 0; color: var(--muted); }
.err { color: var(--danger); }
.stack { display: flex; flex-direction: column; gap: 8px; }
.split { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 1s linear infinite; }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; } }

/* ── Logo ─────────────────────────────────────────────── */
.logo { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0; border: 0; background: transparent; color: var(--ink); font-weight: 700; font-size: 20px; line-height: 24px; letter-spacing: .02em; text-decoration: none; }
.logo-mark { color: var(--accent); }
.logo-mark .ring { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.logo-mark .drone { fill: currentColor; }
.logo.inverse, .logo.inverse .logo-mark { color: var(--card); }
.logo.mono .logo-mark { color: var(--ink); }

/* ── AccountButton ────────────────────────────────────── */
.account { display: flex; align-items: center; gap: 8px; padding: 0; border: 0; background: transparent; text-align: left; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--card); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-weight: 600; color: var(--ink); }
.avatar.big { width: 48px; height: 48px; font-size: 20px; font-weight: 700; }
.account-text { display: flex; flex-direction: column; color: var(--muted); }
.account-name { font-weight: 600; color: var(--ink); }
.account:hover .account-name { text-decoration: underline; }

/* ── Button ───────────────────────────────────────────── */
.btn { height: 44px; padding: 0 16px; border-radius: var(--r-ctl); border: 0; font-weight: 600; }
.btn.solid { background: var(--accent); color: var(--card); }
.btn.outline { background: var(--card); border: 1px solid var(--line-strong); color: var(--ink); }
.btn.block { width: 100%; }
.btn.ghost, .btn.danger { height: 36px; }
.btn.ghost { background: var(--card); border: 1px solid var(--line); color: var(--ink); font-weight: 400; }
.btn.danger { background: var(--danger); color: var(--card); }
.btn:disabled { color: var(--muted); cursor: not-allowed; }
.btn.solid:disabled { background: var(--line); }

/* ── Link ─────────────────────────────────────────────── */
.link { padding: 12px 0; border: 0; background: transparent; color: var(--accent); font-weight: 600; }
.link.plain { color: var(--muted); font-weight: 400; text-decoration: underline; }
.link.danger { padding: 12px; color: var(--danger); font-weight: 400; }
.links { display: flex; gap: 16px; }

/* ── IconButton ───────────────────────────────────────── */
.icon-btn, .close-btn, .x-btn { width: 44px; height: 44px; border-radius: var(--r-ctl); display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.icon-btn { background: var(--card); border: 1px solid var(--line); color: var(--muted); transition: border-color .15s ease; }
.icon-btn:hover { border-color: var(--line-strong); }
.close-btn { background: transparent; border: 0; color: var(--muted); }
.x-btn { position: relative; margin-right: -12px; background: transparent; border: 0; color: var(--danger); }

/* ── Row ──────────────────────────────────────────────── */
.row { position: relative; width: 100%; min-width: 0; height: 48px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--card); display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); text-align: left; text-decoration: none; overflow: hidden; transition: border-color .15s ease; }
.row:hover { border-color: var(--line-strong); }
.row.soft { background: var(--canvas); }
.row .name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .hint, .row .lhs { display: flex; align-items: center; gap: 8px; }
.row .lhs { position: relative; }
.row .val { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; }
.row .val small { font-size: 13px; font-weight: 400; color: var(--muted); }
.row .val svg { color: var(--muted); }
.row.run { border: 0; background: var(--accent); color: var(--card); }
.row.run b { margin-right: 8px; }
.row.run .cost { flex-shrink: 0; white-space: nowrap; }
.row.run:disabled { background: var(--line); color: var(--muted); cursor: not-allowed; }
.bar { position: absolute; inset: 0 auto 0 0; background: var(--accent-soft); transition: width .1s linear; }
@media (hover: none) { .row:hover, .icon-btn:hover { border-color: var(--line); } }

/* ── Field ────────────────────────────────────────────── */
.form { display: flex; flex-direction: column; }
.form h1 { margin: 0 0 12px; font-size: 20px; line-height: 24px; }
.form > p { margin: 0 0 24px; color: var(--muted); }
.form label { margin-bottom: 8px; }
.form input { height: 44px; margin-bottom: 16px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--card); font-size: 16px; color: var(--ink); }
.form .btn { margin-top: 8px; }

/* ── ConverterCard ────────────────────────────────────── */
.card { width: min(calc(100vw - 32px), var(--card-w, 340px)); padding: 32px 32px 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 16px; transition: width .2s ease; }
@media (max-width: 480px) { .card { padding: 24px 24px 16px; } }
.files { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r-ctl); overflow: hidden; }
.files li + li { border-top: 1px solid var(--line); }
.files .item { min-height: 44px; padding: 0 16px; border-radius: 0; justify-content: space-between; text-decoration: none; }
.files .tag { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.files .tag svg { color: var(--accent); }
.usage { align-self: flex-end; display: inline-flex; align-items: center; margin-right: -8px; color: var(--muted); }
.usage.live { color: var(--accent); }
.ring-btn { width: 44px; height: 44px; padding: 0; border: 0; background: transparent; display: inline-flex; align-items: center; justify-content: center; }
.ring-btn > span { width: 24px; height: 24px; border-radius: var(--r-ctl); background: var(--card); border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; }
.ring-btn .track { fill: none; stroke: var(--line); stroke-width: 1.3; }
.ring-btn .fill { fill: none; stroke: var(--accent); stroke-width: 1.3; stroke-linecap: round; }

/* ── Status ───────────────────────────────────────────── */
.status { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.status small { font-size: 13px; font-weight: 400; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex-shrink: 0; }
.dot.warn { background: var(--warn); }
.dot.bad { background: var(--danger); }
.confirm { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; border-radius: var(--r-ctl); background: var(--danger-soft); color: var(--danger); }
.confirm > span:last-child { display: flex; gap: 4px; }

/* ── Menu ─────────────────────────────────────────────── */
.menu { padding: 8px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px; }
.item { width: 100%; min-height: 40px; padding: 0 12px; border: 0; border-radius: var(--r-ctl); background: transparent; display: flex; align-items: center; gap: 8px; text-align: left; color: var(--ink); }
@media (max-width: 640px) { .item { min-height: 44px; } }
.item:hover, .item.on { background: var(--canvas); }
.item.locked { color: var(--muted); }
.item svg { color: var(--muted); }
.item .grow { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 4px 0; }
.item .label { flex: 1; }
.check { width: 11px; height: 11px; flex-shrink: 0; border: 1px solid var(--muted); }
.check.on { background: var(--ink); border-color: var(--ink); }
.check.on.pro { background: var(--accent); border-color: var(--accent); }
.item.locked .check { border-color: var(--line-strong); }
.radio { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.item.on .radio { background: var(--accent); }
.sep { height: 1px; margin: 4px 0; background: var(--canvas); }

/* ── NumberField (the USD file rate) ──────────────────── */
.field { height: 48px; padding: 0 8px 0 16px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--canvas); display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); }
.field input { width: 112px; height: 32px; padding: 0 8px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--card); text-align: right; font-weight: 600; color: var(--ink); }
.field input:invalid { border-color: var(--danger); }

/* ── UsageCard ────────────────────────────────────────── */
.usage-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.u-card { padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); display: flex; flex-direction: column; gap: 8px; }
.u-card b { font-size: 20px; line-height: 24px; }
.meter { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--accent); }

/* ── RunItem ──────────────────────────────────────────── */
.runs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.run-item { padding: 12px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.run-main { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 4px; color: var(--muted); }
.run-main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.run-state { flex: 0 1 140px; display: flex; align-items: center; gap: 8px; }
.run-when { flex: 0 1 150px; display: flex; flex-direction: column; gap: 4px; color: var(--muted); }
.run-act { margin-left: auto; display: flex; gap: 4px; }
@media (max-width: 640px) { .run-act { width: 100%; margin-left: 0; } .run-act .btn { flex: 1; } }
.empty { padding: 24px; border: 1px dashed var(--line-strong); border-radius: var(--r-card); text-align: center; color: var(--muted); }

/* ── Plan ─────────────────────────────────────────────── */
.plans-grid { display: flex; flex-wrap: wrap; align-items: stretch; }
.plan { flex: 1 1 280px; min-width: 0; margin-top: 24px; padding: 32px; display: flex; flex-direction: column; gap: 24px; }
.plan.featured { margin-top: 0; background: var(--accent); color: var(--card); border-radius: var(--r-dlg); }
.plan-top { display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: 16px; line-height: 20px; }
.plan-top span { font-size: 11px; font-weight: 600; }
.plan-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.plan-price b { font-size: 44px; line-height: 1; letter-spacing: -1px; white-space: nowrap; }
.plan-top span, .plan-pitch, .plan-price span, .plan-quota { color: var(--muted); }
.plan-quota { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.plan-quota b { font-weight: 600; color: var(--ink); }
.plan.featured .plan-top span, .plan.featured .plan-pitch, .plan.featured .plan-price span, .plan.featured .plan-quota, .plan.featured .plan-quota b { color: var(--card); }
.plan.featured .plan-quota { border-top-color: var(--accent-soft); }
.plan-cta { height: 44px; border: 1px solid var(--line-strong); border-radius: var(--r-ctl); background: var(--card); color: var(--ink); font-weight: 600; }
.plan.featured .plan-cta { border: 0; color: var(--accent); }
@media (max-width: 640px) { .plan { margin-top: 0; padding: 24px; } }

/* ═════════════════════════════ App ═════════════════════════════ */

/* ── Workspace ────────────────────────────────────────── */
#workspace { position: relative; width: 100%; height: 100vh; height: 100dvh; min-height: 560px; overflow: clip;
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px); --safe-l: env(safe-area-inset-left, 0px); --safe-r: env(safe-area-inset-right, 0px); }
#workspace.drag::after { content: ""; position: absolute; inset: 12px; border: 1.5px dashed var(--accent); border-radius: var(--r-dlg); pointer-events: none; z-index: 60; }

/* ── Orbit ────────────────────────────────────────────── */
.orbit { position: absolute; width: clamp(950px, 99vw, 1800px); height: clamp(444px, 46.25vw, 840px); right: clamp(-680px, -46.5vw, -490px); top: 50%; transform: translateY(-38%) rotate(49deg); pointer-events: none; z-index: 1; transition: transform .35s var(--ease), right .35s var(--ease); }
.orbit svg { display: block; overflow: visible; }
.orbit.shifted { right: clamp(-730px, -50vw, -540px); transform: translateY(-32%) rotate(49deg); }
.orbit-path { fill: none; stroke: var(--accent); stroke-opacity: .7; stroke-width: 1.5; }
.orbit-halo { fill: var(--accent-soft); }
.orbit-drone { fill: var(--accent); }

/* ── Chrome: logo, guide button, account ──────────────── */
.brand { position: absolute; left: var(--space-24); top: var(--space-24); z-index: 20; }
.corner { position: absolute; right: var(--space-24); top: var(--space-24); z-index: 20; }
#workspace > .account { position: absolute; left: var(--space-24); bottom: var(--space-24); z-index: 20; }

/* ── Card and its menus ───────────────────────────────── */
.anchor { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: var(--space-24); pointer-events: none; z-index: 15; transition: transform .3s var(--ease); }
@media (min-width: 960px) { .anchor.guide-on { transform: translateX(-140px); } }
.card-wrap { position: relative; pointer-events: auto; }
.card-wrap .menu, .menu.user { position: absolute; z-index: 30; }
.menu.side { left: calc(100% + 16px); top: 88px; width: 240px; }
.menu.drones { top: 32px; width: 260px; }
.menu.user { left: var(--space-24); bottom: 76px; width: 220px; z-index: 35; }
@media (max-width: 820px) { .menu.side { left: auto; right: 0; top: calc(100% + 8px); } }
.item.strong { font-weight: 600; }
.item.accent { color: var(--accent); }
.item.muted { color: var(--muted); }
.menu.ends { width: 260px; }
@media (min-width: 821px) { .menu.ends { top: 144px; } }
#workspace > .account-signin { position: absolute; left: var(--space-24); bottom: var(--space-24); z-index: 20; }
.ring-btn svg { transform: rotate(-90deg); }
.files .size { color: var(--muted); font-size: 11px; }
.auth-state { min-height: 18px; margin-top: var(--space-16); }
.auth .corner-x { z-index: 2; }

/* ── Quota popover ────────────────────────────────────── */
.usage { position: relative; }
.pop { position: absolute; right: 8px; bottom: calc(100% + 4px); width: min(286px, calc(100vw - 48px)); padding: var(--space-24); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: var(--space-16); z-index: 40; opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s ease, transform .15s ease, visibility .15s ease; font-size: 11px; line-height: 14px; color: var(--muted); }
.usage:hover .pop, .usage:focus-within .pop { opacity: 1; visibility: visible; transform: none; }
.pop b { display: block; margin-bottom: var(--space-8); font-size: 13px; color: var(--ink); }
.pop p { margin: 0; font-size: 13px; line-height: 18px; color: var(--muted); }
.pop .split > span:first-child { font-weight: 600; }

/* ── Starter guide ────────────────────────────────────── */
.guide { position: absolute; right: var(--space-24); top: 50%; transform: translateY(-50%); width: min(400px, calc(100vw - 32px)); height: min(500px, calc(100% - 96px)); padding: var(--space-32); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); display: flex; flex-direction: column; z-index: 25; }
.guide-dim { display: none; position: absolute; inset: 0; z-index: 24; border: 0; background: var(--backdrop); }
.guide-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-32); font-weight: 600; font-size: 11px; color: var(--muted); }
.guide h2 { margin: 0 0 var(--space-16); font-size: 16px; line-height: 20px; }
.guide ol { margin: 0; padding-left: var(--space-16); display: flex; flex-direction: column; gap: var(--space-16); color: var(--muted); }
.guide li::marker { font-variant-numeric: proportional-nums; font-feature-settings: "tnum" 0; }
.guide strong { color: var(--ink); }
.guide-foot { margin-top: auto; padding-top: var(--space-24); border-top: 1px solid var(--canvas); display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: var(--muted); }
@media (max-width: 640px) {
  .guide { left: 0; right: 0; top: auto; bottom: 0; transform: none; width: auto; height: auto; max-height: 80%; padding: var(--space-24); border-radius: var(--r-dlg) var(--r-dlg) 0 0; }
  .guide-dim:not(.is-hidden) { display: block; }
}

/* ── Dialogs ──────────────────────────────────────────── */
.backdrop { position: absolute; inset: 0; padding: var(--space-16); background: var(--backdrop); display: flex; align-items: center; justify-content: center; z-index: 50; }
.auth, .plans, .sheet { max-height: calc(100% - 32px); overflow-y: auto; overscroll-behavior: contain; }
.auth, .plans, .sheet { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-dlg); box-shadow: var(--shadow); }
.corner-x { position: absolute; right: var(--space-12); top: var(--space-12); }

/* sign in */
.auth { width: min(760px, 100%); display: grid; grid-template-columns: 340px 1fr; }
.auth-art { position: relative; height: 500px; background: var(--canvas); border-right: 1px solid var(--line); overflow: clip; }
.geo { position: absolute; left: 50%; top: 50%; width: 260px; height: 260px; transform: translate(calc(-50% - 12px), calc(-50% - 8px)); }
.geo-ring { width: 100%; height: 100%; border-radius: 50%; border: 1px dashed var(--accent); display: flex; align-items: center; justify-content: center; }
.geo-inner { width: 200px; height: 200px; border-radius: 50%; border: 2px solid var(--accent); }
.geo-line { position: absolute; border-top: 1px solid var(--accent); opacity: .3; transform-origin: left center; }
.geo-line.a { left: 18px; top: 120px; width: 280px; transform: rotate(55deg); }
.geo-line.b { left: 58px; top: 220px; width: 260px; transform: rotate(-54deg); }
.geo-dot { position: absolute; border-radius: 50%; background: var(--accent); }
.geo-dot.grey { left: 138px; top: 5px; width: 8px; height: 8px; background: var(--line-strong); }
.geo-dot.big { left: 203px; top: 69px; width: 12px; height: 12px; }
.geo-dot.small { left: 29px; top: 203px; width: 10px; height: 10px; }
.auth-cap { position: absolute; left: var(--space-24); bottom: var(--space-24); display: flex; flex-direction: column; font-size: 11px; line-height: 14px; letter-spacing: .2px; text-transform: uppercase; color: var(--muted); }
.auth .form { padding: var(--space-40); justify-content: center; }
.auth-alt { margin-top: var(--space-16); text-align: center; color: var(--muted); }
.auth-alt .link { padding: var(--space-12) var(--space-4); }
@media (max-width: 740px) { .auth { grid-template-columns: 1fr; } .auth-art { height: 200px; border-right: 0; border-bottom: 1px solid var(--line); } }

/* plans */
.plans { width: min(1120px, 100%); padding: var(--space-56) var(--space-40) var(--space-40); display: flex; flex-direction: column; gap: var(--space-40); }
.compare-wrap { overflow-x: auto; }
.compare { width: 100%; min-width: 720px; border-collapse: collapse; }
.compare thead th { padding: 0 var(--space-24) var(--space-12); border-bottom: 1px solid var(--ink); text-align: left; font-size: 11px; line-height: 14px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.compare thead th:first-child, .compare tbody th { padding-left: 0; }
.compare thead th.pro { color: var(--accent); }
.compare tbody th { width: 26%; padding: var(--space-16) 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; color: var(--muted); }
.compare td { padding: var(--space-16) var(--space-24); border-bottom: 1px solid var(--line); }
.compare td.pro { background: var(--accent-soft); font-weight: 600; }

/* account */
.sheet { width: min(960px, 100%); padding: var(--space-32); display: flex; flex-direction: column; gap: var(--space-32); }
.acc-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-16); padding-right: var(--space-40); }
.acc-head > div { flex: 1 1 200px; display: flex; flex-direction: column; gap: var(--space-4); color: var(--muted); }
.acc-head h2 { margin: 0; font-size: 20px; line-height: 24px; color: var(--ink); }
.acc-section { display: flex; flex-direction: column; gap: var(--space-8); }
.acc-title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-8) var(--space-12); color: var(--muted); }
.acc-title h3 { margin: 0; font-size: 16px; line-height: 20px; color: var(--ink); }
.acc-title h3 span { font-weight: 400; color: var(--muted); }
.run-main small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Screens ──────────────────────────────────────────── */
/* phones (iPhone, Android): dialogs fill the screen, chrome hugs the safe area */
@media (max-width: 640px) {
  .backdrop { padding: 0; }
  .sheet, .plans, .auth { width: 100%; height: 100%; max-height: none; border: 0; border-radius: 0; padding-top: calc(var(--space-56) + var(--safe-t)); padding-bottom: calc(var(--space-24) + var(--safe-b)); }
  .sheet, .plans { padding-left: var(--space-24); padding-right: var(--space-24); }
  .auth { display: block; }
  .corner-x { top: calc(var(--space-8) + var(--safe-t)); right: var(--space-8); }
  .brand { top: calc(var(--space-16) + var(--safe-t)); left: calc(var(--space-16) + var(--safe-l)); }
  .corner { top: calc(var(--space-16) + var(--safe-t)); right: calc(var(--space-16) + var(--safe-r)); }
  #workspace > .account, #workspace > .account-signin { bottom: calc(var(--space-16) + var(--safe-b)); left: calc(var(--space-16) + var(--safe-l)); }
  .menu.user { bottom: calc(68px + var(--safe-b)); left: var(--space-16); }
  .anchor { padding: var(--space-16); }
  .guide { padding-bottom: calc(var(--space-24) + var(--safe-b)); }
  .orbit { opacity: .8; }
}
/* small phones (360 px Android) */
@media (max-width: 380px) {
  .row { padding: 0 var(--space-12); }
  .split { flex-wrap: wrap; }
}
/* tablets (iPad): menus open under the card, dialogs keep a margin */
@media (min-width: 641px) and (max-width: 1100px) {
  .plans, .sheet { width: calc(100% - 48px); }
}
