@font-face {
  font-family: "Creato";
  src: url("../assets/hub/manual-participante/fonts/CreatoDisplay_Regular-s.p.2uwpzgxwh_5dd.woff2")
    format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Creato";
  src: url("../assets/hub/manual-participante/fonts/CreatoDisplay_Bold-s.p.2vadymzu1zofi.woff2")
    format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Creato";
  src: url("../assets/hub/manual-participante/fonts/CreatoDisplay_ExtraBold-s.p.2bkm0z292q3ye.woff2")
    format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #122126;
  --ink-soft: #35474d;
  --muted: #687b80;
  --paper: #edf3f3;
  --surface: #ffffff;
  --surface-soft: #f7fafa;
  --line: #cdd9db;
  --line-strong: #aebfc2;
  --accent: #0c899d;
  --accent-dark: #096878;
  --approved: #237a59;
  --approved-soft: #e6f3ec;
  --production: #9b6a0c;
  --production-soft: #fff4d8;
  --pending: #b34c3b;
  --pending-soft: #fbeae7;
  --shadow: 0 24px 70px rgba(26, 54, 61, 0.1);
  --radius: 14px;
  --page: min(1480px, calc(100vw - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(18, 33, 38, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 33, 38, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 32px 32px;
  font-family: "Creato", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  color: white;
  background: var(--ink);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

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

:focus-visible {
  outline: 3px solid #e38c3d;
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  min-height: 68px;
  padding: 10px 24px;
  border-bottom: 1px solid rgba(174, 191, 194, 0.7);
  background: rgba(237, 243, 243, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--accent-dark);
  background: white;
  font-size: 12px;
  font-weight: 800;
}

.brand-copy {
  display: grid;
  line-height: 1.05;
}

.brand-copy strong {
  font-size: 15px;
  letter-spacing: 0.06em;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.header-status {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.header-status span:first-child {
  padding: 5px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  background: white;
  font-weight: 700;
}

.back-link {
  justify-self: end;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: white;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition:
    border-color 160ms ease,
    transform 160ms ease;
}

.back-link:hover {
  border-color: var(--accent);
}

.back-link:active,
button:active,
.primary-action:active,
.secondary-action:active {
  transform: translateY(1px);
}

main,
.site-footer {
  width: var(--page);
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
  min-height: min(720px, calc(100vh - 68px));
  padding: 64px 0;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(48px, 6.4vw, 96px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.hero h1 span {
  display: block;
  color: var(--accent-dark);
}

.hero-lead {
  max-width: 600px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: clamp(18px, 1.45vw, 23px);
  line-height: 1.45;
}

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

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 19px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.primary-action {
  border: 1px solid var(--ink);
  color: white;
  background: var(--ink);
}

.primary-action:hover {
  background: var(--accent-dark);
}

.secondary-action {
  border: 1px solid var(--line-strong);
  background: white;
  cursor: pointer;
}

.secondary-action:hover {
  border-color: var(--accent);
}

.hero-board {
  position: relative;
  padding: 14px;
  border: 1px solid #26363b;
  border-radius: 26px;
  color: white;
  background: #111c20;
  box-shadow: var(--shadow);
  transform: rotate(1.2deg);
}

.hero-board::before {
  position: absolute;
  z-index: -1;
  inset: 12px -14px -16px 16px;
  border-radius: 26px;
  background: #9ecbd3;
  content: "";
}

.hero-board-top,
.hero-board-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 7px;
  color: #b8c6c9;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.hero-board-footer {
  justify-content: flex-start;
  margin-top: 10px;
}

.hero-board-footer span + span {
  padding-left: 12px;
  border-left: 1px solid #3d4b50;
}

.hero-board-screen {
  display: flex;
  aspect-ratio: 16 / 9;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(28px, 4vw, 58px);
  border-radius: 15px;
  background:
    radial-gradient(circle at 80% 15%, rgba(141, 216, 229, 0.25), transparent 34%),
    linear-gradient(145deg, #17262b, #0d1619);
}

.hero-board-screen small {
  margin-bottom: 13px;
  color: #8dd8e5;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.hero-board-screen strong {
  max-width: 13ch;
  font-size: clamp(28px, 4vw, 52px);
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.hero-board-screen p {
  max-width: 38ch;
  margin: 18px 0 0;
  color: #cad6d8;
  font-size: clamp(12px, 1.2vw, 16px);
}

.segment-navigation,
.runboard,
.board-section,
.approval-legend {
  scroll-margin-top: 92px;
}

.segment-navigation {
  padding: 54px 0 24px;
  border-top: 1px solid var(--line-strong);
}

.section-heading h2,
.runboard h2,
.approval-legend h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 54px);
  letter-spacing: -0.045em;
  line-height: 1;
}

.section-heading > p:not(.eyebrow),
.runboard-heading p,
.approval-legend > div > p {
  max-width: 60ch;
  margin: 14px 0 0;
  color: var(--muted);
}

.segment-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 30px;
  padding-bottom: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}

.segment-tabs button {
  position: relative;
  display: grid;
  min-width: 220px;
  min-height: 130px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: left;
  background: rgba(255, 255, 255, 0.76);
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.segment-tabs button::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--segment-color);
  content: "";
}

.segment-tabs button:hover {
  border-color: var(--accent);
  background: white;
}

.segment-tabs button[aria-selected="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
  box-shadow: 0 12px 30px rgba(18, 33, 38, 0.14);
}

.segment-tabs span {
  font-size: 18px;
  font-weight: 800;
}

.segment-tabs strong {
  align-self: end;
  margin-top: 20px;
  font-size: 14px;
}

.segment-tabs small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.segment-tabs button[aria-selected="true"] small {
  color: #b9c7ca;
}

.segment-overview {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: end;
  margin: 26px 0 0;
  padding: clamp(26px, 4vw, 46px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 18px 50px rgba(18, 33, 38, 0.06);
}

.segment-overview::after {
  position: absolute;
  top: -40%;
  right: -4%;
  width: 260px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--segment-color);
  opacity: 0.2;
  content: "";
  filter: blur(2px);
}

.segment-overview-copy {
  position: relative;
  z-index: 1;
}

.segment-overview-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.segment-overview h2 {
  max-width: 16ch;
  margin: 0;
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.segment-overview-copy > p {
  max-width: 64ch;
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 18px;
}

.segment-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(90px, 1fr));
  gap: 1px;
  min-width: 330px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--line);
}

.segment-stats div {
  padding: 18px;
  background: var(--surface-soft);
}

.segment-stats dt {
  color: var(--muted);
  font-size: 11px;
}

.segment-stats dd {
  margin: 5px 0 0;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 8px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.status-badge.is-approved {
  color: var(--approved);
  background: var(--approved-soft);
}

.status-badge.is-production {
  color: var(--production);
  background: var(--production-soft);
}

.status-badge.is-pending {
  color: var(--pending);
  background: var(--pending-soft);
}

.runboard {
  padding: 88px 0;
}

.runboard-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.runboard-heading button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: white;
  cursor: pointer;
  font-weight: 700;
}

.runboard-heading button:hover {
  border-color: var(--accent);
}

.runboard-layout {
  display: grid;
  grid-template-columns: minmax(390px, 0.82fr) minmax(0, 1.18fr);
  gap: 18px;
  align-items: start;
}

.moment-rail {
  display: grid;
  max-height: 740px;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
  list-style: none;
  scrollbar-width: thin;
}

.moment-rail li + li {
  border-top: 1px solid var(--line);
}

.moment-rail button {
  display: grid;
  grid-template-columns: 38px 100px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 78px;
  padding: 14px 16px;
  border: 0;
  text-align: left;
  background: transparent;
  cursor: pointer;
  transition: background 160ms ease;
}

.moment-rail button:hover {
  background: var(--surface-soft);
}

.moment-rail button[aria-current="true"] {
  background: var(--ink);
  color: white;
}

.moment-index {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.moment-time {
  display: grid;
  font-size: 13px;
  font-weight: 700;
}

.moment-time small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
}

.moment-rail strong {
  font-size: 14px;
  line-height: 1.22;
}

.moment-state {
  font-size: 10px;
  font-weight: 700;
}

.moment-rail .is-approved .moment-state {
  color: var(--approved);
}

.moment-rail .is-production .moment-state {
  color: var(--production);
}

.moment-rail .is-pending .moment-state {
  color: var(--pending);
}

.moment-rail button[aria-current="true"] .moment-index,
.moment-rail button[aria-current="true"] .moment-time small,
.moment-rail button[aria-current="true"] .moment-state {
  color: #b8c6c9;
}

.operations-panel {
  position: sticky;
  top: 88px;
  min-height: 600px;
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 20px 60px rgba(18, 33, 38, 0.07);
}

.operations-panel::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  border-radius: var(--radius) 0 0 var(--radius);
  content: "";
}

.operations-panel.is-approved::before {
  background: var(--approved);
}

.operations-panel.is-production::before {
  background: var(--production);
}

.operations-panel.is-pending::before {
  background: var(--pending);
}

.operations-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.operations-panel h3 {
  max-width: 18ch;
  margin: 18px 0 0;
  font-size: clamp(30px, 3.5vw, 48px);
  letter-spacing: -0.045em;
  line-height: 1;
}

.operations-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 30px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--line);
}

