:root {
  --bg: #0d0f12; --panel: #15181d; --panel2: #1b1f25; --line: #2a2f37; --text: #e6e8eb; --dim: #9aa3ae; --faint: #6b7380;
  --accent: #2dd4bf; --accent2: #14b8a6; --blue: #60a5fa; --ok: #34d399; --warn: #fbbf24; --bad: #f87171;
  --radius: 8px;
  --bar: #101216; --field: #0b0d10; --nav: #0f1114; --mine: #0f2626; --on-accent: #04201c; --pending: #221d0c;
  --msg-bg: #161a20; --bad-bg: #2a1215; --ok-bg: #0d2219; --warn-bg: #2a2210; --bad-text: #fecaca; --ok-text: #bbf7d0; --warn-text: #fde68a;
  --danger-line: #7f1d1d; --danger-hover: #3a1212; --ok-line: #14532d; --warn-line: #713f12; --role-line: #2b3644;
  color-scheme: dark;
}
/* Dark blue: the earlier default, a blue-black base */
html[data-theme=blue] {
  --bg: #0c1117; --panel: #121a24; --panel2: #172231; --line: #263345; --text: #e2e8f0; --dim: #94a3b8; --faint: #64748b;
  --accent: #2dd4bf; --accent2: #14b8a6; --blue: #60a5fa; --ok: #34d399; --warn: #fbbf24; --bad: #f87171;
  --radius: 8px;
  --bar: #0f161f; --field: #0b1118; --nav: #0e151e; --mine: #0f2a2a; --on-accent: #04201c; --pending: #221d0c;
  --msg-bg: #0f1a28; --bad-bg: #2a1215; --ok-bg: #0d2219; --warn-bg: #2a2210; --bad-text: #fecaca; --ok-text: #bbf7d0; --warn-text: #fde68a;
  --danger-line: #7f1d1d; --danger-hover: #3a1212; --ok-line: #14532d; --warn-line: #713f12; --role-line: #1e3a5f;
  color-scheme: dark;
}
/* themes (phase 13): each person picks one on My account; Dark (graphite, as the OMNIARC badge) is the default; "auto" follows the device */
html[data-theme=light] {
  --bg: #f4f6f9; --panel: #ffffff; --panel2: #eef2f7; --line: #d3dae4; --text: #0f172a; --dim: #475569; --faint: #64748b;
  --accent: #0f766e; --accent2: #0d9488; --blue: #1d4ed8; --ok: #047857; --warn: #b45309; --bad: #b91c1c;
  --bar: #ffffff; --field: #ffffff; --nav: #f0f3f7; --mine: #dff3f1; --on-accent: #ffffff; --pending: #fff7dd;
  --msg-bg: #eaf1fe; --bad-bg: #fdeaea; --ok-bg: #e6f6ee; --warn-bg: #fff4dc; --bad-text: #7f1d1d; --ok-text: #14532d; --warn-text: #713f12;
  --danger-line: #f1a1a1; --danger-hover: #fdeaea; --ok-line: #86d4ae; --warn-line: #f0c674; --role-line: #a9c4ef;
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  html[data-theme=auto] {
    --bg: #f4f6f9; --panel: #ffffff; --panel2: #eef2f7; --line: #d3dae4; --text: #0f172a; --dim: #475569; --faint: #64748b;
    --accent: #0f766e; --accent2: #0d9488; --blue: #1d4ed8; --ok: #047857; --warn: #b45309; --bad: #b91c1c;
    --bar: #ffffff; --field: #ffffff; --nav: #f0f3f7; --mine: #dff3f1; --on-accent: #ffffff; --pending: #fff7dd;
    --msg-bg: #eaf1fe; --bad-bg: #fdeaea; --ok-bg: #e6f6ee; --warn-bg: #fff4dc; --bad-text: #7f1d1d; --ok-text: #14532d; --warn-text: #713f12;
    --danger-line: #f1a1a1; --danger-hover: #fdeaea; --ok-line: #86d4ae; --warn-line: #f0c674; --role-line: #a9c4ef;
    color-scheme: light;
  }
}
/* Black: true black with fine gray lines, white headings and light buttons; quiet and sharp (and easy on OLED screens) */
html[data-theme=black] {
  --bg: #000000; --panel: #0a0a0a; --panel2: #111111; --line: #232323; --text: #ededed; --dim: #a3a3a3; --faint: #6b6b6b;
  --accent: #fafafa; --accent2: #ededed; --blue: #60a5fa; --ok: #4ade80; --warn: #fbbf24; --bad: #f87171;
  --bar: #000000; --field: #050505; --nav: #000000; --mine: #161616; --on-accent: #000000; --pending: #1a1608;
  --msg-bg: #0d0d0d; --bad-bg: #1c0b0b; --ok-bg: #0a1a10; --warn-bg: #1c1608; --bad-text: #fca5a5; --ok-text: #bbf7d0; --warn-text: #fde68a;
  --danger-line: #5c1d1d; --danger-hover: #1c0b0b; --ok-line: #1f4d2e; --warn-line: #5c4512; --role-line: #2a3b52;
  --radius: 10px;
  color-scheme: dark;
}
html[data-theme=black] .card { border-color: var(--line); box-shadow: 0 1px 0 rgba(255, 255, 255, .03) inset; }
html[data-theme=black] h2 { letter-spacing: .08em; font-weight: 600; }
html[data-theme=black] .btn { border-color: #2e2e2e; }
html[data-theme=black] .btn:hover { border-color: #4a4a4a; }
html[data-theme=black] .btn.primary:hover { background: #ffffff; }
html[data-theme=black] input:focus, html[data-theme=black] select:focus, html[data-theme=black] textarea:focus { border-color: #5a5a5a; outline: none; }
html[data-theme=black] .nav button.on { box-shadow: inset 2px 0 0 #fafafa; border-radius: 0 6px 6px 0; }
html[data-theme=contrast] {
  --bg: #000000; --panel: #000000; --panel2: #0d0d0d; --line: #ffffff; --text: #ffffff; --dim: #f0f0f0; --faint: #d0d0d0;
  --accent: #00ffff; --accent2: #00e0e0; --blue: #8ab4ff; --ok: #3dff8b; --warn: #ffd84d; --bad: #ff7a7a;
  --bar: #000000; --field: #000000; --nav: #000000; --mine: #002b2b; --on-accent: #000000; --pending: #2b2400;
  --msg-bg: #000000; --bad-bg: #000000; --ok-bg: #000000; --warn-bg: #000000; --bad-text: #ff9a9a; --ok-text: #7dffb0; --warn-text: #ffe680;
  --danger-line: #ff7a7a; --danger-hover: #330000; --ok-line: #3dff8b; --warn-line: #ffd84d; --role-line: #8ab4ff;
  color-scheme: dark;
}
html[data-theme=contrast] .btn, html[data-theme=contrast] input, html[data-theme=contrast] select, html[data-theme=contrast] textarea { border-width: 2px; }
html[data-theme=contrast] :focus-visible { outline: 3px solid #ffff00; outline-offset: 2px; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.45 "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; }
a { color: var(--blue); }
h1, h2, h3 { font-weight: 650; margin: 0 0 10px; }
h1 { font-size: 20px; } h2 { font-size: 15px; letter-spacing: .04em; color: var(--accent); } h3 { font-size: 13px; color: var(--dim); letter-spacing: .05em; }
p { margin: 0 0 10px; }
.hidden { display: none !important; }
.dim { color: var(--dim); } .faint { color: var(--faint); } .small { font-size: 12px; }

/* top bar */
.bar { display: flex; align-items: center; gap: 12px; padding: 10px 18px; border-bottom: 1px solid var(--line); background: var(--bar); position: sticky; top: 0; z-index: 5; }
.bar img { width: 30px; height: 30px; }
.bar .brand { font-weight: 700; letter-spacing: .08em; }
.bar .brand small { display: block; font-weight: 400; letter-spacing: 0; color: var(--dim); font-size: 11px; }
.bar .sp { flex: 1; }
.bar .who { color: var(--dim); font-size: 13px; }

/* cards and forms */
.wrap { max-width: 1100px; margin: 0 auto; padding: 18px; }
.narrow { max-width: 440px; margin: 40px auto; padding: 0 16px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.logo { text-align: center; margin-bottom: 18px; }
.logo img { width: 64px; height: 64px; }
.logo .name { font-size: 26px; font-weight: 750; letter-spacing: .14em; margin-top: 6px; }
.logo .exp { color: var(--dim); font-size: 12px; }
.logo .srv { color: var(--accent); margin-top: 6px; font-weight: 600; }
label.f { display: block; margin-bottom: 12px; }
label.f span { display: block; font-size: 12px; color: var(--dim); margin-bottom: 4px; }
input[type=text], input[type=password], input[type=number], input[type=email], input[type=url], select {
  width: 100%; padding: 9px 10px; background: var(--field); border: 1px solid var(--line); border-radius: 6px; color: var(--text); font: inherit;
}
input:focus, select:focus { outline: 2px solid var(--accent2); outline-offset: 0; border-color: var(--accent2); }
label.c { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; color: var(--dim); }
.row { display: flex; gap: 12px; flex-wrap: wrap; } .row > * { flex: 1 1 180px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; border-radius: 6px; border: 1px solid var(--line);
  background: var(--panel2); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; min-height: 36px; }
.btn:hover { border-color: var(--accent2); }
.btn.primary { background: var(--accent2); border-color: var(--accent2); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent); }
.btn.danger { border-color: var(--danger-line); color: var(--bad-text); }
.btn.danger:hover { background: var(--danger-hover); }
.btn.small { min-height: 28px; padding: 3px 9px; font-size: 12px; }
.btn:disabled { opacity: .5; cursor: default; }
.btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.full { width: 100%; }
.msg { padding: 9px 11px; border-radius: 6px; margin: 10px 0 0; border-left: 3px solid var(--blue); background: var(--msg-bg); }
.msg.bad { border-left-color: var(--bad); background: var(--bad-bg); color: var(--bad-text); }
.msg.ok { border-left-color: var(--ok); background: var(--ok-bg); color: var(--ok-text); }
.msg.warn { border-left-color: var(--warn); background: var(--warn-bg); color: var(--warn-text); }
.links { text-align: center; margin-top: 14px; font-size: 13px; }
.links a { margin: 0 8px; }
.foot { text-align: center; color: var(--faint); font-size: 12px; margin: 22px 0; }

/* admin layout */
.layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); min-height: calc(100vh - 51px); }
.nav { border-right: 1px solid var(--line); padding: 14px 10px; background: var(--nav); }
.nav button { display: block; width: 100%; text-align: left; padding: 8px 10px; margin-bottom: 2px; border-radius: 6px; border: 0; background: transparent;
  color: var(--text); font: inherit; cursor: pointer; }
.nav button:hover { background: var(--panel2); }
.nav button.on { background: var(--panel2); color: var(--accent); font-weight: 650; }
.nav button.soon { color: var(--faint); }
.nav button .badge { float: right; background: var(--warn); color: #1c1606; border-radius: 9px; padding: 0 7px; font-size: 11px; font-weight: 700; }
.nav h3 { margin: 16px 10px 6px; font-size: 11px; }
/* menu groups: a heading that folds its sections away; the group holding the open section is marked and always open */
.nav-group { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 6px; }
.nav .nav-head { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--dim); padding: 6px 10px;
  text-transform: uppercase; }
.nav .nav-head:hover { color: var(--text); background: transparent; }
.nav-group.holds .nav-head { color: var(--accent); }
.nav-chev { width: 10px; display: inline-block; font-size: 10px; }
.nav-n { margin-left: auto; font-weight: 600; color: var(--faint); font-size: 10px; letter-spacing: 0; }
.nav-items { padding-left: 8px; border-left: 2px solid var(--line); margin-left: 14px; }
.nav-group.holds .nav-items { border-left-color: var(--accent); }
.nav-group.shut .nav-items { display: none; }
.nav .nav-head .badge { margin-left: 6px; }
.main { padding: 20px 24px; min-width: 0; }

/* tables */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--dim); font-size: 12px; font-weight: 600; }
tr.pending td { background: var(--pending); }
.tag { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 11px; font-weight: 700; border: 1px solid var(--line); }
.tag.ok { color: var(--ok); border-color: var(--ok-line); } .tag.bad { color: var(--bad); border-color: var(--danger-line); } .tag.warn { color: var(--warn); border-color: var(--warn-line); }
.tag.role { color: var(--blue); border-color: var(--role-line); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--faint); margin-right: 6px; }
.dot.ok { background: var(--ok); }
.dot.bad { background: var(--bad); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.stat .n { font-size: 26px; font-weight: 700; } .stat .l { color: var(--dim); font-size: 12px; }
dl.kv { display: grid; grid-template-columns: 170px 1fr; gap: 6px 14px; margin: 0; }
dl.kv dt { color: var(--dim); } dl.kv dd { margin: 0; word-break: break-word; }
.mono { font-family: Consolas, "Cascadia Mono", monospace; font-size: 12px; }
.tablewrap { overflow-x: auto; }

@media (max-width: 760px) {
  .layout { grid-template-columns: 1fr; }
  .nav { border-right: 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 4px; padding: 8px; }
  .nav button { width: auto; white-space: nowrap; flex: 0 0 auto; } .nav h3 { display: none; }
  /* a phone: one scrolling row of every section, no groups */
  .nav-group { display: contents; } .nav .nav-head { display: none; } .nav-items, .nav-group.shut .nav-items { display: contents; }
  /* a table marked .cards becomes one card per row, each cell with its label */
  table.cards thead { display: none; }
  table.cards tr { display: block; border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; margin-bottom: 10px; }
  table.cards td { display: flex; gap: 10px; border: 0; padding: 4px 0; }
  table.cards td[data-l]::before { content: attr(data-l); color: var(--dim); font-size: 12px; min-width: 96px; }
  table.cards td.btns { flex-wrap: wrap; padding-top: 8px; }
  .main { padding: 14px; }
  dl.kv { grid-template-columns: 1fr; } dl.kv dt { margin-top: 6px; }
  .bar .who { display: none; }
}

/* trust page */
.trustwrap { max-width: 760px; }
.fp { background: var(--field); border: 1px solid var(--line); border-radius: 6px; padding: 10px; word-break: break-all; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.tabs button { padding: 8px 14px; border-radius: 18px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; cursor: pointer; }
.tabs button.on { background: var(--accent2); border-color: var(--accent2); color: var(--on-accent); font-weight: 650; }
.card ol { margin: 12px 0 8px 20px; padding: 0; } .card ol li { margin-bottom: 6px; }
a.btn { text-decoration: none; }

textarea.ta, label.f textarea, .dlg textarea { width: 100%; padding: 9px 10px; background: var(--field); border: 1px solid var(--line); border-radius: 6px; color: var(--text); font: inherit; resize: vertical; }

/* ---- OMNIARC Chat Web */
.chat-card { padding: 0; overflow: hidden; }
.uc { display: grid; grid-template-columns: 260px 1fr; height: calc(100vh - 150px); min-height: 440px; }
.uc-list { border-right: 1px solid var(--line); overflow-y: auto; background: var(--panel); padding: 6px 0 12px; }
.uc-sec { font-size: 11px; letter-spacing: .08em; color: var(--faint); padding: 12px 14px 4px; font-weight: 700; }
.uc-pad { padding: 2px 14px; margin: 0; }
.uc-item { display: flex; align-items: center; gap: 7px; width: 100%; background: none; border: 0; color: var(--text); text-align: left; padding: 7px 14px; font: inherit; cursor: pointer; }
.uc-item:hover { background: var(--panel2); }
.uc-item.on { background: var(--panel2); box-shadow: inset 3px 0 0 var(--accent); }
.uc-item .badge { margin-left: auto; }
.uc-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uc-tag { font-size: 10px; font-weight: 700; letter-spacing: .04em; padding: 1px 5px; border-radius: 4px; background: var(--line); color: var(--dim); flex: none; }
.uc-tag.uc-tak { background: #12324a; color: #93c5fd; }
.uc-tag.uc-xmpp { background: #2a1f45; color: #c4b5fd; }
.uc-tag.uc-irc { background: #3a2a12; color: #fcd34d; }
.uc-tag.uc-web { background: #0f3a33; color: #5eead4; }
.uc-conv { display: flex; flex-direction: column; min-width: 0; background: var(--bg); }
.uc-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--panel); }
.uc-back { display: none; }
.uc-msgs { flex: 1; overflow-y: auto; padding: 10px 14px; }
.uc-empty { margin: 30px auto; max-width: 460px; text-align: center; }
.uc-day { text-align: center; color: var(--faint); font-size: 12px; margin: 14px 0 6px; }
.uc-m { margin: 6px 0; padding: 6px 10px; border-radius: 8px; background: var(--panel); max-width: 82%; }
.uc-m.mine { margin-left: auto; background: var(--mine); }
.uc-meta { font-size: 12px; color: var(--dim); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.uc-text { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 2px; }
.uc-older { justify-content: center; }
.uc-send { display: flex; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line); background: var(--panel); }
.uc-send textarea { flex: 1; resize: none; padding: 9px 10px; background: var(--field); border: 1px solid var(--line); border-radius: 6px; color: var(--text); font: inherit; min-height: 40px; }
.uc-conv > .msg { margin: 0 14px 10px; }
@media (max-width: 760px) {
  .uc { grid-template-columns: 1fr; height: calc(100vh - 120px); }
  .uc .uc-conv { display: none; }
  .uc.open .uc-list { display: none; }
  .uc.open .uc-conv { display: flex; }
  .uc-back { display: inline-flex; }
  .uc-m { max-width: 92%; }
}
.apps-head { font-size: 14px; letter-spacing: .06em; color: var(--accent); margin: 26px 0 4px; }
.uc-via { font-size: 11px; color: var(--accent); }

/* ---- the map (map.js) */
.bmap { position: relative; overflow: hidden; background: #0a1520; border: 1px solid var(--line); border-radius: 10px; touch-action: none; user-select: none; -webkit-user-select: none; }
.bmap canvas { display: block; width: 100%; height: 100%; cursor: crosshair; outline: none; }
.bmap-ctl { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; gap: 4px; }
.bmap-ctl button { width: 34px; height: 34px; border-radius: 7px; border: 1px solid #334155; background: rgba(11,15,20,.88); color: #e2e8f0; font: 600 17px system-ui, sans-serif; cursor: pointer; padding: 0; }
.bmap-ctl button:hover { border-color: var(--accent); }
.bmap-opt { position: absolute; top: 8px; right: 8px; display: flex; gap: 10px; background: rgba(11,15,20,.85); border: 1px solid #334155; border-radius: 7px; padding: 4px 8px; font-size: 11.5px; color: #cbd5e1; }
.bmap-opt label { display: flex; align-items: center; gap: 4px; cursor: pointer; }
.bmap-opt:empty { display: none; }
.bmap-grid { position: absolute; left: 8px; bottom: 8px; background: rgba(11,15,20,.85); border: 1px solid #334155; border-radius: 6px; padding: 3px 8px; font: 600 12px ui-monospace, Consolas, monospace; color: #e2e8f0; min-height: 1.4em; }
.bmap-grid:empty { display: none; }
.bmap-attr { position: absolute; right: 6px; bottom: 6px; font-size: 10px; color: #94a3b8; background: rgba(11,15,20,.7); padding: 1px 5px; border-radius: 4px; pointer-events: none; }
.bmap-attr.warn { color: #fcd34d; }
.bmap-pop { position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%); width: min(92%, 400px); background: rgba(15,21,29,.97); border: 1px solid var(--accent); border-radius: 9px; padding: 9px 11px; font-size: 12.5px; color: #e2e8f0; box-shadow: 0 8px 28px rgba(0,0,0,.55); }
.bmap-pop .g { font: 700 13px ui-monospace, Consolas, monospace; color: #fff; }
.bmap-pop .k { color: #94a3b8; font-size: 11px; }
.bmap-pop .b { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.bmap-pop label.f { margin: 6px 0 0; }
.bmap-pop input, .bmap-pop select, .bmap-pop textarea { font-size: 12.5px; }
.bmap-page { display: grid; grid-template-columns: 1fr 300px; gap: 10px; height: calc(100vh - 170px); min-height: 420px; }
.bmap-page .bmap { min-height: 320px; }
.bmap-list { overflow: auto; display: flex; flex-direction: column; gap: 4px; min-height: 0; }
.bmap-row { display: grid; grid-template-columns: 12px 1fr; gap: 0 8px; text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: 7px; padding: 6px 8px; color: var(--text); font: inherit; cursor: pointer; }
.bmap-row .dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 4px; grid-row: span 3; }
.bmap-row .nm { font-weight: 600; overflow-wrap: anywhere; }
.bmap-row .k { color: var(--faint); font-size: 11px; }
.bmap-row .g { font: 600 11.5px ui-monospace, Consolas, monospace; }
.bmap-row.stale { opacity: .6; }
.dot.aff-f { background: #3b82f6; } .dot.aff-h { background: #ef4444; } .dot.aff-n { background: #22c55e; } .dot.aff-u { background: #eab308; } .dot.aff-p { background: #e5e7eb; }
.tabs { display: flex; gap: 6px; margin: 0 0 10px; }
.tabs button { background: var(--panel); border: 1px solid var(--line); color: var(--dim); border-radius: 7px; padding: 7px 16px; font: inherit; font-weight: 600; cursor: pointer; }
.tabs button.on { color: var(--text); border-color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }
@media (max-width: 760px) {
  .bmap-page { grid-template-columns: 1fr; grid-template-rows: minmax(320px, 62vh) auto; height: auto; }
}
.mk-people { max-height: 130px; overflow-y: auto; border: 1px solid var(--line); border-radius: 6px; padding: 4px 8px; margin-top: 4px; }
label.chk { display: flex; gap: 6px; align-items: center; font-size: 12.5px; padding: 2px 0; cursor: pointer; }
.uc-sec-row { display: flex; align-items: center; justify-content: space-between; padding-right: 10px; }
.uc-new { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 14px 8px; }
.uc-new input { flex: 1 1 120px; min-width: 0; padding: 6px 8px; background: var(--field); border: 1px solid var(--line); border-radius: 6px; color: var(--text); font: inherit; }
.uc-new select { padding: 6px; background: var(--field); border: 1px solid var(--line); border-radius: 6px; color: var(--text); font: inherit; }
.uc-new .msg { flex-basis: 100%; margin: 0; }

/* video (video.js) */
.vplay video { width: 100%; max-height: 60vh; background: #000; border-radius: 8px; display: block; }
.vstage { position: relative; }
.vover { position: absolute; left: 0; top: 0; pointer-events: none; }
.vsimctl { margin: 4px 0; }
.mpfind { margin: 8px 0; }
.mpfind input { flex: 1 1 320px; min-width: 0; }
.plfound { display: grid; gap: 4px; margin: 6px 0 10px; }
.plrow { text-align: left; background: var(--panel, transparent); border: 1px solid var(--line); border-radius: 4px; padding: 6px 10px; color: inherit; cursor: pointer; font: inherit; }
.plrow:hover { border-color: var(--accent); }
.simtilt { display: inline-flex; align-items: center; gap: 8px; }
.simtilt input { width: 180px; }
.vwatch { margin-top: 8px; }
.vwform { display: flex; gap: 8px; flex-wrap: wrap; }
.vwform .vwfind { flex: 1 1 240px; min-width: 0; }
.vwform .vwdetail { flex: 0 1 auto; min-width: 0; }
.vwsay { margin: 6px 0 0; min-height: 1.4em; }
.vwsay.seen { color: var(--accent); }
.vwsay.bad { color: var(--bad); }
.vsights { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.vsight { display: flex; flex-direction: column; gap: 4px; color: inherit; text-decoration: none; }
.vsight img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; background: #000; }
.vrow { padding: 10px 0; border-top: 1px solid var(--line, rgba(127,127,127,.25)); }
.vrow .row { justify-content: space-between; align-items: center; }
.vcell:empty { display: none; }
.bmap-opt select { background: transparent; color: inherit; border: 0; font: inherit; cursor: pointer; }
.bmap-opt select option { background: #0f161f; color: #e2e8f0; }
.vsteer { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; align-items: flex-start; }
.vsteer:empty { display: none; }
.vspad { display: grid; grid-template-columns: repeat(3, 44px); gap: 4px; }
.vspad .btn { min-height: 40px; font-size: 18px; padding: 0; touch-action: none; user-select: none; }
.vsside { display: flex; flex-direction: column; gap: 6px; }
.vsside [data-hold] { touch-action: none; user-select: none; }

/* dialogs (reports) */
.dlg-back { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 50; display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 24px 16px; }
.dlg { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; width: 100%; max-width: 560px; }
.dlg-x { position: absolute; top: 8px; right: 8px; background: none; border: 0; color: var(--dim); font-size: 18px; cursor: pointer; padding: 6px 10px; }
.dlg .btns { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.btns .sp { flex: 1; }
.rp-forms { display: flex; flex-direction: column; gap: 8px; }
.rp-forms .btn { text-align: left; }
.rp-fields .f { display: block; margin-bottom: 10px; }
.rp-fields textarea, .rp-fields input, .rp-fields select { width: 100%; }
label.f span.rp-row { display: flex; gap: 6px; align-items: center; margin: 0; font-size: inherit; color: inherit; }
.rp-row input { flex: 1; min-width: 0; }
.rp-prev pre { white-space: pre-wrap; word-break: break-word; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 10px; font-size: 12px; max-height: 240px; overflow: auto; }
.rp-to { display: flex; flex-direction: column; gap: 6px; max-height: 50vh; overflow-y: auto; }
.uc-tag.uc-dc { background: #3b1d2e; color: #f9a8d4; }
.bar > img.own-logo { width: auto; max-width: 120px; object-fit: contain; }
.logo > img.own-logo { width: auto; max-width: 220px; height: 72px; object-fit: contain; }
.br-logo { max-width: 260px; max-height: 120px; background: var(--panel2); border: 1px solid var(--line); border-radius: 6px; padding: 8px; }
.uc-tag.uc-nexus { background: #1e293b; color: #a5b4fc; }
/* the AI conversation */
.ai-convo { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; max-height: 50vh; overflow-y: auto; }
.ai-line { display: grid; grid-template-columns: 70px 1fr; gap: 10px; padding: 8px 10px; border-radius: 6px; background: var(--panel2); white-space: pre-wrap; word-break: break-word; }
.ai-line .ai-who { font-size: 11px; font-weight: 700; letter-spacing: .05em; color: var(--dim); text-transform: uppercase; }
.ai-line.ai-ai .ai-who { color: var(--accent); }
.ai-line.ai-tool { background: transparent; border: 1px dashed var(--line); font-size: 12px; color: var(--dim); }
.ai-line.ai-problem { background: var(--bad-bg); color: var(--bad-text); }
.ai-guide summary { cursor: pointer; list-style: none; }
.ai-guide summary::-webkit-details-marker { display: none; }
.ai-guide summary h2 { display: inline; }
.ai-steps { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ai-step { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; }
.ai-n { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--dim); }
.ai-step.done .ai-n { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok); }
.ai-step .btns { margin-top: 6px; }
/* the voice console */
.vc-ptt { touch-action: none; user-select: none; -webkit-user-select: none; }
.vc-ptt.on { background: var(--bad); border-color: var(--bad); color: #fff; }
.vc-table input[type=range] { width: 140px; }
.vc-who { min-width: 120px; }

/* Neural Nexus enrollment code */
.nx-code { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-top: 8px; }
.nx-code-big code { display: inline-block; font-size: 28px; letter-spacing: 4px; padding: 6px 0; font-weight: 600; }

/* Connectors: the kinds to add */
.cx-kinds { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.cx-kind { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.cx-kind .btn { align-self: flex-start; margin-top: auto; }
.cx-sub { font-size: 13px; margin: 14px 0 4px; color: var(--dim, inherit); text-transform: uppercase; letter-spacing: .04em; }
.cx-hook { word-break: break-all; }
.cx-log td { vertical-align: top; }
.cx-log td:last-child { word-break: break-word; }
.ai-local { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; margin: 8px 0; }
.ai-found > div { border-top: 1px solid var(--line); padding: 6px 0; }
.ai-found .btn { margin: 4px 4px 0 0; }

/* Network planner */
.pl-bar select { width: auto; min-width: 220px; max-width: 360px; flex: 0 1 auto; }
.pl-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 12px; align-items: start; }
.pl-stage { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.pl-canvas { overflow: auto; border: 1px solid var(--line); border-radius: 12px; max-height: 75vh; background-color: var(--panel);
  background-image: radial-gradient(circle, var(--line) 1.1px, transparent 1.4px); background-size: 22px 22px; }
.pl-svg { display: block; user-select: none; }
.pl-net { cursor: ns-resize; touch-action: none; }
.pl-bus { stroke-width: 5; stroke-linecap: round; transition: stroke-width .15s; }
.pl-net:hover .pl-bus, .pl-net.sel .pl-bus { stroke-width: 7; }
.pl-net.pl-hot .pl-bus { stroke-width: 9; filter: drop-shadow(0 0 6px currentColor); }
.pl-chip { fill-opacity: .13; stroke-width: 1.2; }
.pl-net.sel .pl-chip { fill-opacity: .25; stroke-width: 2; }
.pl-nlabel { font: 600 12px system-ui, sans-serif; }
.pl-ncidr { font: 500 11.5px Consolas, "Cascadia Mono", monospace; opacity: .85; }
.pl-joint { stroke: var(--panel); stroke-width: 2; }
.pl-ip { font: 11px Consolas, "Cascadia Mono", monospace; fill: var(--text); paint-order: stroke; stroke: var(--panel); stroke-width: 4px; stroke-linejoin: round; }
.pl-link { fill: none; stroke: var(--dim); stroke-width: 1.8; stroke-dasharray: 6 4; }
.pl-link-ethernet, .pl-link-fiber { stroke-dasharray: none; }
.pl-link-radio, .pl-link-wifi, .pl-link-lte, .pl-link-satellite { stroke-dasharray: 2 5; stroke-linecap: round; stroke-width: 2.4; }
.pl-ltext { fill: var(--dim); }
.pl-dev { cursor: grab; touch-action: none; }
.pl-dev:active { cursor: grabbing; }
.pl-card { fill: var(--panel2); stroke: var(--line); stroke-width: 1.5; transition: stroke .15s; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .18)); }
.pl-dev:hover .pl-card { stroke: var(--dim); }
.pl-tile { fill-opacity: .16; }
.pl-dev.omniarc .pl-card { stroke: var(--accent); stroke-width: 2.5; }
.pl-dev.warn .pl-card { stroke: var(--warn); }
.pl-dev.bad .pl-card { stroke: var(--bad); stroke-width: 2.5; }
.pl-dev.sel .pl-card { stroke: var(--blue); stroke-width: 3; }
.pl-dev.pl-hot .pl-card { stroke: var(--accent); stroke-width: 3; filter: drop-shadow(0 0 8px var(--accent)); }
.pl-flag circle { stroke: var(--panel); stroke-width: 2; }
.pl-flag.bad circle { fill: var(--bad); } .pl-flag.warn circle { fill: var(--warn); }
.pl-flag text { font: 700 11px system-ui, sans-serif; fill: #111; }
.pl-dname { font: 600 13px system-ui, sans-serif; fill: var(--text); }
.pl-dev.omniarc .pl-dname { fill: var(--accent); }
.pl-dkind { font: 11px system-ui, sans-serif; fill: var(--dim); }
.pl-port { cursor: crosshair; opacity: 0; transition: opacity .15s, transform .15s; touch-action: none; }
.pl-port circle { fill: var(--accent); stroke: var(--panel); stroke-width: 2; }
.pl-port path { stroke: var(--on-accent); stroke-width: 2; stroke-linecap: round; }
.pl-dev:hover .pl-port, .pl-dev.sel .pl-port { opacity: 1; }
.pl-port:hover circle { r: 11; }
.pl-wiring .pl-dev { cursor: crosshair; }
.pl-wire { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-dasharray: 8 6; pointer-events: none; animation: pl-flow .6s linear infinite; }
@keyframes pl-flow { to { stroke-dashoffset: -14; } }
.pl-parts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.pl-parts-h { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); margin: 0 2px 0 6px; }
.pl-parts-h:first-child { margin-left: 0; }
.pl-part { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px 4px 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel2);
  color: var(--text); font: 12px system-ui, sans-serif; cursor: grab; touch-action: none; transition: border-color .15s, transform .15s; }
.pl-part:hover { border-color: var(--accent); transform: translateY(-1px); }
.pl-part:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pl-ico { flex: 0 0 auto; display: inline-block; vertical-align: -3px; }
.pl-ghost { position: fixed; z-index: 60; pointer-events: none; display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px;
  background: var(--panel2); border: 1px solid var(--accent); color: var(--text); font: 600 12px system-ui, sans-serif; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.pl-tip { position: fixed; z-index: 61; pointer-events: none; max-width: 300px; padding: 7px 10px; border-radius: 8px; font: 12.5px/1.35 system-ui, sans-serif;
  background: var(--panel2); color: var(--text); border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(0, 0, 0, .3); }
.pl-tip.ok { border-color: var(--ok); } .pl-tip.ask { border-color: var(--warn); } .pl-tip.none { color: var(--dim); }
.pl-menu { position: fixed; z-index: 62; width: min(380px, calc(100vw - 16px)); padding: 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .4); display: flex; flex-direction: column; gap: 6px; animation: pl-pop .14s ease-out; }
.pl-menu-h { font-weight: 700; font-size: 14px; }
.pl-menu-note { margin: 0; font-size: 12.5px; color: var(--dim); }
.pl-opt { text-align: left; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel2); color: var(--text); font: 13px/1.35 system-ui, sans-serif; cursor: pointer; }
.pl-opt:hover, .pl-opt:focus-visible { border-color: var(--accent); outline: none; }
.pl-opt.best { border-color: var(--accent); }
.pl-sug { display: inline-block; margin-right: 6px; padding: 1px 6px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; vertical-align: 1px; }
.pl-toast { position: fixed; z-index: 62; right: 18px; bottom: 18px; max-width: min(560px, calc(100vw - 36px)); display: flex; gap: 8px; align-items: center; padding: 10px 12px;
  border-radius: 12px; background: var(--panel2); border: 1px solid var(--ok-line); box-shadow: 0 10px 28px rgba(0, 0, 0, .35); animation: pl-pop .18s ease-out; }
.pl-toast-t { flex: 1 1 auto; font-size: 13px; min-width: 0; }
.pl-x { background: none; border: 0; color: var(--dim); font-size: 18px; cursor: pointer; padding: 0 4px; }
@keyframes pl-pop { from { opacity: 0; transform: translateY(6px) scale(.98); } }
.pl-howto { margin: 8px 0 0; padding-left: 18px; font-size: 12.5px; color: var(--dim); }
.pl-howto li { margin-bottom: 4px; }
.pl-howto b { display: inline-block; width: 16px; height: 16px; line-height: 15px; text-align: center; border-radius: 50%; background: var(--accent); color: var(--on-accent); }
.pl-form h3 .pl-ico { vertical-align: -3px; }
@media (prefers-reduced-motion: reduce) { .pl-wire, .pl-menu, .pl-toast { animation: none; } .pl-part, .pl-port, .pl-bus { transition: none; } }
.pl-side h3 { font-size: 12px; margin: 14px 0 6px; text-transform: uppercase; letter-spacing: .05em; color: var(--dim); }
.pl-side .row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.pl-side .row input[type=text] { flex: 1 1 110px; min-width: 0; }
.pl-if { border-top: 1px solid var(--line); padding: 6px 0; }
.pl-row { display: flex; gap: 6px; align-items: center; justify-content: space-between; padding: 3px 0; font-size: 13px; }
.pl-issues { margin: 0; padding-left: 18px; font-size: 13px; }
.pl-issues li { cursor: pointer; margin-bottom: 4px; }
.pl-issues li.bad { color: var(--bad); }
.pl-issues li.warn { color: var(--warn); }
.pl-convo { max-height: 260px; overflow: auto; }
@media (max-width: 1000px) { .pl-wrap { grid-template-columns: 1fr; } }
.pl-side textarea { width: 100%; box-sizing: border-box; background: var(--field); color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; font: inherit; }
.pl-side .row .btn { flex: 0 0 auto; }
.pl-side select { max-width: 100%; }
/* client page: the "Sign in from OMNIARC Chat" QR code and its link */
.qrrow { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.qrrow img.qr { width: 184px; height: 184px; background: #fff; border-radius: 6px; flex: none; }
.qrlink { flex: 1 1 220px; min-width: 0; }
.qrlink .mono { word-break: break-all; }
/* a caller's page (Incident Commander): large, plain, for a phone in a hard moment */
.callerwrap { max-width: 640px; }
.callerwrap .btn.big { font-size: 18px; padding: 14px 22px; width: 100%; }
.callerstate { font-size: 16px; }
.callerhelp { font-size: 17px; font-weight: 600; color: var(--ok); }
.callermap { height: 280px; }
.callerchat { max-height: 320px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.callerline { background: var(--panel2); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 10px; overflow-wrap: anywhere; }
.callerline.mine { background: var(--mine); align-self: flex-end; }
.callerline .who { font-weight: 600; }
.callersay { display: flex; gap: 8px; align-items: flex-end; }
.callersay textarea { flex: 1; min-width: 0; font-size: 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Incidents in the admin panel */
.icchat { max-height: 300px; overflow-y: auto; margin-bottom: 10px; }
.icline { padding: 4px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.icmade { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; margin-bottom: 12px; background: var(--panel2); }
.icmade textarea { width: 100%; }
.icqr { width: 184px; height: 184px; background: #fff; border-radius: 6px; margin-top: 8px; }
/* the after-action review */
.aarctl { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.aarctl input[type=range] { flex: 1 1 260px; min-width: 0; }
.aarctl select { width: auto; flex: 0 0 auto; }
.aarmap { height: 420px; }
.aargrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 0 16px; }
.aargrid > section { min-width: 0; }
.aarlist { max-height: 320px; overflow-y: auto; }
.aarvid video { width: 100%; max-height: 360px; background: #000; border-radius: 6px; margin-top: 8px; }
.aarlist .icline .btn { padding: 2px 8px; min-height: 0; }
/* IC2S mission sets */
.chip { display: inline-block; padding: 1px 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel2); font-size: 12px; white-space: nowrap; }
.chip.ok { border-color: var(--ok-line); background: var(--ok-bg); color: var(--ok-text); }
.chip.warn { border-color: var(--warn-line); background: var(--warn-bg); color: var(--warn-text); }
.chip.bad { border-color: var(--danger-line); background: var(--bad-bg); color: var(--bad-text); }
.st-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
@media (max-width: 1000px) { .st-wrap { grid-template-columns: minmax(0, 1fr); } }
.st-main, .st-side { min-width: 0; }
.st-flow { width: 100%; max-width: 760px; height: auto; display: block; }
.st-phase { fill: var(--panel2); stroke: var(--accent2); }
.st-ptext { fill: var(--text); font: 600 14px system-ui, sans-serif; }
.st-step { fill: var(--panel); stroke: var(--line); stroke-width: 1.5; }
.st-step.st-if { stroke-dasharray: 6 4; }
.st-dec { fill: var(--warn-bg); stroke: var(--warn); stroke-width: 1.5; }
.st-end { fill: var(--panel2); stroke: var(--line); }
.st-text { fill: var(--text); font: 13px system-ui, sans-serif; }
.st-role { fill: var(--accent); font: 600 11px system-ui, sans-serif; }
.st-when, .st-empty { fill: var(--dim); font: italic 11px system-ui, sans-serif; }
.st-yes { fill: var(--ok); font: 600 12px system-ui, sans-serif; }
.st-no { fill: var(--bad); font: 600 12px system-ui, sans-serif; }
.st-arrow { stroke: var(--dim); stroke-width: 1.5; }
.st-head { fill: var(--dim); }
.st-list li { margin: 6px 0; }
.st-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 4px 0; }
.st-row .sp { flex: 1; }
.st-steprow { border-top: 1px solid var(--line); }
.st-phasebox { border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 10px; margin-bottom: 10px; }
.st-stepform { background: var(--panel2); border-radius: var(--radius); padding: 10px; margin: 6px 0; }
.st-stepform .row > .f { flex: 1 1 160px; }
.st-issues li.problem { color: var(--bad); }
.st-issues li.note { color: var(--dim); }
.st-convo { max-height: 340px; overflow: auto; }
.st-attach { cursor: pointer; }
.st-side textarea { width: 100%; }
.st-row select { width: auto; flex: 0 1 220px; }
/* a mission set at work on an incident */
.gd-step { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.gd-step .gd-text { flex: 1 1 240px; min-width: 0; }
.gd-step.gd-done .gd-text { color: var(--dim); text-decoration: line-through; }
.gd-step.gd-mine { background: var(--mine); border-radius: 6px; padding-left: 6px; }
.gd-phases { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 10px; }
.gd-phases .chip.on { border-color: var(--accent2); background: var(--accent2); color: var(--on-accent); }
.gd-preview { background: var(--panel2); border-radius: var(--radius); padding: 10px 12px; margin: 8px 0; }
.watchmain { max-width: 1400px; margin: 0 auto; }
.vwlist { margin: 4px 0 8px; padding-left: 18px; }
.vwlist .ok { color: var(--ok); } .vwlist .bad { color: var(--bad); }
.vwmark { align-self: center; }

/* the map beside a video (0.51) */
.vtools { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 6px; }
.vsplit { display: flex; gap: 0; align-items: stretch; }
.vsplit .vleft { flex: 1 1 100%; min-width: 0; }
.vsplit.on .vleft { flex: 0 0 55%; }
.vsplit .vright { flex: 1 1 0; min-width: 0; display: flex; }
.vsplit .vright .vmaphost { flex: 1; min-height: 360px; height: 100%; }
.vdiv { flex: 0 0 10px; cursor: col-resize; position: relative; touch-action: none; }
.vdiv::after { content: ""; position: absolute; left: 4px; top: 30%; bottom: 30%; width: 2px; border-radius: 2px; background: var(--line); }
.vdiv:hover::after { background: var(--accent, #39d6c7); }
@media (max-width: 900px) {
  .vsplit.on { flex-direction: column; }
  .vsplit.on .vleft { flex-basis: auto !important; }
  .vdiv { display: none; }
  .vsplit .vright .vmaphost { min-height: 50vh; }
}

/* IC2S searches (0.52) */
.srtask { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
.srgrid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: start; }
@media (max-width: 760px) { .srgrid { grid-template-columns: 1fr; } }
.srsvg { background: #0a1520; border: 1px solid var(--line); border-radius: 8px; max-width: 100%; height: auto; }
.srsvg .srarea { fill: rgba(57, 214, 199, 0.08); stroke: #39d6c7; stroke-width: 1.5; stroke-dasharray: 6 4; }
.srsvg .srpath { fill: none; stroke: rgba(165, 243, 233, 0.8); stroke-width: 1; }
.srsvg .srplace { fill: #39d6c7; }
.srsvg .srm { fill: #facc15; stroke: #05090e; stroke-width: 1.5; } .srsvg .srm.confirmed { fill: #db2777; } .srsvg .srm.rejected { fill: #64748b; }
.srmatch { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px dashed var(--line); }
.srmatch img { width: 160px; max-width: 40vw; border-radius: 6px; border: 1px solid var(--line); }
.srmatch.rejected { opacity: 0.6; }
.chip.bad { border-color: var(--danger-line); color: var(--bad); }
.srtask .chip.on { border-color: var(--accent2); color: var(--accent); }
.srmatch .warn { color: var(--warn); }
.srdrone { margin-top: 10px; padding-top: 6px; border-top: 1px dashed var(--line); }
.fldrones { display: grid; gap: 6px; margin: 6px 0 10px; }
.fldrone { padding: 6px 8px; border: 1px solid var(--line); border-radius: 4px; }
.flconfirm { margin: 6px 0; padding: 8px 10px; border: 1px solid var(--bad); border-radius: 4px; }
.wsearch { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 0 0 10px; }
.wsearch .wmatch { display: flex; gap: 10px; align-items: center; flex-basis: 100%; padding: 8px; border: 1px solid var(--danger-line); border-radius: 8px; }
.wsearch .wmatch img { width: 140px; max-width: 35vw; border-radius: 6px; }
.fsgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 16px; }
.fsnum { display: flex; align-items: center; gap: 8px; } .fsnum input { flex: 1; min-width: 0; }
.fsunit, .fsusual { font-style: normal; color: var(--faint, #8a94a3); font-size: 13px; white-space: nowrap; } .fsusual { display: block; margin-top: 2px; }
