/* W25: step 6 "Every finish" viewer with close-up tiles, loupe, click zoom, pinch and double-tap. */
.fz { display: grid; gap: 12px; min-width: 0; }
.fz__stage { position: relative; width: 100%; aspect-ratio: 16 / 10; max-height: 50svh; overflow: hidden; border-radius: 12px; background: #07080a; box-shadow: 0 0 0 1px rgba(240,217,166,.22), 0 24px 50px -30px rgba(0,0,0,.9); cursor: zoom-in; touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; outline: none; }
.fz__stage:focus-visible { box-shadow: 0 0 0 2px var(--brass-2, #f0d9a6), 0 24px 50px -30px rgba(0,0,0,.9); }
.fz.is-zoomed .fz__stage { cursor: zoom-out; touch-action: none; }
.fz__zoom { position: absolute; inset: 0; transform-origin: 0 0; will-change: auto; }
/* A compositor layer only while moving, so a resting zoom is redrawn sharp at its final scale */
.fz__zoom.is-moving, .fz__zoom.is-anim { will-change: transform; }
.fz__zoom.is-anim { transition: transform .25s cubic-bezier(.2,.7,.2,1); }
.fz__img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 40%; filter: var(--f, none); pointer-events: none; -webkit-user-drag: none; }
.fz__img--top { opacity: 0; }
.fz__img--top.is-fade { opacity: 1; transition: opacity .25s ease; }
.fz__loupe { position: absolute; left: 0; top: 0; width: 180px; height: 180px; margin: -90px 0 0 -90px; border-radius: 50%; pointer-events: none; opacity: 0; transition: opacity .15s; box-shadow: 0 0 0 3px #b8955a, 0 0 0 5px rgba(240,217,166,.55), 0 0 0 6px rgba(0,0,0,.6), 0 14px 34px rgba(0,0,0,.7); overflow: hidden; z-index: 2; }
.fz__loupe i { position: absolute; inset: 0; background-repeat: no-repeat; filter: var(--f, none); }
.fz.is-loupe .fz__loupe { opacity: 1; }
.fz__hint { position: absolute; right: 10px; bottom: 10px; z-index: 1; padding: 6px 10px; border-radius: 999px; background: rgba(8,9,11,.78); border: 1px solid var(--lx-hair, rgba(255,255,255,.1)); font: 500 13px/1.2 var(--f-mono); letter-spacing: .04em; color: var(--brass-2, #f0d9a6); pointer-events: none; transition: opacity .2s; }
.fz.is-zoomed .fz__hint, .fz.is-loupe .fz__hint, .fz.hint-done .fz__hint { opacity: 0; }
.fz__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.fz__name { margin: 0; flex: 1 1 220px; min-width: 0; display: grid; gap: 2px; }
.fz__name b { font: 600 17px/1.25 var(--f-body); color: var(--ink, #f4efe6); }
.fz__name span { font-size: 14px; line-height: 1.35; color: var(--muted); }
.fz__name .fz__nb { white-space: nowrap; }
.fz__name em { font-style: normal; display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--lx-hair, rgba(255,255,255,.12)); font: 500 13px/1.3 var(--f-mono); letter-spacing: .05em; color: var(--brass-2, #f0d9a6); vertical-align: 1px; }
.fz__btns { display: flex; gap: 8px; }
.fz__btn { min-height: 44px; min-width: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid rgba(240,217,166,.28); background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,0)); color: var(--brass-2, #f0d9a6); font: 600 14px/1 var(--f-body); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.fz__btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.fz__btn[aria-pressed="true"] { border-color: var(--brass, #d1ad6a); background: rgba(209,173,106,.14); }
.fz__btn--reset { color: var(--ink-2, #cfc8bb); border-color: rgba(255,255,255,.12); }
.fz__btn:disabled { opacity: .45; cursor: default; }
.fz__btn:focus-visible, .fz__tile:focus-visible { outline: 2px solid var(--brass-2, #f0d9a6); outline-offset: 2px; }
.fz__tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; }
.fz__tile { min-width: 0; margin: 0; padding: 4px 4px 0; border-radius: 10px; border: 1px solid rgba(255,255,255,.08); background: #0a0b0d; cursor: pointer; display: grid; gap: 2px; color: var(--brass-2, #f0d9a6); transition: border-color .2s, box-shadow .2s; }
.fz__crop { display: block; position: relative; overflow: hidden; border-radius: 7px; aspect-ratio: 4 / 3; }
.fz__crop img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 42% 26%; transform: scale(4); transform-origin: 42% 26%; filter: var(--f, none); pointer-events: none; }
.fz__tile > span:last-child { font: 500 13px/1.2 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; text-align: center; padding: 5px 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fz__tile[aria-pressed="true"] { border-color: var(--brass, #d1ad6a); box-shadow: 0 0 0 1px var(--brass, #d1ad6a), 0 0 22px -10px rgba(209,173,106,.9); }
.fz__tile:hover { border-color: rgba(240,217,166,.4); }
.act--show [data-md-pane="color"] .md__note { margin-top: 10px; }
/* Desktop: while Every finish is open, the four operations sit in one row on top so the viewer gets the full pane width */
@media (min-width: 900px) {
  .act.act--show [data-step-panel="6"] .md:has(> .md__view [data-md-pane="color"].is-on) { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .act.act--show [data-step-panel="6"] .md:has(> .md__view [data-md-pane="color"].is-on) .md__ops { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .act.act--show [data-step-panel="6"] .md:has(> .md__view [data-md-pane="color"].is-on) .md__ops button { padding: 8px 10px; align-content: center; }
  .act.act--show [data-step-panel="6"] .md:has(> .md__view [data-md-pane="color"].is-on) .md__ops span { display: none; }
  .fz__stage { max-height: max(170px, calc(100svh - 485px)); }
}
@media (max-width: 899px) {
  .fz__tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fz__stage { max-height: none; }
}
@media (max-width: 699px) {
  .fz__hint { top: 8px; right: 8px; bottom: auto; padding: 4px 8px; font: 500 13px/1.2 var(--f-body); letter-spacing: 0; }
}
/* Phones: while Every finish is open, the media card spans the full content width; the step rail steps aside while the card is on screen */
@media (max-width: 699px) {
  html.pp .act.pp-flow [data-step-panel="6"] .md:has(> .md__view [data-md-pane="color"].is-on) { margin-left: calc(-12px - var(--pp-rail, 68px)); margin-right: -8px; }
  html.pp .act.pp-flow :is(.act__stage, [data-step-panel="6"], [data-step-panel="6"] .step__show, [data-step-panel="6"] .act__panel):has([data-md-pane="color"].is-on) { overflow: visible; }
  html.pp .act.pp-flow > .act__scene > .act__bar { transition: opacity .2s, visibility 0s linear 0s; }
  html.pp .act.pp-flow.fz-wide > .act__scene > .act__bar { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s, visibility 0s linear .2s; }
}
@media (max-width: 389px) {
  .fz__tile { padding: 3px 3px 0; }
  .fz__tile > span:last-child { font: 500 13px/1.15 var(--f-body); letter-spacing: .01em; text-transform: none; white-space: normal; overflow: visible; padding: 4px 0 5px; }
  .fz__btn { padding: 0 11px; }
  .fz__name b { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .fz__zoom.is-anim, .fz__img--top.is-fade, .fz__loupe, .fz__hint, .fz__tile { transition: none; }
}

/* W25 final check: in WebKit a filter on a 4x-scaled image rasterizes at 1x (blocky tiles). Filter the crop box instead. */
.fz__crop { filter: var(--f, none); }
.fz__crop img { filter: none; }
