.date-control { min-width: 0; }
.date-control.compact-date { display: contents; }
.date-control .date-trigger {
  display: flex;
  justify-content: flex-start;
  width: 100%;
  gap: 10px;
  padding: 7px 11px;
  border: 1px solid #373c40;
  border-radius: 8px;
  background: var(--inset);
  color: var(--text);
  min-height: 40px;
  text-align: left;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.compact-date .date-trigger { width: auto; min-height: 32px; padding: 3px 8px; }
.date-trigger:hover, .date-trigger[aria-expanded="true"] { border-color: #54746a; background: #17201d; }
.date-trigger > svg:last-child { width: 14px; height: 14px; margin-left: auto; color: var(--quiet); }
.date-trigger[aria-expanded="true"] > svg:last-child { transform: rotate(180deg); }
.date-icon { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: #19352b; color: #74e4b9; }
.date-icon svg { width: 15px; height: 15px; }
.compact-date .date-slot { flex: 1 0 100%; order: 1; }
.date-slot { min-width: 0; color: var(--text); }
.date-card { container-type: inline-size; width: 100%; max-width: 536px; background: #191c1f; border: 1px solid #353b40; border-radius: 12px; overflow: hidden; }
.date-layout { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(142px, 1fr); }
.month-pane { min-width: 0; padding: 14px; }
.month-bar, .month-bar > div { display: flex; align-items: center; gap: 4px; }
.month-bar { justify-content: space-between; gap: 8px; margin-bottom: 13px; }
.month-bar strong { font-size: 16px; font-weight: 620; letter-spacing: -.025em; }
.month-step { border-radius: 6px; width: 30px; height: 30px; color: #b3babf; }
.month-step:hover:not(:disabled), .date-presets button:hover:not(:disabled) { background: #2b3235; color: white; }
.month-step svg { width: 16px; height: 16px; }
.week-days, .month-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); text-align: center; gap: 3px; }
.week-days { margin-bottom: 6px; color: #a6afb5; font-size: 12px; font-weight: 500; }
.day-cell { position: relative; border-radius: 7px; min-height: 33px; font-size: 14px; font-variant-numeric: tabular-nums; }
.day-cell.outside { color: #858e96; }
.day-cell:hover:not(:disabled) { background: #2f3838; }
.day-cell[aria-pressed="true"], .day-cell[aria-pressed="true"]:hover { background: #83e6bf; color: #102b22; font-weight: 680; }
.day-cell[aria-current="date"]::after { content: ""; position: absolute; left: calc(50% - 1.5px); bottom: 2px; width: 3px; height: 3px; border-radius: 50%; background: var(--green); }
.day-cell[aria-current="date"][aria-pressed="true"]::after { background: #216347; }
.day-cell:focus-visible, .month-step:focus-visible { outline-offset: 0; }
.date-options { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; padding: 18px 14px; border-left: 1px solid var(--line); background: #16191b; }
.date-options strong, .date-options .manual-date label { display: block; min-height: auto; font-size: 12px; font-weight: 550; color: #aeb8bc; margin-bottom: 7px; }
.date-presets button { display: block; text-align: left; width: 100%; padding: 5px 8px; border-radius: 5px; font-size: 13px; color: #e0e6e4; }
.manual-date > div { display: flex; align-items: center; border: 1px solid #343b3e; border-radius: 6px; background: var(--inset); }
.date-card .manual-date input { width: 100%; padding: 6px; border: 0; background: transparent; font-size: 12px; min-width: 0; }
.manual-date button { padding: 5px; color: #79dfb8; }
.manual-date button svg { width: 14px; height: 14px; }
.manual-date small { display: block; margin-top: 5px; color: #ffada1; }
.remove-date { color: var(--quiet); padding: 7px 14px; border-top: 1px solid var(--line); width: 100%; justify-content: flex-start; }
@container (max-width: 410px) {
  .date-layout { grid-template-columns: minmax(0, 1fr); }
  .date-options { border-left: 0; border-top: 1px solid var(--line); padding: 10px 12px; gap: 10px; }
  .date-presets > div { display: flex; flex-wrap: wrap; gap: 4px; }
  .date-presets button { width: auto; background: #252b2e; }
  .manual-date { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
  .date-options .manual-date label { margin: 0; }
  .manual-date > div { max-width: 150px; }
}
