@font-face{
  font-family:'Manrope';
  src:url('/v2-assets/assets/manrope.ttf') format('truetype');
  font-weight:200 800;
  font-display:swap;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:84px;-webkit-text-size-adjust:100%}
body{
  --bg:#f4f5ef;
  --bg-elevated:#fafbf7;
  --surface:#ffffff;
  --surface-2:#eaede4;
  --text:#162923;
  --muted:#54665d;
  --line:rgba(22,41,35,.11);
  --line-strong:rgba(22,41,35,.22);
  --input-border:rgba(22,41,35,.18);
  --primary:#1f4739;
  --primary-hover:#17382c;
  --on-primary:#f6fbec;
  --accent:#c7e68f;
  --accent-ink:#163327;
  --accent-soft:rgba(199,230,143,.28);
  --hero-card-bg:#162c24;
  --hero-card-surface:rgba(255,255,255,.06);
  --hero-card-line:rgba(204,233,156,.18);
  --hero-card-text:#eff4e9;
  --hero-card-muted:#9eb3a7;
  --success:#2f6f44;
  --success-bg:rgba(47,111,68,.12);
  --danger:#b84233;
  --danger-bg:rgba(184,66,51,.09);
  --shadow:0 10px 32px rgba(22,41,35,.06),0 1px 2px rgba(22,41,35,.04);
  --shadow-strong:0 22px 54px rgba(18,38,30,.14);
  --radius:18px;
  --radius-sm:12px;
  --font-sans:'Manrope',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  --font-mono:ui-monospace,'SFMono-Regular',Menlo,Consolas,monospace;
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-sans);
  font-size:15px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
html[data-theme=dark] body{
  --bg:#0c1513;
  --bg-elevated:#101c19;
  --surface:#13201d;
  --surface-2:#1a2b27;
  --text:#ecf1e6;
  --muted:#93a69c;
  --line:rgba(214,235,200,.12);
  --line-strong:rgba(214,235,200,.24);
  --input-border:rgba(214,235,200,.22);
  --primary:#cce99c;
  --primary-hover:#dcf2b6;
  --on-primary:#12261e;
  --accent:#cce99c;
  --accent-ink:#12261e;
  --accent-soft:rgba(204,233,156,.14);
  --hero-card-bg:#142620;
  --hero-card-surface:rgba(255,255,255,.05);
  --hero-card-line:rgba(204,233,156,.22);
  --hero-card-text:#ecf1e6;
  --hero-card-muted:#9eb3a7;
  --success:#8fd49e;
  --success-bg:rgba(143,212,158,.14);
  --danger:#ef7b6c;
  --danger-bg:rgba(239,123,108,.12);
  --shadow:0 12px 36px rgba(0,0,0,.35);
  --shadow-strong:0 24px 60px rgba(0,0,0,.52);
}

/* Smooth circular theme reveal without inline styles (CSP safe) */
@keyframes breshThemeReveal{
  from{clip-path:circle(0px at calc(100% - 64px) 32px)}
  to{clip-path:circle(155vmax at calc(100% - 64px) 32px)}
}
::view-transition-old(root),::view-transition-new(root){animation:none;mix-blend-mode:normal}
::view-transition-old(root){z-index:1}
::view-transition-new(root){z-index:2;animation:breshThemeReveal .48s cubic-bezier(.22,1,.36,1) both}

a{color:inherit;text-decoration:none}
button,input,textarea,select{font:inherit;color:inherit}
button,a,input,textarea{-webkit-tap-highlight-color:transparent}
button{border:0;background:transparent;cursor:pointer;padding:0}
button:disabled{opacity:.48;cursor:not-allowed}
button:disabled[aria-busy=true]{cursor:wait}
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{
  outline:2px solid var(--primary);
  outline-offset:3px;
}
img,svg{display:block}
[hidden]{display:none!important}
.icon-star{display:inline-block;vertical-align:-.12em;flex-shrink:0}
.stars-inline{display:inline-flex;align-items:center;gap:5px;font-weight:700;font-variant-numeric:tabular-nums}

.wrap{max-width:1160px;width:calc(100% - 40px);margin-inline:auto}

/* Frosted architectural sticky header */
.site-header{
  position:sticky;
  top:0;
  z-index:25;
  background:rgba(244,245,239,.84);
  backdrop-filter:blur(20px);
  -webkit-backdrop-filter:blur(20px);
  border-bottom:1px solid var(--line);
}
html[data-theme=dark] .site-header{
  background:rgba(12,21,19,.84);
}
.site-header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  height:70px;
}
.app-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  height:60px;
  margin-bottom:12px;
}
.brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-size:19px;
  font-weight:800;
  letter-spacing:-.03em;
  white-space:nowrap;
  user-select:none;
}
.brand img{width:28px;height:28px;border-radius:8px;pointer-events:none}
.brand-suffix{font-size:11px;font-weight:700;color:var(--muted);letter-spacing:.08em;text-transform:uppercase}
.app-header .brand-suffix{display:none}
.desktop-nav{display:flex;align-items:center;gap:28px;font-size:13.5px;font-weight:600;color:var(--muted)}
.desktop-nav a{padding:6px 2px;transition:color .16s}
.desktop-nav a:hover{color:var(--text)}
.desktop-nav a.nav-account-pill{
  padding:7px 14px;
  border-radius:999px;
  background:var(--surface);
  border:1px solid var(--line);
  color:var(--text);
  font-weight:700;
  transition:background-color .16s,border-color .16s;
}
.desktop-nav a.nav-account-pill:hover{background:var(--surface-2);border-color:var(--line-strong)}
.toolbar{display:flex;align-items:center;gap:8px}
.icon-button,.language-button,.mobile-pricing-pill{
  height:38px;
  min-width:38px;
  padding:0 12px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--surface);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
  font-weight:700;
  letter-spacing:.04em;
  touch-action:manipulation;
  transition:background-color .16s,border-color .16s;
}
.mobile-pricing-pill{display:none;letter-spacing:-.01em;font-size:12.5px}
.icon-button{font-size:16px;padding:0;width:38px;flex-shrink:0}
.icon-button svg{width:17px;height:17px}
.icon-button .icon-sun{display:none}
html[data-theme=dark] .icon-button .icon-sun{display:block}
html[data-theme=dark] .icon-button .icon-moon{display:none}
.icon-button:hover,.language-button:hover,.mobile-pricing-pill:hover{background:var(--surface-2);border-color:var(--line-strong)}

