:root {
  color-scheme: light;
  --ink: #17231f;
  --muted: #687770;
  --faint: #97a39d;
  --line: #dde5e1;
  --line-strong: #cbd6d1;
  --canvas: #f2f5f3;
  --surface: #ffffff;
  --surface-soft: #f7f9f8;
  --teal: #167c68;
  --teal-dark: #0d5e50;
  --teal-soft: #e6f2ee;
  --lime: #b8df58;
  --lime-soft: #eff7dc;
  --amber: #d98b26;
  --amber-soft: #fff2dd;
  --red: #c84b4b;
  --red-soft: #fdeaea;
  --blue: #477ca7;
  --blue-soft: #e8f1f8;
  --shadow: 0 12px 32px rgba(24, 48, 39, 0.1);
  --shadow-card: 0 5px 16px rgba(26, 52, 43, 0.055);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  background: #e7ece9;
}

body {
  margin: 0;
  min-width: 0;
  min-height: 100vh;
  background: #e7ece9;
  color: var(--ink);
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
  letter-spacing: 0;
}

button,
[tabindex] {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

svg {
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-shell {
  width: min(100%, 440px);
  min-height: 100svh;
  margin: 0 auto;
  background: #f5f8f6;
  box-shadow: 0 0 36px rgba(26, 47, 40, 0.12);
  position: relative;
  overflow-x: hidden;
}

.app-header {
  height: calc(64px + env(safe-area-inset-top));
  padding: calc(10px + env(safe-area-inset-top)) 16px 8px;
  background: rgba(247, 249, 248, 0.96);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(221, 229, 225, 0.8);
}

.project-trigger {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  background: var(--teal);
  color: white;
  border-radius: 8px;
}

.brand-mark svg {
  width: 19px;
  height: 19px;
}

.project-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.project-copy small,
.section-heading p,
.page-title-row p,
.sheet-header p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.project-copy strong {
  max-width: 196px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  line-height: 1.35;
}

.chevron {
  width: 16px;
  height: 16px;
  color: var(--muted);
}

.header-actions,
.section-heading,
.page-title-row,
.sheet-header,
.scene-topline,
.cycle-card-head,
.cycle-card-foot,
.cycle-summary-top,
.progress-labels,
.date-range,
.review-controls,
.report-actions {
  display: flex;
  align-items: center;
}

.header-actions {
  gap: 8px;
}

.sync-state {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--teal-dark);
  font-size: 11px;
}

.sync-state span,
.status-pill.live > span:first-child {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #27a47f;
  box-shadow: 0 0 0 3px rgba(39, 164, 127, 0.12);
}

.icon-button {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  display: grid;
  place-items: center;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.icon-button:hover {
  border-color: var(--line-strong);
  background: var(--canvas);
}

.icon-button:active {
  transform: scale(0.96);
}

.icon-button.compact {
  width: 32px;
  height: 32px;
  flex-basis: 32px;
}

.icon-button svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
}

.notification-dot {
  position: absolute;
  right: -4px;
  top: -5px;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  background: var(--red);
  color: white;
  font-size: 10px;
  font-weight: 700;
  border: 2px solid var(--surface-soft);
}

.page-stack {
  min-height: calc(100svh - 64px);
}

.app-page {
  display: none;
  padding-bottom: calc(88px + env(safe-area-inset-bottom));
}

.app-page.active {
  display: block;
}

.period-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 8px;
  background: var(--surface-soft);
  position: relative;
}

.segmented-control {
  min-width: 0;
  display: flex;
  gap: 2px;
  background: #e8eeeb;
  border-radius: 8px;
  padding: 3px;
}

.period-bar .segmented-control {
  flex: 1;
}

.segmented-control button,
.tiny-tabs button,
.choice-row button {
  min-width: 0;
  flex: 1;
  height: 30px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  border-radius: 6px;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}

.segmented-control button.active,
.tiny-tabs button.active,
.choice-row button.active {
  background: var(--surface);
  color: var(--ink);
  font-weight: 650;
  box-shadow: 0 1px 3px rgba(26, 47, 40, 0.08);
}

.date-picker-control {
  position: relative;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(26, 47, 40, 0.05);
  cursor: pointer;
  overflow: hidden;
}

.date-picker-control > svg {
  width: 17px;
  height: 17px;
  pointer-events: none;
}

.date-picker-control:focus-within {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.native-date {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: transparent;
  font-size: 16px;
  opacity: 0;
  cursor: pointer;
  pointer-events: auto;
}

.native-date::-webkit-calendar-picker-indicator {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  cursor: pointer;
  opacity: 0;
}

.tunnel-stage {
  height: 300px;
  position: relative;
  overflow: hidden;
  background: #eef3f0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

#tunnelCanvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: pan-y;
  cursor: grab;
}

#tunnelCanvas:active {
  cursor: grabbing;
}

.scene-topline {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 16px;
  right: 16px;
  justify-content: space-between;
  pointer-events: none;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  height: 26px;
  padding: 0 9px;
  border-radius: 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 650;
}

