/* Vizualize (vz.pt) — design tokens and screens from Vizualize Screens.dc.html */

@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/InstrumentSans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/InstrumentSans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02AF, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/InstrumentSans-italic-latin.woff2) format('woff2');
}

:root {
  --ink: #111111;
  --ink-soft: #1c1c1c;
  --body-muted: #3a3a3a;
  --sec: #8a8478;
  --ter: #b8b3aa;
  --hairline: #f0eeea;
  --hairline-strong: #e4e1db;
  --surface: #f5f3ef;
  --hover-row: #faf9f7;
  --blue: #0a66c2;
  --red: #c43d2e;
  --font: 'Instrument Sans', -apple-system, system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: #fff;
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: var(--font); background: none; border: 0; cursor: pointer; color: inherit; }
input, select { font-family: var(--font); }
img { display: block; }
svg { display: block; flex-shrink: 0; }

.iconbtn { display: flex; align-items: center; padding: 0; }
.push-right { margin-left: auto; }
.only-desktop { display: none; }

/* ── Wordmark ── */
.wordmark { font-weight: 700; font-size: 22px; line-height: 1; letter-spacing: -0.04em; }
.wordmark .dot { color: var(--ter); }

/* ── Language pill ── */
.lang-pill {
  display: flex; align-items: center; gap: 5px;
  border: 1px solid var(--hairline-strong); background: #fff; border-radius: 999px;
  padding: 5px 10px; font-size: 11px; font-weight: 600; color: var(--ink);
}
.lang-pill:hover { border-color: var(--ink); }

/* ── Shell: sidebar (desktop) / tabbar (mobile) ── */
.sidebar { display: none; }
.main { min-height: 100dvh; padding-bottom: 64px; }
.main-bare { min-height: 100dvh; }

.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  display: flex; justify-content: space-around; align-items: center;
  padding: 12px 18px calc(6px + env(safe-area-inset-bottom));
  background: #fff; border-top: 1px solid var(--hairline);
}
.tabbar a { display: flex; position: relative; }
.tab-avatar img, .tab-avatar span { width: 24px; height: 24px; border-radius: 50%; }
.tab-avatar.ringed img, .tab-avatar.ringed span { border: 1.5px solid var(--ink); }
.nav-dot {
  position: absolute; top: -2px; right: -3px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--blue);
  border: 1.5px solid #fff;
}
.tab-activity { position: relative; }

/* ── Mobile top bars ── */
.m-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px 8px;
}
.m-topbar-right { display: flex; align-items: center; gap: 12px; }
.m-mail { position: relative; display: flex; }

.m-titlebar {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 18px;
}
.titlebar-title { font-weight: 600; font-size: 15px; }
.titlebar-title.tb-left { font-size: 16px; margin-right: auto; }
.titlebar-back { display: flex; }
.tb-group { display: flex; align-items: center; gap: 14px; margin-right: auto; }
.msg-titlebar { justify-content: space-between; }
.profile-titlebar { justify-content: space-between; }

