/* thirty.win — global styles */
:root {
  --bg: #424242;
  --bg-elev: #4d4d4d;
  --bg-elev-2: #565656;
  --border: #5d5d5d;
  --border-strong: #6a6a6a;
  --brand: #0047ff;
  --brand-hi: #0a4fff;
  --brand-soft: rgba(10, 79, 255, 0.18);
  --text: #ffffff;
  --text-mute: #c8c8c8;
  --text-dim: #9a9a9a;
  --danger: #ff4d4d;
  --like: #ff3b6b;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 4px 16px rgba(0,0,0,0.35);
  font-synthesis-weight: none;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-hi); text-decoration: none; }
a:hover { text-decoration: underline; }

button { font-family: inherit; font-size: inherit; }
input, textarea, select {
  font-family: inherit;
  font-size: 14.5px;
  background: var(--bg-elev);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 11px;
  outline: none;
  width: 100%;
}
input:focus, textarea:focus { border-color: var(--brand-hi); box-shadow: 0 0 0 2px var(--brand-soft); }
textarea { resize: vertical; min-height: 60px; }

::placeholder { color: var(--text-dim); }

/* Buttons */
.btn-primary {
  background: var(--brand);
  color: var(--text);
  border: 1px solid var(--brand);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.12s ease, transform 0.06s ease;
}
.btn-primary:hover { background: var(--brand-hi); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-ghost:hover { border-color: var(--brand-hi); color: var(--brand-hi); }
.btn-ghost svg { width: 16px; height: 16px; }

/* Loading / boot */
.loading-screen {
  height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px;
}
.brand-mark { font-size: 30px; font-weight: 700; letter-spacing: -0.5px; color: var(--text); }
.spinner {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.15);
  border-top-color: var(--brand-hi);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Auth */
.auth-shell {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.auth-header { text-align: center; margin-bottom: 18px; }
.auth-header h1 { margin: 0; font-size: 30px; letter-spacing: -0.5px; }
.auth-sub { margin: 6px 0 0; color: var(--text-mute); font-size: 13.5px; }

.auth-tabs {
  display: flex; gap: 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.auth-tab {
  background: transparent; border: 0;
  color: var(--text-mute); cursor: pointer;
  padding: 9px 12px; flex: 1;
  border-bottom: 2px solid transparent;
  font-weight: 600;
}
.auth-tab.active { color: var(--text); border-color: var(--brand); }

.auth-form { display: none; flex-direction: column; gap: 12px; }
.auth-form.active { display: flex; }
.auth-form label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--text-mute); }
.auth-form .btn-primary { margin-top: 4px; }
.auth-error { color: var(--danger); margin: 0; min-height: 1em; font-size: 13px; }

/* App shell */
.app-shell {
  min-height: 100vh;
  display: flex; flex-direction: column;
}
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: var(--brand);
  color: var(--text);
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 18px;
  border-bottom: 1px solid rgba(0,0,0,0.2);
}
.topbar-left { display: flex; align-items: center; gap: 22px; }
.brand {
  color: var(--text); font-weight: 700; font-size: 20px; letter-spacing: -0.4px;
  text-decoration: none;
}
.brand:hover { color: var(--text); text-decoration: none; }

.primary-nav { display: flex; gap: 4px; }
.primary-nav a {
  display: inline-flex; align-items: center; gap: 6px;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 500;
  position: relative;
}
.primary-nav a:hover { background: var(--brand-hi); color: var(--text); text-decoration: none; }
.primary-nav a.active { background: rgba(255,255,255,0.16); color: var(--text); }
.primary-nav svg { width: 18px; height: 18px; }

.badge {
  display: inline-block; min-width: 18px; text-align: center;
  background: #ff4d4d; color: #fff;
  font-size: 11px; font-weight: 700;
  border-radius: 9px; padding: 1px 5px; margin-left: 4px;
}

.topbar-right { display: flex; align-items: center; gap: 12px; }
.search-form { position: relative; display: flex; align-items: center; }
.search-form input {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 32px 6px 14px;
  width: 220px;
}
.search-form input::placeholder { color: rgba(255,255,255,0.7); }
.search-form button {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: transparent; border: 0; color: var(--text); cursor: pointer;
  padding: 4px;
}
.search-form svg { width: 16px; height: 16px; }
.search-results {
  position: absolute; top: calc(100% + 6px); right: 0; left: 0;
  background: var(--bg-elev); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-height: 320px; overflow-y: auto;
  z-index: 20;
}
.search-results .item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; cursor: pointer;
}
.search-results .item:hover { background: var(--brand-soft); }
.search-results .empty { padding: 10px 12px; color: var(--text-dim); }

