/* v3.53: scoped authentication and compact statistics; no global RTL override. */
/* v3.54: fully decoded logo, quiet cubes and inline registration. */
.auth-cubes{display:flex;gap:7px;align-items:center;height:22px}
.auth-cubes i{display:block;width:8px;height:8px;background:#f52078;border-radius:2px;animation:auth-cube 1s ease-in-out infinite}
.auth-cubes i:nth-child(2){animation-delay:120ms}.auth-cubes i:nth-child(3){animation-delay:240ms;background:#668cba}.auth-cubes i:nth-child(4){animation-delay:360ms;background:#668cba}
@keyframes auth-cube{0%,70%,100%{transform:translateY(0);opacity:.45}35%{transform:translateY(-6px);opacity:1}}
.auth-instant-logo{visibility:hidden;animation:none!important;transition:none!important;opacity:1!important}.auth-instant-logo.is-decoded{visibility:visible}
.auth-splash img.auth-instant-logo{animation:none!important}
.auth-registration{max-width:610px;width:100%;padding:26px}.auth-registration .field{font-size:12px}.auth-registration .form-grid{gap:12px}.auth-registration .modal-heading{margin-bottom:12px}.auth-registration .modal-heading h2{font-size:20px}.auth-registration>p{font-size:12px}.auth-registration .form-actions .btn{width:100%}.auth-registration .registration-calendar{z-index:3}.auth-registration .auth-terms{font-size:11px;line-height:2}
@media(max-width:767px){.auth-registration{max-width:610px}.auth-form-side:has(.auth-registration){padding-bottom:calc(24px + env(safe-area-inset-bottom))}}
@media(prefers-reduced-motion:reduce){.auth-cubes i{animation:none!important;opacity:.8}}
body.auth-active{background:#121826;color:#1f2937}body.auth-active #app{min-height:100dvh}.auth-layout{min-height:100dvh;display:grid;grid-template-columns:1fr 1fr;background:#121826;font-family:IRANSans,sans-serif}.auth-brand{position:relative;display:grid;place-items:center;overflow:hidden;padding:48px;color:#fff;background:radial-gradient(ellipse at 85% 20%,#1d324c88,transparent 60%),radial-gradient(ellipse at 20% 90%,#93144922,transparent 50%),#121826}.auth-brand:before{content:'';position:absolute;inset:0;background:linear-gradient(135deg,transparent 45%,#5182bb18 45.1%,transparent 45.5%,transparent 62%,#f5207815 62.1%,transparent 62.4%);pointer-events:none}.auth-brand-inner{max-width:430px;position:relative}.auth-logo{object-fit:contain;width:112px;height:112px;display:block;margin-bottom:32px;filter:drop-shadow(0 8px 18px #0004)}.auth-brand-kicker{color:#e76b9e;font-size:13px;letter-spacing:.2px}.auth-brand h1{font-size:clamp(25px,2.6vw,38px);line-height:1.9;margin:10px 0 20px;color:#fff}.auth-brand p{color:#b7c1cf;line-height:2.2;font-size:14px;max-width:390px}.auth-brand-foot{display:flex;align-items:center;gap:10px;color:#aab4c2;font-size:12px;margin-top:64px}.auth-brand-foot>span{width:25px;height:2px;background:#f52078}.auth-form-side{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:40px;background:#f6f7f9;min-width:0}.auth-card{width:min(100%,430px);padding:34px;background:#fff;border:1px solid #e6e8ec;border-radius:22px;box-shadow:0 16px 48px #17203308;animation:auth-enter 280ms ease both;box-sizing:border-box}.auth-eyebrow{font-size:12px;color:#83083b;font-weight:bold}.auth-card h2{font-size:25px;line-height:1.8;margin:7px 0;color:#172033}.auth-card-top p{font-size:12px;line-height:2;color:#6b7280;margin:0 0 22px}.auth-tabs{display:grid;grid-template-columns:1fr 1fr;background:#f3f4f6;border-radius:10px;padding:4px;margin-bottom:24px;gap:4px}.auth-tabs>*{font:inherit;font-size:12px;text-align:center;border:0;padding:10px 6px;border-radius:7px;color:#626c7b;background:none;min-height:42px}.auth-tabs>span{background:#fff;color:#172033;box-shadow:0 1px 4px #1720330a;font-weight:700}.auth-field{display:block;font-size:12px;font-weight:700;margin-bottom:5px;color:#374151}.auth-field>span{display:block;margin-bottom:9px}.auth-field input{width:100%;height:49px;border:1px solid #e5e7eb;border-radius:9px;background:#f5f6f8;color:#1f2937;padding:12px 14px;font:inherit;font-size:15px;box-sizing:border-box;min-width:0;transition:border-color 180ms,box-shadow 180ms}.auth-field input::placeholder{font-size:11px;text-align:right;direction:rtl;color:#7b8491;opacity:1}.auth-field input:focus{outline:0;border-color:#b21355;box-shadow:0 0 0 3px #f520781c;background:#fff}.auth-field input[aria-invalid=true]{border-color:#d92d20}.auth-field-error{display:block;min-height:24px;font-size:11px;color:#bd261c;line-height:2;padding-top:2px;font-weight:400}.auth-password{position:relative}.auth-password input{padding-inline-start:48px;padding-inline-end:14px}.auth-password>button{position:absolute;left:5px;top:3px;width:43px;height:43px;border:0;border-radius:7px;background:transparent;color:#6b7280;display:grid;place-items:center}.auth-password svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7}.auth-options{display:flex;justify-content:space-between;gap:8px;align-items:center;font-size:10px}.auth-options label{display:flex;align-items:center;gap:6px;min-height:44px;cursor:pointer;white-space:nowrap}.auth-options input{accent-color:#a7094a;width:17px;height:17px;margin:0}.auth-options button,.auth-legacy{font:inherit;background:none;border:0;color:#84083c;min-height:44px;font-size:10px;padding:4px;cursor:pointer}.auth-error{font-size:11px;color:#b42318;min-height:23px;line-height:2;margin:3px 0 12px;overflow-wrap:anywhere}.auth-submit{width:100%;height:49px;border:1px solid #f52078;border-radius:9px;background:#f52078;color:#172033;font:inherit;font-size:13px;font-weight:700;display:flex;align-items:center;justify-content:center;gap:10px;transition:background 180ms,box-shadow 180ms;cursor:pointer}.auth-submit>svg{width:18px;height:18px}.auth-submit:hover{background:#ed1971;box-shadow:0 4px 12px #f5207820}.auth-submit:disabled{cursor:wait;opacity:.85}.auth-submit.is-success{background:#701339;border-color:#701339;color:white}.auth-check{border:1px solid currentColor;border-radius:50%;width:22px;height:22px;line-height:22px;font-size:14px;animation:auth-enter 180ms ease}.auth-legacy{width:100%;margin-top:5px;color:#667085}.auth-footer{border-top:1px solid #eceef2;margin-top:13px;padding-top:17px;font-size:10px;line-height:2;text-align:center;color:#7a8290}.auth-security{font-size:10px;display:flex;gap:6px;align-items:center;color:#7c8694;margin-top:20px}.auth-security svg{width:14px;height:14px}.auth-preview-note{font-size:11px;color:#611132;background:#fff8e8;padding:10px;border-radius:8px;line-height:2}.auth-splash{position:fixed;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;background:radial-gradient(ellipse at 20% 90%,#f5207810,transparent 45%),radial-gradient(ellipse at 80% 10%,#3b82f615,transparent 50%),#121826;color:#fff;text-align:center;padding:24px}.auth-splash img{object-fit:contain;animation:auth-enter 300ms ease}.auth-splash h1{font-size:clamp(18px,3vw,27px);line-height:2;margin:4px 0 0}.auth-splash p{font-size:13px;color:#aeb9c8;margin:0}.auth-splash small{font-size:11px;color:#aeb9c8}.auth-spinner{display:inline-block;width:18px;height:18px;border:2px solid currentColor;border-inline-end-color:transparent;border-radius:50%;animation:auth-spin .7s linear infinite;box-sizing:border-box}.auth-splash .auth-spinner{color:#f52078;margin-top:22px}.auth-layout button:focus-visible{outline:3px solid #3b82f6;outline-offset:3px}.auth-dialog{background:white;color:#263238;width:min(580px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow-y:auto}.auth-dialog .field input,.auth-dialog .field select{background:#f5f6f8;color:#1f2937;min-height:45px}.auth-dialog select option{background:white;color:#1f2937}.auth-dialog .field{min-width:0}.auth-dialog .form-help,.auth-dialog>p{line-height:2;font-size:12px}.auth-dialog::backdrop{background:#090e1ba8}.auth-dialog[open]{animation:auth-enter 220ms ease}.auth-dialog .form-actions{position:sticky;bottom:-18px;background:#fff;padding-block:14px;margin-bottom:-8px;z-index:2}.auth-dialog .close{min-width:44px;min-height:44px}.auth-dialog .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.auth-terms{display:flex;align-items:center;gap:8px;font-size:12px;line-height:2;margin-block:12px}.auth-terms input{width:18px;height:18px;accent-color:#a7094a}.auth-dialog button:focus-visible{outline:3px solid #3b82f6;outline-offset:2px}
@keyframes auth-enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes auth-spin{to{transform:rotate(360deg)}}
@media(max-width:767px){.auth-layout{display:flex;flex-direction:column}.auth-brand{padding:calc(28px + env(safe-area-inset-top)) 22px 28px;min-height:210px;box-sizing:border-box;place-items:start center}.auth-brand-inner{text-align:center;width:100%;max-width:420px}.auth-logo{width:76px;height:76px;margin:0 auto 12px}.auth-brand h1{font-size:20px;line-height:1.9;margin:7px 0 0}.auth-brand-kicker{font-size:11px}.auth-brand p,.auth-brand-foot{display:none}.auth-form-side{border-radius:28px 28px 0 0;background:white;padding:26px max(22px,env(safe-area-inset-right)) calc(18px + env(safe-area-inset-bottom)) max(22px,env(safe-area-inset-left));flex:1}.auth-card{padding:0;border:0;border-radius:0;box-shadow:none;max-width:430px}.auth-card h2{font-size:23px}.auth-card-top p{margin-bottom:18px}.auth-tabs{margin-bottom:22px}.auth-security{margin-bottom:0}.auth-dialog .form-grid{grid-template-columns:1fr}.auth-field input{font-size:16px}.auth-options{flex-wrap:wrap;gap:0 8px}}
@media(prefers-reduced-motion:reduce){.auth-layout *,.auth-dialog,.auth-splash *{animation:none!important;transition:none!important}.auth-spinner{border-style:dotted}}
/* Statistics: four compact reports on wide screens; long data wraps instead of scrolling. */
.s49-section{padding:16px;margin:20px 0 26px}.s49-section-title{gap:10px;margin-bottom:15px}.s49-section-title h2{font-size:18px}.s49-section-title p{font-size:11px;line-height:1.9}.s49-section-title>span{height:34px;min-width:34px;border-radius:10px;font-size:17px}.s49-kpis{gap:10px;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));margin-bottom:14px}.s49-kpi{padding:12px;border-radius:10px;gap:5px}.s49-kpi strong{font-size:21px}.s49-kpi small{font-size:11px}.s49-kpi>span{font-size:10px}.s49-section .analytics-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}.s49-chart:last-child:nth-child(odd){grid-column:auto}.s49-chart{min-width:0;overflow:visible}.s49-chart .card-head{padding:12px;gap:5px;flex-wrap:wrap;min-height:63px;box-sizing:border-box;align-content:center}.s49-chart .card-head h2{font-size:12px;line-height:1.9}.s49-chart .card-body{padding:12px;min-width:0}.s49-chart .chart-note{font-size:10px;line-height:1.9;margin:10px 0 0}.s49-chart .column-chart-scroll,.s50-group-scroll{overflow:visible;max-width:100%}.s49-chart .column-chart{display:grid;grid-template-columns:repeat(auto-fit,minmax(42px,1fr));gap:8px;min-width:0;min-height:150px;padding:0}.s49-chart .column-space{height:117px;min-height:0}.s49-chart .column-space i{max-height:96px;width:min(24px,75%);border-radius:4px 4px 1px 1px}.s49-chart .column-space b{font-size:10px}.s49-chart .chart-column{min-width:0;width:auto}.s49-chart .chart-column>span{font-size:10px;max-width:100%;overflow-wrap:anywhere;white-space:normal;line-height:1.8}.s49-line{min-height:0;max-height:180px}.s49-legend{gap:7px 10px;font-size:10px;margin:8px 0}.s49-legend i{width:8px;height:8px}.s49-stacks{max-height:none;overflow:visible;gap:12px;padding:0}.s49-stack{height:16px;margin:6px 0}.s49-stacks .metric-bar-label{font-size:10px}.s49-stacks small{font-size:10px}.s49-donut-layout{gap:12px;padding:4px}.s49-donut{width:116px;height:116px}.s49-donut>div{width:90px;height:90px;gap:4px}.s49-donut strong{font-size:21px}.s49-donut small{font-size:9px}.s49-donut-layout p{font-size:11px}.s49-empty{min-height:140px;padding:12px;gap:9px}.s49-empty p{font-size:11px;line-height:1.9}.s49-empty svg{width:25px;height:25px}.s50-groups{display:grid;grid-template-columns:repeat(auto-fit,minmax(68px,1fr));gap:12px 8px;min-width:0;padding:0}.s50-group{min-width:0;max-width:none;gap:5px}.s50-pair{height:120px;gap:3px}.s50-pair>div{min-width:0;flex:1;gap:5px}.s50-pair i{width:min(19px,100%)}.s50-pair b{font-size:10px}.s50-group>strong,.s50-group small{font-size:10px;line-height:1.8;overflow-wrap:anywhere}.s49-goals>div{padding:10px 0}.s49-goals h3{font-size:11px}.s49-records{gap:10px;margin:14px 0}.s49-records article{padding:12px;border-radius:10px}.s49-records h3{font-size:13px;margin:6px 0}.s49-records p{font-size:11px}.s49-tabs{flex-wrap:wrap;overflow:visible;gap:6px}.s49-tabs button{font-size:11px;padding:8px 10px}.s49-compare-controls{gap:8px}
@media(min-width:1280px){.s49-section .analytics-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:600px){.s49-section{padding:12px}.s49-section .analytics-grid{grid-template-columns:1fr}.s49-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.s49-chart .card-head{min-height:0}.s49-section-title h2{font-size:15px}}

