/* Plume Product AI — the app shown inside the shop's WordPress, dressed as the extension's wizard was. */
:root {
  --ink: #11201a; --muted: #6b7c75; --line: #dfe6e3; --soft: #f2f7f5; --card-line: #d4ece1; --page: #f0f0f1;
  --accent: #0b7a5b; --green: #10b981; --accent-ink: #ffffff; --warn: #9a6200; --bad: #b3261e; --cost: #7a4d00; --cost-bg: #fff4dc;
  /* The admin's own button colour, handed over by the WordPress page (WordPress's default until then). */
  --button: #2271b1;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--page); color: var(--ink); }
/* Inside the WordPress page: the admin's background shows through, the cards sit on it. */
html.framed, html.framed body { background: transparent; }
body { font: 13.5px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; }
#app { max-width: 1100px; margin: 0; padding: 0 0 28px; }
html:not(.framed) #app { padding: 20px; }
.boot { color: var(--muted); padding: 24px 0; }

/* The steps and, at their end, the balance: one row that wraps on a narrow screen. */
.head { display: flex; align-items: center; gap: 8px 18px; flex-wrap: wrap; margin: 0 0 18px; }
.steps { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.step { display: flex; border-radius: 999px; background: var(--soft); color: #4f615a; font-weight: 600; font-size: 13px; }
.step.is-current { background: var(--green); color: #fff; }
.step.is-done { background: #e6f6ef; color: var(--accent); }
.step-n { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(0,0,0,.08); font-size: 12px; flex: none; }
.step.is-current .step-n { background: rgba(255,255,255,.25); }
.step-go { display: flex; align-items: center; gap: 7px; padding: 7px 14px; margin: 0; border: 0; border-radius: 999px; background: none; color: inherit; font: inherit; line-height: 1.4; cursor: pointer; transition: background .15s; }
.step-go:disabled { cursor: default; color: inherit; opacity: 1; }
.step-go:not(:disabled):hover { background: rgba(16,185,129,.16); }
.step-go:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; }
.bar-tools { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.credits { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.credits-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex: none; }
.credits-value { color: var(--ink); font-variant-numeric: tabular-nums; }
.credits-value strong { font-weight: 600; }
/* Spent: from 80 % of the period's credits amber, from 95 % red — the dot and the figures. */
.credits.is-warn .credits-dot { background: #d97706; }
.credits.is-warn .credits-value { color: #b45309; }
.credits.is-bad .credits-dot { background: var(--bad); }
.credits.is-bad .credits-value { color: var(--bad); }
button.stop { font: inherit; padding: 3px 10px; font-size: 12px; line-height: 18px; color: #8a4b4b; background: transparent; border: 1px solid #e8cfcf; border-radius: 999px; cursor: pointer; }
button.stop::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 6px; background: currentColor; border-radius: 1px; vertical-align: 0; }
button.stop:hover { color: #fff; background: #d63638; border-color: #d63638; }
button.stop[disabled] { opacity: .5; cursor: default; }
button.link.settings-link { font-size: 12.5px; text-decoration: none; font-weight: 600; }
button.link.settings-link:hover { text-decoration: underline; }
.head-title { font-size: 20px; margin: 0; font-weight: 600; }

/* cards */
.card { background: #fff; border: 1px solid var(--card-line); border-radius: 12px; padding: 20px 22px; box-shadow: 0 1px 3px rgba(16,24,40,.06); margin: 0 0 20px; animation: fade .28s ease both; }
.card > h2, .step-card .part > h2:first-child { margin: 0 0 16px; font-size: 17px; font-weight: 600; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .card, .spinner, .progress-bar { animation: none; transition: none; } }

/* sections (the settings) */
h2 { font-size: 16px; margin: 26px 0 8px; }
.panel { border: 1px solid var(--card-line); border-radius: 12px; padding: 6px 22px; background: #fff; box-shadow: 0 1px 3px rgba(16,24,40,.06); }
/* On a step's card, a section is the card's content. */
.step-card .panel { border: 0; padding: 0; background: none; box-shadow: none; border-radius: 0; }
.intro { color: var(--muted); margin: 4px 0 10px; }
.note { background: var(--cost-bg); border-radius: 8px; padding: 10px 12px; margin: 10px 0; color: #4d3b12; }
.row { display: grid; grid-template-columns: 220px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--soft); }
.row:first-of-type { border-top: 0; }
.row > .label { font-weight: 600; padding-top: 6px; }
.row .hint { color: var(--muted); margin: 6px 0 0; font-size: 13px; }
.cost { display: inline-block; font-size: 11px; font-weight: 600; color: var(--cost); background: var(--cost-bg); border-radius: 10px; padding: 1px 8px; margin-left: 6px; vertical-align: middle; }
.cost.big { color: #fff; background: #b35c00; }
.cost.free { color: var(--accent); background: #e3f4ee; }
@media (max-width: 640px) { .row { grid-template-columns: 1fr; gap: 6px; } }

/* fields: one dress everywhere — thin grey border, round corners, green focus */
select, input[type="text"], input[type="number"], input[type="search"], textarea {
  font: inherit; font-size: 13.5px; color: var(--ink); background-color: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 7px 11px; max-width: 100%;
  transition: border-color .12s, box-shadow .12s;
}
select { min-width: 280px; padding: 6px 10px; }
input::placeholder, textarea::placeholder { color: #b3bfba; }
input[type="text"]:hover, input[type="search"]:hover, textarea:hover { border-color: #cbd9d3; }
select:focus, input:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(16,185,129,.14); outline: 0; }
button:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; }
input[type="text"]:disabled, input[type="search"]:disabled, input[type="number"]:disabled, textarea:disabled, select:disabled { background-color: #f4f7f6; color: #9aa8a2; border-color: #e7edea; }
input[type="text"].code { width: 90px; text-transform: uppercase; }
input[type="text"].code.lower { text-transform: lowercase; }
input[type="text"].wide, input[type="search"].wide, textarea { width: 100%; }
input[type="number"] { width: 100px; }
textarea { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; }
label.check { display: flex; gap: 8px; align-items: flex-start; margin: 6px 0; }
label.check input { margin-top: 3px; accent-color: var(--green); }
.inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* buttons: the admin's own */
button.primary { font: inherit; font-size: 13.5px; background: var(--button); color: #fff; border: 1px solid var(--button); border-radius: 3px; padding: 8px 20px; cursor: pointer; font-weight: 600; line-height: 1.4; }
button.primary:hover { filter: brightness(.92); }
button.primary[disabled] { background: #e2e4e7; border-color: #e2e4e7; color: #8c8f94; cursor: default; filter: none; }
button.primary.small { padding: 5px 12px; font-size: 13px; }
button.ghost { font: inherit; font-size: 13px; background: #fff; color: var(--button); border: 1px solid var(--button); border-radius: 3px; padding: 5px 12px; cursor: pointer; line-height: 1.4; }
button.ghost:hover { background: #f6f7f7; }
button.ghost.danger { color: var(--bad); border-color: #e8cfcf; }
button.ghost[disabled] { opacity: .5; cursor: default; }
button.link { font: inherit; background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; cursor: pointer; }
button.link.danger { color: var(--bad); }
button.link[disabled] { opacity: .5; cursor: default; }
.actions { position: sticky; bottom: 0; display: flex; gap: 12px; align-items: center; padding: 14px 0; background: linear-gradient(transparent, var(--page) 30%); margin-top: 18px; }
html.framed .actions { background: none; }
.actions.inline-actions { position: static; background: none; padding: 10px 0 4px; margin: 0; }
.status { color: var(--muted); }
.status.ok { color: var(--accent); font-weight: 600; }
.status.bad { color: var(--bad); font-weight: 600; }
.spacer { flex: 1; }

/* « Retour » / « Continuer », under the step's card */
.step-nav { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 0 0 24px; }
.step-nav button.primary, .step-nav button.ghost { padding: 8px 20px; font-size: 13.5px; }
.step-nav .hint { color: var(--muted); font-size: 12.5px; }

/* step 1: one question per block, in the order they are answered */
.field-block { margin-bottom: 20px; }
.field-block input[type="text"], .field-block input[type="search"] { width: 100%; max-width: 620px; padding: 9px 12px; font-size: 14px; }
.field-block > .label, .shelves > .label, .take > .label { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--accent); margin-bottom: 5px; }
.label .aside { font-weight: 400; text-transform: none; letter-spacing: 0; color: #87958e; margin-left: 7px; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 620px; margin-bottom: 20px; }
.choice-opt { border: 2px solid var(--line); border-radius: 11px; padding: 13px 15px; background: #fff; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.choice-opt b { display: block; font-size: 14px; margin-bottom: 2px; }
.choice-opt span { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.choice-opt .choice-sign { font-size: 24px; line-height: 1; color: #9aa8a2; margin-bottom: 8px; font-weight: 400; }
.choice-opt:hover { border-color: #b7ddcc; }
.choice-opt:hover .choice-sign { color: var(--accent); }
.choice-opt.is-on { border-color: var(--green); box-shadow: 0 0 0 2px rgba(16,185,129,.22); }
.choice-opt.is-on .choice-sign { color: var(--green); }
.choice-opt:disabled { opacity: .6; cursor: default; }
@media (max-width: 640px) { .choice { grid-template-columns: 1fr; } }
.chosen { display: flex; align-items: center; gap: 12px; max-width: 620px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: #f8fbfa; }
.chosen img, .chosen .nothumb, .products img, .products .nothumb { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; background: #eef3f1; display: inline-flex; align-items: center; justify-content: center; color: #b3bfba; flex: none; }
.chosen-text { display: flex; flex-direction: column; min-width: 0; }
.chosen-text strong { font-size: 13.5px; overflow-wrap: anywhere; }
.chosen-text .hint { font-size: 11.5px; color: var(--muted); }
.chosen > .link { margin-left: auto; font-weight: 600; }
/* « Mode auto » / « Mode manuel »: a switch, the mode named beside it and what it does under. */
label.switch { position: relative; display: flex; gap: 12px; align-items: flex-start; margin: 6px 0; max-width: 620px; cursor: pointer; }
label.switch.mode { margin: 0 0 18px; }
.step-card label.switch.mode, .panel label.switch.mode { margin: 4px 0 8px; }
label.switch input { position: absolute; left: 0; top: 0; z-index: 1; width: 46px; height: 28px; margin: 0; opacity: 0; cursor: pointer; }
.switch-track { position: relative; flex: none; width: 46px; height: 28px; border-radius: 999px; background: #c5d0cb; transition: background .2s ease; }
.switch-track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s ease; }
label.switch input:checked + .switch-track { background: var(--green); }
label.switch input:checked + .switch-track::after { transform: translateX(18px); }
label.switch input:focus-visible + .switch-track { outline: 2px solid var(--green); outline-offset: 2px; }
label.switch input:disabled, label.switch input:disabled + .switch-track { opacity: .5; cursor: default; }
.switch-text { padding-top: 3px; }
.switch-text strong { display: block; font-size: 14px; }
.switch-text .hint { display: block; color: var(--muted); font-size: 12.5px; }
.connect-first { background: var(--soft); border-radius: 10px; padding: 12px 16px; margin: 0 0 20px; }
.connect-first .intro { margin-top: 0; }

/* the shelves */
.shelves { border: 1px solid #e6ece9; border-radius: 8px; padding: 14px 16px; margin: 0 0 18px; }
.shelves > .hint { color: var(--muted); }
.shelves input[type="search"] { max-width: 620px; padding: 9px 12px; font-size: 14px; min-height: 40px; }
.chips.picked { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px; }
.chips.picked .hint { color: var(--muted); font-size: 12.5px; }
.shelf-list { list-style: none; margin: 8px 0 0; padding: 0; max-height: 300px; overflow-y: auto; }
.shelf-list li { margin: 0 0 2px; }
.shelf-list li.hint { padding: 8px 12px; color: var(--muted); }
.shelf-list button { font: inherit; font-size: 14px; width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; background: none; border: 0; border-radius: 8px; padding: 9px 12px; min-height: 38px; cursor: pointer; text-align: left; color: var(--ink); }
.shelf-list li.sub button { font-size: 13.5px; color: #34453d; }
.shelf-list button:hover { background: var(--soft); }
.shelf-list button.on { background: #e6f6ef; color: var(--accent); font-weight: 600; }
.shelf-list .count { font-size: 12px; color: #8a9a93; background: var(--soft); border-radius: 999px; padding: 1px 8px; font-weight: 400; }

/* the shop's fiches */
.drafts { display: flex; flex-direction: column; }
.draft-row { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-top: 1px solid #eef3f1; }
.draft-row:first-child { border-top: 0; padding-top: 0; }
.thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; background: var(--soft); flex: none; }
.card-body { flex: 1; min-width: 0; }
.card-body h3 { font-size: 14px; margin: 0 0 4px; overflow-wrap: anywhere; }
.phase { margin: 0; color: var(--ink); }
.phase.running, .phase.waiting { color: var(--accent); }
.phase.waiting { font-weight: 600; }
.phase.error { color: var(--bad); }
.phase.stopped, .phase.stopping { color: var(--warn); }
.bar { height: 6px; background: var(--soft); border-radius: 3px; overflow: hidden; margin-top: 6px; max-width: 420px; }
.bar > span { display: block; height: 100%; background: var(--green); border-radius: 3px; transition: width .6s ease; }
.meta { color: var(--muted); font-size: 12px; margin: 6px 0 0; }
.meta a { color: var(--muted); }
.card-actions { display: flex; flex-direction: column; gap: 6px; flex: none; align-items: stretch; }
.thumb-button, .title-link { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: inherit; text-align: left; }
.title-link:hover { color: var(--accent); text-decoration: underline; }
@media (max-width: 640px) { .draft-row { flex-wrap: wrap; } .card-actions { flex-direction: row; } }

/* one fiche: where it stands, then its photo and title */
.progress { position: relative; height: 26px; background: #e3efe9; border-radius: 999px; overflow: hidden; margin: 0 0 16px; }
.progress-bar { height: 100%; background: var(--green); transition: width .45s cubic-bezier(.4,0,.2,1); }
.progress-label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 12.5px; font-weight: 600; color: var(--ink); }
.progress-count { color: #4f615a; font-variant-numeric: tabular-nums; }
.part-phase > .phase { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin: 0 0 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.message.turn { border-color: #bfe3d4; background: #e6f6ef; color: var(--accent); font-weight: 600; padding: 12px 18px; margin: 0 0 16px; }
/* Automatic mode, the fiche ready: the steps going by up to the review. */
.message.walk { border-color: #bfe3d4; background: #eef8f3; color: var(--accent); padding: 10px 18px; margin: 0 0 16px; }
.fiche-head { display: flex; gap: 14px; align-items: center; margin: 0 0 14px; }
.fiche-head .thumb { width: 56px; height: 56px; }
h2.fiche-title { font-size: 17px; font-weight: 700; margin: 0 0 2px; overflow-wrap: anywhere; }
input[type="text"].fiche-title { width: 100%; font-size: 17px; font-weight: 700; border-color: transparent; background-color: transparent; padding: 4px 6px; margin: 0 0 2px -6px; }
input[type="text"].fiche-title:hover, input[type="text"].fiche-title:focus { border-color: var(--line); background-color: #fff; }

/* the texts */
.block { padding: 14px 0; border-top: 1px solid var(--soft); }
.block:first-of-type { border-top: 0; }
.block-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.block-head h3 { font-size: 14px; margin: 0; }
.rich-wrap { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.tools { display: flex; gap: 2px; align-items: center; padding: 4px; background: var(--soft); border-bottom: 1px solid var(--line); }
.tool { font: inherit; font-size: 13px; background: none; border: 1px solid transparent; border-radius: 5px; padding: 3px 9px; cursor: pointer; color: var(--ink); }
.tool:hover { background: #fff; border-color: var(--line); }
.rich { min-height: 90px; padding: 10px 12px; outline: none; }
.rich p { margin: 0 0 10px; }
.rich ul { margin: 0 0 10px; padding-left: 22px; }
.rich[contenteditable="false"] { color: var(--muted); }
textarea.rich-raw { width: 100%; border: 0; border-radius: 0; min-height: 160px; }
.attrs .attr { display: grid; grid-template-columns: minmax(120px, 1fr) 2fr auto; gap: 8px; margin-bottom: 6px; }
.attrs .attr input { width: 100%; }
.hint.warn { color: var(--warn); }
.seo .serp { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin-bottom: 12px; background: #fff; max-width: 640px; }
.serp-title { color: #1a0dab; font-size: 17px; margin: 0; overflow-wrap: anywhere; }
.serp-url { color: #0b7a3e; font-size: 12px; margin: 2px 0 4px; overflow-wrap: anywhere; }
.serp-text { color: #4d5156; font-size: 13px; margin: 0; }
.field { display: block; margin: 8px 0; }
.field > span:first-child { display: block; font-weight: 600; margin-bottom: 4px; }
.field textarea { width: 100%; font-family: inherit; font-size: 14px; }
.rewrite, .align-box { background: var(--soft); border-radius: 8px; padding: 10px 12px; margin: 0 0 10px; }
.rewrite textarea { width: 100%; font-family: inherit; }
.soon { color: var(--muted); }

/* what the fiche sells */
.axes { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
.axis { display: inline-flex; gap: 4px; align-items: center; background: var(--soft); border-radius: 8px; padding: 4px 6px; }
.axis input { width: 150px; font-weight: 600; }
.axis.fixed, .axis.dropped { color: var(--muted); padding: 6px 10px; }
.counter { margin: 6px 0; }
.counter strong { display: inline-block; background: #e6f6ef; color: var(--accent); border-radius: 999px; padding: 1px 10px; font-size: 12px; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; margin: 8px 0 12px; border: 1px solid #e6ece9; border-radius: 8px; }
table.offer { border-collapse: collapse; width: 100%; font-size: 13px; }
table.offer th { text-align: left; font-weight: 600; color: var(--muted); text-transform: uppercase; font-size: 11.5px; letter-spacing: .03em; border-bottom: 1px solid var(--line); padding: 8px; white-space: nowrap; }
table.offer td { border-bottom: 1px solid var(--soft); padding: 6px 8px; vertical-align: middle; }
table.offer tr:last-child td { border-bottom: 0; }
table.offer td input[type="text"] { width: 100%; min-width: 90px; padding: 5px 9px; border-radius: 7px; font-size: 13px; }
table.offer .num { text-align: right; white-space: nowrap; }
table.offer td.bad { color: var(--bad); font-weight: 600; }
table.offer td.warn { color: var(--warn); font-weight: 600; }
table.offer tr.off td { opacity: .45; }
table.offer tr.off td:first-child { opacity: 1; }
table.offer .thumb { width: 40px; height: 40px; }
table.offer input[type="checkbox"] { accent-color: var(--green); }
input[type="text"].price { width: 90px; min-width: 90px; text-align: right; }
.badge { display: inline-block; font-size: 11px; border-radius: 8px; padding: 1px 6px; margin-left: 6px; }
.badge.warn { background: var(--cost-bg); color: var(--cost); }
.badge.ok { background: #e3f4ee; color: var(--accent); }
/* « Jeton d'accès AliExpress », laid out as AliExpress Sync's table. */
.panel.tokens { padding: 16px 22px; }
.panel.tokens .connect { margin: 0 0 14px; }
.tokens-table { width: 100%; max-width: 720px; border-collapse: collapse; margin: 0 0 12px; border: 1px solid var(--line); }
.tokens-table th, .tokens-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); font-size: 13px; }
.tokens-table th { font-weight: 600; background: var(--soft); }
.tokens-table tbody tr:nth-child(even) td { background: #fafcfb; }
.tokens-table td:last-child { width: 110px; }
.panel.tokens .hint { max-width: 48em; }

/* a section's head: its title, and its links at the other end */
.sect-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 14px; }
.sect-head h2 { margin: 0; }
.step-card .sect-head h2 { font-size: 17px; font-weight: 600; }
.sect-hint { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.sect-head > .sect-hint { margin: 0; align-self: center; }
.sect-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.curated { color: var(--accent); font-weight: 600; font-size: 13px; }

/* « Variations »: the photos first, then the table */
.tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.tag { font-size: 12px; color: var(--muted); background: #f8fbfa; border: 1px solid #eef3f1; border-radius: 999px; padding: 3px 10px; }
.tag b { color: var(--ink); font-weight: 600; }
.picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-bottom: 28px; }
button.pick { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 0 0 8px; border: 2px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; text-align: center; overflow: hidden; font: inherit; color: inherit; transition: border-color .15s, box-shadow .15s, transform .12s; }
button.pick:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(16,24,40,.14); }
button.pick img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #f4f7f6; }
.pick-name { padding: 0 8px; font-size: 12.5px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.pick-count { font-size: 11px; color: var(--muted); }
.pick-warn { display: block; margin-top: 2px; padding: 0 8px; color: #b45309; font-size: 11.5px; line-height: 1.3; }
button.pick.is-on { border-color: var(--green); box-shadow: 0 0 0 2px rgba(16,185,129,.28); }
button.pick.is-part { border-color: var(--green); border-style: dashed; }
button.pick:disabled { opacity: .5; cursor: default; }
button.pick.is-on::after { content: '✓'; position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--green); color: #fff; font-size: 13px; font-weight: 700; }
table.variants-table td, table.variants-table th { padding: 5px 8px; vertical-align: middle; }
table.variants-table th.th-check { width: 28px; }
table.variants-table thead th { text-transform: none; font-size: 12px; letter-spacing: 0; }
table.variants-table tbody tr { cursor: pointer; }
table.variants-table tbody tr:hover td { background: #f8fbfa; }
table.variants-table tr.oos td { color: #9aa8a2; }
.axis-head { display: flex; align-items: center; gap: 4px; }
input[type="text"].axis-name { width: 100%; min-width: 130px; font-weight: 600; padding: 5px 9px; border-radius: 7px; font-size: 13px; }
button.axis-drop { font: inherit; width: 24px; height: 24px; flex: none; border: 1px solid #f1d4d1; background: #fff; color: var(--bad); border-radius: 6px; cursor: pointer; line-height: 1; }
button.axis-drop:hover { background: #fdf2f1; }
button.axis-drop[disabled] { opacity: .4; cursor: default; }
.row-model { display: flex; align-items: center; gap: 10px; }
/* Big enough to tell two near-identical models apart (a mermaid with wings, one without). */
.row-model .thumb, table.offer .row-model .thumb { width: 64px; height: 64px; border-radius: 8px; }
.row-model a { line-height: 0; }
input[type="text"].cell-input { width: 100%; min-width: 120px; }
.value-src { display: block; font-size: 11px; color: #9aa8a2; margin-top: 2px; min-height: 1em; }
.value-warn { display: block; margin-top: 4px; color: #b45309; font-size: 12px; line-height: 1.35; }
.rows-more { margin: 12px 0 4px; }

/* « Prix » */
.rule { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; color: var(--muted); font-size: 13px; }
table.prices-table .sub, table.prices-table th .sub { display: block; font-size: 11.5px; color: #9aa8a2; font-weight: 400; text-transform: none; letter-spacing: 0; }
table.prices-table .margin { font-size: 15px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
table.prices-table tr.is-low .margin, table.prices-table tr.is-low .sub { color: #b7791f; }
table.prices-table tr.is-loss .margin, table.prices-table tr.is-loss .sub { color: var(--bad); }
.tally { display: flex; gap: 26px; flex-wrap: wrap; align-items: baseline; margin-top: 18px; padding-top: 14px; border-top: 1px solid #eef3f1; }
.tally b { display: block; font-size: 17px; font-variant-numeric: tabular-nums; }
.tally span { display: block; font-size: 12px; color: var(--muted); }
.tally-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.align-box { margin-top: 12px; }
.align-box strong { color: var(--accent); }

/* « Choix des images »: the product page, top to bottom */
.legend { display: flex; gap: 18px; flex-wrap: wrap; margin: 0 0 14px; font-size: 12.5px; color: var(--muted); }
.legend kbd { font: inherit; font-size: 12px; background: #f8fbfa; border: 1px solid var(--line); border-radius: 5px; padding: 0 6px; color: var(--ink); }
.zones { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.zone { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 14px 16px; transition: background .15s, box-shadow .15s; }
.zone + .zone { border-top: 1px solid #eef3f1; }
.zone-head strong { display: block; font-size: 14px; }
.zone-hint { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; font-weight: 400; }
.zone-head .count { display: inline-block; margin-top: 8px; background: var(--soft); color: #4f615a; border-radius: 999px; padding: 1px 10px; font-size: 12px; font-weight: 600; }
.zone-empty { color: #9aa8a2; font-size: 13px; font-style: italic; }
.zone--pool { background: #fafbfb; }
.zone.is-target { background: #f0fbf6; box-shadow: inset 3px 0 0 var(--green); }
.img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; align-items: start; }
.zone.is-empty .img-grid { min-height: 44px; align-items: center; }
.img-tile { position: relative; border: 2px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; transition: box-shadow .15s, transform .12s; }
.img-tile:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(16,24,40,.14); }
.img-tile > img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; cursor: pointer; background: #f4f7f6; }
.img-tile.is-kept { border-color: var(--green); box-shadow: 0 0 0 2px rgba(16,185,129,.28); }
.img-tile.zone-main { box-shadow: 0 0 0 3px rgba(16,185,129,.34); }
.img-tile.is-copy { border-style: dashed; }
.img-tile.is-waiting { border-style: dashed; border-color: #cfdcd6; }
.img-tile.is-moving { opacity: .38; }
.img-tile[draggable="true"] { cursor: grab; }
.img-tile.is-working > img { opacity: .4; }
.img-tile.is-asked { border-color: var(--green); box-shadow: 0 0 0 3px rgba(16,185,129,.3); }
.grip { position: absolute; top: 6px; right: 6px; z-index: 3; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; border-radius: 6px; background: rgba(255,255,255,.92); color: var(--muted); font-size: 13px; line-height: 1; cursor: grab; opacity: .6; box-shadow: 0 1px 3px rgba(0,0,0,.14); }
.img-tile:hover .grip { opacity: 1; }
.img-rank { position: absolute; top: 6px; left: 6px; min-width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; padding: 0 7px; border-radius: 999px; background: rgba(17,32,26,.78); color: #fff; font-size: 11px; font-weight: 700; }
.img-rank.is-main { background: var(--green); }
.img-small { position: absolute; top: 32px; left: 6px; background: rgba(255,244,220,.95); color: var(--cost); border-radius: 999px; font-size: 10px; font-weight: 600; padding: 1px 7px; }
.img-done { position: absolute; top: 6px; right: 36px; background: rgba(255,255,255,.94); color: var(--accent); border-radius: 999px; font-size: 10px; font-weight: 600; padding: 2px 8px; }
.img-label { display: block; padding: 5px 8px; font-size: 11.5px; color: #34453d; line-height: 1.3; overflow-wrap: anywhere; border-top: 1px solid #eef3f1; }
.img-waiting { position: absolute; top: 6px; left: 6px; background: rgba(255,255,255,.94); border: 1px solid #cfdcd6; border-radius: 999px; color: var(--muted); font-size: 10px; font-weight: 600; padding: 2px 8px; }
.img-busy { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 3; pointer-events: none; }
.img-err { position: absolute; left: 6px; bottom: 34px; z-index: 3; width: 18px; height: 18px; border-radius: 50%; background: var(--bad); color: #fff; font-size: 12px; font-weight: 700; line-height: 18px; text-align: center; cursor: help; }
.img-tools { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); display: flex; gap: 3px; flex-wrap: wrap; justify-content: center; max-width: calc(100% - 8px); opacity: 0; transition: opacity .15s; z-index: 2; }
.img-tile:hover .img-tools, .img-tile:focus-within .img-tools { opacity: 1; }
.img-tile .img-label ~ .img-tools { bottom: 32px; }
.img-tools .tool { width: 24px; height: 24px; padding: 0; border: 0; border-radius: 6px; background: rgba(255,255,255,.94); color: var(--ink); cursor: pointer; font-size: 13px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.img-tools .tool:hover { background: var(--green); color: #fff; }
.img-tools .tool.on { background: var(--green); color: #fff; }
.img-tools .tool.danger:hover { background: var(--bad); }
.drop-half { position: absolute; top: 0; bottom: 0; width: 50%; z-index: 1; pointer-events: none; }
.drop-half.before { left: 0; }
.drop-half.after { right: 0; }
.picker.is-dragging .drop-half { pointer-events: auto; }
.drop-half.before.is-target { box-shadow: inset 4px 0 0 var(--green); }
.drop-half.after.is-target { box-shadow: inset -4px 0 0 var(--green); }
button.img-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; aspect-ratio: 1 / 1; border: 2px dashed #cfdcd6; background: #fafbfb; color: var(--accent); cursor: pointer; text-align: center; padding: 8px; font: inherit; }
button.img-add:hover:not(:disabled), button.img-add.is-on { background: #e9f8f1; border-color: var(--green); }
button.img-add:disabled { cursor: default; opacity: .75; }
.img-add .plus { font-size: 30px; line-height: 1; font-weight: 300; }
.img-add .add-label { font-size: 12px; line-height: 1.25; }
.discarded { margin-top: 16px; }
.discarded summary { cursor: pointer; color: var(--muted); margin-bottom: 10px; }
.img-tile.is-discarded { border-style: dashed; opacity: .72; display: flex; flex-direction: column; }
.img-tile.is-discarded:hover { opacity: 1; }
.discard-why { display: block; padding: 5px 8px 0; font-size: 11px; color: var(--muted); line-height: 1.3; }
button.recover { font: inherit; font-size: 12px; margin: 6px 8px 8px; border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 3px 8px; cursor: pointer; color: var(--accent); }
.ask-panel { background: var(--soft); border-radius: 10px; padding: 12px 14px; margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 782px) { .zone { grid-template-columns: 1fr; gap: 10px; } }

/* the veil: the AI at work on this step, nothing on it can be clicked */
.veil { position: relative; background: #fff; border: 1px solid var(--card-line); border-radius: 12px; padding: 14px 18px; margin: 0 0 14px; box-shadow: 0 6px 20px rgba(16,24,40,.10); }
.veil .progress { margin: 0; }
.veil-note { margin: 10px 0 0; color: var(--muted); font-size: 12.5px; text-align: center; }
.step-card.is-working > .part { opacity: .45; filter: saturate(.6); pointer-events: none; user-select: none; transition: opacity .3s ease; }
.progress.is-waiting .progress-bar { width: 45% !important; background: linear-gradient(90deg, rgba(16,185,129,0) 0%, var(--green) 50%, rgba(16,185,129,0) 100%); animation: sweep 1.4s ease-in-out infinite; }
@keyframes sweep { 0% { transform: translateX(-110%); } 100% { transform: translateX(330%); } }
@media (prefers-reduced-motion: reduce) { .progress.is-waiting .progress-bar { animation: none; } }

/* « Vérification »: zones, blocks read as published and edited in place */
.step-card.review > .part-rvhead h2 { margin: 0 0 2px; font-size: 17px; font-weight: 600; }
.review-name { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; font-size: 15px; font-weight: 600; }
.review-name.editing { display: block; }
.rzone { display: block; margin: 0 0 18px; border: 1px solid #e3f0ea; border-radius: 12px; padding: 16px 18px; }
.part-rvpublish .rzone { border-color: var(--card-line); background: #f8fbfa; }
.rzone-title { margin: 0 0 12px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--accent); }
.rzone-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 10px; }
.rzone .zone { grid-template-columns: 150px 1fr; gap: 12px; }
.rzone .img-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.rzone .img-tools .tool { width: 20px; height: 20px; font-size: 12px; }
@media (max-width: 782px) { .rzone .zone { grid-template-columns: 1fr; } }
.rblock { margin: 0 0 22px; }
.rblock:last-child { margin-bottom: 0; }
.rblock .block-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.rblock .label { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--accent); }
button.block-edit { font: inherit; font-size: 12px; width: 24px; height: 24px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: #4f615a; cursor: pointer; line-height: 1; padding: 0; }
button.block-edit:hover { border-color: var(--green); color: var(--accent); }
button.block-edit.on { background: var(--green); border-color: var(--green); color: #fff; }
.preview { border: 1px solid #e3f0ea; border-radius: 8px; padding: 12px 14px; background: #fdfefe; max-height: 260px; overflow: auto; }
.preview p { margin: 0 0 10px; }
.preview ul { margin: 0 0 0 18px; padding: 0; }
.preview li { margin-bottom: 4px; }
.clickable { cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.preview.clickable:hover, table.clickable:hover, div.clickable:hover { box-shadow: 0 0 0 2px rgba(16,185,129,.14); border-radius: 8px; }
table.plain-table { border-collapse: collapse; width: 100%; font-size: 13px; }
table.plain-table th, table.plain-table td { border-bottom: 1px solid #eef3f1; padding: 6px 8px; text-align: left; vertical-align: middle; }
table.plain-table tbody th { width: 220px; font-weight: 600; color: #34453d; }
table.plain-table thead th { color: var(--muted); font-weight: 600; font-size: 12px; }
.add-line { margin: 8px 0 0; display: flex; gap: 16px; flex-wrap: wrap; }
.done-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 10px 0 0; }
.rprices { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; margin: 4px 0 14px; }
.rprice { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; padding: 7px 10px; border: 1px solid #e6ece9; border-radius: 8px; background: #fbfdfc; font-size: 13px; }
.rprices.clickable:hover .rprice { border-color: #b9e3d2; }
.rprice-name { flex: 1 1 100%; color: #34453d; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rprice-price { font-size: 14px; color: var(--ink); }
.rprice-margin { font-size: 12px; color: var(--accent); }
.rprice.is-loss .rprice-margin { color: var(--bad); }
table.sizes-table.edit th, table.sizes-table.edit td { padding: 3px 4px; }
input[type="text"].size-cell { width: 100%; min-width: 64px; padding: 4px 6px; border-radius: 6px; font-size: 13px; }
input[type="text"].size-cell.unit { margin-top: 3px; max-width: 70px; }
button.attr-x { font: inherit; border: 0; background: none; color: var(--bad); cursor: pointer; font-size: 13px; padding: 2px 4px; }
.feed-line { display: flex; gap: 14px; flex-wrap: wrap; margin: 10px 0; }
.feed-field { display: flex; flex-direction: column; gap: 4px; }
.feed-name { font-size: 12px; font-weight: 600; color: #34453d; }
.feed-field select { min-width: 200px; }
input[type="text"].feed-text { min-width: 140px; }
table.feed-table select { min-width: 150px; font-size: 12.5px; }
.fiche-head .source-link { margin-left: auto; font-size: 12px; color: var(--muted); white-space: nowrap; }
.done-actions { margin-top: 6px; }

/* the retouches */
.retouch h3 { font-size: 13px; margin: 0; }
.plan-head, .after-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 12px 0 8px; }
.plan-head .count { color: var(--muted); font-size: 13px; }
.after-head { margin-top: 18px; }
.after-head .hint, .retouch-run .hint { color: var(--muted); font-size: 12px; }
.plan-all { background: var(--soft); border-radius: 8px; padding: 8px 10px; margin-bottom: 10px; }
.shots { display: flex; flex-direction: column; gap: 8px; }
.shot { display: grid; grid-template-columns: 38px 96px 1fr; gap: 12px; align-items: start; border: 1px solid var(--line); border-radius: 8px; padding: 10px; background: #fff; }
.shot.armed { border-color: #9fd3bf; }
.shot.editing { background: #fbfdfc; border-style: dashed; }
.shot.busy { opacity: .75; }
.shot-thumb { position: relative; }
.shot-thumb img { width: 96px; height: 96px; object-fit: cover; border-radius: 6px; display: block; background: var(--soft); }
.shot-thumb .who { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; overflow-wrap: anywhere; }
.shot-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.shot-body .again { font-size: 12px; color: var(--warn); font-weight: 600; }
.shot-body .why { font-size: 12px; color: var(--muted); }
.shot-body .error, .pair .error { font-size: 12px; color: var(--bad); font-weight: 600; }
.shot-body .state, .pair .state { font-size: 12px; color: var(--accent); display: inline-flex; gap: 6px; align-items: center; }
input[type="text"].target { width: 100%; max-width: 460px; font-size: 13px; }
button.shot.add { display: flex; align-items: center; justify-content: center; gap: 8px; grid-template-columns: none; font: inherit; color: var(--accent); background: #fff; border-style: dashed; cursor: pointer; padding: 14px; }
button.shot.add[disabled] { opacity: .5; cursor: default; }
div.shot.add { display: flex; align-items: center; gap: 8px; color: var(--accent); }
.shot.add .plus { font-size: 20px; font-weight: 700; line-height: 1; }
.add-panel { border: 1px dashed #9fd3bf; border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.add-panel .label { font-weight: 600; font-size: 13px; }
.sources { display: flex; gap: 6px; flex-wrap: wrap; }
button.source { padding: 0; border: 2px solid transparent; border-radius: 6px; background: none; cursor: pointer; }
button.source.on { border-color: var(--green); }
button.source img { width: 56px; height: 56px; object-fit: cover; border-radius: 4px; display: block; }
.fams { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.fam { display: flex; flex-direction: column; gap: 3px; }
.fam-name { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
button.chip { font: inherit; font-size: 12px; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 14px; padding: 2px 10px; cursor: pointer; }
button.chip.suggested { border-color: #5fbf98; background: #eef8f3; }
button.chip.on { background: var(--green); border-color: var(--green); color: #fff; }
button.chip[disabled] { opacity: .45; cursor: default; }
button.chip.all { font-weight: 600; }
.chips.picked button.chip { padding: 5px 13px; font-size: 13px; }
button.switch { width: 34px; height: 20px; border-radius: 10px; border: 0; background: #c9d3cf; position: relative; cursor: pointer; padding: 0; margin-top: 4px; }
button.switch .dot { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s ease; }
button.switch.on { background: var(--green); }
button.switch.on .dot { left: 16px; }
button.switch[disabled] { opacity: .45; cursor: default; }
label.check.create { background: var(--soft); border-radius: 8px; padding: 8px 10px; margin: 10px 0 0; }
.pairs { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.pair { border: 1px solid var(--line); border-radius: 8px; padding: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-content: start; }
.pair.busy { opacity: .75; }
.pair .side { position: relative; }
.pair .side img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; display: block; background: var(--soft); }
.pair .tag { position: absolute; left: 4px; top: 4px; font-size: 11px; background: rgba(255,255,255,.92); border-radius: 8px; padding: 1px 6px; }
.pair .tag.on { color: var(--accent); font-weight: 600; }
.pair .what, .pair .versions, .pair .pair-acts, .pair .error, .pair .state { grid-column: 1 / -1; }
.pair .what { font-size: 12px; color: var(--muted); }
.versions { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.version { padding: 0; border: 2px solid transparent; border-radius: 5px; background: none; cursor: pointer; }
.version.on { border-color: var(--green); cursor: default; }
.version img { width: 40px; height: 40px; object-fit: cover; border-radius: 3px; display: block; }
.pair-acts { display: flex; gap: 4px 10px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.spinner { display: inline-block; width: 12px; height: 12px; border: 2px solid #bfe3d4; border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -2px; margin-right: 6px; }
.note.busy { display: flex; align-items: center; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 640px) { .shot { grid-template-columns: 34px 64px 1fr; } .shot-thumb img { width: 64px; height: 64px; } }

/* the review and the publication */
.publish h3 { font-size: 13px; margin: 16px 0 8px; }
ul.checks { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
ul.checks li { border-radius: 8px; padding: 8px 12px; font-size: 13px; }
ul.checks li.blocking { background: #fdf2f1; color: var(--bad); font-weight: 600; }
ul.checks li.warn { background: var(--cost-bg); color: #4d3b12; }
.take { margin: 0 0 8px; }
.take > .hint { color: var(--muted); }
.product-picker { max-width: 620px; }
ul.products { list-style: none; margin: 8px 0; padding: 0; border: 1px solid var(--line); border-radius: 9px; max-height: 320px; overflow-y: auto; }
ul.products li + li { border-top: 1px solid #eef3f1; }
ul.products li.hint { padding: 8px 12px; color: var(--muted); }
ul.products button { font: inherit; font-size: 13.5px; width: 100%; display: flex; align-items: center; gap: 12px; background: none; border: 0; padding: 8px 12px; cursor: pointer; text-align: left; color: var(--ink); }
ul.products button:hover { background: #f8fbfa; }
ul.products img, ul.products .nothumb { width: 32px; height: 32px; border-radius: 5px; }
ul.products .title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
ul.products .hint { font-size: 11.5px; color: #87958e; flex: none; }
.go { margin-top: 14px; border-top: 1px solid var(--soft); }
.publish-run { flex-wrap: wrap; }
.publish-run .status { display: inline-flex; align-items: center; }
.done { background: #eef8f3; border: 1px solid #bfe3d4; border-radius: 10px; padding: 12px 16px; margin: 14px 0 8px; }
.done-title { color: var(--accent); font-weight: 700; margin: 0 0 8px; }
a.button-like { display: inline-block; font-size: 13px; text-decoration: none; background: #fff; color: var(--button); border: 1px solid var(--button); border-radius: 3px; padding: 7px 14px; }
a.button-like.primary { background: var(--button); border-color: var(--button); color: #fff; font-weight: 600; }

/* the AliExpress connection */
.connect { margin: 10px 0 6px; }
.connect .note p { margin: 6px 0; }
.connect .inline input { flex: 1; min-width: 240px; font-size: 12px; color: var(--muted); }

/* messages */
.message { border: 1px solid var(--line); border-radius: 10px; padding: 18px; margin: 0 0 16px; background: #fff; }
.message.bad { border-color: #f1c9c5; background: #fdf2f1; color: var(--bad); }
.message.ok { border-color: #bfe3d4; background: #eef8f3; color: var(--accent); font-weight: 600; padding: 12px 18px; }
.drafts > .message { margin: 0; background: var(--soft); border: 0; }
.message .fail-text { margin: 0 0 10px; }
.message.problem { padding: 12px 18px; }
.message.problem button.link { color: var(--bad); font-weight: 600; text-decoration: underline; }

/* a value that cannot be read: said on the field */
input.is-invalid { border-color: var(--bad); box-shadow: 0 0 0 1px var(--bad); }

/* the keyboard sees where it is */
.rich:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }
.img-tile img[role="button"]:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }

/* no hover on a touch screen: the photo tools stay in sight */
@media (hover: none) {
  .img-tools { opacity: 1; }
  .grip { opacity: 1; }
}

.resume > .hint { color: var(--muted); font-size: 12.5px; margin: -4px 0 10px; }
