/* Flipped styles - generated, do not edit directly */
/* ============================================================
   校圈 · 移动端高保真原型
   Design tokens + layout + components
   ============================================================ */

:root {
  --blue: #2f6bff;
  --blue-deep: #1f4fd8;
  --blue-soft: #edf2ff;
  --ink: #101828;
  --ink-2: #344054;
  --muted: #7b8498;
  --muted-2: #98a2b3;
  --line: #edf0f5;
  --bg: #f3f5f9;
  --card: #ffffff;
  --red: #ff4d67;
  --green: #12b76a;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-card: 0 1px 2px rgba(16, 24, 40, 0.03), 0 10px 28px rgba(16, 24, 40, 0.05);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro SC", "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: #e6eaf1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
}

input,
textarea {
  border: 0;
  outline: none;
  background: none;
}

p,
h1,
h2,
h3,
h4 {
  margin: 0;
}

a {
  color: inherit;
}

::selection {
  background: rgba(47, 107, 255, 0.18);
}

:focus-visible {
  outline: 2px solid rgba(47, 107, 255, 0.5);
  outline-offset: 2px;
}

/* ---------- app frame ---------- */

#app {
  position: relative;
  width: 100%;
  max-width: 440px;
  height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
  overflow: hidden;
  isolation: isolate;
}

#screens {
  position: absolute;
  inset: 0;
}

@media (min-width: 760px) and (min-height: 720px) {
  body {
    display: flex;
    align-items: center;
    justify-content: center;
    background:
      radial-gradient(1000px 700px at 18% 0%, #eef3ff 0%, rgba(238, 243, 255, 0) 60%),
      radial-gradient(900px 600px at 90% 100%, #e7f6f0 0%, rgba(231, 246, 240, 0) 55%),
      #e3e8ef;
  }

  #app {
    height: min(900px, 94vh);
    border-radius: 40px;
    box-shadow:
      0 0 0 9px #171d28,
      0 0 0 11px #3b4352,
      0 40px 90px rgba(16, 24, 40, 0.35);
  }
}

/* ---------- screens ---------- */

.screen {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  background: var(--bg);
}

.screen.active {
  display: flex;
}

.screen-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 0 14px 28px;
  scrollbar-width: none;
}

.screen-body::-webkit-scrollbar {
  display: none;
}

.has-tabbar .screen-body {
  padding-bottom: calc(94px + var(--safe-bottom));
}

/* ---------- icons ---------- */

.icon {
  width: 22px;
  height: 22px;
  display: block;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- top bars ---------- */

.topbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(12px + var(--safe-top)) 16px 10px;
  background: rgba(243, 245, 249, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  position: relative;
  z-index: 5;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 3px;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.7px;
}

.brand-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  display: inline-block;
  transform: translateY(-1px);
}

.topbar-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(16, 24, 40, 0.05);
  transition: background 0.18s ease, transform 0.18s ease;
}

.icon-btn:active {
  transform: scale(0.94);
  background: #fff;
}

.icon-btn .icon {
  width: 20px;
  height: 20px;
}

.icon-btn.subtle {
  width: 32px;
  height: 32px;
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}

.notif-dot {
  position: absolute;
  top: 7px;
  right: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  border: 1.5px solid #fff;
}

.subbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: calc(10px + var(--safe-top)) 14px 10px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(16, 24, 40, 0.04);
  position: relative;
  z-index: 10;
}

.subbar h1 {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.2px;
}

.subbar .icon-btn {
  width: 36px;
  height: 36px;
  background: transparent;
  border-color: transparent;
}

.subbar .spacer {
  width: 36px;
  height: 36px;
}

.text-btn {
  padding: 8px 4px;
  font-size: 15px;
  color: var(--ink-2);
}

.text-btn.strong {
  color: var(--blue);
  font-weight: 650;
}

/* ---------- feed tabs ---------- */

.feed-tabs {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 2px 18px 0;
  background: rgba(243, 245, 249, 0.92);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 4;
}

.feed-tab {
  position: relative;
  padding: 11px 0 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
}

.feed-tab.active {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.feed-tab.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 24px;
  height: 3px;
  border-radius: 3px;
  background: var(--blue);
  transform: translateX(-50%);
}

.feed-hint {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  color: var(--muted-2);
}

.feed-hint .icon {
  width: 12px;
  height: 12px;
}

/* ---------- chips ---------- */

.topic-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 0 4px;
  scrollbar-width: none;
}

.topic-strip::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: 0 0 auto;
  padding: 7px 11px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.chip.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.chip.ghost {
  background: var(--blue-soft);
  border-color: transparent;
  color: var(--blue);
}

/* ---------- avatars ---------- */

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  user-select: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

button.avatar {
  border: 0;
  padding: 0;
}

.avatar.sm {
  width: 32px;
  height: 32px;
  font-size: 12px;
}

.avatar.lg {
  width: 64px;
  height: 64px;
  font-size: 22px;
}

.avatar.xl {
  width: 74px;
  height: 74px;
  font-size: 26px;
  border: 3px solid #fff;
}

.avatar.anon {
  background: linear-gradient(135deg, #c7ced9, #98a2b3);
  color: #fff;
  font-size: 14px;
}

/* ---------- post card ---------- */

.post-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 0 4px;
}

.post-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 14px 14px 10px;
  border: 1px solid rgba(16, 24, 40, 0.035);
  box-shadow: var(--shadow-card);
  cursor: pointer;
}

.post-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.post-meta {
  flex: 1;
  min-width: 0;
}

.name-row {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.name {
  font-size: 14.5px;
  font-weight: 650;
  letter-spacing: -0.1px;
}

.name[data-user] {
  cursor: pointer;
}

.verified {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: var(--blue);
}

.tag-anon {
  padding: 3px 5px;
  border-radius: 5px;
  background: #f1f3f7;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.2px;
}

.sub {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11.5px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.sep {
  color: #c7ced9;
}

.vis {
  color: var(--muted-2);
}

.post-text {
  margin-top: 10px;
  color: #1d2939;
  font-size: 15px;
  line-height: 1.62;
  white-space: pre-wrap;
  word-break: break-word;
}

.post-text.clamp {
  display: -webkit-box;
  overflow: hidden;
  white-space: normal;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
}

.topic-tag {
  display: inline-flex;
  margin-top: 9px;
  padding: 4px 8px;
  border-radius: 7px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
}

.media {
  margin-top: 10px;
  border-radius: 13px;
  overflow: hidden;
}

.media.single {
  position: relative;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
}

.media.single::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(0, 0, 0, 0.05));
}

.media-emoji {
  font-size: 56px;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.15));
}

.media.grid {
  display: grid;
  gap: 4px;
}

.media.grid.g2 {
  grid-template-columns: repeat(2, 1fr);
}

.media.grid.g3 {
  grid-template-columns: repeat(3, 1fr);
}

.media-item {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  font-size: 36px;
}

.media-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.04));
}

.post-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 11px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 0;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  transition: color 0.15s ease, transform 0.15s ease;
}

.action-btn:active {
  transform: scale(0.94);
}

.action-btn .icon {
  width: 19px;
  height: 19px;
}

.action-btn.liked {
  color: var(--red);
}

.action-btn.liked .icon {
  fill: var(--red);
  stroke: var(--red);
}

.action-btn.save {
  margin-left: auto;
}

.action-btn.saved {
  color: var(--blue);
}

.action-btn.saved .icon {
  fill: var(--blue);
  stroke: var(--blue);
}

/* ---------- bottom tab bar ---------- */

.tabbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  padding: 7px 10px calc(7px + var(--safe-bottom));
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid rgba(16, 24, 40, 0.05);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 58px;
  padding: 4px 0;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 500;
}

.tab .icon {
  width: 23px;
  height: 23px;
}

.tab.active {
  color: var(--ink);
}

.tab.active .icon {
  stroke-width: 2.1;
}