.status-pill.complete {
  color: #52645d;
  background: #eef2f0;
  border-color: #d9e1dd;
}

.status-pill.complete > span:first-child {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8ba098;
}

.scene-kilo {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.face-callout {
  position: absolute;
  z-index: 2;
  top: 76px;
  right: 16px;
  width: 106px;
  padding-left: 12px;
  border-left: 2px solid var(--teal);
  pointer-events: none;
}

.face-label,
.face-callout small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.face-callout strong {
  display: block;
  margin: 3px 0 2px;
  color: var(--teal-dark);
  font-size: 17px;
}

.scene-reset {
  position: absolute;
  right: 16px;
  bottom: 48px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.9);
}

.scene-progress {
  position: absolute;
  z-index: 2;
  left: 16px;
  right: 16px;
  bottom: 14px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 10px;
  pointer-events: none;
}

.scene-progress strong {
  color: var(--ink);
}

.scene-progress-track,
.progress-rail,
.plan-actual div div {
  height: 4px;
  background: #d7dfdb;
  border-radius: 2px;
  overflow: hidden;
}

.scene-progress-track span,
.progress-rail span {
  display: block;
  height: 100%;
  width: 49.8%;
  background: var(--teal);
  border-radius: inherit;
  transition: width 320ms ease;
}

.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.kpi-strip article {
  min-width: 0;
  padding: 14px 10px 13px;
  border-right: 1px solid var(--line);
}

.kpi-strip article:last-child {
  border-right: 0;
}

.kpi-strip small,
.review-kpis small,
.cycle-meta-grid small,
.cycle-summary-top small,
.extreme-grid small,
.report-preview-kpis small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.kpi-strip strong {
  display: block;
  margin: 5px 0 4px;
  font-size: 20px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.kpi-strip em {
  margin-left: 2px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
}

.kpi-strip article > span,
.kpi-strip article > button {
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}

.kpi-strip article > button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--red);
  cursor: pointer;
}

.delta svg {
  width: 11px;
  height: 11px;
}

.delta.positive {
  color: var(--teal-dark) !important;
}

.delta.negative {
  color: var(--red) !important;
}

.alert-kpi {
  background: var(--red-soft);
}

.alert-kpi strong {
  color: var(--red);
}

.content-section {
  margin: 10px 0 0;
  padding: 18px 16px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}

.section-heading h2,
.page-title-row h1,
.sheet-header h2 {
  margin: 2px 0 0;
  font-size: 17px;
  line-height: 1.35;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--teal-dark);
  font-size: 11px;
  cursor: pointer;
}

.text-link svg {
  width: 14px;
  height: 14px;
}

.cycle-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.cycle-card:hover {
  border-color: #b9cbc4;
  box-shadow: 0 8px 20px rgba(26, 52, 43, 0.08);
}

.cycle-card:active {
  transform: translateY(1px);
}

.cycle-card-head,
.cycle-card-foot {
  justify-content: space-between;
  gap: 8px;
}

.cycle-card-head {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}

.cycle-card-head .status-pill {
  height: 22px;
  padding: 0 7px;
  background: var(--teal-soft);
  border-color: transparent;
}

.mini-process {
  display: grid;
  grid-template-columns: repeat(4, 1fr auto) 1fr auto;
  align-items: start;
  gap: 4px;
  padding: 16px 10px 13px;
}

.mini-process > div {
  min-width: 0;
  display: grid;
  place-items: center;
  gap: 6px;
}

.mini-process > svg {
  width: 12px;
  height: 12px;
  margin-top: 12px;
  color: var(--line-strong);
}

.mini-process > div span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface-soft);
  color: var(--muted);
}

.mini-process > div span svg {
  width: 16px;
  height: 16px;
}

.mini-process .done span {
  background: var(--teal-soft);
  border-color: #b6d9cc;
  color: var(--teal-dark);
}

.mini-process .warning span {
  background: var(--amber-soft);
  border-color: #f0cd98;
  color: #a66313;
}

.mini-process .active span {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
  box-shadow: 0 0 0 4px var(--teal-soft);
}

.mini-process small {
  width: 42px;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-align: center;
  white-space: nowrap;
}

.cycle-card-foot {
  padding: 9px 12px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 10px;
}

