:root {
  color-scheme: dark;
  --bg: #171519;
  --surface: #211e23;
  --surface-raised: #29252c;
  --line: #39333c;
  --text: #f5f0f4;
  --muted: #aaa1ad;
  --accent: #ee8caf;
  --accent-strong: #f5a2c0;
  --accent-soft: #482b3b;
  --green: #8dd9b5;
  --radius: 18px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(ellipse at 50% -25%, rgba(115, 55, 88, .19), transparent 48%),
    var(--bg);
  color: var(--text);
  font: 15px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, a { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }

.topbar {
  position: sticky;
  z-index: 5;
  top: 0;
  height: 72px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  background: rgba(23, 21, 25, .92);
  backdrop-filter: blur(18px);
}

.topbar-inner {
  width: min(1180px, calc(100% - 48px));
  height: 100%;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 36px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.7px;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(145deg, #f3a1be, #b35c86);
  color: #26151e;
  font-size: 18px;
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(360px, 36vw);
  height: 40px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #201d22;
  color: var(--muted);
}

.search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
}

.search input::placeholder { color: #837a86; }
.topbar-spacer { flex: 1; }

.icon-button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #201d22;
  color: #ddd5de;
  cursor: pointer;
}

.icon-button:hover, .search:focus-within { border-color: #765063; }
.mobile-search { display: none; }

.layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 740px) 220px;
  gap: 28px;
  width: min(1228px, calc(100% - 48px));
  margin: 30px auto 70px;
  align-items: start;
}

.sidebar { position: sticky; top: 98px; }

.nav-list {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 46px;
  padding: 0 13px;
  border-radius: 12px;
  color: #b9b1bc;
  transition: background .2s, color .2s;
}

.nav-link:hover, .nav-link.active {
  background: #2a242b;
  color: var(--text);
}

.nav-link.active { box-shadow: inset 2px 0 var(--accent); }
.nav-icon { width: 20px; text-align: center; font-size: 17px; }
.nav-count { margin-left: auto; color: var(--accent); font-size: 12px; }

.sidebar-note {
  margin-top: 26px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
  font-size: 12px;
}

.sidebar-note strong {
  display: block;
  margin-bottom: 5px;
  color: var(--text);
  font-size: 13px;
}

.profile-card, .content-card, .side-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.cover {
  position: relative;
  height: 220px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 78% 18%, rgba(242, 171, 197, .42), transparent 29%),
    radial-gradient(ellipse at 67% 75%, rgba(179, 76, 124, .72), transparent 37%),
    radial-gradient(ellipse at 19% 100%, rgba(77, 43, 72, .82), transparent 48%),
    linear-gradient(115deg, #29202c 0%, #593047 53%, #2d202e 100%);
}
.cover-image-actions {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  gap: 8px;
}
.cover-image-actions[hidden] { display: none; }
.banner-delete-button { color: #ffdce8; }
.avatar-wrap { position: relative; flex: 0 0 auto; width: 104px; height: 104px; }
.avatar-view {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: zoom-in;
}
.avatar-view:disabled { cursor: default; }
.avatar-view:focus-visible { outline: 2px solid #eaa5c3; outline-offset: 3px; }
.avatar-wrap .avatar { width: 100%; height: 100%; }
.image-edit-button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 7px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
  background: rgba(28,20,29,.82);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0,0,0,.28);
}
.image-edit-button[hidden] { display: none; }
.image-edit-button:hover { background: #593047; }
.image-edit-button:focus-visible, .image-viewer-close:focus-visible {
  outline: 2px solid #eaa5c3;
  outline-offset: 2px;
}
.image-edit-button svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.avatar-edit-button { position: absolute; top: 2px; right: 0; z-index: 2; }
.image-viewer {
  position: relative;
  max-width: min(95vw, 1200px);
  max-height: 94vh;
  padding: 48px 16px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #171519;
  color: var(--text);
}
.image-viewer::backdrop { background: rgba(0,0,0,.82); }
.image-viewer img { display: block; max-width: calc(95vw - 32px); max-height: calc(94vh - 80px); object-fit: contain; }
.image-viewer-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #29232c;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
}
.image-viewer:not([open]) { display: none; }