.tab-plus {
  width: 49px;
  height: 49px;
  margin-top: -22px;
  border-radius: 16px;
  background: linear-gradient(145deg, #3f7bff, #2454e6);
  color: #fff;
  display: grid;
  place-items: center;
  border: 3px solid var(--bg);
  box-shadow: 0 10px 20px rgba(47, 107, 255, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.tab-plus .icon {
  width: 25px;
  height: 25px;
  stroke-width: 2.3;
}

/* ---------- auth ---------- */

.auth {
  background: linear-gradient(165deg, #eef3ff 0%, #f7f9fd 42%, #eef6ff 100%);
}

.auth-scroll {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  padding: calc(52px + var(--safe-top)) 22px calc(28px + var(--safe-bottom));
}

.auth-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.7;
  pointer-events: none;
}

.auth-orb.a {
  width: 220px;
  height: 220px;
  top: -70px;
  right: -60px;
  background: #bcd0ff;
}

.auth-orb.b {
  width: 180px;
  height: 180px;
  bottom: 60px;
  left: -80px;
  background: #c9f2e6;
}

.auth-brand {
  position: relative;
  margin-bottom: 24px;
  text-align: center;
}

.logo-mark {
  width: 66px;
  height: 66px;
  margin: 0 auto;
  border-radius: 21px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #4a83ff, #1f4fd8);
  color: #fff;
  font-size: 31px;
  font-weight: 800;
  box-shadow: 0 16px 30px rgba(47, 107, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transform: rotate(-4deg);
}

.auth-brand h1 {
  margin-top: 16px;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: 5px;
}

.auth-brand p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: 0.3px;
}

.auth-card {
  position: relative;
  padding: 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 24px 60px rgba(31, 79, 216, 0.12);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.segmented {
  display: flex;
  margin-bottom: 14px;
  padding: 3px;
  border-radius: 12px;
  background: #eef1f7;
}

.segmented button {
  flex: 1;
  padding: 8px 0;
  border-radius: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.segmented button.active {
  background: #fff;
  color: var(--ink);
  font-weight: 650;
  box-shadow: 0 2px 8px rgba(16, 24, 40, 0.08);
}

.field {
  display: block;
  margin-bottom: 11px;
}

.field-label {
  display: block;
  margin: 0 0 6px 2px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
}

.input,
.select-field {
  width: 100%;
  height: 48px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e9edf3;
  border-radius: 13px;
  background: #f6f8fb;
  color: var(--ink);
  font-size: 15px;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.input:focus {
  border-color: #b9cdff;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.08);
}

.input:focus-visible,
.compose-text:focus-visible,
.comment-input:focus-visible,
.search-input-wrap input:focus-visible {
  outline: none;
}

.input::placeholder {
  color: #aab2c0;
}

.select-field {
  justify-content: space-between;
  text-align: left;
}

.select-field .icon {
  width: 17px;
  height: 17px;
  color: var(--muted);
}

.code-row {
  display: flex;
  gap: 8px;
}

.code-row .input {
  flex: 1;
}

.code-row .btn-sm {
  flex: 0 0 auto;
  height: 48px;
  padding: 0 13px;
  white-space: nowrap;
}

.btn-primary {
  width: 100%;
  height: 50px;
  margin-top: 4px;
  border-radius: 14px;
  background: linear-gradient(145deg, #3f7bff, #2454e6);
  color: #fff;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: 0.5px;
  box-shadow: 0 12px 22px rgba(47, 107, 255, 0.28);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.btn-primary:active {
  transform: translateY(1px) scale(0.995);
  box-shadow: 0 6px 14px rgba(47, 107, 255, 0.22);
}

.btn-primary:disabled {
  background: #c9d3e6;
  color: #fff;
  box-shadow: none;
}

.auth-links {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  padding: 0 2px;
}

.auth-links button {
  color: var(--muted);
  font-size: 12.5px;
}

.auth-links button.strong {
  color: var(--blue);
  font-weight: 600;
}

.auth-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 14px 0 0;
  color: var(--muted-2);
  font-size: 11px;
}

.auth-note .icon {
  width: 13px;
  height: 13px;
}

.auth-demo {
  margin-top: 12px;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(47, 107, 255, 0.06);
  color: #5a76b8;
  font-size: 11px;
  text-align: center;
}

.auth-foot {
  margin-top: 22px;
  color: #aab2c0;
  font-size: 10.5px;
  line-height: 1.7;
  text-align: center;
}

/* ---------- register ---------- */

.page-head {
  padding: 18px 2px 14px;
}

.page-head h2 {
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.4px;
}

.page-head p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.65;
}

.form-stack {
  display: flex;
  flex-direction: column;
}

.verify-title {
  margin: 14px 2px 8px;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 650;
}

.choice-card {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  margin-bottom: 8px;
  padding: 12px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: #fff;
  text-align: left;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.choice-card.active {
  border-color: #9cb9ff;
  background: #f7faff;
}

.choice-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--blue-soft);
  color: var(--blue);
}

.choice-icon .icon {
  width: 19px;
  height: 19px;
}

.choice-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.choice-text b {
  font-size: 13.5px;
  font-weight: 650;
}

.choice-text small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.radio {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1.5px solid #cdd5e2;
  border-radius: 50%;
}

.choice-card.active .radio {
  border-color: var(--blue);
  background: var(--blue);
  box-shadow: inset 0 0 0 3px #fff;
}

/* ---------- discover ---------- */

.page-title {
  padding: 8px 2px 12px;
}

.page-title h1 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.6px;
}

.page-title p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.search-entry {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  margin: 2px 0 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  box-shadow: var(--shadow-sm);
}

.search-entry .icon {
  width: 18px;
  height: 18px;
  color: var(--muted-2);
}

.section-card {
  margin-bottom: 11px;
  padding: 14px;
  border: 1px solid rgba(16, 24, 40, 0.035);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.section-head h3 {
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.section-head span {
  color: var(--muted-2);
  font-size: 11px;
}

.hot-list,
.people-list {
  display: flex;
  flex-direction: column;
}

.hot-row {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 9px 0;
  border-bottom: 1px solid #f4f6f9;
  text-align: left;
}

.hot-row:last-child {
  border-bottom: 0;
}

.rank {
  width: 19px;
  flex: 0 0 auto;
  color: #c2c9d6;
  font-size: 14px;
  font-style: italic;
  font-weight: 800;
}

.rank.top {
  color: var(--blue);
}

.hot-main {
  flex: 1;
  min-width: 0;
}

.hot-main b {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
}

.hot-main small {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10.5px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.hot-heat {
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--muted-2);
  font-size: 10.5px;
}

.hot-heat .icon {
  width: 12px;
  height: 12px;
  color: #ff9f43;
}

.person-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 0;
  border-bottom: 1px solid #f4f6f9;
  text-align: left;
}

.person-row:last-child {
  border-bottom: 0;
}

.person-main {
  flex: 1;
  min-width: 0;
}

.person-main b {
  display: block;
  font-size: 13px;
  font-weight: 600;
}

.person-main small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10.5px;
}

.mini-follow {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 11px;
  font-weight: 600;
}

.mini-follow.on {
  background: #f2f4f8;
  color: var(--muted);
}

.mini-post {
  display: flex;
  gap: 10px;
  width: 100%;
  padding: 9px 0;
  border-bottom: 1px solid #f4f6f9;
  text-align: left;
}

.mini-post:last-child {
  border-bottom: 0;
}

.mini-post-main {
  flex: 1;
  min-width: 0;
}

.mini-post-meta {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 10.5px;
}

.mini-post-main p {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.mini-thumb {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 22px;
}

/* ---------- notifications ---------- */

.notice-tabs {
  flex: 0 0 auto;
  display: flex;
  gap: 22px;
  padding: 0 18px;
  background: rgba(243, 245, 249, 0.92);
  border-bottom: 1px solid var(--line);
}

.notice-tab {
  position: relative;
  padding: 11px 0 12px;
  color: var(--muted);
  font-size: 14.5px;
}

.notice-tab.active {
  color: var(--ink);
  font-weight: 700;
}

.notice-tab.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 22px;
  height: 3px;
  border-radius: 3px;
  background: var(--blue);
  transform: translateX(-50%);
}

.notice-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 10px;
}

.notice-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  width: 100%;
  padding: 13px;
  border: 1px solid rgba(16, 24, 40, 0.03);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.notice-item.unread {
  background: linear-gradient(180deg, #f8faff, #fff);
  border-color: #e4ecff;
}

.notice-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.notice-icon.like {
  background: #fff0f3;
  color: var(--red);
}

.notice-icon.comment {
  background: #eef4ff;
  color: var(--blue);
}

.notice-icon.follow {
  background: #eafaf2;
  color: var(--green);
}

.notice-icon.system {
  background: #f4f1ff;
  color: #8b5cf6;
}

.notice-icon .icon {
  width: 18px;
  height: 18px;
}

.notice-body {
  flex: 1;
  min-width: 0;
}

.notice-text {
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.45;
}

.notice-text b {
  color: var(--ink);
  font-weight: 650;
}

.notice-target {
  display: block;
  margin-top: 4px;
  padding: 6px 8px;
  overflow: hidden;
  border-radius: 8px;
  background: #f6f8fb;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.notice-time {
  display: block;
  margin-top: 5px;
  color: var(--muted-2);
  font-size: 10.5px;
}

.unread-dot {
  width: 7px;
  height: 7px;
  margin-top: 5px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--blue);
}

/* ---------- profile ---------- */

.profile-body {
  padding: 0 0 28px;
}

.has-tabbar .profile-body {
  padding-bottom: calc(96px + var(--safe-bottom));
}

.profile-cover {
  position: relative;
  height: 172px;
  overflow: hidden;
  background: linear-gradient(135deg, #dbe7ff 0%, #e7f4ff 48%, #fff1e8 100%);
}

.profile-cover .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0.75;
}

.profile-cover .o1 {
  width: 150px;
  height: 150px;
  top: -40px;
  left: -30px;
  background: #c4d7ff;
}

.profile-cover .o2 {
  width: 120px;
  height: 120px;
  right: -20px;
  bottom: -30px;
  background: #ffe0cc;
}

.profile-cover .o3 {
  width: 100px;
  height: 100px;
  top: 30px;
  right: 60px;
  background: #c9f5e4;
  opacity: 0.5;
}

.cover-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(47, 107, 255, 0.14) 1px, transparent 1px);
  background-size: 16px 16px;
  opacity: 0.5;
}

.profile-top-actions {
  position: absolute;
  top: calc(10px + var(--safe-top));
  left: 14px;
  right: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.profile-top-actions .icon-btn {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
}

.profile-top-actions .right {
  display: flex;
  gap: 8px;
}

.profile-card {
  position: relative;
  margin: -42px 14px 0;
  padding: 0 16px 16px;
  border: 1px solid rgba(16, 24, 40, 0.04);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.profile-avatar-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.profile-avatar-wrap .avatar {
  margin-top: -30px;
}

.profile-edit {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
}

.btn-sm {
  height: 32px;
  padding: 0 12px;
  border-radius: 9px;
  background: #f2f5fa;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
}

.btn-sm.primary {
  background: var(--blue);
  color: #fff;
}

.btn-sm.outline {
  border: 1px solid var(--line);
  background: #fff;
}

.profile-name {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}

.profile-name h2 {
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.4px;
}

.profile-handle {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11.5px;
}

.profile-bio {
  margin-top: 9px;
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.6;
}

.profile-identity {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 9px;
}

.identity-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 7px;
  border-radius: 6px;
  background: #f4f7fb;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}

.identity-pill .icon {
  width: 12px;
  height: 12px;
}

.identity-pill.relationship {
  background: #fff0f3;
  color: #e5484d;
}

.identity-pill.relationship.single {
  background: #eef4ff;
  color: var(--blue);
}

.identity-pill.mbti {
  background: #f4f1ff;
  color: #7c5cfc;
  font-weight: 650;
}

.identity-pill.zodiac {
  background: #fff7e6;
  color: #d97706;
}

.profile-interests {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.interest-tag {
  padding: 3px 7px;
  border-radius: 5px;
  background: #f7f9fc;
  color: var(--muted);
  font-size: 10px;
}

.interest-editor {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 4px;
  margin-bottom: 7px;
}

.interest-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  border-radius: 7px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 11px;
  font-weight: 500;
}

.interest-chip span {
  color: #8aa7e8;
  font-size: 13px;
  line-height: 1;
}

.interest-add-row {
  display: flex;
  gap: 7px;
}

.interest-add-row .tag-input {
  height: 38px;
}

.profile-hometown {
  margin-top: 4px;
  color: var(--muted-2);
  font-size: 10.5px;
}

.profile-handle-id {
  margin-top: 3px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 500;
}

.profile-handle-id.anonymous {
  color: var(--muted-2);
}

.profile-section-label {
  margin-bottom: 6px;
  color: var(--muted-2);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.4px;
}

.profile-affiliations {
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.affiliation-row {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 0;
  font-size: 11.5px;
}

.affiliation-type {
  flex: 0 0 auto;
  padding: 2px 5px;
  border-radius: 4px;
  background: #f2f4f8;
  color: var(--muted);
  font-size: 9px;
}

.affiliation-row b {
  color: var(--ink-2);
  font-weight: 600;
}

.affiliation-role {
  margin-left: auto;
  color: var(--muted);
  font-size: 10px;
}

.profile-socials {
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.social-list {
  padding: 0 10px;
  border-radius: 12px;
  background: #f7f8fa;
}

.social-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 0;
  border-bottom: 0.5px solid var(--line);
  text-align: left;
}

.social-row:last-child {
  border-bottom: 0;
}

.social-label {
  flex: 0 0 64px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10.5px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.social-row b {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 500;
  text-align: right;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.social-copy {
  display: grid;
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--muted-2);
}

.social-copy .icon {
  width: 12px;
  height: 12px;
}

.social-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
  padding: 7px 9px;
  border-radius: 8px;
  background: #f7f9fc;
  text-align: left;
}

.social-pill span {
  flex: 0 0 auto;
  color: var(--muted-2);
  font-size: 9px;
}

.social-pill b {
  overflow: hidden;
  color: var(--ink-2);
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.affiliation-editor {
  margin-bottom: 9px;
}

.affiliation-edit-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}

.affiliation-edit-row b {
  font-weight: 600;
}

.affiliation-edit-row > span:not(.affiliation-type) {
  color: var(--muted);
  font-size: 10px;
}

.affiliation-remove {
  width: 22px;
  height: 22px;
  margin-left: auto;
  border-radius: 50%;
  background: #f2f4f8;
  color: var(--muted);
  font-size: 14px;
  line-height: 1;
}

.affiliation-add-grid {
  display: grid;
  grid-template-columns: 78px 1fr 1fr;
  gap: 7px;
}

.affiliation-add-grid .input {
  height: 38px;
  font-size: 12px;
}

.affiliation-add-grid .mini-btn {
  grid-column: 1 / -1;
  justify-self: start;
}

.edit-empty {
  margin: 0;
  color: var(--muted-2);
  font-size: 10.5px;
}

.game-editor {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.game-editor .profile-section-label span {
  margin-left: 4px;
  color: var(--muted-2);
  font-weight: 400;
}

.game-edit-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}

.game-edit-row b {
  font-weight: 600;
}

.game-edit-row span {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.game-edit-row button {
  width: 22px;
  height: 22px;
  margin-left: auto;
  border-radius: 50%;
  background: #f2f4f8;
  color: var(--muted);
  font-size: 14px;
}

.game-add-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 7px;
}

.game-add-grid .input {
  height: 38px;
  font-size: 12px;
}

.game-add-grid .mini-btn {
  grid-column: 1 / -1;
  justify-self: start;
}

.post-circle-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 7px;
  padding: 3px 6px;
  border-radius: 5px;
  background: #f2f7ff;
  color: var(--blue);
  font-size: 9.5px;
  font-weight: 600;
}

.post-circle-badge .icon {
  width: 12px;
  height: 12px;
}

.home-circles {
  margin: 14px 0 4px;
}

.home-circles-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.home-circles-head h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 680;
}

.home-circles-head button {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--muted);
  font-size: 10px;
}

.home-circles-head .icon {
  width: 13px;
  height: 13px;
}

.home-circle-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}

