/* Segura extranet — funnel styles. Plain CSS, custom properties, desktop first. */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/static/fonts/PlusJakartaSans-variable.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --page: #F6F4EE;
  --surface: #FFFFFF;
  --ink: #1F1D1A;
  --text-muted: #5A5752;
  --text-grey: #8A97A8;
  --sand: #EFEAE0;
  --sand-dark: #8B7B5B;
  --sand-stroke: #A59373;
  --border: #E6E2D8;
  --navy: #2D4259;
  --logo-tile: #233348;
  --cream: #FFF9F2;
  --error: #A6432F;
  --error-tint: #F7ECE9;
  --green: #47745F;
  --green-tint: #EAF3EE;
  --disabled-text: #B9B3A6;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --radius-card: 15px;
  --shadow-card: 0 3.5px 2.75px rgba(0, 0, 0, .06);
}

*, *::before, *::after { box-sizing: border-box; }
html { font-family: var(--font); color: var(--ink); background: var(--page); }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; font-size: 12px; line-height: 1.4; }
h1, h2, p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.amount { white-space: nowrap; }

/* Bar */
.bar { background: var(--surface); padding: 20px 32px; display: flex; align-items: center; gap: 12px; }
.bar__logo { width: 24px; height: 24px; border-radius: 7px; background: var(--logo-tile) url("/static/icons/logo-segura-icon.svg") center / 15px 15px no-repeat; flex: none; }
.bar__title { font-size: 12px; font-weight: 700; }

/* Main */
.main { flex: 1; padding: 26px 120px 32px; display: flex; flex-direction: column; gap: 20px; }
.page-title { font-size: 18px; font-weight: 700; }
.page-subtitle { font-size: 11px; font-weight: 500; color: var(--text-muted); margin-top: 4px; }

