:root {
  --bg: #d8cdbb;
  --panel: #f7f3ea;
  --panel-soft: #eee5d5;
  --ink: #26282b;
  --muted: #6f6257;
  --line: rgba(38, 40, 43, 0.16);
  --accent: #9b2f2a;
  --accent-2: #26282b;
  --accent-3: #b9aa96;
  --accent-4: #efe7d8;
  --accent-5: #6f6257;
  --accent-soft: #eadbd6;
  --shadow: 0 22px 55px rgba(38, 40, 43, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

.site-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0;
  background: #f7f3ea;
  color: #26282b;
  opacity: 1;
  transition: opacity 520ms ease, visibility 0ms linear 560ms;
  overflow: hidden;
  contain: paint;
}

.site-loader.is-hidden {
  visibility: hidden;
  pointer-events: none;
}

.site-loader.is-exiting {
  opacity: 0;
  pointer-events: none;
}

.site-loader-logo {
  width: 96px;
  height: 96px;
  display: block;
  position: relative;
  z-index: 1;
  transform-origin: center;
  transform: translate3d(0, 0, 0) scale(1);
  backface-visibility: hidden;
  will-change: transform, opacity;
}

.site-loader.is-exiting .site-loader-logo {
  animation: loaderLogoExit 560ms cubic-bezier(0.2, 0.78, 0.2, 1) forwards;
}

@keyframes loaderLogoExit {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(7);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-loader {
    transition: none;
  }

  .site-loader.is-exiting .site-loader-logo {
    animation: none;
  }

  .home-structure-bg {
    transform: none;
    transition: none;
  }

  .structure-line {
    animation: none;
    stroke-dashoffset: 0;
  }

  .home-logo-mark {
    animation: none;
    transform: none;
  }
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(216, 205, 187, 0.88);
  backdrop-filter: blur(14px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0;
}

.brand {
  display: grid;
  grid-template-columns: 30px auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 9px;
  gap: 1px;
  min-width: max-content;
  color: var(--ink);
}

.brand-logo {
  grid-row: 1 / span 2;
  width: 28px;
  height: 28px;
  display: block;
}

.brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  letter-spacing: 0;
}

.brand span {
  color: var(--muted);
  font-size: 12px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.nav-links a,
.nav-drop-button {
  border-radius: 4px;
  color: var(--ink);
  font-size: 14px;
  padding: 7px 10px;
}

.nav-links a:hover,
.nav-links a.active,
.nav-drop-button.active,
.nav-drop:hover .nav-drop-button,
.nav-drop.is-open .nav-drop-button {
  background: var(--panel-soft);
  color: var(--accent);
  text-decoration: none;
}

.nav-drop {
  position: relative;
}

.nav-drop:hover,
.nav-drop:focus-within,
.nav-drop.is-open {
  z-index: 40;
}

.nav-drop::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 39;
  width: 240px;
  height: 18px;
}

.nav-drop-button {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  cursor: pointer;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  z-index: 41;
  display: grid;
  gap: 3px;
  min-width: 220px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  box-shadow: var(--shadow);
  opacity: 0;
  padding: 6px;
  pointer-events: none;
  transform: translateY(-4px);
  visibility: hidden;
  transition:
    opacity 140ms ease,
    transform 140ms ease,
    visibility 0ms linear 500ms;
}

.nav-drop:hover .nav-dropdown,
.nav-drop:focus-within .nav-dropdown,
.nav-drop.is-open .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
  transition-delay: 0ms;
}

.nav-dropdown a {
  display: block;
  white-space: nowrap;
}

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

.home-page {
  background: #d8cdbb;
}

.home-page.loader-active .site-header,
.home-page.loader-active .home-main,
.home-page.loader-active .site-footer {
  opacity: 0;
  transform: translate3d(0, 8px, 0);
}

.home-page.loader-revealing .site-header,
.home-page.loader-revealing .home-main,
.home-page.loader-revealing .site-footer {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: opacity 460ms ease 80ms, transform 460ms ease 80ms;
}

.home-page .site-header {
  background: rgba(216, 205, 187, 0.88);
  border-bottom-color: rgba(38, 40, 43, 0.12);
}

