:root {
  color-scheme: light;
  --gold: #f7b400;
  --gold-hover: #dfa100;
  --gold-soft: #fff6d6;
  --gold-line: #e7c35a;
  --navy: #1e2346;
  --navy-hover: #151a35;
  --navy-soft: #eef0f7;
  --navy-line: #b9bed1;
  --navy-light: #5d6892;
  --ink: #15171d;
  --ink-soft: #4c5260;
  --muted: #737a8b;
  --canvas: #f3f4f7;
  --canvas-soft: #f8f9fb;
  --surface: #ffffff;
  --surface-hover: #f1f3f8;
  --border: #dfe2e9;
  --border-strong: #c7cbd5;
  --danger: #b93838;
  --danger-soft: #fff0f0;
  --warning: #b96d00;
  --warning-soft: #fff5e1;
  --success: #2e6b52;
  --success-soft: #edf7f2;
  --info: #3f587d;
  --track-product: #8b5cf6;
  --track-product-soft: #f5f3ff;
  --track-product-line: #c4b5fd;
  --track-product-stripe: rgba(139, 92, 246, 0.4);
  --track-product-end: #a78bfa;
  --track-development: #2f80ff;
  --track-development-soft: #eff6ff;
  --track-development-line: #93c5fd;
  --track-development-stripe: rgba(47, 128, 255, 0.4);
  --track-development-end: #60a5fa;
  --track-operations: #10b981;
  --track-operations-soft: #ecfdf5;
  --track-operations-line: #6ee7b7;
  --track-operations-stripe: rgba(16, 185, 129, 0.4);
  --track-operations-end: #34d399;
  --timeline-purple: #8b5cf6;
  --timeline-purple-stripe: rgba(139, 92, 246, 0.3);
  --today-orange: #ee7a1e;
  --today-orange-soft: #fff4e8;
  --today-orange-line: #f7c99b;
  --font-display: "Noto Serif SC", "Songti SC", "STSong", serif;
  --font-body: "IBM Plex Sans", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  --sidebar-width: 248px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --shadow-panel: 0 10px 28px rgba(30, 35, 70, 0.08);
  --shadow-float: 0 18px 46px rgba(30, 35, 70, 0.22);
  --duration-fast: 150ms;
  --duration-normal: 240ms;
  --ease-standard: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(30, 35, 70, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 35, 70, 0.025) 1px, transparent 1px),
    var(--canvas);
  background-size: 32px 32px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
}

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

button {
  color: inherit;
}

button,
a,
input,
select,
textarea {
  outline: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  box-shadow: 0 0 0 3px rgba(247, 180, 0, 0.34);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

a {
  color: inherit;
}

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;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  display: flex;
  width: var(--sidebar-width);
  flex-direction: column;
  padding: 24px 18px 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(30, 35, 70, 0.98), rgba(21, 26, 53, 1));
  color: #ffffff;
}

.brand {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 12px;
  padding: 0 8px;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(247, 180, 0, 0.58);
  border-radius: 6px;
  background: rgba(247, 180, 0, 0.09);
}

.brand-mark span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transform-origin: center;
}

.brand-mark span:nth-child(1) {
  width: 20px;
  transform: translate(-50%, -50%) rotate(34deg);
}

.brand-mark span:nth-child(2) {
  width: 24px;
  transform: translate(-50%, -50%);
}

.brand-mark span:nth-child(3) {
  width: 20px;
  transform: translate(-50%, -50%) rotate(-34deg);
}

.brand strong {
  display: block;
  font: 700 17px/1.1 var(--font-display);
}

.brand small {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
}

.primary-nav {
  display: grid;
  gap: 6px;
  margin-top: 42px;
}

.nav-item {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 44px;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition:
    color var(--duration-fast) var(--ease-standard),
    background var(--duration-fast) var(--ease-standard),
    border-color var(--duration-fast) var(--ease-standard);
}

.nav-item svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.nav-item > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-item::before {
  position: absolute;
  left: -1px;
  width: 3px;
  height: 20px;
  border-radius: 0 3px 3px 0;
  background: transparent;
  content: "";
}

.nav-item:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.nav-item.is-active {
  border-color: rgba(247, 180, 0, 0.3);
  background: rgba(247, 180, 0, 0.11);
  color: var(--gold);
}

.nav-item.is-active::before {
  background: var(--gold);
}

.sidebar-foot {
  display: flex;
  margin-top: auto;
  min-height: 30px;
  align-items: center;
  gap: 8px;
  padding: 8px 5px 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(247, 180, 0, 0.1);
}

.workspace {
  width: calc(100% - var(--sidebar-width));
  min-height: 100vh;
  margin-left: var(--sidebar-width);
  padding: 36px 38px 56px;
}

.page-header {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: start;
  gap: 24px;
}

.page-header h1 {
  margin: 0 0 8px;
  color: var(--navy);
  font: 700 36px/1.18 var(--font-display);
  letter-spacing: 0;
}

.page-header > div:first-child > p:last-child {
  max-width: 760px;
  margin: 0;
  color: var(--ink-soft);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--navy);
  font: 700 11px/1.4 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h2,
h3,
h4,
p {
  margin-top: 0;
}

h2,
h3,
h4 {
  color: var(--navy);
  letter-spacing: 0;
}

.page-actions {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 9px;
}

.button {
  display: inline-flex;
  min-width: 0;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background var(--duration-fast) var(--ease-standard),
    border-color var(--duration-fast) var(--ease-standard),
    color var(--duration-fast) var(--ease-standard),
    transform var(--duration-fast) var(--ease-standard);
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button svg,
.icon-button svg,
.button-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.button--primary {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--navy);
}

.button--primary:hover:not(:disabled) {
  border-color: #ffc52e;
  background: #ffc52e;
}

.button--secondary {
  border-color: var(--navy);
  background: var(--navy);
  color: #ffffff;
}

.button--secondary:hover:not(:disabled) {
  background: var(--navy-hover);
}

.button--ghost {
  border-color: transparent;
  background: transparent;
  color: var(--navy);
}

.button--ghost:hover:not(:disabled) {
  border-color: transparent;
  background: var(--navy-soft);
}

.button--outline {
  border-color: var(--border-strong);
  background: var(--surface);
}

.button--outline:hover:not(:disabled) {
  border-color: var(--navy-line);
  background: var(--navy-soft);
}

.button--danger {
  border-color: transparent;
  background: transparent;
  color: var(--danger);
}

.button--danger:hover:not(:disabled) {
  border-color: transparent;
  background: var(--danger-soft);
  color: var(--danger);
}

.button--danger-solid {
  border-color: transparent;
  background: var(--danger);
  color: #ffffff;
}

.button--danger-solid:hover:not(:disabled) {
  border-color: transparent;
  background: #9f2e2e;
  color: #ffffff;
}

.button--mini {
  min-height: 30px;
  padding: 0 9px;
  font-size: 11px;
}

.icon-button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition:
    background var(--duration-fast) var(--ease-standard),
    border-color var(--duration-fast) var(--ease-standard),
    color var(--duration-fast) var(--ease-standard);
}

.icon-button:hover {
  border-color: var(--border);
  background: var(--surface-hover);
  color: var(--navy);
}

.icon-button--danger:hover {
  border-color: #e5b4b4;
  background: var(--danger-soft);
  color: var(--danger);
}

.inline-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-panel);
}

.panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.panel__header h2,
.section-heading h2,
.board-heading h2 {
  margin-bottom: 5px;
  font: 700 22px/1.3 var(--font-display);
}

.panel__header p:last-child,
.section-heading p,
.board-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
}

.timeline-panel {
  margin-top: 26px;
  padding: 24px;
}

.segmented-control {
  display: flex;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--canvas-soft);
}

.segmented-control button {
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
}

.segmented-control button.is-active {
  background: var(--navy);
  color: #ffffff;
}

.timeline-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.timeline-type-filter {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.timeline-tree-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.timeline-tree-actions button {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  color: var(--navy);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  transition:
    border-color var(--duration-fast) var(--ease-standard),
    background var(--duration-fast) var(--ease-standard),
    color var(--duration-fast) var(--ease-standard);
}

.timeline-tree-actions button:hover {
  border-color: var(--navy-line);
  background: var(--navy-soft);
}

.timeline-tree-actions button svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.timeline-control__label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.track-filter-chip {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 5px;
  padding: 0 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  transition:
    border-color var(--duration-fast) var(--ease-standard),
    background var(--duration-fast) var(--ease-standard),
    color var(--duration-fast) var(--ease-standard);
}

.track-filter-chip::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-strong);
  content: "";
}

.track-filter-chip:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
  color: var(--navy);
}

.track-filter-chip.is-active {
  box-shadow: 0 0 0 2px rgba(30, 35, 70, 0.05);
}

.track-filter-chip--product.is-active {
  border-color: var(--track-product-line);
  background: var(--track-product-soft);
  color: var(--track-product);
}

.track-filter-chip--product.is-active::before {
  background: var(--track-product);
}

.track-filter-chip--development.is-active {
  border-color: var(--track-development-line);
  background: var(--track-development-soft);
  color: var(--track-development);
}

.track-filter-chip--development.is-active::before {
  background: var(--track-development);
}

.track-filter-chip--operations.is-active {
  border-color: var(--track-operations-line);
  background: var(--track-operations-soft);
  color: var(--track-operations);
}

.track-filter-chip--operations.is-active::before {
  background: var(--track-operations);
}

.timeline-scroll {
  margin-top: 22px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-color: var(--border-strong) transparent;
  scrollbar-width: thin;
}

.timeline {
  min-width: 900px;
}

.timeline-axis,
.timeline-row {
  display: grid;
  grid-template-columns: 160px minmax(720px, 1fr);
  align-items: stretch;
}

.timeline-axis {
  min-height: 34px;
  align-items: end;
  color: var(--muted);
  font: 500 10px/1 var(--font-mono);
}

.timeline-axis__label {
  padding: 0 12px 10px 0;
}

.timeline-axis__ticks {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(80px, 1fr);
  border-bottom: 1px solid var(--border);
}

.timeline-axis__ticks span {
  padding: 0 6px 10px;
}

.timeline-row {
  position: relative;
  width: 100%;
  min-height: 64px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: var(--ink);
  cursor: default;
  text-align: left;
}

.timeline-row__label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 10px 12px 10px 0;
}

.timeline-row__label strong {
  color: var(--navy);
  font: 700 11px/1.3 var(--font-mono);
}

.timeline-row__label span {
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-row__track {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 64px;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(30, 35, 70, 0.08);
}

.timeline-line--1 { left: 0; }
.timeline-line--2 { left: 14.28%; }
.timeline-line--3 { left: 28.56%; }
.timeline-line--4 { left: 42.84%; }
.timeline-line--5 { left: 57.12%; }
.timeline-line--6 { left: 71.4%; }
.timeline-line--7 { left: 85.68%; }

.timeline-bar {
  position: absolute;
  top: 21px;
  height: 18px;
  border-radius: 3px;
}

.timeline-bar--plan {
  left: var(--bar-left);
  width: var(--bar-width);
  border: 1px solid var(--navy-line);
  background: var(--navy-soft);
}

.timeline-bar__fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--fill-width, 0%);
  border-radius: 3px;
  background: linear-gradient(90deg, var(--navy) 0%, #384574 100%);
  box-shadow: 0 3px 8px rgba(30, 35, 70, 0.16);
  pointer-events: none;
  transition: width var(--duration-normal) var(--ease-standard);
}

