/* ============================================================
   Leads Command Center — styles
   Light, calm, data-first. Restrained palette + one accent.
   ============================================================ */

:root {
    /* Neutrals — tinted cool, never pure black/white */
    --bg:        oklch(0.975 0.004 265);
    --surface:   oklch(0.995 0.002 265);
    --surface-2: oklch(0.965 0.005 265);
    --border:    oklch(0.915 0.006 265);
    --border-2:  oklch(0.88 0.008 265);
    --ink:       oklch(0.26 0.02 265);
    --ink-soft:  oklch(0.42 0.018 265);
    --muted:     oklch(0.56 0.014 265);

    /* Accent */
    --primary:      oklch(0.55 0.185 275);
    --primary-ink:  oklch(0.42 0.2 275);
    --primary-wash: oklch(0.955 0.03 275);

    /* Semantic status */
    --hot:       oklch(0.60 0.19 27);
    --hot-wash:  oklch(0.955 0.04 27);
    --warm:      oklch(0.70 0.15 70);
    --warm-wash: oklch(0.96 0.05 80);
    --cold:      oklch(0.60 0.10 240);
    --cold-wash: oklch(0.955 0.03 240);
    --new:       var(--primary);
    --new-wash:  var(--primary-wash);
    --good:      oklch(0.58 0.13 155);
    --good-wash: oklch(0.955 0.04 155);

    --shadow-sm: 0 1px 2px oklch(0.4 0.02 265 / 0.06), 0 1px 3px oklch(0.4 0.02 265 / 0.05);
    --shadow-md: 0 4px 12px oklch(0.4 0.02 265 / 0.08), 0 2px 4px oklch(0.4 0.02 265 / 0.05);
    --shadow-lg: 0 20px 50px oklch(0.3 0.03 265 / 0.18);
    --radius: 12px;
    --radius-sm: 8px;
}

* { box-sizing: border-box; }
/* The hidden attribute must always win over class display rules below
   (.modal/.drawer/.toast set display, which would otherwise override it). */
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--ink);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Brand ---------- */
.brand-dot {
    width: 12px; height: 12px; border-radius: 4px;
    background: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-wash);
    display: inline-block;
}
.brand-name { font-weight: 800; letter-spacing: -0.02em; }

/* ============================================================
   LOGIN
   ============================================================ */
.login-body {
    min-height: 100vh;
    display: grid; place-items: center;
    background:
        radial-gradient(1200px 600px at 80% -10%, var(--primary-wash), transparent 60%),
        var(--bg);
    padding: 24px;
}
.login-card {
    width: 100%; max-width: 380px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow-md);
    padding: 36px 32px;
}
.brand-mark { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.login-title { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; margin: 0 0 6px; }
.login-sub { color: var(--muted); margin: 0 0 24px; font-size: 13px; }
.login-form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field span { font-size: 12px; font-weight: 600; color: var(--ink-soft); }
.field input {
    width: 100%; padding: 11px 13px;
    border: 1px solid var(--border-2); border-radius: var(--radius-sm);
    background: var(--surface); color: var(--ink); font-size: 14px;
    transition: border-color .15s, box-shadow .15s;
}
.field input:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-wash);
}
.login-foot { text-align: center; color: var(--muted); font-size: 12px; margin: 20px 0 0; }
.alert-error {
    background: var(--hot-wash); color: var(--hot);
    border: 1px solid oklch(0.6 0.19 27 / 0.3);
    padding: 10px 12px; border-radius: var(--radius-sm);
    font-size: 13px; margin-bottom: 18px; font-weight: 500;
}

