/* Member presentation only. Auth screens keep their existing styles and tokens. */
body:not(.auth-entry):has(#member-view:not([hidden])) {
  --ios-bg: #f5f6f8;
  --ios-surface: #fff;
  --ios-secondary: #f0f2f6;
  --ios-elevated: #fff;
  --ios-ink: #1c1c1e;
  --ios-muted: #686873;
  --ios-line: rgba(60, 60, 67, .12);
  --ios-blue: #0068df;
  --ios-blue-soft: rgba(0, 104, 223, .08);
  --ios-shadow: 0 4px 24px rgba(24, 39, 66, .035), 0 1px 3px rgba(24, 39, 66, .025);
  --app-bg: var(--ios-bg);
  --app-panel: var(--ios-surface);
  --app-panel-soft: var(--ios-secondary);
  --app-elevated: var(--ios-elevated);
  --app-input: var(--ios-secondary);
  --app-text: var(--ios-ink);
  --app-muted: var(--ios-muted);
  --app-footer-text: var(--ios-muted);
  --app-line: var(--ios-line);
  --app-line-strong: rgba(60, 60, 67, .23);
  --app-accent: var(--ios-blue);
  --app-accent-strong: #0068df;
  --app-header-bg: rgba(245, 246, 248, .9);
  --app-media: #101115;
  --app-surface: var(--ios-surface);
  --app-border: var(--ios-line);
  --app-shadow: var(--ios-shadow);
  --app-good: #16865d;
  --app-bad: #d83851;
  --rail-width: 232px;
  --stream-width: 660px;
  --context-width: 280px;
  background: var(--ios-bg);
  color: var(--ios-ink);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

html[data-theme="dark"] body:not(.auth-entry):has(#member-view:not([hidden])) {
  --ios-bg: #111214;
  --ios-surface: #1c1d21;
  --ios-secondary: #27282e;
  --ios-elevated: #303138;
  --ios-ink: #f5f5f7;
  --ios-muted: #a6a6b1;
  --ios-line: rgba(235, 235, 245, .11);
  --ios-blue: #64a7ff;
  --ios-blue-soft: rgba(10, 132, 255, .13);
  --ios-shadow: 0 4px 24px rgba(0, 0, 0, .1), 0 1px 3px rgba(0, 0, 0, .08);
  --app-line-strong: rgba(235, 235, 245, .22);
  --app-accent-strong: #0068df;
  --app-header-bg: rgba(17, 18, 20, .9);
  --app-good: #5cd6a0;
  --app-bad: #ff7990;
}

body:not(.auth-entry):has(#member-view:not([hidden])) .app-layout {
  width: min(1300px, calc(100% - 40px));
  grid-template-columns: var(--rail-width) minmax(0, var(--stream-width)) minmax(240px, var(--context-width));
  gap: 28px;
  min-height: 100dvh;
  background: transparent;
}
body:not(.auth-entry):has(#member-view:not([hidden])) .primary-rail {
  min-width: 0;
  border: 0;
  background: transparent;
}
body:not(.auth-entry):has(#member-view:not([hidden])) .primary-rail-inner {
  min-height: 100dvh;
  max-height: 100dvh;
  padding: 28px 0 18px;
}
body:not(.auth-entry):has(#member-view:not([hidden])) .desktop-brand {
  gap: 10px;
  min-height: 48px;
  margin: 0 12px 26px;
  color: var(--ios-ink);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.055em;
}
body:not(.auth-entry):has(#member-view:not([hidden])) .desktop-brand img { width: 43px; height: auto; }
body:not(.auth-entry):has(#member-view:not([hidden])) .primary-rail-scroll { padding: 0 4px 18px 0; }
body:not(.auth-entry):has(#member-view:not([hidden])) .app-nav { gap: 5px; }
body:not(.auth-entry):has(#member-view:not([hidden])) .primary-rail .nav-item {
  position: relative;
  min-height: 48px;
  gap: 14px;
  padding: 11px 15px;
  border: 1px solid transparent;
  border-radius: 15px;
  color: var(--ios-muted);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 550;
  letter-spacing: -.015em;
  transition: background-color 160ms ease, color 160ms ease;
}
body:not(.auth-entry):has(#member-view:not([hidden])) .primary-rail .nav-item:hover { background: var(--ios-secondary); color: var(--ios-ink); }
body:not(.auth-entry):has(#member-view:not([hidden])) .primary-rail .nav-item.active {
  color: var(--ios-blue);
  background: var(--ios-blue-soft);
  font-weight: 650;
}
body:not(.auth-entry):has(#member-view:not([hidden])) .primary-rail-secondary,
body:not(.auth-entry):has(#member-view:not([hidden])) .primary-rail-systems { margin-top: 21px; padding-top: 17px; border-color: var(--ios-line); }
body:not(.auth-entry):has(#member-view:not([hidden])) .primary-rail-secondary .nav-item,
body:not(.auth-entry):has(#member-view:not([hidden])) .primary-rail-systems .nav-item { min-height: 40px; font-size: 12px; gap: 12px; padding-block: 9px; }
body:not(.auth-entry):has(#member-view:not([hidden])) .primary-rail-section-title { color: var(--ios-muted); font-size: 10px; font-weight: 600; letter-spacing: .06em; }
body:not(.auth-entry):has(#member-view:not([hidden])) .share-sauti-button {
  min-height: 48px;
  margin: 20px 0 0;
  border-radius: 16px;
  background: var(--app-accent-strong);
  color: #fff;
  font-size: 14px;
  font-weight: 650;
  box-shadow: 0 5px 14px rgba(0, 114, 238, .16);
}
body:not(.auth-entry):has(#member-view:not([hidden])) .rail-account {
  min-width: 0;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--ios-line);
  border-radius: 18px;
  background: var(--ios-surface);
  box-shadow: var(--ios-shadow);
}
body:not(.auth-entry):has(#member-view:not([hidden])) .rail-account-copy strong { font-size: 12px; font-weight: 650; }
body:not(.auth-entry):has(#member-view:not([hidden])) .rail-account-copy small { margin-top: 3px; color: var(--ios-muted); font-size: 11px; }
body:not(.auth-entry):has(#member-view:not([hidden])) .avatar { border-color: var(--ios-line); background: var(--ios-blue-soft); color: var(--ios-blue); }

/* The feed stays central; quiet surfaces make the content the focus. */
body:not(.auth-entry):has(#member-view:not([hidden])) .stream-column { border: 0; background: transparent; }
body:not(.auth-entry):has(#member-view:not([hidden])) .stream-header {
  min-height: 94px;
  padding: 22px 4px 18px;
  border: 0;
  background: var(--app-header-bg);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
}
body:not(.auth-entry):has(#member-view:not([hidden])) .stream-header h1 { color: var(--ios-ink); font-size: 29px; font-weight: 700; letter-spacing: -.055em; line-height: 1.2; }
body:not(.auth-entry):has(#member-view:not([hidden])) .home-feed-tabs {
  top: 94px;
  min-height: 48px;
  gap: 4px;
  margin: 0 0 18px;
  padding: 4px;
  border: 1px solid var(--ios-line);
  border-radius: 16px;
  background: var(--ios-secondary);
  box-shadow: none;
}
body:not(.auth-entry):has(#member-view:not([hidden])) .home-feed-tab { min-height: 38px; border-radius: 11px; color: var(--ios-muted); font-size: 12px; font-weight: 600; }
body:not(.auth-entry):has(#member-view:not([hidden])) .home-feed-tab.active { background: var(--ios-surface); color: var(--ios-ink); box-shadow: 0 2px 5px rgba(0, 0, 0, .06); }
body:not(.auth-entry):has(#member-view:not([hidden])) .home-feed-tab::after { content: none; }
body:not(.auth-entry):has(#member-view:not([hidden])) .stream-feed { padding: 0 0 30px; background: transparent; }
body:not(.auth-entry):has(#member-view:not([hidden])) .sauti-card {
  margin: 0 0 20px;
  border: 1px solid var(--ios-line);
  border-radius: 23px;
  background: var(--ios-surface);
  box-shadow: var(--ios-shadow);
}
body:not(.auth-entry):has(#member-view:not([hidden])) .sauti-card:hover { background: var(--ios-surface); }
body:not(.auth-entry):has(#member-view:not([hidden])) .sauti-card-head { min-height: 78px; gap: 12px; padding: 16px 19px; }
body:not(.auth-entry):has(#member-view:not([hidden])) .sauti-card-avatar { width: 43px; height: 43px; flex-basis: 43px; border: 1px solid var(--ios-line); background: var(--ios-blue-soft); color: var(--ios-blue); }
body:not(.auth-entry):has(#member-view:not([hidden])) :is(.sauti-card-head .verified-name, .profile-activity-author) { color: var(--ios-ink); font-size: 15px; line-height: 1.3; font-weight: 650; letter-spacing: normal; }
body:not(.auth-entry):has(#member-view:not([hidden])) .sauti-card-head .verified-name > strong { font-weight: inherit; }
body:not(.auth-entry):has(#member-view:not([hidden])) .sauti-card-identity { gap: 3px; }
body:not(.auth-entry):has(#member-view:not([hidden])) .sauti-card-head a,
body:not(.auth-entry):has(#member-view:not([hidden])) .sauti-card-head time { color: var(--ios-muted); font-size: 11px; }
body:not(.auth-entry):has(#member-view:not([hidden])) .sauti-card-body { padding: 0 20px 12px; }
body:not(.auth-entry):has(#member-view:not([hidden])) :is(.sauti-card-body, .sauti-caption, .profile-activity-body) { font-size: 14px; line-height: 1.5; letter-spacing: normal; }
body:not(.auth-entry):has(#member-view:not([hidden])) :is(.sauti-card-body, .sauti-caption-text, .profile-activity-body) strong { font-weight: 700; }
body:not(.auth-entry):has(#member-view:not([hidden])) .sauti-head-follow { min-height: 34px; padding: 7px 12px; border-radius: 10px; color: var(--ios-blue); background: var(--ios-blue-soft); font-size: 11px; font-weight: 650; }
body:not(.auth-entry):has(#member-view:not([hidden])) .sauti-head-follow.following { background: var(--ios-secondary); color: var(--ios-muted); border-color: transparent; }
body:not(.auth-entry):has(#member-view:not([hidden])) .sauti-card-footer { min-height: 57px; padding: 7px 12px 2px; }
body:not(.auth-entry):has(#member-view:not([hidden])) .sauti-caption { margin: 2px 20px 12px; }
body:not(.auth-entry):has(#member-view:not([hidden])) .sauti-caption-author { font-weight: 650; }
body:not(.auth-entry):has(#member-view:not([hidden])) .sauti-card-meta { margin: 6px 20px 15px; font-size: 11px; }
body:not(.auth-entry):has(#member-view:not([hidden])) .sauti-repost-note { padding-inline: 20px; color: var(--ios-muted); font-size: 11px; }
body:not(.auth-entry):has(#member-view:not([hidden])) .sauti-media-gallery { border-color: var(--ios-line); }
body:not(.auth-entry):has(#member-view:not([hidden])) .sauti-head-menu { padding: 6px; border-color: var(--ios-line); border-radius: 17px; background: var(--ios-elevated); box-shadow: 0 12px 44px rgba(0, 0, 0, .15); }
body:not(.auth-entry):has(#member-view:not([hidden])) .sauti-head-menu-item { min-height: 44px; font-weight: 500; }
body:not(.auth-entry):has(#member-view:not([hidden])) .sauti-comments { border-color: var(--ios-line); background: var(--ios-secondary); }

body:not(.auth-entry):has(#member-view:not([hidden])) .ios-quick-compose {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 13px;
  margin: 0 0 18px;
  padding: 16px 18px;
  border: 1px solid var(--ios-line);
  border-radius: 22px;
  background: var(--ios-surface);
  color: var(--ios-muted);
  text-align: left;
  cursor: pointer;
  box-shadow: var(--ios-shadow);
}
body:not(.auth-entry):has(#member-view:not([hidden])) .ios-quick-compose:disabled { opacity: .6; cursor: default; }
body:not(.auth-entry):has(#member-view:not([hidden])) .ios-compose-symbol { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; border-radius: 14px; background: var(--ios-blue-soft); color: var(--ios-blue); }
body:not(.auth-entry):has(#member-view:not([hidden])) .ios-compose-symbol svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
body:not(.auth-entry):has(#member-view:not([hidden])) .ios-quick-compose-copy { flex: 1; min-width: 0; font-size: 13px; }
body:not(.auth-entry):has(#member-view:not([hidden])) .ios-quick-compose-label { color: var(--ios-blue); font-size: 12px; font-weight: 600; }

/* Existing actions and forms keep their interaction contracts. */
body:not(.auth-entry):has(#member-view:not([hidden])) :is(.secondary-action, .follow-button, .profile-primary-action) { min-height: 40px; padding: 9px 15px; border: 1px solid var(--ios-line); border-radius: 12px; background: var(--ios-surface); color: var(--ios-ink); font-size: 12px; font-weight: 600; box-shadow: none; }
body:not(.auth-entry):has(#member-view:not([hidden])) :is(.secondary-action, .follow-button):hover:not(:disabled) { background: var(--ios-secondary); }
body:not(.auth-entry):has(#member-view:not([hidden])) :is(.form-submit, .composer-header #sauti-submit) { border-radius: 13px; background: var(--app-accent-strong); color: #fff; font-weight: 600; }
body:not(.auth-entry):has(#member-view:not([hidden])) :is(.icon-control, .theme-toggle, .sauti-mobile-more-trigger) { width: 40px; height: 40px; border-color: var(--ios-line); background: var(--ios-surface); color: var(--ios-ink); }
body:not(.auth-entry):has(#member-view:not([hidden])) :is(button, a, input, textarea, select):focus-visible { outline: 2px solid var(--ios-blue); outline-offset: 3px; }
body:not(.auth-entry):has(#member-view:not([hidden])) :is(.stream-state, .stream-empty, .welcome-card) { margin: 18px 0; padding: 35px 24px; border: 1px solid var(--ios-line); border-radius: 23px; background: var(--ios-surface); color: var(--ios-ink); box-shadow: var(--ios-shadow); }
body:not(.auth-entry):has(#member-view:not([hidden])) .stream-empty h2 { font-size: 20px; letter-spacing: -.035em; }
body:not(.auth-entry):has(#member-view:not([hidden])) .stream-empty p { color: var(--ios-muted); font-size: 13px; line-height: 1.6; }
body:not(.auth-entry):has(#member-view:not([hidden])) .composer-dialog { border-color: var(--ios-line); border-radius: 27px; background: var(--ios-surface); box-shadow: 0 28px 100px rgba(0, 0, 0, .25); }
body:not(.auth-entry):has(#member-view:not([hidden])) .composer-dialog::backdrop { background: rgba(15, 20, 30, .4); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); }
body:not(.auth-entry):has(#member-view:not([hidden])) .composer-header { min-height: 74px; padding-inline: 17px; border-color: var(--ios-line); }
body:not(.auth-entry):has(#member-view:not([hidden])) .composer-header h2 { font-size: 16px; font-weight: 650; }
body:not(.auth-entry):has(#member-view:not([hidden])) .composer-dialog .composer-card { margin: 0; padding: 0; border: 0; border-radius: 0; background: var(--ios-surface); }
body:not(.auth-entry):has(#member-view:not([hidden])) .composer-content { padding: 22px 23px 0; }
body:not(.auth-entry):has(#member-view:not([hidden])) .composer-dialog .composer-select { border-radius: 10px; border-color: var(--ios-line); background: var(--ios-secondary); }
body:not(.auth-entry):has(#member-view:not([hidden])) .composer-upload-zone { padding: 18px; border: 1px dashed var(--app-line-strong); border-radius: 18px; background: var(--ios-blue-soft); }
body:not(.auth-entry):has(#member-view:not([hidden])) .composer-format-bar { border-radius: 12px; background: var(--ios-secondary); }
body:not(.auth-entry):has(#member-view:not([hidden])) .composer-dialog .composer-body textarea { font-size: 18px; line-height: 1.6; }

/* Useful existing destinations replace an otherwise empty desktop gutter. */
body:not(.auth-entry):has(#member-view:not([hidden])) .context-rail { position: sticky; top: 0; align-self: start; min-width: 0; padding: 31px 0 24px; }
body:not(.auth-entry):has(#member-view:not([hidden])) .context-card { border: 1px solid var(--ios-line); border-radius: 22px; background: var(--ios-surface); box-shadow: var(--ios-shadow); }
body:not(.auth-entry):has(#member-view:not([hidden])) .search-preview { width: 100%; min-height: 48px; gap: 10px; padding: 0 15px; border-radius: 15px; background: var(--ios-surface); color: var(--ios-muted); font-size: 12px; text-align: left; cursor: pointer; }
body:not(.auth-entry):has(#member-view:not([hidden])) .search-preview kbd { color: var(--ios-muted); background: var(--ios-secondary); border-color: var(--ios-line); }
body:not(.auth-entry):has(#member-view:not([hidden])) .ios-space-card { margin-top: 26px; padding: 21px 18px 12px; }
body:not(.auth-entry):has(#member-view:not([hidden])) .ios-space-card h2 { margin: 0; color: var(--ios-ink); font-size: 17px; letter-spacing: -.035em; font-weight: 650; }
body:not(.auth-entry):has(#member-view:not([hidden])) .ios-space-card > p { margin: 5px 0 17px; color: var(--ios-muted); font-size: 11px; line-height: 1.6; }
body:not(.auth-entry):has(#member-view:not([hidden])) .ios-space-link { display: flex; width: 100%; min-height: 68px; align-items: center; gap: 11px; padding: 10px 0; border: 0; border-top: 1px solid var(--ios-line); background: transparent; color: var(--ios-ink); text-align: left; cursor: pointer; }
body:not(.auth-entry):has(#member-view:not([hidden])) .ios-space-link > span:first-child { display: grid; width: 37px; height: 37px; flex: 0 0 37px; place-items: center; border-radius: 12px; background: var(--ios-blue-soft); color: var(--ios-blue); }
body:not(.auth-entry):has(#member-view:not([hidden])) .ios-space-link svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
body:not(.auth-entry):has(#member-view:not([hidden])) .ios-space-link strong { display: block; font-size: 12px; font-weight: 600; }
body:not(.auth-entry):has(#member-view:not([hidden])) .ios-space-link small { display: block; margin-top: 3px; color: var(--ios-muted); font-size: 11px; }
body:not(.auth-entry):has(#member-view:not([hidden])) .ios-space-link::after { width: 6px; height: 6px; margin-left: auto; margin-right: 3px; border-top: 1.5px solid var(--ios-muted); border-right: 1.5px solid var(--ios-muted); content: ''; transform: rotate(45deg); }
body:not(.auth-entry):has(#member-view:not([hidden])) .ios-space-link:hover strong { color: var(--ios-blue); }
body:not(.auth-entry):has(#member-view:not([hidden])) .ios-space-link:nth-of-type(2) > span:first-child { color: #a16900; background: rgba(225, 160, 22, .11); }
body:not(.auth-entry):has(#member-view:not([hidden])) .ios-space-link:nth-of-type(3) > span:first-child { color: #a05ad5; background: rgba(161, 92, 213, .1); }
body:not(.auth-entry):has(#member-view:not([hidden])) .app-footer { gap: 7px 13px; padding: 21px 7px; color: var(--ios-muted); font-size: 10px; line-height: 1.7; }

/* Conversation and Room workspaces use the space normally reserved for shortcuts. */
@media (min-width: 901px) {
  body:not(.auth-entry):has(#member-view:not([hidden])):is(.rooms-facebook-view, :has(#messages-surface:not([hidden]))) .app-layout {
    grid-template-columns: var(--rail-width) minmax(0, 1fr);
  }
  body:not(.auth-entry):has(#member-view:not([hidden])):is(.rooms-facebook-view, :has(#messages-surface:not([hidden]))) .context-rail { display: none; }
}

@media (max-width: 1190px) and (min-width: 901px) {
  body:not(.auth-entry):has(#member-view:not([hidden])) { --rail-width: 76px; --context-width: 250px; }
  body:not(.auth-entry):has(#member-view:not([hidden])) .app-layout { gap: 22px; }
  body:not(.auth-entry):has(#member-view:not([hidden])) .desktop-brand { display: grid; width: 52px; margin: 0 auto 24px; place-items: center; }
  body:not(.auth-entry):has(#member-view:not([hidden])) :is(.desktop-brand span, .primary-rail .nav-item > span, .rail-account-copy, .primary-rail-section-title) { display: none; }
  body:not(.auth-entry):has(#member-view:not([hidden])) .primary-rail .nav-item { justify-content: center; padding-inline: 10px; }
  body:not(.auth-entry):has(#member-view:not([hidden])) .share-sauti-button { display: flex; justify-content: center; width: 52px; margin-inline: auto; padding-inline: 0; }
  body:not(.auth-entry):has(#member-view:not([hidden])) .share-sauti-button span { display: none; }
  body:not(.auth-entry):has(#member-view:not([hidden])) .rail-account { justify-content: center; padding: 10px 5px; }
}
@media (min-width: 681px) and (max-width: 900px) {
  body:not(.auth-entry):has(#member-view:not([hidden])) { --rail-width: 76px; }
  body:not(.auth-entry):has(#member-view:not([hidden])) .app-layout { width: min(790px, calc(100% - 28px)); grid-template-columns: 76px minmax(0, 1fr); gap: 18px; }
  body:not(.auth-entry):has(#member-view:not([hidden])) .primary-rail .nav-item { justify-content: center; padding-inline: 10px; }
  body:not(.auth-entry):has(#member-view:not([hidden])) .desktop-brand { margin-inline: auto; }
  body:not(.auth-entry):has(#member-view:not([hidden])) .share-sauti-button { display: flex; width: 52px; justify-content: center; margin-inline: auto; padding-inline: 0; }
  body:not(.auth-entry):has(#member-view:not([hidden])) .share-sauti-button span { display: none; }
}
@media (min-width: 681px) and (max-width: 1190px) {
  body:not(.auth-entry):has(#member-view:not([hidden])) .primary-rail .nav-item > span:not(.notification-badge) {
    position: absolute;
    display: block;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  body:not(.auth-entry):has(#member-view:not([hidden])) .rail-account { flex-direction: column; gap: 5px; padding: 8px 4px; }
  body:not(.auth-entry):has(#member-view:not([hidden])) .rail-account .icon-control { display: grid; width: 40px; height: 40px; }
  body:not(.auth-entry):has(#member-view:not([hidden])) .primary-rail .nav-item > .notification-badge:not([hidden]) {
    position: absolute;
    top: 4px;
    right: 8px;
    display: grid;
    min-width: 17px;
    height: 17px;
    margin: 0;
    padding-inline: 4px;
    background: var(--app-accent-strong);
    color: #fff;
    font-size: 9px;
  }
}
@media (max-width: 680px) {
  body:not(.auth-entry):has(#member-view:not([hidden])) { padding-bottom: calc(82px + env(safe-area-inset-bottom)); }
  body:not(.auth-entry):has(#member-view:not([hidden])) .app-layout { display: block; width: 100%; min-height: auto; }
  body:not(.auth-entry):has(#member-view:not([hidden])) .mobile-header {
    min-height: 64px;
    height: auto;
    padding: max(9px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 9px max(16px, env(safe-area-inset-left));
    border: 0;
    background: var(--app-header-bg);
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
  }
  body:not(.auth-entry):has(#member-view:not([hidden])) .mobile-header .app-brand { gap: 8px; color: var(--ios-ink); font-size: 21px; font-weight: 700; letter-spacing: -.05em; }
  body:not(.auth-entry):has(#member-view:not([hidden])) .mobile-header .app-brand img { width: 35px; }
  body:not(.auth-entry):has(#member-view:not([hidden])) .mobile-compose-button { width: 39px; height: 39px; border-radius: 13px; background: var(--app-accent-strong); color: #fff; }
  body:not(.auth-entry):has(#member-view:not([hidden])) .stream-header { top: max(64px, calc(55px + env(safe-area-inset-top))); min-height: 66px; padding: 12px 18px 13px; }
  body:not(.auth-entry):has(#member-view:not([hidden])) .stream-header h1 { font-size: 28px; }
  body:not(.auth-entry):has(#member-view:not([hidden])) .home-feed-tabs { top: max(130px, calc(121px + env(safe-area-inset-top))); margin: 0 13px 14px; border-radius: 14px; }
  body:not(.auth-entry):has(#member-view:not([hidden])) .home-feed-tab { min-height: 36px; font-size: 11px; border-radius: 9px; }
  body:not(.auth-entry):has(#member-view:not([hidden])) .stream-feed { padding: 0 12px 16px; }
  body:not(.auth-entry):has(#member-view:not([hidden])) .sauti-card { margin: 0 0 15px; padding: 0; border-radius: 20px; }
  body:not(.auth-entry):has(#member-view:not([hidden])) .sauti-card-head { min-height: 74px; flex-wrap: nowrap; gap: 10px; padding: 13px 14px; }
  body:not(.auth-entry):has(#member-view:not([hidden])) .sauti-card-head time { width: auto; margin-left: 0; font-size: 10px; }
  body:not(.auth-entry):has(#member-view:not([hidden])) .sauti-card-avatar { width: 38px; height: 38px; flex-basis: 38px; }
  body:not(.auth-entry):has(#member-view:not([hidden])) :is(.sauti-card-head .verified-name, .profile-activity-author) { font-size: 14px; }
  body:not(.auth-entry):has(#member-view:not([hidden])) .sauti-card-head a { font-size: 10px; }
  body:not(.auth-entry):has(#member-view:not([hidden])) .sauti-head-follow { padding-inline: 8px; font-size: 10px; }
  body:not(.auth-entry):has(#member-view:not([hidden])) .sauti-card-body { padding: 0 15px 12px; }
  body:not(.auth-entry):has(#member-view:not([hidden])) .sauti-card-footer { padding-inline: 7px; }
  body:not(.auth-entry):has(#member-view:not([hidden])) .sauti-caption { margin-inline: 15px; }
  body:not(.auth-entry):has(#member-view:not([hidden])) .sauti-card-meta { margin-inline: 15px; }
  body:not(.auth-entry):has(#member-view:not([hidden])) .ios-quick-compose { width: calc(100% - 26px); margin: 0 13px 14px; padding: 12px; border-radius: 18px; gap: 10px; }
  body:not(.auth-entry):has(#member-view:not([hidden])) .ios-quick-compose-copy { font-size: 12px; }
  body:not(.auth-entry):has(#member-view:not([hidden])) .ios-quick-compose-label { font-size: 11px; }
  body:not(.auth-entry):has(#member-view:not([hidden])) .ios-compose-symbol { width: 36px; height: 36px; flex-basis: 36px; border-radius: 12px; }
  body:not(.auth-entry):has(#member-view:not([hidden])) :is(.stream-state, .stream-empty, .welcome-card) { margin: 14px 13px; padding: 28px 20px; border-radius: 20px; }
  body:not(.auth-entry):has(#member-view:not([hidden])) .mobile-nav[data-icon-style] {
    right: max(10px, env(safe-area-inset-right));
    bottom: max(9px, env(safe-area-inset-bottom));
    left: max(10px, env(safe-area-inset-left));
    width: auto;
    height: 65px;
    padding: 4px 5px;
    border: 1px solid var(--ios-line);
    border-radius: 24px;
    background: color-mix(in srgb, var(--ios-surface) 94%, transparent);
    box-shadow: 0 6px 25px rgba(18, 26, 44, .1);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
  }
  body:not(.auth-entry):has(#member-view:not([hidden])) .mobile-nav[data-icon-style] button { min-height: 55px; padding: 0; border-radius: 18px; color: var(--ios-muted); opacity: 1; }
  body:not(.auth-entry):has(#member-view:not([hidden])) .mobile-nav[data-icon-style] button.active { background: var(--ios-blue-soft); color: var(--ios-blue); }
  body:not(.auth-entry):has(#member-view:not([hidden])) .composer-dialog { width: calc(100% - 16px); max-height: calc(100dvh - 16px - env(safe-area-inset-top)); margin: auto; border-radius: 24px; }
  body:not(.auth-entry):has(#member-view:not([hidden])) .composer-dialog .composer-card { max-height: calc(100dvh - 16px - env(safe-area-inset-top)); }
  body:not(.auth-entry):has(#member-view:not([hidden])) .composer-content { padding: 18px 15px 0; }
  body:not(.auth-entry):has(#member-view:not([hidden])) .composer-dialog .composer-body { min-height: 0; }
  body:not(.auth-entry):has(#member-view:not([hidden])) .composer-dialog .composer-body textarea { min-height: 180px; }
  body:not(.auth-entry):has(#member-view:not([hidden])) .sauti-mobile-drawer { background: var(--ios-bg); border-radius: 0 26px 26px 0; }
}
@media (prefers-reduced-motion: reduce) {
  body:not(.auth-entry):has(#member-view:not([hidden])) :is(.nav-item, .share-sauti-button, .ios-quick-compose, .home-feed-tab, .theme-toggle) { transition: none; }
}
