/* 安途代驾 · 设计系统
   亮色底 + 商务蓝主色，稳重大气 */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg: #EEF1F6;
  --bg-2: #F7F9FC;
  --surface: #FFFFFF;
  --surface-2: #F1F4F9;
  --surface-3: #E4E9F2;
  --line: rgba(17, 34, 64, .08);
  --line-2: rgba(17, 34, 64, .16);
  --text: #1B2A41;
  --text-2: #5A6B85;
  --text-3: #97A3B6;
  --neon: #2563EB;
  --neon-2: #1D4ED8;
  --neon-ink: #FFFFFF;
  --neon-soft: rgba(37, 99, 235, .08);
  --neon-line: rgba(37, 99, 235, .32);
  --danger: #E5484D;
  --danger-soft: rgba(229, 72, 77, .10);
  --warn: #C77700;
  --r: 16px;
  --r-sm: 10px;
  --shadow: 0 12px 32px rgba(27, 42, 65, .10);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

html, body { height: 100%; }

body {
  margin: 0;
  background: #E9EDF4;
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}

button { font: inherit; color: inherit; background: none; border: none; padding: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
input:focus, textarea:focus { outline: none; }
::-webkit-scrollbar { width: 0; height: 0; }

/* ---------- 外壳 ---------- */
#app {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 430px;
  height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--bg-2);
}

#screen { flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; }
#screen.no-pad { overflow: hidden; }

@media (min-width: 560px) {
  body { display: grid; place-items: center; height: 100dvh; }
  #app {
    height: min(880px, calc(100dvh - 40px));
    border: 1px solid var(--line);
    border-radius: 30px;
    box-shadow: 0 24px 70px rgba(27, 42, 65, .18);
  }
}

/* ---------- 顶栏 ---------- */
.topbar {
  display: flex; align-items: center; gap: 10px;
  padding: calc(env(safe-area-inset-top) + 14px) 18px 12px;
  background: var(--bg-2);
  position: relative; z-index: 5;
}
.topbar.floating { position: absolute; left: 0; right: 0; top: 0; background: linear-gradient(180deg, rgba(247,249,252,.94), rgba(247,249,252,0)); }
.topbar h1 { flex: 1; margin: 0; font-size: 17px; font-weight: 500; letter-spacing: .2px; }
.iconbtn {
  width: 36px; height: 36px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%; background: rgba(17,34,64,.05); border: 1px solid var(--line);
}
.iconbtn:active { background: rgba(17,34,64,.12); }

/* ---------- 通用块 ---------- */
.pad { padding: 0 18px; }
.pad-b { padding-bottom: 24px; }
.stack { display: flex; flex-direction: column; gap: 12px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px;
}
.card.tight { padding: 6px 14px; }
.card.neon { border-color: var(--neon-line); background: linear-gradient(180deg, rgba(37,99,235,.06), rgba(37,99,235,.02)); }

.sec-title { font-size: 13px; color: var(--text-2); margin: 20px 18px 8px; font-weight: 400; }

.muted { color: var(--text-2); }
.dim { color: var(--text-3); }
.neon { color: var(--neon); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: -.3px; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.grow { flex: 1; min-width: 0; }
.ellip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.rowf { display: flex; align-items: center; gap: 12px; }

/* ---------- 动作条列表 ---------- */
.row-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 0; min-height: 52px;
  border-bottom: 1px solid var(--line);
  width: 100%; text-align: left;
}
.row-item:last-child { border-bottom: none; }
.row-item:active { opacity: .65; }
.row-item .k { flex: 1; font-size: 15px; }
.row-item .v { color: var(--text-2); font-size: 14px; }
.chev { width: 8px; height: 8px; flex: none; border-right: 1.5px solid var(--text-3); border-top: 1.5px solid var(--text-3); transform: rotate(45deg); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 20px; width: 100%;
  border-radius: 14px; border: 1px solid var(--line-2);
  background: var(--surface-2); color: var(--text);
  font-size: 16px; font-weight: 500;
  transition: transform .12s ease, opacity .12s ease;
}
.btn:active { transform: scale(.98); opacity: .85; }
.btn.sm { height: 40px; font-size: 14px; border-radius: 11px; width: auto; padding: 0 16px; }
.btn.primary {
  background: var(--neon); border-color: var(--neon); color: var(--neon-ink);
  box-shadow: 0 8px 24px rgba(37,99,235,.28);
}
.btn.danger { background: var(--danger-soft); border-color: rgba(255,92,92,.35); color: var(--danger); }
.btn.ghost { background: transparent; }
.btn[disabled] { opacity: .4; pointer-events: none; }

