:root {
  color-scheme: light;
  --ink: #21242a;
  --muted: #70747b;
  --soft: #f5f6f8;
  --paper: #ffffff;
  --surface-high: #ffffff;
  --surface-low: #fafafa;
  --line: #d9dde3;
  --blue: #9eb9d4;
  --blue-deep: #536983;
  --blue-pale: #e6eef6;
  --rose: #d78293;
  --rose-soft: #f8e8ec;
  --green: #3f7b68;
  --amber: #a36c2a;
  --danger: #9d3e4c;
  --shadow: 0 18px 44px -34px rgba(33, 36, 42, 0.5);
  --shadow-soft: 0 10px 28px -28px rgba(33, 36, 42, 0.4);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--soft);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--soft);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

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

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

.app-header {
  position: sticky;
  top: 10px;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: min(1120px, calc(100% - 24px));
  min-height: 68px;
  margin: 10px auto 0;
  padding: 9px 12px;
  border: 1px solid rgba(213, 221, 231, 0.92);
  border-radius: 999px;
  background: var(--surface-high);
  box-shadow: var(--shadow);
}

.brand-block {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.brand-mark {
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--line), 0 8px 18px -14px rgba(38, 51, 68, 0.7);
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--blue-deep);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-family: "Snell Roundhand", "Brush Script MT", "Segoe Script", cursive;
  font-size: 1.65rem;
  font-weight: 500;
  line-height: 1.05;
}

.header-actions {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
}

.install-button,
.session-button,
.primary-action,
.secondary-action,
.download-link {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 11px 16px;
  font-weight: 800;
  text-decoration: none;
}

.install-button {
  border: 1px solid rgba(215, 130, 147, 0.22);
  background: var(--rose-soft);
  color: var(--danger);
}

.session-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--blue-deep);
  max-width: 92px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.install-button span {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-right: 4px;
  border-radius: 50%;
  background: var(--danger);
  color: #fff;
}

.app-main {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 20px 16px 110px;
}

.app-nav {
  position: fixed;
  right: 10px;
  bottom: 10px;
  left: 10px;
  z-index: 5;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  border: 1px solid rgba(213, 221, 231, 0.92);
  border-radius: 999px;
  padding: 6px;
  background: var(--surface-high);
  box-shadow: var(--shadow);
  scrollbar-width: none;
}

.app-nav::-webkit-scrollbar {
  display: none;
}

.nav-item {
  display: grid;
  flex: 1 1 0;
  place-items: center;
  gap: 4px;
  min-height: 58px;
  border: 0;
  border-radius: 999px;
  padding: 0 8px;
  background: transparent;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
  white-space: nowrap;
}

.nav-item.is-active {
  background: var(--blue-deep);
  color: #fff;
  box-shadow: 0 12px 24px -18px rgba(28, 39, 56, 0.92), 0 1px 0 rgba(255, 255, 255, 0.2) inset;
}

.nav-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
}

.nav-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.view {
  display: none;
}

.view.is-active {
  display: block;
}

.view:not([data-view="home"]) {
  width: min(1040px, 100%);
  margin: 0 auto;
}

[hidden] {
  display: none !important;
}

.live-result,
.unlock-panel,
.status-strip article,
.step-list article,
.video-grid article,
.timeline article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.home-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  width: 100vw;
  min-height: 440px;
  height: min(620px, 64vh);
  margin-left: calc(50% - 50vw);
  background: #fff;
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 28%, rgba(255, 255, 255, 0.96) 82%);
  pointer-events: none;
}

.home-hero > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
}

.home-hero-copy {
  position: absolute;
  right: 24px;
  bottom: 28px;
  left: 24px;
  z-index: 1;
  max-width: 580px;
}

.home-hero-copy h2 {
  margin: 0;
  font-family: "Snell Roundhand", "Brush Script MT", "Segoe Script", cursive;
  font-size: 3.2rem;
  font-weight: 500;
  line-height: 1;
}

