/* Inline editors reuse the existing authenticated forms and header. */
.appointment-actions-dialog{max-height:90dvh;overflow-y:auto;overscroll-behavior:contain}
.appointment-actions-dialog [hidden]{display:none!important}
[data-sheet-menu]{display:grid;gap:10px}
[data-sheet-menu]>.button{width:100%;justify-content:center}
[data-sheet-content]>h3{font-size:1.08rem;margin:6px 0 12px}
[data-sheet-content] .sheet-back{padding:5px 0;min-height:44px}
[data-sheet-content] .form-stack{margin:0;max-width:none;padding:0;border:0;box-shadow:none;gap:8px}
[data-sheet-content] .person-heading,[data-sheet-content] .other-actions,[data-sheet-content] .form-section-title,[data-sheet-content] .form-child-name,[data-sheet-content] .form-review{display:none}
[data-sheet-content] .planned-person{padding:8px 10px;margin:0 0 6px}
[data-sheet-content] .attendance-choices{margin:0;padding:0;gap:6px}
[data-sheet-content] .person-choice,[data-sheet-content] .arrival-choice{min-height:44px;padding:7px 10px}
[data-sheet-content] .avatar{width:30px;height:30px;font-size:.85rem}
[data-sheet-content] .realizer-summary{margin:4px 0;padding:8px 10px}
[data-sheet-content] input:not([type=radio]):not([type=checkbox]),[data-sheet-content] select{min-height:42px}
[data-sheet-content] .button{min-height:44px}
[data-sheet-content] .form-grid{gap:10px}
[data-sheet-status]:empty{display:none}
.assignment-trigger{text-decoration:underline;text-underline-offset:3px;min-height:32px;display:inline-flex;align-items:center}
.today-page .add-appointment,.add-appointment{width:auto;min-width:112px;min-height:46px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:10px 13px;font-size:.9rem;flex-shrink:0}
.add-appointment svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
@media(max-width:600px){.appointment-actions-dialog{padding:18px 16px max(18px,env(safe-area-inset-bottom));max-height:92dvh}.appointment-actions-dialog>p{margin:5px 0 12px}.appointment-actions-dialog h2{font-size:1.2rem}.today-page .page-heading{gap:8px}.today-page .add-appointment{min-width:105px;padding:9px 10px}}
.sheet-discard{position:sticky;top:0;z-index:3;background:#fff4df;display:flex;flex-wrap:wrap;gap:8px}.sheet-discard p{width:100%;margin:0}.sheet-discard .button{font-size:.85rem}

.schedule-compact-card .card-clock .card-status{display:table;max-width:100%;margin-top:4px;font-size:.65rem;white-space:normal;overflow-wrap:anywhere;text-align:left;line-height:1.3}

.schedule-compact-card .card-clock .card-status{display:inline-flex;align-items:center;gap:3px}.card-status .late-indicator{flex:0 0 12px;width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}

.schedule-compact-card .card-clock .card-status{padding:3px 4px}
.card-status>span{white-space:normal;overflow-wrap:normal}.card-status:has(.late-indicator)>span{white-space:nowrap}
.appointment-actions-dialog[data-inline-mode="attendance"] [data-sheet-content]>.sheet-back,.appointment-actions-dialog[data-inline-mode="attendance"] [data-sheet-content]>h3{display:none}
.appointment-actions-dialog[data-inline-mode="attendance"] [data-sheet-content] .form-stack{gap:6px}
.appointment-actions-dialog[data-inline-mode="attendance"] .person-choice,.appointment-actions-dialog[data-inline-mode="attendance"] .arrival-choice{padding:5px 9px;min-height:44px}

/* Pending evidence after scheduled end; not an absence or cancellation. */
.badge.needs-attendance,.timeline-event-state.needs-attendance{background:#fee2e2;color:#991b1b;border:1px solid #fca5a5}

/* Calendar/clock tile requested by the user; booking destination is unchanged. */
.button.add-appointment,.today-page .button.add-appointment{width:80px;height:80px;min-width:80px;min-height:80px;flex-direction:column;gap:5px;padding:8px!important;border:1px solid var(--brand-wine);border-radius:8px;background:linear-gradient(135deg,#ffffff0d 0 44%,transparent 44%),linear-gradient(180deg,var(--brand-berry),var(--brand-wine));color:#fff;font-size:14px!important;line-height:1.15;box-shadow:0 3px 5px #65152d2b;text-decoration:none}
.button.add-appointment svg{width:32px;height:32px;stroke-width:1.8;stroke-linejoin:round;flex-shrink:0}
.button.add-appointment span{font-weight:750;white-space:nowrap}
.button.add-appointment:hover{filter:brightness(1.04);color:#fff}
.button.add-appointment:focus-visible{outline:3px solid var(--brand-wine);outline-offset:3px}
@media(max-width:600px){.button.add-appointment,.today-page .button.add-appointment{width:72px;height:72px;min-width:72px;min-height:72px;padding:7px!important;gap:4px}.button.add-appointment svg{width:29px;height:29px}}
/* Mobile create uses the same authenticated inline form, with actions in its scrollport. */
.booking-create-dialog{width:calc(100% - 20px);max-width:560px;max-height:92dvh;padding:16px 14px 0}.booking-create-dialog [data-sheet-content]{padding-bottom:0}.booking-create-dialog [data-sheet-content]>.sheet-back{display:none}.booking-create-dialog .booking-create-form{padding-bottom:0;scroll-padding-bottom:85px}.booking-create-dialog .booking-create-actions{position:sticky;bottom:0;left:auto;right:auto;margin-top:12px;padding:10px 0 calc(10px + env(safe-area-inset-bottom));background:var(--surface,#fff);z-index:3}.booking-create-dialog .booking-create-actions>.button{min-height:46px}.booking-create-dialog .dialog-close{position:sticky;top:0;float:right;z-index:4}.booking-create-dialog .time-picker-region{max-width:100%}
/* Discard is a replacement state in the same dialog, never an overlay on editable data. */
.appointment-actions-dialog[data-discard-active]>:not([data-discard-prompt]){display:none!important}
.appointment-actions-dialog .sheet-discard{position:static;width:100%;max-width:none;box-sizing:border-box;display:grid;gap:12px;margin:0;padding:16px 0 calc(16px + env(safe-area-inset-bottom));background:transparent;border:0;box-shadow:none}
.appointment-actions-dialog .sheet-discard h3{font-size:1.2rem;line-height:1.3;margin:0;color:var(--ink,#23352f)}
.appointment-actions-dialog .sheet-discard p{margin:0 0 6px;line-height:1.45;color:var(--muted,#52615b)}
.appointment-actions-dialog .sheet-discard>.button{width:100%;min-width:0;min-height:48px;white-space:normal;justify-content:center;margin:0}
.appointment-actions-dialog .sheet-discard>.discard-destructive{background:#fff;color:#a32535;border:1px solid #b84350;box-shadow:none}
@media(max-width:900px){.booking-create-dialog{width:100vw;max-width:100vw;margin-left:0;margin-right:0;border-left:0;border-right:0;box-sizing:border-box;padding-left:max(14px,env(safe-area-inset-left));padding-right:max(14px,env(safe-area-inset-right))}.booking-create-dialog[data-discard-active]{padding-bottom:0}}
