/* The site's own rules for the V7 try-on page (the design's CSS is board-tryon-v7.css, generated; this file is not).
   Every selector carries the board root exactly as board-scope --strong writes it, so these rules out-weigh the board's.
   Phone width: the frame is the screen. In the iPhone and Android apps (:root[data-inapp]) it keeps the 94 px foot the
   native tab bar is drawn over (mobile/src/web/frame.ts BAR_H). A computer (>= 601 px, .ty7-desk) is at the end of this file. */
/* The page's frame holds the board and, after it, the app's tab bar (outside the board root, whose scoped reset would strip
   the tab bar's own CSS); the bar is pinned to this frame's foot (board-frame.css .bd-inframe). */
.bd-tryon-v7-frame { position: relative; }
@media (max-width: 600px) {
  .bd-tryon-v7:not(#bd):not(#bd) .phone { width: 100%; height: 100dvh; --ph: 100dvh; }
  :root[data-inapp] .bd-tryon-v7:not(#bd):not(#bd) .phone { height: calc(100dvh - 94px); --ph: calc(100dvh - 94px); }
}
/* Design defects not copied (design/boards/tryon-v7/slots.md): two tap targets under 44 px, fixed so the layout does not move. */
.bd-tryon-v7:not(#bd):not(#bd) .pv-pics button { width: 44px; }
.bd-tryon-v7:not(#bd):not(#bd) .sim a.all { display: inline-flex; align-items: center; min-height: 44px; margin-block: -14px; }
/* The design's tab bar sits at z 25, under the look card's scrim (27) and the card (28); the in-frame tab bar is raised to 30
   for the other boards (board-frame.css), so on this page it goes back to the design's 25. */
.bd-tryon-v7-frame > .bd-tabbar.bd-inframe .a-tabs { z-index: 25; }
/* A control the Tab key reaches is brought into view clear of the tab bar over the scroll's foot (controller ruling
   2026-11-13, test-rebuild-focus-bars): the scroll keeps the bar's height free when it scrolls to the focus. Not drawn. */
.bd-tryon-v7:not(#bd):not(#bd) .scroll { scroll-padding-bottom: 104px; }
/* Her photo step for an older account without the try-on consent (the design draws only the signed-up case): the sign-up
   sheet's own tick sits above the button, which is dimmed as the sheet's #create is until it is ticked. */
.bd-tryon-v7:not(#bd):not(#bd) #photoStep .tick { margin: 0 0 14px; }
.bd-tryon-v7:not(#bd):not(#bd) #photoStep .btn[disabled] { opacity: .4; cursor: not-allowed; }

/* ---- The sign-up sheet in V7's look (Task 8): v7/index.html .sheet, .grab, .fld, .tick, #create, .alt, copied under .nysi--v7.
   The sheet is mounted by the sign-in host outside the board root, so it carries the board's tokens itself. The :not(#v7)
   pair out-weighs design-pages.css (.dz-sheet) and atelier.css (.nysi). Phone is the design; the centred card on a wide
   screen keeps the app's own placement. */
.sheet.nysi--v7:not(#v7):not(#v7) {
  --ink:#121317;--toile:#f1f0ee;--paper:#fafaf8;--gold:#c99a42;--gold-deep:#8a6020;--ash:#67635d;--muted:rgba(18,19,23,.6);--err:#7a2716;
  --sans:"bd Plus Jakarta Sans",system-ui,sans-serif;--sheet:cubic-bezier(.32,.72,0,1);
  background:#f4f1ea;color:var(--ink);font-family:var(--sans);border:0;border-radius:22px 22px 0 0;box-shadow:0 -10px 30px -12px rgba(18,19,23,.35);
  max-height:92%;padding-bottom:0;-webkit-font-smoothing:antialiased;animation:nyv7-up 460ms var(--sheet);
}
.sheet-layer.nysi--v7-layer { --scrim:rgba(18,19,23,.55); animation:nyv7-fade 300ms ease; }
@keyframes nyv7-up { from { transform:translateY(104%) } to { transform:none } }
@keyframes nyv7-fade { from { opacity:0 } to { opacity:1 } }
.sheet.nysi--v7:not(#v7):not(#v7) .grab { flex:none; width:auto; height:26px; margin:0; background:none; border-radius:0; display:grid; place-items:center; cursor:grab; touch-action:none; }
.sheet.nysi--v7:not(#v7):not(#v7) .grab i { width:38px; height:4px; border-radius:2px; background:var(--gold); opacity:.8; }
.sheet.nysi--v7:not(#v7):not(#v7) .sheet-head { align-items:flex-start; gap:10px; padding:0 20px; }
.sheet.nysi--v7:not(#v7):not(#v7) .sheet-head h2 { margin:0; font-family:var(--sans); font-style:normal; font-size:24px; line-height:1.1; font-weight:800; letter-spacing:-.03em; color:var(--ink); text-wrap:balance; }
.sheet.nysi--v7:not(#v7):not(#v7) .sheet-head .icon-btn { width:44px; height:44px; margin:-8px -10px 0 0; border:0; background:transparent; display:grid; place-items:center; flex:none; border-radius:22px; color:#121317; }
.sheet.nysi--v7:not(#v7):not(#v7) .sheet-head .icon-btn svg { width:18px; height:18px; stroke-width:2; }
.sheet.nysi--v7:not(#v7):not(#v7) .sheet-body { display:block; padding:0 0 34px; overflow-y:auto; }
.sheet.nysi--v7:not(#v7):not(#v7) .nysi { display:block; padding:0 20px; }
.sheet.nysi--v7 .lead { margin:10px 0 2px; font-size:13.5px; line-height:1.5; color:var(--ash); }
.sheet.nysi--v7 .fld { display:block; margin-top:13px; }
.sheet.nysi--v7 .fld .lab { display:block; margin:0 0 7px; font-size:11px; font-weight:600; letter-spacing:.16em; text-transform:uppercase; color:var(--muted); }
.sheet.nysi--v7 .fld input { width:100%; height:48px; padding:0 14px; border:1px solid rgba(18,19,23,.18); border-radius:12px; background:#fbfaf6; font:500 16px var(--sans); color:var(--ink); caret-color:var(--gold-deep); box-sizing:border-box; }
.sheet.nysi--v7 .fld input[aria-invalid=true] { border-color:#a3361f; }
.sheet.nysi--v7 .fld small { display:block; margin-top:6px; font-size:12px; color:var(--ash); }
.sheet.nysi--v7 .fld small.err { color:var(--err); }
.sheet.nysi--v7 .tick { display:flex; gap:12px; align-items:flex-start; margin-top:14px; font-size:11px; font-weight:500; letter-spacing:.12em; text-transform:uppercase; line-height:1.55; color:rgba(18,19,23,.72); }
.sheet.nysi--v7 .tick input { appearance:none; -webkit-appearance:none; flex:none; width:24px; height:24px; margin:0; border:1.5px solid var(--gold-deep); border-radius:4px; background:#fff; display:grid; place-items:center; cursor:pointer; }
.sheet.nysi--v7 .tick input:checked { background:var(--gold-deep); }
.sheet.nysi--v7 .tick input:checked::after { content:""; width:10px; height:6px; border-left:2px solid #fff; border-bottom:2px solid #fff; transform:rotate(-45deg) translate(1px,-1px); }
.sheet.nysi--v7 .tick a { color:var(--ink); font-weight:700; text-decoration:underline; text-underline-offset:2px; }
.sheet.nysi--v7 .btn { display:flex; align-items:center; justify-content:center; gap:8px; min-height:52px; width:100%; margin-top:18px; padding:0 18px; border:0; border-radius:26px; background:var(--ink); color:#fff; font:700 15px var(--sans); letter-spacing:.01em; cursor:pointer; }
.sheet.nysi--v7 .btn[disabled] { opacity:.4; cursor:not-allowed; }
.sheet.nysi--v7 .alt { margin:14px 0 0; font-size:13.5px; color:var(--ash); text-align:center; }
.sheet.nysi--v7 .alt button { display:inline-flex; align-items:center; min-height:44px; margin:-14px 0; padding:0 4px; border:0; background:none; font:700 13.5px var(--sans); color:var(--ink); cursor:pointer; }
/* the pixel check (Task 14): the sheet's own line heights (v7 sets none, so normal) and sizes, held against the app's
   inherited 1.6 line height and its input and button rules */
.sheet.nysi--v7:not(#v7):not(#v7) .fld, .sheet.nysi--v7:not(#v7):not(#v7) .alt { line-height:normal; }
.sheet.nysi--v7:not(#v7):not(#v7) .fld input { height:48px; font:500 16px var(--sans); }
.sheet.nysi--v7:not(#v7):not(#v7) .btn { min-height:52px; height:auto; gap:8px; padding:0 18px; font:700 15px var(--sans); letter-spacing:.01em; }
.sheet.nysi--v7:not(#v7):not(#v7) .btn[disabled] { opacity:.4; }
.sheet.nysi--v7:not(#v7):not(#v7) .alt button { padding:0; line-height:normal; text-decoration:underline; }
.sheet.nysi--v7 :is(button,a,input):focus-visible { outline:2px solid var(--gold); outline-offset:2px; }
.sheet.nysi--v7 :is(button,a) { transition:transform 240ms cubic-bezier(.16,1,.3,1); }
.sheet.nysi--v7 :is(button,a):active { transform:scale(.965); transition-duration:100ms; transition-timing-function:ease-out; }
.sheet.nysi--v7 button:active .ic-pop { transform:scale(1.2); }
.sheet.nysi--v7 .ic { flex:none; display:inline-block; vertical-align:middle; transition:transform 240ms cubic-bezier(.16,1,.3,1); }
@media (min-width:720px) {
  .sheet.nysi--v7:not(#v7):not(#v7) { max-height:86vh; border-radius:22px; }
  .sheet.nysi--v7:not(#v7):not(#v7) .grab { display:none; }
  .sheet.nysi--v7:not(#v7):not(#v7) .sheet-head { padding-top:20px; }
}
@media (prefers-reduced-motion:reduce) {
  .sheet.nysi--v7:not(#v7):not(#v7) { animation-duration:200ms; }
  .sheet-layer.nysi--v7-layer { animation-duration:200ms; }
}
/* "Your photos": each saved photo carries a quiet Delete (controller ruling 2026-11-19; the old studio's words): a 44 px tap
   target over the photo's corner, drawn as the design's own close glyph (.pv-x) in a small ink disc, so the row keeps v7's
   look. The Use button keeps v7's 52 x 64 tile. */
.bd-tryon-v7:not(#bd):not(#bd) .mine .ph{position:relative;display:inline-flex}
.bd-tryon-v7:not(#bd):not(#bd) .mine button.del{position:absolute;z-index:1;top:-12px;right:-10px;width:44px;height:44px;padding:0;border:0;border-radius:22px;background:transparent;overflow:visible;display:grid;place-items:center;color:#faf9f6}
.bd-tryon-v7:not(#bd):not(#bd) .mine button.del span{width:20px;height:20px;border-radius:10px;background:rgba(18,19,23,.6);display:grid;place-items:center;box-shadow:0 0 0 1px rgba(250,250,248,.8);transition:transform 160ms cubic-bezier(.16,1,.3,1)}
.bd-tryon-v7:not(#bd):not(#bd) .mine button.del svg{width:11px;height:11px;stroke-width:2.6}
.bd-tryon-v7:not(#bd):not(#bd) .mine button.del:active span{transform:scale(.88);transition-duration:120ms}
@media (prefers-reduced-motion: reduce){.bd-tryon-v7:not(#bd):not(#bd) .mine button.del span{transition-duration:1ms}}

/* ---- A computer (Task 12; the view adds .ty7-desk at >= 601 px): the same page inside the site's own top bar and footer
   (WebNav, WebFoot), on the Website boards' spacing (sections 56 px over 90 px, 48 px between columns, 5% sides). The page
   scrolls as a document; the phone's frame (its fixed height, the status-bar space over the step line, the scroll's own
   overflow) is not drawn. 601-1023 px: one 560 px column, the step line staying put under the top bar. 1024 px and wider:
   the stage (the model photo, the fitting, her picture with its colours) in a 560 px column on the left that stays in view,
   the step line and the rest in a 480 px column on the right; the hair grid, before a hair is chosen, spans both. The look
   card is a dialog in the middle of the screen. --ty7-top: the top bar's height (the view measures it). */
.bd-tryon-v7.ty7-desk:not(#bd):not(#bd) { display: block; padding: 56px 5% 90px; background: var(--toile); }
.bd-tryon-v7.ty7-desk:not(#bd):not(#bd) .phone { width: auto; height: auto; --ph: 844px; overflow: visible; background: transparent; }
.bd-tryon-v7.ty7-desk:not(#bd):not(#bd) .screen { position: relative; inset: auto; display: block; max-width: 560px; margin: 0 auto; background: transparent; }
.bd-tryon-v7.ty7-desk:not(#bd):not(#bd) .bar { position: sticky; top: var(--ty7-top, 84px); height: auto; padding: 6px 0; margin: 0 -8px; }
.bd-tryon-v7.ty7-desk:not(#bd):not(#bd) .scroll { overflow: visible; padding: 6px 0 0; scroll-padding-bottom: 0; }
.bd-tryon-v7.ty7-desk:not(#bd):not(#bd) .stage,
.bd-tryon-v7.ty7-desk:not(#bd):not(#bd) .stage.mstage { margin: 0 0 14px; }
.bd-tryon-v7.ty7-desk:not(#bd):not(#bd) .mine-pic { margin: 0; }
.bd-tryon-v7.ty7-desk:not(#bd):not(#bd) .shot,
.bd-tryon-v7.ty7-desk:not(#bd):not(#bd) .mcard { height: min(70vh, 720px); }
.bd-tryon-v7.ty7-desk:not(#bd):not(#bd) .pv-scrim { position: fixed; }
/* the card never under the site's top bar (12 px below it at least, 12 px above the screen's foot); while it is open the page
   (top bar included) is under the scrim: the frame is raised over the sticky top bar (z 20) (final review 3 minor 2) */
.bd-tryon-v7.ty7-desk:not(#bd):not(#bd) .pv { position: fixed; left: calc(50% - min(480px, 90vw) / 2); top: max(calc(var(--ty7-top, 84px) + 12px), calc(50% - min(760px, 86vh) / 2)); right: auto; bottom: auto; width: min(480px, 90vw); height: min(760px, 86vh, calc(100vh - var(--ty7-top, 84px) - 24px)); }
.bd-tryon-v7-frame:has(> .ty7-desk .pv.open) { z-index: 21; }
/* the colours under her picture: every shade in view, wrapped onto more rows (a mouse has no sideways swipe); the same 48 px
   bundle photos with their names */
.bd-tryon-v7.ty7-desk:not(#bd):not(#bd) .dots { flex-wrap: wrap; overflow: visible; -webkit-mask-image: none; mask-image: none; padding: 4px 0 0; }
@media (min-width: 1024px) {
  .bd-tryon-v7.ty7-desk:not(#bd):not(#bd) .screen:has(.grid .hair) { max-width: 1088px; }
  .bd-tryon-v7.ty7-desk:not(#bd):not(#bd) .grid:has(> .hair) { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .bd-tryon-v7.ty7-desk:not(#bd):not(#bd) .screen:has(> .scroll > :is(.stage, .mine-pic)) {
    max-width: none; display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 480px); grid-template-rows: repeat(6, auto) 1fr;
    column-gap: 48px; justify-content: center; align-items: start;
  }
  /* the steps' own wrapper gives its blocks to the two columns; the stage spans every row (the last, 1fr, takes up its height) */
  .bd-tryon-v7.ty7-desk:not(#bd):not(#bd) .screen:has(> .scroll > :is(.stage, .mine-pic)) > .scroll { display: contents; }
  .bd-tryon-v7.ty7-desk:not(#bd):not(#bd) .screen:has(> .scroll > :is(.stage, .mine-pic)) > .bar { grid-column: 2; position: relative; top: auto; margin: 0 -8px; }
  .bd-tryon-v7.ty7-desk:not(#bd):not(#bd) .screen:has(> .scroll > :is(.stage, .mine-pic)) > .bar::after { display: none; }
  /* the stage stays whole on the screen under the top bar: the photo gives way so all her colours stay in view (--ty7-dots: the
     colour row's height, measured by the view), down to 380 px: her picture is the main image (controller ruling, fix round 2),
     so on a short screen with many colours the last rows sit below the fold, reached by scrolling the page */
  .bd-tryon-v7.ty7-desk:not(#bd):not(#bd) .shot { max-height: calc(100vh - var(--ty7-top, 84px) - 80px - var(--ty7-dots, 96px)); min-height: 380px; }
  .bd-tryon-v7.ty7-desk:not(#bd):not(#bd) .mcard { max-height: calc(100vh - var(--ty7-top, 84px) - 80px); }
  .bd-tryon-v7.ty7-desk:not(#bd):not(#bd) .screen > .scroll > * { grid-column: 2; }
  .bd-tryon-v7.ty7-desk:not(#bd):not(#bd) .screen > .scroll > :is(.stage, .mine-pic) {
    grid-column: 1; grid-row: 1 / -1; position: sticky; top: calc(var(--ty7-top, 84px) + 24px); align-self: start; margin: 0;
  }
}
