[data-pbx="yadisk"][hidden] {
  display: none !important;
}

.pbx-progress--busy i {
  width: 35%;
  animation: p55yd-busy 1.2s ease-in-out infinite;
}

@keyframes p55yd-busy {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(300%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pbx-progress--busy i {
    width: 100%;
    opacity: 0.5;
    animation: none;
  }
}

html.p55yd-open,
html.p55yd-open body {
  overflow: hidden;
}

.p55yd {
  --p55yd-brand: #00394c;
  --p55yd-accent: #00838f;
  --p55yd-accent-dark: #00737d;
  --p55yd-ink: #0d1b22;
  --p55yd-muted: #5b6b73;
  --p55yd-bg: #f6f4ef;
  --p55yd-soft: #f1eee7;
  --p55yd-line: #e6e2d9;
  --p55yd-card: #ffffff;
  --p55yd-danger: #b42318;
  --p55yd-warn-bg: #fff3d6;
  --p55yd-warn: #93370d;
  --p55yd-sans: "Pbx Manrope", Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  --p55yd-display: "Pbx Unbounded", Unbounded, "Pbx Manrope", Manrope, system-ui, sans-serif;
  position: fixed;
  inset: 0;
  z-index: 10200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  color: var(--p55yd-ink);
  font: 400 15px/1.45 var(--p55yd-sans);
  -webkit-font-smoothing: antialiased;
}

.p55yd[hidden] {
  display: none;
}

.p55yd *,
.p55yd *::before,
.p55yd *::after {
  box-sizing: border-box;
}

.p55yd [hidden] {
  display: none !important;
}

.p55yd__backdrop {
  position: absolute;
  inset: 0;
  background: #0d1b2299;
}

.p55yd__box {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1040px;
  height: min(820px, 100%);
  overflow: hidden;
  border-radius: 24px;
  background: var(--p55yd-bg);
  box-shadow: 0 1px 2px #0d1b220d, 0 24px 64px -16px #0d1b2266;
}

.p55yd__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px 0;
}

.p55yd__title {
  margin: 0;
  color: var(--p55yd-brand);
  font: 700 22px/1.2 var(--p55yd-display);
  letter-spacing: 0;
}

.p55yd__tabs {
  display: flex;
  gap: 6px;
  margin: 18px 28px 0;
  padding: 4px;
  align-self: flex-start;
  border-radius: 999px;
  background: var(--p55yd-soft);
}

.p55yd__tab {
  height: 40px;
  margin: 0;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--p55yd-muted);
  font: 700 14px/1 var(--p55yd-sans);
  cursor: pointer;
}

.p55yd__tab[aria-selected="true"] {
  background: var(--p55yd-card);
  color: var(--p55yd-ink);
  box-shadow: 0 1px 2px #0d1b2214, 0 4px 12px -6px #0d1b2233;
}

.p55yd__panel {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  margin-top: 16px;
}

.p55yd__link,
.p55yd__login {
  margin: 0 28px 14px;
  padding: 18px 20px;
  border: 1px solid var(--p55yd-line);
  border-radius: 20px;
  background: var(--p55yd-card);
}

.p55yd__label {
  display: block;
  margin: 0 0 8px;
  color: var(--p55yd-ink);
  font: 700 14px/1.3 var(--p55yd-sans);
}

.p55yd__link-row {
  display: flex;
  gap: 10px;
}

.p55yd__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 48px;
  margin: 0;
  padding: 0 18px;
  border: 1.5px solid var(--p55yd-line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--p55yd-ink);
  font: 500 15px/1 var(--p55yd-sans);
  outline: none;
}

.p55yd__input:focus {
  border-color: var(--p55yd-accent);
  box-shadow: 0 0 0 3px #00838f33;
}

.p55yd__hint,
.p55yd__lead {
  margin: 8px 0 0;
  color: var(--p55yd-muted);
  font-size: 13px;
}

.p55yd__lead {
  margin: 0 0 14px;
  color: var(--p55yd-ink);
  font-size: 15px;
}

.p55yd__ya {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fc3f1d;
  color: #ffffff;
  font: 800 14px/1 var(--p55yd-sans);
}

.p55yd__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 28px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--p55yd-line);
}

.p55yd__crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  min-width: 0;
}

