/* FakeMate on top of the ChatMate design system (maske.css + start.css / portal.css, recoloured blue): what ChatMate has no
   piece for - the before/after slider, albums and photos, the upload field, the steps of an album, coin packs. Colours only
   from the tokens, so light and dark both work. */

/* ---------- landing ---------- */
.fm-hero .lp-hero-media { background: radial-gradient(120% 90% at 70% 30%, #1d3f8f 0%, #0a0d14 62%); }
.fm-hero .lp-hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.fm-note { margin: 14px auto 0; max-width: 46rem; color: var(--ink3); font-size: 13.5px; text-align: center; }
.fm-points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .fm-points { grid-template-columns: 1fr; } }

.fm-compare {
  position: relative; max-width: 960px; margin: 0 auto; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 22px;
  background: var(--sunken); box-shadow: var(--lp-sh-2, var(--shadow)); user-select: none; touch-action: pan-y;
}
.fm-compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.fm-compare-b { position: absolute; inset: 0; clip-path: inset(0 0 0 50%); }
.fm-compare-line { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 12px rgba(0, 0, 0, .35); pointer-events: none; }
.fm-compare-line i {
  position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%;
  background: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
}
.fm-compare-line i::before, .fm-compare-line i::after {
  content: ""; position: absolute; top: 50%; width: 0; height: 0; margin-top: -6px; border: 6px solid transparent;
}
.fm-compare-line i::before { left: 7px; border-right-color: var(--accent); }
.fm-compare-line i::after { right: 7px; border-left-color: var(--accent); }
.fm-compare-tag {
  position: absolute; top: 14px; padding: 5px 11px; border-radius: 999px; background: rgba(10, 13, 20, .62); color: #fff;
  font-size: 12.5px; font-weight: 600; letter-spacing: .02em; backdrop-filter: blur(6px); pointer-events: none;
}
.fm-compare-tag.l { left: 14px; }
.fm-compare-tag.r { right: 14px; background: var(--accent); }
.fm-compare-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.fm-compare-range:focus-visible + * { outline: none; }
.fm-compare:has(.fm-compare-range:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---------- portal: tiles, steps, callouts ---------- */
.fm-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 16px; }
@media (max-width: 900px) { .fm-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fm-tile { display: grid; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); text-decoration: none; color: inherit; }
a.fm-tile:hover { border-color: var(--line2); background: var(--sunken); }
.fm-tile dt, .fm-tile span { color: var(--ink2); font-size: 13px; }
.fm-tile dd, .fm-tile b { margin: 0; font-family: var(--font-d); font-size: 28px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.fm-tile small { color: var(--ink3); font-size: 12.5px; }
.fm-tile.accent { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.fm-tile.accent b, .fm-tile.accent dd { color: var(--accent-text); }

.fm-callout { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--sunken); font-size: 14px; line-height: 1.5; }
.fm-callout > .ic { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--accent-text); }
.fm-callout.ok { border-color: color-mix(in srgb, var(--ok) 35%, var(--line)); background: var(--ok-soft); }
.fm-callout.ok > .ic { color: var(--ok); }
.fm-callout.warn { border-color: color-mix(in srgb, var(--warn) 35%, var(--line)); background: var(--warn-soft); }
.fm-callout.warn > .ic { color: var(--warn); }
.fm-callout.bad { border-color: var(--bad-line); background: var(--bad-soft); }
.fm-callout.bad > .ic { color: var(--bad); }
.fm-callout p { margin: 0; }
.fm-callout b { display: block; margin-bottom: 2px; }

.fm-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; counter-reset: s; }
.fm-steps li { position: relative; display: grid; gap: 4px; padding: 12px 14px 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink3); font-size: 13px; }
.fm-steps li b { color: var(--ink2); font-size: 13.5px; }
.fm-steps li.is-on { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.fm-steps li.is-on b { color: var(--ink); }
.fm-steps li.is-now { border-color: var(--accent); background: var(--accent-soft); }
.fm-steps li.is-now b { color: var(--accent-text); }
.fm-steps li.is-off { opacity: .55; }
@media (max-width: 720px) { .fm-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- albums ---------- */
.fm-albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.fm-album { display: grid; grid-template-rows: auto 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: inherit; text-decoration: none; transition: border-color .15s, transform .2s var(--ease), box-shadow .2s; }
.fm-album:hover { border-color: var(--line2); transform: translateY(-2px); box-shadow: var(--shadow); }
.fm-album-cover { position: relative; aspect-ratio: 4 / 3; background: var(--sunken); }
.fm-album-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fm-album-cover .tag { position: absolute; top: 10px; left: 10px; }
.fm-album-cover .fm-empty-cover { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink3); }
.fm-album-cover .fm-empty-cover .ic { width: 30px; height: 30px; }
.fm-album-t { display: grid; gap: 4px; padding: 12px 14px 14px; }
.fm-album-t b { font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.fm-album-t small { color: var(--ink3); font-size: 12.5px; }
.fm-album.new { display: grid; place-items: center; min-height: 230px; border-style: dashed; background: transparent; }
.fm-album.new form { display: grid; gap: 10px; justify-items: center; padding: 18px; text-align: center; }
.fm-album.new .ic { width: 28px; height: 28px; color: var(--accent-text); }

.tag.info { background: var(--accent-soft); color: var(--accent-text); }

/* ---------- photos of an album ---------- */
.fm-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 0; padding: 16px 22px 22px; list-style: none; }
.fm-photo { display: grid; grid-template-rows: auto 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); scroll-margin-top: 90px; }
.fm-photo-img { position: relative; aspect-ratio: 3 / 4; background: var(--sunken); }
.fm-photo-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fm-photo-img .tag { position: absolute; top: 8px; left: 8px; }
.fm-photo-img .fm-n { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(10, 13, 20, .6); color: #fff; font-size: 12.5px; font-weight: 700; }
.fm-photo-img.is-busy::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
  background-size: 200% 100%; animation: fm-sheen 1.6s linear infinite;
}
@keyframes fm-sheen { from { background-position: 150% 0; } to { background-position: -50% 0; } }
@media (prefers-reduced-motion: reduce) { .fm-photo-img.is-busy::after { animation: none; } }
.fm-photo-b { display: grid; gap: 8px; align-content: start; padding: 12px; }
.fm-photo-b form { display: grid; gap: 8px; }
.fm-photo-b textarea { width: 100%; min-height: 64px; padding: 8px 10px; border: 1px solid var(--line2); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; font-size: 13.5px; line-height: 1.45; resize: vertical; }
.fm-photo-b textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.fm-photo-b .fm-wish { margin: 0; color: var(--ink2); font-size: 13.5px; line-height: 1.45; }
.fm-photo-b .fm-wish i { color: var(--ink3); }
.fm-photo-b .fm-err { margin: 0; color: var(--bad); font-size: 12.5px; }
.fm-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fm-row .grow { flex: 1; }

/* the result next to the original */
.fm-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--line); }
.fm-pair figure { position: relative; margin: 0; aspect-ratio: 3 / 4; background: var(--sunken); }
.fm-pair img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fm-pair figcaption { position: absolute; bottom: 8px; left: 8px; padding: 3px 8px; border-radius: 999px; background: rgba(10, 13, 20, .62); color: #fff; font-size: 11.5px; font-weight: 600; }
.fm-pair figure + figure figcaption { background: var(--accent); }

/* ---------- upload ---------- */
.fm-drop {
  position: relative; display: grid; justify-items: center; gap: 6px; margin: 16px 22px 0; padding: 26px 16px; border: 2px dashed var(--line2);
  border-radius: 16px; background: var(--sunken); color: var(--ink2); text-align: center; cursor: pointer; transition: border-color .15s, background .15s;
}
.fm-drop:hover, .fm-drop.is-over { border-color: var(--accent); background: var(--accent-soft); }
.fm-drop input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.fm-drop .ic { width: 28px; height: 28px; color: var(--accent-text); }
.fm-drop b { color: var(--ink); font-size: 15px; }
.fm-drop small { color: var(--ink3); font-size: 12.5px; }
.fm-drop [data-picked] { color: var(--accent-text); font-weight: 600; font-size: 13.5px; }

/* ---------- coins ---------- */
.fm-packs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 16px 22px 22px; }
@media (max-width: 900px) { .fm-packs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fm-pack { position: relative; display: grid; gap: 6px; align-content: start; padding: 18px 16px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.fm-pack.best { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.fm-pack .fm-best { position: absolute; top: -10px; right: 12px; padding: 3px 9px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 11.5px; font-weight: 700; }
.fm-pack b { font-family: var(--font-d); font-size: 30px; font-weight: 700; line-height: 1; }
.fm-pack b small { margin-left: 4px; color: var(--ink2); font-family: var(--font); font-size: 14px; font-weight: 600; }
.fm-pack .fm-price { color: var(--ink); font-size: 17px; font-weight: 600; }
.fm-pack .fm-price small { display: block; color: var(--ink3); font-size: 12px; font-weight: 400; }
.fm-pack .fm-hint { color: var(--ink3); font-size: 12.5px; }
.fm-pack form { margin-top: 6px; display: grid; gap: 6px; }
.fm-pack .btn, .fm-pack .btn2 { width: 100%; justify-content: center; }
.fm-balance { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 600; text-decoration: none; color: inherit; }
.fm-balance .ic { width: 16px; height: 16px; color: var(--accent-text); }
.fm-coin-dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #9cc4ff, var(--accent) 60%, #1e40af); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); vertical-align: -2px; }
.pos { color: var(--ok); font-weight: 600; }
.neg { color: var(--ink2); }

/* ---------- forms in cards ---------- */
.fm-form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 16px 22px 20px; }
.fm-form-foot .m-hint { flex: 1; min-width: 200px; }
.fm-consent { display: flex; gap: 10px; align-items: flex-start; margin: 0 22px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--sunken); font-size: 14px; line-height: 1.45; cursor: pointer; }
.fm-consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }

/* ---------- admin ---------- */
.fm-q { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.fm-q li a { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: inherit; text-decoration: none; }
.fm-q li a:hover { background: var(--sunken); }
.fm-q img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: var(--sunken); }
.fm-q b { display: block; font-size: 14.5px; }
.fm-q small { color: var(--ink3); font-size: 12.5px; }
.fm-prompt { margin: 0; padding: 8px 10px; border-radius: 8px; background: var(--sunken); color: var(--ink2); font-family: ui-monospace, Consolas, monospace; font-size: 11.5px; line-height: 1.45; overflow-wrap: anywhere; }
.fm-link { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border: 1px dashed var(--accent); border-radius: 12px; background: var(--accent-soft); font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; overflow-wrap: anywhere; }
.fm-link span { flex: 1; }
.fm-ai { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; }
.fm-ai i { width: 9px; height: 9px; border-radius: 50%; background: var(--ink3); }
.fm-ai.up i { background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.fm-ai.demo i { background: var(--warn); box-shadow: 0 0 0 4px var(--warn-soft); }

/* ---------- small helpers ---------- */
.fm-muted { color: var(--ink3); }
.fm-mono { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; }
.fm-inline { display: inline; }
.fm-gap { display: grid; gap: 16px; }
.fm-two { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 980px) { .fm-two { grid-template-columns: 1fr; } }
.card > .fm-pad { padding: 16px 22px 20px; }
.card-h .fm-row { margin-left: auto; }

/* ---------- cards in FakeMate pages (the base .card has no padding; the parts bring their own) ---------- */
.mpage > .card, .mpage > section.card, .fm-gap > .card { margin: 0 0 16px; }
.card-h { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 16px 22px 0; }
.card-h h2 { margin: 0; font-size: 15px; font-weight: 600; }
.card-h .sub { color: var(--ink3); font-size: 13px; }
.card > .m-wrap { padding: 6px 22px 14px; }
.card > .m-rows { padding: 6px 22px 14px; }
.card > .m-empty { padding: 28px 22px; }
.card > .m-lead, .card > p.m-hint { margin: 10px 22px 0; }
.m-table { width: 100%; border-collapse: collapse; }
.m-table td { padding: 10px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: middle; }
.m-table tbody tr:last-child td { border-bottom: 0; }
.m-table .r { text-align: right; font-variant-numeric: tabular-nums; }
.m-table a { color: inherit; }
.m-table td small { display: block; color: var(--ink3); font-size: 12px; }
.mhead .fm-row { align-self: center; }

/* ---------- error page ---------- */
.fm-error { display: grid; align-content: center; min-height: 70vh; padding: 120px 16px 80px; text-align: center; }
.fm-error-code { margin: 0; font-family: var(--font-d); font-size: clamp(64px, 12vw, 120px); font-weight: 800; line-height: 1; background: linear-gradient(135deg, #93c5fd, var(--accent) 55%, #1e40af); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fm-error h1 { margin: 10px 0 8px; font-family: var(--font-d); font-size: clamp(26px, 4vw, 38px); }
.fm-error p { margin: 0 auto 6px; max-width: 46ch; color: var(--ink2); }
.fm-error .lp-cta { justify-content: center; margin-top: 22px; }

/* ---------- portal + admin pages (30.10.) ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.fm-crumb { margin: 0 0 4px; font-size: 13px; }
.fm-crumb a { color: var(--ink3); text-decoration: none; }
.fm-crumb a::before { content: "‹ "; }
.fm-crumb a:hover { color: var(--accent-text); }
.mhead p .tag { margin-right: 6px; vertical-align: 1px; }
.mhead-a.fm-row { flex-wrap: wrap; justify-content: flex-end; }
.fm-small { margin: 0; font-size: 12.5px; }
.fm-grow { flex: 1; min-width: 0; display: grid; gap: 8px; }
.fm-grow p { margin: 0; }
.fm-wish-all { margin: 12px 22px 0 !important; padding: 10px 12px; border-radius: 10px; background: var(--sunken); color: var(--ink2); }
.fm-submit { margin-top: 4px; border-top: 1px solid var(--line); padding-top: 16px; }
.fm-short { color: var(--warn); }
.danger-text { color: var(--bad) !important; }
.btn2.danger-text:hover { border-color: var(--bad-line); background: var(--bad-soft); }

/* the "how it works" list on the overview: a real sequence, so numbered */
.fm-howto { display: grid; gap: 12px; margin: 0; padding: 14px 22px 20px; list-style: none; counter-reset: h; }
.fm-howto li { display: grid; grid-template-columns: 28px 1fr; column-gap: 12px; row-gap: 2px; counter-increment: h; }
.fm-howto li::before {
  content: counter(h); grid-row: span 2; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-text); font-size: 13px; font-weight: 700;
}
.fm-howto b { font-size: 14px; }
.fm-howto span { color: var(--ink3); font-size: 13px; line-height: 1.45; }

/* dialogs: action rows (report, delete, invite, block) */
.fm-actions { display: grid; gap: 0; padding: 4px 22px 18px; }
.fm-actions > form { padding: 14px 0; }
.fm-actions > form + form { border-top: 1px solid var(--line); }
.fm-danger-row { display: flex; align-items: center; gap: 14px; }
.fm-danger-row > div { flex: 1; display: grid; gap: 2px; min-width: 0; }
.fm-danger-row > div b { font-size: 14px; }
.fm-danger-row > div span { color: var(--ink3); font-size: 13px; line-height: 1.4; }
.fm-pad-row { margin: 6px 22px 0; padding: 14px 0 18px; border-top: 1px solid var(--line); }
.fm-pad-x { margin: 12px 22px 0; }
.fm-pad-pre { margin: 10px 22px 0; white-space: pre; overflow-x: auto; }
.fm-consent-dlg { margin: 14px 22px 0; }
.fm-consent-flat { margin: 0; }
.fm-quote { margin: 14px 22px 0; padding: 10px 12px; border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; background: var(--sunken); color: var(--ink2); font-size: 14px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.fm-msg { max-width: 46ch; white-space: pre-wrap; overflow-wrap: anywhere; }

/* filter tabs (orders) */
.fm-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.fm-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink2); font-size: 13.5px; font-weight: 600; text-decoration: none; }
.fm-tabs a span { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--sunken); color: var(--ink3); font-size: 12px; text-align: center; font-variant-numeric: tabular-nums; }
.fm-tabs a:hover { border-color: var(--line2); color: var(--ink); }
.fm-tabs a[aria-current="page"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text); }
.fm-tabs a[aria-current="page"] span { background: var(--accent); color: var(--on-accent); }

.fm-thumb-td { width: 56px; }
.fm-thumb { display: block; width: 48px; height: 48px; border-radius: 10px; object-fit: cover; background: var(--sunken); }
.fm-q li a > span:empty { width: 64px; height: 64px; border-radius: 10px; background: var(--sunken); }
.fm-tile-sm { font-size: 20px !important; overflow-wrap: anywhere; }
.fm-tiles-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) { .fm-tiles-2 { grid-template-columns: 1fr; } }
.fm-balance.big { padding: 8px 16px; font-size: 16px; }
.fm-balance.big .fm-coin-dot { width: 18px; height: 18px; }
.fm-pay-note { margin: 0 22px 18px !important; }
.fm-drop.sm { margin: 4px 0 0; padding: 12px; gap: 2px; }
.fm-drop.sm b { font-size: 13px; }

/* billing address: company only with a VAT ID */
.fm-biz { margin: 16px 22px 0; border: 1px solid var(--line); border-radius: 12px; background: var(--sunken); }
.fm-biz summary { display: grid; gap: 2px; padding: 12px 14px; cursor: pointer; list-style: none; }
.fm-biz summary::-webkit-details-marker { display: none; }
.fm-biz summary b { font-size: 14px; }
.fm-biz summary b::before { content: "+ "; color: var(--accent-text); }
.fm-biz[open] summary b::before { content: "– "; }
.fm-biz summary span { color: var(--ink3); font-size: 12.5px; }
.fm-biz .m-fields { padding: 0 14px; }
.fm-biz-note { margin: 10px 14px 14px !important; }
.fm-mono-in { font-family: ui-monospace, Consolas, monospace; text-transform: uppercase; letter-spacing: .02em; }
.fm-form-foot .grow { flex: 1; }
.fm-form-foot:empty { padding: 0 0 10px; }

/* public report form */
.fm-report { padding: 120px 16px 80px; }
.fm-report-in { max-width: 720px; margin: 0 auto; }
.fm-report h1 { margin: 0 0 10px; font-family: var(--font-d); font-size: clamp(30px, 5vw, 44px); line-height: 1.1; }
.fm-report .lp-lead { margin: 0 0 24px; }
.fm-report-form { padding: 4px 0 0; }
.fm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* in-page confirmation (replaces window.confirm) */
.fm-confirm .dlg-b { display: flex; gap: 14px; align-items: flex-start; padding: 22px 22px 8px; }
.fm-confirm .dlg-b p { margin: 4px 0 0; font-size: 15px; line-height: 1.5; }

