:root {
  --bg: #F0F0F0;
  --surface: #FFFFFF;
  --surface-2: #E8E8E8;
  --surface-3: #DADADA;
  --text: #111111;
  --muted: #666666;
  --faint: #9A9A9A;
  --line: #DCDCDC;
  --line-strong: #C2C2C2;
  --accent: #C1121F;
  --accent-ink: #FFFFFF;
  --accent-soft: #FAE1E3;
  --accent-strong: #9B0F1A;
  --ink-pill: #111111;
  --ink-pill-text: #FFFFFF;
  --overlay: rgba(0, 0, 0, 0.5);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.08);
  --radius: 14px;
  --radius-sm: 10px;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Jost", "Instrument Sans", system-ui, sans-serif;
  --nav-h: 64px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A0A0A;
    --surface: #161616;
    --surface-2: #1F1F1F;
    --surface-3: #2A2A2A;
    --text: #F2F2F2;
    --muted: #9E9E9E;
    --faint: #6C6C6C;
    --line: #262626;
    --line-strong: #3B3B3B;
    --accent: #E0323E;
    --accent-ink: #FFFFFF;
    --accent-soft: #3B1418;
    --accent-strong: #FF6B75;
    --ink-pill: #F2F2F2;
    --ink-pill-text: #0A0A0A;
    --overlay: rgba(0, 0, 0, 0.7);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  }
}
:root[data-theme="dark"] {
  --bg: #0A0A0A;
  --surface: #161616;
  --surface-2: #1F1F1F;
  --surface-3: #2A2A2A;
  --text: #F2F2F2;
  --muted: #9E9E9E;
  --faint: #6C6C6C;
  --line: #262626;
  --line-strong: #3B3B3B;
  --accent: #E0323E;
  --accent-ink: #FFFFFF;
  --accent-soft: #3B1418;
  --accent-strong: #FF6B75;
  --ink-pill: #F2F2F2;
  --ink-pill-text: #0A0A0A;
  --overlay: rgba(0, 0, 0, 0.7);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.4;
  padding-block: 0 calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 24px);
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
img { max-width: 100%; }
::selection { background: var(--accent-soft); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: 680px; margin: 0 auto; padding-inline: 16px; }

/* Top bar */
.topbar {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand img { width: 44px; height: 44px; flex: none; object-fit: contain; }
.brand .name {
  font-family: var(--font-display); font-weight: 400; font-size: 17px;
  letter-spacing: 0.16em; text-transform: uppercase;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.who img { width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); }

/* Notices */
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text); font-size: 14px; margin-block: 14px 0; border-left: 3px solid var(--line-strong); }
.notice.warn { border-left-color: var(--accent); }
.notice.bad { background: var(--accent-soft); border-left-color: var(--accent); }
.notice .grow { flex: 1; min-width: 0; }
.notice b { font-weight: 600; }
.notice .icon-btn { margin: -6px -8px -6px 0; }

