.stp-trigger{position:relative;z-index:1;cursor:pointer;text-decoration:underline;text-underline-offset:.16em}
.stp-trigger:hover{filter:brightness(.96)}
.stp-trigger:focus-visible{outline:3px solid var(--theme-link,#1761a3);outline-offset:3px}
.stp-dialog{width:min(850px,calc(100vw - 28px));max-width:calc(100vw - 28px);max-height:calc(100dvh - 28px);padding:0;border:1px solid var(--theme-line,#d4ddd8);border-radius:16px;background:var(--theme-surface,#fff);color:var(--theme-ink,#183d34);box-shadow:0 18px 65px #0004}
.stp-dialog::backdrop{background:#102b2a66}
.stp-dialog-header{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:.8rem 1.2rem;border-bottom:1px solid var(--theme-line,#d4ddd8)}
.stp-dialog-header h2{font-size:1.15rem;margin:0}.stp-close{min-width:44px;min-height:44px;padding:.3rem;font-size:1.5rem;line-height:1}
html[data-sm-theme] .stp-dialog button.stp-close{width:44px;min-width:44px;height:44px;min-height:44px;flex-shrink:0;padding:0;background:var(--theme-surface,#fff);color:var(--theme-ink,#183d34);border:1px solid var(--theme-line,#d4ddd8)}
.stp-dialog-content{padding:1rem 1.2rem;overflow:auto;max-height:calc(100dvh - 115px);overscroll-behavior:contain}
.stp-dialog-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:.5rem}.stp-dialog-actions [hidden]{display:none!important}
.stp-dialog-header>.ff-heading{min-width:0;flex-wrap:wrap}.stp-dialog-header h2{word-break:normal;overflow-wrap:normal}
.stp-finder-open{width:min(1100px,calc(100vw - 28px))}.stp-finder-open .stp-dialog-content{padding:0}
.stp-finder-open .stp-dialog-content>[role=status],.stp-finder-open .stp-dialog-content>.notice{margin:1rem}
.stp-finder-host{min-width:0}.stp-finder-frame{display:block;width:100%;height:min(76dvh,850px);min-height:250px;border:0;background:var(--theme-surface,#fff)}.stp-finder-frame[hidden]{display:none}
.stp-panel{width:100%;max-width:1100px;margin-inline:auto;min-width:0;word-break:normal;overflow-wrap:break-word}.stp-dialog-content .stp-panel>h2{display:none}
.stp-booking{display:block;margin-bottom:1rem}.stp-booking p{margin:.3rem 0}.stp-booking-name{font-weight:650}
.stp-outreach{padding:1rem;border:1px solid var(--theme-warning-line,#cab998);border-left:4px solid var(--theme-warning-line,#cab998);border-radius:10px;background:var(--theme-warning-bg,#fff1cf);color:var(--theme-warning,#704600)}
.stp-outreach h3{font-size:1rem;margin:0 0 .4rem}.stp-outreach p{margin:.4rem 0;max-width:75ch}.stp-outreach .inline-actions{margin-top:.8rem}
.stp-summary-title{font-size:1rem;margin:1.2rem 0 .6rem}
.stp-counts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.6rem;margin:.6rem 0 1rem}
.stp-counts>div{display:flex;flex-direction:column;min-width:0;padding:.7rem;border:1px solid var(--theme-line,#d4ddd8);border-radius:10px;background:var(--theme-tint,#f3f7f2)}
.stp-counts dt{font-size:.85rem;line-height:1.4;min-height:2.8em;word-break:normal;overflow-wrap:normal}.stp-counts dd{margin:.35rem 0 0;margin-top:auto;padding-top:.35rem;font-size:1.5rem;line-height:1.2;font-weight:750}
.stp-people{list-style:none;padding:0;margin:1rem 0;display:grid;gap:.75rem}
.stp-people>li{padding:.9rem;border:1px solid var(--theme-line,#d4ddd8);border-radius:10px}
.stp-people h3{font-size:1rem;margin:0;overflow-wrap:anywhere}.stp-people p{margin:.25rem 0 .6rem}
.stp-state{display:inline-block;font-weight:700;padding:.2rem .45rem;border-radius:5px;background:var(--theme-tint,#eef4f0)}
.stp-waiting,.stp-expired{border:1px solid var(--theme-warning-line,#cab998);background:var(--theme-warning-bg,#fff1cf);color:var(--theme-warning,#704600)}
.stp-dates{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));gap:.65rem 1rem;margin:.75rem 0;font-size:.85rem}
.stp-dates>div{min-width:0}.stp-dates dt{font-weight:650}.stp-dates dd{margin:.15rem 0 0}
.stp-delivery{display:flex;flex-wrap:wrap;gap:.3rem .9rem;list-style:none;padding:0;margin:.4rem 0;font-size:.82rem}
.stp-history,.stp-guide{margin-top:.7rem}.stp-history .stp-attempt{padding:.7rem 0;border-top:1px solid var(--theme-line,#d4ddd8)}
.stp-panel summary{cursor:pointer;min-height:32px}.stp-panel>.file-note,.stp-guide p{max-width:85ch}.stp-updated{display:flex;flex-wrap:wrap;gap:.2rem 1rem;margin:1rem 0 .7rem}.stp-actions{gap:.6rem}
/* Keep the appointment link and staffing links as siblings, including drag cards. */
.stp-calendar-main{display:block;flex-shrink:0;min-width:0;color:inherit;text-decoration:none}
.stp-calendar-main>.plan-booking-time,.stp-calendar-main>.aa-calendar-identity{display:block}
.plan-week-booking:has(>.stp-calendar-main){position:relative}
.stp-calendar-main::after{content:'';position:absolute;inset:0;z-index:0}
.aa-calendar-badges{position:relative;z-index:1}
.plan-booking:has(>.stp-calendar-main:focus-visible),.plan-week-booking:has(>.stp-calendar-main:focus-visible){outline:3px solid var(--theme-link,#1761a3);outline-offset:2px}
.eq-event .stp-calendar-main>span:first-child{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex-shrink:0;line-height:1.25}
@media(max-width:640px){.stp-counts{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.stp-finder-open .stp-dialog-header{display:block;position:relative;padding-right:3.8rem}.stp-finder-open .stp-dialog-actions{margin-top:.6rem;justify-content:flex-start}.stp-finder-open .stp-close{position:absolute;right:.75rem;top:.75rem}}
@media(max-width:480px){.stp-dialog{width:calc(100vw - 16px);max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:12px}.stp-dialog-header,.stp-dialog-content{padding:.75rem}.stp-people>li{padding:.7rem}.stp-outreach{padding:.75rem}}
