/* V37: aligned homepage feature banner, dependable direct image selection, and admin theme controls. */
body{background:var(--theme-page-bg);color:var(--theme-text)}

/* Keep the large Smart TV / Meridia feature aligned with the same page shell as the product rail. */
.v37-home-feature-section>.shell{padding:0 18px}
.v37-home-feature-banner{width:100%;margin:0;border-radius:34px;box-shadow:0 24px 70px rgba(3,26,60,.13)}
.v37-home-feature-banner .eh-meridia-copy{position:relative;z-index:2;width:calc(100% - 72px);max-width:1240px;margin-inline:auto;padding-left:0;padding-right:0}
@media(max-width:960px){.v37-home-feature-banner{border-radius:26px}.v37-home-feature-banner .eh-meridia-copy{width:calc(100% - 48px)}}
@media(max-width:560px){.v37-home-feature-section>.shell{padding:0 10px}.v37-home-feature-banner{border-radius:20px}.v37-home-feature-banner .eh-meridia-copy{width:calc(100% - 34px)}}

/* The invisible file control fills the whole button. This avoids browsers ignoring clicks on the old 1px input. */
.admin-shell .v30-file-picker{position:relative!important;overflow:hidden!important;isolation:isolate}
.admin-shell .v30-file-picker input[type=file]{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;opacity:0!important;pointer-events:auto!important;cursor:pointer!important;font-size:100px!important;z-index:3!important}
.admin-shell .v30-file-picker:focus-within{outline:3px solid rgba(8,120,229,.2);outline-offset:2px}

/* Dynamic palette application to major public surfaces. */
.site-header,.enterprise-header{background:var(--theme-surface)}
.cg-topbar{background:var(--theme-deep-navy)!important}
.category-bar,.v7-category-bar{background:var(--theme-surface)!important;border-color:var(--theme-border)!important}
.button-blue,.eh-btn:not(.light),.footer-cta-band a{background:linear-gradient(120deg,var(--theme-secondary),var(--theme-primary-dark))!important}
.enterprise-footer,.footer-cta-band,.eh-closing,.meridia-service,.v8-meridia-service{background:linear-gradient(135deg,var(--theme-deep-navy),var(--theme-primary-dark))!important}
.product-card,.v6-product-card,.v36-system-page-card,.admin-editor{border-color:var(--theme-border)}

/* Admin theme controls. */
.v37-theme-note{display:flex;flex-wrap:wrap;gap:10px 18px;margin:0 0 24px;padding:16px 18px;border:1px solid #cfe0f2;border-radius:16px;background:#f5faff;color:#45627f;font-size:13px}
.v37-theme-note strong{color:#063c83}.v37-theme-note span:before{content:"✓";margin-right:7px;color:#0878e5;font-weight:900}
.v37-theme-form{padding:0!important;overflow:hidden}.v37-theme-toolbar{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px 26px;border-bottom:1px solid #dbe7f2;background:#fff}
.v37-theme-toolbar h2{margin:4px 0 6px;color:#092b59;font:800 28px Manrope,sans-serif}.v37-theme-toolbar p:last-child{margin:0;color:#667991}.v37-theme-actions{display:flex;flex-wrap:wrap;gap:10px}.button-outline{border:1px solid #b9d1e8;background:#fff;color:#0756a5}
.v37-theme-preview{display:grid;grid-template-columns:1fr 1fr;gap:18px;padding:24px 26px;background:#f3f8fd}.v37-theme-preview>div{min-height:210px;padding:28px;border-radius:22px}.v37-preview-dark{display:flex;flex-direction:column;align-items:flex-start;background:linear-gradient(135deg,var(--theme-deep-navy),var(--theme-primary-dark));color:#fff}.v37-preview-dark span,.v37-preview-light span{font:800 10px Manrope,sans-serif;letter-spacing:.12em;text-transform:uppercase}.v37-preview-dark strong,.v37-preview-light strong{display:block;margin:28px 0 12px;font:800 28px/1.12 Manrope,sans-serif}.v37-preview-dark button{margin-top:auto;padding:11px 16px;border:0;border-radius:999px;background:var(--theme-primary);color:#fff;font-weight:800}.v37-preview-light{border:1px solid var(--theme-border);background:var(--theme-surface);color:var(--theme-text)}.v37-preview-light span{color:var(--theme-primary)}.v37-preview-light p{color:var(--theme-muted)}
.v37-color-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:26px;background:#fff}.v37-color-card{display:grid!important;grid-template-columns:58px minmax(0,1fr) 120px;gap:14px;align-items:center;padding:16px!important;border:1px solid #dbe7f2;border-radius:16px;background:#fbfdff;color:#10243d!important}.v37-color-swatch{position:relative;width:54px;height:54px;overflow:hidden;border:1px solid #c7d9ea;border-radius:14px;background:#fff}.v37-color-swatch input{position:absolute;inset:-8px;width:72px!important;height:72px!important;padding:0!important;border:0!important;cursor:pointer}.v37-color-copy strong,.v37-color-copy small{display:block}.v37-color-copy strong{font:800 14px Manrope,sans-serif}.v37-color-copy small{margin-top:5px;color:#667991;font-size:11px;line-height:1.45}.v37-color-code{margin:0!important;padding:11px!important;text-align:center;font:800 13px ui-monospace,SFMono-Regular,Consolas,monospace!important;text-transform:lowercase}.v37-color-card code{grid-column:2/4;color:#7b8ea2;font-size:10px}.v37-color-card.has-error{border-color:#e09a9a;background:#fff7f7}.v37-theme-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 26px;border-top:1px solid #dbe7f2;background:#f8fbfe}.v37-theme-footer small{color:#667991}.v37-theme-footer code{color:#0756a5}
@media(max-width:900px){.v37-theme-toolbar,.v37-theme-footer{align-items:flex-start;flex-direction:column}.v37-theme-preview,.v37-color-grid{grid-template-columns:1fr}}
@media(max-width:560px){.v37-color-card{grid-template-columns:52px 1fr}.v37-color-code{grid-column:1/3;width:100%!important}.v37-color-card code{grid-column:1/3}.v37-theme-actions{display:grid;width:100%}.v37-theme-actions .button{width:100%}}
