/* VanHub - clean light theme, mobile-first */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #fafafa; --card: #ffffff; --ink: #1a1a1a; --muted: #8a8a8a;
  --accent: #e4572e; --today: #ffd9d4; --past: #e9e9e9; --line: #e5e5e5;
  --chip: #f0f0f0;
}
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg); color: var(--ink); }
.topbar { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between;
  align-items: center; padding: 12px 16px; background: var(--card); border-bottom: 1px solid var(--line); }
.brand { font-size: 22px; font-weight: 800; }
.brand-accent { color: var(--accent); }
.view-toggle { display: flex; gap: 6px; }
.tab { border: 0; background: transparent; padding: 8px 16px; border-radius: 20px;
  font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; }
.tab.active { background: var(--ink); color: #fff; }
.filters { display: flex; gap: 8px; padding: 10px 16px; flex-wrap: wrap;
  position: sticky; top: 57px; z-index: 9; background: var(--bg); }
select { padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--card); color: var(--text); font-size: 14px; }

/* sources checklist popover */
.srcwrap { position: relative; }
.src-btn { padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--card); color: var(--text); font-size: 14px; cursor: pointer; }
.src-pop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 50;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12); min-width: 240px; max-height: 320px;
  overflow-y: auto; padding: 8px; }
.src-pop.hidden { display: none; }
.src-head { font-size: 12px; color: var(--muted); padding: 2px 6px 8px;
  border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.src-head a { color: var(--accent); text-decoration: none; font-weight: 600; }
.src-row { display: flex; align-items: center; gap: 8px; padding: 5px 6px;
  font-size: 13px; cursor: pointer; border-radius: 6px; }
.src-row:hover { background: var(--bg); }
.src-row input { accent-color: var(--accent); }
.src-row em { margin-left: auto; color: var(--muted); font-style: normal; font-size: 12px; }

.filters select { flex: 1 1 140px; max-width: 220px; }

/* Feed: mobile = single column (Instagram), desktop = square grid */
.feed { display: grid; grid-template-columns: 1fr; gap: 14px; padding: 12px 16px 80px; }
@media (min-width: 640px) { .feed { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .feed { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.card .when { font-size: 12px; font-weight: 700; color: var(--accent); }
.card h3 { font-size: 15px; line-height: 1.3; }
.card .venue { font-size: 13px; color: var(--muted); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font-size: 11px; font-weight: 600; background: var(--chip); border-radius: 20px;
  padding: 3px 10px; }
.chip.paid { background: #fff3e0; color: #b26a00; }
.chip.private { background: #f3e5f5; color: #7b1fa2; }
.card .go { margin-top: auto; text-align: center; padding: 9px; border-radius: 10px;
  background: var(--ink); color: #fff; text-decoration: none; font-size: 13px; font-weight: 600; }

/* Calendar: month grid, scroll for next month */
.calendar { padding: 12px 16px 80px; max-width: 900px; margin: 0 auto; }
.month { margin-bottom: 28px; }
.month h2 { font-size: 17px; margin-bottom: 10px; }
.grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.dow { font-size: 11px; color: var(--muted); text-align: center; padding: 4px 0; }
.day { min-height: 64px; background: var(--card); border: 1px solid var(--line);
  border-radius: 8px; padding: 5px; cursor: pointer; font-size: 12px; position: relative; }
.day.empty { background: transparent; border: 0; cursor: default; }
.day.past { background: var(--past); color: var(--muted); }
.day.today { background: var(--today); border-color: var(--accent); }
.day .n { font-weight: 700; font-size: 12px; }
.day .cnt { position: absolute; bottom: 4px; left: 5px; right: 5px; font-size: 10px;
  color: var(--muted); white-space: nowrap; overflow: hidden; }

/* Day modal: hourly timeline with zoom */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 20;
  display: flex; align-items: center; justify-content: center; }
.modal-card { background: var(--card); width: 100%; max-width: 640px; height: 40vh;
  border-radius: 18px; display: flex; flex-direction: column; overflow: hidden; }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 18px 18px 12px;
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 2;
  background: var(--card); }
.modal-body { overflow-y: auto; padding: 12px 18px 24px; flex: 1; min-height: 0; }
.modal-head h2 { font-size: 16px; flex: 1; }
.zoom-row { display: flex; align-items: center; gap: 8px; }
.zoom-row button { border: 1px solid var(--line); background: var(--card);
  border-radius: 8px; width: 30px; height: 30px; font-size: 16px; cursor: pointer; }
.tl-row { display: grid; grid-template-columns: 52px 1fr; gap: 10px; padding: 5px 0;
  border-top: 1px solid var(--line); }
.tl-row .h { font-size: 12px; color: var(--muted); text-align: right; padding-top: 2px; }
.tl-ev { background: var(--bg); border-radius: 8px; padding: 8px 10px; margin-bottom: 6px; }
.tl-ev .t { font-weight: 700; font-size: 13px; }
.tl-ev .s { font-size: 12px; color: var(--muted); }
.tl-ev a { font-size: 12px; color: var(--accent); font-weight: 600; }
.hidden { display: none !important; }
.status { text-align: center; color: var(--muted); padding: 30px; font-size: 14px; }
.foot { text-align: center; color: var(--muted); font-size: 12px; padding: 20px; }
