/* Kapsul Waktu. Editorial-greeting app style (taste v2), j-card world kept in the lined paper,
   the handwriting and the Sisi A / Sisi B card. Colour sits on data and one signal, not on chrome. */

:root {
  --ground: #ffffff;
  --surface: #f4f6f9;     /* inlay-stock grey-blue, one step off white */
  --raised: #ffffff;
  --active: #eaedf2;
  --border: #e3e7ee;
  --rule: #edf0f5;
  --control: #cdd3dd;
  --text: #1b1e24;
  --muted: #5b6270;
  --hand: #1f3c88;        /* ballpoint ink: only the user's own words */
  --paper-rule: #dde4f0;  /* ruled lines of the inlay */
  --accent: #1b6e66;      /* the one signal: ready to open, selected, links */
  --accent-ink: #ffffff;
  --accent-tint: #dff1ee;
  --accent-tint-ink: #0b3d37;
  --negative: #b42318;
  --negative-tint: #fdecea;
  --negative-ink: #7a1d14;

  --font: "Hanken Grotesk", system-ui, sans-serif;
  --font-hand: "Patrick Hand", "Segoe Print", cursive;

  --r-card: 22px; --r-row: 14px; --r-input: 10px;
  --gap: 16px; --pad: 20px;
  --line: 36px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { color-scheme: light; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--text); font: 400 14px/20px var(--font); min-height: 100dvh; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
* { scrollbar-color: var(--control) transparent; scrollbar-width: thin; }

.ic { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- shell: open plane ---------- */
.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100dvh; }
.rail {
  position: sticky; top: 0; height: 100dvh; background: var(--ground); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; padding: 24px 12px 20px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); padding: 0 8px; margin-bottom: 28px; }
