:root {
  --bg: #eef5fb;
  --panel: rgba(255, 255, 255, 0.88);
  --line: rgba(63, 99, 128, 0.16);
  --ink: #183247;
  --muted: #5a7386;
  --accent: #3d78a5;
  --accent-dark: #245979;
  --highlight: #9bd0ef;
  --success: #2d7b55;
  --shadow: 0 24px 70px rgba(43, 78, 105, 0.12);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.88), transparent 30%),
    linear-gradient(135deg, #edf7ff, #dceefe 45%, #cfe4fa);
}

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

.page-shell,
.auth-shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.app-nav {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 40;
  display: grid;
  justify-items: end;
  gap: 8px;
}

.app-nav__button {
  min-height: 42px;
  padding: 10px 14px;
}

.app-nav__menu {
  display: none;
  min-width: 210px;
  background: var(--trust-paper, #fff);
  border: 2px solid var(--trust-ink, var(--ink));
  box-shadow: 6px 6px 0 var(--trust-gold, rgba(43, 78, 105, 0.16));
}

.app-nav.is-open .app-nav__menu {
  display: grid;
}

.app-nav__link {
  padding: 11px 13px;
  color: var(--trust-ink, var(--ink));
  font-weight: 800;
  text-decoration: none;
  border-bottom: 2px solid var(--trust-ink, var(--ink));
  background: var(--trust-paper, #fff);
}

.app-nav__link:last-child {
  border-bottom: 0;
}

.app-nav__link:hover,
.app-nav__link.is-active {
  color: var(--trust-paper, #fff);
  background: var(--trust-blue, var(--accent));
}

.hero {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  align-items: stretch;
  margin-bottom: 20px;
}

.hero.compact {
  grid-template-columns: 1.4fr 0.8fr;
}

.auth-layout {
  min-height: calc(100vh - 80px);
  display: grid;
  grid-template-columns: 1.2fr 0.95fr;
  gap: 24px;
  align-items: center;
}

.auth-hero {
  padding: 12px 8px;
}

.auth-panel {
  max-width: 520px;
  justify-self: end;
  width: 100%;
}

.picker-item {
  width: 100%;
  text-align: left;
  justify-content: flex-start;
}

.eyebrow {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
  color: var(--muted);
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.2rem, 6vw, 4.8rem);
  line-height: 0.94;
  margin-bottom: 16px;
  max-width: 11ch;
}

h2 {
  font-size: 1.4rem;
  margin-bottom: 16px;
}

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

.hero-card,
.panel,
.info-card,
.question-card,
.result-card {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 24px;
}

.hero-card,
.panel {
  padding: 24px;
}

.hero-card ul {
  padding-left: 20px;
  margin: 0;
}

.card-label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
}

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

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

.poll-list {
  display: grid;
  gap: 20px;
}

.poll-panel-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.poll-panel-header h2 {
  margin: 0;
}

.poll-save-status {
  min-height: 1.2em;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: right;
  text-transform: uppercase;
}

.poll-save-status[data-state="saving"] {
  color: var(--trust-gold);
}

.poll-save-status[data-state="saved"] {
  color: var(--trust-blue);
}

.poll-save-status[data-state="unsaved"] {
  color: var(--trust-red);
}

.poll-save-status[data-state="error"] {
  color: var(--trust-red);
}

.host-page #session-title {
  max-width: none;
  white-space: nowrap;
}

.poll-question-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 16px;
  align-items: start;
}

.response-count-field {
  max-width: 150px;
  align-self: end;
}

.poll-controls {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
  align-self: stretch;
  padding-top: 28px;
}

.poll-delete-button {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
}

.response-count {
  width: 100%;
  min-height: 56px;
  padding: 14px 12px;
  border: 2px solid var(--trust-ink);
  border-radius: 0;
  background: #fafbfd;
  color: var(--trust-ink);
}

.poll-add-row {
  display: flex;
  justify-content: center;
}

