:root {
  color-scheme: light;
  --bg: #050b16;
  --sidebar: #07111f;
  --surface: #0b1729;
  --surface-2: #0f1e33;
  --surface-3: #12243a;
  --line: #1b324c;
  --line-soft: rgba(121, 165, 193, .13);
  --text: #edf6fc;
  --muted: #9bb1c1;
  --quiet: #6f899c;
  --aqua: #5bdce9;
  --green: #45d3a5;
  --blue: #5290ff;
  --violet: #a68bff;
  --amber: #ffc463;
  --red: #ff7d79;
  --sidebar-width: 276px;
  --topbar-height: 66px;
  --radius-lg: 22px;
  --radius-md: 15px;
  --shadow: 0 22px 60px rgba(0, 0, 0, .24);
  font-family: Inter, Pretendard, "Noto Sans KR", system-ui, -apple-system, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html {
  min-width: 300px;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-width: 300px;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, li { word-break: keep-all; overflow-wrap: break-word; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgba(91, 220, 233, .34);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 9px 14px;
  border-radius: 8px;
  color: #051522;
  background: #fff;
  font-weight: 800;
  transform: translateY(-160%);
}

.skip-link:focus { transform: none; }

.dashboard-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  z-index: 100;
  top: 0;
  display: flex;
  flex-direction: column;
  width: var(--sidebar-width);
  height: 100vh;
  padding: 0 13px 15px;
  overflow-y: auto;
  border-right: 1px solid rgba(91, 220, 233, .13);
  background:
    radial-gradient(circle at 40% -8%, rgba(58, 133, 186, .16), transparent 27%),
    linear-gradient(180deg, #081425, #060e1a 75%);
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--topbar-height);
  padding: 0 9px;
  border-bottom: 1px solid var(--line-soft);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  grid-template-columns: repeat(3, 5px);
  align-items: end;
  gap: 3px;
  width: 34px;
  height: 34px;
  flex: none;
  padding: 8px;
  border-radius: 10px;
  background: linear-gradient(145deg, #2676dd, #27b6c5);
  box-shadow: 0 0 24px rgba(76, 181, 226, .21);
}

.brand-mark i {
  width: 5px;
  border-radius: 3px 3px 1px 1px;
  background: #efffff;
}

.brand-mark i:nth-child(1) { height: 8px; opacity: .7; }
.brand-mark i:nth-child(2) { height: 17px; }
.brand-mark i:nth-child(3) { height: 12px; opacity: .86; }

.brand > span:last-child { min-width: 0; }
.brand b, .brand small { display: block; }
.brand b { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.brand small { margin-top: 2px; color: var(--quiet); font: 750 8px ui-monospace, monospace; letter-spacing: .09em; }

.sidebar-close {
  display: none;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  background: var(--surface);
  font-size: 20px;
  cursor: pointer;
}

.public-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 7px 6px;
  padding: 10px 11px;
  border: 1px solid rgba(69, 211, 165, .17);
  border-radius: 10px;
  background: rgba(69, 211, 165, .055);
}

.public-status > span {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(69, 211, 165, .1), 0 0 14px rgba(69, 211, 165, .45);
}

.public-status div { min-width: 0; }
.public-status b, .public-status small { display: block; }
.public-status b { color: #cdf6e7; font-size: 10px; }
.public-status small { margin-top: 1px; color: #6f9f90; font-size: 8px; }

.side-nav { display: grid; gap: 3px; margin-top: 6px; }
.side-nav > p { margin: 15px 11px 5px; color: #526d82; font: 800 8px ui-monospace, monospace; letter-spacing: .13em; }

.side-nav button {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 53px;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #839bae;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}

.side-nav button:hover {
  border-color: rgba(122, 172, 202, .14);
  color: #d8e7ef;
  background: rgba(255, 255, 255, .025);
}

.side-nav button.active {
  border-color: rgba(91, 220, 233, .2);
  color: #f5fcff;
  background: linear-gradient(90deg, rgba(59, 145, 202, .16), rgba(49, 198, 189, .06));
  box-shadow: inset 3px 0 var(--aqua);
}

.side-nav button > span { min-width: 0; }
.side-nav button b, .side-nav button small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-nav button b { font-size: 11px; }
.side-nav button small { margin-top: 2px; color: #587286; font-size: 8px; }
.side-nav button.active small { color: #7ca7b7; }

.side-nav button > em {
  padding: 3px 5px;
  border: 1px solid rgba(255, 196, 99, .17);
  border-radius: 4px;
  color: #a4834b;
  background: rgba(255, 196, 99, .05);
  font: 800 7px ui-monospace, monospace;
  font-style: normal;
  letter-spacing: .04em;
}

.side-nav button.locked:not(.active) { opacity: .77; }
.side-nav button.locked.active { border-color: rgba(255, 196, 99, .21); box-shadow: inset 3px 0 var(--amber); }

.nav-icon {
  position: relative;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid #1a3650;
  border-radius: 9px;
  background: #0c1c30;
}

.nav-icon::before { color: #6f9cb5; font: 800 9px ui-monospace, monospace; }
.nav-icon.overview::before { content: "01"; }
.nav-icon.flow::before { content: "02"; }
.nav-icon.capability::before { content: "03"; }
.nav-icon.mold::before { content: "M"; }
.nav-icon.twin::before { content: "DT"; }
.nav-icon.process::before { content: "04"; }
.nav-icon.guide::before { content: "05"; }
.nav-icon.data::before { content: "D"; }
.nav-icon.stability::before { content: "S"; }
.nav-icon.ai::before { content: "AI"; }
.side-nav button.active .nav-icon { border-color: rgba(91, 220, 233, .32); background: rgba(91, 220, 233, .1); }
.side-nav button.active .nav-icon::before { color: var(--aqua); }
.side-nav button.locked .nav-icon::after { position: absolute; right: -2px; bottom: -2px; width: 10px; height: 8px; border: 1px solid #8a7349; border-radius: 2px; background: #162033; content: ""; }

.sidebar-login {
  margin: auto 7px 0;
  padding: 15px;
  border: 1px solid rgba(82, 144, 255, .2);
  border-radius: 13px;
  background: radial-gradient(circle at 100% 0, rgba(82, 144, 255, .14), transparent 50%), #0a192d;
}

.sidebar-login > span { color: #88b3ff; font: 800 8px ui-monospace, monospace; letter-spacing: .08em; }
.sidebar-login p { margin: 7px 0 12px; color: #7f96a8; font-size: 9px; line-height: 1.55; }
.sidebar-login a { display: flex; align-items: center; justify-content: space-between; min-height: 36px; padding: 0 11px; border-radius: 8px; color: #07111f; background: linear-gradient(120deg, #6da3ff, var(--aqua)); font-size: 9px; font-weight: 900; }
.sidebar-login a:hover { filter: brightness(1.08); }

.sidebar-footer { display: flex; justify-content: space-between; gap: 8px; margin: 14px 9px 0; color: #405a6f; font-size: 7px; }
.sidebar-footer span { font-weight: 800; letter-spacing: .08em; }

.sidebar-backdrop { display: none; }

.dashboard-main { min-width: 0; }

.topbar {
  position: sticky;
  z-index: 80;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--topbar-height);
  padding: 0 clamp(18px, 3vw, 42px);
  border-bottom: 1px solid rgba(91, 220, 233, .12);
  background: rgba(5, 11, 22, .86);
  box-shadow: 0 5px 24px rgba(0, 0, 0, .12);
  backdrop-filter: blur(18px);
}

.topbar-left, .topbar-right { display: flex; align-items: center; gap: 13px; }

.menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  cursor: pointer;
}

.menu-toggle i { display: block; height: 2px; margin: 3px 0; border-radius: 2px; background: #a7bdcb; }

.breadcrumb { display: flex; align-items: center; gap: 10px; }
.breadcrumb span { color: #58788e; font: 800 8px ui-monospace, monospace; letter-spacing: .1em; }
.breadcrumb span::after { margin-left: 10px; color: #355067; content: "/"; }
.breadcrumb b { font-size: 12px; }

.scope-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border: 1px solid rgba(69, 211, 165, .16);
  border-radius: 999px;
  color: #77cdb2;
  background: rgba(69, 211, 165, .045);
  font: 750 8px ui-monospace, monospace;
}

.scope-chip i { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }

.top-login {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(91, 220, 233, .3);
  border-radius: 9px;
  color: #dff9fc;
  background: rgba(91, 220, 233, .07);
  font-size: 10px;
  font-weight: 850;
}

.top-login:hover { border-color: var(--aqua); background: rgba(91, 220, 233, .12); }

#public-content {
  width: min(1480px, 100%);
  min-height: calc(100vh - 114px);
  margin: 0 auto;
  padding: clamp(18px, 3vw, 42px);
}

.loading, .fatal {
  display: grid;
  min-height: calc(100vh - 180px);
  place-items: center;
  align-content: center;
  gap: 13px;
  text-align: center;
}

.loading-ring { width: 38px; height: 38px; border: 3px solid var(--line); border-top-color: var(--aqua); border-radius: 50%; animation: spin .75s linear infinite; }
.loading b, .loading small { display: block; }
.loading b { font-size: 14px; }
.loading small { margin-top: 5px; color: var(--quiet); font-size: 10px; }
@keyframes spin { to { transform: rotate(360deg); } }

.fatal { margin: 30px; min-height: 430px; border: 1px solid rgba(255, 196, 99, .24); border-radius: var(--radius-lg); background: var(--surface); }
.fatal > span { color: var(--amber); font-size: 17px; font-weight: 850; }
.fatal p { margin: 0; color: var(--muted); }
.fatal div { display: flex; gap: 8px; }
.fatal button, .fatal a { padding: 9px 15px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: var(--surface-2); cursor: pointer; }

.view { animation: view-in .24s ease both; }
@keyframes view-in { from { opacity: .2; transform: translateY(5px); } to { opacity: 1; transform: none; } }

.page-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .6fr);
  gap: 35px;
  align-items: end;
  margin: 4px 0 25px;
  padding: 6px 4px 19px;
  border-bottom: 1px solid var(--line-soft);
}

.page-heading span, .panel-head span, .responsibility-panel > header span {
  color: var(--aqua);
  font: 850 9px ui-monospace, monospace;
  letter-spacing: .11em;
}

.page-heading h1 { margin: 8px 0 0; font-size: clamp(31px, 3.3vw, 48px); line-height: 1.13; letter-spacing: -.045em; }
.page-heading > p { margin: 0 0 3px; color: var(--muted); font-size: 12px; line-height: 1.72; text-align: right; }

.dashboard-panel {
  margin-top: 13px;
  padding: clamp(20px, 2.5vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--surface), #091425);
  box-shadow: 0 11px 36px rgba(0, 0, 0, .09);
}

.panel-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, .6fr);
  gap: 25px;
  align-items: end;
  margin-bottom: 22px;
}

.panel-head.compact { grid-template-columns: minmax(0, 1fr) auto; margin-bottom: 17px; }
.panel-head span { display: block; margin-bottom: 5px; }
.panel-head h2 { margin: 0; font-size: clamp(20px, 2vw, 29px); line-height: 1.25; letter-spacing: -.035em; }
.panel-head > p { max-width: 500px; margin: 0 0 2px auto; color: var(--muted); font-size: 10px; line-height: 1.65; text-align: right; }
.panel-head > button { align-self: center; padding: 7px 10px; border: 1px solid var(--line); border-radius: 7px; color: var(--aqua); background: var(--surface-2); font-size: 9px; font-weight: 800; cursor: pointer; }

.overview-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(310px, .55fr);
  gap: clamp(30px, 4vw, 62px);
  min-height: 445px;
  padding: clamp(34px, 4.6vw, 67px);
  overflow: hidden;
  border: 1px solid rgba(91, 220, 233, .27);
  border-radius: 25px;
  background: radial-gradient(circle at 80% 0, rgba(69, 211, 165, .16), transparent 31%), radial-gradient(circle at 0 100%, rgba(55, 99, 224, .22), transparent 39%), linear-gradient(135deg, #081832, #0b1b34 56%, #082b3a);
  box-shadow: var(--shadow);
}

.overview-hero::before { position: absolute; z-index: -2; inset: 0; background-image: linear-gradient(rgba(122, 196, 220, .047) 1px, transparent 1px), linear-gradient(90deg, rgba(122, 196, 220, .047) 1px, transparent 1px); background-size: 43px 43px; mask-image: linear-gradient(90deg, #000, transparent 80%); content: ""; }
.overview-hero::after { position: absolute; z-index: -1; right: -130px; bottom: -210px; width: 480px; height: 480px; border: 1px solid rgba(91, 220, 233, .2); border-radius: 50%; box-shadow: 0 0 0 51px rgba(91, 220, 233, .025), 0 0 0 108px rgba(91, 220, 233, .014); content: ""; }
.overview-copy { align-self: center; }
.hero-eyebrow { display: flex; align-items: center; gap: 10px; color: var(--aqua); font: 850 10px ui-monospace, monospace; letter-spacing: .1em; }
.hero-eyebrow i { width: 28px; height: 2px; background: linear-gradient(90deg, var(--green), var(--aqua)); }
.overview-copy h1 { max-width: 800px; margin: 19px 0 17px; font-size: clamp(37px, 4vw, 61px); line-height: 1.09; letter-spacing: -.052em; }
.overview-copy > p { max-width: 780px; margin: 0; color: #b3c8d8; font-size: clamp(13px, 1.1vw, 17px); line-height: 1.78; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 23px; }
.hero-tags span { padding: 6px 9px; border: 1px solid rgba(111, 191, 218, .23); border-radius: 999px; color: #bdd6e2; background: rgba(6, 24, 45, .54); font-size: 9px; font-weight: 750; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 29px; }
.hero-actions button, .guide-callout button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 43px; padding: 0 16px; border-radius: 9px; font-size: 10px; font-weight: 850; cursor: pointer; }
.primary-action { border: 0; color: #06222d; background: linear-gradient(120deg, var(--green), var(--aqua)); box-shadow: 0 10px 24px rgba(69, 211, 165, .19); }
.secondary-action { border: 1px solid rgba(133, 203, 225, .28); color: #e7f6fb; background: rgba(7, 25, 46, .6); }
.hero-actions button:hover, .guide-callout button:hover { transform: translateY(-1px); }

.scope-card { z-index: 1; align-self: center; padding: 27px; border: 1px solid rgba(132, 207, 224, .25); border-radius: 18px; background: rgba(7, 25, 47, .73); box-shadow: inset 0 1px rgba(255, 255, 255, .045); backdrop-filter: blur(15px); }
.scope-card > span { color: var(--aqua); font: 850 8px ui-monospace, monospace; letter-spacing: .1em; }
.scope-card h2 { margin: 8px 0 0; font-size: 19px; line-height: 1.36; }
.scope-card > p { margin: 10px 0 20px; color: #9db7c8; font-size: 10px; line-height: 1.66; }
.scope-card dl { margin: 0; border-top: 1px solid rgba(133, 187, 211, .17); }
.scope-card dl div { display: grid; grid-template-columns: 83px minmax(0, 1fr); gap: 10px; padding: 11px 0; border-bottom: 1px solid rgba(133, 187, 211, .13); }
.scope-card dt { color: #7190a5; font-size: 9px; }
.scope-card dd { margin: 0; color: #e1edf3; font-size: 9px; font-weight: 800; text-align: right; overflow-wrap: anywhere; }

.metric-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.metric-card { min-height: 100px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.metric-card span, .metric-card b, .metric-card small { display: block; }
.metric-card span { color: var(--quiet); font-size: 9px; font-weight: 750; }
.metric-card b { margin: 7px 0 4px; color: var(--text); font: 850 clamp(20px, 2vw, 27px) ui-monospace, monospace; }
.metric-card small { color: var(--muted); font-size: 8px; }

.overview-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .78fr); gap: 13px; }
.service-map ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.service-map li { min-height: 137px; padding: 16px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-2); }
.service-map li > i { display: grid; width: 29px; height: 29px; place-items: center; margin-bottom: 14px; border-radius: 8px; color: var(--aqua); background: rgba(91, 220, 233, .09); font: 850 8px ui-monospace, monospace; font-style: normal; }
.service-map li b { font-size: 12px; }
.service-map li p { margin: 5px 0 0; color: var(--muted); font-size: 9px; line-height: 1.58; }

.capability-preview > div { display: grid; gap: 7px; }
.capability-preview article { display: grid; grid-template-columns: 31px minmax(0, 1fr); gap: 10px; align-items: center; min-height: 52px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); }
.capability-preview article > i { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 7px; color: var(--green); background: rgba(69, 211, 165, .08); font: 850 8px ui-monospace, monospace; font-style: normal; }
.capability-preview article b, .capability-preview article small { display: block; }
.capability-preview article b { font-size: 10px; }
.capability-preview article small { color: var(--quiet); font-size: 8px; }

.evidence-strip > div { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.evidence-strip article { min-height: 104px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.evidence-strip article span, .evidence-strip article b, .evidence-strip article small { display: block; }
.evidence-strip article span { color: var(--aqua); font: 800 8px ui-monospace, monospace; }
.evidence-strip article b { margin: 8px 0; font-size: 10px; line-height: 1.48; }
.evidence-strip article small { color: var(--quiet); font-size: 8px; }

.flow-track { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.flow-track article { position: relative; display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 11px; min-height: 150px; padding: 17px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-2); }
.flow-track article > i { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 10px; color: var(--aqua); background: rgba(91, 220, 233, .09); font: 850 9px ui-monospace, monospace; font-style: normal; }
.flow-track article span { color: var(--green); font: 800 7px ui-monospace, monospace; letter-spacing: .05em; }
.flow-track article h3 { margin: 5px 0 7px; font-size: 13px; }
.flow-track article p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.6; }

.family-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.family-grid article { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 11px; min-height: 157px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.family-grid article > i { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 8px; color: var(--aqua); background: rgba(91, 220, 233, .08); font: 850 8px ui-monospace, monospace; font-style: normal; }
.family-grid small { color: var(--quiet); font-size: 8px; }
.family-grid h3 { margin: 4px 0 6px; font-size: 12px; }
.family-grid p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.family-grid article b { display: block; margin-top: 11px; color: var(--green); font-size: 8px; overflow-wrap: anywhere; }

.contract-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 13px; }
.contract-grid article { min-height: 157px; padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: linear-gradient(145deg, var(--surface), #0a1627); }
.contract-grid span { color: var(--violet); font: 850 8px ui-monospace, monospace; letter-spacing: .08em; }
.contract-grid h3 { margin: 12px 0 7px; font-size: 13px; }
.contract-grid p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.62; }

.outcome-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.outcome-grid article { display: flex; flex-direction: column; min-height: 200px; padding: 17px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); box-shadow: inset 3px 0 var(--green); }
.outcome-grid header { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.outcome-grid header i { color: var(--quiet); font: 850 8px ui-monospace, monospace; font-style: normal; }
.outcome-grid header span { padding: 4px 7px; border-radius: 999px; color: var(--green); background: rgba(69, 211, 165, .08); font-size: 8px; font-weight: 800; }
.outcome-grid h3 { margin: 18px 0 7px; font-size: 14px; }
.outcome-grid p { flex: 1; margin: 0 0 16px; color: var(--muted); font-size: 10px; line-height: 1.62; }
.outcome-grid > article > small { color: var(--aqua); font-size: 8px; font-weight: 750; }

.responsibility-panel { margin-top: 13px; overflow: hidden; border: 1px solid rgba(166, 139, 255, .23); border-radius: var(--radius-lg); background: linear-gradient(120deg, rgba(166, 139, 255, .07), rgba(91, 220, 233, .035)), var(--surface); }
.responsibility-panel > header { padding: 25px 27px 0; }
.responsibility-panel > header h2 { margin: 7px 0 0; font-size: clamp(21px, 2.2vw, 31px); letter-spacing: -.035em; }
.responsibility-grid { display: grid; grid-template-columns: minmax(0, 1fr) 46px minmax(0, 1fr); padding: 20px 27px; }
.responsibility-grid article { padding: 19px; border: 1px solid var(--line); border-radius: 12px; background: rgba(9, 23, 42, .72); }
.responsibility-grid article > span { color: var(--violet); font: 850 8px ui-monospace, monospace; letter-spacing: .08em; }
.responsibility-grid article:nth-of-type(2) > span { color: var(--green); }
.responsibility-grid h3 { margin: 5px 0 12px; font-size: 14px; }
.responsibility-grid > strong { display: grid; place-items: center; color: var(--violet); }
.responsibility-grid ul, .boundary-split ul, .caution-card ul { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.responsibility-grid li, .boundary-split li, .caution-card li { position: relative; padding-left: 15px; color: var(--muted); font-size: 9px; line-height: 1.55; }
.responsibility-grid li::before, .boundary-split li::before, .caution-card li::before { position: absolute; left: 0; color: var(--aqua); content: "•"; }
.responsibility-panel > footer { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 13px 27px; border-top: 1px solid var(--line); background: rgba(3, 10, 21, .2); }
.responsibility-panel > footer b { color: var(--amber); font-size: 9px; }
.responsibility-panel > footer p { margin: 0; color: var(--muted); font-size: 9px; }

.boundary-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 13px; }
.boundary-split > article { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.boundary-split > article.supported { border-color: rgba(69, 211, 165, .23); }
.boundary-split > article.limited { border-color: rgba(255, 196, 99, .23); }
.boundary-split header { display: flex; gap: 11px; align-items: flex-start; margin-bottom: 13px; }
.boundary-split header > i { display: grid; width: 32px; height: 32px; flex: none; place-items: center; border-radius: 9px; color: var(--green); background: rgba(69, 211, 165, .09); font-style: normal; font-weight: 900; }
.boundary-split .limited header > i { color: var(--amber); background: rgba(255, 196, 99, .08); }
.boundary-split header span { color: var(--green); font-size: 8px; font-weight: 800; }
.boundary-split .limited header span { color: var(--amber); }
.boundary-split h3 { margin: 2px 0 0; font-size: 13px; }
.boundary-split li { padding-top: 5px; padding-bottom: 5px; border-top: 1px solid var(--line-soft); }
.boundary-split .limited li::before, .caution-card li::before { color: var(--amber); }
.empty-copy { color: var(--muted); font-size: 10px; }

.guide-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(330px, .7fr); gap: 38px; align-items: center; padding: clamp(26px, 3vw, 40px); background: radial-gradient(circle at 90% 20%, rgba(91, 220, 233, .1), transparent 35%), linear-gradient(140deg, var(--surface), #0b1c31); }
.guide-hero > div > span { color: var(--green); font: 850 8px ui-monospace, monospace; letter-spacing: .1em; }
.guide-hero h2 { margin: 10px 0 12px; font-size: clamp(24px, 2.6vw, 38px); line-height: 1.2; letter-spacing: -.04em; }
.guide-hero p { max-width: 700px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.guide-hero ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.guide-hero li { min-height: 82px; padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: rgba(9, 25, 45, .74); }
.guide-hero li b, .guide-hero li span { display: block; }
.guide-hero li b { color: var(--aqua); font: 850 8px ui-monospace, monospace; }
.guide-hero li span { margin-top: 12px; font-size: 10px; font-weight: 750; }

.input-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.input-grid article { min-height: 156px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.input-grid i { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 8px; color: var(--aqua); background: rgba(91, 220, 233, .08); font: 850 8px ui-monospace, monospace; font-style: normal; }
.input-grid h3 { margin: 13px 0 6px; font-size: 12px; }
.input-grid p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.input-grid small { display: block; margin-top: 10px; color: var(--green); font-size: 8px; }

.checklist-panel > div { display: grid; gap: 7px; }
.checklist-panel article { display: grid; grid-template-columns: 35px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 75px; padding: 11px 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.checklist-panel article > span { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 8px; color: var(--aqua); background: rgba(91, 220, 233, .08); font: 850 8px ui-monospace, monospace; }
.checklist-panel h3 { margin: 0; font-size: 11px; }
.checklist-panel p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }
.checklist-panel em { color: var(--green); font: 750 7px ui-monospace, monospace; font-style: normal; }

.guide-callout { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-top: 13px; padding: 22px 25px; border: 1px solid rgba(82, 144, 255, .24); border-radius: 15px; background: radial-gradient(circle at 100% 0, rgba(82, 144, 255, .12), transparent 45%), var(--surface); }
.guide-callout span { color: #8db6ff; font: 850 8px ui-monospace, monospace; letter-spacing: .08em; }
.guide-callout h3 { margin: 5px 0 4px; font-size: 15px; }
.guide-callout p { margin: 0; color: var(--muted); font-size: 9px; }
.guide-callout button { flex: none; border: 1px solid rgba(111, 166, 255, .3); color: #dbe8ff; background: rgba(82, 144, 255, .11); }

.separation-banner { display: grid; grid-template-columns: 61px minmax(0, 1fr); gap: 17px; align-items: center; padding: 20px 23px; border: 1px solid rgba(255, 196, 99, .26); border-radius: 14px; background: rgba(255, 196, 99, .055); }
.separation-banner > span { display: grid; width: 57px; height: 57px; place-items: center; border-radius: 14px; color: var(--amber); background: rgba(255, 196, 99, .09); font-size: 26px; font-weight: 800; }
.separation-banner b { color: #ffe3ad; font-size: 14px; }
.separation-banner p { margin: 5px 0 0; color: #af9e7b; font-size: 10px; line-height: 1.58; }

.triage-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.triage-grid article { display: flex; flex-direction: column; min-height: 225px; padding: 17px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.triage-grid i { display: grid; width: 32px; height: 32px; place-items: center; margin-bottom: 15px; border-radius: 9px; color: var(--aqua); background: rgba(91, 220, 233, .08); font: 850 8px ui-monospace, monospace; font-style: normal; }
.triage-grid article > span { color: var(--green); font: 800 7px ui-monospace, monospace; letter-spacing: .06em; }
.triage-grid h3 { margin: 5px 0 7px; font-size: 13px; }
.triage-grid p { flex: 1; margin: 0 0 13px; color: var(--muted); font-size: 9px; line-height: 1.58; }
.triage-grid b { color: var(--aqua); font-size: 8px; }

.defect-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); gap: 13px; }
.capability-check > div { display: grid; gap: 7px; }
.capability-check article { display: grid; grid-template-columns: 27px minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); }
.capability-check article > i { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 7px; color: var(--green); background: rgba(69, 211, 165, .08); font-size: 9px; font-style: normal; }
.capability-check b, .capability-check small { display: block; }
.capability-check b { font-size: 10px; }
.capability-check small { margin-top: 3px; color: var(--muted); font-size: 8px; line-height: 1.5; }
.caution-card { border-color: rgba(255, 196, 99, .23); }
.caution-card li { padding-top: 7px; padding-bottom: 7px; border-top: 1px solid var(--line-soft); }

.synthetic-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  margin-bottom: 13px;
  padding: 13px 16px;
  border: 1px solid rgba(166, 139, 255, .25);
  border-radius: 11px;
  background: rgba(166, 139, 255, .06);
}

.synthetic-banner > span {
  padding: 5px 8px;
  border: 1px solid rgba(166, 139, 255, .27);
  border-radius: 5px;
  color: #c4b5ff;
  background: rgba(166, 139, 255, .08);
  font: 850 8px ui-monospace, monospace;
  letter-spacing: .08em;
}

.synthetic-banner b { display: block; color: #ddd4ff; font-size: 10px; }
.synthetic-banner p { margin: 2px 0 0; color: #958ab8; font-size: 8px; }

.product-frame {
  overflow: hidden;
  border: 1px solid #203c57;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #0a1728, #081321);
  box-shadow: var(--shadow);
}

.product-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 66px;
  padding: 11px 20px;
  border-bottom: 1px solid var(--line);
  background: #0c1b2e;
}

.product-toolbar > div:first-child { display: flex; align-items: center; gap: 11px; }
.product-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(69, 211, 165, .08), 0 0 14px rgba(69, 211, 165, .35); }
.product-toolbar small { display: block; color: var(--quiet); font: 750 7px ui-monospace, monospace; letter-spacing: .08em; }
.product-toolbar h2 { margin: 2px 0 0; font-size: 14px; }
.demo-chip { padding: 5px 8px; border: 1px solid rgba(166, 139, 255, .22); border-radius: 5px; color: #b9a8f4; background: rgba(166, 139, 255, .06); font: 800 7px ui-monospace, monospace; }

.product-metrics, .twin-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.product-metrics article, .twin-metrics article { min-height: 105px; padding: 18px 20px; border-right: 1px solid var(--line); background: rgba(12, 29, 49, .55); }
.product-metrics article:last-child, .twin-metrics article:last-child { border-right: 0; }
.product-metrics article > span, .twin-metrics article > span { display: block; color: var(--quiet); font-size: 8px; font-weight: 750; }
.product-metrics article > b, .twin-metrics article > b { display: block; margin-top: 7px; font: 850 25px ui-monospace, monospace; letter-spacing: -.04em; }
.product-metrics article > b small { margin-left: 3px; color: var(--quiet); font-size: 9px; }
.product-metrics article > b.text-value { font-family: inherit; font-size: 21px; }
.product-metrics article > em { display: inline-block; margin-top: 5px; color: var(--muted); font-size: 7px; font-style: normal; }
.product-metrics article > em.good { color: var(--green); }
.product-metrics article > em.review { color: var(--amber); }

.stability-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr); gap: 10px; padding: 14px; }
.chart-card, .phase-card, .factory-board, .scenario-card { border: 1px solid var(--line); border-radius: 13px; background: var(--surface-2); }
.chart-card { padding: 17px 18px 13px; }
.chart-card > header, .factory-board > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.chart-card header span, .phase-card header span, .factory-board header span, .scenario-card header span { color: var(--aqua); font: 800 7px ui-monospace, monospace; letter-spacing: .08em; }
.chart-card header h3, .phase-card header h3, .factory-board header h3, .scenario-card header h3 { margin: 3px 0 0; font-size: 12px; }
.chart-card header > small { color: var(--quiet); font-size: 7px; }

.stability-chart {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(16px, 1fr));
  gap: 5px;
  align-items: end;
  height: 205px;
  margin-top: 14px;
  padding: 13px 4px 21px;
  border-bottom: 1px solid #28425a;
  background-image: linear-gradient(rgba(115, 155, 183, .075) 1px, transparent 1px);
  background-size: 100% 42px;
}

.stability-chart .threshold { position: absolute; right: 0; left: 0; bottom: 75%; border-top: 1px dashed rgba(255, 196, 99, .48); }
.stability-chart > span { position: relative; display: flex; align-items: center; justify-content: flex-end; height: var(--bar); flex-direction: column; }
.stability-chart > span > b { margin-bottom: 3px; color: #90aabd; font: 700 6px ui-monospace, monospace; opacity: 0; transition: opacity .15s ease; }
.stability-chart > span:hover > b { opacity: 1; }
.stability-chart > span > i { width: min(20px, 74%); height: 100%; min-height: 4px; border-radius: 4px 4px 1px 1px; background: linear-gradient(180deg, var(--aqua), #2d76bb); box-shadow: 0 5px 11px rgba(46, 123, 180, .15); }
.stability-chart > span:nth-last-child(-n+4) > i { background: linear-gradient(180deg, var(--green), #268e78); }
.stability-chart > span > small { position: absolute; top: calc(100% + 7px); color: #557185; font: 650 6px ui-monospace, monospace; }
.chart-card > footer { display: flex; justify-content: space-between; gap: 10px; padding-top: 9px; color: var(--quiet); font-size: 7px; }
.chart-card > footer b { color: var(--green); font-weight: 750; }

.phase-card { padding: 17px; }
.phase-card > div { display: grid; gap: 13px; margin-top: 19px; }
.phase-card section { display: grid; grid-template-columns: 1fr auto; gap: 5px 9px; }
.phase-card section > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.phase-card section b { font-size: 9px; }
.phase-card section div span { color: var(--muted); font: 750 8px ui-monospace, monospace; }
.phase-card section > i { grid-column: 1; height: 5px; overflow: hidden; border-radius: 5px; background: #162c42; }
.phase-card section > i em { display: block; width: var(--share); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--aqua)); }
.phase-card section > small { grid-column: 2; grid-row: 2; color: var(--quiet); font-size: 7px; }
.phase-card > p { margin: 18px 0 0; padding-top: 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: 8px; line-height: 1.55; }

.diagnostic-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 0 14px 14px; }
.diagnostic-strip article { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 9px; align-items: center; min-height: 58px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; background: rgba(12, 30, 51, .66); }
.diagnostic-strip article > i { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 7px; font-size: 8px; font-style: normal; font-weight: 900; }
.diagnostic-strip article > i.good { color: var(--green); background: rgba(69, 211, 165, .08); }
.diagnostic-strip article > i.review { color: var(--amber); background: rgba(255, 196, 99, .08); }
.diagnostic-strip b, .diagnostic-strip small { display: block; }
.diagnostic-strip b { font-size: 9px; }
.diagnostic-strip small { margin-top: 2px; color: var(--quiet); font-size: 7px; }

.preview-explanation > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.preview-explanation article { padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.preview-explanation article span { color: var(--green); font-size: 8px; font-weight: 800; }
.preview-explanation article p { margin: 6px 0 0; color: var(--muted); font-size: 9px; line-height: 1.6; }

.scenario-switch { display: flex !important; gap: 5px !important; }
.scenario-switch button { min-height: 31px; padding: 0 9px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: #0a1728; font-size: 8px; font-weight: 750; cursor: pointer; }
.scenario-switch button.active { border-color: rgba(91, 220, 233, .36); color: var(--aqua); background: rgba(91, 220, 233, .09); }
.twin-metrics article > small { display: block; margin-top: 5px; color: var(--quiet); font-size: 7px; }

.twin-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr); gap: 10px; padding: 14px; }
.factory-board, .scenario-card { padding: 17px; }
.state-chip { padding: 4px 7px; border: 1px solid rgba(69, 211, 165, .18); border-radius: 999px; color: var(--green) !important; background: rgba(69, 211, 165, .07); }
.factory-line { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 23px; margin-top: 34px; padding: 0 6px; }
.factory-line > i.line { position: absolute; top: 39px; right: 8%; left: 8%; height: 2px; background: linear-gradient(90deg, #315f7f, var(--aqua), #315f7f); opacity: .45; }
.factory-line section { position: relative; z-index: 1; min-height: 170px; padding: 13px; border: 1px solid #24425d; border-radius: 12px; background: linear-gradient(145deg, #10243a, #0b1829); }
.factory-line section.needs-review { border-color: rgba(255, 196, 99, .42); box-shadow: inset 0 0 24px rgba(255, 196, 99, .04); }
.machine-icon { display: flex; align-items: end; gap: 4px; width: 57px; height: 55px; padding: 9px; border: 1px solid #2b5877; border-radius: 10px; background: #0a1829; }
.machine-icon > i:first-child { width: 20px; height: 34px; border: 2px solid #5c8da9; border-radius: 3px; }
.machine-icon > i:last-child { width: 13px; height: 23px; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, var(--aqua), #2d6c9a); }
.factory-line section small { display: block; margin-top: 12px; color: var(--aqua); font: 750 7px ui-monospace, monospace; }
.factory-line section b { display: block; margin-top: 3px; font-size: 10px; }
.factory-line section em { display: block; height: 5px; margin-top: 13px; overflow: hidden; border-radius: 5px; background: #172e44; }
.factory-line section em i { display: block; width: var(--load); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--green)); transition: width .25s ease; }
.factory-line section strong { display: block; margin-top: 5px; color: var(--muted); font: 700 7px ui-monospace, monospace; }
.factory-board > footer { margin-top: 24px; padding: 11px 13px; border-left: 3px solid var(--aqua); border-radius: 6px; color: var(--muted); background: rgba(91, 220, 233, .045); font-size: 8px; }

.scenario-card > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 19px; }
.scenario-card section { padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: #0a1829; }
.scenario-card section span, .scenario-card section b, .scenario-card section small { display: block; }
.scenario-card section span { color: var(--quiet); font-size: 7px; }
.scenario-card section b { margin: 5px 0; font: 850 18px ui-monospace, monospace; }
.scenario-card section small { color: var(--muted); font-size: 6px; }
.scenario-card ol { display: grid; gap: 8px; margin: 19px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); list-style: none; }
.scenario-card li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; align-items: center; color: var(--muted); font-size: 8px; }
.scenario-card li i { display: grid; width: 21px; height: 21px; place-items: center; border-radius: 6px; color: var(--aqua); background: rgba(91, 220, 233, .08); font: 800 7px ui-monospace, monospace; font-style: normal; }

.locked-view { display: grid; gap: 13px; min-height: calc(100vh - 160px); align-content: center; }
.locked-preview { display: grid; grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr); min-height: 475px; overflow: hidden; border: 1px solid rgba(255, 196, 99, .24); border-radius: 25px; background: var(--surface); box-shadow: var(--shadow); }
.lock-visual { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; border-right: 1px solid rgba(255, 196, 99, .16); background: radial-gradient(circle at 50% 42%, rgba(255, 196, 99, .12), transparent 30%), linear-gradient(145deg, #0c1a2d, #080f1c); }
.lock-visual::before { position: absolute; width: 310px; height: 310px; border: 1px solid rgba(255, 196, 99, .08); border-radius: 50%; box-shadow: 0 0 0 46px rgba(255, 196, 99, .018), 0 0 0 92px rgba(255, 196, 99, .012); content: ""; }
.lock-visual > span { position: relative; z-index: 1; width: 78px; height: 68px; margin-top: 27px; border: 2px solid #b28b4c; border-radius: 15px; background: linear-gradient(145deg, #263247, #151f31); box-shadow: 0 18px 38px rgba(0, 0, 0, .34); }
.lock-visual > span::before { position: absolute; bottom: 50px; left: 17px; width: 40px; height: 42px; border: 5px solid #b28b4c; border-bottom: 0; border-radius: 23px 23px 0 0; content: ""; }
.lock-visual > span i { position: absolute; top: 22px; left: 34px; width: 7px; height: 20px; border-radius: 6px; background: var(--amber); }
.lock-visual > b { z-index: 1; margin-top: 27px; color: #d9b879; font: 850 11px ui-monospace, monospace; letter-spacing: .14em; }
.lock-visual > small { z-index: 1; margin-top: 6px; color: #705f43; font: 750 7px ui-monospace, monospace; letter-spacing: .08em; }
.locked-copy { align-self: center; padding: clamp(35px, 5vw, 70px); }
.locked-copy > span { color: var(--amber); font: 850 9px ui-monospace, monospace; letter-spacing: .11em; }
.locked-copy h1 { margin: 11px 0 14px; font-size: clamp(36px, 4vw, 58px); letter-spacing: -.05em; }
.locked-copy > p { max-width: 700px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.72; }
.locked-copy ul { display: grid; gap: 9px; margin: 24px 0 0; padding: 0; list-style: none; }
.locked-copy li { display: flex; align-items: center; gap: 9px; color: #b8c8d4; font-size: 10px; }
.locked-copy li i { display: grid; width: 20px; height: 20px; place-items: center; border-radius: 50%; color: var(--green); background: rgba(69, 211, 165, .08); font-size: 8px; font-style: normal; }
.locked-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.locked-actions a, .locked-actions button { display: inline-flex; align-items: center; justify-content: center; gap: 11px; min-height: 43px; padding: 0 16px; border-radius: 9px; font-size: 10px; font-weight: 850; cursor: pointer; }
.locked-actions a { color: #271b06; background: linear-gradient(120deg, #ffd071, #f1aa4a); }
.locked-actions button { border: 1px solid var(--line); color: #d4e3ec; background: var(--surface-2); }
.access-note { display: block; margin-top: 13px; color: var(--quiet); font-size: 8px; }
.preview-boundary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.preview-boundary article { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 11px; min-height: 91px; padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.preview-boundary article > span { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 8px; color: var(--amber); background: rgba(255, 196, 99, .08); font: 850 8px ui-monospace, monospace; }
.preview-boundary b { font-size: 10px; }
.preview-boundary p { margin: 3px 0 0; color: var(--muted); font-size: 8px; line-height: 1.5; }

.main-footer { display: flex; justify-content: space-between; gap: 20px; width: min(1480px, 100%); margin: 0 auto; padding: 0 clamp(18px, 3vw, 42px) 25px; color: #516d80; font-size: 8px; }

@media (max-width: 1180px) {
  :root { --sidebar-width: 250px; }
  .metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .overview-grid { grid-template-columns: 1fr; }
  .flow-track, .family-grid, .outcome-grid, .input-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contract-grid, .triage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .evidence-strip > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stability-layout, .twin-layout { grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr); }
}

@media (max-width: 900px) {
  .dashboard-shell { display: block; }
  .sidebar { position: fixed; left: 0; width: min(320px, 88vw); transform: translateX(-104%); transition: transform .22s ease; box-shadow: 25px 0 65px rgba(0, 0, 0, .42); }
  .sidebar-open { overflow: hidden; }
  .sidebar-open .sidebar { transform: translateX(0); }
  .sidebar-close, .menu-toggle { display: block; }
  .sidebar-backdrop { position: fixed; z-index: 90; inset: 0; display: block; border: 0; background: rgba(1, 6, 13, .72); opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease; }
  .sidebar-open .sidebar-backdrop { opacity: 1; visibility: visible; }
  .overview-hero { grid-template-columns: 1fr; }
  .scope-card { max-width: none; }
  .page-heading { grid-template-columns: 1fr; gap: 10px; }
  .page-heading > p { text-align: left; }
  .guide-hero { grid-template-columns: 1fr; }
  .defect-grid { grid-template-columns: 1fr; }
  .stability-layout, .twin-layout { grid-template-columns: 1fr; }
  .factory-line { max-width: 720px; }
  .locked-preview { grid-template-columns: 1fr; }
  .lock-visual { min-height: 260px; border-right: 0; border-bottom: 1px solid rgba(255, 196, 99, .16); }
}

@media (max-width: 680px) {
  :root { --topbar-height: 58px; }
  .topbar { padding: 0 12px; }
  .breadcrumb span, .scope-chip { display: none; }
  .top-login { min-height: 36px; padding: 0 11px; }
  .top-login span { font-size: 9px; }
  #public-content { padding: 12px; }
  .overview-hero { gap: 24px; min-height: 0; padding: 28px 19px; border-radius: 18px; }
  .overview-copy h1 { font-size: 33px; }
  .overview-copy > p { font-size: 12px; }
  .hero-eyebrow { font-size: 8px; }
  .hero-actions { flex-direction: column; }
  .hero-actions button { width: 100%; }
  .scope-card { padding: 20px; }
  .dashboard-panel { padding: 20px 15px; border-radius: 16px; }
  .panel-head { grid-template-columns: 1fr; gap: 7px; }
  .panel-head > p { margin: 0; text-align: left; }
  .panel-head.compact { grid-template-columns: minmax(0, 1fr) auto; }
  .metric-grid, .service-map ol, .flow-track, .family-grid, .contract-grid, .outcome-grid, .input-grid, .triage-grid, .boundary-split, .preview-boundary { grid-template-columns: 1fr; }
  .metric-card { min-height: 91px; }
  .evidence-strip > div { grid-template-columns: 1fr; }
  .responsibility-grid { grid-template-columns: 1fr; padding: 18px; }
  .responsibility-grid > strong { min-height: 34px; }
  .responsibility-panel > header { padding: 22px 18px 0; }
  .responsibility-panel > footer { grid-template-columns: 1fr; padding: 13px 18px; }
  .guide-hero ol { grid-template-columns: 1fr; }
  .checklist-panel article { grid-template-columns: 33px minmax(0, 1fr); }
  .checklist-panel em { grid-column: 2; }
  .guide-callout { align-items: stretch; flex-direction: column; }
  .guide-callout button { width: 100%; }
  .synthetic-banner { align-items: start; }
  .product-toolbar { align-items: flex-start; flex-direction: column; }
  .product-toolbar.twin-toolbar { gap: 11px; }
  .scenario-switch { width: 100%; }
  .scenario-switch button { flex: 1; }
  .product-metrics, .twin-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-metrics article:nth-child(2), .twin-metrics article:nth-child(2) { border-right: 0; }
  .product-metrics article:nth-child(-n+2), .twin-metrics article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .stability-chart { grid-template-columns: repeat(12, minmax(10px, 1fr)); gap: 3px; height: 175px; }
  .diagnostic-strip { grid-template-columns: 1fr; }
  .preview-explanation > div { grid-template-columns: 1fr; }
  .factory-line { grid-template-columns: 1fr; gap: 8px; margin-top: 18px; }
  .factory-line > i.line { display: none; }
  .factory-line section { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 0 12px; min-height: 105px; }
  .machine-icon { grid-row: 1 / 6; }
  .factory-line section small { margin-top: 0; }
  .separation-banner { grid-template-columns: 45px minmax(0, 1fr); padding: 17px; }
  .separation-banner > span { width: 43px; height: 43px; font-size: 21px; }
  .locked-preview { border-radius: 18px; }
  .lock-visual { min-height: 225px; }
  .locked-copy { padding: 30px 21px; }
  .locked-copy h1 { font-size: 37px; }
  .locked-copy > p { font-size: 11px; }
  .locked-actions { flex-direction: column; }
  .locked-actions a, .locked-actions button { width: 100%; }
  .main-footer { display: grid; padding: 7px 12px 22px; }
}

@media (max-width: 390px) {
  .top-login span { display: none; }
  .top-login { width: 37px; padding: 0; }
  .page-heading h1 { font-size: 29px; }
  .overview-copy h1 { font-size: 29px; }
  .hero-tags span { font-size: 8px; }
  .scope-card dl div { grid-template-columns: 76px minmax(0, 1fr); }
  .synthetic-banner { grid-template-columns: 1fr; }
  .synthetic-banner > span { justify-self: start; }
  .product-frame { border-radius: 16px; }
  .product-metrics article, .twin-metrics article { padding: 15px; }
  .product-metrics article > b, .twin-metrics article > b { font-size: 21px; }
  .stability-layout, .twin-layout { padding: 9px; }
  .chart-card, .phase-card, .factory-board, .scenario-card { padding: 13px; }
  .stability-chart { height: 155px; }
  .scenario-card > div { grid-template-columns: 1fr; }
}

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

/* Light is the public default. Keep the portal product-like, but readable in a
   meeting room and on ordinary office displays. */
:root {
  color-scheme: light;
  --bg: #f3f7fa;
  --sidebar: #ffffff;
  --surface: #ffffff;
  --surface-2: #f7fafc;
  --surface-3: #edf4f7;
  --line: #d4e0e7;
  --line-soft: rgba(42, 78, 99, .12);
  --text: #132d3c;
  --muted: #4f6878;
  --quiet: #657e8e;
  --aqua: #087f8e;
  --green: #08785e;
  --blue: #2868bd;
  --violet: #7056b8;
  --amber: #9a6414;
  --red: #b74646;
  --sidebar-width: 292px;
  --shadow: 0 18px 48px rgba(31, 61, 78, .11);
}

body { font-size: 15px; }
.sidebar {
  border-right-color: var(--line);
  background: radial-gradient(circle at 35% -8%, rgba(46, 143, 170, .10), transparent 28%), #fff;
  box-shadow: 3px 0 18px rgba(30, 58, 75, .05);
}
.brand b { color: var(--text); font-size: 14px; }
.brand small { color: var(--quiet); font-size: 10px; }
.public-status { border-color: rgba(8, 120, 94, .2); background: #eef9f5; }
.public-status b { color: #136a56; font-size: 12px; }
.public-status small { color: #537b70; font-size: 11px; }
.side-nav > p { color: #617887; font-size: 10px; }
.side-nav button { color: #486373; }
.side-nav button:hover { border-color: #d5e4eb; color: #173447; background: #f4f8fa; }
.side-nav button.active {
  border-color: #b8dce3;
  color: #0b6572;
  background: linear-gradient(90deg, #e5f5f7, #f3faf8);
}
.side-nav button b { font-size: 13px; }
.side-nav button small, .side-nav button.active small { color: #637c8c; font-size: 11px; }
.side-nav button > em { border-color: #dcc79f; color: #7b5b22; background: #fff8e9; font-size: 10px; }
.nav-icon { border-color: #cbdde6; background: #eef5f8; }
.nav-icon::before { color: #51788c; font-size: 10px; }
.side-nav button.locked .nav-icon::after { border-color: #a98b54; background: #fff8e9; }
.sidebar-login { border-color: #c9dcf5; background: radial-gradient(circle at 100% 0, rgba(82, 144, 255, .12), transparent 52%), #f1f6fd; }
.sidebar-login > span { color: #356aa8; font-size: 10px; }
.sidebar-login p { color: #536c7c; font-size: 12px; line-height: 1.6; }
.sidebar-login a { color: #fff; background: linear-gradient(120deg, #256cc7, #087f8e); font-size: 12px; }
.sidebar-footer { color: #6c8391; font-size: 10px; }

.topbar { border-bottom-color: var(--line); background: rgba(255, 255, 255, .94); box-shadow: 0 3px 18px rgba(31, 61, 78, .07); }
.menu-toggle i { background: #496879; }
.breadcrumb span { color: #627d8d; font-size: 10px; }
.breadcrumb span::after { color: #91a7b3; }
.breadcrumb b { color: var(--text); font-size: 14px; }
.scope-chip { border-color: #b9ddd2; color: #176c57; background: #eff9f5; font-size: 11px; }
.top-login { border-color: #a8d1da; color: #0b6572; background: #f0fafb; font-size: 12px; }
.top-login:hover { border-color: var(--aqua); background: #e4f5f7; }

.dashboard-panel { background: linear-gradient(145deg, #fff, #f8fbfc); box-shadow: 0 8px 28px rgba(31, 61, 78, .07); }
.guide-hero { background: radial-gradient(circle at 90% 20%, rgba(8, 127, 142, .10), transparent 35%), linear-gradient(140deg, #fff, #f1f7fa); }
.guide-hero li { background: #f7fafc; }
.guide-hero > div > span, .guide-hero li b { font-size: 11px; }
.guide-hero p, .guide-hero li span { font-size: 13px; }
.input-grid p, .input-grid small, .checklist-panel p,
.checklist-panel em, .guide-callout p, .triage-grid p,
.triage-grid b, .capability-check small { font-size: 11px; }
.input-grid i, .checklist-panel article > span,
.triage-grid i, .triage-grid article > span { font-size: 11px; }
.input-grid h3, .checklist-panel h3,
.capability-check b { font-size: 13px; }
.guide-callout span { color: #356aa8; font-size: 11px; }
.guide-callout button { border-color: #b9d0ec; color: #245b99; background: #eef5fd; }
.separation-banner { background: #fff8eb; }
.separation-banner b { color: #76501a; }
.separation-banner p { color: #756448; font-size: 12px; }
.panel-head > p { font-size: 13px; }
.panel-head > button { color: #0b6673; background: #eef7f9; font-size: 12px; }
.overview-hero {
  border-color: #bddce3;
  background: radial-gradient(circle at 80% 0, rgba(31, 174, 141, .13), transparent 31%), radial-gradient(circle at 0 100%, rgba(61, 119, 205, .13), transparent 39%), linear-gradient(135deg, #f8fcff, #eef8fb 56%, #effaf7);
}
.overview-hero::before { background-image: linear-gradient(rgba(61, 125, 151, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(61, 125, 151, .07) 1px, transparent 1px); }
.overview-copy > p { color: #3f6072; }
.hero-eyebrow { font-size: 11px; }
.hero-tags span { border-color: #c4dce5; color: #345d72; background: rgba(255, 255, 255, .75); font-size: 11px; }
.hero-actions button, .guide-callout button { font-size: 12px; }
.primary-action { color: #fff; background: linear-gradient(120deg, #08785e, #087f8e); }
.secondary-action { border-color: #abcbd7; color: #1d5368; background: rgba(255, 255, 255, .82); }
.scope-card { border-color: #bdd7df; background: rgba(255, 255, 255, .84); box-shadow: 0 12px 30px rgba(31, 61, 78, .09); }
.scope-card > span { font-size: 10px; }
.scope-card > p { color: #526d7c; font-size: 12px; }
.scope-card dl { border-top-color: #d5e2e8; }
.scope-card dl div { border-bottom-color: #dce6eb; }
.scope-card dt { color: #607b8b; font-size: 11px; }
.scope-card dd { color: #17374a; font-size: 11px; }

.contract-grid article { background: linear-gradient(145deg, #fff, #f5f8fb); }
.responsibility-grid article { background: rgba(255, 255, 255, .78); }
.responsibility-panel > footer { background: #f5f8fb; }
.synthetic-banner { border-color: #d7ccf0; background: #f5f1fd; }
.synthetic-banner > span { border-color: #cbbce9; color: #634c9f; background: #ede6fa; font-size: 10px; }
.synthetic-banner b { color: #3e315f; font-size: 12px; }
.synthetic-banner p { color: #685e7e; font-size: 11px; }
.product-frame { border-color: #b9cdd9; background: #fff; }
.product-toolbar { border-bottom-color: var(--line); background: #edf5f8; }
.product-toolbar small { color: #5e7a8a; font-size: 10px; }
.product-toolbar h2 { color: #17384a; }
.demo-chip { border-color: #cbbce9; color: #634c9f; background: #f1ecfa; }
.product-metrics article, .twin-metrics article { background: #f5f9fb; }
.chart-card, .phase-card, .factory-board, .scenario-card { background: #f8fbfc; }
.stability-chart { border-bottom-color: #b7cad5; background-image: linear-gradient(rgba(70, 103, 122, .10) 1px, transparent 1px); }
.phase-card section > i, .factory-line section em { background: #d8e5eb; }
.diagnostic-strip article { background: #f7fafc; }
.scenario-switch button { color: #506b7c; background: #f3f7f9; }
.factory-line > i.line { background: linear-gradient(90deg, #89adbd, var(--aqua), #89adbd); }
.factory-line section { border-color: #c8dae3; background: linear-gradient(145deg, #fff, #eef5f8); }
.machine-icon { border-color: #a9c6d4; background: #edf5f8; }
.scenario-card section { background: #f3f8fa; }
.lock-visual { border-color: #dfcda8; background: radial-gradient(circle at 50% 42%, rgba(196, 143, 46, .12), transparent 30%), linear-gradient(145deg, #fffaf0, #f5f7fa); }
.lock-visual > span { background: linear-gradient(145deg, #fff, #e9eef2); box-shadow: 0 14px 32px rgba(64, 73, 80, .16); }
.lock-visual > small { color: #806e4c; }
.locked-copy li { color: #405e70; }
.locked-actions button { color: #315368; background: #f2f7f9; }

.metric-card span, .metric-card small,
.service-map li p, .capability-preview article small,
.evidence-strip article small, .flow-track article p,
.family-grid small, .family-grid p, .family-grid article b,
.contract-grid p, .outcome-grid > article > small,
.responsibility-grid li, .responsibility-panel > footer p,
.boundary-split li, .caution-card li,
.preview-explanation article p, .access-note,
.preview-boundary p, .main-footer { font-size: 11px; }
.service-map li b, .capability-preview article b,
.evidence-strip article b, .flow-track article h3,
.family-grid h3, .contract-grid h3,
.product-toolbar h2, .chart-card header h3,
.phase-card header h3, .factory-board header h3,
.scenario-card header h3, .diagnostic-strip b,
.preview-boundary b { font-size: 13px; }
.service-map li > i, .capability-preview article > i,
.evidence-strip article span, .flow-track article > i,
.flow-track article span, .family-grid article > i,
.contract-grid span, .outcome-grid header i,
.outcome-grid header span, .responsibility-grid article > span,
.chart-card header span, .phase-card header span,
.factory-board header span, .scenario-card header span,
.demo-chip, .product-metrics article > span,
.twin-metrics article > span, .product-metrics article > em,
.chart-card header > small, .chart-card > footer,
.phase-card section > small, .factory-line section small,
.factory-line section strong, .factory-board > footer,
.scenario-card section span, .scenario-card section small,
.scenario-card li, .scenario-card li i,
.lock-visual > small, .preview-boundary article > span { font-size: 11px; }
.phase-card section b, .phase-card section div span,
.diagnostic-strip small, .preview-explanation article span,
.scenario-switch button, .factory-line section b,
.locked-copy li, .access-note { font-size: 12px; }
.main-footer { color: #617b8b; }

@media (max-width: 680px) {
  .top-login span { font-size: 11px; }
  .overview-copy > p { font-size: 14px; }
  .hero-eyebrow { font-size: 10px; }
  .locked-copy > p { font-size: 13px; }
}

@media (max-width: 390px) {
  .hero-tags span { font-size: 10px; }
}