/* ── Moments row ── */
.moments-row {
  display: flex; gap: 16px; padding: 10px 18px 14px;
  border-bottom: 1px solid var(--hairline);
  overflow-x: auto; scrollbar-width: none;
}
.moments-row::-webkit-scrollbar { display: none; }
.moment { display: flex; flex-direction: column; align-items: center; gap: 5px; flex-shrink: 0; }
.moment-ring {
  display: block; width: 56px; height: 56px; border-radius: 50%;
  padding: 2px; border: 1.5px solid var(--ink);
}
.moment-ring img, .moment-ring span { width: 100% !important; height: 100% !important; border-radius: 50%; object-fit: cover; }
.moment-name { font-size: 10px; font-weight: 500; color: #6b665e; }
.ring-lg { width: 80px; height: 80px; padding: 2.5px; }
.ring-xl { width: 140px; height: 140px; padding: 3px; border-width: 2px; }

/* ── Feed / post card ── */
.feed-wrap { display: block; }
.rail { display: none; }
.feed-posts { display: flex; flex-direction: column; }
.empty-note { padding: 48px 18px; text-align: center; color: var(--sec); font-size: 14px; }

.post { padding-bottom: 10px; }
.post-head { display: flex; align-items: center; gap: 10px; padding: 12px 18px; }
.post-head-txt { flex: 1; min-width: 0; }
.post-author { font-weight: 600; font-size: 13px; }
.post-loc { font-size: 11px; color: var(--sec); }
.post-photo {
  display: block; position: relative; width: 100%;
  aspect-ratio: 1 / 1.08; background: var(--surface); overflow: hidden;
}
.post-photo img { width: 100%; height: 100%; object-fit: cover; }
.detail-photo { aspect-ratio: 1 / 0.85; }
.dbl-heart {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,0.3));
}
.dbl-heart.pop { animation: heartpop 0.9s ease forwards; }
@keyframes heartpop {
  0% { opacity: 0; transform: scale(0.4); }
  20% { opacity: 1; transform: scale(1.05); }
  45% { transform: scale(0.95); }
  70% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1); }
}
.post-textbody {
  display: block; padding: 4px 18px 8px;
  font-size: 17px; line-height: 1.5; color: var(--ink);
  white-space: pre-wrap; overflow-wrap: break-word;
}
.txt-link { color: var(--blue); }
.txt-link:hover { text-decoration: underline; color: var(--blue); }
.bubble-mine .txt-link { color: #fff; text-decoration: underline; }
.post-actions { display: flex; align-items: center; gap: 16px; padding: 12px 18px 4px; }
.like-btn .ic-filled { display: none; }
.like-btn.liked .ic-outline { display: none; }
.like-btn.liked .ic-filled { display: block; }
.post-meta { padding: 6px 18px; }
.post-likes { font-weight: 600; font-size: 13px; }
.post-caption { font-size: 13px; line-height: 1.5; margin-top: 3px; }
.post-caption strong { font-weight: 600; }
.post-time { font-size: 11px; color: var(--sec); margin-top: 5px; }

/* ── Search + chips (Explore, Messages) ── */
.explore-top { padding: 10px 18px 12px; }
.searchbar {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border-radius: 12px; padding: 11px 14px;
}
.searchbar input {
  flex: 1; border: 0; background: transparent; outline: none;
  font-size: 14px; color: var(--ink);
}
.searchbar input::placeholder { color: var(--sec); }
.sb-sm { padding: 10px 14px; }
.sb-sm input { font-size: 13px; }
.chips { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--hairline-strong); border-radius: 999px;
  padding: 6px 13px; font-size: 12px; font-weight: 500; color: var(--ink);
}
.chip:hover { border-color: var(--ink); }
.chip-on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ── Explore grid ── */
.explore-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  grid-auto-rows: 129px; grid-auto-flow: dense; gap: 2px;
}
.cell { position: relative; background: var(--surface); overflow: hidden; display: block; }
.cell img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.cell-2 { grid-column: span 2; grid-row: span 2; }

/* ── Post detail ── */
.detail-caption { padding: 8px 18px 12px; border-bottom: 1px solid var(--hairline); }
.section-label {
  font-weight: 600; font-size: 12px; color: var(--sec);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.pad-x { padding: 0 18px 8px; }
.comments { padding: 6px 18px; display: flex; flex-direction: column; gap: 14px; }
.comments .section-label { margin-top: 6px; }
.comment { display: flex; gap: 10px; }
.comment-body { flex: 1; min-width: 0; }
.comment-text { font-size: 13px; line-height: 1.5; }
.comment-text strong { font-weight: 600; }
.comment-meta { display: flex; gap: 14px; font-size: 11px; font-weight: 500; color: var(--sec); margin-top: 3px; }
.comment-heart { margin-top: 4px; }
.comment-box {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px 10px; border-top: 1px solid var(--hairline); margin-top: 8px;
}
.comment-input {
  flex: 1; border: 1px solid var(--hairline-strong); border-radius: 999px;
  padding: 9px 14px; font-size: 13px; color: var(--ink); outline: none; background: #fff;
}
.comment-input::placeholder { color: var(--sec); }
.comment-input:focus { border-color: var(--ink); }

/* ── Profile ── */
.prof-row { display: flex; align-items: center; gap: 22px; padding: 8px 18px 0; }
.prof-stats { display: flex; flex: 1; justify-content: space-around; text-align: center; }
.prof-stats b { display: block; font-weight: 700; font-size: 17px; }
.prof-stats span { font-size: 12px; color: var(--sec); }
.prof-bio { padding: 12px 18px 0; }
.prof-name { font-weight: 600; font-size: 14px; }
.prof-bio-text { font-size: 13px; line-height: 1.5; color: var(--body-muted); margin-top: 2px; }
.prof-btns { display: flex; gap: 8px; padding: 14px 18px; }
.btn-outline {
  flex: 1; text-align: center; border: 1px solid var(--hairline-strong);
  border-radius: 10px; padding: 9px 0; font-weight: 600; font-size: 13px; background: #fff;
}
.btn-outline:hover { border-color: var(--ink); }
.prof-tabs { display: flex; border-bottom: 1px solid var(--hairline); }
.prof-tab { flex: 1; display: flex; justify-content: center; padding: 10px 0; }
.prof-tab.on { border-bottom: 1.5px solid var(--ink); margin-bottom: -1px; }
.profile-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  grid-auto-rows: 129px; gap: 2px;
}

