/* Screen styles for V&M Outreach. Tokens and components come from app.css. */
/* The shell is a fixed flex column (app.css); the app itself scrolls under a sticky top bar so every screen can run past the fold. */
#app { overflow-y: auto; -webkit-overflow-scrolling: touch; }
.topbar { position: sticky; top: 0; }
.view { max-width: var(--container); margin: 0 auto; padding: var(--s5) var(--s5) var(--s8); }
.topbar-nav { display: flex; gap: 2px; margin-left: var(--s5); flex-wrap: wrap; }
.topbar-nav a { text-decoration: none; }
.topbar-nav a.active { color: var(--text); background: var(--surface-2); border-color: var(--line); }
.page-head { display: flex; align-items: flex-end; gap: var(--s4); margin-bottom: var(--s5); flex-wrap: wrap; }
.page-head .sub { margin-top: 4px; }
.page-head .actions { margin-left: auto; display: flex; gap: var(--s2); flex-wrap: wrap; }
.toasts { position: fixed; right: var(--s4); bottom: var(--s4); display: flex; flex-direction: column; gap: var(--s2); z-index: 300; }
.toast { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 10px 14px; font-size: var(--t-sm); opacity: 0; transform: translateY(6px); transition: all .2s var(--ease); box-shadow: var(--shadow-sm); }
.toast.show { opacity: 1; transform: none; }
.toast.ok { border-color: rgba(55,214,122,.4); }
.toast.bad { border-color: rgba(255,93,93,.4); }
.kbd { font-family: var(--font-mono); font-size: var(--t-xs); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 3px; padding: 1px 6px; color: var(--muted); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.stats tr.clickable { cursor: pointer; }
table.stats tr.clickable:hover td { background: var(--surface-2); }
.empty-state { padding: var(--s7) var(--s5); text-align: center; border: 1px dashed var(--line-2); border-radius: var(--radius); }
.tab { background: transparent; border: 0; border-bottom: 2px solid transparent; padding: 8px 12px; color: var(--muted); cursor: pointer; font-weight: 500; margin-bottom: -1px; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); border-bottom-color: var(--accent); }
.tab-count { color: var(--muted-2); font-size: var(--t-xs); }
.modal-text { padding: var(--s3) var(--s5); margin: 0; }
.char-count.ok { color: var(--green); } .char-count.near { color: var(--accent); } .char-count.over { color: var(--red); }
.banner { border: 1px solid var(--line-2); border-left: 3px solid var(--accent); background: var(--surface); padding: var(--s3) var(--s4); border-radius: var(--radius); margin-bottom: var(--s4); font-size: var(--t-sm); }
.banner.red { border-left-color: var(--red); }
.banner.blue { border-left-color: var(--blue); }
.strip { display: flex; gap: var(--s2); flex-wrap: wrap; margin-bottom: var(--s5); }
.strip .stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; min-width: 150px; }
.strip .stat .k { font-family: var(--font-mono); font-size: var(--t-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }
.strip .stat .v { font-family: var(--font-mono); font-size: var(--t-lg); font-variant-numeric: tabular-nums; margin-top: 2px; }
.strip .stat.amber .v { color: var(--accent); } .strip .stat.red .v { color: var(--red); } .strip .stat.green .v { color: var(--green); }
@media (max-width: 720px) { .view { padding: var(--s3); } .topbar-nav { margin-left: var(--s2); } }
