:root {
  color-scheme: light;
  --surface: #f7f9fb;
  --surface-bright: #f7f9fb;
  --surface-container-lowest: #ffffff;
  --surface-container-low: #f2f4f6;
  --surface-container: #eceef0;
  --surface-container-high: #e6e8ea;
  --surface-container-highest: #e0e3e5;
  --on-surface: #191c1e;
  --on-surface-variant: #434655;
  --outline: #737686;
  --outline-variant: #c3c6d7;
  --blue: #004ac6;
  --blue-dark: #003ea8;
  --blue-soft: rgba(0, 74, 198, 0.1);
  --green: #006c49;
  --green-soft: rgba(0, 108, 73, 0.1);
  --green-deep: #006c49;
  --orange: #996100;
  --orange-soft: rgba(153, 97, 0, 0.1);
  --error: #ba1a1a;
  --error-soft: #ffdad6;
  --text: #191c1e;
  --muted: #434655;
  --grid: #c3c6d7;
  --grid-soft: #e0e3e5;
  --shadow: 0 18px 42px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.05);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-width: 1180px;
  background: var(--surface);
  color: var(--text);
  font-family: Inter, "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-flex;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
}

.page {
  width: 100%;
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 0 28px;
  background: var(--surface);
}

.content-container {
  width: calc(100% - 48px);
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--outline-variant);
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.top-bar {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-title-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.project-nav-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--surface-container);
  border-radius: 999px;
  background: var(--surface-container-lowest);
  color: var(--blue);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.06);
  transition: background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.project-nav-btn:hover,
.project-nav-btn:focus-visible {
  background: rgba(37, 99, 235, 0.1);
  outline: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.1);
}

.project-nav-btn .material-symbols-outlined {
  font-size: 20px;
}

.top-profile {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.top-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  object-fit: cover;
  display: block;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-family: Manrope, Inter, sans-serif;
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--on-surface);
}

.project-plan {
  margin-top: 24px;
}

.project-plan-card {
  overflow: hidden;
  border: 1px solid var(--surface-container);
  border-radius: 16px;
  background: var(--surface-container-lowest);
  box-shadow: var(--shadow);
}

.plan-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
  border-bottom: 1px solid var(--surface-container);
}

.plan-head-actions {
  display: grid;
  justify-items: end;
  gap: 12px;
  flex: 0 0 auto;
}

.view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  padding: 4px;
  border-radius: 12px;
  background: var(--surface-container);
}

.view-toggle-btn {
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--on-surface-variant);
  padding: 0 16px;
  font: inherit;
  font-size: 13px;
  line-height: 20px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.view-toggle-btn:hover,
.view-toggle-btn:focus-visible {
  background: rgba(255, 255, 255, 0.68);
  color: var(--blue);
}

.view-toggle-btn.is-active {
  background: var(--surface-container-lowest);
  color: var(--blue);
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}

.plan-view[hidden] {
  display: none;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.section-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: var(--blue-soft);
  color: var(--blue);
}

.section-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.section-heading h2,
.review-section-title {
  font-family: Manrope, Inter, sans-serif;
  font-size: 18px;
  line-height: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--on-surface);
}

.section-heading p {
  margin-top: 2px;
  color: var(--on-surface-variant);
  font-size: 13px;
  line-height: 20px;
  font-weight: 400;
}

.legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  color: var(--on-surface-variant);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.legend .risk {
  background: var(--orange);
}

.legend .active {
  background: var(--blue);
}

.legend .done {
  background: var(--green);
}

.legend .delay {
  background: #87cf76;
}

.legend .planned {
  background: var(--surface-container-highest);
}

.legend .today {
  width: 34px;
  height: 0;
  border-top: 2px dashed #ff3333;
}

.timeline-card {
  padding: 20px;
  background: transparent;
  box-shadow: none;
}

.gantt-view-head {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

#sectionTimeline {
  padding: 20px;
  border-bottom: 1px solid var(--surface-container);
}

.gantt {
  position: relative;
  display: grid;
  grid-template-columns: 56px 112px repeat(13, 1fr);
  grid-template-rows: var(--gantt-rows, 32px 34px 74px 92px 118px 178px 88px 126px);
  overflow: hidden;
  border: 1px solid var(--surface-container);
  border-radius: 12px;
  background: var(--surface-container-lowest);
}

