.feed { min-width: 0; margin-inline: calc(-1 * var(--gutter)); overflow-wrap: anywhere; background: var(--paper); }
.feed-controls { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 var(--gutter) 16px; }
.feed-select { min-width: 0; max-width: 65%; }
.feed-select > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-intro { color: var(--muted); font-size: var(--fs-caption); margin: 0; padding: 0 var(--gutter) 16px; }
.feed-empty { padding: 24px var(--gutter); }
.feed-pins { margin: 0 var(--gutter) 16px; }
.feed-pins__label { margin: 0 0 6px; color: var(--muted); font-size: var(--fs-caption); }
.feed-pin { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; margin-top: 6px; padding: 10px 12px; background: var(--primary-soft); color: var(--on-primary-soft); border: 0; border-radius: var(--r-sm); text-align: left; }
.feed-pin > span { flex: 1; min-width: 0; }
.feed-pin small { display: block; font-size: var(--fs-caption); }
.feed-day { color: var(--muted); text-align: center; font-size: var(--fs-caption); padding: 12px 16px; }
.feed-post { background: var(--surface); border: 0; border-radius: 0; box-shadow: none; padding: 18px 0 10px; margin: 0 0 8px; min-width: 0; }
.feed-post__head { display: flex; align-items: flex-start; gap: 8px; padding: 0 16px; }
.feed-post__identity { width: 40px; height: 40px; flex-shrink: 0; position: relative; }
.feed-space-avatar { width: 35px; height: 35px; display: inline-flex; justify-content: center; align-items: center; border-radius: 11px; background: var(--primary-soft); color: var(--primary-ink); flex-shrink: 0; }
.feed-space-avatar--child { border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-size: var(--fs-caption); }
.feed-space-avatar .ui-i { width: 19px; height: 19px; }
.feed-author-avatar { position: absolute; right: -3px; bottom: -1px; width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--surface); background: var(--primary-soft); color: var(--on-primary-soft); font-size: 11px; }
.feed-post__heading { min-width: 0; flex: 1; padding-top: 2px; }
.feed-post__space { font-weight: var(--fw-semibold); font-size: var(--fs-body-s); }
.feed-post__byline { color: var(--muted); font-size: var(--fs-caption); line-height: 1.4; }
.feed-post__context { display: flex; align-items: flex-start; gap: 4px; margin-left: auto; min-width: 0; max-width: 54%; }
.feed-post__menu { flex-shrink: 0; min-width: 36px; width: 36px; min-height: 44px; padding: 2px; margin-right: -4px; }
.feed-post__text { white-space: pre-wrap; font-size: var(--fs-body); line-height: 1.5; padding: 0 16px; margin: 13px 0 0; }
.feed-post__title { font: var(--fw-regular) var(--fs-title-l) / 1.2 var(--font-display); padding: 0 16px; margin: 13px 0 8px; }
.feed-post__relevant { padding: 0 16px; margin: 8px 0 0; font-size: var(--fs-caption); color: var(--muted); }
.feed-post__tag { display: inline-flex; align-items: center; gap: 5px; margin: 12px 16px 0; color: var(--primary-ink); font-size: var(--fs-caption); }
.feed-expand { min-height: 44px; display: inline-flex; align-items: center; padding: 0 3px; background: none; border: 0; color: var(--muted); font: inherit; font-weight: var(--fw-semibold); }
.feed-origin { display: flex; gap: 5px; align-items: center; min-height: 44px; padding: 0 16px; margin-top: 3px; color: var(--primary-ink); font-size: var(--fs-caption); text-decoration: none; }
.feed-origin .ui-i { width: 15px; height: 15px; }
.feed-post__actions { display: flex; align-items: center; gap: 22px; padding: 8px 16px 0; margin-top: 0; border: 0; }
.feed-social { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; min-width: 44px; min-height: 44px; padding: 0; background: none; border: 0; color: var(--muted); font-size: 13px; }
.feed-social > .ui-i { display: block; width: 23px; height: 23px; stroke-width: 1.7; }
.feed-social[aria-pressed="true"] { color: var(--primary-ink); }
.feed-social:disabled { opacity: .65; }
.feed-social--readonly { cursor: default; }
.feed-gallery { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 146px; gap: 3px; margin-top: 12px; }
.feed-gallery[data-count="1"] { display: block; }
.feed-gallery[data-count="2"] { grid-auto-rows: 220px; }
.feed-gallery[data-count="3"] .feed-photo:first-child { grid-row: span 2; }
.feed-photo { position: relative; display: block; padding: 0; width: 100%; height: 100%; border: 0; border-radius: 0; overflow: hidden; background: var(--surface-3); min-height: 100px; }
.feed-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.feed-gallery[data-count="1"] .feed-photo img { max-height: min(70dvh, 640px); height: auto; object-fit: contain; }
.feed-photo__more { position: absolute; inset: 0; display: grid; place-items: center; background: var(--scrim-media); color: var(--on-media); font-size: var(--fs-title-l); }
.feed-video { position: relative; width: 100%; aspect-ratio: 16 / 9; background: var(--surface-3); margin-top: 12px; }
.feed-video video { display: block; width: 100%; height: 100%; object-fit: contain; }
.feed-video__play { position: absolute; inset: 0; width: 100%; display: flex; align-items: center; justify-content: center; gap: 7px; background: transparent; color: var(--on-media); border: 0; }
.feed-play-disc { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--scrim-media); backdrop-filter: blur(8px); }
.feed-play-disc .ui-i { width: 28px; height: 28px; margin-left: 3px; }
.feed-document { display: block; min-height: 48px; margin: 12px 16px 0; padding: 0; width: calc(100% - 32px); overflow: hidden; background: var(--surface-3); color: var(--ink); border: 0; border-radius: var(--r-sm); text-align: left; }
.feed-document__preview { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1.414 / 1; overflow: hidden; background: var(--surface-3); }
.feed-document__preview canvas, .feed-document__preview img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.feed-document__preview canvas { background: white; }
.feed-document__preview [hidden] { display: none; }
.feed-document__preview .feed-preview__text { width: 100%; height: 100%; margin: 0; padding: 16px; overflow: hidden; color: var(--ink); background: var(--surface); font-size: 12px; line-height: 1.5; white-space: pre-wrap; }
.feed-preview__label { max-width: 85%; padding: 16px; color: var(--muted); text-align: center; font-size: var(--fs-caption); }
.feed-document__info { display: flex; align-items: center; gap: 9px; padding: 10px 12px; }
.feed-document__info > span { flex: 1; min-width: 0; }
.feed-document__info > .ui-i { flex-shrink: 0; width: 19px; height: 19px; }
.feed-document small { display: block; color: var(--muted); font-size: var(--fs-caption); }
.feed-journal { display: grid; gap: 14px; padding: 0 16px; margin-top: 12px; }
.feed-journal:empty { display: none; }
.feed-journal__section { min-width: 0; }
.feed-journal__section h3 { margin: 0 0 4px; font: var(--fw-semibold) var(--fs-body-s) / 1.4 var(--font-ui); color: var(--ink); }
.feed-journal__section p, .feed-journal__section li { margin: 0; white-space: pre-wrap; font-size: var(--fs-body-s); line-height: 1.5; }
.feed-journal__group { margin-top: 9px; }
.feed-journal__group h4 { margin: 0 0 3px; font-size: var(--fs-body-s); line-height: 1.4; font-weight: var(--fw-medium); }
.feed-journal__group ul { padding-left: 20px; margin: 0; }
.feed-journal__group li + li { margin-top: 3px; }
.feed-journal__expand { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; margin: 1px 0 -4px; padding: 3px 0; background: none; border: 0; color: var(--primary-ink); font-size: var(--fs-caption); font-weight: var(--fw-medium); }
.feed-journal__expand .ui-i { width: 13px; height: 13px; }
.feed-post--journal-subject .feed-journal { gap: 6px; }
.feed-document--reference { min-height: 44px; margin-top: 4px; background: none; color: var(--primary-ink); }
.feed-document--reference .feed-document__info { min-height: 44px; gap: 7px; padding: 6px 0; font-size: var(--fs-caption); }
.feed-document--reference .feed-document__name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.feed-document--reference .ui-i { width: 16px; height: 16px; }
.feed-poll { margin-top: 12px; padding: 0 16px; }
.feed-poll label { display: flex; align-items: center; gap: 9px; min-height: 44px; font-size: var(--fs-body-s); }
.feed-poll label span { flex: 1; }
.feed-poll small { color: var(--muted); font-size: var(--fs-caption); }
.feed-poll input { accent-color: var(--primary); }
.feed-more { padding: 16px; text-align: center; }
.feed-sheet-list { display: grid; }
.feed-sheet-row { display: flex; gap: 12px; align-items: center; min-height: 58px; width: 100%; background: none; color: var(--ink); padding: 10px 0; border: 0; text-align: left; }
.feed-sheet-row > span:nth-child(2) { flex: 1; min-width: 0; }
.feed-sheet-section { margin: 16px 0 5px; color: var(--muted); font-size: var(--fs-caption); text-transform: uppercase; letter-spacing: .05em; }
.feed-gallery-view { width: 100%; display: block; max-height: 65dvh; object-fit: contain; background: var(--surface-3); }
.feed-gallery-controls { display: flex; align-items: center; justify-content: space-between; min-height: 44px; margin-top: 8px; }
.feed-sheet-note { color: var(--muted); font-size: var(--fs-body-s); }
.feed-sheet-target { margin: 16px 0; display: flex; align-items: center; gap: 11px; }
.feed-sheet-target > span { flex: 1; min-width: 0; }
.feed-full { min-height: 100dvh; display: flex; flex-direction: column; margin: 0; background: var(--paper); }
.feed-full__head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 10px; min-height: 64px; padding: calc(8px + env(safe-area-inset-top, 0px)) 12px 8px; background: var(--paper); border-bottom: 1px solid var(--line); }
.feed-full__head h1 { flex: 1; min-width: 0; margin: 0; font-size: var(--fs-title); font-weight: var(--fw-semibold); }
.feed-full__body { flex: 1; min-width: 0; padding: 16px 0; }
.feed-form { padding: 0 16px; display: grid; gap: 16px; max-width: 760px; width: 100%; margin: 0 auto; }
.feed-form label { display: block; font-size: var(--fs-body-s); font-weight: var(--fw-medium); }
.feed-form label > .ui-input, .feed-form label > .ui-select, .feed-form label > .ui-textarea { margin-top: 6px; }
.feed-form textarea { resize: vertical; min-height: 120px; }
.feed-type { display: flex; gap: 7px; flex-wrap: wrap; }
.feed-type button { min-height: 44px; }
.feed-form__hint { margin: 0; font-size: var(--fs-caption); font-weight: var(--fw-regular); color: var(--muted); }
.feed-upload { position: relative; display: inline-flex; align-items: center; gap: 7px; min-height: 44px; overflow: hidden; }
.feed-upload input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; }
.feed-upload[aria-disabled="true"] { opacity: .65; }
.feed-file { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 10px; background: var(--surface); border-radius: var(--r-sm); }
.feed-file img { width: 48px; height: 48px; object-fit: cover; border-radius: var(--r-xs); flex-shrink: 0; }
.feed-file__name { min-width: 0; flex: 1; font-size: var(--fs-body-s); }
.feed-file__name small { display: block; font-size: var(--fs-caption); color: var(--muted); }
.feed-form__error { margin: 0; color: var(--danger-ink); font-size: var(--fs-body-s); }
.feed-full__foot { position: sticky; bottom: var(--feed-keyboard, 0px); display: flex; gap: 8px; justify-content: flex-end; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--surface); border-top: 1px solid var(--line); z-index: 2; }
.feed-comment-area { padding: 0 16px; }
.feed-comment-area h2 { font-size: var(--fs-body); font-weight: var(--fw-semibold); }
.feed-comment { margin-top: 16px; }
.feed-comment__head { display: flex; gap: 8px; align-items: center; }
.feed-comment__author { font-size: var(--fs-body-s); font-weight: var(--fw-medium); }
.feed-comment__date { color: var(--muted); font-size: var(--fs-caption); }
.feed-comment__avatar { display: inline-grid; place-items: center; width: 28px; height: 28px; background: var(--primary-soft); color: var(--on-primary-soft); border-radius: 50%; font-size: var(--fs-caption); }
.feed-comment p { margin: 6px 0 0; font-size: var(--fs-body-s); white-space: pre-wrap; }
.feed-comment__actions { display: flex; gap: 10px; }
.feed-comment__actions button { min-height: 44px; background: none; color: var(--primary-ink); border: 0; padding: 0 3px; font-size: var(--fs-caption); }
.feed-comment__replies { padding-left: 12px; margin-left: 14px; border-left: 1px solid var(--line); }
.feed-comment-compose { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.feed-comment-compose textarea { min-width: 0; width: 100%; resize: vertical; min-height: 44px; max-height: 140px; }
.feed-replying { font-size: var(--fs-caption); color: var(--muted); display: flex; align-items: center; justify-content: space-between; gap: 5px; }
.feed-send { flex-shrink: 0; align-self: flex-end; }
@media (min-width: 768px) {
  .feed { max-width: 760px; margin-inline: auto; }
  .feed-controls { padding-inline: 0; }
  .feed-full { max-width: 820px; margin-inline: auto; }
  .feed-gallery { grid-auto-rows: 210px; }
}
@media (max-width: 350px) {
  .feed-post__actions { gap: 20px; }
  .feed-gallery { grid-auto-rows: 115px; }
  .feed-gallery[data-count="2"] { grid-auto-rows: 160px; }
}

.nav23 .nav23-feed-top { background: var(--paper); border-bottom-color: transparent; backdrop-filter: none; }
.nav23-feed-top .sh-top__search { display: none; }
.nav23-feed-top .sh-top__lead { gap: 3px; }
.feed-header-choice { display: grid; justify-items: start; align-content: center; gap: 1px; min-width: 0; min-height: 56px; padding: 0 6px; border: 0; background: none; color: var(--ink); text-align: left; }
.feed-header-choice > span { font-size: 20px; line-height: 1.2; font-weight: 600; letter-spacing: -.025em; }
.feed-header-choice small { display: flex; align-items: center; gap: 4px; max-width: 180px; font-size: 12px; line-height: 1.4; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-header-choice small .ui-i { width: 13px; height: 13px; flex-shrink: 0; }
.nav23-feed-top .sh-childpill { max-width: 112px; font-size: 13px; }
.nav23-feed-top .sh-top__actions { gap: 1px; }
.feed { padding-top: 8px; }
.feed-origin { display: inline-flex; width: auto; max-width: calc(100% - 32px); padding: 0; margin: 9px 16px 0; min-height: 28px; background: none; border: 0; color: var(--muted); text-align: left; }
.feed-origin span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-origin .ui-i { width: 14px; height: 14px; flex-shrink: 0; }
.feed-post__text { margin-top: 12px; margin-bottom: 18px; font-size: 15px; }
.feed-destination-search { margin: 6px 0 16px; border-color: transparent; background: var(--surface-3); border-radius: 14px; }
.feed-destination-row { padding: 12px; gap: 12px; margin: 3px 0; border-radius: 16px; }
.feed-destination-row[aria-pressed="true"] { background: var(--primary-soft); }
.feed-sheet-row[hidden], [data-feed-choice-group][hidden] { display: none; }
.feed-sheet-row strong { display: block; font-size: 16px; font-weight: 600; }
.feed-sheet-row small { display: block; margin-top: 3px; font-size: 12px; line-height: 1.35; color: var(--muted); font-weight: 400; }
.feed-destination-row .feed-space-avatar { width: 42px; height: 42px; }
.feed-choice-mark { width: 20px; height: 20px; border: 1.5px solid var(--line); border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; }
.feed-destination-row[aria-pressed="true"] .feed-choice-mark { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.feed-choice-mark .ui-i { width: 13px; height: 13px; }
.feed-sheet-section { padding-left: 12px; font-size: 11px; letter-spacing: .09em; font-weight: 600; }
.feed-editor { padding-top: 0; background: var(--surface); }
.feed-editor__head { background: var(--surface); border-bottom: 0; gap: 8px; padding-inline: 12px 16px; }
.feed-editor__head h1 { font-size: 16px; letter-spacing: -.02em; }
.feed-editor__head .feed-publish { min-height: 38px; border-radius: 999px; padding: 8px 18px; box-shadow: none; font-size: 14px; }
.feed-publish:disabled { opacity: .42; }
.feed-editor__body { padding: 16px 20px 32px; }
.feed-editor__form { padding: 0; gap: 0; max-width: 640px; }
.feed-editor__identity { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.feed-editor__avatar { width: 44px; height: 44px; display: grid; place-items: center; flex-shrink: 0; border-radius: 50%; background: var(--primary-soft); color: var(--primary-ink); font-size: 15px; font-weight: 600; }
.feed-editor__person { flex: 1; min-width: 0; }
.feed-editor__person strong { display: block; font-size: 15px; line-height: 1.4; font-weight: 600; }
.feed-audience { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; margin-top: 5px; padding: 5px 8px; border-radius: 8px; background: var(--primary-soft); color: var(--primary-ink); border: 0; font-size: 12px; line-height: 1.2; font-weight: 500; text-align: left; }
.feed-audience span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-audience .ui-i { width: 13px; height: 13px; flex-shrink: 0; }
.feed-audience:disabled { opacity: .75; }
.feed-kind { display: inline-flex; align-items: center; gap: 4px; padding: 10px 0 10px 8px; border: 0; background: none; font-size: 12px; color: var(--muted); flex-shrink: 0; }
.feed-kind .ui-i { width: 13px; height: 13px; }
.feed-editor__title { width: 100%; border: 0; border-radius: 0; background: transparent; color: var(--ink); font: 600 23px/1.35 var(--font-ui); margin: 0 0 16px; padding: 0; min-height: 44px; outline-offset: 5px; }
.feed-form .feed-editor__text { resize: none; width: 100%; min-height: 160px; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; color: var(--ink); font: 400 21px/1.5 var(--font-ui); letter-spacing: -.02em; outline-offset: 5px; }
.feed-form .feed-editor__text:focus-visible, .feed-editor__title:focus-visible { outline: none; box-shadow: none; }
.feed-editor__text::placeholder, .feed-editor__title::placeholder { color: var(--muted); opacity: .8; }
.feed-attachment-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.feed-attachment-grid[data-count="1"] { grid-template-columns: minmax(0, 1fr); }
.feed-editor .feed-file { position: relative; margin: 0; padding: 0; display: flex; min-width: 0; overflow: hidden; border-radius: 16px; background: var(--surface-3); }
.feed-file--photo { aspect-ratio: 1; }
.feed-file--photo img { width: 100%; height: 100%; border-radius: 0; object-fit: cover; }
.feed-attachment-grid[data-count="1"] .feed-file--photo { aspect-ratio: 4/3; }
.feed-file--photo .feed-file__name { position: absolute; inset: auto 0 0; padding: 28px 10px 10px; background: linear-gradient(transparent, var(--scrim-media)); color: var(--on-media); font-size: 12px; }
.feed-file--photo .feed-file__name small { color: var(--on-media); }
.feed-file__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-editor .feed-file__remove { position: absolute; top: 3px; right: 3px; min-width: 44px; width: 44px; min-height: 44px; height: 44px; border-radius: 50%; background: var(--surface); color: var(--ink); box-shadow: 0 1px 5px var(--scrim-media); }
.feed-file__remove .ui-i { width: 16px; height: 16px; }
.feed-editor .feed-file--document, .feed-editor .feed-file--video { grid-column: 1 / -1; min-height: 74px; padding: 16px 45px 16px 14px; gap: 12px; }
.feed-file__glyph { width: 38px; height: 42px; display: grid; place-items: center; flex-shrink: 0; border-radius: 9px; background: var(--primary-soft); color: var(--primary-ink); }
.feed-file__retry { position: absolute; right: 4px; bottom: 5px; }
.feed-poll-editor { margin-bottom: 24px; }
.feed-poll-editor__row { display: flex; align-items: center; gap: 10px; min-height: 50px; margin-top: 8px; padding: 0 10px 0 14px; border-radius: 12px; background: var(--surface-3); }
.feed-poll-editor__row > span { width: 18px; height: 18px; border: 1.5px solid var(--line); border-radius: 50%; flex-shrink: 0; }
.feed-poll-editor__row input { width: 100%; min-width: 0; border: 0; outline-offset: 5px; padding: 10px 0; background: transparent; color: var(--ink); font-size: 15px; }
.feed-poll-editor__add { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 10px; border: 0; background: none; color: var(--primary-ink); font-size: 13px; }
.feed-pin-toggle { display: flex !important; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; padding: 12px 0; }
.feed-pin-toggle > span { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; }
.feed-pin-toggle input { accent-color: var(--primary); width: 18px; height: 18px; }
.feed-editor .feed-form__error { margin-top: 16px; padding: 10px 12px; background: var(--danger-soft); border-radius: 10px; }
.feed-editor .feed-form__error[hidden] { display: none; }
.feed-editor__tools { justify-content: stretch; background: var(--surface); padding: 8px 16px calc(10px + env(safe-area-inset-bottom, 0px)); border-top-color: transparent; }
.feed-editor__add-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.feed-editor__toolrow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; max-width: 640px; margin: 0 auto; gap: 4px; }
.feed-editor__toolrow button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 54px; padding: 4px; border: 0; border-radius: 12px; background: transparent; color: var(--primary-ink); font-size: 12px; }
.feed-editor__toolrow button .ui-i { width: 23px; height: 23px; }
.feed-editor__toolrow button:hover { background: var(--primary-soft); }
.feed-editor__toolrow button:disabled { opacity: .4; }
@media (max-width: 380px) { .feed-header-choice small { max-width: 112px; } .feed-editor__body { padding-inline: 16px; } }

.feed-post__activities { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 9px; margin: 8px 16px 0; }
.feed-activity-tag { display: inline-flex; align-items: center; gap: 4px; min-height: 24px; max-width: 100%; padding: 2px 0; border: 0; background: none; color: var(--primary-ink); font-size: 13px; line-height: 1.45; font-weight: 600; overflow-wrap: anywhere; text-align: left; }
.feed-activity-tag > .ui-i { width: 15px; height: 15px; flex-shrink: 0; }
.feed-activity-tag > span { min-width: 0; }
.feed-activity-tag:hover { text-decoration: underline; }
.feed-post__context .feed-post__activities { flex-wrap: nowrap; align-items: flex-start; gap: 4px; margin: 0; min-width: 0; }
.feed-post__context .feed-activity-tag { min-width: 0; min-height: 44px; max-width: 134px; gap: 4px; font-size: 12px; line-height: 1.35; }
.feed-post__context .feed-activity-tag > span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; overflow-wrap: anywhere; }
.feed-tags-more { flex-shrink: 0; min-width: 28px; min-height: 44px; padding: 0 3px; border: 0; background: none; color: var(--muted); font-size: 12px; }
.feed-post-tags-sheet .ui-sheet__title { font-family: var(--font-ui); font-size: var(--fs-body); font-weight: var(--fw-semibold); letter-spacing: normal; }
.feed-post-tags-sheet .feed-post__activities { display: grid; gap: 0; margin: 0; }
.feed-post-tags-sheet .feed-activity-tag { width: 100%; min-height: 44px; padding: 8px 0; }
@media (max-width: 359px) {
  .feed-post__head { gap: 6px; padding-inline: 12px; }
  .feed-post__context, .feed-post__context .feed-post__activities { gap: 2px; }
  .feed-post__context .feed-activity-tag { max-width: 108px; }
}
.feed-active-filter { display: inline-flex; align-items: center; max-width: calc(100% - 32px); margin: 0 16px 8px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-ink); }
.feed-active-filter > button:first-child { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; min-width: 0; padding: 8px 4px 8px 14px; background: none; border: 0; color: inherit; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; text-align: left; }
.feed-active-filter .ui-i { width: 14px; height: 14px; flex-shrink: 0; }
.feed-activity-picker { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 54px; margin: 0 0 8px; padding: 10px 12px; border: 0; border-radius: 12px; background: var(--primary-soft); color: var(--primary-ink); text-align: left; font-size: 13px; }
.feed-activity-picker > span { color: var(--muted); }
.feed-activity-picker strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.feed-activity-picker .ui-i { width: 16px; height: 16px; flex-shrink: 0; }
.feed-compose-activities { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: -12px 0 20px; }
.feed-compose-tag { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; max-width: 100%; padding: 5px 10px; border: 0; border-radius: 10px; background: var(--primary-soft); color: var(--primary-ink); font-size: 12px; overflow-wrap: anywhere; }
.feed-compose-tag .ui-i { width: 14px; height: 14px; flex-shrink: 0; }
.feed-compose-tag--add { background: none; color: var(--muted); padding-inline: 2px 8px; }
.feed-compose-tag:disabled { opacity: .4; }
.feed-hash-icon { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; background: var(--primary-soft); color: var(--primary-ink); font-size: 22px; font-weight: 500; }

