:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#202922;background:#f7f8f4;--line:#d8ded6;--green:#145a40;--plan-hover:#edf4ef}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}header{height:72px;background:#203b32;color:white;padding:0 clamp(20px,5vw,76px);display:flex;align-items:center;gap:18px}.wordmark{font-size:23px;letter-spacing:-1.6px}.wordmark span,.project-colon{color:#b2e68c}.divider{height:23px;border-left:1px solid #698578}.right{margin-left:auto;font-size:13px;color:#d9e6de}main{max-width:1220px;margin:auto;padding:32px clamp(18px,5vw,76px) 64px}nav,.heading,.toolbar,footer{display:flex;align-items:center;gap:14px}nav{padding-bottom:24px;border-bottom:1px solid var(--line)}button,input,textarea,select{font:inherit}button,input,select,textarea{border:1px solid #bac6be;border-radius:7px;padding:10px 13px;background:#fff;color:inherit}button{cursor:pointer;font-weight:600}button:hover{background:#e6ede5}button:disabled{opacity:.48;cursor:default}nav button{margin-left:auto}.heading{justify-content:space-between;gap:15px;padding:32px 0 12px}.eyebrow{margin:0;font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:var(--green);font-weight:750}h1{font-size:clamp(36px,5vw,60px);line-height:1.1;letter-spacing:-.055em;margin:8px 0}h2{font-size:24px;letter-spacing:-.035em}.primary{background:var(--green);color:white;border-color:var(--green)}.primary:hover{background:#0d4530}#mode,small,nav label,.action{color:#4e6258}#notice:empty{display:none}#notice{border-left:3px solid #438a67;padding:8px 12px}.toolbar{justify-content:space-between;flex-wrap:wrap}.toolbar input{width:min(260px,100%)}.sheet{border:1px solid var(--line);border-radius:10px;overflow:hidden;background:white}.columns,.row{display:grid;grid-template-columns:minmax(0,1fr) minmax(100px,13%) minmax(105px,18%) minmax(110px,16%);gap:16px;padding:17px 20px;align-items:center}.columns{font-size:12px;font-weight:bold;background:#e9eee7;color:#3f5145}.row+.row{border-top:1px solid var(--line)}.row strong{font-size:17px;display:block}.task-title{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:baseline;gap:8px;overflow-wrap:anywhere}.task-ref {
  justify-self:start;
  padding:2px 7px;
  border-radius:7px;
  background:#e9ebe8;
  color:#344039;
  font:500 13px/1.35 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space:nowrap;
}.action{display:block;font-size:14px;line-height:1.5;margin:5px 0}.date{text-align:left;font-size:14px}.owner{font-size:14px}.empty{padding:22px}aside,#reviewrisk:not(:empty){background:#fff2d4;color:#664814;padding:14px 18px;border-radius:8px}dialog{width:min(470px,94vw);border:1px solid var(--line);border-radius:14px;padding:26px;color:inherit}dialog::backdrop{background:#14271b66}dialog h2{margin:10px 0 20px}dialog label{display:block;margin:16px 0 6px;font-weight:600}dialog input:not([type=checkbox]),textarea{width:100%}textarea{resize:vertical}small{display:block;margin-top:6px}footer{justify-content:flex-end;margin-top:18px}fieldset{padding:0;border:0}.error{color:#9a3426}.sr{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}
@media(max-width:630px){header{height:60px;gap:10px}.right{font-size:11px;max-width:85px}.heading{align-items:flex-start;flex-direction:column}nav{flex-wrap:wrap}nav label{display:none}nav select{max-width:100%}nav button{margin-left:0}.toolbar{margin:16px 0}.toolbar h2{margin:0}.columns{display:none}.row{grid-template-columns:1fr auto;gap:9px}.row>div:first-child{grid-column:1/-1}.date{justify-self:end}}

