@font-face { font-family: "Fira Sans"; src: url(fonts/fira-Regular.woff) format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Fira Sans"; src: url(fonts/fira-Medium.woff) format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Fira Sans"; src: url(fonts/fira-SemiBold.woff) format("woff"); font-weight: 600; font-display: swap; }

/* ================= токены: вариант 1 «Воздух» ================= */
:root {
  --page: #FFFFFF;
  --card: #F3F7FD;
  --card-border: transparent;
  --card-shadow: 0 0 0 0 transparent;
  --sheet-card: #F3F7FD;
  --sheet-border: transparent;
  --field: #FFFFFF;
  --field-border: #E2EAF5;
  --line: #E2EAF5;
  --ink: #13233A;
  --muted: #5E7089;
  --faint: #8D9CB1;
  --chev: #A3B2C7;
  --blue: #2869E6;
  --blue-press: #1F57C4;
  --blue-soft: #A9C2F2;
  --sky: #DCE8FC;
  --sky-line: #BCD0F6;
  --green: #137A47;  --green-bg: #E3F4EA;
  --red: #B83434;    --red-bg: #FBE7E7;
  --amber: #8A5A06;  --amber-bg: #FBF1DC;
  --icon-bg: #FFFFFF;
  --ghost-bg: #F3F7FD; --ghost-ink: var(--blue); --ghost-border: transparent; --ghost-press: var(--sky);
  --hero-bg: var(--blue); --hero-ink: #FFFFFF; --hero-sub: rgba(255,255,255,.86);
  --hero-border: transparent; --hero-top: transparent;
  --hero-btn: #FFFFFF; --hero-btn-ink: var(--blue); --hero-btn-press: var(--sky);
  --hero-alt: rgba(255,255,255,.16); --hero-alt-ink: #FFFFFF; --hero-alt-border: transparent;
  --hero-alt-press: rgba(255,255,255,.26);
  --hero-track: rgba(255,255,255,.24); --hero-bar: #FFFFFF;
  --tile-bg: #F3F7FD; --tile-border: transparent;
  --r-xl: 20px; --r-lg: 16px; --r-md: 14px; --r-sm: 12px;
  --safe-bottom: max(env(safe-area-inset-bottom), var(--tg-safe-area-inset-bottom, 0px));
  --safe-top: var(--tg-content-safe-area-inset-top, 0px);
}

/* ================= вариант 2 «Линии» ================= */
[data-theme="2"] {
  --card: #FFFFFF;
  --card-border: #DCE5F1;
  --sheet-card: #FFFFFF;
  --sheet-border: #DCE5F1;
  --field-border: #D3DEEE;
  --icon-bg: transparent;
  --ghost-bg: #FFFFFF; --ghost-border: #C6D6F2; --ghost-press: #F3F7FD;
  --hero-bg: #FFFFFF; --hero-ink: var(--ink); --hero-sub: var(--muted);
  --hero-border: #DCE5F1; --hero-top: var(--blue);
  --hero-btn: var(--blue); --hero-btn-ink: #FFFFFF; --hero-btn-press: var(--blue-press);
  --hero-alt: #FFFFFF; --hero-alt-ink: var(--blue); --hero-alt-border: #C6D6F2; --hero-alt-press: #F3F7FD;
  --hero-track: #E2EAF5; --hero-bar: var(--blue);
  --tile-bg: #FFFFFF; --tile-border: #DCE5F1;
  --r-xl: 14px; --r-lg: 12px; --r-md: 12px; --r-sm: 10px;
}

/* ================= вариант 3 «Плитки» ================= */
[data-theme="3"] {
  --page: #EDF3FC;
  --card: #FFFFFF;
  --card-shadow: 0 1px 2px rgba(19,35,58,.05), 0 3px 10px rgba(19,35,58,.04);
  --line: #E8EEF7;
  --field-border: #DCE5F1;
  --icon-bg: var(--sky);
  --ghost-bg: #FFFFFF; --ghost-press: var(--sky);
  --hero-bg: #2462DF;
  --hero-alt: rgba(255,255,255,.18);
  --tile-bg: #FFFFFF; --tile-border: transparent;
  --r-xl: 22px; --r-lg: 18px; --r-md: 14px; --r-sm: 12px;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--page); }
