:root {
  --ink: #17203a;
  --muted: #8790a6;
  --line: #e9edf5;
  --soft: #f5f7fc;
  --blue: #246bfe;
  --blue-dark: #1555df;
  --violet: #7857ff;
  --success: #15a771;
  --warning: #f29b37;
  --danger: #e65d6e;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: #eef3ff; }
body {
  min-height: 100%;
  margin: 0;
  background:
    radial-gradient(circle at 18% 4%, rgba(71, 132, 255, .16), transparent 24rem),
    radial-gradient(circle at 82% 92%, rgba(124, 87, 255, .13), transparent 28rem),
    #f3f6fc;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea { font: inherit; }
button { border: 0; color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .48; }
img, video { display: block; }
[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important;
  overflow: hidden;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  margin: -1px;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.app-shell {
  position: relative;
  width: min(100%, 460px);
  min-height: 100dvh;
  margin: 0 auto;
  overflow-x: hidden;
  background: #f7f9fd;
  box-shadow: 0 0 70px rgba(33, 66, 131, .13);
}

.feed-header,
.page-header {
  position: sticky;
  z-index: 40;
  top: 0;
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  align-items: center;
  min-height: 74px;
  padding: max(10px, env(safe-area-inset-top)) 16px 7px;
  border-bottom: 1px solid rgba(226, 231, 242, .8);
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(20px);
}

.page-header { min-height: 64px; padding-inline: 12px; }
.page-header > strong { text-align: center; font-size: 17px; letter-spacing: -.02em; }
.page-header.is-transparent { position: absolute; right: 0; left: 0; border: 0; background: transparent; backdrop-filter: none; color: white; }
.header-right { display: flex; min-width: 44px; justify-content: flex-end; }

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid #dce7ff;
  border-radius: 14px;
  background: linear-gradient(145deg, #f4f8ff, #edf0ff);
  color: var(--blue);
  font-size: 20px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.7);
}

.feed-tabs { display: flex; align-items: center; justify-content: center; gap: 31px; }
.feed-tab {
  position: relative;
  min-height: 44px;
  padding: 0 2px;
  background: transparent;
  color: #9aa2b7;
  font-size: 17px;
  font-weight: 680;
}
.feed-tab.is-active { color: var(--ink); }
.feed-tab.is-active::after {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 22px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--violet));
  content: '';
  transform: translateX(-50%);
}

.me-avatar-button { position: relative; justify-self: end; padding: 0; border-radius: 14px; background: transparent; }
.unread-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  border: 2px solid white;
  border-radius: 50%;
  background: #ff5570;
}

.feed-list, .profile-body { display: grid; gap: 10px; padding: 10px 0 112px; }
.post-card { padding: 18px 16px 11px; background: white; }
.post-card.is-compact { margin-bottom: 0; }
.post-author-row { display: flex; align-items: center; gap: 8px; }
.author-button { display: flex; min-width: 0; flex: 1; align-items: center; gap: 11px; padding: 0; background: transparent; text-align: left; }

.avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 2px solid rgba(255,255,255,.85);
  border-radius: 16px;
  background: var(--avatar-gradient);
  color: white;
  font-weight: 760;
  box-shadow: 0 7px 16px rgba(42, 68, 128, .16);
}
.avatar-small { width: 40px; height: 40px; border-radius: 13px; font-size: 14px; }
.avatar-medium { width: 47px; height: 47px; font-size: 16px; }
.avatar-large { width: 62px; height: 62px; border-radius: 20px; font-size: 21px; }
.avatar-hero { width: 82px; height: 82px; border-width: 4px; border-radius: 26px; font-size: 27px; box-shadow: 0 15px 36px rgba(25, 54, 127, .24); }

