:root {
  --bg: #fbf7f1;
  --surface: #fffdf9;
  --ink: #332822;
  --muted: #756a63;
  --line: #eadfd4;
  --accent: #f47f45;
  --accent-dark: #a64e28;
  --primary-fill: #b94b1e;
  --primary-hover: #a9411a;
  --peach: #fff1e8;
  --mint: #dff3ea;
  --rose: #f5e5e1;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif; }
button, a { font: inherit; color: inherit; }
button { border: 0; background: none; padding: 0; }
a { text-decoration: none; }
h1, h2, h3, p { margin: 0; }
.icon { display: inline-block; flex: none; width: 24px; height: 24px; stroke-width: 1.8; }
.topbar { height: 74px; background: var(--surface); border-bottom: 1px solid var(--line); }
.top-inner { height: 100%; margin: auto; width: min(1288px, calc(100% - 64px)); display: flex; align-items: center; justify-content: space-between; position: relative; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 850; letter-spacing: -.5px; line-height: 1; color: #2d1f14; }
.brand img { width: 47px; height: 40px; object-fit: contain; }
.search { position: absolute; left: 50%; transform: translateX(-50%); width: 380px; height: 42px; display: flex; align-items: center; gap: 9px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; color: var(--muted); padding: 0 12px; font-size: 14px; }
.search kbd { margin-left: auto; padding: 0 6px; border: 1px solid var(--line); border-radius: 4px; font: 12px/21px -apple-system, BlinkMacSystemFont, sans-serif; }
.account-tools, .account { display: flex; align-items: center; gap: 12px; }
.account { gap: 8px; font-weight: 650; font-size: 14px; }
.account .icon { width: 16px; height: 16px; color: var(--muted); }
.avatar { flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #733c25; font-size: 12px; font-weight: 750; }
.account .avatar { width: 34px; height: 34px; font-size: 11px; }
.peach { background: #ffe6d8; color: #9a4828; }
.mint { background: var(--mint); color: #316552; }
.rose { background: var(--rose); color: #86464a; }
.icon-button { width: 38px; height: 38px; display: grid; place-items: center; flex: none; border-radius: 9px; color: var(--muted); }
.account-tools > .icon-button { background: var(--bg); border: 1px solid var(--line); color: var(--ink); }

.home { display: grid; grid-template-columns: 215px minmax(0, 1fr) 298px; gap: 32px; width: min(1288px, calc(100% - 64px)); margin: 0 auto; padding: 38px 0 32px; }
.left-rail { padding-top: 6px; }
.rail-label { margin: 0 0 13px 14px; color: var(--muted); font-size: 11px; font-weight: 760; letter-spacing: .12em; }
.nav { display: grid; gap: 4px; }
.nav-link { display: flex; align-items: center; gap: 12px; padding: 0 14px; height: 46px; border-radius: 9px; color: var(--ink); font-size: 15px; font-weight: 625; }
.nav-link .icon { color: var(--muted); }
.nav-link.selected { background: var(--peach); color: var(--accent-dark); box-shadow: inset 3px 0 var(--accent); }
.nav-link.selected .icon { color: var(--accent-dark); }
.rail-divider { height: 1px; margin: 22px 14px 16px; background: var(--line); }
.rail-footer, .public-footer nav { display: flex; gap: 14px; }
.rail-footer { margin-left: 14px; font-size: 12px; color: var(--muted); }

.feed-title h1 { font-size: 37px; line-height: 1.13; font-weight: 780; letter-spacing: -1.25px; }
.feed-title p { margin-top: 5px; color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 3px 12px #4a332406; }
.composer { display: flex; align-items: center; padding: 13px 15px; gap: 10px; margin-top: 20px; }
.compose-input { flex: 1; min-width: 0; padding: 9px 13px; text-align: start; border-radius: 8px; background: var(--bg); color: var(--muted); border: 1px solid #efe5da; }
.post-button { border-radius: 8px; height: 39px; padding: 0 20px; background: var(--primary-fill); color: var(--bg); font-weight: 750; }
.feed-tabs { display: flex; gap: 25px; border-bottom: 1px solid var(--line); margin: 13px 0 14px; }
.feed-tabs a { padding: 10px 4px 9px; color: var(--muted); font-size: 14px; font-weight: 650; border-bottom: 2px solid transparent; }
.feed-tabs .current { color: var(--accent-dark); border-color: var(--accent); }

.post { padding: 16px 16px 0; }
.post-header { display: flex; align-items: center; gap: 10px; }
.post-header strong { font-size: 15px; font-weight: 740; }
.post-header > details { margin-left: auto; }
.post-meta { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12px; }
.post-meta .icon { width: 15px; height: 15px; margin-right: -2px; }
.post p { margin: 11px 0 13px; font-size: 14px; }
.post-photo { display: block; width: 100%; height: 310px; object-fit: cover; object-position: 50% 56%; border-radius: 8px; }
.reactions { display: flex; align-items: center; gap: 7px; padding: 11px 1px 10px; color: var(--muted); font-size: 12px; }
.reaction-dot { width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; background: var(--peach); color: var(--accent-dark); }
.reaction-dot .icon { width: 16px; height: 16px; }
.comment-count { margin-left: auto; }
.post-actions { display: flex; align-items: center; gap: 26px; border-top: 1px solid var(--line); padding: 4px 0; }
.post-actions button, .post-actions > a { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 650; height: 37px; color: var(--muted); }
.post-actions .icon-button { display: grid; margin-left: auto; }
.right-rail { padding-top: 7px; }
.announcements-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }
.announcements-title h2 { font-size: 19px; font-weight: 760; letter-spacing: -.35px; }
.announcements-title .icon { color: var(--accent-dark); }
.notice { display: flex; align-items: flex-start; gap: 12px; padding: 15px 14px 16px; margin-bottom: 12px; }
.notice-icon { width: 40px; height: 40px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.notice-icon .icon { width: 23px; height: 23px; }
.notice-body { min-width: 0; }
.tag { display: block; color: var(--accent-dark); letter-spacing: .075em; font-weight: 760; font-size: 10px; margin-top: 1px; }
.tag.secondary { color: #316552; }
.notice h3 { font-size: 15px; line-height: 1.25; margin-top: 5px; font-weight: 760; }
.notice p { font-size: 13px; line-height: 1.45; color: var(--muted); margin-top: 6px; }
.notice a { display: inline-flex; gap: 3px; align-items: center; margin-top: 10px; color: var(--accent-dark); font-size: 12px; font-weight: 740; }
.notice a .icon { width: 17px; height: 17px; }

.help-link { display: flex; align-items: center; gap: 5px; font-weight: 650; font-size: 14px; color: var(--muted); }
.welcome { display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 80px; max-width: 1136px; margin: 0 auto; padding: 72px 0 60px; min-height: calc(100vh - 144px); }
.welcome-panel { min-height: 620px; background: #eee4d4; border: 1px solid #e9dbca; border-radius: 22px; padding: 60px 38px 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.logo-wrapper { width: 330px; height: 330px; margin: -22px 0 1px; }
.logo-wrapper img { display: block; width: 100%; height: 100%; mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent), linear-gradient(to bottom, transparent, black 12%, black 88%, transparent); mask-composite: intersect; }
.welcome-panel h1 { font-size: 36px; font-weight: 780; line-height: 1.1; letter-spacing: -1.2px; }
.welcome-panel p { max-width: 340px; margin: 13px auto 0; color: #695747; font-size: 16px; }
.login { padding: 35px; border-radius: 16px; }
.login h2 { font-size: 33px; line-height: 1.15; font-weight: 780; letter-spacing: -.85px; }
.login > p { color: var(--muted); margin: 9px 0 24px; }
.provider-list { display: grid; gap: 11px; }
.provider { position: relative; display: flex; align-items: center; justify-content: center; height: 52px; border: 1px solid #e3d6c9; border-radius: 9px; background: white; font-weight: 700; font-size: 14px; }
.provider img { position: absolute; left: 16px; }
.provider.apple { color: #fff; background: #232120; border-color: #232120; }
.provider.apple img { width: 23px; height: 23px; left: 15px; }
.login-terms { font-size: 12px; color: var(--muted); margin-top: 22px; line-height: 1.65; }
.login-terms a { color: var(--accent-dark); font-weight: 700; }
.public-footer { display: flex; align-items: center; justify-content: space-between; height: 70px; border-top: 1px solid var(--line); max-width: 1288px; margin: 0 auto; color: var(--muted); font-size: 13px; }

.login { border-top: 3px solid var(--accent); }

/* Native controls, menus and feed states */
button, summary { cursor: pointer; }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
button:focus-visible, summary:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible,
.photo-picker:focus-within { outline: 2px solid var(--accent-dark); outline-offset: 3px; }
.skip-link { position: absolute; z-index: 5; top: 12px; left: 12px; transform: translateY(-160%); padding: 8px 12px; background: var(--surface); }
.skip-link:focus { transform: none; }
.mobile-menu { display: none; }
.account-menu, .post-menu, .mobile-menu { position: relative; }
.menu-panel {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 2; width: max-content; min-width: 156px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 9px; box-shadow: 0 8px 26px #33282213;
  padding: 4px; color: var(--ink);
}
.menu-panel a, .menu-panel button { display: flex; align-items: center; gap: 7px; width: 100%; padding: 8px 10px; border-radius: 6px; text-align: left; font-size: 14px; }
.menu-panel a:hover, .menu-panel button:hover { background: var(--peach); }
.menu-panel .icon { width: 17px; height: 17px; }
.icon-button .icon, .nav .icon { width: 19px; height: 19px; }
.search-submit { display: flex; color: var(--muted); }
.search-submit .icon { width: 18px; height: 18px; }
.search input { width: 100%; min-width: 0; padding: 0; border: none; background: none; color: var(--ink); font: inherit; }
.search input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
.search:focus-within { outline: 2px solid var(--accent-dark); outline-offset: 2px; }
.search input:focus-visible { outline: none; }
.search kbd { flex: none; }
.rail-label, .tag { text-transform: uppercase; }
.nav-link:hover { background: #f5ede4; }
.nav-link.selected:hover { background: var(--peach); }
.nav-link:focus-visible { outline-offset: -2px; }
.post-button:hover:not(:disabled) { background: var(--primary-hover); }
.post-list { display: grid; gap: 14px; }
.post { scroll-margin-top: 16px; }
.post > p, .shared-post > p, .comment p { white-space: pre-wrap; overflow-wrap: anywhere; }
.shared-post { margin: 12px 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.shared-post p { margin: 9px 0; font-size: 14px; }
.post-shared-label { color: var(--muted); font-size: .86rem; }
.shared-author { font-weight: 750; }
.shared-author:hover { text-decoration: underline; }
.shared-post .post-photo { height: auto; min-height: 0; max-height: 280px; object-fit: contain; background: var(--bg); }
.shared-post .post-video { background: #17131a; }
[data-share-preview] .shared-post { margin: 0; }
.post-photo { object-position: center; }
.post-video { object-fit: contain; background: #17131a; }
.post-cat span { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-dark); }
.post-cat .icon { width: 16px; height: 16px; }
.post-cat { display: block; margin-top: 12px; }
.post-cat span { margin-top: 7px; font-weight: 700; }
.cat-profile { display: grid; justify-items: start; gap: 10px; margin-top: 16px; padding: 16px; }
.cat-profile label { font-weight: 700; }
.cat-profile p { margin: 0; color: var(--muted); }
.cat-profile .post-button, .cat-directory-actions .post-button { display: inline-flex; align-items: center; height: auto; min-height: 39px; padding-block: 7px; }
.cat-profile-fields { display: grid; gap: 10px; width: 100%; min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.cat-profile-fields > .post-button { justify-self: start; gap: 8px; }
.cat-profile-fields:disabled > :not(.post-button) { opacity: .68; }
.cat-profile-fields:disabled .post-button { cursor: wait; }
.form-dialog [hidden] { display: none; }
.cat-photo-drop { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 15px; border: 2px dashed var(--line); border-radius: 12px; background: var(--bg); }
.cat-photo-drop.is-dragging { border-color: var(--accent-dark); background: var(--peach); }
.cat-profile-avatar, .cat-photo-circle { width: 144px; height: 144px; border-radius: 50%; }
.cat-profile-avatar { object-fit: cover; }
.cat-photo-circle { display: grid; flex: none; place-items: center; overflow: hidden; background: var(--peach); color: var(--accent-dark); }
.cat-photo-circle:focus-within { outline: 2px solid var(--accent-dark); outline-offset: 3px; }
.cat-photo-placeholder .icon { width: 38px; height: 38px; }
.cat-photo-circle canvas, .cat-photo-circle img { width: 100%; height: 100%; object-fit: cover; }
.cat-photo-description { min-width: 0; }
.cat-photo-description > :first-child { color: var(--ink); font-weight: 700; }
.cat-photo-filename { overflow-wrap: anywhere; font-size: .85rem; }
.cat-photo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.cat-secondary-button { padding: 7px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font-weight: 650; }
.cat-secondary-button:hover:not(:disabled) { background: var(--peach); }
.cat-secondary-button:disabled { opacity: .55; cursor: default; }
.cat-profile-fields :is(input, select, textarea) { max-width: 100%; min-width: 0; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; color: inherit; background: var(--bg); font: inherit; }
.cat-profile-fields label { display: grid; gap: 4px; font-weight: 700; }
.cat-profile-fields label.cat-check { display: flex; align-items: center; gap: 8px; }
.cat-fields-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 145px), 1fr)); gap: 10px; }
.cat-dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.cat-dialog-heading p, .form-dialog #cat-photo-help, .cat-crop-dialog > p { color: var(--muted); }
.form-dialog, .cat-crop-dialog, .cat-profile-result { max-height: calc(100dvh - 24px); padding: 18px; color: var(--ink); overflow-y: auto; }
.form-dialog { width: min(560px, calc(100% - 24px)); }
.form-dialog[open]:not(:modal) { position: static; margin: 16px auto; }
.form-dialog .form-error { margin-top: 10px; padding: 8px 10px; border-radius: 8px; background: #fbe8e6; color: #8f2626; }
.cat-crop-dialog { width: min(520px, calc(100% - 24px)); }
.form-dialog::backdrop, .cat-crop-dialog::backdrop, .cat-profile-result::backdrop { background: #2d1f1490; }
body:has(dialog:modal) { overflow: hidden; }
.cat-crop-stage { position: relative; width: min(100%, 440px, 52dvh); aspect-ratio: 1; margin: 10px auto; overflow: hidden; border-radius: 10px; background: #31282a; }
.cat-crop-stage canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.cat-crop-stage canvas:active { cursor: grabbing; }
.cat-crop-mask { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle closest-side, transparent 76.6%, #17101db8 77%); }
.cat-crop-mask::after { content: ''; position: absolute; inset: 11.6%; border: 2px solid #fffdf9; border-radius: 50%; }
.cat-zoom-row { display: flex; align-items: center; gap: 8px; }
.cat-zoom-row input { flex: 1; min-width: 0; accent-color: var(--accent-dark); }
.cat-crop-dialog .cat-photo-actions { justify-content: flex-end; }
.cat-crop-dialog .post-button { min-height: 39px; }
.cat-profile-spinner, [data-popup-form][aria-busy="true"] .post-button::before { flex: none; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: cat-profile-spin .7s linear infinite; }
[data-popup-form][aria-busy="true"] .post-button::before { content: ''; }
@keyframes cat-profile-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .cat-profile-spinner, [data-popup-form][aria-busy="true"] .post-button::before { animation: none; }
}
.cat-profile-result { width: min(420px, calc(100% - 32px)); }
.cat-profile-result p { margin: 8px 0 16px; }
.cat-profile-fields > .post-button { display: inline-flex; align-items: center; }
.cat-identity { margin-top: 0; }
.cat-identity-top { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.cat-identity-top h1 { overflow-wrap: anywhere; line-height: 1.15; }
.cat-profile-metrics { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cat-profile-metrics > * { padding: 3px 9px; border-radius: 16px; background: var(--peach); }
.cat-details-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); width: 100%; gap: 10px; margin: 4px 0 0; }
.cat-details-list dt { color: var(--muted); font-size: .85rem; }
.cat-details-list dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.cat-record { width: 100%; border-top: 1px solid var(--line); padding-top: 10px; overflow-wrap: anywhere; }
.cat-record h3 { font-size: 1rem; }
.cat-record-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.cat-text-link { color: var(--accent-dark); font-weight: 650; }
.album-heading { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 12px; }
.album-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; width: 100%; }
.album-tile { display: grid; min-width: 0; align-content: start; gap: 4px; }
.album-tile :is(img, .album-tile-video) { width: 100%; aspect-ratio: 1; border-radius: 9px; background: var(--peach); }
.album-tile img { display: block; object-fit: cover; }
.album-tile-video { display: grid; place-content: center; justify-items: center; gap: 4px; color: var(--accent-dark); }
.album-tile strong { font-size: .82rem; overflow-wrap: anywhere; }
.album-gallery, .album-viewer { width: min(760px, calc(100% - 24px)); }
.album-gallery[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); overflow: hidden; }
.album-gallery-grid { overflow-y: auto; overscroll-behavior: contain; padding: 3px; }
.album-viewer-content { display: grid; place-items: center; }
.album-viewer-content :is(img, video) { display: block; max-width: 100%; max-height: calc(100dvh - 130px); border-radius: 9px; }
.album-drop { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.album-upload-preview { display: grid; place-items: center; min-height: 120px; background: var(--peach); border-radius: 9px; overflow: hidden; }
.album-upload-preview :is(img, video) { display: block; width: 100%; max-height: 300px; object-fit: contain; }
.album-upload-placeholder { color: var(--accent-dark); }
.album-upload-placeholder .icon { width: 34px; height: 34px; }
.album-upload-controls { display: grid; gap: 6px; min-width: 0; }
.album-upload-controls p { font-size: .85rem; overflow-wrap: anywhere; }
.cat-map { width: 100%; height: clamp(190px, 34dvh, 320px); border: 1px solid var(--line); border-radius: 10px; background: var(--bg); isolation: isolate; }
.map-picker { display: grid; min-width: 0; gap: 8px; }
.map-picker .cat-photo-actions { margin-top: 0; }
.map-picker [data-map-status], .map-coordinates { font-size: .86rem; }
.map-coordinates .cat-fields-grid { margin-top: 6px; }
.cat-map .leaflet-control-attribution a { text-decoration: underline; }
.compose-cats { min-width: 0; margin: 0; padding: 0; border: 0; }
.compose-cats legend { padding: 0; font-weight: 700; }
.compose-cat-list { position: relative; display: flex; gap: 10px; overflow-x: auto; padding: 6px 4px 8px; }
.compose-cat-option { position: relative; flex: 0 0 76px; justify-items: center; align-content: start; text-align: center; cursor: pointer; }
.compose-cat-option input { position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0; }
.compose-cat-circle { display: grid; place-items: center; width: 64px; height: 64px; border: 2px solid transparent; border-radius: 50%; background: var(--peach); color: var(--accent-dark); }
.compose-cat-circle img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.compose-cat-option input:checked + .compose-cat-circle { border-color: var(--accent-dark); box-shadow: 0 0 0 2px var(--peach); }
.compose-cat-option input:focus-visible + .compose-cat-circle { outline: 2px solid var(--accent-dark); outline-offset: 3px; }
.compose-cat-option > :last-child { font-size: .8rem; max-width: 100%; overflow-wrap: anywhere; }
@media (max-width: 650px) {
  .album-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .album-summary > :nth-child(n+7) { display: none; }
}
.cat-directory-actions { margin: 16px 0; }
.cat-directory { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 12px; }
.cat-directory-item { display: grid; gap: 4px; padding: 10px; }
.cat-directory-item img { width: 100%; height: 140px; object-fit: cover; border-radius: 8px; }
.cat-directory-item strong, .cat-directory-item span { overflow-wrap: anywhere; }
.cat-directory-item span { color: var(--muted); font-size: .85rem; }
.post-photo:first-child, .post-header + .post-photo { margin-top: 12px; }
.post-actions { gap: 25px; }
.post-actions .icon, .reaction-dot .icon { width: 18px; height: 18px; }
.reaction-dot .icon { width: 13px; height: 13px; }
.post-actions .save-form { margin-left: auto; }
.post-actions [aria-pressed="true"] { color: var(--accent-dark); }
.post-actions [aria-pressed="true"] .icon { fill: #ffd3be; }
.post-actions a:hover, .post-actions button:hover, .comment-count:hover { color: var(--accent-dark); }
.older-posts, .back-home, .message-page a { color: var(--accent-dark); font-weight: 700; }
.older-posts, .message-page a { display: inline-flex; align-items: center; gap: 6px; justify-self: start; }
.older-posts .icon, .message-page .icon { width: 17px; height: 17px; }
.back-home { display: inline-block; margin-bottom: 14px; }
.empty-feed { padding: 35px 24px; text-align: center; }
.empty-feed > .icon { color: var(--accent-dark); width: 29px; height: 29px; }
.empty-feed h2 { margin-top: 4px; font-size: 19px; }
.empty-feed p { margin-top: 4px; color: var(--muted); }
.comments { padding: 12px 0; border-top: 1px solid var(--line); scroll-margin-top: 12px; }
.comments h2 { font-size: 17px; }
.comment-list { max-height: 310px; overflow-y: auto; }
.comment-form { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 8px; margin-top: 10px; }
.comment-form textarea { width: 100%; min-width: 0; resize: vertical; padding: 8px 11px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: inherit; font: inherit; }
.comment-form .post-button { grid-column: 2; justify-self: end; }
.comment-form .post-feedback { grid-column: 2; }
.post [hidden] { display: none; }
.post p.post-feedback, .post-feedback { margin: 6px 0; font-size: .86rem; color: var(--muted); }
.post p.post-feedback[role="alert"] { color: #8f2626; }
.comment { display: flex; gap: 10px; padding: 13px 0; border-top: 1px solid var(--line); }
.comment .avatar { width: 34px; height: 34px; }
.comment time { margin-left: 8px; font-size: 12px; color: var(--muted); }
.comment p { margin-top: 2px; }
.notice a .icon { width: 14px; height: 14px; }
.help-link .icon { width: 18px; height: 18px; }
.provider:hover { border-color: var(--accent-dark); }
.provider.apple:hover { background: #352f2d; }
.login .auth-message { background: var(--peach); padding: 9px 12px; border-radius: 7px; margin-top: -10px; margin-bottom: 14px; font-size: 13px; color: var(--accent-dark); }
.demo-form { padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--line); }
.demo-form button { color: var(--accent-dark); font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.message-page { max-width: 600px; width: calc(100% - 40px); margin: 60px auto; padding: 26px; }
.message-page p { margin: 8px 0 18px; color: var(--muted); }
.welcome, .public-footer { width: calc(100% - 64px); }
.logo-wrapper { max-width: 100%; }
.public-footer a:hover, .rail-footer a:hover { text-decoration: underline; }

@media (max-width: 1150px) {
  .home { grid-template-columns: 172px minmax(0, 1fr) 244px; gap: 22px; }
  .welcome { gap: 42px; }
  .welcome-panel { min-height: 540px; padding-inline: 23px; }
}
@media (max-width: 960px) {
  .home { grid-template-columns: 168px minmax(0, 1fr); }
  .right-rail { grid-column: 2; }
  .welcome { gap: 28px; padding: 42px 0; }
  .welcome-panel h1 { font-size: 30px; }
  .login { padding: 25px; }
  .search { width: min(34vw, 380px); }
}
@media (max-width: 680px) {
  .topbar { height: 62px; }
  .top-inner, .home, .welcome, .public-footer { width: calc(100% - 28px); }
  .top-inner { gap: 8px; }
  .brand { font-size: 17px; gap: 4px; white-space: nowrap; }
  .brand img { width: 34px; height: 31px; }
  .mobile-menu { display: block; }
  .mobile-menu .menu-panel { left: 0; right: auto; }
  .left-rail, .search kbd, .account-name { display: none; }
  .account-tools { margin-left: auto; gap: 5px; }
  .account { gap: 2px; }
  .account .avatar { width: 30px; height: 30px; }
  .account-tools > .icon-button { width: 30px; height: 32px; }
  .mobile-menu > summary { width: 27px; }
  .search { position: static; transform: none; width: auto; flex: 1; min-width: 42px; gap: 5px; height: 34px; padding: 0 6px; }
  .search input { font-size: 13px; }
  .home { display: block; padding-top: 21px; }
  .feed-title h1 { font-size: 32px; }
  .composer { gap: 6px; padding: 10px; }
  .composer .avatar { display: none; }
  .post { padding: 13px 12px 0; }
  .post-photo { height: auto; min-height: 150px; max-height: 310px; }
  .post-actions { gap: 14px; }
  .right-rail { margin-top: 24px; }
  .welcome { display: flex; flex-direction: column; gap: 22px; padding: 22px 0 34px; }
  .welcome-panel { width: 100%; min-height: 0; padding: 18px 18px 24px; }
  .logo-wrapper { width: 200px; height: 200px; margin: -8px 0 -7px; }
  .welcome-panel h1 { font-size: 26px; }
  .welcome-panel p { font-size: 14px; margin-top: 8px; }
  .login { width: 100%; max-width: 470px; }
  .login h2 { font-size: 29px; }
}
@media (max-width: 370px) {
  .account > .icon { display: none; }
  .post-actions { gap: 8px; }
  .post-actions .icon { width: 16px; height: 16px; }
}
