/* Sign-up wizard, look update and status page. Loaded only on /inscription/creer/, /inscription/modifier/ and /inscription/suivi/. */

/* preview fonts (OFL, latin subset, self-hosted: see README) */
@font-face { font-family: "PV Montserrat"; src: url("/fonts/preview/montserrat.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "PV Poppins"; src: url("/fonts/preview/poppins.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "PV Raleway"; src: url("/fonts/preview/raleway.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "PV Playfair Display"; src: url("/fonts/preview/playfair-display.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "PV Oswald"; src: url("/fonts/preview/oswald.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "PV Space Grotesk"; src: url("/fonts/preview/space-grotesk.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "PV Nunito"; src: url("/fonts/preview/nunito.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "PV Bebas Neue"; src: url("/fonts/preview/bebas-neue.woff2") format("woff2"); font-weight: 400; font-display: swap; }

.wz { --ok: #6fe0b8; --warn: #ffc56b; --err: #ff8a8a; --field: #0b0d12; --field-line: rgba(255,255,255,.16); padding-bottom: 72px; }
.wz [hidden] { display: none !important; }
.wz-banner { margin: 0; padding: 12px 16px; text-align: center; font-weight: 700; font-size: .95rem; background: repeating-linear-gradient(135deg, #5a3a00, #5a3a00 14px, #4a3000 14px, #4a3000 28px); color: #ffe2b0; border-bottom: 1px solid rgba(255,197,107,.4); }
.wz-head { padding-top: 28px; }
.wz-head .eyebrow { margin-bottom: 4px; }

.wz-grid { display: grid; gap: 28px; align-items: start; padding-top: 8px; }
.wz-grid > * { min-width: 0; }
@media (min-width: 1100px) {
  .wz-grid { grid-template-columns: 220px minmax(0, 1fr) 300px; }
  .wz-grid.no-aside { grid-template-columns: 220px minmax(0, 1fr); }
  .wz-grid.no-stepper { grid-template-columns: minmax(0, 1fr) 340px; }
}
@media (min-width: 760px) and (max-width: 1099px) {
  .wz-grid { grid-template-columns: minmax(0, 1fr) 280px; }
  .wz-grid.no-aside { grid-template-columns: minmax(0, 1fr); }
  .wz-steps { grid-column: 1 / -1; }
}

/* stepper */
.wz-steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.wz-steps button { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 6px 10px; border: 0; border-radius: 12px; background: none; color: var(--muted); font: inherit; font-size: .93rem; font-weight: 600; text-align: left; cursor: pointer; }
.wz-steps button:hover:not(:disabled) { background: rgba(255,255,255,.05); color: var(--text); }
.wz-steps button:disabled { cursor: default; opacity: .45; }
.wz-steps .n { flex: 0 0 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; border: 1.5px solid rgba(255,255,255,.25); }
.wz-steps .done .n { background: rgba(78,206,206,.16); border-color: transparent; color: var(--teal); }
.wz-steps [aria-current="step"] button { background: rgba(78,206,206,.1); color: var(--text); }
.wz-steps [aria-current="step"] .n { background: var(--teal); color: var(--teal-ink); border-color: var(--teal); }
.wz-steps .skip { display: none; }
.wz-save { margin: 12px 10px 0; font-size: .85rem; color: var(--muted); min-height: 1.4em; }
@media (max-width: 1099px) {
  .wz-steps ol { display: flex; overflow-x: auto; gap: 6px; padding-bottom: 6px; scrollbar-width: thin; }
  .wz-steps li { flex: 0 0 auto; }
  .wz-steps button span:not(.n) { display: none; }
  .wz-steps [aria-current="step"] button span { display: inline; }
  .wz-steps button { padding: 4px 8px; }
}

/* main column */
.wz-main { display: grid; gap: 18px; }
.wz-step { display: grid; gap: 18px; }
.wz-step > h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin: 0; }
.wz-step > .eyebrow { margin: 0 0 -10px; }
.lead-s { color: var(--muted); margin: -6px 0 0; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px; display: grid; gap: 14px; min-width: 0; margin: 0; }
@media (min-width: 700px) { .panel { padding: 24px; } }
fieldset.panel, fieldset { min-width: 0; }
fieldset { border: 0; padding: 0; margin: 0; }
.panel > legend, fieldset > legend { font-weight: 700; padding: 0; margin-bottom: 10px; float: left; width: 100%; }
fieldset > legend + * { clear: both; }
.panel h3 { margin: 0; font-size: 1.05rem; }
.panel-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.note { color: var(--muted); }
.hint { color: var(--muted); font-size: .88rem; margin: 0; line-height: 1.5; }
.tip { margin: 0; font-size: .92rem; padding: 12px 14px; border-radius: 12px; background: rgba(78,206,206,.08); border: 1px solid rgba(78,206,206,.2); }
.opt { font-weight: 400; color: var(--muted); }
.grow { flex: 1 1 220px; min-width: 0; }
.center { text-align: center; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--teal); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* fields */
.form { gap: 14px; }
.wz label, .ac > label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.wz input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=file]), .wz select, .wz textarea {
  font: inherit; font-weight: 400; color: var(--text); background: var(--field); border: 1px solid var(--field-line); border-radius: 12px; padding: 11px 14px; min-height: 48px; width: 100%;
}
.wz textarea { resize: vertical; line-height: 1.5; }
.wz input:focus, .wz select:focus, .wz textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(78,206,206,.22); }
.wz input[aria-invalid="true"], .wz textarea[aria-invalid="true"], .wz select[aria-invalid="true"] { border-color: var(--err); }
.wz .err-msg { color: var(--err); font-size: .85rem; font-weight: 600; margin: -6px 0 0; }
.wz fieldset > fieldset { margin-top: 4px; }
.wz .panel.form fieldset { display: grid; gap: 14px; }
.row2 { display: grid; gap: 14px; }
@media (min-width: 600px) { .row2 { grid-template-columns: 1fr 1fr; } }
.row-end { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.check { grid-template-columns: auto 1fr !important; align-items: start; font-weight: 400 !important; color: var(--muted); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--teal); }
.count { justify-self: end; font-size: .8rem; color: var(--muted); font-weight: 400; margin-top: -8px; }
.count.full { color: var(--warn); }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.08); color: var(--text); }
.chip.ok { background: rgba(111,224,184,.14); color: var(--ok); }
.chip.warn { background: rgba(255,197,107,.14); color: var(--warn); }
.chip.err { background: rgba(255,138,138,.14); color: var(--err); }
.chip.busy::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* segmented tabs */
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--line); justify-self: start; }
.seg button, .seg label span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: inherit; font-weight: 700; font-size: .92rem; cursor: pointer; }
.seg label { display: block !important; }
.seg [aria-selected="true"], .seg [aria-pressed="true"], .seg input:checked + span { background: var(--teal); color: var(--teal-ink); }
.seg input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; }
.seg-small button, .seg-small label span { min-height: 34px; padding: 0 12px; font-size: .85rem; }

