:root {
  --ink: #102033;
  --ink-soft: #536274;
  --muted: #788697;
  --line: #dbe4e9;
  --line-strong: #c9d6dd;
  --paper: #f4f7f7;
  --surface: #ffffff;
  --surface-soft: #f8faf9;
  --navy: #102f3a;
  --navy-2: #153f4c;
  --teal: #087f78;
  --teal-dark: #06665f;
  --teal-soft: #e4f4f1;
  --cyan: #42c7bd;
  --green: #2b9364;
  --green-soft: #e8f5ee;
  --amber: #c78222;
  --amber-soft: #fff4dd;
  --red: #c44c4c;
  --red-soft: #fff0ef;
  --blue: #3e71a8;
  --blue-soft: #edf4fb;
  --shadow-sm: 0 1px 2px rgba(16, 47, 58, .06), 0 7px 20px rgba(16, 47, 58, .05);
  --shadow-md: 0 16px 48px rgba(16, 47, 58, .12);
  --radius: 16px;
  --radius-sm: 10px;
  --sidebar: 248px;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 86% -10%, rgba(66, 199, 189, .12), transparent 28rem),
    var(--paper);
  color: var(--ink);
}

button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }

:focus-visible {
  outline: 3px solid rgba(66, 199, 189, .32);
  outline-offset: 2px;
}

.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.nowrap { white-space: nowrap; }
.full { width: 100%; }

.demo-ribbon {
  position: fixed;
  right: 18px;
  bottom: 16px;
  z-index: 100;
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid rgba(8, 127, 120, .25);
  border-radius: 999px;
  color: var(--teal-dark);
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
  font-size: 12px;
  font-weight: 700;
}

.demo-ribbon::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  content: "";
  box-shadow: 0 0 0 4px rgba(66, 199, 189, .15);
}

/* Shared header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  color: #fff;
  background: rgba(16, 47, 58, .96);
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(16px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 11px;
  color: #072f32;
  background: linear-gradient(145deg, #78e0d4, #2abaae);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55);
  font-weight: 900;
}

.brand-copy { min-width: 0; }
.brand-title { font-size: 15px; font-weight: 800; letter-spacing: .02em; }
.brand-subtitle { margin-top: 2px; color: rgba(255,255,255,.58); font-size: 11px; }

.top-actions { display: flex; align-items: center; gap: 10px; }
.environment {
  padding: 6px 10px;
  border: 1px solid rgba(119, 226, 214, .28);
  border-radius: 999px;
  color: #a4eee6;
  background: rgba(8, 127, 120, .2);
  font-size: 11px;
  font-weight: 700;
}

.icon-btn {
  display: grid;
  place-items: center;
  min-width: 36px;
  height: 36px;
  padding: 0 9px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  color: #fff;
  background: rgba(255,255,255,.06);
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 8px 4px 4px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.05);
}

.avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--navy);
  background: #d9f4f0;
  font-size: 12px;
  font-weight: 800;
}

.user-name { font-size: 12px; font-weight: 700; }

/* App frame */
.app-shell { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: calc(100vh - 68px); }

.sidebar {
  position: sticky;
  top: 68px;
  height: calc(100vh - 68px);
  padding: 22px 14px;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(14px);
}

.side-label {
  margin: 4px 12px 8px;
  color: #8b98a6;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
}

.side-nav { display: grid; gap: 4px; }
.side-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 9px 12px;
  border-radius: 11px;
  color: #4e5d6d;
  font-size: 13px;
  font-weight: 700;
  transition: .18s ease;
}

