/* 演示账户: the rail entry on every page and the 登录 / 账户 page. Rail items follow the existing tab buttons. */
.bcp-account-entry,.bac-nav-links{display:flex;flex-direction:column;gap:2px;min-width:0}
.bsa-cloud .bcp-account-link,.bsa-cloud .bac-rail-link{position:relative;display:flex;align-items:center;gap:12px;min-width:0;min-height:42px;padding:6px 12px 6px 14px;border-radius:10px;color:#c0d2e7;font-size:14px;font-weight:500;line-height:1.3;text-decoration:none}
.bcp-account-link svg,.bac-rail-link svg{flex:none;color:var(--bar-label)}
.bsa-cloud .bcp-account-link:hover,.bsa-cloud .bac-rail-link:hover{background:#1b3252;color:#fff}
.bsa-cloud .bcp-account-link[aria-current=page]{background:#132b4c;color:#fff;font-weight:600}
.bcp-account-link[aria-current=page]::before{content:'';position:absolute;left:0;top:10px;bottom:10px;width:3px;border-radius:2px;background:var(--accent)}
.bcp-account-link[aria-current=page] svg,.bcp-account-group[data-account-role=vendor] .bcp-account-link svg,.bcp-account-group[data-account-role=builder] .bcp-account-link svg{color:#ffb48a}
.bcp-account-who{display:flex;flex-direction:column;min-width:0;flex:1}
.bcp-account-who strong{color:#fff;font-size:13.5px;font-weight:600;overflow-wrap:anywhere}
.bcp-account-who small{color:var(--bar-label);font-size:11.5px;font-weight:500;overflow-wrap:anywhere}
.bcp-role-badge{flex:none;display:inline-flex;align-items:center;padding:2px 8px;border-radius:999px;font-size:11px;font-weight:700;line-height:1.5;white-space:nowrap}
.bcp-role-badge[data-role=vendor]{background:#ffb48a2e;color:#ffc8a8}
.bcp-role-badge[data-role=builder]{background:#8fd3b82e;color:#a8e3cb}
.bcp-account-actions{display:flex;flex-wrap:wrap;gap:6px;padding:2px 0 0 14px}
.bsa-cloud .bcp-account-actions a,.bsa-cloud .bcp-account-actions button{display:inline-flex;align-items:center;min-height:28px;padding:3px 10px;border:1px solid #2f4461;border-radius:999px;background:transparent;color:#ffb48a;font-size:12px;font-weight:600;text-decoration:none}
.bsa-cloud .bcp-account-actions a:hover,.bsa-cloud .bcp-account-actions button:hover{background:#152d4d;color:#fff}
.bsa-cloud .bcp-account-link:focus-visible,.bsa-cloud .bac-rail-link:focus-visible,.bsa-cloud .bcp-account-actions :focus-visible{outline:2px solid #ffb48a;outline-offset:2px}
@media (min-width:1080px) and (pointer:fine){.bsa-cloud .bcp-account-link,.bsa-cloud .bac-rail-link{min-height:38px}}
/* In the 204px desktop rail a signed-in account's badge takes its own line, so the name and company keep the width. */
@media (min-width:1080px){.bsa-cloud .bcp-account-group:not([data-account-role='']) .bcp-account-link{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:12px;row-gap:4px;padding-top:8px;padding-bottom:8px}.bcp-account-group:not([data-account-role='']) .bcp-account-link svg{align-self:start;margin-top:2px}.bcp-account-link .bcp-role-badge{grid-column:2;justify-self:start}}
@media(max-width:1079px){
  .bcp-account-entry,.bac-nav-links{flex-direction:row;flex-wrap:wrap;align-items:center;gap:6px}
  .bsa-cloud .bcp-account-link,.bsa-cloud .bac-rail-link{flex:none;max-width:100%;min-height:44px;padding-right:18px}
  .bcp-account-who{flex:initial}
  .bcp-account-actions{padding:0}
}
@media(max-width:639px){.bsa-cloud .bcp-account-link,.bsa-cloud .bac-rail-link{font-size:12px;gap:7px;padding:4px 12px}.bcp-account-link svg,.bac-rail-link svg{width:15px;height:15px}}
@media(pointer:coarse){.bsa-cloud .bcp-account-link,.bsa-cloud .bac-rail-link,.bsa-cloud .bcp-account-actions a,.bsa-cloud .bcp-account-actions button{min-height:44px;min-width:44px}.bsa-cloud .bcp-account-actions a,.bsa-cloud .bcp-account-actions button{padding:6px 14px}}

/* Avatars: the saved picture, else initials on the brand orange (navy text, 5.3:1). */
.bac-avatar{flex:none;display:inline-grid;place-items:center;width:var(--bac-avatar,28px);height:var(--bac-avatar,28px);border-radius:50%;overflow:hidden;background:var(--accent);color:var(--on-accent);font-size:calc(var(--bac-avatar,28px) * .42);font-weight:700;line-height:1;letter-spacing:0;user-select:none}
.bac-avatar img{display:block;width:100%;height:100%;object-fit:cover}
.bac-avatar-guest{background:var(--hover);color:var(--muted)}
.bcp-account-link .bac-avatar{font-size:12px}
@media (min-width:1080px){.bcp-account-group:not([data-account-role='']) .bcp-account-link .bac-avatar{align-self:start}}

/* The page: a clear demo warning, the role switch, demo account cards, then the role's home. */
.bsa-cloud.bac .bac-page{gap:20px;max-width:1600px;margin-inline:auto;padding-inline:28px}
.bac-warning{display:flex;gap:12px;align-items:flex-start;padding:12px 16px;border:1px solid var(--c-c9d9ec-bd);border-left-width:4px;border-radius:12px;background:var(--c-f2f6fb-bg);color:var(--ink-2)}
.bac-warning svg{flex:none;color:var(--c-24527f-fg);margin-top:2px}
.bac-warning strong{display:block;color:var(--c-24527f-fg);font-size:15px;font-weight:700;line-height:1.4}
.bac-warning p{margin-top:3px;font-size:13px;line-height:1.6}
.bac-status{font-size:13px;color:var(--c-315c4d-fg);font-weight:600}
/* An empty live region stays in the accessibility tree (collapsed, not display:none) so its first message is announced. */
.bac-status:empty{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.bac-body{display:flex;flex-direction:column;gap:22px}
.bsa-cloud .bac-roles{align-self:flex-start}
.bsa-cloud .bac-roles button{min-height:40px;padding:6px 18px;font-size:14px}
.bac-role-summary,.bac-muted{font-size:13px;color:var(--muted);line-height:1.6}
.bac-form{display:flex;flex-direction:column;gap:16px}
.bac-accounts{margin:0;padding:0;border:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:12px;min-width:0}
.bac-accounts legend{padding:0;margin-bottom:10px;font-size:13px;font-weight:600;color:var(--ink-2)}
.bac-account{position:relative;display:flex;gap:12px;align-items:flex-start;min-height:44px;padding:14px 16px;border:1px solid var(--line);border-radius:14px;background:var(--surface);cursor:pointer}
.bac-account:hover{border-color:var(--c-c9c2b6-bd)}
.bac-account:has(input:checked){border-color:var(--accent);box-shadow:0 0 0 2px #f2611f33}
/* The radio is the whole card (transparent, laid over it) and a drawn ring shows the state, so the hit area is the card, not 20px. */
.bac-account input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:inherit}
.bac-account::before{content:'';flex:none;width:20px;height:20px;margin:2px 0 0;border:2px solid var(--c-7a8594-bd);border-radius:50%;box-sizing:border-box}
.bac-account:has(input:checked)::before{border:6px solid var(--accent)}
.bac-account-text{display:flex;flex-direction:column;gap:2px;min-width:0}
.bac-account-text strong{font-size:15px;font-weight:600}
.bac-account-company{font-size:13px;color:var(--ink-2)}
.bac-account-title{font-size:12.5px;color:var(--muted);line-height:1.55}
.bac-current{position:absolute;top:10px;right:12px;padding:1px 8px;border-radius:999px;background:var(--hover);font-size:11px;font-weight:600;color:var(--ink-2)}
.bac-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.bsa-cloud .bac-actions .bcp-primary{min-height:44px;padding:10px 22px}
.bsa-cloud .bac-secondary{min-height:40px;padding:8px 16px;border:1px solid var(--line);border-radius:var(--control-radius);background:var(--surface);font-weight:600}
.bsa-cloud .bac-secondary:hover{border-color:var(--c-c9c2b6-bd)}
.bac-profile{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px 20px;padding:18px 20px;border:1px solid var(--line);border-radius:16px;background:var(--surface)}
.bac-profile-text{display:flex;flex-direction:column;gap:4px;min-width:0}
.bac-profile h2{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;font-size:20px}
.bac .bac-profile .bcp-role-badge[data-role=vendor]{background:var(--c-fdeee4-bg);color:var(--accent-edge)}
.bac .bac-profile .bcp-role-badge[data-role=builder]{background:var(--c-e3f1ea-bg);color:var(--c-23614a-fg)}
.bac-section{display:flex;flex-direction:column;gap:10px}
.bac-section h2{font-size:17px}
.bac-entries,.bac-stages{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:12px}
.bsa-cloud .bac-entry,.bsa-cloud .bac-stage{display:flex;gap:12px;align-items:flex-start;min-height:44px;padding:16px;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:inherit;text-decoration:none}
.bac-entry svg,.bac-stage svg{flex:none;color:var(--accent-ink)}
.bsa-cloud .bac-entry:hover,.bsa-cloud .bac-stage:hover{border-color:var(--accent)}
.bac-entry span,.bac-stage span{display:flex;flex-direction:column;gap:3px;min-width:0}
.bac-entry strong,.bac-stage strong{font-size:15px;font-weight:600}
.bac-entry small,.bac-stage small{font-size:12.5px;color:var(--muted);line-height:1.5}
/* 当前项目 marks on the factory stages (bsa-current-project.mjs stageRelation): past is muted, the current stage is
   accent-ink on accent-soft with aria-current=step, the next one has an ink outline; later stages carry no mark. */
.bac-stage .bac-stage-relation{display:inline-flex;align-self:flex-start;align-items:center;padding:1px 8px;border:1px solid var(--line);border-radius:999px;font-size:12px;font-weight:600;line-height:1.5;color:var(--muted)}
.bac-stage .bac-stage-relation[data-relation=current]{border-color:var(--accent-ink);background:var(--accent-soft);color:var(--accent-ink)}
.bac-stage .bac-stage-relation[data-relation=next]{border-color:var(--ink-2);color:var(--ink)}
.bsa-cloud .bac-stage[aria-current=step]{border-color:var(--accent-ink)}
.bac-all{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.bsa-cloud .bac-all a{display:inline-flex;align-items:center;min-height:36px;padding:6px 14px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--ink);font-size:13px;text-decoration:none}
.bsa-cloud .bac-all a:hover{border-color:var(--accent)}
.bsa-cloud .bac-entry:focus-visible,.bsa-cloud .bac-stage:focus-visible,.bsa-cloud .bac-all a:focus-visible,.bac-account:has(input:focus-visible){outline:2px solid var(--accent);outline-offset:2px}
@media(max-width:639px){.bac-accounts,.bac-entries,.bac-stages{grid-template-columns:minmax(0,1fr)}.bac-profile{padding:16px}.bac-actions>button{flex:1}}
@media(pointer:coarse){.bsa-cloud .bac-secondary,.bsa-cloud .bac-all a,.bsa-cloud .bac-roles button{min-height:44px}}

/* 账户中心: section navigation beside the section, like a settings page. */
.bac-layout{display:grid;grid-template-columns:216px minmax(0,1fr);gap:28px;align-items:start}
.bac-panel{display:flex;flex-direction:column;gap:20px;min-width:0;max-width:800px}
.bac[data-hub=overview] .bac-panel{max-width:none}
@media (min-width:1600px){.bac-layout{grid-template-columns:248px minmax(0,1fr);gap:40px}}
.bac-sections{position:sticky;top:calc((var(--bcp-header-h) + 24px) / var(--bcp-zoom));display:flex;flex-direction:column;gap:14px;min-width:0}
.bac-identity{display:flex;align-items:center;gap:12px;padding:4px 4px 2px;min-width:0}
.bac-identity-text{display:flex;flex-direction:column;min-width:0}
.bac-identity-text strong{font-size:15px;font-weight:600;overflow-wrap:anywhere}
.bac-identity-text>span{font-size:12px;color:var(--muted);line-height:1.45;overflow-wrap:anywhere}
.bac-sections-label{padding:0 12px;font-size:12px;font-weight:600;color:var(--muted)}
.bac-section-links{list-style:none;margin:-4px 0 0;padding:0;display:flex;flex-direction:column;gap:2px}
.bsa-cloud .bac-section-links a{position:relative;display:flex;align-items:center;gap:12px;min-height:52px;padding:6px 12px;border-radius:10px;color:var(--ink-2);text-decoration:none}
.bac-section-text{display:flex;flex-direction:column;min-width:0;flex:1}
.bac-section-text b{font-size:14px;font-weight:500;line-height:1.4}
.bac-section-text small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:500;line-height:1.45;color:var(--muted)}
.bsa-cloud .bac-section-links a[aria-current=page] b{font-weight:600}
.bac-chevron{display:none;flex:none;color:var(--muted)}
.bac-section-links a svg{flex:none;color:var(--muted)}
.bsa-cloud .bac-section-links a:hover{background:var(--hover);color:var(--ink)}
.bsa-cloud .bac-section-links a[aria-current=page]{background:var(--surface);box-shadow:var(--lift),inset 3px 0 0 var(--accent);color:var(--ink);font-weight:600}
.bac-section-links a[aria-current=page] svg{color:var(--accent-ink)}
.bac-section-links a[data-dirty=true]::after{content:'';flex:none;width:8px;height:8px;margin-left:auto;border-radius:50%;background:var(--accent-ink)}
.bsa-cloud .bac-heading{flex-direction:column;align-items:flex-start;gap:8px;max-width:none}
.bac-crumb-parent{display:contents}
.bac-title-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px}
.bac-title-row h1{margin:0}
.bac-heading p{max-width:640px;font-size:14px;line-height:1.7;color:var(--ink-2)}
.bac-local-chip{display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--ink-2);font-size:12px;font-weight:600;white-space:nowrap}
.bac-storage-alert{display:flex;gap:12px;padding:14px 16px;border:1px solid var(--c-f3c4a8-bd);border-radius:12px;background:var(--c-fff5e9-bg);color:var(--c-5a3410-fg)}
.bac-storage-alert svg{flex:none;color:var(--c-8e4c1b-fg);margin-top:2px}
.bac-storage-alert strong{display:block;color:var(--c-8e4c1b-fg);font-size:14px}
.bac-storage-alert p{margin-top:3px;font-size:13px;line-height:1.6}
.bac-sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.bac-card{display:flex;flex-direction:column;gap:16px;padding:20px 24px 24px;border:1px solid var(--line);border-radius:var(--panel-radius);background:var(--surface);min-width:0}
.bac-card>h2,.bac-empty h2{font-size:16px;font-weight:600;line-height:1.4}
.bac-rows{gap:0;padding-top:16px;padding-bottom:8px}
.bac-rows>h2{margin-bottom:4px}
.bac-row,.bac-rows>.bac-choice{display:flex;flex-wrap:wrap;align-items:center;gap:12px 24px;padding:16px 0;border-top:1px solid var(--line)}
.bac-rows>h2+.bac-row,.bac-rows>h2+.bac-choice{border-top:0}
.bac-choice{margin:0;padding:0;border:0;min-width:0}
.bac-choice-text{flex:1 1 260px;display:flex;flex-direction:column;gap:3px;min-width:0}
.bac-row:has(.bac-switch){flex-wrap:nowrap}.bac-row:has(.bac-switch) .bac-choice-text{flex:1 1 auto}
.bac-choice .bac-legend,.bac-row-title{display:block;padding:0;font-size:14px;font-weight:600;color:var(--ink)}
.bac-hint{font-size:13px;line-height:1.55;color:var(--muted)}
.bac-note{font-size:13px;color:var(--ink-2)}.bac-note:empty{display:none}
.bac-options{display:flex;flex-wrap:wrap;gap:4px;padding:4px;border-radius:12px;background:var(--hover)}
.bac-option{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;min-width:76px;padding:0 14px;border-radius:9px;color:var(--ink-2);font-size:14px;font-weight:500;cursor:pointer;white-space:nowrap}
.bac-option input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:inherit}
/* The chosen option carries a navy ring (13.9:1 on the track), not only a lighter fill. */
.bac-option:has(input:checked){background:var(--surface);color:var(--ink);font-weight:600;box-shadow:inset 0 0 0 2px var(--ink)}
.bac-option:hover:not(:has(input:checked)):not(:has(input:disabled)){color:var(--ink);background:var(--c-ffffff80-bg)}
.bac-option:has(input:focus-visible){outline:2px solid var(--accent-ink);outline-offset:2px}
.bac-option:has(input:disabled){cursor:not-allowed;color:var(--muted)}
.bac-option-icon{display:inline-flex}
/* 外观主题: one card per skin. Each preview carries data-bsa-skin itself, so it is drawn with that skin's own tokens. */
.bac-choice.is-skins .bac-options{flex:1 1 100%;display:grid;grid-template-columns:repeat(auto-fill,minmax(70px,1fr));gap:4px;padding:4px}
.bac-choice.is-skins .bac-option{flex-direction:column;align-items:stretch;justify-content:flex-start;gap:4px;min-height:0;min-width:0;padding:5px;font-size:13px;white-space:normal;text-align:left}
.bac-rows>.bac-choice.is-skins{padding:8px 0}
.bac-choice.is-skins .bac-option-label{font-weight:600;font-size:12px;white-space:nowrap}
.bac-option-note{display:none}
.bac-skin-preview{display:grid;grid-template-rows:5px 1fr;height:28px;border:1px solid var(--edge);border-radius:6px;background:var(--page);color:var(--ink);overflow:hidden}
.bac-skin-bar{background:var(--bar)}
.bac-skin-card{display:grid;align-content:center;gap:2px;margin:3px;padding:2px 4px;border:1px solid var(--line);background:var(--raised)}
.bac-skin-ink{width:70%;height:3px;background:var(--ink)}.bac-skin-muted{width:45%;height:3px;background:var(--muted)}.bac-skin-action{width:22px;height:4px;background:var(--accent)}
.bac-skin-preview.is-system{grid-template-rows:none;grid-template-columns:1fr 1fr}
.bac-skin-half{display:block;border-top:8px solid var(--bar);background:var(--page)}
.bac-skin-half::after{content:'';display:block;height:9px;margin:3px;border:1px solid var(--line);background:var(--raised)}
.bac-text-sample{font-weight:600;line-height:1}.bac-text-sample.is-default{font-size:13px}.bac-text-sample.is-large{font-size:15px}.bac-text-sample.is-larger{font-size:17px}
.bac-badge{padding:1px 8px;border-radius:999px;background:var(--hover);color:var(--ink-2);font-size:11px;font-weight:700;white-space:nowrap}
.bac-switch{position:relative;flex:none;width:52px;height:30px;min-height:30px;padding:0;border:0!important;border-radius:999px!important;background:#7a8594!important;transition:background-color .15s ease}
.bac-switch[aria-checked=true]{background:var(--ink)!important}
.bac-switch-knob{position:absolute;top:3px;left:3px;width:24px;height:24px;border-radius:50%;background:var(--raised);box-shadow:0 1px 3px rgba(1,27,62,.3);transition:transform .15s ease}
.bac-switch[aria-checked=true] .bac-switch-knob{transform:translateX(22px)}
.bsa-cloud .bac-switch:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.bac-row select,.bac-field select,.bac-field input{box-sizing:border-box;width:100%;height:44px;padding:0 12px;border:1px solid var(--edge);border-radius:8px;background:var(--raised);color:var(--ink);font-size:16px}
.bac-row select{width:auto;min-width:220px;max-width:100%}
.bac-field input:focus,.bac-field select:focus,.bac-row select:focus{outline:none;border-color:var(--c-315c4d-bd);box-shadow:0 0 0 3px rgba(49,92,77,.12)}
.bac-field input[aria-invalid=true]{border:2px solid var(--danger);padding:0 11px}
.bac-field input[type=tel]{font-family:'IBM Plex Mono',ui-monospace,monospace}
.bac-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 20px}
.bac-field{display:flex;flex-direction:column;gap:6px;min-width:0}
.bac-field>label,.bac-field-label{font-size:13px;font-weight:600;color:var(--ink-2)}
.bac-required{color:var(--danger)}
.bac-field-error{display:flex;gap:6px;align-items:flex-start;font-size:13px;font-weight:600;line-height:1.5;color:var(--danger)}
.bac-field-error svg{flex:none;margin-top:3px}
.bac-role-box{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;min-height:44px;padding:4px 12px;border:1px dashed var(--edge);border-radius:8px;background:var(--raised2);box-sizing:border-box}
.bac .bac-role-box .bcp-role-badge[data-role=vendor]{background:var(--c-fdeee4-bg);color:var(--accent-edge)}
.bac .bac-role-box .bcp-role-badge[data-role=builder]{background:var(--c-e3f1ea-bg);color:var(--c-23614a-fg)}
.bac-role-note{font-size:13px;color:var(--muted)}
.bac-role-box a{margin-left:auto;display:inline-flex;align-items:center;min-height:36px;font-size:13px;font-weight:600}
.bac-profile-form{display:flex;flex-direction:column;gap:20px}
.bac-avatar-card{flex-direction:row;flex-wrap:wrap;align-items:center;gap:18px 24px}
.bac-avatar-text{flex:1 1 260px;display:flex;flex-direction:column;gap:4px;min-width:0}
.bac-avatar-text h2{font-size:16px;font-weight:600}
.bac-avatar-text p{font-size:13px;line-height:1.6;color:var(--muted)}
.bac-avatar-actions{display:flex;flex-wrap:wrap;gap:8px}
.bac-avatar-actions .bac-secondary{display:inline-flex;align-items:center;gap:8px}
.bsa-cloud .bac-secondary:disabled{background:var(--raised2);color:var(--c-7a8594-fg);cursor:default}
.bac-restore{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;font-size:13px;color:var(--muted)}
.bac-profile-scope{display:flex;flex-wrap:wrap;align-items:center;gap:2px 10px;font-size:13px;line-height:1.55;color:var(--muted)}
.bac-profile-scope a{display:inline-flex;align-items:center;min-height:36px;font-size:13px;font-weight:600}
@media (pointer:coarse){.bac-profile-scope a{min-height:44px}}
.bsa-cloud .bac-link-button{min-height:36px;padding:0 4px;border:0;background:none;color:var(--accent-ink);font-size:13px;font-weight:600;text-decoration:underline;text-underline-offset:3px}
.bsa-cloud .bac-link-button:hover{background:none;color:var(--ink)}
.bac-savebar{position:sticky;bottom:16px;z-index:5;display:flex;flex-wrap:wrap;align-items:center;gap:10px 12px;padding:12px 14px 12px 18px;border:1px solid var(--c-f3c4a8-bd);border-radius:14px;background:var(--c-fff8f3-bg);box-shadow:var(--lift-hover)}
.bac-savebar-text{flex:1 1 200px;font-size:14px;font-weight:600;color:var(--accent-ink)}
.bac-savebar.has-errors .bac-savebar-text{color:var(--danger)}
.bsa-cloud .bac-savebar .bac-secondary,.bsa-cloud .bac-savebar .bcp-primary{min-height:44px;padding:0 18px}
.bac-empty{display:flex;flex-direction:column;align-items:flex-start;gap:12px;padding:28px 24px;border:1px solid var(--line);border-radius:var(--panel-radius);background:var(--surface)}
.bac-empty p{font-size:13.5px;line-height:1.65;color:var(--ink-2);max-width:560px}
.bac-empty-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:var(--hover);color:var(--muted)}
.bsa-cloud .bac-empty .bcp-primary{min-height:44px;padding:0 20px}
.bac-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px}
.bac-saved{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:600;color:var(--c-127a4e-fg)}
.bac-saved.is-unsaved{color:var(--c-8e4c1b-fg)}
.bac-saved[hidden]+*{margin-left:auto}
.bac-profile-text{flex:1 1 240px;min-width:0}
/* People's own names and companies can be long and unbroken (an email as a name); they wrap instead of widening the page. */
.bac-profile h2,.bac-profile-text>p{overflow-wrap:anywhere}
.bac-profile h2>span:first-child{min-width:0}
.bsa-cloud .bac-section-links a:focus-visible,.bsa-cloud .bac-role-box a:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
/* Below 1080 px the header stays sticky, so the section column sits under it; on short screens it scrolls with the page. */
@media (max-width:1079px){.bac-sections{top:calc((var(--bcp-header-h) + 16px) / var(--bcp-zoom))}}
@media (max-width:1079px) and (max-height:640px){.bac-sections{position:static}}
@media (max-width:767px){.bac-fields{grid-template-columns:minmax(0,1fr)}}
/* Phones and small tablets: the index and the section take a screen each; the back button in the section leads to the index. */
@media (max-width:767px){
  .bac-layout{display:flex;flex-direction:column;align-items:stretch;gap:16px}
  .bac-layout[data-pane=list] .bac-panel{display:none}
  .bac-layout[data-pane=section] .bac-sections{display:none}
  .bac-sections{position:static;gap:10px;width:100%}
  .bac-section-links{margin:0;gap:0;border:1px solid var(--line);border-radius:14px;background:var(--surface);overflow:hidden}
  .bsa-cloud .bac-section-links a{min-height:64px;padding:8px 16px;border-radius:0;border-bottom:1px solid var(--line);font-size:14px}
  .bac-section-links li:last-child a{border-bottom:0}
  .bsa-cloud .bac-section-links a[aria-current=page]{box-shadow:inset 4px 0 0 var(--accent)}
  .bac-section-links a[data-dirty=true]::after{margin-left:0}
  .bac-chevron{display:inline-flex}
  .bsa-cloud .bac-layout .bac-back{display:inline-flex}
}
@media (max-width:639px){
  .bac-card{padding:16px}
  .bac-rows{padding-top:12px;padding-bottom:4px}
  .bac-options{width:100%}
  .bac-option{flex:1;min-width:0;padding:0 8px}
  .bac-row select{width:100%}
  .bac-savebar{bottom:0;margin:0 -16px;border-radius:14px 14px 0 0;border-width:1px 0 0}
  .bac-savebar-text{flex-basis:100%}
  .bsa-cloud .bac-savebar .bac-secondary,.bsa-cloud .bac-savebar .bcp-primary{flex:1;min-height:48px}
  .bac-avatar-actions{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .bac-avatar-actions .bac-secondary{justify-content:center;min-height:44px}
  .bsa-cloud.bac .bac-page{padding-inline:16px}
}
@media (pointer:coarse){.bac-option,.bsa-cloud .bac-section-links a,.bac-switch,.bsa-cloud .bac-link-button,.bac-role-box a{min-height:44px}.bac-switch{height:44px;background:transparent!important}.bac-switch::before{content:'';position:absolute;left:0;top:7px;width:52px;height:30px;border-radius:999px;background:#7a8594}.bac-switch[aria-checked=true]::before{background:var(--ink)}.bac-switch-knob{top:10px}.bsa-cloud .bac-secondary{min-height:44px}}

.bsa-cloud .bac-profile{gap:14px 18px;padding:18px 20px;border-radius:16px}
.bac-profile h2{font-size:20px;gap:6px 10px}
.bac-profile-meta{display:flex;flex-wrap:wrap;gap:2px 0;font-size:13px;color:var(--ink-2);overflow-wrap:anywhere}
.bac-profile-meta>span+span::before{content:'·';margin:0 6px;color:var(--muted)}
.bac-profile-meta .bac-account-duty{color:var(--muted)}
.bsa-cloud .bac-profile .bac-actions .bac-secondary{min-height:36px;padding:6px 14px}
@media (pointer:coarse){.bsa-cloud .bac-profile .bac-actions .bac-secondary{min-height:44px}}
/* Identity card: who, the two account actions, and how the name will read in the records. */
.bac-demo-badge{display:inline-flex;padding:1px 9px;border:1px dashed var(--c-f3c4a8-bd);border-radius:999px;background:var(--c-fff8f3-bg);color:var(--accent-ink);font-size:12px;font-weight:600;line-height:1.6}
.bac-signature{flex:1 1 100%;display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin-top:2px;padding-top:12px;border-top:1px solid var(--line);font-size:13.5px}
.bac-signature-label{color:var(--muted)}
.bac-signature-line{display:inline-flex;font-weight:600;color:var(--ink)}
.bac-sim{flex:1 1 100%;display:flex;gap:8px;margin:0;font-size:13px;line-height:1.6;color:var(--ink-2)}
.bac-sim svg{flex:none;margin-top:3px;color:var(--c-24527f-fg)}
/* The picker's two lists, read before choosing. */
.bac-changes{display:flex;flex-direction:column;gap:6px;padding:16px 18px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.bac-changes h2{font-size:16px}
.bac-changes-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:6px}
.bac-changes-col{padding:12px 14px;border-radius:10px;background:var(--raised2)}
.bac-changes-col h3{display:flex;align-items:center;gap:6px;font-size:13px;font-weight:700;color:var(--ink)}
.bac-changes-col.is-yes h3{color:var(--c-23614a-fg)}.bac-changes-col.is-no h3{color:var(--ink-2)}
.bac-changes-col ul{margin:6px 0 0;padding-left:18px;font-size:13px;line-height:1.65;color:var(--ink-2)}
@media (max-width:559px){.bac-changes-grid{grid-template-columns:minmax(0,1fr)}}
/* 概览: the settings column, the preview beside it on wide screens, the role's pages under both. */
.bac-overview{display:grid;grid-template-columns:minmax(0,1fr);gap:20px;align-items:start}
.bac-overview-main,.bac-overview-rest{display:flex;flex-direction:column;gap:20px;min-width:0}
.bac-overview-rest{gap:22px}
@media (min-width:1360px){
  .bac-overview{grid-template-columns:minmax(0,1fr) 320px;gap:20px 28px}
  .bac-overview-main{grid-column:1}
  .bac-preview{grid-column:2;grid-row:1;position:sticky;top:calc((var(--bcp-header-h) + 24px) / var(--bcp-zoom))}
  .bac-overview-rest{grid-column:1/-1}
}
@media (min-width:1800px){.bac-overview{grid-template-columns:minmax(0,1fr) 520px;column-gap:40px}}
.bac-quick .bac-choice-text{flex:1 1 200px}
.bac-quick .bac-choice,.bac-quick .bac-row{padding:12px 0}
.bac-quick>h2{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;margin-bottom:4px}
.bac-quick>h2 small{font-size:13px;font-weight:500;color:var(--muted)}
.bac-quick .bac-foot{justify-content:flex-start;padding-top:8px;border-top:1px solid var(--line)}
.bac-group,.bac-quick{scroll-margin-top:calc((var(--bcp-header-h) + 24px) / var(--bcp-zoom))}
.bac-legend-line{position:relative;display:flex;flex-wrap:wrap;align-items:center;gap:2px 10px;min-width:0}
/* One row's 已保存: a live region that stays in place; it fades after a moment but its words stay for screen readers. */
.bac-row-saved{display:inline-flex;align-items:center;gap:5px;font-size:13px;font-weight:600;line-height:1.4;color:var(--c-127a4e-fg);transition:opacity .5s ease}
.bac-row-saved:empty{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.bac-row-saved.is-faded{opacity:0}
.bac-row-saved.is-unsaved{color:var(--c-8e4c1b-fg)}
.bac-preview-card{display:flex;flex-direction:column;gap:12px;padding:16px 18px 18px;border:1px solid var(--line);border-radius:var(--panel-radius);background:var(--surface)}
.bac-preview-card h2{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:16px}
.bac-sample{display:flex;flex-direction:column;gap:10px}
.bac-sample-row{display:flex;gap:12px;align-items:flex-start;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--raised2)}
.bac-sample-thumb{flex:none;width:48px;height:48px;border-radius:8px;background:var(--c-d6dde6-bg)}
.bac-sample-text{display:flex;flex-direction:column;gap:3px;min-width:0}
.bac-sample-text b{font-size:14px;font-weight:600;line-height:1.45}
.bac-sample-text small{font-size:12.5px;color:var(--muted)}
.bac-pill{align-self:flex-start;padding:1px 9px;border-radius:999px;background:var(--hover);color:var(--ink-2);font-size:12px;font-weight:600}
html[data-bsa-density=compact] .bac-sample{gap:5px}
html[data-bsa-density=compact] .bac-sample-row{padding:7px 10px;gap:10px}
html[data-bsa-density=compact] .bac-sample-thumb{width:36px;height:36px}
/* Phones: the way back from a section to the index. */
.bsa-cloud .bac-back{display:none;align-items:center;gap:6px;align-self:flex-start;min-height:44px;margin-left:-6px;padding:0 10px 0 6px;border:0;background:none;color:var(--accent-ink);font-size:14px;font-weight:600}
.bac-back:hover{background:none;color:var(--ink)}
.bsa-cloud .bac-back:focus-visible{outline:2px solid var(--accent-ink);outline-offset:2px;border-radius:8px}
/* About: shortcuts, then what the site connects to, as two groups on one page. */
.bac-group{display:flex;flex-direction:column;gap:14px;min-width:0}
.bac-group+.bac-group{margin-top:10px;padding-top:26px;border-top:1px solid var(--line)}
.bac-group-title{font-size:19px;font-weight:700}
.bac-group-lead{max-width:640px;font-size:13.5px;line-height:1.7;color:var(--ink-2)}
/* Headings that receive focus from code carry no ring: they are not controls. */
.bsa-cloud .bac-title-row h1:focus,.bac-quick>h2:focus,.bac-group-title:focus{outline:0}
/* Notifications, integrations, shortcuts and privacy. */
.bac-row-head{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px}
.bac-switch:disabled{cursor:not-allowed;background:var(--page)!important;outline:1px dashed var(--c-c9c2b6-bd);outline-offset:-1px}
.bac-switch:disabled .bac-switch-knob{background:var(--line);box-shadow:none}
@media (pointer:coarse){.bac-switch:disabled::before{background:var(--page);outline:1px dashed var(--c-c9c2b6-bd)}}
.bac-info{display:flex;gap:12px;padding:14px 16px;border:1px solid var(--c-c9d9ec-bd);border-radius:12px;background:var(--c-f2f6fb-bg)}
.bac-info svg{flex:none;color:var(--c-24527f-fg);margin-top:2px}
.bac-info strong{display:block;font-size:14px;color:var(--c-24527f-fg)}
.bac-info p{margin-top:2px;font-size:13px;line-height:1.6;color:var(--ink-2)}
.bac-details{border:1px solid var(--line);border-radius:12px;background:var(--raised2)}
.bac-details summary{display:flex;align-items:center;min-height:44px;padding:0 16px;font-size:14px;font-weight:600;cursor:pointer}
.bac-details summary:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:12px}
.bac-details>p{padding:0 16px}
.bac-details pre{margin:10px 16px 16px;padding:12px 14px;border-radius:10px;background:#111b25;color:#e8eef5;font:500 12px/1.6 'IBM Plex Mono',ui-monospace,monospace;white-space:pre-wrap;overflow-wrap:anywhere}
.bac-filters{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0;border:0;min-width:0}
.bac-filter{position:relative;display:inline-flex;align-items:center;gap:7px;min-height:36px;padding:0 14px;border:1px solid var(--edge);border-radius:999px;background:var(--surface);color:var(--ink);font-size:13px;font-weight:500;cursor:pointer}
.bac-filter input{position:absolute;inset:-1px;width:calc(100% + 2px);height:calc(100% + 2px);margin:0;opacity:0;cursor:inherit}
.bac-filter:has(input:checked){border-color:var(--bar);background:var(--bar);color:var(--on-bar);font-weight:600}
.bac-filter:has(input:checked) .bac-count{color:#c0d2e7}
.bac-filter:has(input:focus-visible){outline:2px solid var(--accent);outline-offset:2px}
.bac-count{font:500 12px/1 'IBM Plex Mono',ui-monospace,monospace;color:var(--muted)}
.bac-dot{flex:none;width:8px;height:8px;border-radius:50%;box-sizing:border-box}
.bac-dot.is-enabled{background:#127a4e}
.bac-dot.is-unconfigured{border:2px solid var(--c-8e4c1b-bd)}
.bac-dot.is-planned{border:2px dashed var(--muted)}
.bac-dot.is-error{background:#a14a36}
.bac-dot.is-loading{border:2px solid var(--c-7a8594-bd)}
.bac-integrations{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.bac-integration{display:flex;flex-direction:column;align-items:flex-start;gap:10px;min-width:0;padding:18px 20px;border:1px solid var(--line);border-radius:var(--panel-radius);background:var(--surface)}
.bac-integration.is-open,.bac-integration[data-integration=mcp].is-open{grid-column:1/-1;box-shadow:var(--lift)}
.bac-integration.is-planned{border-style:dashed;border-color:var(--edge);background:var(--raised2)}
.bac-integration-head{display:flex;align-items:flex-start;gap:14px;width:100%}
.bac-integration-icon{flex:none;display:grid;place-items:center;width:40px;height:40px;border-radius:10px;background:var(--bar);color:#ffb48a}
.bac-integration[data-integration=assistant] .bac-integration-icon{background:var(--c-f2f6fb-bg);color:var(--c-24527f-fg)}
.bac-integration.is-planned .bac-integration-icon{background:var(--hover);color:var(--muted)}
.bac-integration-title{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.bac-integration-name{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}
.bac-integration h2{font-size:16px;font-weight:600}
.bac-integration h3{margin-top:4px;font-size:14px;font-weight:600}
.bac-status-badge{display:inline-flex;align-items:center;gap:5px;padding:2px 9px;border:1px solid transparent;border-radius:999px;font-size:12px;font-weight:700;white-space:nowrap}
.bac-status-badge.is-enabled{background:var(--c-f1f8f4-bg);border-color:var(--c-bfe0cc-bd);color:var(--c-127a4e-fg)}
.bac-status-badge.is-unconfigured{background:var(--c-fff5e9-bg);border-color:var(--c-f3c4a8-bd);color:var(--c-8e4c1b-fg)}
.bac-status-badge.is-planned{background:var(--hover);color:var(--ink-2)}
.bac-status-badge.is-error{background:var(--danger-s);border-color:var(--c-e8c3b8-bd);color:var(--danger)}
.bac-status-badge.is-loading{background:var(--page);color:var(--muted)}
.bac-mono{font:500 12px/1.5 'IBM Plex Mono',ui-monospace,monospace;color:var(--ink-2)}
.bac-facts{display:grid;grid-template-columns:auto minmax(0,1fr);gap:4px 12px;margin:0;font-size:13px}
.bac-facts dt{color:var(--muted)}.bac-facts dd{margin:0;font-weight:600;overflow-wrap:anywhere}
.bac-facts dd.is-enabled{color:var(--c-127a4e-fg)}.bac-facts dd.is-unconfigured{color:var(--c-8e4c1b-fg)}
.bac-integration-note{padding:10px 12px;border-radius:8px;background:var(--page);font-size:12.5px;line-height:1.6;color:var(--ink-2)}
.bac-integration-note.is-unconfigured{background:var(--c-fff5e9-bg);color:var(--c-5a3410-fg)}
.bac-integration-more{display:flex;flex-direction:column;gap:8px;width:100%;padding-top:14px;border-top:1px solid var(--line)}
.bac-integration-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px;width:100%}
.bsa-cloud .bac-expand{display:inline-flex;align-items:center;gap:6px}
.bac-expand svg{transition:transform .15s ease}.bac-expand[aria-expanded=true] svg{transform:rotate(180deg)}
.bac-code{display:flex;align-items:flex-start;gap:10px;width:100%;padding:12px 12px 12px 14px;border-radius:10px;background:#111b25;color:#e8eef5;box-sizing:border-box}
.bac-code code{flex:1;min-width:0;font:500 12.5px/1.6 'IBM Plex Mono',ui-monospace,monospace;white-space:pre-wrap;overflow-wrap:anywhere}
.bac-code code:focus-visible{outline:2px solid #ffb48a;outline-offset:2px}
.bsa-cloud .bac-copy{flex:none;display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:0 10px;border:1px solid #e8eef54d;border-radius:6px;background:transparent;color:#e8eef5;font-size:12px;font-weight:600}
.bsa-cloud .bac-copy:hover{background:#ffffff14;border-color:#e8eef5;color:#fff}
.bsa-cloud .bac-copy:focus-visible{outline:2px solid #ffb48a;outline-offset:2px}
.bac-tools{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:20px;width:100%}
.bac-tools li{display:flex;align-items:center;gap:10px;min-height:36px;border-bottom:1px solid var(--c-f0ece5-bd);min-width:0}
.bac-tools li[hidden]{display:none}
.bac-tools code{font:500 12px/1.4 'IBM Plex Mono',ui-monospace,monospace;overflow-wrap:anywhere}
.bac-tools li>span:not(.bac-access){flex:1;min-width:0;font-size:12.5px;color:var(--muted)}
.bac-access{flex:none;font-size:11px;font-weight:700;color:var(--c-127a4e-fg)}.bac-access.is-token{color:var(--c-8e4c1b-fg)}.bac-access.is-local{color:var(--ink-2)}
.bsa-cloud .bac-arrow-link,.bsa-cloud .bac-primary-link{display:inline-flex;align-items:center;gap:6px;min-height:36px;font-size:13px;font-weight:600;text-decoration:none}
.bsa-cloud .bac-arrow-link:hover{text-decoration:underline}
.bsa-cloud .bac-primary-link{min-height:44px;padding:0 18px;border-radius:10px;background:var(--accent);color:var(--on-accent);font-size:14px;font-weight:700}
.bsa-cloud .bac-primary-link:hover{background:#f7773d;color:var(--ink)}
.bac-skeleton-line{width:60%;height:12px;border-radius:6px;background:var(--hover)}
.bac-sources p{font-size:13px;color:var(--muted)}
.bac-palette-card{flex-direction:row;flex-wrap:wrap;align-items:center;gap:14px 20px}
.bac-palette-card .bac-integration-icon{width:44px;height:44px}
.bac-palette-text{flex:1 1 300px;display:flex;flex-direction:column;gap:3px;min-width:0}
.bac-palette-text h2{display:flex;flex-wrap:wrap;align-items:center;gap:10px;font-size:16px;font-weight:600}
.bac-keys{display:inline-flex;flex-wrap:wrap;align-items:center;gap:4px;white-space:nowrap}
.bac-keys kbd{display:inline-block;min-width:22px;padding:1px 6px;border:1px solid var(--edge);border-bottom-width:2px;border-radius:4px;background:var(--raised2);color:var(--ink);font:600 12px/1.5 'IBM Plex Mono',ui-monospace,monospace;text-align:center}
.bac-key-joiner{font-size:11px;color:var(--muted)}
.bac-key-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 36px}
.bac-key-group h3{margin-bottom:6px;font-size:13px;font-weight:600;color:var(--muted)}
.bac-key-group dl{margin:0}
.bac-key-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:36px;border-bottom:1px solid var(--c-f0ece5-bd)}
.bac-key-row:last-child{border-bottom:0}
.bac-key-row dt{font-size:13.5px;min-width:0}.bac-key-row dd{margin:0;flex:none}
.bac-a11y-row{gap:6px 16px}.bac-a11y-row .bac-row-title{flex:1 1 200px;font-weight:500}
.bac-a11y-row a{font-size:13px;font-weight:600;display:inline-flex;align-items:center;min-height:36px}
.bac-table-wrap{overflow-x:auto}
.bac-table{width:100%;border-collapse:collapse;font-size:13.5px}
.bac-table th{padding:0 12px 8px 0;border-bottom:1px solid var(--line);text-align:left;font-size:12px;font-weight:600;color:var(--muted);white-space:nowrap}
.bac-table td{padding:10px 12px 10px 0;border-bottom:1px solid var(--c-f0ece5-bd);vertical-align:top}
.bac-table tr:last-child td{border-bottom:0}
.bac-table .is-end{padding-right:0;text-align:right;white-space:nowrap;font:500 12px/1.4 'IBM Plex Mono',ui-monospace,monospace}
.bac-table th.is-end{font:600 12px/1.4 'IBM Plex Sans','Noto Sans SC',sans-serif}
.bac-table code{font:500 12px/1.4 'IBM Plex Mono',ui-monospace,monospace;overflow-wrap:anywhere}
.bac-inline-card{flex-direction:row;flex-wrap:wrap;align-items:center;gap:12px 20px}
.bac-inline-card .bac-secondary{display:inline-flex;align-items:center;gap:8px;min-height:44px}
.bac-inline-card h2{font-size:16px;font-weight:600}
.bsa-cloud .bac-danger,.bsa-cloud .bac-danger-outline{min-height:44px;padding:0 16px;border:1px solid var(--danger);border-radius:10px;font-weight:600}
.bsa-cloud .bac-danger{background:#a14a36;color:#fff}
.bsa-cloud .bac-danger:hover{background:#8a3d2c;border-color:var(--c-8a3d2c-bd)}
.bsa-cloud .bac-danger-outline{background:var(--surface);color:var(--danger)}
.bsa-cloud .bac-danger-outline:hover{background:var(--danger-s);border-color:var(--danger)}
.bac-dialog{width:min(480px,calc(100vw - 32px));box-sizing:border-box;padding:24px;border:0;border-radius:16px;background:var(--raised);color:var(--ink);box-shadow:0 24px 64px -16px rgba(1,27,62,.45)}
.bac-dialog::backdrop{background:rgba(1,27,62,.45)}
.bac-dialog h2{font-size:19px;line-height:1.35;font-weight:700}
.bac-dialog p{margin-top:10px;font-size:14px;line-height:1.65;color:var(--ink-2)}
.bac-dialog-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px;margin-top:20px}
.bsa-cloud .bac-dialog-actions .bac-secondary{min-height:44px;padding:0 18px}
@media (max-width:1079px){.bac-integrations{grid-template-columns:minmax(0,1fr)}}
@media (max-width:767px){.bac-key-groups,.bac-tools{grid-template-columns:minmax(0,1fr)}}
@media (max-width:639px){
  .bac-filters{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;padding:2px}
  .bac-filter{flex:none;min-height:44px}
  .bac-integration{padding:16px}
  .bac-integration-head{gap:12px}
  .bac-integration .bac-secondary,.bac-palette-card .bac-primary-link{width:100%;justify-content:center}
  .bac-dialog-actions>*{flex:1}
}
@media (pointer:coarse){.bac-filter,.bsa-cloud .bac-copy,.bsa-cloud .bac-arrow-link,.bac-a11y-row a{min-height:44px}.bac-details summary{min-height:48px}}

/* Site-wide preferences from the account centre, applied as attributes on <html> by bsa-account-nav.mjs. */
/* Reduced motion: transitions and animations finish at once (their end events still fire); nothing lifts on hover. */
html[data-bsa-motion=reduce] *,html[data-bsa-motion=reduce] *::before,html[data-bsa-motion=reduce] *::after{animation-duration:.001ms!important;animation-delay:0s!important;animation-iteration-count:1!important;transition-duration:.001ms!important;transition-delay:0s!important;scroll-behavior:auto!important}
html[data-bsa-motion=reduce] .bcp-card:hover,html[data-bsa-motion=reduce] .bcp-card:hover .bcp-media img,html[data-bsa-motion=reduce] .bcp-card:hover .bcp-video-cover img{transform:none!important}
/* Text size: the reading areas scale (page content, the reader's side panel, the AI thread), so layouts keep their
   proportions and phones still fit. The rail, header and overlay frames keep their size: they are sized against the
   viewport, which zoom would push off screen. The sticky category list is shortened by the same factor to stay on screen. */
html[data-bsa-text=large] :is(.bsa-cloud .bcp-page-content,.bsa-cloud .bcp-detail,.bai-scroll){zoom:1.125}
html[data-bsa-text=larger] :is(.bsa-cloud .bcp-page-content,.bsa-cloud .bcp-detail,.bai-scroll){zoom:1.25}
/* Inside the zoomed content, sticky offsets and viewport heights are scaled too. The sticky tops and scroll margins of the page
   (toolbars, the category list, the check column, the detail head) are written once as (--bcp-header-h + offset) / --bcp-zoom in
   bsa-cloud-project.css, so they sit right under the unzoomed bar at every text size. What is left here is what has no header
   offset: the review panel's height, and dialogs opened inside the content (sized from the viewport), which undo the zoom. */
@media (min-width:1080px){html[data-bsa-text=large] .bsa-cloud.is-project .bcp-stage-bar>.bcp-review-queue[open]>.bcp-review-body{max-height:calc(60vh / 1.125)}html[data-bsa-text=larger] .bsa-cloud.is-project .bcp-stage-bar>.bcp-review-queue[open]>.bcp-review-body{max-height:calc(60vh / 1.25)}}
/* 联系人's result bar sticks to the bottom of the window: its offset (and the home-indicator inset) is divided back like the sticky tops above. */
html[data-bsa-text=large] .bsa-cloud .bcm-toast{bottom:calc((16px + env(safe-area-inset-bottom,0px)) / 1.125)}
html[data-bsa-text=larger] .bsa-cloud .bcm-toast{bottom:calc((16px + env(safe-area-inset-bottom,0px)) / 1.25)}
html[data-bsa-text=large] .bsa-cloud .bcp-page-content dialog{zoom:.888889}
html[data-bsa-text=larger] .bsa-cloud .bcp-page-content dialog{zoom:.8}
/* Photo grid card size. */
html[data-bsa-grid=large] .bsa-cloud .bcp-grid{grid-template-columns:repeat(auto-fill,minmax(300px,1fr))}
html[data-bsa-grid=small] .bsa-cloud .bcp-grid{grid-template-columns:repeat(auto-fill,minmax(160px,1fr))}
@media (max-width:639px){html[data-bsa-grid=large] .bsa-cloud .bcp-grid{grid-template-columns:minmax(0,1fr)}html[data-bsa-grid=small] .bsa-cloud .bcp-grid{grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:8px}}
/* Compact density: tighter gaps and padding on records, cards and lists. Touch targets keep their 44 px on coarse pointers. */
@media (max-width:1079px){html[data-bsa-density=compact] .bsa-cloud .bcp-page-content{padding-top:16px;gap:16px}}
@media (min-width:1080px){html[data-bsa-density=compact] .bsa-cloud .bcp-page-content{padding-top:6px;gap:8px}}
html[data-bsa-density=compact] .bsa-cloud .bcp-grid{gap:10px}
html[data-bsa-density=compact] .bsa-cloud .bcp-card-body{padding:7px 10px 7px}
html[data-bsa-density=compact] .bsa-cloud .bcp-history-row{padding:10px 14px}
html[data-bsa-density=compact] .bsa-cloud .bcp-resource{padding:14px}
html[data-bsa-density=compact] .bsa-cloud .bpj-grid{gap:10px}
html[data-bsa-density=compact] .bsa-cloud .bpj-card{padding:14px;gap:6px}
html[data-bsa-density=compact] .bac-card{padding:14px 16px 16px;gap:12px}
html[data-bsa-density=compact] .bac-row,html[data-bsa-density=compact] .bac-rows>.bac-choice{padding:10px 0}
html[data-bsa-density=compact] .bac-entries,html[data-bsa-density=compact] .bac-stages{gap:8px}
html[data-bsa-density=compact] .bsa-cloud .bac-entry,html[data-bsa-density=compact] .bsa-cloud .bac-stage{padding:10px 12px}
@media (pointer:fine){
  html[data-bsa-density=compact] .bsa-cloud .bcp-sidebar button{padding:5px 8px}
  html[data-bsa-density=compact] .bsa-cloud .bcp-tabs button{height:36px;min-height:36px}
  html[data-bsa-density=compact] .bsa-cloud .bac-section-links a{min-height:34px}
}

/* 谁改的: a history entry's demo account name, always with its 未验证 tag (bsa-accounts.mjs appendActorName). */
.bsa-actor-name{display:inline-flex;align-items:baseline;flex-wrap:wrap;gap:4px;overflow-wrap:anywhere}
.bsa-unverified{display:inline-block;padding:0 6px;border:1px dashed var(--c-f3c4a8-bd);border-radius:999px;background:var(--c-fff8f3-bg);color:var(--accent-ink,var(--c-8a3b12-fg));font-size:11px;font-weight:600;line-height:1.6;white-space:nowrap}

/* Phones: a signed-in account is one short line in the navy block (name, then company, each cut with an ellipsis only when the
   line is full; the full text stays in the link's name), so the account row does not take three lines of the first screen. */
@media(max-width:639px){
  .bcp-account-who strong,.bcp-account-who small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;overflow-wrap:normal}
}
/* The 账户中心 page's navy block on a phone: the logo and the two project links share a row (the strip scrolls sideways),
   the group names stay for screen readers only, the account takes one row (its two actions beside it when they fit) and the
   one-line "模拟登录" note is left to the page's own demo warning. Every link and button keeps its name and a 44px box. */
@media(max-width:639px){
  .bsa-cloud.bac .bcp-shell-nav{grid-template-columns:auto minmax(0,1fr);align-items:center;gap:2px 10px;padding:8px 16px 10px}
  .bsa-cloud.bac .bcp-brand,.bsa-cloud.bac .bcp-brand img{width:96px;margin:0}
  .bsa-cloud.bac .bcp-nav-group-label{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .bsa-cloud.bac .bcp-shell-nav>.bcp-nav-group:not(.bcp-account-group){grid-column:2;min-width:0;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none}
  .bsa-cloud.bac .bcp-shell-nav>.bcp-nav-group:not(.bcp-account-group)::-webkit-scrollbar{display:none}
  .bsa-cloud.bac .bac-nav-links{flex-wrap:nowrap}
  .bsa-cloud.bac .bac-nav-links .bac-rail-link{flex:none;white-space:nowrap}
  .bsa-cloud.bac .bcp-account-group{grid-column:1/-1;margin:0}
  .bsa-cloud.bac .bcp-nav-footer{display:none}
  .bsa-cloud.bac .bcp-account-entry,.bsa-cloud.bpj .bcp-account-entry{flex-wrap:wrap}
  .bsa-cloud.bac .bcp-account-link,.bsa-cloud.bpj .bcp-account-link{flex:1 1 190px;min-width:0}
}
