:root {
  color-scheme: dark;
  --bg: #0f172a;
  --bg-soft: #111c31;
  --panel: #172235;
  --panel-2: #1b2940;
  --border: #2a3a55;
  --text: #e5eefb;
  --muted: #8aa0c3;
  --blue: #4f8cff;
  --blue-2: #3d76e0;
}
* { box-sizing: border-box; }
body { margin: 0; background: linear-gradient(180deg, var(--bg), #08101b); color: var(--text); font-family: Inter, "Segoe UI", sans-serif; }
.app-shell { width: min(1440px, calc(100vw - 32px)); margin: 0 auto; padding: 24px 0 48px; }
.topbar, .panel-header, .batch-controls, .inline-actions, .metrics, .grid { display: grid; gap: 12px; }
.topbar, .panel-header { grid-template-columns: 1fr auto; align-items: center; }
.eyebrow { margin: 0 0 6px; color: var(--muted); text-transform: uppercase; font-size: 12px; letter-spacing: 0.08em; }
h1, h2, p { margin: 0; }
h1 { font-size: 30px; }
h2 { font-size: 18px; }
.panel-copy { color: var(--muted); font-size: 13px; margin-top: 4px; }
.metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 20px 0; }
.metric, .panel { background: rgba(23, 34, 53, 0.92); border: 1px solid var(--border); border-radius: 8px; }
.metric { padding: 16px; }
.metric strong { display: block; font-size: 28px; margin-bottom: 6px; }
.metric span { color: var(--muted); font-size: 13px; }
.panel { padding: 16px; margin-bottom: 16px; }
.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.table-wrap { overflow: auto; margin-top: 14px; border: 1px solid var(--border); border-radius: 6px; }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid rgba(42, 58, 85, 0.85); font-size: 13px; }
th { color: var(--muted); background: rgba(10, 17, 29, 0.55); position: sticky; top: 0; }
td input, select, input[type="number"] { width: 100%; padding: 8px 10px; border-radius: 6px; border: 1px solid var(--border); background: var(--panel-2); color: var(--text); }
button, .button-link { border: 0; border-radius: 6px; padding: 10px 14px; background: var(--blue); color: white; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
button:hover, .button-link:hover { background: var(--blue-2); }
.ghost { background: transparent; border: 1px solid var(--border); }
.danger { border-color: #70333d; color: #ffd4db; padding: 6px 10px; font-size: 12px; }
.secondary-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.stack { display: grid; gap: 10px; margin-top: 14px; }
.issue-card { border: 1px solid var(--border); border-radius: 6px; padding: 12px; background: rgba(12, 18, 29, 0.75); }
.issue-card strong { display: block; margin-bottom: 6px; }
.issue-card p { color: var(--muted); font-size: 13px; margin-bottom: 10px; }
@media (max-width: 1000px) { .metrics, .grid, .topbar, .panel-header { grid-template-columns: 1fr; } }
.option-buttons { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.option-btn { font-size: 12px; padding: 4px 10px; }
.toast { position: fixed; bottom: 24px; right: 24px; background: #1e3a5f; color: var(--text); padding: 12px 18px; border-radius: 8px; font-size: 14px; box-shadow: 0 4px 16px rgba(0,0,0,0.4); z-index: 9999; transition: opacity 0.3s; }
.toast:empty { display: none; }
.toast.error { background: #4a1c25; }
.panel.step-review { border-left: 4px solid #f59e0b; }
.panel.step-batch { border-left: 4px solid #3b82f6; }
.panel.step-ready { border-left: 4px solid #8b5cf6; }
.panel.step-done { border-left: 4px solid #22c55e; }

