:root {
  --sky: #e7f0f6;
  --sky-bright: #f7fbfd;
  --water: #a8c8dc;
  --water-deep: #547f9f;
  --sand: #f4ecd8;
  --ink: #1a2b3c;
  --ink-soft: #405568;
  --accent: #d4915a;
  --sea-glass: #71b6a4;
  --line: rgba(26, 43, 60, 0.16);
  --panel: rgba(247, 251, 253, 0.76);
  --panel-solid: #f7fbfd;
  --page-bg: #f7fbfd;
  --success: #2d8f75;
  --warning: #c47b34;
  --danger: #b44b4b;
  --grade-a: #2d8f75;
  --grade-b: #5f93b6;
  --grade-c: #c47b34;
  --grade-d: #b44b4b;
  --shadow: 0 22px 70px rgba(26, 43, 60, 0.14);
  color-scheme: light dark;
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(231, 240, 246, 0.92), rgba(244, 236, 216, 0.54) 52%, #f7fbfd 100%),
    var(--sky-bright);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  transform: translateY(-180%);
  background: var(--ink);
  color: var(--sky-bright);
  padding: 0.7rem 0.9rem;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.15rem 1.4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 1.18rem;
  font-weight: 500;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: lowercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.93rem;
}

.site-nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 0.72rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-bottom-color: var(--ink);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
  min-height: 34px;
  padding: 0.16rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel-solid) 74%, transparent);
  box-shadow: 0 10px 26px rgba(26, 43, 60, 0.08);
}

.theme-toggle button {
  min-height: 28px;
  padding: 0 0.56rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 760;
}

.theme-toggle button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--sky-bright);
}

.theme-toggle button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.hero {
  position: relative;
  min-height: 88svh;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  align-items: center;
  padding: 7rem 1.4rem 5.5rem;
}

.hero-art,
.hero-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-art {
  object-fit: cover;
  object-position: center;
  z-index: -3;
}

.hero-scrim {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(247, 251, 253, 0.93) 0%, rgba(247, 251, 253, 0.77) 34%, rgba(247, 251, 253, 0.18) 72%),
    linear-gradient(180deg, rgba(247, 251, 253, 0.72) 0%, rgba(247, 251, 253, 0.06) 46%, rgba(244, 236, 216, 0.68) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -1px;
  height: 9.5rem;
  z-index: -1;
  background: linear-gradient(180deg, rgba(247, 251, 253, 0), #f7fbfd 78%);
}

.hero-copy {
  width: min(760px, 100%);
  padding-top: 2rem;
}

.kicker,
.section-label,
.feature-index {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  line-height: 1.3;
  text-transform: uppercase;
  font-weight: 760;
  color: var(--water-deep);
}

.hero h1,
.purpose-grid h2,
.best-grid h2,
.section-heading h2,
.cost-grid h2 {
  margin: 0;
  max-width: 780px;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-weight: 500;
  line-height: 1;
}

.hero h1 {
  display: grid;
  gap: 0.06em;
  font-size: 4.45rem;
}

.hero h1 span {
  display: block;
}

.hero-support {
  max-width: 620px;
  margin: 1.65rem 0 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 1.48rem;
  line-height: 1.35;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.primary-action,
.secondary-action {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.05rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--ink);
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.primary-action {
  background: var(--ink);
  color: var(--sky-bright);
}

.secondary-action {
  background: rgba(247, 251, 253, 0.42);
  color: var(--ink);
}

.primary-action:hover,
.secondary-action:hover,
.primary-action:focus-visible,
.secondary-action:focus-visible {
  transform: translateY(-2px);
}

.secondary-action:hover,
.secondary-action:focus-visible {
  background: var(--sky-bright);
}

.section-inner {
  width: min(1120px, calc(100% - 2.8rem));
  margin: 0 auto;
}

.purpose-band,
.best-band,
.operator-band,
.cost-band {
  padding: 6.5rem 0;
}

.purpose-band {
  background:
    linear-gradient(180deg, #f7fbfd 0%, rgba(231, 240, 246, 0.54) 100%);
}

.purpose-grid,
.best-grid,
.cost-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.72fr);
  gap: 4rem;
  align-items: start;
}

.purpose-grid h2,
.best-grid h2,
.section-heading h2,
.cost-grid h2 {
  font-size: 3.25rem;
}

.purpose-copy {
  display: grid;
  gap: 1.15rem;
  padding-top: 0.35rem;
  color: var(--ink-soft);
}

.purpose-copy p,
.alignment-list p,
.pledges p,
.feature-card p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.62;
}