.cycle-card-foot span {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.cycle-card-foot b {
  font-weight: 500;
}

.cycle-card-foot svg {
  width: 13px;
  height: 13px;
}

.compact-list {
  display: grid;
}

.empty-state {
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px dashed #bfd1ca;
  border-radius: 8px;
  background: #f7fbf9;
  color: var(--teal-dark);
}

.empty-state > svg {
  width: 20px;
  height: 20px;
}

.empty-state strong,
.empty-state small {
  display: block;
}

.empty-state strong {
  font-size: 11px;
}

.empty-state small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.sheet-empty {
  min-height: 88px;
}

.compact-list button {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.compact-list button:first-child {
  padding-top: 0;
}

.compact-list button:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.compact-list button > svg,
.audit-row > svg {
  width: 16px;
  height: 16px;
  color: var(--faint);
}

.compact-list strong,
.compact-list small,
.binding-list strong,
.binding-list small,
.report-list strong,
.report-list small {
  display: block;
}

.compact-list strong,
.binding-list strong,
.report-list strong {
  font-size: 12px;
  line-height: 1.45;
}

.compact-list small,
.binding-list small,
.report-list small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.alert-icon,
.resource-icon,
.file-type,
.extreme-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
}

.alert-icon svg,
.resource-icon svg,
.file-type svg,
.extreme-mark svg {
  width: 18px;
  height: 18px;
}

.alert-icon.danger {
  background: var(--red-soft);
  color: var(--red);
}

.alert-icon.warning {
  background: var(--amber-soft);
  color: var(--amber);
}

.muted-time,
.legend,
.chart-legend,
.status-label,
.processing-label {
  color: var(--muted);
  font-size: 10px;
}

.resource-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.resource-grid button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: border-color 160ms ease, transform 160ms ease;
}

.resource-grid button:hover {
  border-color: #b9cbc4;
}

.resource-grid button:active {
  transform: translateY(1px);
}

.resource-grid button > svg {
  width: 14px;
  height: 14px;
  margin-left: auto;
  color: var(--faint);
}

.resource-icon.people {
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.resource-icon.machine {
  background: var(--blue-soft);
  color: var(--blue);
}

.resource-grid strong,
.resource-grid small {
  display: block;
}

.resource-grid strong {
  font-size: 16px;
}

.resource-grid small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.crew-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 12px;
  border-top: 1px solid var(--line);
}

.crew-row > span,
.crew-row > b {
  padding-top: 10px;
}

.crew-row > span:nth-of-type(2),
.crew-row > b:nth-of-type(2) {
  border-top: 1px solid var(--line);
}

.crew-row strong,
.crew-row small {
  display: block;
}

.crew-row strong,
.crew-row b {
  font-size: 11px;
}

.crew-row small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.progress-percent {
  color: var(--teal-dark);
  font-size: 16px;
}

.progress-rail {
  height: 7px;
}

.progress-labels {
  justify-content: space-between;
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
}

.progress-labels b {
  color: var(--ink);
}

.report-band {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 36px;
  gap: 11px;
  align-items: center;
  margin: 12px 16px 0;
  padding: 13px;
  border-radius: 8px;
  background: var(--teal-dark);
  color: white;
}

.report-band-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
}

.report-band-icon svg {
  width: 20px;
  height: 20px;
}

.report-band strong,
.report-band small {
  display: block;
}

.report-band strong {
  font-size: 13px;
}

.report-band small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
}

.icon-button.inverted {
  background: white;
  border-color: transparent;
  color: var(--teal-dark);
}

.bottom-nav {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: 0;
  width: min(100%, 440px);
  height: calc(66px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 7px 8px env(safe-area-inset-bottom);
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--line);
  box-shadow: 0 -7px 24px rgba(26, 47, 40, 0.06);
}

.bottom-nav button {
  min-width: 0;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  color: var(--faint);
  font-size: 10px;
  cursor: pointer;
}

.bottom-nav button svg {
  width: 21px;
  height: 21px;
  stroke-width: 1.8;
}

.bottom-nav button.active {
  color: var(--teal-dark);
  font-weight: 650;
}

.page-title-row {
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px 10px;
  background: var(--surface-soft);
}

.page-title-group {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}

.contextual-back {
  background: transparent;
}

.page-title-row h1 {
  font-size: 20px;
}

.sticky-subhead {
  position: sticky;
  top: calc(64px + env(safe-area-inset-top));
  z-index: 20;
  border-bottom: 1px solid var(--line);
}

.stepper {
  display: flex;
  gap: 6px;
}

.stepper .icon-button:disabled {
  opacity: 0.34;
  cursor: not-allowed;
}

.home-process-section {
  scroll-margin-top: calc(74px + env(safe-area-inset-top));
}

.cycle-inline-summary {
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.cycle-inline-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cycle-inline-title > strong {
  min-width: 0;
  font-size: 14px;
}

.cycle-inline-meta {
  display: grid;
  grid-template-columns: 0.8fr 1.45fr 0.75fr;
  gap: 8px;
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.cycle-inline-meta span,
.cycle-inline-meta small,
.cycle-inline-meta b {
  min-width: 0;
  display: block;
}

.cycle-inline-meta small {
  color: var(--muted);
  font-size: 9px;
}

.cycle-inline-meta b {
  margin-top: 3px;
  color: var(--ink);
  font-size: 11px;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}

.cycle-station-inline {
  margin-top: 11px;
  color: var(--muted);
}

.cycle-station-inline div {
  background: var(--line-strong);
}

.cycle-station-inline div svg {
  background: var(--surface-soft);
  color: var(--teal-dark);
}

.process-chart-key {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 4px 12px 82px;
  color: var(--muted);
  font-size: 9px;
}

.home-audit-row {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.cycle-summary-band {
  padding: 15px 16px 16px;
  background: var(--teal-dark);
  color: white;
}

.cycle-summary-top {
  justify-content: space-between;
}

.cycle-summary-top small {
  color: rgba(255,255,255,0.62);
}

.cycle-summary-top strong {
  display: block;
  margin-top: 2px;
  font-size: 18px;
}

.cycle-summary-top .status-pill {
  color: white;
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.16);
}

.cycle-summary-top .status-pill.complete > span {
  background: #d7e6e0;
  box-shadow: none;
}

.cycle-meta-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.4fr 0.8fr;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,0.13);
  border-bottom: 1px solid rgba(255,255,255,0.13);
}

