/* A solid white sheet over the dimmed app, using the shared gray palette. */
#intentBackdrop{position:fixed;inset:0;z-index:1099;background:rgba(64,64,64,.5);opacity:0;transition:opacity .25s ease-in-out;touch-action:none}
#intentBackdrop.intent-open{opacity:1}
#intentBackdrop[hidden]{display:none!important}
html #captureIntentMenu,html.minimal-ui #captureIntentMenu{box-sizing:border-box;width:min(360px,85vw);max-height:100dvh;padding:calc(env(safe-area-inset-top) + 28px) 20px max(20px,env(safe-area-inset-bottom));background:#fff!important;color:var(--color-gray-dark,#404040)!important;border:0!important;border-radius:0!important;z-index:1100!important;overscroll-behavior:contain;box-shadow:none}
html #captureIntentMenu button,html.minimal-ui #captureIntentMenu button,html.minimal-ui #captureIntentMenu .user-aids,html.minimal-ui #captureIntentMenu .user-aids-heading,html.minimal-ui #captureIntentMenu .sound-controls{color:var(--color-gray-dark,#404040)!important;background:transparent!important}
html #captureIntentMenu button:hover,html.minimal-ui #captureIntentMenu button:hover{background:var(--color-gray-lightest,#f2f2f2)!important}
html #captureIntentMenu button:focus-visible,html.minimal-ui #captureIntentMenu button:focus-visible{outline-color:var(--color-gray,#5a5a5a)!important}
html #captureIntentMenu .intent-option-icon,html.minimal-ui #captureIntentMenu .intent-option-icon,html.minimal-ui #captureIntentMenu .intent-bottom-actions>button,html.minimal-ui #captureIntentMenu .zoom-controls button:not(.zoom-value){border-color:var(--color-gray-light,#a6a6a6)!important}
html #captureIntentMenu .user-aids,html.minimal-ui #captureIntentMenu .user-aids,html #captureIntentMenu .zoom-controls button,html.minimal-ui #captureIntentMenu .zoom-controls button{border-color:var(--color-gray-lighter,#d9d9d9)!important}
html.minimal-ui #captureIntentMenu>button{gap:16px;min-height:56px;margin-bottom:12px;border-radius:12px!important}
@media(prefers-reduced-motion:reduce){#intentBackdrop{transition:none}}

/* Keep touch taps from painting a browser highlight over activity rows. */
:is(.listrow,.stream-row,.swipe-front,.calendar-event,.timeline-item),:is(.listrow,.stream-row,.swipe-front,.calendar-event,.timeline-item) *{-webkit-tap-highlight-color:transparent!important}
#shareForm button[aria-busy="true"]{display:inline-flex;align-items:center;justify-content:center;gap:10px}
#shareForm button[aria-busy="true"]::before{content:"";width:14px;height:14px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:share-saving .8s linear infinite}
@keyframes share-saving{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){#shareForm button[aria-busy="true"]::before{animation:none}}
/* Message refreshes may recreate the button; keep row tools in stable slots. */
body .compact-activity-row .row-people-line>.row-people-names{order:0;flex:1;min-width:0}
body .compact-activity-row .row-people-line>.argh-row-messages{order:1;margin:0 6px!important}
body .compact-activity-row .row-people-line>.row-attachments{order:2;margin-left:6px!important}
body .compact-activity-row .row-people-line>.row-url-icon{order:3;margin-left:6px!important}

body .row-url-name{font-weight:400!important}

body .swipe-row .row-actions button:focus-visible::before{outline:2px solid var(--color-gray,#5a5a5a)!important;outline-offset:3px}
body .swipe-row .row-actions button:focus:not(:focus-visible)::before{outline:none!important}

/* Stream posts share Today's square white rows and neutral identity band. */
body #streamPanel .post-stream-entry{border:0!important;border-bottom:8px solid var(--color-gray-lightest,#f2f2f2)!important;border-radius:0!important;background:#fff!important;overflow:hidden}
body #streamPanel .post-stream-row{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:6px!important;width:100%!important;margin:0!important;padding:13px 12px!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:#fff!important;color:var(--color-gray-dark,#404040)!important}
body #streamPanel .post-stream-row>b,body #streamPanel .post-stream-row>time{grid-column:1!important;font-weight:500!important}
body #streamPanel .post-stream-row>time{font-weight:400!important;color:var(--color-gray,#5a5a5a)!important}
.post-row-people{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:8px 12px;background:var(--color-gray-lighter,#d9d9d9);color:var(--color-gray-dark,#404040);font-size:14px}
.post-row-people .post-author-mark{display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;border:1px solid #fff;border-radius:50%!important;background:#153f59;color:#fff;font-weight:500}
.post-row-author{min-width:0;overflow-wrap:anywhere;font-weight:500}.post-row-audience{margin-left:auto;font-size:12px;color:var(--color-gray,#5a5a5a)}
body #streamPanel .post-comments-toggle{display:block;width:100%;margin:0;border:0!important;border-radius:0!important;background:#fff;color:var(--color-gray,#5a5a5a);padding:10px 12px;text-align:left}
body #streamPanel .post-tags:empty,body #streamPanel .post-inline-media:empty{display:none}

/* Compact view heading, with a quiet fade instead of a bounce. */
html.minimal-ui .minimal-header{padding-top:0!important;padding-bottom:0!important}
html.minimal-ui .minimal-menu{top:4px!important}
html.minimal-ui .minimal-title-artwork.view-title-fade{animation:argh-view-fade 180ms ease-out both}
html.minimal-ui .minimal-title:has(img[src*="now2-view.svg"]) .minimal-title-artwork{width:60px!important;height:60px!important;min-width:60px!important;max-width:60px!important;flex-basis:60px!important}
html.minimal-ui .minimal-title:has(img[src*="now2-view.svg"]) .minimal-title-artwork>img{width:60px!important;height:60px!important;transform:none!important}
html.minimal-ui .minimal-title:has(img[src*="now2-view.svg"])>span:last-child{transform:translateX(-6px)!important}
@media(prefers-reduced-motion:reduce){html.minimal-ui .minimal-title-artwork.view-title-fade{animation:none!important}}

html.minimal-ui .capture{padding:0!important;margin:0!important}

/* Identity rows stay quiet, with the same separator used by the view header. */
body .compact-activity-row .row-people-line,body .today-layout .row-people-line,body #streamPanel .post-row-people{background:#fff!important;border-bottom:1px solid var(--argh-row-divider-color,var(--color-gray-lighter,#d9d9d9))!important}

/* Everything's activity rows use the same content column as Today. */
body #streamPanel .stream-date-group{display:flex;flex-direction:column;gap:8px;background:var(--color-gray-lightest,#f2f2f2)}
body #streamPanel .stream-activity-row{display:flex!important;align-items:center;gap:10px;width:100%;min-height:68px;padding:13px 52px 13px 12px;text-align:left;border:0!important;border-radius:0!important;box-shadow:none!important;background:#fff!important}
body #streamPanel .stream-activity-row>span:not(.assignee-avatars){flex:1;min-width:0}
body #streamPanel .stream-activity-row b{display:block;font-size:1rem;line-height:1.35;font-weight:500!important}
body #streamPanel .stream-activity-row small,body #streamPanel .stream-activity-row time{display:block;font-size:.78rem;color:var(--color-gray,#5a5a5a);margin-top:4px}
body #streamPanel .stream-entry:before{display:none!important}

/* The expanded intent list scrolls on short screens. */
html.minimal-ui #captureIntentMenu{overflow-y:auto}
html.minimal-ui #captureIntentMenu>button{margin-bottom:4px}

html.minimal-ui #captureIntentMenu [aria-current=true] .intent-option-icon{
  border:1px solid var(--color-gray-light,#a6a6a6)!important;
  border-radius:50%!important;
  background:rgba(247,247,247,.96)!important;
}

html.minimal-ui body #captureIntentMenu button[aria-current=true]>.intent-option-icon,
html.minimal-ui body #captureIntentMenu button:active>.intent-option-icon{
  border:1px solid var(--color-gray-light,#a6a6a6)!important;
  border-radius:50%!important;
  background:#f2f2f2!important;
}