.best-band {
  background:
    linear-gradient(180deg, rgba(231, 240, 246, 0.54), rgba(247, 251, 253, 0.86)),
    #f7fbfd;
}

.alignment-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.alignment-list article {
  padding: 1.2rem 0 1.35rem;
  border-bottom: 1px solid var(--line);
}

.alignment-list span {
  display: block;
  margin-bottom: 0.62rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 760;
  text-transform: uppercase;
}

.alignment-list h3 {
  margin: 0 0 0.42rem;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 1.6rem;
  font-weight: 500;
}

.alignment-list p {
  color: var(--ink-soft);
}

.operator-band {
  background:
    linear-gradient(180deg, rgba(231, 240, 246, 0.55), rgba(244, 236, 216, 0.74)),
    radial-gradient(circle at 82% 16%, rgba(113, 182, 164, 0.26), transparent 31%),
    #f4ecd8;
}

.section-heading {
  max-width: 760px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.4rem;
}

.feature-card {
  min-height: 260px;
  padding: 1.45rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(247, 251, 253, 0.82), rgba(247, 251, 253, 0.48)),
    rgba(255, 255, 255, 0.35);
  box-shadow: var(--shadow);
}

.feature-card h3 {
  margin: 2.8rem 0 0.8rem;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 1.85rem;
  font-weight: 500;
}

.feature-card:nth-child(2) {
  transform: translateY(1.1rem);
}

.feature-card:nth-child(3) {
  transform: translateY(2.2rem);
}

.cost-band {
  background:
    linear-gradient(180deg, #f4ecd8 0%, #f7fbfd 72%);
}

.pledges {
  display: grid;
  gap: 0.85rem;
}

.pledges p {
  padding-left: 1.15rem;
  border-left: 2px solid var(--accent);
}

.site-footer {
  background: #f7fbfd;
  border-top: 1px solid var(--line);
}

.footer-inner {
  width: min(1120px, calc(100% - 2.8rem));
  min-height: 92px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.5rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.footer-inner p {
  margin: 0;
}

.views-page {
  background:
    linear-gradient(180deg, rgba(231, 240, 246, 0.92), rgba(247, 251, 253, 0.98) 46%, rgba(244, 236, 216, 0.58) 100%),
    var(--page-bg);
}

.views-page .site-header {
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--page-bg) 86%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.views-hero {
  padding: 8rem 0 6rem;
  background:
    radial-gradient(circle at 82% 14%, rgba(113, 182, 164, 0.24), transparent 30%),
    linear-gradient(180deg, rgba(231, 240, 246, 0.74), rgba(247, 251, 253, 0.96));
}

.views-hero-grid,
.views-two-column,
.restaurant-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(300px, 0.72fr);
  gap: 4rem;
  align-items: start;
}

.views-hero h1,
.views-two-column h2,
.portfolio-band h2,
.restaurant-grid h2,
.final-band h2 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 3.65rem;
  font-weight: 500;
  line-height: 1;
}

.views-lede,
.views-copy {
  max-width: 680px;
  margin: 1.35rem 0 0;
  color: var(--ink-soft);
  font-size: 1.14rem;
  line-height: 1.68;
}

.theme-proof {
  display: grid;
  gap: 0.75rem;
  padding-top: 0.4rem;
}

.theme-proof span {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 0 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font-weight: 760;
}

.views-band,
.portfolio-band,
.restaurant-band {
  padding: 6.5rem 0;
}

.views-band {
  background: linear-gradient(180deg, var(--panel-solid), rgba(231, 240, 246, 0.56));
}

.portfolio-band {
  background:
    linear-gradient(180deg, rgba(231, 240, 246, 0.56), rgba(244, 236, 216, 0.66)),
    var(--sand);
}

.restaurant-band {
  background:
    radial-gradient(circle at 10% 12%, rgba(212, 145, 90, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(244, 236, 216, 0.66), rgba(247, 251, 253, 0.94));
}

.view-stack {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.view-row {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1.15rem 0 1.25rem;
  border-bottom: 1px solid var(--line);
}

.view-row span,
.metric-label,
.connector-matrix span,
.build-list span {
  color: var(--water-deep);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.view-row h3,
.dashboard-card h3,
.connector-matrix strong,
.build-list h3 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1.1;
}

.view-row p,
.dashboard-card p,
.connector-matrix p,
.build-list p {
  margin: 0.48rem 0 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.58;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.4rem;
}

.dashboard-card,
.connector-matrix article,
.build-list article {
  min-height: 230px;
  padding: 1.3rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--panel-solid) 82%, transparent), color-mix(in srgb, var(--panel-solid) 58%, transparent)),
    var(--panel);
  box-shadow: var(--shadow);
}

