[data-day-timeline] [data-action="job"] {
  touch-action: manipulation;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.calendar-quick-dialog {
  width: min(420px, calc(100% - 28px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  overflow: auto;
  padding: 20px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 54px #3823343d;
}

.calendar-quick-dialog::backdrop {
  background: #36263470;
}

.calendar-quick-head {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.calendar-quick-head h2 {
  margin: 0;
  font-size: 22px;
  overflow-wrap: anywhere;
}

.calendar-quick-options,
.calendar-quick-form {
  display: grid;
  gap: 10px;
}

.calendar-quick-option {
  display: grid;
  gap: 3px;
  min-height: 58px;
  padding: 10px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.calendar-quick-option small {
  font-size: 13px;
}

.calendar-quick-option:hover:not(:disabled) {
  border-color: var(--purple);
}

.calendar-quick-option:disabled {
  cursor: default;
}

.calendar-quick-option:disabled strong {
  color: var(--muted);
}

.calendar-quick-option:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
}

.calendar-quick-times {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.calendar-quick-form label {
  font-size: 13px;
  font-weight: 600;
}

.calendar-quick-form :is(input:not([type="hidden"]), select) {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: 6px;
  font-size: 16px;
}

.calendar-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 6px;
}

.calendar-quick-actions .calendar-quick-save {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 112px;
}

.calendar-quick-save svg {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.calendar-quick-save:not([data-save-state]) svg,
.calendar-quick-save:not([data-save-state="saving"]) .calendar-quick-spinner,
.calendar-quick-save:not([data-save-state="saved"]) .calendar-quick-check {
  display: none;
}

.calendar-quick-actions .calendar-quick-save[data-save-state="saving"] {
  cursor: progress;
}

.calendar-quick-actions .calendar-quick-save[data-save-state="saved"] {
  background: #35604a;
  border-color: #35604a;
}

.calendar-quick-announcement {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (prefers-reduced-motion: no-preference) {
  .calendar-quick-save:active:not(:disabled) {
    transform: scale(.97);
  }

  .calendar-quick-save[data-save-state="saving"] svg {
    animation: calendar-quick-spin .75s linear infinite;
  }

  .calendar-quick-save[data-save-state="saved"] svg {
    animation: calendar-quick-check-in .18s ease-out both;
  }
}

@media (prefers-reduced-motion: reduce) {
  .calendar-quick-actions .calendar-quick-save {
    transition: none;
  }
}

@keyframes calendar-quick-spin {
  to { transform: rotate(360deg); }
}

@keyframes calendar-quick-check-in {
  from { opacity: 0; transform: scale(.65); }
}

@media (max-width: 480px) {
  .calendar-quick-actions .btn {
    flex: 1 1 100px;
  }
}