@media (max-width: 640px) {
  .fm-danger-row { flex-wrap: wrap; }
  .fm-danger-row .btn, .fm-danger-row .btn2 { width: 100%; justify-content: center; }
  .m-fields.two { grid-template-columns: 1fr; }
  .fm-photos { padding: 14px 16px 18px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .fm-packs { padding: 14px 16px 18px; }
}

/* fixes after the first screenshots: the parts bring their own padding (the base .m-page .card has 20px 22px), table cells line
   up with the card title, cover tags readable on any photo, the top bar fits on a phone */
.m-page .card { padding: 4px 0 6px; }
.card > .m-wrap { padding: 6px 12px 14px; }
.fm-album-cover .tag { background: rgba(255, 255, 255, .94); color: #1b2230; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); }
.fm-album-cover .tag.info { background: var(--accent); color: var(--on-accent); }
.fm-album-cover .tag.ok { background: #16794a; color: #fff; }
.fm-album-cover .tag.bad { background: #b42318; color: #fff; }
.fm-submit { margin: 8px 22px 0; padding-top: 16px; border-top: 1px solid var(--line); }
.fm-submit .fm-consent { margin: 0; }
.fm-submit .fm-form-foot { padding-left: 0; padding-right: 0; }
.fm-textlink { color: var(--ink2); font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.fm-textlink:hover { color: var(--accent-text); }
.fm-balance { white-space: nowrap; }
@media (max-width: 640px) {
  .mtop .fm-test-tag { display: none; }
  .mtop .fm-balance { padding: 5px 10px; font-size: 13.5px; }
  .m-page .card { padding: 2px 0 4px; }
  .fm-wish-all { margin: 12px 16px 0 !important; }
  .card-h { padding: 14px 16px 0; }
  .card > .fm-pad { padding: 14px 16px 16px; }
  .card > .m-wrap { padding: 4px 6px 10px; }
  .fm-submit { margin: 8px 16px 0; }
  .fm-drop { margin: 14px 16px 0; }
}

/* public report form: the public pages do not load the portal's form styles, so the fields get their own here */
.fm-report-form { display: grid; gap: 0; padding: 8px 0 4px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.fm-report-form .m-fields { display: grid; gap: 16px; padding: 22px 26px 0; }
.fm-report-form .m-fields .m-fields { padding: 0; }
.fm-report-form .m-fields.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fm-report-form .m-field { display: grid; gap: 7px; min-width: 0; }
.fm-report-form .m-field > span:first-child { color: var(--ink); font-size: 14px; font-weight: 600; }
.fm-report-form .m-field small { margin-left: 4px; color: var(--ink3); font-size: 12.5px; font-weight: 400; }
.fm-report-form input, .fm-report-form textarea {
  width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--line2); border-radius: 12px; background: var(--page); color: var(--ink);
  font: inherit; font-size: 15px; transition: border-color .15s, box-shadow .15s, background .15s;
}
.fm-report-form textarea { height: auto; min-height: 150px; padding: 12px 14px; line-height: 1.55; resize: vertical; }
.fm-report-form input:focus, .fm-report-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background: var(--surface); }
.fm-report-form input::placeholder, .fm-report-form textarea::placeholder { color: var(--ink3); }
.fm-report-form .fm-form-foot { padding: 18px 26px 22px; }
.fm-report-form .m-hint { margin: 0; color: var(--ink3); font-size: 13px; line-height: 1.5; }
.fm-report-form .m-hint a { color: var(--accent-text); }
.fm-report-form .btn { min-height: 46px; padding: 0 22px; }
.fm-report-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 26px 0 0; padding: 0; list-style: none; }
.fm-report-steps li { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.fm-report-steps .ic { width: 18px; height: 18px; color: var(--accent-text); }
.fm-report-steps b { font-size: 14px; }
.fm-report-steps span { color: var(--ink3); font-size: 13px; line-height: 1.45; }
.fm-report .fm-callout { margin-bottom: 18px; }
@media (max-width: 640px) {
  .fm-report { padding: 96px 16px 56px; }
  .fm-report-form .m-fields { padding: 18px 18px 0; }
  .fm-report-form .m-fields.two { grid-template-columns: 1fr; }
  .fm-report-form .fm-form-foot { padding: 16px 18px 18px; }
  .fm-report-form .fm-form-foot .btn { width: 100%; justify-content: center; }
  .fm-report-steps { grid-template-columns: 1fr; }
}

/* bonus coins on bigger packs (landing price list + portal) */
.fm-bonus { display: inline-flex; align-items: center; width: max-content; padding: 2px 9px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-size: 12px; font-style: normal; font-weight: 700; }
.lp-pr-group dt { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* ======================================================================================================================
   Album wizard (owner 30.10.: as ChatMate's application - bewerbung.css carries bar, contents, step card; this adds the pieces)
   ====================================================================================================================== */
.fm-wz .ap-bar-r .fm-balance { padding: 5px 12px; font-size: 13.5px; }
.ap-steps .apply-step a { display: grid; gap: 1px; color: inherit; text-decoration: none; }
.ap-steps .apply-step a:hover b { color: var(--accent-text); }
.ap-steps .apply-step.is-done em { display: none; }
.ap-foot .grow { flex: 1; }
.fm-gap-top { margin-top: 20px; }

/* step 1: two big choices */
.fm-kinds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.fm-kind {
  position: relative; display: grid; align-content: start; gap: 8px; padding: 22px 22px 20px; border: 1.5px solid var(--line2); border-radius: 18px;
  background: var(--surface); cursor: pointer; transition: border-color .15s, box-shadow .2s, background .15s;
}
.fm-kind:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line2)); }
.fm-kind input { position: absolute; top: 18px; right: 18px; width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.fm-kind:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--surface)); box-shadow: 0 0 0 4px var(--accent-soft); }
.fm-kind:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.fm-kind-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--accent-soft); color: var(--accent-text); }
.fm-kind-ic .ic { width: 22px; height: 22px; }
.fm-kind b { font-family: var(--font-d); font-size: 18px; font-weight: 700; }
.fm-kind span:not(.fm-kind-ic) { color: var(--ink2); font-size: 14px; line-height: 1.5; }
.fm-kind em { margin-top: 4px; color: var(--accent-text); font-size: 13.5px; font-style: normal; font-weight: 700; }
.fm-kind-note { margin: 12px 0 0 !important; }

/* step 2: photos */
.fm-drop-wz { margin: 0; padding: 34px 16px; }
.fm-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.fm-thumbs li { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 12px; background: var(--sunken); }
.fm-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fm-thumbs .fm-n { position: absolute; left: 8px; top: 8px; display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: rgba(10, 13, 20, .62); color: #fff; font-size: 12px; font-weight: 700; }
.fm-thumbs form { position: absolute; right: 6px; top: 6px; margin: 0; }
.fm-thumb-x { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: rgba(10, 13, 20, .62); color: #fff; cursor: pointer; }
.fm-thumb-x:hover { background: var(--bad); }
.fm-thumb-x .ic { width: 14px; height: 14px; }
.fm-count { margin: 14px 0 0; color: var(--ink3); font-size: 13.5px; }
.fm-count b { color: var(--ink); }
.fm-ok { color: var(--ok); font-weight: 600; }

/* step 3: one card per picture with its questions */
.fm-wz-form { display: grid; gap: 16px; }
.fm-pic { padding: 0 !important; overflow: hidden; scroll-margin-top: 90px; }
.fm-pic-h { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.fm-pic-h img { width: 56px; height: 72px; border-radius: 10px; object-fit: cover; background: var(--sunken); flex: none; display: block; }
.fm-pic-h > div:not(.fm-pic-a) { display: grid; gap: 2px; min-width: 0; flex: 1; }
.fm-pic-h > div b { font-size: 15.5px; }
.fm-pic-h > div span { color: var(--ink3); font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.fm-pic-a { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.fm-asks { display: grid; gap: 18px; padding: 18px 20px 20px; }
.fm-ask { min-width: 0; margin: 0; padding: 0; border: 0; display: grid; gap: 9px; }
.fm-ask legend { display: flex; align-items: baseline; gap: 8px; padding: 0; margin-bottom: 9px; font-size: 14px; font-weight: 600; }
.fm-ask legend small { color: var(--ink3); font-size: 12.5px; font-weight: 400; }
.fm-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fm-chip { position: relative; cursor: pointer; }
.fm-chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.fm-chip span {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--line2); border-radius: 999px;
  background: var(--surface); color: var(--ink2); font-size: 13.5px; font-weight: 500; transition: border-color .15s, background .15s, color .15s;
}
.fm-chip:hover span { border-color: color-mix(in srgb, var(--accent) 40%, var(--line2)); color: var(--ink); }
.fm-chip input:checked + span { border-color: var(--accent); background: var(--accent); color: var(--on-accent); font-weight: 600; }
.fm-chip input[type=checkbox]:checked + span::before { content: "✓"; margin-right: 6px; font-weight: 700; }
.fm-chip input:focus-visible + span { outline: 3px solid var(--accent-soft); outline-offset: 2px; }
.fm-custom { max-width: 420px; }
.fm-note-field textarea { min-height: 64px; }
.fm-wz-foot { padding: 0 !important; }

/* step 4: extras */
.fm-xlist { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.fm-xrow { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto auto 86px; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.fm-xlist .fm-xrow:last-child { border-bottom: 0; }
.fm-xrow img { width: 48px; height: 60px; border-radius: 8px; object-fit: cover; background: var(--sunken); display: block; }
.fm-xinfo { display: grid; gap: 2px; min-width: 0; }
.fm-xinfo b { font-size: 14px; }
.fm-xinfo span { color: var(--ink3); font-size: 12.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fm-xall { grid-template-columns: minmax(0, 1fr) auto auto; margin-bottom: 4px; padding: 12px 14px; border: 0; border-radius: 12px; background: var(--sunken); }
.fm-xall b { font-size: 13.5px; }
.fm-seg { display: inline-flex; padding: 3px; border: 1px solid var(--line2); border-radius: 11px; background: var(--surface); }
.fm-seg label { position: relative; }
.fm-seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.fm-seg span, .fm-seg button {
  display: grid; place-items: center; min-width: 34px; height: 30px; padding: 0 8px; border: 0; border-radius: 8px; background: none;
  color: var(--ink2); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; font-variant-numeric: tabular-nums;
}
.fm-seg input:checked + span { background: var(--accent); color: var(--on-accent); }
.fm-seg button:hover, .fm-seg label:hover span { color: var(--ink); }
.fm-seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }
.fm-switch { position: relative; display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-size: 13.5px; color: var(--ink2); white-space: nowrap; }
.fm-switch input { appearance: none; -webkit-appearance: none; position: relative; width: 38px; height: 22px; margin: 0; border-radius: 999px; background: var(--line2); cursor: pointer; transition: background .2s; flex: none; }
.fm-switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s var(--ease); }
.fm-switch input:checked { background: var(--accent); }
.fm-switch input:checked::after { transform: translateX(16px); }
.fm-switch input:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 2px; }
.fm-xprice { justify-self: end; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fm-xsum { margin: 14px 0 0; color: var(--ink3); font-size: 13.5px; }
.fm-xsum b { color: var(--ink); font-size: 16px; }

/* step 5: check */
.fm-review { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.fm-review li { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.fm-review img { width: 48px; height: 60px; border-radius: 8px; object-fit: cover; background: var(--sunken); display: block; }
.fm-review li > div { display: grid; gap: 4px; min-width: 0; }
.fm-review li > div b { font-size: 14px; }
.fm-review li > div > span:not(.fm-tags) { color: var(--ink2); font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.fm-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.fm-sum { display: grid; gap: 0; margin: 14px 0 16px; }
.fm-sum > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; color: var(--ink2); font-size: 14px; }
.fm-sum dd { margin: 0; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.fm-sum > div:first-child dd { font-size: 17px; font-weight: 700; }
.fm-sum-t { border-top: 1px solid var(--line); }
.fm-consent-wz { margin: 0; }
.fm-wz-del { margin: 14px 0 0; text-align: right; }
.fm-wz-del .fm-textlink { border: 0; background: none; cursor: pointer; padding: 0; font: inherit; font-size: 13px; color: var(--ink3); }
.fm-wz-del .fm-textlink:hover { color: var(--bad); }

@media (max-width: 760px) {
  .fm-kinds { grid-template-columns: 1fr; }
  .fm-pic-h { flex-wrap: wrap; }
  .fm-pic-a { width: 100%; justify-content: flex-start; }
  .fm-xrow { grid-template-columns: 48px minmax(0, 1fr) auto; grid-template-areas: "img info price" "seg seg sw"; row-gap: 10px; }
  .fm-xrow img { grid-area: img; } .fm-xrow .fm-xinfo { grid-area: info; } .fm-xrow .fm-xprice { grid-area: price; }
  .fm-xrow .fm-seg { grid-area: seg; justify-self: start; } .fm-xrow .fm-switch { grid-area: sw; justify-self: end; }
  .fm-xall { grid-template-columns: 1fr; grid-template-areas: none; }
}

/* ======================================================================================================================
   Album after sending: every output with its live status
   ====================================================================================================================== */
.fm-pic-st { margin: 0 0 16px; }
.fm-pic-st .fm-pic-h .fm-tags { flex: none; }
.fm-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin: 0; padding: 16px 20px 20px; list-style: none; }
.fm-res { display: grid; grid-template-rows: auto 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); scroll-margin-top: 90px; }
.fm-res-img { position: relative; display: block; aspect-ratio: 3 / 4; background: var(--sunken); overflow: hidden; }
.fm-res-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fm-res-wait img { filter: blur(6px) saturate(.7); opacity: .55; transform: scale(1.06); }
.fm-res-state { position: absolute; inset: auto 10px 10px; display: grid; gap: 7px; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--surface) 92%, transparent); box-shadow: 0 4px 16px rgba(0, 0, 0, .12); }
.fm-res-state b { font-size: 13px; line-height: 1.35; }
.fm-res.is-failed .fm-res-state b { color: var(--bad); }
.fm-bar { display: block; height: 6px; border-radius: 3px; background: var(--sunken); overflow: hidden; }
.fm-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--accent); transition: width .6s var(--ease); }
.fm-res.is-waiting .fm-bar, .fm-res.is-edited .fm-bar, .fm-res.is-refined .fm-bar, .fm-res.is-upwait .fm-bar { display: none; }
.fm-spin { position: absolute; top: 10px; right: 12px; width: 14px; height: 14px; border: 2px solid var(--accent-soft); border-top-color: var(--accent); border-radius: 50%; animation: fm-rot .8s linear infinite; }
@keyframes fm-rot { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .fm-spin { animation: none; } .fm-bar i { transition: none; } }
.fm-res-b { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px 12px; }
.fm-res-n { flex: 1; min-width: 70px; color: var(--ink3); font-size: 12.5px; font-weight: 600; }
.fm-res-b form { margin: 0; }
.fm-live .fm-bar { margin: 8px 0 6px; max-width: 420px; }
.fm-err { margin: 0; color: var(--bad); font-size: 12.5px; }
.fm-small { font-size: 12px; }

/* admin: what the model chose, and what the AI gets */
.fm-lang { display: grid; gap: 6px; padding: 14px 20px 0; }
.fm-lang-k { margin: 4px 0 0; color: var(--ink3); font-size: 12px; font-weight: 600; }
.fm-lang-de { margin: 0; font-size: 14px; line-height: 1.5; }
.fm-price-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .fm-price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fm-prices { margin-bottom: 16px; }

/* landing centred like ChatMate's (owner 30.10.): the five steps and the 2 x 2 cards */
.lp-steps.fm-steps-c { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.fm-steps-c li { justify-items: center; text-align: center; }
.fm-steps-c p { max-width: 26ch; }
.lp-cards.fm-cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 880px; margin-inline: auto; }
@media (max-width: 1000px) { .lp-steps.fm-steps-c { grid-template-columns: repeat(3, minmax(0, 1fr)); } .lp-steps.fm-steps-c::before { display: none; } }
@media (max-width: 640px) { .lp-steps.fm-steps-c, .lp-cards.fm-cards-2 { grid-template-columns: minmax(0, 1fr); } }

.fm-thumbs .fm-edits { position: absolute; left: 8px; bottom: 8px; padding: 3px 8px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 11.5px; font-weight: 700; }

/* =====================================================================================================================
   Simple flow (owner 30.10.: "viel einfacher", light mode): new album in three steps, album gallery, the team's to-do,
   the check before the release and the picture check. Only tokens, so light and dark both work.
   ===================================================================================================================== */

/* ---------- the new-album wizard: own page, one column ---------- */
body.wz { min-height: 100dvh; margin: 0; background: var(--page); color: var(--ink); font-family: var(--font); }
.wz-bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 clamp(16px, 4vw, 32px);
  border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--page) 88%, transparent); backdrop-filter: blur(10px); }