/* Buttons & interactive links */
.button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  min-height:48px;
  padding:12px 22px;
  border-radius:13px;
  font-size:14px;
  font-weight:700;
  letter-spacing:-.01em;
  border:1px solid transparent;
  transition:background-color .18s,border-color .18s,transform .18s,box-shadow .18s;
  touch-action:manipulation;
  user-select:none;
}
.button:hover:not(:disabled){transform:translateY(-1px);box-shadow:var(--shadow)}
.button.primary{background:var(--primary);color:var(--on-primary)}
.button.primary:hover:not(:disabled){background:var(--primary-hover)}
.button.secondary{background:var(--surface);border-color:var(--line-strong);color:var(--text)}
.button.secondary:hover:not(:disabled){background:var(--surface-2)}
.button.danger{background:var(--danger);color:#ffffff}
.button.full{width:100%}
.text-link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:36px;
  font-size:13.5px;
  font-weight:700;
  color:var(--primary);
}
.text-link:hover{text-decoration:underline;text-underline-offset:4px}
.danger-link{color:var(--danger)}
.status-panel.is-active .danger-link{color:#f5a397}
.fine-print{font-size:12px;color:var(--muted);line-height:1.55;margin:12px 0 0}
.section-notice{
  font-size:13px;
  color:var(--text);
  background:var(--accent-soft);
  border:1px solid var(--line);
  border-radius:12px;
  padding:11px 14px;
  margin-top:14px;
}

/* Flagship Landing Hero */
.landing main{padding-bottom:64px}
.hero{
  display:grid;
  grid-template-columns:1.08fr .92fr;
  gap:36px;
  align-items:center;
  padding:44px 0 42px;
}
.eyebrow,.section-label{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:11px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--muted);
}
.eyebrow i{
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--success);
  box-shadow:0 0 0 4px var(--success-bg);
}
.hero h1{
  font-size:clamp(31px,4.8vw,60px);
  line-height:1.06;
  letter-spacing:-.04em;
  font-weight:600;
  margin:14px 0 16px;
}
.hero h1 em{
  font-style:normal;
  color:var(--primary);
}
html[data-theme=dark] .hero h1 em{color:var(--accent)}
.hero-description{
  font-size:16.5px;
  line-height:1.65;
  color:var(--muted);
  max-width:480px;
  margin:0;
}
.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:24px;
}
.hero-facts{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  list-style:none;
  padding:0;
  margin:16px 0 0;
}
.hero-facts li{
  padding:5px 11px;
  border-radius:999px;
  background:var(--surface);
  border:1px solid var(--line);
  font-size:12px;
  font-weight:700;
  color:var(--muted);
  font-variant-numeric:tabular-nums;
}

/* Signature Dark-Pine Node Telemetry Card */
.hero-node{
  background:radial-gradient(120% 80% at 50% 0%,rgba(204,233,156,.08),transparent 62%),var(--hero-card-bg);
  color:var(--hero-card-text);
  border:1px solid var(--hero-card-line);
  border-radius:24px;
  padding:22px;
  box-shadow:var(--shadow-strong),inset 0 1px 0 rgba(204,233,156,.12);
}
.hero-node-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding-bottom:14px;
  border-bottom:1px solid var(--hero-card-line);
}
.hero-node-brand{
  font-family:var(--font-mono);
  font-size:12px;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--hero-card-muted);
}
.status-pill{
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:4px 10px;
  border-radius:999px;
  background:rgba(204,233,156,.12);
  border:1px solid rgba(204,233,156,.26);
  color:var(--accent);
  font-size:11.5px;
  font-weight:700;
}
@keyframes breshStatusRing{
  0%,100%{box-shadow:0 0 0 0 rgba(204,233,156,.4)}
  50%{box-shadow:0 0 0 6px transparent}
}
.status-pill::before{
  content:"";
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--accent);
  animation:breshStatusRing 2.2s ease-in-out infinite;
}
.status-pill.is-degraded{color:#f5c878;border-color:rgba(245,200,120,.32);background:rgba(245,200,120,.1)}
.status-pill.is-degraded::before{background:#f5c878;animation:none}
.status-pill.is-down{color:#ef7b6c;border-color:rgba(239,123,108,.34);background:rgba(239,123,108,.12)}
.status-pill.is-down::before{background:#ef7b6c;animation:none}

.route-stack{
  display:grid;
  gap:8px;
  margin:14px 0;
}
.route-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:11px 14px;
  border-radius:13px;
  background:var(--hero-card-surface);
  border:1px solid rgba(255,255,255,.07);
}
.route-name{font-size:13.5px;font-weight:600;color:var(--hero-card-text)}
.route-meta{font-family:var(--font-mono);font-size:11.5px;color:var(--hero-card-muted)}
.route-badge{
  font-family:var(--font-mono);
  font-size:11px;
  font-weight:600;
  color:var(--accent);
  white-space:nowrap;
}
.spec-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  padding-top:14px;
  border-top:1px solid var(--hero-card-line);
}
.spec-cell{
  padding:10px 12px;
  border-radius:12px;
  background:var(--hero-card-surface);
}
.spec-cell span{
  display:block;
  font-size:10.5px;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--hero-card-muted);
  margin-bottom:3px;
}
.spec-cell strong{
  font-size:13px;
  font-weight:700;
  color:var(--hero-card-text);
  font-variant-numeric:tabular-nums;
}

/* Editorial 3-column Principles Strip */
.principles{
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  padding:32px 0;
}
.principles-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
}
.principle-item{padding:6px 26px}
.principle-item:first-child{padding-left:0}
.principle-item:last-child{padding-right:0}
.principle-item+.principle-item{border-left:1px solid var(--line)}
.principle-num{
  font-family:var(--font-mono);
  font-size:11px;
  font-weight:700;
  color:var(--muted);
  letter-spacing:.08em;
  margin-bottom:8px;
  display:block;
}
.principle-item h3{font-size:17px;font-weight:700;letter-spacing:-.02em;margin:0 0 6px}
.principle-item p{font-size:13.5px;color:var(--muted);line-height:1.62;margin:0}

/* Setup & Pricing Bands */
.band{padding:48px 0;border-bottom:1px solid var(--line)}
.band:last-of-type{border-bottom:0}
.band h2{
  font-size:clamp(26px,3.2vw,38px);
  line-height:1.15;
  letter-spacing:-.03em;
  font-weight:600;
  margin:10px 0 22px;
}
.how-layout{
  display:grid;
  grid-template-columns:.88fr 1.12fr;
  gap:44px;
  align-items:start;
}
.how-intro p{font-size:15px;color:var(--muted);line-height:1.7;margin:0 0 22px;max-width:360px}

