:root {
  --ink: #33242a;
  --muted: #806d73;
  --canvas: #fffafa;
  --surface: #fff;
  --line: #f0e5e7;
  --rose: #9d5b71;
  --rose-dark: #7d4055;
  --soft: #fbf0f2;
  --green: #36735d;
  --amber: #9a6a1f;
  --amber-soft: #faf0da;
  --personal: #3f5d8a;
  --personal-soft: #e8edf6;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.hidden {
  display: none !important;
}

button,input,select,textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  width: min(760px,100%);
  margin: 0 auto;
  padding: 28px 18px 104px;
}

.topbar,.section-heading,.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

h1,h2,h3,p {
  margin: 0;
}

h1 {
  font-size: 27px;
  letter-spacing: -.8px;
}

h2 {
  font-size: 23px;
  letter-spacing: -.5px;
}

h3 {
  font-size: 16px;
}

.eyebrow {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 1.1px;
  color: var(--rose);
  margin-bottom: 5px;
}

.month-picker {
  border: 1px solid var(--line);
  background: white;
  color: var(--rose-dark);
  padding: 9px 12px;
  border-radius: 12px;
  font-weight: 700;
}

.view {
  display: none;
  padding-top: 30px;
}

.view.active {
  display: block;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 12px;
  margin: 17px 0 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.metric {
  padding: 16px;
  min-height: 96px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.metric.accent {
  background: var(--rose);
  color: white;
  border-color: var(--rose);
}

.metric span,.finance-summary span {
  font-size: 12px;
  color: var(--muted);
}

.metric.accent span {
  color: #ffeaf0;
}

.metric strong {
  font-size: 20px;
  letter-spacing: -.7px;
}

.section-card {
  padding: 18px;
  margin-bottom: 15px;
}

.section-heading p,.muted {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
  line-height: 1.45;
}

.link-button {
  border: 0;
  background: none;
  color: var(--rose);
  font-weight: 700;
  padding: 4px 0;
}

.page-heading {
  margin-bottom: 20px;
}

.primary-button {
  border: 0;
  background: var(--rose);
  color: white;
  padding: 11px 15px;
  border-radius: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.primary-button:hover {
  background: var(--rose-dark);
}

.full {
  width: 100%;
  margin-top: 6px;
}

.period-controls {
  display: flex;
  gap: 7px;
}

.period-controls select,.period-controls input {
  width: auto;
  min-width: 0;
  padding: 9px;
  border-radius: 12px;
  color: var(--rose-dark);
  font-weight: 700;
}

.period-controls input {
  max-width: 118px;
}

.month-lock {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--muted);
  background: var(--soft);
  border-radius: 999px;
  padding: 5px 12px;
  margin: 8px 0 16px;
}

.appointment-list,.agenda-list,.transaction-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.empty-state {
  color: var(--muted);
  padding: 12px 0;
  font-size: 14px;
}

.upcoming-list {
  display: flex;
  flex-direction: column;
}

.appt-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}

.appt-row:last-child {
  border: 0;
  padding-bottom: 2px;
}

.appt-row .date-badge {
  min-width: 32px;
  min-height: 32px;
  border-radius: 9px;
  font-size: 9px;
}

.appt-row .appt-info {
  flex: 1;
  min-width: 0;
}

.appt-row .appt-info strong {
  display: block;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.appt-row .appt-info p {
  margin: 1px 0 0;
  font-size: 10.5px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.appt-row .appt-value {
  font-size: 10.5px;
  font-weight: 750;
  color: var(--rose);
  text-align: right;
  flex-shrink: 0;
}

.appt-more {
  display: block;
  width: 100%;
  border: 0;
  background: none;
  text-align: center;
  padding: 8px 0 2px;
  font-size: 11px;
  color: var(--rose);
  font-weight: 700;
}

.appointment-swipe {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  touch-action: pan-y;
}

.appointment-reveal {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: stretch;
  opacity: 0;
  transition: opacity .12s;
}

.reveal-left {
  justify-content: flex-start;
  background: var(--green);
}

.reveal-left span {
  display: flex;
  align-items: center;
  color: #fff;
  font-weight: 750;
  font-size: 13px;
  padding: 0 20px;
}

.reveal-right {
  justify-content: flex-end;
  background: #a53c49;
}

.appointment-delete-action {
  border: 0;
  background: transparent;
  color: #fff;
  font-weight: 750;
  font-size: 13px;
  padding: 0 24px;
  display: flex;
  align-items: center;
}

.appointment-swipe.drag-right .reveal-left,.appointment-swipe.drag-left .reveal-right,.appointment-swipe.open .reveal-right {
  opacity: 1;
}

.appointment-card {
  position: relative;
  touch-action: pan-y;
  padding: 13px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.date-badge {
  background: var(--soft);
  color: var(--rose-dark);
  min-width: 48px;
  min-height: 48px;
  border-radius: 13px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
}

.appointment-info {
  flex: 1;
  min-width: 0;
}

.appointment-info h3 {
  margin-bottom: 3px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.appointment-meta,.appointment-services {
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.appointment-notes {
  font-size: 11.5px;
  color: var(--muted);
  font-style: italic;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.appointment-value {
  font-size: 13px;
  font-weight: 750;
  color: var(--green);
  text-align: right;
  white-space: pre-line;
}

.appointment-value.pending {
  color: var(--rose);
}

.appointment-value.partial {
  color: var(--amber);
}

.appointment-card.personal .date-badge {
  background: var(--personal-soft);
  color: var(--personal);
}

.appointment-card.personal h3 {
  color: var(--personal);
}

.appt-value.personal {
  color: var(--personal);
}

.bar-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 6px;
}

.bar-track {
  height: 8px;
  background: var(--soft);
  overflow: hidden;
  border-radius: 10px;
}

.bar-fill {
  height: 100%;
  background: var(--rose);
  border-radius: 10px;
}

.finance-summary {
  background: var(--soft);
  padding: 4px;
  border-radius: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.finance-stat {
  padding: 11px;
}

.finance-stat span {
  font-size: 12px;
  color: var(--muted);
}

.finance-stat strong {
  display: block;
  font-size: 17px;
  margin-top: 4px;
}

.fc-bar-card {
  display: grid;
  gap: 9px;
  margin-bottom: 14px;
}

.fc-bar-label {
  font-size: 12px;
  color: var(--muted);
}

.fc-bar-total {
  font-size: 22px;
  letter-spacing: -.5px;
}

.fc-bar-track {
  height: 10px;
  background: var(--soft);
  border-radius: 999px;
  overflow: hidden;
}

.fc-bar-fill {
  height: 100%;
  background: var(--rose);
  border-radius: 999px;
}

.fc-bar-caption {
  font-size: 13px;
  color: var(--ink);
}

.fc-bar-count {
  font-size: 12px;
  color: var(--muted);
}

nav.finance-filter-menu {
  margin-top: 16px;
}

.list-title {
  font-size: 15px;
  margin: 22px 0 10px;
}

.transaction {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.transaction:last-child {
  border: 0;
}

.transaction-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--soft);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.transaction-icon.income {
  background: #e6f3ee;
  color: var(--green);
}

.transaction-icon.expense {
  background: #fbeaec;
  color: #b34c58;
}

.transaction-info {
  flex: 1;
}

.transaction-info p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.transaction strong.income {
  color: var(--green);
}

.transaction strong.expense {
  color: #b34c58;
}

.tips {
  margin: 12px 0 0;
  padding-left: 19px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.danger-button,.secondary-button {
  margin-top: 15px;
  border: 1px solid #f0cdd2;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff7f7;
  color: #a53c49;
  font-weight: 700;
}

.secondary-button {
  border-color: #e5d4d9;
  background: #fff;
  color: var(--rose-dark);
  margin-right: 8px;
}

.field-hint {
  color: var(--muted);
  font-size: 12px;
  margin-top: -5px;
  line-height: 1.35;
}

.calendar-card {
  padding: 14px 10px 10px;
  margin-bottom: 18px;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  padding: 0 5px 12px;
}

.calendar-header span {
  color: var(--muted);
  font-size: 11px;
}

.calendar-weekdays,.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.calendar-weekdays span {
  text-align: center;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  padding-bottom: 7px;
}

.calendar-day {
  min-height: 74px;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 5px 3px;
  overflow: hidden;
}

.calendar-day:nth-child(7n) {
  border-right: 0;
}

.calendar-day.muted-day {
  background: #fffafa;
  color: #c9bac0;
}

.calendar-day-number {
  font-size: 11px;
  font-weight: 750;
}

.calendar-event {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 4px;
  padding: 3px 4px;
  border-radius: 4px;
  color: var(--rose-dark);
  background: var(--soft);
  font-size: 9px;
  font-weight: 700;
}

.calendar-event.more {
  background: transparent;
  color: var(--muted);
  padding-left: 2px;
}

.calendar-event.personal {
  background: var(--personal-soft);
  color: var(--personal);
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,.96);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: center;
  z-index: 5;
}

.nav-item {
  width: min(190px,25%);
  padding: 10px 4px 12px;
  border: 0;
  background: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
}

.nav-item span {
  font-size: 21px;
  line-height: 21px;
}

.nav-item.active {
  color: var(--rose);
  font-weight: 750;
}

.modal {
  border: 0;
  border-radius: 22px;
  width: min(520px,calc(100% - 24px));
  padding: 0;
  color: var(--ink);
  box-shadow: 0 15px 60px #56344040;
}

.modal::backdrop {
  background: #33242a66;
}

.modal form {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.modal h2 {
  font-size: 22px;
}

.icon-button {
  border: 0;
  background: var(--soft);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 25px;
  line-height: 1;
  color: var(--rose-dark);
}

label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

input,select,textarea {
  width: 100%;
  border: 1px solid #e9dadd;
  border-radius: 10px;
  background: #fff;
  padding: 11px;
  color: var(--ink);
}

textarea {
  resize: vertical;
}

.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}

.checkbox {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.checkbox input {
  width: 17px;
  height: 17px;
  accent-color: var(--rose);
}

#paymentSection {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

@media (min-width:600px) {
  .summary-grid {
    grid-template-columns: repeat(4,1fr);
  }
  .metric strong {
    font-size: 18px;
  }
  .agenda-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .bottom-nav {
    width: 760px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    border-radius: 18px 18px 0 0;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
  }
}

.calendar-header {
  align-items: center;
  padding-bottom: 7px;
}

.calendar-actions {
  display: flex;
  gap: 5px;
  align-items: center;
}

.calendar-view-toggle {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 10px;
}

.calendar-view-button {
  min-width: 58px;
  text-align: center;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 6px 9px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
}

.drag-header {
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.month-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.today-btn {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--rose-dark);
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
}

.month-picker-input {
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 15px;
  font-weight: 750;
  padding: 4px 2px;
  cursor: pointer;
  font-family: inherit;
}

.calendar-view-button.active {
  background: var(--soft);
  color: var(--rose-dark);
}

.calendar-help {
  color: var(--muted);
  font-size: 11px;
  margin: 0 5px 10px;
}

.calendar-day {
  min-height: 86px;
  cursor: pointer;
}

.calendar-day.muted-day {
  cursor: default;
}

.day-calendar {
  position: relative;
  min-height: 60px;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.day-calendar::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 44px;
  width: 1px;
  background: var(--line);
}

.day-calendar.is-empty::before {
  display: none;
}

.week-time {
  position: absolute;
  left: 0;
  color: var(--muted);
  font-size: 9px;
}

.day-event {
  position: absolute;
  left: 52px;
  right: 8px;
  min-height: 30px;
  overflow: hidden;
  padding: 7px 9px;
  border-radius: 8px;
  background: var(--soft);
  border-left: 4px solid var(--rose);
  color: var(--rose-dark);
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.day-event small {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  font-weight: 600;
}

.day-event.partial {
  background: var(--amber-soft);
  border-left-color: var(--amber);
}

.day-event .pay-status {
  display: block;
  margin-top: 3px;
  font-size: 9.5px;
  font-weight: 750;
  color: var(--amber);
}

.day-event .notes-line {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  font-style: italic;
  color: var(--muted);
}

.day-event.personal {
  background: var(--personal-soft);
  border-left-color: var(--personal);
  color: var(--personal);
}

.conflict-warning {
  background: var(--personal-soft);
  color: var(--personal);
  border: 1px dashed var(--personal);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12.5px;
  font-weight: 700;
  margin: 0;
}

.day-gap {
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
}

.day-gap::before {
  content: "";
  position: absolute;
  left: 52px;
  right: 0;
  top: 50%;
  border-top: 1px dashed var(--line);
}

.day-gap span {
  position: relative;
  margin-left: 52px;
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  background: var(--surface);
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.settings-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 14px 0;
}

.settings-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13px;
}

.settings-item span {
  color: var(--muted);
  text-align: right;
  font-size: 12px;
}

.settings-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.settings-form input:last-of-type {
  grid-column: span 2;
}

#directPlaceForm input {
  grid-column: span 2;
}

.settings-form .secondary-button {
  width: max-content;
  margin: 0;
}

.inline-form {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.inline-form .secondary-button {
  margin: 0;
  white-space: nowrap;
}

.service-tag {
  display: inline-block;
  width: max-content;
  background: var(--soft);
  color: var(--rose-dark);
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 700;
}

.settings-list:has(.service-tag) {
  flex-direction: row;
  flex-wrap: wrap;
}

.settings-menu {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  margin: -4px 0 16px;
}

.settings-tab {
  flex: 1;
  min-width: max-content;
  border: 1px solid var(--line);
  background: white;
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 11px;
  font-weight: 700;
}

.settings-tab.active {
  background: var(--rose);
  border-color: var(--rose);
  color: white;
}

.settings-panel {
  display: none;
}

.settings-panel.active {
  display: block;
}

.settings-item {
  align-items: center;
}

.settings-item .settings-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.settings-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.small-button,.text-button {
  border: 0;
  background: var(--soft);
  color: var(--rose-dark);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 11px;
  font-weight: 700;
}

.small-button.delete {
  color: #a53c49;
  background: #fff2f3;
}

.text-button {
  background: transparent;
  margin-left: 5px;
}

.settings-item.archived {
  opacity: .62;
  background: #fffafa;
}

.archived-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.compact-modal {
  max-width: 420px;
}

.archive-content {
  padding: 22px;
}

.archive-content .muted {
  margin: 10px 0 18px;
  font-size: 14px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.modal-actions .secondary-button {
  margin: 0;
}

.expense-catalog {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 0;
}

.catalog-category {
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
}

.catalog-header,.catalog-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  font-size: 13px;
}

.catalog-header {
  background: var(--soft);
  color: var(--rose-dark);
}

.catalog-item {
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.expense-item-form {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.expense-item-form .secondary-button {
  margin: 0;
}

.icon-action {
  width: 32px;
  height: 32px;
  padding: 0;
  display: grid;
  place-items: center;
  font-size: 15px;
  line-height: 1;
}

.settings-actions .icon-action + .icon-action {
  margin-left: 0;
}

.catalog-header .settings-actions,.catalog-item .settings-actions,.settings-item .settings-actions {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  width: 70px;
  min-width: 70px;
}

.catalog-header,.catalog-item {
  min-height: 54px;
}

.settings-panel .secondary-button {
  min-height: 38px;
}

/* Formulário de atendimento: horário único e lista de serviços */
.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.time-range {
  display: flex;
  align-items: center;
  gap: 8px;
}

.time-picker {
  position: relative;
  flex: 1;
  min-width: 0;
}

.time-range-sep {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.duration-badge {
  flex: none;
  background: var(--soft);
  color: var(--rose-dark);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
}

.service-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-item-head, .service-item {
  display: grid;
  grid-template-columns: minmax(0,1fr) 60px 100px 32px;
  gap: 8px;
  align-items: center;
}

.service-item-head {
  margin-bottom: -2px;
}

.invisible {
  visibility: hidden;
}

.add-service {
  align-self: flex-start;
  font-size: 12px;
  padding: 4px 0;
  margin-left: 0;
  cursor: pointer;
}

.service-item input, .service-item select {
  font-size: 13px;
  font-weight: 700;
}

.items-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: var(--soft);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--rose-dark);
}

@media (max-width:420px) {
  .service-item-head, .service-item {
    grid-template-columns: minmax(0,1fr) 50px 84px 30px;
    gap: 6px;
  }
  .service-item input, .service-item select {
    padding: 10px 8px;
  }
}

.time-trigger {
  width: 100%;
  border: 1px solid #e9dadd;
  border-radius: 10px;
  background: #fff;
  padding: 11px;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.time-trigger.empty {
  color: var(--muted);
  font-weight: 500;
}

.time-trigger[aria-expanded="true"] {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px var(--soft);
}

.time-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 20;
  width: max(100%, 170px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 30px #56344033;
  overflow: hidden;
}

.time-options {
  max-height: 228px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px;
}

.time-option {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  width: 100%;
  border: 0;
  background: none;
  padding: 9px 10px;
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.time-option small {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
}

.time-option:hover, .time-option:focus-visible {
  background: var(--soft);
  outline: none;
}

.time-option.selected {
  background: var(--rose);
  color: #fff;
}

.time-option.selected small {
  color: #fff;
}

.time-custom {
  border-top: 1px solid var(--line);
  padding: 6px;
}

.time-custom-open {
  width: 100%;
  border: 0;
  background: none;
  padding: 8px 6px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--rose-dark);
  text-align: left;
  cursor: pointer;
}

.time-custom-input {
  width: 100%;
  font-size: 16px;
  font-weight: 700;
  padding: 9px;
}

.time-custom-input.invalid {
  border-color: #a53c49;
  background: #fff7f7;
}

.time-picker:last-of-type .time-menu {
  left: auto;
  right: 0;
}
