/* Your Turn v1.0.5 admin analytics dashboard; isolated to admin panes */
#admin .admin-pane[data-admin-pane="analytics"] .admin-panel,#admin .admin-pane[data-admin-pane="overview"] .admin-panel{border:0;background:transparent;padding:0;margin:14px 0}
#admin .yt-section-head{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;margin:15px 0}
#admin .yt-section-head h3{margin:3px 0 6px;color:#f4f8fe;font-size:20px}
#admin .yt-section-head p{margin:0;color:#b2c9e3;font-size:12px}
#admin .yt-eyebrow{font-size:10px;letter-spacing:2px;color:#e6bd6b;font-weight:700}
#admin .yt-status{background:#1b3857;padding:7px 10px;border-radius:999px;border:1px solid #48617b;color:#cfe0ef;font-size:11px;white-space:nowrap}
#admin .yt-status.ok{border-color:#458c77;color:#9be5c2}#admin .yt-status.bad{color:#ffc1b5;border-color:#ac6262}
#admin .yt-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:14px 0 19px}
#admin .yt-kpi{background:linear-gradient(155deg,#1f4165,#142b47);padding:14px;border:1px solid #3c5a78;border-radius:13px;min-width:0;display:flex;flex-direction:column;gap:4px}
#admin .yt-kpi span{color:#b9cce3;font-size:11px}#admin .yt-kpi strong{font-size:clamp(19px,2.8vw,27px);color:#f6ce7d;line-height:1.35}#admin .yt-kpi small{font-size:10px;color:#95aecb}
#admin .yt-panels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0}
#admin .yt-panel{background:#152c49;border:1px solid #3a5473;border-radius:14px;padding:15px;min-width:0}
#admin .yt-panel h4{color:#f1f5fc;margin:0 0 13px;font-size:15px}#admin .yt-panel h5{color:#cfdfef;margin:13px 0 9px;font-size:12px}
#admin .yt-chart-head{display:flex;align-items:center;justify-content:space-between;gap:5px}#admin .yt-chart-head span{color:#a7bed9;font-size:10px}
#admin .yt-chart{display:flex;height:170px;gap:3px;align-items:end;margin:4px 0 10px;overflow:hidden;padding:8px 0;border-bottom:1px solid #405d79}
#admin .yt-chart-col{flex:1;min-width:0;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:3px}
#admin .yt-chart-bar{background:linear-gradient(#f2cf83,#b98939);width:70%;min-width:4px;max-width:22px;border-radius:4px 4px 0 0;flex-shrink:0}
#admin .yt-chart-count{font-size:9px;color:#fff;min-height:11px;white-space:nowrap}#admin .yt-chart-col small{font-size:9px;color:#b7c7da;height:12px;white-space:nowrap}
#admin .yt-flow{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:14px 0}#admin .yt-flow>div{border:1px solid #43627e;border-radius:10px;background:#203b5c;padding:10px 7px;display:flex;flex-direction:column;gap:7px;min-width:0}
#admin .yt-flow small{color:#dfb96f;font-size:10px}#admin .yt-flow span{font-size:10px;color:#cad9ed}#admin .yt-flow strong{color:#fff;font-size:18px}
#admin .yt-activity>div{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:5px 15px;padding:10px 0;border-bottom:1px solid #344e69;font-size:12px}
#admin .yt-activity strong{font-size:12px;color:#e4eefb;min-width:0;overflow-wrap:anywhere}#admin .yt-activity small,#admin .yt-activity span{color:#a5bbd5;font-size:11px}
#admin .yt-help{font-size:11px;color:#a6bbd4;line-height:1.7;margin:12px 0 5px}#admin .yt-empty{color:#c1d0e0;font-size:12px;line-height:1.6}
#admin .yt-state-row{display:flex;justify-content:space-between;align-items:start;gap:10px;padding:10px 0;border-bottom:1px solid #344e69;font-size:12px}#admin .yt-state-row span{color:#b2c8e2}#admin .yt-state-row b{color:#e6f0fb;text-align:right;overflow-wrap:anywhere}
#admin .yt-progress-row{margin:12px 0;display:grid;grid-template-columns:1fr auto;gap:7px;color:#b2c8e2;font-size:12px}#admin .yt-progress-row strong{color:#e8d2a7}#admin .yt-progress{grid-column:1/-1;height:7px;background:#344d69;border-radius:8px;overflow:hidden}#admin .yt-progress i{background:#e3b960;height:100%;display:block;border-radius:8px}
@media(max-width:720px){#admin .yt-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}#admin .yt-panels{grid-template-columns:1fr}#admin .yt-flow{grid-template-columns:repeat(2,minmax(0,1fr))}#admin .yt-panel{padding:12px}}

/* Your Turn v1.0.6: high contrast, mobile-first operator dashboard */
#admin.admin-workspace{color:#edf5ff}
#admin .admin-header{gap:10px}
#admin .admin-header h2{color:#fff}
#admin .admin-header p{color:#c0d2e9}
#admin .admin-panel,#admin .admin-pane,#admin #adminAnalytics,#admin #adminOverview{color:#edf5ff}
#admin .yt-panel,#admin .yt-panel *,#admin .yt-kpi,#admin .yt-kpi *{box-sizing:border-box}
#admin .yt-panel h4,#admin .yt-panel h5,#admin .yt-chart-head h4,#admin .yt-section-head h3{color:#fff!important;text-shadow:none!important;opacity:1!important}
#admin .yt-activity strong,#admin .yt-state-row b,#admin .yt-progress-row strong{color:#f3f7ff!important}
#admin .yt-activity small,#admin .yt-activity span,#admin .yt-help,#admin .yt-state-row span,#admin .yt-progress-row span{color:#b9cce5!important}
#admin .yt-chart-summary{font-size:12px;color:#c4d5e9;margin:3px 0 8px}
#admin .yt-chart-summary b{color:#f4cd82;font-size:16px}
#admin .yt-chart{height:180px;overflow:visible;display:grid;grid-template-columns:repeat(14,minmax(0,1fr));gap:3px;align-items:stretch;margin:10px 0 4px;padding:0 2px 6px;border:0}
#admin .yt-chart-col{display:flex;min-width:0;height:100%;flex-direction:column;justify-content:flex-end;align-items:center;gap:3px}
#admin .yt-chart-count{color:#e8effa;min-height:15px;font-size:10px;font-weight:700;line-height:15px}
#admin .yt-chart-bar{height:var(--bar-height)!important;width:min(100%,18px);min-height:0;max-height:115px;background:linear-gradient(180deg,#f6d38d,#bf903c);border-radius:5px 5px 2px 2px;flex:0 0 auto}
#admin .yt-chart-col small{height:18px;color:#c5d4e7;font-size:9px;line-height:18px}
#admin .yt-kpis{gap:10px}
#admin .yt-kpi{min-height:94px;justify-content:space-between;background:#1b385a}
#admin .yt-kpi:nth-child(-n+4){background:linear-gradient(135deg,#224b75,#183856);border-color:#59748e}
#admin .yt-kpi span{color:#d0dfef!important}
#admin .yt-kpi strong{font-weight:800;font-variant-numeric:tabular-nums}
#admin .yt-panel{box-shadow:0 5px 18px rgba(0,0,0,.12)}
#admin .yt-sync-latest{padding:13px 14px;border:1px solid #4d6986;background:#1b3b5d;border-radius:12px;display:grid;gap:5px}
#admin .yt-sync-latest span{font-size:11px;color:#aac1dc}
#admin .yt-sync-latest b{color:#f2d090;font-size:13px}
#admin .yt-sync-latest strong{color:#f3f8ff;font-size:14px}
#admin .yt-sync-latest p{margin:1px 0 0;font-size:12px;color:#c6d6e9;line-height:1.5;overflow-wrap:anywhere}
#admin .yt-sync-details{margin-top:10px;border:1px solid #415e7b;border-radius:10px;padding:11px 13px}
#admin .yt-sync-details summary{cursor:pointer;font-size:12px;font-weight:700;color:#efc87e}
#admin .yt-sync-details[open] .yt-activity{margin-top:10px}
#admin .yt-activity>div{line-height:1.5}
#admin .admin-tabs button{min-width:0}
@media(max-width:720px){
 #admin .admin-header{padding:0!important;margin:0 0 12px!important;align-items:center!important}
 #admin .admin-header .admin-eyebrow{letter-spacing:1.2px;font-size:10px}
 #admin .admin-header h2{font-size:23px!important;margin:5px 0!important}
 #admin .admin-header p{font-size:12px!important;line-height:1.45!important;margin:0!important}
 #admin .admin-header #logout{padding:7px 10px!important;font-size:11px!important;min-height:32px!important;opacity:1!important;color:#f4f7ff!important}
 #admin .admin-tabs{margin:12px 0!important;gap:3px!important;padding:4px!important}
 #admin .admin-tabs button{padding:10px 5px!important;font-size:12px!important;white-space:nowrap}
 #admin .admin-pane[data-admin-pane="analytics"] .admin-panel,#admin .admin-pane[data-admin-pane="overview"] .admin-panel{margin:5px 0!important}
 #admin .admin-section-heading{gap:8px!important;flex-wrap:wrap!important}
 #admin .admin-section-heading h3{font-size:18px!important}
 #admin #analyticsPeriod{min-width:118px!important;width:auto!important;max-width:55%!important;padding:9px 10px!important;font-size:12px!important}
 #admin .yt-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px!important;margin:10px 0 15px!important}
 #admin .yt-kpi{padding:12px!important;min-height:90px}
 #admin .yt-kpi span{font-size:12px!important}
 #admin .yt-kpi strong{font-size:23px!important;line-height:1.1!important}
 #admin .yt-kpi small{font-size:10px!important;line-height:1.4!important}
 #admin .yt-panels{grid-template-columns:minmax(0,1fr)!important;gap:10px!important}
 #admin .yt-panel{padding:14px!important;border-radius:14px!important}
 #admin .yt-chart{height:160px;gap:2px}
 #admin .yt-chart-bar{max-height:100px;width:min(100%,16px)}
 #admin .yt-chart-count{font-size:9px}
 #admin .yt-flow{gap:7px}
 #admin .yt-flow>div{padding:10px!important}
 #admin .yt-flow strong{font-size:20px!important}
 #admin .yt-activity>div{font-size:12px!important}
}

/* v1.0.8 operational health overview */
#admin .yt-health-hero{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;border:1px solid #557698;border-radius:17px;padding:17px 19px;margin:8px 0 12px;background:linear-gradient(125deg,#21496d,#142d4d)}
#admin .yt-health-hero.ok{border-color:#407e72}#admin .yt-health-hero.warn{border-color:#c99b50}#admin .yt-health-hero.bad{border-color:#c16e64}
#admin .yt-health-hero h3{color:#fff;margin:5px 0;font-size:21px}#admin .yt-health-hero p{color:#c9d9eb;margin:0;font-size:12px}
#admin .yt-health-refresh{background:#e8f1fe;color:#142b48;border:0;border-radius:10px;padding:10px 12px;cursor:pointer;font-weight:800;font-size:12px}#admin .yt-health-refresh:disabled{opacity:.6}
#admin .yt-health-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin-bottom:12px}
#admin .yt-health-grid .yt-panel{margin:0}#admin .yt-health-title{display:flex;align-items:center;justify-content:space-between;gap:7px;margin-bottom:10px}
#admin .yt-health-title h4{margin:0!important;color:#fff!important}#admin .yt-health-value{font-size:26px;line-height:1.1;color:#f2cc86;display:block;margin-bottom:13px}
#admin .yt-health-chip{font-size:10px;white-space:nowrap;font-weight:800;border-radius:99px;padding:4px 7px;border:1px solid #66819d;color:#c9def1}
#admin .yt-health-chip.ok{color:#a6f1c9;border-color:#387e65}#admin .yt-health-chip.warn{color:#ffe2a8;border-color:#af854c}#admin .yt-health-chip.bad{color:#ffd1c8;border-color:#ba6464}
#admin .yt-alert-panel{margin:0 0 12px}#admin .yt-alert-list{padding-left:20px;margin:8px 0;color:#ffe0aa;font-size:12px;line-height:1.8}#admin .yt-healthy{color:#aee8ce;font-size:12px;line-height:1.6;margin:0}
#admin .yt-check-external{margin-top:12px}#admin .yt-check-external .yt-state-row b{color:#e5cb93}
@media(max-width:720px){#admin .yt-health-grid{grid-template-columns:1fr;gap:9px}#admin .yt-health-hero{padding:14px}#admin .yt-health-hero h3{font-size:19px}#admin .yt-health-hero p{font-size:11px}#admin .yt-health-refresh{padding:8px 10px}#admin .yt-health-value{font-size:24px}}

/* v1.0.9 — usage bar is painted directly by the track, not inherited i-width styling.
   Percentage matches the numeric API value, including for 0%. */
#admin .yt-progress{display:block!important;width:100%!important;min-width:0!important;height:9px!important;border-radius:100px!important;overflow:hidden!important;background:linear-gradient(to right,#e8b967 0%,#e8b967 var(--yt-fill,0%),#344d69 var(--yt-fill,0%),#344d69 100%)!important;border:1px solid rgba(226,238,253,.18)!important;box-sizing:border-box!important;}
#admin .yt-progress>i{display:none!important;}
#admin .yt-metric-help{font-size:11px;line-height:1.55;color:#b5c8de;margin:2px 0 0;}
