/* 发油车辆管控平台：深色数据平台风格。颜色、间距、字号都在 :root 里，规则见 docs/排版规范.md。
   间距只用 4/8/12/16/24/32/48；字号只用 12/14/16/20/28；字重只用 400/600。场景配色在 .twin 里覆盖等轴测工具包的变量。 */
:root {
  color-scheme: dark;
  --bg: #050a14;
  --bg-2: #07101e;
  --panel: #0b1526;
  --panel-2: #0f1c32;
  --line: #142339;
  --line-2: #22395c;
  --ink: #dce7f7;
  --ink-2: #95a8c4;
  --ink-3: #61779a;
  --accent: #4fd8ff;
  --accent-2: #2f7de0;
  --ok: #0ca30c;
  --ok-ink: #5fd35f;
  --warn: #fab219;
  --serious: #ec835a;
  --bad: #d03b3b;
  --bad-ink: #ff7b7b;
  --radius: 4px;
  --page-x: 32px;
  --gap: 24px;
  --pad: 24px;
  --sans: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
  --num: "Bahnschrift", "DIN Alternate", "DIN Condensed", "Roboto Condensed", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Consolas, monospace;
  font-family: var(--sans);
  color: var(--ink);
}
@media (max-width: 1440px) { :root { --page-x: 24px; } }
@media (max-width: 760px) { :root { --page-x: 16px; --gap: 16px; --pad: 16px; } }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-size: 14px; line-height: 22px; background: var(--bg); background-image:
  radial-gradient(1200px 520px at 50% -120px, #0d2140 0%, transparent 70%),
  linear-gradient(var(--bg), var(--bg)); background-attachment: fixed; min-height: 100vh; }
button, input, select, textarea { font: inherit; color: inherit; }
.num, .clock, td.num { font-family: var(--num); font-variant-numeric: tabular-nums; }
small { font-size: 12px; }

