/* Dashboard widgets (v6): tiles, stacked month bars with totals and an average line, meters and tables.
   Used by the dealership demo. Charts are plain HTML and CSS, so there is no chart library to download. */
.dash{--new:#E1306C;--used:#6250D6;--cpo:#EDA100;--good:#0B7A5C;--bad:#C4320A;padding:clamp(14px,1.800vw,22px) 0 clamp(40px,6vw,72px)}
.dash-wrap{--wrap:1320px}
.dash-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:end;gap:12px 28px;margin-bottom:14px}
.dash-head h1{font-size:clamp(1.5rem,2.800vw,2.050rem)}
.dash-head p{color:var(--ink2);margin-top:5px;font-size:.9375rem;max-width:64ch}
.dash-head .pill{margin-bottom:14px}
.dash-filters{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.seg{display:inline-flex;padding:4px;border-radius:999px;background:var(--paper);box-shadow:inset 0 0 0 1px var(--line2)}
.seg button{border:0;background:transparent;padding:8px 15px;border-radius:999px;font-weight:650;font-size:.875rem;color:var(--ink2);cursor:pointer;transition:background .2s ease,color .2s ease}
.seg button[aria-pressed=true]{background:var(--ink);color:#fff}
.d-select{appearance:none;-webkit-appearance:none;border:0;border-radius:999px;padding:11px 38px 11px 16px;font-weight:600;font-size:.875rem;color:var(--ink);cursor:pointer;
  background:var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D1D1F' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center/16px;
  box-shadow:inset 0 0 0 1px var(--line2)}
.d-chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px;min-height:0}
.d-chip{display:inline-flex;align-items:center;gap:8px;padding:7px 8px 7px 14px;border-radius:999px;background:var(--ink);color:#fff;font-size:.875rem;font-weight:600;border:0;cursor:pointer}
.d-chip i{font-style:normal;width:20px;height:20px;border-radius:50%;background:rgba(255,255,255,.2);display:grid;place-items:center;font-size:.75rem;line-height:1}

.d-card{background:var(--paper);border-radius:20px;padding:20px 22px 22px;box-shadow:inset 0 0 0 1px var(--line),0 1px 2px rgba(70,20,50,.04),0 14px 30px -24px rgba(131,58,180,.3);min-width:0}
.d-card-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px 16px;margin-bottom:16px}
.d-card h2{font-size:1.0625rem;letter-spacing:-.015em;font-weight:750;line-height:1.25}
.d-card h2 small{display:block;font-size:.8438rem;font-weight:450;color:var(--muted);letter-spacing:0;margin-top:3px}
.d-row{display:grid;gap:14px;margin-top:14px}
.d-row.r-2-1{grid-template-columns:minmax(0,2fr) minmax(0,1fr)}
.d-row.r-1-1{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
@media (max-width:1000px){.d-row.r-2-1,.d-row.r-1-1{grid-template-columns:1fr}}

/* KPI tiles */
.d-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}
.d-kpi{background:var(--paper);border-radius:20px;padding:18px 20px;box-shadow:inset 0 0 0 1px var(--line),0 14px 30px -24px rgba(131,58,180,.3);min-width:0}
.d-kpi{position:relative}
.d-kpi .k{font-size:.8438rem;font-weight:600;color:var(--ink2);padding-right:48px}
.d-kpi .v{font-size:clamp(1.6rem,2.5vw,2.125rem);font-weight:800;letter-spacing:-.035em;line-height:1.1;margin-top:6px;font-variant-numeric:tabular-nums}
.d-kpi .s{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;margin-top:8px;font-size:.8125rem;color:var(--muted)}
.d-delta{font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
.d-delta.up{color:var(--good)}.d-delta.down{color:var(--bad)}
@media (max-width:1000px){.d-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.d-kpi:nth-child(n+4){grid-column:span 1}}
@media (max-width:640px){.d-kpis{grid-template-columns:1fr 1fr;gap:10px}.d-kpi{padding:14px 15px;border-radius:16px}.d-kpi:last-child{grid-column:1/-1}}

/* What needs attention */
.d-attn{margin-top:14px;display:grid;grid-template-columns:auto repeat(3,minmax(0,1fr));gap:14px;align-items:stretch;padding:16px 18px}
.d-attn h2{align-self:center;max-width:9ch}
.d-note{display:block;text-align:left;border:0;background:#FFF7F1;border-radius:14px;padding:13px 15px;font-size:.9063rem;line-height:1.45;color:var(--ink2);cursor:pointer;
  box-shadow:inset 0 0 0 1px #F6E3D6;transition:box-shadow .2s ease,transform .2s ease}
.d-note:hover{box-shadow:inset 0 0 0 1.5px var(--g1);transform:translateY(-1px)}
.d-note b{color:var(--ink);font-weight:700}
.d-note span{display:block;font-size:.7813rem;font-weight:650;color:var(--g1);margin-bottom:4px}
@media (max-width:1000px){.d-attn{grid-template-columns:1fr}.d-attn h2{max-width:none}}

/* Stacked month bars with a total on top and a dashed average line */
.d-legend{display:flex;flex-wrap:wrap;gap:6px 16px;font-size:.8438rem;color:var(--ink2);font-weight:550}
.d-legend i{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:6px;vertical-align:-1px}
.d-legend .avg i{width:16px;height:0;border-top:2px dashed var(--ink);border-radius:0;vertical-align:3px}
.d-bars{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr);gap:0 10px}
.d-yaxis{position:relative;height:230px;width:max-content;min-width:26px}
.d-yaxis span{position:absolute;right:0;transform:translateY(50%);font-size:.75rem;color:var(--muted);font-variant-numeric:tabular-nums}
.d-plot{position:relative;height:230px}
.d-grid-line{position:absolute;left:0;right:0;height:1px;background:var(--line)}
.d-grid-line.base{background:var(--line2)}
.d-cols{position:absolute;inset:0;display:flex;align-items:flex-end;gap:clamp(3px,1.1%,12px);padding:0 4px}
.d-col{position:relative;flex:1;min-width:0;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;cursor:default}
.d-stack{width:100%;max-width:44px;display:flex;flex-direction:column-reverse;border-radius:8px 8px 3px 3px;filter:drop-shadow(0 6px 8px rgba(98,80,214,.16));overflow:hidden;min-height:2px;
  transform-origin:bottom;animation:growBar .6s cubic-bezier(.2,.8,.2,1) backwards}
.d-stack i{display:block;min-height:0;background:linear-gradient(180deg,color-mix(in srgb,var(--c) 74%,#fff),var(--c));box-shadow:inset 0 1px 0 rgba(255,255,255,.35)}
.d-stack i + i{box-shadow:0 1.5px 0 #fff}
.d-col:hover .d-stack{filter:brightness(1.07)}
.d-tot{position:relative;z-index:3;font-size:.7188rem;font-weight:700;color:var(--ink);margin-bottom:3px;padding:2px 4px;border-radius:5px;background:rgba(255,255,255,.92);font-variant-numeric:tabular-nums;white-space:nowrap;line-height:1}
@keyframes growBar{from{transform:scaleY(0)}}
.d-avg{position:absolute;left:0;right:0;border-top:2px dashed rgba(29,29,31,.55);pointer-events:none;z-index:2}
.d-xaxis{grid-column:2;display:flex;gap:clamp(3px,1.1%,12px);padding:8px 4px 0}
.d-xaxis span{flex:1;min-width:0;text-align:center;font-size:.75rem;color:var(--muted);white-space:nowrap;line-height:1.25}
.d-xaxis b{display:block;font-weight:650;color:var(--ink2)}
.d-tip{position:fixed;z-index:60;pointer-events:none;background:var(--ink);color:#fff;border-radius:12px;padding:10px 12px;font-size:.8125rem;line-height:1.5;
  box-shadow:0 14px 30px -10px rgba(0,0,0,.45);opacity:0;transition:opacity .12s ease;min-width:150px}
.d-tip.is-on{opacity:1}
.d-tip b{display:block;margin-bottom:2px}
.d-tip div{display:flex;justify-content:space-between;gap:18px}
.d-tip i{display:inline-block;width:8px;height:8px;border-radius:2px;margin-right:6px}
.d-tip .sum{border-top:1px solid rgba(255,255,255,.22);margin-top:5px;padding-top:5px;font-weight:700}

/* Funnel: three honest meters, each one relative to the step before it */
.d-funnel{display:grid;gap:0}
.d-stage{display:flex;justify-content:space-between;align-items:baseline;gap:12px;font-weight:650}
.d-stage b{font-size:1.375rem;font-weight:800;letter-spacing:-.03em;font-variant-numeric:tabular-nums}
.d-step{margin:9px 0 13px;padding-left:14px;border-left:2px solid var(--line2)}
.d-step p{display:flex;justify-content:space-between;gap:10px;font-size:.8438rem;color:var(--ink2)}
.d-step p b{color:var(--ink);font-variant-numeric:tabular-nums}
.d-meter{height:10px;border-radius:999px;background:#F3ECF1;overflow:hidden;margin-top:6px}
.d-meter i{display:block;height:100%;border-radius:999px;background:var(--grad);transform-origin:left;animation:growMeter .7s cubic-bezier(.2,.8,.2,1) backwards}
@keyframes growMeter{from{transform:scaleX(0)}}

/* Tables with a bar in the first number column */
.d-scroll{overflow-x:auto;margin:0 -6px;padding:0 6px}
.d-table{width:100%;border-collapse:collapse;font-size:.9063rem;font-variant-numeric:tabular-nums}
.d-table th{font-size:.7813rem;font-weight:650;color:var(--muted);text-align:right;padding:0 8px 9px;white-space:nowrap;border-bottom:1px solid var(--line2)}
.d-table th:first-child,.d-table td:first-child{text-align:left;padding-left:0}
.d-table td{padding:9px 8px;text-align:right;border-bottom:1px solid var(--line);white-space:nowrap}
.d-table tr:last-child td{border-bottom:0}
.d-table tbody tr{cursor:pointer;transition:background .15s ease}
.d-table tbody tr:hover{background:#FFF7F3}
.d-table tbody tr.is-sel{background:#FCEEF3}
.d-name{display:flex;align-items:center;gap:10px;font-weight:650;white-space:normal;line-height:1.2;min-width:120px}
.d-name small{display:block;font-weight:450;color:var(--muted);font-size:.7813rem}
.d-av{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;font-size:.6875rem;font-weight:800;color:#fff;flex:none}
.d-barcell{min-width:130px}
.d-barcell div{display:flex;align-items:center;gap:8px;justify-content:flex-end}
.d-barcell span{flex:1;height:8px;border-radius:999px;background:#F3ECF1;overflow:hidden;display:block}
.d-barcell span i{display:block;height:100%;border-radius:999px;background:var(--used)}
.d-barcell.pink span i{background:var(--new)}
.d-good{color:var(--good);font-weight:700}.d-bad{color:var(--bad);font-weight:700}
@media (max-width:640px){.d-hide-m{display:none}.d-barcell{min-width:0}.d-barcell span{flex:none;width:30px}.d-card{padding:16px 14px 18px;border-radius:16px}
  .d-table{font-size:.8438rem}.d-table td,.d-table th{padding-left:5px;padding-right:5px}.d-table td:last-child,.d-table th:last-child{padding-right:0}
  .d-name{min-width:0;gap:8px}.d-av{width:26px;height:26px;font-size:.625rem}.d-plot,.d-yaxis{height:200px}}

.d-load{display:grid;place-items:center;min-height:300px;color:var(--muted);font-weight:550}
.d-cta{margin-top:18px}
.d-more{margin-top:12px;border:0;background:#F6F0F3;border-radius:999px;padding:9px 16px;font-weight:650;font-size:.8438rem;cursor:pointer;color:var(--ink)}
.d-more:hover{background:var(--ink);color:#fff}
.page-dashboard .top .wrap,.page-up-system .top .wrap,.page-dashboard .foot .wrap,.page-up-system .foot .wrap{--wrap:1320px}
#dash.is-loading #dashBody{opacity:.55;transition:opacity .2s ease}

/* v7: header label, filter bar, tile icons and the charts brought back from the earlier demo */
.top-pill{margin:0 0 0 6px;padding:6px 12px;font-size:.8125rem}
@media (max-width:1040px){.top-pill{display:none}}
.d-fbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:14px}
.d-fbar .d-select{padding:9px 34px 9px 14px;font-size:.8438rem}
.d-select.is-set{background-color:var(--ink);color:#fff;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.400' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E")}
.d-reset{border:0;background:#F6F0F3;border-radius:999px;padding:9px 15px;font-weight:650;font-size:.8438rem;cursor:pointer;color:var(--ink)}
.d-reset:hover{background:var(--ink);color:#fff}
.d-lookup{margin-left:auto;display:flex;align-items:center;background:var(--paper);border-radius:999px;box-shadow:inset 0 0 0 1px var(--line2);padding:3px 3px 3px 14px}
.d-lookup input{border:0;background:transparent;outline:0;font-size:.8438rem;width:170px;min-width:0}
.d-lookup button{width:32px;height:32px;border-radius:50%;border:0;background:var(--ink);color:#fff;display:grid;place-items:center;cursor:pointer}
.d-lookup button .ui{width:16px;height:16px}
.d-lookup:focus-within{box-shadow:inset 0 0 0 1.500px var(--g2)}
@media (max-width:760px){.d-fbar{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}.d-fbar>*{flex:none}.d-lookup{margin-left:0}}
.d-kpi-ic{position:absolute;right:16px;top:16px;width:40px;height:40px;border-radius:13px;display:grid;place-items:center;color:var(--kc);
  background:linear-gradient(145deg,color-mix(in srgb,var(--kc) 20%,#fff),color-mix(in srgb,var(--kc) 7%,#fff));box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--kc) 18%,transparent),0 8px 16px -10px var(--kc)}
.d-kpi-ic svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.900;stroke-linecap:round;stroke-linejoin:round}
.k-leads{--kc:#E1306C}.k-appts{--kc:#2A78D6}.k-shows{--kc:#D98A00}.k-sold{--kc:#6250D6}.k-gross{--kc:#0E9F7B}
.d-kpi::after{content:"";position:absolute;left:20px;right:20px;bottom:0;height:3px;border-radius:3px 3px 0 0;background:linear-gradient(90deg,var(--kc),color-mix(in srgb,var(--kc) 30%,#fff))}
@media (max-width:640px){.d-kpi-ic{width:32px;height:32px;right:12px;top:12px;border-radius:10px}.d-kpi-ic svg{width:18px;height:18px}.d-kpi .k{padding-right:36px}}
.d-sec{display:flex;align-items:center;gap:12px;margin:34px 0 0;scroll-margin-top:90px}
.d-sec h2{font-size:1.3125rem;letter-spacing:-.02em}
.d-sec-ic{width:34px;height:34px;border-radius:11px;background:var(--ink);color:#fff;display:grid;place-items:center;flex:none}
.d-sec-ic svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.d-sec-note{font-size:.8438rem;color:var(--muted);margin-left:auto;text-align:right}
.d-sec::after{content:"";order:2;flex:1;height:1px;background:var(--line2)}
.d-sec-note{order:3;margin-left:0}
.d-row.r-7-5{grid-template-columns:minmax(0,7fr) minmax(0,5fr)}
.d-row.r-3{grid-template-columns:repeat(3,minmax(0,1fr))}
@media (max-width:1000px){.d-row.r-7-5,.d-row.r-3{grid-template-columns:1fr}}
.d-empty{color:var(--muted);font-size:.9063rem;padding:20px 0}
.d-legend .ly i{width:16px;height:0;border-top:2.500px solid var(--ink);border-radius:0;vertical-align:3px}
.d-line{position:absolute;inset:0;width:100%;height:100%;z-index:3;pointer-events:none;overflow:visible}
.d-line polyline{fill:none;stroke:var(--ink);stroke-width:2.500;vector-effect:non-scaling-stroke;stroke-linejoin:round;stroke-linecap:round}
.d-dot{position:absolute;z-index:4;width:9px;height:9px;border-radius:50%;background:#fff;box-shadow:0 0 0 2.500px var(--ink);transform:translate(-50%,50%);pointer-events:none}
/* four small charts */
.d-minis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.d-mini{min-width:0;border-radius:16px;padding:14px 14px 12px;background:linear-gradient(180deg,color-mix(in srgb,var(--c) 7%,#fff),#fff);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--c) 16%,transparent)}
.d-mini-top{display:flex;justify-content:space-between;align-items:baseline;gap:8px;font-size:.8125rem;font-weight:600;color:var(--ink2)}
.d-mini-top b{font-size:1.25rem;font-weight:800;color:var(--ink);letter-spacing:-.03em;font-variant-numeric:tabular-nums}
.d-mini-cols{display:flex;align-items:flex-end;gap:3px;height:150px;margin-top:12px}
.d-mini-cols i{flex:1;border-radius:4px 4px 1px 1px;background:linear-gradient(180deg,color-mix(in srgb,var(--c) 70%,#fff),var(--c));min-width:0}
.d-mini-cols i:last-child{box-shadow:0 0 0 2px #fff,0 0 0 3.500px var(--c)}
.d-mini-foot{display:flex;justify-content:space-between;gap:4px;overflow:hidden;font-size:.6875rem;color:var(--muted);margin-top:9px;white-space:nowrap}
@media (max-width:640px){.d-minis{grid-template-columns:1fr 1fr}}
/* month over month */
.d-mom-plot{display:flex;gap:clamp(3px,1.100%,10px);height:230px;position:relative}
.d-mom-plot::before{content:"";position:absolute;left:0;right:0;top:50%;height:1px;background:var(--line2)}
.d-mom-col{flex:1;min-width:0;display:grid;grid-template-rows:1fr 1fr}
.d-mom-col .h{display:flex;flex-direction:column;align-items:center;min-height:0}
.d-mom-col.up .h:first-child{justify-content:flex-end}
.d-mom-col i{width:100%;max-width:34px;display:block;border-radius:7px 7px 2px 2px;background:linear-gradient(180deg,#35C492,var(--good));min-height:3px}
.d-mom-col.down i{border-radius:2px 2px 7px 7px;background:linear-gradient(180deg,var(--bad),#F08A5B)}
.d-mom-col b{font-size:.6875rem;font-weight:700;font-variant-numeric:tabular-nums;margin:3px 0;white-space:nowrap;color:var(--good)}
.d-mom-col.down b{color:var(--bad)}
.d-mom .d-xaxis{grid-column:auto}
/* donuts */
.d-donut{display:grid;gap:18px;justify-items:center}
.d-donut-ring{position:relative;width:min(190px,60%);aspect-ratio:1}
.d-donut-ring svg{width:100%;height:100%;transform:rotate(-90deg);overflow:visible;filter:drop-shadow(0 10px 14px rgba(98,80,214,.18))}
.d-donut-ring>div{position:absolute;inset:0;display:grid;place-content:center;text-align:center}
.d-donut-ring b{font-size:1.5rem;font-weight:800;letter-spacing:-.03em}
.d-donut-ring span{font-size:.75rem;color:var(--muted)}
.d-donut ul{width:100%;display:grid;gap:8px;font-size:.9063rem}
.d-donut li{display:grid;grid-template-columns:auto 1fr auto auto;gap:10px;align-items:center}
.d-donut li i{width:11px;height:11px;border-radius:3px}
.d-donut li b{font-variant-numeric:tabular-nums}.d-donut li em{font-style:normal;color:var(--muted);font-variant-numeric:tabular-nums;min-width:58px;text-align:right}
/* return per group */
.d-roi{margin-top:14px;display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:1px;background:rgba(255,255,255,.12);border-radius:20px;overflow:hidden;
  box-shadow:0 20px 40px -26px rgba(29,29,31,.7);position:relative;isolation:isolate}
.d-roi-item{border:0;background:var(--ink);color:#fff;text-align:left;padding:16px 18px;cursor:pointer;display:grid;gap:2px;transition:background .2s ease}
.d-roi-item:hover{background:#2B2A30}.d-roi-item.is-sel{background:linear-gradient(135deg,#E1306C,#833AB4)}
.d-roi-item span{font-size:.7813rem;font-weight:600;color:rgba(255,255,255,.7)}
.d-roi-item b{font-size:1.5rem;font-weight:800;letter-spacing:-.03em}
.d-roi-item em{font-style:normal;font-size:.75rem;color:rgba(255,255,255,.65)}
/* horizontal bars */
.d-hbars,.d-pairs{display:grid;gap:12px}
.d-nest{display:grid;gap:17px}
.d-hbar,.d-nest-row{display:grid;grid-template-columns:minmax(72px,104px) 1fr auto;gap:12px;align-items:center;font-size:.9063rem;font-weight:600}
.d-hbar .t,.d-pair .t{height:14px;border-radius:999px;background:#F5EFF3;position:relative}
.d-hbar .t i,.d-pair .t i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,color-mix(in srgb,var(--c) 62%,#fff),var(--c));box-shadow:0 5px 10px -5px var(--c);min-width:4px;
  transform-origin:left;animation:growMeter .7s cubic-bezier(.2,.8,.2,1) backwards}
.d-hbar b,.d-nest-row b{font-variant-numeric:tabular-nums;min-width:46px;text-align:right}
.d-pair{display:grid;grid-template-columns:minmax(72px,104px) 1fr;gap:12px;align-items:center;font-size:.9063rem;font-weight:600}
.d-pair>div{display:grid;gap:5px}
.d-pair .t{background:transparent;display:flex;align-items:center;gap:8px;height:13px}
.d-pair .t i{flex:none}
.d-pair .t b{font-size:.75rem;font-weight:700;color:var(--ink2);font-variant-numeric:tabular-nums;white-space:nowrap}
.d-nest-row .t{position:relative;height:20px;border-radius:7px;background:#F7F2F5}
.d-nest-row .t i{position:absolute;left:0;top:0;bottom:0;border-radius:7px}
.d-nest-row .t .a{background:#F3C6D6}.d-nest-row .t .s{background:#E97BA3;top:3px;bottom:3px;border-radius:5px}
.d-nest-row .t .o{background:linear-gradient(90deg,#F0638F,var(--new));top:6px;bottom:6px;border-radius:4px;box-shadow:0 4px 8px -3px var(--new)}
/* lead lookup */
.d-drawer{position:fixed;inset:0;z-index:70;background:rgba(29,29,31,.45);backdrop-filter:blur(3px);display:grid;place-items:center;padding:16px}
.d-drawer[hidden]{display:none}
.d-drawer-box{width:min(460px,100%);max-height:86vh;overflow:auto;background:var(--paper);border-radius:22px;padding:22px 24px;box-shadow:0 40px 80px -30px rgba(29,29,31,.6)}
.d-drawer-box h2{font-size:1.1875rem;font-weight:750;letter-spacing:-.015em}
.d-drawer-box h2 small{display:block;font-size:.8438rem;font-weight:450;color:var(--muted);letter-spacing:0;margin-top:3px}
#drawerBody{margin:0;display:grid}
#drawerBody div{display:flex;justify-content:space-between;gap:16px;padding:9px 0;border-bottom:1px solid var(--line);font-size:.9375rem}
#drawerBody div:last-child{border-bottom:0}
#drawerBody dt{color:var(--muted)}#drawerBody dd{margin:0;font-weight:650;text-align:right}

/* v8: rich tables (icon tiles, gradient bars, rate meters, return chips) and agent portraits */
.d-rich{border-collapse:separate;border-spacing:0 6px;margin-top:-6px}
.d-rich th{border-bottom:0;padding-bottom:2px}
.d-rich td{border:0;background:#FCFAFB;padding:10px 10px;vertical-align:middle}
.d-rich td:first-child{border-radius:14px 0 0 14px;padding-left:10px}
.d-rich td:last-child{border-radius:0 14px 14px 0;padding-right:12px}
.d-rich tbody tr{transition:transform .15s ease}
.d-rich tbody tr:hover td{background:#FFF3EE}.d-rich tbody tr:hover{background:none}
.d-rich tbody tr.is-sel td{background:#FCE7EF;box-shadow:inset 0 1.500px 0 #F3A9C4,inset 0 -1.500px 0 #F3A9C4}
.d-rich td b{font-weight:750}
.d-ti{width:36px;height:36px;border-radius:11px;display:grid;place-items:center;flex:none;color:var(--c);
  background:linear-gradient(145deg,color-mix(in srgb,var(--c) 20%,#fff),color-mix(in srgb,var(--c) 7%,#fff));box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--c) 18%,transparent),0 6px 12px -8px var(--c)}
.d-ti svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.900;stroke-linecap:round;stroke-linejoin:round}
.d-gb{display:grid;grid-template-columns:minmax(54px,1fr) auto;gap:9px;align-items:center;min-width:128px}
.d-gb span{height:10px;border-radius:999px;background:#F1EAEF;overflow:hidden;display:block}
.d-gb span i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,color-mix(in srgb,var(--c) 55%,#fff),var(--c));box-shadow:0 4px 8px -4px var(--c);transform-origin:left;animation:growMeter .7s cubic-bezier(.2,.8,.2,1) backwards}
.d-gb b{min-width:44px;text-align:right}
.d-rate{display:inline-grid;gap:4px;justify-items:end;min-width:62px}
.d-rate b{color:var(--c)}
.d-rate span{width:62px;height:5px;border-radius:999px;background:#F1EAEF;overflow:hidden;display:block}
.d-rate span i{display:block;height:100%;border-radius:999px;background:var(--c)}
.d-ret{display:inline-block;padding:5px 11px;border-radius:999px;font-weight:750;font-size:.8438rem;background:#F1EAEF;color:var(--ink)}
.d-ret.hi{background:linear-gradient(100deg,#F56040,#E1306C 55%,#833AB4);color:#fff;box-shadow:0 8px 14px -8px #E1306C}
.d-ret.good{background:#DDF4EA;color:#0B7A5C}.d-ret.bad{background:#FDE5DC;color:#C4320A}.d-ret.none{background:transparent;color:var(--muted);font-weight:600;padding-left:0;padding-right:0}
.d-face{width:38px;height:38px;border-radius:50%;flex:none;box-shadow:0 0 0 2px #fff,0 6px 12px -6px rgba(29,29,31,.45)}
.d-rank{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;font-size:.6875rem;font-weight:800;background:#F1EAEF;color:var(--ink2);flex:none}
.d-rank.r1{background:linear-gradient(135deg,#F7D774,#E0A100);color:#4A3200}.d-rank.r2{background:linear-gradient(135deg,#E6E8EC,#AEB4BF);color:#2B2F36}.d-rank.r3{background:linear-gradient(135deg,#EDBE94,#C27A3E);color:#3E2208}
.d-nest-row{grid-template-columns:minmax(120px,168px) 1fr auto}
.d-nest-who{display:flex;align-items:center;gap:9px;line-height:1.2}
.d-nest-who .d-face,.d-nest-who .d-ti{width:28px;height:28px;border-radius:50%}.d-nest-who .d-ti svg{width:15px;height:15px}
.d-nest{gap:11px}
@media (max-width:640px){.d-gb{min-width:0;grid-template-columns:auto}.d-gb span{display:none}.d-rich td{padding:9px 6px}.d-ti{width:30px;height:30px;border-radius:9px}.d-ti svg{width:16px;height:16px}
  .d-face{width:30px;height:30px}.d-rank{display:none}.d-rate span{width:44px}.d-rate{min-width:44px}.d-nest-row{grid-template-columns:minmax(96px,128px) 1fr auto}}
