/* ===== GRID FORMULARZA ===== */
.formGrid {
  display: grid;
  grid-template-columns: 1fr; /* mobile-first */
  gap: 16px;
  padding: 0 16px 16px;
  width: 100%;
}

/* Tablet / desktop */
@media (min-width: 768px) {
  .formGrid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ===== POLA ===== */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* ===== SCROLL (tylko jeśli trzeba) ===== */
.formGridWrapper {
  max-height: calc(100vh - 220px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch; /* płynny scroll iOS */
}

/* ===== PWA BOX ===== */
.settingsPwaRow {
  display: flex;
  justify-content: flex-end;
  padding: 0 16px;
  width: 100%;
}

.settingsPwaCard {
  width: 100%;
  max-width: 360px;
}

/* Mobile – pełna szerokość */
@media (max-width: 767px) {
  .settingsPwaRow {
    justify-content: stretch;
  }

  .settingsPwaCard {
    max-width: 100%;
  }
}

/* ===== FORMULARZ ===== */
.settingsForm {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ===== AKCJE (BUTTONY) ===== */
.settingsActions {
  order: 2;
  margin: 16px 16px 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Mobile – przyciski na całą szerokość */
@media (max-width: 480px) {
  .settingsActions {
    flex-direction: column;
  }

  .settingsActions button {
    width: 100%;
  }
}

/* ===== PWA NA KOŃCU ===== */
.settingsPwaRow {
  order: 3;
  margin-top: 8px;
}
.btn--install {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.btn--install:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.installBox {
  margin-top: 16px;
  padding: 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
}

.installTitle {
  font-weight: 600;
  margin-bottom: 10px;
}

.installItem {
  font-size: 13px;
  margin-bottom: 8px;
  color: #555;
}
.installStatus {
  margin-top: 10px;
}

.installedBadge {
  padding: 10px 12px;
  border-radius: 10px;
  background: #ecfdf5;
  color: #059669;
  font-size: 13px;
  font-weight: 600;
}
.settingsWrap {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.settingsCard {
  padding: 16px;
  border-radius: 14px;
  background: #0b0f1a;
  border: 1px solid rgba(255,255,255,0.06);
}

.settingsCard.small {
  max-width: 360px;
}

.settingsHeader {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.settingsGrid {
  display: grid;
  gap: 10px;
}

.installHint {
  font-size: 12px;
  opacity: 0.6;
  margin-top: 8px;
}
.settingsGridLayout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 20px;
  align-items: start;
}

.settingsLeftCol {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.settingsRightCol {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* MOBILE */
@media (max-width: 900px) {
  .settingsGridLayout {
    grid-template-columns: 1fr;
  }
}