:root {
  /* Velstok identity: industrial orange #FF6B24 (primary), carbon black #111820 (secondary), metallic silver #C4CDD6 (accent).
     Orange text on white uses the darker #C2410C so it stays readable. Poppins (geometric) like the Velstok wordmark. */
  --bg: #f5f7f9; --surface: #fff; --surface-2: #f3f6f8; --line: #dce3e9; --line-2: #c5d0da;
  --text: #1c2b3a; --text-2: #5b6b7b; --text-3: #8392a1;
  --accent: #C2410C; --accent-h: #9A3412; --accent-soft: #FFF0E7; --accent-2: #FF6B24; --teal: #FF6B24; --lime: #C4CDD6; --orange: #FF6B24; --carbon: #111820; --silver: #C4CDD6; --vgrad: linear-gradient(135deg, #FF8A4C 0%, #FF6B24 55%, #F05A14 100%);
  --ok: #2e8b1e; --ok-soft: #eaf6e1; --ok-lamp: #3cc02a;
  --warn: #8a6100; --warn-soft: #fff6d6; --warn-lamp: #f5c400;
  --err: #c62828; --err-soft: #fdeaea; --err-lamp: #e53935;
  --side: #111820; --side-2: #1D2733; --side-text: #C4CDD6;
  --r: 8px; --r-sm: 6px; --shadow: 0 1px 2px rgba(28,43,58,.06);
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif; --mono: 'Poppins', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 14px/1.5 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
h1 { font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
h2 { font-size: 15px; font-weight: 600; }
h3 { font-size: 14px; font-weight: 600; }
p { margin: 0 0 .6em; }
a { color: var(--accent); }
input, select, textarea, button { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.boot { padding: 40px; color: var(--text-3); text-align: center; }

/* utilities */
.muted { color: var(--text-2); } .dim { color: var(--text-3); } .small { font-size: 12.5px; }
.mono { font-family: var(--mono); font-size: .94em; } .center { text-align: center; } .pad { padding: 20px; }
.right { text-align: right; } .nowrap { white-space: nowrap; } .break { word-break: break-all; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .grow { flex: 1; }
.ok-text { color: var(--ok); font-weight: 500; } .warn-text { color: var(--warn); }
.ico { flex-shrink: 0; vertical-align: -3px; }

/* shell */
.shell { display: flex; min-height: 100vh; }
.sidebar { width: 236px; flex-shrink: 0; background: var(--side); color: var(--side-text); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; z-index: 30; }
.brand { display: flex; gap: 10px; align-items: center; padding: 18px 18px 14px; color: #fff; }
.brand.big { color: inherit; padding: 0 0 24px; }
.brand-name { font-weight: 700; font-size: 16px; letter-spacing: .01em; }
.brand-sub { font-size: 11.5px; color: #8E99A5; }
.brand-mark { width: 32px; height: 32px; background: #fff; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.brand-mark.lg { width: 44px; height: 44px; border-radius: 9px; }
.brand-mark img { display: block; }
.nav-group { display: flex; flex-direction: column; padding: 4px 10px; gap: 1px; }
.nav-label { padding: 14px 20px 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #7F8A96; }
.nav-item { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: var(--r-sm); color: var(--side-text); text-decoration: none; font-weight: 500; }
.nav-item:hover { background: var(--side-2); color: #fff; }
.nav-item.active { background: var(--side-2); color: #fff; box-shadow: inset 3px 0 0 var(--teal); }
.nav-foot { margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 14px 14px 16px 20px; border-top: 1px solid #263240; }
.who { flex: 1; min-width: 0; } .who-name { color: #fff; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who-sub { font-size: 12px; color: #8E99A5; }
.nav-foot .icon-btn { color: var(--side-text); } .nav-foot .icon-btn:hover { background: var(--side-2); color: #fff; }
.scrim { position: fixed; inset: 0; background: rgba(10,16,19,.45); z-index: 25; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 52px; display: flex; align-items: center; gap: 12px; padding: 0 24px; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.icon-btn.menu-btn { display: none; }
.topbar-title { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-3); }
.live-dot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.live-dot.on { color: var(--ok); } .live-dot.on::before { background: #22a55b; box-shadow: 0 0 0 3px rgba(34,165,91,.18); }
.content { flex: 1; padding: 24px; }
.page { max-width: 1280px; margin: 0 auto; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head p { margin: 4px 0 0; max-width: 720px; }
.h1-sub { font-size: 14px; font-weight: 400; margin-left: 6px; }
.crumb { display: inline-block; font-size: 12.5px; color: var(--text-3); text-decoration: none; margin-bottom: 2px; }
.crumb::after { content: ' /'; } .crumb:hover { color: var(--accent); }
.section { margin-top: 28px; } .section > h2 { margin-bottom: 10px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: var(--r-sm); border: 1px solid transparent; font-weight: 500; text-decoration: none; white-space: nowrap; transition: background .12s, border-color .12s; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--accent); color: #fff; } .btn.primary:hover:not(:disabled) { background: var(--accent-h); }
.btn.secondary { background: var(--surface); border-color: var(--line-2); color: var(--text); } .btn.secondary:hover:not(:disabled) { background: var(--surface-2); border-color: var(--text-3); }
.btn.ghost { background: transparent; color: var(--accent); } .btn.ghost:hover:not(:disabled) { background: var(--accent-soft); }
.btn.danger { background: var(--surface); border-color: #f0b4ae; color: var(--err); } .btn.danger:hover:not(:disabled) { background: var(--err-soft); }
.btn.go { background: var(--ok); color: #fff; height: 44px; padding: 0 22px; font-size: 15px; } .btn.go:hover:not(:disabled) { background: #156339; }
.btn.stop { background: var(--err); color: #fff; height: 44px; padding: 0 22px; font-size: 15px; } .btn.stop:hover:not(:disabled) { background: #921c13; }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; }
.btn.block { width: 100%; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 0; background: transparent; border-radius: var(--r-sm); color: var(--text-2); flex-shrink: 0; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn.sm { width: 26px; height: 26px; font-size: 13px; } .icon-btn.danger:hover { color: var(--err); background: var(--err-soft); }
.link { background: none; border: 0; padding: 0; color: var(--accent); font-weight: 500; text-decoration: none; cursor: pointer; }
.link:hover { text-decoration: underline; } .link.danger { color: var(--err); }
.spin { width: 22px; height: 22px; border: 2.5px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: sp .7s linear infinite; display: inline-block; }
.spin.sm { width: 14px; height: 14px; border-width: 2px; border-color: rgba(255,255,255,.4); border-top-color: currentColor; }
@keyframes sp { to { transform: rotate(360deg); } }
.loading { display: flex; justify-content: center; padding: 60px 0; }

/* feedback */
.empty { text-align: center; padding: 48px 20px; background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--r); color: var(--text-2); }
.empty-title { font-weight: 600; color: var(--text); font-size: 15px; margin-bottom: 6px; } .empty-body { max-width: 520px; margin: 0 auto; }
.empty .btn { margin-top: 14px; }
.alert { padding: 10px 14px; border-radius: var(--r-sm); margin-bottom: 14px; border: 1px solid; }
.alert.err { background: var(--err-soft); border-color: #f5c2bc; color: #7d1a12; }
.alert.warn { background: var(--warn-soft); border-color: #f1d39d; color: #6b4000; }
.alert.info { background: var(--accent-soft); border-color: #cfe3a6; color: #2c5410; }
.alert.ok { background: var(--ok-soft); border-color: #b6dfc5; color: #11512e; }
.alert.row { display: flex; align-items: center; gap: 12px; }
.badge { display: inline-flex; align-items: center; height: 21px; padding: 0 8px; border-radius: 11px; font-size: 11.5px; font-weight: 500; background: #edf0f2; color: var(--text-2); white-space: nowrap; font-family: var(--font); vertical-align: 1px; }
.badge.ok { background: var(--ok-soft); color: var(--ok); } .badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.err { background: var(--err-soft); color: var(--err); } .badge.accent { background: var(--accent-soft); color: var(--accent); }
.toasts { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 100; max-width: calc(100vw - 40px); }
.toast { background: var(--side); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); box-shadow: 0 8px 24px rgba(0,0,0,.2); border-left: 4px solid var(--accent-2); animation: tin .18s ease-out; }
.toast.ok { border-left-color: #22a55b; } .toast.err { border-left-color: #f04438; } .toast.warn { border-left-color: #f5a524; }
@keyframes tin { from { transform: translateY(8px); opacity: 0; } }

/* modal */
.modal-back { position: fixed; inset: 0; background: rgba(10,16,19,.5); display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px; z-index: 60; overflow-y: auto; }
.modal { background: var(--surface); border-radius: 10px; width: 100%; max-width: 520px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.modal.wide { max-width: 860px; }
.modal.wide:has(.users-embed) { max-width: 1140px; }
.users-embed .table-wrap { overflow-x: auto; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: 16px; }
.modal-body { padding: 20px; }

/* forms */
.form { display: flex; flex-direction: column; gap: 14px; }
.fld { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.fld > span { font-size: 12.5px; font-weight: 500; color: var(--text-2); display: flex; align-items: center; gap: 5px; }
.fld small { color: var(--text-3); font-size: 12px; }
.fld.inline { flex-direction: row; align-items: center; gap: 8px; }
input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea { height: 36px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); width: 100%; min-width: 0; }
textarea { height: auto; padding: 8px 10px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(111,174,46,.22); }
input:disabled, select:disabled, textarea:disabled, input[readonly] { background: var(--surface-2); color: var(--text-2); }
input[type=file] { font-size: 13px; }
.fld.dirty input, .fld.dirty select { border-color: var(--accent-2); background: #FFF6F0; }
.fld.dirty > span::after { content: '•'; color: var(--accent-2); font-size: 16px; line-height: 1; }
.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px 14px; }
.fgrid.two { grid-template-columns: 1fr 1fr; }
.unit-input { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); overflow: hidden; }
.unit-input input { border: 0 !important; box-shadow: none !important; }
.unit-input span { padding: 0 9px; color: var(--text-3); font-size: 12px; white-space: nowrap; }
.unit-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(111,174,46,.22); }
.fld.dirty .unit-input { border-color: var(--accent-2); }
.check { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); margin: 0; }
.actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.secret { font-family: var(--mono); font-size: 18px; letter-spacing: .06em; background: var(--surface-2); border: 1px dashed var(--line-2); padding: 12px 16px; border-radius: var(--r-sm); text-align: center; user-select: all; }

/* auth */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(340px, 1fr) minmax(380px, 1.1fr); }
.auth-side { background: var(--side); color: var(--side-text); padding: 48px; display: flex; flex-direction: column; }
.auth-side .brand-name { color: #fff; }
.auth-claim { font-size: 30px; line-height: 1.2; font-weight: 600; color: #fff; margin: 40px 0 20px; max-width: 460px; letter-spacing: -.01em; }
.auth-points { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; max-width: 460px; }
.auth-points li { padding-left: 22px; position: relative; } .auth-points li::before { content: ''; position: absolute; left: 0; top: 6px; width: 10px; height: 10px; border-radius: 2px; background: linear-gradient(135deg, var(--accent-2), var(--teal)); }
.auth-foot { margin-top: auto; font-size: 12px; color: #8a9bab; padding-top: 24px; }
.auth-badge { display: inline-block; align-self: flex-start; margin-top: 36px; padding: 4px 12px; border-radius: 999px; background: #FF6B24; color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.auth-badge + .auth-claim { margin-top: 14px; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 32px 20px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h1 { margin-bottom: 6px; } .auth-card > p { margin-bottom: 20px; }

/* cards & kv */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.pcard { display: flex; flex-direction: column; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; color: inherit; text-decoration: none; box-shadow: var(--shadow); transition: border-color .12s, transform .12s; }
a.pcard:hover { border-color: var(--accent); transform: translateY(-1px); }
.pcard.static:hover { transform: none; }
.pcard-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.pcard-name { font-weight: 600; font-size: 15px; }
.pcard-alarm { display: flex; gap: 6px; align-items: center; background: var(--err-soft); color: var(--err); padding: 7px 10px; border-radius: var(--r-sm); font-size: 13px; }
.price { font-family: var(--mono); font-size: 20px; font-weight: 500; }
.kv { display: grid; gap: 10px 16px; margin: 0; }
.kv.cols2 { grid-template-columns: 1fr 1fr; } .kv.cols3 { grid-template-columns: repeat(3, 1fr); }
.kv dt { font-size: 12px; color: var(--text-3); } .kv dd { margin: 1px 0 0; overflow-wrap: anywhere; }
.state { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 12px; font-size: 12px; font-weight: 600; white-space: nowrap; background: #edf0f2; color: var(--text-2); }
.state::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.state.idle { background: var(--accent-soft); color: var(--accent); }
.state.run { background: var(--ok-soft); color: var(--ok); } .state.run::before { animation: pulse 1.4s infinite; }
.state.warn { background: var(--warn-soft); color: var(--warn); } .state.err { background: var(--err-soft); color: var(--err); }
.state.off { background: #edf0f2; color: var(--text-3); }
.state.big { height: 34px; padding: 0 16px; font-size: 14px; border-radius: 17px; }
@keyframes pulse { 50% { opacity: .3; } }
.inkbar { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.inkbar-track { flex: 1; height: 8px; background: #e7ebed; border-radius: 4px; overflow: hidden; }
.inkbar-fill { height: 100%; border-radius: 4px; background: var(--ok); transition: width .4s; }
.inkbar-fill.ok { background: var(--ok-lamp); } .inkbar-fill.warn { background: var(--warn-lamp); } .inkbar-fill.err { background: var(--err-lamp); }

/* tables */
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow-x: auto; box-shadow: var(--shadow); }
.panel .table-wrap { box-shadow: none; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--text-2); background: var(--surface-2); padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #fafcfc; }
.table th.right, .table td.right { text-align: right; }
.table.compact td, .table.compact th { padding: 6px 10px; font-size: 13px; }
.table.audit td { font-size: 13px; }
.table tr.sel td { background: var(--accent-soft); }
.table tr.total-row td { font-weight: 600; background: var(--surface-2); border-top: 2px solid var(--line-2); }
.table select { height: 30px; width: auto; }

/* console */
.console-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.tab { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; color: var(--text-2); text-decoration: none; font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab:hover { color: var(--text); } .tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.cols { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.masonry { columns: 2 380px; column-gap: 16px; }
.masonry > .panel { break-inside: avoid; margin-bottom: 16px; display: inline-block; width: 100%; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); min-width: 0; }
.panel-err { border-color: #f5c2bc; box-shadow: inset 3px 0 0 var(--err), var(--shadow); }
.panel-warn { border-color: #f1d39d; box-shadow: inset 3px 0 0 #f5a524, var(--shadow); }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; min-height: 30px; }
.panel > .actions { margin-top: 14px; }
.run-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.big-num { font-size: 20px; font-weight: 500; }
.send-row { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.send-row select { flex: 1; }
.preview-wrap { background: repeating-conic-gradient(#f2f4f5 0 25%, #fff 0 50%) 0 0/14px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px; overflow-x: auto; }
.preview-wrap canvas { display: block; image-rendering: pixelated; max-width: 100%; height: auto !important; max-height: 220px; width: auto !important; object-fit: contain; }
.ok-line { display: flex; gap: 6px; align-items: center; color: var(--ok); margin: 0; font-weight: 500; }
.alarms { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.alarms li { padding: 7px 10px; border-radius: var(--r-sm); font-size: 13px; }
.alarms li.err { background: var(--err-soft); color: #7d1a12; } .alarms li.warn { background: var(--warn-soft); color: #6b4000; }
.alarms .mono { font-weight: 600; margin-right: 6px; }
.orient { display: flex; flex-direction: column; gap: 10px; }
.orient-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r-sm); overflow: hidden; }
.seg button { border: 0; background: var(--surface); padding: 6px 12px; font-size: 13px; color: var(--text-2); }
.seg button + button { border-left: 1px solid var(--line-2); }
.seg button.on { background: var(--accent); color: #fff; }
.orient-demo { align-self: center; font-family: var(--mono); font-size: 22px; font-weight: 600; padding: 8px 20px; border: 1px dashed var(--line-2); border-radius: var(--r-sm); transition: transform .2s; }
.cart { padding: 12px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.cart:first-of-type { border-top: 0; padding-top: 0; }
.cart-head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.btn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.locked-pane { text-align: center; padding: 48px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); color: var(--text-3); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.locked-pane h2 { color: var(--text); } .locked-pane p { max-width: 520px; }
.lock { color: var(--warn); display: inline-flex; }
.files, .events { list-style: none; margin: 0; padding: 0; }
.files li { display: flex; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); }
.files li:last-child { border-bottom: 0; } .files li .mono { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.events li { padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13px; }

/* messages */
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.search { max-width: 320px; }
.msg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.mcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.mcard-link { color: inherit; text-decoration: none; display: block; } .mcard-link:hover .mcard-title { color: var(--accent); }
.thumb { height: 120px; background: repeating-conic-gradient(#f2f4f5 0 25%, #fff 0 50%) 0 0/14px 14px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: flex-start; overflow: hidden; padding: 10px; }
.thumb canvas { max-height: 100%; max-width: 100%; width: auto !important; height: auto !important; object-fit: contain; image-rendering: pixelated; }
.mcard-body { padding: 12px 14px; flex: 1; }
.mcard-title { font-weight: 600; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mcard-actions { display: flex; gap: 6px; padding: 10px 14px; border-top: 1px solid var(--line); flex-wrap: wrap; }

/* editor */
.editor { max-width: none; }
.editor-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 12px; flex-wrap: wrap; }
.editor-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; flex: 1; min-width: 260px; }
.name-input { font-size: 18px !important; font-weight: 600; max-width: 340px; height: 40px !important; }
.editor-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.rel { position: relative; display: inline-flex; }
.menu { position: absolute; right: 0; top: calc(100% + 4px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: 0 10px 30px rgba(0,0,0,.14); min-width: 240px; max-height: 320px; overflow-y: auto; z-index: 40; padding: 4px; }
.menu button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 4px; font-size: 13px; }
.menu button:hover { background: var(--surface-2); }
.insert-bar { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 12px; border: 1px solid var(--line-2); background: var(--surface); border-radius: 16px; font-size: 13px; font-weight: 500; }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.sm { height: 26px; padding: 0 4px 0 10px; font-size: 12px; font-family: var(--mono); cursor: default; }
.chip.sm button { border: 0; background: none; width: 20px; height: 20px; border-radius: 50%; color: var(--text-3); }
.chip.sm button:hover { background: var(--err-soft); color: var(--err); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; min-height: 26px; }
.editor-body { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: start; }
.canvas-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.canvas-tools { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.zoom { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); }
.zoom span { min-width: 46px; text-align: center; font-size: 12px; }
.canvas-wrap { background: #e9edef; border: 1px solid var(--line); border-radius: var(--r); padding: 16px; overflow: auto; max-height: 440px; }
.canvas-wrap canvas { display: block; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.12); image-rendering: pixelated; touch-action: none; }
canvas.editable { cursor: crosshair; }
.item-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.item-list li + li { border-top: 1px solid var(--line); }
.item-list button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; background: none; padding: 8px 12px; min-width: 0; }
.item-list button:hover { background: var(--surface-2); }
.item-list button.on { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.item-list .ellipsis { flex: 1; }
.props { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; position: sticky; top: 68px; max-height: calc(100vh - 90px); overflow-y: auto; box-shadow: var(--shadow); }
.props-empty { color: var(--text-3); text-align: center; padding: 30px 10px; }
.props-in { display: flex; flex-direction: column; gap: 14px; }
.props-head { display: flex; justify-content: space-between; align-items: center; }
.parts { display: flex; flex-direction: column; gap: 8px; }
.part { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px; display: flex; flex-direction: column; gap: 8px; background: var(--surface-2); }
.part-head { display: flex; gap: 6px; align-items: center; }
.part-head select { flex: 1; }
.part-btns { display: inline-flex; gap: 2px; }
.json { background: #0f1a1e; color: #cfe3ea; padding: 14px; border-radius: var(--r-sm); font-size: 12px; max-height: 420px; overflow: auto; font-family: var(--mono); white-space: pre; }

/* bridges, steps */
.radio-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.rcard { border: 1px solid var(--line-2); border-radius: var(--r); padding: 12px 14px; background: var(--surface); cursor: pointer; text-align: left; display: flex; flex-direction: column; gap: 4px; }
.rcard.on { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(255,107,36,.25); background: #FFF6F0; }
.steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.steps li::marker { font-weight: 600; color: var(--accent); }
.howto { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; box-shadow: var(--shadow); }
.howto h2 { margin-bottom: 12px; }
.pair-code { font-family: var(--mono); font-size: 30px; font-weight: 500; letter-spacing: .18em; text-align: center; padding: 16px; background: var(--accent-soft); color: var(--accent-h); border-radius: var(--r); margin: 6px 0; user-select: all; }
code { font-family: var(--mono); font-size: .9em; background: #eef2f3; padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; }

/* billing */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--shadow); }
.stat.total { background: var(--side); color: #fff; border-color: var(--side); } .stat.total .stat-label, .stat.total .stat-sub { color: #a9bac8; }
.stat-label { font-size: 12px; color: var(--text-3); }
.stat-val { font-family: var(--mono); font-size: 22px; font-weight: 500; margin: 2px 0; }
.stat-sub { font-size: 12px; color: var(--text-2); }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 120px; padding: 10px 0 0; }
.bar { flex: 1; height: 100%; display: flex; align-items: flex-end; min-width: 4px; }
.bar-fill { width: 100%; background: var(--teal); border-radius: 2px 2px 0 0; min-height: 1px; }
.bar:hover .bar-fill { background: var(--accent); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 14px; }
.filters .fld { min-width: 150px; }
.filters input, .filters select { width: auto; min-width: 150px; }

/* responsive */
@media (max-width: 1100px) {
  .editor-body { grid-template-columns: 1fr; }
  .props { position: static; max-height: none; }
}
@media (max-width: 900px) {
  .cols { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth-side { padding: 28px 24px; }
  .auth-claim { font-size: 22px; margin: 20px 0 14px; }
  .auth-foot { display: none; }
}
@media (max-width: 760px) {
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; transform: translateX(-100%); transition: transform .2s; box-shadow: 0 0 40px rgba(0,0,0,.3); }
  .sidebar.open { transform: none; }
  .icon-btn.menu-btn { display: inline-flex; margin-left: -8px; }
  .topbar { padding: 0 16px; }
  .content { padding: 16px; }
  h1 { font-size: 19px; }
  .kv.cols3 { grid-template-columns: 1fr 1fr; }
  .fgrid.two { grid-template-columns: 1fr; }
  .masonry { columns: 1; }
  .btn.go, .btn.stop { flex: 1; }
  .search { max-width: none; flex: 1; }
  .name-input { max-width: none; }
  .modal-back { padding: 0; align-items: flex-end; }
  .modal { border-radius: 12px 12px 0 0; max-height: 92vh; overflow-y: auto; }
}

/* fixes */
.table td .link + .link, .table td .link + a.link, .table td a.link + .link { margin-left: 14px; }
.page > div > .panel + .panel, .page > div > .panel + .cols, .page > div > .cols + .panel, .stats + .panel, .section .panel + .panel { margin-top: 16px; }
.bar { flex-direction: column; justify-content: flex-end; position: relative; }
.bar span { position: absolute; bottom: -18px; left: 0; font-size: 10.5px; color: var(--text-3); font-family: var(--mono); }
.bars { margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.page > p.muted.small:last-child, .page > div > p.muted.small:last-child { margin-top: 12px; }
.panel + .table-wrap, .alert + .table-wrap { margin-top: 16px; }


/* ---- status lights (TX1 software colours: green ready/printing, yellow warning, red alarm) ---- */
.lamp { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; background: #b7c2cc; box-shadow: inset 0 -2px 3px rgba(0,0,0,.18); }
.ok > .lamp { background: var(--ok-lamp); box-shadow: 0 0 0 4px rgba(60,192,42,.18), inset 0 -2px 3px rgba(0,0,0,.15); }
.warn > .lamp { background: var(--warn-lamp); box-shadow: 0 0 0 4px rgba(245,196,0,.25), inset 0 -2px 3px rgba(0,0,0,.12); }
.err > .lamp { background: var(--err-lamp); box-shadow: 0 0 0 4px rgba(229,57,53,.22), inset 0 -2px 3px rgba(0,0,0,.15); animation: blink 1s steps(2, start) infinite; }
@keyframes blink { 50% { opacity: .35; } }
.banner { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: var(--r); margin-bottom: 16px; border: 1px solid; border-left-width: 6px; }
.banner.ok { background: var(--ok-soft); border-color: #bfe3ad; border-left-color: var(--ok-lamp); color: #1f5e14; }
.banner.warn { background: var(--warn-soft); border-color: #f3df8f; border-left-color: var(--warn-lamp); color: #6b4b00; }
.banner.err { background: var(--err-soft); border-color: #f4b9b7; border-left-color: var(--err-lamp); color: #8e1c1c; }
.banner.off { background: var(--surface-2); border-color: var(--line); border-left-color: #b7c2cc; color: var(--text-2); }
.banner-title { font-weight: 600; font-size: 15px; }
.banner-sub { font-size: 13px; opacity: .9; }
.banner.compact { padding: 8px 12px; margin: 0; gap: 10px; border-left-width: 4px; }
.banner.compact .lamp { width: 11px; height: 11px; }
.banner.compact .banner-title { font-size: 13px; font-weight: 500; }
.pcard { border-top: 4px solid #b7c2cc; }
.pcard.light-ok { border-top-color: var(--ok-lamp); } .pcard.light-warn { border-top-color: var(--warn-lamp); } .pcard.light-err { border-top-color: var(--err-lamp); }
.fleet-light { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 15px; font-size: 12.5px; font-weight: 500; text-decoration: none; margin-right: 12px; white-space: nowrap; }
.fleet-light .lamp { width: 10px; height: 10px; }
.fleet-light.ok { background: var(--ok-soft); color: #1f5e14; } .fleet-light.warn { background: var(--warn-soft); color: #6b4b00; } .fleet-light.err { background: var(--err-soft); color: #8e1c1c; }
.state.run { background: var(--ok-soft); color: var(--ok); }
.state.warn { background: var(--warn-soft); color: var(--warn); }
.state.err { background: var(--err-soft); color: var(--err); }
.alarms li.err { border-left: 4px solid var(--err-lamp); } .alarms li.warn { border-left: 4px solid var(--warn-lamp); }
.panel-err { box-shadow: inset 4px 0 0 var(--err-lamp); } .panel-warn { box-shadow: inset 4px 0 0 var(--warn-lamp); }
.btn.go { background: #2e9e1f; } .btn.go:hover:not(:disabled) { background: #257f19; }
.btn.stop { background: #d32f2f; } .btn.stop:hover:not(:disabled) { background: #b02424; }
.toast { border-left-color: var(--teal); } .toast.ok { border-left-color: var(--ok-lamp); } .toast.warn { border-left-color: var(--warn-lamp); } .toast.err { border-left-color: var(--err-lamp); }
@media (max-width: 760px) { .fleet-light { padding: 0 9px; margin-right: 6px; font-size: 0; gap: 0; } .fleet-light .lamp { width: 12px; height: 12px; } }
.bridge-kinds { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-bottom: 10px; }
.bridge-kinds h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; margin: 0 0 6px; }
.bridge-kinds p { margin: 0; line-height: 1.5; }
.badge.info { background: var(--accent-soft, rgba(0,168,150,.12)); color: var(--accent, #00a896); }
.page > .panel + .panel { margin-top: 16px; }

/* Datamatrix Serial */
.dms-list { display: grid; gap: 14px; }
.dms-card .kv { margin-bottom: 12px; }
.dms-card .kv > div, .dms-run .kv > div { display: flex; flex-direction: column; gap: 2px; }
.dms-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; }
.dms-texts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.dms-texts textarea { resize: none; font-size: 13px; line-height: 1.35; white-space: pre; overflow-x: auto; }
.dms-label { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px dashed var(--line-2); border-radius: var(--r-sm); padding: 10px 14px; margin-bottom: 8px; overflow-x: auto; min-height: 64px; }
.dms-field { font-family: var(--mono); font-size: 12px; line-height: 1.25; white-space: pre; color: #111; font-weight: 600; }
.dms-gap { width: 10px; flex: none; }
.dms-dm { width: 48px; height: 48px; image-rendering: pixelated; flex: none; }
.dms-prog { height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; margin-top: 4px; min-width: 80px; }
.dms-prog i { display: block; height: 100%; background: var(--accent); }
@media (max-width: 900px) { .dms-grid { grid-template-columns: 1fr 1fr; } .dms-texts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .dms-grid, .dms-texts, .kv.cols3 { grid-template-columns: 1fr; } }

/* Velstok brand */
.brand-mark { background: transparent; }
.brand-mark.vel { width: 30px; height: 34px; }
.btn.primary { background: var(--vgrad); color: #111820; font-weight: 600; border-color: transparent; }
.btn.primary:hover:not(:disabled) { background: linear-gradient(135deg, #FF7A38 0%, #F45F17 55%, #DE4F0C 100%); color: #111820; }
.seg button.on { color: #fff; }
/* Message app */
.zthumb { background: #fff; display: flex; align-items: center; justify-content: flex-start; min-height: 70px; padding: 8px; overflow: hidden; }
.zthumb canvas { max-width: 100%; image-rendering: pixelated; border: 1px solid var(--line); }
.page.wide { max-width: none; }
.title-input { font-size: 20px; font-weight: 600; border: 1px solid transparent; background: transparent; padding: 4px 8px; border-radius: var(--r-sm); min-width: 240px; flex: 1; max-width: 520px; }
.title-input:hover, .title-input:focus { border-color: var(--line-2); background: #fff; }
.vm-host { margin-top: 8px; }
.vm-light.vm { --vm-surface: #fff; --vm-border: #D3DAE1; --vm-fg: #1c2b3a; --vm-dim: #5b6b7b; --vm-accent: #FF6B24; --vm-accent2: #C2410C; font-size: 14px; }
.vm-light .vm-card input, .vm-light .vm-card select { background: #fff; color: var(--text); }
.vm-light .vm-scroll { background: #E8ECF0; }
.vm-light .vm-errors { background: var(--err-soft); color: var(--err); }
.vm-light .vm-gs1 { background: #F2F4F6; }
.vm-light .vm-bad { color: var(--err); }
.vm-light .vm-btn.primary { background: var(--vgrad); border-color: transparent; color: #111820; }
.vm-light .vm-btn.danger { border-color: #e3b0b0; color: var(--err); }
.vm-light .vm-modal-box { background: #fff; }
.vm-light .vm-fnc { color: var(--accent); font-weight: 600; }
.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.lcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; position: relative; }
.lcard-img { height: 130px; display: flex; align-items: center; justify-content: center; background: repeating-conic-gradient(#F1F3F5 0 25%, #fff 0 50%) 0 0 / 16px 16px; border-radius: var(--r) var(--r) 0 0; padding: 12px; }
.lcard-img.big { height: 200px; border-radius: var(--r); margin-bottom: 12px; }
.lcard-img img { max-width: 100%; max-height: 100%; }
.lcard-body { padding: 10px 12px; }
.lcard .icon-btn { position: absolute; top: 6px; right: 6px; background: #fff; }

/* Message app folders (same folders as on the controllers) */
.folder-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; }
.fchip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line, #2a3a4a); background: transparent; color: inherit; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 14px; cursor: pointer; }
.fchip span { opacity: .65; font-size: 12px; }
.fchip.on { border-color: var(--accent, #00b489); background: color-mix(in srgb, var(--accent, #00b489) 14%, transparent); }
.fchip.add { border-style: dashed; }
.fchip.danger { color: var(--err, #e5484d); border-color: currentColor; }
.folder-pick { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; }
.folder-pick select { min-width: 140px; }

/* Menu language switch (English / Español) */
.lang-sw { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r); padding: 2px; background: var(--surface-2); gap: 2px; }
.lang-sw button { border: 0; background: none; padding: 6px 12px; min-height: 32px; border-radius: var(--r-sm); font: inherit; font-size: 13px; color: var(--text-2); cursor: pointer; }
.lang-sw button.on { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: var(--shadow); }
.nav-lang { margin: auto 14px 10px 20px; align-self: flex-start; background: rgba(255,255,255,.06); border-color: #263240; }
.nav-lang button { color: var(--side-text); }
.nav-lang button.on { background: var(--side-2); color: #fff; box-shadow: none; }
.nav-lang + .nav-foot { margin-top: 0; }
.auth-main { position: relative; }
.auth-lang { position: absolute; top: 20px; right: 20px; }
.fchip b { font-weight: inherit; }

/* Velstok identity (v2026-11): slogan, wordmark and sidebar */
.brand-name { font-weight: 700; letter-spacing: 0; }
.brand-slogan { font-size: 11px; color: var(--silver); opacity: .85; line-height: 1.3; }
.brand.big .brand-name { font-size: 22px; }
.brand.big .brand-slogan { font-size: 13px; }
.sidebar { border-right: 1px solid #1D2733; }
.nav-item .ico { opacity: .9; }
.nav-item.active .ico { color: var(--orange); opacity: 1; }
.auth-side { background: radial-gradient(120% 80% at 0% 100%, rgba(255,107,36,.16) 0%, rgba(17,24,32,0) 55%), var(--carbon); }
.auth-claim { font-weight: 700; }
.auth-slogan { font-size: 15px; color: var(--orange); font-weight: 600; letter-spacing: .02em; margin: 0 0 18px; }
.page-head h1 { font-weight: 700; }
.badge, .vm-fnc { font-variant-numeric: tabular-nums; }
.mono { font-variant-numeric: tabular-nums; }
.nav-empty { padding: 4px 20px 8px; font-size: 13px; color: rgba(255,255,255,.38); }
/* billing v2 plan panel */
.plan-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; margin-bottom: 8px; }
@media (max-width: 860px) { .plan-grid { grid-template-columns: 1fr; } }
.plan-line { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line, #e5e8ec); }
.plan-line.total { border-bottom: 0; font-size: 18px; }
.plan-line.total b { color: #FF6B24; }
.plan-method { margin: 4px 0 12px; }
.page-head.sub { margin-top: 24px; align-items: center; }
.page-head.sub h2 { margin: 0; }
.row.wrap { flex-wrap: wrap; gap: 8px; }
.brand-name sup.reg, .brand-slogan sup.tm { font-size: .55em; vertical-align: super; line-height: 0; margin-left: 1px; font-weight: 600; }
.sidebar .brand { padding-left: 14px; padding-right: 10px; gap: 8px; }
.sidebar .brand-slogan { font-size: 9.5px; white-space: nowrap; letter-spacing: -.01em; }
.role-fixed { font-weight: 600; font-size: 13px; color: var(--text, #111820); }

/* Remote support */
.support-wait { display: flex; gap: 14px; align-items: center; }
.support-screen { background: #111820; border-radius: var(--r-sm, 8px); border: 1px solid var(--line); overflow: hidden; }
.support-vnc { width: 100%; height: calc(100vh - 230px); min-height: 420px; }
.support-screen:fullscreen .support-vnc { height: 100vh; }
/* larger ® / ™, proportional to the wordmark */
.brand-name sup.reg { font-size: .72em; vertical-align: .42em; margin-left: 2px; font-weight: 600; }

/* Device Registry (merged into the Velstok staff portal) */
.nav-count { margin-left: auto; background: var(--lime); color: #0c1822; font-size: 11px; font-weight: 600; border-radius: 9px; padding: 0 7px; line-height: 18px; }
.nav-count.err { background: var(--err-lamp); color: #fff; }
.key { font-family: var(--mono); font-weight: 600; letter-spacing: .04em; white-space: nowrap; }
.key-big { font-family: var(--mono); font-size: 22px; font-weight: 600; letter-spacing: .08em; padding: 14px 16px; background: #0c1822; color: var(--lime); border-radius: var(--r); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.key-big .btn { background: var(--lime); color: #0c1822; border: 0; }
.macs { display: flex; flex-direction: column; gap: 2px; }
.macs .mono { white-space: nowrap; }
.mac-row { display: grid; grid-template-columns: minmax(0, 1fr) 190px 34px; gap: 8px; align-items: center; }
.span2 { grid-column: 1 / -1; }
.reg .fgrid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.note { background: var(--surface-2); border: 1px solid var(--line); border-left: 3px solid var(--lime); border-radius: var(--r-sm); padding: 10px 12px; font-size: 13px; color: var(--text-2); white-space: pre-line; }
.note b { color: var(--text); }
.desc { white-space: pre-wrap; line-height: 1.6; }
.gap-tag { display: inline-flex; gap: 4px; align-items: center; color: var(--warn); font-size: 12px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 14px 20px; border-left: 2px solid var(--line); margin-left: 6px; }
.timeline li::before { content: ''; position: absolute; left: -6px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); }
.timeline li:last-child { border-left-color: transparent; }
.timeline .t-head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; font-weight: 500; }
.timeline .t-body { font-size: 13px; color: var(--text-2); white-space: pre-wrap; margin-top: 2px; }
.res { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.res.ok { color: var(--ok); } .res.err { color: var(--err); } .res.warn { color: var(--warn); }
.pick-list { max-height: 320px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--r-sm); }
.pick-list label { display: flex; gap: 10px; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--line); cursor: pointer; }
.pick-list label:last-child { border-bottom: 0; } .pick-list label:hover { background: var(--surface-2); }
.pick-list input { width: 16px; height: 16px; accent-color: var(--accent); }
.docs h2 { margin: 26px 0 8px; } .docs h3 { margin: 18px 0 6px; } .docs p, .docs li { max-width: 860px; }
.docs pre { background: #0c1822; color: #dfe8ec; padding: 14px 16px; border-radius: var(--r); overflow-x: auto; font: 12.5px/1.55 var(--mono); }
.docs pre code { background: none; padding: 0; color: inherit; }
.tbl-link { color: inherit; text-decoration: none; font-weight: 500; } .tbl-link:hover { color: var(--accent); text-decoration: underline; }
.stat a { color: inherit; text-decoration: none; }
.sev-high { box-shadow: inset 3px 0 0 var(--err-lamp); } .sev-warn { box-shadow: inset 3px 0 0 var(--warn-lamp); } .sev-info { box-shadow: inset 3px 0 0 #9aa8b0; }

@media (max-width: 760px) { .fgrid.three { grid-template-columns: 1fr; } .mac-row { grid-template-columns: 1fr 34px; } .mac-row input:nth-child(2) { grid-column: 1; } }
.reg textarea { min-height: 90px; resize: vertical; } .reg textarea.long { min-height: 200px; }
