/* miaumiau — minimal social
   Light-first. El color del usuario es el accent.
   Inspirado en la intencionalidad de notas5 y la limpieza de becasdigmeow. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

/* ─── Tokens ─── */
:root {
  --bg: #fffcf7;
  --surface: #ffffff;
  --text: #2a2420;
  --text-secondary: #8a7e74;
  --border: rgba(42, 36, 32, 0.1);
  --border-strong: rgba(42, 36, 32, 0.2);
  --accent: #2a2420;
  --accent-soft: rgba(42, 36, 32, 0.04);
  --danger: #d44;
  --radius: 0px;
  --shadow: 0 1px 2px rgba(42,36,32,0.06);
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  /* POP colors — 1 per tab */
  --pop-stories: #FF3B30;
  --pop-posts: #007AFF;
  --pop-tweets: #FFCC00;
  --pop-chat: #34C759;
  --pop: var(--pop-tweets); /* active tab color */
}

[data-theme="dark"] {
  --bg: #1c1a18;
  --surface: #262420;
  --text: #ede8e2;
  --text-secondary: #9a9088;
  --border: rgba(237, 232, 226, 0.08);
  --border-strong: rgba(237, 232, 226, 0.15);
  --accent: #ede8e2;
  --accent-soft: rgba(237, 232, 226, 0.05);
  --shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* ─── Base ─── */
body {
  font-family: var(--font);
  background: var(--bg); color: var(--text);
  min-height: 100dvh; overflow-x: hidden;
  padding-bottom: 52px; padding-top: 0;
  font-size: 14px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--text); text-decoration: underline; }
a:hover { opacity: 0.7; }

/* ─── Typography ─── */
h1 { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; }
h2 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.4rem; }
p { line-height: 1.5; word-break: break-word; }
small, .muted { color: var(--text-secondary); }
.center { text-align: center; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.error { color: var(--danger); font-size: 0.8rem; }

/* ─── Unread Badge (floating) ─── */
.unread-badge {
  position: fixed; top: 10px; right: 10px; z-index: 100;
  background: var(--danger); color: #fff; border: none;
  border-radius: 10px; padding: 2px 8px; font-size: 0.7rem;
  font-weight: 600; cursor: pointer;
}

/* ─── Bottom Nav ─── */
#bottomNav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  display: flex; height: 52px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
#bottomNav button {
  flex: 1; border: none; background: none; color: var(--text-secondary);
  cursor: pointer; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px;
  font-family: var(--font);
  transition: color 0.1s;
  position: relative;
}
#bottomNav button:hover { color: var(--text); }
#bottomNav button.active { color: var(--pop); }
#bottomNav button.active::after {
  content: ''; position: absolute; top: 0; left: 20%; right: 20%;
  height: 2.5px; background: var(--pop);
}
#bottomNav button[data-mode="stories"] { --btn-pop: var(--pop-stories); }
#bottomNav button[data-mode="posts"] { --btn-pop: var(--pop-posts); }
#bottomNav button[data-mode="tweets"] { --btn-pop: var(--pop-tweets); }
#bottomNav button[data-mode="chat"] { --btn-pop: var(--pop-chat); }
#bottomNav button.active[data-mode="stories"] { color: var(--pop-stories); }
#bottomNav button.active[data-mode="posts"] { color: var(--pop-posts); }
#bottomNav button.active[data-mode="tweets"] { color: var(--pop-tweets); }
#bottomNav button.active[data-mode="chat"] { color: var(--pop-chat); }
#bottomNav button.active[data-mode="stories"]::after { background: var(--pop-stories); }
#bottomNav button.active[data-mode="posts"]::after { background: var(--pop-posts); }
#bottomNav button.active[data-mode="tweets"]::after { background: var(--pop-tweets); }
#bottomNav button.active[data-mode="chat"]::after { background: var(--pop-chat); }
.nav-icon { width: 22px; height: 22px; }
#bottomNav button.active .nav-icon { stroke-width: 2; }
.nav-label { font-size: 0.5rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500; }

/* ─── Avatar ─── */
.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  flex-shrink: 0; cursor: pointer;
  border: 1px solid var(--border);
}
.avatar.big { width: 52px; height: 52px; }