.poll-add-button {
  width: 56px;
  min-height: 56px;
  padding: 0;
  font-size: 2rem;
  line-height: 1;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.stack {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

input,
textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

button {
  border: 0;
  border-radius: 999px;
  padding: 14px 18px;
  background: var(--accent);
  color: white;
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease;
}

button:hover {
  transform: translateY(-1px);
  background: var(--accent-dark);
}

button.secondary {
  background: #e4d2be;
  color: var(--ink);
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 14px 18px;
  background: var(--accent);
  color: white;
  text-decoration: none;
}

.button-link.secondary {
  background: #e4d2be;
  color: var(--ink);
}

.landing-page {
  --trust-red: #ef4c2e;
  --trust-deep-red: #d82c1e;
  --trust-orange: #fb7219;
  --trust-gold: #ffa21f;
  --trust-blue: #4379ed;
  --trust-black: #000000;
  --trust-white: #ffffff;
  color: var(--trust-white);
  background:
    radial-gradient(circle at 21% 39%, var(--trust-deep-red) 0 24vw, transparent 24.1vw),
    radial-gradient(circle at 90% 87%, var(--trust-deep-red) 0 9.5vw, transparent 9.6vw),
    linear-gradient(90deg, var(--trust-gold) 0 26%, var(--trust-red) 26% 100%);
  overflow-x: hidden;
}

.landing-page::before,
.landing-page::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: 0;
}

.landing-page::before {
  left: 0;
  right: 0;
  bottom: 0;
  height: 19.5vh;
  background:
    linear-gradient(90deg, var(--trust-orange) 0 70%, var(--trust-gold) 70% 82%, var(--trust-orange) 82% 100%);
}

.landing-page::after {
  right: clamp(24px, 6vw, 72px);
  bottom: clamp(24px, 4vw, 42px);
  width: clamp(132px, 20vw, 220px);
  height: clamp(132px, 20vw, 220px);
  border-radius: 50%;
  background: var(--trust-deep-red);
}

.landing-shell {
  position: relative;
  z-index: 1;
}

.landing-page .auth-layout {
  min-height: calc(100vh - 64px);
  grid-template-columns: minmax(0, 0.98fr) minmax(360px, 0.78fr);
  gap: clamp(28px, 6vw, 84px);
}

.landing-page .auth-hero {
  position: relative;
  min-height: 54vh;
  padding: clamp(24px, 4vw, 52px) 0;
  display: grid;
  align-content: center;
}

.landing-page .auth-hero::before {
  content: "";
  position: absolute;
  left: clamp(42%, 52vw, 640px);
  top: clamp(32%, 39vh, 420px);
  width: clamp(132px, 18vw, 232px);
  height: clamp(14px, 1.6vw, 22px);
  background: var(--trust-gold);
}

.landing-page .auth-hero::after {
  content: "";
  position: absolute;
  left: clamp(54%, 62vw, 720px);
  top: clamp(16%, 23vh, 260px);
  width: clamp(64px, 8vw, 112px);
  height: clamp(64px, 8vw, 112px);
  border-radius: 50%;
  background: var(--trust-orange);
}

.landing-page .eyebrow {
  position: relative;
  z-index: 1;
  margin-bottom: 22px;
  color: var(--trust-white);
  font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
}

.landing-page h1 {
  position: relative;
  z-index: 1;
  max-width: 8.2ch;
  margin-bottom: 22px;
  color: var(--trust-white);
  font-family: "PT Serif", Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 11vw, 8.8rem);
  font-weight: 800;
  line-height: 0.82;
}

.landing-page .lede {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  color: var(--trust-white);
  font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(1.05rem, 1.7vw, 1.42rem);
  font-weight: 600;
  line-height: 1.22;
}

.landing-page .panel {
  position: relative;
  border: 2px solid var(--trust-black);
  border-radius: 0;
  background: var(--trust-white);
  color: var(--trust-black);
  box-shadow: 12px 12px 0 var(--trust-gold);
}

.landing-page .auth-panel {
  max-width: 560px;
}

.landing-page .auth-panel::before {
  content: "";
  position: absolute;
  right: -28px;
  top: -28px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--trust-blue);
  z-index: -1;
}

.landing-page .auth-panel h2 {
  color: var(--trust-black);
  font-family: "PT Serif", Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 0.96;
}

.landing-page .stack {
  gap: 12px;
}

.landing-page .auth-card,
.landing-page .info-card,
.landing-page .config-item,
.landing-page .notice {
  border: 2px solid var(--trust-black);
  border-radius: 0;
  background: #ffffff;
  color: var(--trust-black);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.16);
}

.landing-page .notice {
  background: #eeff41;
}

.landing-page .muted,
.landing-page label {
  color: #212121;
}

