:root {
  --bg: #f5f6f8;
  --panel: #ffffff;
  --panel-2: #f0f2f5;
  --text: #1b1f24;
  --muted: #5d6673;
  --line: #dde1e7;
  --accent: #1f6feb;
  --accent-text: #ffffff;
  --good: #1a7f37;
  --warn: #9a6700;
  --bad: #cf222e;
  --good-bg: #dafbe1;
  --warn-bg: #fff8c5;
  --bad-bg: #ffebe9;
  --shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 4px 16px rgba(0, 0, 0, .06);
  --radius: 10px;
  --stage: #0d1117;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117;
    --panel: #161b22;
    --panel-2: #1c222b;
    --text: #e6edf3;
    --muted: #8d96a0;
    --line: #2d333b;
    --accent: #4493f8;
    --accent-text: #0d1117;
    --good: #3fb950;
    --warn: #d29922;
    --bad: #f85149;
    --good-bg: rgba(46, 160, 67, .15);
    --warn-bg: rgba(187, 128, 9, .15);
    --bad-bg: rgba(248, 81, 73, .15);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4);
    --stage: #010409;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--text);
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.35rem; margin: 0; }
h2 { font-size: 1.05rem; margin: 0 0 .6rem; }
h3 { font-size: .95rem; margin: 0 0 .4rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem; }
[hidden] { display: none !important; }

/* header */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 1.2rem;
  padding: .6rem 16px; background: var(--panel); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: .45rem; color: var(--text); font-weight: 650; }
.brand:hover { text-decoration: none; }
.brand svg { width: 24px; height: 24px; color: var(--accent); }
.top nav { display: flex; gap: .2rem; flex: 1; }
.top nav a { color: var(--muted); padding: .35rem .65rem; border-radius: 6px; }
.top nav a:hover { background: var(--panel-2); text-decoration: none; }
.top nav a.on { color: var(--text); background: var(--panel-2); font-weight: 600; }
.me { position: relative; margin-left: auto; }
.menu {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 200px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  box-shadow: var(--shadow); padding: .3rem; display: flex; flex-direction: column;
}
.menu button { text-align: left; background: none; border: 0; color: var(--text); }
.menu button:hover { background: var(--panel-2); }

main { max-width: 1280px; margin: 0 auto; padding: 18px 16px 60px; }

/* controls */
button, .btn {
  font: inherit; cursor: pointer; border-radius: 7px; padding: .45rem .85rem;
  border: 1px solid var(--line); background: var(--panel); color: var(--text);
  display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap;
}
button:hover:not(:disabled), .btn:hover { background: var(--panel-2); text-decoration: none; }
button:disabled { opacity: .55; cursor: default; }
button.primary { background: var(--accent); color: var(--accent-text); border-color: transparent; font-weight: 600; }
button.primary:hover:not(:disabled) { filter: brightness(1.08); background: var(--accent); }
button.danger { color: var(--bad); }
button.ghost { border-color: transparent; background: transparent; }
button.small, .btn.small { padding: .2rem .55rem; font-size: .85rem; }
button.big { padding: .7rem 1.4rem; font-size: 1.05rem; }
input, select {
  font: inherit; color: var(--text); background: var(--panel);
  border: 1px solid var(--line); border-radius: 7px; padding: .42rem .6rem; min-width: 0;
}
input:focus, select:focus, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
label { display: flex; flex-direction: column; gap: .2rem; font-size: .85rem; color: var(--muted); }
label.check { flex-direction: row; align-items: center; gap: .45rem; color: var(--text); font-size: .9rem; }
.row { display: flex; gap: .6rem; align-items: flex-end; flex-wrap: wrap; }
.spacer { flex: 1; }
.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; box-shadow: var(--shadow);
}
.stack > * + * { margin-top: 14px; }
.error { color: var(--bad); }

/* chips */
.chip {
  display: inline-flex; align-items: center; gap: .3rem; font-size: .78rem; font-weight: 600;
  padding: .12rem .5rem; border-radius: 99px; background: var(--panel-2); color: var(--muted);
}
.chip.good { background: var(--good-bg); color: var(--good); }
.chip.warn { background: var(--warn-bg); color: var(--warn); }
.chip.bad { background: var(--bad-bg); color: var(--bad); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }

/* login */
.login { max-width: 360px; margin: 10vh auto 0; }
.login form { display: flex; flex-direction: column; gap: .8rem; }
.login button { justify-content: center; }

/* camera grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.card { display: flex; flex-direction: column; gap: .5rem; color: var(--text); }
.card:hover { text-decoration: none; border-color: var(--accent); }
.card .title { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.card .title strong { font-size: 1.05rem; }
.account-head { margin: 22px 0 10px; color: var(--muted); font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }

/* camera page */
.cam-head { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-bottom: 12px; }
.tabs { display: flex; gap: .2rem; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.tabs button { border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; color: var(--muted); padding: .55rem .9rem; }
.tabs button.on { color: var(--text); border-bottom-color: var(--accent); font-weight: 600; }
.layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start;
  grid-template-areas: "stage side" "below side"; grid-template-rows: auto 1fr;
}
.stage-col { grid-area: stage; min-width: 0; }
.below-col { grid-area: below; min-width: 0; }
.layout > .side { grid-area: side; }
/* narrow: the controls (Save, Record) come right under the picture */
@media (max-width: 960px) {
  .layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "stage" "side" "below"; grid-template-rows: auto; }
}
@media (max-width: 600px) {
  .top { gap: .4rem; padding: .5rem 12px; }
  .brand span { display: none; }
  .top nav a { padding: .35rem .5rem; }
  #me-button { max-width: 34vw; overflow: hidden; text-overflow: ellipsis; padding: .4rem .3rem; }
  main { padding: 14px 12px 60px; }
  .board-inputs { grid-template-columns: 1fr 1fr 1fr; }
  .board-inputs label { font-size: .78rem; }
}
.stage {
  position: relative; background: var(--stage); border-radius: var(--radius); overflow: hidden;
  min-height: 200px; display: flex; align-items: center; justify-content: center;
}
.stage img { display: block; width: 100%; height: auto; }
.stage.tall img { width: auto; max-width: 100%; max-height: 82vh; margin: 0 auto; }
.stage canvas { position: absolute; pointer-events: none; }
.stage .wait {
  position: absolute; inset: 0; display: flex; flex-direction: column; gap: .5rem;
  align-items: center; justify-content: center; color: #c9d1d9; font-size: .95rem; text-align: center; padding: 1rem;
}
.spinner { width: 26px; height: 26px; border: 3px solid rgba(255,255,255,.25); border-top-color: #fff; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.side { display: flex; flex-direction: column; gap: 14px; }
.views { display: flex; flex-direction: column; gap: .35rem; }
.view-line { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.board-inputs { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .5rem; }
.board-inputs input { width: 100%; }
.save-row { display: flex; gap: .6rem; align-items: center; }
.save-row button { flex: 1; justify-content: center; }
.kbd { font: .75rem ui-monospace, monospace; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: 0 .3rem; color: var(--muted); }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.shot { position: relative; background: var(--panel-2); border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.shot.flash { outline: 3px solid var(--accent); }
.shot img { width: 100%; display: block; cursor: zoom-in; aspect-ratio: 16 / 9; object-fit: cover; background: var(--stage); }
.shot.tall img { aspect-ratio: 9 / 15; }
.shot .meta { display: flex; align-items: center; gap: .25rem; padding: .3rem .4rem; font-size: .75rem; flex-wrap: wrap; }
.shot .del { position: absolute; top: 4px; right: 4px; padding: .05rem .4rem; background: rgba(0,0,0,.55); color: #fff; border: 0; font-size: .8rem; }
.shot .del:hover { background: var(--bad); }

/* calibration results */
.cal-view { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.cal-view:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.coverage { width: 100%; border-radius: 6px; background: var(--stage); display: block; margin: .3rem 0 .5rem; }
.result { border: 1px solid var(--line); border-radius: 8px; padding: .55rem .7rem; margin-top: .5rem; }
.result.accepted { border-color: var(--good); }
.result .nums { display: grid; grid-template-columns: repeat(4, auto); gap: .1rem .8rem; margin: .35rem 0; }
.result .actions { display: flex; gap: .35rem; flex-wrap: wrap; margin-top: .3rem; }

/* clips */
.clips { display: flex; flex-direction: column; gap: 8px; }
.clip { display: grid; grid-template-columns: 128px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px; }
.clip img, .clip .noimg { width: 128px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; background: var(--stage); display: block; }
.clip > div { min-width: 0; overflow-wrap: anywhere; }
.clip .actions { display: flex; gap: .35rem; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 640px) {
  .clip { grid-template-columns: 96px minmax(0, 1fr); }
  .clip img, .clip .noimg { width: 96px; }
  .clip .actions { grid-column: 1 / -1; justify-content: flex-start; }
}
.bar { height: 8px; border-radius: 99px; background: var(--panel-2); overflow: hidden; }
.bar > div { height: 100%; background: var(--accent); }
.bar.over > div { background: var(--bad); }

/* tables */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .5rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .8rem; color: var(--muted); font-weight: 600; }
.table-wrap { overflow-x: auto; }

/* dialogs */
dialog {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 0;
  background: var(--panel); color: var(--text); max-width: min(96vw, 1200px); box-shadow: var(--shadow);
}
dialog::backdrop { background: rgba(0,0,0,.6); }
dialog .dlg-head { display: flex; align-items: center; gap: .6rem; padding: .6rem .8rem; border-bottom: 1px solid var(--line); }
dialog .dlg-head .spacer { flex: 1; }
dialog .dlg-body { padding: .8rem; overflow: auto; max-height: calc(92vh - 60px); }
dialog form { display: flex; flex-direction: column; gap: .7rem; min-width: min(360px, 86vw); }
.viewer { position: relative; display: inline-block; }
.viewer img, .viewer video { display: block; max-width: 100%; max-height: 78vh; }
.viewer canvas { position: absolute; left: 0; top: 0; pointer-events: none; }

/* toasts */
#toasts { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 50; width: min(92vw, 460px); }
.toast { background: var(--text); color: var(--bg); padding: .6rem .9rem; border-radius: 8px; box-shadow: var(--shadow); font-size: .92rem; }
.toast.bad { background: var(--bad); color: #fff; }
.empty { text-align: center; padding: 2.5rem 1rem; color: var(--muted); }

/* pan & tilt */
.ptz-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.dpad { display: grid; grid-template-columns: repeat(3, 44px); grid-template-rows: repeat(3, 44px); gap: 4px; flex: none; }
.dpad button { justify-content: center; padding: 0; font-size: 1rem; touch-action: manipulation; }
.dpad .ptz-up { grid-column: 2; grid-row: 1; }
.dpad .ptz-left { grid-column: 1; grid-row: 2; }
.dpad .ptz-mid { grid-column: 2; grid-row: 2; border-radius: 50%; margin: 14px; background: var(--panel-2); }
.dpad .ptz-right { grid-column: 3; grid-row: 2; }
.dpad .ptz-down { grid-column: 2; grid-row: 3; }
.ptz-row > .stack { flex: 1; min-width: 150px; }
.seg { display: inline-flex; margin-top: .2rem; }
.seg button { border-radius: 0; margin-left: -1px; }
.seg button:first-child { border-radius: 7px 0 0 7px; margin-left: 0; }
.seg button:last-child { border-radius: 0 7px 7px 0; }
.seg button.on { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
.presets > span { grid-column: 1 / -1; }
.vp { position: relative; flex-direction: column; align-items: stretch; gap: 0; padding: 0; overflow: hidden; white-space: normal; text-align: left; }
.vp img, .vp .vp-none { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--stage); }
.vp .vp-none { display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 .4rem; color: #8d96a0; font-size: .72rem; }
.vp .vp-name { padding: .25rem .4rem; font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vp .vp-badge { position: absolute; top: 4px; left: 4px; right: 4px; background: rgba(0,0,0,.65); color: #fff; font-size: .7rem; border-radius: 4px; padding: .05rem .3rem; text-align: center; }
.vp:hover:not(:disabled) { border-color: var(--accent); }
.ptz-note:empty { display: none; }
details.panel > summary { cursor: pointer; list-style-position: inside; }
details.panel[open] > summary { margin-bottom: 12px; }
.autocal-log { margin: 0; padding: .5rem .6rem; background: var(--stage); color: #c9d1d9; border-radius: 6px; white-space: pre-wrap; max-height: 12rem; overflow: auto; }

/* labeling (labels.js) */
.lab-lens[hidden] { display: none; }
.lab-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
@media (max-width: 960px) { .lab-layout { grid-template-columns: minmax(0, 1fr); } }
.lab-main { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.lab-tools, .lab-take { align-items: center; }
.lab-stage { container-type: size; position: relative; background: var(--stage); border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; max-height: min(72vh, 800px); min-height: 200px; margin: 0 auto; width: 100%; }
.lab-svg { display: block; width: 100%; height: 100%; touch-action: none; user-select: none; -webkit-user-select: none; cursor: crosshair; outline: none; }
.lab-svg.panning { cursor: grabbing; }
.lab-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #c9d1d9; }
.lab-frame { fill: #222; }
.lab-hint { min-height: 1.3em; color: var(--muted); }
.lab-shape .body { fill: color-mix(in srgb, var(--c) 14%, transparent); stroke: var(--c); cursor: move; }
.lab-shape .body.open { fill: none; }
.lab-shape .body.pond { pointer-events: none; }
.lab-shape .hit { fill: none; stroke: transparent; pointer-events: stroke; cursor: move; }
.lab-shape .body.closing { stroke-dasharray: 6 5; opacity: .6; vector-effect: non-scaling-stroke; }
.lab-shape .body.dot { fill: var(--c); stroke: #fff; }
.lab-shape .cross { stroke: var(--c); pointer-events: none; }
.lab-shape.copied .body { stroke-dasharray: 7 4; vector-effect: non-scaling-stroke; }
.lab-shape.sel .body { fill: color-mix(in srgb, var(--c) 22%, transparent); }
.lab-shape.ghost { opacity: .5; }
.lab-shape.ghost .body { fill: none; stroke-dasharray: 2 4; vector-effect: non-scaling-stroke; cursor: copy; }
.lab-shape.ghost .body.dot { fill: none; }
.lab-shape .handle { fill: #fff; stroke: var(--c); cursor: grab; }
.lab-shape text { fill: #fff; stroke: rgba(0,0,0,.75); paint-order: stroke; pointer-events: none; font-family: system-ui, sans-serif; font-weight: 600; }
.lab-shape text.corner { fill: var(--c); }
.lab-strip { position: relative; display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.lab-thumb { position: relative; flex: none; width: 150px; padding: 0; overflow: hidden; display: block; border-width: 2px; }
.lab-thumb.on { border-color: var(--accent); }
.lab-thumb img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--stage); }
.lab-thumb .lab-light, .lab-thumb .lab-done { position: absolute; top: 4px; background: rgba(0,0,0,.65); color: #fff; font-size: .7rem; border-radius: 4px; padding: 0 .3rem; }
.lab-thumb .lab-light { left: 4px; }
.lab-thumb .lab-done { right: 4px; }
.lab-thumb .lab-done.all { background: var(--good); }
.lab-objects { display: flex; flex-direction: column; gap: 4px; max-height: 42vh; overflow: auto; }
.lab-obj { justify-content: flex-start; text-align: left; white-space: normal; padding: .35rem .5rem; }
.lab-obj.on { border-color: var(--accent); background: var(--panel-2); }
.lab-obj-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.swatch { width: 12px; height: 12px; border-radius: 3px; flex: none; display: inline-block; border: 1px solid rgba(0,0,0,.2); }
.lab-class-form { border-top: 1px solid var(--line); padding-top: .7rem; }
.lab-live { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.lab-live img { position: absolute; width: min(100cqw, 100cqh * var(--r, 1.78)); top: 50%; left: 50%;
  transform: translate(-50%, calc(-100% / var(--rows, 1) * (var(--view, 0) + .5))); }
.lab-live-wait { position: absolute; inset: 0; display: flex; flex-direction: column; gap: .5rem; align-items: center; justify-content: center; color: #c9d1d9; }
.lab-live-tile { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; height: auto; background: var(--stage); color: #fff; font-weight: 600; width: 110px; }
.lab-live-tile .dot { background: #f85149; }
.lab-live-tile.on { border-color: #f85149; }
.lab-none { align-self: center; }

/* -- 360 view -- */
.pano-box { overflow: auto; background: var(--stage); border-radius: var(--radius); max-height: 78vh; touch-action: pan-x pan-y; cursor: grab; }
.pano-wrap { position: relative; width: 100%; }
.pano-img { display: block; width: 100%; height: auto; user-select: none; }
.pano-motion { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; image-rendering: auto; }

/* equipment status (status.js) */
.st-summary { gap: 16px; flex-wrap: wrap; }
.st-badge { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: .85em; white-space: nowrap; }
.st-badge.st-good { background: var(--good-bg); color: var(--good); }
.st-badge.st-warn { background: var(--warn-bg); color: var(--warn); }
.st-badge.st-bad { background: var(--bad-bg); color: var(--bad); }
.st-badge.st-muted { background: var(--panel-2); color: var(--muted); }
.st-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }
.st-wrap { position: relative; line-height: 0; }
.st-img, .st-pano { width: 100%; height: auto; display: block; border-radius: 6px; background: var(--stage); }
.st-pano-box { overflow-x: auto; padding: 6px; }
.st-pano { min-width: 900px; }
.st-box { position: absolute; box-sizing: border-box; pointer-events: none; }
.st-usual { border: 1.5px dashed rgba(255, 255, 255, .75); }
.st-found { border: 2.5px solid; }
.st-found.st-good { border-color: #2ea043; } .st-found.st-warn { border-color: #d29922; } .st-found.st-bad { border-color: #f85149; }
.st-extra { border: 2px dashed #a371f7; }
.st-tag { position: absolute; left: 0; bottom: 100%; font: 600 11px/1.4 system-ui, sans-serif; white-space: nowrap;
  background: rgba(0, 0, 0, .6); color: #fff; padding: 0 4px; border-radius: 3px; }
.st-pin { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .5); }
.st-pin.st-good { background: #2ea043; } .st-pin.st-warn { background: #d29922; } .st-pin.st-bad { background: #f85149; }
.st-pin.st-muted { background: #8d96a0; }
.st-pin .st-tag { left: 12px; bottom: 10px; }
.st-table { width: 100%; border-collapse: collapse; }
.st-table td { padding: 4px 6px; border-top: 1px solid var(--line); }
.st-map { width: 100%; max-width: 560px; height: auto; background: var(--panel-2); border-radius: 8px; }
.st-map-pond { fill: rgba(31, 111, 235, .18); stroke: #1f6feb; stroke-width: 2; }
.st-map-cam { fill: var(--text); }
.st-map-dot { stroke: #fff; stroke-width: 2; }
.st-map-dot.st-good { fill: #2ea043; } .st-map-dot.st-warn { fill: #d29922; } .st-map-dot.st-bad { fill: #f85149; } .st-map-dot.st-muted { fill: #8d96a0; }
.st-map-label { font: 11px system-ui, sans-serif; fill: var(--text); }
.st-map-corner { font: 600 11px system-ui, sans-serif; fill: var(--muted); }
.st-map-bar { stroke: var(--text); stroke-width: 3; }
.st-map-other { fill: rgba(180, 140, 50, .22); stroke: #9a7b2f; stroke-width: 2; }

/* pond outline editor (web/pondedit.js) */
.pe-svg { width: 100%; height: min(60vh, 520px); background: #0b0f14; border-radius: 6px; touch-action: none;
  cursor: grab; display: block; outline: none; }
.pe-svg:focus-visible { box-shadow: 0 0 0 2px #1f6feb; }
.pe-found { fill: none; stroke-linejoin: round; pointer-events: none; }
.pe-seg { stroke: #fff; opacity: .85; pointer-events: none; }
.pe-hit { stroke: transparent; cursor: copy; }
.pe-pt { fill: #fff; stroke: #111; cursor: move; }
.pe-pt.pe-on { fill: #facc15; }
.pe-name { fill: #fff; stroke: #000; paint-order: stroke; font-weight: 700; pointer-events: none; }
.pe-sel { min-height: 2.2em; align-items: center; }
.pe-svg.pe-drawing { cursor: crosshair; }
.pe-pt.pe-close { fill: #22c55e; cursor: pointer; }
.pe-band { opacity: .6; }
.pe-warn { color: #d29922; margin-top: 4px; }
