.activity-details-open .app{visibility:hidden}.activity-details-open #modalRoot{visibility:visible}
.activity-details-page{position:fixed;inset:0;z-index:900;max-width:100vw;box-sizing:border-box;overflow-x:hidden;overflow-y:auto;background:#fff;color:var(--color-gray-dark,#404040);padding:max(12px,env(safe-area-inset-top)) 20px max(32px,env(safe-area-inset-bottom));overscroll-behavior:contain}
.activity-details-page>*{max-width:540px;margin-left:auto;margin-right:auto;box-sizing:border-box}
.activity-details-head{display:grid;grid-template-columns:64px 1fr 64px;align-items:start;gap:12px}.activity-details-head button,.activity-details-actions button{display:grid;place-items:center;width:44px;height:44px;padding:8px;background:transparent;color:#777;border:0}
.activity-details-head svg,.activity-details-actions svg{width:28px;height:28px}.activity-details-head .activity-owner{display:grid;place-items:center;border:1px solid #a6a6a6;border-radius:50%!important;width:82px;height:82px;margin:auto;font-size:30px;font-weight:400}
.activity-details-head .activity-details-complete{position:relative;border-radius:50%!important;background:var(--detail-state,#4199c9);color:#fff;width:48px;height:48px}.activity-details-complete span{position:absolute;top:calc(100% + 6px);font-size:10px;line-height:1.2;max-width:100px;color:#5a5a5a;text-transform:uppercase}
.activity-created{text-align:center;font-size:12px;color:#777;margin-top:10px;margin-bottom:14px}
.details-name-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.activity-details-page .activity-details-name{display:block;width:100%;border:1px solid #d9d9d9!important;border-radius:30px!important;background:#fff;color:#404040;font:inherit;font-size:24px;font-weight:500;padding:12px 20px;min-height:56px}
.activity-details-error:empty{display:none}.activity-details-error{font-size:13px;color:#a32929}
.activity-details-actions{display:flex;justify-content:space-between;align-items:center;margin-top:6px;margin-bottom:-48px;position:relative;z-index:2;pointer-events:none}.activity-details-actions button{pointer-events:auto}
.activity-details-needs{position:relative;max-width:420px}.activity-details-page .needs-modes{margin:0 60px 20px;position:relative;z-index:3}.activity-details-page .needs-modes button{display:grid;place-items:center;width:42px;height:42px;min-width:42px;border:0;background:transparent;color:#777;padding:8px;border-radius:50%!important}.activity-details-page .needs-modes button[aria-pressed=true]{background:#f47721;color:#fff}
.activity-details-page .basic-needs-viewport{position:relative;width:100%;aspect-ratio:.85;overflow:visible}.activity-details-page .basic-needs-orbit{inset:0;width:100%;height:100%;animation:none!important}
.activity-details-page .basic-need,.activity-details-page .needs-subactivities{position:absolute;display:grid;place-items:center;width:30%;aspect-ratio:1;padding:0;border:0;background:transparent;color:#5a5a5a;animation:none!important;font:inherit;font-size:16px}
.activity-details-page .basic-need svg{width:60%;height:60%}.activity-details-page .needs-artwork{width:92%;height:92%;object-fit:contain}.activity-details-page .needs-subactivities .needs-artwork{width:92%;height:92%}
.activity-details-page [data-need-slot="0"]{left:35%;top:37%}.activity-details-page [data-need-slot="1"]{left:1%;top:55%}.activity-details-page [data-need-slot="2"]{left:1%;top:25%}.activity-details-page [data-need-slot="3"]{left:35%;top:0}.activity-details-page [data-need-slot="4"]{left:69%;top:25%}.activity-details-page [data-need-slot="5"]{left:69%;top:55%}.activity-details-page .needs-subactivities{left:35%;top:71%}
.activity-details-page [data-basic-need=where] img{transform:scaleX(-1)}.activity-details-page [data-basic-need=files] img{transform:rotate(-20deg)}
.details-count{position:absolute;right:0;top:0;display:grid;place-items:center;width:22px;height:22px;border-radius:50%!important;background:#000;color:#fff;font-size:12px}.details-schedule-label{position:absolute;top:90%;white-space:normal;width:140%;font-size:12px;color:#5a5a5a}
.activity-details-notes{display:grid;place-items:center;width:44px;height:44px;border:0;background:transparent;color:#5a5a5a;padding:14px;text-align:center;text-decoration:none}
html.minimal-ui .view-day-arrow{position:relative;border:1px solid #a6a6a6!important;border-radius:50%!important;width:36px;height:36px;min-height:36px;flex-basis:36px}
.view-day-count{position:absolute;right:-7px;top:-8px;background:#fff;color:#5a5a5a;min-width:18px;font-size:11px;text-align:center}.today-icon-date{position:absolute;left:20%;right:20%;top:38%;background:#fff;color:#404040;text-align:center;font:bold 22px/1.25 system-ui;pointer-events:none}
html.minimal-ui .minimal-title-artwork{position:relative}

.activity-details-notes svg{width:26px;height:26px}
/* Grid slots prevent arrows, artwork and changing day labels from overlapping. */
html.minimal-ui .minimal-view-heading.has-date-navigation{position:relative;display:grid;grid-template-columns:44px 36px minmax(0,1fr) 36px 44px;align-items:center;height:64px;min-height:64px;padding:0;gap:6px}
html.minimal-ui .has-date-navigation .minimal-title{grid-column:3;grid-row:1;display:grid;grid-template-columns:60px minmax(0,1fr);align-items:center;position:static;transform:none;width:100%;height:64px;margin:0;padding:0!important;gap:8px;font-size:clamp(20px,5.5vw,30px)!important}
html.minimal-ui .has-date-navigation .minimal-title>span:last-child{justify-self:start;text-align:left;white-space:nowrap;min-width:0}
html.minimal-ui .has-date-navigation .view-day-arrow{position:relative;top:auto;left:auto;right:auto;transform:none;margin:0;box-shadow:none!important;outline:none!important}
html.minimal-ui .has-date-navigation .view-day-arrow:first-child{grid-column:2;grid-row:1}
html.minimal-ui .has-date-navigation .view-day-arrow:last-child{grid-column:4;grid-row:1}
html.minimal-ui .has-date-navigation .view-day-arrow:focus-visible{border-color:#404040!important}
html.minimal-ui .has-date-navigation .minimal-title-artwork>svg.live-date-icon{width:60px!important;height:60px!important;transform:none!important}
@media(max-width:380px){html.minimal-ui .minimal-view-heading.has-date-navigation{grid-template-columns:36px 32px minmax(0,1fr) 32px 14px;gap:4px}html.minimal-ui .has-date-navigation .minimal-title{grid-template-columns:48px minmax(0,1fr);gap:4px;font-size:22px!important}html.minimal-ui .has-date-navigation .minimal-title-artwork{width:48px!important;min-width:48px!important;max-width:48px!important;flex-basis:48px!important}html.minimal-ui .has-date-navigation .minimal-title-artwork>svg.live-date-icon{width:48px!important;height:48px!important}html.minimal-ui .view-day-arrow{width:32px;height:32px;min-height:32px}}

/* Schedule belongs on the center calendar; the name keeps a neutral focus. */
html.minimal-ui .activity-details-page .activity-details-name:focus,html.minimal-ui .activity-details-page .activity-details-name:focus-visible{outline:none!important;box-shadow:none!important;border-color:var(--color-gray-light,#a6a6a6)!important}
.activity-details-page [data-basic-need=when] svg.live-date-icon{width:92%;height:92%}

/* Keep the uploaded calendar fixed; widen the arrow pair by 40px total. */
html.minimal-ui .minimal-view-heading.has-date-navigation{grid-template-columns:24px 36px minmax(0,1fr) 36px 24px}
html.minimal-ui .has-date-navigation .minimal-title{gap:5px}
.view-day-count{display:grid;place-items:center;min-width:18px;height:18px;padding:0 4px;border-radius:50%!important;background:#000!important;color:#fff!important;font-size:11px;line-height:1;border:1px solid #fff;box-sizing:border-box}
@media(max-width:380px){html.minimal-ui .minimal-view-heading.has-date-navigation{grid-template-columns:16px 32px minmax(0,1fr) 32px 0;gap:4px}html.minimal-ui .has-date-navigation .minimal-title{gap:5px}}
.activity-details-status{text-align:center;font-size:13px;color:var(--color-gray,#5a5a5a);margin:8px auto 12px;min-height:18px}
.activity-details-actions>span{flex:1}.activity-details-actions button{flex:none}
.activity-notes-page{position:fixed;inset:0;z-index:2;background:#fff;padding:max(16px,env(safe-area-inset-top)) 20px 32px;overflow:auto;max-width:none}
.activity-notes-page>*{display:block;max-width:540px;margin:16px auto}.activity-notes-page h1{font-size:24px;font-weight:500}
.activity-notes-page button{width:44px;height:44px;padding:8px;border:0;background:transparent;color:#5a5a5a}.activity-notes-page svg{width:28px;height:28px}
.activity-notes-page textarea{width:100%;min-height:55vh;font:inherit;padding:16px;border:1px solid #d9d9d9;resize:vertical;outline:none!important;box-shadow:none!important}
.activity-details-needs .move-orbit-viewport{position:relative;width:100%;aspect-ratio:1;overflow:visible;margin-top:60px}
.activity-details-needs .move-orbit{position:absolute;inset:0;animation:move-orbit-clockwise 90s linear infinite}
.activity-details-needs .move-destination{position:absolute;width:27%;aspect-ratio:1;border:0;background:transparent;color:#5a5a5a;padding:8px;animation:move-orbit-upright 90s linear infinite}
.activity-details-needs .move-destination svg{width:75%;height:75%}
.activity-details-needs [data-quick-when=today]{left:36.5%;top:0}.activity-details-needs [data-quick-when=soon]{left:68.1%;top:18.25%}.activity-details-needs [data-quick-when=whenever]{left:68.1%;top:54.75%}.activity-details-needs [data-quick-when=scheduled]{left:36.5%;top:73%}.activity-details-needs [data-quick-when=next]{left:4.9%;top:54.75%}.activity-details-needs [data-quick-when=now]{left:4.9%;top:18.25%}
.activity-details-needs #quickWhenClose{position:absolute;left:36.5%;top:36.5%;width:27%;aspect-ratio:1;background:transparent;border:0;color:#5a5a5a;font-size:28px;animation:move-orbit-upright 90s linear infinite}
.activity-details-needs .move-modal-title{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}
@media(prefers-reduced-motion:no-preference){
.activity-details-page .basic-needs-orbit{animation:move-orbit-clockwise 90s linear infinite!important}
.activity-details-page .basic-need,.activity-details-page .needs-subactivities{animation:move-orbit-upright 90s linear infinite!important}
.activity-details-needs{animation:details-panel-enter .22s ease}
@keyframes details-panel-enter{from{opacity:0;translate:0 5px}to{opacity:1;translate:0 0}}
}
@media(prefers-reduced-motion:reduce){.activity-details-needs .move-orbit,.activity-details-needs .move-destination,.activity-details-needs #quickWhenClose{animation:none!important}}

/* Arrow positions follow the annotated Today header. */
html.minimal-ui .has-date-navigation .view-day-arrow:first-child{translate:-36px 0}
html.minimal-ui .has-date-navigation .view-day-arrow:last-child{translate:36px 0}
html.minimal-ui .minimal-menu.is-details-back{display:grid;place-items:center;padding:7px;animation:none!important}
html.minimal-ui .minimal-menu.is-details-back svg{width:30px;height:30px;transform:none!important}
/* Today shares the 60px View row; artwork may grow above that layout box. */
html.minimal-ui .minimal-view-heading.has-date-navigation,html.minimal-ui .has-date-navigation .minimal-title{height:60px;min-height:60px}
html.minimal-ui .has-date-navigation .minimal-title{grid-template-columns:76px minmax(0,1fr)}
html.minimal-ui .has-date-navigation .minimal-title-artwork{width:76px!important;min-width:76px!important;max-width:76px!important;flex-basis:76px!important;height:60px!important;overflow:visible}
html.minimal-ui .has-date-navigation .minimal-title-artwork>svg.live-date-icon{width:76px!important;height:76px!important;transform:translateY(-10px)!important}
html.minimal-ui .has-date-navigation .minimal-title>span:last-child{transform:none}

/* Keep the calendar and its title together at the annotated left position. */
html.minimal-ui .has-date-navigation .minimal-title{translate:-26px 0}
@media(max-width:380px){html.minimal-ui .has-date-navigation .view-day-arrow:first-child{translate:-16px 0}html.minimal-ui .has-date-navigation .view-day-arrow:last-child{translate:16px 0}html.minimal-ui .has-date-navigation .minimal-title{translate:-10px 0}}

/* Center a stable calendar + longest-label slot between the day arrows. */
html.minimal-ui .has-date-navigation .minimal-title{grid-template-columns:76px max-content;justify-content:center;translate:none}
html.minimal-ui .has-date-navigation .minimal-title::after{content:"Yesterday";visibility:hidden;pointer-events:none;grid-column:2;grid-row:1;white-space:nowrap}
html.minimal-ui .has-date-navigation .minimal-title>span:last-child{grid-column:2;grid-row:1}

/* Tomorrow is slightly wider in this font; reserve both labels on every date. */
html.minimal-ui .has-date-navigation .minimal-title::before{content:"Tomorrow";visibility:hidden;pointer-events:none;grid-column:2;grid-row:1;white-space:nowrap}
/* Smaller menu artwork shares the dots' baseline; keep the full tap target. */
html.minimal-ui .minimal-header :is(.minimal-menu:not(.is-details-back),.view-matrix-toggle){top:auto!important;bottom:4px}
html.minimal-ui .minimal-menu:not(.is-details-back){gap:4px}
html.minimal-ui .minimal-menu:not(.is-details-back) span{width:19px;height:2px}
html.minimal-ui .minimal-menu:not(.is-details-back)[aria-expanded=true] span:nth-child(1){transform:translateY(6px) rotate(45deg)}
html.minimal-ui .minimal-menu:not(.is-details-back)[aria-expanded=true] span:nth-child(3){transform:translateY(-6px) rotate(-45deg)}
/* Split the remaining outer whitespace now that the menu is below this row. */
html.minimal-ui .has-date-navigation .view-day-arrow:first-child{position:absolute;left:-29px;right:auto;top:50%;translate:none;transform:translateY(-50%)}
html.minimal-ui .has-date-navigation .view-day-arrow:last-child{position:absolute;right:-29px;left:auto;top:50%;translate:none;transform:translateY(-50%)}
html.minimal-ui .has-date-navigation .minimal-title{translate:10px 0}
/* Anchor Previous day to the whole heading, rather than its old grid slot. */
html.minimal-ui .has-date-navigation .view-day-arrow:first-child{grid-column:1/-1}

/* Quiet acknowledgement only after an actual name change. */
html.minimal-ui .activity-details-page .activity-details-name.name-saved-flash,html.minimal-ui .composer .composer-entry.name-saved-flash>.composer-line{border-color:#f47721!important}

/* Input neutrals use the official high-contrast palette without opacity mixing. */
html.minimal-ui .composer-entry>.composer-line,html.minimal-ui .composer-entry>.composer-line:focus-within{border-color:var(--color-gray,#5a5a5a)!important;opacity:1}
html.minimal-ui .composer #quickCapture{color:var(--color-gray-dark,#404040)}
html.minimal-ui .composer #quickCapture::placeholder{color:var(--color-gray,#5a5a5a);opacity:1}

body .row-actions [data-rollover-toggle][aria-pressed=true]{color:#fff!important}
body .row-actions [data-rollover-toggle][aria-pressed=true]::before{background:#f47721!important;border-color:#f47721!important}

/* Details: quiet header, separated mode strip, and primary completion below. */
.activity-details-page{display:flex;flex-direction:column;padding-left:10px;padding-right:10px;gap:0}
.activity-details-page>*{width:100%;min-width:0;max-width:min(540px,100%);flex-shrink:0}
.activity-details-head{grid-template-columns:44px 1fr 44px;min-height:100px;padding-top:12px}
.activity-details-head .activity-owner{grid-column:2;width:96px;height:96px;font-size:36px}
.activity-details-head button{color:var(--color-gray-light,#a6a6a6)}
.activity-created{margin-top:12px;margin-bottom:16px;color:var(--color-gray,#5a5a5a)}
.activity-details-status{margin-top:10px;margin-bottom:18px}
.activity-details-actions{height:80px;width:44px;max-width:44px;margin:0 auto -80px;transform:translateX(-76px);z-index:4;justify-content:center}
.activity-details-needs{max-width:540px;margin-top:0;margin-bottom:18px}
.activity-details-page .needs-modes{height:80px;margin:0 0 24px;padding:16px 0 16px 44px;border-top:2px solid var(--color-gray-light,#a6a6a6);border-bottom:2px solid var(--color-gray-light,#a6a6a6);box-sizing:border-box;display:flex;justify-content:center;align-items:center;gap:8px}
.activity-details-page .needs-modes button{width:46px;height:46px;min-width:46px}
.activity-details-page .basic-needs-viewport{max-width:420px;margin:0 auto;aspect-ratio:.85}
.activity-details-page [data-need-slot="0"]{left:35%;top:36%}
.activity-details-page [data-need-slot="1"]{left:4%;top:18%}
.activity-details-page [data-need-slot="2"]{left:35%;top:0}
.activity-details-page [data-need-slot="3"]{left:66%;top:18%}
.activity-details-page [data-need-slot="4"]{left:66%;top:54%}
.activity-details-page [data-need-slot="5"]{left:4%;top:54%}
.activity-details-page .needs-subactivities{left:35%;top:72%}
.activity-details-footer{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;margin-top:auto;padding:16px 0 0;min-height:80px}
.activity-details-secondary{display:flex;align-items:center;justify-content:flex-start;gap:0}
.activity-details-danger{display:flex;justify-content:flex-end}
.activity-details-footer button{display:grid;place-items:center;width:40px;height:44px;border:0;background:transparent;color:var(--color-gray,#5a5a5a);padding:7px}
.activity-details-footer button[hidden]{display:none}
.activity-details-footer svg{width:28px;height:28px}
.activity-details-footer .activity-details-complete{width:60px;height:60px;border-radius:50%!important;background:var(--detail-state);color:#fff;padding:12px}
.activity-details-footer .activity-details-complete svg{width:36px;height:36px}
.activity-details-footer [data-details-rollover][aria-pressed=true]{background:#f47721;color:#fff;border-radius:50%!important}
.activity-details-page .activity-details-needs .move-orbit-viewport:not(.basic-needs-viewport){max-width:420px;margin:32px auto}

/* Fit the icon wheel to the available phone height, retaining scroll for zoom/keyboard. */
.activity-details-page{padding-top:max(10px,env(safe-area-inset-top));padding-bottom:max(12px,env(safe-area-inset-bottom))}
.activity-details-head{min-height:72px;padding-top:0}
.activity-details-head .activity-owner{width:72px;height:72px;font-size:28px}
.activity-created{margin-top:8px;margin-bottom:10px;line-height:18px}
.activity-details-status{margin-top:6px;margin-bottom:10px;line-height:18px}
.activity-details-actions{height:60px;margin-bottom:-60px}
.activity-details-page .needs-modes{height:60px;padding-top:6px;padding-bottom:6px;margin-bottom:12px}
.activity-details-needs{margin-bottom:8px}
.activity-details-page .basic-needs-viewport{width:min(100%,300px,max(160px,calc(100dvh - 478px - env(safe-area-inset-top) - env(safe-area-inset-bottom))));max-width:300px;aspect-ratio:1}
.activity-details-footer{min-height:64px;padding-top:8px}
.activity-details-footer .activity-details-complete{width:56px;height:56px;padding:10px}

/* Three persistent peer modes; changing the wheel never replaces its controls. */
.activity-details-page{--details-rule:#a6a6a6;--details-rule-width:1px}
.activity-details-page .activity-details-actions{display:flex;justify-content:center;gap:16px;width:100%;max-width:540px;height:60px;margin:0 auto 12px;transform:none;border-top:var(--details-rule-width) solid var(--details-rule);border-bottom:var(--details-rule-width) solid var(--details-rule);pointer-events:auto}
.activity-details-actions button{width:44px;height:44px;padding:8px;flex:0 0 44px;border-radius:50%!important;color:var(--color-gray,#5a5a5a);background:#fff}
.activity-details-actions button[aria-pressed=true]{background:#f47721;color:#fff}
.activity-details-page .needs-modes{display:none}
.activity-details-page .activity-owner,html.minimal-ui .activity-details-page .activity-details-name,html.minimal-ui .activity-details-page .activity-details-name:focus,html.minimal-ui .activity-details-page .activity-details-name:focus-visible{border:var(--details-rule-width) solid var(--details-rule)!important}
.activity-details-page .basic-needs-viewport,.activity-details-page .activity-details-needs .move-orbit-viewport:not(.basic-needs-viewport){width:min(100%,320px,max(160px,calc(100dvh - 466px - env(safe-area-inset-top) - env(safe-area-inset-bottom))));max-width:320px;aspect-ratio:1;margin:0 auto}
.activity-details-page .activity-details-needs .move-destination{width:30%;padding:0;display:grid;place-items:center}
.activity-details-needs [data-quick-when=today]{left:35%;top:0}.activity-details-needs [data-quick-when=soon]{left:66%;top:18%}.activity-details-needs [data-quick-when=whenever]{left:66%;top:54%}.activity-details-needs [data-quick-when=scheduled]{left:35%;top:72%}.activity-details-needs [data-quick-when=next]{left:4%;top:54%}.activity-details-needs [data-quick-when=now]{left:4%;top:18%}
.activity-details-needs #quickWhenClose{display:none}
.activity-details-footer{margin-top:0;padding-top:4px;min-height:60px}

/* Reserve an assignment strip above the creator, including before people are added. */
.activity-details-assignees{display:flex;justify-content:center;align-items:center;gap:6px;min-height:44px;margin-bottom:6px}
.activity-details-assignees .assignee-avatar{width:34px;height:34px}
.activity-details-page .basic-needs-viewport,.activity-details-page .activity-details-needs .move-orbit-viewport:not(.basic-needs-viewport){width:min(100%,320px,max(160px,calc(100dvh - 516px - env(safe-area-inset-top) - env(safe-area-inset-bottom))))}
.activity-details-assignees .assignee-avatar{position:static!important;inset:auto!important;width:34px!important;height:34px!important;min-width:34px!important;margin:0!important;flex:0 0 34px}
.activity-details-assignees .assignee-overflow{display:inline-flex;align-items:center;align-self:center;font-size:20px!important;font-weight:500;line-height:1;white-space:nowrap}

/* Back has its own upper lane; the wheel switches without divider lines. */
.activity-details-page [data-details-back]{position:absolute;left:10px;top:max(6px,env(safe-area-inset-top));width:44px;height:36px;padding:4px}
.activity-details-assignees{margin-top:32px}
.activity-details-page .activity-details-actions{border:0}
.activity-details-footer{margin-top:auto;margin-bottom:auto}
.activity-details-page .basic-needs-viewport,.activity-details-page .activity-details-needs .move-orbit-viewport:not(.basic-needs-viewport){width:min(100%,320px,max(160px,calc(100dvh - 548px - env(safe-area-inset-top) - env(safe-area-inset-bottom))))}
.activity-details-page .activity-details-needs .move-destination{border-radius:50%!important;background:var(--move-state,#d9d9d9);color:#fff;padding:8px;box-sizing:border-box}
.activity-details-page .activity-details-needs .move-destination svg,.activity-details-page .activity-details-needs .move-destination img{display:block;width:100%;height:100%;object-fit:contain;transform:none!important}
.activity-details-needs [data-quick-when=today]{left:35%;top:0;--move-state:#fbd34d}
.activity-details-needs [data-quick-when=soon]{left:65.3%;top:17.5%;--move-state:#fbd34d}
.activity-details-needs [data-quick-when=whenever]{left:65.3%;top:52.5%;--move-state:#4199c9}
.activity-details-needs [data-quick-when=scheduled]{left:35%;top:70%;--move-state:#a6a6a6}
.activity-details-needs [data-quick-when=next]{left:4.7%;top:52.5%;--move-state:#fbd34d}
.activity-details-needs [data-quick-when=now]{left:4.7%;top:17.5%;--move-state:#f47721}

/* Reset the inherited 80% modal orbit and prevent artwork sizing its button. */
.activity-details-page .activity-details-needs .move-orbit{inset:0;width:100%;height:100%;aspect-ratio:1;transform-origin:50% 50%}
.activity-details-page .activity-details-needs .move-destination{width:30%;height:30%;min-width:0;min-height:0;max-width:none;max-height:none;aspect-ratio:1;padding:0;overflow:hidden;line-height:1}
.activity-details-page .activity-details-needs .move-destination>svg,.activity-details-page .activity-details-needs .move-destination>img{position:absolute;inset:12%;width:76%;height:76%;max-width:76%;max-height:76%;object-fit:contain;pointer-events:none}

/* Give every rotating panel another 40px of diameter. */
.activity-details-page .basic-needs-viewport,.activity-details-page .activity-details-needs .move-orbit-viewport:not(.basic-needs-viewport){width:min(100%,360px,max(200px,calc(100dvh - 508px - env(safe-area-inset-top) - env(safe-area-inset-bottom))));max-width:360px}
.activity-details-page button:disabled{opacity:.45;cursor:default}
.activity-details-page .activity-details-name[readonly]{cursor:default}
/* State color lives in the artwork; Move destinations have no circle frames. */
.activity-details-page .activity-details-needs .move-destination,#modalRoot .move-orbit .move-destination{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important}
#modalRoot .move-orbit .move-destination{width:30%;height:30%;min-width:0;min-height:0;padding:0}
#modalRoot .move-orbit .move-destination>img,#modalRoot .move-orbit .move-destination>svg{position:absolute;inset:4%;width:92%;height:92%;object-fit:contain}
.activity-details-page .activity-details-needs .move-destination>img,.activity-details-page .activity-details-needs .move-destination>svg{inset:4%;width:92%;height:92%;max-width:92%;max-height:92%}
body .row-actions [data-row-brain] svg{width:30px!important;height:30px!important}
.activity-details-danger{gap:4px}
.screen-help{display:grid;place-items:center;width:44px;height:44px;min-width:44px;min-height:44px;padding:8px;border:0;background:#fff;color:#5a5a5a;flex-shrink:0}
.screen-help svg{width:28px;height:28px}
.activity-notes-page>.screen-help,.activity-people-context>.screen-help{position:fixed;right:16px;bottom:max(24px,env(safe-area-inset-bottom));z-index:10}
.dialog>.screen-help{margin:12px 0 0 auto}
#helpModeNotice,#helpExplanation{z-index:2000!important}
/* The current Move destination stays visible, identified by one orange ring. */
.activity-details-page .activity-details-needs .move-destination[aria-pressed=true],#modalRoot .move-orbit .move-destination[aria-pressed=true]{border:2px solid #f47721!important;border-radius:50%!important}
.activity-details-secondary{gap:2px}
.activity-details-footer{gap:4px}
.activity-details-page .activity-details-needs .move-destination[aria-pressed=true],#modalRoot .move-orbit .move-destination[aria-pressed=true]{border:0!important;border-radius:0!important;opacity:.5!important;cursor:default}
.activity-clone-overlay{position:fixed;inset:0;z-index:5;display:grid;place-items:center;padding:20px;background:#40404066;max-width:none!important;width:100%}
.activity-clone-dialog{width:min(100%,420px);background:#fff;padding:24px;color:#404040;box-shadow:0 8px 30px #0003}
.activity-clone-dialog h2{margin:0 0 20px;font-weight:500}.clone-name{display:block}.clone-name input{display:block;width:100%;font:inherit;padding:10px;border:1px solid #a6a6a6;margin:8px 0 16px}
.clone-choices{display:grid;gap:14px}.clone-choices input{width:20px;height:20px;accent-color:#f47721;vertical-align:middle}.activity-clone-dialog button{min-height:44px;padding:8px 18px;border:1px solid #a6a6a6;background:#fff;color:#404040}.activity-clone-dialog button[type=submit]{background:#f47721;color:#fff;border-color:#f47721}.activity-clone-dialog [role=alert]{color:#a32929}
.activity-approvals-only>:not(h2):not(.steps-summary){display:none!important}
.activity-approvals-only>.steps-summary{border:0;padding-top:0}
/* Balance the tall stoplight and pushpin against the other need artwork. */
.activity-details-page [data-basic-need=approvals]>.needs-artwork,.activity-details-page [data-basic-need=where]>.needs-artwork{width:72%;height:72%}
.activity-details-page [data-basic-need=when]:has(.details-digital-clock)>svg.live-date-icon{width:70%;height:70%;align-self:start;justify-self:center}
.activity-details-page .details-digital-clock{position:absolute;left:0;top:70%;width:100%;height:auto;aspect-ratio:895/470;display:block;pointer-events:none}
.details-digital-clock>img{display:block;width:100%;height:100%;object-fit:contain}
.details-digital-clock>span{position:absolute;left:24%;right:17%;display:grid;place-items:center;color:#fff;line-height:1;font-weight:500;white-space:nowrap;font-variant-numeric:tabular-nums}
.details-clock-time{top:29%;height:18%;font-size:clamp(9px,2.9vw,13px)}
.details-clock-period{top:48%;height:17%;font-size:clamp(7px,2vw,9px)}
/* Midpoint artwork size: original 92%, previous 72%, now 82%. */
.activity-details-page [data-basic-need=approvals]>.needs-artwork,.activity-details-page [data-basic-need=where]>.needs-artwork{width:82%;height:82%}
.activity-details-page .details-digital-clock{left:5%;width:90%}
.details-digital-clock>.details-clock-time{left:24%;right:17%;top:29%;height:38%;font-size:clamp(11px,3.2vw,14px);text-align:center}
/* Help consistently shares the Back row on secondary screens. */
body .screen-help-host>.screen-help.screen-help-top{position:absolute!important;right:16px!important;left:auto!important;bottom:auto!important;z-index:15;display:grid!important;place-items:center!important;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;margin:0!important;padding:8px!important;border:0!important;border-radius:50%!important;background:transparent!important;color:var(--color-gray,#5a5a5a)!important}
body .screen-help-host>.screen-help.screen-help-top svg{display:block!important;width:28px!important;height:28px!important}
body .screen-help-host>.screen-help.screen-help-top>.vanilla-label,body .screen-help-host>.screen-help.screen-help-top>.vanilla-glyph{display:none!important}
body .screen-help-host>.screen-help.screen-help-top:focus-visible{outline:2px solid #5a5a5a;outline-offset:2px}
body .screen-help-host>.screen-help.screen-help-top.screen-help-external-back{position:fixed!important}

/* Details use a compact header, immediate actions, and three persistent list tabs. */
body .activity-details-page .activity-details-assignees:empty{display:none}
body .activity-details-page .activity-details-assignees{min-height:34px;margin-top:32px;margin-bottom:6px}
body .activity-details-page .activity-details-head{min-height:52px;padding-top:0;margin-top:30px}
body .activity-details-page .activity-details-assignees:not(:empty)+.activity-details-head{margin-top:0}
body .activity-details-page .activity-details-head .activity-owner{width:52px;height:52px;font-size:21px}
body .activity-details-page .activity-created{margin-top:6px;margin-bottom:10px;font-size:12px;line-height:18px}
body .activity-details-page .activity-details-name{font-size:22px;min-height:52px;padding:10px 18px}
body .activity-details-page .activity-details-status{margin:6px auto 8px;font-size:12px;line-height:18px;min-height:0}
body .activity-details-page .activity-details-footer{margin:0 auto 14px;padding:0;min-height:48px;gap:8px}
body .activity-details-page .activity-details-footer .activity-details-complete{width:44px;height:44px;padding:9px}
body .activity-details-page .activity-details-footer svg{width:24px;height:24px}
body .activity-details-page .activity-details-actions{display:flex;height:auto;min-height:62px;gap:0;margin:0 auto;padding:0;border:0;border-bottom:1px solid #d9d9d9;z-index:1}
body .activity-details-page .activity-details-actions button{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;flex:1;width:auto;min-width:0;height:62px;padding:8px 4px;border:0;border-bottom:3px solid transparent;border-radius:0!important;background:transparent;color:#777;font:inherit;font-size:13px}
body .activity-details-page .activity-details-actions button[aria-selected=true]{background:transparent;color:#404040;border-bottom-color:#f47721}
body .activity-details-page .activity-details-actions svg{width:23px;height:23px}
body .activity-details-page .activity-details-actions button:focus-visible{outline:2px solid #f47721;outline-offset:-3px}
body .activity-details-page .activity-details-needs{margin:0 auto 24px;width:100%;max-width:540px;animation:none}
body .activity-details-page .activity-details-needs :is(.needs-title,.needs-modes,.move-modal-title,#quickWhenClose){display:none}
body .activity-details-page .activity-details-needs :is(.basic-needs-viewport,.move-orbit-viewport,.basic-needs-orbit,.move-orbit){position:static!important;inset:auto!important;display:block!important;width:100%!important;max-width:none!important;height:auto!important;min-height:0!important;aspect-ratio:auto!important;margin:0!important;padding:0!important;transform:none!important;animation:none!important;overflow:visible!important}
body .activity-details-page .activity-details-needs button.details-option-row{position:static!important;inset:auto!important;display:flex!important;align-items:center;justify-content:flex-start;gap:12px;width:100%!important;height:auto!important;min-height:54px!important;max-height:none!important;max-width:none!important;aspect-ratio:auto!important;margin:0;padding:12px 8px!important;border:0!important;border-bottom:1px solid #e5e5e5!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:#5a5a5a!important;text-align:left;font:inherit;font-size:16px;line-height:1.35;transform:none!important;animation:none!important;overflow:visible!important}
body .activity-details-page .activity-details-needs .details-option-row>svg{position:static!important;inset:auto!important;display:block;width:23px!important;height:23px!important;max-width:none!important;max-height:none!important;flex:0 0 23px;transform:none!important}
.details-option-label{flex:1;min-width:0}.details-option-value{flex:0 1 50%;font-size:12px;text-align:right;color:#777}.details-row-count{font-size:14px;color:#777;font-variant-numeric:tabular-nums}.details-option-chevron{font-size:22px;font-weight:400;color:#a6a6a6}
body .activity-details-page .activity-details-needs .details-option-row:focus-visible{outline:2px solid #f47721!important;outline-offset:-2px}
body .activity-details-page #quickWhenDate{padding:16px 8px;border-bottom:1px solid #e5e5e5}
@media(max-width:360px){body .activity-details-page .activity-details-footer{gap:2px}body .activity-details-page .activity-details-footer button{width:36px;padding:6px}.details-option-value{max-width:45%}}

/* The same option buttons serve both layouts, preserving actions and counts. */
body .activity-details-page .details-layout-controls{display:flex;justify-content:flex-end;width:100%;max-width:540px;margin:0 auto;padding:4px 0}
body .activity-details-page .details-layout-controls button{display:grid;place-items:center;width:44px;height:44px;padding:10px;border:0;background:transparent;color:#5a5a5a}
body .activity-details-page .details-layout-controls svg{width:24px;height:24px}
body .activity-details-page .details-layout-controls button:focus-visible{outline:2px solid #f47721;outline-offset:-2px}
body .activity-details-page[data-details-layout=grid] .activity-details-needs :is(.basic-needs-orbit,.move-orbit){display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:0}
body .activity-details-page[data-details-layout=grid] .activity-details-needs button.details-option-row{display:flex!important;flex-direction:column;justify-content:center!important;gap:8px;min-height:112px!important;padding:14px 8px!important;border-bottom:1px solid #e5e5e5!important;text-align:center;font-size:14px}
body .activity-details-page[data-details-layout=grid] .details-option-label{flex:0 0 auto;max-width:100%;overflow-wrap:anywhere}
body .activity-details-page[data-details-layout=grid] .details-option-value{flex:0 0 auto;max-width:100%;text-align:center;font-size:11px}
body .activity-details-page[data-details-layout=grid] .details-row-count{font-size:12px}
body .activity-details-page[data-details-layout=grid] .details-option-chevron{display:none}
@media(max-width:340px){body .activity-details-page[data-details-layout=grid] .activity-details-needs :is(.basic-needs-orbit,.move-orbit){grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Matrix counts use compact badges; list counts retain their quiet parentheses. */
body .activity-details-page[data-details-layout=grid] .activity-details-needs button.details-option-row{position:relative!important}
body .activity-details-page[data-details-layout=grid] .details-row-count{position:absolute;top:8px;right:10px;display:grid;place-items:center;min-width:22px;height:22px;padding:0 5px;box-sizing:border-box;border:1px solid #fff;border-radius:999px!important;background:#404040;color:#fff;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:12px;font-weight:600;line-height:1}
body .activity-details-page[data-details-layout=list] .details-row-count::before{content:"("}
body .activity-details-page[data-details-layout=list] .details-row-count::after{content:")"}

/* Borders belong to the symbols, leaving the matrix cells open. */
body .activity-details-page .details-option-icon{display:grid;place-items:center;width:23px;height:23px;flex:0 0 23px;box-sizing:border-box}
body .activity-details-page .details-option-icon>svg{display:block;width:23px!important;height:23px!important;max-width:none!important;max-height:none!important;transform:none!important}
body .activity-details-page[data-details-layout=grid] .details-option-icon{width:44px;height:44px;flex:0 0 44px;border:1px solid #5a5a5a;border-radius:50%!important;background:transparent}

/* Due details precede the activity name; Created follows it. */
body .activity-details-page .activity-details-status{font-size:14px;line-height:1.2;margin:6px auto 10px;color:#404040}
body .activity-details-page .activity-created{margin:6px auto 12px}
body .activity-details-page .activity-details-actions{border-bottom:0}
body .activity-details-page[data-details-layout] .activity-details-needs button.details-option-row{border:0!important}
body .activity-details-page .details-option-symbol{display:contents}
body .activity-details-page[data-details-layout=grid] .details-option-symbol{position:relative;display:block;width:44px;height:44px;flex:0 0 44px}
body .activity-details-page[data-details-layout=grid] .details-row-count{top:-6px;right:-6px;z-index:1}
body .activity-details-page[data-details-layout=grid] .details-option-row:is([data-populated=true],[aria-pressed=true]) .details-option-icon{background:#f47721;border-color:#f47721;color:#fff}

/* Subsection overlays use their own stacking context above the fixed detail page. */
html body.activity-details-open #modalRoot{position:relative;z-index:1000}

/* Detail actions share the Created line; Advanced sits beside Complete. */
body .activity-details-page .activity-created-row{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;max-width:540px;margin:4px auto 10px}
body .activity-details-page .activity-created-row .activity-created{margin:0;min-width:0}
body .activity-details-page .activity-created-actions{display:flex;align-items:center;gap:4px;flex:0 0 auto}
body .activity-details-page .activity-created-actions button{display:grid;place-items:center;width:38px;height:38px;padding:6px;border:0;background:transparent;color:#000}
body .activity-details-page .activity-created-actions svg{width:24px;height:24px}
body .activity-details-page .activity-details-footer>[data-details-advanced]{display:grid;place-items:center;justify-self:end;width:44px;height:44px;padding:9px;border:0;background:transparent;color:#000}
body .activity-details-page .activity-details-footer>[data-details-advanced][aria-pressed=true]{color:#f47721}
body .activity-details-page .activity-details-footer>[data-details-advanced] svg{width:26px;height:26px}
body .activity-details-page[data-details-layout=list] .activity-details-needs button.details-option-row{min-height:58px!important;padding:10px 14px!important;border-bottom:1px solid #d9d9d9!important;background:#fff!important;gap:10px;color:#000!important}
body .activity-details-page[data-details-layout=list] .details-option-label{flex:0 1 auto;font-family:"Roboto Serif",serif!important;font-weight:500!important;font-stretch:80%;font-variation-settings:"wght" 500,"wdth" 80,"GRAD" 0,"opsz" 8!important;text-transform:none!important;letter-spacing:0!important;font-size:17px}
body .activity-details-page[data-details-layout=list] .details-row-count{font-family:"Roboto Serif",serif!important;font-size:17px;color:#000}
body .activity-details-page[data-details-layout=list] .details-option-chevron{margin-left:auto}
body .activity-details-page[data-details-layout=list] .details-option-icon{color:#000}

body .activity-details-page .activity-created-row{justify-content:flex-start}
body .activity-details-page .activity-created-row>[data-details-rollover],body .activity-details-page .activity-created-row>[data-details-move]{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;padding:6px;border:0;background:transparent;color:#000}
body .activity-details-page .activity-created-row>[data-details-rollover]{color:var(--color-gray,#5a5a5a)}
body .activity-details-page .activity-created-row>[data-details-rollover] svg,body .activity-details-page .activity-created-row>[data-details-move] svg{width:25px;height:25px}
body .activity-details-page .activity-created-row>[data-details-rollover][aria-pressed=true]{background:#f47721;color:#fff;border-radius:50%!important}
body .activity-details-page .activity-created-row .activity-created{flex:1}
body .activity-details-page .activity-details-advanced-line{display:flex;justify-content:flex-end;width:100%;max-width:540px;margin:0 auto 2px}
body .activity-details-page .activity-details-advanced-line>[data-details-advanced]{display:grid;place-items:center;width:38px;height:38px;padding:6px;border:0;background:transparent;color:#000}
body .activity-details-page .activity-details-advanced-line>[data-details-advanced][aria-pressed=true]{color:#f47721}
body .activity-details-page .activity-details-advanced-line svg{width:26px;height:26px}

body .activity-details-page .activity-details-footer{grid-template-columns:1fr 44px 44px;justify-items:center;margin-bottom:0}
body .activity-details-page .activity-details-footer .activity-details-secondary{justify-self:start}
body .activity-details-page .activity-details-footer .activity-details-danger{justify-self:start}
body .activity-details-page .activity-details-footer>[data-details-layout]{display:grid;place-items:center;justify-self:end;width:44px;height:44px;padding:9px;border:0;background:transparent;color:#000}
body .activity-details-page .activity-details-footer>[data-details-layout] svg{width:25px;height:25px}
body .activity-details-page .activity-details-needs{margin-top:0}
body .activity-details-page .activity-details-footer{grid-template-columns:1fr 44px 44px 1fr}
body .activity-details-page .activity-details-footer .activity-details-danger{order:4;justify-self:end}
body .activity-details-page .activity-details-footer>[data-details-layout]{order:3;justify-self:center}
/* Keep status and Advanced together immediately above the activity input. */
body .activity-details-page .activity-details-head{margin-top:8px;min-height:48px}
body .activity-details-page .activity-details-assignees{margin-top:8px;margin-bottom:0;min-height:0}
body .activity-details-page .activity-details-advanced-line{align-items:center;justify-content:space-between;min-height:42px;margin:0 auto 2px}
body .activity-details-page .activity-details-advanced-line .activity-details-status{flex:1;text-align:left;margin:0;min-height:0}
body .activity-details-page .details-name-label{margin-top:0;margin-bottom:0}
body .activity-details-page .activity-details-footer{grid-template-columns:1fr 44px 1fr;position:relative}
body .activity-details-page .activity-details-footer .activity-details-complete{grid-column:2;justify-self:center}
body .activity-details-page .activity-details-footer>[data-details-layout]{grid-column:3;justify-self:end}
body .activity-details-page .activity-details-footer .activity-details-danger{grid-column:1;grid-row:1;justify-self:start}
body .activity-details-page .activity-details-footer .activity-details-secondary{display:none}
body .activity-details-page [data-details-back]:focus:not(:focus-visible){outline:none!important;box-shadow:none!important}
/* Align the right-side controls to a shared inset. */
body .activity-details-page .activity-details-head>[data-screen-help]{grid-column:3;grid-row:1;justify-self:end;width:38px;height:38px;padding:5px;border:0;background:transparent;color:#000}
body .activity-details-page .activity-details-head>[data-screen-help] svg{width:27px;height:27px}
body .activity-details-page .activity-details-advanced-line .activity-details-status{flex:1;text-align:center;padding-left:38px}
body .activity-details-page .activity-details-advanced-line>[data-details-advanced]{flex:0 0 38px}
body .activity-details-page .activity-created-actions{margin-left:auto}
body .activity-details-page .activity-details-footer>[data-details-layout]{margin-right:-3px}
body .activity-details-page[data-details-layout=list] .details-row-count{position:static;display:inline;flex:0 0 auto;min-width:0;width:auto;height:auto;padding:0;border:0;background:transparent;color:#000;font-family:"Roboto Serif",serif;font-size:17px;line-height:1.35}
html.minimal-ui body .activity-details-page[data-details-layout=list] .details-row-count{-webkit-text-fill-color:#000!important}
html.minimal-ui body .activity-details-page[data-details-layout=grid] .details-row-count{-webkit-text-fill-color:#fff!important;color:#fff!important}

body .activity-details-page .activity-details-head>[data-screen-help]{transform:translateX(4px)}
body .activity-details-page .activity-details-head .activity-owner.has-assignee-avatars{width:auto;min-width:52px;height:52px;border:0!important;border-radius:0!important}
body .activity-details-page .activity-owner .assignee-avatars{position:static!important;inset:auto!important;display:flex;align-items:center;justify-content:center;margin:0;padding:0}
body .activity-details-page .activity-owner .assignee-avatar{position:static!important;inset:auto!important;width:40px;height:40px;min-width:40px;margin-left:-7px;flex:0 0 40px}
body .activity-details-page .activity-owner .assignee-avatar:first-child{margin-left:0}
body .activity-details-page .activity-owner .avatar-overflow{font-size:20px;font-weight:500;white-space:nowrap}
body .activity-details-page .activity-owner .row-relationship{justify-content:center;width:max-content;max-width:min(100%,calc(100vw - 112px));overflow:visible}
body .activity-details-page .activity-owner .row-relationship{gap:12px}
body .activity-details-page .activity-owner .row-relationship .relationship-person>span{display:none}
body .activity-details-page .activity-owner .row-relationship .assignee-avatar{box-sizing:border-box;width:48px!important;min-width:48px!important;max-width:48px!important;height:48px!important;min-height:48px!important;max-height:48px!important;aspect-ratio:1!important;object-fit:cover;border:2px solid #fff!important;border-radius:50%!important;flex:0 0 48px!important}
body .activity-details-page .activity-owner .row-relationship .relationship-stack{gap:0}
body .activity-details-page .activity-owner .row-relationship .relationship-stack .relationship-person+.relationship-person{margin-left:-12px}
body .activity-details-page .activity-owner .row-relationship .relationship-symbol{font-size:26px;margin:0 2px}
body .activity-details-page .activity-owner .row-relationship .relationship-count{font-size:18px;margin-left:8px;white-space:nowrap}
body .activity-details-page .activity-details-needs{margin-top:5px}

/* Process owns its page header instead of repeating the activity editor. */
body .activity-details-page[data-details-mode="advanced"]{display:block!important;padding-top:12px!important}
body .activity-details-page[data-details-mode="advanced"]>:not(.activity-process-page){display:none!important}
.activity-process-head{display:grid;grid-template-columns:44px 1fr 44px;align-items:center;gap:12px;margin-bottom:20px}
.activity-process-head h1{margin:0;text-align:center;font:700 28px Georgia,serif;color:#000}
body .activity-process-head button{width:44px;height:44px;padding:10px;display:grid;place-items:center;background:transparent;border:0;color:#5a5a5a}
.activity-process-head svg{width:24px;height:24px}

/* Asset presence uses the same circle in either layout; counts live in People. */
body .activity-details-page[data-details-mode="basic"] .activity-details-needs{margin-top:15px}
body .activity-details-page[data-details-layout] .details-option-row[data-populated="true"] .details-option-icon{background:#f47721;border-color:#f47721;color:#fff}
body .activity-details-page[data-details-layout] .details-option-row[data-populated="false"] .details-option-icon{background:transparent;color:var(--color-gray,#5a5a5a);border-color:var(--color-gray,#5a5a5a)}
body .activity-details-page[data-details-layout="list"] .details-option-icon{width:36px;height:36px;flex:0 0 36px;border:1px solid var(--color-gray,#5a5a5a);border-radius:50%!important}
html.minimal-ui body .activity-details-page [data-details-back],html.minimal-ui body .activity-details-page [data-process-back]{color:var(--color-gray,#5a5a5a)!important}

/* The hierarchy strip explains the four levels above the Process options. */
.activity-process-icons{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0 0 20px;padding:0;list-style:none}
.activity-process-icons li{display:grid;justify-items:center;gap:6px;font:700 11px/1.2 system-ui,sans-serif;text-transform:uppercase}
.activity-process-icons svg{width:24px;height:24px;color:var(--color-gray,#5a5a5a)}

/* Keep the basic controls in three equal columns, including Approval. */
body .activity-details-page[data-details-mode=basic][data-details-layout=grid] .activity-details-needs .basic-needs-orbit{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
body .activity-details-page[data-details-mode=basic][data-details-layout=grid] .basic-needs-orbit .details-option-row{
  min-height:90px!important;
  padding:6px 2px!important;
}
.activity-approvals-only>.steps-summary{display:grid;justify-content:stretch;align-items:start;gap:12px}
.activity-approvals-only #approvalSetup{width:100%;min-width:0}

/* Match the Entry Detail field on the screens reached from capture. */
html.minimal-ui body :is(#captureLinkForm,.detail-subpage[aria-label="Schedule"],.activity-people-context)
  :is(input[type=text],input[type=search],input[type=date],input[type=time],input[type=number],input:not([type]),select),
html.minimal-ui body .activity-notes-page textarea{
  box-sizing:border-box;
  min-height:44px;
  border:1px solid var(--color-gray-light,#a6a6a6)!important;
  background:#fff!important;
  color:#000;
  box-shadow:none!important;
}
html.minimal-ui body :is(#captureLinkForm,.detail-subpage[aria-label="Schedule"],.activity-people-context)
  :is(input[type=text],input[type=search],input[type=date],input[type=time],input[type=number],input:not([type]),select){
  border-radius:24px!important;
  padding-inline:14px;
}
html.minimal-ui body .activity-notes-page textarea{border-radius:16px!important}
html.minimal-ui body .activity-notes-page textarea:focus-visible{border-color:var(--color-gray,#5a5a5a)!important}

.activity-process-input{display:grid;gap:6px;margin:0 0 16px;font-weight:600}
html.minimal-ui body .activity-process-input input{min-height:44px;padding:8px 14px;border:1px solid var(--color-gray-light,#a6a6a6)!important;border-radius:24px!important;background:#fff!important}
.capture-people-list{display:grid;gap:6px}
.capture-people-list button{display:flex;align-items:center;gap:12px;text-align:left}

.capture-people-list button[aria-pressed=true]{background:var(--color-gray-lightest,#f2f2f2)!important;box-shadow:inset 0 0 0 2px #f47721}
.capture-selected-people{display:flex;align-items:center;justify-content:center;position:relative}
.capture-selected-people .assignee-avatar{width:26px;height:26px}
.capture-selected-people .assignee-avatar+.assignee-avatar{margin-left:-10px}
.capture-selected-people small{position:absolute;bottom:-7px;right:-7px;background:#fff;border-radius:10px!important;padding:0 2px}

html.minimal-ui body.capture-calendar-open[data-view=calendar] .minimal-dots{visibility:hidden}

body .activity-details-page.showing-notes{display:block!important}
body .activity-details-page.showing-notes>:not(.activity-notes-page){display:none!important}
body .activity-details-page .activity-notes-page{
  position:relative;inset:auto;box-sizing:border-box;width:100%;padding:0 16px 24px;overflow:visible;
}
body .activity-notes-page>*{width:100%;margin:12px auto}
body .activity-notes-page>h1{margin-top:16px}
body .activity-notes-page>[data-notes-back]{display:grid;place-items:center;margin:0;width:44px;height:44px;border-radius:50%!important}
body .activity-notes-page>.screen-help{margin:0}
html.minimal-ui body .activity-notes-page textarea:focus-visible{
  outline:none!important;border-color:var(--color-gray,#5a5a5a)!important;
}

.capture-people-list[data-layout=matrix]{grid-template-columns:repeat(auto-fill,minmax(90px,1fr))}
.capture-people-list[data-layout=matrix] button{flex-direction:column;justify-content:flex-start;gap:6px;text-align:center;overflow-wrap:anywhere;min-width:0}
.capture-people-list[data-layout=matrix] .assignee-avatar{width:48px;height:48px;flex:none}

[data-capture-people-options]>.list-layout-controls{display:flex;justify-content:flex-end;gap:4px;margin-bottom:8px}
[data-capture-people-options]>.list-layout-controls button{display:grid;place-items:center;width:40px;height:40px;padding:0}
[data-capture-people-options]>.list-layout-controls .active{background:#e67e22!important;color:#fff!important}

body .activity-notes-page>[data-comments-enabled]{width:auto;min-width:110px;border:1px solid var(--color-gray-light,#a6a6a6);border-radius:22px!important;margin:12px 0;padding:8px 14px}
.activity-people-actions{display:flex;justify-content:flex-end;gap:8px;padding:0 10px 8px}
body :is(.activity-people-actions>button,.stream-entry-comment){display:grid;place-items:center;width:40px;height:40px;padding:8px;border:1px solid var(--color-gray-light,#a6a6a6);border-radius:50%!important;background:#fff;color:var(--color-gray,#5a5a5a)}
body :is(.activity-people-actions>button,.stream-entry-comment) svg{width:22px;height:22px}
body :is(.activity-people-actions>button,.activity-notes-page>[data-comments-enabled])[aria-pressed=true]{background:#f47721!important;border-color:#f47721!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
body .stream-entry-comment{margin:4px 10px 4px auto}
body .activity-approvals-only>:is(h2,.quiet){display:block!important}

body .activity-details-page.showing-notes{overflow:hidden;box-sizing:border-box;top:var(--viewport-top,0px);bottom:auto;height:var(--screen-height,100dvh);padding-bottom:max(8px,env(safe-area-inset-bottom))}
body .activity-details-page .activity-notes-page{
  height:100%;display:flex;flex-direction:column;margin:0 auto;padding:0 8px;
}
body .entry-thread-head{grid-template-columns:88px minmax(0,1fr) 88px;gap:0;margin:0 auto 12px}
.entry-thread-actions{display:flex;justify-content:flex-end}
.entry-thread-head h1{margin:0;font-size:clamp(20px,6vw,28px)}
body .entry-thread-head button{display:grid;place-items:center;border-radius:50%!important}
body .entry-thread-head [data-comments-enabled]{border:1px solid var(--color-gray-light,#a6a6a6)}
body .entry-thread-head [aria-pressed=true]{background:#f47721;color:#fff}
.entry-thread-history{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain}
.entry-thread-history p{margin:0;padding:10px 14px;white-space:pre-wrap;overflow-wrap:anywhere;border-radius:20px;background:#f2f2f2}
.entry-thread-message,.entry-thread-previous{display:flex;align-items:flex-start;gap:8px;width:fit-content;max-width:85%;margin:12px 0 12px auto}
.entry-thread-history .assignee-avatar{flex:0 0 28px;margin:4px 0 0}
.entry-thread-history time,.entry-thread-history small{display:block;font-size:.75rem;text-align:right;margin:3px 8px}
.entry-thread-status:empty{display:none}
body .activity-notes-page>.entry-thread-composer{display:flex;gap:8px;align-items:end;margin:0;border:1px solid #a6a6a6;border-radius:28px!important;padding:3px 5px;background:#f7f7f7;box-sizing:border-box}
html.minimal-ui body .entry-thread-composer textarea,body .entry-thread-composer textarea{flex:1;min-width:0;min-height:44px;margin:0;padding:11px 12px;border:0!important;background:transparent!important;resize:none}
body .entry-thread-composer button{flex:0 0 44px;border-radius:50%!important;background:#f47721;color:#fff}
body .entry-thread-composer button:disabled{opacity:.45}

body .entry-thread-head{grid-template-columns:44px minmax(0,1fr) 44px;margin-bottom:4px}
.entry-thread-head [data-screen-help]{grid-column:3}
body .activity-notes-page>.entry-thread-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;margin:0 auto 6px;color:#5a5a5a}
body .activity-notes-page>.entry-thread-actions[hidden]{display:none}
.entry-thread-actions>svg{width:20px;height:20px}
body .entry-thread-history .entry-thread-message{position:relative;width:min(36ch,calc(100% - 64px));margin:12px auto 12px 44px}
body .entry-thread-history .entry-thread-message.is-mine{margin-left:auto;margin-right:0}
body .entry-thread-history .entry-message-body{min-width:0}
html.minimal-ui body .entry-thread-history .entry-message-body>p,
body .entry-thread-history .entry-message-body>p{border:1px solid #a6a6a6;border-radius:24px!important;background:#fff!important}
html.minimal-ui body .entry-thread-history .is-mine .entry-message-body>p,
body .entry-thread-history .is-mine .entry-message-body>p{border-color:#f47721}
.entry-thread-history .entry-message-body :is(time,small){text-align:left;font-size:11px}
body .entry-thread-history .assignee-avatar{position:absolute;left:-44px;width:36px;height:36px}
.entry-message-actions{display:flex;flex-shrink:0}
body .entry-message-actions button{width:22px;height:32px;min-width:0;min-height:0;padding:2px;opacity:.4}
body .entry-message-actions svg{width:16px;height:16px}
body .compact-activity-row .row-people-line>.entry-thread-shortcut+.row-url-icon{margin-left:0}

body .activity-notes-page>.entry-thread-samples{width:auto;height:auto;min-height:36px;margin:0 0 6px auto;padding:4px 10px;font-size:13px;text-decoration:underline}

body .entry-thread-history .entry-message-body{flex:1}
body .entry-thread-history .entry-message-body>p{font-size:1.2rem}

html.minimal-ui body .compact-activity-row .row-people-line:not(:has(>.row-url-icon,>.row-attachments))>.argh-row-messages{margin-right:12px!important}
html.minimal-ui body .compact-activity-row .row-people-line>.argh-row-messages .count-bubble{right:-8px}
body .entry-thread-history .entry-thread-message.is-mine.has-avatar{margin-right:44px}
body .entry-thread-history .is-mine .assignee-avatar{left:auto;right:-44px}
.entry-message-meta{display:flex;align-items:center;justify-content:space-between;gap:4px}
.entry-thread-history .entry-message-meta time{margin:3px 0}
.entry-message-meta .entry-message-actions{margin-left:auto}

html.minimal-ui body .swipe-row.has-inline-url>.swipe-front>.entry-thread-shortcut{right:78px}
html.minimal-ui body .swipe-row.has-inline-url>.swipe-front:has(>.entry-thread-shortcut)>:is(.listrow,.stream-row,[data-shared]){padding-right:120px!important}

body #captureLinkForm button[type=submit]{
  background:#243e51!important;
  border-color:#243e51!important;
  color:#fff!important;
}
body #captureLinkForm button[type=submit]:hover{
  background:#355b75!important;
}

body .move-orbit .move-destination[aria-pressed=true]>.move-option-icon{
  border:0!important;
}
html body .activity-details-page :is([data-details-back],[data-process-back],[data-notes-back],button[aria-label="Back to activity"],button[aria-label="Back to details"]){
  display:grid;place-items:center;box-sizing:border-box;
  width:44px!important;height:44px!important;min-width:44px;padding:8px!important;
  border:1px solid var(--color-gray-light,#a6a6a6)!important;border-radius:50%!important;
  justify-self:start;align-self:start;margin:0;
}
html body .activity-details-page :is([data-details-back],[data-process-back],[data-notes-back],button[aria-label="Back to activity"],button[aria-label="Back to details"]) svg{
  width:26px!important;height:26px!important;
}
body .entry-thread-history .entry-thread-message.has-avatar{
  width:calc(100% - 58px);max-width:none;margin-left:58px;margin-right:0;
}
body .entry-thread-history .entry-thread-message.is-mine.has-avatar{margin-left:0;margin-right:58px}
body .entry-thread-history .assignee-avatar{width:48px;height:48px;left:-58px;margin-top:0}
body .entry-thread-history .is-mine .assignee-avatar{left:auto;right:-58px}
body .entry-thread-history .entry-message-body>p{box-sizing:border-box;min-height:48px}
body .entry-message-actions button:not(:disabled){opacity:1}

/* Match the Media back control in Entry Detail and activity People. */
html:root body :is(.activity-details-page button[data-details-back],.activity-details-page button[data-notes-back],.minimal-menu.is-details-back){
  position:fixed;inset:auto;left:11px;top:calc(18px + env(safe-area-inset-top));
  display:grid;place-items:center;box-sizing:border-box;
  width:36px!important;height:36px!important;min-width:36px;min-height:36px;
  padding:0!important;border:1px solid var(--fw-border,#ccc)!important;border-radius:50%!important;
  background:var(--fw-surface,#fff)!important;color:var(--fw-text,#17242e)!important;
  font-size:0;
}
html:root body :is(.activity-details-page button[data-details-back],.activity-details-page button[data-notes-back],.minimal-menu.is-details-back) svg{display:none}
html:root body :is(.activity-details-page button[data-details-back],.activity-details-page button[data-notes-back],.minimal-menu.is-details-back)::before{
  content:'‹';font-size:29px;line-height:1;transform:translateY(-1px);
}

html.minimal-ui body main>.minimal-header.is-entry-people-header{
  min-height:0;height:calc(62px + env(safe-area-inset-top));padding:0;margin-bottom:0;border:0;
}
html.minimal-ui body .is-entry-people-header>:not(.is-details-back){display:none!important}
#modalRoot :is(.detail-subpage,.dialog):is([aria-label="Place"],[aria-label="Location"])>.secondary-back,
#modalRoot .secondary-back:is([data-page-name="Place"],[data-page-name="Location"]){
  margin-left:0;left:0;transform:none;
}
#modalRoot :is(.detail-subpage,.dialog):is([aria-label="Place"],[aria-label="Location"])>.secondary-back::after,
#modalRoot .secondary-back:is([data-page-name="Place"],[data-page-name="Location"])::after{display:none!important}
html:root body .entry-thread-head>[data-screen-help]{
  position:fixed;top:calc(18px + env(safe-area-inset-top));right:16px;
  width:44px;height:44px;margin:0;padding:8px;border:0;
  background:transparent;color:var(--color-gray,#5a5a5a);
}
html:root body .entry-thread-head>[data-screen-help] svg{width:28px;height:28px}
body .entry-thread-head{min-height:48px}

/* Solo entries have no people header, so the chat button straddles the row edge. */
html.minimal-ui body .compact-activity-row[data-self-only="true"]:not(.actions-open):has(>.swipe-front>.entry-thread-shortcut),
html.minimal-ui body .compact-activity-row[data-self-only="true"]:not(.actions-open)>.swipe-front:has(>.entry-thread-shortcut){
  overflow:visible!important;
}
html.minimal-ui body .compact-activity-row[data-self-only="true"]>.swipe-front>.entry-thread-shortcut{
  top:-8px;transform:none;
  width:30px;height:30px;min-width:30px;min-height:30px;
  border:1px solid #777!important;background:#fff!important;color:#555;
}
html.minimal-ui body .compact-activity-row[data-self-only="true"]>.swipe-front>.entry-thread-shortcut>svg{width:20px;height:20px}
html.minimal-ui body .compact-activity-row[data-self-only="true"]>.swipe-front>.entry-thread-shortcut .count-bubble{right:-8px;top:-4px}

/* Hand-drawn controls and slightly larger artwork in both detail layouts. */
:root{
  --argh-control-wash:radial-gradient(ellipse at 32% 29%,#dff1f7 10%,#c8e7f2 63%,#b9dfed 100%);
  --argh-control-orange:radial-gradient(ellipse at 34% 28%,#f88337,#e96924 82%);
}
body .activity-details-page{
  --detail-icon-wash:var(--argh-control-wash);
  --detail-icon-orange:var(--argh-control-orange);
}
body .activity-details-page[data-details-layout] .details-option-row .details-option-icon{
  border:0!important;
  border-radius:46% 54% 47% 53% / 51% 44% 56% 49%!important;
  background:var(--detail-icon-wash);
  color:#50565a;
}
body .activity-details-page[data-details-layout] .details-option-row:nth-child(2n) .details-option-icon{
  border-radius:52% 48% 56% 44% / 46% 54% 46% 54%!important;
}
body .activity-details-page[data-details-layout] .details-option-row[data-populated="true"] .details-option-icon{
  background:var(--detail-icon-orange);
  color:#fff;
}
body .activity-details-page[data-details-layout] .details-option-icon>svg{
  width:30px!important;
  height:30px!important;
  transform:translate(-1px,-1px)!important;
}
body .activity-details-page[data-details-layout=grid] .details-row-count{
  border:0;
  border-radius:46% 53% 47% 55% / 51% 43% 57% 48%!important;
}
body .activity-details-page :is([data-details-back],[data-details-move],[data-details-rollover],[data-details-advanced],button[data-details-layout],[data-details-clone],[data-details-delete]){
  border:0!important;
  border-radius:48% 53% 44% 54% / 53% 44% 55% 48%!important;
  background:var(--detail-icon-wash)!important;
  color:#50565a;
}
body .activity-details-page :is([data-details-rollover],[data-details-advanced])[aria-pressed=true]{
  background:var(--detail-icon-orange)!important;
  color:#fff;
}
body .activity-details-page .activity-details-footer .activity-details-complete{
  border-radius:49% 53% 47% 54% / 53% 44% 56% 47%!important;
}

body .activity-details-page[data-details-layout=list] .details-option-row .details-option-icon {
  width: 40px;
  height: 40px;
  flex-basis: 40px;
}
body .activity-details-page[data-details-layout=grid] :is(.details-option-symbol, .details-option-icon) {
  width: 48px;
  height: 48px;
  flex-basis: 48px;
}
body .activity-details-page :is(.activity-created-row, .activity-details-advanced-line, .activity-details-footer, .activity-details-head) button > svg {
  width: 30px !important;
  height: 30px !important;
}
