/* ============================================================
   FESPA — Prototype styles
   Built on Boost Your IA tokens (tokens.css)
   ============================================================ */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--fg); font-family: var(--font-body); font-weight: var(--fw-medium); }
body { min-height: 100vh; }

button { font-family: inherit; cursor: pointer; }
input, textarea, select, button { font-family: inherit; color: inherit; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); }

/* ============================================================
   PROTOTYPE NAVIGATOR (top bar)
   ============================================================ */
.proto-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9000;
  background: rgba(8, 24, 49, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--fg-on-dark);
  padding: 10px 18px;
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-body);
  font-size: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-wrap: wrap;
}
.proto-nav__group { display: flex; align-items: center; gap: 6px; }
.proto-nav__label {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-right: 4px;
}
.proto-nav__authed { color: var(--byi-orange-400); font-weight: var(--fw-bold); }
.proto-nav__btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--fg-on-dark);
  padding: 6px 10px;
  border-radius: var(--r-pill);
  font-weight: var(--fw-semi);
  font-size: 12px;
  letter-spacing: 0.01em;
  transition: all var(--dur-fast) var(--ease-out);
}
.proto-nav__btn:hover { background: rgba(255,255,255,0.12); }
.proto-nav__btn.is-on {
  background: var(--accent);
  color: var(--byi-navy-950);
  border-color: var(--accent);
}
.proto-nav__btn:disabled { opacity: 0.4; cursor: not-allowed; }
.proto-nav__divider {
  width: 1px; height: 22px; background: rgba(255,255,255,0.14);
}

.screen-wrap {
  padding-top: 48px;
  min-height: 100vh;
}

/* ============================================================
   ATOMS
   ============================================================ */

/* Buttons */
.fb-btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: none;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  letter-spacing: 0.01em;
  border-radius: var(--r-pill);
  transition: all var(--dur-fast) var(--ease-out);
  cursor: pointer;
  white-space: nowrap;
}
.fb-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.fb-btn--sm { padding: 7px 14px; font-size: 13px; }
.fb-btn--md { padding: 11px 22px; font-size: 14px; }
.fb-btn--lg { padding: 14px 28px; font-size: 16px; }

.fb-btn--primary {
  background: var(--accent); color: var(--byi-navy-950);
  box-shadow: var(--sh-glow-orange);
}
.fb-btn--primary:hover { background: var(--accent-strong); transform: translateY(-1px); }
.fb-btn--primary:active { transform: translateY(0); }

.fb-btn--ghost {
  background: transparent; color: var(--fg);
  border: 1px solid var(--border-strong);
}
.fb-btn--ghost:hover { background: var(--bg-sunken); border-color: var(--fg-soft); }

.fb-btn--dark {
  background: var(--brand-strong); color: var(--fg-on-dark);
}
.fb-btn--dark:hover { background: var(--brand); }

.fb-btn__icon { font-size: 1.05em; }

/* Chips */
.fb-chip {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 11px;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  padding: 4px 10px;
}
.fb-chip--sm { padding: 3px 8px; font-size: 10px; }
.fb-chip--md { padding: 5px 11px; font-size: 11px; }
.fb-chip--neutral { background: var(--bg-sunken); color: var(--fg-soft); }
.fb-chip--accent { background: var(--accent-soft); color: var(--byi-orange-700); }
.fb-chip--navy-soft { background: var(--byi-navy-100); color: var(--byi-navy-800); text-transform: none; letter-spacing: 0.01em; font-weight: var(--fw-semi); font-family: var(--font-body); padding: 5px 12px; }
.fb-chip--orange-soft { background: var(--byi-orange-50); color: var(--byi-orange-700); text-transform: none; letter-spacing: 0.01em; font-weight: var(--fw-semi); font-family: var(--font-body); padding: 5px 12px; }
.fb-chip--success-soft { background: #E0F2EA; color: #1F6447; text-transform: none; letter-spacing: 0.01em; font-weight: var(--fw-semi); font-family: var(--font-body); padding: 5px 12px; }
.fb-chip--success { background: rgba(46,140,95,0.14); color: var(--success); }

/* Cards */
.fb-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
}
.fb-card--md { padding: 18px 20px; }
.fb-card--lg { padding: 28px 30px; }

/* Stat tile */
.fb-stat {
  background: var(--bg-elevated);
  border-radius: var(--r-lg);
  padding: 18px 22px;
  border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 6px;
}
.fb-stat__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.fb-stat__label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--fg-soft);
}
.fb-stat__value {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: var(--fw-black);
  color: var(--brand-strong);
  letter-spacing: var(--ls-tight);
  line-height: 1;
}
.fb-stat__sub { font-size: 12px; color: var(--fg-soft); }
.fb-stat--success { background: linear-gradient(180deg, #F1F9F4, #FFFFFF); }
.fb-stat--success .fb-stat__value { color: var(--success); }
.fb-stat--orange .fb-stat__value { color: var(--accent-strong); }
.fb-stat--danger .fb-stat__value { color: var(--danger); }
.fb-stat--muted .fb-stat__value { color: var(--fg-soft); }

/* Brand mark (FESPA) */
.fespa-mark {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  letter-spacing: 0.06em;
}
.fespa-mark__dot {
  width: 12px; height: 12px;
  border-radius: 3px;
  transform: rotate(45deg);
}
.fespa-mark__wordmark {
  letter-spacing: 0.18em;
  font-size: 1em;
}

/* ============================================================
   CHARTS
   ============================================================ */
.fb-donut { position: relative; flex-shrink: 0; }
.fb-donut__center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.fb-donut__value {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: var(--fw-black);
  color: var(--brand-strong);
  letter-spacing: var(--ls-tight);
  line-height: 1;
}
.fb-donut__sub {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--fg-soft);
  margin-top: 6px;
  font-weight: var(--fw-semi);
}

.fb-hbar { display: flex; flex-direction: column; gap: 8px; }
.fb-hbar__row {
  display: grid;
  grid-template-columns: 220px 1fr 40px;
  gap: 14px;
  align-items: center;
}
.fb-hbar__label {
  font-size: 13px;
  color: var(--fg);
  font-weight: var(--fw-semi);
  text-overflow: ellipsis; overflow: hidden; white-space: nowrap;
}
.fb-hbar__track {
  background: var(--byi-navy-50);
  border-radius: var(--r-sm);
  overflow: hidden;
  height: 24px;
  position: relative;
}
.fb-hbar__fill {
  height: 100%;
  border-radius: var(--r-sm);
  transition: width var(--dur-slow) var(--ease-out);
  background: var(--accent);
}
.fb-hbar__count {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 14px;
  color: var(--brand-strong);
  text-align: right;
}

.fb-vbar {
  display: flex; gap: 4px;
  align-items: stretch;
  width: 100%;
}
.fb-vbar__col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.fb-vbar__track {
  flex: 1; width: 100%;
  display: flex; align-items: flex-end;
  background: transparent;
  border-radius: var(--r-xs);
  position: relative;
}
.fb-vbar__fill {
  width: 100%;
  border-radius: var(--r-xs) var(--r-xs) 0 0;
  transition: height var(--dur-slow) var(--ease-out);
  min-height: 2px;
  position: relative;
}
.fb-vbar__value {
  position: absolute;
  top: -16px; left: 50%; transform: translateX(-50%);
  font-size: 10px;
  font-weight: var(--fw-bold);
  color: var(--fg-soft);
  opacity: 0;
  transition: opacity var(--dur-fast);
}
.fb-vbar__col:hover .fb-vbar__value { opacity: 1; }
.fb-vbar__label {
  font-size: 10px;
  color: var(--fg-soft);
  font-weight: var(--fw-semi);
}

.fb-spark { display: block; max-width: 100%; }

.fb-stack {
  display: flex;
  border-radius: var(--r-pill);
  overflow: hidden;
  background: var(--bg-sunken);
}
.fb-stack__seg {
  transition: width var(--dur-slow) var(--ease-out);
}
.fb-stack__seg:not(:last-child) {
  border-right: 2px solid var(--bg-elevated);
}

.fb-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  margin-top: 14px;
}
.fb-legend__item { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.fb-legend__dot { width: 10px; height: 10px; border-radius: 3px; }
.fb-legend__label { color: var(--fg-soft); flex: 1; }
.fb-legend__value { font-weight: var(--fw-bold); color: var(--brand-strong); }

/* ============================================================
   ADHÉRENT — Welcome
   ============================================================ */
.ad-welcome {
  min-height: calc(100vh - 48px);
  background: var(--byi-paper);
  padding: 28px 56px 60px;
  display: flex; flex-direction: column;
}
.ad-welcome__topbar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 32px;
}

.ad-welcome__grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 380px;
  gap: 56px;
  align-items: flex-start;
}

.ad-welcome__title {
  margin: 14px 0 24px;
  color: var(--byi-navy-900);
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  line-height: 1.02;
}

.ad-welcome__lede {
  max-width: 580px;
  margin-bottom: 36px;
}

.ad-welcome__meta {
  display: flex; gap: 36px;
  margin-bottom: 36px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.ad-welcome__meta-item { display: flex; align-items: baseline; gap: 12px; }
.ad-welcome__meta-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: var(--fw-black);
  color: var(--accent);
  letter-spacing: var(--ls-tight);
  line-height: 1;
}
.ad-welcome__meta-lbl {
  font-size: 12px;
  color: var(--fg-soft);
  font-weight: var(--fw-semi);
  line-height: 1.25;
}

.ad-welcome__cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ad-welcome__cta-hint { color: var(--fg-soft); }
.ad-welcome__cta-hint::before { content: "🔗 "; }

