.project-workspace{display:grid;grid-template-columns:260px minmax(0,1fr);max-width:1320px;margin:30px auto;gap:28px;padding:0 24px}.project-workspace[hidden]{display:none}.project-sidebar{display:flex;flex-direction:column;gap:12px}.project-sidebar h1{margin:0}.project-sidebar p{line-height:1.55}.project-local-note{font-size:13px;color:#5f6873}.project-stage{min-width:0;max-width:900px}.project-field{display:flex;flex-direction:column;gap:7px;margin:12px 0;font-size:14px;font-weight:600}.project-field input,.project-field select,.project-field textarea{width:100%;box-sizing:border-box;padding:10px;border:1px solid #ccd2d9;border-radius:7px;background:#fff;color:#10234b;font:inherit;font-weight:400}.project-field textarea{min-height:100px;resize:vertical}.project-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:12px 0}.project-card{padding:20px;border:1px solid #d6dbe2;background:#fff;border-radius:12px;margin:16px 0}.project-card h3{margin:0}.project-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}.project-list-button{padding:12px;text-align:left;border:1px solid #d6dbe2;border-radius:8px;background:#fff;overflow-wrap:anywhere}.project-list-button[aria-pressed=true]{border-color:#006be6;background:#e8f3ff}.project-visuals{padding:20px;border-radius:12px;background:#edf6ff;margin:20px 0}.project-visuals progress{width:100%;accent-color:#006be6}.project-timeline-row{display:flex;justify-content:space-between;gap:16px;border-left:3px solid #006be6;padding:10px 14px;margin:8px 0;background:white;overflow-wrap:anywhere}.project-flow li{padding:6px;overflow-wrap:anywhere}.project-mode .top-actions #modeButton,.project-mode .top-actions #shareButton,.project-mode .local-pill{display:none}.project-mode .document-mobile-dock{display:none}@media(max-width:800px){.project-workspace{grid-template-columns:1fr;margin:20px auto;padding:0 16px}.project-sidebar{gap:8px}.project-sidebar p{margin:0}.project-sidebar .project-local-note{margin-top:8px}.project-grid{grid-template-columns:1fr}.project-timeline-row{flex-direction:column;gap:5px}.project-actions button{min-height:42px}.project-card{padding:14px}.builder-mode-switch{flex-wrap:wrap}}
.project-timeline-window{background:#fff;border:1px solid #d7dce3;border-radius:12px;padding:18px 0 10px;box-shadow:0 2px 8px #10234b06;margin:12px 0 20px;min-width:0}.project-timeline-head{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;padding:0 18px 12px}.project-timeline-legend{display:flex;flex-wrap:wrap;gap:14px;font-size:13px}.project-timeline-legend-item{display:inline-flex;align-items:center;gap:7px}.project-timeline-dot{display:inline-block;width:10px;height:10px;border-radius:50%;background:var(--stage-color)}.project-timeline-window .status-open{--stage-color:#dc3434;--stage-bg:#fff1f1;--stage-ink:#a11919}.project-timeline-window .status-active{--stage-color:#edbc24;--stage-bg:#fff9df;--stage-ink:#725500}.project-timeline-window .status-done{--stage-color:#269d55;--stage-bg:#edf9f0;--stage-ink:#166b35}.project-timeline-controls{display:flex;gap:6px}.project-timeline-controls button{width:36px;height:34px;background:#fff;border:1px solid #cdd3db;border-radius:7px;color:#10234b;font-size:20px;cursor:pointer}.project-timeline-controls button:disabled{opacity:.35;cursor:default}.project-timeline-scroll{overflow-x:auto;overflow-y:hidden;max-width:100%;cursor:grab;scrollbar-width:auto;scrollbar-color:#9da6b1 #edeff2;overscroll-behavior-x:contain;touch-action:pan-x pan-y;outline-offset:-3px}.project-timeline-scroll:focus-visible{outline:2px solid #006be6}.project-timeline-scroll.is-dragging{cursor:grabbing;user-select:none}.project-timeline-track{display:flex;width:max-content;min-width:100%;margin:0;padding:10px 10px 18px;list-style:none;box-sizing:border-box}.project-timeline-step{position:relative;width:260px;flex:0 0 260px;padding:0 10px;box-sizing:border-box}.project-timeline-step:before{content:'';position:absolute;top:57px;left:0;right:0;height:3px;background:#d8dde4}.project-timeline-step:first-child:before{left:50%}.project-timeline-step:last-child:before{right:50%}.project-timeline-step:only-child:before{display:none}.project-timeline-date{height:40px;display:flex;align-items:center;justify-content:center;text-align:center;font-size:12px;line-height:1.4;color:#596574;font-variant-numeric:tabular-nums;position:relative}.project-timeline-marker{display:block;position:relative;width:22px;height:22px;margin:6px auto 14px;background:var(--stage-color);border:3px solid #fff;border-radius:50%;box-shadow:0 0 0 1px #d6dbe1;box-sizing:border-box}.project-timeline-marker.is-milestone{border-radius:4px;transform:rotate(45deg)}.project-timeline-card{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:9px;padding:14px;min-height:146px;border:1px solid #dde2e7;border-top:3px solid var(--stage-color);border-radius:9px;background:#fff;box-sizing:border-box;overflow-wrap:anywhere}.project-timeline-kind{font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:#656f7c}.project-timeline-title{font-size:14px;line-height:1.5;color:#10234b}.project-timeline-owner{font-size:12px;color:#656f7c}.project-timeline-status{margin-top:auto;border-radius:5px;padding:4px 8px;background:var(--stage-bg);color:var(--stage-ink);font-size:12px;font-weight:600}.project-timeline-hint,.project-timeline-empty{padding:0 18px;font-size:12px;color:#636e7b;line-height:1.5;margin:10px 0 2px}@media(max-width:600px){.project-timeline-head{padding:0 12px 12px}.project-timeline-legend{gap:9px}.project-timeline-step{width:230px;flex-basis:230px}.project-timeline-controls button{width:40px;height:40px}.project-timeline-hint{padding:0 12px}}

.project-task-fold{background:#fff;border:1px solid #d6dbe2;border-radius:12px;margin:12px 0;overflow:hidden}.project-task-summary{display:flex;align-items:center;gap:12px;padding:16px 18px;cursor:pointer;list-style:none}.project-task-summary::-webkit-details-marker{display:none}.project-task-summary:before{content:'›';font-size:26px;line-height:1;color:#636e7b;flex:0 0 14px;transform-origin:center}.project-task-fold[open]>.project-task-summary:before{transform:rotate(90deg)}.project-task-summary:focus-visible{outline:2px solid #006be6;outline-offset:-3px}.project-task-summary-title{flex:1;min-width:0;font-size:14px;line-height:1.5;overflow-wrap:anywhere}.project-task-summary-status{flex-shrink:0;font-size:12px;font-weight:600;padding:4px 8px;border-radius:5px}.project-task-summary-status.status-open{background:#fff1f1;color:#a11919}.project-task-summary-status.status-active{background:#fff9df;color:#725500}.project-task-summary-status.status-done{background:#edf9f0;color:#166b35}.project-task-fold .project-task-content{border:0;border-top:1px solid #e7ebef;border-radius:0;margin:0;padding:6px 18px 16px}@media(max-width:600px){.project-task-summary{padding:14px 12px;gap:8px}.project-task-summary-status{font-size:11px}.project-task-fold .project-task-content{padding:6px 12px 14px}}

.project-minute-summary-date{font-size:12px;color:#636e7b;flex-shrink:0;font-variant-numeric:tabular-nums}

.project-field.project-date-field{width:200px;max-width:100%;min-width:0;box-sizing:border-box}.project-date-field input[type=date]{display:block;width:100%;max-width:100%;min-width:0;min-inline-size:0;box-sizing:border-box;text-align:left}.project-date-field input[type=date]::-webkit-date-and-time-value{text-align:left;min-height:1.2em}.project-date-field input[type=date]::-webkit-datetime-edit{min-width:0;padding:0}

.project-actions>select{padding:10px 12px;border:1px solid #ccd2d9;border-radius:7px;background:#fff;color:#10234b;font:inherit;min-height:42px;max-width:100%}
.project-people{margin:16px 0}.project-people h3{font-size:14px;margin:0 0 8px}.project-person-row{display:flex;align-items:center;gap:8px;margin:4px 0}.project-person-row .project-field{flex:1;min-width:0;margin:0}.project-person-row .project-field>span[hidden]{display:none}.project-person-row input{min-height:44px;padding:8px 10px}.project-person-row button{flex:0 0 44px;width:44px;min-height:44px;margin:0;padding:0;border:1px solid #d6dbe2;border-radius:7px;background:#fff;color:#636e7b;font-size:24px;line-height:1}.project-person-row button:hover{background:#fff1f1;color:#a11919}.project-people>.outline-button{margin-top:8px;min-height:42px;padding:8px 12px;font-size:14px}
.project-meeting-section{border:1px solid #d6dbe2;border-radius:7px;margin:8px 0;background:#fff}.project-meeting-section>summary{padding:12px;cursor:pointer;font-size:14px;font-weight:600;min-height:44px;box-sizing:border-box}.project-meeting-section>.project-field{margin:0;padding:0 12px 12px}.project-meeting-section>.project-field>span{display:none}.project-meeting-section textarea{min-height:90px}.project-meeting-section>summary:focus-visible{outline:2px solid #006be6;outline-offset:2px}
.project-flow-overview{margin-top:16px;border:1px solid #d6dbe2;border-radius:8px;background:#fff}.project-flow-overview>summary,.project-flow-drafts>summary{padding:12px;min-height:44px;box-sizing:border-box;cursor:pointer;font-size:14px;font-weight:600}.project-flow-content{padding:0 12px 12px}.project-flow-content h4{font-size:13px;color:#636e7b;margin:12px 0 6px}.project-flow-step{width:100%;display:flex;align-items:center;gap:12px;text-align:left;border:1px solid #e0e4e8;border-radius:7px;background:#fff;color:#10234b;padding:10px;margin:6px 0;min-height:44px;font:inherit}.project-flow-step:hover{background:#f3f5f8;border-color:#006be6}.project-flow-step-text{display:flex;flex-direction:column;gap:4px;flex:1;min-width:0;overflow-wrap:anywhere;font-size:14px}.project-flow-relation,.project-flow-meta{font-size:12px;color:#636e7b;line-height:1.4}.project-flow-drafts{margin-top:12px;border-top:1px solid #e0e4e8}.project-flow-step:focus-visible,.project-flow-overview summary:focus-visible{outline:2px solid #006be6;outline-offset:2px}@media(max-width:600px){.project-flow-step{gap:8px;padding:9px}.project-flow-content{padding:0 8px 8px}}
.project-step-summary{flex-wrap:wrap;gap:6px 12px}.project-protocol-chip{flex-basis:100%;min-width:0;margin-left:26px;font-size:12px;font-weight:400;color:#636e7b;overflow-wrap:anywhere}.project-protocol-link{display:inline-block;max-width:100%;border:0;padding:7px 0;background:transparent;color:#006be6;font:inherit;text-align:left;text-decoration:underline;text-underline-offset:3px;cursor:pointer;overflow-wrap:anywhere}.project-protocol-link:focus-visible{outline:2px solid #006be6;outline-offset:2px}@media(max-width:600px){.project-step-summary{gap:4px 8px}.project-protocol-chip{margin-left:22px}}
.project-view-filters{margin-top:12px}.project-view-filters .project-field{margin:6px 0}.project-filter-count{font-size:12px;color:#636e7b;margin:10px 0 4px}.project-step-timing{flex-basis:100%;min-width:0;margin-left:26px;color:#636e7b;font-size:12px;font-weight:400;overflow-wrap:anywhere}.project-step-timing[hidden]{display:none}.project-step-timing.is-overdue{color:#a11919;font-weight:600}@media(max-width:600px){.project-step-timing{margin-left:22px}}
.project-meeting-section>.project-view-filters{padding:0 12px 12px}
.project-create-dialog{width:420px;max-width:calc(100vw - 32px);box-sizing:border-box;border:1px solid #d6dbe2;border-radius:12px;padding:20px;background:#fff;color:#10234b}.project-create-dialog::backdrop{background:#13253a66}.project-create-dialog h2{font-size:20px;margin:0 0 16px}.project-create-dialog .project-create-error{color:#a11919;font-size:13px}.project-create-dialog button:disabled{opacity:.5;cursor:default}.project-undo{position:sticky;top:8px;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;margin:12px 0;background:#e8f3ff;border:1px solid #b7c5d7;border-radius:8px;font-size:14px;box-shadow:0 2px 8px #10234b12}.project-undo[hidden]{display:none}.project-undo>span{min-width:0;overflow-wrap:anywhere}.project-undo button{flex-shrink:0;min-height:44px}@media(max-width:600px){.project-create-dialog{padding:16px}.project-undo{flex-wrap:wrap}}

.project-cloud-panel{border-top:1px solid #d6dbe2;padding-top:10px}.project-cloud-state{font-size:13px;font-weight:600;overflow-wrap:anywhere}.project-cloud-panel .project-actions{gap:6px}.project-cloud-panel button{min-height:44px;max-width:100%;font-size:13px;overflow-wrap:anywhere}.project-account-details summary{cursor:pointer;padding:10px 0;font-weight:600;min-height:24px}.project-account-row{padding:12px 0;border-top:1px solid #d6dbe2;overflow-wrap:anywhere}.project-account-row strong,.project-account-row small{display:block}.project-account-row small{margin-top:4px;color:#636e7b}.project-account-email,.project-cloud-feedback{font-size:13px;overflow-wrap:anywhere}.project-cloud-panel button:disabled{opacity:.5;cursor:default}.project-account-details{font-size:14px}
.project-linked-step{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;width:100%;min-height:44px;padding:7px 4px;background:transparent;border:0;border-radius:5px;color:#006be6;font:inherit;text-align:left;cursor:pointer;overflow-wrap:anywhere}.project-linked-step>span:first-child{text-decoration:underline;text-underline-offset:3px}.project-linked-step:hover{background:#edf1f5}.project-linked-step:focus-visible{outline:2px solid #006be6;outline-offset:2px}.project-linked-status{font-size:12px;padding:3px 7px;border-radius:5px;text-decoration:none;color:#10234b;background:#f2f3f5}.project-linked-status.status-open{color:#a11919;background:#fff0f1}.project-linked-status.status-active{color:#795b0b;background:#fff9df}.project-linked-status.status-done{color:#217042;background:#edf8f1}
/* Sticky footer in normal document flow: short projects fill the viewport,
   long projects push the footer down instead of being covered by it. */
body.project-mode{display:flex;flex-direction:column;min-height:100vh;min-height:100dvh}
body.project-mode>#projectView{flex:1 0 auto;width:100%}
body.project-mode>.topbar,body.project-mode>.free-service-notice,body.project-mode>footer{flex-shrink:0}
body.project-mode>footer{margin-top:auto}