.btnbar { display: flex; gap: 10px; }

/* ---------- 输入 ---------- */
.field {
  display: flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 16px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px;
}
.field:focus-within { border-color: var(--neon-line); }
.field input { flex: 1; background: none; border: none; font-size: 16px; min-width: 0; }
.field input::placeholder { color: var(--text-3); }
.prefix { color: var(--text-2); font-size: 15px; flex: none; }

.searchbar {
  display: flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 14px;
  background: var(--surface-2); border-radius: 12px; border: 1px solid var(--line);
}
.searchbar input { flex: 1; background: none; border: none; font-size: 15px; }

/* ---------- 段选 / 标签 ---------- */
.seg { display: flex; gap: 8px; }
.seg button {
  padding: 8px 14px; border-radius: 10px; font-size: 13px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text-2);
}
.seg button.on { border-color: var(--neon-line); background: var(--neon-soft); color: var(--neon); }

.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 12px; border-radius: 9px; font-size: 13px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text-2);
}
.chip.on { border-color: var(--neon-line); background: var(--neon-soft); color: var(--neon); }
.tag { display: inline-block; padding: 2px 7px; border-radius: 5px; font-size: 11px; background: var(--surface-3); color: var(--text-2); }
.tag.neon { background: var(--neon-soft); color: var(--neon); }
.tag.danger { background: var(--danger-soft); color: var(--danger); }
.tag.warn { background: rgba(199,119,0,.10); color: var(--warn); }

/* ---------- 地图 ---------- */
.map-wrap { position: relative; background: #E8ECF2; }
.map { position: absolute; inset: 0; }
.leaflet-container { background: #E8ECF2 !important; font-family: var(--font) !important; }
/* 高德底图本身是亮色的，与亮色主题一致，无需再调色 */
.leaflet-control-attribution { display: none !important; }
.leaflet-control-zoom { display: none; }

/* 百度地图：自带控件（logo、版权、比例尺）统一隐藏，换成右下角一行淡色标注 */
.map .anchorBL,
.map .BMap_cpyCtrl,
.map .BMap_scaleCtrl,
.map .BMap_zoomCtrl,
.map .BMap_omCtrl { display: none !important; }
.map-attrib {
  position: absolute; right: 6px; bottom: 3px; z-index: 400;
  font-size: 10px; line-height: 1; color: rgba(27, 42, 65, .42);
  pointer-events: none; user-select: none;
}

.tile-tip {
  position: absolute; left: 50%; top: 14px; transform: translateX(-50%);
  z-index: 500; max-width: 88%;
  background: rgba(255,255,255,.96); color: var(--text);
  border: 1px solid rgba(17,34,64,.15); border-radius: 999px;
  padding: 7px 14px; font-size: 12px; white-space: nowrap;
  box-shadow: 0 4px 14px rgba(27,42,65,.12);
}

/* 地图选点：屏幕中心的十字准星 */
.center-cross {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%);
  z-index: 500; width: 26px; height: 34px; pointer-events: none;
}
.center-cross i {
  display: block; width: 26px; height: 26px; border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg); background: var(--neon); border: 2px solid var(--bg);
  box-shadow: 0 4px 14px rgba(0,0,0,.6);
}

