:root {
color-scheme: light;
--page:        #f3f5f7;
--surface:     #ffffff;
--surface-2:   #fafbfc;
--ink:         #17211f;
--ink-2:       #52514e;
--muted:       #6b7684;
--line:        #e4e7ec;
--line-soft:   #eef1f4;
--grid:        #e1e0d9;
--baseline:    #c3c2b7;
--accent:      #0f6e5e;
--accent-2:    #0c5e50;
--accent-soft: #e5f1ec;
--warn:        #b4443f;
--warn-soft:   #fbe9e8;
--series-forms:      #2a78d6;
--series-forms-soft: #e7f0fc;
--series-calls:      #eb6834;
--series-calls-soft: #fdeee7;
--cmp-now:  #7856d5;
--cmp-prev: #a6adb8;
--up:        #006300;
--up-soft:   #e4f3e4;
--down:      #d03b3b;
--down-soft: #fbe9e8;
--shimmer: rgba(255,255,255,.55);
--shadow:       0 1px 2px rgba(16,24,40,.05), 0 6px 20px rgba(16,24,40,.06);
--shadow-hover: 0 3px 6px rgba(16,24,40,.07), 0 14px 32px rgba(16,24,40,.11);
--shadow-lg:    0 12px 40px rgba(16,24,40,.18);
--radius: 14px;
}
@media (prefers-color-scheme: dark) {
:root:where(:not([data-theme="light"])) {
color-scheme: dark;
--page:      #0d0d0d;
--surface:   #1a1a19;
--surface-2: #212120;
--ink:       #ffffff;
--ink-2:     #c3c2b7;
--muted:     #898781;
--line:      #2c2c2a;
--line-soft: #242422;
--grid:      #2c2c2a;
--baseline:  #383835;
--accent:      #29a58c;
--accent-2:    #33b89c;
--accent-soft: #12312b;
--warn:        #e66767;
--warn-soft:   #33201f;
--series-forms:      #3987e5;
--series-forms-soft: #14243a;
--series-calls:      #d95926;
--series-calls-soft: #331c11;
--cmp-now:  #977ef3;
--cmp-prev: #6b6b64;
--up:        #0ca30c;
--up-soft:   #142e14;
--down:      #e66767;
--down-soft: #331f1f;
--shimmer: rgba(255,255,255,.07);
--shadow:       0 1px 2px rgba(0,0,0,.4), 0 6px 20px rgba(0,0,0,.3);
--shadow-hover: 0 3px 6px rgba(0,0,0,.45), 0 14px 32px rgba(0,0,0,.4);
--shadow-lg:    0 12px 40px rgba(0,0,0,.55);
}
}
:root[data-theme="dark"] {
color-scheme: dark;
--page:      #0d0d0d;
--surface:   #1a1a19;
--surface-2: #212120;
--ink:       #ffffff;
--ink-2:     #c3c2b7;
--muted:     #898781;
--line:      #2c2c2a;
--line-soft: #242422;
--grid:      #2c2c2a;
--baseline:  #383835;
--accent:      #29a58c;
--accent-2:    #33b89c;
--accent-soft: #12312b;
--warn:        #e66767;
--warn-soft:   #33201f;
--series-forms:      #3987e5;
--series-forms-soft: #14243a;
--series-calls:      #d95926;
--series-calls-soft: #331c11;
--cmp-now:  #977ef3;
--cmp-prev: #6b6b64;
--up:        #0ca30c;
--up-soft:   #142e14;
--down:      #e66767;
--down-soft: #331f1f;
--shimmer: rgba(255,255,255,.07);
--shadow:       0 1px 2px rgba(0,0,0,.4), 0 6px 20px rgba(0,0,0,.3);
--shadow-hover: 0 3px 6px rgba(0,0,0,.45), 0 14px 32px rgba(0,0,0,.4);
--shadow-lg:    0 12px 40px rgba(0,0,0,.55);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
background: var(--page);
color: var(--ink);
line-height: 1.5;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
}
.icon {
width: 16px; height: 16px; flex-shrink: 0;
fill: none; stroke: currentColor; stroke-width: 2;
stroke-linecap: round; stroke-linejoin: round;
}
.empty-state .big .icon { width: 36px; height: 36px; stroke-width: 1.6; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 24px 22px 90px; }
header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand .logo {
width: 40px; height: 40px; border-radius: 11px;
background: linear-gradient(135deg, var(--accent), #14a58c);
display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 15px; box-shadow: var(--shadow);
}
.brand h1 { font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.brand p { color: var(--muted); font-size: 13px; margin-top: 1px; }
.header-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.tabs { display: inline-flex; background: var(--line-soft); border-radius: 10px; padding: 3px; gap: 2px; }
.tabs button {
font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; border: none;
background: transparent; color: var(--muted); padding: 8px 18px; border-radius: 8px; transition: all .15s;
}
.tabs button.active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(16,24,40,.12); }
.btn {
font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; border-radius: 10px;
padding: 10px 16px; border: 1px solid transparent;
transition: background .15s ease, border-color .15s ease, transform .12s ease, box-shadow .15s ease;
display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; line-height: 1;
}
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-soft); border-color: var(--accent); }
.btn-primary {
background: var(--accent); color: #fff;
background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 88%, #fff), var(--accent));
box-shadow: 0 1px 2px rgba(16,24,40,.18), inset 0 1px 0 rgba(255,255,255,.14);
}
.btn-primary:hover {
background: var(--accent-2);
background: linear-gradient(180deg, color-mix(in srgb, var(--accent-2) 90%, #fff), var(--accent-2));
transform: translateY(-1px);
box-shadow: 0 3px 8px rgba(16,24,40,.22), inset 0 1px 0 rgba(255,255,255,.14);
}
.btn-primary:disabled { opacity: .6; cursor: wait; transform: none; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--baseline); transform: translateY(-1px); box-shadow: 0 2px 6px rgba(16,24,40,.08); }
.btn-ghost:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-danger { background: var(--surface); color: var(--warn); border-color: var(--line); }
.btn-danger:hover { background: var(--warn-soft); }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 8px; }
.btn-icon { padding: 10px; width: 40px; justify-content: center; font-size: 15px; }
.toolbar {
background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
box-shadow: var(--shadow); padding: 16px; margin-bottom: 20px;
display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px 18px; align-items: end;
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
select, input[type=text], input[type=password], input[type=number], input[type=date], input[type=search] {
font: inherit; font-size: 15px; padding: 10px 12px; border-radius: 10px;
border: 1px solid var(--line); background: var(--surface); color: var(--ink); width: 100%;
transition: border-color .15s ease, box-shadow .15s ease;
}
select:hover, input:hover { border-color: var(--baseline); }
select:focus, input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[type=number] { -moz-appearance: textfield; }
.segment { display: inline-flex; background: var(--line-soft); border-radius: 10px; padding: 3px; gap: 2px; }
.segment button {
flex: 1; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; border: none;
background: transparent; color: var(--muted); padding: 8px 12px; border-radius: 8px;
transition: all .15s; white-space: nowrap;
}
.segment button.active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(16,24,40,.12); }
.toolbar .go-cell { display: flex; align-items: end; }
.toolbar .go-cell .btn { width: 100%; justify-content: center; padding: 11px 18px; font-size: 15px; }
.custom-dates { display: none; gap: 10px; }
.custom-dates.show { display: flex; }
.custom-dates .field { flex: 1; }
.filter-row {
grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
border-top: 1px solid var(--line-soft); padding-top: 14px; margin-top: 2px;
}
.chk { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); cursor: pointer; user-select: none; }
.chk input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--accent); cursor: pointer; }
.filter-fields { display: none; align-items: center; gap: 14px; flex-wrap: wrap; }
.filter-fields.show { display: flex; }
.filter-fields .inline { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--muted); }
.filter-fields input[type=number] { width: 84px; }
.filter-hint { font-size: 12.5px; color: var(--muted); margin-left: auto; }
.cmp-control { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cmp-label { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.segment.seg-sm button { padding: 6px 12px; font-size: 12.5px; }
.cmp-dates { display: none; align-items: center; gap: 8px; animation: rise .2s ease both; }
.cmp-dates.show { display: flex; }
.cmp-dates input[type=date] { width: 148px; padding: 7px 10px; font-size: 13.5px; }
.cmp-arrow { color: var(--muted); font-size: 13px; }
.period-note {
display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
font-size: 13.5px; color: var(--muted); margin: -8px 0 18px 2px;
}
.period-note b { color: var(--ink); font-weight: 600; }
.kpis { display: none; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.kpis.show { display: grid; }
@media (max-width: 860px) { .kpis { grid-template-columns: 1fr; } }
.tile {
background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
box-shadow: var(--shadow); padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; min-width: 0;
}
.tile .lbl {
font-size: 12px; color: var(--muted); font-weight: 600;
text-transform: uppercase; letter-spacing: .04em;
display: flex; align-items: center; gap: 7px;
}
.tile .val { font-size: 32px; font-weight: 650; letter-spacing: -.02em; line-height: 1.1; color: var(--ink); }
.tile.hero .val { font-size: 52px; line-height: 1.05; }
.tile .foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 2px; }
.tile .spark { flex: 1; min-width: 60px; max-width: 190px; }
.tile .spark svg { display: block; width: 100%; height: 34px; }
.tile.hero .spark svg { height: 46px; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; display: inline-block; }
.dot.forms { background: var(--series-forms); }
.dot.calls { background: var(--series-calls); }
.dot.cmp-a { background: var(--cmp-now); }
.dot.cmp-b { background: var(--cmp-prev); }
.delta {
display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 650;
white-space: nowrap; padding: 2px 9px; border-radius: 999px;
font-variant-numeric: tabular-nums;
}
.delta.up { color: var(--up); background: var(--up-soft); }
.delta.down { color: var(--down); background: var(--down-soft); }
.delta.flat { color: var(--muted); background: var(--line-soft); }
.delta .sub { color: inherit; opacity: .65; font-weight: 500; }
.compare-card {
background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
box-shadow: var(--shadow); padding: 18px 20px 14px; margin-bottom: 20px;
animation: rise .3s ease both;
}
.cmp-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.cmp-title { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 3px; }
.cmp-sub { font-size: 15.5px; font-weight: 650; letter-spacing: -.01em; }
.vs { color: var(--muted); font-weight: 500; }
.cmp-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.cmp-chip {
border: 1px solid var(--line-soft); background: var(--surface-2); border-radius: 12px;
padding: 10px 14px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 150px;
}
.cmp-chip-lbl {
font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em;
display: flex; align-items: center; gap: 6px;
}
.cmp-chip-val { font-size: 20px; font-weight: 650; letter-spacing: -.01em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.cmp-chip-val .vs { font-size: 12.5px; font-weight: 500; }
.cmp-legend { display: flex; gap: 18px; flex-wrap: wrap; margin: 2px 2px 6px; }
.cmp-legend .key { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-2); font-weight: 500; }
.cmp-chart svg { display: block; width: 100%; height: 220px; }
.cmp-note { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
@media (max-width: 620px) { .cmp-chip { min-width: 118px; } .cmp-chart svg { height: 170px; } }
.legend { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 0 0 14px 2px; }
.legend .key { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-2); font-weight: 500; }
.legend .spacer { flex: 1; }
.sort-control { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.sort-control select { width: auto; font-size: 13px; padding: 6px 10px; }
.client-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.card {
background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column;
animation: rise .3s ease both;
transition: transform .16s ease, box-shadow .2s ease, border-color .16s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: var(--baseline); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
.card, .cmp-dates, .compare-card { animation: none; }
.card:hover, .btn:hover { transform: none; }
}
.card-head { padding: 15px 18px 10px; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.card-head h2 { font-size: 15.5px; font-weight: 680; letter-spacing: -.01em; line-height: 1.3; }
.card-total { display: flex; align-items: baseline; gap: 9px; padding: 0 18px 4px; }
.card-total .n { font-size: 30px; font-weight: 650; letter-spacing: -.02em; line-height: 1; }
.card-total .unit { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.card-chart { padding: 6px 12px 2px; }
.card-chart svg { display: block; width: 100%; height: auto; }
.card-split { display: flex; gap: 6px; padding: 8px 18px 14px; flex-wrap: wrap; }
.stat {
display: inline-flex; align-items: center; gap: 7px; font-size: 13px;
color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line-soft);
padding: 5px 10px; border-radius: 999px;
}
.stat b { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; }
.card-foot { margin-top: auto; border-top: 1px solid var(--line-soft); }
.disclose {
width: 100%; background: none; border: none; font: inherit; font-size: 13px; font-weight: 600;
color: var(--muted); padding: 11px 18px; cursor: pointer; display: flex; align-items: center;
justify-content: space-between; gap: 8px;
}
.disclose:hover { background: var(--surface-2); color: var(--ink); }
.disclose .chev { transition: transform .18s; }
.disclose[aria-expanded="true"] .chev { transform: rotate(180deg); }
.breakdown { display: none; padding: 0 6px 10px; }
.breakdown.open { display: block; }
.pill { font-size: 10.5px; padding: 3px 8px; border-radius: 999px; font-weight: 600; white-space: nowrap; }
.pill.hipaa { background: var(--line-soft); color: var(--muted); }
table.data { width: 100%; border-collapse: collapse; }
table.data caption {
text-align: left; padding: 10px 12px 6px; font-size: 11.5px; font-weight: 700;
text-transform: uppercase; letter-spacing: .05em; color: var(--muted);
display: flex; align-items: center; gap: 7px;
}
table.data th, table.data td { text-align: left; padding: 8px 12px; font-size: 13.5px; }
table.data th { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
table.data tbody tr { border-top: 1px solid var(--line-soft); }
table.data tbody tr:hover { background: var(--surface-2); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 650; width: 74px; }
.row-note { padding: 12px; color: var(--muted); font-size: 13.5px; }
.row-err { padding: 12px; color: var(--warn); font-size: 13.5px; }
.empty-state {
background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius);
padding: 54px 24px; text-align: center; color: var(--muted);
}
.empty-state .big { font-size: 34px; margin-bottom: 8px; color: var(--muted); }
.spinner {
display: inline-block; width: 15px; height: 15px; border: 2px solid currentColor;
border-top-color: transparent; border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading { padding: 22px; text-align: center; color: var(--muted); font-size: 14px; }
.stale { opacity: .45; transition: opacity .15s; pointer-events: none; }
.skel { position: relative; overflow: hidden; background: var(--line-soft); border-radius: 7px; }
.skel::after {
content: ""; position: absolute; inset: 0; transform: translateX(-100%);
background: linear-gradient(90deg, transparent, var(--shimmer), transparent);
animation: shimmer 1.5s infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }
.skel-card { display: flex; flex-direction: column; gap: 12px; padding: 18px 20px; }
.lead.skel-card { flex-direction: row; align-items: center; gap: 12px; }
@media (prefers-reduced-motion: reduce) { .skel::after { animation: none; } }
.banner {
border-radius: 10px; padding: 10px 14px; font-size: 13.5px; margin-bottom: 14px;
background: var(--warn-soft); color: var(--warn); border: 1px solid var(--line);
}
.chart-tip {
position: fixed; z-index: 200; pointer-events: none; opacity: 0;
background: var(--ink); color: var(--page); padding: 8px 11px; border-radius: 8px;
font-size: 12.5px; line-height: 1.5; box-shadow: var(--shadow-lg); transition: opacity .12s;
max-width: 240px;
}
.chart-tip.show { opacity: 1; }
.chart-tip .t-title { font-weight: 700; margin-bottom: 3px; }
.chart-tip .t-row { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.chart-tip .t-row .n { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 700; }
.overlay {
position: fixed; inset: 0; background: rgba(16,24,40,.45); backdrop-filter: blur(2px);
display: none; align-items: flex-start; justify-content: center; padding: 40px 16px; z-index: 50; overflow-y: auto;
}
.overlay.open { display: flex; }
.modal {
background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-lg);
width: 100%; max-width: 620px; margin: auto; animation: pop .18s ease both;
}
.modal.wide { max-width: 760px; }
.modal.xwide { max-width: 940px; }
@keyframes pop { from { opacity: 0; transform: scale(.98) translateY(6px); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 18px; font-weight: 700; }
.modal-head .sub { font-size: 13px; color: var(--muted); font-weight: 400; margin-top: 2px; }
.modal-body { padding: 20px 22px; }
.modal-foot {
display: flex; justify-content: flex-end; gap: 10px; padding: 16px 22px;
border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 16px 16px; flex-wrap: wrap;
}
.x { background: none; border: none; cursor: pointer; color: var(--muted); font-size: 22px; line-height: 1; padding: 4px 8px; border-radius: 8px; }
.x:hover { background: var(--line-soft); color: var(--ink); }
.form-section { border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 16px; }
.form-section > .head {
display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700;
text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 14px;
}
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.grid2 .full { grid-column: 1 / -1; }
.with-btn { display: flex; gap: 8px; align-items: stretch; }
.with-btn input { flex: 1; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.err-msg { color: var(--warn); font-size: 13px; margin-right: auto; align-self: center; display: none; }
.err-msg.show { display: block; }
.cr-status { font-size: 12.5px; color: var(--muted); margin-top: 8px; min-height: 16px; }
.list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.clientlist { display: flex; flex-direction: column; gap: 8px; max-height: 52vh; overflow-y: auto; padding-right: 2px; }
.citem { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.citem:hover { background: var(--surface-2); }
.citem .name { font-weight: 600; font-size: 15px; }
.citem .badges { display: flex; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
.citem .grow { flex: 1; min-width: 0; }
.citem .actions { display: flex; gap: 6px; flex-shrink: 0; flex-wrap: wrap; }
.tag-badge { font-size: 11px; padding: 3px 8px; border-radius: 999px; font-weight: 600; white-space: nowrap; }
.tag-badge.jf { background: var(--series-forms-soft); color: var(--ink-2); }
.tag-badge.cr { background: var(--series-calls-soft); color: var(--ink-2); }
.tag-badge.hipaa { background: var(--line-soft); color: var(--muted); }
.tag-badge.flt { background: var(--accent-soft); color: var(--accent-2); }
.tag-badge.off { background: var(--line-soft); color: var(--muted); }
.checklist { display: flex; flex-direction: column; gap: 2px; max-height: 56vh; overflow-y: auto; }
.check-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; }
.check-item:hover { background: var(--surface-2); }
.check-item.excl { opacity: .5; }
.check-item input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--accent); cursor: pointer; flex-shrink: 0; }
.check-item label { cursor: pointer; flex: 1; font-size: 14.5px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.check-item .sub { color: var(--muted); font-size: 12.5px; }
.settings-box {
display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 16px;
}
.settings-title { font-weight: 700; font-size: 14px; }
.settings-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.settings-input { min-width: 260px; flex: 1; max-width: 420px; }
.export-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.export-card {
text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
padding: 15px; cursor: pointer; display: flex; gap: 12px; align-items: flex-start; font: inherit;
transition: border-color .15s, background .15s, transform .05s; color: var(--ink);
}
.export-card:hover { border-color: var(--accent); background: var(--surface-2); }
.export-card:active { transform: translateY(1px); }
.export-card:disabled { opacity: .55; cursor: wait; }
.export-card .ei {
width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
background: var(--accent-soft); color: var(--accent-2);
display: grid; place-items: center;
}
.export-card .ei .icon { width: 18px; height: 18px; }
.export-card .et { font-weight: 700; font-size: 14.5px; margin-bottom: 3px; }
.export-card .ed { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
@media (max-width: 560px) { .export-opts { grid-template-columns: 1fr; } }
.leads-bar {
background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
box-shadow: var(--shadow); padding: 14px 16px; margin-bottom: 14px;
display: flex; gap: 14px; align-items: end; flex-wrap: wrap;
}
.leads-bar .field { min-width: 130px; }
.leads-summary { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.leads-counts { display: flex; gap: 6px; flex-wrap: wrap; }
.leads-summary .spacer { flex: 1; }
.leads-export {
display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px;
padding: 10px 14px; margin-bottom: 16px;
}
.lead {
background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
padding: 12px 14px; display: flex; gap: 12px; align-items: flex-start; margin-bottom: 8px;
}
.lead:hover { border-color: var(--baseline); }
.lead-pick { display: flex; align-items: center; padding-top: 2px; }
.lead-pick input { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }
.lead > .dot { margin-top: 7px; }
.lead-body { flex: 1; min-width: 0; }
.lead-top { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-bottom: 3px; }
.lead-top b { font-size: 15px; font-weight: 650; }
.lead-meta { font-size: 12.5px; color: var(--muted); display: flex; gap: 5px; flex-wrap: wrap; align-items: center; }
.lead-msg {
font-size: 13.5px; color: var(--ink-2); margin-top: 6px; line-height: 1.5;
display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.lead-open { flex-shrink: 0; }
.lead-detail { display: none; }
.lead-detail.open {
display: block; background: var(--surface-2); border: 1px solid var(--line);
border-radius: 12px; padding: 14px 16px; margin: -4px 0 12px 34px;
}
.lead-audio { margin-bottom: 12px; }
.lead-audio audio { border-radius: 8px; }
.lead-summary { margin-bottom: 12px; font-size: 13.5px; }
.lead-summary b { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 4px; }
.lead-summary p { color: var(--ink-2); line-height: 1.55; }
.lead-summary a { color: var(--accent); }
.transcript { margin-bottom: 12px; max-height: 320px; overflow-y: auto; padding-right: 6px; }
.transcript b { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 6px; }
.transcript p { font-size: 13.5px; line-height: 1.6; margin-bottom: 5px; color: var(--ink-2); }
.transcript .who { font-weight: 700; color: var(--ink); }
table.lead-fields td { font-size: 13px; vertical-align: top; }
table.lead-fields td:first-child { color: var(--muted); width: 38%; font-weight: 500; }
.star {
background: none; border: none; cursor: pointer; font-size: 17px; line-height: 1;
color: var(--muted); padding: 0 2px; border-radius: 5px; transition: color .12s, transform .08s;
}
.star:hover { color: #d9a413; transform: scale(1.15); }
.star.on { color: #d9a413; }
.star:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.tag-badge.good  { background: var(--accent-soft); color: var(--accent-2); }
.tag-badge.first { background: var(--series-forms-soft); color: var(--ink-2); }
.tag-badge.rec   { background: var(--series-calls-soft); color: var(--ink-2); }
.tag-badge.tr    { background: var(--line-soft); color: var(--ink-2); }
.tag-badge.miss  { background: var(--warn-soft); color: var(--warn); }
@media (max-width: 620px) {
.lead-detail.open { margin-left: 0; }
.lead { flex-wrap: wrap; }
}
.insights-action {
background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
box-shadow: var(--shadow); padding: 18px 20px; margin-bottom: 16px;
display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.ia-title { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 4px; }
.ia-title .icon { color: var(--accent); width: 18px; height: 18px; }
.ia-sub { font-size: 13.5px; color: var(--muted); max-width: 640px; line-height: 1.5; }
.ia-status { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.ia-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.ia-actions .btn-primary { padding: 12px 22px; font-size: 15px; }
.ok-chip, .warn-chip {
display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600;
padding: 4px 10px; border-radius: 999px;
}
.ok-chip { background: var(--accent-soft); color: var(--accent-2); }
.warn-chip { background: var(--warn-soft); color: var(--warn); font-weight: 500; }
.warn-chip code { font-family: Consolas, monospace; font-size: 11.5px; }
.progress-card {
background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
box-shadow: var(--shadow); padding: 14px 16px; margin-bottom: 16px;
}
.progress-row { display: flex; align-items: center; gap: 10px; font-size: 14px; margin-bottom: 10px; }
.progress-row .spacer { flex: 1; }
.progress { height: 8px; background: var(--line-soft); border-radius: 999px; overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: 999px; background: var(--accent); transition: width .5s ease; }
.itile .val { font-size: 26px; }
.itile.t-best .val { color: var(--accent-2); }
.itile.t-warn .val { color: var(--warn); }
button.tile { font: inherit; text-align: left; cursor: pointer; }
.itile.clickable { transition: transform .15s ease, box-shadow .2s ease, border-color .15s ease; }
.itile.clickable:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: var(--baseline); }
.itile.clickable:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.insights-showing { margin: -4px 2px 12px; }
.isec {
background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
box-shadow: var(--shadow); margin-bottom: 12px; overflow: hidden;
}
.isec-head {
width: 100%; background: none; border: none; font: inherit; cursor: pointer;
display: flex; align-items: center; gap: 10px; padding: 14px 18px;
}
.isec-head:hover { background: var(--surface-2); }
.isec-title { font-size: 14.5px; font-weight: 700; letter-spacing: -.01em; }
.isec-count { background: var(--line-soft); color: var(--ink-2); font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; }
.isec[data-sec="best"] .isec-count { background: var(--accent-soft); color: var(--accent-2); }
.isec[data-sec="opps"] .isec-count { background: var(--warn-soft); color: var(--warn); }
.isec-hint { font-size: 12.5px; color: var(--muted); }
.isec .chev { transition: transform .18s; color: var(--muted); }
.isec.open .chev { transform: rotate(180deg); }
.isec-body { display: none; padding: 0 14px 14px; }
.isec.open .isec-body { display: block; }
.isec .spacer { flex: 1; }
.icards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 10px; }
.icard {
background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
padding: 12px 14px; cursor: pointer; min-width: 0;
transition: border-color .15s ease, box-shadow .15s ease, transform .12s ease;
}
.icard:hover { border-color: var(--baseline); box-shadow: var(--shadow); transform: translateY(-1px); }
.icard:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.icard.open { grid-column: 1 / -1; cursor: default; transform: none; }
.icard-top { display: flex; align-items: center; gap: 9px; margin-bottom: 6px; }
.icard-name { font-size: 14.5px; font-weight: 650; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icard-meta { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.icard-tags { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; overflow: hidden; }
.icard-tags.wrap { flex-wrap: wrap; overflow: visible; margin: 8px 0 4px; }
.icard-chev { margin-left: auto; color: var(--muted); flex-shrink: 0; transition: transform .18s; }
.icard.open .icard-chev { transform: rotate(180deg); }
.icard-detail { border-top: 1px solid var(--line-soft); margin-top: 10px; padding-top: 10px; cursor: default; }
.icard-actions { display: flex; align-items: center; gap: 8px; margin: 8px 0 12px; }
.lead-msg.full { display: block; -webkit-line-clamp: unset; }
.score-badge {
width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
display: grid; place-items: center; font-weight: 750; font-size: 15.5px;
font-variant-numeric: tabular-nums;
}
.score-badge.sm { width: 34px; height: 34px; border-radius: 10px; font-size: 13px; }
.score-badge.s-best { background: var(--accent-soft); color: var(--accent-2); }
.score-badge.s-good { background: var(--series-forms-soft); color: var(--series-forms); }
.score-badge.s-ok   { background: var(--line-soft); color: var(--ink-2); }
.score-badge.s-low  { background: var(--warn-soft); color: var(--warn); }
.tag-badge.v-best { background: var(--accent); color: #fff; }
.tag-badge.v-good { background: var(--accent-soft); color: var(--accent-2); }
.tag-badge.v-ok   { background: var(--line-soft); color: var(--muted); }
.tag-badge.v-low  { background: var(--line-soft); color: var(--muted); }
.tag-badge.v-spam { background: var(--warn-soft); color: var(--warn); }
.why {
font-size: 11.5px; padding: 2.5px 8px; border-radius: 999px; white-space: nowrap;
background: var(--surface-2); border: 1px solid var(--line-soft); color: var(--ink-2);
}
.why.bad { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.why.flag { background: var(--warn-soft); border-color: transparent; color: var(--warn); font-weight: 600; }
.why.src { color: var(--muted); font-style: italic; }
.why.prov { border-style: dashed; color: var(--muted); }
.why.corrected { background: var(--accent-soft); border-color: transparent; color: var(--accent-2); font-weight: 600; }
.why.learned { background: var(--series-forms-soft); border-color: transparent; color: var(--ink-2); }
.verdict-ctl { display: flex; gap: 4px; flex-shrink: 0; }
.vbtn {
background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
width: 30px; height: 30px; display: grid; place-items: center; cursor: pointer;
color: var(--muted); transition: color .12s, border-color .12s, background .12s;
}
.vbtn .icon { width: 14px; height: 14px; }
.vbtn:hover { color: var(--ink); border-color: var(--baseline); }
.vbtn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.vbtn.on-up { background: var(--accent-soft); color: var(--accent-2); border-color: transparent; opacity: 1; }
.vbtn.on-down { background: var(--warn-soft); color: var(--warn); border-color: transparent; opacity: 1; }
.verdict-ctl:has(.on-up), .verdict-ctl:has(.on-down) { opacity: 1; }
.packet-box {
margin-top: 14px; display: flex; align-items: center; gap: 12px;
background: var(--accent-soft); border: 1px solid var(--line); border-radius: 12px; padding: 15px;
}
.packet-box .ei {
width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
background: var(--surface); color: var(--accent-2); display: grid; place-items: center;
}
.packet-box .ei .icon { width: 18px; height: 18px; }
.packet-box .grow { flex: 1; min-width: 0; }
.packet-box .et { font-weight: 700; font-size: 14.5px; margin-bottom: 3px; }
.packet-box .ed { font-size: 12.5px; color: var(--ink-2); line-height: 1.45; }
.packet-box .btn { flex-shrink: 0; }
@media (max-width: 560px) { .packet-box { flex-wrap: wrap; } }
@media (max-width: 620px) {
.insights-action { flex-direction: column; align-items: stretch; }
.ia-actions { align-items: stretch; }
.icards { grid-template-columns: 1fr; }
}
.auth-lock {
position: fixed; inset: 0; z-index: 300; display: grid; place-items: center;
background: var(--page);
}
.auth-lock-card {
background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
box-shadow: var(--shadow); padding: 40px 48px; text-align: center; color: var(--ink);
max-width: 420px; display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.auth-lock-card .icon { color: var(--muted); }
.auth-lock-card h2 { font-size: 18px; font-weight: 700; }
.auth-lock-card p { color: var(--muted); font-size: 13.5px; line-height: 1.6; }
[data-admin-locked] { display: none; }
.admin-locked [data-admin] { display: none !important; }
.admin-locked [data-admin-locked] { display: inline; }
.toast {
position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
background: var(--ink); color: var(--page); padding: 12px 20px; border-radius: 10px; font-size: 14px;
opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 100; box-shadow: var(--shadow-lg); max-width: 90vw;
}
.toast.show { opacity: 1; }
footer { margin-top: 28px; color: var(--muted); font-size: 12.5px; text-align: center; }
.view { display: none; }
.view.active { display: block; }
@media (max-width: 620px) {
.grid2 { grid-template-columns: 1fr; }
.citem { flex-wrap: wrap; }
.client-grid { grid-template-columns: 1fr; }
}
