@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&family=DM+Mono:wght@400;500&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy: #0f1f35;
  --navy-mid: #162b47;
  --navy-light: #1e3a5f;
  --blue: #2563eb;
  --blue-light: #3b82f6;
  --blue-pale: #eff6ff;
  --red: #dc2626;
  --red-light: #fef2f2;
  --orange: #ea580c;
  --orange-light: #fff7ed;
  --yellow: #ca8a04;
  --yellow-light: #fefce8;
  --green: #16a34a;
  --green-light: #f0fdf4;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-700: #334155;
  --gray-900: #0f172a;
  --white: #ffffff;
  --sidebar-w: 240px;
}

body { font-family: 'DM Sans', sans-serif; background: var(--gray-50); color: var(--gray-900); min-height: 100vh; }

/* ── LOGIN ── */
.login-screen {
  min-height: 100vh;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  background-image: radial-gradient(ellipse at 20% 50%, rgba(37,99,235,0.15) 0%, transparent 60%),
                    radial-gradient(ellipse at 80% 20%, rgba(37,99,235,0.1) 0%, transparent 50%);
}
.login-card { background: white; border-radius: 16px; padding: 40px; width: 380px; box-shadow: 0 24px 64px rgba(0,0,0,0.3); }
.login-brand { text-align: center; margin-bottom: 32px; }
.login-icon { width: 52px; height: 52px; background: var(--navy); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 24px; margin: 0 auto 14px; }
.login-brand h1 { font-family: 'Syne', sans-serif; font-size: 22px; font-weight: 800; color: var(--gray-900); margin-bottom: 4px; }
.login-brand p { font-size: 13px; color: var(--gray-400); }
.login-form .form-group { margin-bottom: 16px; }
.login-form .form-group label { display: block; font-size: 12.5px; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; }
.login-form select, .login-form input { width: 100%; padding: 10px 12px; border: 1px solid var(--gray-200); border-radius: 8px; font-size: 14px; font-family: 'DM Sans', sans-serif; color: var(--gray-900); outline: none; transition: border-color 0.15s; }
.login-form select:focus, .login-form input:focus { border-color: var(--blue); }
.login-error { background: var(--red-light); color: var(--red); padding: 8px 12px; border-radius: 6px; font-size: 12.5px; font-weight: 500; margin-bottom: 12px; }
.login-form button { width: 100%; padding: 11px; background: var(--navy); color: white; border: none; border-radius: 8px; font-size: 14px; font-weight: 600; font-family: 'DM Sans', sans-serif; cursor: pointer; transition: background 0.15s; margin-top: 4px; }
.login-form button:hover { background: var(--navy-light); }

