:root {
  color-scheme: light;
  --paper: #f8f4ea;
  --paper-deep: #efe5d4;
  --ink: #232323;
  --muted: #716a60;
  --line: #d7cab8;
  --teal: #2f6f66;
  --clay: #c9553f;
  --blue: #385b87;
  --shadow: 0 20px 60px rgba(54, 42, 28, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 10% 10%, rgba(201, 85, 63, 0.16), transparent 26rem),
    linear-gradient(135deg, rgba(47, 111, 102, 0.12), transparent 34rem),
    var(--paper);
  color: var(--ink);
  font-family: "Songti SC", "Noto Serif CJK SC", Georgia, serif;
  overflow-x: hidden;
}

button {
  font: inherit;
}

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

.workspace {
  min-height: 46vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: stretch;
  padding: 30px 0 20px;
}

.workspace-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-family: "Gill Sans", "Avenir Next", sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 16px;
  font-size: clamp(48px, 8vw, 92px);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.lead {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(18px, 2.2vw, 25px);
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.source-note {
  width: fit-content;
  max-width: 100%;
  padding: 10px 14px;
  border-left: 4px solid var(--clay);
  background: rgba(255, 255, 255, 0.46);
  color: var(--muted);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.status-panel {
  align-self: center;
  min-height: 260px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.status-panel span {
  color: var(--muted);
}

.status-panel strong {
  display: block;
  margin: 10px 0;
  color: var(--clay);
  font-family: "Gill Sans", "Avenir Next", sans-serif;
  font-size: 76px;
  line-height: 1;
}

.status-panel p {
  min-height: 52px;
  line-height: 1.55;
}

.status-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.status-actions button:nth-child(2) {
  grid-column: span 2;
}

.ghost-button,
.solid-button {
  min-height: 44px;
  min-width: 0;
  border-radius: 8px;
  cursor: pointer;
}

.ghost-button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}

.solid-button {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fffaf0;
}

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

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin: 28px 0 16px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 44px);
}

.track-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 10px;
}

.track-card {
  min-height: 210px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--accent), var(--line) 48%);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.track-card:hover,
.track-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 14px 32px rgba(35, 35, 35, 0.12);
  outline: none;
}

.track-card.is-selected {
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent), white 84%), rgba(255, 255, 255, 0.82));
  border-color: var(--accent);
}

.track-topline {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.track-check {
  width: 24px;
  height: 24px;
  border: 1px solid currentColor;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.track-card strong {
  display: block;
  margin: 24px 0 12px;
  font-size: 23px;
  line-height: 1.18;
}

.track-card > span:last-child {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

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

.empty-state,
.report-block {
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
}

.empty-state {
  padding: 32px;
  color: var(--muted);
}

.report-block {
  overflow: hidden;
}

.report-block > header {
  padding: 24px 26px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent), white 76%), rgba(255, 255, 255, 0.86));
  border-left: 8px solid var(--accent);
}

.report-block > header span {
  color: var(--muted);
  font-family: "Gill Sans", "Avenir Next", sans-serif;
  font-weight: 700;
}

.report-block h2 {
  margin: 8px 0 10px;
  font-size: clamp(25px, 3.5vw, 38px);
}

.report-block p {
  margin-bottom: 0;
  line-height: 1.65;
}

.report-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 26px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.report-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--paper-deep);
}

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

.report-grid section {
  min-height: 210px;
  padding: 22px 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.report-grid section:nth-child(3n) {
  border-right: 0;
}

.report-grid h3 {
  margin-bottom: 12px;
  color: var(--teal);
  font-size: 18px;
}

ul {
  margin: 0;
  padding-left: 20px;
}

li {
  margin: 0 0 9px;
  line-height: 1.58;
}

@media (max-width: 980px) {
  .workspace {
    grid-template-columns: 1fr;
    min-height: auto;
  }

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

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

  .report-grid section:nth-child(3n) {
    border-right: 1px solid var(--line);
  }

  .report-grid section:nth-child(2n) {
    border-right: 0;
  }
}

@media (max-width: 620px) {
  .app-shell {
    width: calc(100% - 22px);
    max-width: 1180px;
    padding-top: 18px;
  }

  h1 {
    font-size: 42px;
    line-height: 1.04;
  }

  .lead {
    max-width: 320px;
    font-size: 17px;
    word-break: break-all;
  }

  .source-note {
    width: 100%;
    max-width: 320px;
    word-break: break-all;
  }

  .status-panel {
    width: 100%;
  }

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

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

  .track-grid,
  .report-grid {
    grid-template-columns: 1fr;
  }

  .track-card {
    min-height: 172px;
  }

  .report-grid section,
  .report-grid section:nth-child(3n),
  .report-grid section:nth-child(2n) {
    border-right: 0;
  }

  .status-actions {
    grid-template-columns: 1fr;
  }

  .status-actions button:nth-child(2) {
    grid-column: auto;
  }
}

@media print {
  body {
    background: #fff;
  }

  .selector-section,
  .status-actions,
  .source-note {
    display: none;
  }

  .workspace {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .status-panel {
    box-shadow: none;
  }

  .report-block {
    break-inside: avoid;
  }
}
