:root {
  --ink: #f4efe8;
  --muted: #b9b0a4;
  --panel: rgba(24, 20, 17, 0.62);
  --accent: #c9542f; /* red soil */
  --top: max(10px, env(safe-area-inset-top));
  --left: max(10px, env(safe-area-inset-left));
  --right: max(10px, env(safe-area-inset-right));
  --bottom: max(10px, env(safe-area-inset-bottom));
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; overscroll-behavior: none; background: #111; font: 14px/1.4 -apple-system, "SF Pro Text", "Segoe UI", sans-serif; color: var(--ink); }
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
#scene { display: block; width: 100vw; height: 100vh; height: 100dvh; touch-action: none; }
.hidden { display: none !important; }

#hud { position: fixed; top: var(--top); left: var(--left); padding: 6px 10px; background: var(--panel); border-radius: 8px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); pointer-events: none; }
#room { font-size: 14px; font-weight: 600; letter-spacing: 0.01em; }
#state { color: var(--muted); font-size: 10.5px; }

/* top-right icon buttons */
#tools { position: fixed; top: var(--top); right: var(--right); z-index: 5; display: flex; gap: 6px; }
#tools button { appearance: none; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid rgba(255,255,255,0.12); border-radius: 9px; background: var(--panel); color: var(--ink); cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
#tools button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#tools button.on { border-color: var(--accent); background: rgba(201,84,47,0.35); }
@media (hover: hover) { #tools button:hover { background: rgba(60,52,46,0.8); } }

#minimap { position: fixed; top: calc(var(--top) + 42px); right: var(--right); z-index: 5; width: 168px; height: 210px; background: var(--panel); border-radius: 10px; cursor: crosshair; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); touch-action: none; }

/* room chips */
#viewpoints { position: fixed; left: var(--left); right: var(--right); bottom: var(--bottom); width: fit-content; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; padding: 5px; background: var(--panel); border-radius: 10px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
#viewpoints button { appearance: none; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.05); color: var(--ink); padding: 3px 8px; border-radius: 7px; font: inherit; font-size: 11.5px; white-space: nowrap; cursor: pointer; }
@media (hover: hover) { #viewpoints button:hover { background: rgba(255,255,255,0.14); } }
#viewpoints button.active { border-color: var(--accent); background: rgba(201,84,47,0.3); }
#viewpoints button kbd { opacity: 0.55; margin-right: 4px; min-width: 0; padding: 0 3px; font-size: 10px; border-bottom-width: 1px; }

/* virtual joystick (touch only) */
#stick { display: none; position: fixed; left: calc(var(--left) + 8px); bottom: calc(var(--bottom) + 52px); width: 104px; height: 104px; border-radius: 50%; background: rgba(24,20,17,0.35); border: 1.5px solid rgba(255,255,255,0.22); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); touch-action: none; z-index: 4; }
#knob { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: rgba(244,239,232,0.75); box-shadow: 0 2px 10px rgba(0,0,0,0.35); pointer-events: none; transition: transform 0.12s ease-out; }
#stick.active #knob { transition: none; background: rgba(201,84,47,0.9); }

/* touch layout: one scrollable row of chips along the bottom, joystick above it */
body.touch #stick { display: block; }
body.touch #viewpoints { width: auto; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; touch-action: pan-x; }
body.touch #viewpoints::-webkit-scrollbar { display: none; }
body.touch #viewpoints button { padding: 5px 9px; font-size: 12px; flex: none; }
body.touch #viewpoints button kbd { display: none; }
body.touch .desk { display: none; }
body:not(.touch) .touch-only { display: none; }

#overlay { position: fixed; inset: 0; z-index: 4; display: grid; place-items: center; background: rgba(10, 8, 6, 0.55); }
#overlay.hidden { display: none; }
.card { width: min(400px, 90vw); max-height: 86vh; overflow-y: auto; padding: 22px 24px; background: rgba(28, 23, 19, 0.92); border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.card h1 { margin: 0; font-size: 22px; }
.card .sub { margin: 4px 0 16px; color: var(--muted); font-size: 13px; }
#enter { width: 100%; padding: 11px; border: 0; border-radius: 10px; background: var(--accent); color: white; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
#enter:hover { filter: brightness(1.08); }
.keys { list-style: none; padding: 0; margin: 16px 0 0; color: var(--muted); display: grid; gap: 5px; font-size: 13px; }
.keys b { color: var(--ink); font-weight: 600; }
kbd { display: inline-block; min-width: 20px; padding: 1px 5px; margin-right: 2px; border: 1px solid rgba(255,255,255,0.25); border-bottom-width: 2px; border-radius: 4px; font: 12px ui-monospace, monospace; color: var(--ink); text-align: center; }

#loading { position: fixed; inset: auto 0 50% 0; display: grid; place-items: center; pointer-events: none; }
#loading.hidden { display: none; }
#loading .bar { width: 240px; height: 4px; background: rgba(255,255,255,0.15); border-radius: 2px; overflow: hidden; }
#loading .bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.2s; }

#mode { position: fixed; top: var(--top); left: 50%; transform: translateX(-50%); display: flex; padding: 3px; gap: 2px; background: var(--panel); border-radius: 10px; backdrop-filter: blur(6px); z-index: 2; }
#mode button { appearance: none; border: 0; background: transparent; color: var(--muted); padding: 7px 16px; border-radius: 8px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; min-width: 92px; }
#mode button:hover { color: var(--ink); }
#mode button.active { background: var(--accent); color: white; }
#mode button.busy { opacity: 0.6; cursor: progress; }

#items { display: none; z-index: 2; position: fixed; top: calc(var(--top) + 56px); left: var(--left); width: min(320px, 38vw); max-height: calc(100vh - 200px); overflow: auto; padding: 10px 14px 12px; background: var(--panel); border-radius: 10px; backdrop-filter: blur(6px); font-size: 12px; }
body.projected #items { display: block; }
#items h2 { display: flex; align-items: baseline; gap: 6px; margin: 0 0 6px; font-size: 13px; }
#items .muted { color: var(--muted); font-weight: 400; }
#items ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
#items li { display: grid; gap: 1px; padding-top: 4px; border-top: 1px solid rgba(255,255,255,0.08); }
#items .id { display: inline-block; min-width: 30px; color: var(--accent); font: 11px ui-monospace, monospace; }
#items .size { color: var(--ink); font: 11px ui-monospace, monospace; opacity: 0.8; padding-left: 30px; }
#items .fin, #items .note { display: none; color: var(--muted); padding-left: 30px; }
body.item-details #items .fin, body.item-details #items .note { display: block; }
#items li b { font-weight: 600; }
#itemsMore { margin-left: auto; flex: none; appearance: none; border: 1px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.06); color: var(--ink); border-radius: 6px; padding: 1px 8px; font: inherit; font-size: 11px; cursor: pointer; }
#items .note { font-style: italic; }

body.shot #overlay, body.shot #loading { display: none; }

/* narrow screens: the As-is / Projected switch drops under the room label; on touch the item list starts folded */
@media (max-width: 760px) {
  #hud { max-width: calc(100vw - 262px); }   /* 7 tool buttons on the right */
  #tools { gap: 4px; }
  #tools button { width: 30px; height: 30px; }
  #tools button svg { width: 16px; height: 16px; }
  #state { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #mode { top: calc(var(--top) + 52px); left: var(--left); transform: none; }
  #mode button { min-width: 0; padding: 6px 12px; font-size: 12px; }
  #items { top: calc(var(--top) + 96px); width: min(300px, 72vw); max-height: 38vh; }
}
body.touch #items h2 { cursor: pointer; margin: 0; }
body.touch #items ol { display: none; margin-top: 6px; }
body.touch.items-open #items ol { display: grid; }

/* aim dot + action prompt (doors, cupboards, drawers, light switches) */
#crosshair { position: fixed; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: rgba(244,239,232,0.75); box-shadow: 0 0 0 1px rgba(0,0,0,0.35); pointer-events: none; z-index: 3; transition: transform 0.12s, background 0.12s; }
#crosshair.on { transform: scale(1.7); background: var(--accent); }
#prompt { position: fixed; left: 50%; top: calc(50% + 22px); transform: translateX(-50%); padding: 5px 11px; background: var(--panel); border-radius: 8px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-size: 13px; font-weight: 600; white-space: nowrap; pointer-events: none; z-index: 3; }
#prompt kbd { margin-right: 6px; }

/* ---- Bill of quantities panel ---- */
#boq { position: fixed; inset: 0; z-index: 7; display: grid; place-items: center; background: rgba(8, 6, 5, 0.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
#boq.hidden { display: none !important; }
.boq-sheet { display: flex; flex-direction: column; width: min(1040px, 94vw); height: min(90vh, 900px); background: #1b1713; border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; box-shadow: 0 24px 70px rgba(0,0,0,0.6); overflow: hidden; }
.boq-head { display: flex; align-items: flex-start; gap: 14px; padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.boq-head h2 { margin: 0; font-size: 18px; }
.boq-head p { margin: 4px 0 0; color: var(--muted); font-size: 12px; max-width: 60ch; }
.boq-head .meta { color: var(--accent); font: 11px ui-monospace, monospace; margin-top: 6px; }
.boq-actions { margin-left: auto; display: flex; gap: 6px; flex: none; }
.boq-actions button { appearance: none; border: 1px solid rgba(255,255,255,0.16); background: rgba(255,255,255,0.06); color: var(--ink); padding: 6px 11px; border-radius: 8px; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.boq-actions button:hover { background: rgba(255,255,255,0.14); }
.boq-actions button.primary { border-color: var(--accent); background: rgba(201,84,47,0.35); }
.boq-actions .x { width: 30px; padding: 6px 0; display: grid; place-items: center; }
.boq-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 10px 20px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.boq-tabs button { appearance: none; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.05); color: var(--muted); padding: 4px 9px; border-radius: 7px; font: inherit; font-size: 11.5px; cursor: pointer; }
.boq-tabs button:hover { color: var(--ink); }
.boq-tabs button.active { border-color: var(--accent); background: rgba(201,84,47,0.3); color: var(--ink); }
.boq-tabs button .n { opacity: 0.6; margin-left: 5px; font: 10px ui-monospace, monospace; }
.boq-body { flex: 1; overflow-y: auto; padding: 8px 20px 22px; }
.boq-pkg { padding-top: 18px; }
.boq-pkg h3 { margin: 0 0 2px; font-size: 15px; scroll-margin-top: 10px; }
.boq-pkg .blurb { margin: 0 0 10px; color: var(--muted); font-size: 12px; }
.boq-pkg figure { margin: 0 0 12px; }
.boq-pkg img { display: block; width: 100%; height: 240px; object-fit: cover; border-radius: 10px; background: #0d0b09; }
.boq-pkg figcaption { color: var(--muted); font-size: 10.5px; margin-top: 4px; font-style: italic; }
table.boq-tbl { width: 100%; border-collapse: collapse; font-size: 12px; }
table.boq-tbl th, table.boq-tbl td { text-align: left; padding: 6px 8px; border-bottom: 1px solid rgba(255,255,255,0.07); vertical-align: top; }
table.boq-tbl th { color: var(--muted); font-weight: 600; font-size: 11px; position: sticky; top: 0; background: #1b1713; }
table.boq-tbl td.qty { text-align: right; font: 12px ui-monospace, monospace; white-space: nowrap; }
table.boq-tbl td.ref { color: var(--accent); font: 11px ui-monospace, monospace; white-space: nowrap; }
table.boq-tbl .est { color: var(--muted); font-style: italic; }
table.boq-tbl tr:hover td { background: rgba(255,255,255,0.03); }
table.boq-tbl th.qty { text-align: right; }
table.boq-tbl tfoot td { border-bottom: 0; border-top: 1px solid rgba(255,255,255,0.18); color: var(--muted); font-weight: 600; text-align: right; }
table.boq-tbl tfoot td.qty { color: var(--ink); }
/* priced BoQ (UK): the totals block in the header */
table.boq-sum { margin-top: 10px; border-collapse: collapse; font-size: 12px; min-width: 300px; }
table.boq-sum td { padding: 2px 10px 2px 0; color: var(--muted); }
table.boq-sum td.qty { text-align: right; font: 12px ui-monospace, monospace; color: var(--ink); }
table.boq-sum tr.strong td { color: var(--ink); font-weight: 700; border-top: 1px solid rgba(255,255,255,0.2); padding-top: 5px; }
@media (max-width: 680px) {
  .boq-sheet { width: 100vw; height: 100vh; border-radius: 0; }
  .boq-head { flex-wrap: wrap; }
  .boq-actions { width: 100%; order: 3; }
  table.boq-tbl .col-spec, table.boq-tbl .col-room { display: none; }
}
@media print {
  body > *:not(#boq) { display: none !important; }
  #boq, #boq.hidden { display: block !important; position: static; background: #fff; backdrop-filter: none; }
  .boq-sheet { width: 100%; height: auto; background: #fff; color: #111; border: 0; box-shadow: none; }
  .boq-head, .boq-pkg h3, .boq-head h2 { color: #111; }
  .boq-head p, .boq-pkg .blurb, .boq-actions, .boq-tabs, .boq-pkg figcaption { color: #444; }
  .boq-actions, .boq-tabs { display: none !important; }
  .boq-body { overflow: visible; height: auto; }
  .boq-pkg { break-inside: avoid; page-break-inside: avoid; }
  .boq-pkg img { max-height: 180px; }
  table.boq-tbl th { position: static; background: #fff; color: #333; }
  table.boq-tbl th, table.boq-tbl td { border-bottom: 1px solid #ccc; color: #111; }
  table.boq-tbl td.ref { color: #333; }
  table.boq-sum td, table.boq-sum td.qty, table.boq-tbl tfoot td { color: #111; }
}
#overlay .card .sub a { color: var(--accent); text-decoration: none; font-weight: 600; }
#overlay .card .sub a:hover { text-decoration: underline; }

/* ---- keyboard shortcuts on screen (laptop / desktop; built by main.js, never on touch) ---- */
kbd.kc { position: absolute; right: -5px; bottom: -6px; min-width: 15px; padding: 0 3px; margin: 0; font-size: 9.5px; line-height: 14px;
  border-width: 1px; border-bottom-width: 1px; border-radius: 4px; background: rgba(20,17,14,0.92); color: var(--muted); pointer-events: none; }
#tools button { position: relative; }
#mode { align-items: center; }
#mode kbd.mode-kc { position: static; margin: 0 4px 0 2px; font-size: 10px; line-height: 16px; }
kbd.kc.hit, #keyLegend div.hit { animation: kc-hit 0.45s ease-out; }
@keyframes kc-hit { 0% { background: var(--accent); color: white; } 100% { } }
#keyLegend { position: fixed; left: var(--left); bottom: var(--bottom); z-index: 4; width: 214px; padding: 6px 8px 7px; background: var(--panel);
  border-radius: 10px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-size: 11.5px; }
#keyLegend .kl-head { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 1px 0 4px; border: 0;
  background: none; color: var(--ink); font: inherit; font-weight: 600; font-size: 11.5px; cursor: pointer; }
#keyLegend .kl-head kbd { font-size: 10px; padding: 0 4px; min-width: 0; }
#keyLegend dl { margin: 0; display: grid; gap: 2px; }
#keyLegend dl div { display: grid; grid-template-columns: 84px 1fr; align-items: center; gap: 6px; padding: 1px 3px; border-radius: 5px; }
#keyLegend dt { display: flex; gap: 2px; align-items: center; }
#keyLegend dt i { color: var(--muted); font-style: normal; padding: 0 1px; }
#keyLegend dt kbd { min-width: 17px; padding: 0 3px; margin: 0; font-size: 10.5px; line-height: 15px; border-bottom-width: 1px; }
#keyLegend dd { margin: 0; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#keyLegend.collapsed { width: auto; padding: 4px 8px; }
#keyLegend.collapsed dl { display: none; }
#keyLegend.collapsed .kl-head { padding: 0; gap: 8px; }
body:not(.projected) #keyLegend [data-row="details"] { display: none; }
body.kl-open.projected #items { max-height: calc(100vh - 470px); }       /* the item list stops above the legend */
@media (max-width: 1099px) { #keyLegend:not(.collapsed) { bottom: calc(var(--bottom) + 48px); } }   /* clear the room chips */
body.touch #keyLegend, body.touch kbd.kc, body.shot #keyLegend, body.shot kbd.kc { display: none; }
#itemsMore kbd.kc-in { margin: 0 0 0 5px; min-width: 0; padding: 0 3px; font-size: 9.5px; line-height: 13px; border-bottom-width: 1px; opacity: 0.8; }
#itemsMore kbd.kc-in.hit { animation: kc-hit 0.45s ease-out; }
.card .legal-links { margin: 14px 0 0; font-size: 11.5px; color: var(--muted); }
.card .legal-links a { color: var(--muted); }

/* ---- Blueprint overlay (T): dimension labels over the 3D view + the room card ---- */
#bp-labels { position: fixed; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.bp-l { font: 600 10.5px/1.15 ui-monospace, "SF Mono", Menlo, monospace; color: #e0f2fe; white-space: nowrap; padding: 1px 4px; border-radius: 4px; background: rgba(6, 28, 66, 0.72); border: 1px solid rgba(147, 197, 253, 0.35); }
.bp-l.big { font-size: 12px; color: #fff; border-color: rgba(224, 242, 254, 0.6); }
.bp-l.obj { background: rgba(6, 28, 66, 0.6); border-color: rgba(203, 213, 225, 0.3); color: #e2e8f0; font-weight: 500; font-size: 10px; }
.bp-l.obj.new { color: #fed7aa; border-color: rgba(253, 186, 116, 0.4); }
.bp-l.obj.elec { color: #f5d0fe; border-color: rgba(233, 168, 255, 0.4); }
.bp-l.open { color: #bfdbfe; background: rgba(6, 28, 66, 0.55); font-weight: 500; font-size: 10px; }
.bp-l.board { color: #99f6e4; background: rgba(4, 47, 46, 0.55); border-color: rgba(94, 234, 212, 0.35); font-weight: 500; font-size: 9.5px; }
.bp-l.board.cut { color: #5eead4; }
.bp-l.note { color: #cbd5e1; font-weight: 500; font-size: 10px; }
.bp-l.focus { color: #1c1917; background: #fde047; border-color: #fde047; font-size: 11.5px; }
.bp-l.gap { color: #1c1917; background: #facc15; border-color: #facc15; font-size: 11px; }
body.blueprint #crosshair { background: #fde047; }
body.blueprint.touch #crosshair.hidden { display: block !important; }

#bp-card { position: fixed; right: var(--right); bottom: calc(var(--bottom) + 52px); z-index: 5; width: min(340px, 46vw); max-height: calc(100vh - 160px); overflow: auto; padding: 10px 13px 11px; background: rgba(6, 24, 56, 0.86); border: 1px solid rgba(147, 197, 253, 0.35); border-radius: 12px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-size: 12px; color: #e0f2fe; }
#bp-card h3 { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: 13px; }
#bp-card h3 span { color: #93c5fd; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; font-size: 11px; }
#bp-card .bp-x { margin-left: auto; appearance: none; border: 0; background: transparent; color: #93c5fd; font-size: 14px; cursor: pointer; padding: 0 2px; }
#bp-card p { margin: 0 0 5px; }
#bp-card .muted { color: #93a9c9; }
#bp-card .tiny { font-size: 10.5px; margin: 6px 0 0; }
#bp-card .hint { font-style: italic; }
#bp-card .bp-focus { margin: 6px 0; padding: 7px 9px; border-radius: 8px; background: rgba(253, 224, 71, 0.1); border: 1px solid rgba(253, 224, 71, 0.4); display: grid; gap: 2px; }
#bp-card .bp-focus .id { color: #fde047; font: 700 11.5px ui-monospace, monospace; margin-right: 4px; }
#bp-card .mono { font: 11.5px ui-monospace, "SF Mono", Menlo, monospace; color: #fef9c3; }
#bp-card .tag { margin-left: 6px; padding: 0 5px; border-radius: 4px; font-size: 10px; background: rgba(203, 213, 225, 0.2); color: #e2e8f0; }
#bp-card .tag.new { background: rgba(253, 186, 116, 0.25); color: #fed7aa; }
#bp-card .bp-dl { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; padding-top: 7px; border-top: 1px solid rgba(147, 197, 253, 0.2); }
#bp-card .bp-dl span { width: 100%; color: #93a9c9; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; }
#bp-card .bp-dl a { padding: 3px 8px; border-radius: 6px; border: 1px solid rgba(147, 197, 253, 0.4); background: rgba(147, 197, 253, 0.1); color: #e0f2fe; text-decoration: none; font-size: 11.5px; font-weight: 600; }
#bp-card .bp-dl a:hover { background: rgba(147, 197, 253, 0.25); }
#tools button#t-blueprint.on { border-color: #60a5fa; background: rgba(37, 99, 235, 0.45); }
.boq-actions a.btn { appearance: none; border: 1px solid rgba(255,255,255,0.16); background: rgba(255,255,255,0.06); color: var(--ink); padding: 6px 11px; border-radius: 8px; font-size: 12px; font-weight: 600; white-space: nowrap; text-decoration: none; }
.boq-actions a.btn:hover { background: rgba(255,255,255,0.14); }
@media (max-width: 760px) {
  #bp-card { left: var(--left); right: var(--right); width: auto; bottom: calc(var(--bottom) + 56px); max-height: 34vh; font-size: 11.5px; }
  body.touch #bp-card { bottom: calc(var(--bottom) + 52px + 120px); }
  #bp-card h3 { cursor: pointer; }
  #bp-card.folded > :not(h3):not(.bp-focus) { display: none; }
}

/* eye height: Z squat / X stand taller (keys); ▲ ▼ beside the joystick on touch */
#eye { margin-top: 2px; color: var(--accent); font-size: 10.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
#eyeBtns { display: none; position: fixed; left: calc(var(--left) + 8px + 104px + 10px); bottom: calc(var(--bottom) + 52px + 7px); z-index: 4; flex-direction: column; gap: 6px; }
body.touch #eyeBtns { display: flex; }
#eyeBtns button { appearance: none; width: 40px; height: 40px; padding: 0; border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.22); background: rgba(24,20,17,0.35); color: var(--ink); font-size: 14px; line-height: 1; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); touch-action: manipulation; cursor: pointer; }
#eyeBtns button:active { background: rgba(201,84,47,0.9); }
#eyeBtns button:disabled { opacity: 0.35; }
