/* ── Creator profile ──────────────────────────── */
.profile-page textarea,
.profile-page input,
.profile-page select {
  border: none !important;
}
.profile-page {
  padding: 96px 48px 64px;
  background-color: #161a20;
  background-image:
    linear-gradient(rgba(79,195,220,.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,195,220,.1) 1px, transparent 1px),
    linear-gradient(rgba(237,68,47,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(237,68,47,.04) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px;
  background-position: center top;
}
.profile-hero,
.profile-library,
.profile-feed { max-width: 1320px; margin: 0 auto; }
.profile-hero {
  padding-bottom: 26px;
}
.profile-subnav,
.profile-layout {
  max-width: 1320px;
  margin: 0 auto;
}
.profile-subnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  background: rgba(28,34,42,.88);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  border-radius: 14px;
}
.profile-subnav-links,
.profile-subnav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.profile-tab-trigger {
  min-height: 36px;
  padding: 0 14px;
  border: 2px solid var(--ink);
  background: #ffffff;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  cursor: pointer;
  border-radius: 6px;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.profile-tab-trigger.active {
  background: var(--accent);
  border-color: var(--ink);
  color: #ffffff;
}
.profile-publish {
  position: relative;
}
.profile-publish.is-open .profile-create {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
}
.profile-publish-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 3;
  display: grid;
  gap: 6px;
  min-width: 180px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(25,30,37,.98);
  box-shadow: 0 18px 36px rgba(0,0,0,.22);
  border-radius: 14px;
}
.profile-publish-menu[hidden] {
  display: none !important;
}
.profile-publish-action {
  min-height: 38px;
  padding: 0 12px;
  text-align: left;
}
.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
  padding-top: 26px;
}
.profile-main,
.profile-sidebar {
  width: 100%;
  min-width: 0;
}
.profile-tab-panel {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}
.profile-tab-panel[hidden] {
  display: none !important;
}
.profile-section {
  position: relative;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 28px;
  background: #FFFFFF;
  box-shadow: none;
  border-radius: 16px;
}
.profile-section:nth-of-type(even) {
  background: #F3F4F6;
}
.profile-section::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: #ed442f;
}
.profile-sidebar {
  display: grid;
  gap: 16px;
}
.profile-sidebar-card {
  padding: 20px;
  background: rgba(30,35,43,.88);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  position: relative;
  border-radius: 16px;
}
.profile-sidebar-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: #4fc3dc;
}
.profile-sidebar-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.profile-sidebar-label {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  background: rgba(191,228,242,.08);
  color: #9fd0e2;
  font: 500 10px 'Space Grotesk', Arial, Helvetica, sans-serif;
  text-transform: uppercase;
}
.profile-sidebar-card strong {
  display: block;
  margin-top: 10px;
  color: #f4fbff;
  font: 700 18px 'Sora', Arial, Helvetica, sans-serif;
}
.profile-sidebar-detail-list {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}
.profile-sidebar-detail-row {
  display: grid;
  gap: 6px;
}
.profile-availability-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}
.profile-availability-status i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2dc36a;
  box-shadow: 0 0 0 4px rgba(45,195,106,.14);
}
.profile-availability-status strong {
  margin: 0;
  color: #77d891;
  font: 600 14px 'Space Grotesk', Arial, Helvetica, sans-serif;
}
.profile-sidebar-detail-row small {
  color: #90a6b4;
  font: 500 11px 'Space Grotesk', Arial, Helvetica, sans-serif;
  text-transform: uppercase;
}
.profile-sidebar-detail-values span {
  color: #f1f8fc;
  font-style: normal;
  font-size: 13px;
  line-height: 1.6;
}
.profile-sidebar-cta {
  width: 100%;
  margin-top: 18px;
}
.profile-sidebar-detail-values,
.profile-sidebar-link-values {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.profile-sidebar-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 2px solid var(--ink);
  background: #FFFFFF;
  color: var(--ink);
  text-decoration: none;
  border-radius: 6px;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.profile-sidebar-link:hover {
  transform: translate(3px, 3px);
  box-shadow: none;
  background: var(--accent);
  color: #FFFFFF;
}
.profile-sidebar-link svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.profile-sidebar-link img {
  width: 16px;
  height: 16px;
  display: block;
}
.profile-sidebar-stats {
  display: grid;
  gap: 0;
  margin-top: 14px;
}
.profile-sidebar-stats span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid rgba(191,228,242,.08);
  color: #a6bac5;
  font-size: 12px;
}
.profile-sidebar-stats span:first-child {
  border-top: 0;
  padding-top: 0;
}
.profile-sidebar-stats strong {
  margin: 0;
  font: 700 18px 'Sora', Arial, Helvetica, sans-serif;
  color: #f4fbff;
}
.profile-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.profile-meta-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  background: rgba(191,228,242,.08);
  color: #e3f4fb;
  font: 500 10px 'Space Grotesk', Arial, Helvetica, sans-serif;
  text-transform: uppercase;
}
.profile-featured-card {
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
}
.profile-featured-cover-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.profile-featured-cover-link:focus-visible {
  outline: none;
}
.profile-featured-cover-link:focus-visible .profile-featured-cover {
  box-shadow:
    inset 0 0 0 1px rgba(191,228,242,.14),
    inset 0 0 0 3px rgba(237,68,47,.92);
}
.profile-featured-cover {
  min-height: 380px;
  background:
    #071722;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(191,228,242,.14);
  overflow: hidden;
}
.profile-featured-cover-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #071722;
}
.profile-featured-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.profile-featured-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.profile-featured-copy strong {
  color: #f5fbff;
  font: 700 clamp(28px, 4vw, 40px) 'Sora', Arial, Helvetica, sans-serif;
  line-height: 1.05;
}
.profile-featured-score {
  color: #ff9b3d;
  font: 700 28px 'Sora', Arial, Helvetica, sans-serif;
}
.profile-featured-chips {
  margin-top: -4px;
}
.profile-featured-copy p,
.profile-rich-copy p {
  color: #bfd0da;
  font-size: 14px;
  line-height: 1.8;
}
.profile-featured-facts {
  display: grid;
  gap: 10px;
}
.profile-featured-facts span {
  display: grid;
  grid-template-columns: 18px 88px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  max-width: 520px;
  color: #9bb1bd;
  font-size: 12px;
}
.profile-featured-facts svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #9fd0e2;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.profile-featured-facts strong,
.profile-featured-facts em {
  font-style: normal;
}
.profile-featured-facts strong {
  color: #dcebf3;
  font: 500 12px 'Space Grotesk', Arial, Helvetica, sans-serif;
  text-transform: uppercase;
}
.profile-featured-facts em {
  color: #f4fbff;
  font: 500 13px 'Space Grotesk', Arial, Helvetica, sans-serif;
}
.profile-featured-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.profile-featured-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(237,68,47,.3);
  background: #ed442f;
  color: #f4fbff;
  font: 600 12px 'Space Grotesk', Arial, Helvetica, sans-serif;
  text-decoration: none;
  text-transform: uppercase;
}
.profile-featured-link svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.profile-featured-link:hover {
  background: #d73b27;
  border-color: #d73b27;
}
.profile-preview-posts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.profile-update-preview {
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto;
  gap: 12px;
}
.profile-update-preview-media-wrap,
.profile-update-tile-media-wrap {
  position: relative;
  overflow: hidden;
  background: rgba(7,24,37,.68);
  box-shadow: inset 0 0 0 1px rgba(191,228,242,.1);
}
#profile-view-all-updates {
  margin: 0 auto;
  display: block;
  margin-top: 20px;
}
.profile-update-preview-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 0;
  background: #071722;
  cursor: pointer;
}
.profile-update-preview-image.placeholder {
  min-height: 0;
  box-shadow: inset 0 0 0 1px rgba(191,228,242,.1);
}
.profile-update-preview-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  background: #071722;
}
.profile-update-preview-overlay,
.profile-update-tile-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 14px;
  background: rgba(0, 0, 0, 0.2);
  pointer-events: none;
}
.profile-update-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 0;
  background: transparent;
  color: var(--ink);
  font: 700 11px/1 "Space Mono", monospace;
}
.profile-update-preview-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 0 14px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease;
}
.profile-update-preview:hover .profile-update-preview-more,
.profile-update-tile:hover .profile-update-preview-more {
  opacity: 1;
  transform: translateY(0);
}
.profile-update-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0;
  width: 100%;
}
.profile-view-all {
  display: inline-flex;
  align-items: center;
  margin-top: 18px;
  border: 0;
  background: transparent;
  color: #f15a42;
  font: 600 13px 'Space Grotesk', Arial, Helvetica, sans-serif;
  cursor: pointer;
}
.profile-banner {
  position: relative;
  min-height: 260px;
  aspect-ratio: 12 / 4;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  background:
    linear-gradient(135deg, rgba(10,52,80,.95), rgba(7,31,47,.98)),
    linear-gradient(135deg, var(--profile-accent, var(--accent)), #24262c 72%);
  border: 1px solid rgba(191,228,242,.22);
  border-radius: 8px;
  overflow: hidden;
}
.profile-banner.has-image { background-color: #0b2234; }
.profile-banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.profile-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(191,228,242,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(191,228,242,.12) 1px, transparent 1px),
    linear-gradient(rgba(191,228,242,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(191,228,242,.045) 1px, transparent 1px);
  background-size: 72px 72px, 72px 72px, 14px 14px, 14px 14px;
  pointer-events: none;
}
.profile-banner-wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3,10,16,.14), rgba(3,10,16,.55)),
    linear-gradient(90deg, rgba(8,27,42,.76), rgba(8,27,42,.18) 36%, rgba(8,27,42,.62));
}
.profile-hero-actions {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
}
.profile-hero-edit {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  line-height: 1;
}
.profile-identity {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: -44px 24px 0;
  padding: 22px 24px;
  border: 1px solid rgba(191,228,242,.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(8,33,49,.94), rgba(6,24,37,.96));
  backdrop-filter: blur(8px);
  box-shadow:
    inset 0 0 0 1px rgba(191,228,242,.04),
    0 20px 44px rgba(0,0,0,.22);
}
.profile-avatar {
  display: grid;
  place-items: center;
  width: 106px;
  height: 106px;
  flex: 0 0 106px;
  border: 2px solid rgba(191,228,242,.28);
  border-radius: 50%;
  background: var(--profile-accent, var(--accent));
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: #111;
  font: 700 28px 'Sora', Arial, Helvetica, sans-serif;
}
.profile-avatar.has-image { color: transparent; }
.profile-copy { min-width: 0; flex: 1 1 auto; }
.profile-sidecar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  min-width: 220px;
}
.profile-copy-actions { margin-top: 12px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.profile-identity h1 { font: 700 28px 'Sora', Arial, Helvetica, sans-serif; }
.profile-copy .home-eyebrow {
  color: #8ec3d8;
  letter-spacing: .08em;
}
.profile-copy h1 { color: #f6fbff; }
.profile-copy p:nth-child(3),
.profile-identity p:last-child { margin-top: 5px; color: #9fb5c2; font-size: 12px; }
.profile-secondary {
  min-height: 36px;
  padding: 0 14px;
  text-decoration: none;
}
.profile-stats {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: #91a9b7;
  font-size: 11px;
}
.profile-stats span {
  display: inline-flex;
  align-items: baseline;
  min-width: 120px;
  padding: 10px 12px;
  border: 1px solid rgba(191,228,242,.14);
  background: rgba(7,24,37,.7);
}
.profile-stats strong {
  display: inline-block;
  min-width: 4ch;
  margin-right: 5px;
  color: #f6fbff;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.profile-lock-note {
  color: #8fa7b5;
  font-size: 11px;
  line-height: 1.5;
}
.profile-contact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  width: 100%;
}
.profile-contact span {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  background: rgba(7,24,37,.68);
  color: #99afbc;
  font-size: 11px;
  box-shadow: inset 0 0 0 1px rgba(191,228,242,.12);
}
.profile-contact strong {
  color: #f1f8fc;
  font-weight: 500;
}
.profile-about {
  background: rgba(8,31,46,.82);
}
.profile-library,
.profile-feed {
  padding-top: 0;
}
.profile-bookmarks {
  background: rgba(8,31,46,.82);
}
.profile-library .home-section-head,
.profile-feed .home-section-head {
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.profile-feed .home-section-head,
.profile-feed .profile-posts,
.profile-feed-sentinel {
  width: 100%;
}
.profile-library h2 { font: 700 21px 'Sora', Arial, Helvetica, sans-serif; }
.profile-library h2,
.profile-feed h2 {
  color: #f4fbff;
}
.profile-create {
  min-height: 36px;
  min-width: 104px;
  padding: 0 14px;
}
.profile-create.is-following {
  border-width: 2px;
}
#profile-dialog-textarea,
.profile-dialog-grid select {
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(191,228,242,.16);
  border-radius: 6px;
  background: rgba(4,18,29,.88);
  color: #fff;
  resize: vertical;
}
.profile-upload-preview {
  min-height: 180px;
  border: 1px dashed rgba(191,228,242,.22);
  border-radius: 6px;
  background: rgba(7,24,37,.78);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
}
.profile-upload-preview.small {
  width: 100%;
  min-height: 0;
  aspect-ratio: 5 / 1;
  max-width: 540px;
}
.profile-upload-preview.avatar {
  min-height: 0;
  width: 96px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
}
.profile-upload-preview.has-image { border-style: solid; }
.profile-upload-placeholder {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  text-align: center;
}
.profile-upload-preview:not(.has-image) .profile-upload-placeholder {
  display: flex;
}
.profile-upload-placeholder-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 2px solid rgba(191,228,242,.24);
  border-radius: 50%;
  color: var(--ink);
  font: 700 22px/1 'Space Grotesk', Arial, Helvetica, sans-serif;
}
.profile-upload-placeholder-copy {
  color: var(--muted);
  font: 600 11px/1.4 'Space Grotesk', Arial, Helvetica, sans-serif;
  text-transform: uppercase;
}
.profile-grid { display: flex; flex-wrap: wrap; gap: 38px 28px; padding-top: 0; }
.profile-work { position: relative; width: 194px; }
.profile-posts {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 0;
}
.profile-post-source[hidden] {
  display: none !important;
}
.profile-update-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  width: 100%;
  margin-top: 16px;
}
.profile-update-tile {
  min-height: 0;
  scroll-margin-top: 108px;
  display: grid;
  grid-template-rows: auto auto;
  gap: 12px;
}
.profile-update-tile-media {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #071722;
  height: auto;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: pointer;
}
.profile-update-tile-media:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 3px rgba(237,68,47,.92);
}
.profile-update-tile-media.placeholder {
  box-shadow: inset 0 0 0 1px rgba(191,228,242,.1);
}
.profile-update-tile-media.placeholder:focus-visible {
  box-shadow:
    inset 0 0 0 1px rgba(191,228,242,.1),
    inset 0 0 0 3px rgba(237,68,47,.92);
}
.profile-update-tile-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  background: #071722;
}
.profile-update-card-meta {
  color: var(--ink);
  font-size: 11px;
  pointer-events: auto;
}
.profile-update-tile-like {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: 700 11px/1 "Space Mono", monospace;
}
.profile-update-tile-like svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}
.profile-update-tile-like.active {
  color: #ff8f7a;
}
.profile-update-delete {
  position: absolute;
  top: 12px;
  right: 12px;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease;
}
.profile-update-tile:hover .profile-update-delete,
.profile-update-tile:focus-within .profile-update-delete {
  opacity: 1;
  transform: translateY(0);
}
.profile-section > .profile-grid,
.profile-section > .profile-posts,
.profile-section > .profile-update-gallery,
.profile-section > .profile-artist-grid,
.profile-section > .profile-preview-posts,
.profile-section > .profile-rich-copy,
.profile-section > .profile-contact {
  width: 100%;
  max-width: none;
  margin-top: 16px;
}
.profile-artist-grid {
  display: flex !important;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: start;
  grid-template-columns: unset;
}
.profile-post {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(191,228,242,.14);
  border-radius: 6px;
  background: rgba(7,24,37,.76);
}
.profile-post.is-hidden { display: none; }
.profile-scroll-anchor,
.profile-post {
  scroll-margin-top: 180px;
}
.profile-post-body {
  position: relative;
  width: 100%;
  padding: 18px 22px 18px 28px;
  background:
    rgba(4,18,29,.62);
  color: #dbeaf2;
  font-size: 15px;
  line-height: 1.82;
}
.profile-post-body::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 18px;
  bottom: 18px;
  width: 2px;
  background: rgba(237,68,47,.7);
}
.profile-post-edit-form {
  width: 100%;
  padding: 18px 22px;
  background: rgba(4,18,29,.62);
}
.profile-post-edit-form textarea {
  width: 100%;
  min-height: 100px;
  padding: 12px;
  background: rgba(10, 30, 50, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #dbeaf2;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.6;
  resize: vertical;
  margin-bottom: 12px;
}
.profile-post-edit-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(10, 30, 50, 0.8);
}
.profile-post-media {
  display: block;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: #070709;
  overflow: hidden;
  cursor: zoom-in;
}
.profile-post-media:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 3px rgba(237,68,47,.92);
}
.profile-post-image {
  display: block;
  width: 100%;
  height: min(500px, 70vh);
  max-height: 500px;
  object-fit: contain;
  border-radius: 6px;
  background: #070709;
}
.profile-post-foot {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  color: var(--muted);
  font-size: 11px;
}
.profile-post-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.profile-like {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 0 10px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .5px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.profile-like.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}
.profile-comments {
  display: none;
  width: 100%;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid rgba(191,228,242,.12);
}
.profile-comments.open { display: block; }
.profile-comments-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.profile-comment {
  padding: 12px;
  border: 1px solid rgba(191,228,242,.12);
  border-radius: 6px;
  background: rgba(4,18,29,.56);
}
.profile-comment-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 10px;
}
.profile-comment-meta span {
  color: #f2f8fc;
  font: 500 11px 'Space Grotesk', Arial, Helvetica, sans-serif;
}
.profile-comment-meta time {
  white-space: nowrap;
}
.profile-comment p,
.profile-comment-empty {
  color: #d5e4ec;
  font-size: 12px;
  line-height: 1.5;
}
.profile-feed-sentinel {
  width: 100%;
  height: 1px;
  margin-top: 12px;
}
.profile-comment-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}
.profile-comment-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(191,228,242,.16);
  border-radius: 6px;
  background: rgba(4,18,29,.88);
  color: #fff;
  resize: vertical;
}
.profile-comment-form textarea:focus-visible {
  outline: none;
  border-color: rgba(237,68,47,.6);
  box-shadow: inset 0 0 0 2px rgba(237,68,47,.92);
}
.profile-comment-form .profile-secondary:focus-visible {
  outline: none;
  border-color: rgba(237,68,47,.6);
  box-shadow: inset 0 0 0 2px rgba(237,68,47,.92);
}
.profile-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 10px 0 0 14px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #8f929a;
  cursor: pointer;
}
.profile-delete svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.profile-delete:hover { color: #ff6652; }
.profile-delete-post {
  margin: 0;
  flex-shrink: 0;
}
.profile-post-actions .profile-delete,
.profile-comment .profile-delete {
  margin: 0;
}
#profile-dialog {
  width: min(460px, calc(100% - 32px));
  margin: auto;
  padding: 0;
  border: 2px solid #111827;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  box-shadow: 6px 6px 0 #111827;
}
.is-profile-edit#profile-dialog { width: min(720px, calc(100% - 32px)); }
#profile-dialog::backdrop { background: rgba(0,0,0,.6); backdrop-filter: blur(4px); }
#profile-dialog form { padding: 28px; display: flex; flex-direction: column; gap: 0; }
#profile-dialog h2 { font: 400 26px/1 'Bangers', sans-serif; letter-spacing: 1px; color: var(--ink); }
#profile-dialog p { margin-top: 8px; color: #6B7280; font-size: 13px; line-height: 1.5; }
/* Field labels — hidden by default, shown in edit-profile mode */
.profile-dialog-field-label {
  display: none;
  font: 700 11px/1 'Space Mono', monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #374151;
  margin-top: 16px;
  margin-bottom: 6px;
}
.is-profile-edit .profile-dialog-field-label { display: block; }
/* When label shown, remove input's own top margin */
.is-profile-edit .profile-dialog-field-label + input { margin-top: 0; }
#profile-dialog-error {
  margin: 12px 0 0;
  color: var(--accent);
  font: 600 12px 'Space Mono', monospace;
  letter-spacing: .03em;
}
#profile-dialog input, #profile-dialog textarea {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #111827;
  border-radius: 6px;
  background: #fff;
  color: #111827;
  font: 400 14px/1.5 'Space Grotesk', sans-serif;
  box-shadow: 2px 2px 0 #111827;
  transition: border-color .15s, box-shadow .15s;
}
#profile-dialog input:focus, #profile-dialog textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 2px 2px 0 var(--accent);
}
#profile-dialog-textarea { margin-top: 16px; min-height: 100px; resize: vertical; }
#profile-dialog-textarea { margin-top: 14px; }
.profile-dialog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.profile-dialog-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.profile-dialog-field > label {
  font: 700 11px/1 'Space Mono', monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #374151;
}
/* Reset margin-top for inputs/selects inside fields — label handles spacing */
.profile-dialog-field input,
.profile-dialog-field select,
.profile-dialog-socials input { margin-top: 0 !important; }
/* Select matches input style */
.profile-dialog-field select {
  width: 100%;
  padding: 10px 34px 10px 12px;
  border: 2px solid #111827;
  border-radius: 6px;
  background: #fff;
  color: #111827;
  font: 400 14px/1.5 'Space Grotesk', sans-serif;
  box-shadow: 2px 2px 0 #111827;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #8d9199 50%),
    linear-gradient(135deg, #8d9199 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 2px),
    calc(100% - 12px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  cursor: pointer;
}
.profile-dialog-field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 2px 2px 0 var(--accent);
}
.profile-dialog-socials {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.profile-dialog-languages {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border: 2px solid #e5e7eb;
  border-radius: 6px;
  background: #f9fafb;
}
.profile-dialog-upload[hidden],
.profile-dialog-upload-row[hidden] {
  display: none !important;
}
.profile-dialog-grid[hidden],
.profile-dialog-upload[hidden],
.profile-dialog-upload-row[hidden] {
  display: none !important;
}
.profile-dialog-grid[hidden]
.profile-language-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.profile-language-chip.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}
.profile-dialog-upload { margin-top: 14px; }

/* ── Update dialog: Facebook-style vertical layout ── */
#profile-dialog form.is-update-form {
  display: flex;
  flex-direction: column;
  padding: 0;
}
#profile-dialog form.is-update-form h2 {
  padding: 22px 24px 0;
  font: 400 26px/1 'Bangers', sans-serif;
  letter-spacing: 1px;
  color: #111827;
  margin: 0;
}
#profile-dialog form.is-update-form p {
  padding: 4px 24px 0;
  font-size: 12px;
  color: #9ca3af;
  margin: 0;
}
.form-body-update {
  display: flex;
  flex-direction: column;
  padding: 16px 24px;
  gap: 12px;
}
/* Textarea first, full width */
.form-body-update #profile-dialog-textarea {
  flex: none;
  margin: 0;
  width: 100%;
  min-height: 100px;
  max-height: 200px;
  resize: none;
}
/* Image zone below textarea — wide landscape ratio */
.form-body-update .profile-dialog-upload {
  flex: none;
  margin: 0;
  width: 100%;
}
.form-body-update .profile-dialog-upload-row.is-update-upload {
  display: block;
  cursor: pointer;
}
.form-body-update .profile-upload-preview {
  width: 100%;
  height: 160px;
  min-height: 0;
  aspect-ratio: unset;
  border-radius: 8px;
  border: 2px dashed #d1d5db;
  background: #f9fafb;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.form-body-update .profile-upload-preview:hover {
  border-color: var(--accent);
  background-color: #fff5f3;
}
.form-body-update .profile-upload-preview.has-image {
  border-style: solid;
  border-color: #111827;
  height: 200px;
}
.form-body-update .profile-upload-placeholder-icon {
  width: 32px; height: 32px; font-size: 18px;
  border: 2px solid #e5e7eb;
  border-radius: 50%;
  color: #9ca3af;
}
.form-body-update .profile-upload-placeholder-copy {
  color: #9ca3af; font-size: 11px;
}
.form-body-update .profile-upload-meta {
  margin-top: 6px;
  flex-direction: row; flex-wrap: wrap; gap: 6px;
}
.form-body-update .profile-upload-meta strong,
.form-body-update .profile-upload-meta span { display: none; }
/* Error */
#profile-dialog form.is-update-form #profile-dialog-error {
  padding: 0 24px; margin: 0;
}
/* Buttons */
#profile-dialog form.is-update-form > div:last-child {
  padding: 12px 24px 20px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 0;
}
.profile-dialog-upload-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  margin-top: 12px;
}
.profile-dialog-upload-row.is-update-upload {
  grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
  align-items: start;
  cursor: pointer;
}
.profile-dialog-upload-row.is-update-upload .profile-upload-preview {
  width: 100%;
  min-height: 0;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
}
.profile-dialog-upload-row.is-update-upload .profile-upload-placeholder-icon {
  width: 42px;
  height: 42px;
  font-size: 24px;
}
.profile-dialog-upload-row.is-update-upload .profile-upload-placeholder-copy {
  font-size: 12px;
}
.profile-dialog-upload-row.banner-row {
  grid-template-columns: 1fr;
  align-items: start;
}
.profile-dialog-upload-row.banner-row .profile-upload-meta {
  max-width: 540px;
}
.profile-upload-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}
.profile-upload-meta strong {
  color: var(--ink);
  font: 600 13px 'Space Grotesk', Arial, Helvetica, sans-serif;
}
.profile-upload-meta span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
.profile-upload-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 2px;
}
.profile-upload-remove {
  opacity: .6;
}
.profile-upload-remove:hover { opacity: 1; }
#profile-dialog form > div:last-child { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
#profile-dialog button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 16px;
  line-height: 1;
  border: 2px solid #111827;
  border-radius: 6px;
  background: #fff;
  color: #111827;
  font: 700 11px/1 'Space Mono', monospace;
  letter-spacing: .5px;
  box-shadow: 3px 3px 0 #111827;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
