.tasks-page { --nav-w: 220px; --muted: #b0adbd; --faint: #9691a6; }
[data-theme="paper"] .tasks-page { --muted: #565264; --faint: #615b70; --accent-2: #9c3f0d; --ok: #187544; --warn: #795600; --bad: #ae3026; }
.tasks-page h1 { font-size: clamp(32px, 3vw, 44px); line-height: 1.08; }
.tasks-page h2, .tasks-page h3 { text-transform: none; letter-spacing: -.02em; line-height: 1.2; }
.tasks-page h2 { font-size: 24px; }
.tasks-page h3 { font-family: var(--body); font-size: 16px; }
.tasks-page p { margin: 0; }
.tasks-page button, .tasks-page a, .tasks-page input, .tasks-page select, .tasks-page textarea { -webkit-tap-highlight-color: transparent; }
.tasks-page :focus-visible { outline: 3px solid var(--accent-2); outline-offset: 4px; }
.tasks-page .btn { min-height: 44px; justify-content: center; font-size: 14px; }
.tasks-page .btn.primary { text-transform: none; font-family: var(--body); letter-spacing: 0; font-size: 14px; }
.tasks-page .btn:disabled { opacity: 1; background: var(--panel-2); color: var(--muted); border-color: var(--line-2); }
.task-icon { width: 20px; height: 20px; flex-shrink: 0; }
.skip-link { position: fixed; left: 12px; top: -100px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 14px; }
.skip-link:focus { top: 12px; }
.task-shell { display: grid; grid-template-columns: var(--nav-w) minmax(0, 1fr); min-height: 100vh; }
.task-rail { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 26px 15px 20px; background: var(--bg-2); border-right: 1px solid var(--line); }
.task-rail .brand { display: block; padding: 0 12px 32px; }
.task-rail .brand .logo { font-size: 26px; }
.task-rail .brand .co { margin-top: 3px; letter-spacing: .22em; }
.rail-caption { color: var(--faint); letter-spacing: .16em; font-size: 10px; font-weight: 700; padding: 14px 13px 10px; }
.task-rail .navbtn { min-height: 48px; margin-bottom: 5px; }
.task-rail a { text-decoration: none; }
.rail-foot { margin-top: auto; padding: 18px 12px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.rail-foot .task-avatar { margin-bottom: 12px; }
.task-avatar { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-dim); border: 1px solid var(--accent); color: var(--accent-2); font-size: 13px; font-weight: 800; flex-shrink: 0; }
.task-topbar { min-height: 65px; padding: 12px 32px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.task-topbar .breadcrumb { font-size: 12px; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
.task-topbar .breadcrumb b { color: var(--text); }
.task-topbar .iconbtn { min-height: 38px; }
.demo-banner { display: flex; gap: 12px; align-items: center; padding: 10px 32px; background: var(--accent-dim); border-bottom: 1px solid var(--line); font-size: 12px; color: var(--text); }
.demo-banner strong { color: var(--accent-2); white-space: nowrap; }
.demo-banner span { color: var(--muted); }
.task-main { max-width: 1360px; margin: auto; padding: 30px 32px 60px; }
.task-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.task-heading .kicker { margin-bottom: 10px; color: var(--accent-2); }
.task-heading p { color: var(--muted); margin-top: 9px; font-size: 14px; }
.profile-picker { min-width: 190px; }
.profile-picker label { display: block; font-size: 11px; color: var(--muted); margin-bottom: 5px; }
.profile-picker select { width: 100%; }
.tasks-page select, .tasks-page textarea { font: inherit; color: var(--text); background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius-s); padding: 11px; }
.tasks-page textarea { resize: vertical; width: 100%; min-height: 100px; font-size: 14px; line-height: 1.6; }
.mission-hero { display: grid; grid-template-columns: minmax(0, 1fr) 245px; border: 1px solid #6d462e; border-radius: var(--radius); overflow: hidden; background: var(--panel); margin-bottom: 25px; }
.hero-copy { padding: 26px 28px; position: relative; }
.hero-copy:before { content: ""; position: absolute; left: 0; top: 22px; bottom: 22px; width: 4px; background: var(--accent); border-radius: 4px; }
.hero-copy .hero-label { display: flex; gap: 10px; align-items: center; color: var(--accent-2); font-size: 11px; text-transform: uppercase; font-weight: 800; letter-spacing: .12em; }
.hero-copy h2 { font-family: var(--display); font-size: clamp(28px, 2.7vw, 36px); margin: 12px 0 10px; }
.hero-copy p { color: var(--muted); max-width: 600px; font-size: 14px; }
.hero-copy .btn-row { margin-top: 19px; align-items: center; }
.effort { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.hero-progress { display: grid; place-content: center; justify-items: center; padding: 22px; border-left: 1px solid var(--line); background: radial-gradient(ellipse at 50% 50%, var(--accent-dim), transparent 70%); }
.progress-ring { width: 117px; height: 117px; position: relative; display: grid; place-items: center; }
.progress-ring svg { width: 117px; height: 117px; transform: rotate(-90deg); }
.progress-ring circle { fill: none; stroke-width: 7; stroke: var(--line-2); }
.progress-ring circle:last-child { stroke: var(--accent); stroke-linecap: round; }
.progress-ring b { position: absolute; font-family: var(--display); font-size: 34px; }
.progress-ring b span { font-size: 17px; color: var(--muted); font-weight: 500; }
.hero-progress > b { margin-top: 10px; font-size: 12px; }
.hero-progress > small { color: var(--muted); font-size: 11px; margin-top: 4px; text-align: center; }
.output-strip { display: flex; align-items: center; gap: 15px; flex-wrap: wrap; margin-bottom: 25px; color: var(--muted); font-size: 12px; }
.output-strip > b { text-transform: uppercase; letter-spacing: .1em; font-size: 10px; }
.output-strip > span { display: flex; align-items: center; gap: 7px; }
.output-strip .task-icon { width: 15px; height: 15px; color: var(--accent-2); }
.task-workspace { display: grid; grid-template-columns: minmax(280px, .85fr) minmax(0, 1.4fr); gap: 24px; align-items: start; }
.path-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.path-head h2 { font-family: var(--body); font-size: 17px; margin: 0; }
.path-head span { font-size: 12px; color: var(--muted); }
.mission-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.mission-card { text-align: left; width: 100%; display: flex; align-items: flex-start; gap: 14px; padding: 17px 14px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--panel); cursor: pointer; position: relative; }
.mission-card:hover { border-color: var(--line-2); background: var(--panel-2); }
.mission-card.selected { border-color: var(--accent); background: var(--accent-dim); }
.step-number { display: grid; place-items: center; font-size: 13px; font-weight: 800; width: 32px; height: 32px; border: 1px solid var(--line-2); border-radius: 50%; flex-shrink: 0; background: var(--bg-2); }
.selected .step-number { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.mission-card.done .step-number { background: var(--ok); color: #101913; }
.mission-title { display: block; font-size: 14px; font-weight: 650; margin: 1px 0 9px; }
.mission-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 11px; color: var(--muted); }
.dependency-text { display: flex; gap: 5px; align-items: center; font-size: 11px; margin-top: 8px; color: var(--muted); }
.dependency-text .task-icon { width: 12px; height: 12px; }
.state-chip { display: inline-flex; gap: 5px; align-items: center; padding: 3px 7px; border-radius: 5px; color: var(--muted); background: var(--panel-2); font-size: 11px; line-height: 1.3; font-weight: 650; white-space: nowrap; }
.state-chip .task-icon { width: 12px; height: 12px; }
.state-chip.ready, .state-chip.in_progress { color: var(--accent-2); background: var(--accent-dim); }
.state-chip.in_review { color: #b5caff; background: #27344e; }
.state-chip.blocked { color: #ffc5a9; background: #483026; }
.state-chip.done { color: #8ddcb4; background: #203e30; }
[data-theme="paper"] .state-chip.in_review { color: #253f77; background: #e4ebff; }
[data-theme="paper"] .state-chip.blocked { color: #84320e; background: #ffe5d7; }
[data-theme="paper"] .state-chip.done { color: #1c5c39; background: #d9f1e4; }
.plan-note { margin-top: 16px; padding: 17px; background: var(--panel); border-radius: var(--radius-s); border: 1px dashed var(--line-2); font-size: 12px; color: var(--muted); }
.plan-note b { color: var(--text); display: block; margin-bottom: 6px; }
.plan-note button { margin-top: 10px; display: flex; width: fit-content; }
.task-detail { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; scroll-margin-top: 18px; }
.detail-top { padding: 23px 24px 20px; border-bottom: 1px solid var(--line); }
.detail-top > .row { justify-content: space-between; margin-bottom: 12px; }
.detail-top .kicker { color: var(--muted); font-size: 10px; }
.detail-top h2 { font-size: 27px; margin-bottom: 10px; }
.detail-top p { font-size: 14px; color: var(--muted); line-height: 1.6; }
.task-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; margin: 18px 0 0; }
.task-facts dt { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 4px; }
.task-facts dd { margin: 0; font-size: 12px; }
.detail-body { padding: 21px 24px; }
.detail-section + .detail-section { margin-top: 23px; }
.detail-section h3 { margin-bottom: 10px; }
.detail-section .section-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.section-meta h3 { margin: 0; }
.section-meta span { color: var(--muted); font-size: 12px; }
.task-checks { display: grid; gap: 8px; }
.task-check { display: flex; align-items: flex-start; gap: 10px; padding: 11px; border: 1px solid var(--line); border-radius: 7px; font-size: 13px; line-height: 1.5; cursor: pointer; }
.task-check input { width: 18px; height: 18px; flex-shrink: 0; margin: 1px 0 0; accent-color: var(--accent); }
.task-check.checked { background: var(--accent-dim); }
.task-check:has(input:disabled) { cursor: default; }
.helper { font-size: 12px; color: var(--muted); line-height: 1.6; margin-top: 7px !important; }
.inline-notice { padding: 12px 14px; font-size: 12px; color: var(--muted); line-height: 1.6; background: var(--bg-2); border-left: 2px solid var(--accent); border-radius: 4px; margin-bottom: 18px; }
.inline-notice b { color: var(--text); }
.inline-notice.blocked { border-color: #ffae85; }
.inline-notice.success { border-color: var(--ok); }
.source-buttons { display: grid; gap: 7px; }
.source-button { text-align: left; padding: 10px 12px; display: flex; gap: 9px; align-items: center; border: 1px solid var(--line); border-radius: 7px; background: var(--bg-2); cursor: pointer; font-size: 13px; }
.source-button > span { flex: 1; }
.source-button small { display: block; color: var(--muted); font-size: 10px; margin-top: 2px; }
.done-box { padding: 15px; background: var(--bg-2); border-radius: 8px; border: 1px solid var(--line); }
.done-box h3 { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.done-box p { font-size: 13px; color: var(--muted); line-height: 1.6; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.detail-actions .btn.primary { flex: 1; }
.evidence-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.history { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 15px; color: var(--muted); font-size: 12px; }
.history summary { cursor: pointer; padding: 5px 0; }
.history ol { padding-left: 20px; }
.history li { margin-top: 10px; }
.history li b { color: var(--text); }
.history time { display: block; font-size: 10px; }
.task-footer { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 20px; font-size: 11px; color: var(--muted); display: flex; align-items: flex-start; gap: 10px; line-height: 1.6; }
.task-footer .task-icon { width: 16px; height: 16px; margin-top: 2px; }
.task-mobile-nav { display: none; }
.review-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 24px; }
.review-metric { border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); padding: 19px; text-align: left; cursor: pointer; display: flex; gap: 15px; align-items: center; }
.review-metric.active { border-color: var(--accent); background: var(--accent-dim); }
.review-metric b { font-family: var(--display); font-size: 38px; }
.review-metric span { font-size: 13px; display: grid; gap: 3px; }
.review-metric small { font-size: 11px; color: var(--muted); }
.people-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin: 15px 0 28px; }
.person-card { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.person-card h3 { font-size: 14px; margin: 0; }
.person-card .person-role { color: var(--muted); font-size: 10px; display: block; margin-top: 4px; }
.person-card .person-stats { display: flex; gap: 12px; margin-top: 15px; font-size: 11px; color: var(--muted); }
.person-card .person-stats b { color: var(--text); font-size: 14px; }
.person-card .mini-progress { height: 4px; background: var(--line-2); border-radius: 5px; margin: 14px 0 10px; overflow: hidden; }
.mini-progress i { background: var(--accent); display: block; height: 4px; }
.person-card .last-update { font-size: 10px; color: var(--muted); }
.person-card .btn { margin-top: 12px; width: 100%; min-height: 36px; font-size: 12px; }
.queue-empty { padding: 28px 20px; border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--muted); font-size: 13px; text-align: center; }
.queue-filter { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.queue-filter button { min-height: 35px; background: var(--panel); border: 1px solid var(--line); border-radius: 7px; font-size: 11px; cursor: pointer; padding: 6px 9px; }
.queue-filter button[aria-pressed="true"] { color: var(--accent-2); border-color: var(--accent); }
.dialog-content { padding: 26px; }
.tasks-page dialog { color: var(--text); background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius); width: min(580px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); padding: 0; box-shadow: var(--shadow); }
.tasks-page dialog::backdrop { background: rgba(5,4,9,.8); }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 15px; }
.dialog-head h2 { margin: 0; font-size: 26px; }
.dialog-head button { flex-shrink: 0; }
.dialog-content p, .dialog-content li { font-size: 14px; line-height: 1.7; color: var(--muted); white-space: pre-line; }
.dialog-content pre { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--bg-2); padding: 16px; border: 1px solid var(--line); border-radius: 7px; font-family: var(--mono); font-size: 12px; line-height: 1.7; margin-top: 18px; }
.dialog-content label { display: block; margin: 18px 0 8px; }
.dialog-error { color: #ffc5a9; font-size: 13px; margin-top: 10px; }
[data-theme="paper"] .dialog-error { color: #84320e; }
.lifecycle { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 18px 0; }
.read-only-evidence { font-size: 13px; line-height: 1.7; padding: 13px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (min-width: 1600px) { .task-main { padding-top: 40px; } }
@media (max-width: 1150px) { .tasks-page { --nav-w: 190px; } .task-main { padding: 25px 22px 60px; } .task-topbar, .demo-banner { padding-left: 22px; padding-right: 22px; } .task-workspace { gap: 16px; grid-template-columns: minmax(245px,.85fr) minmax(0,1.4fr); } .people-grid { gap: 9px; } .person-card { padding: 13px; } .person-card .task-avatar { display: none; } }
@media (max-width: 900px) { .task-shell { grid-template-columns: 1fr; } .task-rail { display: none; } .task-main { padding-bottom: 100px; } .task-mobile-nav { position: fixed; z-index: 10; bottom: 0; left: 0; right: 0; display: grid; grid-template-columns: repeat(3,1fr); background: var(--bg-2); border-top: 1px solid var(--line-2); padding: 8px 8px max(8px,env(safe-area-inset-bottom)); } .task-mobile-nav button { display: grid; justify-items: center; gap: 4px; background: none; border: 0; color: var(--muted); min-height: 48px; font-size: 11px; cursor: pointer; } .task-mobile-nav button.active { color: var(--accent-2); } }
@media (max-width: 650px) { .task-topbar { padding: 11px 18px; min-height: 58px; } .task-topbar .breadcrumb { font-size: 10px; } .demo-banner { padding: 11px 18px; flex-wrap: wrap; gap: 3px 10px; font-size: 11px; } .task-main { padding: 24px 16px 100px; } .task-heading { display: block; margin-bottom: 20px; } .task-heading p { font-size: 13px; } .profile-picker { margin-top: 18px; display: flex; align-items: center; gap: 10px; } .profile-picker label { flex-shrink: 0; margin: 0; } .profile-picker select { padding: 9px; font-size: 12px; } .mission-hero { grid-template-columns: 1fr; margin-bottom: 20px; } .hero-copy { padding: 21px; } .hero-copy h2 { font-size: 30px; } .hero-progress { display: flex; gap: 13px; align-items: center; padding: 12px 20px; border-left: 0; border-top: 1px solid var(--line); justify-content: flex-start; } .progress-ring, .progress-ring svg { width: 48px; height: 48px; flex-shrink: 0; } .progress-ring b { font-family: var(--body); font-size: 16px; } .progress-ring b span { font-size: 10px; } .hero-progress > b { margin: 0; font-size: 12px; } .hero-progress > small { text-align: left; max-width: 110px; font-size: 10px; } .output-strip { gap: 8px 14px; font-size: 11px; } .output-strip > b { width: 100%; } .task-workspace { grid-template-columns: 1fr; gap: 25px; } .mission-card { padding: 13px; } .mission-title { margin: 0 0 7px; } .mission-list { gap: 7px; } .detail-top, .detail-body { padding: 20px; } .detail-top h2 { font-size: 25px; } .detail-actions .btn { width: 100%; } .task-facts { gap: 14px 10px; } .review-metrics { gap: 8px; } .review-metric { display: block; padding: 13px 10px; border-radius: 10px; } .review-metric b { font-size: 30px; } .review-metric span { font-size: 11px; line-height: 1.4; } .review-metric small { font-size: 9px; } .people-grid { grid-template-columns: 1fr; } .person-card { padding: 16px; } .person-card .task-avatar { display: grid; } .person-card .btn { width: auto; } .dialog-content { padding: 20px; } }
@media (prefers-reduced-motion: reduce) { *, *:before, *:after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
