:root {
  --ink: #eff8f2;
  --muted: #8ea39c;
  --dim: #536760;
  --base: #07100e;
  --surface: rgba(13, 26, 23, .82);
  --surface-strong: rgba(16, 34, 29, .94);
  --line: rgba(155, 194, 178, .15);
  --line-bright: rgba(182, 238, 209, .34);
  --lime: #b9f47b;
  --mint: #66e2b0;
  --cyan: #4cc9d5;
  --amber: #f2c36b;
  --coral: #ef806b;
  --shadow: 0 24px 80px rgba(0, 0, 0, .28);
  --radius-lg: 24px;
  --radius-md: 15px;
  font-synthesis: none;
}

@property --glow-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { min-width: 320px; background: var(--base); }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 18%, rgba(99, 213, 162, .09), transparent 28%),
    radial-gradient(circle at 86% 8%, rgba(76, 201, 213, .06), transparent 23%),
    linear-gradient(150deg, #07100e 0%, #091512 48%, #050b0a 100%);
  font-family: "Segoe UI Variable", "Noto Sans KR", "Malgun Gothic", sans-serif;
}

button, textarea, select { font: inherit; }
button { color: inherit; }

#network-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .36;
  pointer-events: none;
}

.noise {
  position: fixed;
  inset: 0;
  opacity: .17;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.14'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 74px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 13, 11, .75);
  backdrop-filter: blur(22px) saturate(130%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  color: var(--ink);
  text-decoration: none;
}

.brand img { filter: drop-shadow(0 0 14px rgba(185, 244, 123, .24)); }
.brand .brand-copy { display: grid; gap: 1px; }
.brand strong { font-size: 17px; letter-spacing: -.02em; }
.brand small { color: var(--muted); font-family: "Cascadia Mono", Consolas, monospace; font-size: 8px; letter-spacing: .18em; }
.version-badge {
  align-self: flex-start;
  margin-top: 2px;
  padding: 3px 7px;
  border: 1px solid rgba(185, 244, 123, .28);
  border-radius: 999px;
  color: var(--lime);
  background: rgba(185, 244, 123, .07);
  font: 700 11px/1.2 "Cascadia Mono", Consolas, monospace;
  letter-spacing: .03em;
  box-shadow: inset 0 0 12px rgba(185, 244, 123, .04);
}

.system-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(12, 25, 21, .7);
  font-size: 12px;
}

.system-pill i, .live-label i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 10px currentColor;
}

.system-pill.ready i, .live-label i { background: var(--lime); }
.system-pill.degraded i { background: var(--coral); }

.top-actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
.icon-button, .profile { border: 1px solid var(--line); background: rgba(13, 27, 23, .66); }
.icon-button { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; cursor: pointer; }
.icon-button svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-button:hover { border-color: var(--line-bright); transform: rotate(12deg); }
.profile { display: flex; align-items: center; gap: 8px; padding: 4px 11px 4px 4px; border-radius: 999px; }
.profile span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #132018; background: var(--lime); font-size: 11px; font-weight: 700; }
.profile b { font-size: 11px; font-weight: 600; }
.company-logo {
  display: flex;
  align-items: center;
  width: clamp(176px, 13vw, 228px);
  min-height: 42px;
  margin-left: 18px;
  padding-left: 24px;
  border-left: 1px solid var(--line);
  opacity: .94;
}
.company-logo img {
  display: block;
  width: 100%;
  height: auto;
  filter: grayscale(1) saturate(0) brightness(4.15) contrast(.72) drop-shadow(0 0 9px rgba(222, 237, 242, .34));
}
.company-logo:hover { opacity: 1; }
.company-logo:hover img { filter: grayscale(1) saturate(0) brightness(4.45) contrast(.74) drop-shadow(0 0 12px rgba(232, 244, 247, .46)); }

.workspace {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 270px minmax(560px, .95fr) minmax(620px, 1.05fr);
  min-height: calc(100vh - 74px);
}

.rail {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding: 25px 12px;
  border-right: 1px solid var(--line);
  background: rgba(5, 13, 11, .38);
}

.rail-button {
  width: 100%;
  min-height: 55px;
  display: grid;
  grid-template-columns: 34px 1fr;
  place-items: center start;
  gap: 3px;
  border: 0;
  border-radius: 13px;
  color: var(--dim);
  background: transparent;
  cursor: pointer;
  transition: transform .15s ease, color .15s ease, background .15s ease;
}
.rail-button .rail-icon { font-family: "Cascadia Mono", Consolas, monospace; font-size: 21px; line-height: 1; }
.rail-button em { font-style: normal; font-size: 17px; }
.rail-button:hover, .rail-button.active { color: var(--lime); background: rgba(176, 237, 116, .08); }
.rail-button:active { transform: scale(.94); }
.rail-spacer { flex: 1; }

