:root {
  --navy: #1B2640;
  --red: #E92B41;
  --red-dark: #B3162B;
  --bg: #F5F6F8;
  --line: #D0D3DA;
  --white: #fff;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--navy);
  font-family: 'Mulish', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 16px; line-height: 1.5;
}
.top {
  background: var(--navy); color: var(--white); min-height: 72px; padding: 0 20px;
  display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap;
}
.top:has(.bar) { justify-content: space-between; padding: 0 32px; }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-fem { font-size: 26px; font-weight: 800; letter-spacing: 1px; }
.logo-surgery { font-size: 12px; font-weight: 600; letter-spacing: 5px; }
.bar { display: flex; align-items: center; gap: 20px; font-weight: 600; }
.bar form { margin: 0; }
main { margin: 0 auto; padding: 32px 24px 48px; }
main.narrow { max-width: 460px; }
main.wide { max-width: 1100px; }
h1 { margin: 0 0 8px; font-size: 30px; line-height: 1.2; font-weight: 800; }
p { margin: 0 0 16px; }
.tagline { color: var(--red); font-weight: 800; margin-bottom: 8px; }
.stack { display: flex; flex-direction: column; gap: 20px; margin-top: 24px; }
.field { display: flex; flex-direction: column; gap: 6px; }
label { font-size: 14px; font-weight: 800; }
input, select {
  height: 52px; border: 1px solid var(--navy); border-radius: 12px; padding: 0 16px;
  font: inherit; color: var(--navy); background: var(--white); width: 100%;
}
.phone { display: flex; gap: 8px; }
.phone select { width: 128px; padding: 0 8px; flex: none; }
.phone input { flex: 1; min-width: 0; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
  height: 56px; padding: 0 32px; border: 2px solid transparent; border-radius: 28px;
  font: inherit; font-size: 18px; font-weight: 800; cursor: pointer; width: 100%;
}
.btn.red { background: var(--red); color: var(--white); }
.btn.red:hover { background: var(--red-dark); }
.btn.navy { background: var(--navy); color: var(--white); }
.btn.outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn.ghost { background: transparent; color: var(--white); border-color: var(--white); height: 40px; font-size: 14px; width: auto; padding: 0 20px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.small { font-size: 14px; }
.center { text-align: center; }
.error { background: #FDECEE; color: var(--red-dark); border-radius: 12px; padding: 12px 16px; font-weight: 600; margin-top: 16px; }
.card { background: var(--white); border-radius: 20px; padding: 24px; margin-bottom: 16px; }
.card.navy { background: var(--navy); color: var(--white); }
.label { font-size: 14px; font-weight: 600; }
.big { font-size: 96px; line-height: 1.1; font-weight: 800; }
.red-text { color: var(--red); }
.mid { font-size: 40px; line-height: 1.1; font-weight: 800; }
.huge { font-size: 64px; line-height: 1.1; font-weight: 800; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.two .card { padding: 20px 12px; border-radius: 16px; }
#status .btn { margin-top: 8px; }
#note { font-size: 15px; margin-top: 8px; }
/* staff dashboard */
.stats { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 20px; margin: 24px 0 8px; }
.stats .card { border-radius: 16px; margin: 0; }
.serving-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.serving-card form { margin: 0; }
.serving-card .btn { width: auto; }
.table-card { padding: 8px 24px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 560px; text-align: left; }
th, td { padding: 14px 8px; border-bottom: 1px solid var(--line); }
th { border-bottom: 2px solid var(--navy); }
tbody tr:last-child td { border-bottom: 0; }
td.num { font-weight: 800; }
tr.serving { background: #FDECEE; }
tr.serving .st { font-weight: 800; color: var(--red-dark); }
tr.done .st { color: #4A5368; }
.act { text-align: right; }
.act form { margin: 0; }
.small-btn { height: 40px; font-size: 16px; padding: 0 24px; width: auto; }
.empty { padding: 16px 0; margin: 0; }
@media (max-width: 720px) {
  .stats { grid-template-columns: 1fr; }
  .top:has(.bar) { padding: 12px 20px; }
}
@media (prefers-reduced-motion: no-preference) { .btn { transition: background-color .15s; } }