.home-hero-copy p:last-child {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

.home-access {
  padding: 36px 0 8px;
}

.home-access-heading {
  width: min(680px, 100%);
  margin: 0 auto;
  text-align: center;
}

.home-access-heading h2,
.section-heading h2 {
  margin: 0;
  font-size: 1.65rem;
  line-height: 1.08;
}

.home-access-heading p:last-child,
.section-heading p,
.step-list p,
.timeline p,
.manager-panel p,
.live-result p,
.unlock-panel p,
.video-grid p {
  color: var(--muted);
  line-height: 1.55;
}

.quick-actions,
.calendar-actions,
.role-choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.calendar-actions,
.bag-toolbar,
.admin-tools {
  width: fit-content;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px;
  background: var(--surface-high);
  box-shadow: var(--shadow-soft);
}

.calendar-actions .primary-action,
.bag-toolbar .primary-action,
.bag-toolbar .secondary-action,
.admin-tools .secondary-action {
  box-shadow: none;
}

.role-choice-grid {
  display: grid;
  grid-template-columns: 1fr;
}

.role-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 94px;
  align-items: center;
  gap: 14px;
  min-height: 132px;
  min-width: 0;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--surface-high);
  color: var(--ink);
  text-align: left;
  box-shadow: var(--shadow-soft);
}

.role-card:hover {
  border-color: var(--blue);
  background: #fff;
}

.role-card-copy {
  min-width: 0;
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.role-figure {
  display: grid;
  place-items: center;
  width: 94px;
  height: 94px;
}

.role-figure img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mother-card .role-figure,
.operator-card .role-figure {
  background: transparent;
}

.primary-action {
  background: var(--blue-deep);
  color: #fff;
  box-shadow: 0 12px 24px -18px rgba(28, 39, 56, 0.92);
}

.secondary-action {
  border: 1px solid var(--line);
  background: var(--surface-high);
  color: var(--blue-deep);
  box-shadow: var(--shadow-soft);
}

.primary-action:focus-visible,
.secondary-action:focus-visible,
.install-button:focus-visible,
.session-button:focus-visible,
.role-card:focus-visible,
.nav-item:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(215, 130, 147, 0.45);
  outline-offset: 2px;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0;
}

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

.status-strip article {
  min-height: 88px;
  padding: 14px;
  background: var(--surface-high);
}

.metric {
  display: block;
  margin-bottom: 5px;
  color: var(--blue-deep);
  font-size: 1.45rem;
  font-weight: 900;
}

.status-strip span:last-child {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.25;
}

.section-band {
  margin-top: 24px;
  padding: 22px 0;
}

.section-band.compact {
  padding-bottom: 0;
}

.section-heading {
  margin-bottom: 22px;
  padding: 28px 0 20px;
  border-bottom: 1px solid var(--line);
}

.section-heading p:last-child {
  max-width: 720px;
  margin-bottom: 0;
}

.section-heading h2 {
  max-width: 820px;
}

.step-list,
.video-grid,
.poster-gallery,
.bag-checklist {
  display: grid;
  gap: 12px;
}

.step-list article,
.video-grid article,
.timeline article {
  padding: 18px;
}

.step-number {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--blue-pale);
  color: var(--ink);
  font-weight: 900;
}

.step-list h3,
.timeline h3,
.video-grid h3,
.manager-panel h3,
.live-result h3,
.unlock-panel h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.step-list p,
.timeline p,
.video-grid p {
  margin: 0;
}

.signup-form {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.access-shell {
  display: grid;
  gap: 14px;
}

.access-form {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.field-row {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 800;
}

input {
  min-height: 46px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--surface-high);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.86) inset, 0 10px 24px -24px rgba(38, 51, 68, 0.7);
}

input::placeholder {
  color: #8993a0;
}

.file-field {
  padding: 14px;
  border: 1px dashed var(--blue);
  border-radius: 8px;
  background: var(--surface-low);
}

.file-field span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.check-field {
  position: relative;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  font-weight: 650;
}

.check-field input[type="checkbox"],
.checkline input[type="checkbox"] {
  position: absolute;
  width: 1px;
  min-height: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  opacity: 0;
  clip-path: inset(50%);
}

.custom-checkmark {
  position: relative;
  display: block;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(83, 105, 131, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.92) inset, 0 8px 16px -13px rgba(28, 39, 56, 0.78);
  cursor: pointer;
}

.custom-checkmark::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 9px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 3px 3px 0;
  opacity: 0;
  transform: rotate(45deg) scale(0.5);
}

input[type="checkbox"]:checked + .custom-checkmark {
  border-color: var(--blue-deep);
  background: var(--blue-deep);
  animation: checkbox-jello 620ms both;
}

input[type="checkbox"]:checked + .custom-checkmark::after {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}

input[type="checkbox"]:focus-visible + .custom-checkmark {
  outline: 3px solid rgba(215, 130, 147, 0.42);
  outline-offset: 3px;
}

.check-field:hover .custom-checkmark,
.checkline:hover .custom-checkmark {
  animation: checkbox-jello 620ms both;
}

.live-result {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-left: 1px solid var(--line);
  background: var(--surface-high);
}

.live-result::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--blue);
}

