/* Tool pages only (loaded after styles.css, which holds the tokens, buttons, dropzone and crop controls).
   Same motif as the rest of the site: the circle a pfp is cropped to. */

.tool { padding-block: clamp(32px, 5vw, 72px) clamp(80px, 10vw, 140px); }
.tool__head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--gutter); align-items: end; }
.tool h1 { font-size: var(--s-head); line-height: 1; letter-spacing: -0.035em; max-width: 12ch; text-wrap: balance; }
:lang(ja) .tool h1, :lang(ko) .tool h1 { max-width: none; line-height: 1.15; } /* these wrap between any characters; a narrow column leaves one-character lines */
.tool__lead { font-size: var(--s-lead); line-height: 1.4; max-width: 38ch; }
.tool__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--gutter); align-items: start; margin-top: clamp(32px, 5vw, 64px); }
.tool__panel { background: var(--field); border-radius: var(--radius); padding: clamp(18px, 2.4vw, 32px); }
.tool__private { margin-top: 14px; text-align: center; }
@media (min-width: 901px) { .tool__grid > .tool__panel:first-child { position: sticky; top: calc(var(--bar-h) + 24px); } } /* the crop stays in view beside a long list */
@media (max-width: 900px) {
  .tool__head, .tool__grid { grid-template-columns: minmax(0, 1fr); }
  .tool__head { gap: 16px; }
}

/* crop: the square that will be exported, with the round crop most apps show drawn on top */
.editor { display: grid; justify-items: center; gap: 14px; }
.editor__note { background: var(--mint); border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: var(--s-small); }
.crop-stage { position: relative; width: min(480px, 100%); aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: var(--ink); }
.crop-stage canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.crop-stage canvas:active { cursor: grabbing; }
.crop-stage canvas:focus-visible { outline: 3px solid var(--butter); outline-offset: -3px; }
.crop-stage::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  box-shadow: 0 0 0 100vmax rgba(42, 27, 61, 0.42); outline: 2px solid rgba(255, 255, 255, 0.85); outline-offset: -1px;
}
.editor .crop-controls { width: min(480px, 100%); }
.editor .hint { text-align: center; max-width: 44ch; }