.timeline-bar--actual {
  left: var(--actual-left);
  width: var(--actual-width);
  background: var(--navy);
}

.timeline-row__status {
  position: absolute;
  top: 4px;
  right: 4px;
}

.status-chip {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.status-chip.status-进行中 {
  border-color: #96b8a8;
  background: var(--success-soft);
  color: var(--success);
}

.status-chip.status-未开始 {
  border-color: var(--border-strong);
  background: var(--canvas-soft);
  color: var(--muted);
}

.status-chip.status-完成 {
  border-color: var(--navy-line);
  background: var(--navy-soft);
  color: var(--navy);
}

.status-chip.status-停滞 {
  border-color: #e5c26f;
  background: var(--warning-soft);
  color: #8a5a00;
}

.status-chip.status-custom {
  border-color: var(--border-strong);
  background: var(--canvas-soft);
  color: var(--ink-soft);
}

.cycle-detail {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.cycle-summary {
  padding: 22px;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--border);
}

.detail-meta--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.detail-meta > div,
.header-meta > div {
  min-width: 0;
  padding: 12px;
  background: var(--surface);
}

.detail-meta small,
.header-meta small {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10px;
}

.detail-meta strong,
.header-meta strong {
  display: block;
  overflow: hidden;
  color: var(--navy);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-meta {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 120px 1fr 1fr 1.4fr;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--border);
}

.work-item-facts,
.record-facts {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px;
  padding: 4px 2px 0;
}

.work-item-facts p,
.record-facts p {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 4px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
}

.work-item-facts strong,
.record-facts strong {
  flex: 0 0 auto;
  color: var(--navy);
  font-size: 14px;
}

.work-item-facts span,
.record-facts span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.work-item-fact--description span,
.record-fact--description span {
  white-space: pre-wrap;
}

.section-heading,
.board-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 3px 2px;
}

.section-heading h2,
.board-heading h2 {
  font-size: 23px;
}

.module-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.module-card {
  min-width: 0;
  padding: 18px;
}

.module-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.module-card__header > div:first-child,
.title-stack {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.module-card__header strong {
  display: block;
  color: var(--navy);
  font-size: 15px;
}

.module-card__header small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font: 500 10px/1.4 var(--font-mono);
}

.module-index,
.round-number {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: #ffffff;
  font: 700 10px/1 var(--font-mono);
}

.module-card__summary {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  gap: 1px 6px;
  flex: 0 0 auto;
  text-align: right;
}

.module-card__summary strong {
  color: var(--navy);
  font: 700 18px/1 var(--font-display);
}

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

.module-card__timeline,
.module-time-strip {
  display: block;
  min-height: 38px;
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--canvas-soft);
}

.module-card__timeline .timeline-row__track,
.module-time-strip .timeline-row__track {
  min-height: 36px;
}

.module-card__timeline .timeline-bar,
.module-time-strip .timeline-bar {
  top: 50%;
  height: 16px;
  transform: translateY(-50%);
}

.flow-coverage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 14px;
}

.flow-slot {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-height: 48px;
  padding: 7px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--canvas-soft);
}

.flow-slot > span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 3px;
  background: var(--navy-soft);
  color: var(--navy);
  font: 700 10px/1 var(--font-mono);
}

.flow-slot strong {
  display: block;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flow-slot small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.flow-slot.is-created {
  border-color: var(--navy-line);
  background: var(--surface);
}

.flow-slot.is-created.status-完成 {
  border-color: #96b8a8;
  background: var(--success-soft);
}

.flow-slot.is-created.status-进行中 {
  border-color: var(--gold-line);
  background: var(--gold-soft);
}

.module-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 11px;
}

.text-link {
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover {
  color: var(--gold-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.module-board {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.board-heading {
  padding: 2px;
}

.board-heading__meta,
.board-count {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}

.board-heading__meta span,
.board-count {
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}

.module-admin-card,
.round-card {
  min-width: 0;
  padding: 20px;
}

.module-admin-card__header,
.round-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.title-stack h3,
.round-card__header h3 {
  margin: 0;
  font: 700 17px/1.3 var(--font-display);
}

.title-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.title-stack p,
.round-card__header p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.time-pairs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--border);
}

.time-pairs > div {
  padding: 8px 10px;
  background: var(--canvas-soft);
}

.time-pairs small {
  display: block;
  color: var(--muted);
  font-size: 9px;
}

.time-pairs strong {
  display: block;
  margin-top: 2px;
  color: var(--navy);
  font: 600 10px/1.4 var(--font-mono);
}

.table-scroll {
  margin-top: 14px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.data-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  background: var(--surface);
}

.data-table th,
.data-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--ink-soft);
  font-size: 11px;
  text-align: left;
  vertical-align: middle;
}

.data-table th {
  background: var(--navy-soft);
  color: var(--navy);
  font-size: 10px;
  font-weight: 700;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.data-table td:first-child {
  min-width: 160px;
}

.data-table td small {
  display: block;
  max-width: 220px;
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.module-tree-table {
  min-width: 1500px;
}

.module-tree-table th:first-child,
.module-tree-table td:first-child {
  width: 250px;
}

.module-tree__title > div:last-child,
.module-tree__indent > div:last-child {
  min-width: 0;
  max-width: 160px;
}

.module-tree__title strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.module-tree__indent .table-link {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.module-tree-row--module > td {
  background: var(--navy-soft);
  border-bottom-color: var(--border-strong);
}

.module-tree-row--module .module-index {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: var(--navy);
  color: var(--surface);
  font-size: 11px;
}

.module-tree__title,
.module-tree__indent {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tree-toggle {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
}

.tree-toggle:hover {
  background: rgba(30, 35, 70, 0.08);
  color: var(--gold-hover);
}

.tree-toggle svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transition: transform 150ms ease;
}

.tree-toggle[aria-expanded="true"] svg {
  transform: rotate(90deg);
}

.tree-toggle--placeholder {
  pointer-events: none;
}

.module-tree__title strong {
  display: block;
  color: var(--navy);
  font-size: 14px;
}

.module-tree__summary {
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
}

.module-tree-row--work > td:first-child {
  position: relative;
}

.module-tree__indent {
  gap: 6px;
  padding-left: 22px;
}

.module-tree__branch {
  position: relative;
  width: 18px;
  height: 22px;
  flex: 0 0 18px;
}

.module-tree__branch::before {
  content: "";
  position: absolute;
  top: -11px;
  bottom: 50%;
  left: 5px;
  border-left: 1px solid var(--border-strong);
}

.module-tree__branch::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 5px;
  width: 13px;
  border-top: 1px solid var(--border-strong);
}

.module-tree-row--flow > td {
  background:
    linear-gradient(90deg, rgba(247, 180, 0, 0.035), transparent 28%),
    var(--surface);
}

.module-tree-row--flow > td:first-child {
  position: relative;
}

.module-tree__flow-indent {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  padding-left: 44px;
}

.module-tree__flow-branch {
  position: relative;
  width: 18px;
  height: 22px;
  flex: 0 0 18px;
}

.module-tree__flow-branch::before {
  position: absolute;
  top: -11px;
  bottom: 50%;
  left: 5px;
  border-left: 1px solid var(--border-strong);
  content: "";
}

.module-tree__flow-branch::after {
  position: absolute;
  top: 50%;
  left: 5px;
  width: 13px;
  border-top: 1px solid var(--border-strong);
  content: "";
}

.table-link--flow {
  min-width: 0;
  max-width: 160px;
  overflow: hidden;
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.module-tree-row--flow .status-chip {
  min-height: 20px;
  padding: 0 6px;
  font-size: 9px;
}

.module-tree-row--flow td:nth-child(6) {
  color: var(--muted);
  font: 600 10px/1.3 var(--font-mono);
}

.module-tree-row--empty > td {
  padding-left: 74px;
  background: var(--surface);
}

.module-tree__empty {
  color: var(--muted);
  font-size: 11px;
}

.table-link {
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.table-link:hover {
  color: var(--gold-hover);
}

.table-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px;
}

.data-table td:last-child {
  min-width: 300px;
}

.module-tree-table td:last-child {
  min-width: 360px;
}

.module-tree__metric {
  color: var(--navy);
  font: 700 12px/1.3 var(--font-mono);
}

.module-tree-table th,
.module-tree-table td {
  font-size: 12px;
}

.module-tree-table th {
  font-size: 11px;
}

.module-tree-table td small {
  font-size: 10px;
}

.module-tree-table .status-chip {
  min-height: 24px;
  padding: 0 8px;
  font-size: 11px;
}

.module-tree-table .button--mini {
  font-size: 12px;
}

.module-tree-table .table-link--flow {
  font-size: 12px;
}

.table-empty {
  margin-top: 14px;
  padding: 18px;
  border: 1px dashed var(--border-strong);
  border-radius: 6px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.select-field {
  display: grid;
  gap: 4px;
}

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

.select-field select {
  min-height: 40px;
  min-width: 220px;
  padding: 0 11px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--navy);
}
.function-tree-panel .function-tree__header {
  align-items: center;
  gap: 10px;
}

.function-tree-panel .function-tree__search {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 220px;
}

.function-search-field__control {
  display: flex;
  min-height: 40px;
  min-width: 240px;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--muted);
  transition:
    border-color var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard);
}

.function-search-field__control:focus-within {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(30, 35, 70, 0.08);
}

.function-search-field__control input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
}

.function-search-field__control input:focus-visible {
  box-shadow: none;
}

.function-search-field__control input::placeholder {
  color: var(--muted);
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 11px;
}

.breadcrumb a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}