.landing-page input {
  border: 2px solid var(--trust-black);
  border-radius: 0;
  background: #fafbfd;
  color: var(--trust-black);
}

.landing-page button,
.landing-page .button-link {
  min-height: 48px;
  border: 2px solid var(--trust-black);
  border-radius: 0;
  background: var(--trust-blue);
  color: var(--trust-white);
  font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  box-shadow: 6px 6px 0 var(--trust-gold);
}

.landing-page button:hover,
.landing-page .button-link:hover {
  background: var(--trust-red);
}

.landing-page button.secondary,
.landing-page .button-link.secondary,
.landing-page .picker-item.secondary {
  background: var(--trust-white);
  color: var(--trust-black);
}

.big-code {
  font-size: 2.6rem;
  letter-spacing: 0.24em;
  margin-bottom: 8px;
}

.config-list,
.results-grid,
.question-card,
.info-card {
  display: grid;
  gap: 12px;
}

.config-item,
.result-card,
.question-card,
.info-card,
.auth-card,
.notice {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.notice {
  background: rgba(155, 208, 239, 0.22);
}

.result-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(203, 90, 46, 0.16);
  overflow: hidden;
}

.result-bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--highlight));
}

.section-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.tag {
  display: inline-block;
  border-radius: 999px;
  background: rgba(45, 123, 85, 0.13);
  color: var(--success);
  padding: 6px 10px;
  font-size: 0.84rem;
}

.chrome-launcher {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(35, 23, 15, 0.92);
  color: white;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  box-shadow: var(--shadow);
}

.frame-page {
  background: #e8f2fa;
}

.frame-shell {
  position: fixed;
  inset: 50px;
}

.slides-frame {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 24px;
  background: white;
  box-shadow: var(--shadow);
}

.slides-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.preview-launch-panel {
  display: grid;
  gap: 18px;
  margin-bottom: 24px;
}

.preview-launch-header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  width: 100%;
}

.preview-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.preview-status-row {
  display: grid;
  gap: 6px;
  min-height: 76px;
  padding: 12px;
  border: 2px solid var(--trust-ink);
  align-items: start;
  align-content: start;
  background: var(--trust-paper);
}

.preview-status-row strong,
.preview-status-row span {
  font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
}

.preview-status-row strong {
  text-transform: uppercase;
}

.preview-status-value {
  text-align: left;
  word-break: break-word;
}

.disabled-link {
  pointer-events: none;
  opacity: 0.55;
}

.slide-tile {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
}

.slide-thumb-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(135deg, #f9fcff, #d8eafb);
  border: 1px solid rgba(61, 120, 165, 0.14);
}

.slide-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.slide-overlay-modal {
  position: absolute;
  top: 8%;
  right: 8%;
  width: 20%;
  aspect-ratio: 16 / 10;
  min-width: 56px;
  min-height: 36px;
  display: grid;
  place-items: center;
  padding: 0.28rem;
  border-radius: 4px;
  border: 2px solid #000;
  background: #fff;
  box-shadow: 0.32rem 0.32rem 0 #ffa21f;
  overflow: hidden;
}

