.pk-field { position: relative; display: block; }
.pk-field > input { padding-right: 46px !important; }
.pk-field > input[readonly] { cursor: pointer; }
.pk-trigger {
  position: absolute; right: 0; top: 0; bottom: 0; width: 44px;
  display: grid; place-items: center; padding: 0;
  background: none; border: 0; border-left: 1px solid rgba(200, 215, 225, .14);
  color: #ff733a; cursor: pointer; transition: background-color .2s ease;
}
.pk-trigger:hover { background: rgba(226, 97, 3, .1); }
.pk-trigger svg { width: 18px; height: 18px; }

.pk-backdrop { position: fixed; inset: 0; z-index: 1300; background: transparent; }
.pk-backdrop.sheet { background: rgba(4, 5, 7, 0); transition: background-color .18s ease; }
.pk-backdrop.sheet.in { background: rgba(4, 5, 7, .7); }

.pk {
  position: fixed; z-index: 1301;
  background: #121417; border: 1px solid rgba(200, 215, 225, .18); border-top: 2px solid #e26103;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .6);
  color: #f5f5f5; font-family: font_rc, 'Roboto Condensed', 'Noto Sans SC', 'Microsoft YaHei', Arial, sans-serif;
  border-radius: 0 !important; user-select: none; -webkit-user-select: none;
}
.pk *, .pk *::before, .pk *::after { box-sizing: border-box; border-radius: 0 !important; }
.pk-pop { opacity: 0; transform: translateY(-6px); transition: opacity .16s ease, transform .16s ease; }
.pk-pop.in { opacity: 1; transform: none; }
.pk-sheet {
  left: 0; right: 0; bottom: 0; top: auto;
  transform: translateY(100%); transition: transform .22s cubic-bezier(.2, .7, .3, 1);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.pk-sheet.in { transform: none; }

.pk-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 14px 16px 10px; border-bottom: 1px solid rgba(200, 215, 225, .09); }
.pk-title { font-family: font_en, 'Noto Sans SC', sans-serif; font-size: 18px; letter-spacing: .06em; text-transform: uppercase; color: #aab3ba; }
.pk-readout { font-family: font_en_heavy, font_en, 'Arial Narrow', sans-serif; font-size: 34px; line-height: 1; color: #ff733a; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.pk-readout.sm { font-size: 22px; }

.pk-cols { display: flex; align-items: flex-end; justify-content: center; gap: 4px; padding: 12px 14px 6px; }
.pk-col { display: flex; flex-direction: column; align-items: center; }
.pk-col-label { font-family: font_en, 'Noto Sans SC', sans-serif; font-size: 13px; letter-spacing: .12em; color: #7b8389; margin-bottom: 6px; }
.pk-sep { font-family: font_en_heavy, font_en, sans-serif; font-size: 26px; color: #646c72; padding-bottom: 86px; width: 12px; text-align: center; }
.pk-wheel {
  position: relative; width: 64px; height: 200px; overflow-y: auto; overscroll-behavior: contain;
  scroll-snap-type: y mandatory; scrollbar-width: none; outline: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 32%, #000 68%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 32%, #000 68%, transparent 100%);
  background:
    linear-gradient(#e26103, #e26103) 0 80px / 100% 1px no-repeat,
    linear-gradient(#e26103, #e26103) 0 120px / 100% 1px no-repeat,
    linear-gradient(rgba(226, 97, 3, .1), rgba(226, 97, 3, .1)) 0 80px / 100% 40px no-repeat;
  background-attachment: local, local, local;
}
.pk-wheel { background-attachment: scroll; }
.pk-wheel::-webkit-scrollbar { display: none; }
.pk-wheel:focus-visible { box-shadow: inset 0 0 0 1px rgba(255, 115, 58, .6); }
.pk-list { padding: 80px 0; }
.pk-item {
  height: 40px; display: grid; place-items: center; scroll-snap-align: center;
  font-family: font_en, 'Arial Narrow', sans-serif; font-size: 22px; color: #646c72; cursor: pointer;
  font-variant-numeric: tabular-nums; transition: color .12s ease;
}
.pk-item.on { color: #fff; font-family: font_en_heavy, font_en, sans-serif; font-size: 26px; }

.pk-foot { display: flex; gap: 10px; padding: 10px 14px 14px; }
.pk-btn {
  flex: 1; height: 42px; border: 1px solid transparent; cursor: pointer;
  font-family: font_en, 'Noto Sans SC', sans-serif; font-size: 19px; letter-spacing: .04em; text-transform: uppercase;
  transition: background-color .2s ease, border-color .2s ease;
}
.pk-btn.primary { background: #e26103; border-color: #ff8a4f; color: #121210; }
.pk-btn.primary:hover { background: #ff733a; }
.pk-btn.ghost { background: transparent; border-color: rgba(210, 222, 230, .32); color: #fff; }
.pk-btn.ghost:hover { border-color: #fff; }

.pk-field > input[readonly] { caret-color: transparent; }
.pk-nav:disabled { opacity: .3; cursor: default; }
.pk-btn:disabled { opacity: .45; cursor: not-allowed; }
.pk-dt-body { display: flex; align-items: stretch; }
.pk-cal { padding: 12px 14px 8px; border-right: 1px solid rgba(200, 215, 225, .09); }
.pk-cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.pk-month { font-family: font_en, 'Noto Sans SC', sans-serif; font-size: 19px; letter-spacing: .05em; text-transform: uppercase; }
.pk-nav { width: 32px; height: 32px; background: none; border: 1px solid rgba(200, 215, 225, .17); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.pk-nav:hover { border-color: #e26103; color: #ff733a; }
.pk-grid { display: grid; grid-template-columns: repeat(7, 36px); gap: 3px; }
.pk-wd { height: 24px; display: grid; place-items: center; font-family: font_en, 'Noto Sans SC', sans-serif; font-size: 12px; letter-spacing: .08em; color: #646c72; }
.pk-day {
  height: 34px; display: grid; place-items: center; padding: 0;
  background: transparent; border: 1px solid transparent; color: #d2d9de; cursor: pointer;
  font-family: font_en, 'Arial Narrow', sans-serif; font-size: 17px; font-variant-numeric: tabular-nums;
}
.pk-day:hover:not(.empty) { border-color: rgba(226, 97, 3, .6); }
.pk-day.today { border-color: rgba(200, 215, 225, .32); }
.pk-day.on { background: #e26103; border-color: #e26103; color: #121210; font-family: font_en_heavy, font_en, sans-serif; }
.pk-day.empty { cursor: default; }
.pk-cols.compact { padding: 12px 16px 6px; align-items: flex-end; }
.pk-cols.compact .pk-wheel { width: 58px; }

@media (max-width: 600px), (pointer: coarse) {
  .pk-sheet .pk-wheel { width: 21vw; max-width: 84px; }
  .pk-sheet .pk-readout { font-size: 30px; }
  .pk-sheet .pk-btn { height: 48px; }
  .pk-sheet.pk-dt .pk-dt-body { flex-direction: column; }
  .pk-sheet.pk-dt .pk-cal { border-right: 0; border-bottom: 1px solid rgba(200, 215, 225, .09); }
  .pk-sheet .pk-day { height: 36px; }
  .pk-sheet { max-height: 92vh; overflow-y: auto; }
  .pk-sheet .pk-grid { grid-template-columns: repeat(7, 1fr); }
  .pk-sheet .pk-day { height: 40px; }
  .pk-sheet.pk-dt .pk-wheel {
    height: 160px;
    background:
      linear-gradient(#e26103, #e26103) 0 60px / 100% 1px no-repeat,
      linear-gradient(#e26103, #e26103) 0 100px / 100% 1px no-repeat,
      linear-gradient(rgba(226, 97, 3, .1), rgba(226, 97, 3, .1)) 0 60px / 100% 40px no-repeat;
  }
  .pk-sheet.pk-dt .pk-list { padding: 60px 0; }
  .pk-sheet.pk-dt .pk-sep { padding-bottom: 66px; }
}
@media (prefers-reduced-motion: reduce) {
  .pk-pop, .pk-sheet, .pk-backdrop.sheet { transition: none; }
}

.pk-date {
  position: absolute; right: 52px; top: 50%; transform: translateY(-50%); pointer-events: none;
  padding: 3px 8px; border: 1px solid rgba(226, 97, 3, .5); background: rgba(226, 97, 3, .1);
  font-family: font_en, 'Arial Narrow', sans-serif; font-size: 14px; letter-spacing: .04em; color: #ff9a62; text-transform: uppercase;
}
.pk-side { display: flex; flex-direction: column; }
.pk-side > .pk-col-label { padding: 12px 14px 0; margin: 0; }
.pk-withdate .pk-cal { padding-top: 6px; border-right: 0; }
.pk-withdate .pk-side + .pk-side { border-left: 1px solid rgba(200, 215, 225, .09); }
.pk-day.off { color: #3a4046; cursor: not-allowed; }
.pk-day.off:hover { border-color: transparent; }
.pk-ampm { margin-left: 8px; }
.pk-ampm .pk-wheel { width: 62px; }
.pk-ampm .pk-item { font-size: 18px; }
.pk-ampm .pk-item.on { font-size: 21px; }
.pk-withdate .pk-readout { font-size: 26px; }
@media (max-width: 600px), (pointer: coarse) {
  .pk-sheet.pk-withdate .pk-side + .pk-side { border-left: 0; }
  .pk-sheet.pk-withdate .pk-readout { font-size: 22px; }
  .pk-sheet.pk-withdate .pk-wheel {
    height: 160px;
    background:
      linear-gradient(#e26103, #e26103) 0 60px / 100% 1px no-repeat,
      linear-gradient(#e26103, #e26103) 0 100px / 100% 1px no-repeat,
      linear-gradient(rgba(226, 97, 3, .1), rgba(226, 97, 3, .1)) 0 60px / 100% 40px no-repeat;
  }
  .pk-sheet.pk-withdate .pk-list { padding: 60px 0; }
  .pk-sheet.pk-withdate .pk-sep { padding-bottom: 66px; }
}
