.profil-uklad {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}
.profil-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: .4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: sticky;
  top: .5rem;
}
.profil-menu-poz {
  display: block;
  padding: .55rem .8rem;
  border-radius: 7px;
  border-left: 3px solid transparent;
  color: var(--text);
  text-decoration: none;
  font-size: 13.5px;
}
.profil-menu-poz:hover { background: var(--bg); }
.profil-menu-poz:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.profil-menu-poz.aktywna {
  border-left-color: var(--accent);
  background: var(--bg);
  font-weight: 650;
}
.profil-naglowek { margin-bottom: 1rem; }
.profil-naglowek h2 { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.profil-tresc { min-width: 0; }
.profil-uwagi { white-space: pre-wrap; margin: 0; }
@media (max-width: 800px) {
  .profil-uklad { grid-template-columns: minmax(0, 1fr); }
  .profil-menu {
    flex-direction: row;
    overflow-x: auto;
    position: static;
  }
  .profil-menu-poz {
    white-space: nowrap;
    border-left: 0;
    border-bottom: 3px solid transparent;
    border-radius: 7px 7px 0 0;
  }
  .profil-menu-poz.aktywna { border-bottom-color: var(--accent); }
}
.pasek-zbiorczy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  padding: .5rem .75rem;
  margin-bottom: .75rem;
  background: var(--surface);
  border: 1px solid var(--accent);
  border-left-width: 4px;
  border-radius: var(--radius);
  position: sticky;
  top: .5rem;
  z-index: 5;
}
.pasek-zbiorczy[hidden] { display: none; }
.pasek-zbiorczy-akcje { display: flex; flex-wrap: wrap; gap: .4rem; margin-left: auto; }
.zaznacz-wiersz { width: 16px; height: 16px; cursor: pointer; }