.grouped-list{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  list-style:none;
  margin:0;
  padding:0;
  box-shadow:var(--shadow);
}
.grouped-list li{
  display:grid;
  grid-template-columns:40px 1fr;
  gap:14px;
  align-items:start;
  padding:20px 22px;
  border-bottom:1px solid var(--line);
}
.grouped-list li:last-child{border-bottom:0}
.step-idx{
  width:34px;
  height:34px;
  border-radius:10px;
  background:var(--accent-soft);
  border:1px solid var(--line);
  display:grid;
  place-items:center;
  font-family:var(--font-mono);
  font-size:12px;
  font-weight:700;
  color:var(--text);
}
.grouped-list h3{font-size:16px;font-weight:700;letter-spacing:-.015em;margin:0 0 4px}
.grouped-list p{font-size:13.5px;color:var(--muted);line-height:1.6;margin:0}

.pricing-grid{display:grid;grid-template-columns:1.12fr .88fr;gap:18px;align-items:stretch}
.section-card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:22px;
  padding:26px;
  box-shadow:var(--shadow);
  display:flex;
  flex-direction:column;
}
.section-card.featured{
  background:radial-gradient(120% 80% at 50% 0%,rgba(204,233,156,.08),transparent 62%),var(--hero-card-bg);
  color:var(--hero-card-text);
  border-color:var(--hero-card-line);
  box-shadow:var(--shadow-strong),inset 0 1px 0 rgba(204,233,156,.12);
}
.section-card.featured .section-label,
.section-card.featured p{color:var(--hero-card-muted)}
.section-card h3{font-size:19px;font-weight:700;letter-spacing:-.02em;margin:10px 0 8px}

/* Multi-tier Tariff Switcher */
.tier-switcher{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:8px;
  margin:14px 0 14px;
}
.tier-option{position:relative;cursor:pointer}
.tier-option input{position:absolute;opacity:0;inset:0;margin:0}
.tier-pill{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  gap:2px;
  min-height:62px;
  padding:10px 11px;
  border-radius:13px;
  background:var(--hero-card-surface);
  border:1px solid var(--hero-card-line);
  transition:background-color .16s,border-color .16s,color .16s;
}
.tier-option input:focus-visible+.tier-pill{outline:2px solid var(--accent);outline-offset:2px}
.tier-option input:checked+.tier-pill{
  background:var(--accent);
  color:var(--accent-ink);
  border-color:var(--accent);
}
.tier-term{font-size:14px;font-weight:800;letter-spacing:-.01em}
.tier-meta{font-size:11.5px;opacity:.82;font-variant-numeric:tabular-nums}
.tier-badge{
  position:absolute;
  top:-8px;
  right:8px;
  padding:2px 6px;
  border-radius:999px;
  background:var(--accent-ink);
  color:var(--accent);
  border:1px solid var(--hero-card-line);
  font-size:10px;
  font-weight:800;
  font-variant-numeric:tabular-nums;
}
.tier-option input:checked+.tier-pill .tier-badge{
  background:var(--accent-ink);
  color:var(--accent);
  border-color:transparent;
}
.tier-summary{margin:4px 0 12px}
.price-big{
  font-size:38px;
  font-weight:700;
  letter-spacing:-.035em;
  font-variant-numeric:tabular-nums;
  margin:4px 0 6px;
  line-height:1.1;
}
.price-big .price-unit{font-size:15px;font-weight:500;opacity:.76;letter-spacing:0}
.tier-breakdown{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  font-size:13px;
  color:var(--hero-card-muted);
  font-variant-numeric:tabular-nums;
}
.section-card.featured .stars-inline{color:var(--accent)}

.billing-card .tier-pill{background:var(--bg);border-color:var(--input-border);color:var(--text)}
.billing-card .tier-option input:checked+.tier-pill{background:var(--primary);color:var(--on-primary);border-color:var(--primary)}
.billing-card .tier-badge{background:var(--accent-soft);color:var(--primary);border-color:var(--line)}
.billing-card .tier-option input:checked+.tier-pill .tier-badge{background:var(--accent);color:var(--accent-ink)}
.billing-card .tier-breakdown{color:var(--muted)}
.billing-card .stars-inline{color:var(--primary)}
html[data-theme=dark] .billing-card .stars-inline{color:var(--accent)}
.billing-card .price-big{font-size:32px;margin:2px 0 4px}

.section-card p{font-size:13.5px;color:var(--muted);line-height:1.65;margin:0 0 10px}
.section-card p:last-child{margin-bottom:0}
.savings-pill{
  display:inline-flex;
  align-items:center;
  padding:2px 9px;
  border-radius:999px;
  background:rgba(204,233,156,.15);
  border:1px solid rgba(204,233,156,.3);
  color:var(--accent);
  font-size:11.5px;
  font-weight:700;
  font-variant-numeric:tabular-nums;
}
.billing-card .savings-pill{
  background:var(--accent-soft);
  border-color:var(--line-strong);
  color:var(--primary);
}
html[data-theme=dark] .billing-card .savings-pill{color:var(--accent)}
.docs-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:10px;
  margin:18px 0 14px;
}
.docs-link{
  justify-content:space-between;
  min-height:58px;
  padding:10px 14px;
  font-size:13px;
  text-align:left;
}
.docs-link .icon-arrow{flex-shrink:0;opacity:.7;transition:transform .16s ease,opacity .16s ease}
.docs-link:hover .icon-arrow{transform:translate(2px,-2px);opacity:1}
.section-card .review-code-foot{margin-top:auto;padding-top:14px;border-top:1px solid var(--line)}
.band[id],section[id]{scroll-margin-top:84px}
.tariff-cta{margin-top:auto;padding-top:14px}
.section-card.featured .button.primary{background:var(--accent);color:var(--accent-ink)}

/* Supported Devices Strip */
.device-strip{
  padding:28px 0;
  border-bottom:1px solid var(--line);
}
.device-grid{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:10px;
  list-style:none;
  padding:0;
  margin:14px 0 0;
}
.device-badge{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 14px;
  border-radius:14px;
  background:var(--surface);
  border:1px solid var(--line);
  font-size:13px;
  font-weight:700;
  color:var(--text);
  box-shadow:var(--shadow);
}
.device-badge svg{flex-shrink:0;color:var(--primary)}
html[data-theme=dark] .device-badge svg{color:var(--accent)}