/* ── LAYOUT ── */
#app { display: flex; min-height: 100vh; }
.sidebar { width: var(--sidebar-w); min-height: 100vh; background: var(--navy); display: flex; flex-direction: column; position: fixed; left: 0; top: 0; bottom: 0; z-index: 100; }
.sidebar-brand { padding: 22px 20px 18px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.brand-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 3px; }
.brand-icon { width: 32px; height: 32px; background: var(--blue); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.brand-name { font-family: 'Syne', sans-serif; font-size: 16px; font-weight: 700; color: white; }
.brand-sub { font-size: 10.5px; color: rgba(255,255,255,0.3); margin-left: 42px; }
.sidebar-section { padding: 16px 12px 6px; }
.sidebar-section-label { font-size: 9.5px; font-weight: 600; color: rgba(255,255,255,0.25); text-transform: uppercase; letter-spacing: 1px; padding: 0 8px; margin-bottom: 5px; }
.nav-item { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 7px; cursor: pointer; transition: all 0.12s; margin-bottom: 1px; text-decoration: none; }
.nav-item:hover { background: rgba(255,255,255,0.06); }
.nav-item.active { background: var(--blue); }
.nav-icon { font-size: 14px; width: 18px; text-align: center; }
.nav-label { font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.6); flex: 1; }
.nav-item.active .nav-label, .nav-item:hover .nav-label { color: rgba(255,255,255,0.95); }
.nav-badge { background: var(--red); color: white; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 10px; min-width: 18px; text-align: center; }
.nav-badge.orange { background: var(--orange); }
.nav-badge.gray { background: rgba(255,255,255,0.15); }
.sidebar-footer { margin-top: auto; padding: 14px 12px; border-top: 1px solid rgba(255,255,255,0.06); }
.agent-card { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 8px; background: rgba(255,255,255,0.05); }
.agent-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--blue); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: white; font-family: 'Syne', sans-serif; flex-shrink: 0; }
.agent-info { flex: 1; min-width: 0; }
.agent-name { font-size: 12.5px; font-weight: 600; color: white; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agent-role { font-size: 10.5px; color: rgba(255,255,255,0.35); }

/* ── MAIN ── */
.main { margin-left: var(--sidebar-w); flex: 1; min-height: 100vh; display: flex; flex-direction: column; }
.topbar { background: white; border-bottom: 1px solid var(--gray-200); padding: 0 28px; height: 58px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 50; }
.topbar-left h1 { font-family: 'Syne', sans-serif; font-size: 17px; font-weight: 700; color: var(--gray-900); }
.topbar-left p { font-size: 12px; color: var(--gray-400); margin-top: 1px; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.topbar-date { font-size: 12px; color: var(--gray-500); font-family: 'DM Mono', monospace; }
.btn-log-task { background: var(--blue); color: white; border: none; padding: 7px 14px; border-radius: 7px; font-size: 12.5px; font-weight: 600; cursor: pointer; font-family: 'DM Sans', sans-serif; }
.btn-refresh { background: var(--gray-100); color: var(--gray-500); border: 1px solid var(--gray-200); padding: 7px 10px; border-radius: 7px; font-size: 14px; cursor: pointer; }
.btn-refresh:hover { background: var(--gray-200); }
.content { padding: 22px 28px; flex: 1; }

/* ── SCREENS ── */
.screen { display: none; }
.screen.active { display: block; }

/* ── DASHBOARD ── */
.alert-banner { background: linear-gradient(135deg, #dc2626, #b91c1c); border-radius: 11px; padding: 14px 18px; margin-bottom: 20px; display: flex; align-items: center; gap: 12px; color: white; }
.alert-icon { font-size: 22px; flex-shrink: 0; }
.alert-body { flex: 1; }
.alert-title { font-family: 'Syne', sans-serif; font-size: 13.5px; font-weight: 700; margin-bottom: 2px; }
.alert-sub { font-size: 12px; opacity: 0.8; }
.alert-btn { background: rgba(255,255,255,0.2); color: white; border: 1px solid rgba(255,255,255,0.3); padding: 6px 13px; border-radius: 6px; font-size: 12px; font-weight: 600; cursor: pointer; font-family: 'DM Sans', sans-serif; white-space: nowrap; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.stat-card { background: white; border-radius: 11px; padding: 18px; border: 1px solid var(--gray-200); position: relative; overflow: hidden; transition: transform 0.15s; }
.stat-card:hover { transform: translateY(-2px); }
.stat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.stat-card.red::before { background: var(--red); }
.stat-card.orange::before { background: var(--orange); }
.stat-card.blue::before { background: var(--blue); }
.stat-card.green::before { background: var(--green); }
.stat-label { font-size: 11px; font-weight: 600; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
.stat-value { font-family: 'Syne', sans-serif; font-size: 34px; font-weight: 800; line-height: 1; margin-bottom: 7px; }
.stat-card.red .stat-value { color: var(--red); }
.stat-card.orange .stat-value { color: var(--orange); }
.stat-card.blue .stat-value { color: var(--blue); }
.stat-card.green .stat-value { color: var(--green); }
.stat-sub { font-size: 11.5px; color: var(--gray-400); }
.stat-icon { position: absolute; right: 14px; top: 14px; font-size: 26px; opacity: 0.07; }

.bottom-grid { display: grid; grid-template-columns: 1fr 360px; gap: 16px; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.section-title { font-family: 'Syne', sans-serif; font-size: 14px; font-weight: 700; color: var(--gray-900); }
.worklist-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.worklist-card { background: white; border-radius: 10px; padding: 14px; border: 1px solid var(--gray-200); cursor: pointer; transition: all 0.15s; position: relative; }
.worklist-card:hover { border-color: var(--blue-light); box-shadow: 0 4px 14px rgba(37,99,235,0.1); transform: translateY(-1px); }
.worklist-card.self-assign { border-color: var(--blue); background: var(--blue-pale); }
.self-assign-badge { position: absolute; top: 8px; right: 8px; background: var(--blue); color: white; font-size: 9px; font-weight: 700; padding: 2px 6px; border-radius: 10px; text-transform: uppercase; letter-spacing: 0.3px; }
.worklist-card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 10px; }
.worklist-icon { width: 34px; height: 34px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.worklist-count-badge { font-family: 'Syne', sans-serif; font-size: 20px; font-weight: 800; color: var(--gray-900); line-height: 1; }
.worklist-name { font-size: 12.5px; font-weight: 600; color: var(--gray-700); margin-bottom: 3px; }
.worklist-meta { font-size: 11px; color: var(--gray-400); }
.worklist-meta.urgent { color: var(--red); font-weight: 600; }
.worklist-card .arrow { position: absolute; right: 12px; bottom: 12px; color: var(--gray-400); font-size: 13px; transition: all 0.15s; }
.worklist-card:hover .arrow { color: var(--blue); transform: translateX(2px); }

.icon-dmi { background: #fef2f2; }
.icon-aor { background: #fff7ed; }
.icon-pay { background: #f0fdf4; }
.icon-id { background: #faf5ff; }
.icon-tax { background: #fefce8; }
.icon-vm { background: #f0f9ff; }
.icon-txt { background: #fdf4ff; }
.icon-new { background: #f0fdf4; }

.activity-list { background: white; border-radius: 10px; border: 1px solid var(--gray-200); overflow: hidden; }
.activity-item { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--gray-100); }
.activity-item:last-child { border-bottom: none; }
.activity-dot { width: 7px; height: 7px; border-radius: 50%; margin-top: 5px; flex-shrink: 0; }
.activity-dot.green { background: var(--green); }
.activity-dot.blue { background: var(--blue); }
.activity-dot.orange { background: var(--orange); }
.activity-dot.red { background: var(--red); }
.activity-dot.gray { background: var(--gray-400); }
.activity-body { flex: 1; min-width: 0; }
.activity-text { font-size: 12px; color: var(--gray-700); line-height: 1.4; margin-bottom: 2px; }
.activity-text strong { color: var(--gray-900); font-weight: 600; }
.activity-meta { font-size: 10.5px; color: var(--gray-400); font-family: 'DM Mono', monospace; }
.activity-tag { font-size: 10.5px; font-weight: 600; padding: 2px 7px; border-radius: 20px; flex-shrink: 0; align-self: center; }
.tag-completed { background: var(--green-light); color: var(--green); }
.tag-pending { background: var(--yellow-light); color: var(--yellow); }
.tag-processing { background: var(--blue-pale); color: var(--blue); }
.tag-contacted { background: var(--orange-light); color: var(--orange); }

/* ── QUEUE HEADER (self-assign screens) ── */
.queue-header { background: white; border: 1px solid var(--gray-200); border-radius: 10px; padding: 16px 20px; margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.queue-stats { display: flex; gap: 24px; }
.queue-stat { text-align: center; }
.queue-stat-num { font-family: 'Syne', sans-serif; font-size: 28px; font-weight: 800; color: var(--gray-400); display: block; }
.queue-stat.mine .queue-stat-num { color: var(--blue); }
.queue-stat-label { font-size: 11px; color: var(--gray-400); font-weight: 500; }
.queue-tabs { display: flex; gap: 6px; }
.queue-tab { background: var(--gray-100); color: var(--gray-500); border: 1px solid var(--gray-200); padding: 7px 14px; border-radius: 6px; font-size: 12.5px; font-weight: 600; cursor: pointer; font-family: 'DM Sans', sans-serif; transition: all 0.12s; }
.queue-tab.active { background: var(--blue); color: white; border-color: var(--blue); }
.queue-tab:hover:not(.active) { background: var(--gray-200); }

/* ── WORKLIST FILTERS ── */
.worklist-filters { background: white; border: 1px solid var(--gray-200); border-radius: 10px; padding: 12px 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.filter-group { display: flex; align-items: center; gap: 7px; }
.filter-group label { font-size: 11.5px; font-weight: 600; color: var(--gray-400); white-space: nowrap; }
.filter-group select { border: 1px solid var(--gray-200); border-radius: 6px; padding: 6px 10px; font-size: 12.5px; color: var(--gray-800); background: var(--gray-50); font-family: 'DM Sans', sans-serif; cursor: pointer; outline: none; min-width: 130px; }
.filter-group select:focus { border-color: var(--blue); }
.filter-count { margin-left: auto; font-size: 12px; color: var(--gray-400); font-weight: 500; white-space: nowrap; }

/* ── TABLES ── */
.table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: white; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.07), 0 0 0 1px var(--gray-200); font-size: 12.5px; }
thead { background: var(--navy); color: white; }
thead th { padding: 10px 12px; text-align: left; font-size: 11px; font-weight: 600; letter-spacing: 0.3px; text-transform: uppercase; white-space: nowrap; }
tbody tr { border-bottom: 1px solid var(--gray-100); transition: background 0.1s; cursor: pointer; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--blue-pale); }

tr.tier-overdue td:first-child { border-left: 3px solid var(--red); }
tr.tier-urgent td:first-child { border-left: 3px solid var(--orange); }
tr.tier-monitor td:first-child { border-left: 3px solid var(--yellow); }
tr.tier-watch td:first-child { border-left: 3px solid var(--blue); }
tr.tier-clear td:first-child { border-left: 3px solid var(--green); }

tbody td { padding: 10px 12px; vertical-align: middle; }
.lead-id-cell { display: flex; align-items: center; gap: 5px; }
.lead-id { font-family: 'DM Mono', monospace; font-size: 12px; font-weight: 500; color: var(--navy-light); }
.copy-btn { background: none; border: none; color: var(--gray-400); cursor: pointer; font-size: 11px; padding: 2px 4px; border-radius: 3px; }
.copy-btn:hover { background: var(--blue-pale); color: var(--blue); }
.hs-btn { background: var(--blue-pale); color: var(--blue); border: none; padding: 3px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; cursor: pointer; font-family: 'DM Sans', sans-serif; }
.hs-btn:hover { background: var(--blue); color: white; }
.view-cell { color: var(--gray-600); font-size: 12px; }
.days-val { font-family: 'DM Mono', monospace; font-size: 12px; font-weight: 600; }
.days-red { color: var(--red); }
.days-orange { color: var(--orange); }
.days-yellow { color: var(--yellow); }
.days-blue { color: var(--blue); }
.days-green { color: var(--green); }

/* Tier badges */
.tier-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 20px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.tier-dot { width: 5px; height: 5px; border-radius: 50%; }
.tier-overdue-badge { background: var(--red-light); color: var(--red); }
.tier-urgent-badge { background: var(--orange-light); color: var(--orange); }
.tier-monitor-badge { background: var(--yellow-light); color: var(--yellow); }
.tier-watch-badge { background: var(--blue-pale); color: var(--blue); }
.tier-clear-badge { background: var(--green-light); color: var(--green); }

/* Claim status badges */
.claim-badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.claim-unassigned { background: var(--gray-100); color: var(--gray-500); }
.claim-assigned { background: var(--blue-pale); color: var(--blue); }
.claim-completed { background: var(--green-light); color: var(--green); }

/* Action buttons in table */
.btn-claim { background: var(--blue); color: white; border: none; padding: 5px 12px; border-radius: 5px; font-size: 11.5px; font-weight: 600; cursor: pointer; font-family: 'DM Sans', sans-serif; white-space: nowrap; }
.btn-claim:hover { background: var(--navy); }
.btn-release { background: var(--gray-100); color: var(--gray-600); border: 1px solid var(--gray-200); padding: 5px 12px; border-radius: 5px; font-size: 11.5px; font-weight: 600; cursor: pointer; font-family: 'DM Sans', sans-serif; }
.btn-release:hover { background: var(--gray-200); }
.btn-work { background: var(--green); color: white; border: none; padding: 5px 12px; border-radius: 5px; font-size: 11.5px; font-weight: 600; cursor: pointer; font-family: 'DM Sans', sans-serif; }
.btn-work:hover { background: #15803d; }

/* Inline form controls */
.inline-select, .inline-input { border: 1px solid var(--gray-200); border-radius: 5px; padding: 5px 7px; font-size: 12px; color: var(--gray-900); background: var(--gray-50); font-family: 'DM Sans', sans-serif; outline: none; }
.inline-select { min-width: 110px; }
.inline-input { min-width: 80px; width: 80px; }
.inline-input.wide { min-width: 150px; width: 150px; }
.inline-select:focus, .inline-input:focus { border-color: var(--blue); background: white; }

.date-input { min-width: 130px; width: 130px; cursor: pointer; }
.date-input::-webkit-calendar-picker-indicator { cursor: pointer; opacity: 0.6; }

.btn-submit-row { background: var(--blue); color: white; border: none; padding: 5px 12px; border-radius: 5px; font-size: 11.5px; font-weight: 600; cursor: pointer; font-family: 'DM Sans', sans-serif; white-space: nowrap; }
.btn-submit-row:hover { background: var(--navy); }
.btn-submit-row:disabled { background: var(--gray-400); cursor: not-allowed; }

/* ── MODAL ── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal { background: white; border-radius: 14px; width: 100%; max-width: 620px; max-height: 90vh; overflow-y: auto; box-shadow: 0 24px 64px rgba(0,0,0,0.3); }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px 0; }
.modal-title-group { display: flex; align-items: center; gap: 10px; }
.modal-title-group h2 { font-family: 'Syne', sans-serif; font-size: 17px; font-weight: 700; color: var(--gray-900); }
.modal-close { background: var(--gray-100); border: none; color: var(--gray-500); width: 28px; height: 28px; border-radius: 50%; cursor: pointer; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.modal-close:hover { background: var(--gray-200); }
.modal-body { padding: 20px 24px 24px; }

.modal-details { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.modal-field { }
.modal-field-label { font-size: 11px; font-weight: 600; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 3px; }
.modal-field-value { font-size: 13.5px; color: var(--gray-900); }
.modal-field-value.mono { font-family: 'DM Mono', monospace; font-size: 13px; }
.modal-field.full { grid-column: 1 / -1; }

.modal-divider { border: none; border-top: 1px solid var(--gray-200); margin: 16px 0; }

.modal-actions { display: flex; flex-direction: column; gap: 12px; }
.modal-actions-row { display: flex; gap: 8px; flex-wrap: wrap; }
.modal-form-group { display: flex; flex-direction: column; gap: 5px; }
.modal-form-group label { font-size: 12px; font-weight: 600; color: var(--gray-700); }
.modal-form-group select, .modal-form-group input, .modal-form-group textarea { padding: 8px 10px; border: 1px solid var(--gray-200); border-radius: 7px; font-size: 13px; font-family: 'DM Sans', sans-serif; color: var(--gray-900); outline: none; }
.modal-form-group select:focus, .modal-form-group input:focus, .modal-form-group textarea:focus { border-color: var(--blue); }
.modal-form-group textarea { height: 70px; resize: vertical; }
.modal-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.modal-form-grid .full { grid-column: 1 / -1; }

.btn-modal-submit { background: var(--blue); color: white; border: none; padding: 10px 20px; border-radius: 7px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: 'DM Sans', sans-serif; }
.btn-modal-submit:hover { background: var(--navy); }
.btn-modal-claim { background: var(--blue); color: white; border: none; padding: 10px 20px; border-radius: 7px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: 'DM Sans', sans-serif; }
.btn-modal-release { background: white; color: var(--gray-600); border: 1px solid var(--gray-200); padding: 10px 20px; border-radius: 7px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: 'DM Sans', sans-serif; }

.status-badge { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 20px; }

/* ── LOG TASK FORM ── */
.new-task-form { background: white; border-radius: 12px; border: 1px solid var(--gray-200); padding: 28px; max-width: 700px; }
.new-task-form h2 { font-family: 'Syne', sans-serif; font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.new-task-form > p { font-size: 13px; color: var(--gray-500); margin-bottom: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.form-grid .form-group { display: flex; flex-direction: column; gap: 5px; }
.form-grid .form-group.full { grid-column: 1 / -1; }
.form-grid label { font-size: 12.5px; font-weight: 600; color: var(--gray-700); }
.form-grid input, .form-grid select, .form-grid textarea { padding: 9px 12px; border: 1px solid var(--gray-200); border-radius: 7px; font-size: 13.5px; font-family: 'DM Sans', sans-serif; color: var(--gray-900); outline: none; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { border-color: var(--blue); }
.form-grid textarea { height: 80px; resize: vertical; }
.btn-submit-new { background: var(--navy); color: white; border: none; padding: 10px 24px; border-radius: 8px; font-size: 13.5px; font-weight: 600; cursor: pointer; font-family: 'DM Sans', sans-serif; }
.btn-submit-new:hover { background: var(--blue); }

/* ── ASSIGN SCREEN ── */
.assign-screen { }
.assign-controls { background: white; border: 1px solid var(--gray-200); border-radius: 10px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.btn-assign { background: var(--blue); color: white; border: none; padding: 8px 16px; border-radius: 6px; font-size: 12.5px; font-weight: 600; cursor: pointer; font-family: 'DM Sans', sans-serif; }
.btn-assign:hover { background: var(--navy); }

/* ── TOAST ── */
.toast { position: fixed; bottom: 24px; right: 24px; background: var(--gray-900); color: white; padding: 12px 20px; border-radius: 8px; font-size: 13.5px; font-weight: 500; box-shadow: 0 8px 24px rgba(0,0,0,0.2); z-index: 9999; animation: slideUp 0.3s ease; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ── MASS CLAIM ── */
.btn-mass-claim { background: var(--blue); color: white; border: none; padding: 7px 14px; border-radius: 6px; font-size: 12.5px; font-weight: 600; cursor: pointer; font-family: 'DM Sans', sans-serif; }
.btn-mass-claim:hover { background: var(--navy); }

/* ── IMPORT SCREEN ── */
.import-screen { max-width: 800px; }
.import-header { margin-bottom: 20px; }
.import-header h2 { font-family: 'Syne', sans-serif; font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.import-header p { font-size: 13px; color: var(--gray-500); }
.import-controls { background: white; border: 1px solid var(--gray-200); border-radius: 10px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.import-columns-note { background: var(--blue-pale); border: 1px solid #bfdbfe; border-radius: 8px; padding: 10px 14px; font-size: 12.5px; color: var(--gray-700); margin-bottom: 14px; display: none; }
.import-dropzone { border: 2px dashed var(--gray-200); border-radius: 12px; padding: 48px 24px; text-align: center; cursor: pointer; transition: all 0.15s; background: white; margin-bottom: 16px; }
.import-dropzone:hover, .import-dropzone.dragover { border-color: var(--blue); background: var(--blue-pale); }
.import-drop-icon { font-size: 36px; margin-bottom: 10px; }
.import-drop-title { font-size: 15px; font-weight: 600; color: var(--gray-700); margin-bottom: 4px; }
.import-drop-sub { font-size: 12.5px; color: var(--gray-400); }
.import-preview-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.import-preview-header span { font-family: 'Syne', sans-serif; font-size: 14px; font-weight: 700; }
.btn-import-confirm { background: var(--green); color: white; border: none; padding: 8px 16px; border-radius: 6px; font-size: 12.5px; font-weight: 600; cursor: pointer; font-family: 'DM Sans', sans-serif; }
.btn-import-cancel { background: var(--gray-100); color: var(--gray-600); border: 1px solid var(--gray-200); padding: 8px 14px; border-radius: 6px; font-size: 12.5px; font-weight: 600; cursor: pointer; font-family: 'DM Sans', sans-serif; }
.import-status { padding: 12px 16px; border-radius: 8px; font-size: 13px; font-weight: 500; margin-top: 12px; }

/* ── OVERVIEW SCREEN ── */
.overview-filters { background: white; border: 1px solid var(--gray-200); border-radius: 10px; padding: 12px 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.overview-filters input[type="date"] { border: 1px solid var(--gray-200); border-radius: 6px; padding: 6px 10px; font-size: 12.5px; font-family: 'DM Sans', sans-serif; outline: none; }
.overview-stats { margin-bottom: 14px; }
.ov-stat-row { display: flex; gap: 12px; flex-wrap: wrap; }
.ov-stat { background: white; border: 1px solid var(--gray-200); border-radius: 8px; padding: 12px 16px; min-width: 120px; }
.ov-stat-num { font-family: 'Syne', sans-serif; font-size: 22px; font-weight: 800; color: var(--blue); display: block; }
.ov-stat-label { font-size: 11px; color: var(--gray-400); font-weight: 500; }

/* ── AGE BADGES (v4) ── */
.age-badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 20px; font-size: 11px; font-weight: 700; white-space: nowrap; cursor: default; }
.age-green  { background: var(--green-light); color: var(--green); }
.age-yellow { background: var(--yellow-light); color: var(--yellow); }
.age-orange { background: var(--orange-light); color: var(--orange); }
.age-red    { background: var(--red-light);    color: var(--red); }

/* ── SAVE PROGRESS BUTTON (v4) ── */
.btn-modal-save { background: var(--yellow-light); color: var(--yellow); border: 1.5px solid var(--yellow); padding: 10px 20px; border-radius: 7px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: 'DM Sans', sans-serif; display: inline-flex; align-items: center; gap: 6px; }
.btn-modal-save:hover { background: var(--yellow); color: white; }

/* ── OUTCOME BADGE IN TABLE ── */
.outcome-pending { background: var(--yellow-light); color: var(--yellow); padding: 2px 8px; border-radius: 12px; font-size: 11px; font-weight: 600; }
.outcome-progress { background: var(--blue-pale); color: var(--blue); padding: 2px 8px; border-radius: 12px; font-size: 11px; font-weight: 600; }
