.trigger {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  text-align: left;
  cursor: pointer;
}

.value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon {
  flex-shrink: 0;
  color: var(--text-tertiary);
}

.content {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-3);
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.title {
  font-size: var(--type-heading-6-size);
  line-height: var(--type-heading-6-line-height);
  font-weight: var(--type-heading-6-weight);
  color: var(--text-primary);
}

.body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.calendar {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-2);
  border: 1px dashed var(--border-default);
  border-radius: var(--radius-md);
  color: var(--text-tertiary);
  font-size: var(--type-body-6-size);
  line-height: var(--type-body-6-line-height);
  font-weight: var(--type-body-6-weight);
}

.time {
  display: flex;
  gap: var(--sp-2);
  padding: var(--sp-2);
  border: 1px dashed var(--border-default);
  border-radius: var(--radius-md);
  color: var(--text-tertiary);
  font-size: var(--type-body-6-size);
  line-height: var(--type-body-6-line-height);
  font-weight: var(--type-body-6-weight);
}

.actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-2);
}

.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 44px;
  padding: 0 var(--sp-3);
  border: 1px solid var(--control-secondary-border);
  border-radius: var(--radius-md);
  background: var(--control-secondary-bg);
  color: var(--text-primary);
  font-size: var(--type-body-3-size);
  line-height: var(--type-body-3-line-height);
  font-weight: var(--type-body-3-weight);
  cursor: pointer;
  transition:
    background var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out);
}

.action:hover {
  background: var(--control-secondary-bg-hover);
  border-color: var(--control-secondary-border-hover);
}

.action:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.popoverContent {
  width: min(320px, calc(100vw - var(--sp-8)));
}

.sheetBody {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-4);
}

/* Calendar Grid */
.calendarGrid {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.calendarHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--sp-1);
}

.calendarTitle {
  font-size: var(--type-heading-6-size);
  line-height: var(--type-heading-6-line-height);
  font-weight: var(--type-heading-6-weight);
  color: var(--text-primary);
}

.calendarNav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--control-secondary-border);
  border-radius: var(--radius-sm);
  background: var(--control-secondary-bg);
  color: var(--text-secondary);
  cursor: pointer;
  transition:
    background var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out);
}

.calendarNav:hover {
  background: var(--control-secondary-bg-hover);
  color: var(--text-primary);
}

.calendarWeekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--sp-1);
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--border-default);
}

.calendarWeekday {
  text-align: center;
  font-size: var(--type-body-6-size);
  line-height: var(--type-body-6-line-height);
  font-weight: var(--type-body-6-weight);
  color: var(--text-tertiary);
}

.calendarDays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--sp-1);
}

.calendarDay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  font-size: var(--type-body-3-size);
  line-height: var(--type-body-3-line-height);
  font-weight: var(--type-body-3-weight);
  color: var(--text-primary);
  cursor: pointer;
  transition:
    background var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out);
}

.calendarDay:hover:not(:disabled) {
  background: var(--surface-hover);
}

.calendarDayToday {
  color: var(--status-info-fg);
  font-weight: var(--font-semibold);
}

.calendarDaySelected {
  background: var(--control-primary-bg);
  color: var(--control-primary-fg);
}

.calendarDaySelected:hover {
  background: var(--control-primary-bg-hover);
}

.calendarDayDisabled {
  color: var(--text-tertiary);
  cursor: not-allowed;
  opacity: 0.5;
}

.calendarDayEmpty {
  height: 36px;
}

/* Time Selector */
.timeSelector {
  display: flex;
  align-items: flex-end;
  gap: var(--sp-2);
}

.timeField {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  flex: 1;
}

.timeLabel {
  font-size: var(--type-body-6-size);
  line-height: var(--type-body-6-line-height);
  font-weight: var(--type-body-6-weight);
  color: var(--text-secondary);
}

.timeSeparator {
  padding-bottom: var(--sp-1);
  font-size: var(--type-body-3-size);
  line-height: var(--type-body-3-line-height);
  font-weight: var(--type-body-3-weight);
  color: var(--text-secondary);
}

.timeSection {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border-default);
}

/* Additional i18n keys needed */

.timeInput {
  width: 100%;
  text-align: center;
}

.popoverContent {
  max-width: 320px;
}

.sheetBody {
  max-width: 100%;
}
