:root {
  --bg: #edf1f5;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --ink: #122238;
  --muted: #5e7083;
  --navy: #12284c;
  --sky: #a9c8e8;
  --sky-deep: #7eaedb;
  --brick: #a4452e;
  --line: rgba(18, 34, 56, 0.12);
  --shadow: 0 30px 90px rgba(18, 34, 56, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(126, 174, 219, 0.34), transparent 26%),
    radial-gradient(circle at bottom right, rgba(164, 69, 46, 0.16), transparent 24%),
    linear-gradient(180deg, #f4f7fb 0%, #ecf1f6 100%);
  font-family: Georgia, "Times New Roman", serif;
}

.unlock-page {
  display: grid;
  place-items: center;
  padding: 24px;
}

.unlock-shell {
  width: min(560px, 100%);
}

.unlock-card {
  display: grid;
  gap: 16px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.unlock-card h1 {
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 3.4rem);
  line-height: 1.02;
}

.unlock-copy,
.unlock-status {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.unlock-form {
  display: grid;
  gap: 16px;
}

.unlock-field {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.unlock-field input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  width: min(1280px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 24px 0 44px;
}

.topbar,
.hero,
.panel,
.gateway-card,
.detail-panel {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 22px;
  backdrop-filter: blur(10px);
}

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

.brand-logo {
  width: 74px;
  height: 74px;
  object-fit: contain;
}

.eyebrow,
.section-label {
  margin: 0;
  color: var(--brick);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand-title {
  margin: 4px 0 0;
  color: var(--navy);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.topnav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 430px);
  gap: 22px;
  margin-top: 18px;
  padding: 26px;
}

.hero-copy {
  display: grid;
  gap: 18px;
  align-content: start;
}

.hero h1,
.section-intro h2,
.panel h2,
.detail-heading h2,
.visual-stat h2,
.gateway-card h3 {
  margin: 0;
  line-height: 1.03;
}

.hero h1 {
  max-width: 12ch;
  font-size: clamp(2.7rem, 6.6vw, 5.25rem);
}

.hero-text,
.hero-alert,
.panel p,
.section-intro p,
.detail-layout p,
.detail-layout li,
.visual-stat p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.hero-alert {
  color: #b42318;
  display: block;
  width: 100%;
  max-width: none;
  font-size: clamp(1.55rem, 3vw, 2.55rem);
  font-weight: 900;
  line-height: 1.18;
}

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

.status-hero-single > div {
  width: 100%;
  max-width: none;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  background: #0d1c35;
}

.button-secondary {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}

.hero-visual {
  display: grid;
  gap: 14px;
}

.visual-card {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(18, 34, 56, 0.08);
}

.visual-photo {
  min-height: 260px;
  background: #d9e4ef;
}

.visual-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.visual-stat {
  display: grid;
  gap: 10px;
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(169, 200, 232, 0.45), rgba(255, 255, 255, 0.96)),
    var(--surface);
}

.content-grid,
.link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.panel,
.detail-panel {
  padding: 24px;
}

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

.panel-summary {
  display: grid;
  gap: 16px;
  align-content: start;
  background:
    linear-gradient(180deg, rgba(18, 40, 76, 0.04), rgba(169, 200, 232, 0.08)),
    var(--surface);
}

.summary-list {
  display: grid;
  gap: 12px;
}

.summary-item {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid rgba(18, 34, 56, 0.08);
  border-radius: 18px;
  background: var(--surface-soft);
}

.summary-item strong {
  font-size: 18px;
}

.section-intro {
  display: grid;
  gap: 10px;
  max-width: 760px;
  margin: 26px 0 0;
}

.gateway-card {
  position: relative;
  display: grid;
  gap: 12px;
  min-height: 240px;
  padding: 22px;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease;
}

.gateway-card:hover {
  transform: translateY(-2px);
  border-color: rgba(18, 40, 76, 0.28);
}

.gateway-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.92;
}

.gateway-card > * {
  position: relative;
  z-index: 1;
}

.gateway-tag {
  color: rgba(18, 40, 76, 0.72);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.gateway-card h3 {
  font-size: 34px;
}

.gateway-card p {
  max-width: 32ch;
  margin: 0;
  color: #314255;
  line-height: 1.65;
}

.gateway-metrics::before {
  background:
    linear-gradient(135deg, rgba(169, 200, 232, 0.95), rgba(255, 255, 255, 0.94)),
    var(--surface);
}

.gateway-comparison::before {
  background:
    linear-gradient(135deg, rgba(18, 40, 76, 0.12), rgba(126, 174, 219, 0.28)),
    var(--surface);
}

.gateway-proclivity::before {
  background:
    linear-gradient(135deg, rgba(164, 69, 46, 0.16), rgba(255, 255, 255, 0.94)),
    var(--surface);
}

.detail-panel {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 360px);
  gap: 18px;
  align-items: start;
}

.detail-copy {
  display: grid;
  gap: 14px;
}

.detail-action-button {
  justify-self: end;
  align-self: start;
}

.flat-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.flat-list li + li {
  margin-top: 10px;
}

.inline-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--navy);
  font-weight: 700;
}

