/* Cartogether — tableau de bord quotidien v1. La carte reste décorative, le jeu intact. */
.daily-panel:has(.dash-board:not([hidden])) {width:min(485px,calc(100vw - 36px));padding:17px 18px 14px;max-height:calc(100dvh - 95px);overflow-y:auto;scrollbar-width:thin;overscroll-behavior:contain}
.dash-board{color:#172c46}
.dash-heading{text-align:left;margin-bottom:12px}
.dash-eyebrow{display:block;color:#19867e;font-size:10px;font-weight:850;letter-spacing:.085em;margin:0 0 5px}
.dash-heading h1{font-size:25px;line-height:1.09;letter-spacing:-.04em;margin:0 0 5px}
.dash-heading p{margin:0;color:#63778d;font-size:12px;line-height:1.35}
.dash-summary{padding:17px 17px 13px;border-radius:17px;background:linear-gradient(125deg,#102a4e 0%,#16496b 68%,#147e81 120%);color:#fff;box-shadow:0 8px 22px #102a4e27}
.dash-summary-top{display:flex;justify-content:space-between;align-items:center;gap:10px}
.dash-summary-label{font-size:10px;color:#9bdce1;letter-spacing:.075em;font-weight:850}
.dash-score{display:flex;align-items:baseline;gap:5px;margin-top:4px;white-space:nowrap;font-variant-numeric:tabular-nums}
.dash-score strong{font-size:clamp(26px,6vw,33px);line-height:1.05;font-weight:900;letter-spacing:-.04em}
.dash-score>span{color:#bdd7ea;font-size:13px;font-weight:750}
.dash-completed{align-self:center;display:flex;align-items:center;flex-direction:column;border:1px solid #ffffff35;background:#ffffff16;border-radius:12px;padding:9px 10px;min-width:78px}
.dash-completed strong{font-size:20px;letter-spacing:-.02em}
.dash-completed span{font-size:10px;color:#d0e7e8}
.dash-total-progress{height:8px;margin-top:14px;background:#ffffff30;border-radius:30px;overflow:hidden}
.dash-total-progress span{display:block;height:100%;width:0%;border-radius:30px;background:linear-gradient(90deg,#72edd0,#8bfbda);transition:width .3s}
.dash-summary-bottom{font-size:11px;line-height:1.35;color:#d6ebed;margin:9px 0 0!important}
.dash-next{display:flex;align-items:center;gap:10px;justify-content:space-between;background:#e3f8f2;border:1px solid #9ce0d3;border-radius:12px;padding:10px 12px;margin:10px 0 14px}
.dash-next>span{font-size:9px;font-weight:900;letter-spacing:.05em;color:#167c75;white-space:nowrap}
.dash-next a{font-size:12px;font-weight:850;color:#11655c;text-decoration:none;text-align:right}
.dash-next a:hover{text-decoration:underline}
.dash-next a:focus-visible{outline:3px solid #24b3a3;outline-offset:2px}
.dash-list-head{display:flex;justify-content:space-between;align-items:center;gap:7px;margin:0 0 8px;font-size:13px}
.dash-list-head>strong{font-size:14px;font-weight:850}
.dash-list-head>span{font-size:10px;color:#7b8ca2}
.dash-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.dash-card{display:flex;flex-direction:column;min-width:0;min-height:145px;padding:12px 12px 10px;border-radius:14px;border:1px solid #d8e4f2;background:linear-gradient(150deg,#f6f9fd,#edf4fc);text-decoration:none;color:#162c47;transition:transform .14s,border-color .14s,box-shadow .14s}
.dash-card:hover{transform:translateY(-2px);border-color:#78b3e9;box-shadow:0 6px 15px #0f284212}
.dash-card:focus-visible{outline:3px solid #26b6a0;outline-offset:2px}
.dash-card[data-state="complete"]{background:linear-gradient(150deg,#f0faf5,#e3f8ef);border-color:#b6e6cb}
.dash-card[data-state="ongoing"]{background:linear-gradient(150deg,#fffaf0,#fff0d9);border-color:#f4d5a1}
.dash-card-top{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:7px}
.dash-icon{font-size:21px;line-height:1;filter:drop-shadow(0 2px 2px #10243e0d)}
.dash-status{font-size:9px;font-weight:850;color:#526983;border-radius:20px;background:#e6edf6;padding:4px 7px;white-space:nowrap}
.dash-status.complete{background:#c8f1de;color:#126745}
.dash-status.ongoing{background:#fae2bb;color:#87551b}
.dash-card-title{font-size:15px;line-height:1.1;letter-spacing:-.02em;margin-bottom:5px}
.dash-card-score{font-size:15px;font-weight:850;letter-spacing:-.035em;font-variant-numeric:tabular-nums;margin-bottom:7px;color:#172b4b;white-space:nowrap}
.dash-card-progress{height:5px;background:#d9e4f1;border-radius:8px;overflow:hidden}
.dash-card-progress span{display:block;width:0;height:100%;border-radius:8px;background:#428edb;transition:width .3s}
.dash-card[data-state="complete"] .dash-card-progress span{background:#1ba875}
.dash-card[data-state="ongoing"] .dash-card-progress span{background:#e9aa45}
.dash-card-bottom{display:flex;justify-content:space-between;gap:3px;margin-top:auto;padding-top:7px;font-size:10px;color:#64819c;line-height:1.2}
.dash-card-bottom b{font-size:13px;color:#3374ad}
.dash-footnote{font-size:10px!important;color:#7b899a!important;margin:9px 0 0!important;line-height:1.35!important}
@media (max-width:650px){
  .daily-panel:has(.dash-board:not([hidden])){position:relative;top:auto;left:auto;width:100%;flex:0 0 auto;max-height:calc(100dvh - 93px);overflow-y:auto;overflow-x:hidden;border-radius:0;padding:13px 14px 12px;scrollbar-width:none;background:#f9fcffed}
  .daily-panel:has(.dash-board:not([hidden]))::-webkit-scrollbar{display:none}
  .daily-panel:has(.dash-board:not([hidden]))+.daily-map-chooser{min-height:38px;background-size:cover}
  .dash-heading{margin-bottom:10px}
  .dash-heading h1{font-size:23px}
  .dash-summary{padding:13px 14px 10px;border-radius:15px}
  .dash-score strong{font-size:29px}
  .dash-total-progress{margin-top:10px}
  .dash-next{padding:9px 10px;margin:9px 0 12px}
  .dash-card{min-height:132px;padding:10px}
  .dash-card-score{font-size:14px}
  .dash-grid{gap:7px}
  .dash-list-head{margin-bottom:7px}
}
@media (max-width:360px){
  .dash-heading h1{font-size:21px}
  .dash-card-title{font-size:13px}
  .dash-card-score{font-size:12px}
  .dash-card{padding:9px;min-height:124px}
  .dash-status{font-size:8px;padding:3px 5px}
  .dash-score strong{font-size:26px}
}
@media (max-width:650px) and (max-height:650px){
  .daily-panel:has(.dash-board:not([hidden])){max-height:calc(100dvh - 70px);padding:8px 12px 9px}
  .dash-heading{margin-bottom:7px}
  .dash-eyebrow{font-size:9px;margin-bottom:3px}
  .dash-heading h1{font-size:21px;margin:0 0 2px}
  .dash-heading p{font-size:10px}
  .dash-summary{padding:10px 12px 8px}
  .dash-score strong{font-size:25px}
  .dash-completed{padding:5px 7px}
  .dash-total-progress{margin-top:7px;height:6px}
  .dash-summary-bottom{margin-top:6px!important}
  .dash-next{margin:7px 0 9px;padding:7px 10px}
  .dash-card{min-height:116px;padding:8px 9px}
  .dash-card-top{margin-bottom:4px}
  .dash-card-title{margin-bottom:3px}
  .dash-card-score{margin-bottom:5px}
  .dash-card-bottom{padding-top:5px}
  .dash-icon{font-size:18px}
}
@media (orientation:landscape) and (max-height:520px) and (pointer:coarse){
  .daily-panel:has(.dash-board:not([hidden])){position:absolute;left:8px;top:51px;width:min(460px,calc(100vw - 16px));max-height:calc(100dvh - 60px);border-radius:14px;overflow-y:auto;padding:10px 12px}
  .dash-heading{margin-bottom:6px}
  .dash-summary{padding:9px 11px 8px}
  .dash-next{margin:6px 0}
  .dash-card{min-height:108px}
}
@media (prefers-reduced-motion:reduce){.dash-card,.dash-card-progress span,.dash-total-progress span{transition:none}}
@media (max-width:340px) and (max-height:600px){
  .dash-footnote{display:none}
  .dash-card{min-height:120px}
}

/* Six catégories sans perdre la lisibilité sur petit écran. */
@media(max-width:650px){.dash-card{min-height:114px}.dash-card-title{line-height:1.16}.dash-card-bottom{padding-top:5px}.daily-panel:has(.dash-board:not([hidden])){overscroll-behavior:contain}}
@media(max-width:650px) and (max-height:650px){.dash-card{min-height:102px}.dash-status{font-size:8px;padding:3px 5px}}