/* Landing FAQ Grid */
.landing-faq-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:14px;
  align-items:start;
}
.landing-faq-item{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
}
.landing-faq-item summary{
  list-style:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:18px 20px;
  font-size:15px;
  font-weight:700;
  cursor:pointer;
}
.landing-faq-item summary::-webkit-details-marker{display:none}
.faq-plus{
  position:relative;
  width:18px;
  height:18px;
  flex-shrink:0;
  color:var(--muted);
}
.faq-plus::before,.faq-plus::after{
  content:"";
  position:absolute;
  top:50%;
  left:50%;
  width:12px;
  height:1.8px;
  border-radius:2px;
  background:currentColor;
  transform:translate(-50%,-50%);
  transition:transform .2s ease,opacity .2s ease;
}
.faq-plus::after{transform:translate(-50%,-50%) rotate(90deg)}
.landing-faq-item[open] .faq-plus::after{transform:translate(-50%,-50%) rotate(0deg);opacity:0}
.landing-faq-item .faq-answer{padding:0 20px 18px;font-size:13.5px;color:var(--muted);line-height:1.62}

.site-footer{
  border-top:1px solid var(--line);
  padding:28px 0 42px;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:16px 24px;
  font-size:12.5px;
  color:var(--muted);
}
.footer-links{display:flex;flex-wrap:wrap;gap:12px 22px}
.footer-links a:hover{color:var(--text)}

/* Mini App / Cabinet Shell */
.miniapp{min-height:100dvh}
.app-shell{max-width:600px;margin:0 auto;padding:8px 18px 28px}
.loading-state,.entry-state{text-align:center;padding:18px 4px 28px}
.loading-state{padding:44px 8px}
.entry-state h1{font-size:26px;line-height:1.15;letter-spacing:-.03em;font-weight:700;margin:6px 0 8px}
.entry-state>p{color:var(--muted);font-size:14px;max-width:400px;margin:0 auto 18px;line-height:1.58}
.entry-documents{display:flex;justify-content:center;flex-wrap:wrap;gap:16px;margin-top:20px;font-size:13px;color:var(--muted)}
.entry-documents a:hover{color:var(--text)}

.spinner{
  display:inline-block;
  width:24px;
  height:24px;
  border:2px solid var(--line);
  border-top-color:var(--primary);
  border-radius:50%;
  animation:spin .8s linear infinite;
}
@keyframes spin{to{transform:rotate(360deg)}}

.screen-heading{margin-bottom:16px}
.screen-heading h1{font-size:27px;font-weight:700;letter-spacing:-.03em;margin:6px 0 4px}
.screen-heading p{font-size:14px;color:var(--muted);margin:0}

.status-panel{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:22px;
  padding:20px;
  margin-bottom:14px;
  box-shadow:var(--shadow);
}
.status-panel.is-active{
  background:radial-gradient(120% 80% at 50% 0%,rgba(204,233,156,.08),transparent 62%),var(--hero-card-bg);
  color:var(--hero-card-text);
  border-color:var(--hero-card-line);
  box-shadow:var(--shadow-strong),inset 0 1px 0 rgba(204,233,156,.12);
}
.status-panel.is-active p,.status-panel.is-active .panel-meta,.status-panel.is-active .progress-meta{
  color:var(--hero-card-muted);
}
.status-panel.is-active .panel-meta{border-top-color:var(--hero-card-line)}
.status-panel.is-active .panel-meta strong,.status-panel.is-active .progress-meta strong{
  color:var(--hero-card-text);
}
.status-panel.is-active .button.primary{background:var(--accent);color:var(--accent-ink)}
.status-panel.is-active .button.secondary{
  background:var(--hero-card-surface);
  border-color:var(--hero-card-line);
  color:var(--hero-card-text);
}
.status-panel.is-active .button.secondary:hover{background:rgba(255,255,255,.11)}
.status-panel.is-active .subscription-url{
  background:rgba(0,0,0,.22);
  border-color:var(--hero-card-line);
  color:var(--hero-card-text);
}

.status-panel-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}
.status-tag{
  display:inline-flex;
  align-items:center;
  gap:7px;
  font-size:10.5px;
  font-weight:800;
  letter-spacing:.09em;
  text-transform:uppercase;
  color:var(--muted);
}
.status-tag i{width:7px;height:7px;border-radius:50%;background:var(--muted)}
.status-tag.is-active{color:var(--accent)}
.status-tag.is-active i{background:var(--accent)}

.conn-pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 10px;
  border-radius:999px;
  font-size:11.5px;
  font-weight:700;
  border:1px solid var(--hero-card-line);
}
.conn-pill i{width:6px;height:6px;border-radius:50%;background:currentColor}
.conn-pill.is-online,.conn-pill.is-traffic{background:rgba(199,230,143,.14);color:var(--accent)}
.conn-pill.is-waiting{background:rgba(255,255,255,.06);color:var(--hero-card-muted)}

.status-panel h2{font-size:23px;font-weight:700;letter-spacing:-.025em;margin:10px 0 6px}
.status-panel p{font-size:14px;color:var(--muted);margin:0 0 12px;line-height:1.6}

.progress-group{margin:12px 0 6px;display:grid;gap:10px}
.progress-item{display:grid;gap:5px}
.progress-meta{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  gap:12px;
  font-size:12px;
  color:var(--muted);
  font-variant-numeric:tabular-nums;
}
.days-progress,.traffic-progress{
  width:100%;
  height:7px;
  border:0;
  border-radius:999px;
  background:rgba(255,255,255,.12);
  overflow:hidden;
  appearance:none;
}
.days-progress::-webkit-progress-bar,.traffic-progress::-webkit-progress-bar{
  background:rgba(255,255,255,.12);
  border-radius:999px;
}
.days-progress::-webkit-progress-value{background:var(--accent);border-radius:999px}
.days-progress::-moz-progress-bar{background:var(--accent);border-radius:999px}
.traffic-progress::-webkit-progress-value{background:#8fd49e;border-radius:999px}
.traffic-progress::-moz-progress-bar{background:#8fd49e;border-radius:999px}

.panel-meta{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding-top:12px;
  margin-top:12px;
  border-top:1px solid var(--line);
  font-size:13px;
  color:var(--muted);
}
.panel-meta strong{color:var(--text);font-weight:700;font-variant-numeric:tabular-nums}
.status-panel .button-row{margin-top:12px}

.sub-utility-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:10px;
  flex-wrap:wrap;
}
.sub-utility-row .fine-print{margin:0;color:var(--hero-card-muted)}
.rotate-confirm{
  margin-top:12px;
  padding:14px;
  border-radius:14px;
  background:var(--danger-bg);
  border:1px solid rgba(239,123,108,.4);
}
.rotate-confirm p{margin:0 0 10px;font-size:13px;color:var(--hero-card-text);line-height:1.55}

.notice-banner{
  background:var(--accent-soft);
  border:1px solid var(--line-strong);
  border-radius:14px;
  padding:13px 15px;
  font-size:13.5px;
  line-height:1.55;
  margin:10px 0 14px;
}

.app-back-link{
  display:none;
  align-items:center;
  gap:6px;
  font-size:13px;
  font-weight:700;
  color:var(--muted);
  padding:6px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background:var(--surface);
  transition:background-color .16s,border-color .16s,color .16s;
}
.app-back-link:hover{background:var(--surface-2);border-color:var(--line-strong);color:var(--text)}
.section-heading{display:flex;justify-content:space-between;align-items:center;margin:22px 0 10px}
.app-card>.section-heading:first-child{margin-top:0}
.section-heading h2{font-size:18px;font-weight:700;letter-spacing:-.02em;margin:0}
.section-heading button{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:700;color:var(--primary);padding:4px 8px}
.btn-icon{flex-shrink:0}
.button .icon-check{display:none}
.button.is-copied .icon-copy{display:none}
.button.is-copied .icon-check{display:block}
.button.is-copied{border-color:var(--success);color:var(--success)}
.status-panel.is-active .button.secondary.is-copied{border-color:var(--accent);color:var(--accent)}
.entry-aside{display:none}
.entry-card-col>h1,.entry-card-col>p,.recovery-save{max-width:560px;margin-inline:auto}

.app-card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:18px;
  margin-bottom:14px;
  box-shadow:var(--shadow);
}
.app-card h2{font-size:18px;font-weight:700;letter-spacing:-.02em;margin:0 0 8px}
.app-card h3{font-size:15.5px;font-weight:700;letter-spacing:-.01em;margin:0 0 6px}
.app-card p{font-size:13.5px;color:var(--muted);line-height:1.6;margin:0 0 12px}
.app-card p:last-child{margin-bottom:0}

