/* A real schedule, presented in the same calm ink / blue workspace. */
.schedule-calendar { min-width:0; margin:0 0 28px; padding:22px; border:1px solid var(--line); border-radius:12px; background:var(--surface); box-shadow:var(--shadow); color:var(--ink); font:15px/1.5 Inter,'Segoe UI',Arial,sans-serif;
 --fc-monarch-background:var(--surface); --fc-monarch-foreground:var(--ink); --fc-monarch-border:var(--line); --fc-monarch-strong-border:var(--control-border); --fc-monarch-border-style:solid;
 --fc-monarch-primary:var(--blue); --fc-monarch-primary-foreground:var(--blue-ink); --fc-monarch-primary-over:var(--blue); --fc-monarch-primary-down:var(--blue);
 --fc-monarch-secondary:var(--accent-soft); --fc-monarch-secondary-foreground:var(--blue); --fc-monarch-secondary-over:var(--soft); --fc-monarch-secondary-down:var(--accent-soft);
 --fc-monarch-tertiary:var(--blue); --fc-monarch-tertiary-foreground:var(--blue-ink); --fc-monarch-tertiary-over:var(--blue); --fc-monarch-tertiary-down:var(--blue);
 --fc-monarch-selected:var(--blue); --fc-monarch-selected-foreground:var(--blue-ink); --fc-monarch-selected-over:var(--blue); --fc-monarch-selected-down:var(--blue);
 --fc-monarch-event:var(--blue); --fc-monarch-event-contrast:var(--blue-ink); --fc-monarch-highlight:var(--accent-soft); --fc-monarch-now:var(--blue); --fc-monarch-outline:var(--blue); --fc-monarch-ring-color:var(--blue);
 --fc-monarch-popover:var(--surface); --fc-monarch-popover-foreground:var(--ink); --fc-monarch-faint:var(--paper); --fc-monarch-muted:var(--soft); --fc-monarch-strong:var(--line); --fc-monarch-stronger:var(--control-border); --fc-monarch-strongest:var(--muted);
 --fc-monarch-faint-foreground:var(--muted); --fc-monarch-muted-foreground:var(--muted); --fc-monarch-strong-foreground:var(--ink);
}
.schedule-calendar [hidden] { display:none!important; }
.schedule-toolbar { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:18px; }
.owner-main .schedule-title,.schedule-title { font:650 23px/1.3 Inter,'Segoe UI',Arial,sans-serif; letter-spacing:-.035em; margin:0; }
.schedule-zone { color:var(--muted); font-size:13px; line-height:1.5; margin:5px 0 0; }
.schedule-navigation { display:flex; align-items:center; gap:7px; flex-wrap:wrap; }
.schedule-button,.schedule-icon-button,.schedule-view-button { display:inline-flex; align-items:center; justify-content:center; min-width:44px; min-height:44px; border:1px solid var(--line); border-radius:8px; background:var(--surface); color:var(--ink); font:600 14px/1.4 Inter,'Segoe UI',Arial,sans-serif; cursor:pointer; padding:10px 13px; }
.schedule-icon-button { width:44px; padding:5px; font-size:26px; font-weight:400; }
.schedule-button:hover,.schedule-icon-button:hover,.schedule-view-button:hover { color:var(--blue); background:var(--accent-soft); }
.schedule-calendar :is(button,a,input,select,summary,[tabindex]):focus-visible { outline:3px solid var(--blue); outline-offset:3px; }
.schedule-controls { display:flex; align-items:end; justify-content:space-between; flex-wrap:wrap; gap:14px; margin-bottom:13px; }
.schedule-view-picker { display:flex; gap:4px; padding:4px; background:var(--paper); border:1px solid var(--line); border-radius:10px; }
.schedule-view-button { padding:9px 14px; background:transparent; border-color:transparent; }
.schedule-view-button[aria-pressed=true] { color:var(--blue); border-color:var(--line); background:var(--surface); box-shadow:0 1px 3px #14233b0a; }
.schedule-filter { display:grid; gap:6px; color:var(--muted); font-size:12px; font-weight:600; min-width:170px; }
.schedule-filter select,.schedule-add-form input { min-height:44px; min-width:0; width:100%; border:1px solid var(--control-border); border-radius:8px; color:var(--ink); background:var(--surface); font:16px/1.5 Inter,'Segoe UI',Arial,sans-serif; padding:9px 11px; }
.schedule-feedback { font-size:13px; color:var(--muted); min-height:20px; margin:0 0 12px; }
.schedule-error { font-size:15px; color:var(--danger); background:var(--danger-bg); border:1px solid var(--danger); border-radius:8px; margin-bottom:16px; padding:12px 14px; line-height:1.6; overflow-wrap:anywhere; }
.schedule-canvas { min-width:0; border:1px solid var(--line); border-radius:9px; overflow:hidden; }
.schedule-canvas[aria-busy=true] { opacity:.65; }
.schedule-day-header { color:var(--muted); background:var(--paper); font-size:12px; font-weight:600; }
.schedule-day-header-inner { min-height:44px; padding:10px 7px; display:flex; align-items:center; justify-content:center; }
.schedule-day-number { display:inline-flex; align-items:center; justify-content:center; min-width:32px; min-height:32px; font-size:14px; font-weight:600; }
.schedule-day-cell.is-today .schedule-day-number { background:var(--blue); color:var(--blue-ink); border-radius:8px; }
.schedule-day-cell.is-other { color:var(--muted); background:var(--paper); }
.schedule-slot-header { font-size:12px; color:var(--muted); font-variant-numeric:tabular-nums; }
.schedule-slot-lane { border-color:var(--line); }
.schedule-day-lane { background:var(--surface); }
.schedule-event { min-height:44px; border:1px solid var(--line); border-left:3px solid var(--blue); border-radius:6px; background:var(--accent-soft); color:var(--ink); cursor:pointer; text-decoration:none; overflow:hidden; }
.schedule-event:hover { outline:1px solid var(--blue); outline-offset:0; }
.schedule-event-inner { padding:6px 8px; min-width:0; color:inherit; }
.schedule-event-content { display:flex; flex-direction:column; min-width:0; gap:2px; overflow:hidden; color:inherit; }
.schedule-event-time { font-size:11px; line-height:1.35; font-weight:600; font-variant-numeric:tabular-nums; }
.schedule-event-title { font-size:13px; font-weight:650; line-height:1.35; overflow-wrap:anywhere; }
.schedule-event-customer { font-size:12px; line-height:1.4; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.schedule-event-location { font-size:11px; line-height:1.4; color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.schedule-event-state { font-size:11px; line-height:1.4; color:var(--muted); }
.schedule-event.schedule-status-estimate { border-left-color:var(--muted); background:var(--paper); }
.schedule-event.schedule-status-in_progress { border-left-width:5px; }
.schedule-event.schedule-status-completed { border-left-color:var(--success); background:var(--success-bg); }
.schedule-event.schedule-status-cancelled { border-left-color:var(--muted); border-style:dashed; background:var(--paper); color:var(--muted); }
.schedule-event.schedule-status-cancelled .schedule-event-title { text-decoration:line-through; }
.schedule-buffer { color:var(--muted); background:var(--soft); border:1px dashed var(--control-border); opacity:.8; }
.schedule-buffer-label { display:block; font-size:10px; line-height:1.4; padding:2px 5px; }
.schedule-legend { display:flex; flex-wrap:wrap; gap:9px 15px; padding:15px 0; color:var(--muted); font-size:12px; }
.schedule-legend-item { display:inline-flex; gap:6px; align-items:center; }
.schedule-legend-item::before { content:''; width:8px; height:8px; border:1px solid var(--control-border); border-radius:3px; background:var(--soft); }
.schedule-legend-item.schedule-status-scheduled::before,.schedule-legend-item.schedule-status-in_progress::before { background:var(--blue); border-color:var(--blue); }
.schedule-legend-item.schedule-status-in_progress::before { border-radius:50%; }
.schedule-legend-item.schedule-status-completed::before { background:var(--success); border-color:var(--success); }
.schedule-legend-item.schedule-status-cancelled::before { border-style:dashed; }
.schedule-buffer-key { display:inline-flex; align-items:center; gap:6px; }
.schedule-buffer-key::before { content:''; width:13px; height:10px; border:1px dashed var(--control-border); background:var(--soft); }
.schedule-add-time { border-top:1px solid var(--line); }
.schedule-add-time > summary { min-height:44px; padding:12px 0; font-size:14px; color:var(--blue); font-weight:600; cursor:pointer; }
.schedule-add-form { display:grid; grid-template-columns:minmax(140px,1fr) minmax(120px,1fr) auto; gap:12px; align-items:end; padding:8px 0 15px; }
.schedule-add-form > label { display:grid; min-width:0; gap:6px; font-size:13px; font-weight:600; }
.schedule-primary { background:var(--blue); color:var(--blue-ink); border-color:var(--blue); }
.schedule-primary:hover { color:var(--blue-ink); background:var(--blue); box-shadow:var(--shadow); }
.schedule-add-hint { grid-column:1/-1; font-size:14px; line-height:1.6; color:var(--muted); }
.schedule-help { font-size:14px; color:var(--muted); line-height:1.6; margin-top:10px; }
.schedule-list-day { background:var(--paper); color:var(--ink); }
.schedule-list-day-inner { display:flex; justify-content:space-between; gap:12px; padding:11px 14px; font-size:14px; font-weight:600; }
.schedule-agenda .schedule-event { border-width:0 0 1px; border-radius:0; background:var(--surface); padding:10px 14px; }
.schedule-agenda .schedule-event-inner { padding:0; }
.schedule-agenda .schedule-event-title { font-size:16px; }
.schedule-agenda .schedule-event-time,.schedule-agenda .schedule-event-customer,.schedule-agenda .schedule-event-state { font-size:13px; }
.schedule-agenda .schedule-event-location { font-size:14px; white-space:normal; }
.schedule-month .schedule-event-customer,.schedule-month .schedule-event-location { display:none; }
.schedule-month .schedule-event-inner { padding:5px 6px; }
@media(max-width:1000px) {
 .schedule-toolbar { align-items:start; flex-direction:column; gap:13px; }
 .schedule-navigation { width:100%; }
 .schedule-navigation > :last-child { margin-left:auto; }
 .schedule-add-form { grid-template-columns:1fr 1fr; }
 .schedule-add-form > button { grid-column:1/-1; justify-self:start; }
}
@media(max-width:600px) {
 .schedule-calendar { padding:16px; margin-bottom:22px; }
 .owner-main .schedule-title,.schedule-title { font-size:21px; }
 .schedule-controls { display:grid; grid-template-columns:minmax(0,1fr); gap:12px; }
 .schedule-view-picker { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); }
 .schedule-view-button { min-width:0; padding:9px 5px; font-size:13px; }
 .schedule-filter { min-width:0; }
 .schedule-error,.schedule-add-hint,.schedule-help { font-size:16px; line-height:1.6; }
 .schedule-canvas[data-view=week] { overflow-x:auto; }
 .schedule-week { min-width:670px; }
 .schedule-day-header { font-size:11px; }
 .schedule-day-header-inner { padding:10px 3px; }
 .schedule-legend { gap:8px 11px; }
 .schedule-month .schedule-event-time,.schedule-month .schedule-event-state { display:none; }
 .schedule-month .schedule-event-title { font-size:11px; }
 .schedule-month .schedule-event-inner { padding:3px; }
 .schedule-agenda .schedule-agenda-day { display:grid; grid-template-columns:58px minmax(0,1fr); align-items:start; }
 .schedule-agenda .schedule-list-day { display:flex; flex-direction:column; align-items:center; align-self:start; gap:5px; width:58px; min-width:0; padding:12px 4px; }
 .schedule-agenda .schedule-list-day-inner { min-width:0; max-width:100%; margin:0; padding:0; gap:0; text-align:center; }
 .schedule-agenda .schedule-list-date-0 { display:grid; place-items:center; width:32px; height:32px; font-size:16px; line-height:1.2; }
 .schedule-agenda .schedule-list-date-1 { display:block; font-size:11px; line-height:1.35; }
 .schedule-agenda .schedule-agenda-body { min-width:0; width:100%; }
 .schedule-agenda .schedule-event { min-width:0; padding:12px 10px; }
 .schedule-agenda .schedule-agenda-marker { display:none; }
 .schedule-agenda .schedule-agenda-event-inner,.schedule-agenda .schedule-event-content { width:100%; min-width:0; }
 .schedule-agenda .schedule-event-title { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; font-size:16px; line-height:1.4; }
 .schedule-agenda :is(.schedule-event-customer,.schedule-event-location,.schedule-event-state) { display:block; font-size:14px; line-height:1.5; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
 .schedule-agenda .schedule-event-time { font-size:13px; line-height:1.5; }
 .schedule-add-form { gap:12px 8px; }
 .schedule-add-form > button { width:100%; }
}
@media(prefers-reduced-motion:reduce) { .schedule-calendar * { transition:none!important; } }
