/* YellenHub v0.24 — Administration */
#view-admin{display:flex;flex-direction:column;background:#0a0a0c}
#view-admin.hidden{display:none}
#view-admin > header{flex:none;position:relative !important;z-index:3;width:100% !important;max-width:none !important;margin:0 !important;left:auto !important;right:auto !important;top:auto !important;transform:none !important;align-self:stretch;box-sizing:border-box}
#yha{flex:1;min-height:0;display:flex;flex-direction:column;width:100%;max-width:980px;margin:0 auto;color:#fff}
.yha-refresh{width:40px;height:40px;border:0;border-radius:50%;background:rgba(255,255,255,.08);color:#fff;display:grid;place-items:center;flex:none;cursor:pointer}
.yha-refresh svg{width:19px;height:19px}
.yha-refresh:active{transform:rotate(-40deg)}

/* onglets */
.yha-tabs{flex:none;display:flex;gap:4px;overflow-x:auto;scrollbar-width:none;padding:0 12px;border-bottom:1px solid rgba(255,255,255,.07);background:#0a0a0c}
.yha-tabs::-webkit-scrollbar{display:none}
.yha-tabs button{position:relative;flex:none;display:flex;align-items:center;gap:6px;padding:14px 12px 12px;border:0;background:none;color:rgba(255,255,255,.55);font-weight:600;font-size:14.5px;font-family:inherit;cursor:pointer;white-space:nowrap}
.yha-tabs button.on{color:#fff}
.yha-tabs button.on::after{content:"";position:absolute;left:12px;right:12px;bottom:0;height:2.5px;border-radius:2px;background:#fff}
.yha-tabs em{font-style:normal;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:#FF2E63;color:#fff;font-size:11px;font-weight:800;display:grid;place-items:center}

.yha-body{flex:1;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:14px 14px calc(28px + env(safe-area-inset-bottom,0px))}
.yha-ic{width:20px;height:20px;flex:none}
.yha-sec{margin:0 0 22px}
.yha-sec h3{display:flex;align-items:center;gap:8px;margin:0 0 10px;font-size:13px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:rgba(255,255,255,.5)}
.yha-sec h3 em{font-style:normal;padding:2px 7px;border-radius:9px;background:#FF2E63;color:#fff;font-size:11px;letter-spacing:0}

/* chargement / vide */
.yha-loading{display:grid;place-items:center;padding:48px 0;grid-column:1/-1}
.yha-loading i{width:28px;height:28px;border-radius:50%;border:3px solid rgba(255,255,255,.12);border-top-color:#FFC531;animation:yhaSpin .8s linear infinite}
@keyframes yhaSpin{to{transform:rotate(360deg)}}
.yha-empty{display:flex;flex-direction:column;align-items:center;gap:10px;padding:46px 16px;color:rgba(255,255,255,.45);text-align:center;font-size:14px}
.yha-empty.wide{grid-column:1/-1}
.yha-empty .yha-ic{width:34px;height:34px;opacity:.6}
.yha-none{margin:0;padding:14px;border-radius:14px;background:#141417;color:rgba(255,255,255,.45);font-size:14px}

/* vue d'ensemble */
.yha-todo{display:flex;flex-direction:column;border-radius:16px;overflow:hidden;background:#141417;border:1px solid rgba(255,255,255,.06)}
.yha-todo button{display:flex;align-items:center;gap:12px;padding:14px;border:0;background:none;color:#fff;font-weight:500;font-size:14.5px;font-family:inherit;text-align:left;cursor:pointer}
.yha-todo button + button{border-top:1px solid rgba(255,255,255,.06)}
.yha-todo button:active{background:rgba(255,255,255,.05)}
.yha-todo button > .yha-ic{color:#FFC531}
.yha-todo span{flex:1}
.yha-todo em{font-style:normal;min-width:24px;height:24px;padding:0 7px;border-radius:12px;background:#FF2E63;font-size:12px;font-weight:800;display:grid;place-items:center}
.yha-chev{width:18px;height:18px;color:rgba(255,255,255,.35)}
.yha-allgood{display:flex;align-items:center;gap:10px;padding:14px;border-radius:16px;background:rgba(34,211,138,.1);color:#22d38a;font-size:14.5px;font-weight:600}
.yha-kpis{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.yha-kpi{position:relative;display:flex;flex-direction:column;gap:3px;min-width:0;padding:14px;border-radius:16px;background:#141417;border:1px solid rgba(255,255,255,.06)}
.yha-kpi-ic{width:34px;height:34px;margin-bottom:6px;border-radius:10px;display:grid;place-items:center;background:rgba(255,197,49,.12);color:#FFC531}
.yha-kpi-ic .yha-ic{width:18px;height:18px}
.yha-kpi b{font-size:22px;font-weight:800;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.yha-kpi > span{font-size:13px;color:rgba(255,255,255,.7)}
.yha-kpi small{font-size:11.5px;color:rgba(255,255,255,.42);line-height:1.3}
.yha-kpi.live .yha-kpi-ic{background:rgba(255,46,99,.14);color:#FF2E63}
.yha-kpi.warn .yha-kpi-ic{background:rgba(255,156,21,.14);color:#FF9C15}
.yha-chart{display:flex;align-items:flex-end;gap:5px;height:130px;padding:14px 12px 6px;border-radius:16px;background:#141417;border:1px solid rgba(255,255,255,.06)}
.yha-bar{flex:1;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:5px}
.yha-bar i{display:block;width:100%;max-width:22px;border-radius:5px 5px 2px 2px;background:linear-gradient(180deg,#FFC531,#FF9C15)}
.yha-bar span{height:12px;font-size:10px;color:rgba(255,255,255,.4)}

/* recherche + filtres */
.yha-searchbar{display:flex;align-items:center;gap:8px;height:44px;padding:0 14px;margin-bottom:12px;border-radius:12px;background:#17171a;color:rgba(255,255,255,.45)}
.yha-searchbar input{flex:1;min-width:0;height:100%;border:0;background:none;color:#fff;font-size:15px;outline:none;font-family:inherit}
.yha-chips{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;margin:0 0 12px}
.yha-chips::-webkit-scrollbar{display:none}
.yha-chips button,.yha-seg button{flex:none;padding:8px 14px;border-radius:999px;border:1px solid rgba(255,255,255,.12);background:none;color:rgba(255,255,255,.75);font-weight:600;font-size:13px;font-family:inherit;cursor:pointer}
.yha-chips button.on,.yha-seg button.on{background:#fff;border-color:#fff;color:#000}
.yha-seg{display:flex;gap:8px;margin:0 0 12px}

/* lignes utilisateurs */
.yha-list{display:flex;flex-direction:column;gap:8px}
.yha-row{display:flex;align-items:center;gap:12px;padding:12px;border-radius:14px;background:#141417;border:1px solid rgba(255,255,255,.05)}
.yha-av{width:46px;height:46px;flex:none;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:linear-gradient(135deg,#FF9C15,#FF2E63);font-weight:800;font-size:18px}
.yha-av img{width:100%;height:100%;object-fit:cover}
.yha-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.yha-t{display:flex;align-items:center;gap:6px;flex-wrap:wrap;min-width:0}
.yha-t b{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.yha-t small{color:rgba(255,255,255,.45);font-size:12px}
.yha-s{font-size:12.5px;color:rgba(255,255,255,.7);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.yha-s.dim{color:rgba(255,255,255,.42)}
.yha-s b{color:#fff}
.gold{color:#FFC531 !important}
.yha-tag{display:inline-block;padding:2px 7px;border-radius:6px;font-size:11px;font-weight:700;font-style:normal;background:rgba(255,255,255,.1);color:#fff}
.yha-tag.gold{background:rgba(255,197,49,.16);color:#FFC531}
.yha-tag.red{background:rgba(255,46,99,.16);color:#FF5A84}
.yha-tag.green{background:rgba(34,211,138,.14);color:#22d38a}
.yha-tag.amber{background:rgba(255,156,21,.16);color:#FFB04A}
.yha-dots{width:38px;height:38px;flex:none;border:0;border-radius:50%;background:rgba(255,255,255,.06);color:#fff;display:grid;place-items:center;cursor:pointer}
.yha-more-wrap{display:flex;justify-content:center;padding:12px 0}
.yha-more{padding:11px 22px;border-radius:999px;border:1px solid rgba(255,255,255,.15);background:none;color:#fff;font-weight:600;font-size:14px;font-family:inherit;cursor:pointer}

/* grille publications */
.yha-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.yha-card{display:flex;flex-direction:column;border-radius:14px;overflow:hidden;background:#141417;border:1px solid rgba(255,255,255,.05);min-width:0}
.yha-thumb{position:relative;aspect-ratio:3/4;background:#1d1d21;display:grid;place-items:center;overflow:hidden}
.yha-thumb img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.yha-ph{width:30px;height:30px;color:rgba(255,255,255,.3)}
.yha-badge{position:absolute;top:8px;left:8px;padding:3px 8px;border-radius:6px;font-size:11px;font-weight:700;background:rgba(0,0,0,.6);color:#fff;z-index:1}
.yha-badge.red{background:#FF2E63}.yha-badge.amber{background:#FF9C15;color:#1a1000}
.yha-badge.dark + .yha-thumb-stats,.yha-badge.dark{top:auto}
.yha-badge.dark{top:8px;right:8px;left:auto}
.yha-thumb-stats{position:absolute;left:0;right:0;bottom:0;display:flex;align-items:center;gap:4px;padding:18px 8px 7px;background:linear-gradient(transparent,rgba(0,0,0,.75));font-size:12px;font-weight:700}
.yha-thumb-stats .yha-ic{width:14px;height:14px}
.yha-thumb-stats .yha-ic:nth-of-type(2){margin-left:8px}
.yha-card-b{padding:10px 10px 4px;display:flex;flex-direction:column;gap:3px;min-width:0}
.yha-card-b b{font-size:13px}
.yha-card-b p{margin:0;font-size:12.5px;color:rgba(255,255,255,.7);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.yha-card-b p.err{color:#FF5A84;font-size:11.5px}
.yha-card-b small{font-size:11px;color:rgba(255,255,255,.4)}
.yha-card-a{display:flex;gap:6px;padding:8px 10px 10px;margin-top:auto}
.yha-card-a button{flex:1;display:flex;align-items:center;justify-content:center;gap:5px;height:34px;padding:0 4px;border:0;border-radius:9px;background:rgba(255,255,255,.08);color:#fff;font-weight:600;font-size:12px;font-family:inherit;cursor:pointer;white-space:nowrap}
.yha-card-a button .yha-ic{width:15px;height:15px}
.yha-card-a button.icon{flex:0 0 40px;padding:0}
.yha-card-a button.danger{background:rgba(255,46,99,.14);color:#FF5A84}

/* signalements */
.yha-rep{display:flex;gap:12px;padding:12px;border-radius:14px;background:#141417;border:1px solid rgba(255,255,255,.05)}
.yha-rep-th{width:64px;height:86px;flex:none;border-radius:10px;overflow:hidden;background:#1d1d21;display:grid;place-items:center;cursor:pointer}
.yha-rep-th.user{height:64px;border-radius:50%}
.yha-rep-th img{width:100%;height:100%;object-fit:cover}
.yha-rep-b{flex:1;min-width:0;display:flex;flex-direction:column;gap:5px}
.yha-rep-b p{margin:0;font-size:13.5px;color:rgba(255,255,255,.85);overflow-wrap:anywhere}
.yha-rep-b p.dim{font-size:12px;color:rgba(255,255,255,.45)}
.yha-rep-a{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}
.yha-rep-a button,.yha-act button{display:inline-flex;align-items:center;gap:5px;height:34px;padding:0 12px;border:0;border-radius:9px;background:rgba(255,255,255,.08);color:#fff;font-weight:600;font-size:12.5px;font-family:inherit;cursor:pointer;white-space:nowrap}
.yha-rep-a button .yha-ic,.yha-act button .yha-ic{width:15px;height:15px}
.yha-rep-a button.danger{background:rgba(255,46,99,.14);color:#FF5A84}

/* argent */
.yha-kpis.three{grid-template-columns:repeat(2,minmax(0,1fr))}
.yha-kpis.three .yha-kpi:last-child{grid-column:1/-1}
.yha-items{display:flex;flex-direction:column;gap:8px}
.yha-item{display:flex;flex-direction:column;gap:10px;padding:12px;border-radius:14px;background:#141417;border:1px solid rgba(255,255,255,.06);transition:opacity .2s, transform .2s}
.yha-item.gone{opacity:0;transform:translateX(30px)}
.yha-item .yha-s{white-space:normal}
.yha-act{display:flex;gap:8px}
.yha-act button{flex:1;justify-content:center;height:40px;font-size:13.5px}
.yha-act button.ok{background:linear-gradient(90deg,#FFC531,#FF9C15);color:#1a1000}
.yha-act button.no{background:rgba(255,46,99,.12);color:#FF5A84}
.yha-docs{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px}
.yha-docs a{display:inline-flex;align-items:center;gap:5px;padding:6px 10px;border-radius:8px;background:rgba(255,255,255,.07);color:#fff;font-size:12.5px;text-decoration:none}
.yha-docs a .yha-ic{width:15px;height:15px}
.yha-det{margin:0 0 12px;border-radius:14px;background:#141417;border:1px solid rgba(255,255,255,.06);overflow:hidden}
.yha-det summary{display:flex;align-items:center;gap:8px;padding:14px;cursor:pointer;font-weight:700;font-size:14.5px;list-style:none}
.yha-det summary::-webkit-details-marker{display:none}
.yha-det summary::after{content:"";margin-left:auto;width:8px;height:8px;border-right:2px solid rgba(255,255,255,.5);border-bottom:2px solid rgba(255,255,255,.5);transform:rotate(45deg);transition:transform .2s}
.yha-det[open] summary::after{transform:rotate(-135deg)}
.yha-det summary em{font-style:normal;font-size:12px;color:rgba(255,255,255,.45)}
.yha-det .yha-none{border-radius:0;background:none}
.yha-line{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:11px 14px;border-top:1px solid rgba(255,255,255,.05);font-size:13px}
.yha-line span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:rgba(255,255,255,.8)}
.yha-line span:last-child{flex:none;display:flex;align-items:center;gap:8px}

/* fenêtres */
.yha-toast{position:fixed;left:50%;bottom:calc(24px + env(safe-area-inset-bottom,0px));transform:translate(-50%,20px);opacity:0;z-index:10060;padding:12px 18px;border-radius:12px;background:#fff;color:#000;font-weight:600;font-size:14px;transition:.25s;box-shadow:0 10px 30px rgba(0,0,0,.4);max-width:90vw}
.yha-toast.on{opacity:1;transform:translate(-50%,0)}
.yha-toast.bad{background:#FF2E63;color:#fff}
.yha-confirm{position:fixed;inset:0;z-index:10040;background:rgba(0,0,0,.6);display:grid;place-items:center;padding:20px;animation:yhaFade .15s}
@keyframes yhaFade{from{opacity:0}}
.yha-cf-card{width:100%;max-width:340px;padding:22px 18px 16px;border-radius:18px;background:#1c1c20;color:#fff;text-align:center}
.yha-cf-card b{display:block;font-size:17px;margin-bottom:6px}
.yha-cf-card p{margin:0 0 6px;color:rgba(255,255,255,.6);font-size:14px;line-height:1.4}
.yha-input{width:100%;box-sizing:border-box;margin:10px 0 4px;height:44px;padding:0 12px;border-radius:10px;border:1px solid rgba(255,255,255,.12);background:#111;color:#fff;font-size:15px;font-family:inherit}
.yha-cf-btns{display:flex;gap:10px;margin-top:16px}
.yha-cf-btns button{flex:1;height:44px;border:0;border-radius:12px;background:rgba(255,255,255,.08);color:#fff;font-weight:700;font-size:14.5px;font-family:inherit;cursor:pointer}
.yha-cf-btns button.primary{background:linear-gradient(90deg,#FFC531,#FF9C15);color:#1a1000}
.yha-cf-btns button.danger{background:#FF2E63}
.yha-sheet{position:fixed;inset:0;z-index:10040;background:rgba(0,0,0,0);display:flex;align-items:flex-end;justify-content:center;transition:background .2s}
.yha-sheet.on{background:rgba(0,0,0,.55)}
.yha-sh-card{width:100%;max-width:520px;padding:8px 10px calc(12px + env(safe-area-inset-bottom,0px));border-radius:18px 18px 0 0;background:#1c1c20;transform:translateY(100%);transition:transform .22s cubic-bezier(.2,.8,.2,1)}
.yha-sheet.on .yha-sh-card{transform:none}
.yha-sh-grab{width:38px;height:4px;border-radius:2px;background:rgba(255,255,255,.2);margin:4px auto 10px}
.yha-sh-title{padding:0 8px 8px;color:rgba(255,255,255,.5);font-size:13px;font-weight:700}
.yha-sh-card button{display:flex;align-items:center;gap:14px;width:100%;height:52px;padding:0 10px;border:0;border-radius:12px;background:none;color:#fff;font-weight:600;font-size:15px;font-family:inherit;cursor:pointer;text-align:left}
.yha-sh-card button:active{background:rgba(255,255,255,.06)}
.yha-sh-card button.danger{color:#FF5A84}
.yha-sh-card button.cancel{justify-content:center;margin-top:6px;background:rgba(255,255,255,.06)}

@media (min-width:700px){
  .yha-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}
  .yha-kpis.three{grid-template-columns:repeat(3,minmax(0,1fr))}
  .yha-kpis.three .yha-kpi:last-child{grid-column:auto}
  .yha-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .yha-item{flex-direction:row;align-items:center}
  .yha-act{flex:none;width:250px}
  .yha-body{padding:18px 20px 32px}
  .yha-tabs{padding:0 20px}
}