.ad-welcome__side {
  display: flex; flex-direction: column; gap: 16px;
  position: sticky; top: 80px;
}
.ad-welcome__panel { padding: 28px 26px; }
.ad-welcome__bullets {
  list-style: none; padding: 0; margin: 18px 0 0;
  display: flex; flex-direction: column; gap: 16px;
}
.ad-welcome__bullets li {
  display: flex; gap: 14px;
  font-size: 14px;
  color: var(--fg);
  font-weight: var(--fw-medium);
  line-height: 1.5;
  align-items: flex-start;
}
.ad-bullet {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: var(--fw-black);
  color: var(--accent);
  letter-spacing: var(--ls-tight);
  line-height: 1;
  width: 32px;
}
.ad-welcome__trust {
  background: var(--byi-navy-100);
  border-radius: var(--r-md);
  padding: 16px 18px;
  font-size: 12px;
  color: var(--byi-navy-800);
  font-weight: var(--fw-semi);
  display: flex; align-items: center; gap: 10px;
  line-height: 1.4;
}
.ad-welcome__trust-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success); flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(46,140,95,0.18);
}

/* ============================================================
   ADHÉRENT — Form
   ============================================================ */
.ad-form { min-height: calc(100vh - 48px); background: var(--byi-paper); }

.ad-form__header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 56px 16px;
}
.ad-form__home {
  background: none; border: none; color: var(--fg-soft);
  font-size: 13px; font-weight: var(--fw-semi);
}
.ad-form__home:hover { color: var(--accent-strong); }

.ad-form__progressbar {
  height: 4px; background: var(--byi-navy-100);
  margin: 0 56px;
  border-radius: var(--r-pill);
  overflow: hidden;
}
.ad-form__progressfill {
  height: 100%; background: var(--accent); transition: width var(--dur-slow) var(--ease-out);
}

.ad-form__shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  padding: 36px 56px 60px;
  max-width: 1280px;
  margin: 0 auto;
}

.ad-form__nav { position: sticky; top: 80px; align-self: start; }
.ad-form__steps { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 4px; }
.ad-form__step {
  display: flex; gap: 12px; align-items: center;
  padding: 10px 12px; border-radius: var(--r-md);
  cursor: pointer; transition: all var(--dur-fast) var(--ease-out);
}
.ad-form__step:hover { background: var(--bg-sunken); }
.ad-form__step.is-current { background: var(--accent-soft); }
.ad-form__step.is-current .ad-form__step-num { color: var(--accent-strong); }
.ad-form__step.is-done .ad-form__step-num { background: var(--accent); color: var(--byi-navy-950); border-color: var(--accent); }
.ad-form__step-num {
  width: 28px; height: 28px;
  border: 1.5px solid var(--border-strong);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: var(--fw-bold);
  font-size: 11px;
  color: var(--fg-soft);
}
.ad-form__step-title { font-size: 13px; font-weight: var(--fw-semi); color: var(--fg); line-height: 1.3; }

.ad-form__main { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 40px 48px 32px; box-shadow: var(--sh-sm); }
.ad-form__page-head { margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.ad-form__title { margin: 6px 0 0; }

.ad-form__body { display: flex; flex-direction: column; gap: 36px; }

.ad-form__footer {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border);
}
.ad-form__footer-right { display: flex; align-items: center; gap: 16px; }

/* Question primitives */
.qf-stack { display: flex; flex-direction: column; gap: 28px; }
.qf-q { display: flex; flex-direction: column; gap: 12px; }
.qf-q__label {
  display: flex; align-items: baseline; gap: 12px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: var(--fw-bold);
  color: var(--brand-strong);
  letter-spacing: var(--ls-tight);
  line-height: 1.3;
}
.qf-q__num {
  font-family: var(--font-display);
  background: var(--byi-navy-100);
  color: var(--byi-navy-800);
  padding: 2px 8px;
  border-radius: var(--r-sm);
  font-size: 11px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.qf-q__newtag {
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-family: var(--font-display);
  font-size: 9px;
  padding: 2px 7px;
  border-radius: var(--r-pill);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  font-weight: var(--fw-bold);
  margin-left: 6px;
  vertical-align: middle;
}
.qf-q__optional { color: var(--fg-muted); font-size: 11px; font-weight: var(--fw-medium); font-family: var(--font-body); }
.qf-q__help { font-size: 12px; color: var(--fg-soft); margin: -4px 0 4px; }

/* Inputs */
.qf-input { display: flex; flex-direction: column; gap: 6px; }
.qf-input > span {
  font-size: 11px; font-weight: var(--fw-bold);
  color: var(--fg-soft); text-transform: uppercase; letter-spacing: var(--ls-wide);
}
.qf-input input,
.qf-select,
.qf-textarea {
  padding: 12px 14px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--border);
  background: var(--bg-elevated);
  font-size: 14px;
  font-weight: var(--fw-medium);
  color: var(--fg);
  transition: all var(--dur-fast) var(--ease-out);
  outline: none;
  width: 100%;
}
.qf-input input:focus, .qf-select:focus, .qf-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.qf-textarea { resize: vertical; font-family: var(--font-body); }
.qf-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* Radio */
.qf-radio { display: flex; gap: 10px; }
.qf-radio--stack { flex-direction: column; }
.qf-radio--row { flex-wrap: wrap; }
.qf-radio__opt {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  cursor: pointer; flex: 1; min-width: 140px;
  transition: all var(--dur-fast) var(--ease-out);
}
.qf-radio__opt input { display: none; }
.qf-radio__dot {
  width: 18px; height: 18px;
  border: 1.5px solid var(--border-strong);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  transition: all var(--dur-fast);
}
.qf-radio__label { font-size: 13px; font-weight: var(--fw-semi); }
.qf-radio__opt:hover { background: var(--bg-sunken); }
.qf-radio__opt.is-on { border-color: var(--accent); background: var(--accent-soft); }
.qf-radio__opt.is-on .qf-radio__dot { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 3px var(--bg-elevated); }
.qf-radio__opt.is-on .qf-radio__label { color: var(--accent-strong); }

/* Checkbox grid */
.qf-check {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.qf-check__opt {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all var(--dur-fast);
}
.qf-check__opt input { display: none; }
.qf-check__box {
  width: 20px; height: 20px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-xs);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: var(--fw-bold);
  flex-shrink: 0;
  color: transparent;
  transition: all var(--dur-fast);
}
.qf-check__label { font-size: 13px; font-weight: var(--fw-semi); }
.qf-check__opt:hover { background: var(--bg-sunken); }
.qf-check__opt.is-on { border-color: var(--accent); background: var(--accent-soft); }
.qf-check__opt.is-on .qf-check__box { background: var(--accent); border-color: var(--accent); color: var(--byi-navy-950); }
.qf-check__opt.is-on .qf-check__label { color: var(--accent-strong); }

/* Slider */
.qf-slider { display: flex; flex-direction: column; gap: 10px; padding: 8px 4px; }
.qf-slider input[type=range] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px;
  background: linear-gradient(to right, var(--accent) 0%, var(--accent) var(--p, 50%), var(--byi-navy-100) var(--p, 50%));
  border-radius: var(--r-pill);
  outline: none;
}
.qf-slider input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--byi-navy-900);
  border: 3px solid var(--bg-elevated);
  box-shadow: var(--sh-md);
  cursor: pointer;
}
.qf-slider input[type=range]::-moz-range-thumb {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--byi-navy-900);
  border: 3px solid var(--bg-elevated);
  box-shadow: var(--sh-md);
  cursor: pointer;
}
.qf-slider__scale {
  display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px;
}
.qf-slider__tick {
  text-align: center;
  font-family: var(--font-display);
  font-size: 11px; font-weight: var(--fw-bold);
  color: var(--fg-muted);
  padding: 4px 0;
  border-radius: var(--r-xs);
  background: var(--bg-sunken);
  transition: all var(--dur-fast);
}
.qf-slider__tick.is-on { background: var(--accent-soft); color: var(--accent-strong); }
.qf-slider__readout {
  font-size: 13px;
  color: var(--fg-soft);
  text-align: right;
  font-family: var(--font-display);
  font-weight: var(--fw-medium);
}
.qf-slider__readout strong {
  color: var(--brand-strong);
  font-size: 18px;
  font-weight: var(--fw-black);
}

/* Recap card */
.ad-form__recap { background: var(--byi-navy-50); border-color: var(--byi-navy-100); }
.ad-form__recap-list {
  list-style: none; padding: 0; margin: 12px 0 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.ad-form__recap-list li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 13px;
}
.ad-form__recap-list span { color: var(--fg-soft); }
.ad-form__recap-list strong { color: var(--brand-strong); font-family: var(--font-display); }
.ad-form__recap-trust { color: var(--fg-soft) !important; }

/* ============================================================
   ADHÉRENT — Thank you
   ============================================================ */