.cell,
.year,
.month,
.row-label {
  display: grid;
  place-items: center;
  border-right: 1px solid var(--grid);
  border-bottom: 1px solid var(--grid);
  font-weight: 700;
}

.head,
.year,
.month {
  background: linear-gradient(#2563eb, #004ac6);
  color: white;
}

.num-head {
  grid-column: 1;
  grid-row: 1 / 3;
}

.task-head {
  grid-column: 2;
  grid-row: 1 / 3;
}

.year {
  font-size: 17px;
  line-height: 26px;
  font-weight: 700;
  padding: 4px 0;
}

.month {
  grid-row: 2;
  font-size: 17px;
  line-height: 26px;
  font-weight: 700;
  padding: 5px 0;
}

.row-label {
  background: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
  color: var(--on-surface);
}

.row-label.task {
  justify-content: center;
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
}

.row-label.num { grid-column: 1; }
.row-label.task { grid-column: 2; }

.plot {
  position: relative;
  grid-column: 3 / 16;
  grid-row: 3 / 9;
  background:
    linear-gradient(90deg, var(--grid-soft) 1px, transparent 1px) 0 0 / calc(100% / 13) 100% repeat-x;
}

.plot::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: none;
}

.gantt-empty-state {
  position: absolute;
  inset: 24px;
  z-index: 3;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 1px dashed var(--outline-variant);
  border-radius: 12px;
  background: rgba(242, 244, 246, 0.86);
  color: var(--on-surface-variant);
  text-align: center;
}

.gantt-empty-state .material-symbols-outlined {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--surface-container);
  color: var(--outline);
  font-size: 26px;
}

.gantt-empty-state strong {
  color: var(--on-surface);
  font-size: 15px;
  line-height: 22px;
}

.gantt-empty-state span:not(.material-symbols-outlined) {
  font-size: 13px;
  line-height: 20px;
}

.phase-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  z-index: 0;
  pointer-events: none;
  background: var(--grid);
}

.time-marker {
  position: absolute;
  top: 8px;
  z-index: 6;
  transform: translateX(-50%);
  cursor: pointer;
  --marker-color: #1447e6;
  --marker-line: rgba(20, 71, 230, 0.72);
}

.time-marker.is-front {
  z-index: 30;
}

.time-marker:hover,
.time-marker:focus-visible {
  z-index: 28;
}

.time-marker.is-front .marker-label {
  box-shadow: 0 0 0 3px rgba(20, 71, 230, 0.16), 0 10px 20px rgba(20, 71, 230, 0.2);
}

.time-marker::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 54px;
  width: 2px;
  height: var(--marker-line-height, 622px);
  background: var(--marker-line);
  transform: translateX(-50%);
}

.marker-label {
  min-width: 76px;
  height: 44px;
  padding: 5px 8px 6px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--marker-color);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(0, 74, 198, 0.16);
}

.marker-now .marker-label {
  transform: translateX(8px);
}

.marker-now .marker-label::after {
  left: calc(50% - 8px);
}

.marker-label::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  border: 6px solid transparent;
  border-top-color: var(--marker-color);
  border-bottom: 0;
  transform: translateX(-50%);
}

.marker-label span {
  font-size: 13px;
  line-height: 16px;
  font-weight: 700;
  white-space: nowrap;
}

.marker-label small {
  margin-top: 3px;
  font-size: 13px;
  line-height: 16px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0.96;
}

.marker-now {
  --marker-color: var(--error);
  --marker-line: rgba(186, 26, 26, 0.84);
}