/* ── New post ── */
.new-titlebar { justify-content: space-between; }
.share-action { font-weight: 600; font-size: 14px; color: var(--blue); }
.upload-slot {
  display: flex; align-items: center; justify-content: center;
  width: 100%; aspect-ratio: 1 / 1; background: var(--surface);
  border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
  cursor: pointer; position: relative; overflow: hidden;
}
.upload-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.upload-hint { font-size: 14px; color: var(--sec); }
.new-rows { padding: 14px 18px; display: flex; flex-direction: column; }
.new-caption {
  border: 0; outline: none; font-size: 14px; color: var(--ink);
  padding: 10px 0; border-bottom: 1px solid var(--hairline); background: transparent;
  font-family: var(--font); resize: vertical; min-height: 44px; line-height: 1.5;
}
.new-caption::placeholder, .new-inline::placeholder { color: var(--sec); }
.new-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; border-bottom: 1px solid var(--hairline);
  font-size: 14px; cursor: pointer;
}
.new-row:last-child { border-bottom: 0; }
.new-inline {
  border: 0; outline: none; text-align: right; font-size: 14px;
  color: var(--ink); background: transparent; flex: 1; margin-left: 16px;
}
.new-check { accent-color: var(--ink); width: 16px; height: 16px; }
.new-select {
  border: 0; outline: none; font-size: 13px; font-weight: 500;
  color: var(--sec); background: transparent; text-align: right;
}

/* ── Messages ── */
.msg-search { padding: 4px 18px 12px; }
.convo-list { display: flex; flex-direction: column; }
.convo { display: flex; align-items: center; gap: 12px; padding: 11px 18px; }
.convo:hover { background: var(--hover-row); }
.convo-txt { flex: 1; min-width: 0; }
.convo-name { font-weight: 600; font-size: 14px; }
.convo-preview {
  font-size: 13px; color: var(--sec); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.convo-preview.unread { color: var(--ink); font-weight: 600; }
.convo-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.convo-time { font-size: 11px; color: var(--sec); }
.unread-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }

/* thread */
.thread-page { display: flex; flex-direction: column; height: calc(100dvh - 64px); }
.thread { flex: 1; overflow-y: auto; padding: 8px 18px; display: flex; flex-direction: column; gap: 8px; }
.bubble-row { display: flex; align-items: flex-end; gap: 8px; }
.bubble-row.mine { justify-content: flex-end; }
.bubble {
  max-width: 75%; padding: 9px 13px; border-radius: 16px;
  background: var(--surface); font-size: 14px; line-height: 1.45;
}
.bubble-mine { background: var(--ink); color: #fff; }
.thread-box { margin-top: 0; }
.send-btn { display: flex; }

/* ── Activity ── */
.notif-list { display: flex; flex-direction: column; margin-bottom: 12px; }
.notif { display: flex; align-items: center; gap: 12px; padding: 11px 18px; }
.notif-text { flex: 1; font-size: 13px; line-height: 1.45; }
.notif-text strong { font-weight: 600; }
.notif-time { color: var(--sec); }
.notif-thumb { width: 44px; height: 44px; border-radius: 6px; overflow: hidden; flex-shrink: 0; }
.notif-thumb img { width: 100%; height: 100%; object-fit: cover; }
.notif-heart { flex-shrink: 0; }

/* ── Login / request access ── */
.login-body { background: #fff; }
.login-screen {
  min-height: 100dvh; display: flex; flex-direction: column;
  padding: 24px 32px; max-width: 430px; margin: 0 auto;
}
.login-top { display: flex; justify-content: flex-end; padding-top: 10px; }
.login-center { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.login-wordmark {
  font-weight: 700; font-size: 40px; line-height: 1;
  letter-spacing: -0.05em; text-align: center;
}
.login-wordmark .dot { color: var(--ter); }
.login-tagline { font-size: 14px; color: var(--sec); text-align: center; margin: 10px 0 36px; }
.login-form { display: flex; flex-direction: column; gap: 12px; }
.field {
  border: 1px solid var(--hairline-strong); border-radius: 12px;
  padding: 14px 16px; font-size: 14px; color: var(--ink); outline: none; width: 100%;
}
.field::placeholder { color: var(--sec); }
.field:focus-within, .field:focus { border-color: var(--ink); }
.field-pw { display: flex; align-items: center; justify-content: space-between; padding: 0; }
.field-pw input {
  flex: 1; border: 0; outline: none; padding: 14px 16px;
  font-size: 14px; color: var(--ink); background: transparent; border-radius: 12px;
}
.field-pw input::placeholder { color: var(--sec); }
.pw-eye { display: flex; padding: 0 16px; }
.btn-primary {
  background: var(--ink); color: #fff; border-radius: 12px;
  padding: 15px 0; text-align: center; font-weight: 600; font-size: 14px; margin-top: 6px;
  width: 100%;
}
.btn-primary:hover { background: #3a3a3a; }
.btn-link { display: block; }
.login-forgot { text-align: center; font-size: 13px; font-weight: 500; color: var(--sec); margin-top: 8px; }
.login-footer {
  text-align: center; font-size: 13px; color: var(--sec);
  padding-top: 16px; border-top: 1px solid var(--hairline);
}
.login-footer a { font-weight: 600; color: var(--ink); }
.login-error {
  background: #fdf2f0; color: var(--red); border: 1px solid #f3ded9;
  border-radius: 12px; padding: 11px 14px; font-size: 13px;
}
.request-done { text-align: center; font-size: 14px; color: var(--ink); margin-bottom: 16px; }

/* ── Moments (story) viewer ── */
.story-body { background: #000; }
.story {
  position: fixed; inset: 0; background: #000; color: #fff;
  display: flex; flex-direction: column; overflow: hidden;
  max-width: 430px; margin: 0 auto;
}
.story-photo {
  position: absolute; inset: 0;
  background-position: center; background-size: cover; background-color: #000;
}
.story-top { position: relative; z-index: 2; padding: 14px 16px 0; }
.story-bars { display: flex; gap: 4px; }
.story-bar { flex: 1; height: 2.5px; border-radius: 2px; background: rgba(255,255,255,0.35); overflow: hidden; }
.story-bar i { display: block; height: 100%; width: 0; background: #fff; }
.story-head { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.story-name { font-weight: 600; font-size: 13px; text-shadow: 0 1px 6px rgba(0,0,0,0.5); }
.story-time { font-size: 12px; color: rgba(255,255,255,0.75); text-shadow: 0 1px 6px rgba(0,0,0,0.5); }
.story-close { margin-left: auto; display: flex; }
.story-tap { position: absolute; top: 80px; bottom: 90px; width: 40%; z-index: 3; }
.story-tap-left { left: 0; }
.story-tap-right { right: 0; width: 60%; }
.story-bottom {
  position: relative; z-index: 2; margin-top: auto;
  display: flex; align-items: center; gap: 12px; padding: 14px 16px calc(18px + env(safe-area-inset-bottom));
}
.story-reply {
  flex: 1; border: 1.2px solid rgba(255,255,255,0.7); border-radius: 999px;
  padding: 11px 16px; font-size: 13px; color: rgba(255,255,255,0.8);
  background: rgba(0,0,0,0.15);
}

/* ═══ Desktop ═══ */
@media (min-width: 1024px) {
  .only-mobile { display: none !important; }
  .only-desktop { display: block; }
  .tabbar { display: none; }
  .m-topbar { display: none; }

  .sidebar {
    display: flex; flex-direction: column;
    position: fixed; top: 0; bottom: 0; left: 0; width: 230px;
    border-right: 1px solid var(--hairline);
    padding: 28px 16px; background: #fff; z-index: 30;
  }
  .side-wordmark { font-size: 24px; padding: 0 12px 30px; }
  .side-nav { display: flex; flex-direction: column; gap: 4px; }
  .side-item {
    display: flex; align-items: center; gap: 14px;
    padding: 11px 12px; border-radius: 10px; font-size: 15px; font-weight: 400;
  }
  .side-item:hover { background: var(--surface); }
  .side-item.active { background: var(--surface); font-weight: 700; }
  .side-ic { display: flex; width: 22px; height: 22px; position: relative; }
  .side-bottom { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
  .lang-full {
    display: flex; align-items: center; gap: 8px;
    border: 1px solid var(--hairline-strong); background: #fff; border-radius: 10px;
    padding: 10px 12px; font-weight: 600; font-size: 13px; width: 100%;
  }
  .lang-full:hover { border-color: var(--ink); }
  .side-logout { font-size: 12px; color: var(--sec); text-align: left; padding: 0 12px; }
  .side-logout:hover { color: var(--ink); }

  .main { margin-left: 230px; padding-bottom: 0; }
  .page { max-width: 640px; margin: 0 auto; padding-top: 16px; }

  /* Desktop feed: 470px column + 300px rail */
  .feed-wrap {
    display: flex; justify-content: center; gap: 56px;
    padding: 36px 40px;
  }
  .feed-col { width: 470px; }
  .moments-row { border-bottom: 0; padding: 0 0 22px; gap: 20px; }
  .moment-ring { width: 62px; height: 62px; }
  .moment-name { font-size: 11px; }
  .post-head { padding: 10px 0; }
  .post-photo { border-radius: 6px; aspect-ratio: 1 / 0.9; }
  .post-actions { padding: 12px 0 4px; }
  .post-meta { padding: 4px 0 24px; }
  .post-likes { font-size: 14px; }
  .post-caption { font-size: 14px; }
  .post-time { font-size: 12px; }

  .rail { display: block; width: 300px; padding-top: 8px; flex-shrink: 0; }
  .rail-user { display: flex; align-items: center; gap: 14px; padding-bottom: 20px; }
  .rail-username { font-weight: 600; font-size: 15px; display: block; }
  .rail-name { font-size: 13px; color: var(--sec); }
  .rail-label {
    font-weight: 600; font-size: 12px; color: var(--sec);
    letter-spacing: 0.06em; text-transform: uppercase; padding-bottom: 14px;
  }
  .rail-albums { display: flex; flex-direction: column; gap: 12px; }
  .rail-album { display: flex; align-items: center; gap: 12px; }
  .rail-album-thumb {
    display: block; width: 44px; height: 44px; border-radius: 8px;
    background: linear-gradient(135deg, #d5cdc2, #9a8d7e); object-fit: cover; flex-shrink: 0;
  }
  .rail-album-txt { flex: 1; min-width: 0; }
  .rail-album-name { font-weight: 600; font-size: 13px; }
  .rail-album-count { font-size: 12px; color: var(--sec); }
  .rail-footer { font-size: 11px; color: var(--ter); margin-top: 28px; }

  /* Desktop profile */
  .profile-page { max-width: 880px; padding: 44px 0 40px; }
  .prof-desk-head { display: flex; align-items: center; gap: 56px; padding-bottom: 36px; }
  .prof-desk-toprow { display: flex; align-items: center; gap: 18px; }
  .prof-desk-toprow .btn-outline { flex: 0 0 auto; padding: 8px 18px; }
  .prof-desk-username { font-size: 24px; font-weight: 400; }
  .prof-desk-stats { display: flex; gap: 36px; margin-top: 18px; font-size: 15px; }
  .prof-desk-stats b { font-weight: 700; }
  .prof-desk .prof-name { margin-top: 14px; }
  .prof-desk .prof-bio-text { font-size: 14px; }
  .prof-desk-tabs {
    display: flex; gap: 44px; border-top: 1px solid var(--hairline); justify-content: center;
    font-weight: 600; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  }
  .dtab { padding: 16px 0; color: var(--sec); }
  .dtab.on { border-top: 1.5px solid var(--ink); margin-top: -1px; color: var(--ink); }
  .profile-grid { grid-auto-rows: unset; gap: 6px; }
  .profile-grid .cell { aspect-ratio: 1 / 1; }

  .explore-grid { grid-auto-rows: 200px; }
  .explore-top { padding: 10px 0 12px; }
  .page .m-titlebar { padding: 12px 0; }
  .page .explore-grid, .page .profile-grid { border-radius: 6px; overflow: hidden; }
  .msg-search { padding: 4px 0 12px; }
  .convo { padding: 11px 12px; border-radius: 10px; }
  .comments { padding: 6px 0; }
  .comment-box { padding: 12px 0 10px; }
  .detail-caption { padding: 8px 0 12px; }
  .post-page .post-actions { padding: 12px 0 4px; }
  .pad-x { padding: 0 0 8px; }
  .notif { padding: 11px 12px; border-radius: 10px; }
  .notif:hover { background: var(--hover-row); }
  .new-rows { padding: 14px 0; }
  .msg-titlebar, .new-titlebar { padding: 12px 0; }
  .upload-slot { border-radius: 6px; }
  .story { max-width: 100%; }
  .story-photo { background-size: contain; }
  .thread-page { height: calc(100dvh - 32px); }
}

@media (min-width: 1024px) {
  .feed-col .post-textbody, .post-page .post-textbody { padding: 4px 0 8px; }
}

/* ── YouTube facade + link cards + push pill ── */
.post-video {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  background: #000; overflow: hidden; cursor: pointer; margin-top: 2px;
}
.post-video img { width: 100%; height: 100%; object-fit: cover; opacity: 0.92; }
.post-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s ease;
}
.post-video:hover .yt-play { transform: scale(1.06); }
.link-card {
  display: block; margin: 2px 18px 8px;
  border: 1px solid var(--hairline-strong); border-radius: 12px; overflow: hidden;
}
.link-card:hover { border-color: var(--ink); }
.link-card-img { width: 100%; aspect-ratio: 1.91 / 1; object-fit: cover; background: var(--surface); }
.link-card-body { display: block; padding: 12px 14px; }
.link-card-domain {
  display: block; font-size: 11px; font-weight: 500; color: var(--sec);
  text-transform: uppercase; letter-spacing: 0.04em;
}
.link-card-title { display: block; font-size: 14px; font-weight: 600; margin-top: 3px; line-height: 1.35; }
.link-card-desc {
  display: block; font-size: 12px; color: var(--sec); margin-top: 3px; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.push-pill {
  display: flex; align-items: center; gap: 7px; margin: 0 18px 12px;
  border: 1px solid var(--hairline-strong); background: #fff; border-radius: 999px;
  padding: 8px 14px; font-size: 12px; font-weight: 600; color: var(--ink); width: fit-content;
}
.push-pill:hover { border-color: var(--ink); }

@media (min-width: 1024px) {
  .feed-col .link-card, .post-page .link-card { margin: 2px 0 8px; }
  .feed-col .post-video { border-radius: 6px; }
  .push-pill { margin: 0 0 12px; }
}

/* ── Edit profile ── */
.edit-form { padding: 8px 18px 24px; display: flex; flex-direction: column; gap: 14px; max-width: 430px; }
.edit-avatar { display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; padding: 8px 0 4px; }
.edit-avatar-label { font-size: 13px; font-weight: 600; color: var(--blue); }
.edit-field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 12px; color: var(--body-muted); }
.edit-field .field { font-weight: 400; }
textarea.field { font-family: var(--font); resize: vertical; line-height: 1.5; }
.edit-section { margin-top: 10px; }
.form-ok {
  margin: 12px 18px 0; background: #f0f7f2; color: #3d9a5f;
  border: 1px solid #d8eade; border-radius: 12px; padding: 11px 14px; font-size: 13px;
}
.form-msg { margin: 12px 18px 0; }

/* ── Profile albums tab ── */
.albums-tab { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 14px 18px; }
.album-tile { display: block; }
.album-tile-img {
  display: block; aspect-ratio: 1 / 1; border-radius: 8px; overflow: hidden;
  background: linear-gradient(135deg, #d5cdc2, #9a8d7e);
}
.album-tile-img img { width: 100%; height: 100%; object-fit: cover; }
.album-tile-name { display: block; font-weight: 600; font-size: 13px; margin-top: 7px; }
.album-tile-count { display: block; font-size: 12px; color: var(--sec); }

.geo-btn { flex-shrink: 0; margin-left: 10px; }
.prof-tab { text-decoration: none; }

@media (min-width: 1024px) {
  .edit-page .m-titlebar { padding: 12px 0; }
  .edit-form { padding: 8px 0 24px; }
  .form-ok, .form-msg { margin: 12px 0 0; }
  .albums-tab { grid-template-columns: repeat(3, 1fr); padding: 24px 0; gap: 20px; }
  .prof-desk-toprow .btn-outline { flex: 0 0 auto; padding: 8px 18px; }
}
