:root {
  color-scheme: light;
  --page: #f3f5f2;
  --surface: #fff;
  --ink: #162820;
  --neutral: #354a40;
  --muted: #5c7066;
  --border: #dfe6e0;
  --line: #e8ede8;
  --green: #14664b;
  --green-deep: #0a4936;
  --green-wash: #e6f3eb;
  --teal: #77dfaa;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  background: var(--page);
  color: var(--ink);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
[v-cloak], .icon-library { display: none; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid #367e5c;
  outline-offset: 3px;
}
h1, h2, h3, p { margin: 0; }
.icon {
  width: 1.1em;
  height: 1.1em;
  flex: 0 0 auto;
  vertical-align: -.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mono { font-variant-numeric: tabular-nums; }

.layout { display: grid; grid-template-columns: 219px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  background: #fafbf8;
  border-right: 1px solid var(--border);
  padding: 27px 18px 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  background: transparent;
  border: 0;
  color: var(--ink);
  padding: 0 7px;
  text-align: left;
}
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #b6f4d1;
  background: #123f31;
  box-shadow: inset 0 0 0 1px #235c47;
}
.brand-mark .icon { width: 26px; height: 26px; }
.brand strong { font-size: 23px; font-weight: 750; letter-spacing: .04em; line-height: 1.1; display: block; }
.brand small { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }
.nav { display: grid; gap: 5px; margin-top: 39px; }
.nav-label { margin: 0 0 8px 12px; color: var(--muted); font-size: 12px; font-weight: 650; }
.nav button {
  text-align: left;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 45px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--neutral);
  background: transparent;
  font-size: 14px;
  font-weight: 560;
}
.nav button:hover { background: #edf2ec; }
.nav button.active { background: #e6f0e8; color: #124d37; border-color: #dceadf; font-weight: 700; }
.nav button .icon { width: 17px; height: 17px; }
.nav-count { margin-left: auto; color: var(--muted); background: #edf0eb; border-radius: 5px; padding: 1px 6px; font-size: 12px; }
.sidebar-bottom { margin-top: auto; }
.environment {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #f7f9f5;
}
.environment-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: #e4f0e6; color: var(--green); }
.environment b, .environment div > span { display: block; font-size: 12px; }
.environment div > span { color: var(--muted); margin-top: 3px; }
.reset-link {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  background: transparent;
  border: 0;
  border-radius: 7px;
}
.reset-link:hover { color: var(--green); background: #eaf0e8; }

.topbar {
  min-height: 62px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 0 clamp(22px, 3.1vw, 52px);
  border-bottom: 1px solid var(--border);
  background: #fafbf8;
}
.breadcrumb, .topbar-right { display: flex; align-items: center; gap: 11px; white-space: nowrap; font-size: 14px; }
.breadcrumb { color: var(--muted); }
.breadcrumb b { color: var(--ink); font-weight: 650; }
.breadcrumb .icon { width: 13px; }
.topbar-right { gap: 16px; }
.top-divider { width: 1px; height: 22px; background: var(--border); }
.profile { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #deebe1; color: #235940; font-weight: 700; font-size: 13px; }
.link-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: none;
  color: var(--green);
  padding: 4px 0;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}
.link-button:hover { color: var(--green-deep); text-decoration: underline; text-underline-offset: 3px; }

.main { max-width: 1580px; margin: 0 auto; padding: 28px clamp(22px, 3.1vw, 52px) 42px; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 24px; }
.page-heading h1 { font-size: clamp(26px, 2.45vw, 38px); line-height: 1.26; letter-spacing: -.04em; font-weight: 750; }
.page-heading p { margin-top: 7px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.heading-actions { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.date-label { display: inline-flex; align-items: center; gap: 8px; color: var(--neutral); border: 1px solid var(--border); background: #fcfdfb; padding: 0 12px; min-height: 39px; border-radius: 8px; font-size: 13px; font-weight: 600; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 8px; min-height: 40px; padding: 8px 14px; font-size: 14px; font-weight: 700; white-space: nowrap; transition: background-color .16s, border-color .16s; }
.button.primary { color: #fff; background: var(--green); border-color: #125f45; box-shadow: 0 1px 2px #164d3820; }
.button.primary:hover:enabled, a.button.primary:hover { background: var(--green-deep); }
.button.secondary { color: var(--green-deep); background: #fff; border-color: var(--border); }
.button.secondary:hover { background: var(--green-wash); border-color: #c1d9cb; }
.full-width { width: 100%; }

.summary {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 25px;
  min-height: 192px;
  padding: 25px 28px 23px;
  border: 1px solid #174e3b;
  border-radius: 13px;
  background: radial-gradient(ellipse at 84% 108%, #1e5947 0%, transparent 62%), #10392e;
  color: #edfff5;
}
.summary::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 0 42%;
  background-image: radial-gradient(#a8e7c460 1px, transparent 1px);
  background-size: 14px 14px;
  mask-image: linear-gradient(80deg, transparent 9%, #000 80%);
  opacity: .35;
  pointer-events: none;
}
.summary-progress { max-width: 345px; }
.hero-label { display: flex; align-items: center; gap: 7px; color: #c1e2d0; font-size: 14px; font-weight: 640; }
.hero-label > span { width: 7px; height: 7px; border-radius: 50%; background: #7de3aa; box-shadow: 0 0 0 4px #7de3aa19; }
.hero-number { margin: 10px 0 11px; font-size: 54px; font-weight: 750; line-height: 1.02; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.hero-number > span { color: #93b4a3; font-size: 28px; font-weight: 520; letter-spacing: -.045em; }
.hero-number small { margin-left: 11px; font-size: 15px; font-weight: 600; letter-spacing: 0; color: #d3eadc; }
.progress-track { height: 7px; border-radius: 10px; background: #91c5ac43; overflow: hidden; }
.progress-track > span { display: block; min-width: 0; height: 100%; border-radius: inherit; background: #7be0a7; transition: width .36s ease; }
.hero-meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; color: #bed9c9; font-size: 13px; }
.summary-flow { display: grid; align-content: center; justify-items: start; padding: 3px 0 3px 23px; border-left: 1px solid #9cceb140; }
.summary-flow .hero-label { margin-bottom: 16px; }
.flow-steps { position: relative; display: grid; width: 100%; grid-template-columns: repeat(4, minmax(58px, 1fr)); gap: 10px; }
.flow-steps::before { content: ""; position: absolute; top: 24px; left: 11%; right: 11%; height: 1px; border-top: 1px dashed #92c9af77; pointer-events: none; }
.flow-steps div { position: relative; display: grid; justify-items: center; gap: 9px; text-align: center; }
.flow-steps div > span { width: 48px; height: 48px; display: grid; place-items: center; color: #bfe6d0; border: 1px solid #6fa58b7c; border-radius: 10px; background: #204e3f; }
.flow-steps .icon { width: 22px; height: 22px; }
.flow-steps div:nth-child(3) > span { color: #142f24; background: #a3e7bd; border-color: #b4edc9; }
.flow-steps b { color: #d5ece0; font-size: 13px; font-weight: 600; white-space: nowrap; }

.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 15px 0 23px; }
.metric { display: flex; align-items: flex-start; gap: 11px; padding: 15px 13px; min-height: 89px; text-align: left; color: var(--ink); border: 1px solid var(--border); border-radius: 10px; background: var(--surface); transition: border .16s, background-color .16s; }
.metric:hover, .metric.chosen { border-color: #75a88a; background: #fbfffc; }
.metric-icon { display: grid; place-items: center; width: 36px; height: 36px; font-size: 17px; flex: 0 0 auto; border-radius: 8px; }
.metric-icon.amber { color: #875211; background: #faf0da; }
.metric-icon.blue { color: #315a75; background: #eaf1f7; }
.metric-icon.teal { color: #176358; background: #e7f3ef; }
.metric-icon.green { color: #226347; background: #e5f1e8; }
.metric-detail { display: grid; gap: 5px; white-space: nowrap; }
.metric-detail > span { color: var(--neutral); font-size: 14px; font-weight: 650; }
.metric-detail strong { line-height: 1; font-size: 25px; font-variant-numeric: tabular-nums; letter-spacing: -.045em; }
.metric-detail small { color: var(--muted); font-size: 12px; font-weight: 550; letter-spacing: 0; }
.metric-tip { align-self: flex-end; margin-left: auto; color: var(--muted); font-size: 12px; white-space: nowrap; }

.task-panel, .robot-overview { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.task-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 18px; }
.task-title { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.task-title h2 { font-size: 20px; letter-spacing: -.02em; }
.table-count { color: var(--muted); padding: 3px 7px; background: #f0f3ee; border-radius: 5px; font-size: 12px; }
.table-controls { display: flex; gap: 8px; }
.search, .select { display: flex; align-items: center; gap: 8px; position: relative; color: var(--muted); border: 1px solid var(--border); border-radius: 7px; background: #fbfcfa; padding: 0 10px; }
.search:focus-within, .select:focus-within { border-color: #74a288; }
.search input { width: clamp(125px, 14vw, 200px); min-height: 35px; padding: 0; color: var(--ink); background: transparent; border: 0; outline: none; font-size: 14px; }
.search input::placeholder { color: #617469; }
.select { padding: 0; }
.select select { appearance: none; outline: none; min-height: 35px; width: 116px; padding: 0 26px 0 10px; border: 0; background: transparent; color: var(--neutral); font-size: 14px; cursor: pointer; }
.select > .icon { pointer-events: none; position: absolute; right: 8px; width: 14px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; font-size: 14px; }
thead { background: #f3f6f2; color: #43574c; }
th { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 650; text-align: left; }
th, td { padding: 10px 12px; }
th:first-child, td:first-child { padding-left: 18px; }
th:last-child, td:last-child { padding-right: 18px; }
tbody tr { border-bottom: 1px solid var(--line); }
tbody tr:hover { background: #f9fcf9; }
.numeric { text-align: right; }
.operation { text-align: right; }
.company-button { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); border: 0; background: transparent; padding: 0; text-align: left; }
.company-button:hover b { color: var(--green); }
.company-avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; flex: 0 0 auto; font-size: 13px; font-weight: 700; color: #235641; background: #e6f0e8; }
.company-1 { color: #355971; background: #edf1f5; }
.company-2 { color: #755828; background: #f3eee2; }
.company-3 { color: #516742; background: #edf2df; }
.company-button b { display: block; font-size: 14px; }
.company-button small { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); }
.status { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 4px 8px; font-size: 13px; font-weight: 650; background: #edf3ef; color: #376045; white-space: nowrap; }
.status i { width: 5px; height: 5px; background: currentColor; border-radius: 50%; flex: 0 0 auto; }
.status.exception { background: #fbf0dc; color: #864f0a; }
.status.queued { background: #eaf2f8; color: #315b77; }
.status.approved, .status.running { background: #e5f1ed; color: #165f55; }
.status.running i { animation: pulse 1.4s infinite; }
.status.completed { background: #e5f2e8; color: #1f6342; }
.material-count { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; color: var(--neutral); }
.material-count .icon { color: #71877a; width: 15px; }
.material-count.incomplete, .material-count.incomplete .icon { color: #8a5410; }
.assignee { color: var(--neutral); }
.row-action { display: inline-flex; align-items: center; justify-content: flex-end; gap: 4px; min-height: 30px; border: 0; padding: 3px 0 3px 5px; color: var(--green); background: transparent; font-weight: 650; font-size: 13px; white-space: nowrap; }
.row-action:hover { text-decoration: underline; text-underline-offset: 3px; }
.row-action .icon { width: 13px; }
.table-footer { display: flex; justify-content: space-between; padding: 12px 18px; color: var(--muted); font-size: 13px; }
.empty { display: grid; justify-items: center; gap: 10px; min-height: 125px; padding: 25px 12px; color: var(--muted); }
.empty .icon { font-size: 25px; }
.error-banner { display: flex; align-items: center; gap: 9px; padding: 12px 15px; border: 1px solid #efcf9c; border-radius: 8px; background: #fff5e1; color: #70450f; margin-bottom: 13px; }
.error-banner button { margin-left: auto; }
.robot-overview { margin-bottom: 21px; }
.robot-header { display: flex; align-items: center; gap: 12px; padding: 18px; }
.robot-avatar { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 10px; color: #b6f4d1; background: var(--green-deep); font-size: 20px; }
.robot-header h2 { font-size: 17px; }
.robot-header p { font-size: 13px; color: var(--muted); margin-top: 5px; }
.robot-header button { margin-left: auto; }
.robot-compact-steps { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 17px; }
.robot-compact-steps > span { display: inline-flex; gap: 6px; align-items: center; padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; color: var(--muted); }
.robot-compact-steps > .success { background: var(--green-wash); color: var(--green-deep); }
.robot-compact-steps > .running { background: #e6f5f4; color: #185d54; }
.robot-compact-steps > .error { background: #f9e8e5; color: #863f31; }
.robot-compact-steps i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.overlay { position: fixed; inset: 0; z-index: 5; display: flex; justify-content: flex-end; background: #122b235c; backdrop-filter: blur(2px); }
.drawer { display: flex; flex-direction: column; width: min(100%, 545px); height: 100dvh; background: #fff; box-shadow: -15px 0 40px #102b231f; }
.drawer-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 23px 25px 17px; }
.drawer-header h2 { font-size: 25px; line-height: 1.25; margin: 7px 0 9px; }
.drawer-overline { color: var(--muted); font-size: 13px; }
.drawer-overline span { margin-left: 5px; font-variant-numeric: tabular-nums; }
.icon-button { display: grid; place-items: center; width: 33px; height: 33px; min-width: 33px; border: 1px solid var(--border); border-radius: 7px; color: var(--neutral); background: #fafbf9; }
.icon-button:hover { background: #eaf1e9; }
.drawer-facts { display: grid; grid-template-columns: .8fr 1.2fr .8fr; gap: 10px; margin: 0 25px 14px; padding: 12px; background: #f4f7f3; border: 1px solid var(--line); border-radius: 9px; }
.drawer-facts span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 3px; }
.drawer-facts b { font-size: 15px; overflow-wrap: anywhere; }
.drawer-tabs { display: flex; gap: 18px; padding: 0 25px; border-bottom: 1px solid var(--border); }
.drawer-tabs button { color: var(--muted); font-size: 14px; font-weight: 650; border: 0; border-bottom: 2px solid transparent; background: none; padding: 10px 0; }
.drawer-tabs button.active { color: var(--green-deep); border-color: var(--green); }
.drawer-body { flex: 1; min-height: 0; overflow-y: auto; padding: 17px 25px 26px; }
.callout { display: flex; gap: 9px; align-items: flex-start; padding: 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; margin-bottom: 14px; }
.callout > .icon { margin-top: 1px; }
.callout p { font-size: 13px; line-height: 1.55; margin-top: 4px; }
.callout.good { background: #eff7ef; color: #25553d; border-color: #deebdf; }
.callout.warning { background: #fff6e5; color: #785010; border-color: #f4deb6; }
.drawer-section-title { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin: 10px 0 8px; }
.drawer-section-title h3 { font-size: 17px; }
.drawer-section-title > span, .fineprint { color: var(--muted); font-size: 13px; }
.fineprint { margin-bottom: 8px; }
.source-list, .run-steps, .history-list { list-style: none; margin: 0; padding: 0; }
.source-list li { display: flex; align-items: center; gap: 9px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.source-icon { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 auto; border-radius: 7px; background: #eff3ee; color: var(--green); }
.source-detail { flex: 1; min-width: 0; }
.source-detail b { display: block; font-size: 14px; overflow-wrap: anywhere; }
.source-detail small { display: block; font-size: 12px; margin-top: 3px; color: var(--muted); }
.source-list .mono { font-size: 13px; }
.drawer-actions { padding: 14px 25px; border-top: 1px solid var(--border); }
.running-footer { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 40px; color: var(--green-deep); font-size: 14px; font-weight: 650; }
.spinner { width: 15px; height: 15px; border-radius: 50%; border: 2px solid #bcd8c7; border-top-color: var(--green); animation: spin .8s linear infinite; }
.run-steps li { display: flex; align-items: flex-start; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.run-marker { display: grid; place-items: center; width: 25px; height: 25px; flex: 0 0 auto; border-radius: 50%; color: var(--muted); background: #edf1ec; font-size: 12px; }
.run-steps b { display: block; line-height: 25px; font-size: 14px; }
.run-steps p { color: var(--muted); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.run-steps small { margin-left: auto; align-self: flex-start; line-height: 25px; white-space: nowrap; color: var(--muted); font-size: 12px; }
.run-steps .success .run-marker { background: var(--green-wash); color: var(--green-deep); }
.run-steps .running .run-marker { background: #91dfb0; color: #164633; animation: pulse 1.2s infinite; }
.run-steps .error .run-marker { background: #f7e4e0; color: #8b3d30; }
.history-list li { position: relative; padding: 0 0 16px 16px; margin-left: 4px; border-left: 1px solid var(--border); font-size: 14px; }
.history-list li::before { content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #5c9e75; top: 6px; left: -4px; }
.history-list time { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.history-list p { color: var(--neutral); margin-top: 5px; overflow-wrap: anywhere; }
.receipt { padding: 13px; border: 1px solid #cce1d2; background: #f4f9f4; border-radius: 10px; margin-bottom: 17px; }
.receipt-title { display: flex; gap: 9px; align-items: center; }
.receipt-title > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; color: var(--green-deep); background: var(--green-wash); }
.receipt-title h3 { font-size: 17px; }
.receipt-title p { color: var(--muted); font-size: 13px; margin-top: 3px; }
.receipt dl { display: grid; grid-template-columns: 65px 1fr; gap: 7px; font-size: 14px; }
.receipt dt { color: var(--muted); }
.receipt dd { margin: 0; overflow-wrap: anywhere; }
.centered { justify-content: center; align-items: center; }
.modal { position: relative; width: min(440px, calc(100% - 28px)); padding: 23px; background: #fff; border: 1px solid var(--border); border-radius: 13px; box-shadow: 0 18px 45px #152e2630; }
.modal-close { position: absolute; top: 12px; right: 12px; }
.modal h2 { font-size: 22px; padding-right: 30px; }
.modal p { margin-top: 10px; line-height: 1.55; color: var(--muted); }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.guide-steps { padding-left: 23px; color: var(--green); font-weight: 700; line-height: 1.4; }
.guide-steps li { padding-left: 3px; margin-bottom: 11px; }
.guide-steps b, .guide-steps span { display: block; }
.guide-steps b { color: var(--ink); font-size: 15px; }
.guide-steps span { color: var(--muted); margin-top: 3px; font-size: 14px; font-weight: 400; }
.toast { position: fixed; z-index: 8; bottom: 23px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 24px); padding: 10px 15px; border-radius: 8px; background: #123b30; box-shadow: 0 5px 20px #182f2830; color: #fff; font-size: 14px; }
.v-enter-active, .v-leave-active { transition: opacity .18s ease; }
.v-enter-from, .v-leave-to { opacity: 0; }
.v-enter-active .drawer, .v-leave-active .drawer { transition: transform .19s ease; }
.v-enter-from .drawer, .v-leave-to .drawer { transform: translateX(36px); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: .45; } }

@media (max-width: 1170px) {
  .layout { grid-template-columns: 194px minmax(0, 1fr); }
  .metric-tip { display: none; }
  th, td { padding-left: 9px; padding-right: 9px; }
}
@media (max-width: 920px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; height: auto; padding: 10px 15px; flex-direction: row; align-items: center; gap: 11px; border-right: 0; border-bottom: 1px solid var(--border); }
  .brand { gap: 7px; padding: 0; }
  .brand-mark { width: 34px; height: 34px; border-radius: 9px; }
  .brand-mark .icon { width: 22px; height: 22px; }
  .brand strong { font-size: 19px; white-space: nowrap; }
  .brand small, .nav-label, .environment { display: none !important; }
  .nav { display: flex; min-width: 0; overflow-x: auto; gap: 3px; margin: 0; }
  .nav button { height: 36px; width: auto; flex-shrink: 0; gap: 5px; padding: 0 7px; white-space: nowrap; font-size: 13px; }
  .nav button .icon { width: 15px; height: 15px; }
  .nav-count { display: none; }
  .sidebar-bottom { margin: 0 0 0 auto; flex: 0 0 auto; }
  .reset-link { margin: 0; white-space: nowrap; padding: 5px 2px; }
  .topbar { min-height: 46px; }
}
@media (max-width: 640px) {
  .sidebar { flex-wrap: wrap; gap: 8px; }
  .nav { order: 2; flex: 1 0 100%; }
  .main { padding: 19px 14px 28px; }
  .topbar { padding: 0 14px; }
  .topbar-right { gap: 10px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 11px; margin-bottom: 14px; }
  .summary { grid-template-columns: 1fr; min-height: auto; padding: 17px; gap: 14px; }
  .summary-progress { max-width: none; }
  .hero-number { font-size: 45px; }
  .summary-flow { border-left: 0; border-top: 1px solid #9cceb140; padding: 12px 0 0; }
  .summary-flow .hero-label { margin-bottom: 9px; }
  .flow-steps div > span { width: 40px; height: 40px; }
  .flow-steps::before { top: 19px; }
  .flow-steps b { font-size: 12px; }
  .metrics { grid-template-columns: 1fr 1fr; gap: 7px; margin: 10px 0 14px; }
  .metric { min-height: 68px; padding: 10px; }
  .metric-detail strong { font-size: 20px; }
  .metric-icon { width: 32px; height: 32px; }
  .task-heading { align-items: flex-start; flex-wrap: wrap; padding: 11px; }
  .table-controls { width: 100%; }
  .search { flex: 1; min-width: 130px; }
  .search input { width: 100%; }
  th:first-child, td:first-child { padding-left: 11px; }
  th:last-child, td:last-child { padding-right: 11px; }
  .drawer-header, .drawer-body, .drawer-actions { padding-left: 16px; padding-right: 16px; }
  .drawer-facts { margin-left: 16px; margin-right: 16px; }
  .drawer-tabs { padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
