* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, sans-serif; background: #F4F6F4; color: #111; line-height: 1.5; }
.topbar { background: #fff; border-bottom: 1px solid #ddd; padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; }
.logo { width: 36px; height: 36px; }
.topbar-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
main { max-width: 900px; margin: 0 auto; padding: 16px; }
.card { background: #fff; border: 1px solid #ddd; border-radius: 12px; padding: 16px; margin-bottom: 16px; }
.row { display: flex; gap: 12px; align-items: center; margin: 12px 0; flex-wrap: wrap; }
.btn { background: #fff; color: #111; border: 1px solid #111; border-radius: 999px; padding: 8px 16px; cursor: pointer; font-size: 1rem; }
.btn.primary { background: #111; color: #fff; }
.btn.small { padding: 4px 12px; font-size: 0.9rem; }
.btn.danger { border-color: #8E3B2F; color: #8E3B2F; }
input, select { width: 100%; padding: 10px; border: 1px solid #999; border-radius: 8px; font-size: 1rem; background: #fff; }
.topbar-controls input, .topbar-controls select { width: auto; }
.form { display: flex; flex-direction: column; gap: 8px; }
.form label { font-weight: 600; margin-top: 4px; }
.list { list-style: none; padding: 0; }
.list li { padding: 10px 0; border-top: 1px solid #eee; }
table { width: 100%; border-collapse: collapse; table-layout: fixed; }
th, td { border: 1px solid #ddd; padding: 8px 4px; text-align: center; vertical-align: top; min-height: 44px; }
td[data-day] { cursor: pointer; }
td.selected { outline: 2px solid #2E7D6B; outline-offset: -2px; }
.badge { display: inline-block; background: #2E7D6B; color: #fff; border-radius: 999px; padding: 1px 8px; font-size: 0.8rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice { min-height: 1.5em; font-weight: 600; }
.thin-spot { color: #333; border-top: 1px solid #ddd; padding-top: 12px; }
footer { text-align: center; padding: 16px; }
footer a { color: #111; }
@media (max-width: 480px) {
  th, td { padding: 6px 2px; font-size: 0.85rem; }
  .badge { font-size: 0.7rem; padding: 1px 4px; }
  .topbar-controls { width: 100%; }
}

/* FVA doors reconciliation fix (suite header pattern): no sideways scroll,
   safe-area insets, 44px touch targets, Sign out never clipped. Clean
   interior track: no animation added. */
html, body { overflow-x: clip; max-width: 100%; }
body { overflow-wrap: anywhere; }
.topbar { flex-wrap: wrap; padding-top: calc(10px + env(safe-area-inset-top)); padding-left: calc(16px + env(safe-area-inset-left)); padding-right: calc(16px + env(safe-area-inset-right)); }
main { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
.btn, .tab, button { min-height: 44px; }
.btn.small { min-height: 44px; }
#signOutBtn, button#signOutBtn { flex-shrink: 0; }
.card, .list li, td, th { overflow-wrap: anywhere; word-break: break-word; min-width: 0; }
input, select, textarea { max-width: 100%; }
