/* Scoped to Today while the first pass is reviewed. */
body .today-layout .queue-group{display:flex;flex-direction:column;gap:8px!important;background:#f5f5f5!important}
body .today-layout .swipe-row{margin:0!important;border:0!important;box-shadow:none!important;border-radius:0!important;background:#fff;overflow:hidden}
body .today-layout .swipe-row>.swipe-front{background:#fff!important}
body .today-layout .row-people-line{border:0!important;background:#e3e3e3!important}
body .today-layout .compact-activity-row>.swipe-front>:is(.listrow,.stream-row,[data-shared]){background:#fff!important;min-height:68px!important;padding-right:52px!important;border:0!important}
body .today-layout .compact-activity-row>.swipe-front>.row-more{width:44px!important;border:0!important;background:transparent!important}
body .today-layout .today-status-check{display:block;width:30px;height:30px;margin:auto;fill:#98c746}
body .today-layout .priority-handle{width:32px!important;min-width:32px!important;font-size:20px!important;color:#777!important;background:transparent!important}
body .today-layout .today-layout-tools{display:flex;justify-content:flex-end;align-items:center;gap:12px;min-height:38px;padding:3px 10px;background:#fff;box-sizing:border-box}
body .today-layout .today-layout-tools button{font-size:13px;padding:5px 12px;min-height:32px}
body :is(#list,#nowRows).today-reordering .today-layout-tools{position:sticky;top:0;z-index:20;justify-content:space-between;background:#f1f5f7;border-bottom:1px solid #ddd;font-size:14px}
body :is(#list,#nowRows).today-reordering .today-layout-tools button{background:#173f59;color:#fff;border-radius:18px!important}
body .today-layout .today-photo-size{position:absolute;top:6px;left:6px;z-index:4;display:grid;place-items:center;width:28px;height:28px;min-height:28px;padding:4px;border:1px solid #999;border-radius:50%!important;background:#fffffff0;color:#666;cursor:pointer;touch-action:manipulation}
body .today-layout .today-photo-size svg{width:19px;height:19px;pointer-events:none}
body .today-layout .today-photo-size:focus-visible{outline:2px solid #173f59;outline-offset:2px}
body .today-layout .row-photo-media{transition:aspect-ratio .22s ease}
body .today-layout .compact-activity-row>.swipe-front>:is(.listrow,.stream-row,[data-shared])>.photo-thumbnail{width:68px!important}
body .today-layout .compact-activity-row>.swipe-front>:is(.listrow,.stream-row,[data-shared]):has(>.photo-thumbnail){padding-left:calc(var(--row-leading) + 80px)!important}
@media(prefers-reduced-motion:reduce){body .today-layout .row-photo-media{transition:none}}

body .today-layout .row-more .row-swipe-dot{background:var(--status-color,#4199c9)!important}
body #nowRows.today-layout{display:flex;flex-direction:column;gap:8px!important;background:#f5f5f5!important;padding-bottom:var(--argh-list-gap,8px)!important}
body .today-layout .today-photo-size{box-sizing:border-box;line-height:0;align-items:center;justify-items:center}

/* Match the activity gaps above the first row and below the last. */
body #weatherRow{border-bottom:8px solid #f5f5f5!important}
body .today-layout{padding-bottom:8px!important;background:#f5f5f5!important}
body .today-layout{background:#f5f5f5!important;padding-bottom:8px!important}
body .today-layout:not(#nowRows)>.swipe-row+ .swipe-row{margin-top:8px!important}
/* A people header already provides separation from the preceding activity. */
body .today-layout:not(#nowRows)>.swipe-row+ .swipe-row:has(>.row-people-line){margin-top:0!important}
body .compact-activity-row .row-people-line{border:0!important;background:#e3e3e3!important}
body .compact-activity-row .row-people-line>.row-url-icon{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border:1px solid #777;border-radius:50%!important;background:white;color:#666;margin-left:auto;padding:4px;box-sizing:border-box}
.row-url-icon svg{width:20px;height:20px}

/* Keep the people header stationary above the sliding activity/action row. */
body .compact-activity-row:has(>.row-people-line){display:block!important}

/* Keep the size toggle quietly anchored in the thumbnail corner. */
body .today-layout .today-photo-size{opacity:.8}

body .today-layout .today-photo-target{position:absolute;z-index:3;min-width:0;min-height:0;padding:0;border:0;background:transparent;color:transparent;cursor:pointer;touch-action:manipulation}
body .today-layout .today-photo-target:focus-visible{outline:2px solid #5a5a5a;outline-offset:-2px}

/* Thumbnail itself is the expand control; only expanded media needs an icon. */
body .today-layout .today-photo-size[aria-expanded="false"]{display:none!important}
body .today-layout .today-photo-size[aria-expanded="true"]{top:10px;left:10px}