body {
  color: var(--ink);
  font: 400 15px/1.45 "Fira Sans", -apple-system, "Segoe UI", Roboto, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior-y: none;
  overflow-x: hidden;
}
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
a { color: var(--blue); }
svg { flex-shrink: 0; }

.loading, .fatal { min-height: 70vh; display: grid; place-items: center; text-align: center; color: var(--muted); padding: 24px; }
.fatal h1 { color: var(--ink); }

/* ---------- screen ---------- */
.screen {
  max-width: 560px; margin: 0 auto;
  padding: calc(12px + var(--safe-top)) 16px calc(28px + var(--safe-bottom));
  animation: enter .18s ease-out;
}
.screen.back { animation-name: enter-back; }
.screen.none { animation: none; }
@keyframes enter { from { opacity: 0; transform: translateX(14px); } }
@keyframes enter-back { from { opacity: 0; transform: translateX(-14px); } }

h1 { font-size: 24px; line-height: 1.2; font-weight: 600; letter-spacing: -0.012em; margin: 10px 0 6px; overflow-wrap: anywhere; }
h2 { font-size: 17px; line-height: 1.3; font-weight: 600; margin: 24px 0 10px; overflow-wrap: anywhere; }
.lead { color: var(--muted); margin: 0 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.num { font-variant-numeric: tabular-nums lining-nums; }
.star { width: 1em; height: 1em; vertical-align: -0.12em; margin-left: 0.15em; color: #F5B301; }
.sdot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(19,35,58,.14); flex: 0 0 auto; }

/* ---------- home ---------- */
.brand { display: block; height: 34px; width: auto; max-width: 60%; object-fit: contain; margin: 4px 0 10px; }
.hello { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; column-gap: 12px; row-gap: 2px; margin: 6px 0 16px; min-height: 26px; }
.hello__name { font-size: 17px; line-height: 1.3; font-weight: 600; min-width: 0; overflow-wrap: break-word; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; line-height: 18px; font-weight: 500; color: var(--green); white-space: nowrap; flex: 0 0 auto; }
.badge svg { width: 14px; height: 14px; }

.hero {
  background: var(--hero-bg); color: var(--hero-ink); border-radius: var(--r-xl); padding: 20px 18px 18px;
  border: 1px solid var(--hero-border); box-shadow: inset 0 3px 0 var(--hero-top), var(--card-shadow);
}
.hero__title { font-size: 22px; line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; }
.hero__sub { margin-top: 4px; color: var(--hero-sub); overflow-wrap: anywhere; }
.hero__actions { display: flex; gap: 8px; margin-top: 18px; }
.hero__btn {
  flex: 1 1 auto; min-width: 0; display: flex; align-items: center; justify-content: center;
  border: 1px solid transparent; border-radius: var(--r-sm); min-height: 46px; padding: 8px 14px;
  background: var(--hero-btn); color: var(--hero-btn-ink); font-weight: 600; line-height: 1.25;
}
.hero__btn > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero__btn:active { background: var(--hero-btn-press); }
.hero__btn--alt { flex: 0 0 auto; background: var(--hero-alt); color: var(--hero-alt-ink); border-color: var(--hero-alt-border); font-weight: 500; }
.hero__btn--alt:active { background: var(--hero-alt-press); }
.hero__wait { margin-top: 16px; }
.hero__timer { font-size: 30px; line-height: 1.1; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.track { height: 4px; border-radius: 4px; background: var(--hero-track); margin-top: 12px; overflow: hidden; }
.track > i { display: block; height: 100%; background: var(--hero-bar); border-radius: 4px; transition: width 1s linear; }

.promo { margin-top: 14px; border-radius: var(--r-lg); overflow: hidden; background: var(--card); border: 1px solid var(--card-border); box-shadow: var(--card-shadow); }
.promo__img { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; transition: transform .12s ease; }
.promo__img:active { transform: scale(.985); }
.promo__img:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.promo img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; }
.promo .btn { width: calc(100% - 20px); margin: 10px; white-space: normal; }
.footnote { margin-top: 22px; color: var(--muted); font-size: 13px; text-align: center; }

/* ---------- groups and rows ---------- */
.group {
  background: var(--card); border: 1px solid var(--card-border); box-shadow: var(--card-shadow);
  border-radius: var(--r-lg); overflow: hidden; margin-top: 14px;
}
.sheet .group { background: var(--sheet-card); border-color: var(--sheet-border); box-shadow: none; }
.group--flush { margin-top: 0; }
.row {
  position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px;
  padding: 11px 14px; border: 0; background: none; text-align: left;
}
.row + .row::before { content: ""; position: absolute; top: 0; right: 0; left: 58px; height: 1px; background: var(--line); }
.row.plain + .row::before { left: 14px; }
button.row:active { background: var(--sky); }
.row__icon { flex: 0 0 32px; height: 32px; border-radius: 10px; background: var(--icon-bg); color: var(--blue); display: grid; place-items: center; }
.row__icon svg { width: 19px; height: 19px; }
.row__main { flex: 1 1 auto; min-width: 0; }
.row__title { display: block; font-weight: 500; line-height: 1.3; overflow-wrap: break-word; }
.row__hint { display: block; color: var(--muted); font-size: 13px; line-height: 1.35; margin-top: 2px; }
.row__value { flex: 0 0 auto; max-width: 46%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; line-height: 1.3; }
.row__value--accent { color: var(--blue); font-weight: 500; }
.row__chev { flex: 0 0 16px; width: 16px; height: 16px; color: var(--chev); display: grid; place-items: center; }
.row__chev svg { width: 16px; height: 16px; }
.row--danger .row__title { color: var(--red); }
/* яркие цветные значки */
.row__icon[data-tone] { color: #FFFFFF; box-shadow: inset 0 -2px 0 rgba(0,0,0,.12); }
.row__icon[data-tone] svg { stroke-width: 2.1; }
.row__icon[data-tone="blue"] { background: linear-gradient(160deg, #4A8BFF, #2563EB); }
.row__icon[data-tone="green"] { background: linear-gradient(160deg, #34C77B, #16975A); }
.row__icon[data-tone="violet"] { background: linear-gradient(160deg, #A06BFF, #7440E0); }
.row__icon[data-tone="orange"] { background: linear-gradient(160deg, #FFA53D, #F07400); }
.row__icon[data-tone="pink"] { background: linear-gradient(160deg, #FF6AA8, #E0367F); }
.row__icon[data-tone="amber"] { background: linear-gradient(160deg, #FFC23D, #EE9500); }
.row__icon[data-tone="teal"] { background: linear-gradient(160deg, #2FD0C8, #0E9AA7); }
.row__icon[data-tone="red"] { background: linear-gradient(160deg, #FF6B6B, #D93D3D); }

/* ---------- server picker ---------- */
.seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 3px; background: var(--card); border: 1px solid var(--card-border); border-radius: var(--r-sm); margin-bottom: 12px; box-shadow: var(--card-shadow); }
.seg button { flex: 1 1 auto; min-width: 0; border: 0; background: none; border-radius: 9px; padding: 8px 12px; color: var(--muted); line-height: 1.3; text-align: center; }
.seg button.on { background: var(--blue); color: #FFFFFF; font-weight: 500; }
[data-theme="1"] .seg button.on, :root:not([data-theme]) .seg button.on { background: #FFFFFF; color: var(--ink); box-shadow: 0 1px 2px rgba(19,35,58,.08); }

.search { position: relative; margin-bottom: 16px; }
.search svg { position: absolute; left: 13px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search .field { padding-left: 40px; }

.label { color: var(--muted); font-size: 13px; margin: 18px 0 8px; }

.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 339px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 480px) { .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.tile {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 0; min-height: 66px; padding: 8px 4px 7px; text-align: center;
  border: 1px solid var(--tile-border); background: var(--tile-bg); border-radius: var(--r-sm);
  box-shadow: var(--card-shadow);
}
.tile:active { filter: brightness(.95); }
.tile__num { display: block; font-size: 23px; line-height: 1.1; font-weight: 600; font-variant-numeric: tabular-nums lining-nums; letter-spacing: -0.02em; color: var(--ink); }
.tile__num--word { font-size: 14px; line-height: 1.25; letter-spacing: 0; max-width: 100%; overflow-wrap: break-word; }
.grid--words { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.grid--words .tile { min-height: 58px; padding: 10px 10px; }
.tile__name { display: block; max-width: 100%; margin-top: 3px; font-size: 11px; line-height: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: .01em; }
.tile__name--long { font-size: 10px; letter-spacing: -0.015em; }
.tile__name--xlong { font-size: 9px; letter-spacing: -0.02em; }
@media (max-width: 379px) { .grid { gap: 6px; } }
@media (max-width: 359px) { .tile { padding-left: 2px; padding-right: 2px; } }
.tile--last { background: var(--sky); border-color: var(--sky-line); }
.tile--last .tile__name { color: var(--blue); }
/* 1 и 2: цветная полоска сверху */
.tile[data-c] { box-shadow: inset 0 4px 0 var(--c-stripe); padding-top: 11px; }
[data-theme="2"] .tile.tile--last { background: #FFFFFF; border-color: var(--blue); box-shadow: inset 0 4px 0 var(--c-stripe, var(--blue)), 0 0 0 1px var(--blue); }
/* 3: плитка цвета сервера */
[data-theme="3"] .tile[data-c] { background: var(--c-fill); border-color: var(--c-edge); box-shadow: var(--card-shadow); padding-top: 8px; }
[data-theme="3"] .tile[data-c] .tile__num { color: var(--c-on); }
[data-theme="3"] .tile[data-c] .tile__name { color: var(--c-on); opacity: .88; }
[data-theme="3"] .tile.tile--last { box-shadow: 0 0 0 2px var(--page), 0 0 0 4px var(--blue); }
[data-theme="3"] .tile--last:not([data-c]) { background: #FFFFFF; border-color: transparent; }

/* ---------- forms ---------- */
.field {
  width: 100%; border: 1px solid var(--field-border); background: var(--field); border-radius: var(--r-sm);
  padding: 12px 14px; font: inherit; line-height: 22px; color: inherit; -webkit-appearance: none; appearance: none;
}
.field::placeholder { color: var(--faint); }
.field:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(40,105,230,.14); }
textarea.field { min-height: 190px; resize: vertical; display: block; }
.field-row { display: flex; gap: 8px; align-items: stretch; }
.field-row .field { flex: 1 1 auto; min-width: 0; }
.field-row .btn { width: auto; flex: 0 0 auto; padding: 0 18px; min-height: 48px; }

.chip { display: flex; width: 100%; text-align: left; align-items: center; gap: 8px; min-height: 40px; border: 1px solid var(--card-border); background: var(--card); border-radius: var(--r-sm); padding: 4px 5px 4px 14px; margin-bottom: 12px; box-shadow: var(--card-shadow); }
.chip__label { color: var(--muted); }
.chip b { flex: 1 1 auto; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip__action { flex: 0 0 auto; color: var(--blue); background: #FFFFFF; border-radius: 999px; padding: 4px 11px; font-size: 13px; line-height: 18px; font-weight: 500; }
[data-theme="2"] .chip__action { background: var(--sky); }
[data-theme="3"] .chip__action { background: var(--sky); }

.counter { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 8px 2px 0; font-size: 13px; color: var(--muted); }
.counter > span:last-child { flex: 0 0 auto; white-space: nowrap; }
.counter .over { color: var(--red); font-weight: 500; }

.photo { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.photo__thumb { position: relative; width: 76px; height: 76px; border-radius: var(--r-sm); overflow: hidden; background: var(--card); flex: 0 0 auto; }
.photo__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo__thumb .spinner { position: absolute; inset: 0; margin: auto; }
.photo__thumb.busy img { opacity: .45; }
.photo__remove { display: block; border: 0; background: none; color: var(--red); padding: 6px 0; font-weight: 500; }
.photo__hint { color: var(--muted); font-size: 13px; }

.note { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--r-sm); padding: 11px 14px; margin-top: 14px; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; box-shadow: var(--card-shadow); }
.note b { color: var(--ink); font-weight: 500; }

/* ---------- buttons ---------- */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  min-height: 50px; padding: 10px 18px; border: 1px solid transparent; border-radius: var(--r-md);
  background: var(--blue); color: #FFFFFF; font-weight: 600; font-size: 16px; line-height: 1.25; text-align: center;
}
.btn svg { width: 20px; height: 20px; }
.btn:active { background: var(--blue-press); }
.btn:disabled { background: var(--blue-soft); }
.btn--ghost { background: var(--ghost-bg); color: var(--ghost-ink); border-color: var(--ghost-border); }
.btn--ghost:active { background: var(--ghost-press); }
.btn--danger { background: var(--red-bg); color: var(--red); }
.btn--danger:active { background: #F6D5D5; }
.btn--sm { min-height: 36px; padding: 6px 14px; font-size: 14px; border-radius: 10px; width: auto; }
.actions { margin-top: 20px; display: grid; gap: 8px; }
.actions--tight { margin-top: 14px; }

.spinner { width: 20px; height: 20px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- status ---------- */
.pill { display: inline-flex; align-items: center; font-size: 12.5px; font-weight: 500; line-height: 16px; padding: 3px 9px; border-radius: 999px; white-space: nowrap; background: var(--card); color: var(--muted); flex: 0 0 auto; }
.pill--moderation { background: var(--amber-bg); color: var(--amber); }
.pill--accepted { background: var(--green-bg); color: var(--green); }
.pill--declined { background: var(--red-bg); color: var(--red); }
.pill--cancelled { background: #EEF1F5; color: var(--muted); }
[data-theme="2"] .pill { background: transparent; box-shadow: inset 0 0 0 1px currentColor; }

.post { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 13px 14px; position: relative; }
.post + .post::before { content: ""; position: absolute; top: 0; left: 14px; right: 0; height: 1px; background: var(--line); }
.post:active { background: var(--sky); }
.post__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 22px; }
.post__server { display: flex; align-items: center; gap: 7px; min-width: 0; font-weight: 600; }
.post__server span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post__text { color: var(--ink); margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.post__meta { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }

.textblock { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--r-md); padding: 14px; white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 14px; box-shadow: var(--card-shadow); }
.sheet .textblock { background: var(--sheet-card); border-color: var(--sheet-border); box-shadow: none; }
.facts { margin: 14px 0 0; padding: 0; list-style: none; }
.facts li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 0; min-height: 44px; border-bottom: 1px solid var(--line); }
.facts li:last-child { border-bottom: 0; }
.facts li > span:first-child { color: var(--muted); flex: 0 0 auto; max-width: 55%; }
.facts li > span:last-child { text-align: right; font-variant-numeric: tabular-nums; min-width: 0; overflow-wrap: anywhere; display: flex; justify-content: flex-end; align-items: center; gap: 7px; }
[data-theme="3"] .facts { background: #FFFFFF; border-radius: var(--r-lg); padding: 2px 14px; box-shadow: var(--card-shadow); }
.alert { border-radius: var(--r-sm); padding: 11px 14px; margin-top: 14px; font-size: 14px; overflow-wrap: anywhere; }
.alert--red { background: var(--red-bg); color: var(--red); }
.alert--green { background: var(--green-bg); color: var(--green); }
.alert--amber { background: var(--amber-bg); color: var(--amber); }

/* ---------- done ---------- */
.done { text-align: center; padding-top: 28px; }
.done__icon { width: 72px; height: 72px; border-radius: 50%; background: var(--sky); color: var(--blue); display: grid; place-items: center; margin: 0 auto 18px; }
.done__icon svg { width: 34px; height: 34px; }
.done__icon path { stroke-dasharray: 40; stroke-dashoffset: 0; animation: draw .45s .12s ease-out both; }
@keyframes draw { from { stroke-dashoffset: 40; } }
.done .lead { max-width: 340px; margin-left: auto; margin-right: auto; }
.ad { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--r-md); padding: 14px; margin-top: 8px; text-align: left; white-space: pre-wrap; overflow-wrap: anywhere; box-shadow: var(--card-shadow); }
.ad .btn { margin-top: 12px; white-space: normal; }
.ad .btn--ghost { background: var(--page); }
[data-theme="3"] .ad .btn--ghost { background: var(--sky); }

/* ---------- big numbers ---------- */
.stat { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; margin: 18px 0 2px; }
.stat__value { font-size: 40px; line-height: 1.1; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat__unit { color: var(--muted); font-size: 17px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin-top: 16px; }
.split > div { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--r-md); padding: 12px 14px; min-width: 0; box-shadow: var(--card-shadow); }
.split b { display: block; font-size: clamp(16px, 5.2vw, 20px); line-height: 1.25; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.split span { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.linkbox { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--r-sm); padding: 12px 14px; font-size: 14px; overflow-wrap: anywhere; margin-top: 8px; box-shadow: var(--card-shadow); }
.btn-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin-top: 8px; }

.result { border-radius: var(--r-lg); background: var(--sky); padding: 18px; margin-top: 18px; text-align: center; }
.result p { margin: 6px 0 0; }
.result__big { font-size: 34px; line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; color: var(--blue); font-variant-numeric: tabular-nums; }
.center { text-align: center; }

/* ---------- radio list ---------- */
.choice { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 50px; padding: 11px 14px; border: 0; background: none; text-align: left; position: relative; }
.choice + .choice::before { content: ""; position: absolute; top: 0; left: 46px; right: 0; height: 1px; background: var(--line); }
.choice__dot { flex: 0 0 20px; height: 20px; border-radius: 50%; border: 2px solid #B5C3D6; background: #FFFFFF; }
.choice.on .choice__dot { border-color: var(--blue); border-width: 6px; }
.choice__main { flex: 1 1 auto; min-width: 0; line-height: 1.3; }
.choice__price { flex: 0 0 auto; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.choice.on .choice__price { color: var(--ink); }

/* ---------- sheet ---------- */
.overlay { position: fixed; inset: 0; background: rgba(19,35,58,.34); opacity: 0; transition: opacity .2s; z-index: 20; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 21; max-width: 560px; margin: 0 auto;
  background: #FFFFFF; border-radius: 22px 22px 0 0; padding: 8px 16px calc(18px + var(--safe-bottom));
  max-height: 88vh; overflow-y: auto; transform: translateY(102%); transition: transform .26s cubic-bezier(.2,.8,.2,1);
}
.sheet.open { transform: none; }
.overlay.open { opacity: 1; }
.closing { pointer-events: none; }
.sheet__grab { width: 36px; height: 4px; border-radius: 4px; background: var(--line); margin: 0 auto 10px; }
.sheet h1 { margin-top: 4px; font-size: 21px; }

.channel { display: flex; align-items: center; gap: 12px; padding: 9px 10px 9px 14px; min-height: 54px; position: relative; }
.channel + .channel::before { content: ""; position: absolute; top: 0; left: 14px; right: 0; height: 1px; background: var(--line); }
.channel__name { flex: 1 1 auto; min-width: 0; font-weight: 500; }
.channel .btn--sm { min-width: 124px; }
.channel .btn--sm.done-state { background: var(--green-bg); color: var(--green); }

/* ---------- toast ---------- */
#toast {
  position: fixed; left: 50%; bottom: calc(20px + var(--safe-bottom)); z-index: 40;
  transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #FFFFFF; border-radius: 12px; padding: 11px 16px;
  width: max-content; max-width: calc(100% - 32px); font-size: 14px; text-align: center;
  transition: opacity .2s, transform .2s;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

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