.datetime-lab {
  width: 100%;
  display: grid;
  gap: 20px;
  font-family:
    "Source Han Sans CN", "思源黑体 CN", "Microsoft YaHei", sans-serif;
  color: #333;
}
.datetime-playground,
.datetime-family {
  box-sizing: border-box;
  padding: 20px;
  display: grid;
  gap: 16px;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  background: #fff;
}
.datetime-head,
.datetime-family-head {
  display: grid;
  gap: 2px;
}
.datetime-head h3,
.datetime-family-head h3 {
  margin: 0;
  font-size: 14px;
  line-height: 22px;
}
.datetime-head span,
.datetime-family-head span {
  color: #999;
  font-size: 11px;
  line-height: 18px;
}
.datetime-family-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.datetime-control {
  width: min(100%, 420px);
  display: grid;
  gap: 8px;
}
.datetime-control label {
  color: #666;
  font-size: 12px;
  line-height: 18px;
}
.datetime-live {
  min-height: 420px;
  padding: 28px 20px;
  display: grid;
  place-items: center;
  overflow: visible;
  border: 1px dashed #d9d9d9;
  border-radius: 6px;
  background: #f7f7f7;
}
.datetime-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 16px;
}
.datetime-variant {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  background: #fff;
}
.datetime-variant.is-wide {
  grid-column: 1/-1;
}
.datetime-variant > header {
  box-sizing: border-box;
  height: 44px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e8e8e8;
  font-size: 12px;
  line-height: 18px;
}
.datetime-variant > header span {
  color: #999;
}
.datetime-stage {
  min-height: 390px;
  padding: 28px 20px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #f7f7f7;
}
.datetime-instance {
  position: relative;
  max-width: 100%;
}
.datetime-code {
  min-height: 46px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #d9e1ec;
  background: #111722;
}
.datetime-code code {
  min-width: 0;
  overflow: hidden;
  font:
    11px/18px ui-monospace,
    Consolas,
    monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.datetime-code button {
  height: 26px;
  padding: 0 10px;
  flex: 0 0 auto;
  border: 1px solid #4b5565;
  border-radius: 4px;
  color: #d9e1ec;
  background: #202838;
  font-size: 11px;
}
.dt-icon {
  display: block;
  object-fit: contain;
}
.dt-nav-arrow.is-left {
  transform: rotate(180deg);
}
.dt-nav-double {
  filter: brightness(0);
  opacity: 0.4;
}
.dt-input-shell {
  position: relative;
  width: 312px;
  display: grid;
  gap: 4px;
}
.dt-input-shell.dt-kind-segmented {
  width: 425px;
}
.dt-input-shell.dt-kind-range {
  width: 204px;
}
.dt-input-shell > label {
  height: 22px;
  color: #333;
  font-size: 14px;
  line-height: 22px;
}
.dt-input-shell > label b {
  color: #e44144;
  font-weight: 400;
}
.dt-control,
.dt-period-control {
  box-sizing: border-box;
  height: 32px;
  margin: 0;
  padding: 5px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  color: #999;
  background: #fff;
  font: 400 14px/20px inherit;
  text-align: left;
}
.dt-control {
  width: 100%;
}
.dt-control > span:not(.dt-period, .dt-range-dash) {
  min-width: 0;
  white-space: nowrap;
}
.dt-control > span:nth-of-type(1) {
  flex: 1;
}
.dt-control.hover,
.dt-period-control.hover {
  border-color: #4ba2ff;
}
.dt-control:hover:not(:disabled),
.dt-period-control:hover:not(:disabled) {
  border-color: #4ba2ff;
}
.dt-control.active,
.dt-period-control.active {
  border-color: #2279d6;
}
.dt-control:active:not(:disabled),
.dt-period-control:active:not(:disabled),
.dt-control[aria-expanded="true"],
.dt-period-control[aria-expanded="true"] {
  border-color: #2279d6;
}
.dt-control.disabled,
.dt-period-control.disabled {
  color: #333;
  background: #f7f7f7;
}
.dt-control.custom {
  color: #333;
}
.dt-control:focus-visible,
.dt-period-control:focus-visible {
  outline: 2px solid #2990ff;
  outline-offset: 2px;
}
.dt-segmented {
  height: 32px;
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 8px;
}
.dt-period-control {
  justify-content: space-between;
  color: #333;
}
.dt-dropdown-arrow {
  flex: 0 0 12px;
  filter: brightness(0);
  opacity: 0.6;
  transform: rotate(90deg);
  transition: transform 0.16s ease;
}
.dt-period-control[aria-expanded="true"] .dt-dropdown-arrow,
.dt-control[aria-expanded="true"] .dt-period .dt-dropdown-arrow {
  transform: rotate(-90deg);
}
.dt-period {
  height: 22px;
  padding-left: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-left: 1px solid #d9d9d9;
  color: #333;
}
.dt-range-dash {
  width: 12px;
  height: 1px;
  flex: 0 0 12px;
  background: #d9d9d9;
}
.dt-field-popup {
  position: absolute;
  z-index: 20;
  left: 0;
  top: 64px;
  padding: 8px;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}
.dt-field-popup.ampm {
  left: auto;
  right: 0;
}
.datetime-variant.has-popup {
  position: relative;
  z-index: 4;
  overflow: visible;
}
.datetime-variant.has-popup .datetime-stage {
  min-height: 520px;
  padding-top: 60px;
  place-items: start center;
  overflow: visible;
}
.dt-calendar,
.dt-choice-panel,
.dt-split-panel,
.dt-time-panel,
.dt-preset {
  position: relative;
  box-sizing: border-box;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}
.dt-calendar {
  padding: 16px;
}
.dt-calendar-header {
  height: 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.dt-calendar-header strong {
  font-size: 16px;
  font-weight: 400;
  line-height: 23px;
  white-space: nowrap;
}
.dt-nav-group {
  display: flex;
  gap: 8px;
}
.dt-nav-group:last-child {
  justify-content: flex-end;
}
.dt-calendar-header button {
  box-sizing: border-box;
  width: 20px;
  height: 20px;
  margin: 0;
  padding: 3px;
  display: grid;
  place-items: center;
  border: 1px solid #d9d9d9;
  border-radius: 1px;
  background: #fff;
}
.dt-calendar-header button:hover {
  background: rgba(0, 0, 0, 0.04);
}
.dt-calendar-body {
  margin-top: 8px;
}
.dt-week,
.dt-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
}
.dt-week span {
  height: 22px;
  color: #999;
  font-size: 12px;
  line-height: 22px;
}
.dt-days button {
  box-sizing: border-box;
  height: 32px;
  margin: 0;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 16px;
  color: #333;
  background: transparent;
  font: 400 14px/22px inherit;
}
.dt-days button:hover:not(.selected):not(.muted) {
  background: rgba(0, 0, 0, 0.04);
}
.dt-days button.muted {
  color: #bfbfbf;
}
.dt-days button.range {
  border-radius: 0;
  background: rgba(41, 144, 255, 0.08);
}
.dt-days button.range:nth-child(7n + 1) {
  border-radius: 16px 0 0 16px;
}
.dt-days button.range:nth-child(7n) {
  border-radius: 0 16px 16px 0;
}
.dt-days button.selected {
  border-radius: 16px;
  color: #fff;
  background: #2990ff;
}
.dt-calendar.dual,
.dt-calendar.datetime-combo {
  padding: 0;
  display: grid;
}
.dt-calendar.dual {
  grid-template-columns: 1fr 1fr;
}
.dt-calendar.datetime-combo {
  grid-template-columns: 256px 1fr;
}
.dt-calendar.dual > section,
.dt-calendar.datetime-combo > section:first-child {
  box-sizing: border-box;
  padding: 16px;
}
.dt-calendar.dual > section + section,
.dt-calendar.datetime-combo > section + section {
  border-left: 1px solid #e8e8e8;
}
.dt-calendar.day-only {
  padding: 16px;
}
.dt-calendar.day-only .dt-calendar-body {
  margin: 0;
}
.dt-days.compact button {
  height: 32px;
}
.dt-calendar.metrics {
  padding: 16px;
}
.dt-calendar.metrics .dt-days button {
  height: 40px;
  align-content: center;
  gap: 0;
}
.dt-calendar.metrics .dt-days span {
  font-size: 14px;
  line-height: 20px;
}
.dt-calendar.metrics .dt-days small {
  color: #999;
  font-size: 8px;
  line-height: 10px;
}
.dt-calendar.metrics .dt-days button:nth-child(5n + 4) small {
  color: #e44144;
}
.dt-calendar.metrics .dt-days button:nth-child(5n) small {
  color: #5ab333;
}
.dt-calendar.actions {
  padding-bottom: 52px;
}
.dt-actions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 36px;
  padding: 4px 16px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid #e8e8e8;
}
.dt-actions button {
  height: 28px;
  padding: 0 8px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  background: #fff;
}
.dt-actions .primary {
  color: #fff;
  border-color: #2990ff;
  background: #2990ff;
}
.dt-integrated-time {
  min-width: 0;
}
.dt-integrated-time > header,
.dt-integrated-ampm > header,
.dt-time-panel > header,
.dt-preset-clock > header {
  box-sizing: border-box;
  height: 50px;
  display: grid;
  place-items: center;
  border-bottom: 1px solid #e8e8e8;
  font-size: 14px;
  font-weight: 400;
}
.dt-time-columns {
  position: relative;
  box-sizing: border-box;
  height: 172px;
  padding: 12px 16px;
  display: flex;
  gap: 9px;
}
.dt-time-column {
  position: relative;
  min-width: 0;
  flex: 1 1 0;
  display: grid;
  align-content: start;
  gap: 2px;
}
.dt-time-column button {
  height: 24px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  color: #666;
  background: transparent;
  font: 400 14px/22px inherit;
}
.dt-time-column button:hover {
  color: #333;
  background: rgba(0, 0, 0, 0.04);
}
.dt-time-column button.selected {
  color: #2990ff;
  background: rgba(41, 144, 255, 0.08);
  font-weight: 700;
}
.dt-time-column + i {
  position: relative;
  z-index: 2;
  width: 3px;
  margin-top: 58px;
  flex: 0 0 3px;
  color: #333;
  font-style: normal;
  font-weight: 700;
}
.dt-integrated-time footer,
.dt-preset-clock footer {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 38px;
  padding: 8px 12px;
}
.dt-now {
  border: 0;
  color: #2990ff;
  background: transparent;
}
.dt-integrated-ampm {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.dt-integrated-ampm > header {
  width: 100%;
  flex: 0 0 50px;
}
.dt-integrated-ampm > button,
.dt-ampm button {
  width: 48px;
  height: 24px;
  margin: 30px auto 0;
  border: 0;
  border-radius: 4px;
  color: #666;
  background: transparent;
}
.dt-integrated-ampm > button + button,
.dt-ampm button + button {
  margin-top: 8px;
}
.dt-integrated-ampm > button.selected,
.dt-ampm button.selected {
  color: #2990ff;
  background: rgba(41, 144, 255, 0.08);
  font-weight: 700;
}
.dt-time-panel {
  height: 222px;
}
.dt-time-panel.hms {
  width: 191px;
}
.dt-time-panel.hm {
  width: 136px;
}
.dt-time-panel.hour-range {
  width: 176px;
}
.dt-time-panel.ampm {
  width: 81px;
}
.dt-time-panel .dt-time-columns {
  height: 172px;
}
.dt-ampm {
  display: grid;
  align-content: start;
}
.dt-time-panel.hour-range .dt-time-columns {
  gap: 0;
  padding-inline: 16px;
}
.dt-time-panel.hour-range .dt-time-column + i {
  width: 10px;
  flex-basis: 10px;
  text-align: center;
}
.dt-choice-panel {
  padding: 16px;
}
.dt-choice-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 11px 0;
}
.dt-choice-grid button {
  height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 16px;
  color: #333;
  background: transparent;
  font: 400 12px/18px inherit;
}
.dt-choice-grid button:hover {
  background: rgba(0, 0, 0, 0.04);
}
.dt-choice-grid button.range {
  border-radius: 0;
  background: rgba(41, 144, 255, 0.08);
}
.dt-choice-grid button.range-start {
  border-radius: 16px 0 0 16px;
}
.dt-choice-grid button.range-end {
  border-radius: 0 16px 16px 0;
}
.dt-choice-grid button.selected:not(.range) {
  border-radius: 16px;
}
.dt-choice-grid button.selected {
  color: #fff;
  background: #2990ff;
}
.dt-split-panel {
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.dt-split-panel > section {
  box-sizing: border-box;
  padding: 16px;
}
.dt-split-panel > section + section {
  border-left: 1px solid #e8e8e8;
}
.dt-split-panel .dt-choice-grid {
  margin-top: 12px;
}
.dt-preset {
  display: grid;
  grid-template-columns: 64px 1fr;
  overflow: hidden;
}
.dt-preset aside {
  padding: 4px;
  display: grid;
  align-content: start;
  gap: 2px;
  border-right: 1px solid #e8e8e8;
}
.dt-preset aside button {
  height: 30px;
  border: 0;
  border-radius: 4px;
  color: #666;
  background: transparent;
  font: 400 14px/22px inherit;
}
.dt-preset aside button:hover {
  color: #333;
  background: rgba(0, 0, 0, 0.04);
}
.dt-preset aside button.selected {
  color: #2990ff;
  background: rgba(41, 144, 255, 0.08);
}
.dt-preset-calendar {
  box-sizing: border-box;
  padding: 16px;
}
.dt-preset.cross {
  grid-template-columns: 64px 1fr;
}
.dt-preset-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.dt-preset-dual > section {
  box-sizing: border-box;
  padding: 16px;
}
.dt-preset-dual > section + section {
  border-left: 1px solid #e8e8e8;
}
.dt-preset.time {
  grid-template-columns: 64px 142px 110px;
}
.dt-preset.time .dt-preset-calendar {
  padding: 12px 8px;
}
.dt-preset.time .dt-week span {
  font-size: 9px;
}
.dt-preset.time .dt-days button {
  height: 24px;
  font-size: 10px;
}
.dt-preset-clock {
  position: relative;
  border-left: 1px solid #e8e8e8;
}
.dt-preset-clock .dt-time-columns {
  height: 170px;
  padding: 8px 5px;
  gap: 1px;
}
.dt-preset-clock .dt-time-column button {
  font-size: 10px;
}
.dt-preset-clock .dt-time-column + i {
  margin-inline: -4px;
}
body.theme-dark .datetime-playground,
body.theme-dark .datetime-family,
body.theme-dark .datetime-variant {
  border-color: #343c48;
  background: #1d232d;
}
body.theme-dark .datetime-live,
body.theme-dark .datetime-stage {
  border-color: #343c48;
  background: #171c24;
}
body.theme-dark .datetime-control .modern-select-trigger {
  color: #e4e7ec;
  border-color: #46505e;
  background: #252c37;
}
body.theme-dark .datetime-control .modern-select-menu {
  border-color: #343c48;
  background: #252c37;
}
@media (max-width: 900px) {
  .datetime-gallery {
    grid-template-columns: 1fr;
  }
  .datetime-variant.is-wide {
    grid-column: auto;
  }
  .datetime-stage,
  .datetime-live {
    place-items: center;
    overflow: hidden;
  }
  .datetime-stage .datetime-instance.is-wide,
  .datetime-live .datetime-instance.is-wide {
    zoom: 0.68;
  }
  .datetime-control {
    width: 100%;
  }
  .datetime-live {
    min-height: 400px;
  }
  .dt-field-popup {
    left: 50%;
    transform: translateX(-50%);
  }
}