.round-board {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.round-card__header > div:first-child {
  display: flex;
  align-items: center;
  gap: 12px;
}

.round-progress {
  color: var(--navy);
  font: 700 10px/1 var(--font-mono);
}

.flow-matrix {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.round-flow-empty {
  margin-top: 18px;
  padding: 18px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  background: var(--canvas-soft);
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.flow-matrix-card {
  min-width: 0;
  min-height: 220px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.flow-matrix-card.is-empty {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-content: center;
  gap: 9px;
  border-style: dashed;
  background: var(--canvas-soft);
}

.flow-matrix-card.is-empty h4 {
  margin: 2px 0 4px;
  font-size: 12px;
}

.flow-matrix-card.is-empty p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.flow-matrix-card__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
}

.flow-matrix-card h4 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font: 700 17px/1.35 var(--font-display);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flow-matrix-card__status {
  flex: 0 0 auto;
}

.flow-matrix-card .status-chip {
  min-height: 26px;
  padding: 0 9px;
  font-size: 11px;
}

.flow-times {
  display: grid;
  gap: 5px;
  color: var(--navy-light);
  font: 500 11px/1.5 var(--font-mono);
}

.flow-metrics {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 14px;
  margin-top: 12px;
  color: var(--navy-light);
  font-size: 12px;
}

.flow-metrics strong {
  color: var(--navy-light);
  font: 700 12px/1.3 var(--font-mono);
}

.flow-matrix-card > p {
  min-height: 38px;
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.6;
}

.flow-card-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.flow-matrix-card.status-完成 {
  border-top: 3px solid var(--success);
}

.flow-matrix-card.status-进行中 {
  border-top: 3px solid var(--gold);
}

.flow-matrix-card.status-未开始 {
  border-top: 3px solid var(--navy-line);
}

.flow-detail-grid {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.detail-panel {
  min-width: 0;
  padding: 20px;
}

.detail-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.detail-panel__header h2 {
  margin-bottom: 4px;
  font: 700 20px/1.3 var(--font-display);
}

.detail-panel__header p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
}

.detail-panel .data-table th,
.detail-panel .data-table td {
  font-size: 12px;
}

.detail-panel .data-table th {
  font-size: 11px;
}

.detail-panel .data-table td small {
  font-size: 11px;
}

.confirmation-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.confirmation-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--canvas-soft);
}

.confirmation-item > div:first-child {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.confirmation-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border: 2px solid var(--navy);
  border-radius: 50%;
  background: var(--surface);
}

.confirmation-item strong {
  color: var(--navy);
  font-size: 14px;
}

.confirmation-item p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.confirmation-time {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 8px;
}

.confirmation-time small {
  color: var(--muted);
  font-size: 10px;
}

.confirmation-time strong {
  font: 600 11px/1.4 var(--font-mono);
}

.empty-state {
  display: grid;
  min-height: 190px;
  place-items: center;
  padding: 28px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--muted);
  text-align: center;
}

.empty-state strong {
  display: block;
  margin-bottom: 6px;
  color: var(--navy);
}

.empty-state__action {
  display: block;
  margin: 14px auto 0;
}

.dialog {
  width: min(700px, calc(100% - 28px));
  max-height: min(88vh, 880px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-float);
}

.dialog::backdrop {
  background: rgba(21, 23, 29, 0.18);
  backdrop-filter: none;
}

.dialog__surface {
  display: flex;
  max-height: min(88vh, 880px);
  flex-direction: column;
}

.dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--navy-soft);
}

.dialog__header h2 {
  margin: 0;
  font: 700 22px/1.2 var(--font-display);
}

.dialog__header p:last-child {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.dialog__body {
  overflow-y: auto;
  padding: 22px;
}

.dialog__footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 15px 22px;
  border-top: 1px solid var(--border);
  background: var(--canvas-soft);
}

.dialog--confirm {
  width: min(460px, calc(100% - 28px));
}

.confirm-dialog__body {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 16px;
  padding: 26px 26px 22px;
}

.confirm-dialog__icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  background: var(--danger-soft);
  color: var(--danger);
}

.confirm-dialog__icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.confirm-dialog__copy h2 {
  margin: 1px 0 8px;
  font: 700 21px/1.25 var(--font-display);
}

.confirm-dialog__copy p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.7;
}

.confirm-dialog__copy small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.field {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.field--wide {
  grid-column: 1 / -1;
}

.field > span {
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 40px;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
}

.field textarea {
  min-height: 82px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(30, 35, 70, 0.08);
}

.date-range-field {
  display: block;
}

.date-range-field input[type="text"] {
  width: 100%;
  cursor: pointer;
}

.date-range-field input[type="text"].is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(191, 63, 63, 0.1);
}

.dialog > .flatpickr-calendar {
  position: fixed;
  z-index: 100000;
}

.flatpickr-calendar {
  border: 1px solid var(--navy-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-float);
  font-family: inherit;
}

.flatpickr-calendar.arrowTop::before {
  border-bottom-color: var(--navy-line);
}

.flatpickr-calendar.arrowTop::after {
  border-bottom-color: var(--surface);
}

.flatpickr-calendar.arrowBottom::before {
  border-top-color: var(--navy-line);
}

.flatpickr-calendar.arrowBottom::after {
  border-top-color: var(--surface);
}

.flatpickr-months .flatpickr-month,
.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
  color: var(--navy);
  fill: var(--navy);
}

.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
  color: var(--gold-hover);
}

.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg {
  fill: var(--gold-hover);
}

.flatpickr-day.inRange,
.flatpickr-day.prevMonthDay.inRange,
.flatpickr-day.nextMonthDay.inRange,
.flatpickr-day.today.inRange {
  border-color: var(--navy-soft);
  background: var(--navy-soft);
  box-shadow: -5px 0 0 var(--navy-soft), 5px 0 0 var(--navy-soft);
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover {
  border-color: var(--navy);
  background: var(--navy);
  color: #ffffff;
}

.flatpickr-day.today {
  border-color: var(--gold);
}

.flatpickr-day.today:hover,
.flatpickr-day.today:focus {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--navy);
}

.toast-region {
  position: fixed;
  inset: 22px 22px auto auto;
  z-index: 2147483647;
  display: grid;
  width: min(360px, calc(100% - 44px));
  height: auto;
  max-width: calc(100% - 44px);
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  gap: 10px;
  overflow: visible;
  pointer-events: none;
}

.toast-region[popover]:not(:popover-open) {
  display: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid var(--navy);
  border-radius: var(--radius-md);
  background: var(--navy);
  box-shadow: var(--shadow-float);
  color: #ffffff;
  animation: toast-in 220ms var(--ease-standard) both;
  pointer-events: auto;
}

.toast svg {
  width: 17px;
  height: 17px;
  margin-top: 1px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.8;
}

.toast--danger {
  border-color: var(--danger);
  background: var(--danger);
}

.toast--danger svg {
  stroke: #ffffff;
}

.toast strong {
  display: block;
  font-size: 12px;
}

.toast p {
  margin: 3px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1180px) {
  .module-card-grid,
  .flow-matrix {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-meta--four,
  .header-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 880px) {
  :root {
    --sidebar-width: 100%;
  }

  .sidebar {
    position: sticky;
    inset: 0;
    width: 100%;
    height: auto;
    padding: 14px 18px 12px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .brand {
    padding: 0;
  }

  .primary-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    margin-top: 14px;
  }

  .nav-item {
    min-height: 40px;
    justify-content: center;
    padding: 0 7px;
    font-size: 11px;
  }

  .nav-item::before,
  .sidebar-foot {
    display: none;
  }

  .workspace {
    width: 100%;
    margin-left: 0;
    padding: 26px 22px 44px;
  }

  .page-header {
    grid-template-columns: 1fr;
  }

  .page-actions {
    justify-content: flex-start;
  }

  .module-admin-card__header,
  .round-card__header,
  .detail-panel__header {
    flex-direction: column;
  }

  .module-admin-card__header .inline-actions,
  .round-card__header .inline-actions,
  .detail-panel__header .button {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .workspace {
    padding: 22px 14px 38px;
  }

  .brand small {
    display: none;
  }

  .primary-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .page-actions .button,
  .page-actions .select-field {
    width: 100%;
  }

  .select-field select {
    width: 100%;
    min-width: 0;
  }

  .timeline-panel,
  .cycle-summary,
  .module-admin-card,
  .round-card,
  .detail-panel {
    padding: 16px 12px;
  }

  .panel__header,
  .section-heading,
  .board-heading {
    display: block;
  }

  .panel__header .segmented-control,
  .section-heading .button,
  .board-heading__meta,
  .board-count {
    margin-top: 14px;
    justify-content: flex-start;
  }

  .timeline {
    min-width: 900px;
  }

  .module-card-grid,
  .flow-matrix {
    grid-template-columns: 1fr;
  }

  .flow-coverage,
  .detail-meta--four,
  .header-meta,
  .time-pairs {
    grid-template-columns: 1fr;
  }

  .confirmation-item {
    grid-template-columns: 1fr;
  }

  .dialog__header,
  .dialog__body,
  .dialog__footer {
    padding-right: 15px;
    padding-left: 15px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .field--wide {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* 总览时间线 */
.page-header {
  align-items: center;
  margin-bottom: 24px;
}

.page-title h1 {
  margin: 0;
  font-size: 38px;
}

.timeline-panel {
  position: relative;
  overflow: hidden;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(30, 35, 70, 0.045), transparent 34%),
    var(--surface);
}

.timeline-panel::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--navy);
  content: "";
}

.timeline-heading {
  display: grid;
  gap: 6px;
}

.timeline-heading h2 {
  margin: 0;
}

.timeline-window {
  color: var(--navy);
  font: 600 12px/1.4 var(--font-mono);
}

.timeline-scroll {
  height: 520px;
  min-height: 360px;
  max-height: calc(100vh - 240px);
  margin-top: 18px;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  scrollbar-color: var(--border-strong) transparent;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}

.timeline {
  min-width: var(--timeline-min-width, 1040px);
}

.timeline.timeline--empty {
  width: 100%;
  min-width: 100%;
  height: 100%;
}

.timeline.timeline--empty .empty-state {
  min-height: 100%;
  border: 0;
}

.timeline-axis,
.timeline-row {
  grid-template-columns: 300px minmax(780px, 1fr);
}

.timeline-axis {
  position: sticky;
  top: 0;
  z-index: 9;
  min-height: 44px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-soft);
}

.timeline-axis__label {
  position: sticky;
  left: 0;
  z-index: 10;
  /* 轴行是 align-items: end，这里显式铺满整行，避免左侧顶部露出空隙 */
  align-self: stretch;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  padding: 0 18px 12px 20px;
  background: var(--surface);
  color: var(--navy);
  font: 700 11px/1.4 var(--font-body);
}

.timeline-axis__label-title {
  flex: 0 0 auto;
  white-space: nowrap;
}

.timeline-axis__label .timeline-tree-actions {
  flex: 0 0 auto;
}

.timeline-axis__label .timeline-tree-actions button {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
}

.timeline-axis__ticks {
  position: relative;
  align-self: stretch;
  align-content: end;
  grid-auto-flow: initial;
  grid-template-columns: repeat(var(--tick-count, 7), minmax(0, 1fr));
  border-bottom-color: var(--navy-line);
}

.timeline-axis__ticks > span:not(.timeline-today) {
  padding: 0 10px 12px;
  color: var(--navy);
  font: 600 11px/1.4 var(--font-mono);
}

.timeline-row {
  --timeline-row-height: 64px;
  --row-track-color: var(--navy);
  --row-track-soft: var(--surface-hover);
  --row-track-line: var(--border);
  min-height: 64px;
  border-bottom-color: rgba(30, 35, 70, 0.1);
  animation: timeline-row-in 320ms var(--ease-standard) both;
  animation-delay: calc(var(--row-index, 0) * 36ms);
  transition:
    background var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard);
}

/* 首屏渲染后不再重播逐行入场动画，避免展开收起时出现整屏刷新感。 */
.is-timeline-settled .timeline-row {
  animation: none;
}

.timeline-row--track-product {
  --row-track-color: var(--track-product);
  --row-track-soft: var(--track-product-soft);
  --row-track-line: var(--track-product-line);
}

.timeline-row--track-development {
  --row-track-color: var(--track-development);
  --row-track-soft: var(--track-development-soft);
  --row-track-line: var(--track-development-line);
}