.signup-form[hidden] {
  display: none;
}

#signupResult {
  display: grid;
  align-content: start;
  gap: 0;
}

#signupResult h3 {
  margin-bottom: 10px;
}

#signupResult p {
  margin: 0;
  border-bottom: 1px solid var(--line);
  padding: 11px 0;
}

#signupResult .secondary-action {
  justify-self: start;
  margin-top: 16px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--soft);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
}

.status-pill.ok {
  background: #e8f3ee;
  color: var(--green);
}

.status-pill.wait {
  background: #fff2df;
  color: var(--amber);
}

.status-pill.stop {
  background: var(--rose-soft);
  color: var(--danger);
}

.timeline {
  display: grid;
  align-items: start;
  gap: 8px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.timeline article {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 98px;
  border: 1px solid rgba(213, 221, 231, 0.82);
  background: var(--surface-low);
  box-shadow: none;
}

.date-badge {
  display: grid;
  place-items: center;
  align-self: start;
  width: 62px;
  min-height: 64px;
  border-radius: 50%;
  background: var(--blue-deep);
  color: #fff;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 12px 24px -18px rgba(28, 39, 56, 0.9);
}

.date-badge span {
  display: block;
  font-size: 0.72rem;
}

.poster-gallery figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-high);
  box-shadow: var(--shadow-soft);
}

.poster-gallery img {
  width: 100%;
  height: auto;
}

.poster-gallery figcaption {
  padding: 10px 12px;
  color: var(--muted);
  font-weight: 800;
}

.unlock-panel {
  display: grid;
  gap: 16px;
  padding: 22px;
  border-color: var(--blue-deep);
  background: var(--blue-deep);
  color: #fff;
  box-shadow: var(--shadow);
}

.unlock-panel p {
  color: rgba(255, 255, 255, 0.76);
}

.unlock-panel label {
  color: #fff;
}

.code-form {
  display: grid;
  gap: 12px;
}

.video-grid {
  margin-top: 16px;
}

.video-grid article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  align-items: center;
  gap: 16px;
  min-height: 112px;
}

.play-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0;
  border-radius: 50%;
  background: var(--blue-deep);
}

.play-icon::after {
  content: "";
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid #fff;
}

.admin-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.admin-tools {
  display: flex;
  justify-content: flex-end;
  margin: -4px 0 14px;
}

.admin-summary article {
  position: relative;
  overflow: hidden;
  min-height: 84px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--surface-high);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}

.admin-summary article::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--blue);
}

.admin-summary span {
  display: block;
}

.admin-summary .summary-number {
  color: var(--blue-deep);
  font-size: 1.85rem;
  font-weight: 900;
}

.admin-summary .summary-label {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.25;
}

.manager-panel {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.manager-panel-header {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}

.request-list {
  display: grid;
  gap: 10px;
}

.request-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--surface-low);
  box-shadow: none;
}

.request-card h4 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.request-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.request-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.request-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.request-actions button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--blue-deep);
  padding: 8px 10px;
  font-weight: 900;
}

.panel-note {
  margin: 0;
}

.bag-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.bag-status {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 14px;
  background: var(--surface-high);
  box-shadow: var(--shadow-soft);
  font-weight: 850;
  line-height: 1.35;
}

.bag-status span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.bag-status.green {
  border-color: rgba(63, 123, 104, 0.35);
  background: #e8f3ee;
  color: var(--green);
}

.bag-status.yellow {
  border-color: rgba(163, 108, 42, 0.32);
  background: #fff7dd;
  color: #7a5b00;
}

.bag-status.orange {
  border-color: rgba(194, 103, 45, 0.35);
  background: #fff0e4;
  color: #9b4f19;
}

.bag-status.red {
  border-color: rgba(157, 62, 76, 0.35);
  background: var(--rose-soft);
  color: var(--danger);
}

.checklist-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.checklist-section h3 {
  margin: 0 0 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  font-family: "Snell Roundhand", "Brush Script MT", "Segoe Script", cursive;
  font-size: 2rem;
  font-weight: 500;
}

.checklist-items {
  display: grid;
  gap: 8px;
}

.checklist-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface-low);
  box-shadow: none;
  font-weight: 850;
}

.checklist-item:hover {
  border-color: var(--blue);
  background: var(--surface-high);
}

.checkline {
  position: relative;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 68px;
  align-items: center;
  gap: 12px;
}

.checkline > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