.home-circle {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  padding: 9px 4px;
  border-radius: 13px;
  background: #fff;
  text-align: center;
}

.home-circle-icon {
  display: grid;
  width: 33px;
  height: 33px;
  place-items: center;
  border-radius: 10px;
}

.home-circle-icon .icon {
  width: 17px;
  height: 17px;
}

.home-circle b {
  max-width: 100%;
  overflow: hidden;
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.home-circle small {
  color: var(--muted-2);
  font-size: 8.5px;
}

.circles-body {
  padding: 16px 15px 36px;
}

.circles-intro {
  margin: 2px 2px 18px;
}

.circles-kicker {
  color: var(--blue);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.circles-intro h2 {
  margin-top: 5px;
  font-size: 25px;
  font-weight: 730;
  letter-spacing: -0.7px;
}

.circles-intro p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.circle-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.circle-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border-radius: 16px;
  background: #fff;
}

.circle-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
}

.circle-icon .icon {
  width: 20px;
  height: 20px;
}

.circle-copy {
  min-width: 0;
  flex: 1;
}

.circle-copy b {
  display: block;
  font-size: 13px;
  font-weight: 650;
}

.circle-copy small {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  color: var(--muted);
  font-size: 9.5px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.circle-copy span {
  display: block;
  margin-top: 4px;
  color: var(--muted-2);
  font-size: 9px;
}

.circle-join {
  flex: 0 0 auto;
  min-width: 48px;
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
}

.circle-join.joined {
  background: #f2f2f7;
  color: var(--muted);
}

.circle-body {
  padding: 14px 15px 36px;
}

.circle-hero {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  border: 0.5px solid rgba(0, 0, 0, 0.03);
}

.circle-hero-icon {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 14px;
}

.circle-hero-icon .icon {
  width: 23px;
  height: 23px;
}

.circle-hero h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 720;
  letter-spacing: -0.4px;
}

.circle-hero p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.5;
}

.circle-hero small {
  display: block;
  margin-top: 5px;
  color: var(--muted-2);
  font-size: 9px;
}

.circle-compose {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  margin-top: 10px;
  padding: 11px;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.circle-compose.outline {
  background: #fff;
  color: var(--blue);
  border: 0.5px solid #dce8ff;
}

.circle-compose .icon {
  width: 15px;
  height: 15px;
}

.circle-posts-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 2px 9px;
}

.circle-posts-head h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 680;
}

.circle-posts-head span {
  color: var(--muted-2);
  font-size: 9.5px;
}

.compose-destination {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  margin: 10px 0 2px;
  padding: 10px;
  border-radius: 12px;
  background: #f7f7fa;
  text-align: left;
}

.compose-destination-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 9px;
  background: #fff;
  color: var(--blue);
}

.compose-destination-icon .icon {
  width: 16px;
  height: 16px;
}

.compose-destination-copy {
  min-width: 0;
  flex: 1;
}

.compose-destination-copy small {
  display: block;
  color: var(--muted-2);
  font-size: 8.5px;
}

.compose-destination-copy b {
  display: block;
  margin-top: 1px;
  font-size: 11.5px;
  font-weight: 600;
}

.compose-destination > .icon {
  width: 14px;
  height: 14px;
  color: var(--muted-2);
}

.edit-profile-body {
  padding: 16px 16px 34px;
}

.edit-avatar-row {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 18px;
}

.edit-avatar-row b {
  display: block;
  font-size: 14px;
  font-weight: 650;
}

.edit-avatar-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10.5px;
}