.p55yd__crumb {
  max-width: 220px;
  margin: 0;
  padding: 6px 8px;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--p55yd-accent-dark);
  font: 700 14px/1.2 var(--p55yd-sans);
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.p55yd__crumb:hover {
  background: var(--p55yd-soft);
}

.p55yd__crumb--current {
  color: var(--p55yd-ink);
  cursor: default;
}

.p55yd__crumb--current:hover {
  background: transparent;
}

.p55yd__sep {
  display: inline-flex;
  color: var(--p55yd-muted);
}

.p55yd__all {
  flex: none;
}

.p55yd__body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 14px 28px 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.p55yd__body:focus,
.p55yd__crumb--current:focus:not(:focus-visible),
.p55yd__login:focus {
  outline: none;
}

.p55yd__status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--p55yd-card);
  color: var(--p55yd-muted);
  font-weight: 600;
}

.p55yd__status--error {
  background: #fdecea;
  color: var(--p55yd-danger);
}

.p55yd__status--note {
  background: var(--p55yd-warn-bg);
  color: var(--p55yd-warn);
}

.p55yd__dirs,
.p55yd__grid {
  margin: 0;
  padding: 0;
  list-style: none;
}

.p55yd__dirs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.p55yd__dirs:not(:empty) {
  margin-bottom: 16px;
}

.p55yd-dir {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 56px;
  margin: 0;
  padding: 0 14px;
  border: 1.5px solid var(--p55yd-line);
  border-radius: 16px;
  background: var(--p55yd-card);
  color: var(--p55yd-ink);
  font: 700 14px/1.2 var(--p55yd-sans);
  text-align: left;
  cursor: pointer;
}

.p55yd-dir:hover {
  border-color: var(--p55yd-ink);
}

.p55yd-dir svg:first-child {
  color: var(--p55yd-accent);
}

.p55yd-dir svg:last-child {
  margin-left: auto;
  color: var(--p55yd-muted);
}

.p55yd-dir__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.p55yd__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.p55yd-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
  padding: 6px;
  border: 2px solid transparent;
  border-radius: 16px;
  background: var(--p55yd-card);
  color: var(--p55yd-ink);
  font: 600 12px/1.3 var(--p55yd-sans);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 1px 2px #0d1b220d;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  touch-action: pan-y pinch-zoom;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.p55yd-tile:hover {
  box-shadow: 0 1px 2px #0d1b220d, 0 8px 20px -10px #0d1b2240;
}

.p55yd-tile[aria-pressed="true"] {
  border-color: var(--p55yd-accent);
  background: #e6f4f5;
}

.p55yd-tile__media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 10px;
  background: var(--p55yd-soft);
}

.p55yd-tile__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
}

.p55yd-tile__media--broken .p55yd-tile__img {
  visibility: hidden;
}

.p55yd-tile__none {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 100%;
  color: var(--p55yd-muted);
  font-size: 12px;
}

.p55yd-tile__mark {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #0d1b2259;
  color: transparent;
  box-shadow: 0 1px 4px #0d1b2240;
}

.p55yd-tile[aria-pressed="true"] .p55yd-tile__mark {
  background: var(--p55yd-accent);
  color: #ffffff;
}

.p55yd-tile__name {
  display: block;
  margin: 6px 2px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.p55yd__more {
  height: 1px;
}

.p55yd__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 28px;
  border-top: 1px solid var(--p55yd-line);
  background: var(--p55yd-card);
}

.p55yd__count {
  margin: 0;
  color: var(--p55yd-muted);
  font-weight: 600;
}

.p55yd__foot-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.p55yd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  margin: 0;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--p55yd-ink);
  color: #ffffff;
  font: 700 15px/1 var(--p55yd-sans);
  text-transform: none;
  letter-spacing: 0;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: none;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.p55yd-btn svg {
  flex: none;
}

.p55yd-btn--primary {
  background: var(--p55yd-accent);
  box-shadow: 0 10px 24px -12px #00838faa;
}

.p55yd-btn--primary:hover {
  background: var(--p55yd-accent-dark);
}

.p55yd-btn--dark:hover {
  background: var(--p55yd-brand);
}

.p55yd-btn--yandex {
  background: var(--p55yd-ink);
}