.slide-overlay-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 2px;
  border: 1px solid #000;
  background:
    linear-gradient(90deg, #4379ed 0 0.42rem, transparent 0),
    #fff;
  color: #000;
  font-size: clamp(0.52rem, 1vw, 0.8rem);
  font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.slide-tile-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.join-page {
  background: linear-gradient(180deg, #f7fbff, #dfeefa);
}

.join-shell {
  width: min(560px, calc(100vw - 28px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px 0;
  display: grid;
  align-content: center;
  gap: 20px;
}

.join-header h1 {
  max-width: none;
  font-size: clamp(2.2rem, 12vw, 4rem);
}

.join-panel {
  border-radius: 20px;
}

.join-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.join-status p {
  margin: 0;
  color: var(--muted);
  text-align: right;
}

.join-options {
  display: grid;
  gap: 12px;
}

.join-option {
  width: 100%;
  min-height: 62px;
  border-radius: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  text-align: left;
}

.join-option:disabled {
  cursor: default;
  opacity: 0.82;
  transform: none;
}

.response-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(238, 245, 251, 0.2)),
    linear-gradient(135deg, #f5fbff, #d8ebf8 48%, #f2e6d8);
}

.response-shell {
  width: min(680px, calc(100vw - 28px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 32px 0;
  display: grid;
  align-content: center;
  gap: 24px;
}

.response-header h1 {
  max-width: none;
  margin-bottom: 0;
  font-size: clamp(2.35rem, 11vw, 5rem);
  line-height: 0.98;
}

.response-panel {
  display: grid;
  gap: 16px;
}

.trust-scale {
  display: grid;
  gap: 10px;
}

.trust-option {
  width: 100%;
  min-height: 68px;
  padding: 0 20px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.48)),
    hsl(calc(200 - var(--scale-index) * 22) 48% calc(46% + var(--scale-index) * 6%));
  color: #142c3f;
  border: 1px solid rgba(24, 50, 71, 0.12);
  box-shadow: 0 14px 32px rgba(43, 78, 105, 0.12);
}

.trust-option span {
  font-weight: 700;
}

.trust-option:hover {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.38)),
    hsl(calc(200 - var(--scale-index) * 22) 52% calc(42% + var(--scale-index) * 6%));
}

.trust-option.selected {
  outline: 3px solid rgba(24, 50, 71, 0.72);
  outline-offset: 3px;
}

.trust-option:disabled {
  cursor: default;
  transform: none;
  opacity: 0.68;
}

.response-status {
  min-height: 1.4em;
  margin: 0;
}

.trust-page {
  --trust-red: #ef4c2e;
  --trust-deep-red: #d82c1e;
  --trust-orange: #fb7219;
  --trust-gold: #ffa21f;
  --trust-blue: #4379ed;
  --trust-ink: #000000;
  --trust-paper: #ffffff;
  --trust-acid: #eeff41;
  min-height: 100vh;
  color: var(--trust-paper);
  background:
    radial-gradient(circle at 18% 24%, var(--trust-deep-red) 0 19vw, transparent 19.2vw),
    radial-gradient(circle at 90% 92%, var(--trust-deep-red) 0 12vw, transparent 12.2vw),
    linear-gradient(90deg, var(--trust-gold) 0 24%, var(--trust-red) 24% 100%);
  font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
  overflow-x: hidden;
}

.trust-page::before,
.trust-page::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: 0;
}

.trust-page::before {
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(96px, 18vh, 150px);
  background:
    linear-gradient(90deg, var(--trust-orange) 0 70%, var(--trust-gold) 70% 82%, var(--trust-orange) 82% 100%);
}

.trust-page::after {
  right: clamp(22px, 5vw, 72px);
  bottom: clamp(20px, 4vw, 42px);
  width: clamp(112px, 18vw, 220px);
  height: clamp(112px, 18vw, 220px);
  border-radius: 50%;
  background: var(--trust-deep-red);
}

.trust-page .page-shell,
.trust-page .auth-shell,
.trust-page .join-shell,
.trust-page .response-shell {
  position: relative;
  z-index: 1;
}

.trust-page .auth-layout,
.trust-page .hero {
  gap: clamp(24px, 5vw, 72px);
}

.trust-page .auth-hero,
.trust-page .hero > div:first-child,
.trust-page .join-header,
.trust-page .response-header {
  position: relative;
}

.trust-page .auth-hero::before,
.trust-page .hero > div:first-child::before,
.trust-page .join-header::before,
.trust-page .response-header::before {
  content: "";
  position: absolute;
  left: clamp(46%, 54vw, 680px);
  top: 58%;
  width: clamp(116px, 17vw, 236px);
  height: clamp(12px, 1.5vw, 22px);
  background: var(--trust-gold);
}

.trust-page .auth-hero::after,
.trust-page .hero > div:first-child::after,
.trust-page .join-header::after,
.trust-page .response-header::after {
  content: "";
  position: absolute;
  right: 4%;
  top: 12%;
  width: clamp(58px, 7vw, 108px);
  height: clamp(58px, 7vw, 108px);
  border-radius: 50%;
  background: var(--trust-orange);
}

