#overview-schedule { margin-bottom: 30px; }
.schedule-empty { width: 100%; min-height: 76px; padding: 14px 16px; display: flex; align-items: center; gap: 13px; text-align: left; border: 1px dashed #c9c6b9; border-radius: 22px; background: var(--surface); color: var(--ink); }
.schedule-empty:hover { border-color: var(--plum-light); background: var(--surface-soft); }
.schedule-empty-icon { width: 44px; height: 44px; display: grid; place-items: center; flex-shrink: 0; border-radius: 50%; background: var(--sage-soft); color: var(--green); }
.schedule-empty > span:nth-child(2) { display: flex; flex: 1; flex-direction: column; }
.schedule-empty strong { font-size: 12px; }
.schedule-empty small { color: var(--muted); font-size: 10px; }
.schedule-empty > svg { width: 18px; color: var(--plum); }
.calendar-layout { display: grid; gap: 19px; }
.calendar-card, .agenda-section { padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.calendar-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.calendar-header h2 { flex: 1; margin: 0; text-align: center; font-family: var(--serif); font-size: 23px; line-height: 1.2; letter-spacing: -.45px; font-weight: 400; }
.calendar-header .icon-button { width: 44px; height: 44px; }
.calendar-header .icon-button svg { width: 17px; height: 17px; }
.previous-month svg { transform: rotate(180deg); }
.calendar-subheader { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: -6px 0 9px; }
.calendar-subheader span { color: var(--muted); font-size: 10px; }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.calendar-weekdays { margin-bottom: 5px; }
.calendar-weekdays span { padding: 4px 0; color: var(--muted); text-align: center; font-size: 9px; font-weight: 650; letter-spacing: .03em; text-transform: uppercase; }
.calendar-day, .calendar-day-empty { aspect-ratio: 1; min-height: 44px; }
.calendar-day { position: relative; padding: 5px 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; border-radius: 14px; background: transparent; color: var(--ink); font-size: 12px; font-variant-numeric: tabular-nums; transition: background .15s ease, color .15s ease, box-shadow .15s ease; }
.calendar-day:hover { background: var(--rose-soft); }
.calendar-day.today { box-shadow: inset 0 0 0 1px var(--plum-light); color: var(--plum); font-weight: 700; }
.calendar-day.selected { background: var(--plum); color: #fff; box-shadow: none; }
.calendar-dots { height: 4px; display: flex; align-items: center; gap: 2px; }
.calendar-dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--plum-light); }
.calendar-day.selected .calendar-dots i { background: #fff; }
.agenda-section { padding: 20px; }
.agenda-section .section-heading { margin-bottom: 12px; }
.agenda-meta { color: var(--muted); font-size: 10px; }
.appointment-list { display: flex; flex-direction: column; gap: 10px; }
.appointment-card { min-width: 0; padding: 13px; display: flex; flex-wrap: wrap; align-items: center; gap: 11px; border: 1px solid var(--border); border-radius: 19px; background: var(--surface); }
.appointment-time { width: 67px; min-height: 54px; padding: 8px 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; border-radius: 14px; background: var(--rose-soft); color: var(--plum); text-align: center; font-variant-numeric: tabular-nums; }
.appointment-time strong { font-size: 11px; line-height: 1.25; white-space: nowrap; }
.appointment-time span { margin-top: 3px; color: var(--muted); font-size: 8px; }
.appointment-info { flex: 1; min-width: 0; }
.appointment-info > strong { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appointment-info > span { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appointment-info > small { display: block; margin-top: 6px; color: var(--muted); font-size: 9px; white-space: pre-wrap; overflow-wrap: anywhere; }
.appointment-actions { display: flex; flex-shrink: 0; }
.appointment-actions .mini-button { width: 44px; justify-content: center; }
.appointment-card.past { background: var(--surface-soft); }
.appointment-card.compact { background: var(--surface); }
.appointment-card.compact .appointment-actions { display: none; }
.appointment-date-time { grid-template-columns: 1.25fr 1fr; }
.quick-create-dialog { width: calc(100% - 36px); max-width: 420px; padding: 27px; border: 1px solid var(--border); border-radius: 28px; background: var(--surface); color: var(--ink); text-align: center; box-shadow: var(--shadow); }
.quick-create-dialog::backdrop { background: rgba(31, 33, 28, .48); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.quick-create-dialog h2 { margin: 0 0 7px; font-family: var(--serif); font-size: 27px; line-height: 1.2; letter-spacing: -.55px; font-weight: 400; }
.quick-create-dialog > p { margin: 0 0 21px; color: var(--muted); font-size: 11px; }
.quick-create-dialog .dialog-close { top: 9px; right: 9px; }
.quick-create-options { display: grid; gap: 10px; }
.quick-choice { min-height: 80px; padding: 14px; display: flex; align-items: center; gap: 12px; border: 1px solid var(--border); border-radius: 19px; background: var(--surface-soft); color: var(--ink); text-align: left; transition: border-color .15s ease, background .15s ease; }
.quick-choice:hover { border-color: var(--plum-light); background: var(--rose-soft); }
.quick-choice > span:first-child { width: 44px; height: 44px; display: grid; place-items: center; flex-shrink: 0; border-radius: 50%; background: var(--rose-soft); color: var(--plum); }
.quick-choice > span:nth-child(2) { display: flex; flex: 1; flex-direction: column; }
.quick-choice strong { font-size: 13px; }
.quick-choice small { color: var(--muted); font-size: 10px; }
.quick-choice > svg { width: 17px; color: var(--plum-light); }

.appointment-status { min-height: 28px; padding: 5px 10px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-soft); color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .06em; line-height: 1.2; text-transform: uppercase; }
.appointment-info > .appointment-status { display: inline-flex; width: max-content; margin: 0 0 6px; font-size: 9px; white-space: nowrap; }
select.appointment-status { min-height: 44px; }
.appointment-status.completed, .appointment-status .completed, .appointment-card.completed .appointment-status { border-color: #ccd6c5; background: var(--sage-soft); color: var(--green); }
.appointment-status.cancelled, .appointment-status .cancelled, .appointment-card.cancelled .appointment-status { border-color: #e2cec6; background: #f5eae6; color: var(--danger); }
.appointment-card.cancelled .appointment-info > strong { text-decoration: line-through; text-decoration-color: #a79a91; }
.appointment-status-actions { flex: 1 0 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 11px; border-top: 1px solid var(--border); }
.appointment-status-actions .button { min-height: 44px; padding: 9px 16px; font-size: 11px; }
.tip-section { min-width: 0; margin: 2px 0 17px; padding: 0; border: 0; }
.tip-section legend { display: block; margin: 0 0 7px 2px; padding: 0; color: #4d5047; font-size: 12px; font-weight: 650; }
.tip-choice { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 2px 0 16px; }
.tip-choice button, .tip-choice label, button.tip-choice, label.tip-choice { min-height: 44px; padding: 9px 15px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-soft); color: var(--plum); font-size: 12px; font-weight: 600; cursor: pointer; }
.tip-choice button:hover, .tip-choice label:hover, button.tip-choice:hover, label.tip-choice:hover { background: var(--rose-soft); border-color: var(--plum-light); }
.tip-choice input { width: 20px; height: 20px; margin: 0; accent-color: var(--plum); }
.tip-choice input:checked + label { border-color: var(--plum); background: var(--plum); color: #fff; }
.tip-choice input:focus-visible + label { outline: 3px solid rgba(52, 56, 47, .3); outline-offset: 2px; }
.tip-choice.active, .tip-choice[aria-pressed="true"], .tip-choice button.active, .tip-choice button[aria-pressed="true"] { border-color: var(--plum); background: var(--plum); color: #fff; }
.tip-fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin-bottom: 16px; padding: 14px; border: 1px solid var(--border); border-radius: 17px; background: var(--surface-soft); }
.tip-fields input, .tip-fields select { background: var(--surface); }
.calendar-sync-bar { margin: -2px 0 17px; padding: 0 0 17px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--border); }
.calendar-sync-bar p { flex: 1 1 150px; margin: 0; color: var(--muted); font-size: 10px; }
.calendar-sync-button { min-height: 44px; padding: 9px 15px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex-shrink: 0; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--plum); font-size: 11px; font-weight: 650; }
.calendar-sync-button:hover { border-color: var(--plum-light); background: var(--rose-soft); }
.calendar-sync-button svg { width: 16px; height: 16px; }
.tip-summary { margin: 4px 0 14px; padding: 14px 15px; border: 1px solid var(--border); border-radius: 17px; background: var(--surface-soft); color: var(--muted); font-size: 11px; }
.tip-summary > div, .tip-summary > p { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 7px; }
.tip-summary > div:last-child, .tip-summary > p:last-child { margin-bottom: 0; }
.tip-summary strong { color: var(--ink); font-size: 13px; font-variant-numeric: tabular-nums; }

@media (max-width: 380px) {
  .calendar-sync-bar { align-items: flex-start; flex-direction: column; }
  .calendar-sync-bar .calendar-sync-button { width: 100%; }
}

@media (min-width: 600px) {
  .calendar-card { padding: 23px; }
  .calendar-day { min-height: 46px; }
  .appointment-time { width: 76px; }
  .appointment-time strong { font-size: 12px; }
  .appointment-info > strong { font-size: 14px; }
}

@media (min-width: 700px) {
  .calendar-layout { grid-template-columns: minmax(300px, .9fr) minmax(320px, 1.1fr); align-items: start; }
}

@media (min-width: 1250px) {
  #view-overview #overview-schedule { grid-column: 1; grid-row: auto; margin-top: 22px; margin-bottom: 0; }
  #view-overview #overview-recent { grid-column: 2; grid-row: 2 / 5; margin-top: 0; }
  #view-overview #overview-schedule .section-heading p { display: none; }
}
