/* Phone first. Shares ui.css colors and controls with the extension. */
body { padding: 0 12px calc(76px + env(safe-area-inset-bottom)); font-size: 15px; max-width: 640px; margin: 0 auto; }
.top { position: sticky; top: 0; z-index: 4; display: flex; justify-content: space-between; align-items: center; padding: calc(10px + env(safe-area-inset-top)) 0 10px; background: var(--bg); }
.top-brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 17px; }
.top-brand img { border-radius: 7px; }
.sync-dot { font-size: 12px; color: var(--warn-text); background: var(--warn-bg); border-radius: 999px; padding: 2px 10px; }
h1 { font-size: 21px; }
h2 { font-size: 16px; margin: 4px 0 0; }
button, a.button, input, select, textarea { font-size: 16px; min-height: 44px; }
button.chip { min-height: 36px; }
button.link { min-height: 0; }
button.wide { width: 100%; }
button.big { padding: 14px; font-size: 17px; }
.tabbar { position: fixed; inset-inline: 0; bottom: 0; z-index: 5; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabbar button { border: 0; border-radius: 0; background: none; min-height: 56px; color: var(--muted); font-weight: 600; }
.tabbar button[aria-current="page"] { color: var(--accent); box-shadow: inset 0 3px 0 var(--accent); }
.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.chips button { flex: none; }
.lead-row { display: grid; gap: 8px; }
.lead-row .title { font-size: 16px; font-weight: 700; }
.price-sm { font-weight: 700; white-space: nowrap; }
.actions { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.actions.wrap { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
.actions a.button { text-align: center; display: flex; align-items: center; justify-content: center; }
.reply { background: var(--accent-soft); border-radius: 8px; padding: 8px 10px; }
.badge.reason { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.badge.reason.stuck, .badge.reason.noAnswer { background: var(--surface-2); color: var(--muted); }
.meeting { text-align: start; width: 100%; }
.row.nowrap { flex-wrap: nowrap; }
.row.nowrap select { width: 40%; }
.back { color: var(--accent); padding: 4px 0; }
.log-row { font-size: 13px; }
.gate { display: grid; gap: 10px; justify-items: center; text-align: center; margin-top: 6vh; }
.gate > .card { width: 100%; text-align: start; }
.gate img { border-radius: 16px; }
.grid-3 { display: grid; gap: 10px; }
.toast { position: fixed; bottom: calc(72px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); background: #17212c; color: #fff; border-radius: 9px; padding: 9px 16px; z-index: 9; font-size: 14px; }
.top + main > .gate { margin-top: 2vh; }
.lead-edit summary { cursor: pointer; font-weight: 600; color: var(--accent); }
.lead-edit[open] summary { margin-bottom: 10px; }
