:root{--purple:#7461ef;--ink:#27263e;--muted:#868698;--line:#eeedf4;--bg:#f8f9fc}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--bg);font:14px/1.5 'Segoe UI',sans-serif}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:3px}button{cursor:pointer;border:1px solid var(--line);background:white;border-radius:7px;padding:9px 13px;color:inherit;transition:background .15s}button:hover{background:#f2efff}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin-top:0}h1{font-size:30px;letter-spacing:-1px;margin-bottom:7px}h2{font-size:21px}h3{font-size:15px}p{color:var(--muted)}small{font-size:12px;color:var(--muted)}.shell{display:flex;min-height:100vh}aside{width:247px;flex-shrink:0;background:#fff;border-right:1px solid var(--line);padding:28px 19px;display:flex;flex-direction:column;gap:23px}.brand{display:flex;align-items:center;font-size:26px;font-weight:800;letter-spacing:-1px;gap:8px}.brand-icon{background:var(--purple);color:#fff;width:30px;height:32px;border-radius:9px;display:grid;place-items:center;font-size:24px;transform:rotate(-7deg)}.brand-dot{color:var(--purple);margin-left:-8px}.workspace-label{display:flex;gap:10px;background:#f8f7fc;padding:12px;border:1px solid var(--line);border-radius:9px;font-weight:600;font-size:13px}.workspace-label small{display:block;font-weight:400}.workspace-avatar{background:#e9e4ff;color:var(--purple);width:32px;height:32px;border-radius:8px;display:grid;place-items:center}.nav-caption{font-size:10px;font-weight:700;color:#9a99ab;letter-spacing:1.7px}nav{margin-top:-15px;display:grid;gap:5px}nav button,#project-nav button{border:0;display:flex;width:100%;text-align:left;align-items:center;gap:12px;color:#777588;padding:11px}.active{color:var(--purple)!important;background:#f0edff!important}nav b{margin-left:auto;background:#e6dfff;border-radius:5px;padding:0 6px;font-size:11px}.project-heading{display:flex;justify-content:space-between;align-items:center}.project-heading button{padding:0 6px;border:0}#project-nav{margin-top:-18px;display:grid;gap:2px}.project-dot{width:9px;height:9px;border-radius:3px;flex-shrink:0}.sidebar-bottom{margin-top:auto;padding-top:35px}.tip{background:#f6f5fd;border-radius:10px;padding:15px;margin-bottom:25px;font-size:12px}.tip span{font-weight:600}.tip small{display:block;margin-top:6px;line-height:1.7}.profile{display:flex;gap:10px;align-items:center;border:0;text-align:left;padding:0;width:100%}.profile small{display:block}.profile>span:last-child{margin-left:auto}.avatar{width:34px;height:34px;border-radius:50%;background:#eae6fd;color:#7964c0;display:inline-grid;place-items:center;font-weight:600;flex-shrink:0}.avatar.small{width:28px;height:28px;margin-left:18px;font-size:11px}.logout{border:0;padding:10px 0;color:var(--muted);font-size:11px}main{flex:1;min-width:0}header{height:77px;border-bottom:1px solid var(--line);background:white;display:flex;align-items:center;justify-content:space-between;padding:0 38px;color:var(--muted);font-size:12px}header div{display:flex;align-items:center}.live-dot{width:6px;height:6px;background:#46bb9e;border-radius:50%;margin-right:8px}.content{padding:36px 38px;min-height:calc(100vh - 132px)}.page-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:27px}.eyebrow{color:#a3a0b4;font-size:10px;letter-spacing:1.7px;font-weight:700;display:block;margin-bottom:9px}.page-heading p{margin:0;font-size:13px}.primary{background:var(--purple);color:white;border-color:var(--purple);box-shadow:0 3px 8px #7461ef24;font-weight:600;padding:10px 17px}.primary:hover{background:#6550de}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-bottom:30px}.stat{background:white;border:1px solid var(--line);border-radius:12px;padding:19px 22px}.stat-top{display:flex;justify-content:space-between;color:var(--muted);font-size:12px}.stat-icon{border-radius:8px;background:#f2efff;color:var(--purple);padding:3px 9px}.stat strong{font-size:30px;display:block;margin:5px 0;font-weight:650}.stat small{font-size:11px}.progress-track{height:4px;background:#f0edf9;border-radius:8px;margin-top:12px;overflow:hidden}.progress-track i{display:block;height:100%;background:var(--purple)}.toolbar{display:flex;justify-content:space-between;gap:12px;align-items:center;border-bottom:1px solid var(--line);padding-bottom:13px;margin-bottom:22px;flex-wrap:wrap}.tabs{display:flex;gap:5px}.tabs button{border:0;background:transparent;color:var(--muted);padding:8px 12px}.filters{display:flex;gap:8px;flex-wrap:wrap}.filters input{width:190px}.filters input,.filters select{font-size:12px;padding:8px 10px;background:white;border:1px solid var(--line);border-radius:7px;color:#777588}.section-title{display:flex;align-items:center;gap:10px;margin:20px 0 12px;font-size:14px;font-weight:600}.count{background:#eeedf4;color:#9692a5;border-radius:5px;font-size:11px;padding:1px 7px;font-weight:400}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:10px;background:white}table{width:100%;border-collapse:collapse;text-align:left;font-size:12px}th{background:#fcfcfe;font-weight:500;color:#9592a5;padding:13px 17px;border-bottom:1px solid var(--line);white-space:nowrap}td{padding:14px 17px;border-bottom:1px solid var(--line)}tr:last-child td{border-bottom:0}tbody tr:hover{background:#fcfaff}td:first-child{min-width:250px}.task-title{border:0;padding:0;text-align:left;background:transparent;font-weight:600;font-size:13px}.task-id{display:block;color:#aaa6b7;font-size:10px;margin-top:3px}.badge{border-radius:5px;padding:4px 8px;font-size:10px;white-space:nowrap;display:inline-block}.todo{background:#eeedf6;color:#858193}.progress{background:#f0ebff;color:#8a64cf}.review{background:#fff3df;color:#bf9246}.done{background:#e5f6ef;color:#46a580}.urgent{color:#e36072}.high{color:#da9b49}.low{color:#69a4b0}.normal{color:#9490a2}.assignee{display:flex;align-items:center;gap:7px;white-space:nowrap}.assignee .avatar{width:25px;height:25px;font-size:10px}.overdue{color:#df6775}.board{display:grid;grid-template-columns:repeat(4,minmax(210px,1fr));gap:15px;overflow:auto}.column{border-radius:10px;background:#f0f1f7;padding:12px;min-height:340px}.column.drag-over{outline:2px dashed var(--purple)}.column h3{display:flex;justify-content:space-between;font-size:12px;margin:2px 0 15px}.card{background:white;border:1px solid #eae9f1;box-shadow:0 3px 8px #34304903;border-radius:9px;padding:15px;margin-bottom:10px;cursor:pointer}.card h3{font-size:13px;display:block;margin:10px 0}.card p{font-size:11px;margin-bottom:12px}.card-foot{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:var(--muted)}.tag{font-size:10px;padding:2px 6px;border-radius:4px;background:#f6f5fa;color:#9690ab;margin-right:4px}.empty{padding:55px 25px;text-align:center;background:white;border:1px dashed #ded9ef;border-radius:12px;color:var(--muted)}.empty h2{color:var(--ink);margin:12px 0 8px}.empty p{max-width:400px;margin:0 auto 20px}.project-cards,.team-grid,.doc-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:15px;margin-bottom:25px}.project-card,.team-card,.doc-card{background:white;border:1px solid var(--line);border-radius:10px;padding:20px;text-align:left}.project-card h3{margin:14px 0 5px}.project-card p{font-size:12px;min-height:18px}.project-card small{display:flex;justify-content:space-between}.team-card h3{margin:12px 0 2px}.team-card p{font-size:12px}.team-card button{margin-top:12px;font-size:11px}.calendar{display:grid;grid-template-columns:repeat(7,1fr);border-top:1px solid var(--line);border-left:1px solid var(--line);background:white}.calendar-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.day{min-height:100px;padding:9px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);font-size:11px}.day.weekday{min-height:auto;background:#f2f0fa;color:var(--muted);text-align:center}.day.today{background:#f6f3ff}.day>button{display:block;width:100%;text-align:left;border:0;border-radius:4px;padding:3px 5px;margin-top:5px;background:#eeebff;font-size:10px}.day.out{background:#fafafd;color:#c6c1d2}footer{padding:15px 38px;border-top:1px solid var(--line);color:#aaa6b7;font-size:10px;display:flex;justify-content:space-between}dialog{width:min(760px,95vw);max-height:90vh;border:0;border-radius:15px;padding:0;box-shadow:0 20px 80px #28214230;color:var(--ink)}dialog::backdrop{background:#28213d66;backdrop-filter:blur(3px)}.modal-head{display:flex;justify-content:space-between;align-items:center;padding:20px 25px;border-bottom:1px solid var(--line)}.modal-head h2{margin:0;font-size:19px}.modal-head button{border:0;font-size:24px;padding:0 6px}#modal-body{padding:24px}label{display:block;font-size:12px;font-weight:600;margin-bottom:15px}label input,label select,label textarea{display:block;width:100%;padding:10px 12px;border:1px solid #e5e2ee;border-radius:7px;margin-top:6px;color:var(--ink);background:white}textarea{resize:vertical;min-height:85px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.form-actions{display:flex;gap:9px;justify-content:flex-end;margin-top:15px}.danger{color:#d95e6f}.check{display:flex;align-items:center;gap:8px;font-weight:400}.check input{width:auto;margin:0}.detail-sections{border-top:1px solid var(--line);margin-top:25px;padding-top:20px}.comment{background:#f8f7fc;border-radius:8px;padding:12px;margin-bottom:10px;font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere}.comment strong{display:block;margin-bottom:4px}.activity{font-size:11px;color:var(--muted);padding:7px 0;border-bottom:1px solid var(--line)}.inline-form{display:flex;gap:8px;margin:12px 0}.inline-form input{min-width:0;flex:1;padding:8px;border:1px solid var(--line);border-radius:6px}.inline-form input[type=number]{max-width:110px}.error{background:#fff0f0;color:#c54b59;border-radius:6px;padding:12px;margin:15px 0}#toast{position:fixed;bottom:25px;right:25px;background:#302a46;color:white;padding:13px 22px;border-radius:8px;display:none;z-index:100}.login-page{min-height:100vh;display:grid;grid-template-columns:1fr 1fr;background:white}.login-art{background:#f0edfb;padding:55px 65px;display:flex;flex-direction:column;justify-content:space-between;min-height:100vh}.login-art h1{font-size:52px;line-height:1.12;margin:20px 0}.login-art p{font-size:16px}.art-board{margin-top:35px;display:grid;gap:10px;transform:rotate(-3deg)}.art-board>div{padding:16px;background:white;border-radius:9px;box-shadow:0 7px 20px #67529910;font-size:12px}.art-board span{float:right;background:#eee8ff;color:#8b68cd;border-radius:4px;padding:3px 7px;font-size:10px}.login-box{max-width:440px;width:100%;padding:40px;margin:auto}.login-box h2{font-size:28px;letter-spacing:-.7px}.login-box form{margin-top:30px}.wide{width:100%;margin-top:15px}.login-foot{display:block;text-align:center;margin-top:35px} .doc-card p{white-space:pre-wrap;overflow-wrap:anywhere;max-height:85px;overflow:hidden;font-size:12px} .subtask-row{display:flex;gap:8px;align-items:center;margin:8px 0}.subtask-row button{text-align:left;font-size:12px} @media(min-width:1600px){.content{max-width:1450px;margin:auto}}@media(max-width:1050px){aside{width:210px;padding:25px 14px}.content{padding:25px}.stats{gap:10px}.stat{padding:15px}.filters input{width:145px}.login-art{padding:35px}.login-art h1{font-size:40px}}@media(max-width:750px){aside{width:68px;padding:20px 8px}.brand{font-size:0;justify-content:center}.brand-dot,.workspace-label,.nav-caption,nav span,nav b,.project-heading,.sidebar-bottom,.tip{display:none}nav button{justify-content:center;font-size:20px;padding:9px}#project-nav button{font-size:0;justify-content:center}.content{padding:20px 15px}header{padding:0 15px;height:60px}header div{font-size:0}.stats{grid-template-columns:1fr 1fr}.page-heading{align-items:flex-start;gap:10px}h1{font-size:24px}.page-heading p{font-size:11px}.page-heading .primary{white-space:nowrap;font-size:11px;padding:9px}.filters{width:100%}.filters input{width:100%;flex:1}.filters select{max-width:130px}.calendar{min-width:580px}.calendar-container{overflow:auto}.form-grid{grid-template-columns:1fr}.login-page{display:block}.login-art{display:none}.login-box{padding:35px 25px}.day{min-height:90px}footer{padding:15px}.toolbar{gap:10px}}

/* Installed PWA only: prevent page and input zoom while preserving normal scrolling. */
html.pwa-zoom-locked,html.pwa-zoom-locked body{touch-action:pan-x pan-y;overscroll-behavior-x:none}
@media(max-width:750px){html.pwa-zoom-locked input:not([type=checkbox]):not([type=radio]),html.pwa-zoom-locked select,html.pwa-zoom-locked textarea{font-size:16px}}
.empty-icon{display:inline-block;font-size:32px;color:var(--purple)}
