:root {
  --ink: #17202b;
  --muted: #677487;
  --panel: rgba(250, 247, 241, 0.94);
  --line: rgba(28, 39, 54, 0.10);
  --navy: #12324a;
  --teal: #137b72;
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: "Aptos", "Segoe UI Variable", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background: #f5f7f8;
}

code {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.92em;
}

.model-shell {
  max-width: 1500px;
  margin: 0 auto;
  padding: 24px;
}

.model-header,
.panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: 0 16px 36px rgba(17, 30, 43, 0.08);
}

.model-header {
  padding: 22px 200px 22px 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.eyebrow,
.panel-kicker,
thead th {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
  color: var(--muted);
}

.model-header h1 {
  margin: 8px 0 8px;
  font-size: clamp(1.9rem, 2.8vw, 3rem);
  line-height: 1.05;
}

.header-copy,
.panel p,
.bullet-list {
  color: #304050;
  line-height: 1.6;
}

.header-copy {
  margin: 0;
}

.back-link {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(19, 123, 114, 0.34);
  background: linear-gradient(135deg, rgba(18, 50, 74, 0.98), rgba(19, 123, 114, 0.98));
  box-shadow: 0 18px 34px rgba(19, 123, 114, 0.28);
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
  letter-spacing: 0.01em;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.back-link:hover,
.back-link:focus {
  border-color: rgba(255, 255, 255, 0.42);
  background: linear-gradient(135deg, rgba(16, 60, 88, 0.99), rgba(21, 141, 129, 0.99));
  box-shadow: 0 22px 36px rgba(19, 123, 114, 0.34);
  transform: translateY(-2px);
  outline: none;
}

.content-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.panel {
  padding: 18px 20px;
}

.content-grid + .panel {
  margin-top: 18px;
}

.panel h2 {
  margin: 6px 0 14px;
  line-height: 1.08;
}

.panel p {
  margin: 0 0 12px;
}

.bullet-list {
  margin: 0;
  padding-left: 18px;
}

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

.table-wrap {
  overflow: auto;
  border-radius: 14px;
  border: 1px solid rgba(18, 50, 74, 0.08);
  background: rgba(255, 255, 255, 0.84);
}

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

thead th {
  background: #eef5f4;
  color: #0f5f58;
  text-align: left;
  letter-spacing: 0.06em;
}

th,
td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(18, 50, 74, 0.07);
  vertical-align: top;
  font-size: 0.92rem;
}

tbody tr:nth-child(even) {
  background: rgba(245, 249, 248, 0.76);
}

.proposal-panel {
  margin-top: 18px;
}

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

.proposal-grid-secondary {
  margin-top: 16px;
}

.proposal-card {
  padding: 16px 16px 14px;
  border-radius: 14px;
  border: 1px solid rgba(18, 50, 74, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.proposal-card h3 {
  margin: 0 0 10px;
  line-height: 1.14;
}

.proposal-card p:last-of-type,
.proposal-card .bullet-list:last-child {
  margin-bottom: 0;
}

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

  .proposal-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .model-shell {
    padding: 16px;
  }

  .model-header {
    padding: 84px 16px 18px;
    flex-direction: column;
    align-items: stretch;
  }

  .back-link {
    top: 14px;
    right: 16px;
    min-height: 44px;
    padding: 0 15px;
  }
}