.subscription-url{
  display:block;
  width:100%;
  border:1px solid var(--line);
  background:var(--bg);
  color:var(--text);
  border-radius:var(--radius-sm);
  padding:11px 13px;
  font-size:12px;
  font-family:var(--font-mono);
  margin:12px 0 0;
  text-overflow:ellipsis;
}
.qr-wrap{margin-top:14px;text-align:center}
.qr-box{
  display:inline-flex;
  padding:12px;
  background:#ffffff;
  border:1px solid var(--line);
  border-radius:16px;
}

.button-row,.download-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:12px}
.button-row .button,.download-actions .button{font-size:13px;min-height:44px;padding:10px 15px;flex:1 1 auto}

/* Factual Node Health Card */
.node-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.node-title{font-size:15.5px;font-weight:700}
.node-proto{font-family:var(--font-mono);font-size:11.5px;color:var(--muted);margin-top:2px}
.node-live-pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 10px;
  border-radius:999px;
  background:var(--success-bg);
  color:var(--success);
  font-size:11.5px;
  font-weight:700;
  white-space:nowrap;
}
.node-live-pill i{width:6px;height:6px;border-radius:50%;background:currentColor}
.node-live-pill.is-degraded{color:#b7791f;background:rgba(183,121,31,.13)}
.node-live-pill.is-down{color:var(--danger);background:var(--danger-bg)}
.node-routes{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-top:12px;
  padding-top:12px;
  border-top:1px solid var(--line);
}
.node-route-chip{
  padding:5px 10px;
  border-radius:8px;
  background:var(--bg);
  border:1px solid var(--line);
  font-family:var(--font-mono);
  font-size:11.5px;
  color:var(--muted);
}

/* Floating 4-tab Cabinet Dock */
.app-nav{
  position:fixed;
  z-index:18;
  bottom:max(14px,env(safe-area-inset-bottom));
  left:50%;
  transform:translateX(-50%);
  width:min(550px,calc(100% - 24px));
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:5px;
  padding:6px;
  border:1px solid var(--line);
  border-radius:20px;
  background:rgba(255,255,255,.88);
  backdrop-filter:blur(22px);
  -webkit-backdrop-filter:blur(22px);
  box-shadow:0 12px 36px rgba(22,41,35,.14);
}
html[data-theme=dark] .app-nav{
  background:rgba(19,32,29,.88);
  box-shadow:0 12px 38px rgba(0,0,0,.55);
}
.app-nav button{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:3px;
  min-height:52px;
  padding:6px 4px;
  border-radius:14px;
  color:var(--muted);
  font-size:11px;
  font-weight:700;
  touch-action:manipulation;
  transition:background-color .16s,color .16s;
}
.app-nav svg{width:20px;height:20px}
.app-nav button.selected{background:var(--primary);color:var(--on-primary)}

.app-footer{
  display:flex;
  justify-content:center;
  gap:10px 16px;
  flex-wrap:wrap;
  font-size:12px;
  color:var(--muted);
  padding:10px 0 36px;
}
body:has(.app-nav:not([hidden])) .app-footer{
  padding-bottom:calc(112px + env(safe-area-inset-bottom));
}

/* Forms, Linking, Promo & Referrals */
.field-label,.client-picker legend{display:block;font-size:12.5px;font-weight:700;color:var(--muted);margin:12px 0 6px}
.glass-select{
  width:100%;
  min-height:44px;
  padding:10px 13px;
  border-radius:var(--radius-sm);
  background:var(--bg);
  border:1px solid var(--input-border);
  color:var(--text);
  font-size:14.5px;
}
.glass-select option{background:var(--surface);color:var(--text)}
.access-code{font-family:var(--font-mono);font-size:13.5px}

.client-picker{border:0;padding:0;margin:14px 0;display:flex;gap:8px}
.client-picker legend{padding:0;margin-bottom:8px}
.client-picker label{position:relative;flex:1;cursor:pointer}
.client-picker input{position:absolute;opacity:0}
.client-picker label>span{
  min-height:44px;
  display:grid;
  place-items:center;
  border:1px solid var(--line);
  border-radius:var(--radius-sm);
  background:var(--surface);
  font-size:14px;
  font-weight:700;
  transition:background-color .16s,border-color .16s,color .16s;
}
.client-picker input:checked+span{border-color:var(--primary);background:var(--primary);color:var(--on-primary)}

.install-steps{list-style:none;padding:0;margin:0}
.install-steps>li{display:flex;gap:14px;align-items:flex-start}
.install-steps>li>div{min-width:0;flex:1}
.step-number{
  display:grid;
  place-items:center;
  flex-shrink:0;
  width:32px;
  height:32px;
  border-radius:10px;
  background:var(--accent-soft);
  border:1px solid var(--line);
  font-family:var(--font-mono);
  font-size:12px;
  font-weight:700;
}
.install-steps>li[data-step-state=done] .step-number{
  background:var(--primary);
  color:var(--on-primary);
  border-color:transparent;
}
.install-steps>li[data-step-state=current]{border-color:var(--primary)}

.profile-identity{display:flex;gap:14px;align-items:center}
.profile-avatar{
  display:grid;
  place-items:center;
  width:46px;
  height:46px;
  flex-shrink:0;
  border-radius:14px;
  background:var(--accent-soft);
  color:var(--primary);
}
html[data-theme=dark] .profile-avatar{color:var(--accent)}
.profile-avatar svg{width:22px;height:22px}
.profile-identity strong{font-size:15.5px;font-weight:700;display:block}
.identity-badge{
  margin-left:auto;
  font-size:11px;
  font-weight:700;
  border:1px solid var(--line);
  background:var(--bg);
  padding:4px 10px;
  border-radius:999px;
  color:var(--muted);
}
.account-facts{margin:0 0 14px}
.account-facts>div{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  gap:16px;
  padding:11px 0;
  border-bottom:1px solid var(--line);
}
.account-facts>div:first-child{padding-top:0}
.account-facts>div:last-child{border-bottom:0}
.account-facts dt{font-size:13.5px;color:var(--muted)}
.account-facts dd{margin:0;text-align:right;font-size:14px;font-weight:700;overflow-wrap:anywhere}

/* 1-click Telegram Link Flow */
.tg-link-flow{display:grid;gap:11px;margin-top:12px}
.link-status-row{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 13px;
  border-radius:12px;
  background:var(--bg);
  border:1px solid var(--line);
  font-size:13px;
  color:var(--muted);
}
.link-status-row .text-link{
  margin-left:auto;
  min-height:32px;
  padding:5px 12px;
  border:1px solid var(--line-strong);
  border-radius:999px;
  background:var(--surface);
  color:var(--text);
  font-size:12px;
  flex-shrink:0;
  text-decoration:none;
}
.link-status-row .text-link:hover{background:var(--surface-2);text-decoration:none}
.pulse-dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--success);
  flex-shrink:0;
  animation:breshPulse 1.8s ease-in-out infinite;
}
@keyframes breshPulse{
  0%,100%{box-shadow:0 0 0 0 var(--success-bg)}
  50%{box-shadow:0 0 0 5px transparent}
}
.link-fallback summary{font-size:12.5px;font-weight:700;color:var(--muted);cursor:pointer;padding:4px 0}
.tg-link-flow.is-claimed{
  padding:14px;
  border-radius:14px;
  background:var(--accent-soft);
  border:1px solid var(--line-strong);
}
.link-confirm-label{margin:0;font-size:14px;color:var(--text)}

