/* Currency glyphs belong to the installed Manrope latin-ext subset. */
@font-face { font-family:Manrope; src:url("/fonts/manrope-latin-ext-wght-normal.woff2") format("woff2"); font-weight:200 800; font-display:swap; unicode-range:U+20AD-20C0; }
@font-face {
  font-family: Manrope;
  src: url("/fonts/manrope-cyrillic-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Manrope;
  src: url("/fonts/manrope-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
:root {
  color-scheme: dark;
  /* Shared web typography. Auth screens consume this scale first. */
  --font-ui: Golos, Manrope, Arial, sans-serif;
  --font-display: Unbounded, Golos, Arial, sans-serif;
  --font-code: Manrope, Arial, sans-serif;
  --text-body: 1rem;
  --text-control: 1rem;
  --text-label: .875rem;
  --text-caption: .75rem;
  --text-helper: .8125rem;
  --text-auth-title: 1.5rem;
  --text-code: 1.75rem;
  --bg: #10151b;
  --surface: #171e26;
  --accent: #b8f76a;
  --text: #f5f7fa;
  --muted: #a4b0be;
  --line: #465361;
  --radius: 24px;
  font-family: Manrope, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}
button,
input,
textarea,
select {
  font: inherit;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  background: #303c48 !important;
  color: #b4bfca !important;
  border-color: #465361 !important;
  opacity: 1;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
button {
  color: inherit;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-family: Manrope, Arial, sans-serif;
  font-size: clamp(25px, 2.2vw, 34px);
  line-height: 1.25;
  letter-spacing: -0.7px;
  margin-bottom: 12px;
}
h2 {
  font-size: 24px;
  line-height: 1.35;
  margin-bottom: 16px;
}
h3 {
  font-size: 18px;
  line-height: 1.4;
  margin-bottom: 8px;
}
p {
  margin-bottom: 16px;
}
small {
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}
svg {
  width: 25px;
  height: 25px;
  flex-shrink: 0;
}
.muted {
  color: var(--muted);
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 20;
  background: var(--accent);
  color: #10151b;
  padding: 12px;
}
.skip:focus-visible {
  top: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: Manrope, Arial, sans-serif;
  font-size: 20px;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}
.brand strong {
  color: var(--accent);
}
.brand img {
  object-fit: contain;
}
.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 22px;
  border-radius: 12px;
  min-height: 50px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid transparent;
  line-height: 1.3;
}
.primary {
  background: var(--accent);
  color: #10151b;
}
.secondary {
  background: transparent;
  border-color: #718292;
  color: var(--text);
  font-weight: 500;
}
.primary:hover {
  background: #c6ff84;
}
.secondary:hover {
  background: #232f3b;
}
.full {
  width: 100%;
}
.text-button {
  padding: 10px 0;
  min-height: 44px;
  border: 0;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 4px;
  color: var(--muted);
  text-align: left;
}
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: 0;
  padding: 8px 0;
  min-height: 44px;
  text-decoration: none;
  color: var(--muted);
  margin-bottom: 24px;
}
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--surface);
  margin-bottom: 16px;
}
.card > svg {
  margin-bottom: 12px;
  width: 34px;
  height: 34px;
}
.card > :last-child {
  margin-bottom: 0;
}
.heading {
  margin-bottom: 28px;
}
.heading > .muted {
  margin-bottom: 0;
}
.stack {
  display: grid;
  gap: 16px;
}
.field {
  display: grid;
  gap: 8px;
  font-weight: 500;
  min-width: 0;
}
.field > small {
  font-weight: 400;
}
.field > span {
  font-weight: 600;
}
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
textarea,
select {
  min-width: 0;
  width: 100%;
  padding: 14px 16px;
  background: #171e26a8;
  border: 1px solid #53606c;
  border-radius: 12px;
  color: var(--text);
  min-height: 52px;
}
textarea {
  resize: vertical;
}
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--accent);
  width: 23px;
  height: 23px;
  flex-shrink: 0;
  margin: 0;
}
.check {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
}
.check > span {
  min-width: 0;
}
.check small {
  display: block;
  margin-top: 4px;
}
.plans {
  display: grid;
  gap: 10px;
  padding: 0;
  border: 0;
  margin: 0 0 8px;
  min-width: 0;
}
.plan {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #171e2691;
  min-height: 64px;
  cursor: pointer;
}
.plan:has(input:checked) {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.plan > span {
  margin-left: auto;
  text-align: right;
}
.plan small {
  display: block;
  font-size: 12px;
}
.divider {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  margin: 24px 0;
}
.divider:before,
.divider:after {
  content: "";
  height: 1px;
  background: var(--line);
  flex: 1;
}
.notice {
  padding: 16px;
  border: 1px solid #b9947b;
  background: #2d2522;
  border-radius: 12px;
  color: #ffe6d6;
  margin-bottom: 20px;
  overflow-wrap: anywhere;
}
.notice[hidden] {
  display: none;
}
.sandbox-banner {
  font-size: 14px;
  text-align: center;
  padding: 8px 20px;
  background: #192918;
  color: #d4f3b0;
  border-bottom: 1px solid #425738;
}
.sandbox-note {
  padding: 12px;
  background: #263723;
  border: 1px solid #526e46;
  border-radius: 10px;
  color: #e1f8ca;
}
.public-header {
  max-width: 1160px;
  padding: 28px 32px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.guest-main {
  max-width: 1160px;
  margin: 32px auto 40px;
  padding: 0 24px;
}
.auth-card {
  max-width: 600px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 32px;
  background: #151c23;
}
.auth-card > .primary,
.auth-card > .secondary {
  margin-bottom: 16px;
}
.auth-card .heading {
  margin-bottom: 26px;
}
.bot-hint {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 24px;
  font-size: 14px;
  text-align: center;
  color: var(--muted);
}
.email-display {
  display: block;
  overflow-wrap: anywhere;
  font-size: 19px;
  margin-top: -10px;
}
.public-footer {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 16px 24px 32px;
  font-size: 14px;
  color: var(--muted);
}
.otp {
  font-family: var(--font-code) !important;
  font-size: 32px !important;
  letter-spacing: 18px !important;
  text-align: center !important;
  padding-right: 0 !important;
  max-width: 100%;
  height: 80px;
  background: repeating-linear-gradient(
    90deg,
    #171e2699 0 calc(16.666% - 6px),
    transparent calc(16.666% - 6px) 16.666%
  ) !important;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 248px;
  padding: 32px 20px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  background: #10151b;
}
.sidebar > .brand {
  margin: 0 8px 38px;
}
.sidebar nav {
  display: grid;
  gap: 6px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 58px;
  padding: 16px;
  border-radius: 12px;
  color: #f5f7fa;
  text-decoration: none;
}
.nav-link.selected {
  color: var(--accent);
  background: #b8f76a12;
  border-left: 4px solid var(--accent);
  padding-left: 12px;
}
.site-link {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 20px 16px 0;
  color: var(--muted);
}
.workspace {
  margin-left: 248px;
  min-height: 100vh;
}
.cabinet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 88px;
  border-bottom: 1px solid var(--line);
  padding: 20px 36px;
}
.desktop-title {
  font-size: 22px;
  font-weight: 650;
}
.account-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.avatar {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #718292;
  border-radius: 50%;
  background: #33414e;
  color: #f5f7fa;
  font-size: 20px;
  flex-shrink: 0;
}
.avatar.large {
  width: 64px;
  height: 64px;
  font-size: 28px;
}
.account-name {
  max-width: 200px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.mobile-brand {
  display: none;
}
.main {
  padding: 32px 36px 44px;
  max-width: 1240px;
  margin: auto;
}
.overview {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 20px;
  margin-bottom: 16px;
}
.overview > .card {
  margin: 0;
}
.subscription-card {
  position: relative;
  overflow: hidden;
  padding: 26px 28px;
}
.small-spider {
  position: absolute;
  right: 26px;
  top: 62px;
  width: 80px;
  height: 80px;
  opacity: 0.95;
}
.subscription-card .expiry {
  font-size: 34px;
  line-height: 1.25;
  margin: 20px 95px 8px 0;
  font-weight: 750;
}
.subscription-card .primary {
  min-width: 290px;
  margin-top: 8px;
}
.balance {
  font-size: 36px;
  line-height: 1.2;
  margin: 8px 0;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #465361;
  border-radius: 99px;
  padding: 5px 12px;
  font-size: 14px;
  white-space: normal;
  color: var(--muted);
  width: fit-content;
}
.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #c6c8d3;
  flex-shrink: 0;
}
.status.good {
  color: var(--text);
}
.good .dot {
  background: var(--accent);
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
}
.section-head > .muted {
  margin: 0;
}
.device-row {
  display: flex;
  gap: 22px;
  align-items: center;
  text-decoration: none;
  border: 1px solid var(--line);
  background: #171e2670;
  border-radius: 12px;
  padding: 18px 22px;
  min-height: 78px;
  margin-bottom: 8px;
}
.device-row:hover {
  border-color: #b8f76a;
}
.device-label {
  min-width: 0;
  flex: 1;
}
.device-label > small {
  display: block;
}
.device-row > svg:first-child {
  width: 32px;
  height: 32px;
}
.instruction {
  margin-left: auto;
  color: var(--muted);
  font-size: 14px;
  text-decoration: underline;
}
.device-block > .full {
  margin-top: 8px;
}
.help-card {
  display: flex;
  gap: 16px;
  align-items: center;
  min-height: 68px;
  padding: 18px 22px;
  background: #171e2665;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  width: 100%;
  color: var(--muted);
  margin: 18px 0;
  text-align: left;
}
.help-card > svg:last-child {
  margin-left: auto;
  width: 20px;
  height: 20px;
}
.bottom-nav {
  display: none;
}
.subscription-grid {
  display: grid;
  grid-template-columns: minmax(340px, 1fr) minmax(260px, 1fr);
  gap: 28px;
}
.quote-summary {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 10px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  align-items: center;
}
.summary-row.total {
  border-top: 1px solid var(--line);
  font-weight: 700;
  font-size: 22px;
  margin: 6px 0 16px;
}
.methods {
  display: flex;
  gap: 12px;
  padding: 0;
  border: 0;
  margin: 12px 0;
  min-width: 0;
}
.methods legend {
  margin-bottom: 10px;
  font-weight: 600;
}
.method {
  flex: 1;
  min-height: 52px;
}
.order-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  background: #171e2675;
  border-radius: 12px;
  margin-bottom: 10px;
  text-decoration: none;
}
.order-row small {
  display: block;
}
.order-row .status {
  font-size: 12px;
}
.focus-card {
  max-width: 650px;
  margin: 0 auto;
}
.focus-card > .primary {
  width: 100%;
  margin: 16px 0;
}
.focus-card > .text-link {
  display: flex;
  justify-content: center;
}
.result-symbol {
  margin: 16px auto 28px;
  width: 90px;
  height: 90px;
  border: 3px solid #465361;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--muted);
}
.result-symbol.success {
  color: var(--accent);
  border-color: var(--accent);
}
.result-symbol > svg {
  width: 52px;
  height: 52px;
}
.focus-card .result-symbol + .heading {
  text-align: center;
}
.expiry {
  font-size: 30px;
}
.platforms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  border: 0;
  padding: 0;
  margin: 20px 0 28px;
  min-width: 0;
}
.platforms .plan {
  padding: 14px;
}
.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 24px 0 24px 68px;
  border-bottom: 1px solid var(--line);
}
.steps li:before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 25px;
  border: 1px solid #a4b0be;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 20px;
}
.setup-state > .secondary {
  margin-top: 24px;
}
.manual {
  display: grid;
  gap: 12px;
  padding-top: 20px;
}
.manual:empty {
  padding: 0;
}
.manual canvas {
  max-width: 100%;
  height: auto !important;
  margin: auto;
  border: 10px solid white;
  border-radius: 8px;
}
.danger {
  color: #f4b49c;
}
.identity {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.identity > div {
  flex: 1;
  min-width: 120px;
}
.identity .muted {
  margin-bottom: 0;
  overflow-wrap: anywhere;
}
.identity .status {
  font-size: 12px;
}
.identity-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 12px;
}
.profile-intro {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 32px;
}
.profile-intro h2 {
  margin-bottom: 4px;
}
.profile-intro p {
  margin: 0;
  overflow-wrap: anywhere;
}
.profile-links {
  margin-top: 26px;
}
.support-chat {
  max-width: 820px;
  display: flex;
  flex-direction: column;
  min-height: 60vh;
}
.messages {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
  min-height: 240px;
  padding: 12px 0 30px;
}
.message {
  width: fit-content;
  max-width: 80%;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #171e26;
  overflow-wrap: anywhere;
}
.message p {
  white-space: pre-wrap;
  margin: 8px 0 12px;
}
.message time {
  display: block;
  font-size: 12px;
  color: var(--muted);
  text-align: right;
}
.user-message {
  align-self: flex-end;
  background: #263544;
}
.composer {
  position: sticky;
  bottom: 0;
  background: #10151b;
  padding: 14px 0;
}
.composer-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.composer-row textarea {
  flex: 1;
}
.attach-button {
  width: 44px;
  display: grid;
  place-items: center;
  cursor: pointer;
  position: relative;
}
.file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}
.attach-button:focus-within {
  outline: 2px solid var(--accent);
}
.send {
  padding: 12px;
  width: 60px;
}
.composer > .muted {
  font-size: 12px;
  margin: 8px 0;
}
.busy button {
  pointer-events: none;
}
.loading {
  padding: 80px 24px;
  text-align: center;
}
@media (min-width: 1440px) {
  .main {
    padding-top: 38px;
  }
  .overview {
    gap: 24px;
  }
  .subscription-card {
    min-height: 245px;
  }
  .auth-card {
    margin-top: 24px;
  }
}
@media (max-width: 1100px) {
  .sidebar {
    width: 220px;
    padding: 28px 12px;
  }
  .sidebar > .brand {
    font-size: 18px;
    margin-left: 4px;
  }
  .workspace {
    margin-left: 220px;
  }
  .main {
    padding: 28px 24px;
  }
  .cabinet-header {
    padding: 20px 24px;
  }
  .overview {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  }
  .subscription-card .expiry {
    font-size: 28px;
  }
  .small-spider {
    width: 56px;
    right: 20px;
  }
  .subscription-card .primary {
    min-width: 0;
    width: 100%;
  }
  .device-row {
    gap: 12px;
  }
  .device-row .instruction {
    display: none;
  }
  .subscription-grid {
    grid-template-columns: 1fr;
  }
  .subscription-grid > .checkout-card {
    max-width: 640px;
  }
  .plan small {
    font-size: 12px;
  }
}
@media (max-width: 760px) {
  :root {
    font-size: 16px;
  }
  .sidebar,
  .desktop-title,
  .account-name {
    display: none;
  }
  .workspace {
    margin-left: 0;
  }
  .mobile-brand {
    display: block;
  }
  .cabinet-header {
    padding: 18px 20px;
    min-height: 78px;
    border-bottom: 0;
  }
  .cabinet-header .brand {
    font-size: 18px;
    gap: 10px;
  }
  .brand img {
    width: 34px;
    height: 34px;
  }
  .main {
    padding: 20px 20px 100px;
  }
  .main .heading {
    margin-bottom: 22px;
  }
  .main h1 {
    font-size: 27px;
  }
  .overview {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .overview > .card:last-child {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    flex-wrap: wrap;
  }
  .overview > .card:last-child > svg {
    width: 26px;
    height: 26px;
    margin: 0;
  }
  .overview > .card:last-child .balance {
    font-size: 22px;
    margin: 0;
  }
  .overview > .card:last-child > .muted {
    font-size: 14px;
    margin: 0;
  }
  .overview > .card:last-child > .secondary {
    min-height: 44px;
    padding: 8px 12px;
    margin-left: auto;
    font-size: 14px;
  }
  .subscription-card {
    padding: 22px;
  }
  .subscription-card .expiry {
    font-size: 29px;
    margin: 18px 55px 8px 0;
    line-height: 1.25;
  }
  .small-spider {
    width: 54px;
    height: 54px;
    right: 20px;
    top: 70px;
  }
  .subscription-card .primary {
    font-size: 16px;
    margin-top: 8px;
  }
  .card {
    padding: 20px;
  }
  .section-head h2 {
    font-size: 22px;
    margin: 0;
  }
  .section-head {
    margin-bottom: 16px;
  }
  .section-head > .muted {
    font-size: 14px;
    white-space: nowrap;
  }
  .device-row {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) 20px;
    gap: 8px 14px;
    padding: 16px;
  }
  .device-row > svg:first-child {
    grid-row: 1/3;
  }
  .device-row > .status {
    grid-column: 2;
    font-size: 12px;
    border: 0;
    padding: 0;
  }
  .device-row > svg:last-child {
    grid-column: 3;
    grid-row: 1/3;
  }
  .device-row .instruction {
    display: none;
  }
  .device-label > small {
    font-size: 14px;
  }
  .device-row strong {
    font-weight: 500;
  }
  .device-block > .full {
    font-size: 16px;
    padding: 12px;
  }
  .help-card {
    padding: 16px;
    font-size: 14px;
    gap: 12px;
  }
  .help-card .instruction {
    display: none;
  }
  .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: calc(78px + env(safe-area-inset-bottom));
    padding: 8px 6px env(safe-area-inset-bottom);
    border-top: 1px solid var(--line);
    background: #10151bf5;
    backdrop-filter: blur(12px);
  }
  .bottom-nav .nav-link {
    flex-direction: column;
    gap: 4px;
    padding: 6px 0;
    border: 0;
    border-radius: 0;
    min-height: 54px;
    font-size: 12px;
    line-height: 1.2;
    text-align: center;
    background: transparent;
  }
  .bottom-nav .nav-link.selected {
    color: var(--accent);
  }
  .bottom-nav svg {
    width: 25px;
    height: 25px;
  }
  .public-header {
    padding: 22px 20px;
  }
  .public-header .brand {
    font-size: 18px;
  }
  .guest-main {
    padding: 0 16px;
    margin: 20px auto 24px;
  }
  .auth-card {
    padding: 26px 20px;
    border-radius: 16px;
  }
  .auth-card h1 {
    font-size: 26px;
    line-height: 1.3;
  }
  .auth-card .heading > .muted {
    font-size: 16px;
  }
  .public-footer {
    gap: 12px 20px;
  }
  .plan {
    gap: 12px;
    padding: 12px;
    min-height: 62px;
  }
  .plan strong {
    font-size: 16px;
  }
  .plan > span > strong {
    white-space: nowrap;
  }
  .otp {
    letter-spacing: 14px !important;
    font-size: 28px !important;
    height: 72px;
  }
  .focus-card {
    max-width: 100%;
  }
  .focus-card .back {
    margin-bottom: 20px;
  }
  .focus-card .expiry {
    font-size: 28px;
    text-align: center;
  }
  .methods {
    gap: 8px;
  }
  .methods .plan {
    padding: 10px;
  }
  .summary-row.total {
    font-size: 22px;
  }
  .platforms {
    grid-template-columns: 1fr;
  }
  .steps li {
    padding-left: 58px;
  }
  .steps li:before {
    width: 40px;
    height: 40px;
  }
  .identity .status {
    margin-left: 40px;
  }
  .identity > svg {
    width: 28px;
    height: 28px;
  }
  .identity .muted {
    font-size: 14px;
  }
  .profile-links .help-card {
    font-size: 16px;
  }
  .profile-intro {
    gap: 16px;
  }
  .profile-intro h2 {
    font-size: 21px;
  }
  .profile-intro .muted {
    font-size: 12px;
  }
  .support-chat {
    min-height: calc(100dvh - 270px);
  }
  .message {
    max-width: 88%;
    padding: 14px 16px;
  }
  .composer {
    bottom: 78px;
  }
  .composer-row {
    gap: 8px;
  }
  .composer-row textarea {
    padding: 12px;
    min-height: 56px;
  }
  .send {
    width: 48px;
    min-width: 48px;
    padding: 10px;
  }
  .attach-button {
    width: 28px;
    min-width: 28px;
  }
  .sandbox-banner {
    font-size: 12px;
    padding: 6px 16px;
  }
  .order-row {
    padding: 16px;
  }
  .order-row > strong {
    font-size: 18px;
  }
}
@media (max-width: 360px) {
  .main {
    padding-left: 16px;
    padding-right: 16px;
  }
  .auth-card {
    padding: 24px 16px;
  }
  .brand {
    font-size: 16px !important;
  }
  .brand img {
    width: 30px;
    height: 30px;
  }
  .subscription-card {
    padding: 18px;
  }
  .subscription-card .expiry {
    font-size: 26px;
    margin-right: 45px;
  }
  .small-spider {
    right: 15px;
    width: 42px;
  }
  .status {
    font-size: 12px;
  }
  .otp {
    letter-spacing: 11px !important;
    font-size: 26px !important;
  }
  .plan {
    gap: 9px;
  }
  .plan > strong,
  .plan > span > strong {
    font-size: 15px;
  }
  .check {
    font-size: 14px;
  }
  .primary,
  .secondary {
    padding: 14px 16px;
  }
  .bottom-nav .nav-link {
    font-size: 11px;
  }
  .overview > .card:last-child > .secondary {
    width: 100%;
    margin: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.mobile-bonus {
  display: none;
}
@media (max-width: 760px) {
  .overview > .card:last-child {
    display: none;
  }
  .mobile-bonus {
    display: flex;
    gap: 12px;
    align-items: center;
    margin: 16px 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #171e2670;
    text-decoration: none;
  }
  .mobile-bonus small {
    display: block;
    font-size: 12px;
  }
  .mobile-bonus > span:first-of-type {
    flex: 1;
  }
  .mobile-bonus > span:last-of-type {
    font-size: 14px;
    text-decoration: underline;
  }
  .mobile-bonus > svg:last-child {
    width: 18px;
    height: 18px;
  }
}

.secondary[aria-disabled="true"] {
  background: #303c48;
  color: #b4bfca;
  border-color: #465361;
  cursor: not-allowed;
}

[hidden] {
  display: none !important;
}

.tier-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
  margin: 0 0 16px;
  border: 0;
  min-width: 0;
}
.tier-option {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 8px;
  min-width: 0;
  cursor: pointer;
}
.tier-option:has(input:checked) {
  border-color: var(--accent);
  background: #b8f76a12;
}
.tier-option:has(input:disabled) {
  opacity: 0.65;
  cursor: default;
}
.tier-option small {
  font-size: 11px;
  line-height: 1.4;
}
.plan:has(input:disabled) {
  opacity: 0.65;
  cursor: default;
}

.referral-overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }

/* Shared visual language with the public main: Manrope, graphite and lime. */
body { min-height: 100dvh; -webkit-font-smoothing: antialiased; isolation: isolate; }
::selection { background: var(--accent); color: var(--bg); }
h1 { font-weight: 800; letter-spacing: -1px; }
.brand { font-weight: 800; letter-spacing: -1px; }
.primary, .secondary { border-radius: 14px; transition: background .2s, border-color .2s, box-shadow .2s, transform .2s; }
.primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 30px #b8f76a15; }
.primary:active:not(:disabled) { transform: translateY(0); }
.nav-link, .device-row, .help-card, .plan, .tier-option { transition: background .18s, border-color .18s; }
.guest-main { padding-top: 166px; margin-top: 16px; }
.guest-main .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.guest-main .plan { flex-wrap: wrap; gap: 8px; min-height: 60px; padding: 12px; }
.guest-main .plan > span { margin-left: auto; }
.auth-card .heading { margin-bottom: 20px; }
.auth-card .stack { gap: 12px; }
.auth-card .bot-hint { margin-top: 20px; padding-top: 20px; }
.web-decoration { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.web-decoration:not([data-web-scene]) { display: none; }
.web-mesh { position: absolute; inset: 0; width: 100%; height: 100%; }
.web-network { transform-origin: 50% 30%; animation: web-breathe 8s ease-in-out infinite; }
.web-strand { stroke: #7892a0; stroke-width: 1; fill: none; opacity: .24; stroke-dasharray: 1; animation: web-weave 2.7s ease-out both; }
.web-node { fill: #8593a0; opacity: .48; animation: web-node-appear 1.5s ease-out both; }
.web-spider-stage { position: absolute; top: 162px; left: calc(50% - 70px); width: 140px; height: 130px; }
.web-spider-descend, .web-spider-float, .web-spider-float img { display: block; width: 100%; height: 100%; }
.web-spider-descend { animation: web-spider-descend 2.6s cubic-bezier(.22,.08,.24,1) both; }
.web-spider-float { position: relative; animation: web-spider-float 7.2s ease-in-out 2.6s infinite; }
.web-spider-float::before { content: ''; position: absolute; bottom: 76.25%; left: 50%; width: 1px; height: 150dvh; background: #657787; opacity: .38; z-index: -1; }
[data-web-scene="account"] .web-spider-stage { display: none; }
[data-web-scene="account"] .web-mesh { opacity: .27; }
.web-intro-seen .web-spider-descend { animation: none; }
@keyframes web-weave { from { stroke-dashoffset: 1; opacity: 0; } to { stroke-dashoffset: 0; opacity: .24; } }
@keyframes web-node-appear { from { opacity: 0; } to { opacity: .48; } }
@keyframes web-spider-descend { 0% { transform: translateY(calc(-100dvh - 220px)) rotate(-7deg); } 54% { transform: translateY(18px) rotate(2deg); } 72% { transform: translateY(-12px) rotate(-1deg); } 87% { transform: translateY(5px) rotate(.3deg); } 100% { transform: translateY(0) rotate(0); } }
@keyframes web-spider-float { 0%,100% { transform: translateY(0); } 25% { transform: translateY(-4px); } 75% { transform: translateY(4px); } }
@keyframes web-breathe { 0%,100% { transform: scale(1) rotate(0); opacity: .78; } 50% { transform: scale(1.05) rotate(.6deg); opacity: 1; } }
.setup-context { padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; margin: 20px 0; }
.setup-mode { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 12px 0; border: 0; min-width: 0; }
.setup-mode > * { flex: 1; }
.setup-mode [aria-pressed="true"] { border-color: var(--accent); background: #b8f76a12; }
.setup-step { padding: 20px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.setup-qr { display: block; max-width: 100%; height: auto !important; margin: 16px auto; border: 10px solid white; border-radius: 8px; }
.setup-tv { padding: 20px; border: 1px solid var(--line); background: var(--surface); border-radius: 16px; overflow-wrap: anywhere; }
.support-connection { color: var(--muted); font-size: 13px; min-height: 24px; }
.support-new-messages { align-self: center; margin: 8px 0; }
@media (max-width: 760px) {
  .guest-main { padding-top: 144px; }
  .web-spider-stage { top: 156px; left: calc(50% - 60px); width: 120px; height: 112px; }
  .guest-main .plans { grid-template-columns: 1fr; }
  .guest-main .plan { display: grid; grid-template-columns: 23px minmax(0, 1fr) auto; font-size: 14px; min-height: 52px; }
  .guest-main .plan small { display: none; }
}
@media (max-width: 360px) {
  .guest-main .plans { grid-template-columns: 1fr; }
  .guest-main .plan { min-height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .web-spider-descend, .web-spider-float, .web-network { transform: none !important; }
  .web-strand { stroke-dashoffset: 0; }
  .primary:hover:not(:disabled) { transform: none; }
}

.public-header .brand { font-size: 26px; gap: 16px; }
@media (max-width: 760px) { .public-header .brand { font-size: 22px; gap: 12px; } }

/* Short, purposeful motion. The global reduced-motion rule disables all effects. */
@keyframes cabinet-enter { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes message-enter { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.main, .guest-main .auth-card { animation: cabinet-enter .22s ease-out both; }
.notice:not([hidden]), .message-arrived { animation: message-enter .18s ease-out both; }
.plan:has(input:checked), .tier-option:has(input:checked) { box-shadow: inset 0 0 0 1px var(--accent); }
.plan-rate, .plan-saving { display:block; width:100%; }
.plan-rate { font-variant-numeric:tabular-nums; }
.plan-saving { color:var(--accent); }
.value-badge { padding:4px 7px; border-radius:6px; background:var(--accent); color:var(--bg); font-size:11px; font-weight:800; }
.price-explanation { font-size:12px; line-height:1.6; }
.plans > .plan { display:grid; grid-template-columns:20px minmax(0,1fr); gap:8px 12px; align-items:start; }
.plans > .plan > input { grid-column:1; grid-row:1; margin-top:3px; }
.plans > .plan > strong, .plans > .plan > span, .plans > .plan > small { grid-column:2; margin:0; width:auto; text-align:left; }
.plans > .plan > .value-badge { justify-self:start; }
.messages { max-height:52dvh; overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:var(--line) transparent; }
.message { flex-shrink:0; }
@media (max-width:600px) { .messages { min-height:180px; max-height:45dvh; } }
.purchase-summary { position:sticky; top:24px; align-self:start; }
.purchase-summary .quote-summary { border-top:0; margin-top:0; padding-top:0; }
.order-history-section { margin-top:36px; }
.plan-warning { padding:12px; border-left:3px solid var(--accent); background:var(--surface); }
@media (max-width:980px) { .purchase-summary { position:static; } }
.checkout-card .plans { grid-template-columns:repeat(2,minmax(0,1fr)); }
.purchase-plan { font-weight:700; }
.purchase-expiry { margin:12px 0; padding-left:12px; border-left:2px solid var(--accent); }
.purchase-summary .summary-row.total { border-top:0; }
@media (max-width:400px) { .checkout-card .plans { grid-template-columns:1fr; } }

/* Approved calm reference: desktop V1 composition, compact mobile V2. */
:root { --bg:#17191b; --surface:#202427; --accent:#b6c4aa; --brand:#b8f76a; --text:#ecede8; --muted:#adb2b0; --line:#373d40; --radius:16px; }
body { background:var(--bg); }
.brand strong { color:var(--brand); }
h1 { font-size:clamp(26px,2.25vw,34px); font-weight:650; letter-spacing:-.7px; }
h2 { font-size:24px; font-weight:650; }
.primary { background:var(--text); color:var(--bg); font-weight:700; }
.primary:hover { background:#fff; }
.primary:hover:not(:disabled) { transform:none; box-shadow:none; }
.primary:active:not(:disabled) { transform:translateY(1px); }
.secondary { border-color:#6e7775; font-weight:500; }
.secondary:hover { background:#292e31; }
.primary,.secondary { min-height:48px; border-radius:12px; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible { outline:2px solid var(--text); outline-offset:4px; }
input[type="radio"],input[type="checkbox"] { accent-color:var(--text); width:20px; height:20px; }
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),textarea,select { background:var(--surface); border-color:#6e7775; }
.card { border-color:var(--line); background:var(--surface); }
.sidebar { width:240px; background:var(--bg); padding:28px 20px; }
.sidebar .brand { margin-bottom:36px; }
.workspace { margin-left:240px; }
.nav-link { min-height:52px; gap:14px; padding:12px 14px; color:var(--muted); }
.nav-link.selected { color:var(--text); background:#292e31; border:0; padding-left:14px; }
.nav-link:hover { color:var(--text); background:#24292c; }
.cabinet-header { min-height:76px; padding:16px 40px; border-bottom:0; }
.desktop-title { visibility:hidden; }
.avatar { background:#343a3d; border-color:var(--line); color:var(--text); font-size:16px; }
.main { max-width:1280px; padding:24px 40px 48px; }
.heading { margin-bottom:28px; }
.sandbox-banner { background:#202427; border-color:var(--line); color:var(--muted); font-size:12px; padding:5px 16px; }
.sandbox-note { background:#24292c; border-color:var(--line); color:var(--muted); }
.web-decoration[data-web-scene="account"] { display:none; }
[data-web-scene="account"] * { animation:none !important; }
.overview { display:block; margin-bottom:36px; }
.overview > .subscription-card { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:24px; align-items:center; min-height:0; padding:28px 32px; }
.subscription-name { font-size:30px; margin:14px 0 8px; }
.subscription-info > .muted { margin:0; }
.subscription-actions { display:grid; justify-items:center; gap:4px; }
.subscription-actions .primary { min-width:0; width:auto; margin:0; padding:14px 24px; }
.subscription-card .status { border:0; padding:0; color:var(--muted); }
.good .dot { background:var(--accent); }
.device-row { background:transparent; border:0; border-bottom:1px solid var(--line); border-radius:0; padding:18px 8px; min-height:76px; margin:0; }
.device-row:hover { border-color:var(--line); background:#202427; }
.device-row .status { border:0; padding:0; font-size:14px; }
.device-row .good .dot { display:none; }
.device-row .instruction { text-decoration:none; margin-left:16px; }
.device-row .device-label { flex:1; }
.device-row .device-label small { font-size:14px; }
.bonus-strip { display:flex; gap:24px; align-items:center; padding:24px 0; margin:24px 0 12px; border-block:1px solid var(--line); color:var(--muted); text-decoration:none; }
.bonus-amount { display:grid; gap:4px; min-width:100px; }
.bonus-amount strong { font-size:24px; font-variant-numeric:tabular-nums; color:var(--text); }
.bonus-strip > :last-child { margin-left:auto; white-space:nowrap; }
.home-help { color:var(--muted); font-size:14px; }
.subscription-grid { grid-template-columns:minmax(0,1.25fr) minmax(0,1fr); gap:28px; align-items:start; }
.checkout-card { border:0; background:transparent; padding:0; margin:0; min-width:0; }
.purchase-summary { top:24px; padding:28px; }
.purchase-summary h2 { font-size:26px; margin-bottom:16px; }
.purchase-summary .quote-summary { margin-top:20px; padding-top:20px; border-top:1px solid var(--line); }
.purchase-plan { color:var(--muted); font-weight:500; }
.purchase-summary .summary-row.total { display:block; margin:22px 0 16px; padding:0; font-weight:500; font-size:16px; }
.summary-row.total strong { display:block; margin-top:6px; font-size:32px; font-weight:700; font-variant-numeric:tabular-nums; }
.purchase-summary .quote-rate,.purchase-summary .plan-saving { display:none; }
.purchase-expiry { border:0; padding:0; margin:16px 0; }
.purchase-expiry p { margin:0 0 4px; font-size:14px; }
.bonus-control { display:flex; flex-direction:row-reverse; justify-content:space-between; gap:16px; }
.bonus-control > span { flex:1; }
.bonus-control strong { font-weight:500; }
.bonus-control small { font-size:14px; }
.bonus-control input { appearance:none; width:40px; height:24px; border-radius:14px; background:#4b5255; border:1px solid #727c79; position:relative; cursor:pointer; }
.bonus-control input::before { content:''; position:absolute; width:18px; height:18px; top:2px; left:2px; border-radius:50%; background:var(--text); transition:transform .15s ease; }
.bonus-control input:checked { background:#67725e; }
.bonus-control input:checked::before { transform:translateX(16px); }
.tier-picker { gap:0; padding:4px; background:var(--surface); border:1px solid var(--line); border-radius:12px; }
.tier-option { display:flex; align-items:center; justify-content:center; padding:12px 4px; border:0; background:transparent; min-height:44px; border-radius:8px; }
.tier-option input { position:absolute; opacity:0; width:1px; height:1px; }
.tier-option:has(input:focus-visible) { outline:2px solid var(--text); outline-offset:4px; }
.tier-option:has(input:checked) { background:#343b3f; border:0; box-shadow:none; }
.tier-option small { display:none; }
.tier-option strong { font-size:15px; font-weight:500; }
.current-tier { display:none; }
.checkout-card .plans,.guest-main .plans { display:block; }
.plans > .plan { display:grid; grid-template-columns:20px minmax(0,1fr) auto auto; align-items:center; gap:8px 12px; border:0; border-bottom:1px solid var(--line); border-radius:0; background:transparent; padding:16px 12px; min-height:62px; }
.plans > .plan > input { grid-column:1; grid-row:1; margin:0; }
.plans > .plan > strong { grid-column:2; font-size:16px; font-weight:500; }
.plans > .plan > span:not(.sr-only) { grid-column:3; grid-row:1; }
.plans > .plan > span > strong { font-size:16px; font-weight:650; white-space:nowrap; }
.plans > .plan > .plan-saving { grid-column:4; grid-row:1; font-size:14px; color:var(--accent); white-space:nowrap; }
.plans > .plan > .plan-rate { display:none; grid-column:2/-1; font-size:14px; }
.plan:has(input:checked) { background:#292e31; border-color:var(--line); border-radius:10px; box-shadow:none; }
.plan:has(input:checked) .plan-rate { display:block; }
.plan:focus-within { outline-offset:3px; }
.price-explanation { margin:16px 0; font-size:14px; }
.price-explanation summary { color:var(--muted); cursor:pointer; min-height:44px; padding:12px 0; }
.price-explanation p { max-width:60ch; font-size:14px; }
.methods { display:block; border-block:1px solid var(--line); padding:16px 0; margin:16px 0; }
.methods legend { font-size:14px; font-weight:500; }
.method-options { display:flex; gap:8px; background:#292e31; border:1px solid #59635f; border-radius:10px; padding:3px; }
.method { border:0; border-radius:7px; justify-content:center; padding:10px 6px; min-height:44px; font-size:15px; }
.method input { position:absolute; width:1px; height:1px; opacity:0; }
.method:has(input:checked) { background:#444e50; border:0; border-radius:7px; box-shadow:none; }
.method:has(input:focus-visible) { outline:2px solid var(--text); outline-offset:3px; }
.method-select { display:none; }
.purchase-once { margin:12px 0; font-size:14px; }
.purchase-terms { font-size:13px; line-height:1.55; }
.order-history-section { border-top:1px solid var(--line); padding-top:8px; margin-top:32px; }
.order-history-section > summary { padding:16px 0; cursor:pointer; min-height:48px; color:var(--muted); }
.help-card { background:transparent; border-color:var(--line); border-radius:12px; }
.setup-context { background:transparent; padding:0; border:0; }
.setup-mode { margin-top:16px; }
.setup-mode [aria-pressed="true"] { border-color:#adb2b0; background:#343b3f; }
.setup-step { padding:20px 0; }
.setup-step > p { font-size:15px; }
.setup-step > .secondary,.setup-step > .primary { margin:12px 0 0; }
.plan-warning { border-left-color:#ceb18e; background:#292621; color:var(--text); }
.messages { width:100%; min-width:0; max-width:760px; margin-inline:auto; }
.composer { width:100%; min-width:0; max-width:760px; margin-inline:auto; background:var(--bg); }
.referral-intro { margin-bottom:28px; }
.referral-intro p { max-width:55ch; }
.referral-intro .primary { margin-top:4px; }
.referral-section { padding:24px 0; border-top:1px solid var(--line); }
.referral-section h2 { margin-bottom:18px; }
.referral-section h3 { font-size:17px; }
.referral-progress { display:block; width:100%; max-width:480px; height:6px; accent-color:#9aa58f; margin:12px 0; }
.referral-details { margin:16px 0; border-top:1px solid var(--line); padding-top:8px; }
.referral-details > summary { min-height:44px; cursor:pointer; padding:12px 0; color:var(--muted); }
.referral-details .card { background:transparent; border:0; border-bottom:1px solid var(--line); padding:16px 0; border-radius:0; }
.referral-wallet { max-width:600px; margin-top:24px; }
.withdrawal-form { margin-top:20px; max-width:600px; }
.withdrawal-form .field { margin:16px 0; }
@media (max-width:1100px) {
 .sidebar { width:216px; padding:24px 12px; }
 .workspace { margin-left:216px; }
 .main { padding-inline:24px; }
 .cabinet-header { padding-inline:24px; }
 .subscription-actions .primary { width:auto; }
}
@media (min-width:761px) and (max-width:980px) { .subscription-grid { grid-template-columns:1fr; } .purchase-summary { position:static; } }
@media (max-width:760px) {
 .sidebar { display:none; }
 .workspace { margin-left:0; }
 .cabinet-header { padding:14px 20px; min-height:64px; }
 .main { padding:20px 20px calc(96px + env(safe-area-inset-bottom)); }
 .main h1 { font-size:26px; font-weight:650; }
 .main h2 { font-size:22px; }
 .main .heading { margin-bottom:24px; }
 .overview > .subscription-card { display:grid; grid-template-columns:1fr; padding:22px; gap:16px; }
 .subscription-actions { justify-items:stretch; }
 .subscription-actions .primary { width:100%; }
 .subscription-actions .text-link { justify-content:center; }
 .device-row { grid-template-columns:28px minmax(0,1fr) 16px; padding:16px 0; }
 .device-row > .status { font-size:14px; }
 .bonus-strip { gap:12px; padding:20px 0; }
 .bonus-hint { display:none; }
 .bonus-amount strong { font-size:22px; }
 .bottom-nav { background:var(--bg); backdrop-filter:none; border-color:var(--line); }
 .bottom-nav .nav-link.selected { color:var(--text); background:transparent; }
 .bottom-nav .nav-link.selected::after { content:''; display:block; position:absolute; bottom:4px; width:22px; height:2px; background:var(--text); }
 .bottom-nav .nav-link { position:relative; }
 .subscription-grid { display:flex; flex-direction:column; gap:0; }
 .subscription-grid > * { width:100%; max-width:none; }
 .purchase-summary { background:transparent; border:0; padding:0; position:static; margin:0; display:flex; flex-direction:column; }
 .purchase-summary h2,.purchase-summary .purchase-plan { display:none; }
 .purchase-summary .bonus-control { margin-top:4px; padding:12px 0; border-block:1px solid var(--line); }
 .purchase-summary .quote-summary { margin:0; padding:0; border:0; }
 .quote-content { display:flex; flex-direction:column; }
 .purchase-summary .summary-row.total { margin:8px 0; font-size:14px; }
 .purchase-summary .summary-row.total strong { font-size:20px; margin:0; }
 .quote-content .methods { order:1; }
 .quote-content .purchase-expiry { order:2; }
 .quote-content .plan-warning { order:-1; }
 .quote-content .summary-row { order:0; }
 .methods { display:flex; justify-content:space-between; align-items:center; border:0; border-bottom:1px solid var(--line); margin:0; padding:12px 0; gap:12px; }
 .methods legend { display:contents; font-size:14px; }
 .method-options { display:none; }
 .method-select { display:block; width:auto; max-width:55%; min-height:44px; padding:8px 28px 8px 12px; border:1px solid #6e7775; background:var(--surface); font-size:15px; }
 .purchase-expiry { margin:14px 0; }
 .purchase-summary .primary { width:100%; margin:8px 0 0; }
 .purchase-once { margin:12px 0; font-size:13px; }
 .purchase-terms { font-size:13px; }
 .purchasing { padding-bottom:calc(32px + env(safe-area-inset-bottom)); }
 .checkout-back { display:flex; gap:8px; align-items:center; min-height:44px; text-decoration:none; font-size:15px; }
 .compact-picker .current-tier { display:flex; align-items:center; justify-content:space-between; gap:12px; border-bottom:1px solid var(--line); padding-bottom:12px; margin-bottom:12px; }
 .current-tier strong { font-size:15px; font-weight:600; }
 .current-tier button { flex-shrink:0; font-size:14px; }
 .compact-picker .tier-picker { display:none; }
 .compact-picker.tier-expanded .tier-picker { display:grid; }
 .compact-picker .plans > .plan { min-height:50px; padding:12px 8px; grid-template-columns:20px minmax(0,1fr) auto; gap:6px 10px; }
 .compact-picker .plans > .plan > .plan-saving { display:none; }
 .compact-picker .plans > .plan .plan-rate { display:none; }
 .compact-picker .plans::before { content:'Срок'; display:block; padding:4px 0 8px; font-size:15px; color:var(--muted); }
 .compact-picker .price-explanation { margin:4px 0; }
 .compact-picker .price-explanation summary { padding:8px 0; min-height:40px; font-size:13px; }
 .compact-picker .plans > .plan > strong,.compact-picker .plans > .plan > span > strong { font-size:15px; }
 .order-history-section { margin-top:24px; }
 .referral-intro { margin-bottom:24px; }
 .referral-intro .primary { width:100%; }
 .referral-section { padding:24px 0; }
 .referral-wallet .summary-row { font-size:15px; }
 .setup-step { padding:18px 0; }
 .setup-step h3 { font-size:18px; }
}
@media(max-width:760px) { .purchase-summary .summary-row.total:not(.has-bonus) { display:none; } }
.selection-value { display:none; }
@media(max-width:760px) {
 .selection-value { display:block; min-height:22px; font-size:13px; margin:4px 0 8px; }
 .selection-value:empty { min-height:0; margin:0; }
 .purchasing .heading > p { display:none; }
 .purchasing .heading { margin-bottom:16px; }
}
.tier-context { display:flex; align-items:start; gap:16px; justify-content:space-between; margin:12px 0 20px; font-size:14px; }
.tier-context > p { margin:0; }
.tier-comparison { max-width:60%; }
.tier-comparison summary { cursor:pointer; color:var(--muted); min-height:44px; }
.tier-comparison li,.tier-comparison p { font-size:14px; }
@media(max-width:760px) { .compact-picker .tier-context { display:none; } }
/* Recalculation disables payment without collapsing the receipt or flashing the CTA. */
button.primary.quote-updating:disabled { background:var(--text) !important; color:var(--bg) !important; border-color:transparent !important; cursor:progress; }
.identity-actions { display:flex; align-items:center; gap:16px; flex-wrap:wrap; }

/* Final spacing pass within the approved cabinet layout. */
.device-block > p { margin-top:16px; }
.device-label strong { overflow-wrap:anywhere; }
.referrals-page { max-width:800px; }
.referral-intro p { margin-bottom:8px; }
.referrals-page .referral-progress, .referrals-page .referral-wallet { max-width:none; }
.referral-progress { appearance:none; border:0; border-radius:6px; overflow:hidden; background:#343a3d; }
.referral-progress::-webkit-progress-bar { background:#343a3d; border-radius:6px; }
.referral-progress::-webkit-progress-value { background:#9aa58f; border-radius:6px; }
.referral-progress::-moz-progress-bar { background:#9aa58f; border-radius:6px; }
@media (min-width:761px) {
 .device-row { display:grid; grid-template-columns:32px minmax(0,1fr) 180px 80px 18px; gap:16px; align-items:center; }
 .device-row .instruction { margin-left:0; }
}

/* Support is one viewport-sized conversation; only its history scrolls. */
.support-workspace { display:flex; flex-direction:column; height:var(--support-height,100dvh); min-height:0; }
.support-workspace > .cabinet-header,.support-workspace > .sandbox-banner { flex-shrink:0; }
.main.support-main { animation:none; display:flex; flex:1; min-height:0; width:100%; margin-inline:auto; padding-top:16px; padding-bottom:24px; }
.support-main > .notice:not([hidden]) { position:absolute; z-index:4; left:24px; right:24px; top:12px; max-height:45%; overflow:auto; }
.support-main { position:relative; }
.support-chat { display:flex; flex:1; flex-direction:column; min-height:0; min-width:0; width:100%; max-width:1120px; margin-inline:auto; border:1px solid var(--line); border-radius:18px; background:#1b1f22; overflow:hidden; }
.support-chat-header { display:flex; align-items:center; gap:16px; padding:22px 28px; min-height:76px; border-bottom:1px solid var(--line); flex-shrink:0; }
.support-chat-header > svg { width:28px; height:28px; flex-shrink:0; }
.main .support-chat-header h1 { margin:0; font-size:20px; letter-spacing:-.3px; line-height:1.4; font-weight:600; }
.support-chat .messages { flex:1 1 0; min-height:0; max-height:none; max-width:none; width:100%; gap:16px; margin:0; padding:24px 28px; overflow-y:auto; }
.support-chat .message { position:relative; flex-shrink:0; max-width:72%; margin-left:44px; padding:12px 16px; border:1px solid var(--line); border-radius:14px; background:#24292c; }
.support-chat .message:not(.user-message)::before { content:''; position:absolute; width:32px; height:32px; left:-44px; top:0; border:1px solid var(--line); border-radius:50%; background:url('/assets/spider.svg') center / 22px 22px no-repeat; }
.support-chat .user-message { margin-left:0; align-self:flex-end; background:#2a343b; }
.support-chat .message > strong { display:block; color:var(--muted); font-size:13px; font-weight:500; margin-bottom:6px; }
.support-chat .message p { margin:0; line-height:1.55; }
.support-chat .message time { margin-top:6px; font-size:12px; font-variant-numeric:tabular-nums; }
.message-attachment { display:flex; align-items:center; gap:10px; padding:8px 0; text-decoration:none; overflow-wrap:anywhere; }
.message-attachment svg { width:24px; height:24px; flex-shrink:0; }
.support-day { display:flex; align-items:center; justify-content:center; flex-shrink:0; gap:20px; color:var(--muted); font-size:12px; margin:0 0 4px; }
.support-day::before,.support-day::after { content:''; flex:1; border-top:1px solid var(--line); }
.support-empty { margin:auto; padding:24px 12px; text-align:center; max-width:38ch; }
.support-empty > svg { width:32px; height:32px; color:var(--muted); margin-bottom:16px; }
.support-empty h2 { font-size:20px; margin-bottom:8px; }
.support-empty p { margin:0; }
.support-chat .composer { position:static; bottom:auto; flex-shrink:0; max-width:none; width:100%; margin:0; border-top:1px solid var(--line); padding:16px 28px 18px; background:#1b1f22; }
.support-chat .composer-row { align-items:flex-end; }
.support-chat .composer-row textarea { min-width:0; min-height:56px; height:60px; max-height:min(160px,30dvh); padding:16px; border-radius:12px; background:var(--surface); resize:vertical; }
.support-chat .attach-button { flex-shrink:0; height:60px; }
.support-chat .send { width:56px; min-width:56px; height:60px; padding:14px; margin:0; }
.support-chat .composer > .muted { padding-left:54px; margin:8px 0 0; }
.support-chat .attachment-state:not(:empty) { margin-bottom:12px; max-height:88px; overflow:auto; }
.support-chat .attachment-state p { margin:0; overflow-wrap:anywhere; }
.support-chat .support-history { flex-shrink:0; align-self:center; min-height:40px; padding:8px 16px; margin:4px 0; background:transparent; border:0; color:var(--muted); font-size:13px; }
.support-chat .support-context { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:4px 12px; flex-shrink:0; border:0; border-bottom:1px solid var(--line); border-radius:0; margin:0; padding:8px 28px; background:transparent; font-size:13px; }
.support-chat .support-context p { margin:0; }
.support-chat .support-context button { font-size:13px; min-height:40px; }
.support-chat .support-connection { flex-shrink:0; padding:8px 28px; background:#292621; }
.support-chat .support-connection button { margin-left:12px; }
.support-chat .support-new-messages { flex-shrink:0; font-size:13px; min-height:40px; margin:0; }
@media(max-width:760px) {
 .main.support-main { padding:10px 12px calc(88px + env(safe-area-inset-bottom)); }
 .support-chat { border-radius:14px; }
 .support-chat-header { min-height:60px; padding:14px 16px; gap:12px; }
 .support-chat-header > svg { width:24px; height:24px; }
 .main .support-chat-header h1 { font-size:17px; }
 .support-chat .messages { padding:16px 12px; gap:14px; }
 .support-chat .message { max-width:88%; margin-left:0; padding:10px 12px; font-size:15px; }
 .support-chat .message:not(.user-message)::before { display:none; }
 .support-chat .message time { font-size:11px; }
 .support-chat .composer { padding:12px; }
 .support-chat .composer-row { gap:8px; }
 .support-chat .composer-row textarea { height:52px; min-height:52px; padding:12px; font-size:16px; }
 .support-chat .attach-button { height:52px; width:28px; }
 .support-chat .send { width:44px; min-width:44px; height:52px; padding:10px; }
 .support-chat .composer > .muted { padding-left:36px; font-size:11px; }
 .support-chat .support-context,.support-chat .support-connection { padding:8px 12px; }
 .support-workspace.support-keyboard + .bottom-nav { display:none; }
 .support-workspace.support-keyboard .support-main { padding-bottom:8px; }
}
@media(max-height:600px) and (min-width:761px) {
 .main.support-main { padding-block:8px; }
 .support-chat-header { min-height:52px; padding:12px 20px; }
 .support-chat .messages { padding:12px 20px; gap:12px; }
 .support-chat .composer { padding:12px 20px; }
}
/* While typing, give the keyboard's remaining viewport to the conversation. */
.support-workspace.support-keyboard > .cabinet-header,
.support-workspace.support-keyboard > .sandbox-banner { display:none; }
.support-keyboard .main.support-main { padding:8px 12px; }
.support-keyboard .support-chat { position:relative; }
.support-keyboard .support-chat-header { min-height:44px; padding:10px 12px; }
.support-keyboard .support-chat-header h1 { font-size:16px; }
.support-keyboard .support-chat-header > svg { width:24px; height:24px; }
.support-keyboard .support-chat .messages { padding:8px 12px; gap:12px; }
.support-keyboard .support-chat .support-history,
.support-keyboard .support-chat .support-context,
.support-keyboard .support-chat .composer > .muted { display:none; }
.support-keyboard .support-chat .composer { padding:8px 12px; }
.support-keyboard .support-chat .composer-row textarea { height:48px; min-height:48px; max-height:48px; padding:10px 12px; resize:none; }
.support-keyboard .support-chat .send { height:48px; width:44px; min-width:44px; padding:10px; }
.support-keyboard .support-chat .attach-button { height:48px; width:28px; min-width:28px; }
.support-keyboard .support-chat .attachment-state:not(:empty) { display:flex; align-items:flex-start; justify-content:space-between; gap:8px; max-height:44px; margin-bottom:6px; }
.support-keyboard .attachment-state p { min-width:0; font-size:12px; }
.support-keyboard .attachment-state button { flex-shrink:0; margin:0; min-height:44px; }
.support-keyboard .support-chat .support-connection { position:absolute; top:44px; left:0; right:0; z-index:2; max-height:64px; overflow:auto; }

.support-chat .support-new-messages:not([hidden]) { display:inline-flex; align-items:center; justify-content:center; gap:8px; }
.support-chat .support-new-messages svg { width:16px; height:16px; transform:rotate(180deg); }
.support-keyboard .support-chat-header { padding-right:56px; }
.support-keyboard .support-chat .support-new-messages { position:absolute; right:4px; top:0; z-index:3; width:44px; height:44px; min-height:44px; margin:0; padding:10px; background:var(--surface); border:0; border-radius:8px; }
.support-keyboard .support-new-messages > span { position:absolute; width:1px; height:1px; clip-path:inset(50%); overflow:hidden; white-space:nowrap; }
.support-keyboard .support-new-messages svg { width:20px; height:20px; }

/* Renewal reference: monthly comparison at left, one-time amount at checkout. */
.main.purchasing { max-width:1440px; }
.purchasing > .heading h1 { font-size:clamp(26px,2.3vw,38px); }
.purchasing > .heading p { margin:8px 0 0; }
.purchasing .subscription-grid { grid-template-columns:minmax(0,1.25fr) minmax(0,1fr); gap:32px; }
.renewal-picker .tier-picker { margin:0; }
.renewal-picker .tier-option { flex-direction:column; justify-content:flex-start; gap:4px; min-width:0; height:84px; padding:12px 4px; }
.renewal-picker .tier-option strong { display:flex; align-items:center; justify-content:center; gap:10px; font-size:18px; font-weight:600; line-height:1.4; white-space:nowrap; }
.renewal-picker .tier-option small { display:block; font-size:14px; line-height:1.2; text-align:center; color:var(--muted); }
.vip-crown { display:inline-flex; color:#c1af8a; }
.vip-crown svg { width:24px; height:24px; }
.period-heading { display:flex; align-items:baseline; flex-wrap:wrap; gap:8px 16px; margin:24px 0 12px; color:var(--muted); }
.period-heading small { font-size:13px; }
.renewal-picker .plans { display:grid; grid-template-columns:minmax(0,1fr); gap:6px; margin:0; }
.renewal-picker .plans > .renewal-plan { display:grid; grid-template-columns:20px minmax(0,1fr) auto; gap:12px; align-items:center; min-height:96px; padding:14px 16px; border:1px solid var(--line); border-radius:12px; }
.renewal-picker .plans > .renewal-plan > input { grid-column:1; grid-row:1; }
.renewal-picker .plans > .renewal-plan > .period-label { grid-column:2; grid-row:1; display:flex; align-items:center; flex-wrap:wrap; justify-content:flex-start; gap:8px 12px; margin:0; text-align:left; min-width:0; }
.renewal-picker .plans .period-label > strong { font-size:18px; font-weight:650; }
.renewal-picker .period-label .plan-saving { display:inline; width:auto; font-size:14px; color:#b6c4aa; }
.best-value { display:inline-block; border:1px solid #c1af8a; border-radius:5px; padding:2px 8px; font-size:12px; line-height:1.5; font-weight:500; white-space:nowrap; }
.renewal-picker .plans > .renewal-plan > .period-price { grid-column:3; grid-row:1; display:flex; flex-direction:column; align-items:flex-end; gap:3px; margin:0; text-align:right; }
.monthly-price { display:flex; align-items:baseline; gap:2px; font-variant-numeric:tabular-nums; white-space:nowrap; }
.renewal-picker .plans .monthly-price strong { font-size:28px; line-height:1.25; font-weight:750; }
.renewal-picker .plans .monthly-price small { font-size:14px; color:var(--text); }
.renewal-picker .plans .period-total { display:block; font-size:14px; line-height:1.4; color:var(--muted); white-space:nowrap; }
.purchase-summary { border-radius:18px; }
.purchase-summary h2 { font-size:26px; margin:0 0 4px; }
.summary-device-limit { margin:0 0 20px; font-size:15px; }
.purchase-summary .bonus-control { margin:0; padding:0; }
.purchase-summary .quote-summary { margin-top:24px; padding-top:20px; }
.purchase-summary .summary-row.total { margin:0 0 10px; }
.purchase-summary .summary-row.total strong { font-size:40px; }
.purchase-summary .purchase-expiry { margin:0 0 18px; }
.purchase-summary .methods { border:0; padding:0; margin:0 0 20px; min-width:0; }
.purchase-summary .methods legend { margin-bottom:8px; font-size:14px; }
.purchase-summary .method-options { display:flex; width:100%; gap:8px; padding:0; border:0; background:transparent; }
.purchase-summary .method { display:flex; flex:1; gap:12px; align-items:center; justify-content:center; min-width:0; min-height:52px; margin:0; padding:12px 8px; border:1px solid var(--line); border-radius:10px; background:transparent; }
.purchase-summary .method:has(input:checked) { background:#343b3f; border-color:#343b3f; }
.purchase-summary .payment-icon { display:inline-flex; width:24px; height:24px; flex-shrink:0; object-fit:contain; }
.purchase-summary .payment-icon svg { width:24px; height:24px; }
.purchase-summary .method > span { margin:0; }
.purchase-summary .purchase-once { margin:14px 0 10px; font-size:13px; }
.purchase-summary .purchase-terms { margin:0; font-size:13px; }
.purchasing .order-history-section { margin-top:16px; }
@media(min-width:761px) and (max-width:1100px) { .purchasing .subscription-grid { grid-template-columns:1fr; } }
@media(max-width:760px) {
 .main.purchasing { padding-bottom:calc(28px + env(safe-area-inset-bottom)); }
 .purchasing > .heading h1 { font-size:26px; }
 .purchasing .subscription-grid { gap:20px; }
 .renewal-picker .current-tier { margin-bottom:0; }
 .renewal-picker .current-tier strong { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
 .renewal-picker .tier-picker { margin-top:12px; }
 .renewal-picker .tier-option { height:76px; padding:10px 2px; }
 .renewal-picker .tier-option strong { gap:4px; font-size:13px; }
 .renewal-picker .tier-option small { font-size:11px; }
 .renewal-picker .vip-crown svg { width:16px; height:16px; }
 .renewal-picker .period-heading { margin:16px 0 10px; gap:6px 12px; font-size:14px; }
 .renewal-picker .period-heading small { font-size:12px; }
 .renewal-picker .plans::before { display:none; }
 .renewal-picker .plans > .renewal-plan { display:flex; flex-wrap:wrap; min-height:84px; padding:12px; gap:10px; }
 .renewal-picker .plans > .renewal-plan > input { flex:0 0 20px; }
 .renewal-picker .plans > .renewal-plan > .period-label { flex:1 1 min-content; min-width:min-content; }
 .renewal-picker .plans > .renewal-plan > .period-price { margin-left:auto; }
 .renewal-picker .plans .period-label > strong { font-size:16px; }
 .renewal-picker .period-label .plan-saving { display:none; }
 .renewal-picker .best-value { font-size:10px; padding:1px 5px; }
 .renewal-picker .plans .monthly-price strong { font-size:24px; }
 .renewal-picker .plans .monthly-price small { font-size:12px; }
 .renewal-picker .plans .period-total { font-size:11px; }
 .purchase-summary h2 { display:block; font-size:20px; margin-bottom:4px; }
 .purchase-summary .summary-device-limit { font-size:14px; margin:0 0 16px; }
 .purchase-summary .bonus-control { padding:12px 0; }
 .purchase-summary .bonus-control small { font-size:13px; }
 .purchase-summary .quote-summary { margin-top:16px; padding-top:0; }
 .purchase-summary .summary-row.total:not(.has-bonus),.purchase-summary .summary-row.total { display:block; margin:0 0 12px; font-size:14px; }
 .purchase-summary .summary-row.total strong { font-size:30px; margin-top:4px; }
 .purchase-summary .methods { display:block; margin-bottom:16px; }
 .purchase-summary .methods legend { display:block; }
 .purchase-summary .method { min-height:48px; }
 .purchase-summary .purchase-expiry { margin:0 0 16px; }
 .purchase-summary .primary { margin:0; }
}
