:root {
  color-scheme: light;
  --page-bg: #eef4fb;
  --panel: rgba(255, 255, 255, 0.92);
  --panel-soft: #f7fafd;
  --text: #10233b;
  --muted: #5f7390;
  --line: #d7e2f0;
  --line-strong: #b8c9de;
  --accent: #1f66d1;
  --accent-strong: #114ca3;
  --accent-soft: #e7f0ff;
  --danger: #c94e4e;
  --success: #1d7a46;
  --shadow: 0 18px 40px rgba(28, 56, 97, 0.08);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(64, 151, 255, 0.2), transparent 28%),
    linear-gradient(180deg, #f7fbff 0%, var(--page-bg) 100%);
  color: var(--text);
  font-family: "Manrope", sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-nav {
  background: rgba(247, 251, 255, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(183, 201, 222, 0.7);
}

.site-shell,
.shell {
  width: min(1380px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 1.2rem;
  display: grid;
  gap: 1.2rem;
}

.site-header-shell,
.comparison-shell {
  max-width: 1380px;
}

.item-shell {
  max-width: 1040px;
}

.site-header-shell {
  padding-top: 0;
  padding-bottom: 0;
}

.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1.6rem 0 1.35rem;
}

.brand {
  grid-column: 2;
}

.brand a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  color: var(--text);
  text-decoration: none;
}

.brand-logo {
  width: clamp(4rem, 7vw, 5.7rem);
  height: auto;
  display: block;
}

.account-nav {
  grid-column: 3;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.account-nav span {
  overflow-wrap: anywhere;
}

.account-nav a {
  color: var(--accent-strong);
  text-decoration: none;
}

.account-nav a:hover {
  text-decoration: underline;
}

.account-nav form {
  margin: 0;
}

.account-nav button {
  justify-self: auto;
  min-height: 2rem;
  padding: 0.45rem 0.7rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line-strong);
  box-shadow: none;
}

.account-nav button:hover {
  background: #fff;
}

.brand-text-logo {
  width: clamp(15rem, 35vw, 23rem);
  height: auto;
  display: block;
}

.card,
.preview-card,
.announcement-form {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.auth-shell {
  min-height: 100vh;
  place-content: center;
  max-width: 32rem;
}

.auth-card h1 {
  margin: 0;
}

.auth-link {
  margin: 0;
  color: var(--muted);
}

.auth-link a {
  color: var(--accent-strong);
  font-weight: 800;
}

.page-action-link {
  margin: 0.8rem 0 0;
}

.page-action-link a,
.copy-link a {
  color: var(--accent-strong);
  font-weight: 800;
}

.copy-link {
  overflow-wrap: anywhere;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: 0.65rem 1rem;
  color: #fff;
  border-radius: 0.45rem;
  background: var(--success);
  font-weight: 800;
  text-decoration: none;
}

.auth-form,
.comment-form,
.discussion {
  display: grid;
  gap: 1rem;
}

.form-section {
  display: grid;
  gap: 0.9rem;
  padding-top: 0;
}

.form-section h2 {
  margin: 0;
  font-size: 1.05rem;
}

.form-section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.auth-form label,
.comment-form label {
  display: grid;
  gap: 0.4rem;
  color: var(--text);
  font-weight: 800;
}

.field-label {
  display: inline-flex;
  align-items: baseline;
  gap: 0.2rem;
  width: fit-content;
}

.required-marker {
  color: var(--danger);
}

.checkbox-field {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  justify-content: start;
  width: fit-content;
  column-gap: 0.6rem;
  cursor: pointer;
}

.checkbox-field input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  padding: 0;
  accent-color: var(--success);
  cursor: pointer;
}

.auth-form input:not([type="checkbox"]),
.auth-form textarea,
.comment-form textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 0.5rem;
  padding: 0.8rem 0.9rem;
  color: var(--text);
  background: #fff;
}

.auth-form ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--danger);
}

.discussion h2 {
  margin: 0.25rem 0 0;
}

.discussion p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.comment-list {
  display: grid;
  gap: 1rem;
}

.comment {
  display: grid;
  gap: 0.6rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.68);
}

.comment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  align-items: baseline;
  color: var(--text);
}

.comment-meta time {
  color: var(--muted);
  font-size: 0.88rem;
}

.comment p {
  margin: 0;
  color: var(--text);
}