.operations-list > div {
  padding: 18px;
  background: var(--surface-soft);
}

.operations-list > div:nth-child(1),
.operations-list > div:nth-child(2),
.operations-list > div:nth-child(3),
.operations-list > div:nth-child(4) {
  min-height: 135px;
}

.operations-list .operations-action:not(.is-empty) {
  color: #0d4f5b;
  background: #e5f4f7;
}

.operations-list dt {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.operations-list dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

.board-section {
  padding: 82px 0;
  border-top: 1px solid var(--line-strong);
}

.board-heading {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 420px);
  gap: 40px;
  align-items: end;
}

.search-field {
  display: grid;
  gap: 8px;
}

.search-field span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.search-field input {
  width: 100%;
  height: 48px;
  padding: 0 15px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--ink);
  background: white;
}

.search-field input::placeholder {
  color: #71858a;
}

.moment-filters {
  display: flex;
  gap: 8px;
  margin-top: 28px;
  padding-bottom: 10px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}

.moment-filters button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  font-size: 12px;
}

.moment-filters button:hover {
  border-color: var(--accent);
}

.moment-filters button[aria-pressed="true"] {
  border-color: var(--ink);
  color: white;
  background: var(--ink);
}

.board-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 54px;
  color: var(--muted);
  font-size: 12px;
}