.home-page a {
  color: #9b2f2a;
}

.home-page .nav-links a,
.home-page .nav-drop-button {
  color: #26282b;
}

.home-page .nav-links a:hover,
.home-page .nav-links a.active,
.home-page .nav-drop-button.active,
.home-page .nav-drop:hover .nav-drop-button,
.home-page .nav-drop.is-open .nav-drop-button {
  background: rgba(247, 243, 234, 0.62);
  color: #9b2f2a;
}

.home-main {
  width: 100%;
  padding-top: 28px;
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
  overflow-x: clip;
}

.hero {
  display: grid;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding: 34px 0 28px;
}

.hero h1,
.page-title h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 7vw, 86px);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 0.96;
}

.home-hero {
  min-height: calc(100svh - 108px);
  align-content: center;
  justify-items: center;
  gap: 18px;
  border-bottom: 0;
  padding: 52px 0 36px;
  position: relative;
  text-align: center;
}

.home-main > *:not(.home-structure-bg),
.home-hero > * {
  position: relative;
  z-index: 1;
}

.home-main > *:not(.home-structure-bg) {
  width: min(1240px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.home-structure-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.82;
  transform: translate3d(
    calc(var(--home-bg-x, 0) * 1px),
    calc(var(--home-bg-y, 0) * 1px),
    0
  );
  transition: transform 180ms ease-out;
}

.home-structure-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(38, 40, 43, 0.105) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38, 40, 43, 0.095) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.82) 9%, rgba(0, 0, 0, 0.78) 86%, transparent 100%);
}

.structure-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.structure-line {
  fill: none;
  stroke: rgba(38, 40, 43, 0.18);
  stroke-width: 1;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: traceStructure 7.5s ease-in-out infinite;
}

.line-b {
  stroke: rgba(155, 47, 42, 0.23);
  animation-delay: 0.7s;
}

.line-c,
.line-d,
.line-e,
.line-f,
.line-g {
  stroke: rgba(38, 40, 43, 0.12);
  animation-delay: 1.1s;
}

.line-f {
  stroke: rgba(155, 47, 42, 0.13);
  animation-delay: 1.6s;
}

.line-g {
  animation-delay: 2s;
}

@keyframes traceStructure {
  0%, 18% {
    stroke-dashoffset: 1;
    opacity: 0.08;
  }
  42%, 82% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 0.16;
  }
}

.home-eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 14px;
  font-weight: 750;
  text-transform: uppercase;
}

.home-logo-mark {
  width: clamp(62px, 8vw, 96px);
  height: clamp(62px, 8vw, 96px);
  display: block;
  filter: drop-shadow(0 18px 30px rgba(16, 20, 24, 0.12));
  transform: scale(1);
  transform-origin: center;
  animation: homeLogoQuietPulse 4.8s ease-in-out infinite;
  will-change: transform;
}

@keyframes homeLogoQuietPulse {
  0%, 100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.028);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-logo-mark {
    animation: none;
    transform: none;
  }
}

.home-hero h1 {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(64px, 12vw, 168px);
  font-weight: 760;
  line-height: 0.9;
  color: #26282b;
}

.home-hero .hero-copy {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.home-hero .subtitle {
  color: #4d4640;
  font-size: clamp(22px, 2.8vw, 36px);
  font-weight: 680;
}

.home-hero .cn-title {
  margin-bottom: 4px;
}

.home-hero .lead {
  color: var(--muted);
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 4px;
}

.home-actions .button {
  min-width: 148px;
  border-radius: 999px;
  padding-inline: 18px;
}

.home-actions .button.primary {
  border-color: #9b2f2a;
  background: #9b2f2a;
  color: #f7f3ea;
}

.home-actions .button:not(.primary) {
  border-color: rgba(38, 40, 43, 0.35);
  background: rgba(247, 243, 234, 0.54);
  color: #26282b;
}

.home-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(720px, 100%);
  margin-top: 18px;
  border: 1px solid rgba(38, 40, 43, 0.14);
  border-radius: 20px;
  background: rgba(247, 243, 234, 0.78);
  box-shadow: 0 22px 70px rgba(38, 40, 43, 0.12);
  backdrop-filter: blur(18px);
}