.brand img { height: 46px; width: auto; display: block; }
.nav { display: flex; flex-direction: column; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav a { display: flex; align-items: center; gap: 10px; min-height: 34px; padding: 0 10px; color: var(--muted); text-decoration: none; border-radius: 9px; font-size: 14px; }
.nav a:hover { background: var(--surface); color: var(--text); }
.nav a[aria-current="page"] { background: var(--active); color: var(--text); font-weight: 500; }
.rail-foot { margin-top: auto; padding: 0 8px; font-size: 12px; line-height: 16px; color: var(--muted); }
.rail-foot .lang { display: inline-flex; background: var(--surface); border-radius: 999px; padding: 3px; margin-bottom: 10px; }
.lang button { min-height: 28px; min-width: 40px; border: 0; background: transparent; color: var(--muted); border-radius: 999px; cursor: pointer; font-size: 12px; font-weight: 500; }
.lang button[aria-pressed="true"] { background: var(--raised); color: var(--text); }
.tabbar { display: none; }

main { padding: 72px 32px 96px; max-width: 1100px; margin-inline: auto; width: 100%; }
main:focus, h1:focus { outline: none; }
h1 { font: 500 28px/34px var(--font); letter-spacing: -0.01em; margin: 0 0 6px; text-wrap: balance; color: var(--text); }
h1.title { font-size: 24px; line-height: 30px; font-weight: 600; }
h2 { font: 600 14px/20px var(--font); margin: 0; color: var(--text); }
h3 { font: 600 16px/24px var(--font); margin: 0 0 4px; }
.sub { color: var(--muted); margin: 0 0 28px; max-width: 62ch; text-wrap: pretty; }
.muted { color: var(--muted); }
.label { font: 500 13px/16px var(--font); color: var(--muted); }

/* ---------- buttons & fields ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 0 18px;
  border-radius: 999px; border: 1px solid var(--text); background: var(--text); color: #fff; cursor: pointer; text-decoration: none;
  font: 500 14px/20px var(--font); transition: background 0.16s, border-color 0.16s, transform 0.16s var(--ease);
}
.btn:hover { background: #343944; border-color: #343944; }
.btn:active { transform: translateY(1px); }
.btn.secondary { background: var(--active); border-color: var(--active); color: var(--text); }
.btn.secondary:hover { background: #dfe3ea; border-color: #dfe3ea; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); padding: 0 12px; }
.btn.ghost:hover { background: var(--surface); color: var(--text); }
.btn.signal { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.signal:hover { background: #155850; border-color: #155850; }
.btn.danger { background: transparent; border-color: var(--control); color: var(--negative); }
.btn.danger:hover { background: var(--negative-tint); border-color: var(--negative); }
.btn.big { min-height: 46px; padding: 0 24px; font-size: 15px; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

.field { display: grid; gap: 8px; margin-bottom: 20px; }
.field > label, .field > .label { font: 500 14px/20px var(--font); color: var(--text); }
.input, .select {
  width: 100%; min-height: 40px; padding: 8px 12px; background: #fff; color: var(--text);
  border: 1px solid var(--control); border-radius: var(--r-input);
}
.input:hover, .select:hover { border-color: #aeb6c4; }
.input:focus, .select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.input::placeholder { color: #6b7280; }
.hint { font-size: 13px; line-height: 18px; color: var(--muted); margin: 0; text-wrap: pretty; }
.err { font-size: 13px; line-height: 18px; color: var(--negative); margin: 0; font-weight: 500; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); flex: none; }

.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 16px; border: 1px solid var(--control); border-radius: 999px; background: #fff; cursor: pointer; font-size: 14px; color: var(--text); }
.seg input:hover + span { background: var(--surface); }
.seg input:checked + span { background: var(--text); border-color: var(--text); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; background: var(--surface); border-radius: var(--r-row); font-size: 13px; line-height: 18px; color: var(--muted); margin: 0 0 20px; }
.note .ic { margin-top: 1px; color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 4px; min-height: 20px; padding: 0 8px; border-radius: 999px; background: var(--active); color: #3d424d; font-size: 12px; line-height: 16px; font-weight: 500; white-space: nowrap; }
.pill.ready { background: var(--accent-tint); color: var(--accent-tint-ink); }

/* ---------- lined inlay paper ---------- */
.lined {
  font: 400 23px/var(--line) var(--font-hand); color: var(--hand);
  background: repeating-linear-gradient(to bottom, transparent 0 calc(var(--line) - 1px), var(--paper-rule) calc(var(--line) - 1px) var(--line)) 0 0 / 100% var(--line) local; /* taste-skill-ignore: ruled inlay paper */
  background-color: #fff; border: 1px solid var(--control); border-radius: var(--r-row); padding: 0 18px; width: 100%;
  resize: vertical; min-height: calc(var(--line) * 8); display: block;
}
.lined:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.lined::placeholder { color: #7b839a; font-weight: 400; }
.lined.read { border-color: var(--border); white-space: pre-wrap; overflow-wrap: anywhere; min-height: calc(var(--line) * 4); }

/* ---------- 12-column grid, tiles, panels ---------- */
.g12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); margin-bottom: var(--gap); }
.c3 { grid-column: span 3; } .c4 { grid-column: span 4; } .c5 { grid-column: span 5; } .c6 { grid-column: span 6; }
.c7 { grid-column: span 7; } .c8 { grid-column: span 8; } .c9 { grid-column: span 9; } .c12 { grid-column: span 12; }
.tile { background: var(--surface); border-radius: var(--r-card); padding: 16px; min-height: 128px; display: flex; flex-direction: column; justify-content: space-between; }
.tile .t-label { font-size: 13px; line-height: 16px; color: var(--muted); }
.tile .t-val { font: 400 32px/36px var(--font); font-variant-numeric: tabular-nums; }
.tile .t-cap { font-size: 13px; line-height: 16px; color: var(--muted); }
.tile.signal .t-val { color: var(--accent); }
.panel { background: var(--surface); border-radius: var(--r-card); padding: var(--pad); }
.panel.c3 { display: flex; flex-direction: column; }
.panel.c3 .btn { margin-top: auto; align-self: flex-start; }
.panel-h { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.panel-h .count { background: var(--raised); border-radius: 999px; min-height: 20px; padding: 0 8px; font-size: 12px; line-height: 20px; color: var(--muted); font-variant-numeric: tabular-nums; }
.panel-h a { margin-left: auto; font-size: 13px; }
.cta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 40px; }

