:root { --blue:#003366; --blue-mid:#005eb8; --blue-soft:#e8f0fb; --red:#dc2626; --red-soft:#fef2f2; --green:#16a34a; --green-soft:#f0fdf4; --amber:#d97706; --amber-soft:#fffbeb; --ink:#0d1117; --ink-soft:#374151; --ink-muted:#6b7280; --surface:#fff; --surface-2:#f1f5f9; --border:rgba(15,25,36,.08); --border-mid:rgba(15,25,36,.14); --shadow-xs:0 1px 2px rgba(15,25,36,.06); --shadow-lg:0 20px 60px rgba(15,25,36,.22); --radius:12px; --radius-sm:8px; }
* { box-sizing:border-box; }
body { margin:0; font-family:'Figtree',-apple-system,sans-serif; background:#f6f8fb; color:var(--ink); min-height:100vh; }
.nav { height:58px; padding:0 24px; position:sticky; top:0; z-index:300; display:flex; align-items:center; justify-content:space-between; background:rgba(255,255,255,.96); border-bottom:1px solid var(--border); backdrop-filter:blur(14px); }
.nav-brand { display:flex; align-items:center; gap:9px; color:var(--blue); font-weight:700; text-decoration:none; }
.home-icon { color:var(--blue-mid); font-size:12px; }.brand-tail { color:var(--ink-muted); }.nav-right { display:flex; align-items:center; gap:3px; }.nav-link { color:var(--ink-muted); text-decoration:none; font-size:13px; font-weight:600; padding:7px 12px; border-radius:8px; }.nav-link:hover,.nav-link.active { color:var(--blue); background:var(--blue-soft); }
.tasks-page { max-width:1460px; margin:0 auto; padding:34px 32px 80px; }.tasks-hero { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:26px; }.eyebrow,.drawer-kicker { color:var(--blue-mid); font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; }.tasks-hero h1 { margin:7px 0 5px; font-family:'Space Grotesk',sans-serif; font-size:34px; letter-spacing:-1.1px; }.tasks-hero p { margin:0; color:var(--ink-muted); font-size:14px; }
.primary-button,.secondary-button { border:0; min-height:40px; padding:0 16px; border-radius:9px; font:600 13px inherit; cursor:pointer; }.primary-button { background:var(--blue); color:#fff; box-shadow:0 4px 12px rgba(0,51,102,.18); }.primary-button:hover { background:#00284f; }.primary-button:disabled { opacity:.55; cursor:wait; }.secondary-button { color:var(--ink-soft); background:var(--surface-2); border:1px solid var(--border); }
.summary-strip { display:grid; grid-template-columns:repeat(5,1fr); background:var(--surface); border:1px solid var(--border); border-radius:14px; box-shadow:var(--shadow-xs); margin-bottom:18px; overflow:hidden; }.summary-item { padding:17px 20px; border-right:1px solid var(--border); }.summary-item:last-child { border:0; }.summary-label { color:var(--ink-muted); font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:.05em; }.summary-value { display:flex; gap:8px; align-items:baseline; margin-top:5px; font-size:23px; font-weight:700; }.summary-value small { color:var(--ink-muted); font-size:11px; font-weight:500; }.summary-item.alert .summary-value { color:var(--red); }
.tasks-toolbar { display:flex; align-items:center; gap:8px; padding:10px; position:sticky; top:66px; z-index:50; background:rgba(246,248,251,.94); border:1px solid var(--border); border-radius:12px; backdrop-filter:blur(12px); }.view-switch { display:flex; padding:3px; border-radius:8px; background:#e8edf3; }.view-switch button { border:0; background:transparent; color:var(--ink-muted); padding:7px 11px; border-radius:6px; font:600 12px inherit; cursor:pointer; }.view-switch button.active { background:#fff; color:var(--blue); box-shadow:var(--shadow-xs); }.search-box { flex:1; min-width:180px; display:flex; gap:7px; align-items:center; height:36px; padding:0 10px; background:#fff; border:1px solid var(--border); border-radius:8px; color:var(--ink-muted); }.search-box input { width:100%; border:0; outline:0; font:13px inherit; }.tasks-toolbar select { height:36px; max-width:170px; padding:0 28px 0 10px; border:1px solid var(--border); border-radius:8px; background:#fff; color:var(--ink-soft); font:600 11px inherit; }.clear-filters { border:0; background:transparent; color:var(--blue-mid); font:700 11px inherit; cursor:pointer; }.results-meta { min-height:34px; padding:12px 2px 7px; color:var(--ink-muted); font-size:12px; }
.tasks-content { display:grid; gap:14px; }.workstream { background:#fff; border:1px solid var(--border); border-radius:13px; overflow:hidden; box-shadow:var(--shadow-xs); }.workstream-head { width:100%; border:0; background:#fff; display:grid; grid-template-columns:minmax(220px,1fr) minmax(210px,320px) 100px 22px; gap:20px; align-items:center; padding:17px 19px; text-align:left; cursor:pointer; }.workstream-head:hover { background:#fbfcfe; }.workstream-title { font-size:15px; font-weight:700; }.workstream-sub { margin-top:3px; color:var(--ink-muted); font-size:11px; }.progress-wrap { display:grid; grid-template-columns:1fr 35px; gap:9px; align-items:center; }.progress-track { height:7px; overflow:hidden; background:#e9edf2; border-radius:99px; }.progress-fill { height:100%; background:var(--green); border-radius:99px; }.progress-label { color:var(--ink-muted); font-size:11px; font-weight:700; }.health { justify-self:end; display:inline-flex; align-items:center; gap:5px; border-radius:99px; padding:5px 8px; font-size:10px; font-weight:700; }.health.healthy { color:var(--green); background:var(--green-soft); }.health.watch { color:var(--amber); background:var(--amber-soft); }.health.slipping { color:var(--red); background:var(--red-soft); }.chevron { color:var(--ink-muted); transition:transform .15s; }.workstream.open .chevron { transform:rotate(180deg); }.workstream-tasks { display:none; padding:0 12px 12px; border-top:1px solid var(--border); }.workstream.open .workstream-tasks { display:grid; gap:8px; padding-top:12px; }
.task-card { display:grid; grid-template-columns:5px minmax(0,1fr) auto; gap:13px; padding:13px 14px 13px 0; border:1px solid var(--border); border-radius:10px; background:#fff; cursor:pointer; }.task-card:hover { border-color:rgba(0,94,184,.28); box-shadow:0 3px 12px rgba(15,25,36,.06); }.status-rail { border-radius:0 5px 5px 0; background:#94a3b8; }.status-rail.in_progress { background:var(--blue-mid); }.status-rail.done { background:var(--green); }.status-rail.blocked { background:var(--red); }.task-title { font-size:13px; line-height:1.4; font-weight:650; }.task-meta { display:flex; flex-wrap:wrap; gap:6px 12px; margin-top:7px; color:var(--ink-muted); font-size:11px; }.status-pill { display:inline-flex; align-items:center; border-radius:99px; padding:4px 8px; background:#f1f5f9; color:#64748b; font-size:10px; font-weight:700; text-transform:capitalize; }.status-pill.in_progress { color:var(--blue-mid); background:var(--blue-soft); }.status-pill.blocked { color:var(--red); background:var(--red-soft); }.status-pill.done { color:var(--green); background:var(--green-soft); }.due.overdue { color:var(--red); font-weight:700; }.assignees { display:flex; align-items:center; padding-left:6px; }.avatar,.avatar-fallback { width:26px; height:26px; border-radius:50%; margin-left:-6px; border:2px solid #fff; object-fit:cover; }.avatar-fallback { display:inline-flex; align-items:center; justify-content:center; color:var(--blue); background:var(--blue-soft); font-size:9px; font-weight:700; }.occurrence-row { display:flex; flex-wrap:wrap; gap:5px; margin-top:9px; }.occurrence-chip { border:1px solid var(--border); border-radius:6px; padding:4px 6px; background:#fff; color:var(--ink-muted); font:700 9px inherit; }.occurrence-chip.done { border-color:#bbf7d0; color:var(--green); background:var(--green-soft); }.occurrence-chip.blocked { border-color:#fecaca; color:var(--red); background:var(--red-soft); }.occurrence-chip.in_progress { border-color:#bfdbfe; color:var(--blue-mid); background:var(--blue-soft); }
.month-section { display:grid; grid-template-columns:120px minmax(0,1fr); gap:18px; padding:18px 0; border-top:1px solid var(--border); }.month-section:first-child { border-top:0; }.month-label { position:sticky; top:133px; align-self:start; }.month-label strong { display:block; font:700 18px 'Space Grotesk'; }.month-label span { color:var(--ink-muted); font-size:11px; }.month-tasks { display:grid; gap:8px; }.empty-state,.loading-state { padding:60px 20px; text-align:center; color:var(--ink-muted); background:#fff; border:1px dashed var(--border-mid); border-radius:12px; }
.drawer-backdrop,.modal-backdrop { position:fixed; inset:0; z-index:600; background:rgba(15,23,42,.28); backdrop-filter:blur(2px); }.task-drawer { position:fixed; z-index:610; right:0; top:0; bottom:0; width:min(520px,100vw); background:#fff; box-shadow:var(--shadow-lg); transform:translateX(105%); transition:transform .2s ease; display:flex; flex-direction:column; }.task-drawer.open { transform:translateX(0); }.drawer-header { padding:18px 22px; display:flex; justify-content:space-between; align-items:center; border-bottom:1px solid var(--border); }.icon-button { width:34px; height:34px; border:0; border-radius:8px; color:var(--ink-muted); background:var(--surface-2); font-size:22px; cursor:pointer; }.drawer-body { padding:23px; overflow:auto; }.drawer-body h2 { margin:6px 0 18px; font:700 23px/1.2 'Space Grotesk'; }.detail-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }.detail-field { display:grid; gap:6px; }.detail-field label,.task-modal label { color:var(--ink-muted); font-size:11px; font-weight:700; }.detail-field select { height:38px; border:1px solid var(--border); border-radius:8px; padding:0 9px; font:600 12px inherit; background:#fff; }.detail-block { margin-top:20px; padding-top:18px; border-top:1px solid var(--border); }.detail-block h3 { margin:0 0 10px; font-size:13px; }.occurrence-list { display:grid; gap:7px; }.occurrence-item { display:grid; grid-template-columns:1fr 120px; gap:10px; align-items:center; padding:9px 10px; background:var(--surface-2); border-radius:8px; font-size:12px; }.occurrence-item select { height:32px; border:1px solid var(--border); border-radius:7px; background:#fff; font:600 11px inherit; }.notes { color:var(--ink-soft); font-size:12px; line-height:1.5; }.comments { display:grid; gap:9px; }.comment { padding:10px 11px; border-radius:9px; background:var(--surface-2); }.comment-head { display:flex; justify-content:space-between; color:var(--ink-muted); font-size:10px; }.comment-head strong { color:var(--ink-soft); }.comment p { margin:5px 0 0; font-size:12px; line-height:1.45; white-space:pre-wrap; }.comment-form { display:grid; grid-template-columns:1fr auto; gap:8px; margin-top:10px; }.comment-form textarea { resize:vertical; min-height:42px; max-height:120px; border:1px solid var(--border); border-radius:8px; padding:9px; font:12px inherit; }
.modal-backdrop { display:grid; place-items:center; padding:18px; }.modal-backdrop[hidden] { display:none; }.task-modal { width:min(590px,100%); padding:24px; border-radius:14px; background:#fff; box-shadow:var(--shadow-lg); }.modal-head { display:flex; justify-content:space-between; align-items:start; margin-bottom:20px; }.modal-head h2 { margin:5px 0 0; font:700 25px 'Space Grotesk'; }.task-modal>label,.form-grid label { display:grid; gap:7px; margin-bottom:15px; }.task-modal input,.task-modal select { width:100%; height:42px; border:1px solid var(--border-mid); border-radius:8px; padding:0 11px; font:13px inherit; }.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }.modal-actions { display:flex; justify-content:flex-end; gap:8px; margin-top:8px; }.form-error { min-height:18px; color:var(--red); font-size:11px; }.toast { position:fixed; z-index:900; left:50%; bottom:24px; transform:translate(-50%,20px); opacity:0; pointer-events:none; padding:10px 14px; border-radius:8px; background:#102033; color:#fff; font-size:12px; transition:.18s; }.toast.show { opacity:1; transform:translate(-50%,0); }
@media(max-width:1000px){.summary-strip{grid-template-columns:repeat(3,1fr)}.summary-item{border-bottom:1px solid var(--border)}.tasks-toolbar{flex-wrap:wrap}.search-box{flex-basis:100%}.workstream-head{grid-template-columns:1fr 200px 90px 20px}}
@media(max-width:720px){.nav{padding:0 12px}.nav-link{display:none}.nav-link.active{display:block}.tasks-page{padding:24px 14px 60px}.tasks-hero{align-items:start}.tasks-hero h1{font-size:28px}.summary-strip{grid-template-columns:1fr 1fr}.summary-item{padding:13px}.tasks-toolbar select{flex:1;max-width:none}.workstream-head{grid-template-columns:1fr 20px}.workstream-head .progress-wrap,.workstream-head .health{grid-column:1}.workstream-head .chevron{grid-column:2;grid-row:1}.month-section{grid-template-columns:1fr}.month-label{position:static}.detail-grid,.form-grid{grid-template-columns:1fr}.task-card{grid-template-columns:5px minmax(0,1fr)}.task-card>.assignees{display:none}}

/* Round 2 daily-use controls */
.workstream-head { display:flex; grid-template-columns:none; gap:4px; padding:0 12px 0 0; cursor:default; }
.workstream-toggle { flex:1; min-width:0; border:0; background:transparent; display:grid; grid-template-columns:minmax(220px,1fr) minmax(210px,320px) 100px 22px; gap:20px; align-items:center; padding:17px 19px; text-align:left; cursor:pointer; }
.workstream-title { display:block; line-height:1.25; }
.workstream-sub { display:block; margin-top:7px; line-height:1.25; }
.assign-workstream { border:1px solid var(--border); background:#fff; color:var(--blue-mid); border-radius:7px; padding:7px 9px; font:700 10px inherit; cursor:pointer; white-space:nowrap; }
.quick-status { border:0; cursor:pointer; appearance:auto; }.occurrence-chip { cursor:pointer; max-width:118px; }.task-card.is-archived { opacity:.58; }.task-title small { color:var(--ink-muted); font-size:9px; text-transform:uppercase; }
.archived-toggle { display:flex; align-items:center; gap:5px; color:var(--ink-muted); font-size:11px; font-weight:700; }.original-timing { margin-top:12px; color:var(--ink-muted); font-size:11px; }
.comment-actions { display:flex; gap:6px; justify-content:flex-end; margin-top:7px; }.comment-actions button { border:0; background:transparent; color:var(--blue-mid); font:700 10px inherit; cursor:pointer; }.comment-actions button:last-child { color:var(--red); }
.archive-zone { display:flex; align-items:center; gap:10px; margin-top:24px; padding:14px; border:1px dashed var(--border-mid); border-radius:9px; color:var(--ink-muted); font-size:10px; }
.drawer-title-label { display:grid; gap:7px; margin-bottom:18px; color:var(--ink-muted); font-size:11px; font-weight:700; }.drawer-title-input { width:100%; border:1px solid var(--border); border-radius:8px; padding:10px 11px; color:var(--ink); font:700 20px/1.25 'Space Grotesk'; }.detail-field input { height:38px; border:1px solid var(--border); border-radius:8px; padding:0 9px; font:600 12px inherit; }.task-notes-input { width:100%; min-height:82px; resize:vertical; border:1px solid var(--border); border-radius:8px; padding:10px; color:var(--ink-soft); font:12px/1.5 inherit; }
.drawer-readonly { width:100%; border:1px solid transparent; border-radius:10px; background:transparent; padding:8px; margin:-8px -8px 16px; text-align:left; cursor:pointer; color:var(--ink); }.drawer-readonly:hover { background:var(--surface-2); border-color:var(--border); }.drawer-readonly strong { display:block; padding-right:70px; font:700 23px/1.25 'Space Grotesk'; }.readonly-edit-hint { float:right; color:var(--blue-mid); font-size:10px; font-weight:700; }.readonly-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px 20px; margin-top:20px; color:var(--ink-soft); font-size:12px; font-weight:600; }.readonly-grid span,.readonly-notes { display:grid; gap:4px; }.drawer-readonly small { color:var(--ink-muted); font-size:9px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; }.readonly-notes { margin-top:18px; color:var(--ink-soft); font-size:12px; line-height:1.45; }.done-editing { display:block; margin:0 0 14px auto; }.drawer-body.view-mode .drawer-title-label,.drawer-body.view-mode>.detail-grid,.drawer-body.view-mode>.original-timing,.drawer-body.view-mode .task-notes-input { display:none; }.drawer-body.view-mode .occurrence-item select { pointer-events:none; appearance:none; border-color:transparent; background:transparent; }
#workstreamModal[hidden] { display:none; }
@media(max-width:720px){.workstream-toggle{grid-template-columns:1fr 20px}.workstream-toggle .progress-wrap,.workstream-toggle .health{grid-column:1}.workstream-toggle .chevron{grid-column:2;grid-row:1}.assign-workstream{margin-right:2px}}
.drawer-body.view-mode .detail-block:has(.task-notes-input),.drawer-body:not(.view-mode) .drawer-readonly { display:none; }
.task-team { display:flex; align-items:center; margin-top:10px; }
.task-team .avatar, .task-team .avatar-fallback { margin-left:-6px; border:2px solid #fff; }
.task-team .avatar:first-child, .task-team .avatar-fallback:first-child { margin-left:0; }