.wz-bar .brand { text-decoration: none; font-size: 20px; }
.wz-bar-r { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.wz-main { width: min(860px, 100%); margin: 0 auto; padding: 28px clamp(16px, 4vw, 24px) 48px; box-sizing: border-box; }
.wz-steps { margin: 0 auto 28px; max-width: 520px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wz-steps li a, .wz-steps li b { color: inherit; font-weight: inherit; text-decoration: none; }
.wz-steps li a:hover { color: var(--accent-text); text-decoration: underline; }
.wz-head { margin: 0 0 18px; }
.wz-head h1 { margin: 0 0 6px; font-family: var(--font-d); font-size: clamp(26px, 4vw, 32px); line-height: 1.15; text-wrap: balance; }
.wz-head p { margin: 0; max-width: 62ch; color: var(--ink2); font-size: 15px; line-height: 1.55; }
.wz-flash { margin: 0 0 16px; }
.wz-card { padding: 20px; }
.wz-drop { min-height: 180px; }
.wz-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; margin: 18px 0 0; padding: 0; list-style: none; }
.wz-photos li { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 12px; background: var(--sunken); }
.wz-photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wz-photos form { position: absolute; top: 6px; right: 6px; margin: 0; }
.wz-x { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: rgba(15, 20, 32, .62); color: #fff; cursor: pointer; }
.wz-x:hover { background: var(--bad); }
.wz-x .ic { width: 16px; height: 16px; }
.wz-foot { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.wz-foot .btn, .wz-foot .btn2 { min-width: 120px; justify-content: center; }
.wz-foot .wz-sum { margin-right: auto; color: var(--ink2); font-size: 14px; font-weight: 600; }
.wz-foot-sticky { position: sticky; bottom: 0; z-index: 5; margin: 18px -12px 0; padding: 12px; border: 1px solid var(--line); border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); box-shadow: var(--shadow); }
.wz-foot-sticky .wz-sum { margin: 0 auto; }
.wz-help { margin: 26px 0 0; color: var(--ink3); font-size: 13px; text-align: center; }
.wz-help a { color: var(--accent-text); }
.wz-del { margin: 14px 0 0; text-align: right; }

/* step 2: one card per photo, one row per change */
.wz-changes { display: grid; gap: 14px; }
.wz-photo { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; padding: 16px; }
.wz-photo-img { width: 150px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; background: var(--sunken); }
.wz-photo-b { display: grid; gap: 12px; align-content: start; min-width: 0; }
.wz-photo-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.wz-photo-h b { font-size: 15px; }
.wz-rows { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.wz-row { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--page); }
.wz-kinds { display: flex; flex-wrap: wrap; gap: 6px; }
.wz-kinds .fm-chip span { padding: 6px 12px; font-size: 13px; }
.wz-line { display: flex; gap: 8px; align-items: center; }
.wz-line input { flex: 1; min-width: 0; height: 42px; padding: 0 12px; border: 1px solid var(--line2); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; font-size: 14.5px; }
.wz-line input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.wz-x2 { display: grid; place-items: center; flex: none; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line2); border-radius: 10px; background: var(--surface); color: var(--ink3); cursor: pointer; }
.wz-x2:hover { border-color: var(--bad-line); color: var(--bad); }
.wz-x2 .ic { width: 16px; height: 16px; }
.wz-add { justify-self: start; }

/* step 3 */
.wz-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin: 0 0 18px; padding: 0; list-style: none; }
.wz-list li { display: flex; gap: 10px; align-items: center; min-width: 0; padding: 8px; border: 1px solid var(--line); border-radius: 12px; }
.wz-list img { flex: none; width: 44px; height: 58px; object-fit: cover; border-radius: 8px; }
.wz-list span { display: grid; min-width: 0; }
.wz-list b { font-size: 14px; }
.wz-list small { overflow: hidden; color: var(--ink3); font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.wz-opts { display: grid; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.wz-opt { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; }
.wz-opt > span { display: grid; gap: 2px; min-width: 0; max-width: 46ch; }
.wz-opt small { color: var(--ink3); font-size: 12.5px; }
.wz-opt input[type=text] { width: min(320px, 100%); height: 40px; padding: 0 12px; border: 1px solid var(--line2); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; }
.wz-price { display: grid; gap: 6px; margin: 0; padding: 14px 0; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.wz-price div { display: flex; justify-content: space-between; gap: 12px; }
.wz-price dt { color: var(--ink2); }
.wz-price dd { margin: 0; font-weight: 700; }
.wz-price div:first-child dd { font-size: 18px; }
.wz-gap { margin: 6px 0 12px; }
.wz-gap button.fm-textlink { padding: 0; font-size: inherit; }
.wz-consent { margin-top: 6px; }

@media (max-width: 620px) {
  .wz-photo { grid-template-columns: 1fr; }
  .wz-photo-img { width: 100%; max-height: 280px; aspect-ratio: auto; }
  .wz-foot .btn, .wz-foot .btn2 { min-width: 0; }
  .wz-bar .fm-balance { display: none; }
}

/* ---------- model start page ---------- */
.hm-start { display: grid; justify-items: center; gap: 20px; padding: 28px 20px; text-align: center; }
.hm-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; width: 100%; margin: 0; padding: 0; list-style: none; }
.hm-steps li { display: grid; justify-items: center; gap: 6px; }
.hm-steps span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); font-weight: 700; }
.hm-steps small { max-width: 30ch; color: var(--ink3); font-size: 13px; line-height: 1.45; }
@media (max-width: 700px) { .hm-steps { grid-template-columns: 1fr; } }

