* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; background: #F4F6F4; color: #111; line-height: 1.5; }
.topbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; background: #003A34; color: #fff; padding: 12px 16px; }
.brand { display: flex; align-items: center; gap: 10px; }
.logo { width: 32px; height: 32px; }
.brand-name { font-size: 20px; font-weight: 700; }
.topbar-controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.field-inline { display: flex; flex-direction: column; font-size: 13px; gap: 2px; }
.field-inline select { padding: 8px; border: 1px solid #ccc; border-radius: 999px; background: #fff; }
main { max-width: 1100px; margin: 0 auto; padding: 16px; }
.card { background: #fff; border: 1px solid #ddd; padding: 16px; margin-bottom: 16px; }
h1, h2, h3 { margin-top: 0; }
.muted { color: #555; }
.board { display: grid; grid-template-columns: 1fr; gap: 16px; }
.bucket { border: 1px solid #ddd; padding: 12px; }
.list { list-style: none; padding: 0; margin: 0; }
.list li { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid #eee; }
.list li:last-child { border-bottom: 0; }
.list .task-title { flex: 1 1 140px; }
.list .task-title.done-title { text-decoration: line-through; color: #555; }
.form { display: flex; flex-direction: column; gap: 12px; }
.form.row { flex-direction: column; }
.form label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; }
.form input, .form select { padding: 10px; border: 1px solid #ccc; border-radius: 8px; font-size: 16px; }
.btn { border: 0; border-radius: 999px; background: #111; color: #fff; padding: 10px 20px; cursor: pointer; font-size: 15px; }
.btn.primary { background: #111; }
.btn.small { padding: 6px 12px; font-size: 13px; }
.btn.danger { background: #8E3B2F; }
.btn:disabled { opacity: 0.6; }
.notice { background: #E6F0EC; border: 1px solid #2E7D6B; padding: 10px 12px; }
.error { background: #FBEDEA; border: 1px solid #8E3B2F; padding: 10px 12px; }
.footer { text-align: center; padding: 16px; color: #555; }
.footer a { color: #003A34; }
.edit-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; width: 100%; }
.edit-row input, .edit-row select { padding: 8px; border: 1px solid #ccc; border-radius: 8px; font-size: 15px; }
@media (min-width: 700px) {
  .board { grid-template-columns: 1fr 1fr 1fr; }
  .form.row { flex-direction: row; align-items: end; }
  .form.row label { flex: 1; }
}

/* 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%; }
