:root {
  color-scheme: light;
  --paper: #f4f0e7;
  --paper-deep: #e8e0d2;
  --ink: #141414;
  --muted: #6f6a61;
  --line: #cbc2b3;
  --signal: #ff5c35;
  --electric: #1b45ff;
  --success: #177245;
  --radius: 4px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(20, 20, 20, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 20, 20, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 24px 24px;
  min-height: 100vh;
}

button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }

.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding-inline: max(20px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--ink);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(16px);
}

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .08em; text-decoration: none; font-size: 14px; }
.brand-mark { display: grid; place-items: center; width: 27px; height: 27px; background: var(--ink); color: var(--paper); font-family: Georgia, serif; font-style: italic; font-size: 18px; }
.header-actions { display: flex; align-items: center; gap: 20px; }

.button, .text-button {
  border: 0;
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease, color 140ms ease, opacity 140ms ease;
}
.button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 48px; padding: 12px 20px; background: var(--signal); border: 1px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); font-weight: 750; }
.button:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.button:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.button:disabled { opacity: .55; cursor: wait; transform: none; }
.button-small { min-height: 38px; padding: 8px 14px; box-shadow: 3px 3px 0 var(--ink); }
.button-wide { width: 100%; }
.button-dark { background: var(--ink); color: var(--paper); box-shadow: 4px 4px 0 var(--signal); }
.text-button { padding: 4px 0; background: transparent; border-bottom: 1px solid currentColor; font-weight: 700; }
.text-button:hover { color: var(--signal); }
.danger { color: #9b241c; }

.hero { padding: 94px 0 72px; border-bottom: 1px solid var(--ink); }
.eyebrow { margin: 0 0 20px; color: var(--electric); font-size: 11px; font-weight: 850; letter-spacing: .18em; }
.hero h1 { margin: 0; max-width: 1040px; font-size: clamp(48px, 8.4vw, 116px); line-height: .92; letter-spacing: -.067em; font-weight: 850; }
.hero h1 span { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.hero-foot { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-top: 56px; }
.hero-foot > p { max-width: 600px; margin: 0; font-size: clamp(18px, 2vw, 26px); line-height: 1.42; }
.status-pill { display: inline-flex; align-items: center; gap: 9px; padding: 9px 12px; border: 1px solid var(--line); background: rgba(255,255,255,.25); font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; white-space: nowrap; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(23,114,69,.12); }

.section-kicker { display: flex; gap: 12px; align-items: center; margin-bottom: 40px; font: 700 12px ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; letter-spacing: .08em; }
.section-kicker span:first-child { color: var(--signal); }
h2 { margin: 0; font-size: clamp(34px, 4vw, 56px); line-height: 1; letter-spacing: -.045em; }

.access-gate { padding: 72px 0 92px; }
.access-gate-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .78fr); gap: clamp(42px, 8vw, 120px); align-items: start; }
.access-gate-grid h2 { max-width: 700px; font-size: clamp(40px, 5.5vw, 76px); }
.access-gate-copy { padding-top: 2px; border-top: 1px solid var(--ink); }
.access-gate-copy > p:first-child { margin: 24px 0 10px; font-size: clamp(18px, 2vw, 24px); line-height: 1.5; }
.access-gate-copy > .muted { margin: 0; }
.access-gate-actions { display: flex; align-items: center; gap: 26px; margin-top: 32px; }

