.feed-intro { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 32px 0 0; }
.feed-intro h1 { margin: 0; font-size: clamp(28px, 5vw, 36px); line-height: 1.15; font-weight: 600; letter-spacing: -.035em; }
/* «Добавить сон» на «Мои сновидения» — такая же белая капсула, как кнопка первого экрана главной после входа */
@font-face { font-family: Manrope; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/manrope-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Manrope; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/manrope-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
.feed-intro .dream-submit { gap: 8px; min-height: 0; padding: 12px 24px; border: 0; border-radius: 9999px; background: #ffffffd9; color: #000; font: 600 16px/24px Manrope, system-ui, sans-serif; text-decoration: none; box-shadow: 0 16px 48px -12px #000000b3; transition: transform .5s cubic-bezier(.22, 1, .36, 1), box-shadow .3s cubic-bezier(.22, 1, .36, 1), background-color .3s; }
.feed-intro .dream-submit:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 24px 56px -12px #000000cc; }
.feed-intro .dream-submit:active { transform: scale(.98); }
.feed-intro .dream-submit:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.feed-intro .dream-submit svg { width: 16px; height: 16px; flex: none; }
.feed-intro, .feed-empty, .dream-pagination { max-width: 540px; margin-inline: auto; }
.dream-feed { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; max-width: 540px; margin-inline: auto; background: #0b1016; }
.feed-card { background: #0b1016; color: #f4f5f7; scroll-margin-top: 24px; }
.feed-card [hidden] { display: none; }
.public-landing-feed { padding-bottom: 40px; color: #e8edf3; font: 15px/1.6 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.site-shell--landing .home-legal-footer { margin-top: 0; }
.feed-card-header { display: flex; align-items: center; gap: 11px; min-height: 68px; padding: 11px 14px; }
.feed-card-avatar { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; overflow: hidden; border: 1px solid #39434d; border-radius: 50%; background: linear-gradient(145deg, #35424e, #202832); color: #aeb8c2; }
.feed-card-avatar svg { width: 36px; height: 36px; stroke: currentColor; stroke-width: 1.5; }
.feed-card-label { margin: 0; color: #d2d6dd; font-size: 13px; line-height: 1.4; font-weight: 400; }
.feed-card-author { display: flex; align-items: center; gap: 7px; margin: 0 0 2px; white-space: nowrap; font-size: 15px; line-height: 1.4; font-weight: 650; }
.feed-card-author a { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.feed-card-heading { flex: 1; min-width: 0; }
.feed-title-form { display: flex; align-items: center; gap: 5px; }
.feed-title-form [hidden] { display: none; }
.feed-card-heading .feed-card-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-title-button { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; min-width: 24px; min-height: 24px; padding: 3px; color: #8192a3; border: 0; border-radius: 5px; background: transparent; cursor: pointer; }
.feed-title-button:hover { color: #78c7e8; background: #14232f; }
.feed-title-button:focus-visible, .feed-title-input:focus-visible { outline: 2px solid #41b4e5; outline-offset: 2px; }
.feed-title-button:disabled { opacity: .5; cursor: wait; }
.feed-title-input { width: 100%; min-width: 0; max-width: 480px; padding: 5px 7px; border: 1px solid #345264; border-radius: 5px; background: #0b1620; color: #e1e8ee; font: inherit; font-size: 13px; }
.feed-title-error { margin: 4px 0 7px; color: #f1a8a8; font-size: 12px; }
.feed-card-body { padding: 12px 14px 17px; }
.feed-card-date { margin: 9px 0 0; color: #8e959f; font-size: 11px; line-height: 1.5; }
.feed-card-author a, a.feed-card-label { color: inherit; text-decoration: none; }
a.feed-card-label { display: block; }
.feed-card-author a:hover, a.feed-card-label:hover { color: #fff; }
.feed-card-avatar:focus-visible, .feed-card-author a:focus-visible, a.feed-card-label:focus-visible { outline: 2px solid #41b4e5; outline-offset: 3px; }
.feed-reactions { display: flex; align-items: center; gap: 22px; margin-bottom: 12px; }
.feed-reaction { display: inline-flex; align-items: center; gap: 6px; color: #f4f5f7; font-size: 14px; line-height: 1; font-weight: 600; font-variant-numeric: tabular-nums; }
.feed-reaction svg { flex-shrink: 0; }
.feed-caption { overflow: hidden; font-size: 15px; line-height: 1.5; }
.feed-caption strong { font-weight: 650; }
.feed-caption-preview { display: flex; align-items: baseline; gap: 5px; min-width: 0; }
.feed-caption-excerpt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-caption-toggle { flex-shrink: 0; margin: 0; padding: 0; border: 0; background: transparent; color: #939aa4; font: inherit; cursor: pointer; }
.feed-caption-toggle:hover { color: #d2d6dd; }
.feed-caption-toggle:focus-visible, .feed-interpretation summary:focus-visible { outline: 2px solid #41b4e5; outline-offset: 2px; }
.feed-caption-collapse { margin-top: 8px; }
.feed-caption-full:focus { outline: none; }
.feed-dream-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.feed-interpretation { margin-top: 7px; }
.feed-interpretation summary { display: flex; align-items: center; gap: 8px; width: fit-content; padding: 0; color: #b0b8c2; list-style: none; cursor: pointer; font-size: 14px; font-weight: 500; }
.feed-interpretation summary::-webkit-details-marker { display: none; }
.feed-chevron { color: #5c9ab6; font-size: 20px; line-height: 1; transition: transform .25s ease; }
.feed-interpretation[open] .feed-chevron { transform: rotate(180deg); }
.feed-reveal-inner { min-height: 0; overflow: hidden; }
.feed-answer { padding-top: 10px; }
.feed-answer-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.65; color: #c3d0dc; }
.feed-answer-status, .feed-answer-notice { margin: 12px 0 0; color: #92a7b9; font-size: 13px; }
.feed-answer-status:first-child { margin-top: 0; }
.feed-interpretation[data-animated] .feed-reveal { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .2s ease; }
.feed-interpretation[data-expanded] .feed-reveal { grid-template-rows: 1fr; }
.feed-interpretation[data-animated]:not([data-expanded]) .feed-chevron { transform: none; }
.feed-empty { padding: 64px 28px; border: 1px dashed #263b4c; border-radius: 18px; text-align: center; }
.feed-empty > span { color: #59bddf; font-size: 42px; }
.feed-empty h2 { margin: 16px 0 12px; font-size: 22px; font-weight: 500; }
.feed-empty p { max-width: 370px; margin: auto; color: #8b9bad; font-size: 14px; }
.feed-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 600px) {
  /* Extend beyond the workspace's 20px text gutters for edge-to-edge images. */
  .dream-feed { width: calc(100% + 40px); max-width: none; margin-inline: -20px; }
  .feed-intro { flex-direction: column; align-items: stretch; padding: 28px 0 0; }
  .feed-intro .dream-submit { width: auto; align-self: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .feed-chevron, .feed-interpretation[data-animated] .feed-reveal { transition: none; }
}

.feed-private-badge { flex-shrink: 0; padding: 3px 7px; border-radius: 6px; background: #202c38; color: #aab8c6; font-size: 11px; line-height: 1.4; }
.feed-post-menu { position: relative; flex-shrink: 0; }
.feed-post-menu summary { display: flex; align-items: center; justify-content: center; width: 34px; height: 38px; color: #f4f5f7; cursor: pointer; list-style: none; }
.feed-post-menu summary::-webkit-details-marker { display: none; }
.feed-post-menu-panel { position: absolute; z-index: 50; top: calc(100% + 6px); right: 0; width: min(230px, calc(100vw - 28px)); padding: 6px; border: 1px solid #29343f; border-radius: 12px; background: #17202a; box-shadow: 0 12px 35px #0008; }
.feed-post-menu form { margin: 0; }
.feed-post-menu-panel button, .feed-post-menu-panel a { display: block; box-sizing: border-box; width: 100%; padding: 11px 12px; border: 0; border-radius: 6px; background: transparent; color: #f4f5f7; font: inherit; font-size: 14px; line-height: 1.4; text-align: left; text-decoration: none; cursor: pointer; }
.feed-post-menu-panel button:hover, .feed-post-menu-panel a:hover { background: #25313e; }
.feed-post-menu-panel button:disabled { opacity: .5; cursor: wait; }
.feed-post-menu-panel [data-comic-redraw] button:disabled { cursor: pointer; }
.feed-post-menu :focus-visible, .feed-dialog :focus-visible { outline: 2px solid #41b4e5; outline-offset: 2px; }
.feed-menu-error, .feed-menu-feedback { margin: 6px 12px; font-size: 12px; line-height: 1.5; color: #a9bac9; overflow-wrap: anywhere; }
.feed-menu-error { color: #f1a8a8; }
.feed-dialog { box-sizing: border-box; position: fixed; inset: 0; z-index: 100; width: min(390px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; margin: auto; padding: 26px; border: 1px solid #34414d; border-radius: 16px; background: #101820; color: #e8edf3; font: 15px/1.6 system-ui, sans-serif; }
.feed-dialog::backdrop { background: #000b; }
.feed-dialog h2 { margin: 0 0 12px; color: #fff; font-size: 22px; line-height: 1.35; }
.feed-dialog p { margin: 0 0 18px; }
.feed-dialog-actions { display: flex; gap: 10px; }
.feed-dialog button { flex: 1; margin-top: 12px; padding: 10px 14px; border: 1px solid #3a4957; border-radius: 8px; background: transparent; color: #e8edf3; font: inherit; cursor: pointer; }
.feed-dialog button:disabled { opacity: .5; cursor: wait; }
.feed-post-menu-panel .feed-menu-danger, .feed-dialog .feed-menu-danger { color: #fa8f8f; }
.feed-dialog [hidden] { display: none; }
.feed-share-dialog { width: min(360px, calc(100% - 32px)); padding: 30px 26px 26px; border-color: #304657; background: radial-gradient(ellipse at 50% 0, #153043, #101820 68%); box-shadow: 0 24px 80px #0008; text-align: center; }
.feed-share-dialog__icon { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 22px; border: 1px solid #70cfff35; border-radius: 22px; background: linear-gradient(145deg, #2a698b50, #17435730); color: #8bd6f6; box-shadow: 0 0 32px #1e93cf12; }
.feed-share-dialog h2 { margin-bottom: 10px; font-size: 21px; }
.feed-share-dialog p { margin-bottom: 22px; color: #a9bdcc; }
.feed-share-dialog button { width: 100%; margin: 0; border-color: #4ec0ed; background: #7dd3f2; color: #06202e; font-weight: 650; }
.feed-share-dialog button:hover { background: #a0e3fa; }
.feed-delete-warning { border-color: #59414a; background: radial-gradient(ellipse at 50% 0, #33242c, #101820 65%); }
.feed-delete-warning__icon { margin-bottom: 18px; border-color: #ed9b9635; background: linear-gradient(145deg, #8b403b40, #572b3330); color: #f5aaa6; box-shadow: none; }
.feed-delete-warning h1, .feed-delete-warning h2 { text-align: center; }
.feed-delete-warning__details { margin: 20px 0; padding: 14px 16px; border: 1px solid #ffffff12; border-radius: 10px; background: #0002; overflow-wrap: anywhere; }
.feed-delete-warning__details div + div { margin-top: 12px; }
.feed-delete-warning__details dt { color: #96a7b6; font-size: 12px; }
.feed-delete-warning__details dd { margin: 2px 0 0; color: #edf3f8; font-weight: 600; }
.feed-delete-warning > p { color: #a9bdcc; font-size: 14px; }
.feed-delete-warning .feed-menu-danger { border-color: #aa6264; background: #673a42; }
.feed-delete-warning .feed-menu-danger:hover { background: #7e454d; }

.feed-profile { display: flex; align-items: center; gap: 18px; max-width: 540px; margin: 28px auto; }
.feed-profile-avatar { width: 72px; height: 72px; }
.feed-profile-avatar svg { width: 64px; height: 64px; }
.feed-profile-info { min-width: 0; }
.feed-profile-name { margin: 0 0 6px; overflow-wrap: anywhere; font-size: 22px; line-height: 1.3; font-weight: 650; }
.feed-profile-name .premium-badge { margin-inline-start: 7px; vertical-align: -1px; }
.feed-profile-count { margin: 2px 0 0; color: #8b9bad; font-size: 14px; line-height: 1.5; }
.feed-author-empty { max-width: 540px; margin: 32px auto; color: #8b9bad; font-size: 14px; }

.feed-nightmare-badge { position: relative; flex-shrink: 0; padding: 3px 7px; border-radius: 6px; background: #39232d; color: #e2a9bd; font-size: 11px; line-height: 1.4; cursor: help; }
/* Селектор сильнее .comic-star-tooltip из comic.css (подключается позже): иначе его left: 0 и white-space: nowrap уводят подсказку за правый край телефона и расширяют страницу. */
.feed-nightmare-badge .feed-nightmare-tooltip { top: calc(100% + 8px); right: 0; left: auto; z-index: 60; width: max-content; max-width: min(270px, calc(100vw - 96px)); white-space: normal; }
.feed-nightmare-badge:hover .feed-nightmare-tooltip, .feed-nightmare-badge:focus-visible .feed-nightmare-tooltip { opacity: 1; visibility: visible; }
.feed-nightmare-badge:focus-visible { outline: 2px solid #41b4e5; outline-offset: 3px; }
.feed-card-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }

button.feed-profile-avatar { padding: 0; cursor: zoom-in; }

.feed-delete-confirm { width: min(390px, 100%); margin: 32px auto; padding: 26px; border: 1px solid #59414a; border-radius: 16px; color: #e8edf3; font: 15px/1.6 system-ui, sans-serif; }
.feed-delete-confirm h1 { margin: 0 0 12px; color: #fff; font-size: 22px; line-height: 1.35; }
.feed-delete-confirm .dream-delete-form { margin: 0; padding: 0; border: 0; }
.feed-delete-confirm .feed-dialog-actions > * { flex: 1; padding: 10px 14px; border: 1px solid #3a4957; border-radius: 8px; color: #e8edf3; font: inherit; text-align: center; text-decoration: none; cursor: pointer; }
.feed-delete-confirm .feed-dialog-actions .feed-menu-danger { color: #fa8f8f; border-color: #aa6264; }
.feed-delete-confirm .feed-dialog-actions :focus-visible { outline: 2px solid #41b4e5; outline-offset: 2px; }
.feed-stream-status { max-width: 540px; margin: 14px auto 24px; color: #92a7b9; text-align: center; font: 13px/1.5 system-ui, sans-serif; }
.feed-stream-status [hidden] { display: none; }
.feed-stream-status a { margin-left: 10px; cursor: pointer; }

/* «Мои сновидения» и лента автора в стиле главной: арт «Дневник снов» фоном, заголовок с градиентом, профиль на стекле. Подробности — docs/MENU_PAGES.md */
.site-shell--glass .feed-intro { padding: 48px 0 0; font-family: Manrope, system-ui, sans-serif; animation: glass-rise .8s var(--glass-ease) both; }
.site-shell--glass .feed-intro .glass-eyebrow { margin-bottom: 12px; }
.site-shell--glass .feed-intro h1 { font-size: 40px; white-space: nowrap; line-height: 1.05; font-weight: 700; letter-spacing: -.02em; background: linear-gradient(90deg, #fff, #c2c6cf); -webkit-background-clip: text; background-clip: text; color: transparent; }
.site-shell--glass .feed-profile { margin: 24px auto; padding: 16px 20px; border: 1px solid #ffffff1a; border-radius: 24px; background: #0b1220b8; box-shadow: 0 24px 64px -32px #000; font-family: Manrope, system-ui, sans-serif; backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); animation: glass-rise .8s var(--glass-ease) .08s both; }
.site-shell--glass .feed-intro + .feed-profile { margin-top: 24px; }
.site-shell--glass .feed-profile-name { font-weight: 700; }
.site-shell--glass .feed-profile-count { color: var(--glass-muted); }
.site-shell--glass .feed-empty { border: 1px solid #ffffff1a; background: #0b1220b8; box-shadow: 0 24px 64px -32px #000; font-family: Manrope, system-ui, sans-serif; backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); }
.site-shell--glass .feed-empty > span { color: var(--glass-ring); }
.site-shell--glass .feed-empty h2 { font-weight: 700; }
.site-shell--glass .feed-empty p { color: var(--glass-muted); }
/* Страница сна: карточка начинается не вплотную к плашке */
.site-shell--glass main > .dream-feed:first-child { margin-top: 32px; }
.site-shell--glass .dream-feed { border: 1px solid #ffffff14; border-radius: 24px; box-shadow: 0 24px 64px -32px #000; }
.site-shell--glass .dream-feed > .feed-card:first-child { border-radius: 24px 24px 0 0; }
.site-shell--glass .dream-feed > .feed-card:last-child { border-radius: 0 0 24px 24px; }
@media (max-width: 600px) {
  .site-shell--glass .feed-intro { padding-top: 32px; }
  .site-shell--glass .feed-intro h1 { font-size: 34px; }
  /* На телефоне лента во всю ширину экрана, без рамки и скруглений */
  .site-shell--glass .dream-feed, .site-shell--glass .dream-feed > .feed-card:first-child, .site-shell--glass .dream-feed > .feed-card:last-child { border-radius: 0; }
  .site-shell--glass .dream-feed { border-inline: 0; }
}