@keyframes checkbox-jello {
  0%,
  100% {
    transform: scale3d(1, 1, 1);
  }

  30% {
    transform: scale3d(1.2, 0.82, 1);
  }

  42% {
    transform: scale3d(0.86, 1.16, 1);
  }

  56% {
    transform: scale3d(1.1, 0.92, 1);
  }

  70% {
    transform: scale3d(0.96, 1.04, 1);
  }
}

.checklist-icon {
  width: 68px;
  height: 68px;
  object-fit: contain;
  background: transparent;
}

.checklist-item small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.35;
}

.checklist-item:has(input:checked) {
  border-color: rgba(63, 123, 104, 0.25);
  background: #f4faf7;
}

.item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0 38px;
}

.text-action {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 10px;
  background: var(--surface-high);
  color: var(--blue-deep);
  font-weight: 850;
}

.document-list {
  display: grid;
  gap: 14px;
}

.document-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--surface-high);
  box-shadow: var(--shadow-soft);
}

.document-group h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.document-links {
  display: grid;
  gap: 8px;
}

.document-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 12px;
  background: var(--surface-low);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.document-link:hover {
  border-color: var(--blue);
  background: var(--surface-high);
}

.document-link span {
  color: var(--blue-deep);
  white-space: nowrap;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(28, 39, 56, 0.58);
}

.example-modal {
  position: relative;
  width: min(680px, 100%);
  max-height: 88vh;
  overflow: auto;
  border-radius: 8px;
  padding: 18px;
  background: var(--surface-high);
  box-shadow: var(--shadow);
}

.example-modal h2 {
  margin: 0 42px 14px 0;
  font-size: 1.2rem;
}

.example-modal img {
  width: 100%;
  border-radius: 8px;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-high);
  color: var(--ink);
  font-weight: 900;
}

.meeting-editor {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.pending-calendar {
  margin-bottom: 14px;
}

.meeting-edit-row {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--surface-low);
  box-shadow: none;
}

.meeting-edit-row h4 {
  margin: 0;
  font-size: 1rem;
}

.meeting-edit-fields {
  display: grid;
  gap: 10px;
}

.toast {
  position: fixed;
  right: 16px;
  bottom: 92px;
  left: 16px;
  z-index: 8;
  display: none;
  border-radius: 8px;
  padding: 14px 16px;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
}

.toast.show {
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .custom-checkmark,
  input[type="checkbox"]:checked + .custom-checkmark,
  .check-field:hover .custom-checkmark,
  .checkline:hover .custom-checkmark {
    animation: none;
    transition: none;
  }
}

@media (max-width: 519px) {
  .calendar-actions,
  .bag-toolbar,
  .admin-tools {
    width: 100%;
    border-radius: 8px;
  }

  .calendar-actions > *,
  .bag-toolbar > *,
  .admin-tools > * {
    flex: 1 1 180px;
    text-align: center;
  }

  .checkline {
    grid-template-columns: 24px minmax(0, 1fr) 58px;
    gap: 10px;
  }

  .checklist-icon {
    width: 58px;
    height: 58px;
  }

  .manager-panel {
    padding: 16px;
  }

  .request-actions button {
    flex: 1 1 132px;
  }
}

@media (min-width: 720px) {
  .app-header {
    padding: 10px 18px;
  }

  h1 {
    font-size: 1.9rem;
  }

  .app-main {
    padding: 28px 28px 56px;
  }

  .app-nav {
    position: sticky;
    top: 92px;
    width: max-content;
    max-width: calc(100% - 56px);
    margin: 14px auto 0;
    border-radius: 999px;
  }

  .nav-item {
    flex: 0 0 auto;
    grid-template-columns: 24px auto;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    font-size: 0.86rem;
  }

  .session-button {
    max-width: 220px;
  }

  .home-hero {
    min-height: 520px;
    height: min(640px, 64vh);
  }

  .home-hero::after {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.02) 30%, rgba(255, 255, 255, 0.96) 62%);
  }

  .home-hero > img {
    width: 54%;
    object-fit: contain;
    object-position: center bottom;
  }

  .home-hero-copy {
    top: 50%;
    right: max(28px, calc((100vw - 1120px) / 2 + 28px));
    bottom: auto;
    left: auto;
    width: min(42vw, 500px);
    transform: translateY(-50%);
  }

  .home-hero-copy h2 {
    font-size: 4.1rem;
  }

  .home-access-heading h2,
  .section-heading h2 {
    font-size: 2rem;
  }

  .role-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .role-card {
    grid-template-columns: minmax(0, 1fr) 120px;
    min-height: 158px;
    padding: 22px;
  }

  .role-card-copy {
    font-size: 1.25rem;
  }

  .role-figure {
    width: 120px;
    height: 120px;
  }

  .access-shell {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 18px;
  }

  .access-shell > .section-heading {
    grid-column: 1 / -1;
  }

  .view[data-view="signup"].is-active {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.65fr);
    align-items: start;
    gap: 18px;
  }

  .view[data-view="signup"] > .section-heading {
    grid-column: 1 / -1;
  }

  .view[data-view="signup"] > .live-result {
    position: sticky;
    top: 168px;
  }

  .view[data-view="signup"].is-active:has(.signup-form[hidden]) {
    grid-template-columns: 1fr;
  }

  .view[data-view="signup"].is-active:has(.signup-form[hidden]) > .live-result {
    position: static;
  }

  .status-strip {
    gap: 12px;
  }

  .step-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .field-row,
  .poster-gallery,
  .unlock-panel,
  .meeting-edit-fields,
  .bag-checklist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .signup-form {
    padding: 22px;
  }

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

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

  .admin-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  .manager-panel-header,
  .request-card {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .toast {
    right: 24px;
    bottom: 24px;
    left: auto;
    max-width: 420px;
  }
}