/* Stepper */
.stepper { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.stepper__step { display: flex; align-items: center; gap: 8px; padding-right: 16px; }
.stepper__step + .stepper__step { padding-left: 16px; border-left: 1px solid var(--border); }
.stepper__circle { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; background: var(--sand); color: var(--text-grey); }
.stepper__label { font-size: 11.5px; font-weight: 500; color: var(--text-grey); }
.stepper__step.is-active .stepper__circle { background: var(--navy); color: var(--cream); }
.stepper__step.is-active .stepper__label { font-weight: 700; color: var(--ink); }

/* Columns */
.columns { display: flex; gap: 20px; align-items: flex-start; }
.column-main { flex: 1; min-width: 0; }
.column-side { width: 360px; flex: none; }
.stack { display: flex; flex-direction: column; gap: 20px; }

/* Card */
.card { background: var(--surface); padding: 24px; border-radius: var(--radius-card); box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 14px; }
.card__title { font-size: 15px; font-weight: 700; }
.card.is-error { outline: 1.5px solid var(--error); }

/* Fields */
.field-row { display: flex; gap: 14px; }
.field-row > .field { flex: 1; min-width: 0; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field__label { font-size: 10.5px; font-weight: 700; color: var(--text-muted); }
.req { color: var(--error); }
.input-wrap { position: relative; display: flex; align-items: center; }
.input { width: 100%; font: inherit; font-size: 12px; font-weight: 500; color: var(--ink); padding: 11px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.input::placeholder { color: var(--text-grey); }
.input--readonly { background: var(--sand); }
.input-suffix { position: absolute; right: 12px; font-size: 12px; font-weight: 500; color: var(--text-muted); pointer-events: none; }
.input-wrap:has(.input-suffix) .input { padding-right: 28px; }
.field__hint { font-size: 10px; font-weight: 500; color: var(--text-grey); }
.field__error { font-size: 10.5px; font-weight: 500; color: var(--error); }
.field.is-error .input { background: var(--error-tint); border: 1.5px solid var(--error); }

/* Boxes */
.sand-box { background: var(--sand); border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.sand-box__title { font-size: 11.5px; font-weight: 700; color: var(--ink); }
.sand-box__eyebrow { font-size: 10.5px; font-weight: 700; color: var(--ink); text-transform: uppercase; }
.sand-box__text { font-size: 10.5px; font-weight: 500; color: var(--text-grey); }
.red-box { background: var(--error-tint); border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.red-box__title { font-size: 11.5px; font-weight: 700; color: var(--error); }
.red-box__text { font-size: 10.5px; font-weight: 500; color: var(--error); }

/* Choice cards */
.choices { display: flex; flex-direction: column; gap: 10px; }
.choice { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; }
.choice.is-selected { background: var(--sand); border-color: var(--sand-dark); }
.choice__input { position: absolute; opacity: 0; width: 0; height: 0; }
.choice__radio { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--sand-stroke); background: var(--surface); flex: none; }
.choice.is-selected .choice__radio { border: 5px solid var(--sand-dark); }
.choice__body { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.choice__title { font-size: 12.5px; font-weight: 700; }
.choice__desc, .choice__eyebrow { font-size: 10.5px; font-weight: 500; color: var(--text-grey); }
.choice__eyebrow { font-weight: 700; text-transform: uppercase; }
.choice__price { font-size: 12px; font-weight: 700; }
.choice__side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.choice--amo { cursor: default; }
.choice--amo.is-added { padding: 15px; background: var(--sand); border-color: var(--sand-dark); }
.choice--amo.is-available { padding: 16px; border: 0; background: var(--sand); }  /* card 48c: 2298:170, 1687:198 */
/* Card 48c: the AMO definition as 2298:531 and 1687:416. */
.definition-box { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 15px; gap: 10px; }
.definition-box .sand-box__eyebrow { color: var(--text-grey); }
.definition-box .sand-box__text { font-size: 11px; color: var(--text-muted); }
/* Card 48: the reserved option as its frames (2298:118, 1687:2, 2320:4993); the layout differs by width. */
.choice--amo.is-reserved { padding: 16px; border: 0; background: var(--page); }
.choice--amo.is-reserved .choice__lock { color: var(--sand-dark); flex: none; align-self: center; }
.choice--amo.is-reserved .choice__title, .choice--amo.is-reserved .choice__price { color: var(--disabled-text); }
.choice--amo.is-reserved .choice__side { flex-direction: row; align-items: center; gap: 12px; }
/* Card 48c: the added and available options on one row (2298:349, 2298:170, 2324:11155). */
.choice--amo.is-added .choice__side, .choice--amo.is-available .choice__side { flex-direction: row; align-items: center; gap: 12px; }
.choice__price--study { color: var(--text-grey); }  /* card 48b: «Étude sur mesure», frame 2298:2716 */
.choice__check { color: var(--green); flex: none; }

/* Toggle rows */
.toggle { display: flex; align-items: center; gap: 8px; width: 100%; padding: 12px 14px; border-radius: 10px; background: var(--sand); border: 0; cursor: pointer; font-size: 11.5px; font-weight: 700; color: var(--navy); }  /* card 48 */
.toggle svg { color: var(--sand-dark); }
.toggle .toggle__open { display: none; }
.toggle[aria-expanded="true"] .toggle__open { display: inline; }
.toggle[aria-expanded="true"] .toggle__closed { display: none; }

/* Comparison table */
/* Card 48c: the comparison as 2298:531 and 1687:416. */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 11.5px; font-weight: 500; color: var(--text-muted); }
.compare th, .compare td { padding: 9px 5px; border-bottom: 1px solid var(--border); text-align: center; }
.compare th:first-child, .compare td:first-child { padding-left: 14px; }
.compare th:last-child, .compare td:last-child { padding-right: 14px; }
.compare th:first-child { text-align: left; font-weight: 500; }
.compare thead th:not(:first-child), .compare td { width: 130px; }  /* the frame's 120 px cells and their gap */
.compare thead th { font-size: 10px; font-weight: 700; color: var(--text-grey); border-bottom: 0; }
.compare__section th { text-align: left; font-weight: 700; font-size: 10px; color: var(--text-grey); background: var(--sand); padding: 10px 14px; border-bottom: 0; border-radius: 8px; }
.compare__check { color: var(--green); vertical-align: middle; }

/* Checkbox */
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.check__input { position: absolute; opacity: 0; width: 0; height: 0; }
.check__box { width: 18px; height: 18px; border-radius: 4.5px; border: 1.5px solid var(--sand-stroke); background: var(--surface); flex: none; }
.check__input:checked + .check__box { border: 0; background: url("/static/icons/checkbox-checked.svg") center / 18px 18px no-repeat; }
.check__input:focus-visible + .check__box { outline: 2px solid var(--navy); outline-offset: 2px; }
.check__label { font-size: 11.5px; font-weight: 500; }

/* Buttons and links */
.btn { height: 36px; border-radius: 999px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; font-size: 12px; font-weight: 500; line-height: 20px; text-transform: uppercase; text-decoration: none; cursor: pointer; border: 0; }
.btn--primary { background: var(--navy); color: var(--cream); }
.btn--secondary { background: transparent; border: 1.5px solid var(--sand-stroke); color: var(--navy); }
.btn:disabled, .btn[disabled] { background: #F6F4EE; border: 1px solid var(--border); color: var(--disabled-text); cursor: not-allowed; pointer-events: none; }
.link-btn { background: none; border: 0; padding: 0; font-size: 11px; font-weight: 700; color: var(--sand-dark); cursor: pointer; text-align: left; }
.link-btn:hover { text-decoration: underline; }
.actions { display: flex; justify-content: flex-end; gap: 12px; }
.required-note { font-size: 10px; font-weight: 500; color: var(--text-grey); }

/* Panel */
.panel { background: var(--surface); padding: 24px; border-radius: var(--radius-card); box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 12px; }
.panel__eyebrow { font-size: 10.5px; font-weight: 700; color: var(--text-grey); }
.panel__amount { font-size: 28px; font-weight: 700; color: var(--ink); }
.panel__amount--muted { color: var(--text-grey); }
.panel__amount--offgrid { font-size: 24px; color: var(--text-grey); }
.panel__ttc { font-size: 11px; font-weight: 500; color: var(--text-grey); }
.panel__rule { border: 0; border-top: 1px solid var(--border); margin: 2px 0; }
.panel__row { display: flex; justify-content: space-between; gap: 12px; }
.panel__row-label { font-size: 11.5px; font-weight: 500; color: var(--text-muted); }
.panel__row-value { font-size: 12px; font-weight: 700; color: var(--ink); text-align: right; }
.panel__note { font-size: 10px; font-weight: 500; color: var(--text-grey); }

/* Companies (step 2) */
.company-list { display: flex; flex-direction: column; gap: 10px; }
.company { background: var(--sand); border-radius: 12px; padding: 16px; display: flex; align-items: center; gap: 10px; }
.company__tile { width: 32px; height: 32px; border-radius: 10px; background: var(--surface); color: var(--sand-dark); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.company__body { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.company__name { font-size: 12.5px; font-weight: 700; text-transform: uppercase; }
.company__fact { font-size: 10.5px; font-weight: 500; color: var(--text-grey); }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 500; }
.pill--green { background: var(--green-tint); color: var(--green); }
.pill--green::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.add-row { display: flex; align-items: center; gap: 8px; padding: 16px; border: 1.5px dashed var(--sand-stroke); border-radius: 12px; color: var(--navy); font-size: 11.5px; font-weight: 500; text-decoration: none; }
.add-form { background: var(--surface); border: 1px solid var(--navy); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }

/* Footer */
.footer { background: var(--surface); border-top: 1px solid var(--border); padding: 18px 32px; display: flex; align-items: center; gap: 24px; }
.footer__links { display: flex; gap: 24px; font-size: 12px; font-weight: 500; }
.footer__links a { text-decoration: none; }
.footer__right { margin-left: auto; font-size: 12px; font-weight: 400; color: var(--text-grey); }


/* Step 3: documents */
.eyebrow { font-size: 10.5px; font-weight: 700; color: var(--text-grey); }
.doc-row { display: flex; align-items: center; gap: 12px; border-radius: 12px; }
.doc-row--expected { background: var(--surface); border: 1px dashed var(--sand-stroke); padding: 16px; }
.doc-row--received { background: var(--sand); padding: 14px; }
.doc-row--refused { background: var(--error-tint); border: 1.5px dashed var(--error); padding: 16px; }
.doc-row__glyph { color: var(--sand-dark); flex: none; }
.doc-row__check { color: var(--green); flex: none; }
.doc-row__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.doc-row__title { font-size: 12.5px; font-weight: 700; }
.doc-row__hint { font-size: 10.5px; font-weight: 500; color: var(--text-grey); }
.doc-row__ok { font-size: 10.5px; font-weight: 500; color: var(--green); }
.doc-row__error { font-size: 10.5px; font-weight: 500; color: var(--error); }
.doc-row__button { width: 116px; padding: 0; cursor: pointer; }
.doc-row__input { position: absolute; opacity: 0; width: 0; height: 0; }
.pre-list { display: flex; flex-direction: column; gap: 10px; }
.pre-row { background: var(--sand); border-radius: 12px; padding: 16px 14px; display: flex; align-items: center; gap: 12px; }
.pre-row__body { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.pre-row__title { font-size: 12.5px; font-weight: 700; }
.pre-row__facts { font-size: 10.5px; font-weight: 500; color: var(--text-grey); white-space: pre; }
.status-line { font-size: 10px; font-weight: 500; color: var(--text-grey); }
.status-line--ok { display: flex; align-items: center; gap: 6px; }
.status-line__check { color: var(--green); flex: none; }
.btn--loading { background: var(--navy); color: var(--cream); opacity: .85; gap: 8px; }
.btn--loading::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--cream); border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn--block { display: flex; width: 100%; }

/* Result page (étude) */
.main--centred { padding: 40px 120px; align-items: center; }
.result { width: 760px; max-width: 100%; display: flex; flex-direction: column; gap: 16px; }
.card--centred { align-items: center; text-align: center; }
.result__glyph { color: var(--sand-dark); }
.result__title { font-size: 20px; font-weight: 700; }
.result__text { font-size: 12px; font-weight: 500; color: var(--text-grey); }
.next-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.next-step { display: flex; align-items: flex-start; gap: 12px; }
.next-step__number { width: 24px; height: 24px; border-radius: 50%; background: var(--sand); color: var(--sand-dark); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.next-step__title { font-size: 12.5px; font-weight: 700; }
.next-step__text { font-size: 11px; font-weight: 500; color: var(--text-grey); }
.declaration { background: var(--sand); border-radius: 12px; padding: 6px 16px; }
.declaration__row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; }
.declaration__row + .declaration__row { border-top: 1px solid var(--border); }
.declaration__label { font-size: 11.5px; font-weight: 500; color: var(--text-muted); }
.declaration__value { font-size: 12px; font-weight: 700; }
.declaration__tag { font-weight: 500; color: var(--text-grey); }
.footnote { font-size: 10.5px; font-weight: 500; color: var(--text-grey); }

/* Payment result pages */
.result--narrow { width: 520px; }
.result--narrow .card { gap: 12px; }
.result--failure { gap: 14px; }
/* Cards 48 and 48c: the success and failure pages as 2298:3477, 2298:3499, 2320:8984, 2320:9025; the phone
   frames keep the card at the top and the button in the bottom bar (1738:520, 1738:573). */
.main--status { justify-content: center; }
.result__glyph--red { color: var(--error); }
.card--centred > .sticky-primary { align-self: stretch; }
.result__glyph--green { color: var(--green); }
.result__lead { font-size: 12px; font-weight: 500; color: var(--text-muted); }
.result__action { width: 100%; }
.footnote--centred { text-align: center; }
#payment-waiting { min-height: 120px; }

/* Member bar and status card (payment link page) */
.bar--membre { gap: 14px; }
.bar__wordmark { font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.bar__space { font-size: 11px; font-weight: 500; color: var(--text-muted); }
.result--status { width: 560px; }
.status__title { font-size: 18px; font-weight: 700; }
.status__text { font-size: 11.5px; font-weight: 500; color: var(--text-muted); }

/* Back-office: authentication pages */
.bo-bar { background: var(--surface); height: 68px; padding: 22px 32px; display: flex; align-items: center; gap: 12px; }
.bo-bar__logo { width: 24px; height: 24px; border-radius: 7px; background: var(--logo-tile) url("/static/icons/logo-segura-icon.svg") center / 15px 15px no-repeat; flex: none; }
.bo-bar__wordmark { font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.bo-bar__right { margin-left: auto; font-size: 11px; font-weight: 500; color: var(--text-grey); }
.auth-main { flex: 1; display: flex; justify-content: center; padding: 40px 16px; }
.auth-column { width: 440px; max-width: 100%; display: flex; flex-direction: column; gap: 10px; }
.auth-card { gap: 18px; }
.auth-title { font-size: 18px; font-weight: 700; }
.auth-subtitle, .auth-text { font-size: 11.5px; font-weight: 500; color: var(--text-muted); }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.auth-actions--end { justify-content: flex-end; }
.auth-footnote { font-size: 10.5px; font-weight: 500; color: var(--text-grey); }
.inline-form { display: inline; }
.input-toggle { position: absolute; right: 12px; background: none; border: 0; padding: 0; font-size: 11px; font-weight: 700; color: var(--sand-dark); cursor: pointer; }
.input-wrap:has(.input-toggle) .input { padding-right: 70px; }
.rules__list { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.rules__item { font-size: 10.5px; font-weight: 500; color: var(--text-grey); padding-left: 18px; position: relative; }
.rules__item::before { content: ""; position: absolute; left: 0; top: 2px; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--sand-stroke); }
.rules__item.is-met { color: var(--green); }
.rules__item.is-met::before { border-color: var(--green); background: var(--green); }

/* Back-office: layout */
.bo { display: flex; min-height: 100vh; }
.sidebar { width: 248px; flex: none; background: var(--surface); padding: 28px 24px; display: flex; flex-direction: column; gap: 12px; }
.sidebar__logo { display: flex; align-items: center; gap: 10px; }
.sidebar__tile { width: 22px; height: 22px; border-radius: 6px; background: var(--logo-tile) url("/static/icons/logo-segura-icon.svg") center / 14px 14px no-repeat; }
.sidebar__wordmark { font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.sidebar__rule { border: 0; border-top: 1px solid var(--border); margin: 0; }
.sidebar__group { font-size: 10px; font-weight: 700; text-transform: uppercase; color: var(--text-grey); margin-top: 6px; }
.nav-row { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 8px; border-radius: 10px; text-decoration: none; color: var(--text-grey); font-size: 12px; font-weight: 500; width: 100%; background: none; border: 0; text-align: left; cursor: default; }
.nav-row__tile { width: 30px; height: 30px; border-radius: 9px; background: var(--surface); border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; color: var(--sand-dark); flex: none; }
.nav-row__label { flex: 1; }
.nav-row__badge { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--sand); color: var(--ink); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.nav-row.is-active { height: 54px; background: var(--surface); box-shadow: var(--shadow-card); color: var(--ink); font-weight: 700; }
.nav-row.is-active .nav-row__tile { background: var(--sand-dark); border-color: var(--sand-dark); color: var(--cream); }
.nav-row--button { cursor: pointer; font: inherit; }
.nav-form { margin: 0; }
.sidebar__spacer { flex: 1; }
.sidebar__legal { display: flex; flex-direction: column; gap: 4px; font-size: 10.5px; }
.sidebar__legal a { color: var(--text-grey); text-decoration: none; }
.bo-main { flex: 1; min-width: 0; padding: 26px 30px 32px 10px; display: flex; flex-direction: column; gap: 22px; }
.bo-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; max-width: 1152px; }
.bo-top__crumb { font-size: 11px; font-weight: 500; color: var(--text-grey); }
.bo-top__title { font-size: 18px; font-weight: 700; margin-top: 4px; }
.bo-top__user { font-size: 12px; font-weight: 700; white-space: nowrap; }
.bo-top__role { font-weight: 500; color: var(--text-grey); }
.bo-content { max-width: 1152px; display: flex; flex-direction: column; gap: 20px; }

/* Back-office: dashboard */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.tile { background: var(--surface); border-radius: 15px; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; box-shadow: var(--shadow-card); }
.tile__label { font-size: 10px; font-weight: 700; text-transform: uppercase; color: var(--text-grey); }
.tile__value { font-size: 18px; font-weight: 700; margin-top: 4px; }
.tile__glyph { width: 45px; height: 45px; border-radius: 12px; background: var(--sand); color: var(--sand-dark); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.bo-card { gap: 14px; }
.bo-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.bo-card__subtitle { font-size: 11px; font-weight: 500; color: var(--text-grey); margin-top: 4px; }
.bo-card__link { font-size: 11.5px; font-weight: 700; color: var(--navy); }
.product-list { display: flex; flex-direction: column; gap: 10px; }
.product-row { display: flex; align-items: center; gap: 12px; background: var(--sand); border-radius: 12px; padding: 16px; }
.product-row--hidden { background: transparent; border: 1px solid var(--border); }
.product-row__tile { width: 32px; height: 32px; border-radius: 10px; background: var(--surface); color: var(--sand-dark); display: inline-flex; align-items: center; justify-content: center; flex: none; font-size: 13px; font-weight: 700; }
.product-row__tile--tint { background: var(--sand); }
.product-row__body { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.product-row__name { font-size: 12.5px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.product-row__dash { font-weight: 500; color: var(--text-grey); }
.product-row__fact { font-size: 10.5px; font-weight: 500; color: var(--text-grey); }
.product-row__amount { font-size: 13px; font-weight: 700; }

/* Back-office: catalogue */
.pill--grey { background: #F9F9F9; color: #666666; }
.pill--grey::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #666666; }
.pill--sand { background: var(--sand); color: var(--sand-dark); }
.pill--sand::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sand-dark); }
.btn--destructive { background: var(--error); color: var(--cream); }
.bo-subtitle { font-size: 11px; font-weight: 500; color: var(--text-muted); margin-top: -12px; }
.bo-actions-top { display: flex; justify-content: flex-end; margin-top: -8px; }
.bo-actions-top .btn { gap: 8px; }
.tiles--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile__sub { font-size: 10.5px; font-weight: 500; color: var(--text-grey); margin-top: 4px; }
.bo-card__count { font-size: 11px; font-weight: 500; color: var(--text-grey); }
.bo-footnote { font-size: 10.5px; font-weight: 500; color: var(--text-grey); }
.product-rows { display: flex; flex-direction: column; }
.product-line { border-top: 1px solid var(--border); }
.product-line:first-child { border-top: 0; }
.product-line.is-open { background: var(--page); border-radius: 12px; }
.product-line__main { display: flex; align-items: center; gap: 12px; padding: 20px 0; text-decoration: none; color: inherit; }
.product-line.is-open .product-line__main { padding: 20px 12px 8px; }
.product-line__body { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.product-line__name { font-size: 13px; font-weight: 700; }
.product-line__desc { font-size: 10.5px; font-weight: 500; color: var(--text-grey); }
.product-line__facts { font-size: 11px; font-weight: 500; color: var(--text-muted); white-space: nowrap; }
.product-line__actions { display: flex; justify-content: flex-end; padding: 0 12px 12px; }
.product-head { display: flex; align-items: center; gap: 14px; }
.product-head__tile { width: 32px; height: 32px; border-radius: 10px; background: var(--sand-dark); color: var(--cream); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.product-head__body { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.product-head__crumb { font-size: 11px; font-weight: 500; color: var(--text-grey); }
.product-head__back { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.product-head__chevron { transform: rotate(180deg); color: var(--sand-dark); }
.product-head__facts { font-size: 11px; font-weight: 500; color: var(--text-muted); }
.bo-list { display: flex; flex-direction: column; }
.bo-line { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--border); }
.bo-line:first-child { border-top: 0; }
.bo-line__tile { width: 30px; height: 30px; border-radius: 9px; background: var(--sand); color: var(--sand-dark); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.bo-line__check { color: var(--green); flex: none; }
.bo-line__body { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bo-line__title { font-size: 13px; font-weight: 700; }
.bo-line__fact { font-size: 11px; font-weight: 500; color: var(--text-grey); }
.bo-line__amount { font-size: 12px; font-weight: 700; }
.bo-card__link--soon { color: var(--text-grey); cursor: default; }
.version__content { display: flex; flex-direction: column; gap: 14px; padding: 4px 0 16px; }
.grid-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.grid-table th, .grid-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: right; }
.grid-table th:first-child, .grid-table td:first-child { text-align: left; }
.grid-table thead th { background: var(--sand); font-weight: 700; }
.grid-table tbody th { font-weight: 500; color: var(--text-muted); }
.bo-note { font-size: 10.5px; font-weight: 500; color: var(--text-grey); }
.rules { background: var(--page); border-radius: 12px; padding: 20px 24px; display: flex; flex-direction: column; gap: 14px; }
.rules__title { font-size: 12px; font-weight: 700; }
.rules__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.rule__label { font-size: 10.5px; font-weight: 700; }
.rule__value { font-size: 12px; font-weight: 500; margin-top: 4px; }
.rule__hint { font-size: 10.5px; font-weight: 500; color: var(--text-grey); margin-top: 4px; }
.product-actions { display: flex; align-items: center; gap: 14px; }
.product-actions__note { flex: 1; font-size: 10.5px; font-weight: 500; color: var(--text-grey); }
.product-actions__note--error { color: var(--error); }
.product-actions .btn--primary { margin-left: auto; }
.dialog-overlay { position: fixed; inset: 0; background: rgba(31, 29, 26, .45); display: flex; align-items: center; justify-content: center; z-index: 50; }
.dialog { width: 560px; max-width: calc(100% - 32px); background: var(--surface); border-radius: 15px; padding: 18px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow-card); }
.dialog__title { font-size: 15px; font-weight: 700; }
.dialog__text { font-size: 11.5px; font-weight: 500; color: var(--text-muted); }
.dialog__actions { display: flex; justify-content: flex-end; gap: 12px; }

/* Back-office: price version and formules forms */
.version-form { gap: 14px; margin: 8px 0 16px; }
.version-form__note { align-self: flex-end; flex: 1; }
.grid-table--form td { padding: 6px 8px; }
.input--amount { text-align: right; }
.input--amount.is-error { background: var(--error-tint); border: 1.5px solid var(--error); }
.version-banner { margin-bottom: 4px; }
.formules-add { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.input--multi { height: auto; padding: 6px 8px; }

/* Member space (card 14): pills read from the frames, tiles 556 + 280 + 280, cards 567 */
.pill--navy { background: #E3EAF2; color: #2D4259; }
.pill--navy::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #2D4259; }
.pill--stone { background: #F2F0EA; color: #2D4259; }
.pill--stone::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #2D4259; }
.pill--red { background: #F7ECE9; color: #A6432F; }
.pill--red::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #A6432F; }
.member-top__title { font-size: 22px; font-weight: 700; }
.member-top__subtitle { font-size: 11px; font-weight: 500; color: var(--text-grey); margin-top: 8px; }
.member-tiles { display: grid; grid-template-columns: 556px 280px 280px; gap: 18px; }
.member-tile { background: var(--surface); border-radius: 15px; padding: 24px; box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 18px; }
.member-tile__eyebrow { font-size: 10.5px; font-weight: 700; text-transform: uppercase; color: var(--text-grey); }
.member-tile__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.member-tile__value { font-size: 20px; font-weight: 700; margin-top: 4px; }
.member-tile__glyph { width: 40px; height: 40px; }
.member-tile__fact { font-size: 10.5px; font-weight: 500; color: var(--text-grey); }
.member-tile__button { align-self: flex-start; }
.member-line { display: flex; align-items: flex-start; gap: 14px; }
.member-line--sand, .member-tile--contract .member-line { background: var(--sand); border-radius: 12px; padding: 16px; }
.member-line__tile { width: 32px; height: 32px; border-radius: 10px; background: var(--surface); color: var(--sand-dark); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.member-line__tile--dark { background: var(--sand-dark); color: var(--cream); }
.member-line__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.member-line__title { font-size: 16px; font-weight: 700; }
.member-line__name { font-size: 12.5px; font-weight: 700; }
.member-line__fact { font-size: 10.5px; font-weight: 500; color: var(--text-grey); }
.member-line__amount { font-size: 12px; font-weight: 700; margin-top: 2px; }
.member-cards { display: grid; grid-template-columns: repeat(2, 567px); gap: 18px; }
.member-card { gap: 18px; }
.member-card--wide { width: 1152px; max-width: 100%; }
.member-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.member-card__eyebrow { font-size: 10.5px; font-weight: 700; color: var(--text-grey); }
.member-card__title { font-size: 15px; font-weight: 700; margin-top: 2px; }
.member-card__link { font-size: 10.5px; font-weight: 700; color: var(--sand-dark); }
.member-list { display: flex; flex-direction: column; gap: 12px; }

/* Member space, Mes sociétés (card 15) */
.company-cards { display: flex; flex-direction: column; gap: 18px; }
.company-card { gap: 18px; }
.company-card__head { display: flex; align-items: flex-start; gap: 14px; width: 100%; padding: 16px; border: 0; border-radius: 12px; background: var(--sand); text-align: left; font: inherit; color: inherit; cursor: pointer; }
.company-card__body { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.company-card__name { font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.company-card__fact { font-size: 10.5px; font-weight: 500; color: var(--text-grey); }
.company-card__fact--ink { color: var(--ink); font-weight: 700; margin-top: 4px; }
.company-card__contracts { display: flex; flex-direction: column; gap: 12px; }
.company-card__detail { background: var(--sand); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.company-keys { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 0; }
.company-keys dt { font-size: 10.5px; font-weight: 500; color: var(--text-grey); }
.company-keys dd { margin: 4px 0 0; font-size: 12px; font-weight: 700; }
.company-docs { display: flex; gap: 18px; font-size: 11px; font-weight: 700; color: var(--sand-dark); }
.company-docs__spacer { flex: 1; }
.company-add { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 24px; font-size: 12px; font-weight: 700; color: var(--navy); text-decoration: none; }
.company-form { gap: 18px; }
.company-form__pill { margin: 6px 0; }
.company-form__total { display: flex; flex-direction: column; gap: 8px; }

/* Member space, Mes contrats (card 16) */
.contract-cards { display: flex; flex-direction: column; gap: 18px; }
.contract-family { font-size: 12px; font-weight: 700; margin-bottom: -4px; }
.contract-card { gap: 24px; }
.contract-card__head { display: flex; align-items: flex-start; gap: 14px; width: 100%; padding: 16px; border: 0; border-radius: 12px; background: var(--sand); text-align: left; font: inherit; color: inherit; cursor: pointer; }
.contract-card__body { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.contract-card__name { font-size: 16px; font-weight: 700; }
.contract-card__facts { font-size: 11px; font-weight: 500; color: var(--text-grey); }
.contract-card__count { font-size: 11px; font-weight: 500; color: var(--text-grey); white-space: nowrap; }
.contract-card__left { display: flex; flex-direction: column; gap: 14px; }
.contract-pairs { background: var(--sand); border-radius: 12px; padding: 6px 16px 12px; display: flex; flex-direction: column; }
.contract-pair { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 12px; border-bottom: 1px solid var(--border); }
.contract-pair span { font-weight: 500; color: var(--text-muted); }
.contract-pair strong { font-weight: 700; }
.contract-pairs__note { font-size: 10.5px; font-weight: 500; color: var(--text-grey); padding-top: 8px; }
.contract-pairs__links { display: flex; justify-content: flex-end; font-size: 11px; font-weight: 700; color: var(--sand-dark); padding-top: 4px; }
.renewal-box { gap: 12px; }
.product-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.product-tile { border: 1px solid var(--border); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.product-tile--held { background: var(--sand); border-color: var(--sand); }
.product-tile__name { font-size: 13px; font-weight: 700; }
.product-tile__contract { font-size: 11px; font-weight: 700; }
.product-tile__action { margin-top: auto; padding-top: 10px; }
.member-line--link { text-decoration: none; color: inherit; }
.bo-top__crumb a { color: inherit; text-decoration: none; }

/* Member space, cancellations (card 17) */
.actions--split { justify-content: space-between; }
.company-card__links { display: flex; justify-content: flex-end; font-size: 11px; font-weight: 700; }

/* Member space, documents and invoices (card 18) */
.member-card__count { font-size: 11px; font-weight: 500; color: var(--text-grey); }
.piece-list { display: flex; flex-direction: column; }
.piece { display: flex; align-items: center; gap: 12px; padding: 18px 0; border-top: 1px solid var(--border); }
.piece:first-child { border-top: 0; padding-top: 0; }
.piece__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.piece__date, .piece__amount { width: 120px; font-size: 12px; font-weight: 700; }
.piece__date { font-weight: 500; color: var(--text-grey); }
.member-note { font-size: 11px; font-weight: 500; color: var(--text-grey); }
.member-note a { color: inherit; }

/* Member space, Mes informations (card 19) */
.pill--muted { background: #EFEAE0; color: #5A5752; }
.pill--muted::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #5A5752; }
.preference { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--border); }
.preference:first-child { border-top: 0; padding-top: 0; }
.preference__label { flex: 1; font-size: 12.5px; font-weight: 700; }
.data-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.dialog__pairs { background: var(--sand); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.dialog__pair { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; }
.dialog__pair strong { font-weight: 700; }
.dialog__note { font-size: 11px; font-weight: 500; color: var(--text-grey); }

/* Back-office, dossiers à étudier (card 20) */
.dossier-filters { display: flex; gap: 12px; justify-content: flex-end; }
.input--select { height: 33px; padding: 0 12px; width: auto; }
.dossier-list { display: flex; flex-direction: column; }
.dossier-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--border); text-decoration: none; color: inherit; }
.dossier-row:first-child { border-top: 0; }
.dossier-row.is-selected { background: var(--sand); border-radius: 10px; }
.dossier-row__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dossier-row__name { font-size: 13px; font-weight: 700; }
.dossier-row__fact { font-size: 11px; font-weight: 500; color: var(--text-grey); }
.dossier-row__received { font-size: 11px; font-weight: 500; color: var(--text-grey); white-space: nowrap; }
.dossier-pagination { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; }
.dossier-columns { display: grid; grid-template-columns: 664px 420px; gap: 20px; }
.dossier-facts { display: flex; flex-direction: column; gap: 12px; }
.dossier-decision { background: var(--sand); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.input--textarea { height: 88px; resize: vertical; padding: 12px; }
.tile--link { text-decoration: none; color: inherit; }

/* Back-office, adhérents (card 21) */
.members-head { align-items: center; }
.members-head .bo-subtitle { margin-top: 0; }
.members-filters { display: flex; gap: 12px; align-items: center; }
.members-search { flex: 1; }
.member-row__cell { width: 120px; font-size: 11px; font-weight: 500; color: var(--text-muted); white-space: nowrap; }
.member-row__cell.amount { font-weight: 700; color: var(--ink); }
.member-head { align-items: center; }
.member-head .product-head__facts { display: flex; align-items: center; }
.member-blocks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }

/* Back-office, the member file's Sociétés page (card 22) */
.bo-company .company-card__head { text-decoration: none; color: inherit; display: flex; }
.company-card__head--static { cursor: default; }
.bo-company .company-card__contracts { display: flex; flex-direction: column; gap: 12px; padding-top: 12px; }
.bo-company .company-card__links form { display: inline; }
.bo-card .company-add { padding: 18px 0 0; }

/* Back-office, the member file's Contrats, Contrat and Paiements pages (card 23) */
.contract-card__head--link { text-decoration: none; color: inherit; }
.contract-card__content:not([hidden]) { display: flex; }
.piece .bo-line__check { flex: none; width: 18px; height: 18px; margin: 0; accent-color: #2D4259; }
.bo-line__check-space { flex: none; width: 18px; } /* card 39: a row that cannot be sent */

/* Back-office, the member file's Documents, Historique and Chiffre d’affaires pages (card 24) */
.red-box--action { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; }
.red-box--action > div { display: flex; flex-direction: column; gap: 4px; }
/* Card 30: the renewal banners of the member file (frames 2298:32226, 33355, 33604). */
.renewal-banner { border: 1px solid var(--border); border-radius: 10px; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--surface); }
.renewal-banner > div { display: flex; flex-direction: column; gap: 4px; }
.renewal-banner--study { background: var(--sand); border-color: var(--navy); }
.renewal-banner--accepted { background: var(--green-tint); border-color: var(--green); }
.renewal-banner__eyebrow { font-size: 9.5px; font-weight: 700; letter-spacing: .04em; color: var(--text-muted); }
.renewal-banner--accepted .renewal-banner__eyebrow { color: var(--green); }
.renewal-banner__title { font-size: 14px; font-weight: 700; color: var(--ink); }
.renewal-banner__text { font-size: 11px; font-weight: 500; color: var(--ink); }
.grid-table__name, .grid-table__total th { font-weight: 700; color: var(--ink); }
.grid-table__total td { font-weight: 700; }

/* Back-office, Paiements (card 25) */
.payment-row { border-top: 1px solid var(--border); }
.payment-row:first-child { border-top: 0; }
.payment-row .dossier-row { border-top: 0; }
.payment-row.is-selected { background: var(--sand); border-radius: 10px; }
.payment-row.is-selected .dossier-row { background: transparent; }
.payment-row__actions { display: flex; justify-content: flex-end; padding: 0 14px 12px; }

/* Back-office, Comptes & rôles (card 27) */
.tiles--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.role-card__line { padding: 6px 0; border-top: 1px solid var(--border); }
.role-card__line:first-child { border-top: 0; }
.btn--danger-text { color: var(--error); border-color: var(--error); }
.actions--split > span { display: flex; gap: 12px; }

/* Member space, the renewal (card 29) */
.company-add--soon { color: var(--disabled-text); cursor: default; }
.renewal-company .field { margin-top: 8px; }

/* Card 31: the renewal page's company actions (frames 2298:20747 to 21269). */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.renewal-company__action { align-self: flex-start; background: none; border: 0; padding: 0; font: inherit; font-size: 11px; font-weight: 700; color: var(--sand-dark); cursor: pointer; text-decoration: none; }
.renewal-company--cancelled .member-line__fact { color: var(--text-grey); }
button.company-add { width: 100%; background: none; border: 1px dashed var(--sand-stroke); border-radius: 10px; cursor: pointer; font-family: inherit; }
.renewal-add { border: 1px solid var(--navy); border-radius: 10px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.renewal-add__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.members-count { margin-left: auto; }  /* card 32: "{n} adhérents" at the right */

/* Legal pages (card 40: frames 2298:22292, 2298:22365, 2298:22467, 2298:22223) */
.bar--legal { border-bottom: 1px solid var(--border); padding: 18px 32px; gap: 12px; }
.bar__page { font-size: 12px; font-weight: 400; color: var(--text-grey); text-decoration: none; }
.bar--legal .bar__wordmark + .bar__page { margin-left: 12px; flex: 1; }
.legal-wrap { flex: 1; padding: 40px 16px 48px; display: flex; justify-content: center; align-items: flex-start; }
.legal { width: 880px; max-width: 100%; display: flex; flex-direction: column; gap: 24px; }
.legal__head { display: flex; flex-direction: column; gap: 4px; }
.legal__eyebrow { font-size: 11px; font-weight: 500; color: var(--text-grey); }
.legal__title { font-size: 24px; font-weight: 700; }
.legal__intro { font-size: 12px; color: var(--text-grey); }
.legal-card__title { font-size: 16px; font-weight: 700; }
.legal-card__text { font-size: 12px; color: var(--text-grey); line-height: 1.5; }
.legal-row { background: var(--sand); border-radius: 12px; padding: 11px 14px; display: flex; gap: 16px; align-items: baseline; }
.legal-row__label { width: 280px; flex: none; font-size: 12px; color: var(--text-grey); }
.legal-row__label--wide { width: 300px; }
.legal-row__value { flex: 1; min-width: 0; font-size: 13px; font-weight: 700; }
.legal .is-pending { color: var(--error); }
.legal-purpose { background: var(--sand); border-radius: 12px; padding: 14px; display: flex; gap: 14px; align-items: center; }
.legal-purpose__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.legal-purpose__name { font-size: 13px; font-weight: 700; }
.legal-purpose__text { font-size: 11px; color: var(--text-grey); }
.legal-purpose__state { font-size: 11px; font-weight: 500; color: var(--text-grey); white-space: nowrap; }
.legal-purpose__state.is-pending { color: var(--error); }  /* card 47b: the selector never matched */
.legal-cookie { background: var(--sand); border-radius: 12px; padding: 11px 14px; display: flex; gap: 16px; font-size: 12px; }
.legal-cookie__name { width: 200px; flex: none; font-weight: 700; }
.legal-cookie__purpose { flex: 1; min-width: 0; color: var(--text-grey); }
.legal-cookie__duration { width: 120px; flex: none; text-align: right; color: var(--text-grey); }

/* 404 and error pages (card 44: frames 2298:22584, 2298:22632) */
.error-wrap { padding-top: 120px; padding-bottom: 120px; }
.error-card { gap: 18px; }
.error-code { font-size: 48px; font-weight: 700; line-height: 1; }
.error-head { display: flex; flex-direction: column; gap: 6px; }
.error-title { font-size: 18px; font-weight: 700; }
.error-title--large { font-size: 24px; }
.error-text { font-size: 13px; color: var(--text-grey); }
.error-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.error-facts { background: var(--sand); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.error-fact { display: flex; gap: 16px; }
.error-fact__label { width: 220px; flex: none; font-size: 12px; color: var(--text-grey); }
.error-fact__value { flex: 1; min-width: 0; font-size: 13px; font-weight: 700; }
.error-link { background: var(--sand); border-radius: 12px; padding: 12px 14px; display: flex; gap: 12px; align-items: center; text-decoration: none; }
.error-link__tile { width: 32px; height: 32px; border-radius: 12px; background: var(--surface); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.error-link__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.error-link__title { font-size: 13px; font-weight: 700; }
.error-link__text { font-size: 11px; color: var(--text-grey); }
.error-link__chevron { font-size: 13px; font-weight: 500; color: var(--text-grey); }

/* Phone and tablet, sections A and D (card 47: frames on 08 Mobile and 09 Tablet).
   Mobile below 768 px, tablet 768 to 1199 px; desktop, from 1200 px, is the rules above. */
.bar__brand, .page-kicker, .stepper-current, .back-link, .only-compact { display: none; }

@media (max-width: 1199.98px) {
  .bar { height: 50px; padding: 0 40px; gap: 10px; }
  .bar__logo { width: 22px; height: 22px; border-radius: 6px; background-size: 14px 14px; }
  .bar__title { display: none; }
  .bar__brand { display: inline; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
  .bar--legal .bar__page { display: none; }
  .main, .main--centred { padding: 16px 40px 28px; gap: 18px; }
  .legal-wrap { padding: 16px 40px 28px; }
  .legal { width: 944px; gap: 18px; }
  .card, .panel { padding: 18px; }
  .input { min-height: 44px; font-size: 16px; }
  .btn { height: 44px; }  /* card 48c: mdb-buttons-v1, 44 high on phone and tablet */
  .input-suffix { font-size: 16px; }
  .field__label { font-size: 10.5px; font-weight: 700; }
  .field__hint { font-size: 10px; }
  .error-link__chevron { display: none; }
  .only-desktop { display: none; }
  .only-compact { display: block; }
  .pre-row__facts span { display: block; }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
  .main .actions { justify-content: space-between; }
  .back-link--top { display: inline-block; order: -1; align-self: flex-start; font-size: 12px; font-weight: 500; color: var(--navy); text-decoration: underline; }
  .main:has(.back-link--top) .actions--sticky { justify-content: flex-end; }
  .main:has(.back-link--top) .actions--sticky .btn--secondary { display: none; }
  .stepper__step { flex: 1; }
  .stepper__step:last-child { flex: none; }
  .stepper__step + .stepper__step { border-left: 0; padding-left: 0; }
  .stepper__step:not(:last-child)::after { content: ""; flex: 1; height: 1px; background: var(--border); margin: 0 8px; }
  .pay-form { background: none; box-shadow: none; padding: 0; align-items: flex-end; }
  .pay-form .btn--block { width: auto; }
  .bar--legal a.bar__page { display: inline; margin-left: auto; }
  .choice--amo.is-reserved { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 3px; align-items: center; }
  .choice--amo.is-reserved .choice__lock { grid-row: 1 / span 2; }
  .choice--amo.is-reserved .choice__body, .choice--amo.is-reserved .choice__side { grid-column: 2; }
  .choice--amo.is-reserved .choice__side { flex-direction: column; align-items: flex-start; gap: 3px; }
  .choice--amo.is-reserved .choice__side .btn { align-self: flex-end; }
  .choice--amo.is-available { flex-direction: column; align-items: stretch; gap: 3px; }  /* 2324:10957 */
  .choice--amo.is-available .choice__side { flex-direction: column; align-items: flex-start; gap: 3px; }
  .choice--amo.is-available .choice__side .btn { align-self: flex-end; }
}

@media (max-width: 767.98px) {
  .bar { padding: 0 16px; }
  .main, .main--centred { padding: 16px 16px 28px; gap: 14px; }
  .main--centred { align-items: stretch; }
  .main--status { justify-content: flex-start; }
  .page-kicker { display: block; font-size: 11px; font-weight: 700; margin-bottom: 8px; }
  .page-title { font-size: 17px; }
  .stepper__step { flex: 1; padding: 0; gap: 0; }
  .stepper__step + .stepper__step { padding-left: 0; border-left: 0; }
  .stepper__step:not(:last-child)::after { content: ""; flex: 1; height: 1px; background: var(--border); margin: 0 8px; }
  .stepper__label { display: none; }
  .stepper-current { display: block; font-size: 11px; font-weight: 700; }
  .back-link { display: inline-block; align-self: flex-start; font-size: 12px; font-weight: 500; color: var(--navy); text-decoration: underline; }
  .columns { flex-direction: column; gap: 14px; align-items: stretch; }
  .column-side { width: 100%; }
  .field-row:not(.field-row--pair) { flex-direction: column; }
  .choice--amo { flex-direction: column; align-items: stretch; }
  .choice--amo .choice__side { flex-direction: column; align-items: stretch; gap: 10px; }
  .choice--amo .btn { width: 100%; }
  .compare th, .compare td { padding-left: 3px; padding-right: 3px; }
  .compare thead th:not(:first-child), .compare td { width: 62px; }  /* 1687:416: 56 px cells */
  .choice--amo.is-reserved .choice__lock { align-self: flex-start; }
  .choice--amo.is-reserved .choice__title { font-size: 15px; }
  .choice--amo.is-reserved .choice__side { flex-direction: column; align-items: stretch; gap: 12px; }
  .choice--amo.is-added .choice__side, .choice--amo.is-available .choice__side { flex-direction: column; align-items: stretch; gap: 12px; }  /* 1687:198, 1687:623 */
  .stack { gap: 14px; }
  .doc-row { flex-wrap: wrap; }
  .doc-row__body { flex: 1 1 auto; }
  .doc-row--expected { background: var(--sand); }
  .doc-row__button { margin-left: auto; }
  .result, .result--narrow { width: 100%; }
  .actions--sticky, .sticky-primary { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; margin: 0; padding: 12px 16px; background: var(--surface); border-top: 1px solid var(--border); }
  .actions--sticky { justify-content: stretch; }
  .actions--sticky .btn--secondary { display: none; }
  .actions--sticky .btn--primary { flex: 1; }
  .main .actions:not(.actions--sticky) { flex-direction: column; align-items: stretch; }
  .main .actions:not(.actions--sticky) .btn { width: 100%; }
  .sticky-primary .btn { width: 100%; }
  body:has(.actions--sticky, .sticky-primary) { padding-bottom: 64px; }
  .footer { flex-direction: column; gap: 6px; padding: 16px; text-align: center; }
  .footer__links { flex-wrap: wrap; justify-content: center; gap: 6px 14px; }
  .footer__right { margin-left: 0; }
  .legal-wrap { padding: 16px 16px 28px; }
  .legal { gap: 14px; }
  .legal__title { font-size: 20px; }
  .legal-row { flex-wrap: wrap; gap: 4px 12px; }
  .legal-row__label, .legal-row__label--wide { width: auto; flex: 0 1 auto; }
  .legal-cookie { flex-wrap: wrap; gap: 4px 12px; }
  .error-wrap { padding: 16px 16px 28px; }
  .error-fact { gap: 12px; }
  .error-fact__label { width: auto; flex: 1; }
  .error-fact__value { flex: 0 1 auto; text-align: right; }
  .error-actions { flex-direction: column; }
  .error-actions .btn { width: 100%; }
  .error-link { background: none; padding: 8px 0; }
  .error-link__tile { background: var(--sand); }
  .choice--radio { display: grid; grid-template-columns: auto 1fr auto; column-gap: 12px; row-gap: 4px; align-items: center; }
  .choice--radio .choice__body { display: contents; }
  .choice--radio .choice__title { grid-column: 2; grid-row: 1; }
  .choice--radio .choice__price { grid-column: 3; grid-row: 1; }
  .choice--radio .choice__desc { grid-column: 1 / 4; grid-row: 2; }
  .columns:has(#step3-form) .column-main, .columns:has(#step3-form) .column-main > .stack, #step3-form { display: contents; }
  .columns:has(#step3-form) .column-side { order: 1; }
  .columns:has(#step3-form) #conditions { order: 2; background: var(--surface); padding: 18px; border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
  .columns:has(.pay-form) .column-main, .columns:has(.pay-form) .column-main > .stack { display: contents; }
  .columns:has(.pay-form) .column-side { order: 1; }
  .columns:has(.pay-form) .pay-form { order: 2; background: none; box-shadow: none; padding: 0; }
  .legal-row__value { flex: 0 1 auto; margin-left: auto; text-align: left; }
  .legal-cookie__name, .legal-cookie__duration { width: auto; }
  .legal-cookie__name { flex-basis: 100%; }
  .legal-cookie__purpose { flex-basis: 100%; order: 2; }
  .legal-cookie__duration { flex-basis: 100%; order: 3; text-align: right; }
}