#profile-dialog button:hover { transform: translate(2px,2px); box-shadow: 1px 1px 0 #111827; }
#profile-dialog-confirm { background: var(--accent); border-color: #111827; color: #fff; }
#profile-lightbox {
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(0,0,0,.94);
}
#profile-lightbox::backdrop { background: rgba(0,0,0,.94); }
.profile-lightbox-shell {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: grid;
  place-items: center;
  padding: 56px 24px 24px;
}
.profile-lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: #FFFFFF;
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.profile-lightbox-close:hover {
  transform: translate(3px, 3px);
  box-shadow: none;
  background: var(--accent);
  color: #FFFFFF;
}
#profile-lightbox-image {
  display: block;
  width: auto;
  max-width: min(94vw, 1400px);
  max-height: calc(100vh - 96px);
  margin: 0 auto;
  border-radius: 8px;
  background: #111;
  object-fit: contain;
  box-shadow: 0 24px 64px rgba(0,0,0,.42);
}
#profile-post-dialog {
  width: min(980px, calc(100% - 32px));
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
}
#profile-post-dialog::backdrop {
  background: rgba(0,0,0,.82);
}
.profile-post-dialog-shell {
  position: relative;
  padding: 54px 0 0;
}
.profile-post-dialog-close {
  position: absolute;
  top: 0;
  right: 0;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(15,15,17,.82);
  color: #fff;
  cursor: pointer;
}
.profile-post-dialog-body {
  max-height: calc(100vh - 96px);
  overflow: auto;
}
.profile-post-dialog-body .profile-post {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px 18px;
  align-items: start;
  max-height: none;
  overflow: visible;
}
.profile-post-dialog-body .profile-post > * {
  grid-column: 1;
}
.profile-post-dialog-body .profile-post-body {
  margin: 0;
}
.profile-post-dialog-body .profile-post-media {
  align-self: start;
}
.profile-post-dialog-body .profile-post-image {
  max-height: min(62vh, 780px);
}
.profile-post-dialog-body .profile-post-foot {
  margin-top: 0;
}
.profile-post-dialog-body .profile-comments {
  grid-column: 2;
  grid-row: 1 / span 4;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 0 0 0 16px;
  border-top: 0;
  border-left: 1px solid rgba(191,228,242,.12);
  max-height: min(72vh, 780px);
  overflow: hidden;
  align-self: stretch;
}
.profile-post-dialog-body .profile-comment-form {
  order: -1;
  position: sticky;
  top: 0;
  z-index: 2;
  margin: 0;
  padding: 0 0 12px;
  border-bottom: 1px solid rgba(191,228,242,.12);
  background: rgba(6,24,37,.82);
  backdrop-filter: blur(12px);
}
.profile-post-dialog-body .profile-comments-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

