/* Te Tere 2.1 — neobrutalismo minimalista, móvil y sin recursos externos. */
:root {
  color-scheme: dark;
  --bg: #000; --surface: #101010; --ink: #fff; --text: #fff;
  --muted: #b6b6b6; --border: #383838; --accent: #fff; --panel: #181818;
  --soft: #d4d4d4; --on-accent: #000; --shadow-color: #303030;
  --shadow: 3px 3px 0 var(--shadow-color); --radius: 5px; --nav-height: 76px;
  --font: "Segoe UI", system-ui, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-padding-bottom: calc(var(--nav-height) + env(safe-area-inset-bottom, 0px) + 32px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.65 var(--font); overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button,input,textarea,select { font: inherit; color: inherit; }
button,a,input,textarea,select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .6; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
img,svg { max-width: 100%; }
img { object-fit: contain; filter: grayscale(1); }
form { margin: 0; }
h1,h2,h3,p { margin-top: 0; }
h1,h2,h3 { font-weight: 850; line-height: 1.15; }
h1 { font-size: clamp(30px, 7vw, 40px); letter-spacing: -1.3px; }
h2 { font-size: 22px; letter-spacing: -.6px; }
h3 { font-size: 19px; }
p { margin-bottom: 18px; }
small { font-size: 12px; line-height: 1.65; color: var(--muted); }
.icon { display: inline-block; vertical-align: middle; flex-shrink: 0; stroke-width: 1.8; }
.muted { color: var(--muted); }
.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; }
.eyebrow { font: 800 10px/1.4 var(--font); letter-spacing: 1.2px; text-transform: uppercase; }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); flex-shrink: 0; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 11px 16px; border: 1px solid var(--ink); border-radius: 4px; background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow); font-size: 14px; font-weight: 800; line-height: 1.3; transition: transform .12s, box-shadow .12s; }
.button:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--shadow-color); }
.button:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--shadow-color); }
.button.secondary { background: var(--surface); color: var(--ink); border-color: var(--border); box-shadow: none; }
.button.compact { min-height: 44px; padding: 9px 12px; font-size: 12px; }
.button .icon { width: 18px; height: 18px; }
.full-width { display: flex; width: 100%; margin-top: 24px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid transparent; border-radius: 4px; background: transparent; color: var(--ink); flex-shrink: 0; }
.icon-button:hover { background: #242424; }
.icon-button.selected { background: var(--accent); color: var(--on-accent); }
.text-button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; background: transparent; border: 0; font-size: 13px; font-weight: 650; }
.text-button:hover,a.clear-filters:hover { text-decoration: underline; text-underline-offset: 4px; }
.skip-link { position: fixed; z-index: 60; top: -100px; left: 12px; padding: 12px; background: var(--accent); color: var(--on-accent); }
.skip-link:focus { top: 12px; }
.site-header { display: flex; justify-content: center; padding: 25px 16px 26px; background: var(--bg); }
.brand { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.brand-tree { display: block; width: 68px; height: 68px; }
.brand-name { font: 950 27px/1.1 "Arial Black", "Segoe UI", system-ui, sans-serif; letter-spacing: -1.2px; }
.app-layout { max-width: 680px; margin: auto; padding: 0 18px; }
main { min-width: 0; padding: 0 0 calc(var(--nav-height) + env(safe-area-inset-bottom, 0px) + 28px); }
.feed-controls { margin: 0 0 25px; }
.search-form { display: flex; align-items: center; gap: 11px; min-height: 50px; padding: 0 12px; border: 1px solid #666; border-radius: 4px; background: var(--surface); }
.search-form>.icon { width: 19px; height: 19px; color: var(--muted); }
.search-form input:not([type=hidden]) { min-width: 0; flex: 1; width: auto; min-height: 48px; padding: 10px 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; font-size: 16px; }
.search-form input:focus { outline: none; }
.search-form:focus-within { border-color: var(--ink); outline: 1px solid var(--ink); }
.search-form .icon-button { width: 44px; margin-right: -7px; }
.filter-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) 46px; gap: 10px; align-items: end; margin-top: 14px; }
.filter-row>div,.audience-fields>div { min-width: 0; }
.filter-row label { display: block; color: var(--muted); font-size: 11px; font-weight: 750; line-height: 1.4; margin-bottom: 6px; }
.filter-row select { min-height: 46px; padding: 9px 10px; }
.button.filter-submit { width: 46px; height: 46px; min-height: 46px; padding: 0; }
.filter-submit .icon { width: 20px; height: 20px; }
.clear-filters { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 2px; color: var(--muted); font-size: 11px; }
.clear-filters .icon { width: 14px; height: 14px; }
.audience-fields { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px; }
.audience-fields label { display: block; font-size: 13px; font-weight: 800; margin-bottom: 8px; }
.results-heading { margin: 0 0 16px; }
.results-heading h2 { font-size: 20px; line-height: 1.4; margin: 0; }
.feed-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; border-bottom: 1px solid var(--border); }
.feed-tabs { display: flex; align-items: center; gap: 22px; min-width: 0; }
.feed-tabs>a,.feed-tabs>span { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 46px; padding: 9px 0; border-bottom: 2px solid transparent; font-size: 13px; font-weight: 750; color: var(--muted); white-space: nowrap; }
.feed-tabs>.active { border-color: var(--ink); color: var(--ink); }
.feed-tabs .icon { width: 15px; height: 15px; }
.post-list { display: flex; flex-direction: column; gap: 22px; }
.post-card { min-width: 0; padding: 20px 17px 10px; margin: 0 3px 22px 0; border: 1px solid var(--border); border-radius: 5px; background: var(--surface); box-shadow: var(--shadow); }
.post-list .post-card { margin-bottom: 0; }
.post-card.post-pinned { border-top: 2px solid var(--ink); background: var(--panel); }
.pin-label { display: flex; align-items: center; gap: 7px; font-size: 9px; font-weight: 800; letter-spacing: .6px; margin-bottom: 18px; }
.pin-label .icon { width: 13px; height: 13px; }
.post-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0; }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 1px solid #555; border-radius: 4px; flex-shrink: 0; font-size: 12px; font-weight: 850; color: var(--ink); background: #2c2c2c; }
.avatar-1 { background: #363636; border-radius: 50%; }
.avatar-2 { background: #242424; border-radius: 12px 2px 2px 2px; }
.avatar-3 { background: #444; border-radius: 50%; }
.avatar-4 { background: #1d1d1d; border-radius: 2px; }
.avatar-5 { background: var(--panel); border-radius: 14px 14px 2px 14px; }
.avatar-large { width: 64px; height: 64px; font-size: 28px; box-shadow: var(--shadow); margin-bottom: 24px; }
.author-line { display: flex; align-items: center; flex: 1; flex-wrap: wrap; gap: 5px; min-width: 0; font-size: 12px; line-height: 1.5; }
.author { font-weight: 800; max-width: 170px; }
a.author:hover { text-decoration: underline; }
.visitor { font-size: 10px; color: var(--muted); }
.meta-dot { color: var(--muted); }
.author-line time { font-size: 10px; color: var(--muted); white-space: nowrap; }
.admin-badge { display: inline-flex; }
.admin-badge .icon { width: 13px; height: 13px; }
.topic { display: inline-flex; align-items: center; justify-content: center; padding: 4px 7px; border: 1px solid var(--border); border-radius: 3px; font-size: 10px; font-weight: 750; line-height: 1.4; white-space: nowrap; margin-left: auto; }
.audience-tag { background: #e4e4e4; border-color: #e4e4e4; color: var(--on-accent); }
.topic:hover { text-decoration: underline; text-underline-offset: 3px; }
.post-title { font-size: 21px; line-height: 1.3; letter-spacing: -.55px; margin: 19px 0 12px; font-weight: 850; }
.post-title a:hover { text-decoration: underline; text-underline-offset: 4px; }
.post-body { font-size: 15px; line-height: 1.8; color: #d0d0d0; white-space: pre-wrap; overflow-wrap: anywhere; margin: 14px 0 18px; }
.post-body.excerpt { margin-top: 0; }
.post-footer { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px 8px; align-items: center; border-top: 1px solid #2a2a2a; margin-top: 18px; padding-top: 10px; }
.voting { display: flex; align-items: center; gap: 7px; grid-column: 1; min-width: 0; }
.vote-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 54px; min-height: 44px; padding: 7px 8px; border: 1px solid var(--border); border-radius: 4px; background: transparent; }
.vote-button:hover { border-color: #888; }
.vote-up.selected { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.vote-down.selected { background: var(--soft); border-color: var(--soft); color: var(--on-accent); }
.vote-emoji { display: inline-block; font-size: 20px; line-height: 1; filter: grayscale(1); }
.vote-tally { font-size: 12px; font-weight: 800; min-width: 8px; }
.vote-score { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 29px; font-size: 8px; line-height: 1.4; color: var(--muted); }
.vote-score strong { font-size: 14px; color: var(--ink); font-weight: 850; }
.comment-link { display: inline-flex; align-items: center; gap: 7px; grid-column: 1; min-height: 44px; width: fit-content; font-size: 12px; color: var(--muted); }
.comment-link .icon { width: 18px; height: 18px; }
.comment-link:hover { color: var(--ink); }
.post-options { display: flex; align-items: center; gap: 2px; grid-column: 2; grid-row: 1 / span 2; }
.post-options .icon-button { color: var(--muted); }
.post-options .icon-button.selected { color: var(--on-accent); }
.post-options .icon { width: 18px; height: 18px; }
.page-heading { padding: 5px 0 27px; }
.page-heading .eyebrow { display: inline-block; background: var(--accent); border: 1px solid var(--border); border-radius: 4px; padding: 5px 8px; font-size: 9px; box-shadow: 2px 2px 0 var(--shadow-color); color: var(--on-accent); }
.page-heading h1 { font-size: clamp(32px, 7vw, 43px); margin: 19px 0 15px; }
.page-heading p { font-size: 14px; line-height: 1.8; color: var(--muted); max-width: 540px; margin: 0; }
.back-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 12px; font-weight: 650; margin-bottom: 17px; }
.back-link .icon { width: 17px; height: 17px; }
.back-link:hover { text-decoration: underline; }
.form-panel { margin: 0 3px 26px 0; padding: 22px 17px; background: var(--surface); border: 1px solid var(--border); border-radius: 5px; box-shadow: var(--shadow); }
.form-panel h2 { font-size: 21px; margin-bottom: 15px; }
.form-panel>p { font-size: 14px; line-height: 1.8; }
.form-panel form>label,.auth-form>label,.key-panel>label { display: block; font-size: 13px; font-weight: 750; margin: 24px 0 9px; }
.form-panel form>label:first-of-type,.auth-form>label:first-of-type { margin-top: 7px; }
label .muted { font-size: 11px; font-weight: 500; }
input:not([type=radio],[type=checkbox],[type=hidden]),textarea,select { display: block; width: 100%; min-width: 0; min-height: 50px; padding: 12px; border: 1px solid #666; border-radius: 7px; background: var(--surface); font-size: 16px; line-height: 1.5; }
input::placeholder,textarea::placeholder { color: #999; opacity: 1; }
input:focus,textarea:focus,select:focus { outline: 3px solid #aaa; outline-offset: 1px; }
input[type=hidden] { display: none; }
textarea { resize: vertical; min-height: 120px; }
input[type=radio],input[type=checkbox] { accent-color: #fff; min-width: 20px; min-height: 20px; }
input[type=file] { font-size: 12px!important; }
input[type=file]::file-selector-button { padding: 8px; background: var(--panel); border: 1px solid var(--border); border-radius: 4px; font: 700 11px var(--font); margin-right: 7px; color: var(--ink); }
.form-panel form>small { display: block; margin-top: 9px; font-size: 11px; }
fieldset { border: 0; padding: 0; margin: 26px 0 0; min-width: 0; }
legend { font-size: 13px; font-weight: 800; margin-bottom: 14px; }
.audience-selector { border: 1px solid var(--border); border-radius: 8px; padding: 16px 13px; background: var(--panel); margin-top: 28px; }
.audience-selector legend { background: var(--panel); border: 1px solid var(--border); border-radius: 4px; padding: 4px 7px; font-size: 11px; max-width: 100%; margin-bottom: 0; }
.audience-selector small { display: block; margin-top: 12px; font-size: 10px; }
.legacy-note { font-size: 11px; margin: 12px 0 0; font-weight: 650; }
.form-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; margin-top: 25px; }
.form-bottom>.muted { display: flex; align-items: center; gap: 6px; font-size: 11px; }
.form-bottom>.muted .icon { width: 15px; height: 15px; }
.form-bottom .button { margin-left: auto; }
.form-legal { text-align: center; font-size: 11px; color: var(--muted); padding: 8px 0 20px; }
.form-legal a { text-decoration: underline; font-weight: 700; text-underline-offset: 3px; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.challenge { display: grid; grid-template-columns: minmax(0,1fr) 60px; align-items: center; gap: 8px 10px; border-top: 2px dashed #666; margin-top: 26px; padding-top: 19px; }
.challenge label { font-size: 12px; font-weight: 650; }
.challenge input { text-align: center; padding: 8px; }
.challenge small { grid-column: 1/-1; font-size: 10px; }
.owner-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 22px; margin: -4px 0 20px; font-size: 11px; font-weight: 650; }
.owner-tools a { display: flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.section-heading h2 { margin: 0; font-size: 18px; letter-spacing: -.3px; }
.section-heading>.icon { width: 19px; height: 19px; }
.comments-section { padding-top: 15px; margin-bottom: 29px; }
.comments-section .section-heading { border-bottom: 2px solid var(--border); padding-bottom: 16px; }
.comments-section .section-heading h2 { font-size: 22px; }
.comments-section .section-heading .muted { font-size: 14px; padding-left: 9px; }
.comment-item { padding: 20px 0; border-bottom: 2px solid #444; scroll-margin-top: 20px; }
.comment-item.reply { margin-left: 19px; border-left: 2px solid var(--border); padding-left: 14px; }
.comment-body { margin: 12px 0 5px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.8; }
.comment-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-size: 12px; font-weight: 700; }
.comment-actions a { display: inline-flex; align-items: center; min-height: 44px; }
.comment-actions a:hover { text-decoration: underline; }
.empty-comments { padding: 20px 0; }
.empty-comments p { margin-bottom: 4px; font-size: 14px; font-weight: 650; }
.more-replies { display: flex; align-items: center; gap: 8px; min-height: 44px; margin: 5px 0 8px 20px; font-size: 12px; font-weight: 800; text-decoration: underline; }
.more-replies .icon { width: 17px; height: 17px; }
.auth-wrap { max-width: 430px; margin: 8px auto 35px; background: var(--surface); border: 1px solid var(--border); border-radius: 5px; box-shadow: var(--shadow); padding: 27px 20px; }
.auth-logo,.logo-preview { display: block; background: #050505; padding: 6px; border-radius: 8px; border: 1px solid var(--border); margin-bottom: 23px; }
.auth-wrap>.eyebrow { font-size: 9px; background: var(--accent); padding: 4px 6px; border: 1px solid var(--border); border-radius: 4px; display: inline-block; color: var(--on-accent); }
.auth-wrap>h1 { font-size: 32px; margin: 20px 0 14px; letter-spacing: -1.2px; }
.auth-wrap>.muted { font-size: 13px; }
.auth-form { margin-top: 27px; }
.auth-form>small { display: block; margin-top: 17px; font-size: 11px; }
.auth-links { display: flex; align-items: center; flex-direction: column; gap: 7px; margin-top: 24px; font-size: 12px; }
.auth-links>a,.auth-links span a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.auth-links span { text-align: center; }
.privacy-note { display: flex; align-items: flex-start; gap: 10px; border-top: 1px solid var(--border); padding-top: 19px; margin-top: 27px; font-size: 11px; line-height: 1.9; color: var(--muted); }
.privacy-note .icon { width: 18px; height: 18px; margin-top: 2px; }
.key-panel>.icon { width: 29px; height: 29px; margin-bottom: 16px; }
.key-panel input { font: 11px/1.5 ui-monospace,Consolas,monospace!important; background: var(--accent)!important; padding: 12px 8px!important; color: var(--on-accent)!important; }
.key-panel>small { display: block; margin-top: 12px; font-size: 11px; }
.key-panel>a:not(.button) { display: flex; align-items: center; justify-content: center; min-height: 44px; font-size: 11px; font-weight: 700; text-align: center; margin-top: 17px; text-decoration: underline; }
.key-panel dl { display: grid; grid-template-columns: 110px minmax(0,1fr); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 12px 0; font-size: 12px; }
.key-panel dt { font-weight: 650; }.key-panel dd { margin: 0; }
.stack-links { display: flex; flex-direction: column; gap: 16px; }
.stack-links+p { margin-top: 24px; }
.menu-link { display: flex; align-items: center; gap: 12px; border-top: 2px solid #444; min-height: 56px; font-size: 12px; font-weight: 700; }
.menu-link>.icon:last-child { margin-left: auto; width: 16px; height: 16px; }
.profile-header { padding: 10px 0 28px; }
.profile-header>.eyebrow { display: block; }
.profile-header h1 { font-size: 34px; margin: 17px 0 10px; }
.profile-header h1 .icon { width: 24px; height: 24px; }
.profile-header p { font-size: 14px; line-height: 1.8; }
.profile-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.profile-tabs { border-bottom: 2px solid var(--border); margin-bottom: 25px; }
.avatar-choices { display: flex; flex-wrap: wrap; gap: 11px; }
.avatar-choices label { display: flex; align-items: center; gap: 7px; padding: 9px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); cursor: pointer; }
.avatar-choices label:has(input:checked) { background: #333; }
.notification { display: flex; align-items: center; gap: 13px; border: 1px solid var(--border); border-radius: 9px; padding: 18px 14px; background: var(--surface); margin: 0 4px 17px 0; }
.notification.unread { background: var(--panel); box-shadow: 4px 4px 0 var(--shadow-color); }
.notification>div { display: flex; flex-direction: column; gap: 6px; }
.notification strong { font-size: 14px; font-weight: 700; line-height: 1.6; }
.notification small { font-size: 11px; }
.notification>.icon:last-child { margin-left: auto; width: 17px; height: 17px; }
.activity-tools { margin-bottom: 18px; }
.empty-state { padding: 33px 18px; border: 1px dashed var(--border); border-radius: 5px; background: var(--surface); text-align: center; margin: 16px 5px 20px 0; }
.empty-state>.icon { width: 32px; height: 32px; margin-bottom: 16px; }
.empty-state h2 { font-size: 23px; line-height: 1.25; }
.empty-state p { font-size: 14px; color: var(--muted); }
.empty-state .button { font-size: 12px; margin-top: 12px; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 28px 5px 18px 0; }
.pagination>.muted { font-size: 11px; }
.pagination .button { min-height: 44px; padding: 10px; font-size: 11px; }
.flash { display: flex; align-items: center; gap: 11px; padding: 15px; border: 1px solid var(--border); border-radius: 8px; background: var(--accent); box-shadow: 3px 3px 0 var(--shadow-color); margin: 0 4px 24px 0; font-size: 13px; font-weight: 650; color: var(--on-accent); }
.flash.error { background: var(--soft); }
.flash .icon { width: 19px; height: 19px; }
.stats-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin: 0 3px 26px 0; }
.stats-grid>div { display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--border); border-radius: 8px; box-shadow: 3px 3px 0 var(--shadow-color); background: var(--panel); padding: 17px 11px; }
.stats-grid>div:nth-child(2) { background: #252525; }.stats-grid>div:nth-child(3) { background: #303030; }
.stats-grid strong { font-size: 30px; font-weight: 850; line-height: 1.15; }.stats-grid span { font-size: 10px; font-weight: 650; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 26px; }
.admin-tabs a { display: flex; align-items: center; min-height: 44px; padding: 9px 11px; border: 1px solid var(--border); border-radius: 6px; font-size: 12px; font-weight: 750; }
.admin-tabs a.active { background: var(--ink); color: var(--on-accent); box-shadow: 3px 3px 0 #737373; }
.admin-item { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 16px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); margin-bottom: 15px; }
.admin-item>div:first-child { min-width: 0; flex: 1; }.admin-item strong { font-size: 13px; line-height: 1.6; font-weight: 750; display: block; }.admin-item small { display: block; font-size: 10px; margin-top: 4px; }
.admin-item .button { min-height: 44px; font-size: 11px; padding: 9px; }.admin-item-actions { display: flex; }.admin-item-actions .icon { width: 18px; height: 18px; }
.system-status { display: flex; align-items: center; gap: 9px; padding: 15px 0 13px; font-size: 13px; font-weight: 750; }
.form-panel>a { font-size: 12px; font-weight: 700; text-decoration: underline; }
.audit-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; border-bottom: 1.5px solid #444; padding: 13px 0; margin-bottom: 0; font-size: 11px!important; }.audit-row time { color: var(--muted); }
.prose h2 { font-size: 23px; line-height: 1.3; margin-top: 30px; margin-bottom: 16px; }.prose h2:first-child { margin-top: 0; }.prose p { font-size: 15px; line-height: 1.9; color: #d0d0d0; }
.preview-text { font-size: 14px; white-space: pre-wrap; line-height: 1.8; }
.error-page { padding: 40px 0; text-align: center; }.error-code { display: inline-block; font-size: 98px; line-height: 1; font-weight: 950; letter-spacing: -7px; color: var(--ink); text-shadow: 5px 5px 0 var(--shadow-color); }.error-page h1 { font-size: 32px; margin-top: 28px; }.error-page p { max-width: 440px; margin: 0 auto 32px; font-size: 14px; color: var(--muted); }
.local-note { margin: 0 5px 18px 0; font-size: 9px; font-weight: 750; letter-spacing: .8px; border: 1.5px dashed #777; border-radius: 4px; padding: 6px 8px; }

/* Fixed outside the scrolling content; the same height is reserved in main. */
.mobile-nav { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; min-height: calc(var(--nav-height) + env(safe-area-inset-bottom, 0px)); padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)); background: #080808; border-top: 1px solid var(--border); }
.mobile-nav-inner { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); align-items: center; gap: 8px; max-width: 640px; min-height: 59px; margin: auto; }
.mobile-nav-inner>a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-width: 0; min-height: 54px; padding: 4px 0; color: #999; font-size: 10px; font-weight: 650; line-height: 1.25; }
.mobile-nav-inner>a>.icon { width: 22px; height: 22px; }
.mobile-nav-inner>a.active { color: var(--ink); }
.mobile-nav-inner>a.active:not(.mobile-create)::after { content: ""; width: 15px; height: 2px; position: absolute; bottom: -1px; background: var(--ink); }
.mobile-nav-inner>a.mobile-create { width: 46px; height: 46px; min-height: 46px; justify-self: center; background: var(--accent); color: var(--on-accent); border-radius: 4px; box-shadow: 3px 3px 0 #454545; }
.mobile-create .icon { width: 25px!important; height: 25px!important; }
.mobile-create:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 #454545; }
.nav-badge { display: inline-block; min-width: 14px; padding: 0 3px; margin-left: 3px; border-radius: 2px; background: var(--ink); color: var(--on-accent); font-size: 9px; }
.site-footer { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 35px; padding-top: 20px; border-top: 1px solid #242424; color: var(--muted); font-size: 11px; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .local-note { flex-basis: 100%; margin: 0; padding: 0; border: 0; text-align: center; font-size: 9px; }
@media(min-width:440px) {
  .post-footer { display: flex; flex-wrap: wrap; gap: 12px; }
  .post-options { margin-left: auto; }
  .comment-link { margin-right: auto; }
}
@media(min-width:700px) {
  .site-header { padding-top: 32px; padding-bottom: 32px; }
  .brand-tree { width: 76px; height: 76px; }
  .brand-name { font-size: 30px; }
  .app-layout { padding: 0 26px; }
  .post-card { padding: 24px 23px 14px; }
  .post-title { font-size: 23px; }
  .form-panel { padding: 27px; }
  .auth-wrap { padding: 30px; }
}
@media(max-width:370px) {
  .app-layout { padding: 0 14px; }
  .post-card { padding: 18px 14px 10px; }
  .author-line { flex-basis: calc(100% - 40px); font-size: 11px; }
  .topic { margin-left: 38px; }
  .post-options { flex-direction: column; }
  .audience-fields { gap: 9px; }
  .audience-fields select { padding-left: 8px; padding-right: 8px; }
  .form-panel { padding: 20px 15px; }
  .auth-wrap { padding: 24px 18px; }
  .stats-grid { gap: 8px; }
  .stats-grid>div { padding: 14px 8px; }
  .stats-grid span { font-size: 9px; }
  .admin-item { padding: 14px 10px; }
  .admin-item-actions .icon-button { width: 44px; }
  .pagination .button { padding: 9px 7px; font-size: 11px; }
  .pagination>.muted { font-size: 10px; }
  .mobile-nav-inner { gap: 4px; }
  .mobile-nav-inner>a { font-size: 9px; }
}
@media(prefers-reduced-motion:reduce) { * { transition: none!important; scroll-behavior: auto!important; } }