.signal-card {
  display: grid;
  align-content: start;
}

.mini-scale {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.35rem;
  margin-top: 1.35rem;
}

.mini-scale span {
  min-height: 38px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: #fff;
  font-weight: 800;
}

.grade-a {
  background: var(--grade-a);
}

.grade-b {
  background: var(--grade-b);
}

.grade-c {
  background: var(--grade-c);
}

.grade-d {
  background: var(--grade-d);
}

.connector-matrix,
.build-list {
  display: grid;
  gap: 1rem;
}

.connector-matrix article {
  min-height: 0;
}

.connector-matrix strong {
  display: block;
  margin-top: 0.56rem;
}

.build-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 2.4rem;
}

.build-list article {
  min-height: 246px;
}

.design-system-page {
  background:
    linear-gradient(180deg, rgba(231, 240, 246, 0.92), rgba(247, 251, 253, 0.98) 36%, rgba(244, 236, 216, 0.42) 100%),
    var(--page-bg);
}

.design-system-page .site-header {
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--page-bg) 88%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.ds-hero {
  padding: 8rem 0 5.5rem;
  background:
    radial-gradient(circle at 12% 10%, rgba(212, 145, 90, 0.16), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(113, 182, 164, 0.2), transparent 28%),
    linear-gradient(180deg, rgba(231, 240, 246, 0.74), rgba(247, 251, 253, 0.96));
}

.ds-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.72fr);
  gap: 4rem;
  align-items: start;
}

.ds-hero h1,
.ds-band h2 {
  margin: 0;
  max-width: 860px;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 3.65rem;
  font-weight: 500;
  line-height: 1;
}

.ds-principles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.ds-principles span {
  min-height: 88px;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font-weight: 780;
}

.ds-band {
  padding: 6.5rem 0;
  background: linear-gradient(180deg, var(--panel-solid), rgba(231, 240, 246, 0.5));
}

.ds-band.alt {
  background:
    linear-gradient(180deg, rgba(231, 240, 246, 0.52), rgba(244, 236, 216, 0.62)),
    var(--sand);
}

.ds-wide-inner {
  width: min(1360px, calc(100% - 2.8rem));
}

.dashboard-builder {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 330px;
  gap: 1rem;
  margin-top: 2.4rem;
  align-items: stretch;
}

.dashboard-builder > * {
  min-width: 0;
  max-width: 100%;
}

.card-picker,
.dashboard-canvas,
.component-panel,
.template-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--panel-solid) 84%, transparent), color-mix(in srgb, var(--panel-solid) 58%, transparent)),
    var(--panel);
  box-shadow: var(--shadow);
}

.card-picker {
  padding: 1rem;
}

.picker-heading {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}

.picker-heading span,
.picker-group h3 {
  color: var(--water-deep);
  font-size: 0.76rem;
  font-weight: 820;
  text-transform: uppercase;
}

.picker-heading strong {
  color: var(--ink);
  font-size: 0.88rem;
}

.picker-search {
  display: grid;
  gap: 0.4rem;
  margin: 1rem 0;
}

.picker-search span {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 760;
}

.picker-search input {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: color-mix(in srgb, var(--panel-solid) 72%, transparent);
  color: var(--ink);
  font: inherit;
  padding: 0 0.75rem;
}

.picker-group {
  display: grid;
  gap: 0.45rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
}

.picker-group h3 {
  margin: 0 0 0.2rem;
}

.picker-group button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  text-align: left;
  padding: 0 0.65rem;
}

.picker-group button:hover,
.picker-group button:focus-visible {
  background: color-mix(in srgb, var(--sea-glass) 14%, transparent);
}

.dashboard-canvas {
  min-height: 620px;
  padding: 1rem;
}

.canvas-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.canvas-toolbar h3,
.mini-widget h4,
.component-panel h3,
.template-card h3 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1.1;
}

.segmented-control {
  display: inline-flex;
  gap: 0.12rem;
  padding: 0.18rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel-solid) 70%, transparent);
}

.segmented-control button {
  min-height: 30px;
  padding: 0 0.72rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 760;
}

.segmented-control button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--sky-bright);
}

.canvas-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.mini-widget {
  min-height: 188px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-solid) 74%, transparent);
}