@media (max-width: 720px) {

  /* ── Page ── */
  .profile-page { padding: 64px 14px 44px; }

  /* ── Hero: banner edge-to-edge via neg margins ── */
  .profile-hero {
    margin-left: -14px;
    margin-right: -14px;
    max-width: calc(100% + 28px);
    padding-bottom: 20px;
  }
  .profile-banner {
    aspect-ratio: unset;
    min-height: unset;
    height: 130px;
    border-radius: 0;
    border: none;
  }
  .profile-banner-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
  }
  .profile-hero-actions { top: 10px; right: 12px; }
  .profile-hero-edit { min-height: 28px; padding: 0 10px; font-size: 10px; }

  /* ── Identity card ── */
  .profile-identity {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 14px;
    margin: -30px 14px 0;
    padding: 14px 16px;
  }
  .profile-avatar { width: 72px; height: 72px; flex: 0 0 72px; flex-basis: 72px; }
  .profile-copy h1 { font-size: 18px; }
  .profile-copy-actions {
    margin-top: 10px;
    gap: 8px;
  }
  .profile-copy-actions .btn,
  .profile-copy-actions .profile-secondary,
  .profile-copy-actions .profile-create {
    min-height: 30px;
    padding: 0 12px;
    font-size: 10px;
    box-shadow: 2px 2px 0 var(--ink);
  }

  /* ── Stats: number above label, Sora font ── */
  .profile-sidecar { min-width: 0; width: 100%; align-items: stretch; }
  .profile-stats {
    flex-wrap: nowrap;
    gap: 0;
    margin-top: 8px;
    width: 100%;
  }
  .profile-stats span {
    flex: 1;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    padding: 8px 2px;
    border: none;
    background: transparent;
    font-size: 10px;
    color: #8fa7b5;
    text-align: center;
    border-right: 1px solid rgba(191,228,242,.1);
  }
  .profile-stats span:last-child { border-right: none; }
  .profile-stats strong {
    display: block;
    font-family: var(--font-sora);
    font-size: 20px;
    font-weight: 700;
    min-width: 0;
    margin: 0;
    color: #f6fbff;
    line-height: 1.1;
  }

  /* ── Subnav: 2-row grid, no scroll ── */
  .profile-subnav {
    flex-direction: column;
    overflow: visible;
    gap: 0;
    padding: 8px 14px;
    background: rgba(18,23,31,.95);
    box-shadow: inset 0 -1px 0 rgba(191,228,242,.08);
    border-radius: 0;
    max-width: 100%;
    margin: 0;
    align-items: stretch;
  }
  .profile-subnav-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    flex: none;
    min-width: 0;
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
    padding: 0;
    width: 100%;
  }
  .profile-subnav-links::-webkit-scrollbar { display: none; }
  .profile-subnav-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 6px 0 0;
    border-left: none;
    border-top: 1px solid rgba(191,228,242,.08);
    margin-top: 4px;
  }

  /* Tab buttons: solid buttons, obvious active */
  .profile-tab-trigger {
    box-shadow: none !important;
    border: 1px solid rgba(191,228,242,.15) !important;
    background: rgba(255,255,255,.07) !important;
    color: rgba(255,255,255,.55);
    border-radius: 8px;
    min-height: 32px;
    padding: 0 4px;
    font-size: 9px;
    white-space: nowrap;
    flex-shrink: 0;
    width: 100%;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -.2px;
  }
  .profile-tab-trigger.active {
    color: #fff !important;
    background: var(--accent) !important;
    border-color: var(--accent) !important;
  }
  .profile-tab-trigger:hover { transform: none; }
  /* Abbreviate long labels on mobile */
  .profile-tab-trigger[data-profile-tab="artist-info"] {
    font-size: 0 !important;
  }
  .profile-tab-trigger[data-profile-tab="artist-info"]::before {
    content: "About";
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: -.2px;
  }
  .profile-tab-trigger[data-profile-tab="followers"] {
    font-size: 0 !important;
  }
  .profile-tab-trigger[data-profile-tab="followers"]::before {
    content: "Followers";
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: -.2px;
  }
  .profile-tab-trigger[data-profile-tab="following"] {
    font-size: 0 !important;
  }
  .profile-tab-trigger[data-profile-tab="following"]::before {
    content: "Following";
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: -.2px;
  }

  /* + Publish button compact */
  .profile-create {
    box-shadow: 2px 2px 0 var(--ink) !important;
    min-height: 28px !important;
    padding: 0 12px !important;
    font-size: 9px !important;
    white-space: nowrap;
  }

  /* ── Layout ── */
  .profile-subnav,
  .profile-layout { max-width: 100%; margin: 0; }
  .profile-layout { grid-template-columns: 1fr; gap: 14px; }
  .profile-sidebar { position: static; order: 2; }
  .profile-tab-panel { gap: 14px; }
  .profile-section { padding: 16px; border-radius: 12px; }

  /* ── Library: 2-col book grid ── */
  .profile-library,
  .profile-feed { max-width: 100%; }
  .profile-library .home-shelf {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 10px;
  }
  .profile-library .home-shelf .lib-card-shell { width: 100%; flex: unset; }
  .profile-library .home-shelf .lib-book-cover {
    width: 100%;
    height: auto;
    aspect-ratio: 9/13;
  }
  .profile-library .home-shelf .lib-book-spine { height: auto; }
  .profile-library .home-shelf .lib-card-meta { padding-left: 0; margin-top: 4px; }
  .profile-library .home-shelf .lib-card-name { font-size: 9px; }
  .profile-library .home-shelf .lib-card-sub  { font-size: 8px; }
  .profile-library .home-shelf .lib-card-likes { display: none; }
  .profile-library .home-shelf .book-card-actions { display: none; }

  /* ── Followers/Following: compact 2-col card grid ── */
  .profile-artist-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    flex-direction: unset;
    margin-top: 10px;
  }
  .profile-artist-grid .creator-card {
    width: 100%;
    flex: none;
    box-shadow: 2px 2px 0 #171214;
    flex-direction: column;
  }
  .profile-artist-grid .creator-card-head {
    display: block;
    height: 40px;
  }
  .profile-artist-grid .creator-card-avatar {
    width: 42px;
    height: 42px;
    margin-top: -21px;
    font-size: 15px;
    margin-left: auto;
    margin-right: auto;
  }
  .profile-artist-grid .creator-card-body {
    flex-direction: column;
    align-items: center;
    padding: 0 6px 8px;
    gap: 0;
    text-align: center;
  }
  .profile-artist-grid .creator-card-name {
    font-size: 12px;
    margin-top: 3px;
  }
  .profile-artist-grid .creator-card-handle { display: none; }
  .profile-artist-grid .creator-card-stat { display: none; }
  .profile-artist-grid .creator-card-cta {
    margin: 5px 0 0 !important;
  }

  /* ── Works & Bookmarks: 2-col compact grid ── */
  .profile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    flex-wrap: unset;
  }
  .profile-work {
    width: 100%;
  }
  .profile-work .lib-book {
    width: 100%;
  }
  .profile-work .lib-book-cover {
    width: 100%;
    height: auto;
    aspect-ratio: 9/13;
  }
  .profile-work .lib-book-spine { height: auto; }
  .profile-work .lib-card-info,
  .profile-work .lib-card-meta {
    padding-left: 0;
    margin-top: 4px;
  }
  .profile-work .lib-card-name { font-size: 9px; }
  .profile-work .lib-card-sub  { font-size: 8px; }
  .profile-work .book-card-actions,
  .profile-work .lib-card-likes { display: none; }
  /* Bookmarks lib-card-shell in profile-grid */
  .profile-grid .lib-card-shell,
  .profile-grid .lib-card {
    width: 100%;
    flex: unset;
  }
  .profile-grid .lib-book-cover {
    width: 100%;
    height: auto;
    aspect-ratio: 9/13;
  }
  .profile-grid .lib-book-spine { height: auto; }
  .profile-grid .lib-card-meta { padding-left: 0; margin-top: 4px; }
  .profile-grid .lib-card-name { font-size: 9px; }
  .profile-grid .lib-card-sub  { font-size: 8px; }
  .profile-grid .book-card-actions,
  .profile-grid .lib-card-likes { display: none; }
  .profile-featured-card,
  .profile-update-gallery,
  .profile-update-preview  { grid-template-columns: 1fr; }
  .profile-preview-posts   { grid-template-columns: 1fr; }
  .profile-featured-cover  { min-height: 200px; }
  .profile-update-preview-more { margin-left: 0; }
  .profile-posts           { max-width: none; }
  .profile-contact         { grid-template-columns: 1fr; }
  .profile-contact span    { flex-direction: column; }
  .profile-dialog-grid         { grid-template-columns: 1fr; }
  .profile-dialog-upload-row   { grid-template-columns: 1fr; }
  .profile-comments,
  .profile-comments-list,
  .profile-comment-form    { min-width: 0; max-width: none; width: 100%; }
  .profile-post-dialog-body .profile-post { grid-template-columns: 1fr; }
  .profile-post-dialog-body .profile-comments {
    grid-column: 1; grid-row: auto; padding: 12px 0 0;
    border-left: 0; border-top: 1px solid rgba(191,228,242,.12);
    gap: 10px; max-height: none; overflow: visible;
  }
  .profile-post-dialog-body .profile-comment-form {
    position: static; padding-bottom: 0;
    background: transparent; backdrop-filter: none;
  }
  .profile-post-dialog-body .profile-comments-list { overflow: visible; padding-right: 0; }
  .profile-artist-grid { justify-content: center; }
}