.board-status button {
  border: 0;
  color: var(--accent-dark);
  background: transparent;
  cursor: pointer;
  font-weight: 700;
}

.storyboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 18px;
}

.slide-card {
  min-width: 0;
}

.slide-card-button {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: white;
  box-shadow: 0 13px 34px rgba(18, 33, 38, 0.06);
  cursor: pointer;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.slide-card-button:hover {
  border-color: var(--accent);
  box-shadow: 0 20px 46px rgba(18, 33, 38, 0.11);
  transform: translateY(-2px);
}

.slide-preview {
  position: relative;
  display: flex;
  aspect-ratio: 16 / 9;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(18px, 2vw, 30px);
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 10%, color-mix(in srgb, var(--segment-color) 35%, transparent), transparent 34%),
    linear-gradient(145deg, #ffffff, #f4f8f8);
  text-align: left;
}

.slide-preview::before {
  position: absolute;
  inset: 0;
  border-top: 5px solid var(--segment-color);
  content: "";
  pointer-events: none;
}

.slide-preview-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-preview[data-type="reveal"] .slide-preview-image {
  width: 42%;
  left: auto;
  object-position: 50% 20%;
}

.slide-preview-scrim {
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: none;
}

.slide-preview.has-asset:not([data-type="reveal"]) {
  color: white;
}

.slide-preview.has-asset:not([data-type="reveal"]) .slide-preview-scrim {
  background: linear-gradient(
    180deg,
    rgba(5, 15, 18, 0.2),
    rgba(5, 15, 18, 0.84)
  );
}

.slide-preview[data-type="reveal"] .slide-preview-scrim {
  background: linear-gradient(90deg, #f4f8f8 0 58%, transparent 72%);
}

.slide-kicker,
.slide-content,
.slide-action-flag {
  position: relative;
  z-index: 2;
}

.slide-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: clamp(8px, 0.75vw, 10px);
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.slide-content {
  max-width: 92%;
}

.slide-preview[data-type="reveal"] .slide-content {
  max-width: 55%;
}

.slide-content h3 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(20px, 2.15vw, 37px);
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.slide-content p {
  max-width: 56ch;
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: clamp(9px, 0.86vw, 14px);
  line-height: 1.35;
}

.slide-preview.has-asset:not([data-type="reveal"]) .slide-content p {
  color: #e4edef;
}

.slide-action-flag {
  position: absolute;
  right: 16px;
  bottom: 14px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #075360;
  background: #d9f4f7;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.slide-card-meta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 9px 2px 0;
  color: var(--muted);
  font-size: 10px;
}

.slide-card-meta strong {
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.slide-card.is-approved .slide-status {
  color: var(--approved);
}

.slide-card.is-production .slide-status {
  color: var(--production);
}

.slide-card.is-pending .slide-status {
  color: var(--pending);
}

.empty-state {
  padding: 64px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  text-align: center;
}

.empty-state strong,
.empty-state span {
  display: block;
}

.empty-state span {
  margin-top: 8px;
  color: var(--muted);
}

.approval-legend {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 60px;
  align-items: start;
  padding: 82px 0;
  border-top: 1px solid var(--line-strong);
}

.approval-legend ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  list-style: none;
}

.approval-legend li {
  min-height: 180px;
  padding: 22px;
  background: white;
}

.legend-mark {
  display: block;
  width: 26px;
  height: 4px;
  margin-bottom: 24px;
  border-radius: 999px;
}

.legend-mark.approved {
  background: var(--approved);
}

.legend-mark.production {
  background: var(--production);
}

.legend-mark.pending {
  background: var(--pending);
}

.approval-legend strong {
  display: block;
  font-size: 15px;
}

.approval-legend li p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.slide-dialog {
  width: min(1420px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 40px 120px rgba(4, 16, 20, 0.42);
}

.slide-dialog::backdrop {
  background: rgba(8, 20, 24, 0.76);
  backdrop-filter: blur(8px);
}

.dialog-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  max-height: calc(100vh - 32px);
}

.dialog-header,
.dialog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}

.dialog-header > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.dialog-header span,
.dialog-header strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dialog-header span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.dialog-header strong {
  font-size: 13px;
}

.dialog-close {
  display: grid;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: white;
  cursor: pointer;
  font-size: 24px;
}

.dialog-content {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.5fr);
  gap: 20px;
  min-height: 0;
  padding: 20px;
  overflow: auto;
  background: var(--surface-soft);
}

