:root {
  --blue: #0a66c2;
  --blue-dark: #004182;
  --blue-tint: #e8f3ff;
  --bg: #f4f2ee;
  --card: #ffffff;
  --text: rgba(0, 0, 0, 0.9);
  --muted: rgba(0, 0, 0, 0.6);
  --faint: rgba(0, 0, 0, 0.08);
  --border: rgba(0, 0, 0, 0.15);
  --green: #057642;
  --radius: 8px;
  --card-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Fira Sans", Ubuntu, Oxygen, sans-serif;
  font-size: 14px;
  line-height: 1.42857;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }

/* ---------- Top nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--card);
  border-bottom: 1px solid var(--faint);
}
.nav-inner {
  max-width: 1128px; margin: 0 auto; height: 52px;
  display: flex; align-items: center; gap: 8px; padding: 0 24px;
}
.nav-logo { display: flex; }
.logo-box {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 4px;
  background: var(--blue); color: #fff;
  font-weight: 800; font-size: 19px; letter-spacing: -0.5px;
  font-family: Arial, Helvetica, sans-serif;
}
.logo-word { font-family: Arial, Helvetica, sans-serif; font-weight: 800; color: var(--blue); font-size: 30px; letter-spacing: -1px; display: inline-flex; align-items: center; gap: 2px; }
.logo-word .logo-box { width: 30px; height: 30px; font-size: 22px; }

.nav-search {
  display: flex; align-items: center; gap: 8px;
  background: #edf3f8; border-radius: 4px; height: 34px; width: 280px; padding: 0 10px;
  color: var(--muted);
}
.nav-search input { border: 0; outline: 0; background: transparent; flex: 1; min-width: 0; color: var(--text); }
.nav-search:focus-within { box-shadow: 0 0 0 2px var(--text); background: #fff; }

.nav-items { display: flex; margin-left: auto; height: 100%; }
.nav-item {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 80px; height: 100%; color: var(--muted); font-size: 12px; gap: 2px;
}
.nav-item:hover { color: var(--text); text-decoration: none; }
.nav-item.active { color: var(--text); }
.nav-item.active::after {
  content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--text);
}
.nav-item svg { width: 24px; height: 24px; }
.nav-item .mini-avatar { width: 24px; height: 24px; font-size: 10px; }
.nav-badge {
  position: absolute; top: 4px; left: 50%; margin-left: 4px;
  background: #cb112d; color: #fff; font-size: 11px; font-weight: 600;
  border-radius: 10px; min-width: 16px; height: 16px; padding: 0 4px;
  display: flex; align-items: center; justify-content: center;
}
.nav-divider { width: 1px; background: var(--faint); margin: 0 4px; }
.nav-premium { color: #915907; text-align: center; }

/* ---------- Layout ---------- */
.page { max-width: 1128px; margin: 0 auto; padding: 24px 24px 64px; }
.layout-feed { display: grid; grid-template-columns: 225px minmax(0, 555px) 300px; gap: 24px; align-items: start; }
.layout-profile { display: grid; grid-template-columns: minmax(0, 804px) 300px; gap: 24px; align-items: start; }
.layout-wide { display: grid; grid-template-columns: 225px minmax(0, 1fr); gap: 24px; align-items: start; }
.col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sticky { position: sticky; top: 76px; }

