@font-face {
  font-family: 'Geologica';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/geologica-cyr.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Geologica';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/geologica-lat.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF;
}
@font-face {
  font-family: 'Plex Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/plexmono-cyr.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Plex Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/plexmono-lat.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF;
}

:root {
  color-scheme: dark;
  --bg: #0D0A08;
  --bg-deep: #070504;
  --panel: rgba(255, 245, 236, 0.055);
  --panel-hover: rgba(255, 246, 238, 0.095);
  --surface: rgba(255, 244, 234, 0.055);
  --sep: rgba(255, 242, 230, 0.14);
  --sep-strong: rgba(255, 244, 234, 0.28);
  --spec-top: rgba(255, 250, 245, 0.36);
  --spec-bot: rgba(242, 162, 82, 0.18);
  --rim-grad: linear-gradient(135deg, rgba(255, 252, 248, 0.50) 0%, rgba(255, 240, 224, 0.12) 30%, rgba(255, 240, 224, 0.04) 55%, rgba(242, 158, 76, 0.24) 85%, rgba(255, 250, 244, 0.34) 100%);
  --text: #F6EDE4;
  --text-2: #D9C9BA;
  --muted: #A99787;
  --accent: #F09348;
  --accent-dim: rgba(236, 134, 62, 0.18);
  --accent-border: rgba(246, 158, 88, 0.44);
  --green: #4ADE80;
  --red: #FF6B60;
  --sans: 'Geologica', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --mono: 'Plex Mono', ui-monospace, 'SF Mono', Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.55;
  overflow-x: hidden;
}

.glass-env {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, var(--bg) 0%, var(--bg-deep) 100%);
}
.glass-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(44px);
  will-change: transform;
}
.glass-orb-1 {
  width: 44vmax; height: 44vmax; top: -10vmax; left: 4vw;
  background: radial-gradient(circle, rgba(232, 108, 36, 0.50) 0%, rgba(178, 72, 20, 0.22) 44%, transparent 72%);
  animation: orbA 18s ease-in-out infinite alternate;
}
.glass-orb-2 {
  width: 42vmax; height: 42vmax; right: 2vw; bottom: -12vmax;
  background: radial-gradient(circle, rgba(246, 174, 72, 0.38) 0%, rgba(196, 118, 36, 0.14) 44%, transparent 72%);
  animation: orbB 22s ease-in-out infinite alternate;
}
.glass-orb-3 {
  width: 34vmax; height: 34vmax; top: 34vh; left: 40vw;
  background: radial-gradient(circle, rgba(124, 204, 224, 0.26) 0%, rgba(86, 154, 186, 0.09) 46%, transparent 72%);
  animation: orbC 24s ease-in-out infinite alternate;
}
@keyframes orbA { 0% { transform: translate3d(-3vw,-2vh,0) scale(1); } 100% { transform: translate3d(16vw,20vh,0) scale(1.08); } }
@keyframes orbB { 0% { transform: translate3d(3vw,3vh,0) scale(1); } 100% { transform: translate3d(-18vw,-20vh,0) scale(1.1); } }
@keyframes orbC { 0% { transform: translate3d(-4vw,4vh,0) scale(0.96); } 100% { transform: translate3d(12vw,-12vh,0) scale(1.1); } }

header.site-nav, main, footer.site-footer { position: relative; z-index: 1; }

header.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(26px) saturate(200%);
  -webkit-backdrop-filter: blur(26px) saturate(200%);
  background: rgba(255, 246, 238, 0.045);
  border-bottom: 1px solid var(--sep);
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.nav-brand img { height: 30px; width: auto; display: block; }
.nav-brand-sep { width: 1px; height: 20px; background: var(--sep-strong); }
.nav-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.nav-brand-text strong { font-size: 13.5px; font-weight: 600; }
.nav-brand-text span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.auth-wrap { max-width: 460px; margin: 64px auto 48px; padding: 0 20px; }
.legal-wrap { max-width: 820px; margin: 36px auto 64px; padding: 0 20px; }

