/* TDS design system.
   Deep black canvas, graphite hairlines, one narrow working column,
   large calm cards, restrained white/grey typography, no visual noise.
   Left navigation magnifies on pointer proximity like the macOS Dock. */

:root {
  --bg: #000000;
  --panel: #050506;
  --surface: #0d0d0f;
  --surface-raised: #141416;
  --surface-hover: #1a1a1d;
  --line: #1c1c20;
  --line-strong: #2a2a30;
  --text: #f4f4f6;
  --text-dim: #9c9ca6;
  --text-faint: #62626c;
  --blue: #2f7bf6;
  --blue-hover: #3f88ff;
  --danger: #d9534f;

  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 13px;
  --pill: 999px;

  --sidebar: 232px;
  --column: 620px;

  /* Real visual viewport height: 100vh is wrong on mobile browsers whose
     address bar overlays the page. JS keeps --app-height in sync. */
  --app-height: 100vh;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);

  --font: -apple-system, BlinkMacSystemFont, "Inter", "SF Pro Text", "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: var(--app-height);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { overflow: hidden; }

button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; padding: 0; }
a { color: inherit; }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: #1a1a1e; border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }

.icon { width: 22px; height: 22px; display: block; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon--sm { width: 18px; height: 18px; }
.icon--xs { width: 15px; height: 15px; }
.icon--lg { width: 26px; height: 26px; }

/* ---------- boot ---------- */

.boot { position: fixed; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; }
.boot__mark { font-size: 26px; font-weight: 700; letter-spacing: 0.16em; }
.boot__hint { font-size: 13px; color: var(--text-faint); }

/* ---------- вход: полноэкранные шаги ---------- */

.gate {
  position: fixed; inset: 0;
  display: grid; place-items: center;
  padding: 24px;
  overflow-y: auto;
  background: #050506;
  /* Тонкая сетка: даёт глубину, но не спорит с текстом. */
  background-image:
    linear-gradient(rgba(255,255,255,.016) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.016) 1px, transparent 1px);
  background-size: 46px 46px;
}

.gate__screen {
  position: relative;
  width: 100%; max-width: 470px;
  display: flex; flex-direction: column; align-items: center;
  /* Запас под закреплённую шапку и нижние подписи. */
  padding: 40px 0 70px;
  animation: gate-in .38s cubic-bezier(.2,.7,.3,1) both;
}
.gate__screen--welcome { padding-top: 0; }

@keyframes gate-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* --- заставка --- */

.gate__screen--welcome { max-width: none; }

/* Мягкое свечение за логотипом, медленно дышит. */
.gate__halo {
  position: fixed; left: 50%; top: 50%;
  width: 620px; height: 620px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.055) 0%, rgba(255,255,255,.014) 42%, transparent 68%);
  animation: gate-breathe 7s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
.gate__halo::before, .gate__halo::after {
  content: ''; position: absolute; inset: 12%;
  border: 1px solid rgba(255,255,255,.035);
  border-radius: 50%;
}
.gate__halo::after { inset: 26%; border-color: rgba(255,255,255,.022); }

@keyframes gate-breathe {
  0%, 100% { opacity: .75; transform: translate(-50%,-50%) scale(1); }
  50%      { opacity: 1;   transform: translate(-50%,-50%) scale(1.05); }
}

.gate__hero { position: relative; z-index: 2; text-align: center; }