.trust-page .eyebrow,
.trust-page .card-label {
  position: relative;
  z-index: 1;
  color: var(--trust-paper);
  font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.trust-page h1 {
  position: relative;
  z-index: 1;
  max-width: 9.2ch;
  color: var(--trust-paper);
  font-family: "PT Serif", Georgia, "Times New Roman", serif;
  font-size: clamp(3.4rem, 8vw, 7.8rem);
  font-weight: 800;
  line-height: 0.84;
}

.trust-page h2 {
  color: var(--trust-ink);
  font-family: "PT Serif", Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  line-height: 0.96;
}

.trust-page .lede {
  position: relative;
  z-index: 1;
  color: var(--trust-paper);
  font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(1.02rem, 1.55vw, 1.32rem);
  font-weight: 700;
  line-height: 1.22;
}

.trust-page .backstage-slide-count {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
  color: var(--trust-paper);
  font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(0.88rem, 1.2vw, 1.08rem);
  font-weight: 700;
  line-height: 1.18;
}

.backstage-page .page-shell {
  padding: 18px 0 22px;
}

.backstage-page .hero {
  gap: 14px;
  margin-bottom: 14px;
}

.backstage-page .hero-card,
.backstage-page .panel {
  padding: 18px;
}

.backstage-page .hero-card .stack {
  gap: 10px;
}

.backstage-page #backstage-title {
  margin-bottom: 10px;
  font-size: clamp(3.1rem, 7vw, 6.6rem);
}

.backstage-page .backstage-slide-count {
  font-size: clamp(0.8rem, 1.05vw, 0.96rem);
}

.backstage-page .preview-launch-panel {
  gap: 12px;
  margin-bottom: 0;
}

.backstage-page .preview-launch-panel h2 {
  margin-bottom: 0;
  font-size: clamp(1.55rem, 2.1vw, 2rem);
}

.backstage-page .preview-launch-header-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  align-items: stretch;
}

.backstage-page .preview-launch-header-actions > button,
.backstage-page .preview-launch-header-actions > .button-link,
.backstage-page .preview-launch-header-actions > .tag {
  min-height: 42px;
  width: 100%;
}

.backstage-page .preview-launch-header-actions > .tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  text-transform: none;
}

.backstage-page .preview-launch-panel .muted {
  font-size: 0.92rem;
  line-height: 1.18;
}

.backstage-page .preview-status-row {
  min-height: 68px;
  gap: 4px;
  padding: 10px;
}

.backstage-page .preview-status-row strong,
.backstage-page .preview-status-row span {
  font-size: 0.88rem;
  line-height: 1.12;
}

.backstage-page button,
.backstage-page .button-link {
  min-height: 42px;
  padding: 10px 14px;
  text-transform: none;
}

.trust-page .panel,
.trust-page .hero-card,
.trust-page .join-panel {
  position: relative;
  z-index: 1;
  border: 2px solid var(--trust-ink);
  border-radius: 0;
  background: var(--trust-paper);
  color: var(--trust-ink);
  box-shadow: 12px 12px 0 var(--trust-gold);
}

.trust-page .auth-card,
.trust-page .info-card,
.trust-page .config-item,
.trust-page .notice,
.trust-page .question-card,
.trust-page .result-card,
.trust-page .slide-tile {
  border: 2px solid var(--trust-ink);
  border-radius: 0;
  background: var(--trust-paper);
  color: var(--trust-ink);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.16);
}

.trust-page .notice {
  background: var(--trust-acid);
}

.trust-page .muted,
.trust-page label,
.trust-page .join-status p {
  color: #212121;
}

.trust-page input,
.trust-page textarea {
  border: 2px solid var(--trust-ink);
  border-radius: 0;
  background: #fafbfd;
  color: var(--trust-ink);
}

.trust-page button,
.trust-page .button-link {
  min-height: 48px;
  border: 2px solid var(--trust-ink);
  border-radius: 0;
  background: var(--trust-blue);
  color: var(--trust-paper);
  font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  box-shadow: 6px 6px 0 var(--trust-gold);
}

.trust-page button:hover,
.trust-page .button-link:hover {
  background: var(--trust-red);
}

.trust-page button.secondary,
.trust-page .button-link.secondary,
.trust-page .picker-item.secondary {
  background: var(--trust-paper);
  color: var(--trust-ink);
}

.trust-page.backstage-page button,
.trust-page.backstage-page .button-link {
  min-height: 42px;
  padding: 10px 14px;
  text-transform: none;
}

.trust-page .tag {
  border: 2px solid var(--trust-ink);
  border-radius: 0;
  background: var(--trust-gold);
  color: var(--trust-ink);
  font-weight: 800;
}

.trust-page .big-code {
  color: var(--trust-blue);
  font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 800;
}

.trust-page .result-bar {
  height: 14px;
  border: 2px solid var(--trust-ink);
  border-radius: 0;
  background: #ffffff;
}