.ad-thanks {
  min-height: calc(100vh - 48px);
  background: var(--byi-paper);
  display: flex; align-items: center; justify-content: center;
  padding: 40px 24px;
}
.ad-thanks__inner {
  max-width: 640px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.ad-thanks__check {
  color: var(--success);
  display: flex; align-items: center; justify-content: center;
  width: 96px; height: 96px;
  border-radius: 50%;
  background: rgba(46,140,95,0.10);
  margin-bottom: 8px;
}
.ad-thanks__title { margin: 4px 0 0; }
.ad-thanks__refs {
  display: flex; gap: 56px;
  padding: 18px 0; margin: 8px 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.ad-thanks__refs > div { display: flex; flex-direction: column; gap: 4px; }
.ad-thanks__refs span {
  font-size: 11px; font-weight: var(--fw-bold);
  color: var(--fg-muted); text-transform: uppercase; letter-spacing: var(--ls-eyebrow);
}
.ad-thanks__refs strong { font-family: var(--font-display); color: var(--brand-strong); }
.ad-thanks__cta { display: flex; gap: 16px; }

/* ============================================================
   ADMIN — Login
   ============================================================ */
.ad-login {
  min-height: calc(100vh - 48px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--byi-paper);
}
.ad-login__panel {
  padding: 64px 80px;
  display: flex; flex-direction: column; gap: 24px; justify-content: center;
  max-width: 560px;
}
.ad-login__brand { display: flex; flex-direction: column; gap: 14px; }
.ad-login__title { margin: 0; }
.ad-login__form { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.ad-login__check { font-size: 12px; color: var(--fg-soft); display: flex; gap: 8px; align-items: center; }
.ad-login__hint { background: none; border: none; color: var(--accent-strong); font-size: 12px; font-weight: var(--fw-semi); text-align: left; padding: 0; }
.ad-login__hintbox {
  background: var(--byi-navy-50);
  border-radius: var(--r-md);
  padding: 12px 14px;
  font-size: 12px; color: var(--fg-soft);
  line-height: 1.5;
}

.ad-login__side {
  background: var(--byi-navy-900);
  color: var(--fg-on-dark);
  padding: 80px;
  display: flex; flex-direction: column; gap: 24px; justify-content: center;
  position: relative; overflow: hidden;
}
.ad-login__side-title { color: var(--fg-on-dark); font-size: clamp(2rem, 3.5vw, 3rem); margin: 0; line-height: 1.1; }
.ad-login__bullets { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; max-width: 380px; }
.ad-login__bullets li {
  font-size: 16px;
  color: rgba(255,255,255,0.88);
  padding-left: 24px;
  position: relative;
  font-weight: var(--fw-medium);
}
.ad-login__bullets li::before {
  content: "›"; position: absolute; left: 0;
  color: var(--accent);
  font-weight: var(--fw-black);
  font-family: var(--font-display);
}
.ad-login__shape {
  position: absolute; bottom: -120px; right: -120px;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(244,148,21,0.45), transparent 60%);
  pointer-events: none;
}

/* ============================================================
   ADMIN — Shell
   ============================================================ */
.adm { min-height: calc(100vh - 48px); background: var(--byi-paper); }
.adm__top {
  display: flex; align-items: center; gap: 40px;
  padding: 16px 36px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 48px; z-index: 50;
}
.adm__brand { display: flex; align-items: center; gap: 14px; }
.adm__brand-divider { width: 1px; height: 18px; background: var(--border-strong); }
.adm__nav { display: flex; gap: 4px; flex: 1; }
.adm__nav-item {
  background: none; border: none;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  font-size: 13px; font-weight: var(--fw-semi);
  color: var(--fg-soft);
  transition: all var(--dur-fast);
}
.adm__nav-item:hover { color: var(--brand-strong); background: var(--bg-sunken); }
.adm__nav-item.is-active { background: var(--brand-strong); color: var(--fg-on-dark); }

.adm__user { display: flex; align-items: center; gap: 12px; }
.adm__user-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent);
  color: var(--byi-navy-950);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: var(--fw-black);
  font-size: 13px;
}
.adm__user-info { display: flex; flex-direction: column; gap: 0; line-height: 1.2; }
.adm__user-info strong { font-size: 13px; color: var(--brand-strong); }
.adm__user-info span { font-size: 11px; color: var(--fg-soft); }
.adm__logout {
  background: none; border: 1px solid var(--border);
  border-radius: var(--r-md);
  width: 32px; height: 32px;
  color: var(--fg-soft);
  display: flex; align-items: center; justify-content: center;
}
.adm__logout:hover { background: var(--bg-sunken); color: var(--danger); }

.adm__main { padding: 32px 36px 48px; }

/* ============================================================
   DASHBOARD
   ============================================================ */
.dash { display: flex; flex-direction: column; gap: 24px; max-width: 1500px; margin: 0 auto; }

.dash__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.dash__head-actions { display: flex; gap: 10px; align-items: center; }
.dash__title { margin: 4px 0 0; }

.dash__kpis {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 16px;
}
.kpi { display: flex; flex-direction: column; gap: 8px; }
.kpi__head { display: flex; justify-content: space-between; align-items: center; }
.kpi__body { display: flex; gap: 20px; align-items: center; }
.kpi__notes { display: flex; flex-direction: column; gap: 8px; }
.kpi__notes p { margin: 0; font-size: 13px; color: var(--fg); line-height: 1.5; }
.kpi__notes strong { color: var(--brand-strong); font-family: var(--font-display); font-size: 15px; }
.kpi__hero-num {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: var(--fw-black);
  color: var(--brand-strong);
  letter-spacing: var(--ls-tight);
  line-height: 1;
  margin-top: 4px;
}
.kpi__hero-suffix { font-size: 22px; color: var(--fg-soft); margin-left: 4px; }
.kpi__legend { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.kpi__legend-row { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--fg); }
.kpi__legend-row > span:nth-child(2) { flex: 1; color: var(--fg-soft); }
.kpi__legend-row strong { color: var(--brand-strong); font-family: var(--font-display); }
.kpi__legend-pill { width: 10px; height: 10px; border-radius: 3px; }
.kpi__sparklabels {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--fg-muted);
  margin-top: 6px;
}

/* Panels */
.dash__panel { display: flex; flex-direction: column; gap: 16px; }
.dash__panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.dash__panel-head h3 { margin: 4px 0 0; }
.dash__panel-sublabel {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 12px;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--fg-soft);
  margin-bottom: 12px;
}

.dash__row { display: grid; gap: 16px; }
.dash__row--2col { grid-template-columns: 1fr 1fr; }
.dash__row--3col { grid-template-columns: 1fr 1fr 1fr; }

.dash__split {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.dash__split-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: var(--fw-black);
  color: var(--accent-strong);
  letter-spacing: var(--ls-tight);
  line-height: 1;
}

/* Training mega panel */
.dash__training {
  background: linear-gradient(135deg, #FFF8EB 0%, var(--bg-elevated) 50%);
  border: 1px solid var(--byi-orange-100);
  display: flex; flex-direction: column; gap: 24px;
}
.dash__training-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 36px;
}
.dash__training-side { display: flex; flex-direction: column; gap: 24px; }
.dash__budget { display: flex; flex-direction: column; gap: 8px; }
.dash__budget-row { display: grid; grid-template-columns: 130px 1fr 30px; gap: 12px; align-items: center; }
.dash__budget-lbl { font-size: 12px; color: var(--fg); font-weight: var(--fw-semi); }
.dash__budget-bar { height: 16px; background: var(--bg-elevated); border-radius: var(--r-sm); overflow: hidden; }
.dash__budget-fill { height: 100%; border-radius: var(--r-sm); transition: width var(--dur-slow) var(--ease-out); }
.dash__budget-val { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 13px; color: var(--brand-strong); text-align: right; }

.dash__training-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.dash__training-block {}
.dash__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dash__chips-item {
  background: var(--bg-elevated);
  border: 1px solid var(--byi-orange-100);
  border-radius: var(--r-md);
  padding: 10px 12px;
  display: flex; flex-direction: column; gap: 2px;
  flex: 1; min-width: 80px;
}
.dash__chips-item strong {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: var(--fw-black);
  color: var(--accent-strong);
  line-height: 1;
}
.dash__chips-item span { font-size: 11px; color: var(--fg-soft); font-weight: var(--fw-semi); }
.dash__chips-item--alt strong { color: var(--byi-navy-800); }

.dash__training-cta {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 22px;
  background: var(--bg-elevated);
  border: 1px solid var(--byi-orange-100);
  border-radius: var(--r-md);
  font-size: 14px;
  line-height: 1.5;
  gap: 24px;
}
.dash__training-cta strong { color: var(--brand-strong); }