.edit-section {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.edit-section h3 {
  margin: 0 0 12px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 650;
}

.edit-section h3 span {
  margin-left: 4px;
  color: var(--muted-2);
  font-size: 9.5px;
  font-weight: 400;
}

.edit-privacy {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin: 2px 0 0;
  color: var(--muted-2);
  font-size: 10px;
  line-height: 1.5;
}

.edit-privacy .icon {
  width: 13px;
  height: 13px;
  margin-top: 1px;
}

.select-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #98a2b3 50%),
    linear-gradient(135deg, #98a2b3 50%, transparent 50%);
  background-position: calc(100% - 16px) 21px, calc(100% - 11px) 21px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 32px;
}


.profile-stats {
  display: flex;
  gap: 26px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.stat b {
  display: block;
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -0.2px;
}

.stat span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10.5px;
}

.profile-tabs {
  display: flex;
  gap: 4px;
  margin: 12px 14px 0;
  padding: 4px;
  border: 1px solid rgba(16, 24, 40, 0.03);
  border-radius: 13px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.profile-tab {
  flex: 1;
  padding: 8px 0;
  border-radius: 9px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
}

.profile-tab.active {
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 650;
}

.profile-list {
  padding: 10px 14px 0;
}

/* ---------- detail / comments ---------- */

.detail-body {
  padding: 12px 14px calc(84px + var(--safe-bottom));
}

.detail-body .post-card {
  cursor: default;
}

.comments {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(16, 24, 40, 0.03);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.comments-head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 4px;
}

.comments-head h3 {
  font-size: 14.5px;
  font-weight: 700;
}

.comments-head span {
  color: var(--muted);
  font-size: 11px;
}

.comment {
  display: flex;
  gap: 9px;
  padding: 11px 0;
  border-bottom: 1px solid #f4f6f9;
}

.comment:last-child {
  padding-bottom: 2px;
  border-bottom: 0;
}

.comment-main {
  flex: 1;
  min-width: 0;
}

.comment-name {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--ink-2);
  font-size: 12px;
}

.comment-name b {
  font-weight: 650;
}

.comment-name span {
  color: var(--muted-2);
  font-size: 10px;
}

.comment-main p {
  margin-top: 4px;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.55;
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
  color: var(--muted-2);
  font-size: 10.5px;
}

.comment-meta button {
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--muted-2);
  font-size: 10.5px;
}

.comment-meta .icon {
  width: 12px;
  height: 12px;
}

.comment-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px calc(9px + var(--safe-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.comment-bar .avatar {
  width: 32px;
  height: 32px;
  font-size: 12px;
}

.comment-input {
  flex: 1;
  height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  background: #f2f5f9;
  font-size: 13px;
  transition: background 0.18s ease, box-shadow 0.18s ease;
}

.comment-input:focus {
  background: #fff;
  box-shadow: inset 0 0 0 1px #c7d7ff;
}

.comment-input::placeholder {
  color: #aab2c0;
}

.comment-send {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
}

.comment-send:disabled {
  background: #d7dfec;
}

.comment-send .icon {
  width: 16px;
  height: 16px;
}

/* ---------- compose ---------- */

.compose-body {
  padding: 14px 16px 28px;
}

.compose-text {
  width: 100%;
  min-height: 170px;
  resize: none;
  background: transparent;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.7;
}

.compose-text::placeholder {
  color: #aab2c0;
}

.compose-count {
  margin-top: -2px;
  color: var(--muted-2);
  font-size: 10.5px;
  text-align: right;
}

.media-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.picker-tile {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 13px;
  font-size: 34px;
}

.tile-remove {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(16, 24, 40, 0.55);
  color: #fff;
}

.tile-remove .icon {
  width: 11px;
  height: 11px;
  stroke-width: 2.4;
}

.add-tile {
  flex-direction: column;
  gap: 6px;
  border: 1.5px dashed #ccd5e3;
  background: #fafbfd;
  color: var(--muted);
}

.add-tile .icon {
  width: 22px;
  height: 22px;
}

.add-tile span {
  font-size: 10.5px;
}

.compose-section {
  margin-top: 20px;
}

.compose-section h3 {
  margin-bottom: 9px;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 650;
}

.topic-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.compose-options {
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.option-row {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 13px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.option-row:last-child {
  border-bottom: 0;
}

.option-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #f3f6fb;
  color: var(--ink-2);
}

.option-icon .icon {
  width: 17px;
  height: 17px;
}

.option-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.option-text b {
  font-size: 13px;
  font-weight: 600;
}

.option-text small {
  color: var(--muted);
  font-size: 10.5px;
}

.option-row > .icon {
  width: 16px;
  height: 16px;
  color: #c2c9d6;
}

.switch {
  width: 44px;
  height: 26px;
  flex: 0 0 auto;
  padding: 3px;
  border-radius: 999px;
  background: #dde3ec;
  transition: background 0.2s ease;
}

.switch span {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.2);
  transition: transform 0.2s ease;
}

.switch.on {
  background: var(--blue);
}

.switch.on span {
  transform: translateX(18px);
}

.compose-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 16px;
  color: var(--muted-2);
  font-size: 10.5px;
}

.compose-note .icon {
  width: 13px;
  height: 13px;
}

.publish-btn {
  padding: 7px 12px;
  border-radius: 9px;
  background: var(--blue);
  color: #fff;
  font-size: 12.5px;
  font-weight: 650;
}

.publish-btn:disabled {
  background: #d5ddea;
  color: #fff;
}

/* ---------- search ---------- */

.search-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: calc(10px + var(--safe-top)) 12px 10px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.search-head > .icon-btn {
  width: 34px;
  height: 34px;
  background: transparent;
  border-color: transparent;
}

.search-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f2f5f9;
  transition: background 0.18s ease, box-shadow 0.18s ease;
}

.search-input-wrap:focus-within {
  background: #fff;
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.08);
}

.search-input-wrap .icon {
  width: 16px;
  height: 16px;
  color: var(--muted-2);
}

.search-input-wrap input {
  flex: 1;
  min-width: 0;
  font-size: 14px;
}

.search-input-wrap input::placeholder {
  color: #aab2c0;
}

.search-clear {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #c9d1de;
  color: #fff;
}

.search-clear .icon {
  width: 10px;
  height: 10px;
  stroke-width: 2.5;
  color: #fff;
}

.search-body {
  padding: 16px 16px 30px;
}

.search-section {
  margin-bottom: 20px;
}

.search-section h3 {
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.2px;
}

.search-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search-user {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.search-user:last-child {
  border-bottom: 0;
}

.search-user-main {
  flex: 1;
  min-width: 0;
}

.search-user-main b {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
}

.search-user-main small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10.5px;
}

.search-user > .icon {
  width: 15px;
  height: 15px;
  color: #c2c9d6;
}

.search-post {
  display: block;
  width: 100%;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.search-post:last-child {
  border-bottom: 0;
}

.search-post .sp-meta {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 10.5px;
}

.search-post p {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.search-post mark {
  border-radius: 2px;
  background: #fff1b8;
  color: inherit;
}

/* ---------- settings ---------- */

.settings-body {
  padding: 16px 14px 30px;
}

.me-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(16, 24, 40, 0.04);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-card);
  text-align: left;
}

.me-row-main {
  flex: 1;
}

.me-row-main b {
  display: block;
  font-size: 15px;
  font-weight: 650;
}

.me-row-main small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.me-row > .icon {
  width: 16px;
  height: 16px;
  color: #c2c9d6;
}

