/* My Home Albania v4.2.87 — canonical UI theme authority
   Scope: Light/Dark contrast + responsive layout only. No business logic. */
:root{
  --mha-gold:#efbd58;--mha-gold-strong:#d9a63f;--mha-green:#1f6f57;--mha-danger:#b84545;
  --mha-radius:16px;--mha-radius-sm:12px;
}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;overflow-x:hidden}
body{min-width:0;max-width:100%;overflow-x:hidden}
*,*::before,*::after{box-sizing:border-box}
img,video,iframe,canvas,svg{max-width:100%}

/* Theme tokens */
html[data-mha-theme="dark"],body[data-mha-theme="dark"],body.mha-dark{
  --mha-bg:#07131f;--mha-bg-2:#081a28;--mha-sidebar:#071824;
  --mha-surface:#0d2232;--mha-surface-2:#10283a;--mha-surface-3:#153247;
  --mha-text:#f5efe6;--mha-text-strong:#fffaf1;--mha-soft:#d3dde4;--mha-muted:#a9bac5;
  --mha-line:#2a485b;--mha-line-soft:#203a4b;--mha-input:#081b29;
  --mha-positive-bg:#10352b;--mha-positive:#80d7b6;--mha-warning-bg:#3b311d;--mha-warning:#f3c767;
  --mha-shadow:none;color-scheme:dark;
}
html[data-mha-theme="light"],body[data-mha-theme="light"],body.mha-light{
  --mha-bg:#f4f6f5;--mha-bg-2:#eef3f0;--mha-sidebar:#fbfcfb;
  --mha-surface:#ffffff;--mha-surface-2:#f7faf8;--mha-surface-3:#eef5f1;
  --mha-text:#172a24;--mha-text-strong:#10231d;--mha-soft:#40574f;--mha-muted:#6c7f77;
  --mha-line:#d7e2dd;--mha-line-soft:#e7eeea;--mha-input:#ffffff;
  --mha-positive-bg:#eaf7f1;--mha-positive:#236c55;--mha-warning-bg:#fff5dd;--mha-warning:#86621c;
  --mha-shadow:0 10px 28px rgba(20,45,37,.07);color-scheme:light;
}
body[data-mha-theme]{background:var(--mha-bg)!important;color:var(--mha-text)!important}

/* Canonical surfaces */
body[data-mha-theme] :where(
  .panel,.portal-card,.dashboard-card,.settings-card,.money-card,.mha-card,.mha-dash-panel,.mha-calm-card,
  .mha-guest-card,.mha-guest-booking-card,.owner-proof-card,.owner-maint-card,.owner-contract-card,
  .mha-modal-card,.mha-header-popover,.mha-econ-card,.mha-kpi,.portal-stats>article,.finance-model>div,
  .mha-payment-choice,.mha-pay-option,.mha-payer-box,.mha-booking-terms,.mha-direct-compare-card,
  .mha-direct-trust-card,.mha-direct-quote,.mha-availability-card,.mha-online-payments,.mha-provider-choice,
  .mha-direct-booking,.mha-direct-form,.mha-deposit-preview,.mha-bank-admin,.mha-wa-api,.mha-channel-api,
  .empty,.mha-empty-mini,.notice,.mha-zero-block-note
){min-width:0!important;max-width:100%!important;border-color:var(--mha-line)!important;color:var(--mha-text)!important}

body[data-mha-theme="dark"] :where(
  .panel,.portal-card,.dashboard-card,.settings-card,.money-card,.mha-card,.mha-dash-panel,.mha-calm-card,
  .mha-guest-card,.mha-guest-booking-card,.owner-proof-card,.owner-maint-card,.owner-contract-card,
  .mha-modal-card,.mha-header-popover,.mha-econ-card,.mha-kpi,.portal-stats>article,.finance-model>div,
  .mha-payment-choice,.mha-payer-box,.mha-booking-terms,.mha-direct-compare-card,.mha-direct-trust-card,
  .mha-direct-quote,.mha-availability-card,.mha-online-payments,.mha-provider-choice,.mha-direct-booking,
  .mha-direct-form,.mha-deposit-preview,.mha-bank-admin,.mha-wa-api,.mha-channel-api,.empty,.mha-empty-mini
){background:var(--mha-surface)!important;background-image:none!important;box-shadow:none!important}

body[data-mha-theme="light"] :where(
  .panel,.portal-card,.dashboard-card,.settings-card,.money-card,.mha-card,.mha-dash-panel,.mha-calm-card,
  .mha-guest-card,.mha-guest-booking-card,.owner-proof-card,.owner-maint-card,.owner-contract-card,
  .mha-modal-card,.mha-header-popover,.mha-econ-card,.mha-kpi,.portal-stats>article,.finance-model>div,
  .mha-payment-choice,.mha-payer-box,.mha-booking-terms,.mha-direct-compare-card,.mha-direct-trust-card,
  .mha-direct-quote,.mha-availability-card,.mha-online-payments,.mha-provider-choice,.mha-direct-booking,
  .mha-direct-form,.mha-deposit-preview,.mha-bank-admin,.mha-wa-api,.mha-channel-api,.empty,.mha-empty-mini
){background:var(--mha-surface)!important;background-image:none!important;box-shadow:var(--mha-shadow)!important}

/* Neutralize old inline light cards in authenticated dashboards. */
body[data-mha-theme="dark"] .portal-main :where(div,section,article,form)[style*="background:#fff"],
body[data-mha-theme="dark"] .portal-main :where(div,section,article,form)[style*="background: #fff"],
body[data-mha-theme="dark"] .portal-main :where(div,section,article,form)[style*="background:#f4"],
body[data-mha-theme="dark"] .portal-main :where(div,section,article,form)[style*="background: #f4"],
body[data-mha-theme="dark"] .portal-main :where(div,section,article,form)[style*="background:#f8"],
body[data-mha-theme="dark"] .portal-main :where(div,section,article,form)[style*="background: #f8"],
body[data-mha-theme="dark"] .portal-main :where(div,section,article,form)[style*="background:#fa"],
body[data-mha-theme="dark"] .portal-main :where(div,section,article,form)[style*="background: #fa"]{
  background:var(--mha-surface-2)!important;background-image:none!important;color:var(--mha-text)!important;border-color:var(--mha-line)!important;
}

/* Typography */
body[data-mha-theme] :where(.portal-main,.panel,.portal-card,.mha-card,.mha-dash-panel,.mha-guest-card,.mha-guest-booking-card,.mha-modal-card,.mha-direct-booking,.mha-payment-choice,.mha-payer-box,.mha-booking-terms) :where(h1,h2,h3,h4,h5,h6,strong,b,label,legend,th){color:var(--mha-text-strong)!important;opacity:1!important;text-shadow:none!important}
body[data-mha-theme] :where(.portal-main,.panel,.portal-card,.mha-card,.mha-dash-panel,.mha-guest-card,.mha-guest-booking-card,.mha-modal-card,.mha-direct-booking,.mha-payment-choice,.mha-payer-box,.mha-booking-terms) :where(p,small,.muted,.help,.hint,em){color:var(--mha-soft)!important;opacity:1!important;text-shadow:none!important}
body[data-mha-theme] :where(.eyebrow,.kicker,.mha-direct-kicker,.portal-head>div>small,.mha-dash-panel-head>div>small,.panel>small){color:var(--mha-gold)!important;opacity:1!important}
body[data-mha-theme] a{color:inherit}

