/* MPWL v3.12.358 — product-system layer
 * True-to-code implementation of the approved clean SaaS / Mangomint-inspired UI direction.
 * Scoped to new product surfaces and late-loaded after the v3.12.356 consolidation layer.
 */
:root{
  --mp357-blue:#1769d2;
  --mp357-blue-dark:#0f4fae;
  --mp357-blue-soft:#edf5ff;
  --mp357-ink:#18324f;
  --mp357-muted:#667b91;
  --mp357-border:#dbe5ef;
  --mp357-bg:#f5f8fc;
  --mp357-card:#fff;
  --mp357-green:#15835e;
  --mp357-green-soft:#eaf8f1;
  --mp357-amber:#a66b12;
  --mp357-amber-soft:#fff7e7;
  --mp357-red:#b74444;
  --mp357-red-soft:#fff0f0;
  --mp357-purple:#6f5bc7;
  --mp357-purple-soft:#f2efff;
  --mp357-shadow:0 8px 24px rgba(23,50,79,.06);
  --mp357-radius:12px;
}
.mpwl-product357-card,
.mpwl-product357-context>section,
.mpwl-product357-openings aside>section,
.mpwl-product357-flows aside>section{
  background:var(--mp357-card);border:1px solid var(--mp357-border);border-radius:var(--mp357-radius);box-shadow:var(--mp357-shadow);
}
.mpwl-product357-sectionhead{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:20px 22px;border-bottom:1px solid #e7edf4}
.mpwl-product357-sectionhead small{display:block;margin:0 0 4px;font-size:10px;font-weight:900;letter-spacing:.11em;color:#6f8297}
.mpwl-product357-sectionhead h2,.mpwl-product357-sectionhead h3{margin:0;color:var(--mp357-ink)!important;letter-spacing:-.02em}
.mpwl-product357-sectionhead h2{font-size:22px!important}.mpwl-product357-sectionhead h3{font-size:18px!important}
.mpwl-product357-sectionhead p{margin:5px 0 0!important;color:var(--mp357-muted)!important;font-size:12.5px!important;line-height:1.5!important}
.mpwl-product357-sectionhead>span{font-size:11px;font-weight:800;color:#60758b;background:#f3f6fa;border:1px solid #e2e8ef;border-radius:999px;padding:6px 10px;white-space:nowrap}
.mpwl-product357-avatar{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#e9f3ff;color:#1c63b8;font-size:12px;font-weight:900;flex:0 0 auto}
.mpwl-product357-person{display:flex;align-items:center;gap:10px}.mpwl-product357-person>span{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#eaf3ff;color:#145cb6;font-size:12px;font-weight:900}.mpwl-product357-person strong{display:block;color:#18324f}.mpwl-product357-person small{display:block;margin-top:2px;color:#7a8c9e;font-size:11px}
.mpwl-product357-status{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:4px 8px;font-size:10px;font-weight:900;letter-spacing:.02em}.mpwl-product357-status.is-good{background:var(--mp357-green-soft);color:var(--mp357-green)}
.mpwl-product357-count{display:grid;place-items:center;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:#fbeaea;color:#af4141;font-size:10px;font-weight:900}

/* ---------------- Clinical History / journey ---------------- */
.mpwl-clinical-journey357{display:grid;grid-template-columns:minmax(0,1fr) 292px;gap:18px;margin:0 0 18px}
.mpwl-clinical-journey357>main{min-width:0}.mpwl-clinical-journey357>aside{display:flex;flex-direction:column;gap:14px}
.mpwl-clinical-journey357>aside>section{background:#fff;border:1px solid var(--mp357-border);border-radius:12px;box-shadow:var(--mp357-shadow)}
.mpwl-clinical-journey357>aside>section>header{display:flex;align-items:center;justify-content:space-between;padding:14px 15px;border-bottom:1px solid #e7edf4}.mpwl-clinical-journey357>aside h3{margin:0!important;font-size:14px!important;color:#1f3d5c!important}.mpwl-clinical-journey357>aside header a{font-size:11px;text-decoration:none;font-weight:800}
.mpwl-clinical-journey357>aside dl{margin:0;padding:8px 15px 12px}.mpwl-clinical-journey357>aside dl>div{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid #edf2f6}.mpwl-clinical-journey357>aside dl>div:last-child{border-bottom:0}.mpwl-clinical-journey357>aside dt{color:#74879a;font-size:10.5px}.mpwl-clinical-journey357>aside dd{margin:0;color:#223f5c;font-size:11px;font-weight:800;text-align:right}
.mpwl-clinical-journey357>aside nav{padding:6px 15px 10px}.mpwl-clinical-journey357>aside nav a{display:flex;align-items:center;justify-content:space-between;padding:10px 0;border-bottom:1px solid #edf2f6;text-decoration:none;color:#284a6c;font-size:11px;font-weight:800}.mpwl-clinical-journey357>aside nav a:last-child{border-bottom:0}.mpwl-clinical-journey357>aside nav b{font-size:16px;color:#7b91a8}
.mpwl-product357-timeline{padding:8px 20px 18px}
.mpwl-product357-timeline article{position:relative;display:grid;grid-template-columns:118px 32px minmax(0,1fr) auto;gap:10px;align-items:flex-start;min-height:68px;padding:12px 0;border-bottom:1px solid #edf2f6}.mpwl-product357-timeline article:last-child{border-bottom:0}.mpwl-product357-timeline article:before{content:"";position:absolute;left:133px;top:45px;bottom:-12px;width:1px;background:#d9e5f1}.mpwl-product357-timeline article:last-child:before{display:none}.mpwl-product357-timeline time{padding-top:7px;color:#74879a;font-size:10.5px;line-height:1.35;text-align:right}.mpwl-product357-timeicon{position:relative;z-index:1;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#eef5ff;border:1px solid #d6e6f8;color:#1767c7}.mpwl-product357-timeicon .dashicons{font-size:15px;width:15px;height:15px}.mpwl-product357-timeline article>div{padding-top:4px}.mpwl-product357-timeline article>div strong{display:block;color:#203d5a;font-size:12.5px}.mpwl-product357-timeline article>div p{margin:4px 0 0!important;color:#718396!important;font-size:11px!important;line-height:1.45!important}.mpwl-product357-timeline em{margin-top:5px;border-radius:999px;padding:4px 8px;font-size:9px;font-weight:900;font-style:normal;white-space:nowrap}.mpwl-product357-timeline em.is-green{background:var(--mp357-green-soft);color:var(--mp357-green)}.mpwl-product357-timeline em.is-blue{background:var(--mp357-blue-soft);color:#1764bf}.mpwl-product357-timeline em.is-neutral{background:#f1f4f7;color:#66798d}
.mpwl-flow-sheet-detail357{margin-top:18px!important}.mpwl-flow-sheet-detail357>.mpwl-panel-head:before{content:"Detailed Flow Sheet";display:block;font-size:10px;font-weight:900;letter-spacing:.1em;color:#6f8297;position:absolute;transform:translateY(-16px)}

/* ---------------- Messages workspace ---------------- */
.mpwl-product357-messages{display:grid;grid-template-columns:250px minmax(360px,1fr) 292px;min-height:660px;border:1px solid var(--mp357-border);border-radius:12px;background:#fff;box-shadow:var(--mp357-shadow);overflow:hidden}
.mpwl-product357-message-list{border-right:1px solid #e1e8ef;background:#fbfcfe;min-width:0}.mpwl-product357-list-search{display:flex;align-items:center;gap:6px;margin:14px;padding:8px 10px;border:1px solid #dbe4ed;border-radius:8px;background:#fff}.mpwl-product357-list-search .dashicons{color:#8aa0b5;font-size:16px}.mpwl-product357-list-search input{width:100%;border:0!important;box-shadow:none!important;padding:0!important;min-height:26px!important;background:transparent!important;font-size:11px!important}.mpwl-product357-message-tabs{display:flex;align-items:center;justify-content:space-between;padding:0 14px 10px;border-bottom:1px solid #e5ebf1}.mpwl-product357-message-tabs b{font-size:11px;color:#234768}.mpwl-product357-message-tabs span{font-size:10px;color:#8293a4}.mpwl-product357-conversations{max-height:610px;overflow:auto}.mpwl-product357-conversations>a{position:relative;display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:9px;align-items:center;padding:12px 13px;border-bottom:1px solid #edf1f5;color:#28445f;text-decoration:none}.mpwl-product357-conversations>a:hover,.mpwl-product357-conversations>a.is-active{background:#eef6ff}.mpwl-product357-conversations>a.is-active{box-shadow:inset 3px 0 0 #1769d2}.mpwl-product357-conversations>a>div strong{display:block;font-size:11.5px}.mpwl-product357-conversations>a>div small{display:block;margin-top:3px;color:#7b8da0;font-size:9.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mpwl-product357-conversations time{font-size:9px;color:#8a9bad}.mpwl-product357-conversations em{position:absolute;right:10px;bottom:7px;min-width:17px;height:17px;padding:0 4px;border-radius:999px;background:#d94b4b;color:#fff;font-size:9px;font-style:normal;font-weight:900;display:grid;place-items:center}
.mpwl-product357-thread{display:grid;grid-template-rows:auto 1fr auto;min-width:0;background:#fff}.mpwl-product357-thread>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 16px;border-bottom:1px solid #e4ebf2}.mpwl-product357-thread-body{padding:22px;overflow:auto;background:#f8fafc;min-height:450px}.mpwl-product357-thread-body article{display:flex;flex-direction:column;align-items:flex-end;margin:0 0 16px}.mpwl-product357-thread-body article>div{max-width:76%;padding:11px 13px;border-radius:12px 12px 3px 12px;background:#eaf3ff;border:1px solid #d4e5f8;color:#2d4d6e;font-size:11.5px;line-height:1.5}.mpwl-product357-thread-body article small{margin-top:4px;color:#8797a8;font-size:9.5px}.mpwl-product357-thread footer{padding:12px 15px;border-top:1px solid #e2e9f0;background:#fff}.mpwl-product357-thread footer textarea{width:100%;resize:vertical;border:1px solid #d8e3ed!important;border-radius:8px!important;padding:10px!important;box-shadow:none!important;font-size:11px!important;line-height:1.5}.mpwl-product357-thread footer form>div{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:8px}.mpwl-product357-thread footer label{font-size:10px;color:#6f8296}.mpwl-product357-thread footer button{display:inline-flex!important;align-items:center;gap:4px}.mpwl-product357-thread footer button .dashicons{font-size:14px;width:14px;height:14px}
.mpwl-product357-context{border-left:1px solid #e1e8ef;background:#fbfcfe;padding:12px;display:flex;flex-direction:column;gap:10px}.mpwl-product357-context>section{box-shadow:none}.mpwl-product357-context>section>header{display:flex;align-items:center;justify-content:space-between;padding:11px 12px;border-bottom:1px solid #edf1f5}.mpwl-product357-context>section h3{font-size:11.5px!important;margin:0!important;color:#263f5a!important}.mpwl-product357-context>section header a{font-size:9.5px;font-weight:800;text-decoration:none}.mpwl-product357-context .mpwl-product357-person{padding:12px}.mpwl-product357-context dl{margin:0;padding:7px 12px 10px}.mpwl-product357-context dl>div{display:flex;justify-content:space-between;gap:10px;padding:8px 0;border-bottom:1px solid #edf1f5}.mpwl-product357-context dl>div:last-child{border-bottom:0}.mpwl-product357-context dt{font-size:9.5px;color:#8292a3}.mpwl-product357-context dd{margin:0;text-align:right;color:#23435f;font-size:10.5px;font-weight:800}.mpwl-product357-context dd small{display:block;margin-top:2px;color:#788b9e;font-size:9px;font-weight:500}.mpwl-product357-clear{padding:13px;color:#2e765b;font-size:10.5px}.mpwl-product357-attention{padding:4px 10px 8px}.mpwl-product357-attention>a{display:grid;grid-template-columns:22px 1fr auto;gap:7px;align-items:center;padding:8px 0;border-bottom:1px solid #edf1f5;text-decoration:none}.mpwl-product357-attention>a:last-child{border-bottom:0}.mpwl-product357-attention>a>span{width:20px;height:20px;border-radius:50%;display:grid;place-items:center;background:#fff0ed;color:#b64a40;font-size:10px;font-weight:900}.mpwl-product357-attention strong{display:block;color:#344f69;font-size:10px}.mpwl-product357-attention small{display:block;margin-top:2px;color:#8494a3;font-size:9px}.mpwl-product357-attention b{color:#8ca0b2}.mpwl-product357-context-actions{padding:3px 12px 8px}.mpwl-product357-context-actions a{display:grid;grid-template-columns:18px 1fr auto;gap:6px;align-items:center;padding:8px 0;border-bottom:1px solid #edf1f5;color:#31506d;text-decoration:none;font-size:9.8px;font-weight:800}.mpwl-product357-context-actions a:last-child{border-bottom:0}.mpwl-product357-context-actions .dashicons{font-size:14px;width:14px;height:14px;color:#1767c7}.mpwl-product357-context-actions b{color:#90a1b0}

/* ---------------- Automation & Flows ---------------- */
.mpwl-product357-flows{display:flex;flex-direction:column;gap:14px}.mpwl-product357-flow-toolbar{display:flex;align-items:center;justify-content:space-between;padding:11px 14px;border:1px solid var(--mp357-border);border-radius:10px;background:#fff}.mpwl-product357-flow-toolbar b{color:#1e3c5b;font-size:12px}.mpwl-product357-flow-toolbar span{margin-left:8px;color:#8292a2;font-size:10px}.mpwl-product357-flow-grid{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:16px}.mpwl-product357-flow-grid>main{display:flex;flex-direction:column;gap:12px}.mpwl-product357-flow-card{background:#fff;border:1px solid var(--mp357-border);border-radius:12px;box-shadow:var(--mp357-shadow);overflow:hidden}.mpwl-product357-flow-card>header{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:12px;align-items:flex-start;padding:15px 17px}.mpwl-product357-flow-card>header>.dashicons{width:34px;height:34px;border-radius:9px;display:grid;place-items:center;background:#eef5ff;color:#1769d2;font-size:17px}.mpwl-product357-flow-card>header>div>div{display:flex;align-items:center;gap:8px}.mpwl-product357-flow-card h3{margin:0!important;font-size:13px!important;color:#233f5d!important}.mpwl-product357-flow-card header em{padding:3px 7px;border-radius:999px;background:var(--mp357-green-soft);color:var(--mp357-green);font-size:8.5px;font-style:normal;font-weight:900}.mpwl-product357-flow-card header p{margin:4px 0 0!important;color:#74879a!important;font-size:10.5px!important;line-height:1.45!important}.mpwl-product357-flow-card header>b{min-width:34px;height:28px;border-radius:8px;background:#f2f6fa;color:#355776;display:grid;place-items:center;font-size:11px}.mpwl-product357-flow-blocks{display:flex;align-items:stretch;gap:7px;padding:12px 17px;background:#f9fbfd;border-top:1px solid #edf2f6;border-bottom:1px solid #edf2f6;overflow:auto}.mpwl-product357-flow-blocks>div{min-width:145px;padding:9px 10px;border-radius:8px;border:1px solid #d9e6f2}.mpwl-product357-flow-blocks>div.is-when{background:#eef6ff}.mpwl-product357-flow-blocks>div.is-if{background:#f5f1ff;border-color:#e1d8fb}.mpwl-product357-flow-blocks>div.is-then{background:#eef9f4;border-color:#d5ebdf}.mpwl-product357-flow-blocks small{display:block;margin-bottom:2px;font-size:8px;font-weight:900;letter-spacing:.08em;color:#6f8498}.mpwl-product357-flow-blocks strong{display:block;color:#2d4a67;font-size:10px;line-height:1.35}.mpwl-product357-flow-blocks>span{display:grid;place-items:center;color:#92a4b4}.mpwl-product357-flow-card>footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 17px;font-size:9.5px}.mpwl-product357-flow-card footer span{color:#73879a}.mpwl-product357-flow-card footer i{display:inline-block;width:7px;height:7px;margin-right:5px;border-radius:50%;background:#1b9b6b}.mpwl-product357-flow-card footer a{text-decoration:none;font-weight:800}
.mpwl-product357-flows aside{display:flex;flex-direction:column;gap:12px}.mpwl-product357-flows aside section{box-shadow:none}.mpwl-product357-flows aside header{padding:12px 13px;border-bottom:1px solid #edf2f6}.mpwl-product357-flows aside h3{margin:0!important;font-size:12px!important;color:#243f5b!important}.mpwl-product357-flows aside dl{margin:0;padding:5px 13px 10px}.mpwl-product357-flows aside dl>div{display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid #edf2f6}.mpwl-product357-flows aside dl>div:last-child{border-bottom:0}.mpwl-product357-flows aside dt{color:#76899a;font-size:10px}.mpwl-product357-flows aside dd{margin:0;color:#23415e;font-size:12px;font-weight:900}.mpwl-product357-flows aside dd.good{color:#17835f}.mpwl-product357-flows aside nav{padding:5px 13px 9px}.mpwl-product357-flows aside nav a{display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid #edf2f6;text-decoration:none;color:#31516f;font-size:10px;font-weight:800}.mpwl-product357-flows aside nav a:last-child{border-bottom:0}.mpwl-product357-flows aside nav b{color:#91a2b1}

/* ---------------- Openings / waitlist ---------------- */
.mpwl-product357-openings{display:flex;flex-direction:column;gap:14px}.mpwl-product357-slot{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 20px;border:1px solid #cfe0f2;border-radius:12px;background:linear-gradient(135deg,#f4f9ff,#edf6ff);box-shadow:var(--mp357-shadow)}.mpwl-product357-slot>div{display:flex;align-items:center;gap:13px}.mpwl-product357-slot>div>.dashicons{width:42px;height:42px;border-radius:11px;display:grid;place-items:center;background:#dcecff;color:#1765c7}.mpwl-product357-slot small{display:block;font-size:9px;font-weight:900;letter-spacing:.1em;color:#4b77a5}.mpwl-product357-slot h2{margin:2px 0 3px!important;color:#1d3d60!important;font-size:19px!important}.mpwl-product357-slot p{margin:0!important;color:#607b95!important;font-size:11px!important}.mpwl-product357-slot form{display:flex;align-items:end;gap:7px;flex-wrap:wrap}.mpwl-product357-slot label{display:flex;flex-direction:column;gap:3px;color:#6b8196;font-size:9px;font-weight:800}.mpwl-product357-slot input,.mpwl-product357-slot select{min-height:34px!important;padding:3px 7px!important;border-radius:7px!important;font-size:10px!important}.mpwl-product357-openings-grid{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:15px}.mpwl-product357-openings-grid>main{background:#fff;border:1px solid var(--mp357-border);border-radius:12px;box-shadow:var(--mp357-shadow);overflow:hidden}.mpwl-product357-match-list article{display:grid;grid-template-columns:28px 38px minmax(150px,1.1fr) minmax(270px,1.8fr) auto;gap:9px;align-items:center;padding:14px 15px;border-bottom:1px solid #e8eef4}.mpwl-product357-match-list article:last-child{border-bottom:0}.mpwl-product357-rank{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:#eef4fa;color:#51718f;font-size:9px;font-weight:900}.mpwl-product357-match-person strong{display:block;color:#25415d;font-size:11.5px}.mpwl-product357-match-person small{display:block;margin-top:2px;color:#8192a2;font-size:9px}.mpwl-product357-match-person em{display:block;margin-top:5px;color:#b15c48;font-size:9px;font-style:normal;font-weight:800}.mpwl-product357-match-list dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:0}.mpwl-product357-match-list dl>div{min-width:0}.mpwl-product357-match-list dt{font-size:8.5px;font-weight:800;color:#8697a7}.mpwl-product357-match-list dd{margin:2px 0 0;color:#304e69;font-size:9.5px;font-weight:800}.mpwl-product357-match-list dd small{display:block;margin-top:2px;color:#8495a5;font-size:8.5px;font-weight:500}.mpwl-product357-match-actions{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}.mpwl-product357-match-actions .button{min-height:30px!important;font-size:9px!important;padding:0 8px!important}.mpwl-product357-openings aside{display:flex;flex-direction:column;gap:12px}.mpwl-product357-openings aside section{box-shadow:none}.mpwl-product357-openings aside header{padding:12px 13px;border-bottom:1px solid #edf2f6}.mpwl-product357-openings aside h3{margin:0!important;font-size:11.5px!important;color:#28435d!important}.mpwl-product357-openings aside ul{list-style:none;margin:0;padding:6px 12px 10px}.mpwl-product357-openings aside li{display:grid;grid-template-columns:22px 1fr;gap:8px;padding:9px 0;border-bottom:1px solid #edf2f6}.mpwl-product357-openings aside li:last-child{border-bottom:0}.mpwl-product357-openings aside li .dashicons{font-size:15px;width:15px;height:15px;color:#1768cb}.mpwl-product357-openings aside li strong{display:block;color:#304d69;font-size:9.5px}.mpwl-product357-openings aside li small{display:block;margin-top:2px;color:#8394a4;font-size:8.7px;line-height:1.35}.mpwl-product357-openings aside nav{padding:6px 12px 10px}.mpwl-product357-openings aside nav a{display:flex;justify-content:space-between;padding:9px 0;border-bottom:1px solid #edf2f6;text-decoration:none;font-size:10px;font-weight:800}.mpwl-product357-openings aside nav a:last-child{border-bottom:0}

/* ---------------- Calendar & schedule ---------------- */
.mpwl-schedule357-layout{display:grid;grid-template-columns:190px minmax(0,1fr);gap:14px}.mpwl-schedule357-main{min-width:0}.mpwl-schedule357-rail{display:flex;flex-direction:column;gap:11px}.mpwl-schedule357-rail>section{background:#fff;border:1px solid var(--mp357-border);border-radius:11px;box-shadow:var(--mp357-shadow);padding:12px}.mpwl-schedule357-rail>section>small{display:block;margin-bottom:9px;font-size:9px;font-weight:900;letter-spacing:.09em;color:#75899c}.mpwl-schedule357-stats{display:grid;grid-template-columns:1fr 1fr;gap:7px}.mpwl-schedule357-stats>div{padding:9px;border:1px solid #e4ebf2;border-radius:8px;background:#fbfcfe}.mpwl-schedule357-stats strong{display:block;color:#244663;font-size:16px}.mpwl-schedule357-stats span{font-size:8.5px;color:#7a8c9f}.mpwl-schedule357-legend{display:flex;flex-direction:column;gap:5px}.mpwl-schedule357-legend span{position:relative;padding:6px 8px 6px 20px;border-radius:7px;background:#f7f9fb;color:#4a647c;font-size:9px;font-weight:700}.mpwl-schedule357-legend span:before{content:"";position:absolute;left:8px;top:50%;width:7px;height:7px;margin-top:-3px;border-radius:50%;background:#4e8ddb}.mpwl-schedule357-legend .is-telehealth:before{background:#7a68cc}.mpwl-schedule357-legend .is-new:before{background:#2d9b74}.mpwl-schedule357-legend .is-restart:before{background:#d89b30}.mpwl-schedule357-rail a{display:flex;flex-direction:column;gap:2px;text-decoration:none}.mpwl-schedule357-rail a strong{color:#31516e;font-size:10px}.mpwl-schedule357-rail a span{color:#8192a3;font-size:9px}
.mpwl-schedule357-grid{display:grid;grid-template-columns:64px repeat(5,minmax(128px,1fr));grid-template-rows:54px repeat(var(--mpwl-schedule-rows),38px);position:relative;min-width:710px;background:#fff;border:1px solid #dfe7ef;border-radius:9px;overflow:hidden}.mpwl-schedule357-corner{grid-column:1;grid-row:1;background:#f8fafc;border-right:1px solid #e2e9f0;border-bottom:1px solid #e2e9f0}.mpwl-schedule357-grid>header{display:flex;flex-direction:column;align-items:center;justify-content:center;border-right:1px solid #e2e9f0;border-bottom:1px solid #e2e9f0;background:#f8fafc}.mpwl-schedule357-grid>header.is-today{background:#eef6ff;box-shadow:inset 0 3px 0 #1769d2}.mpwl-schedule357-grid>header small{font-size:8px;font-weight:900;color:#70869a}.mpwl-schedule357-grid>header strong{font-size:11px;color:#27445f}.mpwl-schedule357-grid>header span{margin-top:2px;font-size:8px;color:#8a99a8}.mpwl-schedule357-time{grid-column:1;padding:5px 7px;border-right:1px solid #e2e9f0;border-bottom:1px solid #edf2f6;background:#fbfcfe;color:#7c8e9f;font-size:8.5px;text-align:right}.mpwl-schedule357-cell{border-right:1px solid #edf2f6;border-bottom:1px solid #edf2f6;background:#fff}.mpwl-schedule357-cell.is-today{background:#fbfdff}.mpwl-schedule357-event{z-index:2;margin:2px 3px;padding:5px 6px;border-left:3px solid #4d8ed8;border-radius:6px;background:#edf5ff;color:#214566;text-decoration:none;overflow:hidden;display:grid;grid-template-columns:13px minmax(0,1fr);gap:4px}.mpwl-schedule357-event:hover{box-shadow:0 4px 10px rgba(33,69,102,.12);transform:translateY(-1px)}.mpwl-schedule357-event>.dashicons{font-size:12px;width:12px;height:12px;margin-top:1px}.mpwl-schedule357-event strong{display:block;font-size:8.5px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mpwl-schedule357-event small{display:block;margin-top:2px;font-size:7.8px;color:#5f7c96;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mpwl-schedule357-event em{display:inline-flex;margin-top:3px;padding:2px 5px;border-radius:999px;background:rgba(255,255,255,.72);font-size:7px;font-style:normal;font-weight:900}.mpwl-schedule357-event.is-telehealth{border-left-color:#7564c7;background:#f0edff}.mpwl-schedule357-event.is-new{border-left-color:#25986f;background:#ebf8f3}.mpwl-schedule357-event.is-restart{border-left-color:#d3992e;background:#fff7e7}.mpwl-schedule357-event.status-no-show,.mpwl-schedule357-event.status-cancelled{border-left-color:#c45252;background:#fff0f0}.mpwl-schedule-main{overflow:hidden}.mpwl-schedule-main>.mpwl-schedule-calendar,.mpwl-schedule-main>.mpwl-schedule357-grid{overflow:auto}.mpwl-page-mpwl-scheduling-hub .mpwl-admin-content{max-width:none!important}

/* ---------------- Provider Review ---------------- */
.mpwl-provider357{display:flex;flex-direction:column;gap:14px}.mpwl-provider357-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:0;padding:13px 18px;border:1px solid var(--mp357-border);border-radius:11px;background:#fff;box-shadow:var(--mp357-shadow)}.mpwl-provider357-steps span{position:relative;display:flex;align-items:center;gap:7px;color:#8a99a9;font-size:10px;font-weight:800}.mpwl-provider357-steps span:not(:last-child):after{content:"";height:1px;background:#dce5ed;position:absolute;left:calc(100% - 24px);right:12px;top:50%}.mpwl-provider357-steps i{position:relative;z-index:1;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:#eef2f6;color:#7f92a5;font-size:8px;font-style:normal}.mpwl-provider357-steps span.is-active{color:#1f5fb5}.mpwl-provider357-steps span.is-active i{background:#1769d2;color:#fff}.mpwl-provider357 .mpwl-pr-card{border-radius:11px!important;border-color:var(--mp357-border)!important;box-shadow:var(--mp357-shadow)!important}.mpwl-provider357 .mpwl-pr-row{border-radius:9px!important}.mpwl-provider357 .mpwl-pr-metrics{grid-template-columns:180px minmax(240px,1fr)!important;max-width:560px}.mpwl-provider357 .button.button-primary{background:#1769d2!important;border-color:#1769d2!important}

/* ---------------- Patient Online Forms ---------------- */
.mpwl-forms357{display:flex;flex-direction:column;gap:14px}.mpwl-forms357-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.mpwl-forms357-head>div>small{display:block;margin:0 0 5px;font-size:9px;font-weight:900;letter-spacing:.11em;color:#7b8da0}.mpwl-forms357-head h2{margin:0!important;color:#183e6a!important;font-size:24px!important;letter-spacing:-.02em}.mpwl-forms357-head p{max-width:670px;margin:5px 0 0!important;color:#687d93!important;font-size:12px!important;line-height:1.5!important}.mpwl-forms357-help{min-width:230px;display:grid;grid-template-columns:32px 1fr auto;gap:8px;align-items:center;padding:10px 12px;border:1px solid #dce6ef;border-radius:10px;background:#fff;text-decoration:none}.mpwl-forms357-help>span{width:30px;height:30px;border-radius:8px;display:grid;place-items:center;background:#eef5ff;color:#1768c9;font-weight:900}.mpwl-forms357-help strong{display:block;color:#2b4966;font-size:10.5px}.mpwl-forms357-help small{display:block;margin-top:2px;color:#7f90a0;font-size:9px;line-height:1.3}.mpwl-forms357-help b{color:#8ea0af}
.mpwl-forms357-required,.mpwl-forms357-section{background:#fff;border:1px solid #dce6ef;border-radius:12px;box-shadow:0 8px 24px rgba(24,61,104,.05);overflow:hidden}.mpwl-forms357-required>header,.mpwl-forms357-section>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-bottom:1px solid #e7edf3}.mpwl-forms357-required.has-required>header{background:#fff8f7}.mpwl-forms357-required>header>div,.mpwl-forms357-section>header>div{display:flex;align-items:center;gap:10px}.mpwl-forms357-alert{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#ffe9e5;color:#b54b40;font-weight:900}.mpwl-forms357-required.is-clear .mpwl-forms357-alert{background:#e9f8f1;color:#1b7d5d}.mpwl-forms357-required h3,.mpwl-forms357-section h3{margin:0!important;color:#244460!important;font-size:14px!important}.mpwl-forms357-required header p,.mpwl-forms357-section header p{margin:2px 0 0!important;color:#7b8c9d!important;font-size:9.8px!important}.mpwl-forms357-required header>em{padding:4px 8px;border-radius:999px;background:#ffe8e4;color:#b54d42;font-size:9px;font-style:normal;font-weight:900}.mpwl-forms357-section>header>.dashicons,.mpwl-forms357-section>header>div>.dashicons{width:29px;height:29px;border-radius:8px;display:grid;place-items:center;background:#eef5ff;color:#1768c9}.mpwl-forms357-section>header>a{text-decoration:none;font-size:10px;font-weight:800}
.mpwl-forms357-required-list article{display:grid;grid-template-columns:42px minmax(0,1fr) 150px auto;gap:12px;align-items:center;padding:14px 16px;border-bottom:1px solid #ebf0f5}.mpwl-forms357-required-list article:last-child{border-bottom:0}.mpwl-forms357-formicon{width:38px;height:38px;border-radius:9px;display:grid;place-items:center;background:#f0edff;color:#6755be}.mpwl-forms357-required-list .tone-blue .mpwl-forms357-formicon{background:#edf5ff;color:#1769d2}.mpwl-forms357-required-list .tone-green .mpwl-forms357-formicon{background:#eaf8f1;color:#17835f}.mpwl-forms357-formtitle{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.mpwl-forms357-formtitle h4{margin:0!important;color:#284762!important;font-size:12px!important}.mpwl-forms357-formtitle span{padding:3px 7px;border-radius:999px;background:#fff0ee;color:#b35249;font-size:8.5px;font-weight:900}.mpwl-forms357-formcopy p{margin:4px 0 0!important;color:#718499!important;font-size:10px!important;line-height:1.45!important}.mpwl-forms357-meta{display:flex;flex-direction:column;gap:3px;color:#77899b;font-size:8.5px}.mpwl-forms357-meta strong{color:#b35249}.mpwl-forms357-primary{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:0 11px;border-radius:7px;background:#1769d2;color:#fff!important;text-decoration:none!important;font-size:9.5px;font-weight:900;white-space:nowrap}.mpwl-forms357-primary:hover{background:#0f56b2;color:#fff!important}
.mpwl-forms357-available>a{display:grid;grid-template-columns:36px minmax(0,1fr) 70px auto;gap:10px;align-items:center;padding:13px 16px;border-bottom:1px solid #ebf0f5;text-decoration:none}.mpwl-forms357-available>a:last-child{border-bottom:0}.mpwl-forms357-available>a>.dashicons{width:32px;height:32px;border-radius:8px;display:grid;place-items:center;background:#eef5ff;color:#1768c9}.mpwl-forms357-available strong{display:block;color:#2b4965;font-size:11px}.mpwl-forms357-available small{display:block;margin-top:2px;color:#7b8d9f;font-size:9.5px}.mpwl-forms357-available em{color:#7e90a1;font-size:9px;font-style:normal}.mpwl-forms357-available b{padding:7px 9px;border:1px solid #d6e2ee;border-radius:7px;color:#1769d2;font-size:9px}.mpwl-forms357-history-list>div{display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:9px;align-items:center;padding:12px 16px;border-bottom:1px solid #ebf0f5}.mpwl-forms357-history-list>div:last-child{border-bottom:0}.mpwl-forms357-history-list .dashicons{color:#597eaa}.mpwl-forms357-history-list p{margin:0!important}.mpwl-forms357-history-list strong{display:block;color:#2d4b67;font-size:10.5px}.mpwl-forms357-history-list small{display:block;margin-top:2px;color:#8495a5;font-size:9px}.mpwl-forms357-history-list em{padding:4px 7px;border-radius:999px;font-size:8.5px;font-style:normal;font-weight:900}.mpwl-forms357-history-list em.is-complete{background:#eaf8f1;color:#17835f}.mpwl-forms357-history-list em.is-muted{background:#f1f4f7;color:#778a9b}.mpwl-forms357-history-list a{font-size:9.5px;font-weight:800;text-decoration:none}

/* ---------------- Shared admin shell refinements ---------------- */
.mpwl-page-mpwl-automation-flows .mpwl-admin-content,
.mpwl-page-mpwl-openings-waitlist .mpwl-admin-content,
.mpwl-page-mpwl-messages .mpwl-admin-content,
.mpwl-page-mpwl-scheduling-hub .mpwl-admin-content{max-width:1440px!important}
.mpwl-page-mpwl-clinic-tools .mpwl-hub-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.mpwl-page-mpwl-clinic-tools .mpwl-hub-card{min-height:138px!important}

/* fixed staff-mobile bottom nav */
.mpwl-staff-mobile-nav357{display:none}
@media (max-width:1100px){
  .mpwl-product357-messages{grid-template-columns:220px minmax(340px,1fr)}.mpwl-product357-context{display:none}
  .mpwl-product357-openings-grid,.mpwl-product357-flow-grid,.mpwl-clinical-journey357{grid-template-columns:1fr}.mpwl-clinical-journey357>aside,.mpwl-product357-openings-grid>aside,.mpwl-product357-flow-grid>aside{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .mpwl-schedule357-layout{grid-template-columns:1fr}.mpwl-schedule357-rail{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
  .mpwl-product357-match-list article{grid-template-columns:28px 38px minmax(140px,1fr);}.mpwl-product357-match-list dl{grid-column:3;grid-template-columns:repeat(3,minmax(0,1fr))}.mpwl-product357-match-actions{grid-column:1/-1;justify-content:flex-start;padding-left:75px}
}
@media (max-width:782px){
  .mpwl-admin-v3{padding-bottom:66px!important}.mpwl-admin-v3 .mpwl-admin-content{padding-bottom:72px!important}
  .mpwl-staff-mobile-nav357{position:fixed;z-index:100100;left:0;right:0;bottom:0;height:62px;padding:4px 7px max(4px,env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(5,1fr);background:#fff;border-top:1px solid #d7e1eb;box-shadow:0 -5px 18px rgba(22,50,80,.10)}
  .mpwl-staff-mobile-nav357 a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:#65798d!important;text-decoration:none!important;font-size:9px;font-weight:800}.mpwl-staff-mobile-nav357 .dashicons{font-size:18px;width:18px;height:18px;color:#466a90}.mpwl-staff-mobile-nav357 a:hover{color:#1769d2!important}.mpwl-staff-mobile-nav357 a:hover .dashicons{color:#1769d2}
  .mpwl-product357-messages{grid-template-columns:1fr;min-height:0}.mpwl-product357-message-list{border-right:0;border-bottom:1px solid #e1e8ef;max-height:260px}.mpwl-product357-conversations{max-height:205px}.mpwl-product357-thread-body{min-height:360px;padding:14px}.mpwl-product357-thread-body article>div{max-width:90%}.mpwl-product357-context{display:none}
  .mpwl-clinical-journey357>aside,.mpwl-product357-openings-grid>aside,.mpwl-product357-flow-grid>aside{display:flex;flex-direction:column}
  .mpwl-product357-timeline{padding:6px 12px 14px}.mpwl-product357-timeline article{grid-template-columns:1fr auto;gap:5px 8px;padding:11px 0}.mpwl-product357-timeline article:before,.mpwl-product357-timeicon{display:none}.mpwl-product357-timeline time{grid-column:1;text-align:left;padding:0}.mpwl-product357-timeline article>div{grid-column:1;padding:0}.mpwl-product357-timeline em{grid-column:2;grid-row:1 / span 2}
  .mpwl-product357-slot{align-items:flex-start;flex-direction:column}.mpwl-product357-slot form{width:100%;display:grid;grid-template-columns:1fr 1fr}.mpwl-product357-slot form label:nth-of-type(3){grid-column:1/-1}.mpwl-product357-slot form .button{grid-column:1/-1;width:100%}
  .mpwl-product357-match-list article{grid-template-columns:26px 36px 1fr;padding:12px}.mpwl-product357-match-list dl{grid-column:1/-1;grid-template-columns:1fr 1fr;padding-left:0}.mpwl-product357-match-actions{grid-column:1/-1;padding-left:0;display:grid;grid-template-columns:1fr 1fr;width:100%}.mpwl-product357-match-actions .button{width:100%;justify-content:center}
  .mpwl-product357-flow-blocks{padding:10px}.mpwl-product357-flow-card>header{grid-template-columns:34px minmax(0,1fr)}.mpwl-product357-flow-card>header>b{display:none}.mpwl-product357-flow-card>footer{align-items:flex-start;flex-direction:column}
  .mpwl-schedule357-rail{grid-template-columns:1fr}.mpwl-schedule357-main{overflow:auto}.mpwl-schedule357-grid{min-width:780px}.mpwl-page-mpwl-scheduling-hub .mpwl-schedule-toolbar{min-width:600px}
  .mpwl-provider357-steps{grid-template-columns:1fr 1fr;gap:9px}.mpwl-provider357-steps span:after{display:none}
  .mpwl-forms357-head{flex-direction:column}.mpwl-forms357-help{width:100%;min-width:0;box-sizing:border-box}.mpwl-forms357-required-list article{grid-template-columns:38px minmax(0,1fr);gap:9px}.mpwl-forms357-meta{grid-column:2;display:flex;flex-direction:row;flex-wrap:wrap}.mpwl-forms357-primary{grid-column:1/-1;width:100%;box-sizing:border-box}.mpwl-forms357-available>a{grid-template-columns:34px minmax(0,1fr) auto}.mpwl-forms357-available em{display:none}.mpwl-page-mpwl-clinic-tools .mpwl-hub-grid{grid-template-columns:1fr!important}
}
@media (max-width:520px){
  .mpwl-forms357-required>header,.mpwl-forms357-section>header{padding:12px}.mpwl-forms357-required-list article,.mpwl-forms357-available>a,.mpwl-forms357-history-list>div{padding:12px}.mpwl-forms357-available>a{grid-template-columns:32px 1fr}.mpwl-forms357-available b{grid-column:2;justify-self:start}.mpwl-forms357-history-list>div{grid-template-columns:30px 1fr}.mpwl-forms357-history-list>div>em,.mpwl-forms357-history-list>div>a{grid-column:2;justify-self:start}
}
@media print{.mpwl-staff-mobile-nav357{display:none!important}}


/* v3.12.361 — Scheduling Hub mobile responsiveness
 * The desktop planner keeps its dense five-day grid. Phones receive a native
 * stacked weekday view using the same appointment records/actions, so the
 * schedule no longer requires a 780px canvas or horizontal page scrolling.
 */
.mpwl-schedule361-mobile-week{display:none}
@media (max-width:782px){
  .mpwl-page-mpwl-scheduling-hub .mpwl-admin-content,
  .mpwl-page-mpwl-scheduling-hub .mpwl-schedule-workspace,
  .mpwl-page-mpwl-scheduling-hub .mpwl-schedule-main{min-width:0!important;width:auto!important;max-width:100%!important;overflow:visible!important}
  .mpwl-page-mpwl-scheduling-hub .mpwl-schedule361-desktop-week{display:none!important}
  .mpwl-page-mpwl-scheduling-hub .mpwl-schedule361-mobile-week{display:grid;gap:12px;margin-top:12px}
  .mpwl-page-mpwl-scheduling-hub .mpwl-schedule-toolbar{min-width:0!important;width:100%!important;display:grid!important;grid-template-columns:1fr!important;align-items:stretch!important;gap:10px!important;box-sizing:border-box}
  .mpwl-page-mpwl-scheduling-hub .mpwl-schedule-toolbar label{width:100%!important;min-width:0!important;max-width:none!important;box-sizing:border-box}
  .mpwl-page-mpwl-scheduling-hub .mpwl-schedule-toolbar input,
  .mpwl-page-mpwl-scheduling-hub .mpwl-schedule-toolbar select{width:100%!important;max-width:none!important;box-sizing:border-box}
  .mpwl-page-mpwl-scheduling-hub .mpwl-schedule-view-switch{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;width:100%!important;min-width:0!important}
  .mpwl-page-mpwl-scheduling-hub .mpwl-schedule-view-switch .button{width:100%!important;min-width:0!important;padding-left:8px!important;padding-right:8px!important;text-align:center!important}
  .mpwl-page-mpwl-scheduling-hub .mpwl-schedule-head{align-items:stretch!important}
  .mpwl-page-mpwl-scheduling-hub .mpwl-schedule-head-actions{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;width:100%!important}
  .mpwl-page-mpwl-scheduling-hub .mpwl-schedule-head-actions .button{width:100%!important;min-height:44px!important;justify-content:center!important;text-align:center!important;box-sizing:border-box}
  .mpwl-page-mpwl-scheduling-hub .mpwl-schedule357-main{overflow:visible!important}
  .mpwl-page-mpwl-scheduling-hub .mpwl-schedule357-grid{min-width:0!important;width:100%!important}
  .mpwl-schedule361-mobile-day{overflow:hidden;border:1px solid #dbe5ee;border-radius:10px;background:#fff;box-shadow:0 2px 8px rgba(31,58,84,.04)}
  .mpwl-schedule361-mobile-day.is-today{border-color:#6aa4df;box-shadow:0 0 0 1px #6aa4df,0 3px 12px rgba(31,89,148,.08)}
  .mpwl-schedule361-mobile-day>header{background:#f7f9fc;border-bottom:1px solid #e6edf4}
  .mpwl-schedule361-mobile-day.is-today>header{background:#eef6ff}
  .mpwl-schedule361-mobile-day>header>a{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 13px;color:#23445f!important;text-decoration:none!important}
  .mpwl-schedule361-mobile-day>header span{display:flex;align-items:baseline;gap:7px;min-width:0}
  .mpwl-schedule361-mobile-day>header small{font-size:11px;font-weight:900;letter-spacing:.04em;text-transform:uppercase;color:#70869a}
  .mpwl-schedule361-mobile-day>header strong{font-size:16px;color:#25435f}
  .mpwl-schedule361-mobile-day>header b{flex:0 0 auto;padding:4px 7px;border-radius:999px;background:#eaf1f8;color:#587189;font-size:10px}
  .mpwl-schedule361-mobile-day.is-today>header b{background:#dcecff;color:#1761ad}
  .mpwl-schedule361-mobile-day-body{display:grid;gap:8px;padding:9px}
  .mpwl-schedule361-mobile-day-body .mpwl-schedule-event{margin:0!important;padding:11px!important;border-radius:8px!important}
  .mpwl-schedule361-mobile-day-body .mpwl-schedule-event-top{align-items:flex-start!important}
  .mpwl-schedule361-mobile-day-body .mpwl-schedule-event-top strong{font-size:13px!important}
  .mpwl-schedule361-mobile-day-body .mpwl-schedule-event-name{font-size:14px!important}
  .mpwl-schedule361-mobile-day-body .mpwl-schedule-event>small{display:block;margin-top:3px;font-size:11px!important;line-height:1.4;color:#6f8295}
  .mpwl-schedule361-mobile-day-body .mpwl-schedule-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important;width:100%!important}
  .mpwl-schedule361-mobile-day-body .mpwl-schedule-actions .button{width:100%!important;min-height:40px!important;display:flex!important;align-items:center!important;justify-content:center!important;margin:0!important;text-align:center!important;white-space:normal!important;line-height:1.2!important}
  .mpwl-schedule361-mobile-day-body .mpwl-schedule-actions .button-primary:first-child{grid-column:1/-1}
  .mpwl-schedule361-mobile-empty{padding:16px 12px;text-align:center;color:#7d8fa1;font-size:12px}
}
@media (max-width:420px){
  .mpwl-schedule361-mobile-day-body .mpwl-schedule-actions{grid-template-columns:1fr!important}
  .mpwl-schedule361-mobile-day-body .mpwl-schedule-actions .button-primary:first-child{grid-column:auto}
}


/* v3.12.362 — Scheduling Hub viewport containment / responsive hardening
 * Full scheduling-page scan found that the week planner was repaired at 782px,
 * but iPhone landscape / narrow split-window widths above the WP 782px breakpoint
 * could still inherit the old 780px/600px minimums. This layer treats the entire
 * scheduling workspace as a shrinkable surface through 960px and clamps every
 * high-risk control/card to the available WordPress canvas.
 */
@media (max-width:960px){
  .mpwl-page-mpwl-scheduling-hub{
    width:auto!important;max-width:100%!important;min-width:0!important;
    overflow-x:hidden!important;box-sizing:border-box!important;
  }
  .mpwl-page-mpwl-scheduling-hub .mpwl-admin-shell,
  .mpwl-page-mpwl-scheduling-hub .mpwl-admin-main,
  .mpwl-page-mpwl-scheduling-hub .mpwl-admin-content,
  .mpwl-page-mpwl-scheduling-hub .mpwl-schedule-workspace,
  .mpwl-page-mpwl-scheduling-hub .mpwl-schedule357-layout,
  .mpwl-page-mpwl-scheduling-hub .mpwl-schedule357-main,
  .mpwl-page-mpwl-scheduling-hub .mpwl-schedule-main,
  .mpwl-page-mpwl-scheduling-hub .mpwl-panel,
  .mpwl-page-mpwl-scheduling-hub .mpwl-panel-body,
  .mpwl-page-mpwl-scheduling-hub .mpwl-schedule-calendar,
  .mpwl-page-mpwl-scheduling-hub .mpwl-schedule-list,
  .mpwl-page-mpwl-scheduling-hub .mpwl-schedule-editor,
  .mpwl-page-mpwl-scheduling-hub .mpwl-schedule-requests,
  .mpwl-page-mpwl-scheduling-hub .mpwl-schedule-settings{
    min-width:0!important;max-width:100%!important;box-sizing:border-box!important;
  }
  .mpwl-page-mpwl-scheduling-hub .mpwl-schedule357-layout{grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
  .mpwl-page-mpwl-scheduling-hub .mpwl-schedule357-rail{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;min-width:0!important;max-width:100%!important}
  .mpwl-page-mpwl-scheduling-hub .mpwl-schedule357-rail>section{min-width:0!important;max-width:100%!important;box-sizing:border-box!important}

  /* Switch to the native stacked week view before phone-landscape can overflow. */
  .mpwl-page-mpwl-scheduling-hub .mpwl-schedule361-desktop-week{display:none!important}
  .mpwl-page-mpwl-scheduling-hub .mpwl-schedule361-mobile-week{display:grid!important;gap:12px!important;margin-top:12px!important;min-width:0!important;max-width:100%!important}
  .mpwl-page-mpwl-scheduling-hub .mpwl-schedule357-grid{display:none!important;min-width:0!important;width:100%!important}

  /* Page heading/actions */
  .mpwl-page-mpwl-scheduling-hub .mpwl-schedule-head{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:10px!important;min-width:0!important}
  .mpwl-page-mpwl-scheduling-hub .mpwl-schedule-head>div{min-width:0!important;max-width:100%!important}
  .mpwl-page-mpwl-scheduling-hub .mpwl-schedule-head h2,
  .mpwl-page-mpwl-scheduling-hub .mpwl-schedule-head p{max-width:100%!important;overflow-wrap:anywhere!important}
  .mpwl-page-mpwl-scheduling-hub .mpwl-schedule-head-actions{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;width:100%!important;min-width:0!important;max-width:100%!important}
  .mpwl-page-mpwl-scheduling-hub .mpwl-schedule-head-actions .button{width:100%!important;max-width:100%!important;min-width:0!important;min-height:44px!important;margin:0!important;white-space:normal!important;overflow-wrap:anywhere!important;box-sizing:border-box!important}

  /* View/date/staff controls */
  .mpwl-page-mpwl-scheduling-hub .mpwl-schedule-toolbar{display:grid!important;grid-template-columns:minmax(0,1fr)!important;align-items:stretch!important;gap:9px!important;width:100%!important;min-width:0!important;max-width:100%!important;overflow:visible!important;box-sizing:border-box!important}
  .mpwl-page-mpwl-scheduling-hub .mpwl-schedule-toolbar>*{min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
  .mpwl-page-mpwl-scheduling-hub .mpwl-schedule-toolbar label{display:grid!important;width:100%!important;min-width:0!important;max-width:100%!important}
  .mpwl-page-mpwl-scheduling-hub .mpwl-schedule-toolbar input,
  .mpwl-page-mpwl-scheduling-hub .mpwl-schedule-toolbar select,
  .mpwl-page-mpwl-scheduling-hub .mpwl-schedule-toolbar .button{width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important;margin:0!important}
  .mpwl-page-mpwl-scheduling-hub .mpwl-schedule-view-switch{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;width:100%!important;min-width:0!important;max-width:100%!important;padding:3px!important;box-sizing:border-box!important}
  .mpwl-page-mpwl-scheduling-hub .mpwl-schedule-view-switch .button{width:100%!important;min-width:0!important;max-width:100%!important;padding-left:6px!important;padding-right:6px!important}

  /* Previous / current / next period */
  .mpwl-page-mpwl-scheduling-hub .mpwl-schedule-period{display:grid!important;grid-template-columns:44px minmax(0,1fr) 44px!important;gap:8px!important;width:100%!important;min-width:0!important;max-width:100%!important;padding:10px 0!important;box-sizing:border-box!important}
  .mpwl-page-mpwl-scheduling-hub .mpwl-schedule-period strong{min-width:0!important;max-width:100%!important;font-size:14px!important;line-height:1.3!important;overflow-wrap:anywhere!important}
  .mpwl-page-mpwl-scheduling-hub .mpwl-schedule-period .button{width:44px!important;min-width:44px!important;max-width:44px!important;padding-left:0!important;padding-right:0!important;margin:0!important}

  /* Day/month cards and compact appointment rows */
  .mpwl-page-mpwl-scheduling-hub .mpwl-schedule-calendar{grid-template-columns:minmax(0,1fr)!important;width:100%!important;min-width:0!important;max-width:100%!important;overflow:visible!important}
  .mpwl-page-mpwl-scheduling-hub .mpwl-schedule-calendar-day,
  .mpwl-page-mpwl-scheduling-hub .mpwl-schedule361-mobile-day,
  .mpwl-page-mpwl-scheduling-hub .mpwl-schedule-event,
  .mpwl-page-mpwl-scheduling-hub .mpwl-schedule-row{width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important;overflow-wrap:anywhere!important}
  .mpwl-page-mpwl-scheduling-hub .mpwl-schedule-event>*{min-width:0!important;max-width:100%!important}
  .mpwl-page-mpwl-scheduling-hub .mpwl-schedule-event-top{min-width:0!important;max-width:100%!important}
  .mpwl-page-mpwl-scheduling-hub .mpwl-schedule-event-name,
  .mpwl-page-mpwl-scheduling-hub .mpwl-schedule-event small{white-space:normal!important;overflow-wrap:anywhere!important}
  .mpwl-page-mpwl-scheduling-hub .mpwl-schedule-actions{min-width:0!important;max-width:100%!important}
  .mpwl-page-mpwl-scheduling-hub .mpwl-schedule-event .mpwl-schedule-actions,
  .mpwl-page-mpwl-scheduling-hub .mpwl-schedule-row .mpwl-schedule-actions,
  .mpwl-page-mpwl-scheduling-hub .mpwl-schedule-request .mpwl-schedule-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;width:100%!important}
  .mpwl-page-mpwl-scheduling-hub .mpwl-schedule-actions .button{width:100%!important;min-width:0!important;max-width:100%!important;margin:0!important;white-space:normal!important;overflow-wrap:anywhere!important;box-sizing:border-box!important}
  .mpwl-page-mpwl-scheduling-hub .mpwl-schedule-actions .button-primary:first-child{grid-column:1/-1}

  /* Editor, request queue and settings are part of the same page and must shrink too. */
  .mpwl-page-mpwl-scheduling-hub .mpwl-schedule-editor .mpwl-panel-head{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:10px!important}
  .mpwl-page-mpwl-scheduling-hub .mpwl-schedule-editor .mpwl-panel-head .button{width:100%!important;max-width:100%!important;margin:0!important}
  .mpwl-page-mpwl-scheduling-hub .mpwl-schedule-editor .mpwl-panel-body{padding:12px!important;min-width:0!important;max-width:100%!important}
  .mpwl-page-mpwl-scheduling-hub .mpwl-schedule-editor .mpwl-schedule-form{grid-template-columns:minmax(0,1fr)!important;width:100%!important;min-width:0!important;max-width:100%!important}
  .mpwl-page-mpwl-scheduling-hub .mpwl-schedule-form>*{grid-column:1!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
  .mpwl-page-mpwl-scheduling-hub .mpwl-schedule-form input:not([type=checkbox]),
  .mpwl-page-mpwl-scheduling-hub .mpwl-schedule-form select,
  .mpwl-page-mpwl-scheduling-hub .mpwl-schedule-form textarea{width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
  .mpwl-page-mpwl-scheduling-hub .mpwl-schedule-checks{grid-template-columns:1fr!important;width:100%!important;min-width:0!important;max-width:100%!important}
  .mpwl-page-mpwl-scheduling-hub .mpwl-schedule-request{display:flex!important;flex-direction:column!important;align-items:stretch!important;min-width:0!important;max-width:100%!important}
  .mpwl-page-mpwl-scheduling-hub .mpwl-schedule-request>div{min-width:0!important;max-width:100%!important;overflow-wrap:anywhere!important}
  .mpwl-page-mpwl-scheduling-hub .mpwl-schedule-settings .mpwl-panel-body{min-width:0!important;max-width:100%!important}
}
@media (max-width:520px){
  .mpwl-page-mpwl-scheduling-hub .mpwl-schedule-event .mpwl-schedule-actions,
  .mpwl-page-mpwl-scheduling-hub .mpwl-schedule-row .mpwl-schedule-actions,
  .mpwl-page-mpwl-scheduling-hub .mpwl-schedule-request .mpwl-schedule-actions{grid-template-columns:minmax(0,1fr)!important}
  .mpwl-page-mpwl-scheduling-hub .mpwl-schedule-actions .button-primary:first-child{grid-column:auto!important}
}


/* v3.12.364 — Clinic Tools grid repair
 * Six launcher cards now render as a true 3x2 desktop grid, 2x3 tablet grid,
 * and single-column mobile stack. Reset older v3.12.356 span rules that were
 * still winning after the v3.12.357 three-column override and causing cards
 * to stretch across the page / leave broken gaps.
 */
.mpwl-page-mpwl-clinic-tools .mpwl-admin-content{
  width:100%!important;
  max-width:1440px!important;
  min-width:0!important;
  box-sizing:border-box!important;
  overflow-x:hidden!important;
}
.mpwl-page-mpwl-clinic-tools .mpwl-hub-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:12px!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  align-items:stretch!important;
}
.mpwl-page-mpwl-clinic-tools .mpwl-hub-card,
.mpwl-page-mpwl-clinic-tools .mpwl-hub-card:nth-child(n+3),
.mpwl-page-mpwl-clinic-tools .mpwl-hub-card:last-child{
  grid-column:auto!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  min-height:138px!important;
  padding:17px!important;
  grid-template-columns:44px minmax(0,1fr)!important;
  gap:12px!important;
  align-content:start!important;
  overflow:hidden!important;
}
.mpwl-page-mpwl-clinic-tools .mpwl-hub-card>div{
  min-width:0!important;
}
.mpwl-page-mpwl-clinic-tools .mpwl-hub-card strong,
.mpwl-page-mpwl-clinic-tools .mpwl-hub-card p,
.mpwl-page-mpwl-clinic-tools .mpwl-hub-card b{
  overflow-wrap:anywhere!important;
}
@media (max-width:1180px){
  .mpwl-page-mpwl-clinic-tools .mpwl-hub-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  .mpwl-page-mpwl-clinic-tools .mpwl-hub-card,
  .mpwl-page-mpwl-clinic-tools .mpwl-hub-card:nth-child(n+3),
  .mpwl-page-mpwl-clinic-tools .mpwl-hub-card:last-child{
    grid-column:auto!important;
  }
}
@media (max-width:782px){
  .mpwl-page-mpwl-clinic-tools .mpwl-hub-grid{
    grid-template-columns:minmax(0,1fr)!important;
    gap:9px!important;
  }
  .mpwl-page-mpwl-clinic-tools .mpwl-hub-card,
  .mpwl-page-mpwl-clinic-tools .mpwl-hub-card:nth-child(n+3),
  .mpwl-page-mpwl-clinic-tools .mpwl-hub-card:last-child{
    grid-column:auto!important;
    min-height:0!important;
    padding:14px!important;
  }
}