/* sizes */
.sizes__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.sizes h2 { font-size: var(--s-lead); line-height: 1.15; letter-spacing: -0.02em; }
.sizes__count { color: var(--ink-soft); font-size: var(--s-small); font-weight: 600; font-variant-numeric: tabular-nums; }
.sizes__bulk { display: flex; gap: 20px; margin-top: 6px; font-size: var(--s-small); }
.sizes__list { list-style: none; margin: 12px 0 0; padding: 0; }
.size-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); }
.size-row__label { flex: 1; min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; align-items: center; cursor: pointer; min-height: 44px; }
.size-row__label input { grid-row: 1 / span 3; width: 22px; height: 22px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.size-row__name { font-weight: 700; }
.size-row__meta { color: var(--ink-soft); font-size: var(--s-small); font-variant-numeric: tabular-nums; }
.size-row__soft { display: none; justify-self: start; margin-top: 4px; background: var(--coral); border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 700; }
.size-row.is-soft .size-row__soft { display: inline-block; }
.size-row__get { flex: none; min-height: 40px; padding: 10px 16px; background: #fff; }
.size-row__get:disabled { background: transparent; }
.sizes__go { position: sticky; bottom: 0; display: grid; gap: 10px; margin: 16px calc(-1 * clamp(18px, 2.4vw, 32px)) calc(-1 * clamp(18px, 2.4vw, 32px)); padding: 16px clamp(18px, 2.4vw, 32px); background: var(--field); border-radius: 0 0 var(--radius) var(--radius); }
.sizes__go .button { width: 100%; }
.sizes__go .status:empty { display: none; }

/* ---------- tools with a form (border maker, initials maker): result preview, swatches, sliders, switches ---------- */
.tool__grid--form { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
@media (max-width: 900px) { .tool__grid--form { grid-template-columns: minmax(0, 1fr); } }

/* the result, drawn by the image engine; a checkerboard shows where it is transparent */
.result-preview { margin: 0 0 8px; display: grid; justify-items: center; gap: 10px; }
.result-preview img {
  display: block; width: min(340px, 100%); height: auto; aspect-ratio: 1; border-radius: 18px;
  background: repeating-conic-gradient(#ece6f7 0 25%, #fff 0 50%) 0 0 / 20px 20px;
}
.result-preview figcaption { text-align: center; }
/* phones: keep a small preview in view while scrolling through the options */
@media (max-width: 900px) {
  .result-preview { position: sticky; top: var(--bar-h); z-index: 2; margin: calc(-1 * clamp(18px, 2.4vw, 32px)) calc(-1 * clamp(18px, 2.4vw, 32px)) 8px; padding: 12px; background: var(--field); border-radius: var(--radius) var(--radius) 0 0; }
  .result-preview img { width: min(200px, 52vw); }
}

/* colour swatches: round buttons, the chosen one ringed */
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch {
  appearance: none; position: relative; width: 40px; height: 40px; border-radius: 50%; padding: 0; cursor: pointer;
  border: 2px solid color-mix(in srgb, var(--ink) 14%, transparent); background: var(--c);
  transition: transform var(--t-press) var(--ease-out);
}
.swatch:active { transform: scale(0.92); }
.swatch[aria-checked="true"] { outline: 3px solid var(--accent); outline-offset: 3px; }
.swatch:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
/* the custom colour swatch: chosen (data-checked), or its invisible colour input has keyboard focus (6.3) */
.swatch[data-checked], .swatch:has(> input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }
.swatch--custom { background: conic-gradient(from 0deg, #ff4f8b, #ffc24b, #38b48b, #2b7fff, #9d84f4, #ff4f8b); }
.swatch--custom::after { content: "+"; position: absolute; inset: 0; display: grid; place-items: center; font: 700 20px/1 var(--face-text); color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45); }
.swatch input[type="color"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }

.stops { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.stops input[type="color"], .badge input[type="color"] { width: 48px; height: 40px; padding: 2px; border: 2px solid color-mix(in srgb, var(--ink) 14%, transparent); border-radius: 12px; background: #fff; cursor: pointer; }
.check { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; font-size: var(--s-small); cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }

.select {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 14px; background: #fff; color: var(--ink);
  border: 2px solid color-mix(in srgb, var(--ink) 14%, transparent); font: 500 var(--s-body)/1.2 var(--face-text);
}
.select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }

.sliders { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; }
@media (max-width: 420px) { .sliders { grid-template-columns: 1fr; } }
.slider { display: grid; }
.slider .field__label { margin-bottom: 4px; }
.slider input { width: 100%; min-height: 32px; accent-color: var(--accent); }

.dot { width: 16px; height: 16px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18); }
.dot--clear { background: repeating-conic-gradient(#d9d2e8 0 25%, #fff 0 50%) 0 0 / 8px 8px; }
.chip[aria-checked="true"] .dot { box-shadow: 0 0 0 1px #fff; }

/* the badge switch (same look as the generator's toggle, but usable) */
.switch { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; font-weight: 700; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track { flex: none; width: 52px; height: 30px; border-radius: 999px; background: #ddd3f1; position: relative; transition: background-color var(--t-hover) ease; }
.switch__track::after { content: ""; position: absolute; top: 4px; left: 4px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform var(--t-hover) var(--ease-out); }
.switch input:checked + .switch__track { background: var(--accent); }
.switch input:checked + .switch__track::after { transform: translateX(22px); }
:dir(rtl) .switch input:checked + .switch__track::after { transform: translateX(-22px); }
.switch input:focus-visible + .switch__track { outline: 3px solid var(--accent); outline-offset: 3px; }
.badge__options { display: grid; gap: 14px; margin-top: 12px; }
.badge__options .field__label { margin: 4px 0 0; }

.result-actions { display: grid; gap: 10px; margin-top: 28px; }
.result-actions .button { width: 100%; }
.result-actions .status:empty { display: none; }
.field__hint { margin-top: 6px; }
.sliders--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 560px) { .sliders--three { grid-template-columns: minmax(0, 1fr); } }

/* ---------- initials maker ---------- */
.initials-stage { display: grid; justify-items: center; gap: 18px; }
/* the square export, with the corners a round avatar hides faded out */
.round-guide { position: relative; width: min(380px, 100%); border-radius: 18px; overflow: hidden; background: var(--ink); }
.round-guide img { display: block; width: 100%; height: auto; aspect-ratio: 1; }
.round-guide::after { content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; box-shadow: 0 0 0 100vmax rgba(251, 248, 255, 0.55); }
.initials-stage__buttons { display: grid; gap: 10px; width: min(380px, 100%); }
.initials-stage__buttons .button { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.initials-stage__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; font-size: var(--s-small); }
.initials-stage__links:not(:has(a)) { display: none; }
.initials-stage .status:empty { display: none; }
/* phones: the "Continue with…" panel below the options (moved there by initials-pfp.js); hidden while it is empty */
.initials-more:not(:has(> .continue:not([hidden]))) { display: none; }

.fonts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 136px), 1fr)); gap: 8px; }
.font-choice {
  appearance: none; min-height: 52px; padding: 6px 10px; border-radius: 14px; cursor: pointer; background: #fff; color: var(--ink);
  border: 2px solid color-mix(in srgb, var(--ink) 14%, transparent); font-size: 19px; line-height: 1.1;
  transition: border-color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.font-choice:active { transform: scale(0.97); }
.font-choice[aria-checked="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.font-choice:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .font-choice:hover:not([aria-checked="true"]) { border-color: var(--accent); } }
/* phones: preview and main buttons stay in view while scrolling through the options */
@media (max-width: 900px) {
  .initials-stage { position: sticky; top: var(--bar-h); z-index: 3; grid-template-columns: minmax(0, 140px) minmax(0, 1fr); align-items: center; justify-items: stretch; gap: 14px; padding: 12px; box-shadow: 0 10px 24px -18px rgba(42, 27, 61, 0.55); }
  .round-guide { width: 100%; border-radius: 12px; }
  .initials-stage__buttons { width: 100%; gap: 8px; }
  .initials-stage__buttons .button { min-height: 44px; padding: 10px 14px; font-size: var(--s-small); }
  .initials-stage__links { justify-content: flex-start; gap: 4px 14px; }
}

/* ---------- background changer ---------- */
.crop-stage--cutout { background: repeating-conic-gradient(#3a2b4d 0 25%, #2a1b3d 0 50%) 0 0 / 24px 24px; } /* see-through parts show as a checkerboard */
.notice { display: grid; justify-items: start; gap: 14px; margin-top: 16px; padding: 18px 20px; border-radius: 18px; background: var(--coral); font-weight: 600; line-height: 1.45; }
.notice .button { min-height: 44px; }
#image-field .button { width: 100%; }

/* ---------- background remover ---------- */
.panel__title { font-size: var(--s-lead); line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 6px; }
.controls { border: 0; margin: 18px 0 0; padding: 0; min-width: 0; transition: opacity var(--t-hover) ease; }
.controls:disabled { opacity: 0.5; }
.controls .mode-switch { width: 100%; }
.refine-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.refine-buttons .button { flex: 1 1 120px; min-height: 44px; }
.notice--soft { background: var(--butter); margin-top: 0; }
/* the cut-out on a checkerboard, so see-through parts show */
.refine-stage { position: relative; width: 100%; border-radius: 18px; overflow: hidden; background: repeating-conic-gradient(#e7e0f3 0 25%, #fff 0 50%) 0 0 / 20px 20px; }
.refine-stage canvas { display: block; width: 100%; height: auto; touch-action: none; cursor: crosshair; }
@media (hover: hover) and (pointer: fine) { .refine-stage canvas { cursor: none; } }
.brush-cursor { position: absolute; left: 0; top: 0; border-radius: 50%; pointer-events: none; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(42, 27, 61, 0.65), inset 0 0 0 1px rgba(42, 27, 61, 0.65); }
.brush-cursor[data-mode="erase"] { background: rgba(255, 201, 188, 0.25); }
.brush-cursor[data-mode="restore"] { background: rgba(196, 236, 221, 0.3); }
.working { display: grid; justify-items: center; gap: 12px; padding: 56px 16px; font-weight: 600; text-align: center; }
.spinner { width: 40px; height: 40px; border-radius: 50%; border: 4px solid color-mix(in srgb, var(--accent) 18%, transparent); border-top-color: var(--accent); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.5s; } }
.prep { display: grid; gap: 6px; margin-top: 16px; }
.progress { height: 10px; border-radius: 999px; overflow: hidden; background: color-mix(in srgb, var(--accent) 14%, #fff); }
.progress span { display: block; width: var(--p, 0%); height: 100%; border-radius: inherit; background: var(--accent); transition: width 120ms linear; }

/* quiet buttons and switches on a tool panel: the panel is the same colour as their usual fill, so give them white */
.tool__panel .button--quiet:not(:disabled), .tool__panel .mode-switch { background: #fff; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--ink) 12%, transparent); }
.tool__panel .mode-switch button[aria-checked="true"] { box-shadow: none; }

/* ---------- "Continue with…" (lib/ui/continue-bar.js) ---------- */
.continue { display: grid; gap: 10px; width: 100%; margin-top: 18px; padding-top: 16px; border-top: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); text-align: start; }
.continue[hidden] { display: none; }
.continue__title { font-weight: 700; font-size: var(--s-small); color: var(--ink-soft); }
.continue__list { display: flex; flex-wrap: wrap; gap: 8px; }
.continue__list .button { flex: 1 1 auto; min-height: 44px; padding: 10px 16px; font-size: var(--s-small); }
.continue__undo { justify-self: start; font-size: var(--s-small); }
.continue.is-busy { opacity: 0.6; pointer-events: none; }
.continue .status:empty { display: none; }
/* "Save to gallery" at the top of the action bar (roadmap 3.4) */
.continue__save { display: grid; gap: 10px; padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); }
.continue__save-button { width: 100%; justify-content: center; }

/* ---------- Matching pfps (roadmap 4.3) ---------- */
.chip small { font-weight: 500; opacity: 0.7; margin-left: 2px; }
.chip[aria-checked="true"] small { opacity: 0.9; } /* on the grape background: 4.5:1 or better (6.3) */
.member-count { font-weight: 500; color: var(--ink-soft); font-variant-numeric: tabular-nums; margin-left: 6px; }
.members { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 8px; }
.member { display: grid; grid-template-columns: 44px 1fr auto auto; align-items: center; gap: 12px; background: #fff; border-radius: 16px; padding: 6px 12px 6px 6px; }
.member img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.member__name { font-weight: 600; }
.member .link { font-size: var(--s-small); }
.member__remove { color: var(--danger); }
.member.is-editing { box-shadow: inset 0 0 0 2px var(--accent); }
.member--unused { opacity: 0.45; }
.dropzone--small { padding: 18px 16px; }
.set-preview { margin: 0 0 16px; display: grid; gap: 10px; }
.set-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 14px; }
.set-grid[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 200px)); justify-content: center; }
.set-grid[data-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.set-grid__item { display: grid; gap: 6px; justify-items: center; }
.set-grid__item img { width: 100%; height: auto; aspect-ratio: 1; border-radius: 50%; }
.set-grid__get { font-size: var(--s-small); }
/* a connected couple: the two round pfps touch, as they do side by side in a chat or a post */
.set-grid.is-connected { gap: 0; }

/* ---------- Matching pfps: invite links (roadmap 4.4) ---------- */
.is-joining [data-owner] { display: none !important; }
body:not(.is-joining) [data-join] { display: none !important; }
.join { display: grid; gap: 8px; margin-bottom: 14px; }
.join__eyebrow { font-weight: 700; font-size: var(--s-small); color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; }
.join__title { font: 800 var(--s-lead)/1.2 var(--face-display); }
.join-actions { display: grid; gap: 10px; margin-bottom: 14px; }
.join-actions #join-form, .join-actions #join-done { display: grid; gap: 8px; }
.join-actions #join-done[hidden], .join-actions #join-form[hidden] { display: none; }
.join-actions input[type="text"] { width: 100%; }
.join-actions .status:empty { display: none; }
.set-invite { display: grid; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); }
.set-invite h3 { font-size: var(--s-lead); letter-spacing: -0.02em; }
.set-invite__options { display: flex; flex-wrap: wrap; gap: 12px; }
.set-invite__options label { display: grid; gap: 4px; }
.set-invite .status:empty { display: none; }
.sets { display: grid; gap: 12px; }
.sets[hidden] { display: none; }
.set-card { background: #fff; border-radius: 18px; padding: 14px; display: grid; gap: 8px; }
.set-card__title { font-weight: 800; }
.set-card__link { display: flex; flex-wrap: wrap; gap: 8px; }
.set-card__link[hidden] { display: none; }
.set-card__url { flex: 1 1 200px; min-width: 0; font-size: var(--s-small); }
.set-card__progress { font-weight: 700; color: var(--accent); }
.set-card__members { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.set-card__members:empty { display: none; }
.set-card__member { display: grid; justify-items: center; gap: 2px; font-size: var(--s-small); max-width: 84px; text-align: center; overflow-wrap: anywhere; }
.set-card__member img { width: 64px; height: 64px; border-radius: 50%; background: var(--field); }
.set-card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.set-card__status:empty { display: none; }

/* ---------- Banner maker (roadmap 4.5) ---------- */
.pfp-thumb { display: block; width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 12px 0 8px; background: var(--field); }
.pfp-current { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pfp-current[hidden] { display: none; }
.gallery-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 8px; margin-top: 10px; }
.gallery-pick[hidden] { display: none; }
.gallery-pick__item { border: 0; padding: 0; background: none; border-radius: 50%; cursor: pointer; }
.gallery-pick__item img { width: 100%; aspect-ratio: 1; border-radius: 50%; display: block; }
.banner-text { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
.banner-text label { font-size: var(--s-small); font-weight: 600; margin-top: 4px; }
.banner-text input { width: 100%; }
.templates { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.template-choice { display: grid; gap: 6px; padding: 6px; border: 2px solid transparent; border-radius: 16px; background: #fff; cursor: pointer; font: inherit; font-size: var(--s-small); font-weight: 600; color: var(--ink); text-align: center; }
.template-choice[hidden] { display: none; }
.template-choice img { width: 100%; height: auto; aspect-ratio: 3 / 1; border-radius: 10px; background: var(--field); object-fit: cover; }
.template-choice[aria-checked="true"] { border-color: var(--accent); }
.banners { list-style: none; padding: 0; margin: 14px 0 10px; display: grid; gap: 18px; }
.banner-card { display: grid; gap: 8px; justify-items: start; }
.banner-card__head { display: flex; gap: 10px; align-items: baseline; font-size: var(--s-small); }
.banner-card__head span { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.banner-card img { width: 100%; height: auto; border-radius: 12px; background: var(--field); box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 8%, transparent); }
.sizes { display: grid; gap: 6px; margin-top: 8px; }
#palette + .hint { margin-top: 6px; }
.banner-text { margin-top: 10px; }

/* ---------- Banner maker: safe-zone overlays (roadmap 4.6), preview only ---------- */
.overlay-field { display: grid; gap: 10px; }
.overlay-field [hidden] { display: none !important; }
.overlay-legend { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: var(--s-small); }
.overlay-legend li { display: inline-flex; align-items: center; gap: 6px; }
.overlay-key { display: inline-block; width: 18px; height: 12px; border-radius: 3px; }
.overlay-key--safe { border: 2px dashed #ffffff; outline: 1px solid var(--ink); background: transparent; }
.overlay-key--hidden { background: rgba(20, 12, 34, 0.6); }
.overlay-key--avatar { border-radius: 50%; width: 14px; height: 14px; background: rgba(255, 79, 139, 0.45); border: 2px dashed #ff4f8b; }
.banner-frame { position: relative; width: 100%; line-height: 0; }
.banner-overlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; border-radius: 12px; }
.banner-overlay__hidden { fill: rgba(20, 12, 34, 0.6); }
.banner-overlay__safe { fill: none; stroke: #ffffff; stroke-width: 2; stroke-dasharray: 8 6; filter: drop-shadow(0 0 1px #1d1d1f); }
.banner-overlay__avatar { fill: rgba(255, 79, 139, 0.45); stroke: #ff4f8b; stroke-width: 2; stroke-dasharray: 6 4; }
.banner-card__warn { font-size: var(--s-small); font-weight: 600; color: var(--danger); background: #fde4e6; border-radius: 12px; padding: 8px 12px; }

/* Share cards (roadmap 5.2): the "Share card" button under Save, and its panel (lib/ui/share-card.js) */
.continue__share { display: grid; gap: 10px; padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); }

/* ---------- Professional headshot (flag pro-headshot) ---------- */
.attire-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.attire {
  appearance: none; display: grid; justify-items: center; align-content: center; gap: 6px; min-height: 84px; padding: 10px 6px;
  border: 2px solid color-mix(in srgb, var(--ink) 18%, transparent); border-radius: 14px; background: #fff; color: var(--ink);
  font: 600 var(--s-small)/1.15 var(--face-text); text-align: center; cursor: pointer;
  transition: background-color var(--t-hover) ease, border-color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.attire svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.attire:active { transform: scale(0.96); }
.attire[aria-checked="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (hover: hover) and (pointer: fine) { .attire:hover:not([aria-checked="true"]) { border-color: var(--accent); } }
@media (max-width: 360px) { .attire-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.headshot-result { position: relative; }
.headshot-result img { background: var(--field); }
.headshot-working { position: absolute; inset: 0 0 auto; margin-inline: auto; width: min(340px, 100%); aspect-ratio: 1; display: grid; place-content: center; justify-items: center; gap: 12px; border-radius: 18px; background: color-mix(in srgb, #fff 82%, transparent); text-align: center; padding: 16px; }
.headshot-working[hidden] { display: none; }
.headshot-go { display: grid; gap: 10px; margin-top: 24px; }
.headshot-go .button { width: 100%; }
.headshot-go .status:empty { display: none; }
.headshot-consent { font-weight: 600; }
@media (max-width: 900px) { .headshot-working { inset: 12px 0 auto; width: min(200px, 52vw); } .headshot-working p { font-size: var(--s-small); } }
.headshot-placeholder { width: min(340px, 100%); aspect-ratio: 1; display: grid; place-items: center; border-radius: 18px; background: var(--field); border: 2px dashed color-mix(in srgb, var(--ink) 16%, transparent); }
.headshot-placeholder[hidden], .headshot-result img[hidden] { display: none; }
.headshot-placeholder svg { width: 46%; fill: none; stroke: color-mix(in srgb, var(--ink) 35%, transparent); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 900px) { .headshot-placeholder { width: min(200px, 52vw); background: #fff; } }