/* ---------- album: progress, gallery, before / after ---------- */
.al-progress { display: grid; gap: 8px; margin: 0 0 16px; padding: 16px 18px; }
.al-progress b { font-size: 16px; }
.al-progress small { color: var(--ink3); font-size: 13px; }
.al-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin: 0 0 18px; padding: 0; list-style: none; }
.al-tile { display: grid; gap: 8px; min-width: 0; }
.al-img { position: relative; display: block; width: 100%; aspect-ratio: 3 / 4; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--sunken); cursor: default; }
button.al-img, a.al-img { cursor: zoom-in; }
.al-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.al-tile.is-done .al-img:hover { border-color: var(--accent); }
.al-tile.is-wait .al-img img, .al-tile.is-skipped .al-img img { filter: saturate(.4) blur(1.5px); opacity: .55; }
.al-state { position: absolute; inset: auto 10px 10px 10px; display: grid; gap: 4px; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--surface) 90%, transparent); font-size: 13px; text-align: left; }
.al-state b { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.al-state small { color: var(--ink3); font-size: 12px; }
.al-state .fm-bar { height: 4px; }
.al-badge { position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 999px; background: var(--warn); color: #fff; font-size: 12px; font-weight: 700; }
.al-tile.is-review .al-img { border-color: var(--warn); }
.al-cap { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin: 0; font-size: 13px; line-height: 1.4; }
.al-cap > span { min-width: 0; color: var(--ink2); }
.al-cap small { flex: none; color: var(--ink3); font-size: 12px; }
.al-dl { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border: 1px solid var(--line2); border-radius: 9px; color: var(--ink2); }
.al-dl:hover { border-color: var(--accent); color: var(--accent-text); }
.al-dl .ic { width: 16px; height: 16px; }
dialog.al-view { width: min(760px, calc(100vw - 24px)); }
.al-compare { aspect-ratio: auto; height: min(72vh, 900px); margin: 0 18px; border-radius: 12px; background: #000; }
.al-compare img { object-fit: contain; }

/* ---------- the team: to do ---------- */
.td-jobs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0 0 16px; }
.td-job { padding: 18px; }
.td-job.is-on { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.td-job-h { display: flex; align-items: center; gap: 14px; }
.td-job-h > div { flex: 1; min-width: 0; }
.td-job-h h2 { margin: 0; font-size: 17px; }
.td-job-h p { margin: 2px 0 0; color: var(--ink3); font-size: 13px; }
.td-n { display: grid; place-items: center; flex: none; min-width: 48px; height: 48px; padding: 0 8px; border-radius: 14px; background: var(--sunken); font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.td-job.is-on .td-n { background: var(--accent); color: var(--on-accent); }
.td-list { display: grid; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; }
.td-list-flat { margin: 0; padding: 0 18px 16px; }
.td-list a { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; color: inherit; text-decoration: none; }
.td-list a:hover { background: var(--sunken); }
.td-list img { flex: none; width: 40px; height: 52px; object-fit: cover; border-radius: 8px; }
.td-list span { display: grid; flex: 1; min-width: 0; }
.td-list small { color: var(--ink3); font-size: 12.5px; }
.td-list .ic { flex: none; width: 16px; height: 16px; color: var(--ink3); transform: rotate(-90deg); }
.td-foot { margin: 8px 0 0; color: var(--ink3); font-size: 13px; }
@media (max-width: 900px) { .td-jobs { grid-template-columns: 1fr; } }

/* ---------- the team: the check before the release ---------- */
.ord-steps { max-width: 520px; margin: 4px 0 22px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ord.is-steps .ord-step[hidden] { display: none; }
.ord-step { display: grid; gap: 14px; }
.ord-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.ord-photo { display: grid; overflow: hidden; padding: 0; }
.ord-photo-img { display: block; aspect-ratio: 3 / 4; background: var(--sunken); cursor: zoom-in; }
.ord-photo-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ord-photo-b { display: grid; gap: 4px; padding: 12px 14px 14px; }
.ord-photo-b small { color: var(--ink3); font-size: 12.5px; }
.ord-out { margin-top: 8px; }
.ord-why { display: grid; gap: 8px; margin-top: 6px; }
.ord-why[hidden] { display: none; }
.ord-why input { height: 38px; padding: 0 10px; border: 1px solid var(--line2); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; font-size: 13.5px; }
.ord-photo.is-out { border-color: var(--bad-line); }
.ord-photo.is-out .ord-photo-img img { opacity: .4; filter: grayscale(1); }
.fm-chip-b { padding: 5px 10px; border: 1px solid var(--line2); border-radius: 999px; background: var(--surface); color: var(--ink2); font: inherit; font-size: 12.5px; cursor: pointer; }
.fm-chip-b:hover { border-color: var(--accent); color: var(--ink); }
.ord-prompts { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.ord-prompt { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; padding: 14px; }
.ord-prompt > img { width: 84px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; }
.ord-prompt-b { display: grid; gap: 6px; min-width: 0; }
.ord-prompt-h { display: flex; align-items: center; gap: 8px; }
.ord-de { margin: 0; font-size: 15px; font-weight: 600; }
.ord-en { display: grid; gap: 4px; }
.ord-en span { color: var(--ink3); font-size: 12px; }
.ord-en textarea { width: 100%; box-sizing: border-box; padding: 9px 11px; border: 1px solid var(--line2); border-radius: 10px; background: var(--sunken); color: var(--ink); font: 13px/1.5 ui-monospace, Consolas, monospace; resize: vertical; }
.ord-prompt.is-out { opacity: .45; }
.ord-sum { display: grid; gap: 14px; padding: 18px; }
.ord-nav { display: flex; align-items: center; gap: 10px; }
.ord-nav .grow { flex: 1; }

/* ---------- the team: picture check ---------- */
.pr-keys { color: var(--ink3); font-size: 12.5px; }
.pr-keys kbd { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border: 1px solid var(--line2); border-bottom-width: 2px; border-radius: 6px; background: var(--surface); color: var(--ink); font: 600 11.5px var(--font); }
.pr-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0 0 14px; }
.pr-fig { display: grid; gap: 8px; margin: 0; min-width: 0; }
.pr-fig figcaption { color: var(--ink3); font-size: 12.5px; font-weight: 600; }
.pr-fig a { display: block; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #000; cursor: zoom-in; }
.pr-fig img { display: block; width: 100%; height: min(68vh, 860px); object-fit: contain; }
.pr-failed { place-content: center; justify-items: center; gap: 6px; min-height: 320px; padding: 24px; border: 1px dashed var(--bad-line); border-radius: 14px; color: var(--ink2); text-align: center; }
.pr-failed .ic { width: 28px; height: 28px; color: var(--bad); }
.pr-failed small { color: var(--ink3); }
.pr-info { display: grid; gap: 4px; margin: 0 0 14px; padding: 14px 18px; }
.pr-wish { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0; font-size: 16px; }
.pr-wish span { color: var(--ink); }
.pr-prompt { margin-top: 6px; }
.pr-prompt summary { color: var(--ink3); font-size: 13px; cursor: pointer; }
.pr-prompt textarea { width: 100%; box-sizing: border-box; margin-top: 8px; padding: 9px 11px; border: 1px solid var(--line2); border-radius: 10px; background: var(--sunken); color: var(--ink); font: 13px/1.5 ui-monospace, Consolas, monospace; }
.pr-bar { position: sticky; bottom: 12px; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); box-shadow: var(--shadow); }
.pr-bar form { margin: 0; }
.pr-bar .grow { flex: 1; }
.pr-bar .btn { min-width: 150px; justify-content: center; }
.pr-empty { display: grid; justify-items: center; gap: 8px; padding: 48px 20px; text-align: center; }
.pr-empty .ic { width: 32px; height: 32px; color: var(--accent-text); }
.pr-empty b { font-size: 18px; }
.pr-empty span { color: var(--ink3); }
@media (max-width: 760px) {
  .pr-pair { grid-template-columns: 1fr 1fr; gap: 8px; }
  .pr-fig img { height: 46vh; }
  .pr-keys { display: none; }
  .pr-bar .btn { min-width: 0; }
}

/* wizard details: the theme button without the portal shell, text links that are buttons, the send row */
body.wz .tb-ib { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 10px; background: none; color: var(--ink2); cursor: pointer; }
body.wz .tb-ib:hover { background: var(--sunken); color: var(--ink); }
body.wz .tb-ib .ic { width: 20px; height: 20px; }
body.wz .tb-ib .i-sun, body.wz .tb-ib[aria-pressed="true"] .i-moon { display: none; }
body.wz .tb-ib[aria-pressed="true"] .i-sun { display: block; }
button.fm-textlink { padding: 0; border: 0; background: none; font-family: inherit; cursor: pointer; }
.wz-foot .grow { flex: 1; }
.wz-consent { margin: 4px 0 0; }
.wz-del .fm-textlink { color: var(--ink3); font-weight: 500; }
.wz-del .fm-textlink:hover { color: var(--bad); }
/* the switch wins over the admin's checkbox look (.mpage input[type=checkbox]) */
.mpage .fm-switch input[type="checkbox"] { width: 38px; height: 22px; margin: 0; border: 0; border-radius: 999px; background: var(--line2); background-image: none; }
.mpage .fm-switch input[type="checkbox"]:checked { background: var(--accent); background-image: none; }
.mpage .al-progress { padding: 16px 18px; }
.pr-fig img { height: min(60vh, 760px); }

/* before / after in the dialog (owner 30.10.: "der Regler funktioniert gar nicht"): the invisible range covers the whole picture -
   a dialog rule had cut it to 24 px, so only a thin strip at the top reacted */
.fm-compare > input.fm-compare-range[type="range"] { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; height: 100%; margin: 0; padding: 0;
  border: 0; background: transparent; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; touch-action: pan-y; z-index: 2; }
.fm-compare > input.fm-compare-range[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; inline-size: 48px; block-size: 100vh; }
.fm-compare > input.fm-compare-range[type="range"]::-moz-range-thumb { inline-size: 48px; block-size: 100vh; border: 0; }
.al-view-wish { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 620px) {
  .al-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .al-compare { height: min(64vh, 620px); margin: 0 12px; }
}

/* send step: what the AI understood, its warning and its questions */
.wz-h2 { margin: 0 0 12px; font-size: 16px; }
.wz-plan { display: grid; gap: 10px; margin: 0 0 16px; padding: 0; list-style: none; }
.wz-plan-i { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; }
.wz-plan-i > img { width: 64px; height: 85px; object-fit: cover; border-radius: 10px; background: var(--sunken); }
.wz-plan-b { display: grid; gap: 8px; align-content: start; min-width: 0; }
.wz-plan-h { display: flex; flex-wrap: wrap; gap: 2px 8px; margin: 0; font-size: 14.5px; }
.wz-plan-h span { color: var(--ink2); overflow-wrap: anywhere; }
.wz-plan-ai, .wz-plan-warn { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: 13.5px; line-height: 1.45; }
.wz-plan-ai { color: var(--ink2); }
.wz-plan-ai .ic { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--accent-text); }
.wz-plan-warn { padding: 8px 10px; border-radius: 10px; background: var(--warn-soft); color: var(--warn); }
.wz-plan-warn .ic { flex: none; width: 16px; height: 16px; margin-top: 2px; }
.wz-q { display: grid; gap: 8px; margin: 2px 0 0; padding: 10px 12px; border: 1px solid var(--line2); border-radius: 12px; background: var(--page); }
.wz-q legend { float: left; width: 100%; margin: 0 0 2px; padding: 0; font-size: 13.5px; font-weight: 600; }
.wz-q .fm-chip span { padding: 6px 12px; font-size: 13px; }
.ord-ai { display: flex; gap: 6px; align-items: flex-start; margin: 0; color: var(--ink2); font-size: 13px; }
.ord-ai .ic { flex: none; width: 15px; height: 15px; margin-top: 2px; color: var(--accent-text); }

/* consent boxes line up with the fields above them (they were indented 22 px on the invitation and in the wizard) */
.au-agree.fm-consent, .wz-consent.fm-consent { margin: 4px 0 0; }
.fm-consent a { color: var(--accent-text); font-weight: 600; text-underline-offset: 2px; }

/* own cards inside the portal frame: ".m-page .card" sets padding 4px 0 6px, so each card says its own (found with the Chrome check 30.10.) */
.m-page .td-job { padding: 18px; }
.m-page .hm-start { padding: 28px 20px 24px; }
.m-page .pr-info { padding: 14px 18px; }
.m-page .pr-empty { padding: 48px 20px; }
.m-page .ord-sum { padding: 18px; }
.m-page .ord-prompt { padding: 14px; }
.m-page .ord-photo { padding: 0; }
.fm-drop.wz-drop { margin: 0; }
/* the wizard's sticky bar never hides what was just scrolled or tabbed to */
html:has(body.wz) { scroll-padding-bottom: 120px; }
@media (max-width: 620px) {
  .wz-photo-img { max-height: 220px; }
  .td-job-h { flex-wrap: wrap; }
  .td-job-h .btn { width: 100%; justify-content: center; }
}
/* picture check: the words above, both pictures fit the screen, the bar below never hides anything */
.pr-info { margin: 0 0 12px; }
.pr-fig img { height: clamp(280px, calc(100vh - 480px), 760px); }
.pr-pair { margin-bottom: 14px; }
/* tiles of one row are equally tall: the content stays on top, so captions line up (they slid down by half the spare space) */
.al-tile { align-content: start; }

/* tables on phones (orders, bookings): one clean block per row - no half lines under single cells, the action top right,
   the picture small next to the words (fm.css's own td border won over the stacked layout) */
@media (max-width: 760px) {
  .m-table.m-stack td { padding: 2px 0; border-bottom: 0; }
  .m-table.m-stack tr { padding: 12px 2px; }
  .m-table.m-stack td:last-child { align-self: start; }
  .m-table.m-stack td.fm-thumb-td { grid-column: 1; padding-bottom: 6px; }
  .m-table.m-stack td.fm-thumb-td .fm-thumb { width: 44px; height: 58px; }
  .m-table.m-stack td[data-l] small { display: inline; margin-left: 4px; }
}

/* nothing wider than the screen (settings on phones ran off to the right): grid children may shrink, long paths and keys wrap */
.fm-two > *, .fm-gap > * { min-width: 0; }
.fm-mono, .m-rows dd { overflow-wrap: anywhere; min-width: 0; }
pre.fm-prompt { white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .m-rows > div { flex-wrap: wrap; gap: 2px 12px; }
  .m-rows dd { text-align: left; }
  .fm-two { grid-template-columns: minmax(0, 1fr); }
}
/* picture check on phones: the three decisions share the bar evenly (it was 36 px wider than the screen) */
@media (max-width: 560px) {
  .pr-bar { gap: 8px; padding: 10px; }
  .pr-bar .grow { display: none; }
  .pr-bar > form, .pr-bar > button { flex: 1 1 0; min-width: 0; }
  .pr-bar .btn, .pr-bar .btn2 { width: 100%; min-width: 0; padding: 0 8px; justify-content: center; font-size: 13.5px; }
  .pr-bar .btn .ic, .pr-bar .btn2 .ic { display: none; }
}
@media (max-width: 760px) { .pr-fig img { height: auto; max-height: 62vh; } }

/* ---------- the brush (owner 30.10.): mark an area / paint a spot to fix ---------- */
dialog.dlg.fm-brush { width: min(1000px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); }
.fm-brush-stage { position: relative; flex: 1 1 auto; min-height: 0; display: grid; place-items: center; padding: 12px; background: var(--sunken); overflow: hidden; }
.fm-brush-pic { position: relative; line-height: 0; max-width: 100%; }
.fm-brush-pic img { display: block; max-width: 100%; max-height: calc(100dvh - 300px); width: auto; height: auto; border-radius: 10px; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.fm-brush.has-extra .fm-brush-pic img { max-height: calc(100dvh - 390px); }
.fm-brush-pic canvas { position: absolute; left: 0; top: 0; opacity: .55; touch-action: none; cursor: crosshair; border-radius: 10px; }
@media (hover: hover) { .fm-brush-pic canvas { cursor: none; } }
.fm-brush-dot { position: absolute; z-index: 2; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0, 0, 0, .55); transform: translate(-50%, -50%); pointer-events: none; }
.fm-brush-dot.is-erase { border-style: dashed; }
.fm-brush-load { position: absolute; margin: 0; color: var(--ink3); font-size: 13.5px; line-height: 1.4; }
.fm-brush-tools { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 22px; border-top: 1px solid var(--line); }
.fm-brush-size { display: inline-flex; align-items: center; gap: 10px; color: var(--ink2); font-size: 13px; font-weight: 600; }
.fm-brush-size input { width: 150px; }
.fm-brush-acts { display: inline-flex; gap: 8px; margin-left: auto; }
.fm-brush-extra { flex: none; padding: 0 22px 14px; }
.fm-brush-extra[hidden] { display: none; }
.fm-brush-err { flex: none; margin: 0 22px 12px; }
.fm-brush .dlg-f { flex: none; }
@media (max-width: 560px) {
  dialog.dlg.fm-brush { width: calc(100vw - 12px); max-height: calc(100dvh - 12px); border-radius: 16px; }
  .fm-brush .dlg-h { padding: 14px 12px 12px 16px; }
  .fm-brush .dlg-h h2 { font-size: 17px; }
  .fm-brush .dlg-h p { font-size: 12.5px; }
  .fm-brush-stage { padding: 8px; }
  .fm-brush-pic img { max-height: calc(100dvh - 330px); }
  .fm-brush.has-extra .fm-brush-pic img { max-height: calc(100dvh - 420px); }
  .fm-brush-tools { gap: 10px; padding: 12px 16px; }
  .fm-brush-size { flex: 1 1 160px; }
  .fm-brush-size input { flex: 1; width: auto; min-width: 0; }
  .fm-brush-acts { margin-left: 0; }
  .fm-brush-extra { padding: 0 16px 12px; }
  .fm-brush-err { margin: 0 16px 10px; }
  .fm-brush .dlg-f { flex-direction: column-reverse; align-items: stretch; gap: 8px; padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px)); }
  .fm-brush .dlg-f .btn, .fm-brush .dlg-f .btn2 { width: 100%; justify-content: center; }
  .fm-brush-acts { flex: 1 1 100%; }
  .fm-brush-acts .btn2 { flex: 1 1 0; justify-content: center; }
}

/* wizard: the mark button of a change, with a small preview of what is marked */
.wz-mark { display: inline-flex; align-items: center; gap: 7px; flex: none; height: 42px; padding: 0 12px 0 10px; border: 1px solid var(--line2); border-radius: 10px;
  background: var(--surface); color: var(--ink2); font: inherit; font-size: 13.5px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.wz-mark:hover { border-color: var(--accent); color: var(--accent-text); }
.wz-mark:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wz-mark .ic { width: 16px; height: 16px; }
.wz-mark.is-on { padding-left: 5px; border-color: color-mix(in srgb, var(--accent) 55%, var(--line2)); background: var(--accent-soft); color: var(--accent-text); }
.wz-mark.is-on .ic { display: none; }
.wz-mark-prev { position: relative; flex: none; width: 26px; height: 32px; border-radius: 6px; overflow: hidden; background: var(--sunken); }
.wz-mark-prev[hidden] { display: none; }
.wz-mark-prev img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wz-mark-prev .mk { opacity: .6; }
/* phones: the mark button gets its own row under the line, with its words (an icon alone says nothing) */
@media (max-width: 560px) {
  .wz-line { flex-wrap: wrap; }
  .wz-line .wz-mark { order: 3; flex: 1 1 100%; justify-content: center; }
}
.wz-plan-th { position: relative; flex: none; width: 64px; height: 85px; border-radius: 10px; overflow: hidden; }
.wz-plan-th img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wz-plan-th .mk { opacity: .6; }
.wz-person > .ic { color: var(--accent-text); }

/* picture check: what the model marked, over her photo */
.pr-fig figcaption { display: flex; align-items: center; gap: 14px; }
.pr-fig a { position: relative; }
.pr-fig img.pr-mark { position: absolute; inset: 0; height: 100%; opacity: 0; transition: opacity .15s; pointer-events: none; }
.pr-fig.is-marked img.pr-mark { opacity: .55; }
@media (max-width: 760px) { .pr-fig img.pr-mark { height: 100%; max-height: none; } }
@media (max-width: 560px) {
  .pr-bar { flex-wrap: wrap; }
  .pr-bar > form:last-child { order: -1; flex: 1 1 100%; }
  .pr-bar .btn, .pr-bar .btn2 { font-size: 13px; padding: 0 6px; }
}

/* person profile */
.m-page .pp-done { display: flex; gap: 14px; align-items: flex-start; padding: 18px 22px; }
.pp-done-b { display: grid; gap: 3px; min-width: 0; }
.pp-done-b small { color: var(--ink3); font-size: 12.5px; }
.pp-done-b p { margin: 6px 0 0; font-size: 14px; line-height: 1.55; }
.pp-slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 16px 22px 18px; list-style: none; }
.pp-slot { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--page); }
.pp-slot.has { border-color: color-mix(in srgb, var(--ok) 35%, var(--line)); }
.pp-pic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: var(--sunken); color: var(--ink3); }
.pp-pic img { width: 100%; height: 100%; object-fit: cover; }
.pp-pic .ic { width: 22px; height: 22px; }
.pp-t { display: grid; gap: 2px; min-width: 0; }
.pp-t b { font-size: 14.5px; }
.pp-t small { color: var(--ink3); font-size: 12.5px; line-height: 1.4; }
.pp-t .pp-opt { color: var(--ink2); font-weight: 600; }
.pp-a { display: flex; align-items: center; gap: 6px; }
.pp-a form { margin: 0; }
.pp-take { position: relative; cursor: pointer; }
.pp-take input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.pp-take:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.pp-make form { display: grid; gap: 14px; padding: 16px 22px 18px; }
.pp-make-f { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.pp-make-f .m-hint { flex: 1 1 220px; margin: 0; }
.pp-privacy { margin: 4px 2px 0; }
@media (max-width: 760px) {
  .pp-slots { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 14px 16px 16px; }
  .pp-slot { grid-template-columns: 56px minmax(0, 1fr); }
  .pp-pic { width: 56px; height: 56px; }
  .pp-a { grid-column: 1 / -1; justify-content: flex-end; }
  .pp-make form { padding: 14px 16px 16px; }
  .pp-make-f .btn { width: 100%; justify-content: center; }
  .m-page .pp-done { padding: 16px; }
}
.hm-person { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; padding: 14px 16px; color: var(--ink); text-decoration: none; }
.hm-person:hover { border-color: var(--accent); }
.hm-person-t { display: grid; gap: 2px; min-width: 0; flex: 1; }
.hm-person-t small { color: var(--ink3); font-size: 13px; line-height: 1.45; }
.hm-person-go { flex: none; width: 18px; height: 18px; color: var(--ink3); transform: rotate(-90deg); }
.m-page .pp-admin .pp-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 4px 22px 14px; list-style: none; }
.pp-thumbs img { display: block; width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
.m-page .pp-admin p { margin: 0 0 10px; }

/* settings: the AI switches */
.fm-ai-switches { border-top: 1px solid var(--line); }
.fm-sw-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 22px; border-bottom: 1px solid var(--line); cursor: pointer; }
.fm-sw-row > span:first-child { display: grid; gap: 2px; min-width: 0; }
.fm-sw-row small { color: var(--ink3); font-size: 12.5px; line-height: 1.45; }

