:root {
  --ink: #101713;
  --ink-2: #34423a;
  --muted: #728078;
  --paper: #f5f5ef;
  --panel: #ffffff;
  --line: #dce1dc;
  --green: #32df89;
  --green-dark: #0e8e55;
  --night: #07150f;
  --blue: #4f72ff;
  --amber: #efb438;
  --danger: #d94c5c;
  --radius: 16px;
  --shadow: 0 18px 60px rgba(7, 21, 15, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.eyebrow {
  margin: 0 0 14px;
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
}
.eyebrow.light { color: var(--green); }

.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1.08fr .92fr; }
.auth-story {
  min-height: 100vh;
  padding: 54px clamp(40px, 6vw, 92px);
  color: white;
  background:
    radial-gradient(circle at 85% 18%, rgba(50, 223, 137, .14), transparent 26%),
    linear-gradient(145deg, #06140e, #0b2017 62%, #07150f);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.auth-story::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -260px;
  bottom: -280px;
  border: 1px solid rgba(50, 223, 137, .25);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(50, 223, 137, .025), 0 0 0 140px rgba(50, 223, 137, .018);
}
.brand {
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
}
.brand b { color: var(--green-dark); font-weight: 900; }
.brand-light { color: white; }
.brand-light b { color: var(--green); }
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--green);
  color: #07150f;
  border-radius: 9px;
  font-size: 12px;
  letter-spacing: -.04em;
}
.auth-copy { margin: auto 0; max-width: 700px; position: relative; z-index: 1; }
.auth-copy h1 {
  font-size: clamp(54px, 6.2vw, 92px);
  line-height: .92;
  letter-spacing: -.066em;
  margin: 0 0 36px;
  font-weight: 780;
}
.auth-copy h1 em { color: var(--green); font-style: normal; }
.auth-copy > p:last-child {
  color: #aec1b5;
  max-width: 560px;
  line-height: 1.7;
  font-size: 17px;
}
.signal-grid {
  max-width: 560px;
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 44px;
  position: relative;
  z-index: 1;
}
.signal-grid span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(50, 223, 137, .55);
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
}
.signal-grid i { height: 1px; background: linear-gradient(90deg, var(--green), rgba(50, 223, 137, .1)); }
.signal-grid b { margin-top: 4px; font-size: 9px; letter-spacing: .14em; color: #8ba296; }
.signal-grid b:nth-of-type(1) { grid-column: 1; }
.signal-grid b:nth-of-type(2) { grid-column: 3; }
.signal-grid b:nth-of-type(3) { grid-column: 5; }
.auth-footnote { color: #779184; font-size: 11px; letter-spacing: .05em; margin: 0; }
.auth-panel { min-height: 100vh; display: grid; place-items: center; background: #fbfbf8; padding: 40px; }
.auth-box { width: min(470px, 100%); }
.auth-box h2 { font-size: clamp(31px, 4vw, 44px); letter-spacing: -.045em; margin: 0 0 12px; }
.auth-box > .muted { line-height: 1.6; margin: 0 0 30px; }
.mobile-brand { display: none; }
.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
}
.auth-tab {
  flex: 1;
  border: 0;
  background: none;
  padding: 14px;
  color: var(--muted);
  font-weight: 700;
  border-bottom: 2px solid transparent;
}
.auth-tab.active { color: var(--ink); border-color: var(--green-dark); }
.form-stack { display: grid; gap: 17px; }
.form-grid { display: grid; gap: 15px; }
.form-grid.two { grid-template-columns: 1fr 1fr; }
label { display: grid; gap: 8px; }
label > span { font-size: 12px; font-weight: 750; color: var(--ink-2); }
input, select, textarea {
  width: 100%;
  border: 1px solid #d7ded8;
  background: white;
  color: var(--ink);
  border-radius: 10px;
  padding: 13px 14px;
  outline: none;
  transition: border .2s, box-shadow .2s;
}
textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus {
  border-color: var(--green-dark);
  box-shadow: 0 0 0 3px rgba(14, 142, 85, .11);
}
.button {
  border: 0;
  border-radius: 10px;
  padding: 13px 18px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.button.primary { background: var(--night); color: white; }
.button.primary:hover { background: #123326; }
.button.secondary { background: #ebf0ec; color: var(--ink); }
.button.green { background: var(--green); color: var(--night); }
.button.wide { width: 100%; margin-top: 3px; }
.button.small { padding: 8px 11px; font-size: 12px; }
.privacy-note { color: #89948d; line-height: 1.55; font-size: 10px; text-align: center; margin-top: 22px; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 270px 1fr; }
.sidebar {
  height: 100vh;
  position: sticky;
  top: 0;
  background: #fbfcf9;
  border-right: 1px solid var(--line);
  padding: 25px 18px 18px;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.sidebar > .brand { padding: 0 10px 24px; }
.side-progress {
  background: var(--night);
  color: white;
  padding: 17px;
  border-radius: 13px;
  margin: 0 3px 19px;
}
.side-progress > div:first-child { display: flex; justify-content: space-between; font-size: 11px; color: #b8c5bd; }
.side-progress strong { color: var(--green); font-size: 13px; }
.progress-track { height: 5px; border-radius: 9px; background: #284036; margin: 12px 0 9px; overflow: hidden; }
.progress-track i { display: block; height: 100%; width: 0; background: var(--green); transition: width .35s; }
.side-progress small { font-size: 10px; color: #91a298; }
.side-nav { display: grid; gap: 3px; overflow-y: auto; }
.side-nav > p {
  font-size: 9px;
  letter-spacing: .14em;
  color: #9aa59e;
  font-weight: 800;
  margin: 14px 12px 6px;
}
.side-catalog {
  border: 1px solid transparent;
  border-radius: 11px;
  overflow: hidden;
}
.side-catalog > summary {
  list-style: none;
  display: grid;
  grid-template-columns: 23px 1fr auto 10px;
  align-items: center;
  gap: 7px;
  padding: 9px 10px;
  color: #435047;
  font-size: 10px;
  font-weight: 850;
  cursor: pointer;
}
.side-catalog > summary::-webkit-details-marker { display: none; }
.side-catalog > summary::after { content: "›"; color: #93a098; font-size: 14px; transition: transform .2s; }
.side-catalog[open] > summary::after { transform: rotate(90deg); }
.side-catalog[open] { border-color: #e4e9e5; background: #fbfcfa; }
.side-catalog > summary > span { color: #0c7447; font-size: 8px; }
.side-catalog > summary > b { color: #9aa59e; font-size: 7px; font-weight: 750; white-space: nowrap; }
.side-catalog > div { display: grid; padding: 0 4px 5px; }
.side-catalog .nav-item { padding-left: 10px; }
.domain-nav-item > span { display: grid; gap: 2px; min-width: 0; }
.domain-nav-item > span strong { color: #46544b; font-size: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.domain-nav-item > span small { color: #95a098; font-size: 7px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.domain-nav-item.active > span strong { color: #0c7447; }
.nav-item {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  text-align: left;
  border: 0;
  background: transparent;
  color: #56635b;
  padding: 10px 11px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 680;
  text-decoration: none;
  cursor: pointer;
}
.nav-item:hover { background: #edf1ed; color: var(--ink); }
.nav-item.active { background: #e7f8ee; color: #0c7447; }
.nav-item b, .nav-item > span { color: #829087; font-size: 10px; }
.nav-item.active b, .nav-item.active > span { color: #0c7447; }
.nav-state { width: 7px; height: 7px; border: 1px solid #aab4ae; border-radius: 50%; }
.nav-item.completed .nav-state { background: var(--green-dark); border-color: var(--green-dark); }
.side-user {
  margin-top: auto;
  padding: 16px 8px 3px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 9px;
  align-items: center;
}
.side-user > span {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: #dff4e8; color: #0c7447; font-size: 11px; font-weight: 900;
}
.side-user div { display: grid; min-width: 0; }
.side-user strong { font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user small { color: var(--muted); font-size: 9px; text-transform: capitalize; }
.side-user button { border: 0; background: none; color: #8a958f; font-size: 17px; }
.app-main { min-width: 0; }
.topbar {
  height: 72px;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(22px, 4vw, 54px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.breadcrumb { font-size: 10px; letter-spacing: .11em; color: #97a099; }
.breadcrumb strong { color: var(--ink); }
.live-status { font-size: 10px; color: #647169; display: flex; gap: 8px; align-items: center; }
.live-status i { width: 7px; height: 7px; background: var(--green); border-radius: 50%; box-shadow: 0 0 0 4px rgba(50,223,137,.13); }
.live-status span { font-variant-numeric: tabular-nums; font-weight: 800; color: var(--ink); }
.icon-button { display: none; border: 0; background: transparent; font-size: 20px; }
.content { padding: clamp(30px, 5vw, 70px); max-width: 1500px; margin: 0 auto; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.page-head h1 { font-size: clamp(36px, 5vw, 64px); line-height: .95; letter-spacing: -.055em; margin: 0 0 13px; }
.page-head p { color: var(--muted); line-height: 1.6; max-width: 720px; margin: 0; }
.tag { display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 99px; background: #e6f8ee; color: #0c7447; font-size: 10px; font-weight: 800; letter-spacing: .05em; }
.tag.dark { background: #12261c; color: var(--green); }
.tag.blue { background: #e8ecff; color: #3b56c7; }
.hero {
  min-height: 360px;
  border-radius: 22px;
  padding: clamp(32px, 5vw, 66px);
  color: white;
  background:
    radial-gradient(circle at 84% 18%, rgba(50,223,137,.18), transparent 30%),
    linear-gradient(140deg, #07150f, #0b2519);
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  align-items: end;
  position: relative;
  overflow: hidden;
  margin-bottom: 26px;
}
.hero h1 { font-size: clamp(44px, 5vw, 78px); letter-spacing: -.06em; line-height: .95; margin: 18px 0 22px; }
.hero h1 em { font-style: normal; color: var(--green); }
.hero p { max-width: 650px; color: #aec0b5; line-height: 1.65; margin: 0 0 27px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-map { align-self: stretch; position: relative; min-height: 220px; }
.orbit { position: absolute; border: 1px solid rgba(50,223,137,.2); border-radius: 50%; inset: 5%; }
.orbit:nth-child(2) { inset: 20%; }
.orbit:nth-child(3) { inset: 35%; background: var(--green); box-shadow: 0 0 70px rgba(50,223,137,.35); }
.hero-map span { position: absolute; background: #102b1e; color: #b8cabf; border: 1px solid #254436; border-radius: 7px; padding: 7px 9px; font-size: 9px; font-weight: 700; }
.hero-map span:nth-of-type(1) { top: 8%; left: 5%; }
.hero-map span:nth-of-type(2) { top: 27%; right: 0; }
.hero-map span:nth-of-type(3) { bottom: 9%; left: 16%; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 26px; }
.stat-card, .card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(7,21,15,.02);
}
.stat-card { padding: 20px; }
.stat-card small { color: var(--muted); display: block; font-size: 10px; margin-bottom: 11px; }
.stat-card strong { font-size: 26px; letter-spacing: -.04em; }
.stat-card i { display: block; height: 3px; background: #edf0ed; margin-top: 14px; border-radius: 9px; overflow: hidden; }
.stat-card i::after { content: ""; display: block; width: var(--value, 40%); height: 100%; background: var(--green-dark); }
.section-title { display: flex; justify-content: space-between; align-items: center; margin: 36px 0 16px; }
.section-title h2 { margin: 0; font-size: 22px; letter-spacing: -.03em; }
.section-title p { margin: 0; font-size: 11px; color: var(--muted); }
.module-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.module-card {
  border: 1px solid var(--line);
  background: white;
  border-radius: 16px;
  padding: 23px;
  display: grid;
  grid-template-columns: 45px 1fr auto;
  gap: 17px;
  align-items: center;
  text-align: left;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, border .2s;
}
.module-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #b8c5bd; }
.module-number { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 11px; background: #edf5f0; color: #0c7447; font-weight: 900; font-size: 11px; }
.module-card h3 { margin: 0 0 5px; font-size: 15px; }
.module-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.module-card > span:last-child { color: #8b978f; }
.card { padding: clamp(21px, 3vw, 34px); }
.lesson-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(270px, .6fr); gap: 18px; }
.lesson-copy { display: grid; gap: 18px; }
.lesson-copy h2 { font-size: 27px; letter-spacing: -.04em; margin: 0 0 12px; }
.lesson-copy p, .lesson-copy li { color: #58665e; line-height: 1.72; font-size: 14px; }
.lesson-copy ul { padding-left: 19px; }
.callout { background: #e9f8ef; border-left: 3px solid var(--green-dark); padding: 18px; border-radius: 0 11px 11px 0; color: #18583a; line-height: 1.6; font-size: 13px; }
.lesson-aside { display: grid; align-content: start; gap: 14px; }
.lesson-aside .card { padding: 22px; }
.lesson-aside h3 { margin: 0 0 12px; font-size: 14px; }
.lesson-aside p { color: var(--muted); font-size: 11px; line-height: 1.6; margin: 0; }
.mini-list { display: grid; gap: 10px; }
.mini-list div { display: flex; gap: 10px; color: #4b5a51; font-size: 11px; line-height: 1.5; }
.mini-list b { color: var(--green-dark); }
.flow-demo { background: var(--night); color: white; border-radius: 16px; padding: 27px; overflow: hidden; }
.flow-demo header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.flow-demo header h3 { margin: 0; }
.flow-options { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 27px; }
.flow-option { border: 1px solid #2d4639; background: #10261c; color: #9db0a5; border-radius: 8px; padding: 8px 11px; font-size: 11px; }
.flow-option.active { border-color: var(--green); color: var(--green); background: #153426; }
.flow-line { display: grid; grid-template-columns: repeat(7, auto); align-items: center; gap: 9px; overflow-x: auto; padding-bottom: 6px; }
.flow-node { min-width: 115px; padding: 15px; border: 1px solid #2b4538; border-radius: 11px; background: #0e2118; }
.flow-node span { color: #758b7e; font-size: 9px; display: block; margin-bottom: 6px; }
.flow-node strong { font-size: 12px; }
.flow-arrow { color: var(--green); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.service-card { background: white; border: 1px solid var(--line); border-radius: 15px; padding: 23px; position: relative; overflow: hidden; }
.service-card::before { content: ""; position: absolute; height: 3px; left: 0; right: 0; top: 0; background: var(--accent, var(--green)); }
.service-card h3 { margin: 13px 0 8px; }
.service-card p { color: var(--muted); font-size: 12px; line-height: 1.65; }
.service-card small { color: #87928b; font-size: 10px; }
.scenario { display: grid; gap: 16px; }
.scenario-option {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  background: white;
  text-align: left;
  display: flex;
  gap: 12px;
  color: #405047;
}
.scenario-option:hover { border-color: #91aa9b; }
.scenario-option.correct { border-color: var(--green-dark); background: #eaf9f0; color: #105d3b; }
.scenario-option.wrong { border-color: #dc8b93; background: #fff0f1; color: #9d3540; }
.scenario-option b { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 7px; background: #eef1ee; flex: 0 0 auto; }
.result-box { padding: 16px; border-radius: 11px; background: #f1f3f1; color: #536057; font-size: 12px; line-height: 1.55; }
.complete-bar { margin-top: 24px; padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: white; display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.complete-bar div { display: grid; gap: 4px; }
.complete-bar strong { font-size: 13px; }
.complete-bar small { color: var(--muted); }
.feedback-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(310px, .9fr); gap: 18px; }
.feedback-kind { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.feedback-kind label { display: block; }
.feedback-kind input { position: absolute; opacity: 0; pointer-events: none; }
.feedback-kind span { display: grid; padding: 15px; border: 1px solid var(--line); border-radius: 11px; background: white; text-align: center; font-size: 11px; }
.feedback-kind input:checked + span { border-color: var(--green-dark); background: #eaf9f0; color: #0c7447; box-shadow: 0 0 0 2px rgba(14,142,85,.08); }
.range-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; }
.range-row input { padding: 0; accent-color: var(--green-dark); }
.range-row output { width: 34px; height: 34px; border-radius: 9px; background: var(--night); color: var(--green); display: grid; place-items: center; font-weight: 900; }
.feedback-list { display: grid; gap: 10px; }
.feedback-item { border: 1px solid var(--line); border-radius: 12px; padding: 17px; background: white; }
.feedback-item header { display: flex; justify-content: space-between; gap: 12px; }
.feedback-item h3 { margin: 7px 0; font-size: 14px; }
.feedback-item p { color: var(--muted); font-size: 11px; line-height: 1.55; margin: 0; }
.status {
  border-radius: 99px; padding: 5px 8px; font-size: 8px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase;
  background: #edf0ed; color: #657169; white-space: nowrap;
}
.status.prioritized { background: #dff7e9; color: #0b7144; }
.status.planned { background: #e6ebff; color: #3a53bb; }
.status.reviewing { background: #fff2d6; color: #926415; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.admin-stat { padding: 20px; background: white; border: 1px solid var(--line); border-radius: 14px; }
.admin-stat small { color: var(--muted); font-size: 10px; }
.admin-stat strong { display: block; margin-top: 7px; font-size: 27px; letter-spacing: -.04em; }
.admin-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.admin-tab { border: 1px solid var(--line); background: white; padding: 9px 13px; border-radius: 8px; font-size: 11px; font-weight: 750; }
.admin-tab.active { background: var(--night); color: white; border-color: var(--night); }
.admin-feedback { display: grid; gap: 12px; }
.admin-feedback-card { background: white; border: 1px solid var(--line); border-radius: 14px; padding: 21px; display: grid; grid-template-columns: minmax(0, 1fr) 255px; gap: 24px; }
.admin-feedback-card h3 { margin: 7px 0 9px; }
.admin-feedback-card p { color: #59675f; font-size: 12px; line-height: 1.6; }
.feedback-meta { display: flex; gap: 11px; flex-wrap: wrap; color: var(--muted); font-size: 9px; }
.admin-controls { border-left: 1px solid var(--line); padding-left: 23px; display: grid; align-content: start; gap: 11px; }
.admin-score { display: flex; align-items: center; justify-content: space-between; }
.admin-score strong { font-size: 26px; color: var(--green-dark); }
.admin-controls textarea { min-height: 70px; }
.table-wrap { overflow-x: auto; background: white; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid #edf0ed; font-size: 11px; }
th { color: var(--muted); font-size: 9px; letter-spacing: .08em; background: #fafbf9; }
td strong { display: block; }
td small { color: var(--muted); }
.empty-state { padding: 40px; text-align: center; color: var(--muted); border: 1px dashed #cdd5cf; border-radius: 13px; }
code {
  padding: 2px 6px;
  border-radius: 6px;
  background: #e9eeea;
  color: #164f35;
  font-family: var(--font-mono, "SFMono-Regular", Consolas, monospace);
  font-size: .9em;
}
.architecture-board {
  background:
    radial-gradient(circle at 92% 10%, rgba(50, 223, 137, .14), transparent 28%),
    var(--night);
  color: white;
  border-radius: 18px;
  padding: 27px;
  overflow: hidden;
}
.architecture-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}
.architecture-head h3 { margin: 12px 0 0; font-size: 20px; letter-spacing: -.03em; }
.architecture-head small { color: #8fa398; }
.architecture-flow {
  display: flex;
  align-items: stretch;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 10px;
}
.arch-node {
  min-width: 142px;
  flex: 1 0 142px;
  padding: 16px;
  border: 1px solid #294438;
  border-radius: 11px;
  background: rgba(16, 38, 28, .9);
  display: grid;
  align-content: start;
  gap: 6px;
}
.arch-node > span { color: var(--green); font-size: 8px; font-weight: 900; letter-spacing: .12em; }
.arch-node strong { font-size: 12px; }
.arch-node small { color: #8fa398; font-size: 9px; line-height: 1.45; }
.arch-arrow { align-self: center; color: var(--green); font-size: 15px; }
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.detail-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  position: relative;
}
.detail-card > span {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding: 0 7px;
  border-radius: 7px;
  background: #e6f8ee;
  color: #0c7447;
  font-size: 9px;
  font-weight: 900;
}
.detail-card h3 { margin: 14px 0 7px; font-size: 15px; }
.detail-card p, .detail-card li { color: var(--muted); font-size: 11px; line-height: 1.6; }
.detail-card ul { padding-left: 17px; margin-bottom: 0; }
.model-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  overflow: hidden;
}
.model-panel-head {
  padding: 25px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}
.model-panel-head h2 { margin: 0; font-size: 23px; letter-spacing: -.04em; }
.model-panel-head > p { max-width: 420px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; text-align: right; }
.model-table { display: grid; }
.model-row {
  border-bottom: 1px solid #edf0ed;
}
.model-row:last-child { border-bottom: 0; }
.model-row > summary {
  list-style: none;
  display: grid;
  grid-template-columns: 75px minmax(170px, .8fr) minmax(250px, 1.2fr);
  gap: 16px;
  align-items: center;
  padding: 16px 23px;
  cursor: pointer;
}
.model-row > summary::-webkit-details-marker { display: none; }
.model-row > summary > div { display: grid; gap: 4px; }
.model-row > summary strong { font-size: 12px; }
.model-row > summary small { color: var(--green-dark); font-size: 9px; font-weight: 750; }
.term-open-label { color: var(--muted); font-size: 9px; display: flex; justify-content: flex-end; align-items: center; gap: 9px; }
.term-open-label b {
  width: 24px; height: 24px; display: grid; place-items: center;
  border-radius: 50%; background: #eef2ee; color: #0c7447; font-size: 14px; transition: transform .2s;
}
.model-row[open] .term-open-label b { transform: rotate(45deg); }
.model-row[open] > summary { background: #fbfcfa; }
.term-inline-detail { border-top: 1px solid #edf0ed; background: #f7faf7; padding: 18px 23px 20px 114px; }
.term-inline-detail > strong { color: #0c7447; font-size: 10px; }
.term-inline-detail p { margin: 7px 0 0; color: #56645b; font-size: 11px; line-height: 1.7; max-width: 850px; }
.model-status {
  width: fit-content;
  padding: 5px 7px;
  border-radius: 99px;
  background: #e3f8ec;
  color: #0a7244;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .08em;
}
.model-status.optional { background: #fff0d1; color: #986511; }
.site-bridge {
  border-radius: 17px;
  padding: 26px;
  background:
    linear-gradient(115deg, rgba(50, 223, 137, .13), transparent 62%),
    #10251b;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.site-bridge h2 { margin: 0 0 8px; font-size: 22px; }
.site-bridge p:last-child { margin: 0; max-width: 720px; color: #a8baaf; font-size: 11px; line-height: 1.6; }
.site-bridge .button { flex: 0 0 auto; text-decoration: none; }
.domain-inventory {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.domain-inventory > header {
  grid-column: 1 / -1;
  padding: 25px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}
.domain-inventory > header > p { margin: 0; color: var(--muted); font-size: 10px; }
.domain-inventory h2 { margin: 0; }
.catalog-loading, .catalog-empty {
  grid-column: 1 / -1;
  padding: 24px;
  color: var(--muted);
  font-size: 11px;
}
.catalog-preview, .catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.catalog-grid { grid-column: 1 / -1; padding: 14px; }
.catalog-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.catalog-card.new-service { border-color: #e6c56e; box-shadow: inset 0 3px #efb438; }
.catalog-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.catalog-card-head code { color: #718077; font-size: 9px; overflow: hidden; text-overflow: ellipsis; }
.catalog-card h3 { margin: 17px 0 7px; font-size: 17px; }
.catalog-card > p { color: var(--muted); font-size: 11px; line-height: 1.65; margin: 0 0 17px; }
.catalog-card dl { margin: 0 0 19px; display: grid; gap: 9px; }
.catalog-card dl div { display: grid; grid-template-columns: 92px 1fr; gap: 12px; border-top: 1px solid #edf0ed; padding-top: 9px; }
.catalog-card dt { color: #8a958f; font-size: 9px; }
.catalog-card dd { margin: 0; color: #435047; font-size: 10px; line-height: 1.5; }
.catalog-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.catalog-actions .button { min-height: 38px; padding: 10px 13px; font-size: 9px; text-decoration: none; }
.catalog-disclosure {
  border: 1px solid #e2e8e3;
  border-radius: 11px;
  margin: 0 0 17px;
  overflow: hidden;
}
.catalog-disclosure > summary {
  list-style: none;
  padding: 12px 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: #2d4437;
  background: #f7faf7;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}
.catalog-disclosure > summary::-webkit-details-marker { display: none; }
.catalog-disclosure > summary b {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: #e3f4e9; color: #0c7447; transition: transform .2s;
}
.catalog-disclosure[open] > summary b { transform: rotate(45deg); }
.catalog-disclosure-body { border-top: 1px solid #e2e8e3; padding: 14px; background: white; }
.catalog-architecture { display: grid; gap: 7px; margin-bottom: 14px; }
.catalog-architecture > div { display: grid; grid-template-columns: 92px 1fr; gap: 10px; align-items: start; }
.catalog-architecture span { color: #0c7447; font-size: 8px; font-weight: 850; }
.catalog-architecture p { margin: 0; color: #536158; font-size: 9px; line-height: 1.55; }
.catalog-try { background: #eaf7ef; border-radius: 9px; padding: 13px; }
.catalog-try strong { color: #0b7044; font-size: 9px; }
.catalog-try p { margin: 6px 0 0; color: #476054; font-size: 9px; line-height: 1.6; }
.term-catalog-banner {
  margin-top: 18px;
  border-radius: 17px;
  border: 1px solid #cadbd0;
  background: linear-gradient(110deg, #eef9f2, #fbfcfa);
  padding: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.term-catalog-banner h2 { margin: 4px 0 8px; font-size: 21px; }
.term-catalog-banner p:last-child { margin: 0; color: var(--muted); font-size: 10px; }
.term-catalog-banner .button { flex: 0 0 auto; text-decoration: none; }
.glossary-head h1 { max-width: 620px; }
.glossary-toolbar {
  border: 1px solid var(--line);
  background: white;
  border-radius: 16px;
  padding: 18px;
  display: grid;
  gap: 13px;
  margin-bottom: 13px;
}
.glossary-toolbar label { display: grid; grid-template-columns: 90px 1fr; gap: 13px; align-items: center; }
.glossary-toolbar label span { color: #536158; font-size: 10px; font-weight: 800; }
.glossary-toolbar input { width: 100%; border: 1px solid #dfe5e0; border-radius: 10px; padding: 12px 14px; color: var(--ink); }
.glossary-filters { display: flex; flex-wrap: wrap; gap: 7px; }
.glossary-filter { border: 1px solid #dfe5e0; background: #fafbf9; border-radius: 99px; padding: 8px 11px; color: #657269; font-size: 9px; }
.glossary-filter.active { background: #10251b; border-color: #10251b; color: white; }
.glossary-tip { display: flex; gap: 12px; padding: 14px 17px; margin-bottom: 24px; border-radius: 11px; background: #eaf7ef; color: #315342; font-size: 10px; line-height: 1.6; }
.glossary-tip strong { flex: 0 0 auto; color: #0c7447; }
#glossary-results { display: grid; gap: 25px; }
.glossary-group > header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.glossary-group > header p { margin: 0; }
.glossary-group > header span { color: var(--muted); font-size: 9px; }
.glossary-list { display: grid; gap: 8px; }
.glossary-term { border: 1px solid var(--line); border-radius: 13px; background: white; overflow: hidden; }
.glossary-term.featured { border-color: #97c5aa; box-shadow: inset 3px 0 #20b66a; }
.glossary-term > summary {
  list-style: none;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 1fr minmax(170px, .35fr);
  gap: 20px;
  align-items: center;
  cursor: pointer;
}
.glossary-term > summary::-webkit-details-marker { display: none; }
.glossary-term > summary h3 { margin: 0 0 6px; font-size: 15px; }
.glossary-term > summary p { margin: 0; color: #637067; font-size: 10px; line-height: 1.55; }
.glossary-term > summary > span { display: flex; justify-content: flex-end; align-items: center; gap: 13px; }
.glossary-term > summary small { color: #0c7447; font-size: 8px; text-align: right; line-height: 1.4; }
.glossary-term > summary b {
  width: 28px; height: 28px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center;
  background: #edf5f0; color: #0c7447; font-size: 15px; transition: transform .2s;
}
.glossary-term[open] > summary { background: #fbfcfa; }
.glossary-term[open] > summary b { transform: rotate(45deg); }
.glossary-detail { border-top: 1px solid #edf0ed; padding: 19px 20px 21px; background: #f7faf7; }
.glossary-detail > p { margin: 0 0 15px; color: #46564c; font-size: 12px; line-height: 1.75; max-width: 970px; }
.glossary-detail > div { display: flex; gap: 10px; align-items: center; }
.glossary-detail strong { color: #7c8880; font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.glossary-detail span { color: #0c7447; font-size: 9px; font-weight: 750; }
.domain-card {
  padding: 19px 23px;
  border-bottom: 1px solid #edf0ed;
}
.domain-card:nth-child(even) { border-right: 1px solid #edf0ed; }
.domain-card div { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 9px; }
.domain-card div span { color: var(--green-dark); font-weight: 800; }
.domain-card h3 { margin: 10px 0 5px; font-size: 14px; }
.domain-card p { margin: 0; color: var(--muted); font-size: 10px; }
.guardrail-panel {
  border: 1px solid #cfe5d7;
  border-radius: 16px;
  padding: 26px;
  background: #eef9f2;
}
.guardrail-panel h2 { margin: 0 0 20px; font-size: 24px; letter-spacing: -.04em; }
.guardrail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.guardrail-grid > div { background: white; border: 1px solid #d9e8de; border-radius: 11px; padding: 17px; }
.guardrail-grid strong { color: #0b7044; font-size: 11px; }
.guardrail-grid p { margin: 7px 0 0; color: #5e6d64; font-size: 10px; line-height: 1.55; }
.knowledge-check {
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #f9faf7;
  overflow: hidden;
  scroll-margin-top: 95px;
}
.knowledge-check > header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding: 26px;
  background: white;
  border-bottom: 1px solid var(--line);
}
.knowledge-check h2 { margin: 0 0 6px; font-size: 25px; letter-spacing: -.04em; }
.knowledge-check header p:last-child { margin: 0; color: var(--muted); font-size: 10px; }
.quiz-summary {
  min-width: 150px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #edf0ed;
  display: flex;
  align-items: center;
  gap: 9px;
}
.quiz-summary strong { font-size: 18px; }
.quiz-summary span { color: var(--muted); font-size: 9px; line-height: 1.3; }
.quiz-summary.complete { background: #def6e8; color: #0a7244; }
.quiz-list { display: grid; }
.quiz-question { padding: 24px 26px; border-bottom: 1px solid var(--line); }
.quiz-question:last-child { border-bottom: 0; }
.quiz-no { color: var(--green-dark); font-size: 8px; font-weight: 900; letter-spacing: .12em; }
.quiz-question h3 { margin: 8px 0 15px; font-size: 15px; line-height: 1.45; }
.quiz-options { display: grid; gap: 8px; }
.quiz-option {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 11px;
  width: 100%;
  border: 1px solid #dbe1dc;
  border-radius: 10px;
  background: white;
  padding: 10px 12px;
  text-align: left;
  color: #4b5951;
}
.quiz-option:hover { border-color: #91aa9b; }
.quiz-option b { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 7px; background: #eef1ee; font-size: 9px; }
.quiz-option span { font-size: 11px; line-height: 1.45; }
.quiz-option.correct { border-color: var(--green-dark); background: #e9f8ef; color: #0b7044; }
.quiz-option.correct b { background: var(--green); color: var(--night); }
.quiz-option.wrong { border-color: #d98d96; background: #fff0f1; color: #983944; }
.quiz-feedback {
  display: none;
  margin-top: 10px;
  padding: 11px 13px;
  border-radius: 9px;
  background: #edf0ed;
  color: #57655d;
  font-size: 10px;
  line-height: 1.55;
}
.quiz-feedback.show { display: block; }
.toast {
  position: fixed; right: 22px; bottom: 22px; z-index: 100; max-width: 380px;
  background: var(--night); color: white; padding: 13px 17px; border-radius: 10px;
  box-shadow: var(--shadow); font-size: 12px; opacity: 0; transform: translateY(12px);
  pointer-events: none; transition: .25s;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { background: #8d2431; }

@media (max-width: 1000px) {
  .auth-page { grid-template-columns: .9fr 1.1fr; }
  .auth-story { padding: 38px; }
  .auth-copy h1 { font-size: 56px; }
  .app-shell { grid-template-columns: 230px 1fr; }
  .stats-grid, .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .feedback-layout { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; }
  .hero-map { display: none; }
  .lesson-layout { grid-template-columns: 1fr; }
  .model-row > summary { grid-template-columns: 70px minmax(150px, .8fr) minmax(210px, 1.2fr); }
}

@media (max-width: 760px) {
  .auth-page { display: block; }
  .auth-story { display: none; }
  .auth-panel { padding: 26px 20px; }
  .mobile-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 50px; font-size: 11px; font-weight: 900; letter-spacing: .1em; }
  .mobile-brand b { color: var(--green-dark); }
  .form-grid.two { grid-template-columns: 1fr; }
  .app-shell { display: block; }
  .sidebar { position: fixed; transform: translateX(-105%); transition: transform .25s; width: 275px; box-shadow: 20px 0 70px rgba(7,21,15,.16); }
  .sidebar.open { transform: translateX(0); }
  .topbar { padding: 0 18px; }
  .icon-button { display: block; }
  .breadcrumb { display: none; }
  .content { padding: 26px 18px 55px; }
  .hero { padding: 31px 23px; min-height: 430px; }
  .hero h1 { font-size: 48px; }
  .stats-grid, .module-grid, .admin-stats, .service-grid { grid-template-columns: 1fr; }
  .page-head { display: block; }
  .page-head .tag { margin-top: 16px; }
  .feedback-kind { grid-template-columns: 1fr; }
  .admin-feedback-card { grid-template-columns: 1fr; }
  .admin-controls { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 18px; }
  .complete-bar { align-items: stretch; flex-direction: column; }
  .detail-grid, .domain-inventory, .guardrail-grid, .catalog-preview, .catalog-grid { grid-template-columns: 1fr; }
  .domain-card:nth-child(even) { border-right: 0; }
  .architecture-head, .model-panel-head, .site-bridge, .knowledge-check > header, .domain-inventory > header, .term-catalog-banner { align-items: stretch; flex-direction: column; }
  .model-panel-head > p { text-align: left; }
  .model-row > summary { grid-template-columns: 1fr; gap: 7px; }
  .term-open-label { justify-content: flex-start; }
  .term-inline-detail { padding: 17px; }
  .site-bridge .button { width: 100%; }
  .quiz-summary { width: fit-content; }
  .glossary-toolbar label { grid-template-columns: 1fr; }
  .glossary-term > summary { grid-template-columns: 1fr; gap: 12px; }
  .glossary-term > summary > span { justify-content: space-between; }
  .glossary-term > summary small { text-align: left; }
  .glossary-tip { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
