/* 手机优先的盯盘页面样式（底部导航样式在 mobile-nav.css） */
.wpage { max-width: 760px; }
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.stat { background: var(--panel-soft); border: 1px solid var(--line-soft); border-radius: 12px; padding: 10px 12px; display: grid; gap: 2px; min-width: 0; }
.stat .k { color: var(--muted); font-size: 13px; }
.stat .v { font-size: 20px; font-weight: 700; overflow-wrap: anywhere; }
.up { color: var(--up); }
.down { color: var(--down); }
.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rows li { border: 1px solid var(--line-soft); border-radius: 10px; padding: 10px 12px; background: var(--panel-soft); display: grid; gap: 2px; overflow-wrap: anywhere; }
.rows .tag { justify-self: start; font-size: 12px; border-radius: 999px; padding: 1px 10px; background: var(--undetermined-bg); color: var(--undetermined); }
.rows .tag.met { background: var(--high-bg); color: var(--high); }
.rows .tag.clear { background: var(--ok-bg); color: var(--ok); }
.rows .tag.error { background: var(--caution-bg); color: var(--caution); }
.form-grid { display: grid; gap: 10px; }
.field { display: grid; gap: 4px; }
.field label { font-weight: 600; font-size: 14px; }
.field input, .field select { min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); width: 100%; min-width: 0; }
.field input:focus-visible, .field select:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 1px; }
.row-edit { border: 1px solid var(--line-soft); border-radius: 12px; padding: 10px; background: var(--panel-soft); display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.row-edit .wide { grid-column: 1 / -1; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.danger { background: var(--panel); color: var(--high); border: 1px solid var(--high); border-radius: 10px; padding: 9px 18px; cursor: pointer; font-weight: 600; min-height: 44px; }
.danger:focus-visible { outline: 2px solid var(--high); outline-offset: 2px; }
.status-line { min-height: 1.6em; }
.status-line.error { color: var(--high); }
/* 心跳圆点：不叫 .dot，audit.css 里的 .dot 是图表用的绝对定位点，会把它带偏 */
.beat-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--undetermined); margin-right: 6px; vertical-align: 0; }
.beat-dot.on { background: var(--ok); }
.beat-dot.off { background: var(--high); }
/* 看板头部的出错行平时是空的，不给它留一行空白 */
.card-head ~ #status:empty { min-height: 0; margin: 0; }
/* 网格里只有一句空态时占满整行，不挤进一个格子 */
.stat-grid > .muted { grid-column: 1 / -1; margin: 0; }
@media (min-width: 768px) {
  .stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .row-edit { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.row-edit.has-error { border-color: var(--high); }
.field input.has-error, .field select.has-error, #capital.has-error { border-color: var(--high); outline: 2px solid var(--high); outline-offset: 0; }
.row-error { grid-column: 1 / -1; margin: 0; color: var(--high); font-weight: 600; }
.field + .row-error { margin-top: 4px; }
