:root {
  --ink: #1a1a1a;
  --orange: #f28c00;
  --orange-press: #d97c00;
  --orange-soft: #fff4e0;
  --grey: #d9d9d9;
  --surface: #f4f4f4;
  --white: #ffffff;
  --line: #e4e4e4;
  --muted: #5e5e5e;
  --ok: #157a3a;
  --ok-soft: #e7f6ec;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --shadow: 0 1px 2px rgba(26, 26, 26, 0.05), 0 12px 32px rgba(26, 26, 26, 0.06);
}
* { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: "Noto Sans", "Segoe UI", sans-serif; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.field { width: 100%; min-height: 48px; border-radius: 12px; border: 1px solid var(--grey); background: white; padding: 0 14px; }
textarea.field { padding: 12px 14px; min-height: 96px; }
label.stack { display: block; font-size: 0.9rem; font-weight: 700; }
label.stack span { display: block; margin-bottom: 4px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 16px; border-radius: 12px; font-weight: 800; border: 1px solid transparent; text-decoration: none; background: white; }
.btn-primary { background: var(--orange); color: var(--ink); }
.btn-primary:active { background: var(--orange-press); }
.btn-ink { background: var(--ink); color: white; }
.btn-danger { background: var(--danger); color: white; }
.btn-small { min-height: 40px; padding: 0 12px; font-size: 0.9rem; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.inactive { opacity: 0.72; }
.btn-ghost { background: white; border-color: var(--grey); }
.btn-arrive, .btn-leave { width: 100%; min-height: 64px; border-radius: 14px; font-size: 1.2rem; font-weight: 800; }
.btn-arrive { background: var(--orange); color: var(--ink); border: 0; }
.btn-leave { background: white; color: var(--ink); border: 2px solid var(--ink); }
.banner { border-radius: 12px; padding: 10px 12px; font-weight: 650; }
.banner.info { background: var(--orange-soft); }
.banner.ok { background: var(--ok-soft); color: var(--ok); }
.banner.danger { background: var(--danger-soft); color: var(--danger); }
.pill { display: inline-flex; border-radius: 999px; padding: 4px 10px; font-size: 0.78rem; font-weight: 800; }
.pill.pending { background: var(--orange-soft); }
.pill.sent { background: var(--ok-soft); color: var(--ok); }
.pill.error { background: var(--danger-soft); color: var(--danger); }
.pill.manual, .pill.void { background: var(--surface); color: var(--muted); }
.shell { min-height: 100dvh; }
.side { display: none; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: white; border-bottom: 1px solid var(--line); padding: 12px 16px; position: sticky; top: 0; z-index: 5; }
.main { padding: 16px; max-width: 1100px; margin: 0 auto; }
.grid { display: grid; gap: 12px; }
.muted { color: var(--muted); }
.ok { color: var(--ok); }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { text-align: left; padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: top; }
th { background: var(--surface); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); }
.logo { height: 40px; width: auto; }
.menu { position: fixed; inset: 0; background: rgba(26,26,26,.4); z-index: 20; }
.menu nav { margin-left: auto; height: 100%; width: min(280px, 86vw); background: white; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.menu a, .side a { display: block; padding: 10px 12px; border-radius: 12px; font-weight: 800; text-decoration: none; }
.menu a.active, .side a.active { background: var(--orange-soft); }
.live { display: inline-block; width: 8px; height: 8px; border-radius: 99px; background: var(--orange); margin-right: 6px; }
.project-pick { text-align: left; padding: 12px 14px; border: 1px solid var(--line); background: white; }
.project-pick.on { border-color: var(--orange); box-shadow: 0 0 0 2px var(--orange); }
.table-wrap { overflow-x: auto; }
.cards-only { display: grid; gap: 10px; }
.table-only { display: none; }
@media (min-width: 900px) {
  .shell { display: grid; grid-template-columns: 240px 1fr; }
  .side { display: flex; flex-direction: column; background: white; border-right: 1px solid var(--line); min-height: 100dvh; position: sticky; top: 0; }
  .side nav { padding: 8px; display: flex; flex-direction: column; gap: 4px; }
  .topbar { display: none; }
  .cards-only { display: none; }
  .table-only { display: block; }
}
