/* All Painting colour visualizer. Uses the ap-bold design tokens (colours, fonts, radii, roller buttons). */
.apv { --apv-gap: 16px; --apv-stacked: 1; --apv-top: calc(var(--ap-header-h, 76px) + 8px); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--apv-gap); align-items: stretch; color: var(--ap-text); font-family: var(--ap-body); }
.apv *, .apv *::before, .apv *::after { box-sizing: border-box; }
.apv [hidden] { display: none !important; }
.apv button { font-family: inherit; }
.apv-i { width: 18px; height: 18px; flex: none; }
/* Divi styles every ul and p in a code module; these lists are controls */
.ap-bold .apv ul.apv-surfaces, .ap-bold .apv ul.apv-swatches, .ap-bold .apv ul.apv-samples { list-style: none !important; padding: 0 !important; margin: 0 !important; line-height: normal; }
.ap-bold .apv ul.apv-surfaces > li, .ap-bold .apv ul.apv-swatches > li, .ap-bold .apv ul.apv-samples > li { list-style: none !important; padding: 0 !important; margin: 0 !important; }
.ap-bold .apv ul > li::marker { content: none; }
.ap-bold .apv p { padding-bottom: 0; }

/* ---------- layout ----------
   Phones held upright: the photo is pinned under the header while the controls scroll beneath it, and compare /
   download / quote come after the controls. From 700 px wide (and phones on their side): photo left, controls right,
   the photo and its actions stay pinned while the panel scrolls. */
.apv-stage-wrap, .apv-stick { display: contents; }
.apv-stage { order: 1; position: sticky; top: var(--apv-top); z-index: 6; box-shadow: 0 -10px 0 var(--ap-ink); }
/* phones held upright: the render, compare and download bar stays pinned under the photo; quote after the controls */
.apv-actbar { order: 2; position: sticky; top: calc(var(--apv-top) + var(--apv-h, 240px) + 8px); z-index: 6; background: var(--ap-ink); box-shadow: 0 -8px 0 var(--ap-ink), 0 8px 0 var(--ap-ink); }
.apv-panel { order: 3; } .apv-actbar2 { order: 4; }
.apv-actbar .apv-actions .apv-tool span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.apv-actbar .apv-actions .apv-tool { min-width: 52px; padding-left: 0.8rem; padding-right: 0.8rem; }
@media (min-width: 700px), (orientation: landscape) and (min-width: 560px) {
  .apv { --apv-stacked: 0; --apv-gap: 20px; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); }
  .apv-stage-wrap { display: block; min-width: 0; }
  .apv-stick { display: flex; flex-direction: column; gap: 12px; position: sticky; top: var(--apv-top); }
  .apv-stage { position: relative; top: auto; box-shadow: none; }
  .apv-actbar { position: static; box-shadow: none; background: transparent; }
  .apv-actbar .apv-actions .apv-tool span { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
}
@media (min-width: 1200px) {
  .apv { --apv-gap: 26px; grid-template-columns: minmax(0, 1fr) 440px; }
  .apv.is-tall[data-state="ready"] { grid-template-columns: minmax(0, var(--apv-w, 540px)) minmax(440px, 1fr); }
  .apv-stick { gap: 14px; }
}
@media (min-width: 1600px) { .apv { grid-template-columns: minmax(0, 1fr) 480px; } }