/* Referral Card & Promo Disclosure */
.referral-stats{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:10px 0 4px}
.referral-stat{
  padding:11px 13px;
  border-radius:12px;
  background:var(--bg);
  border:1px solid var(--line);
}
.referral-stat span{
  display:block;
  font-size:11px;
  font-weight:700;
  letter-spacing:.05em;
  text-transform:uppercase;
  color:var(--muted);
}
.referral-stat strong{font-size:19px;font-weight:800;font-variant-numeric:tabular-nums;color:var(--text)}

.promo-disclosure{margin:14px 0 4px;border-top:1px solid var(--line);padding-top:10px}
.promo-disclosure summary{font-size:13.5px;font-weight:700;color:var(--primary);cursor:pointer;list-style:none}
.promo-disclosure summary::-webkit-details-marker{display:none}
html[data-theme=dark] .promo-disclosure summary{color:var(--accent)}
.promo-form{margin-top:10px}
.promo-input{text-transform:uppercase;letter-spacing:.04em}
.promo-feedback.is-error{color:var(--danger);font-weight:600}
.promo-feedback.is-success{color:var(--success);font-weight:700}

.settings-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:12px 0;
  border-bottom:1px solid var(--line);
  font-size:14px;
  font-weight:600;
}
.settings-row:last-child{border-bottom:0}
.settings-row input[type="checkbox"]{
  position:relative;
  appearance:none;
  -webkit-appearance:none;
  width:44px;
  height:26px;
  border-radius:999px;
  background:var(--surface-2);
  border:1px solid var(--input-border);
  cursor:pointer;
  flex-shrink:0;
  transition:background-color .18s,border-color .18s;
}
.settings-row input[type="checkbox"]::after{
  content:"";
  position:absolute;
  top:2px;
  left:2px;
  width:20px;
  height:20px;
  border-radius:50%;
  background:var(--surface);
  box-shadow:0 1px 3px rgba(0,0,0,.22);
  transition:transform .18s ease,background-color .18s ease;
}
.settings-row input[type="checkbox"]:checked{
  background:var(--primary);
  border-color:var(--primary);
}
.settings-row input[type="checkbox"]:checked::after{
  transform:translateX(18px);
  background:var(--on-primary);
}
html[data-theme=dark] .settings-row input[type="checkbox"]{
  background:rgba(255,255,255,.1);
  border-color:rgba(214,235,200,.28);
}
html[data-theme=dark] .settings-row input[type="checkbox"]::after{
  background:#d2dfd6;
}
html[data-theme=dark] .settings-row input[type="checkbox"]:checked{
  background:var(--primary);
  border-color:var(--primary);
}
html[data-theme=dark] .settings-row input[type="checkbox"]:checked::after{
  background:var(--on-primary);
}

.info-tabs{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:5px;
  padding:5px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--surface);
  margin-bottom:16px;
}
.info-tabs button{
  min-height:38px;
  border-radius:10px;
  font-size:13px;
  font-weight:700;
  color:var(--muted);
}
.info-tabs button.selected{background:var(--primary);color:var(--on-primary)}

.faq-list{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow);
}
.faq-list details{border-bottom:1px solid var(--line)}
.faq-list details:last-child{border-bottom:0}
.faq-list summary{
  list-style:none;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:15px 18px;
  font-size:14.5px;
  font-weight:700;
  cursor:pointer;
}
.faq-list summary::-webkit-details-marker{display:none}
.faq-answer{padding:0 18px 16px;font-size:14px;color:var(--muted);line-height:1.6}

.support-form label{display:block;font-size:13px;font-weight:700;color:var(--muted);margin:0 0 6px}
.support-form textarea{
  width:100%;
  min-height:136px;
  border:1px solid var(--input-border);
  border-radius:var(--radius-sm);
  padding:12px;
  background:var(--bg);
  resize:vertical;
  font-size:14.5px;
}
.support-form .button{margin-top:12px}
.support-form .fine-print{margin-top:14px}
.support-success{font-size:14px;padding:6px 0}
.support-history{padding:12px 0;border-bottom:1px solid var(--line)}
.support-history:last-child{border-bottom:0}
.support-history h3{font-size:13px;color:var(--muted);margin:0 0 6px}
.support-history blockquote{margin:8px 0 0;padding:9px 13px;border-left:3px solid var(--primary);background:var(--bg);border-radius:6px}

