:root {
  color-scheme: light;
  --bg: #f6f7f4;
  --surface: #ffffff;
  --ink: #17211d;
  --muted: #68736f;
  --line: #d9dfda;
  --green: #2f6f56;
  --blue: #315d82;
  --amber: #9a6a1d;
  --rose: #9b4345;
  --shadow: 0 18px 45px rgba(27, 45, 39, 0.09);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 40px;
}

.topbar,
.panel-heading,
.governance-band {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.topbar {
  padding: 10px 0 22px;
}

.eyebrow,
.section-kicker,
.metric-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 1.08rem;
  line-height: 1.35;
  letter-spacing: 0;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

.status-cluster {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  min-width: 220px;
}

.pill,
.source {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.pill-safe {
  border-color: rgba(47, 111, 86, 0.24);
  background: rgba(47, 111, 86, 0.1);
  color: var(--green);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.metric-panel,
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.metric-panel {
  min-height: 156px;
  padding: 20px;
  border-top: 4px solid var(--green);
}

.metric-panel strong {
  display: block;
  margin: 10px 0 8px;
  font-size: 2rem;
  line-height: 1;
}

.metric-panel p {
  margin-bottom: 0;
}

.accent-blue {
  border-top-color: var(--blue);
}

.accent-amber {
  border-top-color: var(--amber);
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.85fr);
  gap: 16px;
}

.panel {
  min-height: 320px;
  padding: 20px;
}

.schedule-panel,
.progress-panel {
  min-height: 378px;
}

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

.timeline-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

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

.timeline-row time {
  color: var(--green);
  font-weight: 800;
}

.timeline-row strong,
.check-list strong,
.business-row strong {
  display: block;
  font-size: 0.96rem;
}

.timeline-row p,
.check-list p {
  margin: 4px 0 0;
}

.check-list {
  display: grid;
  gap: 18px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 12px;
}

.dot {
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--blue);
}

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

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

.business-list {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.business-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(140px, 1fr) 82px;
  align-items: center;
  gap: 14px;
}

meter {
  width: 100%;
  height: 12px;
}

meter::-webkit-meter-bar {
  border: 0;
  border-radius: 999px;
  background: #edf0ed;
}

meter::-webkit-meter-optimum-value {
  border-radius: 999px;
  background: var(--green);
}

.focus-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding-left: 22px;
  color: var(--ink);
}

.focus-list li {
  padding-left: 4px;
  line-height: 1.55;
}

.governance-band {
  margin-top: 16px;
  padding: 20px;
  border: 1px solid rgba(47, 111, 86, 0.24);
  border-radius: 8px;
  background: #e9f0eb;
}

.governance-band p {
  max-width: 760px;
  margin-bottom: 0;
}

@media (max-width: 860px) {
  .topbar,
  .governance-band,
  .panel-heading {
    display: grid;
  }

  .status-cluster {
    justify-content: flex-start;
    min-width: 0;
  }

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

  .panel,
  .schedule-panel,
  .progress-panel {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 20px, 1180px);
    padding-top: 18px;
  }

  .metric-panel,
  .panel,
  .governance-band {
    padding: 16px;
  }

  .timeline-row,
  .business-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .source {
    width: fit-content;
  }
}