.author-copy { display: grid; min-width: 0; gap: 4px; }
.author-copy strong { overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.author-copy small { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }

.visibility-pill {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  background: #f2f5fb;
  color: #8a93a9;
  font-size: 10px;
  font-weight: 650;
}
.visibility-followers { background: #ecf8f5; color: #269679; }
.visibility-following { background: #fff5e8; color: #d48426; }
.visibility-private { background: #f4f0ff; color: #7c5ee0; }

.post-content-link { display: block; width: 100%; padding: 0; background: transparent; text-align: left; }
.post-content-link:focus-visible { border-radius: 10px; outline: 3px solid #dbe7ff; outline-offset: 2px; }
.post-text { margin: 14px 1px 13px; color: #20283d; font-size: 15px; line-height: 1.72; white-space: pre-wrap; }
.media-gallery { display: grid; gap: 4px; overflow: hidden; border-radius: 17px; background: #eef2f8; }
.media-count-one { grid-template-columns: 1fr; }
.media-count-one .media-item { aspect-ratio: 1.16; }
.media-count-one .media-item:has(video) { aspect-ratio: 16 / 10; background: #111827; }
.media-count-two { grid-template-columns: 1fr 1fr; }
.media-count-two .media-item { aspect-ratio: .78; }
.media-count-grid { grid-template-columns: repeat(3, 1fr); }
.media-count-grid .media-item { aspect-ratio: 1; }
.media-item { position: relative; min-width: 0; overflow: hidden; padding: 0; background: linear-gradient(145deg, #e7edfa, #f3f5fb); cursor: pointer; }
.media-content { width: 100%; height: 100%; object-fit: cover; }
.media-item video { pointer-events: none; }
.detail-screen .media-item { cursor: zoom-in; }
.media-missing { display: grid; width: 100%; height: 100%; place-items: center; color: var(--muted); font-size: 12px; }
.video-chip { position: absolute; top: 10px; left: 10px; padding: 5px 8px; border-radius: 8px; background: rgba(11,20,44,.72); color: white; font-size: 10px; backdrop-filter: blur(6px); }

.post-actions { display: flex; align-items: center; min-height: 53px; gap: 7px; padding-top: 7px; }
.post-actions button { display: flex; min-width: 70px; min-height: 44px; align-items: center; gap: 6px; padding: 0 6px; background: transparent; color: #727c94; font-size: 12px; }
.post-actions button span { font-size: 22px; line-height: 1; }
.post-actions .comment-action-icon { position: relative; width: 21px; height: 17px; border: 2px solid currentColor; border-radius: 8px; font-size: 0; }
.post-actions .comment-action-icon::after { position: absolute; bottom: -5px; left: 3px; width: 7px; height: 7px; border-bottom: 2px solid currentColor; border-left: 2px solid currentColor; background: white; content: ''; transform: skewY(-35deg) rotate(-12deg); }
.post-actions button.is-liked { color: #ed5470; }
.post-actions .share-action { min-width: 60px; margin-left: auto; justify-content: flex-end; }
.post-actions .share-action span { font-size: 18px; }

.review-notice { display: flex; gap: 10px; margin-top: 12px; padding: 12px; border-radius: 13px; background: #fff8eb; color: #9a6b24; }
.review-notice > span { display: grid; flex: 0 0 25px; width: 25px; height: 25px; place-items: center; border-radius: 50%; background: rgba(245,170,50,.17); font-size: 14px; font-weight: 800; }
.review-notice strong { font-size: 12px; }
.review-notice p { margin: 3px 0 0; font-size: 11px; line-height: 1.45; }
.review-notice.is-rejected { background: #fff1f3; color: #ba4559; }
.review-notice.is-rejected > span { background: rgba(224,83,104,.15); }

.compose-fab {
  position: fixed;
  z-index: 30;
  right: max(20px, calc((100vw - 460px) / 2 + 20px));
  bottom: max(25px, env(safe-area-inset-bottom));
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  border-radius: 21px;
  background: linear-gradient(145deg, var(--blue), var(--violet));
  color: white;
  box-shadow: 0 15px 34px rgba(56, 90, 235, .36);
}
.compose-fab span { font-size: 34px; font-weight: 250; line-height: 1; transform: translateY(-1px); }
.compose-fab:active, .primary-button:active, .follow-button:active { transform: scale(.97); }

.icon-button { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 14px; background: rgba(255,255,255,.86); color: inherit; font-size: 21px; }
.back-button { justify-self: start; background: transparent; font-size: 24px; }
.text-action { min-height: 44px; padding: 0 5px; background: transparent; color: var(--blue); font-size: 14px; font-weight: 750; }

.compose-screen { min-height: 100dvh; padding-bottom: 126px; background: #fff; }
.compose-editor { position: relative; padding: 17px 18px 8px; }
.compose-editor textarea { width: 100%; min-height: 170px; resize: none; border: 0; outline: none; background: transparent; color: var(--ink); font-size: 17px; line-height: 1.7; }
.compose-editor textarea::placeholder { color: #b2b9c9; }
.character-count { position: absolute; top: 181px; right: 20px; color: #aab1c1; font-size: 11px; }
.character-count.is-warning { color: var(--warning); }

.compose-media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 13px; }
.compose-media-grid.has-one { grid-template-columns: minmax(0, 190px) 1fr 1fr; }
.compose-preview, .add-media { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 15px; }
.compose-preview img, .compose-preview video { width: 100%; height: 100%; object-fit: cover; }
.compose-preview > button { position: absolute; top: 6px; right: 6px; display: grid; width: 26px; height: 26px; place-items: center; border-radius: 9px; background: rgba(10,17,38,.72); color: white; font-size: 18px; backdrop-filter: blur(5px); }
.compose-preview > span { position: absolute; bottom: 6px; left: 6px; padding: 4px 7px; border-radius: 7px; background: rgba(10,17,38,.65); color: white; font-size: 9px; }
.add-media { display: grid; place-content: center; gap: 5px; border: 1px dashed #a9c2ff; background: linear-gradient(145deg, #f5f8ff, #eff2ff); color: var(--blue); }
.add-media span { font-size: 28px; font-weight: 250; }
.add-media small { color: #7791c8; font-size: 10px; }
.media-hint { margin: 9px 1px 0; color: #a4acbd; font-size: 11px; }

.compose-options { border-top: 10px solid #f5f7fb; }
.location-picker { border-bottom: 1px solid #eef1f6; }
.visibility-static-title { display: grid; gap: 5px; padding: 17px 18px 12px; background: white; }
.visibility-static-title strong { font-size: 15px; }
.visibility-static-title small { color: var(--muted); font-size: 11px; line-height: 1.45; }
.visibility-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 0 18px 16px; background: white; }
.visibility-choice { display: grid; min-height: 72px; place-items: center; align-content: center; gap: 7px; border: 1px solid #edf0f6; border-radius: 15px; background: #f8f9fc; color: #7e879b; }
.visibility-choice > span { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 10px; background: white; font-size: 16px; }
.visibility-choice strong { font-size: 11px; }
.visibility-choice.is-selected { border-color: #bcd0ff; background: #edf4ff; color: var(--blue); box-shadow: inset 0 0 0 1px rgba(36,107,254,.06); }
.option-row { display: grid; width: 100%; grid-template-columns: 39px 1fr auto; align-items: center; gap: 11px; padding: 16px 18px; background: white; text-align: left; }
.option-icon { display: grid; width: 37px; height: 37px; place-items: center; border-radius: 13px; background: #eef4ff; color: var(--blue); font-size: 18px; }
.option-row > span:nth-child(2) { display: grid; gap: 3px; }
.option-row strong { font-size: 14px; }
.option-row small { color: var(--muted); font-size: 10px; }
.option-row b { color: var(--blue); font-size: 12px; }
.audit-tip { display: none; align-items: center; gap: 10px; margin: 0 18px 16px; padding: 12px; border-radius: 13px; background: #edf4ff; color: #4f6f9f; }
.audit-tip.is-visible { display: flex; }
.audit-tip > span { display: grid; flex: 0 0 24px; width: 24px; height: 24px; place-items: center; border-radius: 50%; background: #d9e8ff; color: var(--blue); font-size: 11px; font-weight: 800; }
.audit-tip p { margin: 0; font-size: 11px; line-height: 1.5; }
.audit-tip strong { display: block; color: #31588f; }

.compose-footer { position: fixed; z-index: 25; right: max(0px, calc((100vw - 460px) / 2)); bottom: 0; left: max(0px, calc((100vw - 460px) / 2)); padding: 12px 18px max(13px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255,255,255,.94); backdrop-filter: blur(18px); }
.primary-button { width: 100%; min-height: 50px; border-radius: 16px; background: linear-gradient(110deg, var(--blue), var(--violet)); color: white; font-size: 15px; font-weight: 750; box-shadow: 0 12px 26px rgba(50,91,223,.23); }
.compose-footer p { margin: 7px 0 0; color: var(--muted); font-size: 9px; text-align: center; }

.sheet-backdrop { position: fixed; z-index: 90; inset: 0; display: flex; align-items: flex-end; justify-content: center; background: rgba(17,25,48,.37); backdrop-filter: blur(3px); }
.bottom-sheet { display: flex; width: min(100%, 460px); max-height: min(86dvh, 680px); flex-direction: column; padding: 9px 16px max(18px, env(safe-area-inset-bottom)); border-radius: 25px 25px 0 0; background: white; box-shadow: 0 -20px 50px rgba(20,37,78,.15); animation: sheet-up .2s ease-out; }
.sheet-handle { width: 38px; height: 4px; margin: 0 auto 10px; border-radius: 999px; background: #dce1ec; }
.sheet-heading { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 4px; }
.sheet-heading strong { font-size: 17px; }
.sheet-heading button { width: 40px; height: 40px; border-radius: 13px; background: #f3f5f9; color: #737d94; font-size: 21px; }
.search-field { display: grid; min-height: 46px; grid-template-columns: 35px minmax(0, 1fr); align-items: center; border: 1px solid #e4e9f2; border-radius: 14px; background: #f5f7fb; }
.search-field:focus-within { border-color: #acc6ff; background: white; box-shadow: 0 0 0 3px #edf3ff; }
.search-field-icon { position: relative; display: block; width: 15px; height: 15px; justify-self: end; border: 2px solid #8c96aa; border-radius: 50%; }
.search-field-icon::after { position: absolute; right: -5px; bottom: -3px; width: 7px; height: 2px; border-radius: 2px; background: #8c96aa; content: ''; transform: rotate(45deg); transform-origin: left center; }
.search-field input { width: 100%; min-width: 0; min-height: 44px; padding: 0 13px 0 9px; border: 0; outline: none; background: transparent; color: var(--ink); font-size: 13px; }
.search-field input::placeholder { color: #a5adbd; }
.location-search { flex: 0 0 auto; margin: 0 0 12px; }
.location-list { display: grid; min-height: 0; gap: 1px; overflow: hidden auto; border-radius: 16px; background: #eef1f6; }
.location-option { display: grid; min-height: 58px; grid-template-columns: 38px 1fr 28px; align-items: center; gap: 9px; padding: 8px 13px; background: white; text-align: left; }
.location-option > span { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 12px; background: #f2f5fb; color: #7d889f; font-size: 17px; }
.location-option strong { font-size: 13px; }
.location-option b { color: var(--blue); font-size: 15px; text-align: center; }
.location-option.is-selected { color: var(--blue); }
.location-option.is-selected > span { background: #eaf2ff; color: var(--blue); }
.inline-empty { padding: 28px 16px; color: var(--muted); font-size: 12px; text-align: center; }
.visibility-option { display: grid; width: 100%; grid-template-columns: 45px 1fr 28px; align-items: center; gap: 10px; min-height: 68px; padding: 9px 5px; border-top: 1px solid #f0f2f6; background: white; text-align: left; }
.visibility-option-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 14px; background: #f1f5fc; color: #78849c; font-size: 18px; }
.visibility-option > span:nth-child(2) { display: grid; gap: 3px; }
.visibility-option strong { font-size: 14px; }
.visibility-option small { color: var(--muted); font-size: 10px; }
.visibility-option > b { color: var(--blue); font-size: 17px; }
.visibility-option.is-selected .visibility-option-icon { background: #e9f1ff; color: var(--blue); }
.visibility-option.is-selected strong { color: var(--blue); }

.detail-screen { min-height: 100dvh; padding-bottom: 78px; }
.detail-screen > .post-card { border-bottom: 1px solid var(--line); }
.likes-summary { display: flex; gap: 9px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); background: white; }
.likes-summary > span { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 10px; background: #fff0f3; color: #ed5470; }
.likes-summary p { margin: 0; color: #667189; font-size: 11px; line-height: 1.4; }
.comments-section { margin-top: 9px; padding: 0 16px 22px; background: white; }
.section-heading { display: flex; min-height: 54px; align-items: center; gap: 7px; border-bottom: 1px solid #f1f3f7; }
.section-heading strong { font-size: 15px; }
.section-heading span { color: var(--muted); font-size: 11px; }
.comment-row { display: grid; grid-template-columns: 40px 1fr; gap: 11px; padding: 16px 0; border-bottom: 1px solid #f1f3f7; }
.comment-row > button { align-self: start; padding: 0; border-radius: 13px; background: transparent; }
.comment-row > div { display: grid; gap: 5px; }
.comment-row strong { color: #52617c; font-size: 12px; }
.comment-row p { margin: 0; font-size: 14px; line-height: 1.55; }
.comment-row small { color: #a4acbd; font-size: 10px; }
.comment-composer { position: fixed; z-index: 30; right: max(0px, calc((100vw - 460px) / 2)); bottom: 0; left: max(0px, calc((100vw - 460px) / 2)); display: grid; grid-template-columns: 1fr 58px; gap: 8px; padding: 10px 14px max(10px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(16px); }
.comment-composer input { width: 100%; min-height: 43px; padding: 0 14px; border: 1px solid #e4e8f1; border-radius: 14px; outline: none; background: #f5f7fb; font-size: 13px; }
.comment-composer input:focus { border-color: #aac4ff; background: white; box-shadow: 0 0 0 3px #edf3ff; }
.comment-composer button { border-radius: 13px; background: var(--blue); color: white; font-size: 13px; font-weight: 700; }

.media-lightbox { position: fixed; z-index: 200; inset: 0; display: grid; grid-template-rows: 1fr auto; place-items: center; padding: max(70px, env(safe-area-inset-top)) 18px max(28px, env(safe-area-inset-bottom)); background: rgba(7, 11, 22, .96); color: white; }
.lightbox-stage { display: grid; width: min(100%, 900px); height: min(76vh, 800px); place-items: center; }
.lightbox-media { max-width: 100%; max-height: 100%; border-radius: 8px; object-fit: contain; box-shadow: 0 20px 60px rgba(0,0,0,.34); }
video.lightbox-media { width: 100%; background: #000; pointer-events: auto; }
.lightbox-close { position: fixed; top: max(17px, env(safe-area-inset-top)); right: max(17px, calc((100vw - 460px) / 2 + 17px)); display: grid; width: 44px; height: 44px; place-items: center; border-radius: 14px; background: rgba(255,255,255,.14); color: white; font-size: 28px; backdrop-filter: blur(12px); }
.media-lightbox > p { margin: 15px 0 0; color: rgba(255,255,255,.72); font-size: 11px; text-align: center; }

.profile-screen { min-height: 100dvh; background: #f6f8fc; }
.profile-hero { position: relative; overflow: hidden; min-height: 378px; background: linear-gradient(150deg, #195de5 0%, #506ff5 52%, #7256dd 100%); color: white; }
.profile-aurora { position: absolute; inset: 0; opacity: .9; background: radial-gradient(circle at 20% 30%, rgba(86,211,255,.65), transparent 36%), radial-gradient(circle at 83% 10%, rgba(194,150,255,.5), transparent 36%), radial-gradient(circle at 80% 82%, rgba(45,49,170,.4), transparent 40%); }
.profile-content { position: relative; display: flex; flex-direction: column; align-items: center; padding: 83px 24px 28px; text-align: center; }
.profile-content h1 { margin: 14px 0 3px; font-size: 23px; letter-spacing: -.04em; }
.profile-handle { opacity: .72; font-size: 11px; }
.profile-content > p { max-width: 310px; min-height: 40px; margin: 13px 0 16px; opacity: .9; font-size: 12px; line-height: 1.55; }
.profile-stats { display: flex; gap: 42px; }
.profile-stats > span, .profile-stats > button { display: grid; min-width: 48px; min-height: 44px; place-content: center; gap: 2px; padding: 0; border-radius: 12px; background: transparent; color: inherit; }
.profile-stats > button:active { background: rgba(255,255,255,.12); }
.profile-stats > button:focus-visible { outline: 2px solid rgba(255,255,255,.75); outline-offset: 2px; }
.profile-stats strong { font-size: 18px; }
.profile-stats small { opacity: .72; font-size: 10px; }
.follow-button { min-width: 138px; min-height: 43px; margin-top: 17px; border-radius: 14px; background: white; color: var(--blue); font-size: 13px; font-weight: 750; box-shadow: 0 10px 24px rgba(17,41,115,.2); }
.follow-button.is-followed { background: rgba(255,255,255,.15); color: white; box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); backdrop-filter: blur(8px); }
.notification-button { position: relative; background: rgba(255,255,255,.16); color: white; backdrop-filter: blur(8px); }
.notification-button > .message-icon { position: relative; width: 22px; height: 17px; border: 2px solid currentColor; border-radius: 7px; }
.notification-button > .message-icon::after { position: absolute; bottom: -5px; left: 4px; width: 7px; height: 7px; border-bottom: 2px solid currentColor; border-left: 2px solid currentColor; content: ''; transform: skewY(-36deg) rotate(-12deg); }
.notification-button > .message-unread-dot { position: absolute; top: 7px; right: 7px; width: 9px; height: 9px; border: 2px solid #5e6ae6; border-radius: 50%; background: #ff5570; }

.profile-tabs { position: sticky; z-index: 20; top: 0; display: grid; grid-template-columns: repeat(3, 1fr); min-height: 58px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.94); backdrop-filter: blur(18px); }
.profile-tabs button { position: relative; background: transparent; color: #858ea4; font-size: 13px; font-weight: 650; }
.profile-tabs button span { margin-left: 2px; font-size: 9px; }
.profile-tabs button.is-active { color: var(--ink); }
.profile-tabs button.is-active::after { position: absolute; bottom: 0; left: 50%; width: 23px; height: 3px; border-radius: 99px; background: linear-gradient(90deg, var(--blue), var(--violet)); content: ''; transform: translateX(-50%); }
.profile-section-title { display: flex; align-items: center; gap: 6px; min-height: 57px; padding: 0 17px; background: white; }
.profile-section-title strong { font-size: 14px; }
.profile-section-title span { color: var(--muted); font-size: 10px; }
.profile-body { padding-top: 9px; }
.activity-list { display: grid; gap: 1px; }
.activity-card { display: grid; width: 100%; grid-template-columns: 40px 1fr 18px; align-items: start; gap: 11px; padding: 16px; background: white; text-align: left; }
.activity-card > span { display: grid; min-width: 0; gap: 6px; }
.activity-card small { color: var(--muted); font-size: 10px; }
.activity-card strong { font-size: 13px; line-height: 1.45; }
.activity-card em { overflow: hidden; padding: 9px 10px; border-radius: 9px; background: #f4f6fa; color: #8b94a8; font-size: 10px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.activity-card > b { align-self: center; color: #b7bdca; font-size: 20px; font-weight: 400; }
.reset-demo { display: block; min-height: 44px; margin: -92px auto 28px; padding: 0 18px; border-radius: 14px; background: transparent; color: #9ca5b6; font-size: 11px; }

.relations-screen { min-height: 100dvh; background: #f6f8fc; }
.relation-summary { display: flex; min-height: 68px; align-items: center; justify-content: space-between; padding: 0 17px; border-bottom: 1px solid var(--line); background: white; }
.relation-summary strong { font-size: 15px; }
.relation-summary span { color: var(--muted); font-size: 11px; }
.relation-search-wrap { padding: 12px 16px 4px; background: white; }
.relation-list { display: grid; gap: 1px; padding-top: 9px; }
.relation-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 91px; padding: 14px 16px; background: white; }
.relation-person { display: grid; min-width: 0; grid-template-columns: 47px minmax(0, 1fr); align-items: center; gap: 11px; padding: 0; background: transparent; text-align: left; }
.relation-person > span { display: grid; min-width: 0; gap: 3px; }
.relation-person strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.relation-person small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.relation-person p { overflow: hidden; margin: 2px 0 0; color: #69748b; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.relation-follow-button { min-width: 74px; min-height: 38px; padding: 0 12px; border-radius: 12px; background: var(--blue); color: white; font-size: 11px; font-weight: 700; }
.relation-follow-button.is-followed { border: 1px solid #e1e6f0; background: white; color: #727d94; }
.relation-search-empty { display: grid; min-height: 210px; place-content: center; background: white; }

.messages-screen { min-height: 100dvh; background: #f6f8fc; }
.message-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 18px 16px; background: white; }
.message-tabs button { display: grid; place-items: center; gap: 6px; min-height: 80px; border: 1px solid #eef1f7; border-radius: 17px; background: #fafbfe; color: #8a94a9; }
.message-tabs button > span { position: relative; display: grid; width: 38px; height: 38px; place-items: center; border-radius: 13px; background: white; font-size: 18px; box-shadow: 0 5px 15px rgba(46,65,109,.06); }
.message-tabs button i { position: absolute; top: -5px; right: -6px; display: grid; min-width: 17px; height: 17px; place-items: center; padding: 0 4px; border: 2px solid white; border-radius: 9px; background: #ff5570; color: white; font-size: 8px; font-style: normal; }
.message-tabs button strong { font-size: 11px; }
.message-tabs button.is-active { border-color: #d8e5ff; background: #f0f5ff; color: var(--blue); }
.notification-list { display: grid; gap: 1px; padding-top: 9px; }
.notification-row { position: relative; display: grid; width: 100%; grid-template-columns: 47px 1fr 76px; align-items: center; gap: 11px; min-height: 88px; padding: 14px 16px; background: white; text-align: left; }
.notification-row.is-unread::before { position: absolute; top: 16px; left: 9px; width: 6px; height: 6px; border-radius: 50%; background: #ff5570; content: ''; }
.system-avatar { display: grid; width: 47px; height: 47px; place-items: center; border-radius: 16px; background: linear-gradient(145deg, #e9f2ff, #eeebff); color: var(--blue); font-size: 20px; }
.notification-copy { display: grid; min-width: 0; gap: 4px; }
.notification-copy strong { font-size: 12px; }
.notification-copy p { overflow: hidden; margin: 0; font-size: 12px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.notification-copy small { color: #a1a9ba; font-size: 9px; }
.notification-post { overflow: hidden; padding: 9px; border-radius: 10px; background: #f3f5f9; color: #949caf; font-size: 9px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }

.empty-state { display: flex; min-height: 300px; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px; background: white; color: var(--muted); text-align: center; }
.empty-icon { display: grid; width: 70px; height: 70px; margin-bottom: 14px; place-items: center; border-radius: 24px; background: linear-gradient(145deg, #eef4ff, #f0edff); color: var(--blue); font-size: 28px; }
.empty-state strong { color: #515c73; font-size: 14px; }
.empty-state p { max-width: 250px; margin: 7px 0 0; font-size: 11px; line-height: 1.5; }

.toast { position: fixed; z-index: 120; top: max(18px, env(safe-area-inset-top)); left: 50%; display: flex; max-width: min(390px, calc(100vw - 36px)); min-height: 45px; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; background: rgba(25,34,57,.92); color: white; font-size: 12px; box-shadow: 0 14px 34px rgba(17,31,64,.28); backdrop-filter: blur(18px); transform: translateX(-50%); animation: toast-in .18s ease-out; }
.toast > span { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 8px; background: rgba(255,255,255,.12); font-size: 11px; }
.toast-success { background: rgba(12,128,88,.94); }
.toast-warning { background: rgba(181,108,25,.94); }

@keyframes sheet-up { from { transform: translateY(40px); opacity: .6; } }
@keyframes toast-in { from { transform: translate(-50%, -12px); opacity: 0; } }

@media (max-width: 520px) {
  body { background: #f7f9fd; }
  .app-shell { box-shadow: none; }
  .compose-fab { right: 20px; }
  .compose-footer, .comment-composer { right: 0; left: 0; }
}

@media (max-width: 350px) {
  .feed-tabs { gap: 18px; }
  .post-card { padding-inline: 13px; }
  .profile-stats { gap: 20px; }
  .relation-row { gap: 7px; padding-inline: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
