/* DBIJOU v4 - Lab (/projekt2): theme-only rules beside pages/lab.css (generated from the V4-lab boards, never edited here).
   Loaded after lab.css by page-projekt2.php (inc/v4-lab.php, dbj_v4_lab_head()). Four parts:
   1 the document shell of the full-screen app (iOS: html and body pinned, nothing scrolls but the panes),
   2 content pictures kept from the live Lab (scene tiles --sky, finish tiles --fx; the skin reads both),
   3 short screens in the split layout and short landscape phones (the live sheet's blocks in system tokens),
   4 the phone layout on the script's own query: the Lab switches to the phone shell below 900 px wide or 600 px high
     (mqDesk in the script), the boards can only express the system phone width (max-width:640px). Part 4 is the phone
     block of canvas/src/V4-lab/extra.css re-wrapped in that query by _wp/lab-core-build.mjs: do not edit it by hand. */

/* ------------------------------------------------------------------ 1. shell */
html.v4{height:100%;overflow:hidden;overscroll-behavior:none}
/* border-box: the consent banner padding dbj.js puts on the body stays inside the 100 % height (no page scroll) */
body.pg.lab{height:100%;box-sizing:border-box}
.lab button{touch-action:manipulation}
.lab button:disabled{cursor:default}
#hud{display:none !important}
/* The consent banner (system) sits over the app until the choice is made; the coach waits for it (script). */
.lab #zgoda{z-index:var(--z-banner)}
/* Keyboard focus on the 3D frame (an iframe never matches :focus-visible; the script sets .kb after a Tab). */
#fr.kb{outline:2px solid var(--fg);outline-offset:-4px}
/* The mode pill (Lupa, Na dłoni, Przechyl) stays on one line. On the phone shell the camera rail shows on the same
   line (top --ot) while the Więcej pane is open, so the pill moves one row down there. */
#mode{white-space:nowrap}
@media not all and (min-width:900px) and (min-height:600px){
  .sheet.t-gra #mode{top:calc(var(--ot,200px) + var(--tap) + var(--sp-2))}
}