/* Satisfaction & policy */
.dash__sat-num {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: var(--fw-black);
  color: var(--success);
  letter-spacing: var(--ls-tight);
  line-height: 1;
  margin-top: 6px;
}
.dash__policy { display: flex; gap: 14px; align-items: flex-end; height: 180px; }
.dash__policy-row { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.dash__policy-bar {
  width: 100%; height: 150px;
  background: var(--byi-navy-50);
  border-radius: var(--r-md);
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.dash__policy-fill {
  width: 100%;
  border-radius: var(--r-md);
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 10px;
  color: var(--bg-elevated);
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: 18px;
  transition: height var(--dur-slow) var(--ease-out);
}
.dash__policy-lbl { font-size: 12px; font-weight: var(--fw-semi); color: var(--fg); text-align: center; line-height: 1.3; }

/* Tables */
.dash__table { width: 100%; border-collapse: collapse; font-size: 13px; }
.dash__table thead th {
  text-align: left;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--fg-soft);
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  font-weight: var(--fw-bold);
}
.dash__table tbody tr {
  cursor: pointer;
  transition: background var(--dur-fast);
}
.dash__table tbody tr:hover { background: var(--byi-navy-50); }
.dash__table tbody td { padding: 14px 12px; border-bottom: 1px solid var(--border); color: var(--fg); }
.dash__table tbody td strong { color: var(--brand-strong); font-family: var(--font-display); }
.dash__table--full { font-size: 13px; }
.dash__table--full tbody td { padding: 16px 12px; }
.dash__table-arrow { color: var(--fg-muted); font-family: var(--font-display); }
.dash__table tbody tr:hover .dash__table-arrow { color: var(--accent); }
.dash__niveau { font-family: var(--font-display); font-weight: var(--fw-bold); color: var(--brand-strong); }
.dash__niveau small { color: var(--fg-muted); font-weight: var(--fw-medium); }

.usage-dot { display: inline-flex; align-items: center; gap: 7px; font-weight: var(--fw-semi); font-size: 12px; }
.usage-dot__c { width: 8px; height: 8px; border-radius: 50%; }

/* ============================================================
   RESPONDENTS LIST
   ============================================================ */
.resp { display: flex; flex-direction: column; gap: 24px; max-width: 1500px; margin: 0 auto; }
.resp__filters {
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  padding: 16px 18px;
  background: var(--bg-elevated);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
}
.resp__search {
  flex: 1; min-width: 240px;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-size: 13px;
  background: var(--bg);
  outline: none;
}
.resp__search:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.resp__tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.resp__tab {
  background: none; border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: 12px; font-weight: var(--fw-semi);
  color: var(--fg-soft);
  transition: all var(--dur-fast);
}
.resp__tab:hover { background: var(--bg-sunken); }
.resp__tab.is-active { background: var(--brand-strong); color: var(--fg-on-dark); border-color: var(--brand-strong); }

.resp__table-wrap { padding: 0; overflow: hidden; }
.resp__table-wrap .dash__table thead th { padding: 16px 16px; }
.resp__table-wrap .dash__table tbody td { padding: 16px 16px; }

/* ============================================================
   RESPONDENT DETAIL
   ============================================================ */
.rd { max-width: 1300px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.rd__head { display: flex; justify-content: space-between; align-items: center; }
.rd__back { background: none; border: none; color: var(--accent-strong); font-weight: var(--fw-semi); font-size: 13px; }
.rd__nav { display: flex; gap: 6px; }
.rd__nav button {
  background: var(--bg-elevated); border: 1px solid var(--border);
  padding: 7px 14px; border-radius: var(--r-pill); font-size: 12px; font-weight: var(--fw-semi); color: var(--fg);
}
.rd__nav button:hover { border-color: var(--accent); color: var(--accent-strong); }

.rd__top {
  display: flex; justify-content: space-between; align-items: flex-end;
  padding: 24px 28px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  gap: 24px;
}
.rd__title { margin: 4px 0 8px; }
.rd__meta { display: flex; gap: 10px; font-size: 13px; color: var(--fg-soft); flex-wrap: wrap; }
.rd__head-actions { display: flex; gap: 10px; align-items: center; }

.rd__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  grid-template-areas:
    "usage sat"
    "intent intent";
}
.rd__grid > :nth-child(1) { grid-area: usage; }
.rd__grid > :nth-child(2) { grid-area: sat; }
.rd__grid > :nth-child(3) { grid-area: intent; }

.rd__panel { display: flex; flex-direction: column; gap: 20px; }
.rd__panel--accent {
  background: linear-gradient(135deg, #FFF8EB 0%, var(--bg-elevated) 60%);
  border-color: var(--byi-orange-100);
}
.rd__big {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: var(--fw-bold);
  color: var(--brand-strong);
  margin-top: 4px;
}
.rd__section { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 1px dashed var(--border); }
.rd__section-title {
  font-size: 11px;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--fg-soft);
}
.rd__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rd__quote {
  font-style: italic;
  background: var(--byi-navy-50);
  border-radius: var(--r-md);
  padding: 14px 16px;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  border-left: 3px solid var(--accent);
}
.rd__skill { display: flex; align-items: center; gap: 4px; }
.rd__skill-bar {
  width: 22px; height: 14px;
  background: var(--byi-navy-50);
  border-radius: var(--r-xs);
}
.rd__skill-bar.is-on { background: var(--accent); }
.rd__skill strong {
  margin-left: 12px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: var(--fw-black);
  color: var(--brand-strong);
}

.rd__intent { display: flex; flex-direction: column; gap: 18px; }
.rd__intent > div > span:first-child {
  display: block;
  font-size: 11px;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--fg-soft);
  margin-bottom: 8px;
}
.rd__intent-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  background: var(--bg-elevated);
  border-radius: var(--r-md);
  padding: 18px;
  border: 1px solid var(--byi-orange-100);
}
.rd__intent-grid > div { display: flex; flex-direction: column; gap: 4px; }
.rd__intent-grid strong { font-family: var(--font-display); font-size: 15px; color: var(--brand-strong); font-weight: var(--fw-bold); }

/* ============================================================
   INVITATIONS
   ============================================================ */
.inv { display: flex; flex-direction: column; gap: 24px; max-width: 1500px; margin: 0 auto; }
.inv__kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.inv__toolbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-sunken);
}
.inv__bulk { display: flex; align-items: center; gap: 14px; font-size: 12px; }
.inv__bulk button { background: none; border: none; color: var(--accent-strong); font-weight: var(--fw-semi); font-size: 12px; }
.inv__relance {
  background: var(--byi-navy-50);
  border: 1px solid var(--border);
  color: var(--byi-navy-800);
  padding: 6px 12px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: var(--fw-bold);
  font-family: var(--font-display);
}
.inv__relance:hover { background: var(--accent); border-color: var(--accent); color: var(--byi-navy-950); }

.status-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: var(--fw-semi);
}
.status-chip > span {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 18%, transparent);
}

/* ============================================================
   Responsive — narrower viewports
   ============================================================ */
@media (max-width: 1280px) {
  .dash__kpis { grid-template-columns: 1fr 1fr; }
  .dash__row--3col { grid-template-columns: 1fr 1fr; }
  .dash__training-grid { grid-template-columns: 1fr; }
  .inv__kpis { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1000px) {
  .ad-welcome { padding: 28px 32px 60px; }
  .ad-welcome__grid { grid-template-columns: 1fr; gap: 32px; }
  .ad-form__shell { grid-template-columns: 1fr; padding: 24px; }
  .ad-form__main { padding: 24px; }
  .ad-login { grid-template-columns: 1fr; }
  .ad-login__panel, .ad-login__side { padding: 40px; }
  .dash__row--2col, .dash__row--3col { grid-template-columns: 1fr; }
  .dash__kpis { grid-template-columns: 1fr 1fr; }
  .qf-check, .qf-grid-2 { grid-template-columns: 1fr; }
  .rd__grid { grid-template-areas: "usage" "sat" "intent"; grid-template-columns: 1fr; }
  .rd__intent-grid { grid-template-columns: repeat(2, 1fr); }
  .fb-hbar__row { grid-template-columns: 140px 1fr 30px; }
  .inv__kpis { grid-template-columns: repeat(2, 1fr); }
}


/* ============================================================
   v2 ADDITIONS — questionnaire FESPA × BoostYourIA
   ============================================================ */

/* Question header + sub */
.qf-q__header { display: flex; flex-direction: column; gap: 4px; }
.qf-q__sub {
  font-size: 12px;
  color: var(--fg-soft);
  font-weight: var(--fw-medium);
  margin-left: 28px;
  line-height: 1.4;
}
.qf-q__required { color: var(--danger); font-weight: var(--fw-bold); margin-left: 4px; }
.qf-input--full { grid-column: 1 / -1; }
.qf-input-inline {
  margin-top: 10px;
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--accent);
  background: var(--accent-soft);
  font-size: 13px;
  font-weight: var(--fw-medium);
  outline: none;
}
.qf-input-inline:focus { box-shadow: 0 0 0 4px var(--accent-soft); }

/* Check single column variant */
.qf-check--cols1 { grid-template-columns: 1fr; }
.qf-check--cols2 { grid-template-columns: 1fr 1fr; }

/* Check group (Q7 — grouped tools) */
.qf-checkgroup { display: flex; flex-direction: column; gap: 18px; }
.qf-checkgroup__block {
  padding: 16px 18px;
  background: var(--byi-navy-50);
  border-radius: var(--r-md);
  border: 1px solid var(--byi-navy-100);
}
.qf-checkgroup__title {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--byi-navy-800);
  margin-bottom: 10px;
}
.qf-checkgroup__block .qf-check__opt { background: var(--bg-elevated); }
.qf-q__inline-extras { margin-top: 14px; }

/* OPCO double column */
.qf-opco { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.qf-opco__col {
  padding: 16px 18px;
  background: var(--byi-navy-50);
  border-radius: var(--r-md);
  border: 1px solid var(--byi-navy-100);
}
.qf-opco__title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: var(--fw-bold);
  color: var(--byi-navy-800);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--byi-navy-100);
}
.qf-opco__col .qf-check__opt { background: var(--bg-elevated); padding: 9px 12px; }

/* Licences (Q7 bis) */
.qf-licences {
  margin-top: 16px;
  background: var(--byi-orange-50);
  border-radius: var(--r-md);
  border: 1px solid var(--byi-orange-100);
  padding: 16px 18px;
}
.qf-licences__title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: var(--fw-bold);
  color: var(--accent-strong);
  margin-bottom: 12px;
}
.qf-licences__table { width: 100%; border-collapse: collapse; font-size: 13px; }
.qf-licences__table thead th {
  text-align: left;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--fg-soft);
  font-weight: var(--fw-bold);
  padding: 8px 10px;
  border-bottom: 1px solid var(--byi-orange-100);
}
.qf-licences__table tbody td { padding: 8px 10px; border-bottom: 1px dashed var(--byi-orange-100); }
.qf-licences__table tbody tr.is-on { background: rgba(255,255,255,0.7); }
.qf-licences__check {
  width: 24px; height: 24px;
  border-radius: var(--r-xs);
  border: 1.5px solid var(--border-strong);
  background: var(--bg-elevated);
  cursor: pointer;
  font-weight: var(--fw-bold);
  color: transparent;
  transition: all var(--dur-fast);
}
.qf-licences__check.is-on { background: var(--accent); border-color: var(--accent); color: var(--byi-navy-950); }
.qf-licences__num {
  width: 80px;
  padding: 6px 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 13px;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  background: var(--bg-elevated);
  outline: none;
}
.qf-licences__num:disabled { background: var(--bg-sunken); color: var(--fg-muted); }
.qf-licences__num:focus { border-color: var(--accent); }
.qf-licences__other {
  display: flex; align-items: center; gap: 10px;
}
.qf-licences__other > span {
  font-weight: var(--fw-semi);
  color: var(--fg);
  flex-shrink: 0;
}
.qf-licences__other-input {
  flex: 1;
  padding: 7px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 13px;
  background: var(--bg-elevated);
  outline: none;
}
.qf-licences__other-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* Services + headcount (Q12 bis) */
.qf-services {
  background: var(--byi-navy-50);
  border-radius: var(--r-md);
  border: 1px solid var(--byi-navy-100);
  padding: 8px;
}
.qf-services__row {
  display: grid; grid-template-columns: 1fr 120px;
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
  border-bottom: 1px dashed var(--byi-navy-100);
}
.qf-services__row:last-child { border-bottom: none; }
.qf-services__lbl { font-size: 13px; font-weight: var(--fw-semi); color: var(--fg); }
.qf-services__row input {
  padding: 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 14px;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  text-align: center;
  background: var(--bg-elevated);
  outline: none;
}
.qf-services__row input:focus { border-color: var(--accent); }
.qf-services__row--total {
  background: var(--byi-navy-800);
  color: var(--fg-on-dark);
  border-radius: var(--r-md);
  margin-top: 4px;
}
.qf-services__row--total .qf-services__lbl {
  color: var(--fg-on-dark);
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wide);
  font-size: 12px;
  text-transform: uppercase;
}
.qf-services__total {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: var(--fw-black);
  color: var(--accent);
  text-align: center;
  line-height: 1;
}

