@font-face {
  font-family: "DM Sans";
  src: url("fonts/dm-sans-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
}
:root {
  color-scheme: light;
  --canvas: #f5f6f8;
  --surface: #ffffff;
  --text: #172028;
  --muted: #5d6875;
  --line: #e8ebef;
  --soft: #f5f7f9;
  --accent: #2a6046;
  --tint: #edf6ec;
  --shadow: 0 3px 9px #1e293b03, 0 14px 32px #1e293b04;
  font: 14px "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #10151c;
  --surface: #19212b;
  --text: #edf2f7;
  --muted: #9ba7b5;
  --line: #2b3542;
  --soft: #202a36;
  --accent: #b4e38b;
  --tint: #25392d;
  --shadow: 0 12px 32px #00000012;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--canvas); color: var(--text); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button, input, select {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 11px 13px;
}
input, select { min-width: 0; width: 100%; }
input::placeholder { color: var(--muted); font-weight: 400; }
button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-weight: 600; transition: background .16s, border-color .16s, transform .16s; }
button:hover:not(:disabled) { background: var(--soft); border-color: #a9b8bd; }
button:disabled { opacity: .4; cursor: default; }
button:active:not(:disabled) { transform: translateY(1px); }
:focus-visible { outline: 3px solid #83b9ff; outline-offset: 3px; }
label { display: grid; gap: 8px; font-size: 12px; font-weight: 600; color: var(--muted); }
h1,h2,h3,p { margin: 0; }
h1 { font-size: clamp(32px, 3.2vw, 45px); letter-spacing: -.055em; line-height: 1.15; font-weight: 550; }
h2 { font-size: 18px; letter-spacing: -.035em; font-weight: 650; }
h3 { font-size: 16px; font-weight: 650; letter-spacing: -.025em; }
a { color: inherit; text-decoration: none; }
svg.icon { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
[data-icon] { display: inline-flex; align-items: center; }
.eyebrow { display: block; font-size: 10px; font-weight: 700; letter-spacing: .15em; color: var(--muted); margin-bottom: 10px; }
.shell { display: grid; grid-template-columns: 246px minmax(0,1fr); min-height: 100dvh; }
aside {
  position: sticky; top: 0; height: 100dvh; padding: 31px 20px 18px;
  display: flex; flex-direction: column; color: #a1aab7;
  background: radial-gradient(ellipse at 10% 0%, #273b33 0%, transparent 54%), #151b23;
}
.brand { color: #f5f8f5; display: flex; align-items: center; gap: 10px; font-size: 24px; letter-spacing: -.065em; font-weight: 700; }
.brand-light { font-weight: 400; }
.brand img { width: 39px; height: 39px; }
.workspace-control { margin: 37px 0 24px; padding: 15px 13px; border: 1px solid #ffffff12; border-radius: 12px; background: #ffffff04; }
.workspace-control label { color: #7d8b9b; font-size: 9px; letter-spacing: .13em; }
.workspace-control select { color: #f1f4f7; background: transparent; padding: 8px 0 3px; border: 0; font-size: 14px; font-weight: 600; }
.workspace-control option { background: #202a34; }
.workspace-control > span { display: block; font-size: 11px; margin-top: 5px; color: #8a9aab; }
nav { display: grid; gap: 6px; }
.nav { justify-content: flex-start; border: 0; border-radius: 9px; background: transparent; color: #96a3b3; padding: 12px 14px; font-weight: 500; }
.nav.active { background: #c2f47b; color: #1d3524; box-shadow: 0 4px 20px #9ddf5c0a; }
.nav:hover:not(:disabled) { background: #ffffff0d; color: #edf2f7; }
.nav.active:hover { background: #d1fa98; color: #172920; }
.nav-dot { width: 5px; height: 5px; border-radius: 50%; background: #26472c; margin-left: auto; }
.sidebar-footer { display: flex; gap: 11px; align-items: center; margin-top: auto; padding: 16px 10px 24px; }
.signal-icon { width: 31px; height: 31px; border-radius: 9px; background: #ffffff08; justify-content: center; color: #c2f47b; }
.sidebar-footer strong { font-size: 11px; color: #d9e1e9; font-weight: 500; }
.sidebar-footer small { display: block; font-size: 10px; color: #8290a1; margin-top: 5px; }
.identity { display: flex; align-items: center; gap: 10px; padding: 19px 6px 0; border-top: 1px solid #ffffff0c; }
.account-avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #37463a; color: #d4e8bd; flex: none; font-size: 12px; }
.identity > div { overflow: hidden; flex: 1; }
.identity strong { display: block; overflow: hidden; text-overflow: ellipsis; font-size: 11px; font-weight: 500; color: #edf2f7; }
.identity small { display: block; font-size: 10px; margin-top: 4px; color: #8290a1; }
.identity svg { width: 13px; }
main { padding: 0 clamp(22px,3.6vw,62px) 35px; max-width: 1680px; width: 100%; margin: 0 auto; }
.top { min-height: 83px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); margin-bottom: 36px; font-size: 11px; color: var(--muted); gap: 12px; }
.breadcrumb { display: flex; align-items: center; gap: 13px; }
.breadcrumb svg { width: 15px; color: #8c96a2; }
.breadcrumb strong { font-weight: 500; color: var(--text); }
.slash { color: #b8c1ca; }
.live-state { display: flex; align-items: center; gap: 7px; font-size: 10px; }
.live-state:not(:empty)::before { content: ""; width: 6px; height: 6px; background: #61ad77; box-shadow: 0 0 0 3px #61ad7712; border-radius: 50%; }
.heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.heading .eyebrow { margin-bottom: 12px; color: var(--accent); }
.heading-dot { color: #77a958; }
.heading p { color: var(--muted); font-size: 12px; margin-top: 11px; }
.refresh-button { font-size: 11px; padding: 10px 14px; box-shadow: 0 2px 3px #00000002; }
.refresh-button svg { width: 14px; height: 14px; }
.summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 17px; margin-bottom: 34px; }
.metric { border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 22px 24px; box-shadow: var(--shadow); }
.metric.featured { background: linear-gradient(120deg, #eaf1e7, #f1f6ec); border-color: #dfe9d9; }
:root[data-theme="dark"] .metric.featured { background: linear-gradient(120deg,#263d2e,#23312a); border-color: #354b39; }
.metric-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); }
.metric-top small { font-size: 11px; font-weight: 500; }
.metric-top > span { width: 29px; height: 29px; justify-content: center; background: var(--soft); border-radius: 9px; color: var(--accent); }
.metric.featured .metric-top > span { background: #ffffff70; }
.metric-top svg { width: 15px; height: 15px; }
.metric-bottom { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 12px; }
.metric strong { font-size: 38px; font-weight: 550; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.metric-note { color: var(--muted); font-size: 10px; }
.section-title { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.section-title h2 { display: flex; align-items: center; gap: 8px; }
#activity-count { color: var(--muted); font-size: 10px; font-weight: 500; background: var(--line); padding: 3px 7px; border-radius: 6px; letter-spacing: 0; }
#activity-count:empty { display: none; }
#updated { color: var(--muted); font-size: 10px; margin-top: 6px; }
.segmented { display: flex; border: 1px solid var(--line); padding: 3px; background: var(--surface); border-radius: 9px; gap: 2px; }
.segmented button { border: 0; border-radius: 6px; background: transparent; font-size: 10px; padding: 7px 11px; color: var(--muted); gap: 6px; }
.segmented svg { width: 13px; height: 13px; }
.segmented button[aria-pressed="true"] { background: var(--soft); color: var(--text); box-shadow: 0 1px 3px #0000000b; }
.filters { display: flex; gap: 11px; flex-wrap: wrap; align-items: center; margin-bottom: 23px; }
.search-field { flex: 1; min-width: 200px; max-width: 360px; }
.search-field, .period-field { display: flex; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; gap: 9px; padding: 0 12px; }
.search-field input, .period-field select { border: 0; background: transparent; outline-offset: 0; padding: 11px 0; font-size: 11px; font-weight: 400; }
.search-field svg, .period-field svg { width: 15px; height: 15px; }
.period-field { margin-left: auto; min-width: 165px; }
#dates { display: flex; align-items: end; gap: 8px; width: 100%; padding-top: 4px; }
#dates label { max-width: 170px; }
.grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 17px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; transition: border-color .2s, box-shadow .2s, transform .2s; }
.card:hover { border-color: #bacdb7; box-shadow: 0 5px 8px #172c1904,0 17px 30px #172c1908; transform: translateY(-2px); }
.card header { display: flex; align-items: center; gap: 12px; padding: 23px 22px 20px; }
.avatar { width: 43px; height: 43px; flex: none; border-radius: 13px; background: var(--avatar-bg,#e9efe5); color: var(--avatar-fg,#48603c); display: grid; place-items: center; font-size: 14px; font-weight: 650; letter-spacing: -.03em; box-shadow: inset 0 0 0 1px #00000004; }
:root[data-theme="dark"] .avatar { background: #2d3e39; color: #cae6b4; }
.card h3 { font-size: 17px; font-weight: 650; line-height: 1.25; overflow-wrap: anywhere; }
.card header small { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 10px; margin-top: 5px; }
.card header small svg { width: 11px; height: 11px; }
.card .location { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); padding: 0 22px 17px; border-bottom: 1px solid var(--line); }
.location svg { width: 12px; height: 12px; }
.card dl { margin: 0; padding: 17px 22px 20px; display: grid; gap: 16px; }
.card dt { display: flex; align-items: center; justify-content: space-between; margin-bottom: 5px; color: var(--muted); font-size: 9px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.card dd { margin: 0; }
.contact { font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
.card .contact-line { display: flex; align-items: flex-start; justify-content: space-between; gap: 7px; }
.contact-actions { display: flex; align-items: center; gap: 6px; }
.copy { background: transparent; border: 0; padding: 3px; color: var(--muted); border-radius: 4px; opacity: .5; }
.copy svg { width: 12px; height: 12px; }
.card:hover .copy, .copy:focus-visible { opacity: 1; }
.badge { display: inline-flex; align-items: center; gap: 3px; color: var(--accent); background: var(--tint); border-radius: 4px; padding: 3px 5px; font-size: 8px; font-weight: 600; text-transform: none; letter-spacing: 0; }
.badge svg { width: 9px; height: 9px; }
.unavailable { color: var(--muted); font-size: 11px; }
.card-footer { display: flex; align-items: center; gap: 9px; padding: 14px 22px; background: var(--soft); border-top: 1px solid var(--line); }
.site-icon { display: inline-flex; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; color: var(--muted); }
.site-icon svg { width: 12px; height: 12px; }
.site-detail { min-width: 0; flex: 1; }
.site { display: block; font-size: 10px; font-weight: 600; }
.path { display: block; color: var(--muted); font-size: 10px; margin-top: 3px; overflow-wrap: anywhere; }
.page-link { color: var(--muted); display: inline-flex; padding: 5px; border-radius: 5px; }
.page-link svg { width: 13px; height: 13px; }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 11px; }
th,td { text-align: left; padding: 17px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--soft); color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; white-space: nowrap; }
td .contact { font-size: 11px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--soft); }
.pagination { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; color: var(--muted); font-size: 10px; }
.pagination > div { display: flex; gap: 6px; }
.pagination button { padding: 8px; border-radius: 7px; }
.pagination svg { width: 13px; height: 13px; }
.status:not(:empty) { margin: 14px 0; font-size: 12px; line-height: 1.6; color: var(--muted); }
.empty-state { display: grid; place-items: center; min-height: 260px; text-align: center; border: 1px dashed var(--line); border-radius: 16px; }
.empty-state > div { max-width: 300px; }
.empty-state svg { width: 28px; height: 28px; color: var(--muted); margin-bottom: 17px; }
.empty-state h3 { margin-bottom: 8px; }
.empty-state p { color: var(--muted); font-size: 12px; line-height: 1.7; }
dialog { width: min(450px,calc(100% - 32px)); padding: 29px; border: 1px solid var(--line); border-radius: 19px; color: var(--text); background: var(--surface); box-shadow: 0 30px 100px #00000024; }
dialog::backdrop { background: #10182094; backdrop-filter: blur(5px); }
.dialog-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 25px; gap: 15px; }
.dialog-head h2 { font-size: 25px; }
.icon-button { background: var(--soft); border: 0; border-radius: 50%; width: 29px; height: 29px; padding: 0; font-size: 21px; font-weight: 300; }
.form { display: grid; gap: 18px; margin-top: 22px; }
.form h3 { margin-top: 7px; }
.primary { color: #ffffff; background: #254e3c; border-color: #254e3c; padding: 12px 16px; }
.primary:hover:not(:disabled) { color: #ffffff; background: #30654c; border-color: #30654c; }
.primary > span:last-child { margin-left: auto; }
.danger-button { color: #b94c4c; background: transparent; margin-top: 18px; }
.text-button { color: var(--muted); border: 0; background: transparent; font-size: 11px; }
.auth-view { max-width: 390px; margin: 8vh auto 0; }
.auth-mark img { width: 58px; height: 58px; margin-bottom: 27px; }
.auth-view h1 { font-size: 43px; }
.auth-view > p { color: var(--muted); margin-top: 13px; font-size: 12px; }
.auth-view .form { margin-top: 31px; }
.auth-view .primary { margin-top: 6px; }
.customer-dialog { width: min(620px,calc(100% - 32px)); }
.customer-list { display: grid; max-height: 180px; overflow: auto; margin-bottom: 24px; }
.customer-item { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 12px; gap: 12px; }
.customer-item small { color: var(--muted); font-size: 10px; }
.form-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
#customer-result { display: grid; gap: 18px; margin-top: 18px; }
.toast { position: fixed; bottom: 25px; left: 50%; transform: translateX(-50%); z-index: 20; color: white; background: #202d28; border-radius: 9px; padding: 12px 20px; font-size: 12px; box-shadow: 0 8px 30px #0002; }
@media(min-width:1600px) { .grid { grid-template-columns: repeat(4,minmax(0,1fr)); } }
@media(max-width:1180px) { .grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .shell { grid-template-columns: 218px minmax(0,1fr); } .brand { font-size: 21px; } .metric { padding: 18px; } .metric-note { display: none; } }
@media(max-width:720px) {
  .shell { display: block; }
  aside { position: static; height: auto; padding: 17px 20px; flex-direction: row; align-items: center; justify-content: space-between; }
  .brand { font-size: 21px; }
  .brand img { width: 31px; height: 31px; }
  .workspace-control,.sidebar-footer,.identity,.nav-dot { display: none; }
  nav { display: flex; gap: 0; }
  .nav { padding: 9px; font-size: 0; gap: 0; }
  .nav svg { width: 18px; height: 18px; }
  main { padding: 0 18px 28px; }
  .top { min-height: 62px; margin-bottom: 25px; }
  .heading { margin-bottom: 23px; }
  .heading .eyebrow { font-size: 8px; }
  .heading p { font-size: 10px; }
  .refresh-button { padding: 9px; }
  .refresh-button > span:last-child { display: none; }
  .summary { gap: 8px; margin-bottom: 29px; }
  .metric { padding: 14px 11px; border-radius: 10px; }
  .metric-top small { font-size: 9px; }
  .metric-top > span { display: none; }
  .metric strong { font-size: 30px; }
  .metric-bottom { margin-top: 9px; }
  .grid { gap: 13px; }
  .card header { padding: 18px 16px; gap: 10px; }
  .card h3 { font-size: 15px; }
  .card .location { padding: 0 16px 15px; }
  .card dl { padding: 16px; }
  .card-footer { padding: 13px 16px; }
  .avatar { width: 35px; height: 35px; border-radius: 10px; font-size: 11px; }
  .section-title h2 { font-size: 16px; }
  .segmented button > span:last-child { display: none; }
  .period-field { min-width: 145px; }
  .search-field { min-width: 140px; }
  .form-columns { grid-template-columns: 1fr; }
  .auth-view { margin-top: 5vh; }
}
@media(max-width:480px) { .grid { grid-template-columns: 1fr; } .metric strong { font-size: 28px; } .live-state { font-size: 9px; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { transition: none !important; animation: none !important; } }

@media(max-width:720px) {
  aside { flex-wrap: wrap; }
  .workspace-control {
    display: flex; align-items: center; gap: 12px; flex-basis: 100%; order: 3;
    margin: 16px 0 0; padding: 9px 12px;
  }
  .workspace-control label { display: none; }
  .workspace-control select { padding: 0; width: auto; flex: 1; font-size: 12px; }
  .workspace-control > span { margin: 0; font-size: 10px; }
}
/* Keep variable-length contact content aligned within each card row. */
.card { display: flex; flex-direction: column; }
.card header { min-height: 104px; }
.card dl { flex: 1; }
.card-footer { margin-top: auto; }
.contact-line > .contact { min-width: 0; flex: 1; }
.copy { width: 28px; height: 28px; flex: none; padding: 5px; }
@media(max-width:720px) {
  .workspace-control { min-width: 0; max-width: 100%; }
  .workspace-control > span {
    min-width: 0; max-width: 50%; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis;
  }
  .card header { min-height: 90px; }
  .metric-top { min-height: 26px; align-items: flex-start; }
  .copy { width: 32px; height: 32px; }
  .segmented button { min-width: 32px; min-height: 32px; }
}

:root[data-theme="dark"] .danger-button { color: #f18d8d; }
.heatmap-panel { background:var(--surface);border:1px solid var(--line);border-radius:16px;overflow:hidden; }
.heatmap-header { display:flex;justify-content:space-between;align-items:center;gap:24px;padding:27px 28px 8px; }
.heatmap-header h3 { font-size:23px;font-weight:550;letter-spacing:-.04em; }
.heatmap-intro { margin-top:8px;font-size:11px;color:var(--muted);line-height:1.6; }
.heatmap-coverage { text-align:right;flex:none; }
.heatmap-coverage strong { display:block;font-size:32px;font-weight:550;letter-spacing:-.06em; }
.heatmap-coverage span { color:var(--muted);font-size:10px; }
.heatmap-layout { display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:20px;padding:18px 28px 0; }
.heatmap-map { min-width:0;align-self:center; }
.heatmap-map svg { width:100%;height:auto;overflow:visible; }
.heatmap-map path { stroke:var(--surface);stroke-width:1.3;stroke-linejoin:round;cursor:pointer;transition:fill .15s; }
.heatmap-map [data-level="0"],.heatmap-legend [data-level="0"] { fill:#edf0f2;background:#edf0f2; }
.heatmap-map [data-level="1"],.heatmap-legend [data-level="1"] { fill:#dcebcf;background:#dcebcf; }
.heatmap-map [data-level="2"],.heatmap-legend [data-level="2"] { fill:#badb9e;background:#badb9e; }
.heatmap-map [data-level="3"],.heatmap-legend [data-level="3"] { fill:#8cc365;background:#8cc365; }
.heatmap-map [data-level="4"],.heatmap-legend [data-level="4"] { fill:#508b47;background:#508b47; }
.heatmap-map [data-level="5"],.heatmap-legend [data-level="5"] { fill:#285e40;background:#285e40; }
:root[data-theme="dark"] .heatmap-map [data-level="0"],:root[data-theme="dark"] .heatmap-legend [data-level="0"] { fill:#293441;background:#293441; }
.heatmap-map path:hover,.heatmap-map path[aria-pressed="true"] { stroke:var(--text);stroke-width:3; }
.heatmap-map path:focus-visible { outline:none;stroke:#4396e7;stroke-width:4; }
.heatmap-legend { display:flex;justify-content:center;align-items:center;gap:5px;color:var(--muted);font-size:9px;margin:4px 0 20px; }
.heatmap-legend span { margin:0 6px; }
.heatmap-legend i { width:20px;height:7px;border-radius:2px; }
.heatmap-details { position:static;height:auto;padding:8px 0 8px 20px;background:none;color:var(--text);border-left:1px solid var(--line);display:block; }
.heatmap-details h3 { font-size:13px;font-weight:600; }
.location-rankings { list-style:none;padding:0;margin:15px 0 0; }
.location-rankings li { position:relative;display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:10px 0 13px;font-size:10px;border-bottom:1px solid var(--line);line-height:1.5; }
.location-rankings li>span:first-child { overflow-wrap:anywhere;min-width:0; }
.location-rankings strong { font-weight:600;flex:none; }
.location-bar { position:absolute;left:0;bottom:0;height:2px;width:var(--share);max-width:100%;background:var(--accent);opacity:.35; }
.location-empty { color:var(--muted); }
.heatmap-caption { color:var(--muted);font-size:10px;line-height:1.7;padding:12px 28px 20px; }
.heatmap-footer { display:flex;justify-content:space-between;gap:15px;flex-wrap:wrap;font-size:9px;color:var(--muted);border-top:1px solid var(--line);padding:15px 28px;background:var(--soft); }
@media(max-width:1180px){.heatmap-layout{grid-template-columns:1fr}.heatmap-details{border-left:0;border-top:1px solid var(--line);padding:20px 0 0}.location-rankings{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}.heatmap-map{max-width:750px;width:100%;margin:auto}}
@media(max-width:720px){.heatmap-header{padding:22px 18px 5px;align-items:flex-start}.heatmap-header h3{font-size:20px}.heatmap-coverage{max-width:90px}.heatmap-coverage strong{font-size:26px}.heatmap-coverage span{font-size:9px}.heatmap-layout{padding:14px 18px 0}.location-rankings{grid-template-columns:1fr}.heatmap-caption{padding:14px 18px}.heatmap-footer{padding:14px 18px}.heatmap-legend i{width:15px}.heatmap-legend{font-size:8px;gap:3px}}
