:root {
  color-scheme: dark;
  --ink: #f6f2fb;
  --ink-soft: #bbb2c8;
  --muted: #81788f;
  --line: rgba(213, 189, 255, 0.12);
  --line-strong: rgba(199, 150, 255, 0.28);
  --surface: rgba(21, 14, 35, 0.88);
  --surface-soft: rgba(255, 255, 255, 0.035);
  --violet: #9340ee;
  --violet-light: #c98aff;
  --green: #78dfa9;
  --red: #ff91ad;
  --bg: #090611;
  --shell: 960px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 82% 0%, rgba(103, 34, 179, 0.12), transparent 30rem),
    linear-gradient(180deg, #0b0714 0%, var(--bg) 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; }
a { color: inherit; }
button, textarea { font: inherit; }
svg { display: block; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 9px 12px;
  border-radius: 9px;
  background: var(--ink);
  color: var(--bg);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }
.ambient { position: fixed; z-index: -1; pointer-events: none; border-radius: 50%; }
.ambient-one { width: 30rem; height: 30rem; top: -23rem; right: -8rem; border: 1px solid rgba(172, 100, 255, 0.11); }
.ambient-two { display: none; }

/* Header */
.site-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  background: rgba(9, 6, 17, 0.72);
  backdrop-filter: blur(16px);
}
.header-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-mark {
  position: relative;
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(204, 157, 255, 0.38);
  border-radius: 50%;
  background: radial-gradient(circle at 70% 22%, rgba(198, 118, 255, 0.24), transparent 45%), #160d27;
  color: transparent;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: -0.08em;
  -webkit-text-stroke: 0.75px #d4a9fa;
  box-shadow: 0 0 18px rgba(153, 64, 255, 0.16);
}
.brand-mark::after { content: ""; position: absolute; inset: 4px; border: 1px solid rgba(225, 195, 255, 0.12); border-radius: inherit; }
.brand-name { font-size: 17px; font-weight: 680; letter-spacing: -0.035em; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { padding: 7px 11px; border-radius: 9px; color: var(--muted); font-size: 13px; text-decoration: none; transition: 0.18s ease; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); background: rgba(255,255,255,0.05); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -1px rgba(194, 133, 255, 0.35); }

