.scheduler-scroll,.people-scroll{display:block;width:100%;max-width:100%;min-width:0;overflow-x:auto;overscroll-behavior-x:contain;margin:1rem 0;-webkit-overflow-scrolling:touch}
.scheduler-table{border-collapse:collapse;table-layout:fixed;width:2180px;min-width:2180px;max-width:none}
.scheduler-table th,.scheduler-table td,.people-table th,.people-table td{box-sizing:border-box;padding:8px;border:1px solid #d4d2c9;vertical-align:top;text-align:left;overflow-wrap:anywhere}
.scheduler-table tr,.people-table tr{display:table-row}.scheduler-table td,.people-table td{display:table-cell}
.scheduler-col-0{width:280px}.scheduler-col-1{width:130px}.scheduler-col-2{width:100px}.scheduler-col-3{width:140px}.scheduler-col-4{width:150px}.scheduler-col-5{width:90px}.scheduler-col-6{width:280px}.scheduler-col-7{width:230px}.scheduler-col-8{width:230px}
.scheduler-table input,.scheduler-table select,.scheduler-table textarea{display:block;box-sizing:border-box;width:100%;min-width:0;max-width:100%;min-inline-size:0;margin:4px 0}
.scheduler-table input[type=date],.scheduler-table input[type=time],.scheduler-table input[type=datetime-local]{width:auto;min-width:0;max-width:100%}
.scheduler-table textarea{min-height:150px;resize:vertical}.scheduler-table input[type=file]{overflow:hidden}
.scheduler-table button{box-sizing:border-box;max-width:100%;white-space:normal;overflow-wrap:anywhere;margin:-2px 0;padding:12px 12px;font-size:.85rem}
.scheduler-table [hidden]{display:none!important}.scheduler-button{margin-bottom:12px}.delivery-status{white-space:pre-line;font-size:.85rem}.scheduler-status{color:#823c26;overflow-wrap:anywhere}
.scheduler-chats{max-width:100%;margin:4px 0}.scheduler-chats summary{cursor:pointer;overflow-wrap:anywhere}.chat-options{max-height:220px;overflow-y:auto;padding:8px 0}
.scheduler-table .scheduler-chat-option{display:flex;align-items:flex-start;gap:8px;margin:6px 0;font-size:.9rem}
.scheduler-table .scheduler-chat-option input{flex:0 0 18px;width:18px;height:18px;margin:2px 0}.scheduler-chat-option span{min-width:0;overflow-wrap:anywhere}
.selected-chats{display:flex;flex-wrap:wrap;gap:4px}.scheduler-table .chat-chip{border-radius:8px;padding:6px 8px;font-size:.8rem;margin:0}.post-status{display:block}.photo-status{display:block;overflow-wrap:anywhere}
.people-table{border-collapse:collapse;table-layout:fixed;width:1225px;min-width:1225px;max-width:none}.people-table th{width:175px}.people-table td{overflow-wrap:anywhere}
.scheduler-table .pause{margin-top:12px}
.scheduler-table .remove{margin-left:8px}
.scheduler-table .scheduler-button-editor{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;align-items:start}
.scheduler-button-editor>.buttons,.scheduler-button-editor .scheduler-button{display:contents}
.scheduler-button-editor .scheduler-button>input,.scheduler-button-editor .scheduler-button>button{grid-column:1/-1}
.scheduler-button-editor>.add-button{grid-column:1;order:1;margin:0}
.scheduler-button-editor .scheduler-button:last-child>button{grid-column:2;order:2;margin:0}

.scheduler-table>tbody>tr:nth-child(odd){background-color:#fff}
.scheduler-table>tbody>tr:nth-child(even){background-color:#f3f4f4}

#app:has(.scheduler-table)>.card.body:has([data-action="telegram-notifications"]){margin-bottom:20px}

.scheduler-col-9{width:160px}
.scheduler-site-controls{display:flex;align-items:center;gap:8px}
.scheduler-table .scheduler-site-switch{display:flex;align-items:center;gap:8px;min-height:44px;margin:0}
.scheduler-table .scheduler-site-switch input{appearance:none;display:block;flex:0 0 38px;width:38px;height:22px;border:0;border-radius:20px;background:#999;position:relative;margin:0;cursor:pointer}
.scheduler-site-switch input:after{content:'';position:absolute;width:16px;height:16px;left:3px;top:3px;background:white;border-radius:50%}
.scheduler-site-switch input:checked{background:#365b48!important}
.scheduler-site-switch input:checked:after{left:19px}
.scheduler-table .site-edit{min-width:44px;margin:0}
.scheduler-site-dialog{box-sizing:border-box;width:460px;max-width:calc(100% - 24px);max-height:calc(100dvh - 32px);overflow:auto;border:1px solid #d4d2c9;border-radius:18px;background:#fffdf7;color:#233d32;padding:24px}
.scheduler-site-dialog::backdrop{background:#152c2466}
.site-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.site-dialog-heading h2{margin:0;font-size:1.5rem}
.scheduler-site-dialog .field{display:block;margin:12px 0}
.scheduler-site-dialog input,.scheduler-site-dialog textarea,.scheduler-site-dialog select{box-sizing:border-box;width:100%;min-width:0;margin-top:6px}
.site-dialog-pair{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
.site-dialog-error{color:#823c26}
.site-announcement-card{text-align:center}
.site-announcement-card .event-card-actions{justify-content:flex-end}
.detail > article.card.body > a.button[target="_blank"]{display:table;margin-left:auto}
@media(max-width:400px){.site-dialog-pair{grid-template-columns:1fr}.scheduler-site-dialog{padding:18px}}

.site-announcement-card{width:100%;max-width:360px;justify-self:center}

#open-retreats > .grid{grid-template-columns:repeat(2,minmax(0,360px));grid-auto-rows:1fr;justify-content:center;align-items:stretch}
#open-retreats > .grid > .card{width:100%;max-width:360px;height:100%;justify-self:center}
@media(max-width:640px){#open-retreats > .grid{grid-template-columns:minmax(0,360px)}}

#open-retreats > .grid > .card > .body{padding:18px;height:100%;display:flex;flex-direction:column;justify-content:center;text-align:center}
#open-retreats > .grid > .card h2{font-size:19.2px;margin-bottom:10px}
#open-retreats > .grid > .card .event-period{font-size:16px;margin-bottom:10px}
#open-retreats > .grid > .card .lead{margin-bottom:10px}
#open-retreats > .grid > .card .event-card-actions{margin:2px 0 0}
@media(min-width:1000px){#open-retreats > .grid{grid-template-columns:repeat(3,minmax(0,300px))}#open-retreats > .grid > .card{max-width:300px}}

.scheduler-photo-dialog{box-sizing:border-box;width:760px;max-width:calc(100% - 24px);max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);margin:auto;padding:16px;border:1px solid #d4d2c9;border-radius:18px;background:#fffdf7;color:#233d32;overflow:auto}
.scheduler-photo-dialog::backdrop{background:#152c2480}
.scheduler-photo-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.scheduler-photo-heading h2{margin:0;font-size:1.25rem}
.scheduler-photo-heading button{flex-shrink:0;min-height:44px;margin:0;padding:10px 14px}
.scheduler-photo-dialog img{display:block;width:auto;height:auto;max-width:100%;max-height:calc(100vh - 140px);max-height:calc(100dvh - 140px);object-fit:contain;margin:auto}
.scheduler-photo-dialog [hidden]{display:none!important}

body > .shell:has(.scheduler-table){max-width:none}
.scheduler-scroll{cursor:grab}
.scheduler-scroll.is-dragging,.scheduler-scroll.is-dragging *{cursor:grabbing!important;user-select:none}
.scheduler-scroll input,.scheduler-scroll textarea{cursor:text}
.scheduler-scroll select,.scheduler-scroll label{cursor:default}

.scheduler-bookmarks{display:flex;flex-wrap:wrap;gap:6px;margin:24px 0 0;border-bottom:1px solid #dedbd3}
.scheduler-bookmarks button{margin:0;padding:13px 18px;border:1px solid #dedbd3;border-bottom:0;border-radius:12px 12px 0 0;background:#f5efe6;color:#8a6940}
.scheduler-bookmarks button[aria-selected="true"]{background:#b37f40;border-color:#b37f40;color:#fff}
.scheduler-tab-panel>.actions{margin-top:18px}
.scheduler-empty td{padding:24px 10px;color:#756d63;text-align:left}
@media(max-width:600px){.scheduler-bookmarks button{flex:1 1 42%;padding:12px 10px}}
