.ak-time-input {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  cursor: pointer;
  background-image: none;
}

.ak-time-input:disabled {
  cursor: not-allowed;
}

.ak-time-picker-panel {
  position: fixed;
  z-index: 10000;
  width: min(304px, calc(100vw - 24px));
  display: none;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.98);
  color: #172033;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
  transform-origin: top left;
}

.ak-time-picker-panel.is-open {
  display: block;
}

.ak-time-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 0 9px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.ak-time-picker-value {
  min-width: 76px;
  padding: 7px 9px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  background: #f8fafc;
  color: #172033;
  font: 750 17px/1.1 var(--font, "Segoe UI", Arial, sans-serif);
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.ak-time-picker-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.ak-time-picker-action {
  height: 31px;
  min-width: 38px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #64748b;
  font: 750 11px/1 var(--font, "Segoe UI", Arial, sans-serif);
  cursor: pointer;
}

.ak-time-picker-action:hover,
.ak-time-picker-action:focus-visible {
  border-color: rgba(148, 163, 184, 0.26);
  background: #f8fafc;
  color: #334155;
  outline: none;
}

.ak-time-picker-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px;
  gap: 12px;
  padding-top: 10px;
}

.ak-time-picker-section {
  min-width: 0;
}

.ak-time-picker-section + .ak-time-picker-section {
  position: relative;
  padding-left: 12px;
}

.ak-time-picker-section + .ak-time-picker-section::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 1px;
  background: rgba(148, 163, 184, 0.16);
}

.ak-time-picker-label {
  margin: 0 0 7px;
  color: #8492a6;
  font: 750 10px/1 var(--font, "Segoe UI", Arial, sans-serif);
  text-transform: uppercase;
}

.ak-time-picker-hours,
.ak-time-picker-minutes {
  display: grid;
  gap: 5px;
}

.ak-time-picker-hours {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-height: 216px;
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-width: thin;
}

.ak-time-picker-minutes {
  grid-template-columns: 1fr;
  padding: 6px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 9px;
  background: #f8fafc;
}

.ak-time-picker-btn {
  height: 31px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 7px;
  background: #ffffff;
  color: #334155;
  font: 720 12px/1 var(--font, "Segoe UI", Arial, sans-serif);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}

.ak-time-picker-btn:hover,
.ak-time-picker-btn:focus-visible {
  border-color: rgba(59, 130, 246, 0.24);
  background: #f8fbff;
  color: #1e3a8a;
  outline: none;
}

.ak-time-picker-btn.is-active {
  border-color: rgba(59, 130, 246, 0.36);
  background: #eff6ff;
  color: #1d4ed8;
}

.ak-time-picker-minutes .ak-time-picker-btn {
  background: #ffffff;
}

.ak-time-picker-minutes .ak-time-picker-btn.is-active {
  border-color: rgba(15, 118, 110, 0.30);
  background: #f0fdfa;
  color: #0f766e;
}

.ak-time-picker-foot {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.ak-time-picker-apply,
.ak-time-picker-clear {
  height: 34px;
  border-radius: 8px;
  font: 760 12px/1 var(--font, "Segoe UI", Arial, sans-serif);
  cursor: pointer;
}

.ak-time-picker-apply {
  flex: 1;
  border: 1px solid rgba(15, 118, 110, 0.24);
  background: #f0fdfa;
  color: #0f766e;
}

.ak-time-picker-apply:hover,
.ak-time-picker-apply:focus-visible {
  border-color: rgba(15, 118, 110, 0.36);
  background: #ccfbf1;
  outline: none;
}

.ak-time-picker-clear {
  border: 1px solid transparent;
  background: transparent;
  color: #8492a6;
}

.ak-time-picker-clear:hover,
.ak-time-picker-clear:focus-visible {
  border-color: rgba(148, 163, 184, 0.22);
  background: #f8fafc;
  color: #475569;
  outline: none;
}

body.theme-dark .ak-time-picker-panel {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(16, 24, 39, 0.98);
  color: #e5eef9;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.30);
}

body.theme-dark .ak-time-picker-head,
body.theme-dark .ak-time-picker-foot {
  border-color: rgba(148, 163, 184, 0.14);
}

body.theme-dark .ak-time-picker-value,
body.theme-dark .ak-time-picker-btn {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.76);
  color: #dbeafe;
}

body.theme-dark .ak-time-picker-section + .ak-time-picker-section::before {
  background: rgba(148, 163, 184, 0.14);
}

body.theme-dark .ak-time-picker-minutes {
  border-color: rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.46);
}

body.theme-dark .ak-time-picker-minutes .ak-time-picker-btn {
  background: rgba(15, 23, 42, 0.76);
}

body.theme-dark .ak-time-picker-minutes .ak-time-picker-btn.is-active {
  border-color: rgba(45, 212, 191, 0.28);
  background: rgba(20, 184, 166, 0.12);
  color: #99f6e4;
}

body.theme-dark .ak-time-picker-label,
body.theme-dark .ak-time-picker-action,
body.theme-dark .ak-time-picker-clear {
  color: #94a3b8;
}

body.theme-dark .ak-time-picker-action:hover,
body.theme-dark .ak-time-picker-action:focus-visible,
body.theme-dark .ak-time-picker-btn:hover,
body.theme-dark .ak-time-picker-btn:focus-visible,
body.theme-dark .ak-time-picker-clear:hover,
body.theme-dark .ak-time-picker-clear:focus-visible {
  border-color: rgba(148, 163, 184, 0.20);
  background: rgba(30, 41, 59, 0.74);
  color: #e0f2fe;
}

body.theme-dark .ak-time-picker-btn.is-active {
  border-color: rgba(125, 211, 252, 0.36);
  background: rgba(14, 165, 233, 0.14);
  color: #bae6fd;
}

body.theme-dark .ak-time-picker-apply {
  border-color: rgba(45, 212, 191, 0.24);
  background: rgba(20, 184, 166, 0.12);
  color: #99f6e4;
}

body.theme-dark .ak-time-picker-apply:hover,
body.theme-dark .ak-time-picker-apply:focus-visible {
  border-color: rgba(45, 212, 191, 0.34);
  background: rgba(20, 184, 166, 0.18);
}

@media (max-width: 420px) {
  .ak-time-picker-panel {
    width: calc(100vw - 16px);
    padding: 9px;
  }

  .ak-time-picker-body {
    grid-template-columns: 1fr;
  }

  .ak-time-picker-minutes {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .ak-time-picker-section + .ak-time-picker-section {
    padding-left: 0;
  }

  .ak-time-picker-section + .ak-time-picker-section::before {
    display: none;
  }
}