/* Shared */
h1, h2, p { margin-top: 0; }
h1, h2 { letter-spacing: -0.04em; }
.page-kicker { margin-bottom: 7px; color: var(--violet-light); font-size: 11px; font-weight: 750; letter-spacing: 0.14em; text-transform: uppercase; }
.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 17px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { border-color: #a451f5; background: linear-gradient(135deg, #9642ed, #7024c5); box-shadow: 0 8px 24px rgba(111, 35, 194, 0.22), inset 0 1px rgba(255,255,255,0.15); }
.btn-primary:hover { box-shadow: 0 10px 28px rgba(111, 35, 194, 0.31); }
.btn-quiet { border-color: var(--line); background: rgba(255,255,255,0.025); color: var(--ink-soft); }
.btn-quiet:hover { border-color: var(--line-strong); color: var(--ink); background: rgba(255,255,255,0.045); }
.btn:focus-visible, a:focus-visible, textarea:focus-visible { outline: 2px solid var(--violet-light); outline-offset: 3px; }

/* Menu */
.menu-page { padding-block: 72px 110px; }
.page-heading { margin-bottom: 30px; }
.page-heading h1 { margin-bottom: 7px; font-size: 36px; line-height: 1.1; }
.page-heading > p:last-child { margin-bottom: 0; color: var(--muted); font-size: 14px; }
.menu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.menu-card {
  min-height: 128px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: linear-gradient(135deg, rgba(255,255,255,0.042), rgba(125, 45, 210, 0.04));
  text-decoration: none;
  box-shadow: 0 20px 55px rgba(0,0,0,0.12);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.menu-card:hover { transform: translateY(-2px); border-color: var(--line-strong); background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(125,45,210,0.075)); }
.menu-card-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(191, 135, 255, 0.24);
  border-radius: 13px;
  background: rgba(143, 60, 232, 0.1);
  color: var(--violet-light);
}
.menu-card-icon svg { width: 29px; height: 29px; }
.menu-card-content { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.menu-card-title { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.menu-card-title strong { font-size: 18px; letter-spacing: -0.025em; }
.status, .stock { display: inline-flex; align-items: center; gap: 6px; color: #a9e8c5; font-size: 10px; font-weight: 750; letter-spacing: 0.055em; text-transform: uppercase; }
.status i, .stock i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px rgba(120,223,169,0.55); }
.menu-card-description { color: var(--muted); font-size: 13px; }
.menu-card-arrow { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: #b27bea; transition: transform 0.2s ease; }
.menu-card:hover .menu-card-arrow { transform: translateX(3px); }
.menu-card-arrow svg { width: 18px; height: 18px; }

/* K12 workspace */
.workspace { max-width: 780px; padding-block: 34px 90px; }
.back-link { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 38px; color: var(--muted); font-size: 13px; text-decoration: none; transition: color 0.18s ease; }
.back-link:hover { color: var(--ink); }
.back-link svg { width: 17px; height: 17px; }
.workspace-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.workspace-title { display: flex; align-items: center; gap: 15px; }
.menu-card-icon-small { width: 46px; height: 46px; border-radius: 12px; }
.menu-card-icon-small svg { width: 27px; height: 27px; }
.workspace-heading h1 { margin-bottom: 3px; font-size: 28px; line-height: 1.15; }
.workspace-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.stock { padding: 7px 10px; border: 1px solid rgba(120,223,169,0.14); border-radius: 999px; background: rgba(61,164,109,0.05); white-space: nowrap; }
.stock strong { color: inherit; }
.tool-card {
  border: 1px solid var(--line);
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(24,16,39,0.94), rgba(14,9,24,0.94));
  box-shadow: 0 24px 70px rgba(0,0,0,0.24), inset 0 1px rgba(255,255,255,0.035);
}
.form { display: flex; flex-direction: column; gap: 17px; padding: 24px; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field-label { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; color: var(--ink-soft); font-size: 13px; }
.field-label strong { color: var(--ink); }
.field-label small { color: var(--muted); }
.input {
  width: 100%;
  appearance: none;
  border: 1px solid rgba(217,193,255,0.14);
  border-radius: 12px;
  padding: 14px 15px;
  background: rgba(5,3,10,0.48);
  color: var(--ink);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.input::placeholder { color: #5b5365; }
.input:focus { outline: none; border-color: rgba(190,120,255,0.65); background: rgba(7,4,12,0.65); box-shadow: 0 0 0 3px rgba(145,57,241,0.08); }
.textarea { min-height: 220px; resize: vertical; font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: 13px; line-height: 1.65; }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 1px; }
.form-note { display: inline-flex; align-items: center; gap: 7px; color: #756c82; font-size: 11px; }
.form-note svg { width: 16px; height: 16px; color: #956bc1; }
.workspace-hint { max-width: 640px; margin: 14px 4px 0; color: #6f667b; font-size: 11px; }
.alert { display: flex; align-items: flex-start; gap: 9px; margin: 0 0 14px; padding: 12px 14px; border: 1px solid rgba(195,133,255,0.18); border-radius: 11px; background: rgba(139,64,220,0.07); color: #d9c9e8; font-size: 13px; }
.alert svg { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 1px; color: var(--violet-light); }
.alert-error { border-color: rgba(255,106,145,0.2); background: rgba(189,50,87,0.08); color: #ffc2d1; }
.alert-error svg { color: var(--red); }

/* K12 guide */
.guide-card {
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(18, 12, 30, 0.64);
  overflow: hidden;
}
.guide-card > summary {
  min-height: 78px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  list-style: none;
  cursor: pointer;
  user-select: none;
  transition: background .18s ease;
}
.guide-card > summary::-webkit-details-marker,
.guide-method > summary::-webkit-details-marker { display: none; }
.guide-card > summary:hover { background: rgba(255,255,255,.025); }
.guide-summary-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(191,135,255,.2);
  border-radius: 11px;
  background: rgba(143,60,232,.08);
  color: var(--violet-light);
}
.guide-summary-icon svg { width: 23px; height: 23px; }
.guide-summary-copy { display: flex; flex-direction: column; gap: 2px; }
.guide-summary-copy strong { font-size: 14px; }
.guide-summary-copy small { color: var(--muted); font-size: 11px; }
.guide-chevron { color: #9b6fc4; transition: transform .2s ease; }
.guide-chevron svg { width: 20px; height: 20px; }
.guide-card[open] > summary { border-bottom: 1px solid var(--line); }
.guide-card[open] > summary .guide-chevron { transform: rotate(180deg); }
.guide-body { padding: 24px; }
.guide-warning {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 14px 15px;
  border: 1px solid rgba(255,190,96,.19);
  border-radius: 12px;
  background: rgba(166,104,26,.075);
  color: #d9cbb7;
  font-size: 12px;
}
.guide-warning svg { width: 19px; height: 19px; flex: 0 0 auto; color: #e7ad5a; }
.guide-warning p { margin: 0; }
.guide-warning strong { color: #f0ddc2; }
.guide-section { padding-block: 25px; border-bottom: 1px solid var(--line); }
.guide-section h2 { margin-bottom: 9px; font-size: 17px; }
.guide-section > p { margin-bottom: 12px; color: var(--ink-soft); font-size: 12px; line-height: 1.65; }
.guide-list { display: grid; gap: 8px; margin: 0; padding-left: 18px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.guide-card code {
  padding: 1px 4px;
  border: 1px solid rgba(213,189,255,.1);
  border-radius: 4px;
  background: rgba(255,255,255,.035);
  color: #cbb7dc;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: .92em;
}
.guide-choice { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; padding-block: 20px; }
.guide-choice div { padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.02); }
.guide-choice span, .guide-choice strong { display: block; }
.guide-choice span { margin-bottom: 2px; color: var(--muted); font-size: 10px; }
.guide-choice strong { font-size: 12px; }
.guide-method { margin-bottom: 10px; border: 1px solid var(--line); border-radius: 13px; background: rgba(5,3,10,.2); overflow: hidden; }
.guide-method > summary { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 17px; list-style: none; cursor: pointer; }
.guide-method > summary > span { display: flex; flex-direction: column; gap: 2px; }
.guide-method > summary small { color: var(--muted); font-size: 9px; letter-spacing: .04em; text-transform: uppercase; }
.guide-method > summary strong { font-size: 14px; }
.guide-method > summary svg { width: 18px; height: 18px; color: #9670b8; transition: transform .2s ease; }
.guide-method[open] > summary { border-bottom: 1px solid var(--line); background: rgba(255,255,255,.018); }
.guide-method[open] > summary svg { transform: rotate(180deg); }
.guide-method-body { padding: 20px; }
.guide-steps { display: grid; gap: 23px; margin: 0; padding: 0; list-style: none; }
.guide-steps > li { display: grid; grid-template-columns: 24px minmax(0,1fr); gap: 12px; }
.guide-steps > li > span { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid rgba(191,135,255,.2); border-radius: 50%; color: var(--violet-light); font-size: 9px; font-weight: 800; }
.guide-steps h3 { margin: 2px 0 6px; font-size: 13px; letter-spacing: -.015em; }
.guide-steps p, .guide-steps ol { margin: 0 0 10px; color: var(--muted); font-size: 11px; line-height: 1.62; }
.guide-steps ol { display: grid; gap: 5px; padding-left: 18px; }
.guide-steps strong { color: var(--ink-soft); }
.code-label { margin: 13px 0 6px; color: #93899f; font-size: 9px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.guide-card pre { max-width: 100%; margin: 7px 0 12px; padding: 13px 14px; overflow-x: auto; border: 1px solid rgba(213,189,255,.1); border-radius: 9px; background: rgba(3,2,7,.56); color: #c9bcd3; font-size: 10px; line-height: 1.55; tab-size: 2; }
.guide-card pre code { padding: 0; border: 0; border-radius: 0; background: transparent; color: inherit; font-size: inherit; }
.guide-card a { color: #bd8bea; text-underline-offset: 3px; }
.guide-card a:hover { color: #d5adfa; }
.guide-doc-link { display: inline-flex; gap: 6px; margin: 17px 0 0 36px; font-size: 11px; }
.guide-troubleshooting dl { display: grid; gap: 0; margin: 0; }
.guide-troubleshooting dl > div { display: grid; grid-template-columns: minmax(160px,.7fr) 1.3fr; gap: 18px; padding: 10px 0; border-bottom: 1px solid rgba(213,189,255,.07); }
.guide-troubleshooting dl > div:last-child { border-bottom: 0; }
.guide-troubleshooting dt, .guide-troubleshooting dd { margin: 0; font-size: 11px; }
.guide-troubleshooting dd { color: var(--muted); }
.guide-safety { padding-bottom: 0; border-bottom: 0; }

/* CDK activation */
.cdk-workspace { max-width: 820px; }
.cdk-heading { margin-bottom: 20px; }
.cdk-product-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(120,223,169,.14);
  border-radius: 999px;
  background: rgba(61,164,109,.05);
  color: #a9e8c5;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .055em;
  text-transform: uppercase;
  white-space: nowrap;
}
.cdk-product-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(120,223,169,.55);
}
.cdk-panel { overflow: hidden; }
.cdk-panel [hidden] { display: none !important; }
.cdk-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 19px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.018);
}
.cdk-panel-head h2 { margin: 2px 0 0; font-size: 16px; letter-spacing: -.025em; }
.cdk-eyebrow {
  color: #9975b9;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.cdk-steps {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cdk-step {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #6f667b;
  font-size: 10px;
}
.cdk-step:not(:last-child)::after {
  content: "";
  width: 25px;
  height: 1px;
  margin: 0 9px;
  background: var(--line);
}
.cdk-step span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255,255,255,.018);
  font-size: 9px;
  font-weight: 800;
}
.cdk-step em { font-style: normal; font-weight: 650; }
.cdk-step.is-active { color: var(--ink-soft); }
.cdk-step.is-active span {
  border-color: #a451f5;
  background: linear-gradient(135deg,#9642ed,#7024c5);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(145,57,241,.1);
}
.cdk-step.is-done { color: #91c9aa; }
.cdk-step.is-done span {
  border-color: rgba(120,223,169,.42);
  background: rgba(61,164,109,.09);
  color: var(--green);
}
.cdk-stage {
  display: grid;
  grid-template-columns: 34px minmax(0,1fr);
  gap: 15px;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}
.cdk-stage:last-child { border-bottom: 0; }
.cdk-stage-index {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(191,135,255,.16);
  border-radius: 10px;
  background: rgba(143,60,232,.055);
  color: #ae7bdc;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  font-weight: 800;
}
.cdk-stage-body { min-width: 0; }
.cdk-stage-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin: 1px 0 17px;
}
.cdk-stage-head h3 { margin: 0 0 3px; font-size: 15px; letter-spacing: -.025em; }
.cdk-stage-head p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.cdk-stage-state {
  flex: 0 0 auto;
  padding: 4px 7px;
  border: 1px solid rgba(194,133,255,.16);
  border-radius: 999px;
  color: #b684e3;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.cdk-state-locked { display: inline-flex; align-items: center; gap: 5px; color: #746b7e; border-color: var(--line); }
.cdk-state-locked svg { width: 11px; height: 11px; }
.cdk-field { gap: 8px; }
.cdk-field-row { display: flex; align-items: stretch; gap: 10px; }
.cdk-field-row .input { flex: 1; min-width: 0; }
.cdk-field-row .btn { flex: 0 0 auto; white-space: nowrap; }
.cdk-panel .btn:disabled {
  cursor: default;
  opacity: .58;
  transform: none;
  box-shadow: none;
}
.cdk-keyinfo {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 12px;
  padding: 11px 13px;
  border: 1px solid rgba(120,223,169,.2);
  border-radius: 11px;
  background: rgba(61,164,109,.055);
}
.cdk-keyinfo-icon {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(61,164,109,.11);
  color: var(--green);
}
.cdk-keyinfo-icon svg { width: 17px; height: 17px; }
.cdk-keyinfo strong { display: block; font-size: 12px; }
.cdk-keyinfo small { display: block; margin-top: 1px; color: var(--muted); font-size: 10px; }
.cdk-keyinfo-badge {
  margin-left: auto;
  padding: 4px 8px;
  border: 1px solid rgba(120,223,169,.18);
  border-radius: 999px;
  color: #9ce5bc;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.cdk-keyinfo.is-used { border-color: rgba(255,106,145,.2); background: rgba(189,50,87,.065); }
.cdk-keyinfo.is-used .cdk-keyinfo-icon { background: rgba(189,50,87,.1); color: var(--red); }
.cdk-keyinfo-badge.is-used { border-color: rgba(255,106,145,.22); color: #f3a5b8; }
.cdk-error {
  display: none;
  margin-top: 11px;
  padding: 10px 12px;
  border: 1px solid rgba(255,106,145,.2);
  border-radius: 10px;
  background: rgba(189,50,87,.075);
  color: #ffc2d1;
  font-size: 11px;
}
.cdk-error.show { display: block; }
.cdk-session-guide {
  display: grid;
  grid-template-columns: 34px minmax(0,1fr);
  gap: 15px;
  margin: 23px 4px 0;
}
.cdk-session-guide-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(191,135,255,.18);
  border-radius: 10px;
  background: rgba(143,60,232,.07);
  color: #b77ee9;
}
.cdk-session-guide-icon svg { width: 18px; height: 18px; }
.cdk-session-guide-body { min-width: 0; }
.cdk-session-guide-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 4px;
}
.cdk-session-guide-head span {
  display: block;
  margin-bottom: 2px;
  color: #9b72bd;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.cdk-session-guide-head h2 { margin: 0; font-size: 15px; letter-spacing: -.02em; }
.cdk-session-guide-head small { color: #746a80; font-size: 9px; white-space: nowrap; }
.cdk-session-intro { margin: 0 0 13px; color: #7f7588; font-size: 10px; }
.cdk-session-steps {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cdk-session-steps li {
  display: grid;
  grid-template-columns: 21px minmax(0,1fr);
  align-items: start;
  gap: 8px;
  padding-right: 11px;
}
.cdk-session-steps li:not(:last-child) {
  border-right: 1px solid rgba(213,189,255,.09);
}
.cdk-session-steps li > span {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(191,135,255,.18);
  border-radius: 50%;
  color: #b883e7;
  font-size: 8px;
  font-weight: 800;
}
.cdk-session-steps p { margin: 1px 0 0; color: #908698; font-size: 10px; line-height: 1.5; }
.cdk-session-steps a { color: #c18cef; text-underline-offset: 2px; }
.cdk-session-steps a:hover { color: #d7b0fa; }
.cdk-session-safety {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 10px 1px 0;
  color: #746b7d;
  font-size: 9px;
  line-height: 1.5;
}
.cdk-session-safety svg { width: 13px; height: 13px; flex: 0 0 auto; margin-top: 1px; color: #956bc1; }
.cdk-locked-note {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px dashed rgba(213,189,255,.11);
  border-radius: 11px;
  background: rgba(255,255,255,.012);
  color: #6f6679;
  font-size: 11px;
}
.cdk-locked-note span {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  background: rgba(255,255,255,.025);
}
.cdk-locked-note svg { width: 15px; height: 15px; }
.cdk-stage[aria-disabled="true"] .cdk-stage-content { display: none; }
.cdk-stage[aria-disabled="false"] .cdk-locked-note { display: none; }
.cdk-stage[aria-disabled="false"] .cdk-state-locked { display: none; }
.cdk-stage-content { display: grid; gap: 13px; }
.cdk-stage-content .field { gap: 8px; }
.cdk-warning {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid rgba(255,190,96,.17);
  border-radius: 10px;
  background: rgba(166,104,26,.065);
  color: #cfc0ab;
  font-size: 11px;
  line-height: 1.55;
}
.cdk-warning svg { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 1px; color: #dca24f; }
.cdk-warning p { margin: 0; }
.cdk-warning strong { color: #ead7bb; }
.cdk-stage .textarea { min-height: 168px; margin: 0; font-size: 11px; }
.cdk-stage .form-footer { margin-top: 1px; }
.cdk-stage-content .cdk-error { margin-top: 0; }
.cdk-locked[aria-disabled="false"] { pointer-events: none; opacity: .68; }
.cdk-status-card { background: rgba(132,57,210,.025); }
.cdk-status { display: flex; align-items: center; gap: 12px; min-height: 34px; }
.cdk-status strong { display: block; font-size: 13px; }
.cdk-status small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; }
.cdk-spinner {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border: 2px solid rgba(199,150,255,.18);
  border-top-color: var(--violet-light);
  border-radius: 50%;
  animation: cdkspin .8s linear infinite;
}
@keyframes cdkspin { to { transform: rotate(360deg); } }
.cdk-status-icon {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
}
.cdk-status-icon svg { width: 17px; height: 17px; }
.cdk-ok .cdk-status-icon { background: rgba(61,164,109,.1); color: var(--green); }
.cdk-bad .cdk-status-icon { background: rgba(189,50,87,.08); color: var(--red); }
.cdk-result {
  max-height: 220px;
  margin: 14px 0 0;
  padding: 12px 14px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(3,2,7,.5);
  color: #c9bcd3;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}
.cdk-actions { margin-top: 14px; }
.cdk-footnote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 13px 0 0;
  color: #6f667b;
  font-size: 10px;
}
.cdk-footnote svg { width: 15px; height: 15px; color: #8d67b1; }

@media (max-width: 620px) {
  .cdk-product-badge { display: none; }
  .cdk-panel-head { align-items: flex-start; flex-direction: column; gap: 15px; padding: 17px; }
  .cdk-steps { width: 100%; }
  .cdk-step { flex: 1; }
  .cdk-step:last-child { flex: 0 0 auto; }
  .cdk-step:not(:last-child)::after { flex: 1; width: auto; min-width: 12px; }
  .cdk-stage { grid-template-columns: 28px minmax(0,1fr); gap: 11px; padding: 18px 15px; }
  .cdk-stage-index { width: 28px; height: 28px; border-radius: 8px; }
  .cdk-stage-head { margin-bottom: 14px; }
  .cdk-stage-head p { max-width: 270px; }
  .cdk-stage-state { display: none; }
  .cdk-session-guide { grid-template-columns: 28px minmax(0,1fr); gap: 11px; margin: 20px 4px 0; }
  .cdk-session-guide-icon { width: 28px; height: 28px; border-radius: 8px; }
  .cdk-session-guide-icon svg { width: 16px; height: 16px; }
  .cdk-session-guide-head { align-items: flex-start; flex-direction: column; gap: 2px; margin-bottom: 12px; }
  .cdk-session-guide-head small { white-space: normal; }
  .cdk-session-steps { grid-template-columns: 1fr; gap: 7px; }
  .cdk-session-steps li { min-height: 38px; padding-right: 0; }
  .cdk-session-steps li:not(:last-child) { padding-bottom: 7px; border-right: 0; border-bottom: 1px solid rgba(213,189,255,.08); }
  .cdk-field-row { flex-direction: column; }
  .cdk-field-row .btn { width: 100%; }
  .cdk-keyinfo { align-items: flex-start; flex-wrap: wrap; }
  .cdk-keyinfo-badge { margin-left: 40px; }
  .cdk-stage .form-footer { align-items: stretch; flex-direction: column-reverse; }
  .cdk-stage .form-footer .btn { width: 100%; }
  .cdk-footnote { align-items: flex-start; padding-inline: 8px; text-align: left; }
}

/* Error pages */
.error-page main { display: grid; }
.error-shell {
  min-height: 610px;
  display: grid;
  place-items: center;
  padding-block: 68px 90px;
}
.error-card {
  width: min(100%, 630px);
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 0%, rgba(140,55,230,.09), transparent 42%),
    linear-gradient(145deg, rgba(24,16,39,.94), rgba(13,8,23,.94));
  text-align: center;
  box-shadow: 0 30px 90px rgba(0,0,0,.28), inset 0 1px rgba(255,255,255,.035);
}
.error-brand {
  position: relative;
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  margin: 0 auto 25px;
}
.error-ring { position: absolute; border: 1px solid rgba(200,148,255,.24); border-radius: 50%; }
.error-ring-outer { inset: 0; }
.error-ring-inner { inset: 13px; border-color: rgba(220,184,255,.34); box-shadow: inset 0 0 28px rgba(142,55,235,.1); }
.error-monogram {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(211,169,255,.28);
  border-radius: 50%;
  background: radial-gradient(circle at 70% 18%, rgba(190,103,255,.27), transparent 45%), #160d27;
  color: transparent;
  font-size: 23px;
  font-weight: 900;
  letter-spacing: -.08em;
  -webkit-text-stroke: 1px #d3a7fa;
  box-shadow: 0 0 30px rgba(143,55,235,.16);
}
.error-brand i {
  position: absolute;
  right: 13px;
  top: 18px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px #fff, 0 0 14px 5px rgba(159,72,250,.5);
}
.error-code { margin-bottom: 9px; color: var(--violet-light); font-size: 10px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.error-card h1 { margin-bottom: 12px; font-size: 34px; line-height: 1.12; }
.error-message { max-width: 470px; margin: 0 auto 25px; color: var(--ink-soft); font-size: 14px; line-height: 1.65; }
.error-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.error-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 28px 0 0; color: #756d80; font-size: 10px; }
.error-note span { width: 5px; height: 5px; border-radius: 50%; background: #9a56d8; box-shadow: 0 0 7px rgba(154,86,216,.55); }

/* Results */
.result-shell { max-width: 860px; }
.result-summary { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; margin-bottom: 25px; }
.result-icon { width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid rgba(120,223,169,0.22); border-radius: 50%; background: rgba(61,164,109,0.08); color: var(--green); }
.result-icon svg { width: 28px; height: 28px; }
.result-icon-fail { border-color: rgba(255,106,145,0.22); background: rgba(189,50,87,0.08); color: var(--red); }
.result-summary h1 { margin-bottom: 3px; font-size: 28px; }
.result-summary p { margin: 0; color: var(--muted); font-size: 13px; }
.result-summary p strong { color: var(--ink-soft); }
.result-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.results-card { margin-top: 20px; overflow: hidden; }
.results-card-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.results-card h2 { margin: 0; font-size: 18px; }
.results-count { padding: 4px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 10px; }
.results { margin: 0; padding: 0; list-style: none; }
.result-row { display: grid; grid-template-columns: auto minmax(120px,.7fr) minmax(140px,1fr) auto; align-items: center; gap: 12px; min-height: 58px; padding: 11px 20px; border-bottom: 1px solid var(--line); }
.result-row:last-child { border-bottom: 0; }
.row-status-icon { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: rgba(61,164,109,0.07); color: var(--green); }
.is-fail .row-status-icon { background: rgba(189,50,87,0.08); color: var(--red); }
.row-status-icon svg { width: 17px; height: 17px; }
.result-code { min-width: 0; overflow: hidden; color: #aea4b8; font-family: "SFMono-Regular", Consolas, monospace; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.result-detail { min-width: 0; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.muted { color: var(--muted); }
.result-status { padding: 3px 7px; border: 1px solid rgba(120,223,169,0.15); border-radius: 999px; color: #9ce5bc; font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.is-fail .result-status { border-color: rgba(255,106,145,0.17); color: #f3a5b8; }

/* Footer */
.site-footer { border-top: 1px solid rgba(255,255,255,0.05); background: rgba(5,3,9,0.24); }
.footer-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.brand-mark-small { width: 31px; height: 31px; font-size: 10px; }
.footer-brand strong, .footer-brand small { display: block; }
.footer-brand strong { font-size: 12px; }
.footer-brand small { color: #696171; font-size: 10px; }
.telegram-link { display: inline-flex; align-items: center; gap: 7px; color: #81788d; font-size: 12px; text-decoration: none; transition: color .18s ease; }
.telegram-link:hover { color: var(--ink); }
.telegram-link svg { width: 16px; height: 16px; }

@media (max-width: 680px) {
  .shell { width: min(calc(100% - 30px), var(--shell)); }
  .header-inner { min-height: 62px; }
  .brand-mark { width: 33px; height: 33px; }
  .brand-name { font-size: 15px; }
  .site-nav a { padding: 6px 8px; font-size: 11px; }

  .menu-page { padding-block: 50px 80px; }
  .page-heading { margin-bottom: 23px; }
  .page-heading h1 { font-size: 31px; }
  .menu-grid { grid-template-columns: 1fr; }
  .menu-card { min-height: 112px; padding: 18px; gap: 14px; }
  .menu-card-icon { width: 45px; height: 45px; }
  .menu-card-description { font-size: 12px; }

  .workspace { padding-block: 24px 70px; }
  .back-link { margin-bottom: 30px; }
  .workspace-heading { align-items: flex-start; flex-direction: column; gap: 13px; }
  .workspace-title { align-items: flex-start; }
  .workspace-heading h1 { font-size: 24px; }
  .workspace-heading p { font-size: 12px; }
  .form { padding: 18px; }
  .field-label { align-items: flex-start; flex-direction: column; gap: 2px; }
  .textarea { min-height: 205px; }
  .form-footer { align-items: stretch; flex-direction: column-reverse; }
  .form-footer .btn { width: 100%; }
  .guide-card { margin-top: 22px; }
  .guide-card > summary { min-height: 70px; padding: 13px 15px; gap: 11px; }
  .guide-summary-icon { width: 38px; height: 38px; }
  .guide-summary-copy strong { font-size: 13px; }
  .guide-body { padding: 15px; }
  .guide-warning { padding: 12px; }
  .guide-choice { grid-template-columns: 1fr; }
  .guide-method > summary { padding: 14px; }
  .guide-method > summary small { font-size: 8px; }
  .guide-method-body { padding: 15px 12px; }
  .guide-steps > li { grid-template-columns: 22px minmax(0,1fr); gap: 9px; }
  .guide-steps > li > span { width: 22px; height: 22px; }
  .guide-card pre { margin-inline: -1px; padding: 11px; font-size: 9px; }
  .guide-doc-link { margin-left: 31px; }
  .guide-troubleshooting dl > div { grid-template-columns: 1fr; gap: 5px; }

  .error-shell { min-height: 570px; padding-block: 42px 64px; }
  .error-card { padding: 30px 20px; border-radius: 18px; }
  .error-brand { width: 96px; height: 96px; margin-bottom: 21px; }
  .error-ring-inner { inset: 11px; }
  .error-monogram { width: 60px; height: 60px; font-size: 20px; }
  .error-brand i { right: 11px; top: 16px; }
  .error-card h1 { font-size: 28px; }
  .error-message { font-size: 13px; }
  .error-actions { display: grid; grid-template-columns: 1fr; }

  .result-summary { grid-template-columns: auto 1fr; }
  .result-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr; justify-content: stretch; }
  .result-row { grid-template-columns: auto 1fr auto; gap: 9px; padding: 11px 15px; }
  .result-detail { grid-column: 2 / -1; grid-row: 2; }
  .footer-inner { min-height: 104px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
