/* Crop thumbnails A+1 + magnifier (LOCKED 2026-10-15 00:10 CT; design explore/2026-10-14-crop-thumbs rev 3). All text >= 18px. */
/* use the full canvas-card width (opt-nested is indented 34px under the checkbox) */
.ct-root { margin: 4px -10px 8px -44px; }
.ct-root[hidden] { display: none; }
.ct-loading { font-size: 18px; color: var(--soft); text-align: center; padding: 12px 0; }
.ct-intro { font-size: 1.25rem; margin: 6px 0 4px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ct-intro-sub { font-size: 18px; line-height: 1.4; color: var(--soft); margin: 0 0 4px; }
.ct-badge { display: inline-block; padding: 1px 7px; border: 1.5px dashed var(--ochre); border-radius: 6px; font-size: 18px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: #8A5E2E; }
.ct-mode { display: flex; margin: 10px 0 14px; background: rgba(43,42,40,.07); border-radius: 12px; padding: 4px; }
.ct-mode button { flex: 1 1 auto; min-height: 52px; border: 0; background: transparent; font: inherit; font-size: 18px; font-weight: 600; padding: 0 6px;
  white-space: nowrap; color: var(--soft); border-radius: 9px; cursor: pointer; }
.ct-mode button.on { background: #FFFCFA; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.ct-pv { margin: 0 0 14px; }
.ct-pv-box { position: relative; margin: 0 auto; overflow: hidden; border-radius: 4px; background: #e5ddd2; box-shadow: 0 6px 18px rgba(43,42,40,.18); }
.ct-pv-box img { position: absolute; max-width: none; display: block; }
.ct-pv-band { position: absolute; background: rgba(243,238,230,.55); pointer-events: none; }
.ct-pv-face { position: absolute; outline: 2px dashed #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.35); pointer-events: none; }
.ct-pv-cap { font-size: 18px; line-height: 1.4; color: var(--soft); margin: 10px 2px 0; }
.ct-pv-cap .dash { display: inline-block; width: 24px; border-top: 3px dashed var(--ink); vertical-align: middle; margin-right: 6px; }
.ct-pv-cap .band { display: inline-block; width: 20px; height: 12px; background: #e9e1d4; border: 1px solid var(--line); vertical-align: -1px; margin: 0 6px 0 2px; }
.ct-cards { display: flex; flex-direction: column; gap: 12px; }
.ct-card { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; min-height: 96px; padding: 12px 52px 12px 12px;
  background: #fff; border: 1.5px solid var(--line); border-radius: 14px; text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
.ct-card[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); background: #faf7f2; }
.ct-card:focus-visible { outline: 3px solid var(--ochre); outline-offset: 2px; }
.ct-thumb { position: relative; flex-shrink: 0; overflow: hidden; border-radius: 4px; background: #e5ddd2; display: block; }
.ct-thumb img { position: absolute; max-width: none; display: block; }
.ct-text { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ct-tag { align-self: flex-start; font-size: 18px; font-weight: 700; letter-spacing: .02em; padding: 3px 10px; border-radius: 999px; background: var(--ink); color: var(--cta-text); }
.ct-tag.yours { background: var(--ochre); color: #fff; }
.ct-label { font-size: 19px; font-weight: 700; line-height: 1.25; }
.ct-ex { font-size: 18px; line-height: 1.3; color: var(--soft); }
.ct-check { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid var(--line); background: #fff; display: grid; place-items: center; }
.ct-check svg { width: 18px; height: 18px; opacity: 0; }
.ct-card[aria-pressed="true"] .ct-check { background: var(--ink); border-color: var(--ink); }
.ct-card[aria-pressed="true"] .ct-check svg { opacity: 1; }
.ct-sel-wrap { position: relative; }
.ct-edit { position: absolute; right: 4px; bottom: 0; min-width: 48px; min-height: 48px; padding: 0 8px; background: none; border: 0; font: inherit;
  font-size: 18px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; color: var(--ink); z-index: 2; cursor: pointer; }
.ct-note { font-size: 18px; line-height: 1.4; color: var(--soft); margin: 14px 2px 0; }
.ct-actions { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 16px 0 6px; }
.ct-actions .btn-primary { width: 100%; max-width: 280px; }
.ct-outline { display: inline-flex; align-items: center; justify-content: center; width: 100%; max-width: 280px; min-height: 52px; padding: 12px 20px;
  background: transparent; color: var(--ink); border: 1.5px solid var(--ink); border-radius: 14px; font: inherit; font-size: 18px; font-weight: 600; cursor: pointer; }
.ct-mag { position: absolute; z-index: 3; width: 48px; height: 48px; min-width: 48px; min-height: 48px; border-radius: 50%; border: 1.5px solid rgba(43,42,40,.18);
  background: #F7F1E7; color: var(--ink); display: grid; place-items: center; box-shadow: 0 3px 10px rgba(43,42,40,.28); padding: 0; cursor: zoom-in; }
.ct-mag svg { width: 24px; height: 24px; }
.ct-sel-wrap > .ct-mag { left: 6px; bottom: 6px; }
.ct-pv-box > .ct-mag { right: 8px; bottom: 8px; }
/* manual editor */
/* Vince 2026-10-26 (t266u, t272u): one sideways-scrolling row of ratios */
.ct-shapes { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 8px; margin: 2px -16px 12px 0; padding: 2px 16px 6px 2px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.ct-shapes::-webkit-scrollbar { display: none; }
.ct-shapes button { flex: 0 0 auto; min-width: 92px; padding: 4px 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; scroll-snap-align: start; font-size: 20px !important; line-height: 1.15; }
.ct-shapes button .ct-canvas-only { font-size: 16px; font-weight: 600; color: var(--soft); white-space: nowrap; }
.ct-shapes button { min-height: 52px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font: inherit; font-size: 18px; font-weight: 600; color: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 6px 2px; line-height: 1.1; cursor: pointer; }
.ct-shapes button.on { border-color: var(--ink); background: rgba(43,42,40,0.06); box-shadow: inset 0 0 0 1.5px var(--ink); }
.ct-shapes small { font-size: 18px; color: var(--soft); font-weight: 600; }
.ct-stagewrap { background: #1f1d1b; border-radius: 10px; padding: 10px; }
.ct-stage { position: relative; width: 100%; margin: 0 auto; overflow: hidden; touch-action: none; user-select: none; }
.ct-stage img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.ct-frame { position: absolute; outline: 2px solid #fff; box-shadow: 0 0 0 2000px rgba(20,18,16,0.62); cursor: grab; }
/* punch 2026-10-19 #7: yellow dotted head line + its legend removed */
.ct-headline, .ct-legend { display: none !important; }
.ct-legend { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; margin: 8px 2px 4px; }
.ct-warn { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 0; padding: 12px 14px; border-radius: 12px; background: #FBF1E2;
  border: 1.5px solid #E7C99A; font-size: 18px; line-height: 1.4; color: #5a3d14; }
.ct-warn[hidden] { display: none; }
.ct-warn .i { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: #B8834A; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 18px; }
.ct-hint { font-size: 18px; line-height: 1.4; color: var(--soft); margin: 10px 2px 0; }
.ct-nudge { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.ct-nudge button, .ct-zoombtns button { min-height: 60px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font: inherit; font-size: 22px; font-weight: 600; color: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; cursor: pointer; }
.ct-nudge button small { font-size: 18px; font-weight: 600; margin-top: 4px; }
.ct-zoomlabels { display: flex; justify-content: space-between; font-size: 18px; color: var(--soft); padding: 14px 2px 2px; }
.ct-slider { display: block; width: 100%; height: 44px; accent-color: #2b2a28; }
.ct-zoombtns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.ct-zoombtns button { font-size: 18px; flex-direction: row; gap: 8px; min-height: 58px; }
.ct-zoombtns button b { font-size: 28px; font-weight: 600; }
/* committed crop above the filtered sizes */
.ct-szhead { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; margin: 4px 0 12px; flex-wrap: wrap; }
.ct-szhead .ct-link { flex-basis: 100%; text-align: left; }
@media (min-width: 380px) { .ct-szhead { flex-wrap: nowrap; } .ct-szhead .ct-link { flex-basis: auto; } }
.ct-szhead .ct-thumb { border-radius: 3px; }
.ct-szhead .t { flex: 1; min-width: 0; }
.ct-szhead .t strong { display: block; font-size: 19px; }
.ct-szhead .t span { display: block; font-size: 18px; color: var(--soft); }
.ct-link { min-height: 48px; min-width: 48px; padding: 0 6px; background: none; border: 0; font: inherit; font-size: 18px; font-weight: 600; text-decoration: underline;
  text-underline-offset: 3px; color: var(--ink); flex-shrink: 0; cursor: pointer; }
.ct-szmeta { font-size: 18px; color: var(--soft); margin: 0 0 8px; line-height: 1.4; }
/* filtered size rows: 18px while the crop flow is on */
#opt-canvas-card.ct-on .canvas-size-list .canvas-size-row > label { font-size: 18px; }
#opt-canvas-card.ct-on .canvas-size-row[data-ct-hidden] { display: none !important; }
/* zoom overlay (inside #s-get, covers the screen) */
.ct-zoom { position: absolute; inset: 0; z-index: 60; background: #3A3228; display: flex; flex-direction: column; }
.ct-zoom[hidden] { display: none !important; }
.ct-zoom-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; color: #F3EEE6; }
.ct-zoom-top h2 { font-size: 20px; margin: 0; font-weight: 700; color: #F3EEE6; }
.ct-zoom-close { min-height: 52px; min-width: 112px; padding: 0 22px; border-radius: 14px; border: 0; background: #F3EEE6; color: var(--ink); font: inherit; font-size: 20px; font-weight: 700; cursor: pointer; }
.ct-zoom-stage { flex: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; touch-action: none; }
.ct-zoom-crop { position: relative; overflow: hidden; background: #e5ddd2; box-shadow: 0 8px 28px rgba(0,0,0,.35); transform-origin: center; }
.ct-zoom-crop img { position: absolute; max-width: none; display: block; }
.ct-zoom-hint { font-size: 18px; color: #E9DFCF; text-align: center; margin: 0; padding: 10px 14px 18px; }
/* reused v5 part on the crop screen at 18px (Vince 2026-10-14 11:24: "all new labels + reused v5 parts >=18px"); wraps instead of ellipsis */
#s-get .get-portrait-bar .meta strong { font-size: 18px; line-height: 1.3; white-space: normal; overflow: visible; }
#s-get .get-portrait-bar .meta span { font-size: 18px; line-height: 1.3; white-space: normal; overflow: visible; }
/* mock A+1: the bag CTA is hidden while a crop is being chosen (it shows again with the sizes) */
#s-get.ct-choosing .cta-slot { display: none; }
/* the canvas card styles its inputs as checkboxes; give the zoom slider its own full-width track */
#crop-thumbs input.ct-slider { display: block; width: 100%; height: 44px; margin: 0; padding: 0; flex: none; -webkit-appearance: auto; appearance: auto; accent-color: #2b2a28; }
.ct-tag { white-space: nowrap; }
@media (max-width: 359px) { .ct-card { gap: 12px; padding-right: 46px; } .ct-check { right: 10px; } .ct-tag { padding: 3px 8px; } }
/* sticky portrait bar: mask the 8px screen-body top padding so scrolled rows don't peek above the bar (pass-sheet eye check 2026-10-15) */
#s-get .get-portrait-bar::before{content:"";position:absolute;left:-40px;right:-40px;bottom:calc(100% + 1px);height:14px;background:var(--bg);pointer-events:none}
#s-get .get-portrait-bar{z-index:20}
/* Vince 2026-10-26 2:33 PM (t274u): helper words under the Crop for me / Crop It Myself toggle */
.ct-help { font-size: 18px; line-height: 1.4; color: var(--ink); margin: -2px 2px 12px; }
/* Vince 2026-10-26 2:34 PM (t275u): extra-long shape note under the crop box */
.ct-pano { font-size: 18px; line-height: 1.4; color: var(--ink); margin: 10px 2px 2px; padding: 10px 12px; border-radius: 12px; background: rgba(43,42,40,0.06); }
/* Watermark + Preview note (Vince 2026-10-14 14:34/15:13 mock explore/2026-10-14-watermark-wallpaper; restored 2026-10-27 2:02 PM "Build it to match the mock").
   Faint tiled HP submark, 10%, tile = max(96px, 34% of the picture width), on the large preview and the zoom only; thumbnails stay clean.
   MOCK-LEVEL protection only: real protection = server-side burn-in. */
.ct-wm { position: absolute; inset: 0; pointer-events: none; z-index: 2; opacity: 0.10;
  background: url(img/hp-tile-cream.png) repeat; background-size: max(96px, 34%) auto; background-position: 7% 11%; } /* mock: tile = max(96px, 34% of width) */
.ct-zoom-clean { font-size: 18px; line-height: 1.4; color: #F3EEE6; text-align: center; margin: 12px 24px 0; font-weight: 600; }
.ct-zoom-clean span { display: block; }
.ct-zoom-clean .zc1 { font-weight: 700; font-size: 20px; }
.ct-zoom-clean .zc2 { font-weight: 400; }
/* +6px for phone cases on the zoom overlay (Vince 2026-10-14 15:13; mock case6) */
.ct-zoom-top { padding: 18px 20px; }
.ct-zoom-hint { padding: 16px 20px 24px; }

/* QL-18 (Vince 2026-10-29 8:59 AM via Loom): Proof magnifier zoom = truly full screen, edge to edge.
   Only "Preview" + "Pinch to zoom" sit on the image (soft pills); title, Preview note and old hint are hidden here.
   Close stays a 48px circle in the safe-area corner. The Get crop zoom (no .ct-fs) is unchanged. */
.ct-zoom.ct-fs { background: #000; }
.ct-zoom.ct-fs .ct-zoom-stage { position: absolute; inset: 0; }
.ct-zoom.ct-fs .ct-zoom-crop { box-shadow: none; }
.ct-zoom.ct-fs .ct-zoom-top h2, .ct-zoom.ct-fs .ct-zoom-clean, .ct-zoom.ct-fs .ct-zoom-hint { display: none; }
.ct-zoom.ct-fs .ct-zoom-top { position: absolute; top: 0; right: 0; z-index: 5; padding: calc(env(safe-area-inset-top, 0px) + 12px) calc(env(safe-area-inset-right, 0px) + 12px) 0 0; pointer-events: none; }
.ct-zoom.ct-fs .ct-zoom-close { pointer-events: auto; min-width: 48px; width: 48px; height: 48px; min-height: 48px; padding: 0; border-radius: 50%;
  background: rgba(20,18,16,.55); color: #fff; font-size: 0; position: relative; box-shadow: 0 0 0 1.5px rgba(255,255,255,.5); }
.ct-zoom.ct-fs .ct-zoom-close::before { content: "\2715"; font-size: 22px; line-height: 48px; }
.ct-fs-pill { display: none; }
.ct-zoom.ct-fs .ct-fs-pill { display: block; position: absolute; z-index: 4; pointer-events: none; font-size: 18px; font-weight: 600; line-height: 1.2; color: #fff;
  background: rgba(20,18,16,.5); padding: 9px 16px; border-radius: 999px; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.ct-zoom.ct-fs .ct-fs-preview { top: calc(env(safe-area-inset-top, 0px) + 18px); left: calc(env(safe-area-inset-left, 0px) + 14px); }
.ct-zoom.ct-fs .ct-fs-pinch { bottom: calc(env(safe-area-inset-bottom, 0px) + 22px); left: 50%; transform: translateX(-50%); white-space: nowrap; }
.ct-zoom-crop { touch-action: none; user-select: none; -webkit-user-select: none; }
.ct-zoom-crop img { -webkit-user-drag: none; user-select: none; }
.ct-zoom.ct-fs .ct-zoom-crop { cursor: grab; }
/* QL-18 A: the full-screen zoom covers the whole viewport, also in landscape (the app column is 390 max) */
.ct-zoom.ct-fs { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; z-index: 1000; }
/* flow v3b (Oct 29): Crop for me = locked ratio strip + the cropped image only; dark Continue on both modes */
.ct-shapes.ct-locked button[disabled] { opacity: .38; cursor: default; }
.ct-autoimg { position: relative; display: flex; justify-content: center; margin: 4px 0 8px; background: #2b2a28; border-radius: 12px; padding: 10px 0; }
.ct-autoimg .ct-thumb { position: relative; display: block; overflow: hidden; border-radius: 4px; }
.ct-actions .ct-continue { background: #2b2a28; border-color: #2b2a28; color: #fff; }
/* 2e (Oct 29 phone walk): magnifier sits in the corner, never over the picture's centre; the crop page clears the bottom nav */
.ct-autoimg > .ct-mag { right: 8px; bottom: 8px; top: auto; left: auto; }
#s-cropstep .screen-body { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); scroll-padding-bottom: 96px; }