.glass-card {
  position: relative;
  overflow: hidden;
  background: var(--panel);
  backdrop-filter: blur(28px) saturate(210%);
  -webkit-backdrop-filter: blur(28px) saturate(210%);
  border: 1px solid transparent;
  border-radius: 26px;
  padding: 28px 30px;
  box-shadow: 0 20px 54px -16px rgba(0, 0, 0, 0.66), inset 0 1.5px 0 var(--spec-top), inset 0 -14px 24px -16px var(--spec-bot);
}
.glass-card::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1.2px;
  border-radius: inherit;
  background: var(--rim-grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.glass-card > * { position: relative; z-index: 1; }

.kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
h1, h2, h3 { margin: 0 0 10px; font-weight: 500; letter-spacing: -0.025em; line-height: 1.15; }
.lead { color: var(--text-2); font-weight: 300; margin: 0 0 18px; }
.auth-logo { height: 52px; width: auto; margin: 0 auto 18px; display: block; }

.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.btn-primary, .btn-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 20px;
  border-radius: 13px;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}
.btn-primary {
  background: linear-gradient(180deg, rgba(238, 124, 48, 0.46) 0%, rgba(176, 76, 22, 0.36) 100%);
  backdrop-filter: blur(20px) saturate(210%);
  -webkit-backdrop-filter: blur(20px) saturate(210%);
  border: 1px solid rgba(255, 212, 174, 0.46);
  color: #FFF8F2;
  box-shadow: 0 10px 26px -8px rgba(196, 86, 24, 0.55), inset 0 1.5px 0 rgba(255, 250, 244, 0.58), inset 0 -10px 18px -8px rgba(255, 168, 86, 0.34);
}
.btn-primary:hover { transform: translateY(-1px); background: linear-gradient(180deg, rgba(248, 138, 62, 0.58) 0%, rgba(196, 88, 28, 0.48) 100%); }
.btn-glass {
  background: var(--surface);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--sep);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 250, 245, 0.25);
}
.btn-glass:hover { background: var(--panel-hover); border-color: var(--sep-strong); }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; text-align: left; }
.field label { font-size: 12px; color: var(--muted); font-weight: 500; }
.field input, .field select {
  width: 100%;
  min-height: 42px;
  padding: 9px 13px;
  border-radius: 11px;
  border: 1px solid var(--sep);
  background: rgba(12, 9, 8, 0.52);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(240, 147, 72, 0.3);
}

.alert {
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 13px;
  margin-bottom: 16px;
  border: 1px solid var(--sep);
  background: var(--surface);
}
.alert.err { border-color: rgba(255, 107, 96, 0.45); background: rgba(255, 107, 96, 0.14); color: #FFD2CE; }
.alert.ok  { border-color: rgba(74, 222, 128, 0.45); background: rgba(74, 222, 128, 0.14); color: #D2FFE1; }

/* Landing sections */
.hero { padding: 54px 0 36px; text-align: center; }
.hero h1 { font-size: clamp(30px, 4.8vw, 52px); max-width: 820px; margin: 0 auto 14px; }
.hero .lead { font-size: clamp(15px, 1.5vw, 18px); max-width: 650px; margin: 0 auto 26px; }
.hero-logo { height: 64px; width: auto; margin: 0 auto 16px; display: block; }

.section-head { text-align: center; margin-bottom: 22px; }
.section-head h2 { font-size: clamp(23px, 2.9vw, 32px); max-width: 680px; margin: 0 auto 8px; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--sep);
  box-shadow: inset 0 1px 0 rgba(255, 250, 245, 0.22);
  gap: 2px;
}
.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--muted);
  border: 1px solid transparent;
  transition: all 0.15s ease;
}
.lang-switch a:hover { color: var(--text); }
.lang-switch a.active {
  background: var(--accent-dim);
  border-color: var(--accent-border);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 250, 245, 0.28);
}

.features-sec { margin: 22px 0 54px; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}
.feat-card { padding: 20px; border-radius: 20px; }
.feat-num { font-family: var(--mono); font-size: 11px; color: var(--accent); margin-bottom: 8px; }
.feat-card h3 { font-size: 15.5px; margin-bottom: 6px; }
.feat-card p { margin: 0; font-size: 13px; color: var(--text-2); font-weight: 300; }

