/* Личный кабинет south.VPN поверх shared.css */
body {
  background: var(--bg);
}
body::before {
  content: ""; position: fixed; left: 0; right: 0; top: auto; bottom: 0;
  height: calc(100vh + 240px); height: calc(100lvh + 240px);
  z-index: -1; pointer-events: none;
  background-color: #0c0a22;
  background-image: radial-gradient(70% 55% at 90% 0%, rgba(255, 154, 61, .12), transparent 70%),
    linear-gradient(165deg, #0c0a22 0%, #17133e 65%, #221d58 100%);
  background-repeat: no-repeat; background-position: bottom;
  background-size: 100% 100vh; background-size: 100% 100lvh;
}
@supports (-webkit-touch-callout: none) {
  @media (max-width: 500px) {
    body::before {
      top: 0; bottom: auto;
      background-color: #221d58;
      background-position: top;
    }
  }
}
a { color: var(--amb-hi); text-underline-offset: 3px; }
h1 { font-size: clamp(28px, 3.8vw, 38px); }
h2 { font-size: 22px; }
h3 { font-size: 17px; }

.dev {
  background: #241e54; color: var(--muted); font-size: 13px;
  text-align: center; padding: 7px 16px; border-bottom: 1px solid var(--line);
}
.who { display: flex; align-items: center; gap: 12px; min-width: 0; font-size: 14px; color: var(--muted); }
.who b { font-weight: 500; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 200px; }
.linkish { background: none; border: 0; padding: 6px 0; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linkish:hover { color: var(--ink); }

.cab-wrap { padding-top: 8px; }
.tabs { display: flex; gap: 26px; border-bottom: 1px solid var(--line); margin: 8px 0 26px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs.has-right { -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 36px), transparent 100%); mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 36px), transparent 100%); }
.tabs.has-left { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 28px, #000 100%); mask-image: linear-gradient(to right, transparent 0, #000 28px, #000 100%); }
.tabs.has-left.has-right { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 28px, #000 calc(100% - 36px), transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 28px, #000 calc(100% - 36px), transparent 100%); }
.tab { position: relative; padding: 12px 0 14px; color: var(--muted); text-decoration: none; font-size: 15.5px; white-space: nowrap; background: none; border: 0; cursor: pointer; flex: none; }
.tab:hover { color: var(--ink); }
.tab[aria-current="page"] { color: var(--ink); }
.tab[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--amb); border-radius: 2px; }

main { padding-bottom: 64px; min-height: 55vh; }
.screen { display: grid; gap: 20px; }
@keyframes tab-in-next { from { opacity: 0; transform: translate3d(28px, 0, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }
@keyframes tab-in-prev { from { opacity: 0; transform: translate3d(-28px, 0, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }
.screen.swipe-next { animation: tab-in-next .2s var(--ease); }
.screen.swipe-prev { animation: tab-in-prev .2s var(--ease); }
.swipe-pill {
  position: fixed; top: 50%; z-index: 35; pointer-events: none;
  transform: translateY(-50%);
  padding: 7px 12px; border-radius: var(--pill);
  background: rgba(20, 16, 54, .92); border: 1px solid var(--line-hi);
  color: var(--muted); font: 500 13px/1 var(--sans);
  box-shadow: 0 8px 24px rgba(4, 3, 18, .55);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: border-color .14s ease, color .14s ease, background .14s ease;
}
.swipe-pill.is-right { right: 12px; }
.swipe-pill.is-left { left: 12px; }
.swipe-pill.is-ready {
  border-color: var(--amb); background: rgba(255, 154, 61, .18); color: var(--amb-hi);
}
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.head p { color: var(--muted); margin-top: 6px; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px; align-items: start; }

.card > .head { margin-bottom: 14px; align-items: center; }
.card > .head .row { margin-top: 0; }
.card h2 + p, .card h3 + p { margin-top: 6px; color: var(--muted); }
.card .row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.card .row + p, .card .row + .faint, .summary .row + p { margin-top: 14px; }

/* формы */
.field { display: grid; gap: 8px; }
.field label { font-size: 14.5px; color: var(--muted); }
.input { width: 100%; min-height: 50px; padding: 12px 14px; background: rgba(10, 8, 30, .65); border: 1px solid var(--line); border-radius: var(--rb); font-size: 16px; color: var(--ink); }
.input::placeholder { color: rgba(201, 199, 216, .55); }
.input:focus { outline: none; border-color: var(--amb); box-shadow: 0 0 0 3px rgba(255, 154, 61, .22); }
.input.code { font: 500 26px/1 var(--mono); letter-spacing: .42em; text-align: center; padding-left: calc(14px + .42em); }
.inline { display: flex; gap: 10px; }
.inline .input { flex: 1; min-width: 0; }
.error { color: var(--bad); font-size: 14.5px; }
.ok { color: var(--ok); font-size: 14.5px; }

/* вход */
.login { max-width: 460px; margin: 4vh auto 0; display: grid; gap: 20px; }
.login h1 { font-size: 34px; }
.login .lead { color: var(--muted); margin-top: 8px; }
.or { display: flex; align-items: center; gap: 14px; color: var(--faint); font-size: 14px; margin: 16px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.wait { display: grid; gap: 14px; text-align: left; }
.pulse { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 15px; }
.pulse::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--amb); animation: pulse 1.6s var(--ease) infinite; }
@keyframes pulse { 0%, 100% { opacity: .35; transform: scale(.8); } 50% { opacity: 1; transform: scale(1); } }
.match { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border: 1px solid var(--amb); border-radius: var(--rb); background: var(--amb-bg); }
.match b { font: 600 30px/1 var(--display); letter-spacing: .08em; color: var(--amb-hi); }
.steps-mini { margin: 0; padding-left: 20px; color: var(--muted); display: grid; gap: 4px; }
.quick-auth { display: grid; gap: 10px; }
.oauth-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.oauth-grid.single { grid-template-columns: 1fr; }
.btn-oauth, .btn-passkey { justify-content: center; gap: 9px; min-height: 48px; }
.btn-oauth .i { stroke: none; }
.btn-oauth-google { background: #f2f0eb; color: #16122f; border-color: #f2f0eb; font-weight: 550; }
.btn-oauth-google:hover:not(:disabled) { background: #ffffff; border-color: #ffffff; }
.btn-oauth-link { background: rgba(255, 255, 255, .08); border-color: rgba(230, 224, 255, .28); color: var(--ink); }
.btn-oauth-link:hover:not(:disabled) { background: rgba(255, 255, 255, .14); border-color: var(--line-hi); }
.btn-tg { background: #24a1de; border-color: #24a1de; color: #ffffff; font-weight: 550; }
.btn-tg:hover:not(:disabled) { background: #1d8ec7; border-color: #1d8ec7; box-shadow: 0 10px 26px -12px rgba(36, 161, 222, .8); }
.btn-tg .i, .btn-tg-soft .i { stroke: none; }
.btn-tg-soft { background: rgba(36, 161, 222, .14); border-color: rgba(36, 161, 222, .42); color: #7ad0fb; }
.btn-tg-soft:hover:not(:disabled) { background: rgba(36, 161, 222, .22); border-color: #24a1de; color: #ffffff; }
.btn-passkey { border-color: rgba(255, 154, 61, .35); background: rgba(255, 154, 61, .08); }
.btn-passkey:hover { border-color: var(--amb); background: rgba(255, 154, 61, .16); }
.btn-passkey-sub { justify-content: center; gap: 9px; min-height: 44px; padding: 10px 16px; font-size: 14.5px; }
.btn-passkey-add { min-height: 44px; padding: 10px 18px; font-size: 14.5px; white-space: nowrap; }
.passkey-note { font-size: 13.5px; margin-top: 8px; }
.passkey-hint { margin-top: 10px; padding: 10px 12px; border-radius: var(--rb); border: 1px solid rgba(255, 154, 61, .35); background: rgba(255, 154, 61, .08); color: var(--ink); font-size: 13.5px; line-height: 1.45; }

/* обзор */
.status { position: relative; overflow: hidden; }
.status.on { border-color: rgba(255, 154, 61, .45); background: linear-gradient(150deg, rgba(255, 154, 61, .13), rgba(20, 16, 54, .88) 60%); }
.status h1 { margin-top: 8px; }
.status .sub { color: var(--muted); margin-top: 6px; font-size: 17px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; font-variant-numeric: tabular-nums; }
.fact { border-top: 1px solid var(--line); padding-top: 12px; }
.fact b { display: block; font: 500 19px var(--display); margin-top: 4px; }
.fact small { color: var(--faint); font-size: 13.5px; }
.meter { height: 6px; border-radius: 3px; background: rgba(230, 224, 255, .12); overflow: hidden; margin-top: 10px; }
.meter i { display: block; height: 100%; width: 0; background: var(--amb); border-radius: 3px; transition: width .6s var(--ease); }
.meter.low i { background: var(--bad); }
.connect-main { margin-top: 14px; }
.connect-actions { display: grid; grid-template-columns: auto auto; justify-content: start; gap: 10px; margin-top: 18px; }
.linkbox { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 12px 14px; border: 1px dashed var(--line); border-radius: var(--rb); font: 13.5px/1.4 var(--mono); color: var(--muted); overflow-wrap: anywhere; word-break: normal; }
.apps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.connect-note { margin-top: 10px; }
.reserve-block { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.reserve-note { margin-top: 6px; font-size: 12.5px; }
.reserve-box { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.reserve-box summary { cursor: pointer; color: var(--amb-hi); font-size: 14.5px; list-style: none; display: inline-flex; align-items: center; gap: 7px; }
.reserve-box summary::before { content: "▸"; display: inline-block; transition: transform .18s var(--ease); }
.reserve-box[open] summary::before { transform: rotate(90deg); }
.reserve-box summary::-webkit-details-marker { display: none; }
.reserve-box[open] summary { margin-bottom: 10px; }

/* тарифы */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.plan { position: relative; text-align: left; display: flex; flex-direction: column; gap: 6px; padding: 20px 18px; background: var(--surface-card); border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; transition: border-color .2s var(--ease), background .2s var(--ease); }
.plan:hover { border-color: var(--line-hi); }
.plan[aria-checked="true"] { border-color: var(--amb); background: linear-gradient(160deg, rgba(255, 154, 61, .16), rgba(20, 16, 54, .9)); }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan .name { font: 500 19px var(--display); }
.plan .price { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.plan .price b { font: 500 26px var(--display); color: var(--amb-hi); margin-right: 3px; }
.plan ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; color: var(--muted); font-size: 14px; }
.plan li::before { content: "✓"; color: var(--amb-hi); margin-right: 8px; }
.plan .tag { flex: none; }
.periods { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; font-variant-numeric: tabular-nums; }
.period { display: grid; gap: 2px; justify-items: center; padding: 10px 4px; border: 1px solid var(--line); border-radius: var(--rb); background: transparent; cursor: pointer; transition: border-color .2s, background .2s; }
.period b { font: 500 17px var(--display); }
.period small { font-size: 12.5px; color: var(--faint); }
.period small.save { color: var(--amb-hi); }
.period[aria-checked="true"] { border-color: var(--amb); background: var(--amb-bg); }
.stepper { display: inline-grid; grid-template-columns: 44px 52px 44px; align-items: center; border: 1px solid var(--line); border-radius: var(--rb); overflow: hidden; }
.stepper button { height: 44px; border: 0; background: transparent; cursor: pointer; font-size: 20px; color: var(--ink); }
.stepper button:hover { background: var(--surface-2); }
.stepper button[disabled] { opacity: .35; cursor: default; }
.stepper output { text-align: center; font: 500 17px var(--display); font-variant-numeric: tabular-nums; }
.opt { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.summary { position: sticky; top: 82px; font-variant-numeric: tabular-nums; }
.lines { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.lines li { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); }
.lines li span:last-child { white-space: nowrap; color: var(--ink); }
.lines li.save span:last-child { color: var(--amb-hi); }
.total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; }
.total b { font: 500 34px var(--display); }
.step-title { font-size: 19px; }
.section-title { margin-top: 12px; }
.upgrade { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid var(--line-soft); }
.upgrade:first-of-type { border-top: 0; }
details.promo summary { cursor: pointer; color: var(--amb-hi); list-style: none; font-size: 15px; }
details.promo summary::-webkit-details-marker { display: none; }
details.promo[open] summary { margin-bottom: 10px; }

/* списки */
.list { display: grid; }
.item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line-soft); }
.item:first-child { border-top: 0; padding-top: 4px; }
.item .title { font-weight: 500; }
.item .meta { color: var(--faint); font-size: 14px; }
.item .side { text-align: right; display: grid; gap: 4px; justify-items: end; }
.item .amount { font: 500 17px var(--display); font-variant-numeric: tabular-nums; }
.empty { color: var(--muted); padding: 6px 0; }
.confirm { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.confirm .button { min-height: 40px; padding: 8px 14px; }

/* оплата и диалоги */
.overlay { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 16px; background: rgba(8, 6, 26, .82); backdrop-filter: blur(6px); }
.sheet { width: 100%; max-width: 440px; background: var(--bg-2); border: 1px solid var(--line-hi); border-radius: 16px; padding: 28px; display: grid; gap: 14px; text-align: center; box-shadow: var(--drop); }
.sheet .big { font: 500 24px var(--display); }
.sheet .row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.mark { width: 56px; height: 56px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; font-size: 26px; background: var(--surface-2); }
.mark.ok { background: var(--ok-bg); color: var(--ok); }
.mark.bad { background: var(--bad-bg); color: var(--bad); }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 50; transform: translateX(-50%); max-width: calc(100% - 32px); background: var(--ink); color: #16122f; border-radius: var(--rb); padding: 12px 18px; font-size: 15px; box-shadow: 0 12px 40px -12px rgba(0, 0, 0, .6); }

.paybar { display: none; }
.paybar.away { pointer-events: none; }
@media (max-width: 900px) {
  .paybar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
    align-items: center; justify-content: space-between; gap: 16px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: #17133d; border-top: 1px solid var(--line);
    transition: transform .25s var(--ease);
  }
  .paybar b { display: block; font: 500 22px var(--display); line-height: 1.1; }
  .paybar .button { min-width: 150px; }
  .paybar.away { transform: translateY(110%); }
  .grid-2 { grid-template-columns: 1fr; }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary { position: static; }
}
.item-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 6px; }

/* поддержка и возвраты */
.tab .dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent, #ff9a3d); margin-left: 6px; vertical-align: middle;
}
.sup-top { align-items: center; flex-wrap: nowrap; gap: 10px; }
.sup-chat {
  background: var(--surface-card); border: 1px solid var(--line);
  border-radius: var(--r); padding: 18px 20px; backdrop-filter: blur(12px);
}
.sup-hints { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.sup-hint {
  display: block; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: rgba(255,255,255,.02);
  color: inherit; text-decoration: none; font-size: 13px; line-height: 1.4;
}
.sup-hint b { display: block; margin-bottom: 4px; font-size: 14px; }
.sup-hint:hover { border-color: rgba(255,255,255,.28); }
.sup-thread {
  display: flex; flex-direction: column; gap: 10px;
}
.sup-msg {
  max-width: 92%; padding: 10px 13px; border-radius: 12px;
  border: 0; background: rgba(255,255,255,.05);
  font-size: 14.5px; line-height: 1.5; word-break: break-word;
}
.sup-msg.user {
  align-self: flex-end; max-width: 86%;
  background: rgba(255,154,61,.15);
  border-radius: 14px 14px 4px 14px;
}
.sup-msg.operator {
  align-self: stretch; max-width: 100%;
  background: rgba(124,108,255,.11);
  border-left: 2.5px solid rgba(145,132,255,.72);
  border-radius: 4px 12px 12px 4px;
}
.sup-msg-head { display: flex; justify-content: space-between; gap: 10px; font-size: 11.5px; opacity: .72; margin-bottom: 3px; }
.sup-msg-text { white-space: pre-wrap; }
.sup-msg-text a { color: #ffb870; text-decoration: underline; }
.sup-atts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.sup-thumb {
  width: 96px; height: 96px; object-fit: cover; border-radius: 8px;
  border: 1px solid var(--line); cursor: zoom-in; background: rgba(0,0,0,.25);
}
.sup-resolve-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 12px; padding: 8px 12px; border-radius: var(--rb);
  border: 1px solid var(--line-soft); background: var(--surface-1);
}
.sup-resolve-bar.is-answered {
  border-color: rgba(127, 220, 164, .34);
  background: rgba(127, 220, 164, .08);
}
.sup-resolve-text { font-size: 13.5px; color: var(--muted); }
.sup-resolve-bar.is-answered .sup-resolve-text { color: var(--ink); font-weight: 500; }
.sup-resolve-btn { flex: none; gap: 6px; }
.sup-resolve-btn .i { width: 15px; height: 15px; }
.sup-resolve-btn.is-answered {
  background: rgba(127, 220, 164, .16);
  border-color: rgba(127, 220, 164, .52);
  color: var(--ok);
}
.sup-resolve-btn.is-answered:hover:not(:disabled) {
  background: rgba(127, 220, 164, .24);
  border-color: var(--ok);
}
.sup-closed-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line-soft);
}
.sup-composer { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.sup-chat .sup-composer { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.sup-card .sup-composer { margin-top: 10px; padding-top: 0; border-top: 0; }
.sup-textarea {
  width: 100%; min-height: 82px; resize: vertical; padding: 10px 12px;
  border-radius: 10px; border: 1px solid var(--line); background: rgba(0,0,0,.22);
  color: inherit; font: inherit; line-height: 1.45;
}
.sup-previews { display: flex; flex-wrap: wrap; gap: 8px; }
.sup-previews:empty { display: none; }
.sup-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sup-attach-btn { flex: none; gap: 6px; }
.sup-attach-btn .i { width: 16px; height: 16px; }
.sup-send-btn { min-width: 132px; }
details.sup-history > summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font: 500 16px/1.2 var(--display); color: var(--ink);
}
details.sup-history > summary::-webkit-details-marker { display: none; }
.sup-history-left { display: inline-flex; align-items: center; gap: 8px; }
.sup-history-left::before { content: "▸"; color: var(--amb-hi); font-size: 13px; transition: transform .18s var(--ease); }
details.sup-history[open] .sup-history-left::before { transform: rotate(90deg); }
details.sup-history[open] > summary { margin-bottom: 8px; }
.sup-preview { position: relative; width: 72px; height: 72px; }
.sup-preview img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.sup-preview button {
  position: absolute; top: -6px; right: -6px; width: 22px; height: 22px;
  border-radius: 50%; border: 1px solid var(--line); background: #141036;
  color: #fff; cursor: pointer; font-size: 13px; line-height: 1;
}
.sup-img-modal { max-width: min(92vw, 900px); width: auto; padding: 12px; }
.sup-img-modal img { max-width: 100%; max-height: 78vh; display: block; border-radius: 8px; }
.refund-reasons { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.refund-opt {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: 10px; border: 1px solid var(--line); cursor: pointer; font-size: 14px;
}
.refund-opt input { margin: 0; }
.dev-item-wrap { display: grid; gap: 8px; }
.dev-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface-card); }
.dev-banner p { margin: 0; font-size: 14.5px; line-height: 1.45; }
.dev-banner-ok { border-color: rgba(68, 200, 130, .4); background: rgba(68, 200, 130, .09); }
.dev-banner-warn { border-color: rgba(255, 154, 61, .5); background: rgba(255, 154, 61, .11); }
.dev-confirm { padding: 12px 14px; border-radius: var(--rb); border: 1px solid var(--line); background: rgba(255, 255, 255, .03); display: grid; gap: 8px; }
.dev-confirm-text { margin: 0; font-size: 14.5px; line-height: 1.45; }
.dev-confirm-text.warn { color: var(--amb-hi); }
.dev-note { margin-top: 12px; font-size: 13.5px; }
.dev-scenarios { margin: 6px 0 10px; padding-left: 18px; color: var(--muted); font-size: 14px; display: grid; gap: 4px; }
@media (max-width: 720px) {
  .sup-hints { grid-template-columns: 1fr; gap: 0; margin-top: 6px; }
  .sup-hint { padding: 9px 0; border: 0; border-top: 1px solid var(--line-soft); border-radius: 0; background: none; }
  .sup-hint:first-child { border-top: 0; padding-top: 4px; }
  .sup-msg { max-width: 96%; }
}

@media (max-width: 560px) {
  #cab-badge { display: none; }
  .site-header-in { min-height: 48px; padding: 0 12px; gap: 8px; }
  .site-actions { min-width: 0; gap: 6px; }
  .nav-toggle { width: 34px; height: 34px; }
  .brand { font-size: 17px; }
  .brand-dot { width: 7px; height: 7px; margin-right: 6px; }
  .who { gap: 8px; font-size: 12.5px; }
  .who b { max-width: 96px; }
  .wrap { padding: 0 12px; }
  .cab-wrap { padding-top: 0; }
  .tabs { gap: 14px; margin: 0 0 10px; max-width: 100%; }
  .tab { padding: 8px 0 9px; font-size: 14px; }
  main { padding-bottom: 72px; }

  body { font-size: 14px; line-height: 1.42; }
  h1 { font-size: 20px; line-height: 1.15; }
  h2 { font-size: 16px; line-height: 1.2; }
  h3 { font-size: 14.5px; line-height: 1.2; }
  .screen { gap: 10px; }
  .grid-2 { gap: 10px; }
  .head { gap: 4px 10px; }
  .head p { margin-top: 2px; font-size: 12.5px; line-height: 1.35; }
  .card { padding: 12px 14px; }
  .card > .head { margin-bottom: 6px; flex-wrap: nowrap; gap: 8px; }
  .card h2 + p, .card h3 + p { margin-top: 4px; font-size: 13px; line-height: 1.38; }
  .card .row { margin-top: 10px; gap: 8px; }
  .card .row + p, .card .row + .faint, .summary .row + p { margin-top: 8px; font-size: 12px; line-height: 1.38; }
  .button { min-height: 40px; padding: 8px 14px; font-size: 14px; gap: 7px; }
  .button-sm { min-height: 32px; padding: 5px 10px; font-size: 12.5px; }
  .btn-oauth, .btn-passkey { min-height: 42px; }
  .btn-passkey-sub, .btn-passkey-add { min-height: 38px; padding: 7px 13px; font-size: 13.5px; }
  .label { font-size: 11px; }
  .faint, .small { font-size: 12.5px; line-height: 1.38; }
  .tag { font-size: 11px; padding: 2px 7px; }
  .notice { padding: 10px 12px; gap: 8px; font-size: 13px; }

  .status h1 { margin-top: 3px; font-size: 20px; }
  .status .sub { margin-top: 3px; font-size: 13px; line-height: 1.35; }
  .facts { margin-top: 10px; gap: 10px; }
  .fact { padding-top: 8px; }
  .fact b { font-size: 15.5px; margin-top: 2px; }
  .fact small { font-size: 11.5px; }
  .connect-main { margin-top: 10px; }
  .connect-actions { grid-template-columns: 1fr; gap: 8px; margin-top: 10px; }
  .linkbox { margin-top: 10px; padding: 9px 11px; font-size: 12px; }
  .apps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
  .connect-note { margin-top: 8px; font-size: 12px; }
  .reserve-block { margin-top: 10px; padding-top: 10px; }
  .reserve-note { margin-top: 5px; font-size: 12px; }
  .reserve-box { margin-top: 10px; padding-top: 9px; }
  .reserve-box summary { font-size: 13px; }

  .step-title { font-size: 11.5px; font-family: var(--sans); text-transform: uppercase; letter-spacing: .07em; color: var(--faint); font-weight: 500; }
  .plans { grid-template-columns: 1fr; gap: 6px; }
  .plan {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "head price"
      "list list";
    align-items: baseline;
    gap: 3px 8px;
    padding: 9px 12px;
  }
  .plan-head { grid-area: head; justify-content: flex-start; flex-wrap: wrap; gap: 5px; }
  .plan .name { font-size: 15.5px; }
  .plan .tag { font-size: 10.5px; padding: 2px 6px; }
  .plan .price { grid-area: price; text-align: right; font-size: 11px; white-space: nowrap; }
  .plan .price b { font-size: 18px; margin-right: 2px; }
  .plan ul { grid-area: list; margin: 0; display: flex; flex-wrap: wrap; gap: 2px 7px; font-size: 11.5px; line-height: 1.3; }
  .plan li::before { margin-right: 3px; }
  .periods { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .period { padding: 6px 4px; gap: 1px; }
  .period b { font-size: 14px; }
  .period small { font-size: 11px; }
  .opt { flex-wrap: nowrap; align-items: center; gap: 10px; }
  .opt > div:first-child { min-width: 0; }
  .opt.opt-stack { flex-wrap: wrap; }
  .opt.opt-stack .row { margin-top: 6px; width: 100%; align-items: center; justify-content: space-between; flex-wrap: nowrap; }
  .stepper { grid-template-columns: 34px 36px 34px; flex: none; }
  .stepper button { height: 34px; font-size: 18px; }
  .stepper output { font-size: 15px; }
  details.promo summary { font-size: 13.5px; }
  .lines { margin-top: 8px; gap: 4px; font-size: 13px; }
  .total { margin-top: 8px; padding-top: 8px; }
  .total b { font-size: 23px; }
  .paybar { padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); gap: 12px; }
  .paybar b { font-size: 18px; }
  .paybar .button { min-width: 126px; min-height: 38px; padding: 7px 14px; }

  .inline { flex-direction: column; gap: 8px; }
  .input { min-height: 40px; padding: 8px 12px; font-size: 15px; }
  .oauth-grid { grid-template-columns: 1fr; gap: 8px; }
  .item { grid-template-columns: 1fr; padding: 10px 0; gap: 5px 10px; }
  .item .side { text-align: left; justify-items: start; }
  .item.item-row { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 9px 0; }
  .item.item-row .side { text-align: right; justify-items: end; }
  .item .title { font-size: 14px; }
  .item .meta { font-size: 12px; line-height: 1.35; }
  .item .amount { font-size: 15px; }
  .item-foot { margin-top: 4px; gap: 8px; font-size: 12.5px; }
  .confirm { justify-content: flex-start; }
  .confirm .button { min-height: 32px; padding: 5px 10px; }
  .login { margin-top: 1vh; gap: 12px; }
  .login h1 { font-size: 23px; }
  .login .lead { font-size: 13px; margin-top: 4px; }
  .or { margin: 10px 0; font-size: 12.5px; }
  .sup-chat { background: none; border: 0; border-radius: 0; padding: 0; backdrop-filter: none; }
  .sup-hints { gap: 0; margin-top: 6px; }
  .sup-hint { padding: 9px 0; font-size: 12.5px; line-height: 1.38; border: 0; border-top: 1px solid var(--line-soft); border-radius: 0; background: none; }
  .sup-hint:first-child { border-top: 0; padding-top: 4px; }
  .sup-hint b { font-size: 13px; margin-bottom: 1px; }
  .sup-thread { padding: 0; gap: 8px; max-height: none; }
  .sup-msg { padding: 10px 12px; font-size: 14px; line-height: 1.48; }
  .sup-msg.user { max-width: 90%; }
  .sup-msg.operator { max-width: 100%; }
  .sup-resolve-bar { padding: 7px 10px; gap: 8px; }
  .sup-resolve-text { font-size: 12.5px; }
  .sup-composer { gap: 8px; margin-top: 10px; }
  .sup-textarea { min-height: 54px; padding: 9px 11px; font-size: 14px; }
  .sup-send-btn { flex: 1; min-width: 0; }
  details.sup-history > summary { font-size: 15px; }
  .site-footer { padding: 20px 0 28px; font-size: 12.5px; }
}
