.calendar-shell{max-width:1200px;margin:auto;padding:32px 20px}.calendar-cards,.calendar-agenda{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}.calendar-cards article,.calendar-panel,.calendar-agenda article{background:#14212a;border:1px solid #304652;border-radius:16px;padding:24px;margin-bottom:20px;min-width:0}.calendar-panel label{display:block;margin:16px 0}.calendar-panel input:not([type=checkbox]),.calendar-panel select,.calendar-panel textarea{display:block;width:100%;box-sizing:border-box}.calendar-panel small{display:block;color:#adbfca}.calendar-panel pre{white-space:pre-wrap;overflow-wrap:anywhere}.calendar-actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin:12px 0}.calendar-check{display:flex!important;align-items:center;gap:12px}.calendar-check input,.calendar-field input[type=checkbox]{width:auto!important;margin:0}.calendar-preview{padding:20px;background:#08131a;border-radius:12px;margin:20px 0;white-space:pre-wrap}.calendar-field{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px}.calendar-error{color:#ffb4a5}.calendar-agenda strong,.calendar-agenda span{display:block}.calendar-panel fieldset{border:1px solid #304652;border-radius:12px;margin-top:20px}.appointment-shell{max-width:640px;margin:40px auto;padding:24px}.appointment-shell article{background:#14212a;border:1px solid #304652;border-radius:20px;padding:28px}.appointment-shell pre{white-space:pre-wrap;overflow-wrap:anywhere}.appointment-shell .button{margin:8px}.appointment-shell footer{text-align:center;padding:20px}.calendar-shell details{padding:14px 0;border-bottom:1px solid #304652}.calendar-shell summary{cursor:pointer}.calendar-shell .validation-summary-valid{display:none}
.calendar-stepper{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:28px 0 14px}.calendar-stepper button{display:flex;align-items:center;gap:8px;text-align:left;padding:12px;background:#14212a;color:#adbfca;border:1px solid #304652;border-radius:12px;font:inherit;cursor:pointer}.calendar-stepper button span{display:grid;place-items:center;min-width:26px;height:26px;border-radius:50%;background:#263d49}.calendar-stepper button[aria-current=step]{border-color:#e97a38;color:#fff;background:#27343c}.calendar-stepper button[aria-current=step] span{background:#e97a38;color:#fff}.calendar-step-position{color:#9ed9ec;font-weight:700}.wizard-ready [data-wizard-step][hidden],#calendar-wizard [data-personal-only][hidden],#calendar-wizard [data-customer-only][hidden]{display:none!important}.calendar-choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.calendar-mode-choice{display:flex!important;flex-direction:column;gap:12px;padding:22px;border:2px solid #304652;border-radius:16px;cursor:pointer;background:#0c1820}.calendar-mode-choice:has(input:checked){border-color:#ec7a39;background:#24333c}.calendar-mode-choice input[type=radio]{width:22px!important;height:22px;margin:0}.calendar-mode-choice strong{font-size:1.25rem}.calendar-mode-choice span{line-height:1.6}.calendar-tutorial{padding:20px;background:#0c1b24;border-left:3px solid #68c3dc;border-radius:10px;margin:18px 0}.calendar-tutorial li{margin:8px 0;line-height:1.6}.calendar-wizard-buttons{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-top:26px;padding-top:20px;border-top:1px solid #304652}.calendar-review{display:grid;grid-template-columns:minmax(120px,1fr) 2fr;gap:12px}.calendar-review dt{color:#9bb3c1}.calendar-review dd{margin:0;overflow-wrap:anywhere}.calendar-management>summary{font-size:1.25rem;font-weight:700}#calendar-connection-result{max-width:650px;line-height:1.6}#calendar-connection-result[data-success=true]{color:#8ddbb7}.calendar-help-button{padding:2px 8px;margin:4px;border:1px solid #456170;background:transparent;color:#9ed9ec;border-radius:50%;cursor:pointer}.calendar-panel h2{scroll-margin-top:110px}.calendar-panel :focus-visible{outline:3px solid #80d8f0;outline-offset:3px}@media(max-width:760px){.calendar-stepper{grid-template-columns:1fr 1fr}.calendar-stepper button:last-child{grid-column:1/-1}.calendar-choice-grid{grid-template-columns:1fr}.calendar-review{grid-template-columns:1fr}.calendar-review dd{margin-bottom:10px}.calendar-wizard-buttons .button,.calendar-wizard-buttons .ghost-button{flex:1;text-align:center}.calendar-panel{padding:20px}.calendar-shell{padding:20px 12px}}
.calendar-examples p{margin:20px 0;line-height:1.8}.calendar-help-tools{padding:20px;background:#10212c;border-radius:14px;margin:24px 0}.calendar-help-tools input{width:100%;padding:14px;box-sizing:border-box;background:#08131a;color:#fff;border:1px solid #456170;border-radius:8px;margin:10px 0 18px}.calendar-help-tools nav{display:flex;flex-wrap:wrap;gap:18px}.calendar-troubleshooting{padding-left:24px}.calendar-troubleshooting li{padding:10px 0;line-height:1.7}.calendar-troubleshooting li strong{display:block;color:#9ed9ec}.calendar-support{display:inline-flex!important;margin-top:18px!important;padding:16px 26px!important}.agenda-board{--agenda-accent:#68c3dc;border-top:4px solid var(--agenda-accent);background:#0b1820;border-radius:16px;padding:20px;margin:20px 0}.agenda-board header{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}.agenda-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}.agenda-weekday{padding:12px 4px;text-align:center;color:#a8becb}.agenda-day{min-height:105px;padding:8px;border:1px solid #304652;border-radius:8px;overflow-wrap:anywhere}.agenda-outside{opacity:.4}.agenda-today{border:2px solid var(--agenda-accent)}.agenda-day-number{display:block;padding:4px;margin-bottom:6px}.agenda-day a{display:block;border-left:3px solid var(--agenda-accent);padding:6px;background:#1d303c;border-radius:4px;margin:5px 0;font-size:.8rem;color:#fff;text-decoration:none}.agenda-day a strong,.agenda-day time{display:block}.agenda-mobile-weekday{display:none}.calendar-panel input[type=color]{max-width:90px;height:48px;padding:4px}.calendar-panel select[multiple]{min-height:125px}.agenda-welcome{border-color:#ec7a39}@media(max-width:700px){.agenda-grid{grid-template-columns:1fr}.agenda-weekday,.agenda-outside{display:none}.agenda-mobile-weekday{display:inline}.agenda-day{min-height:44px}.agenda-day:has(a){background:#13232e}.agenda-board{padding:12px}.agenda-day a{font-size:1rem}.calendar-troubleshooting{padding-left:20px}}

.agenda-board header{position:static;height:auto;min-height:0;padding:0 0 20px;background:transparent;backdrop-filter:none;z-index:auto;border:0}.calendar-panel p{margin:14px 0;line-height:1.75}.agenda-grid>[hidden]{display:none!important}.agenda-grid.agenda-filtered{grid-template-columns:1fr}.agenda-filtered .agenda-weekday{display:none}.agenda-day[hidden]{display:none!important}

@media(max-width:700px){.agenda-day:not(:has(a)):not(.agenda-today){display:none}}
.calendar-question{display:inline-grid;place-items:center;width:20px;height:20px;border:1px solid #8cd5e9;border-radius:50%;color:#8cd5e9;font-size:13px;font-weight:700;margin-left:8px;vertical-align:middle}.calendar-source-options{padding:18px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.calendar-source-choice{display:flex!important;align-items:flex-start;gap:12px;border:2px solid #304652;border-radius:12px;padding:18px;background:#0c1820;margin:0!important;cursor:pointer}.calendar-source-choice input[type=radio]{width:20px!important;height:20px;flex-shrink:0;margin:3px 0}.calendar-source-choice:has(input:checked){border-color:#ec7a39;background:#24333c}.calendar-source-choice strong{display:block}.calendar-source-choice small{margin-top:8px}.calendar-source-choice:has(input:disabled){opacity:.6;cursor:default}.calendar-source-status{background:#112d30;border:1px solid #4aab9a;padding:18px;border-radius:12px;margin:20px 0}.calendar-provider-unavailable{padding:20px;border:1px solid #8b7743;border-radius:12px;background:#292619}.calendar-create-form{padding:18px;background:#0c1b24;border-radius:12px}[data-calendar-source-panel][hidden]{display:none!important}.calendar-create-form input:not([type=color]){padding:12px;color:#f5f8fa;background:#08131a;border:1px solid #456170;border-radius:8px}.calendar-panel button:disabled{opacity:.5;cursor:not-allowed}@media(max-width:760px){.calendar-source-options{grid-template-columns:1fr;padding:12px}.calendar-source-choice{padding:16px}.calendar-source-status{padding:16px}}
.calendar-question{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:24px;height:24px;line-height:1;font-family:Arial,sans-serif;font-size:15px;padding:0;vertical-align:middle;flex-shrink:0}
.calendar-source-choice[data-source-locked="true"]{cursor:pointer}.calendar-source-choice[data-source-locked="true"] input{pointer-events:none}.calendar-source-choice:focus-visible{outline:3px solid #65bbef;outline-offset:3px}
#calendar-connection-result.notice{display:block;flex:1;min-width:200px}#calendar-identity input{display:block;width:100%;background:#08131b;color:#fff;border:1px solid #466271;border-radius:8px;padding:12px;margin-top:7px}
.calendar-source-locked{font:inherit;text-align:left;display:flex;gap:14px;align-items:flex-start;width:100%;background:#101a22;color:#a0a9b0;border:2px solid #34434c;border-radius:16px;padding:22px;opacity:.65;cursor:pointer}.calendar-source-locked strong,.calendar-source-locked small{display:block}.calendar-radio-disabled{width:22px;height:22px;min-width:22px;border-radius:50%;background:#9ba4ab;margin-top:5px}
#calendar-source-lock-dialog{max-width:min(520px,calc(100vw - 32px));background:#133b55;color:#e5f5ff;border:2px solid #65bbef;border-radius:16px;padding:28px;box-shadow:0 20px 80px #000a}#calendar-source-lock-dialog::backdrop{background:#0009}#calendar-source-lock-dialog h3{margin-top:0}#calendar-source-lock-dialog p{color:inherit}
[data-personal-only][hidden],[data-customer-only][hidden]{display:none!important}.calendar-panel input:not([type=checkbox]):not([type=radio]):not([type=color]),.calendar-panel textarea{background:#08131b;color:#f5f8fa;border:1px solid #456170;border-radius:8px;padding:12px}
#calendar-wizard [hidden]{display:none!important}
details.calendar-panel{padding:24px!important}details.calendar-panel>summary{padding:4px 0;cursor:pointer}details.calendar-panel>p{margin:18px 0;overflow-wrap:anywhere}@media(max-width:760px){details.calendar-panel{padding:20px!important}}
.calendar-details-link-option{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.calendar-details-link-option .calendar-check{margin:12px 0}.calendar-details-link-option .calendar-question{background:#102e40;cursor:help;margin-left:0;min-width:24px}.calendar-details-link-option .calendar-question:hover{background:#21526b}
#calendar-appointment-dialog{width:min(760px,calc(100vw - 24px));max-height:90vh;overflow:auto;border:1px solid #527489;border-radius:16px;padding:0;background:#14212a;color:#f5f8fa}#calendar-appointment-dialog::backdrop{background:#000b}#calendar-appointment-dialog .calendar-panel{margin:0;border:0}#calendar-appointment-dialog input:not([type=checkbox]),#calendar-appointment-dialog select,#calendar-appointment-dialog textarea{width:100%;padding:12px;background:#08131b;color:#fff;border:1px solid #456170;border-radius:8px}#calendar-appointment-dialog label{display:block;margin:14px 0}.calendar-modal-close{float:right}#calendar-date-menu{position:fixed;z-index:1000;background:#153b52;padding:8px;border:1px solid #78bde7;border-radius:10px;box-shadow:0 8px 28px #0008}#calendar-date-menu button{padding:12px 18px;background:transparent;border:0;color:#fff;font:inherit;cursor:pointer}.agenda-day:focus-visible{outline:3px solid #65bbef;outline-offset:2px}#calendar-management-area>.calendar-actions{margin:20px 0}
.calendar-appointment-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:18px}.calendar-appointment-actions form{margin:0}.calendar-appointment-actions button{white-space:nowrap}body.calendar-focus>.portal-header,body.calendar-focus>.portal-footer,body.calendar-focus #portal-negative-balance,body.calendar-focus #calendar-wizard>.eyebrow,body.calendar-focus #calendar-page-title,body.calendar-focus #calendar-wizard>p,body.calendar-focus #calendar-setup-area,body.calendar-focus #calendar-management-area>.calendar-actions,body.calendar-focus #calendar-management-area>details:not(.calendar-management),body.calendar-focus .calendar-management>summary,body.calendar-focus .calendar-management>div>h2,body.calendar-focus .calendar-management>div>p,body.calendar-focus .agenda-board>details,body.calendar-focus .agenda-board>p,body.calendar-focus .calendar-management a[target=_blank]{display:none!important}body.calendar-focus #calendar-wizard{max-width:none;padding:12px}body.calendar-focus .calendar-management{border:0;margin:0;padding:0!important}body.calendar-focus .agenda-board{margin:0}body.calendar-focus header{position:static}body.calendar-focus #calendar-management-area{display:block}
#calendar-setup-test-dialog{width:min(720px,calc(100vw - 24px));max-height:90vh;overflow:auto;background:#14212a;color:#f5f8fa;border:1px solid #75b9df;border-radius:16px;padding:28px}#calendar-setup-test-dialog::backdrop{background:#000b}#calendar-setup-test-dialog pre{white-space:pre-wrap;overflow-wrap:anywhere}.calendar-actions label:has(#calendar-jump-month){margin:0}#calendar-jump-month{width:auto;min-width:180px}body.calendar-focus #calendar-management-area>[data-open-setup-test]{display:none!important}
.calendar-step-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap}.calendar-step-actions form{margin:0}.calendar-step-actions button{white-space:nowrap}@media(max-width:600px){.calendar-step-actions{width:100%}.calendar-step-actions form{flex:1}.calendar-step-actions form button{width:100%}}

.agenda-day.agenda-selected{background:#203440;border-color:#6b8d9e}.agenda-day.agenda-today.agenda-selected{border-color:#8bd5f4;box-shadow:inset 0 0 0 1px #8bd5f4}#calendar-jump-month,#calendar-jump-year{width:auto;min-width:100px}

.calendar-loading-status{position:fixed;top:100px;left:50%;transform:translateX(-50%);z-index:10000;display:flex;align-items:center;gap:12px;padding:14px 24px;border:1px solid #80cae5;border-radius:32px;background:#173340;color:#fff;box-shadow:0 8px 28px #0008}.calendar-spinner{width:20px;height:20px;border:3px solid #ffffff40;border-top-color:#80d7ff;border-radius:50%;animation:calendar-spin .8s linear infinite}.calendar-loading .calendar-management{opacity:.65;pointer-events:none}.calendar-loading{cursor:progress}#calendar-delete-dialog{width:min(500px,calc(100vw - 24px));padding:28px;background:#14212a;color:#f5f8fa;border:1px solid #75b9df;border-radius:16px}#calendar-delete-dialog::backdrop{background:#000b}@keyframes calendar-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.calendar-spinner{animation:none}}

#calendar-date-menu{min-width:230px;display:flex;flex-direction:column;gap:4px}#calendar-date-menu button{display:block;width:100%;text-align:left;border-radius:6px}#calendar-date-menu button:hover,#calendar-date-menu button:focus-visible{background:#ffffff15;outline:2px solid #8fd4ed}#calendar-date-menu [data-menu-delete-appointment]{color:#ffc5be}.calendar-header-actions{display:flex;align-items:center;gap:12px}.calendar-settings-gear{width:46px;height:46px;display:grid;place-items:center;border:1px solid #50758b;border-radius:50%;background:linear-gradient(145deg,#284252,#11212c);color:#a9dff5;cursor:pointer;box-shadow:0 3px 12px #0005}.calendar-settings-gear svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.5;transition:transform .25s ease}.calendar-settings-gear:hover svg{transform:rotate(35deg)}.calendar-settings-gear:hover{border-color:#a9dff5;background:#29495c}.calendar-settings-gear:focus-visible{outline:3px solid #8fd4ed;outline-offset:3px}#calendar-settings-dialog{width:min(520px,calc(100vw - 24px));max-height:90vh;overflow:auto;padding:28px;border:1px solid #75b9df;border-radius:16px;background:#14212a;color:#f5f8fa}#calendar-settings-dialog::backdrop{background:#000b}.calendar-settings-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}#calendar-settings-dialog label{display:block;margin:18px 0}#calendar-settings-dialog input:not([type=color]){width:100%}.agenda-day a,.agenda-hour a,.agenda-all-day a{transition:transform .16s ease,background .16s ease,box-shadow .16s ease}.agenda-day a:hover,.agenda-hour a:hover,.agenda-all-day a:hover{transform:translateY(-2px);background:#304b5e;box-shadow:0 4px 12px #0005}.agenda-hour{display:grid;grid-template-columns:90px 1fr;min-height:66px;border-top:1px solid #39505f;padding:10px;gap:16px;cursor:pointer}.agenda-hour:hover,.agenda-hour:focus-visible{background:#233c4b;outline:1px solid #78bde7}.agenda-hour>time{color:#b3c7d5}.agenda-hour a,.agenda-all-day a{display:block;padding:10px;border-left:3px solid var(--agenda-accent,#82c9e7);border-radius:6px;background:#20313d;color:#fff;text-decoration:none;margin:3px 0}.agenda-hour-events{min-width:0}.agenda-all-day{padding:14px;border:1px solid #527489;border-radius:8px;margin-bottom:16px}.agenda-day-schedule h3{margin:20px 0 10px}@media(prefers-reduced-motion:reduce){.agenda-day a,.agenda-hour a,.agenda-all-day a,.calendar-settings-gear svg{transition:none}.agenda-day a:hover,.agenda-hour a:hover,.agenda-all-day a:hover,.calendar-settings-gear:hover svg{transform:none}}

#calendar-enable-dialog{width:min(560px,calc(100vw - 28px));box-sizing:border-box;max-height:90vh;overflow:auto;background:#14212a;color:#f5f8fa;border:1px solid #75b9df;border-radius:18px;padding:28px;box-shadow:0 24px 100px #000b}#calendar-enable-dialog::backdrop{background:rgba(3,10,15,.88);backdrop-filter:blur(3px)}.agenda-day a strong{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}.agenda-hour-past{background:#141b20;color:#7d8a91}.agenda-hour-past>time{color:#7d8a91}.agenda-hour-past .agenda-hour-events{opacity:.75}.agenda-hour-past:hover{background:#202d36}.calendar-day-navigation{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:18px 0}.calendar-day-navigation label{margin:0}.calendar-settings-test{margin-top:24px;padding-top:20px;border-top:1px solid #456170}.calendar-settings-test pre{white-space:pre-wrap;overflow-wrap:anywhere}.agenda-empty-day{display:none}.agenda-filtered .agenda-empty-day{display:block}.agenda-filtered .agenda-mobile-weekday{display:inline}.agenda-filtered .agenda-desktop-number{display:none}@media(max-width:700px){.calendar-mobile-agenda .calendar-actions>label:has(#calendar-jump-month),.calendar-mobile-agenda .calendar-actions>label:has(#calendar-jump-year),.calendar-mobile-agenda .calendar-actions>a[href*="month="],.calendar-mobile-agenda .calendar-actions>a:not([target])[href^="?edit="]{display:none}.calendar-mobile-agenda .agenda-filtered .agenda-day:not([hidden]){display:block}.agenda-desktop-number{display:none}.agenda-outside:not([hidden]){opacity:1}.agenda-hour{grid-template-columns:65px minmax(0,1fr);gap:8px}.calendar-day-navigation input{min-width:0;max-width:180px}.calendar-header-actions{width:100%;justify-content:flex-end}.calendar-settings-heading{align-items:flex-start}#calendar-settings-dialog,#calendar-enable-dialog{padding:20px}.calendar-actions>label:has(#calendar-view){flex:1}.calendar-actions select{max-width:100%}}

.agenda-day .agenda-empty-day{display:none}.agenda-filtered .agenda-day .agenda-empty-day{display:block}

@media(max-width:760px){#calendar-wizard [data-month-only]{display:none!important}.calendar-mobile-agenda .agenda-grid{grid-template-columns:1fr}.calendar-mobile-agenda .agenda-weekday{display:none}.calendar-mobile-agenda .agenda-day:not([hidden]){display:block}.calendar-mobile-agenda .agenda-mobile-weekday{display:inline}.calendar-mobile-agenda .agenda-desktop-number{display:none}.calendar-mobile-agenda .agenda-day{min-height:60px}.calendar-mobile-agenda .agenda-outside{opacity:1}.calendar-mobile-agenda .calendar-actions>label:has(#calendar-view){flex:1}.calendar-mobile-agenda .calendar-actions{gap:10px}.calendar-mobile-agenda .agenda-day a{font-size:1rem}}

#calendar-wizard[data-editing=true] .calendar-stepper{grid-template-columns:repeat(3,minmax(0,1fr))}.calendar-edit-identity{margin:20px 0;padding:18px}@media(max-width:760px){#calendar-wizard[data-editing=true] .calendar-stepper{grid-template-columns:1fr}#calendar-wizard[data-editing=true] .calendar-stepper button:last-child{grid-column:auto}}

#calendar-logs-dialog{width:min(850px,calc(100vw - 24px));box-sizing:border-box;max-height:90vh;overflow:auto;border:1px solid #75b9df;border-radius:18px;padding:24px;background:#14212a;color:#f5f8fa}#calendar-logs-dialog::backdrop{background:#000c;backdrop-filter:blur(2px)}.calendar-log-filters,.calendar-log-pagination{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:space-between}.calendar-log-filters label{display:flex;flex-direction:column;gap:6px;margin:8px 0}.calendar-log-entry{position:relative;padding:16px;margin:10px 0;border:1px solid #3c5362;border-radius:10px;background:#0c1b24;overflow-wrap:anywhere}.calendar-log-entry h3{font-size:1rem;margin:0 0 10px}.calendar-log-entry p{margin:8px 0;line-height:1.5}.calendar-log-status{display:inline-block;border:1px solid #5e8297;border-radius:20px;padding:4px 10px;font-size:.8rem}.calendar-log-pagination{position:sticky;bottom:-24px;padding:14px 0;background:#14212a}@media(max-width:760px){#calendar-logs-dialog{padding:16px}.calendar-log-filters label{flex:1;min-width:120px}.calendar-log-filters input,.calendar-log-filters select{width:100%;box-sizing:border-box;min-width:0}.calendar-header-actions{flex-wrap:wrap}.calendar-log-pagination{bottom:-16px}}

.calendar-fallback-field{position:relative;min-width:0}.calendar-fallback-field>label{padding-right:0}.calendar-field-help{position:absolute;right:0;top:12px;display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;border:1px solid #87bfd3;border-radius:50%;background:#203b4b;color:#d8f2ff;font-weight:700;cursor:help}.calendar-field-help:hover,.calendar-field-help:focus-visible{background:#31576b;outline:2px solid #9ad8ee;outline-offset:2px}.calendar-field-help-popup{box-sizing:border-box;width:min(520px,calc(100vw - 32px));max-height:calc(100dvh - 48px);overflow:auto;padding:24px;border:1px solid #87bfd3;border-radius:16px;background:#14212a;color:#eef5f8;box-shadow:0 20px 70px #0009}.calendar-field-help-popup::backdrop{background:#0009}.calendar-field-help-popup h3{margin-top:0}.calendar-field-help-popup p{line-height:1.6}

/* Keep custom-field captions, help and Required aligned with their inputs. */
.calendar-fallback-field{margin:16px 0}.calendar-field-caption{display:flex;align-items:center;gap:8px;min-height:28px}.calendar-field-caption>label{margin:0!important}.calendar-field-caption .calendar-field-help{position:static;flex:0 0 24px;width:24px;height:24px;font-size:14px;line-height:1;cursor:pointer}.calendar-field .calendar-required-field{display:flex!important;align-items:center;justify-content:flex-start;gap:8px;align-self:end;box-sizing:border-box;min-height:52px;margin:0 0 16px!important;padding:0 12px;border:1px solid #304652;border-radius:10px;background:#0b171e;white-space:nowrap}.calendar-required-field input{flex:0 0 auto}.calendar-field>button{align-self:end;min-height:52px;margin-bottom:16px}
.calendar-field>label:not(.calendar-required-field){line-height:28px}
.calendar-field input:not([type=checkbox]):not([type=hidden]){min-height:52px}

.calendar-recipient-row{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-top:16px;padding:16px;border:1px solid #304652;border-radius:12px;background:#0b171e}.calendar-recipient-details{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1 1 240px;overflow-wrap:anywhere}.calendar-recipient-details>span+span{color:#adbfca}.calendar-recipient-status{display:inline-flex;align-items:center;border:1px solid #557584;border-radius:999px;padding:5px 10px;font-size:.85em;letter-spacing:.03em}.calendar-recipient-row>button{flex:0 0 auto;margin:0}@media(max-width:520px){.calendar-recipient-details{flex-basis:100%}.calendar-recipient-row>button{margin-left:auto}}

.calendar-appointment-template{padding:20px;border:1px solid #3b6478;border-radius:12px;background:#0b171e;margin:20px 0}.calendar-appointment-template h3{margin-top:0}.calendar-appointment-template textarea{font-family:ui-monospace,Consolas,monospace;line-height:1.6;width:100%;box-sizing:border-box;min-height:200px;resize:vertical}.calendar-appointment-template li,.calendar-provider-walkthrough li{margin-bottom:12px;line-height:1.6}.calendar-provider-walkthrough{margin:16px 0}.calendar-provider-walkthrough summary{font-weight:700}
#calendar-setup-area[inert]{opacity:.5;filter:grayscale(1)}
#calendar-panel{scroll-margin-top:110px}
.calendar-external-preview{margin-top:.75rem}
.calendar-external-preview-heading,.calendar-external-preview-meta{display:flex;align-items:center;gap:.75rem}
.calendar-external-preview-heading{justify-content:space-between}
.calendar-external-preview-meta{flex-wrap:wrap}
.calendar-external-preview-heading .calendar-settings-gear{flex:0 0 46px}
.calendar-external-preview-badge{padding:.2rem .65rem;border:1px solid #496373;border-radius:999px;color:#bdd4e2;font-size:.85rem;font-weight:600}
.calendar-external-preview-actions{flex-wrap:wrap;gap:.65rem;margin-bottom:1rem}
#calendar-copies-panel{scroll-margin-top:110px}
.calendar-external-preview .calendar-agenda > article {
    min-width: 0;
    overflow-wrap: anywhere;
}
.calendar-external-preview .calendar-agenda .calendar-external-location {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

#calendar-connected-accounts {
    width: min(640px, calc(100vw - 24px));
    max-height: 85vh;
    overflow: auto;
    background: #14212a;
    color: #f5f8fa;
    border: 1px solid #527489;
    border-radius: 16px;
    padding: 24px;
}
#calendar-connected-accounts::backdrop { background: #000b; }
.calendar-connected-account {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 14px 0;
    border-top: 1px solid #527489;
}
.calendar-connected-account span, .calendar-connected-account small { display: block; }
.connected-account-error { flex-basis: 100%; margin: 0; }
