:root {
  --blue: #2563eb;
  --blue-dark: #0f3f9e;
  --cyan: #06b6d4;
  --green: #12b981;
  --amber: #f59e0b;
  --bg: #eef4fb;
  --panel: rgba(255, 255, 255, .86);
  --panel-strong: #ffffff;
  --line: rgba(91, 124, 175, .22);
  --line-strong: rgba(37, 99, 235, .34);
  --text: #162033;
  --muted: #64748b;
  --danger: #d92d20;
  --ok: #087f5b;
  --shadow: 0 18px 48px rgba(21, 45, 87, .12);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(rgba(37, 99, 235, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, .045) 1px, transparent 1px),
    radial-gradient(circle at 20% 0%, rgba(6, 182, 212, .16), transparent 28%),
    linear-gradient(135deg, #f8fbff 0%, #edf4ff 47%, #f6fbf7 100%);
  background-size: 28px 28px, 28px 28px, auto, auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0%, rgba(255,255,255,.42) 42%, transparent 54%),
    linear-gradient(180deg, rgba(255,255,255,.22), transparent 38%);
  opacity: .62;
}

button, input, select, textarea { font: inherit; }
button { border: 0; cursor: pointer; }

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 248px 1fr;
  position: relative;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  color: #eaf3ff;
  padding: 20px 14px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(11, 24, 52, .98), rgba(15, 43, 82, .96)),
    linear-gradient(rgba(34, 211, 238, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, .10) 1px, transparent 1px);
  background-size: auto, 24px 24px, 24px 24px;
  box-shadow: inset -1px 0 0 rgba(125, 211, 252, .18);
}

.sidebar::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(6, 182, 212, .12), transparent);
  transform: translateY(-65%);
  animation: scan 7s linear infinite;
}

@keyframes scan {
  to { transform: translateY(65%); }
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 46px;
  margin-bottom: 22px;
  letter-spacing: .2px;
}

.brand b {
  display: block;
  font-size: 18px;
  line-height: 1.1;
}

.brand small {
  display: block;
  margin-top: 4px;
  color: #98dff5;
  font-size: 11px;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(125, 211, 252, .54);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(37, 99, 235, .86), rgba(6, 182, 212, .82));
  box-shadow: 0 0 22px rgba(6, 182, 212, .26);
  font-weight: 800;
}

.nav { display: grid; gap: 8px; position: relative; z-index: 1; }
.nav button {
  position: relative;
  min-height: 42px;
  background: rgba(255,255,255,.035);
  color: #b9c8dc;
  text-align: left;
  padding: 11px 12px 11px 34px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: .18s ease;
}
.nav button::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #52657e;
  transform: translateY(-50%);
  box-shadow: 0 0 0 4px rgba(82, 101, 126, .12);
}
.nav button.active,
.nav button:hover {
  color: #fff;
  border-color: rgba(125, 211, 252, .34);
  background: linear-gradient(90deg, rgba(37, 99, 235, .34), rgba(6, 182, 212, .14));
  box-shadow: inset 3px 0 0 var(--cyan);
}
.nav button.active::before,
.nav button:hover::before {
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, .16), 0 0 18px rgba(6, 182, 212, .82);
}

.main { min-width: 0; position: relative; z-index: 1; }
.topbar {
  height: 72px;
  background: rgba(255,255,255,.74);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(109, 132, 170, .22);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  box-shadow: 0 10px 30px rgba(21, 45, 87, .06);
}
.topbar-status { display: inline-flex; align-items: center; gap: 10px; }
.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(18, 185, 129, .14), 0 0 18px rgba(18, 185, 129, .72);
}
.page { padding: 24px 28px 44px; max-width: 1360px; }
.title { font-size: 24px; font-weight: 760; margin: 0 0 4px; letter-spacing: .2px; }
.subtle { color: var(--muted); font-size: 13px; }

