:root {
  color-scheme: light;
  --ink: #17212b;
  --muted: #637083;
  --line: #d9e1e8;
  --surface: #ffffff;
  --surface-soft: #f5f7fa;
  --nav: #223142;
  --nav-soft: #2f4255;
  --green: #1c8c67;
  --blue: #3267b7;
  --amber: #b57914;
  --rose: #b5495b;
  --shadow: 0 14px 34px rgba(38, 54, 71, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--surface-soft);
  color: var(--ink);
  font-family:
    Inter, Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 20px;
  background: var(--nav);
  color: #eef5f3;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  background: #ffffff;
  color: var(--nav);
}

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

.brand strong {
  font-size: 17px;
}

.brand span {
  margin-top: 3px;
  color: #b9c7d4;
  font-size: 13px;
}

.nav-list {
  display: grid;
  gap: 6px;
}

.nav-link {
  min-height: 42px;
  padding: 11px 12px;
  color: #cfdae3;
  text-decoration: none;
  border-left: 3px solid transparent;
}

.nav-link:hover,
.nav-link.is-active {
  background: var(--nav-soft);
  border-left-color: var(--green);
  color: #ffffff;
}

.sidebar-note {
  margin-top: auto;
  padding: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-note p {
  margin: 8px 0 0;
  color: #d5e0e9;
  font-size: 13px;
  line-height: 1.55;
}

.content {
  padding: 28px;
  display: grid;
  gap: 22px;
}

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

.eyebrow,
.label {
  margin: 0;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 820px;
  margin: 6px 0 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin: 8px 0 10px;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 17px;
  letter-spacing: 0;
}

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

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
}

.icon-button:hover {
  border-color: var(--blue);
}

.date-pill,
.status-dot {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.status-dot.is-green {
  color: var(--green);
  border-color: rgba(28, 140, 103, 0.28);
  background: rgba(28, 140, 103, 0.08);
}

.status-dot.is-amber {
  color: var(--amber);
  border-color: rgba(181, 121, 20, 0.28);
  background: rgba(181, 121, 20, 0.1);
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.segmented {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 4px;
}

.segment {
  min-height: 38px;
  border: 1px solid transparent;
  background: transparent;
  padding: 8px 12px;
  color: var(--muted);
  font-weight: 700;
}

.segment:hover,
.segment.is-active {
  background: #eaf1f6;
  border-color: #cdd9e2;
  color: var(--ink);
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: min(360px, 100%);
}

.search span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.search input {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  padding: 8px 10px;
  background: #fbfcfd;
  color: var(--ink);
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.snapshot-grid {
  align-items: stretch;
}

.span-2 {
  grid-column: span 2;
}

.panel,
.roadmap-card,
.table-wrap {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel {
  padding: 20px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.metric {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 188px;
}

.metric strong {
  margin-top: 18px;
  font-size: 42px;
  letter-spacing: 0;
}

.metric p {
  margin-bottom: 0;
}

.thesis-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.thesis-strip div {
  min-height: 82px;
  padding: 12px;
  border: 1px solid var(--line);
  background: #f8fafb;
}

.thesis-strip b,
.thesis-strip span {
  display: block;
}

.thesis-strip b {
  color: var(--green);
  font-size: 20px;
}

.thesis-strip span {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 800;
}

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

.map-step {
  min-height: 150px;
  padding: 20px;
  border-right: 1px solid var(--line);
}

.map-step:last-child {
  border-right: 0;
}

.map-step span {
  display: inline-block;
  color: var(--green);
  font-weight: 900;
  margin-bottom: 18px;
}

.map-step strong {
  display: block;
  font-size: 18px;
}

.map-step p {
  margin-bottom: 0;
  font-size: 14px;
}

.section-block {
  display: grid;
  gap: 14px;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.section-title h2 {
  margin-bottom: 0;
}

.two-column,
.action-grid,
.growth-grid,
.decision-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.action-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.action-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  width: 100%;
  padding: 10px 14px;
  background: var(--green);
  color: #ffffff;
  text-decoration: none;
  font-weight: 900;
}

.primary-link:hover {
  background: #176f53;
}

.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: #f7fafb;
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
}

.secondary-link:hover {
  border-color: var(--blue);
}

.report-card {
  display: grid;
  gap: 16px;
}

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

.report-summary div {
  min-height: 82px;
  padding: 12px;
  border: 1px solid var(--line);
  background: #f8fafb;
}

.report-summary span,
.report-summary strong {
  display: block;
}

.report-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.report-summary strong {
  margin-top: 8px;
  color: var(--ink);
  line-height: 1.35;
}

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

.compact-list {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--ink);
}

.compact-list li {
  line-height: 1.45;
}

.roadmap {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.roadmap-card {
  min-height: 230px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.roadmap-card span {
  color: var(--blue);
  font-weight: 900;
  font-size: 13px;
}

.roadmap-card p {
  margin: 0;
}

.roadmap-card b {
  margin-top: auto;
  color: var(--green);
  line-height: 1.45;
}

.budget-bars {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.budget-bars div {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  overflow: hidden;
}

.budget-bars div::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--bar);
  background: rgba(28, 140, 103, 0.12);
}

.budget-bars span,
.budget-bars b {
  position: relative;
}

.number-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding-left: 20px;
}

.number-list li {
  line-height: 1.5;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: #edf3f6;
  color: var(--ink);
  font-size: 13px;
}

td {
  color: #334153;
  line-height: 1.45;
}

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

.check-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.check-list label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

.check-list input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--green);
  flex: 0 0 auto;
}

.pitch-card p {
  margin-bottom: 0;
}

.text-button {
  min-height: 34px;
  border: 1px solid var(--line);
  background: #f7fafb;
  color: var(--ink);
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 800;
}

.text-button:hover {
  border-color: var(--blue);
}

.copy-status {
  display: block;
  min-height: 20px;
  margin-top: 12px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.is-hidden {
  display: none !important;
}

@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    padding: 18px;
  }

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

  .nav-link {
    text-align: center;
    border-left: 0;
    border-bottom: 3px solid transparent;
  }

  .nav-link:hover,
  .nav-link.is-active {
    border-left-color: transparent;
    border-bottom-color: var(--green);
  }

  .sidebar-note {
    display: none;
  }

  .section-grid,
  .roadmap,
  .operating-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .span-2 {
    grid-column: span 2;
  }

  .map-step:nth-child(2) {
    border-right: 0;
  }

  .map-step:nth-child(1),
  .map-step:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  .content {
    padding: 18px;
  }

  .topbar,
  .toolbar,
  .section-title {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar-actions {
    justify-content: space-between;
  }

  .segmented {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .search {
    min-width: 0;
  }

  .nav-list,
  .section-grid,
  .roadmap,
  .operating-map,
  .two-column,
  .action-grid,
  .report-summary,
  .report-actions,
  .growth-grid,
  .decision-grid,
  .thesis-strip {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: auto;
  }

  .map-step,
  .map-step:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .map-step:last-child {
    border-bottom: 0;
  }
}

@media print {
  .sidebar,
  .toolbar,
  .topbar-actions,
  .text-button {
    display: none;
  }

  .shell,
  .content {
    display: block;
  }

  .content {
    padding: 0;
  }

  .panel,
  .roadmap-card,
  .table-wrap {
    box-shadow: none;
    break-inside: avoid;
  }
}