.trust-page .result-bar > span {
  background: var(--trust-blue);
}

.trust-page .slide-thumb-shell {
  border: 2px solid var(--trust-ink);
  border-radius: 0;
  background: #ffffff;
}

.trust-page .slide-tile {
  box-shadow: 8px 8px 0 var(--trust-gold);
}

.trust-page .join-shell,
.trust-page .response-shell {
  align-content: center;
}

.trust-page .join-header h1,
.trust-page .response-header h1 {
  max-width: none;
  font-size: clamp(3.3rem, 12vw, 6rem);
}

.trust-page .join-panel {
  padding: 24px;
}

.trust-page .join-option,
.trust-page .trust-option {
  border: 2px solid var(--trust-ink);
  border-radius: 0;
  background: var(--trust-paper);
  color: var(--trust-ink);
  box-shadow: 7px 7px 0 var(--trust-gold);
}

.trust-page .join-option:hover,
.trust-page .trust-option:hover,
.trust-page .trust-option.selected {
  background: var(--trust-blue);
  color: var(--trust-paper);
}

.trust-page .trust-option {
  background:
    linear-gradient(90deg, var(--trust-blue) 0 12px, transparent 12px),
    var(--trust-paper);
}

.trust-page .response-status {
  color: var(--trust-paper);
  font-weight: 800;
}

.app-nav {
  top: 12px;
  right: 12px;
  gap: 6px;
}

.trust-page .app-nav__button,
.app-nav__button {
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid rgba(24, 50, 71, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  box-shadow: 0 8px 22px rgba(24, 50, 71, 0.08);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: none;
}

.trust-page .app-nav__button:hover,
.app-nav__button:hover {
  background: #ffffff;
  color: var(--ink);
  transform: none;
}

.app-nav__menu {
  min-width: 178px;
  overflow: hidden;
  border: 1px solid rgba(24, 50, 71, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 40px rgba(24, 50, 71, 0.14);
}

.app-nav__link {
  padding: 9px 11px;
  border-bottom: 1px solid rgba(24, 50, 71, 0.1);
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 700;
}

.app-nav__link:hover,
.app-nav__link.is-active {
  color: var(--accent-dark);
  background: rgba(61, 120, 165, 0.1);
}

.trust-page.workspace-page {
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(246, 249, 252, 0.88)),
    #f3f7fb;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.trust-page.workspace-page::before,
.trust-page.workspace-page::after,
.trust-page.workspace-page .hero > div:first-child::before,
.trust-page.workspace-page .hero > div:first-child::after,
.trust-page.workspace-page .auth-hero::before,
.trust-page.workspace-page .auth-hero::after {
  display: none;
}

.workspace-page .page-shell {
  width: min(1200px, calc(100vw - 40px));
  padding: 24px 0 48px;
}

.workspace-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: start;
  margin: 0 0 18px;
  padding: 12px 0 16px;
  border-bottom: 1px solid var(--line);
}

.workspace-title-block {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.trust-page.workspace-page .eyebrow,
.trust-page.workspace-page .card-label {
  margin: 0;
  color: var(--muted);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.trust-page.workspace-page h1 {
  max-width: none;
  margin: 0;
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(1.85rem, 3vw, 2.65rem);
  font-weight: 800;
  line-height: 1.04;
}

.trust-page.workspace-page h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.2;
}

.workspace-context,
.trust-page.workspace-page .lede,
.trust-page.workspace-page .backstage-slide-count {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
}

.workspace-actions,
.preview-launch-header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  align-items: center;
}

.workspace-page .preview-launch-header-actions > button,
.workspace-page .preview-launch-header-actions > .button-link,
.workspace-page .preview-launch-header-actions > .tag {
  width: auto;
}

.workspace-meta-card {
  min-width: 210px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
}

.workspace-meta-card .big-code {
  margin: 4px 0 0;
  color: var(--accent-dark);
  font-size: 1.35rem;
  letter-spacing: 0.14em;
}

.trust-page.workspace-page .panel,
.trust-page.workspace-page .hero-card,
.trust-page.workspace-page .join-panel,
.trust-page.workspace-page .auth-card,
.trust-page.workspace-page .info-card,
.trust-page.workspace-page .config-item,
.trust-page.workspace-page .notice,
.trust-page.workspace-page .question-card,
.trust-page.workspace-page .result-card,
.trust-page.workspace-page .slide-tile,
.trust-page.workspace-page .preview-status-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  box-shadow: none;
}