/* Themes ranking (Q13) */
.qf-themes { display: flex; flex-direction: column; gap: 8px; }
.qf-theme {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-elevated);
  text-align: left;
  cursor: pointer;
  transition: all var(--dur-fast);
}
.qf-theme:hover { background: var(--bg-sunken); }
.qf-theme.is-on { border-color: var(--accent); background: var(--accent-soft); }
.qf-theme__rank {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: 15px;
  color: var(--fg-muted);
  background: var(--bg-elevated);
  flex-shrink: 0;
  transition: all var(--dur-fast);
}
.qf-theme__rank.is-on {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--byi-navy-950);
}
.qf-theme__label { font-size: 14px; font-weight: var(--fw-semi); color: var(--fg); }
.qf-theme.is-on .qf-theme__label { color: var(--accent-strong); }

/* Past training detail box (Q11 bis) */
.qf-past {
  margin-top: 14px;
  padding: 18px 20px;
  background: var(--byi-cyan-100);
  border: 1px solid var(--byi-cyan-400);
  border-radius: var(--r-md);
}
.qf-past__title {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 13px;
  color: var(--byi-navy-800);
  margin-bottom: 12px;
}
.qf-past .qf-input input { background: var(--bg-elevated); }

/* Skip note (conditional logic) */
.qf-skip-note {
  display: flex; gap: 10px; align-items: flex-start;
  margin-top: 12px;
  padding: 12px 14px;
  background: var(--byi-navy-50);
  border-left: 3px solid var(--byi-navy-300);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: 12px;
  color: var(--fg-soft);
  line-height: 1.5;
}
.qf-skip-note__icon {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  color: var(--byi-navy-700);
  flex-shrink: 0;
}
.qf-skip-note strong { color: var(--brand-strong); }

/* Sidebar titles in form steps */
.ad-form__step-titles { display: flex; flex-direction: column; gap: 2px; }
.ad-form__step-bloc {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--fg-muted);
  line-height: 1;
}
.ad-form__step.is-current .ad-form__step-bloc { color: var(--accent-strong); }

/* ============================================================
   v2 DASHBOARD ADDITIONS
   ============================================================ */
.dash__panel--opco { grid-column: span 2; }
.dash__opco {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.dash__opco-col {
  background: var(--byi-navy-50);
  border-radius: var(--r-md);
  padding: 14px 16px;
  border: 1px solid var(--byi-navy-100);
}

/* Tool groups widget */
.dash__tool-groups { display: flex; flex-direction: column; gap: 14px; }
.dash__tool-group { display: flex; flex-direction: column; gap: 6px; }
.dash__tool-group-title {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--fg-soft);
}
.dash__tool-group .fb-hbar__row {
  grid-template-columns: 180px 1fr 30px;
}

/* Licences widget */
.dash__lic {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: flex-start;
}
.dash__lic-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.dash__lic-table thead th {
  text-align: left;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--fg-soft);
  font-weight: var(--fw-bold);
  padding: 6px 8px;
  border-bottom: 1px solid var(--border);
}
.dash__lic-table tbody td { padding: 8px; border-bottom: 1px dashed var(--border); font-size: 13px; }
.dash__lic-table tbody td strong { color: var(--brand-strong); font-family: var(--font-display); }
.dash__lic-seats {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  color: var(--accent-strong);
  font-size: 14px;
  background: var(--accent-soft);
  padding: 2px 10px;
  border-radius: var(--r-pill);
}

/* Intent funnel */
.dash__training-headline {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--byi-orange-100);
  border-radius: var(--r-md);
  padding: 12px 18px;
  font-size: 13px; color: var(--fg);
}
.dash__training-headline-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: var(--fw-black);
  color: var(--accent-strong);
  letter-spacing: var(--ls-tight);
  line-height: 1;
}
.dash__intent-funnel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.dash__intent-step {
  padding: 16px 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  display: flex; flex-direction: column; gap: 6px;
  border-left: 4px solid var(--byi-navy-300);
}
.dash__intent-step.is-pos {
  border-left-color: var(--accent);
  background: var(--accent-soft);
}
.dash__intent-step-pct {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: var(--fw-black);
  color: var(--brand-strong);
  letter-spacing: var(--ls-tight);
  line-height: 1;
}
.dash__intent-step.is-pos .dash__intent-step-pct { color: var(--accent-strong); }
.dash__intent-step-label {
  font-size: 12px;
  font-weight: var(--fw-semi);
  color: var(--fg);
  line-height: 1.3;
}
.dash__intent-step-count {
  font-size: 11px;
  color: var(--fg-soft);
}

/* Maturité formation */
.dash__matur { display: flex; gap: 18px; align-items: flex-start; }
.dash__matur-side { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.dash__matur-side p { margin: 0; font-size: 13px; line-height: 1.5; }
.dash__matur-side strong { font-family: var(--font-display); color: var(--brand-strong); }
.dash__matur-domains { margin-top: 4px; }
.dash__matur-domains .fb-hbar__row { grid-template-columns: 110px 1fr 26px; gap: 8px; }
.dash__matur-domains .fb-hbar__label { font-size: 11px; }
.dash__matur-domains .fb-hbar__count { font-size: 12px; }

/* Respondent detail v2 */
.rd__lic { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 13px; }
.rd__lic tbody td { padding: 8px 10px; border-bottom: 1px dashed var(--border); }
.rd__lic tbody td strong {
  font-family: var(--font-display);
  color: var(--accent-strong);
  background: var(--accent-soft);
  padding: 2px 10px;
  border-radius: var(--r-pill);
}
.rd__services {
  width: 100%; border-collapse: collapse; font-size: 13px;
  background: var(--bg-elevated);
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--byi-orange-100);
}
.rd__services tbody td { padding: 9px 14px; border-bottom: 1px dashed var(--byi-orange-100); }
.rd__services tbody td:last-child { text-align: right; }
.rd__services tbody td strong { font-family: var(--font-display); color: var(--accent-strong); }
.rd__services-total { background: var(--byi-navy-800); }
.rd__services-total td { color: var(--fg-on-dark); border-bottom: none; }
.rd__services-total td strong { color: var(--accent); font-size: 16px; }
.rd__themes { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 8px; }
.rd__themes li {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  background: var(--bg-elevated);
  border-radius: var(--r-md);
  border: 1px solid var(--byi-orange-100);
  font-size: 13px;
  font-weight: var(--fw-semi);
  color: var(--fg);
}
.rd__theme-rank {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--byi-navy-950);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: var(--fw-black);
  font-size: 13px;
  flex-shrink: 0;
}
.rd__past {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
  background: var(--byi-cyan-100);
  border-radius: var(--r-md);
  padding: 14px 16px;
}
.rd__past > div { display: flex; flex-direction: column; gap: 2px; }
.rd__past span { font-size: 11px; color: var(--byi-navy-800); font-family: var(--font-display); font-weight: var(--fw-bold); letter-spacing: var(--ls-wide); text-transform: uppercase; }
.rd__past strong { font-family: var(--font-display); color: var(--byi-navy-900); font-size: 14px; }

.rd__panel--comment { grid-column: 1 / -1; }
.fb-chip--danger-soft {
  background: rgba(255,107,107,0.12);
  color: #B23E3E;
  text-transform: none;
  letter-spacing: 0.01em;
  font-weight: var(--fw-semi);
  font-family: var(--font-body);
  padding: 5px 12px;
}

/* Responsive */
@media (max-width: 1280px) {
  .dash__panel--opco { grid-column: auto; }
  .dash__intent-funnel { grid-template-columns: 1fr 1fr; }
  .dash__lic { grid-template-columns: 1fr; }
  .dash__matur { flex-direction: column; align-items: center; text-align: center; }
}
@media (max-width: 1000px) {
  .qf-opco, .qf-grid-2 { grid-template-columns: 1fr; }
  .qf-services__row { grid-template-columns: 1fr 100px; }
  .rd__past { grid-template-columns: 1fr; }
  .dash__intent-funnel { grid-template-columns: 1fr; }
  .dash__opco { grid-template-columns: 1fr; }
}


/* ============================================================
   Q12bis & Q13 — Plan de formation par service (form side)
   ============================================================ */
.qf-plan { display: flex; flex-direction: column; gap: 10px; }

.qf-plan__row {
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-elevated);
  padding: 14px 16px;
  transition: all var(--dur-fast) var(--ease-out);
}
.qf-plan__row.is-on {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--bg-elevated) 60%);
}