.web-login{text-align:left;margin-top:14px}
.web-login h2{font-size:19px;font-weight:700;margin:0 0 10px}
.web-login .button{margin-top:12px}

/* Polished disclosure cards replacing raw triangles */
.session-actions{
  margin-top:12px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius-sm);
  padding:0 16px;
  text-align:left;
}
.app-card>.session-actions{background:var(--bg)}
.session-actions summary{
  list-style:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  cursor:pointer;
  font-size:14px;
  font-weight:700;
  padding:13px 0;
}
.session-actions summary::-webkit-details-marker{display:none}
.session-actions summary::after{content:"+";font-family:var(--font-mono);font-size:16px;color:var(--muted)}
.session-actions[open] summary::after{content:"−"}
.session-actions[open]{padding-bottom:16px}
.session-actions>.web-login.app-card{margin-top:4px;border:0;box-shadow:none;padding:4px 0 0;background:transparent}
.session-actions>p{font-size:13.5px;color:var(--muted);margin:0 0 10px}

.recovery-key-row{display:flex;gap:8px;align-items:center}
.recovery-key-row .glass-select{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.recovery-copy{flex-shrink:0}
.billing-price{font-size:28px!important;font-weight:700;color:var(--text)!important;font-variant-numeric:tabular-nums;margin:4px 0 10px}
.billing-price span{font-size:14px;font-weight:600;color:var(--muted)}
.payment-history{padding:0;margin:14px 0 0;list-style:none}
.payment-history li{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--line);font-size:13px}
.payment-history li:last-child{border-bottom:0}
.payment-history li>span:last-child{text-align:right}
.payment-history small{display:block;color:var(--muted);font-size:12px}

.check-row{display:flex;gap:10px;align-items:flex-start;margin:14px 0;font-size:13.5px;cursor:pointer}
.check-row input{width:18px;height:18px;flex-shrink:0;margin-top:2px;accent-color:var(--primary)}
.check-row a{color:var(--primary);text-decoration:underline;text-underline-offset:3px}
.error-text{font-size:13px;color:var(--danger)!important;margin:10px 0 0;overflow-wrap:anywhere;font-weight:600}
.inline-error{border:1px solid var(--danger);background:var(--danger-bg);border-radius:var(--radius-sm);padding:12px 14px;font-size:13px;margin-bottom:14px}
.inline-error button{color:var(--primary);text-decoration:underline;margin-left:6px;font-weight:700}
.account-actions{padding:8px 0}
.account-actions .text-link{
  display:inline-flex;
  align-items:center;
  padding:9px 15px;
  border:1px solid var(--line-strong);
  border-radius:12px;
  background:var(--surface);
  color:var(--muted);
  font-size:13px;
}
.account-actions .text-link:hover{border-color:var(--danger);color:var(--danger);text-decoration:none}

.toast{
  position:fixed;
  z-index:45;
  bottom:90px;
  left:50%;
  transform:translateX(-50%);
  background:var(--hero-card-bg);
  color:var(--hero-card-text);
  border:1px solid var(--hero-card-line);
  border-radius:12px;
  padding:11px 18px;
  font-size:13px;
  font-weight:700;
  max-width:calc(100% - 32px);
  text-align:center;
  box-shadow:var(--shadow-strong);
}

dialog{
  width:min(430px,calc(100% - 24px));
  border:1px solid var(--line);
  border-radius:20px;
  background:var(--surface);
  color:var(--text);
  padding:24px;
  box-shadow:var(--shadow-strong);
}
dialog::backdrop{background:rgba(12,21,19,.56);backdrop-filter:blur(6px)}
.dialog-close{position:absolute;right:14px;top:14px;width:34px;height:34px;min-width:34px;border-radius:50%}
.consent-form h2{font-size:22px;font-weight:700;margin:10px 0 8px}
.consent-form>p{font-size:14px;color:var(--muted);margin:0 0 12px}

@media(hover:hover){
  .route-row{transition:transform .16s ease,background-color .16s ease,border-color .16s ease}
  .route-row:hover{transform:translateY(-1px);background:rgba(255,255,255,.09);border-color:rgba(204,233,156,.22)}
  .tier-pill{transition:transform .16s ease,background-color .16s,border-color .16s,color .16s}
  .tier-option input:not(:checked)+.tier-pill:hover{transform:translateY(-1px);border-color:rgba(204,233,156,.38)}
  .billing-card .tier-option input:not(:checked)+.tier-pill:hover{border-color:var(--primary)}
}

/* Adaptive Cabinet & Desktop Layouts */
@media(min-width:900px){
  body.miniapp.is-entry:not(.is-tg-miniapp) .app-shell{max-width:980px;padding:16px 28px 40px}
  body.miniapp.is-entry:not(.is-tg-miniapp) .app-header .brand-suffix{display:inline}
  body.miniapp.is-entry:not(.is-tg-miniapp) .entry-split{
    display:grid;
    grid-template-columns:0.95fr 1.05fr;
    gap:28px;
    align-items:start;
    text-align:left;
  }
  body.miniapp.is-entry:not(.is-tg-miniapp) .entry-card-col>h1,
  body.miniapp.is-entry:not(.is-tg-miniapp) .entry-card-col>p{margin-inline:0}
  body.miniapp.is-entry:not(.is-tg-miniapp) .entry-aside{
    display:flex;
    flex-direction:column;
    gap:14px;
    background:radial-gradient(120% 80% at 50% 0%,rgba(204,233,156,.08),transparent 62%),var(--hero-card-bg);
    color:var(--hero-card-text);
    border:1px solid var(--hero-card-line);
    border-radius:24px;
    padding:26px;
    box-shadow:var(--shadow-strong),inset 0 1px 0 rgba(204,233,156,.12);
  }
  .entry-aside h2{font-size:22px;font-weight:700;letter-spacing:-.025em;margin:0}
  .entry-aside p{font-size:14px;color:var(--hero-card-muted);line-height:1.6;margin:0}
  .entry-aside-list{
    list-style:none;
    padding:0;
    margin:4px 0;
    display:grid;
    gap:10px;
  }
  .entry-aside-list li{
    display:flex;
    align-items:flex-start;
    gap:10px;
    font-size:13.5px;
    color:var(--hero-card-text);
    line-height:1.5;
  }
  .entry-aside-list li::before{
    content:"";
    width:7px;
    height:7px;
    margin-top:7px;
    border-radius:50%;
    background:var(--accent);
    flex-shrink:0;
  }
  .entry-aside-cta{margin-top:6px;padding-top:14px;border-top:1px solid var(--hero-card-line)}
  .entry-aside-cta .button.secondary{
    background:var(--hero-card-surface);
    border-color:var(--hero-card-line);
    color:var(--hero-card-text);
  }
  .entry-aside-cta .button.secondary:hover{background:rgba(255,255,255,.11)}
}

