/* LLL — "let's talk": the client's lets-talk window, PLASTIC version
   (assets/form-concepts/lets-talk-PLASTIC-simple-4k.png). The window is her
   graphic itself (client: my CSS copy never matched it), with the working
   parts laid over it. Behaviour: lets-talk.js.
   The Windows 95 version: backups/2026-11-14-v131n-formularz-win95/.

   Everything inside is sized in --u = 1/100 of the window's width (set by
   lets-talk.js), so the window keeps the proportions of her graphic
   (2265 × 3351) at any size. Measured from her file: 1u = 22.65 px there. */

.lt {
  --chrome: #eef0f3;        /* window frame and title bar — light, as her file */
  --pane: #eff1f4;          /* the content pane */
  --field: #f3f4f7;         /* fields: almost white, inset */
  --ink: #0d0d0f;
  --ink-2: #4a4c52;
  --ink-3: #6b6e75;
  --aqua: #3a86e8;
  --aqua-deep: #1f5fc8;
  --wine: #7b0f28;          /* Send — the burgundy of her graphic */
  --u: 3px;
  position: fixed;
  inset: 0;
  z-index: 50;
  font-family: "Lucida Grande", "Lucida Sans Unicode", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
}
.lt[hidden] { display: none; }
.lt.is-minimized { pointer-events: none; }
.lt.is-minimized .lt-task { pointer-events: auto; }

.lt-dim {
  position: absolute;
  inset: 0;
  background: rgba(8, 6, 6, .42);
  opacity: 0;
  transition: opacity .12s ease;
}
.lt.is-open .lt-dim { opacity: 1; }
.lt.is-minimized .lt-dim, .lt.is-leaving .lt-dim { opacity: 0; transition-duration: .34s; }

/* ─── The window: her graphic, with working parts laid over it ─────────── */
.lt-win {
  --img: url("../media/dial/lets-talk-plastic.webp?v=1");
  position: absolute;
  left: 0;
  top: 0;
  width: calc(var(--u) * 100);
  aspect-ratio: 2265 / 3351;
  background: var(--img) 0 0 / 100% 100% no-repeat;
  /* Her file has desktop blue in the corners: the window's own rounding. */
  border-radius: calc(var(--u) * 2.5) calc(var(--u) * 2.5) calc(var(--u) * 2.2) calc(var(--u) * 2.2);
  box-shadow: 0 calc(var(--u) * 3) calc(var(--u) * 9) rgba(0,0,0,.45);
  visibility: hidden;
}
.lt.is-open:not(.is-minimized) .lt-win.is-shown { visibility: visible; }
.lt-win:focus { outline: none; }
.lt-win form { margin: 0; }

/* Every overlay sits on its spot in her drawing (u, measured from her file). */
.ov {
  position: absolute;
  left: calc(var(--u) * (var(--x) + var(--dx, 0)));   /* --dx / --dy: its place in the laptop window (below) */
  top: calc(var(--u) * (var(--y) + var(--dy, 0)));
  width: calc(var(--u) * (var(--w) + var(--dw, 0)));   /* --dw: how much wider in the laptop window (below) */
  height: calc(var(--u) * var(--h));
  margin: 0;
  box-sizing: border-box;
}
/* A patch shows a clean piece of her drawing from (--sx, --sy) — the same
   field a little further right — over a painted word that has to change.
   The piece sits on ::before (soft-edged), any new text on top of it. */
.patch { visibility: hidden; isolation: isolate; }
.patch.is-on { visibility: visible; }
.patch::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--img);
  background-repeat: no-repeat;
  background-size: calc(var(--u) * var(--imgw, 100)) auto;
  background-position: calc(var(--u) * (var(--sx) + var(--dx, 0)) * -1) calc(var(--u) * (var(--sy) + var(--dy, 0)) * -1);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 calc(var(--u) * .35), #000 calc(100% - var(--u) * 1.1), transparent);
  mask-image: linear-gradient(90deg, transparent 0, #000 calc(var(--u) * .35), #000 calc(100% - var(--u) * 1.1), transparent);
}
/* Under her painted bead: a round, soft patch, so no square edge shows. */
.patch.is-round::before {
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0 calc(var(--u) * 3.1), transparent calc(var(--u) * 3.6));
  mask-image: radial-gradient(circle at 50% 50%, #000 0 calc(var(--u) * 3.1), transparent calc(var(--u) * 3.6));
}