.timeline-row--track-operations {
  --row-track-color: var(--track-operations);
  --row-track-soft: var(--track-operations-soft);
  --row-track-line: var(--track-operations-line);
}

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

.timeline-row:hover {
  background: rgba(30, 35, 70, 0.02);
}

.timeline-row.is-selected {
  background: rgba(247, 180, 0, 0.025);
}

/* 从总览跳入时标记目标阶段行，便于快速定位 */
.timeline-row.is-focus-target {
  background: var(--navy-soft);
}

.timeline-row.is-focus-target > .timeline-row__label {
  box-shadow: inset 3px 0 0 var(--navy);
}

.timeline-row:focus-visible {
  outline: 2px solid var(--navy-line);
  outline-offset: -2px;
}

.timeline-row__label {
  position: sticky;
  left: 0;
  z-index: 8;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
  min-height: var(--timeline-row-height);
  margin: 0;
  padding: 6px 10px 6px calc(12px + var(--tree-depth, 0) * 18px);
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: var(--surface);
  box-shadow: none;
  cursor: pointer;
  text-align: left;
  transition:
    background var(--duration-fast) var(--ease-standard),
    color var(--duration-fast) var(--ease-standard);
}

.timeline-row__label:hover {
  background: var(--canvas-soft);
}


.timeline-row--parent > .timeline-row__label {
  box-shadow: inset 3px 0 0 var(--row-track-color);
}

