:root {
  --bg: #0a0b0c;
  --bg-hover: rgba(255, 255, 255, 0.025);
  --surface: #111214;
  --surface-2: #181a1d;
  --border: #202327;
  --border-strong: #2d3136;
  --text: #ecedef;
  --text-2: #b4b8bf;
  --muted: #80858e;
  --accent: #3ddc97;
  --accent-hover: #5be6aa;
  --accent-ink: #06150e;
  --accent-soft: rgba(61, 220, 151, 0.12);
  --like: #ff5c8a;
  --like-soft: rgba(255, 92, 138, 0.12);
  --danger: #ff5c5c;
  --hand: #f5a524;
  --ai: #a78bfa;
  --both: #3ddc97;
  --r-sm: 8px;
  --r-md: 12px;
  --font: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Consolas, monospace;
  --col: 680px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.45 var(--font); -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--accent-soft); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
svg.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- layout ---------- */
.layout { display: flex; justify-content: center; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; width: 248px; flex: none;
  display: flex; flex-direction: column; padding: 16px 16px 16px 8px; overflow-y: auto;
}
.column {
  flex: 0 1 var(--col); min-width: 0; min-height: 100vh;
  border-left: 1px solid var(--border); border-right: 1px solid var(--border);
}
.aside { width: 360px; flex: none; padding: 16px 0 64px 28px; }
.aside-inner { position: sticky; top: 16px; display: grid; gap: 16px; }

/* Brand */
.brand {
  display: inline-flex; align-items: center; gap: 10px; width: fit-content;
  padding: 6px 10px; margin: 0 0 20px 2px; border-radius: var(--r-md); color: var(--text);
}
.brand:hover { background: var(--surface); text-decoration: none; }
.brand .mark { width: 36px; height: 36px; flex: none; display: block; }
.wordmark { font-size: 21px; font-weight: 700; letter-spacing: -0.035em; line-height: 1; }
.wordmark span { color: var(--accent); }

.side-nav { display: grid; gap: 4px; }
.side-nav a {
  display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: var(--r-md);
  color: var(--text-2); font-size: 15.5px; font-weight: 500;
}
.side-nav a:hover { background: var(--surface); color: var(--text); text-decoration: none; }
.side-nav a[aria-current="page"] { background: var(--surface); color: var(--text); font-weight: 600; }
.side-nav a[aria-current="page"] svg { color: var(--accent); }
.side-nav svg.icon { width: 22px; height: 22px; }

.post-cta { width: 100%; margin-top: 20px; min-height: 46px; font-size: 15px; }
.post-cta-icon { display: none; }

.account-chip {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px;
  border: 1px solid transparent; border-radius: var(--r-md); background: none; text-align: left;
}
.account-chip:hover { background: var(--surface); border-color: var(--border); }
.account-chip .who { min-width: 0; flex: 1; line-height: 1.25; }
.account-chip .more-icon { color: var(--muted); }

.tabbar { display: none; }
.fab { display: none; }