.trust-page.workspace-page .panel {
  padding: 18px;
}

.trust-page.workspace-page .grid {
  gap: 14px;
}

.trust-page.workspace-page .stack {
  gap: 10px;
}

.trust-page.workspace-page label {
  gap: 6px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.2;
}

.trust-page.workspace-page input,
.trust-page.workspace-page textarea,
.trust-page.workspace-page select {
  min-height: 40px;
  padding: 9px 11px;
  border: 1px solid rgba(24, 50, 71, 0.2);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
}

.trust-page.workspace-page textarea {
  resize: vertical;
}

.trust-page.workspace-page button,
.trust-page.workspace-page .button-link {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(36, 89, 121, 0.35);
  border-radius: 6px;
  background: var(--accent);
  color: #ffffff;
  box-shadow: none;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: none;
}

.trust-page.workspace-page button:hover,
.trust-page.workspace-page .button-link:hover {
  background: var(--accent-dark);
  transform: none;
}

.trust-page.workspace-page .app-nav__button {
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid rgba(24, 50, 71, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  box-shadow: 0 8px 22px rgba(24, 50, 71, 0.08);
  font-size: 0.78rem;
}

.trust-page.workspace-page .app-nav__button:hover {
  background: #ffffff;
  color: var(--ink);
}

.trust-page.workspace-page button.secondary,
.trust-page.workspace-page .button-link.secondary,
.trust-page.workspace-page .picker-item.secondary {
  border-color: rgba(24, 50, 71, 0.18);
  background: #ffffff;
  color: var(--ink);
}

.trust-page.workspace-page button:disabled,
.trust-page.workspace-page .button-link[aria-disabled="true"],
.trust-page.workspace-page .disabled-link {
  cursor: default;
  opacity: 0.52;
  pointer-events: none;
}

.trust-page.workspace-page .tag {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(45, 123, 85, 0.24);
  border-radius: 999px;
  background: rgba(45, 123, 85, 0.1);
  color: var(--success);
  font-weight: 800;
}

.preview-launch-panel {
  gap: 14px;
}

.preview-status-grid {
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
}

.preview-status-row {
  min-height: 64px;
  padding: 10px;
}

.preview-status-row strong,
.preview-status-row span {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.86rem;
}

.slide-tile {
  border-radius: 8px;
}

.slide-thumb-shell {
  border-radius: 6px;
}

.poll-manager-main {
  display: grid;
  gap: 12px;
}

.workspace-message[hidden] {
  display: none;
}

.workspace-message {
  display: grid;
  gap: 10px;
}

.poll-list {
  gap: 12px;
}

.trust-page.workspace-page .poll-panel {
  padding: 14px;
}

.poll-panel-header {
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.trust-page.workspace-page .poll-title {
  margin: 0;
  font-size: 1rem;
}

.poll-save-status {
  min-width: 92px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  opacity: 0.7;
  text-transform: none;
  transition: opacity 220ms ease;
}

.poll-save-status[data-state="saving"] {
  color: #9b5c00;
  opacity: 0.9;
}

.poll-save-status[data-state="saved"] {
  color: var(--muted);
  opacity: 0.45;
}

.poll-save-status[data-state="unsaved"],
.poll-save-status[data-state="error"] {
  color: #b42318;
  opacity: 0.95;
}

.poll-form {
  margin-top: 12px;
}

.poll-question-row {
  --poll-field-label-height: 19.2px;
  --poll-field-label-gap: 8px;
  --poll-question-box-offset: 0px;
  grid-template-columns: minmax(0, 1fr) 176px;
  align-items: stretch;
  gap: 12px;
}

.poll-question-field,
.response-count-field {
  gap: var(--poll-field-label-gap);
}

.poll-field-label {
  min-height: var(--poll-field-label-height);
  line-height: var(--poll-field-label-height);
}

.poll-controls {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  padding-top: var(--poll-question-box-offset);
}

.poll-action-stack {
  display: grid;
  gap: 8px;
}

.response-count-field,
.response-count {
  max-width: none;
}

.response-count-field {
  width: 100%;
  padding: 8px;
  border: 0;
  border-radius: 8px;
  background: #e4d2be;
  color: var(--ink);
}

.response-count-field .poll-field-label {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
}

.response-count {
  width: 50%;
  min-height: 44px;
  justify-self: center;
  border-color: rgba(24, 50, 71, 0.18);
  background: rgba(246, 249, 252, 0.95);
  color: var(--ink);
  font-weight: 700;
}

.poll-responses {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.poll-responses .poll-response {
  min-height: 58px;
}

.poll-add-row {
  justify-content: flex-start;
}

.trust-page.workspace-page .poll-add-button {
  width: auto;
  min-height: 38px;
  padding: 8px 14px;
  font-size: 1.2rem;
}

.poll-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
}

.poll-confirm-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.48);
}