.p55yd-btn--ghost {
  height: 44px;
  padding: 0 18px;
  border: 1.5px solid var(--p55yd-line);
  background: #ffffff;
  color: var(--p55yd-brand);
  font-size: 14px;
}

.p55yd-btn--ghost:hover {
  border-color: var(--p55yd-ink);
}

.p55yd-btn--small {
  height: 40px;
  padding: 0 16px;
  font-size: 14px;
}

.p55yd-btn:disabled {
  opacity: 0.45;
  box-shadow: none;
  cursor: default;
}

.p55yd-btn--primary:disabled:hover {
  background: var(--p55yd-accent);
}

.p55yd button:focus-visible,
.p55yd input:focus-visible {
  outline: 3px solid #00838f66;
  outline-offset: 2px;
}

@media (max-width: 767px) {
  .p55yd {
    padding: 0;
  }

  .p55yd__box {
    max-width: none;
    height: 100%;
    border-radius: 0;
  }

  .p55yd__head {
    padding: max(14px, env(safe-area-inset-top)) 16px 0;
  }

  .p55yd__title {
    font-size: 17px;
  }

  .p55yd__tabs {
    align-self: stretch;
    margin: 14px 16px 0;
  }

  .p55yd__tab {
    flex: 1 1 0;
    height: 44px;
  }

  .p55yd__panel {
    margin-top: 12px;
  }

  .p55yd__link,
  .p55yd__login {
    margin: 0 16px 12px;
    padding: 14px;
    border-radius: 16px;
  }

  .p55yd__link-row {
    flex-direction: column;
  }

  .p55yd__login .p55yd-btn {
    width: 100%;
  }

  .p55yd__bar {
    margin: 0 16px;
  }

  .p55yd__body {
    padding: 12px 16px 16px;
  }

  .p55yd__dirs {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .p55yd__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .p55yd-tile {
    padding: 4px;
    border-radius: 14px;
  }

  .p55yd-tile__mark {
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
  }

  .p55yd-tile__name {
    margin-top: 4px;
    font-size: 11px;
  }

  .p55yd__foot {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 16px max(12px, env(safe-area-inset-bottom));
  }

  .p55yd__count {
    text-align: center;
    font-size: 13px;
  }

  .p55yd__foot-buttons {
    flex-direction: row-reverse;
  }

  .p55yd__foot-buttons [data-yd="submit"] {
    flex: 1 1 auto;
  }
}

.pbx--example .pbx-bar .pbx-bar__yadisk {
  display: none !important;
}

@media (max-width: 767px) {
  html.p55yd-photobox .pbx-bar #upload,
  html.p55yd-photobox .pbx-bar .pbx-bar__yadisk {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
  }

  html.p55yd-photobox .pbx-bar .pbx-bar__yadisk {
    height: 48px;
    padding: 0 12px;
  }

  html.p55yd-photobox .pbx-bar {
    column-gap: 10px;
  }

  html.p55yd-photobox .pbx-bar .pbx-bar__select {
    flex: 1 1 100%;
  }
}

.p55yd__field {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

.p55yd__field .p55yd__input {
  width: 100%;
  padding-right: 48px;
}

.p55yd__clear {
  position: absolute;
  top: 50%;
  right: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--p55yd-muted);
  cursor: pointer;
  transform: translateY(-50%);
}

.p55yd__clear:hover {
  background: var(--p55yd-soft);
  color: var(--p55yd-ink);
}

.p55yd__clear[hidden] {
  display: none;
}

.p55yd__howto {
  margin: 6px 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--p55yd-accent-dark);
  font: 700 13px/1.4 var(--p55yd-sans);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.p55yd__picked {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
}

.p55yd__picked[hidden],
.p55yd__link-edit[hidden] {
  display: none;
}

.p55yd__picked-icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #e6f4f5;
  color: var(--p55yd-accent-dark);
}

.p55yd__picked-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  color: var(--p55yd-ink);
  font: 700 15px/1.3 var(--p55yd-sans);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.p55yd__picked .p55yd-btn {
  flex: none;
}

.p55yd__guide {
  margin: 0 0 16px;
  padding: 18px 20px;
  border: 1px solid var(--p55yd-line);
  border-radius: 20px;
  background: var(--p55yd-card);
}

.p55yd__guide[hidden],
.p55yd__personal[hidden],
.p55yd__tools[hidden] {
  display: none;
}