/* ---------- Buttons ---------- */
.btn-primary {
    background: var(--primary); color: white;
    border: none; border-radius: var(--radius-sm);
    padding: 10px 16px; font-weight: 600; font-size: 13px;
    display: inline-flex; align-items: center; gap: 8px;
    transition: background .15s, transform .05s;
}
.btn-primary:hover { background: var(--primary-ink); }
.btn-primary:active { transform: translateY(1px); }
.btn-block { width: 100%; justify-content: center; padding: 12px; }
.btn-ghost {
    background: var(--surface); color: var(--ink-soft);
    border: 1px solid var(--border-2); border-radius: var(--radius-sm);
    padding: 7px 14px; font-weight: 600; font-size: 13px;
}
.btn-ghost:hover:not(:disabled) { background: var(--surface-2); }
.btn-ghost:disabled { opacity: .45; cursor: not-allowed; }

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
    position: sticky; top: 0; z-index: 40;
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; padding: 12px 24px;
    background: oklch(0.995 0.002 265 / 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.topbar-left { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.topbar-right { display: flex; align-items: center; gap: 14px; }

.sync-box { display: flex; align-items: center; gap: 12px; }
.sync-time { font-size: 12px; color: var(--muted); white-space: nowrap; }
.btn-sync .ico { transition: transform .6s ease; }
.btn-sync.syncing .ico { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.icon-btn {
    position: relative;
    background: var(--surface); color: var(--ink-soft);
    border: 1px solid var(--border); border-radius: 10px;
    width: 38px; height: 38px; display: grid; place-items: center;
    transition: background .15s, color .15s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.bell-count {
    position: absolute; top: -6px; right: -6px;
    background: var(--hot); color: white;
    font-size: 10px; font-weight: 700;
    min-width: 18px; height: 18px; border-radius: 9px;
    display: grid; place-items: center; padding: 0 5px;
    border: 2px solid var(--surface);
}

.who-chip { display: flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 5px 10px; }
.who-label { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.who-chip input { border: none; background: transparent; font-size: 13px; font-weight: 600; color: var(--ink); width: 110px; outline: none; }
.who-chip input::placeholder { color: var(--muted); font-weight: 400; }
.ro-badge { font-size: 12px; font-weight: 700; color: oklch(0.5 0.12 65); background: var(--warm-wash); border: 1px solid oklch(0.8 0.09 75); padding: 6px 12px; border-radius: 8px; }

/* ============================================================
   PAGE LAYOUT
   ============================================================ */
.page { max-width: 1280px; margin: 0 auto; padding: 24px; display: grid; gap: 20px; }

/* ---------- Stat strip ---------- */
.stat-strip {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.stat {
    background: var(--surface); border: none;
    padding: 16px 14px; text-align: left;
    display: flex; flex-direction: column; gap: 4px;
    transition: background .12s;
    border-bottom: 3px solid transparent;
}
.stat:hover { background: var(--surface-2); }
.stat.is-active { background: var(--surface-2); }
.stat-num { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); }
.stat-label { font-size: 11px; color: var(--muted); font-weight: 500; }
.stat-new   { border-bottom-color: var(--new); }
.stat-hot   { border-bottom-color: var(--hot); }
.stat-warm  { border-bottom-color: var(--warm); }
.stat-cold  { border-bottom-color: var(--cold); }
.stat-visit { border-bottom-color: var(--good); }
.stat-rem   { border-bottom-color: var(--primary); }
.stat-over  { border-bottom-color: var(--hot); }
.stat-new  .stat-num { color: var(--primary-ink); }
.stat-hot  .stat-num { color: var(--hot); }
.stat-over .stat-num { color: var(--hot); }

/* ---------- Panels ---------- */
.grid-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 20px;
}
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.panel-head h2 { font-size: 15px; font-weight: 700; margin: 0; letter-spacing: -0.01em; }
.panel-date, .hint, .muted { font-size: 12px; color: var(--muted); }
.hint { font-style: normal; }

/* ---------- Today panel ---------- */
.today-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.today-title {
    font-size: 12px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .04em; margin: 0 0 10px; padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}
.today-visit { color: var(--good); }
.today-call  { color: var(--primary-ink); }
.today-over  { color: var(--hot); }
.mini-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 240px; overflow-y: auto; }
.mini-list li {
    display: flex; flex-direction: column; gap: 1px;
    padding: 8px 10px; border-radius: var(--radius-sm);
    background: var(--surface-2); cursor: pointer;
    transition: background .12s;
}
.mini-list li:hover { background: var(--primary-wash); }
.mini-list li.empty { background: transparent; color: var(--muted); cursor: default; font-size: 12px; padding: 8px 0; }
.mini-list li.empty:hover { background: transparent; }
.mini-name { font-weight: 600; font-size: 13px; }
.mini-meta { font-size: 11px; color: var(--muted); }

/* ---------- Funnel ---------- */
.funnel { display: grid; gap: 12px; }
.funnel-row { display: grid; grid-template-columns: 80px 1fr 40px; align-items: center; gap: 12px; }
.fl { font-size: 12px; color: var(--ink-soft); font-weight: 500; }
.fbar { height: 10px; background: var(--surface-2); border-radius: 6px; overflow: hidden; }
.fbar span { display: block; height: 100%; background: var(--primary); border-radius: 6px; width: 0; transition: width .6s cubic-bezier(.2,.8,.2,1); }
#f-contacted { background: var(--cold); }
#f-hot { background: var(--hot); }
#f-site { background: var(--good); }
.funnel-row b { font-size: 13px; font-weight: 700; text-align: right; }
.funnel-note { font-size: 11px; color: var(--muted); margin: 16px 0 0; }

/* ============================================================
   LEADS TABLE
   ============================================================ */
.table-head { flex-wrap: wrap; gap: 12px; }
.tabs { display: flex; gap: 4px; background: var(--surface-2); padding: 4px; border-radius: 10px; }
.tab {
    background: transparent; border: none; color: var(--muted);
    padding: 6px 14px; border-radius: 7px; font-weight: 600; font-size: 13px;
    transition: all .12s;
}
.tab:hover { color: var(--ink); }
.tab.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

.search-box {
    display: flex; align-items: center; gap: 8px;
    background: var(--surface-2); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 0 12px; color: var(--muted);
    min-width: 260px;
}
.search-box input {
    border: none; background: transparent; padding: 9px 0;
    font-size: 13px; width: 100%; color: var(--ink); outline: none;
}

.table-wrap { overflow-x: auto; margin: 0 -4px; }
.leads-table { width: 100%; border-collapse: collapse; }
.leads-table th {
    text-align: left; font-size: 11px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .04em; color: var(--muted);
    padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap;
}
.leads-table td {
    padding: 13px 12px; border-bottom: 1px solid var(--border);
    font-size: 13px; vertical-align: middle;
}
.leads-table tbody tr { transition: background .1s; }
.leads-table tbody tr:hover { background: var(--surface-2); }
.leads-table tbody tr.is-new { background: var(--new-wash); }
.leads-table tbody tr.is-new:hover { background: oklch(0.94 0.04 275); }

.cell-name { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.new-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); flex: none; }
.cell-mono { font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.cell-muted { color: var(--muted); }

.badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 9px; border-radius: 20px; font-size: 11px; font-weight: 700;
    text-transform: capitalize; letter-spacing: .01em;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-new  { background: var(--new-wash);  color: var(--primary-ink); }
.badge-hot  { background: var(--hot-wash);  color: var(--hot); }
.badge-warm { background: var(--warm-wash); color: oklch(0.5 0.13 65); }
.badge-cold { background: var(--cold-wash); color: var(--cold); }

.next-chip { font-size: 12px; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 5px; }
.next-chip.is-over { color: var(--hot); font-weight: 600; }
.next-chip svg { opacity: .7; }

.row-open {
    background: var(--surface); border: 1px solid var(--border-2);
    color: var(--primary-ink); font-weight: 600; font-size: 12px;
    padding: 6px 12px; border-radius: 7px;
}
.row-open:hover { background: var(--primary-wash); border-color: var(--primary); }

.loading-row, .empty-row { text-align: center; color: var(--muted); padding: 40px !important; }

.table-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.pager { display: flex; align-items: center; gap: 12px; }

/* ============================================================
   NOTIFICATION DRAWER
   ============================================================ */
.scrim { position: fixed; inset: 0; background: oklch(0.2 0.02 265 / 0.35); z-index: 50; }
.drawer {
    position: fixed; top: 0; right: 0; bottom: 0; width: 380px; max-width: 90vw;
    background: var(--surface); border-left: 1px solid var(--border);
    box-shadow: var(--shadow-lg); z-index: 60;
    display: flex; flex-direction: column;
    animation: slideIn .25s cubic-bezier(.2,.8,.2,1);
}
@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.drawer-head h2 { margin: 0; font-size: 16px; font-weight: 700; }
.drawer-body { padding: 16px 20px; overflow-y: auto; }
.notif-group { margin-bottom: 22px; }
.notif-group h3 {
    font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
    color: var(--muted); margin: 0 0 10px;
}
.notif-item {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 10px; border-radius: var(--radius-sm); background: var(--surface-2);
    margin-bottom: 8px; cursor: pointer; transition: background .12s;
}
.notif-item:hover { background: var(--primary-wash); }
.notif-icon { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.ni-new { background: var(--new-wash); color: var(--primary-ink); }
.ni-visit { background: var(--good-wash); color: var(--good); }
.ni-call { background: var(--primary-wash); color: var(--primary-ink); }
.ni-over { background: var(--hot-wash); color: var(--hot); }
.notif-item .n-name { font-weight: 600; font-size: 13px; }
.notif-item .n-meta { font-size: 11px; color: var(--muted); }
.notif-empty { color: var(--muted); font-size: 13px; padding: 8px 0; }

/* ============================================================
   MODAL
   ============================================================ */
.modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 24px; background: oklch(0.2 0.02 265 / 0.4); }
.modal-card {
    width: 100%; max-width: 680px; max-height: 90vh; overflow: hidden;
    background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-lg);
    display: flex; flex-direction: column;
    animation: pop .2s cubic-bezier(.2,.8,.2,1);
}
@keyframes pop { from { transform: scale(.97); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.modal-head h2 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.modal-sub { font-size: 12px; color: var(--muted); }
.modal-body { padding: 20px 24px; overflow-y: auto; }

.lead-contacts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.contact-pill {
    display: inline-flex; align-items: center; gap: 7px;
    background: var(--surface-2); border: 1px solid var(--border);
    border-radius: 20px; padding: 6px 12px; font-size: 13px; color: var(--ink-soft);
    text-decoration: none;
}
.contact-pill:hover { border-color: var(--primary); color: var(--primary-ink); }

.section-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 20px 0 10px; }

/* status picker */
.status-picker { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.status-opt {
    border: 1.5px solid var(--border-2); background: var(--surface);
    border-radius: var(--radius-sm); padding: 10px; font-weight: 700; font-size: 13px;
    text-transform: capitalize; transition: all .12s; color: var(--ink-soft);
}
.status-opt[data-v="new"].is-on  { border-color: var(--primary); background: var(--new-wash); color: var(--primary-ink); }
.status-opt[data-v="hot"].is-on  { border-color: var(--hot); background: var(--hot-wash); color: var(--hot); }
.status-opt[data-v="warm"].is-on { border-color: var(--warm); background: var(--warm-wash); color: oklch(0.5 0.13 65); }
.status-opt[data-v="cold"].is-on { border-color: var(--cold); background: var(--cold-wash); color: var(--cold); }

.toggle-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 14px; background: var(--surface-2); border-radius: var(--radius-sm);
    margin-bottom: 10px;
}
.toggle-row .tr-label { font-weight: 600; font-size: 13px; }
.toggle-row .tr-sub { font-size: 11px; color: var(--muted); }
.switch { position: relative; width: 42px; height: 24px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; inset: 0; background: var(--border-2); border-radius: 24px; transition: .2s; }
.slider::before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: white; border-radius: 50%; transition: .2s; box-shadow: var(--shadow-sm); }
.switch input:checked + .slider { background: var(--primary); }
.switch input:checked + .slider::before { transform: translateX(18px); }

.date-field { margin: -2px 0 12px; padding: 0 14px 12px; }
.date-field label { font-size: 12px; font-weight: 600; color: var(--ink-soft); display: block; margin-bottom: 6px; }
.date-field input {
    width: 100%; padding: 9px 12px; border: 1px solid var(--border-2);
    border-radius: var(--radius-sm); font-size: 13px; font-family: inherit; color: var(--ink);
}
.date-field input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-wash); }
.hidden { display: none; }

