:root{--bg:#f7f8fb;--panel:#fff;--sidebar:#111b31;--sidebar-2:#19243c;--ink:#19243b;--text:#354056;--muted:#8793a5;--border:#e7ebf2;--accent:#3369e8;--accent-dark:#1c55d7;--blue-soft:#ecf2ff;--shadow:0 8px 36px rgba(18,34,66,.055);--radius:12px;--lane:#f3f5f9;--card:#fff;--hover:#f4f7fd;--red:#e45661;--green:#23a178;--amber:#dc8a24;--purple:#8a6de9}
:root[data-theme="dark"]{--bg:#111722;--panel:#192333;--sidebar:#0c1422;--sidebar-2:#172236;--ink:#eff4ff;--text:#c9d2e0;--muted:#8394a9;--border:#2b3850;--accent:#6491ff;--accent-dark:#4a7be9;--blue-soft:#203457;--shadow:0 12px 40px rgba(0,0,0,.14);--lane:#151e2b;--card:#1e2a3b;--hover:#23344c;--red:#ef7a86;--green:#4acc9f;--amber:#e7ae62;--purple:#aa98ff}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Pretendard,Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","Apple SD Gothic Neo","Malgun Gothic",sans-serif;color:var(--ink);background:var(--bg);font-size:14px}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.45}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid rgba(67,120,244,.26);outline-offset:2px}svg.icon{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.icon-sprite{display:none}.hidden{display:none!important}.app-shell{display:flex;min-height:100vh}.sidebar{width:246px;min-width:246px;background:var(--sidebar);color:#bac7da;display:flex;flex-direction:column;position:sticky;top:0;height:100vh;z-index:4}.brand{height:79px;display:flex;align-items:center;gap:12px;padding:0 25px;color:#fff}.brand-word{font-size:22px;font-weight:790;letter-spacing:-1px}.brand-dot{color:#6c9bff}.brand-symbol{width:26px;height:26px;display:grid;grid-template-columns:repeat(2,11px);grid-template-rows:repeat(2,11px);gap:4px;transform:rotate(-7deg)}.brand-symbol span{border-radius:3px;background:#f9fbff}.brand-symbol span:nth-child(2){background:#6c9bff}.brand-symbol span:nth-child(3){background:#a9c6ff}.workspace-switch{margin:6px 15px 31px;padding:10px;background:var(--sidebar-2);border:1px solid #2b3851;border-radius:10px;display:flex;align-items:center;gap:10px}.workspace-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:8px;background:#355ba9;color:white;font-weight:800;font-size:16px}.workspace-text{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}.workspace-text strong{color:#f3f6fa;font-size:13px}.workspace-text small{font-size:9px;font-weight:750;letter-spacing:1.05px;color:#8292af}.workspace-switch>.icon{height:14px;width:14px}.sidebar-block{padding:0 12px;margin-bottom:29px}.side-caption{padding:0 14px 12px;color:#75849c;letter-spacing:1.15px;font-size:10px;font-weight:800}.side-link,.project-link{display:flex;align-items:center;gap:12px;width:100%;height:42px;padding:0 14px;color:#aab8d0;border:0;background:transparent;text-align:left;border-radius:8px;font-size:13px;font-weight:570;transition:background .15s,color .15s}.side-link:hover,.project-link:hover{color:white;background:#1f304b}.side-link.active{color:#fff;background:#243b65;font-weight:700}.side-link.active:before{content:"";width:3px;height:18px;border-radius:3px;background:#6093ff;position:absolute;margin-left:-14px}.side-link>.icon{width:18px;height:18px;opacity:.89}.projects-caption{display:flex;align-items:center;justify-content:space-between}.icon-btn{border:0;background:transparent;display:inline-grid;place-items:center;color:inherit;border-radius:8px;width:34px;height:34px}.icon-btn:hover{background:var(--hover)}.icon-btn.subtle{width:24px;height:24px;color:#8496b2}.icon-btn.subtle:hover{background:#243954;color:#fff}.icon-btn.subtle>.icon{width:16px;height:16px}.project-link{height:38px;gap:11px}.project-link.selected{background:#1c2d4b;color:#f4f7ff}.project-tile{height:13px;width:13px;flex:0 0 13px;border-radius:4px;display:inline-block}.project-link>span:nth-child(2){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-link .project-count{margin-left:auto;color:#7f91ae;font-size:11px}.sidebar-bottom{margin-top:auto;padding:0 20px 23px}.offline-indicator{display:flex;align-items:center;gap:8px;font-size:10px;font-weight:780;color:#bfcbe1;letter-spacing:.65px}.online-dot{width:7px;height:7px;border-radius:50%;background:#49dca1;box-shadow:0 0 0 3px rgba(73,220,161,.1)}.offline-ok{margin-left:auto;font-size:8px;color:#52cfa5}.sync-caption{font-size:11px;line-height:1.5;color:#798ba6;margin:10px 0 15px}.sidebar-backup{border:1px solid #36455f;background:transparent;color:#c4d2e5;border-radius:8px;height:36px;width:100%;display:flex;align-items:center;justify-content:center;gap:9px;font-size:11px;font-weight:650}.sidebar-backup .icon{width:15px;height:15px}.sidebar-backup:hover{background:#253653}.workspace-main{flex:1;min-width:0;display:flex;flex-direction:column}.topbar{display:flex;align-items:center;justify-content:space-between;height:72px;padding:0 36px;background:var(--panel);border-bottom:1px solid var(--border);gap:16px;position:sticky;top:0;z-index:3}.breadcrumb{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:12px;white-space:nowrap;overflow:hidden}.breadcrumb strong{color:var(--text);font-weight:680}.breadcrumb .icon{width:13px;height:13px;color:#aeb9c7}.top-actions{display:flex;align-items:center;gap:16px;flex-shrink:0}.autosave{display:flex;align-items:center;gap:6px;color:#7da08f;font-size:11px;font-weight:670;white-space:nowrap}.autosave .icon{width:14px;height:14px}.top-icon{color:var(--muted);width:29px;height:29px}.top-icon:hover{color:var(--accent)}.avatar{border:none;display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#dce8ff;color:#315cb9;font-size:10px;font-weight:790}#main{flex:1;min-width:0;padding:34px 36px 58px}.page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:27px}.eyebrow{color:var(--accent);font-weight:790;letter-spacing:1.6px;font-size:10px;margin:0 0 9px;text-transform:uppercase}.page-title{font-size:29px;font-weight:770;letter-spacing:-1.05px;line-height:1.2;margin:0}.page-subtitle{margin:10px 0 0;font-size:12.5px;color:var(--muted);line-height:1.6}.head-buttons{display:flex;align-items:center;gap:9px;flex-wrap:wrap;justify-content:flex-end;padding-top:5px}.btn{display:inline-flex;justify-content:center;align-items:center;gap:8px;min-height:37px;padding:0 14px;border-radius:8px;font-size:12px;font-weight:690;transition:background .15s,transform .15s}.btn .icon{height:16px;width:16px}.btn-primary{background:var(--accent);color:white;border:1px solid var(--accent)}.btn-primary:hover{background:var(--accent-dark)}.btn-outline{color:var(--text);border:1px solid var(--border);background:var(--panel)}.btn-outline:hover{background:var(--hover)}.btn-danger{background:#fff4f5;color:#b32d44;border:1px solid #ffd5db}.btn-danger:hover{background:#ffe8eb}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:14px;margin-bottom:25px}.stat-card{border:1px solid var(--border);background:var(--panel);border-radius:11px;padding:18px 20px;box-shadow:var(--shadow);position:relative;min-width:0}.stat-card-top{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:12px;font-weight:610}.stat-card-top .icon{width:18px;height:18px}.stat-number{font-size:29px;line-height:1.3;font-weight:800;letter-spacing:-1.2px;margin-top:9px;display:flex;align-items:baseline;gap:8px}.stat-unit{font-size:11px;font-weight:590;color:var(--muted)}.stat-bottom{font-size:11px;color:var(--muted);margin-top:4px}.stat-card.blue .stat-card-top .icon,.stat-card.blue .stat-number{color:var(--accent)}.stat-card.green .stat-card-top .icon{color:var(--green)}.stat-card.amber .stat-card-top .icon{color:var(--amber)}.stat-card.purple .stat-card-top .icon{color:var(--purple)}.stat-progress{height:4px;border-radius:7px;background:var(--border);margin-top:13px;overflow:hidden}.stat-progress span{display:block;height:100%;border-radius:7px;background:var(--accent)}.view-tabs{display:flex;align-items:center;gap:4px;border-bottom:1px solid var(--border);margin:0 0 20px}.view-tab{display:flex;align-items:center;gap:7px;background:transparent;border:0;padding:12px 15px 13px;color:var(--muted);font-size:12px;font-weight:650;border-bottom:2px solid transparent;margin-bottom:-1px}.view-tab .icon{width:16px;height:16px}.view-tab:hover{color:var(--ink)}.view-tab.active{color:var(--accent);border-bottom-color:var(--accent)}.tool-row{display:flex;align-items:center;gap:10px;margin:0 0 19px;flex-wrap:wrap}.search-box{height:37px;min-width:220px;max-width:320px;flex:1;display:flex;align-items:center;gap:8px;border:1px solid var(--border);background:var(--panel);border-radius:8px;padding:0 12px;color:var(--muted)}.search-box:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px rgba(61,113,232,.1)}.search-box>.icon{width:16px;height:16px}.search-box input{outline:none;border:0;background:transparent;flex:1;min-width:0;color:var(--ink);font-size:12px}.search-box input::placeholder{color:#9ca9ba}.filter-select{height:37px;min-width:126px;padding:0 32px 0 12px;border:1px solid var(--border);border-radius:8px;background:var(--panel);color:var(--text);font-size:12px;cursor:pointer}.view-option{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--text);white-space:nowrap;margin-left:auto;cursor:pointer;user-select:none}.view-option input{width:15px;height:15px;accent-color:var(--accent)}.filter-reset{border:none;background:transparent;color:var(--accent);font-size:11px;font-weight:700}.filter-caption{font-size:11px;color:var(--muted);white-space:nowrap}.board-scroll{overflow-x:auto;padding:1px 2px 18px 1px;scrollbar-color:#c9d0dc transparent;min-height:440px}.board-grid{display:flex;gap:14px;align-items:flex-start;min-height:430px}.lane{width:278px;min-width:278px;background:var(--lane);border-radius:11px;border:1px solid var(--border);min-height:430px;display:flex;flex-direction:column;transition:border-color .15s,background .15s}.lane.dragover{border-color:var(--accent);background:var(--blue-soft)}.lane-head{padding:17px 15px 13px;display:flex;justify-content:space-between;align-items:center;position:sticky;top:0;z-index:1;border-radius:11px 11px 0 0;background:var(--lane)}.lane-head-main{display:flex;align-items:center;gap:8px}.lane-dot{width:8px;height:8px;border-radius:50%;background:#a0adbf}.lane-dot.todo{background:#647b9b}.lane-dot.progress{background:#4581eb}.lane-dot.review{background:#dc9a4f}.lane-dot.done{background:#35b28c}.lane-dot.hold{background:#a28be3}.lane-title{font-size:12px;font-weight:790}.lane-count{font-size:10px;color:#76839a;font-weight:770;background:var(--panel);min-width:21px;height:20px;display:grid;place-items:center;border-radius:6px;padding:0 5px}.lane-head-add{width:25px;height:25px;color:#8594a8}.lane-head-add .icon{height:16px;width:16px}.lane-cards{display:flex;flex-direction:column;gap:9px;padding:0 10px 11px;flex:1;min-height:250px}.issue-card{background:var(--card);border-radius:9px;border:1px solid var(--border);box-shadow:0 2px 6px rgba(40,57,90,.026);padding:14px;cursor:grab;transition:transform .12s,border-color .12s,box-shadow .12s}.issue-card:hover{transform:translateY(-2px);border-color:#b8c7e4;box-shadow:0 8px 18px rgba(37,65,101,.09)}.issue-card:active{cursor:grabbing}.issue-card.dragging{opacity:.38;transform:rotate(-1deg)}.card-scene{font-size:10px;font-weight:730;color:#7490bf;background:#edf3ff;border-radius:5px;padding:4px 7px;display:inline-block}.card-top{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.priority-indicator{width:7px;height:7px;border-radius:2px;transform:rotate(45deg);flex:0 0 7px;margin-top:6px}.priority-indicator.high{background:#e7686e}.priority-indicator.medium{background:#e6ac62}.priority-indicator.low{background:#7cacd0}.card-title{font-size:12.6px;font-weight:720;line-height:1.55;margin:11px 0 8px;overflow-wrap:anywhere}.card-desc{font-size:11px;color:var(--muted);line-height:1.55;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;min-height:0;margin-bottom:14px}.card-footer{display:flex;align-items:center;gap:7px;margin-top:13px}.card-id{color:#9ca9bb;font-size:10px;font-weight:680;letter-spacing:.1px;margin-right:auto}.card-type{display:flex;align-items:center;color:#8f9cac;font-size:10px;gap:4px}.card-type .icon{width:13px;height:13px}.card-avatar{display:grid;place-items:center;background:#e7effe;color:#416ab5;border-radius:50%;height:23px;width:23px;font-size:8px;font-weight:800}.card-complete .card-title{color:var(--muted)}.card-complete .card-scene{color:#76a18e;background:#eaf7f1}.lane-empty{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:7px;height:130px;text-align:center;border:1px dashed #cfd7e4;border-radius:8px;color:#9eabbc;font-size:11px}.lane-empty .icon{width:22px;height:22px;opacity:.55}.lane-empty small{font-size:10px}.lane-footer-btn{display:flex;align-items:center;justify-content:center;gap:8px;background:transparent;border:1px solid var(--border);border-radius:7px;width:100%;padding:10px;color:var(--accent);font-size:11px;font-weight:700}.lane-footer-btn:hover{background:var(--blue-soft)}.add-lane-issue{margin:0 10px 11px;background:transparent;border:1px dashed #cbd4e0;border-radius:8px;padding:10px;color:#8291a5;font-size:11px;display:flex;align-items:center;gap:8px}.add-lane-issue .icon{width:15px;height:15px}.add-lane-issue:hover{color:var(--accent);border-color:var(--accent)}.board-hint{font-size:11px;color:var(--muted);display:flex;align-items:center;gap:7px;margin-top:4px}.board-hint .icon{width:14px;height:14px}.empty-view{padding:70px 20px;display:grid;justify-content:center;text-align:center;color:var(--muted)}.empty-view .icon{width:36px;height:36px;justify-self:center;color:var(--accent);margin-bottom:14px}.empty-view strong{color:var(--text);font-size:15px}.empty-view p{line-height:1.7;max-width:350px;font-size:12px}.list-panel{background:var(--panel);border:1px solid var(--border);border-radius:11px;overflow-x:auto;box-shadow:var(--shadow)}.issues-table{border-collapse:collapse;min-width:770px;width:100%;font-size:12px}.issues-table th{text-align:left;padding:15px 16px;color:var(--muted);font-size:10px;letter-spacing:.4px;font-weight:750;background:var(--lane);border-bottom:1px solid var(--border);white-space:nowrap}.issues-table td{padding:15px 16px;border-bottom:1px solid var(--border);color:var(--text)}.issues-table tbody tr:hover{background:var(--hover);cursor:pointer}.issues-table tbody tr:last-child td{border-bottom:0}.issue-table-id{font-size:10px;color:var(--muted);white-space:nowrap;font-weight:720}.issue-table-title{font-size:12px;font-weight:680;max-width:400px}.table-scene{color:var(--muted);font-size:11px;white-space:nowrap}.status-pill,.priority-pill{display:inline-flex;align-items:center;gap:6px;padding:5px 8px;border-radius:5px;font-size:10px;font-weight:760;white-space:nowrap}.status-pill.todo{background:#e9eef6;color:#5f7694}.status-pill.progress{background:#e7efff;color:#4275d6}.status-pill.review{background:#fff2de;color:#be812f}.status-pill.done{background:#e4f6ec;color:#26855d}.status-pill.hold{background:#f1ecff;color:#8665c3}.status-pill .lane-dot{width:6px;height:6px}.priority-pill.high{color:#cf636c}.priority-pill.medium{color:#cd9046}.priority-pill.low{color:#7398ba}.priority-pill::before{content:"";width:6px;height:6px;background:currentColor;border-radius:1px;transform:rotate(45deg)}.overview-grid{display:grid;grid-template-columns:minmax(300px,1.3fr) minmax(280px,1fr);gap:16px;margin-top:17px}.surface{background:var(--panel);border:1px solid var(--border);border-radius:11px;padding:22px;box-shadow:var(--shadow)}.surface-title{font-weight:760;font-size:14px;display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:23px}.surface-caption{font-size:11px;color:var(--muted);font-weight:500}.progress-display{display:flex;align-items:center;gap:22px;margin:5px 0 26px}.donut{width:124px;height:124px;flex:0 0 124px;position:relative;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--accent) var(--p),var(--border) 0)}.donut:before{content:"";position:absolute;inset:14px;background:var(--panel);border-radius:50%}.donut-inner{position:relative;text-align:center}.donut-inner strong{display:block;font-size:28px;letter-spacing:-1px}.donut-inner small{font-size:10px;color:var(--muted)}.progress-explain h3{font-size:21px;letter-spacing:-.5px;margin:0 0 8px}.progress-explain p{font-size:12px;line-height:1.75;color:var(--muted);margin:0}.scene-progress{display:flex;flex-direction:column;gap:17px}.scene-line-top{display:flex;justify-content:space-between;gap:12px;font-size:11px;margin-bottom:8px}.scene-line-top strong{color:var(--text);font-weight:680}.scene-line-top span{color:var(--muted)}.meter{height:7px;border-radius:9px;background:var(--lane);overflow:hidden}.meter>span{height:100%;background:var(--accent);border-radius:9px;display:block;transition:width .3s}.recent-issue{display:flex;gap:11px;align-items:flex-start;padding:13px 0;border-bottom:1px solid var(--border);cursor:pointer}.recent-issue:last-child{border:0}.recent-issue:hover strong{color:var(--accent)}.recent-icon{width:31px;height:31px;border-radius:8px;background:var(--blue-soft);display:grid;place-items:center;color:var(--accent);flex:0 0 31px}.recent-icon .icon{width:15px;height:15px}.recent-issue strong{font-size:12px;line-height:1.5;display:block}.recent-issue small{display:block;color:var(--muted);font-size:10px;margin-top:4px}.activity-stream{display:flex;flex-direction:column;gap:0;background:var(--panel);border:1px solid var(--border);border-radius:10px;padding:9px 25px}.activity-row{position:relative;display:flex;gap:16px;padding:20px 0;border-bottom:1px solid var(--border)}.activity-row:last-child{border:none}.activity-symbol{width:34px;height:34px;border-radius:50%;background:var(--blue-soft);color:var(--accent);display:grid;place-items:center;flex:0 0 34px}.activity-symbol .icon{width:16px;height:16px}.activity-title{font-size:12px;color:var(--text);line-height:1.55}.activity-title strong{color:var(--ink)}.activity-sub{margin-top:5px;color:var(--muted);font-size:11px}.activity-time{font-size:10px;color:var(--muted);white-space:nowrap;margin-left:auto}.popover-menu{position:fixed;z-index:12;top:60px;right:34px;border:1px solid var(--border);padding:7px;background:var(--panel);box-shadow:0 13px 40px rgba(20,38,67,.15);border-radius:10px;width:220px}.popover-menu button{display:flex;align-items:center;gap:10px;background:transparent;border:0;width:100%;height:38px;text-align:left;padding:0 10px;color:var(--text);font-size:11px;border-radius:6px}.popover-menu button:hover{background:var(--hover)}.popover-menu .icon{width:16px;height:16px}.popover-menu .danger-text{color:#d55965}.menu-divider{height:1px;background:var(--border);margin:5px}.modal-overlay{position:fixed;inset:0;z-index:15;display:flex;justify-content:center;align-items:center;background:rgba(12,20,37,.58);backdrop-filter:blur(3px);padding:22px;overflow-y:auto}.modal{background:var(--panel);border:1px solid var(--border);border-radius:14px;width:min(100%,760px);box-shadow:0 28px 85px rgba(8,18,35,.3);max-height:min(92vh,1050px);overflow-y:auto;scrollbar-color:#bfcbd9 transparent}.modal.sm{width:min(100%,480px)}.modal-head{padding:23px 28px 20px;display:flex;justify-content:space-between;align-items:flex-start;gap:12px;border-bottom:1px solid var(--border)}.modal-head small{display:block;font-weight:770;letter-spacing:.7px;color:var(--accent);font-size:10px;margin-bottom:6px}.modal-head h2{font-size:20px;font-weight:760;letter-spacing:-.5px;margin:0}.modal-close{width:28px;height:28px;color:var(--muted)}.modal-body{padding:24px 28px 12px}.field{display:flex;flex-direction:column;gap:8px;margin-bottom:20px;min-width:0}.field label{font-size:11px;font-weight:730;color:var(--text)}.field input,.field textarea,.field select{width:100%;border:1px solid var(--border);background:var(--bg);border-radius:8px;padding:11px 12px;color:var(--ink);font-size:12px;outline:none}.field input:focus,.field textarea:focus,.field select:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(70,117,232,.09)}.field textarea{resize:vertical;min-height:104px;line-height:1.6}.field input::placeholder,.field textarea::placeholder{color:#9aa7b7}.form-two{display:grid;grid-template-columns:1fr 1fr;gap:17px}.form-three{display:grid;grid-template-columns:1fr 1fr 1fr;gap:15px}.modal-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--border);padding:17px 28px 22px}.modal-foot-actions{display:flex;gap:8px;margin-left:auto}.modal-id{color:var(--muted);font-size:11px;display:flex;align-items:center;gap:8px}.modal-id .icon{height:14px;width:14px}.field-note{color:var(--muted);font-size:11px;line-height:1.6;margin-top:-11px;margin-bottom:18px}.form-section-title{font-weight:770;font-size:12px;margin:6px 0 16px;padding-top:17px;border-top:1px solid var(--border)}.checklist-items{display:flex;flex-direction:column;gap:8px;margin:0 0 12px}.checkline{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--border);border-radius:8px;background:var(--bg)}.checkline input[type=checkbox]{width:15px;height:15px;accent-color:var(--accent);cursor:pointer}.checkline span{flex:1;font-size:12px;color:var(--text);line-height:1.5;overflow-wrap:anywhere}.checkline.is-done span{text-decoration:line-through;color:var(--muted)}.checkline button{border:0;background:transparent;color:#a0aabb;display:grid;place-items:center}.checkline button:hover{color:var(--red)}.checkline button .icon{width:14px;height:14px}.check-add{display:flex;gap:8px}.check-add input{flex:1;min-width:0;border:1px solid var(--border);background:var(--bg);border-radius:8px;padding:9px 12px;font-size:12px;color:var(--ink)}.check-add button{border:1px solid var(--border);background:var(--panel);border-radius:8px;color:var(--text);font-size:11px;font-weight:700;padding:0 13px}.toast-region{position:fixed;bottom:24px;right:26px;z-index:25;display:flex;flex-direction:column;gap:8px}.toast{background:#202b41;color:white;padding:13px 17px;border-radius:9px;box-shadow:0 9px 30px rgba(0,0,0,.18);font-size:12px;display:flex;align-items:center;gap:8px;animation:showToast .2s ease}.toast .icon{width:15px;height:15px;color:#6de0b5}@keyframes showToast{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}.mobile-topbar{display:none}.kbd{display:inline-block;font-size:10px;border:1px solid var(--border);color:var(--muted);border-radius:4px;padding:2px 4px;line-height:1.1}.intro-strip{background:linear-gradient(110deg,#eaf1ff,#f4f7ff);border:1px solid #d9e6ff;border-radius:11px;display:flex;justify-content:space-between;align-items:center;gap:24px;padding:22px 27px;margin-bottom:21px}.intro-strip h3{margin:0 0 6px;font-size:15px}.intro-strip p{font-size:12px;color:#6b81ad;margin:0;line-height:1.6}.intro-strip .icon{color:#719af2;width:38px;height:38px}.status-breakdown{display:flex;gap:5px;border-radius:9px;overflow:hidden;height:12px;margin:16px 0}.status-breakdown span{height:100%}.status-breakdown span.todo{background:#97a5bb}.status-breakdown span.progress{background:#4581eb}.status-breakdown span.review{background:#dc9a4f}.status-breakdown span.done{background:#35b28c}.status-breakdown span.hold{background:#a28be3}.legend{display:flex;gap:16px;flex-wrap:wrap;color:var(--muted);font-size:10px}.legend .lane-dot{display:inline-block;vertical-align:middle;margin-right:5px}.project-empty{padding:8px 14px;color:#7889a6;font-size:11px;line-height:1.5}.small-action{background:transparent;border:0;color:var(--accent);font-size:11px;font-weight:750;cursor:pointer}.small-action:hover{text-decoration:underline}.scene-header{display:flex;align-items:center;justify-content:space-between;margin:0 0 12px}.scene-header h3{font-size:13px;font-weight:750;margin:0}.summary-line{font-size:12px;color:var(--muted);margin:8px 0 0}.badge-new{padding:4px 7px;font-size:9px;border-radius:4px;background:var(--blue-soft);color:var(--accent);font-weight:760}.nowrap{white-space:nowrap}
:root[data-theme="dark"] .card-scene{background:#243a59;color:#a7c4f5}:root[data-theme="dark"] .card-complete .card-scene{background:#1d4138;color:#79cfa8}:root[data-theme="dark"] .card-avatar{background:#2a456b;color:#b2d0ff}:root[data-theme="dark"] .intro-strip{background:linear-gradient(110deg,#1c3055,#1b273c);border-color:#28426d}:root[data-theme="dark"] .intro-strip p{color:#9db4d9}:root[data-theme="dark"] .status-pill.todo{background:#29364b;color:#a8b9cd}:root[data-theme="dark"] .status-pill.progress{background:#20395c;color:#8db6ff}:root[data-theme="dark"] .status-pill.review{background:#473822;color:#ebbb74}:root[data-theme="dark"] .status-pill.done{background:#1b3c34;color:#84d4ad}:root[data-theme="dark"] .status-pill.hold{background:#382b53;color:#b6a0ed}:root[data-theme="dark"] .lane-empty{border-color:#34465d}:root[data-theme="dark"] .add-lane-issue{border-color:#34465d}:root[data-theme="dark"] .btn-danger{background:#412530;border-color:#5b3542;color:#ffb1bd}
@media(max-width:1180px){.sidebar{width:216px;min-width:216px}.topbar{padding:0 25px}#main{padding:28px 25px 46px}.stats-grid{grid-template-columns:repeat(2,minmax(170px,1fr))}.board-scroll{margin-right:-25px}.overview-grid{grid-template-columns:1fr}}
@media(max-width:730px){.app-shell{display:block}.sidebar{height:auto;width:100%;min-width:0;position:relative;display:block;padding-bottom:0}.brand{height:54px;padding:0 18px}.brand-word{font-size:20px}.workspace-switch,.projects-block,.sidebar-bottom{display:none}.sidebar-block{margin:0;padding:0 10px 8px;display:flex;overflow-x:auto;gap:3px}.sidebar-block .side-caption{display:none}.side-link{width:auto;white-space:nowrap;height:36px;padding:0 11px;font-size:11px}.side-link .icon{width:15px;height:15px}.side-link.active:before{display:none}.topbar{height:52px;padding:0 17px}.top-actions{gap:7px}.autosave{display:none}.breadcrumb{gap:5px;font-size:11px}#main{padding:24px 17px 42px}.page-head{align-items:flex-start;gap:13px;flex-direction:column;margin-bottom:20px}.page-title{font-size:24px}.head-buttons{justify-content:flex-start}.stats-grid{gap:10px}.stat-card{padding:14px}.stat-number{font-size:24px}.stat-card-top{font-size:10px}.stat-bottom{font-size:10px}.board-scroll{margin-right:-17px}.search-box{flex-basis:100%;max-width:none}.filter-select{min-width:calc(50% - 5px);flex:1}.view-option{margin-left:0}.tool-row{gap:8px}.lane{width:270px;min-width:270px}.modal-overlay{padding:8px;align-items:flex-start}.modal{margin:auto 0;max-height:97vh}.modal-head,.modal-body{padding-left:18px;padding-right:18px}.modal-foot{padding:14px 18px 20px}.form-three{grid-template-columns:1fr 1fr}.form-two{grid-template-columns:1fr}.intro-strip{padding:18px}.intro-strip .icon{display:none}.progress-display{gap:14px}.donut{width:103px;height:103px;flex-basis:103px}.donut-inner strong{font-size:24px}.overview-grid{grid-template-columns:minmax(0,1fr)}.surface{padding:18px}.popover-menu{right:12px;top:50px}}

/* FRAMEWORK v2 — Workspace, editable parts, five-tier priority, time machine */
.workspace-switch{width:calc(100% - 30px);text-align:left;cursor:pointer;color:inherit;font:inherit;transition:background .15s,border-color .15s}
.workspace-switch:hover,.workspace-switch.workspace-active{background:#23385a;border-color:#3a5480}
.workspace-switch .workspace-text{display:flex}
.workspace-switch>.icon{transform:rotate(0deg);color:#8ea3c2}
.sidebar .projects-nav{max-height:48vh;overflow-y:auto;scrollbar-width:thin}
.priority-pill.urgent,.priority-indicator.urgent{color:#e34961}
.priority-pill.high,.priority-indicator.high{color:#e07854}
.priority-pill.medium,.priority-indicator.medium{color:#d4a04e}
.priority-pill.low,.priority-indicator.low{color:#628dbf}
.priority-pill.lowest,.priority-indicator.lowest{color:#9ba7b7}
.priority-indicator.urgent{background:#e34961}
.priority-indicator.high{background:#e07854}
.priority-indicator.medium{background:#d4a04e}
.priority-indicator.low{background:#628dbf}
.priority-indicator.lowest{background:#9ba7b7}
.priority-pill.urgent{background:#fff0f2;border-radius:5px;padding:4px 7px}
.priority-pill.high{background:#fff3e9;border-radius:5px;padding:4px 7px}
.priority-pill.medium{background:#fff9ec;border-radius:5px;padding:4px 7px}
.priority-pill.low{background:#eff5ff;border-radius:5px;padding:4px 7px}
.priority-pill.lowest{background:#f2f4f6;border-radius:5px;padding:4px 7px}
:root[data-theme="dark"] .priority-pill.urgent{background:#532935;color:#ffa0b0}
:root[data-theme="dark"] .priority-pill.high{background:#493429;color:#f7b18b}
:root[data-theme="dark"] .priority-pill.medium{background:#453c2b;color:#ebc47a}
:root[data-theme="dark"] .priority-pill.low{background:#293b52;color:#9ebfff}
:root[data-theme="dark"] .priority-pill.lowest{background:#303a47;color:#aebdcd}
.section-overline{display:block;color:var(--accent);font-size:10px;letter-spacing:1.25px;font-weight:800;margin-bottom:7px}
.home-section{margin:5px 0 31px}
.section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}
.section-heading h2{display:flex;align-items:center;gap:11px;margin:0;font-size:19px;letter-spacing:-.5px}
.section-heading .small-action{display:flex;align-items:center;gap:5px}
.section-heading .small-action .icon{height:15px;width:15px}
.counter-tag{font-size:11px;color:var(--muted);background:var(--panel);border:1px solid var(--border);border-radius:20px;padding:3px 8px;letter-spacing:0}
.project-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(255px,1fr));gap:15px}
.project-overview-card{display:flex;flex-direction:column;align-items:stretch;text-align:left;min-height:220px;padding:21px;background:var(--panel);border:1px solid var(--border);border-radius:13px;box-shadow:var(--shadow);color:var(--ink);transition:box-shadow .18s,transform .18s,border-color .18s}
.project-overview-card:hover{border-color:#abc2ed;box-shadow:0 10px 30px rgba(50,90,160,.11);transform:translateY(-2px)}
.project-card-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}
.project-large-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:11px;background:color-mix(in srgb,var(--project-color) 13%,var(--panel));color:var(--project-color);font-size:12px;font-weight:800}
.project-card-arrow{display:grid;place-items:center;color:var(--muted)}
.project-card-arrow .icon{width:17px;height:17px}
.project-overview-card>strong{font-size:16px;letter-spacing:-.3px}
.project-overview-card>p{font-size:11px;line-height:1.6;color:var(--muted);margin:6px 0 16px;min-height:32px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.project-card-meter-label{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:11px;margin-bottom:8px}
.project-card-meter-label b{font-size:12px;color:var(--ink)}
.project-overview-card .meter,.part-manage-card .meter{height:6px;margin:0}
.project-card-foot{display:flex;gap:12px;flex-wrap:wrap;font-size:10px;color:var(--muted);margin-top:16px}
.project-create-card{border:1px dashed #c4d0e2;background:transparent;display:grid;place-content:center;justify-items:center;text-align:center;min-height:220px;gap:8px;color:var(--accent)}
.project-create-card>.icon{height:30px;width:30px;margin-bottom:8px}
.project-create-card>p{margin:0;min-height:0}
.global-queue{background:var(--panel);border:1px solid var(--border);border-radius:12px;overflow:hidden;box-shadow:var(--shadow)}
.queue-row{display:flex;align-items:center;gap:14px;width:100%;text-align:left;background:transparent;border:0;border-bottom:1px solid var(--border);padding:15px 19px;color:var(--ink)}
.queue-row:last-child{border:0}
.queue-row:hover{background:var(--hover)}
.queue-row>.icon{width:15px;height:15px;color:var(--muted)}
.queue-priority{width:4px;align-self:stretch;min-height:28px;flex:0 0 4px;background:#aab5c4;border-radius:8px}
.queue-priority.priority-urgent{background:#e34961}.queue-priority.priority-high{background:#e07854}.queue-priority.priority-medium{background:#d4a04e}.queue-priority.priority-low{background:#628dbf}.queue-priority.priority-lowest{background:#aab5c4}
.queue-main{display:flex;flex-direction:column;gap:6px;flex:1;min-width:0}
.queue-main strong{font-size:12px;font-weight:730;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.queue-main small{font-size:10px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.queue-date{font-size:11px;color:var(--muted);white-space:nowrap}
.queue-footer{display:flex;gap:7px;align-items:center;color:var(--muted);font-size:11px;margin:12px 1px}
.queue-footer .icon{width:15px;height:15px}
.parts-quick{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:-2px 0 19px}
.parts-quick-label{font-size:11px;font-weight:750;display:inline-flex;gap:6px;align-items:center;color:var(--muted);margin-right:4px}
.parts-quick-label .icon{width:15px;height:15px}
.part-chip{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:650;color:var(--text);background:var(--panel);border:1px solid var(--border);border-radius:40px;padding:7px 11px}
.part-chip i{width:7px;height:7px;border-radius:50%}
.part-chip:hover{border-color:#93a9d5;color:var(--accent)}
.part-chip.active{color:var(--accent);background:var(--blue-soft);border-color:#c8d7fa}
.part-chip.add{border-style:dashed;color:var(--accent)}
.part-chip.add .icon{width:13px;height:13px}
.issue-card .card-top{align-items:center}
.issue-card .card-top .priority-pill{font-size:9px;font-weight:750}
.issue-card .card-scene{max-width:138px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.issue-card .card-footer{gap:6px}
.part-section{margin-top:25px}
.part-management{display:grid;grid-template-columns:repeat(auto-fill,minmax(255px,1fr));gap:13px}
.part-manage-card{padding:20px;background:var(--panel);border:1px solid var(--border);border-radius:11px;min-height:185px;display:flex;flex-direction:column}
.part-manage-top{display:flex;gap:8px;align-items:center;min-height:18px}
.part-manage-top strong{font-size:13px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.part-color{width:10px;height:10px;border-radius:3px;flex:0 0 10px}
.part-count{margin-left:auto;color:var(--muted);font-size:10px;white-space:nowrap}
.part-manage-card>p{font-size:11px;min-height:36px;line-height:1.5;color:var(--muted);margin:10px 0 15px}
.part-card-actions{display:flex;gap:14px;margin-top:auto;padding-top:19px}
.part-card-actions .small-action{display:flex;align-items:center;gap:4px}
.part-card-actions .icon{width:13px;height:13px}
.part-card-actions .danger-text{color:#cb5c67}
.part-create-card{display:grid;place-content:center;justify-items:center;border-style:dashed;background:transparent;text-align:center;gap:8px;color:var(--accent)}
.part-create-card .icon{width:27px;height:27px}
.part-create-card>p{min-height:0;margin:0;color:var(--muted)}
.label-secondary{color:var(--muted);font-weight:500;font-size:10px}
.color-input{height:44px!important;padding:5px!important;width:95px!important;cursor:pointer}
.issue-date-note{margin-top:18px;margin-bottom:6px}
.history-layout{display:grid;grid-template-columns:285px minmax(0,1fr);gap:18px;align-items:start}
.version-list,.version-preview{background:var(--panel);border:1px solid var(--border);border-radius:12px;box-shadow:var(--shadow);min-width:0}
.version-list{padding:9px;max-height:calc(100vh - 165px);overflow-y:auto;position:sticky;top:96px;scrollbar-width:thin}
.version-list-head{padding:12px 11px 16px;display:flex;align-items:center;gap:8px;font-size:12px;font-weight:800;border-bottom:1px solid var(--border);margin-bottom:5px}
.version-list-head .icon{width:16px;height:16px;color:var(--accent)}
.version-list-head>span{margin-left:auto;color:var(--muted)}
.version-item{width:100%;background:transparent;border:1px solid transparent;border-radius:9px;padding:12px 10px;display:flex;gap:9px;align-items:center;text-align:left;color:var(--text);margin:3px 0}
.version-item:hover{background:var(--hover)}
.version-item.selected{background:var(--blue-soft);border-color:#cad8f8}
.version-item>span:nth-child(2){flex:1;min-width:0}
.version-item strong{font-size:11px;font-weight:750;line-height:1.5;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.version-item small{font-size:10px;color:var(--muted);margin-top:5px;display:block;white-space:nowrap}
.version-item>.icon{width:14px;height:14px;color:var(--muted)}
.version-dot{width:8px;height:8px;border:2px solid #a7b6c9;border-radius:100%;flex-shrink:0}
.version-dot.newest{background:var(--green);border-color:var(--green)}
.version-hint{color:var(--muted);font-size:10px;line-height:1.65;padding:13px 10px 8px;border-top:1px solid var(--border);margin-top:10px}
.version-preview{padding:26px}
.version-preview-top .section-overline{margin-bottom:12px}
.version-preview-top h2{font-size:21px;margin:0 0 8px;line-height:1.5}
.version-preview-top>p{font-size:11px;color:var(--muted);margin:0 0 16px;line-height:1.7}
.version-buttons{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;align-items:center;padding-bottom:22px;border-bottom:1px solid var(--border)}
.version-readonly{color:var(--muted);font-size:11px;display:flex;align-items:center;gap:6px}
.version-readonly .icon{width:15px;height:15px}
.version-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:22px 0}
.version-stats>div{padding:15px;border-radius:9px;background:var(--bg);border:1px solid var(--border)}
.version-stats small{font-size:10px;color:var(--muted);display:block;margin-bottom:7px}
.version-stats strong{font-size:21px}
.version-diff{font-size:11px;color:var(--text);background:var(--blue-soft);padding:12px 14px;border-radius:8px;display:flex;gap:6px;align-items:center;flex-wrap:wrap;line-height:1.6}
.version-diff .icon{width:15px;height:15px;color:var(--accent)}
.history-section-title{font-size:13px;font-weight:800;margin:24px 0 14px}
.history-section-title span{color:var(--muted);font-size:11px}
.version-projects{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px}
.version-project-row{padding:13px;border:1px solid var(--border);border-radius:9px}
.version-project-row .scene-line-top{margin-bottom:10px}
.version-project-row .scene-line-top strong{font-size:11px}
.version-project-row .scene-line-top span{font-size:10px}
.version-project-row .meter{height:5px;margin:0}
.history-tasks-top{display:flex;align-items:center;gap:12px;justify-content:space-between;margin:7px 0 14px}
.history-tasks-top .history-section-title{margin:0}
.version-search{max-width:235px;min-width:140px;flex:1}
.history-task-list{border:1px solid var(--border);border-radius:9px;overflow:hidden;max-height:570px;overflow-y:auto}
.history-task-row{display:flex;align-items:center;gap:11px;padding:12px 14px;border-bottom:1px solid var(--border)}
.history-task-row:last-child{border:none}
.history-task-row>div{flex:1;min-width:0;display:flex;flex-direction:column;gap:5px}
.history-task-row strong{font-size:11px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-weight:650}
.history-task-row small{font-size:10px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.history-task-row .status-pill{font-size:9px;white-space:nowrap}
.showing-task-detail>.stats-grid,.showing-task-detail>.tool-row{display:none}
.task-detail{display:grid;gap:22px;margin-top:16px}
.task-detail-head{display:flex;justify-content:space-between;align-items:flex-start;flex-wrap:wrap;gap:12px}
.task-detail-head h2{font-size:22px;margin:5px 0 0;overflow-wrap:anywhere}
.task-detail-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:14px;margin:0}
.task-detail-facts dt{font-size:11px;color:var(--muted)}
.task-detail-facts dd{margin:4px 0 0;font-size:13px;overflow-wrap:anywhere}
.task-detail h3{font-size:14px;margin:0 0 8px}
.task-detail-description{white-space:pre-wrap;overflow-wrap:anywhere;margin:0}
.task-detail-list{list-style:none;padding:0;margin:0}
.task-detail-list li{display:flex;gap:10px;padding:8px 0;border-bottom:1px solid var(--border);font-size:13px;overflow-wrap:anywhere}
.task-detail-list li:last-child{border-bottom:0}
.task-detail-list .surface-caption{flex-shrink:0}
.task-links-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px}
.task-links-list li{align-items:center;flex-wrap:wrap}
.task-link-title{min-width:0;text-align:left;white-space:normal;overflow-wrap:anywhere}
.task-links-list .task-link-title{flex:1 1 130px}
.task-link-results{max-height:45vh;overflow:auto}
.project-thread-list{margin-top:16px}
.showing-task-detail [data-thread-action="new"],.showing-task-detail [data-document-action="new"]{display:none}
.project-thread-list li{align-items:center;justify-content:space-between;flex-wrap:wrap}
.thread-entries{list-style:none;margin:0;padding:0}
.thread-entries>li{padding:12px 0;border-bottom:1px solid var(--border)}
.thread-entries>li:last-child{border-bottom:0}
.thread-entry-meta{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:6px}
@media(max-width:1100px){.history-layout{grid-template-columns:250px minmax(0,1fr)}.queue-row{gap:10px}}
@media(max-width:900px){.history-layout{grid-template-columns:1fr}.version-list{max-height:260px;position:static}.version-preview{padding:20px}.queue-date{display:none}}
@media(max-width:730px){.workspace-switch{display:flex;width:calc(100% - 24px);margin:0 12px 10px;padding:8px}.projects-block{display:block;margin:0 8px;padding:0 2px 10px}.projects-caption{display:flex;padding:4px 11px 5px}.projects-nav{display:flex;gap:4px;max-height:none!important;overflow-x:auto!important}.projects-nav .project-link{white-space:nowrap;width:auto;min-width:100px}.project-overview-card{min-height:200px}.project-cards,.part-management{grid-template-columns:1fr}.queue-row{padding:13px 12px}.queue-row>.status-pill{display:none}.queue-row .priority-pill{font-size:9px}.queue-main strong{font-size:11px}.section-heading h2{font-size:17px}.version-stats{grid-template-columns:repeat(2,1fr)}.version-preview-top h2{font-size:18px}.version-search{min-width:120px}.history-tasks-top{flex-direction:column;align-items:stretch}.version-search{max-width:none}.topbar{z-index:4}}