.timeline-row--child > .timeline-row__label {
  padding-left: 12px;
  background: linear-gradient(90deg, #f8f9fd 0%, var(--surface) 44%);
}

.timeline-row--child > .timeline-row__label .timeline-row__code {
  background: rgba(30, 35, 70, 0.06);
  color: var(--navy-light);
}

.timeline-row__content,
.timeline-row__title,
.timeline-row__meta {
  min-width: 0;
}

.timeline-row__content {
  display: grid;
  grid-template-rows: 20px 18px;
  gap: 2px;
}

.timeline-row__title {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.timeline-row__toggle-slot {
  display: flex;
  width: 22px;
  min-width: 22px;
  align-self: stretch;
  align-items: center;
  justify-content: center;
}

.timeline-row__toggle {
  margin-left: 0;
  flex: 0 0 22px;
}

.timeline-row__toggle .tree-toggle__chevron {
  border-color: currentColor;
}

.timeline-row__toggle-placeholder {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}

.timeline-row__meta {
  display: grid;
  justify-items: end;
  gap: 4px;
  overflow: hidden;
}

.timeline-row__meta .timeline-track-chip {
  display: inline-flex;
  min-height: 20px;
  align-items: center;
  gap: 3px;
  padding: 0 7px;
  border: 0;
  border-radius: 999px;
  justify-content: center;
  min-width: 62px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.timeline-row__meta .timeline-track-chip::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.timeline-row__meta .timeline-track-chip--product {
  background: var(--track-product-soft);
  color: var(--track-product);
}

.timeline-row__meta .timeline-track-chip--development {
  background: var(--track-development-soft);
  color: var(--track-development);
}

.timeline-row__meta .timeline-track-chip--operations {
  background: var(--track-operations-soft);
  color: var(--track-operations);
}

.timeline-row__label .timeline-row__code {
  width: fit-content;
  min-width: 48px;
  padding: 1px 7px;
  border-radius: 4px;
  background: var(--navy-soft);
  color: var(--navy);
  font: 700 11px/18px var(--font-mono);
  text-align: center;
}

.timeline-row__title strong {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  color: var(--navy);
  font: 700 14px/18px var(--font-body);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-row__date {
  overflow: hidden;
  color: var(--muted);
  font: 500 11px/16px var(--font-mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-row__label .status-chip {
  min-height: 20px;
  min-width: 52px;
  padding: 0 7px;
  border: 0;
  border-radius: 4px;
  justify-content: center;
  justify-self: end;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.timeline-row__label .status-chip.status-进行中 {
  background: #cde9dc;
  color: #1f5d43;
}

.timeline-row__label .status-chip.status-未开始 {
  background: #e0e3ea;
  color: #535b69;
}

.timeline-row__label .status-chip.status-完成 {
  background: #d9def0;
  color: var(--navy);
}

.timeline-row__label .status-chip.status-停滞 {
  background: #f3d99d;
  color: #7d4f00;
}

body[data-page="cycles"] {
  height: 100vh;
  overflow: hidden;
}

body[data-page="cycles"] .workspace {
  display: flex;
  height: 100vh;
  min-height: 0;
  flex-direction: column;
  padding-bottom: 24px;
}

body[data-page="cycles"] .page-header {
  flex: 0 0 auto;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 18px;
}

body[data-page="cycles"] .page-title h1,
body[data-page="cycle-detail"] .page-title h1,
body[data-page="modules"] .page-title h1 {
  white-space: nowrap;
}

body[data-page="cycle-detail"] .page-header,
body[data-page="modules"] .page-header {
  grid-template-columns: minmax(0, 1fr) auto;
}

body[data-page="cycles"] .timeline-panel {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
  margin-top: 0;
}

body[data-page="cycles"] .timeline-panel > .panel__header {
  flex: 0 0 auto;
}

body[data-page="cycles"] .timeline-scroll {
  height: auto;
  min-height: 240px;
  max-height: none;
  flex: 1 1 auto;
  margin-top: 16px;
}

body[data-page="cycles"] .cycle-detail-panel {
  max-height: 40vh;
  flex: 0 0 auto;
  overflow: auto;
}

/* 阶段排期页：点击只做展开收起，行本身不再跳转详情。 */
body[data-page="cycles"] .timeline-row > .timeline-row__label {
  cursor: default;
}

body[data-page="cycles"] .timeline-row--parent > .timeline-row__label {
  cursor: pointer;
}

.timeline-row__track {
  min-height: var(--timeline-row-height);
  background:
    linear-gradient(90deg, rgba(30, 35, 70, 0.025), rgba(30, 35, 70, 0.02)),
    var(--surface);
}

.timeline-line {
  background: rgba(30, 35, 70, 0.08);
}

.timeline-bar {
  top: 50%;
  height: 17px;
  border-radius: 4px;
  transform: translateY(-50%);
  transition:
    left var(--duration-normal) var(--ease-standard),
    width var(--duration-normal) var(--ease-standard),
    filter var(--duration-fast) var(--ease-standard);
}

.timeline-bar--plan {
  border: 1px solid #c7ccdc;
  background:
    repeating-linear-gradient(135deg, transparent 0 5px, rgba(30, 35, 70, 0.08) 5px 7px, transparent 7px 12px);
}

.timeline-bar--track-product {
  --track-color: var(--track-product);
  --track-color-end: var(--track-product-end);
  --track-line: var(--track-product-line);
  --track-soft: var(--track-product-soft);
  --track-stripe: var(--track-product-stripe);
}

.timeline-bar--track-development {
  --track-color: var(--track-development);
  --track-color-end: var(--track-development-end);
  --track-line: var(--track-development-line);
  --track-soft: var(--track-development-soft);
  --track-stripe: var(--track-development-stripe);
}

.timeline-bar--track-operations {
  --track-color: var(--track-operations);
  --track-color-end: var(--track-operations-end);
  --track-line: var(--track-operations-line);
  --track-soft: var(--track-operations-soft);
  --track-stripe: var(--track-operations-stripe);
}

.timeline-bar--track-product.timeline-bar--plan,
.timeline-bar--track-development.timeline-bar--plan,
.timeline-bar--track-operations.timeline-bar--plan {
  /* 与示例保持一致：主色描边 + 加深斜纹 + 浅色底 */
  border-color: var(--track-color);
  background:
    repeating-linear-gradient(135deg, transparent 0 5px, var(--track-stripe) 5px 7px, transparent 7px 12px),
    var(--track-soft);
}

.timeline-bar--actual {
  z-index: 3;
  height: 9px;
  border: 0;
  border-radius: 3px;
  background: var(--track-color, var(--navy));
  box-shadow: 0 2px 6px rgba(30, 35, 70, 0.2);
}

.timeline-row--has-actual .timeline-bar--plan {
  top: calc(50% - 6px);
}

.timeline-row--has-actual .timeline-bar--actual {
  top: calc(50% + 9px);
}

.timeline-overflow-marker {
  position: absolute;
  top: 50%;
  z-index: 6;
  width: 10px;
  height: 10px;
  border: 2px solid var(--surface);
  background: var(--danger);
  box-shadow: 0 0 0 2px rgba(185, 56, 56, 0.2);
  pointer-events: none;
}

.timeline-overflow-marker--start {
  left: var(--bar-left);
  transform: translateY(-50%);
}

.timeline-overflow-marker--end {
  left: calc(var(--bar-left) + var(--bar-width));
  transform: translate(-100%, -50%);
}

.timeline-row:hover .timeline-bar--actual {
  filter: saturate(1.15) brightness(1.06);
}

.timeline-today {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 4;
  width: 1px;
  /* 虚线表示今天位置，避免与计划条边缘混在一起 */
  background: repeating-linear-gradient(180deg, var(--today-orange) 0 4px, transparent 4px 8px);
  pointer-events: none;
}

.timeline-axis__ticks .timeline-today {
  padding: 0;
  color: transparent;
  font: inherit;
}

.timeline-today--labeled::after {
  position: absolute;
  /* 停在轴行内，避免徽标越过时间轴顶边被 .timeline-scroll 裁切 */
  top: 1px;
  left: 50%;
  padding: 1px 5px;
  border: 1px solid var(--today-orange-line);
  border-radius: 3px;
  background: var(--today-orange-soft);
  color: var(--today-orange);
  content: "今天";
  font: 700 9px/1.5 var(--font-body);
  transform: translateX(-50%);
  white-space: nowrap;
}

.cycle-summary,
.section-heading {
  margin-top: 2px;
}

.timeline-tooltip {
  position: fixed;
  z-index: 1000;
  display: grid;
  width: max-content;
  min-width: 260px;
  max-width: 380px;
  gap: 8px;
  padding: 13px 14px;
  border: 1px solid var(--navy-line);
  border-radius: 6px;
  background: var(--navy);
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(30, 35, 70, 0.24);
  pointer-events: none;
}

.timeline-tooltip[hidden] {
  display: none;
}

.timeline-tooltip strong {
  overflow: hidden;
  font-size: 12px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-tooltip > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
}

.timeline-tooltip small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
}

.timeline-tooltip b {
  color: var(--gold);
  font: 700 11px/1.4 var(--font-mono);
}

.timeline-tooltip__condition {
  align-items: start !important;
  flex-direction: column;
  gap: 3px !important;
}

.timeline-tooltip__condition b {
  display: -webkit-box;
  overflow: hidden;
  width: 100%;
  color: rgba(255, 255, 255, 0.92);
  font: 500 11px/1.55 var(--font-body);
  text-align: left;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.cycle-detail-panel {
  margin-top: 18px;
  padding: 22px 24px 18px;
}

.cycle-detail-panel[hidden] {
  display: none;
}

.cycle-detail__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.cycle-detail__head h2 {
  margin: 0;
  color: var(--navy);
  font-size: 20px;
}

.cycle-detail__head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.cycle-detail__eyebrow {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  margin-bottom: 8px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--navy-soft);
  color: var(--navy);
  font-size: 10px;
  font-weight: 700;
}

.cycle-detail__eyebrow--product {
  background: var(--track-product-soft);
  color: var(--track-product);
}

.cycle-detail__eyebrow--development {
  background: var(--track-development-soft);
  color: var(--track-development);
}

.cycle-detail__eyebrow--operations {
  background: var(--track-operations-soft);
  color: var(--track-operations);
}

.cycle-detail__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 36px;
  margin: 0;
}

.cycle-detail__field {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}

.cycle-detail__field dt {
  color: var(--navy-light);
  font-size: 13px;
  font-weight: 600;
}

.cycle-detail__field dt::after {
  content: "：";
}

.cycle-detail__field dd {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.65;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.section-heading {
  padding-top: 12px;
}

.overview-tree {
  min-width: 0;
  overflow-x: auto;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-panel);
}

.overview-tree__head,
.overview-tree__row {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) 84px 98px 98px minmax(420px, 2.2fr);
  min-width: 920px;
}

.overview-tree__head {
  border-bottom: 1px solid var(--border);
  background: var(--navy-soft);
  color: var(--navy);
}

.overview-tree__head > * {
  padding: 11px 14px;
  border-right: 1px solid var(--border);
  font-size: 10px;
  font-weight: 700;
}

.overview-tree__head > *:last-child {
  border-right: 0;
}

.overview-tree__head > .overview-tree__axis {
  position: relative;
  min-height: 40px;
  padding: 0;
}

.overview-tree__axis > span {
  position: absolute;
  top: 50%;
  color: var(--navy);
  font: 600 10px/1.2 var(--font-mono);
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.overview-tree__axis > span.is-start {
  transform: translate(0, -50%);
}

.overview-tree__axis > span.is-end {
  transform: translate(-100%, -50%);
}

.overview-tree__row {
  position: relative;
  min-height: 62px;
  border-bottom: 1px solid var(--border);
}

.overview-tree__row:last-child {
  border-bottom: 0;
}

.overview-tree__row--module {
  background: var(--navy-soft);
}

.overview-tree__row--module > div {
  border-right-color: var(--navy-line);
}

.overview-tree__row--work {
  min-height: 56px;
  background: var(--surface);
}

.overview-tree__row--work:hover {
  background: var(--surface-hover);
}

.overview-tree__row--node {
  min-height: 48px;
  background: #f7faff;
}

.overview-tree__row--node:hover {
  background: #f0f5fc;
}

.overview-tree__row > div {
  display: flex;
  min-width: 0;
  align-items: center;
  padding: 9px 14px;
  border-right: 1px solid var(--border);
}

.overview-tree__row > div:last-child {
  border-right: 0;
}

.overview-tree__name > span:last-child {
  min-width: 0;
  overflow: hidden;
}

.overview-tree__name {
  overflow: hidden;
}

.overview-tree__toggle {
  display: grid;
  width: 100%;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.overview-tree__toggle:disabled {
  cursor: default;
}

.overview-tree__toggle strong {
  display: block;
  overflow: hidden;
  color: var(--navy);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overview-tree__toggle small,
.overview-tree__name small {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overview-tree__chevron {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--navy);
  border-bottom: 1.5px solid var(--navy);
  transform: rotate(-45deg);
  transition: transform var(--duration-fast) var(--ease-standard);
}

.overview-tree__toggle[aria-expanded="true"] .overview-tree__chevron {
  transform: translateY(-2px) rotate(45deg);
}

.overview-tree__toggle:disabled .overview-tree__chevron {
  border-color: var(--muted);
  opacity: 0.45;
}

.overview-tree__row--work .overview-tree__name {
  padding-left: 38px;
}

.overview-tree__row--node .overview-tree__name {
  padding-left: 60px;
}

.overview-tree__branch {
  width: 16px;
  height: 14px;
  flex: 0 0 16px;
  margin-right: 8px;
  border-bottom: 1px solid var(--navy-line);
  border-left: 1px solid var(--navy-line);
}

.overview-tree__name a {
  display: block;
  overflow: hidden;
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overview-tree__name a:hover {
  color: var(--gold-hover);
}

.overview-tree__status {
  justify-content: flex-start;
}

.overview-tree__date {
  color: var(--ink-soft);
  font: 600 11px/1.4 var(--font-mono);
}

.overview-tree__schedule {
  padding: 0 !important;
  overflow: hidden;
}

.overview-tree__track.timeline-row__track {
  width: 100%;
  min-height: 60px;
  background:
    linear-gradient(90deg, rgba(247, 180, 0, 0.025), rgba(30, 35, 70, 0.02)),
    var(--surface);
}

.overview-tree__row--work .overview-tree__track.timeline-row__track {
  min-height: 54px;
}

.overview-tree__row--node .overview-tree__track.timeline-row__track {
  min-height: 46px;
  background:
    linear-gradient(90deg, rgba(247, 180, 0, 0.045), rgba(30, 35, 70, 0.018)),
    #fbfcff;
}

.overview-tree__track .timeline-bar {
  top: 50%;
  height: 16px;
  transform: translateY(-50%);
}

.overview-tree__row--node .overview-tree__name {
  gap: 8px;
}

.overview-tree__row--node .overview-tree__name strong {
  display: block;
  overflow: hidden;
  color: var(--navy);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overview-tree__node-branch {
  width: 16px;
  height: 14px;
  flex: 0 0 16px;
  border-bottom: 1px solid var(--navy-line);
  border-left: 1px solid var(--navy-line);
}

.overview-tree__node-marker {
  position: absolute;
  top: 50%;
  left: clamp(38px, var(--node-left), calc(100% - 38px));
  z-index: 2;
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  border: 1px solid var(--gold-line);
  border-radius: 4px;
  background: #fff8e5;
  color: var(--navy);
  font-size: 10px;
  font-weight: 700;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(30, 35, 70, 0.08);
}

.overview-tree__node-diamond {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  background: var(--gold);
  transform: rotate(45deg);
}

@keyframes timeline-row-in {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.function-map {
  display: grid;
  grid-template-columns: minmax(300px, 340px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-top: 24px;
}

.function-tree-panel,
.function-detail-panel {
  min-width: 0;
}

.function-tree-panel {
  position: sticky;
  top: 18px;
  display: flex;
  max-height: calc(100vh - 36px);
  flex-direction: column;
  overflow: hidden;
}

.function-tree__header,
.function-detail__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid var(--border);
}

.function-tree__header h2,
.function-detail__header h2 {
  margin: 4px 0 4px;
  font: 700 21px/1.25 var(--font-display);
}

.function-tree__header p,
.function-detail__header p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.function-tree__body {
  min-height: 220px;
  overflow: auto;
  padding: 6px 8px 10px;
}

.function-tree-domain + .function-tree-domain {
  margin-top: 2px;
}

.function-tree-domain__head {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px;
  min-height: 42px;
  padding: 4px 2px;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
}

.function-tree-domain__name {
  min-width: 0;
  padding: 4px 2px;
  border: 0;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  text-align: left;
}

.function-tree-domain__name strong,
.function-tree-module__main strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.function-tree-domain__name small,
.function-tree-module__main small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.function-tree-domain__actions {
  display: flex;
  align-items: center;
  gap: 1px;
  opacity: 0;
  transition: opacity var(--duration-fast) var(--ease-standard);
}

.function-tree-domain:hover .function-tree-domain__actions,
.function-tree-domain:focus-within .function-tree-domain__actions {
  opacity: 1;
}

.function-tree-domain__actions .icon-button {
  width: 27px;
  height: 27px;
}

.tree-toggle {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 0;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
}

.tree-toggle:hover {
  background: transparent;
}

.tree-toggle:disabled {
  cursor: default;
  opacity: 0.45;
}

.tree-toggle--empty .tree-toggle__chevron {
  display: none;
}

.tree-toggle__chevron {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--navy);
  border-bottom: 1.5px solid var(--navy);
  transform: rotate(-45deg);
  transition: transform var(--duration-fast) var(--ease-standard);
}

.tree-toggle[aria-expanded="true"] .tree-toggle__chevron {
  transform: rotate(45deg);
}

.function-tree-modules {
  display: grid;
  gap: 1px;
  margin-left: 12px;
  padding: 3px 0 4px 11px;
  border-left: 1px solid var(--border);
}

.function-tree-module {
  border: 0;
  border-radius: 0;
}

.function-tree-module.is-selected {
  background: transparent;
}

.function-tree-module__main {
  display: grid;
  width: 100%;
  grid-template-columns: 14px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  padding: 8px 8px 5px;
  border: 0;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  text-align: left;
}

.function-tree-module__main:hover {
  color: var(--navy);
}

.function-tree-node-dot {
  width: 7px;
  height: 7px;
  border: 1.5px solid var(--navy-line);
  border-radius: 50%;
  background: var(--surface);
}

.function-tree-module.is-selected .function-tree-node-dot {
  border-color: var(--gold);
  background: var(--gold);
}

.function-tree-module.is-selected .function-tree-module__main strong {
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
}

.function-tree-module__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px 7px 29px;
}

.function-tree-module__meta .status-chip {
  min-height: 22px;
  padding: 0 8px;
  font-size: 10px;
}

.function-tree-points {
  display: grid;
  gap: 7px;
  margin: 0 7px 7px 28px;
  padding: 8px;
  border-left: 1px solid var(--navy-line);
  background: rgba(255, 255, 255, 0.62);
}

.function-tree-points--empty {
  color: var(--muted);
  font-size: 10px;
}

.function-tree-round__label {
  display: block;
  margin-bottom: 3px;
  color: var(--navy);
  font-size: 10px;
  font-weight: 700;
}

.function-tree-round__points {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.function-tree-point {
  display: block;
  max-width: 100%;
  overflow: hidden;
  padding: 2px 5px;
  border-radius: 3px;
  background: var(--canvas-soft);
  color: var(--navy-light);
  font-size: 10px;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.function-tree-point:hover {
  color: var(--gold-hover);
}

.function-tree-round__empty,
.function-tree-empty {
  color: var(--muted);
  font-size: 10px;
}

.function-tree-empty {
  padding: 10px 12px;
}

.function-detail-panel {
  min-height: 420px;
}

.function-detail-panel--empty {
  display: grid;
  place-items: center;
  min-height: 420px;
}

.function-detail__header {
  align-items: center;
}

.function-detail__title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 9px;
}

.function-detail__title > span {
  color: var(--muted);
  font-size: 11px;
}
.function-detail__header .function-detail__stage-line {
  margin-top: 6px;
  color: var(--navy-light);
  font-size: 13px;
}

.function-detail__header .function-detail__stage-line strong {
  color: var(--navy);
  font-weight: 600;
}

.round-tabs-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 0 18px;
  border-bottom: 1px solid var(--border);
}

.round-tags {
  display: flex;
  min-width: 0;
  min-height: 52px;
  align-items: flex-end;
  gap: 22px;
  overflow-x: auto;
  padding: 0;
}

.round-tags__empty {
  align-self: center;
  color: var(--muted);
  font-size: 12px;
}

.round-tag {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  gap: 2px;
  padding: 0 2px;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--navy-light);
  cursor: pointer;
  font-size: 13px;
  white-space: nowrap;
}

.round-tag small {
  color: inherit;
  font-size: 12px;
}

.round-tag:hover {
  border-bottom-color: var(--gold-line);
  color: var(--navy);
}

.round-tag.is-active {
  border-bottom-color: var(--gold);
  color: var(--navy);
  font-weight: 700;
}

.round-tabs__tools {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 2px;
  padding-bottom: 8px;
}

.round-action {
  border: 0;
  white-space: nowrap;
}

.function-points__section {
  padding: 18px;
}

.function-round-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 15px;
}

.function-round-heading h3 {
  margin: 4px 0 3px;
  font: 700 18px/1.25 var(--font-display);
}

.function-round-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.function-point-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.function-point-card {
  min-width: 0;
  min-height: 242px;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
}

.function-point-card.status-已完成 {
  border-top: 3px solid var(--success);
}

.function-point-card.status-进行中 {
  border-top: 3px solid var(--gold);
}

.function-point-card.status-未开始 {
  border-top: 3px solid var(--navy-line);
}

.function-point-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 9px;
}

.function-point-card__header > div {
  min-width: 0;
}

.function-point-card__order {
  display: inline-block;
  margin-bottom: 5px;
  color: var(--gold-hover);
  font: 700 10px/1 var(--font-mono);
}

.function-point-card h4 {
  margin: 0;
  overflow: hidden;
  font: 700 16px/1.35 var(--font-display);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.function-point-card__facts {
  display: grid;
  gap: 5px;
  margin-top: 13px;
}

.function-point-card__facts p {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 7px;
  margin: 0;
}

.function-point-card__facts small {
  color: var(--muted);
  font-size: 10px;
}

.function-point-card__facts strong {
  overflow: hidden;
  color: var(--navy-light);
  font: 600 10px/1.45 var(--font-mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.function-point-card__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  margin-top: 12px;
  color: var(--navy-light);
  font-size: 11px;
}

.function-point-card__metrics strong {
  color: var(--navy);
}

.function-point-card__description {
  min-height: 34px;
  margin: 11px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.55;
}

.function-point-card__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

@media (max-width: 1500px) {
  .function-map {
    grid-template-columns: minmax(270px, 310px) minmax(0, 1fr);
  }
}

.function-tree-domain__actions {
  opacity: 1;
}

.function-tree-domain__actions .button--mini,
.function-tree-module__actions .button--mini {
  min-height: 26px;
  padding: 0 6px;
  font-size: 10px;
}

.function-tree-domain__actions .tree-icon-button,
.function-tree-module__actions .tree-icon-button,
.function-tree-flow__actions .tree-icon-button {
  display: grid;
  width: 26px;
  min-width: 26px;
  height: 26px;
  min-height: 26px;
  place-items: center;
  padding: 0;
}

.tree-icon-button svg {
  width: 14px;
  height: 14px;
}

.function-tree-module__head {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px;
  padding: 5px 7px;
}

.function-tree-module__main {
  grid-template-columns: 14px minmax(0, 1fr);
  padding: 5px 2px;
}

.function-tree-module__status {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.function-tree-module__status .status-chip {
  min-height: 21px;
  padding: 0 7px;
  font-size: 9px;
}

.function-tree-module__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 3px;
}

.function-tree-flows {
  display: grid;
  gap: 3px;
  margin: 0 4px 6px 24px;
  padding: 4px 0 4px 9px;
  border-left: 1px solid var(--navy-line);
}

.function-tree-flow-row {
  display: grid;
  min-width: 0;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 3px;
  padding: 2px 4px;
  border-radius: 5px;
  transition: background var(--duration-fast) var(--ease-standard);
}

.function-tree-flow-row:hover,
.function-tree-flow-row:focus-within {
  background: var(--navy-soft);
}

.function-tree-flow-row.is-selected {
  background: var(--gold-soft);
}

.function-tree-flow {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  padding: 6px 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--navy-light);
  cursor: pointer;
  text-align: left;
}

.function-tree-flow:hover,
.function-tree-flow.is-selected {
  background: transparent;
  color: var(--navy);
}

.function-tree-flow__actions {
  display: flex;
  align-items: center;
  gap: 1px;
}

.function-tree-flow__actions .button--mini {
  min-height: 24px;
  padding: 0 5px;
  font-size: 9px;
}

.function-tree-flow__actions .button svg {
  width: 13px;
  height: 13px;
}

.function-tree-flow > span {
  min-width: 0;
}

.function-tree-flow strong,
.function-tree-flow small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.function-tree-flow strong {
  font-size: 12px;
}

.function-tree-flow small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.function-tree-flow .status-chip {
  min-height: 20px;
  flex: 0 0 auto;
  padding: 0 6px;
  font-size: 9px;
}

.node-section {
  padding: 18px;
}

.node-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.node-card {
  display: flex;
  min-width: 0;
  min-height: 226px;
  flex-direction: column;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
}

.node-card.status-完成 {
  border-color: var(--success);
  border-top-width: 3px;
}

.node-card.status-进行中 {
  border-color: var(--info);
  border-top-width: 3px;
}

.node-card.status-未开始 {
  border-color: var(--border-strong);
  border-top-width: 3px;
}

.node-card.status-停滞 {
  border-color: var(--warning);
  border-top-width: 3px;
}

.node-card.status-custom {
  border-color: var(--border-strong);
  border-top-width: 3px;
}

.node-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.node-card__header h4 {
  min-width: 0;
  margin: 0;
  color: var(--navy);
  font: 700 16px/1.35 var(--font-display);
  white-space: normal;
  word-break: break-word;
}

.node-card__header h4 span {
  color: var(--ink);
}

.node-card__description {
  min-height: 36px;
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.55;
}

.node-card__description strong,
.node-card__note strong {
  color: var(--navy);
}

.node-card__schedule {
  display: grid;
  gap: 4px;
  margin-top: 10px;
}

.node-card__schedule p {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 0;
  color: var(--navy-light);
  font-size: 11px;
  line-height: 1.5;
}

.node-card__schedule p > span {
  flex: 0 0 auto;
}

.node-card__schedule strong {
  font: 600 11px/1.5 var(--font-mono);
}

.node-card__note {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.55;
}

.node-card__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

@media (max-width: 1180px) {
  .node-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* 新总览 */
body[data-page="overview"] .workspace {
  min-width: 0;
  max-width: calc(100% - var(--sidebar-width));
  padding: 20px 24px 32px;
}

.overview-board {
  display: grid;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-top: 0;
}

.overview-section {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 16px 18px;
}

.overview-section__head,
.overview-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.overview-section__head {
  margin-bottom: 10px;
}

.overview-route__head {
  align-items: center;
}

.overview-route__heading {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 10px;
}

.overview-route__heading h2 {
  position: relative;
  padding-left: 12px;
}

.overview-route__heading h2::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 4px;
  height: 18px;
  border-radius: 999px;
  background: var(--gold);
  content: "";
  transform: translateY(-50%);
}

.overview-route__heading > span {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.overview-route__heading > span b {
  color: var(--navy);
  font-family: var(--font-mono);
  font-size: 12px;
}

.overview-section__head h2,
.overview-panel-head h2 {
  margin: 0;
  font-size: 20px;
}

.overview-section__count {
  color: var(--muted);
  font-size: 12px;
}

.overview-pace {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 20px;
  padding: 15px 18px;
}

.overview-pace__today {
  color: var(--ink-soft);
  font-size: 13px;
  white-space: nowrap;
}

.overview-pace__today time {
  color: var(--navy);
  font-family: var(--font-mono);
  font-size: 13px;
}

.overview-pace__help {
  position: relative;
  display: inline-flex;
  width: 15px;
  height: 15px;
  flex: none;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--muted);
  cursor: help;
  font: 700 10px/1 var(--font-body);
}

.overview-pace__help:focus-visible {
  outline: 2px solid var(--navy-line);
  outline-offset: 2px;
}

.overview-pace__help::after {
  position: absolute;
  z-index: 30;
  top: calc(100% + 10px);
  left: 50%;
  width: 300px;
  max-width: calc(100vw - 40px);
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-float);
  color: var(--ink);
  content: attr(data-tip);
  font: 400 13px/1.65 var(--font-body);
  opacity: 0;
  pointer-events: none;
  text-align: left;
  transform: translateX(-50%);
  transition: opacity var(--duration-fast) var(--ease-standard);
  visibility: hidden;
  white-space: normal;
}

.overview-pace__help:hover::after,
.overview-pace__help:focus-visible::after {
  opacity: 1;
  visibility: visible;
}

/* 侧栏收起的窄屏下图标会靠左，提示框改为左对齐，避免超出视口。 */
@media (max-width: 880px) {
  .overview-pace__help::after {
    left: 0;
    transform: none;
  }
}

.overview-pace__item {
  display: inline-flex;
  min-width: 0;
  align-items: baseline;
  gap: 5px;
}

.overview-pace__item-label {
  color: var(--ink-soft);
  font-size: 13px;
  white-space: nowrap;
}

.overview-pace__item strong {
  color: var(--ink);
  font: 700 18px/1.1 var(--font-mono);
}

.overview-pace__unit {
  color: var(--ink-soft);
  font-size: 13px;
}

.overview-pace__detail {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overview-cycle-range {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--canvas-soft);
}

.overview-cycle-range span {
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.overview-cycle-range strong {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--navy);
  font: 700 12px/1.3 var(--font-mono);
}

.overview-cycle-range time {
  font: inherit;
}

.overview-cycle-range i {
  position: relative;
  display: block;
  width: 20px;
  height: 1px;
  background: var(--gold-line);
}

.overview-cycle-range i::after {
  position: absolute;
  top: 50%;
  right: 0;
  width: 4px;
  height: 4px;
  border-top: 1px solid var(--gold-line);
  border-right: 1px solid var(--gold-line);
  content: "";
  transform: translateY(-50%) rotate(45deg);
}

.overview-today {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy);
  font: 700 13px/1 var(--font-mono);
}

.overview-route-timeline {
  height: auto;
  /* 十个父级阶段一次性展示，不出现纵向滚动条 */
  max-height: none;
}

/* 月维度铺满面板，默认不显示滚动条 */
.overview-route-timeline[data-scale="month"] {
  scrollbar-width: none;
}

.overview-route-timeline[data-scale="month"]::-webkit-scrollbar {
  display: none;
}

/* 时间轴按容器宽度铺满，默认不出现横向滚动条 */
.overview-route-timeline .timeline {
  min-width: 100%;
}

/* 日/周维度刻度更密，按刻度宽度铺开并允许横向滑动 */
.overview-route-timeline[data-scale="day"] .timeline,
.overview-route-timeline[data-scale="week"] .timeline {
  min-width: var(--timeline-min-width, 1040px);
}

.overview-route-timeline .timeline-axis,
.overview-route-timeline .timeline-row {
  grid-template-columns: 300px minmax(420px, 1fr);
}

/* 月维度刻度列较窄，压缩内边距与字号以保证 YYYY-MM 单行显示 */
.overview-route-timeline[data-scale="month"] .timeline-axis__ticks > span:not(.timeline-today) {
  padding: 0 2px 12px;
  font-size: 9px;
}

.overview-route__aside {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

/* 总览阶段排期的时间轴统一使用浅底紫色斜纹，与阶段排期页的多色阶段配色区分 */
.overview-route-timeline .timeline-bar--plan {
  border-color: var(--timeline-purple);
  border-radius: 6px;
  background:
    repeating-linear-gradient(135deg, transparent 0 5px, var(--timeline-purple-stripe) 5px 7px, transparent 7px 12px);
}

.overview-route-timeline .timeline-row {
  cursor: pointer;
}

.overview-tree-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.overview-tree-actions .button {
  min-height: 28px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.overview-cycle-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 3px;
  scrollbar-color: var(--border-strong) transparent;
  scrollbar-width: thin;
}

.overview-cycle-strip--route {
  position: relative;
  display: grid;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  grid-auto-flow: column;
  grid-auto-columns: clamp(226px, 18vw, 244px);
  gap: 10px;
  overflow-x: scroll;
  overflow-y: hidden;
  padding: 3px 2px 14px;
  scrollbar-color: var(--navy) var(--navy-soft);
  scrollbar-gutter: stable;
  scrollbar-width: auto;
}

.overview-cycle-strip--route::-webkit-scrollbar {
  height: 10px;
}

.overview-cycle-strip--route::-webkit-scrollbar-track {
  border-radius: 999px;
  background: var(--navy-soft);
}

.overview-cycle-strip--route::-webkit-scrollbar-thumb {
  border: 2px solid var(--surface);
  border-radius: 999px;
  background: var(--navy);
}

.overview-cycle-strip--route::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

.overview-cycle-strip--route::before {
  position: absolute;
  top: 25px;
  right: 0;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--navy-line), var(--gold-line) 48%, var(--navy-line));
  content: "";
  opacity: 0.86;
}

.overview-cycle-card {
  position: relative;
  display: grid;
  min-width: 0;
  max-width: none;
  grid-template-rows: 38px minmax(142px, auto);
  gap: 7px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  text-align: left;
  appearance: none;
}

.overview-cycle-card:focus-visible {
  box-shadow: none;
}

.overview-cycle-card:focus-visible .overview-cycle-card__surface {
  box-shadow: 0 0 0 3px rgba(247, 180, 0, 0.28);
}

.overview-cycle-card__milestone {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  align-items: center;
  justify-self: start;
}

.overview-cycle-card__code {
  display: inline-flex;
  min-width: 42px;
  height: 26px;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border: 2px solid var(--surface);
  border-radius: 4px;
  background: var(--navy);
  color: #ffffff;
  box-shadow: 0 0 0 1px var(--navy-line);
  font: 700 10px/1 var(--font-mono);
  white-space: nowrap;
  transition:
    border-color var(--duration-fast) var(--ease-standard),
    background var(--duration-fast) var(--ease-standard),
    color var(--duration-fast) var(--ease-standard);
}

.overview-cycle-card__surface {
  --route-accent: var(--gold);
  position: relative;
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 8px;
  height: 100%;
  padding: 13px 14px 12px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  box-shadow: 0 4px 12px rgba(30, 35, 70, 0.055);
  transition:
    border-color var(--duration-fast) var(--ease-standard),
    background var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard),
    transform var(--duration-fast) var(--ease-standard);
}

.overview-cycle-card__surface::before {
  position: absolute;
  top: -1px;
  left: 14px;
  width: 38px;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: var(--route-accent);
  content: "";
}

.overview-cycle-card:hover .overview-cycle-card__surface {
  border-color: var(--navy-line);
  box-shadow: 0 8px 18px rgba(30, 35, 70, 0.1);
  transform: translateY(-2px);
}

.overview-cycle-card:hover .overview-cycle-card__code {
  border-color: var(--gold-soft);
}

.overview-cycle-card.is-active .overview-cycle-card__surface {
  border-color: var(--gold);
  background: linear-gradient(145deg, var(--gold-soft), var(--surface) 58%);
  box-shadow:
    0 0 0 1px var(--gold-line),
    0 10px 22px rgba(30, 35, 70, 0.12);
}

.overview-cycle-card.is-active .overview-cycle-card__code {
  border-color: var(--navy);
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 0 0 1px var(--gold-line);
}

.overview-cycle-card--child .overview-cycle-card__surface {
  border-color: #e3e6ee;
  background: #fcfcfe;
  box-shadow: inset 3px 0 0 var(--navy-soft);
}

.overview-cycle-card--child .overview-cycle-card__code {
  min-width: 44px;
  border-color: var(--surface);
  background: var(--surface);
  color: var(--navy);
  box-shadow: 0 0 0 1px var(--navy-line);
}

.overview-cycle-card--deep .overview-cycle-card__surface {
  border-style: dashed;
}

.overview-cycle-card--child.is-active .overview-cycle-card__surface {
  border-color: var(--gold);
  background: linear-gradient(145deg, var(--gold-soft), var(--surface) 58%);
  box-shadow:
    0 0 0 1px var(--gold-line),
    0 10px 22px rgba(30, 35, 70, 0.12);
}

.overview-cycle-card--child.is-active .overview-cycle-card__code {
  border-color: var(--navy);
  background: var(--gold);
  color: var(--navy);
}

.overview-cycle-card--track-product .overview-cycle-card__surface {
  --route-accent: var(--track-product);
}

.overview-cycle-card--track-development .overview-cycle-card__surface {
  --route-accent: var(--track-development);
}

.overview-cycle-card--track-operations .overview-cycle-card__surface {
  --route-accent: var(--track-operations);
}

.overview-cycle-card__meta {
  display: flex;
  min-height: 24px;
  align-items: center;
  justify-content: flex-end;
}

.overview-cycle-card__name {
  display: -webkit-box;
  min-height: 40px;
  overflow: hidden;
  color: var(--navy);
  font: 700 15px/1.38 var(--font-display);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.overview-cycle-card__dates {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr);
  align-items: end;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.overview-cycle-card__dates > span {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.overview-cycle-card__dates small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
}

.overview-cycle-card__dates time {
  overflow: hidden;
  color: var(--navy);
  font: 700 11px/1.3 var(--font-mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overview-cycle-card__dates > i {
  position: relative;
  display: block;
  height: 1px;
  margin-bottom: 7px;
  background: var(--navy-line);
}

.overview-cycle-card__dates > i::after {
  position: absolute;
  top: 50%;
  right: 0;
  width: 4px;
  height: 4px;
  border-top: 1px solid var(--navy-line);
  border-right: 1px solid var(--navy-line);
  content: "";
  transform: translateY(-50%) rotate(45deg);
}

.overview-cycle-card__progress {
  display: block;
  height: 3px;
  margin-top: auto;
  overflow: hidden;
  border-radius: 999px;
  background: var(--navy-soft);
}

.overview-cycle-card__progress > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--navy);
  transition: width var(--duration-normal) var(--ease-standard);
}

.overview-cycle-card.is-active .overview-cycle-card__progress > i {
  background: var(--gold);
}

.overview-process-section {
  display: grid;
  grid-template-columns: minmax(320px, 3fr) minmax(0, 7fr);
  grid-template-areas:
    "head head"
    "kpis domains";
  grid-template-rows: auto 260px;
  min-width: 0;
  gap: 10px 14px;
  padding: 14px 18px 16px;
}

.overview-process-section > .overview-section__head {
  grid-area: head;
}

.overview-process-kpis {
  display: grid;
  grid-area: kpis;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: repeat(3, minmax(0, 1fr));
  align-content: start;
  height: 100%;
  gap: 6px;
}

.overview-process-card {
  position: relative;
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(30, 35, 70, 0.05), transparent 55%),
    var(--surface);
  box-shadow: 0 8px 20px rgba(30, 35, 70, 0.045);
}

.overview-process-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--navy);
  content: "";
}

