/* ---------- Activity: the section control and Memory (web/memory.js) ----------
   The control is a row of chips (Cards · Notes · Memory · Runs · Schedules · Money, each with its count) in the
   segmented control's glass track. Memory uses the card list's look: the Newsreader title, frosted search and chips,
   uppercase day-style labels, and frosted groups of rows. */

/* six sections don't fit a 375px phone: the track scrolls sideways edge to edge, snapping to chips, fading at the
   edges. The track itself keeps its own width so the white indicator slides with it. */
.arc-segs{margin:4px -14px 16px;padding:0 14px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scroll-padding-inline:14px;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 14px,#000 calc(100% - 14px),transparent);mask-image:linear-gradient(90deg,transparent,#000 14px,#000 calc(100% - 14px),transparent)}
.arc-segs::-webkit-scrollbar{display:none}
.arc-segs .arc-seg{margin:0}
.arc-seg button{flex:none;min-width:0;padding:0 15px;display:inline-flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap;scroll-snap-align:center}
.seg-n{font-size:12.5px;font-weight:500;opacity:.62;font-variant-numeric:tabular-nums}
.seg-n:empty{display:none}

/* memory */
.mm-sub{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px}
.mm-src{display:inline-flex;align-items:center;gap:6px;font-size:11.5px;font-weight:550;padding:3px 10px 3px 8px;border-radius:99px;background:rgba(255,255,255,.16);color:rgba(255,255,255,.92)}
.mm-src i{width:6px;height:6px;border-radius:50%;background:rgba(255,255,255,.6)}
.mm-src.remote i{background:#c8f56a;box-shadow:0 0 8px #c8f56a}
.mm-list{display:flex;flex-direction:column;gap:8px;margin-top:10px}
.mm-list .arc-day{display:flex;align-items:baseline;gap:7px}
.mm-list .arc-day span{font-size:11px;opacity:.65;font-variant-numeric:tabular-nums}
.mm-profile,.mm-group{border-radius:24px;background:var(--frost);color:var(--frost-ink);backdrop-filter:blur(24px) saturate(1.3);-webkit-backdrop-filter:blur(24px) saturate(1.3);box-shadow:inset 0 0 0 1px rgba(255,255,255,.5);animation:dIn .45s var(--ease) backwards}
.mm-profile{padding:16px 18px;display:flex;flex-direction:column;gap:14px}
.mm-plbl{display:flex;align-items:center;gap:7px;font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:#6f6877;font-weight:550;margin-bottom:6px}
.mm-plbl i{width:7px;height:7px;border-radius:2px;background:#6b4f86}
.mm-pgroup.now .mm-plbl i{background:#e8a33d}
.mm-pgroup+.mm-pgroup{padding-top:14px;border-top:1px solid #e9e4ec}
.mm-profile ul{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:5px}
.mm-profile li{position:relative;padding-left:14px;font-size:15px;line-height:1.4;overflow-wrap:anywhere}
.mm-profile li::before{content:"";position:absolute;left:2px;top:.62em;width:4px;height:4px;border-radius:50%;background:#b3abb9}
.mm-group{overflow:hidden;animation-delay:calc(var(--i, 0) * 40ms)}
.mm-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;padding:13px 12px 13px 16px}
.mm-row+.mm-row{border-top:1px solid rgba(31,26,36,.08)}
.mm-txt{min-width:0;display:flex;flex-direction:column;gap:5px}
.mm-txt p{margin:0;font-size:15.5px;line-height:1.4;overflow-wrap:anywhere}
.mm-meta{display:flex;align-items:center;gap:8px;font-size:12px;color:#7a7282;font-variant-numeric:tabular-nums}
.mm-kind{font-size:10px;letter-spacing:.08em;text-transform:uppercase;font-weight:600;padding:2px 7px;border-radius:6px;background:#ece8ef;color:#6f6877}
.mm-kind.k-preference{background:#f3e8fb;color:#7a3f8f}
.mm-kind.k-fact{background:#e6edff;color:#2f55c4}
.mm-kind.k-event{background:#fdeedd;color:#a86412}
.mm-del{padding:0 9px}
.settled .mm-profile,.settled .mm-group{animation:none}
@media (prefers-reduced-motion:reduce){.mm-profile,.mm-group{animation:none}}
