:root {
  /* Slate is the default theme; Black and White are chosen from the switch in the top bar (data-theme on <html>) */
  color-scheme: dark;
  --bg: #171c25; --panel: #232b38; --panel2: #1c2330; --ink: #e6eaf1; --muted: #9aa6ba; --line: #364154; --hi: #ffffff14;
  --accent: #3d8bff; --on-accent: #fff; --danger: #d63a36; --shadow: #0007;
  --plan-bg: #2b3442; --edge-bg: #323d50; --edit-bg: #3a3321; --edit-line: #5a4f2c; --hint-bg: #3a3321; --hint-ink: #e6c97a;
  --c360: #2f7bff; --c2d: #ef4a3d;
  --pin: 28px; --cluster: 38px; --btn: 36px; --gap: 10px; --radius: 14px;
}
:root[data-theme="black"] {
  --bg: #000000; --panel: #0e0e10; --panel2: #151518; --ink: #f1f2f4; --muted: #8f939c; --line: #26262b; --hi: #ffffff12;
  --accent: #1ea0ff; --shadow: #000c;
  --plan-bg: #060607; --edge-bg: #1b1b20; --edit-bg: #1d1a10; --edit-line: #3d3519; --hint-bg: #1d1a10;
}
:root[data-theme="purple"] {
  --bg: #130f1f; --panel: #1f1933; --panel2: #171227; --ink: #ede9f8; --muted: #a79fc6; --line: #3a3058; --hi: #ffffff16;
  --accent: #9b6bff; --shadow: #0009;
  --plan-bg: #261e40; --edge-bg: #35295a;
}
:root[data-theme="lime"] {
  --bg: #0c120c; --panel: #162015; --panel2: #0f180f; --ink: #e9f3e6; --muted: #93a98e; --line: #2b3e29; --hi: #ffffff14;
  --accent: #a6e22e; --on-accent: #12200a; --shadow: #000a;
  --plan-bg: #111a11; --edge-bg: #243621;
}
:root[data-theme="white"] {
  color-scheme: light;
  --bg: #e6eaf0; --panel: #ffffff; --panel2: #f3f5f9; --ink: #1c2433; --muted: #5d6b82; --line: #d3d9e3; --hi: #ffffffcc;
  --accent: #1769e0; --danger: #c62828; --shadow: #1c243322;
  --brand-bg: #10151f; --plan-bg: #d9dde4; --edge-bg: #1c2433; --edit-bg: #fff7e0; --edit-line: #ecd9a0; --hint-bg: #fff7e0; --hint-ink: #7a5200;
  --c360: #1769e0; --c2d: #d92d20;
}
@media (pointer: coarse) { :root { --pin: 40px; --cluster: 50px; --btn: 46px; } }
@media (max-width: 700px) { :root { --gap: 6px; --radius: 10px; } }
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.4 system-ui, "Segoe UI", sans-serif; overflow: hidden; }
#app { height: 100%; display: flex; flex-direction: column; padding: var(--gap); gap: var(--gap); }
button, input { font: inherit; color: inherit; }
button { min-height: var(--btn); padding: 0 14px; border: 1px solid var(--line); background: var(--panel2); border-radius: 9px; cursor: pointer; }
button:hover:not(:disabled) { border-color: var(--accent); }
button:disabled { opacity: .45; cursor: default; }
button.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
button.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
button.toggle.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
input[type=search], input[name=v] { min-height: var(--btn); padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel2); min-width: 0; }
.grow { flex: 1; }
[hidden] { display: none !important; }