.settings-group {
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.setting-row {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 14px 13px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 13.5px;
  text-align: left;
}

.setting-row:last-child {
  border-bottom: 0;
}

.setting-row .icon:first-child {
  width: 19px;
  height: 19px;
  color: var(--muted);
}

.setting-row .icon:last-child {
  width: 15px;
  height: 15px;
  margin-left: auto;
  color: #c2c9d6;
}

.setting-row .version {
  margin-left: auto;
  color: var(--muted-2);
  font-size: 11px;
}

.logout-btn {
  width: 100%;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid #ffe3e8;
  border-radius: 14px;
  background: #fff;
  color: var(--red);
  font-size: 13.5px;
  font-weight: 600;
}

.settings-foot {
  margin-top: 22px;
  color: #b3bac6;
  font-size: 10.5px;
  letter-spacing: 0.4px;
  text-align: center;
}

/* ---------- topic ---------- */

.topic-body {
  padding: 14px;
}

.topic-hero {
  position: relative;
  overflow: hidden;
  padding: 20px 18px;
  border: 1px solid rgba(47, 107, 255, 0.08);
  border-radius: 20px;
  background: linear-gradient(135deg, #eaf0ff, #f4f9ff 60%, #eefaf4);
}

.topic-hero::after {
  content: "#";
  position: absolute;
  right: 8px;
  bottom: -34px;
  color: rgba(47, 107, 255, 0.06);
  font-size: 120px;
  font-weight: 800;
}

.topic-hero h2 {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.6px;
}

.topic-hero p {
  max-width: 80%;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.topic-stats {
  margin-top: 12px;
  color: var(--muted);
  font-size: 11px;
}

.follow-topic {
  position: absolute;
  top: 18px;
  right: 16px;
  z-index: 2;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  box-shadow: 0 6px 14px rgba(47, 107, 255, 0.24);
}

.follow-topic.on {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  box-shadow: none;
}

/* ---------- empty ---------- */

.empty-state {
  padding: 44px 20px;
  text-align: center;
}

.empty-state .emoji {
  display: block;
  margin-bottom: 10px;
  font-size: 36px;
}

.empty-state p {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

/* ---------- sheets ---------- */

#modal-root {
  position: absolute;
  inset: 0;
  z-index: 70;
  pointer-events: none;
}

#modal-root:empty {
  display: none;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  background: rgba(16, 24, 40, 0.38);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  pointer-events: auto;
  animation: fadeIn 0.18s ease;
}

.sheet {
  width: 100%;
  max-height: 88%;
  overflow-y: auto;
  padding: 9px 16px calc(14px + var(--safe-bottom));
  border-radius: 24px 24px 0 0;
  background: #fff;
  animation: sheetUp 0.26s cubic-bezier(0.2, 0.85, 0.25, 1);
}

.sheet-handle {
  width: 36px;
  height: 4px;
  margin: 0 auto 10px;
  border-radius: 2px;
  background: #dce2eb;
}

.sheet h3 {
  padding: 2px 0 9px;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.sheet-sub {
  padding: 0 0 10px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.sheet-desc {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 400;
}

.sheet-list {
  display: flex;
  flex-direction: column;
}

.sheet-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 13px 6px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 14px;
  text-align: left;
}

.sheet-item:last-child {
  border-bottom: 0;
}

.sheet-item .icon {
  width: 19px;
  height: 19px;
  color: var(--muted);
}

.sheet-item.danger {
  color: var(--red);
}

.sheet-item.danger .icon {
  color: var(--red);
}

.sheet-item .check {
  width: 17px;
  height: 17px;
  margin-left: auto;
  color: var(--blue);
}

.sheet-cancel {
  width: 100%;
  margin-top: 8px;
  padding: 13px;
  border-radius: 13px;
  background: #f2f5f9;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
}

.sheet-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.sheet-btn {
  width: 100%;
  padding: 13px;
  border-radius: 13px;
  background: #f4f6fa;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
}

.sheet-btn.danger {
  background: #fff1f3;
  color: var(--red);
}

.sheet-btn.primary {
  background: var(--blue);
  color: #fff;
}

/* ---------- toast ---------- */

#toast {
  position: absolute;
  left: 50%;
  bottom: calc(96px + var(--safe-bottom));
  z-index: 100;
  max-width: 86%;
  padding: 10px 16px;
  border-radius: 11px;
  background: rgba(16, 24, 40, 0.9);
  color: #fff;
  font-size: 12.5px;
  line-height: 1.4;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes sheetUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   v0.3 · Flipped additions
   ============================================================ */

.school-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 13px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--blue-soft);
  color: #3d63b8;
  font-size: 11px;
  font-weight: 500;
}

.school-banner .icon {
  width: 14px;
  height: 14px;
}

.admin-entry {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 16px auto 0;
  color: var(--muted-2);
  font-size: 11px;
}

.admin-entry .icon {
  width: 13px;
  height: 13px;
}

.hidden-file {
  position: fixed;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 6px;
  border-radius: 5px;
  font-size: 9.5px;
  font-weight: 650;
  line-height: 1;
}

.status-badge.pending {
  background: #fff7e6;
  color: #d97706;
}

.status-badge.banned {
  background: #fff1f3;
  color: var(--red);
}

.status-pill {
  margin-left: auto;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
}

.status-pill.ok {
  background: #eafaf2;
  color: #0f9f6e;
}

.status-pill.pending {
  background: #fff7e6;
  color: #d97706;
}

.review-banner {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 10px 0 2px;
  padding: 11px 12px;
  border: 1px solid #fde3b6;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff9ee, #fffdf8);
  color: #9a5b13;
}

.review-banner b {
  display: block;
  font-size: 12px;
  font-weight: 650;
}

.review-banner small {
  display: block;
  margin-top: 3px;
  color: #b07a35;
  font-size: 10.5px;
  line-height: 1.5;
}

.review-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #fff1d6;
  color: #d97706;
}

.review-icon .icon {
  width: 16px;
  height: 16px;
}

.profile-review {
  margin: 10px 14px 0;
  align-items: center;
  font-size: 10.5px;
}

.profile-review .icon {
  width: 15px;
  height: 15px;
}

/* registration upload */

.upload-title {
  margin: 15px 2px 8px;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 650;
}

.upload-title span {
  color: var(--red);
  font-size: 10px;
  font-weight: 500;
}

.upload-box {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  padding: 22px 14px;
  border: 1.5px dashed #c7d2e4;
  border-radius: 16px;
  background: #fafbfd;
  color: var(--muted);
  text-align: center;
}

.upload-box b {
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 650;
}

.upload-box small {
  color: var(--muted-2);
  font-size: 10.5px;
  line-height: 1.5;
}

.upload-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--blue-soft);
  color: var(--blue);
}

.upload-icon .icon {
  width: 21px;
  height: 21px;
}

.upload-note {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin: 8px 2px 0;
  color: var(--muted-2);
  font-size: 10.5px;
  line-height: 1.5;
}

.upload-note .icon {
  width: 13px;
  height: 13px;
  margin-top: 1px;
}

.onecode-preview {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f7f9fc;
}

.onecode-preview img {
  display: block;
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  background: #fff;
}

.onecode-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(16, 24, 40, 0.58);
  color: #fff;
}

.onecode-remove .icon {
  width: 13px;
  height: 13px;
}

.onecode-ok {
  position: absolute;
  left: 9px;
  bottom: 9px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  border-radius: 7px;
  background: rgba(16, 24, 40, 0.62);
  color: #fff;
  font-size: 10px;
}

.onecode-ok .icon {
  width: 12px;
  height: 12px;
}

/* helps */

.helps-hero {
  position: relative;
  overflow: hidden;
  margin: 2px 0 12px;
  padding: 19px 17px 17px;
  border-radius: 22px;
  background: linear-gradient(135deg, #2f6bff 0%, #6d5dfc 100%);
  color: #fff;
  box-shadow: 0 14px 28px rgba(47, 107, 255, 0.22);
}

.helps-kicker {
  font-size: 10px;
  letter-spacing: 1px;
  opacity: 0.78;
}

.helps-hero h2 {
  margin-top: 7px;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.6px;
}

.helps-hero p {
  max-width: 82%;
  margin-top: 6px;
  font-size: 11.5px;
  line-height: 1.55;
  opacity: 0.82;
}

.helps-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 13px;
  padding: 9px 12px;
  border-radius: 10px;
  background: #fff;
  color: #2f5fd0;
  font-size: 12px;
  font-weight: 650;
  box-shadow: 0 6px 14px rgba(16, 24, 40, 0.12);
}

.helps-cta .icon {
  width: 15px;
  height: 15px;
}

.helps-hero-mark {
  position: absolute;
  right: -8px;
  bottom: -55px;
  color: rgba(255, 255, 255, 0.12);
  font-size: 160px;
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
}

.help-cats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 12px 0 4px;
}

.help-cat {
  min-width: 0;
  min-height: 88px;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 9px 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink-2);
  text-align: center;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.help-cat:active {
  transform: scale(0.97);
}

.help-cat.active {
  border-color: #9cb9ff;
  background: #f7faff;
  box-shadow: 0 4px 12px rgba(47, 107, 255, 0.1);
}

.help-cat-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
}

.help-cat-icon .icon {
  width: 16px;
  height: 16px;
}

.help-cat b {
  max-width: 100%;
  overflow: hidden;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.help-cat small {
  color: var(--muted-2);
  font-size: 9px;
}

.help-cats.compact {
  margin: 0 0 14px;
}

.help-cats.compact .help-cat {
  min-height: 62px;
  gap: 2px;
  padding: 7px 3px;
}

.help-cats.compact .help-cat-icon {
  width: 24px;
  height: 24px;
  border-radius: 8px;
}

.help-cats.compact .help-cat-icon .icon {
  width: 13px;
  height: 13px;
}

.help-cats.compact .help-cat b {
  font-size: 10px;
}

.help-list-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin: 16px 1px 8px;
}

.help-list-head h3 {
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -0.3px;
}

.help-list-head p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10.5px;
}

.help-filters {
  display: flex;
  flex: 0 0 auto;
  gap: 5px;
}

.mini-chip {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 10px;
}

.mini-chip.active {
  border-color: #b9cdff;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 600;
}

.help-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-bottom: 6px;
}

.help-card {
  display: block;
  width: 100%;
  padding: 13px;
  border: 1px solid rgba(16, 24, 40, 0.04);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-card);
  text-align: left;
}

.help-card-head {
  display: flex;
  align-items: center;
  gap: 6px;
}

.help-cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 7px;
  border-radius: 7px;
  font-size: 10.5px;
  font-weight: 650;
  line-height: 1;
}

.help-cat-chip .icon {
  width: 13px;
  height: 13px;
}

.urgent-badge {
  padding: 3px 5px;
  border-radius: 5px;
  background: #fff1f3;
  color: var(--red);
  font-size: 9.5px;
  font-weight: 700;
}

.help-time {
  margin-left: auto;
  color: var(--muted-2);
  font-size: 9.5px;
}

.help-title {
  margin-top: 8px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.45;
  letter-spacing: -0.2px;
}

.help-desc {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.help-card-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 9px;
}

.help-reward {
  padding: 4px 7px;
  border-radius: 7px;
  background: #fff7ed;
  color: #ea580c;
  font-size: 11.5px;
  font-weight: 700;
}

.help-meta {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--muted);
  font-size: 10px;
}

.help-meta .icon {
  width: 12px;
  height: 12px;
  color: var(--muted-2);
}

.help-author-line {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}

.help-author-line .avatar {
  width: 22px;
  height: 22px;
  font-size: 9px;
}