.cover::before, .cover::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(255, 225, 237, .17);
  border-radius: 50%;
  transform: rotate(-24deg);
}

.cover::before {
  width: 520px;
  height: 250px;
  top: 28px;
  right: -12px;
  box-shadow: 0 0 0 28px rgba(255,255,255,.025), 0 0 0 56px rgba(255,255,255,.025);
}

.cover::after {
  width: 260px;
  height: 128px;
  top: 75px;
  right: 125px;
  border-color: rgba(255, 225, 237, .24);
}

.cover-label {
  position: absolute;
  right: 18px;
  bottom: 15px;
  z-index: 1;
  padding: 5px 10px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(28, 20, 29, .45);
  color: #f6dce7;
  font-size: 11px;
  backdrop-filter: blur(8px);
}

.profile-main { padding: 0 26px 23px; }

.profile-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-top: -48px;
  position: relative;
}

.avatar {
  display: grid;
  flex: 0 0 auto;
  width: 104px;
  height: 104px;
  place-items: center;
  border: 5px solid var(--surface);
  border-radius: 50%;
  background:
    radial-gradient(circle at 68% 28%, rgba(255,225,235,.85) 0 3%, transparent 4%),
    radial-gradient(circle at 34% 28%, #f4c0cd 0 10%, transparent 11%),
    linear-gradient(145deg, #d88ba6, #7c456b 62%, #392b43);
  color: #fff2f6;
  font-size: 34px;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(0,0,0,.24);
}

.avatar.has-image {
  background-position: center;
  background-size: cover;
  color: transparent;
}

.cover[style*="background-image"] {
  background-position: center;
  background-size: cover;
}

.profile-actions { display: flex; gap: 9px; padding-bottom: 5px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: transparent;
  color: var(--text);
  font-weight: 650;
  cursor: pointer;
  transition: transform .16s, background .16s, border-color .16s;
}

.button:hover { transform: translateY(-1px); border-color: #81556b; }
.button-primary { border-color: transparent; background: var(--accent); color: #28151f; }
.button-primary:hover { background: var(--accent-strong); }
.button.following { border-color: #57424f; background: #342932; color: var(--text); }
.button-icon { width: 40px; padding: 0; font-size: 17px; }

.identity { padding-top: 13px; }
.name-line { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
h1 { margin: 0; font-size: 25px; letter-spacing: -.65px; line-height: 1.2; }

.verified {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  background: #78cba3;
  color: #18231e;
  font-size: 11px;
  font-weight: 900;
}

.handle { margin-top: 3px; color: var(--muted); }
.meta { display: flex; flex-wrap: wrap; gap: 8px 17px; margin-top: 13px; color: var(--muted); font-size: 13px; }
.meta span { display: inline-flex; align-items: center; gap: 6px; }
.bio { max-width: 590px; margin: 14px 0 0; color: #e0d9e1; }

.interests { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 15px; }
.tag {
  padding: 5px 10px;
  border: 1px solid #493742;
  border-radius: 999px;
  background: #2e252d;
  color: #e9c8d6;
  font-size: 12px;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  margin-top: 19px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.stat { color: var(--muted); font-size: 12px; }
.stat strong { margin-right: 4px; color: var(--text); font-size: 15px; }

.tabs {
  display: flex;
  overflow-x: auto;
  gap: 23px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
}

.tab {
  position: relative;
  flex: 0 0 auto;
  min-height: 53px;
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
}

.tab.active { color: var(--text); }
.tab.active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  content: "";
}

.panel-status { margin: 0; color: var(--muted); font-size: 13px; }
.gallery-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px 13px;
  margin-bottom: 14px;
}
.gallery-actions [hidden] { display: none; }
.gallery-upload-hint { color: var(--muted); font-size: 11px; }
.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: 13px;
  margin-top: 16px;
}
.gallery-card { min-width: 0; margin: 0; }
.gallery-image-button,
.activity-image-button {
  display: block;
  width: 100%;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
}
.gallery-image-button { aspect-ratio: 1; }
.gallery-image-button img,
.activity-image-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-card figcaption {
  overflow: hidden;
  margin-top: 7px;
  color: var(--text);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gallery-card time,
.activity-content time { color: var(--muted); font-size: 11px; }
.activity-feed { display: grid; margin-top: 8px; }
.activity-item {
  display: flex;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.activity-marker {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent);
}
.activity-content { min-width: 0; }
.activity-content p { margin: 0 0 4px; font-size: 13px; }
.activity-image-button { width: min(180px, 100%); aspect-ratio: 4 / 3; margin-top: 9px; }

.post-list { display: grid; gap: 14px; margin-top: 17px; }
.post { padding: 18px 20px; }
.post-header { display: flex; align-items: center; gap: 11px; }
.mini-avatar {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #df9db5, #704263);
  color: #fff;
  font-weight: 700;
}

.post-author { font-weight: 700; font-size: 13px; }
.post-time { color: var(--muted); font-size: 12px; }
.post-menu { margin-left: auto; color: var(--muted); letter-spacing: 2px; }
.post p { margin: 14px 0; color: #e4dfe5; }

.post-art {
  display: grid;
  min-height: 210px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 13px;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(226,124,166,.48), transparent 42%),
    radial-gradient(circle at 50% 54%, rgba(245,207,222,.22) 0 1px, transparent 2px),
    linear-gradient(135deg, #382639, #241e2b 60%, #49283b);
  color: #f0cedd;
}

.art-shape {
  width: 100px;
  height: 130px;
  border: 1px solid rgba(255,220,234,.5);
  border-radius: 48% 48% 18% 18%;
  box-shadow: 0 0 70px rgba(233,129,170,.2), inset 0 0 35px rgba(233,129,170,.13);
  transform: rotate(12deg);
}

.post-footer { display: flex; gap: 21px; margin-top: 13px; color: var(--muted); font-size: 12px; }
.post-footer span { display: inline-flex; align-items: center; gap: 6px; }
.text-post { padding: 21px; border-left: 2px solid #9d5b7a; }
.text-post p { margin-bottom: 0; }

.right-rail { display: grid; gap: 14px; }
.side-card { padding: 17px; }
.side-card h2 { margin: 0 0 13px; font-size: 14px; }
.online-line { display: flex; align-items: center; gap: 8px; color: #d9d2da; font-size: 12px; }
.online-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px rgba(141,217,181,.5); }
.info-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.06); color: var(--muted); font-size: 12px; }
.info-row:last-child { padding-bottom: 0; border-bottom: 0; }
.info-row strong { color: #e8e0e8; text-align: right; font-weight: 550; }
.community-icon {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 10px;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 18px;
}
.community-card p { margin: 0 0 13px; color: var(--muted); font-size: 12px; }
.community-card .button { width: 100%; min-height: 36px; font-size: 12px; }
.footer-links { color: #807884; font-size: 11px; line-height: 1.9; }
.profile-error {
  padding: 14px 16px;
  border: 1px solid #895065;
  border-radius: 12px;
  background: #34232c;
  color: #ffdce8;
}
.account-success {
  padding: 14px 16px;
  border: 1px solid #47745f;
  border-radius: 12px;
  background: #203329;
  color: #d8ffea;
}
.account-page { width: min(680px, calc(100% - 32px)); margin: 48px auto; }
.account-card { padding: 26px; }
.account-card > h1 { font-size: 24px; }
.account-intro { margin: 8px 0 22px; color: var(--muted); }
.account-form { display: grid; gap: 10px; margin-top: 22px; }
.account-form + .account-form { padding-top: 22px; border-top: 1px solid var(--line); }
.account-form h2 { margin: 0 0 3px; font-size: 17px; }
.account-form label { margin-top: 5px; color: #e5dce5; font-size: 13px; font-weight: 600; }
.account-form input, .account-form textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  background: #201d22;
  color: var(--text);
  font: inherit;
}
.password-field { position: relative; }
.account-form .password-field input { padding-right: 48px; }
.password-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  display: grid;
  width: 34px;
  height: 34px;
  padding: 7px;
  transform: translateY(-50%);
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.password-toggle:hover { background: #342932; color: var(--text); }
.password-toggle:focus-visible { outline: 2px solid #a75e7c; outline-offset: 1px; }
.eye-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.eye-open, .password-toggle[aria-pressed="true"] .eye-closed { display: none; }
.eye-closed, .password-toggle[aria-pressed="true"] .eye-open { display: block; }
.account-form textarea { min-height: 150px; resize: vertical; }
.account-form input:focus, .account-form textarea:focus { border-color: #a75e7c; }
.account-form small { color: var(--muted); font-size: 12px; }
.account-form > .button { margin-top: 8px; justify-self: start; }
.account-form > .button:disabled { cursor: not-allowed; opacity: .55; }
.account-form > .button:disabled:hover { transform: none; border-color: transparent; }
.admin-page { width: min(1180px, calc(100% - 32px)); margin: 40px auto 70px; }
.admin-card { padding: 26px; }
.admin-card > h1 { margin-top: 0; font-size: 24px; }
.admin-catalog-section { margin-top: 18px; border-top: 1px solid var(--line); }
.admin-catalog-section[open] { display: grid; gap: 12px; padding-top: 18px; }
.admin-catalog-section > summary { padding: 18px 0; cursor: pointer; }
.admin-catalog-section h2 { display: inline; margin: 0; font-size: 18px; }
.admin-create-form, .admin-catalog-item {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) minmax(120px, .7fr) auto;
  align-items: end;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #201d22;
}
.admin-create-form label, .admin-catalog-item label { display: grid; gap: 5px; color: #e5dce5; font-size: 12px; }
.admin-create-form input, .admin-catalog-item input, .admin-catalog-item select {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #171519;
  color: var(--text);
  font: inherit;
}
.admin-create-form .button { min-height: 38px; white-space: nowrap; }
.admin-catalog-list { display: grid; gap: 7px; }
.admin-catalog-item { grid-template-columns: minmax(140px, 1fr) minmax(140px, 1fr) auto auto; align-items: center; }
.admin-assignment-count { color: var(--muted); font-size: 12px; }
.admin-item-actions { display: flex; justify-content: flex-end; gap: 7px; }
.admin-delete-button { border-color: #895065; color: #ffdce8; }
.admin-empty { padding: 14px; color: var(--muted); font-size: 13px; }
.profile-editor-fieldset {
  display: grid;
  gap: 12px;
  margin: 8px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.profile-editor-fieldset legend { padding: 0 6px; color: #e5dce5; font-size: 14px; font-weight: 700; }
.profile-editor-fieldset .editor-help { margin: 0; color: var(--muted); font-size: 12px; }
.profile-tag-select {
  display: flex;
  min-height: 44px;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #201d22;
}
.profile-tag-select:focus-within { border-color: #a75e7c; }
.profile-selected-tags { display: contents; }
.profile-selected-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 3px 5px 3px 9px;
  border: 1px solid #554751;
  border-radius: 4px;
  background: #171519;
  color: var(--text);
  font-size: 12px;
  white-space: nowrap;
}
.profile-tag-remove {
  display: grid;
  width: 20px;
  height: 20px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 17px;
  line-height: 1;
}
.profile-tag-remove:hover { background: #342932; color: var(--text); }
.account-form .profile-tag-select-menu {
  flex: 1 1 160px;
  width: auto;
  min-width: 130px;
  min-height: 32px;
  padding: 4px 24px 4px 6px;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
}
.account-form .profile-tag-select-menu:disabled { cursor: not-allowed; opacity: .7; }
.account-form .profile-tag-select-menu option { background: #201d22; color: var(--text); }
.profile-kink-options { display: grid; gap: 18px; }
.profile-kink-group { display: grid; gap: 8px; }
.profile-kink-group h3 { margin: 0; color: #e5dce5; font-size: 13px; }
.profile-kink-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(130px, 190px); align-items: center; gap: 12px; }
.account-form .profile-kink-row select { min-height: 38px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 9px; background: #201d22; color: var(--text); font: inherit; }
.account-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.account-actions a { text-decoration: none; }
.panel-title { margin: 0 0 10px; font-size: 16px; }
.details-list { display: grid; }
.details-list .info-row { font-size: 13px; }
.info-row strong { overflow-wrap: anywhere; }
.kink-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
.kink-category h3 { margin: 0; font-size: 13px; }
.empty-value { color: var(--muted); font-size: 12px; }

.toast {
  position: fixed;
  z-index: 10;
  right: 24px;
  bottom: 24px;
  max-width: calc(100vw - 48px);
  padding: 12px 16px;
  border: 1px solid #604351;
  border-radius: 12px;
  background: #2d242d;
  color: var(--text);
  box-shadow: 0 12px 36px rgba(0,0,0,.32);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: .2s;
}

.toast.visible { opacity: 1; transform: translateY(0); }
.tab-panel[hidden] { display: none; }
.about-copy { margin: 0; color: #e4dfe5; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; margin-top: 18px; }

@media (max-width: 1080px) {
  .layout { grid-template-columns: 190px minmax(0, 740px); justify-content: center; gap: 22px; }
  .right-rail { display: none; }
}

@media (max-width: 720px) {
  .topbar { height: 62px;     .admin-create-form, .admin-catalog-item { grid-template-columns: 1fr; align-items: stretch; }
    .admin-item-actions { justify-content: flex-start; }
  }
  .topbar-inner { width: calc(100% - 28px); gap: 12px; }
  .brand { font-size: 19px; }
  .search { display: none; }
  .mobile-search { display: grid; margin-left: auto; }
  .topbar-spacer { display: none; }
  .layout { display: block; width: min(100% - 24px, 620px); margin: 14px auto 50px; }
  .sidebar { position: static; margin-bottom: 13px; overflow-x: auto; }
  .nav-list { display: flex; width: max-content; gap: 4px; }
  .nav-link { min-height: 39px; padding: 0 11px; font-size: 12px; }
  .nav-link.active { box-shadow: inset 0 -2px var(--accent); }
  .nav-icon { font-size: 15px; }
  .sidebar-note { display: none; }
  .cover { height: 158px; }
  .profile-main { padding: 0 17px 18px; }
  .profile-row { margin-top: -40px; }
  .avatar-wrap { width: 84px; height: 84px; }
  .avatar { width: 84px; height: 84px; border-width: 4px; font-size: 28px; }
  .profile-actions { gap: 7px; padding-bottom: 1px; }
  .button { min-height: 37px; padding: 0 11px; font-size: 12px; }
  .button-icon { width: 37px; padding: 0; }
  h1 { font-size: 22px; }
  .bio { font-size: 13px; }
  .stats { gap: 18px; }
  .tabs { gap: 19px; padding: 0 17px; }
  .tab { min-height: 48px; font-size: 13px; }
  .post { padding: 15px; }
  .post-art { min-height: 175px; }
}

@media (max-width: 420px) {
  .profile-actions .button:not(.button-primary) { display: none; }
  .profile-actions .button-primary { padding: 0 12px; }
  .meta { gap: 7px 12px; }
  .stats { justify-content: space-between; gap: 8px; }
  .stat { font-size: 11px; }
  .stat strong { font-size: 14px; }
  .about-grid { grid-template-columns: 1fr; }
  .kink-grid { grid-template-columns: 1fr; }
  .account-page { width: calc(100% - 24px); margin: 20px auto; }
  .account-card { padding: 19px; }
  .profile-editor-fieldset { padding: 12px; }
  .profile-kink-row { grid-template-columns: 1fr; gap: 6px; }
}
