:root {
  --line-green: #06c755;
  --line-green-dark: #00a848;
  --ink: #13231b;
  --ink-2: #31443a;
  --muted: #708078;
  --paper: #ffffff;
  --canvas: #f4f7f5;
  --line: #dce5df;
  --line-strong: #bdccc3;
  --shadow: 0 16px 50px rgba(19, 35, 27, 0.1);
  --radius: 18px;
  --task-col: 330px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, "Helvetica Neue", Arial, "Noto Sans JP", sans-serif;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

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

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 12px clamp(20px, 4vw, 64px);
  border-bottom: 1px solid rgba(220, 229, 223, 0.85);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  color: white;
  background: var(--line-green);
  box-shadow: 0 9px 22px rgba(6, 199, 85, 0.24);
}

.brand-mark svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
  stroke: none;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 15px;
  letter-spacing: -0.02em;
}

.brand small {
  margin-top: -2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  gap: 8px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 11px;
  cursor: pointer;
  font-weight: 750;
  transition: 160ms ease;
}

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

.button:active {
  transform: translateY(0);
}

.button:focus-visible,
.view-toggle button:focus-visible,
.icon-button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(6, 199, 85, 0.22);
  outline-offset: 2px;
}

.button svg {
  width: 18px;
  height: 18px;
}

.button-ghost {
  border-color: var(--line);
  background: var(--paper);
}

.button-ghost:hover {
  border-color: var(--line-strong);
  background: #f8faf9;
}

.button-dark {
  color: white;
  background: var(--ink);
}

.button-dark:hover {
  background: #233a2e;
}

.button-primary {
  color: white;
  background: var(--line-green);
  box-shadow: 0 10px 22px rgba(6, 199, 85, 0.22);
}

.button-primary:hover {
  background: var(--line-green-dark);
}

.button-large {
  min-height: 52px;
  border-radius: 13px;
  font-size: 15px;
}

main {
  overflow: hidden;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
  gap: clamp(48px, 8vw, 120px);
  align-items: center;
  min-height: 520px;
  padding: 74px clamp(24px, 6vw, 100px) 84px;
  color: white;
  background:
    radial-gradient(circle at 88% 14%, rgba(6, 199, 85, 0.19), transparent 27%),
    radial-gradient(circle at 54% 95%, rgba(42, 93, 66, 0.7), transparent 30%),
    linear-gradient(125deg, #0c1d14 0%, #172c20 55%, #0f2519 100%);
}

.hero::before,
.hero::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.hero::before {
  top: 0;
  right: 8%;
  width: 1px;
  height: 100%;
  opacity: 0.1;
  background: white;
  box-shadow: -220px 0 white, 220px 0 white;
}

.hero::after {
  right: -90px;
  bottom: -150px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(255, 255, 255, 0.018), 0 0 0 140px rgba(255, 255, 255, 0.015);
}

.hero-copy,
.date-card {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--line-green);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.16em;
}

.eyebrow::before {
  width: 24px;
  height: 2px;
  content: "";
  background: currentColor;
}

.hero h1 {
  max-width: 790px;
  margin: 22px 0 20px;
  font-size: clamp(35px, 4.5vw, 64px);
  line-height: 1.13;
  letter-spacing: -0.055em;
}

.hero-copy > p {
  max-width: 620px;
  margin: 0;
  color: #c4d2ca;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.8;
}