.help-detail-body {
  padding: 12px 14px calc(96px + var(--safe-bottom));
}

.help-detail-card {
  padding: 16px;
  border: 1px solid rgba(16, 24, 40, 0.04);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.help-detail-title {
  margin-top: 12px;
  font-size: 21px;
  font-weight: 750;
  line-height: 1.4;
  letter-spacing: -0.5px;
}

.help-reward-big {
  margin-top: 9px;
  color: #ea580c;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.help-detail-desc {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.help-meta-card {
  margin-top: 14px;
  padding: 2px 12px;
  border-radius: 13px;
  background: #f7f9fc;
}

.help-meta-row {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 0;
  border-bottom: 1px solid #edf0f5;
  color: var(--muted);
  font-size: 11.5px;
}

.help-meta-row:last-child {
  border-bottom: 0;
}

.help-meta-row .icon {
  width: 15px;
  height: 15px;
  color: var(--muted-2);
}

.help-meta-row b {
  margin-left: auto;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
}

.help-detail-foot {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 12px;
  color: var(--muted-2);
  font-size: 10px;
}

.help-status {
  margin-left: auto;
  color: #0f9f6e;
  font-weight: 600;
}

.help-status.done {
  color: var(--muted);
}

.help-safety {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin: 12px 5px;
  color: var(--muted-2);
  font-size: 10.5px;
  line-height: 1.5;
}

.help-safety .icon {
  width: 13px;
  height: 13px;
  margin-top: 1px;
}

.help-action-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 22;
  display: flex;
  gap: 9px;
  padding: 9px 12px calc(9px + var(--safe-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
}

.help-share-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 44px;
  border: 1px solid #c9d8ff;
  border-radius: 12px;
  background: #f5f8ff;
  color: var(--blue);
  font-size: 12.5px;
  font-weight: 600;
}

.help-contact-btn {
  flex: 1.45;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 44px;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  box-shadow: 0 8px 16px rgba(47, 107, 255, 0.22);
}

.help-share-btn .icon,
.help-contact-btn .icon {
  width: 16px;
  height: 16px;
}

/* poster */

.poster-card {
  margin: 2px 0 10px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid #e6ecf7;
  border-radius: 18px;
  background: linear-gradient(165deg, #ffffff 0%, #f6f9ff 100%);
  box-shadow: var(--shadow-card);
}

.poster-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
}

.poster-brand {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.poster-school {
  color: var(--muted-2);
  font-size: 9.5px;
}

.poster-card h3 {
  margin-top: 8px;
  font-size: 17px;
  font-weight: 750;
  line-height: 1.35;
}

.poster-card p {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.poster-reward {
  margin-top: 8px;
  color: #ea580c;
  font-size: 21px;
  font-weight: 800;
}

.poster-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
}

.poster-meta .icon {
  width: 13px;
  height: 13px;
}

.poster-bottom {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px dashed #dbe4f3;
}

.poster-qr {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.poster-qr .icon {
  width: 33px;
  height: 33px;
}

.poster-bottom b {
  display: block;
  font-size: 10.5px;
  font-weight: 650;
}

.poster-bottom small {
  display: block;
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 9.5px;
}

/* compose choice */

.compose-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 2px 12px;
}

.compose-sheet-head h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 720;
  letter-spacing: -0.4px;
}

.sheet-close {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: rgba(118, 118, 128, 0.12);
  color: var(--muted);
  font-size: 17px;
  line-height: 1;
}

.compose-choice-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.compose-choice-row {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 13px 12px;
  border-radius: 15px;
  background: #f7f7fa;
  text-align: left;
}

.compose-choice-row:active {
  background: #f0f0f4;
}

.compose-choice-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 11px;
}

.compose-choice-icon.post {
  background: #eaf2ff;
  color: var(--blue);
}

.compose-choice-icon.help {
  background: #fff3e8;
  color: #e07800;
}

.compose-choice-copy {
  min-width: 0;
  flex: 1;
}

.compose-choice-copy b {
  display: block;
  font-size: 14px;
  font-weight: 650;
}

.compose-choice-copy small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.compose-choice-arrow {
  color: var(--muted-2);
}

.compose-choice-arrow .icon {
  width: 15px;
  height: 15px;
}

.compose-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin: 4px 0 12px;
}

.compose-choice {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 4px;
  padding: 16px 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8fafc;
}

.compose-choice-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  margin-bottom: 2px;
  border-radius: 12px;
}

.compose-choice-icon.post {
  background: #eef4ff;
  color: var(--blue);
}

.compose-choice-icon.help {
  background: #f4f1ff;
  color: #7c5cfc;
}

.compose-choice b {
  font-size: 13.5px;
  font-weight: 650;
}

.compose-choice small {
  color: var(--muted);
  font-size: 10px;
}

/* chat */

.chat-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-top: 10px;
}

.chat-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid rgba(16, 24, 40, 0.035);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.chat-main {
  flex: 1;
  min-width: 0;
}

.chat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.chat-top b {
  overflow: hidden;
  font-size: 13.5px;
  font-weight: 650;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.chat-top small {
  flex: 0 0 auto;
  color: var(--muted-2);
  font-size: 9.5px;
}

.chat-last {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11.5px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.chat-unread {
  min-width: 17px;
  height: 17px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--blue);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
}

.nav-badge {
  position: absolute;
  top: 0;
  right: 9px;
  min-width: 14px;
  height: 14px;
  display: grid;
  place-items: center;
  padding: 0 3px;
  border-radius: 7px;
  background: var(--red);
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  border: 1.5px solid #fff;
}

.tab {
  position: relative;
}

.chat-head-main {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.chat-head-main h1 {
  font-size: 15px;
}

.chat-head-main small {
  color: var(--muted);
  font-size: 9.5px;
}

.chat-body {
  padding: 12px 14px calc(76px + var(--safe-bottom));
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(47, 107, 255, 0.05), transparent 70%),
    var(--bg);
}

.chat-date {
  margin: 2px 0 12px;
  color: var(--muted-2);
  font-size: 9.5px;
  text-align: center;
}

.msg-row {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-bottom: 13px;
}

.msg-row.msg-me {
  flex-direction: row-reverse;
}

.msg-content {
  max-width: 78%;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
}

.msg-me .msg-content {
  align-items: flex-end;
}

.msg-name {
  margin: 0 0 3px 3px;
  color: var(--muted);
  font-size: 9.5px;
}

.msg-bubble {
  padding: 9px 12px;
  border-radius: 4px 15px 15px 15px;
  background: #fff;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.55;
  word-break: break-word;
  box-shadow: var(--shadow-sm);
}

.msg-me .msg-bubble {
  border-radius: 15px 4px 15px 15px;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 5px 12px rgba(47, 107, 255, 0.18);
}

.msg-bubble.has-image {
  padding: 3px;
  overflow: hidden;
  background: #fff;
}

.msg-me .msg-bubble.has-image {
  background: var(--blue);
}

.msg-bubble img {
  display: block;
  max-width: 220px;
  max-height: 260px;
  border-radius: 12px;
  object-fit: cover;
}

.msg-time {
  margin: 3px 3px 0;
  color: var(--muted-2);
  font-size: 8.5px;
}

.chat-input-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 22;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px calc(8px + var(--safe-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
}

.chat-image-btn {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f2f5f9;
  color: var(--ink-2);
}

.chat-image-btn .icon {
  width: 18px;
  height: 18px;
}

.chat-input {
  flex: 1;
  height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  background: #f2f5f9;
  font-size: 13px;
}

.chat-input:focus {
  background: #fff;
  box-shadow: inset 0 0 0 1px #c7d7ff;
  outline: none;
}

.chat-send {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 5px 12px rgba(47, 107, 255, 0.25);
}

.chat-send .icon {
  width: 17px;
  height: 17px;
}

/* friends */

.friend-section {
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(16, 24, 40, 0.035);
  border-radius: 17px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.friend-section-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 650;
}

.friend-section-title span {
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 9px;
}

.friend-request {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 9px;
  border-radius: 12px;
  background: #f8fafc;
}

.friend-request-main {
  flex: 1;
  min-width: 0;
}

.friend-request-main b {
  display: block;
  font-size: 12px;
  font-weight: 650;
}

.friend-request-main small {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: 9.5px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.friend-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.friend-row:last-child {
  border-bottom: 0;
}

.friend-row-main {
  flex: 1;
  min-width: 0;
}

.friend-row-main b {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
}

.friend-row-main small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 9.5px;
}

.mini-btn {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink-2);
  font-size: 10px;
  font-weight: 600;
}

.mini-btn.primary {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.mini-btn:disabled {
  opacity: 0.55;
}

.group-members {
  margin: 4px 0 10px;
}

.group-member {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
}

.group-member span {
  flex: 1;
}

.group-member input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}

/* compose extras */

.section-hint {
  color: var(--muted-2);
  font-size: 9.5px;
  font-weight: 400;
}

.field-required {
  margin-left: 2px;
  color: #e5484d;
  font-size: 9.5px;
  font-weight: 500;
}

.quick-hint {
  margin: -4px 2px 9px;
  color: var(--muted-2);
  font-size: 10px;
  line-height: 1.5;
}

.textarea {
  height: 120px;
  padding: 11px 12px;
  resize: vertical;
  line-height: 1.6;
}

.textarea.compact {
  height: 92px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.tag-row .topic-tag {
  margin-top: 0;
}

.tag-add-row {
  display: flex;
  gap: 7px;
  margin-top: 9px;
}

.tag-input {
  flex: 1;
  height: 38px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f7f9fc;
  font-size: 12px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.media-item-img {
  padding: 0;
}

.media-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-media {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: visible;
}

.detail-media .detail-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 13px;
  background: #f2f2f7;
}

.detail-image-placeholder {
  display: grid;
  width: 100%;
  aspect-ratio: 4 / 3;
  place-items: center;
  border-radius: 13px;
  font-size: 56px;
}

.post-video-wrap {
  margin-top: 10px;
  overflow: hidden;
  border-radius: 13px;
  background: #000;
}

.post-video {
  display: block;
  width: 100%;
  max-height: 460px;
  object-fit: contain;
  background: #000;
}

.post-video-preview {
  position: relative;
  overflow: hidden;
  margin-top: 12px;
  border-radius: 14px;
  background: #000;
}

.post-video-preview video {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  background: #000;
}

.video-remove {
  position: absolute;
  top: 7px;
  right: 7px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
}

.video-remove .icon {
  width: 13px;
  height: 13px;
}

.add-video-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  margin-top: 10px;
  padding: 11px;
  border: 1px dashed #ccd5e3;
  border-radius: 12px;
  background: #fafbfd;
  color: var(--muted);
  font-size: 11.5px;
}

.add-video-btn .icon {
  width: 16px;
  height: 16px;
}

.video-uploading {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 64px;
  margin-top: 10px;
  border-radius: 12px;
  background: #f2f2f7;
  color: var(--muted);
  font-size: 11px;
}

.picker-tile .media-img {
  border-radius: 13px;
  object-fit: contain;
  background: #eef1f6;
}

.tile-tools {
  position: absolute;
  right: 5px;
  bottom: 5px;
  left: 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px;
  border-radius: 7px;
  background: rgba(16, 24, 40, 0.55);
  color: #fff;
  font-size: 10px;
  line-height: 1;
}

.tile-tools button {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 5px;
  color: #fff;
  font-size: 17px;
  line-height: 1;
}

.tile-tools button:disabled {
  color: rgba(255, 255, 255, 0.3);
}

.tile-tools span {
  color: rgba(255, 255, 255, 0.85);
  font-size: 9px;
}

.picker-tile.dragging {
  opacity: 0.45;
}

.media-hint {
  margin: 7px 2px 0;
  color: var(--muted-2);
  font-size: 9.5px;
}

/* search tabs */

.search-tabs {
  flex: 0 0 auto;
  display: flex;
  gap: 20px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.search-tab {
  position: relative;
  padding: 10px 0 11px;
  color: var(--muted);
  font-size: 13px;
}

.search-tab.active {
  color: var(--ink);
  font-weight: 650;
}

.search-tab.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 20px;
  height: 3px;
  border-radius: 3px;
  background: var(--blue);
  transform: translateX(-50%);
}

/* misc */

.friend-section .empty-state {
  padding: 20px 8px;
}

.chat-body .empty-state {
  padding: 40px 10px;
}

.help-list .empty-state {
  padding: 34px 10px;
}

.help-status-chip {
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 600;
}

.help-status-chip.matched {
  background: #e8f7ee;
  color: #1b8f4d;
}

.help-status-chip.contacted {
  background: #fff4e5;
  color: #c77700;
}

.help-close-btn {
  flex: 1.4;
  height: 47px;
  border-radius: 13px;
  background: #fff0f0;
  color: #d93838;
  font-size: 13px;
  font-weight: 650;
}

.help-chat-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  margin-top: 8px;
  padding: 8px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 500;
}

