/* Accueil Phoenix, inspiré de la première version. */
.ux-home { --home-indigo:#5148ae; --home-ink:#29234a; --home-line:#e6e2f1; color:var(--home-ink); }
.ux-home .ux-panel { border-color:var(--home-line); border-radius:14px; padding:20px; }
.ux-home-top { display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,1fr); gap:18px; }
.ux-home-welcome {
 position:relative; isolation:isolate; overflow:hidden; display:flex; justify-content:space-between;
 align-items:center; gap:24px; min-height:244px; padding:30px; color:#fff; background:#5148b2; border-radius:15px;
}
.ux-home-welcome::before,.ux-home-welcome::after {
 content:""; position:absolute; z-index:-1; border-radius:50%; pointer-events:none;
}
.ux-home-welcome::before { width:360px; height:360px; border:42px solid #ffffff16; right:-115px; top:-165px; }
.ux-home-welcome::after { width:190px; height:190px; background:#28206b38; bottom:-143px; left:-20px; }
#view-container .ux-home-welcome h1 { margin:0 0 22px; color:#fff!important; font-size:clamp(28px,3vw,43px); letter-spacing:-.035em; }
.ux-home-greeting { min-width:0; }
.ux-home-greeting>p { margin:0 0 7px; color:#f2edff; font-size:13px; }
.ux-home-greeting>p::first-letter { text-transform:uppercase; }
#wrapper .ux-home-primary { background:#fff; border:1px solid #fff; color:#392d89!important; font-weight:650; }
#wrapper .ux-home-secondary { background:transparent; border:1px solid #ffffff85; color:white!important; }
#wrapper .ux-home-primary:hover { background:#eee9ff; }
#wrapper .ux-home-secondary:hover { background:#ffffff24; }
.ux-home-done { align-self:stretch; display:flex; flex:0 0 122px; flex-direction:column; justify-content:center; padding:14px; gap:3px; background:#30278370; border:1px solid #ffffff34; border-radius:11px; }
.ux-home-done i { color:#ddd6ff; margin-bottom:5px; }
.ux-home-done strong { font-size:42px; line-height:1.05; font-variant-numeric:tabular-nums; }
.ux-home-done span { color:#f1edff; font-size:12px; line-height:1.4; }
.ux-home-counters { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:9px; }
.ux-home-counter {
 --tile-bg:#f0edff; --tile-text:#453a99; background:var(--tile-bg); color:var(--tile-text);
 display:flex; flex-direction:column; align-items:flex-start; gap:4px; min-height:93px; padding:11px;
 border:1px solid transparent; border-radius:9px; text-align:left;
}
.ux-home-counter:hover { border-color:currentColor; }
.ux-home-counter i { font-size:13px; }
.ux-home-counter strong { font-size:26px; line-height:1.1; font-variant-numeric:tabular-nums; }
.ux-home-counter span { font-size:11px; font-weight:600; }
.ux-home-counter-retard { --tile-bg:#fcebef; --tile-text:#91384e; }
.ux-home-counter-verif { --tile-bg:#eaf6ee; --tile-text:#316244; }
.ux-home-counter-tva { --tile-bg:#e9f1ff; --tile-text:#315a92; }
.ux-home-tasks .ux-priority-list { margin-top:10px; max-height:159px; overflow:auto; }
.ux-home-tasks .ux-priority-list li { padding:8px 0; align-items:center; }
.ux-home-tasks .ux-priority-list li:last-child { padding-bottom:0; }
.ux-home-tasks .ux-priority-list .btn { line-height:1.3; color:#493d9b; }
.ux-home-middle { display:grid; grid-template-columns:minmax(0,.92fr) minmax(0,1.4fr) minmax(0,1fr); gap:18px; margin-top:18px; }
.ux-home-progress-row {
 width:100%; display:grid; grid-template-columns:minmax(0,1fr) auto auto; align-items:baseline; text-align:left;
 column-gap:12px; row-gap:6px; padding:9px 11px; margin-bottom:8px; border:1px solid #e9e5f4;
 border-radius:7px; background:#faf9fd; color:#403685; font-size:13px;
}
.ux-home-progress-row:hover { border-color:#a39acb; }
.ux-home-progress-row small { color:#615977; white-space:nowrap; }
.ux-home-progress-row progress { grid-column:1/-1; width:100%; height:6px; accent-color:#6255c2; }
.ux-home-notes textarea { background:#fcfbfe!important; min-height:144px; }
.ux-home-empty { color:#665f78; font-size:13px; margin:14px 0 3px; }
.ux-home-life { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); margin-top:18px; gap:18px; }
.ux-home-life .ux-section-heading { gap:6px; margin-bottom:10px; }
#view-container .ux-home-life h2 { font-size:14px; }
.ux-home-life i,.ux-home-life .ux-section-heading>span { color:#5849ae; }
.ux-home-life ul { list-style:none; margin:0; padding:0; }
.ux-home-life li { font-size:13px; padding:7px 0; border-bottom:1px solid #efeaf7; }
.ux-home-life li:last-child { border-bottom:0; }
.ux-home-life li small { display:block; color:#665f78; }
.ux-source-dates { display:grid; gap:4px; margin-top:3px; }
.ux-source-date { color:#443488; background:#f0ebff; padding:4px 6px; border-radius:5px; border:0; text-align:left; font-size:11px; white-space:normal!important; }
.ux-source-date:hover { background:#ded5fb; }
.ux-source-done { color:#2f6146; background:#eaf4ed; }
@media(max-width:1100px) {
 .ux-home-top,.ux-home-middle { grid-template-columns:1fr 1fr; }
 .ux-home-progress { grid-column:1/-1; grid-row:2; }
 .ux-home-welcome { padding:21px; }
 .ux-home-done { flex-basis:100px; }
 .ux-home-counters { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .ux-home-life { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:650px) {
 .ux-home-top,.ux-home-middle { grid-template-columns:minmax(0,1fr); gap:12px; }
 .ux-home-welcome { min-height:174px; padding:17px; gap:12px; }
 .ux-home-done { flex-basis:88px; padding:9px; }
 .ux-home-done strong { font-size:30px; }
 .ux-home-done span { font-size:10px; }
 #view-container .ux-home-welcome h1 { font-size:26px; margin-bottom:13px; }
 .ux-home .ux-panel { padding:14px; }
 .ux-home-middle,.ux-home-life { margin-top:12px; }
 .ux-home-life { gap:12px; }
 .ux-home-progress { grid-row:auto; }
 .ux-home-counter { min-height:74px; }
}