.me-pill {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.14);
  color: var(--text);
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  text-decoration: none;
}
.me-pill:hover { background: rgba(255,255,255,0.22); text-decoration: none; }

/* Avatar */
.avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-elev-2);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text); font-weight: 600;
  flex: 0 0 auto; overflow: hidden;
  border: 1px solid var(--border);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.small { width: 28px; height: 28px; font-size: 12px; }
.avatar.large { width: 96px; height: 96px; font-size: 36px; }

/* View main */
.view { padding: 22px; max-width: 1200px; width: 100%; margin: 0 auto; flex: 1; }

/* Section head */
.section-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.section-head h2 { margin: 0; font-size: 22px; }
.section-head .btn-primary { margin-left: auto; }
.back-link {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--text-mute);
  border: 1px solid var(--border);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.back-link:hover { color: var(--text); border-color: var(--brand-hi); text-decoration: none; }
.back-link svg { width: 14px; height: 14px; }

/* Webbed */
.webbed-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 22px;
  align-items: flex-start;
}
.side-panel {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  position: sticky; top: 70px;
}
.side-panel h3 { margin: 4px 0 8px; font-size: 13px; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.5px; }
.side-tabs { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-direction: column; gap: 4px; }
.side-tabs a {
  display: block; padding: 7px 10px; border-radius: var(--radius-sm);
  color: var(--text); text-decoration: none;
}
.side-tabs a:hover { background: var(--bg-elev-2); text-decoration: none; }
.side-tabs a.active { background: var(--brand); }

.tag-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.tag-list a {
  display: flex; justify-content: space-between;
  padding: 6px 10px; border-radius: var(--radius-sm);
  color: var(--text); text-decoration: none;
}
.tag-list a:hover { background: var(--bg-elev-2); text-decoration: none; }
.tag-list .tag-count { color: var(--text-dim); font-size: 12px; }

.webbed-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

.composer {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  display: flex; flex-direction: column; gap: 8px;
}
.composer textarea { background: transparent; border: 0; padding: 4px 0; }
.composer textarea:focus { box-shadow: none; }
.composer-bar { display: flex; justify-content: space-between; align-items: center; }
.char-count { color: var(--text-dim); font-size: 13px; }

/* Feed */
.feed { display: flex; flex-direction: column; gap: 0; }
.feed-empty { color: var(--text-mute); padding: 20px; text-align: center; }

.post {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 14px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-bottom: 0;
}
.post:first-child { border-top-left-radius: var(--radius); border-top-right-radius: var(--radius); }
.post:last-child { border-bottom: 1px solid var(--border); border-bottom-left-radius: var(--radius); border-bottom-right-radius: var(--radius); }
.post + .post { border-top: 1px solid var(--border); }

.post-avatar { display: block; }
.post-body { min-width: 0; }
.post-header {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: 14px;
}
.post-name { color: var(--text); font-weight: 600; text-decoration: none; }
.post-name:hover { text-decoration: underline; }
.post-handle { color: var(--text-dim); text-decoration: none; }
.post-handle:hover { text-decoration: underline; }
.post-header .dot { color: var(--text-dim); }
.post-header time { color: var(--text-dim); font-size: 13px; }

.post-text { margin: 6px 0 8px; white-space: pre-wrap; word-wrap: break-word; }
.post-text a.hashtag { color: var(--brand-hi); font-weight: 500; }
.post-text a.mention { color: var(--brand-hi); }

.post-actions {
  display: flex; gap: 28px;
  color: var(--text-dim);
}
.post-actions .action {
  background: transparent; border: 0; cursor: pointer;
  color: var(--text-dim);
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 6px; border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
}
.post-actions .action:hover { color: var(--brand-hi); background: var(--brand-soft); }
.post-actions .action svg { width: 18px; height: 18px; }

/* Heart animation */
.like-btn .heart { overflow: visible; }
.like-btn .heart-outline { display: block; }
.like-btn .heart-fill {
  transform-origin: center;
  transform: scale(0);
  opacity: 0;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.18s ease;
  color: var(--like);
}
.like-btn.liked { color: var(--like); }
.like-btn.liked:hover { color: var(--like); background: rgba(255, 59, 107, 0.12); }
.like-btn.liked .heart-fill { transform: scale(1); opacity: 1; }
.like-btn.liked .heart-outline { opacity: 0; }
.like-btn.pop .heart-fill { animation: heart-pop 0.5s ease; }
@keyframes heart-pop {
  0% { transform: scale(0); }
  40% { transform: scale(1.3); }
  70% { transform: scale(0.9); }
  100% { transform: scale(1); }
}

