#modalRoot .brain-modal-overlay{display:grid;place-items:center;padding:24px 12px;background:rgba(255,255,255,.93);overflow:auto}
.brain-wheel{position:relative;width:min(100%,352px);aspect-ratio:1;margin:26px 0;background:transparent!important;border:0!important;box-shadow:none!important;outline:none!important}
.brain-orbit{position:absolute;inset:0;transform-origin:center;animation:brain-orbit-clockwise 90s linear infinite}
#modalRoot .brain-orbit .brain-destination{transform-origin:center;animation:brain-orbit-upright 90s linear infinite}
.brain-wheel:active .brain-orbit,#modalRoot .brain-wheel:active .brain-destination{animation-play-state:paused}
@keyframes brain-orbit-clockwise{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}
@keyframes brain-orbit-upright{from{transform:rotate(0deg)}to{transform:rotate(-360deg)}}
.brain-wheel:before{content:'';position:absolute;inset:16%;border:2px solid #f60;border-radius:50%!important;clip-path:circle(50%);pointer-events:none}
#modalRoot .brain-wheel button{position:absolute;display:grid;place-items:center;box-sizing:border-box;width:24%;aspect-ratio:1;padding:0;min-width:0;min-height:0;border:1px solid #626262!important;border-radius:50%!important;background:#fff;color:#333}
.brain-wheel svg{width:43%;height:43%}
.brain-wheel button span{position:absolute;top:calc(100% + 5px);font-size:11px;font-weight:600;line-height:1.2;color:#4b4b4b;white-space:nowrap}
.brain-wheel [data-brain-area=when]{left:38%;top:0}
.brain-wheel [data-brain-area=where]{left:70.909%;top:19%}
.brain-wheel [data-brain-area=why]{left:70.909%;top:57%}
.brain-wheel [data-brain-area=how]{left:38%;top:76%}
.brain-wheel [data-brain-area=who]{left:5.091%;top:57%}
.brain-wheel [data-brain-area=what]{left:5.091%;top:19%}
#modalRoot .brain-wheel .brain-center{left:38%;top:38%}
#modalRoot .brain-suggest{position:absolute;right:20px;top:calc(18px + env(safe-area-inset-top));display:grid;place-items:center;width:36px;height:36px;padding:7px;border:1px solid #777;border-radius:50%!important;background:#fff;color:#4b4b4b}
.brain-suggest svg{width:22px;height:22px}
#modalRoot .detail-subpage-open>.brain-suggest{display:grid!important}
#modalRoot .brain-context-page .context-place-note{display:none}
#modalRoot .zoom-ai[hidden]{display:none!important}
#modalRoot .brain-context-page .context-roles{justify-content:center;gap:20px}
#modalRoot .brain-context-page .context-role{width:64px}
#modalRoot .brain-context-page .activity-context{padding-inline:0;border:0}
#modalRoot .brain-context-page .brain-business{margin:0 0 16px;border-radius:24px!important}
.brain-suggestion{display:block;width:100%;padding:16px 0;text-align:left;border:0;border-bottom:1px solid #ccc;background:#fff;color:#333}
.brain-suggestion b,.brain-suggestion small{display:block}.brain-suggestion small{margin-top:5px;color:#65717b;line-height:1.4}
.brain-working{text-align:center;padding:32px}.brain-working svg{width:48px;height:48px;animation:brain-think 1s ease-in-out infinite alternate}
@keyframes brain-think{to{opacity:.4;transform:scale(.95)}}
@media(prefers-reduced-motion:reduce){.brain-working svg,.brain-orbit,#modalRoot .brain-orbit .brain-destination{animation:none}}
/* Smaller gaps keep the extra entry point within a phone-width swipe tray. */
body .swipe-row[data-compact-swipe]>.row-actions button{width:46px;min-width:46px;flex-basis:46px}
body .swipe-row>.swipe-front>[data-id],body .swipe-row>.swipe-front>[data-shared]{cursor:default}
.activity-people-context{position:relative;padding:12px 16px}
.activity-people-context>h2{padding-right:48px;color:#4b4b4b;font-size:20px}
.activity-people-context>.brain-suggest{position:absolute;right:72px;top:12px;display:grid;place-items:center;width:36px;height:36px;padding:7px;background:#fff;color:#4b4b4b;border:1px solid #777;border-radius:50%!important}
.activity-people-context .people-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr));gap:12px;margin:20px 0}
.activity-people-context .people-list .person-row{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;padding:12px;border:0}
.activity-people-context .people-list .assignee-avatar{display:block;width:56px!important;height:56px!important;min-width:56px!important;max-width:56px!important;min-height:56px!important;max-height:56px!important;flex:none!important;aspect-ratio:1!important;object-fit:cover!important;margin:0!important}
.activity-people-context .people-list .person-row>span{font-weight:600}
.activity-people-context form{margin-block:20px}
.activity-people-context .field input:not([type=checkbox]),.activity-people-context .field select,.activity-people-context .field textarea{width:100%;max-width:100%;border-radius:20px!important}

/* Move and both needs modes share one orbit geometry. */
#modalRoot .move-orbit-viewport{overflow:visible}
#modalRoot .move-orbit,.basic-needs-orbit{position:absolute;inset:0;width:100%;height:100%;transform-origin:center;animation:move-orbit-clockwise 90s linear infinite}
#modalRoot .move-orbit .move-destination,#modalRoot .basic-needs-orbit .basic-need{position:absolute;display:grid;place-items:center;width:27%;height:auto;aspect-ratio:1;min-width:0;min-height:0;padding:0;border:1px solid var(--color-gray,#5a5a5a)!important;border-radius:50%!important;background:#fff!important;color:var(--color-gray,#5a5a5a)!important;box-shadow:none;animation:move-orbit-upright 90s linear infinite;transform-origin:center;font-size:15px;font-weight:400;line-height:1.2;text-align:center}
.basic-need svg{width:48%;height:48%}
#modalRoot :is(.move-orbit,.basic-needs-orbit) :is([data-need-slot="0"],[data-quick-when=today]){left:36.5%;top:0%}
#modalRoot :is(.move-orbit,.basic-needs-orbit) :is([data-need-slot="1"],[data-quick-when=soon]){left:68.109927%;top:18.25%}
#modalRoot :is(.move-orbit,.basic-needs-orbit) :is([data-need-slot="2"],[data-quick-when=whenever]){left:68.109927%;top:54.75%}
#modalRoot :is(.move-orbit,.basic-needs-orbit) :is([data-need-slot="3"],[data-quick-when=scheduled]){left:36.5%;top:73%}
#modalRoot :is(.move-orbit,.basic-needs-orbit) :is([data-need-slot="4"],[data-quick-when=next]){left:4.890073%;top:54.75%}
#modalRoot :is(.move-orbit,.basic-needs-orbit) :is([data-need-slot="5"],[data-quick-when=now]){left:4.890073%;top:18.25%}
#modalRoot .move-orbit [data-quick-when=soon]{background:#f8d052!important;border-color:#f8d052!important;color:#fff!important}
#modalRoot .move-orbit [data-quick-when=whenever]{background:#4199c9!important;border-color:#4199c9!important;color:#fff!important}
#modalRoot .move-orbit [data-quick-when=now]{background:#f47721!important;border-color:#f47721!important;color:#fff!important}
#modalRoot .needs-subactivities,#modalRoot .move-orbit #quickWhenClose{position:absolute;left:36.5%;top:36.5%;width:27%;height:auto;aspect-ratio:1;min-height:0;min-width:0;display:grid;place-items:center;padding:0;border:0!important;border-radius:50%!important;background:var(--color-gray,#5a5a5a)!important;color:#fff!important;font-size:28px;line-height:1;animation:move-orbit-upright 90s linear infinite;transform-origin:center}
.needs-subactivities svg{width:60%;height:60%}
.basic-needs-viewport:active .basic-needs-orbit,.basic-needs-viewport:active button{animation-play-state:paused!important}
.needs-title{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.needs-modes{display:flex;align-items:center;justify-content:center;gap:12px;height:56px;margin-bottom:12px}
#modalRoot .needs-modes button{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;min-height:44px;padding:9px;border:1px solid var(--color-gray,#5a5a5a)!important;border-radius:50%!important;background:#fff!important;color:var(--color-gray,#5a5a5a)!important}
#modalRoot .needs-modes button[aria-pressed=true]{background:#f47721!important;border-color:#f47721!important;color:#fff!important}
.needs-modes svg{width:26px;height:26px}
#modalRoot .move-modal-title{display:flex;align-items:center;justify-content:center;min-height:56px;margin-bottom:12px}
#modalRoot .basic-need:focus-visible,#modalRoot .needs-modes button:focus-visible{outline:2px solid var(--color-gray-light,#a6a6a6)!important;outline-offset:3px}
.needs-content-actions{display:flex;gap:12px;flex-wrap:wrap}
@media(prefers-reduced-motion:reduce){#modalRoot .basic-needs-orbit,#modalRoot .basic-needs-orbit button{animation:none!important}}

/* Uploaded artwork stays unframed; hit targets retain the same orbit dimensions. */
#modalRoot .basic-needs-orbit .basic-need.has-needs-artwork,#modalRoot .needs-subactivities{border:0!important;background:transparent!important}
.needs-artwork{display:block;width:92%;height:92%;object-fit:contain;pointer-events:none}
.needs-subactivities .needs-artwork{width:100%;height:100%}