.pin {
  width: 18px; height: 18px; border-radius: 50%;
  border: 3px solid var(--bg); box-shadow: 0 0 0 1px rgba(0,0,0,.4), 0 3px 10px rgba(0,0,0,.5);
}
.pin.from { background: var(--neon); }
.pin.to { background: #1B2A41; }
.pin.driver {
  width: 34px; height: 34px; border-radius: 10px; border: 2px solid var(--neon);
  background: var(--neon); display: grid; place-items: center;
  box-shadow: 0 0 0 6px rgba(37,99,235,.16), 0 6px 18px rgba(27,42,65,.35);
}
.pin.driver span { font-size: 15px; line-height: 1; color: #fff; }

.map-fallback {
  position: absolute; inset: 0;
  background:
    linear-gradient(rgba(37,99,235,.07) 1px, transparent 1px) 0 0 / 100% 44px,
    linear-gradient(90deg, rgba(37,99,235,.07) 1px, transparent 1px) 0 0 / 44px 100%,
    radial-gradient(circle at 50% 60%, #E3EAF4, #D3DCE9 70%);
}

/* ---------- 底部导航 ---------- */
.tabbar {
  display: flex; flex: none;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px);
  padding-bottom: env(safe-area-inset-bottom);
}
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 9px 0 8px; font-size: 11px; color: var(--text-3);
}
.tab.on { color: var(--neon); }
.tab i { font-style: normal; font-size: 19px; line-height: 1; }

/* ---------- 底部抽屉 ---------- */
.sheet-mask {
  position: absolute; inset: 0; z-index: 40;
  background: rgba(15,23,42,.42);
  opacity: 0; transition: opacity .22s ease;
}
.sheet-mask.on { opacity: 1; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 41;
  background: var(--bg-2);
  border-top: 1px solid var(--line-2);
  border-radius: 22px 22px 0 0;
  padding: 10px 18px calc(20px + env(safe-area-inset-bottom));
  transform: translateY(102%); transition: transform .28s cubic-bezier(.22,.7,.3,1);
  max-height: 88%; overflow-y: auto;
}
.sheet.on { transform: translateY(0); }
.sheet .grab { width: 38px; height: 4px; border-radius: 2px; background: var(--line-2); margin: 0 auto 14px; }
.sheet h2 { margin: 0 0 4px; font-size: 17px; font-weight: 500; }

/* ---------- 提示 ---------- */
#toasts { position: absolute; left: 0; right: 0; top: 14px; z-index: 60; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 24px; }
.toast {
  background: rgba(255,255,255,.97); border: 1px solid var(--line-2);
  color: var(--text); font-size: 13.5px; padding: 10px 16px; border-radius: 12px;
  box-shadow: var(--shadow); animation: toastIn .22s ease both; max-width: 100%;
}
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- 头像 ---------- */
.av {
  width: 46px; height: 46px; flex: none; border-radius: 50%;
  display: grid; place-items: center; font-size: 17px; font-weight: 500;
  background: var(--surface-3); color: var(--neon); border: 1px solid var(--line-2);
}
.av.sm { width: 34px; height: 34px; font-size: 14px; }
.av.lg { width: 64px; height: 64px; font-size: 24px; }

/* ---------- 计费明细 ---------- */
.fare-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 14px; color: var(--text-2); }
.fare-row b { color: var(--text); font-weight: 400; }
.fare-row.total { border-top: 1px dashed var(--line-2); margin-top: 8px; padding-top: 12px; color: var(--text); font-size: 15px; }
.fare-row.total b { font-size: 24px; color: var(--neon); font-weight: 500; font-family: ui-monospace, monospace; }

/* ---------- 时间线 ---------- */
.tl { display: flex; flex-direction: column; gap: 0; }
.tl-item { display: flex; gap: 12px; padding-bottom: 16px; position: relative; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--surface-3); margin-top: 6px; flex: none; z-index: 1; }
.tl-item.done .tl-dot { background: var(--neon); box-shadow: 0 0 0 4px var(--neon-soft); }
.tl-item::before { content: ""; position: absolute; left: 4px; top: 15px; bottom: 0; width: 1px; background: var(--line); }
.tl-item:last-child::before { display: none; }
.tl-item.done::before { background: var(--neon-line); }

/* ---------- 空状态 ---------- */
.empty { text-align: center; padding: 56px 24px; color: var(--text-3); }
.empty .big { font-size: 34px; margin-bottom: 10px; opacity: .5; }

/* ---------- 费率数字 ---------- */
.num { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: -.5px; }

