/* ===== Eric CRM — Design System ===== */
:root {
    --bg: #f6f8fb;
    --bg-card: #ffffff;
    --bg-sidebar: #0f172a;
    --bg-sidebar-hover: #1e293b;
    --border: #e5e9f0;
    --border-strong: #cbd5e1;
    --text: #0f172a;
    --text-soft: #64748b;
    --text-muted: #94a3b8;
    --text-light: #cbd5e1;
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: #eef2ff;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #0ea5e9;
    --purple: #a855f7;
    --pink: #ec4899;
    --shadow-sm: 0 1px 2px rgba(15,23,42,.06);
    --shadow: 0 1px 3px rgba(15,23,42,.08), 0 1px 2px rgba(15,23,42,.04);
    --shadow-md: 0 4px 12px rgba(15,23,42,.08);
    --shadow-lg: 0 12px 32px rgba(15,23,42,.12);
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 14px;
    --sidebar-w: 240px;
    --header-h: 64px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: var(--font); color: var(--text); background: var(--bg); font-size: 14px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 14px; }

/* ===== AUTH ===== */
.auth-body { background: linear-gradient(135deg, #eef2ff 0%, #faf5ff 100%); min-height: 100vh; display: flex; }
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; max-width: 1100px; width: 100%; margin: auto; padding: 30px; gap: 0; box-shadow: var(--shadow-lg); border-radius: var(--radius-lg); overflow: hidden; background: white; min-height: 540px; }
.auth-card { padding: 56px 48px; display: flex; flex-direction: column; justify-content: center; }
.auth-brand { text-align: center; margin-bottom: 36px; }
.brand-logo { width: 56px; height: 56px; margin: 0 auto 18px; background: linear-gradient(135deg, var(--primary), var(--purple)); border-radius: 14px; display: flex; align-items: center; justify-content: center; color: white; box-shadow: 0 8px 20px rgba(79,70,229,.35); }
.auth-brand h1 { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -.5px; }
.auth-brand p { margin: 6px 0 0; color: var(--text-soft); font-size: 14px; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--text); }
.field input, .field select, .field textarea { padding: 11px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); font-size: 14px; transition: border-color .15s, box-shadow .15s; background: white; color: var(--text); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,.12); }
.field textarea { resize: vertical; min-height: 80px; }
.btn-primary { background: var(--primary); color: white; border: none; padding: 11px 20px; border-radius: var(--radius-sm); font-weight: 600; font-size: 14px; transition: background .15s, transform .05s; display: inline-flex; align-items: center; gap: 7px; justify-content: center; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-primary:active { transform: translateY(1px); }
.btn-block { width: 100%; padding: 13px; }
.btn-secondary { background: white; color: var(--text); border: 1px solid var(--border-strong); padding: 9px 16px; border-radius: var(--radius-sm); font-weight: 500; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.btn-secondary:hover { background: var(--bg); border-color: var(--text-muted); }
.btn-danger { background: var(--danger); color: white; border: none; padding: 9px 16px; border-radius: var(--radius-sm); font-weight: 500; font-size: 14px; }
.btn-ghost { background: transparent; color: var(--text-soft); border: none; padding: 6px 10px; border-radius: var(--radius-sm); font-size: 13px; }
.btn-ghost:hover { background: var(--bg); color: var(--text); }
.alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; padding: 10px 14px; border-radius: var(--radius-sm); font-size: 13px; }
.auth-hint { margin-top: 8px; padding: 12px; background: var(--bg); border-radius: var(--radius-sm); font-size: 12px; color: var(--text-soft); text-align: center; }
.auth-side { background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 100%); color: white; padding: 56px; display: flex; align-items: center; }
.auth-side h2 { margin: 0 0 28px; font-size: 26px; line-height: 1.3; font-weight: 700; }
.auth-side ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; font-size: 15px; }
.auth-side li { display: flex; align-items: center; gap: 10px; }
@media (max-width: 800px) {
    .auth-wrap { grid-template-columns: 1fr; max-width: 480px; }
    .auth-side { display: none; }
    .auth-card { padding: 40px 28px; }
}

