:root {
    --bg: #f5f7fb;
    --surface: #ffffff;
    --ink: #172033;
    --muted: #657085;
    --line: #dfe5ef;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --shadow: 0 18px 45px rgba(23, 32, 51, 0.09);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--bg);
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--bg); }
button, input, select { font: inherit; }
a { color: inherit; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 14px; color: white; background: var(--ink); border-radius: 8px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid rgba(37, 99, 235, .45); outline-offset: 2px; }

.site-header {
    min-height: 68px;
    padding: 12px clamp(16px, 4vw, 48px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 750; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; color: white; background: var(--ink); border-radius: 10px; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.language-switch { display: inline-flex; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; }
.language-switch form { display: flex; }
.language-switch button { padding: 7px 9px; border: 0; background: white; color: var(--muted); cursor: pointer; }
.language-switch button[aria-current="true"] { color: white; background: var(--ink); }
.active-user { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; border-left: 1px solid var(--line); }
.active-user span:last-child { display: grid; }
.active-user small { color: var(--muted); font-size: 11px; }
.user-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--user-color, var(--primary)); }
.switch-form { display: inline-flex; gap: 6px; }
.switch-form select { max-width: 150px; padding: 8px 28px 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: white; }

.button { min-height: 40px; padding: 9px 15px; border: 1px solid transparent; border-radius: 10px; font-weight: 700; cursor: pointer; }
.button-primary { color: white; background: var(--primary); }
.button-primary:hover { background: var(--primary-dark); }
.button-quiet { color: var(--muted); background: transparent; border-color: var(--line); }
.button-danger { color: white; background: #b91c1c; }

.page-shell { width: min(1160px, calc(100% - 32px)); margin: 0 auto; padding: 48px 0; }
.page-heading h1, .auth-card h1 { margin: 6px 0 8px; font-size: clamp(30px, 5vw, 44px); letter-spacing: -0.035em; }
.page-heading p, .auth-card > p, .empty-panel p { color: var(--muted); line-height: 1.6; }
.eyebrow { color: var(--primary); font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }

.auth-card { width: min(440px, 100%); margin: 7vh auto 0; padding: clamp(24px, 5vw, 40px); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.stack { display: grid; gap: 14px; margin-top: 28px; }
.stack p { display: grid; gap: 7px; margin: 0; }
.stack label { font-size: 14px; font-weight: 700; }
.stack input, .stack select { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #c9d2e0; border-radius: 10px; background: white; }
.stack input:focus, .stack select:focus { outline: 3px solid rgba(37, 99, 235, 0.15); border-color: var(--primary); }
.errorlist { margin: 0; padding: 10px 12px; list-style: none; color: #991b1b; background: #fef2f2; border-radius: 9px; font-size: 14px; }

.empty-panel { margin-top: 36px; padding: 48px 24px; text-align: center; background: var(--surface); border: 1px dashed #c7d0df; border-radius: 18px; }
.empty-panel h2 { margin: 12px 0 6px; }
.empty-icon { width: 46px; height: 46px; margin: auto; display: grid; place-items: center; color: white; background: #16a34a; border-radius: 50%; font-weight: 900; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ── Page-level layout ── */
.page-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

/* ── Search bar ── */
.search-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.search-bar input[type="search"] {
    flex: 1;
    min-width: 200px;
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
}

/* ── Lead table ── */
.lead-table-wrap { overflow-x: auto; }
.lead-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.lead-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
    background: var(--bg);
}
.lead-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
    font-size: 14px;
}
.lead-table tr:last-child td { border-bottom: none; }
.lead-table tbody tr:hover { background: var(--bg); }
.lead-table a { text-decoration: none; }
.lead-table a:hover { text-decoration: underline; }

/* ── Stage badge ── */
.stage-badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    background: #e2e8f0;
    color: #334155;
}
.stage-badge.stage-calling { background: #dbeafe; color: #1e40af; }
.stage-badge.stage-appointment_1_booked { background: #fef9c3; color: #854d0e; }
.stage-badge.stage-appointment_1_held { background: #fef3c7; color: #92400e; }
.stage-badge.stage-appointment_2_booked { background: #fde68a; color: #78350f; }
.stage-badge.stage-appointment_2_held { background: #fed7aa; color: #7c2d12; }
.stage-badge.stage-closed_won { background: #dcfce7; color: #166534; }
.stage-badge.stage-closed_lost { background: #fee2e2; color: #991b1b; }
.stage-badge.stage-long_term_follow_up { background: #f3e8ff; color: #6b21a8; }

/* ── Detail grid ── */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 24px;
}
.card h2 { margin: 0 0 16px; font-size: 16px; }

/* ── Info list (dl) ── */
.info-list { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; font-size: 14px; }
.info-list dt { color: var(--muted); font-weight: 600; white-space: nowrap; align-self: start; padding-top: 2px; }
.info-list dd { margin: 0; word-break: break-word; }

/* ── Task list ── */
.section-tasks, .section-activity { margin-bottom: 20px; }
.task-list { list-style: none; margin: 0; padding: 0; }
.task-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    flex-wrap: wrap;
}
.task-item:last-child { border-bottom: none; }
.task-info { flex: 1; min-width: 200px; font-size: 14px; }
.task-date { color: var(--muted); font-size: 13px; margin-left: 8px; }
.task-notes { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.task-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.task-actions form { margin: 0; }
.task-overdue { background: #fff7ed; border-radius: 10px; padding: 10px 12px; margin: 4px 0; }
.badge-overdue {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    background: #fee2e2;
    color: #991b1b;
    margin-right: 4px;
}

/* ── Task add panel ── */
.task-add-panel { margin-top: 16px; }
.task-add-panel summary {
    cursor: pointer;
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
    padding: 8px 0;
    user-select: none;
}
.task-add-panel .stack { margin-top: 16px; }

/* ── Activity feed ── */
.activity-feed { list-style: none; margin: 0; padding: 0; }
.activity-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
}
.activity-item:last-child { border-bottom: none; }
.activity-time { color: var(--muted); font-size: 12px; }
.activity-type { font-weight: 700; color: var(--primary); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.activity-actor { color: var(--muted); }
.activity-summary { color: var(--ink); }
.activity-changes { list-style: none; margin: 4px 0 0; padding: 0; }
.activity-changes li { font-size: 12px; color: var(--muted); }
.activity-changes code { background: var(--bg); padding: 1px 4px; border-radius: 4px; }
.activity-changes del { color: #991b1b; text-decoration: none; background: #fee2e2; padding: 0 2px; border-radius: 2px; }
.activity-changes ins { color: #166534; text-decoration: none; background: #dcfce7; padding: 0 2px; border-radius: 2px; }

/* ── Form card ── */
.form-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: clamp(20px, 4vw, 36px);
    max-width: 760px;
}
.form-card fieldset { border: none; margin: 0; padding: 0; }
.form-card legend { font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.form-actions { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }

/* ── Alert ── */
.alert { padding: 14px 18px; border-radius: 12px; margin-bottom: 20px; font-size: 14px; }
.alert-warning { background: #fef9c3; border: 1px solid #fde68a; color: #713f12; }
.alert-warning ul { margin: 8px 0 0; padding-left: 20px; }
.alert-warning a { color: var(--primary); }
.alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.field-error { color: #991b1b; font-size: 13px; }

/* ── Daily workspace and settings ── */
.date-nav, .daily-filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.date-picker-form, .batch-task-toolbar, .batch-task-toolbar form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.date-picker-form input[type="date"], .batch-task-toolbar input[type="date"] { min-height: 40px; padding: 7px 9px; border: 1px solid #c9d2e0; border-radius: 9px; background: white; }
.batch-task-toolbar { position: sticky; top: 8px; z-index: 5; justify-content: space-between; margin: 0 0 18px; padding: 12px 14px; border: 1px solid #bfdbfe; border-radius: 14px; background: #eff6ff; box-shadow: 0 8px 24px rgba(37, 99, 235, .09); }
.batch-task-toolbar form { margin: 0; }
.batch-task-toolbar label { font-size: 13px; font-weight: 700; }
.task-selector { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 8px; color: var(--muted); font-size: 12px; font-weight: 700; cursor: pointer; }
.task-selector input { width: 18px; height: 18px; accent-color: var(--primary); }
.daily-filters { margin-bottom: 24px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.daily-filters > label:not(.check-row) { display: grid; gap: 5px; min-width: 170px; font-size: 13px; font-weight: 700; }
.daily-filters select { min-height: 42px; padding: 8px 10px; border: 1px solid #c9d2e0; border-radius: 9px; background: white; }
.daily-task-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.daily-task-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 15px; }
.daily-task-card.is-overdue { border-left: 5px solid #dc2626; }
.daily-task-main { min-width: 0; }
.daily-task-main h2 { margin: 8px 0; font-size: 18px; overflow-wrap: anywhere; }
.daily-task-main p { margin: 5px 0; overflow-wrap: anywhere; }
.task-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: 12px; }
.daily-actions { max-width: 440px; justify-content: flex-end; }
.task-outcome-dialog { width: min(620px, calc(100% - 28px)); max-height: min(88vh, 760px); padding: 0; border: 0; border-radius: 18px; color: var(--ink); background: var(--surface); box-shadow: 0 28px 80px rgba(23, 32, 51, .28); overflow: auto; }
.task-outcome-dialog::backdrop { background: rgba(15, 23, 42, .55); backdrop-filter: blur(2px); }
.task-outcome-header { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; gap: 20px; padding: 22px 24px 14px; background: var(--surface); border-bottom: 1px solid var(--line); }
.task-outcome-header h2 { margin: 4px 0; }
.task-outcome-header p { margin: 0; }
.task-outcome-dialog form { margin: 0; padding: 8px 24px 24px; }
.task-outcome-dialog select, .task-outcome-dialog input, .task-outcome-dialog textarea { width: 100%; min-height: 44px; padding: 9px 11px; border: 1px solid #c9d2e0; border-radius: 9px; background: white; }
.task-outcome-dialog textarea { resize: vertical; }
.task-outcome-dialog [hidden] { display: none !important; }
.dialog-close { width: 40px; height: 40px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: white; font-size: 24px; line-height: 1; cursor: pointer; }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.settings-card { display: block; text-decoration: none; }
.settings-card h2 { margin: 0 0 8px; }
.settings-card p { color: var(--muted); }
.settings-table { width: 100%; border-collapse: collapse; background: var(--surface); }
.settings-table caption { padding: 12px; color: var(--muted); text-align: left; }
.settings-table th, .settings-table td { padding: 12px 14px; border-top: 1px solid var(--line); text-align: left; vertical-align: middle; }
.settings-list { display: grid; gap: 10px; padding: 0; list-style: none; }
.settings-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.settings-list li > div:first-child { display: grid; gap: 3px; }
.settings-list small { color: var(--muted); }

/* ── Messages ── */
.messages { list-style: none; margin: 0 0 20px; padding: 0; }
.messages li { padding: 12px 16px; border-radius: 10px; margin-bottom: 8px; font-size: 14px; }
.messages li.success { background: #dcfce7; color: #166534; }
.messages li.error { background: #fee2e2; color: #991b1b; }
.messages li.info { background: #dbeafe; color: #1e40af; }

/* ── Muted helper ── */
.muted { color: var(--muted); }

/* ── Pipeline board ── */
.pipeline-page { width: 100%; margin-inline: 0; }
.pipeline-filters { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; margin-bottom: 20px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.pipeline-filters label { display: grid; gap: 5px; color: var(--muted); font-size: 12px; font-weight: 700; }
.pipeline-filters input, .pipeline-filters select { min-height: 40px; max-width: 100%; padding: 7px 10px; border: 1px solid #c9d2e0; border-radius: 9px; background: white; color: var(--ink); }
.pipeline-board { display: flex; gap: 14px; width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x proximity; padding: 4px 2px 22px; }
.pipeline-column { flex: 0 0 292px; min-width: 0; scroll-snap-align: start; border: 1px solid var(--line); border-radius: 15px; background: #eef2f7; }
.pipeline-column > header { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px; border-bottom: 1px solid var(--line); }
.pipeline-column h2 { margin: 0; font-size: 14px; line-height: 1.25; }
.pipeline-column > header span { min-width: 25px; padding: 3px 7px; text-align: center; border-radius: 20px; background: white; color: var(--muted); font-size: 12px; }
.pipeline-card-list { min-height: 180px; display: grid; align-content: start; gap: 10px; padding: 10px; border-radius: 0 0 15px 15px; }
.pipeline-card-list.is-drag-over { outline: 3px solid rgba(37,99,235,.25); background: #dbeafe; }
.pipeline-card { position: relative; min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 5px 15px rgba(23,32,51,.06); }
.pipeline-card:focus-visible { outline: 3px solid rgba(37,99,235,.3); }
.pipeline-card.is-dragging { opacity: .45; }
.pipeline-card h3 { margin: 0 0 7px; font-size: 15px; overflow-wrap: anywhere; }
.pipeline-card h3 a { text-decoration: none; }
.pipeline-card h3 a:hover { text-decoration: underline; }
.pipeline-card p { margin: 6px 0; font-size: 13px; overflow-wrap: anywhere; }
.pipeline-card dl { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 3px 8px; margin: 10px 0; font-size: 12px; }
.pipeline-card dt { color: var(--muted); }
.pipeline-card dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.pipeline-next-task { padding: 8px; border-radius: 8px; background: #eff6ff; }
.pipeline-next-task.is-overdue { color: #991b1b; background: #fee2e2; }
.pipeline-move-form { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 6px; margin-top: 12px; }
.pipeline-move-form select { min-width: 0; width: 100%; padding: 7px; border: 1px solid #c9d2e0; border-radius: 8px; }
.pipeline-move-form .button { min-height: 36px; padding: 7px 9px; }
.pipeline-empty { padding: 20px 8px; color: var(--muted); text-align: center; }

.call-form-card { margin-inline: auto; }
.quick-call-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 24px; }
.quick-outcome { min-height: 52px; padding: 10px; border: 1px solid #bfdbfe; border-radius: 12px; color: #1e40af; background: #eff6ff; font: inherit; font-weight: 750; cursor: pointer; }
.quick-outcome:hover, .quick-outcome:focus-visible { background: #dbeafe; outline: 3px solid rgba(37, 99, 235, 0.15); }
.outcome-fields { padding: 16px !important; border: 1px solid var(--line) !important; border-radius: 12px; }
.check-row { display: flex; align-items: flex-start; gap: 10px; }
.check-row input { width: auto; min-height: auto; margin-top: 3px; }
.destructive-confirm { padding: 12px; border-radius: 10px; background: #fff7ed; }
.stack textarea { width: 100%; padding: 10px 12px; border: 1px solid #c9d2e0; border-radius: 10px; resize: vertical; }

/* ── Demo prompt ── */
.prompt-card { margin-bottom: 20px; }
.prompt-card > p { margin-top: -8px; }
.prompt-form { display: grid; gap: 14px; }
.prompt-controls { display: grid; grid-template-columns: minmax(180px, 1fr) auto; gap: 8px 12px; align-items: end; }
.prompt-controls label { grid-column: 1 / -1; font-size: 14px; font-weight: 700; }
.prompt-controls select { min-width: 0; width: 100%; min-height: 42px; padding: 8px 10px; border: 1px solid #c9d2e0; border-radius: 10px; background: white; }
.prompt-controls .button:disabled { cursor: not-allowed; opacity: .55; }
.prompt-preview { width: 100%; max-width: 100%; min-height: 220px; padding: 12px; border: 1px solid #c9d2e0; border-radius: 10px; resize: vertical; overflow: auto; white-space: pre; font: 13px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; }
.prompt-status { min-height: 1.5em; color: var(--muted); font-size: 14px; }
.prompt-readiness p { margin: 0; }
.prompt-fallback { max-width: 820px; margin-inline: auto; }
.prompt-fallback .prompt-preview { display: block; margin: 12px 0; }
.prompt-fallback form { margin-bottom: 12px; }

/* ── Dashboard ── */
.dashboard-filter { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; padding: 18px; margin-bottom: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.filter-field { display: grid; gap: 5px; min-width: 160px; }
.filter-field label { font-size: 13px; font-weight: 700; }
.filter-field select, .filter-field input { min-height: 42px; padding: 8px 10px; border: 1px solid #c9d2e0; border-radius: 9px; background: white; }
.filter-help { flex-basis: 100%; margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.report-period { margin: 0 0 28px; color: var(--muted); }
.dashboard-section { margin: 34px 0 48px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 16px; flex-wrap: wrap; }
.section-heading h2 { margin: 5px 0 0; font-size: clamp(23px, 3vw, 31px); }
.section-heading p { max-width: 660px; margin: 0; color: var(--muted); line-height: 1.55; }
.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.metric-card { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 15px; box-shadow: 0 8px 22px rgba(23, 32, 51, 0.05); }
.metric-card h3 { min-height: 2.5em; margin: 0 0 15px; font-size: 15px; }
.metric-card dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; margin: 0; }
.metric-card dt { color: var(--muted); font-size: 13px; }
.metric-card dd { margin: 0; font-size: 17px; font-weight: 800; text-align: right; }
.compact-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 360px)); margin-top: 16px; }
.section-note { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.table-scroll { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.table-scroll:focus { outline: 3px solid rgba(37, 99, 235, 0.2); outline-offset: 2px; }
.dashboard-table { width: 100%; min-width: 620px; border-collapse: collapse; }
.dashboard-table caption { padding: 14px 16px; color: var(--muted); text-align: left; font-size: 13px; }
.dashboard-table th, .dashboard-table td { padding: 12px 14px; border-top: 1px solid var(--line); text-align: left; white-space: nowrap; }
.dashboard-table thead th { color: var(--muted); background: var(--bg); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.dashboard-table tbody th { font-size: 14px; }
.dashboard-table td { font-variant-numeric: tabular-nums; }
.wide-table { min-width: 1500px; }
.metric-unavailable { cursor: help; }
.inactive-badge { display: inline-block; padding: 2px 6px; margin-left: 4px; border-radius: 999px; color: #713f12; background: #fef3c7; font-size: 10px; text-transform: uppercase; }
.snapshot-section { padding: 22px; border: 1px solid #bfdbfe; border-radius: 18px; background: #eff6ff; }

@media (max-width: 720px) {
    .site-header { align-items: flex-start; flex-wrap: wrap; }
    .header-actions { width: 100%; justify-content: flex-start; }
    .brand span:last-child { display: none; }
    .active-user small { display: none; }
    .switch-form select { max-width: 130px; }
    .page-shell { padding-top: 28px; }
    .page-heading > div { min-width: 0; }
    .page-heading h1 { overflow-wrap: anywhere; }
    .detail-grid { grid-template-columns: 1fr; }
    .task-item { flex-direction: column; }
    .lead-table th:nth-child(n+4) { display: none; }
    .lead-table td:nth-child(n+4) { display: none; }
    .import-table th:nth-child(n+4), .import-table td:nth-child(n+4) { display: table-cell; }
    .product-table th:nth-child(n+4), .product-table td:nth-child(n+4) { display: table-cell; }
    .quick-call-actions { grid-template-columns: 1fr; }
    .call-form-card { padding-inline: 16px; }
    .prompt-controls { grid-template-columns: minmax(0, 1fr); }
    .prompt-controls .button { width: 100%; }
    .dashboard-filter { display: grid; align-items: stretch; }
    .filter-field { min-width: 0; }
    .metric-grid, .compact-grid { grid-template-columns: 1fr; }
    .metric-card h3 { min-height: 0; }
    .snapshot-section { padding: 14px; }
    .daily-task-card { grid-template-columns: 1fr; padding: 15px; }
    .daily-actions { max-width: 100%; justify-content: flex-start; }
    .daily-actions .button, .daily-actions form { max-width: 100%; }
    .date-nav .button { flex: 1 1 auto; }
    .daily-filters { align-items: stretch; }
    .daily-filters > label:not(.check-row), .daily-filters select { width: 100%; min-width: 0; }
    .settings-list li { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