.overview-process-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.overview-process-card > header > div {
  display: grid;
  gap: 2px;
}

.overview-process-card__header {
  align-items: center;
}

.overview-process-card__title {
  display: flex !important;
  min-width: 0;
  align-items: center;
}

.overview-process-card__icon {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  border-radius: 6px;
  background: var(--navy-soft);
  color: var(--navy);
}

.overview-process-card__icon svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.overview-process-card--progress .overview-process-card__icon {
  background: rgba(247, 180, 0, 0.14);
  color: #9a6f00;
}

.overview-process-card--flow .overview-process-card__icon {
  background: rgba(49, 126, 91, 0.12);
  color: var(--success);
}

.overview-process-card > header span {
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
}

.overview-process-card > header small,
.overview-process-card > footer {
  color: var(--muted);
  font-size: 11px;
}

.overview-process-card > header strong {
  color: var(--navy);
  font: 700 32px/0.95 var(--font-display);
}

.overview-process-card__header .overview-process-card__title strong {
  color: var(--navy);
  font: 700 13px/1.2 var(--font-display);
}

.overview-process-card > footer {
  margin-top: auto;
}

.overview-progress-chart {
  width: 110px;
  height: 110px;
  flex: 0 0 110px;
  align-self: center;
}

.overview-progress-chart__fallback {
  display: grid;
  width: 100%;
  height: 100%;
  place-content: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--surface) 0 65%, transparent 66%),
    conic-gradient(var(--navy) var(--progress-value), var(--navy-soft) 0);
  text-align: center;
}

