/* styles.css — gipso kartono skaičiuoklė, statauremontuoju.lt */

:root {
  --accent: #1D4ED8;
  --accent-ink: #16389B;
  --accent-soft: color-mix(in oklab, var(--accent) 9%, white);
  --accent-border: color-mix(in oklab, var(--accent) 35%, white);

  --bg: #F3F2EE;
  --panel: #FFFFFF;
  --ink: #211F1A;
  --muted: #6E6A60;
  --line: #E5E2D9;
  --line-strong: #D4D0C5;

  --b-std: #CFC8B8;
  --b-green: #34A263;
  --b-red: #D64541;
  --b-blue: #3E6FD9;
  --b-esama: #9DA0A0;
  /* trade hues — ONE stable map (docs/22 §6): plan band + cross-section +
     configurator dot + legend + 3D material all read these. Never color-only. */
  --t-screed: #B8B2A6;
  --t-tile: #7FA6B5;
  --t-paint: #E8E2D6;
  --t-laminate: #C8A06A;
  --t-plaster: #D8D2C4;
  --t-facade-eps: #E4D9B8;
  --t-facade-paint: #D6CDBE;
  --t-roof: #8A5A44;
  --c-floor: #CDBFA6;
  --c-ceiling: #EFEFEF;
  /* canvas wall body (structural core) + existing-wall hatch line */
  --wall-core: #B7B0A0;
  --wall-core-line: #837C6E;

  /* canvas surfaces (hoisted so dark theme can remap them) */
  --canvas-bg: #FAF9F5;
  --floor: #FFFFFF;
  --ceil-base: #EFEADF;
  --grid-fine: #F1EFE7;
  --grid-mid: #EBE8DE;
  --grid-major: #DFDBCE;
  --pin-fill: #FFFFFF;
  --hint-bg: #26231D;
  --hint-ink: #FFFFFF;
  --hover-tint: rgba(0,0,0,.05);
  --hover-tint-strong: rgba(0,0,0,.06);
  --sunk: #FBFAF7;
  --sunk-2: #F0EFEA;
  --warn-bg: #FFF6E3;
  --warn-border: #F2DFAE;
  --warn-ink: #6B5418;

  --r: 12px;
  --shadow: 0 1px 2px rgba(28, 25, 18, .05), 0 10px 28px rgba(28, 25, 18, .10);
  --shadow-sm: 0 1px 2px rgba(28, 25, 18, .07);
  --font: 'Manrope', system-ui, sans-serif;

  color-scheme: light;

  --header-h: 56px;
  --panel-w: 384px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.45;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
#root { height: 100%; }

.app { height: 100vh; height: 100dvh; display: flex; flex-direction: column; }

/* ---------- Header ---------- */
.hdr {
  height: var(--header-h); flex: none;
  display: flex; align-items: center; gap: 16px; padding: 0 16px;
  background: var(--panel); border-bottom: 1px solid var(--line);
  z-index: 30; position: relative;
}
.brand { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.brand .logo { font-weight: 800; font-size: 15px; letter-spacing: -.01em; white-space: nowrap; }
.brand .logo em { font-style: normal; color: var(--accent); }
.brand .sub { font-size: 12px; color: var(--muted); white-space: nowrap; }
.hdr-spacer { flex: 1; }
.hdr-price { display: flex; align-items: baseline; gap: 8px; flex: none; white-space: nowrap; }
.hdr-price .lbl { font-size: 12px; color: var(--muted); }
.hdr-price .val { font-weight: 800; font-size: 18px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 10px; padding: 9px 16px; font-weight: 700; font-size: 13.5px;
  border: 1px solid var(--line-strong); background: var(--panel);
  transition: background .15s, border-color .15s, transform .1s, box-shadow .15s;
  white-space: nowrap;
}
.btn:hover { background: #FAF9F6; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn.primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn.ghost { border-color: transparent; }
.btn.ghost:hover { background: rgba(0,0,0,.05); }
.btn.sm { padding: 6px 12px; font-size: 12.5px; border-radius: 8px; }
.btn:disabled { opacity: .45; cursor: default; pointer-events: none; }

.icon-btn {
  width: 36px; height: 36px; border-radius: 9px; display: inline-flex;
  align-items: center; justify-content: center; color: var(--ink);
  transition: background .15s;
}
.icon-btn:hover { background: rgba(0,0,0,.06); }
.icon-btn:disabled { opacity: .3; pointer-events: none; }
.icon-btn svg { width: 19px; height: 19px; }

/* ---------- Main layout ---------- */
.main { flex: 1; display: flex; min-height: 0; position: relative; }

/* Toolbar */
.toolbar {
  flex: none; display: flex; flex-direction: column; gap: 4px; padding: 10px 8px;
  background: var(--panel); border-right: 1px solid var(--line); z-index: 20;
  align-items: center;
}
.toolbar .sep { width: 28px; height: 1px; background: var(--line); margin: 6px 0; }
.tbtn {
  width: 44px; height: 44px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  color: #4A463D; position: relative;
  transition: background .15s, color .15s, box-shadow .15s;
}
.tbtn svg { width: 21px; height: 21px; }
.tbtn:hover { background: rgba(0,0,0,.06); }
.tbtn.active { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.tbtn:disabled { opacity: .3; pointer-events: none; }
.tbtn .tip {
  position: absolute; left: calc(100% + 10px); top: 50%; transform: translateY(-50%);
  background: #26231D; color: #fff; font-size: 12px; font-weight: 600;
  padding: 5px 9px; border-radius: 7px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .12s; z-index: 50;
}
.tbtn:hover .tip { opacity: 1; }

/* Canvas */
.canvas-wrap { flex: 1; position: relative; min-width: 0; overflow: hidden; background: var(--canvas-bg); }
.canvas-wrap svg.world { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; display: block; }
.canvas-wrap.tool-draw svg.world { cursor: crosshair; }
.canvas-wrap.tool-wall svg.world { cursor: crosshair; }
.canvas-wrap.tool-door svg.world, .canvas-wrap.tool-window svg.world { cursor: copy; }
.canvas-wrap.wall-hover svg.world { cursor: move; }
/* keyboard focus ring for tab-selectable 2D surfaces (a11y — 2D works without 3D).
   No ring on mouse focus; a clear accent halo on keyboard focus. */
.kbd-surface { outline: none; cursor: pointer; }
.kbd-surface:focus { outline: none; }
.kbd-surface:focus-visible { outline: none; stroke: var(--accent); stroke-width: 0.34; stroke-opacity: .55; }
polygon.kbd-surface:focus-visible { stroke: var(--accent); stroke-width: 0.06; stroke-opacity: .9; stroke-dasharray: 0.14 0.09; }

.overlay-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

.dim-label {
  position: absolute; transform: translate(-50%, -50%);
  background: #fff; border: 1px solid var(--line-strong); border-radius: 7px;
  font-size: 11.5px; font-weight: 700; padding: 2px 7px; color: #3D3A33;
  pointer-events: auto; cursor: text; white-space: nowrap;
  box-shadow: var(--shadow-sm); font-variant-numeric: tabular-nums;
  transition: border-color .15s, color .15s;
}
.dim-label:hover { border-color: var(--accent); color: var(--accent-ink); }
.dim-label.part-dim { cursor: pointer; border-style: dashed; border-color: #C99A2E; color: #8A6B12; }
.dim-label.part-dim.sel { border-style: solid; border-color: var(--accent); color: var(--accent-ink); }
html[data-theme="dark"] .dim-label.part-dim { color: #E4C36A; border-color: #9C7A2E; }
.dim-input {
  position: absolute; transform: translate(-50%, -50%);
  width: 76px; padding: 4px 8px; font-size: 13px; font-weight: 700; text-align: center;
  border: 2px solid var(--accent); border-radius: 8px; outline: none;
  pointer-events: auto; background: #fff; box-shadow: var(--shadow);
}
.dim-mode {
  position: absolute; transform: translateX(-50%); z-index: 20;
  display: flex; gap: 2px; padding: 2px; background: #26231D; border-radius: 8px;
  box-shadow: var(--shadow); pointer-events: auto; white-space: nowrap;
}
.dim-mode button {
  font-size: 10.5px; font-weight: 700; color: #C9C4BA; padding: 3px 8px;
  border-radius: 6px; line-height: 1.2;
}
.dim-mode button.on { background: var(--accent); color: #fff; }
.room-label {
  position: absolute; transform: translate(-50%, -50%); text-align: center;
  pointer-events: none; color: #57534A; line-height: 1.3;
}
.room-label b { display: block; font-size: 13px; color: #36332C; }
.room-label span { font-size: 11.5px; white-space: nowrap; }

/* Canvas hint (polygon drawing, empty state) */
.canvas-hint {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  background: #26231D; color: #fff; padding: 8px 14px; border-radius: 99px;
  font-size: 12.5px; font-weight: 600; box-shadow: var(--shadow);
  display: flex; gap: 10px; align-items: center; z-index: 10; white-space: nowrap;
  max-width: calc(100% - 24px);
}
.canvas-hint button { color: #FFD9A8; font-weight: 700; }

/* Flash message (transient shared-wall notice over the canvas) */
.flash-layer {
  position: absolute; top: 16px; left: 0; right: 0; z-index: 30;
  display: flex; justify-content: center; pointer-events: none; padding: 0 16px;
}
.flash-toast {
  pointer-events: auto; display: flex; gap: 11px; align-items: flex-start;
  max-width: 440px; background: var(--warn-bg); border: 1px solid var(--warn-border);
  color: var(--warn-ink); border-radius: 12px; padding: 11px 12px 11px 13px;
  box-shadow: var(--shadow); font-size: 12.5px; font-weight: 600; line-height: 1.42;
  opacity: 1; transform: none;
  animation: flash-in .34s cubic-bezier(.2,.9,.3,1);
}
.flash-toast.leaving { animation: flash-out .22s ease-in forwards; }
.flash-toast .fl-ic {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: color-mix(in oklab, var(--warn-ink) 16%, transparent);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; line-height: 1; margin-top: 1px;
}
.flash-toast .fl-body { flex: 1; min-width: 0; }
.flash-toast b { font-weight: 800; }
.flash-toast .fl-close {
  flex: none; margin: -2px -3px 0 2px; width: 20px; height: 20px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center; font-size: 13px;
  color: color-mix(in oklab, var(--warn-ink) 70%, transparent); transition: background .12s, color .12s;
}
.flash-toast .fl-close:hover { background: color-mix(in oklab, var(--warn-ink) 12%, transparent); color: var(--warn-ink); }
@keyframes flash-in { from { opacity: 0; transform: translateY(-12px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes flash-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-8px) scale(.98); } }
@media (prefers-reduced-motion: reduce) {
  /* flash-toast still appears/leaves instantly (these rules already neutralise it). */
  .flash-toast { animation: none; }
  .flash-toast.leaving { animation: none; opacity: 0; }
  /* price total "pop" — show the new figure without the scale bounce. */
  .price-pop { animation: none; }
  /* live cross-section layers + any seg/segmented-control transitions snap instead
     of sliding (the layer-thickness reveal can read as motion sickness). */
  .xlayer { transition: none; }
  .seg button, .bswitch button, .wallvis-ctl .seg button { transition: none; }
  .scene3d-skeleton .spin { animation: none; }
  /* defensive: any 3D auto-orbit / spin animation is disabled too. */
  .scene3d [data-auto-orbit] { animation: none; }
}
@media (max-width: 900px) { .flash-layer { top: 60px; } }

/* Legend */
.legend {
  position: absolute; left: 12px; bottom: 12px; z-index: 10;
  background: rgba(255,255,255,.94); backdrop-filter: blur(6px);
  border: 1px solid var(--line); border-radius: 10px; padding: 8px 11px;
  display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow-sm);
}
.legend .li { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 600; color: #4A463D; }
.legend .dot { width: 10px; height: 10px; border-radius: 3px; flex: none; border: 1px solid rgba(0,0,0,.15); }

/* Zoom controls */
.zoomctl {
  position: absolute; right: 12px; bottom: 12px; z-index: 10;
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-sm);
}
.zoomctl button { width: 38px; height: 36px; display: flex; align-items: center; justify-content: center; transition: background .12s; }
.zoomctl button:hover { background: #F5F4F0; }
.zoomctl button + button { border-top: 1px solid var(--line); }
.zoomctl svg { width: 17px; height: 17px; }
.zoom-pct { font-size: 10.5px; font-weight: 700; color: var(--muted); }

/* ---------- Right panel ---------- */
.panel {
  width: var(--panel-w); flex: none; background: var(--panel);
  border-left: 1px solid var(--line); display: flex; flex-direction: column;
  min-height: 0; z-index: 20;
}
.panel-scroll { flex: 1; overflow-y: auto; padding: 16px 16px 20px; }
.panel h3 { font-size: 15px; font-weight: 800; letter-spacing: -.01em; }
.panel .ptitle { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.panel .psub { font-size: 12px; color: var(--muted); margin-bottom: 14px; }

.field { margin-bottom: 14px; }
.field > label { display: block; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 6px; }
.field .note { font-size: 11.5px; color: var(--muted); margin-top: 5px; }

.seg { display: flex; background: #F0EFEA; border-radius: 10px; padding: 3px; gap: 2px; }
.seg button {
  flex: 1; padding: 7px 4px; border-radius: 8px; font-size: 12.5px; font-weight: 700;
  color: #5A564C; transition: background .15s, color .15s, box-shadow .15s; position: relative;
  text-align: center;
}
.seg button:hover { color: var(--ink); }
.seg button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.seg button:disabled { opacity: .4; cursor: default; pointer-events: none; }
.seg button .mini { display: block; font-size: 10px; font-weight: 600; color: var(--muted); margin-top: 1px; }
.seg.wrap { flex-wrap: wrap; }
.seg.wrap button { flex: 1 1 30%; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  border: 1px solid var(--line-strong); border-radius: 99px; padding: 6px 12px;
  font-size: 12px; font-weight: 700; background: #fff; color: #4A463D;
  transition: border-color .15s, background .15s, color .15s; display: inline-flex; align-items: center; gap: 6px;
}
.chip:hover { border-color: var(--accent); color: var(--accent-ink); }
.chip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }
.chip .cdot { width: 9px; height: 9px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); }

.badge-rek {
  font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
  background: var(--accent); color: #fff; border-radius: 5px; padding: 2px 5px;
  position: absolute; top: -7px; right: 6px;
}

.boardpick { display: flex; gap: 6px; }
.boardpick button {
  flex: 1; border: 1.5px solid var(--line-strong); border-radius: 9px; padding: 7px 4px 6px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-size: 10.5px; font-weight: 700; color: #57534A; line-height: 1.15; text-align: center;
  transition: border-color .15s, background .15s;
}
.boardpick button .sw { width: 22px; height: 13px; border-radius: 4px; border: 1px solid rgba(0,0,0,.14); }
.boardpick button.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }

.numrow { display: flex; align-items: center; gap: 10px; }
.numrow input[type="number"], .numrow input[type="text"] {
  width: 90px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 9px;
  font-weight: 700; font-size: 13.5px; background: #fff;
}
.numrow input:focus { outline: 2px solid var(--accent-border); border-color: var(--accent); }

.tgl { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 0; }
.tgl .tlabel { font-size: 13px; font-weight: 700; }
.tgl .tsub { font-size: 11.5px; color: var(--muted); }
.switch { width: 40px; height: 23px; border-radius: 99px; background: #D9D6CD; position: relative; flex: none; transition: background .15s; }
.switch::after { content: ''; position: absolute; width: 17px; height: 17px; border-radius: 50%; background: #fff; top: 3px; left: 3px; transition: left .15s; box-shadow: var(--shadow-sm); }
.switch.on { background: var(--accent); }
.switch.on::after { left: 20px; }

.surface-price {
  margin-top: 14px; border: 1px solid var(--line); border-radius: var(--r); padding: 11px 13px;
  display: flex; justify-content: space-between; align-items: baseline; background: #FBFAF7;
}
.surface-price .a { font-size: 12px; color: var(--muted); font-weight: 600; }
.surface-price .p { font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; }

.shared-note {
  display: flex; gap: 8px; align-items: flex-start; background: #FFF6E3; border: 1px solid #F2DFAE;
  border-radius: 10px; padding: 9px 11px; font-size: 12px; color: #6B5418; margin-bottom: 14px; font-weight: 600;
  line-height: 1.45;
}
.shared-note b { font-weight: 800; color: #5A4612; }
.side-actions { display: flex; flex-direction: column; align-items: stretch; gap: 8px; margin: -6px 0 16px; }
.side-actions .side-switch { margin: 0; }
.side-actions .ws-ico { font-size: 14px; line-height: 1; margin-right: 2px; }
.side-switch { margin: -6px 0 16px; color: var(--accent); font-weight: 700; }
.wall-tools { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.wall-tools .ws-ico { font-size: 15px; line-height: 1; transform: rotate(90deg); display: inline-block; }
.wall-tools .ws-ico.no-rot { transform: none; }
.wt-hint { font-size: 11px; color: var(--muted); font-weight: 600; line-height: 1.4; margin-top: 1px; }
.wall-tools .del-wall.on { color: #C03A36; }
.wall-tools .del-wall.on .ws-ico { color: #C03A36; }
.wall-tools .del-wall:disabled { color: var(--muted); }
.perim-msg { font-size: 11.5px; line-height: 1.45; color: #8A6B12; background: #FBF3DC;
  border: 1px solid #EBD9A6; border-radius: 8px; padding: 8px 10px; font-weight: 600; }
.perim-msg b { font-weight: 800; color: #6E5410; }

/* construction subheading */
.constr-head { display: flex; align-items: baseline; gap: 8px; font-size: 12px; font-weight: 800; color: var(--ink); margin: 18px 0 12px; padding-top: 15px; border-top: 1px solid var(--line); }
.constr-head span { font-size: 11px; font-weight: 600; color: var(--muted); }

/* small switch variant (per-side on/off) */
.switch.sm { width: 34px; height: 20px; cursor: pointer; }
.switch.sm::after { width: 14px; height: 14px; top: 3px; left: 3px; }
.switch.sm.on::after { left: 17px; }
.switch.sm.lock { opacity: .5; cursor: default; }

/* per-side face cards */
.sides { display: flex; flex-direction: column; gap: 10px; }
.side-card { border: 1px solid var(--line-strong); border-radius: 12px; padding: 11px 12px 12px; background: #FBFAF7; }
.side-card.off { background: #F2F0EA; border-style: dashed; }
.side-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; }
.side-head .nm { font-size: 13px; font-weight: 800; display: flex; align-items: center; gap: 7px; }
.side-head .pin { width: 10px; height: 10px; border-radius: 3px; border: 1px solid rgba(0,0,0,.15); }
.face-ctl { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.face-ctl:last-of-type { margin-bottom: 0; }
.face-ctl .fl { flex: 0 0 60px; font-size: 11px; font-weight: 700; color: var(--muted); line-height: 1.2; }
.face-ctl .seg { flex: 1; min-width: 0; }
.face-brd { margin-bottom: 8px; }
.face-brd .fl { display: block; font-size: 11px; font-weight: 700; color: var(--muted); margin-bottom: 5px; }
.copy-side { margin-top: 11px; font-size: 11.5px; font-weight: 700; color: var(--accent); display: inline-flex; align-items: center; gap: 5px; }
.copy-side:hover { text-decoration: underline; }
.add-side { width: 100%; padding: 10px; border: 1px dashed var(--line-strong); border-radius: 9px; font-size: 12.5px; font-weight: 700; color: var(--accent); background: transparent; }
.add-side:hover { border-color: var(--accent); background: var(--accent-soft); }

/* compact wall action toolbar */
.wtools { margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--line); }
.wtools.top { margin-top: 2px; padding-top: 0; border-top: none; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.wt-label { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 8px; }
.wtbar { display: flex; gap: 6px; }
.wtbtn { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 9px 4px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; font-size: 11px; font-weight: 700; color: #57534A; transition: border-color .15s, color .15s, background .15s; }
.wtbtn .ic { font-size: 15px; line-height: 1; transform: rotate(90deg); display: inline-block; }
.wtbtn .ic.no-rot { transform: none; }
.wtbtn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent-ink); }
.wtbtn:disabled { opacity: .38; cursor: default; }
.wtbtn.danger:hover:not(:disabled) { border-color: #C03A36; color: #C03A36; }
.wt-note { font-size: 11px; color: var(--muted); font-weight: 600; line-height: 1.45; margin-top: 9px; }

.esama-msg { font-size: 12.5px; line-height: 1.5; color: var(--muted); margin-top: 4px; }
.esama-msg b { color: var(--ink); font-weight: 700; }
.shared-note.info { background: var(--accent-soft); border-color: var(--accent-border); color: var(--accent-ink); }
.shared-note.info b { color: var(--accent-ink); }

.empty-state { text-align: center; padding: 34px 10px; color: var(--muted); }
.empty-state .big { font-size: 15px; font-weight: 800; color: var(--ink); margin-bottom: 6px; }
.empty-state ol { text-align: left; display: inline-block; margin: 14px 0 4px; padding-left: 20px; font-size: 13px; line-height: 1.9; }

/* ---------- Additional services ---------- */
.svc-section { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.svc-section > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; margin-bottom: 2px;
}
.svc-section > summary::-webkit-details-marker { display: none; }
.svc-sum-grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.svc-sec-t { font-size: 15px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
.svc-sec-s { font-size: 12px; color: var(--muted); }
.svc-sec-sum { font-size: 13.5px; font-weight: 800; color: var(--accent-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.svc-section > summary .chev { color: var(--muted); transition: transform .18s; flex: none; }
.svc-section[open] > summary .chev { transform: rotate(90deg); }

.svc-groups { display: flex; flex-direction: column; }
.fin-block { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.svc-list { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.svc-sub { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 6px 1px 0; }
.svc-sub:first-child { margin-top: 0; }
.svc-card { border: 1px solid var(--line-strong); border-radius: 12px; padding: 11px 13px; background: #FBFAF7; transition: border-color .15s, background .15s; }
.svc-card.on { border-color: var(--accent-border); background: var(--accent-soft); }
.svc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; }
.svc-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.svc-t { font-size: 13.5px; font-weight: 800; color: var(--ink); }
.svc-price { font-size: 11.5px; font-weight: 700; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.svc-desc { font-size: 11.5px; line-height: 1.45; color: var(--muted); margin-top: 7px; }
.svc-body { margin-top: 11px; padding-top: 11px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.svc-card.on .svc-body { border-top-color: var(--accent-border); }
.svc-qty { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 8px; }
.svc-qty-in { flex: 0 0 auto; }
.svc-qty-in label { display: block; font-size: 10.5px; font-weight: 800; color: var(--muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .04em; }
.svc-qty-in input { width: 96px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 9px; font-weight: 700; font-size: 14px; background: #fff; }
.svc-qty-in input:focus { outline: 2px solid var(--accent-border); border-color: var(--accent); }
.svc-fill { flex: 1; min-width: 0; align-self: flex-end; padding: 8px 10px; border: 1px dashed var(--accent-border); border-radius: 9px; font-size: 11.5px; font-weight: 700; color: var(--accent-ink); background: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background .15s; }
.svc-fill:hover { background: var(--accent-soft); border-style: solid; }
.svc-sum { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.svc-sum span { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.svc-sum b { font-size: 14px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.svc-note { font-size: 11px; color: #98948A; margin-top: 11px; line-height: 1.45; }

html[data-theme="dark"] .svc-card { background: #26221C; }
html[data-theme="dark"] .svc-card.on { background: color-mix(in oklab, var(--accent) 16%, #26221C); }
html[data-theme="dark"] .svc-qty-in input { background: #2A2620; }

/* Price footer (desktop panel bottom) */
.price-foot { flex: none; border-top: 1px solid var(--line); padding: 13px 16px 14px; background: #fff; }
.price-foot .row1 { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.price-foot .lbl { font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.price-foot .total { font-size: 26px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; transition: color .2s; white-space: nowrap; }
.price-foot .netline { font-size: 11.5px; color: var(--muted); margin-top: 1px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.price-foot .netline > span { white-space: nowrap; }
.price-foot .netline button { color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.price-foot .disclaimer { font-size: 10.5px; color: #98948A; margin-top: 8px; line-height: 1.4; }
.price-foot .ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 11px; }
.price-foot .ctas .btn.wide { grid-column: 1 / -1; }
/* EUR 150 minimum order note — muted, near the total */
.minorder-note { font-size: 10.5px; color: #98948A; margin-top: 6px; line-height: 1.4; }
/* „patikslinta" badge — server total replaced the optimistic preview */
.refined-tag {
  display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 99px;
  font-size: 9.5px; font-weight: 800; letter-spacing: .02em; text-transform: lowercase;
  color: var(--accent-ink, var(--accent)); background: var(--accent-soft, rgba(0,0,0,.06));
  vertical-align: middle;
}

/* Pop (price change) micro-animation */
@keyframes pricePop { 0% { transform: scale(1); } 35% { transform: scale(1.06); } 100% { transform: scale(1); } }
.price-pop { animation: pricePop .35s ease; display: inline-block; }

/* ---------- Mobile price bar & sheet ---------- */
.mob-bar { display: none; }

/* ---------- Modals ---------- */
.scrim {
  position: fixed; inset: 0; background: rgba(24, 22, 17, .45); z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 18px;
  animation: fadeIn .18s ease;
}
@keyframes fadeIn { from { opacity: 0; } }
.modal {
  background: #fff; border-radius: 16px; box-shadow: var(--shadow);
  width: 100%; max-width: 480px; max-height: calc(100dvh - 36px);
  display: flex; flex-direction: column; animation: modalIn .22s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.modal.wide { max-width: 720px; }
.modal-h { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 0; }
.modal-h h3 { font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.modal-b { padding: 14px 20px 20px; overflow-y: auto; }
.modal-b .msub { font-size: 13px; color: var(--muted); margin-bottom: 14px; }

.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fgrid .full { grid-column: 1 / -1; }
.fld label { display: block; font-size: 11.5px; font-weight: 800; color: var(--muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .04em; }
.fld input, .fld textarea, .fld select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px;
  background: #fff; font-size: 14px;
}
.fld input:focus, .fld textarea:focus { outline: 2px solid var(--accent-border); border-color: var(--accent); }
.fld textarea { resize: vertical; min-height: 70px; }
.fld.err input { border-color: #D64541; }
.fld .errmsg { color: #C03A36; font-size: 11.5px; margin-top: 3px; font-weight: 600; }

.fld-tag { display: inline-block; margin-left: 5px; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--accent-ink); background: var(--accent-soft); border-radius: 5px; padding: 1px 5px; vertical-align: middle; }
.fld-opt { color: var(--muted); font-weight: 700; text-transform: none; letter-spacing: 0; opacity: .85; }
.fld.phone-hi input { border-color: var(--accent); border-width: 1.5px; background: var(--accent-soft); }
.fld.phone-hi input::placeholder { color: var(--accent-ink); opacity: .55; }
.fld.phone-hi input:focus { background: #fff; }

.fld .seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.seg-btn { border: 1.5px solid var(--line-strong); border-radius: 10px; padding: 10px 4px; font-size: 13px; font-weight: 800; background: #fff; color: var(--ink, inherit); transition: border-color .15s, background .15s, color .15s; }
.seg-btn.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.fld.err .seg { outline: 1px solid #D6454133; border-radius: 11px; }

.consent { display: flex; gap: 9px; align-items: flex-start; font-size: 12.5px; color: #4A463D; margin-top: 12px; cursor: pointer; }
.consent input { width: 16px; height: 16px; margin-top: 1px; accent-color: var(--accent); flex: none; }
.consent a { color: var(--accent); font-weight: 700; }

.success-box { text-align: center; padding: 26px 10px 14px; }
.success-box .ic { width: 56px; height: 56px; border-radius: 50%; background: #DDF0E4; color: #1F7A47; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.success-box .ic svg { width: 28px; height: 28px; }
.success-box h4 { font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.success-box p { font-size: 13.5px; color: var(--muted); max-width: 320px; margin: 0 auto; }

/* Booking slots */
.day-scroll { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 10px; scrollbar-width: thin; }
.day-chip {
  flex: none; border: 1.5px solid var(--line-strong); border-radius: 11px; padding: 7px 11px;
  text-align: center; min-width: 62px; transition: border-color .15s, background .15s;
}
.day-chip .dw { display: block; font-size: 10.5px; font-weight: 800; text-transform: uppercase; color: var(--muted); }
.day-chip .dd { display: block; font-size: 14px; font-weight: 800; }
.day-chip.on { border-color: var(--accent); background: var(--accent-soft); }
.day-chip.on .dw, .day-chip.on .dd { color: var(--accent-ink); }
.slot-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.slot {
  border: 1.5px solid var(--line-strong); border-radius: 9px; padding: 8px 2px; font-size: 12.5px;
  font-weight: 700; text-align: center; transition: border-color .15s, background .15s;
  font-variant-numeric: tabular-nums;
}
.slot.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.slot:disabled { opacity: .32; text-decoration: line-through; pointer-events: none; }

/* Breakdown table */
.bd-surface { border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 12px; overflow: hidden; }
.bd-surface > summary {
  list-style: none; cursor: pointer; padding: 12px 14px; display: flex; align-items: center; gap: 10px;
  background: #FBFAF7; font-weight: 700; font-size: 13.5px;
}
.bd-surface > summary::-webkit-details-marker { display: none; }
.bd-surface > summary .grow { flex: 1; min-width: 0; }
.bd-surface > summary .sub { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.bd-surface > summary .sum { font-weight: 800; font-variant-numeric: tabular-nums; }
.bd-surface > summary .chev { transition: transform .15s; color: var(--muted); flex: none; }
.bd-surface[open] > summary .chev { transform: rotate(90deg); }
table.bom { width: 100%; border-collapse: collapse; font-size: 12px; }
table.bom th { text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 8px 8px 5px; border-bottom: 1px solid var(--line); }
table.bom td { padding: 6px 8px; border-bottom: 1px solid #F0EEE7; font-variant-numeric: tabular-nums; }
table.bom td.num, table.bom th.num { text-align: right; white-space: nowrap; }
table.bom tr.subtot td { font-weight: 800; background: #FBFAF7; }
table.bom td:first-child { padding-left: 14px; }
table.bom td:last-child, table.bom th:last-child { padding-right: 14px; }
.bd-totals { border-top: 2px solid var(--ink); margin-top: 6px; padding-top: 10px; font-size: 13.5px; }
.bd-totals .trow { display: flex; justify-content: space-between; padding: 3px 2px; font-variant-numeric: tabular-nums; }
.bd-totals .trow.grand { font-size: 17px; font-weight: 800; margin-top: 4px; }
.bd-totals .trow.ref { color: var(--muted); font-size: 12px; font-weight: 600; }
.bd-totals .trow.ref span:last-child { white-space: nowrap; }

/* Medžiagos card body */
.bd-materials > summary { background: var(--accent-soft); }
.bd-mat-body { padding: 12px 14px; }

/* order option cards (materials by) */
.opt-cards { display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
.opt-card { display: flex; gap: 10px; align-items: flex-start; text-align: left; border: 1.5px solid var(--line-strong); border-radius: 12px; padding: 10px 12px; background: #fff; transition: border-color .15s, background .15s; }
.opt-card .rad { width: 17px; height: 17px; border-radius: 50%; border: 2px solid var(--line-strong); flex: none; margin-top: 1px; position: relative; transition: border-color .15s; }
.opt-card.on { border-color: var(--accent); background: #fff; }
.opt-card.on .rad { border-color: var(--accent); }
.opt-card.on .rad::after { content: ''; position: absolute; inset: 2.5px; border-radius: 50%; background: var(--accent); }
.opt-card .oc-body { min-width: 0; }
.opt-card .t { display: block; font-size: 13px; font-weight: 800; }
.opt-card .s { display: block; font-size: 11.5px; color: var(--muted); margin-top: 1px; font-weight: 600; }
.rek2 { font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; background: var(--accent); color: #fff; border-radius: 5px; padding: 2px 5px; margin-left: 6px; vertical-align: middle; white-space: nowrap; }
.bd-mat-note { font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 2px; }

/* reference price line (footer) */
.ref-line { font-size: 11.5px; color: var(--muted); margin-top: 8px; background: #F5F4F0; border-radius: 8px; padding: 7px 10px; font-weight: 600; }
.ref-line b { color: #4A463D; font-variant-numeric: tabular-nums; }
.ref-line .rl-note { display: block; font-size: 10.5px; color: #98948A; margin-top: 1px; font-weight: 600; }

/* shopping list */
.shoplist { border: 1px solid var(--line); border-radius: var(--r); margin-top: 12px; overflow: hidden; }
.sl-h { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: #FBFAF7; border-bottom: 1px solid var(--line); gap: 8px; }
.sl-h h4 { font-size: 13.5px; font-weight: 800; }
.sl-note { font-size: 11px; color: var(--muted); padding: 9px 14px 11px; line-height: 1.45; }

/* ---------- Onboarding ---------- */
.onb-card { background: #fff; border-radius: 18px; max-width: 560px; width: 100%; padding: 28px; box-shadow: var(--shadow); animation: modalIn .25s cubic-bezier(.2,.9,.3,1.15); }
.onb-card h2 { font-size: 21px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 4px; }
.onb-card .lead { color: var(--muted); font-size: 13.5px; margin-bottom: 20px; }
.onb-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 22px; }
.onb-step { border: 1px solid var(--line); border-radius: 14px; padding: 14px 12px; }
.onb-step .n { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.onb-step .ic { height: 40px; display: flex; align-items: center; color: var(--accent); margin-bottom: 8px; }
.onb-step .ic svg { width: 38px; height: 38px; }
.onb-step b { display: block; font-size: 13px; margin-bottom: 3px; }
.onb-step span { font-size: 11.5px; color: var(--muted); line-height: 1.4; display: block; }
.onb-ctas { display: flex; gap: 10px; }
.onb-ctas .btn { flex: 1; padding: 12px; }

/* ---------- Opening popover ---------- */
.opening-pop {
  position: absolute; z-index: 40; background: #fff; border: 1px solid var(--line);
  border-radius: 13px; box-shadow: var(--shadow); padding: 12px 14px; width: 218px;
  pointer-events: auto; animation: modalIn .18s ease;
}
.opening-pop h4 { font-size: 13px; font-weight: 800; margin-bottom: 9px; display: flex; justify-content: space-between; align-items: center; }
.opening-pop .dims { display: flex; gap: 8px; margin-bottom: 9px; }
.opening-pop .dims label { font-size: 10.5px; font-weight: 800; color: var(--muted); display: block; margin-bottom: 3px; }
.opening-pop .dims input { width: 100%; padding: 6px 8px; border: 1px solid var(--line-strong); border-radius: 8px; font-weight: 700; font-size: 13px; }
.opening-pop .del { color: #C03A36; font-size: 12px; font-weight: 700; }

/* ---------- Print ---------- */
.print-sheet { display: none; }
@media print {
  body { overflow: visible; background: #fff; }
  .app, .scrim, [data-tweaks-root] { display: none !important; }
  .print-sheet { display: block; padding: 24px 8px; font-size: 12px; }
  .print-sheet h1 { font-size: 20px; margin-bottom: 2px; }
  .print-sheet .phead { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 2px solid #222; padding-bottom: 10px; margin-bottom: 16px; }
  .print-sheet .bd-surface { break-inside: avoid; }
  .print-sheet .bd-surface > summary .chev { display: none; }
}

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  :root { --panel-w: 100%; }
  .hdr { padding: 0 10px; gap: 8px; }
  .brand .sub { display: none; }
  .hdr-price { display: none; }
  .hdr .btn.hdr-cta { display: none; }

  .main { flex-direction: column; }
  .toolbar {
    position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
    flex-direction: row; border: 1px solid var(--line); border-radius: 14px;
    box-shadow: var(--shadow); padding: 5px; z-index: 25; gap: 2px;
  }
  .toolbar .sep { width: 1px; height: 26px; margin: 0 3px; align-self: center; }
  .tbtn { width: 41px; height: 41px; }
  .tbtn .tip { display: none; }

  .canvas-wrap { flex: 1; }
  .legend { bottom: calc(64px + env(safe-area-inset-bottom)); left: 8px; padding: 6px 9px; }
  .zoomctl { display: none; }
  .canvas-hint { top: 64px; font-size: 12px; }
  .canvas-actionbar { bottom: calc(70px + env(safe-area-inset-bottom)); }

  /* Panel becomes a bottom sheet */
  .panel {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; width: 100%;
    border-left: none; border-top: 1px solid var(--line);
    border-radius: 18px 18px 0 0; box-shadow: 0 -12px 40px rgba(28,25,18,.18);
    max-height: 72dvh; transform: translateY(calc(100% + 10px));
    transition: transform .28s cubic-bezier(.3,.9,.3,1); z-index: 60;
  }
  .panel.open { transform: translateY(0); }
  .panel .grab { width: 44px; height: 5px; border-radius: 99px; background: var(--line-strong); margin: 8px auto 0; flex: none; }
  .panel-scroll { padding: 10px 16px 16px; }
  .price-foot { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  .price-foot .ctas { grid-template-columns: 1fr 1fr; }

  /* Sticky mobile price bar */
  .mob-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
    background: #fff; border-top: 1px solid var(--line);
    padding: 9px 14px calc(9px + env(safe-area-inset-bottom));
    align-items: center; gap: 12px;
  }
  .mob-bar .mb-price { flex: 1; min-width: 0; }
  .mob-bar .mb-price .l { font-size: 10.5px; font-weight: 700; color: var(--muted); }
  .mob-bar .mb-price .v { font-size: 18px; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
  .desk-only { display: none !important; }

  .onb-steps { grid-template-columns: 1fr; }
  .onb-step { display: grid; grid-template-columns: 26px 1fr; gap: 4px 12px; }
  .onb-step .ic { display: none; }
  .onb-step .n { margin-bottom: 0; grid-row: span 2; }
  .slot-grid { grid-template-columns: repeat(4, 1fr); }
  .fgrid { grid-template-columns: 1fr; }
}
@media (min-width: 901px) {
  .mob-only { display: none !important; }
  .panel .grab { display: none; }
}

/* Room entrance micro-animation */
@keyframes roomIn { from { opacity: 0; } to { opacity: 1; } }
g.room-g { animation: roomIn .3s ease; }

/* Cross-section diagram */
.xsec { border: 1px solid var(--line); border-radius: var(--r); padding: 14px 14px 11px; background: linear-gradient(180deg, #FDFCFA, #F7F6F1); margin-bottom: 16px; }
.xsec .xtitle { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 10px; display: flex; justify-content: space-between; align-items: baseline; }
.xsec .xtitle .thick { color: var(--ink); font-size: 12px; letter-spacing: 0; text-transform: none; font-variant-numeric: tabular-nums; }
.xsec-row { display: flex; justify-content: center; align-items: stretch; height: 110px; }
.xsec-col { display: flex; flex-direction: column; justify-content: center; align-items: stretch; min-height: 110px; }
.xlayer { transition: width .25s cubic-bezier(.3,.9,.3,1), height .25s cubic-bezier(.3,.9,.3,1), background .2s; position: relative; flex: none; }
.xlabels { display: flex; justify-content: center; gap: 4px; margin-top: 8px; }
.xsec .cap { font-size: 10.5px; color: var(--muted); font-weight: 700; text-align: center; }
.xsides { display: flex; justify-content: space-between; font-size: 10px; font-weight: 800; color: #B0AC9F; text-transform: uppercase; letter-spacing: .06em; margin-top: 7px; }

/* draggable corner pins */
.vpin { cursor: grab; }
.vpin:active { cursor: grabbing; }

/* contextual on-canvas pin / wall action controls (Sims-style) */
.pin-actions {
  position: absolute; transform: translate(-50%, -100%); z-index: 45;
  display: flex; gap: 4px; padding: 4px; background: #26231D; border-radius: 10px;
  box-shadow: var(--shadow); pointer-events: auto; white-space: nowrap;
  animation: pinPop .14s cubic-bezier(.2,.9,.3,1.25);
}
.pin-actions.split { transform: translate(-50%, -50%); }
.pin-actions::after {
  content: ''; position: absolute; left: 50%; bottom: -5px; transform: translateX(-50%) rotate(45deg);
  width: 9px; height: 9px; background: #26231D; border-radius: 2px;
}
.pin-actions.split::after { display: none; }
.pin-act-btn {
  font-size: 12px; font-weight: 700; color: #E7E3D9; padding: 6px 11px; border-radius: 7px;
  line-height: 1.2; transition: background .12s, color .12s;
}
.pin-act-btn:hover { background: rgba(255,255,255,.1); }
.pin-act-btn:disabled { opacity: .4; cursor: default; }
.pin-act-btn:disabled:hover { background: transparent; }
.pin-act-btn.primary { background: var(--accent); color: #fff; }
.pin-act-btn.primary:hover { background: var(--accent-ink); }
.pin-act-btn.danger { color: #FF9C97; }
.pin-act-btn.danger:hover { background: rgba(214,69,65,.22); color: #FFB4B0; }
.wall-acts-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; padding: 6px 0; font-size: 14px;
}
.wall-acts-toggle.on { background: rgba(255,255,255,.12); }
@keyframes pinPop { from { opacity: 0; transform: translate(-50%, -100%) scale(.9); } }

/* docked contextual action toolbar (bottom-center of the canvas) */
.canvas-actionbar {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
  z-index: 46; display: flex; align-items: center; justify-content: center; gap: 3px;
  flex-wrap: wrap; row-gap: 3px; max-width: calc(100% - 24px);
  padding: 5px 7px; background: #26231D; border-radius: 13px;
  box-shadow: 0 8px 28px rgba(28,25,18,.34); pointer-events: auto;
  animation: actbarIn .16s cubic-bezier(.2,.9,.3,1.25);
}
/* when the bar wraps, the vertical separators read oddly at row breaks — hide them */
.canvas-actionbar .ab-sep { display: none; }
@media (min-width: 1081px) {
  .canvas-actionbar { flex-wrap: nowrap; white-space: nowrap; }
  .canvas-actionbar .ab-sep { display: block; }
}
.canvas-actionbar .ab-label {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  color: #938C7E; padding: 0 6px 0 7px; flex: none;
}
.canvas-actionbar .ab-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.canvas-actionbar .ab-sep { width: 1px; align-self: stretch; margin: 4px 2px; background: rgba(255,255,255,.14); }
.canvas-actionbar .pin-act-btn { font-size: 13px; padding: 9px 15px; border-radius: 9px; white-space: nowrap; }
.canvas-actionbar .ab-sides { display: inline-flex; gap: 3px; }
.canvas-actionbar .ab-side {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700;
  color: #E7E3D9; padding: 8px 13px; border-radius: 9px; line-height: 1.2; white-space: nowrap;
  transition: background .12s, color .12s;
}
.canvas-actionbar .ab-side:hover { background: rgba(255,255,255,.1); }
.canvas-actionbar .ab-side.on { background: var(--accent); color: #fff; }
.canvas-actionbar .ab-side .sp-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; box-shadow: 0 0 0 1px rgba(255,255,255,.35); }
.canvas-actionbar .ab-side.empty .sp-dot { box-shadow: inset 0 0 0 1px rgba(255,255,255,.45); }
@keyframes actbarIn { from { opacity: 0; transform: translateX(-50%) translateY(10px); } }

/* floating per-side selectors near a selected free-standing wall */
.side-pick {
  position: absolute; transform: translate(-50%, -50%); z-index: 44; pointer-events: auto;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font-size: 12px; font-weight: 800; letter-spacing: .01em;
  padding: 5px 11px 5px 8px; border-radius: 999px;
  background: var(--panel); color: var(--ink);
  border: 1.5px solid var(--line-strong);
  box-shadow: 0 2px 9px rgba(28,25,18,.16);
  cursor: pointer; transition: border-color .12s, background .12s, color .12s, box-shadow .12s;
  animation: pinPop2 .14s cubic-bezier(.2,.9,.3,1.25);
}
.side-pick:hover { border-color: var(--accent); }
.side-pick.on { border-color: var(--accent); background: var(--accent); color: #fff; box-shadow: 0 3px 12px color-mix(in oklab, var(--accent) 40%, transparent); }
.side-pick.empty { border-style: dashed; }
.side-pick .sp-dot { width: 11px; height: 11px; border-radius: 50%; border: 1px solid rgba(0,0,0,.22); flex: none; }
.side-pick.empty .sp-dot { border-style: dashed; }
.side-pick.on .sp-dot { border-color: rgba(255,255,255,.55); }
@keyframes pinPop2 { from { opacity: 0; transform: translate(-50%, -50%) scale(.9); } }

/* in-panel side switcher (mirrors the on-canvas selectors) */
.side-switch-seg { display: flex; gap: 8px; margin-bottom: 10px; }
.side-switch-seg .sss-btn {
  flex: 1; display: flex; align-items: center; gap: 8px; text-align: left;
  padding: 8px 10px; border-radius: 10px; background: var(--sunk);
  border: 1.5px solid var(--line-strong); transition: border-color .12s, background .12s;
}
.side-switch-seg .sss-btn:hover { border-color: var(--accent-border); }
.side-switch-seg .sss-btn.on { border-color: var(--accent); background: var(--accent-soft); }
.side-switch-seg .sss-dot { width: 13px; height: 13px; border-radius: 50%; border: 1px solid rgba(0,0,0,.2); flex: none; }
.side-switch-seg .sss-btn.empty .sss-dot { border-style: dashed; background: transparent !important; }
.side-switch-seg .sss-txt { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.side-switch-seg .sss-txt b { font-size: 12.5px; font-weight: 800; }
.side-switch-seg .sss-txt em { font-size: 10.5px; font-style: normal; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .02em; }
.side-switch-seg .sss-btn.on .sss-txt em { color: var(--accent-ink); }

/* merged-pin dimension chips: editable + emphasised */
.dim-label.pin-dim { cursor: pointer; border-style: solid; border-color: var(--accent); color: var(--accent-ink); font-weight: 800; }
.dim-label.pin-dim:hover { background: var(--accent-soft); }
html[data-theme="dark"] .dim-label.pin-dim { color: color-mix(in oklab, var(--accent) 62%, white); border-color: var(--accent); }

/* ====================================================================
   DARK THEME
   ==================================================================== */
html[data-theme="dark"] {
  color-scheme: dark;

  --bg: #16140F;
  --panel: #211E18;
  --ink: #ECE9DF;
  --muted: #9C968A;
  --line: #322E27;
  --line-strong: #46413A;

  --accent-soft: color-mix(in oklab, var(--accent) 26%, #211E18);
  --accent-border: color-mix(in oklab, var(--accent) 55%, #211E18);

  /* boards retuned for legibility on the near-black canvas */
  --b-std: #C7C0AF;
  --b-green: #41BE78;
  --b-red: #E45A53;
  --b-blue: #5E86EC;
  --b-esama: #75787A;
  /* trade hues — dark-theme retune (same map, legible on near-black canvas) */
  --t-screed: #A39C8E;
  --t-tile: #6E97A8;
  --t-paint: #CFC9BC;
  --t-laminate: #B68C58;
  --t-plaster: #BFB9AB;
  --t-facade-eps: #C9BE9C;
  --t-facade-paint: #BAB1A1;
  --t-roof: #9A6A52;
  --c-floor: #B0A287;
  --c-ceiling: #3A362D;
  --wall-core: #6E695E;
  --wall-core-line: #9A9384;

  --canvas-bg: #131109;
  --floor: #211E18;
  --ceil-base: #38332A;
  --grid-fine: #211E16;
  --grid-mid: #29251C;
  --grid-major: #332F24;
  --pin-fill: #2B2820;
  --hint-bg: #3A362E;
  --hint-ink: #FBFAF6;
  --hover-tint: rgba(255,255,255,.06);
  --hover-tint-strong: rgba(255,255,255,.08);
  --sunk: #2A2620;
  --sunk-2: #2A2620;
  --warn-bg: #3A3016;
  --warn-border: #5C4E26;
  --warn-ink: #EBD9A4;

  --shadow: 0 1px 2px rgba(0,0,0,.5), 0 12px 32px rgba(0,0,0,.55);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.45);
}

/* surfaces that used literal whites / off-whites */
html[data-theme="dark"] .btn:hover { background: #2C2820; }
html[data-theme="dark"] .btn.ghost:hover,
html[data-theme="dark"] .icon-btn:hover,
html[data-theme="dark"] .tbtn:hover { background: var(--hover-tint-strong); }
html[data-theme="dark"] .tbtn { color: #C8C2B4; }

html[data-theme="dark"] .dim-label { background: #2B2820; color: #D8D3C6; }
html[data-theme="dark"] .dim-input { background: #2B2820; }
html[data-theme="dark"] .room-label { color: #ADA797; }
html[data-theme="dark"] .room-label b { color: #DCD7C9; }

html[data-theme="dark"] .canvas-hint { background: var(--hint-bg); color: var(--hint-ink); }

html[data-theme="dark"] .legend { background: rgba(33,30,24,.92); }
html[data-theme="dark"] .legend .li { color: #C3BDAF; }
html[data-theme="dark"] .legend .dot { border-color: rgba(255,255,255,.22); }

html[data-theme="dark"] .zoomctl { background: var(--panel); }
html[data-theme="dark"] .zoomctl button:hover { background: #2C2820; }

html[data-theme="dark"] .seg { background: var(--sunk-2); }
html[data-theme="dark"] .seg button { color: #ABA597; }
html[data-theme="dark"] .seg button.on { background: #3A362E; color: var(--ink); }

html[data-theme="dark"] .chip { background: #2A2620; color: #C3BDAF; }
html[data-theme="dark"] .chip .cdot { border-color: rgba(255,255,255,.2); }
html[data-theme="dark"] .boardpick button { color: #ADA797; }
html[data-theme="dark"] .boardpick button .sw { border-color: rgba(255,255,255,.18); }

html[data-theme="dark"] .numrow input[type="number"],
html[data-theme="dark"] .numrow input[type="text"],
html[data-theme="dark"] .fld input,
html[data-theme="dark"] .fld textarea,
html[data-theme="dark"] .fld select,
html[data-theme="dark"] .seg-btn,
html[data-theme="dark"] .day-chip,
html[data-theme="dark"] .slot,
html[data-theme="dark"] .opening-pop .dims input { background: #2A2620; }

html[data-theme="dark"] .surface-price,
html[data-theme="dark"] .bd-surface > summary,
html[data-theme="dark"] table.bom tr.subtot td,
html[data-theme="dark"] .sl-h,
html[data-theme="dark"] .ref-line { background: var(--sunk); }
html[data-theme="dark"] .ref-line b { color: #DCD7C9; }
html[data-theme="dark"] .ref-line .rl-note { color: #8F897D; }

html[data-theme="dark"] table.bom td { border-bottom-color: #2A2620; }

html[data-theme="dark"] .switch { background: #45403A; }
html[data-theme="dark"] .switch.on { background: var(--accent); }

html[data-theme="dark"] .modal,
html[data-theme="dark"] .onb-card,
html[data-theme="dark"] .price-foot,
html[data-theme="dark"] .opening-pop { background: var(--panel); }
html[data-theme="dark"] .price-foot .disclaimer { color: #8F897D; }

html[data-theme="dark"] .opt-card,
html[data-theme="dark"] .opt-card.on { background: #2A2620; }
html[data-theme="dark"] .opt-card .rad { border-color: #544F47; }

html[data-theme="dark"] .shared-note { background: var(--warn-bg); border-color: var(--warn-border); color: var(--warn-ink); }

html[data-theme="dark"] .success-box .ic { background: #1D3A2A; color: #62D08D; }
html[data-theme="dark"] .consent { color: #C3BDAF; }

html[data-theme="dark"] .xsec { background: linear-gradient(180deg, #242019, #1E1B15); }
html[data-theme="dark"] .xsides { color: #6E6A5F; }

/* theme toggle icon swap — show the mode you'll switch TO */
.theme-ico .sun { display: none; }
.theme-ico .moon { display: flex; }
.theme-ico .sun, .theme-ico .moon { align-items: center; justify-content: center; }
html[data-theme="dark"] .theme-ico .sun { display: flex; }
html[data-theme="dark"] .theme-ico .moon { display: none; }

/* per-side face cards */
html[data-theme="dark"] .side-card { background: #26221C; }
html[data-theme="dark"] .side-card.off { background: #1E1B15; }
html[data-theme="dark"] .side-head .pin { border-color: rgba(255,255,255,.18); }

/* selected-state text on accent-soft stays readable in dark */
html[data-theme="dark"] .chip:hover,
html[data-theme="dark"] .chip.on,
html[data-theme="dark"] .boardpick button.on,
html[data-theme="dark"] .seg-btn.on,
html[data-theme="dark"] .dim-label:hover,
html[data-theme="dark"] .fld-tag,
html[data-theme="dark"] .day-chip.on .dw,
html[data-theme="dark"] .day-chip.on .dd,
html[data-theme="dark"] .slot.on { color: color-mix(in oklab, var(--accent) 62%, white); }

/* ============================================================================
   3D builder (Scene3D + switches) — view-only surface (docs/22 §2.3, §9)
   ============================================================================ */

/* the two persistent segmented switches live in the header / mob-bar */
.builder-switches { display: flex; gap: 8px; align-items: center; }
.bswitch { display: flex; background: #F0EFEA; border-radius: 10px; padding: 3px; gap: 2px; }
html[data-theme="dark"] .bswitch { background: #211E18; }
.bswitch button {
  border: 0; background: transparent; color: var(--muted); cursor: pointer;
  font: inherit; font-weight: 700; font-size: 12.5px; border-radius: 8px;
  /* >=44px touch target (matches .tbtn pattern) — WCAG 2.5.5 / UX review */
  min-height: 44px; min-width: 44px; padding: 4px 12px;
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  transition: background .15s, color .15s;
}
.bswitch button:hover:not(:disabled) { color: var(--ink); }
.bswitch button.on { background: var(--panel); color: var(--ink); box-shadow: var(--shadow-sm); }
.bswitch button:disabled { opacity: .42; cursor: default; }
.bswitch button svg { width: 17px; height: 17px; }

/* the Scene3D canvas mount fills the same area the SVG canvas does */
.scene3d-wrap { position: relative; width: 100%; height: 100%; overflow: hidden; }
.scene3d { position: absolute; inset: 0; touch-action: none; outline: none; }
.scene3d canvas { display: block; width: 100%; height: 100%; }

/* split 2D+3D (>=1200px enhancement) */
.split2d3d { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); height: 100%; }
.split2d3d > * { min-width: 0; min-height: 0; position: relative; }

/* skeleton shown for ~200ms behind the lazy THREE load */
.scene3d-skeleton {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 10px; color: var(--muted); font-size: 13.5px;
  background: var(--canvas-bg);
}
.scene3d-skeleton .spin {
  width: 26px; height: 26px; border-radius: 50%;
  border: 3px solid var(--line-strong); border-top-color: var(--accent);
  animation: sk-spin .9s linear infinite;
}
@keyframes sk-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .scene3d-skeleton .spin { animation: none; } }

/* load-fail / WebGL-unavailable fallback */
.scene3d-fallback {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: 24px; text-align: center; color: var(--muted); font-size: 14px; line-height: 1.5;
  background: var(--canvas-bg);
}

/* floating wall-visibility control (the 3-state Sims control + extras) */
.wallvis-ctl {
  position: absolute; left: 14px; bottom: 14px; z-index: 6;
  display: flex; flex-direction: column; gap: 8px; align-items: flex-start;
}
.wallvis-ctl .seg { background: var(--panel); box-shadow: var(--shadow-sm); }
/* >=44px touch target (matches .tbtn pattern) — WCAG 2.5.5 / UX review */
.wallvis-ctl .seg button { min-height: 44px; min-width: 44px; padding: 6px 12px; font-size: 12.5px; }
.wallvis-ctl .vis-extra { display: flex; gap: 6px; }
.wallvis-ctl .vis-extra .btn { box-shadow: var(--shadow-sm); }

/* in-3D selected-wall action bar (Pašalinti / Paslėpti) */
.wall3d-ctl {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 14px; z-index: 7;
  display: flex; gap: 8px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 7px 9px; box-shadow: var(--shadow-md, var(--shadow-sm));
  align-items: center;
}
.wall3d-ctl .w3-label { font-size: 12.5px; font-weight: 700; color: var(--ink); padding: 0 4px; }
.wall3d-ctl .btn { min-height: 38px; }

/* camera preset toggle, top-right of the 3D area */
.cam-ctl { position: absolute; right: 14px; top: 14px; z-index: 6; }

@media (max-width: 900px) {
  /* keep touch targets >=41px on phones (matches .tbtn 41px floor) */
  .bswitch button { min-height: 44px; min-width: 44px; }
  .wallvis-ctl .seg button { min-height: 44px; min-width: 44px; }
  .wallvis-ctl { left: 10px; bottom: 10px; }
  .wall3d-ctl { bottom: 10px; }
}

/* ============================================================================
   SurfaceStack — the multi-trade configurator panel (docs/22 §5).
   A vertical list of 44px trade rows + „+ Pridėti darbą" → TradePicker sheet.
   ============================================================================ */
.surfacestack { margin-top: 4px; }
.surfacestack .ss-title { font-size: 12.5px; font-weight: 800; color: var(--ink); margin: 0 0 8px; }
.surfacestack .ss-empty { font-size: 12.5px; color: var(--muted); margin: 4px 0 10px; }
.ss-list { display: flex; flex-direction: column; gap: 8px; }

.stack-row { padding: 0; overflow: hidden; }
.stack-row-h { display: flex; align-items: center; gap: 8px; padding: 10px 12px; min-height: 44px; }
.stack-row-h .cdot { width: 13px; height: 13px; border-radius: 4px; flex: none; border: 1px solid rgba(0,0,0,.18); }
.stack-row-nm { font-weight: 800; font-size: 13.5px; color: var(--ink); flex: 1; min-width: 0; }
.stack-row-tag { font-size: 10.5px; font-weight: 700; color: var(--muted); background: var(--sunk-2); border-radius: 6px; padding: 2px 7px; white-space: nowrap; }
.stack-row-x {
  width: 30px; height: 30px; flex: none; border: none; background: transparent;
  color: var(--muted); font-size: 15px; cursor: pointer; border-radius: 8px;
}
.stack-row-x:hover { background: var(--hover-tint); color: var(--b-red); }

.stack-warn {
  display: flex; gap: 7px; align-items: flex-start; width: calc(100% - 24px); margin: 0 12px 8px;
  text-align: left; font-size: 12px; font-weight: 700; color: var(--warn-ink);
  background: var(--warn-bg); border: 1px solid var(--warn-border); border-radius: 9px;
  padding: 8px 10px; cursor: pointer; line-height: 1.35;
}
.stack-warn:hover { filter: brightness(.98); }
.stack-warn span { flex: none; }

.ss-add {
  display: block; width: 100%; margin-top: 10px; padding: 11px; min-height: 44px;
  border: 1.5px dashed var(--accent-border); border-radius: 11px; background: var(--accent-soft);
  color: var(--accent-ink); font-weight: 800; font-size: 13px; cursor: pointer;
}
.ss-add:hover { border-color: var(--accent); }
.surface-price.ss-foot { margin-top: 12px; }

/* TradePicker — bottom-sheet (mobile) / centered sheet (desktop). */
.tradepick {
  position: fixed; left: 0; right: 0; bottom: 0; margin: 0 auto; z-index: 210;
  width: 100%; max-width: 520px; max-height: 78vh; display: flex; flex-direction: column;
  background: var(--panel); border-radius: 18px 18px 0 0;
  box-shadow: 0 -8px 40px rgba(28,25,18,.22); border: 1px solid var(--line);
}
@media (min-width: 901px) {
  .tradepick { bottom: auto; top: 50%; transform: translateY(-50%); border-radius: 16px; max-height: 84vh; }
}
.tp-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 10px; border-bottom: 1px solid var(--line); }
.tp-head h3 { margin: 0; font-size: 16px; }
.tp-body { overflow-y: auto; padding: 10px 14px 20px; }
.tp-group { margin-top: 12px; }
.tp-group:first-child { margin-top: 2px; }
.tp-group-h { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 0 0 7px; }
.tp-trade {
  display: flex; align-items: center; gap: 11px; width: 100%; min-height: 52px;
  padding: 9px 12px; margin-bottom: 7px; border: 1px solid var(--line-strong);
  border-radius: 12px; background: var(--panel); cursor: pointer; text-align: left;
}
.tp-trade:hover:not(:disabled) { border-color: var(--accent-border); background: var(--accent-soft); }
.tp-trade .cdot { width: 16px; height: 16px; border-radius: 5px; flex: none; border: 1px solid rgba(0,0,0,.18); }
.tp-trade-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.tp-trade-body b { font-size: 13.5px; font-weight: 800; color: var(--ink); }
.tp-trade-body em { font-size: 11.5px; font-style: normal; font-weight: 700; color: var(--muted); }
.tp-trade.on { border-color: var(--accent-border); background: var(--accent-soft); opacity: .7; }
.tp-trade:disabled { opacity: .5; cursor: default; }
/* a sibling cover that will SWAP the current covering — tappable, lightly tinted so
   it reads as an action (not a dead/greyed control). */
.tp-trade.swaps { border-style: dashed; }
.tp-trade.swaps .tp-trade-body em { color: var(--accent-ink, var(--accent)); }

/* per-trade sub-block inside a surface <details> in the breakdown */
.bd-trade { border-top: 1px solid var(--line); padding: 8px 0; }
.bd-trade:first-child { border-top: none; }
.bd-trade-h { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; font-size: 13px; color: var(--ink); margin: 2px 2px 6px; }
.bd-trade-sum { font-variant-numeric: tabular-nums; }
.bd-trade-warn { font-size: 11.5px; font-weight: 700; color: var(--warn-ink); background: var(--warn-bg); border-radius: 8px; padding: 6px 9px; margin: 0 0 7px; }

@media (max-width: 900px) {
  .ss-add, .stack-row-h { min-height: 44px; }
  .tp-trade { min-height: 54px; }
}

/* ---- booking slot picker (BookingModal) ---- */
.slotpick { margin-top: 6px; }
.slot-days { display: flex; gap: 4px; overflow-x: auto; padding: 3px; background: #F0EFEA; border-radius: 10px; -webkit-overflow-scrolling: touch; }
.slot-days .seg-btn { flex: none; min-width: 56px; padding: 8px 6px; font-size: 12px; }
.slot-hours { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; margin-top: 10px; }
.slot-h { border: 1.5px solid var(--line-strong); border-radius: 9px; padding: 9px 4px; font-size: 13px; font-weight: 800; background: #fff; color: var(--ink, inherit); font-variant-numeric: tabular-nums; transition: border-color .15s, background .15s, color .15s; }
.slot-h:hover { border-color: var(--accent); }
.slot-h.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.slot-h.taken, .slot-h:disabled { opacity: .4; cursor: default; text-decoration: line-through; pointer-events: none; }

/* ---- contractor entry (supply side) — discreet, never the homeowner CTA ---- */
.contractor-entry { display: inline-block; font-size: 12px; font-weight: 700; color: var(--muted); text-decoration: none; border-bottom: 1px dotted currentColor; white-space: nowrap; }
.contractor-entry:hover { color: var(--accent-ink); }
.contractor-entry.compact { font-size: 11.5px; }
.price-foot .contractor-entry { display: block; margin-top: 10px; text-align: center; border-bottom: none; }
.hdr .contractor-entry.compact { margin: 0 4px; }
@media (max-width: 900px) {
  .hdr .contractor-entry { display: none; }
  .slot-h { min-height: 44px; }
  .slot-days .seg-btn { min-height: 44px; }
}

html[data-theme="dark"] .slot-days { background: #232017; }
html[data-theme="dark"] .slot-h { background: #2A2619; border-color: #3A3526; color: #E8E2D2; }
html[data-theme="dark"] .slot-h.on { background: var(--accent-soft); color: var(--accent-ink); }