.help-chat-link .icon {
  width: 14px;
  height: 14px;
}

.chat-help-banner {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  padding: 10px 11px;
  border: 1px solid #dce8ff;
  border-radius: 13px;
  background: #f2f7ff;
}

.chat-help-banner > div {
  min-width: 0;
  flex: 1;
}

.chat-help-banner b {
  display: block;
  color: #1455b8;
  font-size: 11.5px;
  font-weight: 650;
}

.chat-help-banner small {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  color: #6386b9;
  font-size: 9.5px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.chat-help-banner button {
  flex: 0 0 auto;
  padding: 7px 9px;
  border-radius: 8px;
  background: #fff;
  color: #1455b8;
  font-size: 10px;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(20, 85, 184, 0.08);
}

.chat-help-banner.helper {
  border-color: #d9f0e2;
  background: #f1fbf5;
}

.chat-help-banner.helper b {
  color: #1b8f4d;
}

.chat-help-banner.helper small {
  color: #5d9a76;
}

.chat-help-banner.helper button {
  color: #1b8f4d;
}

.calendar-body {
  padding: 14px 15px 34px;
}

.calendar-week {
  display: flex;
  justify-content: space-between;
  padding: 4px;
  border-radius: 14px;
  background: #fff;
}

.week-day {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 7px 2px;
  border-radius: 10px;
  color: var(--muted);
}

.week-day span {
  font-size: 10px;
  font-weight: 500;
}

.week-day b {
  min-height: 13px;
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 500;
}

.week-day.active {
  background: var(--blue);
  color: #fff;
}

.week-day.active b {
  color: rgba(255, 255, 255, 0.8);
}

.calendar-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin: 19px 2px 10px;
}

.calendar-head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 730;
  letter-spacing: -0.4px;
}

.calendar-head p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 10.5px;
}

.calendar-head .mini-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.calendar-head .mini-btn .icon {
  width: 12px;
  height: 12px;
}

.class-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.class-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 10px 12px 12px;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(20, 28, 46, 0.03);
}

.class-time {
  flex: 0 0 auto;
  padding-right: 10px;
  border-right: 1px solid var(--line);
  text-align: center;
}

.class-time b {
  display: block;
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
}

.class-time span {
  display: block;
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 9px;
}

.class-main {
  min-width: 0;
  flex: 1;
}

.class-main h3 {
  margin: 0;
  overflow: hidden;
  font-size: 12.5px;
  font-weight: 650;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.class-main p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 9.5px;
}

.class-swap {
  flex: 0 0 auto;
  padding: 6px 8px;
  border-radius: 7px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 9.5px;
  font-weight: 600;
}

.class-remove {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #f4f5f7;
  color: #a8b0bd;
  font-size: 11px;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.class-card:hover .class-remove {
  opacity: 1;
}

.calendar-section {
  margin-top: 22px;
}

.calendar-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 2px 9px;
}

.calendar-section-head h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 680;
}

.calendar-section-head span {
  color: var(--muted-2);
  font-size: 9.5px;
}

.task-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.task-card {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 11px;
  border-radius: 13px;
  background: #fff;
}

.task-dot {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--orange);
}

.task-card > div {
  min-width: 0;
}

.task-card b {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
}

.task-card small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9.5px;
}

.calendar-note {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  margin: 18px 2px 0;
  color: var(--muted-2);
  font-size: 9.5px;
  line-height: 1.5;
}

.calendar-note .icon {
  width: 12px;
  height: 12px;
  margin-top: 1px;
}

.edit-class-body {
  padding: 16px 16px 40px;
}

/* ============================================================
   Flipped · iOS refresh
   ============================================================ */

:root {
  --blue: #007aff;
  --blue-deep: #0062cc;
  --blue-soft: #eaf2ff;
  --ink: #1c1c1e;
  --ink-2: #3a3a3c;
  --muted: #8e8e93;
  --muted-2: #aeaeb2;
  --line: #e5e5ea;
  --bg: #f2f2f7;
  --card: #ffffff;
  --red: #ff3b30;
  --green: #34c759;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.02), 0 8px 24px rgba(0, 0, 0, 0.04);
}

body {
  background: #f2f2f7;
  color: var(--ink);
  letter-spacing: -0.01em;
}

#app {
  background: var(--bg);
}

.topbar {
  padding: calc(12px + var(--safe-top)) 18px 10px;
  background: rgba(242, 242, 247, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}

.brand {
  font-size: 26px;
  font-weight: 750;
  letter-spacing: -0.9px;
}

.brand-dot {
  width: 5px;
  height: 5px;
  background: var(--blue);
}

.subbar {
  background: rgba(242, 242, 247, 0.86);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid #c6c6c8;
}

.screen-body {
  background: var(--bg);
}

.post-card,
.help-card,
.auth-card,
.profile-card,
.compose-card,
.notice-item,
.setting-group,
.message-card {
  border-radius: 18px;
  border: 0;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02), 0 8px 24px rgba(0, 0, 0, 0.035);
}

.btn-primary,
.publish-btn {
  background: var(--blue);
  border-radius: 13px;
  box-shadow: none;
  font-weight: 600;
}

.btn-primary:active,
.publish-btn:active {
  background: var(--blue-deep);
}

.icon-btn {
  background: rgba(118, 118, 128, 0.1);
  color: var(--ink-2);
}

.tabbar {
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-top: 0.5px solid #c6c6c8;
  box-shadow: none;
}

.tab-item.active {
  color: var(--blue);
}

.helps-hero {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02), 0 8px 24px rgba(0, 0, 0, 0.035);
  padding: 20px 17px 18px;
}

.helps-kicker {
  color: var(--blue);
  opacity: 1;
  font-weight: 600;
  letter-spacing: 0.4px;
}

