/* MostHelt V10.28 — System Design Language
   Single premium HealthTech visual language for public pages + all portals. */
:root{
  --mh-font:Arial,"Helvetica Neue",Helvetica,sans-serif;
  --mh-green:#087c69;
  --mh-green-strong:#066457;
  --mh-green-deep:#05584b;
  --mh-mint:#e8f6f2;
  --mh-mint-2:#f2faf7;
  --mh-bg:#f6f8f7;
  --mh-surface:#ffffff;
  --mh-ink:#1b2d29;
  --mh-text:#41534e;
  --mh-muted:#778782;
  --mh-line:#dfe8e4;
  --mh-line-strong:#d2dfda;
  --mh-danger:#a84747;
  --mh-warning:#9b6b24;
  --mh-success:#087c69;
  --mh-radius-sm:12px;
  --mh-radius-md:16px;
  --mh-radius-lg:22px;
  --mh-radius-xl:28px;
  --mh-shadow:0 12px 36px rgba(18,67,58,.055);
  --mh-shadow-hover:0 18px 44px rgba(18,67,58,.08);
  --green:var(--mh-green);
  --green-2:#0b8d78;
  --green-dark:var(--mh-green-strong);
  --green-deep:var(--mh-green-deep);
  --mint:var(--mh-mint);
  --mint-2:var(--mh-mint-2);
  --ink:var(--mh-ink);
  --ink-2:#2d403b;
  --muted:var(--mh-muted);
  --line:var(--mh-line);
  --line-strong:var(--mh-line-strong);
  --paper:#fbfcfb;
  --bg:var(--mh-bg);
  --white:#fff;
  --shadow-sm:var(--mh-shadow);
  --shadow:var(--mh-shadow);
  --font-display:var(--mh-font);
  --font-body:var(--mh-font);
}
html{font-family:var(--mh-font);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
body,button,input,select,textarea{font-family:var(--mh-font)}
body{color:var(--mh-text)}
button,input,select,textarea{font-size:inherit}
::selection{background:#d8f1e8;color:var(--mh-green-deep)}
:focus-visible{outline:3px solid rgba(8,124,105,.16);outline-offset:2px}

/* Shared public UI */
body:not(.portal-page):not(.mh-hospital-document){background:#f8faf9;color:var(--mh-text)}
body:not(.portal-page):not(.mh-hospital-document) h1,
body:not(.portal-page):not(.mh-hospital-document) h2,
body:not(.portal-page):not(.mh-hospital-document) h3,
body:not(.portal-page):not(.mh-hospital-document) h4{color:var(--mh-ink);font-family:var(--mh-font);letter-spacing:-.03em}
body:not(.portal-page):not(.mh-hospital-document) p{color:var(--mh-text)}
body:not(.portal-page):not(.mh-hospital-document) input,
body:not(.portal-page):not(.mh-hospital-document) select,
body:not(.portal-page):not(.mh-hospital-document) textarea{border-color:var(--mh-line-strong);color:var(--mh-ink);background:#fff}
body:not(.portal-page):not(.mh-hospital-document) input:focus,
body:not(.portal-page):not(.mh-hospital-document) select:focus,
body:not(.portal-page):not(.mh-hospital-document) textarea:focus{border-color:#74bba9;box-shadow:0 0 0 4px rgba(8,124,105,.07)}
body:not(.portal-page):not(.mh-hospital-document) .btn,
body:not(.portal-page):not(.mh-hospital-document) .action-button,
body:not(.portal-page):not(.mh-hospital-document) .primary-link,
body:not(.portal-page):not(.mh-hospital-document) .primary-button{font-weight:700}

/* Unified cards used by public directory / booking / institution screens */
.results-page .doctor-card,
.results-page .search-summary,
.results-page .filter-panel,
.directory-page .directory-card,
.directory-profile-page .directory-profile-card,
.appointment-page .appointment-card,
.claim-page .claim-card,
.sales-page .pricing-card,
.ai-product-page .feature-card,
.security-page .security-card,
body:not(.portal-page) .panel-card{border-color:var(--mh-line)!important;border-radius:var(--mh-radius-lg)!important;box-shadow:var(--mh-shadow)!important}

/* ============= ALL PORTALS ============= */
.portal-page{
  --ink:var(--mh-ink)!important;
  --ink-2:#2c403b!important;
  --text:var(--mh-text)!important;
  --muted:var(--mh-muted)!important;
  --line:var(--mh-line)!important;
  --mint:var(--mh-green)!important;
  --mint-strong:var(--mh-green)!important;
  --mint-pale:var(--mh-mint)!important;
  --blue:var(--mh-green)!important;
  --blue-pale:var(--mh-mint)!important;
  --coral:var(--mh-green)!important;
  --coral-pale:var(--mh-mint)!important;
  --sand:#edf3f1!important;
  --violet:#edf3f1!important;
  --tenant-primary:var(--mh-green)!important;
  --tenant-accent:#bcebdc!important;
  --clinic-primary:var(--mh-green)!important;
  --clinic-accent:#bcebdc!important;
  background:var(--mh-bg)!important;
  color:var(--mh-text)!important;
  font-family:var(--mh-font)!important;
}
.portal-page *{font-family:var(--mh-font)}
.portal-page .portal-app{grid-template-columns:270px minmax(0,1fr)!important;background:var(--mh-bg)}
.portal-page .portal-sidebar{
  width:270px!important;
  background:#fbfcfb!important;
  color:var(--mh-text)!important;
  border-right:1px solid var(--mh-line)!important;
  padding:24px 18px 18px!important;
  box-shadow:none!important;
}
.portal-page .portal-sidebar .portal-brand{min-height:50px;padding:2px 9px!important;color:var(--mh-ink)!important}
.portal-page .portal-brand-logo img{width:auto!important;height:36px!important;max-width:174px!important;display:block}
.portal-page .workspace-badge{
  grid-template-columns:42px minmax(0,1fr)!important;
  gap:11px!important;
  margin:20px 0 22px!important;
  border:1px solid var(--mh-line)!important;
  border-radius:16px!important;
  background:#fff!important;
  padding:12px!important;
  box-shadow:0 5px 18px rgba(18,67,58,.025)!important;
}
.portal-page .workspace-badge>span{width:42px!important;height:42px!important;border-radius:12px!important;background:var(--mh-mint)!important;color:var(--mh-green)!important;font-size:12px!important}
.portal-page .workspace-badge small{color:#8a9995!important;font-size:9px!important;font-weight:800!important;letter-spacing:.09em!important}
.portal-page .workspace-badge b{color:var(--mh-ink)!important;font-size:13px!important;font-weight:700!important}
.portal-page .portal-nav{gap:6px!important}
.portal-page .portal-nav a{
  min-height:46px!important;
  grid-template-columns:30px minmax(0,1fr) auto!important;
  gap:8px!important;
  border:1px solid transparent!important;
  border-radius:13px!important;
  color:#667973!important;
  padding:0 11px!important;
  font-size:13px!important;
  font-weight:620!important;
}
.portal-page .portal-nav a:hover{background:#f2f7f5!important;color:var(--mh-green-deep)!important}
.portal-page .portal-nav a.active{background:var(--mh-mint)!important;color:var(--mh-green-deep)!important;border-color:#d8ece5!important;font-weight:760!important}
.portal-page .portal-nav a>i{width:30px!important;height:30px!important;border-radius:9px!important;color:#81928d!important;background:transparent!important}
.portal-page .portal-nav a.active>i{background:#fff!important;color:var(--mh-green)!important}
.portal-page .portal-nav a>em{background:var(--mh-green)!important}
.portal-page .nav-count{background:var(--mh-green)!important;color:#fff!important;border:0!important}
.portal-page .sidebar-support{margin-top:auto!important;border:1px solid var(--mh-line)!important;background:#fff!important;border-radius:15px!important;padding:11px!important}
.portal-page .sidebar-support>span{background:var(--mh-mint)!important;color:var(--mh-green)!important}
.portal-page .sidebar-support b{color:#40544f!important;font-size:11px!important}
.portal-page .sidebar-support small{color:#8b9995!important;font-size:9px!important}
.portal-page .sidebar-logout button{color:#74847f!important;font-size:11px!important;border-radius:12px!important}
.portal-page .sidebar-logout button:hover{background:#f4f7f6!important;color:var(--mh-ink)!important}
.portal-page .portal-main{grid-column:2!important;background:var(--mh-bg)}
.portal-page .portal-topbar{
  min-height:102px!important;
  padding:20px 34px!important;
  border-bottom:1px solid var(--mh-line)!important;
  background:rgba(255,255,255,.94)!important;
  backdrop-filter:blur(16px)!important;
}
.portal-page .topbar-copy>span{color:var(--mh-green)!important;font-size:10px!important;font-weight:850!important;letter-spacing:.12em!important}
.portal-page .topbar-copy h1{margin:5px 0 0!important;color:var(--mh-ink)!important;font-size:31px!important;line-height:1.08!important;font-weight:760!important;letter-spacing:-.04em!important}
.portal-page .topbar-copy p{margin:5px 0 0!important;color:#82918d!important;font-size:12px!important;line-height:1.5!important}
.portal-page .notification-button{width:42px!important;height:42px!important;border:1px solid var(--mh-line)!important;border-radius:13px!important;background:#fff!important;color:#637973!important}
.portal-page .notification-button:hover{background:var(--mh-mint-2)!important;color:var(--mh-green)!important}
.portal-page .notification-button i{background:var(--mh-green)!important}
.portal-page .user-chip{border-left:1px solid var(--mh-line)!important;padding-left:13px!important;gap:10px!important}
.portal-page .user-chip>span{width:42px!important;height:42px!important;border-radius:13px!important;background:var(--mh-mint)!important;color:var(--mh-green)!important;font-size:11px!important}
.portal-page .user-chip b{color:var(--mh-ink)!important;font-size:12px!important;font-weight:750!important}
.portal-page .user-chip small{color:#8b9995!important;font-size:10px!important}
.portal-page .portal-content{padding:30px 34px 48px!important;max-width:1700px;width:100%;margin:0 auto}
.portal-page .portal-footer{background:#fff!important;border-top:1px solid var(--mh-line)!important;color:#8a9995!important;font-size:10px!important;padding:16px 34px!important}

/* Portal surfaces */
.portal-page .welcome-strip{
  border:1px solid #dbe9e4!important;
  background:linear-gradient(135deg,#ffffff 0%,#f1faf7 100%)!important;
  color:var(--mh-ink)!important;
  border-radius:24px!important;
  padding:26px 28px!important;
  box-shadow:var(--mh-shadow)!important;
}
.portal-page .welcome-strip:after{background:radial-gradient(circle,rgba(8,124,105,.08),transparent 70%)!important;border:0!important;box-shadow:none!important}
.portal-page .welcome-strip small{color:var(--mh-green)!important;font-size:10px!important;font-weight:850!important}
.portal-page .welcome-strip h2{color:var(--mh-ink)!important;font-size:34px!important;font-weight:760!important}
.portal-page .welcome-strip p{color:#72827d!important;font-size:12px!important;line-height:1.6!important}
.portal-page .welcome-strip .action-button{background:var(--mh-green)!important;color:#fff!important}
.portal-page .metric-grid{gap:14px!important}
.portal-page .metric-card{
  min-height:134px!important;
  border:1px solid var(--mh-line)!important;
  border-radius:20px!important;
  background:#fff!important;
  box-shadow:var(--mh-shadow)!important;
  padding:19px!important;
}
.portal-page .metric-card:after{background:transparent!important}
.portal-page .metric-icon{background:var(--mh-mint)!important;color:var(--mh-green)!important;border-radius:13px!important}
.portal-page .metric-copy small{color:#7e8e89!important;font-size:10px!important;font-weight:760!important}
.portal-page .metric-copy strong{color:var(--mh-ink)!important;font-size:34px!important;font-weight:760!important}
.portal-page .metric-copy span{color:#919e9a!important;font-size:10px!important}
.portal-page .panel-card{
  border:1px solid var(--mh-line)!important;
  border-radius:22px!important;
  background:#fff!important;
  box-shadow:var(--mh-shadow)!important;
  padding:22px!important;
}
.portal-page .panel-card.flush{padding:0!important;overflow:hidden}
.portal-page .panel-head{gap:14px!important;margin-bottom:17px!important}
.portal-page .panel-head h2{color:var(--mh-ink)!important;font-size:19px!important;font-weight:740!important;letter-spacing:-.025em!important}
.portal-page .panel-head p{color:#84938f!important;font-size:11px!important;line-height:1.5!important}
.portal-page .panel-head>a,.portal-page .panel-head>button{color:var(--mh-green)!important;font-size:11px!important;font-weight:750!important}
.portal-page .panel-table{color:var(--mh-text)!important}
.portal-page .panel-table th{background:#f7faf9!important;color:#7f8e89!important;font-size:10px!important;font-weight:800!important;letter-spacing:.075em!important}
.portal-page .panel-table td{border-color:#e7ecea!important;font-size:12px!important;line-height:1.5!important;color:#465a55!important}
.portal-page .panel-table td strong{color:var(--mh-ink)!important;font-size:12.5px!important}
.portal-page .panel-table td small{color:#8c9996!important;font-size:10px!important}
.portal-page .task-row,.portal-page .notification-row,.portal-page .quick-action{
  border-color:var(--mh-line)!important;
  background:#fff!important;
  border-radius:15px!important;
}
.portal-page .quick-action:hover,.portal-page .task-row:hover{background:#f7fbf9!important;border-color:#c8ded6!important}
.portal-page .quick-action>i{background:var(--mh-mint)!important;color:var(--mh-green)!important}
.portal-page .quick-action b{color:var(--mh-ink)!important;font-size:12px!important}
.portal-page .quick-action small{color:#879690!important;font-size:10px!important}
.portal-page .panel-empty>span{background:var(--mh-mint)!important;color:var(--mh-green)!important}
.portal-page .panel-empty h3{color:var(--mh-ink)!important;font-size:17px!important}
.portal-page .panel-empty p{color:#81908c!important;font-size:11px!important;line-height:1.6!important}
.portal-page .status-badge{border-radius:999px!important;font-size:10px!important;font-weight:720!important}
.portal-page .status-badge.active{background:#e9f7f2!important;color:#08705f!important}
.portal-page .status-badge.pending{background:#fff7e9!important;color:#946820!important}
.portal-page .status-badge.suspended{background:#fff1f1!important;color:#a64a4a!important}

/* Portal forms */
.portal-page .portal-form input:not([type=checkbox]):not([type=radio]),
.portal-page .portal-form select,
.portal-page .portal-form textarea,
.portal-page .form-grid input:not([type=checkbox]):not([type=radio]),
.portal-page .form-grid select,
.portal-page .form-grid textarea{
  min-height:48px!important;
  border:1px solid var(--mh-line-strong)!important;
  border-radius:13px!important;
  background:#fff!important;
  color:var(--mh-ink)!important;
  padding:11px 13px!important;
  font-size:13px!important;
  line-height:1.5!important;
  box-shadow:none!important;
}
.portal-page textarea{resize:vertical}
.portal-page .portal-form input:focus,
.portal-page .portal-form select:focus,
.portal-page .portal-form textarea:focus,
.portal-page .form-grid input:focus,
.portal-page .form-grid select:focus,
.portal-page .form-grid textarea:focus{border-color:#78bba9!important;box-shadow:0 0 0 4px rgba(8,124,105,.065)!important;outline:0!important}
.portal-page .portal-form label>span,.portal-page .form-grid label>span{color:#566b65!important;font-size:11px!important;font-weight:720!important}
.portal-page .form-help{color:#8c9996!important;font-size:10px!important;line-height:1.55!important}
.portal-page .portal-button,.portal-page .action-button{
  min-height:44px!important;
  border-radius:13px!important;
  padding:0 16px!important;
  font-size:12px!important;
  font-weight:720!important;
  box-shadow:none!important;
}
.portal-page .portal-button.primary,.portal-page .action-button.mint,.portal-page .action-button.primary{background:var(--mh-green)!important;color:#fff!important;border-color:var(--mh-green)!important}
.portal-page .action-button.ghost,.portal-page .action-button.secondary{background:#fff!important;color:var(--mh-green-deep)!important;border-color:var(--mh-line-strong)!important}
.portal-page .portal-button:hover,.portal-page .action-button:hover{transform:translateY(-1px)!important;box-shadow:0 10px 24px rgba(8,124,105,.09)!important}

/* Doctor portal — remove remaining demo-sized typography */
.portal-doktor .doctor-profile-card h2{font-size:20px!important}
.portal-doktor .doctor-profile-card>p{font-size:11px!important}
.portal-doktor .doctor-profile-state span{font-size:10px!important}
.portal-doktor .doctor-profile-completion{font-size:10px!important}
.portal-doktor .doctor-profile-nav a{min-height:42px!important;font-size:12px!important}
.portal-doktor .doctor-profile-form label>span,.portal-doktor .doctor-consultation-field>span{font-size:11px!important}
.portal-doktor .doctor-profile-form input:not([type=checkbox]),.portal-doktor .doctor-profile-form select,.portal-doktor .doctor-profile-form textarea{font-size:13px!important}
.portal-doktor .doctor-profile-form .form-help,.portal-doktor .doctor-upload-form .form-help{font-size:10px!important}
.portal-doktor .doctor-toggle b{font-size:11px!important}
.portal-doktor .doctor-form-divider span{font-size:9px!important}
.portal-doktor .doctor-security-note b{font-size:11px!important}
.portal-doktor .doctor-security-note p{font-size:10px!important}
.portal-doktor .doctor-identity-grid small{font-size:10px!important}
.portal-doktor .doctor-identity-grid strong{font-size:12px!important}
.portal-doktor .doctor-kpi-card,.portal-doktor .doctor-profile-section,.portal-doktor .doctor-identity-card,.portal-doktor .doctor-profile-card,.portal-doktor .doctor-profile-nav{border-color:var(--mh-line)!important;box-shadow:var(--mh-shadow)!important}
.portal-doktor .doctor-command-hero{border-color:var(--mh-line)!important;background:linear-gradient(135deg,#fff 0%,#f1faf7 100%)!important;box-shadow:var(--mh-shadow)!important}

/* Admin / clinic / citizen / client use the same visual language */
.portal-admin .portal-sidebar,
.portal-klinik .portal-sidebar,
.portal-doktor .portal-sidebar,
.portal-vatandas .portal-sidebar,
.portal-danisan .portal-sidebar{background:#fbfcfb!important}
.portal-admin .portal-content,
.portal-klinik .portal-content,
.portal-doktor .portal-content,
.portal-vatandas .portal-content,
.portal-danisan .portal-content{background:var(--mh-bg)!important}
.portal-klinik .clinic-home-hero{background:linear-gradient(135deg,#fff 0%,#f4faf7 100%)!important;border-color:var(--mh-line)!important;box-shadow:var(--mh-shadow)!important}
.portal-klinik .clinic-home-hero h2{color:var(--mh-ink)!important}
.portal-klinik .next-appointment-card{background:var(--mh-green)!important;box-shadow:0 14px 34px rgba(8,124,105,.13)!important}
.portal-klinik .clinic-primary-action{background:var(--mh-green)!important;border-color:var(--mh-green)!important}
.portal-klinik .clinic-secondary-action{color:var(--mh-green-deep)!important;border-color:var(--mh-line-strong)!important}

/* Auth / login consistency */
.auth-page{background:#f8f6f2!important;color:var(--mh-ink)!important}
.mh-login-header{background:rgba(255,255,255,.92)!important;border-bottom:1px solid #e7e3dc!important}
.mh-login-brand img{height:38px!important}
.mh-login-card h1{color:var(--mh-ink)!important;font-family:var(--mh-font)!important}
.mh-login-input{border-radius:16px!important}
.mh-login-submit{background:var(--mh-green)!important;color:#fff!important}
.mh-forgot-link,.mh-login-register a{color:var(--mh-green)!important}

/* Responsive */
@media(max-width:1080px){
  .portal-page .portal-app{grid-template-columns:1fr!important}
  .portal-page .portal-main{grid-column:1!important}
  .portal-page .portal-sidebar{transform:translateX(-105%);transition:.2s ease;z-index:80}
  .portal-page .portal-sidebar.open,.portal-page .portal-sidebar.is-open{transform:translateX(0)}
  .portal-page .sidebar-toggle{display:block!important}
  .portal-page .portal-content{padding:24px 20px 42px!important}
}
@media(max-width:700px){
  .portal-page .portal-topbar{padding:16px 14px!important;min-height:88px!important}
  .portal-page .topbar-copy h1{font-size:24px!important}
  .portal-page .topbar-copy p{display:none}
  .portal-page .user-chip div{display:none!important}
  .portal-page .portal-content{padding:18px 13px 36px!important}
  .portal-page .metric-grid{grid-template-columns:1fr 1fr!important}
  .portal-page .welcome-strip{grid-template-columns:1fr!important;padding:20px!important}
  .portal-page .welcome-strip h2{font-size:28px!important}
  .portal-page .panel-card{padding:18px!important}
}
@media(max-width:480px){
  .portal-page .metric-grid{grid-template-columns:1fr!important}
}

/* Public navigation and core screen harmonization */
.results-header,.directory-header,.sales-nav-wrap,.sec-header,.amb-top,
body:not(.portal-page) .mhc-header{
  background:rgba(255,255,255,.95)!important;
  border-bottom:1px solid var(--mh-line)!important;
  box-shadow:none!important;
}
.results-topbar,.sales-nav,.sec-topbar,.amb-nav{min-height:78px!important}
.results-header .logo img,.directory-header .logo img,.sales-nav .logo img{height:34px!important;width:auto!important}
.results-topbar a,.sales-nav a,.sec-nav a,.amb-nav-links a{font-family:var(--mh-font)!important;font-weight:700!important;color:#536861!important}
.results-topbar a:hover,.sales-nav a:hover,.sec-nav a:hover,.amb-nav-links a:hover{color:var(--mh-green)!important}

/* Primary action language */
.result-search-btn,.directory-search .btn,.directory-card .book-btn,
.mh-submit,.claim-page .btn,.sales-primary,.sales-nav-cta,.sec-button.primary,
.mhc-btn:not(.ghost),.amb-submit,.pay-button.primary,.ai-product-page .sales-primary,
body:not(.portal-page) button[type=submit].btn{
  background:var(--mh-green)!important;
  color:#fff!important;
  border-color:var(--mh-green)!important;
  border-radius:14px!important;
  font-weight:750!important;
  box-shadow:0 10px 26px rgba(8,124,105,.1)!important;
}
.result-search-btn:hover,.directory-search .btn:hover,.directory-card .book-btn:hover,
.mh-submit:hover,.claim-page .btn:hover,.sales-primary:hover,.sales-nav-cta:hover,
.sec-button.primary:hover,.mhc-btn:not(.ghost):hover,.amb-submit:hover,.pay-button.primary:hover{
  background:var(--mh-green-strong)!important;
  transform:translateY(-1px)!important;
}
.sales-secondary,.sec-button.secondary,.mhc-btn.ghost,.pay-button.ghost,.profile-btn,
body:not(.portal-page) .outline{
  background:#fff!important;
  color:var(--mh-green-deep)!important;
  border:1px solid var(--mh-line-strong)!important;
  border-radius:14px!important;
  font-weight:700!important;
}

/* Directory and search */
.results-page,.directory-page,.directory-profile-page,.appointment-page,.claim-page,.sales-page,.security-page,.ai-product-page{background:var(--mh-bg)!important}
.results-page .filters-panel,.results-page .filter-card,.results-page .doctor-result-card,
.directory-page .directory-card,.appointment-page .mh-booking-panel,.appointment-page .mh-booking-summary,
.claim-page .claim-form-panel,.claim-page .claim-face-panel,.sales-page .sales-plan-card,.sales-page .sales-summary-card,
.security-page .sec-card,.security-page .sec-feature-card,.ai-product-page .ai-feature-card,
.directory-profile-page .profile-card{
  border-color:var(--mh-line)!important;
  border-radius:var(--mh-radius-lg)!important;
  box-shadow:var(--mh-shadow)!important;
  background:#fff!important;
}
.results-page .filter-kicker,.directory-eyebrow,.sales-page .kicker,.security-page .sec-eyebrow,.ai-product-eyebrow{color:var(--mh-green)!important}
.results-page .result-mode-btn.active,.results-page .growth-check:has(input:checked){background:var(--mh-mint)!important;color:var(--mh-green-deep)!important;border-color:#c9e5dc!important}
.results-page .result-search-btn{min-height:54px!important}
.results-page .unified-search-form input,.results-page .unified-search-form select,
.directory-search input,.appointment-page input,.appointment-page select,.appointment-page textarea,
.claim-page input,.claim-page select,.claim-page textarea{
  border-radius:13px!important;
  border-color:var(--mh-line-strong)!important;
}

/* Public booking / payment */
.appointment-page .mh-booking-shell,.pay-shell{max-width:1180px!important}
.appointment-page .mh-booking-panel,.appointment-page .mh-booking-summary,.pay-card{border:1px solid var(--mh-line)!important;border-radius:24px!important;background:#fff!important;box-shadow:var(--mh-shadow)!important}
.appointment-page .mh-booking-eyebrow,.pay-badge{color:var(--mh-green)!important}
.appointment-page .mh-payment-option:has(input:checked){border-color:#9ed4c4!important;background:var(--mh-mint-2)!important}

/* Security center / legal content */
.security-page .sec-hero,.security-page .sec-feature-strip,.security-page .sec-section{font-family:var(--mh-font)!important}
.security-page .sec-cta{background:var(--mh-green)!important;color:#fff!important}
.security-page .sec-shield,.security-page .sec-art-badge{color:var(--mh-green)!important}
.security-page .sec-doc-card,.security-page .sec-faq details{border-color:var(--mh-line)!important;background:#fff!important;border-radius:18px!important}
.auth-page:not(.mh-login-page) .auth-card,.legal-card{border:1px solid var(--mh-line)!important;border-radius:24px!important;background:#fff!important;box-shadow:var(--mh-shadow)!important}

/* Ambulance marketplace */
.amb-top,.af-head{background:#fff!important;border-bottom:1px solid var(--mh-line)!important}
.amb-form-card,.amb-how,.amb-disclaimer,.amb-request,.amb-offer,.af-card,.af-request,.af-row{
  border-color:var(--mh-line)!important;
  border-radius:var(--mh-radius-lg)!important;
  background:#fff!important;
  box-shadow:var(--mh-shadow)!important;
}
.amb-kicker,.af-welcome>div>small{color:var(--mh-green)!important}
.af-btn,.af-offer-form button{background:var(--mh-green)!important;border-radius:13px!important}
.af-chip{background:var(--mh-mint)!important;color:var(--mh-green-deep)!important}

/* Institution profile */
.mhc-hero-card,.mhc-card,.mhc-doctor{border-color:var(--mh-line)!important;border-radius:var(--mh-radius-lg)!important;box-shadow:var(--mh-shadow)!important;background:#fff!important}
.mhc-kicker,.mhc-score{color:var(--mh-green)!important}

/* Prevent old role-specific accent colors from leaking through */
.portal-page .sand,.portal-page .blue,.portal-page .coral{background:var(--mh-mint)!important;color:var(--mh-green)!important}

/* ======================================================================
   MostHelt V10.29 — Desktop + Mobile Pixel Polish
   One spacing, type, radius, touch and responsive standard across system.
   ====================================================================== */
:root{
  --mh-content:1240px;
  --mh-space-1:6px;
  --mh-space-2:10px;
  --mh-space-3:14px;
  --mh-space-4:18px;
  --mh-space-5:24px;
  --mh-space-6:32px;
  --mh-space-7:40px;
  --mh-control-h:50px;
}
html{font-size:16px;scroll-padding-top:96px}
body{font-size:15px;line-height:1.55}
img{max-width:100%}
a,button,input,select,textarea{-webkit-tap-highlight-color:transparent}
button,a,input,select,textarea{touch-action:manipulation}

/* Public desktop rhythm and typography */
body:not(.portal-page):not(.mh-hospital-document) .container{width:min(var(--mh-content),calc(100% - 40px))}
body:not(.portal-page):not(.mh-hospital-document) h1{font-weight:760;line-height:1.06}
body:not(.portal-page):not(.mh-hospital-document) h2{font-weight:740;line-height:1.12}
body:not(.portal-page):not(.mh-hospital-document) h3{font-weight:720;line-height:1.2}
body:not(.portal-page):not(.mh-hospital-document) p{line-height:1.65}
body:not(.portal-page):not(.mh-hospital-document) button,
body:not(.portal-page):not(.mh-hospital-document) input,
body:not(.portal-page):not(.mh-hospital-document) select,
body:not(.portal-page):not(.mh-hospital-document) textarea{min-height:44px}

/* Search / directory — remove remaining demo-sized type */
.results-page .results-topbar nav{font-size:14px!important}
.results-page .results-search-form label>span,
.results-page .unified-search-form label>span{font-size:11px!important;letter-spacing:.02em!important}
.results-page .results-search-form select,
.results-page .unified-search-form select,
.results-page .unified-search-form input{font-size:14px!important}
.results-page .result-mode-btn{font-size:13px!important}
.results-page .filter-kicker{font-size:11px!important}
.results-page .filter-card h2{font-size:24px!important}
.results-page .filter-card p{font-size:13px!important;line-height:1.6!important}
.results-page .filter-card strong{font-size:14px!important}
.results-page .filter-card small{font-size:11px!important}
.results-page .safe-card strong{font-size:13px!important}
.results-page .safe-card small{font-size:11px!important}
.results-page .results-head h1,.results-page .results-head-v1021 h1{font-size:clamp(30px,3vw,39px)!important}
.results-page .results-head p,.results-page .results-head-v1021 p{font-size:14px!important;line-height:1.6!important}
.results-page .sort-form label{font-size:12px!important}
.results-page .sort-form select{font-size:13px!important;min-height:42px!important}
.results-page .doctor-result-card-v1021 .doctor-title-line{font-size:18px!important;line-height:1.25!important}
.results-page .doctor-result-card-v1021 .doctor-identity-v1021 h2{font-size:14px!important;line-height:1.4!important}
.results-page .stars-v1021{font-size:15px!important}
.results-page .rating-row-v1021 strong{font-size:13px!important}
.results-page .rating-row-v1021 small{font-size:12px!important}
.results-page .doctor-tabs-v1021 span{font-size:12px!important}
.results-page .address-v1021 strong{font-size:13px!important}
.results-page .address-v1021 p{font-size:12px!important}
.results-page .doctor-tags-v1021 span{font-size:11px!important;padding:7px 10px!important}
.results-page .doctor-tags-v1021 a{font-size:12px!important}
.results-page .specialty-suggest-v1021{padding:22px!important}
.results-page .specialty-suggest-v1021>strong{font-size:16px!important}
.results-page .specialty-suggest-v1021 a{font-size:13px!important;min-height:40px!important;padding:0 14px!important}
.results-page .slot-v1021{font-size:13px!important;min-height:39px!important}
.results-page .availability-v1021{font-size:13px!important}
.results-page .more-slots-v1021{font-size:13px!important}
.results-page .unified-directory-title h3{font-size:18px!important}
.results-page .directory-listing-badge{font-size:10px!important}
.results-page .unified-directory-meta span{font-size:12px!important}
.results-page .unified-directory-meta b{font-size:9px!important}
.results-page .unified-directory-note{font-size:11px!important}
.results-page .claim-inline{font-size:11px!important}
.results-page .profile-btn,.results-page .book-btn{font-size:12px!important;min-height:44px!important}

/* Public profile desktop consistency */
.mh13-profile-page .mh13-shell{width:min(var(--mh-content),calc(100% - 40px))}
.mh13-profile-page .mh13-header-inner{width:min(1280px,calc(100% - 40px))}
.mh13-profile-page .mh13-profile-main-card,
.mh13-profile-page .mh13-card,
.mh13-profile-page .mh13-side-card{border-color:var(--mh-line)!important}
.mh13-profile-page .mh13-readable{max-width:78ch}

/* All portal desktop polish */
.portal-page{font-size:14px!important;line-height:1.55!important}
.portal-page .portal-app{grid-template-columns:264px minmax(0,1fr)!important}
.portal-page .portal-sidebar{width:264px!important;padding:22px 16px 18px!important}
.portal-page .portal-main{min-width:0!important}
.portal-page .portal-topbar{min-height:94px!important;padding:18px 30px!important}
.portal-page .topbar-copy>span{font-size:11px!important}
.portal-page .topbar-copy h1{font-size:30px!important}
.portal-page .topbar-copy p{font-size:13px!important}
.portal-page .portal-content{padding:28px 30px 48px!important;max-width:1640px!important}
.portal-page .portal-footer{padding:16px 30px!important;font-size:11px!important}
.portal-page .portal-nav a{min-height:48px!important;font-size:14px!important;padding:0 12px!important}
.portal-page .workspace-badge small{font-size:10px!important}
.portal-page .workspace-badge b{font-size:14px!important}
.portal-page .sidebar-support b{font-size:12px!important}
.portal-page .sidebar-support small{font-size:10px!important}
.portal-page .sidebar-logout button{font-size:12px!important;min-height:42px!important}
.portal-page .user-chip b{font-size:13px!important}
.portal-page .user-chip small{font-size:11px!important}
.portal-page .metric-card{min-height:146px!important;padding:21px!important}
.portal-page .metric-copy small{font-size:11px!important}
.portal-page .metric-copy strong{font-size:36px!important}
.portal-page .metric-copy span{font-size:11px!important;line-height:1.5!important}
.portal-page .panel-card{padding:24px!important}
.portal-page .panel-head h2{font-size:21px!important}
.portal-page .panel-head p{font-size:12.5px!important}
.portal-page .panel-head>a,.portal-page .panel-head>button{font-size:12px!important;min-height:40px!important}
.portal-page .panel-table{min-width:100%;font-size:13px!important}
.portal-page .panel-table th{font-size:11px!important;padding-top:13px!important;padding-bottom:13px!important}
.portal-page .panel-table td{font-size:13px!important;padding-top:14px!important;padding-bottom:14px!important}
.portal-page .panel-table td strong{font-size:13.5px!important}
.portal-page .panel-table td small{font-size:11px!important}
.portal-page .quick-action b{font-size:13px!important}
.portal-page .quick-action small{font-size:11px!important}
.portal-page .panel-empty h3{font-size:19px!important}
.portal-page .panel-empty p{font-size:12.5px!important}
.portal-page .status-badge{font-size:11px!important;padding:6px 9px!important}
.portal-page .portal-form label>span,.portal-page .form-grid label>span{font-size:12px!important}
.portal-page .portal-form input:not([type=checkbox]):not([type=radio]),
.portal-page .portal-form select,
.portal-page .portal-form textarea,
.portal-page .form-grid input:not([type=checkbox]):not([type=radio]),
.portal-page .form-grid select,
.portal-page .form-grid textarea{min-height:50px!important;font-size:14px!important}
.portal-page .form-help{font-size:11px!important}
.portal-page .portal-button,.portal-page .action-button{min-height:46px!important;font-size:13px!important;padding:0 18px!important}
.portal-page .filter-bar input,.portal-page .filter-bar select{min-height:46px!important;font-size:13px!important}

/* Doctor portal — product-grade profile editor typography */
.portal-doktor .doctor-profile-card h2{font-size:22px!important}
.portal-doktor .doctor-profile-card>p{font-size:13px!important;line-height:1.6!important}
.portal-doktor .doctor-profile-state span,.portal-doktor .doctor-profile-completion{font-size:12px!important}
.portal-doktor .doctor-profile-nav a{min-height:46px!important;font-size:13px!important}
.portal-doktor .doctor-profile-form label>span,.portal-doktor .doctor-consultation-field>span{font-size:12px!important}
.portal-doktor .doctor-profile-form input:not([type=checkbox]),
.portal-doktor .doctor-profile-form select,
.portal-doktor .doctor-profile-form textarea{font-size:14px!important}
.portal-doktor .doctor-profile-form .form-help,.portal-doktor .doctor-upload-form .form-help{font-size:11px!important}
.portal-doktor .doctor-toggle b,.portal-doktor .doctor-security-note b{font-size:12px!important}
.portal-doktor .doctor-security-note p{font-size:11px!important}
.portal-doktor .doctor-identity-grid small{font-size:11px!important}
.portal-doktor .doctor-identity-grid strong{font-size:13px!important}
.portal-doktor .doctor-form-divider span{font-size:10px!important}

/* General table overflow safety */
.portal-page .panel-card.flush,
.portal-page .table-scroll,
.portal-page .portal-table-wrap{overflow-x:auto!important;-webkit-overflow-scrolling:touch}
.portal-page .panel-card.flush .panel-table{min-width:760px}

/* Authentication polish */
.mh-login-card{width:min(100%,520px)!important}
.mh-login-card h1{font-size:clamp(28px,3vw,34px)!important;letter-spacing:-.035em!important}
.mh-login-input{min-height:54px!important;font-size:15px!important}
.mh-login-submit{min-height:54px!important;font-size:15px!important}

/* Other public cards and forms */
.pay-card,.amb-form-card,.amb-card,.af-card,.claim-form-panel,.claim-face-panel{box-shadow:var(--mh-shadow)!important}
.pay-card p,.amb-form-card>p,.amb-card p,.af-card>p{font-size:14px!important;line-height:1.65!important}
.amb-form-card label>span,.af-offer-form label span{font-size:12px!important}
.amb-form-card input,.amb-form-card select,.amb-form-card textarea,
.af-offer-form input,.af-offer-form select,.af-offer-form textarea{min-height:48px!important;font-size:14px!important}

/* ============================= MOBILE ============================= */
@media(max-width:1080px){
  .portal-page .portal-sidebar{width:min(320px,86vw)!important;max-width:320px!important;box-shadow:0 26px 80px rgba(14,47,40,.18)!important}
  .portal-page .sidebar-backdrop{position:fixed!important;inset:0!important;background:rgba(13,35,30,.34)!important;backdrop-filter:blur(2px)!important;z-index:70!important;opacity:0!important;visibility:hidden!important;transition:.2s ease!important}
  .portal-page .sidebar-backdrop.show{opacity:1!important;visibility:visible!important}
  .portal-page .portal-content{padding:24px 20px 42px!important}
  .portal-page .portal-topbar{padding:16px 20px!important}
  .portal-page .metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

@media(max-width:820px){
  html{scroll-padding-top:76px}
  body{font-size:15px}
  body:not(.portal-page):not(.mh-hospital-document) .container,
  .mh13-profile-page .mh13-shell,
  .mh13-profile-page .mh13-header-inner{width:min(100% - 24px,100%)}

  /* Public nav */
  .results-header,.directory-header,.sales-nav-wrap,.sec-header,.amb-top{position:sticky!important;top:0!important;z-index:50!important}
  .results-topbar,.sales-nav,.sec-topbar,.amb-nav{min-height:68px!important;height:auto!important}
  .results-header .logo img,.directory-header .logo img,.sales-nav .logo img,.amb-nav img{height:31px!important;width:auto!important}

  /* Search result cards */
  .results-page .results-main-v1021{padding:20px 0 46px!important}
  .results-page .results-layout-v1021{display:block!important}
  .results-page .results-head-v1021{align-items:flex-start!important}
  .results-page .specialty-suggest-v1021{padding:18px!important;margin-bottom:14px!important}
  .results-page .doctor-result-card-v1021{grid-template-columns:1fr!important;border-radius:20px!important}
  .results-page .doctor-profile-v1021{border-right:0!important;border-bottom:1px solid var(--mh-line)!important;padding:16px!important}
  .results-page .doctor-profile-top-v1021{grid-template-columns:88px minmax(0,1fr)!important;gap:13px!important}
  .results-page .doctor-photo-v1021{width:88px!important;height:104px!important;border-radius:18px!important}
  .results-page .doctor-result-card-v1021 .doctor-title-line{font-size:16px!important}
  .results-page .doctor-result-card-v1021 .doctor-identity-v1021 h2{font-size:13px!important}
  .results-page .availability-v1021{padding:15px 13px 0!important}
  .results-page .availability-days-v1021{grid-template-columns:repeat(4,88px)!important;overflow-x:auto!important;scroll-snap-type:x proximity!important;padding-bottom:8px!important}
  .results-page .availability-days-v1021>*{scroll-snap-align:start}
  .results-page .slot-v1021{font-size:12px!important;min-height:38px!important}
  .results-page .more-slots-v1021{min-height:48px!important}

  /* Public profile */
  .mh13-profile-page .mh13-profile-main-card{padding:18px!important;border-radius:24px!important}
  .mh13-profile-page .mh13-profile-grid{gap:16px!important}
  .mh13-profile-page .mh13-profile-summary{padding:0 0 16px!important;gap:18px!important}
  .mh13-profile-page .mh13-photo{width:132px!important;height:132px!important;border-radius:24px!important}
  .mh13-profile-page .mh13-profile-copy h1{font-size:32px!important}
  .mh13-profile-page .mh13-profile-meta{font-size:16px!important}
  .mh13-profile-page .mh13-metric-strip{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
  .mh13-profile-page .mh13-metric-strip article{padding:14px!important;border-radius:16px!important}
  .mh13-profile-page .mh13-metric-strip strong{font-size:24px!important}
  .mh13-profile-page .mh13-metric-strip small{font-size:12px!important}
  .mh13-profile-page .mh13-about-surface,.mh13-profile-page .mh13-card,.mh13-profile-page .mh13-side-card{padding:20px!important;border-radius:22px!important}
  .mh13-profile-page .mh13-section-tabs{overflow-x:auto!important;flex-wrap:nowrap!important;padding-bottom:5px!important;scrollbar-width:none!important}
  .mh13-profile-page .mh13-section-tabs::-webkit-scrollbar{display:none}
  .mh13-profile-page .mh13-section-tabs a{white-space:nowrap!important;min-height:44px!important}

  /* Portal */
  .portal-page .portal-topbar{min-height:82px!important;padding:14px 14px!important;gap:10px!important}
  .portal-page .sidebar-toggle{width:44px!important;height:44px!important;min-width:44px!important;border-radius:13px!important}
  .portal-page .topbar-copy{min-width:0!important}
  .portal-page .topbar-copy>span{font-size:10px!important}
  .portal-page .topbar-copy h1{font-size:23px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:55vw!important}
  .portal-page .topbar-copy p{display:none!important}
  .portal-page .topbar-actions{gap:7px!important}
  .portal-page .notification-button{width:42px!important;height:42px!important;min-width:42px!important}
  .portal-page .user-chip{padding-left:8px!important}
  .portal-page .user-chip>span{width:42px!important;height:42px!important}
  .portal-page .user-chip div{display:none!important}
  .portal-page .portal-content{padding:18px 13px 34px!important}
  .portal-page .welcome-strip{padding:20px!important;border-radius:20px!important}
  .portal-page .welcome-strip h2{font-size:28px!important}
  .portal-page .welcome-strip p{font-size:13px!important}
  .portal-page .metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  .portal-page .metric-card{min-height:126px!important;padding:16px!important;border-radius:18px!important}
  .portal-page .metric-copy strong{font-size:30px!important}
  .portal-page .metric-copy small{font-size:10.5px!important}
  .portal-page .metric-copy span{font-size:10.5px!important}
  .portal-page .panel-card{padding:17px!important;border-radius:19px!important}
  .portal-page .panel-head{align-items:flex-start!important;flex-wrap:wrap!important}
  .portal-page .panel-head h2{font-size:19px!important}
  .portal-page .panel-head p{font-size:12px!important}
  .portal-page .filter-bar{display:grid!important;grid-template-columns:1fr!important;gap:9px!important}
  .portal-page .filter-bar input,.portal-page .filter-bar select{width:100%!important}
  .portal-page .form-grid{grid-template-columns:1fr!important}
  .portal-page .form-grid .wide{grid-column:1!important}
  .portal-page .portal-dialog-inner{width:min(94vw,720px)!important;max-height:88dvh!important;overflow:auto!important}
  .portal-page .portal-footer{padding:14px!important;gap:10px!important;justify-content:center!important;text-align:center!important}

  /* Auth */
  .mh-login-shell{padding-left:16px!important;padding-right:16px!important}
  .mh-login-card{width:100%!important}
}

@media(max-width:560px){
  /* Public */
  body:not(.portal-page):not(.mh-hospital-document) .container,
  .mh13-profile-page .mh13-shell,
  .mh13-profile-page .mh13-header-inner{width:min(100% - 20px,100%)}
  body:not(.portal-page):not(.mh-hospital-document) h1{font-size:clamp(28px,9vw,38px)}
  body:not(.portal-page):not(.mh-hospital-document) h2{font-size:clamp(23px,7vw,30px)}
  .results-page .results-head-v1021 h1{font-size:28px!important}
  .results-page .specialty-suggest-v1021 a{font-size:12px!important;min-height:38px!important}
  .results-page .doctor-profile-top-v1021{grid-template-columns:76px minmax(0,1fr)!important}
  .results-page .doctor-photo-v1021{width:76px!important;height:90px!important}
  .results-page .availability-days-v1021{grid-template-columns:repeat(4,82px)!important}

  .mh13-profile-page .mh13-photo{width:118px!important;height:118px!important}
  .mh13-profile-page .mh13-profile-copy h1{font-size:29px!important}
  .mh13-profile-page .mh13-cta-row{display:grid!important;grid-template-columns:1fr 1fr!important;width:100%!important}
  .mh13-profile-page .mh13-cta-row .mh13-primary-btn,
  .mh13-profile-page .mh13-cta-row .mh13-secondary-btn{grid-column:1/-1!important;width:100%!important}
  .mh13-profile-page .mh13-metric-strip{grid-template-columns:1fr!important}
  .mh13-profile-page .mh13-value-grid{grid-template-columns:1fr!important}
  .mh13-profile-page .mh13-time-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .mh13-profile-page .mh13-location-actions{grid-template-columns:1fr!important}
  .mh13-profile-page .mh13-review-layout{grid-template-columns:1fr!important}
  .mh13-profile-page .mh13-review-grid{grid-template-columns:1fr!important}
  .mh13-profile-page .mh13-bottom-actions{width:100%!important}
  .mh13-profile-page .mh13-bottom-actions a{width:100%!important}

  /* Portal */
  .portal-page .topbar-copy h1{font-size:21px!important;max-width:46vw!important}
  .portal-page .notification-button:first-of-type{display:none!important}
  .portal-page .metric-grid{grid-template-columns:1fr!important}
  .portal-page .metric-card{min-height:112px!important}
  .portal-page .panel-card{padding:15px!important}
  .portal-page .panel-table{min-width:700px!important}
  .portal-page .action-button,.portal-page .portal-button{min-height:46px!important}
  .portal-page .button-row,.portal-page .form-actions{display:grid!important;grid-template-columns:1fr!important;gap:9px!important}
  .portal-page .button-row .action-button,.portal-page .form-actions .action-button,.portal-page .form-actions button{width:100%!important}

  /* Login */
  .mh-login-header{min-height:68px!important}
  .mh-login-brand img{height:32px!important}
  .mh-login-card{padding-left:0!important;padding-right:0!important}
}

@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}
}
