/* 集思广益 Next UI — design tokens mirror the supplied reference app. */
:root,
[data-theme="light"] {
  color-scheme: light;
  --ink: #1e1c18;
  --muted: #777168;
  --paper: #fffdf8;
  --canvas: #f2eee5;
  --orange: #ff6734;
  --orange-deep: #e94b1b;
  --orange-soft: #ffe2d5;
  --green: #295846;
  --green-soft: #dfece4;
  --line: rgba(30, 28, 24, .11);
  --sidebar-bg: #1e1c18;
  --topbar-bg: rgba(242, 238, 229, .92);
  --surface-strong: #fff;
  --surface-soft: #f7f2e9;
  --surface-warm: #fff7f2;
  --surface-warm-alt: #fff2eb;
  --surface-unread: #fff8f3;
  --card-stroke: rgba(255,255,255,.84);
  --body-copy: #3d3933;
  --field-label: #6a635a;
  --chip-ink: #9b3c1c;
  --active-control-bg: #1e1c18;
  --active-control-ink: #fff;
  --hover-surface: #faf5ed;
  --texture-dot: rgba(41, 88, 70, .055);
  --next-sidebar: 248px;
  --next-safe-top: max(env(safe-area-inset-top, 0px), var(--viewport-offset-top, 0px));
  --next-safe-bottom: max(env(safe-area-inset-bottom, 0px), var(--viewport-obscured-bottom, 0px));
  --primary: #ff6734;
  --primary-solid: #ff6734;
  --accent: #ff6734;
  --bg: #f2eee5;
  --card: #fffdf8;
  --text: #1e1c18;
  --border: rgba(30, 28, 24, .11);
  --danger: #b74424;
  --danger-solid: #b74424;
  --success: #295846;
  --radius: 18px;
  --shadow: 0 16px 42px rgba(38, 31, 22, .075);
}

[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f2efe8;
  --muted: #aaa49a;
  --paper: #1b1a18;
  --canvas: #11110f;
  --orange: #ff7044;
  --orange-deep: #ff9875;
  --orange-soft: #3b251d;
  --green: #4f8f74;
  --green-soft: #20382f;
  --line: rgba(255, 255, 255, .12);
  --sidebar-bg: #090908;
  --topbar-bg: rgba(17, 17, 15, .92);
  --surface-strong: #24221f;
  --surface-soft: #25231f;
  --surface-warm: #2c201b;
  --surface-warm-alt: #302019;
  --surface-unread: #2b201b;
  --card-stroke: rgba(255,255,255,.075);
  --body-copy: #d8d2c8;
  --field-label: #c1bbb1;
  --chip-ink: #ffad8f;
  --active-control-bg: #eee9df;
  --active-control-ink: #171613;
  --hover-surface: #25231f;
  --texture-dot: rgba(255, 255, 255, .035);
  --primary: #ff7044;
  --primary-solid: #e85a31;
  --accent: #ff7044;
  --bg: #11110f;
  --card: #1b1a18;
  --text: #f2efe8;
  --border: rgba(255, 255, 255, .12);
  --danger: #ff9278;
  --danger-solid: #c9573b;
  --success: #78b69b;
  --shadow: 0 18px 46px rgba(0, 0, 0, .30);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --ink: #f2efe8;
    --muted: #aaa49a;
    --paper: #1b1a18;
    --canvas: #11110f;
    --orange: #ff7044;
    --orange-deep: #ff9875;
    --orange-soft: #3b251d;
    --green: #4f8f74;
    --green-soft: #20382f;
    --line: rgba(255, 255, 255, .12);
    --sidebar-bg: #090908;
    --topbar-bg: rgba(17, 17, 15, .92);
    --surface-strong: #24221f;
    --surface-soft: #25231f;
    --surface-warm: #2c201b;
    --surface-warm-alt: #302019;
    --surface-unread: #2b201b;
    --card-stroke: rgba(255,255,255,.075);
    --body-copy: #d8d2c8;
    --field-label: #c1bbb1;
    --chip-ink: #ffad8f;
    --active-control-bg: #eee9df;
    --active-control-ink: #171613;
    --hover-surface: #25231f;
    --texture-dot: rgba(255, 255, 255, .035);
    --primary: #ff7044;
    --primary-solid: #e85a31;
    --accent: #ff7044;
    --bg: #11110f;
    --card: #1b1a18;
    --text: #f2efe8;
    --border: rgba(255, 255, 255, .12);
    --danger: #ff9278;
    --danger-solid: #c9573b;
    --success: #78b69b;
    --shadow: 0 18px 46px rgba(0, 0, 0, .30);
  }
}