/* top bars */
.top { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 6px 18px var(--shadow), inset 0 1px 0 var(--hi); flex-wrap: wrap; flex: none; }
.top h1 { font-size: 18px; margin: 0 12px 0 0; }
.ptitle { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 34vw; }
.floors { display: flex; gap: 6px; overflow-x: auto; max-width: 100%; }
.floors button.cur { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.chk { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.editbar { display: flex; gap: 8px; padding: 6px 12px; background: var(--edit-bg); border: 1px solid var(--edit-line); border-radius: var(--radius); flex-wrap: wrap; align-items: center; flex: none; }
.editbar .sep { width: 1px; align-self: stretch; background: var(--line); margin: 0 4px; }
.badge { background: var(--accent); color: var(--on-accent); border-radius: 10px; padding: 0 7px; font-size: 12px; margin-left: 4px; }

/* project list */
.plist { padding: 4px 2px 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; overflow: auto; align-content: start; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 4px 14px var(--shadow), inset 0 1px 0 var(--hi); padding: 14px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.card:hover { border-color: var(--accent); }
.card .num { color: var(--muted); font-size: 13px; }
.card .nm { font-size: 17px; font-weight: 600; }
.card .meta { color: var(--muted); font-size: 13px; }
.card .act { margin-top: 8px; display: flex; gap: 8px; }
.card.inactive { opacity: .6; }
.empty { color: var(--muted); padding: 24px; }

/* stage and the layout steps: full > plan80 > half > photo80 */
.proj { display: flex; flex-direction: column; height: 100%; min-height: 0; gap: var(--gap); }
.stage { flex: 1; display: flex; gap: var(--gap); min-height: 0; }
.plan-pane, .photo-pane { position: relative; min-width: 0; min-height: 0; display: flex; flex-direction: column; transition: width .25s ease, margin .25s ease; overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 24px var(--shadow); }
.plan-pane::after, .photo-pane::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 9; box-shadow: inset 0 1px 0 var(--hi); }   /* fine highlight along the top edge */
.plan-pane { width: 100%; }
.photo-pane { width: 0; margin-left: calc(var(--gap) * -1); border-width: 0; background: #000; }
.L-plan80 .plan-pane { width: calc(100% - 38px - var(--gap)); } .L-plan80 .photo-pane { width: 38px; margin-left: 0; border-width: 1px; background: var(--edge-bg); }
.L-plan80 .phead, .L-plan80 .pview { display: none; }
.edgebar { flex: 1; width: 100%; min-height: 0; padding: 14px 0; border: 0; border-radius: 0; background: var(--edge-bg); color: #fff; display: flex; flex-direction: column; align-items: center; gap: 14px; cursor: pointer; }
.edgebar:hover:not(:disabled) { background: var(--accent); }
.edgebar .arrow { font-size: 18px; line-height: 1; }
.edgebar .nm { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 13px; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-height: 70%; opacity: .85; }
.L-half .plan-pane { width: calc(50% - var(--gap) / 2); } .L-half .photo-pane { width: calc(50% - var(--gap) / 2); margin-left: 0; border-width: 1px; }
.L-photo80 .plan-pane { width: 38px; background: var(--edge-bg); } .L-photo80 .photo-pane { width: calc(100% - 38px - var(--gap)); margin-left: 0; border-width: 1px; }
.L-photo80 .plan-pane > :not(.edgebar) { display: none; }       /* the plan folds away to a slim bar; click it to come back to 50/50 */
@media (prefers-reduced-motion: reduce) { .plan-pane, .photo-pane { transition: none; } }

/* plan */
.vp { position: relative; flex: 1; min-height: 0; background: var(--plan-bg); overflow: hidden; touch-action: none; user-select: none; }
.vp canvas { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.pins { position: absolute; inset: 0; pointer-events: none; }
.pins > * { pointer-events: auto; }
.ctl { position: absolute; display: flex; gap: 6px; z-index: 5; }
.ctl.tl { left: 10px; top: 10px; } .ctl.tr { right: 10px; top: 10px; }
.ctl button { box-shadow: 0 1px 4px #0003; }
.ctl.tr button { min-width: var(--btn); padding: 0 10px; font-size: 18px; }
.empty-plan { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; color: var(--muted); text-align: center; padding: 20px; }
.hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); background: #000c; color: #fff; padding: 8px 14px; border-radius: 20px; z-index: 6; display: flex; gap: 10px; align-items: center; width: max-content; max-width: calc(100% - 20px); }
.hint button { min-height: 28px; padding: 0 10px; color: #1c2433; flex: none; }
.vp.armed { cursor: crosshair; }

/* pins and clusters */
.pin, .cluster { position: absolute; transform: translate(-50%, -50%); padding: 0; border: 2px solid #fff; box-shadow: 0 1px 5px #0006; color: #fff; display: grid; place-items: center; cursor: pointer; }
.pin, .cluster { min-height: 0; }
.pin { width: var(--pin); height: var(--pin); }
.pin.t360 { background: var(--c360); border-radius: 50%; }
.pin.t2d { background: var(--c2d); border-radius: 6px; }
.pin::after { content: ""; width: 34%; height: 34%; background: #fff; border-radius: 50%; }
.pin.t2d::after { border-radius: 2px; }
.pin.sel { outline: 3px solid #ffd400; outline-offset: 2px; z-index: 2; }
.edit .pin { cursor: grab; }
.cluster { width: var(--cluster); height: var(--cluster); border-radius: 50%; font-weight: 700; font-size: 15px; }
.cluster.t360 { background: var(--c360); } .cluster.t2d { background: var(--c2d); }
.cluster.mixed { background: conic-gradient(var(--c360) 0 var(--p), var(--c2d) var(--p) 100%); }
.cluster.mixed span { display: grid; place-items: center; width: 76%; height: 76%; border-radius: 50%; background: #243049; }
.popup { position: absolute; z-index: 7; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 8px; box-shadow: 0 4px 16px #0005; display: grid; gap: 6px; max-height: 60%; overflow: auto; }
.popup button { display: flex; align-items: center; gap: 8px; text-align: left; padding: 4px 8px 4px 4px; }
.popup img { width: 64px; height: 32px; object-fit: cover; border-radius: 4px; }

/* PDF layers panel */
.layersbtn.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.layers { position: absolute; top: calc(var(--btn) + 18px); right: 10px; z-index: 7; width: min(320px, calc(100% - 20px)); max-height: calc(100% - var(--btn) - 40px); display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 4px 16px #0005; overflow: hidden; }
.lhead { display: flex; align-items: center; gap: 6px; padding: 8px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.lhead button { min-height: 30px; padding: 0 8px; font-size: 13px; }
.lcount { color: var(--muted); font-size: 12px; }
.llist { overflow: auto; padding: 4px 0; }
.llist label { display: flex; align-items: center; gap: 10px; min-height: var(--btn); padding-right: 10px; cursor: pointer; }
.llist label:hover { background: var(--bg); }
.llist input { width: 18px; height: 18px; flex: none; }
.llist span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lgroup { font-weight: 600; color: var(--muted); font-size: 12px; text-transform: uppercase; padding: 8px 8px 2px; }

/* tray */
.tray { background: var(--panel2); border-top: 1px solid var(--line); padding: 8px 10px; flex: none; user-select: none; -webkit-user-select: none; }
.tray-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.tray-list { display: flex; gap: 8px; overflow-x: auto; min-height: 66px; align-items: center; }
.tray-list .th { flex: none; position: relative; width: 120px; height: 60px; border-radius: 6px; overflow: hidden; border: 2px solid transparent; touch-action: none; cursor: grab; background: #000; }
.tray-list .th img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.tray-list .th.armed { border-color: #ffd400; }
.tray-list .th span { position: absolute; left: 0; right: 0; bottom: 0; font-size: 10px; color: #fff; background: #0009; padding: 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tray-list .none { color: var(--muted); }
.ghost { position: fixed; z-index: 100; width: 90px; height: 45px; border: 2px solid #ffd400; border-radius: 6px; object-fit: cover; transform: translate(-50%, -50%); pointer-events: none; opacity: .9; }

/* photo pane */
.phead { display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: var(--panel); border-bottom: 1px solid var(--line); flex: none; flex-wrap: wrap; }
.ptt { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.ptt b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ptt span { color: var(--muted); font-size: 12px; }
.pview { flex: 1; min-height: 0; position: relative; background: #000; }
.flat { position: absolute; inset: 0; overflow: hidden; display: grid; place-items: center; touch-action: none; }
.flat img { max-width: 100%; max-height: 100%; transform-origin: center; user-select: none; }
/* photo header: rotate arrows (2D photos only) and the 360° / 2D switch */
.rotgrp { display: inline-flex; gap: 4px; }
button.ico { display: inline-grid; place-items: center; padding: 0 10px; line-height: 0; }
button.ico.off { opacity: .35; cursor: default; }
button.ico.off:hover { border-color: var(--line); }
.seg { display: inline-flex; }
.seg button { border-radius: 0; margin-left: -1px; min-width: 46px; padding: 0 10px; }
.seg button:first-child { border-radius: 8px 0 0 8px; margin-left: 0; }
.seg button:last-child { border-radius: 0 8px 8px 0; }
.seg button.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); cursor: default; position: relative; z-index: 1; }

/* view cone, scale points, centre cross, nearby-pin markers */
.cone { position: absolute; transform: translate(-50%, -50%); pointer-events: none !important; overflow: visible; }
.cone path { fill: rgba(255, 212, 0, .32); stroke: #ffd400; stroke-width: 1.5; pointer-events: auto; cursor: crosshair; }
.cone path:hover { fill: rgba(255, 212, 0, .5); }
.pmenu { position: absolute; z-index: 8; min-width: 200px; max-width: calc(100% - 12px); display: grid; gap: 4px; padding: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 4px 16px #0006; }
.pmenu button { text-align: left; justify-content: flex-start; min-height: var(--btn); }
.pmenu .pmtitle { font-size: 12px; color: var(--muted); padding: 2px 6px 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spt { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border: 2px solid #e11d48; border-radius: 50%; background: #fff8; pointer-events: none !important; }
.pbox { position: absolute; inset: 0; }
.xhair { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%); pointer-events: none; z-index: 6; }
.xhair::before, .xhair::after { content: ""; position: absolute; background: #fff; box-shadow: 0 0 3px #000; }
.xhair::before { left: 50%; top: 0; width: 2px; height: 100%; margin-left: -1px; }
.xhair::after { top: 50%; left: 0; height: 2px; width: 100%; margin-top: -1px; }
.dirnote { color: var(--muted); font-size: 12px; }
.scaleinfo { color: var(--muted); font-size: 13px; }
.nbr { position: relative; width: 100%; height: 100%; border-radius: 50%; border: 3px solid var(--c360); background: #000; box-shadow: 0 2px 8px #0008; cursor: pointer; }
.nbr.t2d { border-color: var(--c2d); border-radius: 10px; }
.nbr img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.nbr span { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); margin-top: 4px; white-space: nowrap; font-size: 12px; color: #fff; background: #000b; padding: 1px 8px; border-radius: 10px; }

/* floor manager, replace-PDF choice, tray filter */
.modal.wide { width: min(560px, 100%); }
.fstack { display: grid; gap: 4px; max-height: 38vh; overflow: auto; border: 1px solid var(--line); border-radius: 8px; padding: 4px; }
.frow { display: flex; align-items: center; gap: 10px; padding: 4px 8px 4px 4px; border-radius: 6px; cursor: pointer; min-height: var(--btn); }
.frow:hover { background: var(--bg); }
.frow.sel { background: color-mix(in srgb, var(--accent) 16%, transparent); outline: 2px solid var(--accent); }
.fmove { display: flex; gap: 4px; flex: none; }
.fmove button { min-height: 30px; min-width: 34px; padding: 0 6px; }
.fname { flex: 1; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fmeta { color: var(--muted); font-size: 13px; flex: none; }
.fsel { color: var(--muted); font-size: 14px; }
.modal .fact { align-items: center; }
.addfloor { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.arow { display: flex; gap: 8px; align-items: center; }
.arow input { flex: 1; min-width: 0; min-height: var(--btn); padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.arow select, .tray-head select { min-height: var(--btn); border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: inherit; padding: 0 8px; font: inherit; }
.arow button { max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.opt { display: flex; gap: 10px; align-items: flex-start; padding: 8px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.opt input { margin-top: 4px; }
.opt small { color: var(--muted); }
.trayq { width: 170px; min-height: var(--btn); padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }

/* plan header: floor drum on the left, two-line date filter on the right */
.planhead { display: flex; align-items: center; gap: 12px; padding: 6px 10px; background: var(--panel2); border-bottom: 1px solid var(--line); flex: none; flex-wrap: nowrap; container-type: inline-size; }
.floordrum { display: flex; align-items: center; gap: 8px; flex: 0 1 260px; min-width: 0; }
.fd-win { position: relative; flex: 1; min-width: 0; height: 90px; overflow: hidden; border-radius: 9px; background: var(--panel); border: 1px solid var(--line); touch-action: none; user-select: none;
  -webkit-mask-image: linear-gradient(transparent, #000 28%, #000 72%, transparent); mask-image: linear-gradient(transparent, #000 28%, #000 72%, transparent); }
.fd-list { transition: transform .2s ease; }
.fd-row { display: block; width: 100%; height: 30px; min-height: 0; padding: 0 12px; border: 0; background: transparent; border-radius: 0; text-align: left; font-size: 15px; line-height: 30px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity .2s; }
.fd-row.cur { font-weight: 700; color: var(--ink); }
.fd-row:not(.cur) { color: var(--muted); }
.fd-row:hover:not(:disabled) { border: 0; color: var(--ink); }
.fd-btns { display: grid; grid-template-rows: 1fr 1fr; gap: 6px; height: 90px; }
.fd-btns button { min-height: 0; width: 44px; padding: 0; font-size: 14px; line-height: 1; }
.fd-edit { flex: none; width: 36px; height: 36px; min-height: 0; padding: 0; font-size: 18px; line-height: 1; }
@media (prefers-reduced-motion: reduce) { .fd-list, .fd-row { transition: none; } }
.filterbar { display: grid; gap: 3px; flex: 1 1 200px; max-width: 320px; min-width: 0; align-content: center; }
.fb-note { color: var(--muted); font-size: 12px; }
.dchart { position: relative; height: 26px; margin: 0 6px; border-bottom: 1px solid var(--line); touch-action: none; user-select: none; }
.dline2 { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); }
.dline2 .dend { font-variant-numeric: tabular-nums; white-space: nowrap; flex: none; }
.dline2 .dmid { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; min-width: 0; }
.fb-reset { min-height: 22px; padding: 0 8px; font-size: 12px; }
.fb-count { white-space: nowrap; font-variant-numeric: tabular-nums; }
.dchart svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.dchart .dfill { fill: color-mix(in srgb, var(--accent) 30%, transparent); }
.dchart .dline { fill: none; stroke: var(--accent); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.dchart .dshade { position: absolute; top: 0; bottom: 0; background: color-mix(in srgb, var(--panel2) 72%, transparent); pointer-events: none; }
.dchart .dshade.l { left: 0; } .dchart .dshade.r { right: 0; }
.dchart .dh { position: absolute; top: -4px; bottom: -3px; width: 26px; margin-left: -13px; cursor: ew-resize; display: grid; place-items: center; z-index: 2; touch-action: none; }
.dchart .dh::before { content: ""; width: 4px; height: 100%; border-radius: 2px; background: var(--accent); box-shadow: 0 0 0 1.5px var(--panel2); }
.dchart .dh::after { content: ""; position: absolute; top: 50%; width: 12px; height: 16px; margin-top: -8px; border-radius: 5px; background: var(--accent); box-shadow: 0 0 0 1.5px var(--panel2); }
.dchart .dh:focus-visible { outline: none; }
.dchart .dh:focus-visible::after { outline: 3px solid #ffd400; }
.dchart.off { filter: grayscale(1); opacity: .5; }
.dchart.off .dh { cursor: default; pointer-events: none; }
.switch { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .knob { width: 34px; height: 20px; border-radius: 10px; background: var(--line); position: relative; transition: background .15s; flex: none; }
.switch .knob::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #0005; transition: transform .15s; }
.switch input:checked + .knob { background: var(--accent); }
.switch input:checked + .knob::after { transform: translateX(14px); }
.switch input:focus-visible + .knob { outline: 3px solid #ffd400; outline-offset: 2px; }
.switch.sm { font-size: 12px; } .switch.sm .knob { width: 28px; height: 16px; } .switch.sm .knob::after { width: 12px; height: 12px; } .switch.sm input:checked + .knob::after { transform: translateX(12px); }
.switch.pill { padding: 0 10px; min-height: var(--btn); border: 1px solid var(--line); border-radius: 9px; background: var(--panel); box-shadow: 0 1px 4px #0003; }
@container (max-width: 640px) { .dline2 .dend { display: none; } }
@container (max-width: 480px) { .fd-btns button { width: 34px; } .fb-count { display: none; } }
/* nearby circle on the plan */
.pins > .nearring { pointer-events: none; overflow: visible; position: absolute; }
.nearring .nr-fill { fill: color-mix(in srgb, var(--accent) 9%, transparent); stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 6 5; }
.nearring .nr-hit { fill: none; stroke: transparent; stroke-width: 22; pointer-events: stroke; cursor: nwse-resize; }
.nearring .nr-knob { fill: var(--accent); stroke: #fff; stroke-width: 2; pointer-events: none; }
.nearring text { fill: #fff; font-size: 11px; font-weight: 700; paint-order: stroke; stroke: #000a; stroke-width: 3px; pointer-events: none; }

/* pin menu: Delete expands on hover (or tap) into two choices */
.pm-del .pm-sub { display: none; margin: 2px 0 0 10px; gap: 4px; }
.pm-del:hover .pm-sub, .pm-del.open .pm-sub { display: grid; }
.pm-del:hover > button, .pm-del.open > button { background: var(--bg); }
.pm-del .chev { float: right; opacity: .6; }
.pm-sub button small { display: block; font-size: 11px; font-weight: 400; opacity: .75; line-height: 1.2; white-space: normal; max-width: 210px; }
.pm-sub button { padding-top: 4px; padding-bottom: 4px; }
.pm-sub button.danger { background: var(--panel); color: var(--danger); border-color: var(--danger); }

/* unplaced thumbnails: small delete control */
.tray-list .th .thx { position: absolute; right: 2px; top: 2px; min-height: 0; width: 22px; height: 22px; padding: 0; border-radius: 50%; border: 0; background: #000b; color: #fff; font-size: 12px; line-height: 1; display: grid; place-items: center; opacity: 0; touch-action: auto; }
.tray-list .th:hover .thx, .tray-list .th:focus-within .thx { opacity: 1; }
@media (pointer: coarse) { .tray-list .th .thx { opacity: .85; width: 28px; height: 28px; } }
.tray-list .th .thx:hover { background: var(--danger); }

/* same-spot list, unplaced strip drop target */
.popup .prow { display: flex; align-items: center; gap: 8px; padding: 4px 6px 4px 4px; border-radius: 8px; cursor: pointer; min-height: var(--btn); }
.popup .prow:hover { background: var(--bg); }
.popup .prow { touch-action: none; cursor: grab; }
.popup .prow span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.popup .prow .pn small { display: block; color: var(--muted); font-size: 11px; }
.popup .prow button { margin-left: auto; min-height: 28px; padding: 0 8px; font-size: 12px; flex: none; }
.popup .phint { margin: 2px 4px 0; font-size: 12px; color: var(--muted); max-width: 240px; }
.tray.peek { position: absolute; left: 0; right: 0; bottom: 0; z-index: 8; box-shadow: 0 -10px 28px var(--shadow); }
.prefrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tray.droptarget { outline: 3px dashed var(--accent); outline-offset: -3px; background: color-mix(in srgb, var(--accent) 12%, var(--panel)); }
.tray.droptarget .tray-head b::after { content: ' · release to unpin this photo'; color: var(--accent); font-weight: 600; }
.tray-list .th.sel { box-shadow: 0 0 0 2px var(--accent); }

/* plan settings form */
.frm { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.frm label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.frm select, .frm input { min-height: var(--btn); border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--ink); padding: 0 10px; font: inherit; }
.frm [hidden] { display: none; }
.hintbox { margin: 0; padding: 8px 10px; border-radius: 8px; background: var(--hint-bg); color: var(--hint-ink) !important; font-size: 14px; }
.calc { background: var(--bg); border-radius: 8px; padding: 8px 10px; margin: 0; color: var(--ink) !important; font-size: 14px; }
.calc small { color: var(--muted); }

/* export / import */
a.btn { display: inline-flex; align-items: center; justify-content: center; min-height: var(--btn); padding: 0 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); text-decoration: none; color: inherit; }
a.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.freeup { border-top: 1px solid var(--line); padding-top: 10px; display: grid; gap: 8px; }
.freeup p, .modal .small { margin: 0; }
.modal .small { font-size: 12px; }
.modal .muted { color: var(--muted); }
.modal .warn { color: #b45309; }
.bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.bar i { display: block; width: 35%; height: 100%; background: var(--accent); border-radius: 3px; animation: slide 1.2s ease-in-out infinite; }
@keyframes slide { 0% { margin-left: -35%; } 100% { margin-left: 100%; } }
@media (prefers-reduced-motion: reduce) { .bar i { animation: none; width: 100%; } }
.bar.det i { width: 0; margin-left: 0; animation: none; transition: width .3s ease-out; }
.bar.det.ind i { width: 35%; animation: slide 1.2s ease-in-out infinite; }
.pnums { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
.pnums .ppct { font-weight: 700; min-width: 3.2em; }
.pnums .pbytes, .pnums .peta { color: var(--muted); }
.pnums .peta { margin-left: auto; }
.pfile { margin: 0; min-height: 1.4em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
ul.plain { margin: 0; padding-left: 20px; font-size: 13px; color: var(--muted); }
.card.exported { border-style: dashed; cursor: default; }
.card.exported .nm { color: var(--muted); }

/* dialogs and toasts */
.modal-ov { position: fixed; inset: 0; background: #0008; display: grid; place-items: center; z-index: 200; padding: 16px; }
.modal { background: var(--panel); border: 1px solid var(--line); box-shadow: 0 16px 48px #000a, inset 0 1px 0 var(--hi); border-radius: var(--radius); padding: 18px; width: min(440px, 100%); display: grid; gap: 12px; max-height: 90vh; overflow: auto; }
.modal h3 { margin: 0; } .modal p { margin: 0; color: var(--muted); }
.modal .row { display: flex; justify-content: flex-end; gap: 8px; }
.binrow { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.binrow img { width: 72px; height: 36px; object-fit: cover; border-radius: 4px; background: #000; }
.binrow .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: #111d; color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 300; max-width: 90vw; }

/* projects screen: unassigned images */
.front { flex: 1; min-height: 0; overflow: auto; }
.front .plist { overflow: visible; }
.lib { margin: 4px 2px 28px; padding: 14px; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 4px 14px var(--shadow), inset 0 1px 0 var(--hi); border-radius: var(--radius); display: grid; gap: 10px; }
.libhead { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.libhead h2 { margin: 0 12px 0 0; font-size: 17px; }
.libhead .cnt { background: var(--accent); color: var(--on-accent); border-radius: 10px; padding: 0 8px; font-size: 13px; margin-left: 6px; }
.lib .muted { margin: 0; color: var(--muted); font-size: 13px; }
.libgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.lcard { position: relative; border: 2px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--bg); }
.lcard.sel { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 30%, transparent); }
.lcard img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; display: block; background: #000; cursor: zoom-in; }
.lcard .lchk { position: absolute; left: 8px; top: 8px; width: 22px; height: 22px; accent-color: var(--accent); }
.lcard .linfo { padding: 6px 8px 8px; display: grid; min-width: 0; }
.lcard .linfo b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lcard .linfo small { color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.binlist { max-height: 50vh; overflow: auto; }
.modal.preview { width: min(900px, 100%); }
.pvbox { position: relative; height: min(60vh, 520px); background: #000; border-radius: 8px; overflow: hidden; display: grid; place-items: center; }
.pvbox img { max-width: 100%; max-height: 100%; }

/* theme switch (top bar) */
.themes { display: inline-flex; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel2); }
.themes button { min-height: 0; width: 22px; height: 22px; padding: 0; border-radius: 50%; border: 2px solid var(--line); }
.themes button[data-theme="slate"] { background: linear-gradient(135deg, #3b4658, #1c2330); }
.themes button[data-theme="black"] { background: #000; }
.themes button[data-theme="white"] { background: #fff; }
.themes button[data-theme="purple"] { background: linear-gradient(135deg, #b48cff, #2a1f4d); }
.themes button[data-theme="lime"] { background: linear-gradient(135deg, #b8f24a, #16230f); }
.themes button.on { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 35%, transparent); }
@media (pointer: coarse) { .themes button { width: 30px; height: 30px; } }

/* JG Imagine logo: transparent PNG, so it takes the theme's colours; the white theme gives it a dark chip */
.brand { display: flex; align-items: center; flex: none; padding: 4px 8px; border-radius: 12px; background: var(--brand-bg, transparent); }
.planhead .brand { margin-left: auto; }
.brand img { height: 46px; width: auto; display: block; }
.brand.sm { padding: 2px 8px; border-radius: 10px; }
.brand.sm img { height: 30px; }
@container (max-width: 560px) { .planhead .brand { display: none; } }

/* floors dialog */
.modal.floors { width: min(1040px, 100%); }
.fcols { display: grid; grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.4fr); gap: 20px; align-items: start; }
.fcol { display: grid; gap: 10px; align-content: start; min-width: 0; }
.fcol h4 { margin: 0; font-size: 15px; }
.fcol.fr { padding-left: 20px; border-left: 1px solid var(--line); }
.fcol .muted { margin: 0; }
.fhead { display: flex; align-items: center; gap: 12px; }
.fhead h3 { margin: 0; }
.flist { display: grid; gap: 6px; max-height: 52vh; overflow: auto; padding: 2px; }
.frow2 { display: grid; grid-template-columns: 34px 1fr auto 26px; align-items: center; gap: 10px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel2); cursor: pointer; }
.frow2:hover { border-color: var(--accent); }
.frow2.sel { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--panel2)); }
.frow2 .fgrip { text-align: center; font-size: 20px; line-height: 1; color: var(--muted); cursor: grab; touch-action: none; user-select: none; padding: 4px 0; border: 1px solid var(--line); border-radius: 7px; }
.frow2 .fnm { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frow2 .fpins { color: var(--muted); font-size: 13px; white-space: nowrap; }
.frow2 .fmark { text-align: center; color: var(--accent); }
.frow2.dragging { opacity: .35; }
.frow2.drop-before { box-shadow: 0 -3px 0 var(--accent); }
.frow2.drop-after { box-shadow: 0 3px 0 var(--accent); }
.frow2.fghost { position: fixed; z-index: 400; pointer-events: none; opacity: .92; box-shadow: 0 8px 24px var(--shadow); background: var(--panel); }
.ftools { display: flex; gap: 10px; flex-wrap: wrap; }
.ftools button { display: inline-flex; align-items: center; gap: 8px; }
.fbin small { color: var(--muted); font-size: 11px; }
.fbin.over { outline: 2px dashed var(--danger); background: color-mix(in srgb, var(--danger) 20%, var(--panel2)); }
.fthumb { width: 100%; height: clamp(220px, 38vh, 360px); display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--plan-bg); overflow: hidden; text-align: center; padding: 6px; }
.fthumb img { max-width: 100%; max-height: 100%; display: block; background: #fff; }
.frot { display: flex; gap: 8px; align-items: center; }
.frot button { padding: 0 14px; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fgrid .wide { grid-column: 1 / 3; }
.fcol label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.fcol input, .fcol select { min-height: var(--btn); border: 1px solid var(--line); border-radius: 9px; background: var(--panel2); color: var(--ink); padding: 0 10px; font: inherit; }
.fscale { margin: -4px 0 0; }
.fbtns { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 820px) { .fcols { grid-template-columns: 1fr; } .fcol.fr { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); padding-top: 12px; } .flist { max-height: 30vh; } }

/* accounts */
.authwrap { min-height: 100%; display: grid; place-items: center; padding: 16px; }
.authcard { width: min(420px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 16px 48px var(--shadow), inset 0 1px 0 var(--hi); padding: 22px; display: grid; gap: 14px; }
.authbrand { display: flex; align-items: center; gap: 12px; }
.authbrand img { height: 48px; width: auto; }
.authbrand h1 { margin: 0; font-size: 20px; }
.authcard h2 { margin: 0 0 4px; font-size: 18px; }
.authcard form { display: grid; gap: 12px; }
.authcard label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.authcard label.chk { display: flex; }
.authcard input:not([type=checkbox]) { min-height: var(--btn); border: 1px solid var(--line); border-radius: 9px; background: var(--panel2); color: var(--ink); padding: 0 10px; font: inherit; }
.authcard p { margin: 0; }
.authnote { background: color-mix(in srgb, var(--accent) 14%, transparent); border-radius: 9px; padding: 8px 10px; font-size: 14px; }
.autherr { color: #ff8a80; font-size: 14px; }
:root[data-theme="white"] .autherr { color: #b3261e; }
.authlinks { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.authlinks a { color: var(--accent); }
.userchip small { color: var(--muted); font-size: 11px; margin-left: 4px; }
.modal.users { width: min(980px, 100%); }
.ulist { display: grid; gap: 6px; }
.urow { display: grid; grid-template-columns: minmax(180px, 1.6fr) 150px 110px 150px auto; gap: 10px; align-items: center; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel2); }
.urow .uwho { display: grid; min-width: 0; } .urow .uwho small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.urow select { min-height: 34px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); color: inherit; padding: 0 8px; font: inherit; }
.urow .ustat { font-size: 13px; } .ustat.active { color: #6fcf97; } .ustat.disabled { color: #ff8a80; } .ustat.invited, .ustat.unverified { color: #e6c97a; }
.urow .ulast { color: var(--muted); font-size: 12px; }
.urow .uact { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.urow .uact button { min-height: 30px; padding: 0 10px; font-size: 13px; }
.invite { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.invite .arow input, .invite .arow select { min-height: var(--btn); border: 1px solid var(--line); border-radius: 9px; background: var(--panel2); color: inherit; padding: 0 10px; font: inherit; flex: 1; min-width: 0; }
.tabs { width: max-content; }
.alist { max-height: 60vh; overflow: auto; }
.alist table { width: 100%; border-collapse: collapse; font-size: 13px; }
.alist th, .alist td { text-align: left; padding: 5px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.alist th { color: var(--muted); font-weight: 600; position: sticky; top: 0; background: var(--panel); }
@media (max-width: 820px) { .urow { grid-template-columns: 1fr 1fr; } }
body.readonly #editBtn, body.readonly #exportBtn, body.readonly #newp, body.readonly #impBtn, body.readonly .fd-edit, body.readonly #importBtn, body.readonly #lib { display: none !important; }

/* comments */
.cbadge { position: absolute; right: -7px; top: -9px; width: 16px; height: 16px; border-radius: 50%; background: #ffd400; color: #2a2200; border: 1.5px solid #fff; font: 800 11px/13px system-ui, sans-serif; text-align: center; pointer-events: none; box-shadow: 0 1px 3px #0006; }
.cbadge:not(.new) { background: #2a2200; color: #ffd400; border-color: #ffd400; opacity: .85; }
.cluster .cbadge { right: -4px; top: -6px; }
.cswitch { margin-left: 4px; }
@container (max-width: 560px) { .cswitch .lf { display: none; } .cswitch .ls { display: inline; font-weight: 800; } }
.combtn { display: inline-flex; align-items: center; gap: 6px; }
.combtn .cn:not(:empty) { background: var(--panel); color: var(--ink); border-radius: 9px; padding: 0 6px; font-size: 12px; }
.combtn.new { border-color: #ffd400; box-shadow: 0 0 0 2px #ffd40055; }
.combtn.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent, #fff); }
.companel { position: absolute; right: 10px; top: 10px; max-height: calc(100% - 66px); width: clamp(230px, 40%, 320px); display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 28px #000a; z-index: 8; overflow: hidden; }
.chead { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.chead .cc { color: var(--muted); font-size: 12px; }
.chead button { min-height: 28px; padding: 0 8px; }
.clist { flex: 1; min-height: 0; overflow: auto; padding: 8px 10px; display: grid; gap: 8px; align-content: start; }
.cm { border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; background: var(--panel2); }
.cm.mine { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.cm p { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; }
.cmeta { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 12px; }
.cmeta span { color: var(--muted); }
.cmeta .cact { margin-left: auto; display: flex; gap: 4px; }
.cmeta .cact button { min-height: 22px; padding: 0 6px; font-size: 11px; }
.cform, .cedit { display: grid; gap: 6px; padding: 8px 10px; border-top: 1px solid var(--line); }
.cedit { border: 0; padding: 4px 0 0; }
.cform textarea, .cedit textarea { width: 100%; resize: vertical; border: 1px solid var(--line); border-radius: 9px; background: var(--panel2); color: var(--ink); padding: 6px 8px; font: inherit; min-height: 52px; }
.cedit .row { display: flex; justify-content: flex-end; gap: 6px; }

/* photo numbers */
.pin .pnum { display: none; pointer-events: none; font: 700 11px/1 system-ui, sans-serif; color: #fff; text-shadow: 0 1px 2px #0008; }
.pin .pnum.s { font-size: 9px; }
.vp.shownum .pin .pnum { display: block; }
.vp.shownum .pin::after { display: none; }
.pin.flash { animation: pinflash .8s ease-in-out 4; z-index: 5; }
@keyframes pinflash { 0%, 100% { box-shadow: 0 0 0 0 #ffd400, 0 1px 5px #0006; transform: translate(-50%, -50%) scale(1); } 50% { box-shadow: 0 0 0 14px #ffd40000, 0 0 0 4px #ffd400, 0 1px 5px #0006; transform: translate(-50%, -50%) scale(1.35); } }
@media (prefers-reduced-motion: reduce) { .pin.flash { animation: none; outline: 4px solid #ffd400; } }
.plantools { display: grid; grid-template-columns: auto auto; gap: 4px 14px; align-items: center; flex: none; }
.plantools .jump { grid-column: 1 / 3; min-height: 28px; padding: 0 8px; width: 100%; border: 1px solid var(--line); border-radius: 9px; background: var(--panel2); color: var(--ink); font: inherit; font-size: 13px; }
.plantools .cswitch { margin-left: 0; }
#pname { cursor: pointer; }
#pname:hover { text-decoration: underline dotted; }

.cswitch .ls { display: none; }
.cluster.flash { animation: pinflash .8s ease-in-out 4; z-index: 5; }

/* the small "Make inactive" link on a project card: deliberately quiet, so nobody mistakes it for the way in */
.card .act.end { justify-content: flex-end; margin-top: 4px; }
.softlink { font-size: 12px; color: var(--muted); opacity: .5; cursor: pointer; padding: 2px 6px; border-radius: 6px; text-decoration: none; }
.card:hover .softlink, .softlink:focus-visible { opacity: .95; }
.softlink:hover { color: var(--ink); text-decoration: underline; }
@media (pointer: coarse) { .softlink { opacity: .75; padding: 8px 10px; } }
/* with the pin numbers showing, a group of pins reads as a group: x2 in a ringed circle, never a bare number */
.vp.shownum .cluster { box-shadow: 0 0 0 3px color-mix(in srgb, var(--c360) 45%, transparent), 0 1px 5px #0006; }

/* dragging unassigned pictures onto a project */
.lcard { user-select: none; -webkit-user-select: none; }
.lcard img { -webkit-user-drag: none; }
.lgrip { position: absolute; right: 6px; top: 6px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: #000a; color: #fff; cursor: grab; touch-action: none; font-size: 16px; z-index: 2; }
#plist .card.droptarget { outline: 3px dashed var(--accent); outline-offset: 2px; background: color-mix(in srgb, var(--accent) 14%, var(--panel)); }
body.libdrag { cursor: grabbing; user-select: none; }

/* the unplaced strip is always there; with nothing in it, one slim line */
.tray.empty { padding: 5px 10px; }
.tray.empty .tray-head { margin: 0; }
.tray.empty .tray-list, .tray.empty .trayq, .tray.empty #traySort, .tray.empty #trayCount { display: none; }
.tray .trayhint { color: var(--muted); font-size: 12px; }
@container (max-width: 640px) { .tray .trayhint { display: none; } }
body.readonly #tray { display: none !important; }
.fd-row.carry-over { background: color-mix(in srgb, var(--accent) 30%, transparent); color: var(--ink); }

/* diagnostics panel (Ctrl+Alt+D) */
#diag { position: fixed; left: 8px; right: 8px; top: 8px; z-index: 500; background: #000e; color: #cfe; border: 1px solid #5a7; border-radius: 10px; padding: 8px; font: 12px/1.35 Consolas, monospace; max-height: 30vh; display: flex; flex-direction: column; gap: 6px; }
#diag .dh { display: flex; gap: 8px; align-items: center; } #diag .dh b { margin-right: auto; color: #8f8; }
#diag button { min-height: 26px; padding: 0 10px; font-size: 12px; }
#diag pre { margin: 0; overflow: auto; white-space: pre-wrap; user-select: text; -webkit-user-select: text; }

/* the little pictures in the stack list are never picked up by the browser itself (Firefox starts its own drag from them) */
.popup .prow img { pointer-events: none; -webkit-user-drag: none; user-select: none; }

.sharelink { width: 100%; min-height: var(--btn); border: 1px solid var(--line); border-radius: 9px; background: var(--panel2); color: var(--ink); padding: 0 10px; font: 13px Consolas, monospace; }
