.ft-panel {
  --ft-bg: #f5f7fb;
  --ft-card: #ffffff;
  --ft-line: #dbe2ec;
  --ft-text: #111827;
  --ft-muted: #5f6b7b;
  --ft-accent: #0f172a;
  --ft-accent-2: #1d4ed8;
  max-width: 980px;
  margin: 24px auto;
  padding: 28px;
  background: radial-gradient(circle at top right, #eef5ff 0%, var(--ft-bg) 50%, #f7fafc 100%);
  border: 1px solid var(--ft-line);
  border-radius: 18px;
  color: var(--ft-text);
}

.ft-panel,
.ft-panel * {
  box-sizing: border-box;
}

.ft-panel-title {
  margin: 0;
  font-size: 30px;
  line-height: 1.1;
}

.ft-panel-sub {
  margin: 8px 0 0;
  color: var(--ft-muted);
  font-size: 14px;
}

.ft-form {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.ft-card {
  background: var(--ft-card);
  border: 1px solid var(--ft-line);
  border-radius: 14px;
  padding: 16px;
}

.ft-card-title {
  margin: 0 0 10px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ft-muted);
}

.ft-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ft-grid-2 > * {
  min-width: 0;
}

.ft-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.ft-field label {
  font-size: 13px;
  color: var(--ft-muted);
}

.ft-form > label {
  display: grid;
  gap: 6px;
  min-width: 0;
  font-size: 13px;
  color: var(--ft-muted);
}

.ft-input,
.ft-textarea,
.ft-select,
.ft-file {
  width: 100%;
  max-width: 100%;
  border: 1px solid #cdd7e4;
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
  font-size: 15px;
  color: var(--ft-text);
  display: block;
}

.ft-textarea {
  min-height: 110px;
  resize: vertical;
}

.ft-amenity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ft-amenity-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #cdd7e4;
  border-radius: 10px;
  background: #fff;
  padding: 9px 10px;
  cursor: pointer;
  font-size: 14px;
}

.ft-amenity-chip input {
  margin: 0;
}

.ft-error {
  font-size: 12px;
  color: #b91c1c;
  min-height: 16px;
}

.ft-input.has-error,
.ft-textarea.has-error,
.ft-select.has-error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.14);
}

.ft-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ft-note {
  padding: 10px 12px;
  background: #eef4ff;
  border: 1px solid #c8d8ff;
  border-radius: 10px;
  font-size: 14px;
}

#ft-map-picker {
  height: 360px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  margin-top: 8px;
}

#ft-map-coords {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.54);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  color: #e5edf7;
  text-shadow: 0 1px 1px rgba(2, 6, 23, 0.6);
}

.ft-btn {
  border: 1px solid #cbd5e1;
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
  padding: 10px 12px;
  font-size: 14px;
}