.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--card-shadow); overflow: hidden; }
.card-pad { padding: 12px 16px; }
.card h2 { font-size: 20px; font-weight: 600; margin: 0 0 4px; }
.card h3 { font-size: 16px; font-weight: 600; margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.link { color: var(--blue); font-weight: 600; }
.link:hover { text-decoration: underline; }

/* ---------- Avatars ---------- */
.avatar {
  border-radius: 50%; color: #fff; font-weight: 600; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; user-select: none;
}

/* ---------- Left sidebar profile card ---------- */
.mini-profile .banner { height: 56px; }
.mini-profile .avatar { position: relative; width: 72px; height: 72px; font-size: 26px; margin: -38px auto 0; border: 2px solid #fff; display: flex; }
.mini-profile .who { text-align: center; padding: 12px 16px 16px; border-bottom: 1px solid var(--faint); }
.mini-profile .who a.name { font-size: 16px; font-weight: 600; }
.mini-profile .who .headline { color: var(--muted); font-size: 12px; margin-top: 4px; }
.stat-row { display: flex; justify-content: space-between; padding: 4px 16px; font-size: 12px; font-weight: 600; color: var(--muted); }
.stat-row:hover { background: rgba(0,0,0,0.04); text-decoration: none; }
.stat-row b { color: var(--blue); }
.stats { padding: 8px 0; border-bottom: 1px solid var(--faint); }
.premium-tease { padding: 12px 16px; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--faint); }
.premium-tease b { color: var(--text); display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.premium-tease .gold { width: 14px; height: 14px; background: #f8c77e; border-radius: 2px; display: inline-block; }
.side-links { padding: 12px 16px; font-size: 12px; font-weight: 600; display: flex; flex-direction: column; gap: 8px; }
.side-links a { display: flex; align-items: center; gap: 8px; }

/* ---------- Composer box ---------- */
.share-box { padding: 12px 16px 4px; }
.share-top { display: flex; gap: 8px; align-items: center; }
.share-top .avatar { width: 48px; height: 48px; font-size: 18px; }
.share-trigger {
  flex: 1; text-align: left; height: 48px; border-radius: 35px; padding: 0 16px;
  border: 1px solid rgba(0,0,0,0.3); color: var(--muted); font-weight: 600;
}
.share-trigger:hover { background: rgba(0,0,0,0.08); }
.share-actions { display: flex; justify-content: space-around; padding-top: 4px; }
.share-actions button {
  display: flex; align-items: center; gap: 8px; padding: 12px 8px; border-radius: 4px; font-weight: 600; color: var(--muted);
}
.share-actions button:hover { background: rgba(0,0,0,0.08); }
.share-actions svg { width: 24px; height: 24px; }

.sort-row { display: flex; align-items: center; gap: 8px; margin: 0 0 0; font-size: 12px; color: var(--muted); }
.sort-row hr { flex: 1; border: 0; border-top: 1px solid var(--border); margin: 0; }
.sort-row b { color: var(--text); }

/* ---------- Posts ---------- */
.post-head { display: flex; gap: 8px; padding: 12px 16px 0; align-items: flex-start; }
.post-head .avatar { width: 48px; height: 48px; font-size: 18px; }
.post-head .info { flex: 1; min-width: 0; }
.post-head .name { font-weight: 600; font-size: 14px; }
.post-head .degree { color: var(--muted); font-weight: 400; }
.post-head .headline, .post-head .meta {
  color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.post-head .meta { display: flex; align-items: center; gap: 4px; }
.follow-btn { color: var(--blue); font-weight: 600; padding: 4px 8px; border-radius: 4px; display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.follow-btn:hover { background: var(--blue-tint); }
.follow-btn.following { color: var(--muted); }

.post-body { padding: 8px 16px 0; word-wrap: break-word; }
.post-body .reflect { white-space: pre-wrap; }
.post-body .announce { margin: 0 0 8px; }
.post-body .reflect { margin: 0; }
.post-body .reflect.clamped { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.see-more { color: var(--muted); font-weight: 400; }
.see-more:hover { color: var(--blue); text-decoration: underline; }
.hashtag { color: var(--blue); font-weight: 600; }

.ascent-card {
  margin: 12px 0 0; position: relative; overflow: hidden;
  border-top: 1px solid var(--faint); border-bottom: 1px solid var(--faint);
}
.ascent-art { height: 200px; display: block; width: 100%; }
.ascent-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,0.35); text-align: center; padding: 16px;
}
.ascent-overlay .kicker { text-transform: uppercase; font-size: 12px; letter-spacing: 2px; font-weight: 600; opacity: 0.9; }
.ascent-overlay .route { font-size: 26px; font-weight: 700; line-height: 1.15; margin: 4px 0; }
.ascent-overlay .sub { font-size: 14px; opacity: 0.95; }
.ascent-footer { background: #eef3f8; padding: 8px 16px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); }
.ascent-footer b { color: var(--text); font-size: 14px; }
.grade-pill { background: var(--text); color: #fff; padding: 2px 8px; border-radius: 12px; font-weight: 700; font-size: 12px; }

.social-counts {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 16px; font-size: 12px; color: var(--muted);
}
.social-counts button:hover { color: var(--blue); text-decoration: underline; }
.emoji-stack { display: inline-flex; align-items: center; gap: 4px; }
.emoji-stack .e { display: inline-flex; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px #fff; align-items: center; justify-content: center; font-size: 12px; margin-right: -6px; }
.emoji-stack .n { margin-left: 8px; }

.post-actions { display: flex; border-top: 1px solid var(--faint); margin: 0 16px; padding: 4px 0; }
.post-actions > * { flex: 1; }
.act {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 8px; border-radius: 4px; color: var(--muted); font-weight: 600;
}
.act:hover { background: rgba(0,0,0,0.08); }
.act svg { width: 20px; height: 20px; }
.act.reacted { color: var(--blue); }
.act .r-emoji { font-size: 18px; line-height: 1; }

.react-wrap { position: relative; }
.react-pop {
  position: absolute; bottom: calc(100% + 4px); left: 0; display: none;
  background: #fff; border-radius: 30px; padding: 6px 8px; gap: 4px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2), 0 0 0 1px rgba(0,0,0,0.08); z-index: 5;
}
.react-wrap:hover .react-pop, .react-wrap:focus-within .react-pop { display: flex; }
.react-pop::after { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 8px; }
.react-pop button { font-size: 28px; line-height: 1; width: 40px; height: 40px; border-radius: 50%; position: relative; transition: transform 0.12s; }
.react-pop button:hover { transform: scale(1.3) translateY(-4px); }
.react-pop button span.tip {
  display: none; position: absolute; bottom: 110%; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,0.85); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 10px; white-space: nowrap; font-weight: 600;
}
.react-pop button:hover span.tip { display: block; }

/* ---------- Comments / threads ---------- */
.comments { padding: 4px 16px 12px; }
.comment-composer { display: flex; gap: 8px; align-items: flex-start; }
.comment-composer .avatar { width: 40px; height: 40px; font-size: 15px; }
.comment-composer.reply .avatar { width: 32px; height: 32px; font-size: 12px; }
.composer-field { flex: 1; min-width: 0; }
.comment-input {
  display: flex; align-items: center; border: 1px solid rgba(0,0,0,0.3); border-radius: 24px; padding: 0 4px 0 12px; min-height: 40px;
}
.comment-input:focus-within { box-shadow: 0 0 0 1px var(--text); border-color: var(--text); }
.comment-input input { flex: 1; border: 0; outline: 0; min-width: 0; padding: 8px 0; background: transparent; }
.btn-post-comment {
  background: var(--blue); color: #fff; font-weight: 600; border-radius: 16px; padding: 4px 12px; margin: 4px 0;
}
.btn-post-comment:hover { background: var(--blue-dark); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip {
  border: 1px solid var(--blue); color: var(--blue); border-radius: 16px; padding: 3px 12px; font-weight: 600; font-size: 13px;
}
.chip:hover { background: var(--blue-tint); box-shadow: inset 0 0 0 1px var(--blue); }
.chip.primary { background: var(--blue); color: #fff; }
.chip.primary:hover { background: var(--blue-dark); }

.comment-sort { font-size: 12px; color: var(--muted); font-weight: 600; margin: 12px 0 4px; }
.comment { display: flex; gap: 8px; margin-top: 12px; }
.comment > .avatar { width: 40px; height: 40px; font-size: 15px; }
.comment .replies .comment > .avatar { width: 32px; height: 32px; font-size: 12px; }
.comment-main { flex: 1; min-width: 0; }
.bubble { background: #f2f2f2; border-radius: 0 8px 8px 8px; padding: 8px 12px; }
.bubble-head { display: flex; justify-content: space-between; gap: 8px; }
.bubble-head .name { font-weight: 600; }
.bubble-head .author-tag { background: #56687a; color: #fff; font-size: 11px; border-radius: 3px; padding: 0 4px; margin-left: 4px; font-weight: 600; }
.bubble .headline { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bubble .time { color: var(--muted); font-size: 12px; white-space: nowrap; }
.bubble p { margin: 8px 0 0; white-space: pre-wrap; word-wrap: break-word; }
.comment-actions { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); padding: 2px 4px; }
.comment-actions button { font-weight: 600; padding: 2px 4px; border-radius: 4px; color: var(--muted); }
.comment-actions button:hover { background: rgba(0,0,0,0.08); }
.comment-actions button.liked { color: var(--blue); }
.comment-actions .sep { color: var(--border); }
.replies { margin-top: 0; }
.replies .comment-composer { margin-top: 8px; }
.load-more { margin-top: 8px; font-weight: 600; color: var(--muted); padding: 4px; border-radius: 4px; font-size: 13px; }
.load-more:hover { background: rgba(0,0,0,0.08); }
.new-flash { animation: flash 1.6s ease-out; }
@keyframes flash { from { background: #fff4c2; } to { background: transparent; } }

/* ---------- Right sidebar ---------- */
.news h3 { padding: 12px 16px 4px; }
.news ul { list-style: none; margin: 0; padding: 0 0 8px; }
.news li { padding: 4px 16px 4px 32px; position: relative; cursor: pointer; }
.news li:hover { background: rgba(0,0,0,0.04); }
.news li::before { content: ""; position: absolute; left: 16px; top: 12px; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.news li b { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.news li span { font-size: 12px; color: var(--muted); }
.suggest { padding: 12px 16px; }
.suggest-item { display: flex; gap: 8px; margin-top: 12px; }
.suggest-item .avatar { width: 48px; height: 48px; font-size: 18px; }
.suggest-item .name { font-weight: 600; }
.suggest-item .headline { font-size: 12px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  border-radius: 16px; padding: 5px 16px; font-weight: 600; font-size: 14px; white-space: nowrap;
  transition: background 0.1s, box-shadow 0.1s;
}
.btn-outline { box-shadow: inset 0 0 0 1px var(--muted); color: var(--muted); }
.btn-outline:hover { box-shadow: inset 0 0 0 2px var(--text); background: rgba(0,0,0,0.04); color: var(--text); }
.btn-outline-blue { box-shadow: inset 0 0 0 1px var(--blue); color: var(--blue); }
.btn-outline-blue:hover { box-shadow: inset 0 0 0 2px var(--blue); background: var(--blue-tint); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-primary:disabled { background: rgba(0,0,0,0.08); color: rgba(0,0,0,0.3); cursor: not-allowed; }
.btn-sm { padding: 2px 12px; font-size: 13px; }
.btn.done { box-shadow: inset 0 0 0 1px var(--muted); color: var(--muted); background: transparent; }

.footer-links { font-size: 12px; color: var(--muted); text-align: center; padding: 16px 8px; line-height: 2; }
.footer-links a { margin: 0 6px; }
.footer-links .logo-word { font-size: 14px; }
.footer-links .logo-word .logo-box { width: 16px; height: 16px; font-size: 11px; border-radius: 2px; }

/* ---------- Profile ---------- */
.profile-top .banner { height: 200px; position: relative; }
.profile-top .banner svg { width: 100%; height: 100%; display: block; }
.profile-top .avatar-big {
  width: 152px; height: 152px; font-size: 56px; border: 4px solid #fff; margin: -112px 0 0 24px; position: relative;
}
.profile-top .body { padding: 8px 24px 24px; position: relative; }
.profile-top .edit-pencil { position: absolute; right: 16px; top: 8px; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.profile-top .edit-pencil:hover { background: rgba(0,0,0,0.08); }
.profile-top h1 { font-size: 24px; font-weight: 600; margin: 8px 0 0; display: flex; align-items: center; gap: 8px; }
.verified { color: var(--muted); }
.profile-top .headline { font-size: 16px; margin-top: 2px; }
.profile-top .loc { color: var(--muted); margin-top: 8px; }
.profile-top .conns { color: var(--blue); font-weight: 600; margin-top: 8px; display: inline-block; }
.profile-buttons { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.open-to {
  margin-top: 16px; background: #dce6f1; border-radius: 8px; padding: 12px 16px; max-width: 360px;
}
.open-to b { display: block; }
.section { padding: 24px 24px 12px; }
.section h2 { display: flex; justify-content: space-between; align-items: center; }
.section .sub { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.analytics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 12px; }
.analytics div b { display: block; font-size: 16px; }
.analytics div { font-size: 12px; color: var(--muted); display: flex; gap: 8px; }
.analytics svg { width: 24px; height: 24px; flex-shrink: 0; color: var(--text); }
.exp-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--faint); }
.exp-item:last-child { border-bottom: 0; }
.exp-logo { width: 48px; height: 48px; border-radius: 4px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.exp-item b { display: block; font-weight: 600; }
.exp-item .l2 { font-size: 14px; }
.exp-item .l3 { font-size: 14px; color: var(--muted); }
.exp-item p { margin: 6px 0 0; }
.skill { padding: 12px 0; border-bottom: 1px solid var(--faint); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.skill:last-child { border-bottom: 0; }
.skill b { display: block; font-weight: 600; }
.skill .muted { font-size: 12px; display: flex; align-items: center; gap: 4px; }
.section-footer { border-top: 1px solid var(--faint); text-align: center; padding: 12px; font-weight: 600; color: var(--muted); display: block; width: 100%; }
.section-footer:hover { background: rgba(0,0,0,0.04); text-decoration: none; }
.activity-mini { padding: 12px 0; border-bottom: 1px solid var(--faint); }
.activity-mini:last-child { border-bottom: 0; }
.activity-mini .muted { font-size: 12px; }

/* ---------- Crew / Projects / Notifications ---------- */
.crew-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; padding: 0 16px 16px; }
.crew-card { border-radius: 8px; box-shadow: var(--card-shadow); overflow: hidden; text-align: center; display: flex; flex-direction: column; }
.crew-card .banner { height: 62px; }
.crew-card .avatar { position: relative; width: 104px; height: 104px; font-size: 36px; margin: -52px auto 0; border: 2px solid #fff; display: flex; }
.crew-card .info { padding: 8px 12px; flex: 1; }
.crew-card .name { font-weight: 600; font-size: 16px; display: block; }
.crew-card .headline { color: var(--muted); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.crew-card .mutual { color: var(--muted); font-size: 12px; margin-top: 8px; }
.crew-card .btn { margin: 0 12px 12px; }

.job { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--faint); align-items: flex-start; }
.job:hover { background: rgba(0,0,0,0.02); }
.job b.title { color: var(--blue); font-size: 16px; font-weight: 600; display: block; }
.job .l2 { font-size: 14px; }
.job .l3 { color: var(--muted); font-size: 14px; }
.job .l4 { color: var(--muted); font-size: 12px; margin-top: 6px; display: flex; gap: 8px; align-items: center; }
.job .promoted { color: var(--green); font-weight: 600; }
.job .grow { flex: 1; min-width: 0; }

.notif { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--faint); align-items: center; }
.notif.unread { background: #dce6f1; }
.notif .avatar { width: 48px; height: 48px; font-size: 18px; }
.notif .grow { flex: 1; }
.notif .time { color: var(--muted); font-size: 12px; }
.empty { padding: 32px 16px; text-align: center; color: var(--muted); }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.75); z-index: 100;
  display: flex; align-items: flex-start; justify-content: center; padding: 48px 16px; overflow-y: auto;
}
.modal { background: #fff; border-radius: 8px; width: 100%; max-width: 744px; box-shadow: 0 8px 32px rgba(0,0,0,0.3); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; border-bottom: 1px solid var(--faint); }
.modal-head h2 { font-size: 20px; font-weight: 600; margin: 0; }
.modal-head .who { display: flex; align-items: center; gap: 12px; }
.modal-head .who .avatar { width: 56px; height: 56px; font-size: 20px; }
.modal-head .who b { font-size: 20px; font-weight: 600; display: block; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.icon-btn:hover { background: rgba(0,0,0,0.08); color: var(--text); }
.modal-body { padding: 16px 24px; display: flex; flex-direction: column; gap: 14px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 24px; border-top: 1px solid var(--faint); align-items: center; }
.modal-foot .grow { flex: 1; color: var(--muted); font-size: 12px; }
.announce-preview { font-size: 20px; line-height: 1.4; }
.announce-preview .placeholder { color: rgba(0,0,0,0.35); }
.field label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.field input, .field textarea, .field select {
  width: 100%; border: 1px solid rgba(0,0,0,0.6); border-radius: 4px; padding: 8px 12px; background: #fff; outline: 0;
}
.field input:focus, .field textarea:focus, .field select:focus { box-shadow: 0 0 0 1px var(--text); }
.field textarea { min-height: 96px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--blue); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 24px; bottom: 24px; z-index: 200;
  background: #fff; border-radius: 8px; padding: 12px 16px; box-shadow: 0 4px 16px rgba(0,0,0,0.25), 0 0 0 1px rgba(0,0,0,0.08);
  display: flex; align-items: center; gap: 8px; font-weight: 600;
  transform: translateY(150%); transition: transform 0.25s ease; max-width: 400px;
}
.toast.show { transform: translateY(0); }
.toast::before { content: ""; width: 4px; align-self: stretch; background: var(--green); border-radius: 2px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .layout-feed { grid-template-columns: 225px minmax(0, 1fr); }
  .layout-feed > .col-right { display: none; }
  .nav-item { min-width: 64px; }
}
@media (max-width: 860px) {
  .layout-profile { grid-template-columns: minmax(0, 1fr); }
  .layout-profile > .col-right { display: none; }
  .nav-search { width: 180px; }
  .nav-item span.label { display: none; }
  .nav-premium, .nav-divider { display: none; }
}
@media (max-width: 720px) {
  .page { padding: 12px 0 64px; }
  .nav-inner { padding: 0 12px; }
  .layout-feed, .layout-wide { grid-template-columns: minmax(0, 1fr); }
  .layout-feed > .col-left, .layout-wide > .col-left { display: none; }
  .card { border-radius: 0; }
  .nav-search { width: 40px; padding: 0 12px; }
  .nav-search input { display: none; }
  .nav-item { min-width: 44px; }
  .field-row { grid-template-columns: 1fr; }
  .analytics { grid-template-columns: 1fr; }
  .modal-backdrop { padding: 0; }
  .modal { border-radius: 0; min-height: 100%; }
}

/* ---------- Join / sign in ---------- */
.nav-auth { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.btn-ghost { color: var(--muted); }
.btn-ghost:hover { background: rgba(0,0,0,0.08); color: var(--text); text-decoration: none; }
.nav-auth .btn:hover { text-decoration: none; }
.btn-lg { width: 100%; padding: 12px 24px; font-size: 16px; border-radius: 28px; }
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 24px 0 48px; }
.auth h1 { font-size: 44px; line-height: 1.15; font-weight: 300; color: #8f5849; margin: 0 0 12px; letter-spacing: -0.5px; }
.auth-sub { font-size: 18px; color: var(--muted); margin: 0 0 24px; }
.auth-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--card-shadow); padding: 24px; display: flex; flex-direction: column; gap: 14px; max-width: 420px; }
.auth-card .hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.auth-card .fine { font-size: 12px; color: var(--muted); margin: 0; text-align: center; }
.auth-error { color: #cb112d; font-weight: 600; font-size: 14px; min-height: 0; }
.auth-error:empty { display: none; }
.auth-switch { text-align: center; font-size: 15px; }
.auth-art { border-radius: 12px; overflow: hidden; height: 420px; box-shadow: var(--card-shadow); }

/* ---------- Profile extras ---------- */
.mp-link { display: flex; flex-direction: column; gap: 4px; max-width: 520px; }
.mp-row { display: flex; gap: 8px; margin-top: 8px; }
.mp-row input { flex: 1; min-width: 0; border: 1px solid rgba(0,0,0,0.6); border-radius: 4px; padding: 6px 10px; background: #fff; }
.mp-error { color: #cb112d; font-size: 13px; margin-top: 6px; }
.open-to { max-width: 520px; }
.bot-tag { font-size: 12px; font-weight: 600; background: #56687a; color: #fff; border-radius: 4px; padding: 1px 6px; }
.exp-item a { color: inherit; }
.exp-item a:hover { color: var(--blue); }
.load-more-posts { padding: 12px; font-weight: 600; color: var(--blue); width: 100%; }
.load-more-posts:hover { background: var(--blue-tint); }
.notif .avatar { width: 48px; height: 48px; font-size: 18px; }

@media (max-width: 860px) {
  .auth { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .auth-art { display: none; }
  .auth h1 { font-size: 32px; }
}

/* ---------- Messaging ---------- */
.msg-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); height: calc(100vh - 52px - 48px); min-height: 440px; }
.msg-list { border-right: 1px solid var(--faint); display: flex; flex-direction: column; min-height: 0; }
.msg-list-head { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px 6px 16px; border-bottom: 1px solid var(--faint); }
.convo-scroll { overflow-y: auto; flex: 1; }
.convo { display: flex; gap: 10px; padding: 12px 16px 12px 13px; align-items: center; border-left: 3px solid transparent; }
.convo:hover { background: rgba(0,0,0,0.04); text-decoration: none; }
.convo.active { background: #edf3f8; border-left-color: var(--green); }
.convo .avatar { width: 48px; height: 48px; font-size: 18px; }
.convo-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.convo-top { display: flex; justify-content: space-between; gap: 8px; }
.convo-top b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.convo-top .time { color: var(--muted); font-size: 12px; flex-shrink: 0; }
.convo-last { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.convo.unread .convo-last { color: var(--text); font-weight: 600; }
.convo-badge { background: var(--blue); color: #fff; border-radius: 10px; font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; padding: 0 5px; display: flex; align-items: center; justify-content: center; }
.msg-thread { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.msg-thread-head { display: flex; gap: 10px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--faint); }
.msg-thread-head .avatar { width: 40px; height: 40px; font-size: 15px; }
.msg-thread-head .name { font-weight: 600; }
.msg-thread-head .headline { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-back { display: none; font-size: 22px; padding: 0 6px; color: var(--muted); }
.msg-back:hover { text-decoration: none; color: var(--text); }
.msg-scroll { flex: 1; overflow-y: auto; padding: 4px 16px 12px; }
.dm { display: flex; gap: 10px; margin-top: 14px; }
.dm.grouped { margin-top: 2px; }
.dm .avatar, .dm-gutter { width: 32px; height: 32px; font-size: 12px; flex-shrink: 0; }
.dm-main { min-width: 0; flex: 1; }
.dm-head { display: flex; gap: 8px; align-items: baseline; }
.dm-head b { font-weight: 600; }
.dm-head .time { color: var(--muted); font-size: 12px; }
.dm-body { white-space: pre-wrap; word-wrap: break-word; }
.msg-compose { border-top: 1px solid var(--faint); padding: 10px 16px 12px; display: flex; flex-direction: column; gap: 8px; }
.msg-compose .chips { margin-top: 0; }
.msg-compose textarea { width: 100%; resize: none; border: 0; background: #f4f2ee; border-radius: 8px; padding: 10px 12px; outline: 0; }
.msg-compose textarea:focus { box-shadow: 0 0 0 1px var(--text); }
.msg-compose-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.thread-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 32px; }
.thread-empty .avatar.big { width: 72px; height: 72px; font-size: 26px; margin-bottom: 4px; }
.picker-search { width: 100%; border: 1px solid rgba(0,0,0,0.6); border-radius: 4px; padding: 8px 12px; outline: 0; }
.picker-search:focus { box-shadow: 0 0 0 1px var(--text); }
.picker { max-height: 50vh; overflow-y: auto; display: flex; flex-direction: column; }
.picker-row { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 6px; }
.picker-row:hover { background: rgba(0,0,0,0.04); text-decoration: none; }
.picker-row .avatar { width: 40px; height: 40px; font-size: 15px; }
.picker-row b { display: block; font-weight: 600; }
.picker-row .headline { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 720px) {
  .msg-layout { grid-template-columns: minmax(0, 1fr); height: calc(100vh - 52px - 12px); }
  .msg-layout.has-thread .msg-list { display: none; }
  .msg-layout:not(.has-thread) .msg-thread { display: none; }
  .msg-back { display: block; }
  .msg-compose-foot .muted { display: none; }
}

/* ---------- Email settings ---------- */
.form-section { font-size: 16px; font-weight: 600; margin: 8px 0 -4px; padding-top: 12px; border-top: 1px solid var(--faint); }
.email-tease { display: block; width: 100%; text-align: left; }
.email-tease:hover { background: rgba(0,0,0,0.04); }
