/* Shared logo geometry across the home, catalogues and property detail pages. */
:root{--ec-header-gutter:40px}
body.ec-home .site-header:not(.is-scrolled),body.ec-home .site-header.is-scrolled,body.ec-inner .site-header{max-width:1600px;width:100%;margin-inline:auto;padding:24px var(--ec-header-gutter);min-height:98px;align-items:center;box-sizing:border-box}
body .site-header .wordmark{flex:0 0 auto;margin-left:0;margin-right:auto}
body .site-header .wordmark img.ec-brand-logo.ec-v0-brand{display:block;width:244px;height:auto;max-width:100%}
body .site-header .main-nav{font-size:13px;gap:20px}
@media(max-width:1100px){:root{--ec-header-gutter:28px}}
@media(max-width:1280px){
 body .site-header .menu-toggle{display:flex;align-items:center;gap:12px;background:transparent;color:inherit;padding:10px 0;min-height:44px}
 body .site-header .main-nav{display:none;position:absolute;left:0;right:0;top:100%;padding:24px var(--ec-header-gutter);background:var(--ivory);color:var(--ink);flex-direction:column;align-items:stretch;gap:8px;max-height:calc(100svh - 98px);overflow-y:auto}
 body .site-header .main-nav.is-open{display:flex}
 body .site-header .main-nav>a{display:flex;align-items:center;min-height:44px}
 body .site-header .nav-dropdown{position:static}
}
@media(max-width:640px){
 body.ec-home .site-header:not(.is-scrolled),body.ec-home .site-header.is-scrolled,body.ec-inner .site-header{padding:18px 24px;min-height:84px}
 body .site-header .wordmark img.ec-brand-logo.ec-v0-brand{width:205px}
}

/* Keep the personal identity anchored through reload and restored scroll positions. */
body.ec-home .site-header:not(.is-scrolled),body.ec-home .site-header.is-scrolled{position:fixed;top:0;left:0;right:0;height:98px;border-bottom-width:1px;border-bottom-style:solid;transition:background-color 180ms,color 180ms}
body .site-header .wordmark img.ec-brand-logo.ec-v0-brand{height:45px;object-fit:contain;object-position:left center}
body.ec-home .ec-panorama .ec-panorama-copy{left:max(var(--ec-header-gutter),calc((100% - 1600px)/2 + var(--ec-header-gutter)));right:var(--ec-header-gutter)}
@media(max-width:640px){:root{--ec-header-gutter:24px}body.ec-home .site-header:not(.is-scrolled),body.ec-home .site-header.is-scrolled{height:84px}body .site-header .wordmark img.ec-brand-logo.ec-v0-brand{height:37.8px}}
/* Laptop-width desktops retain a compact navigation row instead of a premature Menu toggle. */
@media(min-width:1101px) and (max-width:1280px){
 :root{--ec-header-gutter:24px}
 body.ec-home .site-header,body.ec-inner .site-header{padding-inline:24px;gap:20px}
 body.ec-home .site-header .menu-toggle,body.ec-inner .site-header .menu-toggle{display:none}
 body.ec-home .site-header .wordmark img.ec-brand-logo.ec-v0-brand,body.ec-inner .site-header .wordmark img.ec-brand-logo.ec-v0-brand{width:220px;height:40.6px}
 body.ec-home .site-header .main-nav,body.ec-inner .site-header .main-nav{display:flex;position:static;left:auto;right:auto;top:auto;padding:0;background:transparent;color:inherit;flex-direction:row;align-items:center;gap:12px;font-size:12px;max-height:none;overflow:visible}
 body.ec-home .site-header .nav-dropdown,body.ec-inner .site-header .nav-dropdown{position:absolute;top:100%;right:0;left:auto}
 body .site-header .main-nav .nav-contact{padding:10px 12px;white-space:nowrap}
 body .site-header .main-nav .ec-language-select{max-width:100px}
}

/* Catalog filters and results share the header content frame. */
body .catalog-section.catalog-browse{width:100%;max-width:1600px;margin-inline:auto;padding-inline:var(--ec-header-gutter)}
body .catalog-browse>.coast-catalog-filters{width:100%;max-width:none;margin-inline:0}