/* Forms */
body[data-mha-theme] :where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),select,textarea){
  background:var(--mha-input)!important;color:var(--mha-text)!important;border-color:var(--mha-line)!important;box-shadow:none!important;color-scheme:inherit!important;
}
body[data-mha-theme] :where(input,select,textarea)::placeholder{color:var(--mha-muted)!important;opacity:1!important}
body[data-mha-theme] :where(input,select,textarea):focus{outline:2px solid color-mix(in srgb,var(--mha-gold) 58%,transparent)!important;outline-offset:1px!important;border-color:var(--mha-gold)!important}
body[data-mha-theme="dark"] select option{background:#081b29!important;color:#f5efe6!important}
body[data-mha-theme="light"] select option{background:#fff!important;color:#172a24!important}
body[data-mha-theme] input[type="checkbox"],body[data-mha-theme] input[type="radio"]{appearance:auto!important;-webkit-appearance:auto!important;opacity:1!important;accent-color:#2d8e70!important;filter:none!important}
body[data-mha-theme] :where(input[type="date"],input[type="datetime-local"],input[type="time"]){min-height:44px!important;font-variant-numeric:tabular-nums}

/* Tables */
body[data-mha-theme] .table-wrap,body[data-mha-theme] .nx-table-wrap{max-width:100%!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch;border-color:var(--mha-line)!important}
body[data-mha-theme] table{color:var(--mha-text)!important;background:var(--mha-surface)!important;border-color:var(--mha-line)!important}
body[data-mha-theme] table :where(th,td){border-color:var(--mha-line)!important}
body[data-mha-theme="dark"] table th{background:#10283a!important;color:#f8f2e8!important}
body[data-mha-theme="dark"] table td{background:#0d2232!important;color:#dce5ea!important}
body[data-mha-theme="light"] table th{background:#eef4f1!important;color:#17352e!important}
body[data-mha-theme="light"] table td{background:#fff!important;color:#2b4039!important}
body[data-mha-theme] table td :where(b,strong){color:var(--mha-text-strong)!important}
body[data-mha-theme] table td :where(small,.muted){color:var(--mha-muted)!important}

/* Admin shell */
body[data-mha-theme="dark"] .site-header{background:rgba(7,19,31,.97)!important;border-color:var(--mha-line)!important}
body[data-mha-theme="light"] .site-header{background:rgba(255,255,255,.97)!important;border-color:var(--mha-line)!important}
body[data-mha-theme] .portal.mha-pro>aside{background:var(--mha-sidebar)!important;border-color:var(--mha-line)!important;color:var(--mha-text)!important}
body[data-mha-theme] .portal.mha-pro>aside :where(a,button,summary,b,strong){color:var(--mha-soft)!important}
body[data-mha-theme] .portal.mha-pro>aside :where(a.active,summary.active,details[open]>summary){color:var(--mha-gold)!important}
body[data-mha-theme="dark"] .portal.mha-pro>aside :where(a.active,summary.active,details[open]>summary){background:rgba(239,189,88,.12)!important}
body[data-mha-theme="light"] .portal.mha-pro>aside :where(a.active,summary.active,details[open]>summary){background:#fff4d9!important}
body[data-mha-theme] .mha-admin-subnav a:hover{background:color-mix(in srgb,var(--mha-gold) 9%,transparent)!important}

/* Notices and semantic states */
body[data-mha-theme="dark"] :where(.notice,.cleaning-once-note,.mha-guest-lock-note,.mha-guest-cancel-box,.mha-zero-block-note){background:#10293a!important;color:#dce5ea!important;border:1px solid #315064!important}
body[data-mha-theme="light"] :where(.notice,.cleaning-once-note,.mha-guest-lock-note,.mha-guest-cancel-box,.mha-zero-block-note){background:#f6faf8!important;color:#263d35!important;border:1px solid #d8e3de!important}
.mha-zero-block-note{padding:12px 14px!important;border-radius:12px!important}
.mha-zero-block-note small{display:block!important;margin-top:4px!important;color:var(--mha-soft)!important}
.mha-zero-block-note b{color:var(--mha-text-strong)!important}
body[data-mha-theme] .status.active{background:var(--mha-positive-bg)!important;color:var(--mha-positive)!important;border-color:color-mix(in srgb,var(--mha-positive) 35%,transparent)!important}
body[data-mha-theme] .status.pending{background:var(--mha-warning-bg)!important;color:var(--mha-warning)!important;border-color:color-mix(in srgb,var(--mha-warning) 35%,transparent)!important}

/* Buttons */
body[data-mha-theme] :where(.btn,.mini-btn,button){max-width:100%;overflow-wrap:anywhere}
body[data-mha-theme] :where(.btn.primary,.mini-btn:not(.ghost):not(.danger),.nav-cta){background:var(--mha-gold)!important;border-color:var(--mha-gold)!important;color:#111b18!important}
body[data-mha-theme] :where(.btn.ghost,.mini-btn.ghost){background:transparent!important;border-color:var(--mha-line)!important;color:var(--mha-text)!important}
body[data-mha-theme] :where(.btn.danger,.mini-btn.danger){background:#8e3434!important;border-color:#a94b4b!important;color:#fff!important}
body[data-mha-theme] :where(button,.btn,.mini-btn,a){touch-action:manipulation}

/* Booking/payment */
body[data-mha-theme="dark"] .mha-pay-option{background:#081b29!important;border-color:#365568!important;color:#f6f2e9!important}
body[data-mha-theme="dark"] .mha-pay-option:has(input:checked){background:#103429!important;border-color:#53a989!important;box-shadow:0 0 0 3px rgba(83,169,137,.14)!important}
body[data-mha-theme="light"] .mha-pay-option{background:#fff!important;border-color:#d8e3de!important;color:#172a24!important}
body[data-mha-theme="light"] .mha-pay-option:has(input:checked){background:#eef7f3!important;border-color:#2e755e!important;box-shadow:0 0 0 3px rgba(46,117,94,.10)!important}
body[data-mha-theme] .mha-booking-terms a{color:#a77818!important}
body[data-mha-theme="dark"] .mha-booking-terms a{color:#f1c768!important}
.mha-provider-choice.stripe .mha-provider-logo{background:#635bff!important;color:#fff!important}
.mha-provider-choice.paypal .mha-provider-logo,.mha-provider-choice .paypal-btn{background:#ffc439!important;color:#101820!important;border-color:#ffc439!important}

/* Generic layout safety */
:where(main,.portal,.portal-main,.section,.panel,.card,.mha-card,.mha-property-shell,.mha-direct-booking,.mha-direct-form,.mha-direct-fields,.mha-payment-choice,.mha-payer-box,.mha-direct-value-grid,.mha-provider-choice,.mha-guest-booking-card,.mha-guest-card){min-width:0!important;max-width:100%!important}
:where(h1,h2,h3,h4,h5,h6,p,span,small,b,strong,label,a,td,th){overflow-wrap:anywhere;word-break:normal}

@media(max-width:900px){
  :where(.two-col,.three-col,.portal-stats,.finance-model,.settings-grid,.mha-ops-columns,.mha-handover-layout,.mha-direct-value-grid,.mha-online-payments-grid,.mha-guest-grid,.mha-calm-kpis,.mha-calm-strip,.staff-queue-grid,.staff-dashboard-grid,.mha-auto-kpis,.finance-queue-stats){grid-template-columns:1fr!important}
}

@media(max-width:760px){
  html,body{width:100%;max-width:100%;overflow-x:hidden!important}
  body{padding-bottom:max(88px,calc(88px + env(safe-area-inset-bottom)))!important}
  .site-header{min-height:60px!important;padding:8px 58px 8px 12px!important}
  .site-header .brand-logo{max-width:138px!important}
  .site-header .menu-toggle{right:10px!important;width:42px!important;height:42px!important}
  .portal.mha-pro{display:block!important;width:100%!important;padding:0!important}
  .portal.mha-pro>aside{position:relative!important;inset:auto!important;width:100%!important;height:auto!important;max-height:none!important;border-right:0!important;border-bottom:1px solid var(--mha-line)!important;padding:8px 10px!important;overflow:visible!important}
  .portal.mha-pro>aside>.brand{margin:2px 2px 8px!important}
  .mha-admin-groupnav{display:grid!important;grid-template-columns:1fr!important;gap:6px!important}
  .mha-admin-groupnav summary{min-height:44px!important}
  .mha-admin-subnav{display:grid!important;grid-template-columns:1fr 1fr!important;gap:4px!important;padding:5px!important}
  .mha-admin-subnav a{min-height:42px!important;display:flex!important;align-items:center!important;padding:9px 10px!important}
  .portal-main{width:100%!important;max-width:100%!important;padding:14px 10px 118px!important}
  .portal-head,.mha-admin-calm-head,.mha-dash-panel-head{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:8px!important}
  .portal-head h1,.portal-head h2{font-size:clamp(24px,7.5vw,34px)!important;line-height:1.1!important}
  :where(.portal-stats,.finance-model,.two-col,.three-col,.form-grid,.settings-grid,.mha-direct-fields,.mha-direct-value-grid,.mha-online-payments-grid,.mha-guest-grid,.mha-guest-overview,.mha-guest-profile-meta,.mha-calm-kpis,.mha-calm-strip,.staff-queue-grid,.staff-dashboard-grid,.mha-auto-kpis,.finance-queue-stats,.mha-ops-kpis,.mha-readiness-kpis){grid-template-columns:1fr!important}
  .panel,.portal-card,.mha-card,.mha-dash-panel,.mha-guest-card,.mha-guest-booking-card,.mha-payment-choice,.mha-payer-box,.mha-direct-compare-card,.mha-direct-trust-card{padding:14px!important;border-radius:14px!important}
  :where(input,select,textarea,button,.btn,.mini-btn){font-size:16px!important;min-width:0!important}
  :where(.btn,.mini-btn,form button){min-height:44px}
  .form-grid>*,.form-grid label{min-width:0!important;max-width:100%!important}
  .mha-guest-action-row,.owner-contract-actions,.finance-queue-filter-actions{display:grid!important;grid-template-columns:1fr!important;width:100%!important}
  .mha-guest-action-row>*{width:100%!important}
  .table-wrap,.nx-table-wrap{width:100%!important;overflow-x:auto!important}
  .table-wrap table,.nx-table-wrap table{min-width:680px}
  .mha-whatsapp-float{right:12px!important;bottom:calc(86px + env(safe-area-inset-bottom))!important}
  footer,.mha-public-footer{padding-bottom:108px!important}
  .pwa-bottom-nav{z-index:1400!important}
}
@media(max-width:480px){
  .mha-admin-subnav{grid-template-columns:1fr!important}
  .portal-main{padding-inline:8px!important}
  .panel,.portal-card,.mha-card,.mha-dash-panel,.mha-guest-card,.mha-guest-booking-card{padding:12px!important}
  .table-wrap table,.nx-table-wrap table{min-width:620px}
}

/* Operational/admin micro-surfaces that historically carried hard-coded colors. */
body[data-mha-theme] :where(
 .mha-ops-kpis>article,.mha-handover-form,.mha-handover-list>article,.mha-readiness-kpis>div,
 .mha-ops-list>article,.mha-auto-kpis>div,.mha-calm-kpis>article,.mha-calm-strip>article,
 .nx-card,.nx-stat-grid>div,.staff-queue-grid>article,.staff-dashboard-grid>article,
 .finance-queue-stats>article,.mha-channel-card,.mha-provider-card,.mha-payment-provider-card
){border-color:var(--mha-line)!important;color:var(--mha-text)!important;box-shadow:none!important}
body[data-mha-theme="dark"] :where(
 .mha-ops-kpis>article,.mha-handover-form,.mha-handover-list>article,.mha-readiness-kpis>div,
 .mha-ops-list>article,.mha-auto-kpis>div,.mha-calm-kpis>article,.mha-calm-strip>article,
 .nx-card,.nx-stat-grid>div,.staff-queue-grid>article,.staff-dashboard-grid>article,
 .finance-queue-stats>article,.mha-channel-card,.mha-provider-card,.mha-payment-provider-card
){background:var(--mha-surface)!important;background-image:none!important}
body[data-mha-theme="light"] :where(
 .mha-ops-kpis>article,.mha-handover-form,.mha-handover-list>article,.mha-readiness-kpis>div,
 .mha-ops-list>article,.mha-auto-kpis>div,.mha-calm-kpis>article,.mha-calm-strip>article,
 .nx-card,.nx-stat-grid>div,.staff-queue-grid>article,.staff-dashboard-grid>article,
 .finance-queue-stats>article,.mha-channel-card,.mha-provider-card,.mha-payment-provider-card
){background:var(--mha-surface)!important;background-image:none!important;box-shadow:var(--mha-shadow)!important}
body[data-mha-theme] :where(.mha-ops-kpis,.mha-handover-panel,.mha-checkin-readiness,.nx-card) :where(p,span,small){color:var(--mha-soft)!important}
body[data-mha-theme] :where(.mha-ops-kpis,.mha-handover-panel,.mha-checkin-readiness,.nx-card) :where(b,strong,h1,h2,h3,h4,label){color:var(--mha-text-strong)!important}

/* PWA chrome follows the selected theme too. */
body[data-mha-theme="dark"] :where(.pwa-bottom-nav,.pwa-sheet){background:rgba(7,19,31,.98)!important;border-color:var(--mha-line)!important;color:var(--mha-text)!important}
body[data-mha-theme="light"] :where(.pwa-bottom-nav,.pwa-sheet){background:rgba(255,255,255,.98)!important;border-color:var(--mha-line)!important;color:var(--mha-text)!important}
body[data-mha-theme] .pwa-bottom-nav :where(a,button){color:var(--mha-muted)!important}
body[data-mha-theme] .pwa-bottom-nav :where(a.active,button.active){color:var(--mha-gold)!important}
body[data-mha-theme] .pwa-sheet a{color:var(--mha-text)!important;border-color:var(--mha-line)!important}

/* High-specificity final lock for authenticated dashboards. This intentionally beats old !important theme fragments. */
html body[data-mha-theme="dark"] .portal-main :is(.panel,.mha-dash-panel,.portal-card,.mha-card,.mha-ops-kpis>article,.mha-handover-form,.mha-handover-list>article,.mha-readiness-kpis>div,.mha-ops-list>article,.empty,.mha-empty-mini,.mha-zero-block-note){background:var(--mha-surface)!important;background-image:none!important;color:var(--mha-text)!important;border-color:var(--mha-line)!important;box-shadow:none!important}
html body[data-mha-theme="light"] .portal-main :is(.panel,.mha-dash-panel,.portal-card,.mha-card,.mha-ops-kpis>article,.mha-handover-form,.mha-handover-list>article,.mha-readiness-kpis>div,.mha-ops-list>article,.empty,.mha-empty-mini,.mha-zero-block-note){background:var(--mha-surface)!important;background-image:none!important;color:var(--mha-text)!important;border-color:var(--mha-line)!important;box-shadow:var(--mha-shadow)!important}
html body[data-mha-theme] .portal-main :is(.panel,.mha-dash-panel,.portal-card,.mha-card,.mha-zero-block-note) :is(h1,h2,h3,h4,h5,h6,b,strong,label,th){color:var(--mha-text-strong)!important;opacity:1!important}
html body[data-mha-theme] .portal-main :is(.panel,.mha-dash-panel,.portal-card,.mha-card,.mha-zero-block-note) :is(p,small,.muted,.hint,.help){color:var(--mha-soft)!important;opacity:1!important}

/* High-specificity public booking lock. */
html body[data-mha-theme="dark"] :is(.mha-direct-booking,.mha-payment-choice,.mha-payer-box,.mha-booking-terms,.mha-direct-compare-card,.mha-direct-trust-card,.mha-direct-quote,.mha-availability-card){background:var(--mha-surface)!important;background-image:none!important;color:var(--mha-text)!important;border-color:var(--mha-line)!important}
html body[data-mha-theme="light"] :is(.mha-direct-booking,.mha-payment-choice,.mha-payer-box,.mha-booking-terms,.mha-direct-compare-card,.mha-direct-trust-card,.mha-direct-quote,.mha-availability-card){background:var(--mha-surface)!important;background-image:none!important;color:var(--mha-text)!important;border-color:var(--mha-line)!important}


/* v4.2.87 — final cross-root theme lock.
   Uses the HTML theme state as authority so the UI remains correct even before/while
   BODY is synchronized by vision-shell.js. No business logic lives here. */
html[data-mha-theme="dark"] body{
  background:#07131f!important;color:#f5efe6!important;
  --mha-bg:#07131f;--mha-bg-2:#081a28;--mha-sidebar:#071824;
  --mha-surface:#0d2232;--mha-surface-2:#10283a;--mha-surface-3:#153247;
  --mha-text:#f5efe6;--mha-text-strong:#fffaf1;--mha-soft:#d3dde4;--mha-muted:#a9bac5;
  --mha-line:#2a485b;--mha-line-soft:#203a4b;--mha-input:#081b29;
}
html[data-mha-theme="light"] body{
  background:#f4f6f5!important;color:#172a24!important;
  --mha-bg:#f4f6f5;--mha-bg-2:#eef3f0;--mha-sidebar:#fbfcfb;
  --mha-surface:#fff;--mha-surface-2:#f7faf8;--mha-surface-3:#eef5f1;
  --mha-text:#172a24;--mha-text-strong:#10231d;--mha-soft:#40574f;--mha-muted:#6c7f77;
  --mha-line:#d7e2dd;--mha-line-soft:#e7eeea;--mha-input:#fff;
}

/* Admin/dashboard surfaces: explicit final authority. */
html[data-mha-theme="dark"] body :is(
 .portal-main,.portal-main .panel,.portal-main .portal-card,.portal-main .mha-card,.portal-main .mha-dash-panel,
 .portal-main .mha-ops-kpis>article,.portal-main .mha-handover-form,.portal-main .mha-handover-list>article,
 .portal-main .mha-readiness-kpis>div,.portal-main .mha-ops-list>article,.portal-main .mha-zero-block-note,
 .portal-main .notice,.portal-main .empty,.portal-main .mha-empty-mini,.portal-main .finance-model>div,
 .portal-main .nx-card,.portal-main .settings-card,.portal-main .money-card
 ){
  background:#0d2232!important;background-image:none!important;color:#f5efe6!important;
  border-color:#2a485b!important;box-shadow:none!important;
}
html[data-mha-theme="light"] body :is(
 .portal-main,.portal-main .panel,.portal-main .portal-card,.portal-main .mha-card,.portal-main .mha-dash-panel,
 .portal-main .mha-ops-kpis>article,.portal-main .mha-handover-form,.portal-main .mha-handover-list>article,
 .portal-main .mha-readiness-kpis>div,.portal-main .mha-ops-list>article,.portal-main .mha-zero-block-note,
 .portal-main .notice,.portal-main .empty,.portal-main .mha-empty-mini,.portal-main .finance-model>div,
 .portal-main .nx-card,.portal-main .settings-card,.portal-main .money-card
 ){
  background:#fff!important;background-image:none!important;color:#172a24!important;
  border-color:#d7e2dd!important;box-shadow:0 10px 28px rgba(20,45,37,.07)!important;
}

/* The €0 availability-only note must never become a white card in dark mode. */
html[data-mha-theme="dark"] body .mha-zero-block-note{
  background:#10293a!important;color:#dce5ea!important;border:1px solid #315064!important;
}
html[data-mha-theme="dark"] body .mha-zero-block-note :is(b,strong){color:#fffaf1!important}
html[data-mha-theme="dark"] body .mha-zero-block-note :is(small,p,span){color:#c8d5dd!important;opacity:1!important}
html[data-mha-theme="light"] body .mha-zero-block-note{
  background:#f6faf8!important;color:#263d35!important;border:1px solid #d8e3de!important;
}
html[data-mha-theme="light"] body .mha-zero-block-note :is(b,strong){color:#10231d!important}
html[data-mha-theme="light"] body .mha-zero-block-note :is(small,p,span){color:#52675f!important;opacity:1!important}

/* Neutralize hard-coded legacy light backgrounds only inside authenticated content. */
html[data-mha-theme="dark"] body .portal-main :is(div,section,article,form)[style*="background:#fff"],
html[data-mha-theme="dark"] body .portal-main :is(div,section,article,form)[style*="background: #fff"],
html[data-mha-theme="dark"] body .portal-main :is(div,section,article,form)[style*="background:#f8"],
html[data-mha-theme="dark"] body .portal-main :is(div,section,article,form)[style*="background: #f8"],
html[data-mha-theme="dark"] body .portal-main :is(div,section,article,form)[style*="background:#fa"],
html[data-mha-theme="dark"] body .portal-main :is(div,section,article,form)[style*="background: #fa"]{
  background:#10283a!important;background-image:none!important;color:#f5efe6!important;border-color:#2a485b!important;
}

/* Text contrast in both modes. */
html[data-mha-theme] body .portal-main :is(h1,h2,h3,h4,h5,h6,b,strong,label,legend,th){color:var(--mha-text-strong)!important;opacity:1!important;text-shadow:none!important}
html[data-mha-theme] body .portal-main :is(p,small,.muted,.hint,.help,em,td){color:var(--mha-soft)!important;opacity:1!important;text-shadow:none!important}
html[data-mha-theme] body .portal-main :is(input:not([type=checkbox]):not([type=radio]),select,textarea){background:var(--mha-input)!important;color:var(--mha-text)!important;border-color:var(--mha-line)!important}
html[data-mha-theme] body .portal-main :is(input,textarea)::placeholder{color:var(--mha-muted)!important;opacity:1!important}

/* Public booking/payment surfaces also follow HTML theme state. */
html[data-mha-theme="dark"] body :is(.mha-direct-booking,.mha-payment-choice,.mha-payer-box,.mha-booking-terms,.mha-direct-compare-card,.mha-direct-trust-card,.mha-direct-quote,.mha-availability-card,.mha-online-payments,.mha-provider-choice){background:#0d2232!important;background-image:none!important;color:#f5efe6!important;border-color:#2a485b!important}
html[data-mha-theme="light"] body :is(.mha-direct-booking,.mha-payment-choice,.mha-payer-box,.mha-booking-terms,.mha-direct-compare-card,.mha-direct-trust-card,.mha-direct-quote,.mha-availability-card,.mha-online-payments,.mha-provider-choice){background:#fff!important;background-image:none!important;color:#172a24!important;border-color:#d7e2dd!important}

/* Final responsive safety for all dashboard forms and cards. */
@media(max-width:760px){
 html,body{width:100%!important;max-width:100%!important;overflow-x:hidden!important}
 .portal.mha-pro{display:block!important;width:100%!important;max-width:100%!important}
 .portal.mha-pro>aside{position:relative!important;width:100%!important;max-width:100%!important;height:auto!important;min-height:0!important;overflow:visible!important}
 .portal-main{width:100%!important;max-width:100%!important;padding:12px 9px 118px!important;overflow-x:hidden!important}
 .portal-main :is(.panel,.portal-card,.mha-card,.mha-dash-panel){width:100%!important;max-width:100%!important;margin-inline:0!important}
 .portal-main :is(.form-grid,.two-col,.three-col,.portal-stats,.finance-model,.mha-ops-kpis,.mha-readiness-kpis,.mha-direct-value-grid,.mha-online-payments-grid){grid-template-columns:minmax(0,1fr)!important}
 .portal-main :is(input:not([type=checkbox]):not([type=radio]),select,textarea,button,.btn,.mini-btn){max-width:100%!important;font-size:16px!important}
 .portal-main .table-wrap,.portal-main .nx-table-wrap{display:block!important;width:100%!important;max-width:100%!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch}
 .portal-main :is(h1,h2,h3,h4,p,small,label,span,b,strong){overflow-wrap:anywhere!important}
}

/* ==============================================================
   v4.2.88 — LIGHT-FIRST VISUAL POLISH / RESPONSIVE REPAIR
   UI-only. Keeps dark mode available by explicit user choice.
   ============================================================== */

/* ----- Light is the visual default ----- */
html[data-mha-theme="light"] body{
  --mha-bg:#fbfaf7;--mha-bg-2:#f6f3ec;--mha-sidebar:#fffdf9;
  --mha-surface:#ffffff;--mha-surface-2:#f8faf8;--mha-surface-3:#f1f6f3;
  --mha-text:#142820;--mha-text-strong:#10241d;--mha-soft:#566a62;--mha-muted:#71827b;
  --mha-line:#dce5e0;--mha-line-soft:#e9efec;--mha-input:#ffffff;
  --mha-shadow:0 12px 34px rgba(30,67,55,.07);
  background:#fbfaf7!important;color:#142820!important;
}

/* ----- Global typography: smaller, cleaner, more consistent ----- */
html body[data-mha-theme] .portal-main h1{font-size:clamp(28px,2.35vw,38px)!important;line-height:1.08!important;letter-spacing:-.025em!important}
html body[data-mha-theme] .portal-main h2{font-size:clamp(22px,1.85vw,30px)!important;line-height:1.14!important;letter-spacing:-.018em!important}
html body[data-mha-theme] .portal-main h3{font-size:clamp(18px,1.45vw,23px)!important;line-height:1.2!important}
html body[data-mha-theme] .portal-main p,
html body[data-mha-theme] .portal-main td,
html body[data-mha-theme] .portal-main label{font-size:14px!important;line-height:1.55!important}
html body[data-mha-theme] .portal-main small{font-size:12px!important;line-height:1.45!important}

/* ----- Public HOME: premium white/light version ----- */
html[data-mha-theme="light"] body .mha-vision-home{
  background:linear-gradient(180deg,#fff 0%,#fbfaf7 34%,#f6f3ec 100%)!important;
  color:#142820!important;
}
html[data-mha-theme="light"] body .mha-vision-hero{
  background:
    radial-gradient(circle at 85% 8%,rgba(239,189,88,.15),transparent 28%),
    linear-gradient(180deg,#fff 0%,#fbfaf7 100%)!important;
  color:#142820!important;
}
html[data-mha-theme="light"] body .mha-vision-copy h1{color:#10241d!important;font-size:clamp(46px,5.4vw,76px)!important;line-height:.99!important;letter-spacing:-.045em!important}
html[data-mha-theme="light"] body .mha-vision-copy h1 span{color:#c68f28!important}
html[data-mha-theme="light"] body .mha-vision-copy>p{color:#5d7068!important;font-size:17px!important;line-height:1.65!important;max-width:720px}
html[data-mha-theme="light"] body .mha-vision-kicker{color:#b77f1e!important}
html[data-mha-theme="light"] body .mha-vision-search{
  background:#fff!important;border:1px solid #dde6e1!important;box-shadow:0 18px 50px rgba(35,65,55,.10)!important;
}
html[data-mha-theme="light"] body .mha-vision-search label{color:#52675f!important}
html[data-mha-theme="light"] body .mha-vision-search :is(input,select){background:#fbfcfb!important;color:#17342e!important;border-color:#e2e9e5!important}
html[data-mha-theme="light"] body .mha-vision-search button{background:#eab54c!important;color:#142820!important;box-shadow:0 8px 22px rgba(201,151,48,.22)!important}
html[data-mha-theme="light"] body .mha-vision-trust span{background:#fff!important;color:#35534a!important;border:1px solid #dde6e1!important;box-shadow:0 6px 18px rgba(30,67,55,.04)!important}
html[data-mha-theme="light"] body .mha-coast-panel{
  background:linear-gradient(180deg,#f9fbfa 0%,#f2f6f3 100%)!important;border:1px solid #dce5e0!important;box-shadow:0 18px 48px rgba(30,67,55,.09)!important;color:#17342e!important;
}
html[data-mha-theme="light"] body .mha-coast-head h2{color:#17342e!important;font-size:clamp(28px,2.6vw,42px)!important;line-height:1.04!important}
html[data-mha-theme="light"] body .mha-coast-head small{color:#b77f1e!important}
html[data-mha-theme="light"] body .mha-live-pill{background:#e9f7f1!important;color:#1f6f57!important;border-color:#c9e8dc!important}
html[data-mha-theme="light"] body .mha-coast-stop,
html[data-mha-theme="light"] body .mha-coast-card{background:#fff!important;color:#17342e!important;border-color:#dce5e0!important;box-shadow:0 7px 22px rgba(30,67,55,.055)!important}
html[data-mha-theme="light"] body .mha-coast-stop :is(b,em),
html[data-mha-theme="light"] body .mha-coast-card :is(h3,a,.mha-coast-price){color:#17342e!important}
html[data-mha-theme="light"] body .mha-coast-stop span span,
html[data-mha-theme="light"] body .mha-coast-card p,
html[data-mha-theme="light"] body .mha-coast-price span{color:#687a73!important}
html[data-mha-theme="light"] body .mha-coast-card small{color:#b77f1e!important}
html[data-mha-theme="light"] body .mha-proof-strip,
html[data-mha-theme="light"] body .mha-live-proof{background:#fff!important;color:#17342e!important;border-color:#e0e8e4!important;box-shadow:0 10px 30px rgba(30,67,55,.055)!important}
html[data-mha-theme="light"] body .mha-proof-strip strong{color:#17342e!important}
html[data-mha-theme="light"] body .mha-proof-strip span,
html[data-mha-theme="light"] body .mha-live-proof-note{color:#657870!important}

/* Public content surfaces in light mode should feel intentionally light, not dark leftovers. */
html[data-mha-theme="light"] body .mha-vision-home :is(.section,.mha-home-reviews,.intro,.destination-home,.mha-why,.mha-faq){color:#17342e!important}
html[data-mha-theme="light"] body .mha-vision-home :is(.service-card,.mha-home-review-grid>article,.mha-why-grid>article,.mha-faq-list details,.destination-chip-grid>a){background:#fff!important;color:#17342e!important;border-color:#dfe7e3!important;box-shadow:0 10px 28px rgba(30,67,55,.06)!important}
html[data-mha-theme="light"] body .mha-vision-home :is(.service-card,.mha-home-review-grid>article,.mha-why-grid>article,.mha-faq-list details,.destination-chip-grid>a) :is(h2,h3,b,strong,summary,a){color:#17342e!important}
html[data-mha-theme="light"] body .mha-vision-home :is(.service-card,.mha-home-review-grid>article,.mha-why-grid>article,.mha-faq-list details,.destination-chip-grid>a) :is(p,li,span,small){color:#62746d!important}

/* Home CTA: white / warm premium instead of forced dark */
html[data-mha-theme="light"] body .mha-vision-home>.cta{
  background:linear-gradient(135deg,#fff 0%,#f8f3e7 100%)!important;color:#17342e!important;border-top:1px solid #ece3d1!important;border-bottom:1px solid #ece3d1!important;
}
html[data-mha-theme="light"] body .mha-vision-home>.cta .eyebrow{color:#b77f1e!important}
html[data-mha-theme="light"] body .mha-vision-home>.cta h2{color:#17342e!important;font-size:clamp(36px,4.3vw,58px)!important;line-height:1.04!important}
html[data-mha-theme="light"] body .mha-vision-home>.cta p{color:#5f716a!important;font-size:16px!important}
html[data-mha-theme="light"] body .mha-vision-home>.cta .btn.white{background:#eab54c!important;color:#142820!important;border-color:#eab54c!important;box-shadow:0 8px 22px rgba(201,151,48,.22)!important}

/* Footer follows white mode. */
html[data-mha-theme="light"] body .mha-public-footer{
  background:#fff!important;color:#17342e!important;border-top:1px solid #dfe7e3!important;
}
html[data-mha-theme="light"] body .mha-public-footer :is(a,b,strong){color:#17342e!important}
html[data-mha-theme="light"] body .mha-public-footer :is(p,small,.mha-footer-trust span){color:#667a72!important}
html[data-mha-theme="light"] body .mha-public-footer .mha-footer-trust{border-color:#e3eae6!important}
html[data-mha-theme="light"] body .mha-public-footer .mha-footer-logo-dark{display:none!important}
html[data-mha-theme="light"] body .mha-public-footer .mha-footer-logo-light{display:block!important}

/* ----- Overview profit range: fix dark-on-dark text in BOTH themes ----- */
html[data-mha-theme="light"] body .mha-profit-range-card{background:linear-gradient(135deg,#f2f8f5 0%,#fffaf0 100%)!important;border:1px solid #dbe7e1!important;color:#17342e!important;box-shadow:0 12px 32px rgba(30,67,55,.07)!important}
html[data-mha-theme="light"] body .mha-profit-range-card :is(h1,h2,h3,b,strong){color:#17342e!important}
html[data-mha-theme="light"] body .mha-profit-range-card :is(p,label,span){color:#526a61!important}
html[data-mha-theme="light"] body .mha-profit-range-card small{color:#9b701e!important}
html[data-mha-theme="dark"] body .mha-profit-range-card{background:#0d2232!important;border-color:#2a485b!important;color:#f5efe6!important}
html[data-mha-theme="dark"] body .mha-profit-range-card :is(h1,h2,h3,b,strong){color:#fffaf1!important}
html[data-mha-theme="dark"] body .mha-profit-range-card :is(p,label,span){color:#d3dde4!important}
html[data-mha-theme="dark"] body .mha-profit-range-card small{color:#efbd58!important}

/* ----- Approval Center: no unreadable dark hero in light mode ----- */
html[data-mha-theme="light"] body .approval-hero{
  background:linear-gradient(135deg,#fff 0%,#f5f8f6 100%)!important;color:#17342e!important;border:1px solid #dce5e0!important;box-shadow:0 12px 30px rgba(30,67,55,.065)!important;
}
html[data-mha-theme="light"] body .approval-hero :is(h1,h2,h3){color:#17342e!important}
html[data-mha-theme="light"] body .approval-hero p{color:#5e7169!important}
html[data-mha-theme="light"] body .approval-hero small{color:#b77f1e!important}
html[data-mha-theme="dark"] body .approval-hero{background:#0d2232!important;color:#f5efe6!important;border-color:#2a485b!important}
html[data-mha-theme="dark"] body .approval-hero :is(h1,h2,h3){color:#fffaf1!important}
html[data-mha-theme="dark"] body .approval-hero p{color:#d3dde4!important}

/* ----- Support Inbox: remove dark blocks inside light theme ----- */
html[data-mha-theme="light"] body :is(.mha-support-admin-hero,.mha-support-admin-list,.mha-support-admin-thread,.mha-support-admin-item,.mha-support-admin-stats>span,.mha-support-triage,.mha-support-conversation.admin-view){background:#fff!important;color:#17342e!important;border-color:#dce5e0!important}
html[data-mha-theme="light"] body .mha-support-admin-item.active{background:#edf7f2!important;border-color:#a8d8c7!important}
html[data-mha-theme="light"] body .mha-support-admin-thread .empty{background:#f8faf8!important;color:#17342e!important;border-color:#dce5e0!important}
html[data-mha-theme="light"] body :is(.mha-support-admin-hero,.mha-support-admin-thread,.mha-support-admin-item) :is(h2,h3,b,strong){color:#17342e!important}
html[data-mha-theme="light"] body :is(.mha-support-admin-hero,.mha-support-admin-thread,.mha-support-admin-item) :is(p,span,small,em){color:#64776f!important}
html[data-mha-theme="light"] body .mha-support-admin-stats span{box-shadow:0 6px 18px rgba(30,67,55,.05)!important}
html[data-mha-theme="dark"] body :is(.mha-support-admin-hero,.mha-support-admin-list,.mha-support-admin-thread,.mha-support-admin-item,.mha-support-admin-stats>span){background:#0d2232!important;color:#f5efe6!important;border-color:#2a485b!important}
html[data-mha-theme="dark"] body :is(.mha-support-admin-hero,.mha-support-admin-thread,.mha-support-admin-item) :is(h2,h3,b,strong){color:#fffaf1!important}
html[data-mha-theme="dark"] body :is(.mha-support-admin-hero,.mha-support-admin-thread,.mha-support-admin-item) :is(p,span,small,em){color:#cbd7de!important}

/* ----- Financial tables: prevent letters/headers from stacking vertically ----- */
html body[data-mha-theme] .mha-econ-shell :is(.table-wrap,.nx-table-wrap){width:100%!important;max-width:100%!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch!important}
html body[data-mha-theme] .mha-econ-shell :is(.table-wrap,.nx-table-wrap) table{table-layout:auto!important;min-width:1100px!important;width:100%!important}
html body[data-mha-theme] .mha-econ-shell :is(.table-wrap,.nx-table-wrap) :is(th,td){writing-mode:horizontal-tb!important;text-orientation:mixed!important;transform:none!important;word-break:normal!important;overflow-wrap:normal!important;white-space:nowrap!important;min-width:88px!important;width:auto!important;font-size:13px!important;line-height:1.35!important;padding:12px 10px!important;vertical-align:middle!important}
html body[data-mha-theme] .mha-econ-shell :is(.table-wrap,.nx-table-wrap) td:first-child{min-width:180px!important;white-space:normal!important}
html body[data-mha-theme] .mha-econ-shell :is(.table-wrap,.nx-table-wrap) :is(input,select){min-width:140px!important;max-width:220px!important}
html body[data-mha-theme] .mha-econ-shell :is(.table-wrap,.nx-table-wrap) input[type="date"]{min-width:150px!important}

/* ----- Partners: never overlap actions ----- */
html body[data-mha-theme] .partner-card{min-width:0!important;overflow:hidden!important}
html body[data-mha-theme] .partner-card-actions{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:10px!important;position:static!important;min-width:0!important}
html body[data-mha-theme] .partner-card-actions>*{position:static!important;float:none!important;transform:none!important;margin:0!important;max-width:100%!important}
html body[data-mha-theme] .partner-card-actions a{white-space:normal!important;line-height:1.25!important}

/* ----- Light-mode public dark feature cards: lighten where safe ----- */
html[data-mha-theme="light"] body :is(.about-hero,.about-contact,.mha-contract-card,.mha-contract-cta){box-shadow:0 10px 30px rgba(30,67,55,.07)!important}

/* ----- Responsive / mobile polish ----- */
@media(max-width:900px){
  html[data-mha-theme="light"] body .mha-vision-hero{grid-template-columns:1fr!important;gap:24px!important;padding:34px 18px!important}
  html[data-mha-theme="light"] body .mha-vision-copy h1{font-size:clamp(38px,10.5vw,56px)!important}
  html[data-mha-theme="light"] body .mha-coast-panel{padding:18px!important}
  html body[data-mha-theme] .partner-card-actions{display:grid!important;grid-template-columns:1fr!important}
  html body[data-mha-theme] .partner-card-actions>*{width:100%!important;text-align:center!important}
  html body[data-mha-theme] .mha-support-admin-grid{grid-template-columns:1fr!important;gap:14px!important}
  html body[data-mha-theme] .mha-support-admin-list{max-height:360px!important;overflow:auto!important}
  html body[data-mha-theme] .mha-support-admin-thread{min-height:0!important}
}
@media(max-width:760px){
  html body[data-mha-theme] .portal-main h1{font-size:27px!important}
  html body[data-mha-theme] .portal-main h2{font-size:22px!important}
  html body[data-mha-theme] .portal-main h3{font-size:18px!important}
  html body[data-mha-theme] .portal-main p,html body[data-mha-theme] .portal-main label{font-size:13.5px!important}
  html[data-mha-theme="light"] body .mha-vision-hero{padding:28px 14px 24px!important}
  html[data-mha-theme="light"] body .mha-vision-copy h1{font-size:clamp(36px,11.5vw,48px)!important;line-height:1.02!important}
  html[data-mha-theme="light"] body .mha-vision-copy>p{font-size:15px!important}
  html body[data-mha-theme] .mha-vision-search{grid-template-columns:1fr!important;padding:12px!important}
  html body[data-mha-theme] .mha-vision-search button{width:100%!important;min-height:48px!important}
  html body[data-mha-theme] .mha-coast-head{gap:8px!important}
  html body[data-mha-theme] .mha-coast-head h2{font-size:27px!important}
  html[data-mha-theme="light"] body .mha-vision-home>.cta{padding:54px 18px!important}
  html[data-mha-theme="light"] body .mha-vision-home>.cta h2{font-size:36px!important}
  html[data-mha-theme="light"] body .mha-public-footer{padding:38px 20px 118px!important}
  html body[data-mha-theme] .mha-support-filter{display:grid!important;grid-template-columns:1fr!important;gap:10px!important}
  html body[data-mha-theme] .mha-support-filter>*{width:100%!important}
  html body[data-mha-theme] .mha-support-admin-stats{width:100%!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
  html body[data-mha-theme] .approval-hero{padding:18px!important}
  html body[data-mha-theme] .mha-econ-shell :is(.table-wrap,.nx-table-wrap) table{min-width:980px!important}
}

/* v4.2.88 — additional screenshot-specific polish */
html[data-mha-theme="light"] body .dashboard-showcase,
html[data-mha-theme="light"] body .mha-demo-showcase{
  background:linear-gradient(135deg,#f7faf8 0%,#fff 100%)!important;color:#17342e!important;border:1px solid #dce5e0!important;
}
html[data-mha-theme="light"] body .dashboard-showcase .showcase-copy :is(h1,h2,h3){color:#17342e!important}
html[data-mha-theme="light"] body .dashboard-showcase .showcase-copy p{color:#63766f!important}
html[data-mha-theme="light"] body .dashboard-showcase .dashboard-card{background:#fff!important;color:#17342e!important;border-color:#dce5e0!important;box-shadow:0 14px 36px rgba(30,67,55,.075)!important}
html[data-mha-theme="light"] body .dashboard-showcase .dashboard-card :is(h3,b,strong){color:#17342e!important}
html[data-mha-theme="light"] body .dashboard-showcase .dashboard-card :is(span,small){color:#687a73!important}
html[data-mha-theme="light"] body .mha-demo-badge{background:#fff2cf!important;color:#875f14!important;border-color:#efd38e!important}

/* Contracts: keep the premium dark cards, but make every label/button readable. */
html[data-mha-theme="light"] body .mha-contract-card{background:#10283a!important;color:#f8f3e9!important;border-color:#29495a!important;box-shadow:0 12px 32px rgba(10,35,49,.14)!important}
html[data-mha-theme="light"] body .mha-contract-card :is(h2,h3,b,strong){color:#fffaf1!important}
html[data-mha-theme="light"] body .mha-contract-card p{color:#d2dce2!important;font-size:14px!important;line-height:1.55!important}
html[data-mha-theme="light"] body .mha-contract-card>small{color:#efbd58!important}
html[data-mha-theme="light"] body .mha-contract-meta span{color:#d8e2e7!important;border-color:#35566a!important;background:#132f41!important}
html[data-mha-theme="light"] body .mha-lang-downloads a{background:#173447!important;color:#f5efe6!important;border-color:#35566a!important;min-height:38px!important;font-size:13px!important}
html[data-mha-theme="light"] body .mha-lang-downloads a:hover{background:#eab54c!important;color:#142820!important;border-color:#eab54c!important}
html[data-mha-theme="light"] body .mha-contract-card h2{font-size:clamp(27px,2.3vw,36px)!important;line-height:1.02!important}

/* About/Transparency: slightly smaller hero typography on desktop and mobile. */
html body[data-mha-theme] .mha-about-hero h1{font-size:clamp(46px,5vw,68px)!important;line-height:.98!important;letter-spacing:-.035em!important}
html body[data-mha-theme] .mha-about-hero h2{font-size:clamp(27px,2.5vw,38px)!important}

/* Partner cards: visual hierarchy and safe action layout. */
html[data-mha-theme="light"] body .partner-card{background:#fff!important;border:1px solid #dce5e0!important;box-shadow:0 10px 28px rgba(30,67,55,.055)!important;color:#17342e!important}
html[data-mha-theme="light"] body .partner-card :is(h2,h3,b,strong){color:#17342e!important}
html[data-mha-theme="light"] body .partner-card :is(p,small,span){color:#667971!important}
html body[data-mha-theme] .partner-card .partner-logo-image{flex:0 0 auto!important}

/* Approval/Support counters on light theme: avoid dark boxes with dark text. */
html[data-mha-theme="light"] body .mha-support-admin-stats>span,
html[data-mha-theme="light"] body .approval-hero .status{background:#edf7f2!important;color:#1f6f57!important;border-color:#cce8dd!important}

/* Desktop finance tables get enough room; mobile scrolls horizontally instead of crushing columns. */
@media(min-width:901px){
  html body[data-mha-theme] .mha-econ-shell :is(.table-wrap,.nx-table-wrap) table{min-width:1180px!important}
}
@media(max-width:760px){
  html body[data-mha-theme] .mha-about-hero h1{font-size:38px!important;line-height:1.02!important}
  html body[data-mha-theme] .mha-contract-grid{grid-template-columns:1fr!important}
  html body[data-mha-theme] .mha-contract-card{padding:18px!important}
  html body[data-mha-theme] .mha-contract-card h2{font-size:27px!important}
}

/* ======================================================================
   v4.2.89 — FINAL LIGHT HOMEPAGE + RESPONSIVE TABLE/NAV REPAIR
   Scope: presentation only. Business logic / finance formulas untouched.
   ====================================================================== */

/* 1) Header: never let "Register your property" collapse into a vertical tab. */
html body .site-header{overflow:visible!important}
html body .site-header>nav{min-width:0!important;flex-shrink:1!important;gap:clamp(9px,1.35vw,22px)!important}
html body .site-header>nav>a{white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important;writing-mode:horizontal-tb!important;transform:none!important;flex:0 0 auto!important}
html body .site-header>nav .nav-cta{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:max-content!important;max-width:none!important;padding:11px 16px!important;line-height:1.15!important}
@media (min-width:1001px) and (max-width:1320px){
  html body .site-header{padding-left:24px!important;padding-right:24px!important}
  html body .site-header .brand-logo img{width:145px!important}
  html body .site-header>nav{gap:11px!important;font-size:12px!important}
  html body .site-header>nav .nav-cta{padding:10px 12px!important;font-size:11px!important}
  html body .site-header .language-picker{padding:4px 7px!important}
}
@media (min-width:1001px) and (max-width:1120px){
  html body .site-header>nav{gap:8px!important;font-size:11px!important}
  html body .site-header>nav .nav-cta{display:none!important}
}

/* 2) Financial ledger: horizontal table, never one-character columns. */
html body[data-mha-theme] .mha-financial-ledger{overflow:hidden!important}
html body[data-mha-theme] .mha-financial-ledger-wrap{
  display:block!important;width:100%!important;max-width:100%!important;
  overflow-x:auto!important;overflow-y:visible!important;-webkit-overflow-scrolling:touch!important;
  padding-bottom:8px!important
}
html body[data-mha-theme] .mha-financial-ledger-table{
  width:100%!important;min-width:1240px!important;table-layout:auto!important;border-collapse:separate!important;border-spacing:0!important
}
html body[data-mha-theme] .mha-financial-ledger-table :is(th,td){
  writing-mode:horizontal-tb!important;text-orientation:mixed!important;transform:none!important;
  white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important;
  width:auto!important;min-width:110px!important;max-width:none!important;
  font-size:12.5px!important;line-height:1.35!important;padding:12px 10px!important;vertical-align:middle!important
}
html body[data-mha-theme] .mha-financial-ledger-table th{font-size:10px!important;letter-spacing:.06em!important}
html body[data-mha-theme] .mha-financial-ledger-table th:first-child,
html body[data-mha-theme] .mha-financial-ledger-table td:first-child{min-width:220px!important;white-space:normal!important}
html body[data-mha-theme] .mha-financial-ledger-table th:nth-child(2),
html body[data-mha-theme] .mha-financial-ledger-table td:nth-child(2){min-width:180px!important}
html body[data-mha-theme] .mha-financial-ledger-table th:nth-child(6),
html body[data-mha-theme] .mha-financial-ledger-table td:nth-child(6){min-width:175px!important}
html body[data-mha-theme] .mha-financial-ledger-table th:nth-child(7),
html body[data-mha-theme] .mha-financial-ledger-table td:nth-child(7){min-width:650px!important}
html body[data-mha-theme] .mha-financial-ledger-table .owner-payout-form{
  display:grid!important;grid-template-columns:120px 150px 150px 145px auto!important;gap:7px!important;align-items:center!important;width:max-content!important;min-width:600px!important;margin:0!important
}
html body[data-mha-theme] .mha-financial-ledger-table .owner-payout-form :is(input,select,button){
  width:100%!important;min-width:0!important;max-width:none!important;margin:0!important
}
@media(max-width:760px){
  html body[data-mha-theme] .mha-financial-ledger-table{min-width:1080px!important}
  html body[data-mha-theme] .mha-financial-ledger-table :is(th,td){font-size:12px!important;padding:10px 8px!important}
  html body[data-mha-theme] .mha-financial-ledger-wrap{margin-left:-2px!important;margin-right:-2px!important}
}

/* 3) Homepage light-first — distinctive Albanian coast visual language. */
html[data-mha-theme="light"] body .mha-vision-home{
  background:
    radial-gradient(circle at 12% 18%,rgba(219,169,70,.10),transparent 24%),
    radial-gradient(circle at 88% 11%,rgba(34,120,109,.10),transparent 26%),
    linear-gradient(180deg,#fffdfa 0%,#f7faf8 46%,#fffdf8 100%)!important;
  color:#143b33!important
}
html[data-mha-theme="light"] body .mha-vision-hero{
  position:relative!important;isolation:isolate!important;
  background:
    linear-gradient(122deg,rgba(255,255,255,.98) 0%,rgba(250,247,239,.96) 54%,rgba(235,247,243,.96) 100%)!important;
  color:#143b33!important;border-bottom:1px solid #e1e8e4!important;overflow:hidden!important
}
html[data-mha-theme="light"] body .mha-vision-hero::before{
  content:""!important;position:absolute!important;inset:0!important;z-index:-2!important;opacity:1!important;
  background:
    radial-gradient(70% 42% at -8% 100%,transparent 63%,rgba(26,102,91,.12) 64%,rgba(26,102,91,.12) 66%,transparent 67%),
    radial-gradient(65% 38% at 34% 103%,transparent 64%,rgba(218,168,69,.16) 65%,rgba(218,168,69,.16) 66.5%,transparent 67.5%),
    radial-gradient(72% 40% at 85% 105%,transparent 63%,rgba(26,102,91,.09) 64%,rgba(26,102,91,.09) 66%,transparent 67%)!important;
  filter:none!important
}
html[data-mha-theme="light"] body .mha-vision-hero::after{
  content:"ALBANIAN COAST · ADRIATIC → IONIAN"!important;position:absolute!important;left:clamp(24px,4vw,64px)!important;bottom:18px!important;z-index:-1!important;
  color:rgba(20,59,51,.16)!important;font-size:10px!important;font-weight:900!important;letter-spacing:.22em!important;white-space:nowrap!important
}
html[data-mha-theme="light"] body .mha-vision-copy{position:relative!important;z-index:2!important}
html[data-mha-theme="light"] body .mha-vision-copy .mha-vision-kicker{color:#a97016!important}
html[data-mha-theme="light"] body .mha-vision-copy h1{
  color:#143b33!important;font-size:clamp(46px,5vw,72px)!important;line-height:.98!important;text-shadow:none!important
}
html[data-mha-theme="light"] body .mha-vision-copy h1 span{color:#c88d25!important}
html[data-mha-theme="light"] body .mha-vision-copy>p{color:#566d66!important;font-size:16px!important;line-height:1.65!important;max-width:650px!important}
html[data-mha-theme="light"] body .mha-vision-search{
  background:rgba(255,255,255,.94)!important;border:1px solid #d8e3de!important;box-shadow:0 18px 48px rgba(30,73,61,.10)!important;backdrop-filter:blur(12px)!important
}
html[data-mha-theme="light"] body .mha-vision-search :is(label,input,select){color:#173f36!important}
html[data-mha-theme="light"] body .mha-vision-search :is(input,select){background:#fbfcfb!important;border-color:#dfe7e3!important}
html[data-mha-theme="light"] body .mha-vision-trust span{background:#fff!important;color:#31584d!important;border:1px solid #dce6e1!important;box-shadow:0 5px 15px rgba(33,75,64,.05)!important}

/* coast card: give the heading enough width and stop one-word-per-line wrapping. */
html[data-mha-theme="light"] body .mha-coast-panel{
  background:rgba(255,255,255,.84)!important;border:1px solid #d8e3de!important;box-shadow:0 24px 60px rgba(28,68,57,.10)!important;backdrop-filter:blur(18px)!important
}
html body[data-mha-theme] .mha-coast-head{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:start!important;gap:10px 12px!important}
html body[data-mha-theme] .mha-coast-head>div{min-width:0!important;width:100%!important}
html body[data-mha-theme] .mha-coast-head h2{
  max-width:100%!important;width:auto!important;font-size:clamp(27px,2.35vw,36px)!important;line-height:1.03!important;word-break:normal!important;overflow-wrap:normal!important;text-wrap:balance!important
}
html body[data-mha-theme] .mha-live-pill{white-space:nowrap!important;align-self:start!important;font-size:9px!important;padding:8px 10px!important}
html[data-mha-theme="light"] body .mha-coast-head h2{color:#173f36!important}
html[data-mha-theme="light"] body .mha-coast-stop{background:#fff!important}
html[data-mha-theme="light"] body .mha-coast-stop b{color:#173f36!important}
html[data-mha-theme="light"] body .mha-coast-stop span span{color:#6b7c76!important}
html[data-mha-theme="light"] body .mha-coast-card{background:#fff!important;color:#173f36!important}
html[data-mha-theme="light"] body .mha-coast-card h3,
html[data-mha-theme="light"] body .mha-coast-card h3 a{color:#173f36!important}

/* 4) Floating web role shortcut: ivory/gold, compact and non-obstructive. */
html body .admin-quick{
  background:rgba(255,250,238,.96)!important;border:1px solid #e6bd65!important;box-shadow:0 12px 32px rgba(30,55,47,.14)!important;
  padding:6px!important;border-radius:999px!important;gap:3px!important;right:18px!important;bottom:18px!important
}
html body .admin-quick a{color:#173f36!important;background:transparent!important;font-size:10px!important;font-weight:800!important;padding:7px 10px!important;white-space:nowrap!important}
html body .admin-quick a:hover{background:#f2dfb0!important;color:#112f29!important}
html[data-mha-theme="dark"] body .admin-quick{background:rgba(12,31,42,.96)!important;border-color:#7d6532!important}
html[data-mha-theme="dark"] body .admin-quick a{color:#f4ead2!important}
html[data-mha-theme="dark"] body .admin-quick a:hover{background:#243f48!important}
@media(max-width:760px){html body .admin-quick{display:none!important}}

/* 5) Mobile homepage: no squeezed headline/card, clean single column. */
@media(max-width:760px){
  html body .mha-vision-hero{grid-template-columns:1fr!important;padding:30px 14px 24px!important;gap:18px!important}
  html body .mha-vision-copy{min-width:0!important;width:100%!important;padding:0!important}
  html[data-mha-theme="light"] body .mha-vision-copy h1{font-size:clamp(36px,10.8vw,48px)!important;line-height:1.01!important;margin:18px 0!important}
  html[data-mha-theme="light"] body .mha-vision-copy>p{font-size:14.5px!important;line-height:1.55!important}
  html body .mha-vision-search{grid-template-columns:1fr!important;width:100%!important;padding:12px!important;gap:9px!important}
  html body .mha-vision-search button{width:100%!important;min-height:48px!important}
  html body .mha-vision-trust{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}
  html body .mha-vision-trust span{font-size:10.5px!important;padding:8px 9px!important;text-align:center!important}
  html body .mha-coast-panel{width:100%!important;min-width:0!important;padding:16px!important;border-radius:22px!important}
  html body .mha-coast-head{grid-template-columns:1fr!important}
  html body .mha-coast-head h2{font-size:25px!important;max-width:100%!important}
  html body .mha-live-pill{justify-self:start!important}
  html body .mha-coast-stop{padding:12px!important;min-width:0!important}
  html body .mha-coast-card{grid-template-columns:88px minmax(0,1fr)!important;gap:12px!important;padding:12px!important}
  html body .mha-coast-card h3{font-size:18px!important;line-height:1.16!important}
  html body .mha-coast-card p{font-size:12px!important}
  html body .mha-coast-price{font-size:19px!important}
  html body .mha-vision-hero::after{display:none!important}
}

/* 6) General type scale safety on desktop/mobile: reduce accidental giant wrapping. */
html body .portal-main :is(.panel,.portal-head,.finance-model,.table-wrap) h2{line-height:1.15!important}
@media(max-width:760px){
  html body .portal-main h1{font-size:clamp(27px,8vw,34px)!important;line-height:1.08!important}
  html body .portal-main h2{font-size:clamp(21px,6.2vw,27px)!important;line-height:1.12!important}
  html body .portal-main p,html body .portal-main td,html body .portal-main label{font-size:13px!important}
}

/* ======================================================================
   v4.2.91 — FINAL LANGUAGE/REQUEST/RESPONSIVE STABILITY PASS
   Scope: UI only. Keeps finance/booking/channel business logic unchanged.
   ====================================================================== */

/* Header quick inbox/popovers: never collapse into a one-letter vertical strip. */
html body .mha-header-popover-wrap{position:relative!important;min-width:0!important}
html body .mha-header-popover{
  width:min(390px,calc(100vw - 24px))!important;min-width:320px!important;max-width:390px!important;
  writing-mode:horizontal-tb!important;text-orientation:mixed!important;word-break:normal!important;overflow-wrap:break-word!important;
  white-space:normal!important;z-index:99999!important
}
html body .mha-header-popover *{writing-mode:horizontal-tb!important;text-orientation:mixed!important;word-break:normal!important;overflow-wrap:break-word!important}
html body .mha-header-popover header{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:14px!important}
html body .mha-header-popover header :is(b,a){white-space:nowrap!important}
html body .mha-popover-item{display:grid!important;grid-template-columns:34px minmax(0,1fr) 8px!important;gap:10px!important;align-items:start!important;min-width:0!important}
html body .mha-popover-item>span{min-width:0!important}
html body .mha-popover-item :is(b,small,em){display:block!important;max-width:100%!important;white-space:normal!important;word-break:normal!important;overflow-wrap:break-word!important}
@media(max-width:760px){
  html body .mha-header-popover-wrap{position:static!important}
  html body .mha-header-popover{
    position:fixed!important;left:12px!important;right:12px!important;top:72px!important;width:auto!important;min-width:0!important;max-width:none!important;
    max-height:min(70vh,560px)!important;overflow:auto!important;border-radius:18px!important
  }
}

/* Admin tables: preserve readable horizontal columns instead of letter-by-letter wrapping. */
html body[data-mha-theme] .portal-main .table-wrap{display:block!important;width:100%!important;max-width:100%!important;overflow-x:auto!important;overflow-y:visible!important;-webkit-overflow-scrolling:touch!important}
html body[data-mha-theme] .portal-main .table-wrap table{table-layout:auto!important;width:100%!important}
html body[data-mha-theme] .portal-main .table-wrap :is(th,td){
  writing-mode:horizontal-tb!important;text-orientation:mixed!important;transform:none!important;
  word-break:normal!important;overflow-wrap:normal!important;hyphens:none!important;vertical-align:top!important
}
html body[data-mha-theme] .portal-main .table-wrap th{white-space:normal!important;line-height:1.15!important;font-size:10.5px!important;letter-spacing:.045em!important}
html body[data-mha-theme] .portal-main .table-wrap td{font-size:12.5px!important;line-height:1.38!important}
html body[data-mha-theme] .portal-main .table-wrap:has(.reservation-actions) table{min-width:1180px!important}
html body[data-mha-theme] .portal-main .table-wrap:has(.reservation-actions) th:nth-child(1){min-width:165px!important}
html body[data-mha-theme] .portal-main .table-wrap:has(.reservation-actions) th:nth-child(3){min-width:110px!important}
html body[data-mha-theme] .portal-main .table-wrap:has(.reservation-actions) th:nth-child(4),
html body[data-mha-theme] .portal-main .table-wrap:has(.reservation-actions) th:nth-child(5){min-width:120px!important}
html body[data-mha-theme] .portal-main .table-wrap:has(.reservation-actions) th:last-child{min-width:300px!important}
html body[data-mha-theme] .reservation-actions{min-width:285px!important;width:285px!important;display:flex!important;flex-direction:column!important;gap:8px!important}
html body[data-mha-theme] .reservation-actions .collection-form{display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important;min-width:0!important}
html body[data-mha-theme] .reservation-actions .collection-form :is(input,select,button){min-width:0!important;width:100%!important;margin:0!important}
html body[data-mha-theme] .reservation-actions .collection-form button{grid-column:1/-1!important}
html body[data-mha-theme] .reservation-actions details,
html body[data-mha-theme] .reservation-actions .action-stack{width:100%!important;min-width:0!important}
@media(max-width:760px){
  html body[data-mha-theme] .portal-main .table-wrap:has(.reservation-actions) table{min-width:1080px!important}
  html body[data-mha-theme] .portal-main .table-wrap :is(th,td){font-size:12px!important;padding:10px 8px!important}
}

/* Public property application: three clear service choices and photo-first long-term request. */
html body .mha-service-choice-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:18px!important;align-items:stretch!important}
html body .mha-service-choice-grid .service-card{height:100%!important;min-width:0!important;display:flex!important;flex-direction:column!important}
html body .mha-service-choice-grid .service-card .btn{margin-top:auto!important;width:100%!important;white-space:normal!important}
html body .mha-service-choice-grid .service-card.longterm{border-color:rgba(205,158,62,.42)!important;background:linear-gradient(180deg,#fffdf8 0%,#fff 100%)!important}
html body .mha-media-upload{border:1px dashed #c9d8d1!important;border-radius:16px!important;padding:16px!important;background:rgba(248,251,249,.82)!important}
html body .mha-media-upload>span{display:flex!important;flex-direction:column!important;gap:5px!important}
html body .mha-media-preview{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(110px,1fr))!important;gap:10px!important}
html body .mha-onboarding-admin-list{display:grid!important;gap:16px!important}
html body .mha-approval-card{min-width:0!important;overflow:hidden!important}
html body .mha-approval-preview{min-width:0!important}
html body .mha-approval-copy{min-width:0!important}
html body .mha-approval-copy h3{font-size:clamp(20px,2vw,27px)!important;line-height:1.13!important;overflow-wrap:break-word!important}
html body .property-mini-facts{display:flex!important;flex-wrap:wrap!important;gap:7px!important}
html body .property-mini-facts>span{white-space:normal!important}
@media(max-width:900px){html body .mha-service-choice-grid{grid-template-columns:1fr!important}}
@media(max-width:760px){
  html body .mha-media-preview{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  html body .mha-approval-preview{display:grid!important;grid-template-columns:1fr!important}
  html body .mha-approval-preview>img{width:100%!important;max-height:230px!important;object-fit:cover!important}
  html body .onboarding-admin-actions textarea{font-size:16px!important}
  html body .mha-approval-buttons{display:grid!important;grid-template-columns:1fr!important;gap:8px!important}
  html body .mha-approval-buttons .btn{width:100%!important}
}

/* Long-term public: readable, mobile-first, and MHA remains the contact point. */
html body .lt-hero h1{font-size:clamp(38px,5.4vw,66px)!important;line-height:1.02!important;text-wrap:balance!important}
html body .lt-hero p{max-width:820px!important;margin-inline:auto!important;font-size:16px!important;line-height:1.65!important}
html body .lt-hero-actions{display:flex!important;justify-content:center!important;flex-wrap:wrap!important;gap:10px!important}
html body .lt-grid{align-items:stretch!important}
html body .lt-card{min-width:0!important;overflow:hidden!important}
html body .lt-card h2{font-size:clamp(22px,2vw,30px)!important;line-height:1.12!important;overflow-wrap:break-word!important}
html body .lt-interest form{min-width:0!important}
@media(max-width:760px){
  html body .lt-public{padding-inline:14px!important}
  html body .lt-hero{padding:44px 6px 28px!important}
  html body .lt-hero h1{font-size:clamp(34px,10vw,44px)!important}
  html body .lt-hero p{font-size:14px!important;line-height:1.58!important}
  html body .lt-hero-actions .btn{width:100%!important}
  html body .lt-grid{grid-template-columns:1fr!important}
  html body .lt-card .form-grid{grid-template-columns:1fr!important}
}

/* =====================================================================
   v4.2.95 — HEADER / PWA / NOTIFICATION FINAL AUTHORITY
   One canonical header order on public pages and dashboards.
   ===================================================================== */
@media (min-width:781px){
  html body .site-header{
    display:flex!important;
    align-items:center!important;
    gap:10px!important;
  }
  html body .site-header>.brand-logo{order:1!important;flex:0 0 auto!important}
  html body .site-header>nav{order:2!important;display:flex!important;align-items:center!important;margin-left:auto!important;min-width:0!important}
  html body .site-header>.mha-theme-toggle{order:3!important;flex:0 0 auto!important;margin-left:8px!important}
  html body .site-header>.mha-header-messages-wrap{order:4!important;flex:0 0 auto!important;margin:0!important}
  html body .site-header>.mha-header-notices-wrap{order:5!important;flex:0 0 auto!important;margin:0!important}
  html body .site-header>.menu-toggle{order:6!important;flex:0 0 auto!important}
  html body .site-header>.pwa-language{display:none!important}
  html body .site-header>nav .language-picker{display:flex!important}
  html body .site-header .mha-header-popover-wrap{position:relative!important;width:42px!important;height:42px!important;min-width:42px!important}
  html body .site-header .mha-header-popover-wrap>a{width:42px!important;height:42px!important;min-width:42px!important;margin:0!important}
}

/* Notification/message popup must never collapse into a thin vertical strip. */
html body .mha-header-popover{
  writing-mode:horizontal-tb!important;
  text-orientation:mixed!important;
  min-width:320px!important;
  width:min(390px,calc(100vw - 24px))!important;
  max-width:calc(100vw - 24px)!important;
  overflow:hidden!important;
}
html body .mha-header-popover,
html body .mha-header-popover *{
  word-break:normal!important;
  overflow-wrap:anywhere!important;
}
html body .mha-header-popover>header{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  min-width:0!important;
}
html body .mha-header-popover>header b,
html body .mha-header-popover>header a{
  white-space:nowrap!important;
  writing-mode:horizontal-tb!important;
}
html body .mha-header-popover-list{width:100%!important;min-width:0!important}
html body .mha-popover-item{
  display:grid!important;
  grid-template-columns:40px minmax(0,1fr)!important;
  width:100%!important;
  min-width:0!important;
}
html body .mha-popover-item>span{min-width:0!important;width:auto!important}
html body .mha-popover-item b,
html body .mha-popover-item small,
html body .mha-popover-item em{
  writing-mode:horizontal-tb!important;
  word-break:normal!important;
  overflow-wrap:break-word!important;
}

@media(max-width:780px){
  html body .site-header.mha-auth-header{
    display:grid!important;
    grid-template-columns:minmax(104px,1fr) repeat(4,42px)!important;
    align-items:center!important;
    column-gap:6px!important;
    padding-left:12px!important;
    padding-right:12px!important;
  }
  html body .site-header.mha-auth-header>.brand-logo{grid-column:1!important;order:1!important;min-width:0!important}
  html body .site-header.mha-auth-header>.mha-theme-toggle{grid-column:2!important;order:2!important;margin:0!important;width:42px!important;height:42px!important}
  html body .site-header.mha-auth-header>.mha-header-messages-wrap{grid-column:3!important;order:3!important;width:42px!important;height:42px!important;margin:0!important;position:static!important}
  html body .site-header.mha-auth-header>.mha-header-notices-wrap{grid-column:4!important;order:4!important;width:42px!important;height:42px!important;margin:0!important;position:static!important}
  html body .site-header.mha-auth-header>.menu-toggle{grid-column:5!important;order:5!important;margin:0!important;width:42px!important;height:42px!important;min-width:42px!important;position:relative!important;right:auto!important;top:auto!important;transform:none!important}
  html body .site-header.mha-auth-header:not(.mha-has-messages){grid-template-columns:minmax(110px,1fr) repeat(3,42px)!important}
  html body .site-header.mha-auth-header:not(.mha-has-messages)>.mha-theme-toggle{grid-column:2!important}
  html body .site-header.mha-auth-header:not(.mha-has-messages)>.mha-header-notices-wrap{grid-column:3!important}
  html body .site-header.mha-auth-header:not(.mha-has-messages)>.menu-toggle{grid-column:4!important}
  html body .site-header.mha-auth-header>.pwa-language{display:none!important}
  html body .site-header.mha-auth-header>nav{grid-column:1/-1!important;order:10!important}
  html body .site-header .mha-header-popover-wrap>a{width:42px!important;height:42px!important;min-width:42px!important;margin:0!important}

  html body .mha-header-popover{
    position:fixed!important;
    top:calc(68px + env(safe-area-inset-top,0px))!important;
    left:12px!important;
    right:12px!important;
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
    max-height:min(72vh,620px)!important;
    border-radius:18px!important;
    transform:none!important;
  }
  html body .mha-header-popover-list{max-height:calc(min(72vh,620px) - 58px)!important;overflow:auto!important;-webkit-overflow-scrolling:touch!important}
  html body .mha-popover-item b{white-space:normal!important;line-height:1.25!important}
  html body .mha-popover-item small{white-space:normal!important;line-height:1.35!important;display:-webkit-box!important;-webkit-line-clamp:3!important;-webkit-box-orient:vertical!important;overflow:hidden!important}

  /* Language remains reachable inside More on every phone/PWA. */
  html body .pwa-sheet-language{padding:8px 16px 12px!important;border-bottom:1px solid var(--mha-line,#dde6e1)!important}
  html body .pwa-sheet-language label{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:14px!important;font-size:13px!important;font-weight:800!important}
  html body .pwa-sheet-language select{width:auto!important;min-width:96px!important;min-height:42px!important;border-radius:12px!important;padding:0 34px 0 12px!important;background:var(--mha-surface,#fff)!important;color:var(--mha-text,#17342e)!important;border:1px solid var(--mha-line,#dfe7e3)!important}
}

@media(max-width:390px){
  html body .site-header.mha-auth-header{grid-template-columns:minmax(88px,1fr) repeat(4,39px)!important;column-gap:4px!important;padding-inline:8px!important}
  html body .site-header.mha-auth-header:not(.mha-has-messages){grid-template-columns:minmax(96px,1fr) repeat(3,39px)!important}
  html body .site-header.mha-auth-header>.mha-theme-toggle,
  html body .site-header.mha-auth-header>.menu-toggle,
  html body .site-header .mha-header-popover-wrap,
  html body .site-header .mha-header-popover-wrap>a{width:39px!important;height:39px!important;min-width:39px!important}
}

/* Header uses the same light/dark visual language on Home and Dashboard. */
html[data-mha-theme="light"] body .site-header{background:rgba(255,255,255,.98)!important;color:#142a22!important;border-bottom-color:#dfe7e3!important}
html[data-mha-theme="dark"] body .site-header{background:rgba(6,19,30,.98)!important;color:#f6f2e9!important;border-bottom-color:#294557!important}
html[data-mha-theme="light"] body .mha-header-popover{background:#fff!important;color:#17342e!important;border-color:#dfe7e3!important;box-shadow:0 22px 64px rgba(24,58,47,.16)!important}
html[data-mha-theme="light"] body .mha-header-popover>header{border-bottom-color:#e7ece9!important}
html[data-mha-theme="light"] body .mha-popover-item{color:#17342e!important}
html[data-mha-theme="light"] body .mha-popover-item small{color:#66766f!important}
html[data-mha-theme="light"] body .mha-popover-item em{color:#8a9691!important}
html[data-mha-theme="light"] body .mha-popover-item:hover,
html[data-mha-theme="light"] body .mha-popover-item.unread{background:#f5f8f6!important}
html[data-mha-theme="light"] body .mha-popover-empty{color:#708079!important}
html[data-mha-theme="dark"] body .mha-header-popover{background:#08161f!important;color:#fff!important;border-color:#294557!important}


/* =====================================================================
   v4.2.95 — MOBILE/PWA FINAL PARITY LOCK
   Public Home and authenticated dashboards use the same right-side
   control geometry. First paint is light unless the user explicitly
   saved dark mode. This block intentionally comes last.
   ===================================================================== */
@media(max-width:780px){
  html body .site-header{
    display:grid!important;
    grid-template-columns:minmax(104px,1fr) 42px 42px!important;
    align-items:center!important;
    column-gap:6px!important;
    min-height:64px!important;
    padding:8px 12px!important;
    padding-top:calc(8px + env(safe-area-inset-top,0px))!important;
  }
  html body .site-header>.brand-logo{grid-column:1!important;order:1!important;min-width:0!important;margin:0!important}
  html body .site-header>.pwa-language{display:none!important}
  html body .site-header>.mha-theme-toggle{
    grid-column:2!important;order:2!important;position:relative!important;
    right:auto!important;left:auto!important;top:auto!important;transform:none!important;
    width:42px!important;height:42px!important;min-width:42px!important;margin:0!important;
  }
  html body .site-header>.menu-toggle{
    grid-column:3!important;order:3!important;position:relative!important;
    right:auto!important;left:auto!important;top:auto!important;transform:none!important;
    width:42px!important;height:42px!important;min-width:42px!important;margin:0!important;
  }
  html body .site-header>nav{grid-column:1/-1!important;order:10!important;min-width:0!important}
  html body .site-header.mha-auth-header{grid-template-columns:minmax(104px,1fr) repeat(4,42px)!important}
  html body .site-header.mha-auth-header>.mha-theme-toggle{grid-column:2!important}
  html body .site-header.mha-auth-header>.mha-header-messages-wrap{grid-column:3!important;order:3!important}
  html body .site-header.mha-auth-header>.mha-header-notices-wrap{grid-column:4!important;order:4!important}
  html body .site-header.mha-auth-header>.menu-toggle{grid-column:5!important;order:5!important}
  html body .site-header.mha-auth-header:not(.mha-has-messages){grid-template-columns:minmax(110px,1fr) repeat(3,42px)!important}
  html body .site-header.mha-auth-header:not(.mha-has-messages)>.mha-theme-toggle{grid-column:2!important}
  html body .site-header.mha-auth-header:not(.mha-has-messages)>.mha-header-notices-wrap{grid-column:3!important}
  html body .site-header.mha-auth-header:not(.mha-has-messages)>.menu-toggle{grid-column:4!important}
  html body .site-header .brand-logo img{max-width:138px!important;max-height:42px!important;width:auto!important}
  html body .site-header :is(.mha-theme-toggle,.menu-toggle,.mha-header-popover-wrap>a){touch-action:manipulation!important}
}
@media(max-width:390px){
  html body .site-header{grid-template-columns:minmax(94px,1fr) 39px 39px!important;column-gap:4px!important;padding-inline:8px!important}
  html body .site-header.mha-auth-header{grid-template-columns:minmax(88px,1fr) repeat(4,39px)!important}
  html body .site-header.mha-auth-header:not(.mha-has-messages){grid-template-columns:minmax(96px,1fr) repeat(3,39px)!important}
  html body .site-header :is(.mha-theme-toggle,.menu-toggle),
  html body .site-header .mha-header-popover-wrap,
  html body .site-header .mha-header-popover-wrap>a{width:39px!important;height:39px!important;min-width:39px!important}
  html body .site-header .brand-logo img{max-width:124px!important}
}
html:not([data-mha-theme]),html[data-mha-theme="light"]{color-scheme:light!important;background:#faf8f3!important}
html:not([data-mha-theme]) body{background:#faf8f3!important;color:#172a24!important}

/* v4.2.96 — FINAL visual authority: web === installed PWA, light/dark parity, mobile safety. */
html[data-mha-theme="light"],html[data-mha-theme="light"] body{background:#f4f6f5!important;color:#172a24!important;color-scheme:light!important}
html[data-mha-theme="dark"],html[data-mha-theme="dark"] body{background:#07131f!important;color:#f5efe6!important;color-scheme:dark!important}
html[data-mha-theme="light"] body :where(.site-header,.panel,.portal-card,.dashboard-card,.settings-card,.money-card,.mha-card,.mha-dash-panel,.mha-calm-card,.mha-guest-card,.mha-guest-booking-card,.owner-proof-card,.owner-maint-card,.owner-contract-card,.mha-modal-card,.mha-header-popover,.mha-econ-card,.mha-kpi,.admin-login-card,.pwa-sheet){background-color:#fff!important;color:#172a24!important;border-color:#d7e2dd!important}
html[data-mha-theme="dark"] body :where(.site-header,.panel,.portal-card,.dashboard-card,.settings-card,.money-card,.mha-card,.mha-dash-panel,.mha-calm-card,.mha-guest-card,.mha-guest-booking-card,.owner-proof-card,.owner-maint-card,.owner-contract-card,.mha-modal-card,.mha-header-popover,.mha-econ-card,.mha-kpi,.admin-login-card,.pwa-sheet){background-color:#0d2232!important;color:#f5efe6!important;border-color:#2a485b!important}
html[data-mha-theme="light"] body :where(.panel,.portal-card,.dashboard-card,.settings-card,.money-card,.mha-card,.mha-dash-panel,.mha-guest-card,.mha-guest-booking-card,.owner-contract-card,.admin-login-card) :where(h1,h2,h3,h4,h5,h6,b,strong,label,legend,th,td,p,small,span){color:inherit!important}
html[data-mha-theme="dark"] body :where(.panel,.portal-card,.dashboard-card,.settings-card,.money-card,.mha-card,.mha-dash-panel,.mha-guest-card,.mha-guest-booking-card,.owner-contract-card,.admin-login-card) :where(h1,h2,h3,h4,h5,h6,b,strong,label,legend,th,td,p,small,span){color:inherit!important}
html[data-mha-theme="light"] body :where(table,thead,tbody,tr,th,td){border-color:#dfe7e3!important}
html[data-mha-theme="dark"] body :where(table,thead,tbody,tr,th,td){border-color:#294557!important}
html[data-mha-theme="light"] body :where(thead th,.table-head,.nx-table-head){background:#eef3f0!important;color:#17342e!important}
html[data-mha-theme="dark"] body :where(thead th,.table-head,.nx-table-head){background:#10283a!important;color:#fffaf1!important}
html[data-mha-theme="light"] body :where(input:not([type="checkbox"]):not([type="radio"]),select,textarea){background:#fff!important;color:#172a24!important;border-color:#cfdcd6!important}
html[data-mha-theme="dark"] body :where(input:not([type="checkbox"]):not([type="radio"]),select,textarea){background:#081b29!important;color:#f5efe6!important;border-color:#2a485b!important}
html[data-mha-theme="light"] body :where(.notice,.mha-zero-block-note,.mha-empty-mini,.empty){background:#f7faf8!important;color:#40574f!important;border-color:#d7e2dd!important}
html[data-mha-theme="dark"] body :where(.notice,.mha-zero-block-note,.mha-empty-mini,.empty){background:#10283a!important;color:#d3dde4!important;border-color:#2a485b!important}

/* Inline legacy contract colors used to leak dark-mode text into light mode. */
html[data-mha-theme="light"] body .owner-contract-esign :where(.check span,p,p b){color:#172a24!important}
html[data-mha-theme="dark"] body .owner-contract-esign :where(.check span,p,p b){color:#f4f0e7!important}
html[data-mha-theme="light"] body .contract-article :where(h1,h2,h3,h4,p,span,b,strong){color:#172a24!important}
html[data-mha-theme="dark"] body .contract-article :where(h1,h2,h3,h4,p,span,b,strong){color:#f5efe6!important}
html[data-mha-theme="light"] body .contract-article-translation{background:#f7faf8!important;border-color:#b8cbc2!important}
html[data-mha-theme="dark"] body .contract-article-translation{background:#10283a!important;border-color:#4d7182!important}
html[data-mha-theme="light"] body .contract-article-sq{background:#fff8e8!important}
html[data-mha-theme="dark"] body .contract-article-sq{background:#33291b!important}

/* Header controls: one geometry for browser and installed PWA. */
html body .site-header :where(.mha-theme-toggle,.menu-toggle,.mha-header-popover-wrap>a){flex:0 0 auto!important;display:inline-grid!important;place-items:center!important}
html[data-mha-theme="light"] body .site-header :where(.mha-theme-toggle,.menu-toggle,.mha-header-popover-wrap>a){background:#f4f7f5!important;color:#17342e!important;border-color:#d9e4df!important}
html[data-mha-theme="dark"] body .site-header :where(.mha-theme-toggle,.menu-toggle,.mha-header-popover-wrap>a){background:#102637!important;color:#f7f1e6!important;border-color:#294557!important}
html[data-mha-theme="light"] body .mha-header-popover :where(b,small,em,a,p){color:#17342e!important}
html[data-mha-theme="dark"] body .mha-header-popover :where(b,small,em,a,p){color:#f6f2e9!important}

/* Logo parity. */
html[data-mha-theme="light"] body :where(.mha-logo-light,.mha-footer-logo-light,.admin-login-logo-light){display:block!important}
html[data-mha-theme="light"] body :where(.mha-logo-dark,.mha-footer-logo-dark,.admin-login-logo-dark){display:none!important}
html[data-mha-theme="dark"] body :where(.mha-logo-light,.mha-footer-logo-light,.admin-login-logo-light){display:none!important}
html[data-mha-theme="dark"] body :where(.mha-logo-dark,.mha-footer-logo-dark,.admin-login-logo-dark){display:block!important}

/* Mobile: no horizontal clipping, controls stay on the right, PWA uses the same rules. */
@media(max-width:760px){
  html,body{width:100%!important;max-width:100%!important;overflow-x:hidden!important}
  body{min-height:100dvh!important}
  html body .site-header,
  html.mha-standalone-pwa body .site-header{
    position:sticky!important;top:0!important;width:100%!important;max-width:100%!important;
    display:grid!important;align-items:center!important;grid-template-columns:minmax(92px,1fr) 42px 42px!important;
    gap:6px!important;padding:calc(8px + env(safe-area-inset-top,0px)) 10px 8px!important;min-height:64px!important;
  }
  html body .site-header.mha-auth-header,
  html.mha-standalone-pwa body .site-header.mha-auth-header{grid-template-columns:minmax(88px,1fr) repeat(4,42px)!important}
  html body .site-header.mha-auth-header:not(.mha-has-messages),
  html.mha-standalone-pwa body .site-header.mha-auth-header:not(.mha-has-messages){grid-template-columns:minmax(92px,1fr) repeat(3,42px)!important}
  html body .site-header>.brand-logo{grid-column:1!important;min-width:0!important;max-width:100%!important;margin:0!important}
  html body .site-header>.brand-logo img{width:auto!important;max-width:132px!important;max-height:40px!important}
  html body .site-header>.mha-theme-toggle{grid-column:2!important;position:relative!important;inset:auto!important;margin:0!important;width:42px!important;height:42px!important}
  html body .site-header>.mha-header-messages-wrap{grid-column:3!important;position:static!important;margin:0!important}
  html body .site-header>.mha-header-notices-wrap{grid-column:4!important;position:static!important;margin:0!important}
  html body .site-header>.menu-toggle{grid-column:3!important;position:relative!important;inset:auto!important;transform:none!important;margin:0!important;width:42px!important;height:42px!important;font-size:0!important}
  html body .site-header.mha-auth-header>.menu-toggle{grid-column:5!important}
  html body .site-header.mha-auth-header:not(.mha-has-messages)>.mha-header-notices-wrap{grid-column:3!important}
  html body .site-header.mha-auth-header:not(.mha-has-messages)>.menu-toggle{grid-column:4!important}
  html body .site-header>.pwa-language{display:none!important}
  html body .site-header>nav{grid-column:1/-1!important;min-width:0!important}
  html body .mha-header-popover{position:fixed!important;top:calc(62px + env(safe-area-inset-top,0px))!important;left:10px!important;right:10px!important;width:auto!important;max-width:none!important;max-height:72dvh!important;overflow:auto!important}
  html body :where(.panel,.portal-card,.dashboard-card,.settings-card,.money-card,.mha-card,.mha-dash-panel,.mha-guest-card,.mha-guest-booking-card,.owner-contract-card,.table-wrap,.nx-table-wrap){min-width:0!important;max-width:100%!important}
  html body :where(.table-wrap,.nx-table-wrap){overflow-x:auto!important;-webkit-overflow-scrolling:touch!important}
  html body :where(input,select,textarea,button){max-width:100%!important}
  html body :where(input,select,textarea){font-size:16px!important}
  html body .pwa-sheet{left:0!important;right:0!important;width:100%!important;max-width:100%!important;padding-bottom:calc(20px + env(safe-area-inset-bottom,0px))!important}
}
@media(max-width:380px){
  html body .site-header{grid-template-columns:minmax(84px,1fr) 39px 39px!important;gap:4px!important;padding-inline:8px!important}
  html body .site-header.mha-auth-header{grid-template-columns:minmax(78px,1fr) repeat(4,39px)!important}
  html body .site-header.mha-auth-header:not(.mha-has-messages){grid-template-columns:minmax(86px,1fr) repeat(3,39px)!important}
  html body .site-header :where(.mha-theme-toggle,.menu-toggle,.mha-header-popover-wrap,.mha-header-popover-wrap>a){width:39px!important;height:39px!important;min-width:39px!important}
  html body .site-header>.brand-logo img{max-width:116px!important}
}
@media(display-mode:standalone) and (max-width:760px){
  html body .site-header{padding-top:calc(9px + env(safe-area-inset-top,0px))!important}
  html body{padding-bottom:calc(var(--mha-mobile-nav-h,76px) + env(safe-area-inset-bottom,0px) + 14px)!important}
}
