/* The video specifies orange selection marks. Keep this scoped to the picker. */
ion-modal.sb-account-picker-modal {
  --width: 100%; --height: 100%; --max-width: 100%; --max-height: 100%;
  --border-radius: 0; --box-shadow: none; --background: #fff;
}
ion-modal.sb-account-picker-modal::part(content) { border-radius: 0; }
task-account-picker {
  --ap-accent: #b94b08; --ap-check: #e76b16; --ap-ink: #252525; --ap-muted: #68635f;
  display: flex; flex-direction: column; height: 100%; min-height: 0;
  background: #fff; color: var(--ap-ink); font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  padding-top: var(--ion-safe-area-top, env(safe-area-inset-top, 0px)); box-sizing: border-box;
}
task-account-picker *, task-account-picker *::before, task-account-picker *::after { box-sizing: border-box; }
task-account-picker button { font: inherit; color: inherit; border: 0; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; }
task-account-picker button:focus-visible { outline: 2px solid var(--ap-accent); outline-offset: -3px; border-radius: 6px; }
task-account-picker button:disabled { cursor: default; }
task-account-picker ::selection { color: var(--ap-ink); background: #ffe2ce; }
task-account-picker svg { width: 24px; height: 24px; flex: 0 0 auto; }
.sb-ap-header { display: grid; grid-template-columns: 88px minmax(0, 1fr) 88px; align-items: center; flex: 0 0 auto; min-height: 58px; border-bottom: 1px solid #eeeae7; }
.sb-ap-header h1 { font-size: 18px; font-weight: 600; line-height: 1.35; margin: 10px 0; text-align: center; overflow-wrap: anywhere; }
.sb-ap-back, .sb-ap-manage { min-height: 48px; padding: 10px 12px; }
.sb-ap-back { display: flex; align-items: center; justify-content: flex-start; gap: 2px; white-space: nowrap; }
.sb-ap-back span { font-size: 13px; }
.sb-ap-manage { color: var(--ap-muted); }
.sb-ap-content { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-color: #c9bdb4 #fff; scrollbar-width: thin; }
.sb-ap-summary { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; padding: 18px 20px 10px; font-size: 13px; color: var(--ap-muted); font-variant-numeric: tabular-nums; }
.sb-ap-group { display: flex; align-items: flex-start; padding: 10px 12px 12px 8px; border-bottom: 1px solid #f0ece9; }
.sb-ap-check { display: inline-flex; justify-content: center; align-items: center; flex: 0 0 44px; width: 44px; min-height: 48px; padding: 0; }
.sb-ap-mark { display: inline-flex; align-items: center; justify-content: center; width: 21px; height: 21px; flex: 0 0 21px; border: 1.5px solid #8b817a; border-radius: 50%; color: #fff; }
.sb-ap-mark svg { width: 16px; height: 16px; visibility: hidden; }
task-account-picker [aria-checked="true"] > .sb-ap-mark, task-account-picker [aria-checked="mixed"] > .sb-ap-mark { background: var(--ap-check); border-color: var(--ap-check); }
task-account-picker [aria-checked="true"] > .sb-ap-mark svg, task-account-picker [aria-checked="mixed"] > .sb-ap-mark svg { visibility: visible; }
.sb-ap-check:disabled .sb-ap-mark { border-color: #c6c0bb; background: #f6f4f2; }
.sb-ap-group-entry { flex: 1; min-width: 0; padding: 12px 0 8px; text-align: left; }
.sb-ap-group-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.sb-ap-group-heading strong { font-size: 15px; overflow-wrap: anywhere; }
.sb-ap-group-heading > svg { width: 18px; height: 18px; margin-left: auto; color: var(--ap-muted); }
.sb-ap-count { color: var(--ap-accent); white-space: nowrap; font-size: 12px; font-variant-numeric: tabular-nums; }
.sb-ap-preview { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; margin-top: 8px; color: var(--ap-muted); font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.sb-ap-owner, .sb-ap-unavailable { display: block; color: var(--ap-muted); font-size: 12px; margin-top: 6px; }
.sb-ap-account { display: flex; width: 100%; align-items: center; gap: 12px; padding: 14px 20px; text-align: left; border-bottom: 1px solid #f0ece9 !important; min-height: 80px; }
.sb-ap-avatar { position: relative; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; background: #f5f1ed; color: #8b817a; overflow: hidden; }
.sb-ap-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sb-ap-account-copy { flex: 1; min-width: 0; }
.sb-ap-account-copy strong { display: block; font-size: 15px; font-weight: 500; overflow-wrap: anywhere; }
.sb-ap-account-copy > span { display: block; margin-top: 4px; color: var(--ap-muted); font-size: 12px; overflow-wrap: anywhere; }
.sb-ap-account:disabled { background: #faf9f8; }
.sb-ap-account:disabled .sb-ap-mark { border-color: #c6c0bb; }
.sb-ap-footer { display: flex; align-items: center; flex: 0 0 auto; gap: 16px; padding: 10px 20px calc(10px + var(--ion-safe-area-bottom, env(safe-area-inset-bottom, 0px))) 8px; border-top: 1px solid #eeeae7; background: #fff; }
.sb-ap-all { display: flex; align-items: center; white-space: nowrap; }
.sb-ap-confirm { flex: 1; min-width: 0; min-height: 48px; padding: 10px 12px; border-radius: 8px; background: var(--ap-accent) !important; color: #fff !important; font-weight: 600 !important; font-variant-numeric: tabular-nums; }
.sb-ap-confirm:disabled { background: #e7dfd9 !important; color: #6b625c !important; }
.sb-ap-message { padding: 40px 24px; color: var(--ap-muted); text-align: center; }
.sb-ap-message button { min-height: 48px; padding: 10px 20px; color: var(--ap-accent); text-decoration: underline; text-underline-offset: 4px; }
.sb-ap-notice { margin: 4px 20px 12px; color: var(--ap-accent); font-size: 13px; }
.sb-ap-live { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (hover: hover) { .sb-ap-group-entry:hover, .sb-ap-account:not(:disabled):hover { background: #fff8f2; } }
@media (min-width: 768px) { .sb-ap-content, .sb-ap-header, .sb-ap-footer { padding-left: max(20px, calc((100% - 760px) / 2)); padding-right: max(20px, calc((100% - 760px) / 2)); } }

/* Same group list, spacing and navigation for the account-management entry. */
.sb-account-groups { --ap-accent:#b94b08; --ap-ink:#252525; --ap-muted:#68635f; display:flex; flex-direction:column; background:#fff; color:var(--ap-ink); font:15px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; padding-top:var(--ion-safe-area-top,env(safe-area-inset-top,0px)); }
.sb-account-groups * { box-sizing:border-box; }
.sb-account-groups button { font:inherit; border:0; background:transparent; cursor:pointer; color:inherit; }
.sb-account-groups button:focus-visible { outline:2px solid var(--ap-accent); outline-offset:-3px; }
.sb-account-groups button:disabled { cursor:default; opacity:.5; }
.sb-account-groups svg { width:24px; height:24px; flex-shrink:0; }
.sb-account-groups .sb-ap-group { padding-left:20px; padding-right:20px; }
.sb-account-groups .sb-ap-footer { padding-left:20px; }
.sb-account-groups .sb-ap-manage { color:var(--ap-muted); }
.sb-account-groups ::selection { background:#ffe2ce; color:var(--ap-ink); }
.sb-account-groups .sb-ap-confirm { justify-content:center; text-align:center; }