/* Pricing */
.pricing-sec { padding: 16px 0 64px; }
.pricing-head { text-align: center; margin-bottom: 24px; }
.pricing-head h2 { font-size: clamp(26px, 3.2vw, 36px); }

.period-switch {
  display: inline-flex;
  padding: 4px;
  border-radius: 15px;
  background: var(--surface);
  border: 1px solid var(--sep);
  box-shadow: inset 0 1px 0 rgba(255, 250, 245, 0.24);
  gap: 4px;
  margin-top: 14px;
}
.period-btn {
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-2);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 11px;
  cursor: pointer;
  transition: all 0.16s ease;
}
.period-btn.active {
  background: var(--accent-dim);
  border-color: var(--accent-border);
  color: var(--text);
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 250, 245, 0.3);
}
.save-tag {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--green);
  margin-left: 5px;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 920px;
  margin: 0 auto;
}
.plan-card { display: flex; flex-direction: column; gap: 14px; }
.plan-card.is-pro {
  box-shadow: 0 24px 64px -16px rgba(172, 75, 24, 0.38), inset 0 1.5px 0 rgba(255, 248, 238, 0.45), inset 0 -16px 26px -16px rgba(236, 134, 62, 0.28);
}
.plan-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.plan-badge {
  font-family: var(--mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  color: var(--accent);
}
.plan-price-row { display: flex; align-items: baseline; gap: 8px; }
.plan-price { font-family: var(--mono); font-size: 38px; font-weight: 700; letter-spacing: -0.03em; }
.plan-period-lbl { font-size: 13px; color: var(--muted); }
.plan-list { list-style: none; padding: 0; margin: 4px 0 10px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.plan-list li { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; color: var(--text-2); }
.plan-list li::before { content: "✓"; color: var(--accent); font-weight: 700; flex-shrink: 0; }

/* FAQ section (main-site architectural style) */
.faq-sec { padding: 48px 0 72px; }
.faq-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.4fr) 1fr;
  gap: 36px 56px;
  align-items: start;
}
.faq-side { position: sticky; top: 96px; }
.faq-side h2 { font-size: clamp(26px, 3vw, 38px); line-height: 1.1; margin: 0 0 12px; }
.faq-side .lead { font-size: 14px; margin: 0; }
.faq-list { border-top: 1px solid var(--sep); }
details.faq-row { border-bottom: 1px solid var(--sep); }
details.faq-row > summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 40px 1fr 22px;
  align-items: baseline;
  gap: 12px;
  padding: 22px 4px;
  color: var(--text);
  transition: color 0.2s ease;
}
details.faq-row > summary::-webkit-details-marker,
details.faq-row > summary::marker { display: none; content: ""; }
details.faq-row > summary:hover { color: var(--accent); }
details.faq-row .faq-num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--accent);
}
details.faq-row > summary h3 {
  margin: 0;
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 500;
  line-height: 1.35;
  color: inherit;
}
details.faq-row .faq-plus {
  position: relative;
  width: 16px;
  height: 16px;
  align-self: center;
  justify-self: end;
  transition: transform 0.25s ease;
}
details.faq-row .faq-plus::before,
details.faq-row .faq-plus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: currentColor;
}
details.faq-row .faq-plus::before { width: 14px; height: 1.5px; transform: translate(-50%, -50%); }
details.faq-row .faq-plus::after { width: 1.5px; height: 14px; transform: translate(-50%, -50%); }
details.faq-row[open] .faq-plus { transform: rotate(45deg); }
details.faq-row .faq-ans {
  padding: 0 32px 24px 52px;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.65;
  max-width: 64ch;
}
details.faq-row .faq-ans p { margin: 0; }

.legal-wrap article.glass-card h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 22px 0 8px;
  color: var(--text);
}

