/* Scoped V215 frames cover both avatar and name. Never restyle the signature surface. */
.therapistHeadBox.rr215-frame{position:relative!important;border:2px solid transparent;border-radius:11px;padding:10px 2px 5px!important;min-height:100%;overflow:hidden!important}
.therapistHeadBox.rr215-angel{border-color:#ce941f;background:linear-gradient(180deg,#fff9e9 0%,#fff 64%);box-shadow:inset 0 0 0 2px #fff3d3}
.therapistHeadBox.rr215-demon{border-color:#86406f;background:linear-gradient(180deg,#fbf1f8 0%,#fff 65%);box-shadow:inset 0 0 0 2px #f5e8f1}
.therapistHeadBox.rr215-support{border-color:#c43138;background:linear-gradient(180deg,#fff0f0 0%,#fff 65%);box-shadow:inset 0 0 0 2px #ffe0e1}
.rr215-wing{position:absolute;top:25px;width:18%;max-width:25px;height:64px;pointer-events:none;z-index:0}
.rr215-wing.left{left:0}.rr215-wing.right{right:0;transform:scaleX(-1)}
.rr215-angel .rr215-wing{fill:#fff4ce;stroke:#c58c1b;stroke-width:1.15;stroke-linecap:round;stroke-linejoin:round}
.rr215-demon .rr215-wing{fill:#995184;stroke:#793569;stroke-width:1;stroke-linecap:round;stroke-linejoin:round}
.rr215-halo{position:absolute;top:0;left:25%;width:50%;height:12px;fill:#fff4cd;stroke:#cc941f;stroke-width:1.4;pointer-events:none}
.rr215-frame .therapistCardTop,.rr215-frame .therapistCardMiddle,.rr215-frame .therapistCardBottom{position:relative;z-index:1}
.rr215-chip{display:table;margin:3px auto;padding:2px 5px;border-radius:5px;font-weight:850;font-size:10px;line-height:1.3;white-space:normal}
.rr215-chip.angel{color:#755214;background:#fff0bc}.rr215-chip.demon{color:#783461;background:#f4deee}
.rr215-chip.support{color:#fff;background:#b9202b;font-size:13px;letter-spacing:2px;padding:3px 7px}
.rr215-chip.pending{color:#365778;background:#ecf1f6}
.rr215-overtime-small{font-size:9px;color:#99570a;font-weight:800;line-height:1.3}
.rr215-note,.rr215-qr-note,.rr215-entry{padding:12px 14px;border:1px solid #cad7e4;border-radius:10px;background:#f4f8fc;color:#153951;margin:12px 0;line-height:1.6;font-size:14px}
.rr215-qr-note{background:#fff7e7;border-color:#e9cf95;color:#72511d}.rr215-qr-note strong{display:block;font-size:16px}.rr215-qr-note small{display:block;margin-top:6px;line-height:1.5}
.rr215-entry{background:#edf7f1;border-color:#bad9c7}.rr215-error{color:#9b2026;background:#fff2f3;border-color:#edbac0}
.rr215-readonly{padding:12px;border:1px solid #dbe2ea;border-radius:10px;background:#f6f8fa;margin-bottom:10px}
.rr215-readonly input[readonly]{background:#edf1f5!important;color:#24384d;pointer-events:none}
.rr215-controls{padding:13px;border:1px solid #d4dce6;border-radius:12px;margin:10px 0}
.rr215-controls .rr215-row{display:flex;gap:9px;align-items:center;flex-wrap:wrap}
.rr215-controls .rr215-support-check{display:flex;align-items:flex-start;gap:9px;margin:12px 0;color:#a5222e}
.rr215-controls input[type=checkbox]{width:22px;min-width:22px;height:22px;margin-top:2px}
.rr215-overlay{position:fixed;inset:0;background:#061c35a6;z-index:25000;display:flex;align-items:center;justify-content:center;padding:15px}
.rr215-dialog{background:#fff;color:#142b41;width:min(620px,100%);max-height:92dvh;overflow:auto;padding:22px;border-radius:17px;box-shadow:0 20px 70px #001a3e55;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI','Noto Sans CJK TC',sans-serif}
.rr215-dialog h2{margin:0 0 15px;font-size:22px;line-height:1.4}.rr215-dialog label{font-size:14px;margin:12px 0;display:block;font-weight:700}
.rr215-dialog input,.rr215-dialog textarea,.rr215-dialog select{width:100%;padding:11px;border:1px solid #bfcbd8;border-radius:9px;background:#fff;font:inherit;color:inherit;box-sizing:border-box}
.rr215-dialog .rr215-check{display:flex;align-items:flex-start;gap:10px;background:#fff7e8;padding:12px;border:1px solid #eed5a6;border-radius:9px;line-height:1.6}
.rr215-dialog .rr215-check input{width:22px;min-width:22px;height:22px;accent-color:#173f61;margin-top:3px}
.rr215-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:18px}
.rr215-dialog button{border:1px solid #233c57;background:#fff;color:#183a55;border-radius:10px;padding:12px 18px;font:inherit;font-weight:750;cursor:pointer}
.rr215-dialog button.primary{background:#0a2b4a;color:#fff}.rr215-dialog button:disabled{opacity:.45;cursor:not-allowed}
.rr215-detail{font-size:13px;color:#536578;line-height:1.7}.rr215-warn-person{padding:10px 12px;border-left:4px solid #d19523;margin:9px 0;background:#fff8e8}
.rr215-legend{display:flex;gap:12px;flex-wrap:wrap;font-size:12px;padding:8px 0;color:#39506a}.rr215-legend span{display:flex;align-items:center;gap:5px}
.rr215-legend i{width:12px;height:12px;border:2px solid;border-radius:4px;display:inline-block}.rr215-legend .a{border-color:#ce941f}.rr215-legend .d{border-color:#86406f}.rr215-legend .s{border-color:#c43138}
@media(max-width:480px){.rr215-dialog{padding:17px}.rr215-overlay{padding:10px}.rr215-dialog h2{font-size:20px}.rr215-qr-note{font-size:13px}.rr215-qr-note strong{font-size:15px}}
/* Explicit single grid track prevents inherited legacy grid centering from narrowing cards. */
.therapistHeadBox.rr215-frame{height:260px!important;min-height:260px!important;max-height:260px!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:58px minmax(78px,1fr) 100px!important;justify-content:stretch!important;align-items:stretch!important;padding:12px 4px 7px!important}
.rr215-frame .therapistCardTop,.rr215-frame .therapistCardMiddle,.rr215-frame .therapistCardBottom{width:100%!important}
.rr215-frame .therapistCardBottom{height:100px!important;min-height:100px!important;background:transparent!important}
.therapistHeadBox.rr215-angel{background:linear-gradient(180deg,#fff9e9 0%,#fff 64%)!important}
.therapistHeadBox.rr215-demon{background:linear-gradient(180deg,#fbf1f8 0%,#fff 65%)!important}
.therapistHeadBox.rr215-support{background:linear-gradient(180deg,#fff0f0 0%,#fff 65%)!important}

/* V216: larger high-contrast labels; extra footer height prevents clipping on narrow columns. */
.rr215-chip.angel,.rr215-chip.demon{font-size:18px!important;font-weight:900!important;line-height:1.35!important;padding:4px 6px!important;white-space:nowrap;box-sizing:border-box;flex-shrink:0;max-width:100%}
.rr215-chip.support{font-size:22px!important;font-weight:900!important;line-height:1.25!important;padding:4px 10px!important;color:#000000!important;background:#ff4d4f!important;letter-spacing:2px!important;white-space:nowrap;box-sizing:border-box;flex-shrink:0}
.therapistHeadBox.rr215-frame{height:300px!important;min-height:300px!important;max-height:300px!important;grid-template-rows:58px minmax(78px,1fr) 132px!important}
.rr215-frame .therapistCardBottom{height:132px!important;min-height:132px!important}
.rr215-frame .therapistCardBottom>*{flex-shrink:0}
.rr215-legend{font-size:15px;font-weight:750}

/* V219: first-tail choices and supervisor-only bypass, no performance list. */
.rr219-request-inline{padding:12px 0}.rr219-request-inline label{display:block;font-size:16px;font-weight:800;margin-bottom:7px}
.rr219-request-inline select{width:100%;font:inherit;font-size:16px;min-height:46px;padding:10px;border-radius:9px;background:#fff;color:#183a55;border:1px solid #bfcbd8}
.rr219-first-note{padding:17px;border:2px solid #b7d6c5;background:#eff9f3;border-radius:12px;font-size:17px;line-height:1.65}
.rr219-first-note strong{display:block;font-size:21px}.rr219-first-note p{margin:9px 0}
.rr219-approval{border:1px solid #e4c38b;border-radius:10px;padding:12px;background:#f0f5eb}
.rr219-outcome{font-size:16px;line-height:1.7;color:#334c63}
.rr215-dialog #rr219Request{font-size:17px;min-height:46px}.rr215-dialog .rr219-refresh{font-size:14px;padding:8px 12px}
.rr215-actions button{min-height:46px}

/* V228: explicit, equally readable opening/reorder actions; scoped to this dialog. */
.rr228-actions{display:grid;grid-template-columns:1fr;width:100%;gap:10px}
.rr228-actions button{width:100%;font-size:17px;line-height:1.5;white-space:normal;min-height:52px}
.rr228-actions [type=submit]{grid-row:1}
.rr228-actions .rr228-reorder-only{grid-row:2;border:2px solid #426584;background:#f3f7fb}
.rr228-actions [data-cancel]{grid-row:3;border-color:#b9c5d1;color:#526479}
.rr228-first-note p{font-size:16px}.rr228-first-note strong{font-size:23px}

.rr228-first-note p{margin:8px 0;font-size:16px;line-height:1.5}.rr228-first-note{padding:13px}.rr228-first-note strong{font-size:21px}

/* V229: early registration is visually distinct from off-duty and first-service priority. */
.therapistHeadBox.rr215-early{border-color:#157a4f!important;background:linear-gradient(180deg,#d8f5e6 0%,#f4fff9 64%)!important;box-shadow:inset 0 0 0 2px #b5e3cb!important}
.rr215-chip.early{font-size:22px!important;font-weight:900!important;line-height:1.3!important;padding:4px 5px!important;color:#ffffff!important;background:#137747!important;white-space:nowrap;max-width:100%;box-sizing:border-box;flex-shrink:0}
.therapistStatusFace.state-early{background:#e1f7eb!important;border-color:#157a4f!important}
.rr215-legend .e{border-color:#157a4f;background:#d8f5e6}
.rr229-early-note{padding:14px 16px!important;background:#edf9f1!important;border:2px solid #319869!important;border-radius:12px;color:#17482e!important;margin:12px 0;line-height:1.65;font-size:16px}
.rr229-early-note strong{display:block;font-size:20px;line-height:1.45;margin-bottom:6px;font-weight:850}
.rr229-early-note small{display:block;margin-top:7px;font-size:14px}
