:root{--tc-grid: #e4e7ee;--tc-in: #2f62b3;--tc-out: #a37c2c;--tc-ok: #2f8f5b;--tc-warn: #c8862f;--tc-danger: #c0392b;--tc-unknown: #9aa3b2;--tc-surface-2: #f1f3f8;--tc-water: #cfe3f5;--tc-yard: #efe6d2;--tc-road: #b9bfca}html.tc-theme-dark{--bg: #0b1220;--surface: #121b2d;--tc-surface-2: #1a2539;--text: #e6ebf3;--text-muted: #9aa7bb;--border: #26324a;--navy: #dfe7f5;--tc-grid: #26324a;--tc-in: #6f9be6;--tc-out: #d6aa52;--tc-ok: #3fbf7f;--tc-warn: #e0a64a;--tc-danger: #f06a5a;--tc-water: #17345a;--tc-yard: #3a3323;--tc-road: #4a5468;--shadow: 0 1px 2px rgba(0, 0, 0, .4);color-scheme:dark}html.tc-theme-dark body{background:var(--bg)}html.tc-theme-dark .app-nav{--navy: #0e2240}html.tc-theme-dark .btn{background:#2f62b3;border-color:#2f62b3}html.tc-theme-dark .btn.secondary{background:transparent;color:var(--text);border-color:var(--border)}html.tc-theme-dark .select,html.tc-theme-dark input,html.tc-theme-dark textarea{background:var(--tc-surface-2);color:var(--text);border-color:var(--border)}.tc-root{min-width:0}.tc-toolbar{display:flex;align-items:center;gap:10px;margin-bottom:14px;flex-wrap:wrap}.tc-toolbar-right{margin-left:auto;display:flex;align-items:center;gap:8px}.tc-site-name{font-weight:600;color:var(--navy)}.tc-role-chip{font-size:11px;padding:2px 8px;border-radius:999px;border:1px solid var(--border);color:var(--text-muted)}.tc-empty p{margin:0}.tc-notice{padding:10px 14px;border-radius:8px;margin-bottom:12px;font-size:13px;background:var(--tc-surface-2);border:1px solid var(--border)}.tc-notice.warn{background:#c8862f1f;border-color:#c8862f59}.tc-notice.danger{background:#c0392b1a;border-color:#c0392b59;color:var(--tc-danger)}.tc-notice.ok{background:#2f8f5b1a;border-color:#2f8f5b4d}.tc-filters{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:14px}.tc-filters .select,.tc-filters input.select{min-height:34px}.tc-inline{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:var(--text-muted)}.tc-spacer{flex:1}.tc-plate-input{width:130px;text-transform:uppercase}.tc-h3{margin:0 0 10px;font-size:15px;color:var(--navy);display:flex;align-items:center;gap:8px}.tc-card-head{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:8px}.tc-card-head .tc-h3{margin:0}.tc-grid-2{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:16px;margin-bottom:16px}.tc-grid-2 .card+.card{margin-top:0}.tc-stat .tc-stat-sub{font-size:12px;color:var(--text-muted);margin-top:4px}.tc-stat .tc-stat-sub a{color:var(--tc-in);text-decoration:none}.tc-stat.danger .value{color:var(--tc-danger)}.tc-stat.warn .value{color:var(--tc-warn)}.stat-tile .value{font-variant-numeric:tabular-nums}.num{text-align:right!important;font-variant-numeric:tabular-nums}.nowrap{white-space:nowrap}.mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:.02em}.small{font-size:12px}.tc-ml{margin-left:4px}.tc-txt-danger{color:var(--tc-danger)}.tc-txt-warn{color:var(--tc-warn)}table.tc-compact th,table.tc-compact td{padding:6px 8px}.tc-table-card{padding:10px 12px}.tc-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}.tc-row{cursor:pointer}.tc-row:hover td{background:var(--tc-surface-2)}.tc-row.voided td{opacity:.55;text-decoration:line-through}.tc-dim td{opacity:.55}.tc-selected td{background:#2f62b31a}.tc-pager{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:10px}.tc-thumb-cell{width:76px}.thumb-sm{width:72px;height:44px;object-fit:cover;border-radius:4px}.badge{background:var(--tc-surface-2);color:var(--text-muted)}.badge.ok{color:var(--tc-ok)}.badge.warn{color:var(--tc-warn)}.badge.danger{color:var(--tc-danger)}.tc-dir{display:inline-block;font-weight:600;font-size:12px;padding:1px 8px;border-radius:999px;white-space:nowrap}.tc-dir.in{color:var(--tc-in);background:#2f62b31f}.tc-dir.out{color:var(--tc-out);background:#a37c2c24}.tc-dot{display:inline-block;width:10px;height:10px;border-radius:50%;background:var(--tc-unknown);vertical-align:middle}.tc-dot.ok,.tc-dot.online{background:var(--tc-ok)}.tc-dot.warn,.tc-dot.degraded{background:var(--tc-warn)}.tc-dot.down,.tc-dot.offline,.tc-dot.error{background:var(--tc-danger)}.tc-seg{display:inline-flex;border:1px solid var(--border);border-radius:8px;overflow:hidden;background:var(--surface)}.tc-seg.wrap{flex-wrap:wrap}.tc-seg button{border:none;background:transparent;padding:6px 12px;font-size:13px;cursor:pointer;color:var(--text);border-right:1px solid var(--border)}.tc-seg button:last-child{border-right:none}.tc-seg button.on{background:var(--tc-in);color:#fff;font-weight:600}.tc-tabs{display:flex;gap:4px;border-bottom:1px solid var(--border);margin-bottom:14px;overflow-x:auto}.tc-tabs button{border:none;background:transparent;padding:8px 14px;font-size:13.5px;cursor:pointer;color:var(--text-muted);border-bottom:2px solid transparent;white-space:nowrap}.tc-tabs button.on{color:var(--navy);font-weight:600;border-bottom-color:var(--gold)}.tc-tabs button.ghost{color:var(--tc-in)}.tc-tabs small{color:var(--text-muted);font-weight:400;margin-left:4px}.tc-map{width:100%;height:auto;display:block}.tc-map-water{fill:none;stroke:var(--tc-water);stroke-width:34;stroke-linecap:round}.tc-map-water.thin{stroke-width:16}.tc-map-yard{fill:var(--tc-yard)}.tc-map-road{fill:none;stroke:var(--tc-road);stroke-width:9;stroke-dasharray:2 0;stroke-linejoin:round}.tc-map-label{font-size:14px;fill:var(--text-muted)}.tc-map-pt{cursor:pointer}.tc-map-pt circle,.tc-map-pt rect{fill:var(--tc-unknown);stroke:var(--surface);stroke-width:3}.tc-map-pt.ok circle,.tc-map-pt.ok rect{fill:var(--tc-ok)}.tc-map-pt.warn circle,.tc-map-pt.warn rect{fill:var(--tc-warn)}.tc-map-pt.down circle,.tc-map-pt.down rect,.tc-map-pt.offline circle,.tc-map-pt.offline rect{fill:var(--tc-danger)}.tc-map-pt:hover circle,.tc-map-pt:hover rect,.tc-map-pt:focus circle,.tc-map-pt:focus rect{stroke:var(--gold);outline:none}.tc-map-pt-label{font-size:12px;font-weight:700;fill:#fff;pointer-events:none}.tc-map-pt-count{font-size:12.5px;font-weight:600;fill:var(--text);paint-order:stroke;stroke:var(--surface);stroke-width:4}.tc-map-pt-soc{font-size:11px;fill:var(--text-muted);paint-order:stroke;stroke:var(--surface);stroke-width:3}.tc-legend{display:flex;gap:14px;flex-wrap:wrap;font-size:12px;color:var(--text-muted);margin-top:6px}.tc-soc{display:flex;align-items:center;gap:6px;min-width:120px}.tc-soc-bar{flex:1;height:8px;border-radius:4px;background:var(--tc-surface-2);overflow:hidden;min-width:40px}.tc-soc-bar span{display:block;height:100%}.tc-soc-bar .ok{background:var(--tc-ok)}.tc-soc-bar .warn{background:var(--tc-warn)}.tc-soc-bar .danger{background:var(--tc-danger)}.tc-soc-txt{font-size:12px;font-variant-numeric:tabular-nums;white-space:nowrap}.tc-backdrop{position:fixed;inset:0;background:#080e1a8c;z-index:1000;display:flex;align-items:center;justify-content:center;padding:16px}.tc-backdrop.drawer{justify-content:flex-end;padding:0}.tc-modal{background:var(--surface);color:var(--text);border-radius:12px;width:min(520px,100%);max-height:calc(100vh - 32px);display:flex;flex-direction:column;box-shadow:0 20px 60px #00000059}.tc-modal.wide{width:min(960px,100%)}.tc-modal-head{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;border-bottom:1px solid var(--border)}.tc-modal-head h3{margin:0;font-size:16px;color:var(--navy)}.tc-modal-body{padding:16px 18px;overflow:auto}.tc-modal-foot{padding:12px 18px;border-top:1px solid var(--border);display:flex;justify-content:flex-end;gap:8px}.tc-x{background:transparent;border:none;font-size:24px;line-height:1;cursor:pointer;color:var(--text-muted);padding:0 4px}.tc-x.small{font-size:16px;margin-left:auto}.tc-drawer{background:var(--surface);color:var(--text);width:min(720px,100%);height:100%;display:flex;flex-direction:column;box-shadow:-10px 0 40px #0000004d}.tc-drawer-body{padding:16px 18px;overflow-y:auto}.tc-zoom{position:relative;max-width:95vw;max-height:92vh}.tc-zoom img{max-width:95vw;max-height:88vh;border-radius:8px}.tc-zoom .tc-x{position:absolute;top:-8px;right:-8px;background:var(--surface);border-radius:50%;width:32px;height:32px}.tc-zoom-img{width:100%}.tc-media{display:block;width:100%;border-radius:6px;background:#000;object-fit:contain}.tc-media-ph{display:flex;align-items:center;justify-content:center;min-height:90px;border-radius:6px;background:var(--tc-surface-2);color:var(--text-muted);font-size:12px;text-align:center;padding:6px}.tc-detail-meta{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin-bottom:10px}.tc-detail-media{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:10px;margin-bottom:14px}.tc-media-main .tc-media,.tc-media-main .tc-media-ph{aspect-ratio:16 / 9;min-height:0}.tc-media-thumbs{display:grid;grid-template-columns:1fr 1fr;gap:8px}.tc-media-thumbs figure{margin:0}.tc-media-thumbs figcaption{font-size:11px;color:var(--text-muted);text-align:center;margin-top:2px}.tc-media-thumbs .tc-media{cursor:zoom-in;aspect-ratio:4 / 3}.tc-media-thumbs .tc-media-ph{aspect-ratio:4 / 3;min-height:0}.tc-kv{display:grid;grid-template-columns:max-content 1fr;align-content:start;gap:4px 12px;font-size:13px;margin:12px 0}.tc-kv dt{color:var(--text-muted)}.tc-kv dd{margin:0;word-break:break-word}.tc-revs{padding-left:18px;font-size:13px}.tc-revs li{margin-bottom:8px}.tc-rev-diff{font-size:12px}.tc-before{color:var(--tc-danger);text-decoration:line-through}.tc-after{color:var(--tc-ok);font-weight:600}.tc-form{display:grid;grid-template-columns:1fr 1fr;gap:10px 14px;border:none;padding:0;margin:0;min-width:0}.tc-form label{display:flex;flex-direction:column;gap:4px;font-size:12px;color:var(--text-muted);min-width:0}.tc-form label.full{grid-column:1 / -1}.tc-form label.tc-inline{flex-direction:row;align-items:center}.tc-form .select,.tc-form input:not([type=checkbox]):not([type=range]),.tc-form textarea{font-size:14px;padding:7px 9px;color:var(--text);width:100%}.tc-form fieldset:disabled{opacity:.8}.tc-chips{display:flex;flex-wrap:wrap;gap:6px}.tc-chip{display:inline-flex!important;flex-direction:row!important;align-items:center;gap:4px!important;border:1px solid var(--border);border-radius:999px;padding:3px 10px;font-size:12.5px!important;color:var(--text)!important;cursor:pointer}.tc-json{width:100%;min-height:420px;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:12px;background:var(--tc-surface-2);color:var(--text);border:1px solid var(--border);border-radius:8px;padding:10px;white-space:pre;overflow:auto}.tc-linkbtn{background:none;border:none;padding:0;color:var(--tc-in);cursor:pointer;text-align:left;font:inherit}.btn.tc-danger-btn{color:var(--tc-danger);border-color:var(--tc-danger)}.btn.tc-danger-solid{background:var(--tc-danger);border-color:var(--tc-danger)}.btn:disabled{opacity:.5;cursor:not-allowed}.tc-tip{display:inline-block;cursor:help}.tc-tip .btn{pointer-events:none}.tc-file{position:relative;overflow:hidden}.tc-file input{position:absolute;inset:0;opacity:0;cursor:pointer}kbd{display:inline-block;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:.78em;padding:1px 5px;border-radius:4px;border:1px solid currentColor;opacity:.75;line-height:1.3}.tc-live{position:relative;display:flex;align-items:center;gap:6px}.tc-conn{width:8px;height:8px;border-radius:50%;background:var(--tc-unknown)}.tc-conn.open{background:var(--tc-ok)}.tc-conn.retry{background:var(--tc-warn)}.tc-bell{position:relative;background:var(--surface);border:1px solid var(--border);border-radius:8px;padding:6px 8px;cursor:pointer;color:var(--text);line-height:0}.tc-bell-n{position:absolute;top:-6px;right:-6px;background:var(--tc-danger);color:#fff;font-size:10.5px;font-weight:700;border-radius:999px;padding:2px 5px;line-height:1}.tc-bell-list{position:absolute;right:0;top:40px;width:300px;max-height:360px;overflow:auto;background:var(--surface);border:1px solid var(--border);border-radius:10px;box-shadow:0 10px 30px #0003;z-index:900;font-size:13px}.tc-bell-head{display:flex;justify-content:space-between;padding:10px 12px;border-bottom:1px solid var(--border)}.tc-bell-head a{color:var(--tc-in);text-decoration:none}.tc-bell-item{padding:8px 12px;border-bottom:1px solid var(--border)}.tc-toasts{position:fixed;right:16px;bottom:16px;z-index:1100;display:flex;flex-direction:column;gap:8px;width:min(340px,calc(100vw - 32px))}.tc-toast{background:var(--surface);color:var(--text);border:1px solid var(--border);border-left:4px solid var(--tc-in);border-radius:8px;padding:10px 12px;box-shadow:0 8px 24px #0003}@media(max-width:640px){.tc-toast:not(:last-child){display:none}}.tc-toast.danger{border-left-color:var(--tc-danger)}.tc-toast.warn{border-left-color:var(--tc-warn)}.tc-toast-title{font-weight:600}.tc-toast-body{font-size:12.5px;color:var(--text-muted)}.tc-toast-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:4px}.tc-toast-actions a{color:var(--tc-in);font-size:12.5px}.tc-toast-actions button{background:none;border:none;cursor:pointer;color:var(--text-muted)}.tc-guard{color:var(--text)}.tc-guard-top{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:10px}.tc-guard-kpis{display:flex;gap:8px;flex-wrap:wrap}.tc-kpi{background:var(--surface);border:1px solid var(--border);border-radius:8px;padding:6px 12px;font-size:13px}.tc-kpi b{font-size:16px;font-variant-numeric:tabular-nums}.tc-kpi.warn b{color:var(--tc-warn)}.tc-kpi.danger b{color:var(--tc-danger)}.tc-guard-ctl{display:flex;gap:6px;flex-wrap:wrap}.tc-flash{position:fixed;top:14px;left:50%;transform:translate(-50%);z-index:1200;padding:10px 18px;border-radius:8px;font-weight:600;background:var(--tc-ok);color:#fff;box-shadow:0 8px 24px #00000040}.tc-flash.danger{background:var(--tc-danger)}.tc-guard-main{display:grid;grid-template-columns:250px minmax(0,1fr);gap:12px;align-items:start}.tc-queue{background:var(--surface);border:1px solid var(--border);border-radius:10px;max-height:calc(100vh - 190px);overflow-y:auto}.tc-queue-empty{padding:20px;text-align:center;color:var(--tc-ok);font-weight:600}.tc-qi{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;column-gap:8px;width:100%;text-align:left;border:none;border-bottom:1px solid var(--border);border-left:3px solid transparent;background:transparent;color:var(--text);padding:8px 10px;cursor:pointer;font:inherit;font-size:13px}.tc-qi:hover{background:var(--tc-surface-2)}.tc-qi.active{background:var(--tc-surface-2);border-left-color:var(--gold)}.tc-qi.locked{opacity:.6}.tc-qi-age{grid-row:1 / 3;align-self:center;font-variant-numeric:tabular-nums;font-weight:700;font-size:12px;min-width:44px;text-align:center;border-radius:6px;padding:4px 2px}.tc-qi-age.ok{color:var(--tc-ok);background:#2f8f5b1f}.tc-qi-age.warn{color:var(--tc-warn);background:#c8862f26}.tc-qi-age.danger{color:#fff;background:var(--tc-danger)}.tc-qi-sub{font-size:11.5px;color:var(--text-muted)}.tc-item{background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:12px;min-width:0}.tc-item-empty{text-align:center;padding:40px 12px;color:var(--text-muted)}.tc-lock-note{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.tc-item-media{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:10px}.tc-item-clip .tc-media,.tc-item-clip .tc-media-ph{aspect-ratio:16 / 9;min-height:0}.tc-item-imgs{display:flex;flex-direction:column;gap:8px;min-width:0}.tc-item-imgs>.tc-media,.tc-item-imgs>.tc-media-ph{aspect-ratio:16 / 9;min-height:0}.tc-item-imgs-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}.tc-item-imgs-row .tc-media,.tc-item-imgs-row .tc-media-ph{aspect-ratio:4 / 3;min-height:0}.tc-item-info{margin-top:12px}.tc-item-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.tc-big-point{font-size:26px;font-weight:800;color:var(--navy)}.tc-big-dir{font-size:22px;font-weight:700;padding:2px 12px;border-radius:8px}.tc-big-dir.in{color:var(--tc-in);background:#2f62b31f}.tc-big-dir.out{color:var(--tc-out);background:#a37c2c26}.tc-big-cls{font-size:18px;font-weight:600}.drafted{outline:2px dashed var(--gold);outline-offset:2px;border-radius:6px}.tc-timer{margin-left:auto;font-variant-numeric:tabular-nums;font-weight:600;color:var(--text-muted)}.tc-timer.warn{color:var(--tc-warn)}.tc-item-plate{display:flex;align-items:center;gap:10px;margin-top:10px;flex-wrap:wrap}.tc-item-plate .label{font-size:12px;color:var(--text-muted);text-transform:uppercase}.tc-big-plate{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:30px;font-weight:800;letter-spacing:.04em;padding:2px 12px;border:2px solid var(--text);border-radius:6px;background:var(--surface)}.tc-cands{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}.tc-cand{font-family:ui-monospace,Menlo,Consolas,monospace;background:var(--tc-surface-2);border:1px solid var(--border);color:var(--text);border-radius:6px;padding:4px 10px;cursor:pointer}.tc-cand small{color:var(--text-muted)}.tc-reasons{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}.tc-keys{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px;margin-top:14px}.tc-key{border:1px solid var(--border);background:var(--tc-surface-2);color:var(--text);border-radius:8px;padding:12px 8px;font-size:14px;font-weight:600;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:6px}.tc-key:hover:not(:disabled){border-color:var(--tc-in)}.tc-key.primary{background:var(--tc-ok);border-color:var(--tc-ok);color:#fff;grid-column:span 2}.tc-key.danger{color:var(--tc-danger);border-color:#c0392b66}.tc-key.ghost{background:transparent}.tc-key:disabled{opacity:.45;cursor:not-allowed}.tc-key-hint{font-size:12px;color:var(--text-muted);margin:10px 0 0}.tc-choices{display:flex;flex-direction:column;gap:6px}.tc-choices.row{flex-direction:row;flex-wrap:wrap}.tc-choice{text-align:left;border:1px solid var(--border);background:var(--tc-surface-2);color:var(--text);border-radius:8px;padding:10px 12px;cursor:pointer;font-size:14px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}.tc-choice.current{border-color:var(--gold)}.tc-choice.danger:hover{border-color:var(--tc-danger)}.tc-plate-big-input{width:100%;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:28px;font-weight:700;letter-spacing:.05em;padding:8px 12px;border:2px solid var(--tc-in);border-radius:8px;text-transform:uppercase;background:var(--surface);color:var(--text)}.tc-sugg{list-style:none;padding:0;margin:8px 0 0;border:1px solid var(--border);border-radius:8px;overflow:hidden}.tc-sugg li{display:flex;justify-content:space-between;padding:8px 12px;border-bottom:1px solid var(--border);cursor:pointer}.tc-sugg li:last-child{border-bottom:none}.tc-sugg li.hi{background:#2f62b326}body.tc-tv-mode .app-nav,body.tc-tv-mode .app-header,body.tc-tv-mode .tc-toolbar{display:none!important}body.tc-tv-mode .app-main{max-width:none;padding:14px 18px}body.tc-tv-mode .tc-guard{font-size:17px}body.tc-tv-mode .tc-guard-main{grid-template-columns:320px minmax(0,1fr)}body.tc-tv-mode .tc-queue{max-height:calc(100vh - 90px)}body.tc-tv-mode .tc-qi{font-size:16px;padding:10px 12px}body.tc-tv-mode .tc-big-point{font-size:40px}body.tc-tv-mode .tc-big-dir{font-size:32px}body.tc-tv-mode .tc-big-plate{font-size:46px}body.tc-tv-mode .tc-key{font-size:18px;padding:16px 8px}.tc-pump-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px;margin-bottom:16px}.tc-pump-grid .card+.card{margin-top:0}.tc-pump.alert{border-color:var(--tc-danger)}.tc-pump-img{aspect-ratio:16 / 9;min-height:0;cursor:zoom-in}.tc-device-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(520px,100%),1fr));gap:14px}.tc-device-list .card+.card{margin-top:0}.tc-dev-badges{display:flex;gap:4px;flex-wrap:wrap}.tc-dev-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.tc-dev-grid .tc-kv{margin:6px 0}.tc-dev-actions{display:flex;gap:6px}.tc-pairbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:14px}.tc-export{display:flex;gap:6px}.tc-cfg-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,1fr);gap:14px;align-items:start}.tc-cfg-layout .card+.card{margin-top:14px}.tc-cfg-side{min-width:0}.tc-editor-stage{position:relative;width:100%;background:#1b2333;border-radius:8px;overflow:hidden;touch-action:none}.tc-editor-stage img{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;user-select:none}.tc-editor-stage svg{position:absolute;inset:0;width:100%;height:100%}.tc-editor-stage svg.tool-line,.tc-editor-stage svg.tool-zone,.tc-editor-stage svg.tool-roi{cursor:crosshair}.tc-editor-noimg{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#9aa7bb;font-size:13px;padding:20px;text-align:center}.tc-ed-grid line{stroke:#ffffff1f;stroke-width:1}.tc-ed-line .main{stroke:#ffd400;stroke-width:5}.tc-ed-line .second{stroke:#ffd400;stroke-width:4;stroke-dasharray:10 8}.tc-ed-line.sel .main,.tc-ed-line.sel .second{stroke:#fff36b;filter:drop-shadow(0 0 3px rgba(0,0,0,.8))}.tc-ed-line .arrow{stroke:#19c37d;stroke-width:6}.tc-ed-line .arrow-head{fill:#19c37d}.tc-ed-line .arrow-label{fill:#19c37d;font-weight:700;font-size:20px;paint-order:stroke;stroke:#0009;stroke-width:3}.tc-ed-line .line-label{fill:#ffd400;font-size:15px;font-weight:700;paint-order:stroke;stroke:#000000b3;stroke-width:3}.tc-ed-handle{fill:#ffd400;stroke:#000;stroke-width:2;cursor:grab}.tc-ed-handle.zone{fill:#ff5a4a}.tc-ed-zone{fill:#ff463c40;stroke:#ff5a4a;stroke-width:3}.tc-ed-roi{fill:#46a0ff33;stroke:#46a0ff;stroke-width:3;stroke-dasharray:8 6}.tc-ed-pending polyline{fill:none;stroke:#fff;stroke-width:3;stroke-dasharray:6 5}.tc-ed-pending circle{fill:#fff}.tc-ed-hint{margin:6px 0 0}.tc-cfg-lists{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:12px;font-size:13px}.tc-cfg-item{display:flex;align-items:center;gap:6px;padding:6px 8px;border-radius:6px;border:1px solid var(--border);margin-top:6px;cursor:pointer}.tc-cfg-item.sel{border-color:var(--gold);background:var(--tc-surface-2)}@media(max-width:1100px){.tc-cfg-layout{grid-template-columns:1fr}}@media(max-width:900px){.tc-grid-2,.tc-guard-main{grid-template-columns:1fr}.tc-queue{max-height:200px}.tc-item-media,.tc-dev-grid{grid-template-columns:1fr}}@media(max-width:640px){.tc-hide-sm{display:none}.tc-map-pt-label{font-size:16px}.tc-map-pt-count{font-size:17px}.tc-map-pt-soc{font-size:15px}.tc-detail-media,.tc-form,.tc-cfg-lists{grid-template-columns:1fr}.tc-toolbar-right{margin-left:0}.tc-big-plate{font-size:24px}.tc-key.primary{grid-column:1 / -1}.stat-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.stat-tile .value{font-size:21px}}@media(max-width:640px){table.tc-stack thead{display:none}table.tc-stack,table.tc-stack tbody,table.tc-stack tr,table.tc-stack td{display:block;width:100%}table.tc-stack tr{border-bottom:1px solid var(--border);padding:8px 0}table.tc-stack td{border:none;padding:3px 4px 3px 104px;position:relative;min-height:22px}table.tc-stack td:before{content:attr(data-label);position:absolute;left:4px;width:94px;color:var(--text-muted);font-size:12px}table.tc-stack td[data-label=""]{padding-left:4px}}.tc-trip-rule{margin:0 0 10px;max-width:900px}.tc-trip-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px;flex-wrap:wrap;margin:4px 0 6px}.tc-trip-head .tc-h3{margin:0}.tc-trip-head a{color:var(--tc-in);text-decoration:none;font-size:13px}.tc-trip-cfg-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.tc-trip-cfg-row .select{min-width:0}.tc-trip-ident-input{width:100%;max-width:420px}.tc-trip-cfg-row{flex-wrap:nowrap}.tc-trip-cfg-row>span{display:inline-block;margin:0}.tc-trip-cfg-row>.select{flex:0 1 340px;width:auto;display:inline-block;margin:0}.tc-trip-cfg-row>button{flex:none;margin:0}.vol-stations{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:16px;margin-bottom:16px}.vol-stations .card{margin:0}.vol-devices{display:flex;flex-direction:column;gap:6px}.vol-device{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center;border-top:1px solid var(--border, #e5e7eb);padding-top:6px}.vol-lidars{display:flex;flex-wrap:wrap;gap:4px}.vol-roles{display:flex;flex-wrap:wrap;gap:6px 14px;align-items:center}.vol-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.vol-actions-box{margin-top:10px}.vol-proposal{margin-bottom:8px}.vol-figs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:6px 0 10px}.vol-figs>div{display:flex;flex-direction:column;background:var(--surface-2, #f4f6fa);border-radius:8px;padding:8px 10px}.vol-figs .label{font-size:12px;color:var(--text-muted)}.vol-figs b{font-size:18px}.vol-trip-title{margin:0;font-size:18px}.vol-declared{margin-top:8px}.vol-imgs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.vol-pass-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:12px}.vol-3d{margin-top:8px}.vol-3d-canvas{width:100%;border-radius:8px;overflow:hidden}.vol-3d-canvas canvas{display:block;max-width:100%;cursor:crosshair}.vol-3d-bar{display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center;margin-top:6px}.vol-3d-legend{display:inline-block;width:120px;height:10px;border-radius:5px;background:linear-gradient(90deg,#0d0df2,#0df20d,#f2f20d,#f20d0d)}.vol-cfg-group{border:1px solid var(--border, #e5e7eb);border-radius:8px;padding:8px 12px 12px;margin:10px 0;min-width:0}.vol-cfg-group legend{font-weight:600;font-size:13px;padding:0 6px}.vol-cfg-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:10px 16px}.vol-cfg-row{display:flex;flex-direction:column;gap:3px;font-size:13px;min-width:0}.vol-cfg-row input,.vol-cfg-row textarea,.vol-cfg-row .select{width:100%;font-size:13px;padding:5px 7px}.vol-cfg-row textarea.invalid{border-color:var(--tc-danger, #c0392b)}.vol-cfg-row.local{opacity:.8}.vol-cfg-label code{margin-left:4px}@media(max-width:767px){.vol-figs{grid-template-columns:repeat(2,minmax(0,1fr))}.vol-imgs,.vol-pass-grid{grid-template-columns:minmax(0,1fr)}}.tc-trips-compact{width:100%;table-layout:auto}.tc-trips-compact th,.tc-trips-compact td{padding:6px 8px;vertical-align:top}.tc-th-sub{font-weight:400;font-size:11px;opacity:.7}.tc-cell-sub{font-size:12px;color:var(--muted, #6b7280);margin-top:2px}.tc-badges{display:flex;flex-wrap:wrap;gap:4px;max-width:260px}.tc-act{display:flex;gap:4px;flex-wrap:nowrap;justify-content:flex-end}.tc-col-act{width:1%}@media(max-width:1100px){.tc-col-lo{display:none}}@media(max-width:640px){.tc-col-md{display:none}.tc-trips-compact th,.tc-trips-compact td{padding:5px 6px;font-size:13px}.tc-badges{max-width:140px}}.tc-kv-inline{display:flex;flex-wrap:wrap;gap:4px 16px;font-size:13px}.tc-kv-inline b{font-weight:600}.tc-num-warn{color:var(--danger, #b3261e);font-weight:600}.tc-num-ok{color:var(--ok, #1b7f3b)}.tc-preview-err{background:#b3261e0f}.tc-scroll-y{max-height:320px;overflow-y:auto}.tc-form-full{display:flex;flex-direction:column;gap:4px;width:100%}.tc-form-full textarea{width:100%}@media(min-width:900px){.tc-rec-table{table-layout:fixed}.tc-rec-table th:nth-child(1){width:22%}.tc-rec-table th:nth-child(2){width:8%}.tc-rec-table th:nth-child(3){width:12%}.tc-rec-table th:nth-child(4),.tc-rec-table th:nth-child(5),.tc-rec-table th:nth-child(6){width:15%}.tc-rec-table th:nth-child(7){width:8%}.tc-rec-table th:nth-child(8){width:5%}}.tc-act .btn{white-space:nowrap}@media(min-width:641px){.tc-tabs{flex-wrap:wrap;overflow-x:visible}}.tc-root{min-width:0;max-width:100%}.tc-compact .badge{white-space:nowrap}.tc-only-sm{display:none!important}@media(max-width:640px){.tc-only-sm{display:flex!important;margin-top:4px}.tc-trips-compact .badge{white-space:nowrap}}.tc-trip-cards{display:none;list-style:none;margin:0;padding:0}@media(max-width:640px){.tc-trips-desktop{display:none}.tc-trip-cards{display:grid;gap:8px}.tc-trip-card{border:1px solid var(--border, #d9dee7);border-radius:10px;padding:10px 12px;background:var(--surface, #fff);display:grid;gap:6px;min-width:0}.tc-trip-card-head{display:flex;justify-content:space-between;align-items:baseline;gap:8px;flex-wrap:wrap}.tc-trip-card-ident{font-weight:700;font-size:15px}.tc-trip-card-times{display:flex;flex-wrap:wrap;gap:4px 14px;color:var(--text-muted, #5b6472)}.tc-trip-card-figs{display:flex;gap:18px;font-size:15px;font-variant-numeric:tabular-nums}.tc-trip-card-foot{display:flex;justify-content:space-between;align-items:center;gap:8px}.tc-trip-card-foot .tc-badges{max-width:none}}.vol-profile{margin:8px 0 0}.vol-profile svg{width:100%;height:auto;display:block;background:var(--surface-2, #f4f6fa);border-radius:8px}.vol-profile-axis{stroke:var(--text-muted, #888);stroke-width:1}.vol-profile-tick{font-size:10px;fill:var(--text-muted, #888)}.vol-profile-top{fill:none;stroke:#d9480f;stroke-width:2}.vol-profile-p50{fill:none;stroke:#4263eb;stroke-width:1.2;stroke-dasharray:4 3}.vol-profile-tpl rect{fill:#ffd1661f;stroke:#e0a800;stroke-width:1.5;stroke-dasharray:6 3}.vol-profile-legend{display:flex;flex-wrap:wrap;align-items:center;gap:4px 6px;margin-top:4px}.vol-profile-legend .sw{display:inline-block;width:16px;height:3px;border-radius:2px}.vol-profile-legend .sw.top{background:#d9480f}.vol-profile-legend .sw.p50{background:#4263eb}.vol-profile-legend .sw.tpl{background:#e0a800}.vol-3d.compact{margin-top:0}.vol-q3d{display:flex;flex-direction:column;gap:4px;min-width:0}.vol-q3d-btn{cursor:pointer;border:1px dashed var(--border, #e4e7ee);width:100%}.vol-cmp{display:inline-flex;flex-wrap:wrap;gap:2px 10px}.vol-cmp-item.warn{color:var(--tc-danger, #c0392b);font-weight:600}.vol-suggest{margin:6px 0 0;padding-left:18px}.vol-suggest li{margin:2px 0}.vol-clip{margin:0;min-width:0}.vol-stats{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px;margin:8px 0 12px}.vol-stat{display:flex;flex-direction:column;background:var(--surface-2, #f4f6fa);border-radius:8px;padding:8px 10px;border-left:3px solid transparent}.vol-stat .label{font-size:12px;color:var(--text-muted)}.vol-stat b{font-size:18px}.vol-stat.ok{border-left-color:var(--tc-ok, #2b8a3e)}.vol-stat.warn{border-left-color:var(--tc-warn, #e0a800)}.vol-stat.danger{border-left-color:var(--tc-danger, #c0392b)}@media(max-width:640px){.vol-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}.tc-point-board{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px}.tc-point-tile{display:flex;flex-direction:column;gap:2px;align-items:flex-start;text-align:left;padding:10px 12px;border:1px solid var(--border);border-left-width:4px;border-radius:8px;background:var(--surface);cursor:pointer;font:inherit;color:inherit}.tc-point-tile:hover{box-shadow:var(--shadow)}.tc-point-tile.ok{border-left-color:var(--tc-ok, #1e8e3e)}.tc-point-tile.warn{border-left-color:var(--tc-warn, #c77700)}.tc-point-tile.down{border-left-color:var(--tc-down, #c5221f)}.tc-point-tile.unknown{border-left-color:var(--border)}.tc-point-id{font-weight:700}.tc-point-name{font-size:12px;color:var(--muted, #667085)}.tc-point-count{font-variant-numeric:tabular-nums;font-size:13px}.tc-point-soc{font-size:12px;color:var(--muted, #667085)}.tc-setup-templates{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px}.tc-setup-tpl{display:flex;flex-direction:column;gap:4px;text-align:left;padding:12px;border:1px solid var(--border);border-radius:8px;background:var(--surface);cursor:pointer;font:inherit;color:inherit}.tc-setup-tpl.on{border-color:var(--navy, #0e2240);box-shadow:0 0 0 2px var(--navy, #0e2240) inset}