.dialog-preview {
  align-self: start;
  min-width: 0;
}

.dialog-preview .slide-preview {
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.dialog-preview .slide-content h3 {
  font-size: clamp(30px, 4.2vw, 68px);
}

.dialog-preview .slide-content p {
  font-size: clamp(13px, 1.35vw, 21px);
}

.dialog-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  align-self: start;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--line);
}

.dialog-notes > div {
  min-height: 128px;
  padding: 16px;
  background: white;
}

.dialog-notes > .dialog-action-note {
  color: #0b5260;
  background: #e7f5f7;
}

.dialog-notes span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.dialog-notes p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
}

.dialog-footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.dialog-footer button {
  min-width: 120px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: white;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.dialog-footer button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.dialog-progress {
  width: min(320px, 34vw);
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}

.dialog-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
  transition: width 180ms ease;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 130px;
  padding: 30px 0;
  border-top: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 12px;
}

.site-footer > div {
  display: grid;
  gap: 5px;
}

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

.site-footer a {
  font-weight: 700;
}

.noscript-message {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 90;
  padding: 14px;
  border-radius: 10px;
  color: white;
  background: var(--pending);
  text-align: center;
}

@media (max-width: 1120px) {
  :root {
    --page: min(100% - 32px, 1040px);
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 56px 0;
  }

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

  .hero-board {
    width: min(820px, 100%);
  }

  .segment-tabs {
    grid-template-columns: repeat(4, minmax(240px, 1fr));
  }

  .runboard-layout {
    grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.22fr);
  }

  .operations-list {
    grid-template-columns: 1fr;
  }

  .operations-list > div:nth-child(n) {
    min-height: auto;
  }

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

  .dialog-content {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .header-status {
    display: none;
  }

  .segment-overview {
    grid-template-columns: 1fr;
  }

  .segment-stats {
    min-width: 0;
  }

  .runboard-layout {
    grid-template-columns: 1fr;
  }

  .moment-rail {
    max-height: 480px;
  }

  .operations-panel {
    position: relative;
    top: auto;
    min-height: auto;
  }

  .board-heading,
  .approval-legend {
    grid-template-columns: 1fr;
  }

  .approval-legend {
    gap: 28px;
  }
}

