.pk-top-header {
  position: relative;
  z-index: 10;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  color: #fff;
  background: #1d1d1d;
}
.pk-top-header .pk-top-bar {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 10px max(10px, env(safe-area-inset-right, 0px)) 10px max(10px, env(safe-area-inset-left, 0px));
  box-sizing: border-box;
}
.pk-top-header .pk-top-title {
  flex: 1;
  min-width: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pk-top-header .pk-top-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; padding-right: 10px; }
.pk-top-header .pk-top-control {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  width: 30px;
  min-width: 30px;
  height: 30px;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color: #fff;
  background: transparent;
  border: 0;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
}
.pk-top-header .pk-top-control::before { content: ""; position: absolute; inset: -7px -5px; }
.pk-top-header .pk-top-home,
.pk-top-header .pk-top-account-control,
.pk-top-header .pk-top-login { flex-basis: 50px; width: 50px; min-width: 50px; }
.pk-top-header .pk-top-control img { display: block; width: 30px; height: 30px; margin: 0; object-fit: contain; }
.pk-top-header .pk-top-control .pk-top-avatar { border-radius: 50%; object-fit: cover; }
.pk-top-header .pk-top-calendar-day {
  position: absolute;
  top: 58%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}
.pk-top-header .pk-top-account { position: relative; display: flex; align-items: center; }
.pk-top-header .account-popup {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  display: none;
  width: min(270px, calc(100vw - 24px));
  max-height: calc(100dvh - 68px);
  margin: 0;
  padding: 6px;
  box-sizing: border-box;
  overflow-y: auto;
  color: #333;
  background: #fff;
  border: 1px solid #e4e9e6;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .16);
}
.pk-top-header .account-popup.active,
.pk-top-header .account-popup.show { display: block; }
.pk-top-header .account-popup a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin: 0;
  padding: 8px 10px;
  box-sizing: border-box;
  color: #333;
  background: transparent;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
  text-decoration: none;
}
.pk-top-header .account-popup img { flex: 0 0 24px; width: 24px; height: 24px; margin: 0; object-fit: contain; filter: brightness(0) opacity(.45); }
.pk-top-header .pk-top-control[aria-expanded="true"] { background: #3b4944; }
.pk-top-header a:focus-visible,
.pk-top-header button:focus-visible { outline: 3px solid #438974; outline-offset: 2px; }
@media (hover: hover) {
  .pk-top-header .pk-top-control:hover { background: #343c38; }
  .pk-top-header .account-popup a:hover { background: #edf5f1; }
}
.reservation-link .pk-management-action,
.header .actions .pk-management-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 40px;
  margin: 0;
  padding: 8px 16px;
  box-sizing: border-box;
  color: #fff;
  background: #4a6fdc;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  transition: background-color .2s ease;
}
.reservation-link .pk-management-action:focus-visible,
.header .actions .pk-management-action:focus-visible { outline: 3px solid #438974; outline-offset: 3px; }
@media (hover: hover) {
  .reservation-link .pk-management-action:hover,
  .header .actions .pk-management-action:hover { color: #fff; background: #3a5fc9; }
}
@media (max-width: 768px) {
  .header .actions .pk-management-action { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .reservation-link .pk-management-action,
  .header .actions .pk-management-action { transition: none; }
}
