.flush { margin-top: 0; }
.card { margin-bottom: 20px; }
.fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 10px; margin-bottom: 12px; }
.mgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 10px; margin: 12px 0 16px; }
.field, .mcard { min-width: 0; }
.field label { display: block; margin-bottom: 4px; overflow-wrap: anywhere; }
input, select, textarea { max-width: 100%; }
button, .btn, label.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 45px; min-width: 48px; max-width: 100%; text-align: center; }
.mcard { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.mval { font-family: var(--mono); font-size: 22px; font-weight: 700; margin: 4px 0; overflow-wrap: anywhere; }
.chart-h { margin: 14px 0 8px; font-size: 16px; }
.cat-svg { width: 100%; max-width: 100%; height: auto; display: block; }
.cat-svg .bar-track { fill: var(--chip); }
.cat-svg .bar-fill { fill: var(--accent); }
.cat-svg .bar-label { fill: var(--ink); font-size: 15px; font-weight: 600; font-family: var(--font); }
.cat-svg .bar-val { fill: var(--muted); font-size: 14px; font-family: var(--mono); }
.preview-box { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin: 4px 0 12px; overflow-wrap: anywhere; }
.err-msg { color: var(--warn); font-weight: 600; margin: 8px 0 12px; overflow-wrap: anywhere; }
.warn-box { background: var(--chip); border: 1px solid var(--warn); color: var(--warn); padding: 10px 12px; border-radius: 8px; overflow-wrap: anywhere; }
.list { list-style: none; padding: 0; margin: 14px 0 0; }
.list li { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin-bottom: 10px; min-width: 0; }
.list li.is-cancel { border-style: dashed; }
.list li.is-paused { opacity: 0.85; }
.item-top { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin-bottom: 6px; }
.item-top .title { font-weight: 700; font-size: 17px; overflow-wrap: anywhere; margin-right: 4px; }
.list li.is-cancel .title { text-decoration: line-through; }
.list .meta { font-size: 14px; color: var(--muted); margin: 4px 0; overflow-wrap: anywhere; }
.list .notes { margin: 6px 0 2px; overflow-wrap: anywhere; }
.list .actions { margin-top: 10px; }
.pill.status-active { background: var(--accent); color: var(--accent-ink); }
.pill.status-cancel { background: var(--chip); color: var(--warn); border: 1px solid var(--warn); }
.pill.status-paused { background: var(--chip); color: var(--muted); }
code { font-family: var(--mono); font-size: 13px; overflow-wrap: anywhere; }
@media print {
  .no-print, header.top, footer { display: none !important; }
  body { background: #fff; color: #000; }
  .card { border: none; padding: 0; }
}