/* Keep the workspace identity visible while scrolling, including on a phone. */
header {position:sticky;top:0;z-index:2}
body[data-role="staff"] header {background:#503461}
body[data-role="reader"] header {background:#134e41}
#role-label {
  font-size:16px;font-weight:800;letter-spacing:.045em;white-space:nowrap;
  color:#fff;background:transparent;border:1px solid currentColor;border-radius:5px;padding:6px 10px;
}
#mode {font-weight:650}
#mode.pending {background:#fff0cb;color:#694400;border-left:4px solid #a66400;padding:10px 14px}
.row.changed {background:#fffaf0;border-left:4px solid #a66400;padding-left:16px}
.dates {display:grid;gap:4px;justify-items:start}
.draft-label,.client-date {font-size:13px;line-height:1.35}
.draft-label {color:#754800}
.client-date {color:#454943}
#current-date {font-size:15px}
.mobile-label {display:none}
@media(max-width:630px){.row{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.row .dates{justify-self:start;grid-column:1/-1}.mobile-label{display:block;font-size:12px;font-weight:650;color:#4e6258;margin-bottom:3px}}
@media(max-width:630px){header{gap:8px;height:auto;min-height:60px;flex-wrap:wrap;padding-block:8px}header .divider{display:none}#role-label{font-size:13px}.right{max-width:none}.dates{justify-self:end}}
#updated {font-size:14px;color:#526259;margin:8px 0 12px;font-variant-numeric:tabular-nums}
#mode {margin-bottom:0}
.recent {margin-top:7px;font-size:12px;color:#364b60}
.recent summary {display:inline-block;cursor:pointer;border:1px solid #becdda;background:#eff4f7;border-radius:999px;padding:3px 9px;font-weight:600}
.recent summary:focus-visible {outline:2px solid #254b6d;outline-offset:2px}
.recent[open] span {display:block;margin-top:5px}
.connections {display:grid;gap:4px;border-left:2px solid #becbc4;padding-left:10px;margin-top:10px;font-size:13px;line-height:1.5}
.connection {display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 8px}
.link-label {font-weight:650;color:#43534b}
.task-link {color:#15533f;background:transparent;border:0;border-radius:2px;padding:2px 0;text-align:left;font-size:inherit;text-decoration:underline;text-underline-offset:3px}
.task-link:hover {background:#edf4ef}
.later-tasks summary {width:fit-content;cursor:pointer;color:#43534b}
.later-tasks .task-link {display:block;margin-left:14px}
.row:focus {outline:3px solid #437765;outline-offset:-3px}
.heading > div {min-width:0;max-width:100%}
.publication-actions {display:grid;justify-items:stretch;gap:8px;flex:none;white-space:nowrap}
#project-visibility {color:#703829;background:white}
#project-visibility:hover {background:#fbf3f0}
#project-visibility.restore {color:var(--green);border-color:var(--green)}
#visibility-confirm.unpublish {background:#853828;color:white;border-color:#853828}
.project-title {display:flex;align-items:center;gap:clamp(8px,2vw,16px);font-size:clamp(36px,5vw,60px);line-height:1.1}
.project-title h1 {font-size:inherit;min-width:0;overflow-wrap:anywhere;text-wrap:balance}
.project-title h1.long-name {font-size:.84em}
.project-title #client-logo {
  flex: none;
  height: 1.32em;
  width: auto;
  max-width: min(2.88em, 30%);
  object-fit: contain;
}
.logo-preview img {max-width:140px;max-height:52px;object-fit:contain}
#brand-settings {font-size:13px;padding:5px 9px}
.logo-preview {min-height:76px;display:grid;place-items:center;border:1px solid var(--line);background:#fff;border-radius:8px}
#remove-logo {margin-top:12px}
.work-status {display:inline-block;border:0;border-radius:5px;padding:3px 8px;font-size:12px;font-weight:700;color:#424e5a;background:#e9edf1}
.work-status[data-status="To confirm"] {color:#5b4082;background:#eee6fa}
.work-status[data-status="Pending input"] {color:#724c09;background:#fff0c3}
.work-status[data-status="In progress"] {color:#154e85;background:#e2f0ff}
.work-status[data-status="Complete"] {color:#1a573a;background:#ddf3e5}
.work-status[data-status="On hold"] {color:#803a1c;background:#f9e4d8}
.overdue {display:inline-block;background:#fce8e5;color:#8c251d;border:1px solid #e7aaa4;padding:3px 8px;border-radius:6px;font-weight:750;font-size:13px}
#edit-inputs {margin-top:1rem}
#edit-inputs label {margin:.4rem 0;font-weight:400}
.task-description,.short-details {font-size:14px;color:#46554d}
.task-description summary {cursor:pointer}
@media(max-width:630px){.dates .overdue {justify-self:end;grid-column:2;grid-row:1 / span 3;align-self:center}.row .dates{justify-self:stretch;grid-template-columns:1fr auto}.dates>:not(.overdue){grid-column:1}}
main {max-width:1640px;padding-inline:clamp(16px,3vw,54px)}
.project-select {position:relative;max-width:100%}
.project-select select {appearance:none;padding-right:36px;max-width:100%}
.ui-icon {width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.searchbox {position:relative;display:block;width:min(100%,20rem)}
.toolbar .searchbox input {width:100%;padding:10px 12px 10px 39px;border:1px solid #839b8f;border-radius:9px;background:white;color:#22372c}
.searchbox .ui-icon {position:absolute;left:13px;top:50%;transform:translateY(-50%);color:#476758;pointer-events:none}
.searchbox input::placeholder {color:#52665b}
.toolbar .searchbox input:hover {border-color:#557663}
.toolbar .searchbox input:focus {outline:2px solid var(--green);outline-offset:2px}
.view-tools {display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:0 0 14px;font-size:13px}
.view-tools select {margin-left:4px}
.sheet {overflow-x:auto}
.work-table {border-collapse:collapse;width:100%;table-layout:fixed;min-width:1140px;font-size:14px}
.work-table th,.work-table td {text-align:left;vertical-align:top;padding:15px 10px;overflow-wrap:anywhere}
.work-table th:first-child,.work-table td:first-child {padding-left:16px}
.work-table th:nth-child(1){width:26%}.work-table th:nth-child(2){width:164px}.work-table th:nth-child(3){width:13%}.work-table th:nth-child(4){width:11%}.work-table th:nth-child(5){width:8%}.work-table th:nth-child(6){width:18%}.work-table th:nth-child(7){width:13%}
.work-table thead,.group-row {background:#e9eee7;color:#3f5145}
.work-table th button {border:0;background:transparent;font-size:13px;padding:4px 0;text-align:left}
.work-table td {border-top:1px solid var(--line)}
.task-row.changed {background:#fffaf0}
.task-row:focus {outline:2px solid #437765;outline-offset:-2px}
.task-title {grid-template-columns:auto minmax(0,1fr) auto;text-align:left;border:0;padding:0;background:transparent;color:inherit}
.task-title strong {font-size:17px}
.edit-icon {font-size:16px;color:#54665b}
.work-status {max-width:100%;padding:5px 4px}
.due-cell>* {display:block;margin-bottom:5px}
.due-cell input {max-width:100%;width:100%;padding:5px 2px;font-size:14px}
.due-cell .overdue {display:inline-block}
.assignment summary {cursor:pointer;color:var(--green);font-weight:600}
.assignment form {display:grid;gap:6px;margin-top:8px}
.assignment label {font-size:12px}
.assignment input {width:100%;padding:6px}
.assignment button {padding:6px;font-size:12px}
.task-update {margin-top:8px;border-left:3px solid #9bb9aa;padding:6px 8px;background:#f1f6f3}
.task-update b,.task-update span {display:block}.task-update b {font-size:12px;color:#355c48;margin-bottom:3px}
#editor {width:min(620px,94vw);max-height:88dvh;padding-top:0}
.dialog-top {position:sticky;top:0;background:white;display:flex;justify-content:space-between;align-items:center;z-index:1;padding:10px 0}
.close {border:0;color:#46564d;font-size:24px;line-height:1;padding:8px}
#editor section {border-top:1px solid var(--line);padding-block:8px 16px}
#editor h3 {margin:8px 0}
.form-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px}
#editform label input:not([type=checkbox]),#editform label select,#editform label textarea {display:block;width:100%;margin-top:5px;font-weight:400}
@media(max-width:630px){.form-grid{grid-template-columns:1fr}.view-tools{gap:6px}.sheet{overscroll-behavior-x:contain}}

.task-title {width:100%;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:8px;row-gap:4px;padding:5px 8px 5px 0;border-radius:6px}
.task-title .task-ref {grid-column:1;grid-row:1;font-size:11px;line-height:1.3;padding:2px 5px}
.task-title .edit-icon {grid-column:2;grid-row:1;justify-self:end}
.task-title strong {grid-column:1/-1;grid-row:2;font-size:16px;line-height:1.35}
.text-preview,.task-update .text-preview {display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:6;overflow:hidden;overflow-wrap:anywhere;white-space:pre-wrap;line-height:1.4}
.next-cell .text-preview:not(.expanded) {-webkit-line-clamp:4}
.text-preview.expanded,.task-update .text-preview.expanded {display:block;-webkit-line-clamp:unset}
.preview-toggle {padding:3px 0;border:0;background:transparent;color:var(--green);font-size:12px;text-decoration:underline;text-underline-offset:2px}
.description-preview {margin:5px 0;color:#46594e;font-size:14px}
.assignment summary {list-style-position:outside;margin-inline-start:12px}
.assignment .text-preview {max-width:100%}
.connection {display:grid;grid-template-columns:5.6em minmax(0,1fr);align-items:baseline;gap:6px}
.linked-list {display:grid;justify-items:start;min-width:0}
.task-link {max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.later-tasks .task-link {display:block}
#editor h3 {background:#f0ecf4;color:#503461;padding:9px 12px;border-inline-start:3px solid #846b91;border-radius:4px;font-size:17px;line-height:1.3;font-weight:700}
#editor #taskname, #editor fieldset label, #review {overflow-wrap:anywhere}
#editor #taskname {display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}


.connection .link-label {white-space:nowrap}
.status-picker {position:relative;min-width:0}
.status-picker select {width:100%;appearance:none;padding:6px 28px 6px 8px}
.start-button,.field-pencil {background:transparent;border:0;border-radius:4px}
.start-button {max-width:100%;text-align:left;font-weight:400;padding:3px 0;white-space:normal}
.start-button:hover,.start-button:focus-visible {text-decoration:underline}
.field-pencil {display:block;margin-left:auto;padding:2px 6px;color:#365747;font-size:15px}
.task-update:has(b + .field-pencil) {display:flex;align-items:center;gap:8px}
.task-update:has(b + .field-pencil) b {margin:0}
#field-title {overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.party-palette {grid-column:1/-1;margin:8px 0 0}
.party-palette legend {font-weight:600}
.color-choices {display:flex;flex-wrap:wrap;gap:5px;margin-top:6px}
.color-choices .swatch-option {display:inline-flex;position:relative;align-items:center;gap:5px;border:1px solid var(--line);border-radius:5px;padding:5px 7px;margin:0;font-size:13px;font-weight:500;cursor:pointer}
.color-choices .swatch-option:has(:checked) {border-color:var(--green);box-shadow:inset 0 0 0 1px var(--green)}
.color-choices .swatch-option:focus-within {outline:2px solid #284f86;outline-offset:2px}
.color-choices label input[type=radio] {position:absolute;clip-path:inset(50%);width:1px;height:1px;margin:0}
.color-dot {display:inline-block;width:11px;height:11px;border:1px solid #0003;border-radius:50%}
.colored-party .assignment-value:first-child,.colored-party > .preview-wrap:first-child {border-inline-start:4px solid var(--party-color);padding-inline-start:6px}

#add-task {margin:0 0 12px}
#risk,#reviewrisk {overflow-wrap:anywhere}
#risk ul,#reviewrisk ul {margin:.5em 0;padding-left:1.5em}
#risk p {margin:.55em 0 0}
.plan-response {border-top:1px solid #bd9c5d;padding-top:.6em}
.plan-response .text-preview:not(.expanded) {display:-webkit-box;-webkit-line-clamp:4}
#risk button {margin-top:.6em}

#notice[role="alert"] {border-color:#ab422e;background:#fff3ed;color:#763020}

.party-org {color:var(--party-color,var(--green));font-weight:700}
.party-person {display:block;font-size:14px;font-weight:500;color:#4e6258;margin-top:5px}
.warning-task {color:inherit;font-weight:750;text-decoration:underline;text-underline-offset:2px;overflow-wrap:anywhere}
.warning-task:focus-visible {outline:2px solid currentColor;outline-offset:2px}

#risk.note-only {background:#edf3ef;color:#344e40}
#risk.note-only .plan-response {border:0;padding:0;margin:0}

#previous-note {margin:8px 0;padding:10px 14px;border-left:4px solid #ad3a30;border-radius:5px;background:#fff2ef;color:#772d25;line-height:1.4}
#previous-note p {margin:0 0 4px}
#previous-note strong {display:block;font-weight:700}

.note-actions {display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}
#remove-note {color:#802e25}

.plan-actions,.view-switch,.move-controls {display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.plan-actions {margin-bottom:14px}
.view-switch {padding:3px;background:#e8ede8;border-radius:9px;gap:1px}
.view-switch button {display:inline-flex;align-items:center;gap:7px;background:transparent;border-color:transparent;padding:7px 17px}
.view-switch button[aria-pressed=true] {background:#fff;box-shadow:0 1px 4px #233b3026;color:var(--green)}
.move-controls {margin-bottom:8px}
.move-controls button,.drag-handle {font-size:12px;padding:7px}
.drag-handle {cursor:grab;color:#495c50;touch-action:none;user-select:none}
.drag-handle.dragging {cursor:grabbing;background:#e1ece3}
.task-row[data-drop=before] td {box-shadow:inset 0 3px var(--green)}
.task-row[data-drop=after] td {box-shadow:inset 0 -3px var(--green)}
#timeline {border:1px solid var(--line);border-radius:10px;background:white;overflow-x:auto}
.timeline-legend {display:flex;align-items:center;flex-wrap:wrap;gap:8px 18px;padding:12px 14px;border-bottom:1px solid var(--line);color:#465c50;font-size:12px}
.timeline-legend span {display:inline-flex;align-items:center;gap:6px}
.timeline-legend i {display:inline-block;color:#267358}
.timeline-legend .range {width:21px;height:9px;border-radius:4px;background:currentColor}
.timeline-legend .date {width:10px;height:10px;border:2px solid currentColor;border-radius:50%}
.timeline-legend .fixed {width:8px;height:8px;background:currentColor;transform:rotate(45deg)}
.timeline-canvas {position:relative;min-width:760px;isolation:isolate;--bar-color:#29795e;--gutter:20px;--tick-width:100%}
.timeline-line {display:grid;grid-template-columns:clamp(185px,23%,275px) minmax(0,1fr);border-bottom:1px solid var(--line);padding-right:var(--gutter)}
.timeline-line:last-of-type {border-bottom:0}
.timeline-axis {background:#edf2ed;color:#345243;font-size:13px}
.timeline-task {position:sticky;left:0;z-index:2;display:grid;align-content:center;gap:3px;padding:9px 14px;background:#fff;border-right:1px solid var(--line);overflow-wrap:anywhere}
.timeline-axis .timeline-task {background:#edf2ed}
.timeline-task small {margin:0;font-size:11px;line-height:1.35}
.timeline-link {font-weight:650;color:#244f39;text-decoration-thickness:1px;text-underline-offset:3px}
.timeline-inputs {font-size:11px;color:#506358}
.timeline-track {position:relative;margin-left:var(--gutter);background:repeating-linear-gradient(90deg,#dfe8e1 0 1px,transparent 1px var(--tick-width))}
.timeline-scale {min-height:45px;overflow:hidden}
.timeline-scale span {position:absolute;top:50%;transform:translateY(-50%);padding-left:4px;white-space:nowrap;font-size:11px;font-weight:650}
.timeline-bar {position:absolute;z-index:1;top:50%;transform:translateY(-50%);height:26px;display:flex;align-items:center;border-radius:8px;background:var(--bar-color);box-shadow:inset 0 0 0 1px #0003;text-decoration:none;color:white}
.timeline-bar span {margin-inline:7px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:650}
.timeline-bar:hover,.timeline-bar:focus-visible {outline:2px solid #253c32;outline-offset:2px}
.timeline-bar.point {width:14px;height:14px;border-radius:50%;transform:translate(-50%,-50%);border:3px solid var(--bar-color);background:white}
.timeline-bar.point.milestone {border-radius:2px;transform:translate(-50%,-50%) rotate(45deg);background:var(--bar-color)}
.timeline-bar.point::after {content:"";position:absolute;inset:-8px}
.timeline-edges {position:absolute;inset:0;width:100%;height:100%;pointer-events:none;fill:none;stroke:#5a6d64;stroke-width:1.5;stroke-linejoin:round;stroke-linecap:round}
.detail-fields {display:grid;grid-template-columns:auto minmax(0,1fr);gap:9px 14px}
.detail-fields dt {font-weight:650}
.detail-fields dd {margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.handoff-list ul {padding-left:20px}
.colored-party .party-org,.colored-party .assignment-value {color:color-mix(in srgb,var(--party-color) 65%,#111)}
@media(max-width:560px){.detail-fields {display:block}.detail-fields dd {margin:3px 0 12px}}

.work-status[data-status="At risk"] {color:#832b21;background:#fbe4df}
#source-context {margin:.5rem 0;color:#46594e;font-size:13px}
#source-context summary {cursor:pointer;font-weight:650}

#schedule-open {margin:0 8px 12px 0;color:#513560}
.schedule-launch {display:block;margin-top:10px}
#schedule-dialog {width:min(660px,95vw);max-height:90dvh;overflow-y:auto}
#schedule-dialog h2 {margin:4px 0 14px}
.schedule-filters {display:grid;grid-template-columns:1fr 1.4fr;gap:12px}
.schedule-filters label,#schedule-card label {display:grid;gap:5px;margin:6px 0 10px;font-size:14px}
.schedule-filters select,#schedule-card select {width:100%;min-width:0}
.schedule-nav {display:flex;align-items:center;justify-content:space-between;margin:6px 0 18px;border-block:1px solid var(--line);padding:6px 0;font-size:13px}
.schedule-nav button {padding:5px 14px}
#schedule-card h3 {margin:4px 0;font-size:21px}
.handoff-timing {font-weight:600;margin:6px 0 14px}
.handoff-row {display:grid;gap:4px;margin-bottom:8px;background:#f4f6f3;padding:9px 12px;border-radius:7px}
.handoff-row small {margin:0}.handoff-row span {font-size:13px}
.handoff-description {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;column-gap:8px;min-width:0;color:#46594e}
.handoff-description .text-preview:not(.expanded) {-webkit-line-clamp:1}
.handoff-description .preview-toggle {white-space:nowrap}
.handoff-track {height:7px;position:relative;background:#dfe5df;border-radius:4px}
.handoff-track i {position:absolute;min-width:2px;height:100%;border-radius:4px}
.schedule-detail {margin:6px 0;font-size:14px}.schedule-detail summary {cursor:pointer;font-weight:650}
.schedule-saved,.schedule-next-action {white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px}
.schedule-saved {border-left:3px solid #5c826d;padding-left:9px}
#schedule-card form {border-top:1px solid var(--line);margin-top:14px;padding-top:6px}
#schedule-card form small {margin-bottom:9px}
#schedule-feedback {font-size:13px;color:#295a40}
@media (max-width:480px){#schedule-dialog {padding:14px}.schedule-filters {grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:6px}}

#schedule-jump-label {display:grid;gap:5px;margin:4px 0;font-size:14px} #schedule-jump {width:100%;min-width:0}

.focus-tools {display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;margin:12px 0}
.focus-tools label,.focus-role {font-weight:700}
.focus-tools select {max-width:100%;min-width:0;width:min(360px,100%)}
#focus-summary {font-size:.875rem;color:#405747}
.timeline-line.related-task .timeline-task {background:#f5f8f6}
.timeline-line.selected-task,.timeline-line.selected-task .timeline-task {background-color:#e0eee6}
.timeline-line.selected-task .timeline-task {box-shadow:inset 4px 0 #235c43}
.timeline-line .focus-role {color:#285c44}
.timeline-line.selected-task .timeline-bar {outline:2px solid #245640;outline-offset:2px}

#calendar-settings,#rename-project {font-size:.8rem;padding:6px 10px;margin:4px 4px 4px 0}
.deadline-flags {display:flex;align-items:flex-start;flex-wrap:wrap;gap:4px;margin-top:4px}
.deadline-flags:empty {display:none}
.deadline-flags .weekend-tag,.holiday-tag summary {display:inline-block;border-radius:4px;padding:2px 6px;font:650 11px/1.4 system-ui}
.deadline-flags .weekend-tag {background:#edf0fa;color:#38456e}
.holiday-tag summary {background:#fff0cf;color:#754911;cursor:pointer;text-decoration:underline dotted;text-underline-offset:2px}
.holiday-tag[open] span {display:block;color:#67471d;font-size:12px;line-height:1.35;margin:3px 0}
#calendar-dialog {width:min(820px,94vw)}
.holiday-year {border-top:1px solid var(--line);margin-top:12px}
.holiday-year > summary {padding:12px 0;font-weight:700;cursor:pointer}
.holiday-row {display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1.15fr) auto;gap:8px;align-items:end;padding:8px 0;border-bottom:1px solid var(--line)}
.holiday-row label {font-size:12px;margin:0}
.holiday-row input,.holiday-row select {width:100%;min-width:0;font-size:14px}
#calendar-form footer {position:sticky;bottom:0;background:white;padding:12px 0 4px}
@media(max-width:650px){.holiday-row {grid-template-columns:1fr 1fr}.holiday-row label:first-child {grid-column:1/-1}.holiday-row button {justify-self:start}}

#edit-inputs legend {font-weight:700}
#edit-inputs .task-ref {margin-inline:3px}
.handoff-dates {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.handoff-dates input {width:100%;min-width:0}
#schedule-card .handoff-fixed {display:flex;align-items:center;gap:6px}

#history-dialog {width:min(720px,94vw)}
#history-events details {padding:10px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
#history-events details p {margin:8px 0;white-space:pre-wrap}

.view-tools.timeline-tools {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.62fr) minmax(0,1.45fr) auto;align-items:end}
.timeline-tools label {display:grid;gap:4px;min-width:0}
.timeline-tools select {margin:0;width:100%;min-width:0}
#focus-summary:empty {display:none}
.resize-handle {position:absolute;top:50%;z-index:3;height:28px;width:12px;padding:0;border:0;background:transparent;touch-action:none;cursor:ew-resize}
.resize-handle.start {transform:translate(-85%,-50%)}
.resize-handle.due {transform:translate(-15%,-50%)}
.resize-handle::after {content:"";position:absolute;top:6px;bottom:6px;width:3px;left:5px;border-radius:3px;background:#244c3d;box-shadow:0 0 0 1px white}
.resize-handle:hover,.resize-handle:focus-visible {background:#d8e7df}
.resize-preview {position:fixed;z-index:8;pointer-events:none;border-radius:5px;background:#183d2e;color:white;padding:5px 9px;font-size:13px;white-space:nowrap}
.timeline-track.resizing {z-index:4}
@media(max-width:640px){.view-tools.timeline-tools{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}
.planner-tools,.planner-dates,.scenario-controls {display:flex;align-items:end;gap:8px;flex-wrap:wrap;margin:12px 0}
.planner-dates label,.scenario-controls label {display:grid;gap:4px;font-size:13px}
#scenario-panel {border:1px solid #9ab8af;border-left:4px solid #247053;padding:12px 18px;background:#f0f7f1;border-radius:8px}
#scenario-panel h2 {margin:0}
#scenario-input {max-width:min(420px,78vw)}
.view-tools.timeline-tools {grid-template-columns:minmax(100px,1fr) minmax(90px,1fr) minmax(80px,.6fr) minmax(130px,1.4fr) auto}
.stream-heading {display:flex;align-items:baseline;gap:6px}
.stream-toggle,.stream-title {background:transparent;border:0;padding:3px;color:#244b38;text-align:left}
.stream-toggle {min-width:28px}
.stream-title:hover {text-decoration:underline}
.stream-row .timeline-task {background:#f3f6f2}
.stream-band {position:absolute;top:60%;height:6px;border-radius:4px;background:#8bad99}
.stream-marker {position:absolute;bottom:45%;max-width:100%;white-space:nowrap;border:1px solid #b9cbbe;color:#1e4b34;border-radius:14px;padding:3px 8px;font-size:12px}
.timeline-bar {padding:0;border:0}
.timeline-task button.task-ref {width:fit-content;padding:2px 5px}
.forecast-shift,.forecast-shift .timeline-task {background:#eef7fe}
.forecast-conflict,.forecast-conflict .timeline-task {background:#fff0da}
.forecast-label {color:#24476b;font-weight:700}
.forecast-conflict .forecast-label {color:#823f13}
#publication-dialog {width:min(760px,94vw)}
#publication-preview {max-height:48vh;overflow:auto}
#publication-preview details {padding:7px 0;border-bottom:1px solid var(--line)}
.publication-logo {max-height:48px;max-width:200px}
@media(max-width:780px){.view-tools.timeline-tools{grid-template-columns:repeat(2,minmax(0,1fr))}.planner-dates input{max-width:40vw}}

header {z-index:12}
.header-context {display:flex;align-items:baseline;gap:.35em;min-width:0}
.header-context .app-name {white-space:nowrap}
.project-colon {display:none}
.scrolled-project .project-colon {display:inline}
.scrolled-project .header-context {flex:1}
#header-project {min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:clamp(13px,1.5vw,17px)}
.scrolled-project #data-type {display:none}
.view-tools,.view-tools.timeline-tools {display:grid;grid-template-columns:minmax(150px,1fr) minmax(180px,1.6fr) auto auto;gap:10px;align-items:end;margin:12px 0 6px}
.view-tools label,#extra-filters label {display:grid;gap:4px;min-width:0;font-size:13px}
.view-tools select,#extra-filters select,#extra-filters input {width:100%;min-width:0;margin:0;height:36px;padding:5px 9px}
.view-tools button,#extra-filters button {min-height:36px;padding:6px 12px}
#extra-filters {display:grid;grid-template-columns:minmax(125px,1.5fr) minmax(100px,1fr) repeat(2,minmax(125px,.8fr)) auto;align-items:end;gap:12px;padding:12px 14px;background:#eef2ed;border-radius:7px}
#timeline-nav {position:sticky;top:var(--header-height,72px);z-index:6;display:flex;align-items:center;gap:6px;background:#f7f8f4;border-bottom:1px solid var(--line);padding:8px 0;margin-top:6px;font-size:13px}
#timeline-nav button {padding:6px 9px}
#timeline-location {flex:1;min-width:0;font-weight:650;color:#345543;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.stream-disclosure {justify-self:start;text-align:left;background:transparent;border:none;font-weight:700;padding:5px 2px;color:#244b38}
.timeline-line {scroll-margin-top:calc(var(--header-height,72px) + 50px)}
.timeline-line .task-ref {scroll-margin-block:calc(var(--header-height,72px) + 55px) 25px}
@media(hover:hover) {
  .timeline-line:not(.timeline-axis):not(.selected-task):not(.forecast-shift):not(.forecast-conflict):hover,
  .timeline-line:not(.timeline-axis):not(.selected-task):not(.forecast-shift):not(.forecast-conflict):hover .timeline-task,
  .work-table .task-row:not(.changed):not(.forecast-shift):not(.forecast-conflict):hover > td,
  .month-grid td[data-day]:hover,
  .month-grid td[data-day]:hover .calendar-date,
  .week-dates .hovered-date {background-color:var(--plan-hover)}
  .month-grid .calendar-task:hover {box-shadow:inset 0 0 0 1px #547360}
}
@media(max-width:780px){
  .view-tools,.view-tools.timeline-tools,#extra-filters {grid-template-columns:repeat(2,minmax(0,1fr))}
  #timeline-nav {flex-wrap:wrap}
  #timeline-location {order:-1;flex-basis:100%}
  #expand-stages {margin-left:auto}
}

.login-card { max-width: 24rem; margin: 8vh auto; }
.login-card form, .login-card label { display: grid; gap: .5rem; }
.login-card form { gap: 1rem; }
.login-card input { width: 100%; box-sizing: border-box; }

#logout {background:var(--green);border-color:#82ab96;color:white}
#logout:hover {background:#0d4530}
#logout:focus-visible {outline:2px solid white;outline-offset:2px}
.site-footer {display:block;margin:24px auto 0;padding:18px clamp(20px,5vw,76px);border-top:1px solid var(--line);color:#4e6258;font-size:13px;text-align:center}
.site-footer span {padding:0 4px}
.manage-users {color:white;font-weight:650;text-underline-offset:3px}

@media screen {
  .timeline-axis {
    position:relative;
    z-index:5;
    transform:translateY(var(--heading-offset,0px));
    box-shadow:inset 0 -1px var(--line);
  }
  /* Keep sortable cells above inline controls in Safari's table paint order. */
  .work-table {isolation:isolate;border-collapse:separate;border-spacing:0}
  .work-table thead th {
    position:relative;
    top:var(--heading-offset,0px);
    z-index:5;
    background:#e9eee7;
    box-shadow:inset 0 -1px var(--line);
  }
  .work-table tbody {position:relative;z-index:0}
  .work-table tbody :focus, .timeline-line, .timeline-line .task-ref {
    scroll-margin-top:calc(var(--pinned-height, var(--header-height,72px)) + 6px);
  }
}

#phone-planner { display:none; }
@media screen and (max-width:700px), screen and (pointer:coarse) and (max-height:500px) and (max-width:1000px) {
  #workspace > :not(#phone-planner):not(#notice),
  header .manage-users, header #data-type, header #header-project, header .project-colon {display:none}
  #workspace {max-width:36rem;margin:0 auto;padding:28px 20px 40px}
  #phone-planner {display:block}
  #phone-heading {font-size:clamp(1.9rem,6vw,2.5rem);line-height:1.12}
  #phone-planner p {line-height:1.55}
  #phone-admin {display:inline-flex;align-items:center;min-height:44px;padding:8px 16px;border-radius:7px;font-weight:650;text-decoration:none}
  header #logout {margin-left:auto}
}

#unpublished-plan {max-width:42rem;margin:clamp(32px,7vw,90px) auto;padding:clamp(24px,4vw,44px);background:white;border:1px solid var(--line);border-radius:12px}
#unpublished-plan h1 {font-size:clamp(26px,3vw,36px);line-height:1.16;margin:0}
#unpublished-plan p {color:#4e6258;line-height:1.55;margin:12px 0 0}

#work-calendar {background:white;border:1px solid var(--line);border-radius:10px;margin-block:18px}
.calendar-toolbar,.month-navigation {display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.calendar-toolbar {padding:16px 18px}
.month-navigation {margin-inline-end:auto}
#calendar-month {font-size:22px;margin:0 8px 0 0;letter-spacing:-.03em}
.month-navigation button {padding:7px 11px}
.calendar-segments {display:inline-flex;padding:3px;border-radius:8px;background:#edf1ed}
.calendar-segments button {font-size:14px;padding:7px 12px;border:1px solid transparent;background:transparent}
.calendar-segments button[aria-pressed="true"] {background:white;border-color:#c3cfc6;color:#1f513c;box-shadow:0 1px 2px #24382b14}
#view-access-open {display:inline-flex;align-items:center;gap:7px;margin-inline-start:auto;padding:8px 13px;border:1px solid #b4a3c2;background:#f3eef6;color:#573769;font-size:.875rem}
#view-access-open:hover {background:#e8dfee;border-color:#8e719f}
#view-access-open .ui-icon {width:16px;height:16px}
#view-access-dialog {width:min(430px,94vw);padding:24px}
#view-access-dialog h2 {margin:0;font-size:1.5rem}
.access-project {margin:18px 0 22px;padding:12px 14px;border-inline-start:3px solid #79578e;border-radius:5px;background:#f3eff5;color:#3e2d47}
.access-project span {display:block;font-size:.75rem;font-weight:650;color:#67536f;margin-bottom:4px}
.access-project strong {display:block;line-height:1.4;overflow-wrap:anywhere}
#view-access-dialog fieldset {margin:0;min-width:0}
#view-access-dialog legend {font-weight:650;margin-bottom:6px}
#view-access-dialog label {display:flex;align-items:center;gap:10px;border-bottom:1px solid var(--line);margin:0;padding:12px 2px;font-weight:500}
#view-access-dialog input {width:18px;height:18px;margin:0;accent-color:#624575}
#view-access-dialog footer {justify-content:space-between;align-items:center;gap:12px}
#view-access-status {margin:0;color:#50615a;font-size:.8125rem}
#view-access-status.error {color:#9a3426}
.task-locations {display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.task-locations button {padding:7px 11px;font-size:14px}
.located-task:focus {outline:2px solid var(--green);outline-offset:-2px;background:#f0f6f1}
#calendar-empty {margin:0;padding:10px 18px;color:#46594c;background:#f4f7f3}
.month-grid {width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0;--weekday-height:36px}
.month-grid th {position:sticky;top:var(--header-height,72px);z-index:4;height:var(--weekday-height);line-height:16px;padding:6px 10px;text-align:left;background:#edf2ed;color:#475b50;font-size:13px}
.month-grid td {height:100px;padding:6px 8px 10px;vertical-align:top;border-top:1px solid var(--line)}
.month-grid td + td {border-inline-start:1px solid #e4eae4}
.month-grid .outside-month {background:#f8f9f6}
.calendar-date {position:sticky;top:calc(var(--header-height,72px) + var(--weekday-height));z-index:2;background:white;margin:-6px -8px 4px;padding:4px 8px;box-shadow:0 1px #edf0eb}
.month-grid time {display:inline-block;padding:3px 6px;font-size:14px;font-weight:650}
.month-grid time[aria-current] {background:var(--green);color:white;border-radius:5px}
.calendar-task {display:block;width:100%;margin:3px 0;padding:5px 7px;border:0;border-inline-start:3px solid var(--party-color,#afbab2);border-radius:3px;background:#f3f5f2;color:#24352b;font-size:13px;line-height:1.3;font-weight:550;text-align:left;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.calendar-task:hover {background:#e8ede8}
.calendar-task:focus-visible {white-space:normal;overflow-wrap:anywhere}
.month-grid summary {padding:4px 0;font-size:13px;color:var(--green);cursor:pointer}

#view-return {flex:none;color:white;background:transparent;border-color:#ffffff80;padding:7px 11px;font-size:14px}
#view-return:hover,#view-return:focus-visible {background:#ffffff20}
.task-return {color:var(--green);border-color:#91ad9d}
.calendar-task:focus {outline:2px solid var(--green);outline-offset:1px}
@media screen and (max-width:700px), screen and (pointer:coarse) and (max-height:500px) and (max-width:1000px) {
  header #view-return {display:none}
}

#calendar-match {max-width:min(100%,28rem)}

.month-grid td.duration-week {
  padding:0 0 8px;
  background-image:repeating-linear-gradient(to right,transparent 0,transparent calc(100% / 7 - 1px),#e4eae4 calc(100% / 7 - 1px),#e4eae4 calc(100% / 7)),linear-gradient(var(--day-tint,transparent),var(--day-tint,transparent));
  background-size:100% 100%,calc(100% / 7) 100%;
  background-position:left top,var(--hover-position,0%) top;
  background-repeat:no-repeat;
}
@media(hover:hover) {
  .duration-week:has(.hovered-date) {--day-tint:var(--plan-hover)}
}
.week-dates,.week-bars {display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}
.week-dates {position:sticky;top:calc(var(--header-height,72px) + var(--weekday-height));z-index:2;background:white;box-shadow:0 1px #edf0eb}
.week-dates > div {padding:4px 8px;border-inline-end:1px solid #e4eae4}
.week-bars {row-gap:4px;padding-top:4px}
.week-bars .calendar-task {display:flex;align-items:baseline;gap:.35em;width:auto;min-width:0;margin:0 4px;background:color-mix(in srgb,var(--party-color,#88968b) 12%,white)}
.week-bars .calendar-task:hover {background:color-mix(in srgb,var(--party-color,#88968b) 23%,white)}
.week-bars .calendar-task span:first-child {min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.week-bars .continuation {flex:none;font-size:.9em;font-weight:500}
.week-bars .continues {border-end-end-radius:0;border-start-end-radius:0}
.duration-week summary {margin:4px 8px}

.dashboard-active #schedule-open,.dashboard-active #history-open,.dashboard-active #add-task {display:none}
#executive-dashboard {margin:20px 0 32px;padding:clamp(16px,2vw,28px);background:#fff;border:1px solid var(--line);border-radius:12px}
.dashboard-heading {display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}
.dashboard-heading h2 {margin:0;font-size:clamp(24px,2.3vw,34px)}
#dashboard-progress {margin:6px 0 0;color:#506157;font-size:.9rem}
.dashboard-columns {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(16px,2vw,28px)}
.dashboard-columns section {min-width:0;border-top:2px solid #729183}
.dashboard-columns section:first-child {border-color:#b28a4e}
.dashboard-columns section:last-child {border-color:#93829d}
.dashboard-columns h3 {margin:13px 0 4px;font-size:1rem}
.dashboard-task {display:block;padding:11px 3px;color:#26372d;text-decoration:none;overflow-wrap:anywhere}
.dashboard-task + .dashboard-task,.dashboard-columns details {border-top:1px solid var(--line)}
.dashboard-task:hover,.dashboard-task:focus-visible {background:var(--plan-hover)}
.dashboard-task strong {font-size:.92rem;line-height:1.35}
.dashboard-task small,.dashboard-empty {font-size:.8rem;line-height:1.45;color:#506157}
.dashboard-columns summary {cursor:pointer;color:var(--green);font-size:.85rem;font-weight:650;padding:10px 3px}

#download-plan {display:inline-flex;align-items:center;gap:7px}
#download-plan .ui-icon {width:16px;height:16px}
#timeline-nav #view-access-open {margin-inline-start:auto}

/* Shared notes belong to the published task and sit apart from draft editing. */
.task-note-link { display:inline-flex; align-items:center; gap:.35rem; }
.task-row .task-note-link { margin-top:.35rem; padding:.25rem .45rem; font-size:.8rem; color:#185543; }
.task-locations .task-note-link { background:#eef5f0; border-color:#94b1a2; color:#174f39; }
#notes-permission { padding:.7rem .85rem; background:#f1f4f2; border-radius:.35rem; }
#notes-form { margin-bottom:.9rem; }
.task-row button.task-note-link:not(.has-notes) { background:transparent; border-color:transparent; color:#475d51; text-decoration:underline; text-underline-offset:.18em; }
.task-row .task-note-link.has-notes, .task-locations .task-note-link.has-notes { background:#d9eee3; border-color:#9abfab; color:#104d35; font-weight:700; }
.task-row .empty-notes, .task-locations .empty-notes { background:transparent; color:#58665d; padding:.25rem 0; font-size:.8rem; }
.shared-note-body.text-preview:not(.expanded) { -webkit-line-clamp:4; }
.task-note-link svg { width:1rem; height:1rem; flex:none; }
#task-notes { width:min(35rem,calc(100% - 2rem)); }
#notes-heading { margin:0; }
#notes-context { font-weight:700; border-left:3px solid #77a892; padding:.5rem .75rem; background:#eef4f0; overflow-wrap:anywhere; }
.notes-audience, .shared-note time, #notes-limit { color:#52665d; font-size:.875rem; }
.shared-note, .notes-empty { padding:1rem 0; border-top:1px solid #d7e1da; }
.shared-note-header { display:flex; align-items:center; justify-content:space-between; gap:1rem; }
.shared-note-header strong { overflow-wrap:anywhere; }
.shared-note-header .note-edit { padding:.25rem .55rem; font-size:.875rem; }
.shared-note-body { white-space:pre-wrap; overflow-wrap:anywhere; margin:.5rem 0 0; }
#notes-feedback:empty { display:none; }
#notes-feedback.note-error { color:#922d20; border-left:3px solid #af3929; background:#fff3ee; padding:.65rem .8rem; }
#notes-form label { display:block; font-weight:700; }
#notes-form textarea { width:100%; margin-top:.4rem; resize:vertical; }

.task-row .next-cell,.task-row .due-cell,.task-row .start-cell,.task-row .start-button {font-size:15px}
.task-count {display:flex;align-items:baseline;gap:10px;margin:0 0 10px;color:#43534b;font-size:.875rem}
.task-count button {background:transparent;border:0;padding:2px 0;color:var(--green);text-decoration:underline}
.update-time {display:block;margin-top:4px;color:#52665d;font-size:.8rem;line-height:1.4}
.update-time:empty {display:none}
.review-update {margin-block:8px}
.review-update p {margin:4px 0;white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:700px) {.connection {grid-template-columns:minmax(0,1fr)}}