.helps-hero h2 {
  color: var(--ink);
  font-size: 24px;
  font-weight: 720;
  letter-spacing: -0.7px;
}

.helps-hero p {
  color: var(--muted);
  opacity: 1;
}

.helps-cta {
  background: var(--blue);
  color: #fff;
  border-radius: 11px;
  box-shadow: none;
}

.helps-hero-mark {
  color: rgba(0, 122, 255, 0.055);
}

.feed-toolbar {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
  padding: 2px 18px 10px;
  background: rgba(242, 242, 247, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  position: relative;
  z-index: 4;
}

.feed-segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 154px;
  padding: 2px;
  border-radius: 9px;
  background: rgba(118, 118, 128, 0.12);
}

.feed-segmented .feed-tab {
  position: static;
  padding: 6px 0;
  border-radius: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.feed-segmented .feed-tab.active {
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 0 0.5px rgba(0, 0, 0, 0.03);
}

.feed-segmented .feed-tab.active::after {
  display: none;
}

.feed-toolbar .feed-hint {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  color: var(--muted-2);
  font-size: 10px;
}

.feed-toolbar .feed-hint .icon {
  width: 13px;
  height: 13px;
}

.messages-segmented {
  width: 180px;
}

.messages-toolbar .feed-hint {
  font-size: 9.5px;
}

.profile-tabs,
.segmented {
  background: rgba(118, 118, 128, 0.08);
  border-radius: 11px;
}

.feed-tab.active,
.profile-tab.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.field-label {
  color: var(--muted);
  font-weight: 500;
}

.input,
.textarea,
.tag-input {
  background: #f7f7fa;
  border: 0.5px solid transparent;
  border-radius: 11px;
}

.input:focus,
.textarea:focus,
.tag-input:focus {
  background: #fff;
  border-color: rgba(0, 122, 255, 0.45);
}

.setting-row {
  border-bottom: 0.5px solid var(--line);
}

.notice-item.unread {
  background: #f5f9ff;
}

.flip-layer {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 13px;
  background: rgba(242, 242, 247, 0.58);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.flip-layer.show {
  opacity: 1;
}

.flip-square {
  position: relative;
  width: 58px;
  height: 58px;
  transform-style: preserve-3d;
  transform-origin: center;
  will-change: transform;
}

.flip-face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: var(--blue);
  color: #fff;
  font-size: 25px;
  font-weight: 720;
  box-shadow: 0 12px 30px rgba(0, 122, 255, 0.28);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.flip-back {
  transform: rotateY(180deg) scaleX(-1);
}

.flip-layer.show .flip-square {
  animation: flipCube 0.98s cubic-bezier(0.22, 0.8, 0.2, 1);
}

.flip-word {
  color: var(--blue);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  opacity: 0;
}

.flip-layer.show .flip-word {
  animation: flipWord 1.05s ease both;
}

.image-viewer {
  position: fixed;
  inset: 0;
  z-index: 360;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.94);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}

.image-viewer.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.image-viewer img {
  max-width: 94vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 5px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
}

.image-viewer-close {
  position: absolute;
  top: calc(14px + var(--safe-top));
  right: 16px;
  z-index: 1;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 23px;
  line-height: 1;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

@keyframes flipCube {
  0%, 14% { transform: perspective(340px) rotateY(180deg) scale(0.96); }
  58% { transform: perspective(340px) rotateY(360deg) scale(1.025); }
  100% { transform: perspective(340px) rotateY(360deg) scale(1); }
}

@keyframes flipWord {
  0%, 30% { opacity: 0; transform: translateY(3px); }
  55%, 80% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-3px); }
}

.compose-choice-row .compose-choice-icon.help {
  background: #fff3e8;
  color: #e07800;
}

@media (max-width: 520px) {
  html body * {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  .topbar,
  .subbar,
  .feed-toolbar {
    background: #f2f2f7;
  }

  .tabbar,
  .sheet {
    background: #fff;
  }
}

/* trending */

.trending-card {
  margin: 14px 0 4px;
  padding: 13px 13px 5px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02), 0 8px 24px rgba(0, 0, 0, 0.035);
}

.trending-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 4px;
}

.trending-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.trending-head small {
  display: block;
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 9px;
}

.trending-head button {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  padding-top: 2px;
  color: var(--muted);
  font-size: 9.5px;
}

.trending-head button .icon {
  width: 12px;
  height: 12px;
}

.trending-row {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 0;
  text-align: left;
  border-top: 0.5px solid var(--line);
}

.trending-row:first-child {
  border-top: 0;
}

.trending-rank {
  display: grid;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 6px;
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 650;
}

.trending-rank.rank-1 {
  background: #fff0ef;
  color: #ff3b30;
}

.trending-rank.rank-2 {
  background: #fff5e8;
  color: #ff9500;
}

.trending-rank.rank-3 {
  background: #fff9e5;
  color: #c58a00;
}

.trending-copy {
  min-width: 0;
  flex: 1;
}

.trending-copy b {
  display: block;
  overflow: hidden;
  font-size: 11.5px;
  font-weight: 550;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.trending-copy small {
  display: block;
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 8.5px;
}

.trending-trend {
  flex: 0 0 auto;
  padding: 2px 4px;
  border-radius: 4px;
  background: #f2f2f7;
  color: var(--muted);
  font-size: 8px;
  font-weight: 650;
}

.trending-trend.boom {
  background: #ff3b30;
  color: #fff;
}

.trending-trend.hot {
  background: #fff0e6;
  color: #e07800;
}

.trending-body {
  padding: 16px 16px 36px;
}

.trending-page-head {
  margin: 2px 2px 18px;
}

.trending-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #ff3b30;
  font-size: 9.5px;
  font-weight: 600;
}

.trending-live > span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ff3b30;
  box-shadow: 0 0 0 4px rgba(255, 59, 48, 0.1);
}

.trending-page-head h2 {
  margin-top: 7px;
  font-size: 27px;
  font-weight: 750;
  letter-spacing: -0.8px;
}

.trending-page-head p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10.5px;
}

.trending-page-list {
  padding: 2px 14px;
  border-radius: 17px;
  background: #fff;
}

.trending-page-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 15px 0;
  border-top: 0.5px solid var(--line);
  text-align: left;
}

.trending-page-row:first-child {
  border-top: 0;
}

.trending-page-copy {
  min-width: 0;
  flex: 1;
}

.trending-page-copy b {
  display: block;
  overflow: hidden;
  font-size: 12.5px;
  font-weight: 550;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.trending-page-copy small {
  display: block;
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 9px;
}

.trending-heat {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  color: var(--muted-2);
  font-size: 9px;
}

.trending-heat .icon {
  width: 11px;
  height: 11px;
}

.trending-foot {
  margin: 15px 2px 0;
  color: var(--muted-2);
  font-size: 9px;
  line-height: 1.5;
}

/* group creation */

.group-sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 3px 1px 14px;
}

.group-sheet-head h3 {
  padding: 0;
  margin: 0;
  font-size: 21px;
  font-weight: 730;
  letter-spacing: -0.5px;
  text-align: left;
}

.group-sheet-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10.5px;
}

.group-name-field {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  height: 46px;
  border-radius: 13px;
  background: #f5f5f8;
}

.group-name-field > span {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 7px;
  background: #fff;
  color: var(--blue);
}

.group-name-field .icon {
  width: 15px;
  height: 15px;
}

.group-name-field input {
  min-width: 0;
  flex: 1;
  height: 100%;
  font-size: 13px;
}

.group-pick-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin: 17px 2px 6px;
}

.group-pick-head b {
  display: block;
  font-size: 14px;
  font-weight: 680;
}

.group-pick-head small {
  display: block;
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 9.5px;
}

.group-pick-head button {
  padding: 4px 2px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 550;
}

.group-pick-list {
  max-height: 39vh;
  overflow-y: auto;
  margin: 0 -4px;
  padding: 0 4px;
  scrollbar-width: none;
}

.group-pick-list::-webkit-scrollbar {
  display: none;
}

.group-pick {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 8px;
  border-radius: 12px;
  text-align: left;
  transition: background 0.15s ease;
}

.group-pick + .group-pick {
  margin-top: 2px;
}

.group-pick.selected {
  background: #f2f7ff;
}

.group-pick-copy {
  min-width: 0;
  flex: 1;
}

.group-pick-copy b {
  display: block;
  overflow: hidden;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.group-pick-copy small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 9.5px;
}

.group-pick-check {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  place-items: center;
  border: 1.5px solid #d1d1d6;
  border-radius: 50%;
  color: #fff;
}

.group-pick-check .icon {
  width: 13px;
  height: 13px;
}

.group-pick.selected .group-pick-check {
  border-color: var(--blue);
  background: var(--blue);
}

.group-create-btn {
  width: 100%;
  height: 47px;
  margin-top: 14px;
  border-radius: 13px;
  background: var(--blue);
  color: #fff;
  font-size: 13.5px;
  font-weight: 650;
}

.group-create-btn:disabled {
  background: #d9d9df;
  color: #fff;
}

@media (min-width: 760px) and (min-height: 720px) {
  body {
    background: #f2f2f7;
  }

  #app {
    border-radius: 44px;
    box-shadow:
      0 0 0 9px #171d28,
      0 0 0 11px #3b4352,
      0 40px 90px rgba(16, 24, 40, 0.35);
  }

  .tabbar {
    border-radius: 0 0 31px 31px;
  }
}

