/* FVA Forms: clean inside track. Warm white, white cards, black pill buttons. */
:root {
  --emerald: #003A34;
  --emerald-2: #2E7D6B;
  --accent: #8E3B2F;
  --bg: #F4F6F4;
  --card: #FFFFFF;
  --text: #17211F;
  --muted: #5C6B67;
  --line: #DDE5E1;
  --danger: #B42318;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}
a { color: var(--emerald-2); }
.topbar {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  background: var(--card); border-bottom: 1px solid var(--line);
  padding: 10px 16px; position: sticky; top: 0; z-index: 10; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--emerald); }
.logo { width: 34px; height: 34px; }
.brand-name { font-weight: 800; font-size: 19px; letter-spacing: 0.2px; }
.top-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.top-actions select { width: auto; }
.chip { background: #E8F0EC; color: var(--emerald); padding: 5px 10px; border-radius: 999px; font-size: 13px; }
main { max-width: 900px; margin: 0 auto; padding: 20px 16px 60px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin-bottom: 16px; }
.card.narrow { max-width: 480px; margin: 30px auto; }
h1 { font-size: 26px; margin: 0 0 8px; color: var(--emerald); }
h2 { font-size: 19px; margin: 0 0 10px; color: var(--emerald); }
h3 { font-size: 16px; margin: 14px 0 6px; color: var(--emerald); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hidden { display: none !important; }
.form { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.form label { font-weight: 600; font-size: 14px; }
input, select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 10px; font-size: 15px; background: #fff; color: var(--text);
}
textarea { min-height: 140px; resize: vertical; }
.btn {
  background: #fff; color: var(--emerald); border: 1.5px solid var(--emerald);
  padding: 10px 16px; border-radius: 999px; font-weight: 700; cursor: pointer; font-size: 15px;
}
.btn.primary { background: #111111; border-color: #111111; color: #fff; }
.btn.small { padding: 6px 12px; font-size: 13px; }
.btn.danger { color: var(--danger); border-color: var(--danger); }
.btn:disabled { opacity: 0.55; cursor: default; }
.notice { background: #FFF6E5; border: 1px solid #C9A06B; padding: 10px 14px; border-radius: 10px; }
.notice.err { background: #FDECEA; border-color: var(--danger); }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.list { list-style: none; padding: 0; margin: 0; }
.list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.answer-list { margin: 4px 0 0 16px; padding: 0; }
.answer-list li { border-bottom: 0; padding: 2px 0; }
.footer { text-align: center; padding: 18px; color: var(--muted); font-size: 13px; }
.footer a { color: var(--muted); }
@media (max-width: 560px) {
  h1 { font-size: 22px; }
  .brand-name { font-size: 16px; }
  main { padding: 14px 12px 50px; }
}

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