/* ------------------------------------------------------------------ 2. content pictures (scenes, finishes) */
.tile[data-env=dbj_black_studio]{--sky:linear-gradient(180deg,rgba(0,0,0,0) 30%,#f3efe8 34%,#f3efe8 44%,rgba(0,0,0,0) 48%),linear-gradient(180deg,#121214,#050506)}
.tile[data-env=brown_photostudio_02]{--sky:radial-gradient(60% 50% at 36% 32%,#fbe6c8 0,#b58a5e 34%,rgba(0,0,0,0) 72%),linear-gradient(160deg,#4a3526,#1c140f)}
.tile[data-env=studio_small_09]{--sky:radial-gradient(52% 42% at 50% 26%,#fff 0,#c9ced6 26%,rgba(0,0,0,0) 72%),linear-gradient(180deg,#3a3d44,#15161a)}
.tile[data-env=photo_studio_01]{--sky:radial-gradient(70% 40% at 50% 20%,#fff 0,rgba(255,255,255,0) 70%),linear-gradient(180deg,#e9e9e6,#bfc0c2 50%,#8d8f93 51%,#55575c)}
.tile[data-env=kiara_1_dawn]{--sky:radial-gradient(42% 30% at 62% 62%,#ffe6b8 0,rgba(255,200,160,0) 72%),linear-gradient(180deg,#2d3a6e 0,#8b7fb0 34%,#f0a8a0 60%,#3b2f36 66%,#1a1618)}
.tile[data-env=venice_sunset]{--sky:radial-gradient(36% 26% at 40% 60%,#fff0b8 0,#ffb04a 32%,rgba(255,120,60,0) 72%),linear-gradient(180deg,#2a2150 0,#a2456a 36%,#f27a3e 60%,#2a1a1c 64%,#120c0e)}
.tile[data-env=dikhololo_night]{--sky:radial-gradient(1.6px 1.6px at 20% 22%,#fff 98%,rgba(0,0,0,0)),radial-gradient(1.2px 1.2px at 70% 15%,#fff 98%,rgba(0,0,0,0)),radial-gradient(1.6px 1.6px at 46% 38%,#dfe8ff 98%,rgba(0,0,0,0)),radial-gradient(1.2px 1.2px at 84% 42%,#fff 98%,rgba(0,0,0,0)),radial-gradient(1.2px 1.2px at 30% 52%,#fff 98%,rgba(0,0,0,0)),radial-gradient(60% 30% at 50% 80%,#2b3a70 0,rgba(0,0,0,0) 80%),linear-gradient(180deg,#060a1c,#18214a 70%,#0a0c12 72%)}
.tile[data-env=fireplace]{--sky:radial-gradient(40% 34% at 50% 76%,#ffe29a 0,#ff8a2a 36%,rgba(160,40,10,0) 76%),linear-gradient(180deg,#1a0f0b,#3a1c10 60%,#120806)}
.tile[data-env=christmas_photo_studio_04]{--sky:radial-gradient(10% 10% at 22% 30%,#ffd98a 0,rgba(255,217,138,0) 100%),radial-gradient(8% 8% at 62% 22%,#ffeec0 0,rgba(255,238,192,0) 100%),radial-gradient(11% 11% at 78% 56%,#ffb86a 0,rgba(255,184,106,0) 100%),radial-gradient(9% 9% at 36% 66%,#fff2d0 0,rgba(255,242,208,0) 100%),radial-gradient(7% 7% at 54% 46%,#ffcf80 0,rgba(0,0,0,0) 100%),linear-gradient(180deg,#2a1d18,#140e0c)}
.fin [data-fin=polish]{--fx:linear-gradient(115deg,#3a3a3a 0,#fff 36%,#d6d6d6 44%,#707070 58%,#f7f7f7 80%,#8a8a8a)}
.fin [data-fin=satin]{--fx:repeating-linear-gradient(90deg,rgba(255,255,255,.22) 0 1px,rgba(0,0,0,.1) 1px 3px),linear-gradient(115deg,#8a8a8a,#dadada 50%,#9a9a9a)}
.fin [data-fin=hammer]{--fx:radial-gradient(circle at 36% 34%,#fff 0,#c4c4c4 34%,#7a7a7a 72%),linear-gradient(115deg,#8a8a8a,#e0e0e0 50%,#8a8a8a);--fs:10px 10px,auto}

/* ------------------------------------------------------------------ 3. short screens */
/* Laptop heights in the split layout: the name a step smaller and the jeweller's line folded away, so the tool pane
   keeps room to work in (only the pane gives way, never the header above the actions). */
@media (min-width:900px) and (min-height:600px) and (max-height:760px){
  .lab #name{margin-top:var(--sp-2);font-size:var(--fs-h4)}
  .lab #spec{margin-top:var(--sp-2)}
  .lab #famL{display:none !important}
}
/* Short landscape phones (phone shell; .lab raises these over part 4): a smaller title, no materials line, no discoveries row: the ring keeps a band. */
@media (max-height:500px){
  .lab #name{font-size:var(--fs-h4)}
  .lab #spec,.lab #disc,.lab #disc[hidden]{display:none !important}
  .lab #price{margin-top:var(--sp-1)}
}

/* ------------------------------------------------------------------ 4. phone shell on the script's query
   GENERATED by redesign-taste/v4/theme/_wp/lab-core-build.mjs from the '@media (max-width:640px)' block of
   redesign-taste/v4/canvas/src/V4-lab/extra.css (board-only lines dropped). Below 641 px it repeats lab.css exactly;
   from 641 to 899 px wide and below 600 px high it gives the phone shell the script already runs there. */
/* @lab-phone-start */
@media not all and (min-width:900px) and (min-height:600px){
  /* Set on #side, not on the page root: on the canvas the root is the query container and cannot restyle itself. */
  #side{--lab-pad:var(--gutter)}
  #stage{right:0}
  /* Film-black scrims keep the header and the bar readable over the ring (the stage is film black too). */
  .lab::before,
  .lab::after{content:"";position:fixed;left:0;right:0;z-index:2;pointer-events:none}
  .lab::before{top:0;height:260px;background:linear-gradient(180deg,var(--film) 55%,transparent)}
  .lab::after{bottom:0;height:220px;background:linear-gradient(0deg,var(--film) 50%,transparent)}

  #side{display:contents}
  #hd{position:fixed;top:0;left:0;right:0;z-index:4;padding:calc(env(safe-area-inset-top,0px) + var(--sp-1)) var(--lab-pad) 0;pointer-events:none}
  #hd a,#hd button{pointer-events:auto}
  #hd .row{min-height:var(--h-btn)}
  #hd .nav{margin-top:0;margin-left:calc(var(--sp-4) * -1)}
  #hd .nav .icon-btn{border-color:transparent}
  #cnt{min-width:var(--sp-7)}
  #name{margin-top:var(--sp-2);font-size:var(--fs-h3)}
  #spec{margin-top:var(--sp-2)}
  #price{margin-top:var(--sp-1)}
  #famL{display:none}
  #disc::after{display:none}

  /* The bar: the system tone block, square; the label, the name on two lines, the materials line and the price line. */
  #acts{position:fixed;left:var(--sp-3);right:var(--sp-3);bottom:calc(var(--lab-dock) + env(safe-area-inset-bottom,0px) + var(--sp-2));z-index:4;padding:0;transition:opacity var(--dur-2) var(--ease-out),transform var(--dur-3) var(--ease-out)}
  .tp #acts{padding:var(--sp-3);background:var(--ink-2)}
  .tp #tpTop:not([hidden]){display:flex !important;align-items:center;gap:var(--sp-3);margin-bottom:var(--sp-3)}
  #tpTh{flex:none;width:56px;height:56px;background-color:var(--ink-3);background-image:var(--tpbg,none);background-position:center;background-size:cover;background-repeat:no-repeat}
  #tpC{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:2px}
  .disc-done #tpK,.lead-sent #tpK{color:var(--fg)}
  #tpN{font-family:var(--ff-display);font-size:var(--fs-lead);font-weight:400;line-height:1.2;color:var(--fg)}
  #tpS{font-size:var(--fs-small);line-height:1.4;color:var(--fg-2)}
  #tpP{font-size:var(--fs-small);font-weight:500;line-height:1.4;color:var(--fg);white-space:nowrap}
  #tpX{align-self:flex-start;margin:calc(var(--sp-2) * -1) calc(var(--sp-2) * -1) 0 0}
  #tpX::before{content:"";width:9px;height:9px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateY(-2px) rotate(45deg);transition:transform var(--dur-2) var(--ease-out)}
  #acts.min #tpX::before{transform:translateY(2px) rotate(-135deg)}
  /* Collapsed: one row hugging the right edge: the price (never a cut name), the action, the chevron. The ring itself is
     right above, so the picture is dropped and the row also fits a 360 px phone. */
  .tp #acts.min{left:auto;display:flex;align-items:center;gap:var(--sp-2);padding:var(--sp-1)}
  #acts.min #tpTop:not([hidden]){display:contents !important}
  #acts.min #tpTh,#acts.min #tpK,#acts.min #tpN,#acts.min #tpS,#acts.min #save,#acts.min #wa{display:none}
  #acts.min #tpC{order:1;flex:none;padding:0 var(--sp-2) 0 var(--sp-3)}
  #acts.min #tpP{font-size:var(--fs-ui)}
  #acts.min .tpRow{order:2}
  #acts.min #tpX{order:3;margin:0}

  #dock{position:fixed;left:0;right:0;bottom:0;z-index:7;height:calc(var(--lab-dock) + env(safe-area-inset-bottom,0px));padding:0 var(--sp-1) env(safe-area-inset-bottom,0px);background:var(--ink);border-top:0}
  #dock button{height:var(--lab-dock)}
  #dock button::after{top:0;bottom:auto}
  .lab:not(.sheet) #dock button[aria-pressed="true"]{color:var(--fg-2)}
  .lab:not(.sheet) #dock button[aria-pressed="true"]::after{transform:scaleX(0)}

  /* Tool sheet: at most 45 % of the screen with the first row visible; the ring is lifted into the free band by the script. */
  #panel{position:fixed;left:0;right:0;bottom:calc(var(--lab-dock) + env(safe-area-inset-bottom,0px));z-index:6;max-height:min(45%,400px);background:var(--ink-2);transform:translate3d(0,calc(100% + var(--lab-dock) + var(--sp-5)),0);visibility:hidden;transition:transform var(--dur-3) var(--ease-out),visibility 0s var(--dur-3)}
  .sheet #panel{transform:none;visibility:visible;transition:transform var(--dur-3) var(--ease-out),visibility 0s}
  #grip{display:grid;place-items:center;height:20px;flex:none;touch-action:none;cursor:grab}
  #grip::before{content:"";width:40px;height:3px;background:var(--fg-3)}
  #panel{--bg:var(--ink-2);--tone:var(--ink-3)}
  /* Sheet head: the title never cut (scene or stone name only), the price under it, save and close on the right. */
  .ph{position:static;width:auto;height:auto;overflow:visible;clip:auto;white-space:normal;flex:none;display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;column-gap:0;padding:0 var(--sp-2) 0 var(--lab-pad);min-height:var(--h-btn);touch-action:none}
  .phc{grid-column:1;grid-row:1}
  #phP{display:block;grid-column:1;grid-row:2;font-size:var(--fs-small);font-weight:500;line-height:1.4;color:var(--fg-2);white-space:nowrap}
  #phS,#phX{display:inline-grid;grid-row:1 / span 2}
  #phV{font-size:var(--fs-h4)}
  .t-rozmiar #phP{display:none}
  .t-rozmiar .phc{grid-row:1 / span 2}
  #envN,#alN{display:none}
  .pane{padding:var(--sp-3) var(--lab-pad) var(--sp-5)}
  .pbox{display:flex}
  .sheet #acts{opacity:0;transform:translateY(var(--sp-4));pointer-events:none}
  .sheet #spec,.sheet #price,.sheet #disc,.sheet #famL{opacity:0;pointer-events:none}
  .sheet #name{transform:scale(.78)}
  .coach1 #spec,.coach1 #price,.coach1 #disc{opacity:0;pointer-events:none}
  .coach1 #name{transform:scale(.78)}

  /* Camera tools: only with the Więcej sheet, a row under the compact title. */
  .row3{display:none;left:auto;right:var(--sp-2);bottom:auto;top:var(--ot,160px);z-index:5}
  .sheet.t-gra .row3{display:flex}

  #toast{left:var(--gutter);right:var(--gutter);bottom:var(--tb,140px);width:auto;max-width:none;transform:translateY(var(--sp-4))}
  #toast.on{transform:none}
  #nudge{left:var(--gutter);right:var(--gutter);bottom:var(--tb,140px);width:auto;transform:translateY(var(--sp-4))}
  #nudge.on{transform:none}
  #cmp{right:0}
  #cmp span{top:var(--ot,200px)}
  .cmpb{top:auto;bottom:calc(var(--lab-dock) + var(--barH,52px) + var(--sp-5))}
  #mode{left:50%;top:var(--ot,200px)}
  #tiltpad{right:0}
  #cine{--bar:72px}

  /* The contact sheet rises from the bottom edge, full width. */
}
/* @lab-phone-end */
