#live-dashboard { display:grid; gap:16px; min-width:0; }
.live-toolbar,.live-panel-head,.live-buttons { display:flex; flex-wrap:wrap; align-items:center; gap:9px; }
.live-toolbar { align-items:end; }
.live-toolbar .field { width:min(100%,300px); }
.live-sync { display:flex; flex-wrap:wrap; gap:4px 12px; align-items:center; margin-inline-start:auto; color:var(--muted); font-size:.78rem; }
.live-sync strong { color:var(--gold-deep); }
.live-start { align-self:center; font-size:.82rem; }
.live-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:11px; }
.live-metric,.live-panel { border:1px solid var(--line); border-radius:8px; background:#fffdf8; }
.live-metric { padding:12px 14px; min-width:0; }
.live-metric span { display:block; color:var(--muted); font-size:.83rem; }
.live-metric strong { font-size:clamp(1.25rem,2.25vw,2rem); font-weight:650; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.live-metric small { font-size:.8rem; color:var(--muted); }
.live-accounting-issues button { background:#fff3dc; }
.live-panel-head { padding:11px 15px; justify-content:space-between; }
.live-panel h2 { margin:0; font-size:1rem; }
.live-panel>p:not(.live-candidate) { margin:14px; }
.live-panel .live-candidate { margin:10px 14px; }
.live-buttons button[aria-pressed=true] { background:#f4e3c4; border-color:#b38d4e; color:var(--gold-deep); }
.live-scroll { overflow-x:auto; }
.live-scroll table :is(th,td):not(:first-child) { text-align:right; }
.live-scroll button[aria-pressed=true] { text-decoration:underline; text-underline-offset:4px; }
.live-scroll table { font-variant-numeric:tabular-nums; }
@media(max-width:550px) {.live-metrics {grid-template-columns:repeat(2,minmax(0,1fr));} .live-toolbar .field{width:100%;} .live-sync{margin-inline-start:0;}}

.live-prep .live-panel-head small { display:block; color:var(--muted); margin-top:3px; }
.prep-filters, .prep-queue-bar { padding:0 15px 10px; }
.prep-queue-bar { padding-inline:0; }
.prep-scroll { max-height:43svh; overflow:auto; }
.prep-table { border-collapse:separate; border-spacing:0; }
.prep-table th { background:#f3ecdf; }
.prep-table td { vertical-align:top; white-space:normal; }
.prep-table td:first-child { min-width:150px; }
.prep-table td small, .prep-item small { display:block; margin-top:3px; color:var(--muted); }
.prep-item strong { color:#37271a; overflow-wrap:anywhere; }
.prep-table td .actions { align-items:center; flex-wrap:wrap; gap:5px 10px; }
.prep-row-actions { display:flex; align-items:center; flex-wrap:wrap; gap:5px; }
.prep-row-price { min-height:32px; padding:5px 9px; white-space:nowrap; }
.prep-status { display:inline-block; padding:2px 6px; border-radius:4px; background:#f3e9d8; color:#745322; font-size:.77rem; }
.prep-status[data-prep-status=ready] { background:#e5eee8; color:#335342; }
.prep-status[data-prep-status=inactive] { background:#f9e5df; color:#8b3627; }
.prep-status[data-prep-status=sold] { background:#e9e3d7; color:#493921; }
.prep-price { font-weight:650; font-variant-numeric:tabular-nums; }
.prep-reference { color:var(--muted); font-variant-numeric:tabular-nums; }
.live-prep .prep-empty { margin:8px 15px 13px; }
.prep-dialog { width:min(900px,calc(100% - 24px)); }
.prep-price-form { display:grid; gap:8px; }
.prep-price-field { display:grid; grid-template-columns:minmax(0,1fr) minmax(130px,190px); align-items:center; gap:8px; padding:8px; border:1px solid var(--line); border-radius:6px; }
.prep-request { display:grid; gap:9px; }
.prep-request p { margin:0; }
.prep-note { white-space:pre-wrap; overflow-wrap:anywhere; }
@media(max-width:650px) {
  .prep-table th,.prep-table td { padding:7px 8px; }
  .prep-price-field { grid-template-columns:minmax(0,1fr) minmax(95px,125px); }
  .prep-price-field .field { min-width:0; }
}

