:root{--bg:#f5f7f4;--card:#fff;--ink:#253a33;--text:#42564d;--muted:#83958b;--line:#e2eae4;--green:#26705c;--green2:#185c4b;--green-soft:#eaf3ed;--red:#b8474d;--red-bg:#fff0ed;--gold:#aa741e;--gold-soft:#fff5e5;--blue:#4b7eab;--blue-bg:#eff5ff;--shadow:0 8px 28px rgba(34,65,49,.035);--radius:14px}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;background:var(--bg);color:var(--ink);font-size:13px;line-height:1.5}
[hidden]{display:none!important}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.6;cursor:not-allowed}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #9ac9ad;outline-offset:2px}svg{height:17px;width:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.svg-defs{position:absolute;width:0;height:0;overflow:hidden}
/* Login */
.login-shell{display:grid;grid-template-columns:48% 52%;min-height:100vh;background:white}.login-brand{background:linear-gradient(142deg,#eff5ef 0%,#e2ece5 55%,#cadfd2 100%);padding:54px 8%;display:flex;flex-direction:column;justify-content:space-between}.login-brand img{width:min(350px,95%);max-height:150px;object-fit:contain;object-position:left}.login-feature{margin-bottom:6vh;max-width:550px}.eyebrow{font-size:10px;font-weight:800;letter-spacing:2px;color:#78a18f;text-transform:uppercase}.login-feature h1{font-size:clamp(38px,4vw,64px);line-height:1.08;letter-spacing:-2px;margin:16px 0;color:#224a3b}.login-feature p{font-size:17px;color:#678274;line-height:1.6}.hierarchy-preview{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:38px}.hierarchy-preview span{font-size:11px;border:1px solid #b8d3c3;background:#ffffff91;border-radius:8px;padding:9px 12px;color:#315e49;font-weight:650}.hierarchy-preview i{width:18px;height:1px;background:#83ae9a}.login-panel{display:flex;align-items:center;justify-content:center;padding:45px}.login-form-wrap{width:min(420px,100%)}.login-form-wrap h2{font-size:32px;letter-spacing:-.8px;margin:9px 0 4px}.login-form-wrap p{color:var(--muted);margin:0 0 27px}.login-form-wrap form{display:flex;flex-direction:column;gap:9px}.login-form-wrap label{font-weight:650;margin-top:7px}.login-form-wrap input{padding:13px 14px;border-radius:9px;border:1px solid #dfe7e0;outline:0;font-size:14px;width:100%}.login-form-wrap input:focus{border-color:#77ad96}.login-form-wrap .login-submit{margin-top:14px;justify-content:center;padding:13px 20px}.login-note{font-size:11px!important;margin-top:25px!important}.form-error{background:var(--red-bg);color:var(--red);border-radius:9px;padding:10px 13px}
/* Shell */
.app-shell{display:flex;min-height:100vh}.sidebar{width:245px;flex-shrink:0;background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;min-height:100vh;position:sticky;top:0;align-self:flex-start;height:100vh;padding:25px 15px 20px}.sidebar-brand{padding:10px 11px 38px;text-align:center}.sidebar-brand img{width:100%;max-width:196px;max-height:85px;object-fit:contain}.sidebar-label{font-size:12px;font-weight:850;letter-spacing:2.4px;color:var(--green);margin-top:8px}.sidebar-version{letter-spacing:0;font-size:10px;font-weight:550;color:var(--muted)}.sidebar-section{font-size:10px;letter-spacing:1.4px;color:#a1afa5;font-weight:750;margin:5px 12px 13px}.extra-section{margin-top:29px}.sidebar nav{display:flex;flex-direction:column;gap:5px}.nav-link{width:100%;border:0;border-radius:9px;display:flex;align-items:center;gap:13px;background:transparent;padding:12px 14px;text-align:left;font-weight:600;color:#728279}.nav-link:hover{background:#f5f8f6;color:var(--green)}.nav-link.active{background:#eaf3ed;color:#22654f;font-weight:750}.nav-link svg{height:18px;width:18px}.nav-counter{margin-left:auto;font-size:10px;border-radius:9px;background:#edf1ec;padding:2px 6px}.sidebar-bottom{margin-top:auto}.sidebar-person{border-top:1px solid var(--line);padding:18px 2px 8px;display:flex;align-items:center;gap:9px}.sidebar-person>div:nth-child(2){min-width:0;flex:1;display:flex;flex-direction:column;gap:1px}.sidebar-person strong{font-size:12px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.sidebar-person small{color:var(--muted);font-size:11px}.avatar{display:inline-flex;align-items:center;justify-content:center;border-radius:11px;background:#def0e4;color:#25654c;font-size:11px;font-weight:800;min-width:36px;height:36px;padding:0 7px}.text-link{background:none;border:0;color:#73867c;font-size:11px;padding:9px 8px;display:flex;gap:8px;align-items:center}.text-link svg{height:14px;width:14px}.main{flex:1;min-width:0;display:flex;flex-direction:column}.topbar{min-height:118px;padding:27px 38px 23px;display:flex;justify-content:space-between;gap:20px;align-items:center}.heading h1{font-size:26px;letter-spacing:-.7px;margin:4px 0 1px;line-height:1.3}.heading p{color:var(--muted);font-size:12px;margin:3px 0 0}.top-actions{display:flex;align-items:center;gap:25px}.online-label{color:#799b87;font-size:11px;white-space:nowrap}.online-dot{background:#60c497;width:8px;height:8px;border-radius:100%;display:inline-block;margin-right:6px;box-shadow:0 0 0 4px #e5f6ed}.main-content{padding:0 38px 33px;flex:1;max-width:1800px;width:100%;margin:0 auto}.footer{margin:4px 38px 20px;padding-top:18px;border-top:1px solid var(--line);display:flex;justify-content:space-between;color:#9bada2;font-size:10px}
/* Buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid transparent;padding:10px 15px;border-radius:9px;white-space:nowrap;font-weight:650;transition:background .15s,border-color .15s}.btn.primary{background:var(--green);color:white;box-shadow:0 3px 8px #265f4820}.btn.primary:hover{background:var(--green2)}.btn.secondary{background:#fff;color:#536a5e;border-color:#dce7dd}.btn.secondary:hover{background:#f2f8f3}.btn.subtle{background:#f1f7f2;color:#287154}.btn.danger{color:var(--red);background:#fff5f2;border-color:#f3d5d0}.btn.small{padding:7px 11px;font-size:11px}.btn svg{width:15px;height:15px}.icon-btn,.mini-btn{border:0;background:transparent;color:#91a39a;display:inline-flex;align-items:center;justify-content:center;border-radius:8px;height:32px;width:32px;flex-shrink:0}.mini-btn{width:28px;height:28px}.mini-btn svg{width:15px;height:15px}.icon-btn:hover,.mini-btn:hover{color:var(--green);background:#eaf3ed}.text-button,.tree-item-title,.project-title,.table-task-title{border:0;background:none;color:var(--ink);padding:0;text-align:left;font-weight:700}.text-button:hover,.tree-item-title:hover,.project-title:hover,.table-task-title:hover{text-decoration:underline;text-decoration-color:#a0c9af}.push{flex:1}
/* Shared */
.panel{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}.panel-head{padding:20px 22px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:16px}.panel-head h2{font-size:15px;margin:0;color:var(--ink);font-weight:750;letter-spacing:-.1px}.panel-head p{color:var(--muted);font-size:11px;margin:3px 0 0}.empty{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:45px 22px;min-height:185px}.empty-symbol{height:44px;width:44px;border-radius:12px;display:grid;place-items:center;background:#eff6ee;color:var(--green)}.empty h3{font-size:15px;margin:15px 0 3px}.empty p{color:var(--muted);margin:0 0 15px;max-width:330px}.subtext{font-size:10.5px;color:#95a39b;display:block;font-weight:400;margin-top:4px}.text-strong{font-weight:670}.nowrap{white-space:nowrap}
.status-chip{font-size:10px;padding:4px 9px;white-space:nowrap;border-radius:15px;font-weight:700;background:#f0f4f0;color:#647868}.status-chip.progress{color:#377c9a;background:#ebf5ff}.status-chip.blocked{color:#b25753;background:#fff0ed}.status-chip.done{color:#449071;background:#e9f5ec}.status-chip.pending{color:#97793b;background:#fff7e7}.priority-chip{display:inline-flex;align-items:center;gap:6px;color:#74857c;font-size:10px;white-space:nowrap;font-weight:650}.priority-dot,.mini-dot{width:7px;height:7px;display:inline-block;border-radius:50%;background:#b4c1b4}.priority-chip.high .priority-dot,.mini-dot.high{background:#df7771}.priority-chip.medium .priority-dot,.mini-dot.medium{background:#edbb68}.priority-chip.low .priority-dot,.mini-dot.low{background:#9ac4a9}
/* Home */
.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:20px}.metric{background:#fff;border:1px solid var(--line);border-radius:13px;padding:21px 23px;text-align:left;display:flex;flex-direction:column;gap:6px;min-height:122px}.metric:hover{border-color:#b9d3c1}.metric>span{font-size:11px;color:#71867b;font-weight:600}.metric strong{font-size:32px;line-height:1.15;letter-spacing:-.8px;color:#294b3f}.metric small{font-size:10px;color:#a2afa8}.metric.danger strong{color:#c06461}.metric.success strong{color:#5a9b75}.home-columns{display:grid;grid-template-columns:1.13fr .87fr;gap:20px;align-items:start}.home-right{display:flex;flex-direction:column;gap:20px}.agenda-row{padding:15px 21px;display:flex;gap:12px;align-items:center;border-bottom:1px solid #eef2ed}.agenda-row:last-child{border-bottom:0}.agenda-main{min-width:0;flex:1}.agenda-row .text-button{font-size:12px}.mini-dot{flex-shrink:0}.date-chip{color:#839387;font-size:10px;white-space:nowrap;font-weight:700}.date-chip.late{color:#c56661;background:#fff0ed;border-radius:6px;padding:5px 7px}.date-chip.soon{color:#ab7a2e}.space-shortcut{width:100%;display:flex;align-items:center;gap:12px;padding:14px 20px;border:0;background:#fff;text-align:left;border-bottom:1px solid var(--line);color:#6a7f6f}.space-shortcut:hover{background:#fbfdfb}.space-shortcut>span:nth-child(2){flex:1;display:flex;flex-direction:column}.space-shortcut strong{color:var(--ink);font-size:12px}.space-shortcut small{color:var(--muted);font-size:10px;margin-top:3px}.folder-icon{height:30px;width:30px;display:grid;place-items:center;border-radius:7px;color:#3a8a68;background:#edf7ef}.folder-icon svg{height:17px;width:17px}.space-shortcut>svg:last-child{width:14px}.welcome-card{display:flex;gap:20px;align-items:center;background:#eaf4ed;border:1px solid #cfdfd0;border-radius:15px;padding:24px 28px;margin-bottom:20px}.welcome-card .welcome-glyph{width:60px;height:60px;border-radius:14px;background:white;display:grid;place-items:center;color:var(--green)}.welcome-glyph svg{width:28px;height:28px}.welcome-card h2{font-size:19px;margin:4px 0}.welcome-card p{color:#6a8a76;max-width:720px;margin:0 0 14px}
/* Tree */
.tree-toolbar{display:flex;align-items:center;justify-content:space-between;margin:0 0 17px;gap:16px}.tree-summary{display:flex;flex-wrap:wrap;gap:11px;align-items:center;color:#7c9083;font-size:11px;font-weight:600}.tree-summary i{height:4px;width:4px;background:#b2c5b8;border-radius:50%}.space-panel{background:white;border:1px solid var(--line);border-radius:13px;box-shadow:var(--shadow);margin-bottom:18px;overflow:hidden;scroll-margin-top:15px}.space-head{display:flex;align-items:center;gap:9px;padding:17px 18px;background:#f8fbf8;border-bottom:1px solid #e8efe8}.space-logo{width:38px;height:38px;border-radius:10px;background:#e4f2e8;color:#287650;display:grid;place-items:center;flex-shrink:0}.space-logo svg{width:20px;height:20px}.space-title{flex:1;display:flex;flex-direction:column;gap:1px;min-width:0}.space-title strong{font-size:16px;color:#204c38}.space-title small{color:#8da192;font-size:10px}.fold-control{background:transparent;border:0;border-radius:6px;color:#91a598;display:grid;place-items:center;height:27px;width:27px;flex-shrink:0}.fold-control:hover{background:#e7f1e9}.fold-control svg{width:15px;height:15px;transform:rotate(90deg);transition:transform .1s}.fold-control.closed svg{transform:rotate(0)}.fold-spacer{display:block;width:27px;height:22px;flex-shrink:0}.project-block{border-left:2px solid #d2e7d7;margin:14px 17px 12px 35px;border-radius:0 9px 9px 0;overflow:hidden;background:#fff}.project-head{display:flex;gap:10px;align-items:center;min-height:50px;padding:9px 14px;background:#fbfcfa;border:1px solid #edf2ec;border-left:0}.project-symbol{color:#81a892}.project-symbol svg{width:16px;height:16px}.project-title{font-size:13px}.project-count{margin-left:2px;color:#94a79b;font-size:10px;white-space:nowrap}.project-actions{margin-left:auto;display:flex;align-items:center;gap:4px}.tree-task{display:flex;gap:12px;align-items:center;border-bottom:1px solid #f0f3f0;padding:10px 13px 10px 17px;min-height:57px}.tree-task.is-subtask{background:#fbfcfb;padding-left:35px}.tree-task.is-done{opacity:.66}.tree-task-leading{display:inline-flex;gap:7px;align-items:center}.state-check{height:19px;width:19px;border:1.5px solid #b8cabd;border-radius:6px;background:white;flex-shrink:0;display:grid;place-items:center;color:white}.state-check.checked{background:#3d9a71;border-color:#3d9a71}.state-check svg{height:14px;width:14px}.tree-task-main{flex:1;min-width:0}.tree-item-title{font-size:12px;display:block;overflow:hidden;text-overflow:ellipsis;max-width:100%}.tree-hint{display:block;font-size:10px;color:#9bae9f;margin-top:3px}.tree-task-extras{display:flex;align-items:center;gap:15px;min-width:140px}.tree-buttons{display:flex;gap:2px;align-items:center}.tree-children{border-left:2px solid #dcece0;margin-left:38px}.tree-blank{padding:15px 23px;color:#a0afa2;font-size:11px}.tree-blank button{border:0;color:var(--green);background:transparent;margin-left:8px;font-size:11px;font-weight:700;display:inline-flex;align-items:center;gap:3px}.tree-blank svg{width:12px}.tree-add-project{border:1px dashed #d7e8d9;border-radius:7px;color:#508d67;background:#fbfefb;display:flex;align-items:center;gap:8px;padding:10px 15px;font-weight:650;font-size:11px;margin:12px 18px 18px 55px}.tree-add-project svg{width:13px;height:13px}.tree-footnote{display:flex;align-items:flex-start;gap:10px;padding:5px 2px 20px;font-size:10px;color:#8ea298}.tree-footnote svg{height:15px;width:15px}
/* List and filters */
.filter-bar{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin-bottom:17px}.filter-bar input,.filter-bar select,.table-tools select{background:white;border:1px solid #dce6df;border-radius:8px;min-height:35px;color:#61786b;padding:8px 10px;font-size:11px;max-width:240px;min-width:100px}.filter-bar input:focus,.filter-bar select:focus{border-color:#91bc9f}.filter-bar .search-field{position:relative;min-width:170px;flex:1;max-width:330px}.search-field svg{position:absolute;left:11px;top:50%;transform:translateY(-50%);width:15px;color:#91a397}.search-field input{padding-left:34px;width:100%;max-width:none}.filter-bar .chip-btn{font-size:10px;padding:9px 11px;color:#718578;background:white;border-color:var(--line);min-height:35px}.filter-bar .chip-btn.selected{background:#e7f2e9;color:#397d5b;border-color:#c5dfce}.listing{margin-top:3px}.table-tools{display:flex;gap:8px;align-items:center;color:#9ba99e;font-size:10px}.table-tools select{min-height:32px}.table-scroll{width:100%;overflow:auto}.work-table{width:100%;border-collapse:collapse;min-width:980px;text-align:left}.work-table th{background:#fcfdfc;color:#98a89f;font-weight:750;font-size:9px;letter-spacing:1px;white-space:nowrap;padding:14px 17px}.work-table td{padding:14px 17px;border-top:1px solid #eef2ee;vertical-align:middle;color:#607267;font-size:11px}.work-table tr:hover td{background:#fbfdfb}.work-table .row-done{opacity:.65}.work-table .task-col{min-width:210px}.table-task{display:flex;align-items:center;gap:10px}.table-task-title{font-size:12px}.table-actions{display:flex;gap:3px}
/* Gantt */
.gantt-panel{overflow:hidden}.gantt-head{align-items:flex-start}.gantt-tools{display:flex;align-items:center;gap:5px;flex-wrap:wrap;justify-content:flex-end}.segment{border:1px solid var(--line);display:flex;border-radius:8px;overflow:hidden;background:#fff}.segment button{border:0;background:none;padding:7px 12px;font-size:11px;color:#7a8d81}.segment button.selected{background:#eaf4ee;color:#247054;font-weight:750}.gantt-scroll{max-height:650px;overflow:auto;position:relative}.gantt-inner{position:relative}.g-row{display:grid;grid-template-columns:318px minmax(0,1fr);height:47px;border-bottom:1px solid #edf1ed;position:relative;min-width:max-content}.g-row.g-axis{height:59px;position:sticky;top:0;z-index:8;background:#fafcfa}.g-label{position:sticky;left:0;z-index:3;background:white;display:flex;align-items:center;gap:6px;padding:0 12px;border-right:1px solid #e6ede6;min-width:0}.g-axis .g-label{background:#f8fbf8;z-index:10;color:#92a59a;font-size:10px;font-weight:750;letter-spacing:1px}.g-timeline{position:relative;min-width:0}.g-axis .g-timeline{display:flex;flex-direction:column}.g-months,.g-weeks{height:29px;display:flex;overflow:hidden;background:#f7faf7}.g-weeks{height:30px;background:#fbfdfb}.axis-segment{height:100%;border-right:1px solid #e1eae1;display:flex;align-items:center;justify-content:center;font-size:10px;color:#779080;flex-shrink:0;text-transform:capitalize;white-space:nowrap;overflow:hidden}.g-weekend{display:block;position:absolute;top:0;bottom:0;background:#f5f7f3;pointer-events:none}.g-today{display:block;position:absolute;top:0;bottom:0;width:2px;background:#e2a56d;pointer-events:none;z-index:1}.g-track{position:relative;height:100%;background-image:linear-gradient(to right,#edf2ed 1px,transparent 1px);cursor:crosshair}.g-summary{position:absolute;top:20px;height:7px;border-radius:7px;background:#a8d4ba;pointer-events:none}.g-space-row{height:41px}.g-space-row .g-label,.g-space-row .g-track{background-color:#eef6ef}.g-space-row .g-label{font-weight:750}.g-project-row .g-label,.g-project-row .g-track{background-color:#f9fcf8}.g-folder-icon{display:grid;place-items:center;color:#439269;flex-shrink:0}.g-folder-icon svg{width:15px;height:15px}.g-folder-icon.project{color:#8bac8c}.g-name{font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1;font-size:11px}.g-number{color:#9aac9d;font-size:10px;white-space:nowrap}.g-quick{border:0;background:transparent;color:#9bae9c;display:grid;place-items:center;height:25px;width:25px;border-radius:6px;flex-shrink:0}.g-quick:hover{background:#dff1e6;color:var(--green)}.g-quick svg{height:13px;width:13px}.g-fold-space{width:27px;height:15px;flex-shrink:0}.g-task-row .g-label{padding-left:24px}.g-sub-row .g-label{padding-left:42px;background:#fcfdfc}.g-sub-row{height:41px}.g-task-title{border:0;background:none;text-align:left;color:#4e6053;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;font-size:11px;flex:1}.g-task-title:hover{text-decoration:underline}.g-task-mark{width:14px;height:14px;border:1px solid #c9d7c9;color:#c9d7c9;border-radius:4px;display:grid;place-items:center;flex-shrink:0}.g-task-mark svg{width:12px;height:12px}.g-sub-mark{font-size:17px;color:#9bb39c}.g-bar{position:absolute;top:12px;height:23px;border:0;display:flex;align-items:center;justify-content:space-between;border-radius:5px;background:#d6ae61;color:#4e4b38;padding:0;cursor:grab;overflow:visible;z-index:2;box-shadow:0 1px 3px #263b2719}.g-bar.progress{background:#7daec8;color:white}.g-bar.blocked,.g-bar.late{background:#d77f76;color:white}.g-bar.done{background:#a1c7af;color:#245943}.g-bar.pending{background:#dfbb7f}.g-bar.dragging{cursor:grabbing;filter:brightness(.92);z-index:5}.g-bar-caption{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center;font-size:10px;font-weight:700;pointer-events:none;padding:0 3px}.g-resize{width:8px;height:100%;cursor:ew-resize;display:block;flex-shrink:0;background:#ffffff40;border-radius:3px;touch-action:none}.g-resize:hover{background:#ffffffab}.g-no-dates{position:absolute;top:14px;left:13px;font-size:10px;color:#b1bdb0;font-style:italic;pointer-events:none}.gantt-foot{border-top:1px solid var(--line);padding:14px 19px;display:flex;align-items:center;flex-wrap:wrap;gap:17px;font-size:10px;color:#879b8c}.legend{display:inline-block;width:11px;height:11px;border-radius:3px;margin-right:5px;vertical-align:-1px}.legend.pending{background:#dfbb7f}.legend.progress{background:#7daec8}.legend.blocked{background:#d77f76}.legend.done{background:#a1c7af}.g-help{margin-left:auto;display:flex;align-items:center;gap:6px}.g-help svg{height:13px;width:13px}.drag-tip{position:fixed;z-index:120;background:#1f4a38;color:#fff;padding:8px 12px;border-radius:7px;font-size:11px;box-shadow:0 5px 18px #17382525;pointer-events:none}
/* Users */
.user-row{display:flex;align-items:center;gap:15px;padding:14px 21px;border-bottom:1px solid #edf2ed}.user-row:last-child{border-bottom:0}.user-row>div:nth-child(2){flex:1;min-width:0}.user-row strong{font-size:12px}.user-row small{font-size:10px;color:var(--muted);display:block;margin-top:2px}.role-tag{padding:4px 8px;border-radius:6px;background:#f0f3f0;color:#778778;font-size:10px}.role-tag.active{color:#328960;background:#edf8ed}.role-tag.inactive{color:#b36666;background:#fff0ed}.user-actions{display:flex;gap:4px}.info-panel{margin-top:19px;padding:18px 22px;display:flex;justify-content:space-between;gap:18px;align-items:center}.info-panel h3{font-size:13px;margin:0}.info-panel p{color:var(--muted);margin:5px 0 0;font-size:11px}
/* Modal */
#modalRoot{position:fixed;inset:0;z-index:50}.modal-backdrop{position:absolute;inset:0;background:#153e2c85;display:flex;align-items:center;justify-content:center;padding:18px}.modal{background:white;border-radius:15px;width:min(500px,100%);max-height:min(92vh,900px);overflow:auto;box-shadow:0 30px 80px #132a1940}.modal.wide{width:min(740px,100%)}.modal-header{padding:23px 25px 18px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:15px;align-items:flex-start}.modal-header h2{font-size:22px;letter-spacing:-.4px;margin:4px 0 4px}.modal-header p{font-size:11px;color:var(--muted);margin:0}.modal-header .icon-btn{margin-top:-3px}.modal-body{padding:20px 25px 23px;display:flex;flex-direction:column;gap:15px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.form-grid .full{grid-column:1/-1}.field{display:flex;flex-direction:column;gap:6px;color:#52675a;font-weight:650;font-size:11px;min-width:0}.field input,.field select,.field textarea{min-height:38px;border:1px solid #dce6de;border-radius:8px;padding:10px 11px;background:#fff;color:#293f32;outline:0;width:100%;font-size:12px;font-weight:450}.field textarea{resize:vertical;min-height:60px}.field input:focus,.field select:focus,.field textarea:focus{border-color:#80b298}.input-hint{color:#a1b2a4;font-size:10px;font-weight:400}.informed-box{display:flex;flex-wrap:wrap;gap:8px;border-radius:8px;background:#f8fbf8;border:1px solid #e9f0e9;padding:10px 11px}.informed-item{display:flex;align-items:center;gap:5px;color:#5f7466;font-size:11px;font-weight:500}.informed-item input{margin:0;accent-color:#418e66}.modal-footer{display:flex;align-items:center;gap:8px;padding:16px 25px 20px;border-top:1px solid var(--line)}.audit-line{color:#9cac9e;font-size:10px;margin:0}.toast{position:fixed;bottom:25px;right:25px;z-index:90;background:#215942;color:#fff;border-radius:10px;padding:13px 19px;box-shadow:0 10px 35px #1b392b35;font-size:12px;max-width:min(400px,90vw)}.toast.error{background:#a84f4f}
@media(max-width:1150px){.sidebar{width:215px}.topbar{padding:26px 25px}.main-content{padding:0 24px 30px}.metric-grid{gap:9px}.metric{padding:17px}.home-columns{grid-template-columns:1fr}.footer{margin:4px 25px 18px}.tree-task-extras{min-width:100px}}
@media(max-width:800px){.app-shell{display:block}.sidebar{height:auto;min-height:0;width:100%;position:relative;padding:12px 15px 10px;border-right:0;border-bottom:1px solid var(--line)}.sidebar-brand{padding:0 0 8px;text-align:left;display:flex;align-items:center;gap:15px}.sidebar-brand img{max-height:50px;width:115px;object-position:left}.sidebar-label{font-size:10px;margin:0}.sidebar-section{display:none}.sidebar nav{flex-direction:row;flex-wrap:wrap;gap:3px;overflow-x:visible}.nav-link{width:auto;flex-shrink:0;gap:6px;padding:9px 11px;font-size:11px}.nav-link svg{width:14px;height:14px}.sidebar-bottom{display:none}.sidebar nav[aria-label="Equipo"]{position:absolute;right:10px;top:15px}.sidebar nav[aria-label="Equipo"] .nav-link{font-size:10px}.topbar{padding:20px 19px 16px}.main-content{padding:0 17px 23px}.heading h1{font-size:23px}.top-actions{gap:9px}.online-label{display:none}.footer{margin:8px 19px 20px}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.space-head{padding:12px}.project-block{margin-left:17px}.tree-task-extras{display:none}.login-shell{grid-template-columns:1fr}.login-brand{min-height:210px;padding:20px 8%;gap:12px}.login-brand img{max-height:65px;width:170px}.login-feature{margin:0}.login-feature h1{font-size:32px;margin:6px 0}.login-feature p{font-size:12px}.hierarchy-preview{display:none}.login-panel{padding:40px 25px}}
@media(max-width:520px){.topbar{align-items:flex-start;flex-direction:column;gap:13px}.top-actions{width:100%}.top-actions .btn{width:100%}.tree-toolbar{align-items:flex-start;flex-direction:column}.space-logo{display:none}.space-title strong{font-size:13px}.space-head>.btn{font-size:10px;padding:7px 8px}.project-actions .btn{font-size:0;gap:0;padding:8px}.project-actions .btn svg{width:14px}.tree-task{padding:9px 7px;gap:5px}.tree-task .tree-hint{font-size:9px}.tree-children{margin-left:15px}.tree-task.is-subtask{padding-left:15px}.tree-buttons .mini-btn{width:24px}.metric-grid{gap:8px}.metric{min-height:100px;padding:14px}.metric strong{font-size:26px}.panel-head{padding:15px}.filter-bar{gap:7px}.filter-bar .search-field{max-width:100%}.filter-bar select{max-width:calc(50% - 5px);flex:1}.modal-backdrop{padding:8px}.modal-body,.modal-header,.modal-footer{padding-left:16px;padding-right:16px}.form-grid{grid-template-columns:1fr}.form-grid .full{grid-column:auto}.home-columns{gap:12px}.welcome-card{align-items:flex-start;padding:17px}.welcome-glyph{display:none!important}.gantt-head{flex-direction:column}.gantt-tools{justify-content:flex-start}.footer span:last-child{display:none}}

.tree-toolbar-actions{display:flex;align-items:center;gap:10px}

@media(max-width:520px){.tree-toolbar-actions{width:100%}.tree-toolbar-actions>.btn{flex:1;padding:9px 10px;font-size:11px}}

/* Pulso 4.1 - referencias e importación */
.ref-code{font-size:10px;font-weight:750;color:#27705e;background:#e7f3ee;padding:2px 5px;border-radius:5px;white-space:nowrap;flex-shrink:0;letter-spacing:.1px}
.tree-task-main .ref-code{align-self:flex-start;margin-right:4px}.project-head .ref-code{margin-right:2px}
.project-meta{font-size:10px;color:#87978d;max-width:190px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex-shrink:0}
.g-ref{font-size:9px}.g-label .g-ref{padding:1px 4px}.table-task .ref-code{display:inline-block;margin-right:5px}
.import-preview{border:1px solid #dbe9e2;background:#f8fbf9;border-radius:10px;padding:15px;font-weight:450;line-height:1.65;color:#52695c}
.import-preview p{margin:9px 0}.import-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.import-stats>div{padding:11px 5px;background:white;text-align:center;border:1px solid #e0ede5;border-radius:8px}
.import-stats strong{font-size:23px;color:#1c6751;display:block}.import-stats small{font-size:10px;color:#71867a;display:block}
.import-alert{color:#9b5d20;background:#fff5e9;padding:9px 10px;border-radius:7px}
@media(max-width:800px){.project-meta{display:none}.import-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}

.g-bar.paused{background:#aaaab0;color:white}.legend.paused{background:#aaaab0}.status-chip.paused{background:#ececef;color:#696a78}