.feed--can-compose { padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 88px + var(--up-bar-h, 0px)); }
.feed .feed-compose-fab { border: 0; border-radius: 50%; }
@media (min-width: 768px) {
  .feed--can-compose { padding-bottom: calc(88px + var(--safe-bottom) + var(--up-bar-h, 0px)); }
  .feed .feed-compose-fab { bottom: calc(var(--sp-6) + var(--safe-bottom) + var(--up-bar-h, 0px)); }
}


/* The gallery keeps the native dialog's focus, inert and scroll management. */
.ui-sheet.feed-lightbox { inset: 0; width: 100%; max-width: none; height: 100vh; height: 100dvh; min-height: 0; max-height: none; margin: 0; border: 0; border-radius: 0; background: var(--paper); transform: none; opacity: 0; transition: opacity var(--dur-2) var(--ease-standard); }
.ui-sheet.feed-lightbox.is-open { transform: none; opacity: 1; }
.ui-sheet.feed-lightbox.is-closing { transform: none; opacity: 0; }
.ui-sheet.feed-lightbox .ui-sheet__handle { display: none; }
.ui-sheet.feed-lightbox .ui-sheet__head { align-items: center; padding: calc(8px + env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) 8px max(16px, env(safe-area-inset-left, 0px)); background: var(--surface); }
.ui-sheet.feed-lightbox .ui-sheet__heading { padding: 0; }
.ui-sheet.feed-lightbox .ui-sheet__title { font-family: var(--font-ui); font-size: var(--fs-body); font-weight: var(--fw-semibold); letter-spacing: normal; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ui-sheet.feed-lightbox .ui-sheet__body { display: flex; flex-direction: column; min-height: 0; padding: 0; overflow: hidden; }
.feed-lightbox__stage { position: relative; flex: 1; min-height: 0; overflow: hidden; touch-action: pan-y pinch-zoom; user-select: none; -webkit-user-select: none; }
.feed-lightbox .feed-gallery-view { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-height: none; object-fit: contain; background: var(--paper); -webkit-user-drag: none; }
.feed-lightbox .feed-gallery-view[hidden], .feed-lightbox [data-gallery-status][hidden], .feed-lightbox [data-gallery-retry][hidden] { display: none; }
.feed-lightbox__status { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; color: var(--muted); text-align: center; }
.feed-lightbox .feed-gallery-controls { flex-shrink: 0; justify-content: space-between; gap: 16px; margin: 0; padding: 8px max(16px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); background: var(--surface); }
.feed-lightbox [data-gallery-count] { min-width: 64px; text-align: center; color: var(--ink); font-size: var(--fs-body-s); font-variant-numeric: tabular-nums; }
.feed-lightbox [data-photo-step] { min-width: 48px; min-height: 48px; }
@media (prefers-reduced-motion: reduce) { .ui-sheet.feed-lightbox { transition: none; } }

.feed-lightbox__caption { flex-shrink: 0; max-height: 22dvh; overflow-y: auto; margin: 0; padding: 8px max(16px, env(safe-area-inset-right, 0px)) 8px max(16px, env(safe-area-inset-left, 0px)); white-space: pre-wrap; overflow-wrap: anywhere; background: var(--surface); color: var(--ink); font-size: var(--fs-body-s); line-height: 1.4; }
.feed-lightbox [data-gallery-caption][hidden] { display: none; }
.feed-lightbox__tags { flex-shrink: 0; max-height: 16dvh; overflow-y: auto; background: var(--surface); }
.feed-lightbox__tags .feed-post__activities { margin: 0; padding: 0 max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); }
.feed-lightbox__tags .feed-activity-tag { min-height: 44px; padding-block: 8px; }
.feed-lightbox [data-gallery-tags][hidden] { display: none; }

