/* Shared, final responsive rules for the public site and patient portal. */
*,*::before,*::after{box-sizing:border-box}html{-webkit-text-size-adjust:100%;text-size-adjust:100%}body{min-width:0}main,section,.doctor-copy,.doctor-art,.chat-identity,.auth-layout{min-width:0}
.doctor-copy .doctor-name{font-size:clamp(24px,3.6vw,42px);font-weight:700;line-height:1.55;letter-spacing:0;margin:14px 0 12px;overflow-wrap:anywhere;color:var(--deep,#153e43)}
.doctor-copy .specialty-label{white-space:normal;line-height:1.6}.doctor-slide .portrait-note,.doctor-slide .care-seal,.doctor-slide .medical-plus{display:none}.doctor-slide .doctor-art img{object-fit:contain;object-position:center bottom}.doctor-actions{align-items:stretch}.doctor-actions button{min-height:44px;font-size:14px;line-height:1.4;white-space:normal}.doctor-art{overflow:hidden}
.message img{display:block;width:auto;max-width:100%;max-height:360px;object-fit:contain;border-radius:14px}.message audio{display:block;width:280px;max-width:100%;min-height:44px}.message .media-error{font-size:13px;color:var(--muted);padding:12px}.message .media-loading{font-size:13px;padding:12px}.message a{overflow-wrap:anywhere}.chat-mode{height:var(--viewport-height,100dvh);overflow:hidden}.chat-mode main{min-height:0}.chat-mode .chat{min-height:0;overflow:auto;overscroll-behavior:contain}.chat-mode .composer{flex-shrink:0;max-width:100%}
.booking-summary[data-payment=paid]{background:linear-gradient(125deg,#e8f6f0,#fff);border-color:#b7dfce}.booking-summary[data-payment=unpaid]{background:linear-gradient(125deg,#fff4e5,#fff);border-color:#f0d7b6}.booking-summary[data-status=entered],.booking-summary[data-status=completed]{background:linear-gradient(125deg,#e9f1ff,#fff);border-color:#c1d6f3}
@media(max-width:760px){
  input:not([type=checkbox]):not([type=radio]),select,textarea,.chat-mode .composer input{font-size:16px!important;line-height:1.5;min-height:48px}button,a{touch-action:manipulation}
  body:not(.chat-mode)>header{padding:12px 16px;gap:10px;flex-wrap:wrap}.topbar.wrap{padding:14px 0;gap:12px}.topbar nav{gap:6px}.topbar .brand strong{font-size:18px}.topbar .brand small{font-size:12px}.topbar nav button{font-size:13px;min-height:42px;padding:8px 12px}
  .wrap{width:calc(100% - 32px)}body:not(.chat-mode) main{padding:16px 16px 100px;width:100%;margin:0;max-width:100%}#public-app main.wrap{padding:0 0 28px;width:calc(100% - 32px);margin:auto}.site-intro{padding:12px 0 16px}.site-intro h1{font-size:24px}.site-intro p{font-size:14px}
  .auth-layout{display:block;min-height:0;border-radius:24px;width:100%;box-shadow:0 12px 40px #123c4310}.auth-art{display:none}.auth-layout .login{padding:28px 22px;margin:0;max-width:none;width:100%}.login h1{font-size:28px;margin:12px 0}.login>p{font-size:14px;line-height:1.8}.login label{font-size:14px;margin:18px 0}.login input{width:100%;min-width:0;border-radius:14px;padding:12px 14px}.login .primary{width:100%;min-height:48px;font-size:16px;border-radius:16px}.login #recover{font-size:14px;min-height:44px}
  .doctor-discovery{padding:0 0 18px}.discovery-caption{margin:0 0 12px;gap:8px;flex-wrap:wrap}.doctor-rail{gap:12px;border-radius:24px;scroll-padding-inline:0}.doctor-slide{grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);height:auto!important;min-height:310px;border-radius:24px;flex-basis:100%}.doctor-copy{padding:22px 18px;display:flex;flex-direction:column;justify-content:center}.doctor-copy .specialty-label{font-size:12px;padding:5px 10px;align-self:flex-start}.doctor-copy .doctor-name{font-size:24px;line-height:1.6;margin:12px 0 8px;display:block;overflow:visible}.doctor-copy>p{font-size:13px;line-height:1.9;margin:0 0 16px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.doctor-actions{gap:8px;display:flex;flex-direction:column}.doctor-actions button{font-size:13px;padding:10px 12px;border-radius:14px;width:100%}.doctor-art{min-height:300px;align-self:stretch;position:relative}.doctor-art img{position:absolute;inset:auto 0 0;width:100%;height:96%;max-width:none;transform:none}.portrait-fallback{font-size:64px}.care-benefits{gap:6px;flex-wrap:wrap}.care-benefits>span{font-size:11px;padding:8px}.carousel-controls{gap:8px;flex-wrap:wrap}.carousel-controls .swipe-hint{font-size:12px}.carousel-arrow{min-width:40px;min-height:40px}
  dialog{max-width:calc(100vw - 24px);width:min(480px,calc(100vw - 24px));max-height:calc(100dvh - 32px);padding:20px;border-radius:22px;overflow:auto}#nav{width:calc(100% - 24px);max-width:540px;bottom:max(10px,env(safe-area-inset-bottom));gap:2px}.booking-summary{padding:18px;border-radius:20px}.booking-summary h2{font-size:19px}.chat-mode .message{max-width:88%}.chat-header .chat-icon{min-width:40px;min-height:40px}.chat-mode .composer{padding:8px 10px max(8px,env(safe-area-inset-bottom));gap:6px}.chat-mode .composer>input{min-width:0;flex:1}.chat-mode .composer>.chat-icon{flex:0 0 44px;width:44px;height:44px}.composer-tools button{width:40px;height:44px}.chat-mode .composer-tools{gap:2px}
}
@media(max-width:370px){.doctor-copy{padding:18px 12px}.doctor-copy .doctor-name{font-size:21px}.doctor-copy>p{font-size:12px}.doctor-slide{min-height:300px}.doctor-art{min-height:290px}.topbar nav button{padding:7px 9px}.topbar .brand small{display:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
@media (pointer: coarse), (max-width: 1024px) {
  input, select, textarea, .composer input, .composer textarea {
    font-size: 16px !important;
  }
}

.profile-switch{flex:0 0 44px;width:44px;height:44px;border-radius:50%;background:var(--primary,#087f8c);color:white;border:0}.profile-switch svg{width:22px;height:22px}.profile-switch .button-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
