/* First reduction pass: text-only view headings, existing dots and controls. */
html.minimal-ui .minimal-title-artwork{display:none!important}
html.minimal-ui .minimal-view-heading .minimal-title{position:static!important;display:flex!important;align-items:center!important;justify-content:center!important;flex:1!important;min-width:0!important;max-width:100%!important;gap:8px!important;grid-template-columns:none!important;translate:none!important;transform:none!important;font-size:clamp(20px,5.5vw,30px)!important;letter-spacing:normal!important;padding:0!important;height:auto!important;min-height:0!important;white-space:nowrap!important}
html.minimal-ui .minimal-title:before,html.minimal-ui .minimal-title:after{display:none!important;content:none!important}
html.minimal-ui .minimal-title>span:last-child{transform:none!important}
html.minimal-ui .view-title-date{display:inline!important;font:inherit!important;font-size:14px!important;font-weight:400!important;letter-spacing:normal!important;color:#5a5a5a!important;background:transparent!important;border:0!important;padding:4px 0!important;white-space:nowrap!important}
html.minimal-ui .minimal-title:focus-visible,html.minimal-ui .view-title-date:focus-visible{outline:2px solid #5a5a5a;outline-offset:3px}
@media(max-width:360px){html.minimal-ui .minimal-view-heading{gap:6px!important}html.minimal-ui .view-title-date{font-size:12px!important}}
/* Share the activity gutter color across View content. */
:root{--argh-list-gap:8px;--argh-list-gap-color:#f3f6f8}
html.minimal-ui .app>.content,html.minimal-ui .content>.main{background-color:var(--argh-list-gap-color)!important}
html.minimal-ui .main>:is(#cartPanel,#peopleView,#calendar,#timeline,#messagesPanel){border-inline:var(--argh-list-gap) solid var(--argh-list-gap-color)!important}
html.minimal-ui .main :is(.people-row-list,.message-filter-row,.calendar-event,.calendar-top-controls,.calendar-section-header,.timeline-item){border-color:var(--argh-row-divider-color)!important}
html.minimal-ui body .today-layout{padding-inline:var(--argh-list-gap)!important;box-sizing:border-box!important;background:var(--argh-list-gap-color)!important}
html.minimal-ui body .today-layout .queue-group,
html.minimal-ui body #nowRows.today-layout{gap:var(--argh-list-gap)!important;background:var(--argh-list-gap-color)!important}
/* The count badge changes; arrow geometry comes from the established header. */
html.minimal-ui .view-day-arrow .view-day-count{background:var(--color-gray,#5a5a5a)!important;color:#fff!important;min-width:18px!important;height:18px!important;padding:0 4px!important;border:1px solid #fff!important;border-radius:50%!important;font-size:11px!important;line-height:1!important;right:-7px!important;top:-8px!important}
html.minimal-ui body .today-layout{margin-inline:0!important;width:100%!important}
html.minimal-ui body .today-layout .queue-group{margin-inline:0!important;padding-inline:0!important}
html.minimal-ui body .compact-activity-row .row-people-line{justify-content:flex-start!important;text-align:left!important;border-bottom:1px solid var(--argh-row-divider-color,var(--color-gray-lighter,#d9d9d9))!important;background:var(--color-gray-lightest,#f2f2f2)!important}
html.minimal-ui body .row-people-line .row-people-names{justify-content:flex-start!important;justify-self:start!important;text-align:left!important;margin-left:0!important;margin-right:auto!important}
html.minimal-ui body .row-people-names .row-relationship{justify-content:flex-start!important;text-align:left!important;margin:0!important;flex:0 1 auto!important;width:auto!important}
html.minimal-ui body .row-people-line .assignee-avatars{position:static!important;inset:auto!important;justify-content:flex-start!important;margin-left:0!important;padding-left:0!important;transform:none!important}
/* Match the stronger full-width list selectors; borders keep both gutters visible. */
html.minimal-ui body .main :is(#list,#streamPanel,#nowRows).today-layout{padding-inline:0!important;border-left:var(--argh-list-gap) solid var(--argh-list-gap-color)!important;border-right:var(--argh-list-gap) solid var(--argh-list-gap-color)!important;border-radius:0!important;width:100%!important;box-sizing:border-box!important}
html.minimal-ui body :is(.count-bubble,.view-day-count,.nav-badge,.now-nav-count,.details-count,.detail-count,.invite-count-bubble,.sort-count-bubble,.neutral-count){background:var(--color-gray,#5a5a5a)!important;background-image:none!important;color:#fff!important}
/* Smaller artwork, with the existing touch targets retained. */
html.minimal-ui body .row-actions [data-rollover-toggle] svg,html.minimal-ui body [data-details-rollover] svg{width:24px!important;height:24px!important}
html.minimal-ui body .row-actions .complete-action svg{width:24px!important;height:24px!important}
html.minimal-ui body .row-actions .complete-check{width:26px!important;height:26px!important;font-size:19px!important}
html.minimal-ui body .activity-details-page .activity-details-complete{width:48px!important;height:48px!important;min-width:48px!important;min-height:48px!important;padding:10px!important}
html.minimal-ui body .activity-details-page .activity-details-complete svg{width:28px!important;height:28px!important}
html.minimal-ui body :is(#list,#streamPanel,#nowRows,#modalRoot,.activity-details-page) :is(.count-bubble,.details-count,.detail-count){background:var(--color-gray,#5a5a5a)!important;color:#fff!important}
/* Reserve the same title/date lane in every view. */
html.minimal-ui body:not(.view-bar-hidden) .minimal-header{height:104px!important;min-height:104px!important;max-height:104px!important;box-sizing:border-box!important;padding-top:10px!important;padding-bottom:0!important;justify-content:flex-start!important}
html.minimal-ui .minimal-header .minimal-view-heading{height:54px!important;min-height:54px!important;flex:0 0 54px!important;align-items:start!important;padding-top:0!important;padding-bottom:0!important}
html.minimal-ui .minimal-header .minimal-view-heading .minimal-title{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-start!important;height:54px!important;min-height:54px!important;gap:2px!important;margin-top:0!important;padding:0!important;line-height:32px!important;font-size:28px!important}
html.minimal-ui .minimal-header .view-title-date{display:block!important;padding:0!important;font-size:13px!important;line-height:18px!important;height:18px!important;text-align:center!important}
html.minimal-ui .minimal-header .minimal-dots{margin-top:0!important;transform:translateY(-4px)!important}
/* Neutral filter numerals sit inside the existing circle, never on a rectangle. */
html.minimal-ui body .neutral-count-control .neutral-count{background:transparent!important;background-image:none!important;color:#5a5a5a!important}
html.minimal-ui body .neutral-count-control[aria-pressed=true] .neutral-count{color:#fff!important}
html.minimal-ui body .neutral-count-control:before{border-color:#5a5a5a!important;background:#fff!important}
html.minimal-ui body .neutral-count-control[aria-pressed=true]:before{background:#5a5a5a!important}
html.minimal-ui #peopleView :is(.matrix-count-bubble,.people-chip-count,.invite-count-bubble,.sort-count-bubble){background:var(--ctx-blue,#0a68b0)!important;color:#fff!important;border-radius:49% 51% 44% 56% / 54% 46% 54% 46%!important;aspect-ratio:1!important;padding:0!important;min-width:20px!important;width:20px!important;height:20px!important;display:grid!important;place-items:center!important}
/* Community identities have stable colors across grids, invites and detail pages. */
body .group-icon>.community-initial{display:grid!important;place-items:center!important;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;flex:1!important;border-radius:50%!important;color:#fff!important;font:inherit!important;line-height:1!important}
body #peopleView .group-icon,body #peopleView .group-icon>.community-initial{color:#fff!important;-webkit-text-fill-color:#fff!important}
/* Keep the badge row aligned even when one name needs a second line. */
html.minimal-ui #peopleView .circle-matrix{align-items:start!important;grid-auto-rows:minmax(112px,auto)!important}
html.minimal-ui #peopleView .circle-matrix-card{align-self:start!important;justify-content:flex-start!important;min-height:112px!important;box-sizing:border-box!important}
html.minimal-ui #peopleView .circle-matrix-card>b,html.minimal-ui #peopleView .circle-matrix-card>button>b{display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden!important;line-height:1.3!important;height:2.6em!important;min-height:2.6em!important;margin:0!important;font-weight:500!important}
html.minimal-ui #peopleView .matrix-avatar,html.minimal-ui #peopleView .circle-matrix .group-icon{flex-shrink:0!important;align-self:center!important}
html.minimal-ui #peopleView .people-main-chips .neutral-count-control::before{
  background:var(--ctx-blue,#0a68b0)!important;border-color:transparent!important;
}
html.minimal-ui #peopleView .people-main-chips .neutral-count-control[aria-pressed=true]::before{
  outline:2px solid #f47721;outline-offset:1px;
}
html.minimal-ui #peopleView .people-main-chips .neutral-count-control .neutral-count{
  color:#fff!important;-webkit-text-fill-color:#fff!important;
}
/* The small invitation badge must not stretch with its toolbar button. */
html.minimal-ui body #peopleView .invite-direction-controls button>.invite-count-bubble{position:absolute!important;inset:-5px -5px auto auto!important;display:grid!important;place-items:center!important;box-sizing:border-box!important;align-self:start!important;justify-self:end!important;flex:none!important;aspect-ratio:1!important;min-width:22px!important;max-width:22px!important;width:22px!important;min-height:22px!important;max-height:22px!important;height:22px!important;padding:0!important;margin:0!important;border:1px solid #fff!important;border-radius:49% 51% 44% 56% / 54% 46% 54% 46%!important;background:var(--ctx-blue,#0a68b0)!important;color:#fff!important;font-size:11px!important;line-height:1!important;white-space:nowrap!important;transform:none!important}
/* Center enabled view dots on the header itself; the menu occupies no layout space. */
html.minimal-ui body .minimal-header .minimal-dots{position:absolute!important;left:50%!important;right:auto!important;bottom:12px!important;top:auto!important;transform:translateX(-50%)!important;translate:none!important;width:max-content!important;max-width:calc(100% - 88px)!important;margin:0!important;padding:0!important;align-self:center!important;justify-content:safe center!important;flex-wrap:nowrap!important;overflow-x:auto!important;box-sizing:border-box!important}

/* Restore uploaded View artwork at a compact, neutral size. Originals stay intact. */
html.minimal-ui body .minimal-header .minimal-view-heading .minimal-title{justify-content:flex-start!important;gap:0!important}
html.minimal-ui body .minimal-header .view-title-main{display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;height:36px!important;min-height:36px!important;transform:none!important;white-space:nowrap!important}
html.minimal-ui body .minimal-header .minimal-title .minimal-title-artwork{display:inline-grid!important;place-items:center!important;width:36px!important;height:36px!important;min-width:36px!important;max-width:36px!important;flex:0 0 36px!important;margin:0!important;padding:0!important;filter:grayscale(1)!important;opacity:.85;overflow:visible!important}
html.minimal-ui body .minimal-header .minimal-title .minimal-title-artwork:has(.view-wash-icon){filter:none!important;opacity:1!important}
html.minimal-ui body .minimal-header .minimal-title .minimal-title-artwork>img,html.minimal-ui body .minimal-header .minimal-title .minimal-title-artwork>svg{display:block!important;width:36px!important;height:36px!important;min-width:0!important;max-width:36px!important;max-height:36px!important;object-fit:contain!important;margin:0!important;padding:0!important;transform:none!important}
html.minimal-ui body .minimal-header .minimal-title .view-title-text{transform:none!important;line-height:32px!important}
html.minimal-ui body .minimal-header .minimal-title .view-title-date{flex:0 0 18px;height:18px!important;min-height:18px!important;line-height:18px!important;margin:0!important}
html.minimal-ui body .minimal-header:has(.view-title-date) .minimal-dots{bottom:8px!important}

/* Let the people/tools bridge the gray header and its activity by four pixels. */
html.minimal-ui body .compact-activity-row .row-people-line{position:relative;z-index:5;height:40px!important;min-height:40px!important;padding-top:5px!important;padding-bottom:0!important;align-items:flex-end!important;overflow:visible!important}
html.minimal-ui body .compact-activity-row .row-people-line>*{translate:0 4px!important}

/* Compact connected header: matching 30px badges, with its trailing tool over swipe. */
html.minimal-ui body .compact-activity-row .row-people-line{height:28px!important;min-height:28px!important;padding:0 7px 0 2px!important;border:0!important;box-shadow:none!important}
html.minimal-ui body .compact-activity-row .row-people-line>*{translate:0 6px!important}
html.minimal-ui body .compact-activity-row .row-people-line .assignee-avatar{width:30px!important;height:30px!important;min-width:30px!important;max-width:30px!important;min-height:30px!important;max-height:30px!important;flex:0 0 30px!important;box-sizing:border-box!important}
html.minimal-ui body .compact-activity-row .row-people-line>:is(.argh-row-messages,.row-url-icon,.row-attachments){width:30px!important;height:30px!important;min-width:30px!important;min-height:30px!important;flex:0 0 30px!important;box-sizing:border-box!important}
/* Select the last visually ordered tool, not the last DOM child: chat refreshes
   append a replacement button after the globe while CSS keeps it before it. */
html.minimal-ui body .compact-activity-row .row-people-line>.row-url-icon,
html.minimal-ui body .compact-activity-row .row-people-line:not(:has(>.row-url-icon))>.row-attachments,
html.minimal-ui body .compact-activity-row .row-people-line:not(:has(>.row-url-icon,>.row-attachments))>.argh-row-messages{margin-right:0!important}

/* Off filters retain their state outline while their count goes neutral. */
html.minimal-ui body .status-count-filter:is([aria-pressed=false],:disabled,[aria-disabled=true])::before{background:#fff!important;border-color:var(--status-filter-color,var(--color-gray,#5a5a5a))!important}
html.minimal-ui body .neutral-count-control:is([aria-pressed=false],:disabled,[aria-disabled=true])::before{background:#fff!important;border-color:var(--color-gray,#5a5a5a)!important}
html.minimal-ui body :is(.status-count-filter,.neutral-count-control):is([aria-pressed=false],:disabled,[aria-disabled=true]) :is(.status-count,.neutral-count){color:var(--color-gray,#5a5a5a)!important;-webkit-text-fill-color:var(--color-gray,#5a5a5a)!important}
/* Keep the master toggle anchored left without adding a row or shifting the counts. */
html.minimal-ui .action-filter-bar .action-summary-filters{padding-inline:44px!important}
.count-selection-controls{position:absolute;left:0;top:8px;width:44px;height:44px;display:grid;place-items:center;color:var(--color-gray,#5a5a5a)}
html.minimal-ui .count-selection-controls button{display:grid;place-items:center;width:44px;min-width:44px;height:44px;min-height:44px;padding:10px;margin:0;border:0!important;border-radius:50%!important;background:transparent!important;color:var(--color-gray,#5a5a5a)!important;box-shadow:none}
.count-selection-controls svg{display:block;width:24px;height:24px}

/* A plain gray eye keeps the master filter quiet while retaining its tap target. */
html.minimal-ui .count-selection-controls button{padding:12px;color:var(--color-gray,#5a5a5a)!important;background:transparent!important;border:0!important}
.count-selection-controls svg{width:20px;height:20px}

/* Empty selection fades the eye using the palette light gray. */
html.minimal-ui .count-selection-controls button[aria-checked=false]{color:var(--color-gray-light,#a6a6a6)!important}

/* Pointer use stays quiet; keyboard focus stays inside the existing hit area. */
html.minimal-ui body .count-selection-controls button:focus:not(:focus-visible){outline:none!important}
html.minimal-ui body .count-selection-controls button:focus-visible{outline:2px solid var(--color-gray-light,#a6a6a6)!important;outline-offset:-4px!important}
