/* Shared surface boundaries. The brand remains navy/gold; controls use readable ink. */
html:root { --customer-ink:#14243b; --customer-muted:#43546a; --customer-paper:#ffffff; --customer-navy:#10223e; }
html:root :is(#mh-readable-page,body) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=range]):not([type=color]),textarea,select,option) {
 color:#14243b!important;-webkit-text-fill-color:#14243b!important;background-color:#fff!important;border-color:#8492a6!important;color-scheme:light;max-width:100%;
}
html:root :is(#mh-readable-page,body) :is(input,textarea)::placeholder {color:#536174!important;-webkit-text-fill-color:#536174!important;opacity:1!important}
html:root :is(#mh-readable-page,body) :is(.auth-card,.dashboard-sidebar,.profile-card,.profile-premium-form,.dashboard-content>.dashboard-section) {
 --melvin-surface-heading:#14243b;--melvin-surface-text:#263a50;--melvin-surface-link:#174d81;
 background-color:#fff!important;color:#14243b!important;background-image:none!important;color-scheme:light;
}
html:root :is(#mh-readable-page,body) :is(.auth-card,.dashboard-sidebar,.profile-card,.profile-premium-form,.dashboard-content>.dashboard-section) :is(h1,h2,h3,h4,h5,p,label,legend,small,span,strong,dt,dd,li) {
 color:#14243b!important;text-shadow:none!important;
}
html:root :is(#mh-readable-page,body) :is(.auth-card,.dashboard-sidebar,.profile-card,.profile-premium-form) a:not(.button) {color:#174d81!important}
html:root :is(#mh-readable-page,body) .profile-hero-card {
 background:linear-gradient(135deg,#10223e,color-mix(in srgb,var(--personal-accent,#314580) 30%,#10223e))!important;color:#fff!important;
}
html:root :is(#mh-readable-page,body) .profile-hero-card :is(h1,h2,p,span,strong,small) {color:#fff!important;opacity:1!important}
html:root :is(#mh-readable-page,body) .profile-hero-card__avatar {background:#f3ce72!important;color:#10223e!important}
html:root :is(#mh-readable-page,body) :is(.button--secondary,.button--outline,.rp-button--ghost) {
 background:#10223e!important;background-image:none!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border:1px solid #a9b8ca!important;text-shadow:none!important;
}
html:root :is(#mh-readable-page,body) :is(.button--primary,.button--gold,.rp-button--gold) {
 background:#f3ce72!important;background-image:none!important;color:#10223e!important;-webkit-text-fill-color:#10223e!important;border-color:#b68a2a!important;text-shadow:none!important;
}
html:root :is(#mh-readable-page,body) :is(.button--primary,.button--secondary,.button--outline) :is(span,strong) {color:inherit!important;-webkit-text-fill-color:inherit!important}
html:root :is(#mh-readable-page,body) :is(button:disabled,.button[aria-disabled=true]) {opacity:1!important;cursor:not-allowed;box-shadow:none}
html:root :is(#mh-readable-page,body) :is(.auth-card,.dashboard-section) :is(.form-field__error,[data-status=error]) {color:#8b202b!important;background-color:#fff0f1!important}
html:root :is(#mh-readable-page,body) :is(.form-message,.form-field__hint,.google-auth__hint,.google-auth__lead,.google-auth__status) {line-height:1.6}
html:root :is(#mh-readable-page,body) .google-auth :is([data-google-auth-fallback-button],.google-auth__button) {
 color:#1f1f1f!important;background:#fff!important;-webkit-text-fill-color:#1f1f1f!important;border-color:#747775!important;
}
html:root :is(#mh-readable-page,body) [data-apple-auth-button] {
 background:#000!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border:1px solid #000!important;border-radius:8px;min-height:48px;font-weight:650;
}
html:root :is(#mh-readable-page,body) :is([data-apple-auth-button],[data-google-auth-fallback-button]):disabled {opacity:1!important;color:#536174!important;-webkit-text-fill-color:#536174!important;background:#e7ebf0!important;border-color:#8492a6!important}
html:root :is(#mh-readable-page,body) :is(button,a,input,select,textarea):focus-visible {outline:3px solid #2286c2!important;outline-offset:3px}
html:root :is(#mh-readable-page,body) .customer-services {padding-block:32px;color:#fff!important}
html:root :is(#mh-readable-page,body) .customer-services :is(h1,p) {color:#fff!important;max-width:850px}
.customer-services h1 {font-size:clamp(1.8rem,4vw,3rem);line-height:1.15;margin:8px 0 16px}
.customer-service-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:24px}
html:root :is(#mh-readable-page,body) .customer-service-grid>:is(a,div) {display:grid;gap:7px;background:#fff!important;color:#14243b!important;padding:24px;border:1px solid #b9c4d1;border-radius:16px;text-decoration:none;min-width:0}
html:root :is(#mh-readable-page,body) .customer-service-grid :is(strong,span) {color:#14243b!important}
.customer-service-grid strong {font-size:1.15rem}.customer-service-grid span {font-size:.95rem}
.customer-service-grid>a:hover {box-shadow:0 0 0 3px #f3ce72}
.customer-plan {background:#fff;color:#14243b;padding:24px;border-radius:16px;margin:24px auto;max-width:1100px;border:1px solid #b9c4d1}
html:root :is(#mh-readable-page,body) .customer-plan :is(h2,p,li,strong,span) {color:#14243b!important}
.customer-plan li {padding:12px 0;border-bottom:1px solid #d6dde5;display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.customer-plan a {color:#174d81!important}.customer-plan button {background:#10223e;color:#fff;border-radius:8px;min-height:44px;padding:8px 16px;cursor:pointer}
html:root :is(#mh-readable-page,body) [hidden] {display:none!important}
@media(max-width:760px){
 .customer-service-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .customer-service-grid>:is(a,div){padding:16px!important}
 html:root :is(#mh-readable-page,body) .profile-hero-card{flex-direction:column;align-items:flex-start;padding:20px;gap:16px}
 html:root :is(#mh-readable-page,body) .profile-hero-card__identity{min-width:0;max-width:100%}
 html:root :is(#mh-readable-page,body) .dashboard-layout{grid-template-columns:minmax(0,1fr)}
 html:root :is(#mh-readable-page,body) .auth-page{padding-inline:12px}
 html:root :is(#mh-readable-page,body) .auth-card{min-width:0;max-width:100%;padding:20px}
 html:root :is(#mh-readable-page,body) .site-header__actions{flex-wrap:wrap;gap:10px}
 html:root :is(#mh-readable-page,body) :is(.header-actions,.site-header__actions) .button {padding:10px 14px;min-height:44px}
 html:root :is(#mh-readable-page,body) .brand__name{font-size:clamp(1.1rem,5vw,1.6rem)}
}
@media(max-width:380px){.customer-service-grid{grid-template-columns:minmax(0,1fr)}}
/* Shared business forms/dialogs retain distinct dark workspace headers. */
html:root :is(#mh-readable-page,body) :is(dialog,.content-card,.portal-card,.travel-service-provider-form,.agency-directory-search) {
 --melvin-surface-heading:#14243b;--melvin-surface-text:#263a50;--melvin-surface-link:#174d81;
 color:#14243b!important;background-color:#fff!important;color-scheme:light;
}
html:root :is(#mh-readable-page,body) :is(dialog,.content-card,.portal-card,.travel-service-provider-form,.agency-directory-search) :is(h1,h2,h3,p,label,legend,small,span,strong,dt,dd,li) {color:#14243b!important;text-shadow:none!important}
html:root :is(#mh-readable-page,body) :is(dialog,.content-card,.portal-card) :is(.button--primary,.button--secondary,.button--outline) :is(span,strong) {color:inherit!important}
@media(max-width:760px){html:root :is(#mh-readable-page,body) dialog {max-width:calc(100vw - 24px);max-height:calc(100dvh - 32px);overflow:auto}}

.customer-cart-link{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:44px;min-height:44px;color:#fff!important;text-decoration:none}
@media(max-width:480px){.customer-cart-link span{display:none}.header-actions{gap:8px;flex-wrap:wrap}}

/* Explicit surface contracts: text and its background change together. */
html:root body .auth-card :is(.button--text,.password-field__toggle) {
 color:#174d81!important;-webkit-text-fill-color:#174d81!important;background:transparent!important;
}
html:root body .auth-card :is(.button--text,.password-field__toggle):is(:hover,:focus-visible) {
 color:#10223e!important;-webkit-text-fill-color:#10223e!important;background:#e8eef6!important;
}
html:root body :is(.empty-state,.loading-state,.filter-panel,.search-panel,.newsletter-capability-status) {
 background:#fff!important;background-image:none!important;color:#14243b!important;border-color:#a9b8ca!important;
 --color-text:#14243b;--color-text-muted:#43546a;--color-heading:#14243b;
}
html:root body :is(.empty-state,.loading-state,.filter-panel,.search-panel,.newsletter-capability-status) :is(h1,h2,h3,h4,p,label,legend,span,small,strong) {
 color:#14243b!important;-webkit-text-fill-color:#14243b!important;text-shadow:none!important;
}
html:root body :is(.filter-panel,.search-panel) .button--text {
 color:#174d81!important;-webkit-text-fill-color:#174d81!important;background:transparent!important;
}
html:root body :is(.filter-panel,.search-panel) :is(.button--primary,.button--secondary,.button--outline) :is(span,strong) {
 color:inherit!important;-webkit-text-fill-color:inherit!important;
}
html:root body .newsletter-capability-status {padding:20px;border:1px solid #a9b8ca;border-radius:12px}
html:root body [data-apple-auth-button] {display:inline-flex;align-items:center;justify-content:center;gap:10px;width:100%;padding:12px 16px;font:inherit}
html:root body [data-apple-auth-button]::before {
 content:""!important;display:inline-block;width:20px;height:24px;margin:0;flex:0 0 20px;background:currentColor!important;
 -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.05 20.28c-.98.95-2.05.8-3.08.35-1.09-.46-2.09-.48-3.24 0-1.44.62-2.2.44-3.06-.35C2.79 15.25 3.51 7.59 9.04 7.31c1.35.07 2.29.77 3.08.83 1.18-.24 2.31-.96 3.57-.87 1.51.12 2.65.72 3.4 1.8-3.12 1.87-2.38 5.98.48 7.13-.57 1.5-1.31 2.99-2.53 4.09l.01-.01zM12.03 7.25C11.88 5.02 13.69 3.18 15.77 3c.29 2.58-2.34 4.5-3.74 4.25z'/%3E%3C/svg%3E") center/contain no-repeat;
 mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.05 20.28c-.98.95-2.05.8-3.08.35-1.09-.46-2.09-.48-3.24 0-1.44.62-2.2.44-3.06-.35C2.79 15.25 3.51 7.59 9.04 7.31c1.35.07 2.29.77 3.08.83 1.18-.24 2.31-.96 3.57-.87 1.51.12 2.65.72 3.4 1.8-3.12 1.87-2.38 5.98.48 7.13-.57 1.5-1.31 2.99-2.53 4.09l.01-.01zM12.03 7.25C11.88 5.02 13.69 3.18 15.77 3c.29 2.58-2.34 4.5-3.74 4.25z'/%3E%3C/svg%3E") center/contain no-repeat;
 color:inherit!important;
}
html:root body .auth-card [data-google-auth-fallback-button]::before {content:none!important}
html:root body :is(.auth-card,.admin-entry) [data-apple-auth-status] {font-size:1rem;line-height:1.5;color:#43546a!important;overflow-wrap:anywhere}
html:root body :is(.auth-card,.admin-entry) [data-apple-auth-status][data-status=error] {color:#8b202b!important}
@media(max-width:760px) {
 html:root body :is(.search-panel,.filter-panel,.empty-state,.loading-state){min-width:0;max-width:100%;padding:16px}
 html:root body :is(.search-form,.filter-form){min-width:0}
 html:root body :is(.search-form,.filter-form) .form-field{min-width:0}
 html:root body :is(.auth-card,.admin-entry) button{min-height:44px}
}
html:root body .auth-card [data-google-auth-fallback-button]::before {
 content:""!important;display:inline-block;width:20px;height:20px;margin-right:10px;vertical-align:middle;
 background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%234285F4' d='M43.6 24.5c0-1.5-.1-2.9-.4-4.3H24v8.1h11a9.4 9.4 0 0 1-4.1 6.2v5.2h6.7c3.9-3.6 6-8.9 6-15.2z'/%3E%3Cpath fill='%2334A853' d='M24 44c5.4 0 9.9-1.8 13.2-4.8l-6.7-5.2c-1.8 1.2-4 1.9-6.5 1.9-5.2 0-9.6-3.5-11.2-8.2H5.9v5.4A20 20 0 0 0 24 44z'/%3E%3Cpath fill='%23FBBC05' d='M12.8 27.7a12 12 0 0 1 0-7.4v-5.4H5.9a20 20 0 0 0 0 18.2z'/%3E%3Cpath fill='%23EA4335' d='M24 12.1c2.9 0 5.5 1 7.5 2.9l5.6-5.6A19 19 0 0 0 24 4 20 20 0 0 0 5.9 14.9l6.9 5.4C14.4 15.6 18.8 12.1 24 12.1z'/%3E%3C/svg%3E") center/contain no-repeat!important;
}