.bar {
  position: absolute;
  z-index: 2;
  height: 12px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(0, 74, 198, 0.12);
  cursor: pointer;
  transition: filter 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.bar::before {
  content: attr(data-name) "    " attr(data-date);
  position: absolute;
  top: 50%;
  left: calc(100% + 12px);
  transform: translateY(-50%);
  color: var(--on-surface);
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
  transition: color 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.bar.label-left::before {
  left: auto;
  right: calc(100% + 12px);
  text-align: right;
}

.bar.done {
  background: var(--green);
}

.bar.delayed {
  background: var(--green);
  z-index: 4;
}

.bar.planned {
  background: var(--surface-container-highest);
  box-shadow: 0 1px 4px rgba(90, 99, 112, 0.14);
  z-index: 3;
}

.bar.planned::before,
.bar.planned::after {
  color: #9aa1ad;
}

.bar.planned::before {
  opacity: 0;
  z-index: 20;
  padding: 3px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 3px 10px rgba(69, 85, 108, 0.16);
  transition: opacity 140ms ease;
}

.bar:hover,
.bar:focus-visible {
  z-index: 16;
  filter: saturate(1.18);
  transform: translateY(-2px) scaleY(1.12);
  box-shadow: 0 0 0 3px rgba(20, 71, 230, 0.14), 0 7px 14px rgba(20, 71, 230, 0.22);
}

.bar.planned:hover,
.bar.planned:focus-visible {
  z-index: 18;
  filter: saturate(1.05);
  box-shadow: 0 0 0 3px rgba(105, 113, 125, 0.16), 0 4px 10px rgba(90, 99, 112, 0.2);
}

.bar.planned:hover::before,
.bar.planned:focus-visible::before {
  opacity: 1;
}

.bar.active {
  background: linear-gradient(90deg, #2563eb, #004ac6);
}

.axis-section {
  position: relative;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.axis-title-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  margin-bottom: 12px;
}

.axis-title-row h2 {
  font-size: 22px;
  line-height: 30px;
  font-weight: 700;
  color: #0f172a;
}

.axis-title-row h3 {
  margin: 0;
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
}

.axis-legend {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--on-surface-variant);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
}

.axis-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.axis-legend i {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  display: inline-block;
}

.axis-legend .risk { background: var(--orange); }
.axis-legend .active { background: var(--blue); }
.axis-legend .done { background: var(--green); }
.axis-legend .planned { background: #cfd4db; }

.axis-canvas {
  position: relative;
  height: var(--axis-stage-height, 390px);
  width: 100%;
  --axis-left: 0px;
  --axis-width: 100%;
  --axis-y: 234px;
  overflow: visible;
}

.axis-years,
.axis-months,
.axis-main-line {
  position: absolute;
  left: var(--axis-left);
  width: var(--axis-width);
}

.axis-years,
.axis-months {
  display: grid;
  overflow: hidden;
  border-left: 1px solid var(--outline-variant);
  border-right: 1px solid var(--outline-variant);
  color: #ffffff;
  font-weight: 700;
}

.axis-years {
  top: 0;
  height: 32px;
  background: var(--blue);
}

.axis-months {
  top: 32px;
  height: 34px;
  background: var(--blue);
}

.axis-years span,
.axis-months span {
  position: absolute;
  top: 0;
  bottom: 0;
  display: grid;
  place-items: center;
  border-right: 1px solid rgba(238, 239, 255, 0.34);
}

.axis-years span:last-child,
.axis-months span:last-child {
  border-right: 0;
}

.axis-main-line {
  top: var(--axis-y);
  height: 4px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.18);
}

.axis-main-line::after {
  content: none;
}

.axis-month-grid {
  position: absolute;
  left: var(--axis-left);
  top: 66px;
  width: var(--axis-width);
  height: calc(var(--axis-stage-height, 390px) - 98px);
  pointer-events: none;
}

.axis-month-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(195, 198, 215, 0.75);
}

.axis-node,
.timeline-node {
  position: absolute;
  transform: translateX(-50%);
  width: 18px;
  height: 18px;
  pointer-events: auto;
  z-index: 6;
  cursor: pointer;
}

.axis-connector,
.timeline-node-line {
  position: absolute;
  overflow: visible;
  pointer-events: none;
}

.axis-connector {
  left: 50%;
  width: 2px;
  background: rgba(37, 99, 235, 0.38);
  transform: translateX(-50%);
}

.axis-node-top .axis-connector,
.axis-node-bottom .axis-connector {
  height: 14px;
}

.timeline-node-line path {
  fill: none;
  stroke: rgba(0, 74, 198, 0.28);
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.timeline-node.done .timeline-node-line path {
  stroke: rgba(0, 108, 73, 0.3);
}

.timeline-node.delay .timeline-node-line path,
.timeline-node.warning .timeline-node-line path,
.timeline-node.risk .timeline-node-line path {
  stroke: rgba(153, 97, 0, 0.3);
}

.timeline-node.planned .timeline-node-line path {
  stroke: rgba(144, 161, 185, 0.42);
  stroke-dasharray: 4 4;
}

.timeline-node.is-distant-label .timeline-node-line path {
  opacity: 0.72;
}

.timeline-node-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  border: 3px solid #ffffff;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 1), 0 4px 10px rgba(0, 74, 198, 0.16);
}

.timeline-node-dot.done {
  background: var(--green);
}

.timeline-node-dot.delay,
.timeline-node-dot.warning,
.timeline-node-dot.risk {
  background: var(--orange);
}

.timeline-node-dot.active {
  background: var(--blue);
}

.timeline-node-dot.planned {
  background: #cfd4db;
  border-style: dashed;
}

.timeline-node-label {
  position: absolute;
  width: 104px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--on-surface);
  text-align: center;
  display: grid;
  grid-template-rows: 1fr 12px;
  align-content: stretch;
  gap: 1px;
  pointer-events: auto;
}