/* ─── Tweets ─── */
.tweet {
  display: flex; gap: 12px; padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
}
.tweet:hover { background: var(--accent-soft); }
.tweet-body { flex: 1; min-width: 0; }
.tweet-meta { display: flex; gap: 6px; align-items: baseline; }
.tweet-name { font-weight: 600; font-size: 0.9rem; }
.tweet-time { font-size: 0.75rem; color: var(--text-secondary); }
.tweet-text { margin-top: 2px; font-size: 0.95rem; line-height: 1.45; }
.tweet-text a { color: var(--text); text-decoration: underline; }
.tweet-actions {
  display: flex; gap: 20px; margin-top: 8px;
}
.tweet-actions button {
  display: flex; align-items: center; gap: 4px;
  border: none; background: none; cursor: pointer; padding: 4px 0;
  color: var(--text-secondary); font-size: 0.8rem;
  font-family: var(--font); transition: color 0.1s;
}
.tweet-actions button:hover { color: var(--text); }
.tweet-actions button:hover svg { stroke: var(--text); }
.tweet-actions button svg { transition: stroke 0.1s; }
.tweet-actions button.reacted { color: var(--danger); }
.tweet-actions button.reacted svg { stroke: var(--danger); fill: var(--danger); }
.tweet-count { font-size: 0.75rem; }

/* ─── Items (posts, comments, generic) ─── */
.item {
  display: flex; gap: 10px; padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.item:hover { background: var(--accent-soft); }
.item-header { display: flex; gap: 6px; align-items: baseline; }
.item-header b { font-size: 0.85rem; font-weight: 600; }
.item-header small { font-size: 0.75rem; }
.item-body { flex: 1; min-width: 0; }
.item-body p { margin-top: 3px; font-size: 0.9rem; }

/* ─── Feed ─── */
.feed {
  max-width: 540px; margin: 0 auto;
  min-height: calc(100dvh - 52px);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

/* ─── Buttons ─── */
.btn {
  border: 1px solid var(--border-strong); background: var(--surface);
  color: var(--text); padding: 6px 14px; border-radius: var(--radius);
  cursor: pointer; font-size: 0.8rem; font-family: var(--font);
  font-weight: 500; transition: all 0.1s; user-select: none;
}
.btn:hover { background: var(--accent-soft); }
.btn:active { transform: translateY(1px); }
.btn.primary {
  background: var(--pop); color: #fff;
  border-color: var(--pop); font-weight: 600;
}
.btn.primary:hover { opacity: 0.85; }
.btn.danger { color: var(--danger); border-color: var(--danger); }
.btn.small { padding: 3px 8px; font-size: 0.75rem; }
.btn.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.load-more { display: block; margin: 16px auto; }

/* ─── FAB ─── */
.fab {
  position: fixed; bottom: 62px; right: 16px;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--pop); color: #fff; border: none;
  font-size: 1.5rem; cursor: pointer; z-index: 50;
  transition: transform 0.1s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.fab:active { transform: scale(0.92); }

/* ─── Forms ─── */
input[type="text"], input[type="file"], textarea, select {
  width: 100%; padding: 8px 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text);
  border-radius: var(--radius);
  font-size: 0.9rem; font-family: var(--font); resize: vertical;
  margin-bottom: 6px;
}
input:focus, textarea:focus {
  outline: none; border-color: var(--text);
}

/* ─── Tweet Composer (Twitter-style) ─── */
.tweet-composer {
  display: flex; gap: 10px; padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.tweet-composer-body { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.tweet-composer-body textarea {
  border: none; background: none; color: var(--text);
  font-size: 0.95rem; font-family: var(--font); resize: none;
  padding: 4px 0; outline: none; min-height: 28px; overflow: hidden;
  margin-bottom: 0;
}
.tweet-composer-body textarea::placeholder { color: var(--text-secondary); }
.composer-bar {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--border); padding-top: 8px;
}
.tweet-composer-body textarea:focus + .composer-bar { border-top-color: var(--pop); }
.char-count { font-size: 0.7rem; color: var(--text-secondary); }

/* ─── Generic Composer (chat, posts) ─── */
.composer {
  max-width: 540px; margin: 0 auto; padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 8px;
}

/* ─── Actions ─── */
.actions { display: flex; gap: 12px; margin-top: 6px; }
.actions button {
  border: none; background: none; color: var(--text-secondary);
  cursor: pointer; font-size: 0.8rem; padding: 0;
  font-family: var(--font);
}
.actions button:hover { color: var(--text); }
.actions button.reacted { font-weight: 600; }

/* ─── Modal ─── */
.modal {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.3); display: flex;
  align-items: center; justify-content: center;
  padding: 16px;
}
[data-theme="dark"] .modal { background: rgba(0,0,0,0.6); }
.modal-content {
  background: var(--surface); border: 1px solid var(--border);
  padding: 20px; max-width: 480px; width: 100%;
  max-height: 85vh; overflow-y: auto;
}
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }
.modal hr { border: none; border-top: 1px solid var(--border); margin: 12px 0; }