/* v23: home editoriale, nuovi asset e pannello gestore a sezioni. */
.app-header {
  min-height: 74px;
}

.brand-mark {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.home-hero {
  position: relative;
  display: grid;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.home-hero::after {
  display: none;
}

.home-hero-media {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  background: #fff;
}

.home-hero-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 58%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.94));
  pointer-events: none;
}

.home-hero-media > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center 28%;
}

.home-hero-quote {
  position: absolute;
  right: 20px;
  bottom: 18px;
  left: 20px;
  z-index: 1;
  max-width: 480px;
  margin: 0;
  color: var(--ink);
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.35;
}

.home-hero-copy {
  position: relative;
  inset: auto;
  width: auto;
  max-width: none;
  padding: 24px 20px 26px;
  transform: none;
}

.home-hero-copy h2 {
  margin: 0 0 16px;
  font-size: 3rem;
}

.home-hero-copy p:not(.eyebrow) {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.home-access-button {
  min-width: 132px;
  margin-top: 4px;
}

.home-access {
  scroll-margin-top: 96px;
  padding: 44px 0 12px;
}

.home-access:focus {
  outline: none;
}

.role-card {
  min-height: 150px;
}

.role-figure {
  width: 108px;
  height: 108px;
}

.demo-credentials {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

.status-details {
  display: grid;
  gap: 0;
  margin: 0;
}

.status-details div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.status-details dt {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.status-details dd {
  margin: 0;
  font-weight: 800;
  text-align: right;
}

.page-cover {
  width: 100%;
  margin: 12px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.page-cover img {
  width: 100%;
}

.bag-cover {
  height: clamp(230px, 42vw, 390px);
}

.bag-cover img {
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.document-cover img {
  height: auto;
  object-fit: contain;
}

.admin-overview-grid,
.history-list {
  display: grid;
  gap: 12px;
}

.overview-block,
.history-edition,
.empty-state {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: #fff;
}

.overview-block h3,
.history-edition h3,
.empty-state h3 {
  margin: 0 0 8px;
}

.overview-block > p:not(.eyebrow),
.history-edition p,
.empty-state p {
  color: var(--muted);
  line-height: 1.5;
}

.overview-number {
  margin: 6px 0 18px;
  color: var(--blue-deep) !important;
  font-size: 2.3rem;
  font-weight: 900;
}

.manager-toolbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.request-filters {
  display: flex;
  gap: 4px;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px;
  background: #fff;
  scrollbar-width: none;
}

.request-filters::-webkit-scrollbar {
  display: none;
}

.request-filters button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex: 0 0 auto;
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  padding: 0 13px;
  background: transparent;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  white-space: nowrap;
}

.request-filters button span {
  display: grid;
  place-items: center;
  min-width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--muted);
  font-size: 0.72rem;
}

.request-filters button.is-active {
  background: var(--blue);
  color: var(--ink);
}

.request-filters button.is-active span {
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
}

.filter-result {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.change-alert {
  display: grid;
  gap: 3px;
  margin: 12px 0;
  border-left: 3px solid var(--blue-deep);
  padding: 9px 11px;
  background: var(--blue-pale);
  color: var(--ink);
  font-size: 0.84rem;
  line-height: 1.4;
}

.change-alert span {
  color: var(--blue-deep);
  font-weight: 700;
}

.request-actions .review-action {
  border-color: var(--blue-deep);
  background: var(--blue-deep);
  color: #fff;
}

.history-edition-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.history-count {
  align-self: flex-start;
  border-radius: 999px;
  padding: 7px 10px;
  background: var(--blue-pale);
  color: var(--blue-deep);
  font-size: 0.8rem;
  font-weight: 850;
  white-space: nowrap;
}

.history-edition details {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.history-edition summary {
  color: var(--blue-deep);
  cursor: pointer;
  font-weight: 800;
}

.history-edition ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 20px;
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

@media (max-width: 519px) {
  .brand-mark {
    width: 48px;
    height: 48px;
  }

  .brand-block h1 {
    font-size: 1.42rem;
  }

  .brand-block .eyebrow {
    font-size: 0.66rem;
  }

  .home-hero-copy h2 {
    font-size: 2.65rem;
  }

  .home-hero-copy p:not(.eyebrow) {
    font-size: 0.9rem;
    line-height: 1.48;
  }

  .home-access-button {
    width: 100%;
  }

  .role-card {
    grid-template-columns: minmax(0, 1fr) 104px;
  }

  .role-figure {
    width: 104px;
    height: 104px;
  }

  .document-cover {
    margin-right: -16px;
    margin-left: -16px;
    width: calc(100% + 32px);
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .history-edition ul {
    grid-template-columns: 1fr;
  }

  .app-nav .nav-item {
    flex: 0 0 84px;
  }
}

@media (max-width: 359px) {
  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand-block .eyebrow {
    display: none;
  }

  .brand-block h1 {
    font-size: 1.24rem;
  }
}

@media (min-width: 720px) {
  .home-hero {
    grid-template-columns: minmax(0, 1.02fr) minmax(380px, 0.98fr);
    min-height: 570px;
  }

  .home-hero-media {
    min-height: 570px;
  }

  .home-hero-media::after {
    inset: 0 0 0 auto;
    width: 42%;
    height: auto;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff);
  }

  .home-hero-media > img {
    object-fit: contain;
    object-position: center 26%;
  }

  .home-hero-quote {
    right: 34px;
    bottom: 34px;
    left: 34px;
    max-width: 390px;
    font-size: 1.42rem;
  }

  .home-hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 38px 42px;
  }

  .home-hero-copy h2 {
    font-size: 3.7rem;
  }

  .home-hero-copy p:not(.eyebrow) {
    font-size: 0.98rem;
  }

  .role-figure {
    width: 132px;
    height: 132px;
  }

  .admin-overview-grid,
  .history-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .manager-toolbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .history-edition-header {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .nav-item,
  .primary-action,
  .secondary-action,
  .install-button,
  .role-card {
    transition:
      transform 160ms ease,
      background-color 160ms ease,
      border-color 160ms ease,
      color 160ms ease,
      box-shadow 160ms ease;
  }

  .nav-item:active,
  .primary-action:active,
  .secondary-action:active,
  .install-button:active,
  .role-card:active {
    transform: translateY(1px);
  }
}

/* Minimal interface derived from the selected Figma reference. */
.app-header {
  top: 0;
  width: 100%;
  min-height: 70px;
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 11px 16px;
  background: #fff;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.brand-mark {
  background: transparent;
  box-shadow: none;
}

.install-button,
.session-button,
.primary-action,
.secondary-action,
.download-link,
.text-action,
.request-actions button {
  border-radius: 8px;
  box-shadow: none;
}

.install-button,
.session-button,
.secondary-action,
.text-action,
.request-actions button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.primary-action {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  box-shadow: none;
}

.app-nav {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px;
  background: #fff;
  box-shadow: 0 1px 1px rgba(33, 36, 42, 0.04), 0 20px 40px -24px rgba(33, 36, 42, 0.18);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.nav-item {
  border-radius: 999px;
  font-weight: 700;
  transition:
    background-color 220ms cubic-bezier(0.22, 1, 0.36, 1),
    color 220ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-item.is-active {
  background: var(--blue);
  color: var(--ink);
  box-shadow: 0 1px 1px rgba(33, 36, 42, 0.06), 0 8px 18px -10px rgba(83, 105, 131, 0.42);
}

.nav-item:hover:not(.is-active) {
  color: var(--ink);
}

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

.home-hero {
  width: 100%;
  min-height: 360px;
  height: 52vh;
  max-height: 520px;
  margin-left: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.home-hero::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 30%, #fff 82%);
}

.home-hero-copy h2 {
  font-size: 3.2rem;
}

.home-access {
  padding-top: 44px;
}

.role-card {
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: none;
}

.role-card:hover {
  border-color: var(--blue-deep);
  background: #fff;
}

.status-strip article,
.step-list article,
.video-grid article,
.timeline article,
.signup-form,
.access-form,
.live-result,
.unlock-panel,
.bag-status,
.checklist-section,
.document-group,
.request-card,
.meeting-edit-row,
.example-modal {
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: none;
}

.section-heading {
  margin-bottom: 20px;
  border-bottom: 0;
  padding: 22px 0 12px;
}

.section-heading h2 {
  font-size: 2rem;
}

.calendar-actions,
.bag-toolbar,
.admin-tools {
  width: auto;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.access-shell {
  width: min(390px, 100%);
  margin: 34px auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}

.access-shell::before {
  content: "";
  display: block;
  width: 48px;
  height: 48px;
  margin: 0 auto 10px;
  background: url("./public/icon.svg") center / contain no-repeat;
}

.access-shell > .section-heading {
  margin: 0 0 22px;
  padding: 0;
  text-align: center;
}

.access-shell > .section-heading .eyebrow {
  display: none;
}

.access-shell > .section-heading h2 {
  font-size: 1.35rem;
}

.access-shell > .section-heading p {
  margin: 8px 0 0;
  font-size: 0.9rem;
}

.access-shell .access-form {
  border: 0;
  padding: 0;
}

.access-shell .live-result {
  border: 0;
  border-top: 1px solid var(--line);
  padding: 18px 0 0;
  background: transparent;
}

.access-shell .live-result::before,
.admin-summary article::before,
.intro-panel::before {
  display: none;
}

input {
  border-color: #bfc4cb;
  background: #fff;
  box-shadow: none;
}

input:focus-visible {
  border-color: var(--ink);
  outline: 2px solid rgba(83, 105, 131, 0.18);
  outline-offset: 1px;
}

.file-field {
  border-style: solid;
  background: #fafafa;
}

.live-result {
  border-left: 1px solid var(--line);
}

.live-result::before {
  display: none;
}

.timeline {
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.timeline article {
  background: #fff;
}

.date-badge {
  border-radius: 8px;
  background: #eef1f5;
  color: var(--blue-deep);
  box-shadow: none;
}

.unlock-panel {
  color: var(--ink);
}

.unlock-panel p {
  color: var(--muted);
}

.unlock-panel label {
  color: var(--ink);
}

.checklist-section {
  padding: 18px;
}

.checklist-item {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 14px 0;
  background: #fff;
}

.checklist-item:last-child {
  border-bottom: 0;
}

.checklist-item:hover {
  border-color: var(--line);
  background: #fafafa;
}

.document-group {
  padding: 18px;
}

.document-link {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
}

.document-link:last-child {
  border-bottom: 0;
}

.admin-summary article {
  background: #fff;
}

.manager-panel {
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 24px 0;
  background: transparent;
  box-shadow: none;
}

.request-card,
.meeting-edit-row {
  background: #fff;
}

.custom-checkmark {
  border-color: #aeb4bc;
  background: #fff;
  box-shadow: none;
}

@media (max-width: 519px) {
  .calendar-actions,
  .bag-toolbar,
  .admin-tools {
    width: 100%;
  }

  .access-shell {
    margin: 22px auto;
    padding: 24px 20px;
  }
}

@media (min-width: 720px) {
  .app-header {
    padding-right: max(28px, calc((100vw - 1120px) / 2));
    padding-left: max(28px, calc((100vw - 1120px) / 2));
  }

  .app-nav {
    top: 70px;
    border-radius: 999px;
  }

  .home-hero {
    min-height: 420px;
    height: 54vh;
  }

  .home-hero::after {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 34%, #fff 68%);
  }

  .home-hero > img {
    width: 50%;
  }

  .home-hero-copy h2 {
    font-size: 3.6rem;
  }

  .access-shell {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 48px auto;
  }

  .access-shell > .section-heading {
    grid-column: auto;
  }
}

/* Keep the v23 home layout after the earlier minimal-theme overrides. */
.app-header {
  min-height: 74px;
}

.home-hero {
  display: grid;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  margin-left: 0;
}

.home-hero-copy {
  position: relative;
  inset: auto;
  width: auto;
  max-width: none;
  transform: none;
}

.home-hero-copy h2 {
  font-size: 3rem;
}

@media (min-width: 720px) {
  .home-hero {
    grid-template-columns: minmax(0, 1.02fr) minmax(380px, 0.98fr);
    min-height: 570px;
    height: auto;
  }

  .home-hero-copy {
    position: relative;
    inset: auto;
    width: auto;
    transform: none;
  }

  .home-hero-copy h2 {
    font-size: 3.7rem;
  }
}

/* v24: contenuti istituzionali, posta, ricevute e programmazione. */
.home-hero-quote {
  max-width: 440px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.08rem;
  font-weight: 450;
  line-height: 1.48;
}

.home-bottom-sections {
  margin-top: 54px;
  border-top: 1px solid var(--line);
}

.home-story,
.team-feature {
  display: grid;
  gap: 22px;
  padding: 38px 0;
}

.home-story {
  border-bottom: 1px solid var(--line);
}

.home-story h2,
.team-feature h2 {
  margin: 0;
  font-size: 1.8rem;
}

.home-story-copy p,
.team-feature-copy > p:last-child {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.65;
}

.team-feature {
  align-items: center;
  overflow: hidden;
  background: var(--blue-pale);
}

.team-feature-copy {
  padding: 0 22px;
}

.team-feature img {
  justify-self: center;
  width: min(280px, 76vw);
  height: 210px;
  object-fit: contain;
}

.nav-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nav-badge {
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  padding: 0 5px;
  background: var(--danger);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 900;
}

select,
textarea {
  width: 100%;
  border: 1px solid #bfc4cb;
  border-radius: 8px;
  padding: 11px 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

select {
  min-height: 46px;
}

textarea {
  min-height: 148px;
  resize: vertical;
  line-height: 1.5;
}

select:focus-visible,
textarea:focus-visible {
  border-color: var(--ink);
  outline: 2px solid rgba(83, 105, 131, 0.18);
  outline-offset: 1px;
}

.question-form {
  display: grid;
  gap: 16px;
  width: min(720px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: #fff;
}

.question-form .primary-action {
  justify-self: start;
}

.message-thread,
.message-inbox,
.upcoming-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.message-thread > h3 {
  margin: 12px 0 0;
}

.message-card,
.upcoming-edition {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fff;
}

.message-card.is-unread {
  border-left: 4px solid var(--blue-deep);
}

.message-card-header,
.request-card-heading,
.upcoming-edition-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.message-card-header > div {
  display: grid;
  gap: 3px;
}

.message-card-header time,
.message-topic,
.message-card-header a {
  color: var(--muted);
  font-size: 0.82rem;
}

.message-sender {
  font-weight: 900;
}

.message-card h3 {
  margin: 16px 0 8px;
  font-size: 1.05rem;
}

.message-card > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  white-space: pre-wrap;
}

.message-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.message-actions button,
.message-actions a {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
  background: #fff;
  color: var(--blue-deep);
  font-weight: 800;
  text-decoration: none;
}

.message-reply-form {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.message-reply-form textarea {
  min-height: 96px;
}

.message-reply-form .primary-action {
  justify-self: start;
}

.team-reply {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.team-reply strong {
  color: var(--blue-deep);
}

.team-reply p {
  margin: 6px 0 0;
  line-height: 1.55;
  white-space: pre-wrap;
}

.request-card-heading {
  margin-bottom: 4px;
}

.request-card-heading h4 {
  margin: 0;
}

.gestation-badge {
  align-self: flex-start;
  border-radius: 999px;
  padding: 7px 10px;
  background: var(--blue-pale);
  color: var(--blue-deep);
  font-size: 0.78rem;
  font-weight: 750;
  white-space: nowrap;
}

.gestation-badge strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.upcoming-toolbar {
  justify-content: flex-start;
}

.upcoming-edition-header,
.upcoming-dates {
  display: grid;
  gap: 12px;
}

.upcoming-dates {
  margin: 16px 0;
}

.upcoming-meeting {
  display: grid;
  min-width: 0;
  gap: 10px;
}

.upcoming-meeting h4 {
  margin: 0;
}

.upcoming-meeting-fields {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.upcoming-meeting-fields label,
.upcoming-meeting-fields input {
  min-width: 0;
}

@media (max-width: 519px) {
  .question-form {
    padding: 16px;
  }

  .question-form .primary-action,
  .message-actions > *,
  .message-reply-form .primary-action {
    width: 100%;
    text-align: center;
  }
}

@media (min-width: 720px) {
  .home-hero-quote {
    font-size: 1.2rem;
  }

  .home-story {
    grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.25fr);
    padding: 54px 24px;
  }

  .team-feature {
    grid-template-columns: minmax(0, 1fr) 330px;
    padding: 22px 38px;
  }

  .team-feature-copy {
    padding: 0;
  }

  .team-feature img {
    width: 310px;
    height: 250px;
  }

  .message-card-header,
  .request-card-heading {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }

  .upcoming-edition-header {
    grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.6fr);
  }

  .upcoming-dates {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .upcoming-meeting-fields {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 960px) {
  .admin-overview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