/* row cards: the spines of the shelf */
.shelf { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.spine {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; min-height: 63px; padding: 10px 16px;
  background: var(--raised); border: 1px solid var(--border); border-radius: var(--r-row); text-decoration: none; color: inherit;
  transition: border-color 0.16s;
}
.spine:hover { border-color: var(--control); }
.spine.ready { border-color: var(--accent); }
.spine-title { display: block; font: 400 22px/26px var(--font-hand); color: var(--hand); overflow-wrap: anywhere; }
.spine-meta { display: flex; gap: 6px 8px; flex-wrap: wrap; align-items: center; font-size: 13px; line-height: 18px; color: var(--muted); margin-top: 2px; }
.counter { text-align: right; white-space: nowrap; font-size: 13px; line-height: 18px; color: var(--muted); }
.counter b { display: block; font: 500 20px/24px var(--font); font-variant-numeric: tabular-nums; color: var(--text); }
.spine.ready .counter b { color: var(--accent); font-size: 14px; line-height: 20px; }
.tape { height: 6px; background: var(--active); border-radius: 3px; position: relative; overflow: hidden; margin-top: 8px; }
.tape i { position: absolute; inset: 0 auto 0 0; background: var(--text); border-radius: 3px; }
.tape.unknown { background: transparent; border: 1px dashed var(--control); }
.tape.unknown i { display: none; }

.empty { display: grid; justify-items: start; gap: 8px; padding: 12px 0 4px; max-width: 46ch; }
.empty svg.cass { width: 96px; height: auto; margin-bottom: 8px; }
.empty p { margin: 0; color: var(--muted); }
.next-title { display: block; font: 400 28px/32px var(--font-hand); color: var(--hand); text-decoration: none; margin: 2px 0 14px; overflow-wrap: anywhere; }
.big-num { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.big-num b { font: 400 40px/44px var(--font); font-variant-numeric: tabular-nums; }
.big-num span { color: var(--muted); }
.prompt-q { font: 400 22px/28px var(--font-hand); color: var(--hand); margin: 0 0 16px; text-wrap: balance; }
.banner { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--surface); padding: 14px 18px; border-radius: var(--r-row); margin-bottom: var(--gap); }
.banner p { margin: 0; max-width: 60ch; }

/* ---------- list filters ---------- */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 20px; }
.tabs button { min-height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; font-size: 14px; color: var(--muted); }
.tabs button:hover { background: var(--surface); color: var(--text); }
.tabs button[aria-selected="true"] { background: var(--active); color: var(--text); font-weight: 500; }

