.schedule-picker { margin: 12px 0; padding: 12px; border: 1px solid #dce2ec; border-radius: 12px; background: #f8faff; grid-column: 1 / -1; width: 100%; min-width: 0; }
.schedule-picker header, .calendar-record-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 8px; }
.schedule-picker header strong { margin-right: auto; }
.schedule-picker input[type=date] { width: auto; min-height: 36px; }
.schedule-picker small { color: #516176; }
.participant-picker { border: 0; min-width: 0; margin: 0; padding: 0; }
.participant-picker legend { padding: 0; margin-bottom: 7px; font-size: 13px; }
.participant-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.participant-chip { display: inline-flex; max-width: 100%; align-items: center; gap: 6px; padding: 4px 8px; border: 1px solid #dce2ec; border-radius: 8px; background: #f4f2ff; font-size: 13px; }
.participant-chip > span { overflow-wrap: anywhere; min-width: 0; }
form .participant-picker button { width: auto; min-height: 32px; padding: 5px 9px; border: 1px solid #dce2ec; border-radius: 7px; background: #fff; color: #4838e5; font-size: 13px; cursor: pointer; }
form .participant-picker .participant-chip button { flex: 0 0 auto; min-width: 28px; min-height: 28px; padding: 2px; border: 0; background: transparent; font-size: 20px; }
.participant-picker [data-participant-choice] { width: 100%; margin-top: 7px; }
.participant-picker [hidden] { display: none !important; }
.participant-picker-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.visit-create-form > button[type="submit"] { align-self: end; height: 42px; min-height: 42px; }
.schedule-picker ol { list-style: none; margin: 8px 0 0; padding: 0; max-height: 260px; overflow-y: auto; }
.schedule-picker li { padding: 8px; border-bottom: 1px solid #dce2ec; }
.schedule-picker li a { display: grid; grid-template-columns: 110px minmax(0,1fr); gap: 4px 10px; color: #24324a; text-decoration: none; }
.schedule-picker li small { grid-column: 2; overflow-wrap: anywhere; }
.schedule-picker .schedule-conflict { background: #fff1f0; border-left: 3px solid #b42318; }
.schedule-feedback { font-size: 14px; margin: 8px 0 0; }
.schedule-feedback.is-error { color: #9d2219; }
.calendar-record-actions a, .calendar-edit-link { display: inline-block; padding: 10px 14px; background: #4f46e5; color: white; border-radius: 8px; }
.calendar-record-actions button { border: 1px solid #e4c7c4; background: #fff8f7; color: #91231a; padding: 10px 14px; border-radius: 8px; }
.calendar-all-day { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.calendar-all-day a { display: grid; gap: 4px; padding: 10px; }
.detail-inline-form label { display: grid; gap: 4px; font-size: 13px; }
@media (max-width: 600px) {
    .schedule-picker li a { grid-template-columns: 90px minmax(0,1fr); }
    .schedule-picker header small { width: 100%; }
    .calendar-record-actions { align-items: stretch; }
}
.schedule-time-fields { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 10px; grid-column: 1 / -1; min-width: 0; }
.schedule-time-fields label { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.schedule-time-fields input, .schedule-time-fields select { width: 100%; min-width: 0; box-sizing: border-box; }
.event-notes { grid-column: 1 / -1; }
.field-optional { color: #64748b; font-size: 12px; font-weight: 400; }
.event-guests > header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.event-guests button { border: 1px solid #dce2ec; border-radius: 8px; background: #fff; color: #4838e5; padding: 8px 10px; cursor: pointer; }
.event-guest-row { display: grid; grid-template-columns: 1fr 1.3fr 36px; align-items: end; gap: 10px; margin-top: 10px; }
.event-guest-row label { display: grid; gap: 6px; min-width: 0; }
.event-guest-row input { width: 100%; min-width: 0; }
.event-guest-row button svg { width: 18px; height: 18px; }
.event-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; }
.event-details dt { font-size: 12px; color: #64748b; margin-bottom: 4px; }
.event-details dd { margin: 0; overflow-wrap: anywhere; }
.event-note-text { white-space: pre-wrap; }
[data-event-form] [hidden], .schedule-time-fields ~ label[hidden] { display: none !important; }
@media (max-width: 560px) {
    .schedule-time-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .schedule-time-fields > label:first-child { grid-column: 1 / -1; }
    .event-guest-row { grid-template-columns: minmax(0, 1fr) 36px; }
    .event-guest-row label { grid-column: 1; }
    .event-guest-row button { grid-column: 2; grid-row: 1 / 3; align-self: center; }
    .event-details { grid-template-columns: 1fr; }
}
