:root {
  --bg: #0f1419; --panel: #1a2029; --panel2: #232b36; --line: #2e3744;
  --fg: #e6edf3; --muted: #8b97a6; --accent: #4f9dff; --accent2: #3b82f6;
  --pass: #2ea043; --warn: #d29922; --fail: #f85149;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: -apple-system, "Segoe UI", Roboto, "Noto Sans TC", sans-serif;
  font-size: 14px; line-height: 1.5;
}
a { color: var(--accent); text-decoration: none; }
header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; background: var(--panel); border-bottom: 1px solid var(--line);
}
header .brand { font-weight: 700; font-size: 16px; letter-spacing: .5px; }
header .brand span { color: var(--accent); }
.container { max-width: 1080px; margin: 0 auto; padding: 24px 20px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 18px; margin-bottom: 16px; }
h1 { font-size: 20px; margin: 0 0 4px; }
h2 { font-size: 15px; margin: 0 0 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
label { display: block; font-size: 12px; color: var(--muted); margin: 10px 0 4px; }
input, select, textarea {
  width: 100%; padding: 9px 11px; background: var(--panel2); border: 1px solid var(--line);
  border-radius: 7px; color: var(--fg); font: inherit;
}
textarea { min-height: 64px; resize: vertical; }
button {
  background: var(--accent2); color: #fff; border: 0; border-radius: 7px;
  padding: 9px 16px; font: inherit; font-weight: 600; cursor: pointer;
}
button:hover { background: var(--accent); }
button.ghost { background: transparent; border: 1px solid var(--line); color: var(--fg); }
button.danger { background: var(--fail); }
button.ok { background: var(--pass); }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 180px; }
.inline { display: flex; align-items: center; gap: 8px; }
.inline input[type=checkbox] { width: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; }
tr:hover td { background: var(--panel2); }
.badge { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.s-draft { background: #30363d; color: #c9d1d9; }
.s-submitted { background: #1f3a5f; color: #79c0ff; }
.s-in_review { background: #3d2f06; color: #e3b341; }
.s-approved { background: #163d24; color: #56d364; }
.s-print_ready { background: #1a3a2e; color: #2ee6a6; }
.s-rejected { background: #4a1d1d; color: #ff7b72; }
.pill { font-weight: 700; }
.pill.pass { color: var(--pass); } .pill.warn { color: var(--warn); } .pill.fail { color: var(--fail); }
.finding { border-left: 3px solid var(--line); padding: 8px 12px; margin: 6px 0; background: var(--panel2); border-radius: 0 7px 7px 0; }
.finding.pass { border-color: var(--pass); }
.finding.warn { border-color: var(--warn); }
.finding.fail { border-color: var(--fail); }
.finding .rid { font-family: ui-monospace, monospace; font-size: 12px; color: var(--muted); }
.muted { color: var(--muted); }
.toast { position: fixed; bottom: 20px; right: 20px; background: var(--panel2); border: 1px solid var(--line); padding: 12px 16px; border-radius: 8px; max-width: 360px; }
.toast.err { border-color: var(--fail); }
.ingredient { display: flex; gap: 8px; margin-bottom: 6px; align-items: center; }
.ingredient input[type=text] { flex: 2; } .ingredient input[type=number] { flex: 1; }
.small { font-size: 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 820px) { .grid2 { grid-template-columns: 1fr; } }