html { touch-action: pan-y; }
body.next-shell-ready {
  display: flex;
  min-width: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.next-shell-ready button,
body.next-shell-ready input,
body.next-shell-ready textarea,
body.next-shell-ready select { font-family: inherit; }
body.next-shell-ready :where(a, button, input, textarea, select):focus-visible {
  outline: 3px solid rgba(255, 103, 52, .30);
  outline-offset: 2px;
}

/* Reference sidebar */
#next-sidebar {
  width: var(--next-sidebar);
  height: 100vh;
  height: 100dvh;
  height: var(--app-height, 100dvh);
  padding: 24px 16px 16px;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 130;
  display: grid;
  grid-template-rows: auto minmax(0,1fr) auto auto;
  color: #fff;
  background: var(--sidebar-bg);
  overflow: hidden;
  touch-action: pan-y;
}
.next-brand { padding: 0 7px; display: flex; align-items: center; gap: 10px; }
.next-brand > span {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 12px;
  color: #fff;
  background: var(--orange);
  font-family: serif;
  font-size: 17px;
  font-weight: 850;
  box-shadow: 0 8px 18px rgba(255, 103, 52, .22);
}
.next-brand b { font-size: 17px; letter-spacing: -.02em; }
.next-brand small { display: block; margin-top: 1px; color: rgba(255,255,255,.31); font-size: 7px; letter-spacing: .14em; }
#next-sidebar-close { display: none; }
.next-sidebar-scroll { min-height: 0; margin: 0 -4px; padding: 0 4px 18px; overflow-x: hidden; overflow-y: scroll; overscroll-behavior: contain; touch-action: pan-y; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.14) transparent; }
.next-sidebar-scroll::-webkit-scrollbar { width: 4px; }
.next-sidebar-scroll::-webkit-scrollbar-thumb { border-radius: 999px; background: rgba(255,255,255,.14); }
.next-workspace { margin: 26px 5px 0; padding: 14px; position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.09); border-radius: 15px; background: linear-gradient(135deg,rgba(255,103,52,.12),rgba(255,255,255,.035) 52%,rgba(41,88,70,.13)); }
.next-workspace::after { position: absolute; right: -13px; bottom: -20px; width: 70px; height: 70px; content: ''; border: 1px solid rgba(255,146,112,.15); border-radius: 50%; pointer-events: none; }
.next-workspace > small { display: block; margin-bottom: 8px; color: rgba(255,255,255,.34); font-size: 8px; font-weight: 760; letter-spacing: .08em; }
.next-workspace .home-cohort-switcher { width: 100%; max-width: none; margin: 0; }
.next-workspace .home-cohort-switcher select {
  height: 38px;
  padding: 0 30px 0 10px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background-color: rgba(255,255,255,.075);
  font-size: 10px;
}
.next-workspace .home-cohort-switcher svg { right: 8px; color: rgba(255,255,255,.48); }
.next-nav-section { margin-top: 20px; }
.next-nav-label { margin: 0 18px 7px; color: rgba(255,255,255,.27); font-size: 8px; font-weight: 800; letter-spacing: .11em; }
.next-nav-section nav { display: grid; gap: 4px; }
.next-sidebar-admin[hidden] { display: none !important; }
.next-nav-item {
  width: 100%;
  min-height: 44px;
  padding: 0 13px;
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  border: 0;
  border-radius: 13px;
  color: rgba(255,255,255,.48);
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: .2s;
}
.next-nav-item:hover { color: #fff; background: rgba(255,255,255,.06); }
.next-nav-item.active { color: #fff; background: rgba(255,255,255,.10); }
.next-nav-item > span { width: 18px; height: 18px; color: #ff9270; }
.next-nav-item svg { width: 18px; height: 18px; }
.next-nav-item b { font-size: 11px; }
.next-nav-item small {
  min-width: 22px;
  padding: 4px 6px;
  border-radius: 999px;
  color: #ffc6b4;
  background: rgba(255,103,52,.17);
  font-size: 8px;
  text-align: center;
}
.next-daily-quote {
  margin: 8px 4px 11px;
  padding: 12px 13px 11px;
  position: relative;
  flex: none;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 14px;
  color: rgba(255,255,255,.75);
  background: linear-gradient(145deg,rgba(255,103,52,.11),rgba(255,255,255,.04) 58%,rgba(41,88,70,.16));
}
.next-daily-quote::after { width: 42px; height: 42px; position: absolute; right: -14px; bottom: -18px; content: ''; border: 1px solid rgba(255,255,255,.06); border-radius: 50%; }
.next-daily-quote-head { display: flex; align-items: center; gap: 6px; color: #ff9a76; }
.next-daily-quote-head > span,.next-daily-quote-head svg { width: 16px; height: 16px; }
.next-daily-quote-head svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.next-daily-quote-head small { font-size: 7px; font-weight: 850; letter-spacing: .13em; }
.next-daily-quote blockquote { margin: 8px 0 1px; display: -webkit-box; overflow: hidden; color: rgba(255,255,255,.78); font-family: ui-serif,"Songti SC",serif; font-size: 10px; line-height: 1.6; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.next-daily-quote.loading blockquote { opacity: .48; }
.next-account {
  margin-top: 0;
  width: 100%;
  padding: 11px;
  display: grid;
  grid-template-columns: 36px minmax(0,1fr) 18px;
  gap: 9px;
  align-items: center;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: rgba(255,255,255,.055);
  text-align: left;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.next-account-avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; color: #26523f; background: #cfe6d8 center/cover; font-size: 13px; font-weight: 820; }
.next-account > span:nth-child(2) { min-width: 0; }
.next-account b,.next-account small { overflow: hidden; display: block; text-overflow: ellipsis; white-space: nowrap; }
.next-account b { font-size: 10px; }
.next-account small { margin-top: 3px; color: rgba(255,255,255,.30); font-size: 7px; }
.next-account i { color: rgba(255,255,255,.45); font-size: 15px; font-style: normal; transition: transform .18s; }
.next-account[aria-expanded="true"] i { transform: rotate(180deg); }
.next-account-menu {
  position: absolute;
  z-index: 4;
  left: 16px;
  right: 16px;
  bottom: 82px;
  padding: 9px;
  overflow: auto;
  max-height: min(570px,calc(100vh - 110px));
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 17px;
  color: #fff;
  background: #2a2824;
  box-shadow: 0 24px 60px rgba(0,0,0,.42);
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.next-account-menu[hidden] { display: none !important; }
.next-account-menu-title { padding: 8px 10px 5px; color: rgba(255,255,255,.32); font-size: 8px; font-weight: 820; letter-spacing: .10em; }
.next-account-action { width: 100%; min-height: 41px; padding: 0 10px; display: grid; grid-template-columns: 22px 1fr 12px; align-items: center; gap: 8px; border: 0; border-radius: 10px; color: rgba(255,255,255,.72); background: transparent; text-align: left; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.next-account-action:hover { color: #fff; background: rgba(255,255,255,.07); }
.next-account-action > span { width: 16px; height: 16px; color: #ff9a76; }
.next-account-action svg { width: 16px; height: 16px; }
.next-account-action b { font-size: 10px; }
.next-account-action i { color: rgba(255,255,255,.28); font-size: 15px; font-style: normal; }
.next-account-action.danger { color: #ffad94; }
.next-account-menu-divider { height: 1px; margin: 7px 4px; background: rgba(255,255,255,.08); }
#next-sidebar-overlay { display: none; }
#next-sidebar-edge { display: none; }

/* Desktop header and page frame */
body.next-shell-ready > .top-nav {
  min-height: 104px;
  margin-left: var(--next-sidebar);
  padding: 22px clamp(28px, 4vw, 58px);
  position: relative;
  flex: 0 0 auto;
  z-index: 26;
  justify-content: flex-start;
  gap: 14px;
  color: var(--ink);
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--line);
  box-shadow: none;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.next-header-copy { margin-right: auto; }
.next-header-copy small { display: block; color: var(--orange-deep); font-size: 8px; font-weight: 850; letter-spacing: .14em; }
.next-header-copy h1 { margin: 5px 0 0; color: var(--ink); font-size: clamp(23px, 2.3vw, 32px); line-height: 1.05; letter-spacing: -.045em; }
#next-menu-button { display: none; position: relative; }
#next-menu-unread { width: 9px; height: 9px; position: absolute; right: -2px; top: -2px; display: block; border: 2px solid var(--topbar-bg); border-radius: 50%; background: #ed3c32; box-shadow: 0 2px 7px rgba(190,25,20,.30); }
#next-menu-unread[hidden] { display: none !important; }
#next-mobile-cohort { display: none; }
.top-nav #nav-logo { display: none !important; }
.top-nav .nav-actions { display: none; }
.top-nav .back-btn { order: 5; min-height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; color: var(--muted); background: color-mix(in srgb, var(--surface-strong) 72%, transparent); font-size: 11px; }
body.next-shell-ready > #pages-wrap { margin-left: var(--next-sidebar); background: var(--canvas); }
body.next-shell-ready .page {
  padding: 27px clamp(24px, 4vw, 58px) 72px;
  background-color: var(--canvas);
  background-image: radial-gradient(circle at 1px 1px,var(--texture-dot) 1px,transparent 1.1px),url('/static/illustrations/ambient-doodles.svg');
  background-position: 0 0,right 7% bottom 42px;
  background-repeat: repeat,no-repeat;
  background-size: 28px 28px,min(52vw,720px) auto;
}
body.next-shell-ready .container { width: 100%; max-width: 1120px; padding: 0; }
body.next-shell-ready .bottom-nav { display: none !important; }

/* Shared reference cards */
body.next-shell-ready .card,
body.next-shell-ready .auth-card,
body.next-shell-ready .write-form {
  border: 1px solid var(--card-stroke);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
body.next-shell-ready .card { padding: 20px; margin-bottom: 16px; }
body.next-shell-ready .btn { border-radius: 11px; }
body.next-shell-ready .btn-primary,
body.next-shell-ready .btn-accent { color: #fff; background: var(--orange); box-shadow: 0 10px 22px rgba(233,75,27,.18); }
body.next-shell-ready .btn-outline { border: 1px solid var(--line); color: var(--ink); background: var(--surface-strong); }

/* Real feed */
#page-home { padding: 0; background-image: url('/static/illustrations/ambient-doodles.svg'); background-position: right 7% bottom 42px; background-repeat: no-repeat; background-size: min(46vw,620px) auto; }
#page-home .home-scroll { padding: 27px clamp(24px,4vw,58px) 74px; }
#page-home .home-scroll > .container { max-width: 1120px; }
#next-feed-heading { margin: 7px 0 15px; display: flex; align-items: end; justify-content: space-between; gap: 18px; }
#next-feed-heading small { color: var(--orange-deep); font-size: 8px; font-weight: 850; letter-spacing: .12em; }
#next-feed-heading h2 { margin: 4px 0 0; font-size: 22px; letter-spacing: -.035em; }
#next-feed-heading p { color: var(--muted); font-size: 10px; }
#feed-list:not(:has(.landing)) { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; align-items: start; }
#feed-list > .loading,
#feed-list > .empty-state { grid-column: 1 / -1; }
#feed-list .post-card { min-width: 0; height: auto; margin: 0; padding: 20px; align-self: start; border-radius: 19px; transition: transform .18s, box-shadow .18s, border-color .18s; }
#feed-list.next-date-groups:not(:has(.landing)) { display: block; }
.next-day-group + .next-day-group { margin-top: 22px; }
.next-day-grid { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
.next-day-divider {
  margin: 0 2px 11px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
}
.next-day-divider time { font-size: 13px; font-weight: 850; letter-spacing: -.02em; white-space: nowrap; }
.next-day-divider span { color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: .05em; white-space: nowrap; }
.next-day-divider::after { height: 1px; flex: 1; content: ''; background: linear-gradient(90deg,rgba(255,103,52,.32),var(--line)); }
#feed-list .post-card:hover { border-color: rgba(255,103,52,.18); box-shadow: 0 19px 46px rgba(38,31,22,.11); transform: translateY(-2px); }
#feed-list .post-card.reading-return-highlight { animation: next-reading-return 1.1s ease; }
@keyframes next-reading-return {
  0%,100% { box-shadow: var(--shadow); }
  35% { border-color: rgba(255,103,52,.52); box-shadow: 0 0 0 4px rgba(255,103,52,.13), var(--shadow); }
}
.post-card .post-author { font-size: 12px; }
.post-card .post-time { color: var(--muted); font-size: 9px; }
.post-card .post-title { margin: 15px 0 8px; font-size: 18px; line-height: 1.35; letter-spacing: -.025em; }
.post-card .post-excerpt { color: var(--muted); font-size: 12px; line-height: 1.7; }
.post-card .post-footer { margin-top: 15px; padding-top: 12px; border-color: var(--line); }
.post-stat { color: var(--muted); font-size: 10px; }
.post-stat svg { width: 14px; height: 14px; }
.post-like-stat.liked { color: var(--orange-deep); }
.post-cohort-badge { max-width: 44%; border-color: rgba(255,103,52,.16); color: var(--chip-ink); background: var(--surface-warm-alt); font-size: 8px; }
.post-thumb-strip { gap: 6px; margin-top: 13px; }
.post-thumb-strip img { width: 74px; height: 74px; border-radius: 10px; }
.post-card-likers { font-size: 9px; }
#announce-bar { max-width: 1120px; margin: 0 auto; padding: 0 0 9px; }
.announce-inner { min-height: 40px; padding: 7px 12px; border: 1px solid rgba(255,103,52,.13); border-left: 3px solid var(--orange); border-radius: 13px; background: var(--surface-warm); box-shadow: 0 8px 22px rgba(38,31,22,.045); }
.announce-label { color: var(--orange-deep); font-size: 9px; }
.announce-text { font-size: 11px; }
#filter-bar { max-width: 1120px; margin: 0 auto; padding: 0 0 14px; }
.filter-chip { height: 40px; min-height: 40px; padding: 0 12px; box-sizing: border-box; border: 1px solid var(--line); border-radius: 11px; color: var(--muted); background: var(--paper); font-size: 10px; line-height: normal; }
.filter-select { height: 40px; min-height: 40px; }
.filter-chip.active { color: var(--chip-ink); border-color: rgba(255,103,52,.30); background: var(--orange-soft); }
.next-content-tabs { width: fit-content; margin: 0 0 18px; padding: 4px; display: flex; gap: 3px; border: 1px solid var(--line); border-radius: 13px; background: color-mix(in srgb, var(--paper) 72%, transparent); }
.next-content-tabs[hidden] { display: none !important; }
.next-content-tabs button { min-height: 34px; padding: 0 15px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; font-size: 10px; font-weight: 750; }
.next-content-tabs button.active { color: var(--active-control-ink); background: var(--active-control-bg); box-shadow: 0 6px 16px rgba(30,28,24,.16); }
#page-following .next-content-tabs { margin-bottom: 20px; }

/* Landing/auth contains no invented social content */
.landing { max-width: 1040px; margin: 0 auto; padding: 8px 0 40px; }
.landing-hero { padding: 36px; border: 1px solid var(--card-stroke); border-radius: 24px; background: var(--paper); box-shadow: var(--shadow); }
.landing-logo > span,.landing-logo { color: var(--ink); }
.landing-logo strong { color: var(--orange); }
.landing-logo img { box-shadow: 0 8px 20px rgba(255,103,52,.20); }
.landing-features { margin-top: 16px; display: grid; grid-template-columns: repeat(3,1fr); }
.landing-feature { border: 1px solid var(--card-stroke); border-radius: 18px; box-shadow: var(--shadow); }
.landing-feature-icon { background: var(--orange-soft); }
.landing-guide { border: 1px solid var(--card-stroke); border-radius: 18px; box-shadow: var(--shadow); }
.landing-guide-num { background: var(--orange); }
.landing .landing-share-card { margin-top: 18px; padding: 32px 24px 26px; position: relative; isolation: isolate; overflow: hidden; border: 1px solid rgba(255,255,255,.08); border-radius: 24px; background: linear-gradient(145deg,var(--sidebar-bg),#2b261f); box-shadow: 0 24px 60px rgba(38,31,22,.18); }
.landing .landing-share-card::before { width: 230px; height: 230px; position: absolute; z-index: -1; right: -110px; top: -130px; content: ''; border: 1px solid rgba(255,146,112,.16); border-radius: 50%; box-shadow: 0 0 0 34px rgba(255,103,52,.035); }
.landing .landing-share-card::after { width: 150px; height: 150px; position: absolute; z-index: -1; left: -80px; bottom: -100px; content: ''; border-radius: 50%; background: rgba(255,103,52,.08); }
.landing-share-card .share-card-header { margin-bottom: 18px; }
.landing-share-card .share-card-logo { color: #fff; letter-spacing: -.02em; }
.landing-share-card .share-card-logo span { color: #ff8157; }
.landing-share-card .share-card-tagline { color: rgba(255,255,255,.38); letter-spacing: .16em; }
.landing-share-card .share-card-desc { color: rgba(255,255,255,.72); }
.landing-share-card .share-card-qr { margin-bottom: 14px; padding: 9px; border: 7px solid rgba(255,255,255,.12); border-radius: 20px; background: #fff; box-shadow: 0 16px 38px rgba(0,0,0,.24); }
.landing-share-card .share-card-qr img { border-radius: 8px; }
.landing-share-card .share-card-url { color: #ff8157; }
.landing-share-card .share-card-cta { color: rgba(255,255,255,.70); border: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.055); }
.auth-wrap { max-width: 440px; margin: 30px auto; }
.auth-home-back { min-height: 38px; margin: 0 0 12px; padding: 0 14px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: color-mix(in srgb,var(--paper) 78%,transparent); box-shadow: 0 8px 24px rgba(38,31,22,.06); font-size: 11px; font-weight: 750; }
.auth-home-back:hover { color: var(--orange-deep); border-color: rgba(255,103,52,.28); background: var(--surface-warm); }
.auth-home-back svg { width: 15px; height: 15px; }
.auth-logo h1 { color: var(--ink); }
.auth-logo h1 span { color: var(--orange); }
.auth-card { padding: 29px; }
.auth-card h2 { letter-spacing: -.025em; }
.auth-footer a,.auth-forgot a { color: var(--orange-deep); }
.auth-footer a { margin-left: 4px; }

/* Short, task-oriented guides */
.guide-page { max-width: 840px !important; padding-bottom: 32px; }
.guide-page-hero { margin: 18px 0 22px; padding: 22px; display: flex; align-items: flex-start; gap: 14px; overflow: hidden; border: 1px solid rgba(255,103,52,.16); border-radius: 22px; background: linear-gradient(135deg,var(--surface-warm),color-mix(in srgb,var(--paper) 82%,transparent)); box-shadow: var(--shadow); }
.guide-page-hero .btn { width: 38px; height: 38px; padding: 0; display: grid; place-items: center; flex: none; border-radius: 12px; }
.guide-page-hero small { display: block; margin-bottom: 3px; color: var(--orange-deep); font-size: 9px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.guide-page-hero h2 { margin: 0; color: var(--ink); font-size: 23px; letter-spacing: -.035em; }
.guide-page-hero p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.guide-page .me-section-header { margin-top: 20px; }
.guide-page .card { border: 1px solid var(--card-stroke); border-radius: 18px; box-shadow: 0 12px 34px rgba(38,31,22,.07); }
.guide-page .guide-item,.guide-page .guide-step { align-items: center; }
.guide-page .guide-icon,.guide-page .guide-step-num { background: var(--orange-soft); color: var(--orange-deep); }
.guide-page .guide-icon { width: 38px; height: 38px; display: grid; place-items: center; flex: none; border-radius: 12px; font-size: 17px; font-weight: 850; }
.guide-page .guide-title { font-size: 13px; }
.guide-page .guide-desc { margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.55; }

/* Detail: original post, translation and comments are all real API data. */
#page-detail .container { max-width: 900px; }
#page-detail .card:first-child { padding: 28px; }
#page-detail .detail-title { margin: 22px 0 13px; font-size: clamp(25px,3vw,36px); letter-spacing: -.04em; }
#page-detail .detail-body { color: var(--body-copy); font-size: 15px; line-height: 1.9; }
#page-detail .detail-meta { margin: 0; }
.detail-author-name { font-size: 12px; }
.detail-translate-btn { border: 1px solid rgba(255,103,52,.22); color: var(--orange-deep); background: var(--surface-warm-alt); }
#page-detail .detail-actions { margin: 22px -28px 0; padding: 14px 28px 0; border-color: var(--line); }
.action-btn.liked { color: var(--orange-deep); }
.ai-translation-note { margin: 14px 0 0; padding: 10px 12px; border-radius: 11px; color: var(--muted); background: var(--surface-warm-alt); text-align: left; }
.ai-translation-note button { color: var(--orange-deep); }
.comments-section { padding: 24px !important; }
.comments-section h3 { font-size: 18px; }
.comment-item { padding: 14px 0; border-color: var(--line); }
.comment-author { font-size: 12px; }
.comment-time { font-size: 9px; }
.comment-text { font-size: 13px; }
.comment-form,.reply-compose { border-radius: 13px; background: var(--surface-soft); }

/* Writer */
#page-write .container { max-width: 980px; }
#page-write .write-form { padding: 27px; }
#write-page-title { font-size: 26px !important; letter-spacing: -.035em; }
.write-cohort-group { border: 1px solid rgba(255,103,52,.16); border-radius: 14px; background: var(--surface-warm); }
.form-group label { color: var(--field-label); font-size: 9px; letter-spacing: .08em; }
.form-group input,.form-group textarea,.form-group select { border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--surface-strong); }
.form-group input:focus,.form-group textarea:focus,.form-group select:focus { border-color: rgba(255,103,52,.62); box-shadow: 0 0 0 4px rgba(255,103,52,.08); }
.markdown-toolbar { border-color: var(--line); border-radius: 12px 12px 0 0; background: var(--surface-soft); }
.markdown-toolbar + textarea { border-radius: 0 0 12px 12px; }
.attach-btn { border-color: rgba(255,103,52,.35); color: var(--orange-deep); background: var(--surface-warm); }
.write-actions { position: static; margin: 28px 0 0; padding: 16px 0 max(4px,var(--next-safe-bottom)); border-top: 1px solid var(--line); background: transparent; }

/* Profile, notifications and management pages */
#page-me .container,#page-drafts .container,#page-settings .container,#page-following .container,#page-notifications .container,#page-messages .container,#page-user-profile > div { max-width: 980px; margin-inline: auto; }
#page-personality .personality-wrap,#page-biz-personality .personality-wrap { max-width: 720px; margin-inline: auto; }
.up-hero { margin-top: 0; padding: 22px 0 8px; position: relative; top: auto; z-index: auto; border: 0; background: transparent; }
.up-hero .container { max-width: 760px; }
.up-hero-inner { padding: 26px clamp(20px,5vw,42px); position: relative; display: grid; justify-items: center; gap: 13px; overflow: hidden; border: 1px solid var(--card-stroke); border-radius: 24px; background: color-mix(in srgb,var(--paper) 74%,transparent); box-shadow: 0 20px 54px rgba(38,31,22,.10); text-align: center; backdrop-filter: blur(20px) saturate(1.12); -webkit-backdrop-filter: blur(20px) saturate(1.12); }
.up-hero-inner::before { width: 190px; height: 190px; position: absolute; right: -90px; top: -110px; content: ''; border-radius: 50%; background: color-mix(in srgb,var(--orange) 8%,transparent); pointer-events: none; }
.up-avatar { width: 76px; height: 76px; position: relative; font-size: 28px; border: 4px solid color-mix(in srgb,var(--paper) 82%,transparent); box-shadow: 0 10px 28px rgba(38,31,22,.14); }
.up-hero-info { width: 100%; display: grid; justify-items: center; gap: 12px; }
.up-name-row { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }
.up-name { font-size: 21px; }
.up-stats { width: min(100%,390px); display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border: 1px solid var(--line); border-radius: 15px; background: color-mix(in srgb,var(--surface-strong) 70%,transparent); }
.up-stats > span { min-width: 0; padding: 10px 6px; display: grid; gap: 2px; }
.up-stats > span + span { border-left: 1px solid var(--line); }
.up-stats strong { color: var(--orange-deep); font-size: 17px; }
.up-stats small { color: var(--muted); font-size: 9px; line-height: 1.25; }
.up-profile-actions { flex-direction: row; justify-content: center; gap: 9px; }
.up-profile-actions .up-follow-btn,.up-message-btn { min-width: 92px; min-height: 38px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; }
.up-self-note { color: var(--muted); font-size: 11px; line-height: 1.4; text-align: center; }
.me-profile-card { padding: 22px !important; }
.me-stats-card { padding: 0 !important; }
.me-stat-num { color: var(--orange-deep); }
.me-settings-card { overflow: hidden; }
.me-settings-row:hover { background: var(--hover-surface); }
.cohort-chip.active { color: var(--chip-ink); border-color: rgba(255,103,52,.30); background: var(--orange-soft); }
.profile-cohort-panel { padding: 14px !important; position: relative; overflow: hidden; }
.profile-cohort-panel::before { width: 210px; height: 210px; position: absolute; right: -100px; top: -120px; content: ''; border-radius: 50%; background: color-mix(in srgb,var(--orange) 8%,transparent); pointer-events: none; }
.profile-cohort-grid { position: relative; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.profile-cohort-card {
  min-width: 0;
  min-height: 82px;
  padding: 12px;
  display: grid;
  grid-template-columns: 40px minmax(0,1fr);
  grid-template-rows: auto auto;
  column-gap: 11px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--ink);
  background: linear-gradient(140deg,var(--surface-strong),color-mix(in srgb,var(--green-soft) 30%,var(--surface-strong)));
  cursor: pointer;
  text-align: left;
  transition: transform .18s,border-color .18s,box-shadow .18s;
}
.profile-cohort-card:hover { border-color: color-mix(in srgb,var(--orange) 35%,var(--line)); box-shadow: 0 12px 28px rgba(38,31,22,.08); transform: translateY(-2px); }
.profile-cohort-card.active { border-color: color-mix(in srgb,var(--orange) 38%,var(--line)); background: linear-gradient(140deg,color-mix(in srgb,var(--orange-soft) 62%,var(--surface-strong)),color-mix(in srgb,var(--green-soft) 45%,var(--surface-strong))); box-shadow: inset 3px 0 0 var(--orange),0 12px 30px rgba(233,75,27,.08); }
.profile-cohort-icon { width: 40px; height: 40px; grid-row: 1 / 3; display: grid; place-items: center; border-radius: 13px; color: #fff; background: linear-gradient(145deg,var(--orange),var(--orange-deep)); font-family: ui-serif,"Songti SC",serif; font-size: 14px; font-weight: 850; box-shadow: 0 8px 18px rgba(233,75,27,.17); }
.profile-cohort-all .profile-cohort-icon { background: linear-gradient(145deg,var(--green),color-mix(in srgb,var(--green) 68%,#111)); box-shadow: 0 8px 18px color-mix(in srgb,var(--green) 23%,transparent); }
.profile-cohort-copy { min-width: 0; align-self: end; }
.profile-cohort-copy b,.profile-cohort-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-cohort-copy b { font-size: 11px; }
.profile-cohort-copy small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.profile-cohort-state { align-self: start; color: var(--orange-deep); font-size: 8px; font-weight: 760; }
.profile-cohort-join { border-style: dashed; background: color-mix(in srgb,var(--surface-warm) 72%,var(--surface-strong)); }
.profile-cohort-join .profile-cohort-icon { color: var(--orange-deep); background: var(--orange-soft); box-shadow: none; font-family: inherit; font-size: 22px; }
.role-badge-super,.role-badge-cohort { color: #fff; background: var(--green); }
.email-verification-card { border-color: rgba(255,103,52,.18) !important; background: var(--surface-warm) !important; }
.email-verification-icon { color: var(--orange-deep); background: var(--orange-soft); }
.notification-item,.conversation-item,.following-item,.admin-user-card,.admin-cohort-card { border: 1px solid var(--card-stroke); box-shadow: var(--shadow); }
.notification-item.unread { border-color: rgba(255,103,52,.18); background: var(--surface-unread); }
.message-partner-search { border-color: var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.message-privacy-toggle input { accent-color: var(--orange); }
.chat-shell { max-width: 980px; margin: auto; overflow: hidden; border: 1px solid var(--card-stroke); border-radius: 20px; background: var(--paper); box-shadow: var(--shadow); }
.chat-message-row.mine .chat-bubble { background: var(--orange); }
.chat-compose { border-color: var(--line); background: var(--paper); }

/* Personal space: profile, owned content and settings are separate pages. */
.next-profile-intro { margin: 2px 0 19px; }
.next-profile-intro small { color: var(--orange-deep); font-size: 8px; font-weight: 850; letter-spacing: .13em; }
.next-profile-intro h2 { margin: 5px 0 4px; font-size: 24px; letter-spacing: -.035em; }
.next-profile-intro p { margin: 0; color: var(--muted); font-size: 11px; }
#next-drafts-content #profile-drafts-section { margin-top: 0; }
#next-settings-content > #app-version-label { padding-top: 18px !important; }

/* Modals and sheets */
.edit-sheet,.share-card-modal { border-color: var(--card-stroke); background: var(--paper); box-shadow: 0 24px 80px rgba(20,17,13,.28); }
#cohort-invite-modal .share-card {
  position: relative;
  border: 1px solid color-mix(in srgb,var(--orange) 24%,var(--line));
  color: var(--ink);
  background: linear-gradient(155deg,var(--paper) 0%,var(--surface-warm) 58%,color-mix(in srgb,var(--green-soft) 72%,var(--paper)) 100%);
  box-shadow: 0 24px 70px rgba(38,31,22,.20);
}
#cohort-invite-modal .share-card::before { width: 150px; height: 150px; position: absolute; right: -78px; top: -76px; content: ''; border: 1px solid color-mix(in srgb,var(--orange) 16%,transparent); border-radius: 50%; pointer-events: none; }
#cohort-invite-modal .share-card-logo { color: var(--ink); }
#cohort-invite-modal .share-card-logo span { color: var(--orange-deep); }
#cohort-invite-modal .share-card-tagline { color: var(--muted); }
#cohort-invite-modal .cohort-invite-name { color: var(--ink); }
#cohort-invite-modal .share-card-qr { border: 1px solid color-mix(in srgb,var(--orange) 22%,var(--line)); background: #fff; box-shadow: 0 12px 32px rgba(38,31,22,.12); }
#cohort-invite-modal .share-card-url { color: var(--orange-deep); }
#cohort-invite-modal .cohort-invite-code-section { border: 1px solid color-mix(in srgb,var(--orange) 18%,var(--line)); background: color-mix(in srgb,var(--orange-soft) 52%,var(--surface-strong)); }
#cohort-invite-modal .cohort-invite-code-label { color: var(--muted); }
#cohort-invite-modal .cohort-invite-code-value { color: var(--orange-deep); }
#cohort-invite-modal .share-card-cta { color: var(--body-copy); background: color-mix(in srgb,var(--green-soft) 55%,var(--surface-strong)); }
.sheet-mask { background: rgba(10,9,8,.46); backdrop-filter: blur(3px); }
#toast { background: var(--ink); }
#back-to-top { right: 28px; bottom: 88px; color: #fff; background: var(--green); }

.detail-reading-cue { display: none; }

/* Floating write action, matching the reference launcher. */
#next-floating-write {
  position: fixed;
  z-index: 115;
  right: 24px;
  bottom: 24px;
  min-height: 52px;
  padding: 0 18px 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--orange);
  box-shadow: 0 12px 34px rgba(173,55,20,.28);
  transition: transform .2s, background .2s, box-shadow .2s;
}
#next-floating-write:hover { transform: translateY(-3px) scale(1.02); background: #f3532c; box-shadow: 0 16px 38px rgba(173,55,20,.34); }
#next-floating-write span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.14); font-size: 25px; font-weight: 300; }
#next-floating-write b { font-size: 11px; }
#next-floating-write[hidden] { display: none !important; }

/* Auth pages intentionally hide the application shell. */
body.next-auth-page #next-sidebar,
body.next-auth-page #next-sidebar-overlay,
body.next-auth-page #next-sidebar-edge,
body.next-public-page #next-sidebar,
body.next-public-page #next-sidebar-overlay,
body.next-public-page #next-sidebar-edge,
body.next-public-page > .top-nav,
body.next-auth-page > .top-nav { display: none !important; }
body.next-auth-page > #pages-wrap,
body.next-public-page > #pages-wrap { margin-left: 0; }
body.next-auth-page .page { padding-top: 20px; }
body.next-public-page #page-home { padding-top: max(18px,var(--next-safe-top)); }
body.next-public-page #next-feed-heading,
body.next-public-page #pull-indicator,
body.next-public-page #filter-bar,
body.next-public-page #announce-bar,
body.next-public-page #back-to-top,
body.next-public-page .next-content-tabs { display: none !important; }

@media (min-width: 1400px) {
  :root { --next-sidebar: clamp(260px,14vw,286px); }
  body.next-shell-ready .container,#page-home .home-scroll > .container,#announce-bar,#filter-bar { max-width: 1260px; }
  #feed-list:not(:has(.landing)) { grid-template-columns: repeat(3,minmax(0,1fr)); }
  #feed-list.next-date-groups:not(:has(.landing)) { display: block; }
}

@media (min-width: 901px) {
  /* Each day owns an independent masonry grid, so notes from adjacent dates
     never interleave even when their card heights are very different. */
  .next-day-group + .next-day-group { margin-top: 28px; }
  .next-day-divider { margin: 0 0 13px; gap: 10px; }
  .next-day-divider time { font-size: 14px; font-weight: 850; letter-spacing: -.02em; }
  .next-day-grid {
    --next-masonry-gap: 16px;
    grid-template-columns: repeat(2,minmax(0,1fr));
    grid-auto-flow: row dense;
    grid-auto-rows: 1px;
    column-gap: 16px;
    row-gap: 0;
  }
  .next-day-grid > .post-card { align-self: start; }
}

@media (min-width: 1400px) {
  .next-day-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 900px) {
  #feed-list:not(:has(.landing)) { grid-template-columns: 1fr; }
  .landing-features { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  :root {
    --next-sidebar: 272px;
    --next-fab-size: 54px;
    --next-fab-gap: 12px;
    --next-fab-bottom: calc(18px + var(--next-safe-bottom));
  }
  body.next-shell-ready { display: flex; }
  #next-sidebar { width: var(--next-sidebar); padding-top: calc(22px + var(--next-safe-top)); padding-bottom: calc(16px + var(--next-safe-bottom)); transform: translateX(-100%); transition: transform .22s ease; }
  body.next-sidebar-dragging #next-sidebar { transition: none; }
  body.next-sidebar-open #next-sidebar { transform: translateX(0); }
  #next-sidebar-close { width: 31px; height: 31px; margin-left: auto; display: grid; place-items: center; border: 0; border-radius: 9px; color: #fff; background: rgba(255,255,255,.07); font-size: 18px; }
  #next-sidebar-overlay { position: fixed; z-index: 129; inset: 0; width: 100%; height: 100dvh; height: var(--app-height, 100dvh); border: 0; background: rgba(10,9,8,.46); backdrop-filter: blur(3px); transition: opacity .18s; }
  body.next-sidebar-open #next-sidebar-overlay { display: block; }
  #next-sidebar-edge { position: fixed; z-index: 128; inset: calc(72px + var(--next-safe-top)) auto 0 0; width: 24px; display: block; touch-action: pan-y; }
  body.next-sidebar-open #next-sidebar-edge { display: none; }
  .next-workspace { margin-top: 22px; }
  .next-nav-section { margin-top: 20px; }
  .next-nav-item { min-height: 48px; }
  .next-account-menu { max-height: min(530px,calc(var(--app-height, 100dvh) - 116px - var(--next-safe-top))); bottom: calc(82px + var(--next-safe-bottom)); }
  .next-account-action { min-height: 48px; }
  body.next-shell-ready > .top-nav {
    min-height: calc(72px + var(--next-safe-top));
    margin-left: 0;
    padding: calc(11px + var(--next-safe-top)) 15px 11px;
    position: relative;
    top: auto;
    flex: 0 0 auto;
    gap: 10px;
    border-bottom: 1px solid var(--line);
    background: var(--topbar-bg);
    box-shadow: 0 8px 22px rgba(38,31,22,.07);
  }
  #next-menu-button { width: 39px; height: 39px; padding: 10px; order: 0; display: grid; place-content: center; gap: 4px; flex: none; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: var(--surface-strong); }
  #next-menu-button .next-menu-line { width: 16px; height: 1.5px; display: block; background: currentColor; }
  .next-header-copy { min-width: 0; order: 2; }
  .next-header-copy small { font-size: 7px; }
  .next-header-copy h1 { max-width: 126px; overflow: hidden; font-size: 19px; text-overflow: ellipsis; white-space: nowrap; }
  #next-mobile-cohort { max-width: min(43vw,176px); min-height: 36px; margin-left: auto; padding: 0 10px 0 12px; order: 3; display: flex; align-items: center; gap: 6px; border: 1px solid rgba(255,103,52,.18); border-radius: 11px; color: var(--chip-ink); background: var(--surface-unread); }
  #next-mobile-cohort[hidden] { display: none !important; }
  body:not([data-next-page="home"]) #next-mobile-cohort { display: none; }
  #next-mobile-cohort span { min-width: 0; overflow: hidden; font-size: 9px; font-weight: 720; text-overflow: ellipsis; white-space: nowrap; }
  #next-mobile-cohort i { color: var(--orange-deep); font-size: 13px; font-style: normal; }
  .top-nav .back-btn { width: 37px; min-width: 37px; height: 37px; padding: 0; order: 1; justify-content: center; font-size: 0; }
  .top-nav .back-btn svg { width: 18px; }
  body.next-shell-ready > #pages-wrap { margin-left: 0; }
  body.next-shell-ready .page { padding: 18px 15px calc(110px + var(--next-safe-bottom)); }
  #page-home .home-scroll { padding: 18px 15px calc(136px + var(--next-safe-bottom)); }
  #next-feed-heading { margin-top: 3px; }
  #next-feed-heading h2 { font-size: 18px; }
  #next-feed-heading p { max-width: 42%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #feed-list .post-card { padding: 17px; border-radius: 17px; }
  .post-card .post-title { font-size: 17px; }
  .post-card .post-excerpt { font-size: 13px; }
  #announce-bar,#filter-bar { padding-left: 0; padding-right: 0; }
  #page-detail .card:first-child { padding: 20px; }
  #page-detail .detail-title { font-size: 25px; }
  #page-detail .detail-actions { margin-left: -20px; margin-right: -20px; padding-left: 20px; padding-right: 20px; }
  #page-detail { overscroll-behavior-y: contain; }
  .detail-reading-cue {
    position: fixed;
    z-index: 114;
    left: 50%;
    min-height: 38px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    gap: 7px;
    border: 1px solid rgba(30,28,24,.08);
    border-radius: 999px;
    color: #fff;
    background: rgba(30,28,24,.86);
    box-shadow: 0 10px 28px rgba(30,28,24,.18);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -8px) scale(.96);
    transition: opacity .14s, transform .14s, background .14s;
  }
  .detail-reading-cue-top { top: calc(78px + var(--next-safe-top)); }
  .detail-reading-cue-bottom { bottom: calc(18px + var(--next-safe-bottom)); transform: translate(-50%, 8px) scale(.96); }
  .detail-reading-cue.visible { opacity: 1; transform: translate(-50%, 0) scale(1); }
  .detail-reading-cue.ready { background: var(--green); }
  .detail-reading-cue.loading { background: var(--orange-deep); }
  .detail-reading-cue span { font-size: 18px; line-height: 1; }
  .detail-reading-cue b { font-size: 10px; white-space: nowrap; }
  #page-write .write-form { padding: 19px; }
  .write-actions { position: static; margin-top: 24px; padding-bottom: max(4px,var(--next-safe-bottom)); }
  .up-hero { padding-top: 4px; }
  .up-hero-inner { padding: 22px 16px; border-radius: 20px; }
  .up-avatar { width: 70px; height: 70px; }
  .up-stats { width: 100%; }
  .up-stats > span { padding: 9px 4px; }
  body.next-shell-ready #page-chat { padding: 12px 12px calc(12px + var(--next-safe-bottom)); }
  .chat-shell { border-radius: 17px; }
  #next-floating-write { width: var(--next-fab-size); height: var(--next-fab-size); min-height: var(--next-fab-size); right: 18px; bottom: var(--next-fab-bottom); padding: 0; justify-content: center; }
  #next-floating-write span { width: auto; height: auto; background: transparent; font-size: 30px; }
  #next-floating-write b { display: none; }
  #back-to-top { width: var(--next-fab-size); height: var(--next-fab-size); right: 18px; bottom: calc(var(--next-fab-bottom) + var(--next-fab-size) + var(--next-fab-gap)); }
  #back-to-top svg { width: 22px; height: 22px; }
  .landing-hero { padding: 26px 16px; }
  .auth-wrap { margin: 18px auto; padding: 0; }
  .auth-card { padding: 24px 20px; }
  .next-content-tabs { width: 100%; margin-bottom: 15px; }
  .next-content-tabs button { flex: 1; }
  .next-profile-intro h2 { font-size: 21px; }
  .profile-cohort-grid { grid-template-columns: 1fr; }
}

@media (max-height: 690px) {
  .next-daily-quote { padding-top: 9px; padding-bottom: 8px; }
  .next-daily-quote blockquote { margin: 5px 0; -webkit-line-clamp: 2; }
}

@media (max-width: 420px) {
  .next-header-copy h1 { max-width: 104px; }
  #next-mobile-cohort { max-width: 42vw; }
  #next-feed-heading p { display: none; }
  .post-card .post-footer { gap: 13px; }
  .detail-translate-btn { padding: 7px 9px; }
}
