*{box-sizing:border-box}:root{--ink:#172322;--muted:#647471;--accent:#0f766e;--accent2:#e7f4f2;--bg:#f5f7f7;--line:#dce5e4}html{font-size:17px}body{margin:0;background:var(--bg);color:var(--ink);font-family:"Noto Sans Myanmar","Pyidaungsu","Myanmar Text",system-ui,sans-serif;line-height:1.75}.site-header{position:sticky;top:0;z-index:10;background:#fff;border-bottom:1px solid var(--line);padding:12px 18px;display:flex;justify-content:space-between;gap:12px;align-items:center}.brand-wrap{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--ink)}.brand-mark{width:38px;height:38px;border-radius:11px;background:var(--accent);color:#fff;display:grid;place-items:center;font-size:25px;font-weight:900}.brand{font-weight:900}.brand-sub{font-size:12px;color:var(--muted)}nav{display:flex;gap:12px}nav a{color:var(--accent);text-decoration:none;font-size:14px;font-weight:700}main{max-width:920px;margin:auto;padding:18px}.card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:24px;margin-bottom:16px;box-shadow:0 4px 16px rgba(0,0,0,.025)}.hero{padding:34px}.hero h1{font-size:clamp(30px,5vw,48px);line-height:1.4;margin:14px 0}.lead{font-size:20px;color:#44514f}.tag,.status{display:inline-block;background:var(--accent2);border-radius:999px;padding:7px 12px;font-size:13px;font-weight:800}.big-actions,.actions,.row{display:flex;gap:11px;justify-content:space-between;align-items:center;flex-wrap:wrap}.btn{display:inline-block;border:0;border-radius:13px;padding:13px 18px;text-decoration:none;font:inherit;font-weight:900;cursor:pointer}.primary{background:var(--accent);color:#fff}.secondary{background:#e8f1f0;color:#114e49}.huge{font-size:19px;padding:16px 20px}.full{width:100%;text-align:center}.emergency{border-left:7px solid #c8513a}.soft{background:#f0f7f6}.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:11px}.steps div{padding:16px;background:#f0f6f5;border-radius:14px}.steps b{display:grid;place-items:center;width:38px;height:38px;background:var(--accent);color:#fff;border-radius:50%;margin-bottom:9px;font-size:20px}.narrow{max-width:590px;margin-left:auto;margin-right:auto}label{display:block;font-weight:900;margin:15px 0}input,textarea,select{width:100%;font:inherit;margin-top:7px;padding:13px;border:1px solid #cbd8d6;border-radius:12px;background:#fff}textarea{min-height:105px}.rx{min-height:190px}.grid2,.grid3{display:grid;gap:11px}.grid2{grid-template-columns:repeat(2,1fr)}.grid3{grid-template-columns:repeat(3,1fr)}.help,.small{color:var(--muted);font-size:14px}.progress{margin-bottom:13px;padding:10px 13px;background:#eaf3f2;border-radius:11px;font-size:14px}.consent{display:flex;gap:10px;align-items:flex-start;margin:20px 0}.consent input{width:auto;margin-top:7px}.fee{display:flex;justify-content:space-between;gap:12px;padding:16px;background:#eef5f4;border-radius:13px}.payment-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:16px 0}.pay-card{border:1px solid var(--line);border-radius:13px;padding:14px;background:#fafcfc}.pay-card h3{margin-top:0}.notice{margin-top:16px;background:#fff7e5;padding:15px;border-radius:13px}.flash{padding:13px 15px;border-radius:11px;margin-bottom:12px}.flash.success{background:#e4f4ea}.flash.error{background:#f9e5e5}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:16px}.stats>div{background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px}.stats b{display:block;font-size:30px}.stats span{font-size:13px;color:var(--muted)}.record pre,.prescription-print pre{white-space:pre-wrap;font:inherit;background:#f5f7f7;padding:13px;border-radius:10px}.appointment-box{background:#eaf6f3;border:1px solid #cce8e2;border-radius:14px;padding:16px;margin:14px 0}.appointment-time{font-size:22px;font-weight:900;margin-top:4px}.ok{color:#17633f;font-weight:900}footer{max-width:920px;margin:20px auto 40px;padding:18px;color:var(--muted);font-size:13px;text-align:center}.prescription-print{display:none}.rx-symbol{font-size:36px;font-weight:900;margin:14px 0}@media(max-width:700px){html{font-size:18px}main{padding:10px}.card{padding:17px}.hero{padding:20px}.grid2,.grid3,.steps,.stats,.payment-cards{grid-template-columns:1fr}.btn{width:100%;text-align:center}header nav a{font-size:13px}.hero h1{font-size:31px}.brand-sub{display:none}}@media print{body{background:#fff}.site-header,footer,.actions,.card:not(.prescription-print),.progress,.flash{display:none!important}main{max-width:none;padding:0}.prescription-print{display:block!important;border:0;box-shadow:none;padding:24px;font-size:16px}.rx-head{text-align:center}.prescription-print pre{background:#fff;border:0;padding:0}}
/* V3 chat */
.chat-shell{margin-bottom:20px}.messages{background:#eef3f2;border:1px solid var(--line);border-radius:18px;padding:14px;min-height:300px;max-height:58vh;overflow-y:auto}.bubble-wrap{display:flex;margin:10px 0}.bubble-wrap.mine{justify-content:flex-end}.bubble-wrap.theirs{justify-content:flex-start}.bubble{max-width:min(78%,650px);background:#fff;border:1px solid var(--line);border-radius:16px;padding:11px 13px}.mine .bubble{background:#dff1ed;border-color:#c8e5df}.sender{font-size:12px;font-weight:900;color:var(--accent);margin-bottom:3px}.msg-body{white-space:pre-wrap;word-break:break-word}.msg-time{font-size:11px;color:var(--muted);margin-top:6px;text-align:right}.attachment{display:block;margin-top:8px;padding:9px 10px;background:#fff;border:1px solid var(--line);border-radius:10px;text-decoration:none;color:var(--accent);font-weight:800}.composer{background:#fff;border:1px solid var(--line);border-radius:18px;padding:14px;margin-top:10px}.composer textarea{min-height:90px}.file-label{display:block;background:#f5f8f7;border:1px dashed #b8c8c5;border-radius:11px;padding:11px}.empty-chat{text-align:center;color:var(--muted);padding:60px 10px}.locked{margin-top:12px;background:#f5f6f6;padding:12px;border-radius:11px;color:#596663}.chat-entry{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:12px}.unread{display:inline-block;background:#a82121;color:#fff;border-radius:999px;padding:6px 10px;font-size:13px;font-weight:900}.room-info{padding:16px}@media(max-width:700px){.bubble{max-width:88%}.messages{max-height:55vh;padding:10px}}


/* V4 payment + timing */
.pay-select{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 0}
.pay-choice{border:2px solid var(--line);background:#fff;color:var(--ink);border-radius:14px;padding:14px;font:inherit;font-weight:900;cursor:pointer}
.pay-choice.active{border-color:var(--accent);background:var(--accent2);color:var(--accent)}
.qr-panel{text-align:center;padding:10px 0}.real-qr{display:block;width:min(78vw,300px);height:auto;margin:12px auto;border-radius:16px;border:1px solid var(--line)}
.qr-owner{font-weight:800}.hidden{display:none!important}.check-note{display:flex;align-items:flex-start;gap:9px;margin:16px 0;background:#f6f8f8;padding:12px;border-radius:11px}.check-note input{width:auto;margin-top:7px}
.small-lead{font-size:17px}.explain-lock{margin-top:16px}.payment-review .btn{margin-top:8px}.doctor-checklist{background:#f6f8f8;border-radius:11px;padding:12px;margin:12px 0;line-height:1.9}.verified-box{background:#e2f4e8;color:#17633f;font-weight:900;padding:13px;border-radius:11px;margin-top:10px}.warning-text{color:#963f31;font-weight:800}
.center-card{text-align:center}.lock-icon{font-size:54px}.center-card .appointment-time{margin:12px 0}
.rx-paper{background:#fff;border:1px solid var(--line);border-radius:12px;padding:34px;max-width:800px;margin:auto}.rx-header{text-align:center}.rx-header h1{margin-bottom:3px}.rx-meta{margin:18px 0}.rx-dx{margin:14px 0}.rx-content{white-space:pre-wrap;font:inherit;min-height:180px;padding:0;background:#fff}.rx-section{margin-top:22px}.rx-footer{display:flex;justify-content:space-between;gap:20px;margin-top:50px;padding-top:14px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}
@media(max-width:700px){.pay-select{grid-template-columns:1fr 1fr}.real-qr{width:min(82vw,300px)}.rx-paper{padding:18px}.rx-footer{display:block}}
@media print{
  .no-print,.site-header,footer{display:none!important}
  body{background:#fff}
  main{padding:0;max-width:none}
  .rx-paper{border:0;border-radius:0;max-width:none;box-shadow:none;padding:18mm}
}

/* V4.6 chat */
.chat-shell{max-width:760px;margin:0 auto}
.chat-topbar{position:sticky;top:0;z-index:5;background:#fff;border-bottom:1px solid var(--line);padding:12px 14px;display:flex;justify-content:space-between;align-items:center}
.chat-name{font-size:20px;font-weight:900}
.chat-sub{font-size:13px;color:var(--muted)}
.timer-strip{padding:10px 14px;background:#f8fbfa;border-bottom:1px solid var(--line)}
.timer-strip>div:first-child{display:flex;justify-content:space-between;gap:10px}
.pause-banner{margin-top:8px;padding:10px;border-radius:12px;background:#fff4d8;font-weight:800}
.doctor-timer-actions{display:flex;gap:8px;margin-top:8px}
.chat-messages{height:52vh;min-height:320px;overflow-y:auto;padding:16px 12px;background:#eef3f2}
.bubble-row{display:flex;margin:7px 0}
.bubble-row.mine{justify-content:flex-end}
.bubble-row.theirs{justify-content:flex-start}
.bubble{max-width:78%;padding:9px 12px;border-radius:18px;background:white;box-shadow:0 1px 2px rgba(0,0,0,.06)}
.bubble-row.mine .bubble{background:#d9f3ed;border-bottom-right-radius:5px}
.bubble-row.theirs .bubble{border-bottom-left-radius:5px}
.bubble audio{width:240px;max-width:100%}
.bubble-text{white-space:pre-wrap;word-break:break-word;font-size:16px}
.bubble-time{text-align:right;font-size:11px;color:#6e7a78;margin-top:4px}
.chat-composer{position:sticky;bottom:0;z-index:6;background:#fff;display:flex;align-items:flex-end;gap:8px;padding:10px;border-top:1px solid var(--line);margin:0}
.chat-composer textarea{flex:1;min-height:44px;max-height:120px;border-radius:22px;padding:10px 14px;resize:none;margin:0}
.attach-btn,.mic-btn,.send-btn{width:44px;height:44px;border:none;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:20px;cursor:pointer}
.attach-btn,.mic-btn{background:#edf4f2}
.send-btn{background:#0f766e;color:#fff}
.chat-files{padding:6px 12px;display:flex;gap:6px;overflow-x:auto;background:#fff}
.file-chip{white-space:nowrap;padding:7px 10px;border-radius:18px;background:#edf4f2;text-decoration:none}
.voice-panel{padding:10px 12px;background:#fff;border-top:1px solid var(--line)}
.availability-off{border-left:5px solid #b42318}
.availability-on{border-left:5px solid #0f766e}
.toggle-line{display:flex;gap:10px;align-items:center}
.toggle-line input{width:auto}
@media(max-width:700px){
  .chat-shell{margin:0 -12px}
  .chat-messages{height:56vh}
  .bubble{max-width:84%}
}
@media print{.receipt{display:block!important;border:0!important;box-shadow:none!important}.receipt .btn{display:none!important}}

/* V4.13.0 business: explicit compact titles. These selectors override old
   template-specific rules and remain readable with Myanmar Android fonts. */
main h1,.card h1,.row h1,.auth-card h1,.policy-page h1{
  font-size:20px!important;line-height:1.5!important;font-weight:650!important;
  margin:0 0 14px!important
}
main h2,.card h2,.pay-card h2,.qr-panel h2{
  font-size:16.5px!important;line-height:1.55!important;font-weight:650!important;
  margin-top:0
}
main h3,.card h3{font-size:15.5px!important;line-height:1.55!important;font-weight:650!important}
.doctor-intro h1{font-size:25px!important;line-height:1.45!important;font-weight:700!important}
.policy-page h2{margin-top:26px!important}
.receipt h1{font-size:19px!important}
footer a{color:var(--accent);font-weight:600}
@media(max-width:700px){
  main h1,.card h1,.row h1,.auth-card h1,.policy-page h1{
    font-size:17px!important;line-height:1.55!important;font-weight:650!important
  }
  main h2,.card h2,.pay-card h2,.qr-panel h2{
    font-size:15px!important;line-height:1.6!important;font-weight:650!important
  }
  main h3,.card h3{font-size:14.5px!important;line-height:1.6!important}
  .doctor-intro h1{font-size:21px!important;line-height:1.5!important}
}

/* V4.6.1 End Consultation / read-only */
.btn.danger{background:#a7362a;color:#fff;border-color:#a7362a}
.end-consult-form{margin-top:12px}
.completed-banner{margin:10px 0;padding:14px;border-radius:14px;background:#edf7f2;border:1px solid #cfe6d9}
.completed-status{background:#e5f2ec}
.read-only-chat{border-bottom:1px solid var(--line)}

/* V4.6.2 clarity fixes */
.chat-shell{max-width:760px!important;margin:0 auto!important;background:#f5f7f7}
.chat-topbar{background:#fff!important;padding:14px 16px!important;border-bottom:1px solid #d9e1df!important}
.waiting-doctor{margin:8px 0;padding:14px;border-radius:14px;background:#fff4d8;border:1px solid #ead9a4;font-size:16px;line-height:1.55}
.timer-line{display:flex;justify-content:space-between;gap:12px;align-items:center}
.chat-messages{height:54vh!important;min-height:340px!important;overflow-y:auto!important;padding:16px 12px 24px!important;background:#eef1f3!important}
.bubble-row{display:flex!important;width:100%!important;margin:8px 0!important}
.bubble-row.mine{justify-content:flex-end!important}
.bubble-row.theirs{justify-content:flex-start!important}
.bubble-row.mine .bubble{margin-left:18%!important;margin-right:0!important;background:#d5f3e7!important;border:1px solid #a9ddca!important;border-bottom-right-radius:5px!important}
.bubble-row.theirs .bubble{margin-right:18%!important;margin-left:0!important;background:#ffffff!important;border:1px solid #d8dee2!important;border-bottom-left-radius:5px!important}
.bubble{width:auto!important;max-width:76%!important;min-width:120px!important;padding:10px 12px!important;border-radius:18px!important;box-shadow:0 1px 2px rgba(0,0,0,.07)!important}
.sender-label{font-size:12px!important;font-weight:800!important;color:#53635f!important;margin-bottom:3px!important}
.bubble-text{font-size:17px!important;line-height:1.4!important;white-space:pre-wrap!important;word-break:break-word!important}
.bubble-time{font-size:11px!important;color:#6e7775!important;margin-top:5px!important;text-align:right!important}
.voice-in-bubble{margin-top:6px;font-size:13px;font-weight:700}
.voice-in-bubble audio{display:block;width:250px;max-width:100%;margin-top:5px}
.chat-files{display:flex!important;gap:6px!important;overflow-x:auto!important;padding:7px 12px!important;background:#fff!important}
.file-chip{display:inline-block!important;max-width:260px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;padding:7px 10px!important;border-radius:16px!important;background:#e8efed!important;color:#145b55!important;text-decoration:none!important}
.chat-composer{position:sticky!important;bottom:0!important;z-index:20!important;margin:0!important;padding:10px!important;background:#fff!important;border-top:1px solid #d7dfdd!important;display:block!important}
.chat-composer textarea{width:100%!important;box-sizing:border-box!important;min-height:52px!important;max-height:110px!important;margin:0 0 8px 0!important;padding:12px 14px!important;border-radius:18px!important;font-size:17px!important;resize:none!important}
.composer-actions{display:grid!important;grid-template-columns:1fr 1fr 1.25fr!important;gap:8px!important}
.composer-btn{height:46px!important;border-radius:14px!important;border:1px solid #cdd8d5!important;background:#eef5f3!important;color:#155e57!important;font-size:16px!important;font-weight:800!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;cursor:pointer!important}
.send-action{background:#117f74!important;color:#fff!important;border-color:#117f74!important}
.voice-panel{padding:12px!important;background:#fff!important;border-top:1px solid #d7dfdd!important}
.recording-title{font-size:17px;font-weight:800;margin-bottom:8px}
.completed-banner{margin:10px 12px!important;padding:14px!important;border-radius:14px!important;background:#edf7f2!important;border:1px solid #cfe6d9!important;line-height:1.55}
.followup-shell{max-width:720px;margin:0 auto}
.followup-chat{min-height:260px;padding:14px 10px;background:#eef1f3;border-radius:16px}
.followup-composer{position:sticky;bottom:0;background:#fff;padding:10px;border-top:1px solid #d8dfdd;display:flex;gap:8px;align-items:flex-end}
.followup-composer textarea{flex:1;min-height:55px;margin:0}
.followup-open{padding:10px;border-radius:12px;background:#e7f6ee;font-weight:800;margin-top:10px}
@media(max-width:700px){
 .chat-shell{margin:0 -12px!important}
 .bubble{max-width:80%!important}
 .bubble-row.mine .bubble{margin-left:12%!important}
 .bubble-row.theirs .bubble{margin-right:12%!important}
 .composer-btn span{display:inline!important}
}

.availability-current{padding:14px;border-radius:14px;margin-bottom:18px}
.available-now{background:#e9f7f2;border:1px solid #bfe3d4}
.closed-now{background:#fff0ee;border:1px solid #f1c5bf}
.notif-badge{display:inline-flex;min-width:24px;height:24px;padding:0 7px;border-radius:999px;align-items:center;justify-content:center;background:#b42318;color:#fff;font-size:13px}
.notif-item{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line)}
.notif-unread{background:#f3faf8;margin:0 -10px;padding:12px 10px;border-radius:10px}
.availability-off{background:#fff0ee;border-left:5px solid #b42318}
.availability-on{background:#edf8f4;border-left:5px solid #0f766e}

.push-link-wrap{margin:10px 0}

.push-reminder-card h2{margin-top:0}


.notify-option{display:flex;gap:12px;align-items:flex-start;border:1px solid #d8e2df;border-radius:14px;padding:15px;margin:12px 0;cursor:pointer}
.notify-option.recommended{border-width:2px}
.notify-option input{margin-top:5px;transform:scale(1.15)}
#smsBox{margin:12px 0}

.summary-text{line-height:1.75}
.prewrap{white-space:pre-wrap}
.prescription-card{border-left:4px solid #13877b}
.redflag-card,.alert-card{background:#fff3f3;border:1px solid #f2c3c3;border-left:5px solid #d63b3b}
.summary-header{border-top:4px solid #13877b}
textarea{width:100%;box-sizing:border-box}

/* V4.10 Dr.Hnin branding */
.brand-photo{width:42px;height:42px;border-radius:50%;object-fit:cover;object-position:19% 30%;border:2px solid #bfe8e3;background:#e8f7f5}
.brand-hero{padding:0;overflow:hidden}
.home-primary-actions{position:relative;border-color:#bcded9;background:linear-gradient(135deg,#fff,#eef8f6);padding:14px;margin-bottom:14px}.home-primary-actions .big-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.home-primary-actions .btn{width:100%;text-align:center}.room-entry{margin:12px 0 4px}.room-entry .help{text-align:center;margin-top:6px}.room-live{box-shadow:0 0 0 4px rgba(15,118,110,.13)}.pwa-optional{margin:10px 0 16px;padding:12px;background:#f1f7f6;border:1px solid var(--line);border-radius:14px;text-align:center}.pwa-optional .help{margin-top:5px}
.doctor-branding-banner{display:block;width:100%;height:auto;background:#eaf8fa}
.doctor-intro{padding:28px 32px 34px}
.doctor-intro h1{margin:12px 0 4px;font-size:clamp(29px,5vw,44px);line-height:1.35;color:#07163e}
.doctor-qualification{margin:0 0 18px;color:#155d73;font-weight:900}
.hours-card{display:grid;gap:5px;margin:20px 0;padding:16px 18px;border-radius:15px;background:#edf8f7;border:1px solid #cce9e5}
.hours-card b{color:#0b6d66}
@media(max-width:700px){.doctor-intro{padding:20px 17px 24px}.doctor-intro .lead{font-size:17px}.doctor-qualification{font-size:15px}.doctor-branding-banner{min-height:250px;object-fit:cover;object-position:center}.site-header{padding:9px 11px}.brand-photo{width:39px;height:39px}}

/* V4.11 pilot fixes */
.initial-files{margin:0 0 16px;padding:12px;border-radius:13px;background:#f8fbfa;border:1px solid #d8e4e1;display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.initial-files b{width:100%;font-size:14px;color:#53635f}
.attachment-in-bubble{display:block;margin-top:8px;padding:10px 12px;border-radius:12px;background:rgba(255,255,255,.72);color:#0e6e66;text-decoration:none;font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.patient-reminder-form{margin-top:10px}
.patient-result-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0}
.followup-composer{padding:14px!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:10px!important;align-items:end!important}
.followup-composer textarea{min-height:120px!important;width:100%!important;padding:14px!important;font-size:18px!important;line-height:1.55!important;border-radius:14px!important;resize:vertical!important}
.followup-composer .btn{min-height:54px!important;padding:13px 20px!important}
@media(max-width:700px){.patient-result-actions{grid-template-columns:1fr}.followup-composer{grid-template-columns:1fr!important}.followup-composer .btn{width:100%!important}.initial-files{margin-bottom:12px}}

/* V4.11.2 follow-up composer and cache-refresh fixes */
.followup-composer{display:block!important;width:100%!important;padding:16px!important;background:#fff!important}
.followup-input-label{display:block!important;width:100%!important;margin:0 0 12px!important}
.followup-composer textarea{display:block!important;width:100%!important;min-width:100%!important;min-height:150px!important;margin:8px 0 0!important;padding:16px!important;font-size:18px!important;line-height:1.6!important;border-radius:14px!important;resize:vertical!important}
.followup-composer .btn{display:block!important;width:100%!important;min-height:56px!important;margin:0!important}

/* V4.12 installable PWA */
.pwa-card{position:fixed;z-index:60;left:50%;bottom:max(14px,env(safe-area-inset-bottom));transform:translateX(-50%);width:min(92vw,720px);display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:center;padding:13px 14px;background:#fff;border:1px solid #cbdedb;border-radius:17px;box-shadow:0 12px 36px rgba(12,47,43,.2)}
.pwa-card[hidden],.pwa-update[hidden]{display:none!important}.pwa-card img{border-radius:13px}.pwa-card-copy{display:grid;gap:2px;line-height:1.45}.pwa-card-copy span{font-size:14px;color:var(--muted)}.pwa-ios-help{grid-column:1/-1;margin-top:7px;padding:9px 11px;background:#edf8f4;border-radius:10px;font-size:14px}.pwa-action{width:auto}.pwa-close{position:absolute;right:-7px;top:-9px;width:30px;height:30px;border:0;border-radius:50%;background:#44514f;color:#fff;font-size:22px;line-height:1;cursor:pointer}.pwa-update{position:fixed;z-index:61;left:50%;bottom:max(14px,env(safe-area-inset-bottom));transform:translateX(-50%);width:min(92vw,680px);display:flex;gap:12px;align-items:center;justify-content:space-between;padding:14px 16px;background:#fff;border:2px solid var(--accent);border-radius:16px;box-shadow:0 12px 36px rgba(12,47,43,.2)}.pwa-update .btn{flex:0 0 auto;width:auto}
@media(max-width:700px){.pwa-card{grid-template-columns:auto minmax(0,1fr);padding:13px}.pwa-card .pwa-action{grid-column:1/-1;width:100%}.pwa-update{display:grid;grid-template-columns:1fr}.pwa-update .btn{width:100%}}
@media(max-width:700px){.home-primary-actions .big-actions{grid-template-columns:1fr}.home-primary-actions{padding:11px}.home-primary-actions .huge{font-size:18px;padding:14px 12px}}

/* V4.12.2 patient help, room space and one-tap voice send */
.help-fab{position:fixed;right:max(16px,env(safe-area-inset-right));bottom:max(16px,env(safe-area-inset-bottom));z-index:45;display:flex;align-items:center;gap:7px;border:0;border-radius:999px;padding:12px 16px;background:#0f766e;color:#fff;font:inherit;font-weight:900;box-shadow:0 8px 24px rgba(15,75,69,.28);cursor:pointer}.help-fab span{font-size:14px}.help-panel{position:fixed;right:max(16px,env(safe-area-inset-right));bottom:max(78px,calc(env(safe-area-inset-bottom) + 72px));z-index:71;width:min(92vw,430px);max-height:min(78vh,680px);overflow-y:auto;padding:18px;background:#fff;border:1px solid #c9d9d6;border-radius:18px;box-shadow:0 16px 46px rgba(8,42,38,.28)}.help-panel[hidden],.help-backdrop[hidden]{display:none!important}.help-panel-head{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:20px}.help-panel-head button{width:36px;height:36px;border:0;border-radius:50%;background:#e9f2f0;color:#174f4a;font-size:26px;line-height:1;cursor:pointer}.help-panel p{margin:8px 0;color:#52635f;font-size:15px}.help-panel label{margin:10px 0}.help-panel textarea{min-height:105px}.help-backdrop{position:fixed;inset:0;z-index:70;background:rgba(5,22,20,.38)}.hp-field{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important}.emergency-help{margin:10px 0;padding:9px 11px;border-radius:10px;background:#fff2ef;color:#8c2e23;font-size:13px}.help-open{overflow:hidden}.room-page footer{display:none!important}.room-page main{padding-bottom:8px}.room-page .chat-shell{margin-bottom:0!important}.room-page .chat-messages{height:62vh!important;min-height:420px!important}.room-page .help-fab{bottom:max(86px,calc(env(safe-area-inset-bottom) + 78px));padding:11px}.room-page .help-fab span{display:none}.voice-panel #sendRecordingBtn{min-height:54px;margin-bottom:6px}
@media(max-width:700px){.help-panel{right:10px;bottom:max(72px,calc(env(safe-area-inset-bottom) + 68px));width:calc(100vw - 20px);max-height:80vh}.help-fab{right:12px}.room-page .chat-messages{height:70dvh!important;min-height:500px!important;max-height:none!important}}

/* V4.12.6: help is visible for every account; discussion room uses the screen for chat. */
.room-page footer{display:none!important}
.room-page main{max-width:none!important;padding-bottom:4px!important}
.room-page .chat-shell{max-width:920px!important;margin:0 auto!important}
.room-page .chat-messages{height:72dvh!important;min-height:520px!important;max-height:none!important}

/* V4.12.8: help replies and easier one-phone wallet payments. */
.help-request{padding:16px 0;border-bottom:1px solid var(--line)}
.help-request:last-child{border-bottom:0}.help-request-open{border-left:4px solid #0f766e;padding-left:12px}
.help-reply-sent,.doctor-help-reply{margin:10px 0;padding:12px 14px;border-radius:12px;background:#e9f6f2;border:1px solid #c8e5dc;white-space:pre-wrap}
.help-quick-actions{display:flex;gap:8px;flex-wrap:wrap}.help-quick-actions .btn{padding:9px 11px;font-size:14px}
.help-reply-form textarea{min-height:110px}.patient-help-reply{padding:13px 0;border-bottom:1px solid var(--line)}.patient-help-reply:last-child{border-bottom:0}
.payment-number{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;margin:10px auto;font-size:22px;font-weight:900}.payment-number .btn{width:auto;padding:9px 13px;font-size:14px}.qr-download{margin:4px auto 12px}.qr-owner{margin-bottom:4px}
@media(max-width:700px){.help-quick-actions{display:grid;grid-template-columns:1fr}.help-quick-actions .btn{width:100%}.payment-number{font-size:20px}}
.payment-resume{margin-top:14px;padding:14px;border-radius:14px;background:#fff8e8;border:1px solid #edd8a5}.payment-resume p{margin-top:0}

/* V4.12.12: distraction-free room and stable no-reload messaging. */
.room-page .help-fab,.room-page #globalHelpFab{display:none!important}
.room-page .voice-panel{position:fixed!important;left:50%!important;bottom:max(8px,env(safe-area-inset-bottom))!important;transform:translateX(-50%)!important;z-index:90!important;width:min(900px,calc(100vw - 20px))!important;padding:14px!important;border:1px solid #c9d9d6!important;border-radius:18px!important;box-shadow:0 14px 42px rgba(8,42,38,.3)!important}

/* V4.12.15: clean, compact typography with better-proportioned titles. */
:root{--ui-font:system-ui,-apple-system,"Segoe UI",Roboto,"Noto Sans Myanmar","Myanmar Text","Pyidaungsu",Arial,sans-serif}
html{font-size:16px!important;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{font-family:var(--ui-font)!important;font-size:15.5px;line-height:1.65;font-weight:400;letter-spacing:0;color:#172321}
button,input,select,textarea{font-family:var(--ui-font)!important;letter-spacing:0}
h1,h2,h3,h4,h5,h6{font-family:var(--ui-font)!important;line-height:1.38;letter-spacing:0;color:#122220}
h1{font-size:clamp(22px,2.8vw,28px)!important;font-weight:700!important}
h2{font-size:18px!important;font-weight:700!important}
h3{font-size:16px!important;font-weight:700!important}
p{line-height:1.7}
.brand{font-size:20px!important;line-height:1.25!important;font-weight:700!important}
.brand-sub{font-size:11.5px!important;line-height:1.35!important;font-weight:500!important}
nav a{font-size:13.5px!important;font-weight:600!important}
.hero h1,.doctor-intro h1{font-size:clamp(26px,3.7vw,36px)!important;line-height:1.36!important;font-weight:700!important}
.lead,.doctor-intro .lead{font-size:16px!important;line-height:1.75!important;font-weight:400!important}
.qualification{font-size:14px!important;line-height:1.55!important;font-weight:500!important}
.help,.small,.muted{font-size:12.5px!important;line-height:1.6!important}
label{font-size:14px!important;line-height:1.5!important;font-weight:600!important}
input,select,textarea{font-size:16px!important;line-height:1.5!important;font-weight:400!important}
.btn,.huge,.composer-btn{font-size:14.5px!important;line-height:1.45!important;font-weight:700!important}
.huge{font-size:16px!important;padding:13px 15px!important}
.tag,.status{font-size:12px!important;line-height:1.4!important;font-weight:650!important}
.card{line-height:1.65}
.card h1,.card h2,.card h3{margin-top:0}
.steps b{font-size:16px!important;line-height:1.5!important;font-weight:700!important}
.appointment-time{font-size:18px!important;line-height:1.5!important;font-weight:700!important}
.stats b{font-size:25px!important;font-weight:700!important}
.payment-number{font-size:18px!important;line-height:1.5!important;font-weight:700!important}
.qr-owner,.verified-box,.warning-text,.ok{font-weight:700!important}
.chat-name{font-size:17px!important;line-height:1.4!important;font-weight:700!important}
.sender-label{font-size:11.5px!important;line-height:1.35!important;font-weight:700!important}
.bubble-text{font-size:15px!important;line-height:1.7!important;font-weight:400!important}
.bubble-time{font-size:10.5px!important;line-height:1.35!important}
.timer-line,.timer-warning{font-size:14px!important;line-height:1.55!important;font-weight:600!important}
.chat-composer textarea,.followup-composer textarea{font-size:16px!important;line-height:1.6!important;font-weight:400!important}
.attachment-in-bubble{font-size:13px!important;font-weight:600!important}
.help-fab{font-size:14px!important;font-weight:700!important}
.help-fab span{font-size:13px!important}
.help-panel{font-size:14px!important;line-height:1.65!important}
.help-panel-head{font-size:18px!important;line-height:1.4!important}
.help-panel p{font-size:13.5px!important;line-height:1.65!important}
.pwa-card-copy{font-size:14px!important;line-height:1.5!important}
.pwa-card-copy span,.pwa-ios-help{font-size:12.5px!important;line-height:1.55!important}
footer{font-size:12.5px!important;line-height:1.6!important}

@media(max-width:700px){
  html{font-size:15px!important}
  body{font-size:15px!important;line-height:1.65!important}
  main{padding-left:10px!important;padding-right:10px!important}
  .site-header{padding:10px 12px!important}
  .brand{font-size:19px!important}.brand-sub{font-size:10.5px!important}
  nav{gap:9px!important}nav a{font-size:12.5px!important}
  h1{font-size:19px!important;line-height:1.48!important}h2{font-size:16px!important;line-height:1.5!important}h3{font-size:15px!important;line-height:1.5!important}
  .hero h1,.doctor-intro h1{font-size:24px!important;line-height:1.4!important}
  .lead,.doctor-intro .lead{font-size:15px!important;line-height:1.75!important}
  .qualification{font-size:13px!important}
  .card{padding:15px!important;border-radius:16px!important}
  .btn,.composer-btn{font-size:14px!important}.huge{font-size:15px!important;padding:12px!important}
  .steps b{font-size:15px!important}.appointment-time{font-size:17px!important}
  .payment-number{font-size:17px!important}.stats b{font-size:23px!important}
  .bubble-text{font-size:14.5px!important;line-height:1.7!important}
  .chat-composer textarea,.followup-composer textarea,input,select,textarea{font-size:16px!important}
  .composer-btn{min-height:48px!important;padding:10px 12px!important}
  .help-panel-head{font-size:17px!important}.help-panel p{font-size:13px!important}
}

/* FINAL OVERRIDES — keep these last so old page rules cannot enlarge titles. */
main h1,.card h1,.row h1,.auth-card h1,.policy-page h1{font-size:20px!important;line-height:1.5!important;font-weight:650!important;margin:0 0 14px!important}
main h2,.card h2,.pay-card h2,.qr-panel h2{font-size:16.5px!important;line-height:1.55!important;font-weight:650!important;margin-top:0}
main h3,.card h3{font-size:15.5px!important;line-height:1.55!important;font-weight:650!important}
.doctor-intro h1{font-size:25px!important;line-height:1.45!important;font-weight:700!important}
.policy-page h2{margin-top:26px!important}.receipt h1{font-size:19px!important}footer a{color:var(--accent);font-weight:600}
@media(max-width:700px){
  main h1,.card h1,.row h1,.auth-card h1,.policy-page h1{font-size:17px!important;line-height:1.55!important;font-weight:650!important}
  main h2,.card h2,.pay-card h2,.qr-panel h2{font-size:15px!important;line-height:1.6!important;font-weight:650!important}
  main h3,.card h3{font-size:14.5px!important;line-height:1.6!important}.doctor-intro h1{font-size:21px!important;line-height:1.5!important}
}