.mac-bar { touch-action: none; user-select: none; -webkit-user-select: none; }

/* Traffic lights: the beads are hers; over the group the ×, − and + appear,
   a press darkens the bead, and while an alert sheet is up (the window
   inactive) they turn grey — as Mac OS X does. */
.mac-light {
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: var(--cur-hand, pointer);
  -webkit-appearance: none;
  appearance: none;
  touch-action: manipulation;
}
.mac-light::after {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font: 700 calc(var(--u) * 3.1)/1 "Lucida Grande", "Helvetica Neue", Arial, sans-serif;
  color: rgba(70, 0, 0, .78);
  opacity: 0;
  transition: opacity .12s ease;
}
.mac-close::after { content: "×"; }
.mac-min::after   { content: "−"; color: rgba(90, 50, 0, .78); }
.mac-zoom::after  { content: "+"; color: rgba(10, 60, 0, .78); }
.mac-lights:hover .mac-light::after, .mac-light:focus-visible::after { opacity: 1; }
.mac-light:active { background: rgba(0,0,0,.22); }
.mac-light:focus { outline: none; }
.lt.is-inactive .mac-light {
  background:
    radial-gradient(ellipse 52% 30% at 50% 21%, rgba(255,255,255,.95), rgba(255,255,255,0) 80%),
    radial-gradient(circle at 50% 96%, #eceef1, #c9cbd0 45%, #c3c5ca 62%, #8e9096);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.25);
}

/* Pop-up menus: her drawn field and stepper; the button is transparent.
   A chosen answer covers her grey placeholder with a patch of the field. */
.mac-select-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: calc(var(--u) * 1.4);
  background: transparent;
  cursor: var(--cur-hand, pointer);
  font: inherit;
  text-align: left;
  -webkit-appearance: none;
  appearance: none;
  touch-action: manipulation;
}
.mac-select-face:focus { outline: none; }
.mac-select-face:focus-visible, .mac-select.is-open .mac-select-face { box-shadow: 0 0 0 3px rgba(58,134,232,.55); }
.mac-select-value {
  position: absolute;
  display: flex;
  align-items: center;
  padding-left: calc(var(--u) * .45);
  font-size: calc(var(--u) * 3.75);
  color: #1d1d1f;
  white-space: nowrap;
  overflow: visible;   /* a longer answer runs on over the plain field */
}
.mac-select:not(.is-empty) .mac-select-value { visibility: visible; }
.mac-select.is-empty .mac-select-value { visibility: hidden; }

/* Its menu: white, rounded, the chosen item ticked, the one under the
   pointer in Aqua blue. */