.gate__logo {
  font-size: 68px; font-weight: 700; letter-spacing: .18em;
  background: linear-gradient(180deg, #fff 0%, #9a9aa4 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gate-rise .7s cubic-bezier(.2,.7,.3,1) both;
}
.gate__welcome {
  font-size: 17px; letter-spacing: .34em; color: var(--text-dim);
  margin-top: 6px;
  animation: gate-rise .7s .1s cubic-bezier(.2,.7,.3,1) both;
}
.gate__tagline {
  max-width: 430px; margin: 20px auto 0;
  font-size: 13.5px; line-height: 1.65; color: var(--text-faint);
  animation: gate-rise .7s .18s cubic-bezier(.2,.7,.3,1) both;
}

@keyframes gate-rise {
  from { opacity: 0; transform: translateY(16px); filter: blur(5px); }
  to   { opacity: 1; transform: none; filter: none; }
}

.gate__enter {
  margin-top: 34px; padding: 13px 40px;
  border: 1px solid rgba(255,255,255,.26); border-radius: 999px;
  background: transparent; color: #fff;
  font-size: 12.5px; font-weight: 600; letter-spacing: .18em;
  transition: background .22s, border-color .22s, transform .22s, box-shadow .22s;
  animation: gate-rise .7s .26s cubic-bezier(.2,.7,.3,1) both;
}
.gate__enter:hover {
  background: #fff; color: #050506; border-color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(255,255,255,.16);
}

/* --- общая рамка шага --- */

.gate__back {
  position: fixed; top: 24px; left: 28px; z-index: 5;
  display: flex; align-items: center; gap: 9px;
  font-size: 11.5px; letter-spacing: .16em; color: var(--text-faint);
  transition: color .18s;
}
.gate__back:hover { color: var(--text); }
.gate__back-arrow { transition: transform .18s; }
.gate__back:hover .gate__back-arrow { transform: translateX(-3px); }

.gate__wordmark {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 5;
  display: flex; gap: 20px; white-space: nowrap;
  pointer-events: none;
}
.gate__word b { font-size: 27px; font-weight: 700; color: #fff; }
.gate__word span { font-size: 15px; color: #fff; letter-spacing: .01em; }

.gate__center { width: 100%; text-align: center; }

.gate__title { font-size: 25px; font-weight: 650; margin: 0 0 10px; letter-spacing: -.02em; }
.gate__lead { font-size: 13.5px; color: var(--text-faint); margin: 0 0 30px; line-height: 1.6; }

.gate__error, .gate__info {
  margin-bottom: 18px; padding: 11px 15px;
  border-radius: 12px; font-size: 13px; line-height: 1.5;
  animation: gate-in .26s both;
}
.gate__error { background: rgba(255,92,92,.09); border: 1px solid rgba(255,92,92,.3); color: #ff9b9b; }
.gate__info  { background: rgba(255,255,255,.045); border: 1px solid var(--line); color: var(--text-dim); }

/* --- поля --- */

.gate__field {
  width: 100%; height: 62px; padding: 0 20px;
  background: rgba(255,255,255,.028);
  border: 1px solid rgba(255,255,255,.1); border-radius: 16px;
  color: #fff; font-size: 16px; text-align: center;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.gate__field::placeholder { color: #45454e; }
.gate__field:focus {
  outline: none;
  border-color: rgba(255,255,255,.42);
  background: rgba(255,255,255,.05);
  box-shadow: 0 0 0 4px rgba(255,255,255,.045);
}
.gate__field--code { letter-spacing: .34em; font-size: 21px; font-variant-numeric: tabular-nums; }

.gate__form { display: flex; flex-direction: column; gap: 7px; text-align: left; }
.gate__form .gate__field { text-align: left; height: 54px; font-size: 15px; }
.gate__label { font-size: 11.5px; color: var(--text-faint); margin-top: 9px; }

/* --- телефон с кодом страны --- */

.phone {
  display: flex; align-items: stretch;
  background: rgba(255,255,255,.028);
  border: 1px solid rgba(255,255,255,.1); border-radius: 16px;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.phone:focus-within {
  border-color: rgba(255,255,255,.42);
  box-shadow: 0 0 0 4px rgba(255,255,255,.045);
}
.phone__code {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  padding: 0 16px;
  border-right: 1px solid rgba(255,255,255,.09);
  cursor: pointer;
}
.phone__code::after {
  content: '▾'; color: var(--text-faint); font-size: 11px; margin-left: 2px;
}
.phone__flag {
  font-size: 10.5px; font-weight: 700; letter-spacing: .06em;
  color: var(--text-dim);
  border: 1px solid rgba(255,255,255,.14); border-radius: 5px;
  padding: 3px 5px; line-height: 1;
}
.phone__dial { font-size: 15px; font-weight: 600; color: #fff; }
.phone__name { font-size: 10.5px; color: var(--text-faint); }
/* Родной список поверх оформления: свой выпадающий список хуже работает
   с клавиатурой и вспомогательными технологиями. */
.phone__country {
  position: absolute; inset: 0;
  opacity: 0; cursor: pointer;
  font-size: 16px;
}
.phone__input {
  flex: 1; height: 68px; padding: 0 18px;
  background: transparent; border: 0; color: #fff;
  font-size: 18px; letter-spacing: .04em;
}
.phone__input::placeholder { color: #3d3d46; letter-spacing: .06em; }
.phone__input:focus { outline: none; }

/* --- главная кнопка --- */

.gate__submit {
  width: 100%; height: 56px; margin-top: 16px;
  border-radius: 14px; border: 0;
  background: rgba(255,255,255,.055); color: #55555f;
  font-size: 12.5px; font-weight: 650; letter-spacing: .16em;
  transition: background .24s, color .24s, box-shadow .24s, transform .16s;
}
.gate__submit:not(:disabled) {
  background: #fff; color: #050506;
  box-shadow: 0 10px 34px rgba(255,255,255,.14);
  cursor: pointer;
}
.gate__submit:not(:disabled):hover { transform: translateY(-1px); box-shadow: 0 14px 40px rgba(255,255,255,.2); }
.gate__submit:not(:disabled):active { transform: translateY(0); }
.gate__submit:disabled { cursor: not-allowed; }

.gate__note { margin-top: 15px; margin-bottom: 26px; font-size: 11.5px; color: #3f3f48; line-height: 1.55; }

/* --- согласие --- */

.gate__consent {
  display: flex; align-items: flex-start; gap: 11px;
  margin-top: 16px; cursor: pointer;
  font-size: 12px; line-height: 1.55; color: var(--text-faint);
}
.gate__check {
  width: 21px; height: 21px; flex: none; margin-top: 1px;
  border: 1.5px solid rgba(255,255,255,.24); border-radius: 6px;
  background: transparent; color: #050506;
  font-size: 13px; line-height: 1;
  transition: background .18s, border-color .18s;
}
.gate__check[data-checked="true"] { background: #fff; border-color: #fff; }
.gate__consent a { color: var(--text-dim); text-decoration: underline; text-underline-offset: 2px; }
.gate__consent a:hover { color: #fff; }

/* --- индикатор шагов и переключатель --- */

.gate__progress {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; gap: 3px; padding: 0 3px;
}
.gate__pip { flex: 1; height: 2px; background: rgba(255,255,255,.06); transition: background .3s; }
.gate__pip[data-done="true"] { background: rgba(255,255,255,.3); }
.gate__pip[data-active="true"] { background: #fff; }

.gate__switch {
  position: fixed; bottom: 54px; left: 50%; transform: translateX(-50%);
  font-size: 12.5px; color: var(--text-faint); transition: color .18s;
}
.gate__switch:hover { color: #fff; }

.gate__status {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%);
  font-size: 10px; letter-spacing: .26em; color: #2c2c34;
  pointer-events: none;
}

@media (max-width: 560px) {
  .gate__logo { font-size: 50px; }
  .gate__wordmark { gap: 12px; }
  .gate__word b { font-size: 21px; }
  .gate__word span { font-size: 12px; }
  .gate__back span:last-child { display: none; }
  .gate__switch { bottom: 46px; }
}

/* Люди, которым движение мешает, не должны его получать. */
@media (prefers-reduced-motion: reduce) {
  .gate__screen, .gate__logo, .gate__welcome, .gate__tagline, .gate__enter,
  .gate__halo, .gate__error, .gate__info { animation: none !important; }
}

.field { margin-bottom: 15px; }
.field__label { display: block; font-size: 12px; color: var(--text-faint); margin-bottom: 7px; }
/* 16px is the smallest size iOS Safari will not zoom into on focus. */
.field__input, .field__area {
  width: 100%;
  font-size: 16px;
  background: var(--surface-raised);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  color: var(--text); outline: none;
  transition: border-color .18s, background .18s;
}
.field__input:focus, .field__area:focus { border-color: var(--line-strong); background: #17171a; }
.field__input::placeholder, .field__area::placeholder { color: #4c4c55; }
.field__area { resize: vertical; min-height: 88px; }
.field__hint { font-size: 12px; color: var(--text-faint); margin-top: 7px; line-height: 1.45; }

.choice { display: grid; gap: 9px; margin-bottom: 16px; }
.choice__option {
  display: flex; gap: 13px; text-align: left; padding: 15px 16px;
  background: var(--surface-raised); border: 1px solid transparent;
  border-radius: var(--radius-md); transition: border-color .18s, background .18s;
}
.choice__option[aria-pressed="true"] { border-color: #3c3c46; background: #1a1a1f; }
.choice__title { font-size: 14.5px; font-weight: 550; }
.choice__text { font-size: 12.5px; color: var(--text-faint); margin-top: 3px; line-height: 1.4; }

.clan-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; }
.clan-grid__item {
  aspect-ratio: 1; display: grid; place-items: center; font-size: 21px;
  background: var(--surface-raised); border: 1px solid transparent;
  border-radius: var(--radius-sm); transition: border-color .18s, background .18s, transform .18s;
}
.clan-grid__item:hover { transform: scale(1.08); }
.clan-grid__item[aria-pressed="true"] { border-color: #50505c; background: #1e1e24; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px; border-radius: var(--pill);
  font-size: 14.5px; font-weight: 600;
  border: 1px solid transparent;
  transition: background .18s, border-color .18s, opacity .18s, transform .12s;
}
.btn:active { transform: scale(.985); }
.btn--primary { background: #e9e9ec; color: #08080a; width: 100%; }
.btn--primary:hover { background: #ffffff; }
.btn--primary:disabled { opacity: .35; cursor: default; }
.btn--blue { background: var(--blue); color: #fff; width: 100%; }
.btn--blue:hover { background: var(--blue-hover); }
.btn--ghost { border-color: var(--line-strong); color: var(--text-dim); }
.btn--ghost:hover { border-color: #3a3a44; color: var(--text); }
.btn--quiet { color: var(--text-faint); font-size: 13.5px; padding: 11px 0; width: 100%; }
.btn--quiet:hover { color: var(--text); }
.btn--compact { padding: 9px 18px; font-size: 13.5px; }

.notice { border-radius: var(--radius-sm); padding: 12px 15px; font-size: 13px; margin-bottom: 15px; background: var(--surface-raised); color: var(--text-dim); }
.notice--error { color: #e08b87; background: #170f0f; }
.notice--ok { color: #7fbb9b; background: #0d1512; }

/* ---------- app frame ---------- */

.app {
  position: fixed; inset: 0;
  height: var(--app-height);
  display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr);
  padding-left: var(--safe-left); padding-right: var(--safe-right);
}

.sidebar {
  padding-top: var(--safe-top);
  background: var(--panel);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  padding: 26px 16px 18px;
  overflow: hidden;
}

.sidebar__brand { padding: 0 12px 22px; }
.sidebar__mark { font-size: 22px; font-weight: 700; letter-spacing: 0.1em; line-height: 1; }
.sidebar__ver { font-size: 11px; color: var(--text-faint); margin-top: 5px; }

/* macOS Dock style proximity magnification */
.dock { display: flex; flex-direction: column; gap: 2px; }

.dock__item {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 13px; border-radius: var(--radius-md);
  color: var(--text-dim); text-align: left; width: 100%;
  position: relative;
  transform-origin: left center;
  transition: background .18s, color .18s;
  will-change: transform;
}
.dock__item:hover { color: var(--text); }
.dock__item[aria-current="page"] { background: var(--surface-raised); color: var(--text); }
.dock__label { font-size: 15px; font-weight: 550; white-space: nowrap; }
.dock__icon { display: grid; place-items: center; flex: none; width: 22px; }
.dock__badge {
  margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px; background: var(--blue); color: #fff;
  font-size: 11px; font-weight: 650; display: grid; place-items: center;
}
.dock__orb {
  width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #9df3ff, #2bd8d8 42%, #0e7f8f 100%);
  box-shadow: 0 0 12px rgba(45, 216, 216, .35);
}

.sidebar__spacer { flex: 1; }
.sidebar__foot { display: flex; flex-direction: column; gap: 2px; }
.sidebar__promo {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 13px; border-radius: var(--radius-md);
  color: var(--text-dim); font-size: 14px; font-weight: 550; width: 100%;
  transition: background .18s, color .18s;
}
.sidebar__promo:hover { background: var(--surface); color: var(--text); }

/* ---------- stage ---------- */

.stage-host { overflow: hidden; min-width: 0; position: relative; }
.stage { height: 100%; display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden; }
.stage--split { grid-template-columns: 336px minmax(0, 1fr); }

.pane { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.pane__head { padding: 20px 18px 14px; display: flex; align-items: center; gap: 10px; min-height: 64px; }
.pane__title { font-size: 20px; font-weight: 650; letter-spacing: -0.02em; }
.pane__spacer { flex: 1; }
.pane__body { flex: 1; overflow-y: auto; padding: 4px 10px 20px; }

.iconbtn { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; color: var(--text-faint); transition: background .16s, color .16s; }
.iconbtn:hover { background: var(--surface-raised); color: var(--text); }

.search { padding: 0 12px 10px; position: relative; }
.search__input {
  width: 100%; background: var(--surface); border: 1px solid transparent;
  border-radius: var(--pill); padding: 12px 16px 12px 42px; outline: none; font-size: 16px;
  transition: border-color .18s, background .18s;
}
.search__input:focus { border-color: var(--line-strong); background: var(--surface-raised); }
.search__input::placeholder { color: #4c4c55; }
.search__icon { position: absolute; left: 26px; top: 50%; transform: translateY(-50%); color: var(--text-faint); pointer-events: none; margin-top: -5px; }

/* ---------- lists ---------- */

.list { display: flex; flex-direction: column; gap: 1px; }

.row { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: var(--radius-md); text-align: left; width: 100%; min-width: 0; transition: background .14s; }
.row:hover { background: var(--surface); }
.row[aria-current="true"] { background: var(--surface-raised); }

.avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  background: linear-gradient(150deg, #1e1e24, #121216);
  display: grid; place-items: center; font-size: 14.5px; font-weight: 600;
  color: var(--text-dim); overflow: hidden;
}
.avatar--clan { font-size: 21px; }
.avatar--system { background: linear-gradient(150deg, #24242c, #101014); color: var(--text); font-size: 10.5px; font-weight: 700; letter-spacing: .06em; }
.avatar--sm { width: 34px; height: 34px; font-size: 12px; }
.avatar--sm.avatar--clan { font-size: 16px; }
.avatar--lg { width: 84px; height: 84px; font-size: 28px; }
.avatar--lg.avatar--clan { font-size: 38px; }

.row__main { flex: 1; min-width: 0; }
.row__top { display: flex; align-items: baseline; gap: 8px; }
.row__title { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row__time { font-size: 11.5px; color: var(--text-faint); flex: none; margin-left: auto; }
.row__sub { font-size: 13px; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.row__side { display: flex; align-items: center; gap: 6px; flex: none; color: var(--text-faint); }

.badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 11px; font-weight: 650; display: grid; place-items: center; }
.badge--quiet { background: var(--surface-hover); color: var(--text-dim); }

.tag { font-size: 11.5px; padding: 3px 9px; border-radius: 999px; background: var(--surface-raised); color: var(--text-faint); }
.tag--soon { background: #1c1c22; color: var(--text-dim); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }

.empty { padding: 56px 26px; text-align: center; display: grid; gap: 8px; justify-items: center; }
.empty__title { color: var(--text-dim); font-size: 15px; font-weight: 550; }
.empty__text { font-size: 13.5px; color: var(--text-faint); max-width: 330px; line-height: 1.5; }

/* ---------- centred working column ---------- */

.column { height: 100%; overflow-y: auto; position: relative; }
.column__inner { max-width: var(--column); margin: 0 auto; padding: 30px 20px 120px; }
.column__title { font-size: 27px; font-weight: 680; letter-spacing: -0.03em; margin: 0 0 6px; }
.column__lead { color: var(--text-faint); font-size: 14px; margin: 0 0 26px; }

.section { margin-bottom: 26px; }
.section__label { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.09em; color: var(--text-faint); margin: 0 0 11px; padding-left: 4px; font-weight: 600; }

.card { background: var(--surface); border-radius: var(--radius-lg); padding: 20px 22px; }
.card--flush { padding: 6px; }
.card--tight { padding: 16px 18px; }
.card + .card { margin-top: 12px; }

/* Telegram-style settings rows */
.srow { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 15px 16px; border-radius: var(--radius-md); transition: background .14s; position: relative; }
/* Hairline separator between rows, inset past the leading icon like iOS/Telegram. */
.srow + .srow::before { content: ''; position: absolute; left: 68px; right: 16px; top: 0; height: 1px; background: var(--line); }
.srow:hover::before, .srow:hover + .srow::before { opacity: 0; }
.srow:hover { background: var(--surface-raised); }
.srow__icon { width: 38px; height: 38px; border-radius: 12px; background: var(--surface-raised); display: grid; place-items: center; color: var(--text-dim); flex: none; }
.srow:hover .srow__icon { background: #202026; }
.srow__title { flex: 1; font-size: 14.5px; min-width: 0; }
.srow__value { font-size: 13px; color: var(--text-faint); text-align: right; white-space: nowrap; }
.srow__chev { color: #3a3a44; flex: none; }
/* A row that is a container rather than a button: its children are the
   interactive parts, so the row itself must not look pressable. */
.srow--static { cursor: default; }
.srow--static:hover { background: transparent; }

/* Checkbox for personal task lists. */
.checkbox { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid #3a3a44; display: grid; place-items: center; flex: none; color: var(--bg); transition: background .14s, border-color .14s; }
.checkbox:hover { border-color: #55555f; }
.checkbox[data-checked="true"] { background: var(--text); border-color: var(--text); }

/* ---------- pill tabs ---------- */

.tabs { display: flex; gap: 2px; background: var(--surface); border-radius: var(--pill); padding: 4px; margin-bottom: 18px; }
.tab { flex: 1; padding: 10px 18px; border-radius: var(--pill); font-size: 14px; font-weight: 550; color: var(--text-faint); text-align: center; white-space: nowrap; transition: background .18s, color .18s; }
.tab:hover { color: var(--text-dim); }
.tab[aria-selected="true"] { background: #26262b; color: var(--text); }

/* ---------- attachments ---------- */

.gallery { display: grid; gap: 3px; margin-bottom: 7px; border-radius: 14px; overflow: hidden; }
.gallery--1 { grid-template-columns: 1fr; }
.gallery--2 { grid-template-columns: 1fr 1fr; }
.gallery--3 { grid-template-columns: 1fr 1fr; }

.attachment { background: #0a0a0c; border-radius: 12px; overflow: hidden; min-height: 40px; }
.attachment--image, .attachment--video { display: grid; }
.attachment__image, .attachment__video {
  width: 100%; max-height: 340px; object-fit: cover; display: block;
  background: #0a0a0c; cursor: zoom-in;
}
.attachment__audio { width: 100%; min-width: 220px; }
.attachment__file {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; width: 100%; text-align: left;
  color: var(--text-dim); font-size: 13.5px;
}
.attachment__file:hover { color: var(--text); }
.attachment__fileicon { display: grid; place-items: center; flex: none; }
.attachment__filename { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.composer__attach {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; color: var(--text-faint); flex: none;
  transition: background .16s, color .16s;
}
.composer__attach:hover { background: var(--surface-hover); color: var(--text); }

.composer__attachments { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 9px; }
.chipfile {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 8px 7px 12px; border-radius: var(--pill);
  background: var(--surface-raised); font-size: 12.5px; color: var(--text-dim);
  max-width: 260px;
}
.chipfile__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 130px; color: var(--text); }
.chipfile__size { color: var(--text-faint); }
.chipfile__remove {
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; color: var(--text-faint);
}
.chipfile__remove:hover { background: #26262c; color: var(--text); }

.lightbox {
  position: fixed; inset: 0; z-index: 95;
  background: rgba(0, 0, 0, .94);
  display: grid; place-items: center; padding: 24px;
  animation: fade .16s ease-out;
}
.lightbox img, .lightbox video { max-width: 100%; max-height: 90vh; border-radius: 12px; }
.lightbox__close {
  position: fixed; top: calc(16px + var(--safe-top)); right: 16px;
  width: 40px; height: 40px; border-radius: 50%;
  background: #1b1b20; color: var(--text); display: grid; place-items: center;
}

/* ---------- feed ---------- */

.composer-post { padding: 16px 18px; margin-bottom: 14px; }
.composer-post__top { display: flex; gap: 13px; align-items: flex-start; }
.composer-post__area { flex: 1; background: none; border: none; outline: none; resize: none; font-size: 16px; padding: 10px 0 0; min-height: 40px; max-height: 240px; line-height: 1.45; }
.composer-post__area::placeholder { color: #55555e; }
.composer-post__row { display: flex; align-items: center; gap: 4px; margin-top: 10px; padding-left: 57px; }
.composer-post__tool { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--text-faint); transition: background .16s, color .16s; }
.composer-post__tool:hover { background: var(--surface-raised); color: var(--text-dim); }

.post { padding: 18px 20px; margin-bottom: 12px; }
.post__head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.post__ident { display: flex; align-items: center; gap: 7px; min-width: 0; }
.post__author { font-size: 14.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post__clan { font-size: 15px; }
.post__handle { font-size: 12.5px; color: var(--text-faint); }
.post__time { font-size: 12.5px; color: var(--text-faint); margin-left: auto; flex: none; }
.post__body { font-size: 15px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.post__foot { display: flex; align-items: center; gap: 2px; margin-top: 14px; }
.post__action { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; color: var(--text-faint); font-size: 13px; transition: background .14s, color .14s; }
.post__action:hover { background: var(--surface-raised); color: var(--text); }
.post__action[data-active="true"] { color: #e0605c; }
.post__views { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; color: var(--text-faint); font-size: 13px; padding-right: 8px; }

.comment { display: flex; gap: 11px; padding: 12px 0; }
.comment + .comment { border-top: 1px solid var(--line); }
.comment__meta { font-size: 11.5px; color: var(--text-faint); margin-bottom: 3px; }
.comment__body { font-size: 13.5px; }

/* ---------- search screen ---------- */

.chip-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 16px 9px 12px; border-radius: var(--pill);
  background: var(--surface-raised); font-size: 13.5px; color: var(--text-dim);
  transition: background .16s, color .16s, transform .14s;
}
.chip:hover { background: #1e1e24; color: var(--text); transform: translateY(-1px); }
.chip__emoji { font-size: 17px; }
.chip__count { font-weight: 600; color: var(--text); }

.rank { display: flex; align-items: center; gap: 15px; padding: 13px 16px; border-radius: var(--radius-md); width: 100%; text-align: left; transition: background .14s; }
.rank:hover { background: var(--surface-raised); }
.rank__no { font-size: 13px; color: var(--text-faint); width: 16px; flex: none; font-variant-numeric: tabular-nums; }
.rank__tag { font-size: 14.5px; font-weight: 600; color: var(--blue); }
.rank__count { font-size: 12.5px; color: var(--text-faint); margin-top: 2px; }

/* ---------- footer ---------- */

.footer {
  position: absolute; right: 26px; bottom: 22px;
  display: flex; flex-direction: column; gap: 5px; align-items: flex-end;
  font-size: 12px; color: #4a4a53; pointer-events: none;
}
.footer a { text-decoration: none; pointer-events: auto; transition: color .16s; }
.footer a:hover { color: var(--text-dim); }
.footer__copy { margin-top: 8px; }

/* ---------- chat ---------- */

.chat { display: grid; grid-template-rows: auto auto 1fr auto; height: 100%; min-width: 0; }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 13px 22px; border-bottom: 1px solid var(--line); min-height: 64px; }
.chat__name { font-size: 15.5px; font-weight: 650; }
.chat__meta { font-size: 12px; color: var(--text-faint); }
.chat__back { display: none; }

.pinbar { display: flex; align-items: center; gap: 11px; padding: 10px 22px; border-bottom: 1px solid var(--line); background: var(--panel); font-size: 13px; color: var(--text-dim); }
.pinbar__text { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.thread { overflow-y: auto; padding: 20px 0; }
.thread__inner { max-width: var(--column); margin: 0 auto; padding: 0 22px; display: flex; flex-direction: column; gap: 3px; }

.day { align-self: center; font-size: 11.5px; color: var(--text-faint); padding: 5px 13px; background: var(--surface); border-radius: 999px; margin: 14px 0; }

.msg { display: flex; gap: 8px; max-width: 80%; align-items: flex-end; }
.msg--out { align-self: flex-end; flex-direction: row-reverse; }
.msg--first { margin-top: 10px; }

.bubble { background: var(--surface-raised); border-radius: 20px; padding: 10px 15px 8px; min-width: 0; }
.msg--out .bubble { background: #1d2836; }
.msg--system .bubble { background: var(--surface); }

.bubble__author { font-size: 12.5px; color: #7fa8e8; margin-bottom: 3px; font-weight: 600; }
.bubble__reply { border-left: 2px solid #3d4c5e; padding: 2px 0 2px 9px; margin-bottom: 6px; font-size: 12.5px; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 280px; }
.bubble__text { font-size: 14.5px; white-space: pre-wrap; word-break: break-word; }
.bubble__foot { display: flex; align-items: center; gap: 6px; margin-top: 3px; justify-content: flex-end; }
.bubble__time, .bubble__edited { font-size: 11px; color: var(--text-faint); }

.reactions { display: flex; gap: 5px; margin-top: 7px; flex-wrap: wrap; }
.reaction { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; background: #00000055; font-size: 12px; color: var(--text-dim); transition: background .14s; }
.reaction:hover { background: #00000088; color: var(--text); }

.msg__tools { display: flex; align-items: center; gap: 1px; opacity: 0; transition: opacity .14s; }
.msg:hover .msg__tools { opacity: 1; }
/* On touch screens hover never happens: the same actions come from a long
   press, so the inline tools are removed instead of sitting there invisible.
   The flag comes from JS because some browsers report `hover: none` for a
   desktop window that does in fact have a mouse. */
html[data-touch="true"] .msg__tools { display: none; }
html[data-touch="true"] .msg { max-width: 86%; }
.msg__tool { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; color: var(--text-faint); }
.msg__tool:hover { background: var(--surface-raised); color: var(--text); }

.composer { border-top: 1px solid var(--line); padding: 13px 0 16px; }
.composer__inner { max-width: var(--column); margin: 0 auto; padding: 0 22px; }
.composer__reply { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--text-faint); padding: 8px 14px; margin-bottom: 8px; background: var(--surface); border-radius: var(--radius-sm); }
.composer__box { display: flex; align-items: flex-end; gap: 10px; background: var(--surface-raised); border: 1px solid transparent; border-radius: 22px; padding: 7px 7px 7px 18px; transition: border-color .18s; }
.composer__box:focus-within { border-color: var(--line-strong); }
.composer__input { flex: 1; background: none; border: none; outline: none; resize: none; max-height: 160px; padding: 8px 0; font-size: 16px; line-height: 1.4; }
.composer__input::placeholder { color: #55555e; }
.composer__send { width: 38px; height: 38px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; flex: none; transition: opacity .18s, background .18s; }
.composer__send:hover:not(:disabled) { background: var(--blue-hover); }
.composer__send:disabled { opacity: .3; background: var(--surface-hover); }
.composer__note { font-size: 12.5px; color: var(--text-faint); text-align: center; padding: 12px 0; }

.typing { font-size: 12px; color: var(--text-faint); height: 16px; padding: 0 22px; max-width: var(--column); margin: 0 auto; width: 100%; }

/* ---------- profile ---------- */

.profile__head { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; }
.profile__name { font-size: 24px; font-weight: 680; letter-spacing: -0.02em; }
.profile__handle { color: var(--text-faint); font-size: 14px; }
.profile__stats { display: flex; gap: 20px; margin-top: 11px; }
.profile__stat { font-size: 13px; color: var(--text-faint); }
.profile__stat b { color: var(--text); font-weight: 650; margin-right: 4px; }

/* ---------- modal ---------- */

.modal-backdrop {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(0, 0, 0, .78);
  display: grid; place-items: center; padding: 22px;
  animation: fade .16s ease-out;
}
/* Blur is a progressive enhancement: without support the backdrop stays a
   solid scrim rather than letting the page bleed through the dialog. */
@supports (backdrop-filter: blur(4px)) {
  .modal-backdrop { background: rgba(0, 0, 0, .68); backdrop-filter: blur(6px); }
}
@keyframes fade { from { opacity: 0; } }

.modal {
  width: 100%; max-width: 460px;
  background-color: #0e0e10;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 26px; max-height: 86vh; overflow-y: auto;
  position: relative; isolation: isolate;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .7);
  animation: pop .2s cubic-bezier(.2,.9,.3,1);
}
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.985); } }
.modal__title { font-size: 19px; font-weight: 650; margin: 0 0 6px; letter-spacing: -0.01em; }
.modal__lead { font-size: 13.5px; color: var(--text-faint); margin: 0 0 20px; line-height: 1.5; }
.modal__actions { display: flex; gap: 10px; margin-top: 22px; }
.modal__actions .btn { flex: 1; }
.modal__close { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-raised); display: grid; place-items: center; color: var(--text-dim); z-index: 2; }
.modal__close:hover { background: var(--surface-hover); color: var(--text); }

/* purchase sheet */
.buy { width: 100%; max-width: 400px; padding: 0; overflow: hidden; background-color: #0e0e10; }
.buy__scroll { max-height: 84vh; overflow-y: auto; padding: 22px 22px 24px; }
.buy__eyebrow { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); font-weight: 650; margin-bottom: 14px; }
.buy__ident { display: flex; align-items: center; gap: 11px; margin-bottom: 4px; }
.buy__name { font-size: 15px; font-weight: 650; color: #7fd8ff; }
.buy__when { font-size: 12px; color: var(--text-faint); }
.buy__preview { border-radius: var(--radius-md); overflow: hidden; margin: 14px 0 20px; aspect-ratio: 16/10; background: linear-gradient(150deg, #1b2430, #0f1318); display: grid; place-items: center; }
.buy__group { margin-bottom: 18px; }
.buy__grouphead { display: flex; align-items: center; gap: 6px; font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--text-faint); font-weight: 650; margin-bottom: 10px; }
.buy__perk { display: flex; align-items: center; gap: 12px; padding: 9px 4px; font-size: 14px; }
.buy__dot { width: 17px; height: 17px; border-radius: 50%; flex: none; }
.buy__ico { width: 20px; display: grid; place-items: center; color: var(--text-dim); flex: none; }
.buy__price { font-size: 12.5px; color: var(--text-faint); text-align: center; line-height: 1.5; margin: 20px 0 14px; }
.buy__legal { font-size: 11.5px; color: var(--text-faint); text-align: center; line-height: 1.5; margin-top: 12px; }
.buy__legal u { text-decoration-color: #444; cursor: pointer; }

.toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); background: #1b1b20; border-radius: var(--pill); padding: 12px 22px; font-size: 13.5px; z-index: 95; animation: rise .2s ease-out; box-shadow: 0 8px 30px rgba(0,0,0,.5); }
@keyframes rise { from { opacity: 0; transform: translate(-50%, 10px); } }

.sep { height: 1px; background: var(--line); margin: 18px 0; }
.muted { color: var(--text-faint); }
.small { font-size: 12.5px; }

.offline-bar {
  position: fixed; z-index: 70;
  left: 50%; transform: translateX(-50%);
  top: calc(10px + var(--safe-top));
  background: #2a1d10; color: #e8b878;
  border-radius: var(--pill); padding: 9px 18px;
  font-size: 13px; box-shadow: 0 8px 26px rgba(0, 0, 0, .5);
  max-width: calc(100vw - 32px); text-align: center;
}

/* ---------- touch action sheet ---------- */

.sheet-backdrop {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(0, 0, 0, .6);
  display: flex; align-items: flex-end; justify-content: center;
  animation: fade .16s ease-out;
}
.sheet-backdrop[data-closing="true"] { opacity: 0; transition: opacity .16s; }

.sheet {
  width: 100%; max-width: 520px;
  background-color: #131317;
  isolation: isolate;
  border-radius: 26px 26px 0 0;
  padding: 10px 10px calc(12px + var(--safe-bottom));
  animation: slide-up .22s cubic-bezier(.2, .9, .3, 1);
  max-height: 80vh; overflow-y: auto;
}
@keyframes slide-up { from { transform: translateY(100%); } }

.sheet__grip { width: 38px; height: 4px; border-radius: 999px; background: #35353d; margin: 4px auto 12px; }
.sheet__title {
  font-size: 13px; color: var(--text-faint); text-align: center;
  padding: 0 16px 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sheet__list { display: flex; flex-direction: column; gap: 2px; }
.sheet__item {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 18px; border-radius: var(--radius-md);
  font-size: 15.5px; text-align: left; width: 100%;
  transition: background .14s;
}
.sheet__item:active { background: var(--surface-raised); }
.sheet__item--danger { color: #e0736f; }
.sheet__icon { display: grid; place-items: center; color: var(--text-dim); flex: none; }
.sheet__item--danger .sheet__icon { color: #e0736f; }
.sheet__cancel {
  width: 100%; margin-top: 8px; padding: 14px;
  border-radius: var(--radius-md); background: var(--surface-raised);
  font-size: 16px; font-weight: 550;
}

/* ---------- mobile ---------- */

.tabbar { display: none; }
.fab { display: none; }

@media (max-width: 1080px) {
  :root { --sidebar: 76px; }
  .dock__label, .sidebar__ver, .sidebar__promo span { display: none; }
  .sidebar { padding: 22px 12px 16px; align-items: center; }
  .sidebar__brand { padding: 0 0 20px; }
  .dock { width: 100%; }
  .dock__item { justify-content: center; padding: 12px 0; }
  .sidebar__promo { justify-content: center; }
  .stage--split { grid-template-columns: 300px minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: none; }

  .stage--split { grid-template-columns: minmax(0, 1fr); }
  .stage--split[data-open="detail"] .pane { display: none; }
  .stage--split:not([data-open="detail"]) .detail { display: none; }
  .pane { border-right: none; }
  .chat__back { display: grid; }

  .column__inner { padding: calc(18px + var(--safe-top)) 14px calc(130px + var(--safe-bottom)); }
  .pane__body { padding-bottom: calc(120px + var(--safe-bottom)); }
  .thread { padding-bottom: 10px; }
  .thread__inner, .composer__inner, .typing { padding-left: 14px; padding-right: 14px; }
  .footer { display: none; }
  .msg { max-width: 88%; }

  .tabbar {
    display: flex; position: fixed; z-index: 30;
    left: calc(12px + var(--safe-left)); right: calc(12px + var(--safe-right));
    bottom: calc(12px + var(--safe-bottom));
    background: rgba(20,20,23,.92);
    backdrop-filter: blur(18px);
    border-radius: var(--pill);
    padding: 7px 6px;
    box-shadow: 0 10px 34px rgba(0,0,0,.55);
  }
  .tabbar__item { flex: 1; display: grid; justify-items: center; gap: 3px; padding: 7px 0; border-radius: var(--pill); color: var(--text-faint); transition: color .18s; }
  .tabbar__item[aria-current="page"] { color: var(--blue); }
  .tabbar__label { font-size: 10.5px; font-weight: 550; }

  .fab {
    display: grid; place-items: center; position: fixed; z-index: 31;
    right: calc(18px + var(--safe-right));
    bottom: calc(92px + var(--safe-bottom));
    width: 56px; height: 56px; border-radius: 50%;
    background: #26262c; color: var(--text);
    box-shadow: 0 8px 26px rgba(0,0,0,.6);
    transition: transform .16s, background .18s;
  }
  .fab:hover { background: #303038; }
  .fab:active { transform: scale(.94); }

  .modal { max-height: 88vh; }
  .buy { max-width: 100%; }
}

/* ---------- calls ---------- */

.call {
  position: fixed; z-index: 88;
  right: 22px; bottom: 22px; width: 340px;
  background: #0e0e11; border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .7);
  animation: pop .2s cubic-bezier(.2,.9,.3,1);
}
.call__head { padding: 16px 18px 10px; }
.call__name { font-size: 16px; font-weight: 650; }
.call__state { font-size: 12.5px; color: var(--text-faint); margin-top: 2px; }
.call__video { position: relative; aspect-ratio: 3/4; background: #06060a; }
.call__remote { width: 100%; height: 100%; object-fit: cover; display: block; }
.call__local {
  position: absolute; right: 12px; bottom: 12px;
  width: 92px; aspect-ratio: 3/4; object-fit: cover;
  border-radius: 12px; border: 1px solid var(--line-strong); background: #000;
}
.call__avatar { display: grid; place-items: center; padding: 26px 0 18px; }
.call__notice { font-size: 12px; color: #e0b06f; padding: 10px 18px; line-height: 1.45; background: #1b1509; }
.call__controls { display: flex; gap: 10px; justify-content: center; padding: 16px; }
.call__button {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface-raised); color: var(--text);
  transition: background .16s;
}
.call__button:hover { background: var(--surface-hover); }
.call__button[data-off="true"] { background: #3a2a12; color: #e0b06f; }
.call__button--end { background: #b3392f; }
.call__button--end:hover { background: #c9443a; }

.ringer {
  position: fixed; z-index: 92;
  top: calc(18px + var(--safe-top)); left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px;
  width: min(420px, calc(100vw - 28px));
  padding: 12px 14px;
  background: #14141a; border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .65);
  animation: rise-down .22s cubic-bezier(.2,.9,.3,1);
}
@keyframes rise-down { from { opacity: 0; transform: translate(-50%, -12px); } }
.ringer__main { flex: 1; min-width: 0; }
.ringer__name { font-size: 15px; font-weight: 650; }
.ringer__kind { font-size: 12.5px; color: var(--text-faint); }
.ringer__accept, .ringer__decline {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; flex: none; color: #fff;
}
.ringer__accept { background: #2f8f52; }
.ringer__decline { background: #b3392f; }

@media (max-width: 760px) {
  .call {
    right: 10px; left: 10px; bottom: calc(84px + var(--safe-bottom));
    width: auto;
  }
}

/* ---------- overlay state ---------- */

/* Declared last so it overrides the mobile chrome defined in the media query
   above: while a dialog or action sheet is open the bottom bar and the compose
   button must not float over it.
   Hiding is instant — a fade would leave the bar visibly floating above the
   sheet for the length of the transition — while restoring is animated. */
.tabbar, .fab { transition: opacity .18s ease-out; }

body[data-overlay="true"] { overflow: hidden; }

body[data-overlay="true"] .tabbar,
body[data-overlay="true"] .fab {
  display: none;
}

/* Statutory age marking. Small, quiet, always present. */
.age-mark { display: inline-block; border: 1px solid var(--line); border-radius: 6px; padding: 1px 5px; margin-right: 6px; font-size: 11px; font-weight: 600; color: var(--text-faint); letter-spacing: .02em; }

/* Consent block on the registration screen. */
.consent { display: flex; align-items: flex-start; gap: 11px; margin: 4px 0 18px; cursor: pointer; }
.consent .checkbox { margin-top: 1px; }
.consent__text { font-size: 12.5px; line-height: 1.55; color: var(--text-faint); }
.consent__text a { color: var(--text-dim); text-decoration: underline; text-underline-offset: 2px; }
.consent__text a:hover { color: var(--text); }
