:root { --c: #0b3d5c; --a: #1673b8; --ok: #1b9e3e; --bad: #e08a00; --und: #8a8a8a; --err: #b3261e; }
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #1c2430; background: #f2f5f8; }
header.top { display: flex; justify-content: space-between; align-items: center; padding: 10px 18px; background: var(--c); color: #fff; }
header.top a { color: #fff; text-decoration: none; }
header.top nav { display: flex; gap: 16px; align-items: center; }
.brand { font-weight: 700; font-size: 18px; } .brand small { font-weight: 400; opacity: .7; margin-left: 4px; }
.logo { color: #7fd0ff; }
main { max-width: 1100px; margin: 18px auto; padding: 0 14px; }
body.wide main { max-width: none; }
.card { background: #fff; border-radius: 10px; padding: 16px 20px; margin-bottom: 16px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.card.narrow { max-width: 420px; margin: 60px auto; }
h1 { font-size: 22px; margin: 0 0 12px; } h2 { font-size: 18px; margin: 0 0 10px; } h3 { font-size: 15px; margin: 16px 0 6px; }
.ptitle a { color: inherit; }
label { display: block; margin: 8px 0; font-weight: 600; font-size: 13px; }
input:not([type=checkbox]):not([type=range]) { display: block; width: 100%; padding: 8px 10px; border: 1px solid #c7d0da; border-radius: 6px; font: inherit; margin-top: 3px; }
form.row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; } form.row label { flex: 1; min-width: 180px; }
form.inline { display: inline; }
button, .btn { display: inline-block; padding: 7px 14px; border: 1px solid #b9c4cf; background: #fff; border-radius: 6px; font: inherit; cursor: pointer; color: #1c2430; text-decoration: none; margin: 2px 2px 2px 0; }
button.primary, .btn.primary { background: var(--a); border-color: var(--a); color: #fff; }
button.danger { color: var(--err); border-color: #e3b5b2; }
button.link { background: none; border: 0; color: #fff; text-decoration: underline; padding: 0; }
button.small { padding: 3px 8px; font-size: 12px; }
.badge { display: inline-block; font-size: 12px; font-weight: 600; background: #e3edf6; color: var(--c); padding: 2px 9px; border-radius: 10px; vertical-align: middle; }
.muted { color: #6b7684; } .small { font-size: 13px; }
.err { color: var(--err); } .warn { background: #fff4e0; border-left: 4px solid var(--bad); padding: 8px 12px; }
.hint { background: #e8f3ff; border-left: 4px solid var(--a); padding: 8px 12px; }
.plist { list-style: none; padding: 0; margin: 0; } .plist li { padding: 9px 0; border-bottom: 1px solid #eef1f4; display: flex; justify-content: space-between; }
.plist a { color: inherit; text-decoration: none; }
.drop { border: 2px dashed #9fb3c6; border-radius: 10px; padding: 18px; text-align: center; background: #f8fbfd; }
.drop.over { background: #e3f1fc; border-color: var(--a); }
.bar { height: 10px; background: #e4e9ee; border-radius: 5px; overflow: hidden; margin: 8px 0; } .bar > div { height: 100%; background: var(--a); width: 0; transition: width .3s; }
.job { padding: 8px 0; border-bottom: 1px solid #eef1f4; } .job.run { font-weight: 600; } .job pre { white-space: pre-wrap; }
input.wide { display: inline-block !important; width: 60% !important; }
pre.mail { white-space: pre-wrap; background: #f6f8fa; padding: 12px; border-radius: 6px; font: 13px/1.5 ui-monospace, monospace; }
.ctrl { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 10px 0; }
.ctrl input[type=range] { width: 380px; max-width: 60vw; }
#hsel button.on, .hsel button.on { background: var(--c); color: #fff; border-color: var(--c); }
.bandwrap { position: relative; overflow: hidden; border: 1px solid #c7d0da; border-radius: 6px; background: #111;
  height: min(62vh, 560px); min-height: 240px; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; }
.bandwrap:active { cursor: grabbing; } .bandwrap.picking, .bandwrap.picking:active { cursor: crosshair; }
#tiles { position: absolute; inset: 0; overflow: hidden; }
#tiles img { position: absolute; display: block; max-width: none; pointer-events: none; -webkit-user-drag: none; }
#tiles img.lo { z-index: 0; } #tiles img.hi { z-index: 1; }
.bandwrap.px #tiles img.hi { image-rendering: pixelated; }
#ovl { position: absolute; left: 0; top: 0; z-index: 2; }
#ovl .rule { fill: rgba(0,0,0,.55); } #ovl .tick { stroke: #ddd; stroke-width: 1; } #ovl .tickt { fill: #ddd; font: 11px sans-serif; }
#ovl .lm line.hit { stroke: transparent !important; stroke-width: 14 !important; stroke-dasharray: none !important; }
.tblwrap { overflow-x: auto; }
#ovl .hz { stroke: rgba(255,255,255,.35); stroke-dasharray: 4 6; }
#ovl .card { stroke: #fff; stroke-width: 2; } #ovl .cardt { fill: #fff; font: bold 13px sans-serif; }
#ovl .det { fill: #ff3b30; }
#ovl .lm line { stroke-width: 1.6; } #ovl .lm text { font: 11px sans-serif; paint-order: stroke; stroke: rgba(0,0,0,.7); stroke-width: 3px; }
#ovl .lm.ok line { stroke: #35d35a; } #ovl .lm.ok text { fill: #8ff0a4; }
#ovl .lm.bad line { stroke: #ffae2b; } #ovl .lm.bad text { fill: #ffcf7d; }
#ovl .lm.und line { stroke: #bbb; stroke-dasharray: 3 4; } #ovl .lm.und text { fill: #ddd; }
#ovl .lm.sel line { stroke: #4fc3ff; stroke-width: 3; } #ovl .lm { cursor: pointer; }
table.lm { border-collapse: collapse; width: 100%; font-size: 13px; } table.lm td, table.lm th { padding: 4px 8px; border-bottom: 1px solid #eef1f4; text-align: left; }
table.lm tr.sel { background: #e8f3ff; }
td.ok { color: var(--ok); } td.bad { color: var(--bad); } td.und { color: var(--und); }
body.viewer main { max-width: 1400px; }
.vhead { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.vhead h1 { margin: 0; } .vhead small { font-weight: 400; color: #6b7684; font-size: 15px; }
.pano { width: 100%; height: 68vh; min-height: 320px; border-radius: 10px; overflow: hidden; background: #000; }
.dlcard { margin-top: 14px; }
@media (max-width: 640px) { main { margin: 10px auto; } .pano { height: 60vh; } input.wide { width: 100% !important; } }
.vzoom { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 6px 0 10px; }
.vzoom button { padding: 4px 10px; }
@media (max-width: 640px) { .vzoom .hint { display: none; } }