.inline-link-spaced {
  margin-top: 16px;
}

.single-column {
  grid-template-columns: 1fr;
}

.gateway-placeholder {
  opacity: 0.82;
}

.hero-compact {
  grid-template-columns: 1fr;
}

.page-shell-wide {
  width: min(1520px, calc(100vw - 24px));
}

.status-hero,
.status-table-panel {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.status-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 20px;
  margin-top: 18px;
  padding: 24px;
}

.status-hero h1 {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 1.04;
}

.status-key {
  display: grid;
  gap: 10px;
  align-content: start;
}

.key-pill {
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 700;
}

.key-pill-green {
  background: #dff3e7;
  color: #216340;
}

.key-pill-yellow {
  background: #f8efc9;
  color: #7c6014;
}

.key-pill-red {
  background: #f7dfdf;
  color: #923737;
}

.status-table-panel {
  margin-top: 18px;
  padding: 12px;
}

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

.status-table {
  width: 100%;
  min-width: 1340px;
  border-collapse: collapse;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
}

.status-table th,
.status-table td {
  border: 1px solid #d6dcea;
  text-align: center;
}

.status-table thead th {
  padding: 14px 10px;
  background: #17264b;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-table thead th span {
  display: block;
  margin-top: 6px;
  color: #f0c96a;
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
}

.status-table .chapter-column,
.status-table .score-column {
  background: #17264b;
}

.chapter-cell {
  min-width: 260px;
  padding: 16px 14px;
  text-align: left;
  background: #eef2f8;
}

