@font-face{font-family:Vazir;src:url('fonts/Vazirmatn.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}
:root{--bg:#f7f8fc;--panel:#fff;--ink:#24263e;--muted:#62677e;--line:#e4e6f0;--purple:#6151c8;--deep:#4c3ba4;--lav:#eeebff;--mint:#e2f5ef;--green:#19755e;--amber:#9a651b;--peach:#fff1df;--hero:#efecfc;--rail:15.5rem;color-scheme:light}
.dark{--bg:#181a29;--panel:#222536;--ink:#f2effa;--muted:#b9bdce;--line:#3a3d54;--purple:#b7aaff;--deep:#d7cfff;--lav:#38304f;--mint:#223e3a;--green:#9cddc6;--amber:#ffd29b;--peach:#48372a;--hero:#302b47;color-scheme:dark}
html{font-size:100%;-webkit-text-size-adjust:100%}html.large{font-size:119%}*{box-sizing:border-box}body{margin:0;background:#f7f8fc;background:var(--bg);color:#24263e;color:var(--ink);font:1.04rem/1.82 Vazir,Tahoma,Arial,sans-serif;overflow-wrap:break-word}button,input,textarea,select{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}a{color:inherit;text-decoration:none}a,button{touch-action:manipulation}button{cursor:pointer;color:inherit}button:disabled{opacity:.55;cursor:default}button:focus,a:focus,input:focus,select:focus,textarea:focus,summary:focus{outline:3px solid #947ae7;outline-offset:3px}button:focus:not(:focus-visible),a:focus:not(:focus-visible){outline:none}img,svg,video{max-width:100%}button{border:0;background:none}h1,h2,h3,p{margin:0}h1,h2,h3{line-height:1.55}.icon{width:1.38rem;height:1.38rem;flex:none;vertical-align:middle}.skip{position:fixed;top:-150px;background:white;padding:10px;z-index:99}.skip:focus{top:0}
#shell{min-height:100vh}#rail{position:fixed;right:0;top:0;bottom:0;width:var(--rail);background:var(--panel);border-left:1px solid var(--line);display:flex;flex-direction:column;padding:2.1rem 1.15rem 1.25rem;z-index:3;overflow:auto}.workspace{margin-right:var(--rail);min-width:0}#top,main{max-width:89rem;margin:auto;padding-right:3.2vw;padding-left:3.2vw}#top{height:5.7rem;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);background:var(--panel);max-width:none}main{padding-top:2rem;padding-bottom:3rem;outline:0}.brand,.brand-name,.navitem,.flex,.action,.utility,.top-left,.heading,.card-head,.legend,.pair,.sect,.pill,.userbox,.label-icon,.eyebrow,.hero-actions,.productline,.form-actions,.rowlink,.status,.switchline{display:flex;align-items:center}.brand{gap:.65rem}.brand img{width:3.1rem;height:3.1rem}.brand-name{align-items:flex-start;flex-direction:column}.brand-name strong{font-size:1.9rem;line-height:1.27}.brand-name small{font-size:.85rem;color:var(--muted)}#rail .brand{margin:0 .6rem 2.8rem}.navitem{gap:.9rem;min-height:3.3rem;padding:.53rem 1rem;margin:.27rem 0;border-radius:.85rem;color:var(--muted);font-size:1.04rem}.navitem:hover,.rowlink:hover{background:var(--bg)}.navitem.active{color:var(--deep);font-weight:bold;background:var(--lav)}.nav-divider{height:1px;background:var(--line);margin:1.3rem .6rem}.rail-foot{margin-top:auto;padding-top:2rem}.userbox{width:100%;gap:.7rem;border-top:1px solid var(--line);padding:.95rem .3rem 0;text-align:right}.userbox .small{display:block;color:var(--muted);font-size:.83rem}.avatar,.bubble{display:inline-flex;align-items:center;justify-content:center;flex:none;border-radius:1rem;background:var(--lav);color:var(--purple);width:3rem;height:3rem}.avatar{border-radius:50%;width:2.7rem;height:2.7rem}.userbox .chevron,.tile .chevron{margin-right:auto}.chevron{color:var(--muted);width:1rem}
.top-title{font-size:1.22rem;font-weight:bold}.top-left{gap:.65rem}.date{display:flex;gap:.45rem;align-items:center;color:var(--muted);font-size:.93rem;margin-left:.45rem}.date .icon{width:1.05rem}.utility{position:relative;justify-content:center;border:1px solid var(--line);border-radius:.85rem;width:2.85rem;height:2.85rem;background:var(--panel)}.utility:hover{background:var(--lav)}.newdot{position:absolute;background:#ed8e63;width:.5rem;height:.5rem;top:.48rem;right:.56rem;border-radius:99px;border:1px solid var(--panel)}.mobile-brand,#bottom{display:none}.heading{justify-content:space-between;gap:.7rem;margin-bottom:1.25rem}.heading h1{font-size:1.9rem;font-weight:700;letter-spacing:-.05rem}.muted,.sub{color:var(--muted)}.heading p{font-size:1rem;margin-top:.15rem}.hero{position:relative;display:flex;align-items:center;justify-content:space-between;min-height:17.1rem;border:1px solid #ded9f3;background:var(--hero);border-radius:1.45rem;overflow:hidden;padding:1.8rem 2.45rem;isolation:isolate}.hero:before,.hero:after{content:"";position:absolute;z-index:-1;border:1px solid rgba(133,118,192,.13);width:28rem;height:28rem;left:-4rem;bottom:-17rem;border-radius:50%}.hero:after{width:34rem;height:34rem;left:-7rem;bottom:-20rem}.hero-copy{width:54%;z-index:1}.eyebrow{gap:.42rem;color:var(--deep);font-weight:bold;font-size:.86rem}.eyebrow .icon{width:1.05rem}.hero h2{font-size:clamp(2rem,3vw,3rem);margin:.3rem 0;letter-spacing:-.09rem;line-height:1.55}.hero p{color:var(--muted);font-size:1.05rem;max-width:30rem}.hero-actions{margin-top:1.15rem;gap:.75rem;flex-wrap:wrap}.hero-art{width:44%;height:15.2rem;object-fit:contain;display:block;position:relative}.action{justify-content:center;gap:.54rem;font-weight:bold;border:1px solid var(--line);background:var(--panel);color:var(--ink);border-radius:.85rem;padding:.65rem 1.25rem;min-height:3.05rem;text-align:center}.action.primary{background:#6151c8;border-color:#6151c8;color:white}.action.primary:hover{background:#5141b8}.action.secondary:hover,.tile:hover{border-color:var(--purple)}.action.quiet{color:var(--deep);background:var(--lav);border-color:transparent}.section-space{margin-top:1.55rem}.sect,.card-head,.switchline{justify-content:space-between;gap:1rem}.sect{margin-bottom:.75rem}.sect h2,.card-head h2{font-size:1.24rem;letter-spacing:-.035rem}.tiles{display:flex;gap:.85rem}.tile{flex:1;min-width:0;display:flex;align-items:center;gap:.8rem;background:var(--panel);border:1px solid var(--line);border-radius:1.05rem;padding:1.1rem .95rem;text-align:right}.tile strong{font-size:1.04rem;display:block}.tile small{font-size:.85rem;color:var(--muted);display:block}.bubble.mint,.status.good{background:var(--mint);color:var(--green)}.bubble.amber,.status.warn{background:var(--peach);color:var(--amber)}.insights{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);gap:1rem;margin-top:1.65rem;align-items:stretch}.card{background:var(--panel);border:1px solid var(--line);border-radius:1.2rem;padding:1.35rem;min-width:0}.card-head{margin-bottom:.55rem}.label-icon{gap:.5rem}.label-icon>.icon{color:var(--purple)}.pill,.status{display:inline-flex;align-items:center;font-size:.82rem;line-height:1.6;border-radius:3rem;padding:.18rem .65rem;background:var(--lav);color:var(--deep);white-space:normal}.pill.subtle{background:var(--bg);color:var(--muted);border:1px solid var(--line)}.legend{font-size:.86rem;gap:1rem;flex-wrap:wrap}.legend span{display:inline-flex;align-items:center;gap:.42rem}.sw{display:inline-block;width:.7rem;height:.7rem;border-radius:3px;background:#7763cc}.sw.s2{background:#42a58e;border-radius:50%}.trend{width:100%;display:block;height:auto;direction:ltr;overflow:visible}.chart-row{display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin:.65rem 0 .4rem}.select-small{width:auto;min-height:2.5rem;font-size:.9rem;padding:.15rem .65rem;background:var(--bg)}.textlink{display:inline-flex;align-items:center;gap:.2rem;color:var(--deep);min-height:2.75rem;font-size:.95rem;padding:0 .25rem;font-weight:bold}.textlink .icon{width:1rem}.recent-list{margin-top:.65rem}.rowlink{width:100%;text-align:right;background:none;gap:.65rem;border-top:1px solid var(--line);padding:.68rem 0;min-height:3.6rem}.rowlink .rowtext{flex:1;min-width:0}.rowtext strong,.rowtext small{display:block}.rowtext small{color:var(--muted);font-size:.83rem}.rowtext strong{font-size:.98rem}.rowlink .bubble{width:2.5rem;height:2.5rem;border-radius:.8rem}.rowlink .bubble .icon{width:1.24rem}.text-end{margin-right:auto}.fine{font-size:.87rem;color:var(--muted)}.note{padding:.85rem 1rem;border-radius:.8rem;background:var(--lav);margin:.8rem 0;color:var(--ink)}.note.warn{background:var(--peach);border:1px solid var(--line)}.smallcard{max-width:48rem;margin:auto}.flow{max-width:62rem;margin:auto}.block{display:block}.stack>*+*{margin-top:1rem}.formline{display:block;font-weight:bold;margin:.95rem 0 .3rem}input,select,textarea{border-radius:.65rem;max-width:100%;padding:.55rem .8rem;border:1px solid var(--line);background:var(--panel);color:var(--ink);min-height:3rem}input:not([type=checkbox]):not([type=radio]),textarea{width:100%}input[type=checkbox],input[type=radio]{width:1.3rem;min-height:1.3rem;height:1.3rem;vertical-align:middle;margin-left:.5rem;accent-color:#6151c8}input[dir=ltr]{text-align:left}select{max-width:100%}fieldset{border:1px solid var(--line);border-radius:.8rem;margin:.65rem 0;padding:.65rem}legend{padding:0 .4rem}label{cursor:pointer}textarea{resize:vertical}.form-actions,.pair{gap:.65rem;flex-wrap:wrap;margin-top:1rem}.pair{justify-content:space-between}.error{color:#943b23;font-weight:bold}.dark .error{color:#ffb7a1}.note:empty,.error:empty{display:none}.tabs{display:flex;flex-wrap:wrap;gap:.35rem;background:var(--bg);padding:.25rem;border-radius:.8rem;margin:.8rem 0}.tabs button{flex:1;border-radius:.5rem;min-height:2.8rem}.tabs button.on{background:var(--panel);color:var(--deep);box-shadow:0 1px 5px #24263e16;font-weight:bold}.step-pic{display:block;width:100%;height:10.2rem;object-fit:contain;background:var(--hero);border-radius:.9rem;margin:.75rem 0}.step-intro{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.stepcard img{width:100%;height:9rem;object-fit:contain;background:var(--hero);border-radius:.75rem}.stepcard h3{margin:.5rem 0}.index{display:inline-flex;align-items:center;justify-content:center;width:1.9rem;height:1.9rem;border-radius:.6rem;background:var(--lav);color:var(--deep);font-size:1rem;margin-left:.35rem}.timer{font-size:3.5rem;font-weight:bold;text-align:center;direction:ltr;color:var(--deep);font-variant-numeric:tabular-nums}.progress{height:.46rem;background:var(--bg);border-radius:1rem;overflow:hidden;margin:.6rem 0}.progress span{display:block;background:var(--purple);height:100%}.kv{display:flex;justify-content:space-between;gap:.5rem;padding:.6rem .1rem;border-bottom:1px solid var(--line);flex-wrap:wrap}.report-tabs{margin-top:1.2rem}details{border-bottom:1px solid var(--line);padding:.8rem .1rem}summary{cursor:pointer;font-weight:bold;min-height:2.75rem;align-content:center}details p{padding:.3rem .4rem .8rem;color:var(--muted)}.catalog{display:flex;gap:1rem;flex-wrap:wrap}.product{flex:1;min-width:min(100%,14rem)}.product img{width:100%;height:10rem;object-fit:contain;background:var(--mint);border-radius:.8rem}.product .action{width:100%;margin-top:.7rem}.dialog-bg{position:fixed;inset:0;background:rgba(20,21,39,.46);z-index:10;display:flex;align-items:center;justify-content:center;padding:.85rem}.dialog{width:100%;max-width:32rem;max-height:88vh;overflow:auto;background:var(--panel);padding:1.35rem;border-radius:1.1rem;box-shadow:0 20px 70px #17172a2b}.dialog h2{font-size:1.4rem}.dialog .utility{flex:none}.notice{border-bottom:1px solid var(--line);padding:1rem 0}.notice p{color:var(--muted);margin-top:.25rem}#toast:not(:empty){position:fixed;bottom:1.2rem;left:50%;transform:translateX(-50%);z-index:13;background:#28283c;color:white;border-radius:.7rem;padding:.6rem 1rem;max-width:90%}.empty{padding:1rem 0;color:var(--muted)}.sr{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0)}.fallback{padding:1rem}.brandline{display:flex;align-items:center;gap:.7rem}.intro-note{margin-top:1rem}.charttip{font-family:Vazir,Tahoma,sans-serif;font-size:12px;fill:var(--muted)}.end-actions{width:100%;justify-content:space-between}.chart-caption{margin-top:.15rem}.grade{width:1.5rem;height:1.5rem;border-radius:4px;border:1px solid #999;display:inline-block;vertical-align:middle;margin-left:.5rem}.hidden,[hidden]{display:none!important}.capture-preview{max-height:5rem;display:block;margin:auto}
@media(min-width:1650px){#top{padding:0 4vw}main{padding-inline:3rem}}
@media(max-width:1180px){:root{--rail:13rem}#rail{padding-left:.8rem;padding-right:.8rem}.hero{padding:1.4rem 1.65rem}.tile{gap:.5rem;padding:.95rem .65rem}.tile small{display:none}.insights{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr)}.card{padding:1.1rem}}
@media(max-width:880px){#rail{display:none}.workspace{margin-right:0}#top{height:4.8rem;padding:0 5%}.mobile-brand{display:flex}.mobile-brand .brand img{width:2.5rem;height:2.5rem}.mobile-brand .brand-name strong{font-size:1.6rem}.mobile-brand small,#top .top-title{display:none}main{padding:1.35rem 4.5% 6.6rem}.date{display:none}#bottom{position:fixed;display:flex;bottom:0;right:0;left:0;z-index:5;justify-content:space-around;align-items:stretch;padding:0 2% env(safe-area-inset-bottom);background:var(--panel);border-top:1px solid var(--line)}#bottom a{display:flex;flex:1;align-items:center;justify-content:center;flex-direction:column;padding:.45rem .1rem;color:var(--muted);font-size:.81rem;min-height:3.7rem}#bottom a.active{color:var(--deep);font-weight:bold}#bottom a.active .icon{stroke-width:2.35}#toast:not(:empty){bottom:5rem}}
@media(max-width:620px){.hero{align-items:center;min-height:auto;padding:1.3rem 1.15rem}.hero-art{width:37%;height:auto}.hero-copy{width:63%}.hero h2{font-size:1.73rem;line-height:1.5;letter-spacing:-.05rem}.hero p{font-size:.98rem}.hero-actions{margin-top:.8rem}.hero .action{padding:.52rem .9rem}.heading h1{font-size:1.6rem}.tiles{gap:.5rem}.tile{flex-direction:column;justify-content:flex-start;gap:.35rem;padding:.72rem .3rem;text-align:center}.tile .chevron{display:none}.tile strong{font-size:.94rem}.tile .bubble{width:2.65rem;height:2.65rem}.insights{display:block;margin-top:1.15rem}.insights>.card+.card,.step-intro>.card+.card{margin-top:.85rem}.step-intro{display:block}.section-space{margin-top:1.1rem}.card{padding:1rem}.hero-art{margin-left:-.4rem}.card-head{gap:.4rem}.utility{width:2.8rem;height:2.8rem}.top-left{gap:.35rem}.heading{margin-bottom:.8rem}.form-actions>.action{flex-grow:1}.section-space .sect h2{font-size:1.15rem}.dialog-bg{align-items:flex-end}.dialog{max-height:88vh}.card-head h2{font-size:1.16rem}}
@media(max-width:370px){.hero{display:block}.hero-copy{width:100%}.hero-art{position:absolute;width:29%;height:4.8rem;left:.7rem;bottom:.4rem}.hero-actions{max-width:70%}.hero p{font-size:1rem}.tile strong{font-size:.88rem}.mobile-brand .brand{gap:.25rem}.heading h1{font-size:1.45rem}.chart-row{flex-wrap:wrap}.eyebrow{font-size:.82rem}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}@supports not (display:grid){.insights>.card,.step-intro>.card{margin-top:1rem}}
@media(max-width:620px){body{font-size:1.13rem}.card p,.hero p{line-height:1.85}.action,.navcam-btn,input,textarea,select{font-size:1.1rem}.stepcard h3{font-size:1.23rem}.tile{min-height:6rem}#bottom a{min-width:0}.hero-copy,.rowlink,.dialog,.card-head>*{min-width:0}.form-actions .action{white-space:normal}.navcam .navcam-tip,.navcam .navcam-status{font-size:1.12rem}}
@supports not (color:var(--ink)){body{background:#f7f8fc;color:#24263e}#rail{display:none}.workspace{margin:0}.card,.tile,#top,#bottom,.dialog,.utility{background:#fff;border:1px solid #d5d4de}.hero,.note,.bubble,.pill,.avatar{background:#efecfc;color:#40336a}.hero h2{font-size:2rem}.muted,.fine,.sub,.hero p{color:#4d5267}.action{color:#302750;background:#fff;border:1px solid #9a92af}#bottom{display:flex;position:fixed;bottom:0;left:0;right:0;justify-content:space-around}#bottom a{padding:.4rem;font-size:.88rem;text-align:center}#bottom .icon{display:block;margin:auto}.workspace main{padding-bottom:6rem}.dialog-bg{top:0;left:0;right:0;bottom:0}.dark body,.dark #bottom,.dark .dialog,.dark #top,.dark .card,.dark .tile{background:#242536;color:#f4f3fc}.dark p{color:#d5d4e2}}
.edit-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr));gap:.75rem}.edit-field{display:flex;flex-direction:column;justify-content:space-between;font-size:1rem;gap:.22rem}.edit-field input,.edit-field select{width:100%;min-width:0}.edit-field input[type=checkbox]{width:1.55rem;height:1.55rem}.color-edit{display:flex;align-items:center;gap:.45rem}.color-edit input[type=color]{width:3.3rem;min-height:3rem;padding:.15rem;flex:none}.color-edit input[aria-invalid=true]{border:2px solid #b83925}.pad-tabs{display:flex;flex-wrap:wrap;gap:.35rem;margin:.75rem 0}.pad-tabs button{min-width:2.9rem;padding:.4rem}.pad-tabs button[aria-pressed=true]{background:var(--purple);color:var(--panel)}.reader-swatch{display:inline-block;width:1.55rem;height:1.55rem;border:1px solid #888;border-radius:.35rem;vertical-align:middle;margin-left:.45rem}

.edit-workbench { width:95%; max-width:64rem; margin:1.5rem auto; }
.edit-field,.edit-grid,.edit-grid canvas { min-width:0; max-width:100%; }
#brand-editor fieldset { min-width:0; }
#brand-editor canvas {cursor:crosshair;outline:2px solid currentColor;}

.timeline-filters{display:flex;flex-wrap:wrap;gap:.7rem}.timeline-filters label{flex:1 1 8rem;min-width:0;font-size:1.05rem;font-weight:bold}.timeline-filters select{display:block;width:100%;margin-top:.25rem;min-height:3rem}
.item-timeline,.timeline-series{min-width:0}.timeline-series{margin:1rem 0}.item-plot{display:block;width:100%;height:auto}.timeline-axis,.reading-event{display:flex;justify-content:space-between;align-items:start;gap:.7rem;overflow-wrap:anywhere;flex-wrap:wrap}.timeline-axis{font-size:.87rem;color:var(--muted)}.reading-event{padding:.75rem 0;border-bottom:1px solid var(--line);color:var(--ink)}.item-timeline details{margin:.75rem 0}.item-timeline h3{margin:.5rem 0}
.band-chart{margin:.75rem .4rem}.band-row{display:flex;align-items:center;gap:.8rem;min-height:2.1rem}.band-row>span{width:30%;font-size:1rem;overflow-wrap:anywhere;line-height:1.35}.band-track{flex:1;position:relative;height:1px;border-top:1px dashed var(--muted);margin:0 .25rem}.event-dot{position:absolute;top:-.35rem;width:.65rem;height:.65rem;border-radius:50%;background:#23786c;transform:translateX(-50%)}.dark .event-dot{background:#77d6b7}

.history-card,.stack,.insights>*{min-width:0}
.table-scroll{display:block;max-width:100%;overflow-x:auto;margin:1rem 0;-webkit-overflow-scrolling:touch}
.history-table{border-collapse:collapse;width:100%;text-align:right;font-size:1.04rem}
.history-table caption{text-align:right;font-weight:bold;padding:.5rem 0}
.history-table td,.history-table th{padding:.52rem .7rem;border:1px solid var(--line);white-space:nowrap}
.history-table th{background:var(--panel);color:var(--ink)}