.synthesis { padding: 72px 0; border-bottom: 1px solid var(--ink); }
.synthesis-grid { display: grid; grid-template-columns: .85fr 1.6fr; gap: clamp(36px, 7vw, 110px); }
.synthesis-grid > div > p { max-width: 390px; color: var(--muted); line-height: 1.7; }
.rag-form textarea { width: 100%; min-height: 132px; padding: 0 0 18px; resize: vertical; color: var(--ink); background: transparent; border: 0; border-bottom: 2px solid var(--ink); border-radius: 0; font-size: clamp(20px, 2.2vw, 30px); line-height: 1.45; outline: none; }
.rag-form textarea:focus { border-color: var(--electric); }
.rag-form textarea::placeholder { color: #9d968a; }
.form-row { display: flex; align-items: center; gap: 24px; margin-top: 20px; }
.form-row-end { justify-content: space-between; }
.muted, .form-hint { color: var(--muted); font-size: 13px; line-height: 1.55; }
.loading-block { margin-top: 42px; padding: 30px; border: 1px solid var(--line); background: rgba(255,255,255,.28); }
.loading-block span { display: inline-block; width: 9px; height: 9px; margin-right: 6px; background: var(--electric); animation: pulse 900ms infinite alternate; }
.loading-block span:nth-child(2) { animation-delay: 180ms; }
.loading-block span:nth-child(3) { animation-delay: 360ms; }
.loading-block p { display: inline; margin-left: 10px; color: var(--muted); }
@keyframes pulse { to { opacity: .15; transform: translateY(-5px); } }
.rag-result { margin-top: 42px; padding: clamp(24px, 4vw, 48px); background: var(--ink); color: var(--paper); }
.rag-result-head { display: flex; justify-content: space-between; border-bottom: 1px solid #4a4945; padding-bottom: 18px; }
.label { color: #b9b3a8; font: 750 11px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; text-transform: uppercase; }
.rag-answer { margin: 28px 0; max-width: 900px; font-size: clamp(17px, 2vw, 22px); line-height: 1.7; }
.source-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: #4a4945; border: 1px solid #4a4945; }
.source-item { padding: 16px; background: var(--ink); }
.source-item strong { display: block; margin-bottom: 7px; color: var(--signal); font: 800 12px ui-monospace, SFMono-Regular, Menlo, monospace; }
.source-item span { font-size: 13px; line-height: 1.45; }
.feed { padding: 72px 0 100px; }
.feed-heading { display: flex; justify-content: space-between; align-items: end; gap: 32px; }
.feed-heading p { margin-bottom: 0; }
.filters { display: flex; align-items: center; gap: 18px; margin: 36px 0; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.search-field { display: flex; flex: 1; align-items: center; gap: 10px; }
.filters input, .filters select { width: 100%; padding: 8px 4px; color: var(--ink); background: transparent; border: 0; outline: none; }
.filters select { cursor: pointer; }
.feed-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.post-card { position: relative; grid-column: span 4; display: flex; flex-direction: column; min-height: 330px; padding: 22px; border: 1px solid var(--ink); background: color-mix(in srgb, var(--paper) 90%, white); box-shadow: 0 0 0 var(--ink); transition: transform 160ms ease, box-shadow 160ms ease; }
.post-card:hover { transform: translate(-3px, -3px); box-shadow: 7px 7px 0 var(--ink); }
.kind-badge { padding: 5px 8px; color: var(--paper); background: var(--ink); font: 750 11px ui-monospace, SFMono-Regular, Menlo, monospace; }
.kind-need { background: var(--signal); color: var(--ink); }
.kind-offer { background: var(--electric); }
.post-card h3 { margin: 4px 0 13px; font-size: 23px; line-height: 1.15; letter-spacing: -.025em; }
.post-permalink { color: inherit; text-decoration: none; }
.post-permalink:hover { color: var(--electric); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.post-body { position: relative; margin: 0; color: #4f4b44; line-height: 1.65; }
.post-body.is-collapsed { max-height: 250px; overflow: hidden; }
.body-toggle { align-self: flex-start; margin-top: 10px; color: var(--muted); font-size: 12px; }
.markdown-body { overflow-wrap: anywhere; }
.markdown-body > :first-child { margin-top: 0; }
.markdown-body > :last-child { margin-bottom: 0; }
.markdown-body p { margin: 0 0 .85em; }
.markdown-body h4, .markdown-body h5, .markdown-body h6 { margin: 1.15em 0 .5em; line-height: 1.25; letter-spacing: -.015em; }
.markdown-body h4 { font-size: 1.2em; }
.markdown-body h5 { font-size: 1.08em; }
.markdown-body h6 { font-size: 1em; }
.markdown-body ul, .markdown-body ol { margin: .65em 0 1em; padding-left: 1.45em; }
.markdown-body li + li { margin-top: .35em; }
.markdown-body blockquote { margin: .9em 0; padding: .15em 0 .15em 1em; border-left: 4px solid var(--signal); color: var(--muted); }
.markdown-body code { padding: .12em .35em; background: rgba(20,20,20,.09); font: .88em/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.markdown-body pre { max-width: 100%; margin: 1em 0; padding: 14px; overflow-x: auto; color: var(--paper); background: #222; }
.markdown-body pre code { padding: 0; color: inherit; background: transparent; white-space: pre; }
.markdown-body a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.markdown-body a:hover { color: var(--signal); }
.markdown-body hr { margin: 1.2em 0; border: 0; border-top: 1px solid currentColor; opacity: .35; }
.md-table-scroll { max-width: 100%; margin: 1em 0; overflow-x: auto; border: 1px solid var(--line); }
.md-table { width: 100%; min-width: max-content; border-collapse: collapse; font-size: .9em; line-height: 1.45; }
.md-table th, .md-table td { min-width: 7.5rem; padding: .65em .8em; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); vertical-align: top; }
.md-table th:last-child, .md-table td:last-child { border-right: 0; }
.md-table tbody tr:last-child td { border-bottom: 0; }
.md-table th { background: rgba(20,20,20,.08); font-weight: 800; }
.md-table .md-align-center { text-align: center; }
.md-table .md-align-right { text-align: right; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.tag { padding: 3px 7px; border: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.post-card-foot { display: flex; align-items: end; justify-content: space-between; gap: 15px; margin-top: auto; padding-top: 24px; }
.post-meta { color: var(--muted); font: 11px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.card-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; align-items: center; }
.card-actions button, .card-actions a { font-size: 12px; }
.action-toggle[aria-pressed="true"] { color: var(--electric); }
.empty-state { padding: 80px 20px; text-align: center; border: 1px dashed var(--line); }

.site-footer { display: flex; justify-content: space-between; gap: 30px; padding: 45px 0 60px; border-top: 1px solid var(--ink); }
.brand-footer { pointer-events: none; }
.site-footer p { margin: 14px 0 0; color: var(--muted); }
.footer-links { display: flex; align-items: center; gap: 20px; font-size: 13px; }

.dialog { width: min(620px, calc(100% - 28px)); max-height: min(88vh, 900px); padding: clamp(28px, 5vw, 52px); color: var(--ink); background: var(--paper); border: 1px solid var(--ink); box-shadow: 12px 12px 0 var(--ink); overflow: auto; }
.dialog::backdrop { background: rgba(20,20,20,.68); backdrop-filter: blur(4px); }
.dialog-close { position: absolute; top: 15px; right: 18px; border: 0; background: transparent; font-size: 30px; cursor: pointer; }
.dialog h2 { margin-bottom: 28px; }
.dialog-tabs { display: flex; gap: 22px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.tab { padding: 9px 0; border: 0; border-bottom: 3px solid transparent; background: transparent; cursor: pointer; font-weight: 750; }
.tab.active { border-color: var(--signal); }
.stack-form { display: grid; gap: 18px; }
.stack-form label { display: grid; gap: 8px; font-size: 13px; font-weight: 700; }
.stack-form input, .stack-form textarea, .stack-form select { width: 100%; padding: 13px 14px; color: var(--ink); background: rgba(255,255,255,.4); border: 1px solid var(--line); border-radius: 0; outline: none; }
.stack-form input:focus, .stack-form textarea:focus, .stack-form select:focus { border-color: var(--electric); box-shadow: 0 0 0 2px rgba(27,69,255,.13); }
.stack-form input[aria-invalid="true"] { border-color: var(--signal); box-shadow: 0 0 0 2px rgba(255,92,53,.14); }
.form-feedback { margin: 0; padding: 11px 13px; color: #6e1f0b; background: rgba(255,92,53,.1); border-left: 4px solid var(--signal); font-size: 13px; font-weight: 700; line-height: 1.5; }
.quick-publish-dialog { width: min(820px, calc(100% - 28px)); }
.quick-publish-form { display: grid; gap: 18px; }
.quick-publish-title {
  width: 100%;
  padding: 0 0 16px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--ink);
  border-radius: 0;
  outline: none;
  font-size: clamp(26px, 4vw, 46px);
  font-weight: 780;
  line-height: 1.2;
}
.quick-publish-title:focus { border-color: var(--electric); }
.quick-publish-title[aria-invalid="true"] { border-color: var(--signal); }
.quick-publish-title::placeholder { color: #9d968a; }
.quick-publish-input {
  width: 100%;
  min-height: clamp(230px, 34vh, 360px);
  padding: 22px 0;
  resize: vertical;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-top: 0;
  border-bottom: 2px solid var(--ink);
  border-radius: 0;
  outline: none;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.45;
}
.quick-publish-input:focus { border-color: var(--electric); }
.quick-publish-input[aria-invalid="true"] { border-color: var(--signal); }
.quick-publish-input::placeholder { color: #9d968a; }
.quick-publish-actions { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--ink); }
.segmented label { cursor: pointer; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: block; padding: 12px; text-align: center; border-right: 1px solid var(--ink); }
.segmented label:last-child span { border: 0; }
.segmented input:checked + span { background: var(--ink); color: var(--paper); }
.contact-details { padding: 13px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.contact-details summary { cursor: pointer; font-weight: 750; }
.contact-details[open] summary { margin-bottom: 18px; }
.account-dialog { width: min(760px, calc(100% - 28px)); }
.account-actions { display: flex; justify-content: flex-end; margin-top: -15px; }
.account-section { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.account-section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.account-section-head > div { min-width: 0; }
.account-section h3 { margin: 0; }
.invite-result { display: flex; gap: 14px; align-items: center; margin-top: 16px; padding: 15px; border: 1px solid var(--line); background: rgba(255,255,255,.35); }
.invite-result code { flex: 1; overflow-wrap: anywhere; color: var(--electric); font-weight: 750; }
.clipboard-fallback { position: fixed; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact-settings-form { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; }
.contact-settings-form input { width: 100%; min-height: 42px; padding: 10px 12px; color: var(--ink); background: rgba(255,255,255,.4); border: 1px solid var(--line); border-radius: 0; outline: none; }
.contact-settings-form input:focus { border-color: var(--electric); box-shadow: 0 0 0 2px rgba(27,69,255,.13); }
.contact-link-list { display: grid; gap: 10px; }
.contact-link-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 15px; border: 1px solid var(--line); background: rgba(255,255,255,.3); }
.contact-link-copy { min-width: 0; }
.contact-link-copy h4 { margin: 0 0 6px; font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; }
.contact-link-copy p { margin: 0 0 5px; color: var(--muted); font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }
.contact-link-copy small { color: var(--muted); font: 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.contact-link-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.contact-link-state { color: var(--muted); font: 750 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: nowrap; }
.contact-link-state.state-confirmed { color: var(--success); }
.contact-link-state.state-pending { color: #8a6500; }
.related-dialog { width: min(760px, calc(100% - 28px)); }
.related-section { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.related-list { display: grid; gap: 10px; }
.related-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 15px; border: 1px solid var(--line); background: rgba(255,255,255,.3); }
.related-copy { min-width: 0; }
.related-copy h4 { margin: 0 0 6px; font-size: 17px; line-height: 1.3; overflow-wrap: anywhere; }
.related-copy h4 a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.related-copy p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }
.related-copy .matched-terms { margin-top: 5px; color: var(--electric); }
.related-score { color: var(--electric); font: 800 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: nowrap; }
.related-actions { display: flex; align-items: center; gap: 10px; }
.post-dialog { width: min(860px, calc(100% - 28px)); }
.post-dialog-head { display: flex; align-items: start; justify-content: space-between; gap: 24px; }
.post-dialog-head h2 { margin-bottom: 12px; overflow-wrap: anywhere; }
.post-dialog-body { margin: 34px 0; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 18px; line-height: 1.75; }
.detail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.flow-state { display: inline-flex; align-items: center; width: max-content; padding: 5px 8px; color: var(--success); border: 1px solid currentColor; font: 750 11px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: nowrap; }
.flow-paused { color: #8a6500; }
.flow-resolved { color: var(--muted); }
.compact-list { display: grid; gap: 8px; }
.compact-item { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--paper-deep); }
.compact-item p { margin: 0 0 4px; font-weight: 700; }
.compact-item small { color: var(--muted); }
.compact-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.phone-value { margin: 20px 0; color: var(--electric); font: 800 clamp(30px, 7vw, 52px) ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: -.04em; overflow-wrap: anywhere; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 50; max-width: min(390px, calc(100% - 44px)); padding: 14px 17px; color: var(--paper); background: var(--ink); border-left: 5px solid var(--signal); box-shadow: 5px 5px 0 rgba(255,92,53,.7); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.policy-page { max-width: 900px; padding-top: 90px; padding-bottom: 100px; }
.policy-page > h1 { margin: 0 0 70px; font-size: clamp(48px, 8vw, 96px); line-height: .95; letter-spacing: -.06em; }
.policy-page section { display: grid; grid-template-columns: minmax(150px, .6fr) 1.4fr; gap: 35px; padding: 32px 0; border-top: 1px solid var(--ink); }
.policy-page section h2 { font-size: 24px; letter-spacing: -.02em; }
.policy-page section p { margin: 0; font-size: 18px; line-height: 1.75; }

@media (max-width: 900px) {
  .access-gate-grid, .synthesis-grid { grid-template-columns: 1fr; }
  .post-card { grid-column: span 6; }
}

@media (max-width: 620px) {
  .shell { width: min(100% - 24px, 1180px); }
  .site-header { height: 62px; padding-inline: 12px; }
  .header-actions { gap: 12px; }
  .header-actions .text-button { display: none; }
  .hero { padding: 62px 0 52px; }
  .hero h1 { font-size: clamp(42px, 13.8vw, 56px); }
  .hero-foot, .feed-heading, .site-footer { align-items: start; flex-direction: column; }
  .access-gate, .synthesis, .feed { padding: 52px 0; }
  .access-gate-actions { align-items: stretch; flex-direction: column; }
  .access-gate-actions .button, .access-gate-actions .text-button { width: 100%; }
  .section-kicker { margin-bottom: 28px; }
  .form-row-end { align-items: stretch; flex-direction: column; }
  .filters { align-items: stretch; flex-wrap: wrap; }
  .search-field { flex-basis: 100%; }
  .post-card { grid-column: span 12; min-height: 300px; }
  .two-columns { grid-template-columns: 1fr; }
  .segmented span { padding-inline: 6px; font-size: 13px; }
  .dialog { padding: 42px 22px 26px; box-shadow: 6px 6px 0 var(--ink); }
  .quick-publish-dialog { width: 100%; max-width: none; max-height: 100dvh; margin: 0; inset: auto 0 0; padding: 46px 18px calc(18px + env(safe-area-inset-bottom)); box-shadow: none; }
  .quick-publish-dialog h2 { margin-bottom: 20px; }
  .quick-publish-input { min-height: 42dvh; padding: 18px 0; font-size: 18px; }
  .quick-publish-title { font-size: 26px; }
  .quick-publish-actions { position: sticky; bottom: calc(-18px - env(safe-area-inset-bottom)); z-index: 2; align-items: stretch; flex-direction: column; gap: 10px; margin-inline: -18px; padding: 14px 18px calc(18px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line); }
  .quick-publish-actions .button { width: 100%; min-height: 52px; }
  .rag-result-head { align-items: stretch; flex-direction: column; }
  .related-item { grid-template-columns: 1fr; }
  .related-actions { align-items: stretch; flex-direction: column; }
  .related-actions .button, .related-actions .text-button { width: 100%; }
  .contact-settings-form { grid-template-columns: 1fr; align-items: stretch; }
  .contact-settings-form .button, .contact-settings-form .text-button { width: 100%; }
  .contact-link-item { grid-template-columns: 1fr; }
  .contact-link-actions { align-items: stretch; flex-direction: column; }
  .contact-link-actions .button, .contact-link-actions .text-button { width: 100%; }
  .compact-item { grid-template-columns: 1fr; }
  .compact-actions { justify-content: flex-start; }
  .post-dialog-head { flex-direction: column; }
  .footer-links { flex-wrap: wrap; }
  .policy-page section { grid-template-columns: 1fr; gap: 14px; }
}

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