/* toggles (checkbox chips) */
.toggles { display: flex !important; flex-wrap: wrap; gap: 10px; }
.toggles legend { margin-bottom: 4px; }
.tog { display: inline-flex !important; grid-template-columns: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--field-line); cursor: pointer; font-weight: 700; }
.tog input { accent-color: var(--teal); width: 18px; height: 18px; margin: 0; }
.tog:has(input:checked) { border-color: var(--teal); background: rgba(78,206,206,.1); }

/* option cards (radios) */
.cards2, .cards3, .layouts { display: grid; gap: 12px; }
@media (min-width: 600px) { .cards2 { grid-template-columns: 1fr 1fr; } .cards3 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } .layouts { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } }
.cards2 > legend, .cards3 > legend, .layouts > legend { grid-column: 1 / -1; }
.opt-card { display: flex !important; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; border: 1.5px solid var(--field-line); background: var(--bg-2); cursor: pointer; min-width: 0; }
.opt-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt-card > span:last-child { display: grid; gap: 2px; min-width: 0; }
.opt-card b { font-size: 1rem; }
.opt-card small { color: var(--muted); font-weight: 400; font-size: .85rem; }
.opt-card.big { padding: 18px; min-height: 92px; }
.opt-card:has(input:checked) { border-color: var(--teal); background: rgba(78,206,206,.09); box-shadow: 0 0 0 1px var(--teal) inset; }
.opt-card:has(input:focus-visible) { outline: 3px solid var(--teal); outline-offset: 3px; }
.swatch { flex: 0 0 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); }
.sw-white { background: #fff; } .sw-black { background: #000; } .sw-own { background: linear-gradient(135deg, var(--teal), var(--plum-2)); }
.own-icon { grid-column: 1 / -1; }
.lay-mini { flex: 0 0 34px; height: 60px; border-radius: 7px; border: 2px solid #2a2e38; background: #fff; position: relative; overflow: hidden; }
.lay-mini i { position: absolute; inset: 0; background: linear-gradient(160deg, #e9a93b, #6b4c86); }
.lay-mini b { position: absolute; left: 3px; right: 3px; height: 12px; background: #fff; border-radius: 3px; }
.lay-mini.lay-band i { bottom: 55%; } .lay-mini.lay-band b { top: 52%; }
.lay-mini.lay-sheet b { left: 0; right: 0; bottom: 0; height: 40%; border-radius: 6px 6px 0 0; }
.lay-mini.lay-welcome b { bottom: 4px; height: 7px; border-radius: 4px; }
.lay-mini.lay-hero i { bottom: 40%; -webkit-mask: linear-gradient(#000 60%, transparent); mask: linear-gradient(#000 60%, transparent); } .lay-mini.lay-hero b { top: 58%; }
.lay-mini.lay-glass b { top: 30%; height: 40%; background: rgba(255,255,255,.75); }
.lay-mini.lay-extend b { bottom: 4px; height: 30%; }

.switch-row { display: flex !important; align-items: center; justify-content: space-between; gap: 16px; }
.switch-row > span { display: grid; gap: 2px; }
.switch-row small { color: var(--muted); font-weight: 400; font-size: .86rem; }
.switch { appearance: none; -webkit-appearance: none; flex: 0 0 52px; width: 52px; height: 30px; border-radius: 15px; background: #3a3f4b; position: relative; cursor: pointer; margin: 0; transition: background .15s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch:checked { background: var(--teal); }
.switch:checked::after { transform: translateX(22px); }
.switch:disabled { opacity: .6; cursor: default; }
.durations { display: flex !important; flex-wrap: wrap; gap: 8px; align-items: center; }
.durations legend { float: none; width: auto; margin: 0 8px 0 0; font-weight: 600; color: var(--muted); }
.pill { display: inline-flex !important; cursor: pointer; }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill span { min-height: 38px; padding: 0 16px; display: inline-flex; align-items: center; border-radius: 999px; border: 1.5px solid var(--field-line); font-weight: 700; }
.pill input:checked + span { border-color: var(--teal); background: rgba(78,206,206,.12); color: var(--teal); }
.pill input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; }

/* buttons */
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.btn-file { position: relative; justify-self: start; cursor: pointer; display: inline-flex !important; }
.btn-file:focus-within { outline: 3px solid var(--teal); outline-offset: 3px; }
.btn-file input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.wz-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; position: sticky; bottom: 0; padding: 14px 0; background: linear-gradient(transparent, var(--bg) 30%); z-index: 5; }
.wz-nav .btn:only-child, .wz-nav [data-next] { margin-left: auto; }
.wz-alert { margin: 0; padding: 12px 16px; border-radius: 14px; background: rgba(255,138,138,.1); border: 1px solid rgba(255,138,138,.35); color: #ffd0d0; font-weight: 600; }
.wz-alert.info { background: rgba(78,206,206,.1); border-color: rgba(78,206,206,.35); color: var(--text); }

/* logo */
.file-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.file-thumb { width: 132px; height: 72px; border-radius: 12px; border: 1px dashed var(--field-line); background: #fff center/contain no-repeat; flex: 0 0 auto; }
.file-thumb:empty { background-color: rgba(255,255,255,.04); }
.file-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.file-row .grow { display: grid; gap: 8px; }
.squares { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.squares figure { margin: 0; display: grid; gap: 8px; align-content: start; font-size: .82rem; color: var(--muted); }
.squares b { color: var(--text); }
/* square crop of the logo: checkerboard = transparent, the image always covers the square */
.crop-open { margin: 8px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.logo-crop { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 16px; align-items: start; margin-top: 14px; }
.lc-view { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 12px; touch-action: none; cursor: grab; outline: 2px solid #fff; outline-offset: -2px;
  background: #fff repeating-conic-gradient(#d9dde3 0 25%, #fff 0 50%) 0 0 / 20px 20px; }
.lc-view:active { cursor: grabbing; }
.lc-view img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.lc-side { display: grid; gap: 12px; }
.lc-zoom { display: grid; gap: 6px; font-weight: 700; font-size: .88rem; }
.lc-actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 559px) { .logo-crop { grid-template-columns: 1fr; } .lc-view { max-width: 320px; width: 100%; } }
.ai-texts { display: grid; gap: 10px; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.ai-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ai-confirm { display: grid; gap: 8px; }
.ai-confirm p { margin: 0; }
.card-color { grid-column: 1 / -1; display: grid; gap: 10px; }
.sq-note { display: block; margin-top: 4px; font-size: .72rem; line-height: 1.35; color: var(--muted); }
.sq { aspect-ratio: 1; border-radius: 16px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); }
.sq img { width: 100%; height: 100%; object-fit: contain; }
.sq-actions { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; align-items: baseline; }
.sq-actions .sq-replace { display: inline-flex !important; }
.sq-actions .linkish { font-size: .8rem; font-weight: 600; text-align: left; line-height: 1.35; }
.sq-own { flex-basis: 100%; font-size: .72rem; font-weight: 600; color: var(--teal); }

.sq-light { background: #fff; } .sq-dark { background: #000; } .sq-icon { background: #fff; border-radius: 22%; }
img:not([src]) { visibility: hidden; }

/* AI logo generator */
.gen-form { display: grid; gap: 12px; }
@media (min-width: 600px) { .gen-form { grid-template-columns: 1fr auto; align-items: end; } .gen-form .btn { margin-bottom: 26px; } }
.gen-list { display: grid; gap: 16px; }
.gen-list:empty { display: none; }
.gen-h { margin: 0 0 8px; font-size: .88rem; color: var(--muted); overflow-wrap: anywhere; }
.gen-h b { color: var(--text); }
.gen-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.gen-tile { position: relative; aspect-ratio: 1; border-radius: 14px; border: 2px solid transparent; background: #fff; padding: 8px; cursor: pointer; display: grid; place-items: center; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.gen-tile img { width: 100%; height: 100%; object-fit: contain; }
.gen-tile:hover:not([disabled]) { border-color: rgba(78,206,206,.5); }
.gen-tile:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.gen-tile[aria-pressed="true"] { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal); }
.gen-tile[disabled] { cursor: default; opacity: .6; }
.gen-tile.busy { background: rgba(255,255,255,.05); box-shadow: 0 0 0 1px var(--line) inset; cursor: default; }
.gen-tile.busy::before { content: ""; width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--teal); border-right-color: transparent; animation: spin .8s linear infinite; }
.gen-chosen { position: absolute; left: 6px; bottom: 6px; padding: 2px 8px; border-radius: 999px; background: var(--teal); color: var(--teal-ink); font-size: .72rem; font-weight: 800; }
.lc-mini { flex: 0 0 34px; height: 60px; border-radius: 7px; border: 2px solid #2a2e38; background: linear-gradient(160deg, #e9a93b, #6b4c86); position: relative; overflow: hidden; }
.lc-mini i { position: absolute; left: 6px; right: 6px; top: 16px; height: 12px; border-radius: 3px; }
.lc-card i { background: #fff; }
.lc-none i { background: none; border: 2px solid #fff; border-width: 0 0 4px; }
.lk-mini { flex: 0 0 34px; height: 60px; border-radius: 7px; border: 2px solid #2a2e38; background: linear-gradient(160deg, #e9a93b, #6b4c86); position: relative; overflow: hidden; }
.lk-mini i { position: absolute; top: 16px; height: 12px; border-radius: 3px; background: #fff; }
.lk-logo i { left: 11px; right: 11px; }
.lk-banner i { left: 3px; right: 3px; height: 9px; top: 18px; }
/* login banner: upload, 3:1 crop, optional dark version */
.banner-up { grid-column: 1 / -1; display: grid; gap: 14px; }
.banner-thumb { width: 150px; height: 50px; border-radius: 10px; border: 1px dashed var(--field-line); flex: 0 0 auto; overflow: hidden;
  background: #fff repeating-conic-gradient(#d9dde3 0 25%, #fff 0 50%) 0 0 / 12px 12px; }
.banner-thumb.bt-dark { background: #000 repeating-conic-gradient(#2a2e38 0 25%, #111 0 50%) 0 0 / 12px 12px; }
.banner-thumb img { width: 100%; height: 100%; object-fit: contain; }
.banner-thumb img:not([src]) { visibility: hidden; }
.banner-crop { grid-template-columns: minmax(0, 1fr); }
.bc-title { margin: 0; font-weight: 700; color: var(--text); }
.bc-view { aspect-ratio: 3; max-width: 480px; width: 100%; }
.banner-dark { display: grid; gap: 10px; }
.banner-dark .grow { display: grid; gap: 6px; justify-items: start; }
.seg-mode { justify-self: center; }

/* colours */
.colors { display: grid; gap: 10px; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.swatches .hint { margin-right: 2px; }
.sw-btn { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--bg-2); box-shadow: 0 0 0 1.5px var(--field-line); cursor: pointer; padding: 0; }
.sw-btn[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--teal); }
.hex { display: flex !important; align-items: center; gap: 10px; max-width: 280px; }
.hex input[data-hex] { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; }
.hex input[type=color] { flex: 0 0 48px; width: 48px; height: 48px; border: 1px solid var(--field-line); border-radius: 12px; background: var(--field); padding: 4px; cursor: pointer; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.checks .dot { flex: 0 0 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 800; }
.checks .ok .dot { background: rgba(111,224,184,.18); color: var(--ok); }
.checks .warn .dot { background: rgba(255,197,107,.18); color: var(--warn); }
.checks .err .dot { background: rgba(255,138,138,.18); color: var(--err); }
.checks .info .dot { background: rgba(255,255,255,.1); color: var(--muted); }
.checks .ratio { margin-left: auto; font-weight: 800; white-space: nowrap; padding-left: 8px; }
.checks .sample { flex: 0 0 auto; padding: 0 8px; border-radius: 6px; font-weight: 700; font-size: .8rem; line-height: 22px; }
.fonts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.font-btn { display: grid; gap: 4px; padding: 14px; border-radius: 14px; border: 1.5px solid var(--field-line); background: var(--bg-2); color: var(--text); text-align: left; cursor: pointer; min-width: 0; }
.font-btn .sample { font-size: 1.35rem; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.font-btn small { color: var(--muted); font: 600 .78rem/1.3 var(--font); }
.font-btn[aria-pressed="true"] { border-color: var(--teal); background: rgba(78,206,206,.09); box-shadow: 0 0 0 1px var(--teal) inset; }
.font-scope-row { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 600; }
.font-scope-row:empty { display: none; }
.chip.font-scope { font-size: .76rem; padding: 3px 9px; vertical-align: middle; }
.order-row-v .chip.font-scope { margin-left: 8px; }

/* photo */
.crop { display: grid; gap: 10px; }
.crop-img { position: relative; width: 100%; max-width: 560px; border-radius: 12px; overflow: hidden; background: #222 center/cover no-repeat; touch-action: none; }
.crop-frame { position: absolute; top: 0; bottom: 0; border: 2px solid #fff; box-shadow: 0 0 0 9999px rgba(7,8,11,.6); cursor: grab; }
.crop-frame:active { cursor: grabbing; }
.crop-frame span { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: #fff; color: #111; font-size: .72rem; font-weight: 800; padding: 3px 8px; border-radius: 999px; }
.stock { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.stock-pic { cursor: pointer; border-radius: 14px; overflow: hidden; border: 3px solid transparent; display: block !important; }
.stock-pic img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.stock-pic:has(input:checked) { border-color: var(--teal); }
.stock-pic:has(input:focus-visible) { outline: 3px solid var(--teal); outline-offset: 2px; }

/* autocomplete */
.ac { position: relative; display: grid; gap: 6px; }
.ac ul { position: absolute; z-index: 20; top: 100%; left: 0; right: 0; margin: 4px 0 0; padding: 6px; list-style: none; background: #191c24; border: 1px solid var(--field-line); border-radius: 12px; box-shadow: 0 20px 40px -10px rgba(0,0,0,.8); max-height: 280px; overflow: auto; }
.ac li { padding: 10px 12px; border-radius: 8px; cursor: pointer; font-size: .92rem; }
.ac li small { display: block; color: var(--muted); }
.ac li[aria-selected="true"], .ac li:hover { background: rgba(78,206,206,.14); }
.ac li.none { cursor: default; color: var(--muted); }
.route-box { margin: 0; display: grid; gap: 10px; }
.route-box svg { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); display: block; }
.route-bg { fill: #10141b; }
.route-grid { stroke: rgba(255,255,255,.05); stroke-width: 1; }
.route-line { fill: none; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.route-pin { stroke: #fff; stroke-width: 3; }
.route-lbl { fill: #fff; font: 700 14px var(--font); paint-order: stroke; stroke: rgba(0,0,0,.7); stroke-width: 4px; }

/* recap */
.recap-phones { display: flex; flex-wrap: wrap; gap: 16px; }
.recap-phones figure { margin: 0; display: grid; gap: 6px; justify-items: center; font-size: .85rem; color: var(--muted); }
.recap-phones .phone-sim { --wn: 150; }
.recap { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); margin: 0; }
.recap > div { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: grid; gap: 4px; min-width: 0; }
.recap dt { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .78rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.recap dt button { font-size: .85rem; text-transform: none; letter-spacing: 0; }
.recap dd { margin: 0; overflow-wrap: anywhere; }
.recap .dots { display: inline-flex; gap: 6px; vertical-align: middle; margin-right: 6px; }
.recap .dots i { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line); }

/* subscription */
.plan-card { display: grid !important; gap: 4px; padding: 16px 18px; border-radius: 16px; border: 1.5px solid var(--field-line); background: var(--bg-2); cursor: pointer; }
.plan-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.plan-card b { font-size: 1.1rem; }
.plan-card .price { font-size: 1.05rem; }
.plan-card small { color: var(--muted); font-weight: 400; }
.plan-card:has(input:checked) { border-color: var(--teal); background: linear-gradient(165deg, rgba(107,24,102,.55), rgba(62,6,60,.4)); box-shadow: 0 0 0 1px var(--teal) inset; }
.plan-card:has(input:focus-visible) { outline: 3px solid var(--teal); outline-offset: 3px; }
.card-el { background: #fff; border-radius: 12px; padding: 14px; min-height: 48px; }
.card-el.mock { background: var(--field); color: var(--muted); border: 1px dashed var(--field-line); font-size: .9rem; }
.saved-card { display: flex !important; align-items: center; gap: 10px; font-weight: 600 !important; }
.saved-card input { accent-color: var(--teal); width: 18px; height: 18px; margin: 0; }
.order { display: grid; gap: 12px; }
.order h2 { font-size: 1.2rem; margin: 0; }
.order-app { display: flex; align-items: center; gap: 12px; }
.order-app > span:last-child { display: grid; }
.order-app small { color: var(--muted); }
.order-icon { width: 52px; height: 52px; border-radius: 12px; overflow: hidden; background: #fff; flex: 0 0 52px; display: grid; place-items: center; }
.order-icon img { width: 100%; height: 100%; object-fit: contain; }
.order-icon.bg-black { background: #000; }
/* the app being ordered: one row per thing, its « Modifier » on the label line */
.order-note { margin: 0; }
.order-rows { list-style: none; margin: 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.order-rows li { display: grid; gap: 4px; min-width: 0; }
.order-row-h { margin: 0; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .74rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.order-row-h .linkish { font-size: .85rem; font-weight: 600; text-transform: none; letter-spacing: 0; }
.order-row-v { font-size: .92rem; min-width: 0; overflow-wrap: anywhere; }
.order-row-v .dots { display: inline-flex; gap: 6px; vertical-align: middle; margin-right: 8px; }
.order-row-v .dots i { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line); }
.order-thumbs { display: flex; gap: 8px; }
.order-thumb { width: 44px; height: 44px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); display: grid; place-items: center; }
.order-thumb img { width: 100%; height: 100%; object-fit: contain; }
.order-thumb img:not([src]) { visibility: hidden; }
.order-thumb-icon { border-radius: 22%; margin-left: 6px; }
.order-font { font-size: 1.15rem; font-weight: 600; }
.order-login { display: flex; gap: 12px; align-items: flex-start; }
.order-login .phone-sim { --wn: 96; }
.order-login-t { display: grid; gap: 2px; font-size: .88rem; }
.order-texts { display: grid; gap: 2px; }
.order-sub { font-weight: 700; }
.order-desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: .85rem; }
.order dl { margin: 0; display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.order dl div { display: flex; justify-content: space-between; gap: 8px; font-size: .95rem; }
.order dl div.total { font-weight: 800; font-size: 1.05rem; }
.order dd { margin: 0; white-space: nowrap; }

/* payment progress */
.wz-pay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(7,8,11,.8); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.wz-pay .card { width: min(440px, 100%); }
.wz-pay h2 { font-size: 1.3rem; }
.pay-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pay-steps li { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.pay-steps li::before { content: ""; flex: 0 0 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); }
.pay-steps li.current { color: var(--text); font-weight: 700; }
.pay-steps li.current::before { border-color: var(--teal); border-right-color: transparent; animation: spin .8s linear infinite; }
.pay-steps li.done { color: var(--text); }
.pay-steps li.done::before { background: var(--teal); border-color: var(--teal); }

/* aside */
.wz-aside { display: grid; gap: 14px; }
@media (min-width: 760px) { .wz-aside { position: sticky; top: 84px; } }
/* the order card (step 10) is taller than a screen: it scrolls with the page */
.wz-aside:has(> [data-aside-panel="order"]:not([hidden])) { position: static; }
.wz-aside > div { display: grid; gap: 14px; justify-items: stretch; }
.aside-h { margin: 0; font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-align: center; }
[data-aside-panel="preview"] { justify-items: center !important; }
[data-aside-panel="preview"] > .seg { justify-self: center; } /* .seg defaults to start: both pills on the phone's axis */
[data-aside-panel="info"] .card h2 { font-size: 1.2rem; }
[data-aside-panel="info"] .ticks { margin: 0 0 16px; }
@media (max-width: 759px) { [data-aside-panel="info"] .contact-card { display: none; } }
.invoice { background: #fff; color: #1d2433; border-radius: 8px; padding: 20px; display: grid; gap: 12px; font-size: .85rem; box-shadow: 0 20px 40px -20px rgba(0,0,0,.9); }
.inv-h { display: flex; align-items: center; gap: 8px; }
.inv-logo { width: 36px; height: 36px; flex: 0 0 36px; }
.inv-logo img { width: 100%; height: 100%; object-fit: contain; }
.inv-k { margin-left: auto; font-size: .72rem; font-weight: 800; color: #6a7386; }
.inv-co { margin: 0; color: #3d4659; line-height: 1.5; overflow-wrap: anywhere; }
.inv-line { display: flex; justify-content: space-between; padding-top: 10px; border-top: 1px solid #e6e9ef; }
.inv-bar { display: block; height: 9px; border-radius: 5px; background: #eceff4; width: 70%; }
.inv-bar.short { width: 45%; }

/* the phone preview (login, booking, icon, store screens) is in signup-phone.css */

/* ---------- status page ---------- */
.st-grid { display: grid; gap: 28px; align-items: start; }
.st-grid > * { min-width: 0; }
@media (min-width: 900px) { .st-grid { grid-template-columns: minmax(0, 1fr) 320px; } }
.st-grid section { display: grid; gap: 16px; }
.st-steps { list-style: none; margin: 0; padding: 24px 24px 4px !important; }
.st-steps li { display: flex; gap: 16px; align-items: flex-start; padding-bottom: 22px; position: relative; }
.st-steps li:not(:last-child)::before { content: ""; position: absolute; left: 15px; top: 34px; bottom: 2px; width: 2px; background: var(--line); }
.st-steps .mk { flex: 0 0 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid rgba(255,255,255,.25); font-weight: 800; font-size: .85rem; color: var(--muted); }
.st-steps li.done .mk { background: var(--teal); border-color: var(--teal); }
.st-steps li.done .mk::after { content: ""; width: 12px; height: 7px; border: solid var(--teal-ink); border-width: 0 0 3px 3px; transform: rotate(-45deg) translate(1px, -1px); }
.st-steps li.current .mk { border: 3px solid var(--teal); }
.st-steps li.current .mk::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); animation: pulse 1.6s ease-in-out infinite; }
.st-steps li.error .mk { border-color: var(--err); }
.st-steps b { font-size: 1.02rem; }
.st-steps li.todo b { color: var(--muted); }
@keyframes pulse { 50% { opacity: .35; } }
.st-grid .side .card h2 { font-size: 1.1rem; }
.st-page .page-head { padding-bottom: 24px; }

@media (prefers-reduced-motion: reduce) { .chip.busy::before, .pay-steps li.current::before, .st-steps li.current .mk::after { animation: none; } }

/* real app demo video under the live preview */
.demo-video { margin-top: 18px; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.demo-video summary { cursor: pointer; font-weight: 700; }
.demo-video video { display: block; width: 100%; max-width: 280px; height: auto; margin: 12px auto 8px; border-radius: 22px; background: #000; }

/* look update of a live app (/inscription/modifier/) + its progress on the status page */
.lk-blocked h3 { font-size: 1.15rem; }
.lk-blocked p { margin: 0; }
.lk-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.lk-req { display: grid; gap: 6px; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.lk-current { display: grid; gap: 18px; }
.lk-squares { max-width: 420px; }
.lk-squares figcaption { text-align: center; }
.lk-facts { margin: 0; display: grid; gap: 10px; }
.lk-facts div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.lk-facts dt { color: var(--muted); font-size: .88rem; }
.lk-facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.lk-dots { display: inline-flex; gap: 6px; vertical-align: middle; margin-right: 8px; }
.lk-dots i { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line); }
.lk-changes { display: grid; gap: 10px; }
@media (min-width: 600px) { .lk-changes { grid-template-columns: 1fr 1fr; } }
.lk-changes > legend, .lk-changes > .hint { grid-column: 1 / -1; }
.lk-box { flex: 0 0 24px; height: 24px; border-radius: 7px; border: 2px solid var(--field-line); display: grid; place-items: center; }
.opt-card:has(input:checked) .lk-box { background: var(--teal); border-color: var(--teal); }
.opt-card:has(input:checked) .lk-box::after { content: ""; width: 11px; height: 6px; border: solid var(--teal-ink); border-width: 0 0 3px 3px; transform: rotate(-45deg) translate(1px, -1px); }
.lk-compare { display: grid; gap: 16px; }
@media (min-width: 900px) { .lk-compare { grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); } }
.lk-pair { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 16px; display: grid; gap: 12px; }
.lk-pair-h { margin: 0; font-weight: 700; }
.lk-phones { display: flex; gap: 16px; justify-content: center; }
.lk-phones figure { margin: 0; display: grid; gap: 6px; justify-items: center; font-size: .85rem; color: var(--muted); }
.lk-phones figure.after figcaption { color: var(--teal); font-weight: 700; }
.lk-phones .phone-sim { --wn: 150; }
.lk-old-login { width: 150px; aspect-ratio: 393 / 852; box-sizing: border-box; border-radius: 24px; border: 1px dashed var(--line); display: grid; place-items: center; padding: 14px; text-align: center; font-size: .8rem; line-height: 1.35; color: var(--muted); }
@media (max-width: 380px) { .lk-phones { gap: 10px; } .lk-phones .phone-sim { --wn: 132; } .lk-old-login { width: 132px; } }
.lk-next { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.lk-status { display: grid; gap: 12px; margin-top: 8px; }
.lk-status > h2 { font-size: 1.3rem; margin: 0; }
.lk-st-list { display: grid; gap: 12px; }
.lk-st-head h3 { margin: 0; font-size: 1.1rem; }
.lk-plat { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lk-plat li { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.04); }
.lk-plat b { min-width: 160px; font-size: .92rem; }

/* a step's message inside the zone it is about (signup.js showInline) */
.wz-alert.inline { margin-bottom: 12px; }
fieldset > .wz-alert.inline, figure > .wz-alert.inline { grid-column: 1 / -1; }
/* step 5 on a phone: the login preview right under the layout choices (the aside is at the bottom of the page) */
.s5-phone { display: none; }
@media (max-width: 759.98px) {
  .s5-phone { display: flex; justify-content: center; }
  .s5-phone .phone-sim { --wn: 210; }
}
/* below 600 px the six layouts are compact 2-column tiles (name only: the phone under them shows the rest), so the
   preview stays on screen while choosing */
@media (max-width: 599.98px) {
  .layouts { grid-template-columns: 1fr 1fr; gap: 8px; }
  .layouts .opt-card { padding: 10px; gap: 10px; }
  .layouts .opt-card small { display: none; }
  .layouts .opt-card b { font-size: .95rem; }
}