.cycle-meta-grid small {
  color: rgba(255,255,255,0.62);
}

.cycle-meta-grid strong {
  display: block;
  margin-top: 4px;
  font-size: 12px;
}

.cycle-station {
  display: grid;
  grid-template-columns: 1fr 64px 1fr;
  gap: 8px;
  align-items: center;
  margin-top: 13px;
  color: rgba(255,255,255,0.78);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.cycle-station span:last-child {
  text-align: right;
}

.cycle-station div {
  height: 1px;
  background: rgba(255,255,255,0.28);
  position: relative;
}

.cycle-station div svg {
  width: 15px;
  height: 15px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  background: var(--teal-dark);
}

.legend,
.chart-legend {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.legend span,
.chart-legend i,
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.legend-actual {
  background: var(--teal);
}

.legend-standard {
  margin-left: 5px;
  width: 2px !important;
  height: 10px !important;
  border-radius: 0 !important;
  background: var(--muted);
}

.process-timeline {
  display: grid;
  margin-top: 2px;
  margin-bottom: 0;
  padding: 0;
  list-style: none;
}

.sequence-item {
  display: grid;
  margin: 0;
  padding: 0;
}

.sequence-step,
.sequence-gap {
  display: grid;
  grid-template-columns: 52px 24px minmax(0, 1fr);
  column-gap: 6px;
}

.sequence-step {
  width: 100%;
  min-height: 64px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.sequence-time {
  min-width: 0;
  padding-top: 1px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.sequence-time strong,
.sequence-time small,
.sequence-time em {
  display: block;
}

.sequence-time strong {
  color: var(--ink);
  font-size: 11px;
  line-height: 1.3;
}

.sequence-time small,
.sequence-time em {
  margin-top: 2px;
  color: var(--faint);
  font-size: 9px;
  font-style: normal;
  line-height: 1.35;
}

.sequence-time em {
  margin: 0 0 1px;
  color: var(--teal-dark);
  font-weight: 650;
}

.sequence-rail {
  min-height: 64px;
  align-self: stretch;
  position: relative;
}

.sequence-rail::before,
.sequence-gap-rail::before {
  content: "";
  width: 1px;
  position: absolute;
  left: 50%;
  top: 0;
  bottom: -1px;
  transform: translateX(-50%);
  background: var(--line-strong);
}

.sequence-step.first .sequence-rail::before {
  top: 11px;
}

.sequence-step.last .sequence-rail::before {
  bottom: calc(100% - 11px);
}

.sequence-node {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
}

.sequence-node svg {
  width: 11px;
  height: 11px;
}

.sequence-step-body {
  min-width: 0;
  padding: 0 4px 10px;
  border-radius: 4px;
  transition: background 160ms ease, transform 160ms ease;
}

.sequence-step:hover .sequence-step-body {
  background: var(--surface-soft);
}

.sequence-step:active .sequence-step-body {
  transform: translateY(1px);
}

.sequence-title,
.sequence-name,
.sequence-metrics,
.sequence-gap-copy {
  display: flex;
  align-items: center;
}

.sequence-title {
  justify-content: space-between;
  gap: 8px;
}

.sequence-name {
  min-width: 0;
  gap: 6px;
}

.sequence-name strong {
  min-width: 0;
  font-size: 12px;
  line-height: 1.35;
}

.sequence-name i {
  flex: 0 0 auto;
  padding: 1px 4px;
  border: 1px dashed #e5a4a4;
  border-radius: 3px;
  color: var(--red);
  font-size: 8px;
  font-style: normal;
  font-weight: 600;
}

.sequence-title > em {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 650;
}

.sequence-duration-chart {
  height: 9px;
  display: block;
  position: relative;
  margin-top: 6px;
  border-radius: 2px;
  background: #edf2ef;
  overflow: visible;
}

.sequence-duration-chart > span {
  width: var(--duration-width);
  height: 5px;
  position: absolute;
  left: 0;
  top: 2px;
  border-radius: 2px;
  background: var(--teal);
}

.sequence-duration-chart > i {
  width: 1px;
  height: 11px;
  position: absolute;
  z-index: 2;
  left: var(--standard-position);
  top: -1px;
  transform: translateX(-1px);
  background: var(--muted);
}

.sequence-metrics {
  gap: 7px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.sequence-metrics b {
  color: var(--ink);
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
}

.sequence-metrics small {
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}

.sequence-metrics > span {
  color: var(--red);
  font-size: 9px;
  font-weight: 650;
  white-space: nowrap;
}

.sequence-metrics > svg {
  width: 12px;
  height: 12px;
  margin-left: auto;
  flex: 0 0 auto;
  color: var(--faint);
}

.sequence-step.completed .sequence-node {
  border-color: #b9d7cc;
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.sequence-step.completed .sequence-title > em {
  color: var(--teal-dark);
}

.sequence-step.active .sequence-node {
  border-color: var(--teal);
  background: var(--teal);
  color: white;
  box-shadow: 0 0 0 3px var(--teal-soft);
}

.sequence-step.active .sequence-duration-chart > span {
  background: var(--teal-dark);
}

.sequence-step.active .sequence-title > em {
  color: var(--teal-dark);
}

.sequence-step.alerted .sequence-node {
  border-color: #ebc284;
  background: var(--amber-soft);
  color: var(--amber);
}

.sequence-step.alerted .sequence-duration-chart > span {
  background: var(--amber);
}

.sequence-step.alerted .sequence-title > em {
  color: #a96413;
}

.sequence-step.pending .sequence-node {
  border-style: dashed;
  background: var(--surface-soft);
  color: var(--faint);
}

.sequence-step.pending .sequence-duration-chart > span {
  height: 4px;
  top: 3px;
  background: repeating-linear-gradient(to right, var(--line-strong) 0 4px, transparent 4px 7px);
}

.sequence-step.optional .sequence-node {
  outline: 1px dashed #df9b9b;
  outline-offset: 2px;
}

.sequence-gap {
  min-height: 24px;
  color: var(--faint);
  pointer-events: none;
}

.sequence-gap-time {
  align-self: center;
  text-align: right;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

.sequence-gap-rail {
  align-self: stretch;
  position: relative;
}

.sequence-gap-copy {
  align-self: center;
  min-width: 0;
  font-size: 9px;
}

.sequence-gap-copy strong {
  color: var(--muted);
  font-size: 9px;
}

.sequence-gap.delayed,
.sequence-gap.delayed .sequence-gap-copy strong {
  color: var(--red);
}

.sequence-gap.delayed .sequence-gap-rail::before {
  width: 2px;
  background: repeating-linear-gradient(to bottom, var(--red) 0 4px, transparent 4px 7px);
}

.anomaly-note {
  position: relative;
  border-left: 3px solid var(--amber);
}

.anomaly-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.anomaly-title > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--amber-soft);
  color: var(--amber);
}

.anomaly-title svg {
  width: 18px;
  height: 18px;
}

.anomaly-title p,
.anomaly-title h2,
.anomaly-note > p {
  margin: 0;
}

.anomaly-title p {
  color: var(--amber);
  font-size: 10px;
}

.anomaly-title h2 {
  margin-top: 2px;
  font-size: 14px;
}

.anomaly-note > p {
  margin: 11px 0 8px 46px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.anomaly-note .text-link {
  margin-left: 46px;
}

.binding-list {
  display: grid;
}

.binding-list > div {
  display: grid;
  grid-template-columns: 36px minmax(0,1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.binding-list > div:first-child {
  padding-top: 0;
}

.binding-list > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.binding-list b {
  font-size: 11px;
}

.audit-section .section-heading > svg {
  color: var(--teal);
}

.audit-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.audit-row strong,
.audit-row small {
  display: block;
}

.audit-row strong {
  font-size: 12px;
}

.audit-row small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.review-controls {
  flex-wrap: wrap;
  gap: 7px;
  padding: 10px 16px 6px;
}

.review-controls .segmented-control {
  flex: 1 1 100%;
}

.filter-chip {
  height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-size: 10px;
  cursor: pointer;
}

.filter-chip svg {
  width: 13px;
  height: 13px;
}

.date-range {
  justify-content: center;
  gap: 16px;
  padding: 5px 16px 11px;
}

.date-range strong {
  min-width: 142px;
  text-align: center;
  font-size: 12px;
}

.date-range .icon-button:disabled {
  opacity: 0.32;
  cursor: not-allowed;
}

.review-scope-summary {
  margin: -4px 16px 11px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
  text-align: center;
}

#reviewFilterButton.has-filter::after {
  content: "";
  width: 6px;
  height: 6px;
  position: absolute;
  right: 4px;
  top: 4px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 2px var(--surface-soft);
}

.review-kpis {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr 0.8fr;
  background: var(--teal-dark);
  color: white;
}

.review-kpis article {
  min-width: 0;
  padding: 15px 12px;
  border-right: 1px solid rgba(255,255,255,0.12);
}

.review-kpis article:last-child {
  border-right: 0;
}

.review-kpis small {
  color: rgba(255,255,255,0.62);
}

.review-kpis strong {
  display: block;
  margin: 6px 0 5px;
  font-size: 18px;
  line-height: 1.05;
  white-space: nowrap;
}

.review-kpis article > span {
  display: flex;
  align-items: center;
  gap: 3px;
  color: rgba(255,255,255,0.7);
  font-size: 8px;
  white-space: nowrap;
}

.review-kpis .delta.positive {
  color: #d8efac !important;
}

.review-kpis .delta.negative {
  color: #ffc0b7 !important;
}

.target-status,
.resolved-count {
  padding: 4px 7px;
  border-radius: 4px;
  background: var(--amber-soft);
  color: #9d5d0d;
  font-size: 9px;
}

.plan-actual {
  display: grid;
  gap: 11px;
}

.plan-actual > div {
  display: grid;
  grid-template-columns: 70px 56px 1fr;
  align-items: center;
  gap: 8px;
}

.plan-actual span,
.plan-actual b {
  font-size: 10px;
}

.plan-actual b {
  text-align: right;
}

.plan-actual div div i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--line-strong);
}

.plan-actual > div:last-child div i {
  background: var(--teal);
}

.extreme-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.extreme-grid > button {
  width: 100%;
  position: relative;
  padding: 13px 12px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: border-color 160ms ease, transform 160ms ease;
}

.extreme-grid > button:hover {
  border-color: #b9cbc4;
}

.extreme-grid > button:active {
  transform: translateY(1px);
}

.extreme-mark {
  width: 28px;
  height: 28px;
  position: absolute;
  right: 10px;
  top: 10px;
}

.extreme-mark.best {
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.extreme-mark.worst {
  background: var(--red-soft);
  color: var(--red);
}

.extreme-mark svg {
  width: 14px;
  height: 14px;
}

.extreme-grid strong,
.extreme-grid p {
  display: block;
}

.drill-hint {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-top: 11px;
  color: var(--teal-dark);
  font-size: 9px;
}

.drill-hint svg {
  width: 12px;
  height: 12px;
}

.extreme-grid strong {
  margin-top: 8px;
  font-size: 18px;
}

.extreme-grid p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 9px;
}

.tiny-tabs {
  display: flex;
  padding: 2px;
  background: var(--canvas);
  border-radius: 6px;
}

.tiny-tabs button {
  height: 26px;
  padding: 0 10px;
  font-size: 10px;
}

.ranking-list {
  display: grid;
  gap: 12px;
}

.ranking-row {
  width: 100%;
  display: grid;
  grid-template-columns: 18px 52px 1fr 52px 13px;
  gap: 8px;
  align-items: center;
  padding: 3px 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.ranking-row > b {
  color: var(--faint);
  font-size: 11px;
}

.ranking-row > span {
  font-size: 10px;
}

.ranking-row > strong {
  color: var(--red);
  font-size: 10px;
  text-align: right;
}

.ranking-row > svg,
.duration-row > svg {
  width: 13px;
  height: 13px;
  color: var(--faint);
}

.ranking-bar {
  height: 7px;
  overflow: hidden;
  background: var(--canvas);
  border-radius: 4px;
}

.ranking-bar i {
  display: block;
  height: 100%;
  background: var(--red);
  border-radius: inherit;
}

.duration-chart {
  display: grid;
  gap: 11px;
}

.duration-row {
  width: 100%;
  display: grid;
  grid-template-columns: 52px 1fr 44px 13px;
  gap: 8px;
  align-items: center;
  padding: 2px 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.duration-row > span,
.duration-row > strong {
  font-size: 10px;
}

.duration-row > strong {
  text-align: right;
}

.dual-bar {
  height: 10px;
  position: relative;
}

.dual-bar .standard,
.dual-bar .actual {
  position: absolute;
  left: 0;
  border-radius: 3px;
}

.dual-bar .standard {
  top: 1px;
  height: 8px;
  background: #cfd8d4;
}

.dual-bar .actual {
  top: 3px;
  height: 4px;
  background: var(--teal);
}

.chart-legend i:first-child {
  background: var(--teal);
}

.chart-legend i:last-child {
  margin-left: 3px;
  background: #cfd8d4;
}

.alert-chart-wrap {
  display: grid;
  grid-template-columns: 124px 1fr;
  gap: 18px;
  align-items: center;
}

.ring-chart {
  position: relative;
  width: 120px;
  height: 120px;
}

.ring-chart svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-chart circle {
  fill: none;
  stroke-width: 5;
}

.ring-base {
  stroke: var(--canvas);
}

.ring-segment.overtime {
  stroke: var(--red);
}

.ring-segment.disconnect {
  stroke: var(--amber);
}

.ring-segment.cycle {
  stroke: var(--blue);
}

.ring-chart > span {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}

.ring-chart strong,
.ring-chart small {
  display: block;
}

.ring-chart strong {
  font-size: 20px;
}

.ring-chart small {
  color: var(--muted);
  font-size: 9px;
}

.alert-breakdown {
  display: grid;
}

.alert-breakdown button {
  width: 100%;
  display: grid;
  grid-template-columns: 8px 1fr auto 34px;
  gap: 7px;
  align-items: center;
  padding: 7px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.alert-breakdown button:last-child {
  border-bottom: 0;
}

.dot.overtime {
  background: var(--red);
}

.dot.disconnect {
  background: var(--amber);
}

.dot.cycle {
  background: var(--blue);
}

.alert-breakdown b,
.alert-breakdown strong,
.alert-breakdown small {
  font-size: 9px;
}

.review-resource-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.review-resource-summary button {
  min-width: 0;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  column-gap: 9px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow-card);
}

.review-resource-summary button > span {
  grid-row: 1 / span 3;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.review-resource-summary button:last-child > span {
  background: var(--blue-soft);
  color: var(--blue);
}

.review-resource-summary svg {
  width: 16px;
  height: 16px;
}

.review-resource-summary small,
.review-resource-summary strong,
.review-resource-summary em {
  display: block;
  min-width: 0;
}

.review-resource-summary small,
.review-resource-summary em {
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
}

.review-resource-summary strong {
  margin: 3px 0;
  font-size: 13px;
  white-space: nowrap;
}

.resource-breakdown {
  display: grid;
  margin-top: 11px;
  border-top: 1px solid var(--line);
}

.resource-breakdown span {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
}

.resource-breakdown span:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.alert-breakdown small {
  color: var(--muted);
  text-align: right;
}

.reason-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
}

.reason-row span,
.reason-row strong {
  padding: 4px 7px;
  border-radius: 4px;
  font-size: 9px;
}

.reason-row span {
  padding-left: 0;
  color: var(--muted);
}

.reason-row strong {
  background: var(--canvas);
}

.report-overview {
  margin: 12px 16px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.report-overview h2 {
  margin: 12px 0 4px;
  font-size: 18px;
}

.report-overview p {
  margin: 0 0 15px;
  color: var(--muted);
  font-size: 11px;
}

.primary-command,
.secondary-command {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  border-radius: 8px;
  font-weight: 650;
  font-size: 12px;
  cursor: pointer;
}

.primary-command {
  border: 1px solid var(--teal);
  background: var(--teal);
  color: white;
}

.secondary-command {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

.primary-command svg,
.secondary-command svg {
  width: 16px;
  height: 16px;
}

.primary-command.full {
  width: 100%;
}

.report-list {
  display: grid;
}

.report-list article {
  display: grid;
  grid-template-columns: 40px minmax(0,1fr) auto auto;
  gap: 8px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.report-list article:first-child {
  padding-top: 0;
}

.report-list article:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.file-type.daily {
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.file-type.weekly {
  background: var(--blue-soft);
  color: var(--blue);
}

.file-type.monthly {
  background: var(--amber-soft);
  color: var(--amber);
}

.processing-label {
  grid-column: span 2;
  padding: 4px 7px;
  border-radius: 4px;
  background: var(--amber-soft);
  color: #9d5d0d;
}

.shortcut-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.shortcut-grid button {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0,1fr);
  grid-template-rows: auto auto;
  column-gap: 9px;
  align-items: center;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  text-align: left;
  cursor: pointer;
}

.shortcut-grid button > span {
  grid-row: 1 / span 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--canvas);
  color: var(--teal-dark);
}

.shortcut-grid button > span svg {
  width: 17px;
  height: 17px;
}

.shortcut-grid strong {
  min-width: 0;
  font-size: 11px;
}

.shortcut-grid small {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sheet-backdrop {
  position: fixed;
  z-index: 80;
  inset: 0;
  background: rgba(18, 30, 26, 0.32);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.sheet-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.bottom-sheet {
  position: fixed;
  z-index: 90;
  left: 50%;
  bottom: 0;
  width: min(100%, 440px);
  max-height: 82svh;
  overflow-y: auto;
  transform: translate(-50%, 105%);
  padding: 8px 16px calc(18px + env(safe-area-inset-bottom));
  background: var(--surface);
  border-radius: 8px 8px 0 0;
  box-shadow: var(--shadow);
  transition: transform 220ms ease;
}

.bottom-sheet.open {
  transform: translate(-50%, 0);
}

.sheet-handle {
  width: 36px;
  height: 4px;
  margin: 0 auto 12px;
  border-radius: 2px;
  background: var(--line-strong);
}

.sheet-header {
  justify-content: space-between;
  margin-bottom: 14px;
}

.tunnel-options {
  display: grid;
  gap: 8px;
}

.tunnel-option {
  width: 100%;
  display: grid;
  grid-template-columns: 38px minmax(0,1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  text-align: left;
  cursor: pointer;
}

.tunnel-option.active {
  border-color: var(--teal);
  background: var(--teal-soft);
}

.tunnel-option > span:first-child {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--canvas);
  color: var(--teal-dark);
}

.tunnel-option > span:first-child svg {
  width: 18px;
  height: 18px;
}

.tunnel-option strong,
.tunnel-option small {
  display: block;
}

.tunnel-option strong {
  font-size: 12px;
}

.tunnel-option small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.tunnel-option > svg {
  width: 18px;
  height: 18px;
  color: var(--teal);
}

.alert-sheet-list {
  display: grid;
  gap: 8px;
}

.alert-sheet-list > button {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto 14px;
  gap: 9px;
  align-items: center;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow-card);
}

.alert-sheet-list strong,
.alert-sheet-list small {
  display: block;
}

.alert-sheet-list strong {
  font-size: 11px;
  line-height: 1.4;
}

.alert-sheet-list small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.alert-sheet-list > button > svg {
  width: 14px;
  height: 14px;
  color: var(--faint);
}

.alert-record-status {
  padding: 4px 6px;
  border-radius: 4px;
  background: var(--canvas);
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}

.detail-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 13px;
  padding: 11px 12px;
  border-radius: 8px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.detail-status strong {
  font-size: 12px;
}

.detail-status span {
  color: var(--muted);
  font-size: 10px;
}

.detail-status.danger {
  background: var(--red-soft);
  border-color: #f3caca;
}

.detail-status.danger strong {
  color: var(--red);
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.detail-grid > span {
  padding: 11px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.detail-grid small,
.detail-grid strong {
  display: block;
}

.detail-grid small {
  color: var(--muted);
  font-size: 9px;
}

.detail-grid strong {
  margin-top: 4px;
  font-size: 12px;
}

.detail-section-title {
  margin: 16px 0 8px;
  color: var(--muted);
  font-size: 10px;
}

.detail-resource {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.detail-resource:last-child {
  border-bottom: 0;
}

.detail-resource svg {
  width: 16px;
  height: 16px;
  color: var(--teal-dark);
}

.detail-resource strong {
  margin-left: auto;
  font-size: 11px;
}

.detail-copy {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.75;
}

.detail-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.detail-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.detail-list strong,
.detail-list small {
  display: block;
}

.detail-list strong,
.detail-list b {
  font-size: 11px;
}

.detail-list small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.detail-footnote {
  margin: 11px 0 0;
  color: var(--faint);
  font-size: 9px;
  line-height: 1.6;
}

.detail-drill-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding: 11px 12px;
  border: 1px solid #b9d7cd;
  border-radius: 8px;
  background: var(--teal-soft);
  text-align: left;
  cursor: pointer;
}

.detail-drill-button strong,
.detail-drill-button small {
  display: block;
}

.detail-drill-button strong {
  color: var(--teal-dark);
  font-size: 11px;
}

.detail-drill-button small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.detail-drill-button > svg {
  width: 15px;
  height: 15px;
  color: var(--teal-dark);
}

.reason-detail-list {
  display: grid;
  gap: 11px;
}

.reason-detail-list > div {
  display: grid;
  grid-template-columns: 74px 1fr 36px;
  gap: 8px;
  align-items: center;
  font-size: 10px;
}

.reason-detail-list > div > div {
  height: 6px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--canvas);
}

.reason-detail-list i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--amber);
}

.reason-detail-list strong {
  text-align: right;
}

.filter-form {
  display: grid;
  gap: 18px;
}

.filter-form fieldset {
  padding: 0;
  border: 0;
}

.filter-form legend {
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 650;
}

.choice-row {
  display: flex;
  gap: 4px;
  padding: 3px;
  background: var(--canvas);
  border-radius: 8px;
}

.report-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.report-preview-title {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 9px;
  align-items: center;
  padding: 12px;
  background: var(--teal-soft);
}

.report-preview-title strong,
.report-preview-title small {
  display: block;
}

.report-preview-title strong {
  font-size: 12px;
}

.report-preview-title small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.report-preview-title > b {
  color: var(--teal-dark);
  font-size: 16px;
}

.report-preview-kpis {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  border-bottom: 1px solid var(--line);
}

.report-preview-kpis span {
  padding: 12px;
  border-right: 1px solid var(--line);
}

.report-preview-kpis span:last-child {
  border-right: 0;
}

.report-preview-kpis b {
  display: block;
  margin-top: 4px;
  font-size: 16px;
}

.report-preview-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
}

.report-preview-row:last-child {
  border-bottom: 0;
}

.report-preview-row span {
  color: var(--muted);
}

.danger-text {
  color: var(--red);
}

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

.report-actions button {
  flex: 1;
}

.toast {
  position: fixed;
  z-index: 120;
  left: 50%;
  bottom: calc(82px + env(safe-area-inset-bottom));
  min-width: 150px;
  max-width: min(calc(100% - 32px), 408px);
  transform: translate(-50%, 16px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #17231f;
  color: white;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  box-shadow: var(--shadow);
  font-size: 11px;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast svg {
  width: 16px;
  height: 16px;
  color: var(--lime);
}

@media (min-width: 700px) {
  body {
    padding: 24px 0;
  }

  .app-shell {
    min-height: calc(100svh - 48px);
    border-radius: 8px;
  }

  .app-header {
    top: 24px;
  }

  .bottom-nav {
    bottom: 24px;
    border-radius: 0 0 8px 8px;
  }

  .bottom-sheet {
    bottom: 24px;
  }
}

@media (max-width: 360px) {
  .project-copy strong {
    max-width: 152px;
  }

  .kpi-strip article {
    padding-left: 7px;
    padding-right: 7px;
  }

  .kpi-strip strong {
    font-size: 18px;
  }

  .cycle-card-foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .alert-chart-wrap {
    grid-template-columns: 106px 1fr;
    gap: 10px;
  }

  .ring-chart {
    width: 104px;
    height: 104px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