/* Headings */
.screen-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-block: 22px 14px; }
.screen-head h1 { font-family: var(--font-display); font-weight: 500; font-size: 30px; line-height: 1.05; letter-spacing: 0.01em; }
.screen-head .sub { color: var(--muted); font-size: 14px; margin-top: 4px; }
.section-label { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-block: 22px 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.section-label:first-child { margin-top: 12px; }
.section-label .segmented button, .section-label .link { text-transform: none; letter-spacing: 0; font-size: 13px; }
.section-label .n { color: var(--text); font-variant-numeric: tabular-nums; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; min-height: 42px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font-weight: 600; font-size: 15px; line-height: 1; white-space: nowrap; transition: transform .08s ease, background .12s ease; }
.btn:active { transform: scale(0.98); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn.dark { background: var(--ink-pill); color: var(--ink-pill-text); border-color: transparent; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--accent-strong); }
.btn.danger { background: transparent; border-color: var(--accent); color: var(--accent-strong); }
.btn.block { width: 100%; }
.btn.sm { min-height: 34px; padding: 6px 12px; font-size: 14px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn svg { width: 22px; height: 22px; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); background: none; border: 0; padding: 0; margin-top: 16px; font-weight: 500; font-size: 15px; }
.back svg { width: 18px; height: 18px; }
.link { color: var(--accent-strong); text-decoration: underline; background: none; border: 0; padding: 0; font-weight: 600; }

/* Pills & chips */
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.pill.accent { background: var(--accent-soft); color: var(--accent-strong); }
.pill.solid { background: var(--accent); color: var(--accent-ink); }
.pill.ink { background: var(--ink-pill); color: var(--ink-pill-text); }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill svg { width: 12px; height: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; min-height: 36px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 14px; font-weight: 500; color: var(--text); }
.chip[aria-pressed="true"] { background: var(--ink-pill); color: var(--ink-pill-text); border-color: var(--ink-pill); }
.chip-row { display: flex; gap: 8px; overflow-x: auto; padding-block: 2px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chip-row::-webkit-scrollbar { display: none; }
.chip-row .chip { flex: none; }
.segmented { display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 3px; gap: 2px; }
.segmented button { border: 0; background: transparent; padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); }
.segmented button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

/* Cards & lists */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.card.pad { padding: 16px; }
.list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.list > * + * { border-top: 1px solid var(--line); }
.empty { padding: 28px 18px; text-align: center; color: var(--muted); font-size: 15px; }
.empty b { display: block; color: var(--text); font-family: var(--font-display); font-size: 19px; font-weight: 500; margin-bottom: 4px; }

/* Calendar rows */
.day { display: grid; grid-template-columns: 50px 1fr auto; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 11px 14px; background: var(--surface); border: 0; color: inherit; }
.day:hover { background: color-mix(in srgb, var(--surface) 70%, var(--surface-2)); }
.day-date { display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--surface-2); border-radius: 10px; padding: 6px 2px; line-height: 1; }
.day.tonight .day-date { background: var(--accent); color: var(--accent-ink); }
.day.closed .day-date { background: var(--surface-3); color: var(--muted); }
.day-date .dow { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.day-date .dom { font-family: var(--font-display); font-size: 22px; font-weight: 500; margin-top: 3px; }
.day-date .mon { font-size: 10px; font-weight: 600; margin-top: 3px; opacity: .8; }
.day-body { min-width: 0; }
.day-name { font-family: var(--font-display); font-weight: 500; font-size: 18px; letter-spacing: 0.01em; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.day-sub { color: var(--muted); font-size: 13px; margin-top: 2px; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.day-sub .sep { color: var(--faint); }
.day-side { display: flex; align-items: center; gap: 8px; color: var(--faint); }
.day-side svg { width: 18px; height: 18px; }
.day.past { opacity: .7; }

/* Stat tiles */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-block: 14px; }
.stats.two { grid-template-columns: repeat(2, 1fr); }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; min-width: 0; }
.stat .label { font-size: 12px; color: var(--muted); font-weight: 500; }
.stat .value { font-size: 26px; font-weight: 600; line-height: 1.1; margin-top: 4px; letter-spacing: -0.01em; }
.stat .value small { font-size: 14px; font-weight: 500; color: var(--muted); margin-left: 3px; }
.stat.in .value { color: var(--accent-strong); }
@media (max-width: 380px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* Meter */
.meter .row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 14px; color: var(--muted); }
.meter .row b { font-size: 22px; font-weight: 600; color: var(--text); letter-spacing: -0.01em; }
.meter .track { height: 10px; border-radius: 999px; background: var(--accent-soft); margin-top: 8px; overflow: hidden; }
.meter .fill { height: 100%; border-radius: 999px; background: var(--accent); transition: width .3s ease; }

/* Guest rows */
.guest { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; background: var(--surface); }
.guest:hover { background: color-mix(in srgb, var(--surface) 70%, var(--surface-2)); }
.guest-main { background: none; border: 0; padding: 0; margin: 0; text-align: left; color: inherit; min-width: 0; width: 100%; font: inherit; }
.guest .name { font-weight: 600; font-size: 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.guest .plus { font-size: 13px; font-weight: 700; color: var(--accent-strong); background: var(--accent-soft); padding: 1px 7px; border-radius: 999px; }
.guest .meta { color: var(--muted); font-size: 13px; margin-top: 3px; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.guest .meta .sep { color: var(--faint); }
.guest .meta .note { color: var(--text); }
.guest.in .name { color: var(--muted); }
.guest.in .name .plus { opacity: .7; }
.guest .side { display: flex; align-items: center; gap: 8px; }
.check { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--surface); display: inline-flex; align-items: center; justify-content: center; color: var(--muted); flex: none; transition: background .12s ease, border-color .12s ease; }
.check svg { width: 22px; height: 22px; }
.check.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.check.partial { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-strong); font-weight: 700; font-size: 14px; }
.group-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; background: var(--surface-2); font-size: 13px; font-weight: 600; color: var(--muted); }
.group-head .n { color: var(--text); font-variant-numeric: tabular-nums; }