.command-center {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 20px;
  align-items: center;
  margin-bottom: 16px;
  padding: 22px;
  border-radius: 8px;
  border: 1px solid rgba(37, 99, 235, .22);
  background:
    linear-gradient(135deg, rgba(255,255,255,.92), rgba(238, 246, 255, .78)),
    linear-gradient(90deg, rgba(37, 99, 235, .08), rgba(18, 185, 129, .08));
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}
.command-center::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(37, 99, 235, .16), transparent 18%, transparent 82%, rgba(6, 182, 212, .14));
  pointer-events: none;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
}
.eyebrow::before {
  content: "";
  width: 20px;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(6, 182, 212, .72);
}
.command-center h1 {
  margin: 8px 0 8px;
  max-width: 820px;
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: .2px;
}
.command-center p { margin: 0; color: var(--muted); line-height: 1.7; }
.radar-panel {
  position: relative;
  width: 188px;
  height: 118px;
  border-radius: 8px;
  border: 1px solid rgba(37, 99, 235, .18);
  background:
    linear-gradient(rgba(37, 99, 235, .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, .09) 1px, transparent 1px),
    rgba(255,255,255,.42);
  background-size: 18px 18px;
}
.radar-panel span {
  position: absolute;
  display: block;
  height: 10px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  box-shadow: 0 0 16px rgba(37, 99, 235, .36);
}
.radar-panel span:nth-child(1) { width: 72%; left: 18px; top: 28px; }
.radar-panel span:nth-child(2) { width: 48%; left: 18px; top: 54px; background: linear-gradient(90deg, var(--green), var(--cyan)); }
.radar-panel span:nth-child(3) { width: 62%; left: 18px; top: 80px; background: linear-gradient(90deg, var(--amber), var(--blue)); }

.lemeng-hero {
  background:
    linear-gradient(135deg, rgba(255,255,255,.94), rgba(235, 247, 255, .82)),
    linear-gradient(120deg, rgba(37, 99, 235, .12), rgba(18, 185, 129, .10) 46%, rgba(245, 158, 11, .08));
}

.daily-hero {
  background:
    linear-gradient(135deg, rgba(255,255,255,.94), rgba(232, 246, 255, .84)),
    linear-gradient(120deg, rgba(11, 92, 255, .14), rgba(22, 200, 166, .12) 52%, rgba(245, 158, 11, .08));
}

.daily-pulse {
  position: relative;
  justify-self: center;
  width: 150px;
  height: 150px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  border-radius: 50%;
  color: #0b2f68;
  background:
    radial-gradient(circle, rgba(255,255,255,.96) 0 42%, rgba(37,99,235,.12) 43% 44%, transparent 45%),
    conic-gradient(from 20deg, rgba(37,99,235,.88), rgba(6,182,212,.86), rgba(18,185,129,.82), rgba(37,99,235,.88));
  box-shadow: 0 18px 42px rgba(37, 99, 235, .18);
}

.daily-pulse::before,
.daily-pulse::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  border: 1px solid rgba(37,99,235,.24);
}

.daily-pulse::after {
  inset: -6px;
  border-color: rgba(6,182,212,.18);
}

.daily-pulse b {
  font-size: 34px;
  line-height: 1;
  z-index: 1;
}

.daily-pulse span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  z-index: 1;
}

