:root {
  color-scheme: light;
  --bg: #f7f3ee;
  --panel: #fffaf4;
  --text: #221b16;
  --muted: #756a60;
  --line: #e7d9ca;
  --primary: #e9552d;
  --primary-dark: #bb3c1c;
  --chip: #f2e2d4;
  --shadow: 0 18px 45px rgba(52, 38, 25, 0.12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[hidden] { display: none !important; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #fff3df 0, var(--bg) 42rem);
  color: var(--text);
  overflow-x: hidden;
}
a { color: inherit; text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
img, svg, video { max-width: 100%; }
h1, h2, h3, h4, p, a, strong, code, small, label, input, textarea, select, button { overflow-wrap: anywhere; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: rgba(255, 250, 244, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; min-height: 44px; font-weight: 900; font-size: 1.2rem; text-decoration: none; }
nav { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
nav a, .link-button { color: var(--muted); text-decoration: none; font-weight: 700; }
.link-button { border: 0; background: none; cursor: pointer; font: inherit; padding: 0; }
nav a, .link-button { display: inline-flex; align-items: center; min-height: 44px; padding: 0.35rem 0.2rem; }
.container { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; padding: 2rem 0 4rem; }
.narrow { width: min(560px, calc(100% - 2rem)); }
.hero { padding: 4rem 0 2rem; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; color: var(--primary); font-size: 0.78rem; font-weight: 900; margin: 0 0 0.5rem; }
h1 { font-size: clamp(2.2rem, 7vw, 5rem); line-height: 0.98; margin: 0 0 1rem; letter-spacing: -0.055em; }
h2 { font-size: 1.7rem; margin: 0 0 1rem; }
h3 { margin: 0 0 0.35rem; }
h4 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.hero-copy { color: var(--muted); font-size: 1.1rem; line-height: 1.7; max-width: 48rem; }
.hero-actions, .section-heading { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.compact-heading { gap: 0.6rem; justify-content: flex-start; }
.home-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.35rem;
}
.home-stats span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--muted);
  font-weight: 800;
  padding: 0.55rem 0.75rem;
}
.home-stats strong { color: var(--primary-dark); font-size: 1.08rem; }
.button, button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.75rem 1.05rem;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 44px;
  touch-action: manipulation;
}
.button.primary, button.primary { background: var(--primary); color: white; border-color: var(--primary); }
.button:hover, button:hover { transform: translateY(-1px); }
button:disabled, input:disabled, textarea:disabled, select:disabled {
  cursor: wait;
  opacity: 0.62;
}
button:disabled:hover { transform: none; }
.panel {
  background: rgba(255, 250, 244, 0.86);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow);
  margin-top: 1.25rem;
}
.edit-container { padding-top: 1.25rem; }
.edit-hero-panel { margin-top: 0; }
.edit-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
}
.edit-title-row h1 { margin-bottom: 0.65rem; }
.public-profile-cta { flex: 0 0 auto; margin-top: 0.35rem; white-space: nowrap; }
.edit-sticky-tools {
  position: sticky;
  top: 4.55rem;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1rem;
  padding: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.94);
  box-shadow: 0 12px 28px rgba(52, 38, 25, 0.1);
  backdrop-filter: blur(16px);
}
.edit-section-nav {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.edit-section-nav::-webkit-scrollbar { display: none; }
.edit-section-nav a {
  flex: 0 0 auto;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 900;
  padding: 0.55rem 0.75rem;
  text-decoration: none;
  white-space: nowrap;
}
.edit-section-nav a:hover, .edit-section-nav a:focus-visible {
  border-color: var(--line);
  background: #fff;
  color: var(--primary-dark);
}
.edit-sticky-tools .message {
  min-width: min(36vw, 360px);
  margin: 0;
  text-align: right;
}
.edit-section, #importSection, #socialSection, #activitySection, #mediaSection, #portfolioSection { scroll-margin-top: 9.5rem; }
.section-helper {
  max-width: 48rem;
  margin: -0.35rem 0 0;
  color: var(--muted);
  line-height: 1.55;
}
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 1rem; }
.full-width { grid-column: 1 / -1; }
.profile-card {
  display: flex;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1rem;
  background: white;
}
.profile-card p { margin: 0.25rem 0; color: var(--muted); line-height: 1.5; }
.profile-card-body { min-width: 0; }
.profile-card-body h3 { line-height: 1.25; }
.profile-card-body h3 a { display: inline-flex; align-items: center; min-height: 44px; }
.avatar {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: var(--chip);
  display: grid;
  place-items: center;
  font-weight: 900;
  overflow: hidden;
}
.avatar.large { width: 132px; height: 132px; border-radius: 34px; font-size: 2rem; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-image-preview, .handle-preview, .qr-card, .profile-upload-card {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem;
  border: 1px dashed var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.55);
}
.profile-image-preview { justify-content: flex-start; }
.profile-upload-card { flex-wrap: wrap; }
.profile-upload-card > div { flex: 1 1 260px; }
.media-upload-card { margin: 1rem 0; }
.media-upload-card .full { flex-basis: 100%; }
.file-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 0.75rem 1.05rem;
  font-weight: 800;
  cursor: pointer;
  overflow: hidden;
}
.file-picker input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.qr-card { margin-top: 1rem; }
.qr-card img {
  width: 132px;
  height: 132px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 0.45rem;
}
.qr-card.compact-qr { justify-content: flex-start; max-width: 560px; }
.handle-preview code {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 0.55rem 0.65rem;
}
.profile-image-preview p, .handle-preview p { margin: 0; line-height: 1.5; }
.import-notice, .import-result-card, .youtube-import-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.62);
  padding: 1rem;
  margin: 1rem 0;
}
.import-notice p, .youtube-import-card p { margin: 0.35rem 0 0; color: var(--muted); line-height: 1.55; }
.youtube-import-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  gap: 1rem;
  align-items: end;
}
.youtube-import-card .inline-search { margin: 0; }
.import-candidates { margin-top: 1rem; }
.candidate-group {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
}
.candidate-item, .rights-check {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 0.75rem;
  cursor: pointer;
}
.candidate-item input, .rights-check input { width: auto; margin-top: 0.2rem; accent-color: var(--primary); }
.candidate-item span { display: grid; gap: 0.25rem; }
.candidate-item small { color: var(--muted); line-height: 1.45; }
.import-actions { display: grid; gap: 0.75rem; margin-top: 1rem; }
.activity-chip { color: var(--primary-dark) !important; font-weight: 800; }
.card-cues { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.45rem 0; }
.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--chip);
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 900;
  padding: 0.25rem 0.55rem;
}
.status-active { background: #e6f4ea; color: #167244; }
.status-ended { background: #eee8e1; color: #756a60; }
.muted { color: var(--muted); }
.panel > .muted a { display: inline-flex; align-items: center; min-height: 44px; }
.small { font-size: 0.88rem; }
.inline-search { display: flex; gap: 0.5rem; }
.inline-search input { min-width: 0; }
.inline-search.large { margin: 1.5rem 0; }
.search-toolbar button { white-space: nowrap; }
.fan-filters { display: flex; flex-wrap: wrap; gap: 0.55rem; margin: -0.5rem 0 0.75rem; }
.filter-chip {
  display: inline-flex;
  grid-template-columns: none;
  align-items: center;
  gap: 0.4rem;
  width: auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  padding: 0.55rem 0.75rem;
  cursor: pointer;
}
.filter-chip input { width: auto; accent-color: var(--primary); }
.filter-chip:has(input:checked) { border-color: var(--primary); background: #fff1df; color: var(--primary-dark); }
.filter-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.45rem;
  min-height: 1.45rem;
  border-radius: 999px;
  background: var(--chip);
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 900;
  padding: 0 0.35rem;
}
.summary-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; margin: 0.2rem 0 0.4rem; }
.summary-chip {
  display: inline-flex;
  border-radius: 999px;
  background: #221b16;
  color: #fffaf4;
  font-size: 0.82rem;
  font-weight: 900;
  padding: 0.35rem 0.6rem;
}
.summary-note { color: var(--muted); font-size: 0.88rem; }
.sample-panel { margin-top: 1rem; }
.sample-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}
.compact-samples {
  grid-template-columns: repeat(auto-fit, minmax(160px, max-content));
  margin: -0.15rem 0 0.8rem;
}
.sample-link {
  display: grid;
  gap: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 0.85rem;
  text-decoration: none;
}
.sample-link strong { color: var(--primary-dark); }
.sample-link span { color: var(--muted); font-size: 0.9rem; line-height: 1.35; }
.sample-link:hover, .sample-link:focus-visible { border-color: var(--primary); box-shadow: 0 8px 20px rgba(233, 85, 45, 0.12); }
.empty-state {
  border: 1px dashed var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  line-height: 1.6;
  margin-top: 1rem;
  padding: 1rem;
}
.empty-state strong { color: var(--text); }
.empty-state p { margin: 0.5rem 0 0; }
.empty-state ul { margin: 0.6rem 0 0; padding-left: 1.25rem; }
.empty-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.85rem; }
.skeleton-card { pointer-events: none; }
.skeleton-block, .skeleton-line {
  display: block;
  overflow: hidden;
  position: relative;
  background: linear-gradient(90deg, #f3e7da, #fff8ef, #f3e7da);
  background-size: 220% 100%;
  animation: skeleton-shimmer 1.2s ease-in-out infinite;
}
.skeleton-line { height: 0.8rem; width: 82%; border-radius: 999px; margin: 0.35rem 0; }
.skeleton-line.wide { width: 62%; height: 1rem; }
.skeleton-line.short { width: 42%; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@keyframes skeleton-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.8rem 0.9rem;
  background: white;
  font: inherit;
  min-height: 44px;
  font-size: 16px;
}
label { display: grid; gap: 0.4rem; color: var(--muted); font-weight: 800; }
.form-stack { display: grid; gap: 1rem; margin-top: 1.25rem; }
.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.full { grid-column: 1 / -1; }
.compact { gap: 0.75rem; }
.date-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.message { min-height: 1.4rem; font-weight: 800; color: var(--muted); }
.message:not(:empty) {
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 0.45rem 0.7rem;
}
.profile-status {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.65);
  padding: 0.75rem 0.9rem;
  line-height: 1.55;
}
.profile-status a { color: var(--primary-dark); font-weight: 900; }
.profile-status:empty { display: none; }
.message[data-type="success"] { color: #167244; }
.message[data-type="error"] { color: #b42020; }
.readiness-card {
  margin: 1rem 0 1.25rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.7);
  padding: 1rem;
}
.readiness-summary { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.readiness-summary h2 { margin-bottom: 0.25rem; }
.readiness-score {
  display: grid;
  place-items: center;
  min-width: 92px;
  min-height: 92px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
}
.readiness-score strong { font-size: 1.65rem; line-height: 1; color: var(--primary-dark); }
.readiness-score span { color: var(--muted); font-size: 0.82rem; font-weight: 900; }
.readiness-meter { height: 0.62rem; border-radius: 999px; background: #f0e3d5; overflow: hidden; margin: 0.75rem 0 1rem; }
.readiness-meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), #f4a261); }
.checklist-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.6rem; }
.check-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 0.55rem;
  align-items: start;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 0.7rem;
}
.check-item span {
  display: inline-grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  font-weight: 900;
}
.check-item small { grid-column: 2; color: var(--muted); line-height: 1.35; }
.check-item.is-done span { background: #e6f4ea; color: #167244; }
.check-item.is-missing span { background: #fff1df; color: var(--primary-dark); }
.check-item:hover, .check-item:focus-visible { border-color: var(--primary); box-shadow: 0 8px 20px rgba(233, 85, 45, 0.12); }
.readiness-advice { margin: 0.85rem 0 0; font-weight: 800; color: var(--primary-dark); }
.readiness-advice.success { color: #167244; }
.split-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.list { display: grid; gap: 0.75rem; margin-top: 1rem; }
.list-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  padding: 0.85rem;
}
.list-row > div:first-child { min-width: 0; }
.list-row p { margin: 0.3rem 0 0; color: var(--muted); overflow-wrap: anywhere; }
.danger { color: #b42020; padding: 0.45rem 0.7rem; }
.subtle { background: transparent; }
.form-actions, .row-actions { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.row-actions { justify-content: flex-end; }
.row-actions button { padding: 0.45rem 0.7rem; }
.profile-header { display: flex; align-items: center; gap: 1.5rem; }
.profile-shell { display: grid; gap: clamp(1.25rem, 3vw, 2.2rem); }
.public-hero {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: start;
  overflow: hidden;
  border: 1px solid rgba(233, 85, 45, 0.18);
  border-radius: 26px;
  background:
    radial-gradient(circle at 10% 0%, rgba(233, 85, 45, 0.18), transparent 16rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 241, 223, 0.82));
  padding: clamp(1rem, 3vw, 1.6rem);
}
.public-hero::after {
  content: "지금 뭐하지?";
  position: absolute;
  right: -0.4rem;
  bottom: -0.35rem;
  color: rgba(233, 85, 45, 0.08);
  font-size: clamp(2.5rem, 8vw, 6.5rem);
  font-weight: 950;
  letter-spacing: -0.08em;
  pointer-events: none;
}
.public-hero-body { position: relative; z-index: 1; min-width: 0; }
.public-avatar {
  position: relative;
  z-index: 1;
  box-shadow: 0 16px 35px rgba(52, 38, 25, 0.16);
  outline: 6px solid rgba(255, 255, 255, 0.72);
}
.profile-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.profile-stats span {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--muted);
  padding: 0.45rem 0.7rem;
  font-size: 0.9rem;
  font-weight: 800;
}
.profile-stats strong { color: var(--primary-dark); font-size: 1.05rem; }
.link-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.link-row a { border: 1px solid var(--line); border-radius: 999px; padding: 0.55rem 0.75rem; min-height: 44px; text-decoration: none; background: white; }
.social-row a { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 800; }
.social-row small { color: var(--primary); font-weight: 900; }
.empty-inline {
  display: inline-flex;
  margin-top: 1rem;
  border: 1px dashed var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
  padding: 0.45rem 0.75rem;
  font-size: 0.9rem;
}
.share-card {
  display: flex;
  justify-content: space-between;
  gap: 0.85rem;
  align-items: center;
  max-width: 720px;
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
  padding: 0.85rem;
}
.share-card p { margin: 0.25rem 0 0; overflow-wrap: anywhere; }
.share-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; justify-content: flex-end; }
.share-actions button { padding: 0.58rem 0.8rem; }
.share-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 0.9rem;
}
.share-row span {
  overflow-wrap: anywhere;
}
.public-section {
  border-top: 1px solid var(--line);
  padding-top: clamp(1.25rem, 3vw, 1.8rem);
}
.public-section:first-of-type { border-top: 0; padding-top: 0; }
.section-note { margin: 0; max-width: 20rem; text-align: right; }
.loading-copy { margin: 0; }
.centered { text-align: center; }
.centered .button { margin-top: 0.5rem; }
.public-list article { border: 1px solid var(--line); background: white; padding: 1rem; border-radius: 18px; }
.activity-list { gap: 0.9rem; }
.activity-card.status-active {
  border-color: rgba(22, 114, 68, 0.26);
  background: linear-gradient(135deg, #ffffff, #f3fff7);
}
.activity-card.status-ended { background: #fff; opacity: 0.78; }
.activity-period { font-weight: 800; }
.activity-actions { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; margin-top: 0.75rem; }
.activity-actions button { padding: 0.45rem 0.7rem; }
.portfolio-group { margin-top: 1.25rem; }
.portfolio-group-heading { margin-bottom: 0.65rem; }
.portfolio-filters { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 0.25rem 0 1rem; }
.portfolio-filters button { padding: 0.45rem 0.7rem; }
.portfolio-filters button.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.portfolio-more { margin-top: 1rem; }
.portfolio-card { min-height: 100%; }
.portfolio-card h4 { line-height: 1.35; }
.portfolio-grid { gap: 0.85rem; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 1rem; }
.media-card {
  display: grid;
  gap: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: white;
  padding: 0.85rem;
  min-width: 0;
}
.media-card h3 { line-height: 1.25; }
.media-card p { margin: 0.25rem 0; color: var(--muted); line-height: 1.5; }
.media-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow: hidden;
  background: var(--chip);
  display: grid;
  place-items: center;
  text-decoration: none;
  color: var(--primary-dark);
  font-weight: 900;
  text-align: center;
  padding: 0.75rem;
}
.media-thumb img { width: calc(100% + 1.5rem); height: calc(100% + 1.5rem); object-fit: cover; display: block; margin: -0.75rem; }
.media-thumb.is-broken, .unavailable-thumb { color: var(--muted); background: #f1f5f9; }
.video-thumb { font-size: 2.5rem; background: linear-gradient(135deg, #221b16, #5b3528); color: #fffaf4; }
.unavailable-card { border-style: dashed; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
@media (max-width: 760px) {
  .site-header {
    align-items: stretch;
    flex-direction: column;
    gap: 0.45rem;
    padding: calc(0.6rem + env(safe-area-inset-top)) 0.75rem 0.55rem;
  }
  .site-header nav {
    flex-wrap: nowrap;
    gap: 0.55rem;
    font-size: 0.92rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .site-header nav::-webkit-scrollbar { display: none; }
  .site-header nav a, .site-header .link-button { flex: 0 0 auto; }
  .container { width: min(100% - 1rem, 1120px); padding-bottom: 2.5rem; }
  .hero { padding: 2.2rem 0 1.25rem; }
  .hero-actions { align-items: stretch; }
  .hero-actions .button { flex: 1 1 12rem; }
  .panel { border-radius: 22px; padding: 1rem; }
  .edit-title-row { flex-direction: column; }
  .public-profile-cta { width: 100%; }
  .edit-sticky-tools {
    top: calc(5.9rem + env(safe-area-inset-top));
    grid-template-columns: 1fr;
    border-radius: 20px;
    max-height: calc(100vh - 6.4rem - env(safe-area-inset-top));
    overflow: auto;
  }
  .edit-section, #importSection, #socialSection, #activitySection, #mediaSection, #portfolioSection { scroll-margin-top: 11rem; }
  .edit-sticky-tools .message { min-width: 0; text-align: left; }
  .edit-section-nav { padding-bottom: 0.1rem; }
  .two-col, .split-panels, .date-row { grid-template-columns: 1fr; }
  .split-panels { gap: 1.25rem; }
  .list-row { flex-direction: column; }
  .row-actions { justify-content: flex-start; }
  .profile-header { align-items: flex-start; flex-direction: column; }
  .public-hero { grid-template-columns: 1fr; }
  .public-avatar { width: 112px; height: 112px; border-radius: 30px; }
  .share-card { align-items: flex-start; flex-direction: column; }
  .share-actions, .share-actions button { width: 100%; }
  .profile-stats { display: grid; grid-template-columns: 1fr 1fr; }
  .profile-stats span { justify-content: center; }
  .section-note { max-width: none; text-align: left; }
  .readiness-summary { align-items: flex-start; flex-direction: column; }
  .profile-image-preview, .handle-preview, .qr-card, .youtube-import-card { flex-direction: column; align-items: flex-start; }
  .youtube-import-card { display: grid; grid-template-columns: 1fr; }
  .handle-preview .form-actions, .qr-card .form-actions { width: 100%; }
  .inline-search { width: 100%; }
  .inline-search input { min-width: 0; }
  .search-toolbar { display: grid; grid-template-columns: 1fr 1fr; }
  .search-toolbar input { grid-column: 1 / -1; }
  .fan-filters { display: grid; grid-template-columns: 1fr; }
  .filter-chip { justify-content: space-between; width: 100%; }
}

@media (max-width: 480px) {
  .container { width: min(100% - 0.75rem, 1120px); padding-top: 1rem; }
  h1 { font-size: clamp(2rem, 13vw, 3rem); line-height: 1.02; }
  h2 { font-size: 1.38rem; }
  .section-heading { align-items: stretch; flex-direction: column; gap: 0.7rem; }
  .inline-search, .search-toolbar { display: grid; grid-template-columns: 1fr; }
  .search-toolbar input { grid-column: auto; }
  .hero-actions .button, .inline-search button, .form-actions .button, .form-actions button, .row-actions button { width: 100%; }
  .profile-card { gap: 0.85rem; padding: 0.85rem; }
  .avatar { width: 56px; height: 56px; border-radius: 18px; }
  .avatar.large, .public-avatar { width: 96px; height: 96px; border-radius: 26px; }
  .profile-stats { grid-template-columns: 1fr; }
  .share-actions { display: grid; grid-template-columns: 1fr; }
  .public-hero::after { font-size: 2.3rem; right: 0.2rem; }
  .list-row { gap: 0.8rem; }
  .row-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .edit-sticky-tools { top: calc(5.75rem + env(safe-area-inset-top)); margin-inline: -0.1rem; }
  .edit-section-nav a { padding: 0.6rem 0.8rem; }
  .qr-card img { width: 116px; height: 116px; }
}
