/* Projects share the workspace's warm, light surfaces and restrained green accent. */
.projects-active main{max-width:1600px}
main:has(#activities-page:not([hidden]) #activities-schedule:not([hidden])),
main:has(#projects-page:not([hidden]) #projects-schedule:not([hidden])){max-width:none;width:100%}
.project-tabs svg{width:16px;height:16px}.project-tabs{gap:28px}
#projects-list{margin-bottom:30px}#projects-list>.text-button{display:flex;margin:0 auto 30px}
.project-list-head,.project-list-row{display:grid;grid-template-columns:minmax(0,1fr) 150px 170px 18px;gap:24px;align-items:center;text-align:left}
.project-list-head{padding:14px 0;color:var(--muted);font-size:10px;border-bottom:1px solid var(--line)}
.project-list-row{width:100%;padding:22px 0;border-bottom:1px solid var(--line);transition:background .18s}
.project-list-row:hover{background:#eef1e780}.project-list-row>svg{width:16px;color:#99a393}
.project-list-name{display:flex;align-items:center;gap:14px;min-width:0}.project-list-name>svg{width:24px;height:24px;color:var(--green);flex-shrink:0}.project-list-name>span{min-width:0}
.project-list-name strong{font-size:14px;font-weight:650;display:block;overflow-wrap:anywhere}.project-list-name small{font-size:11px;color:var(--muted);display:flex;flex-wrap:wrap;gap:8px;margin-top:7px}.project-list-person{font-size:12px;overflow-wrap:anywhere}
.project-progress{display:block}.project-progress>span:first-child{display:flex;justify-content:space-between;font-size:10px;color:var(--muted);margin-bottom:8px}.project-progress b{color:var(--green);font-weight:650}.project-progress-track{display:block;height:4px;border-radius:3px;background:#e4e9df;overflow:hidden}.project-progress-track i{height:100%;display:block;background:#5d8470;transition:width .25s}
.project-empty{padding:38px 12px;text-align:center;color:var(--muted);font-size:12px;line-height:1.8}.project-empty strong{display:block;color:#697366;font-weight:600}.project-empty p{margin:5px 0 0}#projects-list>.project-empty{padding:85px 12px 20px}
.project-dialog{padding:0;border:1px solid var(--line);border-radius:14px;width:calc(100% - 64px);max-width:1440px;height:92dvh;max-height:100dvh;background:var(--surface);color:var(--ink);overflow:hidden;box-shadow:0 24px 90px #1d33291c}
.project-dialog[open]{display:flex;flex-direction:column;animation:project-open .2s ease-out}
.project-dialog::backdrop,.project-link-dialog::backdrop,.project-update-dialog::backdrop{background:#20332c55;backdrop-filter:blur(3px)}
.project-dialog-header{display:flex;justify-content:space-between;align-items:center;padding:19px 28px;gap:20px;border-bottom:1px solid var(--line);background:var(--surface);flex-shrink:0}
.project-dialog-header>div:first-child{min-width:0}.project-dialog-header h2{font-size:15px;font-weight:650;margin:5px 0 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-header-actions{display:flex;gap:16px;align-items:center;flex-shrink:0}.project-header-actions .secondary-button{font-size:11px;min-height:37px;padding:0 12px}.project-header-actions [aria-pressed=true]{background:var(--green-light);color:var(--green)}
.project-layout{display:grid;grid-template-columns:300px minmax(0,1fr);flex:1;min-height:0;overflow:hidden}
.project-sidebar{background:#f5f6f0;border-right:1px solid var(--line);padding:28px;overflow:auto}
.project-read-fields,.project-fields{display:grid;grid-template-columns:1fr 1fr;gap:24px 16px;margin:0;padding:0;border:0;min-width:0}.project-read-fields .wide,.project-fields .wide{grid-column:1/-1}.project-read-fields dt,.project-field label{display:block;font-size:9px;line-height:1.5;font-weight:750;text-transform:uppercase;letter-spacing:1px;color:#7c8575;margin-bottom:8px}.project-read-fields dd{margin:0;font-size:12px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}.project-read-fields .project-read-name{font-size:21px;line-height:1.4;font-weight:650;letter-spacing:-.5px}
.project-field{min-width:0}.project-fields{gap:19px 12px}.project-fields input,.project-fields select,.project-fields textarea{width:100%;border:1px solid #d8ddd1;border-radius:6px;background:var(--surface);padding:10px;color:var(--ink);font-size:12px;min-width:0;min-height:40px}.project-fields textarea{resize:vertical;line-height:1.7}.project-field input[type=date]{font-size:11px;padding:9px 5px}#project-save{width:100%;margin-top:24px;min-height:43px;font-size:11px}
.project-sections{overflow:auto;padding:8px 32px 40px;scrollbar-gutter:stable}.project-section{padding:27px 0;border-bottom:1px solid var(--line);animation:project-content-in .2s ease-out}.project-section:last-child{border:0}.project-section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}.project-section h3{font-size:19px;letter-spacing:-.5px;font-weight:650;margin:5px 0 0;display:flex;align-items:center;gap:10px}.project-section-count{font-size:11px;font-weight:500;color:var(--muted);letter-spacing:0}.project-section-actions{display:flex;align-items:center;gap:6px}.project-section-actions .icon-button{width:34px;height:34px;color:var(--muted)}.project-add{border-radius:7px;background:var(--green);color:white;width:32px;height:32px;display:flex;align-items:center;justify-content:center;transition:background .2s,transform .2s}.project-add:hover{background:#163d30;transform:translateY(-1px)}.project-add svg{width:18px;height:18px}.project-section .project-empty{background:#f8f9f4;border-radius:7px;padding:28px 18px}
.project-linked-row{display:flex;align-items:center;gap:4px;border:1px solid var(--line);border-radius:7px;margin-top:8px;transition:background .15s}.project-linked-row:hover{background:#f7f8f2}.project-linked-open{display:flex;align-items:center;gap:12px;min-width:0;flex:1;text-align:left;padding:13px 10px 13px 14px}.project-linked-open>svg{width:14px;color:#94a18d;flex-shrink:0}.project-linked-copy{min-width:0;flex:1}.project-linked-copy strong{font-size:12px;line-height:1.6;display:block;overflow-wrap:anywhere}.project-linked-copy small{font-size:10px;color:var(--muted);display:block;margin-top:3px}.project-item-icon{color:#89967f;display:flex}.project-item-icon svg{width:17px;height:17px}.project-item-icon.done{color:var(--green)}.project-linked-person{font-size:10px;color:var(--muted);text-align:right;max-width:140px;overflow-wrap:anywhere}.project-unlink{width:30px;height:34px;margin-right:7px;color:#9aa390}.project-unlink svg{width:13px;height:13px}.project-unlink:hover{color:var(--danger)}
.project-show-all{display:flex;align-items:center;gap:5px;font-size:11px;color:var(--green);padding:12px 0 0}.project-show-all svg{width:13px;height:13px}.project-coming{font-size:10px;color:var(--muted);background:#eeefe8;border-radius:5px;padding:4px 8px}.project-meetings p{font-size:11px;color:var(--muted);margin:0}.project-meetings .project-section-heading{margin-bottom:10px}
.project-update{display:grid;grid-template-columns:90px minmax(0,1fr);gap:20px;padding:18px 0;border-top:1px solid #e8eae2}.project-update-date{font-size:11px}.project-update-date>span{display:block;color:var(--muted);font-size:8px;letter-spacing:1px;margin-bottom:7px}.project-update-date time{display:block;font-variant-numeric:tabular-nums}.project-update-date button{display:block;color:var(--green);padding:8px 0;font-size:10px}
.project-rich-body,.project-update-dialog .tiptap{font-size:12px;line-height:1.85;overflow-wrap:anywhere;white-space:pre-wrap}.project-rich-body p{margin:0 0 10px}.project-rich-body>:last-child{margin-bottom:0}.project-rich-body ul,.project-rich-body ol,.project-update-dialog ul,.project-update-dialog ol{padding-left:22px;margin:6px 0 10px}.project-rich-body li p{margin:0}.project-rich-body strong{font-weight:800}.project-rich-body hr{display:block;border:0;border-top:1px solid #dedede;margin:20px 0;width:100%;height:0}.project-rich-body img{max-width:100%;height:auto;border-radius:5px}
.project-link-dialog{width:calc(100% - 32px);max-width:530px;max-height:85dvh;overflow:auto}.project-link-dialog h2,.project-update-dialog h2{font-family:var(--serif);font-weight:400;font-size:25px;margin:0}.project-link-dialog .section-heading{margin-bottom:22px}.project-link-option{display:flex;align-items:center;justify-content:space-between;text-align:left;gap:12px;width:100%;padding:17px 0;border-bottom:1px solid var(--line)}.project-link-option strong{display:block;font-size:12px;overflow-wrap:anywhere}.project-link-option small{display:block;font-size:10px;color:var(--muted);margin-top:5px}.project-link-option svg{width:16px;height:16px;color:var(--green)}
.project-update-dialog{width:calc(100% - 32px);max-width:760px;max-height:90dvh;overflow:auto}.project-update-dialog input[type=date]{display:block;width:170px;padding:10px;border:1px solid var(--line);border-radius:6px;background:var(--surface);font-size:13px;color:var(--ink);margin-bottom:20px}.project-update-dialog .tiptap{min-height:200px;padding:14px 0;font-size:14px;outline:0}.project-update-dialog .tiptap p{margin:0 0 10px}.project-update-dialog .description-label{display:none}.project-update-dialog .description-toolbar{z-index:3}.project-update-dialog .description-toolbar button{min-width:35px}.project-update-dialog .description-shell{border-radius:0}.project-update-dialog .description-image img{max-width:100%;height:auto}
.schedule-tools{display:flex;flex-wrap:wrap;align-items:center;gap:14px;padding:3px 0 19px;font-size:10px;color:var(--muted)}.schedule-tools .secondary-button{font-size:10px;min-height:32px;padding:5px 10px}.schedule-tools label{display:flex;align-items:center;gap:9px}.schedule-tools input[type=range]{width:90px;accent-color:var(--green)}.schedule-goto{margin-left:auto}.schedule-tools input[type=date]{min-width:0;border:1px solid var(--line);padding:7px;border-radius:5px;background:var(--surface);color:var(--ink);font-size:11px}
.schedule-scroll{--name-width:320px;max-height:65dvh;min-height:260px;width:100%;overflow:auto;border:1px solid var(--line);border-radius:8px;background:var(--surface);position:relative;isolation:isolate}.schedule-grid{--weekend-background:linear-gradient(to right,transparent var(--weekdays-width),#eaf3fc var(--weekdays-width));width:calc(var(--name-width) + var(--timeline-width));min-width:100%;font-size:11px}.schedule-header,.schedule-row{display:flex;width:100%}.schedule-header{height:76px;position:sticky;top:0;z-index:4;background:#f5f7f0;border-bottom:1px solid var(--line)}.schedule-labels{position:sticky;left:0;width:var(--name-width);min-width:var(--name-width);display:flex;align-items:center;gap:8px;padding:0 12px;background:var(--surface);border-right:1px solid var(--line);z-index:2}.schedule-header .schedule-labels{background:#f5f7f0;justify-content:space-between;font-size:10px;font-weight:700;z-index:5}.schedule-header .schedule-labels span:last-child{font-weight:500;color:var(--muted)}.schedule-time-head{position:relative;width:var(--timeline-width);min-width:var(--timeline-width);overflow:hidden}.schedule-months,.schedule-days{position:relative;height:31px}.schedule-days{height:45px;background-image:var(--weekend-background);background-size:var(--week-width) 100%;background-position:var(--week-offset) 0}.schedule-days>span{flex-direction:column;gap:2px;line-height:1.2}.schedule-days small{font-size:clamp(6px,calc(var(--tick-width)*.32),9px)}.schedule-months{border-bottom:1px solid var(--line)}.schedule-months span,.schedule-days span{display:flex;align-items:center;justify-content:center;position:absolute;top:0;height:100%;border-right:1px solid #e5e8df;color:var(--muted);overflow:hidden;white-space:nowrap;font-size:9px}.schedule-months span{justify-content:flex-start;padding-left:12px;font-size:10px;font-weight:600;color:#67755d}.schedule-row{height:47px;border-bottom:1px solid #eceee6}.schedule-row:last-child{border-bottom:0}.schedule-row:hover .schedule-labels{background:#f2f5ed}.schedule-row.is-project .schedule-labels{background:#f8faf4}.schedule-toggle{display:flex;align-items:center;justify-content:center;width:24px;height:32px;flex-shrink:0;color:var(--green);padding:0}.schedule-toggle svg{width:13px;height:13px;transition:transform .18s}.schedule-toggle[aria-expanded=true] svg{transform:rotate(90deg)}.schedule-toggle:disabled{opacity:.3;cursor:default}.schedule-name{min-width:0;flex:1;text-align:left;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:9px 0}.is-project .schedule-name{font-weight:700}.schedule-person{width:74px;flex-shrink:0;text-align:right;color:var(--muted);font-size:10px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.schedule-branch{width:16px;height:16px;border-left:1px solid #d6dfd0;border-bottom:1px solid #d6dfd0;margin-left:14px;margin-top:-13px;flex-shrink:0}.schedule-track{position:relative;width:var(--timeline-width);min-width:var(--timeline-width);background:repeating-linear-gradient(to right,transparent 0,transparent calc(var(--tick-width) - 1px),#edf0e8 calc(var(--tick-width) - 1px),#edf0e8 var(--tick-width)),var(--weekend-background);background-size:auto,var(--week-width) 100%;background-position:0 0,var(--week-offset) 0}.schedule-bar{position:absolute;top:16px;height:15px;border-radius:3px;background:#acc1b3;border:1px solid #769786;min-width:3px;overflow:hidden;transition:filter .15s}.schedule-bar:hover{filter:brightness(.88)}.schedule-bar>.schedule-progress-fill{position:absolute;inset:0 auto 0 0;background:#3b705c}.schedule-bar.project-bar{height:9px;top:19px;border-radius:1px;background:var(--green);border:0;overflow:visible}.schedule-bar.project-bar:before,.schedule-bar.project-bar:after{content:'';position:absolute;top:-3px;width:2px;height:15px;background:var(--green)}.schedule-bar.project-bar:before{left:0}.schedule-bar.project-bar:after{right:0}.schedule-today-line{position:absolute;top:0;bottom:-1px;width:1px;background:#c7856c;pointer-events:none;z-index:1}.schedule-no-date{display:inline-block;margin:15px;color:#9ba28f;font-size:10px}.schedule-caption{font-size:10px;line-height:1.7;color:var(--muted);margin:14px 0}
@keyframes project-open{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}@keyframes project-content-in{from{opacity:.4;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:1100px){.project-list-head,.project-list-row{grid-template-columns:minmax(0,1fr) 100px 140px 16px;gap:16px}.project-layout{grid-template-columns:270px minmax(0,1fr)}.project-sidebar{padding:24px}.project-sections{padding:8px 24px 30px}.project-dialog{width:calc(100% - 32px)}.project-section h3{font-size:17px}}
@media(max-width:760px){.project-dialog{width:calc(100% - 16px);height:96dvh;border-radius:10px}.project-dialog-header{padding:16px;gap:10px}.project-dialog-header h2{font-size:13px}.project-header-actions{gap:4px}.project-header-actions .secondary-button{font-size:10px;padding:0 8px}.project-layout{display:block;overflow:auto}.project-sidebar{border-right:0;border-bottom:1px solid var(--line);padding:24px;overflow:visible}.project-read-fields,.project-fields{gap:18px 20px}.project-read-fields .project-read-name{font-size:22px}.project-sections{overflow:visible;padding:0 24px 24px}.project-section{padding:24px 0}.project-read-fields dd{font-size:12px}.project-linked-person{max-width:85px;font-size:9px}.project-section h3{font-size:17px}.project-list-head{display:none}.project-list-row{grid-template-columns:minmax(0,1fr) 16px;gap:15px;padding:20px 0}.project-list-name{grid-column:1;grid-row:1}.project-list-person{font-size:10px;padding-left:38px;grid-column:1;grid-row:2;margin-top:-9px}.project-progress{grid-column:1;width:160px;margin-left:38px}.project-list-row>svg{grid-column:2;grid-row:1/4}.schedule-scroll{--name-width:250px}.schedule-labels{padding:0 8px;gap:5px}.schedule-person{width:65px}.schedule-goto{margin-left:0}.schedule-tools{gap:12px 10px}.project-update{grid-template-columns:1fr;gap:10px}.project-update-date{display:flex;align-items:center;gap:12px}.project-update-date>span{margin:0}.project-update-date button{margin-left:auto}.project-update-dialog{padding:22px 18px}.project-field input[type=date],.project-fields input,.project-fields select,.project-fields textarea{font-size:16px}.project-fields{gap:16px 12px}.project-dialog .icon-button{flex-shrink:0}.project-linked-open{gap:8px;padding:12px 8px}.project-item-icon{display:none}.project-unlink{margin-right:4px}.project-linked-copy strong{font-size:11px}}
@media(prefers-reduced-motion:reduce){.project-dialog[open],.project-section{animation:none}.project-progress-track i,.project-add,.schedule-toggle svg{transition:none}}
@media(max-width:480px){.schedule-scroll{--name-width:210px}.schedule-person{width:54px}.schedule-toggle{width:18px}.schedule-header .schedule-labels{font-size:9px}.schedule-header .schedule-labels span:last-child{font-size:8px}.schedule-name{font-size:10px}.schedule-person{font-size:9px}}

/* The duplicate action belongs to the project header's left column. */
.project-sidebar{display:flex;flex-direction:column}.project-sidebar>dl,.project-sidebar>form{flex-shrink:0}
.project-sidebar-actions{margin-top:auto;padding-top:28px;flex-shrink:0}.project-duplicate-button{display:flex;align-items:center;justify-content:flex-start;gap:9px;min-height:42px;padding:8px 0;color:var(--green);font-size:11px;font-weight:650;text-align:left;border-radius:5px}.project-duplicate-button svg{width:16px;height:16px}.project-duplicate-button:hover{color:#16372d}
.project-duplicate-dialog{width:calc(100% - 32px);max-width:490px;max-height:90dvh;overflow:auto}.project-duplicate-dialog::backdrop{background:#20332c55;backdrop-filter:blur(3px)}.project-duplicate-dialog .section-heading{margin:0 0 12px;gap:12px}.project-duplicate-dialog h2{font-family:var(--serif);font-weight:400;font-size:27px;margin:0}.duplicate-intro{font-size:12px;line-height:1.8;color:var(--muted);margin:0 0 23px}
#project-duplicate-fields{border:0;padding:0;margin:0;min-width:0}#project-duplicate-name{width:100%;border:1px solid var(--line);border-radius:7px;padding:11px 12px;background:var(--surface);font-size:13px;color:var(--ink)}.duplicate-selection{margin:25px 0 0;padding:0;border:0;min-width:0}.duplicate-selection legend{font-size:10px;color:var(--muted);font-weight:700;margin-bottom:12px}.duplicate-selection input{accent-color:var(--green);width:17px;height:17px;flex-shrink:0;margin:0}.duplicate-select-all{display:flex;align-items:center;gap:11px;padding:12px;background:var(--green-light);border-radius:6px;font-size:12px;font-weight:650}.duplicate-option{display:flex;align-items:center;gap:11px;padding:18px 12px;border-bottom:1px solid var(--line);cursor:pointer}.duplicate-option>span{min-width:0;flex:1}.duplicate-option strong{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;font-weight:650}.duplicate-option small{display:block;font-size:10px;line-height:1.7;color:var(--muted);margin-top:5px}.duplicate-count{font-size:10px;font-weight:500;color:var(--muted);font-variant-numeric:tabular-nums}.duplicate-option.is-empty{opacity:.55;cursor:default}.duplicate-summary{font-size:10px;color:var(--muted);line-height:1.8;margin:16px 0 0}.project-duplicate-dialog .confirm-actions{margin-top:24px}.project-duplicate-dialog .primary-button{gap:8px}.project-duplicate-dialog .primary-button svg{width:16px;height:16px}
@media(max-width:760px){.project-sidebar-actions{margin-top:0;padding-top:20px}.project-duplicate-dialog{padding:24px 20px}#project-duplicate-name{font-size:16px}.project-duplicate-dialog .confirm-actions{gap:10px}.project-duplicate-dialog .primary-button{padding:0 14px}}

/* Activity date gestures keep the project summary bars derived from their tasks. */
.schedule-time-head,.schedule-track{
  -webkit-mask-image:linear-gradient(to right,rgba(0,0,0,.4) var(--schedule-past-width,0px),#000 var(--schedule-past-width,0px));
  mask-image:linear-gradient(to right,rgba(0,0,0,.4) var(--schedule-past-width,0px),#000 var(--schedule-past-width,0px));
}
.schedule-bar[data-schedule-task]{cursor:grab;touch-action:none;overflow:visible;user-select:none;-webkit-user-select:none}
.schedule-bar[data-schedule-task]::after{content:'';position:absolute;inset:-6px 0}
.schedule-bar>.schedule-progress-fill{border-radius:2px;pointer-events:none}
.schedule-resize{position:absolute;top:-6px;bottom:-6px;width:min(8px,25%);z-index:2;cursor:ew-resize;touch-action:none}
.schedule-resize::after{content:'';position:absolute;top:9px;bottom:9px;width:2px;left:calc(50% - 1px);border-radius:2px;background:#365e4d;opacity:.65}
.schedule-resize-start{left:0}.schedule-resize-end{right:0}
.schedule-bar[data-schedule-task]:focus-visible{outline:2px solid var(--green);outline-offset:4px}
.schedule-bar.is-dragging{cursor:grabbing;z-index:3;box-shadow:0 2px 7px #234d3c30;filter:brightness(.95)}
.schedule-bar.is-saving{opacity:.65;cursor:wait}
.is-schedule-editing .schedule-scroll{user-select:none;-webkit-user-select:none}
.schedule-drag-feedback{position:fixed;z-index:25;pointer-events:none;white-space:nowrap;background:#244e40;color:#fff;border-radius:5px;padding:6px 9px;font-size:11px;box-shadow:0 3px 10px #17362720}
/* Reordering uses a separate grip so date editing and row navigation stay distinct. */
.schedule-reorder-handle{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:16px;height:32px;padding:0;color:#82917e;cursor:grab;touch-action:none}
.schedule-reorder-handle svg{width:12px;height:18px;fill:currentColor}
.schedule-reorder-handle:hover{color:var(--green)}
.schedule-reorder-handle:focus-visible{outline:2px solid var(--green);outline-offset:1px;border-radius:3px}
.is-schedule-reordering .schedule-scroll{user-select:none;-webkit-user-select:none}
.schedule-row.is-reordering{opacity:.45}
.schedule-row.is-reordering .schedule-reorder-handle{cursor:grabbing}
.schedule-drop-before>div{box-shadow:inset 0 2px var(--green)}
.schedule-drop-after>div{box-shadow:inset 0 -2px var(--green)}
.schedule-reorder-ghost{position:fixed;z-index:25;max-width:min(280px,85vw);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;pointer-events:none;background:#244e40;color:white;border-radius:5px;padding:8px 12px;font-size:11px;box-shadow:0 3px 12px #17362730}

.schedule-order-tools{display:flex;align-items:center;gap:8px;flex-shrink:0}
.schedule-reorder-handle[hidden]{display:none}
#schedule-edit-order[aria-pressed=true]{background:var(--green);border-color:var(--green);color:#fff}

.schedule-add-task,.schedule-add-space{width:24px;min-width:24px;height:28px;flex-shrink:0}
.schedule-add-task{display:flex;align-items:center;justify-content:center;color:var(--green);border-radius:5px;padding:0}
.schedule-add-task svg{width:15px;height:15px}
.schedule-add-task:hover{background:var(--green-light)}
.schedule-add-task:focus-visible{outline:2px solid var(--green);outline-offset:1px}
.schedule-scroll.is-panning,.schedule-scroll.is-panning *{cursor:grabbing;user-select:none;-webkit-user-select:none}
.schedule-time-head{overflow:clip}
.schedule-months>span{overflow:clip;padding-left:0}
.schedule-month-label{position:sticky;left:var(--name-width);padding:0 12px;font-weight:600}
.schedule-no-date{position:sticky;left:calc(var(--name-width) + 15px)}
.project-sections,#project-connected-sections{min-width:0}
.project-schedule[hidden],#project-toggle-schedule[hidden]{display:none}
.project-schedule .schedule-scroll{min-height:180px;max-height:45dvh}
.project-schedule .schedule-caption{margin-bottom:0}
@media(max-width:760px){.project-dialog-header{flex-wrap:wrap}.project-dialog-header>div:first-child{flex:1 1 100%}.project-header-actions{margin-left:auto}.project-schedule .schedule-scroll{--name-width:180px}.project-schedule .schedule-person{display:none}.project-schedule .schedule-header .schedule-labels span:last-child{display:none}}

#projects-page .page-heading{flex-wrap:wrap}
.project-heading-actions{display:flex;align-items:center;gap:10px;margin-left:auto}
#projects-page .project-heading-actions .new-button{display:inline-flex;position:static;margin:0}
#schedule-export-pdf{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 14px;font-size:11px;white-space:nowrap}
#schedule-export-pdf[hidden]{display:none}
#schedule-export-pdf svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:679px){.project-heading-actions{margin:0}.project-heading-actions .new-button{height:44px;min-height:44px;width:44px}#schedule-export-pdf{min-height:44px}}

/* Subactivities retain the calendar's existing name, owner and date columns. */
#projects-fullscreen{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 14px;font-size:11px}
#projects-fullscreen svg{width:17px;height:17px;flex-shrink:0}
.schedule-fullscreen[data-auth=ready]{overflow:hidden}
.schedule-fullscreen .app-shell{height:100dvh;min-height:0}
.schedule-fullscreen .topbar,.schedule-fullscreen .bottom-nav,.schedule-fullscreen .quick-add{display:none}
.schedule-fullscreen main{display:flex;flex-direction:column;max-width:none;width:100%;height:100%;padding:0 24px 16px}
.schedule-fullscreen #connection-banner{flex-shrink:0}
.schedule-fullscreen #projects-page{display:flex;flex-direction:column;flex:1;min-height:0;animation:none}
.schedule-fullscreen #projects-page .page-heading{flex-shrink:0;flex-wrap:nowrap;gap:14px;padding:16px 0;border-bottom:1px solid var(--line)}
.schedule-fullscreen .project-heading-copy{flex:1;min-width:0}
.schedule-fullscreen #projects-title{font-size:29px;letter-spacing:-1px;line-height:1.2;margin:0}
.schedule-fullscreen #projects-page .eyebrow,.schedule-fullscreen #projects-summary,.schedule-fullscreen .project-tabs,.schedule-fullscreen #projects-page .project-heading-actions .new-button,.schedule-fullscreen #projects-schedule>.schedule-caption{display:none}
.schedule-fullscreen .project-heading-actions{margin:0;flex-shrink:0}
.schedule-fullscreen #projects-fullscreen,.schedule-fullscreen #schedule-export-pdf{min-height:36px}
.schedule-fullscreen #projects-page>.search-row{flex-shrink:0;padding:10px 0}
.schedule-fullscreen #projects-schedule{display:flex;flex-direction:column;flex:1;min-height:0}
.schedule-fullscreen #projects-schedule>.schedule-tools{flex-shrink:0;padding:3px 0 12px}
.schedule-fullscreen #schedule-scroll{flex:1;min-height:0;max-height:none}
.schedule-fullscreen #schedule-scroll .schedule-track{isolation:isolate}
@media(max-width:1023px){.schedule-fullscreen #sidebar-toggle{display:none}}
@media(max-width:679px){
  #projects-fullscreen{min-height:44px}
  #projects-page .project-heading-actions{width:100%;flex-wrap:nowrap}
  #projects-fullscreen{flex:1;min-width:0}
  #schedule-export-pdf,#projects-page .project-heading-actions .new-button{flex-shrink:0}
  .schedule-fullscreen main{padding:env(safe-area-inset-top) 12px max(12px,env(safe-area-inset-bottom))}
  .schedule-fullscreen #projects-page .page-heading{flex-wrap:wrap;gap:8px;padding:12px 0}
  .schedule-fullscreen #projects-title{font-size:25px}
  .schedule-fullscreen #projects-page .project-heading-actions{gap:6px;width:auto;flex-wrap:nowrap}
  .schedule-fullscreen #projects-fullscreen,.schedule-fullscreen #schedule-export-pdf{min-height:44px;padding:0 10px}
  .schedule-fullscreen #schedule-export-pdf span{display:none}
  .schedule-fullscreen #projects-schedule>.schedule-tools{gap:10px}
}

.schedule-indent{display:block;flex-shrink:0;height:1px}
.schedule-indent[style="width: 0px;"]{display:none}
.item-subtasks[hidden],.item-parent-context[hidden]{display:none}
#task-dialog.has-subtasks-section .form-body{display:flex;flex-direction:column}
#task-dialog.has-subtasks-section .form-body>*{flex-shrink:0}
#task-dialog.has-linked-subtasks .item-description{min-height:34dvh}
.item-subtasks{border-top:1px solid var(--line);margin-top:30px;padding-top:26px;padding-bottom:4px}
.item-subtasks h3{display:flex;align-items:center;gap:10px;margin:5px 0 0;font-size:18px;font-weight:650;letter-spacing:-.4px}
.item-subtasks.is-empty{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:auto;padding-top:28px;border-top:0}
.subtask-empty-add,.subtask-empty-link{display:inline-flex;align-items:center;gap:6px;padding:8px 0;color:var(--muted);font-size:10px}
.subtask-empty-add:hover,.subtask-empty-link:hover{color:var(--green)}
.subtask-empty-add svg,.subtask-empty-link svg{width:13px;height:13px}
.item-parent-context{padding:0 24px 14px;font-size:10px;color:var(--muted)}
.item-parent-context button{display:flex;align-items:center;gap:6px;max-width:100%;text-align:left;color:var(--green);line-height:1.6}
.item-parent-context span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.item-parent-context svg{width:12px;height:12px;transform:rotate(180deg);flex-shrink:0}
@media(min-width:680px){.item-parent-context{padding-left:36px;padding-right:36px}}
@media(max-width:679px){#task-dialog.has-subtasks-section{height:94dvh}#task-dialog.has-subtasks-section form{height:100%}.item-subtasks .project-linked-person{max-width:70px}.item-subtasks h3{font-size:17px}}
.schedule-task-branch{width:24px;margin-left:0}
@media(max-width:480px){.schedule-task-branch{width:18px}}

/* Project documentation: compact related canvases and mirrored file attachments. */
.project-canvas-grid,.project-file-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,270px),1fr));gap:12px;margin-top:16px}
.project-canvas-card,.project-file-card{display:flex;align-items:center;gap:14px;min-width:0;border:1px solid var(--line,#e4e5e7);border-radius:10px;background:var(--surface,#fff);padding:10px;text-align:left;color:inherit;text-decoration:none}
.project-canvas-card{padding-right:8px}.project-canvas-open{display:flex;align-items:center;gap:14px;min-width:0;flex:1;text-align:left}.project-canvas-open strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}
.project-canvas-thumb{display:block;width:86px;height:58px;flex:none;border-radius:6px;overflow:hidden;background:#f4f5f6}.project-canvas-thumb .board-preview{width:100%;height:100%;aspect-ratio:auto}.project-canvas-thumb .board-preview svg{width:100%;height:100%}.project-canvas-thumb .board-preview-empty span{display:none}.project-canvas-thumb .board-preview-empty svg{width:22px;height:22px}
.project-canvas-card .project-unlink{position:static;opacity:1;flex:none;width:30px;height:30px}.project-file-card:hover,.project-canvas-card:hover{border-color:#b9bdc2}
.project-file-preview{display:flex;align-items:center;justify-content:center;flex:none;width:52px;height:66px;background:#f3f4f5;border:1px solid #e4e5e7;border-radius:4px;overflow:hidden}.project-file-preview img{width:100%;height:100%;object-fit:contain;margin:0;border-radius:0}.project-file-preview img[hidden]{display:none}.project-pdf-placeholder{font-size:10px;font-weight:700;letter-spacing:.08em;color:#74777d}
.project-file-copy{min-width:0;display:grid;gap:6px}.project-file-copy strong{font-size:13px;font-weight:600;overflow-wrap:anywhere;line-height:1.5}.project-file-copy small{font-size:10px;color:var(--muted,#74777d);letter-spacing:.04em}.project-rich-body a:not(.project-file-card),#project-update-editor .tiptap a{color:#365f93;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
.project-update-files{margin:20px 0}.project-update-files>small{display:inline-block;margin:8px 12px;color:var(--muted,#74777d);font-size:11px}.project-file-edit{position:relative;min-width:0}.project-file-edit .project-file-card{padding-right:38px;height:100%}.project-file-edit>.icon-button{position:absolute;right:5px;top:5px;width:28px;height:28px}.project-files-help{font-size:12px;color:var(--muted,#74777d);margin:0 0 16px}
.project-header-actions{flex-wrap:wrap}#project-export-documentation[aria-busy=true]{min-width:190px}
@media(max-width:700px){.project-header-actions{gap:6px}.project-header-actions .secondary-button{font-size:11px;padding:9px 10px;min-height:38px}.project-dialog-header{gap:10px}.project-file-grid,.project-canvas-grid{grid-template-columns:1fr}.project-section-heading{gap:10px}}
.project-share-dialog{width:min(520px,calc(100% - 24px))}.project-share-dialog>p{font-size:13px;line-height:1.6;color:var(--muted,#66716c)}.project-share-dialog #project-share-url{display:block;width:100%;min-width:0;margin:8px 0 20px;padding:12px;border:1px solid var(--line,#dfe4e0);border-radius:8px;background:#f8faf8;font-size:13px}.project-share-dialog .confirm-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}

.project-canvas-open strong{white-space:normal;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}

/* Date creation sits below the drag/resize hit area of each timeline bar. */
.schedule-date-add{position:absolute;left:0;right:0;bottom:0;height:9px;padding:0;z-index:2;cursor:pointer;background:transparent;color:var(--green)}
.schedule-date-add>span{position:absolute;top:50%;transform:translate(-50%,-50%);display:flex;align-items:center;justify-content:center;width:18px;height:13px;border-radius:3px;background:var(--surface);box-shadow:0 0 0 1px var(--line);font-size:13px;line-height:1;opacity:0;pointer-events:none}
.schedule-date-add:hover>span,.schedule-date-add:focus-visible>span{opacity:1}
.schedule-date-add:focus-visible{outline:1px solid var(--green);outline-offset:-1px}
.is-schedule-editing .schedule-date-add{pointer-events:none;visibility:hidden}
@media (hover:none){.schedule-date-add>span{opacity:1}}

.schedule-isolation-tools{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.schedule-tools-divider{height:20px;width:1px;background:var(--line);margin:0 3px}.schedule-project-checkbox{width:16px;height:16px;flex-shrink:0;margin:0;accent-color:var(--green);cursor:pointer}.schedule-person-options{flex-basis:100%;display:flex;flex-wrap:wrap;gap:8px 16px;padding:8px 0}.schedule-person-options[hidden]{display:none}.schedule-person-option{display:inline-flex;align-items:center;gap:6px;font-size:12px;cursor:pointer}.schedule-person-option input{width:15px;height:15px;margin:0;accent-color:var(--green)}.schedule-person-empty{font-size:12px;color:var(--muted)}.schedule-order-tools{flex-wrap:wrap;flex-shrink:1}
.schedule-period-controls{display:flex;flex-basis:100%;flex-wrap:wrap;align-items:end;gap:8px 12px;padding:10px 12px;border:1px solid var(--line);border-radius:7px;background:var(--surface)}.schedule-period-controls[hidden]{display:none}.schedule-period-controls label{display:flex;flex-direction:column;align-items:start;gap:5px}.schedule-period-controls input[type=date]{min-height:32px}#schedule-period-status{white-space:nowrap;font-size:10px}#schedule-period-error{flex-basis:100%;margin:0;color:var(--danger);font-size:11px}