.timeline-node-label::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(195, 198, 215, 0.22);
  border-radius: 6px;
  background: rgba(247, 249, 251, 0.5);
  box-shadow: none;
}

.timeline-node-title,
.timeline-node-date {
  position: relative;
  z-index: 1;
  display: block;
}

.timeline-node-title {
  font-size: 12px;
  line-height: 13px;
  font-weight: 600;
  color: var(--on-surface);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  align-self: center;
}

.timeline-node-date {
  font-size: 11px;
  line-height: 11px;
  font-weight: 600;
  color: var(--on-surface-variant);
  align-self: end;
}

.timeline-node-top .timeline-node-label,
.timeline-node-bottom .timeline-node-label {
  padding: 4px 7px 3px;
}

.timeline-node:hover .timeline-node-label::before,
.timeline-node:focus-visible .timeline-node-label::before {
  border-color: rgba(0, 74, 198, 0.32);
  box-shadow: 0 0 0 2px rgba(0, 74, 198, 0.08);
}

.timeline-node:focus-visible {
  outline: none;
}

.axis-now-marker {
  position: absolute;
  width: 46px;
  height: var(--axis-now-line-height, 136px);
  transform: translateX(-50%);
  z-index: 7;
  pointer-events: none;
}

.axis-now-marker::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  height: var(--axis-now-line-height, 136px);
  border-left: 2px solid var(--error);
  transform: translateX(-50%);
}

.axis-now-pill {
  position: absolute;
  left: 50%;
  top: 4px;
  min-width: 46px;
  padding: 2px 7px;
  border-radius: 7px;
  background: var(--error);
  border: 2px solid #ffffff;
  color: #ffffff;
  font-size: 11px;
  line-height: 16px;
  font-weight: 700;
  transform: translateX(-50%);
  text-align: center;
  box-shadow: 0 6px 12px rgba(186, 26, 26, 0.16);
}

.axis-now-date {
  position: absolute;
  left: 50%;
  top: 27px;
  transform: translateX(-50%);
  font-size: 11px;
  line-height: 14px;
  font-weight: 600;
  color: var(--on-surface-variant);
}

.axis-canvas .time-marker {
  z-index: 7;
}

.axis-canvas .time-marker::after {
  top: 40px;
  height: var(--axis-marker-line-height, 96px);
}

.axis-canvas .marker-label {
  min-width: 58px;
  height: 36px;
  padding: 4px 7px 5px;
  border-radius: 7px;
  box-shadow: 0 6px 12px rgba(0, 74, 198, 0.14);
}

.axis-canvas .marker-label span {
  font-size: 12px;
  line-height: 14px;
}

.axis-canvas .marker-label small {
  margin-top: 1px;
  font-size: 11px;
  line-height: 13px;
}

.axis-canvas .marker-label::after {
  bottom: -5px;
  border-width: 5px;
  border-bottom: 0;
}

.axis-marker {
  position: absolute;
  top: calc(var(--axis-y) - 7px);
  width: 14px;
  height: 14px;
  border: 3px solid #ffffff;
  border-radius: 999px;
  transform: translateX(-50%);
  z-index: 4;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 1), 0 4px 10px rgba(0, 74, 198, 0.18);
}