.ft-btn-primary {
  background: linear-gradient(135deg, var(--ft-accent) 0%, var(--ft-accent-2) 100%);
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.ft-media-preview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.ft-media-preview img {
  width: 100%;
  height: 84px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #d6deea;
  background: #f3f6fb;
}

.ft-list {
  margin: 0;
  padding-left: 18px;
}

.ft-list li {
  margin: 8px 0;
}

.ftu-wrap {
  width: 60vw;
  max-width: calc(100vw - 32px);
  margin: 24px auto;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  display: grid;
  gap: 16px;
}

.ftu-card {
  background: #fff;
  border: 1px solid #dbe2ec;
  border-radius: 14px;
  padding: 16px;
}

.ftu-title {
  margin: 0;
  font-size: 28px;
}

.ftu-sub {
  margin: 6px 0 0;
  color: #5f6b7b;
  font-size: 14px;
}

.ftu-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.ftu-nav {
  display: grid;
  gap: 8px;
  align-content: start;
}

.ftu-toolbar {
  position: fixed;
  left: 12px;
  top: 34px;
  z-index: 10030;
}

.ftu-sidebar-toggle {
  min-width: 46px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: 0;
  line-height: 0;
}

.ftu-toggle-bars {
  width: 18px;
  height: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.ftu-toggle-bars span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.ftu-sidebar-overlay {
  display: none;
}

.ftu-sidebar-head {
  display: none;
}

.ftu-content {
  min-width: 0;
}

.ftu-content h3 {
  margin-top: 0;
}

.ftu-wrap.has-sidebar-js .ftu-layout {
  grid-template-columns: minmax(0, 1fr);
}

.ftu-wrap.has-sidebar-js .ftu-sidebar {
  position: fixed;
  top: 72px;
  left: 0;
  width: min(78vw, 300px);
  height: calc(100vh - 72px);
  z-index: 10020;
  overflow: auto;
  transform: translateX(-106%);
  transition: transform 0.28s ease;
  border-radius: 0 14px 14px 0;
}

.ftu-wrap.has-sidebar-js.is-sidebar-open .ftu-sidebar {
  transform: translateX(0);
}

.ftu-wrap.has-sidebar-js .ftu-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.ftu-wrap.has-sidebar-js .ftu-nav {
  grid-template-columns: 1fr;
  gap: 6px;
  align-content: start;
  grid-auto-rows: min-content;
}

.ftu-wrap.has-sidebar-js .ftu-tab-btn {
  width: auto;
  min-height: 34px;
  padding: 6px 10px;
  font-size: 14px;
  line-height: 1.2;
}

.ftu-wrap.has-sidebar-js .ftu-sidebar-overlay {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 10010;
  background: rgba(15, 23, 42, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.ftu-wrap.has-sidebar-js.is-sidebar-open .ftu-sidebar-overlay {
  opacity: 1;
  pointer-events: auto;
}

.ftu-wrap.has-sidebar-js.is-sidebar-open {
  overflow: hidden;
}

.ftu-wrap.has-sidebar-js.is-sidebar-open .ftu-toolbar {
  opacity: 0;
  pointer-events: none;
}

.ftu-tab-btn {
  display: block;
  width: 100%;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid #dbe2ec;
  text-decoration: none;
  color: #0f172a;
  background: #fff;
  font-weight: 600;
}

.ftu-tab-btn.is-active {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
}

.ftu-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ftu-field {
  display: grid;
  gap: 6px;
}

.ftu-field input {
  width: 100%;
  border: 1px solid #cdd7e4;
  border-radius: 10px;
  padding: 10px 12px;
}

.ftu-field textarea {
  width: 100%;
  min-height: 92px;
  border: 1px solid #cdd7e4;
  border-radius: 10px;
  padding: 10px 12px;
  resize: vertical;
}

.ftu-field small {
  color: #64748b;
  font-size: 12px;
}

.ftu-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.ftu-section-head--privacy {
  padding: 18px;
  border: 1px solid #dbe2ec;
  border-radius: 16px;
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.14), transparent 34%),
    linear-gradient(135deg, #f8fbff 0%, #f1f7ff 100%);
}

.ftu-section-head h3 {
  margin: 0;
  font-size: 24px;
}

.ftu-section-sub {
  margin: 6px 0 0;
  color: #475569;
  line-height: 1.6;
}

.ftu-media-preview {
  width: 100%;
  max-width: 320px;
  height: 120px;
  border-radius: 10px;
  border: 1px solid #cdd7e4;
  object-fit: cover;
  background: #eef2f7;
}

.ftu-media-preview.avatar {
  width: 96px;
  height: 96px;
  border-radius: 999px;
}

.ftu-profile-view {
  display: grid;
  gap: 14px;
}

.ftu-profile-card {
  border: 1px solid #dbe2ec;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.ftu-profile-banner {
  height: 160px;
  background: #e2e8f0 center / cover no-repeat;
  position: relative;
}

.ftu-profile-avatar-wrap {
  position: absolute;
  left: 16px;
  bottom: -40px;
  width: 82px;
  height: 82px;
  border-radius: 999px;
  background: #fff;
  border: 3px solid #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.2);
  overflow: hidden;
}

.ftu-profile-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ftu-profile-body {
  padding: 52px 16px 16px;
}

.ftu-profile-bio {
  margin: 0;
  color: #334155;
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.ftu-btn {
  background: #0f172a;
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
}

.ftu-btn-lite {
  display: inline-block;
  background: #fff;
  color: #0f172a;
  border: 1px solid #cdd7e4;
  border-radius: 10px;
  padding: 8px 12px;
  text-decoration: none;
}

.ftu-listing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ftu-listing {
  border: 1px solid #dbe2ec;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.ftu-listing-img {
  height: 170px;
  background: #edf2f8;
  display: block;
  width: 100%;
  object-fit: cover;
}

.ftu-listing-body {
  padding: 10px;
  display: grid;
  gap: 8px;
}

.ftu-listing-title {
  margin: 0;
  font-size: 16px;
}

.ftu-listing-price {
  margin: 0;
  color: #1d4ed8;
  font-weight: 700;
}

.ftu-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.ftu-check {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 8px 0;
}

.ftu-privacy-form {
  display: grid;
  gap: 18px;
}

.ftu-privacy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ftu-privacy-card {
  padding: 18px;
  border: 1px solid #dbe2ec;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.05);
}

.ftu-privacy-card-head {
  margin-bottom: 14px;
}

.ftu-privacy-card-head h4 {
  margin: 0 0 6px;
  font-size: 18px;
  color: #0f172a;
}

.ftu-privacy-card-head p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.55;
}

.ftu-privacy-options {
  display: grid;
  gap: 10px;
}

.ftu-check-card {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #d7e1ee;
  border-radius: 14px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.ftu-check-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.08);
  transform: translateY(-1px);
}

.ftu-check-card input {
  margin: 0;
  accent-color: #2563eb;
  transform: scale(1.05);
}

.ftu-check-card span {
  font-weight: 500;
  color: #1e293b;
  line-height: 1.45;
}

.ftu-privacy-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid #dbe2ec;
  border-radius: 16px;
  background: #f8fafc;
}

.ftu-privacy-select {
  flex: 1 1 320px;
  max-width: 340px;
}

.ftu-badge--soft {
  background: rgba(255, 255, 255, 0.86);
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.ftu-filters {
  display: grid;
  grid-template-columns: 1fr 200px auto;
  gap: 8px;
  margin-top: 12px;
}

.ftu-input,
.ftu-select {
  width: 100%;
  border: 1px solid #cdd7e4;
  border-radius: 10px;
  padding: 10px 12px;
}

.ftu-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  background: #eef2ff;
  color: #1e3a8a;
}

.ftu-note {
  margin: 0;
  font-size: 12px;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px;
}

.ftu-history {
  margin: 0;
  font-size: 12px;
  color: #334155;
  white-space: pre-wrap;
  max-height: 120px;
  overflow: auto;
  border: 1px dashed #dbe2ec;
  border-radius: 10px;
  padding: 8px;
  background: #fff;
}

.ftu-pagination {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.fta-wrap {
  max-width: 760px;
  margin: 28px auto;
  background: #fff;
  border: 1px solid #dbe2ec;
  border-radius: 16px;
  padding: 18px;
}

.fta-tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 14px;
  padding: 4px;
  border: 1px solid #dbe2ec;
  border-radius: 12px;
  background: #f8fafc;
}

.fta-tab {
  flex: 1;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #334155;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.fta-tab:hover {
  background: #eef2f7;
}

.fta-tab.is-active {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}

.fta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.fta-grid--tabs {
  grid-template-columns: 1fr;
}

.fta-card {
  border: 1px solid #dbe2ec;
  border-radius: 12px;
  padding: 14px;
}

.fta-panel[hidden] {
  display: none !important;
}

.fta-field {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}

.fta-field input,
.fta-field select {
  width: 100%;
  border: 1px solid #cdd7e4;
  border-radius: 10px;
  padding: 10px 12px;
}

.fta-pass-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.fta-pass-row .fta-pass-toggle {
  min-height: 42px;
  width: 44px;
  padding: 0 12px;
  border: 1px solid #cdd7e4;
  border-radius: 10px;
  background: #f8fafc;
  color: #334155;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.fta-pass-row .fta-pass-toggle:hover {
  background: #eef2f7;
}

.fta-pass-row .fta-pass-toggle .fta-eye {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fta-pass-row .fta-pass-toggle .fta-eye--open {
  display: none;
}

.fta-pass-row .fta-pass-toggle.is-visible .fta-eye--closed {
  display: none;
}

.fta-pass-row .fta-pass-toggle.is-visible .fta-eye--open {
  display: block;
}

.fta-help {
  margin: -4px 0 10px;
  font-size: 12px;
  color: #475569;
}

.fta-help[data-strength="slabe"],
.fta-help[data-strength="za krotkie"] {
  color: #9f1239;
}

.fta-help[data-strength="srednie"] {
  color: #92400e;
}

.fta-help[data-strength="mocne"] {
  color: #0f766e;
}

.fta-help--error {
  color: #b91c1c;
}

.fta-help--ok {
  color: #0f766e;
}

.fta-password-checklist {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.fta-password-rule {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #64748b;
  line-height: 1.4;
}

.fta-password-rule-indicator {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  flex: 0 0 14px;
  position: relative;
}

.fta-password-rule.is-met {
  color: #0f766e;
  font-weight: 700;
}

.fta-password-rule.is-met .fta-password-rule-indicator {
  border-color: #0f766e;
  background: #0f766e;
}

.fta-password-rule.is-met .fta-password-rule-indicator::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 3px;
  height: 7px;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(45deg);
}

.fta-company-fields {
  display: grid;
  gap: 0;
}

.fta-company-fields[hidden] {
  display: none !important;
}

.fta-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 8px 0 12px;
}

.fta-check input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
}

.fta-check span {
  font-size: 13px;
  color: #334155;
  line-height: 1.45;
}

.fta-check a {
  font-weight: 700;
}

.fta-btn {
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  background: #0f172a;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}

@media (max-width: 920px) {
  .ftu-listing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .ftu-wrap {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
  }

  .ftu-layout {
    grid-template-columns: 1fr;
  }

  .ftu-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ftu-filters {
    grid-template-columns: 1fr;
  }

  .ftu-section-head,
  .ftu-privacy-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .ftu-privacy-select {
    max-width: none;
  }
}

.ftu-sidebar-close {
  width: 34px;
  height: 34px;
  line-height: 1;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 760px) {
  .fta-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .ft-panel {
    padding: 18px;
    border-radius: 12px;
  }

  .ft-panel-title {
    font-size: 24px;
  }

  .ft-grid-2 {
    grid-template-columns: 1fr;
  }

  .ft-media-preview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ft-amenity-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .ftu-grid2 {
    grid-template-columns: 1fr;
  }

  .ftu-listing-grid {
    grid-template-columns: 1fr;
  }

  .ftu-nav {
    grid-template-columns: 1fr;
  }

  .ftu-privacy-grid {
    grid-template-columns: 1fr;
  }
}