/* ---------- shared ---------- */
.top { position: sticky; top: 0; z-index: 5; background: rgba(10, 11, 12, 0.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.top-row { display: flex; align-items: center; gap: 16px; min-height: 56px; padding: 0 16px; }
.top h1 { font-size: 18px; margin: 0; font-weight: 650; letter-spacing: -0.015em; }
.top .sub { color: var(--muted); font-size: 13px; }
.mobile-avatar { display: none; }

.tabs { display: flex; padding: 0 8px; }
.tabs a, .tabs button {
  flex: 1; display: flex; justify-content: center; background: none; border: 0; padding: 0;
  color: var(--muted); font-weight: 500;
}
.tabs a:hover, .tabs button:hover { color: var(--text); text-decoration: none; }
.tabs span { padding: 14px 4px 12px; border-bottom: 2px solid transparent; }
.tabs [aria-selected="true"] { color: var(--text); font-weight: 600; }
.tabs [aria-selected="true"] span { border-bottom-color: var(--accent); }

.name { font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.muted { color: var(--muted); }
.handle { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 36px; padding: 0 16px; border-radius: var(--r-sm);
  border: 1px solid var(--border-strong); background: transparent; color: var(--text);
  font-weight: 600; white-space: nowrap; transition: background-color 0.12s, border-color 0.12s;
}
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn:disabled { opacity: 0.45; cursor: default; }
a.btn { color: var(--text); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); }
a.btn-primary { color: var(--accent-ink); }
.btn-light { background: var(--text); border-color: var(--text); color: #0b0c0e; }
.btn-light:hover:not(:disabled) { background: #fff; border-color: #fff; }
a.btn-light { color: #0b0c0e; }
.btn-danger { color: var(--danger); border-color: rgba(255, 92, 92, 0.45); }
.btn-danger:hover:not(:disabled) { background: rgba(255, 92, 92, 0.1); }
.btn-lg { min-height: 44px; font-size: 15px; padding: 0 22px; }
.btn-block { width: 100%; }
.btn-follow-active:hover { color: var(--danger); border-color: rgba(255, 92, 92, 0.45); background: rgba(255, 92, 92, 0.08); }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: var(--r-sm); border: 0; background: none; color: var(--text-2);
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }

/* Avatars: rounded squares, so it doesn't look like every other feed */
.avatar {
  flex: none; width: 44px; height: 44px; border-radius: 12px; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; color: rgba(255, 255, 255, 0.92); background: var(--surface-2); user-select: none;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-sm { width: 32px; height: 32px; border-radius: 9px; font-size: 14px; }
.avatar-lg {
  position: relative; z-index: 1; width: 120px; height: 120px; border-radius: 28px; font-size: 48px;
  border: 4px solid var(--bg);
}

/* Coder-type badges */
.badge {
  flex: none; font-family: var(--mono); font-size: 10.5px; font-weight: 600; line-height: 1;
  padding: 3px 6px; border-radius: 4px; background: color-mix(in srgb, currentColor 13%, transparent);
  letter-spacing: 0;
}
.badge-hand { color: var(--hand); }
.badge-ai { color: var(--ai); }
.badge-both { color: var(--both); }

/* Forms */
.field { display: grid; gap: 6px; margin-bottom: 20px; }
.field label, .fieldset-label { font-size: 13px; font-weight: 500; color: var(--text-2); }
.input, .textarea {
  width: 100%; padding: 11px 12px; background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: var(--r-sm);
}
.input::placeholder, .textarea::placeholder { color: var(--muted); }
.input:focus, .textarea:focus { border-color: var(--accent); outline: 3px solid var(--accent-soft); }
.textarea { resize: vertical; min-height: 88px; }
.field-foot { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }
.error { color: var(--danger); font-size: 14px; margin: 0 0 16px; }
.ok { color: var(--accent); font-size: 14px; }

.types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 20px; }
.type-option { position: relative; }
.type-option input { position: absolute; opacity: 0; inset: 0; pointer-events: none; }
.type-option span {
  display: block; text-align: center; padding: 10px 6px; background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: var(--r-sm); font-weight: 500; font-size: 14px; cursor: pointer;
}
.type-option:hover span { border-color: var(--muted); }
.type-option input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.type-option input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- composer ---------- */
.composer { display: flex; gap: 12px; padding: 16px; border-bottom: 1px solid var(--border); }
.composer-main { flex: 1; min-width: 0; }
.composer textarea {
  width: 100%; border: 0; background: none; resize: none; padding: 9px 0 8px; font-size: 18px; line-height: 1.35;
  min-height: 52px; outline: none; overflow: hidden;
}
.composer textarea::placeholder { color: var(--muted); }
.composer .link-input {
  width: 100%; margin: 4px 0 8px; padding: 9px 12px; font-family: var(--mono); font-size: 13px;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-sm);
}
.composer .link-input:focus { border-color: var(--accent); outline: 3px solid var(--accent-soft); }
.composer-bar { display: flex; align-items: center; gap: 4px; padding-top: 10px; border-top: 1px solid var(--border); }
.composer-bar .tool { color: var(--accent); }
.composer-bar .tool:hover { background: var(--accent-soft); }
.composer-bar .spacer { flex: 1; }
.ring { width: 22px; height: 22px; transform: rotate(-90deg); }
.ring-count { font-size: 13px; color: var(--muted); min-width: 20px; text-align: right; font-variant-numeric: tabular-nums; }
.ring-count.over { color: var(--danger); }
.composer-bar .btn-primary { margin-left: 8px; }
.replying { font-size: 14px; color: var(--muted); margin: 0 0 4px; }

/* ---------- posts ---------- */
.post {
  display: flex; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--border);
  cursor: pointer; transition: background-color 0.12s;
}
.post:hover { background: var(--bg-hover); }
.post-main { flex: 1; min-width: 0; }
.post-head { display: flex; align-items: center; gap: 6px; min-width: 0; line-height: 1.2; }
.post-head .name { flex: 0 1 auto; }
.post-head .handle { flex: 0 1 auto; }
.post-head .dot, .post-head time { color: var(--muted); flex: none; }
.post-head .more { margin-left: auto; }
.post-reply-to { color: var(--muted); font-size: 14px; margin-top: 4px; }
.post-body { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15.5px; line-height: 1.5; color: var(--text); }
.post-link {
  display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 11px 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); color: var(--text-2); min-width: 0;
}
.post-link:hover { border-color: var(--border-strong); background: var(--surface-2); text-decoration: none; }
.post-link .host { font-family: var(--mono); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-link svg { color: var(--accent); }
.post-actions { display: flex; gap: 8px; max-width: 425px; margin: 8px 0 -6px -8px; }
.post-actions > span:empty { display: none; }
.action {
  display: inline-flex; align-items: center; gap: 2px; min-width: 64px; background: none; border: 0; padding: 0;
  color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums;
}
.action .bubble { display: inline-flex; padding: 8px; border-radius: var(--r-sm); transition: background-color 0.12s, color 0.12s; }
.action.reply:hover { color: var(--accent); }
.action.reply:hover .bubble { background: var(--accent-soft); }
.action.like:hover, .action.liked { color: var(--like); }
.action.like:hover .bubble { background: var(--like-soft); }
.action.share:hover { color: var(--accent); }
.action.share:hover .bubble { background: var(--accent-soft); }
.action svg.icon { width: 18px; height: 18px; }

/* Thread */
.thread-parent { border-bottom: 0; padding-bottom: 0; }
.thread-parent .avatar-col { display: flex; flex-direction: column; align-items: center; }
.thread-parent .avatar-col::after { content: ""; flex: 1; width: 2px; background: var(--border-strong); margin-top: 6px; border-radius: 1px; }
.focus-post { padding: 16px 16px 0; border-bottom: 1px solid var(--border); }
.focus-head { display: flex; align-items: center; gap: 12px; }
.focus-head .who { min-width: 0; flex: 1; line-height: 1.25; }
.focus-body { font-size: 18px; line-height: 1.5; margin: 14px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.focus-meta { color: var(--muted); padding: 16px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.focus-stats { display: flex; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 14px; }
.focus-stats strong { color: var(--text); font-weight: 600; }
.focus-post .post-actions { max-width: none; justify-content: space-around; margin: 4px 0; }

/* Menus */
.menu-wrap { position: relative; }
.menu {
  position: absolute; right: 0; top: 100%; z-index: 20; min-width: 220px; padding: 6px;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-md);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}
.menu.up { top: auto; bottom: 100%; left: 0; right: auto; margin-bottom: 8px; }
.menu button, .menu a {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 8px;
  border: 0; background: none; color: var(--text); font-weight: 500; text-align: left;
}
.menu button:hover, .menu a:hover { background: var(--surface-2); text-decoration: none; }
.menu .danger { color: var(--danger); }

/* ---------- profile ---------- */
.banner { aspect-ratio: 3 / 1; background: linear-gradient(135deg, var(--surface-2), var(--surface)); position: relative; overflow: hidden; }
.banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-info { padding: 12px 16px 0; }
.profile-top { display: flex; justify-content: space-between; align-items: flex-start; height: 60px; }
.profile-top .avatar-lg { margin-top: -72px; }
.profile-name { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin: 8px 0 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.follows-you { font-size: 12px; background: var(--surface-2); color: var(--text-2); padding: 2px 6px; border-radius: 4px; margin-left: 6px; }
.profile-bio { margin: 12px 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15.5px; }
.profile-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); margin: 12px 0; font-size: 14px; }
.profile-meta span, .profile-meta a { display: inline-flex; align-items: center; gap: 6px; }
.profile-meta svg.icon { width: 16px; height: 16px; }
.profile-counts { display: flex; gap: 20px; margin-bottom: 8px; font-size: 14px; }
.profile-counts a { color: var(--muted); }
.profile-counts a:hover { text-decoration: none; color: var(--text); }
.profile-counts strong { color: var(--text); font-weight: 600; }
.profile .tabs { border-bottom: 1px solid var(--border); margin-top: 8px; }

/* User rows */
.user-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; }
.user-row:hover { background: var(--bg-hover); }
.user-row .who { flex: 1; min-width: 0; line-height: 1.25; }
.user-row .who .bio { color: var(--text-2); margin-top: 4px; font-size: 14px; }
.user-row .line { display: flex; align-items: center; gap: 6px; min-width: 0; }

/* Right rail */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.panel h2 { font-size: 16px; font-weight: 650; margin: 0; padding: 14px 16px 6px; letter-spacing: -0.01em; }
.panel .user-row:hover { background: var(--surface-2); }
.panel p { margin: 0; padding: 4px 16px 16px; color: var(--muted); }
.panel .btn-block { margin: 0 16px 16px; width: calc(100% - 32px); }

.search { position: relative; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input {
  width: 100%; height: 42px; padding: 0 14px 0 42px; border-radius: var(--r-md);
  border: 1px solid var(--border); background: var(--surface);
}
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: 3px solid var(--accent-soft); border-color: var(--accent); }
.search:focus-within svg { color: var(--accent); }
.column .search { padding: 8px 16px; }
.column .search svg { left: 30px; }
.legal { font-size: 13px; color: var(--muted); padding: 0 4px; }

.section-title { font-size: 16px; font-weight: 650; margin: 0; padding: 16px 16px 8px; letter-spacing: -0.01em; }

/* ---------- settings ---------- */
.settings-section { padding: 24px 16px 8px; border-bottom: 1px solid var(--border); }
.settings-section h2 { font-size: 17px; margin: 0 0 4px; font-weight: 650; letter-spacing: -0.01em; }
.settings-section > p { margin: 0 0 20px; color: var(--muted); font-size: 14px; }
.settings-section form { max-width: 420px; }
.form-actions { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }

/* ---------- modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, 0.66);
  display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px; overflow-y: auto;
}
.modal { width: 600px; max-width: 100%; background: var(--bg); border: 1px solid var(--border-strong); border-radius: 16px; overflow: hidden; box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6); }
.modal-head { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 16px; min-height: 56px; padding: 0 12px; background: var(--bg); border-bottom: 1px solid var(--border); }
.modal-head h2 { font-size: 17px; margin: 0; flex: 1; font-weight: 650; }
.modal-body { padding: 0 16px 16px; }
.modal .composer { border-bottom: 0; padding: 8px 0 0; }

.edit-media { position: relative; }
.media-btns { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 12px; }
.media-btn {
  width: 40px; height: 40px; border-radius: var(--r-sm); border: 0;
  background: rgba(11, 12, 14, 0.75); color: #fff; display: inline-flex; align-items: center; justify-content: center;
}
.media-btn:hover { background: rgba(11, 12, 14, 0.92); }
.edit-avatar { position: relative; margin: -44px 0 16px 16px; width: 100px; }
.edit-avatar .avatar-lg { width: 100px; height: 100px; font-size: 40px; border-radius: 24px; }
.edit-avatar .media-btns { z-index: 3; }

/* ---------- auth ---------- */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-art {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  background: var(--surface); border-right: 1px solid var(--border); padding: 48px;
}
.auth-art .mark { width: min(240px, 42%); height: auto; }
.auth-art .wordmark { font-size: clamp(32px, 4vw, 48px); }
.auth-art p { margin: 0; color: var(--muted); font-size: 17px; text-align: center; max-width: 320px; }
.auth-panel { display: flex; flex-direction: column; justify-content: center; padding: 32px 48px; width: 100%; max-width: 520px; margin: 0 auto; }
.auth-panel h2 { font-size: 28px; font-weight: 700; letter-spacing: -0.025em; margin: 0 0 24px; }
.auth-panel .lede { color: var(--muted); margin: 0 0 28px; }
.auth-panel .switch { margin-top: 28px; color: var(--muted); }
.auth-panel .btn-lg { margin-top: 4px; }
.back-home { color: var(--muted); margin-bottom: 32px; display: inline-flex; align-items: center; gap: 6px; width: fit-content; }
.back-home:hover { color: var(--text); text-decoration: none; }
.auth-mobile-brand { display: none; }

/* ---------- states ---------- */
.empty { padding: 48px 32px; max-width: 420px; margin: 0 auto; }
.empty h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.025em; margin: 0 0 8px; line-height: 1.2; }
.empty p { color: var(--muted); margin: 0 0 24px; }
.loading { display: flex; justify-content: center; padding: 28px; }
.spinner { width: 24px; height: 24px; border-radius: 50%; border: 3px solid var(--accent-soft); border-top-color: var(--accent); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.load-more { display: block; width: 100%; padding: 16px; border: 0; background: none; color: var(--accent); font-weight: 500; }
.load-more:hover { background: var(--bg-hover); }

.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%); z-index: 100;
  background: var(--text); color: #0b0c0e; padding: 11px 16px; border-radius: var(--r-sm); font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.guest-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--surface);
  border-top: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center; gap: 32px; padding: 14px 16px;
}
.guest-bar .text { color: var(--text-2); }
.guest-bar .text strong { display: block; font-size: 19px; color: var(--text); letter-spacing: -0.02em; }
.guest-bar .actions { display: flex; gap: 10px; }