.poll-confirm-modal__panel {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  border: 2px solid var(--trust-ink, var(--ink));
  background: var(--trust-paper, #ffffff);
  color: var(--trust-ink, var(--ink));
  padding: 24px;
  box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.88);
}

.poll-confirm-modal__panel h2 {
  margin: 4px 0 10px;
  font-size: 1.6rem;
}

.poll-confirm-modal__message {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.poll-confirm-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.response-modal[hidden] {
  display: none;
}

.response-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
}

.response-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.48);
}

.response-modal__panel {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  border: 2px solid var(--trust-ink);
  background: var(--trust-paper);
  color: var(--trust-ink);
  padding: 26px;
  box-shadow: 12px 12px 0 var(--trust-gold);
}

.response-modal__panel .eyebrow {
  color: var(--trust-blue);
}

.response-modal__message {
  color: var(--trust-ink);
  font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.32;
}

.response-modal__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 860px) {
  .page-shell,
  .auth-shell {
    width: min(100vw - 20px, 1180px);
    padding-top: 20px;
  }

  .hero,
  .hero.compact,
  .grid,
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .auth-panel {
    justify-self: stretch;
    max-width: none;
  }

  .frame-shell {
    inset: 20px;
  }

  .span-2 {
    grid-column: auto;
  }

  .poll-question-row {
    grid-template-columns: 1fr;
  }

  .response-count-field {
    max-width: 180px;
  }

  h1 {
    max-width: none;
    font-size: clamp(2rem, 10vw, 3.6rem);
  }

  .join-shell {
    align-content: start;
  }

  .join-status {
    display: grid;
  }

  .join-status p {
    text-align: left;
  }

  .response-shell {
    align-content: start;
  }

  .trust-option {
    min-height: 62px;
  }

  .landing-page {
    background:
      radial-gradient(circle at 25% 24%, var(--trust-deep-red) 0 38vw, transparent 38.2vw),
      radial-gradient(circle at 94% 96%, var(--trust-deep-red) 0 28vw, transparent 28.2vw),
      linear-gradient(90deg, var(--trust-gold) 0 28%, var(--trust-red) 28% 100%);
  }

  .landing-page::before {
    height: 112px;
  }

  .landing-page::after {
    width: 118px;
    height: 118px;
  }

  .landing-page .auth-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
    min-height: auto;
  }

  .landing-page .auth-hero {
    min-height: 48vh;
    padding-top: 44px;
  }

  .landing-page .auth-hero::before {
    left: 46%;
    top: 68%;
    width: 42vw;
    height: 14px;
  }

  .landing-page .auth-hero::after {
    left: 73%;
    top: 20%;
    width: 68px;
    height: 68px;
  }

  .landing-page h1 {
    max-width: 7.8ch;
    font-size: clamp(3.4rem, 18vw, 5.4rem);
  }

  .landing-page .auth-panel {
    max-width: none;
    margin-bottom: 120px;
  }

  .landing-page .auth-panel::before {
    right: -14px;
    top: -18px;
    width: 58px;
    height: 58px;
  }

  .workspace-page .page-shell {
    width: min(100vw - 24px, 1200px);
    padding-top: 18px;
  }

  .workspace-header {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .workspace-actions {
    justify-content: flex-start;
  }

  .workspace-meta-card {
    width: 100%;
  }

  .poll-question-row {
    grid-template-columns: 1fr;
  }

  .poll-controls {
    grid-template-columns: minmax(0, 1fr) minmax(140px, 180px);
    grid-template-rows: auto;
  }

  .poll-action-stack {
    order: 2;
  }

  .poll-delete-button,
  .poll-duplicate-button {
    width: 100%;
  }

  .response-count-field {
    max-width: none;
  }
}
