:root {
  color-scheme: light;
  --bg: #f0f0f0;
  --card: #ffffff;
  --text: #111111;
  --muted: #666666;
  --soft: #888888;
  --line: #eeeeee;
  --green: #0f6e56;
  --green-bright: #1d9e75;
  --green-ink: #085041;
  --green-soft: #e1f5ee;
  --blue-ink: #0c447c;
  --blue-soft: #e6f1fb;
  --red-ink: #712b13;
  --red-soft: #faece7;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 2rem 1rem 3rem;
  color: var(--text);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.wrap {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-card,
.content-card {
  height: auto;
  min-height: 0;
  align-self: stretch;
  overflow: hidden;
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.12);
}

.profile-card {
  padding: 8px 12px;
}

.content-card {
  padding: 0 16px;
}

.profile-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar-row {
  margin-top: 0;
  display: flex;
  flex: 0 0 auto;
  align-items: flex-end;
}

.avatar {
  width: 86px;
  height: 86px;
  overflow: hidden;
  border: 3px solid #ffffff;
  border-radius: 50%;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  background: var(--green-soft);
  color: var(--green-ink);
  font-size: 26px;
  font-weight: 700;
}

.profile-summary {
  min-width: 0;
  flex: 1;
}

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

.name-row {
  margin-bottom: 2px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.name-row h1 {
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 17px;
  font-weight: 650;
  line-height: 1.25;
}

.verified {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  background: var(--green-bright);
}

.verified svg {
  width: 10px;
  height: 10px;
  color: #ffffff;
}

.follow-line {
  margin-bottom: 0;
  color: var(--soft);
  font-size: 11.5px;
  line-height: 1.45;
}

.follow-line strong {
  color: var(--text);
  font-weight: 650;
}

.stat-label {
  color: var(--text);
  font-weight: 400;
}

.tabs {
  border-top: 1px solid var(--line);
  display: flex;
}

.tab {
  flex: 1;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 12px 0;
  background: transparent;
  color: var(--soft);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  transition: color 150ms ease, border-color 150ms ease;
  -webkit-tap-highlight-color: transparent;
}

.tab.active {
  border-bottom-color: var(--green-bright);
  color: var(--green-bright);
}

.tab-content {
  display: none;
  height: min(62vh, 560px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px 0 16px;
  scrollbar-width: thin;
}

.tab-content.show {
  display: block;
}

.link-card {
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  cursor: pointer;
  transition: background 150ms ease, transform 150ms ease;
}

.link-card:last-child {
  margin-bottom: 0;
}

.link-card:hover {
  background: #f9f9f9;
  transform: translateY(-1px);
}

.link-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
}

.link-icon svg {
  width: 19px;
  height: 19px;
}

.link-icon img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
  object-fit: cover;
}

.tone-blue {
  background: var(--blue-soft);
  color: var(--blue-ink);
}

.tone-red {
  background: var(--red-soft);
  color: var(--red-ink);
}

.tone-green {
  background: var(--green-soft);
  color: var(--green-ink);
}

.link-body {
  min-width: 0;
  flex: 1;
}

.link-body strong {
  display: block;
  margin-bottom: 1px;
  color: var(--text);
  font-size: 14px;
  font-weight: 650;
}

.link-body small {
  color: var(--soft);
  font-size: 12px;
  line-height: 1.35;
}

.arrow {
  color: #cccccc;
  font-size: 18px;
  line-height: 1;
}

.intro-block {
  padding: 14px 0 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.intro-block strong {
  color: var(--text);
  font-weight: 650;
}

.process-list {
  display: grid;
  gap: 10px;
}

.process-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  gap: 10px;
  background: var(--card);
}

.process-item > span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  background: var(--green-soft);
  color: var(--green-ink);
  font-size: 12px;
  font-weight: 700;
}

.process-item strong {
  display: block;
  margin-bottom: 3px;
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
}

.process-item p {
  color: var(--soft);
  font-size: 12px;
  line-height: 1.45;
}

.process-image {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}

.process-image img {
  width: 100%;
  height: auto;
  display: block;
  cursor: zoom-in;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 20;
  padding: 20px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.86);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-media {
  position: relative;
  max-width: 100%;
  max-height: 90vh;
}

.lightbox-media img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 12px;
  display: block;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 38px;
  height: 38px;
  border: 1.5px solid rgba(0, 0, 0, 0.9);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

@media (max-width: 360px) {
  body {
    padding-inline: 0.75rem;
  }

  .profile-body {
    padding-inline: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
