.ca-main { min-width:0; padding:28px 32px 64px; color:var(--bo-ink); }
.ca-main svg { width:16px; height:16px; flex-shrink:0; stroke-width:1.7; }
.ca-head { display:flex; justify-content:space-between; align-items:flex-end; gap:24px; margin-bottom:24px; }
.ca-eyebrow { display:flex; align-items:center; gap:7px; color:var(--bo-muted); font-size:12px; }
.ca-eyebrow span { color:var(--bo-muted); }
.ca-head h1 { margin:12px 0 7px; font-size:26px; letter-spacing:-.025em; }
.ca-head p { margin:0; font-size:13px; color:var(--bo-muted); line-height:1.6; }
.ca-head-actions { flex-shrink:0; }
.ca-summary { display:flex; flex-wrap:wrap; gap:32px; padding:4px 0 20px; font-size:13px; color:var(--bo-muted); }
.ca-summary>span { display:flex; align-items:center; gap:8px; }
.ca-summary strong { color:var(--bo-navy-900); font-size:19px; font-variant-numeric:tabular-nums; margin-left:6px; }
.ca-panel { border:1px solid var(--bo-border); border-radius:12px; background:white; overflow:hidden; }
.ca-toolbar { display:flex; align-items:center; flex-wrap:wrap; gap:10px; padding:14px 16px; border-bottom:1px solid var(--bo-border); }
.ca-search { flex:1 1 240px; max-width:340px; position:relative; }
.ca-search>svg { position:absolute; left:12px; top:13px; color:var(--bo-muted); }
.ca-main input:not([type=checkbox]), .ca-main select, .ca-main textarea { height:42px; border:1px solid var(--bo-border-strong); border-radius:8px; padding:0 12px; color:var(--bo-ink); background:white; font:inherit; font-size:13px; max-width:100%; }
.ca-search input { width:100%; padding-left:38px!important; }
.ca-main input[type=checkbox] { width:16px; height:16px; margin:0; accent-color:var(--bo-teal-700); flex-shrink:0; }
.ca-main input[readonly] { background:var(--bo-surface); color:var(--bo-muted); }
.ca-main [aria-invalid=true] { border-color:var(--bo-red-600)!important; }
.ca-main textarea { height:110px; padding:12px; resize:vertical; }
.ca-table-wrap { overflow-x:auto; }
.ca-table { width:100%; border-collapse:collapse; font-size:12px; }
.ca-table th { padding:13px 16px; text-align:left; white-space:nowrap; font-size:12px; font-weight:500; color:#526176; background:#f8fafc; }
.ca-table td { padding:18px 16px; border-top:1px solid #edf1f5; line-height:1.6; }
.ca-table tbody tr:hover { background:#fafcfd; }
.members-table { min-width:1010px; }
.ca-table td:nth-last-child(2) { white-space:nowrap; }
.ca-table small { display:block; font-size:12px; color:var(--bo-muted); margin-top:4px; }
.ca-person { display:flex; gap:10px; align-items:center; white-space:nowrap; }
.ca-avatar { display:grid; place-items:center; width:32px; height:32px; flex-shrink:0; border-radius:9px; color:var(--bo-teal-700); background:var(--bo-teal-100); font-size:11px; font-weight:600; }
.ca-tags,.ca-row-actions { display:flex; gap:6px; flex-wrap:wrap; }
.ca-row-actions { min-width:126px; }
.ca-tag { display:inline-flex; width:fit-content; align-items:center; gap:5px; padding:3px 8px; border-radius:6px; background:#f1f5f9; color:#526176; font-size:12px; white-space:nowrap; }
.ca-tag svg { width:13px; height:13px; }
.ca-tag.ok { background:#edf9f4; color:#147357; }
.ca-tag.paused { background:#fff5e5; color:#8b5e1a; }
.ca-tag.admin { background:#edf2fa; color:#375780; }
.ca-link,.ca-more { display:inline-flex; align-items:center; justify-content:center; gap:5px; min-height:32px; border:0; border-radius:6px; padding:4px 6px; background:transparent; color:var(--bo-teal-700); font-size:12px; }
.ca-link:hover,.ca-more:hover { background:#eaf5f7; }
.ca-link:disabled { opacity:.4; cursor:default; }
.ca-more { color:#496074; background:#edf3f7; }
.ca-more svg { width:12px; height:12px; }
.ca-pagination { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:12px 16px; border-top:1px solid var(--bo-border); color:var(--bo-muted); font-size:12px; }
.ca-pagination>div { display:flex; align-items:center; gap:14px; }
.ca-position-title { display:flex; align-items:center; gap:8px; font-size:13px; }
.ca-position-title svg { color:var(--bo-teal-700); }
.ca-caption,.ca-demo-note { font-size:12px; line-height:1.7; color:var(--bo-muted); }
.ca-demo-note { margin-top:20px; }
.ca-empty { text-align:center; padding:64px 24px; color:var(--bo-muted); }
.ca-empty>svg { width:30px; height:30px; }
.ca-empty h2 { color:var(--bo-ink); font-size:17px; }
.ca-empty p { font-size:13px; }
.ca-form-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.ca-position-form>.ca-form-grid { padding:24px; }
.ca-field { display:grid; gap:9px; font-size:13px; margin-bottom:16px; }
.ca-field b { color:var(--bo-red-600); }
.ca-field input { width:100%; }
.ca-permission-summary { display:flex; align-items:center; gap:10px; padding:14px 24px; background:#f1f8f9; color:#276270; font-size:12px; flex-wrap:wrap; }
.ca-permission-summary span:last-child { margin-left:auto; color:var(--bo-muted); }
.ca-permission-layout { display:grid; grid-template-columns:180px minmax(0,1fr); min-height:340px; }
.ca-permission-layout>nav { padding:16px 10px; border-right:1px solid var(--bo-border); }
.ca-group { display:flex; width:100%; gap:9px; align-items:center; padding:12px; border:0; background:transparent; border-radius:8px; color:#526176; font-size:13px; text-align:left; margin-bottom:6px; }
.ca-group.active { background:#e9f5f7; color:var(--bo-teal-700); font-weight:600; }
.ca-permission-row { display:grid; grid-template-columns:minmax(130px,.7fr) 1.3fr; padding:20px; gap:20px; border-bottom:1px solid #edf1f5; }
.ca-permission-row strong { display:flex; align-items:center; gap:7px; font-size:13px; }
.ca-permission-row small { display:block; font-size:12px; color:var(--bo-muted); margin:6px 0 0 23px; }
.ca-checks { display:flex; flex-wrap:wrap; gap:12px 18px; }
.ca-checks label { display:flex; align-items:center; gap:7px; min-height:28px; font-size:12px; cursor:pointer; }
.ca-savebar { display:flex; align-items:center; justify-content:space-between; border-top:1px solid var(--bo-border); padding:16px 24px; color:var(--bo-muted); font-size:12px; }
.ca-savebar>div { display:flex; gap:8px; }
.ca-log-filters>input { width:130px; }
.ca-log-filters>label:not(.ca-search) { display:flex; align-items:center; gap:8px; font-size:12px; }
.ca-log-summary { max-width:270px; overflow-wrap:anywhere; }
.ca-dialog { position:fixed; width:min(580px,calc(100vw - 40px)); max-height:calc(100dvh - 88px); padding:0; border:1px solid var(--bo-border); border-radius:16px; box-shadow:0 24px 70px #07182c30; color:var(--bo-ink); }
.ca-dialog.wide { width:min(1030px,calc(100vw - 64px)); }
.ca-dialog::backdrop { background:rgba(7,24,44,.42); }
.ca-dialog-head { display:flex; justify-content:space-between; align-items:center; gap:18px; padding:20px 26px; border-bottom:1px solid var(--bo-border); }
.ca-dialog-head h2 { margin:5px 0 0; font-size:22px; }
.ca-dialog-head>div:last-child { display:flex; gap:4px; }
.ca-dialog-body { padding:24px 26px; max-height:calc(100dvh - 345px); overflow:auto; font-size:13px; }
.ca-dialog-body h3 { display:flex; align-items:center; gap:8px; font-size:15px; }
.ca-dialog-foot { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:15px 26px; border-top:1px solid var(--bo-border); color:var(--bo-muted); font-size:12px; }
.ca-dialog-foot>div { display:flex; gap:10px; }
.ca-stepper { display:flex; padding:18px 26px; gap:16px; border-bottom:1px solid var(--bo-border); }
.ca-stepper>span { display:flex; align-items:center; gap:8px; flex:1; font-size:13px; color:var(--bo-muted); }
.ca-stepper b { width:26px; height:26px; display:grid; place-items:center; border-radius:50%; background:#edf1f6; font-size:12px; }
.ca-stepper .active { color:var(--bo-teal-700); font-weight:600; }
.ca-stepper .active b { background:var(--bo-teal-700); color:white; }
.ca-note { display:flex; gap:8px; line-height:1.7; color:var(--bo-muted); margin:12px 0 20px; }
.ca-note svg { margin-top:3px; }
.ca-found { display:flex; gap:12px; background:#f0f9f6; border:1px solid #cce7de; padding:18px; border-radius:9px; margin-top:20px; }
.ca-found p { margin:6px 0; }
.ca-found span { color:var(--bo-muted); font-size:12px; }
.ca-position-choices { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:20px; }
.ca-position-choice { display:flex; align-items:flex-start; gap:12px; border:1px solid var(--bo-border); border-radius:9px; padding:16px; cursor:pointer; }
.ca-position-choice:has(input:checked) { border-color:#91c7ce; background:#f3fafb; }
.ca-position-choice strong { display:flex; gap:7px; align-items:center; font-size:13px; }
.ca-position-choice small { display:block; color:var(--bo-muted); margin-top:8px; font-size:12px; }
.ca-inline-position { margin-top:16px; border:1px solid var(--bo-border); border-radius:10px; padding:18px; }
.ca-union { border:1px solid var(--bo-border); border-radius:10px; padding:18px; margin-bottom:20px; }
.ca-union h3 { margin-top:0; }
.ca-union p { color:var(--bo-muted); }
.ca-union-row { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:11px 0; border-top:1px solid #edf1f5; line-height:1.5; }
.ca-union-row strong { display:flex; align-items:center; gap:8px; font-weight:500; }
.ca-union-row span { color:var(--bo-muted); }
.ca-review dl,.ca-log-detail { display:grid; grid-template-columns:120px minmax(0,1fr); gap:16px; margin:0 0 24px; line-height:1.7; }
.ca-review dt,.ca-log-detail dt { color:var(--bo-muted); }
.ca-review dd,.ca-log-detail dd { margin:0; overflow-wrap:anywhere; }
.ca-access-person { display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin-bottom:18px; }
.ca-access-person>span { color:var(--bo-muted); }
.ca-access-actions { display:grid; gap:10px; }
.ca-access-option { display:flex; gap:10px; align-items:center; background:white; border:1px solid var(--bo-border); border-radius:9px; padding:16px; color:var(--bo-ink); text-align:left; }
.ca-access-option:hover { background:#f6f9fb; }
.ca-main .danger { color:var(--bo-red-600); }
.ca-danger-btn { background:var(--bo-red-600); color:white; }
.ca-error { display:flex; gap:8px; padding:12px 16px; border-radius:8px; background:var(--bo-red-50); color:#a22635; font-size:13px; line-height:1.6; }
.ca-error svg { margin-top:2px; }
.prototype-nav { max-height:calc(100dvh - 96px); overflow-y:auto; }
@media(max-width:1100px) { .ca-main { padding:24px; } .ca-head { align-items:flex-start; } .ca-permission-row { grid-template-columns:1fr; } }
@media(max-width:780px) { .ca-main { padding:20px 16px 64px; } .ca-head { flex-direction:column; gap:16px; } .ca-summary { gap:18px; } .ca-form-grid,.ca-position-choices { grid-template-columns:1fr; } .ca-dialog.wide { width:calc(100vw - 24px); } .ca-dialog-body { padding:20px 16px; } .ca-stepper { padding:12px 16px; gap:8px; } .ca-stepper>span { font-size:11px; flex-direction:column; } .ca-permission-layout { grid-template-columns:1fr; } .ca-permission-layout>nav { display:flex; overflow:auto; border-right:0; } .ca-group { min-width:max-content; } .ca-head h1 { font-size:24px; } .ca-dialog-head,.ca-dialog-foot { padding:16px; } .ca-union-row { align-items:flex-start; flex-direction:column; gap:7px; } }

/* Member store assignments share the existing enterprise shell. */
.ca-dialog.ca-drawer { inset:0 0 0 auto; margin:0; width:min(860px,100vw); max-width:100vw; height:100dvh; max-height:100dvh; border-radius:0; border:0; border-left:1px solid var(--bo-border); }
.ca-dialog.ca-drawer[open] { display:flex; flex-direction:column; }
.ca-drawer>.ca-dialog-head,.ca-drawer>.ca-stepper,.ca-drawer>.ca-dialog-foot { flex-shrink:0; }
.ca-drawer>.ca-dialog-body { flex:1; min-height:0; max-height:none; overflow-y:auto; }
.ca-store-allocation { margin-top:22px; }
.ca-store-allocation:first-child { margin-top:0; }
.ca-store-search { display:block; max-width:none; margin:14px 0 10px; }
.ca-store-selection { display:flex; justify-content:space-between; align-items:center; gap:14px; padding:10px 15px; color:var(--bo-muted); font-size:12px; }
.ca-store-selection>label { display:flex; align-items:center; gap:9px; min-height:28px; }
.ca-store-choices { border:1px solid var(--bo-border); border-radius:8px; overflow:hidden; }
.ca-store-choice { display:flex; align-items:center; gap:12px; padding:12px 14px; min-height:60px; cursor:pointer; }
.ca-store-choice+.ca-store-choice { border-top:1px solid var(--bo-border); }
.ca-store-choice:hover { background:var(--bo-surface); }
.ca-store-choice>span { display:flex; align-items:center; gap:10px; min-width:0; }
.ca-store-choice strong,.ca-store-choice small { display:block; overflow-wrap:anywhere; }
.ca-store-choice small { margin-top:3px; font-size:12px; color:var(--bo-muted); }
.ca-store-choice:has(input:checked) { background:var(--bo-teal-50,#f0fdfa); }
.ca-store-choice:has(input:disabled) { cursor:default; }
.ca-store-summary { display:inline-flex; align-items:center; gap:6px; white-space:nowrap; }
.ca-store-empty { padding:16px; color:var(--bo-muted); }
.ca-main .members-table { min-width:1140px; }
.ca-main .members-table th,.ca-main .members-table td { padding-left:12px; padding-right:12px; }
.ca-main .members-table .ca-row-actions { flex-wrap:nowrap; white-space:nowrap; }
.ca-store-allocation input:focus-visible,.ca-store-choice:focus-within { outline:2px solid var(--bo-teal-700); outline-offset:2px; }
@media(max-width:780px) { .ca-dialog.ca-drawer { width:100vw; } .ca-drawer .ca-dialog-head,.ca-drawer .ca-dialog-foot { padding:14px 16px; } .ca-store-selection { flex-wrap:wrap; } }