/* ---------- 进度环 ---------- */
.pulse { position: relative; width: 92px; height: 92px; margin: 0 auto; }
.pulse::before, .pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid var(--neon); opacity: 0;
  animation: pulse 2.4s ease-out infinite;
}
.pulse::after { animation-delay: 1.2s; }
.pulse .core {
  position: absolute; inset: 26px; border-radius: 50%;
  background: var(--neon-soft); border: 1px solid var(--neon-line);
  display: grid; place-items: center; font-size: 18px;
}
@keyframes pulse { 0% { transform: scale(.55); opacity: .9; } 100% { transform: scale(1.25); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pulse::before, .pulse::after { animation: none; } }

/* ---------- 星级 ---------- */
.stars { display: flex; gap: 10px; justify-content: center; font-size: 32px; }
.stars button { opacity: .25; transition: opacity .12s, transform .12s; }
.stars button.on { opacity: 1; }
.stars button:active { transform: scale(1.15); }

/* ---------- 应用图标预览（骨架页复用） ---------- */
.dot-led { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot-led.ok { background: var(--neon); box-shadow: 0 0 8px var(--neon); }
.dot-led.wait { background: var(--warn); }
.dot-led.no { background: var(--text-3); }

/* ---------- 司机端组件 ---------- */

/* 接单开关 */
.switch {
  width: 52px; height: 30px; flex: none; position: relative;
  border-radius: 999px; background: var(--surface-3); border: 1px solid var(--line-2);
  transition: background .18s, border-color .18s;
}
.switch i {
  position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--text-3); transition: transform .18s, background .18s, box-shadow .18s;
}
.switch.on { background: var(--neon-soft); border-color: var(--neon-line); }
.switch.on i {
  transform: translateX(22px); background: var(--neon);
  box-shadow: 0 0 12px rgba(37, 99, 235, .45);
}

/* 三格数据栏 */
.d-stats { display: flex; gap: 8px; }
.d-stats > div { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.d-num { font-size: 18px; line-height: 1.3; }

/* 行程页底部操作面板（压在地图上，圆角上沿） */
.d-panel {
  flex: none; position: relative; z-index: 6;
  margin-top: -18px;
  background: var(--bg-2);
  border-top: 1px solid var(--line-2);
  border-radius: 20px 20px 0 0;
  padding: 16px 18px calc(16px + env(safe-area-inset-bottom));
  box-shadow: 0 -12px 32px rgba(27, 42, 65, .08);
}

/* ============================================================
   管理后台（电脑宽屏 /admin/）
   复用同一套颜色变量与按钮/标签组件，另加布局、表格与看板样式。 */

/* 注意：手机端 #app 有限宽 430px 与纵向 flex 布局（ID 选择器优先级高），
   后台必须用 #app.admin-shell 才能覆盖掉它们。 */
#app.admin-shell {
  display: grid; grid-template-columns: 216px 1fr;
  max-width: none;
  height: 100vh; height: 100dvh; overflow: hidden;
}

/* ---- 左侧导航 ---- */
.ad-side {
  background: var(--bg-2); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 18px 12px 16px;
  overflow-y: auto;
}
.ad-logo { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; }
.ad-logo i {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  border: 3px solid var(--neon); position: relative;
}
.ad-logo i::after {
  content: ''; position: absolute; inset: 0; margin: auto;
  width: 8px; height: 8px; border-radius: 50%; background: var(--neon);
  box-shadow: 0 0 10px rgba(37, 99, 235, .45);
}
.ad-logo b { font-size: 15px; }
.ad-logo span { font-size: 11px; color: var(--text-3); display: block; line-height: 1.2; }

.ad-nav { display: flex; flex-direction: column; gap: 2px; }
.ad-nav button {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 10px; text-align: left;
  color: var(--text-2); font-size: 14px; position: relative;
  transition: background .15s, color .15s;
}
.ad-nav button:hover { background: var(--surface); color: var(--text); }
.ad-nav button.on { background: var(--neon-soft); color: var(--neon); }
.ad-badge {
  margin-left: auto; min-width: 18px; height: 18px; border-radius: 9px;
  background: var(--danger); color: #fff; font-size: 11px; font-style: normal;
  display: grid; place-items: center; padding: 0 5px;
}

.ad-conns { margin-top: auto; padding: 14px 10px 0; border-top: 1px solid var(--line); }
.ad-conn { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-2); padding: 3px 0; }

