:root {
  font-family: Inter, Avenir, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #151c2f;
  background: #f2f4f8;
  --ink: #151c2f;
  --muted: #667085;
  --line: #e3e7ee;
  --brand: #f15a0a;
  --brand-deep: #cf4600;
  --brand-soft: #fff0e7;
  --cyan: #59d4eb;
  --success: #087a52;
  --danger: #b42334;
  --surface: rgba(255,255,255,.97);
  --surface-soft: #fbfcfe;
  --page: #f2f4f8;
  --input: #fff;
  --score-panel: #151c2f;
  --score-text: #fff;
  --score-muted: #c8cede;
  color-scheme: light;
}
[data-theme="dark"] {
  --ink: #f2f4f8;
  --muted: #aeb7c7;
  --line: #30394a;
  --brand: #ff6a1a;
  --brand-deep: #ff7d38;
  --brand-soft: #3a261e;
  --surface: rgba(27,34,48,.98);
  --surface-soft: #202839;
  --page: #111827;
  --input: #182132;
  --score-panel: #0c1425;
  --score-text: #fff;
  --score-muted: #c8cede;
  --success: #53d5a0;
  --danger: #ff8290;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--ink); background: radial-gradient(circle at 92% 0, rgba(241,90,10,.08), transparent 24rem), var(--page); transition: color .2s, background-color .2s; }
.login-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 80% 10%, rgba(241,90,10,.18), transparent 26rem), #10182a; }
.login-card { width: min(430px, 100%); display: grid; gap: 16px; padding: 34px; }
.login-logo { width: 190px; height: 64px; object-fit: contain; margin: 0 auto 6px; padding: 8px 14px; border-radius: 12px; background: #10182a; }
.login-card h1 { margin: -5px 0 8px; text-align: center; }
.login-card .kicker { text-align: center; }
.login-card .primary { width: 100%; min-height: 48px; }
.login-error { min-height: 20px; margin: 0; color: var(--danger); font-size: 12px; text-align: center; }
button, select, input, textarea { font: inherit; }
a { color: inherit; }
.shell { width: min(1440px, calc(100% - 40px)); margin: 0 auto; padding: 24px 0 72px; }
.topbar { min-height: 78px; display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 4px; padding: 10px 18px; border-radius: 16px; background: #10182a; box-shadow: 0 14px 36px rgba(16,24,42,.16); }
.brand-lockup { display: flex; align-items: center; gap: 14px; }
.brand-logo { width: 178px; height: 58px; object-fit: contain; display: block; }
.brand-divider { width: 1px; height: 34px; background: #465168; }
.product-name { font-size: 14px; font-weight: 750; letter-spacing: .02em; color: #eef1f6; }
.stats { color: #c7cedb; font-size: 14px; }
.topbar-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.call-counters { display: flex; gap: 7px; }
.counter-card { min-width: 76px; min-height: 46px; display: grid; align-content: center; gap: 1px; padding: 5px 9px; border: 1px solid #465168; border-radius: 10px; background: #202b40; color: #fff; text-align: center; }
button.counter-card:hover { transform: none; border-color: var(--brand); }
.counter-card strong { font-size: 17px; line-height: 1; }
.counter-card span { color: #aeb7c7; font-size: 9px; font-weight: 600; }
.current-user { max-width: 150px; overflow: hidden; color: #eef1f6; font-size: 11px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.topbar-button { min-height: 38px; padding: 8px 10px; border-color: #465168; background: #202b40; color: #fff; font-size: 11px; }
.theme-toggle { width: 40px; height: 40px; padding: 0; border-color: #465168; background: #202b40; color: #fff; }
.eyebrow, .kicker { margin: 0 0 8px; color: var(--brand); font-size: 11px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 16px 50px rgba(24,31,52,.065); transition: background-color .2s, border-color .2s; }
.toolbar { display: grid; grid-template-columns: minmax(155px,.8fr) minmax(140px,.7fr) minmax(280px,1.45fr) minmax(180px,1fr) auto; align-items: end; gap: 10px; padding: 14px; margin: 22px 0; }
.toolbar > label, .toolbar > .filter-field { align-self: end; }
.filter-field { display: grid; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 750; }
.toolbar select, .toolbar input, .toolbar button { min-height: 48px; }
.toolbar #add-salesperson, .toolbar #next { height: 48px; align-self: end; }
label { display: grid; gap: 6px; font-size: 12px; font-weight: 750; color: var(--muted); }
select, input, textarea, button { max-width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 12px 13px; background: var(--input); color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s, transform .15s, background-color .2s; }
select { width: 100%; min-width: 0; }
select:focus, input:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(83,104,228,.13); }
textarea { resize: vertical; min-height: 72px; }
button { cursor: pointer; font-weight: 780; }
button:hover { transform: translateY(-1px); }
button:disabled { opacity: .5; cursor: wait; transform: none; }
.primary { align-self: end; color: #fff; border-color: var(--brand); background: var(--brand); box-shadow: 0 9px 20px rgba(83,104,228,.22); }
.primary:hover { background: var(--brand-deep); }
.secondary { align-self: end; color: var(--brand-deep); border-color: #d8ddff; background: var(--brand-soft); }
.compact { padding-inline: 12px; }
.sector-field { position: relative; min-width: 0; }
.sector-control { position: relative; }
.sector-control input { width: 100%; padding-right: 42px; }
.sector-toggle { position: absolute; top: 5px; right: 5px; width: 38px; min-height: 38px !important; height: 38px; padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 20px; box-shadow: none; }
.sector-toggle:hover { color: var(--brand); transform: none; }
.sector-field.panel-open .sector-toggle { transform: rotate(180deg); }
.sector-field small { position: absolute; top: calc(100% + 4px); left: 2px; z-index: 3; max-width: 100%; overflow: hidden; color: var(--muted); font-size: 10px; font-weight: 500; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.sector-panel { position: absolute; top: calc(100% + 14px); right: 0; z-index: 80; width: min(930px, calc(100vw - 64px)); max-height: min(590px, 68vh); overflow: auto; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 24px 70px rgba(16,24,42,.24); color: var(--ink); }
.sector-panel-header { position: sticky; top: -18px; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: -18px -18px 14px; padding: 17px 18px 13px; border-bottom: 1px solid var(--line); background: var(--surface); }
.sector-panel-header > div { display: grid; gap: 3px; }
.sector-panel-header strong { font-size: 16px; }
.sector-panel-header span { color: var(--muted); font-size: 11px; font-weight: 500; }
.text-button { min-height: 34px !important; padding: 7px 10px; border: 0; background: transparent; color: var(--brand-deep); font-size: 12px; box-shadow: none; }
.text-button:hover { transform: none; text-decoration: underline; }
.sector-selected { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; padding: 10px; border-radius: 12px; background: var(--brand-soft); }
.sector-chip { min-height: 32px !important; padding: 6px 10px; border-color: rgba(241,90,10,.3); border-radius: 999px; background: var(--input); color: var(--ink); font-size: 11px; text-align: left; }
.sector-chip::after { content: " ×"; color: var(--brand); font-weight: 900; }
.sector-chip:hover { transform: none; border-color: var(--brand); }
.sector-history { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.sector-history::before { content: attr(data-title); color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.history-sector { min-height: 30px !important; padding: 6px 9px; border-radius: 999px; background: var(--surface-soft); color: var(--muted); font-size: 11px; }
.history-sector:hover { color: var(--brand-deep); border-color: var(--brand); transform: none; }
.sector-results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 12px; }
.sector-group { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-soft); }
.sector-group-title { padding: 12px 13px 9px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.sector-choices { display: grid; padding: 6px; }
.sector-choice { position: relative; display: grid; grid-template-columns: 18px minmax(0,1fr); align-items: start; gap: 8px; width: 100%; min-height: 38px !important; padding: 9px 8px; border: 0; border-radius: 9px; background: transparent; color: var(--ink); font-size: 12px; font-weight: 650; line-height: 1.25; text-align: left; box-shadow: none; }
.sector-choice:hover { background: var(--brand-soft); color: var(--brand-deep); transform: none; }
.sector-choice .choice-check { width: 17px; height: 17px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 5px; background: var(--input); color: transparent; font-size: 11px; line-height: 1; }
.sector-choice.selected { background: var(--brand-soft); color: var(--brand-deep); }
.sector-choice.selected .choice-check { border-color: var(--brand); background: var(--brand); color: #fff; }
.sector-choice.category-choice { margin-bottom: 3px; font-weight: 800; }
.sector-choice.leaf-choice { margin-left: 13px; width: calc(100% - 13px); color: var(--muted); font-size: 11px; }
.sector-choice.leaf-choice::before { content: "↳"; position: absolute; left: -8px; top: 10px; color: var(--brand); font-size: 10px; }
.sector-choice .choice-label[data-detail]::after { content: attr(data-detail); display: block; margin-top: 3px; color: var(--muted); font-size: 9px; font-weight: 550; line-height: 1.35; }
.sector-empty { grid-column: 1 / -1; padding: 38px 20px; color: var(--muted); text-align: center; }
.empty { min-height: 260px; padding: 52px; display: grid; place-items: center; align-content: center; text-align: center; }
.empty-icon { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-size: 25px; }
.empty h1 { margin: 0 0 8px; font-size: 24px; }
.empty p { margin: 0; color: var(--muted); }
.prospect { display: grid; gap: 18px; }
.prospect-heading-slot { min-height: 250px; }
.prospect-heading { position: relative; z-index: 20; display: grid; grid-template-columns: 210px minmax(360px, 1fr) minmax(250px, .7fr); min-height: 250px; height: auto; overflow: hidden; transition: height .18s ease, transform .18s ease, box-shadow .18s ease, border-radius .18s ease; }
.prospect-heading > .score-panel, .prospect-heading > .identity, .prospect-heading > .score-breakdown { transition: opacity .14s ease, transform .2s ease; }
.compact-summary { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 26px; background: var(--score-panel); color: var(--score-text); opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .16s ease, transform .2s ease; }
.compact-summary strong { min-width: 0; overflow: hidden; font-size: clamp(19px, 2vw, 28px); text-overflow: ellipsis; white-space: nowrap; }
.compact-summary a { flex: 0 0 auto; color: var(--score-text); font-size: clamp(19px, 2vw, 28px); font-weight: 850; text-decoration-thickness: 2px; text-underline-offset: 5px; white-space: nowrap; }
.prospect-heading.compact-view { position: fixed; top: 10px; z-index: 200; min-height: 78px; height: 78px; transform: translateY(-2px); box-shadow: 0 18px 45px rgba(16,24,42,.22); }
.prospect-heading.compact-view > .score-panel,
.prospect-heading.compact-view > .identity,
.prospect-heading.compact-view > .score-breakdown { opacity: 0; pointer-events: none; transform: translateY(-8px); }
.prospect-heading.compact-view .compact-summary { opacity: 1; pointer-events: auto; transform: translateY(0); }
.score-panel { min-height: 250px; padding: 30px 20px; display: flex; flex-direction: column; justify-content: center; align-items: center; background: var(--score-panel); color: var(--score-text); text-align: center; }
.score-panel span { color: var(--score-muted); font-size: 13px; }
.score-panel strong { margin: 12px 0 8px; font-size: 48px; letter-spacing: -.05em; line-height: 1; }
.score-panel small { color: var(--score-muted); }
.identity { padding: 34px 38px; align-self: center; min-width: 0; }
.identity-topline { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.identity h2 { margin: 8px 0 7px; font-size: clamp(30px, 4vw, 48px); letter-spacing: -.04em; line-height: 1.04; overflow-wrap: anywhere; }
.trade-name { min-height: 20px; margin: 0 0 10px; color: #3e4961; font-weight: 650; }
.muted { color: var(--muted); }
.address-line { margin: 0; }
.phone { display: inline-block; margin: 18px 0 7px; color: var(--ink); font-size: clamp(25px, 3vw, 38px); font-weight: 850; letter-spacing: -.025em; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.contact-meta { margin: 0; color: var(--muted); font-size: 12px; }
.status-pill { padding: 6px 9px; border-radius: 999px; background: #f3f5f8; color: #586176; font-size: 11px; font-weight: 750; }
.status-pill.running { background: #fff7df; color: #8a5d00; }
.status-pill.completed { background: #e7f8f1; color: #087a52; }
.status-pill.failed, .status-pill.blocked { background: #fff1f2; color: #a32431; }
.score-breakdown { padding: 30px; display: grid; align-content: center; gap: 12px; border-left: 1px solid var(--line); background: var(--surface-soft); }
.score-breakdown > div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.score-breakdown span { color: var(--muted); font-size: 12px; }
.score-breakdown strong { font-size: 22px; }
.score-breakdown p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.detail-card { min-height: 310px; padding: 26px; }
.section-title { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.section-number { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 12px; background: var(--brand-soft); color: var(--brand); font-size: 11px; font-weight: 850; }
.section-title h3 { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.section-title .kicker { margin-bottom: 3px; font-size: 9px; }
.data-list { display: grid; margin: 0; }
.data-list > div { display: grid; grid-template-columns: minmax(120px, .7fr) minmax(0, 1.3fr); gap: 18px; padding: 11px 0; border-top: 1px solid #edf0f4; }
.data-list dt { color: var(--muted); font-size: 12px; }
.data-list dd { margin: 0; font-size: 13px; font-weight: 650; overflow-wrap: anywhere; }
.data-list a { color: var(--brand-deep); text-underline-offset: 3px; }
.reason-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.reason-list li { position: relative; padding: 12px 14px 12px 38px; border-radius: 11px; background: var(--surface-soft); font-size: 13px; }
.reason-list li::before { content: "✓"; position: absolute; left: 14px; color: var(--success); font-weight: 900; }
.model-disclaimer, .audit-limit { margin: 18px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.audit-status { margin: -8px 0 6px; font-weight: 750; }
.audit-description { min-height: 38px; margin: 0 0 14px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.audit-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 10px; }
.audit-metrics > div { padding: 13px; border-radius: 12px; background: var(--surface-soft); }
.audit-metrics span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 10px; }
.audit-metrics strong { font-size: 17px; overflow-wrap: anywhere; }
.compact-list > div { padding: 8px 0; }
.audit-checks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.audit-check { padding: 5px 8px; border-radius: 999px; background: #eaf8f2; color: var(--success); font-size: 10px; font-weight: 750; }
.audit-check.fail { background: #fff3e6; color: #9b5d00; }
.audit-warnings { margin: 10px 0 0; padding-left: 18px; color: #805500; font-size: 11px; }
.audit-website-link { display: block; margin: -8px 0 12px; color: var(--brand-deep); font-weight: 750; overflow-wrap: anywhere; text-underline-offset: 4px; }
.identity-proof { margin: 0 0 14px; padding: 11px 13px; border-radius: 11px; background: var(--surface-soft); color: var(--muted); font-size: 12px; line-height: 1.45; }
.identity-proof.confirmed { background: #e8f8f0; color: #096b43; }
.identity-proof.probable { background: #fff7df; color: #805500; }
.identity-proof.unconfirmed { background: #fff0f1; color: #9f2733; }
[data-theme="dark"] .identity-proof.confirmed { background: #173c31; color: #77e1b6; }
[data-theme="dark"] .identity-proof.probable { background: #41351c; color: #ffd675; }
[data-theme="dark"] .identity-proof.unconfirmed { background: #47252c; color: #ff9eaa; }
.call-panel { padding: 26px; }
.call-title { margin-bottom: 18px; }
.call-details { display: grid; grid-template-columns: minmax(240px, .7fr) minmax(320px, 1.3fr); gap: 12px; }
.call-details small { color: var(--muted); font-weight: 500; }
.callback-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; padding: 10px 12px 12px; border: 1px solid var(--line); border-radius: 12px; }
.callback-fields legend { padding: 0 5px; color: var(--muted); font-size: 11px; font-weight: 750; }
.callback-fields small { grid-column: 1 / -1; }
.outcomes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding-top: 16px; }
.outcomes button { min-height: 48px; }
.success { color: #096b43; background: #e8f8f0; border-color: #bcead5; }
.danger { color: var(--danger); background: #fff0f1; border-color: #f2c8cd; }
#message { min-height: 24px; margin: 16px 4px; color: var(--success); font-size: 13px; }
#message.error { color: var(--danger); }
.missing { color: #8a93a5; font-weight: 550; font-style: italic; }
.hidden { display: none !important; }
.callbacks-card { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 14px; margin: -10px 0 22px; padding: 15px 18px; }
.callbacks-card .kicker { margin-bottom: 3px; }
.callbacks-list { grid-column: 1 / -1; display: grid; gap: 7px; padding-top: 6px; border-top: 1px solid var(--line); }
.callback-row { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 13px; background: var(--surface-soft); text-align: left; }
.callback-row span:first-child { min-width: 0; }
.callback-row strong, .callback-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.callback-row small { margin-top: 3px; color: var(--muted); font-weight: 500; }
.callback-due { flex: 0 0 auto; color: var(--muted); font-size: 11px; font-weight: 750; }
.callback-row.overdue { border-color: #f3a6ae; background: #fff0f1; }
[data-theme="dark"] .callback-row.overdue { background: #47252c; }
.callback-row.overdue .callback-due { color: var(--danger); }
.callback-empty { margin: 6px 0; color: var(--muted); font-size: 12px; }
.callback-dialog { width: min(720px, calc(100% - 30px)); max-height: calc(100vh - 40px); overflow: auto; padding: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--ink); box-shadow: 0 30px 90px rgba(16,24,42,.35); }
.callback-dialog::backdrop { background: rgba(10,17,31,.65); backdrop-filter: blur(3px); }
.callback-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 22px 24px 16px; border-bottom: 1px solid var(--line); }
.callback-dialog-head h2 { margin: 0; }
.dialog-close { width: 38px; height: 38px; padding: 0; border: 0; background: var(--surface-soft); font-size: 24px; }
.callback-detail { display: grid; padding: 10px 24px; }
.callback-detail > div { display: grid; grid-template-columns: 140px minmax(0,1fr); gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.callback-detail span { color: var(--muted); font-size: 12px; }
.callback-detail strong, .callback-detail a { overflow-wrap: anywhere; font-size: 13px; }
.callback-detail a { color: var(--brand-deep); font-weight: 750; }
.callback-actions { display: flex; flex-wrap: wrap; gap: 9px; padding: 18px 24px 24px; }
.callback-actions button { min-height: 44px; }
.admin-panel { display: grid; gap: 18px; padding-top: 22px; }
.admin-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.admin-heading h1 { margin: 3px 0 0; font-size: 32px; }
.admin-card { padding: 24px; }
.dashboard-controls { display: grid; grid-template-columns: minmax(260px,1.4fr) repeat(3,minmax(145px,.7fr)); gap: 10px; align-items: end; }
.dashboard-controls > * { min-width: 0; }
.dashboard-controls button { min-height: 46px; }
.admin-sector-search { position: relative; display: grid; gap: 6px; min-width: 0; }
.admin-sector-search small { color: var(--brand-deep); overflow: hidden; font-size: 10px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.admin-sector-results { position: absolute; top: calc(100% + 6px); left: 0; z-index: 120; width: min(640px, calc(100vw - 80px)); max-height: 420px; overflow: auto; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; padding: 10px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); box-shadow: 0 20px 60px rgba(16,24,42,.25); }
.admin-sector-results button { min-width: 0; display: grid; gap: 3px; padding: 10px; background: var(--surface-soft); text-align: left; }
.admin-sector-results strong, .admin-sector-results small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-sector-results small { color: var(--muted); font-size: 9px; }
.analytics-summary { margin: 18px 0 10px; color: var(--muted); font-size: 12px; }
.analytics-dashboard { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.dashboard-chart-card { min-width: 0; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft); }
.dashboard-chart-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.dashboard-chart-heading h4 { margin: 0; font-size: 15px; }
.dashboard-chart-heading span { color: var(--muted); font-size: 10px; }
.dashboard-chart-body { min-height: 230px; overflow: auto; }
.line-chart { width: 100%; min-width: 500px; height: 230px; overflow: visible; }
.chart-line { fill: none; stroke: var(--brand); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chart-dot { fill: var(--surface); stroke: var(--brand); stroke-width: 3; }
.chart-axis-label { fill: var(--muted); font-size: 9px; text-anchor: middle; }
.horizontal-bar-row { display: grid; grid-template-columns: minmax(90px,1fr) minmax(110px,2fr) 90px; align-items: center; gap: 9px; min-height: 28px; }
.horizontal-bar-row > span { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.horizontal-track { height: 9px; overflow: hidden; border-radius: 999px; background: var(--line); }
.horizontal-track > div { height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--brand),#ff8c4d); }
.horizontal-bar-row strong { font-size: 9px; text-align: right; }
.chart-empty { margin: 70px 20px; color: var(--muted); text-align: center; font-size: 12px; }
.period-tabs { display: flex; gap: 7px; margin: -8px 0 14px; }
.period-tabs button { min-height: 38px; padding: 8px 12px; background: var(--surface-soft); }
.period-tabs button.active { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-deep); }
.sales-performance-layout { display: grid; grid-template-columns: minmax(200px,.65fr) minmax(0,1.35fr); gap: 14px; }
.salespeople-performance { display: grid; align-content: start; gap: 7px; }
.salespeople-performance button { min-width: 0; display: flex; justify-content: space-between; gap: 10px; background: var(--surface-soft); text-align: left; }
.salespeople-performance button.active { border-color: var(--brand); background: var(--brand-soft); }
.salespeople-performance span { color: var(--muted); font-size: 10px; }
.salesperson-kpis { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
.salesperson-kpis > div { min-width: 0; display: grid; align-content: center; gap: 5px; min-height: 82px; padding: 12px; border-radius: 11px; background: var(--surface-soft); }
.salesperson-kpis span { color: var(--muted); font-size: 10px; }
.salesperson-kpis strong { font-size: 20px; overflow-wrap: anywhere; }
.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.admin-form { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.admin-form .primary { min-height: 46px; }
.users-list { display: grid; gap: 8px; margin-top: 18px; }
.user-row { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-soft); }
.user-row strong, .user-row small { display: block; }
.user-row small { color: var(--muted); }
.user-role { padding: 5px 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-deep); font-size: 10px; font-weight: 800; }
.password-reset { min-height: 34px; padding: 6px 9px; font-size: 10px; }
#admin-message { min-height: 22px; color: var(--success); }
.import-controls { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 10px; margin-top: 16px; }
.import-controls progress { grid-column: 1 / -1; width: 100%; accent-color: var(--brand); }
.import-jobs { display: grid; gap: 7px; margin-top: 16px; }
.import-job { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-soft); }
.import-job strong, .import-job small { display: block; }
.import-job small, .import-job > span { color: var(--muted); font-size: 10px; }
.import-job.completed > span { color: var(--success); }
.import-job.failed > span { max-width: 55%; color: var(--danger); overflow-wrap: anywhere; text-align: right; }
@media (max-width: 1120px) {
  .toolbar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .toolbar .primary { align-self: stretch; }
  .prospect-heading { grid-template-columns: 180px 1fr; }
  .score-breakdown { grid-column: 1 / -1; grid-template-columns: repeat(2, 1fr); border-left: 0; border-top: 1px solid var(--line); }
  .score-breakdown p { grid-column: 1 / -1; }
  .sector-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-controls { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .admin-sector-search { grid-column: span 2; }
}
@media (max-width: 760px) {
  .shell { width: min(100% - 24px, 1440px); padding-top: 12px; }
  .topbar { align-items: flex-start; flex-direction: column; }
  .topbar-actions { width: 100%; justify-content: space-between; }
  .brand-logo { width: 118px; }
  .intro { padding: 38px 0 28px; }
  .intro h1 { font-size: clamp(42px, 13vw, 64px); }
  .toolbar, .detail-grid, .call-details { grid-template-columns: 1fr; }
  .toolbar { gap: 12px; }
  .prospect-heading { grid-template-columns: 1fr; }
  .score-panel { min-height: 170px; }
  .identity { padding: 26px 22px; }
  .score-breakdown { grid-column: auto; grid-template-columns: 1fr; }
  .score-breakdown p { grid-column: auto; }
  .outcomes { grid-template-columns: 1fr; }
  .callback-fields { grid-template-columns: 1fr 1fr; }
  .data-list > div { grid-template-columns: 1fr; gap: 4px; }
  .empty { padding: 34px 20px; }
  .sector-panel { position: fixed; inset: 76px 12px auto; width: auto; max-height: calc(100vh - 92px); }
  .sector-results { grid-template-columns: 1fr; }
  .sector-panel-header { align-items: flex-start; }
  .admin-grid, .admin-form, .dashboard-controls, .analytics-dashboard, .sales-performance-layout { grid-template-columns: 1fr; }
  .admin-sector-search { grid-column: auto; }
  .salesperson-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .callbacks-card, .import-controls { grid-template-columns: 1fr; }
  .callbacks-card .secondary { width: 100%; }
  .callback-row { align-items: flex-start; flex-direction: column; }
  .callback-detail > div { grid-template-columns: 1fr; gap: 4px; }
  .admin-sector-results { position: fixed; inset: 90px 12px auto; width: auto; grid-template-columns: 1fr; }
  .admin-heading { align-items: flex-start; flex-direction: column; }
  .current-user, .stats { display: none; }
}