.notes-area {
    width: 100%; min-height: 72px; padding: 11px 13px; resize: vertical;
    border: 1px solid var(--border-2); border-radius: var(--radius-sm);
    font-family: inherit; font-size: 13px; color: var(--ink);
}
.notes-area:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-wash); }

/* AI box */
.ai-box { background: var(--primary-wash); border: 1px solid oklch(0.8 0.06 275); border-radius: var(--radius-sm); padding: 14px; margin-top: 8px; }
.ai-box .ai-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.ai-box .ai-title { font-weight: 700; font-size: 12px; color: var(--primary-ink); display: flex; align-items: center; gap: 6px; }
.ai-text { font-size: 13px; color: var(--ink-soft); white-space: pre-wrap; line-height: 1.6; }
.ai-btn { font-size: 12px; font-weight: 600; color: var(--primary-ink); background: var(--surface); border: 1px solid var(--border-2); padding: 5px 10px; border-radius: 6px; }
.ai-btn:hover { border-color: var(--primary); }

/* raw data */
.raw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.raw-cell { background: var(--surface); padding: 9px 12px; }
.raw-k { font-size: 10px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); font-weight: 600; }
.raw-v { font-size: 13px; color: var(--ink); word-break: break-word; }
details.raw-details summary { cursor: pointer; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 20px 0 10px; }