@media(min-width:960px){
  body:not(.is-tg-miniapp) .app-back-link{display:inline-flex}
  body:not(.is-tg-miniapp) .cabinet-grid{
    display:grid;
    grid-template-columns:minmax(0,1.18fr) minmax(0,.82fr);
    gap:20px;
    align-items:start;
  }
  body:not(.is-tg-miniapp) .cabinet-col-main,
  body:not(.is-tg-miniapp) .cabinet-col-side{min-width:0}
  body:not(.is-tg-miniapp) .cabinet-col-side .billing-card .tier-switcher{
    grid-template-columns:repeat(2,1fr);
    gap:10px;
  }
  body:not(.is-tg-miniapp) .cabinet-col-side .billing-card .tier-meta{white-space:nowrap}
  body:not(.is-tg-miniapp) .cabinet-grid.is-sub-grid .cabinet-col-side{
    position:sticky;
    top:20px;
  }
  body:not(.is-tg-miniapp) .cabinet-col-main>:first-child,
  body:not(.is-tg-miniapp) .cabinet-col-side>:first-child{margin-top:0}
  body:not(.is-tg-miniapp) .cabinet-reading{max-width:780px}
  body:not(.is-tg-miniapp) .toast{
    bottom:24px;
    right:24px;
    left:auto;
    transform:none;
    max-width:380px;
    text-align:left;
  }

  body.miniapp.is-authenticated:not(.is-tg-miniapp) .app-shell{
    max-width:1180px;
    display:grid;
    grid-template-columns:236px minmax(0,1fr);
    grid-template-rows:auto 1fr;
    gap:22px 28px;
    align-items:start;
    padding:16px 28px 40px;
  }
  body.miniapp.is-authenticated:not(.is-tg-miniapp) .app-header{
    grid-column:1 / -1;
    grid-row:1;
    margin-bottom:0;
    padding-bottom:14px;
    border-bottom:1px solid var(--line);
  }
  body.miniapp.is-authenticated:not(.is-tg-miniapp) .app-header .brand-suffix{display:inline}
  body.miniapp.is-authenticated:not(.is-tg-miniapp) .app-nav{
    position:sticky;
    top:20px;
    left:auto;
    bottom:auto;
    transform:none;
    width:auto;
    grid-column:1;
    grid-row:2;
    grid-template-columns:1fr;
    gap:6px;
    padding:10px;
    border-radius:20px;
    box-shadow:var(--shadow);
  }
  body.miniapp.is-authenticated:not(.is-tg-miniapp) .app-nav button{
    flex-direction:row;
    justify-content:flex-start;
    gap:11px;
    min-height:46px;
    padding:10px 14px;
    font-size:13.5px;
    text-align:left;
  }
  body.miniapp.is-authenticated:not(.is-tg-miniapp) #app-main{
    grid-column:2;
    grid-row:2;
    min-width:0;
  }
  body.miniapp.is-authenticated:not(.is-tg-miniapp) .app-footer,
  body.miniapp.is-authenticated:not(.is-tg-miniapp):has(.app-nav:not([hidden])) .app-footer{
    max-width:1180px;
    margin:0 auto;
    padding:18px 28px 36px;
    border-top:1px solid var(--line);
  }
}

@media(max-width:1120px){
  .device-grid{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:959px) and (min-width:768px){
  .desktop-nav{gap:16px;font-size:13px}
  .device-grid{grid-template-columns:repeat(3,1fr)}
  .app-shell{max-width:720px;padding:12px 24px 32px}
  .app-nav{width:min(600px,calc(100% - 32px))}
  .status-panel,.app-card{padding:22px}
}
@media(max-width:920px){
  .hero{grid-template-columns:1fr;gap:24px;padding:28px 0 30px}
  .principles{padding:26px 0}
  .principles-grid{grid-template-columns:1fr;gap:16px}
  .principle-item{padding:0 0 16px}
  .principle-item+.principle-item{border-left:0;border-top:1px solid var(--line);padding-top:16px}
  .how-layout{grid-template-columns:1fr;gap:24px}
  .pricing-grid{grid-template-columns:1fr}
}
@media(max-width:899px){
  .landing-faq-grid{grid-template-columns:1fr}
}
@media(max-width:767px){
  .desktop-nav{display:none}
  .mobile-pricing-pill{display:inline-flex}
  .device-grid{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:540px){
  .hero{padding:22px 0 26px;gap:20px}
  .hero-node{padding:16px;border-radius:20px}
  .hero-actions{display:grid;grid-template-columns:1fr;width:100%}
  .hero-actions .button{width:100%}
  .tier-switcher{grid-template-columns:repeat(2,1fr);gap:10px}
  .tier-sep{display:none}
  .tier-breakdown{gap:6px 12px}
  .device-grid{grid-template-columns:repeat(2,1fr);gap:8px}
}
@media(max-width:480px){
  .docs-grid{grid-template-columns:1fr}
}
@media(max-width:420px){
  .hero{padding:16px 0 22px;gap:16px}
  .hero h1{font-size:clamp(28px,7.5vw,34px);margin:10px 0 12px}
  .hero-description{font-size:15px}
  .hero-actions{margin-top:18px;gap:10px}
  .hero-facts{margin-top:12px}
}
@media(max-width:390px){
  .app-shell{padding:8px 14px 24px}
  .status-panel,.app-card{padding:15px;border-radius:18px}
  .button{min-height:44px;padding:10px 14px}
  .tier-pill{padding:10px 8px}
  .tier-badge{font-size:9.5px;padding:1px 5px;right:5px}
  .app-nav{width:calc(100% - 16px);gap:3px;padding:5px}
  .app-nav button{font-size:10px;min-height:48px;padding:5px 2px}
  .identity-badge{max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}
@media(max-width:380px){
  .route-row{gap:8px;padding:10px 12px}
  .route-name{font-size:12.5px;line-height:1.25}
  .route-badge{font-size:10.5px}
}
@media(max-width:375px){
  .brand-suffix{display:none}
  .wrap{width:calc(100% - 28px)}
  .site-header-inner{height:62px;gap:10px}
  .hero-node{padding:14px}
}
@media(prefers-reduced-motion:reduce){
  *{scroll-behavior:auto!important;animation:none!important;transition:none!important}
  ::view-transition-new(root){animation:none!important}
}
