/* CosmosPlaneta — shared visual layer. Existing form and modal mechanics stay in app.css. */
:root {
  --bg: #090e1b;
  --bg-soft: #101727;
  --panel: #121b2c;
  --panel-strong: #1a253a;
  --text: #f2f4fc;
  --muted: #a9b4ca;
  --accent: #b4b4ff;
  --accent-dark: #8d94e8;
  --accent-warm: #bddfd7;
  --success: #9cdec9;
  --line: rgba(175, 193, 229, .14);
  --line-strong: rgba(175, 193, 229, .25);
  --shadow: 0 18px 48px rgba(0, 0, 0, .16);
}
html { scroll-padding-top: 28px; }
body { background: var(--bg); font-family: "Segoe UI", system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
.page { background: radial-gradient(ellipse 70% 650px at 76% 6%, #1a214033, transparent), var(--bg); }
.page::before { display: none; }
.wrap { width: min(1200px, calc(100% - 64px)); }
h1, h2, h3, .brand { letter-spacing: -.035em; }
h1, h2 { font-weight: 650; }
h3 { font-weight: 600; }
.accent { color: var(--accent); text-shadow: none; }
a, button, summary, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #cccaff; outline-offset: 5px; }
.skip-link { position: fixed; z-index: 9999; top: 12px; left: 12px; padding: 12px 20px; border-radius: 12px; background: #dddfff; color: #101528; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.topbar { padding: 23px 0; margin: 0 auto; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; box-shadow: none; backdrop-filter: none; gap: 24px; }
.brand { gap: 12px; font-size: 21px; font-weight: 700; white-space: nowrap; }
.brand .cosmos-mark { width: 36px; height: 36px; box-shadow: 0 0 24px #878fff20; }
.cosmos-mark { background: radial-gradient(circle at 26% 20%, #dde6ff, #8d8deb 44%, #3e7189 85%); }
.nav { gap: 14px; font-size: 14px; font-weight: 500; }
.nav a { padding: 10px 6px; color: #b6bed1; }
.nav a:hover { color: #fff; background: none; }
.nav a.nav-account { display: inline-flex; align-items: center; gap: 14px; padding: 11px 17px; margin-left: 10px; color: #edeeff; border: 1px solid var(--line-strong); border-radius: 12px; background: #ffffff05; }
.nav-account[aria-current] { border-color: #a7a7fa66; }
.navigation-toggle { display: none; color: var(--text); background: #161e30; border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; min-height: 44px; }
.button { min-height: 48px; padding: 13px 22px; border-radius: 12px; font-size: 14px; font-weight: 650; line-height: 1.4; letter-spacing: 0; box-shadow: none; transition: background .18s, border-color .18s, transform .18s; text-align: center; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #15182a; background: #bebeff; border: 1px solid #bebeff; box-shadow: none; }
.button-primary:hover { color: #111427; background: #d0ceff; border-color: #d0ceff; box-shadow: 0 6px 24px #8d94e81a; }
.button-secondary { color: #e2e6f4; background: #ffffff04; border: 1px solid var(--line-strong); }
.button-secondary:hover { background: #ffffff0b; border-color: #a4acd45c; box-shadow: none; }
.button:disabled, .disabled-action { opacity: .5; transform: none; cursor: not-allowed; }
.kicker { padding: 0; min-height: 24px; border: none; border-radius: 0; background: none; color: #b5bfda; font-size: 12px; font-weight: 550; letter-spacing: .11em; text-transform: uppercase; box-shadow: none; }
.kicker-dot { width: 6px; height: 6px; background: var(--success); box-shadow: 0 0 0 4px #9cdec911; }
.hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; padding: 80px 0 86px; align-items: center; }
.hero-copy { position: relative; z-index: 1; min-width: 0; }
.hero h1 { margin: 24px 0; font-size: clamp(48px, 5.2vw, 76px); line-height: 1.04; letter-spacing: -.055em; max-width: 650px; font-weight: 650; }
.hero .lead { max-width: 490px; font-size: 17px; line-height: 1.8; color: #abb6cd; }
.hero .actions { margin-top: 30px; gap: 12px; }
.hero-facts { display: flex; gap: 22px; margin-top: 34px; color: #8e9ab4; font-size: 12px; line-height: 1.7; }
.hero-facts span { display: grid; }
.hero-facts b { color: #ccd3e7; font-size: 13px; font-weight: 550; }
.orbit-visual { position: relative; width: 100%; min-width: 0; height: auto; aspect-ratio: 1.04; padding: 0; overflow: visible; border: 0; border-radius: 0; background: radial-gradient(ellipse, #7472ad16 0, transparent 65%); box-shadow: none; transform: none; }
.orbit-visual::before, .orbit-visual::after { display: none; }
.orbit-art { width: 100%; height: 100%; display: block; }
.orbit-label { position: absolute; left: 9%; top: 2%; font-size: 9px; letter-spacing: .17em; color: #7f8baa; }
.orbit-device { position: absolute; display: flex; align-items: center; gap: 12px; border: 1px solid #6c779b40; border-radius: 14px; background: #141d2ee8; padding: 14px 18px; color: #dce1f1; font-size: 13px; box-shadow: 0 12px 40px #0002; }
.orbit-device > span { display: grid; place-items: center; width: 32px; height: 36px; color: #c0c5ff; font-size: 30px; line-height: 1; }
.orbit-device small { display: block; margin-top: 4px; font-size: 10px; color: #8d9ab6; }
.orbit-phone { left: 3%; top: 21%; }
.orbit-laptop { right: -1%; top: 56%; }
.orbit-tv { left: 8%; bottom: 9%; }
.orbit-caption { position: absolute; bottom: -2%; left: 0; width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; color: #96a4bf; font-size: 11px; }
.overview, .devices, .tariffs { padding-top: 64px; padding-bottom: 64px; }
.overview { border-top: 1px solid var(--line); }
.section-head { gap: 30px; align-items: end; margin-bottom: 30px; }
.section-head h2, .device-copy h2, .trial-panel h2 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.14; letter-spacing: -.04em; }
.section-note { max-width: 420px; font-size: 15px; line-height: 1.75; }
.section-eyebrow { display: block; margin-bottom: 12px; color: #a9a9e6; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.cards { gap: 18px; }
.card, .device-card { background: #11192a; border: 1px solid var(--line); border-radius: 18px; box-shadow: none; padding: 28px; }
.card::before, .card::after { display: none; }
.card-number { color: #aaa9ee; font-size: 13px; font-weight: 500; background: #aca9ff0d; border: 1px solid #aca9ff20; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; }
.card h3 { font-size: 21px; line-height: 1.3; margin-top: 28px; }
.card p, .device-card p { font-size: 14px; line-height: 1.75; }
.stats { gap: 10px; margin-top: 24px; }
.stat, .client-chip { color: #acb7cf; background: transparent; border-color: var(--line); box-shadow: none; font-weight: 450; }
.device-showcase { gap: 48px; border: 0; background: transparent; box-shadow: none; padding: 0; }
.device-card { padding: 22px; }
.device-picture { background: #1c2640; box-shadow: none; filter: saturate(.5); }
.device-card h3 { font-size: 18px; }
.trial-panel { padding: 32px 38px; gap: 32px; border: 1px solid #939ee838; border-radius: 20px; background: linear-gradient(110deg, #202843, #161e31 70%); box-shadow: none; }
.trial-panel h2 { font-size: 30px; }
.trial-panel p { font-size: 14px; color: #b8c1d7; line-height: 1.7; max-width: 650px; }
.trial-panel .button { flex-shrink: 0; }
.pricing-heading { margin-top: 62px; }
.pricing-grid { gap: 16px; }
.price-card { padding: 24px; min-height: 330px; border: 1px solid var(--line); border-radius: 18px; background: #11192a; box-shadow: none; }
.price-card::before { display: none; }
.price-card:hover, .price-card:focus-within { transform: translateY(-4px); border-color: #a6a4ee88; box-shadow: 0 16px 40px #0002; }
.price-card.featured.plan-6m, .price-card.featured.plan-12m { background: #191f36; border-color: #8687c366; box-shadow: none; }
.price-card.featured.plan-12m { background: #16282e; border-color: #729a9866; }
.plan-badge { min-height: 26px; padding: 5px 9px; border-radius: 7px; font-size: 10px; letter-spacing: .02em; color: #d2d2ff; background: #9897ef18; border-color: #9897ef33; box-shadow: none; }
.plan-12m .plan-badge { color: #b7e1d8; background: #7db4a31a; border-color: #7db4a333; }
.plan-period { margin-top: 18px; font-size: 21px; }
.plan-price strong { font-size: 40px; line-height: 1.1; letter-spacing: -.04em; font-weight: 650; }
.plan-price span { font-size: 12px; color: #9daac4; }
.plan-note { font-size: 13px; line-height: 1.65; }
.plan-6m .button { color: #191b30; background: #bebeff; border-color: #bebeff; }
.field input, .field select, .field textarea, .admin-filter-form input, .admin-filter-form select { min-height: 48px; border-radius: 10px; background-color: #0c1322; border-color: #a4b5d433; color: #edf0fa; }
.field input::placeholder, .field textarea::placeholder { color: #7f8ba5; opacity: 1; }
.field > span { color: #b8c3d9; font-size: 13px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #b4b4ff; box-shadow: 0 0 0 3px #b4b4ff12; }
.auth-card, .dashboard-card, .cabinet-auth-card, .renewal-card, .renew-modal-panel, .tariff-detail-card, .auth-flow-panel { border-radius: 20px; background-color: #131b2c; border-color: var(--line); box-shadow: none; }
.cabinet-auth-card h2 { font-size: 30px; font-weight: 600; }
.cabinet-auth-grid .auth-switch { position: static; width: auto; height: auto; overflow: visible; clip: auto; clip-path: none; white-space: normal; margin-bottom: 14px; }
.cabinet-auth-card p, .cabinet .email-verification-card p, .auth-flow-panel > .email-verification-card p { color: var(--muted); font-size: 14px; font-weight: 400; line-height: 1.65; }
.cabinet-auth-card .field span, .cabinet .email-verification-card .field span, .auth-flow-panel > .email-verification-card .field span { color: #b8c3d9; font-size: 13px; font-weight: 500; }
.cabinet-auth-card .field input, .cabinet .email-verification-card .field input, .auth-flow-panel > .email-verification-card .field input { background-color: #0c1322; border-color: #a4b5d433; border-radius: 10px; }
.cabinet-auth-card .button-primary, .cabinet .email-verification-card .button-primary, .auth-flow-panel > .email-verification-card .button-primary { background: #bebeff; border-color: #bebeff; color: #15182a; }
.cabinet-auth-card .button-secondary, .cabinet .email-verification-card .button-secondary, .auth-flow-panel > .email-verification-card .button-secondary { background: #ffffff04; border-color: var(--line-strong); color: #e2e6f4; }
.cabinet-auth-card .button:hover, .cabinet-auth-card .button:focus-visible, .cabinet .email-verification-card .button:hover, .cabinet .email-verification-card .button:focus-visible, .auth-flow-panel > .email-verification-card .button:hover, .auth-flow-panel > .email-verification-card .button:focus-visible { background: #a6a6de; border-color: #cccaff; color: #15182a; box-shadow: none; }
.auth-footer a, .auth-footer-line a { color: #c1c0ff; font-weight: 500; }
.renew-modal-panel.cabinet-auth-card h2 { padding-right: 28px; }
.renew-modal-panel.cabinet-auth-card p { color: var(--muted); font-size: 14px; font-weight: 400; line-height: 1.65; }
.renewal-auth-card .renewal-option { border-radius: 12px; }
.renewal-option.featured.plan-6m { background: #252941; border-color: #9b98db66; box-shadow: none; }
.renewal-option.featured.plan-12m { background: #1a2b32; border-color: #8dc6b966; box-shadow: none; }
.renewal-auth-card .renewal-option:hover, .renewal-auth-card .renewal-option:has(input:checked) { border-color: #b4b4ff; box-shadow: inset 0 0 0 1px #b4b4ff; transform: none; }
.renewal-option.featured .plan-badge { color: #dedcff; background: #9993d52b; border-color: #9993d533; box-shadow: none; }
.auth-switch { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 5px; gap: 4px; background: #101726; border: 1px solid var(--line); border-radius: 14px; }
.auth-switch label { min-height: 44px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 9px; background: none; font-size: 13px; font-weight: 550; }
#auth_login:checked ~ .auth-switch label[for="auth_login"], #auth_register:checked ~ .auth-switch label[for="auth_register"], #auth_link:checked ~ .auth-switch label[for="auth_link"] { color: #e4e4ff; border: 0; background: #2b3151; box-shadow: none; }
#auth_login:focus-visible ~ .auth-switch label[for="auth_login"], #auth_register:focus-visible ~ .auth-switch label[for="auth_register"], #auth_link:focus-visible ~ .auth-switch label[for="auth_link"] { outline: 2px solid #cccaff; outline-offset: 2px; }
.cabinet { padding: 44px 0 64px; }
.cabinet-hero { align-items: center; margin-bottom: 28px; }
.cabinet-hero h1 { font-size: clamp(32px, 4vw, 48px); line-height: 1.16; margin-top: 14px; }
.cabinet-hero p { margin-top: 12px; font-size: 14px; }
.cabinet-shortcuts { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.cabinet-shortcuts a { display: flex; gap: 9px; align-items: center; padding: 11px 18px; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; color: #bec9df; font-size: 13px; background: #121a2a; }
.cabinet-shortcuts a:hover { background: #262d4a; border-color: #a5a5dc66; color: #fff; }
.cabinet-shortcuts a:first-child { color: #dad8ff; background: #252a46; }
.subscription-status-panel { padding: 34px; border-radius: 22px; border-color: #8997cd44; background: radial-gradient(ellipse at 100% 0%, #41426d55, transparent 65%), #151e32; box-shadow: none; }
.status-panel-head { gap: 32px; }
.subscription-status-panel h2 { margin: 20px 0 12px; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.14; letter-spacing: -.035em; }
.subscription-status-panel p { font-size: 14px; }
.status-actions { display: flex; flex-direction: column; min-width: 220px; max-width: 290px; }
.status-actions .button { width: 100%; }
.status-pill { min-height: 30px; font-weight: 550; color: #bcebdd; background: #9cdec90b; border-color: #9cdec938; font-size: 12px; }
.status-pill::before { box-shadow: none; width: 6px; height: 6px; }
.status-pill.danger::before { background: #f49baa; box-shadow: none; }
.status-pill.warning::before { background: #eec78b; box-shadow: none; }
.cabinet-sync-state { padding: 0; border: 0; background: none; font-weight: 400; font-size: 11px; }
.status-metrics { gap: 0; margin-top: 28px; border-top: 1px solid var(--line); padding-top: 24px; }
.status-metric { background: none; box-shadow: none; border: 0; border-right: 1px solid var(--line); border-radius: 0; padding: 0 26px; }
.status-metric:first-child { padding-left: 0; }
.status-metric:last-child { border-right: 0; }
.status-metric span { font-size: 12px; color: #a8b5ce; }
.status-metric strong { font-size: 25px; font-weight: 600; margin-top: 7px; }
.device-support-panel { padding: 26px 30px; border-radius: 18px; background: #11192a; box-shadow: none; border-color: var(--line); }
.device-support-head h2 { font-size: 24px; }
.device-support-head p { font-size: 13px; }
.device-support-panel .kicker { font-size: 10px; }
.cabinet-details { gap: 20px; margin-top: 24px; }
.dashboard-card { padding: 28px; }
.dashboard-card h2 { font-size: 25px; }
.dashboard-card p { font-size: 14px; }
.dashboard-card strong, .hwid-meta, .admin-record strong { overflow-wrap: anywhere; }
.dashboard-card, .status-panel-head > div, .admin-record-head > div, .field { min-width: 0; }
.referral-card { background: #121b2d; }
.referral-hero { background: #1c2540; border-radius: 16px; }
.referral-card h2 { font-size: 32px; }
.referral-balance-panel, .referral-link-panel, .referral-leaderboard-panel, .referral-people-panel, .referral-activity-panel { border-radius: 16px; box-shadow: none; }
.notice { border-radius: 14px; box-shadow: none; font-size: 14px; }
.site-footer { padding: 44px 0 28px; border-top: 1px solid var(--line); background: #080d17; }
.site-footer .brand { font-size: 19px; }
.site-footer p { font-size: 13px; line-height: 1.75; }
.site-footer a { color: #b4bfd5; }
.legal-card, .moderation-info { border-radius: 18px; box-shadow: none; }
/* Administration uses the same tokens with a denser, quieter information hierarchy. */
.admin-body .page { background: #0b111d; }
.admin { width: min(1600px, calc(100% - 48px)); padding: 24px 0 64px; }
.admin-shell { grid-template-columns: 244px minmax(0, 1fr); gap: 26px; min-height: calc(100vh - 48px); }
.admin-sidebar { top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; scrollbar-width: thin; padding: 20px 14px; border-radius: 18px; border: 1px solid var(--line); background: #101827; box-shadow: none; }
.admin-brand { gap: 10px; padding: 0 6px 22px; font-size: 16px; font-weight: 600; border-color: var(--line); }
.admin-brand .cosmos-mark { width: 30px; height: 30px; flex-shrink: 0; box-shadow: none; }
.admin-brand small { display: block; color: #7f8ca8; margin-top: 4px; font-size: 10px; font-weight: 400; letter-spacing: .02em; }
.admin-nav-title { font-size: 10px; color: #74829f; letter-spacing: .12em; font-weight: 600; padding-left: 12px; }
.admin-nav-link { min-height: 44px; margin-top: 3px; color: #aebbd2; font-size: 12px; font-weight: 500; border-radius: 10px; }
.admin-nav-link:hover, .admin-nav-link.active { background: #a8a6f518; color: #dedcff; box-shadow: inset 2px 0 #b4b4ff; }
.admin-main { gap: 20px; }
.admin-topbar { padding: 10px 0 22px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; box-shadow: none; }
.admin-topbar h2 { font-size: 32px; font-weight: 600; }
.admin-topbar p { color: #98a6c0; font-size: 12px; line-height: 1.7; max-width: 560px; }
.admin-eyebrow { color: #aba9e8; font-size: 10px; letter-spacing: .12em; }
.admin-topbar .button { min-height: 40px; padding: 10px 16px; font-size: 12px; }
.admin-topbar .button-primary { background: transparent; color: #aebbd2; border-color: var(--line); }
.admin-command-bar, .admin-command-summary, .admin-command-links a, .admin-stat-card, .admin-action-card, .admin-panel, .admin-record, .admin-leaderboard-panel { background: #121b2b; border: 1px solid var(--line); border-radius: 14px; box-shadow: none; }
.admin-command-bar { padding: 14px; gap: 14px; }
.admin-command-summary { background: #1b2235; }
.admin-command-links a { background: #ffffff03; }
.admin-command-links a:hover { background: #a8a6f514; }
.admin-metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.admin-stat-card { padding: 22px; }
.admin-stat-card > span { color: #a6b3cc; font-size: 11px; font-weight: 500; text-transform: none; letter-spacing: .01em; }
.admin-stat-card > strong { color: #edf0fc; font-size: 30px; font-weight: 600; line-height: 1.25; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.admin-stat-card > small { font-size: 11px; line-height: 1.5; color: #8293b1; }
.admin-stat-card.metric { background: #121b2b; border-color: var(--line); box-shadow: none; }
.admin-stat-card.metric span { color: #a6b3cc; font-size: 11px; font-weight: 500; text-transform: none; letter-spacing: .01em; }
.admin-stat-card.metric strong { font-size: 30px; font-weight: 600; line-height: 1.25; }
.admin-stat-card.metric.good { background: #142329; border-color: #8cc8b82b; }
.admin-stat-card.metric.warning { background: #29261f; border-color: #d3b47830; }
.admin-stat-card.good { background: #142329; border-color: #8cc8b82b; }
.admin-stat-card.warning { background: #29261f; border-color: #d3b47830; }
.admin-monitor-row { color: #8a99b6; font-size: 11px; letter-spacing: .08em; }
.admin-action-card { padding: 18px; }
.admin-action-card strong { font-size: 18px; }
.admin-action-card small { font-size: 11px; }
.admin-panel-head, .admin-panel-head.compact { padding: 22px; background: none; border-color: var(--line); }
.admin-panel-head h2 { font-size: 23px; }
.admin-panel-head p { font-size: 12px; color: #95a5c2; }
.admin-panel-body { padding: 22px; }
.admin-bar-row i { background: linear-gradient(90deg, #8e96d9, #c1b9f7); box-shadow: none; }
.admin-record { margin-bottom: 14px; overflow: hidden; }
.admin-record-head { background: #192237; border-bottom: 1px solid var(--line); }
.admin-record-grid { gap: 14px; }
.admin-record-grid > div { min-width: 0; }
.admin-chip { border-radius: 7px; font-weight: 550; }
.admin-list-toggle { min-height: 44px; }
.admin-pagination a { min-height: 40px; min-width: 40px; border-radius: 8px; }
@media (min-width: 1500px) { .admin-metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1100px) {
  .nav { gap: 6px; font-size: 12px; }
  .brand { font-size: 19px; }
  .hero { gap: 12px; padding-top: 56px; }
  .hero-facts { gap: 14px; }
  .orbit-device { padding: 11px 13px; font-size: 11px; gap: 7px; }
  .orbit-device small { font-size: 9px; }
  .price-card { padding: 20px; }
  .plan-price strong { font-size: 34px; }
  .admin-shell { grid-template-columns: 210px minmax(0, 1fr); gap: 18px; }
  .admin-command-bar { display: grid; }
  .admin-command-links { display: flex; flex-wrap: wrap; }
  .admin-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .wrap { width: calc(100% - 40px); }
  .topbar { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 18px 0; gap: 16px; }
  .navigation-toggle { display: inline-flex; align-items: center; gap: 14px; justify-content: space-between; }
  .nav { display: flex; flex-wrap: wrap; width: 100%; gap: 6px 16px; font-size: 14px; }
  .has-design-js .nav { display: none; }
  .has-design-js .topbar.menu-open .nav { display: flex; }
  .nav a.nav-account { margin-left: 0; }
  .hero { grid-template-columns: 1fr; padding: 44px 0 56px; gap: 40px; }
  .hero h1 { font-size: clamp(48px, 9.6vw, 70px); }
  .hero .lead { max-width: 520px; font-size: 16px; }
  .hero-facts { gap: 28px; }
  .orbit-visual { max-width: 500px; justify-self: center; }
  .orbit-device { padding: 14px 18px; font-size: 13px; }
  .orbit-device small { font-size: 10px; }
  .overview, .devices, .tariffs { padding-top: 42px; padding-bottom: 42px; }
  .section-head { display: block; }
  .section-note { margin-top: 16px; }
  .cards { grid-template-columns: 1fr; }
  .card { padding: 24px; }
  .card h3 { margin-top: 18px; }
  .device-showcase { grid-template-columns: 1fr; gap: 28px; }
  .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trial-panel { align-items: start; padding: 28px; }
  .trial-panel h2 { font-size: 26px; }
  .cabinet-hero { align-items: start; }
  .cabinet-hero > .button { display: none; }
  .subscription-status-panel { padding: 26px; }
  .status-panel-head { flex-direction: column; gap: 22px; }
  .status-actions { flex-direction: row; flex-wrap: wrap; width: 100%; max-width: none; min-width: 0; }
  .status-actions .button { width: auto; }
  .device-support-head { flex-direction: column; gap: 20px; }
  .admin-shell { grid-template-columns: minmax(0, 1fr); }
  .admin-sidebar { position: static; max-height: none; overflow: visible; display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 16px; gap: 16px; }
  .admin-brand { border-bottom: 0; padding: 0; }
  #admin-navigation { grid-column: 1 / -1; }
  .has-design-js #admin-navigation { display: none; }
  .has-design-js .admin-sidebar.menu-open #admin-navigation { display: block; }
  .admin-nav-group { display: flex; flex-wrap: wrap; gap: 6px; }
  .admin-nav-title { width: 100%; padding: 0; margin: 8px 0; }
  .admin-nav-link { background: #ffffff04; }
  .admin-topbar { flex-wrap: wrap; gap: 16px; }
  .admin-topbar-actions { display: flex; flex-direction: row; flex-wrap: wrap; width: auto; }
  .admin-dashboard-panels { grid-template-columns: 1fr; }
  .admin-action-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .wrap { width: calc(100% - 32px); }
  .topbar .brand { font-size: 17px; gap: 9px; }
  .brand .cosmos-mark { width: 30px; height: 30px; }
  .navigation-toggle { font-size: 12px; }
  .hero { padding-top: 38px; gap: 32px; }
  .hero h1 { font-size: clamp(43px, 11.6vw, 55px); }
  .hero .lead { font-size: 15px; line-height: 1.75; }
  .hero .actions { display: grid; grid-template-columns: 1fr; width: 100%; }
  .hero .actions .button { width: 100%; }
  .hero-facts { justify-content: space-between; gap: 8px; margin-top: 26px; font-size: 10px; }
  .hero-facts b { font-size: 11px; }
  .orbit-device { padding: 10px 12px; font-size: 11px; gap: 6px; border-radius: 11px; }
  .orbit-device > span { width: 22px; height: 26px; font-size: 24px; }
  .orbit-device small { font-size: 8px; }
  .orbit-label { font-size: 7px; }
  .orbit-laptop { right: 0; }
  .orbit-caption { font-size: 10px; }
  .card, .device-card { padding: 22px; }
  .device-grid { gap: 12px; }
  .device-card { padding: 18px; }
  .device-card p { font-size: 12px; }
  .trial-panel { padding: 24px; }
  .pricing-grid { grid-template-columns: 1fr; gap: 14px; }
  .price-card { min-height: 0; padding: 24px; }
  .plan-price strong { font-size: 40px; }
  .plan-note { min-height: 0; }
  .pricing-heading { margin-top: 44px; }
  .cabinet { padding-top: 28px; }
  .cabinet-hero h1 { font-size: 33px; }
  .cabinet-shortcuts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .cabinet-shortcuts a { padding: 11px 12px; font-size: 12px; }
  .subscription-status-panel, .device-support-panel, .dashboard-card { padding: 22px; border-radius: 17px; }
  .subscription-status-panel h2 { font-size: 30px; }
  .status-actions { display: grid; grid-template-columns: 1fr; }
  .status-actions .button { width: 100%; }
  .status-metrics { display: grid; grid-template-columns: 1fr; padding-top: 8px; margin-top: 24px; }
  .status-metric, .status-metric:first-child { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border: 0; border-bottom: 1px solid var(--line); }
  .status-metric:last-child { border-bottom: 0; padding-bottom: 0; }
  .status-metric strong { font-size: 22px; margin-top: 0; }
  .cabinet-auth-card { padding: 24px; }
  .cabinet-auth-card h2 { font-size: 26px; }
  .auth-switch label { font-size: 12px; }
  .admin { padding-top: 16px; }
  .admin-sidebar { gap: 12px; padding: 14px; }
  .admin-brand { font-size: 13px; }
  .admin-brand small { font-size: 9px; }
  .admin-brand .cosmos-mark { width: 25px; height: 25px; }
  .admin-navigation-toggle { gap: 6px; padding: 10px; font-size: 10px; }
  .admin-topbar h2 { font-size: 28px; }
  .admin-stat-card { padding: 16px; }
  .admin-stat-card > strong { font-size: 25px; }
  .admin-stat-card > span, .admin-stat-card > small { font-size: 10px; }
  .admin-metric-grid { gap: 10px; }
  .admin-action-grid { grid-template-columns: 1fr; }
  .admin-panel-head, .admin-panel-head.compact, .admin-panel-body { padding: 18px; }
  .admin-panel-head h2 { font-size: 22px; }
  .admin-command-links a { flex: 1 1 40%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Connected devices: clear capacity, readable identities, secondary technical details. */
#connected-devices { transition: none; }
.page > main:has(.renew-modal:target, .tariff-details:target, .checkout:target) { position: relative; z-index: 3; }
body:has(#connected-devices:target) { overflow: hidden; }
.devices-dialog { width: min(760px, 100%); padding: 32px; border-radius: 24px; border-color: #a0a9da30; background: #121b2c; box-shadow: 0 32px 100px #0006; }
.devices-dialog:focus { outline: none; }
.devices-dialog .renew-modal-close { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: #ffffff06; border: 1px solid var(--line); font-size: 25px; }
.devices-dialog .kicker { font-size: 10px; margin: 0 48px 18px 0; }
.devices-dialog h2 { margin: 0 36px 10px 0; font-size: 34px; line-height: 1.15; font-weight: 650; letter-spacing: -.04em; }
.devices-dialog .devices-description { font-size: 14px; line-height: 1.65; color: #9eacc6; max-width: 540px; margin: 0 0 24px; }
.devices-capacity { padding: 20px 22px; border: 1px solid #a8a5e332; border-radius: 16px; background: linear-gradient(105deg, #242e4b, #1a2439); margin-bottom: 26px; }
.devices-capacity-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.devices-caption { display: block; color: #929fba; font-size: 11px; font-weight: 500; letter-spacing: .025em; }
.devices-capacity strong { display: block; margin-top: 5px; font-size: 32px; line-height: 1.2; font-weight: 600; letter-spacing: -.04em; }
.devices-capacity strong small { font-size: 16px; color: #a2afc9; font-weight: 400; letter-spacing: 0; }
.devices-capacity-note { padding: 7px 11px; border-radius: 8px; background: #a4dfcd0d; border: 1px solid #a4dfcd20; color: #b0d8cd; font-size: 11px; }
.devices-capacity.full .devices-capacity-note { color: #d7d3ff; border-color: #c0baff25; background: #c0baff0b; }
.devices-capacity.exceeded .devices-capacity-note { color: #efd09d; border-color: #eac58833; background: #eac5880b; }
.devices-meter { height: 5px; overflow: hidden; border-radius: 6px; background: #ffffff0c; margin-top: 16px; }
.devices-meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #a1a6f1, #b9dddf); }
.devices-capacity.exceeded .devices-meter span { background: #d7b581; }
.devices-list-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 13px; }
.devices-list-heading h3 { font-size: 14px; font-weight: 500; letter-spacing: 0; margin: 0; }
.devices-list-heading > span { font-size: 10px; color: #8493b0; }
.devices-collection { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.device-tile:only-child { grid-column: 1 / -1; }
.device-tile { min-width: 0; padding: 20px 20px 0; border-radius: 16px; border: 1px solid #acbcdc26; background: #182235; }
.device-tile-top { display: flex; align-items: center; gap: 14px; }
.device-tile-icon { flex: 0 0 48px; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid #b4b4ff25; border-radius: 14px; color: #c2c2ff; background: #a2a1ed0f; }
.device-tile-icon.phone, .device-tile-icon.tablet { color: #b7e1d3; border-color: #b7e1d326; background: #b7e1d30b; }
.device-tile-icon svg { display: block; width: 27px; height: 27px; }
.device-tile-identity { min-width: 0; flex: 1; }
.device-tile-identity h3 { font-size: 17px; font-weight: 550; line-height: 1.35; margin: 5px 0 0; overflow-wrap: anywhere; letter-spacing: -.02em; }
.device-tile-number { color: #75849f; font-size: 11px; align-self: flex-start; padding-top: 3px; font-variant-numeric: tabular-nums; }
.device-tile-info { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 16px 0; color: #95a5c1; font-size: 11px; line-height: 1.5; }
.device-tile-info > span:first-child { color: #bbc6dc; }
.device-technical { border-top: 1px solid var(--line); }
.device-technical summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 0; min-height: 44px; font-size: 11px; color: #a6b3cf; cursor: pointer; list-style: none; }
.device-technical summary::-webkit-details-marker, .devices-reset summary::-webkit-details-marker { display: none; }
.device-technical summary > span { font-size: 18px; color: #bcb9f4; }
.device-technical[open] summary > span { transform: rotate(45deg); }
.device-technical dl { display: grid; gap: 10px; margin: 0 0 17px; padding: 14px; border-radius: 10px; background: #0a111f66; font-size: 11px; }
.device-technical dl > div { display: grid; grid-template-columns: 1fr; gap: 4px; }
.device-technical dt { color: #8394b2; }
.device-technical dd { color: #c5cee0; margin: 0; overflow-wrap: anywhere; }
.devices-dialog-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 24px; }
.devices-dialog-actions .button { font-size: 13px; gap: 12px; }
.devices-help { color: #a9b3ce; font-size: 11px; padding: 10px 0; min-height: 44px; display: inline-flex; align-items: center; }
.devices-help:hover { color: #d1ceff; text-decoration: underline; }
.devices-reset { margin-top: 20px; border-top: 1px solid var(--line); }
.devices-reset summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 14px 0 0; font-size: 12px; color: #8f9db9; cursor: pointer; list-style: none; }
.devices-reset[open] summary > span { transform: rotate(180deg); }
.devices-reset-body { padding-top: 14px; }
.devices-dialog .devices-reset-body p { max-width: 550px; color: #9aabc6; font-size: 12px; line-height: 1.7; margin: 0 0 14px; }
.devices-dialog .button-danger { background: #e9a0ad0a; border-color: #e9a0ad38; color: #ecb3bd; }
.devices-dialog .button-danger:hover { background: #e9a0ad18; border-color: #e9a0ad66; }
.devices-empty { text-align: center; padding: 24px 18px; border: 1px dashed var(--line-strong); border-radius: 16px; }
.devices-empty .device-tile-icon { margin: 0 auto 18px; }
.devices-empty h3 { font-size: 19px; font-weight: 500; line-height: 1.4; margin: 0 0 10px; }
.devices-dialog .devices-empty p { max-width: 430px; margin: 0 auto; color: #93a3bf; font-size: 13px; line-height: 1.7; }
.devices-dialog .devices-warning p { font-size: 12px; line-height: 1.65; margin-bottom: 0; }
@media (max-width: 560px) {
  #connected-devices { padding: 12px; backdrop-filter: blur(8px); }
  .devices-dialog { padding: 22px 18px; border-radius: 20px; max-height: 90vh; max-height: 90dvh; }
  .devices-dialog h2 { font-size: 28px; margin-right: 24px; }
  .devices-dialog .devices-description { font-size: 12px; margin-bottom: 20px; }
  .devices-dialog .renew-modal-close { top: 12px; right: 12px; width: 36px; height: 36px; }
  .devices-capacity { padding: 17px; margin-bottom: 22px; }
  .devices-capacity-note { font-size: 10px; padding: 6px 8px; max-width: 145px; }
  .devices-capacity strong { font-size: 28px; }
  .devices-capacity strong small { font-size: 13px; }
  .devices-list-heading { gap: 10px; }
  .devices-list-heading h3 { font-size: 12px; }
  .devices-list-heading > span { font-size: 9px; }
  .device-tile { padding: 16px 16px 0; }
  .devices-collection { grid-template-columns: 1fr; }
  .device-tile-top { gap: 11px; }
  .device-tile-icon { flex-basis: 42px; width: 42px; height: 42px; border-radius: 12px; }
  .device-tile-identity h3 { font-size: 15px; }
  .device-tile-info { display: grid; gap: 5px; }
  .device-technical dl > div { grid-template-columns: 1fr; gap: 4px; }
  .devices-dialog-actions { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .devices-dialog-actions .button { width: 100%; padding: 12px 14px; }
  .devices-help { justify-content: center; }
}

/* Subscription actions and purchase dialogs share one predictable layout. */
.cabinet-body .cabinet { padding-top: 28px; }
.cabinet-body .cabinet-hero { margin-bottom: 20px; }
.cabinet-body .cabinet-hero h1 { margin-top: 12px; font-size: clamp(30px, 3.4vw, 40px); }
.cabinet-body .cabinet-hero p { font-size: 13px; margin-top: 8px; }
.cabinet-shortcuts { margin-bottom: 20px; padding-bottom: 16px; }
.subscription-status-panel { padding: 28px; }
.status-actions { width: 280px; max-width: 100%; gap: 10px; }
.status-actions .renew-primary, .mobile-renew-dock .renew-primary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; padding: 15px 20px; background: linear-gradient(105deg, #d0cbff, #aca6f4); border-color: #d8d3ff; color: #191a30; font-size: 15px; font-weight: 700; box-shadow: 0 7px 30px #aaa0ff20; }
.status-actions .renew-primary:hover, .mobile-renew-dock .renew-primary:hover { background: #d8d2ff; box-shadow: 0 10px 34px #aaa0ff30; }
.renew-icon { display: grid; place-items: center; font-size: 25px; font-weight: 450; line-height: 1; }
.renew-action-note { display: block; text-align: center; color: #a6b0ca; font-size: 10px; margin: -2px 0 3px; }
.status-text-link { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 6px 10px; color: #aab7d1; font-size: 12px; }
.status-text-link:hover { color: #ddd8ff; text-decoration: underline; }
.status-metrics { margin-top: 22px; padding-top: 20px; }
.subscription-status-panel .cabinet-sync-state.synced { background: none; color: #a8cbbf; font-size: 10px; }
.mobile-renew-dock { display: none; }
.purchase-overlay { padding: 20px; transition: none; }
body:has(.purchase-overlay:target) { overflow: hidden; }
.purchase-modal { display: flex; flex-direction: column; width: min(780px, 100%); max-height: min(90vh, 850px); max-height: min(90dvh, 850px); padding: 0; overflow: hidden; border: 1px solid #a7b3d733; border-radius: 24px; background: #121b2c; box-shadow: 0 32px 100px #0006; }
.purchase-modal:focus { outline: none; }
.purchase-header { position: relative; flex: 0 0 auto; padding: 24px 28px 20px; border-bottom: 1px solid var(--line); background: #151f32; }
.purchase-header .kicker { margin: 0 42px 13px 0; font-size: 10px; }
.purchase-modal .purchase-header h2 { margin: 0 40px 8px 0; font-size: 30px; line-height: 1.13; font-weight: 600; letter-spacing: -.035em; }
.purchase-modal .purchase-header p { margin: 0; max-width: 570px; color: #a5b2ce; font-size: 13px; line-height: 1.5; }
.purchase-header .renew-modal-close { width: 38px; height: 38px; top: 18px; right: 18px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: #ffffff05; color: #c7d1e6; font-size: 25px; }
.purchase-modal .purchase-form { display: flex; flex-direction: column; min-height: 0; gap: 0; margin: 0; }
.purchase-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 22px 28px; scrollbar-width: thin; scrollbar-color: #4b5875 transparent; scroll-padding-block: 14px; }
.upgrade-current { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; margin-bottom: 22px; border: 1px solid var(--line); border-radius: 12px; background: #a7a3e809; font-size: 12px; color: #95a4c1; }
.upgrade-current strong { margin-left: 8px; font-size: 15px; color: #d9def2; font-weight: 600; white-space: nowrap; }
.upgrade-current a { display: inline-flex; align-items: center; gap: 8px; color: #c1bdf3; min-height: 28px; white-space: nowrap; }
.purchase-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 0; margin: 0; border: 0; min-width: 0; }
.purchase-options legend { width: 100%; padding: 0; margin-bottom: 12px; color: #9baac5; font-size: 11px; font-weight: 500; letter-spacing: .035em; }
.renewal-purchase-options { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.purchase-choice { position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 18px; border: 1px solid #a6b5d42b; border-radius: 14px; background: #162034; cursor: pointer; }
.purchase-choice:hover { border-color: #afa9f57a; background: #1c2740; }
.purchase-choice:has(input:checked) { border-color: #b7b0ff; box-shadow: inset 0 0 0 1px #b7b0ff; background: #292e4d; }
.purchase-choice:has(input:focus-visible) { outline: 3px solid #ddd8ff; outline-offset: 3px; }
.purchase-choice > input { position: absolute; width: 1px; height: 1px; opacity: 0; top: 14px; right: 14px; margin: 0; }
.purchase-check { position: absolute; right: 13px; top: 14px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; border: 1px solid #8998b966; font-size: 11px; color: transparent; }
.purchase-choice:has(input:checked) .purchase-check { border-color: #c5bfff; background: #c5bfff; color: #22213d; }
.purchase-option-title { padding-right: 20px; color: #dce2f4; font-size: 14px; line-height: 1.3; font-weight: 550; letter-spacing: -.015em; }
.purchase-option-price { font-size: 27px; font-weight: 600; line-height: 1; letter-spacing: -.035em; color: #f1efff; }
.purchase-option-price small { font-size: 16px; font-weight: 450; color: #a6afca; }
.purchase-option-detail { margin-top: auto; font-size: 10px; color: #a5b2cf; line-height: 1.5; }
.purchase-option-detail b { color: #d8dbef; font-weight: 500; }
.purchase-option-detail .old-price { font-size: 10px; margin-right: 3px; }
.purchase-bonus { color: #abd9c9; font-size: 10px; }
.purchase-modal .purchase-info { margin: 16px 0 20px; color: #8f9fbc; font-size: 11px; line-height: 1.7; }
.purchase-contact-fields { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; margin: 22px 0 18px; }
.purchase-contact-fields .field > span { font-size: 12px; }
.purchase-contact-fields small { color: #7f91ad; font-size: 10px; font-weight: 400; }
.purchase-contact-fields input { min-height: 44px; padding: 11px 13px; font-size: 13px; }
.purchase-modal .consent-field { display: flex; align-items: flex-start; gap: 9px; color: #91a2bf; font-size: 10px; line-height: 1.65; }
.purchase-modal .consent-field input { flex: 0 0 17px; width: 17px; height: 17px; margin: 1px 0 0; accent-color: #bab3ff; }
.purchase-modal .consent-field a { color: #b6b2e8; text-underline-offset: 2px; }
.purchase-footer { flex: 0 0 auto; padding: 18px 28px 22px; border-top: 1px solid #a3b1d12b; background: #182237; box-shadow: 0 -8px 28px #0001; }
.purchase-summary { display: none; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.has-design-js .purchase-summary { display: flex; }
.purchase-summary > div { min-width: 0; }
.purchase-summary span { color: #d9def0; font-size: 13px; font-weight: 500; }
.purchase-summary small { display: block; margin-top: 4px; color: #8fa0be; font-size: 10px; line-height: 1.5; }
.purchase-summary > strong { font-size: 29px; font-weight: 600; color: #ece9ff; letter-spacing: -.035em; white-space: nowrap; }
.purchase-footer .purchase-pay { width: 100%; display: flex; justify-content: center; align-items: center; gap: 22px; min-height: 48px; background: #c5bdff; border-color: #c5bdff; color: #1b1a32; font-size: 14px; }
.purchase-footer .purchase-pay:hover { background: #d2cbff; }
.purchase-payment-actions { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 10px; }
.purchase-payment-actions .purchase-balance { width: 100%; font-size: 12px; padding: 12px; }
.purchase-payment-actions .purchase-balance:disabled { color: #93a0b9; opacity: .7; }
@media (max-width: 800px) {
  .status-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; gap: 10px; }
  .status-actions .renew-primary { grid-column: 1 / -1; }
  .renew-action-note { grid-column: 1 / -1; margin: 0 0 4px; }
  .status-actions .button { width: 100%; }
}
@media (max-width: 600px) {
  .purchase-overlay { padding: 12px; backdrop-filter: blur(8px); }
  .purchase-modal { max-height: 94vh; max-height: 94dvh; border-radius: 20px; }
  .purchase-header { padding: 20px 20px 16px; }
  .purchase-header .kicker { font-size: 8px; margin-bottom: 12px; }
  .purchase-modal .purchase-header h2 { font-size: 26px; }
  .purchase-modal .purchase-header p { font-size: 11px; }
  .purchase-header .renew-modal-close { top: 12px; right: 12px; width: 34px; height: 34px; }
  .purchase-body { padding: 18px 20px; }
  .upgrade-current { padding: 10px 12px; margin-bottom: 18px; flex-wrap: wrap; font-size: 10px; gap: 5px 12px; }
  .upgrade-current strong { font-size: 14px; }
  .purchase-options { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .purchase-choice { padding: 15px 13px; gap: 11px; }
  .purchase-option-title { font-size: 13px; }
  .purchase-option-price { font-size: 25px; }
  .purchase-option-detail { font-size: 9px; }
  .purchase-check { right: 11px; top: 13px; width: 16px; height: 16px; }
  .purchase-contact-fields { grid-template-columns: 1fr; gap: 14px; margin: 20px 0 16px; }
  .purchase-footer { padding: 14px 20px 18px; }
  .purchase-summary { margin-bottom: 12px; }
  .purchase-summary > strong { font-size: 26px; }
  .purchase-summary span { font-size: 12px; }
  .purchase-summary small { font-size: 9px; }
  .purchase-payment-actions { grid-template-columns: 1fr; gap: 8px; }
  .purchase-payment-actions .purchase-balance { min-height: 38px; padding: 8px; font-size: 11px; }
  .cabinet-body:has(.mobile-renew-dock) .page { padding-bottom: 90px; }
  .mobile-renew-dock { position: fixed; z-index: 20; bottom: 0; left: 0; right: 0; display: block; padding: 10px 16px max(12px, env(safe-area-inset-bottom)); background: #0e1628f5; border-top: 1px solid var(--line); }
  .mobile-renew-dock .renew-primary { width: 100%; min-height: 48px; padding: 12px 20px; }
  body:has(.renew-modal:target, .checkout:target, .tariff-details:target) .mobile-renew-dock { display: none; }
}
@media (max-width: 380px) {
  .purchase-body { padding: 16px; }
  .purchase-header { padding: 18px 16px 14px; }
  .purchase-modal .purchase-header h2 { font-size: 24px; }
  .purchase-footer { padding: 12px 16px 14px; }
  .purchase-header .kicker { max-width: 210px; }
  .purchase-summary > strong { font-size: 24px; }
}
