/* ==========================================================================
   duno UI (2026-11-16) — the look and layout of the whole site.
   Loaded last from header.php, after duno.css and the three theme files.

   - light is the default; dark only when the member picks it in the menu
   - soft grey page, white rounded cards, one gutter everywhere
   - signed in, 761px+: left sidebar | content | right column
   - phones: top bar + bottom tabs, cards edge to edge
   - Messages fills the screen at every width
   To go back: remove the duno-ui.css <link> line in header.php.
   ========================================================================== */

/* ---------- 1. tokens ---------- */
:root {
  --bg: #f3f4f6; --card: #ffffff; --elev: #ffffff; --soft: #f6f7f9;
  --ink: #0f1419; --ink-2: #2b323c; --muted: #5d6673; --faint: #8b94a1;
  --line: #e3e6eb; --line-2: #eceef2; --hover: #f1f3f5; --press: #e5e8ec; --field: #f1f3f5;
  --brand: #1d5fe0; --brand-600: #174dba; --brand-50: #eaf1fe; --brand-100: #d4e2fd;
  --brand-grad: linear-gradient(#1d5fe0, #1d5fe0);
  --radius: 16px; --radius-sm: 12px; --radius-lg: 20px;
  --shadow-xs: 0 1px 2px rgba(15, 20, 25, .04);
  --shadow-sm: 0 1px 2px rgba(15, 20, 25, .04), 0 2px 8px rgba(15, 20, 25, .04);
  --shadow-md: 0 10px 30px rgba(15, 20, 25, .12);
  --shadow-lg: 0 20px 50px rgba(15, 20, 25, .18);
  --ring: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent);
  --gut: 18px;               /* the one gutter: card padding and page edge on phones */
  --ui-h: 40px;              /* height of buttons and fields */
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0b0d10; --card: #15181d; --elev: #1c2026; --soft: #1a1d23;
  --ink: #eef1f4; --ink-2: #cbd1d9; --muted: #98a1ad; --faint: #6e7783;
  --line: #262b33; --line-2: #1f232a; --hover: #1d2128; --press: #262b33; --field: #1d2128;
  --brand: #6ea5ff; --brand-600: #9cc2ff; --brand-50: #152440; --brand-100: #1d3157;
  --brand-grad: linear-gradient(#6ea5ff, #6ea5ff);
  --shadow-xs: none; --shadow-sm: none;
  --shadow-md: 0 10px 30px rgba(0, 0, 0, .5); --shadow-lg: 0 20px 50px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

/* ---------- 2. base ---------- */
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font-family: Figtree, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { letter-spacing: -.02em; font-weight: 800; }
h1, .page-head h1 { font-size: 1.6rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.02rem; font-weight: 700; }
::selection { background: color-mix(in srgb, var(--brand) 24%, transparent); }
main.container { min-width: 0; }
main.container img, main.container video, main.container iframe { max-width: 100%; }
.crumbs { font-size: .82rem; margin-bottom: 6px; }
.page-head { margin-bottom: 16px; align-items: flex-start; }
.page-head p { margin: 2px 0 0; }
.section-title { font-size: 1.1rem; font-weight: 800; margin: 26px 0 12px; }

/* ---------- 3. buttons ---------- */
.btn { min-height: var(--ui-h); padding: 0 18px; border-radius: 999px; font-weight: 700; font-size: .92rem; }
.btn-sm { min-height: 32px; padding: 0 14px; font-size: .84rem; }
.btn-big, .btn-lg { min-height: 48px; padding: 0 26px; font-size: 1rem; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: none; }
.btn-primary:hover { background: var(--brand-600); border-color: var(--brand-600); }
[data-theme="dark"] .btn-primary { color: #08101f; }
.btn-ghost { background: var(--card); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--hover); border-color: var(--press); }
.btn-danger { background: var(--card); }
.icon-btn { width: var(--ui-h); height: var(--ui-h); background: transparent; color: var(--ink-2); }
.icon-btn:hover { background: var(--hover); }
.btn-mod { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.btn-mod:hover { background: var(--hover); color: var(--ink); }

/* ---------- 4. fields ---------- */
input[type=text], input[type=email], input[type=password], input[type=search], input[type=number], input[type=url], input[type=tel],
input[type=date], input[type=time], input[type=datetime-local], select { min-height: var(--ui-h); }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=number], input[type=url], input[type=tel],
input[type=date], input[type=time], input[type=datetime-local], select, textarea { border-color: var(--line); color: var(--ink); box-shadow: none; }
textarea { line-height: 1.45; }
select { text-overflow: ellipsis; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--ink) 22%, var(--line)); }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: var(--ring); }
label { font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.alert { border-radius: var(--radius-sm); padding: 12px 14px; }

/* ---------- 5. surfaces ---------- */
.card, [data-theme="dark"] .card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-xs); }
.me-menu, .search-pop, .post-menu-pop, .dm-menu { background: var(--elev); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); }
.me-menu a, .me-menu button, .post-menu-pop button { border-radius: 10px; font-weight: 600; }
dialog.v3-dialog, dialog.qp { border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); background: var(--elev); color: var(--ink); }
dialog::backdrop { background: rgba(15, 20, 25, .45); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.toast { border-radius: 999px; padding: 12px 20px; }
.empty { padding: 44px 20px; }

/* tabs are pills; the chosen one is ink */
.tabs { border-bottom: 0; gap: 6px; margin: 0 0 14px; padding: 2px 0; }
.tab { padding: 8px 15px; border: 0 !important; border-radius: 999px !important; margin: 0; font-weight: 600; font-size: .92rem; color: var(--muted); background: transparent; }
.tab:hover { background: var(--press); color: var(--ink); }
.tab.active, .tab.active:hover { background: var(--ink); color: var(--card) !important; font-weight: 700; }
.chip { min-height: 34px; display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; border-color: var(--line); background: var(--card); font-size: .86rem; }
.chip:hover { background: var(--hover); text-decoration: none; }
.chip-row { gap: 8px; }
.chip-sm { background: var(--field); }
.nav-badge, .badge-dot, .bb-badge, .dm-filter-n { background: #e5484d; }

/* ---------- 6. shell: guests keep a top bar ---------- */
.topbar { background: color-mix(in srgb, var(--card) 90%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.logo-mark { border-radius: 10px !important; background: var(--brand); }
.top-search input { min-height: 40px; padding: 8px 34px 8px 40px; border-radius: 999px !important; background: var(--field) !important; border-color: transparent !important; }
.top-search input:focus { background: var(--card) !important; border-color: var(--brand) !important; }
.is-guest .nav-item { font-size: .78rem; }
.subhead-note { background: var(--card); }
.site-footer { background: var(--card); border-top: 1px solid var(--line); }

/* ---------- 7. shell: members get a sidebar ---------- */
@media (min-width: 761px) {
  .is-member .topbar { background: var(--card) !important; border-right: 1px solid var(--line); }
  .is-member .tb-inner { padding: 14px 12px 12px; gap: 4px; }
  .is-member .logo { height: 44px; margin-bottom: 6px; }
  .is-member .nav-links { gap: 2px; }
  .is-member .nav-item { height: 46px; border-radius: 12px; color: var(--ink-2); font-size: 1rem; font-weight: 600; }
  .is-member .nav-item:hover { background: var(--hover); color: var(--ink); }
  .is-member .nav-item.active { background: var(--brand-50); color: var(--brand); font-weight: 700; }
  .is-member .nav-item.active .nav-ic svg { stroke-width: 2.3; }
  .is-member .nav-badge { border-color: var(--card); }
  .is-member .nav-space { height: 40px; font-size: .92rem; font-weight: 500; }
  .is-member .nav-space.active { background: var(--hover); color: var(--ink); }
  .nav-yours { border-top-color: var(--line-2); }
  .nav-sub { text-transform: uppercase; letter-spacing: .05em; font-size: .7rem; color: var(--faint); padding-top: 12px; }
  .is-member .nav-me { padding-top: 10px; border-top: 1px solid var(--line-2); }
  .is-member .qp-open { background: var(--brand); color: #fff; border: 0; border-radius: 999px; box-shadow: 0 6px 16px color-mix(in srgb, var(--brand) 30%, transparent); }
  .is-member .qp-open:hover { background: var(--brand-600); }
  [data-theme="dark"] .is-member .qp-open { color: #08101f; }
  .is-member .create-toggle { border-color: var(--line); }
  .is-member .me-chip { border-radius: 14px; }

  /* content: one centred column system */
  .is-member .shell { max-width: 1120px; padding: 24px 28px 80px; }
  .is-member .shell:has(.layout.tl) { padding-top: 20px; }
  .is-member .layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; }
  .is-member .layout.tl { grid-template-columns: minmax(0, 640px) minmax(0, 320px); gap: 24px; }
  .is-member .side-col, .is-member .tl > .side-col { top: 20px; padding-top: 0; max-height: calc(100vh - 40px); }
}
@media (min-width: 761px) and (max-width: 1279px) {
  .is-member .nav-item { width: 48px; margin: 0 auto; }
  .is-member .logo { justify-content: center; padding: 0; }
  .is-member .nav-me { align-items: center; }
  .is-member .shell { padding-left: 20px; padding-right: 20px; }
}
@media (min-width: 761px) and (max-width: 1040px) {
  .is-member .layout, .is-member .layout.tl { grid-template-columns: minmax(0, 640px); justify-content: center; }
  .is-member .side-col, .is-member .tl > .side-col { position: static; max-height: none; }
}
@media (min-width: 1280px) {
  body.is-member { --side-w: 264px; }
  .is-member .tb-inner { padding: 14px 14px 12px; }
  .is-member .logo { padding: 0 12px; }
  .is-member .top-search { margin: 0 0 10px; }
  .is-member .nav-item { padding: 0 12px; gap: 14px; }
  .nav-strength { background: var(--soft); border: 1px solid var(--line-2); }
  .is-member .qp-open { height: 48px; }
  .is-member .create-toggle { width: 48px; height: 48px; }
}

/* ---------- 8. feed ---------- */
.post, [data-theme="dark"] .post { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 12px; padding: 0; box-shadow: var(--shadow-xs); }
.post-top { padding: 14px 10px 0 18px; }
.post-author { font-size: .98rem; }
.post-body { padding: 8px 18px 4px; font-size: 1rem; line-height: 1.5; }
.read-more { padding: 0 18px 6px; }
.post-flag { padding: 12px 18px 0; }
.post-image, .post-gallery, .post-video, .link-card { margin: 10px 18px 2px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); }
.post-image img { max-height: 620px; background: var(--soft); }
.repost-embed { margin: 10px 18px 4px; border-radius: 14px; }
.repost-embed .post-image, .repost-embed .post-gallery { margin: 8px 12px 0; }
.poll { margin: 10px 18px 4px; }
.post-actions { padding: 4px 10px 6px; margin: 4px 0 0; justify-content: space-between; border-top: 0; }
.post-actions + .post-stats { padding: 0 18px 12px; }
.post-stats { padding-left: 18px; padding-right: 18px; }
.founder-feature { margin: 0 0 12px; background: var(--card); border: 1px solid var(--brand-100); border-radius: var(--radius); box-shadow: var(--shadow-xs); }
.founder-feature .post, [data-theme="dark"] .founder-feature .post { border: 0 !important; margin: 0; background: transparent; box-shadow: none !important; }
.founder-flag { padding: 12px 18px 0; color: var(--brand); }
.pager { margin: 8px 0 32px; }

/* home: stories, composer, question, tabs, posts — a stack of cards */
.layout.tl > .main-col { border: 0; min-height: 0; }
.tl > .main-col > .card, [data-theme="dark"] .tl > .main-col > .card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 12px; }
.tl > .main-col > .stories { padding: 14px 18px 10px; }
.tl > .main-col > .composer { padding: 14px 18px 12px; }
.tl .composer-row textarea { font-size: 1.08rem; min-height: 46px; padding: 9px 0; }
.composer-foot { gap: 4px; padding-top: 8px; border-top: 1px solid var(--line-2); }
.composer-foot .file-label { padding: 7px 9px; }
.composer-foot select { flex: 0 1 122px; min-width: 0; min-height: 34px; padding: 4px 26px 4px 12px; border-radius: 999px; font-size: .84rem; max-width: 122px; }
.composer-foot select + select { margin-left: 0; }
.composer-foot .btn-primary { min-height: 36px; }
.tl > .main-col > .qotd { padding: 14px 18px; border-left: 1px solid var(--line); }
.tl > .main-col > .tabs { position: sticky; top: var(--hdr-total, var(--header-h)); z-index: 20; margin: 0 0 8px; padding: 8px 0; background: color-mix(in srgb, var(--bg) 86%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.tl > .main-col > .tabs .tab { flex: 0 0 auto; }
.tl .empty { border: 1px solid var(--line) !important; background: var(--card) !important; }

/* right column */
.side-col { gap: 12px; }
.side-col .card, [data-theme="dark"] .side-col .card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.side-card h3 { font-size: 1.02rem; font-weight: 800; margin-bottom: 12px; }

/* ---------- 9. messages: fills the screen at every width ---------- */
body.dm-page { height: 100dvh; overflow: hidden; display: flex; flex-direction: column; background: var(--card); }
body.dm-page .shell, body.is-member.dm-page .shell { max-width: none; width: auto; margin: 0; padding: 0; flex: 1 1 auto; min-height: 0; }
.dm-page .shell main.container { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.dm-layout { flex: 1 1 auto; display: grid; grid-template-columns: 340px minmax(0, 1fr); height: auto; min-height: 0; border: 0; border-radius: 0; background: var(--card); overflow: hidden; }
.dm-layout .card, [data-theme="dark"] .dm-layout .card { background: var(--card); border: 0; border-radius: 0; box-shadow: none; margin: 0; }
.dm-list, [data-theme="dark"] .dm-layout .dm-list { min-width: 0; padding: 0 10px 12px; border-right: 1px solid var(--line) !important; overflow-y: auto; overscroll-behavior: contain; }
.dm-list-top { padding: 16px 0 10px; background: var(--card); }
.dm-list-top .dm-list-head { padding: 0 8px 12px; }
.dm-list-head h3 { font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; }
.dm-filter { background: var(--field); padding: 3px; }
.dm-filter-tab { padding: 5px 13px; }
.dm-list-top .dm-search, .dm-search { width: 100%; min-height: 40px; margin: 0; padding: 8px 16px; border-radius: 999px; background: var(--field); border: 1px solid transparent; font-size: .92rem; }
.dm-search:focus { background: var(--card); border-color: var(--brand); }
.dm-list .dm-item { padding: 10px; gap: 12px; border-radius: 14px; min-height: 68px; }
.dm-item:hover { background: var(--hover); }
.dm-item.active { background: var(--brand-50); box-shadow: none; }
.dm-item.unread { background: transparent; }
.dm-item.unread:hover { background: var(--hover); }
.dm-item-info { min-width: 0; }
.dm-item-name { font-size: .96rem; min-width: 0; }
.dm-item-last { font-size: .86rem; }
.dm-item-side { min-width: 28px; }
.dm-list > p { padding: 20px 10px; text-align: center; }
.dm-newchat { margin: 4px 0 8px; }
.dm-newchat-label { padding: 10px 10px 4px; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); }
.dm-new { display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 10px; border-radius: 14px; color: var(--ink); text-decoration: none !important; }
.dm-new:hover { background: var(--hover); }
.dm-new .avatar { width: 48px; height: 48px; }
.dm-new .dm-item-info, .dm-new .dm-item-name, .dm-new .dm-item-last { display: block; }
.dm-new .dm-item-name { font-weight: 700; }
.dm-list:has(.dm-newchat) .dm-allread { display: none; }

.dm-thread { min-width: 0; min-height: 0; display: flex; flex-direction: column; padding: 0 !important; }
.dm-thread-head { flex: none; min-height: 64px; padding: 10px 16px; gap: 8px; background: var(--card); border-bottom: 1px solid var(--line); }
.dm-peer { flex: 1 1 auto; min-width: 0; }
.dm-peer-txt strong { font-size: 1rem; }
.dm-thread-head .dm-clear { margin-left: auto; }
.dm-thread-head .dm-streak { flex: none; }
.dm-msgs { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; gap: 6px; padding: 20px max(16px, calc((100% - 780px) / 2)); background: var(--card); }
.msg { max-width: min(78%, 560px); padding: 9px 14px; border-radius: 20px; font-size: .96rem; line-height: 1.4; box-shadow: none; }
.msg.them { background: var(--field); border: 0; border-bottom-left-radius: 6px; color: var(--ink); }
.msg.mine { background: var(--brand); border-bottom-right-radius: 6px; }
[data-theme="dark"] .msg.mine { color: #08101f !important; }
.msg.has-photo { max-width: min(320px, 78%); }
.dm-day { background: transparent; color: var(--faint); font-weight: 600; margin: 12px 0 4px; }
.dm-replybar { padding: 8px max(16px, calc((100% - 780px) / 2)); }
.dm-jump { right: max(16px, calc((100% - 780px) / 2)); }
.dm-form, .dm-thread .dm-form { flex: none; align-items: flex-end; gap: 8px; padding: 10px max(12px, calc((100% - 780px) / 2)) 12px; border-top: 1px solid var(--line); background: var(--card); }
.dm-form textarea { flex: 1 1 auto; min-width: 0; min-height: 44px; border-radius: 22px; background: var(--field); border: 1px solid transparent; padding: 10px 16px; }
.dm-form textarea:focus { background: var(--card); border-color: var(--brand); }
.dm-photo-btn { width: 44px; height: 44px; color: var(--muted); }
.dm-photo-btn:hover { color: var(--brand); }
.dm-form .dm-send, .dm-form button[type=submit].dm-send { flex: none; width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 50%; background: var(--brand); box-shadow: none; }
.dm-send .dm-send-txt { display: none; }
.dm-send:not(.ready) { opacity: .55; }
.dm-thread.dm-empty { display: grid; place-items: center; text-align: center; color: var(--muted); }
.dm-thread.dm-empty p { max-width: 280px; margin: 0; font-size: 1.05rem; font-weight: 600; }
.dm-thread.dm-empty p::before { content: ""; display: block; width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 50%; background: var(--field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b94a1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.4 8.4 0 0 1-12.3 7.4L3 20l1.2-5.4A8.4 8.4 0 1 1 21 11.5z'/%3E%3C/svg%3E") center / 34px no-repeat; }
@media (min-width: 761px) { .dm-layout .dm-back { display: none; } }
@media (min-width: 1100px) { .dm-layout { grid-template-columns: 380px minmax(0, 1fr); } }
@media (min-width: 761px) and (max-width: 900px) { .dm-layout { grid-template-columns: 288px minmax(0, 1fr); } }
@media (max-width: 760px) {
  .dm-layout { grid-template-columns: minmax(0, 1fr); height: auto; }
  .dm-list, [data-theme="dark"] .dm-layout .dm-list { border-right: 0 !important; padding: 0 8px 12px; }
  .dm-page .shell, body.is-member.dm-page .shell { padding: 0 0 var(--bb-total, 56px); }
  /* an open chat takes the whole phone screen: no site bar on top, no tabs below */
  body.dm-page:has(.dm-layout.has-active) { padding-top: 0; }
  body.dm-page:has(.dm-layout.has-active) .topbar, body.dm-page:has(.dm-layout.has-active) .bottombar { display: none; }
  body.dm-page:has(.dm-layout.has-active) .shell { padding-bottom: 0; }
  .dm-layout.has-active .dm-thread-head { padding: calc(8px + env(safe-area-inset-top, 0px)) 8px 8px; }
  .dm-layout.has-active .dm-form { padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
  .dm-msgs { padding: 14px 12px; }
  .msg { max-width: 84%; }
}

/* ---------- 10. pages ---------- */
.searchbar { flex-wrap: wrap; align-items: center; }
.searchbar input { flex: 1 1 160px; min-width: 0; }
.searchbar select { flex: 0 1 190px; width: auto; min-width: 0; }
.searchbar .btn { flex: none; }
.people-search { grid-template-columns: minmax(180px, 2fr) repeat(5, minmax(0, 1fr)) auto; padding: 12px; }
.people-search .ps-q { margin: 0; }
.comment-actions { flex-wrap: wrap; }
.lb-row { gap: 10px; border-radius: 12px; border-bottom-color: var(--line-2); }
.lb-row > * { min-width: 0; }
.lb-pts { flex: none; min-width: 70px; }
@media (max-width: 1100px) {
  .people-search { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .people-search .ps-q { grid-column: 1 / -1; }
}

/* a tick box with a sentence next to it: the sentence wraps as one block */
.checkbox-row, .check-line, .fb-private { display: block; position: relative; padding-left: 28px; }
.checkbox-row input, .check-line input, .fb-private input { position: absolute; left: 2px; top: 3px; margin: 0; }

/* ---------- 11. phones ---------- */
@media (max-width: 760px) {
  .is-member .topbar, .topbar { background: color-mix(in srgb, var(--card) 92%, transparent) !important; }
  .tb-inner { padding: 0 var(--gut); gap: 10px; }
  .shell { padding: 12px 0 calc(var(--bb-total, 56px) + 24px); }
  .is-guest .shell { padding-bottom: 40px; }
  .card, [data-theme="dark"] .card { border-radius: 0; border-left: 0; border-right: 0; border-top: 1px solid var(--line); margin-bottom: 8px; box-shadow: none; }
  .page-head, .section-title, .tabs, .chip-row, .searchbar, .tag-cloud, .crumbs, .member-strip, .pager { margin-left: var(--gut); margin-right: var(--gut); }
  .group-grid, .listing-grid, .people-grid, .feature-grid, .kpi-grid, .pick-grid { padding: 0 var(--gut); }
  .tabs { margin-right: 0; padding-right: var(--gut); }
  .result-count { margin-left: var(--gut); margin-right: var(--gut); }
  main.container > p, main.container > h1, main.container > h2, main.container > h3 { margin-left: var(--gut); margin-right: var(--gut); }
  .settings-nav, .people-search, .city-hero { margin-left: 0; margin-right: 0; }
  .people-search { grid-template-columns: 1fr 1fr; }
  .searchbar select { flex: 1 1 130px; }
  .lb-pts { min-width: 58px; font-size: .9rem; }
  h1, .page-head h1 { font-size: 1.4rem; }
  .post, [data-theme="dark"] .post { border-radius: 0; border-left: 0; border-right: 0; margin-bottom: 8px; padding: 0; }
  .post-top { padding: 12px 8px 0 var(--gut); }
  .post-body, .post-stats, .read-more { padding-left: var(--gut); padding-right: var(--gut); }
  .post-flag, .founder-flag { padding-left: var(--gut); padding-right: var(--gut); }
  .post-image, .post-gallery, .post-video, .link-card, .repost-embed, .poll { margin-left: var(--gut); margin-right: var(--gut); }
  .post-actions { padding: 2px 8px 6px; }
  .post-actions + .post-stats { padding: 0 var(--gut) 12px; }
  .founder-feature { border-radius: 0; border-left: 0; border-right: 0; margin-bottom: 8px; }
  .tl > .main-col > .card, [data-theme="dark"] .tl > .main-col > .card { border-radius: 0; border-left: 0; border-right: 0; margin-bottom: 8px; }
  .tl > .main-col > .stories, .tl > .main-col > .composer, .tl > .main-col > .qotd { padding-left: var(--gut); padding-right: var(--gut); }
  .tl > .main-col > .qotd { border-left: 0; }
  .tl > .main-col > .tabs { margin: 0 0 8px; padding: 8px var(--gut); }
  .composer-foot select { flex: 1 1 100px; max-width: none; }
  .composer-foot select:first-of-type { margin-left: 0; }
  .dm-list-top { padding-top: 10px; }
  .side-col { padding: 0; gap: 0; }
  .side-col .card, [data-theme="dark"] .side-col .card { border-radius: 0; border-left: 0; border-right: 0; margin-bottom: 8px; }
  .foot-inner { flex-direction: column; align-items: flex-start; gap: 14px; padding-left: var(--gut); padding-right: var(--gut); }
  .foot-links { display: flex; flex-wrap: wrap; gap: 6px 14px; }
  .is-guest .top-search { flex: 1 1 60px; min-width: 0; }
  .is-guest .nav-me { gap: 6px; }
  .is-guest .nav-me .btn { padding: 0 14px; min-height: 36px; }
  .bottombar { background: color-mix(in srgb, var(--card) 94%, transparent); border-top: 1px solid var(--line); }
  .bottombar a { color: var(--ink-2); }
  .bottombar a.active { color: var(--brand); }
  .bb-post .bb-icon { background: var(--brand); color: #fff; }
  .bb-badge { border-color: var(--card); }
  input[type=text], input[type=email], input[type=password], input[type=search], input[type=number], input[type=url], input[type=tel], select, textarea { font-size: 16px; } /* stops iOS zooming into fields */
}