/* Home content shares the exact header-logo gutter at every breakpoint. */
body.ec-home{--ec-page-gutter:var(--ec-header-gutter)}
body.ec-home :is(.coast-about,.coast-outlook,.coast-journal,.coast-intro,.coast-atlas-inner,.ec-home-featured,.contact-section){width:100%;max-width:1600px;margin-inline:auto;padding-inline:var(--ec-header-gutter);box-sizing:border-box}
body.ec-home .coast-about-photo{grid-column:1/6;margin-inline:0;justify-self:start}
@media(min-width:641px) and (max-width:850px){body.ec-home.ec-refined-home .coast-about-photo{grid-column:1}}

/* Keep the pinned navigation transparent instead of adding a dark scroll-state panel. */
body.ec-home .site-header:not(.is-scrolled),body.ec-home .site-header.is-scrolled{background:transparent!important;box-shadow:none!important;backdrop-filter:none!important;border-bottom:0!important;animation:none!important;transition:none!important}
body.ec-home .site-header::before,body.ec-home .site-header::after{background:transparent!important;box-shadow:none!important}
body.ec-home :is(#about,#outlook,#communities,#journal,#contact,#edith-listings){scroll-margin-top:110px}

/* Only navigation persists on scroll; the identity remains at the page's original top. */
body.ec-home .site-header:not(.is-scrolled),body.ec-home .site-header.is-scrolled{position:absolute!important;top:0!important;left:0;right:0}
@media(min-width:1101px){body.ec-home .site-header.is-scrolled .main-nav{position:fixed!important;top:24px!important;right:max(var(--ec-header-gutter),calc((100vw - 1600px)/2 + var(--ec-header-gutter)))!important;left:auto!important;width:auto!important;max-width:calc(100vw - 2 * var(--ec-header-gutter));z-index:100;background:transparent!important;padding:0!important}}
@media(max-width:1100px){body.ec-home .site-header.is-scrolled .menu-toggle{position:fixed;top:20px;right:var(--ec-header-gutter);z-index:101}body.ec-home .site-header.is-scrolled .main-nav.is-open{position:fixed;top:84px;left:0;right:0}}

body .site-header .ec-client-menu>summary,body .site-header #ec-language-select{border:0!important;background:transparent!important;box-shadow:none!important}

/* Consistent borderless header controls, including open and focus states. */
body .site-header .main-nav #ec-language-select,body .site-header .main-nav #ec-language-select:focus,body .site-header .main-nav #ec-language-select:focus-visible,body .site-header .main-nav .ec-client-menu>summary,body .site-header .main-nav .ec-client-menu>summary:focus,body .site-header .main-nav .ec-client-menu>summary:focus-visible{border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important}
body .site-header .main-nav #ec-language-select:focus-visible,body .site-header .main-nav .ec-client-menu>summary:focus-visible{text-decoration:underline;text-underline-offset:5px}
body .site-header .main-nav .ec-client-menu>summary{display:inline-flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:12px;line-height:1.2;white-space:nowrap}
body .site-header .main-nav .ec-client-menu>summary>span{position:static!important;display:block!important;flex:0 0 6px!important;align-self:center!important;width:6px!important;height:6px!important;min-height:0!important;margin:0!important;padding:0!important;font-size:0!important;line-height:0!important;border:0;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateY(-2px) rotate(45deg)}

/* A compact personal introduction with one clear consultation action. */
body.ec-home .coast-about{padding-block:64px;column-gap:40px;row-gap:28px}
body.ec-home .coast-about-photo{width:100%;max-width:380px}
body.ec-home .coast-about-photo img{aspect-ratio:4/5;object-fit:cover;object-position:center 22%}
body.ec-home .coast-about-copy{gap:16px}
body.ec-home .coast-about-copy>h2{font-size:clamp(34px,3.5vw,50px);line-height:1.12;margin:0}
body.ec-home .coast-about-copy>p{line-height:1.7;margin:0;max-width:50ch}
body.ec-home .coast-about-copy .ec-about-signoff{gap:4px;margin-top:4px}
body.ec-home .coast-about-copy>.ec-about-consultation{display:inline-flex;align-items:center;min-height:40px;margin:0}
@media(max-width:640px){body.ec-home .coast-about{padding-block:40px;gap:28px}body.ec-home .coast-about-photo{width:76%;max-width:300px}body.ec-home .coast-about-copy{gap:14px}}

.property-card .property-facts>.property-floor{display:block;margin-top:3px}

/* Keep consultation link to one underline. */
body.ec-home .coast-about-copy>.ec-about-consultation{text-decoration:none}

/* Header CTA follows the selected brand accent on every page. */
html[data-ec-accent] body .site-header .main-nav .nav-contact{background:var(--ec-choice-hero,var(--ec-choice));color:#1d1c1a;border-color:var(--ec-choice-hero,var(--ec-choice))}
html[data-ec-accent] body .site-header .main-nav .nav-contact:hover{background:var(--ec-choice-hero,var(--ec-choice));color:#1d1c1a;filter:brightness(.94)}
/* Short pages keep the footer at the bottom without overlaying content. */
body:not(.wp-admin){min-height:100svh;display:flex;flex-direction:column}body>main{flex:1 0 auto}body>.site-footer{margin-top:auto;width:100%}

/* One close control geometry for all public-facing dialogs. */
body dialog>header,body dialog>form>header{max-width:none!important;width:100%;margin:0!important;padding-inline-end:76px!important;min-height:76px;box-sizing:border-box;position:static!important}
body .coast-gallery-dialog>div:first-child{padding-inline-end:76px}
body dialog :is([data-mri-close],[data-mrai-close],[data-mrm-close],[data-ec-dialog-close],[data-ec-login-close],[data-coast-gallery-close],[data-ec-advanced-close],[data-journal-close],[data-ec-viewing-close]){position:absolute!important;top:16px!important;right:16px!important;left:auto!important;bottom:auto!important;inset-inline-end:16px!important;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;max-width:44px!important;margin:0!important;padding:0!important;float:none!important;display:grid!important;place-items:center!important;border:0!important;border-radius:0!important;box-sizing:border-box!important;background:var(--ivory,#f2eee6)!important;color:var(--ink,#1d1c1a)!important;font-size:0!important;line-height:1!important;z-index:10;cursor:pointer}
body dialog :is([data-mri-close],[data-mrai-close],[data-mrm-close],[data-ec-dialog-close],[data-ec-login-close],[data-coast-gallery-close],[data-ec-advanced-close],[data-journal-close],[data-ec-viewing-close])::before,body dialog :is([data-mri-close],[data-mrai-close],[data-mrm-close],[data-ec-dialog-close],[data-ec-login-close],[data-coast-gallery-close],[data-ec-advanced-close],[data-journal-close],[data-ec-viewing-close])::after{content:"";position:absolute;width:18px;height:1.5px;background:currentColor;transform:rotate(45deg)}
body dialog :is([data-mri-close],[data-mrai-close],[data-mrm-close],[data-ec-dialog-close],[data-ec-login-close],[data-coast-gallery-close],[data-ec-advanced-close],[data-journal-close],[data-ec-viewing-close])::after{transform:rotate(-45deg)}
body dialog :is([data-mri-close],[data-mrai-close],[data-mrm-close],[data-ec-dialog-close],[data-ec-login-close],[data-coast-gallery-close],[data-ec-advanced-close],[data-journal-close],[data-ec-viewing-close]):hover{color:var(--ec-choice,var(--ink))!important}

body>.site-footer{flex:0 0 auto;position:relative;inset:auto;order:0;margin-top:auto;width:100%;box-sizing:border-box}
body.mr-client-portal>.site-footer{max-width:1600px;margin-inline:auto;padding-inline:var(--ec-header-gutter,40px);font-size:14px;color:var(--ink)}
body.mr-client-portal>.site-footer p{max-width:none}

/* Keep the home hero free of the playback control. */
body.ec-home [data-panorama-pause],body.ec-home [data-hero-pause],body.ec-home .slide-pause{display:none!important}

/* Small editorial image note, separated from the main contact information. */
.site-footer .footer-notes{flex-direction:column;align-items:flex-start;gap:6px}
.site-footer .footer-notes .footer-image-note{display:block;flex-basis:100%;margin:4px 0 0;max-width:none;font-size:11px;line-height:17px;color:var(--stone,var(--secondary));font-weight:400;letter-spacing:0}

/* Footer content shares the header's right edge on wide screens (background stays full width). */
body>.site-footer.site-footer{padding-inline:max(var(--ec-header-gutter,40px),calc((100% - 1600px)/2 + var(--ec-header-gutter,40px)))}
/* Site primary colour: the visitor's accent, or gold when the accent is the neutral default (same rule as pagination and Sold). */
:root{--ec-primary:var(--ec-choice,#79550f);--ec-primary-ink:var(--ec-choice-ink,#fff)}
html:not([data-ec-accent]){--ec-primary:#79550f;--ec-primary-ink:#fff}
html[data-ec-appearance=dark]:not([data-ec-accent]){--ec-primary:#d7b77c;--ec-primary-ink:#1d1c1a}

/* Top navigation: one font, size and weight for every item (links, client menu, login, language), even spacing. The Get in touch button keeps its existing accent styling. */
.site-header .main-nav>a,.site-header .main-nav .ec-client-menu>summary,.site-header .main-nav .ec-login-trigger,.site-header .main-nav .language-switch,.site-header .main-nav .language-switch select{font:400 15px/1.4 Manrope,"Microsoft YaHei","PingFang SC",sans-serif;letter-spacing:normal;text-transform:none}
.site-header .main-nav .ec-client-menu>summary{padding:0 14px 0 0;background:none;border:0}
.site-header .main-nav .language-switch select{padding:8px 18px 8px 0;background-color:transparent}

/* Client account pages: primary colour for the selected tab, current section and main buttons. */
body.mr-client-portal .mrm-tabs [aria-pressed=true],html[data-ec-appearance=dark] body.mr-client-portal .mrm-tabs [aria-pressed=true]{background:var(--ec-primary);border-color:var(--ec-primary);color:var(--ec-primary-ink)}
body.mr-client-portal main button:not([aria-pressed]):not(.mrm-secondary):hover,body.mr-client-portal main .button:hover,body.mr-client-portal .mrm-tabs button[aria-pressed=false]:hover{background:transparent;border-color:var(--ec-primary);color:var(--ec-primary)}
body.mr-client-portal .account-nav a[aria-current=page]{border-bottom-color:var(--ec-primary);color:var(--ec-primary)}
body.mr-client-portal .account-nav a:hover{color:var(--ec-primary)}
body.mr-client-portal main form button[type=submit],body.mr-client-portal main .form-panel button,html[data-ec-appearance=dark] body.mr-client-portal main .form-panel button{background:var(--ec-primary);border-color:var(--ec-primary);color:var(--ec-primary-ink)}
body.mr-client-portal main form button[type=submit]:hover,body.mr-client-portal main .form-panel button:hover{background:var(--ec-primary);color:var(--ec-primary-ink);filter:brightness(1.08)}
body.mr-client-portal main :is(a,button,input,select,textarea):focus-visible{outline-color:var(--ec-primary)}
/* Current page in the top navigation: text only (no underline) in the site's current accent (follows the visitor's choice: blue, gold, …). */
.site-header .main-nav>a[aria-current=page],html[data-ec-accent] .site-header .main-nav>a[aria-current=page]{color:var(--ec-primary);box-shadow:none;text-decoration:none;border-bottom:0}
.site-header .main-nav>a:not(.nav-contact):hover{color:var(--ec-primary)}

/* Client account pages use the normal site footer typography (the portal's own body/footer rules made it 14px). */
body.mr-client-portal>footer.site-footer{max-width:none;font-size:16px;line-height:1.65}

/* Meet Edith page (?mr_section=mr_about): same section styling as on the homepage. */
body.ec-about-page :is(.coast-about){width:100%;max-width:1600px;margin-inline:auto;padding-inline:var(--ec-header-gutter);box-sizing:border-box}
body.ec-about-page .coast-about{padding-block:64px;column-gap:40px;row-gap:28px}
body.ec-about-page .coast-about-copy{gap:16px}
body.ec-about-page .coast-about-copy>h2{font-size:clamp(34px,3.5vw,50px);line-height:1.12;margin:0}
body.ec-about-page .coast-about-copy>p{line-height:1.7;margin:0;max-width:50ch}
body.ec-about-page .coast-about-copy .ec-about-signoff{gap:4px;margin-top:4px}
body.ec-about-page .coast-about-copy>.ec-about-consultation{display:inline-flex;align-items:center;min-height:40px;margin:0}
@media(min-width:641px) and (max-width:850px){body.ec-about-page .coast-about-photo{grid-column:1}}
@media(max-width:640px){body.ec-about-page .coast-about{padding-block:40px;gap:28px}body.ec-about-page .coast-about-photo{width:76%;max-width:300px}body.ec-about-page .coast-about-copy{gap:14px}body.ec-about-page .coast-about-copy>.ec-about-consultation{text-decoration:none}}
/* Narrow desktops: keep the larger menu on one line without horizontal scrolling. */
@media(min-width:1101px) and (max-width:1279px){.site-header .main-nav>a,.site-header .main-nav .ec-client-menu>summary,.site-header .main-nav .ec-login-trigger,.site-header .main-nav .language-switch,.site-header .main-nav .language-switch select{font-size:14px}}
/* --ec-accent was only defined on the homepage, so dialogs and widgets elsewhere fell back to a hard-coded blue (#9cc7ff).
   Define it site-wide as the light variant of the visitor's accent (these places pair it with dark text). */
:root{--ec-accent:var(--ec-choice-hero,#d7b77c)}
html:not([data-ec-accent]){--ec-accent:#d7b77c}
/* Custom language picker (assets/language-menu.js): native select hidden once enhanced; items left-aligned; accent on hover/selected. */
/* Server renders both; the head script adds html.ec-js before first paint, so exactly one shows and nothing reflows. */
html.ec-js label:has(+ .ec-lang){display:none!important}
html:not(.ec-js) .ec-lang{display:none!important}
.ec-lang{position:relative;display:inline-flex}
.ec-lang-button{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:8px 0;border:0;background:transparent;color:inherit;font:400 15px/1.4 Manrope,"Microsoft YaHei","PingFang SC",sans-serif;cursor:pointer}
.ec-lang-button:hover,.ec-lang-button[aria-expanded=true]{color:var(--ec-primary)}
.ec-lang-button:focus-visible{outline:2px solid var(--ec-primary);outline-offset:3px}
.ec-lang-button svg{transition:transform .15s ease}.ec-lang-button[aria-expanded=true] svg{transform:rotate(180deg)}
.ec-lang-list{position:absolute;top:calc(100% + 6px);right:0;z-index:120;min-width:190px;max-height:min(60vh,420px);overflow:auto;margin:0;padding:6px 0;list-style:none;background:var(--ivory);border:1px solid var(--line);box-shadow:0 12px 30px rgba(0,0,0,.18)}
.ec-lang-list[hidden]{display:none}
.ec-lang-list li{display:block;padding:10px 18px;text-align:left;color:var(--ink);font:400 15px/1.4 Manrope,"Microsoft YaHei","PingFang SC",sans-serif;cursor:pointer;white-space:nowrap}
.ec-lang-list li:hover,.ec-lang-list li:focus{color:var(--ec-primary);background:color-mix(in srgb,var(--ec-primary) 10%,transparent);outline:none}
.ec-lang-list li[aria-selected=true]{color:var(--ec-primary);font-weight:600}
@media(min-width:1101px) and (max-width:1279px){.ec-lang-button{font-size:14px}}
@media(max-width:1100px){.ec-lang-list{right:auto;left:0}}

/* Login / register / reset dialogs: links in the visitor's accent colour. */
#ec-login-dialog a:not(.button),#mr-register-dialog a:not(.button),body.mr-client-portal main .form-panel a:not(.button){color:var(--ec-primary);text-decoration-color:var(--ec-primary)}
#ec-login-dialog a:not(.button):hover,#mr-register-dialog a:not(.button):hover{filter:brightness(1.1)}
/* Meet Edith page: identical header to the other inner pages (the homepage refinement class must not change it). */
body.ec-about-page .site-header,body.ec-about-page.ec-refined-home .site-header{padding:24px var(--ec-header-gutter,40px);border-bottom:1px solid var(--line);background:var(--ivory)}

/* Dialog/form dropdowns (assets/ec-select.js): accent highlight instead of the browser's blue. */
.ec-select{position:relative;display:block;width:100%}
.ec-select-native{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;opacity:0!important;pointer-events:none!important}
.ec-select-button{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;box-sizing:border-box;text-align:left;cursor:pointer}
.ec-select-button:disabled{cursor:not-allowed;opacity:.55}
.ec-select.is-placeholder .ec-select-value{opacity:.7}
.ec-select-value{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ec-select-button svg{flex-shrink:0;transition:transform .15s ease}.ec-select-button[aria-expanded=true] svg{transform:rotate(180deg)}
.ec-select-list{position:absolute;left:0;right:0;top:calc(100% + 4px);z-index:50;max-height:260px;overflow:auto;margin:0;padding:6px 0;list-style:none;background:var(--ivory,#f2eee6);color:var(--ink,#1d1c1a);border:1px solid var(--line,#d3cbbd);box-shadow:0 12px 30px rgba(0,0,0,.2)}
.ec-select-list[hidden]{display:none}
.ec-select-list li{padding:10px 14px;cursor:pointer;font:inherit;font-size:14px;line-height:1.4}
.ec-select-list li:hover,.ec-select-list li:focus{outline:none;background:color-mix(in srgb,var(--ec-primary) 14%,transparent);color:var(--ec-primary)}
.ec-select-list li[aria-selected=true]{color:var(--ec-primary);font-weight:600}
.ec-select-list li[aria-disabled=true]{opacity:.45;cursor:default}

/* One focus ring for all front-end fields and buttons: the visitor's accent (no white or browser-blue rings). */
html body :is(main,dialog,.site-header,.site-footer,.mrs-form,#mr-interests,#mr-ai-widget) :is(input,select,textarea,button,a,[tabindex]):focus-visible{outline:2px solid var(--ec-primary)!important;outline-offset:2px;box-shadow:none}
html body :is(main,dialog,.mrs-form) :is(input,select,textarea):focus{border-color:var(--ec-primary)}
html body :is(main,dialog,.mrs-form) :is(input[type=checkbox],input[type=radio]){accent-color:var(--ec-primary)}

/* Appointment calendar: selected day in the accent colour. */
html body .mrs-calendar-grid button[aria-pressed=true]{background:var(--ec-primary);border-color:var(--ec-primary);color:var(--ec-primary-ink)}
html body .mrs-calendar button:not(:disabled):hover{border-color:var(--ec-primary)}

/* Language button: no box on any page (the portal's generic button rules gave it a fill). */
.site-header .ec-lang-button,.site-header .ec-lang-button:hover,body.mr-client-portal .site-header .ec-lang-button{background:transparent!important;border:0!important;box-shadow:none!important;color:inherit}

/* Client portal notices: inline and subtle, readable in light and dark (no big ivory blocks). */
body.mr-client-portal main .notice,html[data-ec-appearance=dark] body.mr-client-portal main .notice{max-width:none;margin:0 0 18px;padding:10px 14px;background:color-mix(in srgb,var(--ec-primary) 10%,transparent);border-left:3px solid var(--ec-primary);color:var(--ink);font-size:14px;line-height:1.5}
body.mr-client-portal main .notice-error,html[data-ec-appearance=dark] body.mr-client-portal main .notice-error{background:color-mix(in srgb,#c0392b 12%,transparent);border-left-color:#c0392b}
html[data-ec-appearance=dark] body.mr-client-portal main .notice-error{border-left-color:#ff8a80}

/* Sign-in / register / verify screens: balanced, centred card with theme fields and the accent button. */
body.mr-client-portal main:has(.mr-login-card),body.mr-client-portal main:has(#mr-registration-form),body.mr-client-portal main:has(.form-panel){display:flex;flex-direction:column;align-items:center}
body.mr-client-portal main:has(.form-panel)>:is(h1,.account-nav,.form-panel,.mr-login-alt,.notice){width:100%;max-width:520px;box-sizing:border-box}
body.mr-client-portal main:has(.form-panel)>h1{text-align:center;margin:12px 0 18px}
body.mr-client-portal main:has(.form-panel)>.account-nav,body.mr-client-portal main:has(.form-panel)>.account-nav:is(*){float:none!important;display:flex;justify-content:center;gap:8px;margin:28px auto 0!important;width:auto}
body.mr-client-portal main .form-panel,html[data-ec-appearance=dark] body.mr-client-portal main .form-panel{padding:28px;background:var(--ivory-deep,#e8e2d7);border:1px solid var(--line)}
body.mr-client-portal main .form-panel label{display:block;margin:0 0 14px;font-size:13px;color:var(--stone)}
body.mr-client-portal main .form-panel :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea),html[data-ec-appearance=dark] body.mr-client-portal main .form-panel :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){display:block;width:100%;max-width:none;box-sizing:border-box;min-height:46px;margin-top:6px;padding:10px 12px;background:var(--ivory)!important;color:var(--ink)!important;border:1px solid var(--line)!important;border-radius:0;font:15px/1.4 Manrope,"Microsoft YaHei",sans-serif}
body.mr-client-portal main .form-panel button[type=submit]{width:100%;min-height:48px;margin-top:8px;font-weight:600}
body.mr-client-portal main .form-panel .mr-forgot-link,body.mr-client-portal main .mr-login-alt a{color:var(--ec-primary);text-decoration:none;font-weight:600}
body.mr-client-portal main .form-panel .mr-forgot-link:hover,body.mr-client-portal main .mr-login-alt a:hover{text-decoration:underline}
body.mr-client-portal main .form-panel>p{margin:14px 0 0;font-size:14px;text-align:center}
body.mr-client-portal main .mr-login-alt{margin:16px 0 0;text-align:center;font-size:14px;color:var(--stone)}

/* Show/hide password (assets/password-toggle.js). */
.ec-pw{position:relative;display:block}
.ec-pw>input{padding-right:46px!important}
.ec-pw-toggle{position:absolute;top:50%;right:6px;transform:translateY(-50%);display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;padding:0!important;border:0!important;background:transparent!important;color:var(--stone)!important;cursor:pointer;box-shadow:none!important;min-height:0!important}
.ec-pw-toggle:hover,.ec-pw-toggle[aria-pressed=true]{color:var(--ec-primary)!important}
.ec-pw-toggle:focus-visible{outline:2px solid var(--ec-primary)!important;outline-offset:0}
.ec-pw-toggle svg{width:20px;height:20px;display:block}
/* Win over the dark-theme portal rule in appearance.css (its :is() list carries high specificity). */
body.mr-client-portal main .form-panel button[type=submit]{background:var(--ec-primary)!important;border-color:var(--ec-primary)!important;color:var(--ec-primary-ink)!important}
body.mr-client-portal main .notice{background:color-mix(in srgb,var(--ec-primary) 10%,transparent)!important;color:var(--ink)!important}
body.mr-client-portal main .notice-error{background:color-mix(in srgb,#c0392b 14%,transparent)!important}
body.mr-client-portal main .form-panel{background:var(--ivory-deep)!important}
body.mr-client-portal main .mrm-tabs [aria-pressed=true]{background:var(--ec-primary)!important;border-color:var(--ec-primary)!important;color:var(--ec-primary-ink)!important}
/* Header Login link: no button fill on portal pages. Password eye centred on the field. */
.site-header .ec-login-trigger,body.mr-client-portal .site-header .ec-login-trigger{background:transparent!important;border:0!important;box-shadow:none!important;color:inherit!important;padding:0!important}
.site-header .ec-login-trigger:hover{color:var(--ec-primary)!important}
.ec-pw{margin-top:6px}
.ec-pw>input{margin-top:0!important}
/* Language list: compact rows sized to the content (kevin: too wide). */
.ec-lang-list{min-width:0!important;width:max-content;padding:4px 0!important}
.ec-lang-list li{padding:6px 14px!important;min-height:32px;box-sizing:border-box;display:flex!important;align-items:center;font-size:15px!important;line-height:20px!important}
@media(min-width:1101px) and (max-width:1279px){.ec-lang-list li{font-size:14px!important}}
/* Highlighted list rows show the accent tint only (no focus-ring lines). */
html body :is(.ec-select-list,.ec-lang-list,#ec-specificity) li[role=option]:focus-visible,html body :is(.ec-select-list,.ec-lang-list,#ec-specificity) li[role=option]:focus{outline:none!important}

/* The hidden native control must never summon a platform-painted popup through a label. */
html body select.ec-select-native{display:none!important}
html body .ec-select-list[hidden],html body .ec-lang-list[hidden]{display:none!important}
html body :is(.ec-select-list,.ec-lang-list) [role=option]{-webkit-tap-highlight-color:transparent;forced-color-adjust:none}
html body :is(.ec-select-list,.ec-lang-list) [role=option]:is(:hover,:focus,[aria-selected=true]){background:transparent!important;color:var(--ink,#1d1c1a)!important;outline:none!important}
html body :is(.ec-select-list,.ec-lang-list) [role=option][aria-selected=true]{color:var(--ec-primary,#79550f)!important;font-weight:600}
html body :is(.ec-select-list,.ec-lang-list) [role=option].is-active{background:var(--ec-primary,#79550f)!important;color:var(--ec-primary-ink,#fff)!important;outline:none!important}
html.ec-js select[name="mr_frontend_language"]{display:none!important}

html body.ec-transition-pending :is(.ec-select-list,.ec-lang-list){display:none!important;pointer-events:none!important}