.overview-progress-chart__fallback b,
.overview-progress-chart__fallback small {
  display: block;
}

.overview-progress-chart__fallback b {
  color: var(--navy);
  font: 700 25px/1 var(--font-display);
}

.overview-progress-chart__fallback small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.overview-process-progress {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.overview-process-progress__copy {
  display: grid;
  gap: 4px;
}

.overview-process-progress__copy > span,
.overview-process-progress__copy em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
}

.overview-process-progress__copy strong {
  color: var(--navy);
  font: 700 30px/1 var(--font-display);
}

.overview-process-progress__copy strong small {
  margin-left: 4px;
  color: var(--muted);
  font: 500 12px/1 var(--font-body);
}

.overview-status-stack {
  display: flex;
  height: 10px;
  gap: 3px;
  overflow: hidden;
  margin-top: auto;
  border-radius: 999px;
  background: var(--navy-soft);
}

.overview-status-stack > span {
  min-width: 0;
  height: 100%;
  border-radius: inherit;
}

.overview-status-stack .is-pending {
  background: var(--border-strong);
}

.overview-status-stack .is-active {
  background: var(--gold);
}

.overview-status-stack .is-done {
  background: var(--success);
}

.overview-status-list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.overview-status-list > span {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  white-space: nowrap;
}

.overview-status-list i {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
}

.overview-status-list i.is-pending {
  background: var(--border-strong);
}

.overview-status-list i.is-active {
  background: var(--gold);
}

.overview-status-list i.is-done {
  background: var(--success);
}

.overview-status-list small {
  color: var(--muted);
  font-size: 10px;
}

.overview-status-list b {
  color: var(--navy);
  font: 700 15px/1 var(--font-display);
}