.side-link:hover { color: var(--teal-dark); background: #edf6f4; }
.side-link.active { color: var(--teal-dark); background: var(--teal-soft); box-shadow: inset 3px 0 0 var(--teal); }
.nav-symbol {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 8px;
  color: inherit;
  background: rgba(16, 47, 58, .06);
  font-size: 11px;
  font-weight: 900;
}

.side-link.active .nav-symbol { background: rgba(8,127,120,.13); }
.side-divider { height: 1px; margin: 18px 10px; background: var(--line); }
.side-status {
  margin: 20px 8px 0;
  padding: 14px;
  border-radius: 13px;
  color: #d9f6f2;
  background: linear-gradient(155deg, var(--navy), var(--navy-2));
}
.side-status-head { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 800; }
.online-dot { width: 8px; height: 8px; border-radius: 50%; background: #5fe0a5; box-shadow: 0 0 0 4px rgba(95,224,165,.12); }
.side-status p { margin: 9px 0 0; color: rgba(255,255,255,.62); font-size: 11px; line-height: 1.55; }

.main { min-width: 0; padding: 28px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.eyebrow { margin-bottom: 7px; color: var(--teal); font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.page-title { margin: 0; color: var(--ink); font-size: clamp(23px, 3vw, 32px); line-height: 1.25; letter-spacing: -.03em; }
.page-lead { max-width: 700px; margin: 9px 0 0; color: var(--ink-soft); font-size: 13px; line-height: 1.7; }
.head-actions { display: flex; gap: 9px; flex-wrap: wrap; justify-content: flex-end; }

.btn {
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
  font-size: 12px;
  font-weight: 800;
  transition: .18s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn.primary { color: #fff; border-color: var(--teal); background: var(--teal); }
.btn.primary:hover { background: var(--teal-dark); }
.btn.dark { color: #fff; border-color: var(--navy); background: var(--navy); }
.btn.danger { color: var(--red); border-color: #edc9c7; background: var(--red-soft); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.compact { min-height: 31px; padding: 5px 10px; font-size: 11px; }

.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }

.card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.card-pad { padding: 20px; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 20px 14px; border-bottom: 1px solid #e9eff2; }
.card-title { margin: 0; font-size: 15px; font-weight: 900; }
.card-subtitle { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.card-body { padding: 18px 20px 20px; }

.metric {
  position: relative;
  min-height: 132px;
  padding: 18px;
  overflow: hidden;
}
.metric::after {
  position: absolute;
  right: -28px;
  top: -32px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(8,127,120,.055);
  content: "";
}
.metric-label { color: var(--ink-soft); font-size: 12px; font-weight: 700; }
.metric-value { margin-top: 12px; font-size: 28px; font-weight: 900; letter-spacing: -.04em; }
.metric-foot { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-top: 11px; color: var(--muted); font-size: 11px; }
.trend { font-weight: 800; }
.trend.up { color: var(--green); }
.trend.down { color: var(--red); }

.badge, .status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}
.badge { color: var(--teal-dark); background: var(--teal-soft); }
.badge::before, .status::before { width: 6px; height: 6px; border-radius: 50%; background: currentColor; content: ""; opacity: .85; }
.status.good { color: var(--green); background: var(--green-soft); }
.status.warn { color: var(--amber); background: var(--amber-soft); }
.status.bad { color: var(--red); background: var(--red-soft); }
.status.info { color: var(--blue); background: var(--blue-soft); }
.status.neutral { color: #697889; background: #edf1f3; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 15px; }
.search-box { position: relative; min-width: 260px; flex: 1; max-width: 460px; }
.search-box::before { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: #8b99a7; content: "⌕"; font-size: 19px; }
.search-box input, .field input, .field textarea, .field select, .select {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
}
.search-box input { height: 40px; padding: 0 14px 0 39px; }
.select { width: auto; height: 40px; padding: 0 34px 0 12px; }
.filter-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter-pill { padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); background: #fff; font-size: 11px; font-weight: 800; }
.filter-pill.active { color: var(--teal-dark); border-color: #9fd8d2; background: var(--teal-soft); }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 11px 12px; color: #718090; background: #f7f9fa; border-bottom: 1px solid var(--line); font-size: 10px; font-weight: 900; letter-spacing: .04em; text-align: left; white-space: nowrap; }
td { padding: 13px 12px; border-bottom: 1px solid #edf1f3; font-size: 12px; vertical-align: middle; }
tbody tr { transition: background .15s ease; }
tbody tr:hover { background: #f8fbfa; }
tbody tr:last-child td { border-bottom: 0; }
.cell-title { font-weight: 800; }
.cell-sub { margin-top: 4px; color: var(--muted); font-size: 10px; }

.progress { height: 7px; overflow: hidden; border-radius: 999px; background: #eaf0f1; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal), var(--cyan)); }
.progress.amber > span { background: linear-gradient(90deg, #d08b29, #efb458); }
.progress.red > span { background: linear-gradient(90deg, #bf4a4a, #e77a6d); }

.list { display: grid; }
.list-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 0; border-bottom: 1px solid #edf1f3; }
.list-item:first-child { padding-top: 0; }
.list-item:last-child { padding-bottom: 0; border-bottom: 0; }
.list-main { min-width: 0; }
.list-title { overflow: hidden; font-size: 12px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.list-meta { margin-top: 5px; color: var(--muted); font-size: 10px; }

.section-gap { margin-top: 18px; }
.empty { padding: 42px 20px; color: var(--muted); text-align: center; }

/* Public consultation page */
.public-body { background: #eef4f3; }
.public-shell { min-height: 100vh; display: grid; grid-template-rows: 68px 1fr; }
.public-nav { display: flex; align-items: center; gap: 22px; }
.public-nav a { color: rgba(255,255,255,.68); font-size: 12px; font-weight: 700; }
.public-nav a:hover, .public-nav a.active { color: #fff; }
.consult-main { min-height: 0; display: grid; grid-template-columns: 280px minmax(0, 1fr) 330px; }
.conversation-sidebar, .evidence-panel { padding: 20px; background: rgba(255,255,255,.72); }
.conversation-sidebar { border-right: 1px solid var(--line); }
.evidence-panel { border-left: 1px solid var(--line); }
.new-chat { width: 100%; margin-bottom: 18px; }
.history-title { display: flex; align-items: center; justify-content: space-between; margin: 12px 5px; color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.history-list { display: grid; gap: 5px; }
.history-item { padding: 11px; border-radius: 10px; color: var(--ink-soft); font-size: 12px; line-height: 1.45; cursor: pointer; }
.history-item:hover, .history-item.active { color: var(--teal-dark); background: var(--teal-soft); }
.history-time { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; }

.chat-stage { min-width: 0; display: grid; grid-template-rows: auto 1fr auto; background: #f6f9f8; }
.chat-context { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 24px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.74); }
.context-title { font-size: 13px; font-weight: 900; }
.context-meta { margin-top: 4px; color: var(--muted); font-size: 10px; }
.chat-messages { overflow-y: auto; padding: 30px max(24px, calc((100% - 760px)/2)); }
.welcome { max-width: 720px; margin: 36px auto 24px; text-align: center; }
.welcome-kicker { color: var(--teal); font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.welcome h1 { margin: 12px 0 10px; font-size: clamp(25px, 4vw, 40px); letter-spacing: -.04em; }
.welcome p { margin: 0 auto; max-width: 600px; color: var(--ink-soft); font-size: 13px; line-height: 1.75; }
.suggestions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 720px; margin: 24px auto 0; }
.suggestion { min-height: 80px; padding: 14px; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); background: #fff; text-align: left; }
.suggestion:hover { border-color: #98d7d1; box-shadow: var(--shadow-sm); }
.suggestion strong { display: block; font-size: 12px; }
.suggestion span { display: block; margin-top: 6px; color: var(--muted); font-size: 10px; line-height: 1.5; }

.message { display: flex; gap: 12px; max-width: 760px; margin: 0 auto 20px; }
.message.user { flex-direction: row-reverse; }
.message-avatar { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 auto; border-radius: 10px; color: #fff; background: var(--navy); font-size: 10px; font-weight: 900; }
.message.user .message-avatar { color: var(--teal-dark); background: var(--teal-soft); }
.bubble { max-width: calc(100% - 44px); padding: 14px 16px; border: 1px solid var(--line); border-radius: 4px 15px 15px 15px; background: #fff; box-shadow: 0 5px 14px rgba(16,47,58,.04); font-size: 13px; line-height: 1.85; }
.message.user .bubble { border-color: #b7dfdb; border-radius: 15px 4px 15px 15px; background: var(--teal-soft); }
.answer-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--teal-dark); font-size: 10px; font-weight: 900; }
.answer-section { margin-top: 13px; }
.answer-section strong { color: var(--ink); }
.answer-section ul { margin: 7px 0 0; padding-left: 18px; }
.citation { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; margin: 0 2px; border-radius: 6px; color: var(--teal-dark); background: var(--teal-soft); font-size: 9px; font-weight: 900; cursor: pointer; }
.answer-actions { display: flex; gap: 7px; margin-top: 13px; padding-top: 11px; border-top: 1px solid #edf1f3; }
.answer-action { padding: 4px 7px; border: 0; border-radius: 7px; color: var(--muted); background: transparent; font-size: 10px; }
.answer-action:hover { color: var(--teal-dark); background: var(--teal-soft); }

.typing { display: inline-flex; gap: 4px; align-items: center; height: 20px; }
.typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--teal); animation: pulse 1.1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .16s; }
.typing i:nth-child(3) { animation-delay: .32s; }
@keyframes pulse { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }

.composer-wrap { padding: 15px 24px 20px; background: linear-gradient(180deg, rgba(246,249,248,0), #f6f9f8 24%); }
.composer { max-width: 780px; margin: 0 auto; padding: 10px 10px 8px 15px; border: 1px solid #bfcfd3; border-radius: 16px; background: #fff; box-shadow: 0 10px 30px rgba(16,47,58,.09); }
.composer textarea { width: 100%; min-height: 44px; max-height: 130px; padding: 5px 4px; resize: none; border: 0; outline: 0; color: var(--ink); background: transparent; line-height: 1.6; }
.composer-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.composer-tools { display: flex; gap: 7px; color: var(--muted); font-size: 10px; }
.send-btn { width: 36px; height: 36px; border: 0; border-radius: 11px; color: #fff; background: var(--teal); font-size: 16px; font-weight: 900; }
.composer-note { max-width: 780px; margin: 7px auto 0; color: #8794a0; font-size: 9px; text-align: center; }

.evidence-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.evidence-head h2 { margin: 0; font-size: 14px; }
.evidence-summary { padding: 12px; border: 1px solid #bfe1dd; border-radius: 12px; color: var(--teal-dark); background: var(--teal-soft); font-size: 11px; line-height: 1.6; }
.evidence-list { display: grid; gap: 10px; margin-top: 13px; }
.evidence-card { padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.evidence-card:hover, .evidence-card.active { border-color: #8ed0c9; box-shadow: var(--shadow-sm); }
.evidence-index { color: var(--teal); font-size: 10px; font-weight: 900; }
.evidence-title { margin: 6px 0; font-size: 11px; font-weight: 900; line-height: 1.5; }
.evidence-excerpt { color: var(--ink-soft); font-size: 10px; line-height: 1.65; }
.evidence-meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 9px; color: var(--muted); font-size: 9px; }

/* Charts and operational visuals */
.segmented { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: #f5f8f8; }
.segment { padding: 6px 10px; border: 0; border-radius: 7px; color: var(--muted); background: transparent; font-size: 10px; font-weight: 800; }
.segment.active { color: var(--teal-dark); background: #fff; box-shadow: 0 1px 5px rgba(16,47,58,.1); }
.chart { position: relative; height: 240px; padding: 18px 12px 10px 44px; }
.chart-grid { position: absolute; inset: 18px 12px 30px 44px; display: grid; grid-template-rows: repeat(4, 1fr); }
.chart-grid i { border-top: 1px dashed #dce5e8; }
.bar-chart { position: relative; z-index: 1; height: 100%; display: flex; align-items: flex-end; gap: 11px; }
.bar-group { flex: 1; min-width: 8px; display: flex; align-items: flex-end; gap: 3px; height: 100%; }
.bar { flex: 1; min-width: 4px; border-radius: 5px 5px 2px 2px; background: var(--teal); transition: height .4s ease; }
.bar.alt { background: #9fd9d3; }
.chart-axis { display: flex; justify-content: space-between; padding: 7px 12px 0 44px; color: var(--muted); font-size: 9px; }
.legend { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 10px; }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend i { width: 8px; height: 8px; border-radius: 3px; background: var(--teal); }
.legend .alt { background: #9fd9d3; }
.donut {
  --pct: 76;
  display: grid;
  place-items: center;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: conic-gradient(var(--teal) calc(var(--pct) * 1%), #dfe9ea 0);
}
.donut::before { grid-area: 1/1; width: 104px; height: 104px; border-radius: 50%; background: #fff; content: ""; }
.donut-label { z-index: 1; grid-area: 1/1; text-align: center; }
.donut-label strong { display: block; font-size: 24px; }
.donut-label span { color: var(--muted); font-size: 10px; }
.split-center { display: flex; align-items: center; justify-content: center; gap: 28px; min-height: 210px; }
.breakdown { display: grid; gap: 11px; min-width: 150px; }
.breakdown-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 11px; }
.breakdown-row span:first-child::before { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--teal); content: ""; }
.breakdown-row:nth-child(2) span:first-child::before { background: #66b7b0; }
.breakdown-row:nth-child(3) span:first-child::before { background: #a6d8d3; }
.breakdown-row:nth-child(4) span:first-child::before { background: #d8e9e7; }

.timeline { position: relative; display: grid; gap: 0; }
.timeline::before { position: absolute; left: 9px; top: 8px; bottom: 8px; width: 1px; background: var(--line); content: ""; }
.timeline-item { position: relative; padding: 0 0 18px 29px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot { position: absolute; left: 4px; top: 3px; width: 11px; height: 11px; border: 3px solid #fff; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 1px #90cfc9; }
.timeline-dot.warn { background: var(--amber); box-shadow: 0 0 0 1px #e4bd82; }
.timeline-title { font-size: 11px; font-weight: 800; }
.timeline-meta { margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.5; }

.node-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.node { padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.node-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.node-name { font-size: 12px; font-weight: 900; }
.node-bars { display: grid; gap: 9px; margin-top: 14px; }
.node-bar-head { display: flex; justify-content: space-between; color: var(--muted); font-size: 9px; }

/* Detail panels and modal */
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 90;
  width: min(520px, 100%);
  height: 100vh;
  padding: 24px;
  overflow-y: auto;
  background: #fff;
  box-shadow: -20px 0 60px rgba(16,47,58,.18);
  transform: translateX(104%);
  transition: transform .25s ease;
}
.drawer.open { transform: translateX(0); }
.drawer-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(9,28,35,.38); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; margin-bottom: 20px; }
.drawer h2 { margin: 0; font-size: 20px; }
.close-btn { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.detail-block { margin-top: 18px; }
.detail-label { margin-bottom: 7px; color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .06em; }
.detail-value { font-size: 12px; line-height: 1.75; }
.detail-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.detail-tile { padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); }
.detail-tile small { display: block; color: var(--muted); font-size: 9px; }
.detail-tile strong { display: block; margin-top: 5px; font-size: 12px; }

.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { color: var(--ink-soft); font-size: 11px; font-weight: 800; }
.field input, .field select { height: 40px; padding: 0 12px; }
.field textarea { min-height: 90px; padding: 10px 12px; resize: vertical; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 12px 0; border-bottom: 1px solid #edf1f3; }
.switch-copy strong { display: block; font-size: 12px; }
.switch-copy span { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.switch { position: relative; width: 40px; height: 22px; flex: 0 0 auto; border: 0; border-radius: 999px; background: #cdd7dc; }
.switch::after { position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; content: ""; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch.on { background: var(--teal); }
.switch.on::after { transform: translateX(18px); }

.toast-stack { position: fixed; right: 20px; top: 82px; z-index: 120; display: grid; gap: 8px; }
.toast { min-width: 260px; max-width: 360px; padding: 12px 14px; border: 1px solid #c7dedb; border-radius: 11px; color: var(--ink); background: #fff; box-shadow: var(--shadow-md); font-size: 11px; animation: toastIn .25s ease; }
.toast strong { display: block; margin-bottom: 4px; color: var(--teal-dark); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } }

/* Login */
.login-page { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(420px, .85fr); background: #f5f8f7; }
.login-branding { position: relative; overflow: hidden; padding: 60px clamp(34px, 7vw, 100px); color: #fff; background: linear-gradient(145deg, #0e343e, #075e5a); }
.login-branding::before, .login-branding::after { position: absolute; border: 1px solid rgba(124,231,219,.18); border-radius: 50%; content: ""; }
.login-branding::before { right: -140px; top: -100px; width: 420px; height: 420px; }
.login-branding::after { left: -170px; bottom: -220px; width: 520px; height: 520px; }
.login-hero { position: relative; z-index: 1; max-width: 620px; margin-top: 15vh; }
.login-hero h1 { margin: 20px 0 15px; font-size: clamp(35px, 6vw, 64px); line-height: 1.08; letter-spacing: -.06em; }
.login-hero p { max-width: 520px; color: rgba(255,255,255,.7); font-size: 14px; line-height: 1.8; }
.trust-list { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 34px; }
.trust-item { padding: 13px; border: 1px solid rgba(255,255,255,.13); border-radius: 12px; background: rgba(255,255,255,.06); }
.trust-item strong { display: block; font-size: 13px; }
.trust-item span { display: block; margin-top: 6px; color: rgba(255,255,255,.55); font-size: 10px; line-height: 1.5; }
.login-panel { display: grid; place-items: center; padding: 40px; }
.login-card { width: min(420px, 100%); }
.login-card h2 { margin: 0; font-size: 27px; }
.login-card > p { margin: 9px 0 28px; color: var(--muted); font-size: 12px; }
.login-options { display: flex; justify-content: space-between; align-items: center; margin: 5px 0 18px; color: var(--muted); font-size: 10px; }
.login-foot { margin-top: 22px; color: var(--muted); font-size: 9px; line-height: 1.7; text-align: center; }

@media (max-width: 1180px) {
  .grid-4 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .consult-main { grid-template-columns: 230px minmax(0,1fr); }
  .evidence-panel { display: none; }
  .public-nav { display: none; }
}

@media (max-width: 900px) {
  :root { --sidebar: 76px; }
  .sidebar { padding: 18px 8px; }
  .side-label, .side-link > span:not(.nav-symbol), .side-status { display: none; }
  .side-link { justify-content: center; padding: 8px; }
  .grid-3 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .login-page { grid-template-columns: 1fr; }
  .login-branding { display: none; }
  .login-panel { min-height: 100vh; }
}

@media (max-width: 680px) {
  .topbar { height: 60px; padding: 0 14px; }
  .brand-subtitle, .environment, .user-name { display: none; }
  .app-shell { grid-template-columns: 1fr; min-height: calc(100vh - 60px); }
  .sidebar { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 60; width: 100%; height: 64px; padding: 7px 10px; overflow: visible; border: 0; border-top: 1px solid var(--line); }
  .side-nav { display: flex; justify-content: space-around; }
  .side-link { min-height: 48px; }
  .side-nav .side-link:nth-child(n+6), .side-divider, .sidebar .side-label { display: none; }
  .main { padding: 20px 14px 84px; }
  .page-head { display: block; }
  .head-actions { justify-content: flex-start; margin-top: 15px; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .metric { min-height: 116px; }
  .page-title { font-size: 24px; }
  .search-box { min-width: 100%; }
  .node-grid, .detail-grid { grid-template-columns: 1fr; }
  .split-center { flex-direction: column; }
  .consult-main { grid-template-columns: 1fr; }
  .conversation-sidebar { display: none; }
  .chat-stage { min-height: calc(100vh - 60px); }
  .chat-messages { padding: 18px 14px; }
  .suggestions { grid-template-columns: 1fr; }
  .chat-context { padding: 12px 14px; }
  .composer-wrap { padding: 10px 12px 16px; }
  .public-shell { grid-template-rows: 60px 1fr; }
  .demo-ribbon { right: 10px; bottom: 72px; }
}

/* ========================================================================== */
/* 79.8万公网生产版视觉升级：运营指挥、安全合规与高可用能力显性化 */
/* ========================================================================== */

:root {
  --ink: #102236;
  --ink-soft: #526579;
  --muted: #7a8a9b;
  --line: #d6e1e7;
  --line-strong: #c2d0d8;
  --paper: #edf3f5;
  --surface: #ffffff;
  --surface-soft: #f5f8f9;
  --navy: #071a29;
  --navy-2: #0c2b3c;
  --teal: #08a69b;
  --teal-dark: #077c75;
  --teal-soft: #e1f6f3;
  --cyan: #50e0d0;
  --gold: #d8ad5a;
  --gold-soft: #fff7e7;
  --shadow-sm: 0 3px 12px rgba(7, 26, 41, .06), 0 1px 2px rgba(7, 26, 41, .05);
  --shadow-md: 0 18px 54px rgba(7, 26, 41, .14);
  --radius: 18px;
  --sidebar: 286px;
}

body {
  background:
    radial-gradient(circle at 83% 3%, rgba(8, 166, 155, .10), transparent 27rem),
    radial-gradient(circle at 24% 95%, rgba(69, 119, 150, .08), transparent 30rem),
    var(--paper);
}

.topbar {
  height: 76px;
  padding: 0 30px;
  background: linear-gradient(100deg, rgba(5, 20, 32, .99), rgba(8, 34, 50, .97));
  border-bottom: 1px solid rgba(92, 225, 213, .14);
  box-shadow: 0 8px 30px rgba(5, 20, 32, .18);
}

.premium-brand .brand-title,
.public-body .brand-title { font-size: 16px; letter-spacing: .04em; }
.brand-title, .brand-subtitle { display: block; }
.brand-mark {
  position: relative;
  width: 43px;
  height: 43px;
  overflow: hidden;
  border: 1px solid rgba(107, 236, 224, .42);
  border-radius: 13px;
  color: #dffdfa;
  background: linear-gradient(145deg, #0c5f64, #063743);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 8px 24px rgba(0,0,0,.22);
}
.brand-mark b { position: relative; z-index: 2; font-size: 11px; letter-spacing: -.03em; }
.brand-mark i { position: absolute; right: -8px; bottom: -8px; width: 26px; height: 26px; border: 6px solid rgba(78,225,209,.42); border-radius: 50%; }
.brand-subtitle { color: rgba(211, 234, 241, .55); font-size: 9px; letter-spacing: .08em; }
.environment { border-color: rgba(80, 224, 208, .27); color: #a5f5ed; background: rgba(8,166,155,.14); }
.service-live { display: inline-flex; align-items: center; gap: 7px; color: #cae4ea; font-size: 11px; font-weight: 800; }
.service-live i { width: 7px; height: 7px; border-radius: 50%; background: #55e49e; box-shadow: 0 0 0 5px rgba(85,228,158,.11); }
.notice-btn { position: relative; }
.notice-btn span { position: absolute; right: -4px; top: -5px; display: grid; place-items: center; width: 16px; height: 16px; border: 2px solid var(--navy); border-radius: 50%; color: #fff; background: #df6a60; font-size: 8px; }
.user-chip { border-color: rgba(255,255,255,.1); background: rgba(255,255,255,.045); }
.avatar { color: #062e37; background: linear-gradient(145deg, #c7fff7, #65d9cb); }

.app-shell { min-height: calc(100vh - 76px); }
.sidebar {
  top: 76px;
  height: calc(100vh - 76px);
  padding: 16px 13px 22px;
  border-right: 1px solid rgba(70, 151, 169, .22);
  background:
    radial-gradient(circle at 15% 8%, rgba(16, 153, 147, .16), transparent 15rem),
    linear-gradient(180deg, #0a2131, #071925 72%);
  box-shadow: 10px 0 32px rgba(7,26,41,.08);
}
.side-edition { margin: 2px 3px 14px; padding: 15px 16px; border: 1px solid rgba(91,220,209,.15); border-radius: 14px; background: linear-gradient(135deg, rgba(15,134,130,.18), rgba(255,255,255,.025)); }
.side-edition span { display: block; color: #62d8ce; font-size: 8px; font-weight: 900; letter-spacing: .17em; }
.side-edition strong { display: block; margin-top: 6px; color: #f3fbfc; font-size: 14px; }
.side-edition small { display: block; margin-top: 5px; color: rgba(210,234,240,.48); font-size: 9px; }
.side-nav { gap: 2px; }
.nav-group-label { margin: 14px 12px 5px; color: rgba(168,203,213,.38); font-size: 9px; font-weight: 900; letter-spacing: .14em; }
.side-link { position: relative; min-height: 39px; padding: 7px 11px; color: rgba(219,237,242,.67); border: 1px solid transparent; border-radius: 10px; font-size: 12px; }
.side-link:hover { color: #ecffff; background: rgba(59,183,174,.09); }
.side-link.active { color: #e9fffc; border-color: rgba(80,224,208,.14); background: linear-gradient(90deg, rgba(8,166,155,.28), rgba(8,166,155,.06)); box-shadow: inset 3px 0 0 #45d8ca; }
.nav-symbol { width: 26px; height: 26px; color: inherit; background: rgba(255,255,255,.055); }
.side-link.active .nav-symbol { color: #bafff8; background: rgba(44,207,193,.18); }
.side-link em { margin-left: auto; padding: 2px 5px; border-radius: 6px; color: #57e3d5; background: rgba(47,205,191,.1); font-size: 7px; font-style: normal; letter-spacing: .08em; }
.side-link em.warn-dot { min-width: 18px; color: #ffe3a5; background: rgba(216,173,90,.15); text-align: center; }
.side-status { margin: 18px 3px 0; border: 1px solid rgba(90,224,211,.12); background: linear-gradient(145deg, rgba(12,85,91,.52), rgba(8,29,42,.8)); }
.side-health { display: flex; align-items: baseline; gap: 7px; margin-top: 11px; }
.side-health b { color: #fff; font-size: 23px; }
.side-health span { color: rgba(226,244,247,.48); font-size: 9px; }

.main { padding: 30px clamp(22px, 2.5vw, 38px) 48px; }
.page-head { margin-bottom: 24px; }
.eyebrow { color: var(--teal); font-size: 10px; letter-spacing: .16em; }
.page-title { font-size: clamp(25px, 3vw, 35px); }
.page-lead { max-width: 810px; font-size: 12px; }
.btn { border-radius: 10px; box-shadow: 0 1px 1px rgba(7,26,41,.03); }
.btn.primary { color: #fff; border-color: #078c84; background: linear-gradient(135deg, #07988f, #08746f); box-shadow: 0 8px 18px rgba(8,140,132,.18); }
.btn.primary:hover { background: linear-gradient(135deg, #08aa9f, #087c76); }
.card { border-color: rgba(151,174,185,.34); border-radius: 17px; box-shadow: var(--shadow-sm); }
.card-head { padding: 17px 19px; background: linear-gradient(180deg, #fff, #fbfcfd); }
.card-body { padding: 19px; }
.card-title { font-size: 13px; }
.badge { border: 1px solid #cfe6e4; color: #087b75; background: #ecf8f6; }
.metric { position: relative; overflow: hidden; min-height: 142px; padding: 19px; }
.premium-metric::after { position: absolute; right: -34px; bottom: -48px; width: 105px; height: 105px; border: 18px solid rgba(8,166,155,.055); border-radius: 50%; content: ""; }
.metric-icon { display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 12px; border: 1px solid #cae8e4; border-radius: 9px; color: var(--teal-dark); background: var(--teal-soft); font-size: 10px; font-weight: 900; }
.metric-value small { color: var(--muted); font-size: .45em; font-weight: 700; }

.command-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(330px, 1.2fr) auto minmax(310px, .8fr);
  gap: 28px;
  align-items: center;
  min-height: 238px;
  margin-bottom: 18px;
  padding: 28px 30px;
  overflow: hidden;
  border: 1px solid rgba(82,220,208,.17);
  border-radius: 21px;
  color: #eaf8fa;
  background:
    radial-gradient(circle at 72% 42%, rgba(20,174,164,.19), transparent 18rem),
    linear-gradient(120deg, #071d2c, #0b3443 65%, #0b2837);
  box-shadow: 0 22px 55px rgba(7,26,41,.18);
}
.command-hero::before { position: absolute; right: -80px; top: -100px; width: 290px; height: 290px; border: 1px solid rgba(89,224,211,.09); border-radius: 50%; content: ""; box-shadow: 0 0 0 45px rgba(89,224,211,.025), 0 0 0 90px rgba(89,224,211,.018); }
.command-main { position: relative; z-index: 1; }
.command-kicker { display: flex; align-items: center; gap: 8px; color: #6ee7dc; font-size: 9px; font-weight: 900; letter-spacing: .13em; }
.command-kicker i { width: 7px; height: 7px; border-radius: 50%; background: #5ee2a2; box-shadow: 0 0 0 5px rgba(94,226,162,.12); }
.command-title { margin-top: 13px; color: #fff; font-size: clamp(24px, 3vw, 37px); font-weight: 900; letter-spacing: -.035em; }
.command-main p { max-width: 620px; margin: 10px 0 0; color: rgba(226,242,246,.63); font-size: 11px; line-height: 1.8; }
.command-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.command-tags span { padding: 5px 9px; border: 1px solid rgba(98,223,211,.15); border-radius: 7px; color: rgba(225,249,247,.78); background: rgba(47,176,165,.08); font-size: 8px; }
.command-score { position: relative; z-index: 1; display: grid; justify-items: center; gap: 10px; }
.score-ring { display: grid; place-items: center; width: 132px; height: 132px; border: 8px solid rgba(255,255,255,.09); border-top-color: #53dfd1; border-right-color: #53dfd1; border-radius: 50%; background: rgba(5,21,32,.46); box-shadow: inset 0 0 0 1px rgba(80,224,208,.12); }
.score-ring strong { grid-area: 1/1; margin-top: -8px; color: #fff; font-size: 29px; }
.score-ring span { grid-area: 1/1; margin-top: 37px; color: rgba(226,244,247,.5); font-size: 8px; }
.score-copy { display: flex; gap: 7px; align-items: baseline; }
.score-copy b { color: var(--gold); font-size: 15px; }
.score-copy span { color: rgba(225,240,244,.5); font-size: 8px; }
.command-nodes { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.command-nodes div { padding: 12px; border: 1px solid rgba(93,213,203,.11); border-radius: 11px; background: rgba(255,255,255,.045); }
.command-nodes span, .command-nodes small { display: block; color: rgba(217,239,243,.48); font-size: 8px; }
.command-nodes strong { display: block; margin: 5px 0; color: #ecfffd; font-size: 12px; }

/* Public consultation experience */
.public-shell { min-height: 100vh; grid-template-rows: 76px auto minmax(0,1fr); }
.public-nav { gap: 26px; }
.public-nav a { position: relative; font-size: 11px; }
.public-nav a.active::after { position: absolute; left: 0; right: 0; bottom: -11px; height: 2px; border-radius: 2px; background: #50e0d0; content: ""; }
.public-assurance { display: grid; grid-template-columns: 1.25fr repeat(4,1fr); gap: 0; border-bottom: 1px solid #d5e2e6; background: #fff; box-shadow: 0 5px 18px rgba(7,26,41,.04); }
.public-assurance > div { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 51px; padding: 8px 14px; border-right: 1px solid #e2eaed; }
.public-assurance strong { color: #173247; font-size: 11px; }
.public-assurance span { color: var(--muted); font-size: 8px; }
.assurance-dot { width: 7px; height: 7px; border-radius: 50%; background: #4cd999; box-shadow: 0 0 0 5px rgba(76,217,153,.11); }
.consult-main { grid-template-columns: 292px minmax(520px, 1fr) 360px; min-height: calc(100vh - 127px); }
.conversation-sidebar { color: #e6f4f6; border-right: 1px solid rgba(60,136,153,.2); background: linear-gradient(180deg, #0c2838, #081d2a); }
.conversation-sidebar .history-title { color: rgba(202,231,237,.42); }
.conversation-sidebar .history-item { color: rgba(226,243,246,.72); }
.conversation-sidebar .history-item:hover, .conversation-sidebar .history-item.active { color: #efffff; background: rgba(65,204,193,.1); }
.conversation-sidebar .history-time { color: rgba(196,225,231,.37); }
.conversation-sidebar .btn.primary { width: 100%; }
.conversation-sidebar .side-status { margin-top: 28px; }
.chat-stage { background: radial-gradient(circle at 78% 12%, rgba(8,166,155,.055), transparent 25rem), #f5f8f9; }
.chat-context { padding: 15px 26px; border-bottom-color: #d8e4e8; box-shadow: 0 4px 14px rgba(7,26,41,.035); }
.model-pill { display: inline-block; margin-left: 7px; padding: 3px 6px; border-radius: 5px; color: #087c76; background: #e2f5f2; font-size: 8px; vertical-align: 1px; }
.context-status { display: flex; gap: 7px; align-items: center; }
.trace-mini { padding: 5px 7px; border: 1px solid #d6e1e6; border-radius: 7px; color: #718293; font-size: 7px; font-weight: 900; }
.chat-messages { padding-top: 24px; }
.message { max-width: 820px; }
.message-avatar { background: linear-gradient(145deg, #0d4e58, #082b3a); box-shadow: 0 5px 14px rgba(7,26,41,.14); }
.bubble { border-radius: 6px 17px 17px 17px; box-shadow: 0 8px 24px rgba(7,26,41,.055); }
.seeded-answer .bubble { border-color: #c8dedf; }
.answer-head { padding-bottom: 10px; border-bottom: 1px solid #e4ecee; }
.evidence-panel { border-left-color: #d4e0e5; background: #fff; }
.evidence-summary { border-color: #c1e3df; background: linear-gradient(145deg, #e7f7f5, #f6fbfa); }
.evidence-card { box-shadow: 0 4px 14px rgba(7,26,41,.035); }
.composer strong { color: var(--teal-dark); }

/* Quality */
.quality-hero { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; padding: 25px 29px; border: 1px solid rgba(70,213,199,.18); border-radius: 20px; color: #e8f8fa; background: linear-gradient(118deg, #071d2c, #0d3c49); box-shadow: 0 18px 48px rgba(7,26,41,.14); }
.quality-score { min-width: 155px; padding-right: 28px; border-right: 1px solid rgba(255,255,255,.1); }
.quality-score span, .quality-score small, .quality-delta span, .quality-delta small { display: block; color: rgba(220,240,244,.52); font-size: 9px; }
.quality-score strong { display: block; margin: 5px 0 1px; color: #fff; font-size: 48px; letter-spacing: -.05em; }
.quality-summary h2 { margin: 11px 0 7px; color: #fff; font-size: 20px; }
.quality-summary p { margin: 0; color: rgba(220,240,244,.54); font-size: 10px; }
.quality-delta { min-width: 120px; padding: 16px; border: 1px solid rgba(89,224,211,.14); border-radius: 13px; background: rgba(255,255,255,.04); }
.quality-delta strong { display: block; margin: 6px 0; color: #5ae0d2; font-size: 25px; }
.score-trend { height: 190px; display: flex; align-items: flex-end; gap: 9px; padding-top: 22px; border-bottom: 1px solid var(--line); }
.score-trend > div { position: relative; flex: 1; height: var(--h); border-radius: 6px 6px 0 0; background: #cfe1e4; }
.score-trend > div.active { background: linear-gradient(180deg, #39c8ba, #0a9289); }
.score-trend i { display: block; height: 100%; }
.score-trend span { position: absolute; left: 50%; top: -18px; transform: translateX(-50%); color: var(--ink-soft); font-size: 8px; font-style: normal; }
.score-trend small { position: absolute; left: 50%; bottom: -18px; transform: translateX(-50%); color: var(--muted); font-size: 7px; }
.quality-note { margin-top: 31px; padding: 13px; border-left: 3px solid var(--gold); border-radius: 0 9px 9px 0; background: var(--gold-soft); }
.quality-note strong { color: #936b20; font-size: 10px; }
.quality-note p { margin: 5px 0 0; color: #7e6a43; font-size: 9px; line-height: 1.6; }

/* Complaint and rights */
.sla-banner { display: grid; grid-template-columns: repeat(4,1fr) 1.35fr; overflow: hidden; border: 1px solid rgba(151,174,185,.34); border-radius: 18px; background: #fff; box-shadow: var(--shadow-sm); }
.sla-banner > div { min-height: 128px; padding: 22px; border-right: 1px solid #e2eaed; }
.sla-banner span, .sla-banner small { display: block; color: var(--muted); font-size: 9px; }
.sla-banner strong { display: block; margin: 8px 0 5px; color: var(--ink); font-size: 28px; }
.sla-banner strong em { margin-left: 3px; color: var(--muted); font-size: 10px; font-style: normal; }
.sla-banner .sla-main { position: relative; color: #eafafa; border: 0; background: linear-gradient(135deg, #0a3443, #087c75); }
.sla-main i { position: absolute; right: -18px; top: -34px; width: 110px; height: 110px; border: 18px solid rgba(255,255,255,.07); border-radius: 50%; }
.sla-main span, .sla-main small { color: rgba(231,250,249,.65); }
.sla-main strong { color: #fff; font-size: 34px; }
.rights-flow { display: grid; gap: 0; }
.rights-step { position: relative; display: flex; gap: 12px; min-height: 61px; padding-bottom: 11px; }
.rights-step:not(:last-child)::after { position: absolute; left: 14px; top: 31px; bottom: 0; width: 1px; background: #d5e1e5; content: ""; }
.rights-step i { position: relative; z-index: 1; display: grid; place-items: center; width: 29px; height: 29px; flex: 0 0 auto; border: 1px solid #d4e0e5; border-radius: 50%; color: var(--muted); background: #fff; font-size: 9px; font-style: normal; font-weight: 900; }
.rights-step.done i, .rights-step.active i { color: #fff; border-color: var(--teal); background: var(--teal); }
.rights-step.active i { box-shadow: 0 0 0 5px rgba(8,166,155,.1); }
.rights-step strong, .rights-step span { display: block; }
.rights-step strong { font-size: 10px; }
.rights-step span { margin-top: 4px; color: var(--muted); font-size: 8px; }
.channel-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 9px; }
.channel-grid > div { padding: 13px; border: 1px solid var(--line); border-radius: 11px; }
.channel-grid i { display: grid; place-items: center; width: 26px; height: 26px; margin-bottom: 9px; border-radius: 8px; color: var(--teal-dark); background: var(--teal-soft); font-size: 9px; font-style: normal; font-weight: 900; }
.channel-grid strong, .channel-grid span { display: block; }
.channel-grid strong { font-size: 10px; }
.channel-grid span { margin-top: 4px; color: var(--muted); font-size: 8px; }
.gauge-list { display: grid; gap: 16px; }
.gauge-list > div { display: grid; grid-template-columns: 1fr auto; gap: 6px; align-items: center; }
.gauge-list span, .gauge-list b { font-size: 9px; }
.gauge-list b { color: var(--ink); }
.gauge-list i { grid-column: 1/-1; height: 5px; overflow: hidden; border-radius: 5px; background: #e5ecef; }
.gauge-list em { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #0a938a, #4bd7ca); }

/* Audit */
.audit-search { display: grid; grid-template-columns: minmax(260px,1fr) auto auto; gap: 14px; align-items: center; padding: 18px 20px; border: 1px solid rgba(151,174,185,.36); border-radius: 15px; background: #fff; box-shadow: var(--shadow-sm); }
.audit-search > div:first-child { padding: 4px 13px; border-left: 3px solid var(--teal); }
.audit-search span { display: block; color: var(--muted); font-size: 8px; }
.audit-search strong { display: block; margin-top: 4px; font-family: Consolas, monospace; font-size: 13px; }
.audit-filter { display: flex; gap: 7px; }
.audit-filter span { padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: #f8fafb; }
.trace-card .card-body { padding: 16px 20px 20px; }
.trace-flow { display: grid; gap: 0; }
.trace-node { position: relative; display: grid; grid-template-columns: 37px 1fr auto; gap: 11px; min-height: 64px; align-items: start; padding: 8px 0; }
.trace-node:not(:last-child)::after { position: absolute; left: 17px; top: 44px; bottom: -4px; width: 1px; background: #cfe0e3; content: ""; }
.trace-node > i { position: relative; z-index: 1; display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid #cfe0e3; border-radius: 10px; color: #66808f; background: #f5f9fa; font-size: 8px; font-style: normal; font-weight: 900; }
.trace-node.done > i, .trace-node.active > i { color: #fff; border-color: var(--teal); background: linear-gradient(145deg,#13b1a6,#077b75); }
.trace-node.active { margin: 0 -8px; padding: 9px 8px; border-radius: 12px; background: #edf8f7; }
.trace-node strong, .trace-node span { display: block; }
.trace-node strong { font-size: 10px; }
.trace-node span { margin-top: 5px; color: var(--muted); font-size: 8px; }
.trace-node em { padding: 5px 7px; border-radius: 7px; color: #627887; background: #f0f5f6; font-size: 8px; font-style: normal; }
.proof-seal { display: grid; justify-items: center; margin: 2px 0 20px; padding: 18px; border: 1px solid #c7e3df; border-radius: 14px; background: linear-gradient(145deg,#e9f8f6,#f9fcfc); }
.proof-seal > span { display: grid; place-items: center; width: 45px; height: 45px; border: 2px solid #21aa9e; border-radius: 50%; color: #079088; font-size: 18px; }
.proof-seal strong { margin-top: 9px; color: var(--teal-dark); font-size: 12px; }
.proof-seal small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.proof-list { display: grid; gap: 0; }
.proof-list > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #e8eef0; font-size: 9px; }
.proof-list span { color: var(--muted); }
.proof-list b { color: #087e76; }

/* Architecture */
.architecture-hero { display: flex; justify-content: space-between; gap: 25px; align-items: center; padding: 25px 28px; border: 1px solid rgba(75,215,202,.17); border-radius: 20px; color: #edfafa; background: linear-gradient(120deg,#071c2b,#0b3745); box-shadow: 0 18px 45px rgba(7,26,41,.15); }
.architecture-hero h2 { margin: 12px 0 7px; color: #fff; font-size: 25px; }
.architecture-hero p { margin: 0; color: rgba(220,241,244,.57); font-size: 10px; }
.architecture-kpis { display: flex; gap: 9px; }
.architecture-kpis > div { min-width: 118px; padding: 14px; border: 1px solid rgba(77,218,205,.14); border-radius: 12px; background: rgba(255,255,255,.04); }
.architecture-kpis strong, .architecture-kpis span { display: block; }
.architecture-kpis strong { color: #6be6dc; font-size: 17px; }
.architecture-kpis span { margin-top: 5px; color: rgba(223,243,246,.5); font-size: 8px; }
.topology { padding: 18px; border: 1px solid #cddde2; border-radius: 20px; background: linear-gradient(145deg,#f7fafb,#eef4f6); box-shadow: var(--shadow-sm); }
.topology-zone, .topology-split > article { padding: 15px; border: 1px solid #d5e2e6; border-radius: 15px; background: rgba(255,255,255,.82); }
.zone-title { margin-bottom: 12px; color: #607585; font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.topology-row { display: flex; align-items: center; justify-content: center; gap: 16px; }
.topology-row.four { display: grid; grid-template-columns: repeat(4,1fr); }
.topo-node { position: relative; min-width: 190px; padding: 13px 13px 13px 51px; border: 1px solid #cbdde1; border-radius: 12px; background: #fff; box-shadow: 0 5px 14px rgba(7,26,41,.04); }
.topo-node > i { position: absolute; left: 11px; top: 13px; display: grid; place-items: center; width: 31px; height: 31px; border-radius: 9px; color: #087e77; background: #e2f5f2; font-size: 7px; font-style: normal; font-weight: 900; }
.topo-node strong, .topo-node span { display: block; }
.topo-node strong { font-size: 10px; }
.topo-node span { margin-top: 5px; color: var(--muted); font-size: 8px; }
.topo-node em { position: absolute; right: 10px; top: 10px; color: #088179; font-size: 7px; font-style: normal; font-weight: 900; }
.flow-arrow { color: #54a8a1; }
.topology-split { display: grid; grid-template-columns: 1fr 100px 1fr; gap: 12px; align-items: center; margin: 13px 0; }
.topo-stack { display: grid; gap: 10px; }
.topo-node.wide { min-width: 0; }
.zone-sync { text-align: center; }
.zone-sync span, .zone-sync small { display: block; color: var(--muted); font-size: 7px; }
.zone-sync b { display: block; margin: 7px 0; color: var(--teal); font-size: 23px; }
.topology-row.four .topo-node { min-width: 0; }
.security-layers { display: grid; gap: 9px; }
.security-layers > div { position: relative; padding: 12px 11px 12px 43px; border: 1px solid var(--line); border-radius: 11px; }
.security-layers i { position: absolute; left: 11px; top: 12px; color: #0b9189; font-size: 9px; font-style: normal; font-weight: 900; }
.security-layers strong, .security-layers span { display: block; }
.security-layers strong { font-size: 10px; }
.security-layers span { margin-top: 4px; color: var(--muted); font-size: 8px; }
.green-text { color: #087d75; font-size: 9px; }

/* Release and disaster recovery */
.release-hero { display: grid; grid-template-columns: 220px 1fr 145px; gap: 24px; align-items: center; padding: 23px 27px; border: 1px solid rgba(75,215,202,.17); border-radius: 20px; color: #e8f8fa; background: linear-gradient(120deg,#071c2b,#0b3544); box-shadow: 0 18px 45px rgba(7,26,41,.15); }
.release-version span, .release-version small, .release-state span { display: block; color: rgba(219,240,244,.53); font-size: 8px; }
.release-version strong { display: block; margin: 7px 0; color: #fff; font-size: 22px; }
.release-lane { display: flex; align-items: center; }
.release-lane > b { flex: 1; height: 1px; background: rgba(82,216,204,.28); }
.lane-step { display: grid; justify-items: center; min-width: 60px; text-align: center; }
.lane-step i { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid rgba(90,223,211,.25); border-radius: 50%; color: #66e4d8; background: rgba(12,132,127,.18); font-size: 9px; font-style: normal; }
.lane-step span, .lane-step small { display: block; }
.lane-step span { margin-top: 7px; color: rgba(236,250,251,.76); font-size: 8px; }
.lane-step small { margin-top: 3px; color: rgba(213,237,241,.38); font-size: 7px; }
.lane-step.active i { color: #062d37; background: #61e0d3; box-shadow: 0 0 0 5px rgba(97,224,211,.1); }
.release-state { padding: 14px; border: 1px solid rgba(216,173,90,.24); border-radius: 12px; background: rgba(216,173,90,.08); }
.release-state i { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--gold); }
.release-state strong { color: #ffe3a7; font-size: 10px; }
.release-state span { margin-top: 6px; }
.deploy-board { display: grid; grid-template-columns: 1fr 100px 1fr; gap: 13px; align-items: center; }
.deploy-node { padding: 16px; border: 1px solid #d2e0e4; border-radius: 14px; background: #f9fbfb; }
.deploy-head { display: flex; justify-content: space-between; gap: 10px; }
.deploy-head > div { position: relative; padding-left: 38px; }
.deploy-head i { position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 29px; height: 29px; border-radius: 8px; color: #087e77; background: #def2ef; font-size: 10px; font-style: normal; font-weight: 900; }
.deploy-head strong, .deploy-head span { display: block; }
.deploy-head strong { font-size: 10px; }
.deploy-head span { margin-top: 3px; color: var(--muted); font-size: 7px; }
.deploy-head em { color: #07887f; font-size: 8px; font-style: normal; }
.deploy-version { margin-top: 17px; padding: 11px; border-radius: 9px; background: #fff; font-family: Consolas, monospace; font-size: 10px; }
.deploy-version .status { float: right; font-family: "Microsoft YaHei", sans-serif; }
.deploy-metrics { display: grid; grid-template-columns: repeat(2,1fr); gap: 7px; margin-top: 11px; }
.deploy-metrics span { color: var(--muted); font-size: 8px; }
.deploy-sync { text-align: center; }
.deploy-sync span, .deploy-sync small { display: block; color: var(--muted); font-size: 7px; }
.deploy-sync b { display: block; margin: 7px; color: var(--teal); font-size: 20px; }
.rollback-list { display: grid; gap: 8px; }
.rollback-list > div { display: grid; grid-template-columns: 37px 1fr auto; gap: 9px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 10px; }
.rollback-list i { display: grid; place-items: center; height: 25px; border-radius: 7px; color: #a66e16; background: var(--gold-soft); font-size: 7px; font-style: normal; font-weight: 900; }
.rollback-list span { color: var(--ink-soft); font-size: 8px; }
.rollback-list strong { font-size: 9px; }
.drill-score { display: grid; justify-items: center; margin-bottom: 22px; padding: 16px; border: 1px solid #cce4e1; border-radius: 13px; background: #eef8f7; }
.drill-score strong { color: #087d76; font-size: 36px; }
.drill-score strong small { font-size: 10px; }
.drill-score span { margin-top: 3px; color: var(--muted); font-size: 8px; }

/* Login and shared finish */
.login-branding { background: radial-gradient(circle at 78% 26%, rgba(35,205,190,.19), transparent 18rem), linear-gradient(145deg,#061b2a,#0a4d58); }
.login-hero h1 { max-width: 690px; }
.login-card { padding: 28px; border: 1px solid #d6e1e5; border-radius: 18px; background: rgba(255,255,255,.72); box-shadow: 0 18px 50px rgba(7,26,41,.08); }
.demo-ribbon { border-color: rgba(8,143,135,.26); color: #077e76; background: rgba(247,252,252,.94); }

@media (max-width: 1380px) {
  :root { --sidebar: 260px; }
  .command-hero { grid-template-columns: 1fr auto; }
  .command-nodes { grid-column: 1/-1; grid-template-columns: repeat(4,1fr); }
  .consult-main { grid-template-columns: 250px minmax(470px,1fr) 310px; }
  .architecture-kpis > div { min-width: 105px; }
}

@media (max-width: 1120px) {
  .command-hero { grid-template-columns: 1fr auto; }
  .public-assurance { grid-template-columns: repeat(3,1fr); }
  .public-assurance > div:nth-child(n+4) { display: none; }
  .consult-main { grid-template-columns: 235px minmax(0,1fr); }
  .evidence-panel { display: none; }
  .architecture-hero, .quality-hero { align-items: flex-start; }
  .architecture-kpis { display: grid; grid-template-columns: repeat(3,1fr); width: 100%; }
  .architecture-hero { display: grid; }
  .topology-split { grid-template-columns: 1fr 70px 1fr; }
  .topology-row.four { grid-template-columns: repeat(2,1fr); }
  .release-hero { grid-template-columns: 180px 1fr; }
  .release-state { grid-column: 1/-1; }
  .sla-banner { grid-template-columns: repeat(4,1fr); }
  .sla-banner .sla-main { grid-column: 1/-1; min-height: 105px; }
}

@media (max-width: 900px) {
  :root { --sidebar: 78px; }
  .sidebar { padding: 12px 8px; }
  .side-edition, .nav-group-label, .side-link > span:not(.nav-symbol), .side-link em, .side-status { display: none; }
  .side-link { justify-content: center; padding: 7px; }
  .command-hero { grid-template-columns: 1fr; }
  .command-score { justify-self: start; display: flex; }
  .command-nodes { grid-column: auto; grid-template-columns: repeat(2,1fr); }
  .quality-hero { grid-template-columns: 1fr; }
  .quality-score { padding: 0 0 18px; border: 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .audit-search { grid-template-columns: 1fr; }
  .audit-filter { flex-wrap: wrap; }
  .topology-row { flex-wrap: wrap; }
  .flow-arrow { display: none; }
  .topo-node { min-width: calc(50% - 10px); }
  .release-hero { grid-template-columns: 1fr; }
  .deploy-board { grid-template-columns: 1fr; }
  .deploy-sync { display: flex; justify-content: center; align-items: center; gap: 8px; }
  .deploy-sync b { margin: 0; }
}

@media (max-width: 680px) {
  .topbar { height: 62px; padding: 0 13px; }
  .app-shell { min-height: calc(100vh - 62px); }
  .sidebar { top: auto; height: 66px; padding: 7px 5px; background: #071c29; }
  .side-nav { display: flex; justify-content: space-around; }
  .side-nav .nav-group-label, .side-nav .side-link { display: none; }
  .side-nav .side-link[data-nav="operations"], .side-nav .side-link[data-nav="consult"], .side-nav .side-link[data-nav="quality"], .side-nav .side-link[data-nav="security"], .side-nav .side-link[data-nav="monitoring"] { display: flex; }
  .main { padding: 20px 13px 86px; }
  .brand-mark { width: 36px; height: 36px; }
  .service-live, .notice-btn { display: none; }
  .public-shell { grid-template-rows: 62px auto minmax(0,1fr); }
  .public-assurance { grid-template-columns: 1fr 1fr; }
  .public-assurance > div:nth-child(3) { display: none; }
  .public-assurance > div { min-height: 44px; }
  .consult-main { grid-template-columns: 1fr; min-height: calc(100vh - 106px); }
  .conversation-sidebar { display: none; }
  .command-hero { padding: 22px 19px; }
  .command-title { font-size: 25px; }
  .command-nodes { grid-template-columns: 1fr 1fr; }
  .quality-hero, .architecture-hero, .release-hero { padding: 21px 18px; }
  .architecture-kpis { grid-template-columns: 1fr; }
  .architecture-kpis > div { min-width: 0; }
  .sla-banner { grid-template-columns: repeat(2,1fr); }
  .sla-banner > div { min-height: 110px; padding: 17px; }
  .sla-banner .sla-main { grid-column: 1/-1; }
  .topology { padding: 10px; }
  .topology-split { grid-template-columns: 1fr; }
  .zone-sync { display: flex; justify-content: center; gap: 8px; align-items: center; }
  .zone-sync b { margin: 0; }
  .topology-row.four { grid-template-columns: 1fr; }
  .topo-node, .topology-row .topo-node { min-width: 100%; }
  .release-lane { overflow-x: auto; padding-bottom: 8px; }
  .release-lane > b { min-width: 20px; }
  .audit-filter { display: grid; }
  .trace-node { grid-template-columns: 34px 1fr; }
  .trace-node > em { grid-column: 2; justify-self: start; }
  .demo-ribbon { bottom: 73px; }
}

/* Unified quotation demo portal link */
.portal-back {
  position: fixed;
  left: 17px;
  bottom: 17px;
  z-index: 160;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 6px 11px 6px 7px;
  border: 1px solid rgba(80, 224, 208, .24);
  border-radius: 999px;
  color: #dffbf8;
  background: rgba(5, 24, 37, .94);
  box-shadow: 0 10px 30px rgba(5, 20, 32, .24);
  backdrop-filter: blur(12px);
  font-size: 10px;
  font-weight: 800;
  transition: .18s ease;
}
.portal-back:hover { color: #fff; border-color: rgba(80,224,208,.5); transform: translateY(-2px); }
.portal-back span { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; color: #062d37; background: linear-gradient(145deg,#68e8dc,#31bfb3); font-size: 13px; }
.portal-back em { font-style: normal; }
@media (max-width: 680px) { .portal-back { bottom: 78px; left: 11px; } .portal-back em { display: none; } .portal-back { padding-right: 7px; } }