.s53-chart-page[hidden]{display:none!important}.s53-chart-pagination{display:flex;justify-content:space-between;align-items:center;gap:6px;border-top:1px solid #eef0f3;padding-top:9px;margin-top:10px}.s53-chart-pagination button{background:#f6f7f9;color:#546174;border:1px solid #e6e8ec;border-radius:6px;min-height:34px;padding:4px 9px;font-size:10px}.s53-chart-pagination button:focus-visible{outline:2px solid #a8074a}.s53-chart-pagination span,.s53-chart-total{font-size:10px;color:#6b7280}.s53-chart-total{display:block;margin-top:7px}.s49-chart .s49-line text{font-size:13px}.s49-chart .hours-line-chart{width:100%;height:auto;min-height:0;max-height:180px}.s49-chart .hours-line-chart text{font-size:24px}.s49-chart .s50-compare-controls{gap:7px;margin-bottom:10px}.s49-chart .s50-compare-controls .field{min-width:0;width:100%;flex:auto;font-size:10px}.s49-chart .s50-compare-controls select{font-size:11px;padding:6px;width:100%;min-width:0}.s49-chart .analytics-eyebrow{font-size:9px}.s49-chart .pill{font-size:9px;max-width:100%;white-space:normal}

.s49-chart .column-chart{grid-template-columns:repeat(var(--column-count),minmax(0,1fr))}.s49-stacks{line-height:1.7}.s49-stacks .metric-bar-label{display:flex;align-items:start;gap:4px;line-height:1.7}.s49-stacks .metric-bar-label strong{font-size:10px;line-height:1.7;font-weight:600;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.s49-stacks .metric-bar-label>span{font-size:10px;flex-shrink:0}.s49-stacks small{font-size:9px;line-height:1.7}.s49-legend{line-height:1.6}.s50-group>strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.7}.s53-data-details{font-size:10px;margin-top:9px;color:#526174}.s53-data-details summary{cursor:pointer;min-height:30px;padding-block:4px;color:#800f3e}.s53-data-details dt{font-weight:700;line-height:1.8}.s53-data-details dd{margin:3px 0 10px;line-height:1.8}.s49-chart .column-chart .chart-column>span{line-height:1.7}.s49-chart .card-head h2{font-size:12px!important}.s49-chart .s50-pair{height:117px}.auth-brand-copy{color:#dde4ee!important;font-size:15px!important;margin-bottom:9px!important}.auth-contact{font-size:11px;text-align:center;margin-top:12px;color:#6b7280}.auth-contact a{color:#7f0b3b;display:inline-block;direction:ltr;unicode-bidi:isolate;margin-inline:6px}
@media(min-width:1280px){.s49-section .analytics-grid:not(:has(>.s49-chart:nth-child(3))){grid-template-columns:repeat(2,minmax(0,1fr))}}

.s49-stacks .metric-bar-label{flex-wrap:nowrap}.s49-stacks .metric-bar-label strong{flex:1;min-width:0}.s49-stacks .metric-bar-label>span{max-width:42px}.s49-stacks small{display:block;margin-top:4px}.s53-chart-help{font-size:10px;line-height:1.9;color:#667085;margin-top:10px;border-top:1px solid #f0f1f4;padding-top:4px}.s53-chart-help summary{cursor:pointer;min-height:32px;padding-block:5px;color:#6f1b3e}.s53-chart-help p{font-size:10px;line-height:1.9;margin:6px 0 0}.s53-chart-help summary:focus-visible{outline:2px solid #a8074a;outline-offset:2px}
/* Equal report cards without clipping data, nested scrolling or oversized empty areas. */
.s49-section .analytics-grid{align-items:stretch;grid-auto-rows:minmax(270px,auto)}
.s49-chart{display:flex;flex-direction:column;margin:0;min-height:270px;align-self:stretch}
.s49-chart .card-head{flex-shrink:0;min-height:65px;padding:10px 12px;align-items:center}
.s49-chart .card-body{flex:1;display:flex;flex-direction:column;gap:8px;padding:10px 12px}
.s49-chart .card-body>.s53-chart-help{margin-top:auto;padding-top:4px}
.s49-chart .s53-chart-help[open]{margin-top:8px}
.s49-chart .s49-empty{flex:1;min-height:130px}
.s49-chart .column-chart{min-height:153px}.s49-chart .s49-donut-layout{min-height:150px;flex:1}
.s49-kpis{align-items:stretch}.s49-kpi{min-height:96px;display:flex;flex-direction:column;justify-content:space-between}
.s49-kpi>span{min-height:18px}.s49-section{margin-block:16px;padding:14px}
.ws-kpi{min-height:132px;gap:8px;padding:16px}.ws-kpis{gap:12px}
.ws-card{display:flex;flex-direction:column}.ws-card-body{flex:1;min-height:0;padding:14px}.ws-card-head{min-height:58px;padding:14px}
.ws-empty{min-height:145px;padding:15px}.ws-grid{gap:14px;align-items:stretch}
@media(min-width:1280px){.s49-section .analytics-grid,.s49-section .analytics-grid:not(:has(>.s49-chart:nth-child(3))){grid-template-columns:repeat(4,minmax(0,1fr))}.ws-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){.s49-section .analytics-grid{grid-template-columns:1fr}.s49-kpi{min-height:100px}.ws-kpi{min-height:132px}.s49-chart{min-height:260px}.ws-grid{grid-template-columns:1fr}}
