@font-face{font-family:Vazirmatn;src:url('fonts/Vazirmatn.woff2') format('woff2');font-weight:100 900;font-style:normal;font-display:swap}
:root{color-scheme:light;--bg:#f6f8fa;--surface:#fff;--surface-soft:#f8fafb;--surface-hover:#eef4f5;--text:#1e3440;--muted:#637984;--line:#e5ebee;--primary:#087d73;--primary-dark:#075e58;--primary-soft:#e6f5f0;--primary-text:#086657;--indigo:#5d61b6;--indigo-soft:#eeeefb;--amber:#a66715;--amber-soft:#fff4df;--danger:#b4454f;--danger-soft:#fff0f0;--shadow:0 8px 35px #27465108;--radius:20px;--sidebar-width:270px;font-synthesis:none}
html[data-theme=dark]{color-scheme:dark;--bg:#101c25;--surface:#162731;--surface-soft:#192e39;--surface-hover:#223b46;--text:#e7eff0;--muted:#a6bcc5;--line:#2b424c;--primary:#68d4bd;--primary-dark:#9be8d5;--primary-soft:#1a403c;--primary-text:#9be8d5;--indigo:#b5b5fc;--indigo-soft:#30334d;--amber:#f1c574;--amber-soft:#403825;--danger:#ffacb2;--danger-soft:#462b36;--shadow:0 8px 35px #00000015}
*,*::before,*::after{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:90px}body{margin:0;font-family:Vazirmatn,Tahoma,sans-serif;font-size:14px;line-height:1.8;color:var(--text);background:var(--bg);-webkit-font-smoothing:antialiased}a{color:var(--primary-text);text-decoration:none}a:hover{text-decoration:none}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.6;cursor:wait}img{max-width:100%;height:auto}svg{display:inline-block}h1,h2,h3,h4,p{margin:0}h1{font-size:clamp(1.65rem,2.5vw,2.15rem);font-weight:800;line-height:1.65;letter-spacing:-.6px}h2{font-size:1.28rem;font-weight:760;line-height:1.65}h3{font-size:1rem;font-weight:750}small{font-size:.76rem}.icon{width:22px;height:22px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}[hidden]{display:none!important}.muted{color:var(--muted)}.microcopy{color:var(--muted);font-size:.76rem;line-height:1.9;margin-top:14px}.preserve-lines{white-space:pre-wrap;overflow-wrap:anywhere}.ltr{direction:ltr;unicode-bidi:isolate}.text-center{text-align:center}.stack{display:grid;gap:16px}.skip-link{position:fixed;top:-90px;right:20px;z-index:100;padding:10px 20px;background:var(--surface);border:2px solid var(--primary);border-radius:12px}.skip-link:focus{top:12px}:focus-visible{outline:3px solid #39b6a4;outline-offset:4px}::selection{background:#b9e6da;color:#184b42}
.button{min-height:46px;padding:10px 19px;border:1px solid transparent;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;gap:10px;font-weight:650;font-size:.86rem;line-height:1.7;transition:background .18s,box-shadow .18s,transform .18s;white-space:nowrap}.button:hover{transform:translateY(-1px)}.button:active{transform:none}.button.primary{background:var(--primary);color:#fff;box-shadow:0 5px 13px #087d7317}.button.primary:hover{background:var(--primary-dark)}html[data-theme=dark] .button.primary{color:#102d28}.button.secondary{background:var(--surface);border-color:var(--line);color:var(--text)}.button.secondary:hover{background:var(--surface-hover)}.button.soft{background:var(--primary-soft);color:var(--primary-text)}.button.danger{background:var(--danger-soft);color:var(--danger);border-color:var(--danger)}.button.small{min-height:38px;padding:7px 13px;font-size:.78rem}.button.full{width:100%}.button .icon{width:20px;height:20px}.text-link{display:inline-flex;align-items:center;gap:6px;font-weight:650;font-size:.82rem}.text-link .icon{width:17px;height:17px}.icon-button{position:relative;display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;padding:8px;border:1px solid transparent;border-radius:12px;background:transparent;color:var(--muted);flex:none}.icon-button:hover{background:var(--surface-hover);color:var(--text)}.theme-toggle .sun-icon{display:none}html[data-theme=dark] .theme-toggle .moon-icon{display:none}html[data-theme=dark] .theme-toggle .sun-icon{display:block}.brand{display:flex;align-items:center;gap:12px;color:var(--text);min-width:0}.brand-symbol{width:45px;height:45px;border-radius:15px;background:var(--primary);color:#fff;display:grid;place-items:center;flex:none;box-shadow:0 5px 15px #087d731c}.brand-symbol .icon{width:27px;height:27px}.brand-symbol img{width:44px;height:44px;object-fit:contain;border-radius:12px}html[data-theme=dark] .brand-symbol{color:#103d34}.brand-copy{display:flex;flex-direction:column;min-width:0}.brand-copy strong{font-size:1.05rem;font-weight:800;letter-spacing:-.35px}.brand-copy small{font-size:.62rem;color:var(--muted);white-space:nowrap}.eyebrow,.auth-kicker{display:flex;align-items:center;gap:8px;font-size:.78rem;font-weight:650;color:var(--primary-text);margin-bottom:13px}.tiny-spark{width:7px;height:7px;background:var(--primary);border-radius:50%;box-shadow:0 0 0 4px var(--primary-soft)}
/* فضای ورود: تصویر شهری تماما با CSS محلی ساخته شده است. */
.auth-body{background:var(--surface)}.auth-shell{max-width:1360px;margin:auto;min-height:100svh;display:flex;flex-direction:column;padding:32px 5vw 20px}.auth-header{display:flex;align-items:center;justify-content:space-between}.auth-main{flex:1;display:grid;grid-template-columns:1.1fr 1fr;gap:9%;align-items:center;padding:35px 0 25px;min-height:620px}.auth-story{padding:10px 0 0}.auth-story h1{font-size:clamp(2.6rem,4.3vw,4rem);line-height:1.48;letter-spacing:-1.4px;font-weight:850}.auth-story h1 span{color:var(--primary-text)}.auth-lead{font-size:1.02rem;color:var(--muted);line-height:2.15;margin-top:19px}.auth-card-wrap{width:100%;max-width:460px;justify-self:end}.auth-card{padding:34px 36px;border:1px solid var(--line);border-radius:25px;background:var(--surface);box-shadow:0 16px 70px #264d4b08}.auth-card h2{font-size:1.55rem;letter-spacing:-.55px;margin-bottom:7px}.auth-kicker{font-size:.77rem;margin-bottom:7px}.auth-description{font-size:.84rem;color:var(--muted);line-height:1.95;margin-bottom:26px}.auth-footnote{display:flex;align-items:center;justify-content:center;gap:7px;margin-top:20px;color:var(--muted);font-size:.68rem}.auth-footnote .icon{width:14px;height:14px}.auth-values{display:flex;justify-content:space-between;gap:12px;max-width:460px;margin-top:22px;padding-top:22px;border-top:1px solid var(--line)}.auth-values>div{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:.71rem}.auth-values .icon{width:18px;height:18px;color:var(--primary)}.auth-divider{display:flex;align-items:center;gap:15px;font-size:.75rem;color:var(--muted);margin:24px 0 18px}.auth-divider::before,.auth-divider::after{content:'';height:1px;background:var(--line);flex:1}.auth-bottom-link{margin-top:24px;text-align:center;font-size:.8rem;color:var(--muted)}.auth-bottom-link a{font-weight:700;margin-right:4px}.auth-footer{display:flex;justify-content:space-between;gap:15px;border-top:1px solid var(--line);padding-top:17px;color:var(--muted);font-size:.7rem}.back-link{display:flex;align-items:center;gap:7px;font-size:.76rem;color:var(--muted);margin-bottom:25px}.back-link .icon{transform:rotate(180deg);width:17px;height:17px}.civic-scene{height:234px;position:relative;max-width:450px;margin-top:27px;isolation:isolate;overflow:hidden}.scene-sun{position:absolute;width:67px;height:67px;border-radius:50%;background:#f7dca0;top:12px;right:58px;opacity:.85}.scene-cloud{position:absolute;width:68px;height:16px;border-radius:40px;background:#dfeee9;top:45px;left:55px}.scene-cloud::before{content:'';position:absolute;width:27px;height:27px;bottom:4px;left:23px;background:inherit;border-radius:50%}.cloud-two{width:46px;left:auto;right:143px;top:68px;opacity:.65}.cloud-two::before{width:22px;height:22px;left:14px}.scene-hill{position:absolute;height:105px;border-radius:50% 50% 0 0;bottom:28px;background:#e7f4ec;z-index:-2}.hill-one{width:290px;right:-35px;transform:rotate(-8deg)}.hill-two{width:250px;left:-30px;bottom:30px;background:#eef1f6;transform:rotate(10deg)}.civic-building{position:absolute;bottom:43px;width:160px;height:118px;right:136px}.building-roof{position:absolute;width:160px;height:31px;clip-path:polygon(50% 0,100% 83%,100% 100%,0 100%,0 83%);background:#79aa9b;top:0}.building-roof::after{content:'';position:absolute;width:9px;height:9px;border-radius:50%;background:#e6f4ec;top:11px;left:75px}.building-face{position:absolute;top:31px;left:9px;right:9px;bottom:8px;background:#c8dfd4;display:flex;align-items:flex-start;justify-content:space-evenly;padding-top:13px}.building-face span{width:17px;height:63px;background:#f3f8f2;border-radius:3px 3px 0 0;border-bottom:5px solid #a6c3b6}.building-base{position:absolute;bottom:0;height:10px;right:-6px;left:-6px;border-radius:2px;background:#9ebdaf;border-bottom:4px solid #c3d9cf}.scene-tree{position:absolute;bottom:44px;left:54px;width:43px;height:83px}.scene-tree span{display:block;width:43px;height:61px;border-radius:60% 60% 45% 45%;background:#78b59f}.scene-tree i{position:absolute;width:4px;height:54px;background:#4e8472;bottom:0;left:20px}.scene-tree i::before{content:'';position:absolute;top:17px;left:-9px;width:14px;height:3px;transform:rotate(35deg);background:inherit}.tree-two{left:auto;right:49px;width:35px;height:64px}.tree-two span{width:35px;height:48px;background:#adc7a4}.tree-two i{left:16px;height:37px;background:#7e9f75}.scene-path{position:absolute;bottom:39px;left:29px;right:22px;height:3px;background:#b9d2c6;border-radius:5px}.scene-note{position:absolute;bottom:4px;right:40px;display:flex;align-items:center;gap:9px;background:var(--surface);padding:8px 14px;border:1px solid var(--line);border-radius:13px;box-shadow:0 7px 15px #2d65590b;font-size:.7rem}.scene-check{display:grid;place-items:center;border-radius:50%;width:28px;height:28px;background:var(--primary-soft);color:var(--primary-text)}.scene-check .icon{width:17px;height:17px}html[data-theme=dark] .civic-scene{filter:saturate(.62) brightness(.8)}
/* فرم‌های یکسان، خطای قابل فهم و کنترل‌های مناسب لمس */
.stack-form{display:grid;gap:18px}.field{min-width:0}.field>label{display:flex;gap:6px;align-items:center;font-size:.8rem;font-weight:620;margin-bottom:7px}.required{color:var(--primary);font-size:.8rem}.input-wrap{position:relative}.field input:not([type=checkbox]):not([type=radio]),.field select,.field textarea,.filter-form input,.filter-form select{width:100%;min-height:48px;border:1px solid var(--line);border-radius:11px;color:var(--text);background:var(--surface-soft);padding:11px 13px;transition:border-color .18s,box-shadow .18s}.field textarea{min-height:130px;resize:vertical;line-height:1.9}.field input:focus,.field textarea:focus,.field select:focus,.filter-form input:focus,.filter-form select:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-soft);background:var(--surface)}.field input::placeholder,.field textarea::placeholder{color:var(--muted);opacity:.7;font-size:.78rem}.field input[type=password]{padding-left:47px;direction:ltr;text-align:right}.password-toggle{position:absolute;left:4px;top:4px;width:40px;height:40px}.password-toggle .icon{width:19px;height:19px}.field-help{font-size:.72rem;color:var(--muted);line-height:1.85;margin-top:6px}.field-help ul{padding-right:18px;margin:5px 0}.field-error{font-size:.76rem;color:var(--danger);margin-top:6px}.field-invalid input,.field-invalid select,.field-invalid textarea{border-color:var(--danger)!important}.errorlist{padding:0;margin:0;list-style:none}.checkbox-label{display:flex!important;align-items:flex-start!important;gap:10px!important;cursor:pointer;line-height:1.9}.checkbox-label input{width:18px;height:18px;accent-color:var(--primary);margin-top:4px;flex:none}.field ul{list-style:none;padding:0}.field ul li{margin:6px 0}.form-link-row{display:flex;justify-content:flex-end;margin-top:-7px;font-size:.76rem}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.form-grid .wide{grid-column:1/-1}.form-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding-top:22px;margin-top:24px;border-top:1px solid var(--line)}.form-actions .muted{margin-inline-start:auto;font-size:.75rem}.captcha-image{border:1px solid var(--line);border-radius:10px;background:#fff}.field input[type=file]{padding:9px;font-size:.76rem}.field input[type=file]::file-selector-button{border:0;border-radius:7px;background:var(--primary-soft);color:var(--primary-text);padding:7px 12px;margin-left:10px;font:inherit;font-weight:650;cursor:pointer}.notice{display:flex;gap:10px;align-items:flex-start;border-radius:12px;padding:13px 15px;background:var(--indigo-soft);color:var(--indigo);font-size:.8rem;line-height:1.95}.notice .icon{width:19px;height:19px;margin-top:3px}.notice.subtle,.notice.success{background:var(--primary-soft);color:var(--primary-text)}.notice.warning{background:var(--amber-soft);color:var(--amber)}.notice.danger,.notice.error{background:var(--danger-soft);color:var(--danger)}.flash-messages{display:grid;gap:10px;margin-bottom:22px}.feature-icon{display:inline-flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:14px;background:var(--primary-soft);color:var(--primary-text);flex:none}.feature-icon.teal{background:var(--primary-soft);color:var(--primary-text)}.feature-icon.indigo{background:var(--indigo-soft);color:var(--indigo)}.feature-icon.amber{background:var(--amber-soft);color:var(--amber)}.feature-icon.rose{background:var(--danger-soft);color:var(--danger)}.auth-card>.feature-icon{margin-bottom:17px}.status-illustration{display:grid;place-items:center;width:76px;height:76px;background:var(--primary-soft);color:var(--primary-text);border-radius:26px;margin-bottom:24px}.status-illustration .icon{width:36px;height:36px}.status-steps{padding:0;margin:27px 0;list-style:none;display:grid;gap:22px}.status-steps li{display:flex;gap:14px;align-items:center;color:var(--muted)}.status-steps li>span{width:34px;height:34px;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;font-weight:700;flex:none}.status-steps .complete>span,.status-steps .current>span{background:var(--primary-soft);border-color:var(--primary-soft);color:var(--primary-text)}.status-steps .current>span{box-shadow:0 0 0 4px var(--surface),0 0 0 5px var(--primary)}.status-steps strong{display:block;font-size:.84rem;color:var(--text)}.status-steps small{font-size:.72rem}
/* پوسته کارتابل */
.app-shell{display:flex;min-height:100svh}.sidebar{position:fixed;inset-block:0;inset-inline-start:0;width:var(--sidebar-width);background:var(--surface);border-left:1px solid var(--line);display:flex;flex-direction:column;z-index:30}.sidebar-top{padding:30px 22px 26px;display:flex;align-items:center;justify-content:space-between}.sidebar .brand-copy strong{font-size:.98rem}.sidebar .brand-copy small{font-size:.58rem}.sidebar .brand-symbol{width:42px;height:42px;border-radius:13px}.nav-scroll{overflow-y:auto;flex:1;padding:0 16px 24px;scrollbar-width:thin;scrollbar-color:var(--line) transparent}.nav-caption{font-size:.65rem;color:var(--muted);padding:0 15px;margin:18px 0 9px;opacity:.9}.nav-scroll>.nav-caption{margin-top:0}.main-nav{display:flex;flex-direction:column;gap:4px}.nav-link{display:flex;align-items:center;gap:13px;color:var(--muted);padding:11px 14px;min-height:45px;border-radius:11px;font-size:.8rem;position:relative}.nav-link .icon{width:20px;height:20px}.nav-link:hover{background:var(--surface-soft);color:var(--text)}.nav-link.active{background:var(--primary-soft);color:var(--primary-text);font-weight:750}.nav-link.active::before{content:'';position:absolute;inset-inline-start:0;width:3px;height:18px;border-radius:3px;background:var(--primary)}.nav-count{margin-inline-start:auto;font-size:.67rem;border-radius:6px;padding:0 6px;background:var(--primary);color:var(--surface);min-width:20px;text-align:center}.sidebar-bottom{border-top:1px solid var(--line);padding:17px 19px}.profile-link{display:flex;align-items:center;gap:11px;color:var(--text)}.avatar{display:grid;place-items:center;width:39px;height:39px;border-radius:13px;background:var(--indigo-soft);color:var(--indigo);flex:none}.profile-link strong{font-size:.75rem;display:block}.profile-link small{font-size:.62rem;color:var(--muted)}.profile-link>.icon{margin-inline-start:auto;width:16px;height:16px;color:var(--muted)}.app-main{margin-inline-start:var(--sidebar-width);min-width:0;flex:1;display:flex;flex-direction:column}.topbar{height:79px;background:var(--surface);border-bottom:1px solid var(--line);padding:0 36px;display:flex;align-items:center;justify-content:space-between;gap:12px;position:sticky;top:0;z-index:20}.topbar-context{display:flex;align-items:center;gap:7px;min-width:0}.breadcrumb{font-size:.77rem;color:var(--muted);white-space:nowrap}.breadcrumb span{padding:0 10px;opacity:.5}.topbar-actions{display:flex;align-items:center;gap:5px}.today-label{font-size:.7rem;color:var(--muted);margin-left:18px;white-space:nowrap}.notification-dot{position:absolute;width:6px;height:6px;border-radius:50%;background:var(--primary);right:8px;top:7px;border:2px solid var(--surface);box-sizing:content-box}.logout-form{display:flex;border-right:1px solid var(--line);margin-right:6px;padding-right:7px}.page-content{padding:31px 36px 38px;max-width:1460px;width:100%;margin:0 auto;flex:1}.app-footer{display:flex;justify-content:space-between;gap:12px;margin:0 36px;padding:18px 0 22px;border-top:1px solid var(--line);color:var(--muted);font-size:.65rem}.mobile-only,.bottom-nav{display:none}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:27px}.page-heading p{color:var(--muted);font-size:.82rem;margin-top:4px}.page-heading h1{font-size:1.65rem}.heading-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.page-heading .eyebrow{margin-bottom:3px}.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:25px;box-shadow:var(--shadow)}.panel-header{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:22px}.panel-header h2{font-size:1.03rem}.panel-header p{font-size:.76rem;color:var(--muted);margin-top:3px}.panel-header .text-link{font-size:.75rem}.section-title{margin:29px 0 17px;display:flex;align-items:center;justify-content:space-between;gap:16px}.section-title h2{font-size:1.1rem}.section-title p{font-size:.76rem;color:var(--muted);margin-top:2px}.grid-two{display:grid;grid-template-columns:1.65fr 1fr;gap:22px}.grid-equal{display:grid;grid-template-columns:1fr 1fr;gap:22px}
/* نمای کلی و کارت‌های درخواست */
.welcome-panel{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;min-height:190px;padding:32px;border-radius:22px;background:linear-gradient(112deg,#e5f1ed 0%,#edf7f1 45%,#f1f6ed 100%);border:1px solid #ddece2;margin-bottom:24px}.welcome-copy{position:relative;z-index:1;max-width:600px}.welcome-copy h1{font-size:1.85rem;color:#24483e;letter-spacing:-.7px}.welcome-copy p{color:#688176;font-size:.84rem;margin:5px 0 22px}.welcome-copy .eyebrow{color:#4e8877;font-size:.72rem;margin-bottom:4px}.welcome-actions{display:flex;gap:10px}.welcome-art{width:170px;height:150px;position:relative;flex:none;margin-left:20px}.welcome-orbit{position:absolute;border:1px solid #bdd6cb;border-radius:50%;width:140px;height:140px;left:10px;top:5px}.welcome-orbit::before{content:'';position:absolute;border:1px solid #c5ddd2;border-radius:50%;inset:17px}.welcome-orbit::after{content:'';position:absolute;width:12px;height:12px;border-radius:50%;background:#99bba7;top:12px;right:12px;box-shadow:-97px 83px 0 3px #c2d5b0}.welcome-letter{position:absolute;top:34px;left:31px;background:#fffdf7;border:1px solid #d5e5d9;border-radius:15px;width:100px;height:95px;transform:rotate(-9deg);box-shadow:0 12px 30px #5e89751a;display:grid;place-items:center;color:#72a18e}.welcome-letter .icon{width:49px;height:49px;stroke-width:1.25}.welcome-check{position:absolute;bottom:20px;left:18px;width:36px;height:36px;border:5px solid #eef6ef;background:#71a48e;color:#fff;display:grid;place-items:center;border-radius:50%}.welcome-check .icon{width:19px;height:19px}html[data-theme=dark] .welcome-panel{background:linear-gradient(110deg,#193b35,#243e3a);border-color:#2b4b42}html[data-theme=dark] .welcome-copy h1{color:#d4f0df}html[data-theme=dark] .welcome-copy p,html[data-theme=dark] .welcome-copy .eyebrow{color:#a4c6b6}html[data-theme=dark] .welcome-art{opacity:.75}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:27px}.stat-card{background:var(--surface);border:1px solid var(--line);border-radius:17px;padding:19px;display:flex;gap:14px;align-items:center;min-width:0;box-shadow:var(--shadow)}.stat-card .feature-icon{width:43px;height:43px;border-radius:13px}.stat-label{font-size:.7rem;color:var(--muted);white-space:nowrap}.stat-value{font-size:1.6rem;font-weight:800;line-height:1.4;color:var(--text);font-variant-numeric:tabular-nums}.stat-description{font-size:.65rem;color:var(--muted);margin-top:3px}.stat-content{min-width:0}.ticket-list{display:grid;gap:12px}.ticket-card{display:flex;align-items:center;gap:17px;padding:17px 18px;border:1px solid var(--line);border-radius:14px;background:var(--surface);transition:border-color .16s,background .16s;color:var(--text);min-width:0}.ticket-card:hover{border-color:#abcfc4;background:var(--surface-soft)}.ticket-card-icon{width:42px;height:42px;background:var(--surface-soft);color:var(--muted);border:1px solid var(--line);border-radius:12px;display:grid;place-items:center;flex:none}.ticket-card-content{flex:1;min-width:0}.ticket-card h3{font-size:.84rem;margin-bottom:5px;overflow-wrap:anywhere}.ticket-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:.65rem;color:var(--muted)}.ticket-meta>span+span::before{content:'·';margin-left:10px;opacity:.5}.ticket-number{font-variant-numeric:tabular-nums;direction:ltr;unicode-bidi:isolate}.ticket-card-aside{display:flex;align-items:center;gap:15px;flex:none}.ticket-card-aside>.icon{width:16px;height:16px;color:var(--muted)}.badge{display:inline-flex;align-items:center;gap:6px;padding:4px 9px;border-radius:7px;font-size:.64rem;font-weight:650;white-space:nowrap;background:var(--surface-hover);color:var(--muted);line-height:1.8}.badge.new,.badge.info{background:var(--indigo-soft);color:var(--indigo)}.badge.in_progress,.badge.active,.badge.resolved,.badge.success,.badge.healthy{background:var(--primary-soft);color:var(--primary-text)}.badge.waiting_user,.badge.waiting_requester,.badge.pending,.badge.quarantine,.badge.warning,.badge.scanning{background:var(--amber-soft);color:var(--amber)}.badge.closed,.badge.muted{background:var(--surface-hover);color:var(--muted)}.badge.high,.badge.critical,.badge.rejected,.badge.danger,.badge.failed{background:var(--danger-soft);color:var(--danger)}.badge.internal{background:var(--indigo-soft);color:var(--indigo)}.badge-dot::before{content:'';width:5px;height:5px;border-radius:50%;background:currentColor}.empty-state{display:flex;flex-direction:column;align-items:center;text-align:center;padding:38px 20px;gap:10px}.empty-state .feature-icon{width:61px;height:61px;border-radius:20px;margin-bottom:4px}.empty-state .feature-icon .icon{width:29px;height:29px}.empty-state h3{font-size:.97rem}.empty-state p{color:var(--muted);font-size:.78rem;max-width:350px;line-height:1.9}.empty-state .button{margin-top:8px}.guide-list{display:grid;gap:4px}.guide-link{display:flex;gap:12px;align-items:flex-start;padding:15px 0;color:var(--text);border-bottom:1px solid var(--line)}.guide-link:last-child{border:0;padding-bottom:0}.guide-link:first-child{padding-top:0}.guide-link>.icon{color:var(--primary);width:19px;height:19px;margin-top:3px}.guide-link>div{flex:1;min-width:0}.guide-link strong{font-size:.8rem;font-weight:650}.guide-link p{font-size:.7rem;color:var(--muted);margin-top:3px}.guide-link>.icon:last-child{width:15px;color:var(--muted)}.help-card{background:var(--indigo-soft);color:var(--indigo);padding:22px;border-radius:var(--radius);margin-top:20px;display:flex;gap:14px;align-items:flex-start}.help-card>.icon{width:25px;height:25px}.help-card h3{font-size:.85rem}.help-card p{font-size:.74rem;line-height:1.95;margin-top:5px;opacity:.9}.help-card a{color:inherit}.filter-form{display:flex;gap:12px;flex-wrap:wrap;align-items:end;padding:18px;background:var(--surface);border:1px solid var(--line);border-radius:15px;margin-bottom:20px}.filter-form .field{flex:1;min-width:150px}.filter-form .field:first-child{flex:2;min-width:220px}.filter-form .field label{font-size:.72rem}.filter-form input,.filter-form select{min-height:43px;padding:9px 12px;font-size:.8rem}.filter-form .button{min-height:43px}.pagination{display:flex;justify-content:center;align-items:center;gap:16px;padding-top:24px;font-size:.76rem;color:var(--muted)}
/* گفت‌وگو و پیوست */
.detail-grid{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:22px;align-items:start}.detail-main,.detail-side{display:grid;gap:20px;min-width:0}.detail-side .panel{padding:21px}.detail-title{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:17px}.detail-title h1{font-size:1.35rem}.detail-title .ticket-number{color:var(--muted);font-size:.76rem;display:block;margin-bottom:6px}.description-text{font-size:.86rem;line-height:2.15;white-space:pre-wrap;overflow-wrap:anywhere}.meta-list{display:grid;gap:13px;margin:17px 0 0}.meta-list>div{display:flex;align-items:baseline;justify-content:space-between;gap:14px;font-size:.76rem}.meta-list dt{color:var(--muted)}.meta-list dd{margin:0;text-align:left;overflow-wrap:anywhere}.conversation{display:grid;gap:18px}.message-card{border:1px solid var(--line);border-radius:16px;padding:19px;background:var(--surface)}.message-card.internal{background:var(--indigo-soft);border-color:transparent;border-right:3px solid var(--indigo)}.message-card.support{border-right:3px solid var(--primary)}.message-header{display:flex;align-items:center;gap:11px;margin-bottom:12px}.message-header .avatar{width:34px;height:34px;border-radius:11px}.message-author{font-size:.79rem;font-weight:720}.message-date{font-size:.64rem;color:var(--muted)}.message-header>.badge{margin-inline-start:auto}.message-body{font-size:.84rem;line-height:2;white-space:pre-wrap;overflow-wrap:anywhere}.message-tools{display:flex;gap:8px;margin-top:12px}.message-tools .button{min-height:32px;font-size:.69rem;padding:4px 9px}.attachment-list{display:grid;gap:8px;margin-top:15px}.attachment{display:flex;align-items:center;gap:10px;padding:11px 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface-soft);min-width:0}.attachment>.icon{color:var(--primary);width:21px;height:21px}.attachment-name{font-size:.72rem;overflow-wrap:anywhere;flex:1;min-width:0}.attachment-name small{display:block;color:var(--muted);font-size:.63rem}.attachment .icon-button{width:34px;height:34px;padding:6px}.reply-panel{border-top:3px solid var(--primary)}.reply-toolbar{display:flex;gap:10px;justify-content:space-between;align-items:center;padding-top:5px}.reply-toolbar .speech-button{margin-inline-start:auto}.speech-button[aria-pressed=true]{background:var(--danger-soft);color:var(--danger);border-color:var(--danger)}.speech-status{font-size:.72rem;color:var(--muted);min-height:24px}.speech-preview{border:1px dashed var(--primary);border-radius:10px;padding:10px;font-size:.8rem;color:var(--primary-text)}.timeline{list-style:none;padding:0;margin:16px 0 0;display:grid;gap:0}.timeline li{position:relative;padding:0 20px 20px 0;border-right:1px solid var(--line);margin-right:5px;font-size:.73rem}.timeline li::before{content:'';position:absolute;width:8px;height:8px;border-radius:50%;background:var(--primary);right:-4.5px;top:7px;border:2px solid var(--surface)}.timeline li:last-child{border:0;padding-bottom:0}.timeline time{display:block;color:var(--muted);font-size:.63rem;margin-top:4px}.timeline p{color:var(--muted);font-size:.69rem;margin-top:4px}.action-stack{display:grid;gap:10px}.action-stack .button{white-space:normal;width:100%}.disclosure{border:1px solid var(--line);border-radius:12px;padding:0 15px;background:var(--surface)}.disclosure summary{padding:13px 0;cursor:pointer;font-size:.8rem;font-weight:650}.disclosure>div{padding:0 0 16px}.disclosure .stack-form{gap:13px}.article-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.article-card{display:flex;flex-direction:column;align-items:flex-start;padding:23px;border:1px solid var(--line);border-radius:18px;background:var(--surface);color:var(--text)}.article-card .feature-icon{margin-bottom:20px}.article-card h2{font-size:.96rem;line-height:1.9;margin:7px 0}.article-card p{font-size:.76rem;color:var(--muted);line-height:2;flex:1}.article-card .text-link{margin-top:20px}.article-prose{max-width:780px;font-size:.92rem;line-height:2.3;white-space:pre-wrap;overflow-wrap:anywhere}.article-meta{display:flex;gap:15px;flex-wrap:wrap;font-size:.74rem;color:var(--muted);margin:13px 0 25px}.guide-box{padding:20px;background:var(--primary-soft);color:var(--primary-text);border-radius:15px;font-size:.79rem;line-height:2}.guide-box h3{font-size:.9rem;margin-bottom:10px}.guide-box ol{padding-right:20px;margin:8px 0}.guide-box li{padding:5px 0}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:14px;background:var(--surface)}table{width:100%;border-collapse:collapse;text-align:right;font-size:.76rem;white-space:nowrap}th{background:var(--surface-soft);font-weight:600;color:var(--muted);font-size:.7rem;padding:14px 17px;border-bottom:1px solid var(--line)}td{padding:15px 17px;border-bottom:1px solid var(--line)}tr:last-child td{border-bottom:0}td .button{font-size:.7rem;min-height:34px;padding:5px 10px}.table-empty{text-align:center;color:var(--muted);padding:35px!important}.security-grid,.health-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.health-card{padding:22px;border-radius:18px;background:var(--surface);border:1px solid var(--line)}.health-card-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:17px}.health-card h3{font-size:.8rem;color:var(--muted)}.health-card .metric-value{font-size:1.85rem;font-weight:800;direction:ltr;text-align:right}.health-card .metric-value small{font-size:.76rem;font-weight:450;color:var(--muted);margin-right:6px}.health-card p{font-size:.72rem;color:var(--muted);margin-top:7px}.health-card meter{width:100%;height:9px;margin-top:16px;accent-color:var(--primary)}.check-list{display:grid;gap:0}.check-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 0;border-bottom:1px solid var(--line)}.check-row:last-child{border:0}.check-row strong{font-size:.8rem}.check-row p{font-size:.72rem;color:var(--muted);margin-top:4px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.setting-card{padding:23px;border:1px solid var(--line);border-radius:18px;background:var(--surface)}.setting-card-head{display:flex;gap:13px;align-items:center;margin-bottom:17px}.setting-card h2{font-size:.95rem}.setting-card p{font-size:.76rem;color:var(--muted);line-height:1.95}.setting-card .stack-form{margin-top:20px}.key-status{display:flex;align-items:center;justify-content:space-between;padding:11px 13px;background:var(--surface-soft);border:1px solid var(--line);border-radius:10px;font-size:.76rem;margin:15px 0}.version-hero{background:var(--primary-soft);border:1px solid var(--line);border-radius:20px;padding:27px;display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.version-label{font-size:2.3rem;font-weight:800;color:var(--primary-text);direction:ltr}.release-card{border-right:3px solid var(--primary);margin-bottom:18px}.release-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:15px}.release-heading h2{font-size:1.1rem}.release-heading time{font-size:.73rem;color:var(--muted)}.release-content{font-size:.8rem;line-height:2;white-space:pre-wrap}.code-box{direction:ltr;text-align:left;overflow-wrap:anywhere;background:var(--surface-soft);border:1px solid var(--line);border-radius:12px;padding:15px;font-family:ui-monospace,monospace;font-size:.8rem}.recovery-codes{display:grid;grid-template-columns:1fr 1fr;gap:9px;direction:ltr;margin:16px 0}.recovery-codes code{padding:9px;background:var(--surface-soft);border:1px solid var(--line);border-radius:8px;text-align:center}.form-builder-field{padding:17px;background:var(--surface-soft);border:1px solid var(--line);border-radius:12px;margin-top:12px}.form-builder-field-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.form-builder-field-head strong{font-size:.8rem}.inline-actions{display:flex;flex-wrap:wrap;gap:9px}.reauth-dialog{border:1px solid var(--line);background:var(--surface);color:var(--text);padding:30px;border-radius:23px;width:min(430px,calc(100% - 30px));box-shadow:0 20px 80px #0002}.reauth-dialog::backdrop{background:#142b3a70;backdrop-filter:blur(3px)}.dialog-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:17px}.reauth-dialog h2{font-size:1.25rem}.reauth-dialog p.muted{font-size:.8rem;margin:10px 0 20px}.dialog-actions{display:flex;gap:10px;margin-top:23px}.dialog-actions .primary{flex:1}
@media(min-width:1500px){.page-content{padding-top:38px}.stats-grid{gap:22px}.stat-card{padding:24px}.auth-main{gap:12%}}
@media(max-width:1190px){:root{--sidebar-width:244px}.sidebar-top{padding-inline:17px}.sidebar .brand-copy small{font-size:.53rem}.sidebar .brand-copy strong{font-size:.88rem}.page-content{padding:26px}.topbar{padding-inline:26px}.app-footer{margin-inline:26px}.stats-grid{gap:12px}.stat-card{padding:15px;gap:10px}.stat-label{font-size:.65rem}.stat-card .feature-icon{width:36px;height:36px}.stat-card .feature-icon .icon{width:19px;height:19px}.detail-grid{grid-template-columns:minmax(0,1fr) 250px;gap:17px}.article-grid{grid-template-columns:1fr 1fr}.auth-main{gap:6%}.auth-card{padding:30px}.today-label{display:none}}
@media(max-width:980px){.auth-main{gap:5%;grid-template-columns:1fr 1.1fr}.auth-story h1{font-size:2.6rem}.auth-lead{font-size:.88rem}.auth-values{gap:9px;flex-wrap:wrap}.auth-values>div{font-size:.66rem}.civic-building{right:100px}.scene-sun{right:38px}.tree-two{right:25px}.welcome-art{display:none}.grid-two{grid-template-columns:1fr}.detail-grid{grid-template-columns:1fr}.detail-side{grid-template-columns:1fr 1fr}.stats-grid{grid-template-columns:1fr 1fr}.security-grid,.health-grid{grid-template-columns:1fr 1fr}.settings-grid{grid-template-columns:1fr}}
@media(max-width:760px){:root{--sidebar-width:270px}.auth-shell{padding:22px 22px 18px;max-width:540px}.auth-header .brand-copy strong{font-size:1rem}.auth-main{display:block;min-height:0;padding:38px 0 30px}.auth-story{display:none}.auth-card-wrap{max-width:none}.auth-card{padding:0;border:0;border-radius:0;box-shadow:none}.auth-card h2{font-size:1.65rem}.auth-description{margin-bottom:28px}.auth-footnote{font-size:.64rem;margin-top:25px;align-items:flex-start}.auth-footnote .icon{margin-top:4px;flex:none}.auth-footer{font-size:.61rem;gap:10px;margin-top:auto}.auth-footer>span:last-child{display:none}.auth-shell{min-height:100svh}.auth-main{flex:1}.auth-kicker{margin-top:10px}.mobile-only{display:inline-flex}.sidebar{transform:translateX(105%);visibility:hidden;transition:transform .2s,visibility .2s;width:min(290px,88vw);box-shadow:-20px 0 70px #0001}.menu-open .sidebar{transform:none;visibility:visible}.sidebar-top{padding:25px 17px 22px}.sidebar .brand-copy strong{font-size:.95rem}.sidebar .brand-copy small{font-size:.58rem}.nav-link{min-height:47px}.menu-backdrop{position:fixed;inset:0;border:0;background:#152a3c70;z-index:25;backdrop-filter:blur(2px)}.app-main{margin:0}.topbar{height:64px;padding:0 15px;gap:8px}.breadcrumb{font-size:.7rem;overflow:hidden;text-overflow:ellipsis;max-width:185px}.breadcrumb span{padding-inline:6px}.topbar-actions{gap:1px}.topbar .icon-button{width:37px;height:39px}.topbar .logout-form{margin:0;padding:0;border:0}.topbar .logout-form .icon-button{width:32px}.page-content{padding:23px 17px 30px}.page-heading{align-items:flex-start;gap:15px;margin-bottom:21px}.page-heading h1{font-size:1.36rem}.page-heading p{font-size:.74rem}.heading-actions .button{font-size:.73rem;min-height:41px;padding:9px 12px}.heading-actions .button .icon{width:17px;height:17px}.welcome-panel{padding:24px 22px;min-height:192px;border-radius:19px;margin-bottom:18px}.welcome-copy h1{font-size:1.6rem}.welcome-copy p{font-size:.77rem;margin-top:6px}.welcome-copy .eyebrow{font-size:.66rem}.welcome-actions .button{font-size:.75rem;padding:9px 14px;min-height:42px}.stats-grid{gap:11px;margin-bottom:23px}.stat-card{padding:14px 12px;border-radius:14px;gap:10px}.stat-value{font-size:1.38rem}.stat-card .feature-icon{width:34px;height:34px;border-radius:11px}.stat-label{font-size:.63rem}.stat-description{font-size:.59rem}.panel{padding:19px;border-radius:17px}.panel-header{margin-bottom:18px;gap:10px}.panel-header h2{font-size:.95rem}.panel-header .text-link{font-size:.67rem;white-space:nowrap}.ticket-card{padding:14px 12px;gap:10px;align-items:flex-start}.ticket-card-icon{width:34px;height:34px;border-radius:10px}.ticket-card-icon .icon{width:18px;height:18px}.ticket-card h3{font-size:.78rem;margin:2px 0 6px}.ticket-meta{font-size:.59rem;gap:6px}.ticket-meta>span+span::before{margin-left:6px}.ticket-card-aside{gap:5px;align-self:center}.ticket-card-aside>.icon{display:none}.badge{font-size:.59rem;padding:3px 7px;gap:4px}.grid-equal{grid-template-columns:1fr}.grid-two{gap:18px}.help-card{margin-top:17px;padding:18px}.guide-link strong{font-size:.76rem}.guide-link p{font-size:.68rem}.bottom-nav{display:flex;position:fixed;bottom:0;left:0;right:0;background:var(--surface);border-top:1px solid var(--line);z-index:22;padding:8px 8px max(8px,env(safe-area-inset-bottom));justify-content:space-around;box-shadow:0 -4px 25px #142e3705;gap:3px}.bottom-nav a{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;min-width:53px;min-height:46px;font-size:.58rem;color:var(--muted)}.bottom-nav a>.icon{width:21px;height:21px}.bottom-nav a.active{color:var(--primary-text);font-weight:750}.bottom-nav .bottom-create{color:var(--primary-text);font-weight:650}.bottom-nav .bottom-create>.icon{background:var(--primary);color:#fff;border-radius:10px;width:34px;height:30px;padding:5px;margin-top:-5px}.app-footer{margin:0 17px 76px;padding:17px 0;font-size:.61rem}.app-footer>span:last-child{display:none}.filter-form{padding:15px;gap:11px;align-items:stretch}.filter-form .field,.filter-form .field:first-child{min-width:calc(50% - 8px)}.filter-form .field:first-child{flex-basis:100%}.filter-form .button{flex:1}.detail-side{grid-template-columns:1fr}.detail-title h1{font-size:1.14rem}.detail-title{flex-wrap:wrap}.message-card{padding:16px}.message-body{font-size:.8rem}.reply-toolbar{flex-wrap:wrap}.article-grid{grid-template-columns:1fr;gap:15px}.article-card{padding:21px}.article-card .feature-icon{margin-bottom:13px}.article-prose{font-size:.84rem}.article-meta{font-size:.68rem;gap:10px}.form-grid{grid-template-columns:1fr}.field>label{font-size:.78rem}.form-actions{align-items:stretch;gap:9px}.form-actions .button{flex:1}.form-actions .muted{width:100%;font-size:.67rem}.health-grid,.security-grid{gap:12px}.health-card{padding:16px;border-radius:14px}.health-card h3{font-size:.7rem}.health-card .metric-value{font-size:1.45rem}.health-card p{font-size:.65rem}.health-card-head{gap:5px;margin-bottom:12px;flex-wrap:wrap}.health-card .metric-value small{font-size:.65rem}.health-card-head .badge{font-size:.55rem}.settings-grid{gap:16px}.setting-card{padding:20px}.version-hero{padding:21px}.version-label{font-size:1.8rem}.table-wrap{border-radius:12px}.table-wrap th,.table-wrap td{padding:13px}.reauth-dialog{padding:24px}.reauth-dialog h2{font-size:1.15rem}}
@media(max-width:380px){.auth-shell{padding-inline:18px}.brand-copy small{font-size:.55rem}.brand-copy strong{font-size:.92rem}.brand-symbol{width:40px;height:40px}.brand{gap:9px}.page-content{padding-inline:13px}.topbar{padding-inline:10px}.breadcrumb{max-width:138px;font-size:.65rem}.topbar-actions{gap:0}.topbar .icon-button{width:33px}.stat-card{padding:12px 9px;gap:8px}.stat-label{font-size:.58rem}.stat-value{font-size:1.25rem}.stat-card .feature-icon{width:30px;height:30px}.ticket-card-icon{display:none}.ticket-card-aside .badge{font-size:.55rem}.welcome-copy h1{font-size:1.4rem}.welcome-panel{padding:22px 18px}.health-grid{grid-template-columns:1fr}.bottom-nav a{font-size:.55rem;min-width:48px}.page-heading{flex-wrap:wrap}.page-heading .heading-actions{width:100%}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition:none!important;animation:none!important}.button:hover{transform:none}}
@media print{.sidebar,.topbar,.bottom-nav,.app-footer,.heading-actions,.reply-panel,.skip-link{display:none!important}.app-main{margin:0}.page-content{padding:0;max-width:none}.panel,.message-card{box-shadow:none;break-inside:avoid}.detail-grid{display:block}.detail-side{margin-top:20px}.auth-story{display:none}.auth-main{display:block}.auth-card{box-shadow:none}body{background:#fff;color:#182b32}}
[hidden]{display:none!important}.section-spaced{margin-top:24px}.table-subtext{display:block;color:var(--muted);font-size:.7rem;margin-top:4px}.captcha-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:12px}.captcha-image{border:1px solid var(--line);border-radius:9px;background:white;object-fit:contain}.setting-item+.setting-item{border-top:1px solid var(--line);padding-top:20px;margin-top:20px}.setting-item>.button{align-self:flex-start}.setting-item .badge{align-self:flex-start;margin:0 0 7px}.code-input{font-family:monospace;text-align:left;line-height:1.8}.knowledge-match{padding:20px 0;border-bottom:1px solid var(--line)}.knowledge-match:last-child{border-bottom:0}.knowledge-match p{margin-top:12px;font-size:.83rem}.metric-date{font-size:.85rem!important;line-height:1.9;min-height:47px}.notification-card{display:flex;gap:16px;align-items:flex-start;padding:20px 0;border-bottom:1px solid var(--line)}.notification-card:last-child{border-bottom:0}.notification-card>div{flex:1}.notification-card p{font-size:.85rem}.notification-card time{display:block;color:var(--muted);font-size:.7rem;margin-top:6px}.notification-card .text-link{margin-top:12px;font-size:.75rem}.notification-card.unread p{font-weight:650}.speech-controls{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.speech-controls p{flex-basis:100%}.speech-button.recording{border-color:var(--danger);color:var(--danger);background:var(--danger-soft)}.speech-button.recording:before{content:'';width:9px;height:9px;border-radius:50%;background:currentColor}.local-audio{max-width:100%;height:42px}.form-builder-panel{display:block}.builder-content{width:100%}.release-card h3{font-size:.95rem;margin-top:20px}.release-list{padding-right:22px;margin:10px 0;color:var(--muted);font-size:.84rem;line-height:2}.form-builder-field label input,.form-builder-field label textarea,.form-builder-field label select{margin-top:8px}.form-builder-field .checkbox-label input{margin-top:0}.speech-status{font-size:.75rem;color:var(--muted);line-height:1.8}.form-builder input:disabled,.form-builder select:disabled,.form-builder textarea:disabled{opacity:.7}
@media(max-width:760px){.notification-card{gap:11px;flex-wrap:wrap}.notification-card>form{margin-right:48px}.notification-card .feature-icon{width:35px;height:35px}.form-builder-field{padding:13px}.form-builder-field-head{align-items:flex-start;flex-wrap:wrap}.inline-actions{gap:5px}.inline-actions .button{padding:7px 10px}.speech-controls .button{flex:1}.section-spaced{margin-top:18px}}
