*{box-sizing:border-box} :root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;font-size:13px;color-scheme:light;--bg:#fff;--surface:#fafafa;--elevated:#fff;--text:#383e40;--muted:#8a9297;--line:#e5e8e9;--line-strong:#d5dadd;--hover:#f2f6f5;--accent:#4c9b8a;--accent-soft:#eaf5f1;--weekend:#f5fafb;--shade:#f6f8f8;--shadow:0 12px 40px #2338341f;--left:44%;--row:35px} :root[data-theme=dark]{color-scheme:dark;--bg:#17191c;--surface:#1d2023;--elevated:#25292d;--text:#e0e5e5;--muted:#949da4;--line:#30353a;--line-strong:#41474e;--hover:#252e2c;--accent:#83c5b3;--accent-soft:#203a33;--weekend:#1b2429;--shade:#202427;--shadow:0 12px 40px #0005}body{margin:0;background:var(--bg);color:var(--text);overflow:hidden}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer;background:none;border:0;border-radius:4px}button:hover{background:var(--hover)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--accent);outline-offset:2px}button:disabled{opacity:.45;cursor:not-allowed}input,select,textarea{border:1px solid var(--line-strong);border-radius:5px;background:var(--bg);padding:9px 10px;min-width:0}input[type=checkbox]{accent-color:var(--accent);width:14px;height:14px;padding:0}input[type=range]{accent-color:var(--accent);padding:0}textarea{resize:vertical;line-height:1.6}a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}svg.icon{width:17px;height:17px;vertical-align:middle;flex-shrink:0;stroke-width:1.6;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round}.icon-btn{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;color:var(--muted);flex-shrink:0}.icon-btn:hover{color:var(--text)}.topbar{height:52px;display:flex;align-items:center;padding:0 15px;gap:10px}.brand{width:22px;color:#6e8f86;display:flex;align-items:center;justify-content:center}.brand svg{height:26px;width:26px}.project-switch{display:flex;align-items:center;gap:12px;font-size:16px;font-weight:560;padding:7px 5px}.project-switch svg{width:12px;color:var(--muted)}.star.active{color:#c4a963}.project-state{font-size:11px;background:var(--accent-soft);color:var(--accent);padding:4px 7px;border-radius:4px;display:flex;align-items:center;gap:5px}.project-state::before,.status-dot{content:'';width:5px;height:5px;border-radius:50%;display:inline-block;flex-shrink:0}.project-state::before{background:currentColor}.top-right{margin-left:auto;display:flex;align-items:center;gap:10px}.prototype-badge{font-size:10px;letter-spacing:.04em;color:var(--muted);border:1px solid var(--line);padding:4px 6px;border-radius:3px}.avatar{width:23px;height:23px;display:inline-flex;align-items:center;justify-content:center;border:2px solid var(--bg);border-radius:50%;background:var(--avatar);color:white;font-size:8px;letter-spacing:.01em;font-weight:600;flex-shrink:0}.avatar.agent{border-radius:6px;background:color-mix(in srgb,var(--avatar) 18%,var(--bg));border:1px solid color-mix(in srgb,var(--avatar) 40%,var(--line));color:var(--avatar);font-size:8px;position:relative}.avatar.agent svg{width:13px;height:13px}.avatar-stack{display:flex;align-items:center;min-width:20px}.avatar-stack .avatar+.avatar{margin-left:-6px}.avatar-stack .more{color:var(--muted);font-size:10px;padding-left:4px}.top-right .avatar{width:26px;height:26px}.tabs{height:36px;display:flex;align-items:stretch;padding:0 14px;gap:23px;border-bottom:1px solid var(--line-strong)}.tab{padding:0 0 9px;border-radius:0;color:#737d81;font-size:13px;position:relative;display:flex;align-items:center;gap:6px}.tab:hover{background:none;color:var(--text)}.tab.active{color:#3d8ca9;font-weight:550}.tab.active::after{content:'';position:absolute;bottom:-1px;left:0;right:0;height:2px;background:#4d9bb6}.tab .icon{display:none}.toolbar{height:45px;padding:0 12px;display:flex;align-items:center;gap:4px;background:var(--surface);border-bottom:1px solid var(--line-strong);white-space:nowrap}.tool{height:29px;padding:0 8px;display:inline-flex;align-items:center;gap:6px;font-size:11px;color:var(--muted)}.tool.strong{color:var(--accent);font-weight:550}.tool.active{background:var(--accent-soft);color:var(--accent)}.divider{width:1px;height:18px;background:var(--line-strong);margin:0 6px;flex-shrink:0}.toolbar-right{margin-left:auto;display:flex;align-items:center;gap:4px}.zoom-control{display:flex;align-items:center;font-size:11px;gap:6px;color:var(--muted);margin:0 4px}.zoom-control select{border:0;padding:4px 0;background:none;max-width:100px}.zoom-control input{width:65px;height:12px}.clickup-mark{width:14px;display:inline-block;font-weight:800;font-size:16px;line-height:15px;color:#9672c8;transform:rotate(-5deg)}.primary{background:var(--accent);color:#fff;border:1px solid var(--accent);padding:9px 13px;display:inline-flex;align-items:center;justify-content:center;gap:7px}.primary:hover{filter:brightness(.95);background:var(--accent)}.secondary{border:1px solid var(--line-strong);padding:9px 12px;display:inline-flex;align-items:center;justify-content:center;gap:7px;background:var(--bg)}.danger{color:#d97770}.workspace{height:calc(100dvh - 163px);overflow:hidden;position:relative}.timeline-scroll{height:100%;overflow:auto;position:relative}.gantt-grid{min-width:900px;min-height:100%;position:relative}.gantt-header{height:57px;display:flex;position:sticky;top:0;z-index:8;background:var(--bg);border-bottom:1px solid var(--line-strong)}.table-head{width:var(--left);flex-shrink:0;display:grid;grid-template-columns:35px minmax(130px,1fr) 100px 102px 84px 27px;position:sticky;left:0;z-index:10;background:var(--bg);border-right:1px solid var(--line-strong)}.table-head>div{display:flex;align-items:center;justify-content:center;border-right:1px solid var(--line);font-size:11px;color:var(--muted);font-weight:400}.table-head .name-head{justify-content:flex-start;padding-left:32px}.date-head{position:relative;flex-shrink:0}.months{height:25px;display:flex;border-bottom:1px solid var(--line);font-size:11px;color:var(--muted)}.month{display:flex;align-items:center;justify-content:center;border-right:1px solid var(--line)}.days{height:31px;display:flex}.day-cell{height:100%;border-right:1px solid var(--line);text-align:center;display:flex;align-items:center;justify-content:center;flex-shrink:0;font-size:10px;color:var(--muted)}.weekend{background:var(--weekend)}.day-cell.weekend{color:#5598ad}.day-cell.is-today{background:#d98c87;color:white}.gantt-row{height:var(--row);display:flex;border-bottom:1px solid var(--line);position:relative}.gantt-row:hover .table-row{background:var(--hover)}.table-row{width:var(--left);flex-shrink:0;display:grid;grid-template-columns:35px minmax(130px,1fr) 100px 102px 84px 27px;background:var(--bg);position:sticky;left:0;z-index:4;border-right:1px solid var(--line-strong)}.table-row>div{display:flex;align-items:center;border-right:1px solid var(--line);min-width:0}.row-num{justify-content:center;color:var(--muted);font-size:10px}.task-name{padding:0 5px;gap:7px;font-size:11px;overflow:hidden}.task-name .name-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}.task-name .name-text:hover{color:var(--accent)}.task-name.level-1{padding-left:17px}.task-name.level-2{padding-left:29px}.toggle-group{width:12px;height:12px;padding:0;color:var(--muted);border:1px solid var(--muted);border-radius:2px;display:flex;align-items:center;justify-content:center;flex-shrink:0;font-size:10px;font-weight:400}.row-check{opacity:0;margin:0;width:12px!important;height:12px!important;flex-shrink:0}.gantt-row:hover .row-check,.is-done .row-check,.row-check:checked{opacity:1}.assignee-cell{padding:0 6px;gap:4px;font-size:10px;cursor:pointer;overflow:hidden}.assignee-cell .one-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.unassigned{font-size:10px;color:var(--muted)}.status-cell{gap:6px;padding:0 9px;font-size:10px;cursor:pointer;white-space:nowrap;overflow:hidden}.status-cell .status-text{overflow:hidden;text-overflow:ellipsis}.labels-cell{gap:3px;padding:0 5px;overflow:hidden}.tag{display:inline-block;font-size:10px;line-height:16px;padding:0 4px;border-radius:2px;background:var(--tag);color:#000;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:80px}.more-cell{justify-content:center}.more-cell .icon-btn{width:23px;height:25px}.is-group .task-name{font-weight:600}.is-group .table-row>div{border-right:0}.is-group .table-row{background:var(--surface)}.is-done .name-text,.is-done .status-text,.is-done .one-name{text-decoration:line-through;color:var(--muted)}.is-done .tag{opacity:.38}.is-done .avatar{opacity:.5}.timeline-cells{position:relative;flex-shrink:0;background-image:linear-gradient(to right,var(--line) 1px,transparent 1px);background-size:var(--day-width) 100%}.weekend-bg{position:absolute;top:0;bottom:0;pointer-events:none;background:var(--weekend);border-left:1px solid var(--line);border-right:1px solid var(--line)}.today-line{position:absolute;top:0;bottom:0;width:1px;background:#e6a6a180;z-index:1;pointer-events:none}.bar{position:absolute;height:17px;top:8px;border-radius:1px;background:var(--bar);cursor:grab;z-index:3;touch-action:none}.bar:active{cursor:grabbing}.bar .progress{height:100%;background:transparent;border-bottom:3px solid #0003;border-radius:1px;pointer-events:none}.bar .resize{position:absolute;right:-3px;top:0;height:100%;width:7px;cursor:ew-resize;z-index:5}.bar .resize::after{content:'';position:absolute;right:3px;top:4px;height:9px;width:2px;background:#fff8;opacity:0}.bar:hover .resize::after{opacity:1}.bar-caption{position:absolute;left:calc(100% + 9px);top:-3px;display:flex;align-items:center;gap:7px;white-space:nowrap;font-size:10px;color:var(--text);pointer-events:none}.bar-caption .avatar{width:21px;height:21px}.bar-caption .dates{color:var(--muted);font-size:10px}.bar.group-bar{height:4px;top:25px;background:var(--bar);cursor:default}.group-bar .bar-caption{left:0;top:-20px;font-size:11px;font-weight:600;color:var(--bar)}.group-bar .progress{display:none}.group-bar::before,.group-bar::after{content:'';height:8px;width:2px;background:var(--bar);position:absolute;top:0}.group-bar::after{right:0}.is-done .bar{opacity:1}.is-done .bar-caption .caption-name{text-decoration:line-through}.milestone-mark{width:13px;height:13px;transform:rotate(45deg);background:var(--bar);position:absolute;top:10px;z-index:3;cursor:pointer}.milestone-mark .bar-caption{transform:rotate(-45deg);left:20px;top:-13px}.baseline-bar{position:absolute;top:28px;height:4px;border:1px solid var(--muted);opacity:.5;z-index:2}.dependency-layer{position:absolute;left:var(--left);top:57px;pointer-events:none;z-index:2;overflow:visible}.add-row{position:sticky;left:0;width:var(--left);border-bottom:1px solid var(--line);background:var(--bg);height:36px;z-index:4;display:flex;align-items:center;padding-left:48px}.add-row button{color:var(--muted);font-size:11px;display:flex;align-items:center;gap:6px}.footer{height:30px;display:flex;align-items:center;gap:14px;padding:0 17px;border-top:1px solid var(--line);font-size:10px;color:var(--muted);background:var(--surface)}.footer .right{margin-left:auto}.saved-dot{width:5px;height:5px;background:var(--accent);border-radius:50%;display:inline-block;margin-right:5px}.view-scroll{height:100%;overflow:auto;padding:25px 28px;background:var(--bg)}.view-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:23px}.view-heading h1{font-size:19px;font-weight:550;margin:0 0 5px}.view-heading p{font-size:12px;color:var(--muted);margin:0}.board{display:flex;gap:17px;align-items:flex-start;min-height:100%}.board-column{width:265px;min-width:245px;flex:1;border-radius:5px;background:var(--surface);border:1px solid var(--line);padding:11px}.column-head{display:flex;align-items:center;gap:7px;padding:2px 2px 12px;font-size:12px;font-weight:550}.column-head .count{font-size:10px;background:var(--bg);padding:2px 5px;border:1px solid var(--line);border-radius:4px;font-weight:400;color:var(--muted)}.column-head button{margin-left:auto}.board-card{border:1px solid var(--line);background:var(--bg);border-radius:5px;padding:13px;margin-bottom:9px;cursor:grab;box-shadow:0 1px 2px #00000004}.board-card:hover{border-color:var(--line-strong);box-shadow:0 3px 9px #00000008}.board-card h3{font-weight:500;font-size:12px;line-height:1.5;margin:7px 0 13px}.board-card.is-done h3{text-decoration:line-through;color:var(--muted)}.card-group{color:var(--muted);font-size:10px;display:flex;align-items:center;gap:5px}.card-bottom{display:flex;align-items:center;gap:7px;margin-top:12px}.card-date{font-size:10px;color:var(--muted)}.card-bottom .avatar-stack{margin-left:auto}.card-labels{display:flex;gap:4px}.card-progress{height:3px;background:var(--line);margin:13px 0 3px;border-radius:3px}.card-progress i{height:100%;display:block;background:var(--accent);border-radius:3px}.board-column.dragover{background:var(--accent-soft);border-color:var(--accent)}.column-add{width:100%;text-align:left;color:var(--muted);font-size:11px;padding:7px}.data-table{border-collapse:collapse;width:100%;font-size:12px}.data-table th{text-align:left;color:var(--muted);font-size:11px;font-weight:450;background:var(--surface);padding:11px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.data-table td{padding:11px;border-bottom:1px solid var(--line);vertical-align:middle}.data-table tbody tr:hover{background:var(--hover)}.data-table .name-text{cursor:pointer}.data-table .group-tr td{font-weight:600;background:var(--surface)}.flex{display:flex;align-items:center;gap:8px}.muted{color:var(--muted)}.tiny{font-size:11px}.metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:28px}.metric{border:1px solid var(--line);padding:17px 20px;border-radius:5px}.metric .value{font-size:25px;letter-spacing:-.5px;margin:8px 0 2px}.metric .label{font-size:11px;color:var(--muted)}.week-nav{display:flex;align-items:center;gap:10px;font-size:12px}.workload-table{display:grid;border-top:1px solid var(--line);border-left:1px solid var(--line);grid-template-columns:240px repeat(7,minmax(90px,1fr));min-width:900px}.work-cell{border-right:1px solid var(--line);border-bottom:1px solid var(--line);padding:12px;min-height:88px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:7px}.work-cell.head{min-height:46px;background:var(--surface);font-size:11px;color:var(--muted)}.work-cell.person{align-items:flex-start;justify-content:center}.work-cell .meter{width:70%;height:5px;background:var(--line);border-radius:5px;overflow:hidden}.work-cell .meter i{display:block;height:100%;background:var(--accent)}.work-cell.over .meter i{background:#d9857d}.work-cell.over{color:#d07871;background:#d9857d0a}.work-cell .hours{font-size:12px}.work-cell .capacity{font-size:10px;color:var(--muted)}.section-label{font-size:12px;font-weight:550;margin:25px 0 12px}.people-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(245px,1fr));gap:16px}.person-card{border:1px solid var(--line);border-radius:6px;padding:20px;cursor:pointer}.person-card:hover{background:var(--hover)}.person-card .avatar{width:38px;height:38px;font-size:12px}.person-card .avatar.agent svg{width:22px;height:22px}.person-card h3{font-size:13px;font-weight:550;margin:0 0 4px}.person-card p{font-size:11px;margin:0;color:var(--muted);line-height:1.6}.person-card .person-stats{display:flex;gap:25px;margin-top:19px;padding-top:14px;border-top:1px solid var(--line);font-size:11px;color:var(--muted)}.person-stats b{display:block;color:var(--text);font-size:16px;font-weight:500;margin-bottom:3px}.notice{background:var(--shade);border:1px solid var(--line);border-radius:5px;padding:12px 14px;font-size:12px;line-height:1.6;color:var(--muted);display:flex;gap:10px;align-items:flex-start;margin-bottom:20px}.notice .icon{margin-top:1px;flex-shrink:0}.notice strong{color:var(--text);font-weight:550}.empty{text-align:center;padding:65px 20px;color:var(--muted)}.empty svg{width:32px;height:32px;margin-bottom:10px}.empty h3{font-size:15px;color:var(--text);font-weight:500}.menu{position:fixed;z-index:50;min-width:200px;padding:6px;border-radius:6px;border:1px solid var(--line-strong);background:var(--elevated);box-shadow:var(--shadow)}.menu button{display:flex;width:100%;gap:10px;align-items:center;padding:9px 11px;text-align:left;font-size:12px}.menu button.selected{background:var(--accent-soft);color:var(--accent)}.menu .menu-label{padding:7px 11px;font-size:10px;color:var(--muted);text-transform:uppercase;letter-spacing:.08em}.menu hr{border:0;border-top:1px solid var(--line);margin:5px}.backdrop{position:fixed;inset:0;background:#0c151a35;z-index:60;display:flex;justify-content:center;align-items:center;padding:24px;backdrop-filter:blur(1px)}.modal{width:580px;max-width:100%;max-height:90dvh;overflow:auto;background:var(--bg);border:1px solid var(--line-strong);border-radius:9px;box-shadow:var(--shadow)}.modal.wide{width:900px}.modal-head{display:flex;justify-content:space-between;align-items:center;padding:20px 23px;border-bottom:1px solid var(--line);position:sticky;top:0;background:var(--bg);z-index:2}.modal-head h2{font-size:16px;font-weight:550;margin:0}.modal-body{padding:22px 23px}.modal-foot{padding:16px 23px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:flex-end;gap:9px;position:sticky;bottom:0;background:var(--bg);z-index:2}.modal-foot .left{margin-right:auto}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.field{display:flex;flex-direction:column;gap:7px}.field.full{grid-column:1/-1}.field>label{font-size:11px;color:var(--muted);font-weight:500}.field input,.field select,.field textarea{width:100%}.field-help{font-size:10px;color:var(--muted);line-height:1.6}.choice-list{display:flex;flex-wrap:wrap;gap:6px}.choice{display:flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:4px;padding:5px 7px;font-size:11px;cursor:pointer}.choice:has(input:checked){background:var(--accent-soft);border-color:var(--accent)}.choice input{width:12px!important;margin:0}.drawer-backdrop{justify-content:flex-end;padding:0;background:#0c151a20}.drawer{width:510px;max-width:100%;height:100dvh;background:var(--bg);border-left:1px solid var(--line-strong);box-shadow:var(--shadow);display:flex;flex-direction:column}.drawer .modal-head{padding:15px 21px}.drawer form{display:flex;flex-direction:column;overflow:hidden;flex:1}.drawer .modal-body{flex:1;overflow:auto;padding:20px 23px}.drawer .modal-foot{flex-shrink:0}.task-title-input{font-size:20px;font-weight:500;border:0!important;padding:4px 0!important;line-height:1.45;margin-bottom:15px}.drawer-section{margin-top:23px;padding-top:19px;border-top:1px solid var(--line)}.drawer-section h3{font-size:12px;font-weight:550;margin:0 0 12px}.comment{padding:10px 0;font-size:12px;line-height:1.5}.comment .comment-meta{display:flex;gap:7px;color:var(--muted);font-size:10px;margin-bottom:4px}.comment p{margin:0;white-space:pre-wrap}.import-tabs{display:flex;gap:8px;margin-bottom:20px}.import-tabs button{border:1px solid var(--line);padding:8px 12px;font-size:12px}.import-tabs button.active{background:var(--accent-soft);border-color:var(--accent);color:var(--accent)}.drop-zone{border:1px dashed var(--line-strong);border-radius:7px;padding:35px 22px;display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center;background:var(--surface);cursor:pointer}.drop-zone:hover,.drop-zone.dragover{border-color:var(--accent);background:var(--accent-soft)}.drop-zone svg{height:31px;width:31px;color:var(--accent)}.drop-zone strong{font-size:13px;font-weight:500}.drop-zone span{font-size:11px;color:var(--muted)}.import-preview{max-height:230px;overflow:auto;border:1px solid var(--line);border-radius:4px;margin:15px 0}.import-preview th{position:sticky;top:0}.import-summary{display:flex;gap:22px;margin:17px 0}.import-summary b{font-size:22px;font-weight:500;display:block;margin-bottom:3px}.import-summary span{font-size:11px;color:var(--muted)}.warning{font-size:11px;line-height:1.6;color:#b88745;padding:9px 12px;background:#cc9a4a0d;border:1px solid #cc9a4a35;border-radius:4px;margin:10px 0}.check-row{display:flex;gap:8px;align-items:center;font-size:12px;padding:7px 0}.status-map{display:grid;grid-template-columns:1fr 1fr;gap:8px;align-items:center;font-size:12px}.status-map select{padding:6px}.settings-row{display:flex;align-items:center;gap:10px;margin:8px 0}.settings-row input[type=color]{width:32px;height:32px;padding:3px;border:1px solid var(--line);flex-shrink:0}.settings-row .name{flex:1}.history-row{display:flex;gap:13px;padding:14px 0;border-bottom:1px solid var(--line);font-size:12px}.history-row .history-dot{width:7px;height:7px;border-radius:50%;background:var(--accent);margin-top:5px;flex-shrink:0}.history-row time{display:block;font-size:10px;color:var(--muted);margin-top:6px}.timer-live{display:flex;align-items:center;gap:10px;padding:14px;border:1px solid var(--accent);border-radius:5px;background:var(--accent-soft);margin-bottom:22px}.timer-live strong{font-variant-numeric:tabular-nums;font-size:18px;font-weight:500}.timer-live .stop{margin-left:auto}.portfolio{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:20px}.project-card{border:1px solid var(--line);padding:22px;border-radius:6px;cursor:pointer}.project-card:hover{border-color:var(--accent)}.project-card h3{font-size:15px;font-weight:550;margin:0 0 15px}.project-card .project-state{display:inline-flex}.project-card .card-progress{margin-top:23px}.project-card .meta{display:flex;justify-content:space-between;font-size:11px;color:var(--muted);margin-top:13px}#toast{position:fixed;bottom:45px;left:50%;transform:translateX(-50%) translateY(20px);padding:12px 19px;border:1px solid var(--line-strong);background:var(--elevated);box-shadow:var(--shadow);border-radius:6px;opacity:0;pointer-events:none;z-index:100;font-size:12px;transition:opacity .15s,transform .15s;max-width:90vw}#toast.show{opacity:1;transform:translateX(-50%) translateY(0)}.selected-row .table-row{background:var(--accent-soft)}.import-empty-tip{padding-top:16px;display:flex;align-items:center;justify-content:space-between;font-size:11px;color:var(--muted)}.table-wrapper{overflow:auto}.mini-pill{font-size:10px;padding:3px 7px;border-radius:3px;border:1px solid var(--line);color:var(--muted)}.filter-count{font-size:9px;background:var(--accent);color:white;border-radius:8px;min-width:14px;padding:1px 4px}.hidden{display:none!important}
@media(min-width:1550px){:root{--left:39%}.table-head,.table-row{grid-template-columns:40px minmax(160px,1fr) 112px 120px 100px 30px}}
@media(max-width:1100px){:root{--left:49%}.table-head,.table-row{grid-template-columns:30px minmax(120px,1fr) 85px 87px 66px 23px}.toolbar .wide-label{display:none}.zoom-control input{display:none}.top-right{gap:3px}.prototype-badge{display:none}.toolbar{padding:0 7px}.tool{padding:0 6px}.bar-caption .dates{display:none}}
@media(max-width:760px){.topbar{height:49px;padding:0 10px;gap:5px}.project-switch{font-size:14px}.project-state{display:none}.top-right .avatar-stack,.top-right .star{display:none}.tabs{gap:20px;overflow:auto;padding:0 12px;white-space:nowrap}.tab{font-size:12px}.toolbar{height:43px}.toolbar .desktop-tool,.toolbar .divider{display:none}.workspace{height:calc(100dvh - 158px)}.toolbar-right{gap:0}.view-scroll{padding:20px 14px}.metrics{gap:8px}.metric{padding:13px}.metric .value{font-size:22px}.footer{gap:6px;padding:0 10px}.footer .right{display:none}.form-grid{gap:13px}.modal-body{padding:18px}.backdrop{padding:12px}.drawer-backdrop{padding:0}.view-heading{align-items:flex-start;gap:10px}.view-heading h1{font-size:17px}.view-heading p{font-size:11px;line-height:1.5}.toolbar .tool{font-size:10px}.zoom-control{margin:0 2px}.board-column{min-width:235px}.task-title-input{font-size:18px}}
/* Filled status labels follow the project's custom color in either theme. */
.status-badge{display:inline-flex;align-items:center;gap:6px;max-width:100%;min-width:0;padding:2px 8px;border-radius:7px;background:var(--status-color);color:var(--status-ink);font-size:11px;font-weight:550;line-height:18px;white-space:nowrap;text-transform:uppercase;letter-spacing:.015em;vertical-align:middle}
.status-badge .status-text{overflow:hidden;text-overflow:ellipsis;color:inherit;text-decoration:none}
.status-symbol{width:15px;height:15px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.status-symbol .status-sector{fill:currentColor;stroke:none;opacity:.65}
.status-trigger{display:flex;align-items:center;min-width:0;max-width:100%;padding:0;border-radius:7px;text-align:left}
.status-trigger:hover{background:transparent;filter:brightness(1.08)}
.is-done .status-badge .status-text{color:inherit;text-decoration:none}
.status-cell{padding:0 8px}
.menu{max-height:calc(100dvh - 16px);overflow:auto}
.menu .status-badge{max-width:280px}
.modal:has(#status-editor){width:780px}
#status-settings-section{scroll-margin-top:74px}
.status-editor-help{font-size:12px;line-height:1.6;color:var(--muted);margin:0 0 17px}
.status-editor-row{display:grid;grid-template-columns:minmax(120px,1fr) 145px minmax(125px,1fr);gap:12px 16px;padding:15px 0;border-bottom:1px solid var(--line)}
.status-color-controls{display:flex;gap:6px}
.status-color-controls input[type=color]{width:37px;height:36px;flex-shrink:0;padding:3px;border-radius:6px;cursor:pointer}
.status-color-controls input[data-status-field=hex]{font-family:ui-monospace,monospace;font-size:11px;padding:8px;min-width:0}
.status-preview-field{display:flex;flex-direction:column;justify-content:center;gap:7px;min-width:0}
.status-preview-field>.field-help{font-size:11px;font-weight:500;line-height:normal}
.status-preview-field [data-status-preview]{height:36px;display:flex;align-items:center;min-width:0}
.status-row-options{grid-column:1/-1;display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.status-swatches{display:flex;gap:6px;align-items:center}
.status-swatch{width:21px;height:21px;background:var(--swatch);border:2px solid var(--bg);border-radius:50%;box-shadow:0 0 0 1px var(--line-strong);padding:0}
.status-swatch:hover{background:var(--swatch);box-shadow:0 0 0 2px var(--muted)}
.status-row-options .check-row{font-size:11px;margin:0}
.status-remove{margin-left:auto;color:var(--muted);font-size:11px;padding:4px 7px}
.status-add{margin-top:16px}
@media(max-width:600px){.status-editor-row{grid-template-columns:minmax(120px,1fr) 140px;gap:12px}.status-preview-field{grid-column:1/-1;flex-direction:row;align-items:center;justify-content:flex-start}.status-preview-field [data-status-preview]{height:auto}.status-row-options{gap:12px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
@media print{body{overflow:visible;background:#fff;color:#333}:root{color-scheme:light;--bg:#fff;--surface:#fafafa;--text:#333;--muted:#777;--line:#ddd;--line-strong:#ccc;--weekend:#f2f7fa;--left:45%}.top-right,.toolbar,.footer,.tabs,.backdrop,.add-row,#toast{display:none!important}.workspace,.timeline-scroll,.view-scroll{height:auto;overflow:visible}.gantt-header,.table-head,.table-row{position:relative}.gantt-grid{min-width:0}.gantt-row{break-inside:avoid}.timeline-cells,.date-head{overflow:hidden}.bar-caption{display:none}.topbar{border-bottom:1px solid #ccc}.row-check{opacity:1}.data-table{font-size:10px}@page{size:A3 landscape;margin:10mm}}

/* Filas amplias y elementos del cronograma alineados a su altura. */
:root{--row:38px}.topbar{height:42px}.tabs{height:31px}.toolbar{height:38px}.workspace{height:calc(100dvh - 137px)}.footer{height:26px}.gantt-header{height:46px}.months{height:21px}.days{height:24px}.bar{height:16px;top:calc((var(--row) - 16px)/2)}.bar.group-bar{top:calc(var(--row) - 8px)}.group-bar .bar-caption{top:-19px}.milestone-mark{top:calc((var(--row) - 13px)/2)}.baseline-bar{top:auto;bottom:2px;height:3px}.dependency-layer{top:46px}.task-name{font-size:11px}.bar-caption{top:-3px}.project-switch{font-size:14px}.top-right .avatar{width:24px;height:24px}
@media(max-width:760px){.topbar{height:42px}.toolbar{height:38px}.workspace{height:calc(100dvh - 137px)}}
.milestone-mark{transform:none;background:none}.milestone-mark::before{content:'';position:absolute;inset:0;background:var(--bar);transform:rotate(45deg)}.milestone-mark .bar-caption{transform:none;left:22px;top:0;line-height:13px}.is-done .milestone-mark .bar-caption{text-decoration:line-through}
.application-shell{--rail-width:68px;--sidebar-width:284px;--shellbar-height:44px;--side-bg:#f7f7f8;--rail-bg:#f0eff3;--side-hover:#ebebee;--side-active:#e5e5e9;--rail-active:#e0dde9;display:grid;grid-template-columns:var(--rail-width) var(--sidebar-width) minmax(0,1fr);grid-template-rows:var(--shellbar-height) minmax(0,1fr);height:100dvh;background:var(--bg)}
:root[data-theme=dark] .application-shell{--side-bg:#1b1b1d;--rail-bg:#1b1820;--side-hover:#242426;--side-active:#303032;--rail-active:#352c40}
.application-shell.sidebar-closed{grid-template-columns:var(--rail-width) 0 minmax(0,1fr)}
.workspace-bar{grid-column:1/-1;grid-row:1;display:flex;align-items:center;gap:12px;padding:0 15px;background:var(--bg);border-bottom:1px solid var(--line);min-width:0}
.workspace-brand{display:flex;align-items:center;gap:9px;padding:5px 7px;font-size:14px;border-radius:6px;background:var(--side-bg)}.workspace-brand strong{font-weight:560}.workspace-brand>.icon{width:13px;margin-left:8px;color:var(--muted)}.workspace-logo{display:grid;place-items:center;width:24px;height:24px;background:#7654c4;color:#fff;border-radius:6px;font-size:15px;font-weight:600}.workspace-divider{width:1px;height:19px;background:var(--line)}
.workspace-search{color:var(--muted);display:flex;align-items:center;gap:9px;font-size:11px;padding:6px 10px;min-width:210px}.workspace-search .icon{width:15px}.workspace-search kbd{margin-left:28px;font:10px inherit;border:1px solid var(--line);border-radius:3px;padding:1px 4px}.workspace-bar-right{display:flex;align-items:center;gap:17px;margin-left:auto}.local-indicator{display:flex;align-items:center;gap:6px;font-size:10px;color:var(--muted)}.local-indicator .icon{width:13px}
.app-rail{grid-column:1;grid-row:2;min-height:0;overflow:auto;background:var(--rail-bg);display:flex;flex-direction:column;align-items:center;padding:9px 5px;gap:7px;border-right:1px solid var(--line)}.rail-link{width:56px;min-height:61px;padding:9px 3px 7px;border-radius:8px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;color:var(--muted);flex-shrink:0}.rail-link>.icon{width:22px;height:22px;stroke-width:1.7}.rail-link>span:not(.avatar){font-size:10px}.rail-link:hover{background:var(--side-hover);color:var(--text)}.rail-link.active{background:var(--rail-active);color:var(--text)}.rail-link.active>.icon{color:var(--text)}.rail-spacer{flex:1;min-height:20px}.rail-link .avatar{width:24px;height:24px;font-size:9px;border-color:transparent}
.project-sidebar{grid-column:2;grid-row:2;background:var(--side-bg);border-right:1px solid var(--line-strong);display:flex;flex-direction:column;min-height:0;min-width:0;overflow:hidden}.sidebar-closed .project-sidebar{visibility:hidden}.sidebar-heading{display:flex;align-items:center;justify-content:space-between;height:58px;flex-shrink:0;padding:0 14px 0 20px}.sidebar-heading>strong{font-size:17px;font-weight:550}.sidebar-heading>div{display:flex;align-items:center;gap:1px}.sidebar-heading .icon-btn{width:25px;height:27px}.sidebar-heading .icon-btn .icon{width:16px;height:16px}.sidebar-plus{height:29px;margin-left:6px;display:flex;align-items:center;padding:0 7px;background:var(--bg);box-shadow:0 1px 5px #0002;border:1px solid var(--line-strong);border-radius:7px;gap:4px}.sidebar-plus .icon:last-child{width:10px}.sidebar-scroll{overflow:auto;min-height:0;flex:1;padding:0 12px 15px;scrollbar-width:thin;scrollbar-color:var(--line-strong) transparent}.side-link,.side-caption{min-height:34px;width:100%;display:flex;align-items:center;text-align:left;gap:9px;padding:7px 9px;color:var(--muted);font-size:12px;line-height:1.4;border-radius:5px}.side-link>.icon,.side-caption>.icon{width:17px;height:17px;flex-shrink:0}.side-link>span:not(.side-count):not(.sidebar-clickup){white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.side-link:hover{color:var(--text);background:var(--side-hover)}.side-link.active,.side-branch.active,.side-project-name.active{background:var(--side-active);color:var(--text)}.side-count{margin-left:auto;flex-shrink:0;font-size:11px;font-variant-numeric:tabular-nums;color:var(--muted)}.side-caption{margin-top:3px}.my-task-branches{margin-left:17px;border-left:1px solid var(--line-strong);padding-left:6px}.side-link.nested{font-size:12px}.side-link.nested>.icon{width:16px}.due-count{color:#c08a68}.side-separator{border-top:1px solid var(--line);margin:19px 8px 18px}.side-section-label{font-size:11px;font-weight:550;color:var(--muted);margin:0 8px 8px}.side-section-label.with-button{display:flex;align-items:center;justify-content:space-between;margin-top:23px;margin-bottom:3px;min-height:25px}.with-button .icon-btn{width:22px;height:22px;border-radius:5px;background:var(--side-hover)}.with-button .icon{width:15px}.side-link.subtle{opacity:.75}.side-project{--project-icon-size:21px;--project-icon-inset:5px;margin:2px 0}.side-project-line{display:flex;align-items:center;min-height:35px;position:relative;gap:0;border-radius:5px}.side-project-line:hover{background:var(--side-hover)}.side-project-name{display:flex;align-items:center;gap:8px;padding:6px 5px;font-size:12px;text-align:left;flex:1;min-width:0;color:var(--muted);height:35px}.side-project-name>span:not(.project-tile){white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.project-tile{display:grid;place-items:center;width:21px;height:21px;border-radius:5px;flex-shrink:0;font-size:12px;font-weight:550;color:#fff;background:#7286b3}.side-project:nth-child(2n) .project-tile{background:#8e6fa5}.side-project:nth-child(3n) .project-tile{background:#7b9d8c}.side-project-name>.icon{width:12px;margin-left:auto;color:#c7ad6e;flex-shrink:0}.side-project-add{width:24px;flex-shrink:0;height:28px;color:var(--muted);padding:3px;opacity:0}.side-project-line:hover .side-project-add,.side-project-line:focus-within .side-project-add,.side-project.current .side-project-add{opacity:1}.side-project-add .icon{width:15px}.side-branches{margin-left:calc(var(--project-icon-inset) + var(--project-icon-size)/2 - .5px);border-left:1px solid transparent;padding:2px 0 2px 6px}
.side-branches>.side-section-row::before{content:"";position:absolute;left:-7px;top:0;bottom:0;width:1px;background:var(--line-strong);pointer-events:none}
.side-branches>.side-section-row:first-child::before{top:-2px}
.side-branches>.side-section-row:last-child::before{bottom:50%}.side-branch{position:relative;width:100%;height:32px;display:flex;align-items:center;gap:7px;color:var(--muted);text-align:left;font-size:11px;padding:0 6px}.side-branch>.icon{width:15px;height:15px;flex-shrink:0}.branch-name{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.side-branch:hover{color:var(--text);background:var(--side-hover)}.empty-branch{font-size:10px;opacity:.75}.new-space{margin-top:8px}.sidebar-clickup{color:#a483ce;font-size:21px;width:17px;height:19px;text-align:center;line-height:25px;font-weight:600}.sidebar-footer{flex-shrink:0;display:flex;align-items:center;gap:5px;padding:12px 20px;border-top:1px solid var(--line);font-size:9px;color:var(--muted)}
.project-area{grid-row:2;grid-column:3;min-width:0;min-height:0;display:flex;flex-direction:column;container-type:inline-size;overflow:hidden;background:var(--bg)}.project-area .topbar,.project-area .tabs,.project-area .toolbar,.project-area .footer{flex-shrink:0}.project-area .workspace{height:auto;min-height:0;flex:1}.project-area .topbar{height:48px}.project-area .tabs{height:34px}.project-area .toolbar{height:38px}.sidebar-toggle{width:23px;height:28px;margin-right:1px}.sidebar-toggle>.icon{width:16px;height:16px}.project-area .brand{display:none}.project-area .project-switch{min-width:0;max-width:50%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.scope-strip{flex-shrink:0;display:flex;align-items:center;gap:8px;padding:6px 13px;background:var(--accent-soft);font-size:10px;border-bottom:1px solid var(--line)}.scope-strip>.icon{width:14px}.scope-strip>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.scope-strip button{margin-left:auto;color:var(--accent);display:flex;align-items:center;gap:5px;white-space:nowrap}.scope-strip button .icon{width:12px}.global-view>.tabs,.global-view>.toolbar,.global-view>.scope-strip,.global-view>.topbar .project-state,.global-view>.topbar .star{display:none}.global-view>.topbar{border-bottom:1px solid var(--line)}.global-view>.topbar .project-switch{pointer-events:none}.global-view>.topbar .project-switch .icon{display:none}.global-view .footer .right{display:none}.global-view .footer>span:nth-child(2){margin-left:auto}.inbox-view{padding:32px}.inbox-eyebrow{font-size:11px;color:var(--muted);margin-bottom:15px}.inbox-summary{display:flex;align-items:center;gap:22px;padding:13px 0 21px;margin-top:5px;font-size:11px;color:var(--muted)}.inbox-summary>span{display:flex;align-items:center;gap:6px}.inbox-summary b{color:var(--text);font-weight:550}.workspace-task-table{min-width:660px}.workspace-task-name{padding:3px 0;text-align:left;font-size:12px}.workspace-project-cell{display:flex;align-items:center;gap:5px;font-size:11px;color:var(--muted);padding:3px 0}.workspace-project-cell .icon{width:13px}.overdue-date{color:#ce8b76}.inbox-empty{text-align:center;padding:70px 20px;color:var(--muted)}.inbox-empty>.icon{width:36px;height:36px;margin-bottom:8px;color:var(--accent)}.inbox-empty h2{font-weight:500;font-size:17px;color:var(--text)}.inbox-empty p{font-size:12px;margin-bottom:24px}.workspace-search-field{display:flex;align-items:center;gap:10px}.workspace-search-field input{width:100%;border:0;padding:10px 0;font-size:16px}.workspace-search-field>.icon{color:var(--muted)}#workspace-search-results{max-height:52dvh;overflow:auto;margin-top:15px}.search-heading{padding:14px 8px 7px;color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.04em}.search-result{display:flex;align-items:center;gap:10px;width:100%;padding:11px 8px;text-align:left;min-width:0}.search-result .icon{width:15px;color:var(--muted)}.search-result strong{font-size:12px;font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.search-result>span{font-size:10px;color:var(--muted);margin-left:auto;flex-shrink:0}
@container(max-width:1100px){.toolbar .wide-label,.zoom-control input{display:none}.toolbar{padding:0 6px}.tool{padding:0 5px}.top-right{gap:3px}.prototype-badge{display:none}.bar-caption .dates{display:none}.footer .right{display:none}.table-head,.table-row{grid-template-columns:30px minmax(120px,1fr) 85px 87px 66px 23px}}
@container(max-width:830px){.toolbar .desktop-tool,.toolbar .divider{display:none}.project-state,.top-right>.avatar-stack,.top-right>.divider{display:none}.tabs{gap:16px}.topbar{padding:0 10px}.top-right .icon-btn{width:25px}.project-switch{font-size:13px}.toolbar-right{gap:1px}.inbox-view{padding:22px}.inbox-summary{gap:12px;flex-wrap:wrap}}
@media(max-width:999px){.application-shell,.application-shell.sidebar-closed{--rail-width:56px;grid-template-columns:56px 0 minmax(0,1fr)}.app-rail{padding:7px 3px}.rail-link{width:48px;min-height:56px}.rail-link>span:not(.avatar){font-size:9px}.project-sidebar{position:fixed;left:56px;top:44px;bottom:0;width:284px;z-index:20;box-shadow:12px 0 30px #0002}.sidebar-closed .project-sidebar{display:none}.workspace-search{min-width:0}.workspace-search kbd{display:none}.local-indicator{display:none}}
@media(max-width:600px){.workspace-bar{gap:5px;padding:0 8px}.workspace-search{padding:6px}.workspace-search>span,.workspace-divider{display:none}.workspace-brand{font-size:12px}.workspace-brand>.icon{margin-left:0}.workspace-bar-right{gap:0}.sidebar-heading{height:53px}.project-area .project-switch{max-width:60%;font-size:12px}.project-area .topbar{gap:3px}.top-right .icon-btn{width:24px}.top-right>.icon-btn:last-child{display:none}.search-result{flex-wrap:wrap}.search-result>span{width:100%;padding-left:25px}.inbox-view{padding:18px}.inbox-view .view-heading{flex-wrap:wrap}.inbox-summary{gap:12px}.workspace-task-table{min-width:650px}}
@media print{.application-shell,.application-shell.sidebar-closed{display:block;height:auto}.workspace-bar,.app-rail,.project-sidebar,.sidebar-toggle,.scope-strip{display:none!important}.project-area{display:block;height:auto;overflow:visible;container-type:normal}.project-area .workspace{height:auto;overflow:visible}}

/* The wider status column keeps labels readable alongside the timeline. */
.table-head,.table-row{grid-template-columns:34px minmax(150px,1fr) 94px 148px 76px 28px}

/* ClickUp connection */
.ai-badge{display:inline-flex;align-items:center;gap:5px;width:fit-content;max-width:100%;font-size:10px;line-height:1.5;padding:4px 8px;border:1px solid var(--line-strong);border-radius:5px;color:var(--muted);text-decoration:none}.ai-badge .icon{width:13px;height:13px}.workspace-task-table .ai-badge{display:flex;margin-top:6px}.ai-running,.ai-submitting{color:#b58ed6;border-color:#9871b966;background:#9871b912}.ai-review{color:var(--text)}.ai-badge.ai-review{color:#b99554;border-color:#ba985366;background:#ba985312}.ai-approved{color:var(--accent);border-color:var(--accent)}.ai-task-heading h3{font-size:19px;line-height:1.5;margin:8px 0}.ai-task-heading{margin-bottom:22px}.ai-copy{font-size:13px;line-height:1.8}.ai-context,.ai-history details,.ai-preview{border:1px solid var(--line);border-radius:6px;padding:13px;margin:15px 0;font-size:12px;line-height:1.7}.ai-context p{white-space:pre-wrap;overflow-wrap:anywhere}.ai-context summary,.ai-history summary,.ai-preview summary{cursor:pointer;color:var(--muted)}.ai-delivery{padding:22px 0;border-bottom:1px solid var(--line);margin-bottom:20px}.ai-delivery-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.ai-result{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.85;background:var(--surface);border:1px solid var(--line);border-radius:7px;padding:20px;margin:15px 0;max-height:55vh;overflow:auto;user-select:text}.ai-actions{display:flex;flex-wrap:wrap;gap:9px;margin:12px 0}.ai-review:not(.ai-badge){padding:16px;background:var(--accent-soft);border-radius:6px;margin-top:20px}.ai-review p{font-size:12px;line-height:1.7;margin:0 0 14px}.ai-launch{padding:4px 0 20px}.ai-launch h3,.ai-history h3{font-size:14px;font-weight:550;margin:8px 0 18px}.ai-launch .field{margin-bottom:15px}.ai-launch select,.ai-launch textarea{width:100%}.ai-launch .field-help{line-height:1.8;margin-bottom:17px}#ai-work .primary:disabled{opacity:.45;cursor:not-allowed}.ai-task-summary{margin:12px 0}.connection-mark>.icon{width:38px;height:38px}.notice .tool{display:inline-flex;color:var(--accent)}
[hidden]{display:none!important}.connection-intro{display:flex;align-items:center;gap:18px;margin:5px 0 24px}.connection-intro h3{font-size:18px;margin:0 0 8px}.connection-intro p{color:var(--muted);line-height:1.7;margin:0}.connection-mark{font-size:42px;color:var(--accent);width:48px;text-align:center}.connection-help{font-size:12px;line-height:1.8;margin:18px 0;color:var(--muted)}.connection-help summary{cursor:pointer;color:var(--text)}.connection-help a{color:var(--accent)}.connection-account{display:flex;gap:9px;align-items:center;padding:12px;background:var(--accent-soft);border-radius:7px;margin-bottom:20px;flex-wrap:wrap}.connection-account .tool{margin-left:auto}.connection-account .saved-dot{flex-shrink:0}.connection-space-heading{display:flex;align-items:center;justify-content:space-between;margin:20px 0 10px}.connection-space-heading h3{margin:0;font-size:13px}.connection-spaces{border:1px solid var(--line);border-radius:7px;max-height:280px;overflow:auto}.connection-space{display:flex;gap:12px;align-items:center;padding:13px;border-bottom:1px solid var(--line);cursor:pointer}.connection-space:last-child{border:0}.connection-space:hover{background:var(--hover)}.connection-space .icon{color:var(--muted)}.connection-loading{text-align:center;padding:32px 12px}.connection-loading>.icon{width:32px;height:32px;color:var(--accent)}.connection-loading p{line-height:1.7}.connection-projects{max-height:195px;overflow:auto;margin:16px 0}.connection-projects>div{display:flex;align-items:center;gap:10px;padding:11px 0;border-bottom:1px solid var(--line)}.connection-projects>div>span{margin-left:auto;color:var(--muted);font-size:12px}#cu-message{margin-top:15px}#cu-screen .notice{margin-bottom:0}a.primary{text-decoration:none;display:inline-flex;align-items:center}

/* Shared statuses and per-project exceptions. */
[hidden]{display:none!important}
#local-status-fields{border:0;padding:0;margin:0;min-width:0}
#local-status-fields:disabled{opacity:.6}
.status-scope-card,.common-status-intro{padding:16px;border:1px solid var(--line);border-radius:8px;background:var(--surface);margin:12px 0 20px}
.status-scope-card p,.common-status-intro p{font-size:13px;line-height:1.6;color:var(--muted);margin:8px 0 14px}
.status-scope-card .flex{flex-wrap:wrap;gap:8px}
.common-status-intro h3{margin:0}
.common-status-intro p{margin-bottom:0}
.common-projects{display:flex;flex-wrap:wrap;gap:6px;margin:16px 0}
.common-projects span{font-size:12px;padding:5px 9px;background:var(--hover);border:1px solid var(--line);border-radius:5px}
.common-map-row,.common-map-heading{display:grid;grid-template-columns:minmax(0,1fr) minmax(160px,1fr);gap:18px;align-items:center;padding:14px 0;border-bottom:1px solid var(--line)}
.common-map-heading{font-size:12px;color:var(--muted)}
.common-map-row small{display:block;margin-top:8px;font-size:11px;color:var(--muted)}
.common-map-row select{width:100%}
.common-error{color:var(--danger,#d85b64);font-size:13px;line-height:1.5}
.common-error:empty{display:none}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:600px){.common-map-row,.common-map-heading{gap:10px;grid-template-columns:minmax(0,1fr) minmax(130px,1fr)}}

/* Fases: un contenedor y un orden compartidos entre navegación, Timeline y List. */
.side-section-row{display:flex;align-items:center;position:relative;min-width:0;border-radius:5px}
.side-section-row .side-branch{flex:1;min-width:0;padding-left:0}
.side-section-row .branch-line{display:none}
.section-menu-button{flex-shrink:0;width:23px;height:30px;color:var(--muted);padding:2px;opacity:.4}
.side-section-row:hover .section-menu-button,.section-menu-button:focus-visible{opacity:1}
.section-row{background:var(--shade);border-top:1px solid var(--line-strong);border-bottom:1px solid var(--line-strong)}
.table-row.section-table{grid-template-columns:34px minmax(0,1fr);background:var(--shade)}
.section-row:hover .section-table{background:var(--shade)}
.section-heading{display:flex;align-items:center;gap:6px;min-width:0;width:100%;height:100%;padding:0 8px 0 3px}
.section-toggle{display:flex;align-items:center;gap:8px;min-width:0;padding:5px 2px;color:var(--text);text-align:left}
.section-toggle strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:650}
.section-toggle svg{width:14px;height:14px;flex-shrink:0;color:var(--accent)}
.section-count{font-size:10px;color:var(--muted);white-space:nowrap;flex-shrink:0;border:1px solid var(--line-strong);border-radius:4px;padding:3px 5px}
.section-actions{display:flex;margin-left:auto;flex-shrink:0}
.section-actions .icon-btn{width:25px}
.section-timeline{background:var(--shade)}
.phase-range{position:absolute;top:calc(var(--row)/2 - 4px);height:8px;border:2px solid var(--accent);border-bottom:0;border-radius:2px 2px 0 0;opacity:.8}
.section-list-row td{padding:0!important;background:var(--shade);border-top:1px solid var(--line-strong);border-bottom:1px solid var(--line-strong);height:var(--row)}
.section-list-row .section-heading{padding:0 12px 0 0}

.list-tree-toggle{padding:0 3px;vertical-align:middle;color:var(--muted)}
.list-tree-toggle .icon{width:13px;height:13px}
.phase-drop-before{box-shadow:inset 0 3px var(--accent)!important}
.phase-drop-after{box-shadow:inset 0 -3px var(--accent)!important}
.phase-drop-before .section-table,.phase-drop-after .section-table{background:var(--accent-soft)!important}
.dragging-phase{opacity:.35}

/* Orden manual de tareas y sus subtareas. */
.task-index{font-size:10px;min-width:2.5ch;flex-shrink:0;color:var(--muted);font-variant-numeric:tabular-nums;text-align:right}
.task-drop-before>.table-row,.task-drop-before>td{box-shadow:inset 0 3px var(--accent)!important}
.task-drop-after>.table-row,.task-drop-after>td{box-shadow:inset 0 -3px var(--accent)!important}
.task-drop-phase,.task-drop-phase>.section-table,.task-drop-phase>td{background:var(--accent-soft)!important;outline:2px solid var(--accent);outline-offset:-2px}
.dragging-task{opacity:.45}
.task-is-dragging,.task-is-dragging *{cursor:grabbing!important;user-select:none!important}
.task-drag-hint{position:fixed;z-index:2000;bottom:42px;left:50%;transform:translateX(-50%);max-width:min(750px,90vw);padding:12px 18px;background:var(--surface);color:var(--text);border:1px solid var(--accent);border-radius:8px;box-shadow:var(--shadow);font-size:13px;pointer-events:none}
.list-task-name{display:flex;align-items:center;gap:4px;min-width:0}
.list-task-name .name-text{min-width:0;overflow-wrap:anywhere}

/* Selección múltiple, compartida entre Timeline y List. */
.task-select{width:14px!important;height:14px!important;flex-shrink:0;margin:0 2px 0 0;accent-color:var(--accent);cursor:pointer}
.task-select:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.task-selection-cell .task-select{margin:0;opacity:0}
.task-selection-cell:hover .task-select,.task-selection-cell .task-select:checked,.task-selection-cell .task-select:focus-visible{opacity:1}
@media(hover:none),(pointer:coarse){.task-selection-cell .task-select{opacity:1}}
.data-table .selected-row>td{background:var(--accent-soft)}
.task-selection-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-shrink:0;padding:10px 16px;border-bottom:1px solid var(--line-strong);background:var(--accent-soft);font-size:12px}
.task-selection-bar>div{display:flex;align-items:center;gap:14px;flex-wrap:wrap;min-width:0}
.task-selection-bar span{color:var(--muted);line-height:1.5}
.task-selection-bar .tool{flex-shrink:0}
@media(max-width:700px){.task-selection-bar{gap:8px;padding:8px}.task-selection-bar>div{gap:3px}}

/* El nombre es la zona de arrastre; los demás controles mantienen su función. */
[data-section-drag],[data-task-drag]{cursor:grab!important;touch-action:none;user-select:none;-webkit-user-select:none}
[data-section-drag]:active,[data-task-drag]:active{cursor:grabbing!important}
.task-name .name-text{flex:1;min-width:0;height:100%;padding:0;text-align:left;border-radius:0;font-size:inherit;background:none}
.list-task-name .name-text{flex:1;padding:5px 2px;text-align:left;font-size:inherit;background:none}
.task-name .name-text:hover,.list-task-name .name-text:hover{color:var(--accent)}
.phase-is-dragging,.phase-is-dragging *{cursor:grabbing!important;user-select:none!important}

/* Nombres destacados y un gris uniforme para las tareas completadas. */
:root{--completed-text:#686f75}
:root[data-theme=dark]{--completed-text:#7c848a}
.task-name .name-text,.list-task-name .name-text,.workspace-task-name,.board-card h3,.bar-caption .caption-name,.milestone-mark .bar-caption{font-weight:700}
.is-done .name-text,.is-done .name-text:hover,.board-card.is-done h3,.is-done .bar-caption,.is-done .bar-caption .caption-name,.is-done .bar-caption .dates{color:var(--completed-text)}
/* Las barras y los hitos conservan el color del estado, también al completarse. */
.is-done .bar{background:var(--bar)}
.is-done .milestone-mark::before{opacity:1}

/* Separadores ajustables en las cabeceras de Timeline y List. */
.resizable-column{position:relative}
.column-resizer{position:absolute;right:-4px;top:0;bottom:0;width:9px;z-index:25;cursor:col-resize;touch-action:none;user-select:none}
.column-resizer::after{content:'';position:absolute;top:0;bottom:0;left:4px;width:2px;background:var(--accent);opacity:0;pointer-events:none}
.column-resizer:hover::after,.column-resizer:focus-visible::after,.column-resizer.is-resizing::after{opacity:1}
.column-resizer:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.column-resizer.is-resizing::after{bottom:auto;height:calc(100dvh - 180px)}
.column-is-resizing,.column-is-resizing *{cursor:col-resize!important;user-select:none!important}
.gantt-grid.columns-sized .table-head,.gantt-grid.columns-sized .table-row:not(.section-table){grid-template-columns:var(--table-columns)}
.gantt-grid.columns-sized .section-table{grid-template-columns:var(--selection-width) minmax(0,1fr)}
.gantt-grid.table-overflows .table-head,.gantt-grid.table-overflows .table-row,.gantt-grid.table-overflows .add-row{position:relative;left:auto}
.task-list-table.columns-sized{table-layout:fixed;max-width:none}
.task-list-table.columns-sized td{overflow:hidden}
.task-list-table.columns-sized th{text-overflow:ellipsis;white-space:nowrap}
@media print{.column-resizer{display:none}}

/* Una entrada para añadir tareas al final de cada fase desplegada. */
.section-add-row .section-table{background:var(--bg)}
.section-add-cell{padding-left:17px}
.section-add-button{display:inline-flex;align-items:center;gap:7px;padding:5px 0;color:var(--muted);font-size:11px;text-align:left}
.section-add-button:hover{color:var(--accent);background:none}
.section-add-button .icon{width:15px;height:15px}
.section-add-list-row td{height:var(--row);padding:0 33px;background:var(--bg)}
.section-add-list-row .section-add-button{font-size:12px}
.add-row{gap:18px}
@media print{.section-add-row .section-add-button,.section-add-list-row .section-add-button{visibility:hidden}}

/* Identidad visual de cada proyecto. */
.side-project-identity{display:flex;align-items:center;flex:1;min-width:0;gap:3px;padding-left:var(--project-icon-inset);border-radius:5px;color:var(--muted)}
.side-project-identity .project-tile{width:var(--project-icon-size);height:var(--project-icon-size)}
.side-project-identity.active{background:var(--side-active);color:var(--text)}
.side-project-identity.active .side-project-name{color:var(--text)}
.project-icon-button{display:grid;place-items:center;flex-shrink:0;padding:0;border-radius:6px}
.project-icon-button:hover{outline:2px solid var(--accent);outline-offset:2px;background:none}
.project-icon-button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.project-tile{overflow:hidden;line-height:1}
.project-tile>.icon{width:15px;height:15px}
.project-tile.tile-emoji{font-size:16px}
.project-tile img{display:block;width:100%;height:100%;object-fit:contain}
.header-project-icon{margin-right:2px}
.project-card-title{display:flex;align-items:center;gap:10px}
.project-card-title .project-tile{width:30px;height:30px;font-size:18px}
.project-card-title .project-tile>.icon{width:20px;height:20px}
.project-icon-preview{display:flex;gap:16px;align-items:center;margin-bottom:22px}
.project-icon-preview strong{font-size:16px}
.project-icon-preview p{font-size:12px;color:var(--muted);margin:7px 0 0}
.project-icon-preview .project-tile{width:64px;height:64px;border-radius:15px;font-size:34px}
.project-icon-preview .project-tile>.icon{width:36px;height:36px}
.project-icon-preview .tile-emoji{font-size:38px}
.project-icon-tabs{display:flex;border-bottom:1px solid var(--line);gap:20px;margin-bottom:17px}
.project-icon-tabs button{border-radius:0;padding:9px 0;color:var(--muted);font-size:12px;border-bottom:2px solid transparent}
.project-icon-tabs button[aria-pressed=true]{color:var(--accent);border-bottom-color:var(--accent)}
.project-icon-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:8px}
.project-icon-grid button{display:grid;place-items:center;aspect-ratio:1;border:1px solid var(--line);background:var(--surface);border-radius:8px;font-size:24px;min-width:0}
.project-icon-grid .icon{width:24px;height:24px}
.project-icon-grid button[aria-pressed=true]{border-color:var(--accent);background:var(--accent-soft);box-shadow:0 0 0 1px var(--accent)}
.icon-color-field{margin-top:21px;margin-bottom:13px}
.project-icon-colors{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.project-icon-colors button{background:var(--swatch);width:27px;height:27px;border-radius:50%;border:2px solid var(--bg)}
.project-icon-colors button[aria-pressed=true]{outline:2px solid var(--accent);outline-offset:1px}
.project-icon-colors .icon-background-transparent{display:inline-flex;align-items:center;gap:7px;width:auto;height:32px;padding:0 9px;margin-right:4px;border:1px solid var(--line-strong);border-radius:6px;background:var(--surface);color:var(--text);font-size:12px}
.transparency-swatch{display:inline-block;flex-shrink:0;width:16px;height:16px;border:1px solid var(--muted);border-radius:3px;background:repeating-conic-gradient(var(--muted) 0% 25%,var(--surface) 0% 50%) 50% / 8px 8px}
.project-icon-colors input[type=color]{width:32px;height:32px;padding:2px;cursor:pointer}
.custom-emoji-field{margin-top:18px}
.custom-emoji-field input{font-size:21px}
.project-image-upload{display:flex;position:relative;flex-direction:column;align-items:center;gap:10px;padding:28px 14px;border:1px dashed var(--line-strong);border-radius:9px;cursor:pointer;background:var(--surface)}
.project-image-upload:hover,.project-image-upload:focus-within{border-color:var(--accent);background:var(--accent-soft)}
.project-image-upload>.icon{width:25px;height:25px;color:var(--accent)}
.project-image-upload strong{font-size:13px}
.project-image-upload span{font-size:11px;color:var(--muted);text-align:center}
.project-image-upload input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
@media(max-width:480px){.project-icon-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.project-icon-grid button{aspect-ratio:auto;height:42px}}

/* Las fases comparten icono y color entre el lateral y sus cabeceras. */
.phase-tile-default{display:grid;place-items:center;width:21px;height:21px;color:var(--muted)}
.phase-tile-default>.icon{width:16px;height:16px}
.side-section-row>.phase-icon-button{margin-right:6px;color:var(--muted)}
.side-section-row:has(>.side-branch:is(.active,:hover))>.phase-icon-button{color:var(--text)}
.side-section-row .side-branch{padding-left:2px}
.section-expander{display:grid;place-items:center;flex-shrink:0;width:16px;height:26px;padding:0;color:var(--muted)}
.section-expander .section-caret{display:block;width:14px;height:14px;fill:currentColor;stroke:none;transform-origin:center}
.section-expander[aria-expanded="false"] .section-caret{transform:rotate(-90deg)}
.section-heading .phase-icon-button{margin-right:1px}

/* Guías discretas: las fases conservan un límite algo más visible. */
.gantt-grid{--grid-line:color-mix(in srgb,var(--line) 55%,transparent);--grid-guide:color-mix(in srgb,var(--line) 35%,transparent);--grid-boundary:color-mix(in srgb,var(--line-strong) 60%,transparent)}
.gantt-grid .gantt-row,.gantt-grid .add-row{border-bottom-color:var(--grid-line)}
.gantt-grid .table-head>div,.gantt-grid .table-row>div{border-right-color:var(--grid-line)}
.gantt-grid .table-head>div:last-child,.gantt-grid .table-row>div:last-child{border-right:0}
.gantt-grid .table-head,.gantt-grid .table-row{border-right-color:var(--grid-boundary)}
.gantt-grid .gantt-header{border-bottom-color:var(--grid-boundary)}
.gantt-grid .section-row{border-top-color:var(--grid-boundary);border-bottom-color:var(--grid-boundary)}
.gantt-grid .timeline-cells{background-image:linear-gradient(to right,var(--grid-guide) 1px,transparent 1px)}
.gantt-grid .weekend-bg{border-left-color:var(--grid-guide);border-right-color:var(--grid-guide)}
.gantt-grid .day-cell,.gantt-grid .month{border-right-color:var(--grid-line)}
.gantt-grid .months{border-bottom-color:var(--grid-line)}

/* Phase containers keep one continuous background across working days and weekends. */
.gantt-row.section-row .weekend-bg{display:none}

/* The open sidebar already has its own collapse control. */
.application-shell:not(.sidebar-closed)>.project-area>.topbar>[data-action="nav-collapse"]{display:none}

/* La columna de selección se integra con el nombre de la tarea. */
.gantt-grid .table-head>div:first-child,.gantt-grid .table-row>div:first-child{border-right-color:transparent}

/* Personas: silueta rellena en la navegación principal. */
.app-rail .rail-link[data-target="teams"]>.icon{fill:currentColor;stroke:none}

/* Agentes: flecha rellena en la navegación principal. */
.app-rail .rail-link[data-target="agent-control"]>.icon{fill:currentColor;stroke:none}

/* La flecha de sección ocupa la columna de selección de Timeline. */
.gantt-grid .section-row .section-table>.row-num{display:none}
.gantt-grid .section-row .section-heading{grid-column:1/-1;padding-left:0}
.gantt-grid .section-row .section-expander,.section-list-row .section-expander{width:var(--selection-width,34px);margin-right:-6px}

/* Contextual navigation keeps the same layout and typography in every theme. */
.side-context-group{margin-top:25px}.side-context-group .side-section-label{margin-bottom:7px}.side-context-empty{color:var(--muted);font-size:11px;line-height:1.6;margin:8px 9px 12px}.side-context-summary{display:flex;flex-direction:column;gap:6px;margin:10px 9px 14px;padding:12px;border:1px solid var(--line);border-radius:8px;font-size:11px;color:var(--muted)}.side-context-summary strong{color:var(--text);font-size:12px;overflow-wrap:anywhere}.project-sidebar a.side-link{text-decoration:none}.project-sidebar .sidebar-heading>strong{white-space:nowrap}.side-context-group .side-project:first-of-type{margin-top:0}

.bcall-project{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:12px}.bcall-project select{max-width:240px}.bcall-view>.meetings-view{height:auto;padding:0;overflow:visible}

/* List ocupa el panel completo; la cabecera conserva su margen de lectura. */
.task-list-view{padding:25px 0 0}.task-list-view>.view-heading{padding:0 28px}.task-list-view>.table-wrapper{width:100%}.task-list-view>.tool{margin-left:28px}

/* Moving a project also moves its expanded section tree. */
.side-project-name[data-project-drag]{touch-action:none}
.project-is-dragging,.project-is-dragging *{cursor:grabbing!important;user-select:none!important}
.dragging-project{opacity:.45}
.project-drop-before{box-shadow:0 -2px var(--accent)}
.project-drop-after{box-shadow:0 2px var(--accent)}
