/* ============================================================
   气体送气计划看板 · EIMS 视觉规范
   ============================================================ */
:root {
  --brand: #1F4E79;
  --brand-2: #2E6CA4;
  --brand-3: #4C9BE8;
  --bg: #F4F6FA;
  --panel: #FFFFFF;
  --line: #E2E8F0;
  --line-2: #EDF1F6;
  --ink: #16273A;
  --ink-2: #46586D;
  --ink-3: #8795A7;
  --ok: #2C9A6E;
  --warn: #C9891B;
  --danger: #C94040;
  --radius: 12px;
  --font: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", "Segoe UI", system-ui, sans-serif;
  --shadow-sm: 0 1px 2px rgba(22, 39, 58, .05);
  --shadow-md: 0 6px 22px rgba(22, 39, 58, .09);
  --shadow-lg: -8px 0 34px rgba(15, 35, 55, .16);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand-3) !important; box-shadow: 0 0 0 3px rgba(76, 155, 232, .12); }
::placeholder { color: #A9B6C6; }

.btn-primary {
  height: 36px; padding: 0 16px; border-radius: 9px;
  background: linear-gradient(135deg, #2E6CA4, #1F4E79);
  color: #fff; font-size: 13.5px; font-weight: 600; letter-spacing: .5px;
  box-shadow: 0 3px 10px rgba(31, 78, 121, .22);
  transition: transform .12s, box-shadow .12s;
}
.btn-primary:hover { box-shadow: 0 5px 16px rgba(31, 78, 121, .28); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled { opacity: .55; cursor: default; box-shadow: none; }
.btn-ghost {
  height: 34px; padding: 0 12px; border-radius: 8px; border: 1px solid #D7E2EE;
  background: #fff; color: var(--brand); font-size: 13px; font-weight: 600;
  transition: .15s;
}
.btn-ghost:hover { border-color: var(--brand-3); background: #F4F9FF; }
.btn-block { width: 100%; margin-top: 10px; }
.link-btn { color: var(--brand-2); font-size: 12.5px; font-weight: 600; padding: 4px 2px; }
.link-btn:hover { color: var(--brand-3); }
.link-btn.strong { color: var(--brand); }
.link-btn.danger { color: var(--danger); }

/* ======================= 顶栏 ======================= */
.topbar {
  height: 60px; padding: 0 14px; background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px;
  position: sticky; top: 0; z-index: 30;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-logo { height: 16px; width: auto; display: block; flex: none; }
.brand-sep { width: 1px; height: 20px; background: var(--line); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text b { font-size: 14px; letter-spacing: .3px; color: var(--ink); white-space: nowrap; }
.brand-text em { font-style: normal; font-size: 10px; color: var(--ink-3); letter-spacing: 1.2px; margin-top: 2px; white-space: nowrap; }

.month-nav { display: flex; align-items: center; gap: 8px; margin-left: auto; margin-right: auto; }
.nav-btn {
  width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line);
  background: #fff; color: var(--ink-2); font-size: 16px; line-height: 1;
  display: grid; place-items: center;
}
.nav-btn:hover { border-color: var(--brand-3); color: var(--brand); background: #F6FAFF; }
.month-label { min-width: 112px; text-align: center; display: flex; flex-direction: column; }
.month-label b { font-size: 17px; letter-spacing: 1px; }
.month-label span { font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.today-btn {
  height: 30px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line);
  background: #fff; font-size: 12.5px; color: var(--ink-2); font-weight: 600;
}
.today-btn:hover { border-color: var(--brand-3); color: var(--brand); }

.top-actions { display: flex; align-items: center; gap: 8px; min-width: 0; justify-content: flex-end; }
.notify-pill {
  font-size: 11.5px; color: var(--brand); background: #EDF4FB;
  border: 1px solid #DCE9F6; padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.notify-pill.off { color: var(--ink-3); background: #F3F5F8; border-color: #E7ECF2; }
.top-link { font-size: 13px; color: var(--ink-2); padding: 6px 2px; }
.top-link:hover { color: var(--brand-2); }
.top-link.quiet { color: var(--ink-3); }
.user-chip {
  font-size: 12px; color: var(--brand); background: #F1F6FB;
  border-radius: 999px; padding: 5px 11px; max-width: 110px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ======================= 主体 ======================= */
.board-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 352px;
  gap: 14px;
  padding: 14px 18px 18px;
  height: calc(100vh - 60px);
  min-height: 600px;
}
.cal-panel {
  background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 10px 12px 12px; display: flex; flex-direction: column; min-height: 0;
  border: 1px solid #E9EFF6;
}
.cal-legend {
  height: 32px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 4px 0 6px; gap: 12px;
}
.legend-left { display: flex; align-items: center; gap: 16px; }
.legend-item { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink-3); }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dot-plan { background: var(--brand-3); }
.dot-insp { background: var(--ok); }
.dot-low { background: var(--danger); }
.legend-right { font-size: 11.5px; color: var(--ink-3); }
.legend-right b { color: var(--brand); font-size: 12.5px; }

.cal-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.cal-week div {
  text-align: center; font-size: 12px; color: var(--ink-3); letter-spacing: 1px;
  padding: 7px 0 8px; font-weight: 600;
}
.cal-week div:nth-child(6), .cal-week div:nth-child(7) { color: #B4795C; }

.cal-grid {
  flex: 1; min-height: 0; display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-auto-rows: minmax(88px, 1fr);
  border-left: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  overflow: hidden;
}
.cell {
  position: relative; border-right: 1px solid var(--line-2); border-top: 1px solid var(--line-2);
  padding: 6px 7px 6px 9px; display: flex; flex-direction: column; gap: 4px;
  cursor: pointer; overflow: hidden; background: #fff; min-width: 0;
  transition: background .14s, box-shadow .14s;
}
.cell:hover { background: #F6FAFF; }
.cell.out { background: #FBFCFE; color: #C2CCD9; cursor: default; }
.cell.out:hover { background: #FBFCFE; }
.cell.wknd { background: #FDFEFE; }
.cell.wknd:not(.out):hover { background: #F6FAFF; }
.cell.today { outline: 2px solid rgba(76, 155, 232, .75); outline-offset: -2px; background: #F7FBFF; }
.cell.picked { box-shadow: inset 0 0 0 2px var(--brand-3); }
.cell-top { display: flex; align-items: center; gap: 5px; min-height: 22px; }
.cell .num { font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1; }
.cell.out .num { color: #C2CCD9; font-weight: 600; }
.cell.today .num { color: #fff; background: var(--brand-2); border-radius: 6px; padding: 2px 6px; }
.cell-tag {
  margin-left: auto; font-size: 10px; padding: 1px 5px; border-radius: 4px;
  background: #FDECEC; color: var(--danger); font-weight: 600; border: 1px solid #F8D6D6;
}
.cell-task {
  font-size: 9.5px; padding: 1px 4px; border-radius: 4px; white-space: nowrap;
  background: #E9F1FB; color: var(--brand); font-weight: 700; border: 1px solid #CFE0F4;
}
.cell-deliv { display: flex; flex-direction: column; gap: 3px; min-height: 0; }
.chip {
  display: flex; align-items: center; gap: 4px; font-size: 11px; line-height: 1.4; min-width: 0;
  background: #F4F8FD; border-radius: 5px; padding: 2px 5px; color: var(--ink-2);
  border-left: 3px solid var(--brand-3); overflow: hidden;
}
.chip .cname { font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip .cqty { margin-left: auto; white-space: nowrap; color: var(--ink-3); font-size: 10.5px; }
.chip.done { opacity: .72; }
.chip.done .cname::after { content: " ✓"; color: var(--ok); font-weight: 700; }
.chip.cancel { opacity: .55; text-decoration: line-through; }
.chip.more { background: #F2F5F9; border-left-color: #D5DEE9; color: var(--ink-3); font-size: 10px; }
.cell-insp {
  margin-top: 2px; display: flex; flex-wrap: wrap; gap: 2px 6px;
  font-size: 10px; color: var(--ink-3); border-top: 1px dashed var(--line-2); padding-top: 3px;
}
.cell-insp span { display: inline-flex; align-items: center; gap: 3px; }
.cell-insp i { width: 5px; height: 5px; border-radius: 50%; display: inline-block; }
.cell-insp .low { color: var(--danger); font-weight: 700; }
.cell-plus {
  position: absolute; right: 6px; bottom: 5px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand-2); color: #fff; font-size: 13px; display: grid; place-items: center;
  opacity: 0; transition: opacity .15s; box-shadow: 0 2px 6px rgba(31, 78, 121, .25);
}
.cell:hover .cell-plus { opacity: .9; }
.cell.out .cell-plus { display: none; }

/* ======================= 右侧 ======================= */
.side-panel { display: flex; flex-direction: column; gap: 12px; overflow-y: auto; padding-right: 2px; }
.side-panel::-webkit-scrollbar { width: 6px; }
.side-panel::-webkit-scrollbar-thumb { background: #D6E0EC; border-radius: 3px; }
.side-block {
  background: var(--panel); border: 1px solid #E9EFF6; border-radius: var(--radius);
  padding: 11px 12px 12px; box-shadow: var(--shadow-sm); flex: none;
}
.side-head { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.side-head b { font-size: 13.5px; letter-spacing: .5px; }
.side-sub { margin-left: auto; font-size: 11px; color: var(--ink-3); }
.badge-danger {
  margin-left: auto; font-size: 11px; font-weight: 700; color: #fff; background: var(--danger);
  border-radius: 999px; padding: 2px 8px; min-width: 20px; text-align: center;
}
.badge-danger.zero { background: #E8EDF3; color: var(--ink-3); }

.inv-list { display: flex; flex-direction: column; gap: 7px; }
.inv-row { padding: 2px 0 3px; }
.inv-line { display: flex; align-items: center; gap: 6px; }
.inv-dot { width: 8px; height: 8px; border-radius: 3px; flex: none; }
.inv-name { font-size: 12.5px; font-weight: 700; }
.inv-val { margin-left: auto; font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.inv-val b { font-size: 14px; color: var(--ink); }
.inv-tag { font-size: 10px; padding: 1px 5px; border-radius: 4px; font-weight: 600; }
.inv-tag.ok { color: var(--ok); background: #EAF6F1; }
.inv-tag.warn { color: var(--warn); background: #FCF4E4; }
.inv-tag.danger { color: var(--danger); background: #FDECEC; }
.inv-tag.none { color: var(--ink-3); background: #F1F4F8; }
.inv-bar {
  position: relative; height: 7px; border-radius: 4px; background: #EEF2F7; margin-top: 5px; overflow: hidden;
}
.inv-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; transition: width .4s; }
.inv-bar .mark { position: absolute; top: -2px; bottom: -2px; width: 2px; background: #C94040; opacity: .55; }
.inv-meta { display: flex; justify-content: space-between; font-size: 10px; color: var(--ink-3); margin-top: 3px; }

.alert-list { display: flex; flex-direction: column; gap: 7px; }
.alert-item {
  background: #FDF6F6; border: 1px solid #F6DEDE; border-radius: 9px; padding: 7px 9px;
}
.alert-item .a-top { display: flex; align-items: center; gap: 6px; }
.alert-item b { font-size: 12.5px; color: #A83333; }
.alert-item em { margin-left: auto; font-style: normal; font-size: 11px; color: var(--ink-3); }
.alert-item .a-note { font-size: 11px; color: #8E6B6B; margin-top: 3px; line-height: 1.5; }
.empty-inline { font-size: 11.5px; color: var(--ink-3); text-align: center; padding: 10px 0 4px; }

.order-list { display: flex; flex-direction: column; gap: 6px; }
.order-item { display: flex; align-items: center; gap: 7px; padding: 6px 8px; background: #F8FAFD; border-radius: 8px; }
.order-item .o-name { font-size: 12.5px; font-weight: 700; }
.order-item .o-qty { font-size: 11px; color: var(--ink-3); }
.order-item .o-btn { margin-left: auto; font-size: 11px; color: var(--brand-2); border: 1px solid #DCE7F3; border-radius: 6px; padding: 2px 7px; background: #fff; }
.order-item .o-btn:hover { background: #EFF6FE; }
.order-item.done { opacity: .6; }

.side-stats .stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.stat { text-align: center; background: #F7FAFD; border-radius: 8px; padding: 7px 2px 6px; }
.stat b { display: block; font-size: 17px; color: var(--brand); font-variant-numeric: tabular-nums; }
.stat span { font-size: 10.5px; color: var(--ink-3); }

/* ======================= 抽屉 ======================= */
.drawer-mask {
  position: fixed; inset: 0; background: rgba(12, 30, 48, .28);
  opacity: 0; visibility: hidden; transition: .22s; z-index: 50;
}
.drawer-mask.show { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 452px; max-width: 96vw;
  background: #fff; z-index: 60; box-shadow: var(--shadow-lg);
  transform: translateX(102%); transition: transform .26s cubic-bezier(.4, 0, .2, 1);
  display: flex; flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawer-head {
  padding: 15px 18px 13px; border-bottom: 1px solid var(--line);
  display: flex; align-items: flex-start; gap: 10px; flex: none;
  background: linear-gradient(180deg, #FBFDFF, #fff);
}
.drawer-head b { font-size: 16px; letter-spacing: .5px; }
.drawer-head em { display: block; font-style: normal; font-size: 11.5px; color: var(--ink-3); margin-top: 4px; }
.icon-btn {
  margin-left: auto; width: 30px; height: 30px; border-radius: 8px; color: var(--ink-3);
  font-size: 15px; display: grid; place-items: center; border: 1px solid transparent;
}
.icon-btn:hover { background: #F3F6FA; color: var(--ink); }
.drawer-body { flex: 1; overflow-y: auto; padding: 14px 18px 26px; }
.drawer-body::-webkit-scrollbar { width: 6px; }
.drawer-body::-webkit-scrollbar-thumb { background: #DCE5EF; border-radius: 3px; }
.d-sec { margin-bottom: 20px; }
.d-sec-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.d-sec-head b { font-size: 13.5px; }
.d-sec-head b::before { content: ""; display: inline-block; width: 3px; height: 12px; background: var(--brand-2); border-radius: 2px; margin-right: 7px; vertical-align: -2px; }
.d-sec-tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.d-sec-hint { font-size: 11px; color: var(--ink-3); }

.d-row {
  border: 1px solid #E7EEF7; border-radius: 10px; padding: 9px 10px 8px;
  margin-bottom: 8px; background: #FCFDFF; transition: border-color .15s, box-shadow .15s;
}
.d-row:hover { border-color: #D5E4F3; box-shadow: 0 2px 10px rgba(31, 78, 121, .05); }
.d-row.new { border-color: var(--brand-3); background: #F8FBFE; }
.d-row .r1 { display: flex; align-items: center; gap: 6px; }
.d-row .r1 select.gas { flex: 1; min-width: 0; }
.d-row .r1 .qty { width: 82px; text-align: right; }
.d-row .r1 .unit { font-size: 11px; color: var(--ink-3); width: 26px; }
.d-row .r2 { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.d-row .r2 .time { width: 96px; }
.d-row .r2 .status { width: 88px; }
.d-row .r2 .supplier { flex: 1; min-width: 0; }
.d-row .r3 { margin-top: 6px; display: flex; gap: 6px; align-items: center; }
.d-row .r3 .note { flex: 1; }
.d-row .r4 { display: flex; justify-content: flex-end; gap: 12px; margin-top: 7px; }

.ipt {
  height: 32px; border: 1px solid #DCE4EE; border-radius: 7px; padding: 0 8px;
  font-size: 12.5px; background: #fff; color: var(--ink); width: 100%; min-width: 0;
}
.ipt[readonly] { background: #F5F7FA; color: var(--ink-3); }
textarea.ipt {
  height: auto; min-height: 66px; padding: 7px 9px; line-height: 1.5;
  resize: vertical; font-family: Consolas, "Microsoft YaHei", monospace;
}
.m-hint { font-size: 10.5px; color: var(--ink-3); line-height: 1.6; font-style: normal; }
.tag-soft {
  display: inline-block; font-size: 10.5px; padding: 1px 7px; border-radius: 999px;
  background: #EEF4FB; color: var(--brand-2); border: 1px solid #DCE8F6; white-space: nowrap;
}

.insp-form { display: flex; flex-direction: column; gap: 8px; }
.insp-item { border: 1px solid #E7EEF7; border-radius: 10px; padding: 8px 10px; background: #FCFDFF; }
.insp-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.insp-top i { width: 8px; height: 8px; border-radius: 3px; flex: none; }
.insp-top b { font-size: 12.5px; }
.insp-top .spec { font-size: 10.5px; color: var(--ink-3); }
.insp-top .last { margin-left: auto; font-size: 10.5px; color: var(--ink-2); }
.insp-top .last b { color: var(--brand); font-weight: 700; }
.insp-bottom { display: flex; align-items: center; gap: 6px; margin-top: 7px; }
.insp-bottom .input-wrap { position: relative; width: 118px; flex: none; }
.insp-bottom .input-wrap .ipt { padding-right: 32px; font-weight: 700; }
.insp-bottom .input-wrap span { position: absolute; right: 8px; top: 8px; font-size: 10.5px; color: var(--ink-3); }
.insp-bottom .person { width: 96px; flex: none; }
.insp-bottom .btn-mini {
  height: 32px; padding: 0 12px; border-radius: 7px; background: var(--brand-2); color: #fff;
  font-size: 12px; font-weight: 600; flex: none;
}
.insp-bottom .btn-mini:hover { background: var(--brand); }
.insp-bottom .warnhint { font-size: 10.5px; color: var(--danger); margin-left: 2px; }
.insp-gauge { display: flex; align-items: center; gap: 7px; margin-top: 7px; flex-wrap: wrap; }
.insp-gauge .gw { display: flex; align-items: center; gap: 4px; }
.insp-gauge .gw span { font-size: 10.5px; color: var(--ink-3); white-space: nowrap; }
.insp-gauge .gw .ipt { width: 78px; height: 30px; font-weight: 700; }
.insp-gauge .gw em { font-size: 10.5px; color: var(--ink-3); font-style: normal; }
.insp-gauge .eq { font-size: 12px; color: var(--ink-3); font-weight: 700; }
.insp-gauge .calc { font-size: 10.5px; color: var(--brand-2); font-style: normal; margin-left: 2px; white-space: nowrap; }
.insp-item.with-gauge .insp-bottom { margin-top: 6px; }
.inv-gauge { color: var(--brand-2); }
.insp-log { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.insp-log:empty { display: none; }
.log-chip {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--ink-2);
  background: #F3F7FB; border: 1px solid #E4ECF5; border-radius: 999px; padding: 3px 6px 3px 9px;
}
.log-chip b { color: var(--ink); }
.log-chip .x { color: #A9B6C6; font-size: 11px; padding: 0 2px; }
.log-chip .x:hover { color: var(--danger); }

/* ======================= 提示 ======================= */
.toast {
  position: fixed; left: 50%; bottom: 76px; transform: translate(-50%, 14px);
  background: #16273A; color: #fff; font-size: 13px; padding: 10px 18px; border-radius: 9px;
  box-shadow: 0 8px 26px rgba(10, 25, 40, .25); opacity: 0; visibility: hidden;
  transition: .2s; z-index: 100; max-width: 82vw; text-align: center; line-height: 1.5;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast.err { background: #9E3030; }
.toast.ok { background: #1E6B50; }

/* ======================= 移动端 ======================= */
.mobile-nav { display: none; }
@media (max-width: 1100px) {
  .cell .num { font-size: 14px; }
  .cell-tag {
    font-size: 0; width: 6px; height: 6px; padding: 0; border: 0; border-radius: 50%;
    background: var(--danger); flex: none; margin-left: auto;
  }
  .cell-task { font-size: 9px; padding: 0 3px; }
  .chip { font-size: 10.5px; }
  .chip .cqty { display: none; }
}

@media (max-width: 900px) {
  .topbar { height: 54px; padding: 0 12px; gap: 10px; flex-wrap: nowrap; }
  .brand { min-width: 0; gap: 8px; }
  .brand-logo { height: 19px; }
  .brand-sep { height: 18px; }
  .brand-text b { font-size: 13px; letter-spacing: 0; }
  .brand-text em { display: none; }
  .month-nav { margin: 0 0 0 auto; gap: 4px; }
  .month-label { min-width: 84px; }
  .month-label b { font-size: 14px; }
  .month-label span { display: none; }
  .nav-btn { width: 26px; height: 26px; font-size: 14px; }
  .today-btn { height: 26px; padding: 0 8px; font-size: 11px; }
  .top-actions { min-width: 0; gap: 8px; }
  .top-link, .notify-pill { display: none; }
  .user-chip { display: none; }

  .board-main {
    grid-template-columns: minmax(0, 1fr); height: auto; min-height: 0;
    padding: 10px 10px 66px; gap: 10px;
  }
  .cal-panel { padding: 8px 6px 8px; }
  .cal-legend { height: 28px; padding: 0 2px; }
  .legend-left { gap: 10px; }
  .legend-item { font-size: 10px; gap: 4px; }
  .legend-right { font-size: 10px; }
  .cal-week div { font-size: 11px; padding: 5px 0; letter-spacing: 0; }
  .cal-grid { grid-auto-rows: minmax(96px, 104px); }
  .cell { padding: 4px 4px 4px 5px; gap: 2px; }
  .cell .num { font-size: 13px; }
  .cell.today .num { padding: 1px 4px; border-radius: 4px; }
  .cell-tag { font-size: 9px; padding: 0 3px; }
  .chip { font-size: 9.5px; padding: 1px 3px; border-left-width: 2px; gap: 2px; }
  .chip .cqty { display: none; }
  .cell-insp { font-size: 9px; gap: 2px 4px; padding-top: 2px; }
  .cell-insp span:nth-child(n+3) { display: none; }
  .cell-plus { display: none; }
  .side-panel { gap: 10px; overflow: visible; }
  .side-block { padding: 10px 11px 11px; }
  .inv-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
  .stat-grid { grid-template-columns: repeat(4, 1fr); }

  .drawer { width: 100%; max-width: 100%; }
  .drawer-head { padding: 12px 14px 11px; }
  .drawer-body { padding: 12px 14px 80px; }
  .d-row .r1 .qty { width: 66px; }
  .d-row .r2 .time { width: 88px; }
  .insp-bottom .person { width: 68px; }

  .mobile-nav {
    display: grid; grid-template-columns: repeat(4, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; height: 54px; background: rgba(255,255,255,.96);
    border-top: 1px solid var(--line); z-index: 45; backdrop-filter: blur(8px);
  }
  .mobile-nav a {
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; color: var(--ink-3); letter-spacing: .5px;
  }
  .mobile-nav a.on { color: var(--brand); font-weight: 700; }
  .mobile-nav a.on::after { content: ""; position: absolute; }
  .toast { bottom: 66px; }
}

/* ======================= 登录页 ======================= */
.page-login {
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 12% 8%, rgba(76, 155, 232, .22), transparent 62%),
    radial-gradient(900px 500px at 88% 92%, rgba(37, 161, 142, .14), transparent 60%),
    linear-gradient(140deg, #0B1E31 0%, #16395B 58%, #1F4E79 100%);
  display: flex; align-items: center; justify-content: center; padding: 34px 28px;
}
.login-wrap {
  width: min(1120px, 100%); display: grid; grid-template-columns: minmax(0, 1.15fr) 400px;
  gap: 56px; align-items: center;
}
.login-intro { color: #DCE9F6; }
.login-badge {
  display: inline-block; font-size: 11.5px; letter-spacing: 2.6px; color: #9FC3E2;
  border: 1px solid rgba(159, 195, 226, .32); border-radius: 999px; padding: 5px 13px; margin-bottom: 22px;
}
.login-intro h1 {
  font-size: 42px; line-height: 1.22; margin: 0 0 16px; letter-spacing: 2px; color: #F2F8FD;
  font-weight: 700;
}
.login-sub { font-size: 14px; line-height: 1.9; color: #A8C6DF; max-width: 520px; margin: 0 0 30px; }
.login-points { list-style: none; padding: 0; margin: 0 0 40px; display: flex; flex-direction: column; gap: 13px; }
.login-points li { font-size: 13px; color: #BFD7EC; display: flex; align-items: center; gap: 12px; }
.login-points li span {
  width: 26px; height: 26px; border-radius: 7px; background: rgba(76, 155, 232, .16);
  color: #7FB6E8; font-size: 11px; display: grid; place-items: center; flex: none;
  border: 1px solid rgba(76, 155, 232, .3);
}
.login-foot { font-size: 11.5px; color: #7E9BB8; letter-spacing: 1px; }
.login-card {
  background: rgba(255, 255, 255, .98); border-radius: 16px; padding: 30px 32px 24px;
  box-shadow: 0 26px 70px rgba(4, 16, 28, .45);
}
.login-card-head { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 24px; }
.login-brand { height: 26px; width: auto; display: block; }
.login-card-head b { display: block; font-size: 18px; letter-spacing: 1px; }
.login-card-head em { font-style: normal; font-size: 10.5px; color: var(--ink-3); letter-spacing: 1.4px; }
.field { display: block; margin-bottom: 15px; }
.field span { display: block; font-size: 12px; color: var(--ink-2); margin-bottom: 6px; letter-spacing: .5px; }
.field input {
  width: 100%; height: 42px; border: 1px solid #DCE4EE; border-radius: 9px; padding: 0 12px;
  font-size: 14px; background: #FBFCFE; transition: .15s;
}
.field input:focus { background: #fff; border-color: var(--brand-3); box-shadow: 0 0 0 3px rgba(76, 155, 232, .13); }
.remember { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-3); margin: 2px 0 14px; cursor: pointer; }
.remember input { display: none; }
.remember i {
  width: 15px; height: 15px; border-radius: 4px; border: 1px solid #CBD6E3; display: inline-block; position: relative; flex: none;
}
.remember input:checked + i { background: var(--brand-2); border-color: var(--brand-2); }
.remember input:checked + i::after {
  content: ""; position: absolute; left: 4px; top: 1px; width: 5px; height: 8px;
  border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(41deg);
}
.login-error { min-height: 18px; font-size: 12px; color: var(--danger); margin: -4px 0 8px; }
.login-btn { width: 100%; height: 44px; font-size: 15px; letter-spacing: 4px; }
.login-tip { text-align: center; font-size: 11px; color: var(--ink-3); margin-top: 16px; }
@media (max-width: 860px) {
  .login-wrap { grid-template-columns: 1fr; gap: 26px; max-width: 460px; }
  .login-intro { text-align: center; }
  .login-intro h1 { font-size: 27px; letter-spacing: 1px; }
  .login-sub { font-size: 12.5px; margin-bottom: 0; }
  .login-points, .login-foot { display: none; }
  .login-card { padding: 24px 22px 20px; }
}
.page-error { display: grid; place-items: center; min-height: 100vh; }
.error-box { text-align: center; }
.error-code { font-size: 64px; font-weight: 700; color: var(--brand); line-height: 1; }
.error-box p { color: var(--ink-3); margin: 14px 0 22px; }

/* ======================= 通用弹窗 ======================= */
.modal-mask {
  position: fixed; inset: 0; background: rgba(12, 30, 48, .32); z-index: 90;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; transition: opacity .16s;
}
.modal-mask.show { opacity: 1; }
.modal-box {
  background: #fff; border-radius: 14px; padding: 20px 22px 18px; width: 380px; max-width: 94vw;
  box-shadow: 0 22px 60px rgba(6, 20, 34, .34); transform: translateY(8px); transition: transform .18s;
}
.modal-mask.show .modal-box { transform: translateY(0); }
.modal-box.wide { width: 560px; }
.modal-box b { display: block; font-size: 15px; margin-bottom: 10px; }
.modal-box p { font-size: 12.5px; color: var(--ink-2); line-height: 1.75; margin: 0 0 16px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.btn-primary.danger { background: linear-gradient(135deg, #D25555, #A82F2F); box-shadow: 0 3px 10px rgba(169, 47, 47, .22); }
.modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px 14px; }
.m-field { display: flex; flex-direction: column; gap: 5px; }
.m-field span { font-size: 12px; color: var(--ink-2); }
.m-field.span2 { grid-column: span 2; }
.ipt.color { padding: 3px; height: 32px; }
.ipt.mini { height: 28px; font-size: 12px; width: auto; padding: 0 6px; }

/* 只读账号隐藏写操作 */
body.readonly .cell-plus,
body.readonly .d-row .r4,
body.readonly .insp-bottom .btn-mini,
body.readonly .log-chip .x,
body.readonly .link-btn.strong,
body.readonly [data-order] { display: none !important; }

/* ======================= 子页面（设置 / 台账） ======================= */
.page-sub { background: var(--bg); }
.sub-nav { display: flex; align-items: center; gap: 4px; margin: 0 auto; }
.sub-nav a {
  font-size: 12.5px; color: var(--ink-2); padding: 6px 8px; border-radius: 8px; white-space: nowrap;
}
.sub-nav a:hover { background: #F3F7FC; color: var(--brand); }
.sub-nav a.on { background: #EDF4FB; color: var(--brand); font-weight: 700; }
.sub-main { max-width: 1180px; margin: 0 auto; padding: 16px 18px 30px; display: flex; flex-direction: column; gap: 14px; }
.card {
  background: #fff; border: 1px solid #E9EFF6; border-radius: var(--radius);
  padding: 14px 16px 12px; box-shadow: var(--shadow-sm);
}
.card-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 12px; }
.card-head > div b { font-size: 14.5px; letter-spacing: .4px; }
.card-head > div em { display: block; font-style: normal; font-size: 11.5px; color: var(--ink-3); margin-top: 4px; }
.card-head > .btn-primary, .card-head > .state-pill { margin-left: auto; }
.state-pill { font-size: 11.5px; padding: 4px 10px; border-radius: 999px; color: var(--ink-3); background: #F1F4F8; border: 1px solid #E7ECF2; }
.state-pill.ok { color: var(--ok); background: #EAF6F1; border-color: #D4EBE1; }

.table-wrap { border: 1px solid var(--line-2); border-radius: 10px; overflow: auto; max-height: 330px; }
.table-wrap.tight { max-height: 220px; }
.table-wrap.tall { max-height: calc(100vh - 250px); min-height: 380px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.data-table thead th {
  position: sticky; top: 0; z-index: 2; background: #F4F7FB; color: var(--ink-2);
  font-weight: 700; text-align: left; padding: 9px 10px; white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
.data-table tbody td { padding: 8px 10px; border-bottom: 1px solid #F1F4F9; color: var(--ink-2); vertical-align: middle; }
.data-table tbody tr:hover td { background: #FAFCFF; }
.data-table td.num { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.data-table td.op, .data-table th.op { text-align: right; white-space: nowrap; }
.data-table tr:last-child td { border-bottom: none; }
.data-table.compact tbody td { padding: 6px 10px; }
.empty-cell { text-align: center !important; color: var(--ink-3) !important; padding: 26px 0 !important; font-size: 12px; }
.mono { font-variant-numeric: tabular-nums; color: var(--ink-3); white-space: nowrap; }
.ellipsis { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gas-name { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--ink); }
.gas-name i { width: 8px; height: 8px; border-radius: 3px; display: inline-block; }
.tank-no {
  display: inline-block; font-size: 11.5px; font-weight: 700; color: var(--brand);
  background: #EAF2FB; border: 1px solid #D3E3F5; border-radius: 6px; padding: 1px 7px;
}
.text-danger { color: var(--danger); font-weight: 700; }
.muted { color: var(--ink-3); font-style: normal; }
.res-tag { font-size: 11px; padding: 2px 7px; border-radius: 5px; white-space: nowrap; }
.res-tag.ok { color: var(--ok); background: #EAF6F1; }
.res-tag.bad { color: var(--danger); background: #FDECEC; }
.res-tag.warn { color: var(--warn); background: #FCF4E4; }
.res-tag.none { color: var(--ink-3); background: #F1F4F8; }
.card-foot { font-size: 11px; color: var(--ink-3); margin-top: 9px; }
.card-actions { display: flex; gap: 9px; margin-top: 14px; flex-wrap: wrap; }
.card-sub { margin-top: 18px; border-top: 1px dashed var(--line); padding-top: 13px; }
.sub-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.sub-head b { font-size: 13px; }
.sub-head span { font-size: 11px; color: var(--ink-3); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 20px; }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row span { font-size: 12px; color: var(--ink-2); }
.form-row.span2 { grid-column: span 2; }
.switch-row { display: flex; align-items: center; gap: 9px; height: 32px; }
.switch-row input { display: none; }
.switch-row i {
  width: 38px; height: 21px; border-radius: 999px; background: #DDE4ED; position: relative;
  display: inline-block; transition: .18s; flex: none; cursor: pointer;
}
.switch-row i b {
  position: absolute; left: 2px; top: 2px; width: 17px; height: 17px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: left .18s;
  display: block;
}
.switch-row input:checked + i { background: var(--brand-2); }
.switch-row input:checked + i b { left: 19px; }
.switch-row em { font-style: normal; font-size: 11px; color: var(--ink-3); }
.about-body p { font-size: 12.5px; color: var(--ink-2); line-height: 1.85; margin: 0 0 8px; }
.about-body p b { color: var(--brand); }

.filter-bar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px;
}
.f-item { display: flex; align-items: center; gap: 7px; }
.f-item span { font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.f-item .ipt { width: 132px; }
.f-item select.ipt { width: 104px; }
.f-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.f-count { font-size: 11.5px; color: var(--ink-3); }

@media (max-width: 900px) {
  .sub-nav { display: none; }
  .sub-main { padding: 10px 10px 20px; }
  .card { padding: 12px 12px 10px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-row.span2 { grid-column: span 1; }
  .modal-box, .modal-box.wide { width: 100%; }
  .modal-grid { grid-template-columns: 1fr; }
  .m-field.span2 { grid-column: span 1; }
  .f-item .ipt, .f-item select.ipt { width: auto; min-width: 110px; }
  .f-right { width: 100%; justify-content: space-between; }
  .card-head { flex-wrap: wrap; gap: 8px; }
  .card-head > .btn-primary { margin-left: 0; }
  .data-table { font-size: 12px; }
}

.alert-item .a-note b { color: #A83333; }
.a-act { display: flex; justify-content: flex-end; margin-top: 5px; }
.a-btn {
  font-size: 11px; padding: 3px 10px; border-radius: 6px; background: #fff;
  border: 1px solid #E7CFCF; color: #A83333; font-weight: 600;
}
.a-btn:hover { background: #FFF5F5; border-color: #DCA9A9; }

@media (max-width: 420px) {
  .brand-text { display: none; }
  .month-label { min-width: 76px; }
  .month-label b { font-size: 13.5px; }
  .today-btn { padding: 0 7px; font-size: 10.5px; }
  .cal-grid { grid-auto-rows: minmax(70px, 76px); }
  .inv-list { grid-template-columns: 1fr 1fr; }
  .cal-legend { height: auto; min-height: 26px; flex-wrap: wrap; padding: 3px 2px; row-gap: 2px; }
  .legend-left { gap: 7px; }
  .legend-item { font-size: 9px; gap: 3px; }
  .legend-right { font-size: 9.5px; margin-left: auto; }
  .legend-right b { font-size: 10.5px; }
  .cell { padding: 3px 3px 3px 4px; }
  .cell .num { font-size: 12px; }
  .cell-deliv { flex-direction: row; flex-wrap: wrap; gap: 3px; }
  .chip { background: transparent; border: 0; padding: 0; gap: 0; }
  .chip .cname, .chip .cqty { display: none; }
  .chip .dot { width: 8px; height: 8px; }
  .chip.more { font-size: 8px; padding: 0 2px; background: #F2F5F9; color: var(--ink-3); }
  .cell-tag { font-size: 0; width: 6px; height: 6px; padding: 0; border: 0; border-radius: 50%; background: var(--danger); flex: none; }
  .cell-task { font-size: 0; width: 6px; height: 6px; padding: 0; border: 0; border-radius: 50%; background: var(--brand-3); flex: none; }
  .cell-insp { font-size: 8px; gap: 2px; border-top: 0; padding-top: 1px; }
  .cell-insp .dot { width: 4px; height: 4px; }
  .cell-insp span:nth-child(n+2) { display: none; }
}

.d-sec-sub { font-size: 11px; color: var(--ink-3); margin: 12px 0 0; letter-spacing: .4px; }

/* ---------- 巡检任务 ---------- */
.task-list { display: flex; flex-direction: column; gap: 9px; }
.task-card {
  border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; background: #fff;
  border-left: 3px solid var(--brand-3);
}
.task-card.done { background: #F7FBF8; border-left-color: var(--ok); }
.task-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.task-top b { font-size: 13px; color: var(--ink); font-weight: 700; }
.task-top .t-due { font-size: 11px; color: var(--ink-3); margin-left: auto; }
.t-state {
  font-style: normal; font-size: 11px; padding: 1px 7px; border-radius: 7px;
  background: #FFF3E8; color: #B25A12; font-weight: 600;
}
.t-state.done { background: #E7F6EC; color: #23924A; }
.t-state.cancel { background: #F0F2F5; color: #8A94A6; }
.t-meta { font-size: 11.5px; color: var(--ink-3); margin-top: 6px; }
.t-meta b { color: var(--ink-2); }
.t-note { font-size: 11.5px; color: var(--ink-2); background: var(--line-1); border-radius: 7px; padding: 5px 8px; margin-top: 6px; }
.t-acts { display: flex; gap: 12px; margin-top: 8px; flex-wrap: wrap; }

.task-mini { display: flex; flex-direction: column; gap: 6px; }
.tm-row {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  padding: 6px 8px; border-radius: 8px; background: var(--line-1); cursor: pointer;
}
.tm-row:hover { background: #EEF3FA; }
.tm-name { font-size: 12px; font-weight: 700; color: var(--ink); }
.tm-tag { font-size: 10px; padding: 0 6px; border-radius: 6px; background: #FFF3E8; color: #B25A12; font-style: normal; }
.tm-tag.done { background: #E7F6EC; color: #23924A; }
.tm-tag.cancel { background: #ECEEF2; color: #8A94A6; }
.tm-meta { font-size: 10.5px; color: var(--ink-3); font-style: normal; margin-left: auto; }

.task-modal { width: min(460px, 94vw); }
.tm-field { margin-top: 12px; }
.tm-field > span { display: block; font-size: 12px; color: var(--ink-3); margin-bottom: 5px; }
.tm-field .ipt { width: 100%; }
.tm-gases { display: flex; flex-wrap: wrap; gap: 8px; }
.tm-gas {
  display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ink-2);
  border: 1px solid var(--line-2); border-radius: 8px; padding: 5px 9px; background: #fff; cursor: pointer;
}
.tm-gas input { margin: 0; }
.tm-gas i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.tm-gas:has(input:checked) { border-color: var(--brand-3); background: #F2F7FD; color: var(--ink); font-weight: 600; }
.tm-tip { font-size: 11px; color: var(--ink-3); margin-top: 6px; }
.tm-push { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-2); margin-top: 12px; }

/* ============================================================
   储罐液位 · 数字孪生
   ============================================================ */
.twin-main {
  max-width: 1440px; margin: 0 auto; padding: 18px 22px 34px;
}
.twin-hero {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; padding: 2px 2px 16px;
}
.twin-hero-text h1 { margin: 0 0 6px; font-size: 20px; letter-spacing: .3px; }
.twin-hero-text p { margin: 0; font-size: 12.5px; color: var(--ink-3); line-height: 1.6; max-width: 720px; }
.twin-live {
  display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto;
  height: 32px; padding: 0 12px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); font-size: 12px; color: var(--ink-2);
  box-shadow: var(--shadow-sm);
}
.twin-live .live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(44,154,110,.14); }
.twin-live em { font-style: normal; color: var(--ink-3); }
.twin-live b { color: var(--ink-2); font-weight: 700; letter-spacing: .4px; }

.twin-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(352px, 1fr)); gap: 16px;
}
.twin-card {
  position: relative; background: var(--panel); border: 1px solid #E7EDF5; border-radius: 14px;
  padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 10px;
  box-shadow: 0 2px 10px rgba(22, 39, 58, .05); overflow: hidden;
}
.twin-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--brand-3); opacity: .9;
}
.twin-card.st-ok::before { background: #2C9A6E; }
.twin-card.st-warn::before { background: var(--warn); }
.twin-card.st-danger::before { background: var(--danger); }
.twin-card.st-none::before { background: #C3CEDA; }
.twin-card.st-danger { border-color: #F1D2D2; background: linear-gradient(180deg, #FFF9F9, #fff 42%); }

.tw-head { display: flex; align-items: center; gap: 8px; min-height: 22px; }
.tw-dot { width: 9px; height: 9px; border-radius: 3px; flex: 0 0 auto; }
.tw-head b { font-size: 14.5px; letter-spacing: .2px; }
.tw-tag {
  margin-left: auto; font-size: 11px; padding: 2px 9px; border-radius: 999px; font-weight: 700;
  background: #EFF6F2; color: #2C9A6E;
}
.tw-tag.ok { background: #EDF7F1; color: #24835C; }
.tw-tag.warn { background: #FBF3E2; color: #A87413; }
.tw-tag.danger { background: #FCEEEE; color: var(--danger); animation: tw-pulse 2.2s ease-in-out infinite; }
.tw-tag.none { background: #F1F4F8; color: var(--ink-3); }

.tw-body { display: flex; align-items: center; gap: 14px; }
.tw-tankwrap { position: relative; flex: 0 0 auto; width: 136px; }
.tw-tankbox { position: relative; width: 116px; height: 255px; }
.tw-tank { display: block; width: 100%; height: 100%; }
.tw-liquid {
  transform: translateY(calc(1.48px * (100 - var(--fill, 0))));
  transition: transform .9s cubic-bezier(.22, .75, .28, 1);
}
.tw-surface { animation: tw-wave 3.8s ease-in-out infinite; }
.tw-scale {
  position: absolute; left: 104px; top: calc(18.9% - 5px); height: calc(56.1% + 10px); width: 26px;
  display: flex; flex-direction: column; justify-content: space-between;
  font-size: 10px; line-height: 10px; color: #A9B6C6; text-align: left;
}
.tw-scale span::before {
  content: ''; display: inline-block; width: 7px; height: 1px; background: #DDE5EF;
  vertical-align: middle; margin-right: 3px;
}
.tw-none {
  position: absolute; left: 0; top: 18.9%; width: 100%; height: 56.1%;
  display: flex; align-items: center; justify-content: center;
}

.tw-info { flex: 1 1 auto; min-width: 0; }
.tw-pct { display: flex; align-items: baseline; gap: 2px; line-height: 1; }
.tw-pct b { font-size: 32px; font-weight: 800; letter-spacing: -.5px; color: var(--ink); font-variant-numeric: tabular-nums; }
.tw-pct i { font-style: normal; font-size: 13px; font-weight: 700; color: var(--ink-3); }
.tw-sub { margin-top: 6px; font-size: 12px; color: var(--ink-3); }
.tw-line { margin-top: 4px; font-size: 13px; color: var(--ink-2); }
.tw-line b { font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums; }
.tw-meta { list-style: none; margin: 10px 0 0; padding: 0; border-top: 1px dashed var(--line-2); padding-top: 8px; }
.tw-meta li { display: flex; gap: 8px; font-size: 11.5px; color: var(--ink-2); line-height: 1.9; white-space: nowrap; }
.tw-meta span { flex: 0 0 30px; color: var(--ink-3); }

.tw-none { font-size: 11px; color: var(--ink-3); }

.twin-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px;
  padding: 14px 4px 0; font-size: 11.5px; color: var(--ink-3);
}
.twin-legend { display: inline-flex; align-items: center; gap: 6px; }
.twin-legend .lg-fill { width: 14px; height: 8px; border-radius: 2px; background: #4C9BE8; opacity: .8; }
.twin-legend .lg-warn { width: 16px; height: 0; border-top: 1.5px dashed #E4572E; }
.twin-legend .lg-none { width: 14px; height: 8px; border: 1px dashed #C3CEDA; border-radius: 2px; background: #F7FAFD; }
.twin-legend-note { margin-left: auto; }
.twin-empty {
  grid-column: 1 / -1; padding: 48px 0; text-align: center; color: var(--ink-3);
  background: #fff; border: 1px dashed var(--line); border-radius: 14px; font-size: 13px;
}

@keyframes tw-wave {
  0%, 100% { opacity: .58; }
  50% { opacity: .38; }
}
@keyframes tw-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 64, 64, .18); }
  50% { box-shadow: 0 0 0 4px rgba(201, 64, 64, .06); }
}

@media (max-width: 1100px) {
  .twin-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
  .tw-tankbox { width: 104px; height: 229px; }
  .tw-scale { left: 92px; }
}
@media (max-width: 900px) {
  .twin-main { padding: 12px 12px 78px; }
  .twin-hero { flex-direction: column; align-items: flex-start; gap: 10px; }
  .twin-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .tw-tankwrap { width: 112px; }
  .tw-tankbox { width: 96px; height: 211px; }
  .tw-scale { left: 86px; }
  .twin-legend-note { margin-left: 0; }
}
@media (max-width: 420px) {
  .twin-card { padding: 12px 12px 10px; }
  .tw-body { gap: 10px; }
  .tw-tankwrap { width: 112px; }
  .tw-pct b { font-size: 26px; }
}

/* 手机端入口链接 & 任务负责人手填 */
.form-row a.ipt { display: flex; align-items: center; color: var(--ink-2, #536579); text-decoration: none; cursor: pointer; }
.form-row a.ipt:hover { border-color: #1F4E79; color: #1F4E79; }
@media (max-width: 900px) {
  .form-row.span2 { grid-column: span 1; }
}