/* Promoter bars (single series) */
.bars { display: flex; flex-direction: column; gap: 10px; padding: 14px; }
.bar-row { display: grid; grid-template-columns: minmax(80px, 34%) 1fr auto; gap: 10px; align-items: center; font-size: 14px; }
.bar-row .who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.bar-row .track { height: 14px; position: relative; }
.bar-row .fill { position: absolute; inset: 0 auto 0 0; background: var(--accent); border-radius: 0 4px 4px 0; min-width: 2px; }
.bar-row .val { font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
.bar-row .val b { color: var(--text); font-weight: 600; }

/* Search */
.search { position: relative; margin-block: 12px; }
.search input { width: 100%; padding: 12px 40px 12px 42px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 16px; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.search .clear { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); }
.search input::-webkit-search-cancel-button { display: none; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 600; color: var(--muted); }
.field input[type="text"], .field input[type="search"], .field input[type="tel"], .field input[type="date"], .field input[type="time"], .field select, .field textarea { width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--surface); font-size: 16px; min-height: 46px; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; }
.field .hint { font-size: 12px; color: var(--faint); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.inline { display: flex; gap: 8px; }
.inline > input { flex: 1; min-width: 0; }
.stepper { display: inline-flex; align-items: center; gap: 0; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); }
.stepper button { width: 46px; height: 46px; border: 0; background: transparent; border-radius: 999px; color: var(--text); display: inline-flex; align-items: center; justify-content: center; }
.stepper button svg { width: 20px; height: 20px; }
.stepper .num { min-width: 60px; text-align: center; font-weight: 600; font-size: 20px; font-variant-numeric: tabular-nums; }
.stepper-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stepper-line .desc { color: var(--muted); font-size: 14px; text-align: right; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; }
.switch input { width: 22px; height: 22px; accent-color: var(--accent); flex: none; }
.actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.form-error { color: var(--accent-strong); background: var(--accent-soft); padding: 10px 12px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 12px; }
.results { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; margin-top: -6px; margin-bottom: 14px; }
.results button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; background: var(--surface); text-align: left; color: inherit; }
.results button + button { border-top: 1px solid var(--line); }
.results button:hover { background: var(--surface-2); }
.results img { width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); }
.results .muted { font-size: 13px; }

/* Members */
.member { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; width: 100%; text-align: left; border: 0; background: var(--surface); color: inherit; }
.member:hover { background: color-mix(in srgb, var(--surface) 70%, var(--surface-2)); }
.member img, .member .avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2); display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.member .avatar svg { width: 18px; height: 18px; }
.member .n { font-weight: 600; }
.member .s { color: var(--muted); font-size: 13px; }
.member .side { display: flex; align-items: center; gap: 8px; color: var(--faint); }
.member .side svg { width: 18px; height: 18px; }

/* Me screen */
.logo-hero { display: flex; justify-content: center; padding: 26px 16px 10px; }
.logo-hero img { width: min(280px, 70%); height: auto; }
.me-card { display: flex; align-items: center; gap: 14px; padding: 16px; }
.me-card img, .me-card .avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--surface-2); display: inline-flex; align-items: center; justify-content: center; color: var(--muted); flex: none; }
.me-card .avatar svg { width: 26px; height: 26px; }
.me-card .n { font-family: var(--font-display); font-weight: 500; font-size: 21px; }
.steps { display: grid; gap: 10px; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 14px; align-items: start; }
.step .k { font-family: var(--font-display); font-weight: 500; font-size: 22px; color: var(--accent-strong); line-height: 1; min-width: 22px; }
.step .k svg { width: 22px; height: 22px; display: block; }
.step b { display: block; font-weight: 600; margin-bottom: 2px; }
.step p { color: var(--muted); font-size: 14px; }
.step kbd { font: inherit; font-weight: 600; color: var(--text); }