/* ===== APP LAYOUT ===== */
.app { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar-w) 1fr; grid-template-rows: 100vh; }
.sidebar { background: var(--bg-sidebar); color: #cbd5e1; display: flex; flex-direction: column; overflow-y: auto; }
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-thumb { background: #334155; border-radius: 3px; }
.sb-brand { padding: 20px 22px 22px; display: flex; align-items: center; gap: 11px; border-bottom: 1px solid #1e293b; }
.sb-brand .logo { width: 36px; height: 36px; border-radius: 9px; background: linear-gradient(135deg, var(--primary), var(--purple)); display: flex; align-items: center; justify-content: center; color: white; flex-shrink: 0; }
.sb-brand .name { font-weight: 700; color: white; font-size: 17px; letter-spacing: -.3px; }
.sb-brand .sub { font-size: 11px; color: var(--text-muted); margin-top: 1px; }
.sb-nav { padding: 16px 12px; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.sb-section { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: #475569; padding: 14px 12px 6px; font-weight: 600; }
.sb-link { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 7px; color: #94a3b8; font-size: 14px; transition: background .15s, color .15s; }
.sb-link:hover { background: var(--bg-sidebar-hover); color: white; text-decoration: none; }
.sb-link.active { background: var(--primary); color: white; }
.sb-link svg { flex-shrink: 0; }
.sb-link .badge { margin-left: auto; background: #334155; color: white; font-size: 11px; padding: 1px 7px; border-radius: 10px; font-weight: 600; }
.sb-link.active .badge { background: rgba(255,255,255,.25); }
.sb-user { padding: 14px 16px; border-top: 1px solid #1e293b; display: flex; align-items: center; gap: 10px; }
.sb-user .avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--purple)); color: white; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; flex-shrink: 0; }
.sb-user .info { flex: 1; min-width: 0; }
.sb-user .info .n { color: white; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-user .info .r { color: var(--text-muted); font-size: 11px; }
.sb-user a.logout { color: var(--text-muted); padding: 6px; border-radius: 6px; display: flex; }
.sb-user a.logout:hover { background: var(--bg-sidebar-hover); color: var(--danger); text-decoration: none; }

.main { display: flex; flex-direction: column; overflow: hidden; }
.topbar { height: var(--header-h); background: white; border-bottom: 1px solid var(--border); display: flex; align-items: center; padding: 0 28px; gap: 20px; flex-shrink: 0; }
.topbar h1 { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: -.3px; }
.topbar .search { flex: 1; max-width: 420px; position: relative; }
.topbar .search input { width: 100%; padding: 9px 14px 9px 38px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); font-size: 13px; }
.topbar .search input:focus { background: white; border-color: var(--primary); outline: none; }
.topbar .search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.topbar .actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.mobile-toggle { display: none; background: none; border: none; padding: 6px; color: var(--text); }

.content { flex: 1; overflow-y: auto; padding: 26px 28px; }

/* ===== CARDS ===== */
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.card-head h3 { margin: 0; font-size: 15px; font-weight: 600; }
.card-head .sub { color: var(--text-soft); font-size: 12px; }

/* ===== KPI ===== */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-bottom: 22px; }
.kpi { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.kpi .label { font-size: 12px; color: var(--text-soft); text-transform: uppercase; letter-spacing: .5px; font-weight: 600; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.kpi .icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: white; }
.kpi .icon.blue { background: var(--primary); }
.kpi .icon.green { background: var(--success); }
.kpi .icon.orange { background: var(--warning); }
.kpi .icon.purple { background: var(--purple); }
.kpi .icon.pink { background: var(--pink); }
.kpi .icon.red { background: var(--danger); }
.kpi .value { font-size: 26px; font-weight: 700; letter-spacing: -.5px; }
.kpi .trend { font-size: 12px; color: var(--text-soft); margin-top: 4px; }
.kpi .trend.up { color: var(--success); }
.kpi .trend.down { color: var(--danger); }

/* ===== DASHBOARD GRID ===== */
.dash-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; margin-bottom: 18px; }
.dash-grid.three { grid-template-columns: 1fr 1fr 1fr; }

/* ===== TABLE ===== */
.table-wrap { background: white; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; padding: 13px 16px; background: var(--bg); font-size: 12px; font-weight: 600; color: var(--text-soft); text-transform: uppercase; letter-spacing: .4px; border-bottom: 1px solid var(--border); }
.table td { padding: 13px 16px; border-bottom: 1px solid var(--border); font-size: 14px; vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: #fafbfd; }
.table .row-clickable { cursor: pointer; }
.table .actions { display: flex; gap: 4px; justify-content: flex-end; }

/* Avatar / Tags / Badges */
.avatar-sm { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; color: white; flex-shrink: 0; background: var(--primary); }
.avatar-md { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600; color: white; }
.contact-cell { display: flex; align-items: center; gap: 11px; }
.contact-cell .name { font-weight: 600; }
.contact-cell .meta { font-size: 12px; color: var(--text-soft); }
.badge { display: inline-block; padding: 3px 9px; border-radius: 12px; font-size: 11px; font-weight: 600; }
.badge-lead { background: #e0e7ff; color: #3730a3; }
.badge-qualified { background: #fef3c7; color: #92400e; }
.badge-customer { background: #d1fae5; color: #065f46; }
.badge-lost { background: #fee2e2; color: #991b1b; }
.tag { display: inline-block; padding: 2px 8px; background: var(--bg); border: 1px solid var(--border-strong); border-radius: 11px; font-size: 11px; color: var(--text-soft); margin-right: 4px; }

/* ===== PIPELINE KANBAN ===== */
.kanban { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 16px; min-height: 600px; }
.kanban-col { flex: 0 0 290px; background: #f1f5f9; border-radius: var(--radius); display: flex; flex-direction: column; max-height: calc(100vh - 200px); }
.kanban-col-head { padding: 12px 14px; border-bottom: 2px solid; display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; background: white; border-radius: var(--radius) var(--radius) 0 0; }
.kanban-col-head .title { font-weight: 600; font-size: 13px; display: flex; align-items: center; gap: 8px; }
.kanban-col-head .dot { width: 10px; height: 10px; border-radius: 50%; }
.kanban-col-head .count { background: var(--bg); color: var(--text-soft); padding: 1px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.kanban-col-head .total { font-size: 11px; color: var(--text-soft); margin-top: 2px; }
.kanban-col-body { padding: 10px; flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; min-height: 100px; }
.kanban-col-body.drag-over { background: rgba(79,70,229,.08); }
.deal-card { background: white; border: 1px solid var(--border); border-radius: 8px; padding: 12px; cursor: grab; box-shadow: var(--shadow-sm); transition: transform .12s, box-shadow .12s; }
.deal-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.deal-card.dragging { opacity: 0.5; }
.deal-card .title { font-weight: 600; font-size: 13px; margin-bottom: 5px; line-height: 1.3; }
.deal-card .amount { color: var(--success); font-weight: 700; font-size: 14px; }
.deal-card .meta { font-size: 11px; color: var(--text-soft); margin-top: 6px; display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.deal-card .meta .contact { display: flex; align-items: center; gap: 5px; }
.deal-card .meta .date { display: flex; align-items: center; gap: 4px; }

/* ===== MODAL ===== */
.modal-back { position: fixed; inset: 0; background: rgba(15,23,42,.5); z-index: 100; display: none; align-items: flex-start; justify-content: center; padding: 60px 20px 20px; overflow-y: auto; }
.modal-back.open { display: flex; }
.modal { background: white; border-radius: var(--radius); max-width: 560px; width: 100%; box-shadow: var(--shadow-lg); animation: modal-in .2s; max-height: calc(100vh - 80px); display: flex; flex-direction: column; }
.modal.lg { max-width: 780px; }
@keyframes modal-in { from { opacity: 0; transform: translateY(-12px); } }
.modal-head { padding: 18px 22px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
.modal-head h3 { margin: 0; font-size: 17px; font-weight: 600; }
.modal-head .close { background: none; border: none; color: var(--text-soft); padding: 4px; cursor: pointer; border-radius: 5px; }
.modal-head .close:hover { background: var(--bg); color: var(--text); }
.modal-body { padding: 22px; overflow-y: auto; }
.modal-foot { padding: 14px 22px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; flex-shrink: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }

/* ===== AGENDA ===== */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cal-nav { display: flex; align-items: center; gap: 10px; }
.cal-nav h2 { margin: 0; font-size: 19px; font-weight: 700; }
.cal-grid { background: white; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.cal-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); background: var(--bg); border-bottom: 1px solid var(--border); }
.cal-weekdays div { padding: 10px 12px; font-size: 11px; font-weight: 600; color: var(--text-soft); text-transform: uppercase; letter-spacing: .5px; text-align: left; }
.cal-days { display: grid; grid-template-columns: repeat(7, 1fr); grid-auto-rows: 110px; }
.cal-day { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 6px 8px; position: relative; overflow: hidden; }
.cal-day:nth-child(7n) { border-right: none; }
.cal-day .d { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.cal-day.other .d { color: var(--text-light); }
.cal-day.today .d { color: white; background: var(--primary); width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; }
.cal-evt { background: var(--primary-light); color: var(--primary); padding: 2px 6px; border-radius: 4px; font-size: 11px; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; font-weight: 500; }
.cal-evt.type-call { background: #dbeafe; color: #1e40af; }
.cal-evt.type-meeting { background: #ede9fe; color: #5b21b6; }
.cal-evt.type-email { background: #fef3c7; color: #92400e; }
.cal-evt.type-task { background: #e0e7ff; color: #3730a3; }
.cal-evt.done { opacity: 0.5; text-decoration: line-through; }

.task-list { background: white; border: 1px solid var(--border); border-radius: var(--radius); }
.task-item { padding: 12px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: flex-start; gap: 12px; }
.task-item:last-child { border-bottom: none; }
.task-item .chk { margin-top: 2px; width: 18px; height: 18px; border: 2px solid var(--border-strong); border-radius: 5px; cursor: pointer; flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: all .15s; }
.task-item .chk:hover { border-color: var(--primary); }
.task-item .chk.done { background: var(--success); border-color: var(--success); color: white; }
.task-item .body { flex: 1; min-width: 0; }
.task-item .title { font-weight: 500; font-size: 14px; margin-bottom: 3px; }
.task-item.done .title { text-decoration: line-through; color: var(--text-soft); }
.task-item .meta { font-size: 12px; color: var(--text-soft); display: flex; gap: 12px; flex-wrap: wrap; }
.task-item .meta .tag-type { padding: 1px 7px; border-radius: 4px; font-weight: 500; }
.task-item .meta .tag-type.call { background: #dbeafe; color: #1e40af; }
.task-item .meta .tag-type.email { background: #fef3c7; color: #92400e; }
.task-item .meta .tag-type.meeting { background: #ede9fe; color: #5b21b6; }
.task-item .meta .tag-type.task { background: #e0e7ff; color: #3730a3; }
.task-item .actions { display: flex; gap: 4px; opacity: 0; transition: opacity .15s; }
.task-item:hover .actions { opacity: 1; }
.task-item .overdue { color: var(--danger); font-weight: 600; }

/* ===== ACTIVITY / TIMELINE ===== */
.timeline { display: flex; flex-direction: column; gap: 0; }
.tl-item { display: flex; gap: 14px; padding: 12px 0; position: relative; }
.tl-item:not(:last-child)::before { content: ''; position: absolute; left: 17px; top: 40px; bottom: -12px; width: 2px; background: var(--border); }
.tl-icon { width: 36px; height: 36px; border-radius: 50%; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; z-index: 1; }
.tl-icon.green { background: #d1fae5; color: var(--success); }
.tl-icon.orange { background: #fef3c7; color: var(--warning); }
.tl-icon.purple { background: #ede9fe; color: var(--purple); }
.tl-icon.red { background: #fee2e2; color: var(--danger); }
.tl-content { flex: 1; min-width: 0; }
.tl-title { font-weight: 500; font-size: 13px; }
.tl-meta { color: var(--text-soft); font-size: 12px; margin-top: 2px; }

/* ===== CONTACT DETAIL ===== */
.contact-detail { display: grid; grid-template-columns: 1fr 2fr; gap: 18px; }
.contact-card .head { text-align: center; padding-bottom: 18px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.contact-card .avatar-md { margin: 0 auto 12px; width: 72px; height: 72px; font-size: 22px; }
.contact-card .name { font-size: 18px; font-weight: 700; }
.contact-card .pos { color: var(--text-soft); font-size: 13px; }
.contact-card .info-list { display: flex; flex-direction: column; gap: 12px; }
.contact-card .info-list > div { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text); }
.contact-card .info-list svg { color: var(--text-muted); flex-shrink: 0; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.tab { padding: 10px 16px; background: none; border: none; border-bottom: 2px solid transparent; color: var(--text-soft); font-weight: 500; font-size: 13px; cursor: pointer; }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ===== UTIL ===== */
.empty { padding: 40px 20px; text-align: center; color: var(--text-soft); }
.empty svg { color: var(--text-light); margin-bottom: 12px; }
.empty p { margin: 0; font-size: 14px; }
.row { display: flex; align-items: center; gap: 10px; }
.spacer { flex: 1; }
.toast-stack { position: fixed; top: 20px; right: 20px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--text); color: white; padding: 11px 18px; border-radius: var(--radius-sm); font-size: 13px; box-shadow: var(--shadow-lg); animation: toast-in .2s; }
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
@keyframes toast-in { from { opacity: 0; transform: translateX(20px); } }

.spinner { width: 18px; height: 18px; border: 2px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 1s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.chart-wrap { position: relative; height: 280px; }

.filters { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.filters input, .filters select { padding: 8px 12px; border: 1px solid var(--border-strong); border-radius: 6px; background: white; font-size: 13px; }
.filters input { min-width: 240px; }

.page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; flex-wrap: wrap; gap: 12px; }
.page-head h1 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.3px; }
.page-head .sub { color: var(--text-soft); font-size: 13px; margin-top: 3px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
    .dash-grid, .dash-grid.three { grid-template-columns: 1fr; }
    .contact-detail { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    :root { --sidebar-w: 0px; }
    .app { grid-template-columns: 1fr; }
    .sidebar { position: fixed; top: 0; left: 0; bottom: 0; width: 240px; transform: translateX(-100%); transition: transform .2s; z-index: 50; }
    .sidebar.open { transform: translateX(0); box-shadow: var(--shadow-lg); }
    .mobile-toggle { display: flex; }
    .topbar { padding: 0 16px; gap: 12px; }
    .topbar h1 { font-size: 16px; }
    .content { padding: 16px; }
    .form-grid { grid-template-columns: 1fr; }
    .kpi-grid { grid-template-columns: 1fr 1fr; }
    .kpi .value { font-size: 20px; }
    .cal-days { grid-auto-rows: 70px; }
    .cal-day { padding: 4px; }
    .cal-evt { font-size: 10px; padding: 1px 4px; }
}