/* Checkout modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(6, 4, 3, 0.72);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.modal-backdrop.open { display: flex; }
.modal-box { width: 100%; max-width: 460px; }

/* Admin tables */
.admin-wrap { max-width: 1180px; margin: 28px auto 64px; padding: 0 20px; display: flex; flex-direction: column; gap: 20px; }
table.studio-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.studio-table th, table.studio-table td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--sep); vertical-align: middle; }
table.studio-table th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.pill { display: inline-flex; padding: 2px 9px; border-radius: 999px; font-family: var(--mono); font-size: 11px; border: 1px solid var(--sep); }
.pill.pro { background: var(--accent-dim); border-color: var(--accent-border); color: var(--accent); }
.pill.ok  { background: rgba(74, 222, 128, 0.14); border-color: rgba(74, 222, 128, 0.35); color: var(--green); }
.pill.off { background: rgba(255, 107, 96, 0.12); border-color: rgba(255, 107, 96, 0.32); color: var(--red); }

footer.site-footer {
  border-top: 1px solid var(--sep);
  padding: 26px 20px 40px;
  color: var(--muted);
  font-size: 12.5px;
}
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
}
footer a { color: var(--text-2); text-decoration: none; border-bottom: 1px solid var(--sep); }
footer a:hover { color: var(--accent); border-color: var(--accent); }

.plans-grid.plans-grid-3 {
  max-width: 1120px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.plan-old-price {
  font-family: var(--mono);
  font-size: 18px;
  color: var(--muted);
  text-decoration: line-through;
  opacity: 0.72;
  font-weight: 400;
}
.tools-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}
.tool-magnet-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border-radius: 20px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.14s ease, border-color 0.16s ease;
}
.tool-magnet-card:hover { transform: translateY(-2px); }
.tool-magnet-card h3 { font-size: 16px; margin: 0; }
.tool-magnet-card p { margin: 0; font-size: 13px; color: var(--text-2); font-weight: 300; flex: 1; }
.tool-magnet-cta { font-family: var(--mono); font-size: 11.5px; color: var(--accent); margin-top: 4px; }

@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .plans-grid, .plans-grid.plans-grid-3, .tools-strip { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; gap: 24px; }
  .faq-side { position: static; }
}
@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .glass-card { padding: 22px 18px; border-radius: 20px; }
  .glass-orb { animation: none !important; }
  .nav-inner { padding: 10px 14px; gap: 8px; }
  .nav-brand-sep, .nav-brand-text { display: none; }
  header.site-nav .btn-row { gap: 6px; flex-wrap: nowrap; }
  header.site-nav .btn-glass { display: none; }
  details.faq-row > summary { grid-template-columns: 32px 1fr 20px; padding: 18px 2px; }
  details.faq-row .faq-ans { padding: 0 8px 20px 0; }
}

