/* YELLA v1.2.10 — compact amber dashboard stats, faithful to the approved reference.
   Scoped to Admin only. All metrics retain the existing Supabase queries and routes. */
#page-admin .yad-stats{
  display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;
  margin:0 0 18px;align-items:stretch;
}
#page-admin .yad-stat{
  display:grid;grid-template-columns:40px minmax(0,1fr) 25px;
  align-items:center;column-gap:9px;position:relative;min-height:110px;
  padding:17px 13px;color:#eff8fc;
  border-radius:13px;border:1px solid #285363;
  background:linear-gradient(154deg,rgba(9,38,51,.98) 0%,rgba(4,30,42,.98) 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025),0 6px 18px rgba(0,7,12,.1);
  text-align:left;gap:9px;cursor:pointer;
  transition:border-color .2s ease,background-color .2s ease,transform .2s ease;
}
#page-admin .yad-stat:hover{
  border-color:rgba(247,190,65,.65);background:#0a3341;transform:translateY(-2px);
}
#page-admin .yad-stat:active{transform:translateY(0)}
#page-admin .yad-stat:focus-visible{outline:2px solid #f8c54f;outline-offset:3px}
#page-admin .yad-stat-icon{position:static;display:flex;align-items:center;justify-content:center;opacity:1;color:#f9be47;filter:drop-shadow(0 0 6px rgba(238,170,30,.22));}
#page-admin .yad-stat-icon.blue,#page-admin .yad-stat-icon.warn{color:#f9be47}
#page-admin .yad-stat-icon svg{width:36px;height:36px;stroke:currentColor;flex:none}
#page-admin .yad-stat-content{display:flex;flex-direction:column;align-items:flex-start;min-width:0;gap:2px}
#page-admin .yad-stat-number{font-family:Inter,'DM Sans',system-ui,sans-serif;font-size:31px;line-height:1.05;letter-spacing:-.055em;font-weight:850;color:#f8fbfe;white-space:nowrap;margin:0 0 3px}
#page-admin .yad-stat strong{font-family:'DM Sans',Inter,system-ui,sans-serif;color:#f4fafb;font-size:11.5px;font-weight:650;line-height:1.25;letter-spacing:-.012em}
#page-admin .yad-stat-detail{display:block;color:#a6bec8;font-size:10px;line-height:1.35;margin-top:5px;font-weight:450;white-space:normal}
#page-admin .yad-stat-detail.yad-week-positive{color:#8fcaa1}
#page-admin .yad-week-arrow{color:#58e16d;font-weight:900;font-size:14px;line-height:0;display:inline-block;transform:translateY(1px);margin-right:2px}
#page-admin .yad-unread-dot{width:8px;height:8px;border-radius:50%;background:#fe5d65;display:inline-block;margin-right:5px;vertical-align:middle;box-shadow:0 0 0 2px rgba(254,93,101,.08)}
#page-admin .yad-unread-dot[hidden]{display:none}
#page-admin .yad-stat-chevron{display:grid;place-items:center;width:27px;height:27px;flex:none;border-radius:50%;background:#153744;color:#e7f3f7;justify-self:end;transition:background .15s ease}
#page-admin .yad-stat-chevron svg{width:15px;height:15px;stroke-width:2.4}
#page-admin .yad-stat:hover .yad-stat-chevron{background:#294f5d;color:#ffd05d}
@media (min-width:1400px){
 #page-admin .yad-stats{gap:12px}
 #page-admin .yad-stat{grid-template-columns:40px minmax(0,1fr) 27px;column-gap:10px;padding:19px 14px;min-height:120px}
 #page-admin .yad-stat-icon svg{width:40px;height:40px}
 #page-admin .yad-stat strong{font-size:12px}
 #page-admin .yad-stat-number{font-size:34px}
 #page-admin .yad-stat-detail{font-size:10.5px}
}
@media (max-width:1190px){
 #page-admin .yad-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
 #page-admin .yad-stat{min-height:104px}
}
@media (max-width:700px){
 #page-admin .yad-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:14px}
 #page-admin .yad-stat{grid-template-columns:29px minmax(0,1fr) 20px;column-gap:7px;padding:13px 10px;min-height:103px;border-radius:11px}
 #page-admin .yad-stat-icon svg{width:28px;height:28px}
 #page-admin .yad-stat-number{font-size:27px}
 #page-admin .yad-stat strong{font-size:11px}
 #page-admin .yad-stat-detail{font-size:9.5px;margin-top:4px}
 #page-admin .yad-stat-chevron{width:20px;height:20px}
 #page-admin .yad-stat-chevron svg{width:13px;height:13px}
 #page-admin .yad-stat:last-child{grid-column:span 2;grid-template-columns:35px minmax(0,1fr) 25px;min-height:84px}
 #page-admin .yad-stat:last-child .yad-stat-icon svg{width:32px;height:32px}
}
@media (max-width:370px){
 #page-admin .yad-stat{grid-template-columns:26px minmax(0,1fr) 18px;gap:5px;padding:11px 8px;min-height:100px}
 #page-admin .yad-stat-icon svg{width:25px;height:25px}
 #page-admin .yad-stat-number{font-size:25px}
 #page-admin .yad-stat strong{font-size:10px}
 #page-admin .yad-stat-detail{font-size:9px}
 #page-admin .yad-stat-chevron{width:18px;height:18px}
}
@media (prefers-reduced-motion:reduce){#page-admin .yad-stat{transition:none}}
