/* LAN Export v7.3.1: fixed display boundaries, independent of upload dimensions. */
.brand.brand-with-logo{display:inline-flex;min-width:0;max-width:100%;flex-shrink:1}
.brand.brand-with-logo .brand-copy{display:none}
.brand.brand-with-logo.brand-show-name .brand-copy{display:block;min-width:0;flex:1 1 auto;overflow:hidden}
.brand.brand-with-logo.brand-show-name .brand-copy b,.brand.brand-with-logo.brand-show-name .brand-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:200px}
.site-logo-img,.brand-document-logo{display:block;flex:0 1 auto;width:auto;height:auto;max-width:min(100%,var(--brand-logo-width,190px));max-height:var(--brand-logo-height,54px);object-fit:contain;object-position:left center}
.site-header .brand{max-width:360px}.footer .brand-with-logo{max-width:100%;flex-wrap:wrap}
.footer .brand .brand-copy b{color:#fff!important}.footer .brand .brand-copy small{color:#bacabe!important}
.site-header .brand-with-logo.brand-show-name .site-logo-img{min-width:0;flex:0 1 auto;max-width:min(var(--brand-logo-width,190px),96px)!important;max-height:min(var(--brand-logo-height,54px),48px)!important}
.site-header .brand-with-logo.brand-show-name .brand-copy b{font-size:clamp(16px,1.2vw,18px);line-height:1.15;letter-spacing:0;text-transform:none;white-space:normal;overflow-wrap:anywhere;max-width:240px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.site-header .brand-with-logo.brand-show-name .brand-copy small{font-size:9px;line-height:1.4;letter-spacing:.02em;max-width:220px}
.admin-brand img.admin-logo-img{width:38px!important;height:38px!important;max-width:38px!important;max-height:38px!important;object-fit:contain!important}
.v7-login-logo{min-width:0;max-width:100%;flex:1 1 auto}.v7-login-logo img{max-width:min(100%,var(--brand-logo-width,190px));max-height:var(--brand-logo-height,58px);object-fit:contain}
.brand-intro{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:16px}.brand-intro h3{margin:0 0 6px}.brand-intro p{margin:0;max-width:720px}.brand-intro .btn{flex-shrink:0}
.brand-upload-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.brand-upload-card{min-width:0;display:flex;flex-direction:column}.brand-upload-card h3{font-family:inherit;font-size:15px;font-weight:700}
.brand-upload-preview{height:130px;min-width:0;max-width:100%;padding:18px;display:flex;align-items:center;justify-content:center;overflow:hidden;border:1px dashed var(--v7-line,#dce5df);border-radius:10px;background:var(--v7-card-2,#f5f7f5)}
.brand-upload-preview img{display:block;width:auto;height:auto;max-width:100%!important;max-height:90px!important;object-fit:contain!important}
.brand-preview-dark{background:#16251e!important;color:#fff}.brand-preview-dark .brand-placeholder{color:#bccfc2}.brand-placeholder{font-size:12px;color:var(--v7-muted,#68776d)}
.brand-description{min-height:34px}.brand-upload-card .field{min-width:0}.brand-upload-card input[type=file]{max-width:100%;min-width:0;width:100%;font-size:11px;padding:8px!important}
.brand-file-info{overflow-wrap:anywhere;min-height:30px;margin:10px 0}.brand-upload-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:auto}.brand-upload-actions .v7-check{font-size:11px}
.brand-display-panel{margin-top:20px}.brand-name-option{font-size:12px;margin:16px 0 20px}.brand-context-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.brand-context-card{min-width:0;border:1px solid var(--v7-line,#dce5df);border-radius:10px;padding:16px}.brand-context-card h4{font-size:13px;margin:0 0 12px}
.brand-context-preview{height:116px;padding:12px;display:flex;align-items:center;overflow:hidden;background:var(--v7-card-2,#f5f7f5);border-radius:8px;border:1px solid var(--v7-line,#dce5df)}
.brand-context-identity{display:flex;align-items:center;gap:10px;width:100%;min-width:0}.brand-context-identity img{flex-shrink:1;min-width:0;object-fit:contain}.brand-context-identity span{font-size:13px;font-weight:700;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.brand-size-control{margin-top:14px}.brand-size-control label{display:flex;justify-content:space-between;font-size:11px;margin-bottom:8px}.brand-size-control output{color:var(--v7-muted,#68776d)}.brand-size-control input[type=range]{width:100%;accent-color:var(--v7-green,#1b6043);padding:0;height:20px}
.brand-save-bar{position:sticky;bottom:12px;display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:20px;padding:14px 18px;background:var(--v7-card,#fff);border:1px solid var(--v7-line,#dce5df);border-radius:10px;box-shadow:0 8px 30px #12251b14;z-index:10}
.brand-save-bar .btn{flex-shrink:0}.brand-upload-card [hidden],.brand-context-card [hidden]{display:none!important}
@media(max-width:1100px){.brand-upload-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.site-header .navwrap{gap:12px}.site-header .site-logo-img{max-width:min(var(--brand-logo-width,190px),45vw)!important;max-height:min(var(--brand-logo-height,54px),48px)!important}.site-header .brand{max-width:calc(100% - 50px)}.site-header .brand-with-logo.brand-show-name{max-width:calc(100% - 50px);gap:8px;flex:1 1 auto}.site-header .brand-with-logo.brand-show-name .site-logo-img{max-width:min(var(--brand-logo-width,190px),48px)!important;max-height:min(var(--brand-logo-height,54px),40px)!important}.site-header .brand-with-logo.brand-show-name .brand-copy{display:block!important;min-width:0}.site-header .brand-with-logo.brand-show-name .brand-copy b{font-size:clamp(14px,4vw,18px);max-width:100%;line-height:1.15}.site-header .brand-with-logo.brand-show-name .brand-copy small{display:none}.brand-upload-grid,.brand-context-grid{grid-template-columns:1fr}.brand-intro{align-items:flex-start;flex-direction:column}.brand-save-bar{bottom:4px;padding:12px}.brand-save-bar .v7-help{font-size:10px}.brand-display-panel .v7-card-head{flex-wrap:wrap}}
@media print{.brand-document-logo{filter:none!important;max-height:var(--brand-logo-height,60px)!important}}
