:root{--tp-paper:#EFE8D8;--tp-card:#F8F3E7;--tp-ink:#121212;--tp-red:#CE2118;--tp-on-red:#FBF7EC;--tp-mute:#675F4F;--ok:#1F7A3A;--warn:#9A6A00}[data-theme=night]{--tp-paper:#141414;--tp-card:#1F1F1F;--tp-ink:#EFE8D8;--tp-red:#FF5A47;--tp-on-red:#141414;--tp-mute:#A8A08D;--ok:#5BD083;--warn:#E8B64A}*{box-sizing:border-box}body{margin:0}.app{min-height:100vh;background:var(--tp-paper);color:var(--tp-ink);font-family:Inter,Vazirmatn,system-ui,sans-serif;line-height:1.55}.app[dir=rtl]{font-family:Vazirmatn,Inter,system-ui,sans-serif}.app[data-size="0"]{font-size:14px}.app[data-size="1"]{font-size:16px}.app[data-size="2"]{font-size:19px}.num,.display{font-family:Anton,Vazirmatn,Impact,sans-serif;letter-spacing:.02em;unicode-bidi:isolate}.mono{font-family:ui-monospace,Menlo,Consolas,monospace;direction:ltr;unicode-bidi:isolate;word-break:break-all}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer}:focus-visible{outline:.2em solid var(--tp-red);outline-offset:.15em}a{color:inherit}.bar{display:flex;align-items:stretch;border-bottom:.25em solid var(--tp-ink);background:var(--tp-paper);flex-wrap:wrap;position:sticky;top:0;z-index:5}.bar .brand{display:flex;align-items:center;gap:.6em;padding:.4em 1em;border-inline-end:.25em solid var(--tp-ink);text-decoration:none}.bar .brand b{font-family:Anton,Impact,sans-serif;letter-spacing:.06em;font-size:1.3em;font-weight:400}.bar .sp{flex:1}.bar button,.bar a.nav{border:0;border-inline-start:.25em solid var(--tp-ink);background:var(--tp-paper);padding:0 1.1em;min-height:3.2em;min-width:3em;font-weight:700;text-decoration:none;display:flex;align-items:center}.bar.compact .brand{padding:.25em .8em}.bar.compact .brand b{font-size:1.05em}.bar.compact button,.bar.compact a.nav{min-height:2.4em;padding:0 .8em}.bar .iconbtn{color:var(--tp-ink);display:flex;align-items:center;justify-content:center}.langwrap{position:relative;display:flex}.menubackdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:9;background:transparent}.langmenu{position:absolute;top:100%;inset-inline-end:0;z-index:10;min-width:9em;background:var(--tp-paper);border:.25em solid var(--tp-ink);box-shadow:.35em .35em #0000008c;display:flex;flex-direction:column}.langmenu button{border:0;border-bottom:.2em solid var(--tp-ink);background:var(--tp-paper);color:var(--tp-ink);padding:.6em 1em;font-weight:700;display:flex;justify-content:space-between;gap:1em;align-items:center;min-height:2.8em;cursor:pointer}.langmenu button:last-child{border-bottom:0}.langmenu button:hover{background:var(--tp-red);color:var(--tp-on-red)}.langmenu button.on:after{content:"✓"}.bar button:hover{background:var(--tp-red);color:var(--tp-on-red)}.page{max-width:1200px;margin:0 auto;padding:1.5em 1em 4em}.card{border:.25em solid var(--tp-ink);background:var(--tp-card);box-shadow:.4em .4em 0 var(--tp-ink);margin-bottom:1.4em}.card>.hd{background:var(--tp-ink);color:var(--tp-paper);padding:.6em 1em;display:flex;justify-content:space-between;align-items:baseline;gap:1em;flex-wrap:wrap}.card>.hd h2,.card>.hd h3{margin:0;font-size:1.15em;font-weight:900}.card>.bd{padding:1em}.btn{border:.2em solid var(--tp-ink);background:var(--tp-paper);padding:.55em 1em;min-height:2.8em;font-weight:800}.btn.red{background:var(--tp-red);color:var(--tp-on-red)}.btn.ink{background:var(--tp-ink);color:var(--tp-paper)}.btn.sm{min-height:2.2em;padding:.2em .7em;font-size:.9em}.btn:disabled{opacity:.4;cursor:not-allowed}.btn[aria-pressed=true],.btn.on{background:var(--tp-red);color:var(--tp-on-red)}.row{display:flex;gap:.7em;flex-wrap:wrap;align-items:center}.grid{display:grid;gap:1em;grid-template-columns:repeat(auto-fit,minmax(15em,1fr))}.kpi{border:.2em solid var(--tp-ink);padding:.8em 1em;background:var(--tp-paper)}.kpi small{display:block;color:var(--tp-mute);font-weight:700}.kpi .num{font-size:2em;line-height:1.1}.tabs{display:flex;flex-wrap:wrap;border:.25em solid var(--tp-ink);margin-bottom:1.4em;background:var(--tp-card)}.tabs button{flex:1 1 auto;border:0;border-inline-end:.2em solid var(--tp-ink);background:transparent;padding:.8em 1em;font-weight:800;min-height:3em}.tabs button[aria-selected=true]{background:var(--tp-red);color:var(--tp-on-red)}.field{display:flex;flex-direction:column;gap:.25em;margin-bottom:.8em}.field label{font-weight:700}.field input,.field select,.field textarea{border:.2em solid var(--tp-ink);background:var(--tp-paper);padding:.55em .7em;min-height:2.8em;width:100%}.tblwrap{overflow-x:auto}table{border-collapse:collapse;width:100%}th,td{border-bottom:.12em solid var(--tp-ink);padding:.55em .7em;text-align:start;vertical-align:top}th{background:var(--tp-paper);font-weight:900;white-space:nowrap}.badge{display:inline-block;border:.15em solid var(--tp-ink);padding:0 .5em;font-weight:800;font-size:.85em;white-space:nowrap}.badge.ok{background:var(--ok);color:var(--tp-on-red);border-color:var(--ok)}.badge.warn{background:var(--warn);color:#111;border-color:var(--warn)}.badge.bad{background:var(--tp-red);color:var(--tp-on-red);border-color:var(--tp-red)}.muted{color:var(--tp-mute)}.note{border-inline-start:.4em solid var(--tp-red);padding:.4em .8em;background:var(--tp-paper)}.progress{height:1.1em;border:.2em solid var(--tp-ink);background:var(--tp-paper)}.progress>i{display:block;height:100%;background:var(--tp-red);transition:width .4s}.modal{position:fixed;top:0;right:0;bottom:0;left:0;background:#0009;display:flex;align-items:center;justify-content:center;padding:1em;z-index:20}.modal>.card{max-width:36em;width:100%;max-height:90vh;overflow:auto;margin:0}.parties{display:flex;align-items:center;justify-content:center;gap:1em;flex-wrap:wrap}.party{display:flex;align-items:center;gap:.6em;border:.2em solid var(--tp-ink);padding:.4em .8em;background:var(--tp-paper)}.party i{width:2.2em;height:2.2em;background:var(--tp-red);color:var(--tp-on-red);display:grid;place-items:center;font-style:normal;font-family:Anton,sans-serif}.arrow{font-size:1.6em;font-weight:900}.app[dir=rtl] .arrow{transform:scaleX(-1)}@media print{.bar,.noprint{display:none!important}.card{box-shadow:none}}