/* history */
.history { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.history li { font-size: 12px; color: var(--ink-soft); padding-left: 14px; position: relative; }
.history li::before { content: ""; position: absolute; left: 0; top: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.history .h-actor { font-weight: 700; }
.history .h-time { color: var(--muted); }

.modal-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--border); }
.save-hint { margin-right: auto; font-size: 12px; color: var(--good); font-weight: 600; opacity: 0; transition: opacity .2s; }
.save-hint.show { opacity: 1; }

/* ---------- Toast ---------- */
.toast {
    position: fixed; top: 72px; left: 50%; transform: translateX(-50%) translateY(-8px);
    background: var(--ink); color: white; padding: 11px 18px; border-radius: 10px;
    font-size: 13px; font-weight: 600; z-index: 90; box-shadow: var(--shadow-lg);
    opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none;
    display: flex; align-items: center; gap: 10px; max-width: 90vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.good { background: oklch(0.4 0.1 155); }
.toast .t-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warm); }
.toast.good .t-dot { background: oklch(0.75 0.15 155); }

.view-only-note { background: var(--warm-wash); color: oklch(0.45 0.12 65); font-size: 12px; font-weight: 600; padding: 8px 12px; border-radius: var(--radius-sm); margin-top: 14px; text-align: center; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
    .stat-strip { grid-template-columns: repeat(4, 1fr); }
    .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .topbar { flex-wrap: wrap; padding: 10px 14px; }
    .sync-time { display: none; }
    .who-label { display: none; }
    .who-chip input { width: 90px; }
    .page { padding: 14px; }
    .stat-strip { grid-template-columns: repeat(2, 1fr); }
    .today-cols { grid-template-columns: 1fr; }
    .status-picker { grid-template-columns: repeat(2, 1fr); }
    .raw-grid { grid-template-columns: 1fr; }
    .search-box { min-width: 0; flex: 1; }
    .table-head { flex-direction: column; align-items: stretch; }
}
