/* 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; }

/* Inline disclosure is scoped to My accounts, not the task account picker. */
.sb-account-groups .sb-ap-group { display:block; padding:0; }
.sb-account-groups .sb-ap-group-entry { display:block; width:100%; padding:18px 20px; min-height:64px; }
.sb-account-groups .sb-ap-group-heading { flex-wrap:nowrap; gap:12px; }
.sb-account-groups .sb-ap-group-heading strong { flex:1; min-width:0; font-size:16px; font-weight:500; }
.sb-account-groups .sb-ap-group-heading > .sb-ag-chevron { width:14px; height:14px; margin:0; color:var(--ap-muted); }
.sb-account-groups .sb-ap-count { margin-left:auto; color:var(--ap-muted); }
.sb-account-groups .sb-ap-owner { margin-left:26px; }
.sb-account-groups .sb-ag-accounts[hidden] { display:none; }
.sb-account-groups .sb-ag-accounts ul { margin:0; padding:0; list-style:none; }
.sb-account-groups .sb-ap-account { padding:12px 20px 12px 46px; min-height:76px; }
.sb-account-groups .sb-ap-avatar { width:44px; height:44px; flex-basis:44px; }
.sb-account-groups .sb-ap-account-copy > .sb-ag-expired { color:var(--ui-danger,#c83935); }
.sb-account-groups .sb-ag-empty { margin:0; padding:16px 46px; color:var(--ap-muted); }
.sb-account-groups .sb-ag-edit { display:block; min-height:44px; margin-left:34px; padding:10px 12px; color:var(--ap-accent); font-size:13px; }
@media (hover:hover) { .sb-account-groups .sb-ag-edit:hover { text-decoration:underline; text-underline-offset:4px; } }

/* My accounts management: orange actions and green organizational tools. */
.sb-account-groups .sb-ag-header { grid-template-columns:56px minmax(0,1fr) 56px; }
.sb-account-groups .sb-ag-total { display:block; margin-top:4px; color:#24724f; font-size:12px; font-weight:500; font-variant-numeric:tabular-nums; }
.sb-ag-toolbar { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); padding:8px 12px; border-bottom:1px solid #eeeae7; flex-shrink:0; }
.sb-account-groups .sb-ag-tool { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px; min-height:64px; padding:8px 2px; color:#b94b08; font-size:12px; }
.sb-account-groups .sb-ag-green { color:#24724f; }
.sb-account-groups .sb-ag-tool[aria-pressed="true"],.sb-account-groups .sb-ag-tool[aria-expanded="true"] { background:#fff2e6; border-radius:8px; }
.sb-ag-search { display:flex; align-items:center; gap:8px; margin:8px 16px; }
.sb-ag-search input { width:100%; min-width:0; min-height:44px; padding:10px 12px; border:1px solid #8b817a; border-radius:8px; background:#fff; color:#252525; font:inherit; caret-color:#b94b08; }
.sb-ag-search input::placeholder { color:#68635f; }
.sb-ag-search input:focus-visible,.sb-ag-targets input:focus-visible { outline:2px solid #b94b08; outline-offset:2px; }
.sb-ag-search button { min-height:44px; flex-shrink:0; }
.sb-ag-selection { margin:6px 20px; font-size:13px; color:#68635f; font-variant-numeric:tabular-nums; }
.sb-account-groups .sb-ap-group-heading strong { flex:initial; font-weight:650; }
.sb-account-groups .sb-ap-group-entry { padding:16px 20px; }
.sb-account-groups .sb-ap-account { padding:12px 16px 12px 30px; gap:10px; }
.sb-account-groups .sb-ag-badges { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.sb-ag-binding { display:inline-block; padding:1px 6px; color:#24724f; background:#edf7f0; border-radius:4px; font-size:11px; }
.sb-account-groups .sb-ag-uid { color:#68635f; font-size:11px; }
.sb-account-groups .sb-ag-more { color:#b94b08; }
.sb-ag-mark { display:flex; align-items:center; justify-content:center; width:24px; height:24px; flex:0 0 24px; border:1.5px solid #8b817a; border-radius:50%; color:#fff; }
.sb-account-groups [aria-checked="true"] .sb-ag-mark { background:#b94b08; border-color:#b94b08; }
.sb-account-groups .sb-ag-mark svg { width:19px; height:19px; display:block; color:#fff; stroke:#fff; }
.sb-account-groups .sb-ag-mark svg path { stroke:#fff; }
.sb-account-groups .sb-ag-footer { display:grid; grid-template-columns:1.35fr .8fr .8fr 1.35fr .8fr; flex-shrink:0; padding:0 12px 4px; border-bottom:1px solid #eeeae7; background:#fff; }
.sb-account-groups .sb-ag-footer button { min-height:44px; padding:6px 2px; font-size:15px; white-space:nowrap; }
.sb-account-groups .sb-ag-delete { color:#b33726; }
.sb-account-groups .sb-ag-move { color:#24724f; }
.sb-ag-overlay { position:absolute; inset:0; z-index:100; display:flex; align-items:center; justify-content:center; padding:20px; background:rgba(37,37,37,.4); }
.sb-ag-dialog { width:min(100%,420px); max-height:85%; overflow-y:auto; overscroll-behavior:contain; padding:16px 20px 20px; background:#fff; border-radius:14px; box-shadow:0 16px 48px rgba(37,37,37,.2); scrollbar-color:#c9bdb4 #fff; }
.sb-ag-dialog header { display:flex; align-items:center; gap:12px; justify-content:space-between; }
.sb-ag-dialog h2 { margin:0; font-size:17px; font-weight:600; overflow-wrap:anywhere; }
.sb-ag-dialog p { line-height:1.6; font-size:14px; }
.sb-ag-close { flex-shrink:0; min-height:44px; padding:8px; font-size:13px!important; color:#68635f!important; }
.sb-ag-actions { display:flex; flex-direction:column; }
.sb-ag-actions button { min-height:52px; text-align:left; border-bottom:1px solid #eeeae7; }
.sb-ag-targets { max-height:40vh; overflow-y:auto; margin-bottom:16px; }
.sb-ag-targets label { display:flex; align-items:center; gap:10px; min-height:48px; overflow-wrap:anywhere; }
.sb-ag-targets input { width:22px; height:22px; flex-shrink:0; accent-color:#24724f; }
.sb-ag-dialog .sb-ap-confirm { width:100%; }
.sb-ag-confirm-actions { display:flex; justify-content:space-between; gap:24px; }
.sb-ag-confirm-actions button { min-height:48px; padding:10px 12px; }
.sb-ag-muted { color:#68635f; }
@media (min-width:700px) { .sb-ag-toolbar { padding-inline:20px; } .sb-account-groups .sb-ag-tool { flex-direction:row; gap:8px; font-size:14px; min-height:56px; } .sb-ag-footer button { font-size:14px; } }

/* Confirmed compact account row: nickname and binding share one line. */
.sb-account-groups .sb-ap-account-copy > .sb-ag-name-line { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:0; min-width:0; }
.sb-account-groups .sb-ag-name-line strong { flex:0 1 auto; min-width:0; font-size:15px; }
.sb-account-groups .sb-ag-binding { flex-shrink:0; white-space:nowrap; font-size:12px; }
.sb-account-groups .sb-ap-account { min-height:68px; padding-block:10px; }
.sb-account-groups .sb-ag-search { gap:4px; margin-inline:12px; }
.sb-account-groups .sb-ag-search input { flex:1; width:0; padding-inline:8px; font-size:16px; }
.sb-account-groups .sb-ag-search button { min-width:44px; padding:8px 4px; font-size:15px; }
.sb-account-groups .sb-ag-submit { color:var(--ap-accent); font-weight:600; }
.sb-account-groups .sb-ag-cancel { font-weight:600; }

/* Account groups: distinct binding channels and explicit batch selection. */
.sb-account-groups .sb-ag-binding-web { color:#a83b00; background:#fff0df; }
.sb-account-groups .sb-ag-mark { border-radius:5px; border-width:2px; }
.sb-ag-group-bar { display:flex; align-items:center; background:#f4f6f8; border-bottom:1px solid #e9edf1; }
.sb-account-groups .sb-ag-group-bar .sb-ap-group-entry { flex:1; min-width:0; background:transparent; }
.sb-account-groups .sb-ag-group-bar strong { overflow-wrap:anywhere; white-space:normal; }
.sb-account-groups .sb-ag-group-all { flex-shrink:0; min-height:44px; padding:8px 12px; color:#a83b00; font-size:14px; }
.sb-groups-page .sb-groups-header { grid-template-columns:44px minmax(0,1fr) auto; padding-inline:8px; }
.sb-groups-header h1 { text-align:left; font-size:18px; }
.sb-groups-header nav { display:flex; align-items:center; gap:4px; }
.sb-groups-header nav button { display:flex; align-items:center; gap:4px; min-height:44px; padding:6px; font-size:14px; color:#a83b00; }
.sb-groups-header nav svg { width:19px; height:19px; }
.sb-groups-row { display:flex; align-items:center; margin:10px 12px; background:#fff; border:1px solid #e9edf1; border-radius:12px; }
.sb-groups-page .sb-groups-open { flex:1; min-width:0; min-height:72px; padding:12px 14px; text-align:left; }
.sb-groups-open strong,.sb-groups-open span { display:block; overflow-wrap:anywhere; }
.sb-groups-open strong { color:#111318; font-size:16px; line-height:1.5; font-weight:600; }
.sb-groups-open span { margin-top:4px; color:#415577; font-size:13px; }
.sb-groups-page .sb-groups-more { flex:0 0 44px; min-height:48px; padding:10px; color:#a83b00; }
.sb-groups-more svg { width:22px; height:22px; }
.sb-groups-row ion-reorder { padding:12px; color:#415577; }
.sb-groups-row ion-reorder svg { width:24px; height:24px; }
.sb-groups-sort-note { display:flex; align-items:center; gap:8px; padding:8px 14px; color:#415577; font-size:13px; }
.sb-groups-sort-note span { flex:1; }
.sb-groups-sort-note button { flex-shrink:0; min-height:44px; color:#a83b00; }
.sb-groups-overlay { position:fixed; bottom:auto; box-sizing:border-box; }
.sb-groups-overlay .sb-ag-dialog { box-sizing:border-box; max-height:calc(100% - 16px); }
.sb-groups-name { display:block; margin-top:12px; color:#415577; font-size:14px; }
.sb-groups-name textarea { display:block; box-sizing:border-box; width:100%; min-height:76px; margin-top:8px; padding:10px 12px; resize:none; border:1px solid #bac4cf; border-radius:8px; background:#fafbfc; color:#111318; font:16px/1.5 system-ui,sans-serif; caret-color:#ff650f; }
.sb-groups-name textarea:focus-visible { outline:2px solid #16866a; outline-offset:2px; }
.sb-groups-name textarea::selection { color:#111318; background:#ffd3a8; }
.sb-groups-limit { margin:4px 0 12px; text-align:right; color:#415577; font-variant-numeric:tabular-nums; }
.sb-ag-confirm-actions button { flex:1; border-radius:10px; background:#fff3e6; color:#a83b00; }
.sb-ag-confirm-actions .sb-ap-confirm { width:auto; background:#ff650f; color:#fff; }
.sb-ag-confirm-actions .sb-ag-delete { color:#fff; background:#c83935; }
/* Match the shared application confirmation dialog geometry and type. */
.sb-ag-dialog { box-sizing:border-box; width:min(100%,360px); padding:20px; border-radius:16px; box-shadow:0 12px 36px #24324a26; }
.sb-ag-dialog h2 { font-size:19px; line-height:1.4; font-weight:700; }
.sb-ag-dialog p { font-size:15px; color:#415577; }
.sb-ag-confirm-actions { gap:12px; margin-top:20px; }
.sb-ag-confirm-actions button { min-height:46px; font-size:15px; font-weight:600; }
.sb-ag-confirm-actions .sb-ap-confirm { background:#ff650f!important; }
.sb-groups-overlay { height:100%; }
.sb-account-groups .sb-ag-mark { border-radius:4px; }
@media (min-width:351px) { .sb-ag-dialog { padding:24px; } }

/* Group headings and account rows own their dividers, including collapsed groups. */
.sb-account-groups .sb-ap-group{border-bottom:0}
