.wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.trigger {
  padding: 0 4px;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 12px;
  text-align: left;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: color 0.15s;
  line-height: 1;
}

.trigger:hover {
  color: var(--amber);
}

.trigger:focus-visible {
  outline: 1px solid var(--amber);
  outline-offset: 1px;
}

/* Panel */
.panel {
  position: fixed;
  z-index: 600;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 12px;
  width: 260px;
  animation: panelIn 0.12s ease-out;
}

@keyframes panelIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Month navigation */
.monthNav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.monthLabel {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-body);
}

.navBtn {
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: background 0.1s, color 0.1s;
}

.navBtn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

/* Calendar grid */
.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 10px;
}

.dayHeader {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-faint);
  text-align: center;
  padding: 4px 0;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.dayEmpty {
  /* placeholder for offset days */
}

.day {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--text-primary);
  font-size: 12px;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.1s;
}

.day:hover {
  background: var(--bg-hover);
}

.dayToday {
  font-weight: 700;
  color: var(--amber);
}

.daySelected {
  background: var(--amber);
  color: #fff;
  font-weight: 600;
}

.daySelected:hover {
  background: var(--amber-hover);
}

/* Time selector */
.timeRow {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 0;
  border-top: 1px solid var(--border-subtle);
}

.timeLabel {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  margin-right: auto;
}

.timeInput {
  width: 32px;
  padding: 4px 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-raised);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 13px;
  text-align: center;
  outline: none;
}

.timeInput:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 2px var(--amber-bg);
}

.timeSep {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

/* Actions */
.actions {
  display: flex;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
}

.todayBtn {
  border: none;
  background: none;
  color: var(--amber);
  font-size: 12px;
  font-weight: 500;
  font-family: var(--font-body);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.todayBtn:hover {
  background: var(--amber-bg);
}

.doneBtn {
  padding: 4px 16px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--amber);
  color: #fff;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}

.doneBtn:hover {
  opacity: 0.85;
}

.doneBtn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
