.profile-page {
  background:
    linear-gradient(120deg, rgba(224, 184, 79, 0.18), transparent 30%),
    linear-gradient(300deg, rgba(23, 107, 102, 0.16), transparent 32%),
    #f7f5ef;
}

.profile-shell {
  display: grid;
  grid-template-columns: minmax(260px, 0.68fr) minmax(380px, 1.32fr);
  gap: clamp(22px, 3.5vw, 44px);
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 56px);
  align-items: start;
}

.profile-hero {
  position: sticky;
  top: 28px;
  padding-top: 8px;
}

.mini-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.mini-nav a,
.secondary-link a {
  color: var(--teal);
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.secondary-link {
  margin-top: -4px;
  font-size: 0.96rem;
}

.brief-benefits {
  display: grid;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.brief-benefits li {
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: #31413c;
  padding: 12px 14px;
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(31, 50, 44, 0.08);
}

.profile-form-panel {
  border: 1px solid rgba(216, 224, 220, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.profile-card {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.profile-card:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.three-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.four-col {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.compact-grid {
  margin-top: 16px;
}

output {
  display: inline-flex;
  width: fit-content;
  min-height: 32px;
  align-items: center;
  border-radius: 999px;
  background: #e7f3eb;
  color: var(--teal);
  padding: 4px 12px;
  font-size: 0.82rem;
  font-weight: 800;
}

input[type="range"] {
  padding: 0;
  accent-color: var(--teal);
}

.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-grid label {
  display: inline-flex;
  min-height: 40px;
  gap: 8px;
  align-items: center;
  border: 1px solid #cfd9d4;
  border-radius: 999px;
  background: #ffffff;
  padding: 8px 13px;
  cursor: pointer;
}

.tag-grid input {
  width: 16px;
  min-height: 16px;
  accent-color: var(--teal);
}

.tag-grid span {
  font-size: 0.88rem;
  font-weight: 700;
}

.tag-grid label:has(input:checked) {
  border-color: var(--teal);
  background: #eef8f1;
}

.snapshot-result {
  margin: 0 clamp(18px, 3.2vw, 36px) clamp(18px, 3.2vw, 36px);
  border: 1px solid #d9ddd1;
  border-radius: 8px;
  background: #fffaf0;
  overflow: hidden;
}

.result-heading {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #e7dcc5;
}

.result-heading .eyebrow {
  margin: 0 0 6px;
}

.result-heading h2 {
  margin: 0;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.secondary-button {
  min-height: 44px;
  border: 1px solid var(--teal);
  border-radius: 8px;
  background: #ffffff;
  color: var(--teal);
  padding: 0 14px;
  font-weight: 800;
  cursor: pointer;
}

.secondary-button:hover {
  background: #eef8f1;
}

.snapshot-document {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.snapshot-cover {
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(23, 107, 102, 0.96), rgba(136, 201, 161, 0.88)),
    #176b66;
  color: #ffffff;
  padding: clamp(22px, 4vw, 34px);
}

.snapshot-cover span {
  display: block;
  margin-bottom: 12px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.snapshot-cover h3 {
  max-width: 520px;
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 5vw, 3rem);
  line-height: 1.04;
}

.snapshot-cover p {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.55;
}

.snapshot-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.snapshot-recommendation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.snapshot-section {
  border: 1px solid #e6dcc8;
  border-left: 5px solid var(--coral);
  border-radius: 8px;
  background: #ffffff;
  padding: 16px;
}

.snapshot-recommendations {
  border: 1px solid #d7e4dc;
  border-left: 5px solid var(--teal);
  border-radius: 8px;
  background: #ffffff;
  padding: 16px;
}

.snapshot-section h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.snapshot-recommendations h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.snapshot-section dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.snapshot-recommendations ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.snapshot-section div {
  display: grid;
  gap: 3px;
}

.snapshot-section dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.snapshot-section dd {
  margin: 0;
  color: #31413c;
  line-height: 1.45;
}

.snapshot-recommendations li {
  color: #31413c;
  line-height: 1.5;
}

.snapshot-footer-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.snapshot-plain-text {
  border-top: 1px solid #e7dcc5;
}

.snapshot-plain-text summary {
  padding: 14px 20px;
  color: var(--teal);
  font-weight: 800;
  cursor: pointer;
}

.snapshot-result pre {
  margin: 0;
  white-space: pre-wrap;
  color: #31413c;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.88rem;
  line-height: 1.6;
  padding: 20px;
}

@media (max-width: 980px) {
  .profile-shell {
    grid-template-columns: 1fr;
  }

  .profile-hero {
    position: static;
  }

  .three-col,
  .four-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .profile-shell {
    padding: 16px;
  }

  .three-col,
  .four-col {
    grid-template-columns: 1fr;
  }

  .result-heading {
    display: grid;
  }

  .result-actions {
    justify-content: stretch;
  }

  .secondary-button {
    width: 100%;
  }

  .snapshot-section-grid,
  .snapshot-recommendation-grid {
    grid-template-columns: 1fr;
  }
}