.ai-orbit {
  position: relative;
  width: 172px;
  height: 172px;
  justify-self: center;
  display: grid;
  place-items: center;
}
.ai-orbit b {
  z-index: 1;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  letter-spacing: .5px;
  background: linear-gradient(135deg, #0f3f9e, #06b6d4);
  box-shadow: 0 0 30px rgba(6, 182, 212, .34);
}
.ai-orbit span {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(37, 99, 235, .28);
  border-radius: 50%;
  animation: orbit 8s linear infinite;
}
.ai-orbit span::after {
  content: "";
  position: absolute;
  top: 14px;
  left: 22px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 16px rgba(6, 182, 212, .8);
}
.ai-orbit span:nth-child(3) {
  inset: 34px;
  animation-duration: 6s;
  animation-direction: reverse;
  border-color: rgba(18, 185, 129, .34);
}
.ai-orbit span:nth-child(3)::after { background: var(--green); top: 8px; left: 58px; }
.ai-orbit span:nth-child(4) {
  inset: 0;
  animation-duration: 11s;
  border-style: dashed;
  border-color: rgba(245, 158, 11, .36);
}
.ai-orbit span:nth-child(4)::after { background: var(--amber); top: 108px; left: 130px; }

@keyframes orbit {
  to { transform: rotate(360deg); }
}

.grid { display: grid; gap: 16px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 10px 28px rgba(31, 57, 98, .07);
  backdrop-filter: blur(14px);
}
.panel::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(6, 182, 212, .62), transparent);
}
.panel h2 {
  margin: 0 0 14px;
  font-size: 16px;
  letter-spacing: .2px;
}
.stat {
  min-height: 118px;
  display: grid;
  gap: 8px;
  align-content: center;
  overflow: hidden;
}
.stat::before {
  content: "";
  position: absolute;
  right: 14px;
  top: 16px;
  width: 46px;
  height: 24px;
  border-top: 2px solid rgba(6, 182, 212, .58);
  border-right: 2px solid rgba(6, 182, 212, .58);
}
.stat .value {
  font-size: 30px;
  font-weight: 800;
  color: #0b2f68;
}
.stat .label { color: var(--muted); font-size: 13px; }
.metric-button {
  width: 100%;
  text-align: left;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.metric-button:hover {
  transform: translateY(-2px);
  border-color: rgba(6, 182, 212, .48);
  box-shadow: 0 16px 34px rgba(31, 57, 98, .12);
}
.metric-button.active {
  border-color: rgba(37, 99, 235, .58);
  background:
    linear-gradient(180deg, rgba(239, 246, 255, .96), rgba(255,255,255,.9)),
    var(--panel-strong);
}
.metric-button.active .label {
  color: var(--blue);
  font-weight: 800;
}
.metric-detail {
  margin-top: 16px;
}
.metric-detail-scroll {
  overflow-x: auto;
}
.metric-detail .table {
  min-width: 760px;
}
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; color: #344054; font-weight: 700; }
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(113, 139, 181, .32);
  border-radius: 6px;
  padding: 10px 11px;
  color: var(--text);
  background: rgba(255,255,255,.82);
  min-height: 40px;
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(37, 99, 235, .72);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.field textarea { min-height: 82px; resize: vertical; }
.actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.btn {
  position: relative;
  min-height: 38px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  padding: 9px 15px;
  border-radius: 6px;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(37, 99, 235, .22);
  transition: transform .16s ease, box-shadow .16s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(37, 99, 235, .26); }
.btn:disabled {
  cursor: not-allowed;
  opacity: .48;
  transform: none;
  box-shadow: none;
}
.btn.secondary {
  background: linear-gradient(135deg, #eaf2ff, #e6fbff);
  color: var(--blue-dark);
  box-shadow: none;
  border: 1px solid rgba(37, 99, 235, .2);
}
.btn.ghost { background: #fff; color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.btn.danger { background: #fff1f0; color: var(--danger); box-shadow: none; border: 1px solid rgba(217, 45, 32, .18); }
.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 750;
  background: rgba(239, 246, 255, .88);
  color: var(--blue-dark);
  border: 1px solid rgba(37, 99, 235, .16);
}
.tag.warn { background: #fff7ed; color: #9a5b00; border-color: rgba(245, 158, 11, .22); }
.tag.danger { background: #fff1f0; color: var(--danger); border-color: rgba(217, 45, 32, .2); }
.tag.ok { background: #e9fbf2; color: var(--ok); border-color: rgba(18, 185, 129, .2); }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th,
.table td {
  border-bottom: 1px solid rgba(91, 124, 175, .18);
  padding: 11px 9px;
  text-align: left;
  vertical-align: top;
}
.table th {
  color: #2e4a73;
  background: linear-gradient(180deg, rgba(239, 246, 255, .96), rgba(248, 250, 252, .9));
  font-weight: 800;
}
.table tr:hover td { background: rgba(37, 99, 235, .035); }
.flow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.flow span { background: #f8fafc; border: 1px solid var(--line); padding: 8px 10px; border-radius: 6px; font-size: 13px; }
.alert {
  border: 1px solid rgba(245, 158, 11, .28);
  background: linear-gradient(135deg, rgba(255, 251, 235, .94), rgba(255, 247, 237, .84));
  color: #7a4b00;
  padding: 11px 12px;
  border-radius: 6px;
  margin-top: 12px;
}
.chart-bar { height: 12px; border-radius: 99px; background: #e7edf7; overflow: hidden; }
.chart-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--green)); }
.chart-panel {
  min-height: 292px;
  overflow: hidden;
}
.mini-chart {
  width: 100%;
  height: auto;
  display: block;
}
.mini-chart rect {
  fill: rgba(247, 251, 255, .92);
}
.mini-chart path {
  fill: none;
  stroke: var(--blue);
  stroke-width: 4;
  stroke-linecap: round;
  filter: drop-shadow(0 6px 8px rgba(37, 99, 235, .16));
}
.mini-chart circle {
  fill: var(--green);
  stroke: #fff;
  stroke-width: 1.5;
}
.mini-chart text {
  fill: var(--muted);
  font-size: 11px;
}
.bar-list {
  display: grid;
  gap: 11px;
}
.bar-row {
  display: grid;
  grid-template-columns: minmax(96px, 1fr) minmax(120px, 2fr) 38px;
  align-items: center;
  gap: 10px;
  min-height: 28px;
  font-size: 13px;
}
.bar-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #2e4a73;
  font-weight: 700;
}
.bar-row i {
  height: 14px;
  border-radius: 999px;
  background: rgba(226, 236, 250, .92);
  overflow: hidden;
}
.bar-row b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--green));
}
.bar-row em {
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
  text-align: right;
}
.ai-report .answer {
  line-height: 1.8;
}
.ops-form {
  grid-template-columns: 1fr;
}
.ops-draft {
  overflow: hidden;
}
.draft-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}
.payload-preview {
  max-height: 360px;
  overflow: auto;
  margin: 12px 0 0;
  padding: 14px;
  color: #d8eeff;
  background:
    linear-gradient(rgba(125, 211, 252, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 211, 252, .06) 1px, transparent 1px),
    #0d1b2f;
  background-size: 22px 22px;
  border: 1px solid rgba(37, 99, 235, .28);
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.65;
  white-space: pre-wrap;
}
.payload-label {
  display: block;
  margin: 14px 0 8px;
  color: #244468;
  font-size: 13px;
  font-weight: 800;
}
.payload-editor {
  width: 100%;
  min-height: 320px;
  resize: vertical;
  overflow: auto;
  margin: 0;
  padding: 14px;
  color: #d8eeff;
  background:
    linear-gradient(rgba(125, 211, 252, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 211, 252, .06) 1px, transparent 1px),
    #0d1b2f;
  background-size: 22px 22px;
  border: 1px solid rgba(37, 99, 235, .28);
  border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.65;
  outline: none;
}
.payload-editor:focus {
  border-color: rgba(6, 182, 212, .72);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, .12);
}
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}
.review-step {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 9px;
  min-height: 54px;
  padding: 10px;
  border: 1px solid rgba(37, 99, 235, .16);
  border-radius: 8px;
  background: rgba(248, 250, 252, .86);
  color: #244468;
  font-size: 13px;
  font-weight: 750;
}
.review-step b {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: rgba(37, 99, 235, .1);
  color: var(--blue);
}
.review-step.ok b {
  background: rgba(22, 163, 74, .12);
  color: var(--green);
}
.review-step.warn b {
  background: rgba(245, 158, 11, .14);
  color: var(--amber);
}
.ops-review-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.chat { display: grid; gap: 12px; }
.chat textarea {
  min-height: 124px;
  border-radius: 8px;
  border: 1px solid rgba(37, 99, 235, .2);
  background: rgba(255,255,255,.86);
  padding: 13px;
  outline: none;
}
.answer {
  background: linear-gradient(180deg, rgba(248, 250, 252, .92), rgba(255,255,255,.86));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  white-space: pre-wrap;
}
.lemeng-cards {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.insight-card {
  position: relative;
  border: 1px solid rgba(37, 99, 235, .18);
  border-radius: 8px;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.88), rgba(248, 250, 252, .74)),
    linear-gradient(90deg, rgba(6, 182, 212, .08), transparent);
  overflow: hidden;
}
.insight-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
}
.insight-card > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.insight-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.65;
}
.metric-line {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.metric-line span {
  min-height: 32px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: #18406d;
  background: rgba(239, 246, 255, .84);
  border: 1px solid rgba(37, 99, 235, .14);
  font-weight: 750;
}
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .42);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 20;
  backdrop-filter: blur(8px);
}
.modal {
  width: min(620px, 100%);
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(125, 211, 252, .28);
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 28px 70px rgba(15, 23, 42, .28);
}
.modal.wide {
  width: min(1120px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
}
.link-button {
  border: 0;
  padding: 0;
  color: var(--blue);
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.link-button:hover {
  text-decoration: underline;
}
.approval-detail .panel {
  box-shadow: none;
}
.detail-list {
  display: grid;
  gap: 10px;
}
.detail-item {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  align-items: start;
  min-height: 34px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.detail-item span {
  color: var(--muted);
  font-size: 13px;
}
.detail-item b {
  min-width: 0;
  color: var(--text);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.approval-actions {
  position: sticky;
  bottom: -18px;
  z-index: 1;
  padding: 14px 0 0;
  background: #ffffff;
}
.hidden { display: none !important; }

@media (max-width: 920px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: relative; height: auto; }
  .nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topbar { height: auto; min-height: 72px; gap: 12px; align-items: flex-start; padding: 16px; flex-direction: column; }
  .page { padding: 16px; }
  .command-center { grid-template-columns: 1fr; }
  .radar-panel { width: 100%; }
  .form-grid, .cols-2, .cols-3, .cols-4, .review-grid, .ops-review-form { grid-template-columns: 1fr; }
}

/* Visual-only enterprise refresh. No DOM, data, API, or behavior changes. */
:root {
  --blue: #3f5e8c;
  --blue-dark: #2e466b;
  --cyan: #6f8db8;
  --green: #2f8f6b;
  --amber: #b7791f;
  --bg: #f5f7fa;
  --panel: rgba(255, 255, 255, .94);
  --panel-strong: #ffffff;
  --line: #e5eaf0;
  --line-strong: rgba(63, 94, 140, .34);
  --text: #1f2937;
  --muted: #7a8597;
  --danger: #c2413a;
  --ok: #2f8f6b;
  --shadow: 0 8px 24px rgba(31, 41, 55, .08);
  --radius-card: 12px;
  --radius-control: 10px;
}

body {
  color: var(--text);
  background: #f5f7fa;
  letter-spacing: 0;
}

body::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, .72), rgba(245, 247, 250, .16));
  opacity: 1;
}