.overview-flow-meter {
  display: grid;
  gap: 4px;
  margin-top: auto;
}

.overview-flow-meter > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.overview-flow-meter > div:first-child span,
.overview-flow-meter > small {
  color: var(--muted);
  font-size: 12px;
}

.overview-flow-meter > div:first-child small {
  color: var(--muted);
  font-size: 12px;
}

.overview-flow-meter > div:first-child small b {
  color: var(--navy);
  font-weight: 700;
}

.overview-flow-meter > div:first-child strong {
  color: var(--navy);
  font: 700 22px/1 var(--font-display);
}

.overview-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.overview-kpi {
  position: relative;
  display: flex;
  min-height: 130px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  overflow: hidden;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(30, 35, 70, 0.055), transparent 55%),
    var(--surface);
}

.overview-kpi::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--navy);
  content: "";
}

.overview-kpi--gold::before {
  background: var(--gold);
}

.overview-kpi > div {
  display: grid;
  gap: 5px;
}

.overview-kpi span,
.overview-kpi small {
  color: var(--muted);
  font-size: 11px;
}

.overview-kpi strong {
  color: var(--navy);
  font: 700 42px/0.95 var(--font-display);
}

.overview-kpi small {
  padding-bottom: 4px;
}

.overview-domain-section {
  display: grid;
  grid-area: domains;
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr);
}

.overview-domain-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(126px, max-content);
  align-content: start;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  max-height: 100%;
  gap: 8px;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-color: var(--border-strong) transparent;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}

.overview-domain-card {
  display: grid;
  min-width: 0;
  width: 100%;
  gap: 7px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(30, 35, 70, 0.045);
}

.overview-domain-card > header {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.overview-domain-card h3 {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 3px;
  margin: 0;
  overflow: hidden;
  font: 700 15px/1.2 var(--font-display);
}

.overview-domain-card h3 small {
  color: var(--muted);
  font: 500 10px/1.3 var(--font-body);
}

.overview-domain-card__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  color: var(--ink-soft);
  font-size: 11px;
}

.overview-domain-card__metrics span {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
}

.overview-domain-card__metrics b {
  color: var(--navy);
  font: 700 15px/1 var(--font-display);
}

.overview-domain-card__metrics b small {
  margin-left: 2px;
  color: var(--muted);
  font: 500 10px/1 var(--font-body);
}

.overview-domain-card__progress {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
}

.overview-domain-card__progress > span {
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.overview-domain-card__progress > strong {
  color: var(--navy);
  font: 700 14px/1 var(--font-display);
}

.overview-progress {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--navy-soft);
}

.overview-progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--navy);
  transition: width var(--duration-normal) var(--ease-standard);
}

.overview-domain-card > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
}

.overview-domain-card > footer strong {
  color: var(--navy);
  font: 700 18px/1 var(--font-display);
}

.overview-execution {
  display: grid;
  grid-template-columns: minmax(250px, 290px) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.overview-tree-panel,
.overview-timeline-panel {
  min-width: 0;
}

.overview-tree-panel {
  height: 100%;
  overflow: hidden;
}

.overview-panel-head {
  padding: 14px;
  border-bottom: 1px solid var(--border);
}

.overview-panel-head > strong {
  color: var(--navy);
  font: 700 26px/1 var(--font-display);
}

.overview-tree-panel .overview-panel-head h2 {
  font-size: 16px;
}

.overview-tree-search {
  display: flex;
  flex: 1 0 100%;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--muted);
}

.overview-tree-search .button-icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.overview-tree-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: 400 11px/1.4 var(--font-body);
  outline: none;
}

.overview-tree-search input:focus-visible {
  box-shadow: none;
}

.overview-mini-tree {
  max-height: 660px;
  overflow: auto;
  padding: 6px 8px 10px;
}

.overview-mini-tree__domain + .overview-mini-tree__domain {
  margin-top: 3px;
}

.overview-mini-tree__row {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px;
  padding: 4px 2px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  text-align: left;
}

.overview-mini-tree__row:disabled {
  cursor: default;
  opacity: 1;
}

.overview-mini-tree__row--domain {
  min-height: 42px;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
}

.overview-mini-tree__row--work {
  padding: 5px 7px;
}

.overview-mini-tree__row--flow {
  padding: 5px 4px 5px 10px;
}

.overview-mini-tree__row--flow:hover {
  background: var(--navy-soft);
}

.overview-mini-tree__row--flow.is-selected {
  background: var(--gold-soft);
}

.overview-mini-tree__row > b {
  color: var(--navy);
  font: 700 11px/1 var(--font-mono);
}

.overview-mini-tree__children {
  display: grid;
  gap: 1px;
  margin-left: 12px;
  padding: 3px 0 4px 11px;
  border-left: 1px solid var(--border);
}

.overview-mini-tree__chevron {
  width: 7px;
  height: 7px;
  justify-self: center;
  border-right: 1.5px solid var(--navy);
  border-bottom: 1.5px solid var(--navy);
  transform: rotate(-45deg);
  transition: transform var(--duration-fast) var(--ease-standard);
}

.overview-mini-tree__row[aria-expanded="true"] .overview-mini-tree__chevron {
  transform: translateY(-2px) rotate(45deg);
}

.overview-mini-tree__row:disabled .overview-mini-tree__chevron {
  opacity: 0.28;
}

.overview-mini-tree__dot {
  width: 7px;
  height: 7px;
  justify-self: center;
  border: 1.5px solid var(--navy-line);
  border-radius: 50%;
  background: var(--surface);
}

.overview-mini-tree__row--flow.is-selected .overview-mini-tree__dot {
  border-color: var(--gold);
  background: var(--gold);
}

.overview-mini-tree__name {
  min-width: 0;
}

.overview-mini-tree__name strong,
.overview-mini-tree__name small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overview-mini-tree__name strong {
  color: inherit;
  font-size: 11px;
}

.overview-mini-tree__name small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
}

.overview-round-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  padding: 0 18px;
  border-bottom: 1px solid var(--border);
}

.overview-round-bar .round-tags {
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 6px;
  scrollbar-color: var(--navy) var(--navy-soft);
  scrollbar-width: auto;
}

.overview-round-bar .round-tag {
  flex: 0 0 auto;
}

.overview-round-bar .round-tags::-webkit-scrollbar {
  height: 8px;
}

.overview-round-bar .round-tags::-webkit-scrollbar-track {
  border-radius: 999px;
  background: var(--navy-soft);
}

.overview-round-bar .round-tags::-webkit-scrollbar-thumb {
  border: 2px solid var(--surface);
  border-radius: 999px;
  background: var(--navy);
}

.overview-round-bar .round-tags::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

.overview-legend {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
}

.overview-timeline-controls {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}

.overview-scale-switch button {
  height: 26px;
  min-height: 26px;
  padding: 0 10px;
  font-size: 11px;
}

.overview-legend span {
  display: inline-flex;
  height: 34px;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--canvas-soft);
  white-space: nowrap;
}

.overview-legend i {
  display: block;
  width: 24px;
  height: 8px;
  border-radius: 2px;
}

.overview-legend i.is-plan {
  border: 1px solid var(--navy);
  background: var(--navy);
}

.overview-legend i.is-actual {
  border: 1px solid var(--gold);
  background: var(--gold);
}

.overview-gantt {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 18px 18px 0;
  scrollbar-color: var(--border-strong) transparent;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}

.overview-gantt__inner {
  min-width: var(--overview-gantt-min-width, 840px);
}

.overview-gantt__head,
.overview-gantt__row {
  display: grid;
  grid-template-columns: 240px minmax(600px, 1fr);
}

.overview-gantt__head {
  min-height: 48px;
}

.overview-gantt__head > div:first-child {
  position: sticky;
  left: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  padding-left: 28px;
  border-right: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 8px 0 12px -14px rgba(30, 35, 70, 0.55);
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
}

.overview-gantt__axis {
  position: relative;
  border-bottom: 1px solid var(--border-strong);
}

.overview-gantt__axis > .overview-gantt__tick {
  position: absolute;
  top: 20px;
  color: var(--navy-light);
  font: 600 10px/1 var(--font-mono);
  transform: translateX(-50%);
  white-space: nowrap;
}

.overview-gantt__axis > .overview-gantt__tick.is-start {
  text-align: left;
  transform: none;
}

.overview-gantt__axis > .overview-gantt__tick.is-end {
  text-align: right;
  transform: translateX(-100%);
}

.overview-gantt__row {
  min-height: 78px;
  border-bottom: 1px solid var(--border);
}

.overview-gantt__row:last-child {
  border-bottom: 0;
}

.overview-gantt__task {
  position: sticky;
  left: 0;
  z-index: 4;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 10px 14px 10px 28px;
  border-right: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 8px 0 12px -14px rgba(30, 35, 70, 0.55);
}

.overview-gantt__task > div {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.overview-gantt__task strong {
  overflow: hidden;
  color: var(--navy);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overview-gantt__task small {
  overflow: hidden;
  color: var(--muted);
  font: 500 10px/1.4 var(--font-mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overview-gantt__task small span {
  color: var(--navy);
  font-weight: 700;
}

.overview-gantt__task small.overview-gantt__task-time--actual span {
  color: #9a6b00;
}

.overview-gantt__track {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(247, 180, 0, 0.045), rgba(30, 35, 70, 0.025)),
    var(--surface);
}

.overview-gantt__line {
  position: absolute;
  inset: 0 auto 0 auto;
  width: 1px;
  background: rgba(30, 35, 70, 0.08);
}

.overview-gantt__bar {
  position: absolute;
  border-radius: 4px;
}

.overview-gantt__bar--plan {
  top: 15px;
  left: var(--bar-left);
  width: var(--bar-width);
  height: 13px;
  border: 1px solid var(--navy);
  background: var(--navy);
}

.overview-gantt__bar--actual {
  top: 40px;
  left: var(--bar-left);
  width: var(--bar-width);
  height: 12px;
  border: 1px solid var(--gold);
  background: var(--gold);
  box-shadow: none;
}

.overview-gantt__today {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 3;
  width: 1px;
  background: repeating-linear-gradient(180deg, var(--today-orange) 0 4px, transparent 4px 8px);
  pointer-events: none;
}

.overview-gantt__axis .overview-gantt__today::after {
  position: absolute;
  top: 0;
  left: 50%;
  padding: 2px 5px;
  border: 1px solid var(--today-orange-line);
  border-radius: 3px;
  background: var(--today-orange-soft);
  color: var(--today-orange);
  content: "Today";
  font: 700 9px/1.2 var(--font-mono);
  transform: translateX(-50%);
  white-space: nowrap;
}

@media (max-width: 1400px) {
  .overview-domain-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .overview-execution {
    grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
  }
}

@media (max-width: 1180px) {
  .overview-process-section {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "head"
      "kpis"
      "domains";
    grid-template-rows: auto auto auto;
  }

  .overview-process-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: none;
    height: auto;
  }

  .overview-domain-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 420px;
  }

  .overview-execution {
    grid-template-columns: minmax(0, 1fr);
  }

  .overview-mini-tree {
    max-height: 420px;
  }
}