.p55yd__personal {
  margin: 0 0 18px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--p55yd-line);
}

.p55yd__guide-title {
  margin: 0 0 8px;
  color: var(--p55yd-brand);
  font: 700 16px/1.3 var(--p55yd-sans);
}

.p55yd__guide-text {
  margin: 0 0 14px;
  color: var(--p55yd-ink);
  font-size: 14px;
}

.p55yd__personal .p55yd-btn[hidden] {
  display: none;
}

.p55yd__steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.p55yd-step {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.p55yd-step__text {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  color: var(--p55yd-ink);
  font-size: 14px;
}

.p55yd-step__num {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--p55yd-accent);
  color: #ffffff;
  font: 800 13px/1 var(--p55yd-sans);
}

.p55yd-step__img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--p55yd-line);
  border-radius: 12px;
}

.p55yd-step--2 .p55yd-step__img {
  max-width: 360px;
}

.p55yd__tools {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 28px 12px;
}

.p55yd-seg {
  display: inline-flex;
  flex: none;
  padding: 4px;
  border-radius: 999px;
  background: var(--p55yd-soft);
}

.p55yd-seg__btn {
  height: 36px;
  margin: 0;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--p55yd-muted);
  font: 700 14px/1 var(--p55yd-sans);
  cursor: pointer;
}

.p55yd-seg__btn[aria-pressed="true"] {
  background: var(--p55yd-card);
  color: var(--p55yd-ink);
  box-shadow: 0 1px 2px #0d1b221a;
}

.p55yd__search {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  min-width: 0;
  color: var(--p55yd-muted);
}

.p55yd__search > svg {
  position: absolute;
  left: 14px;
  pointer-events: none;
}

.p55yd__search-input {
  width: 100%;
  min-width: 0;
  height: 44px;
  margin: 0;
  padding: 0 48px 0 40px;
  border: 1.5px solid var(--p55yd-line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--p55yd-ink);
  font: 500 15px/1 var(--p55yd-sans);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.p55yd__search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.p55yd__search-input:focus {
  border-color: var(--p55yd-accent);
  box-shadow: 0 0 0 3px #00838f33;
}

.p55yd-tile__dir {
  display: block;
  overflow: hidden;
  margin-top: 1px;
  padding: 0 2px;
  color: var(--p55yd-muted);
  font-size: 11px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.p55yd-tile__media--loading {
  background: linear-gradient(100deg, var(--p55yd-soft) 30%, #faf8f3 50%, var(--p55yd-soft) 70%) 0 0 / 300% 100%;
  animation: p55yd-shimmer 1.4s linear infinite;
}

.p55yd-tile__media--loading .p55yd-tile__img {
  opacity: 0;
}

@keyframes p55yd-shimmer {
  from {
    background-position: 100% 0;
  }

  to {
    background-position: 0 0;
  }
}

.p55yd-tile__fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  color: #a7b1b5;
}

.p55yd-tile__media--broken .p55yd-tile__fallback {
  display: flex;
}

@media (prefers-reduced-motion: reduce) {
  .p55yd-tile__media--loading {
    animation: none;
    background: var(--p55yd-soft);
  }
}

@media (max-width: 767px) {
  .p55yd__tools {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin: 0 16px 10px;
  }

  .p55yd-seg__btn {
    flex: 1 1 0;
  }

  .p55yd__guide {
    padding: 14px;
    border-radius: 16px;
  }

  .p55yd-step--2 .p55yd-step__img {
    max-width: none;
  }

  .p55yd__picked .p55yd-btn {
    padding: 0 12px;
  }
}

.p55yd__personal .p55yd-btn {
  max-width: 100%;
  height: auto;
  min-height: 48px;
  padding-top: 10px;
  padding-bottom: 10px;
  white-space: normal;
  text-align: left;
}

@media (max-width: 767px) {
  .p55yd__personal .p55yd-btn {
    width: 100%;
    justify-content: flex-start;
  }
}

.p55yd--drag .p55yd__body {
  -webkit-user-select: none;
  user-select: none;
  cursor: grabbing;
}

.p55yd__pills {
  position: absolute;
  bottom: 14px;
  left: 50%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 32px);
  pointer-events: none;
  transform: translateX(-50%);
}

.p55yd__load,
.p55yd__warn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 10px 18px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--p55yd-ink);
  color: #ffffff;
  font: 600 13px/1.2 var(--p55yd-sans);
  box-shadow: 0 8px 24px -8px #0d1b2299;
}

