/* ===== Comptrove v16 layer: loads after app.css on every signed-in page =====
   Same palette as the home and sign-in pages: navy #0E1B3D, indigo #4B47D6 / #6466E9, lavender page tint, orange only for the one primary action. */
:root{--navy:#0E1B3D;--ink2:#141733;--lav-bg:#E6E9F8;--lav-bg2:#EEF0FB;--ind:#4B47D6;--teal:#0F9D8A;--grape:#A355F7;--stk:0px}
html,body{background:linear-gradient(180deg,#E2E6F7 0,#EAECFA 420px,#E6E9F6 100%) fixed;background-color:#E6E9F6}
.main::before{opacity:.085}

/* brand lockup: same mark and wordmark as the home page */
.brand{display:flex;align-items:center;gap:11px;padding:6px 8px 16px}
.brand .lgm{width:38px;height:38px;flex:none;display:block;filter:drop-shadow(0 4px 12px rgba(91,84,240,.45))}
.brand .wmw{display:flex;flex-direction:column;line-height:1;min-width:0}
.brand .wm{font:800 22px/1 "Plus Jakarta Sans",Inter,sans-serif;letter-spacing:-.035em;color:#fff}
.brand .wm em{font-style:normal;background:linear-gradient(92deg,#B7B4FF,#FFB98A);-webkit-background-clip:text;background-clip:text;color:transparent;padding-right:1px}
.brand .by{display:block;font:700 9.5px/1 Inter,sans-serif;letter-spacing:.16em;text-transform:uppercase;color:#A9ADDA;margin-top:5px}
.brand .by b{color:#fff;font-weight:800;font-size:inherit;letter-spacing:inherit;line-height:inherit}

/* surfaces: lavender header strips, accent rails on KPI cards, no flat white slabs */
.top{background:linear-gradient(90deg,#fff 0,#F3F4FF 100%)}
.card{border-color:#D3D8EC}
.card>.hd{background:linear-gradient(180deg,#F8F9FF,#F0F2FC);border-bottom-color:#DDE1F2}
.kpi{border-top:3px solid var(--ac,#6466E9);border-color:#D3D8EC;border-top-color:var(--ac,#6466E9)}
.kpis .kpi:nth-child(4n+1),.kpi:nth-child(4n+1){--ac:#6466E9}
.kpis .kpi:nth-child(4n+2),.kpi:nth-child(4n+2){--ac:#0F9D8A}
.kpis .kpi:nth-child(4n+3),.kpi:nth-child(4n+3){--ac:#4338CA}
.kpis .kpi:nth-child(4n+4),.kpi:nth-child(4n+4){--ac:#A355F7}
.btn.p{background:linear-gradient(135deg,#6466E9,#4F51D6);border-color:#4F51D6}
.segs .seg.on,.seg.on{background:var(--navy);border-color:var(--navy);color:#fff}
th{background:#F4F5FD}

/* ---------- Comparison matrix: every column visible on default ---------- */
.mxscroller{overflow-x:visible;border-radius:12px;border-color:#D3D8EC}
table.mx{table-layout:fixed;min-width:0;width:100%}
table.mx th,table.mx td{padding:8px 8px;font-size:13px;line-height:1.3;overflow-wrap:break-word;vertical-align:middle}
table.mx thead th{top:var(--stk);min-width:0;padding:8px 6px;font-size:11px;text-align:center;vertical-align:bottom;background:#fff}
table.mx thead th.mxr{width:152px}
table.mx thead th.mxsubj{width:132px;background:#EEF0FF}
table.mx thead th.mxcj{width:112px;background:#E9ECF8}
table.mx thead th.mxcomp{max-width:none;cursor:pointer}
table.mx thead th.mxcomp:hover{background:#F3F4FF}
table.mx thead th.mxcomp:focus-visible{outline:2px solid var(--violet);outline-offset:-2px}
table.mx thead th .mxsub{font-size:10.5px;font-weight:600;text-transform:none;letter-spacing:0;color:#59607F;white-space:normal;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical}
table.mx thead th.mxcomp b{white-space:normal;max-width:none;font-size:12px;line-height:1.25;letter-spacing:0;text-transform:none;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
table.mx thead th.mxsubj,table.mx thead th.mxcj{text-align:center}
table.mx .mxr{min-width:0;max-width:none;text-align:left;background:#fff;position:sticky;left:0;z-index:1}
table.mx th.mxr b{display:block;font-size:12.5px;font-weight:800;color:#0E1B3D;letter-spacing:0;text-transform:none;line-height:1.25}
table.mx th.mxr span{display:block;font-size:10.5px;font-weight:600;color:#59607F;margin-top:1px;line-height:1.3;text-transform:none;letter-spacing:0}
table.mx td:not(.sj):not(.cj){text-align:center}
table.mx td.sj,table.mx td.cj{text-align:center}
table.mx td.sj{background:#EEF0FF}
table.mx td.cj{background:#E9ECF8}
table.mx .mxn{display:block;font-size:10.5px;font-weight:600;color:#59607F;margin-top:1px}
table.mx tr.grp td{text-align:left!important;background:#0E1B3D;color:#fff;padding:7px 12px;position:static}
table.mx tbody tr:hover td{background:#F5F6FF}
table.mx tbody tr:hover td.sj{background:#E6E9FF}
table.mx tbody tr:hover td.cj{background:#E1E5F6}
.mg.aer.mx,.mg.mx{display:block;width:100%;max-width:120px;height:58px;margin:0 auto 6px;border-radius:8px}
table.mx .fr{font-size:10.5px;padding:2px 6px;white-space:normal;justify-content:center;flex-wrap:wrap;gap:3px}
table.mx .wh{font-size:11.5px}
table.mx a.lk{color:var(--violet-d);font-weight:800}

/* ---------- Rent comps table: every column visible on default ---------- */
.ctfit{overflow-x:visible;margin:0;background:#fff;border:1px solid #D3D8EC;border-radius:12px;box-shadow:var(--shadow)}
.ct2{table-layout:fixed;min-width:0;width:100%}
.ct2 th,.ct2 td{padding:9px 6px;font-size:12.5px;line-height:1.25;vertical-align:middle}
.ct2 thead th{top:var(--stk);white-space:normal;font-size:10.5px;line-height:1.2;vertical-align:bottom;text-align:center;padding:9px 4px;background:#F4F5FD}
.ct2 thead th.l{text-align:left;padding-left:14px}
.ct2 td.r{text-align:center}
.ct2 td.l{padding-left:14px}
.ct2 th.stickycol,.ct2 td.stickycol{position:static;min-width:0;width:25%;background:transparent}
.ct2 thead th.stickycol{background:#F4F5FD}
.ct2 tr.subj td{background:#EEF0FF}
.ct2 tr.avg td{background:#E9ECF8}
.ct2 .exp{display:none}
.ct2 .prop b{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.2}
.ct2 tbody tr.crow{cursor:pointer;transition:background .12s}
.ct2 tbody tr.crow:hover td{background:#EEF0FF}
.ct2 tbody tr.crow:focus-visible{outline:2px solid var(--violet);outline-offset:-2px}
.ct2 tbody tr.crow td:last-child{position:relative}
.ct2 .fr{font-size:10.5px;padding:2px 5px;white-space:normal;justify-content:center;flex-wrap:wrap;gap:2px}
.ct2 .evbar{display:inline-block;width:34px;height:6px;background:#E1E4F3;border-radius:3px;margin-right:5px;vertical-align:middle}
.ct2 .evbar i{display:block;height:100%;background:var(--violet);border-radius:3px}
.ct2 .wh{font-size:11.5px}
.metsel{margin-bottom:12px}
.metsel button{cursor:pointer}
.hint-row{display:flex;gap:8px;align-items:center;color:#59607F;font-size:12px;font-weight:700;margin:2px 2px 10px}
.hint-row i{width:8px;height:8px;border-radius:50%;background:var(--violet);display:inline-block}

/* clickable rows everywhere */
[data-cid]{cursor:pointer}
tr[data-cid]:hover td{background:#EEF0FF}
[data-cid]:focus-visible{outline:2px solid var(--violet);outline-offset:-2px}
.go{color:var(--violet-d);font-weight:800;font-size:12px;white-space:nowrap}

/* ---------- Comp detail drawer ---------- */
#ctdr-scrim{position:fixed;inset:0;background:rgba(14,27,61,.45);z-index:80;opacity:0;pointer-events:none;transition:opacity .2s}
#ctdr{position:fixed;top:0;right:0;bottom:0;width:460px;max-width:100%;background:#fff;z-index:81;transform:translateX(102%);transition:transform .24s cubic-bezier(.2,.7,.2,1);box-shadow:-18px 0 44px -16px rgba(14,27,61,.45);display:flex;flex-direction:column;overflow:hidden}
body.dr-open #ctdr{transform:none}body.dr-open #ctdr-scrim{opacity:1;pointer-events:auto}
#ctdr .dh{display:flex;gap:12px;align-items:flex-start;padding:16px 18px 12px;background:linear-gradient(180deg,#0E1B3D,#1B2A5E);color:#fff}
#ctdr .dh h2{margin:0;font:800 17px/1.2 "Plus Jakarta Sans",Inter,sans-serif;letter-spacing:-.2px}
#ctdr .dh small{display:block;color:#C7CDE8;font-weight:600;font-size:12px;margin-top:3px}
#ctdr .dh .x{margin-left:auto;flex:none;width:34px;height:34px;border-radius:8px;border:1px solid rgba(255,255,255,.25);background:rgba(255,255,255,.08);color:#fff;font-size:20px;line-height:1;cursor:pointer}
#ctdr .dh .x:hover{background:rgba(255,255,255,.18)}
#ctdr .db{overflow-y:auto;padding:14px 18px 24px;flex:1}
#ctdr .aer{display:block;width:100%;height:150px;border-radius:10px;margin-bottom:12px}
#ctdr .dk{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:12px}
#ctdr .dk div{border:1px solid #DDE1F2;border-radius:10px;padding:8px 10px;background:#F8F9FF}
#ctdr .dk span{display:block;font-size:10.5px;letter-spacing:.06em;text-transform:uppercase;color:#59607F;font-weight:800}
#ctdr .dk b{display:block;font:800 18px/1.2 "Plus Jakarta Sans",Inter,sans-serif;margin-top:2px;color:#141733}
#ctdr .dk small{display:block;font-size:11px;color:#59607F;font-weight:600}
#ctdr h3{font:800 13px "Plus Jakarta Sans",Inter,sans-serif;margin:14px 0 6px;color:#141733}
#ctdr table{font-size:12.5px;width:100%}
#ctdr table{table-layout:auto}
#ctdr th{padding:6px 5px;font-size:10px;letter-spacing:.03em;white-space:normal}
#ctdr td{padding:7px 5px;font-size:12px}
#ctdr td.r,#ctdr th.r{text-align:right}
#ctdr .dl{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
#ctdr .dl a{display:inline-flex;align-items:center;height:34px;padding:0 12px;border-radius:8px;border:1px solid #CBD0E0;font-weight:800;font-size:12.5px;color:#141733;background:#fff}
#ctdr .dl a.p{background:var(--violet);border-color:var(--violet);color:#fff}
#ctdr .bar{height:8px;border-radius:4px;background:#E1E4F3;position:relative;margin:6px 0 2px}
#ctdr .bar i{position:absolute;top:-3px;width:3px;height:14px;border-radius:2px;background:#0E1B3D}
#ctdr .bar b{position:absolute;top:-3px;width:14px;height:14px;border-radius:50%;background:var(--violet);border:2px solid #fff;box-shadow:0 0 0 1px #6466E9;margin-left:-7px}
#ctdr .note{font-size:11.5px;color:#59607F;font-weight:600;line-height:1.4;margin-top:8px}

/* ---------- Visual modules (charts, gauges, insight lists) ---------- */
.vz{display:grid;gap:14px;margin:14px 0}
.vz.c2{grid-template-columns:repeat(2,minmax(0,1fr))}
.vz.c3{grid-template-columns:repeat(3,minmax(0,1fr))}
.vz .card{min-width:0}
.vz .bd{padding:14px 16px}
.vz h3 .tag,.tagm{display:inline-block;font-size:10.5px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;padding:2px 7px;border-radius:5px;margin-left:8px;vertical-align:2px}
.tagm.o{background:#E4F4EC;color:#14653B}.tagm.m{background:#EAE9FF;color:#4338CA}.tagm.a{background:#F1F2F7;color:#3A3F55}
.rng{margin:10px 0 14px}
.rng .rh{display:flex;justify-content:space-between;gap:8px;font-size:12px;font-weight:800;color:#141733;margin-bottom:5px}
.rng .rh span{color:#59607F;font-weight:700}
.rng .trk{position:relative;height:10px;border-radius:5px;background:linear-gradient(90deg,#DDE1F5,#C9CEF3)}
.rng .trk .rg{position:absolute;top:0;bottom:0;border-radius:5px;background:linear-gradient(90deg,#B9BEF5,#8F94EE)}
.rng .trk .pt{position:absolute;top:-4px;width:18px;height:18px;border-radius:50%;margin-left:-9px;background:#fff;border:3px solid var(--violet);box-shadow:0 2px 6px rgba(14,27,61,.25)}
.rng .trk .pt.s{border-color:#E67500;background:#FFF4E6}
.rng .trk .av{position:absolute;top:-3px;width:3px;height:16px;background:#0E1B3D;border-radius:2px}
.rng .rl{display:flex;justify-content:space-between;font-size:11px;color:#59607F;font-weight:700;margin-top:6px}
.ins2{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.ins2 li{display:grid;grid-template-columns:34px 1fr auto;gap:12px;align-items:start;padding:11px 12px;border:1px solid #DDE1F2;border-radius:10px;background:#FAFAFF}
.ins2 li .ib{width:34px;height:34px;border-radius:9px;display:grid;place-items:center;font:800 15px "Plus Jakarta Sans",Inter,sans-serif;background:#E7E8FF;color:#4338CA}
.ins2 li.up .ib{background:#FDECE8;color:#B5301F}.ins2 li.dn .ib{background:#E4F4EC;color:#14653B}.ins2 li.wn .ib{background:#FFF4D6;color:#8A5E00}
.ins2 li b{display:block;font-size:13.5px;line-height:1.3;color:#141733}
.ins2 li small{display:block;font-size:12px;color:#59607F;font-weight:600;line-height:1.4;margin-top:2px}
.ins2 li a.act{align-self:center;white-space:nowrap;font-weight:800;font-size:12px;color:#4F51D6;border:1px solid #CDD0F7;border-radius:8px;padding:6px 10px;background:#fff}
.ins2 li a.act:hover{background:#EEF0FF}
.mini{display:grid;gap:8px}
.mini .mr{display:grid;grid-template-columns:112px 1fr 76px;gap:10px;align-items:center;font-size:12.5px;font-weight:700}
.mini .mr .bt{height:12px;border-radius:6px;background:#E3E6F5;position:relative;overflow:hidden}
.mini .mr .bt i{position:absolute;left:0;top:0;bottom:0;border-radius:6px;background:linear-gradient(90deg,#8F94EE,#6466E9)}
.mini .mr .bt i.c{background:linear-gradient(90deg,#9AA3C9,#6F7BA8)}
.mini .mr .bt u{position:absolute;top:0;bottom:0;width:2px;background:#0E1B3D}
.mini .mr em{font-style:normal;text-align:right;color:#141733;font-weight:800}
.mini .mr span.lab{color:#3C3F4A}
.donut{display:flex;gap:16px;align-items:center;flex-wrap:wrap}
.donut svg{flex:none}
.donut ul{list-style:none;margin:0;padding:0;display:grid;gap:6px;font-size:12.5px;font-weight:700}
.donut li{display:flex;align-items:center;gap:8px}
.donut li i{width:10px;height:10px;border-radius:3px;display:inline-block}
.donut li b{margin-left:auto;padding-left:14px;color:#141733}
.spark{display:block;width:100%;height:auto}
.vzn{font-size:11.5px;color:#59607F;font-weight:600;line-height:1.45;margin-top:8px}
.math{display:grid;gap:6px;font-size:13px}
.math .mrw{display:flex;justify-content:space-between;gap:10px;padding:6px 0;border-bottom:1px dashed #D3D8EC}
.math .mrw:last-child{border-bottom:0}
.math .mrw span{color:#3C3F4A;font-weight:600}.math .mrw b{color:#141733;font-weight:800;text-align:right}
.math .mrw.tot{border-top:2px solid #0E1B3D;border-bottom:0;padding-top:9px;margin-top:2px}
.math .mrw.tot b{font-size:15px}

/* ---------- Responsive ---------- */
@media(max-width:1100px){
  .vz.c3{grid-template-columns:repeat(2,minmax(0,1fr))}
  table.mx thead th.mxr{width:118px}table.mx thead th.mxsubj{width:104px}table.mx thead th.mxcj{width:90px}
  table.mx th,table.mx td{padding:7px 5px;font-size:12px}
  .ct2 th,.ct2 td{padding:8px 4px;font-size:12px}
  .ct2 th.stickycol,.ct2 td.stickycol{width:22%}
}
@media(max-width:900px){
  .vz.c2,.vz.c3{grid-template-columns:minmax(0,1fr)}
  .mxscroller,.ctfit{overflow-x:auto;-webkit-overflow-scrolling:touch}
  table.mx{min-width:760px}
  .ct2{min-width:760px}
  .ct2 th.stickycol,.ct2 td.stickycol{position:sticky;left:0;background:#fff;z-index:1;box-shadow:2px 0 6px -4px rgba(14,27,61,.25)}
  .ct2 tr.subj td.stickycol{background:#EEF0FF}.ct2 tr.avg td.stickycol{background:#E9ECF8}
  table.mx .mxr{box-shadow:2px 0 6px -4px rgba(14,27,61,.25)}
}
@media(max-width:700px){
  /* phone: the comp table keeps its identifying and decision columns; the drawer holds the rest */
  .ct2{min-width:0}
  .ct2 th:nth-child(3),.ct2 td:nth-child(3),.ct2 th:nth-child(4),.ct2 td:nth-child(4),.ct2 th:nth-child(5),.ct2 td:nth-child(5),.ct2 th:nth-child(7),.ct2 td:nth-child(7),.ct2 th:nth-child(8),.ct2 td:nth-child(8),.ct2 th:nth-child(10),.ct2 td:nth-child(10){display:none}
  .ct2 th.stickycol,.ct2 td.stickycol{position:static;width:40%;box-shadow:none}
  .ct2 tr.pol td,.ct2 tr.det td{display:table-cell}
  .ct2 tr.pol td.l[colspan]{display:table-cell}
  .ctfit{overflow-x:visible}
  #ctdr{width:100%}
  #ctdr .dk{grid-template-columns:repeat(2,1fr)}
  .brand .wm{font-size:20px}
  .ins2 li{grid-template-columns:30px 1fr}.ins2 li a.act{grid-column:2;justify-self:start}
  .mini .mr{grid-template-columns:62px 1fr 64px}
}
@media(prefers-reduced-motion:reduce){#ctdr,#ctdr-scrim{transition:none}}
@media print{#ctdr,#ctdr-scrim{display:none}}

/* ---- specificity fixes: beat the generic .main table th rule ---- */
.main table.ct2 thead th,.main table.mx thead th{white-space:normal!important;text-align:center!important;text-transform:uppercase;letter-spacing:.03em!important;line-height:1.2!important}
.main table.ct2 thead th{padding:9px 4px!important;font-size:10.5px!important;background:#F4F5FD!important}
.main table.ct2 thead th.l,.main table.ct2 thead th.stickycol{text-align:left!important;padding-left:14px!important}
.main table.ct2 tbody td{padding:9px 5px!important;overflow-wrap:break-word}
.main table.ct2 tbody td.l,.main table.ct2 tbody td.stickycol{padding-left:14px!important;text-align:left}
.main table.mx thead th{padding:9px 6px!important;font-size:11px!important}
.main table.mx thead th.mxcomp b,.main table.mx thead th.mxsubj,.main table.mx thead th.mxcj{max-width:none!important}
.main table.mx thead th .mxsub,.main table.mx thead th div{white-space:normal!important}
.main table.mx thead th.mxsubj div:nth-of-type(1),.main table.mx thead th.mxcj{font-weight:800}
.main table.mx tbody td{padding:8px 7px!important;white-space:normal!important}
.main table.mx tbody th.mxr{padding:8px 9px!important;font-size:12.5px!important;letter-spacing:0!important;text-transform:none!important;color:#0E1B3D!important;background:#fff!important;white-space:normal!important}
.main table.mx tbody tr:hover th.mxr{background:#F5F6FF!important}
.ct2 .evbar{display:block;width:100%;max-width:44px;margin:0 auto 3px}
.ct2 td.r .amn{font-size:13px}
.fr.cs{flex-direction:column;gap:0;line-height:1.15;padding:3px 6px;align-items:center;min-width:48px}
.fr.cs em{font-style:normal;font-weight:700;font-size:10px;opacity:.85}

/* ---- v16 modules, part 2 ---- */
.dnc{color:#14653B;font-weight:800}.upc{color:#4338CA;font-weight:800}
.rng .rh .dnc,.rng .rh .upc{font-size:12px}
.chip{display:inline-flex;gap:6px;align-items:center;padding:4px 9px;border:1px solid #CDD0F7;border-radius:999px;background:#F3F4FF;font-size:12px;font-weight:700;color:#141733}
.chip b{color:#4338CA;font-weight:800}
.note-box{border:1px solid #F3D9A6;background:#FFF8E8;color:#6B4A00;border-radius:10px;padding:10px 12px;font-size:12.5px;font-weight:600;line-height:1.45;margin-bottom:10px}
table.sens{width:100%;border-collapse:separate;border-spacing:3px;table-layout:fixed}
table.sens th{background:transparent;font-size:11px;padding:6px 4px;text-align:center;text-transform:none;letter-spacing:0;color:#141733}
table.sens th small{display:block;font-weight:600;color:#59607F}
table.sens td{text-align:center;padding:9px 4px;border-radius:8px;border:0}
table.sens td b{display:block;font-size:14px;color:#141733}table.sens td small{display:block;font-size:10.5px;color:#3C3F4A;font-weight:600}
table.sens tbody th{text-align:left;padding-left:2px;font-size:11.5px;white-space:nowrap}
.mini .mr .bt{overflow:visible}
.mini .mr [data-cc]:hover,.mini .mr[data-cc]:hover{background:#EEF0FF;border-radius:8px}
.mini .mr[data-cc]{padding:3px 4px;margin:-3px -4px;cursor:pointer}
.mini .mr .bt i{overflow:hidden}
.t2 tr.avg td{background:#E9ECF8}
@media(max-width:1100px){table.sens th{font-size:10px}table.sens td b{font-size:12.5px}}
@media(max-width:700px){table.sens th small{display:none}table.sens tbody th{font-size:10px;white-space:normal}}
.ctl{display:flex;gap:16px;flex-wrap:wrap;align-items:center;margin:0 0 8px}
.ctl .segs{margin:0}
small.dl{display:block;font-size:10.5px;font-weight:700;color:#59607F;margin-top:1px}
.ct2 td small.blk{display:block;font-size:10.5px;font-weight:600;color:#59607F;text-transform:none;letter-spacing:0}
.ct2 tr.avg td{font-weight:700;border-top:0}
.ct2 tr.avg.med td{background:#E1E5F6}
.ct2 th.sorted{color:#4338CA}
.ct2 thead th{cursor:pointer}

table.sens{background:#fff}
#v16-ov .vz.c2:first-of-type .card:first-child .rng{margin:20px 0 26px}
.expbar{flex-wrap:wrap;gap:8px}
@media(max-width:700px){.expbar{justify-content:flex-start}.expbar .cap{flex:0 0 100%;margin:0 0 2px}}
@media(max-width:900px){.main table.ct2 thead th,.main table.mx thead th{top:0}}

/* header: subject text wraps inside its own column and never runs under the search box */
.top .sp{display:none}
.top .subj{flex:1 1 360px;min-width:0}
.top .subj>div{min-width:0;flex:1 1 auto}
.top .subj p,.top .subj .sub{overflow-wrap:anywhere}
.top .gsearch{flex:0 1 190px;min-width:150px}

/* matrix summary strip: one compact band instead of four tall cards */
.mxsum{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));background:#fff;border:1px solid #D3D8EC;border-radius:12px;box-shadow:var(--shadow);margin:0 0 12px;overflow:hidden}
.mxsum>div{padding:10px 16px;border-right:1px solid #E3E6F5;border-top:3px solid var(--ac,#6466E9);min-width:0}
.mxsum>div:last-child{border-right:0}
.mxsum>div:nth-child(1){--ac:#6466E9}.mxsum>div:nth-child(2){--ac:#0F9D8A}.mxsum>div:nth-child(3){--ac:#4338CA}.mxsum>div:nth-child(4){--ac:#A355F7}
.mxsum span{display:block;font:800 10.5px Inter,sans-serif;letter-spacing:.07em;text-transform:uppercase;color:#59607F}
.mxsum b{display:block;font:800 22px/1.2 "Plus Jakarta Sans",Inter,sans-serif;color:#141733;margin-top:2px}
.mxsum b.dnc{color:#14653B}.mxsum b.upc{color:#4338CA}
.mxsum small{display:block;font-size:11.5px;color:#59607F;font-weight:600;line-height:1.35;margin-top:1px}
@media(max-width:900px){.mxsum{grid-template-columns:repeat(2,minmax(0,1fr))}.mxsum>div:nth-child(2){border-right:0}.mxsum>div:nth-child(n+3){border-top:1px solid #E3E6F5}}
.top .frc{white-space:normal;display:inline-block;max-width:100%;line-height:1.35}

/* long KPI values wrap instead of clipping */
.kpi .v{overflow-wrap:anywhere}
.kpi .v.lg{font-size:clamp(18px,2.1vw,26px);line-height:1.15}

/* ===================== TEXT-FIT LAYER =====================
   Containers follow their text: content labels wrap instead of clipping, flex and grid children can shrink,
   long numerals are fitted by script, and wide tables get their own scroll box instead of bleeding out. */
.main :where(.card,.kpi,.hd,.ht,.bd,.mr,.rrc,.rr,.spr,.wr,.gwr,.cr,.sl,.sts,.ins2 li,.ins2 li>div,.mini,.mxsum>div,.opsitem,.chip,.pill,.stag,.tile,.greet,.nrow,.mrw,.rng,.rh,.donut li,.nar,.sprd>div,.hb,.hb>div,.hbk,.hbk>div,.vz>*,.g2>*,.g21>*,.g2c>*,.g3>*,.kpis>*){min-width:0}
.main :where(h1,h2,h3,h4,h5,p,li,b,strong,em,small,span,a,label,.sub,.d,.l,.v,.nar){overflow-wrap:break-word}
.main :where(.mr,.rrc,.rr,.spr,.wr,.sl,.ins2 li>div,.mini .lab,.mrw){overflow-wrap:anywhere}
.card .hd .sub,.card .hd h3,.rrc b,.rrc span,.rr b,.spr b,.spr>span,.wr b,.sl b,.sts small,.stag,.mrow .ml,.recent a,.recent a .rvn,.side .recent a,.ins.nxt li .lk,.top .subj .ttl,.top .subj p,.top .ttl,.top>div:first-child .ttl,.ct2 .prop b,table.mx th.mxcomp b,.mini .mr .lab,.t2.mk td,.t-recent td .pill,.chip{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;max-width:none}
.card .hd .sub{display:block;height:auto!important;line-height:1.35}
.card .hd .ht{flex-wrap:wrap;align-items:baseline;gap:2px 10px}
.ct2 .prop b,table.mx th.mxcomp b,table.mx thead th .mxsub{-webkit-line-clamp:unset!important;display:block!important}
.ct2 .prop b{line-height:1.2}
.mini .mr .lab{line-height:1.2}
.mini .mr{align-items:center}
.mrow .ml{line-height:1.2}
.spr,.rrc{height:auto}
/* numerals: script shrinks to fit; this is the no-script fallback */
.kpi .v,.mxsum b,.k9 b,.tst b,.big2 b,.hb-big{white-space:nowrap;overflow:visible;text-overflow:clip;max-width:100%;padding-bottom:2px}
.kpi .v.wrap,.mxsum b.wrap,.tst b.wrap{white-space:normal;overflow:visible}
/* wide tables scroll inside their own box */
.tscroll{overflow-x:auto;max-width:100%;-webkit-overflow-scrolling:touch}
.tscroll>table{min-width:100%}
/* map pin labels stay inside the map */
.pin .sub{max-width:150px}
.pin.sub span{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;max-width:150px;text-align:left}
@media(max-width:700px){
  .btn,.expbar button,.acts .btn{white-space:normal;height:auto;min-height:34px;line-height:1.2;padding-top:6px;padding-bottom:6px}
  .card .hd{flex-wrap:wrap;gap:6px}
}
.ct2 .prop{display:flex;align-items:center;gap:8px;min-width:0}.ct2 .prop>div{min-width:0}.ct2 .prop small{white-space:normal}
table.sens{min-width:0}
@media(max-width:700px){table.sens{min-width:470px}}
@media(max-width:900px){.ct2 th.stickycol,.ct2 td.stickycol{width:190px}.main table.ct2 thead th{white-space:normal}.ct2 thead th{font-size:10px!important}}
@media(max-width:900px){.ct2{min-width:920px}}
@media(max-width:700px){table.sens{min-width:580px}.ct2{min-width:0}}

/* ===================== PAGE HERO (home-page design language) ===================== */
.hero16{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr);gap:20px;align-items:stretch;margin:2px 0 18px;padding:22px 24px;border-radius:20px;background:linear-gradient(135deg,#FFFFFF 0%,#F1F2FF 58%,#E7E9FD 100%);border:1px solid #D3D8EC;box-shadow:0 14px 40px -22px rgba(14,27,61,.35);position:relative;overflow:hidden}
.hero16:before{content:"";position:absolute;right:-70px;top:-70px;width:260px;height:260px;border-radius:50%;background:radial-gradient(circle,rgba(100,102,233,.22),rgba(100,102,233,0) 70%);pointer-events:none}
.h16-l{min-width:0;display:flex;flex-direction:column;justify-content:center;position:relative}
.h16-ey{display:inline-flex;align-items:center;gap:8px;font:800 11.5px Inter,sans-serif;letter-spacing:.09em;text-transform:uppercase;color:#4338CA;margin:0 0 10px}
.h16-ey i{width:9px;height:9px;border-radius:3px;background:#E67500;display:inline-block}
.h16-h{margin:0 0 12px;font:800 clamp(30px,3.3vw,50px)/1.06 "Plus Jakarta Sans",Inter,sans-serif;letter-spacing:-.04em;color:#141733;overflow-wrap:break-word}
.h16-h em{font-style:normal;color:#4B47D6}
.h16-sub{margin:0;font-size:clamp(14px,1.1vw,16px);line-height:1.5;color:#3C4468;font-weight:600;max-width:62ch}
.h16-acts{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
.h16-btn{display:inline-flex;align-items:center;min-height:40px;padding:0 18px;border-radius:999px;border:1.5px solid #CBD1E6;background:#fff;color:#141733;font:800 13.5px Inter,sans-serif;white-space:normal;text-align:center}
.h16-btn:hover{border-color:#6466E9;color:#4338CA}
.h16-btn.p{background:linear-gradient(135deg,#6466E9,#4F51D6);border-color:#4F51D6;color:#fff}
.h16-btn.p:hover{background:#4338CA;color:#fff}
.h16-live{background:linear-gradient(160deg,#0E1B3D,#16275A);border-radius:16px;padding:18px 18px 14px;color:#fff;min-width:0;position:relative;box-shadow:0 18px 40px -18px rgba(14,27,61,.7)}
.h16-lh{display:flex;align-items:center;gap:8px;font:800 12px Inter,sans-serif;color:#C8CEEE;letter-spacing:.02em}
.h16-dot{width:8px;height:8px;border-radius:50%;background:#4ADE80;box-shadow:0 0 0 0 rgba(74,222,128,.7);animation:h16p 1.8s infinite}
@keyframes h16p{0%{box-shadow:0 0 0 0 rgba(74,222,128,.6)}70%{box-shadow:0 0 0 9px rgba(74,222,128,0)}100%{box-shadow:0 0 0 0 rgba(74,222,128,0)}}
.h16-tot{display:block;font:800 clamp(32px,3vw,46px)/1.05 "Plus Jakarta Sans",Inter,sans-serif;letter-spacing:-.03em;font-variant-numeric:tabular-nums;margin-top:8px;color:#fff;overflow-wrap:anywhere}
.h16-tl{display:block;font-size:12px;font-weight:700;color:#AEB6DC;margin-top:2px}
.h16-sts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px;margin:14px 0 4px;padding-top:12px;border-top:1px solid rgba(255,255,255,.12)}
.h16-st b{display:block;font:800 17px/1.15 "Plus Jakarta Sans",Inter,sans-serif;color:#fff}
.h16-st span{display:block;font-size:11px;font-weight:700;color:#AEB6DC;line-height:1.25}
.h16-fh{font:800 11px Inter,sans-serif;letter-spacing:.08em;text-transform:uppercase;color:#AEB6DC;margin:12px 0 6px}
.h16-feed{list-style:none;margin:0;padding:0;display:grid;gap:0}
.h16-feed li{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;gap:8px;align-items:baseline;padding:6px 0;border-top:1px solid rgba(255,255,255,.08);font-size:12.5px;transition:opacity .5s,transform .5s}
.h16-feed li.new{opacity:0;transform:translateY(-8px)}
.h16-feed b{color:#fff;font-weight:800}.h16-feed span{color:#D7DBF2;overflow-wrap:anywhere;font-weight:600}
.h16-feed u{text-decoration:none;color:#FDBA74;font-weight:800}.h16-feed i{font-style:normal;color:#8C95C4;font-size:11px}
@media(max-width:1180px){.hero16{grid-template-columns:minmax(0,1fr)}.h16-live{max-width:560px}}
@media(max-width:700px){.hero16{padding:18px 16px;border-radius:16px}.h16-h{font-size:clamp(26px,8vw,34px)}.h16-feed li{grid-template-columns:auto minmax(0,1fr) auto}.h16-feed li i{display:none}}
@media print{.hero16 .h16-live{display:none}}

/* ---- KPI tiles in the home-page style: bigger numerals, accent bar, one orange headline number ---- */
.main .kpis .kpi{padding-top:16px}
.main .kpi .v{font:800 clamp(30px,2.9vw,44px)/1.05 "Plus Jakarta Sans",Inter,sans-serif;letter-spacing:-.035em}
.main .kpis .kpi:nth-child(4n+1) .v:not(.up):not(.dn):not(.dnc):not(.upc){color:#E8590C}
.main .kpis .kpi:nth-child(4n+2) .v:not(.up):not(.dn):not(.dnc):not(.upc){color:#0F766E}
.main .kpis .kpi:nth-child(4n+3) .v:not(.up):not(.dn):not(.dnc):not(.upc){color:#4338CA}
.main .kpis .kpi:nth-child(4n+4) .v:not(.up):not(.dn):not(.dnc):not(.upc){color:#7C3AED}
.main .kpi .l{font-size:11.5px;letter-spacing:.08em}
.main .kpis .kpi:after{content:"";display:block;height:3px;border-radius:2px;margin-top:12px;background:var(--ac,#6466E9);opacity:.85;width:44px}
.main .card>.hd h3{font:800 clamp(18px,1.5vw,22px)/1.2 "Plus Jakarta Sans",Inter,sans-serif;letter-spacing:-.02em}
.yb{display:flex;align-items:flex-end;gap:3px;height:54px;margin-top:6px}.yb span{flex:1;background:linear-gradient(180deg,#8F94EE,#6466E9);border-radius:3px 3px 0 0;min-height:3px}
.ybl{display:flex;justify-content:space-between;font-size:11px;font-weight:700;color:#59607F;margin-top:4px}
.fz{margin:4px 0 16px}.fzl{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:6px}.fzl b{font-size:13.5px;color:#141733}.fzl span{font-size:11.5px;color:#59607F;font-weight:600}
.fzb{display:flex;height:18px;border-radius:9px;overflow:hidden;background:#E3E6F5}.fzb i{display:block;height:100%}
.fzk{display:flex;flex-wrap:wrap;gap:6px 16px;margin-top:8px;font-size:12px;font-weight:600;color:#3C3F4A}.fzk u{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:6px;vertical-align:-1px}.fzk b{color:#141733;margin-left:4px}

@media(max-width:700px){table.sens tbody th{min-width:118px;white-space:normal}}
@media(max-width:700px){table.sens thead th:first-child{width:124px}table.sens tbody th{width:124px;padding-right:6px}}
