/* === Running Meters (theme-aware; brand black header + gold number) === */
.meter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 16px; padding-bottom: 24px; }
.meter-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.meter-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; background: #0d0d0d; border-bottom: 3px solid var(--primary); }
.meter-num { font-family: var(--font-mono); font-size: 16px; font-weight: 700; letter-spacing: .06em; color: #f5c518; }
.meter-dot { width: 11px; height: 11px; border-radius: 50%; background: #6b6b66; box-shadow: 0 0 0 2px #0d0d0d, 0 0 0 3px #6b6b66; }
.meter-dot.on { background: #34d399; box-shadow: 0 0 0 2px #0d0d0d, 0 0 0 3px #34d399; }
.meter-client { display: block; padding: 8px 14px; background: rgba(242,183,5,.14); font-weight: 700; font-size: 13.5px; color: var(--text); border-bottom: 1px solid var(--border); }
.meter-fields { padding: 10px 14px 4px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.mf-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; border-bottom: 1px dashed var(--border); padding: 3px 0; }
.mf-label { color: var(--text-muted); font-weight: 600; flex-shrink: 0; }
.mf-value { text-align: right; font-weight: 600; word-break: break-word; }
.mf-empty { color: var(--text-muted); font-weight: 500; }
.meter-photos { padding: 10px 14px; border-top: 1px solid var(--border); margin-top: 8px; }
.meter-photos-title { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.meter-photos-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; min-height: 20px; }
.meter-photo { position: relative; width: 66px; height: 66px; }
.meter-photo img { width: 66px; height: 66px; object-fit: cover; border-radius: 6px; cursor: pointer; border: 1.5px solid var(--border); }
.meter-photo img:hover { border-color: var(--primary); }
.meter-photo button { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; border: none; background: var(--danger); color: #fff; font-size: 11px; cursor: pointer; line-height: 1; }
[data-theme="dark"] .meter-photo button { color: #111; }
.meter-add { display: inline-flex; align-items: center; padding: 6px 12px; border: 1.5px dashed var(--border); border-radius: 6px; font-size: 13px; font-weight: 700; color: var(--text); cursor: pointer; }
.meter-add:hover { border-color: var(--primary); background: rgba(242,183,5,.08); }
.meter-foot { padding: 10px 14px; border-top: 1px solid var(--border); }
.meter-lb { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 4000; display: flex; align-items: center; justify-content: center; }
.meter-lb img { max-width: 90vw; max-height: 85vh; border-radius: 8px; box-shadow: 0 0 40px #000a; }
.lb-btn { position: absolute; background: rgba(255,255,255,.14); color: #fff; border: none; border-radius: 50%; width: 46px; height: 46px; font-size: 24px; cursor: pointer; }
.lb-btn:hover { background: var(--primary); color: #111; }
.lb-close { top: 18px; right: 18px; } .lb-prev { left: 18px; top: 50%; transform: translateY(-50%); } .lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: #fff; font-weight: 700; background: rgba(0,0,0,.5); padding: 3px 12px; border-radius: 999px; }
@media (max-width: 600px) { .meter-grid { grid-template-columns: 1fr; } }
.meter-card.hit { outline: 3px solid var(--primary); outline-offset: 2px; }