.chapter-cell-inner {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.chapter-copy {
  min-width: 0;
}

.chapter-cell strong {
  display: block;
  color: #182740;
  font-size: 14px;
}

.chapter-cell span {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
}

.chapter-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(18, 34, 56, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #7b4150;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.chapter-remove:hover {
  background: #fff3f3;
  transform: translateY(-1px);
}

.metric-cell {
  min-width: 104px;
  padding: 0;
}

.metric-box {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 10px 8px;
}

.metric-box-membership {
  gap: 8px;
}

.metric-on {
  background: #def1e6;
}

.metric-off {
  background: #f7e1e1;
}

.metric-check {
  position: relative;
  display: inline-flex;
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.metric-check input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.metric-check span {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1px solid rgba(18, 34, 56, 0.18);
  background: rgba(255, 255, 255, 0.92);
}

.metric-check input:checked + span {
  background: #8dc7a4;
  border-color: #5d9d78;
}

.metric-check input:checked + span::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 4px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.metric-value {
  color: #33675a;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.metric-off .metric-value {
  color: #b15050;
}

.metric-value-input {
  width: 100%;
  max-width: 84px;
  padding: 4px 6px;
  border: 1px solid rgba(18, 34, 56, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: #234b40;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.metric-off .metric-value-input {
  color: #a04646;
}

.membership-fields {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: nowrap;
}

.membership-input {
  max-width: 48px;
  padding: 4px 4px;
}

.membership-label {
  color: #4c6179;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.score-cell {
  min-width: 94px;
  padding: 14px 8px;
  font-weight: 700;
}

.score-cell strong {
  display: block;
  font-size: 22px;
  line-height: 1;
}

.score-strong {
  background: #dff3e7;
  color: #1f6b43;
}

.score-watch {
  background: #f8efc9;
  color: #7f6312;
}

.score-risk {
  background: #f7dfdf;
  color: #913838;
}

.status-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 8px 4px;
}

.outreach-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
}

.outreach-table th,
.outreach-table td {
  border: 1px solid #d6dcea;
}

.outreach-table thead th {
  padding: 12px 14px;
  background: #7eaedb;
  color: #12284c;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
}

.table-sort {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.table-sort-indicator {
  min-width: 10px;
  font-size: 12px;
}

.outreach-table td {
  padding: 0;
  background: rgba(255, 255, 255, 0.92);
}

.outreach-row-positive td {
  background: #dff3e7;
}

.outreach-row-watch td {
  background: #f8efc9;
}

.outreach-row-closed td {
  background: #f8e1dd;
}

.outreach-input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
}

.outreach-campus {
  font-weight: 700;
}

.outreach-actions-column,
.outreach-actions-cell {
  width: 72px;
  text-align: center;
}

.outreach-actions-cell {
  padding: 8px;
}

.outreach-add-action {
  font-size: 18px;
  font-weight: 700;
}

.timeline-section {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.timeline-actions {
  display: flex;
  justify-content: flex-end;
}

.timeline-grid,
.timeline-subgrid {
  display: grid;
  gap: 18px;
}

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

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

.timeline-card {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(169, 200, 232, 0.2), rgba(255, 255, 255, 0.96)),
    rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.timeline-card-empty {
  background:
    linear-gradient(180deg, rgba(18, 40, 76, 0.04), rgba(255, 255, 255, 0.96)),
    rgba(255, 255, 255, 0.92);
}

.timeline-label {
  margin: 0;
  color: var(--navy);
  font-size: 20px;
  font-weight: 700;
}

.timeline-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
  color: var(--ink);
  line-height: 1.65;
}

.timeline-list li + li {
  margin-top: 8px;
}

.timeline-empty {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.timeline-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(18, 40, 76, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  cursor: grab;
}

.timeline-item-label {
  flex: 1 1 auto;
}

.timeline-item-remove {
  flex: 0 0 auto;
}

.timeline-item-dragging {
  opacity: 0.45;
}

.timeline-card-drop {
  border-color: var(--sky-deep);
  box-shadow: 0 0 0 3px rgba(126, 174, 219, 0.22), var(--shadow);
}

.timeline-card-button {
  justify-self: start;
}

.timeline-dialog {
  border: 0;
  padding: 0;
  background: transparent;
}

.timeline-dialog::backdrop {
  background: rgba(18, 34, 56, 0.4);
}

.timeline-dialog-card {
  display: grid;
  gap: 16px;
  width: min(420px, calc(100vw - 32px));
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.funnel-hero {
  overflow: hidden;
  position: relative;
}

.funnel-hero::after {
  content: "";
  position: absolute;
  inset: auto -80px -140px auto;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(126, 174, 219, 0.26), rgba(126, 174, 219, 0));
  pointer-events: none;
}

.funnel-board {
  display: grid;
  gap: 24px;
  margin-top: 22px;
}

.funnel-canvas {
  display: grid;
  gap: 14px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(18, 40, 76, 0.05), rgba(169, 200, 232, 0.18)),
    rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.funnel-axis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.funnel-axis span:last-child {
  text-align: right;
}

.funnel-stage {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: stretch;
  width: var(--stage-width);
  min-width: min(100%, 640px);
  margin-inline: auto;
}

.funnel-stage-band {
  display: grid;
  place-items: center;
  min-height: 110px;
  border-radius: 24px 0 0 24px;
  background:
    linear-gradient(180deg, rgba(18, 40, 76, 0.96), rgba(35, 70, 116, 0.92));
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.1em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.funnel-stage-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(18, 40, 76, 0.12);
  border-left: 0;
  border-radius: 0 24px 24px 0;
  background: rgba(18, 40, 76, 0.12);
}

.funnel-column {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.88);
}

.funnel-column-prospects {
  background: rgba(248, 239, 201, 0.55);
}

.funnel-column-title {
  margin: 0;
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.funnel-column ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.funnel-campus {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(18, 40, 76, 0.08);
  background: rgba(255, 255, 255, 0.8);
}

.funnel-campus span {
  grid-column: 1;
  color: var(--ink);
  font-weight: 800;
}

.funnel-campus small {
  grid-column: 1;
  color: var(--muted);
  font-weight: 700;
}

.funnel-campus-confirmed {
  background: rgba(223, 243, 231, 0.88);
}

.funnel-campus-prospect {
  background: rgba(255, 255, 255, 0.9);
}

.funnel-empty {
  color: var(--muted);
  font-style: italic;
}

.timeline-dialog-heading {
  margin: 0;
  color: var(--navy);
  font-size: 28px;
}

.timeline-select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  font: inherit;
}

.timeline-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .hero,
  .content-grid,
  .link-grid,
  .detail-layout,
  .status-hero,
  .timeline-grid,
  .timeline-subgrid,
  .funnel-axis,
  .funnel-stage-content {
    grid-template-columns: 1fr;
  }

  .funnel-axis span:last-child {
    text-align: left;
  }

  .funnel-stage {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .topbar {
    align-items: start;
    flex-direction: column;
  }

  .brand-logo {
    width: 58px;
    height: 58px;
  }

  .brand-title {
    font-size: 24px;
  }

  .hero {
    padding: 20px;
  }

  .gateway-card h3 {
    font-size: 28px;
  }

  .funnel-canvas {
    padding: 16px;
  }

  .funnel-stage {
    grid-template-columns: 1fr;
  }

  .funnel-stage-band {
    min-height: auto;
    padding: 12px;
    border-radius: 20px 20px 0 0;
    writing-mode: horizontal-tb;
    transform: none;
  }

  .funnel-stage-content {
    border-left: 1px solid rgba(18, 40, 76, 0.12);
    border-radius: 0 0 20px 20px;
  }
}