.sidebar {
  color: #e8eef7;
  background: linear-gradient(180deg, #243852 0%, #1f2f46 100%);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, .08);
}

.sidebar::after {
  display: none;
}

.brand {
  margin-bottom: 24px;
}

.brand b {
  font-size: 17px;
  line-height: 22px;
}

.brand small {
  color: #aab8cc;
  letter-spacing: .4px;
}

.brand-mark {
  border-color: rgba(255, 255, 255, .18);
  border-radius: 10px;
  background: #3f5e8c;
  box-shadow: none;
}

.nav {
  gap: 6px;
}

.nav button {
  min-height: 42px;
  color: #bec8d7;
  padding: 10px 12px 10px 36px;
  border-radius: 10px;
  background: transparent;
}

.nav button::before {
  background: #718096;
  box-shadow: none;
}

.nav button.active,
.nav button:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .1);
  box-shadow: inset 3px 0 0 #8fb3df;
}

.nav button.active::before,
.nav button:hover::before {
  background: #8fb3df;
  box-shadow: 0 0 0 4px rgba(143, 179, 223, .14);
}

.topbar {
  height: 68px;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 16px rgba(31, 41, 55, .04);
}

.page {
  padding: 24px 28px 44px;
}

.title {
  color: #172033;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0;
}