/* ---------------- 顶栏 ---------------- */
.top { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center;
  gap: 24px; padding: 12px var(--page-x); background: rgba(5, 10, 20, .92); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.logo { width: 32px; height: 32px; flex: none; }
.lg-frame { fill: #0c1a30; stroke: var(--line-2); }
.lg-dot { fill: var(--accent); }
.lg-wave { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; opacity: .85; }
h1 { font-size: 16px; line-height: 24px; margin: 0; font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
.brand .sub { color: var(--ink-3); font-size: 12px; line-height: 20px; letter-spacing: .02em; display: flex; gap: 8px; white-space: nowrap; }
.brand .sub .site:not(:empty)::before { content: "·"; margin-right: 8px; }
.tabs { display: flex; gap: 4px; justify-self: center; padding: 4px; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 8px; overflow-x: auto; max-width: 100%; }
.tabs button { border: 0; background: none; padding: 5px 16px; cursor: pointer; color: var(--ink-2); border-radius: 6px;
  white-space: nowrap; font-size: 14px; line-height: 22px; letter-spacing: .02em; }
.tabs button:hover { color: var(--ink); }
.tabs button.on { color: var(--ink); background: var(--panel-2); box-shadow: inset 0 -2px 0 var(--accent); font-weight: 600; }
.count { display: inline-block; min-width: 20px; margin-left: 4px; padding: 0 6px; border-radius: 10px; background: var(--bad);
  color: #fff; font-size: 12px; line-height: 20px; text-align: center; font-family: var(--num); }
.top-right { display: flex; align-items: center; gap: 16px; }
.clock-box { display: flex; flex-direction: column; align-items: flex-end; }
.clock { font-size: 20px; line-height: 24px; font-weight: 600; letter-spacing: .02em; }
.date { font-family: var(--num); font-size: 12px; line-height: 16px; color: var(--ink-3); letter-spacing: .04em; }
.badge { font-size: 12px; line-height: 20px; padding: 0 8px; border-radius: 4px; background: rgba(79, 216, 255, .1); color: var(--accent);
  border: 1px solid rgba(79, 216, 255, .3); white-space: nowrap; }
.lang { border: 1px solid var(--line-2); background: transparent; border-radius: 4px; padding: 4px 12px; cursor: pointer;
  color: var(--ink-2); font-size: 12px; line-height: 20px; white-space: nowrap; }
.lang:hover { color: var(--ink); border-color: var(--ink-3); }
@media (max-width: 1500px) {
  .top { grid-template-columns: minmax(0, 1fr) auto; row-gap: 12px; }
  .tabs { grid-column: 1 / -1; grid-row: 2; justify-self: start; }
}
@media (max-width: 760px) {
  .top { padding: 8px var(--page-x); gap: 8px 12px; }
  .logo { width: 28px; height: 28px; }
  h1 { font-size: 14px; line-height: 22px; white-space: normal; }
  .brand .sub, .badge, .date { display: none; }
  .clock { font-size: 16px; }
  .tabs button { padding: 4px 12px; }
  .twin { min-width: 640px; }
}

main { padding: var(--gap) var(--page-x) 48px; }
.panel { display: none; }
.panel.on { display: block; }
.panel:not(#p-map) { max-width: 1440px; margin: 0 auto; }
.banner { background: rgba(250, 178, 25, .08); color: var(--warn); border: 1px solid rgba(250, 178, 25, .35); border-radius: var(--radius);
  padding: 12px 16px; margin: 0 auto var(--gap); }
.banner.info { background: rgba(79, 216, 255, .06); color: var(--accent); border-color: rgba(79, 216, 255, .3); }

/* ---------------- 面板（所有页通用） ---------------- */
.pnl, .card, .stat, .station { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.pnl::before, .pnl::after { content: ""; position: absolute; width: 10px; height: 10px; pointer-events: none; border-color: rgba(79, 216, 255, .5); border-style: solid; }
.pnl::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.pnl::after { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }
.pnl-h { display: flex; align-items: center; gap: 8px 16px; padding: var(--pad) var(--pad) 0; flex-wrap: wrap; }
.pnl-h h3 { margin: 0; font-size: 16px; line-height: 24px; font-weight: 600; letter-spacing: .02em; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.pnl-h h3::before { content: ""; width: 3px; height: 14px; background: var(--accent); border-radius: 1px; }
.pnl-h .legend { margin-left: auto; }
.pnl-h .pnl-meta { margin-left: auto; color: var(--ink-3); font-size: 12px; letter-spacing: .02em; }
.pnl-b { padding: 16px var(--pad) var(--pad); }
.card { padding: var(--pad); }
.card h2 { font-size: 16px; line-height: 24px; margin: 0 0 16px; font-weight: 600; display: flex; align-items: center; gap: 8px; letter-spacing: .02em; }
.card h2::before { content: ""; width: 3px; height: 14px; background: var(--accent); border-radius: 1px; }
.card h2 > button { margin-left: auto; }
.card h2 small { font-size: 14px; font-weight: 400; color: var(--ink-3); font-family: var(--num); }
.card h2 .grow { flex: 1; }
.card > .table-wrap { margin: 0 calc(-1 * var(--pad)) calc(-1 * var(--pad)); }
.card > .table-wrap tr:last-child td { border-bottom: 0; }
p.sub { margin: 0 0 16px; color: var(--ink-3); font-size: 14px; line-height: 22px; }
.toolbar p.sub { margin: 0; }
.sub-line { color: var(--ink-3); font-size: 12px; line-height: 20px; letter-spacing: .02em; margin-top: 12px; }
.empty { color: var(--ink-3); padding: 16px 0; text-align: center; margin: 0; }
.ok-txt { color: var(--ok-ink); }
.warn-txt { color: var(--warn); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--ink-2); font-size: 12px; line-height: 20px; letter-spacing: .02em; }
.key { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.key::before { content: ""; width: 12px; height: 3px; border-radius: 2px; background: var(--k); }
.key.ring::before { width: 12px; height: 7px; border-radius: 50%; background: none; border: 1.5px solid var(--ink-3); }
.key.ring.warn::before { border-color: var(--warn); }
.key.ring.bad::before { border-color: var(--bad); }
.key.ring.slow::before { border-style: dashed; border-color: var(--ink-2); }
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; line-height: 20px; padding: 0 8px; border-radius: 4px; white-space: nowrap; letter-spacing: .02em; }
.pill.ok { color: var(--ok-ink); background: rgba(12, 163, 12, .12); }
.pill.warn { color: var(--warn); background: rgba(250, 178, 25, .12); }
.pill.bad { color: var(--bad-ink); background: rgba(208, 59, 59, .16); }

/* ---------------- 现场总览布局：上面一条今日运行；左栏立体现场（主角）＋三块图，右栏船次、提醒、最新识别 ---------------- */
.ov { display: grid; grid-template-columns: minmax(0, 1fr) 360px; grid-template-areas: "kpi kpi" "main side"; gap: var(--gap); align-items: start; }
.ov-kpi { grid-area: kpi; } .ov-main { grid-area: main; } .ov-side { grid-area: side; }
.ov-main, .ov-side { display: flex; flex-direction: column; gap: var(--gap); min-width: 0; }
.ov-bot { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr) minmax(0, 1.15fr); gap: var(--gap); align-items: stretch; }
@media (min-width: 1760px) { .ov { grid-template-columns: minmax(0, 1fr) 400px; } }
@media (max-width: 1440px) {
  .ov { grid-template-columns: minmax(0, 1fr); grid-template-areas: "kpi" "main" "side"; }
  .ov-side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr; align-items: start; }
  .ov-side > #pShips { grid-row: span 2; }
}
@media (max-width: 1100px) { .ov-bot { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .ov-bot > #pFleet { grid-column: 1 / -1; } }
@media (max-width: 760px) {
  .ov-side, .ov-bot { grid-template-columns: minmax(0, 1fr); }
  .ov-side > #pShips { grid-row: auto; }
}

/* 今日运行横条：只放五个数和两个识别点，组之间用空隔开，不画框 */
.kpi { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 48px; padding: 20px var(--pad); }
.kpi-title { display: flex; flex-direction: column; }
.kpi-title b { font-size: 16px; line-height: 24px; font-weight: 600; letter-spacing: .02em; display: flex; align-items: center; gap: 8px; }
.kpi-title b::before { content: ""; width: 3px; height: 14px; background: var(--accent); border-radius: 1px; }
.kpi-title span { color: var(--ink-3); font-size: 12px; line-height: 20px; font-family: var(--num); letter-spacing: .04em; padding-left: 11px; }
.kpi-i { display: flex; flex-direction: column; gap: 4px; }
.kpi-i > span { color: var(--ink-3); font-size: 12px; line-height: 20px; letter-spacing: .02em; white-space: nowrap; }
.kpi-i b { font-family: var(--num); font-size: 28px; line-height: 32px; font-weight: 600; white-space: nowrap; }
.kpi-i b small { font-family: var(--sans); font-size: 12px; font-weight: 400; color: var(--ink-3); margin-left: 4px; letter-spacing: .02em; }
.kpi-i.alarm b { color: var(--bad-ink); }
.kpi-pts { margin-left: auto; display: flex; gap: 32px; }
.kpt { display: grid; grid-template-columns: 8px auto; justify-content: start; column-gap: 12px; align-items: center; }
.kpt .sdot { grid-row: 1 / 3; }
.kpt b { font-size: 14px; line-height: 22px; font-weight: 600; white-space: nowrap; }
.kpt small { color: var(--ink-3); line-height: 20px; letter-spacing: .02em; white-space: nowrap; }
@media (max-width: 1440px) { .kpi { gap: 16px 40px; } }
@media (max-width: 1100px) { .kpi-pts { margin-left: 0; } }
@media (max-width: 760px) {
  .kpi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .kpi-title, .kpi-pts { grid-column: 1 / -1; }
  .kpi-pts { flex-direction: column; gap: 12px; }
}

.live-dot { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; line-height: 20px; color: var(--accent); letter-spacing: .04em; }
.live-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }

/* 车辆分布 */
.fleet-total { display: flex; align-items: baseline; gap: 8px; margin-bottom: 16px; }
.fleet-total b { font-family: var(--num); font-size: 28px; line-height: 32px; font-weight: 600; }
.fleet-total > span:not(.pill) { color: var(--ink-3); font-size: 12px; letter-spacing: .02em; }
.fleet-total .pill { margin-left: auto; align-self: center; }
/* 五行共用一套列宽：标签列按最长的字定宽（印尼语也不截断），条和数对齐 */
.meters { display: grid; grid-template-columns: max-content minmax(40px, 1fr) 24px; gap: 10px 12px; align-items: center; }
.meter-row { display: contents; color: var(--ink-2); }
.meter-row span { white-space: nowrap; color: var(--ink-2); }
.meter-row b { font-family: var(--num); font-size: 16px; color: var(--ink); text-align: right; font-weight: 600; }
.meter { height: 6px; background: #10203a; border-radius: 3px; overflow: hidden; }
.meter i { display: block; height: 100%; background: #6b86ad; border-radius: 3px; transition: width .6s ease; }
.sdot, .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); flex: none; display: inline-block; }
.reading > .sdot, .sdot.reading, .dot.reading, .syncing > .sdot, .sdot.syncing, .dot.syncing { background: var(--ok); box-shadow: 0 0 0 3px rgba(12, 163, 12, .2), 0 0 8px rgba(12, 163, 12, .8); }
.connected_idle > .sdot, .sdot.connected_idle, .dot.connected_idle { background: var(--warn); box-shadow: 0 0 0 3px rgba(250, 178, 25, .18); }
.offline > .sdot, .error > .sdot, .connecting > .sdot, .sdot.offline, .sdot.error, .sdot.connecting,
.dot.error, .dot.connecting, .dot.offline { background: var(--bad); box-shadow: 0 0 0 3px rgba(208, 59, 59, .22); }

/* 船次装载 */
.ship-card + .ship-card { margin-top: 24px; }
.ship-card.waiting { opacity: .7; }
.sc-head { display: flex; align-items: center; gap: 8px; }
.sc-head i { width: 10px; height: 10px; border-radius: 2px; background: var(--c); flex: none; }
.sc-head b { font-size: 16px; line-height: 24px; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-head em { margin-left: auto; font-style: normal; font-family: var(--num); font-size: 28px; line-height: 32px; font-weight: 600; }
.sc-head em small { font-size: 12px; color: var(--ink-3); margin-left: 2px; }
.sc-meta { color: var(--ink-3); font-size: 12px; line-height: 20px; letter-spacing: .02em; margin: 0 0 12px 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-bar { display: flex; gap: 2px; height: 8px; background: #10203a; border-radius: 4px; overflow: hidden; }
.sc-bar span { display: block; height: 100%; background: var(--c); transition: width .6s ease; }
.sc-bar span.tr { opacity: .4; }
.sc-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; color: var(--ink-3); font-size: 12px; line-height: 20px; letter-spacing: .02em; }
.sc-nums b { display: block; font-family: var(--num); font-size: 16px; line-height: 22px; color: var(--ink); font-weight: 600; letter-spacing: 0; }
.sc-fleet { margin-top: 8px; font-size: 12px; line-height: 20px; color: var(--ink-3); letter-spacing: .02em; }

/* 提醒、最新识别：行与行之间不画线 */
.rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rows li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 12px; align-items: center; }
.rows li small { color: var(--ink-3); font-family: var(--num); }
.rows li .num { color: var(--ink); }
.rows.feed li { grid-template-columns: 40px minmax(0, 1fr) auto; }
.rows li b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#pAlerts .ghost { margin-top: 16px; }

/* ---------------- 立体现场 ---------------- */
.ov-twin { display: flex; flex-direction: column; min-width: 0; }
.ov-twin .pnl-h { row-gap: 8px; }
.twin-wrap { position: relative; padding: 16px var(--pad) var(--pad); flex: 1; display: flex; align-items: center; overflow-x: auto; }
.twin { position: relative; width: 100%; min-width: 720px; aspect-ratio: 1280 / 540;
  background: radial-gradient(ellipse 60% 70% at 46% 48%, #0c1b33 0%, #070f1d 62%, transparent 100%); border-radius: 3px; }
.twin-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* 分区放大：整个场景（图和标签）放在 stage 里一起缩放，标签反向缩回原大小 */
.twin { overflow: hidden; }
.twin-stage { position: absolute; inset: 0; transform-origin: 0 0; transition: transform .65s cubic-bezier(.32, .72, 0, 1); }
.twin-stage.moving { will-change: transform; }
.twin-labels .chip { transform-origin: 0 0; scale: var(--zs, 1); transition: scale .65s cubic-bezier(.32, .72, 0, 1); }
.twin .l-floor, .twin .l-back, .twin .l-ships, .twin .occ { pointer-events: none; }
.twin .zone-fp { fill: none; stroke: none; }
.twin .zone-fp.on { fill: rgba(79, 216, 255, .05); stroke: rgba(79, 216, 255, .6); stroke-width: 1.2; stroke-dasharray: 6 4; vector-effect: non-scaling-stroke; }
.twin .spot { fill: transparent; stroke: none; pointer-events: none; }
.twin:not([data-zone=""]) .spot { pointer-events: all; cursor: help; }
.twin:not([data-zone=""]) .spot:hover { fill: rgba(79, 216, 255, .07); stroke: rgba(79, 216, 255, .8); stroke-width: 1; stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; }
.twin-hud { display: flex; align-items: center; gap: 4px; padding: 4px;
  background: rgba(5, 11, 22, .86); border: 1px solid var(--line-2); border-radius: 6px; }
.twin-hud button { border: 0; background: none; color: var(--ink-2); font-size: 14px; line-height: 20px; padding: 2px 12px; border-radius: 4px; cursor: pointer; white-space: nowrap; }
.twin-hud button:hover, .twin-hud button.hover { color: var(--ink); background: rgba(79, 216, 255, .08); }
.twin-hud button.on { color: var(--ink); background: var(--panel-2); box-shadow: inset 0 -2px 0 var(--accent); }
.twin-hud .hud-hint { color: var(--ink-3); font-size: 12px; letter-spacing: .02em; padding: 0 8px; white-space: nowrap; }
.twin-edge { position: absolute; top: 0; bottom: 0; z-index: 2; width: 74px; border: 0; cursor: pointer; color: var(--ink-2);
  font-size: 14px; letter-spacing: .02em; display: flex; align-items: center; }
.twin-edge.left { left: 0; justify-content: flex-start; padding-left: 16px; background: linear-gradient(to right, rgba(5, 10, 20, .88), rgba(5, 10, 20, 0)); }
.twin-edge.right { right: 0; justify-content: flex-end; padding-right: 16px; background: linear-gradient(to left, rgba(5, 10, 20, .88), rgba(5, 10, 20, 0)); }
.twin-edge:hover { color: var(--accent); }
.twin-edge[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { .twin-stage, .twin-labels .chip { transition: none; } }
@media (max-width: 1500px) { .twin-hud .hud-hint { display: none; } }

.spot-tip { position: absolute; z-index: 6; pointer-events: none; width: 288px; background: rgba(8, 16, 30, .97); border: 1px solid var(--line-2);
  border-radius: 4px; box-shadow: 0 14px 34px rgba(0, 0, 0, .55); padding: 16px; }
.spot-tip header { display: flex; align-items: center; gap: 8px; font-size: 16px; line-height: 24px; }
.spot-tip header i { width: 10px; height: 10px; border-radius: 2px; background: var(--c); }
.spot-tip .sp-sub { color: var(--ink-3); font-size: 12px; line-height: 20px; letter-spacing: .02em; margin: 0 0 12px; }
.spot-tip .sp-kv { display: flex; justify-content: space-between; gap: 16px; padding: 2px 0; }
.spot-tip .sp-kv span { color: var(--ink-3); }
.spot-tip .sp-kv b { font-family: var(--num); font-weight: 600; }
.spot-tip h5 { margin: 16px 0 8px; font-size: 12px; line-height: 20px; letter-spacing: .02em; color: var(--ink-2); font-weight: 600; }
.spot-tip .sp-list { list-style: none; margin: 0; padding: 0; }
.spot-tip .sp-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 2px 0; }
.spot-tip .sp-list i { width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
.spot-tip .sp-list b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spot-tip .sp-list span, .spot-tip .sp-list small { color: var(--ink-2); font-family: var(--num); white-space: nowrap; }
.spot-tip .sp-list em { font-style: normal; font-size: 12px; }
.spot-tip .sp-list em.l1 { color: var(--warn); }
.spot-tip .sp-list em.l2 { color: var(--bad-ink); }
.spot-tip .sp-empty { color: var(--ink-3); margin: 2px 0; }
.spot-tip .sp-note { color: var(--ink-3); font-size: 12px; line-height: 20px; margin: 12px 0 0; }
.spot-tip .sp-big { font-family: var(--num); font-size: 28px; font-weight: 600; line-height: 32px; margin: 0 0 8px; }
.spot-tip .sp-big small { font-size: 12px; color: var(--ink-3); margin-left: 2px; }
.spot-tip .sc-bar { margin-bottom: 12px; }
.twin {
  --anatomy-paper: #0d192b; --anatomy-face: #13233b; --anatomy-top: #1a3152;
  --anatomy-shade-0: #08111f; --anatomy-shade-1: #0c182b; --anatomy-shade-2: #102038; --anatomy-shade-3: #152946;
  --anatomy-lit-top: #1f4166; --anatomy-lit-shade: #173456;
  --anatomy-hi: #93b4de; --anatomy-mid: #4f6c95; --anatomy-lo: #2c4469; --anatomy-faint: #1b2e4b; --anatomy-lit: #6fe3ff;
  --anatomy-halo: #000206; --anatomy-halo-opacity: .85; --anatomy-dot: #93b4de; --anatomy-weight: .7px;
}
.twin .iso-halo { filter: blur(5px); }
.twin .w-river { fill: #04112a; }
.twin .w-flow { fill: none; stroke: #13406e; stroke-width: 1; stroke-dasharray: 10 26; opacity: .7; }
.twin .w-grid { fill: none; stroke: #12233d; stroke-width: .7; }
.twin .w-pad { fill: #0b182c; stroke: #223c62; stroke-width: 1; }
.twin .w-apron { fill: #08121f; }
.twin .w-road { fill: #060d19; }
.twin .read-zone { fill: rgba(79, 216, 255, .05); stroke: rgba(79, 216, 255, .45); stroke-width: .8; stroke-dasharray: 3 3; }
.twin .lane-flow { fill: none; stroke: var(--accent); stroke-opacity: .3; stroke-width: 1.3; stroke-dasharray: 2 16; stroke-linecap: round; }
.twin .pulse .pr { fill: none; stroke: var(--accent); stroke-width: 1.1; opacity: 0; }
.twin .win { fill: #091729; stroke: #22426c; stroke-width: .5; }
.twin .win.lit { fill: #11365a; stroke: #2f6597; }
.twin .door { fill: #07101d; stroke: #22426c; stroke-width: .5; }
.twin .palm > .iso-top { fill: #0f2a33; }
.twin .palm > .iso-fill { fill: #0c2129; }
.twin .tank-ring { fill: none; stroke: transparent; stroke-width: 1.8; }
.twin .tank-ring.feed { stroke: var(--c); filter: drop-shadow(0 0 3px var(--c)); }
.twin .ant .ant-body .iso-top, .twin .ant .ant-body .iso-shade { fill: #1c3554; }
.twin .ant.reading .ant-body .iso-top, .twin .ant.reading .ant-body .iso-shade { fill: #1d6f8c; }
.twin .ant.reading .ant-body .iso-edge { stroke: var(--accent); }
.twin .ant.reading .ant-body { filter: drop-shadow(0 0 4px rgba(79, 216, 255, .8)); }
.twin .ant.connected_idle .ant-body .iso-edge { stroke: var(--warn); }
.twin .ant.offline .ant-body .iso-edge, .twin .ant.error .ant-body .iso-edge, .twin .ant.connecting .ant-body .iso-edge { stroke: var(--bad); }

/* 油罐车：罐体用船次颜色，满载深、空车浅 */
.twin .truck { cursor: pointer; --c: #7d8fab; --m0: 9%; --m1: 12%; --m2: 15%; --m3: 19%; --mt: 26%; }
.twin .truck.full { --m0: 34%; --m1: 44%; --m2: 54%; --m3: 62%; --mt: 76%; }
.twin .truck .m { display: none; }
.twin .truck.dp .m1, .twin .truck.dn .m-1 { display: inline; }
.twin .tk-fill { fill: color-mix(in srgb, var(--c) var(--m2), #0b1526); }
.twin .tk-0 { fill: color-mix(in srgb, var(--c) var(--m0), #060c18); }
.twin .tk-1 { fill: color-mix(in srgb, var(--c) var(--m1), #08101e); }
.twin .tk-2 { fill: color-mix(in srgb, var(--c) var(--m2), #0b1526); }
.twin .tk-3 { fill: color-mix(in srgb, var(--c) var(--m3), #0f1c30); }
.twin .tk-t, .twin .tk-cap { fill: color-mix(in srgb, var(--c) var(--mt), #13233b); }
.twin .tk-edge { fill: none; stroke: color-mix(in srgb, var(--c) 60%, #93b4de); stroke-width: .7; vector-effect: non-scaling-stroke; }
.twin .truck.full .tk-edge { stroke: color-mix(in srgb, var(--c) 85%, #ffffff); }
.twin .t-glass { fill: #08182b; stroke: #3c6593; stroke-width: .5; }
.twin .t-head circle { fill: #e9f7ff; filter: drop-shadow(0 0 2px #bfeaff); }
.twin .t-tail circle { fill: var(--bad); }
.twin .t-wheel { fill: #03060c; stroke: #2c4469; stroke-width: .5; }
.twin .t-hub { fill: #2c4469; }
.twin .t-ring { fill: none; stroke: none; }
.twin .truck.slow .t-ring { stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 3 3; }
.twin .truck.l1 .t-ring { stroke: var(--warn); stroke-width: 1.4; fill: rgba(250, 178, 25, .1); }
.twin .truck.l2 .t-ring { stroke: var(--bad); stroke-width: 1.6; fill: rgba(208, 59, 59, .16); }
.twin .truck.sel .t-ring, .twin .truck:hover .t-ring { stroke: var(--accent); stroke-width: 1.4; }
.twin .truck.untagged { opacity: .5; }

/* 驳船 */
.twin .b-shadow { fill: #020a18; opacity: .9; }
.twin .b-wl { stroke: color-mix(in srgb, var(--c) 70%, #93b4de); }
.twin .ship .hatch.on > .iso-top { fill: color-mix(in srgb, var(--c) 72%, #13233b); }
.twin .ship .hatch.on > .iso-shade { fill: color-mix(in srgb, var(--c) 42%, #0b1526); }
.twin .ship .hatch.on > .iso-edge { stroke: color-mix(in srgb, var(--c) 80%, #ffffff); }
.twin .ship .hatch.on { filter: drop-shadow(0 0 3px var(--c)); }
.twin .hose { fill: none; stroke: #2c4469; stroke-width: 1.4; stroke-linecap: round; }
.twin .hose.on { stroke: var(--c); stroke-dasharray: 3 4; }

@media (prefers-reduced-motion: no-preference) {
  .twin .w-flow { animation: dash 7s linear infinite; }
  .twin .lane-flow { animation: dash-lane 2.6s linear infinite; }
  .twin .hose.on { animation: dash-hose .7s linear infinite; }
  .twin .pulse.live .pr { animation: scan 3.6s ease-out infinite; }
  .twin .pulse.live .p1 { animation-delay: .45s; }
  .twin .pulse.live .p2 { animation-delay: .9s; }
  .twin .pulse.burst .pr { animation: burst 1.4s ease-out 2; }
  .twin .pulse.burst .p1 { animation-delay: .18s; }
  .twin .pulse.burst .p2 { animation-delay: .36s; }
  .twin .truck.l2 .t-ring { animation: alarm 1.2s ease-in-out infinite; }
  .live-dot::before { animation: blink 1.8s ease-in-out infinite; }
}
@keyframes dash { to { stroke-dashoffset: -72; } }
@keyframes dash-lane { to { stroke-dashoffset: -36; } }
@keyframes dash-hose { to { stroke-dashoffset: -14; } }
@keyframes scan { 0% { opacity: 0; } 18% { opacity: .5; } 100% { opacity: 0; } }
@keyframes burst { 0% { opacity: 0; } 15% { opacity: 1; stroke-width: 2; } 100% { opacity: 0; } }
@keyframes alarm { 50% { opacity: .35; } }
@keyframes blink { 50% { opacity: .35; } }

/* 场景标签 */
.twin-labels { position: absolute; inset: 0; pointer-events: none; }
.chip { position: absolute; transform: translate(-50%, -100%); white-space: nowrap; font-size: 12px; line-height: 18px;
  color: var(--ink-2); background: rgba(6, 13, 25, .88); border: 1px solid var(--line-2); border-radius: 3px; padding: 1px 8px;
  display: flex; align-items: center; gap: 6px; }
.chip b { color: var(--ink); font-weight: 600; }
.chip small { color: var(--ink-3); font-family: var(--num); }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); flex: none; }
.chip.zone { transform: translate(0, -50%); background: none; border: 0; color: var(--ink-2); font-size: 14px; letter-spacing: .08em; font-weight: 600; }
.chip.zone.dim, .chip.dim { background: none; border: 0; color: var(--ink-3); font-weight: 400; letter-spacing: .06em; }
.chip.lane { background: none; border: 0; color: var(--ink-3); transform: translate(-50%, -50%); letter-spacing: .04em; }
.chip.tank { background: none; border: 0; color: var(--ink-3); }
.chip.tank.feed { background: rgba(6, 13, 25, .88); border: 1px solid color-mix(in srgb, var(--c) 70%, transparent); color: var(--ink); }
.chip.tank i { border-radius: 2px; background: var(--c); width: 6px; height: 6px; }
.chip.station { padding: 1px 8px; color: var(--ink); }
.chip.station.side { transform: translate(8px, -100%); }
.chip.tank span { color: var(--ink-2); }
.chip.station.reading i, .chip.station.syncing i { background: var(--ok); box-shadow: 0 0 6px var(--ok); }
.chip.station.connected_idle i { background: var(--warn); }
.chip.station.offline i, .chip.station.error i, .chip.station.connecting i { background: var(--bad); }
.chip.ship { border-color: color-mix(in srgb, var(--c) 70%, transparent); padding: 3px 8px; transform: translate(10px, -50%); }
.chip.ship i { border-radius: 2px; background: var(--c); }
.chip.ship span { font-family: var(--num); font-size: 16px; font-weight: 600; color: var(--ink); }
.chip.truck-chip { font-family: var(--num); padding: 0 6px; transform: translate(-50%, -100%); }
.chip.truck-chip.l1 { border-color: var(--warn); }
.chip.truck-chip.l1::before, .chip.truck-chip.l2::before { content: "▲"; font-size: 10px; }
.chip.truck-chip.l1::before { color: var(--warn); }
.chip.truck-chip.l2 { border-color: var(--bad); }
.chip.truck-chip.l2::before { color: var(--bad-ink); }
.chip.truck-chip.slow { border-style: dashed; }

.map-tip { position: absolute; z-index: 5; background: rgba(8, 16, 30, .96); border: 1px solid var(--line-2); border-radius: 4px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .5); padding: 16px; min-width: 232px; }
.map-tip b { display: flex; align-items: center; gap: 8px; font-size: 16px; line-height: 24px; margin-bottom: 8px; }
.map-tip b i { width: 10px; height: 10px; border-radius: 2px; background: var(--c); }
.map-tip div { display: flex; justify-content: space-between; gap: 16px; padding: 2px 0; }
.map-tip span { color: var(--ink-3); font-size: 12px; letter-spacing: .02em; }

/* ---------------- 图表（SVG 按容器实际宽度画，1 单位＝1 像素，刻度字就是 12 号） ---------------- */
.viz { display: block; width: 100%; height: auto; overflow: visible; }
.viz .grid { stroke: #13223a; stroke-width: 1; }
.viz .axis { stroke: #2a4166; stroke-width: 1; }
.viz .tick { fill: var(--ink-3); font-size: 12px; font-family: var(--num); }
.viz .hit-area { fill: transparent; }
.viz .hit:hover .hit-area { fill: rgba(79, 216, 255, .05); }
.viz .limit { stroke-width: 1.5; }
.viz .limit.warn { stroke: var(--warn); }
.viz .limit.bad { stroke: var(--bad); }
.viz .limit-t { fill: var(--ink-2); font-size: 12px; }
.viz-tip { position: fixed; z-index: 30; pointer-events: none; background: rgba(8, 16, 30, .96); border: 1px solid var(--line-2);
  border-radius: 4px; padding: 12px; box-shadow: 0 10px 24px rgba(0, 0, 0, .45); }
.viz-tip .h { color: var(--ink-3); font-size: 12px; line-height: 20px; margin-bottom: 4px; font-family: var(--num); }
.viz-tip div:not(.h) { display: flex; align-items: center; gap: 8px; }
.viz-tip i { width: 10px; height: 3px; border-radius: 1px; }
.viz-tip b { font-family: var(--num); font-weight: 600; }
.viz-tip span { color: var(--ink-2); font-size: 12px; }

/* ---------------- 其他页：看板、表格、表单 ---------------- */
.grid { display: grid; gap: var(--gap); }
.dash-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 900px) { .dash-grid { grid-template-columns: 1fr; } }
.stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--gap); margin-bottom: var(--gap); }
@media (max-width: 1100px) { .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { padding: 16px var(--pad); }
.stat .k { color: var(--ink-3); font-size: 12px; line-height: 20px; letter-spacing: .02em; }
.stat .v { font-family: var(--num); font-size: 28px; line-height: 32px; font-weight: 600; margin-top: 4px; }
.stat .v small { font-family: var(--sans); font-size: 12px; font-weight: 400; color: var(--ink-3); margin-left: 4px; }
.stat.alarm .v { color: var(--bad-ink); }
.stations { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: var(--gap); }
.station { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.station .name { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.station .meta { color: var(--ink-3); font-size: 12px; line-height: 20px; }
#p-dash .truck { display: grid; grid-template-columns: 160px minmax(0, 1fr) 96px; gap: 24px; align-items: center; padding: 12px 0; }
#p-dash .truck .plate { font-weight: 600; font-size: 16px; line-height: 24px; }
#p-dash .truck .who { color: var(--ink-3); font-size: 12px; line-height: 20px; }
#p-dash .truck .el { text-align: right; font-family: var(--num); font-size: 20px; line-height: 28px; font-weight: 600; }
#p-dash .truck .el small { font-family: var(--sans); font-size: 12px; font-weight: 400; color: var(--ink-3); }
#p-dash .truck.l1 .el { color: var(--warn); }
#p-dash .truck.l2 .el { color: var(--bad-ink); }
.bar { position: relative; height: 8px; background: #10203a; border-radius: 4px; }
.bar .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: #3987e5; }
#p-dash .truck.l1 .bar .fill { background: var(--warn); }
#p-dash .truck.l2 .bar .fill { background: var(--bad); }
.bar .mark { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink-3); }
.bar-labels { position: relative; height: 20px; font-size: 12px; line-height: 20px; color: var(--ink-3); margin-top: 4px; }
.bar-labels span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.bar-labels span:first-child { transform: none; }
@media (max-width: 600px) { #p-dash .truck { grid-template-columns: 1fr 80px; } #p-dash .truck .track { grid-column: 1 / -1; grid-row: 2; } }

.list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.list li > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.list li > .tag { align-self: center; }
.list .t { color: var(--ink-3); font-family: var(--num); font-size: 12px; white-space: nowrap; }
.list li > span:first-child:has(> .t) { flex: none; }
.list .t.mono { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: right; min-width: 0; font-family: var(--mono); font-size: 12px; }
.mono { font-family: var(--mono); font-size: 12px; }

.tag { display: inline-block; font-size: 12px; line-height: 20px; padding: 0 8px; border-radius: 4px; white-space: nowrap; letter-spacing: .02em;
  background: #13223a; color: var(--ink-2); }
.tag.ok { background: rgba(12, 163, 12, .14); color: var(--ok-ink); }
.tag.rfid { background: rgba(57, 135, 229, .16); color: #8dbbf5; }
.tag.warn { background: rgba(250, 178, 25, .13); color: var(--warn); }
.tag.bad { background: rgba(208, 59, 59, .17); color: var(--bad-ink); }
.tag.idle { background: rgba(236, 131, 90, .13); color: var(--serious); }
.tags { display: flex; flex-wrap: wrap; gap: 4px; }

.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: var(--gap); }
.toolbar .grow { flex: 1; }
input, select, textarea { border: 1px solid var(--line-2); border-radius: 4px; padding: 6px 12px; background: #081222; color: var(--ink); line-height: 22px; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(79, 216, 255, .25); border-color: var(--accent); }
button.btn, button.ghost, .dlg-actions button, a.btn { border: 1px solid var(--accent-2); background: var(--accent-2); color: #fff;
  border-radius: 4px; padding: 6px 16px; cursor: pointer; text-decoration: none; display: inline-block; font-size: 14px; line-height: 22px; white-space: nowrap; }
button.btn:hover, .dlg-actions button:hover, a.btn:hover { filter: brightness(1.12); }
button.ghost, .dlg-actions .ghost, a.btn.ghost { background: transparent; color: var(--ink-2); border-color: var(--line-2); }
button.ghost:hover, a.btn.ghost:hover { color: var(--ink); border-color: var(--ink-3); }
button.sm { padding: 2px 12px; font-size: 12px; line-height: 20px; letter-spacing: .02em; }
button:disabled { opacity: .5; cursor: default; }

/* 表格：行高 48，左右留 16，首尾和面板标题对齐；同一件事的第二个字段叠在下一行 */
.table-wrap { overflow-x: auto; padding: 0; }
.card.table-wrap { padding: 0; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
th { font-weight: 400; color: var(--ink-3); font-size: 12px; line-height: 20px; letter-spacing: .02em; background: #0a1322; }
th:first-child, td:first-child { padding-left: var(--pad); }
th:last-child, td:last-child { padding-right: var(--pad); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(79, 216, 255, .03); }
td.num, th.num { text-align: right; }
td.muted, td .muted { color: var(--ink-3); }
td .two { display: block; color: var(--ink-3); font-size: 12px; line-height: 20px; letter-spacing: .02em; }
td b { font-weight: 600; }
tr.l1 td:first-child { box-shadow: inset 3px 0 0 var(--warn); }
tr.l2 td:first-child { box-shadow: inset 3px 0 0 var(--bad); }
td .actions { display: flex; gap: 8px; }
td.wrap { white-space: normal; min-width: 200px; max-width: 280px; color: var(--ink-2); }
td.wrap .two { color: var(--ink-3); }

/* 表格行里的“更多”菜单 */
.menu { position: fixed; z-index: 35; min-width: 168px; padding: 8px; background: var(--panel-2); border: 1px solid var(--line-2);
  border-radius: 6px; box-shadow: 0 16px 40px rgba(0, 0, 0, .55); display: flex; flex-direction: column; gap: 2px; }
.menu button { text-align: left; border: 0; background: none; padding: 6px 12px; border-radius: 4px; cursor: pointer; color: var(--ink-2); white-space: nowrap; }
.menu button:hover { background: rgba(79, 216, 255, .08); color: var(--ink); }

.reader-head { display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--ink-3); font-size: 12px; line-height: 20px; margin-bottom: 16px; }
.reader-head b { color: var(--ink); font-weight: 600; }
.rssi { display: inline-block; height: 6px; border-radius: 3px; background: #3987e5; vertical-align: middle; margin-right: 8px; }

.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.form-grid label, #dlgBody label { display: flex; flex-direction: column; gap: 8px; font-size: 12px; line-height: 20px; color: var(--ink-2); letter-spacing: .02em; }
.form-grid label input, #dlgBody label input, #dlgBody label select, #dlgBody label textarea { font-size: 14px; letter-spacing: 0; }
.form-grid .hint { font-size: 12px; line-height: 20px; color: var(--ink-3); margin-top: -4px; }

dialog { border: 1px solid var(--line-2); border-radius: 8px; padding: 0; width: min(460px, calc(100vw - 32px));
  background: var(--panel); color: var(--ink); box-shadow: 0 24px 60px rgba(0, 0, 0, .6); }
dialog::backdrop { background: rgba(2, 6, 14, .65); }
dialog form { padding: 24px; }
dialog h3 { margin: 0 0 16px; font-size: 16px; line-height: 24px; font-weight: 600; letter-spacing: .02em; }
#dlgBody { display: flex; flex-direction: column; gap: 16px; }
#dlgBody p { margin: 0; color: var(--ink-2); }
.dlg-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; }
.err { color: var(--bad-ink); min-height: 1em; margin: 8px 0 0; font-size: 12px; }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; max-height: 280px; overflow-y: auto;
  border: 1px solid var(--line-2); border-radius: 4px; padding: 12px 16px; }
.check { flex-direction: row !important; align-items: center; gap: 8px !important; color: var(--ink) !important; font-size: 14px !important; letter-spacing: 0 !important; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--panel-2); color: var(--ink);
  border: 1px solid var(--line-2); padding: 8px 16px; border-radius: 4px; z-index: 40; }
.section-gap { margin-top: var(--gap); }
.kpt b, .kpt small { grid-column: 2; }
tr.more-row td, tr.more-row:hover td { background: none; padding-top: 16px; padding-bottom: 16px; }
.more-line:not(:empty) { margin-top: 16px; }

/* 登录用户（云端网站） */
.user-box { display: flex; align-items: center; gap: 8px; }
.user-box .who { display: flex; flex-direction: column; font-size: 12px; line-height: 16px; color: var(--ink-2); white-space: nowrap; text-align: right; }
.user-box .who small { color: var(--ink-3); font-size: 12px; letter-spacing: .02em; }
a.lang { text-decoration: none; display: inline-block; }

/* 登录页、账号页 */
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 48px 16px; box-sizing: border-box; }
.auth-card { width: min(400px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 32px 24px; box-sizing: border-box; }
.auth-card .brand { margin-bottom: 24px; }
.auth-card h2 { margin: 0 0 8px; font-size: 16px; line-height: 24px; font-weight: 600; letter-spacing: .02em; }
.auth-card p.sub { margin: 0 0 24px; }
.auth-card form { display: flex; flex-direction: column; gap: 16px; }
.auth-card label { display: flex; flex-direction: column; gap: 8px; font-size: 12px; line-height: 20px; color: var(--ink-2); letter-spacing: .02em; }
.auth-card label input { font-size: 14px; letter-spacing: 0; }
.auth-card button.btn { width: 100%; padding: 8px 16px; }
.auth-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; }
.page-narrow { max-width: 960px; margin: 0 auto; }
.users-table { width: 100%; border-collapse: collapse; }
.users-table th, .users-table td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 22px; }
.users-table th { color: var(--ink-3); font-size: 12px; font-weight: 400; letter-spacing: .02em; }
.users-table td small { display: block; color: var(--ink-3); font-size: 12px; line-height: 20px; }
.check { flex-direction: row !important; align-items: center; gap: 8px !important; font-size: 14px !important; color: var(--ink) !important; }
@media (max-width: 760px) {
  /* 手机上开着登录时，右上角放不下：时间、用户、语言换到第二行 */
  .top:has(.user-box:not([hidden])) .top-right { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; gap: 8px; }
  .top:has(.user-box:not([hidden])) .tabs { grid-row: 3; }
  .top:has(.user-box:not([hidden])) h1 { white-space: nowrap; }
  .user-box .who { flex-direction: row; gap: 4px; align-items: baseline; }
}

/* 按角色隐藏：只看看不到操作按钮，操作员看不到管理员才有的 */
body[data-role="viewer"] .need-op, body[data-role="viewer"] .need-admin, body[data-role="operator"] .need-admin { display: none !important; }

/* 统计页 */
.two-col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.toolbar .muted { color: var(--ink-3); font-size: 12px; }
.toolbar label.inline { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-2); letter-spacing: .02em; }
.bar-cell { display: block; width: 160px; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.bar-cell i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } .bar-cell { width: 64px; } }

/* 账号页：只看链接一行 */
.link-row { display: flex; gap: 8px; align-items: center; margin-bottom: 16px; }
.link-row input { flex: 1; min-width: 0; font-family: var(--mono, ui-monospace, monospace); font-size: 12px; }