/* ─── Color Grid ─── */
.color-grid { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.color-swatch {
  width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid transparent; cursor: pointer;
  transition: transform 0.1s;
}
.color-swatch:hover { transform: scale(1.15); }
.color-swatch.active { border-color: var(--text); transform: scale(1.15); }

/* ─── Theme Grid ─── */
.theme-grid { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.theme-swatch {
  padding: 4px 10px; border: 1px solid var(--border-strong);
  cursor: pointer; font-size: 0.7rem; font-family: var(--font);
}
.theme-swatch.active { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ─── Posts ─── */
.post { flex-direction: column; }
.post-image { width: 100%; margin: 8px 0; }
.post-image.small { max-height: 150px; object-fit: cover; }
.post-preview { max-width: 100%; max-height: 200px; object-fit: contain; margin: 8px 0; }

/* ─── Stories ─── */
.story-bubbles {
  display: flex; gap: 14px; padding: 14px 16px; overflow-x: auto;
  max-width: 540px; margin: 0 auto;
}
.story-bubble {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  border: none; background: none; cursor: pointer; color: var(--text);
  font-size: 0.65rem; min-width: 56px; font-family: var(--font);
}
.story-bubble .avatar { border: 2px solid var(--text); }

/* Story Viewer */
.story-viewer {
  position: fixed; inset: 0; z-index: 300;
  background: #000; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.story-progress {
  position: absolute; top: 8px; left: 8px; right: 8px;
  display: flex; gap: 3px; z-index: 2;
}
.progress-bar { flex: 1; height: 2px; background: rgba(255,255,255,0.25); }
.progress-bar.done { background: #fff; }
.progress-bar.active { background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,0.25) 100%); }
.story-image { max-width: 100%; max-height: 100%; object-fit: contain; }
.story-layers { position: absolute; inset: 0; pointer-events: none; }
.story-layers a { pointer-events: auto; }
.story-text-overlay {
  position: absolute; font-weight: 600;
  text-shadow: 0 1px 3px rgba(0,0,0,0.7);
  transform: translate(-50%, -50%);
}
.story-link-overlay {
  position: absolute; padding: 6px 12px;
  background: rgba(255,255,255,0.15); backdrop-filter: blur(4px);
  color: #fff; text-decoration: none; font-size: 0.8rem;
  text-align: center;
}
.story-nav { position: absolute; inset: 0; display: flex; }
.story-nav-left, .story-nav-right { flex: 1; cursor: pointer; }
.story-close {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  background: none; border: none; color: #fff;
  font-size: 1.3rem; cursor: pointer;
}

/* ─── Story Editor ─── */
.story-editor {
  position: fixed; inset: 0; z-index: 300;
  background: var(--bg); display: flex; flex-direction: column;
}
.story-editor-toolbar {
  display: flex; gap: 4px; padding: 8px;
  border-bottom: 1px solid var(--border);
  align-items: center; flex-wrap: wrap;
}
.story-editor-toolbar input[type="color"] {
  width: 28px; height: 28px; padding: 0;
  border: 1px solid var(--border); cursor: pointer; margin-bottom: 0;
}
.story-editor-toolbar select { width: auto; margin-bottom: 0; font-size: 0.8rem; }
.story-editor-canvas {
  flex: 1; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.story-editor-canvas img { position: absolute; width: 100%; height: 100%; object-fit: contain; }
.story-editor-canvas canvas { position: absolute; width: 100%; height: 100%; cursor: crosshair; z-index: 1; }
#storyEditorOverlays { position: absolute; width: 100%; height: 100%; z-index: 2; }
.story-overlay-text {
  position: absolute; padding: 2px;
  font-size: 1.1rem; font-weight: 600;
  text-shadow: 0 1px 3px rgba(0,0,0,0.7);
  cursor: move; min-width: 20px; outline: none;
}
.story-overlay-link {
  position: absolute; padding: 6px 12px;
  background: rgba(255,255,255,0.15);
  color: #fff; font-size: 0.8rem; cursor: move;
}
.story-editor-actions {
  display: flex; gap: 8px; padding: 8px;
  border-top: 1px solid var(--border); align-items: center;
}
.story-editor-actions input[type="file"] { flex: 1; margin-bottom: 0; }

/* ─── Chat ─── */
.conversation { cursor: pointer; }
.conversation:hover { background: var(--accent-soft); }
.chat-thread {
  display: flex; flex-direction: column;
  height: calc(100dvh - 100px); max-width: 540px; margin: 0 auto;
}
.chat-header {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-bottom: 1px solid var(--border);
}
.chat-messages {
  flex: 1; overflow-y: auto; padding: 8px 16px;
  display: flex; flex-direction: column; gap: 4px;
}
.message {
  max-width: 75%; padding: 8px 12px;
  border-radius: 16px; font-size: 0.9rem;
}
.message.sent {
  align-self: flex-end;
  background: var(--text); color: var(--bg);
  border-bottom-right-radius: 4px;
}
.message.received {
  align-self: flex-start;
  background: var(--accent-soft); color: var(--text);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}
.message small { font-size: 0.6rem; opacity: 0.5; }
.chat-thread .composer {
  flex-direction: row; align-items: center; padding: 8px;
  border-top: 1px solid var(--border);
}
.chat-thread .composer input { margin-bottom: 0; flex: 1; }

/* ─── Registration ─── */
#registration {
  display: flex; align-items: center; justify-content: center;
  min-height: 100dvh; padding: 0;
}
#login {
  display: flex; align-items: center; justify-content: center;
  min-height: 100dvh; padding: 16px;
}
#login .card { max-width: 360px; width: 100%; }

.reg-container {
  display: flex; flex-direction: column; align-items: center;
  gap: 20px; max-width: 380px; width: 100%; padding: 32px 20px;
}
.reg-hero {
  position: relative; display: flex; align-items: center; justify-content: center;
}
.reg-avatar {
  width: 120px; height: 120px; overflow: hidden;
  border: 2px solid var(--text);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
  transition: transform 0.15s;
}
.reg-avatar svg { width: 100%; height: 100%; }
.reg-avatar.pop { animation: pop 0.2s ease; }
@keyframes pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.06); }
  100% { transform: scale(1); }
}
.reg-avatar-glow {
  position: absolute; width: 140px; height: 140px;
  border-radius: 50%; filter: blur(50px); opacity: 0.15;
  transition: background 0.3s;
}
.reg-form {
  display: flex; flex-direction: column; align-items: center;
  gap: 10px; width: 100%;
}
.reg-title {
  font-size: 1.8rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1;
}
.reg-title-accent { opacity: 0.4; }
.reg-subtitle {
  color: var(--text-secondary); font-size: 0.8rem; margin-bottom: 4px;
}
.reg-label {
  font-size: 0.65rem; color: var(--text-secondary); text-transform: uppercase;
  letter-spacing: 0.1em; align-self: flex-start;
}
.reg-form input[type="text"] {
  font-size: 1rem; padding: 10px 12px; text-align: center;
  border: 2px solid var(--text); background: var(--surface);
}
.reg-form input[type="text"]:focus { border-color: var(--text); }
.btn.big {
  padding: 10px; font-size: 0.9rem; font-weight: 600;
  width: 100%;
}
.btn-link {
  background: none; border: none; color: var(--text-secondary);
  font-size: 0.75rem; cursor: pointer; padding: 4px;
  text-decoration: underline; font-family: var(--font);
}
.btn-link:hover { color: var(--text); }

