@font-face{font-family:Workspace;src:url('../assets/Vazirmatn.woff2') format('woff2');font-weight:100 900;font-display:swap}
@font-face{font-family:WorkspaceAlt;src:url('./fonts/Arabic-Regular.woff') format('woff');font-weight:400 600;font-display:swap}
@font-face{font-family:WorkspaceAlt;src:url('./fonts/Arabic-Bold.woff') format('woff');font-weight:700 900;font-display:swap}
:root{--bg:#fff;--surface:#f6f6f6;--raised:#fff;--ink:#171717;--muted:#858585;--line:#ececec;--strong-line:#d8d8d8;--accent:#426de4;--accent-soft:#f0f4ff;--overlay:#0008;--danger:#de3f51;--success:#278468;--warning:#9b741e;--sheet-shadow:0 -14px 70px #0001;--font:Workspace;--font-size:15px;--radius:15px;--gap:20px;color-scheme:light}
:root[data-theme=dark]{--bg:#090909;--surface:#161616;--raised:#101010;--ink:#f4f4f4;--muted:#929292;--line:#272727;--strong-line:#414141;--accent:#7c9bff;--accent-soft:#161d30;--overlay:#000b;--danger:#ff7686;--success:#75c3a7;--warning:#d0ae65;--sheet-shadow:0 -14px 80px #0008;color-scheme:dark}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;height:100%;overflow:hidden;overscroll-behavior:none;background:var(--bg);color:var(--ink)}
body,input,button,select,textarea{font-family:var(--font),-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:var(--font-size)}
button,a,input,select,textarea{touch-action:manipulation}button{cursor:pointer;border:0;background:none;color:inherit;padding:0}a{color:inherit;text-decoration:none}button,input,select,textarea{outline-offset:4px}button:focus-visible,a:focus-visible{outline:2px solid var(--accent)}button:disabled{opacity:.35;cursor:default}input,select,textarea{color:var(--ink);border:1px solid var(--line);background:var(--bg);border-radius:12px;padding:12px 14px;min-width:0;font-size:max(var(--font-size),16px)}input:focus,textarea:focus,select:focus{outline:1px solid var(--accent)}textarea{resize:vertical;min-height:108px;line-height:1.9}img{display:block;max-width:100%;object-fit:cover}h1,h2,h3,p{margin:0}h1{font-size:1.65em;line-height:1.6;font-weight:750;letter-spacing:-.5px}h2{font-size:1.1em;font-weight:700}h3{font-size:1em;font-weight:650}p{line-height:1.9}small,.muted{color:var(--muted)}small{font-size:.78em}.ltr{direction:ltr;unicode-bidi:isolate}.icon{width:24px;height:24px;display:inline-block;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}.icon.sm{width:18px;height:18px}.icon.lg{width:29px;height:29px}
.icon-btn{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;position:relative;flex-shrink:0}.icon-btn:hover{background:var(--surface)}.icon-btn.active{background:var(--surface)}.count-badge{position:absolute;top:5px;right:4px;min-width:15px;height:15px;display:grid;place-items:center;padding:0 4px;background:var(--danger);color:#fff;border:2px solid var(--bg);border-radius:12px;font-size:9px;font-family:Arial,sans-serif;font-weight:700}
.brand{font-family:Arial,Helvetica,sans-serif;font-size:23px;font-weight:800;letter-spacing:2.4px;direction:ltr;white-space:nowrap}.brand .brand-dot{font-size:12px;vertical-align:super;margin-left:2px}.boot{height:100vh;display:grid;place-content:center;text-align:center}.boot span{font:700 28px Arial;letter-spacing:5px}.boot p{margin-top:16px;color:var(--muted)}
.shell{height:100dvh;display:grid;grid-template-columns:220px minmax(0,1fr);direction:ltr}.rail{border-right:1px solid var(--line);padding:40px 24px 24px;display:flex;flex-direction:column;direction:rtl;overflow:auto}.rail .brand{margin-bottom:48px;align-self:center;font-size:21px}.rail-nav{display:flex;flex-direction:column;gap:11px}.rail-item{display:flex;align-items:center;gap:16px;min-height:54px;padding:0 16px;border-radius:12px;text-align:right;position:relative}.rail-item:hover,.rail-item.is-active{background:var(--surface)}.rail-item.is-active{font-weight:750}.rail-item .icon{width:25px;height:25px}.rail-item .new-dot{width:6px;height:6px;background:var(--accent);border-radius:50%;margin-right:auto}.rail-foot{margin-top:auto;padding-top:70px;color:var(--muted)}.rail-foot p{font:10px Arial;letter-spacing:1.5px;margin:14px 16px}.main-area{direction:rtl;height:100dvh;display:flex;flex-direction:column;min-width:0}.appbar{height:82px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:0 42px;border-bottom:1px solid var(--line);gap:12px}.appbar-start{display:flex;align-items:center;gap:12px}.appbar-title{font-weight:700;font-size:.9em}.preview-badge{font-size:10px;color:var(--muted);border:1px solid var(--line);padding:4px 9px;border-radius:6px;white-space:nowrap}.appbar-actions{display:flex;align-items:center;gap:6px;direction:ltr}.appbar .mobile-brand{display:none}.content-scroll{flex:1;overflow:auto;overscroll-behavior-y:contain;min-height:0;scrollbar-width:thin}.content-wrap{max-width:1260px;margin:auto;display:grid;grid-template-columns:minmax(0,1fr) 245px;gap:50px;padding:38px 44px 70px}.content-primary{min-width:0}.context-aside{padding-top:8px}.aside-profile{display:flex;align-items:center;gap:12px;padding-bottom:25px;border-bottom:1px solid var(--line);margin-bottom:26px}.avatar{width:42px;height:42px;display:inline-flex;justify-content:center;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:50%;font-size:1.1em;font-weight:650;flex-shrink:0;position:relative}.avatar.large{width:68px;height:68px;font-size:1.6em}.avatar.me{background:var(--ink);color:var(--bg);border-color:var(--ink)}.avatar.online:after{content:'';position:absolute;width:9px;height:9px;border:2px solid var(--bg);background:var(--success);border-radius:50%;bottom:0;left:0}.tiny-avatar{width:23px;height:23px;border:2px solid var(--bg);font-size:10px;display:grid;place-items:center;background:var(--surface);border-radius:50%;margin-right:-6px}.avatar-stack{display:flex;padding-right:6px;align-items:center}.aside-label{font-size:.76em;color:var(--muted);margin:0 0 16px}.aside-item{display:flex;gap:12px;text-align:right;align-items:flex-start;margin-bottom:22px;width:100%}.aside-item .aside-number{font:11px Arial;color:var(--muted);padding-top:5px}.aside-item strong{font-size:.8em;font-weight:600;display:block;margin-bottom:3px}.aside-item small{font-size:.69em}.aside-note{font-size:.72em;line-height:2;color:var(--muted);margin-top:26px;padding-top:23px;border-top:1px solid var(--line)}
.page-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:25px;gap:15px}.page-heading small{display:block;margin-top:3px}.subtle-button{display:inline-flex;gap:6px;align-items:center;color:var(--muted);font-size:.78em;padding:9px 0}.searchbox{display:flex;align-items:center;gap:10px;border-radius:12px;background:var(--surface);padding:0 14px;min-height:46px;color:var(--muted)}.searchbox input{padding:10px 0;width:100%;border:0;background:transparent;font-size:.88em;outline:none}.searchbox input:focus{outline:none}.tabs{display:flex;gap:28px;border-bottom:1px solid var(--line);margin-top:22px;margin-bottom:24px}.tab{position:relative;padding:14px 0;display:flex;gap:8px;align-items:center;color:var(--muted);font-size:.9em}.tab.is-active{color:var(--ink);font-weight:700}.tab.is-active:after{content:'';position:absolute;bottom:-1px;right:0;left:0;height:2px;background:var(--ink);border-radius:2px}.tab small{font-family:Arial,sans-serif;font-size:10px;display:grid;place-items:center;border-radius:5px;background:var(--surface);min-width:21px;height:19px;padding:0 5px}.section-caption{display:flex;align-items:center;justify-content:space-between;margin:2px 0 16px;font-size:.75em;color:var(--muted)}.task-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px 16px}.task-card{min-width:0;text-align:right;display:block}.task-cover{position:relative;aspect-ratio:4/5;background:var(--surface);overflow:hidden;border-radius:var(--radius)}.task-cover img{width:100%;height:100%;transition:transform .4s}.task-card:hover .task-cover img{transform:scale(1.035)}.card-label{position:absolute;top:11px;right:11px;color:#fff;background:#1c1c1ca8;backdrop-filter:blur(12px);border:1px solid #ffffff30;border-radius:6px;padding:4px 8px;font-size:.61em}.card-label.waiting{background:#f6f3edeb;color:#75612e}.task-cover .cover-code{position:absolute;bottom:11px;left:11px;direction:ltr;font:10px Arial;letter-spacing:.8px;background:#0007;color:white;padding:4px 7px;border-radius:4px}.task-card h3{font-size:.87em;margin:11px 0 3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.task-card .card-meta{display:flex;align-items:center;gap:6px;font-size:.67em;color:var(--muted)}.status-dot{width:5px;height:5px;border-radius:50%;background:var(--success);flex-shrink:0}.status-dot.waiting{background:var(--warning)}.task-card .english-meta{font:10px Arial;letter-spacing:.2px;direction:ltr;text-align:right;color:var(--muted);margin-top:5px}.empty-state{padding:65px 20px;text-align:center;color:var(--muted)}.empty-state .icon{margin-bottom:14px;width:34px;height:34px}.empty-state h3{color:var(--ink);margin-bottom:8px}.empty-state p{font-size:.85em;margin-bottom:22px}
.primary{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--ink);color:var(--bg);border-radius:10px;min-height:46px;padding:0 22px;font-weight:650;font-size:.9em}.secondary{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid var(--strong-line);border-radius:10px;min-height:42px;padding:0 18px;font-size:.85em}.primary.full,.secondary.full{width:100%}.text-link{font-size:.8em;color:var(--accent)}.pill{display:inline-flex;align-items:center;gap:6px;padding:4px 9px;border-radius:6px;background:var(--surface);font-size:.67em;white-space:nowrap}.pill.active{color:var(--success)}.pill.waiting{color:var(--warning)}
.task-page{max-width:700px;margin:auto}.task-profile-top{display:flex;align-items:center;gap:32px;margin-bottom:18px}.task-avatar{width:96px;height:96px;border-radius:50%;padding:4px;border:1px solid var(--strong-line);flex-shrink:0}.task-avatar img{width:100%;height:100%;border-radius:50%;background:var(--surface)}.profile-counters{flex:1;display:flex;justify-content:space-around;gap:16px}.profile-counter{text-align:center;min-width:60px}.profile-counter strong{display:block;font-size:1.5em;font-weight:700;direction:ltr}.profile-counter small{font-size:.75em}.task-heading-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.task-heading-row h1{font-size:1.3em}.task-code{font:11px Arial;letter-spacing:1px;color:var(--muted)}.task-english{font:11px Arial;color:var(--muted);margin:4px 0 10px;text-align:right}.task-bio{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px}.task-owner{display:flex;gap:9px;align-items:center;font-size:.77em}.task-owner .avatar-stack{margin-right:9px}.task-attributes{display:flex;gap:22px;align-items:center;padding:14px 0 0;color:var(--muted);font-size:.73em}.task-attributes b{font-weight:600;color:var(--ink);margin-right:5px}.stage-row{display:flex;gap:22px;align-items:flex-start;overflow-x:auto;padding:25px 0 20px;margin-top:2px;border-bottom:1px solid var(--line);scrollbar-width:none}.stage-row::-webkit-scrollbar{display:none}.stage{width:75px;min-width:75px;display:flex;flex-direction:column;gap:7px;align-items:center;font-size:.73em;color:var(--muted)}.stage-image{width:66px;height:66px;border-radius:50%;border:1px solid var(--strong-line);padding:3px;position:relative}.stage-image img{width:100%;height:100%;border-radius:50%;background:var(--surface)}.stage-image .done-check{position:absolute;left:0;bottom:0;background:var(--bg);border:1px solid var(--line);border-radius:50%;width:17px;height:17px;display:grid;place-items:center;color:var(--muted)}.done-check .icon{width:10px;height:10px;stroke-width:2}.stage.is-active{color:var(--ink);font-weight:650}.stage.is-active .stage-image{border:2px solid var(--ink);padding:3px}.stage.is-active:after{content:'';width:21px;height:2px;border-radius:1px;background:var(--ink);margin-top:0}.stage.new-stage .stage-image{border-style:dashed;display:grid;place-items:center}.story-report{padding-top:22px}.story-bars{display:flex;gap:5px;margin-bottom:18px;direction:rtl}.story-bar{height:3px;background:var(--line);flex:1;border-radius:3px;min-height:3px}.story-bar.past{background:var(--strong-line)}.story-bar.current{background:var(--ink)}.report-author{display:flex;align-items:center;gap:9px;margin-bottom:15px}.report-author .avatar{width:30px;height:30px;font-size:12px}.report-author b{font-size:.73em;font-weight:600}.report-author small{font-size:.67em;display:block;margin-top:1px}.report-count{margin-right:auto;font-size:.68em;color:var(--muted)}.report-text h2{font-size:1.05em;margin-bottom:7px}.report-text p{font-size:.83em;line-height:1.95;color:var(--muted)}.report-fields{display:flex;gap:18px;background:var(--surface);padding:10px 12px;border-radius:9px;margin:14px 0;font-size:.75em;flex-wrap:wrap}.report-fields span{color:var(--muted)}.report-fields b{color:var(--ink);font-weight:600;margin-right:6px}.report-image{margin-top:15px;position:relative;background:var(--surface);border-radius:var(--radius);overflow:hidden;aspect-ratio:5/4}.report-image img{height:100%;width:100%;object-fit:cover;cursor:zoom-in}.image-expand{position:absolute;top:12px;left:12px;width:30px;height:30px;display:grid;place-items:center;background:#0005;color:white;border-radius:7px}.story-step{position:absolute;top:50%;transform:translateY(-50%);background:#fffc;color:#222;border:1px solid #fff5;width:30px;height:30px;display:grid;place-items:center;border-radius:50%;box-shadow:0 1px 8px #0001}.story-step.next{left:12px}.story-step.prev{right:12px}.story-step .icon{width:17px;height:17px}.report-footer{display:flex;justify-content:space-between;align-items:center;padding:12px 0;color:var(--muted);font-size:.67em}.task-action{position:sticky;bottom:-1px;background:var(--bg);padding:14px 0 4px;border-top:1px solid var(--line);margin-top:8px}.task-action .primary{width:100%}
.bottom-nav{display:none}.mobile-title{display:none}.person-profile{max-width:700px;margin:auto}.personal-head{display:flex;align-items:center;gap:20px}.personal-head h1{font-size:1.3em}.personal-head small{font-size:.8em;display:block;margin-top:4px}.private-label{display:inline-flex;align-items:center;gap:4px;color:var(--muted);font-size:.65em;margin-top:8px}.private-label .icon{width:12px;height:12px}.personal-stats{display:flex;justify-content:space-around;padding:24px 0;margin:15px 0;border-bottom:1px solid var(--line)}.personal-stats strong{display:block;font-size:1.4em;font-weight:650}.personal-stats small{font-size:.75em}.personal-stats>div{text-align:center}.range-selector{display:flex;align-items:center;background:var(--surface);padding:4px;gap:2px;border-radius:11px;margin:20px 0;overflow-x:auto;scrollbar-width:none}.range-option{padding:8px 10px;flex:1;white-space:nowrap;font-size:.73em;border-radius:8px;min-width:48px;color:var(--muted)}.range-option.is-active{background:var(--bg);color:var(--ink);box-shadow:0 1px 5px #0000000c;font-weight:650}.slide-heading{display:flex;align-items:center;justify-content:space-between;margin-top:27px;margin-bottom:20px}.slide-heading h2{font-size:.95em}.slide-number{font-size:.65em;color:var(--muted)}.metric-number{display:flex;align-items:baseline;gap:10px;font-size:2.5em;font-weight:650;letter-spacing:-1.4px;direction:rtl}.metric-number small{font-size:.29em;letter-spacing:0;font-weight:400;color:var(--muted)}.metric-sub{font-size:.72em;color:var(--muted);margin-top:3px}.chart-wrap{margin:25px -10px 8px}.chart{display:block;width:100%;overflow:visible}.chart .grid-line{stroke:var(--line);stroke-width:1}.chart .chart-bar{fill:var(--strong-line)}.chart .chart-bar:last-of-type{fill:var(--ink)}.chart text{fill:var(--muted);font-family:var(--font);font-size:9px}.chart-hit{cursor:pointer}.chart-hit:hover .chart-bar{fill:var(--accent)}.profile-slide-nav{display:flex;align-items:center;justify-content:space-between;padding:10px 0;border-bottom:1px solid var(--line);margin-bottom:18px}.slide-dots{display:flex;gap:9px;align-items:center}.slide-dot{width:6px;height:6px;border-radius:50%;background:var(--strong-line)}.slide-dot.is-active{width:19px;border-radius:3px;background:var(--ink)}.profile-links{border-top:1px solid var(--line);margin-top:20px}.list-link{display:flex;align-items:center;gap:12px;width:100%;min-height:57px;border-bottom:1px solid var(--line);text-align:right;font-size:.83em}.list-link>.icon:last-child{margin-right:auto;color:var(--muted);width:17px}.list-link>.icon:first-child{color:var(--muted);width:21px}.records-list{margin-top:17px}.record{display:flex;align-items:center;gap:12px;padding:15px 0;border-bottom:1px solid var(--line);width:100%;text-align:right}.record strong{font-size:.8em;font-weight:600}.record small{display:block;font-size:.67em;margin-top:3px}.record .record-value{margin-right:auto;white-space:nowrap;font-size:.8em;text-align:left}.record-icon{width:36px;height:36px;border-radius:10px;background:var(--surface);display:grid;place-items:center;color:var(--muted)}.record-icon .icon{width:19px;height:19px}
.notification-heading{font-size:.8em;margin:28px 0 10px}.notification{display:flex;align-items:center;gap:13px;padding:21px 0;border-bottom:1px solid var(--line);width:100%;text-align:right;position:relative}.notification .avatar{width:40px;height:40px;font-size:1em}.notification .body{flex:1;min-width:0}.notification p{font-size:.83em;line-height:1.9}.notification p b{font-weight:650;margin-left:4px}.notification small{font-size:.7em}.notification time{display:block;font-size:.64em;color:var(--muted);margin-top:6px}.notification.unread:after{content:'';width:5px;height:5px;background:var(--accent);border-radius:50%;margin-left:2px}.notification-thumb{height:44px;width:44px;border-radius:7px;flex-shrink:0}.feed{max-width:590px;margin:auto}.feed-story{display:flex;gap:12px;align-items:center;margin-bottom:26px}.feed-post{margin-bottom:35px;padding-bottom:30px;border-bottom:1px solid var(--line)}.feed-post-head{display:flex;gap:10px;align-items:center;margin-bottom:14px;text-align:right;width:100%}.feed-post-head b{font-size:.8em}.feed-post-head small{display:block;font-size:.66em;margin-top:2px}.feed-post img{width:100%;max-height:500px;aspect-ratio:4/3;object-fit:cover;border-radius:var(--radius)}.feed-post-text{padding-top:15px}.feed-post-text h2{font-size:.95em;margin-bottom:6px}.feed-post-text p{font-size:.8em;color:var(--muted);margin-bottom:10px}
.messenger{max-width:1050px;margin:auto;height:100%;display:grid;grid-template-columns:280px minmax(0,1fr);direction:rtl}.conversation-list{border-left:1px solid var(--line);padding:30px 18px;overflow:auto}.conversation-list h1{font-size:1.25em;padding:0 10px 23px}.conversation-list .searchbox{margin:0 4px 18px}.contact{display:flex;gap:12px;align-items:center;padding:16px 10px;text-align:right;width:100%;border-radius:11px}.contact.is-active,.contact:hover{background:var(--surface)}.contact .contact-body{min-width:0;flex:1}.contact h3{font-size:.85em}.contact p{font-size:.69em;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.8;margin-top:3px}.contact .contact-end{font-size:.62em;color:var(--muted);text-align:left;display:flex;flex-direction:column;align-items:flex-end;gap:7px}.contact .unread-number{border-radius:20px;width:17px;height:17px;display:grid;place-items:center;background:var(--ink);color:var(--bg);font-size:10px}.chat{display:flex;flex-direction:column;min-height:0;min-width:0}.chat-head{height:78px;display:flex;align-items:center;gap:11px;border-bottom:1px solid var(--line);padding:0 24px;flex-shrink:0}.chat-head .contact-name{font-size:.85em;font-weight:650}.chat-head .contact-role{font-size:.65em;color:var(--muted);margin-top:3px}.chat-head .chat-head-actions{display:flex;gap:3px;margin-right:auto;direction:ltr}.chat-back{display:none}.chat-messages{flex:1;overflow:auto;min-height:0;padding:25px 24px;display:flex;flex-direction:column;gap:14px}.chat-date{align-self:center;font-size:.65em;color:var(--muted);margin:0 0 12px}.message{max-width:84%;align-self:flex-end;background:var(--surface);border-radius:16px 16px 4px 16px;padding:12px 14px;position:relative}.message.self{align-self:flex-start;border-radius:16px 16px 16px 4px;background:var(--ink);color:var(--bg)}.message p{font-size:.85em;line-height:1.9;white-space:pre-wrap;word-break:break-word}.message .message-time{font-size:.6em;opacity:.5;display:flex;align-items:center;gap:5px;direction:ltr;margin-top:6px}.message .message-time .icon{width:13px;height:13px}.message .message-menu{position:absolute;top:9px;left:-26px;opacity:0;color:var(--muted);background:var(--bg);border-radius:50%;width:23px;height:23px;display:grid;place-items:center}.message:hover .message-menu,.message:focus-within .message-menu{opacity:1}.message.image-message{padding:4px;max-width:82%;overflow:hidden}.message.image-message img{width:100%;max-height:310px;object-fit:cover;border-radius:12px;cursor:zoom-in}.message.image-message .message-time{padding:0 8px 6px}.message video{max-width:100%;max-height:280px;border-radius:10px}.message audio{max-width:100%;width:240px;height:38px}.message a{font-size:.8em;text-decoration:underline}.reply-preview{font-size:.7em;opacity:.7;border-right:2px solid currentColor;padding-right:9px;margin-bottom:7px}.message-note{font-size:.7em;opacity:.7;margin-top:6px}.chat-composer{padding:16px 18px max(16px,env(safe-area-inset-bottom));border-top:1px solid var(--line);display:flex;align-items:flex-end;gap:7px;flex-shrink:0}.chat-composer textarea{min-height:45px;height:45px;max-height:110px;resize:none;flex:1;line-height:1.5;padding:10px 13px;overflow:auto;border-radius:22px}.chat-composer .icon-btn{width:37px;height:43px}.chat-composer .send-message{background:var(--ink);color:var(--bg);width:41px;height:41px}.chat-composer .recording{background:var(--danger);color:white;animation:recordPulse 1s infinite}.chat-tools{padding:7px 24px;background:var(--surface);display:flex;align-items:center;gap:8px;font-size:.7em}.chat-tools button:last-child{margin-right:auto}.chat-intro{padding:30px;text-align:center;color:var(--muted);margin:auto}.self-intro{padding:20px 15px;text-align:center;font-size:.78em;color:var(--muted);border-bottom:1px solid var(--line)}
.overlay{position:fixed;inset:0;background:var(--overlay);z-index:100;display:flex;align-items:center;justify-content:center;backdrop-filter:blur(2px);padding:24px;animation:overlayIn .15s ease}.sheet{width:min(100%,480px);max-height:90dvh;border-radius:22px;background:var(--bg);box-shadow:var(--sheet-shadow);display:flex;flex-direction:column;overflow:hidden;direction:rtl;animation:sheetIn .2s ease}.sheet.wide{width:min(100%,580px)}.sheet-handle{display:none}.sheet-head{padding:20px 22px 16px;display:flex;align-items:center;border-bottom:1px solid var(--line);gap:10px;flex-shrink:0}.sheet-head h2{font-size:1em}.sheet-head .icon-btn{width:30px;height:30px;margin-right:auto}.sheet-content{overflow:auto;overscroll-behavior:contain;min-height:0;padding:23px}.sheet-content>p{font-size:.84em;color:var(--muted)}.sheet-footer{padding:15px 23px max(18px,env(safe-area-inset-bottom));border-top:1px solid var(--line);flex-shrink:0}.sheet-footer .primary{width:100%}.sheet-body-note{padding:13px 0 0;font-size:.7em!important;color:var(--muted)}.sheet-section{padding:22px 0;border-bottom:1px solid var(--line)}.sheet-section:first-child{padding-top:0}.sheet-section:last-child{border:0;padding-bottom:0}.sheet-section>h3{margin-bottom:14px;font-size:.85em}.theme-choices{display:grid;grid-template-columns:1fr 1fr;gap:12px}.theme-choice{border:1px solid var(--line);border-radius:12px;padding:13px;display:flex;align-items:center;gap:12px;text-align:right;font-size:.83em}.theme-choice.is-active{border-color:var(--ink)}.theme-swatch{width:32px;height:32px;background:white;border:1px solid #ddd;border-radius:50%;display:grid;place-items:center;color:#222}.theme-swatch.dark{background:#111;color:white;border-color:#333}.theme-swatch .icon{width:17px;height:17px}.range-label{display:flex;justify-content:space-between;font-size:.8em;margin-bottom:14px}.range-control{width:100%;padding:0;accent-color:var(--ink)}.font-choices{display:flex;flex-direction:column;gap:9px}.font-choice{padding:14px;text-align:right;border:1px solid var(--line);border-radius:10px;display:flex;justify-content:space-between}.font-choice.is-active{border-color:var(--ink)}.font-choice small{font-size:.6em}.form-tabs{display:flex;gap:8px;background:var(--surface);padding:5px;border-radius:11px;margin-bottom:22px}.form-tabs button{flex:1;border-radius:8px;padding:10px;font-size:.85em;color:var(--muted)}.form-tabs button.is-active{background:var(--bg);color:var(--ink);box-shadow:0 1px 5px #0001;font-weight:650}.field{display:flex;flex-direction:column;gap:8px;margin-bottom:19px}.field>label{font-size:.79em;font-weight:600}.field>small{font-size:.69em}.field input,.field select,.field textarea{width:100%}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.preset-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:22px}.preset-choice{display:flex;align-items:center;gap:10px;padding:11px;border:1px solid var(--line);border-radius:12px;text-align:right;min-height:72px}.preset-choice.is-active{border-color:var(--ink);background:var(--surface)}.preset-choice img{width:38px;height:45px;border-radius:6px}.preset-choice b{display:block;font-size:.73em;font-weight:650}.preset-choice small{font-size:.61em}.preset-choice .icon{width:20px;height:20px;color:var(--muted);margin:0 9px}.preset-choice.other{grid-column:1/-1;min-height:53px}.post-media{height:130px;border:1px dashed var(--strong-line);border-radius:12px;margin-bottom:22px;display:flex;align-items:center;justify-content:center;gap:12px;background:var(--surface);overflow:hidden;width:100%;position:relative}.post-media small{font-size:.74em}.post-media img{height:100%;width:100%;object-fit:cover}.post-media .change-media{position:absolute;bottom:9px;left:9px;background:#fff9;color:#111;border-radius:6px;padding:4px 7px;font-size:10px}.form-error{background:color-mix(in srgb,var(--danger) 8%,var(--bg));color:var(--danger);font-size:.78em;border-radius:9px;padding:10px 13px;margin:0 0 18px}.form-error:empty{display:none}.chip-set{display:flex;gap:8px;flex-wrap:wrap}.choice-chip{border:1px solid var(--line);padding:8px 11px;border-radius:8px;font-size:.75em}.choice-chip.is-active{background:var(--ink);color:var(--bg);border-color:var(--ink)}.detail-row{display:flex;justify-content:space-between;gap:20px;padding:14px 0;border-bottom:1px solid var(--line);font-size:.82em}.detail-row span:first-child{color:var(--muted)}.detail-row span:last-child{text-align:left}.detail-row:last-child{border:0}.stage-choice{width:100%;display:flex;align-items:center;gap:13px;padding:15px 0;border-bottom:1px solid var(--line);text-align:right;font-size:.87em}.stage-choice .icon:last-child{margin-right:auto;color:var(--muted);width:18px}.note-content{background:var(--surface);border-radius:12px;padding:17px;font-size:.85em;margin-bottom:20px;white-space:pre-wrap;line-height:1.9}.call-preview{display:flex;flex-direction:column;align-items:center;text-align:center;padding:15px 0;gap:15px}.call-preview .avatar{width:80px;height:80px;font-size:28px}.call-controls{display:flex;justify-content:center;gap:24px;margin-top:20px}.call-controls .icon-btn{background:var(--surface);width:53px;height:53px}.call-controls .hangup{background:var(--danger);color:white}.receipt{border:1px solid var(--line);border-radius:14px;padding:22px}.receipt-heading{display:flex;align-items:center;gap:10px;margin-bottom:18px}.receipt-heading .icon{color:var(--success)}.receipt-number{font-size:1.7em;font-weight:700;text-align:center;padding:15px 0 25px}.receipt-number small{font-size:.5em;margin-right:6px}
.image-overlay{background:#000f;padding:0;z-index:120;backdrop-filter:none;touch-action:none}.image-view{position:relative;width:100%;height:100%;overflow:hidden;display:flex;align-items:center;justify-content:center;touch-action:none}.image-view img{object-fit:contain;max-width:100%;max-height:82dvh;transform-origin:center;will-change:transform;touch-action:none;user-select:none;-webkit-user-drag:none}.image-toolbar{position:absolute;left:20px;right:20px;top:max(15px,env(safe-area-inset-top));display:flex;justify-content:space-between;color:white;z-index:2}.image-toolbar button{background:#ffffff1a}.image-zoom-controls{position:absolute;bottom:max(24px,env(safe-area-inset-bottom));display:flex;gap:12px;align-items:center;color:white;z-index:2;direction:ltr}.image-zoom-controls button{background:#ffffff1a}.image-zoom-controls span{font:12px Arial;width:45px;text-align:center}#toast{position:fixed;bottom:30px;left:50%;transform:translate(-50%,20px);background:var(--ink);color:var(--bg);padding:12px 20px;border-radius:12px;box-shadow:0 5px 35px #0002;z-index:200;font-size:12px;max-width:88vw;opacity:0;pointer-events:none;transition:.2s;white-space:pre-line;text-align:center}#toast.visible{opacity:1;transform:translate(-50%,0)}
@keyframes overlayIn{from{opacity:0}to{opacity:1}}@keyframes sheetIn{from{transform:translateY(15px);opacity:.5}to{transform:none;opacity:1}}@keyframes recordPulse{50%{opacity:.6}}
@media(min-width:1700px){.content-wrap{padding-top:45px;gap:70px}.task-grid{gap:28px 22px}}
@media(max-width:1200px){.shell{grid-template-columns:86px minmax(0,1fr)}.rail{padding:35px 12px 18px}.rail .brand{font-size:0;letter-spacing:0;margin-bottom:35px}.rail .brand:before{content:'M';font:750 25px Arial}.rail-item{padding:0;justify-content:center}.rail-item .nav-label,.rail-foot p,.rail-item .new-dot{display:none}.rail-item .avatar{width:26px;height:26px;font-size:11px}.rail-foot .rail-item .nav-label{display:none}.content-wrap{grid-template-columns:minmax(0,1fr) 200px;gap:30px;padding:30px}.appbar{padding:0 30px}}
@media(max-width:1020px){.context-aside{display:none}.content-wrap{grid-template-columns:minmax(0,1fr);max-width:820px}.messenger{grid-template-columns:270px minmax(0,1fr)}}
@media(max-width:960px){:root{--font-size:14px;--radius:12px}.shell{display:block}.rail{display:none}.main-area{height:100dvh;padding-top:env(safe-area-inset-top)}.appbar{height:60px;padding:0 17px;direction:ltr}.appbar .mobile-brand{display:block;font-size:19px;letter-spacing:1.8px}.appbar .appbar-title{display:none}.appbar-start{gap:9px}.preview-badge{font-size:8px;border:0;background:var(--surface);padding:4px 6px}.appbar-actions{gap:0}.appbar-actions .icon-btn{width:37px;height:39px}.appbar-actions .icon{width:23px;height:23px}.content-wrap{padding:23px 16px 25px;gap:0}.page-heading{margin-bottom:21px}.page-heading h1{font-size:1.5em}.page-heading small{font-size:.75em}.page-heading .subtle-button{font-size:.72em}.searchbox{min-height:44px;border-radius:10px}.tabs{margin-top:15px;margin-bottom:20px;gap:27px}.tab{font-size:.88em;padding:12px 0}.task-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 12px}.task-cover{aspect-ratio:4/4.7}.task-card h3{font-size:.91em;margin-top:10px}.task-card .card-meta{font-size:.71em}.task-card .english-meta{font-size:9px}.card-label{top:8px;right:8px;font-size:.62em;padding:4px 6px}.task-cover .cover-code{font-size:8px;left:8px;bottom:8px}.bottom-nav{height:calc(62px + env(safe-area-inset-bottom));flex-shrink:0;display:flex;align-items:flex-start;padding:6px 8px env(safe-area-inset-bottom);border-top:1px solid var(--line);background:var(--bg);justify-content:space-around;direction:rtl;z-index:20}.bottom-item{position:relative;width:58px;height:48px;border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:var(--muted)}.bottom-item.is-active{color:var(--ink)}.bottom-item .icon{width:24px;height:24px}.bottom-item span{font-size:8px}.bottom-item.is-active span{font-weight:750}.bottom-item.plus .icon{width:28px;height:28px}.bottom-item .avatar{width:24px;height:24px;font-size:10px;border:1.5px solid var(--strong-line)}.bottom-item.is-active .avatar{outline:1px solid var(--ink);outline-offset:3px}.bottom-item .count-badge{right:9px;top:2px;font-size:8px;min-width:13px;height:13px}.task-profile-top{gap:20px;margin:0 0 20px}.task-avatar{width:80px;height:80px}.profile-counters{gap:8px}.profile-counter{min-width:40px}.profile-counter strong{font-size:1.35em}.profile-counter small{font-size:.75em}.task-heading-row h1{font-size:1.25em}.task-owner{font-size:.75em}.task-attributes{gap:15px;font-size:.72em;flex-wrap:wrap}.stage-row{gap:17px;padding:23px 0 18px}.stage{min-width:64px;width:64px;font-size:.72em}.stage-image{width:60px;height:60px}.story-report{padding-top:20px}.story-bars{margin-bottom:16px}.report-text h2{font-size:1.02em}.report-text p{font-size:.85em}.report-image{aspect-ratio:1.16}.report-author{margin-bottom:13px}.report-fields{margin:12px 0;font-size:.72em;gap:15px}.task-action{padding-top:12px}.task-action .primary{min-height:45px;font-size:.9em}.task-page .page-heading{margin-bottom:20px}.personal-head{gap:16px}.personal-head .avatar.large{width:69px;height:69px}.personal-stats{margin-top:14px;padding:21px 0}.range-option{font-size:.71em;padding:8px}.metric-number{font-size:2.3em}.chart-wrap{margin-top:19px}.slide-heading{margin-top:24px}.list-link{min-height:53px;font-size:.84em}.overlay{align-items:flex-end;padding:0}.sheet,.sheet.wide{width:100%;max-height:93dvh;border-radius:24px 24px 0 0}.sheet-handle{display:block;width:34px;height:4px;background:var(--strong-line);border-radius:3px;margin:11px auto 0;flex-shrink:0}.sheet-head{padding:16px 20px 15px}.sheet-content{padding:21px 20px}.sheet-footer{padding:13px 20px max(20px,env(safe-area-inset-bottom))}.preset-choice{padding:10px;gap:8px;min-height:67px}.preset-choice b{font-size:.72em}.preset-choice small{font-size:.62em}.preset-choice img{width:33px;height:41px}.field{margin-bottom:18px}.notification{padding:20px 0}.notification p{font-size:.85em}.feed-post{margin-bottom:25px;padding-bottom:25px}.feed-post img{border-radius:10px}.feed-post-text p{font-size:.83em}.messenger{display:block;height:100%;max-width:600px}.conversation-list{height:100%;border:0;padding:20px 12px}.conversation-list h1{font-size:1.4em;padding:3px 5px 23px}.contact{padding:18px 9px;gap:14px}.contact .avatar{width:48px;height:48px;font-size:1.15em}.contact h3{font-size:.96em}.contact p{font-size:.75em}.contact .contact-end{font-size:.66em}.messenger:not(.chat-open) .chat{display:none}.messenger.chat-open .conversation-list{display:none}.messenger.chat-open .chat{height:100%}.chat-head{height:69px;padding:0 12px;gap:8px}.chat-head .avatar{width:36px;height:36px}.chat-head .contact-name{font-size:.94em}.chat-head .contact-role{font-size:.65em}.chat-back{display:inline-flex;width:30px}.chat-head .chat-head-actions .icon-btn{width:35px}.chat-head .chat-head-actions .icon{width:21px}.chat-messages{padding:22px 17px;gap:14px}.message{max-width:83%;padding:11px 13px}.message p{font-size:.93em}.message .message-menu{opacity:1;top:10px;left:-24px}.chat-composer{padding:12px 10px max(14px,env(safe-area-inset-bottom));gap:3px}.chat-composer textarea{font-size:16px}.chat-composer .icon-btn{width:33px}.chat-composer .icon{width:22px}.chat-composer .send-message{width:38px;height:38px}.chat-tools{font-size:.7em;padding:9px 16px}.main-area:has(.messenger.chat-open) .appbar{display:none}.main-area:has(.messenger.chat-open) .bottom-nav{display:none}.main-area:has(.messenger.chat-open){padding-top:env(safe-area-inset-top)}#toast{bottom:85px}.image-overlay{align-items:center}.image-toolbar{top:max(13px,env(safe-area-inset-top))}.image-view img{max-height:78dvh}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
.enterprise .content-wrap{display:block;max-width:1540px;padding:32px 38px 60px}.enterprise .context-aside{display:none}.enterprise .rail{padding-top:32px;background:var(--bg)}.enterprise .rail .brand{margin-bottom:35px}.enterprise .rail-nav{gap:4px}.enterprise .rail-item{min-height:45px;font-size:.83em;gap:12px}.enterprise .rail-item .icon{width:20px;height:20px}.enterprise .appbar{height:70px}.enterprise .rail-foot{padding-top:30px}.enterprise .desktop-hide{display:none}.enterprise-breadcrumb{display:flex;gap:12px;align-items:center;font:10px Workspace,Arial;color:var(--muted);margin-bottom:21px;direction:ltr;justify-content:flex-end}.enterprise-breadcrumb span{opacity:.5}.enterprise-actions{display:flex;gap:10px}.enterprise .page-heading{margin-bottom:28px}.enterprise .page-heading h1{font-size:1.55em}.enterprise .page-heading small{font-size:.73em}.kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:25px}.kpi{background:var(--raised);border:1px solid var(--line);border-radius:12px;text-align:right;padding:20px 19px;min-width:0}.kpi>span{display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--muted);font-size:.73em}.kpi>strong{display:flex;align-items:baseline;gap:7px;font-size:2em;line-height:1.6;font-weight:650;margin:11px 0 3px}.kpi em{font-style:normal;font-size:.32em;color:var(--muted);font-weight:400}.kpi>small{font-size:.65em}.enterprise-panels{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin:24px 0}.enterprise-panel{border:1px solid var(--line);border-radius:12px;background:var(--raised);padding:22px;min-width:0}.enterprise-panel>header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.enterprise-panel>header h2{font-size:.88em}.enterprise-panel>header small{font-size:.65em}.work-distribution{padding:10px 0 2px}.work-distribution>div{display:flex;gap:15px;align-items:center;margin-bottom:20px;font-size:.75em}.work-distribution>div span{width:74px;flex-shrink:0;color:var(--muted)}.work-distribution>div b{width:18px;font-weight:650}.distribution-track{height:7px;background:var(--surface);border-radius:8px;flex:1;overflow:hidden}.distribution-track i{display:block;background:var(--ink);height:100%;border-radius:8px}.table-panel{padding:0;overflow:hidden}.table-panel>header{padding:20px 22px 0}.enterprise-table-wrap{max-width:100%;overflow:auto}.enterprise-table{width:100%;border-collapse:collapse;text-align:right;white-space:nowrap;font-size:.73em}.enterprise-table th{font-weight:500;color:var(--muted);background:var(--surface);padding:13px 18px;border-bottom:1px solid var(--line);font-size:.93em}.enterprise-table td{padding:13px 18px;border-bottom:1px solid var(--line);color:var(--muted)}.enterprise-table td b{font-weight:600;color:var(--ink)}.enterprise-table tr:last-child td{border-bottom:0}.table-task{display:flex;gap:11px;align-items:center;text-align:right}.table-task img{width:32px;height:39px;border-radius:5px;object-fit:cover}.table-task small{display:block;font:9px Arial;margin-top:5px;color:var(--muted);text-align:right;letter-spacing:.4px}.table-task b{font-size:1.03em}.enterprise-table .icon-btn{width:27px;height:30px}.enterprise-table .pill{font-size:.85em}.enterprise-table .compact{min-height:30px;padding:0 12px;font-size:.95em}.financial-number{color:var(--ink)!important}.enterprise-footnote{color:var(--muted);font-size:.64em;margin-top:18px}.enterprise-task-grid{display:grid;grid-template-columns:280px minmax(0,1fr);gap:25px}.enterprise-task-grid .task-spec{align-self:start}.enterprise-stage-tabs{display:flex;gap:8px;overflow:auto;padding-bottom:18px;border-bottom:1px solid var(--line);scrollbar-width:thin}.enterprise-stage-tabs button{display:flex;gap:6px;align-items:center;padding:8px 10px;border:1px solid var(--line);border-radius:7px;font-size:.72em;white-space:nowrap;color:var(--muted)}.enterprise-stage-tabs button.is-active{background:var(--ink);color:var(--bg);border-color:var(--ink)}.enterprise-stage-tabs small{font-size:.8em;color:inherit;opacity:.6;margin-right:3px}.task-progress .report-image{aspect-ratio:1.5}.task-spec .detail-row{font-size:.74em}.task-spec .sheet-body-note{font-size:.73em!important}.finance-mobile-summary{padding:24px 0 29px;border-bottom:1px solid var(--line);display:flex;flex-direction:column;gap:8px}.finance-mobile-summary>span{font-size:.82em;color:var(--muted)}.finance-mobile-summary>strong{font-size:2.7em;line-height:1.5;font-weight:650}.finance-mobile-summary small{font-size:.83em}.mobile-finance-actions{display:flex;justify-content:space-between;gap:12px;margin:25px 0 32px}.mobile-finance-actions button{display:flex;flex-direction:column;align-items:center;gap:12px;font-size:.75em;flex:1}.mobile-finance-actions .icon{width:42px;height:42px;padding:10px;background:var(--surface);border-radius:12px}.employee-preview{height:100dvh;background:var(--surface);display:flex;align-items:center;flex-direction:column;gap:18px;padding-bottom:15px}.employee-preview>header{display:flex;gap:25px;align-items:center;width:100%;background:var(--bg);padding:15px 25px;border-bottom:1px solid var(--line);font-size:.8em}.employee-preview>header .secondary{margin-right:auto}.employee-preview iframe{width:430px;max-width:100%;flex:1;min-height:0;background:var(--bg);border:1px solid var(--line);border-radius:18px}.employee-preview .brand{font-size:18px}.manager-mobile-tools{display:flex;gap:10px;padding:6px 0 24px;border-bottom:1px solid var(--line);margin-bottom:25px}.manager-mobile-tools button{display:flex;align-items:center;gap:7px;border:1px solid var(--line);border-radius:10px;padding:11px 12px;font-size:.73em}.manager-mobile-tools button .icon{width:18px;height:18px}
@media(min-width:961px) and (max-width:1200px){.enterprise .content-wrap{padding:28px 25px}.enterprise-task-grid{grid-template-columns:235px minmax(0,1fr)}.kpi-grid{gap:11px}.kpi{padding:16px 13px}.kpi>strong{font-size:1.7em}.enterprise-panel{padding:18px}.table-panel{padding:0}.enterprise-table td,.enterprise-table th{padding-right:13px;padding-left:13px}}
@media(max-width:960px){.content-scroll{scrollbar-width:none}.content-scroll::-webkit-scrollbar{display:none}.task-page>.page-heading{height:26px;margin-bottom:13px}.task-page>.page-heading .icon-btn{height:28px;width:30px}.task-page>.page-heading .subtle-button{padding:0}.task-profile-top{margin-bottom:12px}.task-avatar{width:70px;height:70px}.task-heading-row h1{font-size:1.18em}.task-english{font-size:10px;line-height:1.5;margin:4px 0 3px}.task-bio{margin-top:5px}.task-bio .subtle-button{padding:4px 0}.task-attributes{padding-top:7px;font-size:.72em}.stage-row{padding-top:18px;padding-bottom:14px;gap:15px}.stage{min-width:61px;width:61px;gap:6px}.stage-image{width:55px;height:55px}.story-report{padding-top:16px}.report-author{margin-bottom:11px}.report-text h2{margin-bottom:5px}.report-text p{font-size:.85em}.report-fields{margin:11px 0}.report-image{margin-top:12px}.report-footer .icon-btn{width:34px;height:34px}.personal-head h1{font-size:1.2em}.enterprise-breadcrumb{display:none}}
.status-strip{display:flex;gap:7px;overflow:auto;scrollbar-width:none;margin:-4px 0 20px;padding:1px 0 3px}.status-strip::-webkit-scrollbar{display:none}.status-filter{white-space:nowrap;padding:7px 11px;border:1px solid var(--line);color:var(--muted);border-radius:8px;font-size:.72em}.status-filter.is-active{background:var(--ink);border-color:var(--ink);color:var(--bg)}.settings-page{max-width:740px;margin:auto}.settings-account{width:100%;display:flex;align-items:center;gap:16px;margin:26px 0;padding:0 0 25px;border-bottom:1px solid var(--line);text-align:right}.settings-account .avatar{width:58px;height:58px;font-size:20px}.settings-account b{display:block;font-size:.95em;font-weight:650;margin-bottom:4px}.settings-account small{font-size:.75em}.settings-account>.icon{margin-right:auto;color:var(--muted)}.settings-group{padding:18px 0 20px;border-bottom:1px solid var(--line)}.settings-group h2{color:var(--muted);font-size:.8em;font-weight:500;margin:0 0 10px}.settings-group h2 span{font-size:.8em;margin-right:8px;opacity:.7}.settings-row{display:flex;align-items:center;text-align:right;gap:14px;width:100%;padding:13px 0;min-height:62px}.settings-row[hidden]{display:none}.settings-icon{width:32px;display:flex;align-items:center;justify-content:center;color:var(--ink);flex-shrink:0}.settings-icon .icon{width:23px;height:23px}.settings-row b{font-size:.87em;display:block;font-weight:550}.settings-row small{font-size:.69em;display:block;margin-top:4px;line-height:1.7}.settings-row>.icon{margin-right:auto;color:var(--muted);width:17px;height:17px;flex-shrink:0}.settings-row:hover{opacity:.7}.settings-foot{text-align:center;color:var(--muted);font-size:.65em;margin:28px 0 10px}.mobile-finance-actions{flex-wrap:wrap}.mobile-finance-actions button{min-width:65px}.settings-page .page-heading h1{font-size:1.4em}
/* Product identifiers share one lighting, material and framing system in both themes. */
:root{--render-surface:#f3f4f6}
:root[data-theme="dark"]{--render-surface:#24262b}
img[src*="visuals/"]{object-fit:contain}
.task-cover:has(img[src*="visuals/"]){aspect-ratio:1;background:var(--render-surface);border:1px solid var(--line)}
.task-cover img[src*="visuals/"]{padding:5%;object-fit:contain}
.task-cover:has(img[src*="visuals/"]) .card-label{background:var(--bg);color:var(--muted);border-color:var(--line);backdrop-filter:none}
.task-cover:has(img[src*="visuals/"]) .card-label.waiting{color:var(--warning)}
.task-cover:has(img[src*="visuals/"]) .cover-code{background:transparent;color:var(--muted);padding:2px;font-size:9px;letter-spacing:.5px}
.task-avatar img[src*="visuals/"],.stage-image img[src*="visuals/"]{object-fit:contain;padding:7%;background:var(--render-surface)}
.table-task img[src*="visuals/"]{object-fit:contain;background:var(--render-surface);padding:3px}
.report-image:has(img[src*="visuals/"]),.feed-post:has(>img[src*="visuals/"])>img{background:var(--render-surface)}
.report-image img[src*="visuals/"],.feed-post img[src*="visuals/"]{object-fit:contain;padding:7%}
.preset-choice img[src*="visuals/"]{width:46px;height:46px;object-fit:contain;flex-shrink:0;padding:3px;background:var(--render-surface);border-radius:8px}
.message img[src*="visuals/"]{object-fit:contain;background:var(--render-surface);padding:8px}
.product-library-intro{font-size:.8em;margin-bottom:20px}
.product-library{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 14px}
.product-library-card{display:flex;flex-direction:column;align-items:stretch;text-align:right;min-width:0}
.product-library-image{display:block;aspect-ratio:1;background:var(--render-surface);border-radius:12px;border:1px solid var(--line);margin-bottom:10px;overflow:hidden}
.product-library-image img{width:100%;height:100%;object-fit:contain;padding:5%}
.product-library-name{text-align:right;font:600 12px Arial,sans-serif;margin-bottom:5px;color:var(--ink)}
.product-library-card b{font-size:.8em;font-weight:600;line-height:1.8}
.product-library-card small{font-size:.67em;line-height:1.9;margin-top:3px;color:var(--muted)}
.op-page{width:100%;max-width:1080px;margin:0 auto}.op-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.op-card{border:1px solid var(--line);border-radius:14px;padding:20px;margin:0 0 16px;min-width:0;background:var(--bg)}.op-card h2{font-size:1em;margin:0 0 14px}.op-card h3{font-size:.9em;margin:12px 0}.op-card p{font-size:.8em;color:var(--muted);line-height:1.9;overflow-wrap:anywhere}.op-card .detail-row{font-size:.76em;padding:11px 0;overflow-wrap:anywhere}.op-card .detail-row>b{text-align:left;max-width:62%;font-weight:550}.op-actions{display:flex;gap:8px;flex-wrap:wrap;margin:15px 0 5px}.op-actions>button{font-size:.75em;min-height:38px}.page-actions{margin:0 0 22px}.op-page>h2{font-size:1em;margin:25px 0 16px}.op-help,.op-warning{padding:14px 16px;border-radius:10px;margin:0 0 18px;font-size:.79em;line-height:1.95;background:var(--surface);color:var(--muted)}.op-warning{border:1px solid var(--strong-line);color:var(--ink)}.op-help p{margin:6px 0 0}.op-filter{display:flex;gap:10px;margin:0 0 20px}.op-filter>*{min-width:0;flex:1}.op-evidence{display:inline-flex;width:100px;height:125px;vertical-align:top;margin:8px 0 8px 8px;background:var(--surface);border:1px solid var(--line);border-radius:10px;overflow:hidden}.op-evidence img{width:100%;height:100%;object-fit:contain}.op-repeat{border-top:1px solid var(--line);padding-top:18px;margin:20px 0}.op-repeat h3{font-size:.9em;margin-bottom:14px}.op-repeat-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:14px;background:var(--surface);border-radius:10px;margin:0 0 14px}.op-repeat-row label{font-size:.74em;line-height:1.9;min-width:0}.op-repeat-row input,.op-repeat-row select{width:100%;background:var(--bg);margin-top:5px;min-width:0}.op-scores{border:1px solid var(--line);border-radius:10px;padding:15px;margin:20px 0}.op-scores legend{font-size:.8em}.op-scores>label{display:grid;grid-template-columns:1fr 80px;gap:10px;align-items:center;font-size:.78em;margin-bottom:9px}.op-scores input{width:80px}.op-scores small{display:block;margin-top:12px;line-height:1.9}.op-rating{display:flex;align-items:center;gap:12px;margin:15px 0;font-size:.78em}.op-rating meter{flex:1;accent-color:var(--ink);min-width:0}.op-team-choices>div{display:grid;grid-template-columns:110px 1fr;gap:10px;align-items:center;margin:10px 0}.op-team-choices label{font-size:.8em}.op-team-choices input[type=text],.op-team-choices input:not([type]){width:100%;min-width:0;font-size:.76em}.op-team-choices input[type=checkbox]{margin-left:8px}.sheet-content details{border:1px solid var(--line);border-radius:10px;padding:14px;margin:18px 0}.sheet-content summary{cursor:pointer;font-size:.8em;font-weight:600;margin-bottom:12px}.sheet-content details small{font-size:.7em;line-height:1.9;display:block}.route-preview{font-size:.76em;line-height:2;color:var(--muted)}.required-mark{color:var(--danger)}.report-album{display:flex;gap:7px;padding:9px 0;overflow:auto}.report-album button{width:64px;height:70px;flex-shrink:0;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:var(--surface)}.report-album img{width:100%;height:100%;object-fit:contain}.task-work-actions .secondary{font-size:.67em;padding:8px 10px}.public-product-photo{max-width:100%;height:320px;object-fit:contain;background:var(--render-surface);border-radius:12px;margin:15px 0}.op-card details{font-size:.8em;line-height:1.9;margin-top:12px}.op-records .op-card[hidden]{display:none}.op-page .kpi{min-width:0}.content-primary:has(>.op-page){width:100%;max-width:none}.content-wrap:has(.op-page) .context-aside{display:none}.content-wrap:has(.op-page){display:block}
@media(max-width:700px){.op-grid{grid-template-columns:1fr}.op-card{padding:16px;border-radius:12px}.op-page .page-heading h1{font-size:1.3em}.op-page .page-heading .text-link{font-size:.68em}.op-repeat-row{gap:10px;padding:12px}.op-actions>button{font-size:.73em}.op-team-choices>div{grid-template-columns:95px 1fr}.op-filter{flex-wrap:wrap}.op-filter>*{flex:1 1 140px}.public-product-photo{height:260px}.task-work-actions{gap:6px}.task-work-actions .secondary{min-height:38px;flex:1 1 40%}}
.contacts-panel{display:flex;flex-direction:column;min-width:0;overflow:auto;border-inline-end:1px solid var(--border);padding:18px 12px}.contacts-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:16px}.contacts-head h1{flex:1;margin:0;font-size:22px}.contacts-head .secondary{font-size:11px;padding:8px}.contact-row{width:100%;text-align:start;display:flex;align-items:center;gap:12px;border:0;background:none;padding:14px 10px;border-radius:12px}.contact-row b{display:block}.contact-row small{display:block;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:210px}.chat-panel{min-width:0;display:flex;flex-direction:column;overflow:hidden}.chat-placeholder{margin:auto;text-align:center;padding:30px;color:var(--muted)}.chat-placeholder>.icon{width:56px;height:56px}.chat-head>button:not(.icon-btn){text-align:start;background:none;border:0}.chat-head small{display:block;color:var(--muted);font-size:11px}.msg-photo{border:0;padding:0;background:none;max-width:100%;display:block}.msg-photo img{display:block;max-height:290px;max-width:100%;border-radius:12px}.msg-album{display:grid;grid-template-columns:1fr 1fr;gap:4px}.msg-album img{width:100%;height:140px;object-fit:cover}.msg-selected{outline:2px solid var(--accent)}.message-reactions{display:flex;gap:12px}.message .message-menu{opacity:1}.chat-tools{flex-wrap:wrap;flex-shrink:0}.chat-tools .secondary{font-size:11px;padding:6px 10px}.sheet-content audio,.sheet-content video{max-width:100%}.sheet-content>.msg-photo,.sheet-content form>.msg-photo{max-width:320px;margin:10px auto}.sheet-content form>.msg-photo img{max-height:240px}.chat-panel .chat-messages{flex:1;min-height:0}.message .muted{color:var(--muted);font-style:italic}.money-amount{border:0;background:none;color:inherit;padding:0;position:relative;text-align:inherit;font-weight:inherit}.money-toman{display:none;position:absolute;z-index:3;inset-inline-end:0;top:100%;white-space:nowrap;background:var(--text);color:var(--bg);padding:7px 10px;border-radius:8px;font-size:12px;box-shadow:0 4px 12px #0002}.money-amount:hover .money-toman,.money-amount:focus-visible .money-toman,.money-amount.is-open .money-toman{display:block}.op-card .evidence img{max-height:220px}.field small{display:block}.op-field-help{font-size:11px;color:var(--muted);margin-top:6px}.op-field-help summary{cursor:pointer;color:var(--accent);width:fit-content}.op-field-help p{line-height:1.9;margin:7px 0}.op-reason-grid{display:grid;gap:12px;grid-template-columns:1fr 1fr}.op-help .pill{margin:3px}.op-card .op-actions{margin-top:14px}.op-team-choices input:not([type=checkbox]){min-width:0;width:100%}.task-work-actions{margin-top:18px}.op-actions .secondary,.op-actions .primary{white-space:normal}.public-product-photo{width:100%;max-height:400px;object-fit:contain}.op-page input,.op-page textarea,.op-page select{max-width:100%}.op-page .page-actions{margin-bottom:20px}.op-card h2{overflow-wrap:anywhere}.op-state-waiting{color:#b78308;background:#fff1c3}.op-state-good{color:#21834c;background:#dff6e8}.op-state-bad{color:#cc4a4a;background:#fee7e7}
@media(max-width:700px){.messenger .contacts-panel{border:0;width:100%;height:100%}.messenger:not(.chat-open) .chat-panel{display:none}.messenger.chat-open .contacts-panel{display:none}.messenger.chat-open .chat-panel{display:flex;width:100%;height:100%}.chat-panel .chat-head{padding:10px 12px;gap:9px}.chat-panel .chat-head b{font-size:15px}.chat-panel .chat-head .avatar{width:34px;height:34px}.chat-panel .chat-head-actions{gap:0}.chat-panel .chat-messages{padding:16px 12px}.chat-panel .chat-composer{padding:10px 8px max(10px,env(safe-area-inset-bottom));gap:2px}.chat-panel .chat-composer .icon-btn{width:34px;min-width:34px}.chat-panel .chat-composer textarea{min-width:0;font-size:16px}.contacts-head .secondary{font-size:12px}.op-reason-grid{grid-template-columns:1fr}.task-work-actions>.secondary{flex:1 1 140px}.op-team-choices{grid-template-columns:1fr!important}.message{max-width:85%}.message audio{max-width:245px}}

.product-qr{display:block;width:240px;height:240px;max-width:100%;margin:20px auto;background:#fff}.qr-url{overflow-wrap:anywhere;font-size:11px}.op-page details>summary{cursor:pointer;line-height:1.8}.op-page details .op-evidence img{max-height:220px}.report-text p[data-user-content]{white-space:pre-wrap}
.ws{padding:16px;max-width:760px;margin:auto}.ws.login{max-width:380px;margin:10vh auto}.ws form,.ws section:not([hidden]),.ws label{display:grid;gap:8px}.ws form,.ws section:not([hidden]){gap:14px}.ws input:not([type=checkbox]),.ws select{padding:10px;border:1px solid var(--line,#bbb);border-radius:10px;background:var(--bg);color:inherit;font:inherit;min-width:0;width:100%}.ws [hidden]{display:none!important}.ws label:has(input[type=checkbox]){display:block}.ws .stage-row{align-items:center;margin-block:18px}.ws .stage-row button{flex-shrink:0}.ws summary{padding:9px 0;cursor:pointer}.ws-story-sheet{height:100dvh;max-height:100dvh!important}.ws-story{min-height:65vh;cursor:pointer}.ws-story img{width:100%;max-height:52vh;object-fit:contain}.hint-dot{border:0;background:none;color:#888;font-size:13px}.hint-tip{position:absolute;z-index:10;background:var(--bg);border:1px solid #aaa;padding:8px;border-radius:8px}.ws-dates{display:flex;gap:4px}.ws-dates label{flex:1}

.hint-anchor{position:relative;display:block;min-width:0;width:100%}
.hint-anchor .hint-dot{position:absolute;left:-24px;top:50%;transform:translateY(-50%);width:26px;height:36px;margin:0;padding:0;border:0;background:transparent;color:var(--muted);font:14px sans-serif;z-index:1}
.hint-anchor .hint-tip{position:absolute;left:0;bottom:100%;z-index:12;max-width:100%;width:max-content;background:var(--bg,#fff);color:var(--text);border:1px solid var(--border);padding:8px 12px;border-radius:10px;box-shadow:0 4px 14px #0002}
.process-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px 4px}.process-grid .stage{width:100%;min-width:0;align-self:start;white-space:normal;font-size:.82em}.process-grid .stage-image{width:min(100%,58px);height:auto;aspect-ratio:1;display:grid;place-items:center}
.ws-story-sheet .sheet-head h2,#ws-entry h3{font-size:1.65rem}.ws-ring-active{outline:3px solid #299261}.ws-ring-paused{outline:3px solid #d6a52c}.ws-ring-done,.ws-ring-cancelled{outline:3px solid #cc4949}
.ws-status-active{color:#22835a}.ws-status-paused,[data-w=pause]{color:#927000}.ws-status-done,[data-w=finish],[data-pack-warning]{color:#be3737}
[data-logout]{display:block;margin-inline-start:auto}.manager-widgets{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));gap:12px;padding:14px 0}.manager-widgets article{border:1px solid var(--border);border-radius:18px;padding:14px}.manager-widgets h2{font-size:1rem}.manager-widgets meter{width:100%}#ws-entry fieldset{border:0;padding:6px 0}#ws-entry fieldset label{display:inline-flex;gap:4px;margin-inline-end:10px}

.appbar .staff-header-actions .icon-btn{width:44px;height:44px}
.appbar .staff-header-actions .icon-btn svg{width:29px;height:29px}

/* Messenger layout and recording controls */
.messenger[dir=ltr]{direction:ltr}.messenger .contacts-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.messenger .contacts-head h1{font-size:1.9rem;line-height:1.2;padding:0;margin:0;margin-inline-end:auto}
.msg-language,.msg-new{border:1px solid var(--line);border-radius:30px;padding:8px 12px;background:var(--surface);color:var(--ink);font:600 12px system-ui;direction:ltr;white-space:nowrap}.msg-new{background:#59bc70;color:#101810;font-size:24px;padding:0;width:38px;height:38px}.messenger .op-actions{display:flex;flex-wrap:wrap;gap:5px}.messenger .op-actions button{border-radius:25px;padding:5px 10px;border:1px solid var(--line)}.messenger .op-actions .primary{background:#20533d;color:white}.messenger .contact-row{text-align:start;border-radius:0;border-bottom:1px solid var(--line)}.msg-meta{display:grid;justify-items:center;gap:5px;font-size:.75rem}.msg-meta i{background:#59bc70;color:#08190d;border-radius:99px;padding:2px 6px;font-style:normal}
.messenger .chat-composer{display:flex;direction:ltr;align-items:center;gap:6px}.chat-composer textarea{order:2}.chat-composer [data-msg=camera]{order:3}.chat-composer [data-msg=voice],.chat-composer .msg-send{order:4}.messenger .chat-composer .icon-btn,.voice-actions button{width:40px;height:40px;border-radius:50%;background:var(--surface);border:1px solid var(--line)}.chat-composer [data-msg=attach]{font:28px system-ui}.chat-composer:has(textarea:placeholder-shown) .msg-send,.chat-composer:has(textarea:not(:placeholder-shown)) [data-msg=voice],.messenger .chat-composer:has(+.voice-console){display:none}.voice-console{padding:12px 16px;direction:ltr}.voice-meter,.voice-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}.voice-meter{background:var(--surface);border-radius:40px;padding:8px 16px}.voice-meter canvas{width:80%;height:36px}.voice-actions{margin-top:10px}.voice-actions button:first-child{color:#ed526d}.messenger .message{border-radius:18px}.messenger .reply-preview{border-inline-start:3px solid #67b78a;padding-inline-start:8px}
.messenger .conversation-list{display:flex;flex-direction:column;gap:12px}.msg-tabs{position:sticky;bottom:0;display:flex;justify-content:space-around;align-items:center;border:1px solid var(--line);background:var(--surface);border-radius:40px;padding:4px;margin-top:auto}.msg-tab{flex:1;background:transparent;color:var(--ink);border:0;border-radius:30px;display:grid;justify-items:center;padding:6px}.msg-tab[aria-pressed=true]{background:var(--bg)}.msg-tab small{font-size:10px}.msg-tab .icon{width:19px;height:19px}

.msg-head-tools{display:flex;align-items:center;gap:6px;margin-right:auto}
.messenger .contacts-head{display:flex;align-items:center;justify-content:space-between}
.msg-language,.msg-settings{border:0;background:transparent;color:var(--muted);box-shadow:none;min-height:42px;padding:5px;font-size:12px}
.msg-settings svg{width:17px;height:17px}.messenger .chat-messages{background:var(--chat-bg,var(--bg))}
.messenger .message{background:var(--chat-in,var(--surface));color:var(--chat-text,var(--ink));font-size:var(--chat-size,1rem)}
.messenger .message.self{background:var(--chat-out,var(--line))}.messenger .message p{font-size:inherit;color:inherit}
.messenger .msg-tab[aria-pressed=true]{background:var(--chat-tab,var(--bg))}
.quick-react{display:flex;flex-wrap:wrap;gap:3px}.quick-react button{padding:5px;font-size:20px}
[data-msg="delete"],[data-msg="thread-remove"]{color:#cf4046}

/* Workshop entries and reports */
.ws .ws-pair,.ws .ws-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem}
.ws .ws-pair>*{min-inline-size:0}
.ws .ws-meta{display:flex;align-items:center;flex-wrap:wrap;gap:.6rem;color:var(--muted);font-size:.88rem}
.ws-meta button.secondary{font:inherit;color:inherit;min-height:36px;padding:.25rem .6rem;background:transparent;border-color:var(--line)}
.ws .ws-process-picker{padding:.75rem 1rem;border-inline-start:3px solid #38a078;background:var(--surface);border-radius:.65rem}
.ws .ws-process-picker select{font-weight:600;border:0;padding-inline:0;background:transparent}
:is(.ws,#factory-form) .ws-upload{position:relative;justify-items:center;align-content:center;justify-self:center;width:min(100%,15rem);min-height:60px;padding:.55rem .8rem;border:1px dashed var(--line);border-radius:.8rem;cursor:pointer;gap:.15rem}
:is(.ws,#factory-form) .ws-upload small,.ws-summary dt{color:var(--muted)}
:is(.ws,#factory-form) .ws-upload img{width:auto;max-width:100%;max-height:6rem;object-fit:contain}
:is(.ws,#factory-form) .ws-upload input{position:absolute;inset:0;opacity:0;cursor:pointer}
.ws-upload:focus-within{outline:2px solid currentColor}
.ws .ws-responsible fieldset{min-width:0;border:0;margin:0;padding:0;display:flex;gap:.45rem;flex-wrap:wrap}
.ws .ws-responsible legend{font-size:.85rem;margin-block-end:.3rem}
.ws .ws-responsible label{border:1px solid var(--line);border-radius:1rem;padding:.3rem .55rem;cursor:pointer}
.ws .ws-responsible label:has(:checked){border-color:#39936f}
.ws .ws-summary{padding:.65rem .85rem;border:1px solid var(--line);border-radius:.8rem;gap:.45rem .8rem}
.ws-summary dt{font-size:.78rem}.ws-summary dd{margin:0;overflow-wrap:anywhere}
.ws-story{min-height:0}.ws-story img{display:block;margin:.5rem auto}
.ws .primary.ws-saved{background:#16754b;color:white;opacity:1}
.task-profile-top .profile-counter strong{font-size:clamp(.88rem,3.9vw,1.5rem);overflow-wrap:anywhere}

.task-detail-panel { min-inline-size: 0; }
.task-detail-panel .detail-row { align-items: baseline; gap: 1rem; }
.task-detail-panel .detail-row span { min-inline-size: 0; overflow-wrap: anywhere; }
.task-detail-group { margin-block: .75rem; border-block-start: 1px solid var(--line, #7775); }
.task-detail-group summary { cursor: pointer; padding-block: .75rem; }
.task-detail-group button { margin: .2rem; }

#factory-form .ws-upload{display:grid;margin-inline:auto;text-align:center}#factory-form .ws-upload input{width:100%;height:100%}#factory-form .ws-upload img[hidden]{display:none}

.behnam-launch{position:fixed;z-index:7;inset-inline-end:12px;bottom:calc(70px + env(safe-area-inset-bottom));display:grid;justify-items:center;background:transparent;border:0;color:inherit;padding:0;cursor:pointer;font:inherit}
.behnam-portrait{width:48px;height:48px;object-fit:contain}.behnam-launch img{width:58px;height:58px}.behnam-launch span{padding:3px 9px;border-radius:12px;background:#193a34;color:white;font-size:11px}.behnam-controls{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:4px 12px}.behnam-controls button,.behnam-controls select{font:inherit;font-size:12px}.behnam-controls small{opacity:.8}
