/* My Day: one responsive visual system, retaining the existing interaction model. */
:root{--bg:#f7f7f6;--panel:#fff;--ink:#202124;--muted:#73757a;--border:#e4e5e7;--pale:#eeeff1;--blue:#202124;--navy:#202124;--ai-bg:#f2eff8;--ai-ink:#665389;--radius:12px;--rail:208px}
html[data-theme="dark"]{--bg:#171819;--panel:#202123;--ink:#f4f4f5;--muted:#a5a6aa;--border:#343638;--pale:#2b2d30;--blue:#f4f4f5;--navy:#f4f4f5;--ai-bg:#2c2635;--ai-ink:#c8b5e8}
body{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;font-size:14px;line-height:1.5;background:var(--bg);color:var(--ink)}
button,input,select,textarea{font-family:inherit;color:var(--ink);border-color:var(--border)}button{background:var(--panel);font-weight:550;min-height:40px;border-radius:8px;box-shadow:none}button:hover{background:var(--pale);border-color:var(--border)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--ink);outline-offset:3px}button:disabled{opacity:.35;cursor:default}a{color:var(--ink)}.primary,.button-link.primary{color:var(--panel);background:var(--ink);border-color:var(--ink)}.primary:hover,.button-link.primary:hover{color:var(--panel);background:var(--ink);opacity:.85}input,select,textarea{background:var(--panel);border:1px solid var(--border);border-radius:8px}h1,h2,h3{letter-spacing:-.025em}p{color:var(--muted)}.skip-link{position:fixed;top:-80px;left:220px;background:var(--ink);color:var(--panel);z-index:100;padding:12px}.skip-link:focus{top:10px}
/* Navigation has one place on each device. */
.app-header,body[data-view="subject"] .app-header{position:fixed;inset:0 auto 0 0;width:var(--rail);height:100dvh;display:flex;flex-direction:column;align-items:stretch;gap:0;padding:26px 18px 20px;background:var(--panel);border:0;border-right:1px solid var(--border);z-index:20}.identity{gap:10px;font-size:18px;padding:0 8px}.avatar{width:34px;height:34px;flex:0 0 34px}.avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}.tabs{display:flex;flex-direction:column;align-items:stretch;flex:0;gap:5px;margin-top:34px}.tabs button{display:flex;align-items:center;gap:12px;padding:10px 12px;min-height:44px;text-align:left;color:var(--muted);font-size:13px;border-radius:8px}.tabs button>span:first-child{font-size:21px;line-height:1;width:22px;text-align:center;font-weight:400}.tabs button.active{color:var(--ink);background:var(--pale);font-weight:700}.tabs button:hover{background:var(--bg)}#inboxCount{background:var(--pale);color:var(--muted);font-size:10px;min-width:18px;margin-left:4px}.theme-toggle{margin-top:auto;align-self:flex-start;border:0;padding-left:10px;color:var(--muted);font-size:12px}.header-add,body[data-view="subject"] .header-add{display:flex;margin-top:13px;justify-content:space-between;min-height:44px}.quick-add{display:none}main{margin:0 0 0 var(--rail);padding:42px 38px 70px;max-width:none;min-width:0}.view{max-width:1260px;margin:0 auto}footer{font-size:10px;padding:25px 0 0;margin-top:45px;border-top:1px solid var(--border);gap:15px;max-width:1260px}footer button{font-size:10px;min-height:32px}.task-view-controls{display:none!important}.page-heading,.today-heading{display:flex;align-items:center;justify-content:space-between;margin:0 0 22px;gap:20px}.page-heading h1,.today-heading h1{font-size:30px;font-weight:720;line-height:1.2}.page-heading p,.today-heading p{font-size:12px;margin-top:6px}.today-heading button{background:none;border:0;font-size:12px}
/* Focus: primary outcomes, secondary context. */
#view-today{max-width:1260px;margin:0 auto}.focus-plan-note{font-size:11px;margin:-11px 0 25px;color:var(--muted);line-height:1.5}.focus-workspace{display:grid;grid-template-columns:minmax(0,1fr) 285px;gap:30px;align-items:start}.focus-primary{min-width:0}.focus-queue{display:flex;flex-direction:column;gap:12px}.focus-item{display:grid;grid-template-columns:25px minmax(0,1fr);gap:14px;border:1px solid var(--border);border-radius:var(--radius);padding:22px 22px 19px;background:var(--panel);margin:0;box-shadow:none;position:relative}.focus-item:first-child{border-color:var(--ink)}.focus-rank{position:static;display:grid;place-items:center;width:25px;height:25px;min-width:25px;border-radius:50%;font-size:11px;font-weight:650;background:var(--pale);color:var(--muted);margin-top:23px}.focus-item:first-child .focus-rank{background:var(--ink);color:var(--panel)}.focus-body{min-width:0}.focus-project{font-size:11px;color:var(--muted);font-weight:550;margin:0 0 7px;line-height:1.5}.focus-project::before{content:'';width:7px;height:7px;display:inline-block;border-radius:2px;background:var(--task-accent);margin-right:6px}.focus-project span{font-weight:400}.focus-item-heading{display:flex;align-items:flex-start;gap:12px}.focus-item h2{font-size:19px;line-height:1.3;font-weight:700;flex:1;margin:0}.focus-complete{position:static;display:flex;gap:5px;align-items:center;border:1px solid var(--border);min-height:34px;font-size:12px;padding:5px 9px;white-space:nowrap;border-radius:7px;background:var(--panel);color:var(--muted)}.focus-complete span{font-size:10px}.focus-next{font-size:13px;color:var(--ink);line-height:1.55;margin:10px 0 0;padding:0;background:none}.focus-why{font-size:11px;line-height:1.5;margin:9px 0 0;color:var(--muted)}.focus-why strong{font-weight:600;margin-right:4px}.focus-actions{display:flex;align-items:center;gap:8px;margin-top:16px;flex-wrap:wrap}.focus-actions>button{min-height:36px;font-size:11px;padding:7px 11px}.focus-actions .quiet-action{border-color:transparent;background:none;color:var(--muted)}.focus-more{position:relative;margin-left:auto}.focus-more>summary{display:grid;place-items:center;min-height:36px;min-width:36px;font-size:12px;letter-spacing:2px;cursor:pointer;list-style:none;color:var(--muted)}.focus-more>summary::-webkit-details-marker{display:none}.focus-more>div{position:absolute;z-index:6;right:0;top:38px;min-width:210px;max-width:min(290px,70vw);padding:8px;background:var(--panel);border:1px solid var(--border);border-radius:10px;box-shadow:0 8px 24px #0002;display:grid;gap:3px}.focus-more>div button{text-align:left;border:0;background:none;font-size:12px;min-height:36px}.focus-more>div>details{font-size:11px;padding:8px}.focus-more>div p{font-size:11px;margin:8px 0}.focus-add-row{margin:15px 0 0;display:flex;align-items:center;justify-content:space-between;gap:12px}.focus-add-row button{font-size:11px;min-height:38px;background:none}.focus-add-row span{font-size:10px;max-width:160px;color:var(--muted);text-align:right}.past-focus{font-size:11px;color:var(--muted);margin-top:19px}.past-focus summary{cursor:pointer;min-height:30px}.past-focus p{padding:10px 0;line-height:1.6}.focus-secondary{border-left:1px solid var(--border);padding-left:24px}.waiting-risk-panel{border:0;border-radius:0;padding:0;background:none;margin:0 0 20px}.waiting-risk-panel h2{font-size:12px;letter-spacing:0;font-weight:700;margin-bottom:16px}.waiting-risk-panel #waitingRiskStrip{display:block}.waiting-risk-panel #waitingRiskStrip>div{border:0;border-bottom:1px solid var(--border);padding:0 0 13px;margin-bottom:13px;background:none;border-radius:0}.waiting-risk-panel strong{font-size:12px;line-height:1.5;display:block;font-weight:550;color:var(--ink)}.waiting-risk-panel span{display:block;font-size:10px;margin:5px 0;color:var(--muted)}.waiting-risk-panel details{font-size:10px;margin-top:7px}.waiting-risk-panel details p{font-size:11px;line-height:1.6;margin:8px 0}.focus-secondary>details{padding:12px 0;border:0;border-top:1px solid var(--border);border-radius:0;background:none;margin:0}.focus-secondary>details>summary{font-size:12px;min-height:30px;letter-spacing:0;color:var(--ink)}.focus-secondary>details .lane-note{font-size:10px;margin:6px 0 12px}.focus-secondary>details>summary span:last-child{font-size:10px;color:var(--muted)}.focus-secondary>details[open]{grid-column:auto}.focus-risk{margin:0 0 16px;background:var(--panel);border:1px solid var(--border);padding:10px 12px;border-radius:8px;font-size:11px}.focus-risk:empty{display:none}
/* One consistent task list. Priority + subject on the second line, no photos. */
.tasks-progress{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0;border:0;background:none;margin:0 0 22px;border-radius:0}.tasks-progress-total{display:flex;align-items:center;gap:11px}.tasks-progress-total>strong{font-size:34px;font-weight:730;letter-spacing:-1px;line-height:1}.tasks-progress h1{font-size:21px;line-height:1.25}.tasks-progress-total p{font-size:10px;margin-top:2px}.tasks-progress>p{font-size:10px;margin:0;text-align:right;max-width:300px}.filter-search-bar{gap:9px;margin:0 0 12px}.filter-search-bar input{background:var(--panel);min-height:44px;font-size:13px}.filter-search-bar button{min-height:44px;font-size:12px}.active-filter-chips{margin-bottom:14px;gap:6px}.active-filter-chips button{font-size:10px;min-height:28px;padding:4px 8px;border-radius:20px;background:var(--pale);border:0}.task-row,.dialog-body .task-row,.detail-panel .task-row,body[data-task-density="compact"] .task-row,body[data-task-density="compact"] .detail-panel .task-row{position:relative;display:grid;grid-template-columns:36px minmax(0,1fr) 120px;gap:0 10px;align-items:center;min-height:68px;padding:9px 12px 9px 7px;margin:0;border:0;border-bottom:1px solid var(--border);border-left:3px solid var(--task-accent)!important;border-radius:0;background:var(--panel);box-shadow:none}.task-row:first-child{border-radius:9px 9px 0 0}.task-row:last-child{border-radius:0 0 9px 9px}.task-row:only-child{border-radius:9px}.task-row:hover{background:color-mix(in srgb,var(--panel) 80%,var(--pale))}.task-row::before{content:none!important;display:none!important}.task-row>.task-check,body[data-task-density="compact"] .task-row>.task-check{position:relative;grid-column:1;grid-row:1;inset:auto;width:36px;height:44px;min-height:44px;border:0;background:none!important;border-radius:0;margin:0;font-size:15px;z-index:2;align-self:center;color:var(--panel)}.task-row>.task-check::before{content:'';position:absolute;width:17px;height:17px;border:1.5px solid #a6a9ae;border-radius:50%;inset:13px 9px;z-index:-1;background:var(--panel)}.task-row>.task-check.done::before{background:var(--ink);border-color:var(--ink)}.task-row>.task-check::after{inset:0}.task-row .task-main,body[data-task-density="compact"] .task-row .task-main{grid-column:2;grid-row:1;padding:0;min-height:44px;display:flex;flex-direction:column;justify-content:center;cursor:pointer}.task-row .task-title,body[data-task-density="compact"] .task-row .task-title{font-size:14px;line-height:20px;font-weight:600;letter-spacing:-.01em;white-space:normal;display:block;overflow:visible;-webkit-line-clamp:unset}.task-priority-line{display:flex;align-items:center;gap:8px;margin:2px 0 0;min-height:27px}.priority-tap{min-height:27px;padding:3px 6px;font-size:9px;border-radius:4px;line-height:1.2}.priority-tap>span{width:5px;height:5px}.task-priority-line .compact-cue,body[data-task-density="compact"] .compact-cue{display:block;min-width:0;font-size:10px;line-height:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0;color:var(--muted)}.task-row .task-quick-actions,body[data-task-density="compact"] .task-row .task-quick-actions{position:static;grid-column:3;grid-row:1;display:flex;align-items:center;justify-content:flex-end;gap:0;margin:0}.task-row .task-quick-actions button{width:40px;min-height:44px;height:44px;padding:0;border:0;background:none;color:var(--muted);font-size:17px}.task-row .task-quick-actions button:hover{background:var(--pale)}.task-row .task-quick-actions button[aria-pressed="true"]{color:var(--ink);background:none}.task-row .task-context,.task-row .waiting-person{display:none!important}.task-row .row-primary{grid-column:2/4;grid-row:2;padding:0;margin:9px 0 4px}.task-row .task-disclosure,body[data-task-density="compact"] .task-row .task-disclosure{grid-column:2/4;grid-row:3;padding:0;border:0;margin:0}.task-disclosure>summary,body[data-task-density="compact"] .task-disclosure>summary{position:absolute;clip-path:inset(50%);width:1px;height:1px;min-height:0;padding:0}.task-disclosure[open],body[data-task-density="compact"] .task-disclosure[open]{padding:9px 0 4px;margin-top:4px;border:0}.task-disclosure[open]>summary,body[data-task-density="compact"] .task-disclosure[open]>summary{position:static;display:none}.task-expanded,body[data-task-density="compact"] .task-expanded{padding:0;margin:0;border:0}.mini-expanded{display:block}.mini-next p{font-size:12px;line-height:1.55;margin:0 0 6px;color:var(--muted)}.mini-next strong{font-size:10px;font-weight:650;color:var(--ink);letter-spacing:0;margin-right:7px}.task-capability-note{margin:9px 0!important;font-size:10px!important}.task-capability-note strong{display:inline;color:var(--ai-ink)!important}.mini-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:9px}.mini-actions>button{min-height:34px;font-size:10px;padding:6px 9px}.mini-actions>button[data-action="done"]{display:none}.mini-actions>.task-more-details{flex-basis:100%;font-size:11px;margin:5px 0}.task-more-details>summary{min-height:28px;cursor:pointer;color:var(--muted)}.task-more-details p{font-size:12px;line-height:1.6;margin-top:10px}.task-more-details .full-task-title{display:none}.task-row .task-guidance{margin-top:9px}.task-why{font-size:11px}.ai-next{padding:10px;background:var(--ai-bg)}.ai-next p{font-size:12px;line-height:1.5}.ai-review-button{font-size:11px;min-height:34px;padding:6px 10px}.task-order-actions{grid-column:2/4!important;grid-row:2!important}.task-row:has(>.task-order-actions)>.task-disclosure{grid-row:4!important}.task-row:has(>.task-order-actions)>.row-primary{grid-row:3!important}.task-is-done .task-title{text-decoration:line-through;color:var(--muted)}.completed-feedback{border-radius:8px;padding:10px 12px;font-size:11px}.archive-panel{padding:13px 16px;margin-top:14px;border-radius:9px;font-size:11px}.archive-panel>summary{font-size:12px;color:var(--muted)}.capability-filter-context{font-size:11px;color:var(--muted)}
/* Subjects retain purposeful wide imagery, with compact identity in the working page. */
.subject-category-nav{display:flex;gap:3px;margin:-5px 0 20px;padding-bottom:12px;border-bottom:1px solid var(--border);overflow-x:auto}.subject-category-nav button{border:0;background:none;color:var(--muted);font-size:12px;white-space:nowrap;padding:7px 11px;min-height:36px}.subject-category-nav button.active{background:var(--pale);color:var(--ink)}.segmented{background:var(--pale);padding:3px;gap:1px;border-radius:8px}.segmented button{font-size:11px;min-height:32px;padding:6px 10px}.segmented button.active{background:var(--panel);color:var(--ink);box-shadow:0 1px 2px #0001}.overview-filter-summary{margin-bottom:16px}.project-grid{gap:16px;grid-template-columns:repeat(3,minmax(0,1fr))}.project-card{border-radius:11px;border:1px solid var(--border);background:var(--panel);box-shadow:none}.project-card:hover{background:var(--panel);box-shadow:0 4px 14px #0001}.project-card-body{padding:14px 15px}.project-card h3{font-size:16px;line-height:1.3}.project-card .project-eyebrow{font-size:10px;color:var(--muted)}.tile-meta{font-size:11px;margin-top:10px;color:var(--muted)}.project-photo,.project-logo-hero,.project-placeholder{height:168px}.project-logo-hero img{max-height:75px;max-width:160px}.project-photo{object-fit:cover}.category-panel{display:grid;grid-template-columns:45% 1fr;border:1px solid var(--border);border-radius:12px;overflow:hidden;background:var(--panel);padding:0;min-height:166px;text-align:left}.category-panel>div:last-child{padding:21px 18px;position:relative}.category-panel h2{font-size:19px}.category-panel p{font-size:11px;margin-top:7px;font-weight:400;line-height:1.5}.category-panel span{font-size:10px;display:block;margin-top:13px;color:var(--muted);font-weight:400}.category-panel b{position:absolute;bottom:19px;right:17px}.category-cover-photo,.category-brands{height:100%;min-height:166px;width:100%;object-fit:cover}.category-brands{display:flex;flex-direction:column;gap:6px;padding:14px;background:#e8e9ec}.category-brands>span{margin:0;display:grid;place-items:center;height:40px;padding:6px;border-radius:5px}.category-brands img{max-height:28px;max-width:100px;object-fit:contain}.category-brands .dark-brand{background:#17191d}.category-brands .light-brand{background:#fff}body[data-dashboard-mode="categories"] #projectGrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}body[data-density="small"] #projectGrid:not([hidden]){grid-template-columns:repeat(4,minmax(0,1fr))}body[data-density="small"][data-dashboard-mode="categories"] #projectGrid{grid-template-columns:repeat(2,minmax(0,1fr))}body[data-density="small"] .subject-card .project-photo,body[data-density="small"] .subject-card .project-logo-hero,body[data-density="small"] .subject-card .project-placeholder,body[data-density="small"] .subject-person-cover{height:116px}body[data-density="small"] .subject-card h3{font-size:14px}body[data-density="small"] .subject-card .project-card-body{padding:11px 12px}body[data-density="medium"] #projectGrid{grid-template-columns:repeat(3,minmax(0,1fr))}body[data-density="large"] #projectGrid{grid-template-columns:repeat(2,minmax(0,1fr))}body[data-density="large"] .subject-card .project-photo,body[data-density="large"] .subject-card .project-logo-hero{height:210px}.subject-page{max-width:1100px}.subject-page-toolbar{top:0;padding:12px 0;margin:0 0 17px;min-height:66px;background:var(--bg);z-index:12;gap:15px}.subject-page-toolbar button{font-size:12px;border-color:var(--border);min-height:40px}.subject-sticky-photo{width:56px;height:38px;flex-basis:56px;border-radius:6px}.subject-sticky-identity strong{font-size:17px;letter-spacing:-.02em}.subject-page .dialog-hero{max-height:180px;margin-bottom:22px;border-radius:10px}.subject-page .dialog-hero .project-photo,.subject-page .dialog-hero .project-logo-hero,.subject-page .dialog-hero .project-placeholder{height:180px}.subject-page .dialog-hero .project-photo{object-fit:cover}.subject-page .family-hero,.subject-page .family-hero .project-photo{height:230px;max-height:none;object-fit:contain;background:var(--bg)}.subject-page .task-row{scroll-margin-top:80px}.subject-page .family-switch{margin-bottom:15px}.project-info,.partner-panel,.sharing-help{font-size:11px;color:var(--muted);margin-top:22px}.project-info>summary,.partner-panel>summary,.sharing-help>summary{font-size:12px;min-height:34px}.subject-list-row{background:var(--panel);border-color:var(--border);border-radius:8px}.subject-list-row strong{font-size:14px}.subject-list-row small{font-size:10px}
/* Sheets are deliberate, not collections of cards. */
dialog{background:var(--panel);color:var(--ink);border:1px solid var(--border);border-radius:15px;box-shadow:0 20px 80px #0003}dialog::backdrop{background:#1118;backdrop-filter:blur(3px)}.capture-dialog{padding:25px;width:min(540px,calc(100vw - 32px))}.dialog-title{margin-bottom:18px}.dialog-title h2{font-size:22px}.dialog-title button{border:0;background:none}.capture-dialog #captureTitle{font-size:18px;min-height:52px;border:0;border-bottom:1px solid var(--border);border-radius:0;padding:8px 0}.voice-capture{padding:13px 0;background:none;border:0;margin:0 0 15px}.voice-capture>button{font-size:11px;min-height:36px;background:var(--pale);border:0;padding:6px 10px}.voice-capture>p{font-size:11px;margin-top:8px}.voice-capture #voiceKeyboard{background:none;color:var(--muted)}.voice-privacy{font-size:10px;color:var(--muted);margin-top:9px}.voice-privacy summary{cursor:pointer;min-height:24px}.voice-privacy small{font-size:10px;line-height:1.5}.capture-options{gap:12px}.capture-options label,.capture-extra label{font-size:11px}.capture-extra{margin-top:15px;border-top:1px solid var(--border);padding-top:12px}.capture-extra>summary{font-size:12px;color:var(--muted)}.capture-bottom{margin-top:22px;gap:15px}.capture-bottom span{font-size:10px;max-width:180px}.capture-bottom button{font-size:12px}.sheet-heading h2{font-size:20px}.sheet-content{gap:22px}.sheet-content legend{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}.sheet-content label{font-size:11px}.sheet-content select{font-size:13px}.sheet-content fieldset{gap:13px}.capability-filter-group>p{font-size:10px;max-width:400px}.ai-context{background:var(--ai-bg);padding:18px}.ai-context h3{font-size:19px}.ai-step-summary{font-size:13px}.ai-capability-summary{font-size:11px}.ai-actions .button-link,.ai-actions button{font-size:11px;min-height:40px}.ai-dialog{padding:24px}.ai-dialog .desktop-chat-note{font-size:10px}.toast{left:calc(50% + var(--rail)/2);bottom:22px;max-width:min(590px,calc(100vw - var(--rail) - 60px));border-radius:10px;font-size:12px}
/* Map keeps the existing drag / expand model, with clear tools and a list fallback. */
.map-toolbar{align-items:center;margin-bottom:15px}.map-tools{gap:5px;flex-wrap:wrap}.map-tools button{font-size:10px;min-height:34px;padding:7px 9px}.breadcrumb{font-size:13px}.area-shortcuts{gap:5px;margin-bottom:14px}.area-shortcuts button{font-size:11px;background:var(--panel);border-color:var(--border)}.map-shell{border-color:var(--border);border-radius:12px}.map-stage{background-color:var(--panel);background-image:radial-gradient(var(--border) 1px,transparent 1px);height:calc(100dvh - 250px);min-height:400px}.map-layout{grid-template-columns:minmax(0,1fr) 290px;gap:20px}.detail-panel{border-color:var(--border);border-radius:12px;background:var(--panel);max-height:calc(100dvh - 220px);padding:15px}.detail-panel h2{font-size:15px}.map-node{border-radius:10px;box-shadow:0 3px 12px #0001}.map-bottom{background:var(--panel);border-color:var(--border);font-size:10px}.zoom-controls{background:var(--panel);border-color:var(--border);box-shadow:0 2px 10px #0001}.zoom-controls output{color:var(--muted)}
@media(min-width:1500px){main{padding-left:54px;padding-right:54px}.focus-workspace{grid-template-columns:minmax(0,1fr) 315px;gap:45px}}
@media(max-width:1150px) and (min-width:761px){:root{--rail:180px}main{padding:30px 24px 60px}.app-header{padding-left:12px;padding-right:12px}.focus-workspace{grid-template-columns:minmax(0,1fr) 245px;gap:20px}.focus-secondary{padding-left:18px}.focus-item{padding:18px 15px;gap:10px}.focus-item h2{font-size:17px}.focus-complete span{display:none}.category-panel{grid-template-columns:40% 1fr}.category-panel>div:last-child{padding:17px 14px}.category-panel h2{font-size:17px}.map-layout{grid-template-columns:minmax(0,1fr)}.detail-panel{max-height:none}.map-stage{height:550px}body[data-density="small"] #projectGrid:not([hidden]){grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){
 :root{--rail:0px}.app-header,body[data-view="subject"] .app-header{position:sticky;top:0;inset:auto;height:54px;width:100%;display:flex;flex-direction:row;align-items:center;gap:9px;padding:8px 17px;border:0;border-bottom:1px solid var(--border);z-index:20;background:var(--panel)}.identity{font-size:17px;padding:0;gap:8px}.avatar{width:29px;height:29px;flex-basis:29px}.theme-toggle{margin:0 0 0 auto;align-self:auto;min-height:38px;font-size:11px;padding:6px 9px;border:0}.header-add,body[data-view="subject"] .header-add{display:none}.tabs{position:fixed;bottom:0;left:0;right:0;z-index:30;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));height:calc(65px + env(safe-area-inset-bottom));padding:5px 8px calc(5px + env(safe-area-inset-bottom));gap:2px;margin:0;border-top:1px solid var(--border);background:var(--panel)}.tabs button{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;min-height:51px;padding:4px 0;font-size:10px;text-align:center;border-radius:8px}.tabs button>span:first-child{font-size:20px;width:auto;height:22px}.tabs button.active{background:none;color:var(--ink)}.tabs button.active>span:first-child{font-weight:750}.tabs button.active>span:last-child{font-weight:750}#inboxCount{display:none}.quick-add,body[data-view="subject"] .quick-add{display:flex;gap:6px;align-items:center;justify-content:center;position:fixed;right:16px;bottom:calc(78px + env(safe-area-inset-bottom));z-index:25;min-height:44px;border-radius:24px;padding:10px 15px;box-shadow:0 4px 15px #0002;font-size:12px}.quick-add>span{font-size:18px;line-height:1}body[data-view="subject"] .quick-add{display:none}main{margin:0;padding:23px 16px 140px;max-width:none}.view{max-width:none}.page-heading,.today-heading{margin:0 0 19px;gap:12px}.page-heading h1,.today-heading h1{font-size:25px}.page-heading p,.today-heading p{font-size:10px;margin-top:4px}.page-heading .segmented button{font-size:10px;min-height:30px;padding:5px 7px}.page-heading p{display:none}.today-heading>button{font-size:11px;padding:5px 0;min-height:36px}.focus-plan-note{font-size:10px;margin:-7px 0 17px;line-height:1.5;max-width:330px}.focus-workspace{display:block}.focus-queue{gap:11px}.focus-item{grid-template-columns:21px minmax(0,1fr);gap:10px;padding:16px 13px 14px;border-radius:11px}.focus-rank{width:21px;height:21px;min-width:21px;font-size:10px;margin-top:22px}.focus-project{font-size:10px;margin-bottom:6px}.focus-item h2{font-size:16px;line-height:1.35}.focus-item-heading{gap:8px}.focus-complete{min-height:32px;padding:4px 7px;font-size:13px}.focus-complete span{display:none}.focus-next{font-size:12px;line-height:1.5;margin-top:9px}.focus-why{font-size:10px;line-height:1.5;margin-top:8px}.focus-actions{gap:4px;margin-top:13px}.focus-actions>button{font-size:10px;min-height:36px;padding:6px 10px}.focus-more>summary{min-height:36px;min-width:32px}.focus-add-row{margin-top:12px}.focus-add-row button{font-size:10px;min-height:36px}.focus-add-row span{font-size:9px;max-width:120px}.focus-secondary{padding:23px 0 0;margin-top:25px;border-left:0;border-top:1px solid var(--border)}.waiting-risk-panel{margin-bottom:18px}.waiting-risk-panel h2{font-size:12px;margin-bottom:15px}.waiting-risk-panel #waitingRiskStrip>div{padding-bottom:12px;margin-bottom:12px}.waiting-risk-panel strong{font-size:12px}.waiting-risk-panel span{font-size:10px}.focus-secondary>details{padding:12px 0}.focus-secondary>details>summary{min-height:30px;font-size:12px}.tasks-progress{margin-bottom:18px;gap:12px}.tasks-progress-total>strong{font-size:30px}.tasks-progress-total{gap:9px}.tasks-progress h1{font-size:19px}.tasks-progress-total p{font-size:9px}.tasks-progress>p{display:none}.filter-search-bar{gap:7px;margin-bottom:11px}.filter-search-bar input{font-size:16px;min-height:42px}.filter-search-bar button{font-size:11px;min-height:42px;padding:7px 12px}.active-filter-chips{margin-bottom:11px}.active-filter-chips button{font-size:9px;min-height:26px}.task-row,.dialog-body .task-row,.detail-panel .task-row,body[data-task-density="compact"] .task-row,body[data-task-density="compact"] .detail-panel .task-row{grid-template-columns:30px minmax(0,1fr);gap:0 7px;min-height:88px;padding:8px 7px 6px 4px;border-radius:0;margin:0}.task-row>.task-check,body[data-task-density="compact"] .task-row>.task-check{grid-column:1;grid-row:1;position:relative;inset:auto;width:30px;height:44px;min-height:44px;align-self:start;margin-top:0}.task-row>.task-check::before{inset:12px 6px;width:17px;height:17px}.task-row .task-main,body[data-task-density="compact"] .task-row .task-main{grid-column:2;grid-row:1;min-height:70px;padding:0;display:flex;justify-content:flex-start}.task-row .task-title,body[data-task-density="compact"] .task-row .task-title{font-size:13px;line-height:18px;font-weight:600;white-space:normal;display:block;overflow:visible;-webkit-line-clamp:unset;padding-right:0;min-height:18px}.task-priority-line{margin-top:auto;min-height:36px;padding-right:106px;gap:5px}.priority-tap{min-height:36px;font-size:9px;padding:4px 5px;border:0;background:transparent!important;gap:4px}.priority-tap.tier-1{color:#a9252c}.priority-tap.tier-2{color:#ac601d}.priority-tap.tier-3{color:#25824a}.priority-tap.tier-4{color:var(--muted)}.task-priority-line .compact-cue,body[data-task-density="compact"] .compact-cue{font-size:9px;line-height:13px;max-width:100%;white-space:nowrap}.task-row .task-quick-actions,body[data-task-density="compact"] .task-row .task-quick-actions{position:absolute;top:auto;right:5px;bottom:6px;display:flex;grid-column:auto;grid-row:auto;gap:0;margin:0;height:36px}.task-row .task-quick-actions button{width:35px;min-height:36px;height:36px;font-size:16px;padding:0}.task-row:has(>.task-disclosure[open]) .task-quick-actions{top:calc(100% - 42px);bottom:auto;position:static;grid-column:2;grid-row:2;justify-content:flex-end;min-height:36px;margin-top:-36px;z-index:2}.task-row:has(>.task-order-actions) .task-quick-actions,.task-row:has(>.row-primary) .task-quick-actions{position:static;grid-column:2;grid-row:2;margin-top:-36px;justify-content:flex-end;z-index:2}.task-row .task-disclosure,body[data-task-density="compact"] .task-row .task-disclosure{grid-column:2;grid-row:3;margin:0;padding:0}.task-disclosure[open],body[data-task-density="compact"] .task-disclosure[open]{padding:8px 0 5px;margin-top:0}.task-row .row-primary{grid-column:2;grid-row:3!important;margin:10px 0 0}.task-row:has(>.row-primary) .task-disclosure{grid-row:4!important}.task-row .task-order-actions{grid-column:2!important;grid-row:3!important}.task-row:has(>.task-order-actions)>.task-disclosure{grid-row:5!important}.task-row:has(>.task-order-actions)>.row-primary{grid-row:4!important}.mini-next p{font-size:11px;line-height:1.5;margin-bottom:6px}.mini-actions>button{min-height:36px;font-size:10px}.task-capability-note{font-size:10px!important}.task-more-details p{font-size:11px}.capability-filter-context{font-size:10px;margin:0 0 13px}.subject-category-nav{margin:-5px 0 15px;padding-bottom:10px;gap:0;scrollbar-width:none}.subject-category-nav button{font-size:11px;padding:7px 10px;min-height:35px}.overview-filter-summary{margin-bottom:13px}.overview-filter-summary>#dashboardCount{font-size:10px}.project-grid,body[data-density="medium"] #projectGrid,body[data-density="large"] #projectGrid{gap:12px;grid-template-columns:repeat(2,minmax(0,1fr))}body[data-density="small"] #projectGrid:not([hidden]){grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}body[data-density="large"] #projectGrid{grid-template-columns:1fr}body[data-density="small"] .subject-card .project-photo,body[data-density="small"] .subject-card .project-logo-hero,body[data-density="small"] .subject-card .project-placeholder,body[data-density="small"] .subject-person-cover{height:91px}body[data-density="medium"] .subject-card .project-photo,body[data-density="medium"] .subject-card .project-logo-hero,body[data-density="medium"] .subject-person-cover{height:110px}body[data-density="large"] .subject-card .project-photo,body[data-density="large"] .subject-card .project-logo-hero{height:190px}.project-card .project-card-body,body[data-density="small"] .subject-card .project-card-body{padding:10px 11px}.project-card h3,body[data-density="small"] .subject-card h3{font-size:13px;line-height:1.35}.project-eyebrow{font-size:9px}.tile-meta{font-size:10px;margin-top:7px}.project-logo-hero img{max-height:48px;max-width:100px}.subject-person-cover .all-subject-face,body[data-density="small"] .subject-person-cover .all-subject-face{width:65px;height:65px}body[data-dashboard-mode="categories"] #projectGrid,body[data-density="small"][data-dashboard-mode="categories"] #projectGrid{grid-template-columns:1fr;gap:12px}.category-panel{min-height:126px;grid-template-columns:39% 1fr;border-radius:10px}.category-cover-photo,.category-brands{min-height:126px}.category-panel>div:last-child{padding:16px 16px}.category-panel h2{font-size:18px}.category-panel p{font-size:10px;margin-top:5px;line-height:1.5}.category-panel span{font-size:9px;margin-top:10px}.category-panel b{bottom:15px;right:15px}.category-brands{padding:9px;gap:4px}.category-brands>span{height:32px;padding:4px}.category-brands img{max-height:23px;max-width:86px}.subject-page-toolbar{position:sticky;top:54px;z-index:12;min-height:60px;margin:-12px 0 16px;gap:8px;padding:9px 0;background:var(--bg)}.subject-page-toolbar button{min-height:40px;font-size:11px;padding:7px 9px}.subject-sticky-photo{width:43px;height:30px;flex-basis:43px}.subject-sticky-identity{gap:7px}.subject-sticky-identity strong{font-size:13px;line-height:1.3;display:block;white-space:normal;-webkit-line-clamp:unset}.subject-page .dialog-hero{max-height:126px;margin-bottom:16px;border-radius:9px}.subject-page .dialog-hero .project-photo,.subject-page .dialog-hero .project-logo-hero,.subject-page .dialog-hero .project-placeholder{height:126px}.subject-page .family-hero,.subject-page .family-hero .project-photo{height:210px;max-height:none;object-fit:contain}.subject-page .task-row{scroll-margin-top:124px}.family-switch{overflow:auto;flex-wrap:nowrap;padding-bottom:4px;gap:4px}.family-switch button{font-size:10px;white-space:nowrap;min-height:40px;padding:5px 8px}.family-switch .face-crop{width:24px;height:24px}.project-info,.partner-panel,.sharing-help{margin-top:19px;font-size:10px}.subject-list-row{grid-template-columns:65px minmax(0,1fr) 16px;gap:12px;min-height:67px}.subject-list-row strong{font-size:13px}.subject-list-row small{font-size:10px}.capture-dialog{position:fixed;inset:auto 0 0;margin:0;width:100%;max-width:none;max-height:92dvh;border-radius:17px 17px 0 0;padding:20px 18px calc(22px + env(safe-area-inset-bottom));overflow:auto}.dialog-title{margin-bottom:13px}.dialog-title h2{font-size:22px}.capture-dialog #captureTitle{font-size:18px;min-height:52px}.capture-options select{font-size:16px}.voice-capture{margin-bottom:11px}.voice-capture>button{font-size:11px;min-height:40px}.capture-bottom button{min-height:44px;font-size:13px}.capture-bottom span{font-size:10px;max-width:145px}.capture-extra select,.capture-extra input,.capture-extra textarea{font-size:16px}.filters-sheet{border-radius:17px 17px 0 0}.sheet-content{padding:19px 17px;gap:23px}.sheet-content select{font-size:16px}.sheet-heading{padding:13px 17px}.sheet-actions{padding:13px 17px calc(13px + env(safe-area-inset-bottom))}.sheet-actions button{font-size:13px}.ai-dialog{padding:20px 17px;width:calc(100vw - 20px);max-height:90dvh}.ai-context{padding:14px}.ai-context h3{font-size:17px}.ai-step-summary{font-size:13px}.toast{left:12px;right:12px;bottom:calc(135px + env(safe-area-inset-bottom));transform:none;max-width:none;width:auto;font-size:11px;padding:11px 13px}.toast button{min-height:38px;font-size:11px}.map-toolbar{display:block;margin-bottom:12px}.breadcrumb{margin-bottom:11px;font-size:12px}.map-tools{display:flex;gap:4px}.map-tools button{font-size:9px;min-height:34px;padding:5px 7px;flex:0 1 auto}.area-shortcuts{flex-wrap:nowrap;overflow:auto;gap:5px;scrollbar-width:none}.area-shortcuts button{white-space:nowrap;font-size:10px;padding:5px 8px;min-height:34px}.map-layout{display:block}.map-stage{height:480px;min-height:360px}.map-bottom{font-size:9px;flex-wrap:wrap}.detail-panel{margin-top:14px;max-height:none;padding:14px}.detail-panel .task-row{min-height:88px}.map-node .node-name{font-size:12px}.zoom-controls{left:10px;bottom:10px}.zoom-controls button{width:40px;min-height:40px}footer{font-size:9px;display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin-top:30px;padding-top:18px}footer>div{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-start}footer button{font-size:9px;padding:4px 7px}.skip-link{left:10px}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
@media(max-width:760px){body[data-task-density="detailed"] .task-row .task-quick-actions{position:static;grid-column:2;grid-row:2;margin-top:4px;justify-content:flex-end}body[data-task-density="detailed"] .task-row .task-priority-line{padding-right:0}body[data-task-density="detailed"] .task-row .row-primary{grid-row:3!important}body[data-task-density="detailed"] .task-row .task-disclosure{grid-row:4!important}}
@media(max-width:760px){html[data-theme="dark"] .priority-tap.tier-1{color:#f28b82}html[data-theme="dark"] .priority-tap.tier-2{color:#efae68}html[data-theme="dark"] .priority-tap.tier-3{color:#81c995}html[data-theme="dark"] .priority-tap.tier-4{color:#a5a6aa}}

/* v22: completion stays accessible without crowding active work. */
.tasks-progress,.remaining-progress{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:22px 24px;border:1px solid var(--border);border-radius:12px;background:var(--panel);margin:0 0 20px}
.tasks-progress-total>strong,.remaining-progress strong{font-size:64px;line-height:1;font-weight:750;letter-spacing:-2px;font-variant-numeric:tabular-nums;color:var(--ink)}
.tasks-progress h1{font-size:21px}.tasks-progress-total p,.tasks-progress>p,.remaining-progress>p{font-size:12px;line-height:1.5;color:var(--muted)}
.remaining-progress>div{display:flex;align-items:center;gap:16px}.remaining-progress span{font-size:21px;font-weight:650}.remaining-progress>p{margin:0;text-align:right;max-width:45%}
.completed-section{margin-top:22px;padding:14px 16px;background:var(--panel);border:1px solid var(--border);border-radius:10px}.completed-section>summary{font-size:14px;font-weight:650;cursor:pointer;min-height:28px;line-height:28px}.completed-section>summary span{display:inline-block;margin-left:6px;color:var(--muted);font-variant-numeric:tabular-nums}.completed-note{font-size:12px;color:var(--muted);line-height:1.5;margin:6px 0 16px}.completed-section .task-row{border-left-color:var(--border)!important}.completed-section .task-quick-actions{visibility:hidden}.completed-task-list .mini-actions>button[data-action="done"]{display:inline-flex}
@media(max-width:720px){.tasks-progress,.remaining-progress{padding:17px 16px;gap:12px;align-items:flex-start;flex-direction:column;margin-bottom:16px}.tasks-progress-total>strong,.remaining-progress strong{font-size:56px}.tasks-progress h1,.remaining-progress span{font-size:18px}.tasks-progress>p,.remaining-progress>p{max-width:none;text-align:left;margin:0;font-size:11px}.completed-section{padding:12px 10px;margin-top:18px}.completed-note{font-size:11px}.completed-section .task-row{padding-right:7px}.completed-section .task-quick-actions{display:none!important}.completed-section .task-main{grid-column:2/-1!important}}

/* The subject toolbar is anchored to the viewport edge, never below a leaking strip. */
body[data-view="subject"] main{padding-top:0}.subject-page-toolbar{isolation:isolate;top:0;margin-top:0;padding-top:10px;padding-bottom:10px;z-index:19}
.subject-page-toolbar::before{content:"";position:absolute;inset:0;background:var(--bg);box-shadow:-60px 0 var(--bg),60px 0 var(--bg);z-index:-1;pointer-events:none}
@media(max-width:760px){
 .app-header,body[data-view="subject"] .app-header{inset:auto;top:0;height:calc(54px + env(safe-area-inset-top,0px));padding-top:calc(8px + env(safe-area-inset-top,0px));z-index:30}
 .subject-page-toolbar{top:calc(54px + env(safe-area-inset-top,0px));margin-top:0;margin-bottom:14px;padding:8px 0;z-index:19}
 .subject-page-toolbar::before{inset:0;box-shadow:-16px 0 var(--bg),16px 0 var(--bg)}.subject-page .task-row{scroll-margin-top:calc(124px + env(safe-area-inset-top,0px))}
 .tasks-progress>p{display:block}.completed-task-list .task-priority-line{padding-right:0}
}

.task-added{display:block;font-size:10px;font-weight:400;line-height:1.5;color:var(--muted);margin-top:3px}.focus-body>.task-added{margin:3px 0 0}.completed-section .task-added{color:var(--muted)}
@media(max-width:760px){.task-row .task-added{font-size:9px;margin-top:2px}.task-row .task-main{min-height:86px!important}.task-row .task-priority-line{margin-top:3px}.task-row .task-quick-actions{bottom:21px!important;top:auto!important}}

/* Task provenance stays visible without opening Details. */
.task-provenance-line{display:flex;align-items:center;flex-wrap:wrap;gap:3px 10px;margin-top:5px;font-size:10px;line-height:1.6;color:var(--muted)}.task-provenance-line .task-added{display:inline;margin:0;font-size:inherit}.task-origin{font-weight:600}.task-source-link{color:var(--muted);text-decoration:underline;text-underline-offset:2px}.task-source-link:hover{color:var(--ink)}.priority-order-note{margin:0 0 10px;color:var(--muted);font-size:11px}.focus-body>.task-provenance-line{margin:6px 0 10px}
@media(max-width:760px){
 .task-provenance-line{font-size:10px;gap:2px 8px;margin-top:4px}.task-row .task-main,body[data-task-density="compact"] .task-row .task-main{min-height:0!important}.task-row .task-priority-line{padding-right:0;margin-top:4px}
 .task-row .task-quick-actions,body[data-task-density="compact"] .task-row .task-quick-actions,.task-row:has(>.task-disclosure[open]) .task-quick-actions,.task-row:has(>.task-order-actions) .task-quick-actions,.task-row:has(>.row-primary) .task-quick-actions{position:static!important;grid-column:2;grid-row:2;top:auto!important;bottom:auto!important;margin:3px 0 0!important;justify-content:flex-end}
 .task-row .row-primary{grid-column:2!important;grid-row:3!important}.task-row .task-order-actions{grid-column:2!important;grid-row:3!important}.task-row:has(>.task-order-actions) .row-primary{grid-row:4!important}.task-row .task-disclosure,body[data-task-density="compact"] .task-row .task-disclosure,.task-row:has(>.task-order-actions)>.task-disclosure,.task-row:has(>.row-primary)>.task-disclosure{grid-column:2!important;grid-row:5!important;margin-right:0}
 .completed-section .task-quick-actions{display:none!important}.priority-order-note{font-size:10px;line-height:1.6}
}

.app-loading{padding:16px 0;color:var(--muted);font-size:13px}

/* One tap opens a direct four-choice priority menu. */
.priority-picker{position:fixed;z-index:80;width:260px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto;padding:10px;background:var(--panel);border:1px solid var(--border);border-radius:12px;box-shadow:0 12px 38px #0003}.priority-picker>p{font-size:11px;line-height:1.4;padding:4px 6px 9px;border-bottom:1px solid var(--border);margin-bottom:5px;overflow-wrap:anywhere}.priority-choice{display:flex;align-items:center;gap:10px;width:100%;min-height:46px;padding:10px 12px;border:0;background:none;text-align:left;font-size:14px}.priority-choice[aria-checked="true"]{background:var(--pale);font-weight:750}.priority-choice[aria-checked="true"]::after{content:'✓';margin-left:auto;color:var(--ink)}.priority-choice>span{width:9px;height:9px;border-radius:50%;background:#62758b}.priority-choice.tier-1>span{background:#c13535}.priority-choice.tier-2>span{background:#bd6c20}.priority-choice.tier-3>span{background:#2b8e61}.priority-choice.tier-4>span{background:#7c65a5}.priority-tap .priority-chevron{display:inline!important;background:none!important;width:auto!important;height:auto!important;font-size:12px}.priority-tap{min-height:36px}
@media(max-width:760px){.priority-tap{min-height:44px;padding:6px 9px!important;touch-action:manipulation}.priority-choice{min-height:48px}.priority-picker{width:270px}}

.orbit-brand-mark,.orbit-brand-mark img{border-radius:9px}.orbit-brand-mark{background:#000;overflow:hidden}.orbit-brand-mark img{display:block;width:100%;height:100%;object-fit:contain}

/* v25: Orbit blue selection, calmer task rows and one Personal identity. */
:root{--orbit-accent:#3B9EFF}
.tabs button.active,.subject-category-nav button.active,.area-shortcuts button.active,.family-switch button.active{background:#3B9EFF;color:#071c36;border-color:#3B9EFF;font-weight:750}
.tabs button.active>span{color:inherit}.tabs button.active:hover{background:#68b4ff;color:#071c36}
.task-row,.dialog-body .task-row,.detail-panel .task-row,body[data-task-density="compact"] .task-row{grid-template-columns:36px minmax(0,1fr);gap:0 12px;padding:14px 12px 10px 7px}
.task-row .task-main,body[data-task-density="compact"] .task-row .task-main{grid-column:2/-1;grid-row:1;padding:0;min-width:0;min-height:0!important}
.task-row .task-title,body[data-task-density="compact"] .task-row .task-title{white-space:normal;display:block;overflow:visible;-webkit-line-clamp:unset;line-height:1.45;padding:0;font-size:15px}
.task-priority-line{padding-right:0;gap:10px;flex-wrap:wrap;margin-top:4px}.task-priority-line .compact-cue{max-width:none;white-space:normal;overflow:visible}
.task-row .task-disclosure,body[data-task-density="compact"] .task-row .task-disclosure,.task-row:has(>.task-order-actions)>.task-disclosure{grid-column:2/-1!important;grid-row:3!important;margin:0;padding:0}
.task-disclosure>summary,body[data-task-density="compact"] .task-disclosure>summary,.task-disclosure[open]>summary,body[data-task-density="compact"] .task-disclosure[open]>summary{position:static;clip-path:none;display:list-item;width:fit-content;height:auto;min-height:36px;padding:8px 0;color:var(--muted);font-size:11px;cursor:pointer}
.task-row .task-order-actions{grid-column:2/-1!important;grid-row:2!important;justify-content:flex-end}.task-row .mini-actions{gap:8px}.task-row .mini-actions>button{min-height:42px}.task-row .task-provenance-line{line-height:1.6;gap:3px 12px}.task-row .task-source-link{overflow-wrap:anywhere}
.personal-cover,.personal-category-cover{display:flex;align-items:center;justify-content:center;background:var(--panel);min-height:150px}
.personal-cover .face-user,.personal-category-cover .face-user{width:108px;height:108px;border-radius:50%;box-shadow:0 0 0 4px #3B9EFF25}
.subject-page .personal-hero{height:150px;max-height:150px;background:var(--panel)}.subject-page .personal-cover{height:150px}
.subject-sticky-photo.personal-identity{border-radius:50%;width:36px;height:36px;flex-basis:36px}.subject-sticky-photo.personal-identity img{border-radius:50%;object-fit:cover}
.personal-inside{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px;color:var(--muted);font-size:12px}.personal-inside button{display:flex;align-items:center;gap:8px;min-height:44px}.personal-inside .face-crop{width:28px;height:28px}
.category-manager{width:min(680px,calc(100vw - 28px));max-height:88dvh;overflow:auto;padding:24px;background:var(--panel);color:var(--ink);border:1px solid var(--border);border-radius:16px}.category-manager::backdrop{background:#0007}
.category-manager .dialog-title{display:flex;align-items:center;justify-content:space-between}.category-manager .dialog-title button{min-width:44px;min-height:44px}.category-help,.category-delete-panel p,#categoryDeletedList p{font-size:12px;line-height:1.6;color:var(--muted);margin:12px 0 16px}.category-manager #addCategory{margin:0 0 12px;min-height:44px}
.category-manage-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 0;border-bottom:1px solid var(--border)}.category-manage-row>div:first-child{min-width:0}.category-manage-row strong{display:block;overflow-wrap:anywhere;font-size:14px}.category-manage-row small{display:block;margin-top:4px;color:var(--muted);font-size:11px}.category-manage-actions{display:flex;gap:5px;flex-shrink:0}.category-manage-actions button{min-height:44px;padding:6px 10px}
.category-editor,.category-delete-panel{padding:18px;border:1px solid var(--border);border-radius:12px;margin:12px 0;background:var(--bg)}.category-manager label{display:block;font-size:12px;margin:12px 0}.category-manager input,.category-manager select{display:block;width:100%;font-size:16px;min-height:44px;margin-top:6px}.category-editor>div,.category-delete-panel>div{display:flex;gap:8px;flex-wrap:wrap}.category-editor button,.category-delete-panel button{min-height:44px}#categoryError{color:#b32b39;font-size:13px;line-height:1.5}#categoryDeletedList{margin-top:24px}.category-manager [hidden]{display:none!important}
/* Project 4's exact app asset fills a single black visual surface. No nested logo box. */
.project-logo-hero.protocol-logo,.subject-list-image.protocol-logo,.node-visual.protocol-logo,.subject-sticky-photo.protocol-logo{background:#000!important;padding:0!important;border:0!important;overflow:hidden}
.project-logo-hero.protocol-logo img{width:100%;height:100%;max-width:none!important;max-height:none!important;object-fit:contain;transform:scale(1.16);border-radius:0;background:#000}
.subject-list-image.protocol-logo img,.node-visual.protocol-logo .node-photo,.subject-sticky-photo.protocol-logo img{width:100%;height:100%;max-width:none;max-height:none;object-fit:contain;padding:0;transform:scale(1.16);border-radius:0;background:#000}
@media(max-width:760px){
 .tabs button.active{background:#3B9EFF;color:#071c36}.tabs button.active>span{color:inherit}
 .task-row,.dialog-body .task-row,.detail-panel .task-row,body[data-task-density="compact"] .task-row{grid-template-columns:30px minmax(0,1fr);gap:0 8px;padding:12px 6px 8px 3px}
 .task-row .task-title,body[data-task-density="compact"] .task-row .task-title{font-size:14px;line-height:1.45}
 .task-row .task-priority-line{gap:4px 8px;min-height:44px;padding-right:0}.task-row .task-disclosure,body[data-task-density="compact"] .task-row .task-disclosure{grid-row:3!important}
 .task-row .task-provenance-line{font-size:10px;gap:2px 8px}.task-disclosure>summary{min-height:40px}
 .filter-search-bar:has(#manageCategories){flex-wrap:wrap}.filter-search-bar:has(#manageCategories)>input{flex:1 1 100%}.filter-search-bar #manageCategories{min-height:42px}
 .category-manager{width:calc(100vw - 16px);padding:18px 14px;max-height:90dvh}.category-manage-row{align-items:flex-start;flex-direction:column;gap:8px}.category-manage-actions{width:100%;justify-content:flex-end}.category-manage-actions button{min-width:44px}
 .subject-page-toolbar #editCurrentCategory{font-size:10px;padding:5px 6px}.personal-inside{font-size:11px;align-items:flex-start}.personal-category-cover{min-height:126px}.personal-category-cover .face-user{width:88px;height:88px}.personal-cover .face-user{width:96px;height:96px}
}

.protocol-logo img{filter:contrast(1.12)}

.personal-inside nav{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px}.personal-inside nav button{font-size:12px}
/* The title opens details; collapsed rows spend their space on the task, not controls. */
.task-disclosure:not([open])>summary,body[data-task-density="compact"] .task-disclosure:not([open])>summary{position:absolute;clip-path:inset(50%);width:1px;height:1px;min-height:0;padding:0;overflow:hidden}
.task-disclosure:not([open])>summary:focus-visible,body[data-task-density="compact"] .task-disclosure:not([open])>summary:focus-visible{position:static;clip-path:none;width:fit-content;height:auto;min-height:36px;padding:8px 0;overflow:visible}