/* person profile: the steps, the trial picture with its question (owner 30.10.: "oha, wie krass ist das denn bitte") */
.pp-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 520px; margin: 0 auto 18px; }
.m-page .pp-trial { padding: 0; overflow: hidden; scroll-margin-top: 80px; }
.pp-run { display: flex; gap: 16px; align-items: flex-start; padding: 22px; }
.pp-run-ic { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-text); }
.pp-run-ic .ic { width: 22px; height: 22px; animation: fm-pulse 1.6s ease-in-out infinite; }
@keyframes fm-pulse { 50% { transform: scale(1.18); opacity: .7; } }
.pp-run-b { display: grid; gap: 6px; min-width: 0; flex: 1; }
.pp-run-b b { font-size: 16px; }
.pp-run-b small { color: var(--ink3); font-size: 13px; line-height: 1.45; }
.pp-bar { height: 8px; margin-top: 6px; border-radius: 99px; background: var(--sunken); overflow: hidden; }
.pp-bar i { display: block; width: 2%; height: 100%; border-radius: inherit; background: var(--accent); transition: width .6s var(--ease); }
.pp-trial-h { padding: 18px 22px 14px; }
.pp-trial-h h2 { margin: 0; font-size: 20px; font-weight: 700; }
.pp-trial-h p { margin: 4px 0 0; color: var(--ink3); font-size: 13.5px; }
.fm-compare.pp-compare { aspect-ratio: auto; height: min(70vh, 760px); max-width: none; margin: 0 auto; border-radius: 0; background: #000; box-shadow: none; }
.m-page .pp-trial { background: var(--surface); }
.pp-compare img { object-fit: contain; }
.pp-ask { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding: 16px 22px 18px; border-top: 1px solid var(--line); }
.pp-ask > b { font-size: 16px; }
.pp-ask-a { display: flex; flex-wrap: wrap; gap: 10px; }
.pp-ask-a form { margin: 0; }
.pp-nein { padding-bottom: 16px; }
@media (prefers-reduced-motion: reduce) { .pp-run-ic .ic { animation: none; } }
@media (max-width: 640px) {
  .pp-run { padding: 18px 16px; gap: 12px; }
  .pp-trial-h { padding: 16px 16px 12px; }
  .fm-compare.pp-compare { height: min(62vh, 560px); }
  .pp-ask { padding: 14px 16px 16px; }
  .pp-ask-a { flex: 1 1 100%; flex-direction: column-reverse; }
  .pp-ask-a .btn, .pp-ask-a .btn2, .pp-ask-a form { width: 100%; justify-content: center; }
}

/* new pictures of her: idea chips, her photos, the sum */
.nb-form { display: grid; gap: 16px; }
.m-page .nb-sec { display: grid; gap: 18px; padding: 18px 22px 20px; }
.nb-group { display: grid; gap: 10px; }
.nb-group h2 { margin: 0; font-size: 15px; font-weight: 600; }
.nb-sub { margin: -4px 0 0; color: var(--ink3); font-size: 13px; }
.nb-ideas { display: flex; flex-wrap: wrap; gap: 8px; }
.nb-idea { position: relative; cursor: pointer; }
.nb-idea input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.nb-idea span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line2); border-radius: 999px; background: var(--surface);
  color: var(--ink2); font-size: 14px; font-weight: 600; transition: background .15s, border-color .15s, color .15s; }