/* ---- 右侧主区 ---- */
.ad-main { display: flex; flex-direction: column; min-width: 0; }
.ad-top {
  flex: none; display: flex; align-items: center; justify-content: space-between;
  padding: 16px 26px; border-bottom: 1px solid var(--line); background: var(--bg);
}
.ad-top h1 { font-size: 18px; margin: 0; }
.ad-top-right { display: flex; align-items: center; gap: 12px; }

.ad-content { flex: 1; overflow-y: auto; padding: 22px 26px 40px; }

/* ---- 看板统计卡 ---- */
.stat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px; margin-bottom: 16px;
}
.stat-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 14px 16px;
}
.stat-card.neon { border-color: var(--neon-line); background: var(--neon-soft); }
.stat-card.warn { border-color: rgba(199, 119, 0, .35); background: rgba(199, 119, 0, .06); }
.stat-card.warn .stat-num { color: var(--warn); }
.stat-num { font-size: 26px; font-weight: 700; letter-spacing: -.5px; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.stat-card.neon .stat-num { color: var(--neon); }

/* ---- 面板 / 栅格 / 键值行 ---- */
.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 16px 18px; margin-bottom: 16px;
}
.panel.neon-line { border-color: var(--neon-line); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.panel-head b { font-size: 15px; }
.ad-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
.kv { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.kv:last-child { border-bottom: none; }
.kv > span { color: var(--text-2); font-size: 13px; flex: none; }
.kv > b { font-weight: 500; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.kv.total { border-top: 1px solid var(--line-2); margin-top: 4px; padding-top: 10px; }
.kv.total b { color: var(--neon); font-weight: 700; }

/* ---- 动态流 ---- */
.feed { display: flex; flex-direction: column; gap: 2px; }
.feed-item { display: flex; align-items: center; gap: 10px; padding: 7px 0; }

/* ---- 工具条 / 筛选 ---- */
.ad-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.chip {
  padding: 6px 13px; border-radius: 999px; font-size: 13px;
  border: 1px solid var(--line-2); color: var(--text-2);
  transition: all .15s;
}
.chip i { font-style: normal; opacity: .65; font-size: 12px; }
.chip:hover { color: var(--text); }
.chip.on { background: var(--neon-soft); border-color: var(--neon-line); color: var(--neon); }
.ad-search {
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px;
  color: var(--text); padding: 7px 16px; font: inherit; font-size: 13px; width: 250px; outline: none;
}
.ad-search:focus { border-color: var(--neon-line); }

/* ---- 表格 ---- */
.tbl-wrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th {
  text-align: left; font-size: 12px; font-weight: 500; color: var(--text-3);
  padding: 8px 10px; border-bottom: 1px solid var(--line-2); white-space: nowrap;
}
.tbl td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl tbody tr.click { cursor: pointer; transition: background .12s; }
.tbl tbody tr.click:hover { background: var(--surface-2); }
.ad-ops { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---- 表单 ---- */
.ad-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.ad-field { display: flex; flex-direction: column; gap: 4px; }
.ad-field > span { font-size: 13px; color: var(--text-2); }
.ad-field input {
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px;
  color: var(--text); padding: 9px 12px; font: inherit; font-variant-numeric: tabular-nums; outline: none;
}
.ad-field input:focus { border-color: var(--neon-line); box-shadow: 0 0 0 3px var(--neon-soft); }
.ad-field em { font-style: normal; }

/* ---- 危险按钮 ---- */
.btn.danger { background: var(--danger-soft); color: var(--danger); border: 1px solid rgba(255, 92, 92, .35); }
.btn.danger:hover { background: rgba(255, 92, 92, .2); }

/* ---- 投诉卡片 ---- */
.cmp-card { border-left: 3px solid var(--line-2); }
.cmp-card:has(.tag.warn) { border-left-color: var(--warn); }
.cmp-card:has(.tag.neon) { border-left-color: var(--neon); }

/* ---- 窄屏兜底（后台主要在电脑用，但别散架） ---- */
@media (max-width: 860px) {
  .admin-shell { grid-template-columns: 64px 1fr; }
  .ad-logo b, .ad-logo span, .ad-nav button span, .ad-conns { display: none; }
  .ad-nav button { justify-content: center; padding: 11px; }
  .ad-badge { position: absolute; top: 2px; right: 2px; }
  .ad-cols, .ad-form { grid-template-columns: 1fr; }
  .ad-content { padding: 16px 14px 40px; }
}

