/* Deliberately scoped: preserve desktop layout and the message composer. */
:root { color-scheme: dark; --navigation-active: #b4a0ff; }
#themeToggle { display: none !important; }
button { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid #b4a0ff; outline-offset: 3px; }
body .primary-button, body #createCircle, body .confirm-actions button,
body .circle-edit-actions button, body .circle-dialog-actions button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 11px 18px; line-height: 1.25; font-size: 14px;
  font-weight: 600; border-radius: 12px; text-align: center;
}
body .primary-button, body #createCircle { background: #eeeef0; color: #161619; -webkit-text-fill-color: #161619; }
body #createCircle { white-space: nowrap; box-shadow: none; }
body .confirm-actions button.danger, body #confirmAction {
  background: #ff686e; color: #26070a; -webkit-text-fill-color: #26070a; font-weight: 650;
}
body .confirm-actions button.danger:disabled { opacity: .6; }
body .radius-picker { display: block; min-width: 190px; width: 100%; }
.radius-slider { display: grid; gap: 8px; width: min(260px,100%); font-size: 12px; color: #a8a8b0; }
.radius-slider > span { display: flex; justify-content: space-between; gap: 12px; }
.radius-slider output { color: #f2f2f4; font-variant-numeric: tabular-nums; }
.radius-slider input { width: 100%; height: 20px; margin: 0; accent-color: #b4a0ff; cursor: pointer; }
.radius-extents small { font-size: 10px; }
body .nearby-view-toggle { display: inline-grid; grid-template-columns: repeat(2,1fr); position: relative; isolation: isolate; background: #1b1b1f; padding: 4px; border: 1px solid #303036; border-radius: 13px; gap: 0; }
.nearby-view-toggle::before { content: ''; position: absolute; inset: 4px auto 4px 4px; width: calc(50% - 4px); border-radius: 9px; background: #eeedf2; transition: transform .18s ease; z-index: -1; }
.nearby-view-toggle:has([data-nearby-view="list"].active)::before { transform: translateX(100%); }
body .nearby-view-toggle button { min-height: 36px; padding: 8px 20px; border: 0; background: transparent; border-radius: 9px; color: #b6b5bd; }
body .nearby-view-toggle button.active { background: transparent; color: #17171a; }
body .nearby-geo-error { background: transparent; border: 0; border-left: 2px solid #55515f; border-radius: 0; padding: 6px 12px; font-size: 12px; color: #aaa7b2; }
body .nearby-summary > b { font-size: 15px; font-variant-numeric: tabular-nums; }
.saved-filter-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 18px; }
.saved-filter-tabs button { min-height: 36px; border: 1px solid #303036; border-radius: 20px; background: transparent; padding: 8px 14px; color: #b6b5bd; font-size: 12px; }
.saved-filter-tabs button.active { background: #eeeef0; color: #17171a; }
/* The folder selector is the third of four rows, not the flexible list row. */
body .messages-inbox { grid-template-rows: auto auto auto minmax(0,1fr); }
body .conversation-folder-tabs { display: inline-flex; align-items: center; align-self: start; justify-self: start; flex-wrap: nowrap; gap: 2px; width: fit-content; height: 36px; box-sizing: border-box; margin: 2px 12px 8px; padding: 3px; border: 1px solid #28282d; border-radius: 10px; background: #161619; }
body .conversation-folder-tabs > button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: auto; height: 28px; min-height: 28px; box-sizing: border-box; padding: 0 12px; border: 0; border-radius: 7px; background: transparent; color: #9b9ba5; font-size: 11px; font-weight: 500; line-height: 1; white-space: nowrap; }
body .conversation-folder-tabs > button.active { background: #303036; color: #f3f3f5; }
body .conversation-folder-tabs > button:hover:not(.active) { background: #222227; color: #d2d2d8; }
.saved-entry { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid #27272b; }
.saved-entry > .saved-item { flex: 1; min-width: 0; border: 0; }
.saved-entry .saved-item b { overflow-wrap: anywhere; }
.saved-remove { flex: 0 0 40px; width: 40px; height: 40px; display: grid; place-items: center; color: #b6b5bd; background: transparent; border: 1px solid #303036; border-radius: 11px; }
.saved-remove svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.circle-photo-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.circle-photo-fields input { max-width: 100%; font-size: 12px; }
.circle-photo-fields img { display: block; width: 64px; height: 64px; object-fit: cover; border-radius: 50%; }
.circle-photo-fields img[data-circle-cover-preview] { width: 100%; height: 64px; border-radius: 10px; }
body .circle-symbol { flex: 0 0 48px; width: 48px; height: 48px; overflow: hidden; border-radius: 15px; display: grid; place-items: center; color: #d5caff; background: #252130; font-weight: 600; }
.circle-symbol img { width: 100%; height: 100%; object-fit: cover; }
body .circle-detail-head .circle-symbol { flex: 0 0 60px; width: 60px; height: 60px; }
.circle-cover { width: 100%; aspect-ratio: 4/1; display: block; object-fit: cover; border-radius: 16px; margin-bottom: 18px; }
.circle-composer-note { padding: 10px 0; color: #b6b5bd; font-size: 12px; }
body .circle-join { min-height: 40px; border-radius: 11px; padding: 9px 14px; font-size: 12px; white-space: nowrap; }
.chat-menu-options { display: grid; gap: 6px; }
.chat-menu-options .action-row { width: 100%; text-align: left; min-height: 44px; border: 1px solid #303036; border-radius: 11px; padding: 12px; color: #efedf4; background: #19191d; font-size: 14px; }
.chat-menu-options .danger { color: #ff959b; }
.chat-mute-options { display: grid; gap: 6px; grid-template-columns: 1fr 1fr; margin: 6px 0; }
.chat-mute-options[hidden] { display: none; }
.nearby-filter-disclosure { margin: 10px 0; }
.nearby-filter-disclosure > summary { width: fit-content; cursor: pointer; color: #b6b5bd; font-size: 12px; padding: 8px 0; }
.nearby-filter-disclosure .nearby-filters { margin-top: 8px; }
@media (max-width: 720px) {
  body .mobile-tabs button.active:not(.mobile-create) { color: var(--navigation-active); }
  body .mobile-tabs button.active .mobile-tab-icon { color: var(--navigation-active); background: #282137; border-radius: 12px; }
  body .mobile-tabs button.active svg { stroke: var(--navigation-active); stroke-width: 2; fill: #b4a0ff30; }
  body .mobile-tabs button.active small { color: var(--navigation-active); font-weight: 650; }
  body .mobile-tabs button.active[data-view="profile"] svg circle { fill: var(--navigation-active); }
  body .post-card { padding: 18px 16px; border-radius: 18px; }
  body .post-card .post-top { align-items: center; gap: 12px; }
  body .post-card .person { min-width: 0; gap: 10px; }
  body .post-card .person > span { min-width: 0; }
  body .post-card .person strong { overflow-wrap: anywhere; }
  body .post-header { gap: 10px; align-items: center; }
  body .post-header .avatar, body .comment-row > .avatar { flex-shrink: 0; aspect-ratio: 1; object-fit: cover; }
  body .post h2, body .post h3 { font-size: 18px; line-height: 1.35; overflow-wrap: anywhere; }
  body .post p { line-height: 1.55; overflow-wrap: anywhere; }
  body .post-footer { display: flex !important; gap: 8px 14px; flex-wrap: wrap; align-items: center !important; padding-top: 12px; margin-top: 16px; min-height: 44px; }
  body .post-footer .post-actions { display: flex; flex-wrap: wrap; justify-content: flex-start; flex: 1; width: auto; min-width: 0; gap: 10px; order: 1; }
  body .post-footer .post-stats { order: 2; width: auto; flex: 0 0 auto; margin-left: auto; }
  body .post-footer:has(.post-counts) .post-stats { order: 0; flex-basis: 100%; display: flex; justify-content: space-between; }
  body .post-footer .join { order: 3; min-height: 40px; }
  body .post-footer .post-actions button { width: auto; min-width: 44px; min-height: 44px; padding: 6px; }
  body .post-footer .post-actions .join { margin-left: auto; padding-inline: 12px; }
  body .nearby-workspace { padding: 14px; border-radius: 18px; }
  body .nearby-filters { gap: 10px; }
  body .nearby-filters select { font-size: 13px; min-height: 42px; padding: 10px; }
  body .nearby-summary { margin: 12px 0; gap: 12px; }
  body .circle-card { gap: 12px; padding: 16px; align-items: center; flex-wrap: wrap; }
  body .circle-open { min-width: 0; flex: 1; }
  body .circle-card-title { flex-wrap: wrap; gap: 6px; }
  body .circle-card .circle-join { margin-left: 60px; }
  body .circle-dialog-actions { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  body .circle-dialog-actions button { min-width: 0; padding: 10px 8px; font-size: 12px; }
  body .circle-dialog-actions .circle-membership-state { display: none; }
  body .circle-dialog-actions .circle-settings-button { grid-column: 1/-1; justify-self: end; min-height: 40px; padding: 8px; border-color: transparent; }
  body .profile-actions-grid .wide-action { min-height: 48px; padding: 14px 16px; border-radius: 13px; font-size: 13px; }
  body .split-heading { gap: 16px; align-items: flex-start; flex-wrap: wrap; }
  .radius-picker { width: 100%; }
  .radius-slider { width: 100%; }
  body .near-toolbar-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  body .near-toolbar-actions button { grid-column: auto; min-width: 0; padding: 9px 6px; min-height: 40px; font-size: 10px; gap: 5px; }
  body .near-toolbar-actions button svg { flex: 0 0 16px; width: 16px; height: 16px; }
  body [data-view-panel="near"] .page-heading > p { display: none; }
  body [data-view-panel="near"] .page-heading { margin-bottom: 16px; }
  body [data-view-panel="near"] .page-heading h2 { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) { .nearby-view-toggle::before { transition: none; } }

/* Quiet profile metrics: one type scale, no nested score box. */
body .trust-card-content { display: grid; grid-template-columns: 64px minmax(0,1fr); align-items: start; gap: 16px; }
body .trust-card-content .trust-score { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 4px; width: auto; min-width: 0; height: auto; min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
body .trust-score strong { font-family: inherit; font-size: 28px; font-weight: 650; line-height: 1; letter-spacing: -.03em; font-variant-numeric: lining-nums tabular-nums; }
body .trust-score > span { font-size: 11px; line-height: 1.3; color: #96969f; }
body .trust-card-title > span { display: none; }
body .trust-card-title small { font-size: 10px; letter-spacing: .04em; }
body .trust-card-title b { font-size: 13px; line-height: 1.4; }
body .trust-card-body { min-width: 0; }
body .trust-card-body > p { font-size: 11px; line-height: 1.5; color: #92929b; }
body .trust-signals { display: flex; flex-wrap: wrap; gap: 6px 12px; }
body .trust-signals > span { border: 0; background: none; padding: 0; font-size: 11px; line-height: 1.5; }
body .public-stats, body .profile-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
body .public-stats > *, body .profile-stats > * { min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 10px 4px; font-size: 11px; line-height: 1.3; }
body .public-stats b, body .profile-stats b { font-family: inherit; font-size: 19px; line-height: 1; font-weight: 600; letter-spacing: 0; font-variant-numeric: lining-nums tabular-nums; }
body .post-actions .icon-text-button, body .post-actions .icon-only-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 36px; min-height: 36px; padding: 6px; font-size: 12px; line-height: 1; font-variant-numeric: tabular-nums; }
body .post-actions svg { width: 19px; height: 19px; flex: 0 0 19px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
body .post-actions .liked svg, body .post-actions .saved svg { fill: currentColor; }
body .post-created { font: inherit; font-variant-numeric: tabular-nums; }
body .mobile-profile-circles { display: none; }
@media (max-width: 720px) {
  body .profile-actions-grid .mobile-profile-circles { display: flex; }
  body .trust-card-content, body .profile-trust-section .trust-card-content { grid-template-columns: 52px minmax(0,1fr); gap: 12px; }
  body .post-actions .icon-text-button, body .post-actions .icon-only-button { min-height: 40px; min-width: 40px; }
}