.mac-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 3;
  margin: 0;
  padding: calc(var(--u) * .9) 0;
  list-style: none;
  border-radius: calc(var(--u) * 1.3);
  background: rgba(252, 252, 253, .98);
  box-shadow: 0 0 0 1px rgba(0,0,0,.14), 0 calc(var(--u) * 2) calc(var(--u) * 5) rgba(0,0,0,.28);
}
.mac-list[hidden] { display: none; }
.mac-list li {
  position: relative;
  padding: calc(var(--u) * 1.2) calc(var(--u) * 2.2) calc(var(--u) * 1.2) calc(var(--u) * 6);
  font-size: calc(var(--u) * 3.7);
  line-height: 1.15;
  cursor: var(--cur-hand, pointer);
}
.mac-list li small { display: block; margin-top: calc(var(--u) * .4); font-size: calc(var(--u) * 3); color: var(--ink-3); }
.mac-list li[aria-selected="true"]::before {
  content: "✓";
  position: absolute;
  left: calc(var(--u) * 2.2);
  top: calc(var(--u) * 1.2);
}
.mac-list li.is-active { background: linear-gradient(#5b9cf0, var(--aqua-deep)); color: #fff; }
.mac-list li.is-active small { color: rgba(255,255,255,.85); }

/* Budget: her "€5k / month" until the slider moves; her own bead (a crop
   of her pixels at the start of the track) rides the track. */
.lt-budget-out {
  display: flex;
  align-items: center;
  font-size: calc(var(--u) * 4.2);
  color: #111;
  white-space: nowrap;
}
.lt-bead {
  --bx: 12.3;
  left: calc(var(--u) * var(--bx));
  background-image: var(--img);
  background-repeat: no-repeat;
  background-size: calc(var(--u) * var(--imgw, 100)) auto;
  background-position: calc(var(--u) * -12.3) calc(var(--u) * -58.3);
  border-radius: 50%;
  pointer-events: none;
}
.mac-range {
  -webkit-appearance: none;
  appearance: none;
  padding: 0;
  background: transparent;
  cursor: var(--cur-hand, pointer);
  touch-action: none;
}
.mac-range:focus { outline: none; }
.mac-range::-webkit-slider-runnable-track { height: 100%; background: transparent; }
.mac-range::-moz-range-track { height: 100%; background: transparent; }
.mac-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: calc(var(--u) * 5);
  height: 100%;
  border: 0;
  border-radius: 50%;
  background: transparent;
}
.mac-range::-moz-range-thumb { width: calc(var(--u) * 5); height: 100%; border: 0; border-radius: 50%; background: transparent; }
.mac-range:focus-visible + * , .mac-range:focus-visible { outline: none; }

/* Text fields: her drawn fields; typing shows over them, and an Aqua blue
   glow marks the one in use. */
.mac-field {
  padding: 0 calc(var(--u) * 2.3);
  border: 0;
  border-radius: calc(var(--u) * 1.4);
  background: transparent;
  font: inherit;
  font-size: calc(var(--u) * 3.8);
  color: #1d1d1f;
  -webkit-appearance: none;
  appearance: none;
}
.mac-field:focus { outline: none; box-shadow: 0 0 0 3px rgba(58,134,232,.5); }
.lt-area {
  padding: calc(var(--u) * 1.8) calc(var(--u) * 2.3);
  resize: none;
  touch-action: pan-y;
  line-height: 1.3;
}

/* Send: her pill; pressing darkens it. */
.mac-pill {
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: var(--cur-hand, pointer);
  -webkit-appearance: none;
  appearance: none;
  touch-action: manipulation;
}
.mac-pill:active { background: rgba(40, 0, 10, .22); }
.mac-pill:focus { outline: none; }
.mac-pill:focus-visible { box-shadow: 0 0 0 3px rgba(58,134,232,.55); }
.lt-send[aria-busy="true"] { cursor: progress; }

/* The OK button of the alert sheet is drawn in CSS, in her Send's colours. */
.lt-msg-ok {
  min-width: calc(var(--u) * 20);
  height: calc(var(--u) * 7.2);
  font: 700 calc(var(--u) * 3.9)/1 "Lucida Grande", "Helvetica Neue", Arial, sans-serif;
  color: #fff;
  text-shadow: 0 -1px 0 rgba(0,0,0,.35);
  background:
    linear-gradient(rgba(255,255,255,.55), rgba(255,255,255,.18) 46%, rgba(255,255,255,0) 50%),
    linear-gradient(#b8405e, #8a1532 49%, #6c0b21 51%, #7a1029 85%, #932040);
  box-shadow: inset 0 0 0 1px rgba(60,0,15,.55), 0 2px 4px rgba(0,0,0,.25);
}
.lt-msg-ok:active { filter: brightness(.85); background:
    linear-gradient(rgba(255,255,255,.55), rgba(255,255,255,.18) 46%, rgba(255,255,255,0) 50%),
    linear-gradient(#b8405e, #8a1532 49%, #6c0b21 51%, #7a1029 85%, #932040); }

/* ─── Alert sheet: slides down from under the title bar ────────────────── */
.lt-msg {
  position: absolute;
  z-index: 5;
  padding: calc(var(--u) * 4) calc(var(--u) * 4) calc(var(--u) * 3.2);
  border-radius: 0 0 calc(var(--u) * 1.4) calc(var(--u) * 1.4);
  background: linear-gradient(#f1f2f5, #e3e5ea);
  box-shadow: 0 0 0 1px rgba(0,0,0,.16), 0 calc(var(--u) * 2) calc(var(--u) * 6) rgba(0,0,0,.35);
  transform-origin: top center;
  animation: lt-sheet .28s cubic-bezier(.2, .8, .25, 1);
}
.lt-msg[hidden] { display: none; }
@keyframes lt-sheet { from { transform: scaleY(.15); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .lt-msg { animation: none; } }
.lt-msg-body { display: flex; gap: calc(var(--u) * 3.5); align-items: flex-start; }
.lt-msg-text { font-size: calc(var(--u) * 3.8); line-height: 1.3; min-width: 0; }
.lt-msg-text p { margin: 0; }
.lt-msg-text .lt-msg-head { font-weight: 700; }
.lt-msg-text ol { margin: calc(var(--u) * 2) 0 0; padding: 0; list-style: none; color: var(--ink-2); }
.lt-msg-text li + li { margin-top: calc(var(--u) * .7); }
/* The alert icon: a glossy burgundy heart — never a warning sign, so a
   missing field reads as a friendly nudge (client). */
.lt-msg-ico {
  flex: none;
  width: calc(var(--u) * 9.5);
  height: calc(var(--u) * 8.6);
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 58'><defs><linearGradient id='g' x1='0' y1='0' x2='0' y2='1'><stop offset='0' stop-color='%23e0587a'/><stop offset='.55' stop-color='%237b0f28'/><stop offset='1' stop-color='%23560a1b'/></linearGradient><linearGradient id='h' x1='0' y1='0' x2='0' y2='1'><stop offset='0' stop-color='%23fff' stop-opacity='.85'/><stop offset='1' stop-color='%23fff' stop-opacity='0'/></linearGradient></defs><path d='M32 56C14 42 2 31 2 17 2 8 9 2 17 2c6 0 11 3 15 9 4-6 9-9 15-9 8 0 15 6 15 15 0 14-12 25-30 39z' fill='url(%23g)' stroke='%23400713' stroke-width='1.5'/><path d='M10 14c2-6 9-8 14-5-5 1-9 4-11 10z' fill='url(%23h)'/><ellipse cx='45' cy='12' rx='6' ry='3.5' fill='url(%23h)' transform='rotate(20 45 12)'/></svg>") center / contain no-repeat;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.25));
}
.lt-msg-foot { display: flex; justify-content: flex-end; margin-top: calc(var(--u) * 3.4); }

/* ─── Minimized: the window in a little dock ───────────────────────────── */
.lt-task {
  position: absolute;
  left: max(12px, env(safe-area-inset-left, 0px));
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 10px 6px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(rgba(255,255,255,.55), rgba(220,224,232,.55));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 0 0 1px rgba(255,255,255,.35), 0 6px 18px rgba(0,0,0,.35);
  font: 11px/1 "Lucida Grande", "Helvetica Neue", Arial, sans-serif;
  color: #1b1c1f;
  cursor: var(--cur-hand, pointer);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .2s ease, transform .25s ease;
}
.lt-task[hidden] { display: none; }
.lt-task.is-in { opacity: 1; transform: none; }
/* A tiny lets-talk window as the dock icon. */
.lt-dock-icon {
  position: relative;
  width: 34px;
  height: 42px;
  border-radius: 6px 6px 3px 3px;
  background: linear-gradient(#f6f7f9, #dfe2e8);
  box-shadow: 0 0 0 1px rgba(0,0,0,.25), 0 2px 4px rgba(0,0,0,.25);
}
.lt-dock-icon i {
  position: absolute;
  top: 4px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #e0302a;
}
.lt-dock-icon i:nth-child(1) { left: 4px; }
.lt-dock-icon i:nth-child(2) { left: 11px; background: #f0a51e; }
.lt-dock-icon i:nth-child(3) { left: 18px; background: #58b630; }
.lt-dock-icon::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 5px;
  height: 6px;
  border-radius: 99px;
  background: var(--wine);
}
.lt-dock-label { text-shadow: 0 1px 0 rgba(255,255,255,.7); }

/* Labels for screen readers only — her graphic shows the words. */
.lt .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}


/* ─── Laptop and tablet held sideways: the phone's window exactly, tall
   and narrow, only larger (client, 2026-11-20, after a widened and a
   two-column try: "the proportions of the phone version, taller and
   narrower"). lets-talk.js sizes it by the screen's height. The widened
   graphic (lets-talk-plastic-mac.webp, poszerz.py) is kept but unused. */
