:root {
  --canvas:#f5f7f8;
  --paper:#fff;
  --sidebar:#eef1f2;
  --ink:#21313c;
  --muted:#64757d;
  --line:#e2e8e9;
  --teal:#16766b;
  --teal-soft:#e8f3f0;
  --risk:#b04f3e;
  --amber:#a76c22;
  --blue:#47729b;
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;
  color:var(--ink);
  font-size:14px;
  line-height:1.6;
  font-synthesis:none
}
* {
  box-sizing:border-box
}
body {
  margin:0;
  background:var(--canvas)
}
button,input,select,textarea {
  font:inherit;
  color:inherit
}
button,a,input,select,textarea {
  -webkit-tap-highlight-color:transparent
}
button,a {
  touch-action:manipulation
}
button {
  cursor:pointer
}
a {
  color:inherit;
  text-decoration:none
}
button {
  border:0;
  background:none
}
button:disabled {
  cursor:not-allowed;
  opacity:.55
}
button:hover:not(:disabled),a:hover {
  filter:brightness(.97)
}
:focus-visible {
  outline:2px solid var(--teal);
  outline-offset:4px
}
h1,h2,h3,p {
  margin:0
}
h1 {
  font-size:27px;
  letter-spacing:-.7px;
  line-height:1.4;
  font-weight:650
}
h2 {
  font-size:16px;
  font-weight:650
}
h3 {
  font-size:14px;
  font-weight:650
}
svg {
  display:block
}
small {
  font-size:12px
}
input,select,textarea {
  max-width:100%;
  border:1px solid #d6dfe0;
  border-radius:6px;
  padding:9px 11px;
  background:white
}
textarea {
  resize:vertical;
  min-height:100px;
  line-height:1.8
}
input:focus,select:focus,textarea:focus {
  border-color:var(--teal)
}
.skip {
  position:fixed;
  left:10px;
  top:-80px;
  padding:12px;
  background:white;
  z-index:100
}
.skip:focus {
  top:10px
}
.app-shell {
  display:grid;
  grid-template-columns:224px minmax(0,1fr);
  min-height:100vh
}
.sidebar {
  height:100dvh;
  position:sticky;
  top:0;
  background:var(--sidebar);
  border-right:1px solid var(--line);
  padding:27px 16px 16px;
  display:flex;
  flex-direction:column;
  overflow:auto
}
.app-brand {
  display:flex;
  gap:11px;
  align-items:center;
  padding:0 6px;
  font-size:16px;
  font-weight:650;
  white-space:nowrap
}
.app-brand small {
  display:block;
  font-size:11px;
  font-weight:400;
  color:var(--muted);
  margin-top:2px
}
.brand-symbol {
  width:35px;
  height:38px;
  background:var(--teal);
  color:white;
  display:grid;
  place-items:center;
  border-radius:9px
}
.brand-symbol svg {
  width:26px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.4
}
.workspace-label {
  margin:29px 3px 22px;
  padding:10px 9px;
  display:flex;
  align-items:center;
  gap:7px;
  border:1px solid #dce3e3;
  border-radius:6px;
  background:#f6f8f8;
  font-size:12px
}
.workspace-label>span:last-child {
  margin-left:auto
}
.dot,.tiny-dot {
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--teal);
  display:inline-block;
  flex-shrink:0
}
.nav-link {
  display:flex;
  gap:11px;
  align-items:center;
  padding:11px 13px;
  margin-bottom:5px;
  border-radius:6px;
  color:#53646d
}
.nav-link.active {
  background:white;
  color:var(--teal);
  box-shadow:0 1px 3px #21313c08;
  font-weight:600
}
.nav-link svg {
  width:18px;
  height:18px
}
.nav-count {
  margin-left:auto;
  font-size:11px;
  background:var(--teal-soft);
  padding:0 6px;
  border-radius:4px
}
.side-caption {
  font-size:11px;
  color:#77868b;
  margin:30px 13px 9px
}
.side-case {
  font-size:12px;
  padding:8px 13px;
  display:flex;
  gap:10px;
  align-items:center;
  color:#586971
}
.tiny-dot {
  width:5px;
  height:5px
}
.risk {
  background:#c16b56
}
.amber {
  background:#c7a061
}
.teal {
  background:#6faaa0
}
.side-bottom {
  margin-top:auto;
  padding-top:30px
}
.demo-note {
  border:1px dashed #cbd8d5;
  padding:11px 10px;
  font-size:11px;
  color:#46766b;
  border-radius:6px;
  margin:12px 5px
}
.demo-note span {
  display:block;
  color:#77878a;
  font-size:10px;
  margin-top:3px
}
.side-link {
  display:block;
  font-size:12px;
  color:var(--muted);
  padding:8px 12px;
  width:100%;
  text-align:left
}
.profile {
  display:flex;
  gap:10px;
  align-items:center;
  border-top:1px solid #d9e1e2;
  margin:15px 4px 0;
  padding-top:17px
}
.avatar {
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  background:#dbe8e4;
  color:#42695e;
  border:1px solid #cbded7;
  border-radius:50%;
  font-size:12px
}
.avatar.small {
  width:27px;
  height:27px
}
.profile strong {
  font-size:12px
}
.profile small {
  display:block;
  font-size:10px;
  color:var(--muted)
}
.profile-badge {
  margin-left:auto;
  color:#7b898e;
  font-size:10px
}
.workspace {
  min-width:0;
  display:flex;
  flex-direction:column
}
.topbar {
  height:65px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid var(--line);
  padding:0 32px;
  background:#ffffffd9;
  gap:12px
}
.top-left,.top-right {
  display:flex;
  align-items:center;
  gap:18px
}
.breadcrumb {
  font-size:12px;
  color:#53636c
}
.top-context {
  font-size:11px;
  color:var(--muted)
}
.icon-button {
  width:34px;
  height:34px;
  border-radius:6px;
  font-size:19px
}
.mobile-menu {
  display:none
}
main {
  padding:30px 32px;
  max-width:1536px;
  width:100%;
  margin:0 auto;
  flex:1;
  outline:none!important
}
.workspace-footer {
  padding:16px 32px;
  display:flex;
  justify-content:space-between;
  gap:12px;
  color:#8b999e;
  font-size:10px;
  border-top:1px solid var(--line)
}
.page-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-bottom:24px
}
.subtitle {
  color:var(--muted);
  font-size:12px;
  margin-top:7px
}
.head-actions {
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap
}
.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  background:white;
  border:1px solid #d7e0e1;
  border-radius:6px;
  padding:8px 13px;
  font-size:12px;
  min-height:36px;
  white-space:nowrap
}
.button.primary {
  background:var(--teal);
  border-color:var(--teal);
  color:white
}
.button.soft {
  background:var(--teal-soft);
  border-color:#d4e7e0;
  color:var(--teal)
}
.button.danger {
  color:var(--risk)
}
.button svg {
  width:15px;
  height:15px
}
.text-link {
  color:var(--teal);
  font-size:12px;
  display:inline-flex;
  gap:5px;
  align-items:center;
  padding:3px 0
}
.tag {
  display:inline-flex;
  align-items:center;
  gap:5px;
  font-size:10px;
  line-height:1.4;
  padding:4px 7px;
  border-radius:4px;
  white-space:nowrap;
  font-weight:500;
  background:#edf0f1;
  color:#68767d
}
.tag.red {
  background:#faece8;
  color:#a44e3b
}
.tag.green {
  background:#e9f3ee;
  color:#34725c
}
.tag.yellow {
  background:#faf2e4;
  color:#966b28
}
.tag.blue {
  background:#ecf2f8;
  color:#4976a0
}
.tag.neutral {
  background:#eff2f3;
  color:#63767e
}
.metrics {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  background:white;
  border:1px solid var(--line);
  border-radius:9px;
  margin-bottom:22px;
  overflow:hidden
}
.metric {
  padding:19px 22px;
  display:block;
  text-align:left;
  border-right:1px solid var(--line)
}
.metric:last-child {
  border-right:0
}
.metric-label {
  font-size:12px;
  color:var(--muted);
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px
}
.metric-label svg {
  width:16px;
  height:16px;
  color:#90a49f
}
.metric-value {
  font-size:30px;
  line-height:1.4;
  margin:7px 0 4px;
  font-weight:600;
  font-variant-numeric:tabular-nums;
  letter-spacing:-1px
}
.metric-value small {
  font-size:12px;
  font-weight:400;
  letter-spacing:0;
  margin-left:4px
}
.metric-sub {
  font-size:10px;
  color:#7f8e94
}
.metric-value.risk-text {
  color:var(--risk)
}
.metric-value.teal-text {
  color:var(--teal)
}
.home-grid {
  display:grid;
  grid-template-columns:minmax(0,1.7fr) minmax(285px,1fr);
  gap:20px;
  align-items:start
}
.stack {
  display:flex;
  flex-direction:column;
  gap:20px;
  min-width:0
}
.panel {
  background:white;
  border:1px solid var(--line);
  border-radius:9px;
  min-width:0;
  overflow:hidden
}
.panel-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:18px 20px;
  border-bottom:1px solid #edf0f1
}
.panel-head h2 small {
  color:var(--muted);
  font-size:11px;
  font-weight:400;
  margin-left:9px
}
.panel-body {
  padding:20px
}
.panel-note {
  font-size:11px;
  color:var(--muted);
  line-height:1.8
}
.tabs {
  display:flex;
  gap:20px;
  border-bottom:1px solid var(--line);
  padding:0 20px;
  overflow:auto;
  white-space:nowrap
}
.tab {
  font-size:12px;
  padding:12px 0;
  color:var(--muted);
  border-bottom:2px solid transparent
}
.tab.active {
  color:var(--teal);
  border-bottom-color:var(--teal);
  font-weight:600
}
.queue-row {
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding:19px 20px;
  border-bottom:1px solid #eef1f2
}
.queue-row:last-child {
  border-bottom:0
}
.queue-marker {
  width:32px;
  height:34px;
  background:#f5ece8;
  color:#ab6852;
  border-radius:6px;
  display:grid;
  place-items:center;
  flex-shrink:0
}
.queue-marker.blue {
  background:#eaf1f5;
  color:#5984a1
}
.queue-marker.green {
  background:#edf4f0;
  color:#559380
}
.queue-marker svg {
  width:17px;
  height:17px
}
.queue-main {
  min-width:0;
  flex:1
}
.queue-title {
  font-size:13px;
  font-weight:550;
  display:block;
  margin:0 0 5px
}
.queue-meta {
  font-size:10px;
  color:#819198;
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap
}
.queue-action {
  align-self:center;
  white-space:nowrap;
  font-size:11px;
  color:var(--teal)
}
.focus-card {
  padding:20px;
  border-top:3px solid #ba735c
}
.focus-title {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px
}
.focus-title strong {
  font-size:15px
}
.focus-copy {
  font-size:12px;
  color:var(--muted);
  margin:12px 0 16px;
  line-height:1.9
}
.health-map {
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:6px
}
.machine-cell {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:7px 0;
  border-radius:4px;
  background:#e8f1ec;
  color:#4e7968;
  min-height:39px;
  font-size:10px;
  border:1px solid #dce9e1
}
.machine-cell.bad {
  background:#fae9e2;
  color:#ac6048;
  border-color:#efd6ca
}
.machine-cell.warn {
  background:#faf2df;
  color:#977641;
  border-color:#eee1c3
}
.machine-cell.off {
  background:#edf0f2;
  color:#8c969c;
  border-color:#e0e5e8
}
.machine-cell.pm {
  background:#e8eff7;
  color:#6180a0
}
.machine-cell span {
  font-size:9px;
  opacity:.8
}
.map-label {
  font-size:10px;
  color:#839197;
  margin:14px 0 8px
}
.map-label:first-child {
  margin-top:0
}
.legend {
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  font-size:10px;
  color:#75868b;
  margin-top:16px
}
.legend i {
  display:inline-block;
  width:6px;
  height:6px;
  border-radius:2px;
  margin-right:5px
}
.timeline {
  display:grid;
  gap:16px
}
.timeline-item {
  padding-left:15px;
  border-left:2px solid #dceae6
}
.timeline-item p {
  font-size:12px
}
.timeline-item small {
  color:#829298;
  font-size:10px
}
.guide-strip {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
  margin-top:20px
}
.guide {
  padding:15px 17px;
  border:1px solid var(--line);
  background:#fafdfe;
  border-radius:8px;
  display:flex;
  gap:12px;
  align-items:center
}
.guide svg {
  width:21px;
  height:21px;
  color:var(--teal);
  flex-shrink:0
}
.guide strong {
  font-size:12px;
  font-weight:550
}
.guide small {
  display:block;
  font-size:10px;
  color:var(--muted);
  margin-top:2px
}
.toolbar {
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  margin-bottom:18px
}
.search-field {
  flex:1;
  min-width:160px;
  position:relative
}
.search-field input {
  width:100%;
  padding-left:35px;
  font-size:12px
}
.search-field svg {
  position:absolute;
  left:12px;
  top:12px;
  width:15px;
  height:15px;
  color:#89999e
}
.toolbar select {
  font-size:12px
}
.segmented {
  display:flex;
  background:#e9eeef;
  border-radius:6px;
  padding:3px;
  gap:2px
}
.segmented button,.segmented a {
  font-size:11px;
  padding:6px 10px;
  border-radius:4px;
  color:#708088
}
.segmented .active {
  background:white;
  color:var(--ink);
  box-shadow:0 1px 3px #00000008
}
.table-wrap {
  overflow:auto
}
table {
  border-collapse:collapse;
  width:100%;
  text-align:left;
  font-size:12px
}
th {
  font-weight:500;
  background:#f8fafb;
  color:#7b8990;
  font-size:11px;
  padding:13px 18px;
  white-space:nowrap
}
td {
  padding:15px 18px;
  border-top:1px solid #edf1f2;
  white-space:nowrap
}
td strong {
  font-size:12px;
  font-weight:600
}
td small {
  display:block;
  color:#8a999e;
  font-size:10px;
  margin-top:3px
}
tbody tr:hover {
  background:#fafcfb
}
.score {
  display:flex;
  align-items:center;
  gap:8px
}
.score-track {
  width:52px;
  height:4px;
  background:#eaf0ed;
  border-radius:4px
}
.score-track i {
  display:block;
  height:100%;
  background:#5c9a7a;
  border-radius:4px
}
.score-track i.bad {
  background:#bc7257
}
.score-track i.warn {
  background:#bb9b61
}
.table-foot {
  padding:13px 18px;
  font-size:10px;
  color:#88969c;
  border-top:1px solid var(--line)
}
.empty {
  padding:42px 24px;
  text-align:center;
  color:var(--muted);
  font-size:13px
}
.empty strong {
  display:block;
  color:var(--ink);
  margin-bottom:8px
}
.back {
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:var(--muted);
  font-size:12px;
  margin-bottom:16px
}
.device-meta {
  display:flex;
  gap:16px;
  flex-wrap:wrap;
  font-size:11px;
  color:var(--muted);
  margin-top:8px
}
.detail-grid {
  display:grid;
  grid-template-columns:minmax(0,1fr) 315px;
  gap:20px;
  align-items:start
}
.alert-banner {
  display:flex;
  gap:13px;
  background:#fff7f1;
  border:1px solid #efdfcf;
  border-radius:8px;
  padding:16px 20px;
  margin-bottom:20px;
  align-items:center
}
.alert-banner svg {
  width:19px;
  height:19px;
  color:#b77c50;
  flex-shrink:0
}
.alert-banner p {
  font-size:12px;
  color:#7f6249;
  margin-top:4px
}
.alert-banner strong {
  font-size:13px
}
.alert-banner.neutral {
  background:#eef3f5;
  border-color:#dce6e9
}
.alert-banner.good {
  background:#eef6f2;
  border-color:#d7e9de
}
.chart {
  width:100%;
  height:auto;
  max-height:245px;
  overflow:visible
}
.chart text {
  font-size:10px;
  fill:#8b9ba0;
  font-family:inherit
}
.chart .grid-line {
  stroke:#edf1f2;
  stroke-width:1
}
.chart .trend-line {
  fill:none;
  stroke:var(--teal);
  stroke-width:2.4;
  stroke-linecap:round;
  stroke-linejoin:round
}
.chart .area {
  fill:#ecf5f2
}
.chart .baseline {
  stroke:#ccaa76;
  stroke-dasharray:5 5;
  stroke-width:1.2
}
.chart circle {
  fill:white;
  stroke:var(--teal);
  stroke-width:2;
  cursor:pointer
}
.chart circle:hover {
  fill:var(--teal)
}
.chart-legend {
  display:flex;
  gap:20px;
  align-items:center;
  font-size:10px;
  color:#7b8b90;
  margin-bottom:12px
}
.chart-legend i {
  display:inline-block;
  width:16px;
  height:2px;
  background:var(--teal);
  vertical-align:middle;
  margin-right:5px
}
.chart-legend i.base {
  background:#ccaa76
}
.chart-reading {
  font-size:11px;
  color:var(--teal);
  min-height:22px;
  text-align:right
}
.stats-inline {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
  margin-bottom:20px
}
.mini-stat {
  border-right:1px solid var(--line);
  padding-right:10px
}
.mini-stat:last-child {
  border:0
}
.mini-stat label {
  display:block;
  color:var(--muted);
  font-size:11px
}
.mini-stat strong {
  font-size:21px;
  font-weight:600;
  display:block;
  margin:4px 0
}
.mini-stat small {
  font-size:10px;
  color:#87959b
}
.context-label {
  color:var(--teal);
  font-size:10px;
  display:flex;
  gap:7px;
  align-items:center;
  margin-bottom:12px
}
.context-label svg {
  width:15px;
  height:15px
}
.analysis-body {
  font-size:12px;
  line-height:1.9
}
.analysis-body p {
  margin:10px 0;
  color:#64757d
}
.analysis-body h3 {
  font-size:12px;
  margin-top:18px
}
.analysis-body ul,.analysis-body ol {
  padding-left:18px;
  color:#64757d
}
.source-chip {
  display:block;
  border:1px solid var(--line);
  background:#f8faf9;
  padding:9px 11px;
  border-radius:5px;
  margin-top:7px;
  font-size:11px
}
.source-chip span {
  display:block;
  font-size:10px;
  color:#8a999e
}
.full {
  width:100%
}
.mt {
  margin-top:18px
}
.health-summary {
  display:flex;
  align-items:center;
  gap:24px
}
.gauge {
  width:98px;
  height:98px;
  border-radius:50%;
  background:conic-gradient(var(--gauge-color,#bd785b) calc(var(--score)*1%),#edf1f2 0);
  padding:7px;
  flex-shrink:0
}
.gauge-inner {
  background:white;
  border-radius:50%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column
}
.gauge strong {
  font-size:27px;
  line-height:1.2;
  font-weight:600
}
.gauge span {
  font-size:10px;
  color:var(--muted)
}
.health-summary p {
  font-size:11px;
  color:var(--muted);
  margin:8px 0
}
.event-line {
  display:flex;
  align-items:flex-start;
  gap:12px;
  padding:12px 0;
  border-bottom:1px solid #edf1f2;
  font-size:12px
}
.event-line:last-child {
  border:0
}
.event-line time {
  color:#8b9aa0;
  font-size:11px;
  min-width:45px
}
.event-line p {
  font-size:11px;
  color:var(--muted);
  margin-top:3px
}
.flow-row {
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:12px
}
.flow-node {
  border:1px solid var(--line);
  border-radius:7px;
  padding:18px 10px;
  text-align:center;
  background:#f7f9fa
}
.flow-node.active {
  border-color:#8fbfb1;
  background:#eaf4ef;
  color:var(--teal)
}
.flow-node strong {
  font-size:13px;
  display:block
}
.flow-node small {
  color:#819299;
  font-size:10px
}
.full-map {
  max-width:900px;
  margin:auto;
  padding:25px
}
.full-map .health-map {
  grid-template-columns:repeat(12,1fr)
}
.full-map .machine-cell {
  min-height:56px
}
.steps {
  display:flex;
  padding:19px 22px;
  background:white;
  border:1px solid var(--line);
  border-radius:8px;
  margin-bottom:20px;
  gap:10px
}
.step {
  flex:1;
  color:#8a9a9f;
  font-size:12px;
  display:flex;
  align-items:center;
  gap:9px
}
.step:after {
  content:'';
  height:1px;
  background:#e2e9e8;
  flex:1
}
.step:last-child:after {
  display:none
}
.step b {
  font-weight:500;
  display:grid;
  place-items:center;
  width:23px;
  height:23px;
  border:1px solid #dce4e3;
  border-radius:50%;
  font-size:11px
}
.step.active {
  color:var(--teal);
  font-weight:600
}
.step.active b {
  background:var(--teal);
  border-color:var(--teal);
  color:white
}
.form-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px
}
.field {
  display:flex;
  flex-direction:column;
  gap:7px;
  font-size:12px;
  margin-bottom:16px
}
.field.full-field {
  grid-column:1/-1
}
.field>span,.field>label {
  font-size:12px;
  color:#5f7078
}
.check-list {
  display:grid;
  gap:10px;
  margin:6px 0 20px
}
.check-list label {
  display:flex;
  align-items:center;
  gap:9px;
  font-size:12px
}
.check-list input {
  accent-color:var(--teal);
  width:16px;
  height:16px
}
.form-actions {
  display:flex;
  gap:9px;
  flex-wrap:wrap;
  border-top:1px solid var(--line);
  padding-top:18px;
  margin-top:16px
}
.task-side .panel-body {
  font-size:12px
}
.key-value {
  display:flex;
  justify-content:space-between;
  gap:10px;
  font-size:11px;
  margin-bottom:13px
}
.key-value span {
  color:var(--muted)
}
.break-row {
  display:grid;
  grid-template-columns:55px 1fr 67px;
  gap:12px;
  align-items:center;
  font-size:11px;
  margin:16px 0
}
.bar-track {
  height:9px;
  border-radius:3px;
  background:#eef2f3;
  overflow:hidden
}
.bar-track i {
  height:100%;
  display:block;
  background:#65a397;
  border-radius:3px
}
.bar-track i.orange {
  background:#c79a65
}
.break-row em {
  font-style:normal;
  text-align:right;
  color:#75868d
}
.machine-illustration {
  position:relative;
  height:145px;
  background:#f1f5f6;
  border:1px solid #e0e8e9;
  border-radius:6px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin:12px 0
}
.machine-illustration svg {
  height:120px;
  max-width:100%;
  stroke:#87a0a5;
  fill:#edf3f4;
  stroke-width:1.2
}
.machine-illustration .light {
  fill:#51a083;
  stroke:none
}
.image-label {
  position:absolute;
  left:8px;
  top:6px;
  font-size:9px;
  color:#7a9196
}
.event-pick {
  display:block;
  width:100%;
  text-align:left;
  border:1px solid #e5ebeb;
  padding:10px 12px;
  margin-top:8px;
  border-radius:5px;
  font-size:11px
}
.event-pick.active {
  background:#eaf4f0;
  border-color:#adcdc1;
  color:var(--teal)
}
.comparison {
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:16px;
  text-align:center;
  padding:18px 8px
}
.comparison strong {
  display:block;
  font-size:28px;
  font-weight:550
}
.comparison small {
  font-size:10px;
  color:var(--muted)
}
.comparison .after {
  color:var(--teal)
}
.comparison .arrow {
  color:#a7b8b8
}
.knowledge-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px
}
.knowledge-card {
  display:flex;
  flex-direction:column;
  padding:19px;
  background:white;
  border:1px solid var(--line);
  border-radius:8px;
  min-height:195px
}
.knowledge-card:hover {
  border-color:#a8c6bc
}
.knowledge-card h3 {
  margin:13px 0 8px;
  font-size:14px
}
.knowledge-card p {
  font-size:11px;
  color:#788a91;
  line-height:1.8;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden
}
.knowledge-card footer {
  font-size:10px;
  color:#8c9ba1;
  display:flex;
  justify-content:space-between;
  margin-top:auto;
  padding-top:18px
}
.knowledge-card-top {
  display:flex;
  justify-content:space-between;
  align-items:center
}
.knowledge-card-top svg {
  width:18px;
  height:18px;
  color:#6f9689
}
.document-body {
  white-space:pre-wrap;
  font-size:14px;
  line-height:2.1;
  color:#52666f;
  overflow-wrap:anywhere
}
.document-meta {
  font-size:11px;
  color:#89989e;
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  margin-bottom:24px
}
.version-note {
  padding:13px;
  background:#f4f8f6;
  border:1px solid #e2ece6;
  border-radius:6px;
  font-size:11px;
  color:#618375;
  margin-bottom:18px
}
.detail-dialog {
  border:1px solid var(--line);
  border-radius:12px;
  padding:0;
  width:min(600px,calc(100% - 32px));
  max-height:88dvh;
  box-shadow:0 24px 90px #152a3440;
  color:var(--ink)
}
.detail-dialog::backdrop {
  background:#21313c55;
  backdrop-filter:blur(2px)
}
.dialog-head {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:15px;
  padding:19px 24px;
  border-bottom:1px solid var(--line)
}
.dialog-head h2 {
  font-size:16px
}
.dialog-body {
  padding:24px
}
.dialog-body p {
  font-size:13px;
  color:#6c7f87;
  line-height:1.9;
  margin-bottom:14px
}
.dialog-body .document-body {
  font-size:13px
}
.assistant-output {
  background:#f4f8f6;
  padding:16px;
  border:1px solid #e0ebe5;
  border-radius:6px;
  margin-top:18px;
  font-size:13px;
  line-height:1.9
}
.suggestions {
  display:flex;
  gap:7px;
  flex-wrap:wrap;
  margin-bottom:15px
}
.suggestions button {
  font-size:11px;
  border:1px solid #dde7e3;
  border-radius:20px;
  padding:5px 10px;
  color:var(--teal)
}
.dialog-form {
  display:flex;
  gap:8px
}
.dialog-form input {
  min-width:0;
  flex:1;
  font-size:12px
}
.toast {
  position:fixed;
  bottom:25px;
  left:calc(50% + 112px);
  transform:translateX(-50%) translateY(100px);
  opacity:0;
  transition:transform .2s,opacity .2s;
  background:#25473f;
  color:white;
  padding:11px 20px;
  border-radius:7px;
  font-size:12px;
  z-index:100;
  max-width:calc(100% - 30px);
  box-shadow:0 5px 20px #15362920;
  pointer-events:none
}
.toast.visible {
  opacity:1;
  transform:translateX(-50%) translateY(0)
}
.toast.error {
  background:#8e493d
}
.nav-shade {
  display:none
}
.error-message {
  border:1px solid #e4b8ae;
  padding:12px;
  background:#fff2ee;
  color:#9c4d3d;
  border-radius:6px;
  margin:12px 0;
  font-size:12px
}
.draft-editor {
  width:100%;
  min-height:280px
}
.task-list {
  margin-top:20px
}
.source-highlight {
  border-left:3px solid #98bfb1;
  padding:12px 16px;
  background:#f4f8f6
}
.context-card {
  border-top:3px solid #83b3a2
}
@media(min-width:1600px) {
  main {
    padding-top:36px
  }
  .home-grid {
    grid-template-columns:minmax(0,1.8fr) minmax(330px,1fr)
  }
}
@media(max-width:1200px) {
  main {
    padding:25px 23px
  }
  .topbar {
    padding:0 23px
  }
  .home-grid {
    grid-template-columns:minmax(0,1.4fr) minmax(260px,1fr);
    gap:15px
  }
  .detail-grid {
    grid-template-columns:minmax(0,1fr) 275px;
    gap:15px
  }
  .metric {
    padding:17px
  }
  .knowledge-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .queue-row {
    padding:16px
  }
  .guide-strip {
    gap:10px
  }
  .guide {
    padding:12px
  }
  .guide small {
    font-size:9px
  }
}
@media(max-width:1050px) {
  .app-shell {
    grid-template-columns:200px minmax(0,1fr)
  }
  .sidebar {
    padding:24px 12px 12px
  }
  .app-brand {
    font-size:14px
  }
  .home-grid,.detail-grid {
    grid-template-columns:1fr
  }
  .home-grid>.stack:last-child {
    display:grid;
    grid-template-columns:1fr 1fr;
    align-items:start
  }
  .detail-grid>.stack:last-child {
    display:grid;
    grid-template-columns:1fr 1fr;
    align-items:start
  }
  .metric {
    padding:15px
  }
  .top-context {
    display:none
  }
  .guide-strip {
    grid-template-columns:1fr
  }
  .guide {
    padding:13px 18px
  }
  .guide small {
    font-size:11px
  }
  .toast {
    left:calc(50% + 100px)
  }
}
@media(max-width:760px) {
  .app-shell {
    display:block
  }
  .sidebar {
    position:fixed;
    left:0;
    top:0;
    width:240px;
    z-index:40;
    transform:translateX(-100%);
    transition:transform .2s
  }
  .sidebar.open {
    transform:translateX(0)
  }
  .nav-shade:not([hidden]) {
    display:block;
    position:fixed;
    inset:0;
    background:#172b3b55;
    z-index:35
  }
  .mobile-menu {
    display:block
  }
  .topbar {
    height:57px;
    padding:0 16px;
    position:sticky;
    top:0;
    z-index:20;
    backdrop-filter:blur(8px)
  }
  .top-left {
    gap:8px
  }
  .top-right {
    gap:10px
  }
  .breadcrumb {
    font-size:11px
  }
  main {
    padding:22px 16px
  }
  .page-head {
    align-items:flex-start;
    flex-direction:column;
    gap:13px;
    margin-bottom:20px
  }
  h1 {
    font-size:24px
  }
  .subtitle {
    font-size:11px
  }
  .head-actions {
    width:100%
  }
  .metrics {
    grid-template-columns:1fr 1fr
  }
  .metric {
    padding:14px 17px
  }
  .metric:nth-child(2) {
    border-right:0
  }
  .metric:nth-child(-n+2) {
    border-bottom:1px solid var(--line)
  }
  .metric-value {
    font-size:26px
  }
  .metric-label {
    font-size:11px
  }
  .metric-sub {
    font-size:9px
  }
  .home-grid>.stack:last-child,.detail-grid>.stack:last-child {
    display:flex
  }
  .panel-head {
    padding:16px
  }
  .panel-body {
    padding:16px
  }
  .queue-row {
    padding:16px 13px;
    gap:9px;
    flex-wrap:wrap
  }
  .queue-title {
    font-size:12px
  }
  .queue-marker {
    width:27px;
    height:29px
  }
  .queue-meta {
    font-size:9px;
    gap:7px
  }
  .queue-action {
    font-size:10px
  }
  .queue-main {
    min-width:180px
  }
  .queue-action {
    margin-left:36px
  }
  .tabs {
    padding:0 16px;
    gap:18px
  }
  .workspace-footer {
    padding:15px 16px;
    font-size:9px
  }
  .workspace-footer>span:last-child {
    display:none
  }
  .toolbar {
    gap:8px
  }
  .toolbar select {
    flex:1;
    min-width:90px
  }
  .search-field {
    flex-basis:100%
  }
  .flow-row {
    grid-template-columns:repeat(3,1fr);
    gap:8px
  }
  .flow-node {
    padding:12px 6px
  }
  .flow-node strong {
    font-size:12px
  }
  .full-map {
    padding:17px
  }
  .full-map .health-map {
    grid-template-columns:repeat(6,1fr)
  }
  .full-map .machine-cell {
    min-height:43px
  }
  .stats-inline {
    gap:8px
  }
  .mini-stat strong {
    font-size:20px
  }
  .mini-stat label {
    font-size:10px
  }
  .mini-stat small {
    font-size:9px
  }
  .device-meta {
    gap:7px 12px
  }
  .alert-banner {
    padding:14px;
    align-items:flex-start
  }
  .alert-banner strong {
    font-size:12px
  }
  .alert-banner p {
    font-size:11px
  }
  .form-grid {
    grid-template-columns:1fr;
    gap:0
  }
  .steps {
    padding:14px 12px;
    gap:6px
  }
  .step {
    font-size:10px;
    gap:5px
  }
  .step b {
    width:18px;
    height:18px;
    font-size:9px;
    flex-shrink:0
  }
  .knowledge-grid {
    grid-template-columns:1fr
  }
  .knowledge-card {
    min-height:160px
  }
  .toast {
    left:50%;
    bottom:16px
  }
  .dialog-head {
    padding:16px 18px
  }
  .dialog-body {
    padding:18px
  }
  .dialog-form {
    flex-wrap:wrap
  }
  .dialog-form input {
    flex-basis:100%
  }
  .document-body {
    font-size:13px
  }
  .health-summary {
    gap:18px
  }
  .panel-head h2 small {
    display:none
  }
  .button {
    padding:8px 11px
  }
  .chart {
    min-height:180px
  }
  .chart text {
    font-size:11px
  }
  .chart-legend {
    gap:10px
  }
  .dialog-body .form-actions .button {
    flex:1
  }
  .detail-dialog {
    max-height:90dvh
  }
  .table-wrap th,.table-wrap td {
    padding:13px 14px
  }
}
@media(prefers-reduced-motion:reduce) {
  * {
    scroll-behavior:auto!important;
    transition:none!important
  }
}
