/* Compact identity workspace, matching the existing management palette. */
.csgm-workspace .topbar{min-height:64px;padding-bottom:12px;margin-bottom:10px}
.csgm-workspace .csgm-context-nav{padding-bottom:2px;margin-bottom:8px;gap:4px}
.csgm-workspace .csgm-context-nav button{min-height:36px;padding:8px 14px}
.csgm-workspace [data-api-toolbar]{padding:0 0 8px!important;gap:8px!important}
.team-editor{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:16px;align-items:start}
.team-editor-main{display:grid;gap:14px;min-width:0}
.team-editor h2{font-size:19px;margin:0 0 10px}.team-editor h3{font-size:13px;margin:20px 0 10px}
.team-editor label{display:grid;gap:7px;font-size:12px;color:#bfc2cc;min-width:0}
.team-editor-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.team-editor-wide{grid-column:1/-1}
.team-editor input:not([type=radio]):not([type=color]),.team-editor select,.team-editor textarea{width:100%;min-width:0;box-sizing:border-box;padding:10px 12px;background:#191c23;color:#e8f0f8;border:1px solid #373c48;border-radius:6px;font:inherit;font-size:13px}
.team-editor textarea{resize:vertical}.team-editor :focus-visible{outline:2px solid #efab45;outline-offset:3px}
.team-editor-mode{display:flex;gap:20px;border:0;padding:0;margin:0 0 18px;flex-wrap:wrap}
.team-editor-mode legend{font-size:12px;color:#9a9eaa;margin-bottom:10px}.team-editor-mode label{display:flex;align-items:center;gap:8px}
.team-editor input[type=radio]{accent-color:#efab45}
.team-editor-templates{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.team-editor-templates button{display:grid;justify-items:center;gap:6px;padding:12px 6px;background:#191c23;border:1px solid #373c48;border-radius:7px;color:#cbd8e6;font-size:12px;cursor:pointer}
.team-editor-templates img{width:68px;height:68px;object-fit:contain}
.team-editor button:hover{border-color:#efab45}.team-editor button:disabled{opacity:.6;cursor:wait}
.team-editor-palettes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.team-editor-palettes button{display:flex;align-items:center;gap:8px;background:#191c23;border:1px solid #373c48;border-radius:6px;padding:8px;color:#cbd8e6;font-size:11px;cursor:pointer}
.team-palette-swatch{width:30px;height:23px;border-radius:4px;flex-shrink:0}
.team-editor-colors{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:16px}
.team-editor input[type=color]{width:100%;height:36px;border:1px solid #373c48;background:#191c23;border-radius:5px;cursor:pointer}
.team-editor-preview{position:sticky;top:18px;text-align:center;overflow:hidden}
.team-editor-badge{display:grid;place-items:center;min-height:230px;margin:12px 0;background:radial-gradient(ellipse at center,#36323b 0,transparent 70%)}
.team-editor-badge img{width:200px;height:200px;object-fit:contain}.team-editor-preview h2{overflow-wrap:anywhere}.team-editor-preview p{font-size:12px;color:#9a9eaa;overflow-wrap:anywhere;line-height:1.6}
.team-editor-mini{display:flex;align-items:center;gap:12px;text-align:left;border-top:1px solid #373c48;border-bottom:1px solid #373c48;padding:14px 0;margin:20px 0}.team-editor-mini img{width:40px;height:40px;object-fit:contain}
.team-editor-upload{border:1px dashed #57718d;border-radius:8px;padding:18px}.team-editor [data-upload] p{font-size:12px;color:#9a9eaa;line-height:1.6}
.team-editor-actions p{margin:0 0 12px;font-size:12px;color:#bfc2cc}.team-editor-actions>div{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.team-editor-actions button,.team-editor [data-clear-file]{padding:10px 14px;min-height:40px;border:1px solid #373c48;border-radius:6px;background:#242730;color:#e8f0f8;cursor:pointer;font:inherit;font-size:12px}
.team-editor-actions .primary-action{background:#efab45;color:#16202c;border-color:#efab45;font-weight:700}
.team-editor [hidden]{display:none!important}
.csgm-workspace .hero .identity .logo:has(img){padding:0;background:transparent;border:0;clip-path:none}.identity .logo img{width:100%;height:100%;object-fit:contain}.team-public-logo{width:90px;height:90px;object-fit:contain}
@media(max-width:1100px){.team-editor{grid-template-columns:minmax(0,1fr) 230px}.team-editor-palettes{grid-template-columns:repeat(2,minmax(0,1fr))}.team-editor-colors{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){.team-editor{grid-template-columns:minmax(0,1fr)}.team-editor-preview{position:static;grid-row:1}.team-editor-badge{min-height:150px;margin:8px 0}.team-editor-badge img{width:140px;height:140px}.team-editor-mini{display:none}.team-editor-preview>p:last-child{margin-bottom:0}.team-editor .card-pad{padding:16px}.team-editor-preview h2{margin-bottom:4px}.team-editor-templates{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:420px){.team-editor-fields{grid-template-columns:minmax(0,1fr)}.team-editor-templates{grid-template-columns:repeat(3,minmax(0,1fr))}.team-editor-templates img{width:54px;height:54px}.team-editor-mode{gap:12px}.team-editor-actions>div{display:grid;grid-template-columns:1fr}.team-editor-actions button{width:100%}.team-editor-palettes{grid-template-columns:repeat(2,minmax(0,1fr))}}

.team-brand-details{margin-bottom:16px;overflow-wrap:anywhere}.team-brand-details p{font-size:13px;line-height:1.6;color:#abb3c2;white-space:pre-line}