.date-card {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 22px;
  color: var(--ink);
  background: white;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.date-card-heading {
  display: flex;
  gap: 14px;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.step-number {
  display: grid;
  flex: 0 0 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.date-card h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.date-card-heading p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.date-card > label {
  display: block;
  margin: 22px 0 8px;
  font-size: 12px;
  font-weight: 800;
}

.date-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}

.date-input-wrap svg {
  position: absolute;
  left: 15px;
  z-index: 1;
  color: var(--line-green-dark);
  pointer-events: none;
}

.date-input-wrap input {
  width: 100%;
  height: 54px;
  padding: 0 15px 0 48px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--ink);
  background: #fbfcfb;
  font-size: 16px;
  font-weight: 750;
}

.date-card .button-large {
  width: 100%;
}

.text-button {
  display: block;
  margin: 13px auto 0;
  padding: 2px;
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.summary-section,
.schedule-section {
  max-width: 1600px;
  margin: 0 auto;
  padding: 74px clamp(20px, 4vw, 64px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 9px 0 0;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.045em;
}

.section-heading > p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.summary-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: 13px;
}

.summary-card {
  min-height: 150px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 5px 20px rgba(19, 35, 27, 0.035);
}

.summary-card-accent {
  position: relative;
  overflow: hidden;
  color: white;
  border-color: var(--ink);
  background: var(--ink);
}

.summary-card-accent::after {
  position: absolute;
  right: -35px;
  bottom: -55px;
  width: 150px;
  height: 150px;
  border: 28px solid rgba(6, 199, 85, 0.16);
  border-radius: 50%;
  content: "";
}

.summary-label {
  display: block;
  margin-bottom: 19px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.summary-card-accent .summary-label,
.summary-card-accent small {
  color: #b8c8bf;
}

.summary-card strong {
  position: relative;
  z-index: 1;
  display: block;
  font-size: clamp(26px, 2.5vw, 38px);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -0.04em;
}

.summary-card strong i {
  margin-left: 5px;
  font-size: 14px;
  font-style: normal;
  letter-spacing: 0;
}

.summary-card small {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 13px;
  color: var(--muted);
  font-size: 11px;
}

.milestone-card {
  margin-top: 14px;
  padding: 26px 28px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.milestone-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.milestone-card-title h3 {
  margin: 0;
  font-size: 15px;
}

.milestone-card-title span {
  color: #9aaaa1;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.15em;
}

.milestone-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.milestone-track::before {
  position: absolute;
  top: 8px;
  left: 8%;
  right: 8%;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--line-green), var(--line-strong));
}

.milestone {
  position: relative;
  z-index: 1;
  text-align: center;
}

.milestone-dot {
  display: block;
  width: 17px;
  height: 17px;
  margin: 0 auto 12px;
  border: 4px solid white;
  border-radius: 50%;
  background: var(--line-green);
  box-shadow: 0 0 0 1px var(--line-green);
}

.milestone:last-child .milestone-dot {
  background: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}

.milestone strong,
.milestone small {
  display: block;
}

.milestone strong {
  font-size: 12px;
}

.milestone small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.schedule-section {
  max-width: none;
  padding-top: 68px;
  background: var(--paper);
}

.schedule-section > * {
  max-width: 1600px;
  margin-right: auto;
  margin-left: auto;
}

.schedule-heading {
  align-items: center;
}

.view-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--canvas);
}