/* User Guide (/guide) */
.guide-wrap { max-width: 1180px; margin: 28px auto 72px; padding: 0 20px; display: flex; flex-direction: column; gap: 22px; }
.guide-hero { padding: 30px 32px; }
.guide-hero h1 { font-size: clamp(26px, 3.6vw, 40px); margin-bottom: 10px; }
.guide-meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.guide-route-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.guide-route-card {
  display: flex; flex-direction: column; gap: 4px; padding: 13px 14px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--sep); text-decoration: none; color: var(--text);
  transition: transform 0.14s ease, border-color 0.16s ease, background-color 0.16s ease;
}
.guide-route-card:hover { transform: translateY(-2px); border-color: var(--accent-border); background: var(--panel-hover); }
.guide-route-card strong { font-size: 13px; color: var(--accent); }
.guide-route-card span { font-size: 12px; color: var(--text-2); font-weight: 300; line-height: 1.4; }
.guide-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: start; }
.guide-toc {
  position: sticky; top: 84px; max-height: calc(100vh - 104px); overflow-y: auto;
  padding: 20px 18px; border-radius: 22px;
}
.guide-toc-title { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 10px; }
.guide-toc nav { display: flex; flex-direction: column; gap: 4px; }
.guide-toc a {
  display: block; padding: 6px 10px; border-radius: 10px; font-size: 12.5px; color: var(--text-2);
  text-decoration: none; border: 1px solid transparent; transition: all 0.14s ease;
}
.guide-toc a:hover { color: var(--text); background: var(--surface); }
.guide-toc a.is-active { color: var(--text); background: var(--accent-dim); border-color: var(--accent-border); font-weight: 600; }
.guide-toc-mobile { display: none; }
.guide-toc-mobile summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-radius: 16px; background: var(--panel); border: 1px solid var(--sep); font-weight: 600; font-size: 13.5px;
}
.guide-toc-mobile summary::-webkit-details-marker { display: none; }
.guide-toc-mobile nav { display: flex; flex-direction: column; gap: 4px; padding: 10px 6px 4px; }
.guide-toc-mobile nav a { padding: 7px 10px; border-radius: 9px; color: var(--text-2); text-decoration: none; font-size: 13px; }
.guide-content { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.guide-sec { scroll-margin-top: 86px; line-height: 1.66; }
.guide-sec h2 { font-size: clamp(20px, 2.2vw, 26px); margin: 0 0 12px; color: var(--text); }
.guide-sec h3 { font-size: 17px; margin: 22px 0 8px; color: var(--accent); font-weight: 600; }
.guide-sec h4 { font-size: 14.5px; margin: 16px 0 6px; color: var(--text); font-weight: 600; }
.guide-sec p { margin: 0 0 12px; color: var(--text-2); font-weight: 300; }
.guide-sec ul { margin: 0 0 14px; padding-left: 20px; color: var(--text-2); font-weight: 300; }
.guide-sec li { margin-bottom: 6px; }
.guide-sec a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent-border); }
.guide-sec a:hover { border-bottom-color: var(--accent); }
.ui-lbl {
  display: inline-block; padding: 1px 7px; border-radius: 7px; font-family: var(--mono); font-size: 12px;
  font-weight: 500; background: var(--accent-dim); border: 1px solid var(--accent-border); color: var(--text);
}
.step-list { margin: 8px 0 16px; padding-left: 22px; color: var(--text-2); font-weight: 300; }
.step-list li { margin-bottom: 8px; padding-left: 4px; }
.step-result { display: block; margin-top: 4px; font-size: 12.5px; color: var(--green); font-family: var(--mono); }
.formula-box {
  margin: 12px 0 16px; padding: 14px 16px; border-radius: 14px; background: rgba(8, 6, 5, 0.62);
  border: 1px solid var(--sep); font-family: var(--mono); font-size: 12.5px; line-height: 1.65;
  color: var(--text); overflow-x: auto; white-space: pre;
}
.callout-box {
  margin: 12px 0 16px; padding: 12px 15px; border-radius: 14px; background: var(--surface);
  border: 1px solid var(--sep-strong); font-size: 13.5px; color: var(--text-2);
}
.table-scroll { width: 100%; overflow-x: auto; margin: 10px 0 16px; }
.table-scroll table.studio-table { min-width: 560px; }
@media (max-width: 960px) {
  .guide-route-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-layout { grid-template-columns: 1fr; }
  .guide-toc { display: none; }
  .guide-toc-mobile { display: block; }
}
@media (max-width: 600px) {
  .guide-hero { padding: 22px 18px; }
  .guide-route-grid { grid-template-columns: 1fr; }
}
@media print {
  .glass-env, header.site-nav, .guide-toc, .guide-toc-mobile, .btn-row { display: none !important; }
  body { background: #fff !important; color: #111 !important; font-size: 11pt; }
  .guide-wrap { max-width: 100%; margin: 0; padding: 0; }
  .guide-layout { display: block; }
  .glass-card { background: #fff !important; border: 1px solid #ccc !important; box-shadow: none !important; backdrop-filter: none !important; color: #111 !important; page-break-inside: avoid; }
  .glass-card::after { display: none !important; }
  .guide-sec p, .guide-sec li, .step-list, .callout-box { color: #222 !important; }
  .guide-sec h2, .guide-sec h3, .guide-sec h4, .ui-lbl { color: #000 !important; }
  .formula-box { background: #f6f6f6 !important; color: #111 !important; border-color: #bbb !important; }
}