.mini-widget[data-skip-selected="true"] {
  outline: 2px solid color-mix(in srgb, var(--sea-glass) 72%, var(--ink));
  outline-offset: 3px;
}

.mini-widget.span-2 {
  grid-column: span 2;
}

.widget-topline {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--water-deep);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.mini-widget p,
.component-panel p,
.template-card p {
  margin: 0.7rem 0 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.progress-rail {
  height: 10px;
  margin-top: 1rem;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--line) 65%, transparent);
}

.progress-rail span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--sea-glass);
}

.progress-82 span {
  width: 82%;
}

.component-grid,
.template-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.4rem;
}

.component-panel,
.template-card {
  min-height: 230px;
  padding: 1.25rem;
}

.pulse-row,
.action-buttons,
.tag-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.pulse-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 0.72rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
}

.pulse-pill.good {
  color: var(--success);
}

.pulse-pill.warn {
  color: var(--warning);
}

.pulse-pill.danger {
  color: var(--danger);
}

.action-card {
  grid-column: span 2;
}

.action-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.action-meta span,
.tag-strip b {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 0.52rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 760;
}

.action-buttons button {
  min-height: 38px;
  padding: 0 0.85rem;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: var(--ink);
  color: var(--sky-bright);
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 780;
}

.action-buttons button + button {
  background: transparent;
  color: var(--ink);
}

.approval-row,
.report-list div,
.connector-list span,
.evidence-stack span {
  display: grid;
  gap: 0.7rem;
  align-items: center;
  min-height: 46px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.approval-row {
  grid-template-columns: 5.8rem minmax(0, 1fr);
  align-items: start;
  padding: 0.55rem 0;
}

.approval-row em {
  grid-column: 2;
  margin-top: -0.45rem;
}

.report-list div {
  grid-template-columns: minmax(86px, 0.45fr) minmax(0, 1fr) auto;
}

.approval-row:last-child,
.report-list div:last-child,
.connector-list span:last-child,
.evidence-stack span:last-child {
  border-bottom: 0;
}

.approval-row strong,
.report-list strong,
.connector-list strong {
  color: var(--ink);
}

.approval-row em,
.report-list em {
  color: var(--warning);
  font-style: normal;
  font-weight: 760;
}

.evidence-stack,
.connector-list {
  display: grid;
  margin-top: 0.85rem;
}

.evidence-stack span,
.connector-list span {
  grid-template-columns: minmax(0, 1fr) auto;
}

.template-card span {
  color: var(--water-deep);
  font-size: 0.76rem;
  font-weight: 820;
  text-transform: uppercase;
}

.template-card h3 {
  margin-top: 0.55rem;
}

.skip-rail-preview {
  min-height: 620px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(247, 251, 253, 0.96), rgba(247, 251, 253, 0.82)),
    #f7fbfd;
  box-shadow: var(--shadow);
}

.skip-rail-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
}

.skip-rail-head h3,
.skip-change-card h4 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-weight: 500;
  line-height: 1.1;
}

.skip-rail-head h3 {
  font-size: 1.32rem;
}

.skip-change-card h4 {
  font-size: 1.05rem;
}

.skip-rail-head button,
.skip-scope button,
.skip-composer button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 760;
  padding: 0 0.7rem;
}

.skip-scope {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line);
}

.skip-scope button {
  min-height: 30px;
  border-radius: 999px;
}

.skip-scope button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--sky-bright);
}

.skip-context-card,
.skip-change-card {
  margin: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(247, 251, 253, 0.84);
}

.skip-context-card strong {
  display: block;
  color: var(--ink);
  font-size: 0.92rem;
}

.skip-context-card p,
.skip-change-card p,
.skip-bubble {
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.45;
}

.skip-context-card p,
.skip-change-card p {
  margin: 0.55rem 0 0;
}

.skip-thread {
  display: grid;
  gap: 0.65rem;
  padding: 0 1rem;
}

.skip-bubble {
  max-width: 94%;
  margin: 0;
  padding: 0.75rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(231, 240, 246, 0.78);
}

.skip-bubble.user {
  justify-self: end;
  background: var(--ink);
  color: var(--sky-bright);
}

.skip-change-card {
  border-color: color-mix(in srgb, var(--sea-glass) 45%, var(--line));
}

.skip-change-card .action-buttons button {
  min-height: 34px;
}

.skip-composer {
  display: grid;
  gap: 0.65rem;
  margin-top: auto;
  padding: 1rem;
  border-top: 1px solid var(--line);
}