.view-toggle button {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.view-toggle button.is-active {
  color: var(--ink);
  background: white;
  box-shadow: 0 2px 8px rgba(19, 35, 27, 0.08);
}

.view-toggle svg {
  width: 16px;
  height: 16px;
}

.toolbar {
  display: flex;
  gap: 9px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #f8faf9;
}

.search-field {
  position: relative;
  display: flex;
  flex: 1 1 340px;
  align-items: center;
}

.search-field svg {
  position: absolute;
  left: 12px;
  width: 17px;
  height: 17px;
  color: var(--muted);
}

.search-field input,
.select-field select {
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: white;
}

.search-field input {
  width: 100%;
  padding: 0 13px 0 39px;
}

.search-field input::placeholder {
  color: #97a69d;
}

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

.select-field span {
  padding-left: 2px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.select-field select {
  width: 100%;
  padding: 0 30px 0 11px;
  cursor: pointer;
}

.compact {
  min-height: 40px;
  padding: 0 12px;
  font-size: 11px;
}

.result-count {
  flex: 0 0 auto;
  padding: 0 5px 10px;
  color: var(--muted);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.schedule-note {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 13px;
  margin-bottom: 13px;
  color: var(--muted);
}

.schedule-note svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: var(--line-green-dark);
}

.schedule-note p {
  margin: 0;
  font-size: 11px;
}

.view-panel {
  margin-top: 0;
}

.gantt-shell,
.table-wrap {
  overflow: auto;
  max-height: min(72vh, 900px);
  border: 1px solid var(--line);
  border-radius: 15px;
  background: white;
  scrollbar-color: #b8c8bf transparent;
  scrollbar-width: thin;
}

.gantt-content {
  min-width: 1180px;
}

.gantt-header,
.gantt-row {
  display: grid;
  grid-template-columns: var(--task-col) minmax(850px, 1fr);
}

.gantt-header {
  position: sticky;
  z-index: 20;
  top: 0;
  height: 54px;
  border-bottom: 1px solid var(--line-strong);
  background: #f6f9f7;
}

.gantt-header-label {
  position: sticky;
  z-index: 25;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 17px;
  border-right: 1px solid var(--line-strong);
  background: #f6f9f7;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.09em;
}

.gantt-header-label span:last-child {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0;
}

.timeline-header,
.timeline-lane {
  position: relative;
  min-width: 850px;
}

.month-segment {
  position: absolute;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 10px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.month-segment:nth-child(even) {
  background: rgba(220, 229, 223, 0.18);
}

.gantt-row {
  min-height: 46px;
  border-bottom: 1px solid #edf2ee;
}

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

.gantt-row:hover .gantt-task,
.gantt-row:hover .timeline-lane {
  background-color: #fbfdfc;
}

.gantt-task {
  position: sticky;
  z-index: 8;
  left: 0;
  display: grid;
  grid-template-columns: 45px minmax(0, 1fr) 56px;
  gap: 8px;
  align-items: center;
  min-width: var(--task-col);
  padding: 7px 12px;
  border-right: 1px solid var(--line-strong);
  background: white;
  cursor: pointer;
}

.gantt-task:hover .task-title {
  color: var(--line-green-dark);
}

.gantt-id {
  color: #8a9b91;
  font-size: 10px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.task-title,
.task-meta {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-title {
  font-size: 11px;
  font-weight: 760;
  transition: color 130ms ease;
}

.task-meta {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.priority-pill {
  justify-self: end;
  padding: 3px 6px;
  border-radius: 99px;
  color: #516259;
  background: #edf2ef;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.priority-pill.must {
  color: #a03933;
  background: #feecea;
}

.timeline-lane {
  overflow: hidden;
  background-image: repeating-linear-gradient(90deg, transparent 0, transparent calc(10% - 1px), rgba(220, 229, 223, 0.52) calc(10% - 1px), rgba(220, 229, 223, 0.52) 10%);
}

.gantt-bar {
  position: absolute;
  top: 50%;
  z-index: 3;
  min-width: 5px;
  height: 18px;
  border: 1px solid color-mix(in srgb, var(--bar-color) 82%, #000 18%);
  border-radius: 5px;
  background: color-mix(in srgb, var(--bar-color) 80%, white 20%);
  box-shadow: 0 2px 6px color-mix(in srgb, var(--bar-color) 20%, transparent);
  cursor: pointer;
  transform: translateY(-50%);
}

.gantt-bar:hover {
  filter: saturate(1.18) brightness(0.96);
}

.gantt-bar::after {
  position: absolute;
  top: 50%;
  right: 5px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  content: "";
  transform: translateY(-50%);
}

.gantt-row.phase-row {
  min-height: 52px;
  border-top: 1px solid var(--line-strong);
  border-bottom-color: var(--line-strong);
  background: #f5f8f6;
}

.gantt-row.phase-row:first-of-type {
  border-top: 0;
}

.phase-row .gantt-task {
  background: #f5f8f6;
}

.phase-row .gantt-id {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 8px;
  color: white;
  background: var(--ink);
}

.phase-row .task-title {
  font-size: 12px;
  font-weight: 850;
}

.phase-row .task-meta {
  color: #56685e;
}

.phase-row .gantt-bar {
  height: 10px;
  border: 0;
  border-radius: 99px;
  background: var(--ink);
  box-shadow: none;
}

.phase-row .gantt-bar::after {
  display: none;
}

.deadline-marker {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 9px;
  height: 9px;
  border: 2px solid white;
  background: #ed5c50;
  box-shadow: 0 0 0 1px #c5433a;
  transform: translate(-50%, -50%) rotate(45deg);
}

.table-wrap table {
  width: 100%;
  min-width: 1180px;
  border-collapse: collapse;
}

.table-wrap thead {
  position: sticky;
  z-index: 10;
  top: 0;
}

.table-wrap th {
  height: 46px;
  padding: 0 12px;
  color: white;
  background: var(--ink);
  font-size: 10px;
  text-align: left;
  white-space: nowrap;
}

.table-wrap td {
  padding: 12px;
  border-bottom: 1px solid #edf2ee;
  color: var(--ink-2);
  font-size: 11px;
  vertical-align: middle;
}

.table-wrap tbody tr {
  cursor: pointer;
  transition: background 120ms ease;
}

.table-wrap tbody tr:hover {
  background: #f7fbf8;
}

.table-wrap tbody tr.phase-table-row {
  background: #eff4f1;
  font-weight: 800;
}

.table-task-name {
  min-width: 250px;
}

.table-task-name small {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.06em;
}

.table-wrap td:nth-child(1),
.table-wrap td:nth-child(4),
.table-wrap td:nth-child(5),
.table-wrap td:nth-child(6) {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.deadline-text {
  color: #b1433d;
  font-weight: 800;
}

.empty-state {
  padding: 60px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: 15px;
  color: var(--muted);
  text-align: center;
}

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

.empty-state h3 {
  margin: 10px 0 3px;
  color: var(--ink);
  font-size: 15px;
}

.empty-state p {
  margin: 0;
  font-size: 11px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(20px, 4vw, 64px);
  color: #8ca096;
  background: #0d1b14;
  font-size: 10px;
}

footer p {
  margin: 0;
  color: white;
  font-weight: 750;
}

dialog {
  width: min(680px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 20px;
  color: var(--ink);
  background: white;
  box-shadow: 0 30px 100px rgba(4, 16, 9, 0.38);
}

dialog::backdrop {
  background: rgba(5, 17, 10, 0.58);
  backdrop-filter: blur(5px);
}

.dialog-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  padding: 27px 28px 22px;
  border-bottom: 1px solid var(--line);
}

.dialog-id {
  display: inline-block;
  margin-bottom: 7px;
  color: var(--line-green-dark);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.dialog-head h2 {
  margin: 0;
  font-size: clamp(20px, 4vw, 28px);
  line-height: 1.3;
  letter-spacing: -0.04em;
}

.icon-button {
  display: grid;
  flex: 0 0 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  cursor: pointer;
}

.dialog-dates {
  display: grid;
  grid-template-columns: 1fr 30px 1fr auto;
  gap: 16px;
  align-items: center;
  margin: 23px 28px;
  padding: 18px;
  border-radius: 14px;
  background: #f3f8f5;
}

.dialog-dates > div:not(.dialog-duration) span,
.dialog-dates strong {
  display: block;
}

.dialog-dates > div:not(.dialog-duration) span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.dialog-dates strong {
  margin-top: 2px;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

.dialog-dates > svg {
  color: #8aa096;
}

.dialog-duration {
  padding: 7px 10px;
  border: 1px solid #b9dec8;
  border-radius: 99px;
  color: #067d3d;
  background: #e3f8eb;
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
}

.dialog-grid {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  margin: 0;
  padding: 0 28px 30px;
}

.dialog-grid dt,
.dialog-grid dd {
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid #edf2ee;
}

.dialog-grid dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.dialog-grid dd {
  color: var(--ink-2);
  font-size: 12px;
}

.dialog-grid dd:last-child,
.dialog-grid dt:nth-last-child(2) {
  border-bottom: 0;
}

.toast {
  position: fixed;
  z-index: 100;
  right: 22px;
  bottom: 22px;
  padding: 12px 16px;
  border-radius: 11px;
  color: white;
  background: var(--ink);
  box-shadow: var(--shadow);
  font-size: 12px;
  font-weight: 750;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1000px) {
  :root {
    --task-col: 300px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 42px;
    padding-top: 62px;
  }

  .hero-copy {
    max-width: 800px;
  }

  .date-card {
    max-width: 560px;
  }

  .summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .toolbar {
    flex-wrap: wrap;
  }

  .search-field {
    flex-basis: 100%;
  }

  .result-count {
    margin-left: auto;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 64px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand small,
  .header-actions .button-ghost,
  .header-actions .button-dark svg {
    display: none;
  }

  .header-actions .button-dark {
    min-height: 38px;
    padding: 0 11px;
    font-size: 10px;
  }

  .hero {
    min-height: 0;
    padding: 52px 20px 60px;
  }

  .hero h1 {
    font-size: 37px;
  }

  .date-card {
    padding: 21px;
  }

  .summary-section,
  .schedule-section {
    padding: 56px 16px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .section-heading > p {
    text-align: left;
  }

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

  .summary-card {
    min-height: 128px;
  }

  .milestone-card {
    padding: 22px 16px 24px;
  }

  .milestone-track {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .milestone-track::before {
    top: 8px;
    bottom: 8px;
    left: 8px;
    width: 2px;
    height: auto;
  }

  .milestone {
    display: grid;
    grid-template-columns: 17px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    text-align: left;
  }

  .milestone-dot {
    margin: 0;
  }

  .milestone small {
    margin: 0;
  }

  .schedule-heading {
    flex-direction: row;
    align-items: end;
  }

  .schedule-heading .eyebrow {
    display: none;
  }

  .schedule-heading h2 {
    font-size: 26px;
  }

  .view-toggle button {
    padding: 0 9px;
  }

  .view-toggle button svg {
    display: none;
  }

  .select-field {
    flex: 1 1 calc(50% - 6px);
  }

  .toolbar .compact {
    flex: 1 1 auto;
  }

  .result-count {
    padding: 9px 4px;
  }

  .schedule-note {
    align-items: start;
  }

  .dialog-dates {
    grid-template-columns: 1fr 22px 1fr;
    margin: 18px;
    padding: 14px;
  }

  .dialog-duration {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .dialog-head {
    padding: 22px 20px 18px;
  }

  .dialog-grid {
    grid-template-columns: 1fr;
    padding: 0 20px 24px;
  }

  .dialog-grid dt {
    padding: 11px 0 0;
    border: 0;
  }

  .dialog-grid dd {
    padding: 3px 0 11px;
  }

  footer {
    flex-direction: column;
    gap: 3px;
  }
}

@media print {
  @page {
    size: A3 landscape;
    margin: 10mm;
  }

  body {
    background: white;
    font-size: 10px;
  }

  .site-header,
  .date-card,
  .toolbar,
  .schedule-note,
  .view-toggle,
  footer,
  .toast {
    display: none !important;
  }

  .hero {
    display: block;
    min-height: 0;
    padding: 22px 30px;
    color: var(--ink);
    background: white;
    border-bottom: 2px solid var(--ink);
  }

  .hero h1 {
    margin: 8px 0;
    font-size: 26px;
  }

  .hero-copy > p {
    color: var(--muted);
    font-size: 11px;
  }

  .summary-section,
  .schedule-section {
    padding: 20px 30px;
  }

  .section-heading {
    margin-bottom: 14px;
  }

  .section-heading h2 {
    font-size: 22px;
  }

  .summary-card {
    min-height: 100px;
    box-shadow: none;
  }

  .milestone-card {
    padding: 18px;
  }

  .gantt-shell,
  .table-wrap {
    overflow: visible;
    max-height: none;
    border-radius: 0;
  }

  .gantt-content {
    min-width: 0;
  }

  .gantt-header,
  .gantt-row {
    grid-template-columns: 270px minmax(0, 1fr);
  }

  .timeline-header,
  .timeline-lane {
    min-width: 0;
  }

  .gantt-task,
  .gantt-header-label {
    position: static;
    min-width: 0;
  }

  .gantt-row {
    break-inside: avoid;
  }

  .gantt-bar {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}