/* Forums */
.forums-layout { max-width: 880px; margin: 0 auto; }
.cat-list { display: flex; flex-direction: column; gap: 10px; }
.cat-row {
  display: flex; gap: 14px; align-items: center;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.cat-row:hover { border-color: var(--brand-hi); background: var(--bg-elev-2); }
.cat-row .cat-icon {
  width: 40px; height: 40px; border-radius: 8px;
  background: var(--brand);
  display: flex; align-items: center; justify-content: center;
}
.cat-row .cat-icon svg { width: 22px; height: 22px; color: var(--text); }
.cat-row .cat-name { font-weight: 600; font-size: 16px; margin: 0; }
.cat-row .cat-meta { color: var(--text-dim); font-size: 13px; margin: 2px 0 0; }
.cat-row .cat-count { margin-left: auto; color: var(--text-mute); font-size: 13px; }

.cat-desc { color: var(--text-mute); margin: -6px 0 14px; }

.thread-composer {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 16px;
}
.thread-composer .row { display: flex; gap: 8px; justify-content: flex-end; }

.thread-list { display: flex; flex-direction: column; gap: 0; }
.thread-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
  padding: 12px 14px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-bottom: 0;
  cursor: pointer;
}
.thread-row:first-child { border-top-left-radius: var(--radius); border-top-right-radius: var(--radius); }
.thread-row:last-child { border-bottom: 1px solid var(--border); border-bottom-left-radius: var(--radius); border-bottom-right-radius: var(--radius); }
.thread-row + .thread-row { border-top: 1px solid var(--border); }
.thread-row:hover { background: var(--bg-elev-2); }

.thread-title { font-weight: 600; margin: 0; font-size: 15.5px; }
.thread-meta { color: var(--text-dim); font-size: 13px; margin: 3px 0 0; }
.thread-replies {
  display: flex; flex-direction: column; align-items: center;
  color: var(--text-mute); font-size: 12px;
}
.thread-replies strong { color: var(--text); font-size: 18px; }

/* Thread view */
.thread-layout { max-width: 880px; margin: 0 auto; }
.thread-op {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 18px;
}
.thread-op h1 { font-size: 22px; margin: 0 0 8px; }
.thread-op .author-line { display: flex; align-items: center; gap: 8px; color: var(--text-dim); font-size: 13px; margin-bottom: 12px; }
.thread-op .author-line a { color: var(--text); text-decoration: none; font-weight: 500; }
.thread-op .author-line a:hover { text-decoration: underline; }
.thread-body { white-space: pre-wrap; word-wrap: break-word; }

.replies-title { margin: 18px 0 8px; font-size: 14px; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.5px; }
.reply-list { display: flex; flex-direction: column; gap: 0; margin-bottom: 16px; }
.reply-row {
  display: grid; grid-template-columns: auto 1fr; gap: 12px;
  padding: 14px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-bottom: 0;
}
.reply-row:first-child { border-top-left-radius: var(--radius); border-top-right-radius: var(--radius); }
.reply-row:last-child { border-bottom: 1px solid var(--border); border-bottom-left-radius: var(--radius); border-bottom-right-radius: var(--radius); }
.reply-row + .reply-row { border-top: 1px solid var(--border); }
.reply-author { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-mute); }
.reply-author a { color: var(--text); text-decoration: none; font-weight: 500; }
.reply-author a:hover { text-decoration: underline; }
.reply-body { margin: 6px 0 0; white-space: pre-wrap; word-wrap: break-word; }

.reply-composer {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
}
.reply-composer .row { display: flex; justify-content: flex-end; }

/* Friends */
.friends-layout { max-width: 920px; margin: 0 auto; }
.add-friend {
  display: flex; gap: 8px; margin-bottom: 18px;
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px;
}
.add-friend input { flex: 1; }

.friends-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.friends-grid > section:first-child { grid-column: 1 / -1; }
.friends-grid h3 { margin: 0 0 8px; font-size: 14px; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.5px; }
.friend-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0; }
.friend-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-bottom: 0;
}
.friend-row:first-child { border-top-left-radius: var(--radius); border-top-right-radius: var(--radius); }
.friend-row:last-child { border-bottom: 1px solid var(--border); border-bottom-left-radius: var(--radius); border-bottom-right-radius: var(--radius); }
.friend-row + .friend-row { border-top: 1px solid var(--border); }

