.flush { margin-top: 0; }
.sub-h { margin: 18px 0 8px; font-size: 17px; }
.card { margin-bottom: 20px; min-width: 0; max-width: 100%; }
.fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 10px; margin-bottom: 12px; }
.top-gap { margin-top: 12px; }
.field { min-width: 0; }
.field label { display: block; margin-bottom: 4px; overflow-wrap: anywhere; }
button, .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; max-width: 100%; text-align: center; }
select, input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]) { min-height: 44px; min-width: 44px; max-width: 100%; }
.totals { margin: 14px 0; width: 100%; table-layout: fixed; }
.totals th { font-weight: 600; width: 52%; overflow-wrap: anywhere; }
.totals td { width: 48%; overflow-wrap: anywhere; }
.num { text-align: right; font-family: var(--mono); font-size: 14px; }
.val-wrap { text-align: right; font-size: 14px; overflow-wrap: anywhere; }
.highlight { font-weight: 700; color: var(--accent); }
.table-scroll { width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 8px; }
.sched-table { width: 100%; min-width: 420px; border-collapse: collapse; }
.sched-table th, .sched-table td { padding: 6px 8px; font-size: 13px; white-space: nowrap; }
.sched-table tbody tr:last-child td { border-bottom: none; font-weight: 600; }
.err-msg { color: var(--warn); font-weight: 600; margin: 8px 0; 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; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; margin-bottom: 8px; }
.leg-item { display: inline-flex; align-items: center; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
.leg-swatch { display: inline-block; width: 20px; height: 4px; flex: 0 0 auto; border-radius: 2px; }
.leg-tsy { background: var(--accent); }
.leg-cd { border-top: 3px dashed var(--warn); height: 0; }
.chart-wrap { width: 100%; max-width: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 8px; }
.chart-svg { display: block; width: 100%; max-width: 100%; height: auto; }
.svg-grid { stroke: var(--line); stroke-width: 1; }
.svg-axis { stroke: var(--field-line); stroke-width: 1.2; }
.svg-tick { fill: var(--muted); font-family: var(--mono); font-size: 11px; }
.svg-line-tsy { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.svg-line-cd { fill: none; stroke: var(--warn); stroke-width: 2.5; stroke-dasharray: 6 4; stroke-linecap: round; stroke-linejoin: round; }
.svg-pt-tsy { fill: var(--accent); stroke: var(--surface); stroke-width: 1.5; }
.svg-pt-cd { fill: var(--warn); stroke: var(--surface); stroke-width: 1.5; }
.list { list-style: none; padding: 0; margin: 12px 0 0; }
.list li { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-bottom: 8px; display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.list .title { font-weight: 600; overflow-wrap: anywhere; flex: 1 1 140px; min-width: 0; }
.list .actions { display: flex; flex-wrap: wrap; gap: 6px; }
.list .meta { flex: 1 1 100%; font-size: 13px; color: var(--muted); font-family: var(--mono); overflow-wrap: anywhere; }
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; margin-bottom: 16px; }
  .table-scroll { overflow: visible; border: none; }
}