/* Floating add */
.fab { position: fixed; right: 16px; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 16px); z-index: 15; display: inline-flex; align-items: center; gap: 8px; padding: 14px 20px 14px 16px; border-radius: 999px; border: 0; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 16px; box-shadow: var(--shadow); }
.fab svg { width: 22px; height: 22px; }
@media (min-width: 720px) { .fab { right: calc(50% - 340px + 16px); } }

/* Bottom nav */
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--surface); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); }
.nav .wrap { display: flex; padding-inline: 8px; }
.nav button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: var(--nav-h); border: 0; background: transparent; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: 0.02em; }
.nav button svg { width: 24px; height: 24px; }
.nav button[aria-current="page"] { color: var(--text); }
.nav button[aria-current="page"] svg { color: var(--accent); }

/* Sheet */
.sheet-backdrop { position: fixed; inset: 0; z-index: 40; background: var(--overlay); display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 680px; max-height: 92vh; overflow-y: auto; background: var(--surface); color: var(--text); border-radius: 22px 22px 0 0; padding: 8px 16px calc(24px + env(safe-area-inset-bottom, 0px)); box-shadow: var(--shadow); animation: rise .22s ease-out; }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-handle { width: 40px; height: 4px; border-radius: 2px; background: var(--line-strong); margin: 4px auto 10px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.sheet-head h2 { font-family: var(--font-display); font-weight: 500; font-size: 23px; letter-spacing: 0.01em; }
.sheet-head .icon-btn { margin-right: -8px; }
.sheet .lead { color: var(--muted); font-size: 14px; margin-bottom: 14px; }

/* Toast */
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 18px); z-index: 50; background: var(--ink-pill); color: var(--ink-pill-text); padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; box-shadow: var(--shadow); max-width: calc(100% - 32px); text-align: center; animation: rise .18s ease-out; }
.toast.bad { background: var(--accent); color: var(--accent-ink); }

.loading { padding: 40px 16px 8px; text-align: center; color: var(--muted); }
.skeleton { height: 64px; border-radius: var(--radius); background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; margin-top: 10px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mt { margin-top: 12px; }
.center { text-align: center; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---- standalone additions ---- */
html { height: 100%; }
:root { padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px); color-scheme: light dark; }
[hidden] { display: none !important; }
.brand img { width: 44px; height: 44px; flex: none; object-fit: contain; }

/* Sign-in */
.auth { max-width: 420px; margin: 0 auto; padding: 8px 0 40px; }
.auth .logo-hero { padding-top: 36px; }
.auth h1 { font-family: var(--font-display); font-weight: 500; font-size: 26px; text-align: center; margin-bottom: 6px; letter-spacing: 0.01em; }
.auth .lead { color: var(--muted); text-align: center; font-size: 15px; margin-bottom: 22px; }
.auth .card { padding: 18px 16px; }
.auth input[type="email"], .auth input[type="text"] { width: 100%; padding: 13px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--surface); font-size: 17px; min-height: 48px; }
.auth input.code { text-align: center; font-size: 26px; letter-spacing: 0.35em; font-variant-numeric: tabular-nums; font-weight: 600; }
.auth .foot { text-align: center; color: var(--muted); font-size: 13px; margin-top: 18px; }
.auth .foot .link { font-size: 13px; }
.tip { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface-2); font-size: 13px; color: var(--muted); }
.tip svg { width: 18px; height: 18px; flex: none; color: var(--accent); margin-top: 1px; }
.tip b { color: var(--text); }
.spin { display: inline-block; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.member .n small { color: var(--muted); font-weight: 400; font-size: 13px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-all; }
@media (max-width: 430px) { .brand .name { font-size: 15px; letter-spacing: 0.1em; } }