.history-dock { min-height: 260px; max-height: 42vh; display: flex; flex-direction: column; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: rgba(10,23,19,.68); }
.history-dock > div { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.history-dock b { font-size: 18px; }
.history-dock span { color: var(--dim); font-size: 13px; }
#history-list { margin: 0; padding: 0; overflow: auto; list-style: none; }
#history-list li { border-top: 1px solid var(--line); }
#history-list button { width: 100%; display: grid; gap: 4px; padding: 10px 2px; text-align: left; border: 0; color: var(--muted); background: transparent; cursor: pointer; }
#history-list button:hover { color: var(--lime); }
#history-list button b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; font-weight: 500; }
#history-list button span { font-size: 13px; }

.drop-hint { padding: 9px 12px; border: 1px dashed rgba(102,226,176,.3); border-radius: 12px; color: var(--muted); font-size: 17px; text-align: center; }
.drag-active .composer { border-color: var(--lime); box-shadow: 0 0 0 4px rgba(185,244,123,.12), var(--shadow); }
.prompt-transform { display: grid; gap: 8px; margin: 12px 0 18px; padding: 14px 16px; border-left: 3px solid var(--mint); border-radius: 0 14px 14px 0; background: rgba(73,142,116,.12); }
.prompt-transform[hidden], .feedback-row[hidden], .result-summary[hidden] { display: none; }
.prompt-transform span { color: var(--mint); font-size: 15px; font-weight: 700; }
.prompt-transform code { color: #d6e9de; font-family: "Cascadia Mono", Consolas, monospace; font-size: 16px; line-height: 1.65; white-space: pre-wrap; }

.result-actions { display: flex; gap: 7px; align-items: center; }
.result-summary { margin-top: 16px; padding: 15px 18px; border: 1px solid rgba(185,244,123,.2); border-radius: 14px; background: rgba(185,244,123,.055); }
.result-summary b { color: var(--lime); font-size: 18px; }
.result-summary p { margin: 7px 0 0; color: var(--muted); font-size: 17px; line-height: 1.6; }
.feedback-row { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: 17px; }
.feedback-row button { padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: transparent; cursor: pointer; }
.feedback-row button:hover, .feedback-row button.selected { color: var(--lime); border-color: rgba(185,244,123,.4); background: rgba(185,244,123,.08); }
.token-savings-card[hidden] { display: none; }
.token-savings-card { display: grid; gap: 10px; margin-top: 15px; padding: 15px 18px; border: 1px solid rgba(111, 203, 255, .32); border-radius: 14px; background: linear-gradient(135deg, rgba(15, 43, 54, .62), rgba(8, 24, 24, .78)); }
.token-savings-card.estimated { border-color: rgba(242, 195, 107, .38); background: linear-gradient(135deg, rgba(56, 43, 20, .48), rgba(8, 24, 24, .78)); }
.token-savings-card.not_measurable { border-color: rgba(151, 174, 164, .28); background: rgba(21, 32, 29, .58); }
.token-savings-heading { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.token-savings-heading span { color: var(--mint); font: 700 10px/1.2 "Cascadia Mono", Consolas, monospace; letter-spacing: .14em; }
.token-savings-heading b { color: #dff5e8; font-size: 17px; }
.token-savings-heading strong { color: var(--lime); font: 700 18px/1.2 "Cascadia Mono", Consolas, monospace; }
.token-savings-card.estimated .token-savings-heading strong { color: var(--amber); }
.token-savings-card.not_measurable .token-savings-heading strong { color: var(--muted); font-family: inherit; font-size: 16px; }
.token-savings-metrics { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 14px; }
.token-savings-metrics b { color: #d9eee2; font-family: "Cascadia Mono", Consolas, monospace; font-weight: 600; }
.token-savings-card p { margin: 0; color: var(--dim); font-size: 13px; line-height: 1.5; }
.clarification-card { display: grid; gap: 13px; margin-top: 15px; padding: 18px; border: 1px solid rgba(242,195,107,.35); border-radius: 15px; background: rgba(242,195,107,.06); }
.clarification-card[hidden] { display: none; }
.clarification-card > b { color: var(--amber); font-size: 19px; }
.clarification-card label { display: grid; gap: 6px; color: var(--muted); font-size: 17px; }
.clarification-card textarea { min-height: 70px; margin: 0; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(0,0,0,.16); }
.clarification-card button { justify-self: end; padding: 10px 15px; border: 0; border-radius: 10px; color: #172015; background: var(--amber); font-size: 17px; cursor: pointer; }
.knowledge-gained { animation: knowledgeAura 3.6s ease-in-out 2; }

.session-overlay, .analytics-overlay, .node-health-overlay { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 18px; background: rgba(2,8,7,.86); backdrop-filter: blur(18px); }
.session-overlay[hidden], .analytics-overlay[hidden], .node-health-overlay[hidden] { display: none; }
.session-overlay > div, .analytics-dialog { width: min(1480px, calc(100vw - 36px)); padding: 34px; border: 1px solid var(--line-bright); border-radius: 24px; background: #0b1a16; box-shadow: 0 40px 120px rgba(0,0,0,.5); }
.analytics-backdrop-close { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: default; }
.analytics-dialog { position: relative; z-index: 1; }
.session-overlay span, .analytics-dialog header span { color: var(--mint); font-family: "Cascadia Mono", monospace; font-size: 15px; letter-spacing: .14em; }
.session-overlay h2 { margin: 14px 0; font-size: 30px; }
.session-overlay p { color: var(--muted); font-size: 19px; line-height: 1.7; }
.session-overlay button, .analytics-dialog button { padding: 11px 16px; border: 1px solid var(--line-bright); border-radius: 11px; color: #102017; background: var(--lime); font-size: 17px; cursor: pointer; }
.analytics-dialog header { display: flex; justify-content: space-between; align-items: start; }
.analytics-dialog header button { padding: 4px 13px; color: var(--muted); background: transparent; font-size: 28px; }
.analytics-dialog nav { display: flex; gap: 8px; margin: 20px 0; }
.analytics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.analytics-grid article { display: grid; gap: 8px; min-height: 115px; padding: 17px; border: 1px solid var(--line); border-radius: 16px; background: rgba(14,31,26,.8); }
.analytics-grid article.wide { grid-column: 1 / -1; }
.analytics-grid span, .analytics-grid small { color: var(--muted); font-size: 15px; }
.analytics-grid b { color: var(--lime); font-size: 24px; }
.analytics-dialog section { margin-top: 20px; }
.analytics-dialog section li { color: var(--muted); font-size: 15px; line-height: 1.6; }
.analytics-dialog { width: min(1480px, calc(100vw - 36px)); height: min(94vh, 1120px); max-height: 94vh; overflow: auto; }
.access-admin-section { padding: 18px; border: 1px solid rgba(127,225,183,.34); border-radius: 18px; background: linear-gradient(120deg, rgba(127,225,183,.08), rgba(7,23,17,.62)); }
.access-admin-heading { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.access-admin-heading h3 { margin: 0; color: var(--mint); font-size: 21px; }
.access-admin-heading p { max-width: 920px; margin: 6px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.access-admin-heading button { flex: 0 0 auto; padding: 8px 11px; color: var(--text); background: rgba(127,225,183,.08); font-size: 14px; }
.access-admin-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.access-admin-stats span { display: grid; gap: 5px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 11px; color: var(--muted); font-size: 13px; }
.access-admin-stats b { color: var(--lime); font-size: 18px; }
.access-session-list, .access-request-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 12px; }
.access-session-card, .access-request-card { display: grid; gap: 8px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 13px; background: rgba(0,0,0,.14); }
.admin-infrastructure-section { padding: 18px; border: 1px solid rgba(245,184,91,.36); border-radius: 18px; background: linear-gradient(120deg, rgba(245,184,91,.08), rgba(7,23,17,.62)); }
.admin-infrastructure-heading { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.admin-infrastructure-heading h3 { margin: 0; color: var(--amber); font-size: 21px; }
.admin-infrastructure-heading p { max-width: 920px; margin: 6px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.admin-infrastructure-heading button { flex: 0 0 auto; padding: 8px 11px; color: var(--text); background: rgba(245,184,91,.1); font-size: 14px; }
.admin-infrastructure-card { display: grid; gap: 12px; margin-top: 14px; }
.admin-infrastructure-summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 13px; background: rgba(0,0,0,.14); }
.admin-infrastructure-summary div { display: grid; gap: 4px; }
.admin-infrastructure-summary span, .admin-infrastructure-summary small, .admin-infrastructure-evidence, .admin-infrastructure-limitations { color: var(--muted); font-size: 13px; line-height: 1.55; }
.admin-infrastructure-summary b { color: var(--text); font-size: 15px; }
.admin-infrastructure-summary strong, .admin-infrastructure-grid article strong { color: var(--mint); }
.admin-infrastructure-summary strong, .admin-infrastructure-grid article strong { padding: 4px 8px; border-radius: 999px; background: rgba(127,225,183,.12); font-size: 12px; }
.admin-infrastructure-summary strong.attention, .admin-infrastructure-grid article.attention strong { color: var(--amber); background: rgba(245,184,91,.12); }
.admin-infrastructure-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.admin-infrastructure-grid article { display: grid; gap: 7px; min-height: 82px; padding: 12px 13px; border: 1px solid rgba(127,225,183,.26); border-radius: 13px; background: rgba(0,0,0,.14); }
.admin-infrastructure-grid article.attention { border-color: rgba(245,184,91,.36); }
.admin-infrastructure-grid article b { color: var(--text); font-size: 14px; }
.admin-infrastructure-grid article span { color: var(--muted); font-size: 12px; line-height: 1.45; }
.admin-infrastructure-evidence, .admin-infrastructure-limitations { display: grid; gap: 4px; padding: 10px 12px; border-left: 2px solid rgba(127,225,183,.4); background: rgba(0,0,0,.1); }
.admin-infrastructure-limitations { border-left-color: rgba(245,184,91,.45); }
.admin-infrastructure-evidence b, .admin-infrastructure-limitations b { color: var(--text); }
.admin-infrastructure-empty { display: grid; gap: 5px; padding: 14px; border: 1px dashed rgba(245,184,91,.5); border-radius: 13px; color: var(--muted); }
.admin-infrastructure-empty b { color: var(--amber); }
.access-session-card { border-color: rgba(127,225,183,.28); }
.access-session-card div, .access-request-card header, .access-request-card footer { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.access-session-card b, .access-request-card header b { color: var(--text); font-size: 15px; }
.access-session-card span, .access-request-card header span { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; }
.access-session-card small, .access-request-card small { color: var(--dim); font-size: 12px; line-height: 1.5; }
.access-request-card header strong { flex: 0 0 auto; padding: 4px 8px; border-radius: 999px; color: var(--amber); background: rgba(245,184,91,.12); font-size: 12px; }
.access-request-card.approved { border-color: rgba(127,225,183,.38); }
.access-request-card.approved header strong { color: var(--mint); background: rgba(127,225,183,.12); }
.access-request-card.revoked { opacity: .78; }
.access-request-card.revoked header strong { color: #ffb5b5; background: rgba(245,119,119,.12); }
.access-request-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.access-request-meta span { padding: 4px 7px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); font-size: 12px; }
.access-request-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.access-action { padding: 7px 10px !important; font-size: 13px !important; }
.access-action.revoke { color: #24110e !important; background: #ffb0a4 !important; border-color: rgba(255,176,164,.65) !important; }
.access-action:disabled { cursor: not-allowed; opacity: .48; }
.access-empty { grid-column: 1 / -1; margin: 0; padding: 11px; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); font-size: 13px; }
.access-request-box { display: grid; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.access-request-box h3 { margin: 0; color: var(--mint); font-size: 17px; }
.access-request-box > p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.access-request-box .login-field { margin-top: 2px; }
.access-request-submit { padding: 10px 13px; border: 1px solid rgba(127,225,183,.42); border-radius: 10px; color: #102017; background: var(--mint); font-size: 15px; font-weight: 700; cursor: pointer; }
.access-request-submit:disabled { cursor: wait; opacity: .65; }
#knowledge-review-list { display: grid; gap: 10px; }
.reference-only-section { padding-top: 4px; }
.reference-only-hero { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 18px 20px; border: 1px solid rgba(127,225,183,.48); border-radius: 16px; background: linear-gradient(120deg, rgba(127,225,183,.15), rgba(14,31,26,.72)); box-shadow: inset 0 0 22px rgba(127,225,183,.04); }
.reference-only-hero div { display: grid; gap: 6px; }
.reference-only-hero span, .reference-only-hero small { color: var(--muted); font-size: 13px; }
.reference-only-hero b { color: var(--mint); font-size: 17px; }
.reference-only-hero strong { color: var(--lime); font-size: 32px; white-space: nowrap; }
.reference-only-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.reference-only-grid span, .reference-only-guards span { display: grid; gap: 5px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); font-size: 13px; }
.reference-only-grid b, .reference-only-guards b { color: var(--text); font-size: 16px; }
.reference-only-guards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.reference-only-guards span:first-child b, .reference-only-guards span:nth-child(2) b { color: var(--amber); }
.reference-only-location { margin: 10px 0 0; color: var(--muted); font: 12px/1.5 "Cascadia Mono", Consolas, monospace; }
.reference-only-empty { padding: 16px; border: 1px dashed rgba(245,184,91,.5); border-radius: 14px; color: var(--amber); background: rgba(245,184,91,.07); }
.technical-archive-note { color: var(--muted); font-size: 15px; line-height: 1.6; }
.technical-archive-guard { display: flex; justify-content: space-between; gap: 16px; padding: 14px 16px; border: 1px solid rgba(245,184,91,.45); border-radius: 14px; background: rgba(245,184,91,.08); color: var(--muted); }
.technical-archive-guard b { color: var(--lime); }
.technical-archive-review-batch { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 8px 14px; margin-top: 10px; padding: 13px 16px; border: 1px solid rgba(127,225,183,.35); border-radius: 14px; background: rgba(127,225,183,.07); }
.technical-archive-review-batch b { color: var(--mint); }
.technical-archive-review-batch span { color: var(--text); }
.technical-archive-review-batch small { grid-column: 1 / -1; color: var(--muted); }
.technical-archive-totals { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 12px; }
.technical-archive-totals span { display: grid; gap: 5px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); font-size: 13px; }
.technical-archive-totals b { color: var(--lime); font-size: 18px; }
.technical-archive-tables { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.technical-archive-tables h4 { margin: 0 0 7px; color: var(--mint); }
.technical-archive-tables table { width: 100%; border-collapse: collapse; font-size: 13px; }
.technical-archive-tables th, .technical-archive-tables td { padding: 7px 6px; border-bottom: 1px solid var(--line); text-align: right; }
.technical-archive-tables th:first-child, .technical-archive-tables td:first-child { text-align: left; }
.technical-archive-tables th { color: var(--muted); font-weight: 500; }
.technical-archive-tables td { color: var(--text); }
.knowledge-review { padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.02); }
.review-preview-panel { margin-top: 18px; padding: 16px; border: 1px solid rgba(127,225,183,.25); border-radius: 16px; background: rgba(6, 18, 14, .66); }
.review-preview-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.review-preview-heading h4 { margin: 0; color: var(--mint); font-size: 19px; }
.review-preview-heading p { margin: 5px 0 0; color: var(--muted); font-size: 14px; }
.review-preview-actions { display: flex; align-items: center; gap: 10px; }
.review-preview-actions > b { color: var(--lime); font: 700 16px "Cascadia Mono", Consolas, monospace; white-space: nowrap; }
.review-preview-actions button { padding: 8px 12px; border: 1px solid rgba(245,184,91,.55); border-radius: 10px; color: #17130a; background: var(--amber); font-weight: 700; cursor: pointer; }
.review-preview-actions button:hover { filter: brightness(1.08); }
.review-preview-policy { margin: 0 0 10px; padding: 10px 12px; border: 1px solid rgba(127,225,183,.22); border-radius: 10px; color: var(--muted); background: rgba(127,225,183,.06); font-size: 13px; line-height: 1.55; }
.review-preview-stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.review-preview-stats span { padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: 13px; }
.review-preview-stats b { color: var(--lime); }
#review-preview-search { width: 100%; margin-bottom: 12px; }
#review-preview-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-height: 650px; overflow: auto; padding-right: 4px; }
.review-preview-card { display: grid; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.025); }
.review-preview-card header { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.review-preview-card header b { color: var(--text); font-size: 16px; line-height: 1.45; }
.review-preview-pill { flex: 0 0 auto; padding: 4px 7px; border-radius: 999px; color: var(--amber); background: rgba(245,184,91,.12); font-size: 12px; }
.review-preview-pill.fail { color: #ffb5b5; background: rgba(245,119,119,.14); }
.review-preview-pill.pass { color: var(--mint); background: rgba(127,225,183,.12); }
.review-preview-pill.reviewed { color: var(--lime); background: rgba(180,240,120,.14); }
.review-preview-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.review-preview-meta span, .review-preview-card p, .review-preview-card small { color: var(--muted); font-size: 13px; line-height: 1.55; }
.review-preview-meta span { padding: 4px 7px; border: 1px solid var(--line); border-radius: 7px; }
.review-preview-meta b { color: var(--text); font-weight: 600; }
.review-preview-card p { margin: 0; }
.review-preview-card p strong { color: var(--mint); }
.review-preview-card small { overflow-wrap: anywhere; color: var(--dim); }
.review-preview-card footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 8px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.review-preview-verify { padding: 7px 10px; border: 1px solid rgba(245,184,91,.55); border-radius: 9px; color: #17130a; background: var(--amber); font-weight: 700; cursor: pointer; }
.review-preview-auto, .review-preview-recorded { padding: 6px 9px; border-radius: 8px; font-weight: 700; }
.review-preview-auto { color: var(--mint); background: rgba(127,225,183,.12); }
.review-preview-recorded { color: var(--lime); background: rgba(180,240,120,.12); }
.review-preview-empty { color: var(--amber); font-size: 15px; }
.knowledge-state { margin: 0 0 16px; padding: 13px 15px; border: 1px solid rgba(127, 225, 183, .28); border-radius: 14px; background: rgba(75, 177, 135, .10); }
.knowledge-state.duplicate { border-color: rgba(245, 184, 91, .38); background: rgba(245, 184, 91, .08); }
.knowledge-state.needs_review { border-color: rgba(245, 119, 119, .40); background: rgba(245, 119, 119, .08); }
@media (max-width: 820px) {
  .analytics-dialog { width: 100%; height: 96vh; padding: 20px; }
  #review-preview-list { grid-template-columns: 1fr; max-height: 520px; }
  .review-preview-heading { align-items: start; flex-direction: column; }
  .review-preview-actions { width: 100%; justify-content: space-between; }
  .technical-archive-totals, .technical-archive-tables, .reference-only-grid, .reference-only-guards, .access-admin-stats, .access-session-list, .access-request-list { grid-template-columns: 1fr; }
  .technical-archive-guard, .technical-archive-review-batch { display: grid; }
  .reference-only-hero { align-items: start; }
  .access-admin-heading { flex-direction: column; }
  .access-admin-heading button { width: 100%; }
}
.knowledge-state.auto_registered { border-color: rgba(245, 184, 91, .38); background: rgba(245, 184, 91, .08); }
.knowledge-state.approved, .knowledge-state.gold, .knowledge-state.verified { border-color: rgba(127, 225, 183, .40); background: rgba(75, 177, 135, .10); }
.knowledge-state b { color: var(--mint); font-size: 15px; }
.knowledge-state p, .knowledge-match { display: block; margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.knowledge-review header { display: flex; justify-content: space-between; gap: 10px; }
.knowledge-review header b { font-size: 16px; }
.knowledge-review header span { color: var(--amber); font-size: 14px; }
.knowledge-review p { color: var(--muted); font-size: 15px; line-height: 1.55; }
.knowledge-review textarea { min-height: 64px; margin: 0 0 9px; padding: 9px; border: 1px solid var(--line); border-radius: 10px; background: rgba(0,0,0,.16); font-size: 15px; }
.knowledge-review div { display: flex; gap: 7px; }
.knowledge-review button { padding: 7px 10px; font-size: 14px; }

.node-health-dialog { width: min(1120px, 96vw); max-height: 92vh; overflow: auto; padding: 28px; border: 1px solid var(--line-bright); border-radius: 26px; background: linear-gradient(145deg, #0d1d19, #07110f); box-shadow: 0 42px 130px rgba(0,0,0,.58); }
.node-health-dialog > header { display: flex; justify-content: space-between; gap: 24px; align-items: start; }
.node-health-dialog > header span { color: var(--mint); font-family: "Cascadia Mono", Consolas, monospace; font-size: 13px; letter-spacing: .14em; }
.node-health-dialog h2 { margin: 7px 0 4px; font-size: 31px; letter-spacing: -.04em; }
.node-health-dialog header p { margin: 0; color: var(--muted); font-size: 16px; }
.node-health-dialog > header button { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 14px; color: var(--muted); background: rgba(255,255,255,.025); font-size: 29px; cursor: pointer; }
.node-health-dialog button { transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.node-health-dialog button:hover { border-color: var(--line-bright); background: rgba(185,244,123,.08); }
.node-health-dialog button:active { transform: scale(.97); }
.node-health-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin: 22px 0 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.025); }
.node-health-toolbar > div { display: flex; align-items: center; gap: 10px; }
.node-health-toolbar i { width: 11px; height: 11px; border-radius: 50%; background: var(--dim); box-shadow: 0 0 14px rgba(83,103,96,.45); }
.node-health-toolbar i[data-severity="ok"] { background: var(--lime); box-shadow: 0 0 15px rgba(185,244,123,.45); }
.node-health-toolbar i[data-severity="unknown"] { background: var(--muted); }
.node-health-toolbar i[data-severity="warning"] { background: var(--amber); box-shadow: 0 0 15px rgba(242,195,107,.42); }
.node-health-toolbar i[data-severity="critical"] { background: var(--coral); box-shadow: 0 0 17px rgba(239,128,107,.5); }
.node-health-toolbar b { font-size: 18px; }
.node-health-toolbar span { color: var(--muted); font-size: 14px; }
.node-health-toolbar button { padding: 9px 13px; border: 1px solid var(--line-bright); border-radius: 11px; color: #112018; background: var(--lime); cursor: pointer; }
.node-health-toolbar button:disabled { opacity: .58; cursor: wait; }
.node-alerts { display: grid; gap: 8px; margin-bottom: 14px; }
.node-alerts article { display: flex; gap: 13px; align-items: baseline; padding: 11px 14px; border: 1px solid var(--line); border-left-width: 3px; border-radius: 12px; background: rgba(255,255,255,.025); }
.node-alerts article[data-severity="ok"] { border-left-color: var(--lime); }
.node-alerts article[data-severity="unknown"] { border-left-color: var(--muted); }
.node-alerts article[data-severity="warning"] { border-left-color: var(--amber); background: rgba(242,195,107,.055); }
.node-alerts article[data-severity="critical"] { border-left-color: var(--coral); background: rgba(239,128,107,.065); }
.node-alerts b { min-width: 165px; font-size: 15px; }
.node-alerts span { color: var(--muted); font-size: 14px; line-height: 1.45; }
.node-health-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.node-health-card { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: rgba(13,28,24,.82); }
.node-health-card[data-severity="warning"] { border-color: rgba(242,195,107,.42); }
.node-health-card[data-severity="critical"] { border-color: rgba(239,128,107,.52); }
.node-health-card > header { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 18px 19px 14px; border-bottom: 1px solid var(--line); }
.node-health-card > header div { display: grid; gap: 3px; }
.node-health-card > header span { color: var(--ink); font-size: 22px; font-weight: 750; }
.node-health-card > header small { color: var(--dim); font: 12px "Cascadia Mono", Consolas, monospace; }
.node-health-card > header b { padding: 6px 10px; border-radius: 999px; color: var(--lime); background: rgba(185,244,123,.09); font-size: 13px; }
.node-health-card[data-severity="unknown"] > header b { color: var(--muted); background: rgba(142,163,156,.08); }
.node-health-card[data-severity="warning"] > header b { color: var(--amber); background: rgba(242,195,107,.1); }
.node-health-card[data-severity="critical"] > header b { color: var(--coral); background: rgba(239,128,107,.11); }
.node-model-state { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; margin: 14px 16px 5px; padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: rgba(0,0,0,.13); }
.node-model-state > i { width: 9px; height: 9px; border-radius: 50%; background: var(--coral); }
.node-model-state[data-ready="true"] > i { background: var(--lime); box-shadow: 0 0 11px rgba(185,244,123,.34); }
.node-model-state > div { min-width: 0; display: grid; gap: 2px; }
.node-model-state strong { overflow: hidden; text-overflow: ellipsis; color: var(--ink); font: 13px "Cascadia Mono", Consolas, monospace; white-space: nowrap; }
.node-model-state span { color: var(--muted); font-size: 12px; }
.node-model-state em { color: var(--muted); font: normal 11px "Cascadia Mono", Consolas, monospace; white-space: nowrap; }
.node-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; padding: 10px 16px 15px; }
.node-metric { padding: 11px; border: 1px solid rgba(155,194,178,.1); border-radius: 12px; background: rgba(255,255,255,.018); }
.node-metric > div:first-child { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.node-metric span { color: var(--muted); font-size: 12px; }
.node-metric b { font-size: 16px; }
.node-metric small { display: block; margin-top: 7px; color: var(--dim); font-size: 11px; line-height: 1.35; }
.node-meter { height: 4px; margin-top: 8px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.06); }
.node-meter i { display: block; height: 100%; border-radius: inherit; background: var(--mint); }
.node-metric[data-severity="unknown"] .node-meter i { background: var(--muted); }
.node-metric[data-severity="warning"] .node-meter i { background: var(--amber); }
.node-metric[data-severity="critical"] .node-meter i { background: var(--coral); }
.node-health-card > footer { display: flex; justify-content: space-between; gap: 12px; padding: 12px 17px; border-top: 1px solid var(--line); color: var(--dim); font: 11px "Cascadia Mono", Consolas, monospace; }
.node-thresholds { margin-top: 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.018); }
.node-thresholds summary { padding: 13px 15px; color: var(--muted); font-size: 14px; cursor: pointer; }
#node-threshold-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; padding: 0 14px 12px; }
#node-threshold-list > div { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; padding: 9px; border-bottom: 1px solid rgba(155,194,178,.08); font-size: 12px; }
#node-threshold-list b { color: var(--ink); }
#node-threshold-list span { color: var(--muted); }
.node-thresholds > p { margin: 0; padding: 0 15px 14px; color: var(--dim); font-size: 12px; line-height: 1.5; }

@keyframes knowledgeAura { 0%,100% { box-shadow: 0 0 0 rgba(102,226,176,0); } 50% { box-shadow: 0 0 28px rgba(102,226,176,.3), inset 0 0 18px rgba(102,226,176,.08); } }

.command-column, .insight-column { padding: 38px clamp(25px, 3vw, 54px) 60px; }
.command-column { border-right: 1px solid var(--line); }
.insight-column { padding-left: clamp(24px, 2.8vw, 45px); }

.eyebrow { display: flex; justify-content: space-between; align-items: center; color: var(--mint); font-family: "Cascadia Mono", Consolas, monospace; font-size: 10px; letter-spacing: .18em; }
.eyebrow b { color: var(--dim); font-weight: 400; }
h1 {
  max-width: none;
  margin: 18px 0 12px;
  font-family: "Pyunji R", "Ami R", "Nanum Pen Script", "Segoe Print", "Malgun Gothic", cursive;
  font-size: clamp(18px, 2.25vw, 32px);
  line-height: 1.2;
  letter-spacing: -.015em;
  font-weight: 400;
  white-space: nowrap;
}
h1 span { color: var(--lime); }
.lead {
  max-width: 680px;
  margin: 0 0 29px;
  color: var(--muted);
  font-size: 22px;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.composer, .activity-panel, .fabric-card, .result-card, .sources-card {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(14, 29, 25, .83), rgba(8, 18, 15, .8));
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.composer { padding: 18px; border-radius: var(--radius-lg); }
.composer:focus-within { border-color: rgba(185, 244, 123, .35); box-shadow: 0 0 0 1px rgba(185, 244, 123, .08), var(--shadow); }
.composer-head, .section-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.composer-head > div, .section-heading > div { display: flex; align-items: center; gap: 9px; }
.section-index { color: var(--mint); font-family: "Cascadia Mono", Consolas, monospace; font-size: 9px; letter-spacing: .13em; }
h2 { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -.01em; }
select { color: var(--muted); border: 1px solid var(--line); border-radius: 10px; padding: 7px 30px 7px 10px; background: #0d1a17; font-size: 11px; outline: none; }

textarea {
  width: 100%;
  min-height: 134px;
  margin: 14px 0 8px;
  resize: vertical;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-family: "Segoe UI Variable", "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-size: 23px;
  line-height: 1.75;
}
textarea::placeholder { color: #5f756c; }

.composer-foot { display: flex; align-items: center; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
#file-input { display: none; }
.attach-button { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; cursor: pointer; }
.attach-button:hover { color: var(--ink); }
.attach-button svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.privacy-note { margin-left: auto; color: var(--dim); font-size: 9px; }
.external-consent { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; }
.external-consent input { accent-color: var(--lime); }
.run-button { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 18px; border: 0; border-radius: 12px; color: #102017; background: var(--lime); font-size: 12px; font-weight: 700; cursor: pointer; box-shadow: 0 8px 25px rgba(185, 244, 123, .15); }
.run-button i { font-style: normal; font-size: 16px; }
.run-button:hover { background: #caff92; transform: translateY(-1px); }
.run-button:active { transform: scale(.97); }
.run-button:disabled { opacity: .45; cursor: wait; transform: none; }

.file-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.file-chip { display: flex; align-items: center; gap: 7px; max-width: 100%; padding: 6px 8px 6px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: rgba(16, 35, 29, .72); font-size: 9px; }
.file-chip b { max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.file-chip button { border: 0; color: var(--dim); background: none; cursor: pointer; }

.quick-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin: 13px 0 22px; }
.quick-actions button { display: grid; gap: 3px; padding: 12px 13px; text-align: left; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); background: rgba(9, 20, 17, .55); cursor: pointer; }
.quick-actions button:hover { color: var(--ink); border-color: var(--line-bright); transform: translateY(-1px); }
.quick-actions button:active { transform: scale(.98); }
.quick-actions b { font-size: 11px; font-weight: 600; }
.quick-actions span { color: var(--dim); font-size: 9px; }

.activity-panel { padding: 18px; border-radius: var(--radius-md); box-shadow: none; }
#route-badge, #source-badge { color: var(--dim); font-family: "Cascadia Mono", Consolas, monospace; font-size: 9px; text-transform: uppercase; }
.progress-track { height: 2px; margin: 17px 0 13px; overflow: hidden; background: rgba(255,255,255,.07); }
.progress-track i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--mint), var(--lime)); box-shadow: 0 0 12px var(--mint); transition: width .5s cubic-bezier(.2,.8,.2,1); }
.event-list { max-height: 235px; margin: 0; padding: 0; overflow: auto; list-style: none; }
.event-list li { position: relative; display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 9px 0 9px 16px; border-left: 1px solid var(--line); color: var(--muted); font-size: 10px; line-height: 1.5; }
.event-list li::before { content: ""; position: absolute; left: -4px; top: 14px; width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.event-list li.latest::before { background: var(--lime); box-shadow: 0 0 11px var(--lime); }
.event-list time { color: var(--dim); font-family: "Cascadia Mono", Consolas, monospace; font-size: 8px; }
.event-list .empty-event { display: block; padding-left: 16px; border: 0; }
.event-list .empty-event::before { display: none; }

.insight-column { display: grid; align-content: start; gap: 15px; }
.project-context { margin: 16px 0; border: 1px solid rgba(145,195,174,.13); border-radius: 18px; background: linear-gradient(120deg, rgba(15,36,29,.86), rgba(8,21,18,.72)); box-shadow: inset 0 1px rgba(255,255,255,.025); }
.project-context-main { min-height: 62px; display: grid; grid-template-columns: minmax(170px,1fr) minmax(170px,1.1fr) auto auto; gap: 12px; align-items: center; padding: 12px 14px; }
.project-context-main > div { display: grid; gap: 3px; }
.project-context-main > div span { color: var(--mint); font-family: "Cascadia Mono", Consolas, monospace; font-size: 10px; letter-spacing: .12em; }
.project-context-main > div b { font-size: 16px; }
.project-context select, .project-settings input { min-height: 39px; border: 1px solid var(--line); border-radius: 11px; color: var(--text); background: rgba(2,10,8,.58); padding: 0 11px; font-size: 14px; }
.boundary-state { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); font-size: 13px; white-space: nowrap; }
.boundary-state i { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px currentColor; }
.boundary-state.ready i { background: var(--lime); }
.context-button, .project-settings button { min-height: 39px; padding: 0 13px; border: 1px solid var(--line-bright); border-radius: 11px; color: var(--text); background: rgba(102,226,176,.06); cursor: pointer; }
.context-button:active, .project-settings button:active { transform: scale(.98); }
.project-settings { padding: 14px; border-top: 1px solid var(--line); }
.project-settings[hidden] { display: none; }
.project-create-row, .root-approval-row { display: grid; grid-template-columns: minmax(150px,.7fr) minmax(220px,1.4fr) auto auto; gap: 9px; margin-bottom: 9px; }
.project-create-row { grid-template-columns: minmax(150px,.7fr) minmax(220px,1.4fr) auto; }
.approved-roots { display: flex; flex-wrap: wrap; gap: 7px; padding: 7px 0; color: var(--muted); font-size: 13px; }
.approved-roots span { padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.02); }
.project-settings p { margin: 8px 0 0; color: var(--dim); font-size: 12px; }
.fabric-card, .result-card, .sources-card { border-radius: var(--radius-lg); padding: 18px; }
.live-label { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 9px; }
.live-label b { color: inherit; font-size: inherit; font-weight: 500; }
.fabric-map { position: relative; height: 350px; margin: 12px 0 5px; overflow: hidden; border: 1px solid rgba(145, 195, 174, .08); border-radius: 18px; background: radial-gradient(circle at center, rgba(102, 226, 176, .08), transparent 37%), linear-gradient(rgba(102,226,176,.022) 1px, transparent 1px), linear-gradient(90deg, rgba(102,226,176,.022) 1px, transparent 1px); background-size: auto, 28px 28px, 28px 28px; }
.fabric-map::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, transparent 40%, rgba(4, 10, 8, .57) 100%); pointer-events: none; }
.fabric-core { --node-glow: var(--lime); position: absolute; isolation: isolate; z-index: 4; left: 50%; top: 50%; width: 118px; height: 118px; display: grid; place-items: center; align-content: center; transform: translate(-50%, -50%); border: 1px solid rgba(185, 244, 123, .27); border-radius: 50%; background: rgba(9, 23, 18, .9); box-shadow: 0 0 0 14px rgba(185,244,123,.025), 0 0 0 33px rgba(185,244,123,.015), 0 0 55px rgba(102,226,176,.13); }
.fabric-core img { width: 39px; height: 39px; }
.fabric-core b { margin-top: 2px; font-size: 13px; }
.fabric-core span { color: var(--dim); font-family: "Cascadia Mono", Consolas, monospace; font-size: 6px; letter-spacing: .12em; }
.fabric-core::before { content: ""; position: absolute; inset: -16px; border: 1px dashed rgba(185, 244, 123, .15); border-radius: 50%; }
.fabric-map.is-processing .fabric-core::before { animation: rotate 22s linear infinite; }

.node { --node-glow: var(--mint); position: absolute; isolation: isolate; z-index: 5; width: 172px; height: 70px; display: grid; grid-template-columns: 9px 1fr; column-gap: 8px; align-items: center; padding: 10px 11px; border: 1px solid var(--line); border-radius: 999px; background: rgba(8, 20, 16, .88); box-shadow: 0 11px 30px rgba(0,0,0,.24); transition: border-color .3s ease, box-shadow .3s ease, background .3s ease; }
.node i { grid-row: 1 / 4; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 9px currentColor; }
.node.ready i { background: var(--lime); }
.node.offline i { background: var(--coral); }
.node b { font-size: 10px; }
.node span { color: var(--muted); font-size: 8px; }
.node small { color: var(--dim); font-family: "Cascadia Mono", Consolas, monospace; font-size: 7px; }
.node-qwen { --node-glow: var(--lime); }
.node-nemotron { --node-glow: var(--cyan); }
.node-knowledge, .node-workspace { --node-glow: var(--mint); }
.node-output, .node-audit { --node-glow: var(--amber); }
.node-harness { --node-glow: var(--cyan); }
.side-left, .side-right { width: 158px; }
.side-left { left: 3%; }
.side-right { right: 3%; }
.side-row-1 { top: 24px; }
.side-row-2 { top: 140px; }
.side-row-3 { top: 256px; }
.node-external { left: 50%; top: 7px; transform: translateX(-50%); }
.node-external.needed { border-color: rgba(242,195,107,.55); }
.node-external.needed i { background: var(--amber); animation: pulse 1.8s ease-in-out 3; }
.node-audit { left: 50%; bottom: 4px; transform: translateX(-50%); }
.node::before, .fabric-core::after { content: ""; position: absolute; pointer-events: none; opacity: 0; border-radius: inherit; padding: 1px; background: conic-gradient(from var(--glow-angle), transparent 0deg 245deg, rgba(255,255,255,.18) 280deg, var(--node-glow) 318deg, transparent 358deg); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; transition: opacity .35s ease; }
.node::before { inset: -1px; }
.fabric-core::after { inset: -3px; padding: 1.25px; }
.node.processing::before, .fabric-core.processing::after { opacity: .95; animation: borderOrbit 4.8s linear infinite; }
.node.processing { border-color: rgba(185,244,123,.24); background: rgba(9, 24, 19, .94); box-shadow: 0 11px 30px rgba(0,0,0,.24), 0 0 18px rgba(102,226,176,.11); }
.fabric-core.processing { box-shadow: 0 0 0 14px rgba(185,244,123,.03), 0 0 0 33px rgba(185,244,123,.018), 0 0 66px rgba(102,226,176,.22); }
.fabric-lines { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; overflow: visible; }
.flow { fill: none; stroke: rgba(120, 164, 145, .22); stroke-width: 1.25; stroke-dasharray: 3 9; stroke-linecap: round; }
.fabric-map.is-processing .flow.active { animation: dash 2.5s linear infinite; }
.flow.active { stroke: var(--lime); filter: drop-shadow(0 0 4px rgba(185,244,123,.55)); }
.vision-flow.active { stroke: var(--cyan); }
.knowledge-flow.active { stroke: var(--mint); }
.output-flow.active { stroke: var(--amber); }
.workspace-flow.active { stroke: var(--mint); }
.harness-flow.active { stroke: var(--cyan); }
.audit-flow.active { stroke: var(--amber); }
.fabric-stats { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line); }
.fabric-stats div { display: grid; gap: 4px; padding: 14px 13px 4px; border-right: 1px solid var(--line); }
.fabric-stats div:last-child { border-right: 0; }
.fabric-stats span { color: var(--dim); font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.fabric-stats b { font-family: "Cascadia Mono", Consolas, monospace; font-size: 12px; font-weight: 500; }
.fabric-stats .rag-reference-metric { background: rgba(185, 244, 123, .045); }
.fabric-stats .rag-reference-metric b { color: var(--lime); }

.result-card { min-height: 285px; }
.copy-button { padding: 6px 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: transparent; font-size: 9px; cursor: pointer; }
.copy-button:disabled { opacity: .35; cursor: default; }
.result-content { max-height: 540px; padding-top: 15px; overflow: auto; color: #dce9e1; font-family: "Segoe UI Variable", "Noto Sans KR", "Malgun Gothic", sans-serif; font-size: 20px; line-height: 1.75; }
.result-empty { min-height: 215px; display: grid; place-items: center; align-content: center; text-align: center; color: var(--dim); }
.result-empty span { font-size: 31px; color: var(--mint); }
.result-empty b { margin-top: 7px; color: var(--muted); font-size: 11px; }
.result-empty p { margin: 2px 0; font-size: 9px; }
.result-content h3 { margin: 17px 0 5px; color: var(--lime); font-size: 13px; }
.result-content p { margin: 0 0 9px; }
.result-content ul { margin: 5px 0 12px; padding-left: 19px; }
.result-content code { color: var(--amber); font-family: "Cascadia Mono", Consolas, monospace; font-size: 10px; }
.review-state { margin: 0 0 16px; padding: 13px 15px; border: 1px solid rgba(160, 255, 186, .28); border-radius: 14px; background: rgba(10, 28, 21, .88); box-shadow: inset 0 0 22px rgba(126, 255, 165, .035); }
.review-state b { display: block; margin-bottom: 4px; color: #caffad; font-size: 17px; }
.review-state p { margin: 0 0 3px; color: #e8f4ec; font-weight: 700; }
.review-state small { display: block; color: #9fb5a7; font-size: 14px; line-height: 1.55; }
.review-state.warning, .review-state.draft { border-color: rgba(255, 185, 92, .42); background: rgba(42, 30, 14, .76); }
.review-state.warning b, .review-state.draft b { color: #ffc97b; }
.review-state.approved { border-color: rgba(148, 255, 171, .5); }
.review-state.calculation { border-color: rgba(111, 203, 255, .38); background: rgba(10, 30, 43, .78); }
.review-state.calculation b { color: #8ed8ff; }
.truth-warning { margin: 0 0 18px; padding: 14px 16px; border: 1px solid rgba(224, 128, 75, .72); border-radius: 14px; background: rgba(255, 224, 196, .12); color: #ffd9b8; }
.truth-warning p { margin: 6px 0 0; color: #f0c8aa; }

.artifact-panel[hidden] { display: none; }
.artifact-panel { margin-top: 20px; padding: 18px; border: 1px solid rgba(174, 255, 202, .18); border-radius: 16px; background: linear-gradient(135deg, rgba(18, 43, 35, .72), rgba(7, 21, 18, .82)); box-shadow: inset 0 1px 0 rgba(255,255,255,.03); }
.artifact-heading { display: flex; justify-content: space-between; gap: 18px; align-items: end; margin-bottom: 13px; }
.artifact-heading span { color: var(--mint); font: 700 11px/1.2 "Cascadia Mono", Consolas, monospace; letter-spacing: .14em; }
.artifact-heading h3 { margin: 4px 0 0; color: var(--ink); font-size: 21px; }
.artifact-heading p { margin: 0; color: var(--muted); font-size: 14px; }
.artifact-heading p b { color: var(--lime); }
.artifact-list { display: grid; gap: 10px; }
.artifact-item { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px; border: 1px solid rgba(160, 218, 193, .12); border-radius: 14px; background: rgba(3, 14, 12, .48); }
.artifact-preview, .artifact-icon { width: 76px; height: 58px; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(168, 240, 212, .14); border-radius: 10px; background: rgba(255,255,255,.035); color: var(--mint); font: 700 13px/1 "Cascadia Mono", Consolas, monospace; }
.artifact-preview img { width: 100%; height: 100%; object-fit: cover; transition: transform .22s ease; }
.artifact-preview:hover img { transform: scale(1.05); }
.artifact-info { min-width: 0; display: grid; gap: 4px; }
.artifact-name { overflow: hidden; color: #eafff2; font-size: 17px; font-weight: 650; text-decoration: underline; text-decoration-color: rgba(168,255,203,.35); text-underline-offset: 4px; text-overflow: ellipsis; white-space: nowrap; }
.artifact-name:hover, .artifact-name:focus-visible { color: var(--lime); text-decoration-color: currentColor; }
.artifact-info span, .artifact-info small { overflow: hidden; color: var(--muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.artifact-info small { color: var(--dim); }
.artifact-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: 8px; }
.artifact-actions a, .artifact-actions button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0 13px; border: 1px solid rgba(168,255,203,.18); border-radius: 11px; color: #dfffee; background: rgba(255,255,255,.035); font-size: 14px; text-decoration: none; cursor: pointer; }
.artifact-actions a { color: #102118; background: var(--lime); font-weight: 750; }
.artifact-actions a:active, .artifact-actions button:active { transform: scale(.97); }
.artifact-actions button:disabled { opacity: .45; cursor: wait; }

.sources-card { box-shadow: none; }
.source-list { display: grid; gap: 7px; margin-top: 13px; }
.source-list p { margin: 0; color: var(--dim); font-size: 9px; }
.source-item { display: grid; grid-template-columns: 26px 1fr auto; gap: 9px; align-items: center; padding: 9px 10px; border: 1px solid rgba(145,195,174,.09); border-radius: 10px; background: rgba(9, 19, 16, .44); }
.source-item > span { color: var(--mint); font-family: "Cascadia Mono", Consolas, monospace; font-size: 8px; }
.source-item div { min-width: 0; display: grid; gap: 2px; }
.source-item b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; font-weight: 500; }
.source-item small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--dim); font-size: 7px; }
.source-item em { color: var(--dim); font-style: normal; font-size: 7px; }

.toast { position: fixed; z-index: 40; left: 50%; bottom: 26px; min-width: 260px; max-width: 480px; padding: 12px 16px; border: 1px solid var(--line-bright); border-radius: 12px; color: var(--ink); background: rgba(11, 25, 21, .96); box-shadow: var(--shadow); opacity: 0; transform: translate(-50%, 20px); pointer-events: none; transition: opacity .22s ease, transform .22s ease; font-size: 11px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.activation-overlay[hidden], .login-overlay[hidden] { display: none; }
.activation-overlay, .login-overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 28px; background: rgba(2, 9, 8, .86); backdrop-filter: blur(18px) saturate(.8); }
.activation-dialog { width: min(680px, 100%); max-height: calc(100vh - 56px); overflow: auto; padding: 38px; border: 1px solid rgba(170, 255, 196, .18); border-radius: 28px; background: linear-gradient(145deg, rgba(8, 25, 21, .98), rgba(4, 15, 13, .98)); box-shadow: 0 32px 110px rgba(0, 0, 0, .58), 0 0 80px rgba(155, 255, 96, .06); }
.login-dialog { width: min(540px, 100%); padding: 38px; border: 1px solid rgba(170, 255, 196, .18); border-radius: 28px; background: linear-gradient(145deg, rgba(8, 25, 21, .99), rgba(4, 15, 13, .99)); box-shadow: 0 32px 110px rgba(0, 0, 0, .58), 0 0 80px rgba(155, 255, 96, .06); }
.activation-mark { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px; background: rgba(165, 255, 98, .08); border: 1px solid rgba(165, 255, 98, .22); }
.activation-mark img { width: 38px; height: 38px; }
.activation-kicker { display: block; margin-top: 24px; color: #8ee7c1; font: 700 11px/1.2 ui-monospace, monospace; letter-spacing: .18em; }
.activation-dialog h2, .login-dialog h2 {
  margin: 10px 0 12px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -.04em;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.activation-dialog > p, .login-dialog > p { color: #91a8a0; line-height: 1.7; }
.activation-request { margin-top: 24px; padding: 18px; border-radius: 18px; background: rgba(255,255,255,.025); border: 1px solid rgba(170,255,196,.12); }
.activation-request span { color: #6f8b82; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.activation-request b { display: block; margin: 6px 0 14px; color: #dfffee; }
.activation-request code { display: block; max-height: 92px; overflow: auto; color: #86b8a7; font: 11px/1.55 ui-monospace, monospace; word-break: break-all; }
.activation-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 24px; }
.activation-actions button, .activation-actions a { min-height: 40px; padding: 0 15px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(170,255,196,.15); border-radius: 12px; color: #cde8dd; background: rgba(255,255,255,.025); text-decoration: none; cursor: pointer; }
.activation-input span { display: block; margin-bottom: 8px; color: #b9d2c8; font-size: 13px; }
.activation-input textarea { width: 100%; resize: vertical; padding: 14px; border: 1px solid rgba(170,255,196,.16); border-radius: 14px; color: #e8fff3; background: rgba(0,0,0,.22); font: 12px/1.55 ui-monospace, monospace; }
.login-field { display: grid; gap: 8px; margin-top: 18px; }
.login-field span { color: #b9d2c8; font-size: 15px; font-weight: 650; }
.login-field input { width: 100%; min-height: 52px; padding: 0 15px; border: 1px solid rgba(170,255,196,.16); border-radius: 14px; color: #e8fff3; background: rgba(0,0,0,.22); font: 16px/1.2 "Pretendard", sans-serif; outline: none; }
.login-field input:focus { border-color: rgba(184,255,104,.65); box-shadow: 0 0 0 3px rgba(184,255,104,.09); }
.activation-submit { width: 100%; min-height: 52px; margin-top: 14px; border: 0; border-radius: 15px; background: #b8ff68; color: #0a180d; font-weight: 800; cursor: pointer; }
.activation-submit:active { transform: scale(.985); }
.activation-help { margin: 14px 0 0 !important; color: #6f8b82 !important; font-size: 12px; }

/* Readability pass: operational labels are intentionally large; the hero slogan remains compact. */
.brand strong { font-size: 24px; }
.brand small, .system-pill, .profile b { font-size: 16px; }
.brand .version-badge { font-size: 13px; }
.eyebrow, .section-index, #route-badge, #source-badge, .live-label { font-size: 15px; }
select, .attach-button, .run-button, .quick-actions b, .copy-button { font-size: 17px; }
.privacy-note, .quick-actions span, .file-chip, .fabric-stats span { font-size: 14px; }
.event-list li { grid-template-columns: 88px 1fr; font-size: 16px; }
.event-list time { font-size: 13px; }
.node { padding: 12px 13px; }
.node b { font-size: 16px; }
.node span { font-size: 13px; }
.node small { font-size: 11px; }
.fabric-core b { font-size: 17px; }
.fabric-core span { font-size: 10px; }
.fabric-stats b { font-size: 17px; }
.result-empty b, .result-content h3 { font-size: 20px; }
.result-empty p, .source-list p { font-size: 16px; }
.result-content code { font-size: 16px; }
.source-item b { font-size: 16px; }
.source-item small, .source-item em, .source-item > span { font-size: 13px; }
.toast { font-size: 17px; }

@keyframes rotate { to { transform: rotate(360deg); } }
@keyframes dash { to { stroke-dashoffset: -24; } }
@keyframes borderOrbit { to { --glow-angle: 360deg; } }

@media (max-width: 1650px) {
  .company-logo { width: 176px; margin-left: 10px; padding-left: 16px; }
  .workspace { grid-template-columns: 230px 1fr; }
  .command-column { border-right: 0; }
  .insight-column { grid-column: 2; padding-top: 0; }
}

@media (max-width: 720px) {
  .topbar { grid-template-columns: 1fr auto; padding: 0 15px; }
  .system-pill { display: none; }
  .company-logo { display: none; }
  .profile b { display: none; }
  .workspace { display: block; }
  .rail { position: fixed; z-index: 30; left: 50%; bottom: 12px; width: auto; height: 62px; flex-direction: row; padding: 5px 8px; transform: translateX(-50%); border: 1px solid var(--line); border-radius: 18px; background: rgba(7,16,14,.94); backdrop-filter: blur(20px); }
  .rail-spacer { display: none; }
  .history-dock, .admin-only { display: none; }
  .rail-button { width: 57px; min-height: 50px; }
  .command-column, .insight-column { padding: 28px 16px; }
  h1 { font-size: clamp(16px, 5vw, 22px); }
  .quick-actions { grid-template-columns: 1fr; }
  .privacy-note { display: none; }
  .node-health-overlay { padding: 8px; }
  .node-health-dialog { width: 100%; max-height: 96vh; padding: 18px; border-radius: 20px; }
  .node-health-dialog h2 { font-size: 25px; }
  .node-health-toolbar, .node-alerts article { align-items: flex-start; flex-direction: column; }
  .node-health-grid, .node-metrics, #node-threshold-list { grid-template-columns: 1fr; }
  .node-model-state { grid-template-columns: auto 1fr; }
  .node-model-state em { grid-column: 2; }
  .fabric-map { height: 640px; }
  .fabric-lines { display: none; }
  .fabric-core { top: 32%; width: 104px; height: 104px; }
  .side-left, .side-right { width: calc(50% - 13px); }
  .side-left { left: 6px; }
  .side-right { right: 6px; }
  .side-row-1 { top: 280px; }
  .side-row-2 { top: 370px; }
  .side-row-3 { top: 460px; }
  .node-external { top: 82px; width: min(172px, 72%); }
  .node-audit { bottom: 8px; width: min(172px, 72%); }
  .side-left b, .side-right b { font-size: 14px; }
  .side-left span, .side-right span { font-size: 11px; }
  .side-left small, .side-right small { font-size: 9px; }
  .fabric-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fabric-stats div { min-width: 0; border-bottom: 1px solid var(--line); }
  .artifact-heading { display: block; }
  .artifact-heading p { margin-top: 7px; }
  .artifact-item { grid-template-columns: 56px minmax(0, 1fr); }
  .artifact-preview, .artifact-icon { width: 56px; height: 48px; }
  .artifact-actions { grid-column: 1 / -1; justify-content: stretch; }
  .artifact-actions a, .artifact-actions button { flex: 1; }
}

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

/* Integrated-GPU fallback: keep the information architecture, remove expensive compositing. */
.low-power-render #network-canvas,
.low-power-render .noise { display: none; }
.low-power-render .topbar,
.low-power-render .rail,
.low-power-render .composer,
.low-power-render .activity-panel,
.low-power-render .fabric-card,
.low-power-render .result-card,
.low-power-render .sources-card,
.low-power-render .session-overlay,
.low-power-render .analytics-overlay,
.low-power-render .node-health-overlay,
.low-power-render .activation-overlay,
.low-power-render .login-overlay { backdrop-filter: none; }
.low-power-render .composer,
.low-power-render .fabric-card,
.low-power-render .result-card,
.low-power-render .sources-card { box-shadow: none; }
.low-power-render .fabric-map::after { display: none; }
.low-power-render .fabric-core,
.low-power-render .node { box-shadow: none; }
.low-power-render .node.processing::before,
.low-power-render .fabric-core.processing::after { opacity: .7; animation: borderOrbit 7s linear infinite; }
.low-power-render .fabric-map.is-processing .flow.active {
  animation: dash 5s linear infinite;
  filter: none;
  stroke-width: 1.4;
}
.low-power-render .fabric-map.is-processing .fabric-core::before { animation: rotate 28s linear infinite; }
.low-power-render .node.processing,
.low-power-render .fabric-core.processing { animation: processingPulse 2.8s ease-in-out infinite; }

@keyframes processingPulse {
  0%, 100% { border-color: rgba(185, 244, 123, .18); }
  50% { border-color: rgba(185, 244, 123, .48); }
}
