:root {
  color-scheme: light dark;
  --bg: #f4f6f5; --card: #ffffff; --ink: #14201d; --muted: #5d6b67; --line: #dfe5e3;
  --accent: #0f766e; --accent-ink: #ffffff; --warn: #b45309;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0e1513; --card: #17211e; --ink: #e8efec; --muted: #9aa9a4; --line: #26332f; --accent: #2dd4bf; --accent-ink: #062b27; --warn: #f59e0b; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); padding-bottom: env(safe-area-inset-bottom); }
.top { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; background: var(--accent); color: var(--accent-ink); }
.link { background: none; border: 0; color: inherit; font: inherit; text-decoration: underline; }
.panel, #board { max-width: 36rem; margin: 0 auto; padding: 16px; }
h1 { font-size: 1.4rem; }
label { display: block; margin: 12px 0 6px; color: var(--muted); }
input[type=tel], input[inputmode=numeric] { width: 100%; font-size: 1.2rem; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); }
button { font: inherit; cursor: pointer; }
.primary { display: block; width: 100%; margin-top: 12px; padding: 14px; border: 0; border-radius: 12px; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 1.05rem; }
.primary:disabled { opacity: .45; cursor: not-allowed; }
.tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.tabs button { flex: 1; padding: 10px 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); }
.tabs button[aria-selected=true] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.muted { color: var(--muted); font-size: .9rem; margin-top: 2px; }
.line { display: block; margin-top: 8px; color: var(--ink); text-decoration: none; }
.notes { margin: 8px 0 0; padding: 8px 10px; border-left: 3px solid var(--warn); background: color-mix(in srgb, var(--warn) 10%, transparent); border-radius: 6px; }
.items { list-style: none; padding: 0; margin: 10px 0 0; border-top: 1px solid var(--line); }
.items li { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.items input { width: 22px; height: 22px; accent-color: var(--accent); }
.pill { font-size: .78rem; padding: 3px 8px; border-radius: 999px; background: var(--line); white-space: nowrap; }
.pill.available { background: color-mix(in srgb, var(--warn) 22%, transparent); }
.pill.delivered { background: color-mix(in srgb, var(--accent) 22%, transparent); }
.empty { text-align: center; color: var(--muted); padding: 32px 0; }
.status { max-width: 36rem; margin: 8px auto; padding: 0 16px; color: var(--warn); min-height: 1.2em; }
