.tmd-app{max-width:980px;margin:24px auto;padding:0 14px;font-family:inherit;color:#171717}.tmd-panel{background:#fff;border:1px solid #e8e8e8;border-radius:22px;padding:22px;margin:0 0 18px;box-shadow:0 7px 24px rgba(0,0,0,.05)}.tmd-title{display:flex;gap:14px;align-items:center}.tmd-title-icon{width:58px;height:58px;border-radius:17px;background:#eef7ff;display:grid;place-items:center;font-size:30px;flex:0 0 58px}.tmd-title h2{margin:0 0 4px;font-size:25px}.tmd-title p{margin:0;color:#6b6b6b;font-size:14px;line-height:1.45}.tmd-wizard-header{margin-bottom:10px}.tmd-progress{display:flex;align-items:center;justify-content:center;gap:8px;margin:22px 0 8px}.tmd-progress-step{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#e9edf1;color:#6c747b;font-weight:800;font-size:13px}.tmd-progress-step.is-active,.tmd-progress-step.is-done{background:#1775c8;color:#fff}.tmd-progress i{height:2px;width:50px;background:#e1e5e8}.tmd-progress-step.is-done+i{background:#1775c8}.tmd-screen{padding-top:16px}.tmd-screen[hidden],.tmd-success-screen[hidden]{display:none!important}.tmd-step-heading{display:flex;gap:13px;align-items:flex-start;margin:8px 0 22px}.tmd-step-no{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#1775c8;color:#fff;font-weight:800;flex:0 0 34px}.tmd-step-heading h3{margin:2px 0 4px;font-size:21px}.tmd-step-heading p{margin:0;color:#777;font-size:13px}.tmd-choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.tmd-choice{position:relative;display:flex;gap:14px;align-items:flex-start;padding:20px;border:2px solid #ddd;border-radius:18px;background:#fff;cursor:pointer;transition:.18s;min-height:105px;box-sizing:border-box}.tmd-choice input{position:absolute;opacity:0;pointer-events:none}.tmd-choice:hover{border-color:#aebdcc}.tmd-choice:has(input:checked){border-color:#1775c8;background:#f4f9ff;box-shadow:0 6px 18px rgba(23,117,200,.1)}.tmd-choice-icon{font-size:29px;line-height:1}.tmd-choice-copy{display:block;padding-right:24px}.tmd-choice-copy strong{display:block;font-size:17px}.tmd-choice-copy small{display:block;color:#707070;margin-top:6px;line-height:1.45}.tmd-choice-check{position:absolute;right:15px;top:15px;width:23px;height:23px;border:2px solid #aaa;border-radius:50%;display:grid;place-items:center;color:transparent;font-size:12px}.tmd-choice:has(input:checked) .tmd-choice-check{background:#1775c8;border-color:#1775c8;color:#fff}.tmd-safety-note,.tmd-login-hint,.tmd-privacy-note,.tmd-info-card{margin-top:18px;padding:13px 15px;border-radius:13px;background:#f4f8fb;color:#5f6b73;font-size:13px;line-height:1.5}.tmd-login-hint{background:#fff7e8;color:#725200}.tmd-privacy-note{background:#f2faf5;color:#356647}.tmd-info-card strong{display:block;color:#26343e}.tmd-info-card p{margin:4px 0 0}.tmd-field{display:block;margin:0 0 18px}.tmd-field>span{display:block;font-weight:800;font-size:15px;margin-bottom:8px}.tmd-field em{font-style:normal;color:#888;font-weight:500}.tmd-field select,.tmd-field input,.tmd-field textarea{width:100%;box-sizing:border-box;border:1px solid #d4d8dc;border-radius:13px;padding:13px 14px;background:#fff;font:inherit;outline:none}.tmd-field select:focus,.tmd-field input:focus,.tmd-field textarea:focus{border-color:#1775c8;box-shadow:0 0 0 3px rgba(23,117,200,.1)}.tmd-field-help{display:block;color:#7a7f83;font-size:11px;line-height:1.4;margin-top:6px}.tmd-location-row{display:flex;gap:9px}.tmd-location-row input{flex:1}.tmd-location-row button,.tmd-help-specialty{border:1px solid #d5dadd;background:#fff;border-radius:12px;padding:0 14px;font-weight:800;cursor:pointer}.tmd-location-row button{min-width:155px}.tmd-help-specialty{min-height:46px;color:#6b7074}.tmd-help-specialty small{font-weight:500}.tmd-nav-row{display:flex;justify-content:space-between;gap:10px;margin-top:25px}.tmd-nav-next-only{justify-content:flex-end}.tmd-next,.tmd-submit{border:0;border-radius:13px;min-height:50px;padding:0 24px;background:#1775c8;color:#fff;font-size:16px;font-weight:800;cursor:pointer}.tmd-next span{font-size:22px;vertical-align:-1px;margin-left:7px}.tmd-back{border:1px solid #d6dadd;border-radius:13px;min-height:50px;padding:0 20px;background:#fff;color:#4f565b;font-size:15px;font-weight:800;cursor:pointer}.tmd-submit:disabled{opacity:.65;cursor:wait}.tmd-summary{border:1px solid #e2e5e8;border-radius:16px;overflow:hidden;background:#fff}.tmd-summary>div{display:flex;justify-content:space-between;gap:20px;padding:14px 16px;border-bottom:1px solid #edf0f2}.tmd-summary>div:last-child{border-bottom:0}.tmd-summary span{color:#777;font-size:13px}.tmd-summary strong{font-size:14px;text-align:right;max-width:65%;line-height:1.4}.tmd-summary-content{display:block!important}.tmd-summary-content strong{display:block;text-align:left;max-width:none;margin-top:5px;font-weight:600;color:#555;white-space:pre-wrap;word-break:break-word}.tmd-ok,.tmd-error{margin-top:12px;padding:11px 13px;border-radius:11px}.tmd-ok{background:#eaf8ef;color:#16743a}.tmd-error{background:#fff0f0;color:#b00020}.tmd-invalid-field{border-color:#c40000!important;box-shadow:0 0 0 3px rgba(196,0,0,.08)!important}.tmd-invalid{outline:2px solid #c40000;outline-offset:3px;border-radius:18px}.tmd-shake{animation:tmdShake .32s ease}@keyframes tmdShake{0%,100%{transform:translateX(0)}25%{transform:translateX(-5px)}75%{transform:translateX(5px)}}.tmd-success-screen{text-align:center;padding:40px 18px}.tmd-success-icon{width:72px;height:72px;border-radius:50%;background:#20a65a;color:#fff;display:grid;place-items:center;font-size:40px;font-weight:800;margin:0 auto 18px}.tmd-success-screen h3{font-size:25px;margin:0 0 9px}.tmd-success-screen p{max-width:600px;margin:0 auto 22px;color:#666;line-height:1.6}.tmd-success-button{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 22px;border-radius:12px;background:#1775c8;color:#fff;text-decoration:none;font-weight:800}.tmd-section-title{display:flex;justify-content:space-between;gap:12px;align-items:end;margin-bottom:14px}.tmd-section-title h2{margin:0}.tmd-section-title span,.tmd-muted{color:#777}.tmd-request-card{border:1px solid #e5e5e5;border-radius:17px;padding:16px;margin:0 0 12px;background:#fff}.tmd-card-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.tmd-card-head strong{display:block;font-size:17px}.tmd-card-head small{display:block;color:#6b6b6b;margin-top:3px}.tmd-status{padding:5px 9px;border-radius:999px;font-size:11px;font-weight:800;background:#edf7ef;color:#16743a}.tmd-status-closed,.tmd-status-expired{background:#f1f1f1;color:#666}.tmd-meta{display:flex;flex-wrap:wrap;gap:7px 13px;margin:11px 0;color:#666;font-size:12px}.tmd-content{margin:10px 0;padding:11px;border-radius:11px;background:#fafafa;line-height:1.5}.tmd-expiry{font-size:12px;color:#777;margin:10px 0}.tmd-close,.tmd-reactivate-btn{border:1px solid #ddd;border-radius:10px;background:#fff;padding:9px 12px;font-weight:700;cursor:pointer}.tmd-responses{margin-top:15px}.tmd-responses h3{font-size:15px;margin:0 0 10px}.tmd-responses h3 b{color:#1672c5}.tmd-response{border:1px solid #1672c5;border-radius:14px;padding:13px;margin:0 0 10px}.tmd-response-head{display:flex;justify-content:space-between;gap:10px}.tmd-response-head strong{display:block}.tmd-response-head small{display:block;color:#777;margin-top:3px}.tmd-response p{margin:10px 0;line-height:1.5}.tmd-slot{padding:8px 10px;background:#f4f9ff;border-radius:9px;font-weight:700;margin-bottom:9px}.tmd-response-actions{display:flex;gap:8px;flex-wrap:wrap}.tmd-response-actions a,.tmd-response-actions button{border:1px solid #1672c5;border-radius:9px;background:#fff;color:#1672c5;padding:8px 11px;font-weight:800;text-decoration:none;cursor:pointer}.tmd-accepted{font-size:11px;color:#16743a;font-weight:800}.tmd-notifications{border-radius:14px;background:#fafafa;padding:14px}.tmd-notifications-head{display:flex;align-items:center;gap:9px;margin-bottom:10px}.tmd-notifications-head strong{font-size:15px}.tmd-badge{min-width:22px;height:22px;border-radius:50%;background:#1672c5;color:#fff;display:grid;place-items:center;font-size:11px;font-weight:800}.tmd-badge.is-empty{display:none}.tmd-notifications-head button{margin-left:auto;border:0;background:transparent;color:#666;font-weight:700;cursor:pointer}.tmd-notification-item{display:flex;gap:10px;padding:10px 0;border-top:1px solid #e8e8e8;cursor:pointer}.tmd-notification-item.is-read{opacity:.62}.tmd-notification-dot{width:8px;height:8px;border-radius:50%;background:#1672c5;margin-top:6px;flex:0 0 8px}.tmd-notification-item.is-read .tmd-notification-dot{background:#ccc}.tmd-notification-item strong{font-size:13px}.tmd-notification-item p{margin:2px 0;color:#666;font-size:12px}.tmd-notification-item small{color:#999;font-size:10px}.tmd-response-form{border-top:1px solid #eee;margin-top:12px;padding-top:12px}.tmd-response-type{display:flex;flex-wrap:wrap;gap:9px;margin-bottom:10px}.tmd-response-type label{font-size:12px;font-weight:700}.tmd-slot-fields{display:flex;gap:8px;margin-bottom:9px}.tmd-slot-fields input{flex:1;box-sizing:border-box;border:1px solid #ddd;border-radius:9px;padding:9px}.tmd-response-message{width:100%;box-sizing:border-box;border:1px solid #ddd;border-radius:10px;padding:10px;font:inherit}.tmd-response-submit{margin-top:9px;border:0;background:#1672c5;color:#fff;border-radius:10px;padding:10px 14px;font-weight:800;cursor:pointer}.tmd-response-result{margin-top:8px;font-size:12px;color:#555}.tmd-sent{padding:10px;border-radius:10px;background:#f1f8f3;color:#27713d;font-weight:700;font-size:13px}
@media(max-width:700px){.tmd-panel{padding:16px;border-radius:18px}.tmd-title h2{font-size:22px}.tmd-choice-grid{grid-template-columns:1fr}.tmd-choice{min-height:95px;padding:17px}.tmd-choice-copy strong{font-size:16px}.tmd-progress{gap:5px}.tmd-progress i{width:25px}.tmd-location-row{display:block}.tmd-location-row button{width:100%;min-height:45px;margin-top:8px}.tmd-nav-row{align-items:stretch}.tmd-next,.tmd-submit,.tmd-back{min-height:48px}.tmd-submit{flex:1}.tmd-summary>div{display:block}.tmd-summary strong{display:block;text-align:left;max-width:none;margin-top:4px}.tmd-card-head{flex-direction:column}.tmd-section-title{display:block}.tmd-slot-fields{display:block}.tmd-slot-fields input{width:100%;margin-bottom:7px}.tmd-response-actions{flex-direction:column}.tmd-response-actions a,.tmd-response-actions button{width:100%;box-sizing:border-box;text-align:center}}

/* TIKTAK AI orientation assistant */
.tmd-help-specialty{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;gap:4px;min-height:64px;padding:11px 16px!important;text-align:center;cursor:pointer!important;background:#fff}
.tmd-help-specialty:hover{border-color:#1775c8;color:#1775c8;box-shadow:0 5px 16px rgba(23,117,200,.08)}
.tmd-help-specialty-main{font-weight:800;font-size:15px}.tmd-help-specialty small{font-weight:600;color:#777;font-size:12px}
.tmd-ai-modal{position:fixed;inset:0;z-index:2147483000;display:flex;align-items:center;justify-content:center;padding:18px;box-sizing:border-box}.tmd-ai-modal[hidden]{display:none!important}
.tmd-ai-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.55);backdrop-filter:blur(2px)}
.tmd-ai-dialog{position:relative;width:min(560px,100%);max-height:min(88vh,760px);overflow:auto;background:#fff;border-radius:22px;box-shadow:0 22px 70px rgba(0,0,0,.28);padding:24px;box-sizing:border-box;z-index:1}
.tmd-ai-close{position:absolute;right:14px;top:10px;width:38px;height:38px;border:0;border-radius:50%;background:#f2f4f6;color:#555;font-size:27px;line-height:1;cursor:pointer}.tmd-ai-close:hover{background:#e7eaed}
.tmd-ai-head{display:flex;gap:14px;align-items:flex-start;padding-right:34px}.tmd-ai-avatar{width:50px;height:50px;border-radius:16px;display:grid;place-items:center;background:#eef7ff;font-size:28px;flex:0 0 50px}.tmd-ai-head h4{margin:2px 0 5px;font-size:20px;color:#26343e}.tmd-ai-head p{margin:0;color:#6f767b;line-height:1.45;font-size:13px}.tmd-ai-label{display:block;margin:20px 0 8px;font-weight:800}.tmd-ai-dialog textarea{width:100%;box-sizing:border-box;resize:vertical;border:1px solid #d4d8dc;border-radius:14px;padding:13px 14px;font:inherit;outline:none;min-height:120px}.tmd-ai-dialog textarea:focus{border-color:#1775c8;box-shadow:0 0 0 3px rgba(23,117,200,.1)}
.tmd-ai-note{margin-top:10px;padding:11px 13px;border-radius:12px;background:#f4f8fb;color:#5f6b73;font-size:12px;line-height:1.5}.tmd-ai-result{margin-top:15px;border:1px solid #dce7ef;border-radius:15px;padding:15px;background:#f8fbfd}.tmd-ai-result-title{font-weight:800;color:#26343e;margin-bottom:5px}.tmd-ai-specialty{font-size:20px;font-weight:900;color:#1775c8}.tmd-ai-reason{margin:7px 0 0;color:#5d656a;font-size:13px;line-height:1.5}.tmd-ai-alt{margin-top:13px;padding-top:11px;border-top:1px solid #e1e8ed;color:#5d656a;font-size:12px}.tmd-ai-alt button{border:0;background:transparent;color:#1775c8;font-weight:800;cursor:pointer;padding:5px 0;margin-right:12px}.tmd-ai-error{margin-top:12px;padding:10px 12px;border-radius:10px;background:#fff0f0;color:#b00020;font-size:12px}.tmd-ai-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:17px}.tmd-ai-primary,.tmd-ai-secondary{min-height:46px;border-radius:11px;padding:0 17px;font-weight:800;cursor:pointer}.tmd-ai-primary{border:0;background:#1775c8;color:#fff}.tmd-ai-primary:disabled{opacity:.65;cursor:wait}.tmd-ai-secondary{border:1px solid #d6dadd;background:#fff;color:#4f565b}
@media(max-width:700px){.tmd-ai-modal{padding:10px}.tmd-ai-dialog{border-radius:18px;padding:20px}.tmd-ai-head h4{font-size:18px}.tmd-ai-actions{flex-direction:column-reverse}.tmd-ai-primary,.tmd-ai-secondary{width:100%}}

/* Medical notification details dialog */
.tmd-notification-modal{position:fixed;inset:0;z-index:2147483001;display:flex;align-items:center;justify-content:center;padding:14px;box-sizing:border-box}.tmd-notification-modal[hidden]{display:none!important}.tmd-notification-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.56);backdrop-filter:blur(2px)}.tmd-notification-dialog{position:relative;z-index:1;width:min(620px,100%);max-height:88vh;overflow:auto;background:#fff;border-radius:20px;box-shadow:0 25px 80px rgba(0,0,0,.3);padding:22px;box-sizing:border-box}.tmd-notification-close{position:absolute;right:12px;top:10px;width:40px;height:40px;border:0;border-radius:50%;background:#f1f3f5;color:#555;font-size:28px;line-height:1;cursor:pointer}.tmd-detail-head{display:flex;gap:12px;align-items:center;padding-right:42px;margin-bottom:17px}.tmd-detail-icon{width:50px;height:50px;border-radius:15px;background:#eef7ff;display:grid;place-items:center;font-size:27px}.tmd-detail-head h3{margin:0;font-size:21px}.tmd-detail-head p{margin:3px 0 0;color:#777;font-size:12px}.tmd-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.tmd-detail-grid>div{padding:11px 12px;border:1px solid #e5e8eb;border-radius:11px;background:#fafbfc}.tmd-detail-grid span,.tmd-detail-block>span{display:block;color:#777;font-size:11px;margin-bottom:4px}.tmd-detail-grid strong{font-size:13px;line-height:1.35}.tmd-detail-block{margin-top:12px;padding:13px;border-radius:12px;background:#f7f9fb;border:1px solid #e7eaed}.tmd-detail-block p{margin:5px 0 0;line-height:1.55;color:#333}.tmd-detail-responses{margin-top:15px}.tmd-detail-responses h4{margin:0 0 9px;font-size:15px}.tmd-detail-response{border:1px solid #dbe6ef;border-radius:12px;padding:12px;margin-bottom:8px;background:#fff}.tmd-detail-response strong{display:block;font-size:14px}.tmd-detail-response small{display:block;color:#777;margin-top:3px}.tmd-detail-response p{margin:8px 0;line-height:1.5}.tmd-detail-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:16px}.tmd-detail-choose{border:0;border-radius:11px;background:#1775c8;color:#fff;padding:11px 18px;font-weight:800;cursor:pointer;flex:1;min-height:46px}.tmd-detail-close{border:0;border-radius:11px;background:#1775c8;color:#fff;padding:11px 22px;font-weight:800;cursor:pointer;min-height:46px}.tmd-detail-actions .tmd-detail-choose + .tmd-detail-close{flex:0 0 auto}.tmd-notification-action{display:inline-flex!important;align-items:center;justify-content:center;margin-top:7px;padding:7px 12px!important;border:1px solid #1775c8!important;border-radius:9px!important;background:#fff!important;color:#1775c8!important;font:inherit!important;font-size:12px!important;font-weight:800!important;line-height:1.2!important;text-decoration:none!important;cursor:pointer!important;pointer-events:auto!important;position:relative!important;z-index:5!important;-webkit-appearance:none!important;appearance:none!important;touch-action:manipulation!important}.tmd-notification-action:active{transform:scale(.98)}.tmd-notification-item:focus{outline:2px solid #1775c8;outline-offset:2px}.tmd-notification-loading{padding:35px 10px;text-align:center;color:#666;font-weight:700}.tmd-notification-open{overflow:hidden}
@media(max-width:700px){.tmd-notification-dialog{padding:18px;border-radius:18px;max-height:86vh}.tmd-detail-grid{grid-template-columns:1fr}.tmd-detail-head h3{font-size:18px}}

/* v1.1.1 - WPMobile fixed-header/modal stacking fix */
html.tmd-modal-active,
body.tmd-notification-open{overflow:hidden!important}
.tmd-notification-modal{position:fixed!important;inset:0!important;z-index:2147483646!important;display:flex!important;align-items:flex-start!important;justify-content:center!important;padding:86px 12px 92px!important;box-sizing:border-box!important;isolation:isolate!important}
.tmd-notification-backdrop{position:absolute!important;inset:0!important;z-index:0!important}
.tmd-notification-dialog{position:relative!important;z-index:2!important;width:min(620px,100%)!important;max-height:calc(100vh - 178px)!important;overflow:auto!important;margin:0!important}
.tmd-notification-close{position:sticky!important;float:right!important;top:0!important;right:auto!important;margin:-4px -4px 8px auto!important;z-index:20!important;width:44px!important;height:44px!important;display:grid!important;place-items:center!important;flex:0 0 44px!important;cursor:pointer!important;pointer-events:auto!important}
.tmd-notification-dialog:after{content:"";display:block;clear:both}
@media(max-width:700px){
  .tmd-notification-modal{padding:78px 8px 88px!important}
  .tmd-notification-dialog{max-height:calc(100vh - 166px)!important;border-radius:18px!important;padding:16px!important}
  .tmd-notification-close{width:46px!important;height:46px!important;font-size:30px!important;margin:-2px -2px 6px auto!important;background:#f1f3f5!important}
}


/* v1.2.0 — Médecin: parcours multi-pages inspiré de la maquette TIKTAK */
.tmd-pro-wizard{max-width:760px;margin:0 auto;padding-bottom:40px}.tmd-pro-screen{display:none!important}.tmd-pro-screen.is-active{display:block!important}.tmd-pro-screen[hidden]{display:none!important}.tmd-pro-progress{display:grid;grid-template-columns:repeat(5,1fr);gap:7px;margin:0 0 14px}.tmd-pro-progress-step{display:flex;flex-direction:column;align-items:center;text-align:center;color:#68747d;gap:5px}.tmd-pro-progress-step b{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#e8edf1;color:#68747d;font-size:15px}.tmd-pro-progress-step small{font-size:10px;font-weight:800;line-height:1.15}.tmd-pro-progress-step.is-active b,.tmd-pro-progress-step.is-done b{background:#1479d1;color:#fff}.tmd-pro-progress-step.is-active small{color:#0d3d78}
.tmd-pro-page-head{display:flex;gap:16px;align-items:flex-start;margin-bottom:20px}.tmd-pro-brand-icon{width:68px;height:68px;border-radius:18px;background:#eaf6ff;display:grid;place-items:center;font-size:38px;flex:0 0 68px}.tmd-pro-page-head h2,.tmd-pro-inner-head h2{margin:0;font-size:29px;color:#20272d}.tmd-pro-page-head p,.tmd-pro-inner-head p{margin:6px 0 0;color:#69737b;line-height:1.45}.tmd-pro-notification-head{display:flex;align-items:center;justify-content:space-between;padding:14px 12px;border-bottom:1px solid #e5e9ed}.tmd-pro-notification-head strong{font-size:21px}.tmd-pro-badge{display:inline-grid;place-items:center;min-width:25px;height:25px;padding:0 6px;border-radius:50%;background:#1775c8;color:#fff;font-size:13px;vertical-align:middle}.tmd-pro-badge.is-empty{display:none}.tmd-pro-read-all{border:0;background:transparent;color:#59636b;font-weight:800;cursor:pointer}.tmd-pro-notification-list{display:flex;flex-direction:column}.tmd-pro-notification{display:grid;grid-template-columns:12px minmax(0,1fr) auto 20px;gap:10px;align-items:center;width:100%;text-align:left;border:0;border-bottom:1px solid #e9edf0;background:#fff;padding:17px 8px;cursor:pointer}.tmd-pro-notification:hover{background:#f7fbfe}.tmd-pro-dot{width:9px;height:9px;border-radius:50%;background:#9ca8b0;margin-top:5px}.tmd-pro-notification.is-unread .tmd-pro-dot{background:#1479d1}.tmd-pro-notif-copy{display:flex;flex-direction:column;gap:4px}.tmd-pro-notif-copy strong{font-size:15px;color:#27313a}.tmd-pro-notif-copy small{font-size:13px;color:#68737b}.tmd-pro-notif-copy em{font-style:normal;font-size:11px;color:#9aa2a8}.tmd-pro-arrow{font-size:28px;color:#1479d1;line-height:1}.tmd-pro-screen-actions{display:flex;gap:10px;margin-top:20px}.tmd-pro-primary,.tmd-pro-secondary,.tmd-pro-back{min-height:48px;border-radius:11px;padding:0 20px;font-weight:900;font-size:14px;cursor:pointer}.tmd-pro-primary{border:0;background:#1479d1;color:#fff;flex:1}.tmd-pro-secondary{border:1px solid #1479d1;background:#fff;color:#1479d1;flex:1}.tmd-pro-back{width:46px;padding:0;border:0;background:transparent;color:#30383e;font-size:32px;flex:0 0 46px}.tmd-pro-inner-head{display:flex;gap:8px;align-items:flex-start;margin-bottom:18px}.tmd-pro-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.tmd-pro-detail-grid>div{border:1px solid #e1e7eb;border-radius:12px;background:#f9fbfc;padding:14px}.tmd-pro-detail-grid span,.tmd-pro-detail-block>span{display:block;color:#71808a;font-size:12px;margin-bottom:5px}.tmd-pro-detail-grid strong{font-size:15px;line-height:1.35}.tmd-pro-detail-block{margin-top:10px;border:1px solid #e1e7eb;border-radius:12px;background:#f7fafc;padding:14px}.tmd-pro-detail-block p{margin:5px 0 0;line-height:1.55}.tmd-pro-loading{text-align:center;padding:35px;color:#68737b}.tmd-pro-patient-box{display:flex;gap:10px;background:#eaf6ff;border-radius:12px;padding:13px;margin-bottom:18px}.tmd-pro-patient-box>span{font-size:24px}.tmd-pro-patient-box strong{font-size:14px}.tmd-pro-patient-box p{margin:3px 0 0;font-size:13px;line-height:1.45}.tmd-pro-question{font-size:16px;margin:16px 0 10px}.tmd-pro-action-choices{display:flex;flex-direction:column;gap:8px}.tmd-pro-action-choice{display:flex;align-items:center;gap:11px;border:1px solid #d9e0e5;border-radius:12px;padding:11px;cursor:pointer;background:#fff}.tmd-pro-action-choice.is-selected{border-color:#1479d1;box-shadow:0 0 0 1px #1479d1;background:#f3f9ff}.tmd-pro-action-choice input{accent-color:#1479d1}.tmd-pro-action-choice>span{font-size:23px}.tmd-pro-action-choice div{display:flex;flex-direction:column;gap:2px}.tmd-pro-action-choice strong{font-size:14px}.tmd-pro-action-choice small{font-size:11px;color:#69737b}.tmd-pro-availability{margin-top:15px}.tmd-pro-availability h3{font-size:15px;margin:0 0 9px}.tmd-pro-availability{display:grid;grid-template-columns:1fr 1fr;gap:10px}.tmd-pro-availability h3{grid-column:1/-1}.tmd-pro-availability label,.tmd-pro-message-label{font-weight:800;font-size:12px;color:#303a41}.tmd-pro-availability input{display:block;width:100%;box-sizing:border-box;margin-top:5px;border:1px solid #d6dde2;border-radius:10px;padding:11px;background:#fff;font:inherit}.tmd-pro-message-label{display:block;margin-top:14px;position:relative}.tmd-pro-message-label textarea{display:block;width:100%;box-sizing:border-box;margin-top:6px;border:1px solid #d6dde2;border-radius:11px;padding:12px;resize:vertical;font:inherit;line-height:1.45}.tmd-pro-message-label>small{display:block;text-align:right;color:#8a949b;font-weight:500;margin-top:3px}.tmd-pro-response-error{margin-top:10px;color:#a00018;background:#fff0f2;border-radius:9px;padding:9px 11px;font-size:12px}.tmd-pro-response-error:empty{display:none}.tmd-pro-confirmation{text-align:center;padding-top:32px}.tmd-pro-success-icon{width:68px;height:68px;border-radius:50%;margin:0 auto 15px;background:#27b879;color:#fff;display:grid;place-items:center;font-size:42px;font-weight:900}.tmd-pro-confirmation h2{margin:0;font-size:25px}.tmd-pro-confirmation>p{color:#68737b}.tmd-pro-confirm-card{text-align:left;border:1px solid #dfe6eb;border-radius:13px;background:#f8fafb;padding:14px;margin-top:20px}.tmd-pro-confirm-card h3{font-size:14px;margin:0 0 10px}.tmd-pro-confirm-card>div{display:flex;gap:10px;margin:9px 0}.tmd-pro-confirm-card p{margin:0;line-height:1.5}.tmd-pro-info{margin-top:12px;text-align:left;background:#eaf6ff;border-radius:11px;padding:12px;font-size:12px;line-height:1.45}.tmd-pro-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;border-bottom:1px solid #e3e8ec;margin-bottom:8px}.tmd-pro-tabs button{min-width:0;border:0;background:#fff;color:#69737b;padding:10px 3px 9px;font-weight:800;cursor:pointer;border-bottom:3px solid transparent;display:flex;align-items:center;justify-content:center;gap:5px;line-height:1.15}.tmd-pro-tabs button>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tmd-pro-tabs button.is-active{color:#1479d1;border-bottom-color:#1479d1}.tmd-pro-tabs button[aria-selected="true"]{color:#1479d1}.tmd-tab-badge{display:inline-grid!important;place-items:center;flex:0 0 22px!important;width:22px;height:22px;min-width:22px!important;padding:0!important;margin:0!important;border-radius:50%;font-size:11px!important;line-height:22px;color:#fff!important;font-weight:900;box-sizing:border-box;overflow:visible!important}.tmd-tab-badge-new{background:#1479d1}.tmd-tab-badge-progress{background:#e0a800}.tmd-tab-badge-confirmed{background:#25a96b}.tmd-tab-badge-done{background:#69737b}.tmd-pro-followup-list{display:flex;flex-direction:column}.tmd-pro-followup-item{display:grid;grid-template-columns:1fr auto 16px;gap:9px;align-items:center;text-align:left;width:100%;border:0;border-bottom:1px solid #e8ecef;background:#fff;padding:14px 4px;cursor:pointer}.tmd-pro-followup-item:hover{background:#f7fbfe}.tmd-pro-followup-item>span{display:flex;flex-direction:column;gap:3px}.tmd-pro-followup-item strong{font-size:15px}.tmd-pro-followup-item small,.tmd-pro-followup-item em{font-size:11px;color:#71808a;font-style:normal}.tmd-pro-followup-item>i{font-size:25px;color:#1479d1;font-style:normal}.tmd-pro-status-pill{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:6px 9px;font-size:10px;white-space:nowrap;font-weight:900;min-width:58px;box-sizing:border-box}.tmd-pro-notification .tmd-pro-status-pill{align-self:start;margin-top:1px;min-width:68px;font-size:10px;padding:6px 8px}.tmd-pro-notification .tmd-pro-status-pill.tmd-status-new{background:#dceeff;color:#1479d1}.tmd-pro-notification .tmd-pro-status-pill.tmd-status-progress{background:#fff0b7;color:#8a6700}.tmd-pro-notification .tmd-pro-status-pill.tmd-status-confirmed{background:#d8f5e7;color:#1d7a4f}.tmd-pro-notification .tmd-pro-status-pill.tmd-status-done{background:#e4e7ea;color:#59636b}.tmd-status-new{background:#dceeff;color:#1479d1}.tmd-status-progress{background:#fff0b7;color:#8a6700}.tmd-status-confirmed{background:#d8f5e7;color:#1d7a4f}.tmd-status-done{background:#e4e7ea;color:#59636b}
@media(max-width:700px){.tmd-pro-wizard{padding:0 4px 30px}.tmd-pro-progress-step small{font-size:8px}.tmd-pro-page-head h2,.tmd-pro-inner-head h2{font-size:23px}.tmd-pro-page-head p,.tmd-pro-inner-head p{font-size:13px}.tmd-pro-brand-icon{width:58px;height:58px;flex-basis:58px;font-size:31px}.tmd-pro-detail-grid{grid-template-columns:1fr}.tmd-pro-availability{grid-template-columns:1fr}.tmd-pro-tabs{grid-template-columns:repeat(4,minmax(0,1fr));overflow:visible}.tmd-pro-tabs button{font-size:10px;padding-left:1px;padding-right:1px;gap:3px}.tmd-tab-badge{flex-basis:20px!important;width:20px;height:20px;min-width:20px!important;font-size:10px!important;line-height:20px}.tmd-pro-followup-item{grid-template-columns:1fr auto 13px}.tmd-pro-status-pill{font-size:10px;padding:5px 7px;min-width:55px}.tmd-pro-notification{grid-template-columns:10px minmax(0,1fr) auto 16px;gap:7px;padding:15px 4px}.tmd-pro-notification .tmd-pro-status-pill{min-width:60px;font-size:9px;padding:5px 6px}.tmd-pro-primary,.tmd-pro-secondary{min-height:50px}.tmd-pro-notification-head strong{font-size:18px}}


/* v1.2.3 — WPMobile-safe native notification navigation */
.tmd-pro-notification-form{display:block;margin:0;padding:0;border:0;}
.tmd-pro-notification-form .tmd-pro-notification{font:inherit;appearance:none;-webkit-appearance:none;display:grid;width:100%;box-sizing:border-box;text-decoration:none;color:inherit;cursor:pointer;text-align:left;position:relative;z-index:3;pointer-events:auto;touch-action:manipulation;}
.tmd-pro-notification-form .tmd-pro-notification:focus{outline:2px solid #1479d1;outline-offset:-2px;}

/* TIKTAK Pro — interaction safety inside mobile/WebView themes */
.tmd-pro-wizard .tmd-pro-notification,
.tmd-pro-wizard .tmd-pro-primary,
.tmd-pro-wizard .tmd-pro-secondary,
.tmd-pro-wizard .tmd-pro-back,
.tmd-pro-wizard .tmd-pro-followup-item,
.tmd-pro-wizard .tmd-pro-action-choice,
.tmd-pro-wizard input,
.tmd-pro-wizard textarea,
.tmd-pro-wizard select{position:relative;z-index:2;pointer-events:auto}

/* v1.2.5 — existing professional response / edit state */
.tmd-pro-existing-response{margin:18px 0;padding:16px 18px;border:1px solid #d8e3ec;border-radius:16px;background:#f7fbff}
.tmd-pro-existing-response[hidden]{display:none!important}
.tmd-pro-existing-response-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
.tmd-pro-existing-response-head strong{font-size:18px}
.tmd-pro-existing-response-head span{font-size:13px;font-weight:700;color:#16864a}
.tmd-pro-existing-response p{margin:0;line-height:1.55;white-space:pre-wrap}
.tmd-pro-existing-slot{display:flex;gap:18px;margin-top:12px;flex-wrap:wrap;font-size:14px}
.tmd-pro-existing-slot[hidden]{display:none!important}

/* v1.2.10 — center the patient success screen after submission */
.tmd-success-screen.is-visible{scroll-margin-top:20px;scroll-margin-bottom:20px;}
.tmd-private-thread{margin:13px 0;padding:12px;border-radius:12px;background:#f7fbff;border:1px solid #dbeaf5}.tmd-private-thread>strong{display:block;margin-bottom:9px;color:#176ea9;font-size:13px}.tmd-private-message{padding:9px 11px;border-radius:10px;background:#fff;border:1px solid #e7eaed;margin-top:7px}.tmd-private-message.is-patient{background:#eef8ff;border-color:#cfe6f7}
/* v1.2.38 — Nouveau message : cadre rouge visible, premium et animé.
 * Visuel uniquement : aucune modification de la logique realtime.
 */
.tmd-live-new-message{
    position:relative;
    border-radius:14px;
    transition:box-shadow .25s ease, transform .25s ease;
}
.tmd-new-message-indicator{
    position:relative;
    z-index:6;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:9px;
    width:calc(100% - 20px);
    max-width:520px;
    box-sizing:border-box;
    margin:10px auto 8px;
    padding:10px 16px;
    border:2px solid #e31b23;
    border-radius:12px;
    background:#fff7f7;
    color:#c9141c;
    font:800 13px/1.25 inherit;
    letter-spacing:.15px;
    cursor:pointer;
    box-shadow:0 0 0 0 rgba(227,27,35,.28),0 5px 16px rgba(80,20,20,.12);
    animation:tmdNewMessageFrame 1.65s ease-in-out infinite, tmdNewMessageEnter .32s cubic-bezier(.2,.8,.2,1) both;
}
.tmd-new-message-indicator:hover{
    background:#fff0f0;
    border-color:#c9141c;
    color:#a90f16;
    box-shadow:0 0 0 4px rgba(227,27,35,.10),0 8px 20px rgba(80,20,20,.16);
}
.tmd-new-message-indicator:active{transform:scale(.985)}
.tmd-new-message-indicator:focus-visible{outline:3px solid rgba(227,27,35,.28);outline-offset:3px}
.tmd-new-message-dot{
    width:9px;
    height:9px;
    min-width:9px;
    border-radius:50%;
    background:#e31b23;
    box-shadow:0 0 0 0 rgba(227,27,35,.45);
    animation:tmdNewMessageDot 1.05s ease-out infinite;
}
.tmd-new-message-arrow{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:22px;
    height:22px;
    border-radius:50%;
    background:#e31b23;
    color:#fff;
    font-size:14px;
    line-height:1;
    animation:tmdNewMessageArrow 1.05s ease-in-out infinite;
}
.tmd-live-new-message .tmd-chat-bubble{
    border-color:#e31b23!important;
    animation:tmdNewMessageBubble 1.5s ease-in-out 2;
}
@keyframes tmdNewMessageEnter{
    from{opacity:0;transform:translateY(-7px) scale(.97)}
    to{opacity:1;transform:translateY(0) scale(1)}
}
@keyframes tmdNewMessageFrame{
    0%,100%{box-shadow:0 0 0 0 rgba(227,27,35,.16),0 5px 16px rgba(80,20,20,.12)}
    50%{box-shadow:0 0 0 7px rgba(227,27,35,.10),0 7px 20px rgba(80,20,20,.16)}
}
@keyframes tmdNewMessageDot{
    0%{box-shadow:0 0 0 0 rgba(227,27,35,.48);transform:scale(.9)}
    70%{box-shadow:0 0 0 7px rgba(227,27,35,0);transform:scale(1.08)}
    100%{box-shadow:0 0 0 0 rgba(227,27,35,0);transform:scale(1)}
}
@keyframes tmdNewMessageArrow{
    0%,100%{transform:translateY(-1px)}
    50%{transform:translateY(3px)}
}
@keyframes tmdNewMessageBubble{
    0%,100%{box-shadow:0 0 0 0 rgba(227,27,35,0)}
    45%{box-shadow:0 0 0 5px rgba(227,27,35,.16)}
}

/* v1.2.39 — Nouveau message : la bulle du message reçu devient temporairement rouge.
 * Le texte du message passe en blanc pendant l'alerte puis revient automatiquement
 * à son style normal lorsque la classe realtime est retirée.
 */
.tmd-chat-message.is-theirs.tmd-live-new-message .tmd-chat-bubble{
    background:#e31b23!important;
    border-color:#e31b23!important;
    color:#fff!important;
    box-shadow:0 0 0 0 rgba(227,27,35,.34),0 5px 16px rgba(227,27,35,.24)!important;
    animation:tmdNewIncomingBubbleRed 1.15s ease-in-out infinite!important;
}
.tmd-chat-message.is-theirs.tmd-live-new-message .tmd-chat-body{
    color:#fff!important;
}
.tmd-chat-message.is-theirs.tmd-live-new-message .tmd-chat-bubble::after{
    content:'';
    position:absolute;
    inset:-4px;
    border:2px solid rgba(227,27,35,.38);
    border-radius:inherit;
    pointer-events:none;
    animation:tmdNewIncomingRing 1.15s ease-out infinite;
}
@keyframes tmdNewIncomingBubbleRed{
    0%,100%{
        background:#e31b23;
        box-shadow:0 0 0 0 rgba(227,27,35,.30),0 5px 16px rgba(227,27,35,.22);
        transform:scale(1);
    }
    50%{
        background:#d9141d;
        box-shadow:0 0 0 6px rgba(227,27,35,.12),0 8px 22px rgba(227,27,35,.30);
        transform:scale(1.018);
    }
}
@keyframes tmdNewIncomingRing{
    0%{opacity:.62;transform:scale(.98)}
    70%{opacity:0;transform:scale(1.045)}
    100%{opacity:0;transform:scale(1.045)}
}
@media (prefers-reduced-motion:reduce){
    .tmd-chat-message.is-theirs.tmd-live-new-message .tmd-chat-bubble,
    .tmd-chat-message.is-theirs.tmd-live-new-message .tmd-chat-bubble::after{animation:none!important}
}

.tmd-private-message small{display:block;color:#777;font-size:10px;margin-bottom:3px}.tmd-private-message p{margin:0!important;line-height:1.45}.tmd-patient-reply-form{margin-top:12px;padding-top:12px;border-top:1px solid #e7eaed}.tmd-patient-reply-form label{display:block;font-weight:800;font-size:13px}.tmd-patient-reply-message{display:block;width:100%;box-sizing:border-box;margin-top:7px;border:1px solid #d5dce1;border-radius:10px;padding:10px;font:inherit;resize:vertical}.tmd-patient-reply-message:focus{outline:none;border-color:#1775c8;box-shadow:0 0 0 3px rgba(23,117,200,.1)}.tmd-patient-reply-submit{margin-top:8px;border:0;border-radius:10px;background:#1775c8;color:#fff;padding:10px 14px;font-weight:800;cursor:pointer}.tmd-patient-reply-submit:disabled{opacity:.65;cursor:wait}.tmd-patient-reply-result{margin-top:7px;font-size:12px;color:#27713d}.tmd-pro-private-thread{margin:15px 0;padding:14px;border-radius:14px;background:#f7fbff;border:1px solid #dbeaf5}.tmd-pro-private-thread h4{margin:0 0 9px;font-size:15px;color:#176ea9}.tmd-pro-private-message{padding:9px 11px;border-radius:10px;background:#fff;border:1px solid #e7eaed;margin-top:7px}.tmd-pro-private-message.is-patient{background:#eef8ff;border-color:#cfe6f7}.tmd-pro-private-message small{display:block;color:#777;font-size:10px;margin-bottom:3px}.tmd-pro-private-message p{margin:0;line-height:1.45;white-space:pre-wrap}
.tmd-private-thread{margin:13px 0;padding:12px;border-radius:12px;background:#f7fbff;border:1px solid #dbeaf5}.tmd-private-thread>strong{display:block;margin-bottom:9px;color:#176ea9;font-size:13px}.tmd-private-message{padding:9px 11px;border-radius:10px;background:#fff;border:1px solid #e7eaed;margin-top:7px}.tmd-private-message.is-patient{background:#eef8ff;border-color:#cfe6f7}
/* v1.2.39 — Nouveau message : la bulle du message reçu devient temporairement rouge.
 * Le texte du message passe en blanc pendant l'alerte puis revient automatiquement
 * à son style normal lorsque la classe realtime est retirée.
 */
.tmd-chat-message.is-theirs.tmd-live-new-message .tmd-chat-bubble{
    background:#e31b23!important;
    border-color:#e31b23!important;
    color:#fff!important;
    box-shadow:0 0 0 0 rgba(227,27,35,.34),0 5px 16px rgba(227,27,35,.24)!important;
    animation:tmdNewIncomingBubbleRed 1.15s ease-in-out infinite!important;
}
.tmd-chat-message.is-theirs.tmd-live-new-message .tmd-chat-body{
    color:#fff!important;
}
.tmd-chat-message.is-theirs.tmd-live-new-message .tmd-chat-bubble::after{
    content:'';
    position:absolute;
    inset:-4px;
    border:2px solid rgba(227,27,35,.38);
    border-radius:inherit;
    pointer-events:none;
    animation:tmdNewIncomingRing 1.15s ease-out infinite;
}
@keyframes tmdNewIncomingBubbleRed{
    0%,100%{
        background:#e31b23;
        box-shadow:0 0 0 0 rgba(227,27,35,.30),0 5px 16px rgba(227,27,35,.22);
        transform:scale(1);
    }
    50%{
        background:#d9141d;
        box-shadow:0 0 0 6px rgba(227,27,35,.12),0 8px 22px rgba(227,27,35,.30);
        transform:scale(1.018);
    }
}
@keyframes tmdNewIncomingRing{
    0%{opacity:.62;transform:scale(.98)}
    70%{opacity:0;transform:scale(1.045)}
    100%{opacity:0;transform:scale(1.045)}
}
@media (prefers-reduced-motion:reduce){
    .tmd-chat-message.is-theirs.tmd-live-new-message .tmd-chat-bubble,
    .tmd-chat-message.is-theirs.tmd-live-new-message .tmd-chat-bubble::after{animation:none!important}
}

.tmd-private-message small{display:block;color:#777;font-size:10px;margin-bottom:3px}.tmd-private-message p{margin:0!important;line-height:1.45}.tmd-patient-reply-form{margin-top:12px;padding-top:12px;border-top:1px solid #e7eaed}.tmd-patient-reply-form label{display:block;font-weight:800;font-size:13px}.tmd-patient-reply-message{display:block;width:100%;box-sizing:border-box;margin-top:7px;border:1px solid #d5dce1;border-radius:10px;padding:10px;font:inherit;resize:vertical}.tmd-patient-reply-message:focus{outline:none;border-color:#1775c8;box-shadow:0 0 0 3px rgba(23,117,200,.1)}.tmd-patient-reply-submit{margin-top:8px;border:0;border-radius:10px;background:#1775c8;color:#fff;padding:10px 14px;font-weight:800;cursor:pointer}.tmd-patient-reply-submit:disabled{opacity:.65;cursor:wait}.tmd-patient-reply-result{margin-top:7px;font-size:12px;color:#27713d}.tmd-pro-private-thread{margin:15px 0;padding:14px;border-radius:14px;background:#f7fbff;border:1px solid #dbeaf5}.tmd-pro-private-thread h4{margin:0 0 9px;font-size:15px;color:#176ea9}.tmd-pro-private-message{padding:9px 11px;border-radius:10px;background:#fff;border:1px solid #e7eaed;margin-top:7px}.tmd-pro-private-message.is-patient{background:#eef8ff;border-color:#cfe6f7}.tmd-pro-private-message small{display:block;color:#777;font-size:10px;margin-bottom:3px}.tmd-pro-private-message p{margin:0;line-height:1.45;white-space:pre-wrap}


/* v1.2.16 — WPMobile/WebView: compact notification modal action buttons */
.tmd-notification-modal .tmd-detail-actions{display:flex!important;flex-direction:row!important;align-items:stretch!important;justify-content:stretch!important;gap:10px!important;width:100%!important;box-sizing:border-box!important;}
.tmd-notification-modal .tmd-detail-actions .tmd-detail-choose,
.tmd-notification-modal .tmd-detail-actions .tmd-detail-close{display:flex!important;align-items:center!important;justify-content:center!important;flex:1 1 0!important;width:auto!important;min-width:0!important;max-width:none!important;height:50px!important;min-height:50px!important;max-height:50px!important;margin:0!important;padding:0 10px!important;box-sizing:border-box!important;border-radius:11px!important;font-size:16px!important;line-height:1.2!important;font-weight:800!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.tmd-notification-modal .tmd-detail-actions .tmd-detail-choose + .tmd-detail-close{flex:1 1 0!important;}
@media(max-width:380px){.tmd-notification-modal .tmd-detail-actions{gap:7px!important}.tmd-notification-modal .tmd-detail-actions .tmd-detail-choose,.tmd-notification-modal .tmd-detail-actions .tmd-detail-close{height:46px!important;min-height:46px!important;max-height:46px!important;padding:0 7px!important;font-size:14px!important;}}


/* TIKTAK Demande Médicale v1.2.17 — reprise sécurisée après authentification. */
.tmd-auth-resume-note{
    margin:14px 0;
    padding:14px 16px;
    border-radius:16px;
    background:#eef9f3;
    color:#256047;
    font-size:15px;
    line-height:1.5;
    border:1px solid rgba(37,96,71,.10);
}
.tmd-auth-resume-note[hidden]{display:none!important;}

.tmd-pro-reply-form{margin-top:12px;padding-top:12px;border-top:1px solid #e7eaed}.tmd-pro-reply-form label{display:block;font-weight:800;font-size:13px}.tmd-pro-reply-message{display:block;width:100%;box-sizing:border-box;margin-top:7px;border:1px solid #d5dce1;border-radius:10px;padding:10px;font:inherit;resize:vertical}.tmd-pro-reply-message:focus{outline:none;border-color:#1775c8;box-shadow:0 0 0 3px rgba(23,117,200,.1)}.tmd-pro-reply-submit{margin-top:8px;border:0;border-radius:10px;background:#1775c8;color:#fff;padding:10px 14px;font-weight:800;cursor:pointer}.tmd-pro-reply-submit:disabled{opacity:.65;cursor:wait}.tmd-pro-reply-result{margin-top:7px;font-size:12px;color:#27713d}

/* v1.2.23 — Correction robuste des zones d'actions du médecin.
 * Les anciennes règles imposaient une première colonne de 42/46px à toutes
 * les zones d'actions. Cela coupait les boutons lorsqu'il n'y avait pas de
 * bouton « Retour » en première position (notifications, terminer,
 * confirmation avec 3 boutons).
 *
 * Chaque disposition est maintenant explicitement identifiée par sa classe
 * afin de rester stable avec le thème WordPress et WPMobile/WebView.
 */
.tmd-pro-wizard .tmd-pro-screen-actions{
    width:100% !important;
    box-sizing:border-box !important;
    margin-top:20px !important;
    position:relative !important;
    gap:10px !important;
}

.tmd-pro-wizard .tmd-pro-screen-actions > .tmd-pro-primary,
.tmd-pro-wizard .tmd-pro-screen-actions > .tmd-pro-secondary,
.tmd-pro-wizard .tmd-pro-screen-actions > .tmd-pro-back{
    position:relative !important;
    inset:auto !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    min-width:0 !important;
    max-width:100% !important;
    min-height:50px !important;
    height:auto !important;
    max-height:none !important;
    margin:0 !important;
    box-sizing:border-box !important;
    padding:10px 12px !important;
    line-height:1.2 !important;
    white-space:normal !important;
    overflow-wrap:anywhere !important;
    word-break:normal !important;
    overflow:hidden !important;
    text-overflow:clip !important;
}

/* Un seul bouton : pleine largeur. */
.tmd-pro-wizard .tmd-pro-actions-full{
    display:flex !important;
}
.tmd-pro-wizard .tmd-pro-actions-full > button{
    flex:1 1 100% !important;
    width:100% !important;
}

/* Deux actions sans bouton Retour : deux colonnes sur grand écran. */
.tmd-pro-wizard .tmd-pro-actions-two{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
}
.tmd-pro-wizard .tmd-pro-actions-two > button{
    width:100% !important;
}

/* Retour + action principale. */
.tmd-pro-wizard .tmd-pro-actions-back-primary{
    display:grid !important;
    grid-template-columns:minmax(120px,1fr) minmax(0,2fr) !important;
}
.tmd-pro-wizard .tmd-pro-actions-back-primary > .tmd-pro-back{
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    padding:10px 12px !important;
    white-space:normal !important;
    overflow-wrap:anywhere !important;
    overflow:hidden !important;
}
.tmd-pro-wizard .tmd-pro-actions-back-primary > .tmd-pro-primary{
    width:100% !important;
}

/* Écran de confirmation : trois vrais boutons, sans colonne fantôme. */
.tmd-pro-wizard .tmd-pro-actions-three{
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
}
.tmd-pro-wizard .tmd-pro-actions-three > button{
    width:100% !important;
}

@media(max-width:700px){
    .tmd-pro-wizard .tmd-pro-screen-actions{
        gap:8px !important;
    }

    .tmd-pro-wizard .tmd-pro-actions-two{
        grid-template-columns:1fr !important;
    }

    .tmd-pro-wizard .tmd-pro-actions-back-primary{
        grid-template-columns:1fr !important;
    }
    .tmd-pro-wizard .tmd-pro-actions-back-primary > .tmd-pro-back{
        width:100% !important;
        min-width:0 !important;
        max-width:100% !important;
        padding:10px 12px !important;
    }

    .tmd-pro-wizard .tmd-pro-actions-three{
        grid-template-columns:1fr !important;
    }

    .tmd-pro-wizard .tmd-pro-screen-actions > .tmd-pro-primary,
    .tmd-pro-wizard .tmd-pro-screen-actions > .tmd-pro-secondary{
        width:100% !important;
        min-height:50px !important;
        padding-left:12px !important;
        padding-right:12px !important;
        font-size:14px !important;
    }
}

/* v1.2.31 — conversation privée style Messenger, basé sur ph-1.
 * Couche visuelle uniquement : aucune règle métier, aucun polling modifié.
 */
.tmd-detail-response-messenger{padding:0!important;border:0!important;background:transparent!important;margin:14px 0 0!important}
.tmd-detail-response-messenger .tmd-response-summary{padding:0 2px 10px}
.tmd-detail-response-messenger .tmd-response-summary>strong{font-size:14px}
.tmd-detail-response-messenger .tmd-response-summary>small{display:block;color:#7b858e;margin-top:3px;font-size:11px}
.tmd-detail-response-messenger .tmd-response-summary>p{margin:7px 0!important;color:#30363b;font-size:14px}
.tmd-detail-response-messenger .tmd-slot{margin-bottom:10px}

.tmd-messenger-thread{margin:0!important;padding:0!important;border:1px solid #e1e6ec!important;border-radius:22px!important;background:#fff!important;overflow:hidden!important;box-shadow:0 5px 18px rgba(31,50,70,.06)}
.tmd-chat-header{display:flex;align-items:center;gap:12px;min-height:74px;padding:12px 16px;border-bottom:1px solid #e8edf2;background:#fff;box-sizing:border-box}
.tmd-chat-header-copy{min-width:0;display:flex;flex-direction:column;gap:3px;flex:1}
.tmd-chat-header-copy strong{font-size:17px!important;line-height:1.2!important;color:#1e2630!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tmd-chat-header-copy span{font-size:12px;color:#8b959e}
.tmd-chat-online{width:9px;height:9px;border-radius:50%;background:#23ad6b;box-shadow:0 0 0 3px #e7f8ef;flex:0 0 9px;margin-right:3px}
.tmd-chat-avatar{position:relative;width:44px;height:44px;min-width:44px;border-radius:50%;display:grid;place-items:center;overflow:hidden;background:linear-gradient(135deg,#2387c9,#55a9df);color:#fff;font-size:15px;font-weight:900;letter-spacing:.2px;box-sizing:border-box}
.tmd-chat-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;z-index:2;background:#e9f3fa}
.tmd-chat-avatar-fallback{position:absolute;inset:0;display:grid;place-items:center;z-index:1}
.tmd-chat-header-avatar{width:48px;height:48px;min-width:48px;font-size:16px}
.tmd-chat-messages{max-height:430px;overflow-y:auto;overflow-x:hidden;padding:15px 12px 17px;background:#fbfcfe;scroll-behavior:smooth;box-sizing:border-box;-webkit-overflow-scrolling:touch}
.tmd-chat-date-divider{display:flex;justify-content:center;margin:4px 0 16px}
.tmd-chat-date-divider span{display:inline-flex;align-items:center;justify-content:center;padding:7px 13px;border-radius:999px;background:#edf1f6;color:#68737e;font-size:11px;font-weight:700}
.tmd-chat-message{display:flex;align-items:flex-end;gap:7px;width:100%;margin:0 0 12px;box-sizing:border-box}
.tmd-chat-message.is-theirs{justify-content:flex-start;padding-right:16%}
.tmd-chat-message.is-mine{justify-content:flex-end;padding-left:16%}
.tmd-chat-message-avatar{width:34px;height:34px;min-width:34px;font-size:11px;margin-bottom:1px}
.tmd-chat-bubble{position:relative;max-width:min(78%,390px);padding:9px 12px 10px;border-radius:18px;box-sizing:border-box;box-shadow:0 1px 2px rgba(28,45,60,.08)}
.tmd-chat-message.is-theirs .tmd-chat-bubble{background:#eef1f5;border:1px solid #e2e6eb;border-bottom-left-radius:6px;color:#20262d}
.tmd-chat-message.is-mine .tmd-chat-bubble{background:#177bc7;border:1px solid #177bc7;border-bottom-right-radius:6px;color:#fff}
.tmd-chat-meta{display:flex;align-items:baseline;gap:7px;margin-bottom:3px;line-height:1.1}
.tmd-chat-meta strong{font-size:11px!important;font-weight:800!important;color:inherit!important;margin:0!important;display:inline!important}
.tmd-chat-meta time{font-size:10px;color:inherit;opacity:.65;white-space:nowrap}
.tmd-chat-body{font-size:16px;line-height:1.4;word-break:break-word;white-space:normal}
.tmd-chat-check{margin-top:2px;text-align:right;font-size:10px;line-height:1;color:#d9f0ff;letter-spacing:-2px}
.tmd-chat-message.is-mine.tmd-live-new-message .tmd-chat-bubble{animation:tmdMessengerNewMessage .9s ease-out 1;box-shadow:0 0 0 3px rgba(23,123,199,.10),0 5px 17px rgba(23,123,199,.16)}
.tmd-chat-message.is-theirs.tmd-live-new-message .tmd-chat-bubble{animation:tmdMessengerNewMessage .9s ease-out 1;box-shadow:0 0 0 3px rgba(23,123,199,.09),0 5px 17px rgba(23,123,199,.13)}
.tmd-chat-message{position:relative}
@keyframes tmdMessengerNewMessage{0%{transform:scale(.98);opacity:.78}55%{transform:scale(1.015);opacity:1}100%{transform:scale(1);opacity:1}}

.tmd-messenger-composer{display:flex!important;align-items:flex-end;gap:8px;margin:0!important;padding:11px 10px 10px!important;border-top:1px solid #e7ebf0!important;background:#fff!important;box-sizing:border-box}
.tmd-messenger-composer label{display:block;flex:1;min-width:0;font-size:0!important}
.tmd-messenger-composer textarea{display:block!important;width:100%!important;min-height:44px!important;max-height:105px!important;box-sizing:border-box!important;margin:0!important;border:1px solid #dce3e9!important;border-radius:22px!important;background:#f6f8fa!important;padding:11px 15px!important;resize:none!important;font:inherit!important;font-size:14px!important;line-height:1.35!important;color:#20262d!important;outline:none!important}
.tmd-messenger-composer textarea:focus{border-color:#177bc7!important;background:#fff!important;box-shadow:0 0 0 3px rgba(23,123,199,.10)!important}
.tmd-messenger-composer textarea::placeholder{color:#89949e}
.tmd-messenger-composer button{width:44px!important;height:44px!important;min-width:44px!important;margin:0!important;border:0!important;border-radius:50%!important;background:#177bc7!important;color:#fff!important;padding:0!important;display:grid!important;place-items:center!important;font-size:22px!important;font-weight:900!important;line-height:1!important;cursor:pointer!important;box-shadow:0 3px 10px rgba(23,123,199,.22)!important}
.tmd-messenger-composer button:disabled{opacity:.55!important;cursor:wait!important}
.tmd-messenger-composer .tmd-patient-reply-result,.tmd-messenger-composer .tmd-pro-reply-result{position:absolute;margin:0!important;left:12px;right:60px;bottom:-22px;font-size:10px!important;line-height:1.2;z-index:4}
.tmd-messenger-composer{position:relative!important}

@media(max-width:520px){
    .tmd-messenger-thread{border-radius:20px!important}
    .tmd-chat-messages{max-height:52vh;min-height:220px;padding:14px 9px 15px}
    .tmd-chat-message.is-theirs{padding-right:8%}
    .tmd-chat-message.is-mine{padding-left:8%}
    .tmd-chat-bubble{max-width:82%;padding:8px 11px 9px}
    .tmd-chat-body{font-size:15px}
    .tmd-chat-header{min-height:68px;padding:10px 13px}
    .tmd-chat-header-copy strong{font-size:16px!important}
}
@media(prefers-reduced-motion:reduce){
    .tmd-live-new-message .tmd-chat-bubble{animation:none!important}
    .tmd-new-message-indicator,.tmd-new-message-dot{animation:none!important}
    .tmd-chat-messages{scroll-behavior:auto}
}

/* v1.2.34 — Messenger ph-1: sender meta outside the message bubble.
 * The message bubble contains text only; realtime/new-message behavior is unchanged.
 */
.tmd-chat-message .tmd-chat-content{
    display:flex;
    flex-direction:column;
    min-width:0;
    max-width:min(78%,390px);
    box-sizing:border-box;
}
.tmd-chat-message.is-theirs .tmd-chat-content{
    align-items:flex-start;
}
.tmd-chat-message.is-mine .tmd-chat-content{
    align-items:flex-end;
}
.tmd-chat-message .tmd-chat-meta{
    display:flex;
    align-items:baseline;
    gap:7px;
    width:100%;
    box-sizing:border-box;
    margin:0 0 4px;
    padding:0 4px;
    line-height:1.1;
    color:#20262d;
}
.tmd-chat-message.is-mine .tmd-chat-meta{
    justify-content:flex-end;
    text-align:right;
}
.tmd-chat-message.is-theirs .tmd-chat-meta{
    justify-content:flex-start;
    text-align:left;
}
.tmd-chat-message .tmd-chat-meta strong{
    font-size:11px!important;
    font-weight:800!important;
    color:inherit!important;
    margin:0!important;
    display:inline!important;
}
.tmd-chat-message .tmd-chat-meta time{
    font-size:10px;
    color:inherit;
    opacity:.65;
    white-space:nowrap;
}
.tmd-chat-message .tmd-chat-bubble{
    max-width:100%;
}
.tmd-chat-message .tmd-chat-check{
    margin-top:3px;
    padding:0 4px;
    width:auto;
    box-sizing:border-box;
}
.tmd-chat-message.is-mine .tmd-chat-check{
    align-self:flex-end;
    text-align:right;
}
@media(max-width:600px){
    .tmd-chat-message .tmd-chat-content{
        max-width:82%;
    }
}

/* v1.2.35 — Professional conversation fills the page.
 * The existing-response wrapper remains in the DOM for business logic,
 * but its visual card is removed. The Messenger thread is no longer a
 * window inside another window, and the message area grows with content.
 * No realtime, polling, data or business rules are changed.
 */
.tmd-pro-existing-response.tmd-pro-existing-response-messenger{
    margin:0!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
}
.tmd-pro-existing-response-messenger .tmd-messenger-thread{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:#fff!important;
    box-shadow:none!important;
    overflow:visible!important;
}
.tmd-pro-existing-response-messenger .tmd-chat-header{
    border-radius:0!important;
}
.tmd-pro-existing-response-messenger .tmd-chat-messages{
    max-height:none!important;
    min-height:0!important;
    height:auto!important;
    overflow:visible!important;
    padding:16px 12px 18px!important;
    background:#fff!important;
    scroll-behavior:auto!important;
}
.tmd-pro-existing-response-messenger .tmd-chat-message{
    overflow:visible!important;
}
.tmd-pro-existing-response-messenger .tmd-chat-body{
    overflow:visible!important;
    word-break:break-word!important;
    overflow-wrap:anywhere!important;
}
.tmd-pro-existing-response-messenger .tmd-messenger-composer{
    border-radius:0!important;
}
@media(max-width:700px){
    .tmd-pro-existing-response-messenger .tmd-chat-messages{
        max-height:none!important;
        min-height:0!important;
        overflow:visible!important;
        padding:14px 8px 16px!important;
    }
    .tmd-pro-existing-response-messenger .tmd-chat-message .tmd-chat-content{
        max-width:84%!important;
    }
}


/* v1.2.36 — Patient conversation: one window only, no nested conversation card.
 * The patient uses the existing notification dialog as the single conversation
 * surface. The professional workflow remains unchanged.
 */
.tmd-notification-modal.tmd-patient-conversation-mode{
    padding:0!important;
    align-items:stretch!important;
    justify-content:stretch!important;
}
.tmd-notification-modal.tmd-patient-conversation-mode .tmd-notification-dialog{
    width:100%!important;
    max-width:none!important;
    height:100%!important;
    max-height:none!important;
    margin:0!important;
    padding:0!important;
    border-radius:0!important;
    overflow:auto!important;
    background:#fff!important;
    box-shadow:none!important;
}
.tmd-notification-modal.tmd-patient-conversation-mode .tmd-notification-close{
    z-index:20!important;
    top:14px!important;
    right:14px!important;
}
.tmd-notification-modal.tmd-patient-conversation-mode .tmd-detail-head,
.tmd-notification-modal.tmd-patient-conversation-mode .tmd-detail-grid,
.tmd-notification-modal.tmd-patient-conversation-mode > .tmd-notification-dialog > .tmd-detail-head,
.tmd-notification-modal.tmd-patient-conversation-mode > .tmd-notification-dialog > .tmd-detail-grid{
    display:none!important;
}
.tmd-notification-modal.tmd-patient-conversation-mode .tmd-detail-responses{
    margin:0!important;
}
.tmd-notification-modal.tmd-patient-conversation-mode .tmd-detail-responses h4{
    display:none!important;
}
.tmd-notification-modal.tmd-patient-conversation-mode .tmd-detail-response{
    margin:0!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:#fff!important;
}
.tmd-notification-modal.tmd-patient-conversation-mode .tmd-response-summary,
.tmd-notification-modal.tmd-patient-conversation-mode .tmd-response-summary + .tmd-chat-header{
    margin:0!important;
}
.tmd-notification-modal.tmd-patient-conversation-mode .tmd-response-summary{
    display:none!important;
}
.tmd-notification-modal.tmd-patient-conversation-mode .tmd-messenger-thread{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    background:#fff!important;
    overflow:visible!important;
}
.tmd-notification-modal.tmd-patient-conversation-mode .tmd-chat-header{
    position:sticky!important;
    top:0!important;
    z-index:10!important;
    min-height:82px!important;
    padding:14px 58px 14px 18px!important;
    border-bottom:1px solid #e8edf2!important;
}
.tmd-notification-modal.tmd-patient-conversation-mode .tmd-chat-messages{
    max-height:none!important;
    min-height:0!important;
    height:auto!important;
    overflow:visible!important;
    padding:16px 14px 20px!important;
    background:#fff!important;
}
.tmd-notification-modal.tmd-patient-conversation-mode .tmd-messenger-composer{
    position:sticky!important;
    bottom:0!important;
    z-index:9!important;
    margin:0!important;
    border-top:1px solid #e7ebf0!important;
    background:#fff!important;
    padding:12px 12px 10px!important;
}
.tmd-notification-modal.tmd-patient-conversation-mode .tmd-detail-actions{
    margin:0!important;
    padding:10px 12px 14px!important;
    border-top:1px solid #eef1f4!important;
    background:#fff!important;
}
.tmd-notification-modal.tmd-patient-conversation-mode .tmd-detail-block,
.tmd-notification-modal.tmd-patient-conversation-mode .tmd-slot,
.tmd-notification-modal.tmd-patient-conversation-mode .tmd-accepted{
    display:none!important;
}
@media(max-width:700px){
    .tmd-notification-modal.tmd-patient-conversation-mode .tmd-chat-header{
        min-height:76px!important;
        padding-left:14px!important;
        padding-right:58px!important;
    }
    .tmd-notification-modal.tmd-patient-conversation-mode .tmd-chat-messages{
        padding:14px 9px 18px!important;
    }
}

/* v1.2.41 — Patient: la discussion ouverte sort complètement de la carte réponse.
 * Elle occupe toute la largeur de la page/viewport : aucun panneau imbriqué.
 * L'entête de la demande reste visible au-dessus du bouton d'ouverture.
 */
.tmd-inline-conversation-panel{
    position:relative!important;
    left:50%!important;
    width:100vw!important;
    max-width:100vw!important;
    margin-left:-50vw!important;
    margin-right:0!important;
    margin-top:12px!important;
    border:0!important;
    border-radius:0!important;
    background:#fff!important;
    box-shadow:none!important;
    overflow:visible!important;
}
.tmd-inline-conversation-panel .tmd-private-thread.tmd-messenger-thread{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:#fff!important;
    box-shadow:none!important;
    overflow:visible!important;
}
.tmd-inline-conversation-panel .tmd-chat-header{
    width:100%!important;
    min-height:74px!important;
    border-radius:0!important;
    border-left:0!important;
    border-right:0!important;
}
.tmd-inline-conversation-panel .tmd-chat-messages{
    width:100%!important;
    max-width:none!important;
    max-height:none!important;
    min-height:0!important;
    height:auto!important;
    overflow:visible!important;
    box-sizing:border-box!important;
    padding:18px 5vw 22px!important;
}
.tmd-inline-conversation-panel .tmd-messenger-composer{
    width:100%!important;
    box-sizing:border-box!important;
    border-radius:0!important;
    border-left:0!important;
    border-right:0!important;
    padding-left:5vw!important;
    padding-right:5vw!important;
}
@media(max-width:600px){
    .tmd-inline-conversation-panel .tmd-chat-header{padding-left:16px!important;padding-right:16px!important}
    .tmd-inline-conversation-panel .tmd-chat-messages{padding:16px 14px 20px!important}
    .tmd-inline-conversation-panel .tmd-messenger-composer{padding-left:12px!important;padding-right:12px!important}
}

/* v1.2.40 — Patient: demande visible, conversation fermée par défaut.
 * Un seul bouton ouvre la conversation complète en plein flux de page.
 * Aucun changement du realtime/polling : le thread reste simplement caché
 * jusqu'à l'ouverture par l'utilisateur.
 */
.tmd-inline-conversation{
    margin:14px 0 10px;
    width:100%;
}
.tmd-conversation-toggle{
    width:100%;
    display:flex;
    align-items:center;
    gap:11px;
    box-sizing:border-box;
    border:1px solid #d7e5f1;
    border-radius:16px;
    padding:12px 13px;
    background:#f7fbff;
    color:#176ea9;
    text-align:left;
    cursor:pointer;
    transition:background .18s ease,border-color .18s ease,box-shadow .18s ease,transform .12s ease;
    -webkit-tap-highlight-color:transparent;
}
.tmd-conversation-toggle:hover{
    background:#f1f8ff;
    border-color:#b9d4e8;
    box-shadow:0 5px 16px rgba(23,110,169,.10);
}
.tmd-conversation-toggle:active{transform:scale(.992)}
.tmd-conversation-toggle:focus-visible{outline:3px solid rgba(23,117,200,.18);outline-offset:2px}
.tmd-conversation-toggle-icon{
    width:38px;height:38px;min-width:38px;border-radius:12px;
    display:grid;place-items:center;background:#177bc7;color:#fff;font-size:19px;
    box-shadow:0 4px 10px rgba(23,123,199,.18);
}
.tmd-conversation-toggle-copy{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.tmd-conversation-toggle-copy strong{font-size:14px;color:#176ea9}
.tmd-conversation-toggle-copy small{font-size:11px;color:#71808c;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tmd-conversation-toggle-arrow{font-size:24px;line-height:1;color:#176ea9;transition:transform .2s ease}
.tmd-conversation-toggle[aria-expanded="true"] .tmd-conversation-toggle-arrow{transform:rotate(180deg)}
.tmd-conversation-toggle[aria-expanded="true"]{background:#eef7ff;border-color:#1775c8}
.tmd-inline-conversation-panel[hidden]{display:none!important}
.tmd-inline-conversation-panel{
    width:100%;
    margin-top:10px;
    border:1px solid #dfe8ef;
    border-radius:20px;
    overflow:visible;
    background:#fff;
    box-shadow:0 7px 24px rgba(28,45,60,.08);
}
.tmd-inline-conversation-panel .tmd-private-thread.tmd-messenger-thread{
    margin:0!important;padding:0!important;width:100%!important;max-width:none!important;
    border:0!important;border-radius:20px!important;background:#fff!important;box-shadow:none!important;
    overflow:visible!important;
}
.tmd-inline-conversation-panel .tmd-chat-header{border-radius:20px 20px 0 0!important}
.tmd-inline-conversation-panel .tmd-chat-messages{
    max-height:none!important;
    min-height:0!important;
    height:auto!important;
    overflow:visible!important;
    background:#fff!important;
    padding:16px 12px 18px!important;
}
.tmd-inline-conversation-panel .tmd-chat-message{overflow:visible!important}
.tmd-inline-conversation-panel .tmd-chat-body{overflow:visible!important;overflow-wrap:anywhere!important;word-break:break-word!important}
.tmd-inline-conversation-panel .tmd-messenger-composer{
    border-radius:0 0 20px 20px!important;
    border-top:1px solid #e7ebf0!important;
    background:#fff!important;
}
@media(max-width:600px){
    .tmd-conversation-toggle{padding:11px 12px}
    .tmd-conversation-toggle-copy strong{font-size:13px}
    .tmd-conversation-toggle-copy small{font-size:10px}
    .tmd-inline-conversation-panel .tmd-chat-messages{padding:14px 8px 16px!important}
}

/* v1.2.42 — TIKTAK modern patient conversation design.
 * Visual layer only. The existing realtime, incremental polling, message IDs,
 * notifications and business rules are deliberately untouched.
 */
.tmd-request-card{
    border:1px solid #e2e7ee!important;
    border-radius:24px!important;
    padding:20px!important;
    background:#fff!important;
    box-shadow:0 8px 28px rgba(20,36,56,.06)!important;
}
.tmd-request-card .tmd-card-head{align-items:center!important}
.tmd-request-card .tmd-card-head strong{font-size:21px!important;line-height:1.18!important;color:#172238!important}
.tmd-request-card .tmd-card-head small{font-size:14px!important;color:#657084!important;margin-top:5px!important}
.tmd-request-card .tmd-status{padding:7px 13px!important;font-size:12px!important;background:#e8f8ef!important;color:#18834d!important}
.tmd-request-card .tmd-meta{font-size:14px!important;gap:9px 18px!important;color:#5f6977!important;margin:17px 0 14px!important}
.tmd-request-card .tmd-content{font-size:16px!important;background:#f7f9fc!important;border:1px solid #edf0f4!important;border-radius:15px!important;padding:13px 15px!important}
.tmd-responses{margin-top:18px!important}
.tmd-responses h3{font-size:18px!important;color:#172238!important;margin:0 0 12px!important}
.tmd-responses h3 b{font-size:18px!important;color:#177bc7!important}
.tmd-response{
    border:1px solid #dce5ee!important;
    border-radius:20px!important;
    padding:16px!important;
    margin:0 0 12px!important;
    background:#fff!important;
    box-shadow:0 4px 16px rgba(20,36,56,.045)!important;
}
.tmd-response-head{align-items:center!important}
.tmd-response-professional{display:flex!important;align-items:center!important;gap:12px!important;min-width:0!important}
.tmd-response-avatar{width:54px!important;height:54px!important;min-width:54px!important;border-radius:50%!important;display:grid!important;place-items:center!important;overflow:hidden!important;background:linear-gradient(135deg,#eaf5ff,#cfeaff)!important;color:#177bc7!important;font-size:15px!important;font-weight:900!important}
.tmd-response-avatar img{width:100%!important;height:100%!important;object-fit:cover!important;display:block!important}
.tmd-response-professional-copy{display:flex!important;flex-direction:column!important;min-width:0!important}
.tmd-response-professional-copy strong{font-size:18px!important;color:#172238!important;line-height:1.2!important}
.tmd-response-professional-copy small{font-size:13px!important;color:#707b89!important;margin-top:5px!important}
.tmd-response>p{font-size:16px!important;line-height:1.55!important;color:#26303d!important;margin:13px 0 15px!important}
.tmd-inline-conversation{margin:14px 0 4px!important;width:100%!important}
.tmd-conversation-toggle{
    width:100%!important;
    min-height:66px!important;
    border:0!important;
    border-radius:18px!important;
    padding:10px 14px!important;
    background:linear-gradient(135deg,#ff2735 0%,#e51b2a 100%)!important;
    color:#fff!important;
    box-shadow:0 8px 20px rgba(229,27,42,.22)!important;
}
.tmd-conversation-toggle:hover{background:linear-gradient(135deg,#ff3442,#df1625)!important;box-shadow:0 10px 24px rgba(229,27,42,.27)!important}
.tmd-conversation-toggle-icon{width:43px!important;height:43px!important;min-width:43px!important;border-radius:14px!important;background:rgba(255,255,255,.18)!important;color:#fff!important;box-shadow:none!important;font-size:21px!important}
.tmd-conversation-toggle-copy strong{font-size:16px!important;color:#fff!important}
.tmd-conversation-toggle-copy small{font-size:12px!important;color:rgba(255,255,255,.86)!important}
.tmd-conversation-toggle-arrow{font-size:28px!important;color:#fff!important}
.tmd-conversation-toggle[aria-expanded="true"]{background:linear-gradient(135deg,#d91627,#c91120)!important;border-color:transparent!important}
.tmd-request-conversation-open .tmd-response{box-shadow:none!important}

/* The open thread is moved by JS outside the response card. */
.tmd-request-conversation-open .tmd-inline-conversation-panel{
    position:relative!important;
    left:auto!important;
    width:100vw!important;
    max-width:100vw!important;
    margin-left:calc((100% - 100vw)/2)!important;
    margin-right:0!important;
    margin-top:18px!important;
    border:0!important;
    border-radius:0!important;
    background:#fff!important;
    box-shadow:0 12px 35px rgba(20,36,56,.10)!important;
    overflow:visible!important;
}
.tmd-request-conversation-open .tmd-private-thread.tmd-messenger-thread{
    width:100%!important;
    max-width:none!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    background:#fff!important;
    overflow:visible!important;
}
.tmd-request-conversation-open .tmd-chat-header{
    min-height:82px!important;
    padding:12px 18px!important;
    background:linear-gradient(135deg,#ff2635 0%,#e91b2c 70%,#d91627 100%)!important;
    border:0!important;
    color:#fff!important;
    position:relative!important;
}
.tmd-request-conversation-open .tmd-chat-header-copy strong{font-size:19px!important;color:#fff!important}
.tmd-request-conversation-open .tmd-chat-header-copy span{font-size:13px!important;color:rgba(255,255,255,.84)!important}
.tmd-request-conversation-open .tmd-chat-online{background:#35d27b!important;box-shadow:0 0 0 4px rgba(255,255,255,.18)!important}
.tmd-request-conversation-open .tmd-chat-header-avatar{width:55px!important;height:55px!important;min-width:55px!important;border:3px solid rgba(255,255,255,.92)!important;background:#fff!important;color:#177bc7!important}
.tmd-request-conversation-open .tmd-chat-header-avatar img{border-radius:50%!important}
.tmd-request-conversation-open .tmd-chat-header::before{content:'‹';font-size:40px;font-weight:300;line-height:1;width:30px;display:grid;place-items:center;color:#fff;margin-right:2px}
.tmd-request-conversation-open .tmd-chat-messages{
    max-height:none!important;
    min-height:360px!important;
    height:auto!important;
    overflow:visible!important;
    padding:24px 6vw 26px!important;
    background:linear-gradient(180deg,#ffffff 0%,#fbfcff 100%)!important;
}
.tmd-request-conversation-open .tmd-chat-date-divider{margin:2px 0 24px!important}
.tmd-request-conversation-open .tmd-chat-date-divider span{font-size:13px!important;padding:8px 15px!important;background:#eef2f7!important;color:#687384!important}
.tmd-request-conversation-open .tmd-chat-message{margin-bottom:22px!important;gap:10px!important}
.tmd-request-conversation-open .tmd-chat-message.is-theirs{padding-right:18%!important}
.tmd-request-conversation-open .tmd-chat-message.is-mine{padding-left:18%!important}
.tmd-request-conversation-open .tmd-chat-message-avatar{width:43px!important;height:43px!important;min-width:43px!important;font-size:12px!important}
.tmd-request-conversation-open .tmd-chat-content{max-width:min(78%,620px)!important}
.tmd-request-conversation-open .tmd-chat-meta{gap:9px!important;margin-bottom:6px!important}
.tmd-request-conversation-open .tmd-chat-meta strong{font-size:14px!important;color:#172238!important}
.tmd-request-conversation-open .tmd-chat-meta time{font-size:13px!important;color:#697586!important;opacity:1!important}
.tmd-request-conversation-open .tmd-chat-bubble{max-width:min(82vw,620px)!important;padding:13px 17px 14px!important;border-radius:21px!important;box-shadow:0 3px 12px rgba(25,42,61,.07)!important}
.tmd-request-conversation-open .tmd-chat-message.is-theirs .tmd-chat-bubble{background:#f0f3f8!important;border:1px solid #e3e8ef!important;border-bottom-left-radius:7px!important;color:#172238!important}
.tmd-request-conversation-open .tmd-chat-message.is-mine .tmd-chat-bubble{background:#177bc7!important;border-color:#177bc7!important;border-bottom-right-radius:7px!important;color:#fff!important}
.tmd-request-conversation-open .tmd-chat-body{font-size:18px!important;line-height:1.45!important}
.tmd-request-conversation-open .tmd-chat-check{font-size:12px!important;margin-top:4px!important;color:#177bc7!important}
.tmd-request-conversation-open .tmd-messenger-composer{
    width:100%!important;
    padding:15px 6vw 17px!important;
    border-top:1px solid #e5e9ef!important;
    background:#fff!important;
    gap:11px!important;
}
.tmd-request-conversation-open .tmd-messenger-composer textarea{
    min-height:54px!important;
    border-radius:28px!important;
    background:#f6f8fb!important;
    border:1px solid #dce3eb!important;
    padding:14px 18px!important;
    font-size:16px!important;
}
.tmd-request-conversation-open .tmd-messenger-composer button{
    width:54px!important;height:54px!important;min-width:54px!important;
    background:#ff1f32!important;
    font-size:26px!important;
    box-shadow:0 6px 15px rgba(255,31,50,.25)!important;
}
.tmd-request-conversation-open .tmd-chat-header-copy{gap:4px!important}
.tmd-request-conversation-open .tmd-chat-header-copy{overflow:hidden}
.tmd-request-conversation-open .tmd-chat-header-copy strong{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}

.tmd-request-card .tmd-response-actions a,.tmd-request-card .tmd-response-actions button{
    min-height:46px!important;border-radius:14px!important;padding:0 16px!important;font-size:14px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important
}
.tmd-request-card .tmd-response-actions a{background:#fff!important;color:#177bc7!important}
.tmd-request-card .tmd-response-actions button{background:#fff!important;color:#177bc7!important}
.tmd-request-card .tmd-close{border:0!important;background:#ffe8eb!important;color:#c8192b!important;border-radius:13px!important;padding:11px 15px!important;font-size:14px!important}

@media(max-width:700px){
    .tmd-request-card{padding:16px!important;border-radius:20px!important}
    .tmd-request-card .tmd-card-head strong{font-size:20px!important}
    .tmd-response{padding:14px!important;border-radius:18px!important}
    .tmd-response-avatar{width:50px!important;height:50px!important;min-width:50px!important}
    .tmd-response-professional-copy strong{font-size:17px!important}
    .tmd-request-conversation-open .tmd-inline-conversation-panel{margin-left:calc((100% - 100vw)/2)!important}
    .tmd-request-conversation-open .tmd-chat-header{padding:11px 14px!important;min-height:78px!important}
    .tmd-request-conversation-open .tmd-chat-header::before{font-size:36px;width:25px}
    .tmd-request-conversation-open .tmd-chat-header-avatar{width:51px!important;height:51px!important;min-width:51px!important}
    .tmd-request-conversation-open .tmd-chat-header-copy strong{font-size:18px!important}
    .tmd-request-conversation-open .tmd-chat-messages{padding:20px 13px 24px!important}
    .tmd-request-conversation-open .tmd-chat-message.is-theirs{padding-right:5%!important}
    .tmd-request-conversation-open .tmd-chat-message.is-mine{padding-left:5%!important}
    .tmd-request-conversation-open .tmd-chat-content{max-width:84%!important}
    .tmd-request-conversation-open .tmd-chat-bubble{max-width:100%!important;padding:12px 15px 13px!important}
    .tmd-request-conversation-open .tmd-chat-body{font-size:17px!important}
    .tmd-request-conversation-open .tmd-messenger-composer{padding:12px 12px 14px!important}
}
@media(prefers-reduced-motion:reduce){
    .tmd-conversation-toggle,.tmd-request-conversation-open .tmd-chat-bubble{transition:none!important;animation:none!important}
}


/* v1.2.43 — Patient UI refinement.
 * Goal: slightly larger typography/icons and a flat, page-width presentation.
 * No business logic, realtime, polling, message IDs or notification logic changed.
 * The existing v1.2.42 DOM and JS are intentionally preserved.
 */
.tmd-owner-panel{
    width:100vw!important;
    max-width:none!important;
    box-sizing:border-box!important;
    margin-left:calc(50% - 50vw)!important;
    margin-right:0!important;
    padding:22px 16px 28px!important;
    border:0!important;
    border-radius:0!important;
    background:#fff!important;
    box-shadow:none!important;
}
.tmd-owner-panel .tmd-section-title{
    width:100%!important;
    margin:0 0 18px!important;
}
.tmd-owner-panel .tmd-section-title h2{
    font-size:28px!important;
    line-height:1.12!important;
    color:#172238!important;
}
.tmd-owner-panel .tmd-section-title span{
    font-size:16px!important;
    line-height:1.35!important;
}
.tmd-owner-panel .tmd-request-card{
    width:100%!important;
    max-width:none!important;
    box-sizing:border-box!important;
    margin:0 0 26px!important;
    padding:4px 0 24px!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
}
.tmd-owner-panel .tmd-request-card .tmd-card-head{
    padding:0!important;
    margin:0!important;
}
.tmd-owner-panel .tmd-request-card .tmd-card-head strong{
    font-size:23px!important;
    line-height:1.18!important;
}
.tmd-owner-panel .tmd-request-card .tmd-card-head small{
    font-size:15px!important;
    line-height:1.35!important;
}
.tmd-owner-panel .tmd-request-card .tmd-status{
    font-size:13px!important;
    padding:8px 14px!important;
}
.tmd-owner-panel .tmd-request-card .tmd-meta{
    font-size:15px!important;
    line-height:1.45!important;
    gap:9px 18px!important;
    margin:17px 0 18px!important;
}
.tmd-owner-panel .tmd-request-card .tmd-meta span{
    font-size:inherit!important;
}
.tmd-owner-panel .tmd-request-card .tmd-content{
    margin:10px 0 18px!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    font-size:17px!important;
    line-height:1.55!important;
}
.tmd-owner-panel .tmd-responses{
    width:100%!important;
    margin-top:18px!important;
}
.tmd-owner-panel .tmd-responses h3{
    font-size:20px!important;
    line-height:1.3!important;
    margin:0 0 14px!important;
}
.tmd-owner-panel .tmd-responses h3 b{font-size:20px!important}
.tmd-owner-panel .tmd-response{
    width:100%!important;
    max-width:none!important;
    box-sizing:border-box!important;
    margin:0 0 20px!important;
    padding:0 0 20px!important;
    border:0!important;
    border-bottom:1px solid #e6ebf0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
}
.tmd-owner-panel .tmd-response-head{
    width:100%!important;
    padding:0!important;
}
.tmd-owner-panel .tmd-response-professional-copy strong{font-size:20px!important}
.tmd-owner-panel .tmd-response-professional-copy small{font-size:15px!important}
.tmd-owner-panel .tmd-response-avatar{
    width:58px!important;height:58px!important;min-width:58px!important;
    font-size:17px!important;
}
.tmd-owner-panel .tmd-response>p{
    font-size:17px!important;
    line-height:1.55!important;
    margin:14px 0 16px!important;
}
.tmd-owner-panel .tmd-inline-conversation{
    width:100%!important;
    margin:16px 0 12px!important;
}
.tmd-owner-panel .tmd-conversation-toggle{
    width:100%!important;
    min-height:72px!important;
    box-sizing:border-box!important;
    border-radius:18px!important;
    padding:12px 16px!important;
}
.tmd-owner-panel .tmd-conversation-toggle-icon{
    width:46px!important;height:46px!important;min-width:46px!important;
    border-radius:14px!important;font-size:23px!important;
}
.tmd-owner-panel .tmd-conversation-toggle-copy strong{font-size:18px!important}
.tmd-owner-panel .tmd-conversation-toggle-copy small{font-size:13px!important}
.tmd-owner-panel .tmd-conversation-toggle-arrow{font-size:30px!important}
.tmd-owner-panel .tmd-response-actions{
    width:100%!important;
    gap:10px!important;
}
.tmd-owner-panel .tmd-response-actions a,
.tmd-owner-panel .tmd-response-actions button{
    min-height:50px!important;
    font-size:16px!important;
    border-radius:14px!important;
    padding:0 16px!important;
}
.tmd-owner-panel .tmd-expiry{
    font-size:14px!important;
    line-height:1.45!important;
    margin:12px 0!important;
}
.tmd-owner-panel .tmd-close,
.tmd-owner-panel .tmd-reactivate-btn{
    font-size:15px!important;
    min-height:48px!important;
    padding:10px 16px!important;
}
/* Once opened, the conversation itself is the page-width section — never a card. */
.tmd-owner-panel .tmd-request-conversation-open .tmd-inline-conversation-panel,
.tmd-owner-panel .tmd-inline-conversation-panel{
    width:100vw!important;
    max-width:none!important;
    box-sizing:border-box!important;
    margin-left:calc(50% - 50vw)!important;
    margin-right:0!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
}
.tmd-owner-panel .tmd-request-conversation-open .tmd-chat-header{
    min-height:86px!important;
    padding:13px 18px!important;
}
.tmd-owner-panel .tmd-request-conversation-open .tmd-chat-header-copy strong{font-size:20px!important}
.tmd-owner-panel .tmd-request-conversation-open .tmd-chat-header-copy span{font-size:14px!important}
.tmd-owner-panel .tmd-request-conversation-open .tmd-chat-header-avatar{
    width:58px!important;height:58px!important;min-width:58px!important;
}
.tmd-owner-panel .tmd-request-conversation-open .tmd-chat-messages{
    width:100%!important;
    box-sizing:border-box!important;
    padding:24px 7vw 28px!important;
}
.tmd-owner-panel .tmd-request-conversation-open .tmd-chat-meta strong{font-size:15px!important}
.tmd-owner-panel .tmd-request-conversation-open .tmd-chat-meta time{font-size:14px!important}
.tmd-owner-panel .tmd-request-conversation-open .tmd-chat-body{font-size:19px!important}
.tmd-owner-panel .tmd-request-conversation-open .tmd-messenger-composer{
    width:100%!important;
    box-sizing:border-box!important;
    padding:15px 7vw 18px!important;
}
@media(max-width:700px){
    .tmd-owner-panel{
        margin-left:calc(50% - 50vw)!important;
        padding:18px 14px 26px!important;
    }
    .tmd-owner-panel .tmd-section-title h2{font-size:26px!important}
    .tmd-owner-panel .tmd-section-title span{font-size:16px!important}
    .tmd-owner-panel .tmd-request-card .tmd-card-head strong{font-size:22px!important}
    .tmd-owner-panel .tmd-request-card .tmd-card-head small{font-size:15px!important}
    .tmd-owner-panel .tmd-request-card .tmd-meta{font-size:15px!important;gap:9px 14px!important}
    .tmd-owner-panel .tmd-responses h3{font-size:20px!important}
    .tmd-owner-panel .tmd-response-professional-copy strong{font-size:19px!important}
    .tmd-owner-panel .tmd-response-professional-copy small{font-size:15px!important}
    .tmd-owner-panel .tmd-response>p{font-size:17px!important}
    .tmd-owner-panel .tmd-conversation-toggle-copy strong{font-size:18px!important}
    .tmd-owner-panel .tmd-conversation-toggle-copy small{font-size:13px!important}
    .tmd-owner-panel .tmd-request-conversation-open .tmd-chat-messages{padding:20px 14px 24px!important}
    .tmd-owner-panel .tmd-request-conversation-open .tmd-messenger-composer{padding:12px 12px 14px!important}
}


/* v1.2.48 — Patient UI final alignment from v1.2.43.
 * Visual/DOM placement only. Conversation IDs, realtime/polling, notifications,
 * anti-duplication and business actions are preserved.
 */
.tmd-owner-panel{
    width:100vw!important;max-width:none!important;box-sizing:border-box!important;
    margin-left:calc(50% - 50vw)!important;margin-right:0!important;
    padding:18px 28px 32px!important;border:0!important;border-radius:0!important;
    background:#fff!important;box-shadow:none!important;
}
.tmd-owner-panel .tmd-section-title{width:100%!important;margin:0 0 20px!important}
.tmd-owner-panel .tmd-section-title h2{font-size:31px!important;line-height:1.08!important;color:#172238!important}
.tmd-owner-panel .tmd-section-title span{font-size:18px!important;line-height:1.35!important;color:#667085!important}

.tmd-owner-panel .tmd-request-card{
    width:100%!important;max-width:none!important;box-sizing:border-box!important;
    margin:0 0 30px!important;padding:0 0 24px!important;border:0!important;border-radius:0!important;
    background:#fff!important;box-shadow:none!important;
}
.tmd-owner-panel .tmd-request-main-head{
    display:flex!important;align-items:center!important;justify-content:space-between!important;
    gap:18px!important;padding:0!important;margin:0 0 14px!important;
}
.tmd-owner-panel .tmd-request-title-wrap{display:flex!important;align-items:center!important;gap:14px!important;min-width:0!important}
.tmd-owner-panel .tmd-request-specialty-icon{
    width:66px!important;height:66px!important;min-width:66px!important;border-radius:50%!important;
    display:grid!important;place-items:center!important;background:#ffe8ed!important;font-size:35px!important;
}
.tmd-owner-panel .tmd-request-title-wrap>div{display:flex!important;flex-direction:column!important;min-width:0!important}
.tmd-owner-panel .tmd-request-card .tmd-card-head strong{font-size:25px!important;line-height:1.15!important;color:#172238!important}
.tmd-owner-panel .tmd-request-card .tmd-card-head small{font-size:17px!important;line-height:1.35!important;color:#657084!important;margin-top:4px!important}
.tmd-owner-panel .tmd-request-status-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:12px!important;flex:0 0 auto!important}
.tmd-owner-panel .tmd-request-status-actions .tmd-status{
    display:inline-flex!important;align-items:center!important;justify-content:center!important;
    min-height:42px!important;padding:0 18px!important;border-radius:999px!important;
    font-size:16px!important;font-weight:900!important;background:#e8f8ef!important;color:#18834d!important;white-space:nowrap!important;
}
.tmd-owner-panel .tmd-request-status-actions .tmd-close{
    min-height:42px!important;border:0!important;border-radius:999px!important;padding:0 18px!important;
    background:#ffe6ea!important;color:#bd2030!important;font-size:15px!important;font-weight:900!important;
    white-space:nowrap!important;cursor:pointer!important;box-shadow:none!important;
}
.tmd-owner-panel .tmd-request-meta-single-line{
    display:flex!important;align-items:center!important;justify-content:space-between!important;flex-wrap:nowrap!important;
    white-space:nowrap!important;overflow:visible!important;width:100%!important;box-sizing:border-box!important;
    gap:4px!important;margin:8px 0 18px!important;padding:0!important;
    color:#596575!important;font-size:15px!important;line-height:1.25!important;
}
.tmd-owner-panel .tmd-request-meta-single-line span{
    display:inline-flex!important;align-items:center!important;justify-content:center!important;
    flex:0 1 auto!important;min-width:0!important;white-space:nowrap!important;
}
.tmd-owner-panel .tmd-request-meta-single-line span+span::before{
    content:'•';margin:0 5px;color:#c4cbd3;font-weight:700;flex:0 0 auto!important;
}
.tmd-owner-panel .tmd-request-card .tmd-content{font-size:18px!important;line-height:1.55!important;margin:0 0 18px!important;padding:0!important;background:transparent!important;border:0!important}

/* Compact professional response row — no card-inside-card effect. */
.tmd-owner-panel .tmd-responses{width:100%!important;margin:8px 0 0!important}
.tmd-owner-panel .tmd-response-modern{
    width:100%!important;max-width:none!important;box-sizing:border-box!important;
    margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;
}
.tmd-owner-panel .tmd-response-summary{
    display:flex!important;align-items:center!important;gap:14px!important;width:100%!important;box-sizing:border-box!important;
    margin:0!important;padding:14px 16px!important;border:1px solid #e1e7ef!important;border-radius:20px!important;
    background:#f8f9fd!important;position:relative!important;
}
.tmd-owner-panel .tmd-response-professional{display:flex!important;align-items:center!important;gap:14px!important;min-width:0!important;flex:1!important}
.tmd-owner-panel .tmd-response-avatar{width:66px!important;height:66px!important;min-width:66px!important;border-radius:50%!important;font-size:20px!important;overflow:hidden!important}
.tmd-owner-panel .tmd-response-avatar img{width:100%!important;height:100%!important;object-fit:cover!important}
.tmd-owner-panel .tmd-response-professional-copy{display:flex!important;flex-direction:column!important;gap:3px!important;min-width:0!important}
.tmd-owner-panel .tmd-response-professional-copy strong{font-size:21px!important;line-height:1.2!important;color:#172238!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.tmd-owner-panel .tmd-response-professional-copy small{font-size:16px!important;line-height:1.3!important;color:#667085!important}
.tmd-owner-panel .tmd-response-summary .tmd-accepted{font-size:13px!important;white-space:nowrap!important}
.tmd-owner-panel .tmd-response-chevron{font-size:40px!important;line-height:1!important;color:#172238!important;font-weight:300!important;flex:0 0 auto!important}
.tmd-owner-panel .tmd-response-modern>p{font-size:18px!important;line-height:1.5!important;margin:12px 0 12px!important;color:#172238!important}

/* Conversation trigger: clear TIKTAK red CTA, full available page width. */
.tmd-owner-panel .tmd-inline-conversation{width:100%!important;margin:12px 0 18px!important}
.tmd-owner-panel .tmd-conversation-toggle{
    width:100%!important;min-height:72px!important;box-sizing:border-box!important;
    display:flex!important;align-items:center!important;gap:14px!important;
    padding:10px 18px!important;border:0!important;border-radius:38px!important;
    background:linear-gradient(100deg,#ff2535 0%,#f51d31 65%,#e9162b 100%)!important;
    color:#fff!important;box-shadow:0 8px 22px rgba(238,26,48,.20)!important;cursor:pointer!important;
}
.tmd-owner-panel .tmd-conversation-toggle-icon{width:48px!important;height:48px!important;min-width:48px!important;border-radius:15px!important;background:rgba(255,255,255,.16)!important;display:grid!important;place-items:center!important;font-size:25px!important}
.tmd-owner-panel .tmd-conversation-toggle-copy{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:2px!important;min-width:0!important;flex:1!important;text-align:left!important}
.tmd-owner-panel .tmd-conversation-toggle-copy strong{font-size:20px!important;line-height:1.15!important;color:#fff!important}
.tmd-owner-panel .tmd-conversation-toggle-copy small{font-size:14px!important;line-height:1.3!important;color:rgba(255,255,255,.88)!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:100%!important}
.tmd-owner-panel .tmd-conversation-toggle-arrow{font-size:34px!important;color:#fff!important;line-height:1!important}

.tmd-owner-panel .tmd-response-actions{display:flex!important;gap:12px!important;width:100%!important;margin:12px 0 0!important}
.tmd-owner-panel .tmd-response-actions a,.tmd-owner-panel .tmd-response-actions button{
    flex:1 1 0!important;min-height:54px!important;border-radius:16px!important;padding:0 18px!important;
    font-size:17px!important;font-weight:900!important;box-sizing:border-box!important;text-align:center!important;
}
.tmd-owner-panel .tmd-response-actions a{border:2px solid #167ed0!important;background:#fff!important;color:#1d628f!important;text-decoration:none!important;display:flex!important;align-items:center!important;justify-content:center!important}
.tmd-owner-panel .tmd-response-actions button{border:2px solid #167ed0!important;background:#fff!important;color:#1d628f!important}

/* Bottom: only the expiry text, one line. */
.tmd-owner-panel .tmd-expiry-single-line{
    width:100%!important;box-sizing:border-box!important;margin:18px 0 0!important;padding:0!important;
    font-size:16px!important;line-height:1.4!important;color:#687586!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
}
.tmd-owner-panel .tmd-reactivate-btn{font-size:16px!important;min-height:50px!important;padding:10px 18px!important;border-radius:14px!important}

/* Open conversation = page-width section, not a nested window. */
.tmd-owner-panel .tmd-request-conversation-open .tmd-inline-conversation-panel{
    width:100vw!important;max-width:none!important;box-sizing:border-box!important;
    margin-left:calc(50% - 50vw)!important;margin-right:0!important;
    padding:0!important;border:0!important;border-radius:0!important;background:#fff!important;box-shadow:none!important;
}
.tmd-owner-panel .tmd-request-conversation-open .tmd-private-thread.tmd-messenger-thread{width:100%!important;max-width:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:#fff!important;box-shadow:none!important}
.tmd-owner-panel .tmd-request-conversation-open .tmd-chat-header{min-height:88px!important;padding:14px 24px!important;background:linear-gradient(110deg,#ff2635,#ed1d31)!important;border:0!important}
.tmd-owner-panel .tmd-request-conversation-open .tmd-chat-header-copy strong{font-size:22px!important;color:#fff!important}
.tmd-owner-panel .tmd-request-conversation-open .tmd-chat-header-copy span{font-size:15px!important;color:rgba(255,255,255,.88)!important}
.tmd-owner-panel .tmd-request-conversation-open .tmd-chat-header-avatar{width:60px!important;height:60px!important;min-width:60px!important;border:3px solid #fff!important}
.tmd-owner-panel .tmd-request-conversation-open .tmd-chat-messages{width:100%!important;max-height:none!important;height:auto!important;min-height:360px!important;overflow:visible!important;box-sizing:border-box!important;padding:28px 6vw 30px!important;background:#fff!important}
.tmd-owner-panel .tmd-request-conversation-open .tmd-chat-meta strong{font-size:16px!important}
.tmd-owner-panel .tmd-request-conversation-open .tmd-chat-meta time{font-size:15px!important}
.tmd-owner-panel .tmd-request-conversation-open .tmd-chat-body{font-size:20px!important;line-height:1.35!important}
.tmd-owner-panel .tmd-request-conversation-open .tmd-messenger-composer{width:100%!important;box-sizing:border-box!important;padding:16px 6vw 20px!important}

@media(max-width:700px){
    .tmd-owner-panel{padding:16px 14px 28px!important}
    .tmd-owner-panel .tmd-section-title h2{font-size:29px!important}
    .tmd-owner-panel .tmd-section-title span{font-size:17px!important}
    .tmd-owner-panel .tmd-request-main-head{gap:8px!important;align-items:flex-start!important}
    .tmd-owner-panel .tmd-request-specialty-icon{width:58px!important;height:58px!important;min-width:58px!important;font-size:31px!important}
    .tmd-owner-panel .tmd-request-card .tmd-card-head strong{font-size:23px!important}
    .tmd-owner-panel .tmd-request-card .tmd-card-head small{font-size:16px!important}
    .tmd-owner-panel .tmd-request-status-actions{gap:7px!important;align-items:flex-start!important}
    .tmd-owner-panel .tmd-request-status-actions .tmd-status{min-height:38px!important;padding:0 13px!important;font-size:15px!important}
    .tmd-owner-panel .tmd-request-status-actions .tmd-close{min-height:38px!important;padding:0 12px!important;font-size:13px!important}
    .tmd-owner-panel .tmd-request-meta-single-line{font-size:14px!important;gap:1px!important;overflow:visible!important;justify-content:space-between!important}
    .tmd-owner-panel .tmd-request-meta-single-line span{flex:0 1 auto!important;min-width:0!important}
    .tmd-owner-panel .tmd-request-meta-single-line span+span::before{margin:0 3px!important}
    .tmd-owner-panel .tmd-response-summary{padding:12px 12px!important;border-radius:18px!important}
    .tmd-owner-panel .tmd-response-avatar{width:60px!important;height:60px!important;min-width:60px!important}
    .tmd-owner-panel .tmd-response-professional-copy strong{font-size:19px!important}
    .tmd-owner-panel .tmd-response-professional-copy small{font-size:15px!important}
    .tmd-owner-panel .tmd-response-modern>p{font-size:18px!important}
    .tmd-owner-panel .tmd-conversation-toggle{min-height:70px!important;padding:9px 14px!important}
    .tmd-owner-panel .tmd-conversation-toggle-copy strong{font-size:19px!important}
    .tmd-owner-panel .tmd-conversation-toggle-copy small{font-size:13px!important}
    .tmd-owner-panel .tmd-response-actions a,.tmd-owner-panel .tmd-response-actions button{min-height:52px!important;font-size:16px!important}
    .tmd-owner-panel .tmd-expiry-single-line{font-size:15px!important}
    .tmd-owner-panel .tmd-request-conversation-open .tmd-chat-header{padding:12px 16px!important;min-height:82px!important}
    .tmd-owner-panel .tmd-request-conversation-open .tmd-chat-header-copy strong{font-size:20px!important}
    .tmd-owner-panel .tmd-request-conversation-open .tmd-chat-header-avatar{width:56px!important;height:56px!important;min-width:56px!important}
    .tmd-owner-panel .tmd-request-conversation-open .tmd-chat-messages{padding:22px 14px 26px!important}
    .tmd-owner-panel .tmd-request-conversation-open .tmd-chat-body{font-size:19px!important}
    .tmd-owner-panel .tmd-request-conversation-open .tmd-messenger-composer{padding:13px 12px 16px!important}
}

/* v1.2.50 — Patient request metadata: two clean rows, no clipping. */
.tmd-owner-panel .tmd-request-meta-two-rows{
    display:flex!important;
    flex-direction:column!important;
    width:100%!important;
    box-sizing:border-box!important;
    margin:10px 0 18px!important;
    padding:0!important;
    gap:7px!important;
    color:#596575!important;
    font-size:16px!important;
    line-height:1.3!important;
}
.tmd-owner-panel .tmd-request-meta-two-rows .tmd-request-meta-row{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    align-items:center!important;
    gap:18px!important;
    width:100%!important;
    min-width:0!important;
}
.tmd-owner-panel .tmd-request-meta-two-rows .tmd-request-meta-row span{
    display:flex!important;
    align-items:center!important;
    min-width:0!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
}
.tmd-owner-panel .tmd-request-meta-two-rows .tmd-request-meta-row span:nth-child(2){
    justify-content:flex-start!important;
}
@media(max-width:700px){
    .tmd-owner-panel .tmd-request-meta-two-rows{
        font-size:16px!important;
        gap:8px!important;
        margin:10px 0 18px!important;
    }
    .tmd-owner-panel .tmd-request-meta-two-rows .tmd-request-meta-row{
        grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
        gap:12px!important;
    }
}

/* v1.2.53 — independent patient conversation windows. Each doctor owns
 * one self-contained card; conversations are never moved into a shared
 * page-level window. */
.tmd-owner-panel .tmd-response-modern{
    position:relative!important;
    margin:0 0 18px!important;
    padding:14px!important;
    border:1px solid #dce5ee!important;
    border-radius:22px!important;
    background:#fff!important;
    box-shadow:0 6px 20px rgba(20,36,56,.06)!important;
}
.tmd-owner-panel .tmd-response-modern.has-unread-conversation{
    border-color:#ef3340!important;
    box-shadow:0 8px 24px rgba(238,26,48,.10)!important;
}
.tmd-owner-panel .tmd-response-modern .tmd-inline-conversation-panel{
    width:100%!important;
    margin:12px 0 0!important;
    border:1px solid #dfe8ef!important;
    border-radius:20px!important;
    box-sizing:border-box!important;
    overflow:hidden!important;
    background:#fff!important;
    box-shadow:0 5px 18px rgba(28,45,60,.08)!important;
}
.tmd-owner-panel .tmd-response-modern .tmd-private-thread.tmd-messenger-thread{
    width:100%!important;max-width:none!important;margin:0!important;padding:0!important;
    border:0!important;border-radius:20px!important;background:#fff!important;box-shadow:none!important;
}
.tmd-owner-panel .tmd-response-modern .tmd-chat-messages{
    max-height:420px!important;
    min-height:120px!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    padding:18px 12px 20px!important;
}
.tmd-owner-panel .tmd-response-modern .tmd-messenger-composer{
    border-radius:0 0 20px 20px!important;
}
.tmd-conversation-unread-badge{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    min-height:28px!important;
    padding:4px 10px!important;
    border-radius:999px!important;
    background:#e51f32!important;
    color:#fff!important;
    font-size:12px!important;
    font-weight:900!important;
    line-height:1!important;
    white-space:nowrap!important;
    box-shadow:0 3px 10px rgba(229,31,50,.18)!important;
}
.tmd-conversation-unread-badge.is-empty{display:none!important}
.tmd-conversation-toggle{position:relative!important}
.tmd-response-modern.is-conversation-open .tmd-conversation-toggle{border-radius:18px 18px 0 0!important}
@media(max-width:700px){
    .tmd-owner-panel .tmd-response-modern{padding:10px!important;border-radius:19px!important}
    .tmd-conversation-unread-badge{font-size:11px!important;padding:4px 8px!important;min-height:26px!important}
}


/* v1.2.54 — hardening: keep every patient conversation inside its own
 * response card. Older visual layers (v1.2.40/v1.2.43) used a page-width
 * conversation with left:50% / margin-left:-50vw; those rules must not leak
 * into the independent per-doctor windows introduced in v1.2.53. */
.tmd-owner-panel .tmd-response-modern .tmd-inline-conversation-panel {
    position:relative!important;
    left:auto!important;
    right:auto!important;
    top:auto!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin:12px 0 0!important;
    box-sizing:border-box!important;
    border:1px solid #dfe8ef!important;
    border-radius:20px!important;
    background:#fff!important;
    box-shadow:0 5px 18px rgba(28,45,60,.08)!important;
    overflow:hidden!important;
    transform:none!important;
}
.tmd-owner-panel .tmd-response-modern .tmd-inline-conversation-panel .tmd-private-thread.tmd-messenger-thread {
    position:relative!important;
    left:auto!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin:0!important;
    box-sizing:border-box!important;
}
.tmd-owner-panel .tmd-response-modern .tmd-inline-conversation-panel .tmd-chat-header,
.tmd-owner-panel .tmd-response-modern .tmd-inline-conversation-panel .tmd-chat-messages,
.tmd-owner-panel .tmd-response-modern .tmd-inline-conversation-panel .tmd-messenger-composer {
    width:100%!important;
    max-width:100%!important;
    box-sizing:border-box!important;
}
@media(max-width:700px){
    .tmd-owner-panel .tmd-response-modern .tmd-inline-conversation-panel {
        margin:10px 0 0!important;
        border-radius:18px!important;
    }
}
