.date-control { min-width: 0; width: 100%; }
.date-trigger { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 34px; padding: 8px 10px; border: 1px solid #dce3ed; border-radius: 3px; background: #fff; color: #253448; font-size: 12px; text-align: left; cursor: pointer; }
.date-trigger svg { width: 17px; height: 17px; flex: none; color: #8190a4; }
.date-trigger.is-empty { color: #929dab; }
.date-trigger:hover, .date-trigger[aria-expanded=true] { border-color: #5178ab; }
.date-trigger:focus-visible { outline: 2px solid #c1d3ec; outline-offset: 1px; }
.date-picker { position: fixed; width: 304px; max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); overflow: auto; margin: 0; padding: 16px; border: 1px solid #dce3ed; border-radius: 6px; background: #fff; color: #253448; box-shadow: 0 12px 40px #0b203c33; font-family: "PingFang SC", "Microsoft YaHei", sans-serif; }
.date-picker::backdrop { background: #0b203c12; }
.date-picker button { border: 0; border-radius: 3px; background: transparent; color: inherit; padding: 0; font-family: inherit; font-size: 12px; cursor: pointer; }
.date-picker button:hover { background: #edf2f8; color: #163f78; }
.date-picker button:focus-visible { outline: 2px solid #759ed3; outline-offset: -2px; }
.date-picker-heading { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; color: #718098; font-size: 12px; border-bottom: 1px solid #edf0f5; }
.date-picker-heading button { width: 24px; height: 24px; color: #8190a4; font-size: 20px; }
.date-picker-nav { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
.date-picker-nav > button { width: 28px; height: 28px; font-size: 20px; }
.date-picker-nav > div { display: flex; gap: 8px; }
.date-picker-nav > div button { padding: 5px 7px; font-weight: 600; }
.date-day-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.date-weekday { display: grid; place-items: center; height: 28px; color: #8c98a9; font-size: 11px; }
.date-day-grid button { height: 32px; font-variant-numeric: tabular-nums; }
.date-day-grid button.outside { color: #b6bfcc; }
.date-picker button.today { box-shadow: inset 0 0 0 1px #89a5c9; }
.date-picker button.selected { background: #163f78; color: #fff; }
.date-picker button:disabled { opacity: .3; cursor: default; }
.date-period-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 8px 0; }
.date-period-grid button { height: 42px; }
.date-number-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; max-height: 280px; overflow: auto; padding: 12px 0; }
.date-number-grid button { height: 32px; }
.date-grid-label { grid-column: 1 / -1; margin: 0 0 8px; color: #718098; font-size: 12px; }
.date-time-row { display: flex; align-items: center; gap: 8px; padding: 12px 0; margin-top: 8px; border-top: 1px solid #edf0f5; font-size: 12px; color: #718098; }
.date-time-row button { padding: 5px 10px; background: #edf2f8; color: #163f78; }
.date-picker-footer { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #edf0f5; }
.date-picker-footer button { padding: 6px 12px; color: #163f78; }
.date-picker-footer .date-confirm { background: #163f78; color: #fff; }
.date-picker-nav[hidden] { display: none; }
@media (max-width: 600px) {
  .date-trigger { min-height: 44px; font-size: 15px; border-radius: 5px; }
  .date-picker { left: 0 !important; top: auto !important; bottom: 0; width: 100%; max-width: 100%; padding: 20px 20px max(20px, env(safe-area-inset-bottom)); border-radius: 12px 12px 0 0; }
  .date-picker::backdrop { background: #0b203c55; }
  .date-picker-heading { font-size: 14px; }
  .date-picker button { font-size: 14px; }
  .date-day-grid button { height: 40px; }
  .date-period-grid button { height: 46px; }
  .date-number-grid button { height: 40px; }
}
