:root{
  --bg:#f4f6fa;--card:#fff;--ink:#1f2937;--muted:#6b7280;--line:#e5e9f0;
  --brand:#1f4e79;--brand2:#2f7ac2;--accent:#e8f1fb;
  --warn:#b45309;--warnbg:#fff7e6;--bad:#b91c1c;--badbg:#fdecec;
  --ok:#15803d;--okbg:#e9f7ee;--chip:#eef2f7;--radius:12px;
  --shadow:0 2px 10px rgba(31,78,121,.08);
}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);font-family:"Microsoft YaHei","PingFang SC",Arial,sans-serif;font-size:15px;line-height:1.6}
button,input,select,textarea{font-family:inherit;font-size:inherit}
a{color:var(--brand2);text-decoration:none}
.wrap{max-width:1320px;margin:0 auto;padding:16px}
header{background:linear-gradient(120deg,#1f4e79,#2f7ac2);color:#fff;border-radius:var(--radius);padding:16px 20px;box-shadow:var(--shadow)}
header h1{margin:0;font-size:20px}
header .sub{opacity:.85;font-size:12px;margin-top:3px}
.who{float:right;font-size:13px;text-align:right}
.who button{margin-left:8px;background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.4);color:#fff;border-radius:6px;padding:3px 9px;cursor:pointer;font-size:12px}
nav{display:flex;gap:7px;flex-wrap:wrap;margin:12px 0}
nav button{border:1px solid var(--line);background:#fff;color:var(--brand);padding:8px 14px;border-radius:20px;cursor:pointer;font-weight:600}
nav button.on{background:var(--brand);color:#fff;border-color:var(--brand)}
/* 桌面用长标签，手机用短标签（style-mobile.css 里切换） */
nav .lb-s{display:none}
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:15px 17px;box-shadow:var(--shadow);margin-bottom:13px}
.card h2{margin:0 0 11px;font-size:16px;color:var(--brand)}
.card h3{margin:14px 0 8px;font-size:14px;color:var(--brand)}
.kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:9px}
.kpi{background:var(--accent);border-radius:10px;padding:11px 13px;cursor:pointer}
.kpi b{display:block;font-size:23px;color:var(--brand);line-height:1.2}
.kpi span{font-size:12px;color:var(--muted)}
.btn{padding:9px 15px;border:1px solid var(--brand);background:var(--brand);color:#fff;border-radius:8px;cursor:pointer;font-weight:600}
.btn.ghost{background:#fff;color:var(--brand)}
.btn.sm{padding:5px 10px;font-size:13px}
.btn.danger{background:var(--bad);border-color:var(--bad)}
.btn:disabled{opacity:.5;cursor:wait}
input.main{flex:1 1 340px;min-width:220px;padding:11px 14px;border:2px solid var(--brand2);border-radius:8px;outline:none;font-size:16px}
input.main:focus{border-color:var(--brand);box-shadow:0 0 0 3px rgba(47,122,194,.15)}
.searchbar{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.hint{font-size:12px;color:var(--muted);margin-top:7px}
.hint code{background:var(--chip);padding:1px 5px;border-radius:4px;color:var(--brand)}
.filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:9px;margin-top:11px}
.filters label,.formgrid label{display:block;font-size:12px;color:var(--muted);margin-bottom:3px}
.filters select,.filters input,.formgrid input,.formgrid select,.formgrid textarea{width:100%;padding:7px 9px;border:1px solid var(--line);border-radius:7px;background:#fff}
.chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px;min-height:24px}
.chip{background:var(--chip);border:1px solid var(--line);border-radius:16px;padding:3px 10px;font-size:12px;color:var(--brand);cursor:pointer}
.chip:hover{border-color:var(--brand2)}
.tabs{display:flex;gap:6px;flex-wrap:wrap;margin:4px 0 9px}
.tabs button{border:1px solid var(--line);background:#fff;padding:6px 12px;border-radius:8px;cursor:pointer}
.tabs button.on{background:var(--accent);border-color:var(--brand2);color:var(--brand);font-weight:700}
.rowhead{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px}
.count{font-size:13px;color:var(--muted)}
table{width:100%;border-collapse:collapse;font-size:13px}
th,td{padding:8px 9px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
th{background:#f8fafc;color:var(--muted);font-weight:600;white-space:nowrap}
tr:hover td{background:#fafcff}
.tag{display:inline-block;padding:1px 7px;border-radius:10px;font-size:11px;margin:1px 3px 1px 0;white-space:nowrap}
.tag.ok{background:var(--okbg);color:var(--ok)}
.tag.warn{background:var(--warnbg);color:var(--warn)}
.tag.bad{background:var(--badbg);color:var(--bad)}
.tag.info{background:var(--accent);color:var(--brand)}
.tag.gray{background:var(--chip);color:var(--muted)}
em{background:#ffe9a8;font-style:normal;border-radius:3px;padding:0 1px}
.why{font-size:11px;color:var(--muted);margin-top:3px}
.pager{display:flex;gap:8px;align-items:center;justify-content:center;margin-top:11px}
.empty{text-align:center;padding:32px;color:var(--muted)}
.list-title{font-weight:700;color:var(--brand);cursor:pointer}
.remind{border-left:4px solid var(--warn);background:var(--warnbg);padding:9px 13px;border-radius:8px;margin-bottom:7px}
.remind.bad{border-color:var(--bad);background:var(--badbg)}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:13px}
.grid3{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:13px}
@media(max-width:820px){.grid2{grid-template-columns:1fr}.who{float:none;margin-top:8px;text-align:left}table{font-size:12px}}
.formgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:9px}
.req::after{content:" *";color:var(--bad)}
.msg{padding:10px 13px;border-radius:8px;background:var(--okbg);color:var(--ok);margin-top:9px}
.msg.warn{background:var(--warnbg);color:var(--warn)}
.msg.bad{background:var(--badbg);color:var(--bad)}
footer{color:var(--muted);font-size:12px;text-align:center;padding:12px 0 26px}
#login{position:fixed;inset:0;background:linear-gradient(135deg,#1f4e79,#2f7ac2);display:flex;align-items:center;justify-content:center;z-index:99}
#login .box{background:#fff;border-radius:16px;padding:30px 32px;width:340px;box-shadow:0 12px 40px rgba(0,0,0,.25)}
#login h2{margin:0 0 4px;color:var(--brand);font-size:20px}
#login p{color:var(--muted);font-size:12px;margin:0 0 18px}
#login input{width:100%;padding:10px 12px;border:1px solid var(--line);border-radius:8px;margin-bottom:10px}
#login button{width:100%}
.bar{height:8px;background:var(--chip);border-radius:5px;overflow:hidden;margin-top:4px}
.bar i{display:block;height:100%;background:var(--brand2)}
pre{background:#f8fafc;border:1px solid var(--line);border-radius:8px;padding:10px;font-size:12px;overflow:auto;max-height:260px}
.modal{position:fixed;inset:0;background:rgba(15,30,50,.45);display:flex;align-items:center;justify-content:center;z-index:80}
.modal .inner{background:#fff;border-radius:14px;padding:20px 22px;max-width:760px;width:92%;max-height:84vh;overflow:auto}
.close{float:right;cursor:pointer;color:var(--muted)}
.small{font-size:12px;color:var(--muted)}

/* ==== v2 双体系 / 线路全景 / 下刊确认 ==== */
.sysbar{display:flex;gap:10px;margin:12px 0}
button.sys{flex:1;padding:14px;font-size:16px;font-weight:600;border:2px solid var(--line);background:#fff;color:var(--ink);border-radius:10px;cursor:pointer}
button.sys.on{background:var(--brand);color:#fff;border-color:var(--brand)}
button.sys:hover{border-color:var(--brand)}
.badge{display:inline-block;padding:2px 8px;border-radius:10px;font-size:12px;font-weight:600}
.badge.bus{background:#e0f2fe;color:#075985}
.badge.space{background:#fef3c7;color:#92400e}
.badge.late{background:#fee2e2;color:#b91c1c}
.badge.ok2{background:#dcfce7;color:#166534}
.veh-card{border:1px solid var(--line);border-radius:10px;padding:12px;background:#fff;display:flex;gap:14px;align-items:flex-start}
.veh-card img{width:180px;height:110px;object-fit:contain;background:#f8fafc;border:1px solid var(--line);border-radius:8px;cursor:zoom-in}
.veh-card .vi{flex:1;min-width:0}
.veh-card .vi b{font-size:16px}
.veh-card .kv{display:flex;flex-wrap:wrap;gap:6px 16px;margin-top:6px;font-size:13px;color:var(--muted)}
.veh-card .kv span b{color:var(--ink)}
.veh-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(420px,1fr));gap:12px;margin-top:12px}
.veh-card.vac{border-color:#fcd34d;background:#fffbeb}
.veh-card .noimg{width:180px;height:110px;display:flex;align-items:center;justify-content:center;
  background:#f8fafc;border:1px dashed var(--line);border-radius:8px;color:var(--muted);font-size:13px}
.badge.free{background:#fef3c7;color:#92400e}
.hintbox.warn{background:#fffbeb;border-color:#fcd34d;color:#92400e}
.hintbox.warn b{color:#b45309}
.line-pill{display:inline-block;padding:6px 12px;margin:4px;border:1px solid var(--line);border-radius:18px;background:#fff;cursor:pointer;font-size:14px}
.line-pill:hover{background:var(--brand);color:#fff;border-color:var(--brand)}
.model-card{border:1px solid var(--line);border-radius:8px;padding:8px;text-align:center;background:#fff}
.model-card img{width:100%;height:90px;object-fit:contain;background:#f8fafc;cursor:zoom-in}
.model-card b{display:block;font-size:13px;margin-top:6px}
.model-card small{color:var(--muted)}
.offrow{display:flex;align-items:center;gap:10px;padding:10px 12px;border-left:4px solid #dc2626;background:#fef2f2;margin:6px 0;border-radius:6px;flex-wrap:wrap}
.offrow.soft{border-left-color:#f59e0b;background:#fffbeb}
.offrow .grow{flex:1;min-width:220px}
.offrow .date{font-variant-numeric:tabular-nums;font-weight:600}
.offrow.gone{opacity:.7;border-left-color:#16a34a;background:#f0fdf4}

/* 已确认下刊 / 历史未标记：统一折叠，默认收起，不占提醒位 */
details.fold{margin:14px 0;border:1px solid var(--line);border-radius:8px;background:#fff;overflow:hidden}
details.fold>summary{cursor:pointer;padding:10px 14px;font-weight:600;color:var(--ink);
  background:#f8fafc;display:flex;align-items:center;gap:8px;list-style:none;user-select:none}
details.fold>summary::-webkit-details-marker{display:none}
details.fold>summary::before{content:'▸';color:#64748b;transition:transform .15s}
details.fold[open]>summary::before{transform:rotate(90deg)}
details.fold>summary:hover{background:#f1f5f9}
details.fold .fold-n{margin-left:auto;font-weight:500;font-size:13px;color:#64748b;
  background:#e2e8f0;padding:1px 8px;border-radius:10px}
details.fold .fold-body{padding:8px 12px 12px}
.btn.danger{background:#dc2626}
.btn.danger:hover{background:#b91c1c}
/* ==== end v2 ==== */

/* ==== v3 录入分域 / 详情汉化 / 车辆多条件筛选 ==== */
.stagebar{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0 10px}
.stagebar button{border:1px solid var(--line);background:#fff;color:var(--ink);border-radius:18px;padding:6px 12px;cursor:pointer;font-size:13px}
.stagebar button.on{background:#eef5fd;border-color:var(--brand2);color:var(--brand);font-weight:700}
.stagebar button b{color:var(--brand2)}
.filterbar{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0 4px;align-items:flex-end}
.filterbar>div{display:flex;flex-direction:column;gap:4px;min-width:170px}
.filterbar label{font-size:12px;color:var(--muted)}
.filterbar select{padding:7px 9px;border:1px solid var(--line);border-radius:7px;background:#fff;min-width:170px}
.grouphead{margin:18px 0 0;padding-bottom:4px;border-bottom:2px solid var(--accent);font-size:15px;color:var(--brand)}
.grouphead span{font-weight:400;font-size:12px;color:var(--muted)}
.pickgrid{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0 10px;max-height:190px;overflow:auto}
.chip.pick.on{background:var(--brand);color:#fff;border-color:var(--brand)}
.dact{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:8px 10px;background:#f0f7ff;border:1px solid #cfe3f7;border-radius:8px;margin-bottom:10px}
.dsec{border:1px solid var(--line);border-radius:8px;margin:8px 0;background:#fff}
.dsec>summary{cursor:pointer;padding:8px 12px;font-weight:700;color:var(--brand);background:#f8fafc;border-radius:8px}
.dtable{width:100%;border-collapse:collapse}
.dtable th{width:118px;text-align:left;color:var(--muted);font-weight:400;padding:6px 12px;border-top:1px solid var(--line);vertical-align:top;white-space:nowrap}
.dtable td{padding:6px 12px;border-top:1px solid var(--line);word-break:break-all}
.modal .inner.wide{max-width:900px}
.cflist{max-height:52vh;overflow:auto;border:1px solid var(--line);border-radius:8px}
.cfrow{display:flex;flex-direction:column;align-items:flex-start;width:100%;text-align:left;padding:8px 10px;border:0;border-bottom:1px solid var(--line);background:#fff;cursor:pointer}
.cfrow:hover{background:var(--accent)}
.cfrow span{font-size:11px;color:var(--muted)}
/* ==== end v3 ==== */

/* ===== 公益广告：渠道小标签 + 多选勾选框 ===== */
.wchip{display:inline-block;margin:1px 4px 1px 0;padding:2px 8px;border-radius:10px;
  font-size:12px;font-weight:500;line-height:1.5;cursor:pointer;user-select:none;
  border:1px solid transparent;transition:filter .12s}
.wchip:hover{filter:brightness(.93)}
.wchip.bus{background:#dbeafe;color:#1d4ed8;border-color:#bfdbfe}
.wchip.space{background:#dcfce7;color:#15803d;border-color:#bbf7d0}
.wchip.other{background:#f1f5f9;color:#475569;border-color:#e2e8f0}
.wmulti{display:inline-block;margin-left:6px;padding:1px 7px;border-radius:9px;
  font-size:11px;background:#fef3c7;color:#92400e;border:1px solid #fde68a;font-weight:600}
.chkbox{display:flex;flex-wrap:wrap;gap:10px;padding:8px 10px;border:1px solid var(--line);
  border-radius:8px;background:#f8fafc}
.chkbox label.chk{display:flex;align-items:center;gap:6px;padding:6px 12px;border-radius:7px;
  background:#fff;border:1px solid var(--line);cursor:pointer;font-size:14px;transition:.12s}
.chkbox label.chk:hover{border-color:#93c5fd;background:#f0f7ff}
.chkbox label.chk input{accent-color:#2563eb;width:16px;height:16px;cursor:pointer}
.chkbox label.chk:has(input:checked){background:#eff6ff;border-color:#3b82f6;font-weight:600;color:#1d4ed8}

/* ===== 路灯杆 / 续约 / 违约 ===== */
.lptabs{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:14px}
.lptab{padding:7px 16px;border:1px solid var(--line);background:#fff;border-radius:8px;
  cursor:pointer;font-size:14px;transition:.12s}
.lptab:hover{border-color:#93c5fd;background:#f0f7ff}
.lptab.on{background:#2563eb;border-color:#2563eb;color:#fff;font-weight:600}
.lptab b{margin-left:4px;font-weight:700}
.lpsum{margin-left:auto;font-size:13px;color:var(--muted)}
.lpsum b{color:var(--text);font-size:15px}
.lpsum b.ok{color:#059669}.lpsum b.warn{color:#d97706}

.lpsec{margin-bottom:18px}
.lpsec-t{font-size:14px;font-weight:600;margin-bottom:9px;padding-left:9px;border-left:3px solid #2563eb}
.lpsec-t small{font-weight:400;color:var(--muted);margin-left:8px;font-size:12px}
.lpwall{display:flex;flex-wrap:wrap;gap:8px}
.lpchip{display:flex;flex-direction:column;align-items:flex-start;gap:2px;
  padding:8px 13px;border:1px solid var(--line);background:#fff;border-radius:9px;
  cursor:pointer;transition:.12s;min-width:104px;text-align:left}
.lpchip:hover{border-color:#93c5fd;background:#f0f7ff;transform:translateY(-1px)}
.lpchip.on{background:#eff6ff;border-color:#3b82f6;box-shadow:0 0 0 2px #dbeafe}
.lpchip b{font-size:13px;font-weight:600;line-height:1.3}
.lpchip span{font-size:12px;color:#2563eb;font-weight:600}
.lpchip i{font-size:11px;color:var(--muted);font-style:normal}

tr.vac td{background:#fffbeb}
tr.vac td:nth-child(5){font-weight:600}
tr.arch td{opacity:.55;text-decoration:line-through}

.rnbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:12px}
.rnbar .inp{flex:1;min-width:200px;padding:8px 12px;border:1px solid var(--line);border-radius:8px}
.hintbox{background:#eff6ff;border:1px solid #bfdbfe;border-radius:9px;padding:11px 15px;
  font-size:13px;line-height:1.7;color:#1e40af;margin-bottom:14px}
.hintbox b{color:#1d4ed8}
.brkpi{display:flex;gap:22px;flex-wrap:wrap;padding:11px 15px;background:#f8fafc;
  border-radius:9px;margin-bottom:13px;font-size:13px;color:var(--muted)}
.brkpi b{font-size:16px;color:var(--text);margin-left:5px}
.brkpi b.warn{color:#d97706}

/* ===== AI 自动录入面板（总览看板顶部）===== */
.ai-card { border: 1px solid #c7d2fe; background: linear-gradient(180deg,#f5f7ff,#fff); }
.ai-drop { border: 2px dashed #a5b4fc; border-radius: 12px; padding: 26px 18px; text-align: center;
  cursor: pointer; background: #fafbff; transition: .15s; }
.ai-drop:hover, .ai-drop.hot { border-color: #4f46e5; background: #eef2ff; transform: translateY(-1px); }
.ai-ico { font-size: 34px; line-height: 1; margin-bottom: 6px; }
.ai-ok { color: #166534; }
.ai-warn { color: #92400e; }
.ai-loading { padding: 14px; text-align: center; color: #4b5563; background: #f9fafb; border-radius: 8px; }
.ai-file { border: 1px solid #e5e7eb; border-radius: 10px; padding: 12px; margin-top: 10px; background: #fff; }
.ai-file.bad { border-color: #fecaca; background: #fff7f7; }
.ai-fhead { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.ai-warn-box { background: #fef3c7; color: #92400e; border-radius: 6px; padding: 6px 10px; margin: 6px 0; font-size: 13px; }
.ai-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 13px; }
.ai-table th { background: #f3f4f6; text-align: left; padding: 6px 8px; font-weight: 600; }
.ai-table td { border-top: 1px solid #eef0f2; padding: 6px 8px; }
.ai-actions { display: flex; align-items: center; gap: 12px; margin-top: 10px; }

/* ── 自绘选择器（手机上替代原生 select，见 web/picker.js）──────────
   原生 select 在安卓上弹的是系统 picker：字号由系统定、选项多了滚不动。
   这里是自己画的底部抽屉，字号和滚动都归我们管。 */
.fsel { display: flex; flex-direction: column; gap: 4px; min-width: 170px; }
.fsel-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; color: var(--ink); font-size: 14px; font-weight: 500;
  text-align: left; cursor: pointer; min-width: 170px; max-width: 100%;
}
.fsel-btn .fsel-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fsel-btn .fsel-ar { color: var(--muted); font-style: normal; flex: 0 0 auto; }
.fsel-btn.on { border-color: var(--brand); color: var(--brand); font-weight: 700;
  background: #eff6ff; }

.pk-mask {
  position: fixed; inset: 0; background: rgba(15,30,50,.42); z-index: 9000;
  opacity: 0; pointer-events: none; transition: opacity .16s ease;
}
.pk-mask.show { opacity: 1; pointer-events: auto; }

.pk-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9001;
  background: #fff; border-radius: 16px 16px 0 0;
  max-height: 74vh; display: flex; flex-direction: column;
  transform: translateY(102%); transition: transform .2s ease;
  box-shadow: 0 -8px 30px rgba(15,30,50,.2);
  padding-bottom: env(safe-area-inset-bottom);
}
.pk-sheet.show { transform: translateY(0); }

.pk-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 16px 10px; border-bottom: 1px solid var(--line); flex: 0 0 auto;
}
.pk-head .pk-title { font-size: 15px; }
.pk-head .pk-x {
  border: 0; background: none; color: var(--muted); font-size: 14px;
  padding: 4px 6px; cursor: pointer;
}
.pk-search { padding: 9px 14px 4px; flex: 0 0 auto; }
.pk-search input {
  width: 100%; box-sizing: border-box; padding: 9px 11px;
  border: 1px solid var(--line); border-radius: 8px; font-size: 15px;
}
.pk-list { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 4px 0 10px; flex: 1 1 auto; }
.pk-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; border: 0; background: none; text-align: left;
  padding: 12px 16px; font-size: 15px; color: var(--ink); cursor: pointer;
}
.pk-item.on { color: var(--brand); font-weight: 700; background: #eff6ff; }
.pk-item .pk-tick { color: var(--brand); font-weight: 700; }
.pk-empty { padding: 22px 16px; color: var(--muted); font-size: 14px; text-align: center; }

/* ═══════ ⑥ 上下刊 / 调换（v7）═══════ */
.selbar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  flex-wrap: wrap; margin: 10px 0; padding: 9px 12px;
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px;
}
.selbar-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.selbar .btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn.swap { background: #7c3aed; }
.btn.swap:hover { background: #6d28d9; }

.pub-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.pub-tbl th {
  text-align: left; padding: 8px 10px; background: #f1f5f9; color: #475569;
  font-weight: 600; border-bottom: 1px solid #e2e8f0; white-space: nowrap;
}
.pub-tbl td { padding: 8px 10px; border-bottom: 1px solid #f1f5f9; vertical-align: top; }
.pub-tbl tr.vac td { background: #fafafa; }
.pub-tbl tr.sel td { background: #eff6ff; }
.pub-tbl tr:hover td { background: #f8fafc; }
.pub-tbl input[type=checkbox] { width: 16px; height: 16px; cursor: pointer; }

.mini {
  padding: 3px 9px; font-size: 12px; border-radius: 6px; cursor: pointer;
  border: 1px solid var(--brand); background: #fff; color: var(--brand);
}
.mini:hover { background: var(--brand); color: #fff; }
.mini.red { border-color: #dc2626; color: #dc2626; }
.mini.red:hover { background: #dc2626; color: #fff; }

.tag {
  display: inline-block; padding: 1px 6px; border-radius: 4px; font-size: 11px;
  margin-right: 4px; white-space: nowrap;
}
.tag.t-contract { background: #e0f2fe; color: #0369a1; }
.tag.t-manual   { background: #fef3c7; color: #b45309; }
.tag.t-req      { background: #fee2e2; color: #b91c1c; }
.tag.t-swap     { background: #ede9fe; color: #6d28d9; }
.tag.t-susp     { background: #e2e8f0; color: #475569; }

/* 对话框 */
.dlg label { display: block; margin: 12px 0 5px; font-size: 13px; font-weight: 600; color: #334155; }
.dlg label .req { color: #dc2626; }
.dlg input { width: 100%; padding: 8px 10px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 14px; }
.dlg .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dlg-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.dlg-foot button { padding: 8px 18px; border-radius: 8px; border: 0; cursor: pointer; font-size: 14px; font-weight: 600; }
.dlg-foot .ghost { background: #f1f5f9; color: #475569; }
.dlg-foot .danger { background: #dc2626; color: #fff; }
.dlg-foot #od_go, .dlg-foot #sw_go { background: var(--brand); color: #fff; }

.radios { display: flex; flex-direction: column; gap: 7px; }
.radios label {
  display: flex; align-items: flex-start; gap: 9px; padding: 10px 12px;
  border: 1px solid #e2e8f0; border-radius: 9px; cursor: pointer; margin: 0;
  font-weight: 400;
}
.radios label:has(input:checked) { border-color: var(--brand); background: #eff6ff; }
.radios input { width: auto; margin-top: 2px; }
.radios span b { display: block; font-size: 14px; color: #1e293b; }
.radios span i { display: block; font-size: 12px; color: #64748b; font-style: normal; margin-top: 2px; line-height: 1.5; }

.swap-pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; margin: 14px 0; }
.sw-card { padding: 12px; border: 1px solid #e2e8f0; border-radius: 10px; background: #f8fafc; }
.sw-card .sw-k { font-size: 11px; color: #64748b; margin-bottom: 4px; }
.sw-arrow { font-size: 22px; color: #7c3aed; font-weight: 700; }

@media (max-width: 640px) {
  .selbar { flex-direction: column; align-items: stretch; }
  .selbar-btns { justify-content: stretch; }
  .selbar-btns .btn { flex: 1 1 auto; }
  .pub-tbl { font-size: 12px; }
  .pub-tbl th, .pub-tbl td { padding: 7px 6px; }
  .pub-tbl th:nth-child(5), .pub-tbl td:nth-child(5) { display: none; }
  .dlg .row2 { grid-template-columns: 1fr; }
  .swap-pair { grid-template-columns: 1fr; }
  .sw-arrow { text-align: center; transform: rotate(90deg); }
  .radios label { padding: 9px 10px; }
}
.mini.gray { border-color:#cbd5e1; color:#64748b; margin-left:4px; }
.mini.gray:hover { background:#64748b; color:#fff; border-color:#64748b; }
/* v8 合同多文件：原件 PDF + 识别稿 Word，各带看/下载 */
.cf-list { display:flex; flex-direction:column; gap:5px; }
.cf-row { display:flex; align-items:center; gap:5px; flex-wrap:wrap; }
.cf-tag { font-size:11px; font-weight:700; padding:2px 6px; border-radius:4px; white-space:nowrap; }
.cf-tag.pdf { background:#fee2e2; color:#b91c1c; }
.cf-tag.doc { background:#dbeafe; color:#1d4ed8; }
.cf-row .hint { font-size:11px; }
@media (max-width:640px){ .cf-row .btn.sm { padding:5px 8px; font-size:12px; } }
