/* Arakot Render Lab · v7 · live surface
   The page is the plugin. Two palettes on purpose:
   --sc-*  the page floor (stage, guide cards, the one accent)
   --q-*   the Qt surface, copied from the 0.8.13 screenshots          */

:root {
  /* v12 · T: every --sc-* value (colours, fonts) now lives in theme.css */

  --q-bg: #262626;
  --q-bg2: #2b2b2b;
  --q-bg3: #232323;
  --q-sec: #313131;
  --q-btn: #343434;
  --q-btn-h: #3c3c3c;
  --q-line: #3b3b3b;
  --q-line2: #464646;
  --q-ink: #e6e6e6;
  --q-ink2: #b7b7b7;
  --q-ink3: #8e8e8e;
  --q-sel: #3b4e64;
  --q-sel-b: #7192b4;
  --q-pill: #e2e4e7;
  --q-pill-ink: #18191b;
  --q-warn: #e0ad4f;

  --pn-w: 372px;
  --hd-h: 56px;
  --sb-h: 26px;
  --strip-h: 142px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

html { background: var(--sc-canvas); }
body {
  margin: 0;
  background: var(--sc-canvas);
  color: var(--sc-ink);
  font-family: var(--sc-font-text);
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
button { cursor: pointer; }
button:disabled { cursor: default; }
img { max-width: none; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  background: var(--q-pill); color: var(--q-pill-ink);
  padding: 10px 14px; border-radius: 8px; font-size: 14px; text-decoration: none;
  transition: top 160ms var(--ease);
}
.skip:focus-visible { top: 12px; }

:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 2px; }

/* ===================================================================== STAGE */
/* The stage is the page itself: a dark room the window stands in. It only
   shows while the window is receded (a breath). */
.stage {
  background:
    radial-gradient(90% 70% at 50% 48%, #1a1b1e 0%, var(--sc-canvas) 70%);
  perspective: 2200px;
  perspective-origin: 62% 46%;
}
/* the current render's light, pooled under the receded window */
.ambient {
  position: absolute; inset: 0;
  background: url("assets/img/k15/merdiven-prizma-m.webp") 50% 50% / cover no-repeat;   /* v15: the opening's work (the bedroom hero-b left the page); app.js sets it per piece */
  filter: blur(70px) saturate(0.85) brightness(0.5);
  transform-origin: 50% 50%;
  opacity: 0;
  pointer-events: none;
  will-change: opacity, transform;
}
.win-sh {
  position: absolute; inset: 0;
  border-radius: 26px;
  transform-origin: 50% 50%;
  box-shadow:
    0 0 0 1.6px rgba(255, 255, 255, 0.075),
    0 90px 180px -50px rgba(0, 0, 0, 0.95),
    0 36px 70px -34px rgba(0, 0, 0, 0.75);
  opacity: 0;
  pointer-events: none;
  will-change: opacity, transform;
}
.win-dim { position: absolute; inset: 0; z-index: 60; background: #0b0c0d; opacity: 0; pointer-events: none; will-change: opacity; }

/* ======================================================================= WIN */
.win {
  position: absolute; inset: 0;
  background: var(--q-bg);
  color: var(--q-ink);
  font-size: 13px;
  line-height: 1.35;
  overflow: hidden;
  transform-origin: 50% 50%;
  will-change: transform;
  contain: layout paint;
}
/* v14 · KURGU: the plugin itself, laid out at its design size (app.js sets
   width, height and scale(K0) on desktops; phones and tablets keep 100%) */
.win__in {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  display: grid;
  grid-template-rows: var(--hd-h) minmax(0, 1fr) var(--sb-h);
  transform-origin: 0 0;
}

/* -------------------------------------------------------------------- header */
.hd {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 0 14px 0 12px;
  background: var(--q-bg);
  border-bottom: 1px solid #1c1c1c;
  position: relative;
  z-index: 6;
}
.hd-src { display: flex; align-items: center; gap: 10px; justify-self: start; position: relative; min-width: 0; }
.hd-cap {
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: #a6a6a6; padding-right: 12px; border-right: 1px solid var(--q-line); white-space: nowrap;
}
.grp {
  display: inline-flex; align-items: center;
  background: #2d2d2d; border: 1px solid #3c3c3c; border-radius: 999px;
  padding: 3px; gap: 2px;
}
.btn-src {
  display: inline-flex; align-items: center; gap: 7px;
  height: 32px; padding: 0 13px;
  border: 0; border-radius: 999px; background: transparent;
  color: #d6d6d6; font-size: 13px; white-space: nowrap;
  transition: background-color 140ms var(--ease), transform 120ms var(--ease);
}
.btn-src + .btn-src { position: relative; }
.btn-src + .btn-src::before {
  content: ""; position: absolute; left: -1px; top: 8px; bottom: 8px; width: 1px; background: #444;
}
.btn-src img, .pill img, .ico img, .btn-sub img { display: block; }
.btn-src img { width: 18px; height: 18px; opacity: 0.86; }
.btn-src.is-press, .btn-src:active { background: #444; transform: translateY(1px); }
.btn-src.is-on { background: #3b3b3b; }

.grp--modes { justify-self: center; padding: 4px; }
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  height: 36px; padding: 0 20px;
  border: 0; border-radius: 999px; background: transparent;
  color: #d3d3d3; font-size: 13.5px; white-space: nowrap;
  transition: background-color 160ms var(--ease), color 160ms var(--ease), transform 120ms var(--ease);
}
.pill img { width: 18px; height: 18px; }
.pill svg, .pill img { flex: 0 0 auto; }
.pill[aria-pressed="true"] { background: var(--q-pill); color: var(--q-pill-ink); font-weight: 600; }
.pill[aria-pressed="true"] img { filter: invert(1) brightness(0.25); }
.pill.is-press, .pill:active { transform: scale(0.97); }
.grp-sep { width: 1px; height: 22px; background: #474747; margin: 0 6px; }

.hd-end { display: flex; align-items: center; gap: 12px; justify-self: end; }
.ver { font-size: 12px; color: #9a9a9a; font-variant-numeric: tabular-nums; }
.ico {
  width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent;
  display: grid; place-items: center;
  transition: background-color 140ms var(--ease);
}
.ico img { width: 20px; height: 20px; opacity: 0.9; }
.ico--acct { box-shadow: 0 0 0 1px rgba(146, 182, 220, 0.0); }
.ico--acct.is-press { background: #3e3e3e; }

@media (hover: hover) and (pointer: fine) {
  .btn-src:hover { background: #393939; }
  .pill:not([aria-pressed="true"]):hover { background: #363636; }
  .ico:hover { background: #343434; }
}

.menu {
  position: absolute; top: 44px; left: 96px; z-index: 30;
  width: 250px; padding: 6px;
  background: #2c2c2c; border: 1px solid #464646; border-radius: 6px;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.7);
}
.menu-cap { margin: 4px 8px 6px; font-size: 11.5px; color: #9b9b9b; }
.menu button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 6px 8px; border: 0; border-radius: 4px; background: transparent;
  color: #e3e3e3; font-size: 13px; text-align: left;
}
.menu button:hover, .menu button:focus-visible { background: #3a3a3a; }
.menu img { width: 64px; height: 36px; object-fit: cover; border-radius: 2px; }

[data-tip] { position: relative; }
/* tooltips: the plugin's own QToolTip (ui_option2.py), mouse only */
@media (hover: hover) and (pointer: fine) {
  [data-tip]::after {
    content: attr(data-tip);
    position: absolute; top: calc(100% + 8px); left: 50%; z-index: 30;
    translate: -50% -3px;
    padding: 4px 7px; border: 1px solid #4a4a4a; border-radius: 2px;
    background: #262626; color: #e2e2e2;
    font-size: 12px; font-weight: 400; line-height: 1.3; letter-spacing: 0; white-space: nowrap;
    box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.7);
    opacity: 0; pointer-events: none;
    transition: opacity 120ms var(--ease), translate 120ms var(--ease);
  }
  [data-tip]:hover::after, [data-tip]:focus-visible::after {
    opacity: 1; translate: -50% 0;
    transition-delay: 450ms;
  }
  .hd-end [data-tip]::after { left: auto; right: 0; translate: 0 -3px; }
  .hd-end [data-tip]:hover::after, .hd-end [data-tip]:focus-visible::after { translate: 0 0; }
  .hd-src [data-tip]::after { left: 0; translate: 0 -3px; }
  .hd-src [data-tip]:hover::after, .hd-src [data-tip]:focus-visible::after { translate: 0 0; }
}

/* ------------------------------------------------------------------- body */
.bd {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--pn-w);
  min-height: 0;
}

/* canvas column */
.cv-col {
  display: grid;
  grid-template-rows: 30px minmax(0, 1fr) 14px var(--strip-h);
  min-width: 0; min-height: 0;
  background: var(--q-bg);
}
.cv-labels {
  display: flex; justify-content: space-between; align-items: end;
  padding: 0 8px 4px; font-size: 12px; color: #d2d2d2;
}
#labB { transition: opacity 200ms var(--ease); }
.cv-area {
  position: relative;
  container-type: size;
  display: grid; place-items: center;
  min-height: 0;
}
.cv-frame {
  position: relative;
  width: min(calc(100cqw - 32px), calc((100cqh - 16px) * 1.77778));
  aspect-ratio: 16 / 9;
  background: #1e1e1e;
  overflow: hidden;
  isolation: isolate;
}
.cv-frame.is-xp { overflow: visible; background: transparent; }
.cv-zoom {
  position: absolute; inset: 0;
  transform-origin: 50% 50%;
  will-change: transform;
}
.cv-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
  user-select: none; -webkit-user-drag: none;
}
.cv-b { position: absolute; inset: 0; clip-path: inset(0 0 0 50%); }
.cv-img--x { opacity: 0; }
.cv-layer { position: absolute; inset: 0; width: 100%; height: 100%; display: none; cursor: crosshair; touch-action: none; }
.is-layers .cv-layer { display: block; }

.flash { position: absolute; inset: 0; background: #f4f4f2; opacity: 0; pointer-events: none; z-index: 4; }

.cv-empty {
  position: absolute; inset: 0; z-index: 3;
  display: grid; place-items: center;
  background: #212121;
  opacity: 0; pointer-events: none;
}
.cv-empty__in {
  width: min(78%, 420px);
  padding: 26px 28px;
  border: 1.5px dashed #5c5c5c; border-radius: 10px;
  color: #c9c9c9;
}
.cv-empty__t { margin: 0 0 12px; font-size: 16px; font-weight: 600; color: #ececec; }
.cv-empty ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 13px; }

.cv-gen {
  position: absolute; left: 50%; top: 50%; z-index: 4;
  translate: -50% -50%;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px 14px 16px;
  background: rgba(24, 24, 24, 0.9); border: 1px solid #474747; border-radius: 12px;
  box-shadow: 0 20px 50px -16px rgba(0, 0, 0, 0.8);
  opacity: 0; pointer-events: none;
}
.ring { width: 40px; height: 40px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke: #3d3d3d; stroke-width: 3.5; }
.ring .ring__v { stroke: var(--sc-accent); stroke-linecap: round; stroke-dasharray: 119.4; stroke-dashoffset: 119.4; }
.cv-gen__t { margin: 0; font-size: 13.5px; font-weight: 600; color: #ededed; }
.cv-gen__s { margin: 2px 0 0; font-size: 12px; color: #a9a9a9; font-variant-numeric: tabular-nums; }

/* A/B handle */
.ab {
  position: absolute; top: 0; bottom: 0; left: 50%; z-index: 5;
  width: 0;
  touch-action: none;
  outline: none;
}
.ab::before { content: ""; position: absolute; top: 0; bottom: 0; left: -22px; width: 44px; cursor: ew-resize; }
.ab__line { position: absolute; top: 0; bottom: 0; left: -0.5px; width: 1px; background: rgba(255, 255, 255, 0.78); box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.25); }
.ab.is-edge { opacity: 0; pointer-events: none; }
.ab { transition: opacity 180ms var(--ease); }
.ab__knob {
  position: absolute; top: 50%; left: 0;
  translate: -50% -50%;
  width: 24px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(88, 88, 88, 0.88); border: 1px solid rgba(255, 255, 255, 0.4);
  color: #f0f0f0;
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  transition: background-color 140ms var(--ease), scale 140ms var(--ease);
}
.ab:focus-visible .ab__knob { outline: 2px solid var(--sc-accent); outline-offset: 2px; }
.ab.is-drag .ab__knob { background: rgba(110, 110, 110, 0.95); scale: 1.06; }
.is-hint .ab__knob { animation: knob 1.8s var(--ease) 0.6s 2; }
@keyframes knob { 0%, 100% { translate: -50% -50%; } 30% { translate: calc(-50% - 7px) -50%; } 60% { translate: calc(-50% + 7px) -50%; } }

.bop {
  position: absolute; right: 12px; bottom: 12px; z-index: 6;
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 10px;
  background: rgba(46, 46, 46, 0.9); border-radius: 8px;
  font-size: 12px; color: #e6e6e6;
  transition: opacity 200ms var(--ease);
}
.bop input { width: 120px; accent-color: #e4e4e4; }
.bop output { font-variant-numeric: tabular-nums; }

.zoomtag {
  position: absolute; left: 12px; bottom: 12px; z-index: 6;
  padding: 4px 9px; border-radius: 6px;
  background: rgba(30, 30, 30, 0.86); color: #e6e6e6; font-size: 12px;
  font-variant-numeric: tabular-nums;
  opacity: 0;
}
/* v16 · KURGU2 (brif 2): an example scene on the canvas wears its label (app.js etiketOf,
   RenderLabEtiket); an outlined pill, never one of the plugin's own controls */
.cv-ornek {
  position: absolute; left: 12px; top: 12px; z-index: 6;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(22, 23, 25, 0.74); color: #f3f3f3;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32);
  font-size: 15px; font-weight: 600; line-height: 1.2; letter-spacing: 0.01em; white-space: nowrap;
  pointer-events: none;
}
.cv-ornek[hidden] { display: none; }
@media (max-width: 820px), (max-height: 500px) and (pointer: coarse) { :where(body:not(.is-mpen)) .cv-ornek { left: 8px; top: 8px; padding: 3px 9px; font-size: 12px; } }   /* a phone's canvas is small: the label keeps to its corner */

/* exploded layer stack */
.xp {
  position: absolute; inset: 0; z-index: 7;
  transform-style: preserve-3d;
  pointer-events: none;
  opacity: 0;
}
.xp__plane {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: #1d1d1d;
  box-shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.8);
  will-change: transform;
}
.xp__plane img, .xp__plane canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.xp__plane[data-z="2"] { background: rgba(255, 255, 255, 0.05); border-style: dashed; }
.xp__plane--top { background: transparent; }
.xp__plane span {
  position: absolute; left: 10px; top: 10px;
  padding: 3px 9px; border-radius: 6px;
  background: rgba(22, 22, 22, 0.86); color: #ececec; font-size: 12px; white-space: nowrap;
}

/* history browser over the canvas */
.gal {
  position: absolute; inset: 0; z-index: 8;
  display: grid;
  grid-template-columns: 1.6fr 0.9fr 1.6fr 0.9fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  padding: 6px 16px 10px;
  opacity: 0; pointer-events: none;
  background: var(--q-bg);
}
.gal__i { position: relative; margin: 0; overflow: hidden; border-radius: 3px; background: #1d1d1d; border: 1px solid #3a3a3a; }
.gal__i:nth-child(1) { grid-column: 1; grid-row: 1; }
.gal__i:nth-child(2) { grid-column: 2; grid-row: 1 / span 2; }
.gal__i:nth-child(3) { grid-column: 3; grid-row: 1; }
.gal__i:nth-child(4) { grid-column: 4; grid-row: 1 / span 2; }
.gal__i:nth-child(5) { grid-column: 1; grid-row: 2; }
.gal__i:nth-child(6) { grid-column: 3; grid-row: 2; }
.gal__i img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 260ms var(--ease); }
.gal__i .gal__a { opacity: 0; }
.gal__i:hover .gal__a, .gal__i:focus-within .gal__a { opacity: 1; }
.gal__i figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 18px 10px 7px;
  background: linear-gradient(to top, rgba(18, 18, 18, 0.88), rgba(18, 18, 18, 0));
  font-size: 12px; color: #ececec; line-height: 1.3;
}
.gal__i figcaption span { color: #b8b8b8; font-variant-numeric: tabular-nums; }

/* filmstrip */
.fold {
  position: relative; border-top: 1px solid var(--q-line);
  display: grid; place-items: center;
}
.fold span {
  position: absolute; top: -9px;
  width: 34px; height: 16px; display: grid; place-items: center;
  background: #333; border: 1px solid #474747; border-radius: 3px;
  font-size: 9px; color: #cfcfcf;
}
.strip {
  display: flex; gap: 8px; align-items: flex-start;
  padding: 10px 8px 6px;
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: thin; scrollbar-color: #555 #2a2a2a;
  background: var(--q-bg);
}
.strip__empty { margin: 40px auto 0; font-size: 12px; color: #9b9b9b; }
.hc {
  flex: 0 0 168px;
  display: grid; gap: 4px; justify-items: center;
  padding: 4px 4px 5px;
  background: #2b2b2b; border: 1px solid #3b3b3b; border-radius: 3px;
  color: #dcdcdc; font-size: 11.5px; line-height: 1.25; text-align: center;
  animation: stamp 320ms var(--ease) both;
}
.hc img { width: 158px; height: 89px; object-fit: cover; display: block; border-radius: 1px; }
.hc small { color: #a9a9a9; font-size: 11px; font-variant-numeric: tabular-nums; }
.hc[aria-current="true"] { border-color: var(--q-sel-b); box-shadow: 0 0 0 1px var(--q-sel-b); background: #2f3640; }
@keyframes stamp { from { opacity: 0; transform: translateY(8px) scale(0.94); } to { opacity: 1; transform: none; } }
@media (hover: hover) and (pointer: fine) { .hc:hover { background: #333; } }

/* --------------------------------------------------------------------- panel */
.pn {
  display: grid;
  grid-template-rows: 40px minmax(0, 1fr) auto;
  min-height: 0;
  background: var(--q-bg2);
  border-left: 1px solid #1c1c1c;
  position: relative;
}
.tabs { display: flex; gap: 2px; padding: 0 10px; border-bottom: 1px solid var(--q-line); }
.tab {
  height: 40px; padding: 0 16px;
  border: 0; border-bottom: 2px solid transparent; background: transparent;
  color: #a8a8a8; font-size: 13px;
  transition: color 140ms var(--ease), border-color 140ms var(--ease);
}
.tab[aria-current="true"] { color: #f0f0f0; border-bottom-color: #a9b0b8; }
@media (hover: hover) and (pointer: fine) { .tab:hover { color: #e6e6e6; } }

.pn-body { min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.sec { border-bottom: 1px solid #262626; }
.sec__h {
  display: flex; align-items: center; gap: 8px;
  height: 30px; margin: 0; padding: 0 10px;
  background: var(--q-sec);
  font-size: 13px; font-weight: 600; color: #ebebeb;
}
.sec__h svg { color: #d8d8d8; }
.sec__b { padding: 9px 10px 10px; display: grid; gap: 8px; }
.sec.is-folded .sec__b { display: none; }
.sec.is-folded .sec__h svg { transform: rotate(-90deg); }

.work { position: relative; height: 116px; border: 1px solid #3e3e3e; background: #222; }
.work__drop {
  position: absolute; inset: 6px;
  display: grid; place-items: center; text-align: center;
  border: 1.5px dashed #686868; border-radius: 6px;
  font-size: 12px; color: #cfcfcf; padding: 0 20px;
}
.work__img { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); object-fit: contain; opacity: 0; transition: opacity 220ms var(--ease); }
.work.has-img .work__img { opacity: 1; }
.work.has-img .work__drop { opacity: 0; }

.mut { margin: 0; font-size: 12px; color: #aaaaaa; }
.mut--s { font-size: 11.5px; color: #8f8f8f; }
.row2 { display: flex; align-items: center; gap: 8px; }
.row2 > .mut:first-child { flex: 0 0 auto; min-width: 62px; }
.row2--eq > * { flex: 1 1 0; }

.seg {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; flex: 1;
  border: 1px solid #454545; border-radius: 3px; overflow: hidden;
}
.seg button, .seg span {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 28px; padding: 0 6px;
  border: 0; border-right: 1px solid #454545; background: var(--q-btn);
  color: #dcdcdc; font-size: 12.5px; white-space: nowrap;
  transition: background-color 140ms var(--ease);
}
.seg > :last-child { border-right: 0; }
.seg button[aria-pressed="true"] { background: var(--q-sel); color: #fff; box-shadow: inset 0 0 0 1px var(--q-sel-b); }
.seg button:disabled { color: #6b6b6b; }
.seg--info span { color: #bdbdbd; font-size: 12px; }
@media (hover: hover) and (pointer: fine) { .seg button:not(:disabled):not([aria-pressed="true"]):hover { background: var(--q-btn-h); } }

.presets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.presets button {
  display: flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 8px; min-width: 0;
  background: var(--q-btn); border: 1px solid #474747; border-radius: 3px;
  color: #dddddd; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: background-color 140ms var(--ease), transform 120ms var(--ease);
}
.presets button { gap: 5px; padding: 0 6px; }
.presets svg { flex: 0 0 auto; color: #cfcfcf; }
.presets button[aria-pressed="true"] { background: var(--q-sel); border-color: var(--q-sel-b); color: #fff; }
.presets button.is-press { background: #4a4a4a; transform: translateY(1px); }
.presets button.is-norec { color: #8a8a8a; }
@media (hover: hover) and (pointer: fine) { .presets button:not([aria-pressed="true"]):hover { background: var(--q-btn-h); } }

#prompt {
  width: 100%; box-sizing: border-box; min-height: 92px;
  padding: 8px 9px; resize: none;
  background: #222; border: 1px solid #474747; border-radius: 2px;
  color: #e9e9e9; font-size: 12.5px; line-height: 1.5;
}
#prompt { min-height: 84px; }
#prompt::placeholder { color: #8c8c8c; }
#prompt.is-typing { caret-color: transparent; }
.caret { display: inline-block; width: 1px; height: 1em; background: #e9e9e9; vertical-align: text-bottom; }

.out { grid-template-columns: 70px 1fr; align-items: center; column-gap: 10px; row-gap: 7px; }

.ltools { display: flex; gap: 6px; }
.ltools button {
  height: 30px; min-width: 36px; padding: 0 10px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--q-btn); border: 1px solid #474747; border-radius: 3px; color: #ddd; font-size: 12.5px;
}
.ltools .wide { flex: 1; }
.layers { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ly {
  display: grid; grid-template-columns: 22px 64px 64px 1fr; align-items: center; gap: 8px;
  padding: 6px 8px; background: #2f2f2f; border: 1px solid transparent;
  font-size: 12px; color: #e3e3e3;
}
.ly.is-sel { background: #3a4a5c; border-color: #4f6884; }
.ly__eye { color: #d9d9d9; }
.ly__th { display: grid; gap: 2px; justify-items: center; }
.ly__th img, .ly__th canvas { width: 64px; height: 36px; object-fit: cover; display: block; background: #fff; }
.ly__th--w::before { content: ""; width: 64px; height: 36px; background: #fff; display: block; }
.ly__th i { font-style: normal; font-size: 10.5px; color: #b9b9b9; }
.ly__n { display: grid; gap: 2px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ly__n small { color: #b5b5b5; font-size: 11px; }
.spin { padding: 4px 10px; background: #222; border: 1px solid #474747; font-size: 12px; flex: 1; }
.ico-s { width: 30px; height: 28px; border: 0; background: transparent; color: #cfcfcf; display: grid; place-items: center; }

.facts { margin: 4px 0 0; display: grid; gap: 4px; }
.facts div { display: flex; justify-content: space-between; font-size: 12px; padding: 5px 0; border-bottom: 1px dashed #3b3b3b; }
.facts dt { color: #9a9a9a; }
.facts dd { margin: 0; color: #e0e0e0; }

.pn-foot { display: grid; gap: 8px; padding: 10px; border-top: 1px solid var(--q-line); background: var(--q-bg2); }
.pn-msg { margin: 0; font-size: 12px; color: var(--q-warn); min-height: 16px; }
.pn-msg.is-info { color: #cfcfcf; }
.btn-go {
  height: 42px; border-radius: 3px;
  background: #383838; border: 1px solid #4a4a4a;
  color: #8f8f8f; font-size: 13.5px; font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: background-color 160ms var(--ease), color 160ms var(--ease), transform 120ms var(--ease);
}
.btn-go:not(:disabled) { background: #dfe2e6; border-color: #eef0f2; color: #17181a; }
.btn-go.is-press { transform: scale(0.98); background: #c9cdd2; }
.btn-go.is-run { background: #3a4552; border-color: #5d7590; color: #dfe9f4; }
.btn-sub {
  height: 34px; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  background: var(--q-btn); border: 1px solid #464646; border-radius: 3px;
  color: #dcdcdc; font-size: 12.5px; white-space: nowrap;
}
.btn-sub:disabled { color: #727272; }
.btn-sub img { width: 15px; height: 15px; opacity: 0.85; }
.btn-sub.is-press { background: #454545; }

/* status bar */
.sb {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-right: 12px;
  background: #1f1f1f; border-top: 1px solid #171717;
  font-size: 12.5px; min-width: 0;
}
.sb p { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb__m { border-left: 3px solid #8b8b8b; padding-left: 8px; color: #dadada; height: 100%; display: flex; align-items: center; }
.sb__m.is-ok { border-left-color: #c8ccd2; }   /* v14: no green anywhere (v13 had a green line here) */
.sb__m.is-warn { border-left-color: var(--q-warn); }
.sb__d { display: flex; gap: 14px; align-items: center; color: #8f8f8f; font-size: 11.5px; }
.sb__live { color: #d9d9d9; }
.sb__live button { border: 0; background: transparent; color: var(--sc-accent); text-decoration: underline; text-underline-offset: 2px; padding: 0; font-size: 11.5px; }

.btn-cta { margin-top: 4px; justify-self: start; }
.order textarea { box-sizing: border-box; width: 100%; padding: 8px 9px; resize: vertical; min-height: 54px; background: #222; border: 1px solid #474747; border-radius: 3px; color: #ececec; font-size: 13px; }
.btn-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 44px; padding: 0 22px;
  border: 1px solid #f1f3f5; border-radius: 999px;
  background: var(--q-pill); color: var(--q-pill-ink);
  font-family: var(--sc-font-display); font-size: 15px; font-weight: 600; letter-spacing: -0.005em;
  transition: transform 120ms var(--ease), background-color 160ms var(--ease);
}
.btn-cta:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .btn-cta:hover { background: #ffffff; } }

/* ===================================================================== NEFES */
/* The page around the receded window. Everything here is placed by app.js
   against the window's edges (transform only), so it travels with the window:
   the title sits on its top edge, the answer under its bottom edge. */
.nf {
  --nf-gut: clamp(16px, 4vw, 64px);
  position: absolute; inset: 0; z-index: 30;
  pointer-events: none;
  font-family: var(--sc-font-display);
  color: var(--sc-ink);
}
.nf-t, .nf-a {
  position: absolute; left: 0; right: 0; top: 0;
  box-sizing: border-box; margin: 0; padding: 0 var(--nf-gut);
  text-align: center; opacity: 0;
  will-change: transform, opacity;
}
.nf-t, .nf-t h1 {
  font-size: clamp(30px, 3.15vw, 58px);
  line-height: 1.08; font-weight: 600; letter-spacing: -0.032em;
  color: #f3f1ec; text-wrap: balance;
}
.nf-t h1 { margin: 0; }
.nf-a {
  font-family: var(--sc-font-text);
  font-size: clamp(15px, 1.2vw, 18px); line-height: 1.5;
  color: #aeb3ba; text-wrap: balance;
}
.nf-a--hero p { max-width: 60ch; margin: 0 auto; color: #b9bdc4; }
.nf-act { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px; margin-top: 16px; }
.nf-act .btn-cta { pointer-events: auto; }
.nf-hint { font-size: 13.5px; color: #8f959d; }

/* ==================================================================== MOBILE */
/* narrow desktop: the centred mode capsule used to slide under the source
   flank below ~1300px. Same cure as the plugin's own narrow header (0.5.28):
   drop the caption, tighten the pills, then go icon-only on the sources. */
@media (min-width: 821px) and (max-width: 1360px) {
  :where(body:not(.is-mpen)) .hd { grid-template-columns: auto minmax(0, 1fr) auto; }
  :where(body:not(.is-mpen)) .hd-cap { display: none; }
  :where(body:not(.is-mpen)) .pill { padding: 0 14px; }
}
@media (min-width: 821px) and (max-width: 980px) {
  :where(body:not(.is-mpen)) .btn-src { padding: 0 10px; }
  :where(body:not(.is-mpen)) .btn-src span { display: none; }
}

@media (max-width: 820px) {
  :where(body:not(.is-mpen)) .win { --hd-h: 50px; --sb-h: 24px; --strip-h: 86px; --pn-w: 100%; }
  .stage { perspective: none; }
  .ambient { display: none; }
  :where(body:not(.is-mpen)) .win { font-size: 12.5px; }
  :where(body:not(.is-mpen)) .hd { grid-template-columns: auto 1fr auto; gap: 6px; padding: 0 8px; }
  :where(body:not(.is-mpen)) .hd-cap, :where(body:not(.is-mpen)) .ver, :where(body:not(.is-mpen)) #bLang { display: none; }
  :where(body:not(.is-mpen)) .btn-src { padding: 0 9px; height: 30px; }
  :where(body:not(.is-mpen)) .btn-src span { display: none; }
  :where(body:not(.is-mpen)) .grp--modes { padding: 3px; justify-self: center; }
  :where(body:not(.is-mpen)) .pill { padding: 0 9px; height: 32px; font-size: 12.5px; gap: 5px; }
  :where(body:not(.is-mpen)) .pill img { width: 15px; height: 15px; }
  :where(body:not(.is-mpen)) .pill span { display: none; }
  :where(body:not(.is-mpen)) .pill[aria-pressed="true"] span { display: inline; }
  :where(body:not(.is-mpen)) .pill[aria-pressed="true"] { padding: 0 12px; }
  :where(body:not(.is-mpen)) #mHalo[aria-pressed="true"] span, :where(body:not(.is-mpen)) #mPrizma[aria-pressed="true"] span { display: none; }
  :where(body:not(.is-mpen)) #mFocus span { display: inline; }
  :where(body:not(.is-mpen)) .grp { padding: 2px; }
  :where(body:not(.is-mpen)) .hd-src .grp { gap: 0; }
  :where(body:not(.is-mpen)) .grp-sep { margin: 0 3px; }
  :where(body:not(.is-mpen)) .menu { left: 0; }

  :where(body:not(.is-mpen)) .bd { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  :where(body:not(.is-mpen)) .cv-col { grid-template-rows: 24px auto 12px var(--strip-h); }
  :where(body:not(.is-mpen)) .cv-labels { font-size: 11px; padding: 0 8px 3px; }
  :where(body:not(.is-mpen)) .cv-area { container-type: inline-size; padding: 0; }
  :where(body:not(.is-mpen)) .cv-frame { width: 100cqw; }
  :where(body:not(.is-mpen)) .gal { position: absolute; inset: 0; grid-template-columns: 1.6fr 0.9fr 1.6fr 0.9fr; gap: 4px; padding: 0 4px; }
  :where(body:not(.is-mpen)) .gal__i figcaption { font-size: 10px; padding: 10px 6px 4px; }
  :where(body:not(.is-mpen)) .gal__i figcaption span { display: none; }
  :where(body:not(.is-mpen)) .bop { right: 6px; bottom: 6px; padding: 4px 8px; }
  :where(body:not(.is-mpen)) .bop input { width: 70px; height: 24px; }
  :where(body:not(.is-mpen)) .g__brand { margin-bottom: 14px; }
  :where(body:not(.is-mpen)) .strip { padding: 6px; gap: 6px; }
  :where(body:not(.is-mpen)) .strip__empty { margin-top: 20px; }
  :where(body:not(.is-mpen)) .hc { flex-basis: 100px; font-size: 10px; padding: 3px; gap: 2px; }
  :where(body:not(.is-mpen)) .hc img { width: 92px; height: 52px; }
  :where(body:not(.is-mpen)) .hc span { white-space: nowrap; }
  :where(body:not(.is-mpen)) .hc small { display: none; }

  :where(body:not(.is-mpen)) .pn { border-left: 0; border-top: 1px solid #1c1c1c; grid-template-rows: 34px minmax(0, 1fr) auto; }
  :where(body:not(.is-mpen)) .tab { height: 34px; padding: 0 12px; font-size: 12.5px; }
  :where(body:not(.is-mpen)) .pn-body .sec { display: none; }
  :where(body:not(.is-mpen)) .pn-body .sec.is-m, :where(body:not(.is-mpen)) #pKatman .sec:first-child, :where(body:not(.is-mpen)) #pGecmis .sec { display: block; }
  :where(body:not(.is-mpen)) .sec__h { height: 26px; font-size: 12.5px; }
  :where(body:not(.is-mpen)) .work { height: 110px; }
  :where(body:not(.is-mpen)) #prompt { min-height: 70px; }
  :where(body:not(.is-mpen)) .pn-foot { padding: 8px; gap: 6px; }
  :where(body:not(.is-mpen)) .btn-go { height: 38px; }
  :where(body:not(.is-mpen)) .btn-sub { height: 30px; font-size: 12px; }

  :where(body:not(.is-mpen)) .sb { font-size: 11px; }
  :where(body:not(.is-mpen)) .sb__d > span:last-child { display: none; }

}
/* v16 · MOBIL2: a landscape phone (short, touch) is a phone for the page, but the plugin keeps its
   wide two-column layout (one column would put the canvas over the whole 390 px screen) */
@media (max-height: 500px) and (pointer: coarse) {
  .stage { perspective: none; }
  .ambient { display: none; }
}
/* v16 · MOBIL2: in the story the Katmanlar canvas lets a thumb scroll the page; a tap opens the
   plugin full screen, where the brush paints (app.js layer canvas) */
@media (max-width: 820px), (max-height: 500px) and (pointer: coarse) {
  body:not(.is-mfull) .cv-layer { touch-action: pan-y; }
}

@media (max-width: 380px) {
  :where(body:not(.is-mpen)) .hd { gap: 4px; padding: 0 6px; }
  :where(body:not(.is-mpen)) .btn-src { padding: 0 7px; }
  :where(body:not(.is-mpen)) .pill, :where(body:not(.is-mpen)) .pill[aria-pressed="true"] { padding: 0 8px; }
  :where(body:not(.is-mpen)) #mCreate span, :where(body:not(.is-mpen)) #mEdit span { display: none !important; }
}

/* nefes on a phone: the window recedes to a slim column; the frame stacks
   its two names and drops the bars; titles may take two or three lines */
@media (max-width: 820px), (max-height: 500px) and (pointer: coarse) {
  .nf { --nf-gut: 16px; }
  .nf-t, .nf-t h1 { font-size: clamp(24px, 7.4vw, 32px); line-height: 1.12; letter-spacing: -0.028em; }
  .nf-a { font-size: 14.5px; line-height: 1.45; }
  .nf-act { margin-top: 12px; }
  .nf-hint { display: none; }
  .win-sh { border-radius: 20px; }
}
@media (min-width: 821px) and (max-height: 560px) and (pointer: fine) {
  .nf-t, .nf-t h1 { font-size: clamp(22px, 2.4vw, 34px); }
  .nf-a { font-size: 14px; }
  .nf-a--hero p { display: none; }
  .nf-act { margin-top: 0; }
}
[inert], [inert] * { pointer-events: none !important; }

/* touch devices: copy that talks about the mouse swaps for touch wording */
.t-touch { display: none; }
@media (hover: none), (pointer: coarse) {
  .t-fine { display: none; }
  .t-touch { display: inline; }
  /* v16 · MOBIL: the A/B handle's 44 px strip stands in the middle of the screen; a thumb
     that starts there on its way up the page scrolls it (app.js: the handle follows only a
     sideways move). Was touch-action: none, which stopped the page there, portrait or landscape */
  .ab { touch-action: pan-y; }
}

@media (max-height: 760px) and (min-width: 821px) {
  :where(body:not(.is-mpen)) .win { --strip-h: 120px; }
  :where(body:not(.is-mpen)) .work { height: 112px; }
  :where(body:not(.is-mpen)) #prompt { min-height: 70px; }
  :where(body:not(.is-mpen)) .hc img { width: 140px; height: 79px; }
  :where(body:not(.is-mpen)) .hc { flex-basis: 150px; }
}

/* reduced motion: fewer and gentler, not zero */
@media (prefers-reduced-motion: reduce) {
  .hc { animation: none; }
  .is-hint .ab__knob { animation: none; }
}

.nojs { max-width: 760px; margin: 0 auto; padding: 48px 20px; font-family: var(--sc-font-display); }
.nojs img { width: 100%; height: auto; border-radius: 8px; }

/* ===================================================================== KARMA
   v10: A (Nefes) carries the story; borrowed moments from B, C, E and F sit
   inside its breaths. karma.js draws them, app.js times them (one clock). */

/* page words in other modes than "above / below the window" */
.nf-t.nf--l, .nf-a.nf--l { right: auto; padding: 0; text-align: left; }
.nf-t.nf--l { font-size: clamp(26px, 2.45vw, 44px); line-height: 1.1; }
.nf-a p { margin: 0; }
.nf-t--sub { font-size: clamp(24px, 2.3vw, 40px); font-weight: 600; color: #f6f4ef; }
.nf-a--sub { font-size: 13.5px; color: #d6d9de; font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
.nf-parts { display: none; }
.stage.is-xpl { perspective: none; }

/* a generic window, in the plugin's own Qt palette (from C) */
.dw {
  position: absolute; left: 0; top: 0;
  box-sizing: border-box;
  transform-origin: 0 0;
  visibility: hidden;
  background: #232323;
  border: 1px solid #3a3a3a; border-radius: 10px;
  overflow: hidden;
  color: var(--q-ink); font-size: 13px; line-height: 1.35;
  box-shadow: 0 44px 100px -34px rgba(0, 0, 0, 0.88), 0 14px 30px -14px rgba(0, 0, 0, 0.6);
  will-change: transform, opacity;
}
.dw__bar {
  height: 30px; box-sizing: border-box;
  display: flex; align-items: center; gap: 9px;
  padding: 0 10px 0 12px;
  background: #1f1f1f; border-bottom: 1px solid #151515;
  color: #c9c9c9; font-size: 13px; white-space: nowrap;
}
.dw__bar img, .dw__bar > svg { width: 16px; height: 16px; flex: 0 0 auto; display: block; opacity: 0.85; color: #cfcfcf; }
.dw__t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.dw__ctl { display: flex; gap: 6px; }
.dw__ctl i { display: block; width: 10px; height: 10px; border: 1.3px solid #6f6f6f; border-radius: 2px; }
.dw__img { position: relative; aspect-ratio: 16 / 9; background: #1b1b1b; }
.dw__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; -webkit-user-drag: none; }
.dw__info {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0;
  padding: 8px 12px;
  background: rgba(20, 20, 20, 0.84);
  font-size: 12.5px; color: #dadada; font-variant-numeric: tabular-nums;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* C: the grey frame on its way into the plugin */
.xfer {
  position: absolute; left: 0; top: 0; z-index: 25;
  transform-origin: 0 0;
  visibility: hidden; pointer-events: none;
  object-fit: cover; display: block;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35), 0 24px 60px -18px rgba(0, 0, 0, 0.85);
  will-change: transform, opacity;
}

/* lines and labels (F's drawing language) */
.lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.lines__lead { fill: none; stroke: rgba(234, 231, 224, 0.66); stroke-width: 1; }
.lines__dot { fill: #efece6; }
.lines__asm { fill: none; stroke: rgba(234, 231, 224, 0.32); stroke-width: 1; stroke-dasharray: 3 4; }
.lb { position: absolute; left: 0; top: 0; max-width: 210px; opacity: 0; font-family: var(--sc-font-display); pointer-events: none; }
.lb b { display: block; font-size: 13.5px; line-height: 18px; font-weight: 600; color: #efece6; letter-spacing: -0.005em; white-space: nowrap; }
.lb span { display: block; margin-top: 1px; font-size: 12.5px; line-height: 16px; color: #aeb3ba; }
.lb--L { text-align: right; }
.is-narrow .lb { max-width: 150px; }
.is-narrow .lb b { white-space: normal; }

/* the pain point: a render's three layers */
.tri { position: absolute; inset: 0; z-index: 20; pointer-events: none; visibility: hidden; }
.tri__stack { position: absolute; left: 0; top: 0; transform-origin: 50% 50%; transform-style: preserve-3d; will-change: transform; }
.tri__pl {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  background: #1d1d1d;
  box-shadow: 0 0 0 1px rgba(234, 231, 224, 0.3), 0 40px 70px -30px rgba(0, 0, 0, 0.8);
  will-change: transform;
}
.tri__im { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.tri__im--doku { filter: contrast(0.58) brightness(1.17) saturate(0.8); }
.tri__im--isik { filter: grayscale(1) contrast(1.38) brightness(0.9); }
.tri.is-flat .tri__stack { transform-style: flat; }
.tri__lb.is-under { text-align: center; }
.tri__lb.is-under b { white-space: normal; }

/* F: labels of the exploded request */
.xlb { position: absolute; inset: 0; z-index: 20; pointer-events: none; visibility: hidden; }

/* F: the plugin window explodes into its parts (desktop) */
.win.is-x { overflow: visible; contain: none; }
.win.is-x, .is-x .win__in, .is-x .bd, .is-x .cv-col, .is-x .cv-area, .is-x .cv-frame, .is-x .cv-zoom,
.is-x .pn, .is-x .pn-body { transform-style: preserve-3d; }
.is-x .cv-frame { overflow: visible; isolation: auto; }
.is-x .pn-body { overflow: visible; }
.is-x .sec, .is-x .tabs { background: var(--q-bg2); }
.is-x .hd, .is-x .tabs, .is-x .sec, .is-x .pn-foot, .is-x .strip, .is-x .cv-img,
.is-x .sb, .is-x .cv-frame { box-shadow: 0 0 0 1px rgba(234, 231, 224, 0.24); }
.is-x .hd, .is-x .tabs, .is-x .sec, .is-x .pn-foot, .is-x .strip, .is-x #imgA, .is-x .cv-frame { will-change: transform; }
.is-x .win-dim { display: none; }

/* B: the photo past the window's edges */
.bleed { position: absolute; inset: 0; z-index: 20; pointer-events: none; visibility: hidden; }
.bleed__ap { position: absolute; inset: 0; overflow: hidden; }
.bleed__img { position: absolute; left: 0; top: 0; transform-origin: 0 0; max-width: none; display: block; will-change: transform; }
.bleed__scrim {
  position: absolute; inset: 0; opacity: 0;
  background:
    linear-gradient(to top, rgba(9, 10, 11, 0.84) 0%, rgba(9, 10, 11, 0.52) 20%, rgba(9, 10, 11, 0) 44%),
    linear-gradient(to bottom, rgba(9, 10, 11, 0.62) 0%, rgba(9, 10, 11, 0) 15%);
}

/* E: two windows, the reader picks one */
.duo { position: absolute; inset: 0; z-index: 20; pointer-events: none; }
.dw--duo { cursor: pointer; transition: border-color 160ms var(--ease); }
.dw--duo.is-live { pointer-events: auto; }
.dw__pick {
  position: absolute; left: 50%; bottom: 14px; translate: -50% 0;
  display: inline-flex; align-items: center; height: 34px; padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.24); border-radius: 999px;
  background: rgba(22, 23, 25, 0.9); color: #f1efea;
  font-family: var(--sc-font-display); font-size: 13.5px; font-weight: 600; white-space: nowrap;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .dw--duo.is-live:hover { border-color: #6b6f76; }
  .dw--duo.is-live:hover .dw__pick { background: #f0eeea; color: #141517; border-color: #f0eeea; }
}
.dw__pick:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 2px; }

/* C: result windows cascade */
.cas { position: absolute; inset: 0; z-index: 20; pointer-events: none; }

/* measurement card: it only exists when CONFIG.olcum is filled in */
.olc { display: inline-block; margin-top: 18px; padding: 14px 18px 13px; border: 1px solid #3b3e44; border-radius: 10px; background: rgba(21, 22, 24, 0.92); text-align: left; }
.olc__n { margin: 0; font-family: var(--sc-font-display); font-size: 46px; line-height: 1; font-weight: 600; letter-spacing: -0.03em; color: #f3f1ec; font-variant-numeric: tabular-nums; }
.olc__m { margin: 7px 0 0; font-size: 13px; line-height: 1.4; color: #aeb3ba; }
.olc__demo { margin: 8px 0 0; font-size: 12px; color: var(--q-warn); }

@media (max-width: 820px), (max-height: 500px) and (pointer: coarse) {
  .dw { border-radius: 8px; }
  .dw__bar { height: 26px; font-size: 11.5px; gap: 7px; padding: 0 8px 0 9px; }
  .dw__info { padding: 5px 8px; font-size: 11px; }
  .dw__pick { height: 32px; padding: 0 13px; font-size: 13px; bottom: 10px; }
  .nf-parts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin: 12px 0 0; padding: 0; list-style: none; text-align: left; font-size: 13px; line-height: 1.35; color: #aeb3ba; }
  .nf-parts b { display: block; color: #ebe8e2; font-weight: 600; }
  .nf-t--sub { font-size: clamp(22px, 6.4vw, 28px); }
  .nf-a--sub { font-size: 12.5px; }
  .lb b { font-size: 12.5px; line-height: 16px; white-space: normal; }
  .lb span { font-size: 11.5px; line-height: 15px; }
  .olc__n { font-size: 38px; }
}
@media (min-width: 821px) and (max-height: 560px) and (pointer: fine) {
  .nf-t.nf--l { font-size: clamp(20px, 2.2vw, 30px); }
}

/* ======================================================================= v11
   tasarım turu (2-HAKEM-KARARI.md). The page is a web site with the plugin
   standing in it: a site bar that never hides (K3), the window full screen
   only at the peak, the history and the prices as plain web sections. */

html { scroll-behavior: auto; }          /* far jumps are instant (K14) */
:root { --hb: 72px; }   /* v14 · UST: the band (topbar.css), app.js writes the measured value */
@media (max-width: 820px), (max-height: 520px) { :root { --hb: 56px; } }

/* the plugin's controls rest only while a borrowed moment owns the stage */
.is-busy .win * { pointer-events: none !important; }

/* v12 · T, v13 · Ü: the site bar rules live in topbar.css */
.skip { z-index: 120; }

/* the story act starts under the bar; its anchor marks chapter 1 */
.anchor { position: absolute; left: 0; width: 1px; height: 1px; pointer-events: none; }
#fiyat, #gerek { scroll-margin-top: var(--hb); }

/* ------------------------------------------------------------ the page's words */
.nf { z-index: 30; }
.nf-a { color: #b9bec5; }
.nf-a--key { font-size: clamp(19px, 1.35vw, 21px); line-height: 1.5; color: #d2d6db; }
.nf-copy { margin-top: 14px !important; font-size: 16px; color: #a9afb7; }
.nf-req { font-family: var(--sc-font-text); font-size: 15px; color: #d6d9de; }
.nf-act a.btn-cta { text-decoration: none; }
.nf-hint { margin: 10px 0 0; font-size: 14px; color: #a2a8b0; }
.nf-meta { margin-top: 12px !important; font-size: 15px; color: var(--sc-accent); font-variant-numeric: tabular-nums; }
.nf-chip { display: flex; align-items: center; gap: 12px; margin-top: 16px !important; }
.nf-chip__btn { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 3px; background: #dfe2e6; color: #17181a; font-family: var(--sc-font-text); font-size: 14.5px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nf-chip__tl { font-size: 16px; color: #d6d9de; font-variant-numeric: tabular-nums; }
.nf-t.nf--l { font-size: clamp(28px, 2.35vw, 42px); }
.nf-a.nf--l { font-size: clamp(16px, 1.2vw, 18px); line-height: 1.55; }
.nf-a.nf--l.nf-a--key { font-size: clamp(19px, 1.35vw, 21px); }
/* the peak's line, in the strip's empty part (desktop) or under the enlarged canvas (phone) */
.nf-t--peak { font-size: clamp(17px, 1.45vw, 22px); line-height: 1.32; font-weight: 600; letter-spacing: -0.012em; color: #f3f1ec; text-wrap: balance; }
.nf-t.nf--peak { right: auto; padding: 0; text-align: left; }
/* the borrowed moments' labels are page text: readable sizes (K8) */
.lb { max-width: 250px; }
.lb b { font-size: 16px; line-height: 21px; }
.lb span { font-size: 15px; line-height: 20px; color: #b9bec5; }
.is-narrow .lb { max-width: 170px; }
/* K6: in the cascade a covered card shows no half-cut line */
.cas .dw:not(:last-child) .dw__info { visibility: hidden; }
/* the reader's full screen: the page's words step back */
.is-mfull .nf, .is-mfull .tri, .is-mfull .xlb, .is-mfull .bleed, .is-mfull .duo, .is-mfull .cas, .is-mfull .xfer, .is-mfull #vpw { visibility: hidden !important; }

/* visible "taslak" mark (CONFIG.taslakIsaret, K28) */
.tslk { display: none; }
.tslk-on .tslk {
  display: inline-block; margin-left: 8px; padding: 2px 6px; border-radius: 3px;
  background: #3a3220; color: #f1d78a; border: 1px solid #6b5a2e;
  font-family: var(--sc-font-text); font-size: 12.5px; font-weight: 600; line-height: 1.3; letter-spacing: 0.01em;
  vertical-align: 0.15em; white-space: nowrap; text-transform: none;
}

/* "Kendiniz deneyin": outside the window, never over its controls (K12) */
.try {
  position: absolute; left: 0; top: 0; z-index: 35;
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 16px 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 999px;
  background: rgba(24, 25, 27, 0.94); color: #f1efea;
  font-family: var(--sc-font-display); font-size: 14.5px; font-weight: 600; white-space: nowrap;
  opacity: 0; pointer-events: none; visibility: hidden;
  transition: opacity 180ms var(--ease), visibility 0s linear 180ms, background-color 160ms var(--ease);
}
.try.is-on { opacity: 1; pointer-events: auto; visibility: visible; transition: opacity 180ms var(--ease), visibility 0s, background-color 160ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .try:hover { background: #f0eeea; color: #141517; } }
@media (max-width: 820px), (max-height: 500px) and (pointer: coarse) { .try { height: 44px; padding: 0 16px 0 13px; font-size: 14.5px; } }

/* ============================================================ web sections */
.web { position: relative; z-index: 2; background: var(--sc-canvas); color: var(--sc-ink); font-family: var(--sc-font-text); }
.web__in { max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.web__h { margin: 0 0 10px; font-family: var(--sc-font-display); font-size: clamp(32px, 3vw, 44px); line-height: 1.1; font-weight: 600; letter-spacing: -0.02em; color: #f3f1ec; outline: none; }
.web__lead { margin: 0 0 26px; max-width: 720px; font-size: 18px; line-height: 1.5; color: #c4c8ce; }

/* v12 (birleştirme): the old price rules (.px-*, .web--fiyat) matched nothing after F moved the section to fiyat.css; removed.
   v14: the Kayıtlar section's (.rec*, .web--kayit) and the old footer's (.foot*) rules left with them (KATALOG, FIYAT) */
/* phones: the page's words keep a readable size (K7, 4.6) */
@media (max-width: 820px), (max-height: 500px) and (pointer: coarse) {
  .nf-a { font-size: 16px; line-height: 1.45; }
  .nf-a--key { font-size: 19px; }
  .nf-parts { font-size: 15px; }
  .nf-parts b { font-size: 15px; }
  .nf-a--sub { font-size: 14px; }
  .lb b { font-size: 15px; line-height: 19px; }
  .lb span { font-size: 14px; line-height: 18px; }
  .nf-chip { display: none; }
  .nf-copy { font-size: 15px; }
}
@media (min-width: 821px) and (max-height: 560px) and (pointer: fine) {
  .nf-a { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .try, .try.is-on { transition: none; }
}

/* hero: the answer and its hint sit centred under the window (v10 left them to the left) */
.nf-a.nf-a--hero p { margin-left: auto; margin-right: auto; }
.nf-a.nf-a--hero .nf-hint { margin: 12px auto 0; text-align: center; }
/* the column's copy of the Oluştur button follows its state */
.nf-chip__btn.is-off { background: #383838; color: #9a9a9a; border: 1px solid #4a4a4a; }

/* the photo's record line, a little larger */
.nf-a.nf-a--sub { font-size: 15px; }
@media (max-width: 820px), (max-height: 500px) and (pointer: coarse) { .nf-a.nf-a--sub { font-size: 14px; } }

/* the draft mark reads at 14 px at least (K18, 4.3) */
.tslk-on .tslk { font-size: 14px; }
/* ===================================================== v11 · adım 7 (Hakem 6) */
/* Z2 (the manual-mode bar) moved to topbar.css (v12 · T) */
/* Z3: the phone's peak. The handle's fade is driven per frame, no lag */
.is-pkc .ab { transition: none; }
.nf-a.nf-a--peak { font-size: 15px; line-height: 1.4; color: #c4c9cf; font-variant-numeric: tabular-nums; }
.nf-a.nf--peak { right: auto; padding: 0; text-align: left; }
/* Z1: the review view (?taslak=1) says what it is */
.tslk-banner {
  max-width: 760px; box-sizing: border-box; margin: 0 0 28px; padding: 14px 18px;
  font-size: 16px; line-height: 1.5; color: var(--sc-draft-ink, #4A3A00); background: var(--sc-draft-bg, #F2DF9A); border: 1px solid var(--sc-draft-line, #B8963A); border-radius: 10px;
}

/* ======================================================================= v14
   KURGU (V14-SOZLESME.md, brief 3, 5, 6): the first screen, the standing
   window's band of words, the hint under the biggest window, the interludes'
   layer. Colours come from theme.css (SAHNE); nothing here is green. */

/* the first screen (cooldock): a big, tight, bold two-line title, one line
   under it, the two buttons right under that, a small line of facts */
.nf-t.nf--ust, .nf-a.nf--ust { padding: 0 var(--nf-gut); text-align: center; will-change: auto; }   /* the glass button needs an ancestor without will-change: opacity (UST) */
.nf-t.nf--ust h1, .nf-t.nf--ust {
  font-family: var(--sc-font-display); font-weight: 720;
  font-size: clamp(40px, 4.6vw, 150px); line-height: 0.98; letter-spacing: -0.048em;
  color: var(--sc-ink); text-wrap: balance;
}
.nf-ust__l { display: block; }
.nf-a.nf--ust > p:first-child {
  max-width: 54ch; margin: 0 auto;
  font-family: var(--sc-font-text); font-size: clamp(16px, 1.32vw, 34px); line-height: 1.45;
  color: var(--sc-ink-soft); text-wrap: balance;
}
.nf-a.nf--ust .nf-act { justify-content: center; gap: 12px; margin-top: clamp(16px, 1.6vw, 40px); }
.nf-a.nf--ust .nf-act .btn, .nf-a.nf--ust .nf-act .btn-cta { pointer-events: auto; }
.nf-a.nf--ust .nf-req {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px clamp(14px, 1.6vw, 40px);
  max-width: none; margin: clamp(14px, 1.3vw, 32px) auto 0;
  font-family: var(--sc-font-text); font-size: clamp(13px, 0.92vw, 24px); line-height: 1.4;
  color: var(--sc-ink-mute);
}
/* v19 · KURGU3: the facts line is three labelled facts (Kaynak, Modeller, Gereksinim): the label in
   the ink, its value a step lighter; on the full-bleed render the consistency sentence (CONFIG
   tutarlilik) stands over the request's line */
.nf-a.nf--ust .nf-req > span > b { font-weight: 650; color: var(--sc-ink); margin-right: 0.45em; }
.nf-a.nf-a--sub .nf-tutar { display: block; font-family: var(--sc-font-text); font-size: 1.14em; line-height: 1.4; color: var(--sc-on-photo); }
.nf-a.nf-a--sub .nf-rec { display: block; margin-top: 0.4em; }
.tri.is-dar .tri__lb span { display: none; }   /* a short screen: the three plates keep their names only (karma.js layoutTri) */
.nf-a.nf-a--sub .nf-tutar, .nf-a .nf-rec, .nf-a .nf-meta, .nf-chip .nf-chip__tl { font-variant-numeric: lining-nums proportional-nums; }   /* tabular figures spaced the commas, colons and periods apart ("Kayıt :", "3 , 40 TL") */
/* the hint under the window at its biggest */
.nf-a.nf-a--ipucu { font-size: clamp(14px, 1vw, 26px); color: var(--sc-ink-soft); }

/* the standing window's band: title left, answer right, on the window's top edge */
.nf-t.nf--band, .nf-a.nf--band { right: auto; padding: 0; text-align: left; }
.nf-t.nf--band { font-size: clamp(28px, 2.5vw, 64px); line-height: 1.06; }
.nf-a.nf--band { font-size: clamp(16px, 1.15vw, 30px); line-height: 1.5; text-wrap: pretty; }
.nf-a.nf--band .nf-copy { margin-top: 0.6em !important; font-size: 0.92em; }
.nf-a.nf--band .nf-chip { margin-top: 0.75em !important; }
.nf-a.nf--band .nf-meta { margin-top: 0.6em !important; font-size: 0.9em; }

/* the interludes: above the window, the page's words and the chip, under the site bar
   (GECE: its night covers the stage; a yazi-* moment is transparent around its sentence) */
.ara-katman { position: absolute; inset: 0; z-index: 40; pointer-events: none; }
.ara-katman > .ara { position: absolute; inset: 0; }
.ara-katman.is-ara > .ara:not([hidden])[data-ara="sarmal"], .ara-katman.is-ara > .ara:not([hidden])[data-ara="yorunge"] { pointer-events: auto; }   /* KATALOG: drag, click, the closer look */
.ara-katman > .ara[hidden] { display: none !important; }

@media (max-width: 820px), (max-height: 500px) and (pointer: coarse) {
  .nf-t.nf--ust h1, .nf-t.nf--ust { font-size: clamp(30px, 8.6vw, 40px); line-height: 1.02; letter-spacing: -0.04em; }
  .nf-a.nf--ust > p:first-child { font-size: 15.5px; }
  .nf-a.nf--ust .nf-act { gap: 10px; }
  .nf-a.nf--ust .nf-req { font-size: 13px; gap: 2px 12px; }
}
@media (min-width: 821px) and (max-height: 560px) and (pointer: fine) {
  .nf-t.nf--ust h1, .nf-t.nf--ust { font-size: clamp(28px, 3.4vw, 44px); }
  .nf-a.nf--ust > p:first-child { display: none; }
}