.qf-plan__head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px dashed var(--border);
}
.qf-plan__service {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 14px;
  color: var(--brand-strong);
}
.qf-plan__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border-strong);
  flex-shrink: 0;
}
.qf-plan__row.is-on .qf-plan__dot { background: var(--accent); }

.qf-plan__count {
  display: flex; align-items: center; gap: 10px;
}
.qf-plan__count > span {
  font-size: 11px;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--fg-soft);
}
.qf-plan__count input {
  width: 70px;
  padding: 8px 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 16px;
  text-align: center;
  background: var(--bg-elevated);
  outline: none;
}
.qf-plan__count input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.qf-plan__themes-label {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--fg-soft);
  margin-bottom: 8px;
}
.qf-plan__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.qf-plan__chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--border);
  background: var(--bg-elevated);
  font-size: 12px;
  font-weight: var(--fw-semi);
  color: var(--fg);
  cursor: pointer;
  transition: all var(--dur-fast);
  text-align: left;
}
.qf-plan__chip:hover { background: var(--bg-sunken); }
.qf-plan__chip.is-on {
  background: var(--accent);
  color: var(--byi-navy-950);
  border-color: var(--accent);
}
.qf-plan__chip-box {
  width: 14px; height: 14px;
  border-radius: var(--r-xs);
  border: 1.5px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px;
  font-weight: var(--fw-bold);
  color: transparent;
  background: var(--bg-elevated);
  flex-shrink: 0;
  transition: all var(--dur-fast);
}
.qf-plan__chip.is-on .qf-plan__chip-box {
  background: var(--byi-navy-950);
  border-color: var(--byi-navy-950);
  color: var(--accent);
}

.qf-plan__totalrow {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--byi-navy-800);
  color: var(--fg-on-dark);
  padding: 14px 22px;
  border-radius: var(--r-md);
  margin-top: 4px;
}
.qf-plan__total-lbl {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}
.qf-plan__total {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: var(--fw-black);
  color: var(--accent);
  letter-spacing: var(--ls-tight);
  line-height: 1;
}

/* ============================================================
   Respondent detail — plan de formation
   ============================================================ */
.rd__plan {
  display: flex; flex-direction: column; gap: 8px;
  margin-top: 8px;
}
.rd__plan-card {
  background: var(--bg-elevated);
  border: 1px solid var(--byi-orange-100);
  border-radius: var(--r-md);
  padding: 12px 14px;
}
.rd__plan-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.rd__plan-head strong {
  font-family: var(--font-display);
  color: var(--brand-strong);
  font-size: 14px;
}
.rd__plan-num {
  background: var(--accent);
  color: var(--byi-navy-950);
  padding: 3px 12px;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 12px;
}
.rd__plan-modules { display: flex; flex-wrap: wrap; gap: 6px; }
.rd__plan-total {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--byi-navy-800);
  color: var(--fg-on-dark);
  padding: 10px 16px;
  border-radius: var(--r-md);
  margin-top: 4px;
}
.rd__plan-total > span {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}
.rd__plan-total > strong {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--accent);
}

/* ============================================================
   Dashboard — modules par service
   ============================================================ */
.dash__modservice {
  display: flex; flex-direction: column; gap: 8px;
}
.dash__modservice-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 12px;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
}
.dash__modservice-row:last-child { border-bottom: none; }
.dash__modservice-svc {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: var(--fw-bold);
  color: var(--brand-strong);
  line-height: 1.3;
}
.dash__modservice-modules { display: flex; flex-wrap: wrap; gap: 4px; }
.dash__modservice-mod {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--byi-orange-100);
  border-radius: var(--r-pill);
  padding: 3px 9px 3px 3px;
  font-size: 11px;
  font-weight: var(--fw-semi);
  color: var(--fg-soft);
}
.dash__modservice-mod.is-top {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-strong);
}
.dash__modservice-mod-pill {
  background: var(--byi-navy-100);
  color: var(--byi-navy-800);
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 11px;
  padding: 2px 7px;
  border-radius: var(--r-pill);
  min-width: 22px;
  text-align: center;
}
.dash__modservice-mod.is-top .dash__modservice-mod-pill {
  background: var(--accent);
  color: var(--byi-navy-950);
}


/* Side-by-side: Apprenants par module + Modules par service */
.dash__mod-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 18px;
  background: var(--byi-navy-50);
  border-radius: var(--r-md);
  border: 1px solid var(--byi-navy-100);
}
.dash__mod-pair .fb-hbar__row {
  grid-template-columns: 180px 1fr 30px;
}
@media (max-width: 1280px) {
  .dash__mod-pair { grid-template-columns: 1fr; gap: 18px; }
}


/* Left column of training grid stacks two HBar charts */
.dash__training-left { display: flex; flex-direction: column; gap: 24px; }


/* Q3 headcount — single number input */
.qf-headcount {
  display: flex; align-items: center; gap: 14px;
  padding: 4px 0;
}
.qf-headcount__input {
  width: 140px;
  padding: 14px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-elevated);
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: 24px;
  color: var(--brand-strong);
  text-align: center;
  outline: none;
  transition: all var(--dur-fast) var(--ease-out);
}
.qf-headcount__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.qf-headcount__suffix {
  font-family: var(--font-display);
  font-weight: var(--fw-semi);
  color: var(--fg-soft);
  font-size: 15px;
}


/* Single-column row helper for dashboard */
.dash__row--1col { grid-template-columns: 1fr; }


/* Bullets in training CTA */
.dash__training-bullets {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; gap: 48px;
  flex-wrap: wrap;
  width: 100%;
}
.dash__training-bullets li {
  display: flex; align-items: baseline; gap: 16px;
  position: relative;
  padding-left: 22px;
}
.dash__training-bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: 14px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
}
.dash__training-bullet-num {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: 36px;
  color: var(--accent-strong);
  letter-spacing: var(--ls-tight);
  line-height: 1;
}
.dash__training-bullet-lbl {
  font-size: 14px;
  font-weight: var(--fw-semi);
  color: var(--fg);
}


/* ============================================================
   Admin modal — Add member
   ============================================================ */
.adm-modal {
  position: fixed; inset: 0; z-index: 9500;
  background: rgba(8, 24, 49, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 40px 20px;
  animation: admModalFade var(--dur-slow) var(--ease-out);
}
@keyframes admModalFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.adm-modal__panel {
  background: var(--bg-elevated);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-xl);
  width: min(620px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  display: flex; flex-direction: column;
  animation: admModalSlide var(--dur-slow) var(--ease-out);
}
@keyframes admModalSlide {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.adm-modal__head {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 28px 32px 16px;
  gap: 16px;
}
.adm-modal__title { margin: 4px 0 0; }
.adm-modal__close {
  background: none; border: 1px solid var(--border);
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 24px;
  color: var(--fg-soft);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all var(--dur-fast);
}
.adm-modal__close:hover { background: var(--bg-sunken); color: var(--danger); border-color: var(--danger); }
.adm-modal__help {
  padding: 0 32px;
  font-size: 13px;
  color: var(--fg-soft);
  line-height: 1.5;
  margin: 0 0 16px;
}
.adm-modal__body {
  padding: 0 32px;
  display: flex; flex-direction: column; gap: 16px;
}
.adm-modal__opts {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 8px;
  padding: 16px;
  background: var(--byi-navy-50);
  border-radius: var(--r-md);
}
.adm-modal__check {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px;
  color: var(--fg);
  font-weight: var(--fw-semi);
  cursor: pointer;
}
.adm-modal__footer {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 20px 32px 28px;
  margin-top: 16px;
  border-top: 1px solid var(--border);
}

/* ============================================================
   Admin toast
   ============================================================ */
.adm-toast {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  background: var(--byi-navy-900);
  color: var(--fg-on-dark);
  padding: 14px 22px;
  border-radius: var(--r-pill);
  box-shadow: var(--sh-lg);
  z-index: 9000;
  display: flex; align-items: center; gap: 12px;
  font-size: 14px;
  font-weight: var(--fw-semi);
  animation: admToast var(--dur-slow) var(--ease-out);
}
.adm-toast__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(46,140,95,0.3);
}
@keyframes admToast {
  from { transform: translate(-50%, 20px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

/* New row highlight */
.inv__row--new {
  background: var(--accent-soft) !important;
  animation: invNew var(--dur-slow) var(--ease-out);
}
@keyframes invNew {
  from { background: var(--accent); }
  to { background: var(--accent-soft); }
}
.inv__newbadge {
  display: inline-block;
  margin-left: 8px;
  background: var(--accent);
  color: var(--byi-navy-950);
  padding: 1px 8px;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 9px;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
}


/* ============================================================
   ADMIN — Global area navigation (3 modules)
   ============================================================ */
.adm__top {
  padding: 14px 36px;
}
.adm__areas {
  display: flex; gap: 4px;
  flex: 1; justify-content: center;
  background: var(--bg-sunken);
  padding: 4px;
  border-radius: var(--r-pill);
  align-self: center;
}
.adm__area {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px;
  border-radius: var(--r-pill);
  background: transparent;
  border: none;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 13px;
  color: var(--fg-soft);
  cursor: pointer;
  transition: all var(--dur-fast);
}
.adm__area:hover { color: var(--brand-strong); background: var(--bg-elevated); }
.adm__area.is-active {
  background: var(--brand-strong);
  color: var(--fg-on-dark);
  box-shadow: var(--sh-sm);
}
.adm__area-icon { font-size: 15px; }

/* Sub-nav row */
.adm__subnav {
  display: flex; align-items: center; gap: 24px;
  padding: 10px 36px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  position: sticky; top: calc(48px + 64px); z-index: 49;
}
.adm__subnav-area {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--accent-strong);
  padding-right: 24px;
  border-right: 1px solid var(--border);
}
.adm__subnav .adm__nav { gap: 2px; }
.adm__subnav .adm__nav-item {
  padding: 6px 14px;
  font-size: 13px;
}

/* ============================================================
   TRAINING MODULE — Sessions table & catalog
   ============================================================ */
.trainfill {
  width: 110px; height: 8px;
  background: var(--byi-navy-50);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.trainfill__bar {
  height: 100%;
  border-radius: var(--r-pill);
  transition: width var(--dur-slow) var(--ease-out);
}

.catalog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 18px;
}
.catalog__card {
  display: flex; flex-direction: column; gap: 14px;
  transition: all var(--dur-fast);
}
.catalog__card:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-md);
  border-color: var(--accent);
}
.catalog__head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px;
}
.catalog__code {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wide);
  color: var(--fg-muted);
  text-transform: uppercase;
}
.catalog__title {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: var(--fw-bold);
  color: var(--brand-strong);
  line-height: 1.25;
}
.catalog__meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 14px 16px;
  background: var(--byi-navy-50);
  border-radius: var(--r-md);
}
.catalog__meta > div { display: flex; flex-direction: column; gap: 2px; }
.catalog__meta span {
  font-size: 10px;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--fg-soft);
}
.catalog__meta strong {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  color: var(--brand-strong);
  font-size: 15px;
}
.catalog__intent {
  display: flex; flex-direction: column; gap: 6px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--accent-soft) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--byi-orange-100);
}
.catalog__intent-row {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 8px;
}
.catalog__intent-num {
  font-family: var(--font-body);
  color: var(--fg);
  font-size: 13px;
}
.catalog__intent-num strong {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  color: var(--accent-strong);
  font-size: 18px;
}
.catalog__intent-bar {
  height: 8px;
  background: var(--bg-elevated);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.catalog__intent-fill {
  height: 100%;
  background: var(--accent);
  border-radius: var(--r-pill);
  transition: width var(--dur-slow) var(--ease-out);
}

/* ============================================================
   PLANNING — Gantt
   ============================================================ */
.gantt {
  position: relative;
  overflow: hidden;
}
.gantt__head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 18px;
}
.gantt__legend { display: flex; flex-wrap: wrap; gap: 16px; }
.gantt__legend-item {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px;
  color: var(--fg-soft);
  font-weight: var(--fw-semi);
}
.gantt__legend-dot {
  width: 12px; height: 12px;
  border-radius: 3px;
}