/* ── Feed tab ─────────────────────────────────────── */
.profile-feed-list { display: flex; flex-direction: column; gap: 12px; padding-bottom: 32px; }
.profile-feed-item { border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; background: #fff; }
.profile-feed-card { display: block; text-decoration: none; color: inherit; }
.profile-feed-card:hover .profile-feed-img-wrap { background: #e9e9e9; }
.profile-feed-card-top { display: flex; align-items: center; gap: 9px; padding: 10px 12px 8px; }
.profile-feed-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.profile-feed-avatar-init { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 11px; flex-shrink: 0; }
.profile-feed-meta { flex: 1; min-width: 0; }
.profile-feed-meta strong { display: block; font-size: 13px; font-weight: 700; color: #111827; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-feed-meta time { font-size: 11px; color: #9CA3AF; }
.profile-feed-badge { display: inline-block; background: var(--accent); color: #fff; font-size: 9px; font-weight: 800; border-radius: 3px; padding: 1px 5px; font-family: monospace; text-transform: uppercase; margin-left: 4px; vertical-align: middle; }
.profile-feed-img-wrap { background: #f3f4f6; max-height: 300px; display: flex; align-items: center; justify-content: center; transition: background .12s; }
.profile-feed-img { display: block; max-width: 100%; max-height: 300px; width: auto; height: auto; margin: 0 auto; }
.profile-feed-body { padding: 8px 12px 10px; font-size: 13px; color: #374151; line-height: 1.55; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.feed-hidden { display: none; }

/* ── Profile book card icon buttons — fix border-radius for icon+count layout ── */
.profile-grid .book-card-like.book-card-like { border-radius: var(--btn-radius); }
.profile-grid [data-save-bookmark][data-save-bookmark] { border-radius: var(--btn-radius); width: auto; min-width: 30px; }
