/* ===== W196 线束连接仿真台 · 科技感 UI ===== */
:root {
  --bg: #0a0e14;
  --panel: rgba(21, 27, 38, 0.92);
  --panel2: rgba(30, 39, 53, 0.85);
  --line: #2a3444;
  --txt: #d7dee8;
  --dim: #8b97a6;
  --acc: #2f8f6b;
  --acc2: #3aa0ff;
  --warn: #d9a13c;
  --err: #d95c4a;
  --ok: #46b37a;
  --glow: 0 0 14px rgba(58, 160, 255, .25);
}
* { box-sizing: border-box; margin: 0; padding: 0; user-select: none; }
html, body { height: 100%; overflow: hidden; }
body {
  font: 14px/1.5 "Segoe UI", "Microsoft YaHei", sans-serif;
  background: var(--bg); color: var(--txt);
  display: flex; flex-direction: column;
}

/* ── 顶栏 ── */
#topbar {
  display: flex; align-items: center; gap: 16px;
  padding: 0 18px; height: 54px; flex: none;
  background: linear-gradient(180deg, rgba(28,35,48,.95), rgba(18,23,32,.95));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
  position: relative; z-index: 20;
}
#topbar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, #3aa0ff88 30%, #2f8f6b88 70%, transparent);
}
#topbar .logo { font-size: 17px; color: #f4f7fb; display: flex; align-items: center; gap: 12px; min-width: 0; position: relative; padding-left: 14px; }
#topbar .logo::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 26px; border-radius: 2px; background: #3aa0ff; box-shadow: 0 0 10px rgba(58, 160, 255, .45); }
#topbar .logo span { color: #f4f7fb; font-size: 18px; font-weight: 600; letter-spacing: 1.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1560px) { #topbar .logo span { font-size: 15px; letter-spacing: .5px; } }
#topbar .logo .ver { font-style: normal; font-size: 10.5px; font-weight: 600; color: #46d06e;
  border: 1px solid rgba(70, 208, 110, .4); border-radius: 999px; padding: 2px 9px;
  letter-spacing: 1px; white-space: nowrap; background: rgba(70, 208, 110, .08); }