.gantt__grid {
  position: relative;
  display: grid;
  grid-template-columns: 280px 1fr;
  row-gap: 8px;
  padding-top: 36px;
}
.gantt__rowhead {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--fg-soft);
  position: absolute; top: 0; left: 0;
}
.gantt__chart {
  position: absolute;
  top: 0; left: 280px; right: 0;
  height: 32px;
}
.gantt__months {
  position: relative;
  height: 100%;
}
.gantt__month {
  position: absolute;
  top: 0;
  height: 100%;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--fg-soft);
  border-left: 1px dashed var(--border);
  padding: 6px 8px;
  display: flex; align-items: flex-start;
}

.gantt__rowname {
  padding: 10px 16px 10px 0;
  display: flex; flex-direction: column; gap: 2px;
  border-bottom: 1px dashed var(--border);
}
.gantt__rowname-title {
  font-size: 13px;
  font-weight: var(--fw-bold);
  color: var(--brand-strong);
}
.gantt__rowname-owner {
  font-size: 11px;
  color: var(--fg-soft);
}
.gantt__row {
  position: relative;
  height: 42px;
  border-bottom: 1px dashed var(--border);
  background: repeating-linear-gradient(
    to right,
    transparent 0,
    transparent calc(100% / 10 - 1px),
    var(--border) calc(100% / 10 - 1px),
    var(--border) calc(100% / 10)
  );
}
.gantt__bar {
  position: absolute;
  top: 8px; bottom: 8px;
  border-radius: var(--r-pill);
  display: flex; align-items: center;
  padding: 0 12px;
  color: var(--bg-elevated);
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 10px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  box-shadow: var(--sh-sm);
  transition: all var(--dur-fast);
}
.gantt__bar:hover {
  transform: translateY(-1px);
  box-shadow: var(--sh-md);
}
.gantt__bar-label {
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.gantt__today {
  position: absolute;
  top: 36px; bottom: 0;
  width: 2px;
  background: var(--danger);
  z-index: 5;
  pointer-events: none;
}
.gantt__today::before {
  content: "";
  position: absolute;
  top: 0; left: -5px;
  width: 12px; height: 12px;
  background: var(--danger);
  border-radius: 50%;
}
.gantt__today-label {
  position: absolute;
  top: -22px; left: 12px;
  background: var(--danger);
  color: white;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ============================================================
   PLANNING — Milestones list
   ============================================================ */
.milestones {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 14px;
  position: relative;
}
.milestones::before {
  content: "";
  position: absolute;
  left: 50px; top: 24px; bottom: 24px;
  width: 2px;
  background: var(--border);
}
.milestone {
  display: flex; gap: 24px; align-items: center;
  position: relative;
  padding: 4px 0;
}
.milestone__date {
  width: 90px; flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center;
  padding: 12px 0;
  background: var(--bg-elevated);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-md);
  position: relative; z-index: 2;
}
.milestone__date-day {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: var(--fw-black);
  color: var(--brand-strong);
  line-height: 1;
}
.milestone__date-month {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--fg-soft);
  margin-top: 2px;
}
.milestone__date-year {
  font-family: var(--font-display);
  font-size: 10px;
  color: var(--fg-muted);
  margin-top: 1px;
}
.milestone__body { flex: 1; }
.milestone__label {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: var(--fw-bold);
  color: var(--brand-strong);
}
.milestone__tone {
  font-size: 11px;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--fg-soft);
  margin-top: 2px;
}

.milestone--now .milestone__date {
  background: var(--danger);
  border-color: var(--danger);
}
.milestone--now .milestone__date * { color: white !important; }
.milestone--now .milestone__label { color: var(--danger); }

.milestone--main .milestone__date {
  background: var(--accent);
  border-color: var(--accent);
}
.milestone--main .milestone__date-day,
.milestone--main .milestone__date-month,
.milestone--main .milestone__date-year { color: var(--byi-navy-950); }
.milestone--main .milestone__tone { color: var(--accent-strong); }

@media (max-width: 1280px) {
  .gantt__grid { grid-template-columns: 200px 1fr; }
  .gantt__chart { left: 200px; }
  .catalog { grid-template-columns: 1fr; }
}


/* Inline hours input for Q10 time-saved estimation */
.qf-hours {
  display: flex; align-items: center; gap: 12px;
  margin-top: 12px;
  padding: 14px 18px;
  background: var(--accent-soft);
  border: 1.5px solid var(--accent);
  border-radius: var(--r-md);
  flex-wrap: wrap;
}
.qf-hours__lbl {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 13px;
  color: var(--accent-strong);
}
.qf-hours__input {
  width: 90px;
  padding: 10px 14px;
  border: 1.5px solid var(--accent);
  border-radius: var(--r-sm);
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: 20px;
  color: var(--brand-strong);
  text-align: center;
  background: var(--bg-elevated);
  outline: none;
  transition: all var(--dur-fast);
}
.qf-hours__input:focus {
  box-shadow: 0 0 0 4px rgba(217,119,87,0.18);
}
.qf-hours__suffix {
  font-size: 13px;
  font-weight: var(--fw-semi);
  color: var(--fg);
}


/* Q14 — past training inline details (3 cols) */
.qf-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.qf-past-details {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}
@media (max-width: 900px) {
  .qf-grid-3 { grid-template-columns: 1fr; }
}


/* Q16 — module chips one per line */
.qf-plan__chips {
  flex-direction: column;
  align-items: stretch;
}
.qf-plan__chip {
  width: 100%;
  justify-content: flex-start;
}


/* Follow-up note under the welcome bullets */
.ad-welcome__followup {
  margin: 20px 0 0;
  padding: 14px 16px;
  background: var(--byi-navy-50);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--fg);
  font-weight: var(--fw-medium);
}


/* ============================================================
   IMPORT MODAL — adherent database
   ============================================================ */
.adm-modal__panel--wide { width: min(900px, 100%); }

.import-cols {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding: 16px;
  background: var(--byi-navy-50);
  border-radius: var(--r-md);
}
.import-col {
  background: var(--bg-elevated);
  border-radius: var(--r-sm);
  padding: 10px 12px;
}
.import-col__name {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 13px;
  color: var(--brand-strong);
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 4px;
}
.import-col__req {
  font-family: var(--font-display);
  font-size: 8px;
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  background: var(--accent);
  color: var(--byi-navy-950);
  padding: 1px 6px;
  border-radius: var(--r-pill);
}
.import-col__hint {
  font-size: 11px;
  color: var(--fg-soft);
  line-height: 1.35;
}

.import-drop {
  margin-top: 14px;
  padding: 40px 24px;
  border: 2px dashed var(--border-strong);
  border-radius: var(--r-md);
  background: var(--bg-sunken);
  text-align: center;
  cursor: pointer;
  transition: all var(--dur-fast);
}
.import-drop:hover, .import-drop.is-over {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.import-drop__icon { font-size: 36px; margin-bottom: 10px; }
.import-drop__title {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 16px;
  color: var(--brand-strong);
  margin-bottom: 4px;
}
.import-drop__sub {
  font-size: 12px;
  color: var(--fg-soft);
}

.import-help-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 14px;
  flex-wrap: wrap;
  gap: 12px;
}
.import-link {
  background: none; border: none;
  color: var(--accent-strong);
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 13px;
  cursor: pointer;
  padding: 0;
}
.import-link:hover { text-decoration: underline; }

