/* Local-only visual layer. Existing templates, forms and permissions stay authoritative. */
body.uld-active{background:#f6f7f9;color:#202432}
body.uld-active .up-platform{--up-line:#e3e6ec;--up-muted:#626775;max-width:1200px;padding:42px 28px 64px;font-family:Arial,sans-serif}
body.uld-active .up-platform .up-platform{padding:0;max-width:none;margin:0}
body.uld-active .up-platform h1{font-size:clamp(30px,3.5vw,46px);letter-spacing:-1.5px;line-height:1.13;margin:8px 0 20px}
body.uld-active .up-platform h2{letter-spacing:-.6px;font-size:24px;line-height:1.3}
body.uld-active .up-platform h3{font-size:18px;line-height:1.4;letter-spacing:-.3px}
body.uld-active .up-platform .up-card{border:1px solid #e3e6ec;border-radius:18px;padding:28px;box-shadow:0 6px 24px #20243204}
body.uld-active .up-platform .up-button{min-height:46px;border-radius:10px;padding:12px 20px;font-size:14px;line-height:1.5;text-align:center}
body.uld-active .up-platform :is(input,select,textarea,button,a):focus-visible{outline:3px solid #3454d1;outline-offset:3px}
body.uld-active .up-platform :is(input,select,textarea):disabled{background:#f1f2f5;color:#626775;cursor:not-allowed}
body.uld-active .up-platform .up-form :is(input:not([type=checkbox]):not([type=radio]),select,textarea){border-color:#d7dce5;border-radius:10px;min-height:48px;padding:12px 14px;font-size:16px}
body.uld-active .up-platform .up-form fieldset{border-color:#e3e6ec;border-radius:14px;padding:20px}
body.uld-active .up-platform .up-form legend{font-size:15px;padding:0 8px}
body.uld-active .up-platform .up-form label{font-size:14px}
body.uld-active .up-platform .up-form .up-check{font-weight:400;line-height:1.6}
body.uld-active .up-platform .up-message{border-radius:12px;line-height:1.7}
body.uld-active .up-platform .up-breadcrumb{font-size:13px;margin-bottom:22px}
body.uld-active .up-platform .up-tags span{border:0;background:#f0f3ff;color:#3454d1;padding:6px 11px;font-size:12px}
body.uld-active .up-platform .up-portal{max-width:none}
/* Directory: persistent filters beside results at wide sizes, natural order on mobile. */
body.uld-directory main.up-platform{display:grid;grid-template-columns:270px minmax(0,1fr);gap:26px;align-items:start}
body.uld-directory .up-directory-header{grid-column:1/-1;padding:10px 0 8px;max-width:800px}
body.uld-directory .up-directory-header p:last-child{color:#626775;font-size:16px;max-width:650px}
body.uld-directory .up-directory-filters{margin:0;padding:22px!important;position:sticky;top:136px}
body.uld-directory .up-directory-filters h2{font-size:19px;margin-bottom:22px}
body.uld-directory .up-filter-form{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
body.uld-directory .up-filter-form label{font-size:13px;gap:7px;min-width:0}
body.uld-directory .up-search-row{grid-template-columns:minmax(0,1fr);gap:14px}
body.uld-directory .up-filter-form :is(input[type=search],select){min-height:46px;font-size:16px;border-color:#d7dce5;border-radius:10px;width:100%;max-width:100%}
body.uld-directory .up-filter-form .up-filter-check{font-size:12px;padding:10px;min-height:44px}
body.uld-directory .up-filter-form>a{padding:0;text-align:center;font-size:13px}
body.uld-directory .up-directory-filters>p{font-size:12px;line-height:1.7;margin:20px 0 0}
body.uld-directory .up-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:0}
body.uld-directory .up-firm-card{display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:24px!important}
body.uld-directory .up-firm-card h2{font-size:21px;margin:6px 0}
body.uld-directory .up-firm-card p{font-size:14px}
body.uld-directory .up-firm-card .up-text-link{margin-top:auto;padding-top:20px;font-size:14px}
body.uld-directory .up-firm-card .up-directory-logo{height:100px;width:150px;object-fit:contain;border:1px solid #edf0f5;background:#fff;border-radius:12px;padding:10px}
body.uld-directory .up-firm-card .up-tags{margin:0 0 18px}
body.uld-directory .up-empty-state{padding:40px!important;min-height:290px;background:linear-gradient(135deg,#fff 55%,#f0f3ff)}
body.uld-directory .up-empty-state p{color:#626775;max-width:620px;font-size:15px}
body.uld-directory main.up-platform>.navigation{grid-column:2}
/* Public company profiles: same surface system, all existing media/CTAs retained. */
body.uld-profile .up-hero{background:linear-gradient(120deg,#fff 60%,#eef2ff);border-color:#e3e6ec;border-radius:22px;padding:36px;margin-bottom:26px}
body.uld-profile .up-identity{gap:30px}
body.uld-profile .up-logo{border-radius:16px;border-color:#e3e6ec;box-shadow:0 6px 18px #20243204}
body.uld-profile .up-identity h1{margin:6px 0 14px}
body.uld-profile .up-columns{gap:26px;grid-template-columns:minmax(0,2fr) minmax(280px,1fr)}
body.uld-profile .up-contact{border-top:3px solid #3454d1!important}
body.uld-profile .up-media-grid{gap:20px}
body.uld-profile .up-media-grid img{border-radius:14px;background:#f1f3f6}
body.uld-profile .up-media-grid figcaption{color:#202432;line-height:1.6;padding-top:12px}
body.uld-profile .up-production-public>.up-card{margin:0}
/* Profile forms/panels: readable groups without collapsing or hiding existing notices. */
body.uld-active .up-self-profile{border-top:3px solid #3454d1!important}
body.uld-active .up-self-profile summary{padding:14px 0;font-size:15px}
body.uld-active .up-platform .up-company-save-box{border-radius:16px}
body.uld-active .up-platform .up-media-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr))}
body.uld-active .up-platform .up-rfq-list{gap:20px}
body.uld-active .up-platform .up-table-scroll,body.uld-active .up-platform .up-quote-scroll{max-width:100%;border-radius:12px}
body.uld-active .up-platform .up-help-guides{gap:26px}
@media(max-width:960px){
 body.uld-directory main.up-platform{grid-template-columns:minmax(0,1fr)}
 body.uld-directory .up-directory-header{grid-column:auto}
 body.uld-directory .up-directory-filters{position:static}
 body.uld-directory .up-filter-form{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.uld-directory .up-search-row{grid-column:1/-1;grid-template-columns:minmax(0,1fr) auto}
 body.uld-directory main.up-platform>.navigation{grid-column:auto}
 body.uld-profile .up-columns{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:600px){
 body.uld-active .up-platform{padding:28px 18px 44px}
 body.uld-active .up-platform h1{font-size:32px;letter-spacing:-1px}
 body.uld-active .up-platform .up-card{padding:22px;border-radius:15px}
 body.uld-active .up-platform .up-form fieldset{padding:16px;min-width:0}
 body.uld-directory main.up-platform{gap:20px}
 body.uld-directory .up-filter-form,body.uld-directory .up-search-row,body.uld-directory .up-grid{grid-template-columns:minmax(0,1fr)}
 body.uld-directory .up-search-row{grid-column:auto}
 body.uld-directory .up-empty-state{padding:26px!important}
 body.uld-directory .up-empty-state .up-actions{flex-direction:column;align-items:stretch}
 body.uld-profile .up-hero{padding:24px;border-radius:18px}
 body.uld-profile .up-identity{flex-direction:column;align-items:flex-start;gap:22px}
 body.uld-profile .up-logo{width:180px;height:110px}
 body.uld-active .up-platform .up-service-options{grid-template-columns:minmax(0,1fr)}
}
@media(prefers-reduced-motion:reduce){body.uld-active .up-platform *{scroll-behavior:auto}}

body.uld-registration main.up-platform{max-width:860px}
body.uld-registration .up-platform .up-portal{max-width:800px;padding:32px;background:#fff;border:1px solid #e3e6ec;border-radius:20px}
@media(max-width:600px){body.uld-registration .up-platform .up-portal{padding:22px 18px;border-radius:15px}}

/* Match the shared header and home-page container without narrowing the footer background. */
body.uld-active .up-brand-footer{padding-inline:0}
body.uld-active .up-brand-footer>div{box-sizing:border-box;width:min(1200px,calc(100% - 64px));max-width:1200px;margin-inline:auto}
@media(max-width:600px){body.uld-active .up-brand-footer>div{width:calc(100% - 36px)}}