.p55yd__load {
  animation: p55yd-load-in 0.2s 0.3s both;
}

.p55yd__warn {
  background: var(--p55yd-warn-bg);
  color: var(--p55yd-warn);
  animation: p55yd-load-in 0.2s both;
}

.p55yd__load-text:empty,
.p55yd__load-hint:empty {
  display: none;
}

.p55yd__load-text,
.p55yd__load-hint {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.p55yd__spin {
  flex: none;
  width: 16px;
  height: 16px;
  border: 2px solid #ffffff55;
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: p55yd-spin 0.8s linear infinite;
}

.p55yd__load-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: #4fd1d9;
  transition: width 0.3s;
}

@keyframes p55yd-load-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes p55yd-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .p55yd__spin {
    animation: none;
  }

  .p55yd__load,
  .p55yd__warn {
    animation: none;
  }

  .p55yd__load-bar {
    transition: none;
  }
}

.p55yd__actions {
  display: flex;
  flex: none;
  gap: 8px;
}

@media (max-width: 767px) {
  .p55yd__bar {
    flex-wrap: wrap;
  }

  .p55yd__crumbs {
    flex: 1 1 100%;
  }

  .p55yd__actions {
    flex: 1 1 100%;
  }

  .p55yd__actions .p55yd-btn {
    flex: 1 1 0;
    padding: 0 10px;
  }
}

@media (min-width: 768px) and (max-height: 760px) {
  .p55yd {
    padding: 12px;
  }

  .p55yd__head {
    padding: 14px 28px 0;
  }

  .p55yd__title {
    font-size: 18px;
  }

  .p55yd__tabs {
    margin: 8px 28px 0;
  }

  .p55yd__tab {
    height: 34px;
  }

  .p55yd__panel {
    margin-top: 8px;
  }

  .p55yd__link,
  .p55yd__login {
    margin: 0 28px 10px;
    padding: 10px 14px;
  }

  .p55yd__tools {
    margin: 0 28px 8px;
  }

  .p55yd__bar {
    padding-bottom: 8px;
  }

  .p55yd__body {
    padding: 10px 28px 14px;
  }

  .p55yd__foot {
    padding: 10px 28px;
  }

  .p55yd__foot .p55yd-btn {
    height: 40px;
  }

  .p55yd__grid,
  html.pb-phone .p55yd__grid {
    grid-template-columns: repeat(auto-fill, minmax(116px, 1fr));
    gap: 8px;
  }

  .p55yd__pills {
    bottom: 10px;
  }
}

@media (min-width: 768px) and (max-height: 640px) {
  .p55yd__head {
    position: absolute;
    top: 10px;
    right: 28px;
    z-index: 3;
    padding: 0;
  }

  .p55yd__title {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .p55yd__tabs {
    margin: 10px 28px 0;
  }

  .p55yd__link {
    margin-bottom: 6px;
    padding: 0;
    border: 0;
    background: none;
  }
}

@media (min-width: 768px) and (max-height: 520px) {
  .p55yd {
    --p55yd-pad-left: max(20px, env(safe-area-inset-left));
    --p55yd-pad-right: max(20px, env(safe-area-inset-right));
    padding: 0;
  }

  .p55yd__box {
    height: 100%;
    border-radius: 0;
  }

  .p55yd__head {
    right: var(--p55yd-pad-right);
  }

  .p55yd__tabs {
    margin: 10px var(--p55yd-pad-right) 0 var(--p55yd-pad-left);
  }

  .p55yd__link,
  .p55yd__login {
    margin: 0 var(--p55yd-pad-right) 6px var(--p55yd-pad-left);
  }

  .p55yd__tools,
  .p55yd__bar {
    margin-right: var(--p55yd-pad-right);
    margin-left: var(--p55yd-pad-left);
  }

  .p55yd__body {
    padding: 10px var(--p55yd-pad-right) 14px var(--p55yd-pad-left);
  }

  .p55yd__foot {
    padding: 10px var(--p55yd-pad-right) max(10px, env(safe-area-inset-bottom)) var(--p55yd-pad-left);
  }
}