.nb-idea:hover span { border-color: var(--accent); color: var(--ink); }
.nb-idea input:checked + span { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.nb-idea input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.nb-own input { min-height: 46px; }
.nb-note { margin: 0; color: var(--ink3); font-size: 12.5px; }
.nb-shots { display: flex; flex-wrap: wrap; gap: 10px; }
.nb-shot { position: relative; cursor: pointer; }
.nb-shot input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.nb-shot img { display: block; width: 88px; height: 118px; border: 2px solid transparent; border-radius: 12px; object-fit: cover; }
.nb-shot input:checked + img { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.nb-shot input:focus-visible + img { outline: 2px solid var(--accent); outline-offset: 2px; }
.nb-foot { margin-top: 0; }
@media (max-width: 640px) {
  .m-page .nb-sec { padding: 16px; gap: 16px; }
  .nb-shot img { width: 76px; height: 102px; }
}

/* start page: what she can do */
.hm-choose { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.m-page .hm-choice { display: grid; align-content: start; gap: 8px; padding: 22px; color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.m-page .hm-choice:hover { border-color: var(--accent); }
.hm-choice b { font-size: 17px; }
.hm-choice small { color: var(--ink3); font-size: 13.5px; line-height: 1.5; }
.hm-choice-ic { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 4px; border-radius: 14px; background: var(--sunken); color: var(--ink2); }
.hm-choice.main .hm-choice-ic { background: var(--accent-soft); color: var(--accent-text); }
.hm-choice.main { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.hm-ideas { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.hm-ideas span { padding: 4px 10px; border-radius: 999px; background: var(--sunken); color: var(--ink2); font-size: 12.5px; font-weight: 600; }
.hm-price { margin: 14px 2px 0; color: var(--ink3); font-size: 13px; text-align: center; }
@media (max-width: 760px) { .hm-choose { grid-template-columns: minmax(0, 1fr); gap: 12px; } .m-page .hm-choice { padding: 18px 16px; } }
.mhead-a { display: flex; flex-wrap: wrap; gap: 8px; }
.pp-ask.solo { border-top: 0; }
.fm-brush h2:focus { outline: none; }

/* ---------- design QA 30.10. (measured on 390 and 1440, light and dark): one grid - 22px card sides, 16px on phones ---------- */
/* 1 + 2: admin person card text off the edge, stacked cards doubled their gap */
.m-page .pp-admin p.fm-pad-x { margin: 12px 22px 0; }
.m-page .pp-admin p.fm-pad-x:last-child { margin-bottom: 14px; }
.fm-gap > .card { margin: 0; }
/* 6: sticky bars as wide as the cards, lifted off the screen edge; the sum left when there is no back button */
.wz-foot-sticky { margin: 18px 0 0; bottom: 12px; }
.nb-foot .wz-sum { margin: 0 auto 0 0; }
/* 8: dialog title row ends where tools and buttons end */
.dlg-h { padding-right: 22px; }
.fm-brush .dlg-f { padding-top: 8px; }
/* 9 + 10: wizard cards on the grid, plan rows centred */
.wz-main .wz-card { padding: 22px; }
.wz-main .wz-photo { padding: 22px; }
.wz-plan-i { align-items: center; }
/* 11: every input at least 44px */
.fm-price-grid input, .wz-opt input[type="text"], .m-field input, .m-field select { min-height: 44px; }
/* 13: "Zu tun" lines up with the card titles */
.m-page .td-job { padding: 18px 22px; }
.td-list-flat { padding: 0 14px 16px; }
/* 14: small buttons big enough to tap */
.btn.sm, .btn2.sm { height: auto; min-height: 38px; }
.wz-x2 { width: 38px; height: 38px; }
/* 15: links in callouts and help lines in the accent */
.fm-callout a, .wz .wz-help a, .wz-help a { color: var(--accent-text); }
/* 5: coin packs - buttons on one line */
.fm-pack { display: flex; flex-direction: column; }
.fm-pack form { margin-top: auto; padding-top: 6px; }
@media (max-width: 640px) {
  /* 3 + 4: everything inside cards starts at 16px, like the titles */
  .card > .m-rows { padding: 6px 16px 12px; }
  .fm-form-foot { padding: 14px 16px 16px; }
  .fm-sw-row { padding: 14px 16px; }
  .fm-pad-x, .m-page .pp-admin p.fm-pad-x { margin-left: 16px; margin-right: 16px; }
  .fm-pad-row { margin-left: 16px; margin-right: 16px; }
  .m-page .pp-admin .pp-thumbs { padding: 4px 16px 12px; }
  .card > .m-wrap { padding: 4px 16px 10px; }
  .fm-price-grid { grid-template-columns: minmax(0, 1fr); }
  .dlg-h { padding: 16px 16px 14px; }
  .wz-main .wz-card, .wz-main .wz-photo { padding: 16px; }
  .m-page .td-job { padding: 16px; }
  /* 7: every dialog is a bottom sheet on phones, its buttons full width under each other */
  dialog.dlg, dialog.dlg.sm { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 22px 22px 0 0; max-height: calc(100dvh - 40px); }
  .dlg-f { flex-direction: column-reverse; align-items: stretch; gap: 8px; padding: 14px 16px calc(16px + env(safe-area-inset-bottom, 0px)); }
  .dlg-f .btn, .dlg-f .btn2, .dlg-f a.btn, .dlg-f a.btn2 { width: 100%; justify-content: center; }
  .fm-confirm .dlg-b { padding: 20px 16px 6px; }
}
/* 12: picture check on phones - release on its own row, the rest two by two, never wrapping */
@media (max-width: 560px) {
  .pr-bar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pr-bar > form:last-child { grid-column: 1 / -1; }
  .pr-bar > form, .pr-bar > button { min-width: 0; }
  .pr-bar .btn, .pr-bar .btn2 { min-height: 44px; white-space: nowrap; }
}

/* profile page: the invitation into the guided setup, the AI's description folded away */
.m-page .pp-invite { display: flex; align-items: center; gap: 16px; padding: 22px; color: var(--ink); text-decoration: none; border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.m-page .pp-invite:hover { border-color: var(--accent); }
.pp-invite-ic { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 16px; background: var(--accent-soft); color: var(--accent-text); }
.pp-invite-ic .ic { width: 24px; height: 24px; }
.pp-invite-t { display: grid; gap: 4px; flex: 1; min-width: 0; }
.pp-invite-t b { font-size: 17px; }
.pp-invite-t small { color: var(--ink3); font-size: 13.5px; line-height: 1.45; }
.pp-invite .btn { flex: none; }
.m-page .pp-know { padding: 0; }
.pp-know summary { display: flex; align-items: center; gap: 12px; padding: 16px 22px; cursor: pointer; list-style: none; }
.pp-know summary::-webkit-details-marker { display: none; }
.pp-know summary::after { content: ""; width: 8px; height: 8px; margin-left: auto; border: solid var(--ink3); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s; }
.pp-know[open] summary::after { transform: rotate(-135deg); }
.pp-know summary .dlg-ic { width: 32px; height: 32px; border-radius: 10px; }
.pp-know p { margin: 0; padding: 0 22px 18px; color: var(--ink2); font-size: 14px; line-height: 1.55; }
.pp-take { text-decoration: none; }
@media (max-width: 640px) {
  .m-page .pp-invite { flex-wrap: wrap; padding: 18px 16px; }
  .pp-invite .btn { flex: 1 1 100%; justify-content: center; min-height: 46px; }
  .pp-know summary { padding: 14px 16px; }
  .pp-know p { padding: 0 16px 16px; }
}

/* ---------- text never glued to a heading or a label (owner 30.10.: "Texte nicht direkt neben den Überschriften") ----------
   a hint always gets its own line under what it explains */
.m-field > span:first-child small, .fm-report-form .m-field small { display: block; margin: 3px 0 0; line-height: 1.4; }
.card-h .sub { flex-basis: 100%; margin-top: -4px; line-height: 1.45; }
.pr-wish { display: grid; gap: 2px; }
.pr-wish b { color: var(--ink3); font-size: 12.5px; font-weight: 600; }
.pr-wish span { font-size: 16px; font-weight: 600; }
.wz-plan-h { display: grid; gap: 1px; }
.wz-plan-h b { font-size: 14.5px; }
.wz-plan-h span { font-size: 13.5px; }

/* ---------- review 30.10. (two visual passes, phone and desktop, light and dark) ---------- */
/* the three-step bar keeps its last line on phones too */
@media (max-width: 700px) { .m-steps.pp-steps li:nth-child(3)::after, .m-steps.wz-steps li:nth-child(3)::after { display: block; } }
/* messages at the bottom, never over a page title; above a sticky bar where there is one */
.toasts { top: auto !important; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
body:has(.wz-foot-sticky) .toasts { bottom: calc(104px + env(safe-area-inset-bottom, 0px)); }
/* coin packs: the price on one line in every card */
.fm-bonus.is-empty { visibility: hidden; }
/* links in page intros and on the sign-in pages in the accent */
.mhead p a, .au-lead a { color: var(--accent-text); font-weight: 600; text-underline-offset: 3px; }
.au-lead:has(> a:only-child) { margin-top: 20px; text-align: center; }
/* tables on phones: the second line under the value, details over the whole width, labels in the page font */
@media (max-width: 760px) {
  .m-table.m-stack td[data-l] small { display: block; margin: 2px 0 0; }
  .m-stack td.fm-msg { grid-column: 1 / -1; grid-row: auto; text-align: left; }
  .m-stack td[data-l]::before { font-family: var(--font); }
}
.fm-clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* admin list: "Guthaben" and "Zuletzt da" apart */
.m-table .fm-gap-l { padding-left: 32px; }
/* red buttons readable in the dark too */
.btn.danger { background: light-dark(#c4321f, #b4321f); color: #fff; }
/* tiles: the small lines on one height, whatever the value's size */
.fm-tile b, .fm-tile dd { display: flex; align-items: flex-end; min-height: 31px; }
/* wizard: the option text takes the room, the control stays right */
.wz-opt > span { flex: 1; min-width: 0; }
/* step 2: the whole photo, not a cut-out */
.wz-photo-img { object-fit: contain; background: var(--sunken); }
/* text breaks evenly */
.m-page p, .wz p, .su p, .mhead p, small { text-wrap: pretty; }
.m-page h1, .m-page h2, .wz h1, .su h1, .su h2 { text-wrap: balance; }
/* sticky bars: content on the card grid; on phones a real bottom bar (nothing shows through under it) */
.wz-foot-sticky { padding: 12px 22px; }
@media (max-width: 640px) {
  .wz-foot-sticky { bottom: 0; margin-inline: -16px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); border-radius: 16px 16px 0 0; border-bottom: 0; }
  .m-fields { padding-left: 16px; padding-right: 16px; }
  .fm-form-foot .btn, .fm-form-foot .btn2 { flex: 1 1 100%; justify-content: center; }
  .fm-brush .dlg-h { padding: 14px 16px 12px; }
}
.dlg-h { align-items: flex-start; }
.dlg-h .x { margin-top: -2px; }
/* the reveal heading a step smaller (one size of card headings) */
.pp-trial-h h2 { font-size: 18px; }
/* menu: no ring around the logo when the drawer opens */
.side .brand:focus:not(:focus-visible) { outline: none; }
.mtop .cm-logo, .side .cm-logo { filter: none; }
/* the "KI bereit" dot stays inside */
.fm-ai { padding-left: 2px; }
/* setup: lead and steps one width; the button as wide as the field */
.su.has-qr .su-lead, .su.has-qr .su-how { max-width: 520px; }
.su-done .btn.su-go { width: min(100%, 440px); }
.fm-nowrap { white-space: nowrap; }
/* the report form: one gutter on phones (the page and its inner box each had one) */
@media (max-width: 760px) { .fm-report { padding-left: 0; padding-right: 0; } }

/* ---------- re-check 30.10. ---------- */
@media (max-width: 640px) {
  .card > p.m-hint, .card > .m-lead, .fm-biz, .fm-consent-dlg { margin-left: 16px; margin-right: 16px; }
  .fm-actions { padding-left: 16px; padding-right: 16px; }
  .wz-opt input[type="text"] { width: 100%; max-width: none; }
}
/* phone tables: the value and its second line in one column next to the label */
@media (max-width: 760px) {
  .m-stack td[data-l] { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 4px; align-items: baseline; }
  .m-stack td[data-l]::before { grid-column: 1; }
  .m-stack td[data-l] > * { grid-column: 2; }
  .m-stack td[data-l] > .tag, .m-stack td[data-l] > .btn, .m-stack td[data-l] > .btn2 { justify-self: start; }
}
/* the error card inside the portal */
.m-page .fm-errcard { display: grid; justify-items: start; gap: 12px; padding: 26px 22px; }
.fm-errcard h1 { margin: 4px 0 0; color: var(--ink); font-size: 22px; }
.fm-errcard p { margin: 0; color: var(--ink2); }
@media (max-width: 640px) { .m-page .fm-errcard { padding: 20px 16px; } }
/* touch screens: nothing about dragging */
@media (pointer: coarse) { .fm-drag { display: none; } }
.fm-label { display: block; margin-bottom: 4px; color: var(--ink3); font-size: 12px; font-weight: 600; }

/* re-check 30.10. (2): the price lines share a baseline (the total is bigger); on the phone a choice sits under its label and
   hint instead of beside the hint text */
.wz-price div { align-items: baseline; }
@media (max-width: 640px) {
  .wz-opt { display: grid; justify-content: stretch; gap: 10px; }
  .wz-opt > span { max-width: none; }
  .wz-opt .fm-seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); width: 100%; }
}
/* while photos go up one by one: no second choice in between */
.fm-drop.is-busy { pointer-events: none; opacity: .75; }

/* ---------- KI-Ich Plus (30.10.): state of the training, the mix of her photos, the library ---------- */
.m-page .kp-state, .m-page .kp-mix, .m-page .kp-lib { padding: 20px 22px; }
.kp-state-in { display: flex; align-items: center; gap: 16px; }
.kp-state-in > div { display: grid; gap: 4px; min-width: 0; flex: 1; }
.kp-state-in b { color: var(--ink); font-size: 16px; }
.kp-state-in small { color: var(--ink2); font-size: 13.5px; }
.kp-spin { flex: none; width: 40px; height: 40px; border: 3px solid var(--accent-soft); border-top-color: var(--accent); border-radius: 50%; animation: kp-turn 1s linear infinite; }
@keyframes kp-turn { to { transform: rotate(360deg); } }
.kp-ok, .kp-bad { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; }
.kp-ok { background: var(--ok-soft); color: var(--ok); }
.kp-bad { background: var(--bad-soft); color: var(--bad); }
.kp-bar, .kp-meter { display: block; height: 8px; margin-top: 6px; overflow: hidden; border-radius: 99px; background: var(--sunken); }
.kp-bar i, .kp-meter i { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width .6s; }
.kp-mix { display: grid; gap: 12px; }
.kp-mix-head { display: grid; gap: 3px; }
.kp-mix-head b { color: var(--ink); font-size: 18px; }
.kp-mix-head small { color: var(--ink2); font-size: 13.5px; }
.kp-kinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.kp-kinds li { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.kp-kinds b { color: var(--ink); font-size: 22px; font-variant-numeric: tabular-nums; }
.kp-kinds span { color: var(--ink3); font-size: 12.5px; }
.m-page .kp-mix > p.m-hint { margin: 0; }
.kp-go { display: grid; justify-items: start; gap: 8px; }
.kp-go small { color: var(--ink3); font-size: 13px; }
.kp-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin: 16px 0 0; padding: 0; list-style: none; }
.kp-photos li { position: relative; overflow: hidden; border-radius: 14px; background: var(--sunken); aspect-ratio: 1; }
.kp-photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kp-photos li.is-hint img { opacity: .55; }
.kp-tag { position: absolute; left: 8px; bottom: 8px; max-width: calc(100% - 16px); padding: 3px 9px; overflow: hidden; border-radius: 99px;
  background: rgba(255, 255, 255, .94); color: #0f172a; font-size: 11.5px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.kp-photos li.is-hint .kp-tag { background: #fff4e5; color: #8a4b00; }
.kp-photos li.is-checking .kp-tag { background: rgba(15, 23, 42, .78); color: #fff; }
.kp-photos .wz-x { position: absolute; top: 6px; right: 6px; }
@media (max-width: 640px) {
  .m-page .kp-state, .m-page .kp-mix, .m-page .kp-lib { padding: 16px; }
  .kp-photos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .kp-tag { left: 5px; bottom: 5px; font-size: 10.5px; padding: 2px 7px; }
}

.m-page .kp-look { padding: 20px 22px; }
.kp-look-f { display: grid; gap: 12px; }
.kp-look-f .m-field { display: grid; gap: 6px; }
.kp-look-f .m-field > span { color: var(--ink); font-weight: 600; }
.kp-look-f .m-field small { color: var(--ink3); font-size: 13px; }
.kp-look-f textarea { width: 100%; min-height: 64px; padding: 10px 12px; border: 1px solid var(--line2); border-radius: 12px; background: var(--page); color: var(--ink); font: inherit; resize: vertical; }
.kp-look-f textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
@media (max-width: 640px) { .m-page .kp-look { padding: 16px; } }

.m-page .kp-new { padding: 0 0 20px; }
.kp-new > p.m-hint { margin: 6px 22px 0; }
.kp-new-f { display: grid; gap: 16px; padding: 16px 22px 0; }
.kp-field { display: grid; gap: 12px; margin: 0; padding: 0; border: 0; }
.kp-field legend { margin-bottom: 8px; color: var(--ink); font-weight: 600; }
.kp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.kp-new-f .m-field { display: grid; gap: 6px; }
.kp-new-f .m-field > span { color: var(--ink); font-weight: 600; }
.kp-new-f .m-field small { color: var(--ink3); font-size: 13px; }
.kp-new-f input[type=text], .kp-new-f select { width: 100%; min-height: 46px; padding: 0 12px; border: 1px solid var(--line2); border-radius: 12px; background: var(--page); color: var(--ink); font: inherit; }
.kp-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.kp-new-f .fm-row small { color: var(--ink3); font-size: 13px; }
@media (max-width: 640px) { .kp-new > p.m-hint { margin: 6px 16px 0; } .kp-new-f { padding: 14px 16px 0; } .kp-two { grid-template-columns: minmax(0, 1fr); } }
