/* Account and team controls remain separate from system administration. */
.cs-settings{max-width:1280px;min-width:0}
.cs-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 24px;padding:6px;border:1px solid #e2e7ee;border-radius:14px;background:#f8fafc;width:fit-content;max-width:100%}
.cs-tabs button{min-height:44px;border:1px solid transparent;background:none;color:#526178;border-radius:10px;padding:9px 18px;font-size:14px;font-weight:600;white-space:nowrap}
.cs-tabs button.is-active{background:#fff;color:#bf2540;border-color:#e2e7ee;box-shadow:0 2px 5px #18253705}
.cs-settings-stack{display:flex;flex-direction:column;gap:24px;min-width:0}
.cs-card{padding:28px;border:1px solid #e2e7ee;border-radius:18px;background:#fff;box-shadow:var(--sm-shadow-card);min-width:0}
.cs-card-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:24px}
.cs-card-heading h2{font-size:21px;font-weight:600;line-height:1.45}
.cs-card-heading p{font-size:14px;color:#526178;margin-top:6px;line-height:1.75}
.cs-tag{display:inline-flex;align-items:center;min-height:30px;flex-shrink:0;border:1px solid #e2e7ee;border-radius:8px;padding:4px 10px;background:#f8fafc;color:#526178;font-size:12px;line-height:1.6;font-weight:500}
.cs-form{display:flex;flex-direction:column;gap:24px;min-width:0}
.cs-form label{display:flex;flex-direction:column;gap:9px;color:#182537;font-size:14px;font-weight:600;min-width:0}
.cs-form input,.cs-form textarea,.cs-form select,.cs-member-controls select,.cs-invite-result input{width:100%;min-height:46px;border:1px solid #dce3ed;border-radius:12px;background:#fff;color:#182537;padding:11px 14px;font:400 14px/1.65 var(--sm-font);box-shadow:none;min-width:0}
.cs-form textarea{resize:vertical;min-height:210px;line-height:1.85}
.cs-form input[readonly],.cs-form textarea[readonly],.cs-invite-result input{background:#f8fafc;color:#526178}
.cs-form small{font-size:12px;font-weight:400;line-height:1.8;color:#526178}
.cs-label-line{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px}
.cs-count{font-size:12px;font-weight:500;color:#526178}
.cs-count.is-ready{color:#166447}
.cs-scope-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.cs-form-footer{display:flex;align-items:center;justify-content:space-between;gap:24px;border-top:1px solid #e2e7ee;padding-top:22px}
.cs-form-footer>span{font-size:12px;line-height:1.8;color:#526178}
.cs-form-footer button{flex-shrink:0;margin-left:auto}
.cs-notice{padding:14px 17px;border:1px solid #bddccf;background:#f1f9f5;color:#166447;font-size:14px;line-height:1.75;border-radius:12px;margin:0 0 20px;overflow-wrap:anywhere}
.cs-settings-stack>.cs-notice{margin-bottom:0}
.cs-notice-error{color:#a51d38;border-color:#efbdc8;background:#fff0f3}
.cs-muted{font-size:14px;color:#526178;line-height:1.8}
.cs-collection-plan{padding:18px 20px;margin-bottom:22px;border:1px solid #e2e7ee;border-radius:12px;background:#fafbfd;font-size:13px;line-height:1.75;color:#526178}.cs-collection-plan strong{color:#25364d;font-size:14px}.cs-collection-plan p{margin:6px 0 10px}.cs-collection-plan .cs-plan-limit{font-size:12px;margin-bottom:12px}.cs-collection-plan summary{cursor:pointer;color:#c51b36;font-weight:600;min-height:30px;line-height:30px}.cs-collection-plan summary:focus-visible{outline:2px solid #c51b36;outline-offset:4px;border-radius:4px}.cs-plan-mappings{margin-top:10px}.cs-plan-mappings>div{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;padding:10px 0;border-top:1px solid #e2e7ee}.cs-plan-mappings span,.cs-plan-urls span{min-width:0;overflow-wrap:anywhere;color:#25364d}.cs-plan-mappings small,.cs-plan-urls small{display:block;color:#526178;font-size:12px}.cs-plan-urls{margin-top:16px}.cs-plan-urls>div{padding:10px 0;border-top:1px solid #e2e7ee}@media(max-width:520px){.cs-collection-plan{padding:16px}.cs-plan-mappings>div{grid-template-columns:minmax(0,1fr);gap:3px}}
.cs-invite-form{display:grid;grid-template-columns:minmax(150px,1fr) minmax(200px,1.35fr) minmax(120px,.65fr) auto;align-items:end;gap:16px}
.cs-invite-form .sm-button{min-height:46px;white-space:nowrap}
.cs-role-guide{display:grid;grid-template-columns:1fr 1fr;gap:10px 24px;margin-top:24px;padding:18px 20px;border:1px solid #e2e7ee;border-radius:12px;background:#f8fafc}
.cs-role-guide p{font-size:12px;color:#526178;line-height:1.85}
.cs-role-guide strong{font-weight:600;color:#182537}
.cs-role-guide p:last-child{grid-column:1/-1}
.cs-invite-result{margin-top:22px;padding:20px;border:1px solid #efbdc8;background:#fff9fa;border-radius:12px;display:flex;flex-direction:column;gap:14px}
.cs-invite-result h3{font-size:15px}
.cs-invite-result p{font-size:12px;line-height:1.85;color:#526178;margin-top:5px}
.cs-inline-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px}
.cs-text-button{min-height:44px;border:1px solid transparent;border-radius:10px;padding:9px 10px;background:none;color:#bf2540;font-size:13px;line-height:1.7;font-weight:500}
.cs-text-button:hover{background:#fff0f3;border-color:#f5dce2}
.cs-member-list,.cs-invitation-list{display:flex;flex-direction:column;min-width:0}
.cs-member{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;padding:20px 0;border-top:1px solid #e2e7ee;min-width:0}
.cs-member:first-child,.cs-invitation:first-child{padding-top:0;border-top:0}
.cs-member:last-child,.cs-invitation:last-child{padding-bottom:0}
.cs-member-identity{display:flex;align-items:center;gap:14px;min-width:0}
.cs-member-identity>div{min-width:0}
.cs-member-identity h3,.cs-invitation h3{font-size:14px;line-height:1.65;font-weight:600;overflow-wrap:anywhere}
.cs-member-identity p,.cs-invitation p{font-size:12px;color:#526178;line-height:1.85;overflow-wrap:anywhere}
.cs-member-identity small,.cs-invitation small{display:block;font-size:12px;color:#526178;line-height:1.8;margin-top:3px}
.cs-member-avatar{display:flex;align-items:center;justify-content:center;width:40px;height:40px;flex-shrink:0;background:#fff0f3;color:#bf2540;border-radius:12px;font-size:12px;font-weight:600}
.cs-you{display:inline-block;margin-left:9px;font-size:11px;line-height:1.8;color:#526178;font-weight:400}
.cs-member-controls{display:flex;align-items:center;gap:12px;flex-shrink:0}
.cs-member-controls select{width:120px;font-size:13px;min-height:44px}
.cs-confirm{flex-basis:100%;border:1px solid #efbdc8;background:#fff9fa;border-radius:12px;padding:16px 18px;display:flex;flex-wrap:wrap;justify-content:space-between;gap:14px;align-items:center}
.cs-confirm p{font-size:13px;line-height:1.8;color:#526178}
.cs-invitation{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 0;border-top:1px solid #e2e7ee;min-width:0}
.cs-invitation>div{min-width:0}
.cs-account-form{max-width:650px}
.cs-session-list{display:flex;flex-direction:column;gap:0;margin-bottom:22px}
.cs-session-list>div{display:flex;align-items:center;justify-content:space-between;gap:20px;border-top:1px solid #e2e7ee;padding:16px 0;min-width:0}
.cs-session-list>div:first-child{padding-top:0;border-top:0}
.cs-session-list strong{font-size:14px;font-weight:600;display:block}
.cs-session-list span:not(.cs-tag){font-size:12px;line-height:1.8;color:#526178;display:block;margin-top:4px}
.cs-sr-label{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.cs-scope-status{padding:16px 18px;border:1px solid #e2e7ee;border-radius:12px;background:#fafbfd;color:#526178;font-size:13px;line-height:1.8;margin-bottom:20px}.cs-scope-status p{margin:6px 0 12px}.cs-active-scope{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:22px}.cs-active-scope>div{border:1px solid #e2e7ee;border-radius:12px;padding:13px 15px;min-width:0}.cs-active-scope strong,.cs-active-scope span,.cs-active-scope small{display:block;font-size:12px;line-height:1.8;overflow-wrap:anywhere}.cs-active-scope strong{font-size:13px;color:#25364d}.cs-active-scope small{color:#526178}@media(max-width:900px){.cs-active-scope{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1250px){.cs-invite-form{grid-template-columns:1fr 1fr}.cs-invite-form .sm-button{width:fit-content}.cs-card{padding:24px}}
/* Client-owned WhatsApp linking stays inside account settings. */
.cs-tag-connected{background:#eef8f3;border-color:#cde7d9;color:#267250}
.cs-optional{font-size:12px;font-weight:400;color:#526178}
.cs-whatsapp-connection{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:32px;align-items:start}
.cs-whatsapp-connection>div{min-width:0}.cs-whatsapp-connection h3{font-size:16px;font-weight:600;line-height:1.6;margin:0 0 12px}.cs-whatsapp-connection p{font-size:14px;line-height:1.85;color:#526178;margin:0 0 15px}.cs-whatsapp-connection .cs-inline-actions{margin-top:22px}
.cs-whatsapp-linked{display:flex;flex-direction:column;gap:8px;padding:18px 20px;border:1px solid #cde7d9;border-radius:12px;background:#f5fbf8}.cs-whatsapp-linked strong{font-size:19px;font-weight:600;color:#267250;overflow-wrap:anywhere}.cs-whatsapp-linked span{font-size:13px;color:#526178;line-height:1.7}
.cs-whatsapp-connection:has(.cs-whatsapp-linked){grid-template-columns:minmax(0,1fr)}
.cs-whatsapp-qr{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;text-align:center;border:1px solid #e2e7ee;border-radius:14px;background:#fafbfd;padding:20px;min-height:290px}.cs-whatsapp-qr img{width:224px;height:224px;max-width:100%;object-fit:contain;display:block;background:#fff;border:10px solid #fff;border-radius:10px}.cs-whatsapp-qr strong{font-size:13px;font-weight:600;color:#182537}.cs-whatsapp-qr p{font-size:12px;line-height:1.7;margin:0;color:#526178}.cs-whatsapp-placeholder{display:flex;flex-direction:column;gap:12px;align-items:center;max-width:235px}.cs-whatsapp-placeholder>span{display:flex;align-items:center;justify-content:center;width:60px;height:60px;border:1px solid #e2e7ee;background:#fff;border-radius:14px;font-size:36px;line-height:1;color:#526178}
.cs-whatsapp-confirm{padding:17px 19px;border:1px solid #efbdc8;border-radius:12px;background:#fff9fa;margin:20px 0}.cs-whatsapp-confirm p{font-size:13px;line-height:1.85;color:#526178;margin:0 0 14px}.cs-whatsapp-confirm .cs-inline-actions{margin:0}
.cs-recipient-list{display:flex;flex-direction:column;gap:16px}.cs-recipient{display:grid;grid-template-columns:minmax(160px,.8fr) minmax(220px,1.2fr) auto;align-items:end;gap:16px;padding:18px;border:1px solid #e2e7ee;border-radius:12px;background:#fafbfd}.cs-recipient-remove{margin-bottom:2px}.cs-recipient-empty{padding:22px;border:1px dashed #dce3ed;border-radius:12px;background:#fafbfd}.cs-recipient-empty strong{font-size:14px;font-weight:600}.cs-recipient-empty p{font-size:13px;line-height:1.8;color:#526178;margin-top:5px}
.cs-form label.cs-whatsapp-toggle{display:flex;flex-direction:row;gap:12px;align-items:flex-start;font-weight:400;font-size:14px;line-height:1.8;padding:18px;border:1px solid #e2e7ee;border-radius:12px;background:#fafbfd}.cs-form .cs-whatsapp-toggle input{width:18px;height:18px;min-height:18px;flex-shrink:0;margin:3px 0 0;padding:0;accent-color:#bf2540}.cs-whatsapp-form .cs-form-footer{align-items:flex-start}.cs-whatsapp-form .cs-form-footer>span{max-width:560px}.cs-whatsapp-form .cs-form-footer .cs-inline-actions{justify-content:flex-end;flex-shrink:0}.cs-whatsapp-form .cs-form-footer button{margin-left:0}.cs-whatsapp-note{font-size:12px;line-height:1.85;color:#526178;margin-top:20px;padding-top:17px;border-top:1px solid #e2e7ee}
@media(max-width:1200px){.cs-whatsapp-form .cs-form-footer{flex-direction:column;gap:18px}.cs-whatsapp-form .cs-form-footer .cs-inline-actions{justify-content:flex-start}.cs-recipient{grid-template-columns:minmax(140px,.8fr) minmax(180px,1.2fr)}.cs-recipient-remove{grid-column:1/-1;justify-self:end}}
@media(max-width:800px){.cs-whatsapp-connection{grid-template-columns:minmax(0,1fr);gap:24px}.cs-whatsapp-qr{max-width:320px;width:100%;justify-self:center}}
@media(max-width:700px){.cs-recipient{grid-template-columns:minmax(0,1fr);padding:16px;gap:18px}.cs-recipient-remove{grid-column:auto}.cs-whatsapp-connection p{font-size:13px}.cs-whatsapp-form .cs-form-footer .cs-inline-actions{width:100%;flex-direction:column;align-items:stretch}.cs-whatsapp-form .cs-form-footer .sm-button{width:100%}.cs-whatsapp .cs-inline-actions{gap:10px}.cs-whatsapp-confirm{padding:16px}}
@media(max-width:700px){.cs-tabs{width:100%;gap:4px;padding:5px}.cs-tabs button{padding:9px 12px;flex-grow:1;font-size:13px}.cs-card{padding:20px}.cs-card-heading{flex-direction:column;gap:12px;margin-bottom:22px}.cs-card-heading h2{font-size:20px}.cs-scope-columns,.cs-invite-form,.cs-role-guide{grid-template-columns:1fr;gap:20px}.cs-role-guide{padding:16px;gap:9px}.cs-invite-form .sm-button{width:100%}.cs-form input,.cs-form textarea,.cs-form select,.cs-member-controls select,.cs-invite-result input{font-size:16px}.cs-form-footer{flex-direction:column;align-items:stretch;gap:15px}.cs-form-footer button{width:100%;margin-left:0}.cs-member{align-items:flex-start;gap:15px}.cs-member-identity{width:100%;align-items:flex-start}.cs-member-controls{width:100%;justify-content:flex-end}.cs-member-controls select{margin-right:auto;width:130px}.cs-invitation{align-items:flex-start;flex-direction:column;gap:8px}.cs-invite-result{padding:16px}.cs-settings-stack{gap:20px}.cs-confirm{padding:15px}}