.axis-marker.done {
  background: var(--green);
  box-shadow: 0 0 0 2px rgba(0, 153, 102, 0.2), 0 4px 10px rgba(0, 153, 102, 0.18);
}

.axis-marker.delay {
  background: #4edea3;
  box-shadow: 0 0 0 2px rgba(0, 153, 102, 0.16), 0 4px 10px rgba(0, 153, 102, 0.14);
}

.axis-marker.active {
  background: var(--blue);
}

.axis-marker.planned {
  background: #cfd4db;
  box-shadow: 0 0 0 2px rgba(144, 161, 185, 0.24), 0 4px 10px rgba(90, 99, 112, 0.14);
}

.axis-label {
  position: absolute;
  top: calc(var(--axis-y) + 24px);
  width: 132px;
  color: var(--on-surface-variant);
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
  text-align: center;
  z-index: 3;
}

.axis-label.level-1 { top: calc(var(--axis-y) + 74px); }
.axis-label.level-2 { top: calc(var(--axis-y) + 124px); }

.axis-label small {
  display: block;
  margin-top: 3px;
  color: var(--on-surface-variant);
  font-size: 13px;
  line-height: 20px;
  font-weight: 500;
}

.axis-label .delay-note {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #eefbf3;
  color: #007a53;
  font-size: 13px;
  line-height: 20px;
  font-weight: 500;
}

.axis-label-leader {
  position: absolute;
  border-top: 1px dashed rgba(98, 116, 142, 0.48);
  pointer-events: none;
  z-index: 2;
}

.detail-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  justify-content: start;
  gap: 16px;
  padding: 24px 0 0;
  overflow-x: auto;
}

.project-plan-card > .detail-grid {
  padding: 20px;
  border-top: 1px solid var(--surface-container);
  background: var(--surface-container-lowest);
}

.g8-review-page {
  position: relative;
  margin-top: 24px;
  padding: 20px;
  border: 1px solid var(--surface-container);
  border-radius: 16px;
  background: var(--surface-container-lowest);
  box-shadow: var(--shadow);
}

.g8-review-page[hidden] {
  display: none;
}

.review-intro {
  margin-top: 6px;
  color: var(--on-surface-variant);
  font-size: 14px;
  line-height: 22px;
  font-weight: 400;
}

.review-progress {
  display: none;
}

.progress-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green) 0 62%, #e2e8f0 62%);
  transform: translateY(-50%);
}

.progress-node {
  position: relative;
  z-index: 1;
  justify-self: center;
  width: 62px;
  height: 62px;
  border: 5px solid #ffffff;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 35px;
  font-weight: 900;
  box-shadow: 0 0 0 2px rgba(226, 232, 240, 0.9), 0 7px 16px rgba(15, 23, 43, 0.12);
}

.progress-node.done {
  background: #00bf72;
}

.progress-node.fail {
  background: #f20556;
}

.review-steps {
  position: relative;
  display: grid;
  gap: 0;
  margin-top: 28px;
}

.review-step {
  position: relative;
  min-height: 0;
  margin-left: 48px;
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid var(--surface-container);
  border-radius: 16px;
  background: var(--surface-container-low);
  box-shadow: none;
}

.review-step::before {
  content: "✓";
  position: absolute;
  left: -48px;
  top: 14px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border: 4px solid #ffffff;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--green);
  color: #ffffff;
  font-size: 18px;
  line-height: 1;
  font-weight: 800;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.14);
}

.review-step::after {
  content: "";
  position: absolute;
  left: -33px;
  top: 42px;
  bottom: -28px;
  z-index: 1;
  width: 2px;
  background: var(--green);
}

.review-step:last-child {
  margin-bottom: 0;
}

.review-step:last-child::after {
  display: none;
}

.review-step h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--on-surface);
  font-family: Manrope, Inter, sans-serif;
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 18px;
  padding: 2px 7px;
  border-radius: 999px;
  font-family: Inter, sans-serif;
  font-size: 11px;
  line-height: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.step-badge.done {
  background: var(--green-soft);
  color: var(--green);
}

.step-badge.failed {
  background: var(--error);
  color: #ffffff;
}

.review-date {
  margin-top: 8px;
  color: var(--outline);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
}

.review-step hr {
  margin: 14px 0;
  border: 0;
  border-top: 1px solid var(--surface-container-highest);
}