.comment-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.55rem;
  min-height: 1.35rem;
  padding: 0.05rem 0.35rem;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.comment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.45rem;
  align-items: center;
}

.comment-actions > :not(:first-child) {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.comment-actions > :not(:first-child)::before {
  content: "|";
  color: var(--line-strong);
  font-weight: 500;
}

.comment-action-toggle,
.vote-form {
  margin: 0;
}

.comment-action-toggle,
.vote-form button {
  justify-self: auto;
  min-height: 0;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  box-shadow: none;
  font-size: 0.88rem;
  font-weight: 800;
}

.comment-action-toggle:hover,
.vote-form button:hover,
.comment-action-toggle[aria-expanded="true"] {
  color: var(--accent-strong);
  background: transparent;
}

.vote-form button.vote-up.is-active {
  color: #0f8a45;
}

.vote-form button.vote-down.is-active {
  color: #b42318;
}

.reply-list {
  display: grid;
  gap: 0.7rem;
  margin-left: 0;
  padding-left: min(1.05rem, 3vw);
  padding-top: 0.2rem;
  border-left: 1px solid var(--line-strong);
}

.reply-row {
  display: grid;
  gap: 0.35rem;
  padding: 0.25rem 0 0.3rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.reply-row .comment-meta {
  gap: 0.35rem 0.55rem;
}

.reply-row p {
  color: var(--muted);
}

.reply-form,
.edit-form {
  margin-top: 0.6rem;
  padding-left: 0.85rem;
  border-left: 1px solid var(--line-strong);
}

.reply-panel {
  width: 100%;
  overflow: hidden;
}

.reply-panel.is-open {
  animation: comment-panel-in 160ms ease-out;
}

.reply-form {
  width: 100%;
  margin-top: 0.15rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 0.5rem 1.2rem rgba(15, 23, 42, 0.06);
}

.inline-edit-form {
  margin-top: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.inline-edit-form textarea {
  min-height: 5.5rem;
}

@keyframes comment-panel-in {
  from {
    opacity: 0;
    transform: translateY(-0.25rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.changelog {
  margin-top: 0.35rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.page-header {
  gap: 0.35rem;
}

.page-header h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: 0;
}

.page-intro {
  margin: 0.45rem 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.stakeholder-home-shell .page-intro {
  width: 100%;
}

.eyebrow {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.simulator,
.controls,
.comparison-list {
  display: grid;
  gap: 1rem;
}

.review-group {
  display: grid;
  gap: 0.75rem;
}

.review-group h2 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.2;
}

.section-stack {
  display: grid;
  gap: 1rem;
}

.empty-group {
  margin: 0;
  padding: 1rem 1.1rem;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.55);
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: 1rem;
}

.section-card {
  grid-template-columns: 1fr auto;
  align-items: center;
  color: var(--text);
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.section-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 20px 44px rgba(28, 56, 97, 0.12);
  transform: translateY(-1px);
}

.section-card-disabled {
  opacity: 0.78;
}

.section-card-disabled:hover {
  border-color: var(--line);
  box-shadow: var(--shadow);
  transform: none;
}

.section-card h3 {
  margin: 0.35rem 0 0;
  font-size: 1.35rem;
  line-height: 1.15;
}

.section-card p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.section-status {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-status-ready {
  color: var(--success);
}

.section-status-pending {
  color: #38526f;
  opacity: 0.78;
}

.section-status-archived {
  color: #64748b;
  opacity: 0.82;
}

.section-arrow {
  display: grid;
  place-items: center;
  justify-self: end;
  width: 2.35rem;
  height: 2.35rem;
  color: #fff;
  border-radius: 50%;
  background: var(--success);
  font-size: 1.35rem;
  font-weight: 800;
  flex: 0 0 auto;
}

.preview-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.preview-heading h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.preview-heading p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.video-review {
  padding: 0;
  overflow: hidden;
}

.image-review {
  padding: 0;
  overflow: hidden;
}

.review-image {
  display: block;
  width: 100%;
  height: auto;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111820;
}

.video-frame-vertical {
  max-width: 520px;
  margin: 0 auto;
  aspect-ratio: 100 / 178.218;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.journey-stage {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.journey-stage h2 {
  margin: 0.35rem 0 0;
  font-size: 1.35rem;
  line-height: 1.2;
}

.journey-stage p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.journey-stage-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: end;
  justify-self: end;
}

.display-frame {
  position: relative;
  width: 100%;
  padding: 8px;
  background: #e02a2a;
  border: 1px solid #111820;
  border-radius: 0.225rem;
  overflow: auto;
  box-shadow: none;
}

.display-play-button {
  position: absolute;
  justify-self: auto;
  left: 50%;
  top: 50%;
  width: 4.1rem;
  height: 4.1rem;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  background: rgba(16, 35, 59, 0.9);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
  transform: translate(-50%, -50%);
  z-index: 2;
}

.display-play-button span {
  display: block;
  width: 0;
  height: 0;
  margin-left: 0.24rem;
  border-top: 0.72rem solid transparent;
  border-bottom: 0.72rem solid transparent;
  border-left: 1.04rem solid #fff;
}

.display-play-button:hover {
  background: rgba(16, 35, 59, 0.98);
}

.display-play-button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  background: rgba(16, 35, 59, 0.74);
  box-shadow: none;
}

.display-pause-button {
  position: absolute;
  justify-self: auto;
  right: 0.7rem;
  top: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.32rem 0.62rem;
  color: #eef4ff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(16, 35, 59, 0.82);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
  z-index: 3;
}

.display-pause-button:hover {
  background: rgba(16, 35, 59, 0.94);
}

.preview-card.is-playing .display-play-button {
  display: none;
}

.preview-card.is-playing .display-pause-button {
  display: inline-flex;
}

.led-display {
  display: block;
  width: auto;
  max-width: none;
  height: auto;
  margin: 0 auto;
  image-rendering: auto;
  aspect-ratio: 6 / 1;
  background: #030404;
  border: 1px solid #111820;
  box-shadow: none;
}

.display-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.display-meta span,
.notice,
.history li,
.preview-status {
  border: 1px solid var(--line);
  background: var(--panel-soft);
  border-radius: 0.5rem;
}

.display-meta span {
  padding: 7px 10px;
}

.performance-warning {
  padding: 10px 12px;
  color: #5b4205;
  background: #fff7dd;
  border: 1px solid #e8c767;
  border-radius: 0.5rem;
  font-size: 0.92rem;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.92rem;
}

textarea,
select,
input[type="range"] {
  width: 100%;
}

textarea,
select {
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 10px 12px;
}

textarea {
  resize: vertical;
  min-height: 86px;
}

.field-row {
  display: grid;
  grid-template-columns: minmax(150px, 220px) 1fr;
  gap: 16px;
  align-items: end;
}

button {
  justify-self: end;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 0.5rem;
  padding: 0.9rem 1.2rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(31, 102, 209, 0.22);
}

button:hover {
  background: var(--accent-strong);
}

button:disabled {
  cursor: not-allowed;
  background: var(--line-strong);
  box-shadow: none;
}

.preview-status,
.notice {
  padding: 12px;
  color: var(--muted);
}

.notice-heading {
  color: var(--text);
  font-weight: 700;
  margin-bottom: 10px;
}

.warning-text {
  margin: 0;
  color: #8a5c00;
}

.notice.success {
  border-color: color-mix(in srgb, var(--success) 45%, var(--line));
}

.notice.error {
  color: var(--text);
  border-color: var(--danger);
}

audio {
  width: 100%;
}

.changelog h2 {
  margin: 0;
  font-size: 1rem;
}

.changelog ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.changelog li + li {
  margin-top: 6px;
}

.history {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 8px;
}

.history li {
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  color: var(--muted);
}

.history span {
  color: var(--text);
  overflow-wrap: anywhere;
}

.history small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

@media (max-width: 680px) {
  .site-shell,
  .shell {
    width: min(100vw - 20px, 1180px);
    padding: 16px 0;
  }

  .site-header-shell {
    padding: 0 10px;
  }

  .topbar {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .brand,
  .account-nav {
    grid-column: 1;
  }

  .account-nav {
    justify-self: center;
  }

  .brand-logo {
    width: 3.4rem;
  }

  .brand-text-logo {
    width: min(68vw, 17rem);
  }

  .display-frame {
    padding: 6px;
  }

  .field-row,
  .preview-heading,
  .journey-stage {
    grid-template-columns: 1fr;
  }

  .journey-stage-controls {
    justify-content: end;
  }

  .preview-heading {
    display: grid;
  }
}
