/* Private cabinet. The public pages keep the shared stylesheet and its theme. */
.cabinet {
  color-scheme: light;
  --bg: #f6f6fa;
  --bg-deep: #fafafd;
  --surface: #fff;
  --surface-solid: var(--surface);
  --surface-elevated: var(--surface);
  --surface-hover: #f6f4fb;
  --surface-2: #f2f1f7;
  --text: #201d2d;
  --text-secondary: #575467;
  --text-muted: #676478;
  --accent: #6241c3;
  --lavender: var(--accent);
  --accent-soft: #efeafa;
  --accent-gradient: linear-gradient(115deg, #6544c6, #5935b6);
  --border: #e2e0e9;
  --border-strong: #c9c5d5;
  --success: #226b50;
  --warning: #8c520e;
  --danger: #ac344a;
  --info: #375990;
  --shadow-card: 0 2px 6px -4px rgb(34 23 64 / 12%);
  --shadow-accent: none;
  --rail: 232px;
  --gutter: clamp(24px, 3.2vw, 52px);
  --panel-pad: clamp(20px, 2.2vw, 32px);
  --panel-radius: 22px;
  --tab-height: 66px;
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
}
@media (prefers-color-scheme: dark) {
  .cabinet {
    color-scheme: dark;
    --bg: #14131c;
    --bg-deep: #181721;
    --surface: #201e2a;
    --surface-hover: #2a2736;
    --surface-2: #2a2735;
    --text: #f4f2fa;
    --text-secondary: #c6c1d3;
    --text-muted: #aea8bf;
    --accent: #c4affe;
    --accent-soft: #362d49;
    --accent-gradient: linear-gradient(115deg, #6442bb, #5233a3);
    --border: #383342;
    --border-strong: #5d556d;
    --success: #80dfb5;
    --warning: #f1c182;
    --danger: #ff9aab;
    --info: #a4cafa;
  }
}
.cabinet [hidden] { display: none !important; }
.cabinet :focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.cabinet main:focus { outline: none; box-shadow: none; }
.cabinet summary { cursor: pointer; list-style: none; }
.cabinet summary::-webkit-details-marker { display: none; }
.cabinet fieldset { min-width: 0; border: 0; }
.cabinet .btn { min-height: 44px; border-radius: 11px; font-size: 14px; }
.cabinet .btn-secondary { box-shadow: none; }
.cabinet .btn-danger { background: #a72c44; }
.cabinet :where(.cab-notice, .form-note, .welcome-terms, .setup-steps, .faq-card p, .panel-copy) a { text-decoration: underline; text-underline-offset: .16em; }
.skip-main { position: fixed; z-index: 20; top: 8px; left: 8px; padding: 12px; background: var(--surface); transform: translateY(-160%); }
.skip-main:focus { transform: none; }

/* Frame and navigation */
.cab-side {
  position: fixed; inset: 0 auto 0 0; width: var(--rail); z-index: 4;
  display: flex; flex-direction: column; padding: 28px 16px 16px;
  border-right: 1px solid var(--border); background: var(--surface);
}
.cab-brand { display: inline-flex; gap: 10px; align-items: center; color: var(--text); font-size: 22px; font-weight: 720; line-height: 1; letter-spacing: -.055em; }
.cab-brand .brand-net { color: var(--accent); }
.cab-brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 14px; background: #241a3e; }
.cab-brand-mark img { width: 31px; height: 31px; }
.cab-side > .cab-brand { margin: 0 10px 32px; }
.cab-side nav { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 4px; margin: -4px; }
.cab-nav-item, .side-support, .account-panel :is(a, button) {
  display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 10px 12px;
  border-radius: 10px; color: var(--text-secondary); font-size: 14px; font-weight: 540;
}
.cab-nav-item .icon, .side-support .icon { width: 19px; height: 19px; }
.cab-nav-item:hover, .side-support:hover, .bar-action:hover, .account-menu summary:hover,
.account-panel :is(a, button):hover { background: var(--surface-hover); color: var(--text); }
.cab-nav-item[aria-current], .cab-tabs .in-section { color: var(--accent); background: var(--accent-soft); font-weight: 680; }
.nav-caption { margin: 19px 12px 6px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--text-muted); font-weight: 600; font-size: 12px; }
.cab-count, .count { color: var(--accent); background: var(--accent-soft); border-radius: 7px; padding: 1px 7px; font-size: 12px; font-weight: 650; }
.cab-count, .side-support > span { margin-left: auto; }
.side-support { margin-top: auto; flex: none; border-top: 1px solid var(--border); border-radius: 0; padding-top: 16px; }
.cab-body { min-height: 100vh; min-height: 100dvh; margin-left: var(--rail); display: flex; flex-direction: column; min-width: 0; }
.cab-bar {
  position: relative; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px var(--gutter); min-height: 69px; background: var(--surface); border-bottom: 1px solid var(--border);
}
.cab-crumb, .bar-actions, .bar-action, .account-menu summary { display: flex; align-items: center; }
.cab-crumb { gap: 12px; color: var(--text-muted); font-size: 13px; }
.cab-crumb a { color: var(--text-secondary); }
.cab-crumb strong { color: var(--text); font-weight: 600; }
.bar-actions { gap: 12px; margin-left: auto; }
.bar-action, .account-menu summary { min-height: 44px; border-radius: 11px; color: var(--text-secondary); font-size: 14px; gap: 8px; }
.bar-action { justify-content: center; min-width: 44px; padding: 8px; background: transparent; }
.news-action { position: relative; }
.news-dot { position: absolute; width: 7px; height: 7px; border-radius: 50%; top: 9px; right: 9px; background: var(--accent); }
.account-menu, .server-status { position: relative; }
.account-menu summary { padding: 4px 8px; }
.cab-avatar { width: 32px; height: 32px; display: grid; place-items: center; color: var(--accent); background: var(--accent-soft); border-radius: 50%; font-weight: 700; }
.account-short { max-width: 170px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.account-panel, .server-status p, .more-panel { z-index: 9; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 10px 36px rgb(22 16 42 / 15%); }
.account-panel { position: absolute; right: 0; top: calc(100% + 6px); width: min(250px, 85vw); padding: 8px; }
.account-panel > strong { display: block; padding: 8px 12px; overflow-wrap: anywhere; }
.account-panel button { justify-content: flex-start; background: transparent; width: 100%; }
.bar-brand, .cab-tabs { display: none; }
.cab-content, .cab-footer { width: 100%; max-width: 1370px; margin-inline: auto; padding-inline: var(--gutter); }
.cab-content { flex: 1; padding-block: clamp(26px, 3vw, 44px); container-type: inline-size; }
.cab-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 16px; font-size: 12px; }
.cab-footer a { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; color: var(--text-muted); }
.cab-first .cab-body { margin-left: 0; }
.cab-first .cab-content, .cab-first .cab-footer { max-width: 1070px; }
.cab-first .bar-brand { display: block; }
.cab-first .cab-crumb { display: none; }
.cab-notice, .cab-push { padding: 14px 18px; border-radius: 14px; background: var(--accent-soft); color: var(--text); margin-bottom: 20px; overflow-wrap: anywhere; }
.cab-push { display: none; }
.cab-push.show { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.cab-push p { flex: 1 1 240px; }

/* Home */
.page-heading, .panel-title, .device-heading, .action-line, .total-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.page-heading, .panel-title, .total-line { justify-content: space-between; }
.page-heading { margin-bottom: clamp(18px, 2vw, 27px); }
.page-heading h1, .access-copy h1, .access-copy h2, .balance-figure, .plan-price { letter-spacing: -.047em; line-height: 1.06; font-weight: 690; }
.page-heading h1 { font-size: clamp(31px, 3.3vw, 46px); }
.server-status { max-width: 100%; }
.server-status summary { display: flex; gap: 8px; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: 14px; font-size: 13px; color: var(--text-secondary); }
.server-status p { position: absolute; right: 0; top: 100%; width: min(290px, 82vw); padding: 14px; font-size: 14px; }
.state-dot { flex-shrink: 0; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--text-muted); }
.state-available { background: #339870; }
.state-degraded, .state-maintenance { background: #bc731a; }
.state-unavailable { background: #c94760; }
.home-grid, .task-grid, .plan-grid { display: grid; gap: 18px; }
.home-grid, .task-grid { grid-template-columns: minmax(0, 1fr); align-items: start; }
@container (min-width: 736px) {
  .home-grid, .task-grid { grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); }
}
.home-grid > :is(.access-card, .balance-card) { align-self: stretch; }
.surface, .access-card { border-radius: var(--panel-radius); min-width: 0; }
.surface { padding: var(--panel-pad); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-card); }
.surface h2, .checkout-fields legend { font-size: clamp(20px, 2vw, 25px); letter-spacing: -.035em; line-height: 1.2; font-weight: 660; }
.surface h3 { font-size: 17px; line-height: 1.3; letter-spacing: -.02em; }
.access-card { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center;
  padding: clamp(23px, 2.8vw, 42px); min-height: 286px; color: #fff;
  background: radial-gradient(ellipse at 108% 18%, #584087, transparent 62%), linear-gradient(118deg, #201735 2%, #30224d 72%, #463262);
}
.access-card::before { content: ''; position: absolute; inset: 0 0 0 42%; z-index: -1;
  background: radial-gradient(circle, rgb(220 207 255 / 27%) 1px, transparent 1px) 0 0 / 17px 17px;
  mask-image: linear-gradient(95deg, transparent, black);
}
.orbit-art { position: absolute; z-index: -1; right: -2%; top: 50%; width: 42%; transform: translateY(-48%) rotate(-9deg); pointer-events: none; }
.orbit-art img { width: 100%; height: auto; }
.access-copy { width: 62%; }
.access-label { display: inline-flex; align-items: center; gap: 7px; color: #e0d1ff; font-size: 13px; font-weight: 620; }
.access-copy :is(h1, h2) { margin: 17px 0 10px; font-size: clamp(31px, 3.4vw, 51px); text-wrap: balance; overflow-wrap: break-word; }
.access-copy p { color: #e0d9eb; max-width: 44ch; font-size: 15px; line-height: 1.55; }
.cabinet .on-ink { margin-top: 22px; color: #281c43; background: #faf6ff; font-weight: 670; box-shadow: none; }
.cabinet .on-ink:hover { color: #211431; background: #e9dcff; }
.panel-title { margin-bottom: 16px; }
.panel-title h2 { display: flex; align-items: center; gap: 8px; }
.surface .panel-label { display: inline-flex; align-items: center; gap: 9px; font-size: 17px; letter-spacing: -.015em; }
.panel-label .icon { color: var(--accent); }
.balance-card { display: flex; flex-direction: column; }
.balance-figure { margin: 14px 0 16px; font-size: clamp(35px, 4vw, 55px); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.balance-info { font-size: 14px; }
.balance-info > div { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 5px 0; }
.balance-info dt { color: var(--text-secondary); }
.balance-info dd { font-weight: 630; font-variant-numeric: tabular-nums; text-align: right; }
.balance-card .balance-info { margin-bottom: 18px; }
.balance-card .btn { margin-top: auto; }
.tile-icon { display: inline-grid; place-items: center; width: 43px; height: 43px; flex: 0 0 43px; border-radius: 13px; background: var(--surface-2); color: var(--text-secondary); }
.tile-icon .icon { width: 20px; height: 20px; }
.text-action, .add-device-link { min-height: 44px; display: inline-flex; align-items: center; gap: 7px; color: var(--accent); font-weight: 600; font-size: 14px; }
.text-action .icon, .on-ink .icon { width: 16px; height: 16px; }
.device-preview { list-style: none; }
.device-preview li, .guide-row { display: flex; align-items: center; gap: 13px; padding: 14px 0; min-height: 60px; }
.device-preview li + li, .guide-row + .guide-row { border-top: 1px solid var(--border); }
.device-ident { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.device-ident strong, .guide-row strong, .empty-note strong { display: block; font-size: 15px; font-weight: 630; }
.device-ident small, .guide-row small, .cab-offer small { display: block; margin-top: 3px; color: var(--text-muted); font-size: 13px; line-height: 1.35; }
.device-ident .state-dot { width: 6px; height: 6px; vertical-align: middle; margin-right: 3px; }
.add-device-link { justify-content: center; width: 100%; border: 1px dashed var(--border-strong); border-radius: 11px; margin-top: 12px; }
.add-device-link:hover { color: var(--accent); background: var(--accent-soft); border-color: var(--accent); }
.empty-note { display: flex; align-items: center; gap: 13px; background: var(--surface-2); border-radius: 14px; padding: 22px; }
.empty-note > .icon { color: var(--accent); width: 25px; height: 25px; }
.empty-note p { color: var(--text-muted); font-size: 14px; }
.guide-row { color: var(--text); }
.guide-row:hover strong { color: var(--accent); }
.guide-row .tile-icon { color: var(--accent); background: var(--accent-soft); }
.link-arrow { color: var(--text-muted); margin-left: auto; font-size: 19px; }
.cab-offer { display: flex; align-items: center; gap: 15px; margin-top: 18px; border: 1px solid var(--border); background: var(--surface); border-radius: 16px; padding: 18px 22px; color: var(--text); }
.cab-offer > .icon { color: var(--accent); }
.cab-offer > .icon:last-child { margin-left: auto; }

/* First visit, devices and help */
.welcome-intro { margin-bottom: 18px; }
.welcome-intro .orbit-art { width: min(35%, 255px); right: 5%; }
.plan-grid { grid-template-columns: minmax(0, 1fr); }
@container (min-width: 521px) {
  .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.access-plan { display: flex; flex-direction: column; align-items: start; }
.access-plan .tile-icon { color: var(--accent); background: var(--accent-soft); margin-bottom: 16px; }
.plan-price { font-size: 32px; margin-block: 14px 10px; }
.plan-price small { font-size: 14px; color: var(--text-muted); letter-spacing: normal; font-weight: 500; }
.access-plan p { margin-bottom: 20px; color: var(--text-secondary); }
.access-plan :is(form, .btn-block) { width: 100%; margin-top: auto; }
.welcome-terms { color: var(--text-muted); margin: 18px 0; font-size: 13px; }
.task-aside { display: grid; gap: 18px; min-width: 0; }
.panel-copy, .setup-ready p { margin: 8px 0 16px; color: var(--text-secondary); }
.setup-ready { display: flex; gap: 16px; margin-bottom: 18px; background: var(--accent-soft); }
.setup-ready p { max-width: 66ch; }
.device-entry + .device-entry { border-top: 1px solid var(--border); margin-top: 22px; padding-top: 22px; }
.device-entry:target { scroll-margin-top: 20px; }
.device-heading { flex-wrap: nowrap; }
.action-line { margin-top: 14px; gap: 8px; }
.field-label, .cabinet .cab-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 5px; color: var(--text); }
.form-note { display: block; margin: 7px 0 14px; font-size: 13px; color: var(--text-secondary); }
.cabinet :is(.form input:not([type=checkbox],[type=radio]), .form select, .field-control) { font-size: 16px; min-height: 46px; }
.cabinet .cab-form input, .cabinet .amount-field { background: var(--bg-deep); margin-top: 0; }
.device-details { margin-top: 8px; }
.device-details > summary, .delete-device summary, .faq-card summary { display: flex; align-items: center; gap: 7px; min-height: 44px; font-size: 14px; font-weight: 570; }
.device-details > summary { color: var(--text-secondary); }
.delete-device summary { color: var(--danger); }
.delete-device p, .faq-card p { margin: 4px 0 12px; color: var(--text-secondary); }
.device-details[open] > summary .icon, .faq-card details[open] summary .icon, .account-menu[open] summary > .icon, .server-status[open] summary > .icon { transform: rotate(180deg); }
.setup-steps { list-style: none; counter-reset: step; margin: 3px 0 12px; }
.setup-steps li { counter-increment: step; display: grid; grid-template-columns: 26px 1fr; gap: 3px 10px; padding: 10px 0; font-size: 14px; }
.setup-steps li::before { content: counter(step); grid-row: span 2; display: grid; place-items: center; width: 25px; height: 25px; color: var(--accent); background: var(--accent-soft); border-radius: 50%; font-size: 12px; font-weight: 650; }
.setup-steps li span { color: var(--text-secondary); }
.faq-card details + details { border-top: 1px solid var(--border); }
.faq-card summary { justify-content: space-between; padding-block: 11px; }
.faq-card p { font-size: 14px; }

/* Payment */
.checkout-fields fieldset + fieldset { margin-top: 24px; }
.checkout-fields legend { padding: 0; margin-bottom: 16px; }
.amount-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.amount-preset { background: var(--surface); border: 1px solid var(--border-strong); min-height: 44px; padding: 8px 13px; font-size: 14px; font-variant-numeric: tabular-nums; }
.amount-preset[aria-pressed=true] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.amount-preset small { font-size: 11px; font-weight: 500; }
.checkout-options { display: grid; gap: 9px; }
.checkout-option { display: flex; align-items: center; gap: 11px; padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: 12px; cursor: pointer; }
.checkout-option:has(:checked) { background: var(--accent-soft); border-color: var(--accent); }
.checkout-option input { width: 18px; height: 18px; accent-color: var(--accent); }
.checkout-option > span { display: flex; align-items: center; gap: 11px; }
.checkout-option strong, .checkout-option small { display: block; }
.checkout-option small { color: var(--text-secondary); font-size: 13px; }
.bonus-tiers { display: grid; gap: 4px; margin-top: 16px; border-radius: 10px; padding: 12px; color: var(--text-secondary); background: var(--surface-2); font-size: 13px; }
.bonus-tiers strong { color: var(--text); }
.checkout-total h2 { margin-bottom: 16px; }
.total-line { border-top: 1px solid var(--border); margin-top: 12px; padding-top: 16px; }
.total-line strong { font-size: 26px; letter-spacing: -.03em; overflow-wrap: anywhere; }
.bank-note { display: flex; align-items: center; gap: 8px; background: var(--surface-2); color: var(--text-secondary); padding: 10px 12px; border-radius: 10px; font-size: 13px; margin-bottom: 14px; }
.balance-shortcuts { display: flex; flex-wrap: wrap; gap: 0 20px; margin-top: 12px; }

/* Existing secondary workflows share the same surfaces and form controls. */
.cab-content .card { padding: var(--panel-pad); border-radius: var(--panel-radius); margin-bottom: 16px; }
.cab-content .card-header h1 { font-size: clamp(24px, 3vw, 35px); letter-spacing: -.04em; }
.cab-content .card-header h2 { font-size: 21px; }
.cab-content .card-header p { font-size: 14px; }
.cab-content .card-header { margin-bottom: 18px; }
.cab-content :is(.referral-hero-main, .metric-card, .news-card, .device-card, .switch-row-text, .shop-product-copy) { min-width: 0; overflow-wrap: anywhere; }
.cab-content .card-narrow { max-width: 510px; }
.cab-content .gift-plan-per, .cab-content .shop-pack-hint { color: var(--text-secondary); }
.mail-toggle { position: relative; width: 44px; height: 44px; padding: 0; background: transparent; }
.mail-toggle .switch-slider { top: 9px; bottom: 9px; }
.mail-toggle[aria-checked=true] .switch-slider { background: #6241c3; border-color: transparent; }
.mail-toggle[aria-checked=true] .switch-slider::before { transform: translateX(18px); }
.cab-content .btn-sm { min-height: 44px; }

@media (max-width: 940px) {
  .cabinet { --gutter: clamp(16px, 4vw, 32px); }
  .cab-side, .cab-crumb { display: none; }
  .bar-brand { display: block; }
  .cab-shell { display: flex; flex-direction: column; height: 100vh; height: 100dvh; min-height: 0; }
  .cab-body { margin-left: 0; }
  .cab-shell .cab-body { flex: 1 1 0; min-height: 0; overflow-y: auto; scroll-padding-block: 12px; }
  .cab-first .cab-body { padding-bottom: env(safe-area-inset-bottom); }
  .cab-bar { min-height: 60px; padding-block: 6px; }
  .cab-tabs {
    position: relative; z-index: 6; flex: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
    min-height: calc(var(--tab-height) + env(safe-area-inset-bottom)); align-items: center;
    padding: 4px max(6px, env(safe-area-inset-right)) calc(4px + env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left));
    background: var(--surface); border-top: 1px solid var(--border);
  }
  .cab-tabs > .cab-nav-item, .tabs-more > summary {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 50px;
    padding: 5px 2px; margin: 0 2px; border-radius: 10px; font-size: 12px; font-weight: 590; line-height: 1.2; color: var(--text-secondary);
  }
  .cab-tabs > a[aria-current], .tabs-more[open] > summary { color: var(--accent); background: var(--accent-soft); }
  .tabs-more > summary .icon { width: 19px; height: 19px; }
  .more-panel { position: absolute; bottom: calc(100% + 6px); right: max(8px, env(safe-area-inset-right)); width: min(345px, calc(100% - 16px)); max-height: calc(100dvh - var(--tab-height) - env(safe-area-inset-bottom) - 24px); overflow: auto; overscroll-behavior: contain; padding: 12px; }
  .more-panel h2 { font-size: 18px; padding: 4px 12px 8px; }
  .cabinet .toast-host { bottom: calc(var(--tab-height) + env(safe-area-inset-bottom) + 10px); }
}
@container (max-width: 735px) {
  .access-card { min-height: 245px; }
  .home-grid .balance-card { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; align-items: center; }
  .balance-card .panel-label, .balance-card .balance-figure { grid-column: 1; }
  .balance-card .balance-figure { margin: 0; }
  .balance-card .balance-info { grid-column: 2; grid-row: 1 / 3; margin: 0; }
  .balance-card .btn { grid-column: 1 / -1; margin-top: 10px; }
}
@container (max-width: 520px) {
  .page-heading { gap: 6px; }
  .page-heading h1 { font-size: 32px; }
  .server-status summary { font-size: 12px; padding-inline: 0; }
  .server-status p { inset-inline: auto 0; }
  .access-copy { width: 72%; }
  .access-copy :is(h1, h2) { margin-top: 12px; font-size: 32px; }
  .access-copy p { font-size: 14px; }
  .orbit-art { width: 36%; right: -6%; }
  .welcome-intro .orbit-art { width: 33%; right: -4%; }
  .panel-title { gap: 4px 12px; margin-bottom: 8px; }
  .setup-ready { display: block; }
  .setup-ready > .tile-icon { margin-bottom: 8px; }
  .server-status { position: static; }
  .page-heading:has(.server-status) { position: relative; }
  .server-status p { width: min(290px, 100%); }
}
@container (max-width: 405px) {
  .home-grid .balance-card { display: flex; align-items: stretch; gap: 0; }
  .balance-card .balance-figure { margin-block: 8px; }
  .home-grid .balance-info { margin-bottom: 6px; }
  .access-card { padding: 22px 18px; min-height: 228px; }
  .access-copy { width: 74%; }
  .access-copy p { max-width: 27ch; }
  .orbit-art, .welcome-intro .orbit-art { width: 29%; right: 0; top: 30%; }
  .device-preview .text-action .icon { display: none; }
  .device-preview li { gap: 8px; }
  .surface { padding: 18px; }
  .action-line > .btn { flex: 1 1 auto; }
}
@media (max-width: 540px) {
  .account-short { display: none; }
  .account-menu summary { gap: 4px; padding-inline: 4px; }
  .bar-actions { gap: 2px; }
  .cab-brand { font-size: 20px; }
  .cab-brand-mark { width: 33px; height: 33px; border-radius: 11px; }
  .cab-brand-mark img { width: 26px; height: 26px; }
  .home-grid, .task-grid, .plan-grid, .task-aside { gap: 12px; }
  .cabinet .checkout-option { min-height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .cabinet *, .cabinet *::before, .cabinet *::after { scroll-behavior: auto !important; transition-duration: 0s !important; }
}

/* Sign-in and account forms */
.entry-content { padding: clamp(24px, 5vw, 72px) var(--gutter); }
.entry-content > .cab-notice { max-width: 700px; margin-inline: auto; }
.entry-content .auth-card { margin-inline: auto; max-width: 510px; padding: var(--panel-pad); border-radius: var(--panel-radius); box-shadow: var(--shadow-card); }
.entry-content .docs-card { max-width: 860px; }
.entry-content .auth-card h1 { font-size: clamp(25px, 3vw, 32px); line-height: 1.15; }
.entry-content .auth-card .lead { font-size: 15px; margin-top: 8px; }
.entry-content .form .check { display: flex; align-items: flex-start; }
.entry-content .check input { flex: 0 0 18px; }
.entry-content .auth-footer a { display: inline-flex; align-items: center; min-height: 44px; }
.entry-login { max-width: 910px; margin: auto; }
.login-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.login-panels.email-only { grid-template-columns: minmax(0, 440px); }
.login-telegram { display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; min-height: 330px; }
.login-telegram .orbit-art { top: 16%; right: -3%; width: 41%; opacity: .8; }
.login-telegram .access-copy { width: 90%; }
.login-telegram .access-copy h2 { font-size: 32px; }
.login-telegram .tg-login-widget { margin-top: 18px; }
.widget-fallback { font-size: 14px; color: #e0d9eb; }
.widget-fallback a { color: #fff; text-decoration: underline; text-underline-offset: .15em; }
.login-email .form { margin-top: 18px; }
.login-email .form label { margin: 10px 0 4px; }
.login-email .form input { margin-top: 0; }
.login-signup { margin-top: 14px; font-size: 14px; }
.login-signup a { font-weight: 630; }
@media (max-width: 720px) {
  .login-panels { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .login-telegram { min-height: auto; }
  .login-telegram .orbit-art { right: -3%; top: 45%; width: 30%; }
  .login-telegram .access-copy { width: 76%; }
  .login-telegram .access-copy h2 { font-size: 26px; margin-top: 0; }
}
