:root {
  /* Light mode only. Brand colors from the Viet House logo: gold #f0a000, brown #423009. */
  color-scheme: light;
  --page: #f9f7f2; --surface: #ffffff; --surface-2: #f3f0e8;
  --ink: #0b0b0b; --ink-2: #52514e; --muted: #6f6d68; --axis: #c3c2b7; --grid: #e7e4dc;
  --border: rgba(66,48,9,0.12);
  --brand: #423009; --gold: #f0a000; --gold-pale: #fdf1d6; --accent: #8a5a00;
  --up: #006300; --down: #b42318; --error-bg: #fdecea; --flash-bg: #e7f2e7; --notice-bg: #fdf6e3;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--accent); }
code { background: var(--surface-2); padding: 1px 4px; border-radius: 4px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 640px; }
.top { background: var(--surface); border-bottom: 3px solid var(--gold); }
.top-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--brand); text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand .sub { font-weight: 500; color: var(--accent); }
.call { font-weight: 600; text-decoration: none; }
nav { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
nav a, button.link { color: var(--ink-2); text-decoration: none; padding: 6px 10px; border-radius: 8px; font: inherit; background: none; border: 0; cursor: pointer; }
nav a.on { background: var(--gold-pale); color: var(--brand); font-weight: 600; }
form.inline { display: inline; }
main { padding-top: 16px; padding-bottom: 24px; }
.foot { padding-bottom: 32px; text-align: center; }
h1 { font-size: 24px; margin: 0 0 6px; color: var(--brand); }
h2 { font-size: 17px; margin: 18px 0 8px; color: var(--brand); }
.card > h2:first-child { margin-top: 0; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px; margin-bottom: 16px; }
.muted { color: var(--muted); } .small { font-size: 13px; }
.flash { background: var(--flash-bg); border-radius: 8px; padding: 8px 12px; }
.error { color: var(--down); }
p.error { background: var(--error-bg); border-radius: 8px; padding: 10px 12px; }
.notice { background: var(--notice-bg); border: 1px solid #f3dfa6; border-radius: 8px; padding: 10px 12px; }
label { display: block; font-size: 14px; color: var(--ink-2); margin: 0 0 4px; font-weight: 500; }
.field { margin-bottom: 12px; }
input, select { font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--axis); border-radius: 10px; padding: 10px 12px; width: 100%; }
input[type=checkbox], input[type=radio] { width: auto; }
input:focus, select:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.pick { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; margin-top: 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
fieldset.times { border: 0; padding: 0; margin: 8px 0 16px; }
fieldset.times legend { font-weight: 600; color: var(--brand); margin-bottom: 8px; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.slot { position: relative; margin: 0; }
.slot input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.slot span { display: block; text-align: center; padding: 10px 4px; border: 1px solid var(--axis); border-radius: 10px; background: #fff; color: var(--ink); font-weight: 600; font-size: 15px; }
.slot input:checked + span { background: var(--gold); border-color: var(--gold); color: var(--brand); }
.slot input:focus-visible + span { outline: 2px solid var(--brand); }
.slot.off span { color: var(--axis); background: var(--surface-2); text-decoration: line-through; border-color: var(--grid); }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
button.primary, button.danger, button.secondary, a.button { font: inherit; font-weight: 700; border: 0; border-radius: 10px; padding: 11px 18px; cursor: pointer; text-decoration: none; display: inline-block; }
button.primary, a.button.primary { background: var(--gold); color: var(--brand); }
button.primary:hover, a.button.primary:hover { background: #e09500; }
button.big { width: 100%; font-size: 17px; padding: 14px; margin-top: 4px; }
button.secondary, a.button.secondary { background: var(--surface-2); color: var(--brand); border: 1px solid var(--grid); }
button.danger { background: #fff; color: var(--down); border: 1px solid var(--down); }
button.small-btn { font: inherit; font-weight: 600; font-size: 13px; padding: 5px 9px; border-radius: 8px; border: 1px solid var(--axis); background: #fff; cursor: pointer; }
button.small-btn.danger { color: var(--down); border-color: var(--down); background: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }
.details { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 16px 0 4px; }
.details dt { color: var(--muted); } .details dd { margin: 0; font-weight: 600; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.daynav { display: flex; align-items: center; gap: 8px; }
.daynav input { width: auto; }
.scroll { overflow-x: auto; }
table.list { border-collapse: collapse; width: 100%; }
table.list th, table.list td { padding: 8px; border-bottom: 1px solid var(--grid); text-align: left; vertical-align: top; }
table.list thead th { color: var(--ink-2); font-size: 13px; border-bottom: 1px solid var(--axis); }
table.list.compact td, table.list.compact th { padding: 6px 8px; }
table.list input[type=time] { padding: 6px 8px; }
tr.dim td { color: var(--muted); }
tr.dim td b { color: var(--muted); }
.nowrap { white-space: nowrap; } .center-text { text-align: center; }
.busy { display: flex; flex-wrap: wrap; gap: 6px; }
.busy div { display: flex; flex-direction: column; align-items: center; min-width: 64px; padding: 6px; background: var(--surface-2); border-radius: 8px; }
body.center { display: grid; place-items: center; min-height: 100vh; padding: 16px; }
.login { width: 100%; max-width: 360px; }
.login-logo { display: block; width: 160px; height: 160px; margin: 0 auto 8px; }
.login h1 { text-align: center; }
.login button { width: 100%; margin-top: 14px; }
@media (max-width: 560px) { .pick, .grid2, .grid3 { grid-template-columns: 1fr; } .card { padding: 16px; } }
.hidden { display: none; }
.big-group { background: var(--notice-bg); border: 1px solid #f3dfa6; border-radius: 12px; padding: 18px; text-align: center; margin-top: 8px; }
.big-group h2 { margin-top: 0; }
a.button.big { display: block; font-size: 17px; padding: 14px; margin-top: 12px; }