/* Preview */
.import-stats {
  display: flex; gap: 16px; align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.import-stat {
  display: flex; align-items: baseline; gap: 8px;
  padding: 10px 16px;
  background: var(--bg-sunken);
  border-radius: var(--r-md);
}
.import-stat--ok { background: rgba(46,140,95,0.12); }
.import-stat--err { background: rgba(217,107,107,0.12); }
.import-stat__num {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: 22px;
  color: var(--brand-strong);
  line-height: 1;
}
.import-stat--ok .import-stat__num { color: var(--success); }
.import-stat--err .import-stat__num { color: var(--danger); }
.import-stat__lbl {
  font-size: 11px;
  font-weight: var(--fw-semi);
  color: var(--fg-soft);
}
.import-file {
  margin-left: auto;
  font-size: 12px;
  color: var(--fg-soft);
  font-weight: var(--fw-semi);
  background: var(--bg-sunken);
  padding: 8px 14px;
  border-radius: var(--r-pill);
}

.import-table-wrap {
  max-height: 380px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.import-table thead th {
  position: sticky; top: 0;
  background: var(--bg-elevated);
  z-index: 2;
}
.import-row--err {
  background: rgba(217,107,107,0.06);
}
.import-row--err td:first-child { color: var(--danger); font-weight: var(--fw-bold); }
.import-err {
  font-size: 11px;
  color: var(--danger);
  font-weight: var(--fw-semi);
}
.import-more {
  text-align: center;
  padding: 10px;
  font-size: 12px;
  color: var(--fg-soft);
  background: var(--bg-sunken);
}

@media (max-width: 720px) {
  .import-cols { grid-template-columns: 1fr 1fr; }
}


/* Test email modal */
.test-actions {
  display: flex; align-items: center; gap: 20px;
  margin-top: 8px;
}
.test-tips {
  margin-top: 16px;
  padding: 16px 18px;
  background: var(--byi-navy-50);
  border-left: 3px solid var(--byi-orange-500);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.test-tips__title {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 13px;
  color: var(--brand-strong);
  margin-bottom: 8px;
}
.test-tips p {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--fg);
}
.test-tips ul {
  margin: 0; padding-left: 20px;
  font-size: 13px;
  color: var(--fg);
  line-height: 1.6;
}
.test-tips code {
  background: var(--bg-elevated);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 12px;
  border: 1px solid var(--border);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}


/* Test email — channels grid */
.test-channels {
  margin-top: 14px;
  padding: 18px;
  background: var(--bg-sunken);
  border-radius: var(--r-md);
}
.test-channels__title {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 13px;
  color: var(--brand-strong);
  margin-bottom: 6px;
}
.test-channels__hint {
  font-size: 12px;
  color: var(--fg-soft);
  margin: 0 0 14px;
  line-height: 1.5;
}
.test-channels__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.test-channel {
  background: var(--bg-elevated);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px 16px;
  text-align: left;
  cursor: pointer;
  transition: all var(--dur-fast);
  display: flex; flex-direction: column; gap: 4px;
  font-family: inherit;
}
.test-channel:hover:not(:disabled) {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-1px);
}
.test-channel:disabled { opacity: 0.45; cursor: not-allowed; }
.test-channel__icon { font-size: 22px; }
.test-channel__name {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 13px;
  color: var(--brand-strong);
}
.test-channel__hint {
  font-size: 11px;
  color: var(--fg-soft);
  line-height: 1.4;
}
@media (max-width: 720px) {
  .test-channels__grid { grid-template-columns: 1fr; }
}


/* Make anchor variants of test-channel behave like buttons */
a.test-channel { text-decoration: none; color: inherit; }
.test-channel.is-disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; }


/* ============================================================
   CAMPAIGN SWITCHER (in subnav)
   ============================================================ */
.adm__switcher {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 12px 4px 14px;
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
}
.adm__switcher-lbl {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--fg-soft);
}
.adm__switcher-select {
  border: none;
  background: transparent;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 13px;
  color: var(--brand-strong);
  cursor: pointer;
  outline: none;
  padding: 6px 0;
  max-width: 320px;
}

/* ============================================================
   CAMPAIGNS — Grid of cards
   ============================================================ */
.camp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 18px;
}
.camp {
  display: flex; flex-direction: column; gap: 14px;
  position: relative;
  transition: all var(--dur-fast);
}
.camp:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-md);
}
.camp--primary {
  border-color: var(--accent);
  background: linear-gradient(180deg, #FFF8EB 0%, var(--bg-elevated) 50%);
}
.camp--primary::before {
  content: "Campagne en cours";
  position: absolute;
  top: -10px; left: 18px;
  background: var(--accent);
  color: var(--byi-navy-950);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r-pill);
}
.camp--draft { opacity: 0.85; }
.camp__head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px;
}
.camp__title {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: 17px;
  color: var(--brand-strong);
  line-height: 1.25;
  letter-spacing: var(--ls-tight);
}
.camp__desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--fg-soft);
}
.camp__meta {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 14px 16px;
  background: var(--byi-navy-50);
  border-radius: var(--r-md);
}
.camp__meta > div { display: flex; flex-direction: column; gap: 2px; }
.camp__meta span {
  font-size: 10px;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--fg-soft);
}
.camp__meta strong {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  color: var(--brand-strong);
  font-size: 18px;
  letter-spacing: var(--ls-tight);
  line-height: 1;
}
.camp__progress { display: flex; flex-direction: column; gap: 6px; }
.camp__progress-head {
  display: flex; justify-content: space-between;
  font-size: 12px;
  color: var(--fg-soft);
}
.camp__progress-head strong {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  color: var(--brand-strong);
  font-size: 16px;
}
.camp__progress-bar {
  height: 8px;
  background: var(--byi-navy-50);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.camp__progress-fill {
  height: 100%;
  border-radius: var(--r-pill);
  transition: width var(--dur-slow) var(--ease-out);
}
.camp__actions {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.camp__menu-btn {
  background: none; border: 1px solid var(--border);
  width: 32px; height: 32px;
  border-radius: 50%;
  color: var(--fg-soft);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}
.camp__menu-btn:hover { background: var(--bg-sunken); color: var(--brand-strong); border-color: var(--brand-strong); }

/* Campaign closed notice (when viewing non-current campaign dashboard) */
.campnotice {
  display: flex; gap: 28px; align-items: flex-start;
  background: var(--byi-navy-50);
  border: 1px solid var(--border);
}
.campnotice__icon {
  font-size: 64px;
  flex-shrink: 0;
}
.campnotice__stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin-top: 14px;
}
.campnotice__stats > div { display: flex; flex-direction: column; gap: 4px; }
.campnotice__stats span {
  font-size: 11px;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--fg-soft);
}
.campnotice__stats strong {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  color: var(--brand-strong);
  font-size: 18px;
}
@media (max-width: 1000px) {
  .adm__switcher { margin-left: 0; }
  .camp__meta, .campnotice__stats { grid-template-columns: 1fr 1fr; }
}


/* Login error banner */
.ad-login__error {
  background: rgba(217,107,107,0.12);
  color: #B23E3E;
  border-left: 3px solid var(--danger);
  padding: 10px 14px;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 13px;
  font-weight: var(--fw-semi);
  animation: loginShake 0.4s var(--ease-out);
}
@keyframes loginShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}


/* ============================================================
   ADMIN HOME — landing after login, only the 3 generic areas
   ============================================================ */
.admhome {
  min-height: calc(100vh - 48px);
  background: var(--byi-paper);
  display: flex; flex-direction: column;
}
.admhome__top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 36px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}
.admhome__body {
  flex: 1;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 64px 56px;
  display: flex; flex-direction: column; gap: 48px;
}
.admhome__intro { max-width: 720px; }
.admhome__title { margin: 6px 0 12px; }
.admhome__lede { margin: 0; max-width: 580px; }

.admhome__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.admhome__card {
  display: flex; flex-direction: column; gap: 18px;
  padding: 32px 28px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  text-align: left;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
  position: relative;
  overflow: hidden;
  font-family: inherit;
}
.admhome__card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(244,148,21,0.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--dur-fast);
  pointer-events: none;
}
.admhome__card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--sh-lg);
}
.admhome__card:hover::before { opacity: 1; }
.admhome__card-icon {
  font-size: 48px;
  width: 80px; height: 80px;
  border-radius: var(--r-md);
  background: var(--byi-navy-50);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur-fast);
}
.admhome__card:hover .admhome__card-icon {
  background: var(--accent-soft);
}
.admhome__card-body { display: flex; flex-direction: column; gap: 6px; }
.admhome__card-title {
  margin: 4px 0 6px;
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: 22px;
  color: var(--brand-strong);
  letter-spacing: var(--ls-tight);
  line-height: 1.15;
}
.admhome__card-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--fg-soft);
}
.admhome__card-arrow {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: 24px;
  color: var(--fg-muted);
  align-self: flex-end;
  transition: all var(--dur-fast);
}
.admhome__card:hover .admhome__card-arrow {
  color: var(--accent-strong);
  transform: translateX(4px);
}

/* Home button in shell */
.adm__home {
  background: none;
  border: 1px solid var(--border);
  width: 32px; height: 32px;
  border-radius: 50%;
  color: var(--fg-soft);
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all var(--dur-fast);
  margin-right: 6px;
}
.adm__home:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
  background: var(--accent-soft);
}

@media (max-width: 1000px) {
  .admhome__cards { grid-template-columns: 1fr; }
  .admhome__body { padding: 40px 24px; }
}


/* Discreet admin access link in proto nav (when not authed) */
.proto-nav__btn--discreet {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.55);
  font-size: 11px;
}
.proto-nav__btn--discreet:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(244,148,21,0.08);
}