/* ---------- wizard ---------- */
.stepper { display: flex; gap: 4px; list-style: none; margin: 0 0 32px; padding: 0; flex-wrap: wrap; }
.stepper li { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 14px; border-radius: 999px; color: var(--muted); font-size: 14px; }
.stepper li .n { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--active); font-size: 12px; font-variant-numeric: tabular-nums; }
.stepper li.done .n { background: var(--accent-tint); color: var(--accent-tint-ink); }
.stepper li[aria-current="step"] { background: var(--active); color: var(--text); font-weight: 500; }
.stepper li[aria-current="step"] .n { background: var(--text); color: #fff; }
.stepper .ic { width: 12px; height: 12px; stroke-width: 2.4; }
.wiz { max-width: 720px; }
.wiz h2 { font-size: 18px; line-height: 24px; margin-bottom: 14px; }
.wiz-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.savestate { font-size: 13px; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 36px; padding: 4px 14px; border: 1px solid var(--control); border-radius: 999px; background: #fff; cursor: pointer; font: 400 19px/24px var(--font-hand); color: var(--hand); }
.chip:hover { background: var(--surface); }
.attach { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.attach img { max-height: 140px; border-radius: 10px; }
.rec-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--negative); }
.rows { display: grid; gap: 8px; margin-bottom: 12px; }
.row { display: flex; gap: 8px; }
.row .input { flex: 1; }
.contrib { background: var(--surface); padding: 12px 16px; border-radius: var(--r-row); }
.contrib b { font-weight: 600; }
.contrib p { margin: 2px 0 0; font: 400 21px/26px var(--font-hand); color: var(--hand); white-space: pre-wrap; }
.when-out { font: 400 26px/32px var(--font-hand); color: var(--hand); margin: 4px 0; }
.review { background: var(--surface); border-radius: var(--r-card); max-width: 520px; padding: 20px; }

/* ---------- j-card detail ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--gap); align-items: start; }
.crumb { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 16px; font-size: 13px; color: var(--muted); text-decoration: none; }
.crumb:hover { color: var(--text); }
.flip-wrap { perspective: 1400px; }
.jcard { border: 1px solid var(--border); border-radius: var(--r-card); background: var(--raised); backface-visibility: hidden; overflow: hidden; }
.jcard-head { padding: 24px 28px 14px; display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.jcard-title { font: 400 clamp(30px, 5vw, 40px)/1.05 var(--font-hand); color: var(--hand); margin: 0; overflow-wrap: anywhere; }
.jcard-meta { padding: 0 28px 16px; font-size: 13px; line-height: 18px; color: var(--muted); display: flex; gap: 4px 16px; flex-wrap: wrap; align-items: center; }
.jcard-body { padding: 8px 28px 28px; }
.jcard-body h2 { margin-bottom: 8px; }
.sealed-lines { display: grid; margin: 4px 0 8px; }
.sealed-lines i { display: block; height: var(--line); position: relative; border-bottom: 1px solid var(--paper-rule); }
.sealed-lines i::after { content: ""; position: absolute; left: 0; top: 12px; height: 12px; width: var(--w); background: var(--active); border-radius: 6px; }
.side { position: sticky; top: 24px; display: grid; gap: var(--gap); }
.facts { display: grid; gap: 14px; margin: 0; }
.facts dt { font-size: 13px; line-height: 16px; color: var(--muted); margin-bottom: 2px; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.danger-zone { margin-top: 40px; }
.pred { display: grid; gap: 8px; padding: 14px 0; }
.pred + .pred { border-top: 1px solid var(--rule); }
.pred p { margin: 0; font: 400 23px/28px var(--font-hand); color: var(--hand); }
.reveal-card { display: grid; justify-items: center; text-align: center; gap: 12px; padding: 40px 20px 56px; }
.reveal-card .cass { width: min(260px, 70%); height: auto; }
.reveal-card p { margin: 0; max-width: 44ch; color: var(--muted); }
.ready-line { font: 500 22px/28px var(--font); color: var(--accent); }
.read-sub { margin: 0 0 6px; }

/* ---------- cassette art ---------- */
.cass .reel { transform-box: fill-box; transform-origin: center; }
.spin .reel { animation: spin 1.1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- seal overlay ---------- */
.seal-overlay { position: fixed; inset: 0; z-index: 50; background: var(--text); color: #fff; display: grid; place-items: center; text-align: center; padding: 24px; animation: fadein 0.3s var(--ease); }
@keyframes fadein { from { opacity: 0; } }
.seal-stage { display: grid; gap: 22px; justify-items: center; }
.seal-card { width: min(420px, 82vw); background: #fff; border-radius: var(--r-card); color: var(--hand); overflow: hidden; animation: fold 1.5s 0.5s var(--ease) forwards; transform-origin: 50% 100%; }
.seal-card .in { padding: 22px 24px 24px; text-align: left; }
.seal-card .in b { display: block; font: 400 32px/34px var(--font-hand); }
.seal-card .in span { color: var(--muted); font-size: 13px; }
.seal-card .lines { margin-top: 14px; display: grid; }
.seal-card .lines i { display: block; height: 30px; border-bottom: 1px solid var(--paper-rule); }
@keyframes fold {
  0% { transform: none; }
  55% { transform: perspective(900px) rotateX(-62deg) scaleY(0.82); }
  100% { transform: perspective(900px) rotateX(-84deg) scale(0.9, 0.3); opacity: 0; height: 0; }
}
.seal-spine { width: min(420px, 82vw); background: #fff; color: var(--hand); border-radius: var(--r-row); display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; padding: 12px 18px; text-align: left; opacity: 0; animation: spine-in 0.7s 1.7s var(--ease) forwards; }
.seal-spine b { font: 400 24px/28px var(--font-hand); }
.seal-spine .n { font: 500 22px/28px var(--font); color: var(--text); font-variant-numeric: tabular-nums; }
@keyframes spine-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.seal-msg { font: 500 20px/26px var(--font); opacity: 0; animation: spine-in 0.6s 2.1s var(--ease) forwards; }

/* ---------- settings ---------- */
.set-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 32px; padding: 32px 0; border-top: 1px solid var(--border); }
.set-row:first-of-type { border-top: 0; padding-top: 8px; }
.set-row h2 { font: 500 16px/24px var(--font); margin-bottom: 4px; }
.set-panel { background: var(--surface); border-radius: 16px; padding: 16px; }
.set-panel .field:last-child { margin-bottom: 0; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--text); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 500; z-index: 60; max-width: calc(100vw - 32px); box-shadow: 0 6px 20px rgb(27 30 36 / 0.22); /* taste-skill-ignore: floating toast */ }
audio { width: 100%; max-width: 420px; accent-color: var(--accent); }
.photo { border-radius: 12px; max-height: 380px; margin: 4px 0 20px; }
.plain-list { margin: 0; padding-left: 18px; display: grid; gap: 4px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .c3 { grid-column: span 6; }
  .panel.c3 { grid-column: span 12; }
  .c4, .c5, .c6, .c7, .c8, .c9 { grid-column: span 12; }
  .detail { grid-template-columns: 1fr; }
  .side { position: static; }
  .set-row { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; }
  .rail { display: none; }
  main { padding: 28px 16px 104px; }
  h1 { font-size: 24px; line-height: 30px; }
  .tabbar {
    display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; inset: auto 0 0 0; z-index: 40;
    background: var(--ground); border-top: 1px solid var(--border); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .tabbar a { display: grid; justify-items: center; gap: 4px; padding: 8px 2px 4px; min-height: 52px; color: var(--muted); text-decoration: none; font-size: 12px; line-height: 16px; }
  .tabbar a .ic { width: 20px; height: 20px; }
  .tabbar a[aria-current="page"] { color: var(--text); font-weight: 600; }
  .tabbar a[aria-current="page"] .ic { stroke-width: 2.2; }
  .btn.big { width: 100%; }
  .cta { margin-bottom: 28px; }
  .stepper li { padding: 0 10px; }
  .stepper li span:not(.n) { display: none; }
  .stepper li[aria-current="step"] span:not(.n) { display: inline; }
  .jcard-head, .jcard-meta, .jcard-body { padding-left: 18px; padding-right: 18px; }
  .spine { grid-template-columns: 1fr; gap: 6px; }
  .spine .counter { text-align: left; display: flex; gap: 8px; align-items: baseline; }
}

@media print {
  .rail, .tabbar, .actions, .crumb, .danger-zone, .toast, .flip-ctl, .side { display: none !important; }
  .shell { display: block; }
  main { padding: 0; max-width: none; }
  .detail { display: block; }
  .jcard { border-color: #000; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0ms !important; transition-duration: 0.001ms !important; }
  .seal-card { display: none; }
  .seal-spine, .seal-msg { opacity: 1; }
}

/* ---------- sign in / register, and the rail's account line ---------- */
body.auth .rail, body.auth .tabbar, body.anon .rail, body.anon .tabbar { display: none; }
body.auth .shell, body.anon .shell { grid-template-columns: 1fr; }
body.auth main { max-width: 460px; padding-top: clamp(32px, 10vh, 96px); }
.auth-card { display: grid; gap: 4px; }
.auth-card .brand { margin: 0 0 32px; padding: 0; }
.auth-card .brand img { height: 68px; }
.auth-card .btn.big { width: 100%; }
.auth-lang { margin-top: 28px; justify-self: start; display: inline-flex; background: var(--surface); border-radius: 999px; padding: 3px; }
.auth-lang button { min-height: 30px; }
.acct { display: grid; gap: 4px; margin-bottom: 12px; }
.acct-mail { overflow-wrap: anywhere; color: var(--text); }
.link-btn { justify-self: start; border: 0; background: none; padding: 0; color: var(--accent); font: inherit; font-size: 12px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--text); }
