:root {
  --bg: #f4efe6;
  --surface: #fffaf2;
  --surface-strong: #ffffff;
  --ink: #172337;
  --muted: #5a6878;
  --navy: #1e3a5f;
  --gold: #c18b2b;
  --line: #d7cbb8;
  --accent: #9e3b2d;
  --success: #2f6b48;
  --warning: #8e6118;
  --radius: 22px;
  --shadow: 0 18px 38px rgba(23, 35, 55, 0.08);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  background:
    radial-gradient(circle at top left, rgba(193, 139, 43, 0.12), transparent 24%),
    radial-gradient(circle at top right, rgba(158, 59, 45, 0.08), transparent 22%),
    linear-gradient(180deg, #f8f2e8 0%, var(--bg) 100%);
  color: var(--ink);
  font-family: "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

a {
  color: inherit;
}

h1, h2, h3 {
  font-family: Georgia, "Palatino Linotype", serif;
  margin: 0;
}

p {
  margin: 0;
}

.topbar,
.workspace-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 32px;
}

.brand-lockup,
.workspace-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-mark {
  width: 14px;
  height: 48px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold), var(--accent));
}

.kicker,
.workspace-kicker,
.eyebrow,
.section-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  color: var(--muted);
}

.topnav {
  display: flex;
  gap: 18px;
  font-size: 14px;
}

.landing-page main {
  padding: 0 32px 40px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 28px;
  padding: 36px;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(30, 58, 95, 0.98), rgba(23, 35, 55, 0.98));
  color: #fff;
  box-shadow: var(--shadow);
  min-height: 620px;
  align-items: stretch;
}

.hero h2 {
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 1.02;
  max-width: 9ch;
  margin-top: 12px;
}

.hero-text {
  margin-top: 18px;
  max-width: 36rem;
  font-size: 18px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.86);
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
  max-width: 44rem;
}

.hero-point {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-point strong {
  display: block;
  font-size: 15px;
  margin-bottom: 6px;
}

.hero-point span {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
  font-size: 14px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 18px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.button-primary {
  background: var(--gold);
  color: #1b2230;
}

.button-secondary {
  background: transparent;
  color: var(--ink);
  border-color: rgba(23, 35, 55, 0.16);
}

.hero .button-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.32);
}

.timeline-panel,
.landing-block,
.sidebar-block,
.form-section,
.review-list-panel,
.review-detail-panel {
  background: rgba(255, 250, 242, 0.94);
  border: 1px solid rgba(215, 203, 184, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.timeline-panel {
  padding: 24px;
  display: grid;
  gap: 12px;
  align-self: stretch;
  background: rgba(255, 250, 242, 0.98);
}

.timeline-header h3 {
  margin-top: 8px;
  font-size: 30px;
  line-height: 1.05;
  color: var(--ink);
}

.timeline-stop {
  padding: 16px 0 0;
  border-top: 1px solid rgba(23, 35, 55, 0.08);
}

.timeline-stop:first-child {
  border-top: 0;
  padding-top: 0;
}

.timeline-stop span {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
}

.timeline-stop p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.timeline-stop-accent {
  margin-top: 6px;
  padding: 16px;
  border: 1px solid rgba(193, 139, 43, 0.26);
  border-radius: 18px;
  background: rgba(193, 139, 43, 0.08);
}

.timeline-stop-accent p {
  color: var(--ink);
}

.landing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.landing-block,
.sidebar-block,
.form-section,
.review-list-panel,
.review-detail-panel {
  padding: 24px;
}

.landing-block h3 {
  margin-top: 12px;
  font-size: 28px;
  line-height: 1.08;
}

.landing-block p:last-child {
  margin-top: 12px;
  line-height: 1.6;
  color: var(--muted);
}

.workspace-shell,
.review-shell {
  display: grid;
  gap: 20px;
  padding: 0 32px 32px;
}

.workspace-shell {
  grid-template-columns: 320px minmax(0, 1fr);
}

.workspace-sidebar {
  display: grid;
  gap: 20px;
  align-content: start;
}

.workspace-main {
  min-width: 0;
}

.status-summary {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.banner {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff5dc;
  border: 1px solid #e6d19a;
  color: #684f10;
}

.banner.error {
  background: #fff0ed;
  border-color: #e5b3a8;
  color: #7a2b1d;
}

.hidden {
  display: none !important;
}

.form-shell {
  display: grid;
  gap: 20px;
}

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

.section-heading h2 {
  margin-top: 8px;
  font-size: 28px;
}

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

label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}

label span {
  color: var(--muted);
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(23, 35, 55, 0.14);
  border-radius: 14px;
  background: var(--surface-strong);
  padding: 12px 14px;
  color: var(--ink);
  font: inherit;
}

textarea {
  resize: vertical;
}

.full-span {
  grid-column: 1 / -1;
}

.matrix-table,
.readiness-table {
  display: grid;
  gap: 12px;
}

.matrix-row,
.readiness-row {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(23, 35, 55, 0.08);
  border-radius: 18px;
  background: var(--surface-strong);
}

.matrix-row {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.matrix-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(30, 58, 95, 0.08);
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 6px;
}

.readiness-row {
  grid-template-columns: minmax(220px, 0.4fr) minmax(0, 1fr);
  align-items: start;
}

.readiness-topic {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.45;
}

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(30, 58, 95, 0.08);
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
}

.text-link {
  font-size: 14px;
  color: var(--navy);
}

.review-shell {
  grid-template-columns: 360px minmax(0, 1fr);
}

.review-list-panel,
.review-detail-panel {
  min-height: calc(100svh - 140px);
}

.filter-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

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

.review-item {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(23, 35, 55, 0.08);
  background: var(--surface-strong);
  cursor: pointer;
}

.review-item.is-active {
  border-color: rgba(30, 58, 95, 0.28);
  box-shadow: inset 0 0 0 1px rgba(30, 58, 95, 0.18);
}

.review-item h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.review-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

.review-detail {
  display: grid;
  gap: 20px;
}

.detail-section {
  display: grid;
  gap: 10px;
}

.detail-section h3 {
  font-size: 24px;
}

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

.detail-card {
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--surface-strong);
  border: 1px solid rgba(23, 35, 55, 0.08);
}

.detail-card strong {
  display: block;
  margin-bottom: 6px;
}

.detail-card p,
.detail-card ul {
  color: var(--muted);
  line-height: 1.55;
  white-space: pre-wrap;
}

.empty-state {
  color: var(--muted);
  display: grid;
  place-items: center;
  min-height: 280px;
  border: 1px dashed rgba(23, 35, 55, 0.14);
  border-radius: 18px;
}

.review-action-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.status-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  width: fit-content;
}

.status-draft {
  background: rgba(30, 58, 95, 0.08);
  color: var(--navy);
}

.status-submitted {
  background: rgba(47, 107, 72, 0.12);
  color: var(--success);
}

.status-needs_revision {
  background: rgba(158, 59, 45, 0.12);
  color: var(--accent);
}

@media (max-width: 1120px) {
  .workspace-shell,
  .review-shell,
  .hero,
  .landing-grid,
  .hero-points {
    grid-template-columns: 1fr;
  }

  .matrix-row,
  .detail-grid,
  .form-grid,
  .filter-row,
  .readiness-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .topbar,
  .workspace-header,
  .landing-page main,
  .workspace-shell,
  .review-shell {
    padding-left: 18px;
    padding-right: 18px;
  }

  .topbar,
  .workspace-header {
    align-items: start;
    flex-direction: column;
  }

  .hero {
    padding: 24px;
    min-height: auto;
  }
}