/* ─── Profile (5th tab) ─── */
.profile-page {
  max-width: 420px; margin: 0 auto; padding: 20px 16px;
  display: flex; flex-direction: column; gap: 24px;
}
.profile-avatar-area {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.profile-avatar-big {
  width: 100px; height: 100px; border-radius: 50%;
  border: 2px solid var(--text); overflow: hidden;
}
.profile-avatar-big svg { width: 100%; height: 100%; }
.profile-avatar-big.pop { animation: pop 0.2s ease; }
.profile-section {
  display: flex; flex-direction: column; gap: 8px;
  padding-bottom: 20px; border-bottom: 1px solid var(--border);
}
.profile-section:last-child { border-bottom: none; }
.profile-section h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-secondary); }
.profile-label { font-size: 0.7rem; color: var(--text-secondary); }
.profile-value { font-size: 0.95rem; font-weight: 600; }
.profile-key {
  display: flex; align-items: center; gap: 8px;
  background: var(--accent-soft); padding: 10px 12px;
  border: 1px solid var(--border);
}
.profile-key code {
  flex: 1; font-family: monospace; font-size: 0.85rem;
  word-break: break-all;
}
.profile-key-edit {
  display: flex; gap: 8px; align-items: center; margin-top: 6px;
}
.profile-key-edit input { flex: 1; margin-bottom: 0; font-size: 0.85rem; }
.profile-theme-row { display: flex; gap: 8px; }
.profile-theme-row .btn { flex: 1; text-align: center; }