.home-stats div {
  display: grid;
  gap: 3px;
  padding: 16px;
}

.home-stats div + div {
  border-left: 1px solid rgba(38, 40, 43, 0.12);
}

.home-stats strong {
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1;
}

.home-stats span {
  color: #6f6257;
  font-size: 13px;
}

.metric-stage {
  width: min(940px, 100%);
  margin-top: 26px;
  padding: 1px;
  border-radius: 28px;
  background: rgba(38, 40, 43, 0.86);
}

.stage-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.8fr;
  gap: 1px;
  overflow: hidden;
  border-radius: 27px;
  background: rgba(38, 40, 43, 0.86);
  box-shadow: 0 34px 100px rgba(38, 40, 43, 0.2);
  backdrop-filter: blur(22px);
}

.stage-block {
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: stretch;
  min-height: 220px;
  padding: 18px;
  background: #eee5d5;
}

.stage-block-large {
  min-height: 220px;
}

.stage-block span {
  align-self: start;
  color: #6f6257;
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

.sparkline {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: end;
  gap: 8px;
  height: 120px;
  margin-top: 24px;
  align-self: end;
}

.sparkline i,
.scale-bars i {
  display: block;
  border-radius: 999px;
  background: #9b2f2a;
}

.sparkline i:nth-child(3n + 1) {
  background: #26282b;
}

.sparkline i:nth-child(3n + 2) {
  background: #9b2f2a;
}

.sparkline i:nth-child(3n) {
  background: #b9aa96;
}

.sparkline i {
  min-height: 18px;
}

.tone-stack {
  display: grid;
  align-content: end;
  gap: 8px;
  height: 120px;
  margin-top: 24px;
  align-self: end;
}

.tone-stack i {
  display: block;
  height: 24px;
  border-radius: 999px;
}

.tone-stack i:nth-child(1) { background: #f8f4eb; }
.tone-stack i:nth-child(2) { background: #d8cbb9; }
.tone-stack i:nth-child(3) { background: #9b2f2a; }
.tone-stack i:nth-child(4) { background: #26282b; }

.scale-bars {
  display: grid;
  align-content: end;
  gap: 12px;
  height: 120px;
  margin-top: 24px;
  align-self: end;
}

.scale-bars i {
  height: 14px;
  background: #26282b;
}

.hero-copy {
  max-width: 760px;
}

.subtitle {
  color: var(--accent);
  font-size: clamp(19px, 2vw, 24px);
  margin: 0 0 8px;
}

.cn-title {
  color: var(--muted);
  font-size: 17px;
  margin: 0 0 22px;
}

.lead {
  max-width: 780px;
  color: var(--ink);
  font-size: 19px;
  margin: 0;
}

.muted {
  color: var(--muted);
}

.section {
  margin-top: 32px;
}

.section h2 {
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-weight: 600;
  letter-spacing: 0;
}

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

.entry-card,
.panel,
.citation-block {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.entry-card {
  display: grid;
  min-height: 168px;
  padding: 20px;
}

.home-page .entry-grid {
  margin-top: 12px;
}

.home-page .entry-card {
  min-height: 218px;
  border-color: rgba(38, 40, 43, 0.14);
  border-radius: 24px;
  background: rgba(247, 243, 234, 0.8);
  box-shadow: 0 24px 70px rgba(38, 40, 43, 0.1);
  backdrop-filter: blur(18px);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  position: relative;
  overflow: hidden;
}

.home-page .entry-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: #9b2f2a;
}

.home-page .entry-card:hover {
  transform: translateY(-3px);
  border-color: rgba(155, 47, 42, 0.32);
  box-shadow: 0 32px 88px rgba(38, 40, 43, 0.14);
  text-decoration: none;
}

.entry-card h2 {
  align-self: start;
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
}

.entry-card p {
  color: var(--muted);
  margin: 14px 0 24px;
}

.entry-card .text-link {
  align-self: end;
  font-weight: 650;
}

.card-index {
  color: var(--accent);
  font-size: 13px;
  font-weight: 760;
}

.home-page .card-index,
.home-page .entry-card .text-link {
  color: #9b2f2a;
}

.page-title {
  display: grid;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
  padding-bottom: 22px;
}

.page-title h1 {
  font-size: clamp(36px, 5vw, 62px);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  margin: 0 0 18px;
}

.control {
  display: grid;
  gap: 6px;
}

.control label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

input,
select,
button,
.button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
}

input,
select {
  min-width: 220px;
  padding: 8px 10px;
}

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  cursor: pointer;
}

button.primary,
.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

button:hover,
.button:hover {
  border-color: var(--accent);
  text-decoration: none;
}

button:disabled,
.button:disabled,
.button.disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.button.disabled {
  pointer-events: none;
}

.button:disabled:hover,
button:disabled:hover,
.button.disabled:hover {
  border-color: var(--line);
  text-decoration: none;
}

.button.ghost {
  background: var(--panel-soft);
}

button.primary,
.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--panel);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

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

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

th {
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

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

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

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 28px;
}

.metric {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  padding: 14px;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
  line-height: 1.2;
}

.panel {
  padding: 18px;
}

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

.detail-card h2,
.panel h2 {
  margin-top: 0;
}

.detail-list {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
}

.detail-list div {
  display: grid;
  gap: 3px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 9px;
}

.detail-list div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.detail-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.detail-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.tag-groups {
  display: grid;
  gap: 12px;
}

.tag-group {
  display: grid;
  gap: 6px;
}

.tag-group strong {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.mode-section {
  margin-bottom: 22px;
}

.mode-section h2 {
  margin: 0 0 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-weight: 600;
  letter-spacing: 0;
}

.workflow-step {
  display: grid;
  gap: 14px;
}

.workflow-step + .workflow-step {
  margin-top: 18px;
}

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

.workflow-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.workflow-actions .status {
  margin: 0;
  margin-right: auto;
}

.wide-control {
  min-width: min(360px, 100%);
}

.compact-control {
  min-width: min(260px, 100%);
}

.filter-line {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
}

.check-control {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.check-control input {
  min-width: auto;
  min-height: auto;
}

input:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

.compact-table table {
  min-width: 980px;
}

.preview-table table {
  min-width: 920px;
}

.preview-table td,
.preview-table th {
  max-width: 220px;
  overflow-wrap: anywhere;
}

.small-button {
  min-height: 32px;
  padding: 5px 9px;
}

.tag-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 170px;
}

.small-tag {
  border-radius: 4px;
  font-size: 11px;
  padding: 3px 6px;
}

.chart {
  width: 100%;
  min-height: 420px;
}

.chart-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
  color: var(--muted);
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 12px 0 0;
  list-style: none;
}

.pill-list li,
.tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--ink);
  font-size: 13px;
  padding: 5px 9px;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.prose {
  max-width: 850px;
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose strong {
  color: var(--ink);
}

.prose code,
code {
  border-radius: 4px;
  background: var(--panel-soft);
  color: var(--accent);
  padding: 2px 5px;
}

pre {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #26282b;
  color: #f7f3ea;
  padding: 16px;
}

.placeholder-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 16px 0 0;
  list-style: none;
}

.placeholder-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

.citation-block {
  margin: 16px 0;
  padding: 18px;
}

.status {
  color: var(--muted);
  min-height: 24px;
}

.status.is-loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.status-logo {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.inline-loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.error {
  color: #8f231f;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 22px 0 34px;
}

.site-footer .inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

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

  .nav-links {
    justify-content: flex-start;
  }

  .entry-grid,
  .metrics-grid,
  .content-grid,
  .detail-card-grid {
    grid-template-columns: 1fr;
  }

  input,
  select {
    width: 100%;
    min-width: 0;
  }

  .toolbar {
    align-items: stretch;
  }

  .control {
    width: 100%;
  }

  .home-hero {
    min-height: auto;
    padding-top: 36px;
  }

  .home-stats {
    grid-template-columns: 1fr;
  }

  .home-stats div + div {
    border-top: 1px solid rgba(217, 224, 234, 0.8);
    border-left: 0;
  }

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

  .stage-block,
  .stage-block-large {
    min-height: 160px;
  }
}