.review-step p:not(.review-date) {
  color: var(--on-surface-variant);
  font-size: 14px;
  line-height: 22px;
  font-weight: 400;
}

.review-step.failed {
  border: 2px solid rgba(186, 26, 26, 0.2);
  background: var(--error-soft);
}

.review-step.failed::before {
  content: "!";
  background: var(--error);
  box-shadow: 0 0 0 4px rgba(186, 26, 26, 0.1), 0 1px 3px rgba(15, 23, 42, 0.14);
}

.review-step.failed h3,
.review-step.failed .review-date {
  color: var(--error);
}

.attachment-chip {
  margin-top: 14px;
  border: 1px solid var(--surface-container);
  border-radius: 10px;
  background: var(--surface-container-lowest);
  color: var(--on-surface-variant);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  font: inherit;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
}

.attachment-chip .material-symbols-outlined {
  color: var(--blue);
  font-size: 18px;
}

.attachment-chip:hover,
.attachment-chip:focus-visible,
.attachment-chip[aria-expanded="true"] {
  border-color: rgba(0, 74, 198, 0.28);
  color: var(--blue);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 74, 198, 0.1);
}

.feedback-card {
  padding: 12px;
  border: 1px solid rgba(186, 26, 26, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.review-step .feedback-card p {
  color: var(--on-surface-variant);
  font-size: 13px;
  line-height: 20px;
  font-weight: 500;
}

.review-step .feedback-card .feedback-title {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--error);
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
}

.feedback-title .material-symbols-outlined {
  font-size: 17px;
}

.feedback-card strong {
  color: var(--error);
  font-weight: 700;
}

.deliverables-section {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--surface-container);
}

.deliverables-section[hidden] {
  display: none;
}

.deliverables-head {
  display: grid;
  justify-items: start;
  gap: 10px;
  margin-bottom: 16px;
}

.deliverables-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px 28px;
  color: var(--on-surface-variant);
  font-size: 13px;
  line-height: 20px;
  font-weight: 600;
}

.deliverables-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  color: var(--on-surface-variant);
}

.deliverables-meta span::before {
  content: "";
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  background: var(--meta-color);
  -webkit-mask: var(--meta-icon) center / contain no-repeat;
  mask: var(--meta-icon) center / contain no-repeat;
}

.deliverables-meta .meta-doc {
  --meta-color: var(--blue);
  --meta-icon: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='3' y='2' width='8' height='10' rx='1.5' stroke='black' stroke-width='1.4'/%3E%3Cpath d='M5.2 5h3.6M5.2 7h2.8' stroke='black' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.deliverables-meta .meta-check {
  --meta-color: var(--green);
  --meta-icon: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='7' cy='7' r='5.4' stroke='black' stroke-width='1.4'/%3E%3Cpath d='M4.6 7.1l1.5 1.5 3.3-3.4' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.deliverables-meta .meta-people {
  --meta-color: var(--blue);
  --meta-icon: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='5.2' cy='5' r='2' stroke='black' stroke-width='1.3'/%3E%3Cpath d='M1.8 11c.5-1.8 1.6-2.7 3.4-2.7s2.9.9 3.4 2.7' stroke='black' stroke-width='1.3' stroke-linecap='round'/%3E%3Cpath d='M9.2 4.1a1.7 1.7 0 011.9 2.7M9.8 8.4c1.3.2 2.1 1 2.4 2.3' stroke='black' stroke-width='1.3' stroke-linecap='round'/%3E%3C/svg%3E");
}

.deliverables-table-wrap {
  overflow: hidden;
  border: 1px solid var(--surface-container);
  border-radius: 12px;
  background: var(--surface-container-lowest);
}

.deliverables-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  color: var(--on-surface-variant);
  font-size: 13px;
  line-height: 20px;
  font-weight: 500;
}

.deliverables-table th,
.deliverables-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--surface-container);
  border-right: 1px solid var(--surface-container);
  vertical-align: middle;
}

.deliverables-table th:last-child,
.deliverables-table td:last-child {
  border-right: 0;
}

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

.deliverables-table th {
  background: var(--surface-container-low);
  color: var(--on-surface);
  font-weight: 700;
  text-align: left;
}