#topbar .logo .brand {
  font-style: normal; font-size: 11.5px; color: #aebac9;
  border: 1px solid #3a4a5e; border-radius: 999px; padding: 3px 12px;
  letter-spacing: 1.5px; white-space: nowrap;
  background: linear-gradient(90deg, rgba(58,160,255,.12), rgba(70,208,110,.10));
  box-shadow: inset 0 0 12px rgba(58,160,255,.10);
}
#topbar .logo small { color: var(--dim); font-weight: 400; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1500px) { #topbar .logo small { display: none; } }
@media (max-width: 1100px) { #topbar .logo .brand { display: none; } }
#topbar .spacer { flex: 1; }
.btn {
  padding: 7px 14px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--panel2); color: var(--txt); cursor: pointer; font-size: 13px;
  transition: all .15s; backdrop-filter: blur(4px);
}
.btn:hover { border-color: var(--acc2); color: #fff; box-shadow: var(--glow); }
.btn.primary { background: linear-gradient(135deg, #2f8f6b, #237a59); border-color: #2f8f6b; color: #fff; }
.btn.primary:hover { box-shadow: 0 0 16px rgba(47,143,107,.5); }
.btn.danger:hover { border-color: var(--err); color: var(--err); }
.btn.on { background: linear-gradient(135deg, #d9a13c, #b8842c); border-color: #d9a13c; color: #14181f; }

/* ── 主区域 ── */
#main { flex: 1; display: flex; min-height: 0; }
.zone { display: flex; flex: 1; min-width: 0; }

/* 左侧器件库 */
#library {
  width: 210px; flex: none; background: var(--panel);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; z-index: 10;
}
#libTitle { padding: 12px 12px 8px; font-weight: 600; color: #cfd8e3; font-size: 13px; display: flex; justify-content: space-between; align-items: center; }
.lib-tip { font-size: 11px; color: var(--dim); font-weight: 400; }
.libSearch { margin: 0 10px 8px; padding: 7px 10px; border-radius: 7px;
  border: 1px solid var(--line); background: rgba(10, 14, 20, .8); color: var(--txt); outline: none; font-size: 13px; width: calc(100% - 20px); }
.libSearch:focus { border-color: var(--acc2); box-shadow: var(--glow); }
.libList { flex: 1; overflow-y: auto; padding: 0 10px 12px; }
.lib-cat { margin: 10px 2px 4px; font-size: 11px; color: var(--dim); font-weight: 600; letter-spacing: 1px; }

/* 元器件库手动收缩：右缘扁平开关，收起时保留 18px 把手条 */
#library { position: relative; transition: margin-left .28s ease; }
#library.collapsed { margin-left: -192px; }
#library #libTitle, #library .libSearch, #library .libList { transition: opacity .2s ease; }
#library.collapsed #libTitle, #library.collapsed .libSearch, #library.collapsed .libList { opacity: 0; pointer-events: none; }
#libToggle {
  position: absolute; left: 100%; top: 50%; margin-top: -34px;
  width: 18px; height: 68px; padding: 0;
  background: var(--panel2); color: #5f6b7a;
  border: 1px solid var(--line); border-left: none;
  border-radius: 0 8px 8px 0; cursor: pointer; z-index: 11;
  font-size: 13px; line-height: 1; font-family: inherit;
  transition: color .15s;
}
#libToggle::before { content: "◂"; }
#library.collapsed #libToggle::before { content: "▸"; }
#libToggle:hover { color: var(--acc2); }
.cmp-card {
  padding: 8px 10px; margin-bottom: 6px; border-radius: 8px;
  background: var(--panel2); border: 1px solid var(--line); cursor: grab; font-size: 13px;
  transition: all .15s; position: relative; overflow: hidden;
}
.cmp-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--acc2); opacity: .5; }
.cmp-card:hover { border-color: var(--acc2); transform: translateX(3px); box-shadow: var(--glow); }
.cmp-card .cc-cat { font-size: 11px; color: var(--dim); }
.cmp-card.placed { opacity: .3; cursor: default; }
.cmp-card.placed::after { content: "✓ 已放置"; position: absolute; right: 8px; top: 8px; font-size: 10px; color: var(--ok); }

/* 画布区 */
#stage-wrap { flex: 1; position: relative; min-width: 0; background: #0b0f16; overflow: hidden; }
#circuitSvg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; }
#circuitSvg:active { cursor: grabbing; }

/* 四张可拖动层卡片（机构分组 / 信号域图例 / 指令演示 / 快捷操作）· 样式统一 */
#grpBar, #demoBar, #domainLegend, #actBar {
  position: fixed; z-index: 40; margin: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  padding: 7px 11px; border-radius: 12px;
  background: rgba(13, 18, 26, .88); border: 1px solid var(--line); backdrop-filter: blur(8px);
}
#grpBar.vert, #demoBar.vert, #domainLegend.vert, #actBar.vert { flex-direction: column; align-items: stretch; gap: 5px; width: max-content; }
/* 卡片头部：把手 + 横竖开关 + 标题 同一行；开关窄尺寸不撑满 */
.pc-head { display: flex; align-items: center; gap: 8px; }
.pc-head .ort, .pc-head .grip { flex: none; }
.gb-title, .dl-title {
  font-size: 12px; color: var(--dim); font-weight: 600; letter-spacing: 1px;
  margin: 0 4px 0 0; cursor: pointer; user-select: none; white-space: nowrap;
  font-family: inherit;
}
.gb-title::before, .dl-title::before { content: "▾ "; color: var(--acc2); opacity: .85; }
.panel-card.min .gb-title::before, .panel-card.min .dl-title::before { content: "▸ "; }
.panel-card.min .gb-title, .panel-card.min .dl-title { margin: 0; }
#grpBar.min .chip, #grpBar.min .chip-clear,
#demoBar.min .dbtn,
#domainLegend.min .dl-row,
#actBar.min .btn { display: none !important; }
.grip { cursor: grab; color: #5f6b7a; font-size: 15px; padding: 0 3px; user-select: none; line-height: 1; }
.grip:hover { color: var(--acc2); }
.ort { background: var(--panel2); border: 1px solid var(--line); color: var(--dim);
  border-radius: 6px; cursor: pointer; font-size: 12px; padding: 2px 6px; line-height: 1;
  font-family: inherit; transition: all .15s; }
.ort:hover { color: var(--acc2); border-color: var(--acc2); }
.chip {
  --gc: #3aa0ff;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: 999px; cursor: pointer;
  font-size: 12px; color: #cdd6e1; font-family: inherit;
  background: rgba(30, 39, 53, .75); border: 1px solid color-mix(in srgb, var(--gc) 45%, transparent);
  transition: all .15s;
}
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--gc); box-shadow: 0 0 6px var(--gc); }
.chip b { font-weight: 600; font-size: 10.5px; color: var(--dim); }
.chip:hover { border-color: var(--gc); color: #fff; box-shadow: 0 0 10px color-mix(in srgb, var(--gc) 40%, transparent); }
.chip.on { background: color-mix(in srgb, var(--gc) 22%, rgba(13,18,26,.8)); border-color: var(--gc); color: #fff; box-shadow: 0 0 14px color-mix(in srgb, var(--gc) 45%, transparent); }
.chip-clear { border-style: dashed; border-color: #3a4656; }

/* 工具条 */
.float-tools {
  position: absolute; top: 56px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; padding: 7px 12px; border-radius: 12px;
  background: rgba(13, 18, 26, .85); border: 1px solid var(--line);
  backdrop-filter: blur(8px); z-index: 6;
}
#zoomCtl {
  position: absolute; right: 14px; bottom: 16px; z-index: 6;
  display: flex; flex-direction: column; gap: 5px; align-items: center;
  padding: 8px 6px; border-radius: 12px;
  background: rgba(13, 18, 26, .85); border: 1px solid var(--line); backdrop-filter: blur(8px);
}
#zoomCtl button {
  width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--panel2); color: var(--txt); font-size: 16px; cursor: pointer;
}
#zoomCtl button:hover { border-color: var(--acc2); color: #fff; box-shadow: var(--glow); }
#viewInfo { font-size: 10.5px; color: var(--dim); padding-top: 2px; }
#canvasTip {
  position: absolute; left: 14px; bottom: 14px; z-index: 5;
  font-size: 11.5px; color: #5f6b7a; letter-spacing: .5px;
  pointer-events: none;
}

/* 指令演示栏（可拖动卡片，样式随三栏统一规则） */
#demoBar.nopower { opacity: .5; }
#demoBar.nopower .dbtn { filter: grayscale(.7); }
.dbtn {
  padding: 4px 12px; border-radius: 8px; cursor: pointer; font-size: 12px; font-family: inherit;
  color: #cdd6e1; background: var(--panel2); border: 1px solid var(--line);
  transition: all .15s; white-space: nowrap;
}
.dbtn:hover { border-color: #46d06e; color: #fff; box-shadow: 0 0 12px rgba(70, 208, 110, .35); }
.dbtn:active { transform: scale(.96); }
.dbtn-reset { border-style: dashed; }
.dbtn.busy { opacity: .32; filter: grayscale(1); pointer-events: none; }
.dbtn.active { border-color: #46d06e; color: #fff; background: rgba(70, 208, 110, .22); box-shadow: 0 0 14px rgba(70, 208, 110, .4); }

/* 演示横幅（显著流程提示） */
#demoBanner {
  position: absolute; top: 114px; left: 50%; transform: translateX(-50%) translateY(-10px);
  display: flex; align-items: center; gap: 13px;
  padding: 11px 20px; border-radius: 13px; z-index: 7;
  background: rgba(28, 21, 8, .93); border: 1px solid #d9a13c;
  box-shadow: 0 0 34px rgba(217, 161, 60, .28), 0 10px 28px rgba(0, 0, 0, .55);
  opacity: 0; pointer-events: none; transition: all .25s ease-out;
  max-width: 78%;
}
#demoBanner.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#demoBanner.ok { border-color: #46d06e; box-shadow: 0 0 34px rgba(70, 208, 110, .3), 0 10px 28px rgba(0, 0, 0, .55); }
#demoBanner .dot { width: 13px; height: 13px; border-radius: 50%; background: #d9a13c; flex: none;
  animation: recpulse 1s ease-in-out infinite; }