.skip-composer label {
  display: grid;
  gap: 0.4rem;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 760;
}

.skip-composer textarea {
  width: 100%;
  min-height: 78px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(247, 251, 253, 0.9);
  color: var(--ink);
  font: inherit;
  padding: 0.7rem;
}

.skip-composer button {
  background: var(--ink);
  color: var(--sky-bright);
}

:root[data-theme="dark"] .design-system-page,
:root[data-theme="dark"] .ds-hero,
:root[data-theme="dark"] .ds-band,
:root[data-theme="dark"] .ds-band.alt {
  background:
    radial-gradient(circle at 82% 14%, rgba(124, 200, 182, 0.13), transparent 30%),
    linear-gradient(180deg, rgba(16, 37, 54, 0.95), rgba(7, 19, 30, 0.98));
}

:root[data-theme="dark"] .card-picker,
:root[data-theme="dark"] .dashboard-canvas,
:root[data-theme="dark"] .skip-rail-preview,
:root[data-theme="dark"] .component-panel,
:root[data-theme="dark"] .template-card,
:root[data-theme="dark"] .mini-widget {
  background:
    linear-gradient(180deg, rgba(14, 31, 44, 0.9), rgba(14, 31, 44, 0.62)),
    var(--panel);
}

:root[data-theme="dark"] .skip-context-card,
:root[data-theme="dark"] .skip-change-card,
:root[data-theme="dark"] .skip-composer textarea {
  background: rgba(14, 31, 44, 0.82);
}

:root[data-theme="dark"] .skip-bubble:not(.user) {
  background: rgba(16, 37, 54, 0.86);
}

:root[data-theme="light"] .design-system-page {
  background:
    linear-gradient(180deg, rgba(231, 240, 246, 0.92), rgba(247, 251, 253, 0.98) 36%, rgba(244, 236, 216, 0.42) 100%),
    var(--page-bg);
}

:root[data-theme="light"] .ds-hero {
  background:
    radial-gradient(circle at 12% 10%, rgba(212, 145, 90, 0.16), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(113, 182, 164, 0.2), transparent 28%),
    linear-gradient(180deg, rgba(231, 240, 246, 0.74), rgba(247, 251, 253, 0.96));
}

:root[data-theme="light"] .ds-band {
  background: linear-gradient(180deg, var(--panel-solid), rgba(231, 240, 246, 0.5));
}

:root[data-theme="light"] .ds-band.alt {
  background:
    linear-gradient(180deg, rgba(231, 240, 246, 0.52), rgba(244, 236, 216, 0.62)),
    var(--sand);
}