/* ---------- stage ---------- */
.apv-stage { min-height: 200px; border-radius: var(--ap-radius); overflow: hidden; background: var(--ap-ink-3); isolation: isolate; display: flex; align-items: center; justify-content: center; }
.apv[data-state="ready"] .apv-stage { height: var(--apv-h, auto); min-height: 0; background: var(--ap-ink); }
.apv[data-state="idle"] .apv-stage, .apv[data-state="loading"] .apv-stage { aspect-ratio: 3 / 2; position: relative; top: auto; }
/* before a photo is chosen the example photo fills its column, so photo and panel are the same height */
@media (min-width: 700px), (orientation: landscape) and (min-width: 560px) {
  .apv[data-state="idle"] .apv-stick, .apv[data-state="loading"] .apv-stick { position: static; height: 100%; }
  .apv[data-state="idle"] .apv-stage, .apv[data-state="loading"] .apv-stage { aspect-ratio: auto; min-height: 300px; flex: 1 1 auto; }
}
.apv-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; max-width: none; }
.apv-poster-tag, .apv-compare-tag { position: absolute; z-index: 2; padding: 0.45rem 0.8rem; border-radius: 999px; background: rgba(14, 15, 18, 0.8); color: var(--ap-text); font-size: 0.85rem; font-weight: 700; line-height: 1.2; pointer-events: none; }
.apv-poster-tag { left: 1rem; bottom: 1rem; }
.apv-canvas-box { position: relative; flex: none; max-width: 100%; touch-action: manipulation; border-radius: inherit; overflow: hidden; }
.apv-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.apv-before { display: none; z-index: 1; }
.apv-before.is-on { display: block; }
.apv-overlay { z-index: 2; pointer-events: none; opacity: 0; transition: opacity 0.3s ease; }
.apv-overlay.is-on, .apv-overlay.is-cross { opacity: 1; transition-duration: 0.1s; }
.apv-hit { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: crosshair; touch-action: manipulation; -webkit-tap-highlight-color: transparent; border-radius: 0; }
.apv.is-brush .apv-hit { touch-action: none; cursor: cell; }
.apv-hit:focus-visible { outline: 3px solid var(--ap-blue); outline-offset: -3px; }
.apv.is-working .apv-hit { cursor: progress; }
.apv-ripple { position: absolute; z-index: 4; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px rgba(14, 15, 18, 0.55); pointer-events: none; animation: apv-ripple 0.9s var(--ap-ease) forwards; }
.apv-ripple.is-remove { border-color: #ff5a73; }
@keyframes apv-ripple { from { transform: scale(0.4); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }

.apv-compare { position: absolute; inset: 0; z-index: 5; cursor: ew-resize; touch-action: none; --p: 50%; }
.apv-compare-tag.l { left: 0.75rem; top: 0.75rem; } .apv-compare-tag.r { right: 0.75rem; top: 0.75rem; }
.apv-compare-line { position: absolute; top: 0; bottom: 0; left: var(--p); width: 3px; margin-left: -1.5px; background: var(--ap-paper); box-shadow: 0 0 0 1px rgba(14, 15, 18, 0.35); }
.apv-compare-knob { position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; background: var(--ap-paper); color: var(--ap-ink); display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35); cursor: ew-resize; }
.apv-compare-knob .apv-i { width: 22px; height: 22px; }
.apv-compare-knob:focus-visible { outline: 3px solid var(--ap-blue); outline-offset: 3px; }

.apv-busy { position: absolute; inset: 0; z-index: 8; display: grid; place-items: center; padding: 1rem; background: rgba(14, 15, 18, 0.74); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.apv-busy-card { width: min(440px, 100%); background: var(--ap-ink-2); border: 1px solid var(--ap-line); border-radius: var(--ap-radius); padding: 1.3rem 1.4rem; display: grid; gap: 0.75rem; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); }
.apv-busy-title { margin: 0; padding: 0; font-family: var(--ap-display); font-weight: 700; font-size: 1.15rem; line-height: 1.2; color: var(--ap-text); }
.apv-busy-note { margin: 0; padding: 0; font-size: 0.93rem; line-height: 1.5; color: var(--ap-muted); }
.apv-busy-detail { margin: 0; padding: 0; min-height: 1.3em; font-size: 0.9rem; font-weight: 600; color: var(--ap-soft); font-variant-numeric: tabular-nums; }
.apv-busy-detail:empty { display: none; }
.apv-bar { position: relative; height: 8px; border-radius: 99px; background: var(--ap-ink-3); overflow: hidden; }
.apv-bar span { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: inherit; background: var(--ap-green); transition: width 0.25s linear; }
.apv-bar.is-indeterminate span { width: 35% !important; animation: apv-slide 1.3s ease-in-out infinite; }
@keyframes apv-slide { from { left: -35%; } to { left: 100%; } }
.apv-busy.is-error .apv-bar, .apv-busy.is-error .apv-busy-detail { display: none; }
.apv-busy.is-error .apv-busy-title::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--ap-red); margin-right: 0.6rem; vertical-align: middle; }
.apv-dismiss { justify-self: start; }
.apv-toast { position: absolute; z-index: 9; left: 50%; bottom: 0.75rem; transform: translateX(-50%); width: max-content; max-width: calc(100% - 1.5rem); margin: 0; padding: 0.6rem 1rem; border-radius: 12px; background: rgba(14, 15, 18, 0.92); color: var(--ap-text); font-size: 0.92rem; font-weight: 600; line-height: 1.35; text-align: center; }

/* ---------- actions under the photo ---------- */
.apv-actbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.apv-actbar .apv-render-btn { flex: 1 1 auto; min-height: 52px; }
/* phones held upright: render, compare and download always share one row; a long label wraps inside its button */
@media (max-width: 699px) and (orientation: portrait), (max-width: 559px) {
  .apv-actbar { flex-wrap: nowrap; }
  .apv-actbar .apv-render-btn { min-width: 0; white-space: normal; line-height: 1.2; text-align: center; padding-left: 0.75rem; padding-right: 0.75rem; }
}
.apv-actions { display: flex; gap: 0.5rem; }
.apv-actbar .apv-tool, .apv-actbar .ap-btn-like { min-height: 52px; padding-left: 1rem; padding-right: 1rem; }
.apv-actbar2 { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.apv-quote.ap-btn-like { white-space: normal; text-align: center; }
.apv-actbar2 .apv-privacy { flex: 1 1 100%; }
@media (min-width: 1200px) { .apv-actbar2 .apv-quote { min-height: 52px; } }
@media (max-width: 1199px) { .apv-actbar2 .apv-quote { flex: 1 1 100%; } }

/* ---------- panel ---------- */
.apv-panel { min-width: 0; background: var(--ap-ink-2); border: 1px solid var(--ap-line); border-radius: var(--ap-radius); padding: clamp(1rem, 2vw, 1.5rem); display: flex; flex-direction: column; container-type: inline-size; container-name: apvp; }
.apv-start, .apv-tools { display: flex; flex-direction: column; gap: 1rem; }
.apv-col { display: flex; flex-direction: column; gap: 0.9rem; min-width: 0; }
@container apvp (min-width: 640px) { .apv-tools { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem 2rem; align-items: start; } }
.apv-label { margin: 0; padding: 0; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ap-muted); }
.apv-label--gap { margin-top: 0.5rem; }
.apv-help { margin: 0; padding: 0; font-size: 0.95rem; line-height: 1.5; color: var(--ap-muted); }
.apv-privacy { margin: 0; padding: 0; display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.92rem; line-height: 1.45; color: var(--ap-soft); }
.apv-privacy .apv-i { width: 18px; height: 18px; margin-top: 0.1rem; color: var(--ap-green); }
.apv-start .apv-privacy { margin-top: auto; padding-top: 0.5rem; }

