:root{--bg:#f4f6f8;--card:#fff;--line:#e3e7ec;--text:#111827;--muted:#667085;--accent:#f25a1f;--blue:#2563eb;--green:#0f766e;--soft:#fff7f2;--warn:#b45309;--bad:#b91c1c}
*{box-sizing:border-box}body{margin:0;font-family:"Aptos","Manrope","Helvetica Neue",sans-serif;background:var(--bg);color:var(--text)}
.wrap{max-width:1480px;margin:24px auto;padding:0 16px}.top{display:flex;justify-content:space-between;align-items:end;gap:12px;flex-wrap:wrap}.h1{font-size:28px;font-weight:800}.sub{color:var(--muted);font-size:14px}.nav{display:flex;gap:8px;margin-top:16px;flex-wrap:wrap}.nav a{padding:9px 12px;border:1px solid var(--line);border-radius:8px;background:#fff;color:#111827;text-decoration:none;font-size:14px}.nav a.active{background:#111827;color:#fff;border-color:#111827}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin-top:16px}.card{background:var(--card);border:1px solid var(--line);border-radius:8px;padding:14px}.card .k{font-size:12px;color:var(--muted)}.card .v{font-size:24px;font-weight:800;margin-top:6px}.panel{margin-top:14px;background:var(--card);border:1px solid var(--line);border-radius:8px;padding:14px}.formula-note{margin-bottom:12px;padding:10px 12px;border:1px solid #fed7aa;border-radius:8px;background:#fff7ed;color:#7c2d12;font-size:13px;line-height:1.45}.filters{display:grid;grid-template-columns:2fr 1fr 220px;gap:10px}.filters.two{grid-template-columns:2fr 180px}.filters.three{grid-template-columns:2fr 180px 220px}.filters.four{grid-template-columns:2fr 120px 220px 240px}input,select{width:100%;padding:10px 12px;border:1px solid var(--line);border-radius:8px;font-size:14px;background:#fff}.charts{display:grid;grid-template-columns:repeat(3,minmax(260px,1fr));gap:12px;margin-top:14px}.chart{background:var(--card);border:1px solid var(--line);border-radius:8px;padding:14px}.chart-title{font-size:13px;font-weight:700;color:#1f2937;margin-bottom:8px}.hrow{display:grid;grid-template-columns:122px 1fr 86px;gap:8px;align-items:center;margin:6px 0}.lbl{font-size:12px;color:#374151;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.track{height:8px;background:#ffe0d1;border-radius:99px;overflow:hidden}.track>i{display:block;height:100%;background:var(--accent)}.val{font-size:12px;color:#374151;text-align:right}.table-wrap{overflow:auto;margin-top:12px;max-height:650px;border:1px solid var(--line);border-radius:8px}table{border-collapse:collapse;min-width:1600px;width:100%}th,td{padding:9px 10px;border-bottom:1px solid var(--line);font-size:13px;vertical-align:top}th{position:sticky;top:0;background:#111827;color:#fff;font-weight:700;text-align:left}tr:hover td{background:var(--soft)}.num{text-align:right;white-space:nowrap}.muted{color:var(--muted)}.bar{height:10px;background:#ffe0d1;border-radius:99px;overflow:hidden}.bar>i{display:block;height:100%;background:var(--accent)}small{color:var(--muted)}.pill{display:inline-block;padding:3px 8px;border-radius:999px;background:#eef2ff;color:#3730a3;font-size:12px;white-space:nowrap}.pill.green{background:#ecfdf5;color:#047857}.pill.warn{background:#fff7ed;color:#c2410c}.pill.bad{background:#fef2f2;color:#b91c1c}.pill.gray{background:#f3f4f6;color:#374151}.btn{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:7px 10px;border:1px solid var(--line);border-radius:8px;background:#fff;color:#111827;text-decoration:none;font-size:13px;white-space:nowrap}.btn.dark{background:#111827;color:#fff;border-color:#111827}.client-grid{display:grid;grid-template-columns:minmax(240px,1fr) 90px 125px 135px 145px 180px 180px 100px;gap:10px;align-items:center}.client-row{border:1px solid var(--line);border-radius:8px;background:#fff;margin:8px 0;padding:10px 12px}.client-row:hover{background:#fffaf7}.client-name{font-weight:700}.client-actions{display:flex;justify-content:flex-end}.insight-list{display:grid;gap:10px}.insight{border:1px solid var(--line);border-radius:8px;background:#fff;padding:12px}.insight h3{font-size:15px;margin:0 0 6px}.insight p{font-size:13px;line-height:1.45;margin:0;color:#374151}.split{display:grid;grid-template-columns:1.1fr .9fr;gap:12px;margin-top:14px}.pair-legend{display:flex;gap:10px;align-items:center;font-size:12px;color:#4b5563;margin:6px 0 8px}.dot{display:inline-block;width:8px;height:8px;border-radius:999px}.dot.def{background:#f25a1f}.dot.stk{background:#2563eb}.prow{display:grid;grid-template-columns:112px 1fr 88px;gap:8px;align-items:center;margin:6px 0}.pair-bars{display:grid;grid-template-rows:8px 8px;gap:4px}.pair{height:8px;border-radius:99px;overflow:hidden;background:#e5e7eb}.pair>i{display:block;height:100%}.pair.def>i{background:#f25a1f}.pair.stk>i{background:#2563eb}.pair-val{font-size:11px;color:#374151;text-align:right}.backline{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.empty{padding:18px;border:1px dashed var(--line);border-radius:8px;background:#fff;color:var(--muted)}
.heatmap-wrap{overflow-x:auto;padding-bottom:4px}
.heatmap{display:grid;gap:6px;width:100%}
.heatmap-row{display:grid;grid-template-columns:var(--heat-label-width, 240px) repeat(var(--heat-cols), minmax(var(--heat-cell-width, 84px), 1fr));gap:6px;align-items:stretch;width:100%}
.heatmap-label{display:flex;align-items:center;min-height:44px;padding:4px 2px;font-size:12px;color:#374151;white-space:normal;overflow:hidden;text-overflow:clip;line-height:1.2;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.heatmap-label-head{font-weight:700}
.heatmap-cell{display:flex;align-items:center;justify-content:center;min-height:44px;padding:8px 6px;border-radius:10px;border:1px solid rgba(229,231,235,.9);font-size:11px;font-weight:700;line-height:1.15;text-align:center}
.heatmap-head-cell{font-size:10px}
.heatmap-extra-head{background:#fff7f2}
.heatmap-extra-cell{background:#fff}
.heatmap-cell.peak{
  border-color:rgba(242,90,31,.52);
  box-shadow:inset 0 0 0 1px rgba(242,90,31,.14), 0 2px 8px rgba(242,90,31,.12);
  font-weight:800;
}
.filters.proexpert-filters{grid-template-columns:2fr 150px 1.7fr 110px 1.5fr 100px}
.proexpert-table{min-width:1500px}
.proexpert-note{margin-top:12px;margin-bottom:0}
@media(max-width:1200px){.charts,.split{grid-template-columns:1fr}.client-grid{grid-template-columns:1fr 90px 120px 130px 130px 160px 160px 100px}}
@media(max-width:900px){.cards{grid-template-columns:repeat(2,minmax(140px,1fr))}.filters,.filters.two,.filters.three,.filters.four,.filters.proexpert-filters{grid-template-columns:1fr}.hrow,.prow{grid-template-columns:84px 1fr 62px}.top{align-items:start}.h1{font-size:23px}.client-grid{grid-template-columns:1fr;gap:6px}.client-actions{justify-content:flex-start}table{min-width:980px}.scope-bar,.period-bar,.role-bar{flex-direction:column;align-items:stretch}.scope-bar select,.period-bar select,.period-bar input,.role-bar select{max-width:none;width:100%}}

body{
  background:
    linear-gradient(90deg, rgba(17,24,39,.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(17,24,39,.035) 1px, transparent 1px),
    linear-gradient(180deg, #fbfcfd 0%, #f4f6f8 42%, #eef2f6 100%);
  background-size:28px 28px,28px 28px,auto;
}
body::before, body::after{
  content:"";
  position:fixed;
  inset:auto;
  width:420px;
  height:420px;
  border-radius:50%;
  filter:blur(28px);
  pointer-events:none;
  display:none;
  opacity:0;
  z-index:-1;
}
body::before{left:-140px;top:120px;background:radial-gradient(circle, rgba(242,90,31,.75), rgba(242,90,31,0) 68%)}
body::after{right:-160px;top:40px;background:radial-gradient(circle, rgba(37,99,235,.65), rgba(37,99,235,0) 68%)}
.wrap{max-width:1540px}
.top{
  position:relative;
  padding:22px 24px;
  border-radius:16px;
  color:#fff;
  background:linear-gradient(135deg, #111318 0%, #20232b 58%, #f25a1f 150%);
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 30px 90px rgba(15,23,42,.18);
  overflow:hidden;
}
.top::after{
  content:"";
  position:absolute;
  inset:-40% -10% auto auto;
  width:360px;
  height:360px;
  background:radial-gradient(circle, rgba(255,255,255,.22), rgba(255,255,255,0) 70%);
  transform:rotate(-18deg);
}
.top .h1{color:#fff;font-size:32px;letter-spacing:-.02em}
.top .sub{color:rgba(255,255,255,.72)}
.top > div:last-child{color:rgba(255,255,255,.82)}
.brandline{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:10px;
  color:rgba(255,255,255,.78);
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.brand-mark{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  color:#fff;
  background:rgba(242,90,31,.92);
  box-shadow:0 10px 24px rgba(242,90,31,.22);
}
.brand-mark::before{
  content:"";
  width:7px;
  height:7px;
  border-radius:999px;
  background:#fff;
  box-shadow:0 0 0 4px rgba(255,255,255,.18);
}
.brand-context{color:rgba(255,255,255,.68)}
.nav{margin-top:14px}
.nav a{
  border-radius:999px;
  border:1px solid rgba(15,23,42,.08);
  background:rgba(255,255,255,.86);
  box-shadow:0 8px 20px rgba(15,23,42,.06);
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.nav a:hover{transform:translateY(-1px);box-shadow:0 12px 26px rgba(15,23,42,.10)}
.nav a.active{background:linear-gradient(135deg,#111827 0%,#fb7a1c 160%);color:#fff;border-color:transparent;box-shadow:0 16px 28px rgba(242,90,31,.22)}
.card,.panel,.chart,.client-row,.insight{
  border-radius:12px;
  box-shadow:0 10px 24px rgba(15,23,42,.07);
}
.card{
  position:relative;
  overflow:hidden;
  background:linear-gradient(180deg,#fff 0%, #fffdfb 100%);
  border:1px solid rgba(229,231,235,.9);
}
.card::before{
  content:"";
  position:absolute;
  top:0;left:0;right:0;height:4px;
  background:linear-gradient(90deg,#f25a1f 0%, #ff9d4d 80%);
}
.card .k{font-size:12px;text-transform:uppercase;letter-spacing:.05em;color:#6b7280}
.card .v{
  font-size:29px;
  line-height:1.05;
  margin-top:8px;
  background:linear-gradient(180deg,#111827,#0f172a);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.panel{
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(6px);
}
.formula-note{
  border-left:4px solid var(--accent);
  border-top:none;
  background:linear-gradient(180deg,#fff8f1 0%, #fff 100%);
  color:#7c2d12;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.75);
}
.chart{
  position:relative;
  overflow:hidden;
  background:linear-gradient(180deg,#ffffff 0%, #fffaf6 100%);
  border:1px solid rgba(229,231,235,.95);
  border-top:3px solid rgba(242,90,31,.85);
}
.chart::after{
  content:none;
  position:absolute;
  inset:auto -20px -20px auto;
  width:120px;
  height:120px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(242,90,31,.08), rgba(242,90,31,0) 68%);
  pointer-events:none;
}
.chart svg{max-height:360px}
#chartTrend svg{height:320px}
.chart-title{
  font-size:14px;
  font-weight:800;
  letter-spacing:.01em;
  color:#111827;
  margin-bottom:10px;
}
.track{height:12px;background:linear-gradient(90deg, rgba(242,90,31,.10), rgba(37,99,235,.08));border-radius:999px}
.track>i{background:linear-gradient(90deg,#f25a1f 0%, #ff8b3d 42%, #ffb347 100%);box-shadow:0 0 0 1px rgba(255,255,255,.3) inset}
.bar{height:12px;background:linear-gradient(90deg, rgba(242,90,31,.10), rgba(242,90,31,.03));border-radius:999px}
.bar>i{background:linear-gradient(90deg,#f25a1f 0%, #ff8b3d 42%, #ffb347 100%)}
.client-row{
  background:linear-gradient(180deg,#fff 0%, #fffdfb 100%);
  border:1px solid rgba(229,231,235,.95);
}
.client-grid{grid-template-columns:minmax(240px,1fr) 90px 125px 135px 145px 180px 180px 100px}
.client-name{font-size:15px}
.client-row:hover{background:#fff8f0}
.pill{box-shadow:inset 0 1px 0 rgba(255,255,255,.7)}
.btn{
  border-radius:999px;
  box-shadow:0 8px 18px rgba(15,23,42,.08);
}
.btn.dark{background:linear-gradient(135deg,#111827 0%, #1f2937 100%)}
.heatmap-cell{
  box-shadow:inset 0 1px 0 rgba(255,255,255,.45), 0 1px 2px rgba(15,23,42,.04);
}
.heatmap-label{font-weight:600}
.chart.wide{grid-column:1 / -1}
@media(max-width:1200px){.chart.wide{grid-column:auto}}

.scope-bar{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:14px;
  padding:12px 14px;
  border-radius:16px;
  background:rgba(255,255,255,.82);
  border:1px solid rgba(229,231,235,.95);
  box-shadow:0 10px 28px rgba(15,23,42,.06);
}
.scope-bar .scope-k{
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.05em;
  color:#6b7280;
  white-space:nowrap;
}
.scope-bar select{
  max-width:220px;
  border-radius:999px;
  background:#fff;
}
.scope-bar .scope-hint{
  color:#6b7280;
  font-size:12px;
}
.role-bar{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:14px;
  padding:12px 14px;
  border-radius:16px;
  background:rgba(17,24,39,.05);
  border:1px solid rgba(17,24,39,.08);
  box-shadow:0 10px 28px rgba(15,23,42,.04);
}
.role-bar .scope-k{
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.05em;
  color:#6b7280;
  white-space:nowrap;
}
.role-bar select{
  max-width:220px;
  border-radius:999px;
  background:#fff;
}
.role-bar .scope-hint{
  color:#6b7280;
  font-size:12px;
}
.period-bar{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:10px;
  padding:10px 14px;
  border-radius:16px;
  background:rgba(255,255,255,.72);
  border:1px solid rgba(229,231,235,.9);
}
.period-bar .scope-k{
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.05em;
  color:#6b7280;
  white-space:nowrap;
}
.period-bar select,
.period-bar input{
  max-width:220px;
  border-radius:999px;
  background:#fff;
}
.period-bar .scope-hint{
  color:#6b7280;
  font-size:12px;
}
.scope-chip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin:4px 0 10px;
  padding:6px 10px;
  border-radius:999px;
  background:#fff7ed;
  border:1px solid #fed7aa;
  color:#7c2d12;
  font-size:12px;
  font-weight:700;
}
.multi-legend{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(170px,1fr));
  gap:6px;
  margin-bottom:10px;
}
.multi-legend-item{
  display:flex;
  align-items:center;
  gap:8px;
  width:100%;
  font-size:11px;
  color:#374151;
  padding:6px 10px;
  border:1px solid rgba(229,231,235,.95);
  border-radius:999px;
  background:#fff;
  text-align:left;
  cursor:pointer;
  box-shadow:0 1px 2px rgba(15,23,42,.04);
}
.multi-legend-item.active{
  border-color:rgba(242,90,31,.55);
  background:#fff7f2;
  box-shadow:0 4px 10px rgba(242,90,31,.12);
}
.multi-legend-item i{
  display:inline-block;
  width:10px;
  height:10px;
  border-radius:999px;
  flex:0 0 10px;
}
.multi-legend-item span{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.status-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(220px,1fr));
  gap:12px;
  margin-top:12px;
}
.status-panel{
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
  padding:12px;
  display:grid;
  gap:10px;
}
.status-head{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:flex-start;
}
.status-head h3{
  margin:0;
  font-size:15px;
  line-height:1.25;
}
.status-count{
  font-size:12px;
  color:var(--muted);
  text-align:right;
  white-space:nowrap;
}
.status-list{
  display:grid;
  gap:8px;
}
.status-item{
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
  padding:10px 10px 9px;
  display:grid;
  gap:6px;
}
.status-item:hover{
  background:#fffaf7;
}
.status-item .name{
  font-weight:700;
  font-size:13px;
  line-height:1.25;
}
.status-item .meta{
  display:flex;
  justify-content:space-between;
  gap:8px;
  align-items:center;
  font-size:12px;
  color:#374151;
  flex-wrap:wrap;
}
.status-item .meta .pill{
  padding:2px 7px;
}
.comparison-quick{
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:10px;
  flex-wrap:wrap;
}
.comparison-quick .btn{
  min-height:34px;
  padding:7px 13px;
}
.comparison-quick .btn:not(.dark){
  background:#fff;
  color:#374151;
}
.comparison-quick .btn.dark{
  background:linear-gradient(135deg,#111827 0%, #f25a1f 180%);
  color:#fff;
  border-color:transparent;
}
.comparison-period-fields{
  grid-template-columns:1px minmax(180px,260px) minmax(220px,1fr) minmax(220px,1fr);
  margin-top:10px;
}
.comparison-period-fields select:first-child{
  width:1px;
  min-width:1px;
  padding:0;
  border:0;
  opacity:0;
  pointer-events:none;
}
.comparison-secondary{
  margin-top:10px;
  opacity:.92;
}
.recommended-panel{
  border-top:3px solid rgba(15,118,110,.75);
}
.recommended-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  margin-bottom:12px;
}
.recommended-head .sub{
  color:#475467;
}
.recommended-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(220px,1fr));
  gap:12px;
}
.recommended-card{
  border:1px solid rgba(229,231,235,.95);
  border-radius:8px;
  background:#fff;
  padding:12px;
}
.recommended-card-head{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:flex-start;
  margin-bottom:10px;
}
.recommended-card h3{
  margin:0 0 4px;
  font-size:15px;
}
.recommended-card p{
  margin:0;
  color:#667085;
  font-size:12px;
  line-height:1.35;
}
.recommended-list{
  display:grid;
  gap:7px;
}
.recommended-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
  padding:7px 0;
  border-top:1px solid #eef2f6;
}
.recommended-name{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:12px;
  font-weight:700;
  color:#1f2937;
}
.recommended-value{
  font-size:12px;
  font-weight:800;
  white-space:nowrap;
}

@media(max-width:900px){
  .status-grid{grid-template-columns:1fr}
  .recommended-grid{grid-template-columns:1fr}
  .recommended-head{display:grid}
  .comparison-quick .btn{width:100%}
}
