/* Admin + agenda: phone-first. */
body { max-width: 760px; margin: 0 auto; padding-bottom: 96px; }
.top { position: sticky; top: 0; z-index: 10; background: var(--bg); padding: 10px 16px 8px; border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.top h1 { font-size: 20px; margin: 0; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drift { font-size: 14px; color: var(--muted); margin: 2px 0 6px; }
.drift.behind { color: var(--warn); font-weight: 600; }
.conflicts { color: var(--bad); font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 6px; -webkit-overflow-scrolling: touch; }
.tab { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; padding: 6px 12px; min-height: 48px; line-height: 1.15; }
.tab small { font-size: 12px; color: var(--muted); }
.tab.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.tab.on small { color: inherit; opacity: .85; }
#track { margin-top: 4px; }
.list { padding: 8px 16px; display: flex; flex-direction: column; gap: 6px; }
.item { display: flex; gap: 12px; align-items: flex-start; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; }
.item .when { flex: 0 0 76px; white-space: nowrap; font-weight: 600; padding-top: 1px; }
.item .what { flex: 1; min-width: 0; }
.item .name { font-weight: 600; overflow-wrap: anywhere; }
.item .sub { font-size: 14px; color: var(--muted); }
.item.live { background: var(--live-bg); border-color: var(--accent); }
.item.done { opacity: .5; }
.item.skipped .name, .item.skipped .when { text-decoration: line-through; color: var(--muted); }
.item.conflict { border-color: var(--bad); }
.item.conflict .when { color: var(--bad); }
.chip.live { background: var(--accent); color: var(--accent-ink); margin-left: 6px; vertical-align: 2px; }
.chip.done { background: transparent; border-color: var(--line); }
.chip.skipped { text-decoration: line-through; }
.chip.conflict { background: var(--bad); color: #fff; }
.empty { color: var(--muted); padding: 24px 0; text-align: center; }
