/* Private shell: hidden until /api/me confirms administrative access. */
#admin:not(.admin-authorized)>.adm-layout{display:none!important}
#admin.admin-authorized>.adm-login-screen{display:none!important}
#admin .adm-login-screen{position:relative;z-index:1;width:min(520px,calc(100% - 40px));margin:0 auto;min-height:90vh;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:50px 0}
#admin .adm-login-screen img{object-fit:contain;filter:brightness(0) invert(1)}
#admin .adm-login-screen h1{font-size:46px;margin:24px 0 10px}
#admin .adm-login-screen>p,#admin .adm-gate{font-size:26px;line-height:1.6;color:#d3c2df}
#admin .adm-gate{margin:12px 0 24px}
#admin .adm-gate button{display:block;margin:18px auto 0}
#authDialog{font-family:Lateef,serif}
#authDialog h2{font-size:36px}
#authDialog p,#authDialog label,#authDialog .btn{font-size:25px}
#authDialog input{min-height:48px;font-size:18px;font-family:Arial,sans-serif}
#admin .adm-analytics{display:grid;grid-template-columns:1.1fr 1fr;gap:20px;align-items:stretch}
#admin .adm-analysis-panel{padding:24px;min-width:0;border-radius:18px}
#admin .adm-analysis-panel h2{font-size:29px;margin:0 0 5px;line-height:1.4}
#admin .adm-analysis-subtitle{font-size:22px;color:#c9b7da;margin:0 0 20px;line-height:1.5}
#admin .adm-trend{display:block;width:100%;height:auto;overflow:visible;direction:ltr}
#admin .adm-trend-grid line{stroke:#bc91df28;stroke-width:1}
#admin .adm-trend text{font:18px Arial,sans-serif;fill:#cbb8de}
#admin .adm-trend .adm-trend-date{font:22px Lateef,serif;fill:#e7d9f1}
#admin .adm-analysis-total{color:#d2b9eb;text-align:center;font-size:22px;margin:10px 0 0}
#admin .adm-distribution{display:flex;align-items:center;justify-content:center;gap:28px;direction:ltr;padding:16px 0}
#admin .adm-status-donut{width:178px;height:178px;flex:0 0 178px;border-radius:50%;display:grid;place-items:center}
#admin .adm-status-donut>div{width:126px;height:126px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#241133;border-radius:50%;direction:rtl}
#admin .adm-status-donut strong{font:600 34px/1.1 Arial,sans-serif;color:white}
#admin .adm-status-donut span{font-size:27px;line-height:1.4;color:#e4d2ef}
#admin .adm-analysis-legend{direction:rtl;flex:1;margin:0;min-width:145px}
#admin .adm-analysis-legend>div{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:8px 0;border-bottom:1px solid #b992db24}
#admin .adm-analysis-legend dt{display:flex;align-items:center;gap:9px;font-size:23px;line-height:1.35}
#admin .adm-analysis-legend i{width:10px;height:10px;flex:0 0 10px;border-radius:3px}
#admin .adm-analysis-legend dd{font:18px Arial,sans-serif;margin:0}
@media(max-width:1200px){#admin .adm-analytics{grid-template-columns:1fr}#admin .adm-distribution{max-width:540px;margin:auto}#admin .adm-trend{max-height:310px}}
@media(max-width:480px){#admin .adm-analysis-panel{padding:18px 14px}#admin .adm-analysis-panel h2{font-size:27px}#admin .adm-distribution{flex-direction:column;gap:16px}#admin .adm-analysis-legend{width:100%}#admin .adm-trend .adm-trend-date{font-size:25px}#admin .adm-trend text{font-size:23px}#admin .adm-analysis-subtitle{font-size:22px}}

#authDialog{width:min(520px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;margin:auto;padding:24px}
#authDialog .dialog-header{gap:14px;align-items:center}
#authDialog .dialog-header h2{margin:0;line-height:1.3}
#authDialog #closeAuth{width:40px;min-width:40px;max-width:40px;height:40px;min-height:40px;padding:0;margin:0;flex:0 0 40px;font:28px/1 Arial,sans-serif}
#authDialog #authForm button{width:100%;margin-top:20px;min-height:48px}
@media(max-width:480px){#authDialog{padding:20px}#authDialog p,#authDialog label{font-size:24px}#authDialog h2{font-size:32px}}
