.pl-home-prototype__footer {
  border-top: 1px solid var(--pl-shell-border, #1d2939);
  background: var(--pl-shell-surface, #fff);
}

.pl-home-prototype__container--footer {
  padding-top: 6px;
  padding-bottom: 6px;
  font-weight: 600;
}

.pl-home-footer-minimal {
  min-height: 60px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  position: relative;
}

.pl-home-footer-minimal__burger {
  width: 36px;
  height: 36px;
  border: 1px solid var(--pl-shell-border, #1d2939);
  border-radius: 9px;
  background: color-mix(in srgb, var(--pl-shell-surface-alt, #f8fafc) 65%, transparent);
  color: var(--pl-shell-text, #101828);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.pl-home-footer-minimal__burger span,
.pl-home-footer-minimal__socials a span,
.pl-home-footer-minimal__panel-header button span {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pl-home-footer-minimal__burger svg,
.pl-home-footer-minimal__socials a svg,
.pl-home-footer-minimal__panel-header button svg {
  width: 18px;
  height: 18px;
  display: block;
}

.pl-home-footer-minimal__brand {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.96rem;
  color: var(--pl-text-secondary, var(--pl-shell-text, #101828));
  text-decoration: none;
}

.pl-home-prototype[data-pl-shell-mode="dark"] .pl-home-footer-minimal__brand,
html[data-pl-shell-mode="dark"] .pl-home-prototype .pl-home-footer-minimal__brand {
  color: var(--pl-shell-text, #e5e7eb);
}

.pl-home-footer-minimal__links {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  white-space: nowrap;
}

.pl-home-footer-minimal__legal,
.pl-home-footer-minimal__notifications {
  color: var(--pl-shell-text, #101828);
  text-decoration: none;
  white-space: nowrap;
  font-size: 0.96rem;
}

.pl-home-footer-minimal__separator {
  color: var(--pl-text-secondary, var(--pl-shell-text, #101828));
  opacity: 0.62;
}

.pl-home-footer-minimal__socials {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
}

.pl-home-footer-minimal__socials a {
  width: 32px;
  height: 32px;
  border: 1px solid var(--pl-shell-border, #1d2939);
  border-radius: 8px;
  color: var(--pl-shell-text, #101828);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--pl-shell-surface-alt, #f8fafc) 60%, transparent);
}

.pl-home-footer-minimal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.22);
  z-index: 8;
}

.pl-home-footer-minimal__panel {
  position: absolute;
  left: 0;
  bottom: calc(100% + 6px);
  width: min(320px, calc(100vw - 24px));
  max-height: min(64vh, 380px);
  overflow: auto;
  border: 1px solid var(--pl-shell-border, #1d2939);
  border-radius: 12px;
  background: var(--pl-shell-surface, #fff);
  box-shadow: 0 16px 38px rgba(16, 24, 40, 0.16);
  z-index: 9;
}

.pl-home-footer-minimal__panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--pl-shell-border, #1d2939);
}

.pl-home-footer-minimal__panel-header button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--pl-shell-border, #1d2939);
  border-radius: 8px;
  background: transparent;
  color: var(--pl-shell-text, #101828);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.pl-home-footer-minimal__panel-list {
  margin: 0;
  padding: 8px;
  list-style: none;
  display: grid;
  gap: 6px;
}

.pl-home-footer-minimal__panel-list a {
  display: block;
  border: 1px solid color-mix(in srgb, var(--pl-content-accent, #0b63ce) 34%, var(--pl-shell-border, #1d2939) 66%);
  border-radius: 9px;
  padding: 8px 10px;
  color: var(--pl-content-accent, #0b63ce);
  background: color-mix(in srgb, var(--pl-content-accent, #0b63ce) 12%, var(--pl-shell-surface, #fff) 88%);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.pl-home-footer-minimal__burger:focus-visible,
.pl-home-footer-minimal__socials a:focus-visible,
.pl-home-footer-minimal__legal:focus-visible,
.pl-home-footer-minimal__notifications:focus-visible,
.pl-home-footer-minimal__panel-list a:focus-visible,
.pl-home-footer-minimal__panel-header button:focus-visible {
  outline: 2px solid var(--pl-content-accent, #0b63ce);
  outline-offset: 2px;
}

.pl-home-footer-minimal__legal:hover,
.pl-home-footer-minimal__notifications:hover,
.pl-home-footer-minimal__socials a:hover,
.pl-home-footer-minimal__burger:hover,
.pl-home-footer-minimal__panel-list a:hover,
.pl-home-footer-minimal__panel-header button:hover {
  background: color-mix(in srgb, var(--pl-shell-surface-alt, #f8fafc) 70%, transparent);
}

.pl-home-footer-minimal__panel-list a:hover,
.pl-home-footer-minimal__panel-list a:active {
  background: var(--pl-accent-safe-bg, var(--pl-content-accent, #0b63ce));
  border-color: var(--pl-accent-safe-border, var(--pl-content-accent, #0b63ce));
  color: var(--pl-accent-safe-fg, var(--pl-text-on-accent, #ffffff));
}

.pl-home-footer-minimal__panel-list a:focus-visible {
  background: var(--pl-accent-safe-bg-hover, var(--pl-accent-safe-bg, var(--pl-content-accent, #0b63ce)));
  border-color: var(--pl-accent-safe-border-hover, var(--pl-accent-safe-border, var(--pl-content-accent, #0b63ce)));
  color: var(--pl-accent-safe-fg-hover, var(--pl-accent-safe-fg, var(--pl-text-on-accent, #ffffff)));
}

@media (max-width: 768px) {
  .pl-home-prototype__container--footer {
    padding-top: 5px;
    padding-bottom: 5px;
  }

  .pl-home-footer-minimal {
    height: 60px;
    min-height: 60px;
    overflow: visible;
    box-sizing: border-box;
    padding-bottom: env(safe-area-inset-bottom);
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: 1fr 1fr;
    column-gap: 4px;
    row-gap: 0;
    align-items: center;
  }

  .pl-home-footer-minimal__burger {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }

  .pl-home-footer-minimal__links {
    grid-column: 2;
    grid-row: 1;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    justify-self: center;
    gap: 6px;
  }

  .pl-home-footer-minimal__legal,
  .pl-home-footer-minimal__notifications,
  .pl-home-footer-minimal__separator {
    font-size: 0.82rem;
    line-height: 1.14;
  }

  .pl-home-footer-minimal__legal,
  .pl-home-footer-minimal__notifications {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .pl-home-footer-minimal__brand {
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
    max-width: 100%;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.9rem;
    line-height: 1.14;
    opacity: 1;
  }

  .pl-home-footer-minimal__socials {
    grid-column: 3;
    grid-row: 1 / span 2;
    min-width: 0;
    justify-content: flex-end;
    justify-self: end;
    align-self: center;
    gap: 4px;
  }

  .pl-home-footer-minimal__socials a {
    width: 30px;
    height: 30px;
    border-radius: 7px;
  }

  .pl-home-footer-minimal__socials.is-inline {
    display: inline-flex;
    align-items: center;
  }

  .pl-home-footer-minimal__socials.is-grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 30px);
    grid-auto-rows: 30px;
    align-items: center;
  }

  .pl-home-footer-minimal__panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: 74vh;
    border-radius: 14px 14px 0 0;
    border-bottom: 0;
    z-index: 9;
  }

  body.pl-footer-panel-open {
    overflow: hidden;
  }
}
