:root {
  --ink: #18201e;
  --muted: #66716d;
  --line: #dce2df;
  --line-strong: #c8d0cc;
  --surface: #ffffff;
  --canvas: #f4f6f5;
  --sidebar: #17211e;
  --sidebar-muted: #9fada7;
  --green: #16755b;
  --green-soft: #e8f3ef;
  --orange: #b85c24;
  --orange-soft: #fbefe7;
  --blue: #316a8a;
  --blue-soft: #eaf2f6;
  --red: #b23a3a;
  --red-soft: #f9eaea;
  --yellow: #9b741c;
  --yellow-soft: #f8f1dc;
  --shadow: 0 12px 32px rgba(21, 31, 27, 0.08);
}


.auth-logout {
  flex: 0 0 auto;
  padding: 5px 9px;
  border: 1px solid rgba(112, 201, 170, .2);
  border-radius: 4px;
  color: #b8cac3;
  background: rgba(255,255,255,.04);
  font-size: 10px;
}
.auth-logout:hover { color: #fff; border-color: rgba(112, 201, 170, .48); }
.auth-logout[hidden] { display: none; }
.workflow-jumpbar {
  width: min(1180px, calc(100% - 60px));
  margin: 0 auto 24px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid #cddbd5;
  border-radius: 6px;
  background: linear-gradient(105deg, #edf6f2 0%, #fff 70%);
  box-shadow: 0 10px 26px rgba(20, 31, 27, .05);
}
.workflow-jumpbar > div:first-child { display: grid; gap: 3px; }
.workflow-jumpbar span { color: var(--green); font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.workflow-jumpbar strong { font-size: 14px; }
.workflow-jumpbar small { color: var(--muted); font-size: 11px; }
.workflow-jump-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.police-filing { display: inline-flex; align-items: center; gap: 5px; }
.police-filing img { width: 18px; height: 18px; object-fit: contain; }

@media (max-width: 820px) {
  .workflow-jumpbar { width: calc(100% - 32px); margin-bottom: 18px; align-items: flex-start; flex-direction: column; }
  .workflow-jump-actions { width: 100%; justify-content: flex-start; }
}

@media (max-width: 520px) {
  .workflow-jump-actions { display: grid; grid-template-columns: 1fr; }
  .workflow-jump-actions .button { width: 100%; text-align: center; }
}

@media print {
  .workflow-jumpbar, .auth-logout { display: none !important; }
}

/* AI治理全链系统统一导航与备案区域 */
.ecosystem-bar {
  position: sticky;
  top: 0;
  z-index: 45;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 24px;
  color: #eaf3ef;
  background: #0d1714;
  border-bottom: 1px solid rgba(117, 201, 174, .16);
  box-shadow: 0 8px 20px rgba(8, 17, 14, .12);
}
.ecosystem-bar a { color: inherit; text-decoration: none; }
.ecosystem-brand { display: inline-flex; align-items: baseline; gap: 9px; flex: 0 0 auto; }
.ecosystem-brand span { color: #70c9aa; font-size: 10px; font-weight: 900; letter-spacing: .16em; }
.ecosystem-brand strong { font-size: 12px; letter-spacing: .02em; }
.ecosystem-bar nav { display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.ecosystem-bar nav::-webkit-scrollbar { display: none; }
.ecosystem-bar nav a { flex: 0 0 auto; padding: 5px 9px; border-radius: 4px; color: #aebdb7; font-size: 11px; transition: .16s ease; }
.ecosystem-bar nav a:hover { color: #fff; background: rgba(255,255,255,.07); }
.ecosystem-bar nav a.current { color: #fff; background: rgba(75, 177, 143, .2); box-shadow: inset 0 0 0 1px rgba(112, 201, 170, .22); }
.ecosystem-suite { margin-left: auto; flex: 0 0 auto; color: #73857e; font-size: 10px; letter-spacing: .12em; }
.app-shell { min-height: calc(100vh - 42px); }
.sidebar { top: 42px; height: calc(100vh - 42px); }
.main { min-height: calc(100vh - 42px); }
.topbar { top: 42px; }
.filing-links { flex-basis: 100%; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; padding-top: 2px; }
.filing-links[hidden], .filing-links a[hidden] { display: none; }
.filing-links a { color: inherit; text-decoration: none; }
.filing-links a:hover { color: var(--green); text-decoration: underline; }

@media (max-width: 680px) {
  .ecosystem-bar { gap: 10px; padding: 0 10px; }
  .ecosystem-brand strong, .ecosystem-suite { display: none; }
  .ecosystem-bar nav { flex: 1; justify-content: flex-end; }
  .ecosystem-bar nav a { padding-inline: 7px; }
}

@media (max-width: 440px) {
  .ecosystem-brand { display: none; }
  .ecosystem-bar nav { justify-content: space-between; }
}

@media print {
  .ecosystem-bar { display: none !important; }
}
* { box-sizing: border-box; }

html { color-scheme: light; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: 0;
}

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

.app-shell { display: grid; grid-template-columns: 238px minmax(0, 1fr); min-height: calc(100vh - 42px); }

.sidebar {
  position: sticky;
  top: 42px;
  height: calc(100vh - 42px);
  display: flex;
  flex-direction: column;
  background: var(--sidebar);
  color: white;
  padding: 22px 14px 16px;
  z-index: 20;
}

.brand { display: grid; gap: 10px; padding: 0 8px 18px; border-bottom: 1px solid rgba(255,255,255,.1); }
.brand-logo-shell { width: 132px; height: 44px; display: flex; align-items: center; padding: 6px 9px; border-radius: 5px; background: white; }
.brand-logo-shell img { display: block; width: 100%; height: auto; }
.brand-copy { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.brand strong, .brand span { display: block; }
.brand strong { font-size: 15px; }
.brand span { color: var(--sidebar-muted); font-size: 11px; margin-top: 2px; }

.nav { display: grid; gap: 4px; padding-top: 18px; }
.nav-item { width: 100%; min-height: 42px; display: flex; align-items: center; gap: 11px; padding: 0 12px; border: 0; border-radius: 5px; background: transparent; color: #ccd5d1; text-align: left; }
.nav-item span { min-width: 21px; color: #708078; font-size: 10px; font-variant-numeric: tabular-nums; }
.nav-item:hover { background: rgba(255,255,255,.06); color: white; }
.nav-item.active { background: #263530; color: white; box-shadow: inset 3px 0 #56ac92; }
.nav-item.active span { color: #78c3ad; }
.sidebar-footer { margin-top: auto; }
.local-status { display: flex; align-items: center; gap: 8px; margin: 14px 12px 0; color: var(--sidebar-muted); font-size: 11px; }
.local-status i { width: 7px; height: 7px; border-radius: 50%; background: #56ac92; box-shadow: 0 0 0 3px rgba(86,172,146,.14); }

.main { min-width: 0; min-height: calc(100vh - 42px); display: flex; flex-direction: column; }
.topbar { position: sticky; top: 42px; z-index: 15; height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 30px; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.breadcrumb { display: flex; align-items: baseline; gap: 10px; }
.breadcrumb span { color: var(--muted); font-size: 12px; }
.breadcrumb strong { font-size: 16px; }
.top-actions { display: flex; align-items: center; gap: 14px; }
.save-status { color: var(--muted); font-size: 12px; min-width: 48px; text-align: right; }
.save-status.saving { color: var(--orange); }
.menu-button { display: none; width: 38px; height: 38px; border: 1px solid var(--line); background: white; border-radius: 5px; }

.content { width: min(1400px, 100%); margin: 0 auto; padding: 30px; flex: 1; }
.app-footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; padding: 16px 30px 18px; border-top: 1px solid var(--line); color: var(--muted); background: rgba(255,255,255,.7); font-size: 10px; text-align: center; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.page-head h1 { margin: 4px 0 5px; font-size: 26px; line-height: 1.25; }
.page-head p { margin: 0; color: var(--muted); max-width: 680px; }
.eyebrow { display: block; color: var(--green); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

.button { min-height: 38px; padding: 0 15px; border-radius: 5px; border: 1px solid transparent; font-weight: 700; font-size: 13px; }
.button-primary { background: var(--green); color: white; border-color: var(--green); }
.button-primary:hover { background: #0e644c; }
.button-secondary { background: white; border-color: var(--line-strong); color: var(--ink); }
.button-secondary:hover { background: #f7f9f8; }
.button-danger { color: var(--red); background: white; border-color: #e1b9b9; }
.button-small { min-height: 30px; padding: 0 10px; font-size: 12px; }
.icon-button { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 5px; background: white; color: var(--muted); font-size: 22px; line-height: 1; }

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 18px; min-height: 132px; }
.stat-label { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; }
.stat-label i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.stat strong { display: block; margin-top: 16px; font-size: 28px; line-height: 1; font-variant-numeric: tabular-nums; }
.stat small { display: block; color: var(--muted); margin-top: 10px; }

.layout-two { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .85fr); gap: 18px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.panel + .panel { margin-top: 18px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 19px; border-bottom: 1px solid var(--line); }
.panel-head h2 { margin: 0; font-size: 15px; }
.panel-head span { color: var(--muted); font-size: 12px; }
.panel-body { padding: 19px; }

.maturity-block { display: grid; grid-template-columns: 110px 1fr; gap: 24px; align-items: center; }
.score-ring { --score: 50; width: 110px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--green) calc(var(--score) * 1%), #e7ece9 0); position: relative; }
.score-ring::after { content: ""; position: absolute; inset: 10px; background: white; border-radius: 50%; }
.score-ring strong, .score-ring span { position: relative; z-index: 1; grid-area: 1/1; }
.score-ring strong { font-size: 29px; margin-top: -13px; }
.score-ring span { color: var(--muted); font-size: 10px; margin-top: 31px; }
.progress { height: 8px; background: #e8ecea; border-radius: 4px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--green); }
.maturity-copy h3 { margin: 0 0 5px; font-size: 19px; }
.maturity-copy p { color: var(--muted); margin: 0 0 15px; }
.stage-scale { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; color: var(--muted); font-size: 10px; margin-top: 8px; }
.stage-scale span.active { color: var(--green); font-weight: 800; }

.finding-list, .activity-list, .plan-list { display: grid; gap: 0; }
.finding { display: grid; grid-template-columns: 30px 1fr auto; align-items: start; gap: 11px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.finding:last-child { border-bottom: 0; }
.finding-index { width: 26px; height: 26px; display: grid; place-items: center; background: var(--canvas); color: var(--muted); font-size: 10px; border-radius: 4px; }
.finding strong, .finding span { display: block; }
.finding span { margin-top: 3px; color: var(--muted); font-size: 12px; }
.tag { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border-radius: 4px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.tag-green { color: var(--green); background: var(--green-soft); }
.tag-orange { color: var(--orange); background: var(--orange-soft); }
.tag-blue { color: var(--blue); background: var(--blue-soft); }
.tag-red { color: var(--red); background: var(--red-soft); }
.tag-yellow { color: var(--yellow); background: var(--yellow-soft); }
.tag-gray { color: #59635f; background: #edf0ee; }

.form-section { margin-bottom: 25px; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 13px; }
.section-title h2 { margin: 0; font-size: 16px; }
.section-title p { margin: 0; color: var(--muted); font-size: 12px; }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.form-grid.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field > span { color: #47514d; font-size: 12px; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line-strong); border-radius: 5px; background: white; color: var(--ink); padding: 10px 11px; outline: none; }
.field input, .field select { height: 41px; }
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(22,117,91,.11); }
.form-footer { display: flex; justify-content: flex-end; padding-top: 18px; border-top: 1px solid var(--line); }

.question-list { display: grid; gap: 12px; }
.question { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(360px, 1.1fr); gap: 22px; align-items: center; padding: 17px 18px; background: white; border: 1px solid var(--line); border-radius: 6px; }
.question h3 { margin: 0 0 3px; font-size: 14px; }
.question p { margin: 0; color: var(--muted); font-size: 12px; }
.segmented { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { min-height: 38px; display: grid; place-items: center; padding: 4px; border: 1px solid var(--line); border-radius: 4px; background: #fafbfa; color: var(--muted); text-align: center; font-size: 11px; }
.segmented input:checked + span { border-color: var(--green); background: var(--green-soft); color: var(--green); font-weight: 800; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 11px 13px; background: #f7f9f8; color: var(--muted); text-align: left; font-size: 11px; white-space: nowrap; }
td { padding: 14px 13px; border-top: 1px solid var(--line); vertical-align: middle; }
td strong, td small { display: block; }
td small { color: var(--muted); margin-top: 3px; max-width: 320px; }
.table-actions { display: flex; gap: 6px; justify-content: flex-end; }
.empty { padding: 54px 24px; text-align: center; color: var(--muted); }
.empty strong { display: block; color: var(--ink); font-size: 16px; margin-bottom: 7px; }

.opportunity-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.opportunity { background: white; border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: 6px; padding: 17px; }
.opportunity.orange { border-left-color: var(--orange); }
.opportunity.blue { border-left-color: var(--blue); }
.opportunity.red { border-left-color: var(--red); }
.opportunity-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.opportunity h3 { margin: 0; font-size: 15px; }
.opportunity p { min-height: 38px; color: var(--muted); font-size: 12px; margin: 5px 0 15px; }
.opportunity-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.opportunity-metrics div { padding: 9px; background: var(--canvas); border-radius: 4px; }
.opportunity-metrics span, .opportunity-metrics strong { display: block; }
.opportunity-metrics span { color: var(--muted); font-size: 10px; }
.opportunity-metrics strong { margin-top: 2px; font-size: 13px; }

.roi-grid { display: grid; grid-template-columns: minmax(280px,.75fr) minmax(0,1.25fr); gap: 18px; }
.big-number { padding: 23px; background: var(--sidebar); color: white; border-radius: 6px; }
.big-number span { color: #afbbb6; font-size: 12px; }
.big-number strong { display: block; font-size: 38px; margin: 8px 0 4px; }
.big-number small { color: #afbbb6; }
.metric-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.metric-list div { padding: 16px; background: white; }
.metric-list span, .metric-list strong { display: block; }
.metric-list span { color: var(--muted); font-size: 11px; }
.metric-list strong { font-size: 18px; margin-top: 4px; }
.bar-chart { display: grid; gap: 13px; }
.bar-row { display: grid; grid-template-columns: 150px minmax(100px,1fr) 70px; align-items: center; gap: 12px; }
.bar-row > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.bar-track { height: 20px; background: #edf1ef; }
.bar-fill { height: 100%; background: var(--green); min-width: 2px; }
.bar-row strong { text-align: right; font-size: 12px; }

.timeline { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.week { background: white; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.week-head { padding: 15px; color: white; background: var(--sidebar); }
.week:nth-child(2) .week-head { background: #245a49; }
.week:nth-child(3) .week-head { background: #526b62; }
.week:nth-child(4) .week-head { background: #7f5a36; }
.week-head span, .week-head strong { display: block; }
.week-head span { color: rgba(255,255,255,.72); font-size: 10px; }
.week-head strong { margin-top: 3px; }
.week-tasks { padding: 8px 14px 13px; }
.task-check { display: grid; grid-template-columns: 18px 1fr; gap: 9px; align-items: start; padding: 11px 0; border-bottom: 1px solid var(--line); }
.task-check:last-child { border-bottom: 0; }
.task-check input { margin: 3px 0 0; accent-color: var(--green); }
.task-check span { font-size: 12px; }
.task-check input:checked + span { color: var(--muted); text-decoration: line-through; }

.report { background: white; border: 1px solid var(--line); box-shadow: var(--shadow); max-width: 960px; margin: 0 auto; }
.report-cover { min-height: 360px; display: flex; flex-direction: column; justify-content: space-between; padding: 54px; background: var(--sidebar); color: white; }
.report-cover-brand { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.report-cover-brand > span { color: #7cc5af; font-size: 11px; font-weight: 800; }
.report-logo-shell { width: 146px; height: 49px; display: flex; align-items: center; padding: 7px 10px; border-radius: 5px; background: white; }
.report-logo-shell img { display: block; width: 100%; height: auto; }
.report-legal { margin-top: 28px; padding-top: 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; text-align: center; }
.integration-status { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.integration-status:last-child { border-bottom: 0; }
.integration-status strong, .integration-status span { display: block; }
.integration-status span { color: var(--muted); font-size: 12px; margin-top: 2px; }
.toggle-line { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.toggle-line input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--green); }
.endpoint-list { display: grid; gap: 7px; margin: 12px 0 0; }
.endpoint-list code, .token-box code { display: block; overflow-wrap: anywhere; padding: 8px 10px; border: 1px solid var(--line); border-radius: 4px; background: #f7f9f8; color: var(--blue); font-family: Consolas, monospace; font-size: 11px; }
.token-box { display: grid; gap: 8px; margin-top: 12px; padding: 12px; border: 1px solid #b8d8cc; background: var(--green-soft); border-radius: 5px; }
.token-box p { margin: 0; color: var(--green); font-size: 12px; }
.integration-form-grid { grid-template-columns: 1fr; margin-top: 18px; }
.integration-form-grid .toggle-line { padding-bottom: 4px; }
.report-cover h1 { max-width: 650px; margin: 0; font-size: 39px; line-height: 1.25; }
.report-cover p { color: #b9c5c0; margin: 10px 0 0; }
.report-meta { display: flex; justify-content: space-between; color: #aebbb5; font-size: 12px; }
.report-section { padding: 38px 54px; border-bottom: 1px solid var(--line); }
.report-section h2 { margin: 0 0 18px; font-size: 21px; }
.report-summary { font-size: 16px; line-height: 1.9; }
.report-kpis { display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--line); }
.report-kpis div { padding: 18px; border-right: 1px solid var(--line); }
.report-kpis div:last-child { border-right: 0; }
.report-kpis span, .report-kpis strong { display: block; }
.report-kpis span { color: var(--muted); font-size: 10px; }
.report-kpis strong { margin-top: 5px; font-size: 18px; }
.report-note { padding: 14px 16px; background: var(--yellow-soft); border-left: 3px solid var(--yellow); color: #5e4c24; font-size: 12px; }

.dialog { width: min(1040px, calc(100% - 30px)); max-height: calc(100vh - 40px); border: 0; border-radius: 7px; padding: 0; box-shadow: 0 24px 70px rgba(12,20,17,.25); }
.dialog::backdrop { background: rgba(15,24,21,.55); }
.dialog form { padding: 23px; }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 19px; }
.dialog h2 { margin: 3px 0 0; font-size: 20px; }
.rating-grid { display: grid; gap: 10px; margin-top: 18px; padding: 15px; background: var(--canvas); }
.rating-grid label { display: grid; grid-template-columns: 130px 1fr 24px; align-items: center; gap: 11px; font-size: 12px; }
.rating-grid input { accent-color: var(--green); }
.rating-grid output { text-align: center; font-weight: 800; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 21px; }
.activity-section { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.activity-section .section-title { align-items: center; }
.activity-section .section-title h3 { margin: 0 0 4px; font-size: 16px; }
.activity-section .section-title p { margin: 0; color: var(--muted); font-size: 12px; }
.activity-editor { display: grid; gap: 12px; }
.activity-card { padding: 16px; border: 1px solid var(--line); border-radius: 7px; background: #f8faf9; }
.activity-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 13px; }
.two-panel { display: grid; grid-template-columns: 1.25fr .75fr; gap: 18px; margin-top: 18px; }

.toast-region { position: fixed; z-index: 100; right: 20px; bottom: 20px; display: grid; gap: 8px; }
.toast { width: min(360px, calc(100vw - 40px)); padding: 13px 15px; border-radius: 5px; background: var(--sidebar); color: white; box-shadow: var(--shadow); animation: toast-in .2s ease-out; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

.demo-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; padding: 13px 15px; background: var(--blue-soft); border: 1px solid #c9dfe9; border-radius: 6px; color: #244f65; }
.demo-banner p { margin: 0; font-size: 12px; }
.muted { color: var(--muted); }
.danger-text { color: var(--red); }
.nowrap { white-space: nowrap; }

@media (max-width: 1120px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .app-shell { display: block; }
  .sidebar { position: fixed; left: -250px; width: 238px; transition: left .2s ease; box-shadow: var(--shadow); }
  .sidebar.open { left: 0; }
  .menu-button { display: block; }
  .topbar { padding: 0 16px; }
  .breadcrumb span, .save-status { display: none; }
  .content { padding: 20px 16px; }
  .layout-two, .roi-grid { grid-template-columns: 1fr; }
  .question { grid-template-columns: 1fr; gap: 14px; }
  .opportunity-grid { grid-template-columns: 1fr; }
  .page-head { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 560px) {
  .stats-grid, .timeline, .form-grid, .form-grid.two-col { grid-template-columns: 1fr; }
  .two-panel { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .top-actions .button { display: none; }
  .page-head h1 { font-size: 22px; }
  .segmented span { min-height: 46px; font-size: 10px; }
  .maturity-block { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .opportunity-metrics { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 95px 1fr 58px; }
  .report-cover, .report-section { padding: 30px 24px; }
  .report-cover h1 { font-size: 28px; }
  .report-kpis { grid-template-columns: repeat(2,1fr); }
  .report-kpis div:nth-child(2) { border-right: 0; }
  .report-kpis div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .dialog form { padding: 18px; }
  .rating-grid label { grid-template-columns: 105px 1fr 20px; }
}

@media print {
  body { background: white; }
  .sidebar, .topbar, .page-head, .demo-banner, .no-print, .toast-region, .app-footer { display: none !important; }
  .app-shell { display: block; }
  .content { width: auto; padding: 0; }
  .report { border: 0; box-shadow: none; max-width: none; }
  .report-cover { min-height: 95vh; break-after: page; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .report-section { break-inside: avoid; }
}

/* MOZI enterprise visual language: restrained technology, evidence-first usability */
body { background: radial-gradient(circle at 88% 8%,rgba(32,192,174,.10),transparent 26rem),radial-gradient(circle at 28% 92%,rgba(72,107,231,.07),transparent 30rem),var(--canvas); }
.main { position:relative;isolation:isolate;overflow:hidden; }
.main::before { content:"";position:absolute;z-index:-1;top:105px;right:-180px;width:470px;height:470px;border:1px solid rgba(37,154,148,.15);border-radius:50%;box-shadow:0 0 0 38px rgba(44,126,186,.035),0 0 0 96px rgba(44,126,186,.025);animation:moziOrbit 32s linear infinite;pointer-events:none; }
.main::after { content:"";position:absolute;z-index:-1;top:323px;right:38px;width:8px;height:8px;border-radius:50%;background:#32b9bb;box-shadow:0 0 18px 5px rgba(50,185,187,.25);animation:moziPulse 4.8s ease-in-out infinite;pointer-events:none; }
.sidebar { background:linear-gradient(180deg,rgba(8,23,32,.97),rgba(15,31,35,.98)),url('/assets/enterprise-city-scan.png') center/cover;box-shadow:14px 0 40px rgba(7,23,27,.08); }
.brand-logo-shell { box-shadow:0 8px 24px rgba(0,0,0,.18); }
.brand-copy { display:block; }
.brand-copy strong { font-size:14px;line-height:1.45; }
.brand-copy span { margin-top:3px;font-size:10px;letter-spacing:.04em; }
.nav-item { transition:background .18s ease,color .18s ease,transform .18s ease; }
.nav-item:hover { transform:translateX(2px); }
.nav-item.active { background:linear-gradient(105deg,rgba(43,169,148,.27),rgba(57,102,173,.16));box-shadow:inset 3px 0 #56d8c0,0 8px 22px rgba(0,0,0,.10); }
.topbar { box-shadow:0 10px 30px rgba(23,55,65,.05); }
.panel,.stat,.activity-card { box-shadow:0 14px 35px rgba(33,67,77,.055);transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease; }
.stat:hover { transform:translateY(-2px);border-color:rgba(37,154,148,.25);box-shadow:0 17px 40px rgba(33,67,77,.09); }
.button { transition:transform .18s ease,box-shadow .18s ease,background .18s ease; }
.button:hover { transform:translateY(-1px); }
.button-primary { background:linear-gradient(100deg,#14745f,#228ca0);box-shadow:0 9px 22px rgba(24,121,111,.18); }
.button-primary:hover { background:linear-gradient(100deg,#0f6754,#197f91);box-shadow:0 12px 28px rgba(24,121,111,.24); }
.workflow-jumpbar { position:relative;overflow:hidden;border-color:rgba(30,139,127,.22);background:linear-gradient(105deg,rgba(232,247,242,.96),rgba(255,255,255,.98)); }
.workflow-jumpbar::after { content:"";position:absolute;right:-55px;top:-95px;width:210px;height:210px;border:1px solid rgba(32,151,145,.12);border-radius:50%;box-shadow:0 0 0 26px rgba(45,114,180,.025);pointer-events:none; }
body[data-view="dashboard"] .page-head { position:relative;min-height:260px;align-items:flex-end;overflow:hidden;padding:34px 38px;border-radius:16px;color:#fff;background:linear-gradient(90deg,rgba(5,19,27,.94) 0%,rgba(6,24,34,.78) 48%,rgba(6,22,32,.27) 100%),url('/assets/enterprise-night-drone.png') center 53%/cover;box-shadow:0 24px 55px rgba(10,32,39,.22); }
body[data-view="dashboard"] .page-head::before { content:"";position:absolute;width:310px;height:310px;right:15%;top:-155px;border:1px solid rgba(90,236,229,.32);border-radius:50%;box-shadow:0 0 0 24px rgba(89,129,255,.06),0 0 45px rgba(50,203,202,.12);animation:moziOrbit 25s linear infinite reverse; }
body[data-view="dashboard"] .page-head>* { position:relative;z-index:1; }
body[data-view="dashboard"] .page-head h1 { max-width:760px;font-size:clamp(28px,3vw,43px);letter-spacing:-.02em; }
body[data-view="dashboard"] .page-head p { color:rgba(235,247,248,.82);max-width:760px; }
body[data-view="dashboard"] .page-head .eyebrow { color:#62e4d0;letter-spacing:.15em; }
body[data-view="dashboard"] .page-head .button-primary { background:linear-gradient(100deg,#33c9b6,#4a86ed);border-color:transparent; }
body:not([data-view="dashboard"]) .page-head { position:relative;overflow:hidden;padding:22px 24px;border:1px solid rgba(50,112,139,.13);border-radius:12px;background:linear-gradient(120deg,rgba(255,255,255,.94),rgba(239,249,248,.83));box-shadow:0 12px 30px rgba(32,70,81,.05); }
body:not([data-view="dashboard"]) .page-head::after { content:"";position:absolute;right:-55px;top:-115px;width:230px;height:230px;border:1px solid rgba(39,157,151,.14);border-radius:50%;box-shadow:0 0 0 28px rgba(48,102,180,.025);pointer-events:none; }
@keyframes moziOrbit { to { transform:rotate(360deg); } }
@keyframes moziPulse { 0%,100% { opacity:.35;transform:scale(.7); } 50% { opacity:1;transform:scale(1.25); } }
@media (max-width:760px) { body[data-view="dashboard"] .page-head { min-height:300px;padding:26px 22px;background-position:60% center; }.main::before{opacity:.45;} }
@media (prefers-reduced-motion:reduce) { .main::before,.main::after,body[data-view="dashboard"] .page-head::before{animation:none!important}.nav-item,.stat,.button{transition:none!important} }
@media print { .main::before,.main::after{display:none!important}body{background:#fff!important} }

/* MOZI competition identity · team Fuyidabai */
.button { display:inline-flex;align-items:center;justify-content:center;min-height:38px;line-height:1.2;text-decoration:none!important;vertical-align:middle; }
.workflow-jump-actions { position:relative;z-index:1;align-items:center; }
.workflow-jump-actions .button { padding:11px 18px;border-radius:9px; }
.ecosystem-brand { text-decoration:none; }
.ecosystem-brand span { color:#68dfce; }
.brand-logo-shell { width:72px;height:72px;padding:0;border-radius:15px;overflow:hidden;background:#07569a; }
.brand-logo-shell img { width:100%;height:100%;object-fit:cover; }
.report-logo-shell { width:72px;height:72px;padding:0;border-radius:14px;overflow:hidden;background:#07569a;box-shadow:0 12px 28px rgba(0,0,0,.25); }
.report-logo-shell img { width:100%;height:100%;object-fit:cover; }
.content { background-image:linear-gradient(rgba(29,112,133,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(29,112,133,.025) 1px,transparent 1px);background-size:34px 34px; }
body[data-view="dashboard"] .page-head { background:linear-gradient(90deg,rgba(5,19,27,.94) 0%,rgba(6,24,34,.76) 45%,rgba(6,22,32,.18) 100%),url('/assets/enterprise-power-inspection.png') center 48%/cover; }
.report-cover { position:relative;isolation:isolate;overflow:hidden;background:linear-gradient(90deg,rgba(5,18,25,.96),rgba(7,26,36,.76),rgba(7,24,34,.28)),url('/assets/enterprise-night-drone.png') center 52%/cover; }
.report-cover::after { content:"";position:absolute;z-index:-1;right:-110px;top:-170px;width:390px;height:390px;border:1px solid rgba(95,229,216,.28);border-radius:50%;box-shadow:0 0 0 34px rgba(67,110,224,.06); }
body[data-view="report"] .content { max-width:none;background:radial-gradient(circle at 85% 10%,rgba(42,203,188,.12),transparent 28rem),linear-gradient(145deg,#07141d,#102934 65%,#0b1d27); }
body[data-view="report"] .page-head { color:#fff;background:linear-gradient(120deg,rgba(12,35,46,.98),rgba(17,53,65,.94));border-color:rgba(98,228,208,.2); }
body[data-view="report"] .page-head p { color:rgba(229,242,245,.72); }
body[data-view="report"] .page-head .eyebrow { color:#62e4d0; }
@media (max-width:760px) { body[data-view="dashboard"] .page-head{background-position:62% center}.brand-logo-shell{width:62px;height:62px} }
@media print { body[data-view="report"] .content{background:#fff!important}.report-cover::after{display:none!important} }