.apv-upload.ap-btn-like { position: relative; width: 100%; overflow: hidden; }
.apv-upload input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 0; }
.apv-upload:focus-within { outline: 2px solid var(--ap-blue); outline-offset: 3px; background-size: 100% 100% !important; color: #fff !important; }

.apv-samples { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.apv-samples li { display: flex; }
.apv-sample { position: relative; flex: 1 1 auto; display: flex; flex-direction: column; padding: 0; border: 2px solid var(--ap-line); border-radius: var(--ap-radius-sm); background: var(--ap-ink-3); color: var(--ap-text); overflow: hidden; cursor: pointer; text-align: left; transition: border-color 0.2s, transform 0.2s var(--ap-ease); }
.apv-sample img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; max-width: none; }
.apv-sample span { display: block; padding: 0.6rem 0.75rem; font-weight: 700; font-size: 0.95rem; line-height: 1.2; }
@media (hover: hover) { .apv-sample:hover { border-color: var(--ap-paper); transform: translateY(-2px); } }
.apv-sample:focus-visible { outline: 3px solid var(--ap-blue); outline-offset: 2px; border-color: var(--ap-paper); }
.apv-sample.is-loading { border-color: var(--ap-green); }
.apv-sample.is-loading::after { content: ""; position: absolute; top: 0.6rem; right: 0.6rem; width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; animation: apv-spin 0.8s linear infinite; }
@keyframes apv-spin { to { transform: rotate(360deg); } }

.apv-group { display: flex; flex-direction: column; gap: 0.7rem; }
.apv-group-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }
.apv-link { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 44px; padding: 0 0.1rem; border: 0; background: none; color: var(--ap-text); font-weight: 600; font-size: 0.93rem; text-decoration: underline; text-decoration-color: var(--ap-blue); text-underline-offset: 3px; cursor: pointer; }
.apv-link .apv-i { width: 16px; height: 16px; }
.apv-link:disabled { color: var(--ap-muted); text-decoration: none; cursor: not-allowed; }
@media (hover: hover) { .apv-link:not(:disabled):hover { color: #5aa2ff; text-decoration-thickness: 2px; } }
.apv-link:focus-visible { outline: 3px solid var(--ap-blue); outline-offset: 2px; }
.apv-add-surface { align-self: flex-start; }
.apv-back { align-self: flex-start; }

/* segmented controls (mode, photo type, brush) */
.apv-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; border-radius: 14px; background: var(--ap-ink-3); gap: 4px; }
.apv-seg button { display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem; min-height: 44px; border: 0; border-radius: 10px; padding: 0.4rem 0.6rem; background: transparent; color: var(--ap-soft); font-weight: 700; font-size: 0.93rem; line-height: 1.1; cursor: pointer; }
.apv-seg button .apv-i { width: 16px; height: 16px; }
.apv-seg button[aria-pressed="true"] { background: var(--ap-paper); color: var(--ap-ink); }
.apv-mode button[data-mode="remove"][aria-pressed="true"] { background: var(--ap-red); color: #fff; }
@media (hover: hover) { .apv-seg button[aria-pressed="false"]:hover { color: var(--ap-text); background: #2a2e37; } }
.apv-seg button:focus-visible { outline: 3px solid var(--ap-blue); outline-offset: 2px; }
.apv-ptype-row { display: grid; gap: 0.4rem; }
.apv-ptype-l { font-size: 0.88rem; font-weight: 600; color: var(--ap-muted); }
.apv:not(.is-upload) .apv-ptype-row { display: none; }

/* surface chips: an even grid; an odd last chip takes the full row */
.apv-surfaces { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.apv-surfaces li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.apv-chip { width: 100%; display: flex; align-items: center; gap: 0.55rem; min-height: 46px; padding: 0.4rem 0.75rem 0.4rem 0.6rem; border-radius: 12px; border: 2px solid rgba(255, 255, 255, 0.18); background: transparent; color: var(--ap-soft); font-weight: 700; font-size: 0.95rem; line-height: 1.1; text-align: left; cursor: pointer; transition: border-color 0.2s, background-color 0.2s, color 0.2s; }
.apv-chip span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.apv-chip i { width: 18px; height: 18px; border-radius: 6px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4); flex: none; }
.apv-chip[aria-pressed="true"] { background: var(--ap-paper); border-color: var(--ap-paper); color: var(--ap-ink); }
.apv-chip[aria-pressed="true"] i { box-shadow: inset 0 0 0 1px rgba(14, 15, 18, 0.4); }
.apv-tick { font-size: 0.9rem; color: var(--ap-green); flex: none; }
.apv-chip[aria-pressed="true"] .apv-tick { color: #1c7a2a; }
@media (hover: hover) { .apv-chip:not([aria-pressed="true"]):hover { border-color: var(--ap-paper); color: var(--ap-text); } }
.apv-chip:focus-visible { outline: 3px solid var(--ap-blue); outline-offset: 2px; }

.apv-toolbar { display: grid; gap: 0.5rem; }
.apv-toolbar-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.apv-brush { display: grid; grid-template-columns: 1.4fr 1fr; gap: 0.5rem; }
.apv-tool { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; min-height: 46px; padding: 0.5rem 0.7rem; border-radius: 12px; border: 2px solid rgba(255, 255, 255, 0.3); color: var(--ap-text); font-weight: 700; font-size: 0.95rem; line-height: 1.1; white-space: nowrap; cursor: pointer;
  background-color: transparent; background-image: linear-gradient(var(--ap-paper), var(--ap-paper)); background-repeat: no-repeat; background-size: 0% 100%; background-position: left center;
  transition: background-size 0.3s var(--ap-ease), color 0s linear 0.04s, border-color 0.3s var(--ap-ease); }
.apv-tool .apv-i { width: 17px; height: 17px; }
@media (hover: hover) { .apv-tool:not(:disabled):hover { background-size: 100% 100%; color: var(--ap-ink); border-color: var(--ap-paper); } }
.apv-tool:focus-visible { background-size: 100% 100%; color: var(--ap-ink); border-color: var(--ap-paper); outline: 2px solid var(--ap-blue); outline-offset: 3px; }
.apv-tool:active:not(:disabled) { transform: scale(0.985); }
.apv-tool:disabled { color: var(--ap-muted); border-color: rgba(255, 255, 255, 0.14); cursor: not-allowed; }
.apv-tool[aria-pressed="true"] { background-size: 100% 100%; color: var(--ap-ink); border-color: var(--ap-paper); }
.apv-hint { margin: 0; padding: 0.7rem 0.9rem; border-radius: 12px; background: var(--ap-ink-3); border-left: 4px solid var(--ap-blue); font-size: 0.95rem; line-height: 1.45; color: var(--ap-text); }
.apv.is-removing .apv-hint { border-left-color: var(--ap-red); }
.apv-size { display: grid; grid-template-columns: auto 1fr 1fr; align-items: center; gap: 0.5rem; font-size: 0.92rem; font-weight: 600; color: var(--ap-muted); }

/* colours */
.apv-current { margin: 0; padding: 0; display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.92rem; color: var(--ap-muted); }
.apv-current b { color: var(--ap-text); font-weight: 700; }
.apv-current i { width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.55); }
.apv-families { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.4rem; }
@container apvp (min-width: 480px) and (max-width: 639px) { .apv-families { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@container apvp (min-width: 640px) { .apv-families { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.apv-families button { min-height: 44px; padding: 0.3rem 0.4rem; border-radius: 10px; border: 0; background: var(--ap-ink-3); color: var(--ap-soft); font-weight: 700; font-size: 0.86rem; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.apv-families button[aria-pressed="true"] { background: var(--ap-paper); color: var(--ap-ink); }
@media (hover: hover) { .apv-families button[aria-pressed="false"]:hover { color: var(--ap-text); background: #2a2e37; } }
.apv-families button:focus-visible { outline: 3px solid var(--ap-blue); outline-offset: 2px; }
.apv-swatches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.apv-swatches li { display: flex; }
.apv-swatch { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 0.6rem; min-height: 50px; padding: 0.3rem 0.6rem 0.3rem 0.3rem; border-radius: 12px; border: 2px solid transparent; background: var(--ap-ink-3); color: var(--ap-soft); font-weight: 600; font-size: 0.92rem; line-height: 1.15; text-align: left; cursor: pointer; transition: border-color 0.2s; }
.apv-swatch span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.apv-swatch i { width: 36px; height: 36px; border-radius: 9px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25); flex: none; }
.apv-swatch[aria-pressed="true"] { border-color: var(--ap-paper); color: var(--ap-text); }
@media (hover: hover) { .apv-swatch:hover { border-color: rgba(244, 241, 234, 0.55); color: var(--ap-text); } }
.apv-swatch:focus-visible { outline: 3px solid var(--ap-blue); outline-offset: 2px; }
.apv-custom { position: relative; display: inline-flex; align-items: center; gap: 0.6rem; align-self: flex-start; min-height: 52px; padding: 0.3rem 0.9rem 0.3rem 0.3rem; border-radius: 12px; border: 2px dashed rgba(255, 255, 255, 0.3); color: var(--ap-text); font-weight: 700; font-size: 0.92rem; cursor: pointer; }
.apv-custom input { width: 44px; height: 44px; padding: 0; border: 0; border-radius: 9px; background: none; cursor: pointer; }
.apv-custom input::-webkit-color-swatch-wrapper { padding: 0; }
.apv-custom input::-webkit-color-swatch { border: 0; border-radius: 9px; }
.apv-custom input::-moz-color-swatch { border: 0; border-radius: 9px; }
.apv-custom:focus-within { outline: 3px solid var(--ap-blue); outline-offset: 2px; }
@media (hover: hover) { .apv-custom:hover { border-color: var(--ap-paper); } }

@media (prefers-reduced-motion: reduce) {
  .apv-ripple { animation-duration: 0.01s; }
  .apv-sample.is-loading::after { animation: none; border-color: #fff; border-right-color: rgba(255, 255, 255, 0.35); }
  .apv-tool, .apv-sample, .apv-overlay { transition: none; }
}

/* short screens (phones on their side): photo and its render / compare / download bar stay pinned; the quote scrolls */
@media (max-height: 520px) and (min-width: 560px) {
  /* photo and bar pinned in the left column; the quote goes under the controls on the right, so the pinned photo never covers it */
  .apv[data-state="ready"] { grid-template-rows: auto auto 1fr auto; row-gap: 8px; }
  .apv[data-state="ready"] .apv-stage-wrap, .apv[data-state="ready"] .apv-stick { display: contents; }
  .apv[data-state="ready"] .apv-stage { grid-column: 1; grid-row: 1; align-self: start; position: sticky; top: var(--apv-top); z-index: 6; }
  .apv[data-state="ready"] .apv-actbar { grid-column: 1; grid-row: 2; align-self: start; position: sticky; top: calc(var(--apv-top) + var(--apv-h, 220px) + 8px); z-index: 6; background: var(--ap-ink); box-shadow: 0 -8px 0 var(--ap-ink), 0 6px 0 var(--ap-ink); }
  .apv[data-state="ready"] .apv-actbar .apv-actions .apv-tool span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .apv[data-state="ready"] .apv-panel { grid-column: 2; grid-row: 1 / span 3; }
  .apv[data-state="ready"] .apv-actbar2 { grid-column: 2; grid-row: 4; margin-top: 4px; }
}

/* ---------- modal (render consent, progress, results): over the whole page ---------- */
html.apv-modal-open, html.apv-modal-open body { overflow: hidden !important; }
.apv-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(14, 15, 18, 0.78); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); font-family: var(--ap-body); }
.apv-modal[hidden] { display: none; }
.apv-modal-card { width: min(480px, 100%); max-height: calc(100dvh - 32px); overflow: auto; background: var(--ap-ink-2); color: var(--ap-text); border: 1px solid var(--ap-line); border-radius: var(--ap-radius); padding: 1.4rem 1.4rem 1.2rem; display: grid; gap: 0.8rem; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); }
.apv-modal .apv-m-title { margin: 0; padding: 0; font-family: var(--ap-display); font-weight: 700; font-size: 1.3rem; line-height: 1.2; color: var(--ap-text); letter-spacing: -0.01em; }
.apv-modal .apv-m-body p { margin: 0 0 0.6rem; padding: 0; font-size: 0.97rem; line-height: 1.5; color: var(--ap-soft); }
.apv-modal .apv-m-body p:last-child { margin-bottom: 0; }
.apv-modal .apv-m-body strong { color: var(--ap-text); }
.apv-modal .apv-m-body a { color: var(--ap-text); text-decoration: underline; text-decoration-color: var(--ap-blue); text-underline-offset: 3px; font-weight: 600; display: inline-block; padding: 0.55rem 0; }
@media (hover: hover) { .apv-modal .apv-m-body a:hover { color: #5aa2ff; } }
.apv-modal a:focus-visible, .apv-modal button:focus-visible { outline: 3px solid var(--ap-blue); outline-offset: 2px; }
.apv-m-progress { display: grid; gap: 0.4rem; }
.apv-m-elapsed { margin: 0; font-size: 0.9rem; font-weight: 600; color: var(--ap-soft); font-variant-numeric: tabular-nums; }
.apv-m-status { margin: 0; font-size: 0.95rem; font-weight: 600; color: var(--ap-text); }
.apv-m-status:empty { display: none; }
.apv-m-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.apv-m-actions button { min-height: 48px; }
.apv-modal .apv-tool { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0.5rem 1rem; border-radius: 12px; border: 2px solid rgba(255, 255, 255, 0.3); color: var(--ap-text); font: inherit; font-weight: 700; background: transparent; cursor: pointer; }
@media (hover: hover) { .apv-modal .apv-tool:hover { background: var(--ap-paper); color: var(--ap-ink); border-color: var(--ap-paper); } }
.apv-modal .apv-bar { position: relative; height: 8px; border-radius: 99px; background: var(--ap-ink-3); overflow: hidden; }
.apv-modal .apv-bar span { position: absolute; left: 0; top: 0; bottom: 0; width: 35%; border-radius: inherit; background: var(--ap-green); animation: apv-slide 1.3s ease-in-out infinite; }
@media (max-width: 480px) { .apv-m-actions button { flex: 1 1 100%; } .apv-modal-card { padding: 1.2rem 1.1rem 1rem; } }
.apv-modal [hidden] { display: none !important; }
@media (max-height: 520px) {
  .apv-modal { padding: 8px; }
  .apv-modal-card { width: min(720px, 100%); padding: 0.9rem 1.1rem; gap: 0.5rem; max-height: calc(100dvh - 16px); }
  .apv-modal .apv-m-title { font-size: 1.1rem; }
  .apv-modal .apv-m-body p { font-size: 0.9rem; line-height: 1.4; margin-bottom: 0.35rem; }
  .apv-modal .apv-m-body a { padding: 0.35rem 0; }
}

/* tags on the photo: what the visitor is looking at */
.apv-ai-tag, .apv-quick-tag { position: absolute; z-index: 4; left: calc((100% - var(--apv-w, 100%)) / 2 + 0.75rem); max-width: calc(var(--apv-w, 100%) - 1.5rem); padding: 0.4rem 0.75rem; border-radius: 999px; background: rgba(14, 15, 18, 0.85); color: var(--ap-text); font-size: 0.82rem; font-weight: 700; line-height: 1.25; pointer-events: none; }
.apv-ai-tag { bottom: 0.75rem; }
.apv-quick-tag { top: 0.75rem; }
.apv-ai-short { display: none; }
@media (max-width: 599px) { .apv-ai-long { display: none; } .apv-ai-short { display: inline; } }
.apv-render-btn.apv-tool .apv-i { color: var(--ap-green); }
@media (hover: hover) { .apv-render-btn.apv-tool:not(:disabled):hover .apv-i { color: var(--ap-ink); } }
.apv-render-btn.apv-tool:focus-visible .apv-i { color: var(--ap-ink); }

/* reduced motion: busy bars stand still (a static striped fill reads as "working" without moving or flickering) */
@media (prefers-reduced-motion: reduce) {
  .apv-bar.is-indeterminate span, .apv-modal .apv-bar span { animation: none !important; left: 0 !important; width: 100% !important; opacity: 0.55; background: repeating-linear-gradient(-45deg, var(--ap-green) 0 10px, transparent 10px 20px); }
}

/* =====================================================================================================================
   Light pages (body.ap-light, the All Painting light design system; tokens --apl-* from ap-bold's ap-light.css).
   The rules above stay the dark look for dark pages; on light pages these override them. White panel and cards; blue
   primary pills, white secondary pills; segmented controls are a pale track with a white raised choice (as the home's
   visualiser); chips, families and swatches select with #eaf2ff, a 2 px blue ring and ink text; tags on the photo are
   white pills; the busy veil, the toast and the dialog are white; progress is blue; icon squares are #eaf2ff with blue.
   Contrast: ink on white 17.8 and on #eaf2ff 15.8, #344054 on white 10.5 and on #eef3f9 9.4, #5b6577 on white 5.9 and
   on #f5f8fc 5.5, blue text on white 5.0, #0050c8 on #eaf2ff 6.3, white on blue 5.0, on #0050c8 7.0, on red 5.2.
   ===================================================================================================================== */
body.ap-light .apv { --apv-cover: #fff; color: var(--apl-text); font-family: var(--apl-font); }
body.ap-light .apl-band--tint .apv { --apv-cover: var(--apl-tint); }

/* phones held upright: the strips that cover the gaps around the pinned photo and its bar take the page colour */
body.ap-light .apv-stage { box-shadow: 0 -10px 0 var(--apv-cover); }
body.ap-light .apv-actbar { background: var(--apv-cover); box-shadow: 0 -8px 0 var(--apv-cover), 0 8px 0 var(--apv-cover); }
@media (min-width: 700px), (orientation: landscape) and (min-width: 560px) {
  body.ap-light .apv-stage { box-shadow: none; }
  body.ap-light .apv-actbar { background: transparent; box-shadow: none; }
}
@media (max-height: 520px) and (min-width: 560px) {
  body.ap-light .apv[data-state="ready"] .apv-actbar { background: var(--apv-cover); box-shadow: 0 -8px 0 var(--apv-cover), 0 6px 0 var(--apv-cover); }
}

/* ---------- photo stage ---------- */
body.ap-light .apv-stage, body.ap-light .apv[data-state="ready"] .apv-stage { background: var(--apl-tint-2); border-radius: var(--apl-radius); }
body.ap-light .apv-poster-tag, body.ap-light .apv-compare-tag, body.ap-light .apv-ai-tag, body.ap-light .apv-quick-tag {
  background: rgba(255, 255, 255, 0.95); color: var(--apl-ink); font-family: var(--apl-font); font-weight: 700; box-shadow: 0 4px 14px rgba(16, 24, 40, 0.16);
}
body.ap-light .apv-ai-tag::before, body.ap-light .apv-poster-tag::before {
  content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 0.45rem; border-radius: 50%; background: var(--apl-blue); vertical-align: 0.08em;
}
body.ap-light .apv-hit:focus-visible { outline: 3px solid var(--apl-blue); outline-offset: -3px; box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.85); }
body.ap-light .apv-ripple.is-remove { border-color: var(--apl-red); }
body.ap-light .apv-compare-line { background: #fff; box-shadow: 0 0 0 1px rgba(16, 24, 40, 0.3); }
body.ap-light .apv-compare-knob { background: #fff; color: var(--apl-blue); box-shadow: 0 6px 20px rgba(16, 24, 40, 0.3); }
body.ap-light .apv-compare-knob:focus-visible { outline: 3px solid var(--apl-blue); outline-offset: 3px; box-shadow: 0 0 0 3px #fff, 0 6px 20px rgba(16, 24, 40, 0.3); }

/* busy (getting the visualizer ready, reading a photo, errors): a white veil and a white card */
body.ap-light .apv-busy { background: rgba(245, 248, 252, 0.78); }
body.ap-light .apv-busy-card { background: #fff; border: 1px solid var(--apl-line); border-radius: var(--apl-radius); box-shadow: var(--apl-shadow-lg); }
body.ap-light .apv-busy-title { font-family: var(--apl-font); color: var(--apl-ink); }
body.ap-light .apv-busy-note { color: var(--apl-muted); }
body.ap-light .apv-busy-detail { color: var(--apl-text); }
body.ap-light .apv-bar { background: var(--apl-tint-2); }
body.ap-light .apv-bar span { background: var(--apl-blue); }
body.ap-light .apv-busy.is-error .apv-busy-title::before { background: var(--apl-red); }
body.ap-light #et-boc .et-l .apv .apv-toast { padding: 0.6rem 1rem; }
body.ap-light .apv .apv-toast { padding: 0.6rem 1rem; background: #fff; color: var(--apl-ink); border: 1px solid var(--apl-line); box-shadow: var(--apl-shadow-lg); font-family: var(--apl-font); }

/* ---------- buttons: light pills (render, upload, quote, OK and the dialog's main button) ---------- */
body.ap-light #et-boc .et-l .apv .ap-btn-like, body.ap-light .apv .ap-btn-like, body.ap-light .apv-modal .ap-btn-like {
  border-radius: 999px; border: 1px solid transparent; font-family: var(--apl-font); font-weight: 600; letter-spacing: 0; line-height: 1.15;
  background-image: none !important; transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s var(--apl-ease) !important;
}
body.ap-light #et-boc .et-l .apv .ap-btn-like--primary, body.ap-light .apv .ap-btn-like--primary, body.ap-light .apv-modal .ap-btn-like--primary { background-color: var(--apl-blue) !important; color: #fff !important; border-color: var(--apl-blue) !important; }
body.ap-light #et-boc .et-l .apv .ap-btn-like--ghost, body.ap-light .apv .ap-btn-like--ghost { background-color: #fff !important; color: var(--apl-ink) !important; border-color: var(--apl-line-strong) !important; }
@media (hover: hover) {
  body.ap-light #et-boc .et-l .apv .ap-btn-like--primary:hover, body.ap-light .apv .ap-btn-like--primary:hover, body.ap-light .apv-modal .ap-btn-like--primary:hover { background-color: var(--apl-blue-strong) !important; border-color: var(--apl-blue-strong) !important; color: #fff !important; box-shadow: 0 8px 20px rgba(10, 102, 242, 0.28); }
  body.ap-light #et-boc .et-l .apv .ap-btn-like--ghost:hover, body.ap-light .apv .ap-btn-like--ghost:hover { background-color: var(--apl-blue-50) !important; color: var(--apl-blue-strong) !important; border-color: var(--apl-blue) !important; }
}
body.ap-light #et-boc .et-l .apv .ap-btn-like:focus-visible, body.ap-light .apv .ap-btn-like:focus-visible, body.ap-light .apv-modal .ap-btn-like:focus-visible { outline: 3px solid var(--apl-blue); outline-offset: 3px; }
body.ap-light #et-boc .et-l .apv .ap-btn-like--primary:focus-visible, body.ap-light .apv .ap-btn-like--primary:focus-visible, body.ap-light .apv-modal .ap-btn-like--primary:focus-visible { background-color: var(--apl-blue) !important; color: #fff !important; }
body.ap-light #et-boc .et-l .apv .ap-btn-like--ghost:focus-visible, body.ap-light .apv .ap-btn-like--ghost:focus-visible { background-color: #fff !important; color: var(--apl-ink) !important; }
body.ap-light #et-boc .et-l .apv-upload:focus-within, body.ap-light .apv-upload:focus-within { outline: 3px solid var(--apl-blue); outline-offset: 3px; color: #fff !important; }
/* phones held upright: the render button's label may wrap inside the button (ap-bold's button rule keeps labels on one
   line with an id-level selector, which cut "See the realistic version" off at 320 px) */
@media (max-width: 699px) and (orientation: portrait), (max-width: 559px) {
  body.ap-light #et-boc .et-l .apv-actbar .apv-render-btn, body.ap-light .apv-actbar .apv-render-btn { white-space: normal; padding-left: 0.85rem !important; padding-right: 0.85rem !important; }
}
body.ap-light .apv-render-btn.apv-tool .apv-i { color: var(--apl-blue); }
@media (hover: hover) { body.ap-light .apv-render-btn.apv-tool:not(:disabled):hover .apv-i { color: var(--apl-blue-strong); } }
body.ap-light .apv-render-btn.apv-tool:focus-visible .apv-i { color: var(--apl-blue); }

/* tool buttons (Undo, Clear, Compare, Download, Smaller, Larger, the render button when the render shows, dialog Cancel):
   white pills with a grey hairline; hover and pressed #eaf2ff with a blue edge; disabled pale with grey text */
body.ap-light .apv .apv-tool, body.ap-light .apv-modal .apv-tool {
  border-radius: 999px; border: 1px solid var(--apl-line-strong); background-color: #fff; background-image: none; color: var(--apl-ink);
  font-family: var(--apl-font); font-weight: 600; transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
@media (hover: hover) {
  body.ap-light .apv .apv-tool:not(:disabled):hover, body.ap-light .apv-modal .apv-tool:hover { background-color: var(--apl-blue-50); border-color: var(--apl-blue); color: var(--apl-blue-strong); }
}
body.ap-light .apv .apv-tool:focus-visible, body.ap-light .apv-modal .apv-tool:focus-visible { background-color: #fff; border-color: var(--apl-line-strong); color: var(--apl-ink); outline: 3px solid var(--apl-blue); outline-offset: 3px; }
body.ap-light .apv .apv-tool[aria-pressed="true"] { background-color: var(--apl-blue-50); border-color: var(--apl-blue); box-shadow: inset 0 0 0 1px var(--apl-blue); color: var(--apl-blue-strong); }
body.ap-light .apv .apv-tool:disabled { background-color: var(--apl-tint); border-color: var(--apl-line); color: var(--apl-muted); }

/* ---------- panel ---------- */
body.ap-light .apv-panel { background: #fff; border: 1px solid var(--apl-line); border-radius: var(--apl-radius); box-shadow: var(--apl-shadow-sm); }
body.ap-light .apv-label { font-family: var(--apl-font); letter-spacing: 0.12em; color: var(--apl-muted); }
body.ap-light .apv-help { color: var(--apl-muted); }
body.ap-light .apv-privacy { align-items: center; color: var(--apl-text); }
body.ap-light .apv-privacy .apv-i { width: 36px; height: 36px; padding: 9px; margin: 0; border-radius: 10px; background: var(--apl-blue-50); color: var(--apl-blue); }

body.ap-light .apv-sample { border: 1px solid var(--apl-line); background: #fff; color: var(--apl-ink); box-shadow: var(--apl-shadow-sm); transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s var(--apl-ease); }
body.ap-light .apv-sample span { font-family: var(--apl-font); }
@media (hover: hover) { body.ap-light .apv-sample:hover { border-color: var(--apl-blue); box-shadow: var(--apl-shadow-md); } }
body.ap-light .apv-sample:focus-visible { outline: 3px solid var(--apl-blue); outline-offset: 2px; border-color: var(--apl-blue); }
body.ap-light .apv-sample.is-loading { border-color: var(--apl-blue); box-shadow: inset 0 0 0 1px var(--apl-blue); }
body.ap-light .apv-sample.is-loading::after { border-color: var(--apl-blue-100); border-top-color: var(--apl-blue); background: rgba(255, 255, 255, 0.92); box-shadow: 0 2px 8px rgba(16, 24, 40, 0.2); }

body.ap-light .apv-link { color: var(--apl-blue); font-family: var(--apl-font); text-decoration-color: currentColor; text-decoration-thickness: 1px; }
body.ap-light .apv-link:disabled { color: var(--apl-muted); }
@media (hover: hover) { body.ap-light .apv-link:not(:disabled):hover { color: var(--apl-blue-strong); text-decoration-thickness: 2px; } }
body.ap-light .apv-link:focus-visible { outline: 3px solid var(--apl-blue); outline-offset: 2px; }

/* segmented controls: a pale track, the chosen part raised in white (Remove, a destructive mode, turns red) */
body.ap-light .apv-seg { background: var(--apl-tint-2); border: 1px solid var(--apl-line); border-radius: 999px; }
body.ap-light .apv-seg button { border-radius: 999px; color: var(--apl-text); font-family: var(--apl-font); font-weight: 600; transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease; }
body.ap-light .apv-seg button[aria-pressed="true"] { background: #fff; color: var(--apl-ink); box-shadow: 0 1px 3px rgba(16, 24, 40, 0.16); }
body.ap-light .apv-mode button[data-mode="remove"][aria-pressed="true"] { background: var(--apl-red); color: #fff; }
@media (hover: hover) {
  body.ap-light .apv-seg button[aria-pressed="false"]:hover { color: var(--apl-blue-strong); background: rgba(255, 255, 255, 0.65); }
  body.ap-light .apv-seg button[aria-pressed="true"]:hover { box-shadow: 0 2px 8px rgba(16, 24, 40, 0.2); }
}
body.ap-light .apv-seg button:focus-visible { outline: 3px solid var(--apl-blue); outline-offset: 2px; }
body.ap-light .apv-ptype-l { color: var(--apl-muted); }
/* brush: mode and size share the row evenly, so S, M and L stay 44 px wide; in the narrowest panels they stack */
body.ap-light .apv-brush { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@container apvp (max-width: 309px) { body.ap-light .apv-brush { grid-template-columns: minmax(0, 1fr); } }

/* surface chips, colour families and swatches: white, chosen = #eaf2ff with a 2 px blue ring (1 px border + 1 px inset) */
body.ap-light .apv-chip, body.ap-light .apv-families button, body.ap-light .apv-swatch {
  border: 1px solid var(--apl-line-strong); background: #fff; color: var(--apl-text); font-family: var(--apl-font);
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
body.ap-light .apv-chip { font-weight: 600; }
body.ap-light .apv-swatch { border-color: var(--apl-line); }
body.ap-light .apv-families button { border-radius: 999px; font-weight: 600; }
body.ap-light .apv-chip[aria-pressed="true"], body.ap-light .apv-families button[aria-pressed="true"], body.ap-light .apv-swatch[aria-pressed="true"] {
  background: var(--apl-blue-50); border-color: var(--apl-blue); box-shadow: inset 0 0 0 1px var(--apl-blue); color: var(--apl-ink);
}
@media (hover: hover) {
  body.ap-light .apv-chip:not([aria-pressed="true"]):hover, body.ap-light .apv-families button[aria-pressed="false"]:hover, body.ap-light .apv-swatch:not([aria-pressed="true"]):hover { background: var(--apl-tint); border-color: var(--apl-blue); color: var(--apl-ink); }
}
@media (hover: hover) {
  body.ap-light .apv-chip[aria-pressed="true"]:hover, body.ap-light .apv-families button[aria-pressed="true"]:hover, body.ap-light .apv-swatch[aria-pressed="true"]:hover { border-color: var(--apl-blue-strong); box-shadow: inset 0 0 0 1px var(--apl-blue-strong), 0 2px 8px rgba(10, 102, 242, 0.18); }
}
body.ap-light .apv-chip:focus-visible, body.ap-light .apv-families button:focus-visible, body.ap-light .apv-swatch:focus-visible { outline: 3px solid var(--apl-blue); outline-offset: 2px; }
body.ap-light .apv-chip i, body.ap-light .apv-chip[aria-pressed="true"] i { box-shadow: inset 0 0 0 1px rgba(16, 24, 40, 0.22); }
body.ap-light .apv-swatch i { box-shadow: inset 0 0 0 1px rgba(16, 24, 40, 0.14); }
/* the "has a selection" mark: a blue check-circle drawn in CSS (the glyph is missing from some system fonts); the label stays */
body.ap-light .apv-tick, body.ap-light .apv-chip[aria-pressed="true"] .apv-tick {
  width: 18px; height: 18px; font-size: 0; color: transparent; background: var(--apl-blue-strong); -webkit-mask: var(--apl-check) center / contain no-repeat; mask: var(--apl-check) center / contain no-repeat;
}
body.ap-light .apv-current { color: var(--apl-muted); }
body.ap-light .apv-current b { color: var(--apl-ink); }
body.ap-light .apv-current i { box-shadow: 0 0 0 1px rgba(16, 24, 40, 0.25); }
body.ap-light .apv-custom { border: 2px dashed var(--apl-line-strong); color: var(--apl-ink); font-family: var(--apl-font); font-weight: 600; transition: border-color 0.2s ease, background-color 0.2s ease; }
@media (hover: hover) { body.ap-light .apv-custom:hover { border-color: var(--apl-blue); background: var(--apl-tint); } }
body.ap-light .apv-custom:focus-within { outline: 3px solid var(--apl-blue); outline-offset: 2px; }

/* the hint and the toast are paragraphs: ".ap-bold .apv p" above and ap-bold's "#et-boc .et-l p:last-of-type" zero their
   bottom padding, so it is restated here (with the #et-boc twin) */
body.ap-light #et-boc .et-l .apv .apv-hint, body.ap-light .apv .apv-hint { padding: 0.7rem 0.9rem; }
body.ap-light .apv .apv-hint { background: var(--apl-blue-50); border-left-color: var(--apl-blue); color: var(--apl-ink); }
body.ap-light .apv.is-removing .apv-hint { background: #fdf0f2; border-left-color: var(--apl-red); }
body.ap-light .apv-size { color: var(--apl-muted); }

/* ---------- dialog (render consent, progress, results): navy scrim, white card, an icon square by the title ---------- */
body.ap-light .apv-modal { background: rgba(11, 26, 51, 0.55); font-family: var(--apl-font); }
body.ap-light .apv-modal-card { background: #fff; color: var(--apl-text); border: 0; border-radius: var(--apl-radius); box-shadow: 0 24px 60px rgba(16, 24, 40, 0.28); }
body.ap-light .apv-modal .apv-m-title { display: flex; align-items: center; gap: 0.8rem; font-family: var(--apl-font); color: var(--apl-ink); }
body.ap-light .apv-modal .apv-m-title::before {
  content: ""; flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--apl-blue-50) center / 24px no-repeat
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a66f2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 3l1.8 4.7L18.5 9.5l-4.7 1.8L12 16l-1.8-4.7L5.5 9.5l4.7-1.8z'/><path d='M19 15l.8 2.2L22 18l-2.2.8L19 21l-.8-2.2L16 18l2.2-.8z'/></svg>");
}
body.ap-light .apv-modal .apv-m-body p { color: var(--apl-text); }
body.ap-light .apv-modal .apv-m-body strong { color: var(--apl-ink); }
body.ap-light .apv-modal .apv-m-body a { color: var(--apl-blue); text-decoration-color: currentColor; padding: 0.66rem 0; }
@media (hover: hover) { body.ap-light .apv-modal .apv-m-body a:hover { color: var(--apl-blue-strong); text-decoration-thickness: 2px; } }
body.ap-light .apv-modal a:focus-visible, body.ap-light .apv-modal button:focus-visible { outline: 3px solid var(--apl-blue); outline-offset: 3px; }
body.ap-light .apv-m-elapsed { color: var(--apl-muted); }
body.ap-light .apv-m-status { color: var(--apl-ink); }
body.ap-light .apv-modal .apv-bar { background: var(--apl-tint-2); }
body.ap-light .apv-modal .apv-bar span { background: var(--apl-blue); }
@media (max-height: 520px) {
  body.ap-light .apv-modal .apv-m-title::before { width: 36px; height: 36px; background-size: 20px; }
  body.ap-light .apv-modal .apv-m-body a { padding: 0.75rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  body.ap-light .apv-bar.is-indeterminate span, body.ap-light .apv-modal .apv-bar span { background: repeating-linear-gradient(-45deg, var(--apl-blue) 0 10px, transparent 10px 20px); }
  body.ap-light .apv-sample.is-loading::after { border-color: var(--apl-blue); border-right-color: var(--apl-blue-100); }
  body.ap-light .apv .apv-tool, body.ap-light .apv-chip, body.ap-light .apv-swatch, body.ap-light .apv-families button, body.ap-light .apv-seg button, body.ap-light .apv .ap-btn-like, body.ap-light .apv-sample, body.ap-light .apv-custom, body.ap-light .apv-modal .apv-tool, body.ap-light .apv-modal .ap-btn-like { transition: none !important; }
}
