.schedule-share-launch{margin-bottom:12px}
.schedule-share-dialog{width:min(620px,calc(100% - 20px));max-height:90dvh;padding:0;border:1px solid #d8e4e8;border-radius:20px;background:#f7fafb;color:#153341;overflow:auto;box-shadow:0 20px 80px #0005}
.schedule-share-dialog::backdrop{background:#071f35aa}
.schedule-share-dialog *{box-sizing:border-box}
.schedule-share-dialog header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px;background:#fff;position:sticky;top:0;z-index:1}
.schedule-share-dialog h2{margin:4px 0;font-size:20px;overflow-wrap:anywhere}
.schedule-share-dialog main{padding:18px}
.schedule-share-dialog button,.schedule-share-dialog a{min-height:44px;font:inherit;font-size:14px;padding:10px 12px;border-radius:10px;cursor:pointer}
.schedule-share-dialog button:disabled{opacity:.5;cursor:default}
.schedule-share-dialog .ss-periods,.schedule-share-dialog .ss-actions{display:flex;flex-wrap:wrap;gap:8px}
.schedule-share-dialog .ss-dates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:14px}
.schedule-share-dialog label{display:block;font-size:14px;margin:8px 0}
.schedule-share-dialog input:not([type=checkbox]),.schedule-share-dialog select,.schedule-share-dialog textarea{display:block;width:100%;min-width:0;padding:10px;margin-top:5px;font:inherit;font-size:16px;color:inherit;background:#fff;border:1px solid #c9dae2;border-radius:8px}
.schedule-share-dialog textarea{line-height:1.6;resize:vertical}
.schedule-share-dialog fieldset{border:1px solid #d2e2e8;border-radius:12px;padding:12px;margin:12px 0}
.schedule-share-dialog legend{font-size:14px;padding:0 6px}
.schedule-share-dialog .ss-check{display:flex;align-items:center;gap:8px;min-height:44px}
.schedule-share-dialog input[type=checkbox]{width:20px;height:20px}
.schedule-share-dialog article{padding:14px 0;border-bottom:1px solid #c9dae2}
.schedule-share-dialog article strong,.schedule-share-dialog article small{display:block;margin-bottom:8px;overflow-wrap:anywhere}
.schedule-share-dialog a{display:inline-flex;align-items:center;text-decoration:none;background:#dcefea;color:#145d51}
.schedule-share-dialog .ss-hint{font-size:13px;line-height:1.5;color:#506775}
.schedule-share-dialog #ss-error{color:#a52a2a;line-height:1.5;margin:10px 0}
.schedule-share-dialog [hidden]{display:none!important}
@media(prefers-color-scheme:dark){.schedule-share-dialog{background:#172b38;color:#e6f0f5;border-color:#3c5564}.schedule-share-dialog header,.schedule-share-dialog input:not([type=checkbox]),.schedule-share-dialog select,.schedule-share-dialog textarea{background:#213a49;color:#e6f0f5;border-color:#496170}.schedule-share-dialog .ss-hint{color:#c1d3de}.schedule-share-dialog #ss-error{color:#ffb3b3}}

.schedule-calendar-action{margin:10px 0}.schedule-share-dialog .ss-patient-row{display:flex;gap:10px;align-items:center;justify-content:space-between;border-bottom:1px solid #c9dae2;padding:8px 0}.schedule-share-dialog .ss-patient-row label{flex:1;min-width:0}.schedule-share-dialog .ss-patient-row span{overflow-wrap:anywhere}.schedule-share-dialog .ss-patient-row button{flex-shrink:0}.schedule-share-dialog summary{min-height:44px;padding:10px 0;cursor:pointer}.schedule-share-dialog #ss-batch-error{color:#a52a2a;line-height:1.5}.schedule-share-dialog #ss-batch-summary{font-weight:600}
@media(prefers-color-scheme:dark){.schedule-share-dialog #ss-batch-error{color:#ffb3b3}}