/* ─── Cat Editor ─── */
.cat-editor { max-width: 440px; }
.cat-editor h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; text-transform: none; letter-spacing: 0; color: var(--text); }
.cat-editor-preview {
  display: flex; justify-content: center; padding: 16px 0;
}
.cat-editor-preview .profile-avatar-big {
  width: 140px; height: 140px;
  border: 3px solid var(--pop);
  transition: border-color 0.2s;
}
.cat-editor-traits {
  display: flex; flex-direction: column; gap: 10px;
}
.cat-trait-row {
  display: flex; align-items: center; gap: 10px;
}
.cat-trait-label {
  width: 70px; font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-secondary);
  flex-shrink: 0;
}
.cat-trait-options {
  display: flex; flex-wrap: wrap; gap: 4px;
}
.cat-trait-btn {
  padding: 4px 10px; font-size: 0.75rem;
  border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text-secondary);
  cursor: pointer; font-family: var(--font);
  transition: all 0.1s;
}
.cat-trait-btn:hover { color: var(--text); border-color: var(--text); }
.cat-trait-btn.active {
  background: var(--pop); color: #fff;
  border-color: var(--pop); font-weight: 600;
}

/* ─── Empty States ─── */
.empty {
  text-align: center; padding: 48px 20px;
  color: var(--text-secondary); font-size: 0.85rem;
}
.empty-icon { font-size: 2rem; margin-bottom: 8px; }

/* ─── Toast ─── */
.toast {
  position: fixed; bottom: 64px; left: 50%; transform: translateX(-50%);
  background: var(--text); color: var(--bg);
  padding: 8px 16px; font-size: 0.8rem; z-index: 999;
  box-shadow: var(--shadow);
}

/* ─── Reply ─── */
.reply { padding-left: 32px; border-left: 2px solid var(--border); }

/* ─── Responsive ─── */

/* Mobile */
@media (max-width: 480px) {
  .tweet { padding: 10px 12px; }
  .item { padding: 10px 12px; }
  .story-bubbles { gap: 10px; padding: 10px 12px; }
  .reg-container { padding: 24px 16px; }
}

/* Desktop: sidebar nav, wider feed */
@media (min-width: 768px) {
  body { padding-bottom: 0; padding-left: 220px; }

  #bottomNav {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: 220px; height: 100dvh;
    flex-direction: column; justify-content: flex-start;
    border-top: none; border-right: 1px solid var(--border);
    padding: 20px 0;
    gap: 2px;
  }
  #bottomNav::before {
    content: 'miaumiau';
    display: block; padding: 8px 20px 20px;
    font-size: 1.3rem; font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
  }
  #bottomNav button {
    flex: none; flex-direction: row; justify-content: flex-start;
    padding: 10px 20px; gap: 12px;
    border-radius: 0;
  }
  #bottomNav button.active::after {
    top: 0; bottom: 0; left: 0; right: auto;
    width: 3px; height: 100%;
  }
  .nav-icon { width: 20px; height: 20px; }
  .nav-label {
    font-size: 0.8rem; text-transform: none;
    letter-spacing: 0; font-weight: 500;
  }

  .feed {
    max-width: 600px;
    margin: 0 auto;
  }

  .tweet { padding: 16px 20px; }
  .tweet-text { font-size: 1rem; }
  .tweet-composer { padding: 16px 20px; }

  .profile-page { max-width: 500px; padding: 32px 24px; }
  .profile-avatar-big { width: 120px; height: 120px; }

  .modal-content { max-width: 520px; }

  .chat-thread { max-width: 600px; }

  .story-bubbles { max-width: 600px; padding: 16px 20px; }
}

/* Wide desktop: even more space */
@media (min-width: 1200px) {
  body { padding-left: 260px; }
  #bottomNav { width: 260px; }
  #bottomNav::before { font-size: 1.5rem; padding: 12px 24px 24px; }
  #bottomNav button { padding: 12px 24px; }
  .nav-label { font-size: 0.85rem; }
  .feed { max-width: 640px; }
}
