.workspace-brand img,.lms-nav .brand img,.auth-brand img,.auth-form-brand img,.sidebar-logo { object-fit:contain; background:transparent!important; border:0!important; padding:0!important; box-shadow:none!important; border-radius:0!important; }
.workspace-brand>div { min-width:0; }
.account-menu .workspace-avatar { position:relative; overflow:hidden; min-width:38px; min-height:38px; max-width:38px; max-height:38px; line-height:1; }
.account-menu .workspace-avatar>img { position:absolute; inset:0; display:block; width:100%; height:100%; min-width:0; min-height:0; max-width:100%; max-height:100%; object-fit:cover; object-position:center; border-radius:inherit; }
@media(max-width:680px) { .account-menu .workspace-avatar { width:34px; height:34px; min-width:34px; min-height:34px; max-width:34px; max-height:34px; flex-basis:34px; } }
.workspace-brand strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:170px; }
.brand-settings-layout { display:grid; grid-template-columns:minmax(0,1fr) 240px; gap:22px; align-items:start; }
.brand-settings-layout>.panel { min-width:0; }
.brand-settings-heading h3 { margin:0 0 8px; font-size:1rem; }
.brand-settings-heading p { margin:0; color:#61758e; font-size:.79rem; line-height:1.8; }
.brand-assets-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.brand-asset-field { min-width:0; display:grid; gap:9px; padding:16px; border:1px solid #dbe5f2; border-radius:12px; }
.brand-asset-field>label:first-child { font-size:.82rem; font-weight:500; }
.brand-image-preview { display:flex; align-items:center; justify-content:center; min-height:112px; border:1px solid #e0e8f3; border-radius:8px; background-color:#fff; background-image:linear-gradient(45deg,#edf1f7 25%,transparent 25%),linear-gradient(-45deg,#edf1f7 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#edf1f7 75%),linear-gradient(-45deg,transparent 75%,#edf1f7 75%); background-size:16px 16px; background-position:0 0,0 8px,8px -8px,-8px 0; overflow:hidden; }
.brand-image-preview.logo img { width:88px; height:88px; object-fit:contain; }
.brand-image-preview.banner img { width:100%; height:112px; object-fit:cover; }
.brand-image-preview span { padding:12px; text-align:center; font-size:.74rem; color:#61758e; }
.brand-asset-field input[type=file] { max-width:100%; min-height:44px; width:100%; font:inherit; font-size:.76rem; padding:8px; border:1px solid #dbe5f2; border-radius:8px; background:#fff; }
.brand-asset-field input::file-selector-button { padding:7px 9px; border:0; border-radius:6px; background:#eaf2ff; color:#194b8d; margin-right:8px; font:inherit; }
.brand-asset-field small { color:#61758e; font-size:.7rem; line-height:1.7; overflow-wrap:anywhere; }
.brand-asset-field .brand-reset { display:flex; align-items:center; gap:8px; font-size:.73rem; color:#43617f; min-height:44px; cursor:pointer; }
.brand-asset-field .brand-reset input { width:17px!important; height:17px!important; min-height:0!important; padding:0!important; flex:0 0 17px; }
.brand-text-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.brand-text-grid input[type=color] { width:80px; height:44px; padding:5px; border:1px solid #dbe5f2; background:#fff; border-radius:8px; }
@media(max-width:1100px) { .brand-settings-layout { grid-template-columns:minmax(0,1fr); } }
@media(max-width:600px) { .brand-assets-grid,.brand-text-grid { grid-template-columns:minmax(0,1fr); } .brand-asset-field { padding:14px; } }