@media (max-width: 720px) {
  :root {
    --page: calc(100% - 24px);
    --radius: 12px;
  }

  .site-header {
    min-height: 62px;
    padding: 9px 12px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .brand-copy small {
    display: none;
  }

  .back-link {
    padding: 7px 10px;
    font-size: 11px;
  }

  .hero {
    gap: 36px;
    padding: 42px 0 52px;
  }

  .hero h1 {
    font-size: clamp(45px, 14.2vw, 70px);
  }

  .hero-lead {
    font-size: 17px;
  }

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

  .hero-board {
    padding: 9px;
    border-radius: 18px;
    transform: none;
  }

  .hero-board::before {
    inset: 8px -6px -8px 8px;
    border-radius: 18px;
  }

  .hero-board-screen {
    padding: 25px;
  }

  .hero-board-screen strong {
    font-size: 29px;
  }

  .hero-board-footer {
    overflow-x: auto;
    white-space: nowrap;
  }

  .segment-navigation {
    padding-top: 42px;
  }

  .segment-tabs {
    margin-right: -12px;
    padding-right: 12px;
  }

  .segment-overview {
    gap: 28px;
    padding: 24px;
  }

  .segment-overview h2 {
    font-size: 42px;
  }

  .segment-stats div {
    padding: 14px;
  }

  .segment-stats dd {
    font-size: 24px;
  }

  .runboard {
    padding: 64px 0;
  }

  .runboard-heading {
    display: grid;
  }

  .runboard-heading button {
    width: 100%;
  }

  .moment-rail button {
    grid-template-columns: 28px 90px minmax(0, 1fr);
    min-height: 74px;
    padding: 12px;
  }

  .moment-state {
    display: none;
  }

  .operations-panel {
    padding: 24px 18px;
  }

  .operations-list {
    grid-template-columns: 1fr;
  }

  .board-section {
    padding: 64px 0;
  }

  .board-heading {
    gap: 24px;
  }

  .moment-filters {
    margin-right: -12px;
    padding-right: 12px;
  }

  .storyboard-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .slide-preview {
    padding: 20px;
  }

  .slide-content h3 {
    font-size: clamp(26px, 8.2vw, 36px);
  }

  .slide-content p {
    font-size: 11px;
  }

  .approval-legend {
    padding: 64px 0;
  }

  .approval-legend ul {
    grid-template-columns: 1fr;
  }

  .approval-legend li {
    min-height: auto;
  }

  .slide-dialog {
    width: 100vw;
    max-height: 100dvh;
    border-radius: 0;
  }

  .dialog-shell {
    max-height: 100dvh;
  }

  .dialog-content {
    padding: 12px;
  }

  .dialog-notes {
    grid-template-columns: 1fr;
  }

  .dialog-notes > div {
    min-height: auto;
  }

  .dialog-footer {
    padding: 10px 12px;
  }

  .dialog-footer button {
    min-width: 98px;
    padding: 0 10px;
  }

  .dialog-progress {
    width: 22vw;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