@media (prefers-color-scheme: dark) {
  :root {
    --sky: #102536;
    --sky-bright: #07131e;
    --water: #284d62;
    --water-deep: #8fb8ca;
    --sand: #332b21;
    --ink: #edf6f5;
    --ink-soft: #b8c9cf;
    --accent: #e0a46f;
    --sea-glass: #7cc8b6;
    --line: rgba(237, 246, 245, 0.16);
    --panel: rgba(14, 31, 44, 0.72);
    --panel-solid: #0e1f2c;
    --page-bg: #07131e;
    --success: #7cc8b6;
    --warning: #e0a46f;
    --danger: #df7373;
    --grade-a: #56b89b;
    --grade-b: #73a8c9;
    --grade-c: #d89454;
    --grade-d: #d75d63;
    --shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
    color-scheme: dark;
  }

  :root:not([data-theme]) body {
    background:
      linear-gradient(180deg, rgba(16, 37, 54, 0.96), rgba(7, 19, 30, 0.98) 52%, #07131e 100%),
      var(--page-bg);
  }

  :root:not([data-theme]) .hero-art {
    filter: saturate(0.78) brightness(0.68);
  }

  :root:not([data-theme]) .hero-scrim {
    background:
      linear-gradient(90deg, rgba(7, 19, 30, 0.94) 0%, rgba(7, 19, 30, 0.78) 38%, rgba(7, 19, 30, 0.18) 78%),
      linear-gradient(180deg, rgba(7, 19, 30, 0.68) 0%, rgba(7, 19, 30, 0.12) 46%, rgba(7, 19, 30, 0.86) 100%);
  }

  :root:not([data-theme]) .hero::after {
    background: linear-gradient(180deg, rgba(7, 19, 30, 0), #07131e 78%);
  }

  :root:not([data-theme]) .secondary-action {
    background: rgba(14, 31, 44, 0.62);
  }

  :root:not([data-theme]) .secondary-action:hover,
  :root:not([data-theme]) .secondary-action:focus-visible {
    background: var(--panel-solid);
  }

  :root:not([data-theme]) .purpose-band,
  :root:not([data-theme]) .best-band,
  :root:not([data-theme]) .operator-band,
  :root:not([data-theme]) .cost-band,
  :root:not([data-theme]) .site-footer {
    background: var(--page-bg);
  }

  :root:not([data-theme]) .feature-card,
  :root:not([data-theme]) .dashboard-card,
  :root:not([data-theme]) .connector-matrix article,
  :root:not([data-theme]) .build-list article {
    background:
      linear-gradient(180deg, rgba(14, 31, 44, 0.88), rgba(14, 31, 44, 0.62)),
      var(--panel);
  }

  :root:not([data-theme]) .views-page,
  :root:not([data-theme]) .views-hero,
  :root:not([data-theme]) .views-band,
  :root:not([data-theme]) .portfolio-band,
  :root:not([data-theme]) .restaurant-band,
  :root:not([data-theme]) .design-system-page,
  :root:not([data-theme]) .ds-hero,
  :root:not([data-theme]) .ds-band,
  :root:not([data-theme]) .ds-band.alt {
    background:
      radial-gradient(circle at 82% 14%, rgba(124, 200, 182, 0.13), transparent 30%),
      linear-gradient(180deg, rgba(16, 37, 54, 0.95), rgba(7, 19, 30, 0.98));
  }

  :root:not([data-theme]) .card-picker,
  :root:not([data-theme]) .dashboard-canvas,
  :root:not([data-theme]) .skip-rail-preview,
  :root:not([data-theme]) .component-panel,
  :root:not([data-theme]) .template-card,
  :root:not([data-theme]) .mini-widget {
    background:
      linear-gradient(180deg, rgba(14, 31, 44, 0.9), rgba(14, 31, 44, 0.62)),
      var(--panel);
  }

  :root:not([data-theme]) .skip-context-card,
  :root:not([data-theme]) .skip-change-card,
  :root:not([data-theme]) .skip-composer textarea {
    background: rgba(14, 31, 44, 0.82);
  }

  :root:not([data-theme]) .skip-bubble:not(.user) {
    background: rgba(16, 37, 54, 0.86);
  }
}

:root[data-theme="light"] {
  --sky: #e7f0f6;
  --sky-bright: #f7fbfd;
  --water: #a8c8dc;
  --water-deep: #547f9f;
  --sand: #f4ecd8;
  --ink: #1a2b3c;
  --ink-soft: #405568;
  --accent: #d4915a;
  --sea-glass: #71b6a4;
  --line: rgba(26, 43, 60, 0.16);
  --panel: rgba(247, 251, 253, 0.76);
  --panel-solid: #f7fbfd;
  --page-bg: #f7fbfd;
  --success: #2d8f75;
  --warning: #c47b34;
  --danger: #b44b4b;
  --grade-a: #2d8f75;
  --grade-b: #5f93b6;
  --grade-c: #c47b34;
  --grade-d: #b44b4b;
  --shadow: 0 22px 70px rgba(26, 43, 60, 0.14);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --sky: #102536;
  --sky-bright: #07131e;
  --water: #284d62;
  --water-deep: #8fb8ca;
  --sand: #332b21;
  --ink: #edf6f5;
  --ink-soft: #b8c9cf;
  --accent: #e0a46f;
  --sea-glass: #7cc8b6;
  --line: rgba(237, 246, 245, 0.16);
  --panel: rgba(14, 31, 44, 0.72);
  --panel-solid: #0e1f2c;
  --page-bg: #07131e;
  --success: #7cc8b6;
  --warning: #e0a46f;
  --danger: #df7373;
  --grade-a: #56b89b;
  --grade-b: #73a8c9;
  --grade-c: #d89454;
  --grade-d: #d75d63;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
  color-scheme: dark;
}

:root[data-theme="light"] body {
  background:
    linear-gradient(180deg, rgba(231, 240, 246, 0.92), rgba(244, 236, 216, 0.54) 52%, #f7fbfd 100%),
    var(--sky-bright);
}

:root[data-theme="dark"] body {
  background:
    linear-gradient(180deg, rgba(16, 37, 54, 0.96), rgba(7, 19, 30, 0.98) 52%, #07131e 100%),
    var(--page-bg);
}

:root[data-theme="light"] .hero-art {
  filter: none;
}

:root[data-theme="dark"] .hero-art {
  filter: saturate(0.78) brightness(0.68);
}

:root[data-theme="light"] .hero-scrim {
  background:
    linear-gradient(90deg, rgba(247, 251, 253, 0.93) 0%, rgba(247, 251, 253, 0.77) 34%, rgba(247, 251, 253, 0.18) 72%),
    linear-gradient(180deg, rgba(247, 251, 253, 0.72) 0%, rgba(247, 251, 253, 0.06) 46%, rgba(244, 236, 216, 0.68) 100%);
}

:root[data-theme="dark"] .hero-scrim {
  background:
    linear-gradient(90deg, rgba(7, 19, 30, 0.94) 0%, rgba(7, 19, 30, 0.78) 38%, rgba(7, 19, 30, 0.18) 78%),
    linear-gradient(180deg, rgba(7, 19, 30, 0.68) 0%, rgba(7, 19, 30, 0.12) 46%, rgba(7, 19, 30, 0.86) 100%);
}

:root[data-theme="light"] .hero::after {
  background: linear-gradient(180deg, rgba(247, 251, 253, 0), #f7fbfd 78%);
}

:root[data-theme="light"] .secondary-action {
  background: rgba(247, 251, 253, 0.42);
  color: var(--ink);
}

:root[data-theme="light"] .secondary-action:hover,
:root[data-theme="light"] .secondary-action:focus-visible {
  background: var(--sky-bright);
}

:root[data-theme="dark"] .hero::after {
  background: linear-gradient(180deg, rgba(7, 19, 30, 0), #07131e 78%);
}

:root[data-theme="dark"] .secondary-action {
  background: rgba(14, 31, 44, 0.62);
}

:root[data-theme="dark"] .secondary-action:hover,
:root[data-theme="dark"] .secondary-action:focus-visible {
  background: var(--panel-solid);
}

:root[data-theme="light"] .feature-card,
:root[data-theme="light"] .dashboard-card,
:root[data-theme="light"] .connector-matrix article,
:root[data-theme="light"] .build-list article,
:root[data-theme="light"] .card-picker,
:root[data-theme="light"] .dashboard-canvas,
:root[data-theme="light"] .skip-rail-preview,
:root[data-theme="light"] .component-panel,
:root[data-theme="light"] .template-card {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--panel-solid) 82%, transparent), color-mix(in srgb, var(--panel-solid) 58%, transparent)),
    var(--panel);
}

:root[data-theme="light"] .skip-context-card,
:root[data-theme="light"] .skip-change-card,
:root[data-theme="light"] .skip-composer textarea {
  background: rgba(247, 251, 253, 0.88);
}

:root[data-theme="light"] .skip-bubble:not(.user) {
  background: rgba(231, 240, 246, 0.78);
}

:root[data-theme="light"] .mini-widget {
  background: color-mix(in srgb, var(--panel-solid) 74%, transparent);
}

:root[data-theme="dark"] .feature-card,
:root[data-theme="dark"] .dashboard-card,
:root[data-theme="dark"] .connector-matrix article,
:root[data-theme="dark"] .build-list article {
  background:
    linear-gradient(180deg, rgba(14, 31, 44, 0.88), rgba(14, 31, 44, 0.62)),
    var(--panel);
}

:root[data-theme="light"] .views-page {
  background:
    linear-gradient(180deg, rgba(231, 240, 246, 0.92), rgba(247, 251, 253, 0.98) 46%, rgba(244, 236, 216, 0.58) 100%),
    var(--page-bg);
}

:root[data-theme="light"] .views-hero {
  background:
    radial-gradient(circle at 82% 14%, rgba(113, 182, 164, 0.24), transparent 30%),
    linear-gradient(180deg, rgba(231, 240, 246, 0.74), rgba(247, 251, 253, 0.96));
}

:root[data-theme="light"] .views-band {
  background: linear-gradient(180deg, var(--panel-solid), rgba(231, 240, 246, 0.56));
}

:root[data-theme="light"] .portfolio-band {
  background:
    linear-gradient(180deg, rgba(231, 240, 246, 0.56), rgba(244, 236, 216, 0.66)),
    var(--sand);
}

:root[data-theme="light"] .restaurant-band {
  background:
    radial-gradient(circle at 10% 12%, rgba(212, 145, 90, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(244, 236, 216, 0.66), rgba(247, 251, 253, 0.94));
}

:root[data-theme="light"] .purpose-band {
  background:
    linear-gradient(180deg, #f7fbfd 0%, rgba(231, 240, 246, 0.54) 100%);
}

:root[data-theme="light"] .best-band {
  background:
    linear-gradient(180deg, rgba(231, 240, 246, 0.54), rgba(247, 251, 253, 0.86)),
    #f7fbfd;
}

:root[data-theme="light"] .operator-band {
  background:
    linear-gradient(180deg, rgba(231, 240, 246, 0.55), rgba(244, 236, 216, 0.74)),
    radial-gradient(circle at 82% 16%, rgba(113, 182, 164, 0.26), transparent 31%),
    #f4ecd8;
}

:root[data-theme="light"] .cost-band {
  background:
    linear-gradient(180deg, #f4ecd8 0%, #f7fbfd 72%);
}

:root[data-theme="light"] .site-footer {
  background: #f7fbfd;
}

:root[data-theme="dark"] .purpose-band,
:root[data-theme="dark"] .best-band,
:root[data-theme="dark"] .operator-band,
:root[data-theme="dark"] .cost-band,
:root[data-theme="dark"] .site-footer {
  background: var(--page-bg);
}

:root[data-theme="dark"] .views-page,
:root[data-theme="dark"] .views-hero,
:root[data-theme="dark"] .views-band,
:root[data-theme="dark"] .portfolio-band,
:root[data-theme="dark"] .restaurant-band {
  background:
    radial-gradient(circle at 82% 14%, rgba(124, 200, 182, 0.13), transparent 30%),
    linear-gradient(180deg, rgba(16, 37, 54, 0.95), rgba(7, 19, 30, 0.98));
}

@media (max-width: 860px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
  }

  .site-nav {
    display: none;
  }

  .header-controls {
    margin-left: auto;
  }

  .hero {
    min-height: 86svh;
    padding-top: 6.25rem;
    padding-bottom: 4.6rem;
  }

  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(247, 251, 253, 0.91) 0%, rgba(247, 251, 253, 0.62) 50%, rgba(244, 236, 216, 0.78) 100%),
      linear-gradient(90deg, rgba(247, 251, 253, 0.88), rgba(247, 251, 253, 0.18));
  }

  .hero h1 {
    font-size: 3.05rem;
  }

  .hero-support {
    font-size: 1.22rem;
  }

  .purpose-grid,
  .best-grid,
  .cost-grid,
  .feature-grid,
  .views-hero-grid,
  .views-two-column,
  .restaurant-grid,
  .ds-hero-grid,
  .dashboard-builder,
  .dashboard-grid,
  .component-grid,
  .template-grid,
  .build-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .purpose-grid,
  .best-grid,
  .cost-grid {
    gap: 1.8rem;
  }

  .purpose-grid h2,
  .best-grid h2,
  .section-heading h2,
  .cost-grid h2 {
    font-size: 2.55rem;
  }

  .purpose-band,
  .best-band,
  .operator-band,
  .cost-band,
  .views-band,
  .portfolio-band,
  .restaurant-band {
    padding: 4.6rem 0;
  }

  .views-hero {
    padding: 6.4rem 0 4.6rem;
  }

  .views-hero h1,
  .views-two-column h2,
  .portfolio-band h2,
  .restaurant-grid h2,
  .ds-hero h1,
  .ds-band h2,
  .final-band h2 {
    font-size: 2.55rem;
  }

  .ds-hero,
  .ds-band {
    padding: 4.6rem 0;
  }

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

  .mini-widget.span-2,
  .action-card {
    grid-column: auto;
  }

  .dashboard-canvas {
    min-height: 0;
  }

  .feature-card,
  .feature-card:nth-child(2),
  .feature-card:nth-child(3) {
    min-height: 0;
    transform: none;
  }

  .feature-card h3 {
    margin-top: 1.9rem;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding: 0.95rem 1rem;
  }

  .brand {
    font-size: 0.96rem;
  }

  .hero {
    min-height: 84svh;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero h1 {
    font-size: 2.48rem;
    line-height: 1.03;
  }

  .hero-support {
    font-size: 1.08rem;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .section-inner,
  .footer-inner {
    width: min(100% - 2rem, 1120px);
  }

  .purpose-grid h2,
  .best-grid h2,
  .section-heading h2,
  .cost-grid h2,
  .views-hero h1,
  .views-two-column h2,
  .portfolio-band h2,
  .restaurant-grid h2,
  .final-band h2 {
    font-size: 2.15rem;
    line-height: 1.06;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }
}