.feed-media-caption { margin: 0; padding: 8px 16px 12px; color: var(--muted); font-size: var(--fs-body-s); line-height: 1.45; overflow-wrap: anywhere; }

.feed-source-text{color:inherit;text-decoration:none}.feed-source-text:focus-visible{outline:2px solid var(--primary);outline-offset:3px;border-radius:3px}

/* Reaction controls stay inside their own post. */
.feed-reactions-open .feed-compose-fab { visibility: hidden; pointer-events: none; }
.feed-reaction-picker { position: fixed; z-index: 85; box-sizing: border-box; height: 64px; margin: 0; padding: 5px 6px; border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent); border-radius: 99px; background: color-mix(in srgb, var(--surface) 96%, transparent); box-shadow: 0 8px 32px color-mix(in srgb, var(--ink) 18%, transparent), 0 1px 4px color-mix(in srgb, var(--ink) 10%, transparent); touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; animation: feed-reactions-arrive 120ms cubic-bezier(.2,.8,.2,1) both; }
.feed-reaction-picker[hidden] { display: none; }
.feed-reaction-options { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0,1fr); height: 52px; align-items: center; }
.feed-reaction-option { display: grid; place-items: center; min-width: 0; width: 100%; height: 52px; min-height: 52px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ink); touch-action: none; -webkit-tap-highlight-color: transparent; }
.feed-reaction-emoji { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; flex-shrink: 0; font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; font-size: 31px; line-height: 1; pointer-events: none; }
.feed-reaction-option .feed-reaction-emoji { width: 100%; height: 44px; font-size: clamp(25px,7.3vw,36px); transform-origin: 50% 90%; transition: transform 100ms cubic-bezier(.2,.9,.3,1.3), filter 100ms; will-change: transform; }
.feed-reaction-option.is-active .feed-reaction-emoji, .feed-reaction-option:focus-visible .feed-reaction-emoji { transform: translateY(-13px) scale(1.65); filter: drop-shadow(0 4px 3px color-mix(in srgb,var(--ink) 14%,transparent)); }
.feed-reaction-option.is-active { position: relative; z-index: 2; }
.feed-reaction-option[aria-pressed="true"] { background: var(--primary-soft); }
.feed-reaction-option:disabled { opacity: .7; }
.feed-reaction-tooltip { position: absolute; bottom: calc(100% + 12px); left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 36px); padding: 7px 12px; border-radius: 12px; background: var(--ink); color: var(--surface); font-size: 12px; line-height: 1.3; font-weight: var(--fw-semibold); text-align: center; pointer-events: none; opacity: 0; transition: opacity 70ms; }
.feed-reaction-picker.has-active .feed-reaction-tooltip { opacity: 1; }
.feed-reaction-close { position: absolute; top: calc(100% + 2px); right: 2px; display: grid; place-items: center; width: 32px; height: 32px; padding: 7px; border-radius: 50%; border: 0; color: var(--muted); background: var(--surface); box-shadow: 0 1px 5px color-mix(in srgb,var(--ink) 12%,transparent); touch-action: manipulation; }
.feed-reaction-close .ui-i { width: 16px; height: 16px; }
.feed-reaction-selected > .feed-reaction-emoji { width: 27px; height: 27px; font-size: 24px; }
.feed-reaction-trigger { touch-action: none; -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; }
.feed-reaction-trigger.is-selected { color: var(--primary-ink); font-weight: var(--fw-medium); }
.feed-reaction-trigger.is-selected .feed-reaction-emoji { animation: feed-emotion-pop 180ms ease-out; }
.feed-reaction-selected { display: block; width: 23px; height: 23px; position: relative; }
@keyframes feed-reactions-arrive { from { opacity: 0; translate: 0 4px; scale: .97; } to { opacity: 1; translate: 0 0; scale: 1; } }
.feed-reaction-selected > .ui-i { display: block; width: 23px; height: 23px; stroke-width: 1.7; }
.feed-reaction-trigger.is-selected .feed-reaction-selected { width: 30px; height: 31px; }
@media (max-width: 359px) { .feed-post__actions { gap: 17px; } }
@media (prefers-reduced-motion: reduce) { .feed-reaction-emoji, .feed-reaction-picker, .feed-reaction-tooltip { animation: none !important; transition: none !important; } }
