:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f3f5f7;
  color: #17202a;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.panel {
  width: min(34rem, calc(100% - 2rem));
  padding: 2rem;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 0.5rem 2rem rgb(23 32 42 / 10%);
}

.survey {
  width: min(46rem, calc(100% - 2rem));
  margin: 2rem auto;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border-radius: 0.9rem;
  background: #fff;
  box-shadow: 0 0.5rem 2rem rgb(23 32 42 / 10%);
}

/* Expérience participant et projection : même scène bleue */
.participant-survey-body { background: radial-gradient(circle at top right, #12365c, #061a38 58%); color: #fff; }
.participant-survey-body .survey { background: transparent; box-shadow: none; }
.participant-survey-body .survey > header { text-align: center; }
.participant-survey-body .survey > header .eyebrow { color: #54d6d3; }
.participant-survey-body .survey > header .lead,
.participant-survey-body .survey > header > p:not(.eyebrow) { color: #c9d7e7; }
.participant-survey-body .question { background: rgb(255 255 255 / 7%); border-color: rgb(255 255 255 / 22%); }
.participant-survey-body .question legend { color: #fff; }
.participant-survey-body .question-number { background: #54d6d3; color: #06233f; }
.participant-survey-body .question .hint { color: #c9d7e7; }
.participant-survey-body .choices label { background: #fff; color: #17202a; }
.participant-survey-body .question-navigation { color: #dce7f2; }
.participant-survey-body .sync-status:not([data-kind]),
.participant-survey-body .submit-row { color: #dce7f2; }
.participant-survey-body .participant-identification,
.participant-closed-panel { background: #fff; color: #17202a; }
.participant-closed-panel { box-shadow: 0 1.2rem 3rem rgb(0 0 0 / 25%); }

.eyebrow {
  margin-bottom: 0.25rem;
  color: #4564d6;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.lead {
  font-size: 1.1rem;
  color: #4b5563;
}

.participant-identification {
  margin: 1.5rem 0;
  padding: 1.1rem;
  border-left: 4px solid #4564d6;
  border-radius: 0.6rem;
  background: #f4f7ff;
}

.participant-identification .hint { margin: 0.35rem 0 0.8rem; }
.participant-identification button { margin-top: 0.9rem; width: 100%; }
.participant-identification .sync-status { display: block; margin: 0.65rem 0 0; }
.participant-identification[hidden], #questionnaire-content[hidden] { display: none; }
.question[hidden], .submit-row button[hidden] { display: none; }

.question {
  margin: 1.5rem 0;
  padding: 1.25rem;
  border: 1px solid #dfe3e8;
  border-radius: 0.75rem;
}

.question legend {
  padding: 0 0.35rem;
  font-weight: 700;
}

.question-number {
  display: inline-grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  margin-right: 0.4rem;
  border-radius: 50%;
  background: #e8edff;
  color: #2949bd;
}

.required {
  color: #b42318;
}

input[type="text"], input[type="password"], input[type="email"], input[type="number"], textarea, select {
  box-sizing: border-box;
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #aeb7c2;
  border-radius: 0.5rem;
  font: inherit;
}

input:focus-visible, textarea:focus-visible, button:focus-visible {
  outline: 3px solid #9bb0ff;
  outline-offset: 2px;
}

.choices {
  display: grid;
  gap: 0.7rem;
}

.choices label {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.25rem 0.7rem;
  border-radius: 0.5rem;
  background: #f7f8fa;
}

.choices input {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.7rem;
}

.rating {
  grid-template-columns: repeat(5, 1fr);
}

.rating label {
  justify-content: center;
}

.submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
}

.question-navigation {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-top: 1.25rem;
}

.question-navigation[hidden] { display: none; }
.organizer-waiting { background: #fff7db; border: 1px solid #e8c85b; border-radius: 0.55rem; color: #6b5100; font-weight: 650; padding: 0.85rem; text-align: center; }
.organizer-waiting[hidden] { display: none; }

button {
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
  border: 0;
  border-radius: 0.55rem;
  background: #2949bd;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.sync-status[data-kind="synced"] { color: #087443; }
.sync-status[data-kind="offline"] { color: #b42318; }
.confirmation { text-align: center; padding: 2rem 0; }

.admin-shell {
  width: min(68rem, calc(100% - 2rem));
  margin: 2rem auto;
}

.admin-header, .admin-actions, .card-heading, .card-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.admin-actions form { margin: 0; }
.button-link, .card-links a {
  color: #2949bd;
  font-weight: 700;
}

.button-link {
  padding: 0.8rem 1rem;
  border-radius: 0.55rem;
  background: #2949bd;
  color: #fff;
  text-decoration: none;
}

.button-secondary { background: #5d6672; }
.button-danger { background: #b42318; min-height: auto; padding: 0.5rem 0.75rem; }
.participant-home-body { align-items: center; background: linear-gradient(145deg, #071f3f, #0c4161); display: flex; justify-content: center; min-height: 100vh; padding: 1.2rem; }
.participant-home-card { background: #fff; border-radius: 1rem; box-shadow: 0 1.5rem 4rem rgb(0 0 0 / 25%); box-sizing: border-box; display: grid; gap: 1.35rem; max-width: 31rem; padding: clamp(1.6rem, 5vw, 3rem); width: 100%; }
.participant-home-card header { text-align: center; }
.participant-home-card h1 { color: #0b2545; font-size: clamp(1.7rem, 5vw, 2.25rem); margin: 0.35rem 0 0.75rem; }
.participant-home-card header > p:last-child { color: #667085; margin: 0; }
.participant-home-brand { color: #008b8b; display: block; font-family: Georgia, serif; font-size: 1.8rem; font-style: italic; font-weight: 700; margin-bottom: 1rem; }
.participant-code-form { display: grid; gap: 0.75rem; }
.participant-code-form label { color: #344054; font-size: 0.85rem; font-weight: 750; }
.participant-code-form input { font-size: 1.15rem; font-weight: 750; letter-spacing: 0.08em; text-align: center; text-transform: uppercase; }
.participant-code-form button { width: 100%; }
.participant-admin-link { color: #667085; font-size: 0.78rem; justify-self: center; }
.survey-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1rem; }
.admin-card, .empty-state, .admin-form, .questions-admin {
  padding: 1.4rem;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 0.3rem 1.5rem rgb(23 32 42 / 8%);
}

.admin-card h2 { margin: 0; font-size: 1.2rem; }
.status-badge { padding: 0.25rem 0.55rem; border-radius: 999px; background: #e8edff; }
.status-badge[data-status="open"] { background: #d9f7e8; color: #087443; }
.compact-details div { display: flex; justify-content: space-between; padding: 0.35rem 0; }
.compact-details dd { font-weight: 650; }
.stack-form { display: grid; gap: 1rem; }
.stack-form label { display: grid; gap: 0.4rem; font-weight: 650; }
.admin-login { max-width: 25rem; }
.admin-form-shell > nav { margin-bottom: 1.5rem; }
.admin-form { margin-bottom: 2rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.settings-group { display: grid; gap: 0.65rem; border: 1px solid #dfe3e8; border-radius: 0.65rem; padding: 1rem; }
.settings-group legend { font-weight: 750; padding: 0 0.35rem; }
.radio-card { display: flex !important; grid-template-columns: auto 1fr; align-items: start; padding: 0.8rem; border-radius: 0.5rem; background: #f7f8fa; }
.radio-card input { margin: 0.2rem 0.7rem 0 0; }
.radio-card span { display: grid; gap: 0.2rem; }
.radio-card small, .question-list small { color: #5d6672; font-weight: 400; }
.checkbox-line { display: flex !important; align-items: center; align-self: end; min-height: 2.8rem; }
.checkbox-line input { width: 1.2rem; height: 1.2rem; margin-right: 0.55rem; }
.form-error { padding: 0.8rem; border-radius: 0.5rem; background: #fee4e2; color: #912018; }
.form-notice { padding: 0.8rem; border-radius: 0.5rem; background: #dcf6eb; color: #086145; }
.questions-admin { margin-top: 2rem; }
.question-list { padding: 0; list-style: none; counter-reset: questions; }
.question-list li { align-items: center; border-bottom: 1px solid #e5e7eb; display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr) auto; padding: 0.85rem 0; }
.question-admin-summary { display: grid; gap: 0.2rem; min-width: 0; }
.question-admin-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: flex-end; }
.question-admin-actions form { margin: 0; }
.question-order-button, .question-editor > summary { align-items: center; background: #fff; border: 1px solid var(--admin-border); border-radius: 0.45rem; color: var(--admin-navy); cursor: pointer; display: inline-flex; font-size: 0.82rem; font-weight: 700; justify-content: center; min-height: 2.2rem; padding: 0.35rem 0.65rem; }
.question-order-button:disabled { cursor: not-allowed; opacity: 0.35; }
.question-editor > summary { list-style: none; }
.question-editor > summary::-webkit-details-marker { display: none; }
.question-editor[open] { flex-basis: 100%; order: 5; }
.question-editor[open] > summary { margin-left: auto; }
.question-editor > form { background: #f8fafb; border: 1px solid var(--admin-border); border-radius: 0.65rem; margin-top: 0.65rem; padding: 1rem; text-align: left; }
.question-editor-buttons { display: flex; justify-content: flex-end; }
.question-admin-item:has(.question-editor[open]) { align-items: start; grid-template-columns: 1fr; }
.question-admin-item:has(.question-editor[open]) .question-admin-actions { grid-column: 1 / -1; width: 100%; }
.add-question-form { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid #dfe3e8; }

@media (max-width: 36rem) {
  .submit-row { align-items: stretch; flex-direction: column; }
  .rating { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .admin-header, .admin-actions { align-items: stretch; flex-direction: column; }
  .form-grid { grid-template-columns: 1fr; }
  .question-list li { align-items: stretch; grid-template-columns: 1fr; }
  .question-admin-actions { justify-content: flex-start; }
}


h1 {
  margin-top: 0;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
}

dl {
  margin: 0;
}

dl div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid #e5e7eb;
}

dt {
  font-weight: 650;
}

dd {
  margin: 0;
}

/* Administration — identité Fr4ktal */
.admin-body, .admin-login-body {
  --admin-navy: #071d3e;
  --admin-navy-soft: #102d58;
  --admin-teal: #009b9d;
  --admin-teal-dark: #007d80;
  --admin-gold: #b8891e;
  --admin-ink: #17233a;
  --admin-muted: #647084;
  --admin-border: #dfe5ec;
  background: #f5f7f9;
  color: var(--admin-ink);
  display: block;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
}

body.admin-body { max-width: none; overflow-x: hidden; place-items: initial; width: 100%; }
.admin-layout { display: grid; grid-template-columns: 17.5rem minmax(0, 1fr); min-height: 100vh; width: 100%; }
.admin-sidebar { background: linear-gradient(165deg, var(--admin-navy), #041329); box-sizing: border-box; color: #fff; display: flex; flex-direction: column; left: 0; min-height: 100vh; padding: 1.5rem 1rem; position: sticky; top: 0; width: 17.5rem; }
.admin-brand { align-items: center; color: #fff; display: flex; gap: 0.85rem; padding: 0.35rem 0.5rem 1.65rem; text-decoration: none; }
.admin-brand > span:last-child { display: grid; gap: 0.18rem; }
.admin-brand strong { font-family: Georgia, serif; font-size: 1.16rem; font-style: italic; font-weight: 500; }
.admin-brand small { color: #9ab0cb; font-size: 0.74rem; letter-spacing: 0.04em; text-transform: uppercase; }
.brand-mark { background: rgb(0 155 157 / 14%); border: 1px solid rgb(0 190 192 / 35%); border-radius: 0.7rem; display: grid; flex: 0 0 auto; height: 2.8rem; place-items: center; width: 2.8rem; }
.brand-mark svg { fill: none; height: 1.75rem; stroke: #26c5c4; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; width: 1.75rem; }
.admin-nav { display: grid; gap: 0.3rem; }
.mobile-logout { display: none; }
.admin-nav p { color: #7289a7; font-size: 0.7rem; font-weight: 750; letter-spacing: 0.12em; margin: 1.2rem 0 0.35rem 0.8rem; text-transform: uppercase; }
.admin-nav a, .admin-nav-disabled { align-items: center; border-radius: 0.55rem; color: #dce6f3; display: flex; gap: 0.8rem; min-height: 2.85rem; padding: 0 0.85rem; text-decoration: none; }
.admin-nav a > span, .admin-nav-disabled > span { color: #4bc7c7; font-size: 1.15rem; width: 1.25rem; }
.admin-nav a:hover, .admin-nav a.is-active { background: var(--admin-navy-soft); color: #fff; }
.admin-nav a.is-active { box-shadow: inset 3px 0 var(--admin-teal); }
.admin-nav-disabled { color: #8395ad; cursor: default; }
.admin-nav em { background: rgb(184 137 30 / 18%); border: 1px solid rgb(184 137 30 / 32%); border-radius: 999px; color: #d9b85f; font-size: 0.62rem; font-style: normal; margin-left: auto; padding: 0.15rem 0.42rem; text-transform: uppercase; }
.admin-sidebar-footer { border-top: 1px solid rgb(255 255 255 / 10%); margin-top: auto; padding: 1.2rem 0.6rem 0.2rem; }
.farm-accent { color: #3bc4c3; font-family: Georgia, serif; font-size: 1.2rem; font-style: italic; }
.admin-sidebar-footer p { color: #8296af; font-size: 0.78rem; margin: 0.25rem 0 0.9rem; }
.sidebar-logout { background: transparent; border: 1px solid rgb(255 255 255 / 18%); color: #dce6f3; min-height: 2.35rem; padding: 0.45rem 0.7rem; width: 100%; }
.admin-main { max-width: 100%; min-width: 0; width: 100%; }
.admin-topbar { align-items: center; background: #fff; border-bottom: 1px solid var(--admin-border); color: var(--admin-muted); display: flex; font-size: 0.86rem; height: 4rem; justify-content: space-between; padding: 0 2.25rem; }
.admin-topbar-context { align-items: center; display: flex; gap: 0.55rem; min-width: 0; white-space: nowrap; }
.admin-topbar-context a { color: var(--admin-muted); text-decoration: none; }
.admin-topbar-context a:hover { color: var(--admin-teal-dark); }
.admin-topbar-context strong { color: var(--admin-navy); overflow: hidden; text-overflow: ellipsis; }
.admin-topbar-separator { color: #a4afbd; }
.topbar-dot { background: var(--admin-teal); border-radius: 50%; display: inline-block; height: 0.48rem; margin-right: 0.45rem; width: 0.48rem; }
.admin-avatar { background: var(--admin-navy); border-radius: 50%; color: #fff; display: grid; font-size: 0.75rem; font-weight: 750; height: 2rem; place-items: center; width: 2rem; }
.admin-content { box-sizing: border-box; margin: 0; max-width: none; padding: 2.4rem clamp(1.2rem, 3vw, 3.25rem) 4rem; width: 100%; }
.admin-content.admin-content-regie { padding-top: 0.65rem; }
.client-admin-layout { display: block; }
.client-admin-topbar { background: linear-gradient(110deg, var(--admin-navy), #061a36); border-bottom: 0; color: #fff; display: grid; gap: clamp(1rem, 2.5vw, 2.5rem); grid-template-columns: minmax(13rem, auto) minmax(14rem, 1fr) auto; height: auto; min-height: 4.2rem; padding: 0.4rem clamp(1rem, 2.5vw, 2.5rem); position: sticky; top: 0; z-index: 50; }
.client-admin-topbar .brand-mark { height: 2.35rem; width: 2.35rem; }
.client-admin-topbar .brand-mark svg { height: 1.4rem; width: 1.4rem; }
.admin-topbar-brand { align-items: center; color: #fff; display: flex; gap: 0.75rem; min-width: 0; text-decoration: none; }
.admin-topbar-brand > span:last-child { display: grid; gap: 0.05rem; min-width: 0; }
.admin-topbar-brand strong { font-family: Georgia, serif; font-size: 1.08rem; font-style: italic; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-topbar-brand small { color: #b9c7da; font-family: Georgia, serif; font-size: 0.62rem; text-transform: uppercase; }
.client-admin-topbar .admin-nav { align-items: center; display: flex; gap: 0.45rem; }
.client-admin-topbar .admin-nav a { color: #dce6f3; gap: 0.45rem; min-height: 2.5rem; padding: 0 0.9rem; }
.client-admin-topbar .admin-nav a > span { color: #43ccca; font-size: 0.95rem; width: auto; }
.client-admin-topbar .admin-nav a:hover, .client-admin-topbar .admin-nav a.is-active { background: #123a6d; color: #fff; }
.client-admin-topbar .admin-nav a.is-active { box-shadow: inset 3px 0 #20c5c3; }
.admin-live-context { align-items: center; color: #a9bcd2; display: flex; font-size: 0.68rem; gap: 0.35rem; min-width: 0; }
.admin-live-context strong { color: #5ad7d4; }
.admin-live-context > span:last-child { max-width: clamp(8rem, 16vw, 17rem); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-account { align-items: center; display: flex; gap: 0.65rem; }
.admin-account .admin-avatar { background: #173862; border: 1px solid #496482; flex: 0 0 auto; }
.admin-account-copy { display: grid; line-height: 1.15; max-width: 12rem; }
.admin-account-copy strong, .admin-account-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-account-copy strong { color: #fff; font-size: 0.78rem; }
.admin-account-copy small { color: #9eb0c7; font-size: 0.62rem; }
.admin-account form { margin: 0; }
.topbar-logout { background: transparent; border: 1px solid #526984; border-radius: 0.5rem; color: #fff; cursor: pointer; font-size: 0.7rem; font-weight: 750; min-height: 2.35rem; padding: 0.35rem 0.75rem; white-space: nowrap; }
.topbar-logout:hover { background: rgb(255 255 255 / 8%); }
.admin-breadcrumb { align-items: center; color: var(--admin-muted); display: flex; font-size: 0.72rem; gap: 0.5rem; margin: 0 0 0.65rem; min-width: 0; white-space: nowrap; }
.admin-breadcrumb a { color: var(--admin-teal-dark); text-decoration: none; }
.admin-breadcrumb a:hover { text-decoration: underline; }
.admin-breadcrumb strong { color: var(--admin-navy); overflow: hidden; text-overflow: ellipsis; }
.admin-page-header { align-items: end; display: flex; gap: 2rem; justify-content: space-between; margin-bottom: 2rem; }
.admin-page-header h1 { color: var(--admin-navy); font-size: clamp(1.85rem, 3vw, 2.45rem); margin: 0.2rem 0 0.45rem; }
.admin-page-header p:last-child { color: var(--admin-muted); margin: 0; }
.admin-kicker { color: var(--admin-teal-dark) !important; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.11em; margin: 0 !important; text-transform: uppercase; }
.admin-primary-button, .admin-outline-button { align-items: center; border-radius: 0.55rem; display: inline-flex; font-weight: 750; gap: 0.45rem; justify-content: center; min-height: 2.85rem; padding: 0 1.15rem; text-decoration: none; }
.admin-primary-button { background: linear-gradient(135deg, var(--admin-teal), var(--admin-teal-dark)); color: #fff; box-shadow: 0 0.35rem 1rem rgb(0 125 128 / 17%); }
button.admin-primary-button { border: 0; width: 100%; }
.admin-outline-button { background: #fff; border: 1px solid var(--admin-border); color: var(--admin-navy); }
.admin-stats { display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 1.5rem; }
.admin-stats article { align-items: center; background: #fff; border: 1px solid var(--admin-border); border-radius: 0.7rem; display: flex; gap: 1rem; min-height: 6rem; padding: 1rem 1.25rem; }
.stat-icon { background: #e3f5f4; border-radius: 50%; color: var(--admin-teal-dark); display: grid; font-size: 1.25rem; height: 3.15rem; place-items: center; width: 3.15rem; }
.admin-stats article div { display: grid; }
.admin-stats strong { color: var(--admin-navy); font-size: 1.75rem; line-height: 1; }
.admin-stats article div span { color: var(--admin-muted); margin-top: 0.35rem; }
.admin-table-card { background: #fff; border: 1px solid var(--admin-border); border-radius: 0.75rem; overflow: visible; }
.table-card-header { align-items: center; border-bottom: 1px solid var(--admin-border); display: flex; justify-content: space-between; padding: 1.25rem 1.5rem; }
.table-card-header h2 { color: var(--admin-navy); font-size: 1.05rem; margin: 0 0 0.25rem; }
.table-card-header p { color: var(--admin-muted); font-size: 0.82rem; margin: 0; }
.feature-note { background: #fff8e7; border: 1px solid #ead9aa; border-radius: 999px; color: #81600d; font-size: 0.72rem; padding: 0.35rem 0.65rem; }
.admin-table-scroll { overflow: visible; }
.admin-table { border-collapse: collapse; min-width: 0; width: 100%; }
.admin-table th { background: #fafbfc; color: #69758a; font-size: 0.72rem; letter-spacing: 0.04em; padding: 0.85rem 1rem; text-align: left; text-transform: uppercase; }
.admin-table td { border-top: 1px solid #edf0f3; color: #344054; padding: 1rem; vertical-align: middle; }
.admin-table td { overflow-wrap: anywhere; }
.admin-table tbody tr:hover { background: #fbfdfd; }
.admin-table td:first-child { min-width: 16rem; }
.admin-table td small { color: var(--admin-muted); display: block; margin-top: 0.25rem; max-width: 28rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.survey-title-link { color: #075c91; font-weight: 750; text-decoration: none; }
.survey-title-link:hover { text-decoration: underline; }
.status-badge { font-size: 0.75rem; font-weight: 700; padding: 0.32rem 0.62rem; }
.status-badge[data-status="open"] { background: #dff5ed; color: #087354; }
.status-badge[data-status="draft"] { background: #edf0f4; color: #596474; }
.status-badge[data-status="waiting"] { background: #dff4f5; color: #075f65; }
.status-badge[data-status="paused"] { background: #fff0cc; color: #805c00; }
.status-badge[data-status="closed"] { background: #f8e5e5; color: #8f3030; }
.row-actions { align-items: center; display: flex; gap: 0.45rem; justify-content: end; }
.row-actions a, .row-actions > form > button { background: #fff; border: 1px solid var(--admin-border); border-radius: 0.4rem; color: #344054; cursor: pointer; font: inherit; font-size: 0.76rem; font-weight: 700; padding: 0.45rem 0.6rem; text-decoration: none; }
.row-actions a:hover, .row-actions > form > button:hover { border-color: var(--admin-teal); color: var(--admin-teal-dark); }
.row-actions .row-primary-action { background: var(--admin-teal-dark); border-color: var(--admin-teal-dark); color: #fff; white-space: nowrap; }
.row-actions .row-primary-action:hover { color: #fff; }
.questionnaire-actions { flex-wrap: nowrap; }
.questionnaire-actions > form { margin: 0; }
.questionnaire-actions .row-start-action { align-items: center; display: inline-flex; gap: 0.35rem; }
.action-menu, .header-action-menu { position: relative; }
.action-menu summary, .header-action-menu summary { cursor: pointer; list-style: none; }
.action-menu summary::-webkit-details-marker, .header-action-menu summary::-webkit-details-marker { display: none; }
.action-menu > summary { align-items: center; border: 1px solid var(--admin-border); border-radius: 0.4rem; color: var(--admin-navy); display: flex; font-size: 1.15rem; font-weight: 800; height: 2rem; justify-content: center; width: 2.2rem; }
.action-menu > div, .header-action-menu > div { background: #fff; border: 1px solid var(--admin-border); border-radius: 0.55rem; box-shadow: 0 0.8rem 2.2rem rgb(7 29 62 / 18%); display: grid; min-width: 13rem; padding: 0.35rem; position: absolute; right: 0; top: calc(100% + 0.35rem); z-index: 25; }
.admin-table tbody tr:last-child .action-menu > div { bottom: calc(100% + 0.35rem); top: auto; }
.action-menu > div a, .action-menu > div button, .header-action-menu > div a, .header-action-menu > div button { background: transparent; border: 0; border-radius: 0.35rem; color: #344054; cursor: pointer; font: inherit; font-size: 0.78rem; font-weight: 650; min-height: 2.3rem; padding: 0.55rem 0.7rem; text-align: left; text-decoration: none; white-space: nowrap; }
.action-menu > div a:hover, .action-menu > div button:hover, .header-action-menu > div a:hover, .header-action-menu > div button:hover { background: #edf9f8; color: var(--admin-teal-dark); }
.action-menu > div form { margin: 0; }
.action-menu > div hr { border: 0; border-top: 1px solid var(--admin-border); margin: 0.25rem 0; }
.action-menu .menu-danger { color: #a92b21; }
.admin-empty-state { padding: 4rem 1.5rem; text-align: center; }
.admin-empty-state > span { color: var(--admin-teal); font-size: 2.4rem; }
.admin-empty-state h2 { color: var(--admin-navy); }
.admin-empty-state p { color: var(--admin-muted); }
.admin-empty-state .admin-primary-button { margin-top: 1rem; }
.sr-only { height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; clip: rect(0,0,0,0); }

.admin-form-shell { margin: 0; width: auto; }
.admin-breadcrumb { align-items: center; color: var(--admin-muted); display: flex; font-size: 0.82rem; gap: 0.55rem; margin-bottom: 1.3rem !important; }
.admin-breadcrumb a { color: var(--admin-teal-dark); text-decoration: none; }
.admin-editor-header { align-items: center; }
.editor-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 0.65rem; }
.editor-actions form { margin: 0; }
.survey-access-card { align-items: center; background: #f8fbfc; border: 1px solid var(--admin-border); border-left: 4px solid var(--admin-teal); border-radius: 0.65rem; display: grid; gap: 0.75rem; grid-template-columns: minmax(9rem, auto) minmax(15rem, 1fr) auto auto; margin-bottom: 1.25rem; padding: 1rem; }
.survey-access-card > div { display: grid; gap: 0.2rem; }
.survey-access-card small { color: var(--admin-muted); }
.advanced-options { border: 1px solid var(--admin-border); border-radius: 0.65rem; overflow: hidden; }
.advanced-options > h2 { background: #f8fafb; color: var(--admin-navy); font-size: 1rem; margin: 0; padding: 1rem 1.1rem; }
.advanced-options-content { border-top: 1px solid var(--admin-border); display: grid; gap: 1rem; padding: 1rem; }
.editor-save-bar { align-items: center; background: rgb(255 255 255 / 96%); border: 1px solid var(--admin-border); border-radius: 0.65rem; bottom: 0.75rem; box-shadow: 0 0.65rem 2rem rgb(7 29 62 / 14%); display: grid; gap: 1rem; grid-template-columns: auto 1fr auto; padding: 0.7rem 0.8rem; position: sticky; z-index: 15; }
.editor-save-bar > a { color: var(--admin-muted); font-weight: 700; padding: 0.6rem; text-decoration: none; }
.editor-save-bar > span { color: #087354; font-size: 0.78rem; text-align: right; }
.editor-save-bar > span.is-dirty { color: #805c00; }
.editor-save-bar button { background: var(--admin-teal-dark) !important; min-width: 8rem; }
.danger-zone { align-items: center; border: 1px solid #f1b7b2; border-radius: 0.65rem; display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: space-between; margin-top: 2rem; padding: 1rem; }
.danger-zone h2, .danger-zone p { margin: 0; }
.danger-zone h2 { color: #8f1d14; font-size: 1rem; }
.danger-zone p { color: var(--admin-muted); font-size: 0.85rem; margin-top: 0.25rem; }
.danger-zone form { margin: 0; }
.campaign-live-head { align-items: center; }
.campaign-live-head h1 { font-size: clamp(1.6rem, 2.3vw, 2.15rem); }
.campaign-live-head-actions { display: flex; flex-wrap: wrap; gap: 0.55rem; justify-content: flex-end; }
.campaign-live-head-actions button { cursor: pointer; width: auto; }
.campaign-code { color: var(--admin-teal-dark); font-family: ui-monospace, "Cascadia Mono", monospace; letter-spacing: 0.04em; }
.campaign-code-input { font-family: ui-monospace, "Cascadia Mono", monospace; font-size: 1.1rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.header-action-menu > summary { box-sizing: border-box; cursor: pointer; }
.header-action-menu > div form { margin: 0; }
.header-action-menu .admin-primary-button { color: #fff; }
.live-head-primary { margin: 0; }
.live-head-primary button { white-space: nowrap; }
.participation-state-menu summary span:first-child { color: #82f0c0; }
.live-closed-state { background: #f8e5e5; border-radius: 0.55rem; color: #8f3030; font-size: 0.82rem; font-weight: 750; padding: 0.85rem 1rem; }
.live-update-state { background: #e6f5f2; border-radius: 999px; color: #087354; display: inline-block; font-size: 0.7rem; font-weight: 750; margin-left: 0.5rem; padding: 0.2rem 0.48rem; }
.live-update-state.is-error { background: #fff0cc; color: #805c00; }
.live-kpi-grid { display: grid; gap: 1rem; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 1.3rem; }
.live-kpi-grid article { align-items: center; background: #fff; border: 1px solid var(--admin-border); border-radius: 0.72rem; display: flex; gap: 0.9rem; min-height: 6.1rem; padding: 1rem 1.15rem; }
.live-kpi-icon { background: #e4f5f3; border-radius: 0.65rem; color: var(--admin-teal-dark); display: grid; flex: 0 0 auto; font-size: 1.25rem; height: 3rem; place-items: center; width: 3rem; }
.live-kpi-grid article div { display: grid; min-width: 0; }
.live-kpi-grid strong { color: var(--admin-navy); font-size: 1.8rem; line-height: 1; }
.live-kpi-grid span:not(.live-kpi-icon) { color: #39465a; font-size: 0.83rem; margin-top: 0.28rem; }
.live-kpi-grid small { color: var(--admin-muted); font-size: 0.7rem; margin-top: 0.2rem; }
.campaign-live-layout { align-items: start; display: grid; gap: 1.2rem; grid-template-columns: minmax(0, 1fr) auto; }
.campaign-live-main { min-width: 0; }
.live-question-card { background: linear-gradient(135deg, #071d3e 0%, #12385b 100%); border-radius: 0.85rem; color: #fff; display: grid; gap: 1.25rem 2rem; grid-template-columns: minmax(16rem, 0.8fr) minmax(22rem, 1.2fr); margin-bottom: 1.25rem; overflow: hidden; padding: 1.5rem; }
.live-question-summary { align-self: center; min-width: 0; }
.live-status-pill { background: #dff5ed; border-radius: 999px; color: #087354; display: inline-flex; font-size: 0.72rem; font-weight: 800; padding: 0.32rem 0.65rem; }
.live-status-pill[data-status="waiting"] { background: #dff4f5; color: #075f65; }
.live-status-pill[data-status="paused"] { background: #fff0cc; color: #805c00; }
.live-status-pill[data-status="closed"] { background: #f8e5e5; color: #8f3030; }
.live-question-summary h2 { color: #58d0cf; font-size: 0.8rem; letter-spacing: 0.06em; margin: 0.8rem 0 0.4rem; text-transform: uppercase; }
.live-question-summary h3 { color: #fff; font-size: clamp(1.3rem, 2vw, 2rem); line-height: 1.22; margin: 0; }
.live-question-summary > p { color: #c7d7e8; line-height: 1.5; margin: 0.65rem 0 0; }
.live-answer-progress { margin-top: 1.4rem; }
.live-answer-progress strong { color: #f0f6fb; font-size: 0.82rem; }
.live-progress { background: rgb(255 255 255 / 15%); border-radius: 999px; height: 0.48rem; margin-top: 0.55rem; overflow: hidden; }
.live-progress span { background: linear-gradient(90deg, #20b7b6, #72dfd9); border-radius: inherit; display: block; height: 100%; transition: width 220ms ease; }
.live-results { background: rgb(3 19 41 / 54%); border: 1px solid rgb(255 255 255 / 12%); border-radius: 0.72rem; padding: 1rem; }
.live-results-head { align-items: start; display: flex; gap: 1rem; justify-content: space-between; }
.live-results h4 { color: #fff; font-size: 0.9rem; margin: 0 0 0.2rem; }
.live-results-head p { color: #92a8c1; font-size: 0.68rem; margin: 0; }
.live-results form { margin: 0; }
.live-results-switch, .live-results-readonly { background: rgb(255 255 255 / 10%); border: 1px solid rgb(255 255 255 / 18%); border-radius: 0.4rem; color: #e8f1fa; font-size: 0.68rem; min-height: 2rem; padding: 0.35rem 0.55rem; white-space: nowrap; }
.live-results-switch { align-items: center; cursor: pointer; display: flex; gap: 0.55rem; }
.live-results-switch i { background: #64788f; border-radius: 999px; display: block; height: 1.1rem; position: relative; transition: background 160ms ease; width: 2rem; }
.live-results-switch i::after { background: #fff; border-radius: 50%; content: ""; height: 0.78rem; left: 0.16rem; position: absolute; top: 0.16rem; transition: transform 160ms ease; width: 0.78rem; }
.live-results-switch[aria-checked="true"] i { background: #20b7b6; }
.live-results-switch[aria-checked="true"] i::after { transform: translateX(0.9rem); }
.live-stat-row { align-items: center; display: grid; gap: 0.65rem; grid-template-columns: minmax(7rem, 0.8fr) minmax(8rem, 1.4fr) 2.2rem 3.2rem; margin-top: 0.8rem; }
.live-stat-row > span { color: #e4edf6; font-size: 0.78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-stat-row > strong { color: #fff; font-size: 0.78rem; text-align: right; }
.live-stat-row > em { color: #a5b6ca; font-size: 0.7rem; font-style: normal; text-align: right; }
.live-bar { background: rgb(255 255 255 / 12%); border-radius: 999px; height: 0.45rem; overflow: hidden; }
.live-bar i { background: #28bebc; border-radius: inherit; display: block; height: 100%; transition: width 220ms ease; }
.live-average { color: #52d3d0; font-size: 0.78rem; font-weight: 800; margin: 0.75rem 0 0; }
.live-number-stats { display: grid; gap: 0.65rem; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 0.85rem; }
.live-number-stats article { background: rgb(255 255 255 / 8%); border-radius: 0.45rem; display: grid; gap: 0.25rem; padding: 0.7rem; }
.live-number-stats span { color: #a9b9cb; font-size: 0.66rem; }
.live-number-stats strong { color: #fff; }
.live-text-answers { max-height: 12rem; overflow: auto; list-style: none; margin: 0.75rem 0 0; padding: 0; }
.live-text-answers li { border-top: 1px solid rgb(255 255 255 / 10%); display: grid; gap: 0.2rem; padding: 0.65rem 0; }
.live-text-answers strong { color: #52d3d0; font-size: 0.72rem; }
.live-text-answers span { color: #eef4fa; font-size: 0.78rem; overflow-wrap: anywhere; }
.live-empty-results { color: #a9b9cb; font-size: 0.8rem; margin: 0.9rem 0 0; }
.live-controls { border-top: 1px solid rgb(255 255 255 / 12%); display: flex; flex-wrap: wrap; gap: 0.55rem; grid-column: 1 / -1; padding-top: 1rem; }
.live-controls form { margin: 0; }
.live-controls button { background: rgb(255 255 255 / 10%); border: 1px solid rgb(255 255 255 / 22%); border-radius: 0.45rem; color: #fff; cursor: pointer; min-height: 2.45rem; padding: 0.45rem 0.8rem; }
.live-controls button.is-primary { background: var(--admin-teal); border-color: var(--admin-teal); }
.live-controls button:disabled { cursor: not-allowed; opacity: 0.38; }
.live-closed-message { color: #c9d5e2; margin: 0; }
.live-control-menu { margin-left: auto; }
.live-control-menu > summary { border-color: rgb(255 255 255 / 22%); color: #fff; height: 2.45rem; }
.live-control-menu > div form { margin: 0; }
.live-lower-grid { display: grid; gap: 1.2rem; grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.65fr); }
.live-panel { background: #fff; border: 1px solid var(--admin-border); border-radius: 0.72rem; min-width: 0; overflow: hidden; }
.live-panel-title { align-items: center; border-bottom: 1px solid var(--admin-border); display: flex; gap: 1rem; justify-content: space-between; padding: 1rem 1.15rem; }
.live-panel-title h3 { color: var(--admin-navy); font-size: 0.95rem; margin: 0 0 0.18rem; }
.live-panel-title p { color: var(--admin-muted); font-size: 0.72rem; margin: 0; }
.live-panel-title > span { background: #e4f5f3; border-radius: 999px; color: var(--admin-teal-dark); font-size: 0.75rem; font-weight: 800; padding: 0.28rem 0.55rem; }
.live-participant-scroll { max-height: 24rem; overflow: auto; }
.live-participant-table { border-collapse: collapse; min-width: 38rem; width: 100%; }
.live-participant-table th { background: #fafbfc; color: #6a7688; font-size: 0.66rem; letter-spacing: 0.04em; padding: 0.72rem 0.85rem; text-align: left; text-transform: uppercase; }
.live-participant-table td { border-top: 1px solid #edf0f3; color: #344054; font-size: 0.78rem; padding: 0.75rem 0.85rem; }
.live-participant-state { align-items: center; display: inline-flex; gap: 0.4rem; }
.live-participant-state i { background: #d09b1b; border-radius: 50%; height: 0.42rem; width: 0.42rem; }
.live-participant-state[data-state="answered"] i, .live-participant-state[data-state="completed"] i { background: #159267; }
.live-participant-state[data-state="disconnected"] { color: #8792a3; }
.live-participant-state[data-state="disconnected"] i { background: #aeb6c2; }
.live-empty-row td { color: var(--admin-muted); padding: 2rem; text-align: center; }
.live-question-list { max-height: 24rem; overflow: auto; padding: 0.45rem; }
.live-question-list article { border-left: 3px solid transparent; display: grid; gap: 0.25rem; padding: 0.72rem 0.75rem; }
.live-question-list article + article { border-top: 1px solid #edf0f3; }
.live-question-list article[data-state="current"] { background: #edf9f8; border-left-color: var(--admin-teal); }
.live-question-list strong { color: var(--admin-teal-dark); font-size: 0.7rem; }
.live-question-list span { color: #344054; font-size: 0.77rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-question-list em { color: var(--admin-muted); font-size: 0.68rem; font-style: normal; }
.live-customizer { background: #fff; border: 1px solid var(--admin-border); border-radius: 0.75rem; box-shadow: 0 1rem 3rem rgb(7 29 62 / 15%); position: sticky; top: 1rem; width: 20rem; }
.live-customizer-head { align-items: center; border-bottom: 1px solid var(--admin-border); display: flex; justify-content: space-between; padding: 1rem; }
.live-customizer-head h3 { color: var(--admin-navy); font-size: 1rem; margin: 0; }
.live-customizer-head button { background: transparent; border: 0; color: var(--admin-muted); cursor: pointer; font-size: 1.5rem; }
.live-customizer > p { color: var(--admin-muted); font-size: 0.7rem; margin: 1rem 1rem 0.55rem; }
.live-presets { display: grid; gap: 0.4rem; grid-template-columns: repeat(3, 1fr); padding: 0 1rem 0.8rem; }
.live-presets button { background: #f5f7f9; border: 1px solid var(--admin-border); border-radius: 0.4rem; color: #445065; cursor: pointer; font-size: 0.68rem; min-height: 2.2rem; padding: 0.3rem; }
.live-presets button.is-active { background: #e4f5f3; border-color: #7dceca; color: var(--admin-teal-dark); font-weight: 800; }
.live-customizer fieldset { border: 0; border-top: 1px solid var(--admin-border); margin: 0; padding: 0.85rem 1rem; }
.live-customizer legend { color: var(--admin-navy); font-size: 0.78rem; font-weight: 800; padding-top: 0.8rem; }
.live-customizer label { align-items: center; color: #455166; display: flex; font-size: 0.73rem; justify-content: space-between; min-height: 2rem; }
.live-customizer input { accent-color: var(--admin-teal); height: 1rem; width: 1rem; }
.live-reset-button { box-sizing: border-box; margin: 0 1rem 1rem; width: calc(100% - 2rem); }
.live-block-hidden { display: none !important; }
.hide-percentages [data-percentage], .hide-percentages [data-kpi-detail] { display: none !important; }
.hide-numbers [data-number] { display: none !important; }
.live-modal[hidden], .live-customizer[hidden] { display: none; }
.live-modal { display: grid; inset: 0; place-items: center; position: fixed; z-index: 100; }
.live-modal-backdrop { background: rgb(3 13 30 / 72%); inset: 0; position: absolute; }
.live-modal-card { background: #fff; border-radius: 0.9rem; box-shadow: 0 1.5rem 5rem rgb(0 0 0 / 38%); box-sizing: border-box; max-width: 31rem; padding: 2rem; position: relative; text-align: center; width: calc(100% - 2rem); z-index: 1; }
.live-modal-card h2 { color: var(--admin-navy); margin: 0; }
.live-modal-card > p { color: var(--admin-muted); }
.live-modal-card > img { background: #fff; border: 0.55rem solid #fff; box-shadow: 0 0 0 1px var(--admin-border); max-width: 15rem; width: 75%; }
.live-modal-close { background: transparent; border: 0; color: #677386; cursor: pointer; font-size: 1.6rem; position: absolute; right: 0.85rem; top: 0.65rem; }
.live-link-row { display: flex; margin-top: 1.25rem; }
.live-link-row input { border-radius: 0.45rem 0 0 0.45rem; font-size: 0.72rem; min-width: 0; }
.live-link-row button { background: var(--admin-navy); border: 0; border-radius: 0 0.45rem 0.45rem 0; color: #fff; cursor: pointer; padding: 0 0.85rem; }
.live-modal-actions { display: flex; gap: 0.6rem; justify-content: center; margin-top: 1rem; }
.live-modal-open { overflow: hidden; }
.admin-delete-modal-card { max-width: 34rem; text-align: left; }
.admin-delete-modal-card h2 { font-size: 1.45rem; }
.admin-delete-modal-card > p { line-height: 1.55; }
.admin-delete-preserved { background: #edf8f5; border: 1px solid #c7e8df; border-radius: 0.55rem; color: #087354; font-size: 0.8rem; padding: 0.75rem; }
.admin-delete-live-warning { background: #fff3d6; border: 1px solid #ecd59d; border-radius: 0.55rem; color: #785500 !important; font-size: 0.78rem; padding: 0.75rem; }
.admin-delete-modal-card .live-modal-actions { justify-content: flex-end; }
.admin-danger-button { background: #b42335; border: 1px solid #b42335; border-radius: 0.55rem; color: #fff; cursor: pointer; font-size: 0.78rem; font-weight: 750; min-height: 2.85rem; padding: 0 1.15rem; }
.admin-danger-button:hover { background: #941b2b; }
.admin-danger-button:disabled { cursor: wait; opacity: 0.7; }
.live-presentation-mode .admin-sidebar, .live-presentation-mode .admin-topbar, .live-presentation-mode .campaign-live-head .admin-kicker, .live-presentation-mode .live-lower-grid, .live-presentation-mode #controlsBlock, .live-presentation-mode #liveCustomizer { display: none !important; }
.live-presentation-mode #liveSecondaryActions > :not(:first-child) { display: none !important; }
.live-presentation-mode .admin-layout { display: block; }
.live-presentation-mode .admin-content { max-width: none; padding: 1.5rem; }
.live-presentation-mode .campaign-live-head { margin-bottom: 1rem; }
.live-presentation-mode .campaign-live-head h1 { font-size: clamp(1.5rem, 3vw, 2.6rem); }
.live-presentation-mode .live-question-card { min-height: calc(100vh - 14rem); }
.live-presentation-mode .live-question-summary h3 { font-size: clamp(2rem, 4vw, 4.5rem); }
.preview-banner { align-items: center; background: #fff7db; border: 1px solid #e2c15f; border-radius: 0.65rem; color: #6e5100; display: flex; flex-wrap: wrap; gap: 0.8rem 1.2rem; margin-bottom: 1.5rem; padding: 0.8rem 1rem; }
.preview-banner span { flex: 1; }
.preview-banner a { color: #654900; font-weight: 750; }
.admin-form, .questions-admin { border: 1px solid var(--admin-border); box-shadow: none; }
.admin-form { border-top: 3px solid var(--admin-teal); padding: clamp(1.2rem, 3vw, 2rem); }
.questions-admin { padding: clamp(1.2rem, 3vw, 2rem); }
.questions-admin > header { border-bottom: 1px solid var(--admin-border); margin-bottom: 1rem; padding-bottom: 0.7rem; }
.questions-admin h2 { color: var(--admin-navy); margin: 0; }
.settings-group { background: #fbfcfd; }
.radio-card:has(input:checked) { background: #e8f7f6; box-shadow: inset 0 0 0 1px #82cdca; }
.admin-form button:not(.button-danger), .add-question-form > button { background: var(--admin-teal-dark); justify-self: start; }

.admin-login-body { align-items: center; background: linear-gradient(135deg, #061a38 0 45%, #f1f4f6 45%); display: flex; justify-content: center; padding: 1.2rem; }
.admin-login-card { background: #fff; border-radius: 1rem; box-shadow: 0 1.5rem 4rem rgb(0 0 0 / 24%); display: grid; grid-template-columns: 1fr 1fr; max-width: 58rem; min-height: 31rem; overflow: hidden; width: 100%; }
.login-brand-panel { background: linear-gradient(160deg, var(--admin-navy-soft), var(--admin-navy)); color: #fff; display: flex; flex-direction: column; justify-content: center; padding: clamp(2rem, 5vw, 4rem); position: relative; }
.login-brand-panel::after { border: 1px solid rgb(184 137 30 / 45%); content: ""; inset: 1rem; pointer-events: none; position: absolute; }
.brand-mark-large { height: 3.5rem; width: 3.5rem; }
.farm-script { color: #3fd0ce; font-family: Georgia, serif; font-size: 1.8rem; font-style: italic; margin: 1.25rem 0 0; }
.login-brand-panel h1 { color: #fff; font-size: 2rem; margin: 0.35rem 0 1rem; }
.login-brand-panel > p:last-child { color: #b7c6d9; line-height: 1.65; }
.login-form-panel { align-self: center; padding: clamp(2rem, 5vw, 4rem); }
.login-form-panel h2 { color: var(--admin-navy); font-size: 1.8rem; margin: 0.35rem 0; }
.login-form-panel > p:not(.admin-kicker):not(.form-error) { color: var(--admin-muted); margin: 0 0 1.8rem; }
.platform-grid { align-items: start; display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1.6fr) minmax(18rem, 0.8fr); }
.platform-backup-card { margin-top: 1.5rem; }
.platform-create-card { margin: 0; }
.platform-create-card h2 { color: var(--admin-navy); margin-top: 0.35rem; }
.client-list article { align-items: center; border-top: 1px solid var(--admin-border); display: grid; gap: 1rem; grid-template-columns: minmax(12rem, 1fr) auto auto auto; padding: 1rem 1.25rem; }
.client-list article > div { display: grid; gap: 0.2rem; }
.client-list small, .client-list article > span:not(.status-badge) { color: var(--admin-muted); font-size: 0.8rem; }

.projection-body { background: radial-gradient(circle at top right, #12365c, #061a38 58%); color: #fff; margin: 0; min-height: 100vh; }
.projection-screen { box-sizing: border-box; display: grid; min-height: 100vh; padding: clamp(2rem, 5vw, 5rem); }
.projection-screen .eyebrow { color: #42d2cf; font-size: clamp(0.9rem, 1.4vw, 1.3rem); }
.projection-screen h1 { color: #fff; font-size: clamp(2.5rem, 6vw, 6rem); line-height: 1.05; margin: 0.3em 0; }
.projection-waiting { align-items: center; display: grid; gap: clamp(2rem, 6vw, 6rem); grid-template-columns: minmax(0, 1fr) minmax(18rem, 28rem); }
.projection-url { color: #e8bd55; display: block; font-size: clamp(1.2rem, 2vw, 2rem); margin-top: 1rem; overflow-wrap: anywhere; }
.projection-qr { align-items: center; display: flex; flex-direction: column; gap: 0.8rem; }
.projection-qr img { background: #fff; border: 0.8rem solid #fff; border-radius: 0.6rem; box-shadow: 0 1rem 3rem rgb(0 0 0 / 35%); max-width: 24rem; width: 100%; }
.projection-qr a, .projection-qr button { background: #fff; border: 0; border-radius: 0.45rem; color: #061a38; cursor: pointer; font: inherit; font-weight: 750; padding: 0.7rem 1rem; text-decoration: none; }
.projection-question, .projection-message { align-self: center; margin: auto; max-width: 90rem; text-align: center; width: 100%; }
.projection-participant-survey { align-self: center; box-sizing: border-box; margin: auto; }
.projection-screen .projection-participant-survey > header h1 { font-size: clamp(1.6rem, 5vw, 2.2rem); line-height: 1.2; margin: 0 0 1rem; }
.projection-screen .projection-participant-survey > header .eyebrow { font-size: 1rem; }
.projection-screen .projection-participant-survey > header .lead { font-size: 1.1rem; }
.projection-participant-form { color: #fff; }
.projection-participant-form input:disabled,
.projection-participant-form textarea:disabled,
.projection-participant-form select:disabled { cursor: default; opacity: 1; }
.projection-question-navigation button:disabled { cursor: default; }
.projection-results { margin: 3rem auto 0; max-width: 55rem; }
.projection-results h2 { color: #42d2cf; font-size: clamp(1.5rem, 3vw, 3rem); }
.projection-results ul { display: grid; gap: 0.8rem; list-style: none; margin: 2rem 0 0; padding: 0; }
.projection-results li { align-items: center; background: rgb(255 255 255 / 10%); border-left: 0.45rem solid #42d2cf; border-radius: 0.4rem; display: flex; font-size: clamp(1.2rem, 2vw, 2rem); justify-content: space-between; padding: 0.8rem 1.2rem; }
.projection-hidden-results { color: #b7c6d9; font-size: clamp(1rem, 1.7vw, 1.5rem); margin-top: 3rem; }
.projection-result-choices { display: grid; gap: 0.7rem; }
.projection-result-choices > div { align-items: center; background: #fff; border-left: 0.35rem solid #42d2cf; border-radius: 0.5rem; color: #17202a; display: flex; gap: 1rem; justify-content: space-between; min-height: 2.75rem; overflow: hidden; padding: 0.25rem 0.7rem; position: relative; }
.projection-result-choices > div::before { background: #42d2cf; content: ""; inset: 0 auto 0 0; position: absolute; width: var(--result-percentage, 0%); }
.projection-result-choices span, .projection-result-choices strong { position: relative; z-index: 1; }
.projection-result-choices strong { color: #075f65; flex: 0 0 auto; font-size: 0.9rem; }
.projection-result-choices.rating > div { flex-direction: column; gap: 0.05rem; justify-content: center; }
.projection-result-choices.rating strong { font-size: 0.65rem; }
.projection-results-compact { margin-top: 1.2rem; }

/* Résultats de campagne */
.campaign-results { display: grid; gap: 1.5rem; }
.campaign-results .admin-breadcrumb, .campaign-results .admin-page-header { margin-bottom: 0 !important; }
.results-header .editor-actions { justify-content: flex-end; }
.results-kpis { display: grid; gap: 1rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.results-kpis article { background: #fff; border: 1px solid var(--admin-border); border-radius: 0.7rem; display: grid; gap: 0.28rem; padding: 1.1rem 1.25rem; }
.results-kpis span, .results-kpis small { color: var(--admin-muted); }
.results-kpis span { font-size: 0.76rem; font-weight: 750; text-transform: uppercase; }
.results-kpis strong { color: var(--admin-navy); font-size: 1.85rem; line-height: 1.1; }
.results-kpis small { font-size: 0.72rem; }
.results-section { background: #fff; border: 1px solid var(--admin-border); border-radius: 0.75rem; padding: 1.35rem; }
.results-section-head { align-items: end; border-bottom: 1px solid var(--admin-border); display: flex; gap: 1.5rem; justify-content: space-between; margin: -0.15rem 0 1.2rem; padding-bottom: 1rem; }
.results-section-head h2 { color: var(--admin-navy); font-size: 1.15rem; margin: 0.25rem 0 0; }
.results-section-head > p { color: var(--admin-muted); font-size: 0.78rem; margin: 0; }
.results-question-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.result-question-card { border: 1px solid var(--admin-border); border-radius: 0.65rem; min-width: 0; padding: 1rem; }
.result-question-card > header { align-items: start; display: flex; gap: 1rem; justify-content: space-between; }
.result-question-card > header span { color: var(--admin-teal-dark); font-size: 0.7rem; font-weight: 800; text-transform: uppercase; }
.result-question-card h3 { color: var(--admin-navy); font-size: 0.98rem; margin: 0.2rem 0 0; }
.result-question-card > header > strong { color: var(--admin-muted); font-size: 0.76rem; white-space: nowrap; }
.result-completion { background: #e8edf2; border-radius: 999px; height: 0.32rem; margin: 0.85rem 0 1rem; overflow: hidden; }
.result-completion span { background: var(--admin-teal); display: block; height: 100%; }
.result-average { color: var(--admin-muted); font-size: 0.8rem; margin: 0 0 0.7rem; }
.result-average strong { color: var(--admin-navy); }
.result-bars { display: grid; gap: 0.62rem; }
.result-bars > div { align-items: center; display: grid; gap: 0.55rem; grid-template-columns: minmax(5rem, 0.8fr) minmax(5rem, 1.2fr) auto; }
.result-bars span { color: #3d4b60; font-size: 0.76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-bars i { background: #e8edf2; border-radius: 999px; height: 0.55rem; overflow: hidden; }
.result-bars i b { background: linear-gradient(90deg, var(--admin-teal), #35c5c2); display: block; height: 100%; }
.result-bars > div > strong { color: var(--admin-navy); font-size: 0.72rem; min-width: 4.4rem; text-align: right; }
.result-question-card > small { color: var(--admin-muted); display: block; font-size: 0.68rem; margin-top: 0.8rem; }
.result-number-grid { display: grid; gap: 0.65rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.result-number-grid div { background: #f6f9fa; border-radius: 0.5rem; display: grid; gap: 0.2rem; padding: 0.8rem; text-align: center; }
.result-number-grid span { color: var(--admin-muted); font-size: 0.68rem; }
.result-number-grid strong { color: var(--admin-navy); font-size: 1.2rem; }
.result-text-list { display: grid; gap: 0.55rem; list-style: none; margin: 0; max-height: 15rem; overflow: auto; padding: 0; }
.result-text-list li { background: #f6f9fa; border-radius: 0.45rem; display: grid; gap: 0.2rem; padding: 0.65rem 0.75rem; }
.result-text-list strong { color: var(--admin-navy); font-size: 0.7rem; }
.result-text-list span { color: #465469; font-size: 0.78rem; overflow-wrap: anywhere; }
.results-empty { color: var(--admin-muted); font-size: 0.82rem; margin: 0; padding: 1rem 0; text-align: center; }
.results-matrix-scroll { overflow-x: auto; }
.results-matrix { border-collapse: collapse; min-width: 48rem; width: 100%; }
.results-matrix th { background: #f7f9fb; color: var(--admin-muted); font-size: 0.68rem; padding: 0.7rem; text-align: left; }
.results-matrix td { border-top: 1px solid var(--admin-border); color: #39475b; font-size: 0.76rem; max-width: 18rem; min-width: 8rem; overflow-wrap: anywhere; padding: 0.8rem 0.7rem; vertical-align: top; }
.results-matrix td:first-child { min-width: 9rem; }
.results-matrix td small { color: var(--admin-muted); display: block; margin-top: 0.22rem; }
.results-matrix .status-badge[data-status="completed"] { background: #dff5ed; color: #087354; }
.results-matrix .status-badge[data-status="in_progress"], .results-matrix .status-badge[data-status="started"] { background: #fff0cc; color: #805c00; }

@media print {
  .projection-body { background: #fff; color: #061a38; }
  .projection-screen h1 { color: #061a38; }
  .projection-qr a, .projection-qr button { display: none; }
}

/* Pupitre d’animation */
.regie { margin-inline: auto; max-width: 100rem; padding-bottom: 7rem; }
.regie-mobile-heading { display: none; }
.regie-session-head { align-items: center; background: linear-gradient(180deg, #fff, #fbfdfe); border: 1px solid var(--admin-border); border-radius: 1rem; box-shadow: 0 0.3rem 1rem rgb(12 32 61 / 5%); display: flex; gap: 1.25rem; justify-content: space-between; margin-bottom: 0.75rem; padding: 0.85rem 1rem; }
.regie-session-main { min-width: 0; }
.regie-session-title-row { align-items: center; display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 0.15rem; }
.regie-session-title-row h1 { color: var(--admin-navy); font-size: 1.2rem; line-height: 1.2; margin: 0; }
.regie-session-main > p { color: var(--admin-muted); font-size: 0.76rem; margin: 0.25rem 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.regie-session-title-row .live-update-state { margin: 0; }
.regie-session-kpis { display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: 0.5rem; justify-content: flex-end; }
.regie-session-kpis > div { background: #fff; border: 1px solid var(--admin-border); border-radius: 0.65rem; display: flex; flex-direction: column; min-width: 5.7rem; padding: 0.45rem 0.65rem; }
.regie-session-kpis span { color: var(--admin-muted); font-size: 0.58rem; }
.regie-session-kpis strong { color: var(--admin-navy); font-size: 1rem; line-height: 1.15; margin-top: 0.08rem; }
.regie-session-kpis .regie-session-kpi-wide { min-width: 6.8rem; }
.regie-private-results { margin-bottom: 0.75rem; }
.regie-workspace { display: grid; gap: 0.75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.regie-panel { background: #fff; border: 1px solid var(--admin-border); border-radius: 1rem; box-shadow: 0 0.3rem 1rem rgb(12 32 61 / 5%); min-width: 0; padding: 0.85rem 1rem; }
.regie-panel-head { align-items: center; display: flex; gap: 0.8rem; justify-content: space-between; margin-bottom: 0.55rem; }
.regie-kicker { color: var(--admin-teal-dark); display: block; font-size: 0.65rem; font-weight: 850; letter-spacing: 0.08em; margin-bottom: 0.18rem; text-transform: uppercase; }
.regie-panel h2 { color: var(--admin-navy); font-size: 0.98rem; margin: 0; }
.regie-panel h2 small { color: var(--admin-muted); font-size: 0.68rem; font-weight: 500; }
.regie-panel-tools { align-items: center; display: flex; gap: 0.4rem; }
.regie-preview-options { background: #edf3f7; border: 1px solid var(--admin-border); border-radius: 0.55rem; display: flex; padding: 0.12rem; }
.regie-preview-size { background: transparent; border: 0; border-radius: 0.4rem; color: #64798d; cursor: pointer; font-size: 0.6rem; font-weight: 800; min-height: 1.55rem; padding: 0.2rem 0.5rem; white-space: nowrap; }
.regie-preview-size:hover, .regie-preview-size.is-active { background: #fff; color: var(--admin-navy); box-shadow: 0 1px 4px rgb(6 31 63 / 12%); }
.regie-state { background: #edf3f6; border-radius: 999px; color: #486176; font-size: 0.63rem; font-weight: 750; padding: 0.35rem 0.55rem; white-space: nowrap; }
.regie-screen-frame { aspect-ratio: 16 / 10; background: #071d3e; border: 0.35rem solid #112c50; border-radius: 0.75rem; box-shadow: 0 0.7rem 1.5rem rgb(2 18 43 / 18%); margin-inline: auto; overflow: hidden; transition: max-width 180ms ease; width: 100%; }
.regie[data-preview-size="medium"] .regie-screen-frame { max-width: 35rem; }
.regie[data-preview-size="large"] .regie-screen-frame { max-width: none; }
.regie-screen-frame iframe { border: 0; height: 130%; pointer-events: none; transform: scale(0.7693); transform-origin: 0 0; width: 130%; }
.regie-private-results .regie-panel-head { margin-bottom: 0.65rem; }
.regie-private-results .regie-panel-head form { margin: 0; }
.regie-results-body { align-items: center; display: grid; gap: 1.5rem; grid-template-columns: minmax(15rem, 0.45fr) minmax(0, 1.55fr); }
.regie-results-summary { align-items: center; display: flex; gap: 0.8rem; min-width: 0; }
.regie-summary-percentage { color: var(--admin-teal-dark); flex: 0 0 auto; font-size: 2rem; line-height: 1; }
.regie-results-summary > div { display: grid; gap: 0.15rem; }
.regie-results-summary > div > strong { color: var(--admin-navy); font-size: 0.72rem; }
.regie-results-summary > div > span { color: var(--admin-muted); font-size: 0.63rem; }
.regie-switch { align-items: center; background: transparent; border: 0; color: var(--admin-muted); cursor: pointer; display: flex; font-size: 0.62rem; gap: 0.45rem; padding: 0; }
.regie-switch i { background: #cbd5df; border-radius: 999px; display: block; height: 1.25rem; position: relative; transition: background 160ms ease; width: 2.15rem; }
.regie-switch i::after { background: #fff; border-radius: 50%; box-shadow: 0 1px 4px rgb(0 0 0 / 22%); content: ""; height: 0.91rem; left: 0.17rem; position: absolute; top: 0.17rem; transition: transform 160ms ease; width: 0.91rem; }
.regie-switch[aria-checked="true"] i { background: var(--admin-teal); }
.regie-switch[aria-checked="true"] i::after { transform: translateX(0.9rem); }
.regie-progress { background: #e8eef2; border-radius: 999px; height: 0.38rem; overflow: hidden; }
.regie-progress i { background: linear-gradient(90deg, var(--admin-teal), #39c7c4); border-radius: inherit; display: block; height: 100%; transition: width 220ms ease; }
#aggregationContent { max-height: 5.6rem; overflow: auto; padding-right: 0.2rem; }
.regie-aggregation-rating { display: grid; gap: 0.5rem; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.regie-aggregation-rating .regie-average { grid-column: 1 / -1; margin-bottom: 0; }
.regie-aggregation-rating .regie-bar-row { grid-template-columns: 1rem minmax(2rem, 1fr) 1rem 2.1rem; margin-bottom: 0; }
.regie-average { color: var(--admin-navy); font-size: 0.75rem; font-weight: 750; margin: 0 0 0.6rem; }
.regie-bar-row { align-items: center; display: grid; gap: 0.45rem; grid-template-columns: minmax(4rem, 0.8fr) minmax(4.5rem, 1.2fr) 1.3rem 2.6rem; margin-bottom: 0.55rem; }
.regie-bar-row > span { color: #3d4b60; font-size: 0.69rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.regie-bar { background: #e8eef2; border-radius: 999px; height: 0.48rem; overflow: hidden; }
.regie-bar i { background: var(--admin-teal); display: block; height: 100%; }
.regie-bar-row strong, .regie-bar-row em { color: var(--admin-navy); font-size: 0.65rem; font-style: normal; text-align: right; }
.regie-bar-row em { color: var(--admin-muted); }
.regie-number-stats { display: grid; gap: 0.5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.regie-number-stats article { background: #f4f7f9; border-radius: 0.45rem; display: grid; gap: 0.2rem; padding: 0.65rem; text-align: center; }
.regie-number-stats span { color: var(--admin-muted); font-size: 0.62rem; }
.regie-number-stats strong { color: var(--admin-navy); font-size: 1.05rem; }
.regie-text-results { display: grid; gap: 0.45rem; list-style: none; margin: 0; padding: 0; }
.regie-text-results li { background: #f4f7f9; border-radius: 0.4rem; display: grid; gap: 0.18rem; padding: 0.55rem; }
.regie-text-results strong { color: var(--admin-navy); font-size: 0.62rem; }
.regie-text-results span { color: #465469; font-size: 0.7rem; overflow-wrap: anywhere; }
.regie-empty { color: var(--admin-muted); font-size: 0.72rem; margin: 1rem 0; text-align: center; }
.regie-next-panel { display: flex; flex-direction: column; }
.regie-next-screen-frame { flex: 0 0 auto; }
.regie-next-note { color: var(--admin-muted); font-size: 0.62rem; margin: 0.7rem 0 0; text-align: center; }
.regie-session-strip { align-items: center; background: #fff; border: 1px solid var(--admin-border); border-radius: 0.65rem; display: grid; gap: 1rem; grid-template-columns: auto minmax(8rem, 1fr) auto; margin-top: 1rem; padding: 0.7rem 1rem; }
.regie-session-strip > div:not(.regie-progress) { display: grid; gap: 0.1rem; }
.regie-session-strip span { color: var(--admin-muted); font-size: 0.6rem; text-transform: uppercase; }
.regie-session-strip strong { color: var(--admin-navy); font-size: 0.73rem; }
.regie-session-strip .campaign-code { letter-spacing: 0.08em; }
.regie-dock { align-items: stretch; backdrop-filter: blur(14px); background: rgb(255 255 255 / 95%); border: 1px solid var(--admin-border); border-radius: 1rem; bottom: 1rem; box-shadow: 0 1rem 2.4rem rgb(7 29 62 / 17%); display: flex; gap: 0.5rem; justify-content: center; left: 50%; padding: 0.5rem; position: fixed; transform: translateX(-50%); z-index: 40; }
.regie-dock form { margin: 0; }
.regie-dock-button, .regie-next-button { align-items: center; background: #fff; border: 1px solid #cfd9e3; border-radius: 0.48rem; color: var(--admin-navy); cursor: pointer; display: flex; font-size: 0.72rem; font-weight: 750; justify-content: center; min-height: 3rem; padding: 0.55rem 0.85rem; }
.regie-dock-button:hover { background: #f3f7f9; }
.regie-dock button:disabled { cursor: not-allowed; opacity: 0.42; }
.regie-next-button { background: var(--admin-teal); border-color: var(--admin-teal); color: #052f38; display: grid; min-width: 12.5rem; }
.regie-next-button span { font-size: 0.76rem; }
.regie-next-button small { font-size: 0.58rem; font-weight: 650; opacity: 0.72; }
.regie-more { margin: 0; position: relative; }
.regie-more > summary { box-sizing: border-box; list-style: none; min-width: 3rem; }
.regie-more > summary::-webkit-details-marker { display: none; }
.regie-more > div { background: #fff; border: 1px solid var(--admin-border); border-radius: 0.55rem; bottom: calc(100% + 0.55rem); box-shadow: 0 0.7rem 2rem rgb(6 27 58 / 17%); display: grid; min-width: 15rem; padding: 0.4rem; position: absolute; right: 0; }
.regie-more > div button, .regie-more > div a { background: transparent; border: 0; border-radius: 0.35rem; box-sizing: border-box; color: var(--admin-navy); cursor: pointer; font: inherit; font-size: 0.72rem; padding: 0.65rem; text-align: left; text-decoration: none; width: 100%; }
.regie-more > div button:hover, .regie-more > div a:hover { background: #f1f6f8; }
.regie-more > div hr { border: 0; border-top: 1px solid var(--admin-border); margin: 0.3rem 0; }
.regie-more > div .menu-danger { color: #b42335; }
.regie-project-qr { margin: 1rem 0 0; }
.regie-project-qr button { width: 100%; }
.regie-jump-card { max-width: 31rem; }
.regie-jump-list { display: grid; gap: 0.45rem; max-height: 55vh; overflow: auto; }
.regie-jump-list form { margin: 0; }
.regie-jump-list button { background: #f5f8fa; border: 1px solid var(--admin-border); border-radius: 0.45rem; cursor: pointer; display: grid; gap: 0.15rem; padding: 0.65rem 0.75rem; text-align: left; width: 100%; }
.regie-jump-list button[aria-current="true"] { border-color: var(--admin-teal); box-shadow: inset 0.2rem 0 var(--admin-teal); }
.regie-jump-list span { color: var(--admin-teal-dark); font-size: 0.6rem; font-weight: 800; text-transform: uppercase; }
.regie-jump-list strong { color: var(--admin-navy); font-size: 0.76rem; }
.regie-closed-message { background: #eef3f6; border: 1px solid var(--admin-border); border-radius: 0.55rem; color: var(--admin-muted); margin: 1rem 0 0; padding: 0.8rem; text-align: center; }

@media (max-width: 44rem) {
  .admin-content.admin-content-regie { padding: 0.85rem 1rem 4.8rem; }
  .regie { padding-bottom: 6rem; }
  .regie-mobile-heading { display: block; margin-bottom: 0.65rem; }
  .regie-mobile-heading h1 { color: var(--admin-navy); font-size: 1.25rem; margin: 0.25rem 0 0; }
  .regie-session-head { align-items: stretch; flex-direction: column; }
  .regie-session-main > p { white-space: normal; }
  .regie-session-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .regie-workspace { grid-template-columns: 1fr; }
  .regie-panel-head { align-items: stretch; flex-direction: column; }
  .regie-panel-tools { justify-content: space-between; }
  .regie-results-body { gap: 0.75rem; grid-template-columns: 1fr; }
  .regie-aggregation-rating { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .regie-switch { justify-content: space-between; width: 100%; }
  .regie-session-strip { grid-template-columns: 1fr; }
  .regie-session-strip > div:last-child { grid-row: 1; }
  .regie-dock { background: #071d3e; border: 0; border-radius: 0; bottom: 0; gap: 0.3rem; justify-content: flex-start; left: 0; overflow-x: auto; padding: 0.5rem; right: 0; transform: none; }
  .regie-dock-button, .regie-next-button { font-size: 0.62rem; min-height: 2.8rem; padding: 0.35rem; }
  .regie-next-button { min-width: 0; }
  .regie-next-button small { display: none; }
  .regie-more > summary { min-width: 2.8rem; }
}

@media (max-width: 75rem) {
  .live-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .live-question-card { grid-template-columns: 1fr; }
  .live-results { min-height: 11rem; }
  .live-customizer { max-height: calc(100vh - 2rem); overflow: auto; position: fixed; right: 1rem; top: 1rem; z-index: 30; }
  .results-question-grid { grid-template-columns: 1fr; }
}

@media (max-width: 64rem) {
  .admin-brand small { display: none; }
  .admin-nav em { display: none; }
  .client-admin-topbar { gap: 1rem; grid-template-columns: minmax(11rem, auto) minmax(13rem, 1fr) auto; }
  .admin-account-copy { display: none; }
  .client-admin-topbar .admin-nav a { padding: 0 0.75rem; }
  .admin-live-context > span:last-child { max-width: 9rem; }
  .regie-session-head { align-items: stretch; flex-direction: column; }
  .regie-session-kpis { justify-content: flex-start; }
  .admin-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .platform-grid { grid-template-columns: 1fr; }
  .results-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .campaign-live-head { align-items: stretch; flex-direction: column; }
  .campaign-live-head-actions { justify-content: flex-start; }
  .live-lower-grid { grid-template-columns: 1fr; }
}

@media (max-width: 44rem) {
  .projection-waiting { grid-template-columns: 1fr; text-align: center; }
  .survey-access-card { grid-template-columns: 1fr; }
  .admin-layout { display: block; }
  .admin-sidebar { display: grid; grid-template-columns: 1fr auto; min-height: auto; padding: 0.8rem; position: static; }
  .admin-sidebar { width: 100%; }
  .admin-brand { padding-bottom: 0.75rem; }
  .admin-brand small, .admin-sidebar-footer, .admin-nav p, .admin-nav-disabled { display: none; }
  .mobile-logout { align-self: center; display: block; margin: 0; }
  .mobile-logout button { background: transparent; border: 1px solid rgb(255 255 255 / 22%); color: #dce6f3; font-size: 0.7rem; min-height: 2.35rem; padding: 0.4rem 0.6rem; }
  .admin-nav { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-nav a { background: var(--admin-navy-soft); }
  .admin-topbar { display: none; }
  .client-admin-topbar { display: grid; gap: 0.65rem 0.8rem; grid-template-columns: minmax(0, 1fr) auto; padding: 0.7rem 1rem 0.8rem; position: static; }
  .admin-topbar-brand { grid-column: 1; grid-row: 1; }
  .admin-topbar-brand .brand-mark { height: 2.35rem; width: 2.35rem; }
  .admin-topbar-brand .brand-mark svg { height: 1.4rem; width: 1.4rem; }
  .admin-topbar-brand strong { font-size: 1rem; }
  .admin-topbar-brand small { display: none; }
  .client-admin-topbar .admin-nav { display: grid; gap: 0.4rem; grid-column: 1 / -1; grid-row: 2; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .client-admin-topbar .admin-nav:has(.admin-live-context) { grid-template-columns: auto minmax(0, 1fr) auto; }
  .client-admin-topbar .admin-nav a { background: #102d58; justify-content: center; min-height: 2.55rem; }
  .client-admin-topbar .admin-nav:has(.admin-live-context) a { padding-inline: 0.6rem; }
  .client-admin-topbar .admin-nav .admin-live-context { justify-content: center; }
  .admin-account { grid-column: 2; grid-row: 1; }
  .admin-account .admin-avatar { display: none; }
  .topbar-logout { font-size: 0.65rem; min-height: 2.35rem; padding: 0.35rem 0.6rem; }
  .admin-breadcrumb { align-items: flex-start; white-space: normal; }
  .admin-content { padding: 1.4rem 1rem 3rem; }
  .admin-stats { gap: 0.55rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-stats article { flex-direction: column; gap: 0.4rem; min-height: 5.5rem; padding: 0.7rem 0.35rem; text-align: center; }
  .admin-stats .stat-icon { font-size: 0.9rem; height: 2rem; width: 2rem; }
  .admin-stats strong { font-size: 1.35rem; }
  .admin-stats article div span { font-size: 0.67rem; }
  .admin-page-header { align-items: stretch; flex-direction: column; gap: 1.2rem; }
  .editor-actions { align-items: stretch; flex-direction: column; }
  .editor-actions .admin-primary-button, .editor-actions .admin-outline-button { box-sizing: border-box; width: 100%; }
  .admin-primary-button, .admin-outline-button { width: auto; }
  .table-card-header { align-items: start; flex-direction: column; gap: 0.8rem; }
  .admin-table-scroll { overflow: visible; }
  .admin-table { display: block; min-width: 0; }
  .admin-table thead { display: none; }
  .admin-table tbody, .admin-table tr, .admin-table td { display: block; width: auto; }
  .admin-table tr { border-top: 1px solid var(--admin-border); padding: 0.75rem 1rem; }
  .admin-table td { align-items: center; border: 0; display: flex; justify-content: space-between; min-width: 0 !important; padding: 0.48rem 0; }
  .admin-table td::before { color: var(--admin-muted); content: attr(data-label); font-size: 0.7rem; font-weight: 750; letter-spacing: 0.04em; margin-right: 1rem; text-transform: uppercase; }
  .admin-table td:first-child { align-items: start; display: grid; gap: 0.2rem; padding-bottom: 0.8rem; }
  .admin-table td:first-child::before { display: none; }
  .admin-table td small { white-space: normal; }
  .row-actions { justify-content: flex-end; }
  .questionnaire-actions { flex-wrap: wrap; }
  .row-actions .row-primary-action { flex: 1; text-align: center; }
  .client-list article { align-items: start; grid-template-columns: 1fr; }
  .admin-login-body { background: var(--admin-navy); padding: 0; }
  .admin-login-card { border-radius: 0; display: block; min-height: 100vh; }
  .login-brand-panel { min-height: 10rem; padding: 1.8rem; }
  .login-brand-panel::after, .login-brand-panel > p:last-child { display: none; }
  .login-brand-panel h1 { font-size: 1.35rem; margin-bottom: 0; }
  .farm-script { font-size: 1.4rem; margin-top: 0.8rem; }
  .login-form-panel { padding: 2rem 1.5rem; }
  .campaign-live-head-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .campaign-live-head-actions .admin-primary-button, .campaign-live-head-actions .admin-outline-button { box-sizing: border-box; width: 100%; }
  .campaign-live-head-actions > .live-head-primary, .campaign-live-head-actions > .participation-state-menu, .campaign-live-head-actions > .live-closed-state { grid-column: 1 / -1; }
  .header-action-menu > div { left: 0; right: auto; }
  .campaign-live-head-actions > .header-action-menu:nth-child(2) > div { left: auto; right: 0; }
  .live-update-state { display: table; margin: 0.45rem 0 0; }
  .live-kpi-grid { gap: 0.65rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .live-kpi-grid article { gap: 0.55rem; min-height: 4.7rem; padding: 0.7rem; }
  .live-kpi-icon { font-size: 1rem; height: 2.35rem; width: 2.35rem; }
  .live-kpi-grid strong { font-size: 1.3rem; }
  .live-kpi-grid span:not(.live-kpi-icon) { font-size: 0.72rem; }
  .live-kpi-grid small { font-size: 0.6rem; }
  .live-question-card { gap: 1rem; padding: 1rem; }
  .live-results-head { align-items: stretch; flex-direction: column; }
  .live-results-switch { justify-content: space-between; width: 100%; }
  .live-stat-row { gap: 0.45rem; grid-template-columns: minmax(5.5rem, 0.9fr) minmax(5rem, 1.2fr) 1.8rem 2.8rem; }
  .live-number-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .campaign-live { padding-bottom: 4.8rem; }
  .live-controls { background: #071d3e; border: 0; bottom: 0; box-shadow: 0 -0.5rem 1.5rem rgb(3 13 30 / 28%); display: grid; gap: 0.35rem; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 1.25fr) auto; left: 0; padding: 0.55rem; position: fixed; right: 0; z-index: 45; }
  .live-controls button, .live-controls form { box-sizing: border-box; width: 100%; }
  .live-controls button { font-size: 0.68rem; min-height: 2.65rem; padding: 0.35rem; }
  .live-control-menu { margin: 0; }
  .live-control-menu > summary { height: 2.65rem; width: 2.65rem; }
  .live-control-menu > div { bottom: calc(100% + 0.35rem); top: auto; }
  .live-participant-scroll { overflow-x: auto; }
  .live-customizer { inset: 0; max-height: none; overflow: auto; position: fixed; width: auto; z-index: 50; }
  .live-modal-actions { align-items: stretch; flex-direction: column; }
  .live-modal-actions .admin-primary-button, .live-modal-actions .admin-outline-button { box-sizing: border-box; width: 100%; }
  .live-link-row { display: grid; grid-template-columns: 1fr; }
  .live-link-row input, .live-link-row button { border-radius: 0.45rem; }
  .live-link-row button { min-height: 2.5rem; }
  .editor-save-bar { bottom: 0.4rem; gap: 0.45rem; grid-template-columns: auto 1fr; }
  .editor-save-bar > span { grid-column: 1 / -1; grid-row: 1; text-align: center; }
  .editor-save-bar > a { grid-column: 1; grid-row: 2; }
  .editor-save-bar > button { grid-column: 2; grid-row: 2; }
  .results-kpis { gap: 0.6rem; }
  .results-kpis article { padding: 0.85rem; }
  .results-kpis strong { font-size: 1.45rem; }
  .results-section { padding: 1rem; }
  .results-section-head { align-items: start; flex-direction: column; gap: 0.4rem; }
  .result-bars > div { grid-template-columns: minmax(4.5rem, 0.8fr) minmax(4rem, 1fr) auto; }
}
