/* =========================================================
   SCOPE · Admin — Accueil (tableau de bord)
   « Depuis le début » : section headings, precision note, lives list,
   calculation detail. Only the tokens of scope.css.
   ========================================================= */
.dsh-sh{display:flex;align-items:flex-end;justify-content:space-between;gap:10px 18px;flex-wrap:wrap;margin-bottom:var(--sp-4)}
.dsh-sh>div{min-width:min(100%,260px)}
.dsh-sh h2.h{font-size:17px}
.dsh-sh p{color:var(--muted);font-size:var(--fs-s);font-weight:600;margin-top:4px}
.dsh-prec{display:inline-flex;align-items:flex-start;gap:8px;max-width:520px;padding:7px 12px;border-radius:var(--r-sm);background:var(--info-soft);color:var(--info-text);font-size:var(--fs-s);font-weight:600;line-height:1.4}
.dsh-prec svg{width:15px;height:15px;margin-top:1px}

/* monthly chart */
.dsh-lg{margin:-6px 0 10px}
.dsh-lg b{font-weight:600}
.dsh-foot{color:var(--muted);font-size:var(--fs-s);margin-top:10px;line-height:1.45}
.dsh-foot.dsh-warn{color:var(--warn-text);background:var(--warn-soft);padding:8px 12px;border-radius:var(--r-sm);font-weight:600}

/* lives followed in SCOPE */
.dsh-lives{display:flex;flex-direction:column;gap:8px}
.dsh-live{display:flex;flex-direction:column;gap:2px;padding:12px 14px;border-radius:var(--r-sm);background:var(--bg-2);border:1px solid var(--line);color:inherit;transition:border-color .15s,background .15s}
.dsh-live:hover{border-color:var(--orange-line);background:var(--panel-2)}
.dsh-live-h{display:flex;align-items:center;gap:8px;min-width:0}
.dsh-live-h b{flex:1;min-width:0;font-weight:800;font-size:var(--fs-m);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dsh-live>small{color:var(--muted);font-size:var(--fs-xs);font-weight:600}
.dsh-live-n{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:8px}
.dsh-live-n span{display:flex;flex-direction:column;min-width:0}
.dsh-live-n small{color:var(--muted);font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.06em}
.dsh-live-n b{font-weight:800;font-size:var(--fs);white-space:nowrap}
.dsh-live-tot{padding:12px 15px 2px}
.dsh-live-tot>small{color:var(--muted-2);font-size:var(--fs-xs);font-weight:800;text-transform:uppercase;letter-spacing:.06em}
.dsh-live-tot .dsh-live-n{margin-top:4px}
.dsh-live-tot b{font-weight:900}

/* calculation detail */
.dsh-det{padding:0}
.dsh-det>summary{display:flex;align-items:center;gap:10px;padding:16px 20px;cursor:pointer;list-style:none;border-radius:var(--r)}
.dsh-det>summary::-webkit-details-marker{display:none}
.dsh-det>summary:hover{background:rgba(255,255,255,.02)}
.dsh-det>summary:focus-visible{outline:none;box-shadow:var(--ring)}
.dsh-det>summary svg{width:16px;height:16px;color:var(--orange)}
.dsh-det>summary svg:last-child{color:var(--muted);transition:transform .2s var(--ease-out)}
.dsh-det[open]>summary svg:last-child{transform:rotate(180deg)}
.dsh-det>summary b{font-weight:800;font-size:var(--fs)}
.dsh-det>summary small{color:var(--muted);font-size:var(--fs-s);font-weight:600}
.dsh-det>summary .sp{flex:1}
.dsh-cols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 32px;padding:4px 20px 20px}
.dsh-stmt{display:flex;flex-direction:column;min-width:0}
.dsh-stmt h5{font-size:var(--fs-xs);font-weight:800;text-transform:uppercase;letter-spacing:.1em;color:var(--muted-2);margin:14px 0 2px}
.dsh-stmt h5:first-child{margin-top:4px}
.dsh-r{display:flex;justify-content:space-between;align-items:baseline;gap:var(--sp-3);padding:8px 0;border-bottom:1px dashed var(--line-2);font-size:var(--fs-m)}
.dsh-r>span{min-width:0}
.dsh-r small{display:block;color:var(--muted);font-size:var(--fs-xs);font-weight:600;margin-top:1px}
.dsh-r b{white-space:nowrap;font-weight:700}
.dsh-r.tot{font-weight:800;border-bottom:1px solid var(--line-3)}.dsh-r.tot b{font-weight:900}
.dsh-r.res{font-weight:900;font-size:var(--fs-l);border-bottom:0}.dsh-r.res b{font-weight:900}
.dsh-notes{list-style:none;display:flex;flex-direction:column;gap:6px;margin:12px 0 14px;color:var(--muted-2);font-size:var(--fs-s);line-height:1.45}
.dsh-notes li{position:relative;padding-left:14px}
.dsh-notes li::before{content:"";position:absolute;left:2px;top:.6em;width:5px;height:5px;border-radius:50%;background:var(--orange)}
.dsh-notes b{color:var(--text-2)}
.dsh-stmt>.btn{align-self:flex-start}

@media (max-width:900px){
  .dsh-cols{grid-template-columns:minmax(0,1fr);gap:0}
  .dsh-stmt+.dsh-stmt h5:first-child{margin-top:18px}
}
@media (max-width:560px){
  .dsh .kpi svg.spark{display:none}
  .dsh .kpi:has(svg.spark) .d{max-width:none}
  .dsh-sh h2.h{font-size:15px}
  .dsh-prec{max-width:none;width:100%}
  .dsh-det>summary small{display:none}
  .dsh-cols{padding:0 16px 16px}
  .dsh-det>summary{padding:14px 16px}
  .dsh-live-n b{font-size:var(--fs-m)}
}