.subtle {
  color: var(--muted);
  font-size: 13px;
  line-height: 20px;
}

.command-center,
.lemeng-hero,
.daily-hero {
  border-color: var(--line);
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(239, 244, 250, .92));
  box-shadow: var(--shadow);
}

.command-center::before {
  background: linear-gradient(90deg, rgba(63, 94, 140, .08), transparent 36%, rgba(47, 143, 107, .06));
}

.eyebrow {
  color: var(--blue-dark);
  letter-spacing: .6px;
}

.eyebrow::before {
  background: #6f8db8;
  box-shadow: none;
}

.command-center h1 {
  color: #172033;
  font-size: 24px;
  font-weight: 760;
  line-height: 32px;
  letter-spacing: 0;
}

.command-center p {
  color: #5f6b7a;
}

.radar-panel,
.ai-orbit b {
  border-radius: 12px;
  border-color: var(--line);
  background: #f8fafc;
  box-shadow: none;
}

.ai-orbit b {
  color: var(--blue-dark);
}

.radar-panel span,
.ai-orbit span::after {
  background: #6f8db8;
  box-shadow: none;
}

.daily-pulse {
  color: var(--blue-dark);
  background:
    radial-gradient(circle, #ffffff 0 48%, transparent 49%),
    conic-gradient(from 20deg, #3f5e8c, #6f8db8, #2f8f6b, #3f5e8c);
  box-shadow: 0 10px 28px rgba(63, 94, 140, .14);
}

.panel {
  border-color: var(--line);
  border-radius: var(--radius-card);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: none;
}

.panel::after {
  display: none;
}

.panel h2 {
  color: #172033;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: 0;
}

.stat {
  min-height: 112px;
}

.stat::before {
  display: none;
}

.stat .value {
  color: var(--blue-dark);
  font-size: 28px;
  line-height: 34px;
}

.stat .label {
  color: var(--muted);
  font-size: 13px;
}

.metric-button:hover {
  border-color: rgba(63, 94, 140, .3);
  box-shadow: 0 12px 28px rgba(31, 41, 55, .1);
}

.metric-button.active {
  border-color: rgba(63, 94, 140, .36);
  background: #f4f7fb;
}

.metric-button.active .label {
  color: var(--blue-dark);
}

.form-grid {
  gap: 14px;
}

.field {
  gap: 7px;
}

.field label,
.payload-label {
  color: #465466;
  font-size: 13px;
  font-weight: 650;
}

.field input,
.field select,
.field textarea,
.chat textarea {
  min-height: 42px;
  border-color: var(--line);
  border-radius: var(--radius-control);
  background: #ffffff;
  color: var(--text);
  padding: 10px 12px;
  line-height: 22px;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.chat textarea:focus,
.payload-editor:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(63, 94, 140, .12);
}

.field textarea {
  min-height: 88px;
}

.actions {
  gap: 12px;
  margin-top: 16px;
}

.btn {
  min-height: 42px;
  border-radius: var(--radius-control);
  background: var(--blue);
  box-shadow: 0 6px 14px rgba(63, 94, 140, .22);
  font-weight: 650;
}

.btn:hover {
  box-shadow: 0 8px 20px rgba(63, 94, 140, .24);
}

.btn.secondary {
  color: var(--blue-dark);
  border-color: rgba(63, 94, 140, .18);
  background: #eaf0f8;
}

.btn.ghost {
  color: var(--text);
  border-color: var(--line);
  background: #ffffff;
}

.btn.danger {
  color: var(--danger);
  border-color: rgba(194, 65, 58, .22);
  background: #fdecec;
}

.tag {
  min-height: 24px;
  color: var(--blue-dark);
  border-color: rgba(63, 94, 140, .18);
  background: #eaf0f8;
  font-weight: 650;
}

.tag.warn {
  color: #9a610f;
  border-color: rgba(183, 121, 31, .2);
  background: #fff4db;
}

.tag.danger {
  color: var(--danger);
  border-color: rgba(194, 65, 58, .2);
  background: #fdecec;
}

.tag.ok {
  color: var(--ok);
  border-color: rgba(47, 143, 107, .2);
  background: #e8f5ef;
}

.table {
  font-size: 13px;
}

.table th,
.table td {
  border-bottom-color: var(--line);
  padding: 12px 10px;
}

.table th {
  color: #465466;
  background: #f7f9fc;
  font-weight: 700;
}

.table tr:hover td {
  background: #f8fafc;
}

.flow span,
.metric-line span {
  border-color: var(--line);
  border-radius: 10px;
  color: var(--blue-dark);
  background: #f8fafc;
}

.alert {
  color: #7a4b00;
  border-color: rgba(183, 121, 31, .24);
  border-radius: 10px;
  background: #fff8e8;
}

.chart-bar {
  height: 10px;
  background: #e8edf3;
}

.chart-bar i,
.bar-row b {
  background: linear-gradient(90deg, #3f5e8c, #6f8db8);
}

.bar-row span {
  color: #465466;
}

.bar-row em {
  color: var(--muted);
}

.mini-chart rect {
  fill: #f8fafc;
}

.mini-chart path {
  stroke: var(--blue);
  filter: none;
}

.mini-chart circle {
  fill: var(--green);
}

.answer {
  border-color: var(--line);
  border-radius: 10px;
  background: #f8fafc;
  line-height: 1.75;
}

.insight-card {
  border-color: var(--line);
  border-radius: 10px;
  background: #ffffff;
}

.insight-card::before {
  background: var(--blue);
}

.insight-card p {
  color: #5f6b7a;
}

.payload-preview,
.payload-editor {
  color: #dbe7f5;
  border-color: rgba(143, 179, 223, .24);
  border-radius: 10px;
  background:
    linear-gradient(rgba(143, 179, 223, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 179, 223, .05) 1px, transparent 1px),
    #1f2f46;
}

.review-step {
  border-color: var(--line);
  border-radius: 10px;
  background: #f8fafc;
  color: #465466;
}

.review-step b {
  color: var(--blue);
  background: #eaf0f8;
}

.review-step.ok b {
  color: var(--green);
  background: #e8f5ef;
}

.review-step.warn b {
  color: var(--amber);
  background: #fff4db;
}

.modal {
  border-color: var(--line);
  border-radius: var(--radius-card);
  background: #ffffff;
  box-shadow: 0 24px 64px rgba(31, 41, 55, .18);
}

@media (max-width: 920px) {
  .page {
    padding: 16px;
  }

  .sidebar {
    padding: 16px;
  }

  .nav {
    gap: 8px;
  }

  .command-center {
    padding: 18px;
  }

  .command-center h1 {
    font-size: 22px;
    line-height: 30px;
  }
}