.friend-row .name { font-weight: 600; }
.friend-row .name a { color: var(--text); }
.friend-row .handle { color: var(--text-dim); font-size: 13px; }
.friend-row .actions { margin-left: auto; display: flex; gap: 6px; }
.friend-list .empty { color: var(--text-dim); padding: 12px 14px; background: var(--bg-elev); border: 1px dashed var(--border); border-radius: var(--radius); }

/* Chat */
.chat-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 18px;
  height: calc(100vh - 110px);
}
.chat-sidebar {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.chat-sidebar header { padding: 12px 14px; border-bottom: 1px solid var(--border); }
.chat-sidebar header h3 { margin: 0; font-size: 14px; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.5px; }
.convo-list { list-style: none; padding: 0; margin: 0; overflow-y: auto; }
.convo-row {
  display: flex; gap: 10px; padding: 10px 14px; cursor: pointer; align-items: center;
  border-left: 3px solid transparent;
}
.convo-row:hover { background: var(--bg-elev-2); }
.convo-row.active { background: var(--bg-elev-2); border-left-color: var(--brand-hi); }
.convo-row .meta { min-width: 0; flex: 1; }
.convo-row .name { font-weight: 600; color: var(--text); display: flex; justify-content: space-between; }
.convo-row .name time { color: var(--text-dim); font-weight: 400; font-size: 11px; }
.convo-row .last { color: var(--text-dim); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.convo-row .unread {
  background: var(--brand);
  min-width: 18px; height: 18px; border-radius: 9px;
  font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 5px;
}

.chat-main {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex; flex-direction: column;
  overflow: hidden;
  min-width: 0;
}
.chat-empty { padding: 30px; color: var(--text-mute); text-align: center; margin: auto; }
.chat-header {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
}
.chat-header .name { font-weight: 600; }
.chat-header .name a { color: var(--text); }
.chat-header .handle { color: var(--text-dim); font-size: 13px; margin-left: 4px; }

.chat-stream {
  flex: 1; overflow-y: auto;
  padding: 14px;
  display: flex; flex-direction: column; gap: 6px;
}
.bubble {
  max-width: 70%;
  padding: 8px 12px;
  border-radius: 14px;
  background: var(--bg-elev-2);
  color: var(--text);
  word-wrap: break-word; white-space: pre-wrap;
  align-self: flex-start;
}
.bubble.me { background: var(--brand); align-self: flex-end; }
.bubble + .bubble { margin-top: 1px; }
.bubble time { display: block; font-size: 11px; color: var(--text-dim); margin-top: 3px; }
.bubble.me time { color: rgba(255,255,255,0.7); }

.chat-input {
  border-top: 1px solid var(--border);
  padding: 10px 12px;
  display: flex; gap: 8px;
}
.chat-input textarea {
  flex: 1; min-height: 38px; max-height: 120px;
  background: var(--bg-elev-2);
}

/* Profile */
.profile-layout { max-width: 880px; margin: 0 auto; }
.profile-head {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 18px; align-items: center;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 18px;
}
.profile-meta h2 { margin: 0; font-size: 22px; }
.profile-handle { color: var(--text-dim); margin: 2px 0 8px; }
.profile-bio { margin: 0 0 8px; white-space: pre-wrap; word-wrap: break-word; }
.profile-stats { color: var(--text-mute); font-size: 13px; margin: 0; }
.profile-actions { display: flex; flex-direction: column; gap: 6px; }

.profile-edit {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 18px;
}
.profile-edit h3 { margin: 0 0 12px; font-size: 16px; }
.profile-edit form { display: flex; flex-direction: column; gap: 12px; }
.profile-edit label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--text-mute); }
.profile-edit .row { display: flex; gap: 8px; justify-content: flex-end; }
.profile-edit input[type=file] { padding: 6px; }
.profile-posts-title { margin: 0 0 8px; font-size: 14px; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.5px; }

/* Toast */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--bg-elev);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 10px 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 100;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, -4px); }
.toast.err { border-color: var(--danger); color: var(--danger); }

/* Responsive */
@media (max-width: 900px) {
  .webbed-layout { grid-template-columns: 1fr; }
  .side-panel { position: static; }
  .topbar { padding: 8px 12px; }
  .primary-nav a span, .primary-nav a { font-size: 13px; padding: 6px 8px; }
  .search-form input { width: 140px; }
  .friends-grid { grid-template-columns: 1fr; }
  .chat-layout { grid-template-columns: 1fr; height: auto; }
  .view { padding: 14px; }
}
@media (max-width: 560px) {
  .primary-nav a span { display: none; }
  .primary-nav a { padding: 6px; }
  .me-pill .name { display: none; }
}
