/* 10-branding-review.css — Customer house style, review mode, charts, empty screens, live moment, satisfaction, dialogs, 2FA, project screens.
   Part of the portal stylesheet; index.html loads the parts in order (01 to 12), so the cascade is
   the same as one file. */

/* ---------- Huisstijl per klant ---------- */
.sidebar-logo.customer-logo { display: grid; gap: 4px; justify-items: start; }
.sidebar-logo.customer-logo { text-decoration: none; }
/* A fixed box, so the resolution stored in the file never makes the logo tiny. */
.sidebar-logo.customer-logo img { width: 210px; height: 60px; max-width: 100%; object-fit: contain; object-position: left center; filter: none; }
.powered-by { text-decoration: none; font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.mobile-appbar-icon { object-fit: contain; }
.hero-logo { display: grid; place-items: center; width: 96px; height: 64px; padding: 6px; border-radius: 12px; background: #ffffff; border: 1px solid var(--line); }
.hero-logo img { width: 100%; height: 100%; object-fit: contain; }
.brand-current { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 18px; }
.brand-logo-box { display: grid; place-items: center; width: 160px; height: 80px; padding: 8px; border-radius: 10px; border: 1px solid var(--line);
  background-color: #ffffff; background-image: linear-gradient(45deg, #f1f2f4 25%, transparent 25%), linear-gradient(-45deg, #f1f2f4 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #f1f2f4 75%), linear-gradient(-45deg, transparent 75%, #f1f2f4 75%);
  background-size: 14px 14px; background-position: 0 0, 0 7px, 7px -7px, -7px 0; }
.brand-logo-box img { width: 100%; height: 100%; object-fit: contain; }
.brand-current-color { display: flex; align-items: center; gap: 12px; }
.brand-current-color > div { display: grid; }
.brand-swatch { display: inline-block; width: 36px; height: 36px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12), 0 4px 12px -4px rgba(0, 0, 0, 0.35); flex: 0 0 auto; }
.brand-actions { margin-top: 16px; align-items: center; }
.brand-color-field input[type="color"] { width: 44px; height: 38px; padding: 2px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }

/* The mini portal in the chosen colour. */
.brand-mini { --mini: var(--brand-primary); --mini-deep: var(--brand-primary-dark); justify-self: end; display: grid; grid-template-columns: 34% 1fr; width: min(320px, 100%); height: 150px; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line); background: #f7f6f4; box-shadow: 0 16px 34px -18px rgba(16, 24, 40, 0.45); transition: box-shadow 0.3s; }
.brand-mini-side { display: grid; align-content: start; gap: 7px; padding: 10px 8px; background: #ffffff; border-right: 1px solid #e7e8ea; }
.brand-mini-side img { width: 100%; height: 30px; object-fit: contain; object-position: left center; margin-bottom: 4px; }
.brand-mini-side strong { font-size: 11px; color: var(--mini); }
.brand-mini-link { height: 8px; border-radius: 4px; background: #e9eaec; }
.brand-mini-active { background: color-mix(in srgb, var(--mini) 22%, #ffffff); box-shadow: inset 3px 0 0 var(--mini); }
.brand-mini-main { display: grid; align-content: start; gap: 8px; padding: 14px 12px; }
.brand-mini-title { height: 12px; width: 60%; border-radius: 4px; background: #2a2c31; opacity: 0.85; }
.brand-mini-line { height: 7px; border-radius: 4px; background: #dcdde0; }
.brand-mini-short { width: 70%; }
.brand-mini-row { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.brand-mini-button { padding: 5px 10px; border-radius: 7px; font-size: 10px; font-weight: 800; color: #ffffff; background: linear-gradient(135deg, var(--mini), var(--mini-deep)); box-shadow: 0 6px 14px -6px var(--mini); transition: background 0.3s; }
.brand-mini-badge { padding: 2px 8px; border-radius: 999px; font-size: 10px; font-weight: 700; color: var(--mini); background: color-mix(in srgb, var(--mini) 12%, #ffffff); border: 1px solid color-mix(in srgb, var(--mini) 35%, #ffffff); }

/* Reading the website. */
.brand-scan { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; }
.brand-scan-frame { position: relative; width: 220px; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); flex: 0 0 auto; }
.brand-scan-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top; filter: saturate(0.7); }
.brand-scan-empty { display: grid; place-items: center; height: 100%; color: var(--muted); }
.brand-scan-line { position: absolute; left: 0; right: 0; top: 0; height: 34%; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--brand-primary) 30%, transparent) 80%, var(--brand-primary) 100%);
  animation: brand-scan 1.8s ease-in-out infinite alternate; }
.brand-scan > div:last-child { display: grid; gap: 4px; }
.brand-scan-step { color: var(--muted); }
.brand-scan-step-in { animation: rise-in 0.35s ease-out; }
@keyframes brand-scan { from { transform: translateY(-100%); } to { transform: translateY(300%); } }

/* Choosing. */
.brand-choice-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; margin-top: 8px; }
.brand-choice-grid h3 { display: flex; align-items: center; gap: 8px; }
.brand-logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.brand-logo-choice, .brand-swatch-choice { all: unset; box-sizing: border-box; display: grid; gap: 6px; padding: 8px; border-radius: 12px; border: 2px solid transparent; cursor: pointer; transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s; }
.brand-logo-choice .brand-logo-box { width: 100%; }
.brand-logo-choice:hover, .brand-swatch-choice:hover { transform: translateY(-1px); }
.brand-logo-choice.selected, .brand-swatch-choice.selected { border-color: var(--primary); box-shadow: 0 8px 20px -12px var(--primary); }
.brand-logo-choice:focus-visible, .brand-swatch-choice:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.brand-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.brand-swatch-choice { grid-template-columns: auto 1fr; align-items: center; gap: 10px; }
.brand-swatch-text { display: grid; min-width: 0; }
.brand-swatch-text small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-swatch-choice.selected .brand-swatch { transform: scale(1.1); }
.brand-swatch-choice .brand-swatch { transition: transform 0.2s; }
.brand-custom { display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; font-weight: 600; cursor: pointer; }
.brand-custom input { width: 40px; height: 36px; padding: 2px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); }
.brand-choice-preview .brand-mini { justify-self: stretch; width: 100%; height: 190px; }
@media (max-width: 760px) {
  .brand-current { grid-template-columns: 1fr; }
  .brand-mini { justify-self: stretch; width: 100%; }
  .brand-choice-grid { grid-template-columns: 1fr; }
  .brand-scan { flex-direction: column; align-items: stretch; }
  .brand-scan-frame { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .brand-scan-line, .brand-scan-step-in { animation: none !important; } }

/* ---------- Beoordelingsmodus ---------- */
.review-view .view-host, .review-view { max-width: 1280px; }
.rv-stage { position: relative; display: grid; gap: 16px; }
.rv-top { display: flex; align-items: center; gap: 14px; }
.rv-progress { flex: 1; display: flex; gap: 4px; }
.rv-segment { flex: 1; height: 6px; border-radius: 999px; background: var(--line); transition: background 0.3s, transform 0.3s; }
.rv-segment-current { background: color-mix(in srgb, var(--primary) 45%, var(--line)); transform: scaleY(1.6); }
.rv-segment-approve { background: var(--ok); }
.rv-segment-forward { background: var(--info); }
.rv-segment-changes { background: #c27c0e; }
.rv-segment-reject { background: var(--danger); }
.rv-counter { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }

/* The deck: the card on top, two more peeking out behind it. */
.rv-deck { position: relative; display: grid; padding-top: 26px; min-height: 420px; perspective: 1400px; }
.rv-deck > * { grid-area: 1 / 1; }
.rv-ghost { align-self: start; height: 120px; display: grid; align-content: start; gap: 2px; padding: 12px 22px; border-radius: 18px; border: 1px solid var(--line);
  background: var(--surface); color: var(--muted); font-size: 12px; box-shadow: 0 12px 30px -20px rgba(16, 24, 40, 0.4); pointer-events: none; }
.rv-ghost > * { visibility: hidden; }
.rv-ghost-1 { transform: translateY(-13px) scale(0.965); opacity: 0.8; }
.rv-ghost-2 { transform: translateY(-26px) scale(0.93); opacity: 0.5; }
.rv-card { position: relative; z-index: 1; display: grid; gap: 16px; padding: 22px; border-radius: 18px; border: 1px solid var(--line-soft); background: var(--panel);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0) 160px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 2px 4px rgba(16, 24, 40, 0.05), 0 30px 60px -30px rgba(16, 24, 40, 0.45); transform-origin: 50% 100%; }
:root[data-theme="dark"] .rv-card { background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0) 160px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 30px 60px -30px rgba(0, 0, 0, 0.8); }
.rv-card-loading { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 380px; color: var(--muted); }
.rv-enter { animation: rv-enter 0.42s cubic-bezier(0.2, 0.9, 0.25, 1.1) both; }
@keyframes rv-enter { from { opacity: 0.4; transform: translateY(-14px) scale(0.965); } to { opacity: 1; transform: none; } }
.rv-card-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.rv-card-head h2 { font-size: 21px; line-height: 1.3; margin-top: 2px; }
.rv-meta { margin: 0; font-size: 12px; font-weight: 700; color: var(--muted); }
.rv-waiting { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; color: var(--muted); background: var(--surface-2); }
.rv-body { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 20px; align-items: start; }

.rv-visual { display: grid; gap: 10px; }
.rv-visual-empty { place-items: center; text-align: center; min-height: 260px; padding: 20px; border-radius: 14px; border: 1px dashed var(--line); color: var(--muted); }
.rv-visual-empty svg { width: 36px; height: 36px; }
.rv-compare { position: relative; max-height: 560px; overflow: hidden; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); }
.rv-after { display: block; width: 100%; }
.rv-before { position: absolute; inset: 0; }
.rv-before img { display: block; width: 100%; }
.rv-handle { position: absolute; top: 0; bottom: 0; width: 0; display: grid; place-items: center; border-left: 2px solid #ffffff; box-shadow: 0 0 14px rgba(0, 0, 0, 0.35); pointer-events: none; }
.rv-handle svg { width: 32px; height: 32px; padding: 6px; margin-left: -1px; border-radius: 50%; background: #ffffff; color: var(--ink); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3); }
.rv-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.rv-range:focus-visible + .rv-tag, .rv-compare:focus-within { outline: 2px solid var(--primary); outline-offset: 2px; }
.rv-tag { position: absolute; top: 10px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #ffffff; background: rgba(18, 20, 26, 0.55); backdrop-filter: blur(10px); pointer-events: none; }
.rv-tag-before { left: 10px; }
.rv-tag-after { right: 10px; background: color-mix(in srgb, var(--primary) 80%, rgba(18, 20, 26, 0.4)); }
.rv-devices { display: flex; gap: 6px; }

.rv-side { display: grid; gap: 14px; }
.rv-block { display: grid; gap: 8px; }
.rv-label { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.rv-label svg { width: 14px; height: 14px; }
.rv-quote { margin: 0; padding: 12px 14px; border-radius: 4px 14px 14px 14px; background: var(--primary-soft); color: var(--ink); line-height: 1.5; white-space: pre-wrap;
  display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.rv-facts { display: flex; flex-wrap: wrap; gap: 6px; }
.rv-fact { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid var(--line); background: var(--surface); }
.rv-fact svg { width: 14px; height: 14px; color: var(--muted); }
.rv-text { font-size: 13px; padding: 8px 10px; }
.rv-open { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; justify-self: start; }

/* The dock with the decisions. */
.rv-dock { position: sticky; bottom: 14px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px; border-radius: 18px;
  background: var(--glass); backdrop-filter: blur(20px) saturate(1.4); border: 1px solid var(--line-soft); box-shadow: 0 18px 40px -18px rgba(16, 24, 40, 0.45); }
.rv-dock:empty { display: none; }
.rv-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.rv-action { gap: 8px; }
.rv-action kbd, .rv-keys-help kbd { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 5px; font: 700 11px/1 ui-monospace, Consolas, monospace;
  border: 1px solid currentColor; opacity: 0.7; }
.rv-action-approve { background: linear-gradient(135deg, color-mix(in srgb, var(--ok) 92%, #ffffff), var(--ok)); border-color: var(--ok); color: #ffffff; }
.rv-action-forward:hover { border-color: var(--info); color: var(--info); }
.rv-action-changes:hover { border-color: #c27c0e; color: #c27c0e; }
.rv-keys-help { position: absolute; right: 0; top: 40px; z-index: 6; display: grid; gap: 8px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-float); animation: pop-in 0.18s ease-out both; }
.rv-keys-help ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rv-keys-help li { display: flex; align-items: center; gap: 10px; }
.rv-note { position: absolute; left: 50%; bottom: 84px; z-index: 7; width: min(460px, calc(100% - 20px)); transform: translateX(-50%); display: grid; gap: 10px; padding: 16px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-float); animation: pop-in 0.18s ease-out both; }

/* The decision: a stamp, and the card flies off in its own direction. */
.rv-stamp { position: absolute; top: 34%; left: 50%; z-index: 3; padding: 8px 22px; border: 4px solid currentColor; border-radius: 12px; font-size: 30px; font-weight: 900; letter-spacing: 0.04em;
  text-transform: uppercase; background: color-mix(in srgb, var(--surface) 82%, transparent); transform: translate(-50%, -50%) rotate(-12deg) scale(1.6); opacity: 0; animation: rv-stamp 0.24s ease-out forwards; pointer-events: none; }
.rv-stamp-approve { color: var(--ok); }
.rv-stamp-forward { color: var(--info); }
.rv-stamp-changes { color: #c27c0e; }
.rv-stamp-reject { color: var(--danger); }
@keyframes rv-stamp { to { opacity: 1; transform: translate(-50%, -50%) rotate(-12deg) scale(1); } }
.rv-decided { pointer-events: none; }
.rv-fly-right { animation: rv-fly-right 0.5s 0.18s cubic-bezier(0.5, 0, 0.75, 0) forwards; }
.rv-fly-left { animation: rv-fly-left 0.5s 0.18s cubic-bezier(0.5, 0, 0.75, 0) forwards; }
.rv-fly-up { animation: rv-fly-up 0.5s 0.18s cubic-bezier(0.5, 0, 0.75, 0) forwards; }
.rv-fly-down { animation: rv-fly-down 0.5s 0.18s cubic-bezier(0.5, 0, 0.75, 0) forwards; }
@keyframes rv-fly-right { to { transform: translateX(115%) rotate(14deg); opacity: 0; box-shadow: 0 0 0 6px color-mix(in srgb, var(--ok) 40%, transparent); } }
@keyframes rv-fly-left { to { transform: translateX(-115%) rotate(-14deg); opacity: 0; box-shadow: 0 0 0 6px color-mix(in srgb, var(--danger) 40%, transparent); } }
@keyframes rv-fly-up { to { transform: translateY(-90%) scale(0.9); opacity: 0; } }
@keyframes rv-fly-down { to { transform: translateY(40%) scale(0.92); opacity: 0; } }

/* Done, or nothing to do. */
.rv-empty, .rv-finish { justify-items: center; text-align: center; padding: 40px 22px; }
.rv-empty { display: grid; gap: 10px; }
.rv-empty-icon { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 50%; background: var(--ok-bg); color: var(--ok); box-shadow: 0 0 0 10px color-mix(in srgb, var(--ok-bg) 50%, transparent); }
.rv-empty-icon svg { width: 34px; height: 34px; }
.rv-summary { display: grid; grid-template-columns: repeat(4, minmax(110px, 1fr)); gap: 10px; width: min(620px, 100%); }
.rv-summary-tile { display: grid; gap: 2px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.rv-summary-tile strong { font-size: 30px; line-height: 1; }
.rv-summary-approve strong { color: var(--ok); }
.rv-summary-forward strong { color: var(--info); }
.rv-summary-changes strong { color: #c27c0e; }
.rv-summary-reject strong { color: var(--danger); }

@media (max-width: 900px) {
  .rv-body { grid-template-columns: 1fr; }
  .rv-card-head { flex-direction: column; }
  .rv-summary { grid-template-columns: repeat(2, 1fr); }
  .rv-action span, .rv-action kbd { display: none; }
  .rv-actions { flex-wrap: nowrap; gap: 6px; }
  .rv-action { padding-inline: 12px; }
  .rv-dock { bottom: 8px; gap: 6px; padding: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .rv-enter, .rv-fly-right, .rv-fly-left, .rv-fly-up, .rv-fly-down, .rv-stamp, .rv-segment { animation: none !important; transition: none !important; }
  .rv-stamp { opacity: 1; transform: translate(-50%, -50%) rotate(-12deg); }
}
.update-banner-warning { border-color: var(--warn-border); background: var(--warn-bg); }
.update-banner-warning > svg { color: var(--warn); }

/* Charts that come alive: columns grow, lines draw themselves, rings fill up. */
.chart-mark { transform-box: fill-box; transform-origin: 50% 100%; animation: bar-grow 0.7s cubic-bezier(0.2, 0.8, 0.3, 1) both; }
.chart-col:nth-child(3n + 1) .chart-mark { animation-delay: 0.04s; } .chart-col:nth-child(3n + 2) .chart-mark { animation-delay: 0.08s; } .chart-col:nth-child(3n) .chart-mark { animation-delay: 0.12s; }
.chart-line, .sparkline path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: line-draw 1.1s ease-out 0.1s forwards; }
.chart-area { animation: fade-in 0.8s ease-out 0.5s both; }
.ring-fill { animation: ring-fill 1s cubic-bezier(0.2, 0.8, 0.3, 1) both; }
.bar-fill { transform-origin: left center; animation: bar-across 0.8s cubic-bezier(0.2, 0.8, 0.3, 1) both; }
.tile-value, .hero-stat strong, .score-ring-value { font-variant-numeric: tabular-nums; }
@keyframes bar-grow { from { transform: scaleY(0); } }
@keyframes bar-across { from { transform: scaleX(0); } }
@keyframes line-draw { to { stroke-dashoffset: 0; } }
@keyframes ring-fill { from { stroke-dasharray: 0 var(--ring-c); } }
@keyframes fade-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .chart-mark, .chart-area, .ring-fill, .bar-fill { animation: none !important; }
  .chart-line, .sparkline path { animation: none !important; stroke-dasharray: none; stroke-dashoffset: 0; }
}

/* Empty screens with a drawing */
.empty { padding: 28px 18px 24px; gap: 4px; }
.empty .illustration { width: 150px; height: auto; opacity: 1; margin-bottom: 6px; overflow: visible; }
.empty .empty-action svg { width: 16px; height: 16px; opacity: 1; }
.empty-title { margin: 0; font-weight: 700; color: var(--ink); }
.empty-hint { margin: 0; max-width: 46ch; }
.empty-action { margin-top: 10px; }
.illustration .il-line, .illustration .il-accent-line, .illustration .il-steam, .illustration .il-dash, .illustration .il-spark, .illustration .il-tick { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.illustration .il-line { stroke: color-mix(in srgb, var(--ink) 55%, transparent); stroke-width: 2; }
.illustration .il-soft { fill: var(--surface); }
.illustration .il-ground { fill: color-mix(in srgb, var(--ink) 7%, transparent); }
.illustration .il-dot { fill: color-mix(in srgb, var(--ink) 30%, transparent); }
.illustration .il-accent { fill: var(--primary-soft); stroke: var(--primary); stroke-width: 2; }
.illustration .il-accent-line { stroke: var(--primary); stroke-width: 2.5; stroke-dasharray: 160; stroke-dashoffset: 160; animation: il-draw 1.4s ease-out 0.2s forwards; }
.illustration .il-tick { stroke: var(--primary); stroke-width: 2; }
.illustration .il-dash { stroke: color-mix(in srgb, var(--ink) 25%, transparent); stroke-width: 1.5; stroke-dasharray: 4 4; fill: color-mix(in srgb, var(--primary) 6%, transparent); }
.illustration .il-spark { stroke: var(--primary); stroke-width: 1.8; animation: il-twinkle 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.illustration .il-spark:nth-of-type(2n) { animation-delay: 0.8s; }
.illustration .il-steam { stroke: color-mix(in srgb, var(--ink) 30%, transparent); stroke-width: 2; animation: il-steam 3s ease-in-out infinite; }
@keyframes il-draw { to { stroke-dashoffset: 0; } }
@keyframes il-twinkle { 0%, 100% { opacity: 0.35; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.1); } }
@keyframes il-steam { 0%, 100% { opacity: 0.4; transform: translateY(2px); } 50% { opacity: 0.9; transform: translateY(-2px); } }
@media (prefers-reduced-motion: reduce) {
  .illustration .il-spark, .illustration .il-steam { animation: none !important; }
  .illustration .il-accent-line { animation: none !important; stroke-dashoffset: 0; }
}

/* ---------- Staat live! ---------- */
.live-moment { position: fixed; inset: 0; z-index: 450; display: grid; place-items: center; padding: 16px; background: rgba(10, 12, 16, 0.45); backdrop-filter: blur(6px); animation: fade-in 0.25s ease-out both; }
.live-moment-out { animation: live-out 0.25s ease-in forwards; }
@keyframes live-out { to { opacity: 0; } }
.live-card { position: relative; z-index: 2; width: min(560px, 100%); display: grid; justify-items: center; gap: 8px; padding: 26px 24px 22px; border-radius: 22px; text-align: center;
  background: var(--surface); border: 1px solid var(--line-soft); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.6); animation: live-pop 0.5s cubic-bezier(0.2, 0.9, 0.25, 1.25) both; }
.live-card h2 { font-size: 30px; font-weight: 900; letter-spacing: -0.01em; background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 55%, #e0a100)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.live-card > p { margin: 0 0 6px; max-width: 46ch; }
.live-rocket { width: 64px; height: 64px; display: grid; place-items: center; margin-top: -58px; border-radius: 50%; color: #ffffff;
  background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 60%, #000000)); box-shadow: 0 0 0 8px var(--surface), 0 14px 30px -8px var(--primary); animation: live-lift 1.2s ease-out 0.2s both; }
.live-rocket svg { width: 30px; height: 30px; }
.live-browser { width: 100%; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); box-shadow: 0 18px 40px -22px rgba(16, 24, 40, 0.5); }
.live-browser-bar { display: flex; align-items: center; gap: 5px; padding: 7px 10px; background: color-mix(in srgb, var(--ink) 6%, var(--surface)); border-bottom: 1px solid var(--line); }
.live-browser-bar span { width: 8px; height: 8px; border-radius: 50%; background: color-mix(in srgb, var(--ink) 25%, transparent); }
.live-browser-bar span:first-child { background: #ef6b5b; } .live-browser-bar span:nth-child(2) { background: #f4bf4f; } .live-browser-bar span:nth-child(3) { background: #61c454; }
.live-browser-bar small { margin-left: 8px; color: var(--muted); font-weight: 600; }
.live-screen { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.live-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.live-placeholder { display: grid; place-items: center; height: 100%; color: var(--muted); }
.live-screen-swap .live-new { animation: live-swap 1.1s cubic-bezier(0.6, 0, 0.2, 1) 0.6s both; box-shadow: -18px 0 30px -12px rgba(0, 0, 0, 0.35); }
.live-screen-swap .live-old { filter: saturate(0.6) brightness(0.95); }
.live-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
.live-confetti { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.live-piece { position: absolute; top: -20px; left: var(--x); width: 9px; height: 14px; border-radius: 2px; background: var(--color); opacity: 0;
  animation: live-fall var(--time) cubic-bezier(0.25, 0.4, 0.55, 1) var(--delay) forwards; }
.live-piece-round { width: 10px; height: 10px; border-radius: 50%; }
@keyframes live-fall { 0% { opacity: 1; transform: translate3d(0, 0, 0) rotate(0); } 85% { opacity: 1; } 100% { opacity: 0; transform: translate3d(var(--drift), 105vh, 0) rotate(var(--spin)); } }
@keyframes live-pop { from { opacity: 0; transform: translateY(24px) scale(0.92); } to { opacity: 1; transform: none; } }
@keyframes live-lift { 0% { transform: translateY(16px) scale(0.6); } 60% { transform: translateY(-6px) scale(1.06); } 100% { transform: none; } }
@keyframes live-swap { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: reduce) { .live-moment, .live-card, .live-rocket, .live-screen-swap .live-new, .live-moment-out { animation: none !important; } }

/* Customer satisfaction */
.sat-grid { display: grid; grid-template-columns: auto minmax(0, 1.3fr) minmax(0, 1fr); gap: 26px; align-items: start; }
.sat-grid h3 { margin-top: 0; }
.sat-score { display: grid; justify-items: center; gap: 8px; text-align: center; }
.sat-score .score-ring-value { font-size: 30px; }
.sat-months { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; align-items: end; height: 150px; }
.sat-column { display: grid; grid-template-rows: 1fr auto; height: 100%; gap: 6px; text-align: center; }
.sat-column small { color: var(--muted); font-size: 11px; }
.sat-stack { align-self: end; display: flex; flex-direction: column; justify-content: flex-end; height: calc(var(--total) * 100%); min-height: 4px; border-radius: 6px; overflow: hidden;
  transform-origin: bottom; animation: bar-grow 0.8s cubic-bezier(0.2, 0.8, 0.3, 1) var(--delay) both; }
.sat-stack > span { display: block; height: calc(var(--share) * 100%); }
.sat-up { background: linear-gradient(180deg, color-mix(in srgb, var(--ok) 80%, #ffffff), var(--ok)); }
.sat-down { background: linear-gradient(180deg, color-mix(in srgb, var(--danger) 80%, #ffffff), var(--danger)); }
.sat-legend { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.sat-key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-left: 8px; }
.sat-key:first-child { margin-left: 0; }
.sat-feedback { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.sat-feedback h3 { display: flex; align-items: center; gap: 8px; margin-top: 0; }
.sat-feedback h3 svg { width: 16px; height: 16px; color: var(--danger); }
.sat-feedback ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sat-feedback li { display: grid; gap: 2px; }
.sat-feedback blockquote { margin: 4px 0 0; padding: 8px 12px; border-left: 3px solid var(--danger); border-radius: 0 8px 8px 0; background: var(--danger-bg); color: var(--ink); }
@media (max-width: 900px) { .sat-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .sat-stack { animation: none !important; } }

/* Dialogs: one scroll area (the form), never a second one on the dialog, never sideways. */
dialog { max-height: calc(100dvh - 32px); overflow: hidden; }
.dialog-form { max-height: calc(100dvh - 32px); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
.dialog-form > *, .dialog-form .form-grid > * { min-width: 0; }
.dialog-stack { display: grid; gap: 16px; }
.dialog-section { display: grid; gap: 8px; margin: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); min-width: 0; }
.dialog-section legend { display: inline-flex; align-items: center; gap: 6px; padding: 0 6px; font-weight: 800; }
.dialog-section legend svg { width: 15px; height: 15px; color: var(--primary); }
.dialog-section .check { align-items: flex-start; }
.dialog-section .form-actions { margin-top: 4px; }

/* Two-step verification on the account page and the sign-in screen */
.two-factor-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin-top: 10px; }
.two-factor-method { display: grid; gap: 12px; align-content: start; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.two-factor-method.is-on { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 10%, transparent); }
.two-factor-head { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; }
.two-factor-head h3 { margin: 0; }
.two-factor-head p { margin: 2px 0 0; }
.two-factor-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--primary-soft); color: var(--primary); }
.two-factor-icon svg { width: 18px; height: 18px; }
.two-factor-body .form-grid { grid-template-columns: 1fr; }
.auth-or { display: flex; align-items: center; gap: 10px; margin: 14px 0 8px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-link-step { display: grid; gap: 10px; }
.auth-link-step .btn { justify-self: start; }

/* Package management → project: the portal's own WordPress test copy (site-preview-card.js) */
.site-preview .chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; }
.site-preview .sp-plugin { cursor: default; }
.site-preview .sp-plugin-ok svg { color: var(--success, #2f7d4f); }
.site-preview .sp-plugin-missing { border-color: var(--danger, #b42318); color: var(--danger, #b42318); }
.site-preview .sp-plugin-missing svg { color: currentColor; }
.site-preview .sp-plugin-skipped { opacity: 0.7; }
.site-preview .sp-status { display: flex; align-items: center; gap: 8px; }
.site-preview .sp-actions { grid-column: 1 / -1; }
.sp-shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 8px 0 16px; }
.sp-shot { margin: 0; }
.sp-shot-pair { display: flex; align-items: flex-start; gap: 8px; height: 170px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 8px; }
.sp-shot-pair a { display: block; height: 100%; overflow: hidden; border-radius: 6px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.sp-shot-desktop { flex: 3; }
.sp-shot-mobile { flex: 1; }
.sp-shot-pair img { width: 100%; display: block; }
.sp-shot figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; overflow-wrap: anywhere; }

/* Package management → project: health of the live site (site-status-card.js) */
.site-status .findings { list-style: none; padding: 0; margin: 8px 0 12px; display: grid; gap: 6px; }
.site-status .finding { display: flex; gap: 8px; align-items: flex-start; }
.site-status .finding svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }
.site-status .finding-error svg { color: var(--danger, #b42318); }
.site-status .finding-warning svg { color: var(--warning, #b54708); }
.site-status .finding-info svg { color: var(--muted); }
.site-status .facts { border-collapse: collapse; margin: 4px 0 12px; }
.site-status .facts th { text-align: left; font-weight: 600; padding: 4px 16px 4px 0; vertical-align: top; white-space: nowrap; }
.site-status .facts td { padding: 4px 0; overflow-wrap: anywhere; }
@media (max-width: 600px) { .site-status .facts th { white-space: normal; } }
