/* ═════ V273.3 Company Settings (approved CS_1 / CS_2) — js/company-settings.js ═════ */
#setup-tab-branding.cs-page .setup-page-head{display:block!important;background:#fff!important;color:inherit!important;border:1px solid #e1e7ef;border-radius:12px;padding:14px 16px!important;margin-bottom:12px}
.cs-hero{display:flex;align-items:center;gap:16px}
.cs-logo{width:150px;height:58px;border:1px solid #e6ebf1;border-radius:10px;display:flex;align-items:center;justify-content:center;padding:6px;background:#fff;flex:0 0 150px}
.cs-logo img{max-width:100%;max-height:100%;object-fit:contain}.cs-logo span{font-size:11px;font-weight:700;color:#94a3b8}
.cs-who{min-width:0}
.cs-nm{font-size:18px;font-weight:700;color:#173a5e}.cs-ar{font-size:13px;color:#475569;margin-top:1px;text-align:left}
.cs-chips{display:flex;gap:6px;margin-top:6px;flex-wrap:wrap}
.cs-chip{font-size:11.5px;background:#f1f5f9;color:#334155;border-radius:999px;padding:3px 9px;white-space:nowrap}
.cs-chip.ok{background:#e8f7ee;color:#15803d}.cs-chip.warn{background:#fff4dc;color:#92580a}
.cs-ring{margin-left:auto;display:flex;align-items:center;gap:10px}
.cs-ring-t{font-size:12px;color:#475569;text-align:right;white-space:nowrap;line-height:1.45}.cs-ring-t b{color:#173a5e}
.cs-ring-c{width:54px;height:54px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex:0 0 54px}
.cs-ring-c span{width:42px;height:42px;border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:13px;color:#173a5e}
.cs-co{display:flex;align-items:center;gap:6px;height:34px;border:1px solid #d6dee8;border-radius:8px;background:#f8fafc;padding:0 8px;color:#334155;margin-left:8px}
.cs-co select{border:0;background:transparent;font:inherit;font-size:12.5px;color:#334155;appearance:none;-webkit-appearance:none}
.cs-tabs{display:flex;gap:4px;background:#fff;border:1px solid #e1e7ef;border-radius:12px;padding:5px;margin-bottom:12px}
.cs-tabs button{flex:1 1 auto;border:0;background:transparent;padding:9px 8px;border-radius:8px;font:500 13px Inter,system-ui,sans-serif;color:#475569;cursor:pointer;white-space:nowrap;display:inline-flex;align-items:center;justify-content:center;gap:6px}
.cs-tabs button.on{background:#173a5e;color:#fff}
.cs-badge{font-style:normal;font-size:10.5px;font-weight:700;border-radius:999px;padding:1px 7px}
.cs-badge.ok{background:#e8f7ee;color:#15803d}.cs-badge.w{background:#fff4dc;color:#92580a}
.cs-tabs button.on .cs-badge{background:rgba(255,255,255,.2);color:#fff}
#setup-tab-branding .branding-stack>section[hidden]{display:none!important}
.cs-chk{display:block;font-size:11.5px;margin-top:4px;color:#64748b;min-height:0}
.cs-chk.ok{color:#15803d}.cs-chk.w{color:#92580a}
#setup-tab-branding input.cs-bad{border-color:#e8b04b!important;background:#fffaf0!important}
#setup-tab-branding .brand-upload{background-color:#fff;background-image:linear-gradient(45deg,#f1f4f8 25%,transparent 25%),linear-gradient(-45deg,#f1f4f8 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#f1f4f8 75%),linear-gradient(-45deg,transparent 75%,#f1f4f8 75%);background-size:14px 14px;background-position:0 0,0 7px,7px -7px,-7px 0}
.cs-meta{font-size:11px;color:#64748b;margin:6px 0 2px}
#setup-tab-branding .asset-actions{display:flex;gap:6px}
#setup-tab-branding .asset-replace,#setup-tab-branding .asset-remove{flex:1;height:30px;border-radius:8px;border:1px solid #cfd8e3;background:#fff;font:600 12px Inter,system-ui,sans-serif;color:#334155;display:inline-flex;align-items:center;justify-content:center;gap:5px;cursor:pointer}
#setup-tab-branding .asset-remove{color:#b42318;border-color:#f3c5c0}
#setup-tab-branding .brand-preview{position:sticky;top:10px}
#setup-tab-branding .brand-preview-paper{position:relative}
#setup-tab-branding .cs-hl{outline:2px dashed #2e75b6;outline-offset:3px;border-radius:3px}
#setup-tab-branding .bp-top.cs-hl,#setup-tab-branding .bp-doc-title.cs-hl{position:relative}
#setup-tab-branding .cs-hl::before{content:attr(data-cs-label);position:absolute;right:0;top:-16px;font-size:9.5px;font-weight:700;color:#fff;background:#2e75b6;border-radius:4px;padding:1px 6px;z-index:1;white-space:nowrap}
.bp-sig{display:flex;align-items:flex-end;justify-content:flex-end;gap:0;width:130px;min-height:50px;position:absolute;left:auto!important;right:18px!important;bottom:58px;flex-wrap:wrap;background:rgba(255,255,255,.92)}
.bp-sig .sg{max-width:90px;max-height:44px}.bp-sig .st{max-width:50px;max-height:50px;margin-left:-22px;opacity:.85}
.bp-sig .sg-e{font-size:10px;color:#94a3b8;font-style:italic}
.bp-sig .sg-n{flex:1 0 100%;border-top:1px solid #cbd5e1;font-size:8px;color:#475569;text-align:center;padding-top:2px;margin-top:2px}
.cs-save{position:sticky;bottom:0;z-index:5;background:#fff!important;border:1px solid #e1e7ef;border-radius:12px;padding:10px 14px!important;display:flex!important;align-items:center;gap:10px;box-shadow:0 -4px 14px rgba(15,23,42,.06)}
.cs-state{font-size:12.5px;color:#475569;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;flex:1 1 auto}.cs-state .cs-dot{margin-right:6px;vertical-align:middle}.cs-state b{color:#173a5e}
.cs-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#e8a317}
.cs-saved{color:#15803d}.cs-sp{flex:0 0 0}
.cs-save .btn:disabled{opacity:.5;cursor:default}
@media(max-width:900px){.cs-hero{flex-wrap:wrap}.cs-ring{margin-left:0}.cs-tabs{overflow-x:auto}}