#demoBanner.ok .dot { background: #46d06e; animation: none; }
@keyframes recpulse { 50% { box-shadow: 0 0 0 7px rgba(217, 161, 60, .14); opacity: .55; } }
.db-body { display: flex; flex-direction: column; gap: 2px; min-width: 240px; }
.db-title { font-size: 15.5px; font-weight: 700; color: #ffd97a; letter-spacing: 1px; white-space: nowrap; }
#demoBanner.ok .db-title { color: #7fe0a8; }
.db-step { font-size: 12.5px; color: #ead9ad; min-width: 260px; }

/* HUD 数据卡 */
#hud { position: absolute; top: 12px; right: 14px; z-index: 6; display: flex; flex-direction: row; gap: 8px; }
.hud-card {
  min-width: 92px; padding: 7px 12px; border-radius: 12px; text-align: center;
  background: rgba(13, 18, 26, .85); border: 1px solid var(--line); backdrop-filter: blur(8px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, .35);
}
.hc-num { font: 700 18px/1.25 Consolas, monospace; color: #46d06e; text-shadow: 0 0 12px rgba(70, 208, 110, .5); }
.hc-lbl { font-size: 10px; color: var(--dim); letter-spacing: 2.5px; margin-top: 2px; }

/* 信号域图例（可拖动卡片，样式随三栏统一规则）
   竖排：色行逐行堆叠；横排：.horz 下 inline 成行 */
.dl-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #b9c3cf; padding: 2.5px 0; font-family: inherit; }
.dl-row i { width: 16px; height: 4px; border-radius: 2px; flex: none; box-shadow: 0 0 6px currentColor; }
#domainLegend.horz .dl-row { display: inline-flex; margin-right: 14px; }

/* 开机动画 */
#boot { position: fixed; inset: 0; z-index: 300; background: radial-gradient(ellipse at 50% 38%, #111b28 0%, #06090f 72%);
  display: flex; align-items: center; justify-content: center; transition: opacity .4s; cursor: pointer; }
#boot.done { opacity: 0; pointer-events: none; }
.boot-inner { text-align: center; }
.boot-logo { font-size: 26px; font-weight: 650; letter-spacing: 5px; color: #f4f7fb; }
.boot-sub { margin-top: 10px; color: #8b97a6; font-size: 12px; letter-spacing: 4px; }
.boot-bar { width: 280px; height: 3px; background: #1b2432; border-radius: 2px; margin: 20px auto 12px; overflow: hidden; }
.boot-bar i { display: block; height: 100%; width: 42%; border-radius: 2px;
  background: linear-gradient(90deg, #3aa0ff, #46d06e); animation: bootbar 1.5s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(70, 208, 110, .6); }
@keyframes bootbar { 0% { margin-left: -42%; } 100% { margin-left: 102%; } }
.boot-st { color: #5f6b7a; font-size: 11.5px; letter-spacing: 3px; font-family: Consolas, monospace; }
.boot-title { margin-top: 12px; font-size: 15px; font-weight: 600; color: #e8eef6;
  letter-spacing: 2.5px; text-shadow: 0 0 18px rgba(58, 160, 255, .35); }
.boot-tags { margin: 13px auto 2px; display: flex; gap: 7px; justify-content: center; flex-wrap: wrap; }
.boot-tags span { --tc: #46d06e; font-size: 11px; color: #cdd6e1; letter-spacing: 1px;
  border: 1px solid color-mix(in srgb, var(--tc) 45%, transparent);
  background: color-mix(in srgb, var(--tc) 10%, rgba(13, 18, 26, .6));
  border-radius: 999px; padding: 3px 11px;
  animation: tagIn .4s var(--ease) backwards; }
.boot-tags span:nth-child(1) { animation-delay: .1s; }
.boot-tags span:nth-child(2) { animation-delay: .2s; }
.boot-tags span:nth-child(3) { animation-delay: .3s; }
.boot-tags span:nth-child(4) { animation-delay: .4s; }
@keyframes tagIn { from { opacity: 0; transform: translateY(7px); } }
.boot-list { width: 380px; margin: 0 auto 12px; text-align: left; min-height: 96px; }
.boot-li { display: flex; justify-content: space-between; gap: 16px;
  font: 12px/1.95 Consolas, "Microsoft YaHei", monospace; color: #9fb0c2;
  opacity: 0; transform: translateX(-10px); transition: all .3s ease-out; }
.boot-li.in { opacity: 1; transform: none; }
.boot-li b { color: #46d06e; font-weight: 600; text-shadow: 0 0 8px rgba(70, 208, 110, .5); }

/* 全屏引导卡 */
#fsPrompt { position: fixed; inset: 0; z-index: 290; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .4s; background: rgba(5, 8, 13, .45); backdrop-filter: blur(2px); }
#fsPrompt.show { opacity: 1; pointer-events: auto; }
#fsPrompt.done { opacity: 0; pointer-events: none; transition: opacity .5s; }
.fsp-card { text-align: center; padding: 34px 56px; border-radius: 18px;
  background: rgba(15, 21, 30, .96); border: 1px solid #2c3a4e;
  box-shadow: 0 12px 60px rgba(0, 0, 0, .6), 0 0 40px rgba(58, 160, 255, .12);
  transform: translateY(10px); transition: transform .4s; }
#fsPrompt.show .fsp-card { transform: translateY(0); }
.fsp-ico { font-size: 40px; color: #3aa0ff; text-shadow: 0 0 24px rgba(58, 160, 255, .6); }
.fsp-t { font-size: 20px; font-weight: 700; color: #fff; letter-spacing: 2px; margin-top: 10px; }
.fsp-d { font-size: 12.5px; color: var(--dim); margin: 8px 0 18px; }
#fspBtn { padding: 11px 34px; font-size: 15px; font-weight: 600; border-radius: 10px; cursor: pointer;
  border: 1px solid #2f8f6b; color: #fff; font-family: inherit; letter-spacing: 2px;
  background: linear-gradient(135deg, #2f8f6b, #237a59); transition: all .15s; }
#fspBtn:hover { box-shadow: 0 0 26px rgba(70, 208, 110, .55); transform: translateY(-1px); }
#fspSkip { margin-top: 12px; font-size: 12px; color: #5f6b7a; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
#fspSkip:hover { color: var(--dim); }

/* 分步引导 */
#tour { position: fixed; inset: 0; z-index: 250; display: none; }
#tourSpot { position: fixed; border-radius: 12px; pointer-events: none;
  box-shadow: 0 0 0 9999px rgba(5, 8, 13, .78), 0 0 0 2px #3aa0ff, 0 0 26px rgba(58, 160, 255, .4);
  transition: all .28s ease; }
#tourCard { position: fixed; width: 350px; z-index: 251;
  background: rgba(15, 21, 30, .97); border: 1px solid #2c3a4e; border-radius: 14px;
  padding: 15px 18px 13px; box-shadow: 0 12px 44px rgba(0, 0, 0, .6), 0 0 26px rgba(58, 160, 255, .10); }
.tc-head { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--dim); letter-spacing: 2px; margin-bottom: 9px; }
.tc-head .tc-brand { color: #3aa0ff; font-weight: 600; }
.tc-title { font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 6px; letter-spacing: 1px; }
.tc-desc { font-size: 12.5px; color: #b9c3cf; line-height: 1.75; margin-bottom: 14px; }
.tc-btns { display: flex; gap: 8px; align-items: center; }
.tc-btns button { font-family: inherit; cursor: pointer; border-radius: 8px; font-size: 12.5px;
  padding: 6px 14px; transition: all .15s; }
#tourSkip { margin-right: auto; background: none; border: none; color: #5f6b7a; text-decoration: underline; text-underline-offset: 3px; }
#tourSkip:hover { color: var(--dim); }
#tourPrev { background: var(--panel2); border: 1px solid var(--line); color: var(--txt); }
#tourPrev:hover { border-color: var(--acc2); color: #fff; }
#tourPrev:disabled { opacity: .35; cursor: not-allowed; }
#tourNext { background: linear-gradient(135deg, #2f8f6b, #237a59); border: 1px solid #2f8f6b; color: #fff; font-weight: 600; }
#tourNext:hover { box-shadow: 0 0 16px rgba(70, 208, 110, .5); }

/* 帮助弹窗（用户手动关闭，不自动消失） */
#helpModal { position: fixed; inset: 0; z-index: 240; display: none;
  align-items: center; justify-content: center;
  background: rgba(5, 8, 13, .55); backdrop-filter: blur(3px); }
#helpModal.open { display: flex; animation: hmin .22s ease-out; }
@keyframes hmin { from { opacity: 0; } }
.hm-card { width: 720px; max-width: 92vw; max-height: 84vh; overflow-y: auto;
  background: rgba(15, 21, 30, .98); border: 1px solid #2c3a4e; border-radius: 16px;
  box-shadow: 0 16px 60px rgba(0, 0, 0, .65), 0 0 40px rgba(58, 160, 255, .08); }
.hm-head { display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px; border-bottom: 1px solid var(--line); }
.hm-title { font-size: 15.5px; font-weight: 700; color: #fff; letter-spacing: 1px; }
#helpClose { background: none; border: none; color: var(--dim); font-size: 16px; cursor: pointer;
  padding: 2px 8px; border-radius: 6px; }
#helpClose:hover { color: #fff; background: #2a3444; }
.hm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px 18px; }
.hm-sec { background: rgba(30, 39, 53, .5); border: 1px solid #26303d; border-radius: 10px; padding: 11px 13px; }
.hm-h { font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.hm-d { font-size: 12px; color: #aebac9; line-height: 1.75; }
.hm-d b { color: #e6c545; font-weight: 600; }
.hm-foot { display: flex; justify-content: space-between; align-items: center;
  padding: 12px 18px 14px; border-top: 1px solid var(--line); }
.hm-foot span { font-size: 11.5px; color: #5f6b7a; }
#helpOk { padding: 8px 22px; border-radius: 8px; cursor: pointer; font-family: inherit; font-size: 13px;
  border: 1px solid #2f8f6b; color: #fff; background: linear-gradient(135deg, #2f8f6b, #237a59); letter-spacing: 1px; }
#helpOk:hover { box-shadow: 0 0 16px rgba(70, 208, 110, .5); }

/* ── 真车说明弹窗 ── */
#realCar { position: fixed; inset: 0; z-index: 245; display: none;
  align-items: center; justify-content: center;
  background: rgba(5, 8, 13, .55); backdrop-filter: blur(3px); }
#realCar.open { display: flex; animation: hmin .22s ease-out; }
#realCar .hm-card { width: 620px; }
#realCarClose { background: none; border: none; color: var(--dim); font-size: 16px; cursor: pointer;
  padding: 2px 8px; border-radius: 6px; }
#realCarClose:hover { color: #fff; background: #2a3444; }
.hm-link { background: none; border: none; color: #6ea8e8; cursor: pointer; font-size: 12px;
  text-decoration: underline; text-underline-offset: 3px; font-family: inherit; padding: 0; }
.hm-link:hover { color: #9cc4f0; }
/* 真车说明 kv 行：左标签右值，两端对齐（与属性面板 .kv 同构） */
#realCar .kv { display: flex; justify-content: space-between; gap: 12px;
  font-size: 12px; padding: 3px 0; align-items: baseline; }
#realCar .kv span { color: #8fa4b8; flex: none; }
#realCar .kv b { color: #fff; font-weight: 500; text-align: right; }

/* 真车说明确认按钮：与全局 .btn.primary 同一视觉语言 */
#realCarOk { padding: 7px 16px; border-radius: 8px; cursor: pointer;
  font-size: 13px; font-family: inherit;
  background: linear-gradient(135deg, #2f8f6b, #237a59);
  border: 1px solid #2f8f6b; color: #fff; transition: all .15s; }
#realCarOk:hover { box-shadow: 0 0 16px rgba(47, 143, 107, .5); }

/* 演示信号流动 */
.flowdot { filter: drop-shadow(0 0 7px #fff); pointer-events: none; }
.wire.sigflow { stroke-width: 4; filter: drop-shadow(0 0 6px currentColor); }
.wire.sigdone { stroke-width: 3; opacity: 1; filter: drop-shadow(0 0 4px currentColor); }
.cmp.st-on .body { stroke: #46d06e; stroke-width: 2; }
.cmp.st-on .accent { filter: drop-shadow(0 0 8px currentColor); }
.cmp.st-blink .accent { animation: accblink .55s steps(2) infinite; }
.cmp.st-drive .body { stroke: #f08c3a; stroke-width: 2; }
.cmp.st-drive .accent { animation: drivepulse 1s ease-in-out infinite; }
@keyframes drivepulse { 50% { opacity: .25; } }
@keyframes accblink { 50% { opacity: .15; } }

/* SVG 元件 */
.cmp { cursor: move; }
.cmp .body { fill: url(#gbody); stroke: #32405477; stroke-width: 1.4; filter: url(#fshadow); transition: opacity .25s, stroke .2s; }
.cmp .accent { opacity: .95; }
.cmp .title { fill: #f0f5fa; font-size: 14.5px; font-weight: 600; pointer-events: none; }
.cmp .pinlabel { font-size: 12.5px; font-family: Consolas, monospace; font-weight: 600; pointer-events: none; paint-order: stroke; stroke: rgba(5, 8, 13, .55); stroke-width: 2.5px; }
.cmp:hover .body { stroke: #4a5a72; }
.cmp.sel .body { stroke: #3aa0ff; stroke-width: 2; stroke-dasharray: 9 6; animation: ants .9s linear infinite; }
@keyframes ants { to { stroke-dashoffset: -15; } }
.cmp.hl .body { stroke-width: 2; }
.cmp.dim { opacity: .1; pointer-events: none; }
.cmp.offline .body { stroke: #5a3535; }
.cmp.offline { opacity: .45; }
.cmp .pdot { fill: #3a424e; transition: fill .3s; }
.cmp.pwron .pdot { fill: #46d06e; filter: drop-shadow(0 0 5px #46d06e); animation: pdotpulse 2.2s ease-in-out infinite; }
@keyframes pdotpulse { 50% { opacity: .35; } }
.pin circle, .pin rect { transition: r .1s; }
.pin:hover circle { stroke: #fff; }

/* 导线 */
.wire { fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; cursor: pointer; opacity: .92; transition: opacity .25s; }
.wire:hover { stroke-width: 4; opacity: 1; }
/* 供电域导线加粗：按"域是否属于本项目 powerDomains"判定（引擎加 pwr 类），不预设具体域名 */
.wire.pwr { stroke-width: 3.0; }
.wire.d3v3 { stroke: #46d06e; } .wire.d5v { stroke: #e6c545; }
.wire.d12v { stroke: #f08c3a; } .wire.d48v { stroke: #e54545; }
.wire.dgnd { stroke: #66707f; }
.wire.dpwm { stroke: #b06ee8; } .wire.duart { stroke: #4aa8e8; }
.wire.dgpio { stroke: #8fa4b8; } .wire.dadc, .wire.dana { stroke: #4ad0c8; }
.wire.dmot { stroke: #e86e6e; } .wire.dsw { stroke: #d89a4a; }
.wire.dbus { stroke: #8899aa; stroke-width: 5; opacity: .85; }
.wire.dswd { stroke: #d6d67a; }
/* 套管：导线下的深色描底，交叉处仍能分辨各线走向；随导线状态自动淡显 */
.wirecase { fill: none; stroke: #04070c; stroke-width: 5; opacity: .5; pointer-events: none; }
.wirecase:has(+ .wire.dimw), .wirecase:has(+ .wire.tipdim) { opacity: .07; }
.wirecase:has(+ .wire.sel), .wirecase:has(+ .wire.hi), .wirecase:has(+ .wire.live) { opacity: .28; }
.wire.live { stroke-dasharray: 9 7; animation: flow .55s linear infinite; filter: drop-shadow(0 0 3px currentColor); }
@keyframes flow { to { stroke-dashoffset: -16; } }
.wire.dimw { opacity: .05 !important; pointer-events: none; }
.cmp.tipdim { opacity: .15 !important; }
.wire.tipdim { opacity: .05 !important; pointer-events: none; }
.wire.sel { stroke-width: 5 !important; filter: drop-shadow(0 0 9px currentColor); opacity: 1; }
.wire.dgnd { opacity: .5; }
.wire.dgnd:hover, .wire.dgnd.hi { opacity: 1; }
.wire.hi { stroke-width: 4.4; filter: drop-shadow(0 0 5px currentColor); }
.pin.hi circle, .pin.hi rect { stroke: #fff; stroke-width: 2.6; filter: drop-shadow(0 0 6px #fff); }
.warrow { opacity: .9; pointer-events: none; }
.draftwire { stroke: #fff; stroke-dasharray: 6 5; stroke-width: 2; fill: none; pointer-events: none; opacity: .8; }

/* 导线点击信息浮层（渐入渐出） */
.wiretip { animation: wtIn .28s ease-out; }
.wiretip.out { opacity: 0; transition: opacity .45s ease; }
@keyframes wtIn { from { opacity: 0; } }
.wiretip .wt-box { fill: rgba(12, 18, 27, .97); stroke-width: 2; filter: drop-shadow(0 4px 14px rgba(0,0,0,.6)); }
.wiretip .wt-main { fill: #fff; font-size: 20px; font-weight: 700; font-family: Consolas, "Microsoft YaHei", monospace; }
.wiretip .wt-sub { fill: #a9b6c6; font-size: 13.5px; }
.wt-ring { fill: none; stroke: #fff; stroke-width: 3; opacity: .95; pointer-events: none;
  animation: ringOut 1.2s ease-out 3 forwards; }
.wt-ring2 { animation-delay: .18s; }
.wt-ring.out { opacity: 0; transition: opacity .4s; }
@keyframes ringOut { from { r: 6; opacity: .95; } to { r: 24; opacity: 0; } }

/* 属性浮动面板（叠加在画布右侧，按需出现，高度随内容） */
#props {
  position: absolute; top: 128px; right: 14px; width: 286px;
  max-height: calc(100% - 300px);
  background: rgba(15, 20, 28, .94); border: 1px solid #2c3a4e; border-radius: 14px;
  backdrop-filter: blur(10px); z-index: 8;
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 12px 44px rgba(0, 0, 0, .55), 0 0 30px rgba(58, 160, 255, .06);
  transform: translateX(118%); transition: transform .3s ease;
}
#props.open { transform: none; }
.fp-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.fp-head h3 { font-size: 12.5px; color: #cfd8e3; letter-spacing: 1px; font-weight: 600; }
#propsClose { background: none; border: none; color: var(--dim); font-size: 15px; cursor: pointer; padding: 2px 6px; border-radius: 6px; }
#propsClose:hover { color: #fff; background: #2a3444; }
#propBody { overflow-y: auto; padding: 12px; }
#propBody h4 { font-size: 15px; margin-bottom: 3px; color: #fff; }
#propBody .p-sub { color: var(--dim); font-size: 12px; margin-bottom: 8px; }
#propBody .p-desc { font-size: 12.5px; color: #b9c3cf; line-height: 1.7; }
#propBody .kv { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; padding: 4px 0; border-bottom: 1px dashed #26303d; }
#propBody .kv b { color: #fff; font-weight: 500; flex: none; }
#propBody i { color: #5b6674; font-style: normal; }
.empty-hint { color: #5b6674; font-size: 12.5px; text-align: center; margin-top: 40px; line-height: 2.2; }
.erc-item { font-size: 12px; padding: 5px 8px; border-radius: 6px; margin-bottom: 5px; line-height: 1.5; }
.erc-miss { background: #3a2b16; color: var(--warn); }
.erc-ok { background: #16321f; color: var(--ok); }
.erc-extra { background: #232c38; color: var(--dim); }
.erc-opt { background: #1c2a3a; color: #6ea8e8; }
.erc-info { background: #20293a; color: #8fa4c8; }

/* 操作指引 */
.guide { margin-top: 8px; }
.g-step { display: flex; gap: 9px; font-size: 12.5px; color: #b9c3cf; padding: 7px 0; border-bottom: 1px dashed #26303d; line-height: 1.55; align-items: flex-start; }
.g-step b { flex: none; width: 20px; height: 20px; border-radius: 50%; background: #16202e; color: #3aa0ff; text-align: center; line-height: 19px; font-size: 11px; border: 1px solid #2c3e55; }
.g-step span b { color: #e6c545; }
.g-group { margin-top: 10px; padding-bottom: 8px; border-bottom: 1px dashed #26303d; }
.g-name { font-size: 13.5px; font-weight: 600; margin-bottom: 3px; }
.g-name i { font-style: normal; font-size: 11px; color: var(--dim); font-weight: 400; margin-left: 6px; }

/* 底部状态条（紧凑信息行）+ 运行日志抽屉（从顶栏下拉，不受屏幕底边影响） */
#statusbar {
  height: 38px; flex: none; background: rgba(14, 18, 25, .97);
  border-top: 1px solid var(--line); display: flex; align-items: center;
  gap: 10px; padding: 0 12px; z-index: 100; position: relative;
}
#statusbar #stateLeds { display: flex; gap: 11px; align-items: center; font-size: 11.5px; color: var(--dim); flex: none; }
.sled { width: 9px; height: 9px; border-radius: 50%; background: #2a313c; display: inline-block; margin-right: 4px; vertical-align: -1px; }
.sled.on { box-shadow: 0 0 9px currentColor; }
#logTicker { flex: 1; font: 12px/1 Consolas, "Microsoft YaHei", monospace; color: #9fb0c2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.credit { flex: none; font-size: 11px; color: #5f6b7a; letter-spacing: 1px;
  padding-left: 12px; border-left: 1px solid #26303d; }
#logDrawer {
  position: fixed; top: 54px; left: 0; right: 0; height: 320px; z-index: 120;
  background: rgba(11, 15, 22, .97); border-bottom: 1px solid #2c3a4e;
  transform: translateY(-115%); transition: transform .25s ease;
  display: flex; flex-direction: column; box-shadow: 0 12px 44px rgba(0, 0, 0, .55);
}
#logDrawer.open { transform: none; }
.ld-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 14px; font-size: 12px; color: var(--dim); border-bottom: 1px solid #1d2530; }
.ld-head button { background: none; border: none; color: var(--dim); cursor: pointer; font-size: 12px; }
.ld-head button:hover { color: #fff; }
#log { flex: 1; overflow-y: auto; padding: 6px 14px; font: 12px/1.7 Consolas, "Microsoft YaHei", monospace; color: #9fb0c2; }
#log .t { color: #525d6b; margin-right: 8px; }
#log .ok { color: var(--ok); } #log .warn { color: var(--warn); } #log .err { color: var(--err); } #log .info { color: var(--acc2); }

/* 拖拽幽灵 / 提示 */
#ghost { position: fixed; pointer-events: none; z-index: 99; display: none;
  padding: 5px 12px; border-radius: 7px; background: rgba(47, 143, 107, .92); color: #fff; font-size: 13px;
  box-shadow: 0 4px 18px rgba(0,0,0,.5); }
#toast { position: fixed; top: 64px; left: 50%; transform: translateX(-50%);
  padding: 9px 20px; border-radius: 9px; background: rgba(20, 26, 35, .96);
  border: 1px solid var(--line); color: var(--txt); z-index: 100;
  opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none; font-size: 13.5px;
  box-shadow: 0 6px 24px rgba(0,0,0,.5); }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(4px); }
#toast.warn { border-color: var(--warn); color: var(--warn); }
#toast.err { border-color: var(--err); color: var(--err); }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #2c3542; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #3a4656; }

/* ═══════════════════════════════════════════
   POLISH LAYER · 设计系统精修（教学级 UI）
   ═══════════════════════════════════════════ */
:root {
  --surface-hi: rgba(255, 255, 255, .045);
  --shadow-1: 0 2px 8px rgba(0, 0, 0, .35);
  --shadow-2: 0 10px 36px rgba(0, 0, 0, .45), 0 2px 8px rgba(0, 0, 0, .3);
  --r-m: 12px; --r-l: 16px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
::selection { background: rgba(58, 160, 255, .35); color: #fff; }
:focus-visible { outline: 2px solid var(--acc2); outline-offset: 2px; border-radius: 6px; }

/* ── 顶栏：更精致的玻璃与分组分隔 ── */
#topbar {
  height: 54px;
  background: linear-gradient(180deg, rgba(24, 30, 42, .92), rgba(16, 21, 30, .95));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 4px 24px rgba(0, 0, 0, .35);
}
#topbar .btn { padding: 6px 13px; border-radius: 9px; font-size: 12.5px; }
#topbar .btn:hover { transform: translateY(-1px); }
#topbar .btn:active { transform: scale(.96); transition-duration: .06s; }
#topbar .btn.primary { padding: 6px 16px; }
#topbar .btn#btnTour { position: relative; margin-left: 8px; padding-left: 18px; }
#topbar .btn#btnTour::before { content: ""; position: absolute; left: 0; top: 50%;
  transform: translateY(-50%); width: 1px; height: 18px; background: var(--line); }
#topbar .logo .ver { text-shadow: 0 0 10px rgba(70, 208, 110, .4); }
#topbar .logo::before { box-shadow: 0 0 14px rgba(58, 160, 255, .55); }

/* ── 按钮微交互 ── */
.btn { transition: all .16s var(--ease); will-change: transform; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.97); transition-duration: .06s; }

/* ── 元件库 ── */
#library { background: linear-gradient(180deg, rgba(19, 25, 35, .9), rgba(14, 18, 26, .92)); }
#libTitle::before { content: "▦ "; color: var(--acc2); }
.cmp-card { border-radius: 10px; background: linear-gradient(180deg, rgba(32, 41, 56, .7), rgba(24, 31, 43, .7)); }
.cmp-card.placed { opacity: .38; }

/* ── 画布：氛围暗角 ── */
#stage-wrap::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background: radial-gradient(ellipse at 50% 40%, transparent 52%, rgba(3, 5, 9, .36) 100%); }

/* ── 浮动层卡片：入场动画与悬停质感 ── */
#grpBar, #domainLegend, #demoBar {
  transition: box-shadow .2s var(--ease);
  box-shadow: var(--shadow-1), inset 0 1px 0 rgba(255, 255, 255, .05);
}
#grpBar:hover, #domainLegend:hover, #demoBar:hover {
  box-shadow: 0 0 0 1px rgba(58, 160, 255, .18), var(--shadow-2), inset 0 1px 0 rgba(255, 255, 255, .07);
}
#grpBar { animation: cardIn .55s var(--ease) .15s backwards; }
#domainLegend { animation: cardIn .55s var(--ease) .28s backwards; }
#demoBar { animation: cardIn .55s var(--ease) .4s backwards; }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); } }

/* ── 机构分组 chips ── */
.chip { transition: all .16s var(--ease); border-radius: 999px; backdrop-filter: blur(4px); }
.chip:hover { transform: translateY(-1px); }
.chip.on { font-weight: 600; }

/* ── HUD 数据卡：彩色顶饰与悬停 ── */
#hud { gap: 10px; }
.hud-card { position: relative; overflow: hidden; padding: 10px 16px 9px; border-radius: var(--r-m);
  transition: transform .16s var(--ease), box-shadow .16s var(--ease); }
.hud-card::before { content: ""; position: absolute; top: 0; left: 12px; right: 12px; height: 2px;
  border-radius: 2px; opacity: .85; }
.hud-card:nth-child(1)::before { background: #38bdf8; }
.hud-card:nth-child(2)::before { background: #46d06e; }
.hud-card:nth-child(3)::before { background: #d9a13c; }
.hud-card:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0, 0, 0, .5); }
.hud-card:nth-child(1) .hc-num { color: #38bdf8; text-shadow: 0 0 14px rgba(56, 189, 248, .5); }
.hud-card:nth-child(3) .hc-num { color: #e6b84c; text-shadow: 0 0 14px rgba(217, 161, 60, .5); }

/* ── 浮动属性面板 ── */
#props { transition: transform .3s var(--ease), opacity .3s var(--ease), box-shadow .2s; opacity: 0; }
#props.open { opacity: 1; }
#props:hover { box-shadow: 0 16px 56px rgba(0, 0, 0, .6), 0 0 36px rgba(58, 160, 255, .08); }
.fp-head { background: linear-gradient(180deg, rgba(58, 160, 255, .10), rgba(58, 160, 255, .02)); }
.fp-head h3::before { content: "▣ "; color: var(--acc2); }

/* ── 演示横幅：舞台感 ── */
#demoBanner { border-left: 3px solid #d9a13c; border-radius: 14px; }
#demoBanner.ok { border-left-color: #46d06e; }

/* ── 状态条 ── */
#statusbar { box-shadow: 0 -6px 24px rgba(0, 0, 0, .3); }
.credit { font-family: Consolas, monospace; }

/* ── 日志抽屉 ── */
#logDrawer { box-shadow: 0 -16px 60px rgba(0, 0, 0, .6); }

/* ── 提示条：类型色标 ── */
#toast { border-left: 3px solid var(--acc2); }
#toast.warn { border-left-color: var(--warn); }
#toast.err { border-left-color: var(--err); }

/* ── 缩放控件 ── */
#zoomCtl { padding: 7px 6px; border-radius: var(--r-m); }

/* ── 滚动条 ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(100, 116, 139, .35); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(100, 116, 139, .55); }

/* ── 引导卡入场 ── */
#tourCard { animation: tourIn .32s var(--ease); }
@keyframes tourIn { from { opacity: 0; transform: translateY(10px) scale(.97); } }

/* ── 帮助弹窗入场升级 ── */
@keyframes hmin { from { opacity: 0; } }
#helpModal .hm-card { animation: hCard .26s var(--ease); }
@keyframes hCard { from { opacity: 0; transform: translateY(14px) scale(.97); } }

/* ── 无障碍：减少动态 ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01s !important; transition-duration: .01s !important; }
}

/* ═══════════════════════════════════════════
   横竖屏自适应 · 主流分辨率适配
   ═══════════════════════════════════════════ */
.btn { white-space: nowrap; }
#projectSelect {
  padding: 6px 10px; border-radius: 8px; border: 1px solid #cfc2a2;
  background: #faf5e6; color: var(--txt); cursor: pointer; font-size: 12.5px;
  font-family: inherit; outline: none; max-width: 240px;
}
#projectSelect:focus { border-color: var(--acc2); box-shadow: var(--glow); }
@media (max-width: 1560px) {
  #topbar { gap: 10px; padding: 0 12px; }
  #topbar .btn { padding: 5px 9px; font-size: 12px; }
  #topbar .logo span { font-size: 14.5px; letter-spacing: .5px; }
}
@media (max-width: 1440px) {
  #topbar { gap: 10px; padding: 0 12px; }
  #topbar .btn { padding: 5px 7px; font-size: 11.5px; }
  #topbar .logo span { font-size: 13px; letter-spacing: 0; max-width: 30vw; }
  #library { width: 192px; }
  #library.collapsed { margin-left: -174px; }
  #props { width: 266px; }
  .hud-card { min-width: 84px; padding: 7px 10px; }
}
@media (max-width: 1366px) {
  #topbar { gap: 7px; padding: 0 9px; }
  #topbar .btn { padding: 4px 6px; font-size: 11.5px; border-radius: 7px; }
  #topbar .btn.primary { padding: 4px 10px; }
  #topbar .logo span { font-size: 12px; max-width: 24vw; }
  #topbar .logo .ver { display: none; }
  #library { width: 178px; }
  #library.collapsed { margin-left: -160px; }
  .libSearch { font-size: 12px; padding: 6px 8px; }
  .cmp-card { font-size: 12px; padding: 7px 8px; }
  #props { width: 250px; }
  .hud-card { min-width: 76px; padding: 6px 8px; }
  .hc-num { font-size: 16px; }
}
@media (max-width: 1200px) {
  #topbar .btn { padding: 4px 5px; font-size: 11px; }
  #topbar .logo span { font-size: 11px; max-width: 20vw; }
  #library { width: 160px; }
  #library.collapsed { margin-left: -142px; }
}
@media (max-height: 820px) {
  #topbar { height: 46px; }
  #logDrawer { top: 46px; height: 260px; }
  #demoBanner { top: 96px; }
  #props { max-height: calc(100% - 240px); }
}
@media (max-height: 760px) {
  #statusbar { height: 32px; font-size: 12px; }
  #topbar .btn { padding: 4px 6px; font-size: 11px; }
  .hud-card { padding: 5px 8px; }
}



/* 安全警示卡与全屏横幅 */
#safetyModal { position: fixed; inset: 0; z-index: 250; display: none; align-items: center; justify-content: center; background: rgba(5, 8, 13, .62); backdrop-filter: blur(3px); }
#safetyModal.open { display: flex; animation: hmin .22s ease-out; }
#safetyModal .hm-card { width: 560px; border-color: rgba(229, 69, 69, .5); box-shadow: 0 0 40px rgba(229, 69, 69, .25); }
#safetyClose { background: none; border: none; color: var(--dim); font-size: 16px; cursor: pointer; padding: 2px 8px; border-radius: 6px; }
#safetyClose:hover { color: #fff; background: #2a3444; }
#safetyAck { padding: 8px 18px; border-radius: 8px; cursor: pointer; font-size: 13px; font-family: inherit; font-weight: 600; background: linear-gradient(135deg, #b02a2a, #8c1f1f); border: 1px solid #e54545; color: #fff; transition: all .15s; }
#safetyAck:hover { box-shadow: 0 0 16px rgba(229, 69, 69, .5); }
#safetyStrip { flex: none; display: none; align-items: center; padding: 3px 12px; font-size: 12px; font-weight: 700; letter-spacing: 1px; color: #ffd34d; background: rgba(229, 69, 69, .18); border-left: 1px solid rgba(229, 69, 69, .45); border-right: 1px solid rgba(229, 69, 69, .45); }
#safetyStrip.show { display: flex; }
/* 引脚点选：并联线全部高亮 */
.wire.sel { stroke-width: 4.5; filter: drop-shadow(0 0 5px rgba(255, 255, 255, .9)); }
.warrow.sel { filter: drop-shadow(0 0 5px rgba(255, 255, 255, .9)); }
.wire.grp { stroke-width: 4; filter: drop-shadow(0 0 4px rgba(255, 255, 255, .75)); }
.warrow.grp { filter: drop-shadow(0 0 4px rgba(255, 255, 255, .75)); }

