body {
  min-height: 100svh;
}

.practice-profile-page {
  width: min(calc(100% - 24px), 1080px);
  margin: 0 auto;
  padding: 18px 0 110px;
}

.practice-profile-hero,
.practice-profile-card {
  border: 1px solid var(--border, #5b3518);
  border-radius: 18px;
  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(255, 148, 31, 0.11),
      transparent 45%
    ),
    linear-gradient(
      180deg,
      rgba(31, 23, 17, 0.985),
      rgba(18, 14, 11, 0.985)
    );
  box-shadow: var(--shadow, 0 18px 50px rgba(0, 0, 0, 0.35));
}

.practice-profile-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 20px;
}

.practice-profile-hero h1 {
  margin: 4px 0 7px;
  font-size: clamp(38px, 7vw, 68px);
  line-height: 0.94;
  letter-spacing: -0.055em;
}

.practice-profile-hero p,
.practice-profile-card p {
  margin: 0;
  color: var(--muted, #cdbeb1);
  line-height: 1.55;
}

.practice-profile-hero nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: 7px;
}

.practice-profile-hero nav a,
.practice-profile-actions button,
.practice-profile-signed-out button {
  display: grid;
  place-items: center;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--border, #5b3518);
  border-radius: 10px;
  color: var(--text, #fff6ed);
  background: #251b14;
  font: inherit;
  font-size: 9px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.practice-profile-card {
  margin-top: 12px;
  padding: 20px;
}

.practice-profile-card h2 {
  margin: 4px 0 9px;
  font-size: clamp(28px, 4.5vw, 44px);
  line-height: 1;
}

.practice-profile-signed-out {
  display: grid;
  gap: 13px;
  justify-items: start;
}

.practice-profile-signed-out button,
.practice-profile-actions .is-primary {
  border-color: var(--orange, #ff941f);
  color: #170a03;
  background: linear-gradient(135deg, #ff941f, #ffbd70);
}

.practice-profile-editor-head,
.practice-profile-public-head {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 15px;
  align-items: center;
}

.practice-profile-avatar {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  overflow: hidden;
  border: 2px solid var(--orange, #ff941f);
  border-radius: 22px;
  color: #180b03;
  background: linear-gradient(135deg, #ff941f, #ffbd70);
  font-size: 32px;
  font-weight: 950;
}

.practice-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.practice-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.practice-profile-grid > label,
.practice-profile-bpm-field,
.practice-profile-bpm-field label {
  display: grid;
  gap: 7px;
  color: var(--muted, #cdbeb1);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.practice-profile-wide {
  grid-column: 1 / -1;
}

.practice-profile-grid input,
.practice-profile-grid textarea {
  width: 100%;
  min-height: 43px;
  padding: 10px 11px;
  border: 1px solid var(--border, #5b3518);
  border-radius: 10px;
  color: var(--text, #fff6ed);
  background: #120f0c;
  font: inherit;
}

.practice-profile-bpm-field > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.practice-profile-public-toggle {
  grid-template-columns: auto minmax(0, 1fr) !important;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--border, #5b3518);
  border-radius: 11px;
  background: rgba(255, 148, 31, 0.04);
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.practice-profile-public-toggle input {
  width: 20px;
  min-height: 20px;
}

.practice-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.practice-profile-actions button {
  min-width: 170px;
}

.practice-profile-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.practice-profile-public-bio {
  margin-top: 16px !important;
  font-size: 17px;
}

.practice-profile-public-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.practice-profile-public-stats > div {
  padding: 12px;
  border: 1px solid var(--border, #5b3518);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
}

.practice-profile-public-stats span {
  display: block;
  color: var(--muted, #cdbeb1);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.practice-profile-public-stats strong {
  display: block;
  margin-top: 5px;
  color: var(--orange-2, #ffb15c);
  overflow-wrap: anywhere;
}

.practice-profile-next {
  border-style: dashed;
}

.practice-profile-status {
  min-height: 30px;
  padding-top: 11px;
  color: #83e5ab;
  font-size: 11px;
  font-weight: 850;
  text-align: center;
}

@media (max-width: 760px) {
  .practice-profile-hero,
  .practice-profile-grid,
  .practice-profile-public-stats {
    grid-template-columns: 1fr;
  }

  .practice-profile-wide {
    grid-column: auto;
  }

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

@media (max-width: 500px) {
  .practice-profile-editor-head,
  .practice-profile-public-head {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .practice-profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 17px;
  }

  .practice-profile-bpm-field > div,
  .practice-profile-actions {
    grid-template-columns: 1fr;
  }

  .practice-profile-actions button {
    width: 100%;
  }
}
