/* CS16 Panel v11.1.1 — Live Branding Settings */
.cs-branding-card { overflow: hidden; }
.cs-branding-preview-card,
.cs-branding-item {
    border: 1px solid var(--v10-line, rgba(255,255,255,.09));
    border-radius: 12px;
    background: rgba(4, 8, 13, .34);
}
.cs-branding-preview-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 18px;
    margin-bottom: 16px;
}
.cs-branding-preview-card > div:first-child { display:flex; flex-direction:column; gap:4px; min-width:0; }
.cs-branding-preview-card > div:first-child > span,
.cs-branding-file-hint { color: var(--v10-red-hot, #ff3657); font-size:9px; font-weight:900; letter-spacing:1px; }
.cs-branding-preview-card strong { color: var(--v10-text, #fff); font-size:14px; }
.cs-branding-preview-card small,
.cs-branding-item p,
.cs-branding-item-head span { color: var(--v10-muted, #8e9bad); font-size:11px; line-height:1.45; }
.cs-branding-preview-assets { display:flex; align-items:center; gap:12px; flex:0 0 auto; }
.cs-branding-preview-logo,
.cs-branding-preview-favicon,
.cs-branding-logo-stage,
.cs-favicon-sizes > span {
    display:flex;
    align-items:center;
    justify-content:center;
    border:1px solid rgba(255,255,255,.1);
    background:linear-gradient(145deg, rgba(255,255,255,.04), rgba(0,0,0,.18));
}
.cs-branding-preview-logo { width:180px; height:54px; border-radius:9px; padding:7px 12px; }
.cs-branding-preview-logo img,
.cs-branding-logo-stage img { width:100%; height:100%; object-fit:contain; }
.cs-branding-preview-favicon { width:54px; height:54px; border-radius:12px; padding:7px; }
.cs-branding-preview-favicon img,
.cs-favicon-sizes img { max-width:100%; max-height:100%; object-fit:contain; }
.cs-branding-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.cs-branding-item { min-width:0; padding:17px; }
.cs-branding-item-head { display:flex; justify-content:space-between; gap:14px; align-items:flex-start; margin-bottom:14px; }
.cs-branding-item-head > div { display:flex; flex-direction:column; gap:4px; }
.cs-branding-item-head strong { color:var(--v10-text,#fff); font-size:14px; }
.cs-branding-file-hint { flex:0 0 auto; padding:5px 7px; border-radius:999px; border:1px solid rgba(255,54,87,.2); background:rgba(255,54,87,.06); }
.cs-branding-logo-stage { height:126px; border-radius:10px; padding:18px; }
.cs-branding-item p { min-height:32px; margin:12px 0; }
.cs-branding-actions { display:flex; flex-wrap:wrap; gap:9px; }
.cs-branding-file-input { position:absolute !important; width:1px !important; height:1px !important; overflow:hidden !important; opacity:0 !important; pointer-events:none !important; }
.cs-favicon-sizes { min-height:126px; display:flex; align-items:flex-end; justify-content:center; gap:18px; padding:14px; border:1px dashed rgba(255,255,255,.11); border-radius:10px; }
.cs-favicon-sizes > span { flex-direction:column; gap:7px; width:54px; min-height:76px; padding:9px; border-radius:10px; }
.cs-favicon-sizes > span:nth-child(1) img { width:16px; height:16px; }
.cs-favicon-sizes > span:nth-child(2) img { width:32px; height:32px; }
.cs-favicon-sizes > span.large { width:74px; min-height:96px; }
.cs-favicon-sizes > span.large img { width:56px; height:56px; border-radius:10px; }
.cs-favicon-sizes small { color:var(--v10-muted,#8e9bad); font-size:8px; font-weight:800; letter-spacing:.6px; }
#csBrandingAlert.success { border-color:rgba(49,217,124,.3); background:rgba(49,217,124,.08); color:#8be9b4; }
body.cs-template-classic-tactical .cs-branding-preview-card > div:first-child > span,
body.cs-template-classic-tactical .cs-branding-file-hint { color:#7fb2ff; }
body.cs-template-titan-gold .cs-branding-preview-card > div:first-child > span,
body.cs-template-titan-gold .cs-branding-file-hint { color:#e9b949; }
body.cs-template-titan-gold .cs-branding-file-hint { border-color:rgba(233,185,73,.22); background:rgba(233,185,73,.07); }
@media (max-width: 900px) {
    .cs-branding-grid { grid-template-columns:1fr; }
}
@media (max-width: 620px) {
    .cs-branding-preview-card { align-items:flex-start; flex-direction:column; }
    .cs-branding-preview-assets { width:100%; }
    .cs-branding-preview-logo { flex:1 1 auto; width:auto; min-width:0; }
    .cs-branding-item { padding:14px; }
    .cs-branding-item-head { flex-direction:column; }
    .cs-branding-actions .v10-button { min-height:44px; flex:1 1 150px; }
}
