:root{font-family:"IBM Plex Sans Arabic",Tahoma,Arial,sans-serif;color:#1d1d1f;background:#f5f5f7;--accent:#0071e3;--accent-soft:#e8f2ff;--line:#d2d2d7;--muted:#6e6e73}*{box-sizing:border-box}body{margin:0;font-size:16px;line-height:1.65}button,input,textarea,select{font:inherit}button{cursor:pointer;border:0;background:none;color:inherit}button:disabled{cursor:wait;opacity:.55}a{color:inherit}input,select,textarea{width:100%;border:1px solid #d2d2d7;background:#fff;padding:12px 14px;border-radius:10px;color:#1d1d1f;outline:none;min-width:0}input:focus,textarea:focus,select:focus{border-color:#0071e3;box-shadow:0 0 0 3px #0071e326}textarea{resize:vertical;min-height:100px}label{display:grid;gap:7px;font-size:14px;font-weight:700}h1,h2,h3,p{margin:0}h1{font-size:28px}h2{font-size:21px}h3{font-size:17px}small,.muted{color:var(--muted)}.muted{font-size:14px}svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.btn{display:inline-flex;justify-content:center;align-items:center;gap:9px;background:var(--accent);color:#fff;padding:12px 21px;border-radius:10px;font-weight:700;font-size:14px;line-height:1.7;white-space:nowrap}.btn:hover{background:#0077ed}.btn.light{background:#fff;color:var(--accent);border:1px solid var(--line)}.btn.soft{background:var(--accent-soft);color:var(--accent)}.btn.small{padding:8px 13px}.btn.danger{color:#af3c3c;background:#fff0f0}.icon-btn{display:inline-grid;place-items:center;width:40px;height:40px;border-radius:10px;border:1px solid var(--line);background:#fff}.icon-btn:hover{background:#f5f5f7}.row{display:flex;align-items:center;gap:12px}.between{justify-content:space-between}.stack{display:grid;gap:18px}.grid-two{display:grid;grid-template-columns:1fr 1fr;gap:17px}.initial{display:grid;place-content:center;text-align:center;min-height:100vh;gap:20px}.auth{min-height:100vh;display:grid;grid-template-columns:1fr 1fr;direction:ltr}.auth-story{background:#f5f5f7;color:#1d1d1f;display:flex;flex-direction:column;justify-content:space-between;padding:8vh 8vw;direction:rtl;overflow:hidden}.auth-story h1{font-size:clamp(30px,4vw,55px);line-height:1.5;margin:45px 0 20px;max-width:420px}.auth-story p{color:#6e6e73;max-width:380px}.auth-notes{border-top:1px solid #d2d2d7;margin-top:40px;padding-top:26px;color:#6e6e73;font-size:14px;display:flex;gap:24px}.auth-form-wrap{display:grid;place-items:center;padding:40px;direction:rtl;background:#fff}.auth-form{width:min(420px,100%)}.auth-form h2{font-size:28px;margin:12px 0}.auth-form>p{color:var(--muted);margin-bottom:30px;font-size:15px}.auth-form form{display:grid;gap:18px}.auth-form .btn{padding:15px}.eyebrow{font-size:12px;letter-spacing:2px;color:#6e6e73;font-weight:bold}.form-error{color:#aa3232;font-size:14px;white-space:pre-wrap}.form-note{font-size:13px;color:var(--muted);padding:15px 0;line-height:1.8}.shell{display:grid;grid-template-columns:240px minmax(0,1fr);min-height:100vh}.sidebar{background:#fbfbfd;color:#6e6e73;border-left:1px solid #e8e8ed;padding:35px 19px 20px;position:sticky;top:0;height:100vh;display:flex;flex-direction:column}.brand{padding:3px 12px 40px;color:#1d1d1f}.brand p{font-size:12px;margin-top:12px;color:#6e6e73}.nav{display:grid;gap:8px}.nav button{display:flex;align-items:center;gap:13px;text-align:right;padding:13px 17px;border-radius:10px;font-size:14px}.nav button.active{background:var(--accent-soft);color:#0071e3;font-weight:bold}.nav button:not(.active):hover{background:#ededf0;color:#1d1d1f}.nav svg{width:19px}.nav-label{font-size:12px;color:#6e6e73;margin:0 16px 15px}.sidebar-footer{margin-top:auto;border-top:1px solid #d2d2d7;padding-top:21px;font-size:12px;display:grid;gap:14px}.sidebar-footer p{padding-inline:14px}.profile{display:flex;align-items:center;gap:10px;padding:10px 8px;color:#1d1d1f}.avatar{display:grid;place-items:center;background:#e8e8ed;color:#0071e3;border:2px solid #fff;border-radius:50%;width:35px;height:35px;font-size:13px;font-weight:bold;flex-shrink:0}.profile .avatar{background:#e8e8ed;color:#1d1d1f;border:0;width:39px;height:39px}.profile strong{font-size:14px;display:block}.profile small{font-size:12px;color:#6e6e73}.profile .icon-btn{margin-inline-start:auto;background:none;border:0;color:#6e6e73}.main{min-width:0}.topbar{height:85px;border-bottom:1px solid var(--line);background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 38px;gap:15px}.breadcrumb{font-size:14px;color:#6e6e73;display:flex;align-items:center;gap:15px}.breadcrumb strong{color:#1d1d1f;font-weight:500}.topbar .date{font-size:13px;color:#6e6e73}.badge{display:inline-flex;align-items:center;gap:5px;border-radius:6px;padding:4px 9px;font-size:12px;background:#e8e8ed;color:#6e6e73;white-space:nowrap}.badge.urgent{background:#ffeded;color:#bd5353}.badge.high{background:#fff3d8;color:#966a1c}.badge.todo{background:#e8e8ed;color:#6e6e73}.badge.doing{background:#e8f2ff;color:#0071e3}.badge.review{background:#fff4dc;color:#947531}.badge.done{background:#e4f4ea;color:#308358}.count{background:#e8e8ed;color:#6e6e73;border-radius:6px;min-width:23px;padding:1px 6px;display:inline-block;font-size:12px;text-align:center}.content{padding:33px 38px 50px;max-width:1650px;margin:auto}.page-title{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:28px}.page-title p{color:#6e6e73;font-size:14px;margin-top:5px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:17px;margin-bottom:30px}.stat{border:1px solid var(--line);background:#fff;border-radius:13px;padding:19px 21px;display:grid;gap:10px}.stat .row{justify-content:space-between;color:#6e6e73;font-size:13px}.stat strong{font-size:33px;line-height:1.2;font-weight:600;color:#1d1d1f}.stat.overdue strong{color:#b86850}.workspace{background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden}.section-head{padding:21px 23px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:15px}.section-head h2{font-size:17px}.filters{display:flex;gap:10px;align-items:center;margin-bottom:23px;flex-wrap:wrap}.search{flex:1;max-width:340px;min-width:180px;position:relative}.search input{padding-right:42px}.search svg{position:absolute;right:14px;top:15px;color:#6e6e73}.filters select{width:170px;font-size:14px;padding:12px}.segmented{display:flex;border:1px solid var(--line);border-radius:9px;background:#fff;padding:3px;margin-inline-start:auto}.segmented button{padding:8px 12px;display:grid;place-items:center;border-radius:6px}.segmented button.active{background:#e8f2ff;color:#0071e3}.task-list{width:100%;border-collapse:collapse;text-align:right;font-size:14px}.task-list th{background:#f5f5f7;color:#6e6e73;font-size:12px;font-weight:500;padding:14px 20px;white-space:nowrap}.task-list td{padding:19px 20px;border-top:1px solid #e8e8ed}.task-list tr[data-task]{cursor:pointer}.task-list tr[data-task]:hover{background:#f5f5f7}.task-title{font-weight:700;color:#1d1d1f;display:block;margin-bottom:4px}.task-sub{font-size:12px;color:#6e6e73}.task-list .avatar{width:28px;height:28px;font-size:11px}.table-wrap{overflow:auto}.empty{padding:55px 25px;text-align:center;display:grid;justify-items:center;gap:13px;color:#6e6e73}.empty>svg{width:40px;height:40px;color:#86868b;margin-bottom:6px}.empty h3{font-size:17px;color:#1d1d1f}.empty p{font-size:14px;max-width:410px}.empty .btn{margin-top:8px}.board{display:grid;grid-template-columns:repeat(6,minmax(205px,1fr));gap:16px;align-items:start;overflow:auto;padding-bottom:16px}.column{min-height:290px;background:#f5f5f7;border-radius:12px;padding:13px}.column-head{display:flex;justify-content:space-between;align-items:center;padding:4px 3px 16px;gap:8px}.column-head h3{font-size:14px}.column-head .line{width:5px;height:17px;border-radius:3px;background:#86868b}.column.doing .line{background:#0071e3}.column.review .line{background:#d4ac54}.column.done .line{background:#62ab80}.task-card{display:block;text-align:right;width:100%;background:#fff;border:1px solid #d2d2d7;border-radius:11px;padding:17px 15px;margin-bottom:12px;transition:transform .15s,border-color .15s}.task-card:hover{border-color:#86868b;transform:translateY(-2px)}.task-card h3{margin:13px 0 5px;font-size:15px;line-height:1.8}.task-card p{font-size:12px;color:#6e6e73;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.card-footer{border-top:1px solid #e8e8ed;margin-top:15px;padding-top:12px;display:flex;justify-content:space-between;align-items:center;gap:8px;color:#6e6e73;font-size:12px}.card-footer svg{width:14px;height:14px}.card-footer .row{gap:5px}.column-empty{border:1px dashed #d2d2d7;border-radius:10px;text-align:center;padding:27px 8px;font-size:13px;color:#6e6e73}.projects-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.project-card{display:grid;gap:19px;padding:25px;background:#fff;border:1px solid var(--line);border-radius:13px;text-align:right}.project-card:hover{border-color:#86868b}.project-icon{background:#e8f2ff;border-radius:12px;width:45px;height:45px;display:grid;place-items:center;color:#0071e3}.project-card p{color:var(--muted);font-size:13px}.project-progress progress{width:100%;height:5px;display:block;accent-color:#0071e3}.project-card .row{font-size:12px;color:#6e6e73}.notifications{display:grid;gap:12px}.notification{display:flex;align-items:center;gap:15px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:21px;text-align:right;width:100%}.notification.unseen{border-right:4px solid #0071e3}.notification h3{font-size:15px}.notification p{font-size:12px;color:#6e6e73;margin-top:5px}.notification time{margin-inline-start:auto;color:#6e6e73;font-size:12px}.alert{background:#e8f2ff;border:1px solid #c9dffc;color:#0071e3;padding:15px 18px;border-radius:10px;font-size:13px;margin-bottom:20px}.alert.error{background:#fff0ed;border-color:#efd1c9;color:#a6523f}dialog{border:0;border-radius:18px;box-shadow:0 30px 150px #0003;padding:0;width:min(660px,calc(100% - 32px));max-height:90vh;color:#1d1d1f;background:#fff}dialog::backdrop{background:#00000066;backdrop-filter:blur(4px)}dialog.wide{width:min(1080px,calc(100% - 32px))}.modal-header{display:flex;align-items:center;justify-content:space-between;padding:22px 26px;border-bottom:1px solid var(--line);gap:20px;position:sticky;top:0;background:#fff;z-index:2}.modal-header h2{font-size:20px}.modal-body{padding:25px 27px}.modal-footer{display:flex;justify-content:flex-end;gap:12px;border-top:1px solid var(--line);padding:19px 25px}.detail-grid{display:grid;grid-template-columns:1.2fr 1fr}.task-detail{padding:25px;border-left:1px solid var(--line)}.detail-title{font-size:23px;margin:14px 0 10px}.description{white-space:pre-wrap;line-height:1.9;font-size:14px;color:#6e6e73;margin:18px 0 23px}.detail-meta{display:grid;grid-template-columns:1fr 1fr;gap:18px;padding:20px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);font-size:14px}.detail-meta dt{color:#6e6e73;font-size:12px;margin-bottom:6px}.detail-meta dd{margin:0}.detail-meta select{font-size:13px;padding:8px}.files-header{display:flex;justify-content:space-between;align-items:center;margin:25px 0 15px;gap:10px}.files-header h3{font-size:15px}.attachments{display:grid;grid-template-columns:1fr 1fr;gap:10px}.attachment{border:1px solid var(--line);border-radius:10px;overflow:hidden;text-decoration:none;display:block}.attachment img{width:100%;height:135px;object-fit:cover;background:#f5f5f7;display:block}.attachment .file-icon{height:80px;display:grid;place-items:center;background:#f5f5f7;color:#6e6e73}.attachment p{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:9px 10px 0}.attachment small{font-size:12px;padding:0 10px 10px;display:block}.chat{display:flex;flex-direction:column;background:#f5f5f7;min-height:470px;max-height:72vh}.chat-header{padding:22px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.chat-header h3{font-size:15px}.messages{padding:22px;overflow:auto;flex:1;min-height:170px}.message{margin-bottom:19px}.message .row{gap:9px;margin-bottom:6px}.message strong{font-size:12px}.message time{color:#6e6e73;font-size:12px;margin-inline-start:auto}.message .avatar{width:25px;height:25px;font-size:10px}.message p{background:#fff;border:1px solid #e8e8ed;border-radius:10px 0 10px 10px;padding:11px 13px;font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere;margin-right:32px}.message.mine p{background:#e8f2ff;border-color:#c9dffc}.chat-form{padding:15px;border-top:1px solid var(--line);display:flex;align-items:flex-end;gap:8px;background:#fff}.chat-form textarea{min-height:47px;height:47px;max-height:130px;font-size:14px}.chat-form .btn{padding:12px}.chat-empty{text-align:center;margin-top:60px;font-size:13px;color:#6e6e73}.upload-note{font-size:12px;color:var(--muted);margin-top:10px}.link-output{direction:ltr;text-align:left;overflow-wrap:anywhere;padding:15px;border:1px solid #d2d2d7;background:#e8f2ff;border-radius:10px;font-size:13px}.settings-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:28px;max-width:700px}.settings-card dl{display:grid;grid-template-columns:1fr 2fr;gap:17px;font-size:14px;margin-top:25px}.settings-card dt{color:#6e6e73}.settings-card dd{margin:0}.status-dot{width:7px;height:7px;background:#74a64e;display:inline-block;border-radius:50%;margin-left:6px}#toast{position:fixed;bottom:30px;left:30px;background:#1d1d1f;color:#fff;border-radius:11px;padding:13px 22px;z-index:50;font-size:14px;max-width:calc(100% - 40px);transform:translateY(110px);opacity:0;transition:.2s}#toast.show{transform:translateY(0);opacity:1}#toast.error{background:#903d36}.view-all{color:#0071e3;font-size:13px}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.overdue-text{color:#b65c49}.file-input-label{cursor:pointer}.file-input-label input{display:none}.pending{opacity:.6;pointer-events:none}.section-gap{margin-top:30px}.overview-bottom{display:grid;grid-template-columns:1.7fr 1fr;gap:20px}.mini-project{padding:18px 22px;border-bottom:1px solid var(--line);display:flex;gap:13px;align-items:center;text-align:right;width:100%}.mini-project strong{display:block;font-size:14px}.mini-project small{font-size:12px}.mini-project .project-icon{width:36px;height:36px}.note-footer{font-size:12px;color:#6e6e73;margin-top:25px}.member-name strong{font-size:14px}.member-name small{font-size:12px;display:block;direction:ltr;text-align:right}
@media(max-width:1150px){.shell{grid-template-columns:200px minmax(0,1fr)}.content{padding:27px 24px}.topbar{padding:0 24px}.stats{gap:10px}.stat{padding:16px}.projects-grid{grid-template-columns:repeat(2,1fr)}.overview-bottom{grid-template-columns:1fr}.sidebar{padding-inline:12px}.board{grid-template-columns:repeat(6,minmax(205px,1fr))}}
@media(max-width:760px){.auth{grid-template-columns:1fr}.auth-story{padding:30px;min-height:180px}.auth-story h1{font-size:27px;margin:25px 0 0}.auth-story p,.auth-notes{display:none}.auth-form-wrap{padding:28px 25px}.shell{display:block}.sidebar{position:static;height:auto;padding:15px 14px}.brand{padding:0 4px 18px}.brand p,.nav-label,.sidebar-footer{display:none}.nav{display:flex;gap:5px;overflow:auto}.nav button{padding:10px 12px;white-space:nowrap;font-size:12px;gap:7px}.nav svg{width:16px}.topbar{height:65px;padding:0 18px}.topbar .date{display:none}.content{padding:23px 16px}.page-title{align-items:flex-start;margin-bottom:23px}.page-title h1{font-size:23px}.page-title p{font-size:12px}.page-title .btn{padding:10px 12px;font-size:12px}.stats{grid-template-columns:1fr 1fr;margin-bottom:24px}.stat strong{font-size:29px}.filters{gap:8px}.filters select{width:calc(50% - 4px)}.search{max-width:none;flex-basis:100%}.board{grid-template-columns:repeat(6,240px)}.projects-grid,.grid-two{grid-template-columns:1fr}.modal-header,.modal-body{padding:19px}.detail-grid{grid-template-columns:1fr}.task-detail{border-left:0}.chat{max-height:500px;min-height:330px;border-top:1px solid var(--line)}.modal-header h2{font-size:17px}.detail-meta{font-size:13px}.task-list td,.task-list th{padding:14px}.notification{padding:16px}.notification time{display:none}.settings-card{padding:20px}.settings-card dl{grid-template-columns:1fr;gap:6px}.settings-card dd{margin-bottom:14px}.segmented{margin-inline-start:0}dialog{max-height:94vh}.auth-form h2{font-size:24px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* Official logo: original vector, unchanged proportions and artwork. */
.brand-logo{display:block;width:172px;max-width:100%;height:auto;object-fit:contain}.auth-story>.brand-logo{width:230px}.initial .brand-logo{width:210px;margin-inline:auto}.btn{border-radius:980px}.btn.light:hover{background:#f5f5f7}.btn:focus-visible,.icon-btn:focus-visible,.nav button:focus-visible{outline:3px solid #0071e3;outline-offset:3px}.topbar{background:rgba(255,255,255,.92)}.sidebar-footer{border-color:#e8e8ed}.auth-story .eyebrow{color:#6e6e73}.stat,.workspace,.project-card,.settings-card{border-color:#e8e8ed}.auth-story h1{letter-spacing:normal}.brand p{margin-top:17px}.profile .icon-btn:hover{color:#1d1d1f}.status-dot{background:#0071e3}@media(max-width:760px){.brand-logo{width:140px}.auth-story>.brand-logo{width:170px}.sidebar{border-left:0;border-bottom:1px solid #e8e8ed}}

.badge.waiting_client{background:#f1eaff;color:#7950aa}.column.waiting_client .line{background:#9573c1}.task-links-editor{display:grid;gap:10px}.task-links-editor h3,.task-saved-links h3{font-size:14px;font-weight:500}.task-link-entry{display:flex;gap:8px}.task-link-entry input{min-width:0;flex:1}.task-link-entry .btn{flex:none;padding:12px}.task-links-list{display:grid;gap:8px;list-style:none;padding:0;margin:0}.task-links-list li{display:flex;align-items:center;gap:9px;background:#f5f5f7;border:1px solid #e8e8ed;border-radius:9px;padding:9px 11px;min-width:0}.task-links-list a{font-size:12px;color:#0071e3;overflow-wrap:anywhere;min-width:0;flex:1;text-align:left}.task-link-number{font-size:11px;color:#86868b;flex:none}.task-links-list .icon-btn{width:30px;height:30px;flex:none}.task-link-hint{font-size:12px}.task-saved-links{margin:15px 0 20px;display:grid;gap:10px}

/* Full task priority surfaces, with labels in addition to color. */
.task-card.priority-normal,.task-list tr.priority-normal{background:#eaf7ed;border-color:#acd9b7}
.task-card.priority-high,.task-list tr.priority-high{background:#fff5cf;border-color:#e5ca69}
.task-card.priority-urgent,.task-list tr.priority-urgent{background:#ffe9e8;border-color:#edaba6}
.task-card.priority-normal:hover,.task-list tr.priority-normal:hover{background:#dbf0e1}
.task-card.priority-high:hover,.task-list tr.priority-high:hover{background:#ffedaa}
.task-card.priority-urgent:hover,.task-list tr.priority-urgent:hover{background:#ffdad7}
.task-card .task-sub,.task-card>p{color:#46464b}.badge.normal{background:#cce9d3;color:#225d32}.badge.high{background:#ffe699;color:#654c00}.badge.urgent{background:#ffc5bf;color:#8c211b}.badge.admin_replied{background:#e8dffa;color:#644294}.column.admin_replied .line{background:#8e68bf}
.permission-check{display:flex;align-items:center;gap:10px;margin:10px 0}.permission-check input{width:18px;height:18px;margin:0}.stack fieldset{border:1px solid #d8d8df;border-radius:12px;padding:14px}.stack legend{padding:0 6px;font-weight:600}.permission-tasks{max-height:240px;overflow:auto}.notification-settings{max-width:none;margin-bottom:20px}.notification-settings .row{flex-wrap:wrap;gap:8px}.notification-settings p{line-height:1.9}

/* Independent card actions: full task link and bright red trash button at the left. */
.task-card{position:relative;padding:0;overflow:hidden}.task-card-open{display:block;width:100%;padding:17px;text-align:right;color:inherit;background:transparent;border:0;border-radius:inherit}.task-card.has-delete .task-card-open{padding-left:58px}.task-card-open:focus-visible{outline:3px solid #0071e3;outline-offset:-3px}.task-delete{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;padding:8px;border-radius:10px;background:#ff2d2d;color:#fff;border:1px solid #ee1111;flex-shrink:0}.task-card>.task-delete{position:absolute;left:10px;top:12px}.task-delete:hover,.task-delete-confirm:hover{background:#d90000}.task-delete:focus-visible{outline:3px solid #1d1d1f;outline-offset:2px}.task-delete svg{width:21px;height:21px}.task-delete-cell{width:58px}.task-delete-confirm{background:#ef1717;color:#fff}.task-trash-toolbar{display:flex;justify-content:flex-end;margin-bottom:16px}.deleted-task-row{padding:18px 22px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:16px}.deleted-task-row small{display:block;color:var(--muted);margin-top:6px}
.task-card.has-delete .task-card-open{padding-left:17px}.task-card>.task-delete{top:auto;bottom:12px}.task-card-open>.row.between{flex-wrap:wrap;gap:8px}.task-card-open>.row.between>.task-sub{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.task-card.has-delete .task-card-open>.task-sub:last-child{padding-left:44px;min-height:32px}
/* Compact rectangular task cards. */
.board{grid-template-columns:repeat(6,minmax(265px,1fr))}.task-card{border-radius:10px;margin-bottom:10px}.task-card-open,.task-card.has-delete .task-card-open{padding:11px 13px}.compact-card-top{display:flex;align-items:center;gap:9px;min-width:0}.compact-card-top .badge{font-size:10px;white-space:nowrap;padding:3px 7px;flex-shrink:0}.compact-project{font-size:11px;color:#55555c;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.compact-project>span{font-weight:600}.task-card h3{font-size:17px;line-height:1.5;margin:9px 0 10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.compact-card-footer{display:flex;align-items:center;gap:10px;font-size:10px;color:#66666d;min-height:23px;padding-left:20px}.compact-card-footer .row{gap:3px}.compact-card-footer svg{width:12px;height:12px}.compact-card-footer .avatar{width:20px;height:20px;font-size:9px}.compact-card-footer small{margin-inline-start:auto;font-size:9px;white-space:nowrap}.task-delete,.task-delete:hover{width:28px;height:28px;padding:6px;border:0;background:transparent;color:#ff1f26;border-radius:5px}.task-delete svg{width:15px;height:15px}.task-card>.task-delete{left:5px;bottom:9px;top:auto}.task-delete:hover{color:#b80008}.section-sharing{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#ffffffa8;border:1px solid var(--line);border-radius:12px;padding:12px 15px;margin:-7px 0 20px;font-size:12px}.section-sharing>div{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.section-sharing .muted{display:inline-flex;align-items:center;gap:6px}.section-sharing svg{width:16px;height:16px}.section-member-chips{display:flex;gap:6px;flex-wrap:wrap}.section-member-chip{background:#edf2f8;padding:4px 10px;border-radius:20px;color:#434b57}.audit-toolbar{margin-bottom:18px}.audit-table small{display:block;color:var(--muted);margin-top:5px}.audit-table td{vertical-align:top}.section-sharing .btn{white-space:nowrap}@media(max-width:760px){.board{grid-template-columns:repeat(6,275px)}.section-sharing{align-items:flex-start;flex-wrap:wrap}.section-sharing .btn{font-size:11px}}
/* Keep all sections reachable on shorter desktop screens. */
.sidebar{overflow-y:auto}

/* Central recoverable store. */
.store-list{padding:8px 20px}.store-row{gap:16px}.store-row>div:first-child{min-width:0;flex:1}.store-row strong{overflow-wrap:anywhere}.store-row small{display:block;margin-top:6px;color:var(--muted)}.store-number{display:inline-block;margin-inline-end:8px;font-variant-numeric:tabular-nums}.store-actions{flex-wrap:wrap;flex-shrink:0}@media(max-width:650px){.store-row{align-items:flex-start;flex-direction:column}.store-actions{width:100%}.store-actions .btn{flex:1}.store-list{padding:6px 12px}}

/* Audit links keep the target visually identifiable after navigation. */
.audit-open-column{width:100px;white-space:nowrap}.audit-open-column .btn{min-height:34px;gap:6px}.audit-open-column svg{width:15px;height:15px}.audit-target-highlight{outline:2px solid #0071e3;outline-offset:-2px;background-color:#eaf4ff!important;scroll-margin:90px}
@media(prefers-reduced-motion:reduce){.audit-target-highlight{scroll-behavior:auto}}

/* Shared screen-only form rhythm. Keep reports, stored values and workflow intact. */
@media screen {
 :root{--entry-control:36px;--entry-gap:10px}
 #content :is(input,select):not([multiple],[type=file],[type=checkbox],[type=radio],[type=range],[type=hidden],[type=color]),
 #modal :is(input,select):not([multiple],[type=file],[type=checkbox],[type=radio],[type=range],[type=hidden],[type=color]){min-height:var(--entry-control);height:var(--entry-control);padding-block:6px;border-radius:7px;font-size:13px}
 #content textarea,#modal textarea{min-height:64px;padding:8px 10px;border-radius:7px;font-size:13px;line-height:1.6}
 #content label,#modal label{font-size:13px;gap:5px}
 #content :is(.stack,.grid-two),#modal :is(.stack,.grid-two){gap:12px}
 #content .form-error:empty{display:none}
 #content .form-error{color:#b42318;font-size:13px;line-height:1.6}
 #content :is(.custody-entry,.finance-entry,.debt-entry,.supplier-entry,.appointment-entry,.pricing-offer-entry){padding:14px;margin-bottom:14px;border-radius:12px}
 #content :is(.custody-entry h3,.custody-ledger h3){font-size:16px;margin:0 0 12px}
 #content .custody-ledger h3{padding:14px;margin:0}
 #content :is(.supplier-entry-head,.appointment-entry-head,.finance-entry-heading){margin-bottom:12px;gap:8px}
 #content :is(.custody-fields,.payroll-create-grid,.debt-fields,.appointment-fields,.finance-entry-fields,.project-sales-fields){display:flex;flex-wrap:wrap;align-items:flex-start;gap:var(--entry-gap)}
 #content :is(.custody-fields,.payroll-create-grid,.debt-fields,.appointment-fields,.finance-entry-fields,.project-sales-fields)>label{flex:1 1 150px;min-width:0;max-width:260px;grid-column:auto}
 #content :is(.custody-fields,.debt-fields,.finance-entry-fields)>label:has([name=item],[name=notes]){flex:2 1 220px;max-width:360px}
 #content :is(.custody-fields,.debt-fields,.appointment-fields,.finance-entry-fields)>label:has([name=amount]){flex:1 1 130px;max-width:170px}
 #content :is(.custody-fields,.debt-fields,.appointment-fields,.finance-entry-fields)>label:has(input[type=date]){flex:0 1 155px;min-width:145px;max-width:170px}
 #content :is(.custody-fields,.debt-fields)>label:has([name=employee]){flex:1 1 180px;max-width:240px}
 #content :is(.custody-actions,.debt-actions,.appointment-actions,.finance-entry-actions){display:flex;gap:6px;align-items:center;align-self:flex-start;grid-column:auto;padding-top:26px;flex:0 0 auto;margin:0}
 #content :is(.custody-actions,.debt-actions,.appointment-actions,.finance-entry-actions) .btn,
 #content :is(.payroll-create-grid,.project-sales-fields)>.btn{min-height:var(--entry-control);padding:6px 12px;border-radius:7px;font-size:13px}
 #content :is(.payroll-create-grid,.project-sales-fields)>.btn{margin-top:26px;align-self:flex-start}
 #content .custody-create{flex-direction:row;flex-wrap:wrap;align-items:flex-end;gap:10px}
 #content .custody-create label{max-width:320px;flex:1 1 200px}
 #content :is(.custody-stats,.custody-cards,.debt-totals){gap:12px;margin-bottom:16px}
 #content :is(.custody-stat,.custody-card,.debt-total){padding:16px;border-radius:12px}
 #content .custody-stat strong{font-size:24px;margin:6px 0 0}
 #content .custody-heading{gap:12px;margin-bottom:14px;flex-wrap:wrap}
 #content .custody-heading h2{font-size:21px}
 #content .custody-table :is(td,th){padding:8px 10px}
 #content .custody-table tfoot :is(th,td){padding:12px;font-size:16px}
 #content :is(.supplier-entry-grid,.supplier-identity-fields,.pricing-grid,.pricing-product-grid,.pricing-series-grid,.pricing-annual-inputs,.social-fields,.social-content-fields,.social-link-entry){gap:10px}
 #content :is(.social-content-fields,.social-link-entry){margin:12px 0}
 #content .supplier-entry-footer{margin-top:12px;padding-top:10px;gap:10px}
 #content .debt-attachment-field{gap:5px;font-size:12px;min-width:90px}
 #content .crm-timeline form{padding:14px}
 #modal .modal-header{padding:16px 20px}#modal .modal-body{padding:18px 20px}#modal .modal-footer{padding:12px 20px;gap:8px}
 /* Match the finance receipt paperclip, preserving keyboard and accessible labels. */
 #content .employee-files{display:flex;align-items:center;flex-wrap:wrap;gap:4px;min-width:32px;max-width:180px}
 #content .employee-files a{max-width:140px;font-size:12px;overflow-wrap:anywhere}
 #content .employee-file-upload{position:relative;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;padding:6px;border:0;border-radius:7px;color:#0071e3;background:transparent;overflow:hidden;cursor:pointer;flex:0 0 32px}
 #content .employee-file-upload:hover{background:#0071e312}
 #content .employee-file-upload svg{width:18px;height:18px;pointer-events:none}
 #content .employee-file-upload input{position:absolute;inset:0;opacity:0;width:100%;height:100%;min-width:0;padding:0;cursor:pointer}
 #content .employee-file-upload:focus-within{outline:2px solid #0071e3;outline-offset:2px}
 #content .employee-file-upload:has(input:disabled){opacity:.45;cursor:wait}
 @media(max-width:760px){
  :root{--entry-control:42px;--entry-gap:8px}
  #content :is(input,select,textarea):not([type=file],[type=checkbox],[type=radio],[type=range],[type=hidden]),#modal :is(input,select,textarea):not([type=file],[type=checkbox],[type=radio],[type=range],[type=hidden]){font-size:16px}
  #content :is(.custody-fields,.payroll-create-grid,.debt-fields,.appointment-fields,.finance-entry-fields,.project-sales-fields)>label{flex:1 1 calc(50% - 8px);min-width:0;max-width:none}
  #content :is(.custody-fields,.debt-fields,.finance-entry-fields)>label:has([name=item],[name=notes],[name=employee]),#content .appointment-notes-input{flex-basis:100%;max-width:none}
  #content :is(.custody-fields,.debt-fields,.appointment-fields,.finance-entry-fields)>label:has([name=amount],input[type=date]){flex:1 1 calc(50% - 8px);min-width:0;max-width:none}
  #content :is(.custody-actions,.debt-actions,.appointment-actions,.finance-entry-actions){padding-top:0;flex-basis:100%;justify-content:flex-end}
  #content :is(.payroll-create-grid,.project-sales-fields)>.btn{margin-top:0}
  #content :is(.custody-entry,.finance-entry,.debt-entry,.supplier-entry,.appointment-entry,.pricing-offer-entry){padding:12px}
  #content .employee-file-upload{width:40px;height:40px;flex-basis:40px}
  #modal .grid-two{grid-template-columns:minmax(0,1fr)}
 }
}

/* Entry actions stay at the visual left in the Arabic interface. */
@media screen {
 #content :is(.custody-actions,.debt-actions,.appointment-actions,.finance-entry-actions){margin-inline-start:auto;justify-content:flex-end}
 #content :is(.custody-actions,.debt-actions,.appointment-actions,.finance-entry-actions)>.entry-submit{order:10}
 #content :is(.payroll-create-grid,.project-sales-fields,.custody-create,.debt-create)>.entry-submit{margin-inline-start:auto}
 #content :is(.social-actions,.supplier-entry-buttons){display:flex;justify-content:flex-end;gap:6px}
 #content .supplier-entry-buttons{margin-inline-start:auto}
 #content .social-link-entry{display:flex;flex-wrap:wrap;align-items:flex-end}
 #content .social-link-entry>label{flex:1;min-width:180px}
 #content .social-link-entry>.entry-submit{margin-inline-start:auto}
 #content form>.entry-submit,#modal form>.entry-submit{display:flex;width:max-content;max-width:100%;margin-inline-start:auto}
 #content :is(.pricing-actions,.social-actions,.supplier-entry-buttons)>.entry-submit,#modal .modal-footer>.entry-submit{order:10}
 #content .entry-submit,#modal .entry-submit{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:var(--entry-control);padding:6px 12px;border-radius:7px;font-size:13px;white-space:nowrap;background:#0071e3;color:white;border:1px solid #0071e3;flex-shrink:0}
 #content .entry-submit svg,#modal .entry-submit svg{width:15px;height:15px;flex-shrink:0}
 #content .entry-submit:hover,#modal .entry-submit:hover{background:#0065cc}
 #content .edit-action,#modal .edit-action{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;min-width:28px;min-height:28px;padding:5px;gap:0;border:0;border-radius:0;background:transparent;color:#0071e3;box-shadow:none;flex:0 0 auto}
 #content .edit-action svg,#modal .edit-action svg{width:17px;height:17px}
 #content .edit-action:hover,#modal .edit-action:hover{background:#0071e30d;color:#005bb5}
 #content .edit-action:focus-visible,#modal .edit-action:focus-visible{outline:2px solid #0071e3;outline-offset:2px}
 #content table :is(th,td){padding-block:6px}
 #content table td:has(>.edit-action){width:40px;padding-inline:6px;text-align:center}
 @media(max-width:760px){
  #content .edit-action,#modal .edit-action{width:36px;height:36px;min-height:36px;min-width:36px}
  #content .entry-submit,#modal .entry-submit{min-height:42px}
  #content .supplier-entry-buttons{width:100%}
 }
}