/* ---------- v2: composer, dev cards, topics, filters ---------- */
.mobile-brand { display: none; width: 32px; height: 32px; }
.mobile-brand .mark { width: 32px; height: 32px; display: block; }
.mono { font-family: var(--mono); }
.post:focus-visible { outline-offset: -2px; }

.composer-full { padding: 20px; gap: 14px; }
.kind-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.kind-opt {
  height: 28px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--border-strong);
  background: none; color: var(--muted); font-size: 13px; font-weight: 500;
}
.kind-opt:hover { color: var(--text); background: var(--surface-2); }
.kind-opt[aria-checked="true"] { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.link-row {
  display: flex; align-items: center; gap: 8px; margin: 4px 0 8px; padding: 0 12px;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-sm); color: var(--muted);
}
.link-row:focus-within { border-color: var(--accent); outline: 3px solid var(--accent-soft); color: var(--accent); }
.link-row svg { width: 16px; height: 16px; }
.link-row .link-input, .link-row .link-input:focus { flex: 1; min-width: 0; margin: 0; padding: 9px 0; border: 0; outline: none; background: none; }

.kind {
  flex: none; font-family: var(--mono); font-size: 10.5px; font-weight: 600; line-height: 1; text-transform: uppercase;
  letter-spacing: 0.04em; padding: 3px 6px; border-radius: 4px; border: 1px solid var(--border-strong); color: var(--text-2);
}
.kind-project { color: var(--accent); border-color: rgba(61, 220, 151, 0.4); }
.kind-question { color: #6cb6ff; border-color: rgba(108, 182, 255, 0.4); }
.kind-idea { color: #ff9f7a; border-color: rgba(255, 159, 122, 0.4); }

.tag, .post-body a, .focus-body a { color: var(--accent); }
.tag { font-weight: 500; }
.code-block {
  margin: 10px 0 0; padding: 12px 14px; background: #0d0e10; border: 1px solid var(--border); border-radius: var(--r-sm);
  font: 13px/1.6 var(--mono); overflow-x: auto; white-space: pre; color: var(--text); tab-size: 2;
}
.code-block code { font: inherit; }
.inline-code { font: 0.9em var(--mono); background: var(--surface-2); border: 1px solid var(--border); padding: 1px 5px; border-radius: 5px; }

.dev-card {
  display: flex; align-items: flex-start; gap: 12px; margin-top: 12px; padding: 12px 14px; min-width: 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); color: var(--text);
  transition: border-color 0.12s, background-color 0.12s;
}
.dev-card:hover { border-color: var(--border-strong); background: var(--surface-2); text-decoration: none; }
.dev-icon {
  flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px;
  background: var(--bg); border: 1px solid var(--border); color: var(--text-2);
}
.dev-icon svg { width: 18px; height: 18px; }
.dev-body { flex: 1; min-width: 0; }
.dev-title { font-family: var(--mono); font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dev-title .muted { font-weight: 500; }
.dev-desc {
  margin-top: 3px; color: var(--text-2); font-size: 13.5px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.dev-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; color: var(--muted); font-size: 12.5px; }
.dev-meta:empty { display: none; }
.dev-meta > span { display: inline-flex; align-items: center; gap: 5px; }
.dev-meta svg { width: 14px; height: 14px; }
.dev-lang i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dev-open { align-self: center; color: var(--muted); }
.dev-open svg { width: 16px; height: 16px; }
.dev-card:hover .dev-open { color: var(--accent); }

.topic { display: flex; flex-direction: column; gap: 1px; padding: 10px 16px; color: var(--text); }
.topic:hover { background: var(--surface-2); text-decoration: none; }
.topic-tag { font-weight: 600; }
.topic-count { font-size: 13px; color: var(--muted); }
.column .topic { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.column .topic:hover { background: var(--bg-hover); }
.panel > div > .topic:last-child { padding-bottom: 14px; }

.chips { display: flex; gap: 8px; padding: 12px 16px; overflow-x: auto; border-bottom: 1px solid var(--border); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 30px; padding: 0 12px; border-radius: 6px; border: 1px solid var(--border-strong);
  background: none; color: var(--text-2); font-size: 13px; font-weight: 500;
}
.chip:hover { background: var(--surface-2); color: var(--text); }
.chip[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: #0a0b0c; }
.btn:active:not(:disabled) { transform: translateY(1px); }

/* A quieter, content-first pass on the existing dark/green identity. */
:root {
  --bg: #0c0f10;
  --bg-hover: rgba(255, 255, 255, 0.035);
  --surface: #141819;
  --surface-2: #1b2121;
  --border: #26302d;
  --border-strong: #35433d;
  --muted: #929d99;
  --col: 700px;
}
.sidebar { padding-top: 28px; }
.brand { margin-bottom: 28px; }
.side-nav a { padding-block: 12px; }
.aside { width: 348px; padding: 24px 0 64px 24px; }
.aside-inner { top: 24px; gap: 18px; }
.top { background: rgba(12, 15, 16, 0.96); }
.top-row { min-height: 64px; padding-inline: 24px; }
.top h1 { font-size: 20px; letter-spacing: -0.03em; }
.tabs { padding-inline: 16px; }
.tabs span { padding: 13px 4px 14px; }
.composer-full { padding: 24px; background: #101514; }
.post { padding: 22px 24px 18px; }
.post-body { margin-top: 10px; line-height: 1.6; }
.post-actions { margin-top: 14px; }
.panel h2 { font-size: 17px; padding: 18px 18px 8px; letter-spacing: -0.02em; }
.identity-badges { display: inline-flex; align-items: center; gap: 3px; flex: none; }
.identity-badges .verified { color: #2799ef; display: inline-flex; }
.identity-badges .verified svg { width: 18px; height: 18px; }
.identity-badges .founder { display: inline-flex; }
.identity-badges .founder .mark { width: 17px; height: 17px; }
.topic { flex-direction: row; align-items: center; gap: 14px; padding: 12px 18px; }
.topic-rank { color: var(--accent); font: 600 12px var(--mono); width: 22px; flex: none; }
.topic-info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.topic-tag { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topic > svg { width: 16px; height: 16px; color: var(--muted); }
.column .topic { padding: 16px 24px; }
.home-trends:empty { display: none; }
.home-trends { display: flex; align-items: center; gap: 16px; overflow-x: auto; padding: 13px 24px; border-bottom: 1px solid var(--border); scrollbar-width: none; white-space: nowrap; }
.home-trends-label { color: var(--muted); font-size: 13px; font-weight: 600; }
.home-trend { color: var(--text-2); font-size: 13px; font-weight: 600; }
.home-trend:hover { color: var(--accent); text-decoration: none; }
.home-trend span { color: var(--accent); font: 600 11px var(--mono); margin-right: 6px; }
.action.bookmark { min-width: 42px; }
.action.bookmark:hover, .action.bookmarked { color: var(--accent); }
.action.bookmark:hover .bubble { background: var(--accent-soft); }
.profile-actions { display: flex; align-items: center; gap: 8px; }
.profile-control { border: 1px solid var(--border-strong); width: 36px; height: 36px; }
.control-note { color: var(--text-2); background: var(--surface); border: 1px solid var(--border); padding: 10px 12px; border-radius: var(--r-sm); }
.topic { padding: 0; gap: 0; }
.topic-main { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; padding: 12px 18px; color: var(--text); }
.topic-main:hover { text-decoration: none; }
.topic-follow { min-height: 40px; border: 1px solid var(--border-strong); background: transparent; color: var(--accent); border-radius: 6px; font-size: 12px; font-weight: 600; padding: 5px 8px; margin-right: 14px; }
.topic-follow:hover { background: var(--accent-soft); }
.topic-follow[aria-pressed="true"] { color: var(--text-2); }
.topic-follow:disabled { opacity: .5; }
.column .topic { padding: 0; }
.column .topic-main { padding: 16px 24px; }
.topic-search-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; border-bottom: 1px solid var(--border); }
.topic-search-head h2 { margin: 0; font-size: 21px; }
.topic-search-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.topic-search-follow { flex: none; }
.settings-subtitle { margin: 6px 0 8px; font-size: 14px; }
.settings-list { max-width: 480px; margin-bottom: 22px; }
.settings-list .loading { justify-content: flex-start; padding: 8px 0; }
.settings-hint { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.setting-row .btn { flex: none; }
.setting-person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.setting-person strong { display: block; font-weight: 600; }
.setting-person .muted { font-size: 13px; }
@media (max-width: 700px) {
  .post { padding: 18px 16px 14px; }
  .post-head { flex-wrap: wrap; row-gap: 4px; }
  .post-head .handle { max-width: 45%; }
  .top-row { padding-inline: 16px; }
  .home-trends { padding: 12px 16px; }
  .composer-full { padding: 16px; }
  .topic-search-head { padding: 18px 16px; }
  .column .topic-main { padding: 14px 16px; }
  .topic-follow { margin-right: 16px; }
}

/* ---------- responsive ---------- */
@media (max-width: 1360px) {
  .sidebar { width: 84px; align-items: center; padding: 16px 8px; }
  .wordmark, .side-nav .label, .account-chip .who, .account-chip .more-icon { display: none; }
  .brand { margin-left: 0; padding: 6px; }
  .side-nav a { padding: 12px; }
  .post-cta { width: 48px; min-height: 48px; padding: 0; }
  .post-cta-label { display: none; }
  .post-cta-icon { display: inline; }
  .account-chip { width: auto; padding: 6px; }
}
@media (max-width: 1180px) {
  .aside { display: none; }
}
@media (max-width: 700px) {
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
  .sidebar { display: none; }
  .column { border: 0; width: 100%; }
  .mobile-brand { display: inline-flex; }
  .post { padding: 14px 16px; gap: 12px; }
  .composer-full { padding: 16px; }
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex;
    background: var(--bg); border-top: 1px solid var(--border); padding-bottom: env(safe-area-inset-bottom);
  }
  .tabbar a { flex: 1; display: flex; justify-content: center; align-items: center; height: 56px; color: var(--muted); }
  .tabbar a[aria-current="page"] { color: var(--accent); }
  .tabbar svg.icon { width: 24px; height: 24px; }
  .fab {
    position: fixed; right: 16px; bottom: calc(72px + env(safe-area-inset-bottom)); z-index: 30;
    display: inline-flex; width: 54px; height: 54px; padding: 0; border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55);
  }
  .fab svg.icon { width: 24px; height: 24px; }
  .modal-backdrop { padding: 0; }
  .modal { border-radius: 0; border: 0; min-height: 100vh; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .auth-panel { padding: 24px 24px 48px; justify-content: flex-start; }
  .auth-mobile-brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px; color: var(--text); }
  .auth-mobile-brand .mark { width: 40px; height: 40px; }
  .auth-mobile-brand .wordmark { display: inline; font-size: 22px; }
  .avatar-lg { width: 88px; height: 88px; font-size: 36px; border-radius: 22px; }
  .profile-top { height: 48px; }
  .profile-top .avatar-lg { margin-top: -56px; }
  .guest-bar { bottom: calc(56px + env(safe-area-inset-bottom)); padding: 10px 16px; }
  .guest-bar .text { display: none; }
  .guest-bar .actions { width: 100%; }
  .guest-bar .actions .btn { flex: 1; }
  .composer textarea { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation-duration: 0.01ms !important; }
}