.deliverables-table th:nth-child(1),
.deliverables-table td:nth-child(1),
.deliverables-table th:nth-child(2),
.deliverables-table td:nth-child(2),
.deliverables-table th:nth-child(6),
.deliverables-table td:nth-child(6) {
  text-align: center;
}

.deliverables-table th:nth-child(1) { width: 88px; }
.deliverables-table th:nth-child(2) { width: 90px; }
.deliverables-table th:nth-child(3) { width: 180px; }
.deliverables-table th:nth-child(5) { width: 170px; }
.deliverables-table th:nth-child(6) { width: 120px; }

.deliverables-table tbody tr:hover {
  background: var(--surface-bright);
}

.status-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 13px;
  line-height: 20px;
  font-weight: 700;
}

.organization-section {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid var(--surface-container);
  border-radius: 16px;
  background: var(--surface-container-lowest);
  box-shadow: var(--shadow);
}

.organization-heading {
  margin-bottom: 28px;
}

.organization-heading .section-icon .material-symbols-outlined {
  color: currentColor;
  font-size: 24px;
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
}

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

.org-group {
  min-width: 0;
}

.org-group-wide {
  grid-column: span 2;
}

.org-stack {
  display: grid;
  gap: 24px;
  align-content: start;
}

.org-group h3 {
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--surface-container);
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-family: Manrope, Inter, sans-serif;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}

.org-group h3 span {
  width: 6px;
  height: 16px;
  border-radius: 999px;
  background: var(--blue);
  flex: 0 0 auto;
}

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

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

.org-member {
  padding: 12px;
  border: 1px solid var(--surface-container);
  border-radius: 12px;
  background: var(--surface-container-lowest);
  display: grid;
  gap: 3px;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.org-member:hover {
  border-color: rgba(0, 74, 198, 0.24);
  box-shadow: 0 10px 20px rgba(0, 74, 198, 0.08);
  transform: translateY(-1px);
}

.org-member strong {
  color: var(--on-surface);
  font-size: 14px;
  line-height: 22px;
  font-weight: 700;
}

.org-member span {
  color: var(--on-surface-variant);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
}

.info-card {
  position: relative;
  z-index: 2;
  min-height: 300px;
  height: auto;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid var(--surface-container);
  outline: none;
  display: flex;
  flex-direction: column;
  background: var(--surface-container-lowest);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.info-card:hover,
.info-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 20px 32px rgba(0, 74, 198, 0.1);
}

.info-card p {
  margin-top: 0;
  font-size: 14px;
  line-height: 22px;
  font-weight: 400;
  color: var(--on-surface-variant);
}

.card-top {
  display: block;
  margin-bottom: 16px;
}

.card-top::after {
  content: "";
  display: block;
  clear: both;
}

.card-title-group {
  align-self: center;
  display: grid;
  gap: 8px;
  min-width: 0;
}

.card-top h3 {
  display: block;
  color: var(--on-surface);
  font-family: Manrope, Inter, sans-serif;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  overflow-wrap: break-word;
  word-break: normal;
}

.card-department {
  color: var(--on-surface-variant);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
}

.status-icon {
  float: left;
  width: 40px;
  height: 40px;
  margin-right: 12px;
  padding: 0;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, currentColor 10%, transparent);
  color: currentColor;
  font-size: 0;
  line-height: 0;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.status-icon.material-symbols-outlined {
  font-size: 0 !important;
  line-height: 0 !important;
  letter-spacing: 0;
}

.status-icon::before {
  content: "";
  width: 24px;
  height: 24px;
  display: block;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='12' r='8.25' stroke='black' stroke-width='2.1'/%3E%3Cpath d='M8.2 12.1L10.8 14.7L15.9 9.6' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='12' r='8.25' stroke='black' stroke-width='2.1'/%3E%3Cpath d='M8.2 12.1L10.8 14.7L15.9 9.6' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.info-card.orange .status-icon::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 4.25L20.25 18.5H3.75L12 4.25Z' stroke='black' stroke-width='2.05' stroke-linejoin='round'/%3E%3Cpath d='M12 9.25V13.1' stroke='black' stroke-width='2.05' stroke-linecap='round'/%3E%3Ccircle cx='12' cy='16.25' r='1.15' fill='black'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 4.25L20.25 18.5H3.75L12 4.25Z' stroke='black' stroke-width='2.05' stroke-linejoin='round'/%3E%3Cpath d='M12 9.25V13.1' stroke='black' stroke-width='2.05' stroke-linecap='round'/%3E%3Ccircle cx='12' cy='16.25' r='1.15' fill='black'/%3E%3C/svg%3E");
}

.info-card:hover .status-icon,
.info-card:focus-visible .status-icon {
  transform: scale(1.1);
}

.pill {
  float: right;
  margin-left: 8px;
  margin-top: 1px;
  min-height: 20px;
  height: auto;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  font-size: 10px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.card-body {
  display: grid;
  gap: 10px;
  align-content: start;
  flex: 1;
  min-height: 0;
}

.meta-line {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 500;
  color: var(--on-surface-variant);
}

.meta-line span {
  color: var(--on-surface-variant);
  font-size: 13px;
  line-height: 20px;
  font-weight: 500;
}

.meta-line .material-symbols-outlined {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--on-surface-variant);
  font-size: 18px;
}

.meta-line em {
  color: var(--error);
  font-style: normal;
  font-weight: 700;
}

.muted-copy {
  color: var(--on-surface-variant);
  font-size: 13px;
  line-height: 21px;
  font-weight: 400;
}

.owner {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--surface-container);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--on-surface-variant);
}

.owner::before {
  content: "";
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='7' cy='4.5' r='2' stroke='%2390A1B9' stroke-width='1.2'/%3E%3Cpath d='M3.5 11c.55-1.75 1.7-2.6 3.5-2.6s2.95.85 3.5 2.6' stroke='%2390A1B9' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
}

.owner strong {
  color: var(--on-surface);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
}

.owner span {
  color: var(--on-surface-variant);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
}

.info-card.blue {
  color: var(--blue);
  background: var(--surface-container-lowest);
}

.info-card.blue p {
  color: var(--on-surface-variant);
}

.info-card.blue .pill {
  background: var(--blue-soft);
}

.info-card.blue:hover .status-icon,
.info-card.blue:focus-visible .status-icon {
  background: var(--blue);
  color: #ffffff;
}

.info-card.success {
  color: var(--green);
}

.info-card.success p {
  color: var(--on-surface-variant);
}

.info-card.success.pale {
  background: var(--surface-container-lowest);
}

.info-card.success.pale .pill {
  background: var(--green-soft);
}

.info-card.success:hover .status-icon,
.info-card.success:focus-visible .status-icon {
  background: var(--green);
  color: #ffffff;
}

.info-card.success.deep {
  background: #eefbf3;
  color: #00963b;
}

.info-card.success.deep .pill {
  background: var(--green-soft);
}

.info-card.orange {
  color: var(--orange);
  background: var(--surface-container-lowest);
}

.info-card.orange:hover,
.info-card.orange:focus-visible {
  border-color: var(--orange);
}

.info-card.orange p {
  color: var(--on-surface-variant);
}

.info-card.orange .pill {
  background: var(--orange-soft);
  color: var(--orange);
}

.info-card.orange:hover .status-icon,
.info-card.orange:focus-visible .status-icon {
  background: var(--orange);
  color: #ffffff;
}

.plan-summary-cards .info-card .card-top h3 {
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}

.plan-summary-cards .info-card .card-department {
  color: var(--on-surface-variant);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
}

.plan-summary-cards .info-card .pill {
  min-height: 20px;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 10px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.plan-summary-cards .info-card .owner strong,
.plan-summary-cards .info-card .owner span {
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
}

.plan-summary-cards .info-card.is-selected {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 74, 198, 0.12), 0 18px 42px rgba(15, 23, 42, 0.08);
}

.sync-footer {
  padding: 28px 0 12px;
  text-align: center;
  border-top: 1px solid var(--surface-container);
  margin-top: 24px;
}

.sync-footer p {
  color: var(--on-surface-variant);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
}

.sync-footer span {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 8px;
  border-radius: 999px;
  background: var(--green);
  vertical-align: 1px;
  animation: syncPulse 1.8s ease-in-out infinite;
}

@keyframes syncPulse {
  0%, 100% { opacity: 0.35; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1); }
}

@media (max-width: 1280px) {
  body {
    min-width: 100%;
    overflow-x: auto;
  }
}
