.dream-comments { color: #e8edf3; font: 15px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.dream-comments [hidden] { display: none; }
.dream-comments .feed-reactions { display: flex; align-items: center; gap: 22px; margin-bottom: 12px; }
.dream-comments-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 32px; padding: 0; border: 0; background: transparent; color: #f4f5f7; font: inherit; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer; }
.dream-comments-toggle svg { flex-shrink: 0; }
.dream-comments-toggle[aria-expanded="true"] { color: #78c7e8; }
.dream-comments :focus-visible { outline: 2px solid #41b4e5; outline-offset: 3px; }
.dream-comments .dream-comments-toggle:focus-visible { outline: none; color: #c5e8f8; }
.dream-comments-reveal { display: flow-root; }
.dream-comments-panel { margin: 0 0 18px; padding: 14px 0 0; border-top: 1px solid #29343f; }
.dream-comments-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 14px; }
.dream-comments-panel h3 { margin: 0; font-size: 16px; font-weight: 650; }
.dream-comments-loading { display: inline-flex; align-self: center; align-items: center; gap: 3px; height: 16px; color: #92a7b9; opacity: 0; transition: opacity .22s ease; }
.dream-comments-loading.is-loading { opacity: 1; }
.dream-comments-loading > span { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.dream-comments-loading.is-loading > span { animation: comment-loading-dot .9s ease-in-out infinite; }
.dream-comments-loading.is-loading > span:nth-child(2) { animation-delay: .15s; }
.dream-comments-loading.is-loading > span:nth-child(3) { animation-delay: .3s; }
@keyframes comment-loading-dot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }
.dream-comments-list { display: flex; flex-direction: column; gap: 18px; margin: 12px 0; padding: 0; list-style: none; }
.dream-comment { min-width: 0; }
.dream-comment-main { display: flex; align-items: flex-start; gap: 8px; }
.dream-comment-main .dream-comment-text { flex: 1; min-width: 0; }
.dream-comment-actions { display: inline-flex; align-items: flex-start; gap: 6px; flex-shrink: 0; }
.dream-comment-like { display: inline-flex; align-items: center; gap: 3px; min-height: 26px; margin-top: -3px; }
.dream-comment-like button, .dream-comment-like-icon { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; padding: 0; border: 0; background: transparent; color: #92a7b9; cursor: pointer; }
.dream-comment-like-icon { cursor: default; }
.dream-comment-like button[aria-pressed="true"] { color: #ef4055; }
.dream-comment-like button[aria-pressed="true"] svg { fill: currentColor; }
.dream-comment-like button:disabled { opacity: .6; }
.dream-comment-like-count { color: #92a7b9; font-size: 11px; font-variant-numeric: tabular-nums; }
.dream-comment-like-error { margin: 6px 0 0; }
.dream-comment-like-error a { color: #78c7e8; }
.dream-comment-author { color: #f4f5f7; font-weight: 650; text-decoration: none; }
.dream-comment-author:hover { color: #fff; }
/* The staff crown after the author's name; its look and tooltip come from site.css. */
.dream-comment-text .premium-badge { margin-inline-start: 5px; vertical-align: -3px; }
.dream-comment-link { color: #78c7e8; text-decoration: none; cursor: pointer; }
.dream-comment-link:hover, .dream-comment-link:focus-visible { color: #c5e8f8; text-decoration: underline; }
.dream-comment-date { display: block; margin-top: 5px; color: #8e959f; font-size: 11px; }
.dream-comment-text { margin: 0; color: #c3d0dc; white-space: pre-wrap; overflow-wrap: anywhere; }
.dream-comments-status, .dream-comments-notice { margin: 10px 0; color: #92a7b9; font-size: 13px; }
.dream-comments-notice a { color: #78c7e8; }
.dream-comments-status:empty { display: none; }
.dream-comment-form { display: grid; gap: 8px; margin-top: 18px; }
.dream-comment-form label { color: #c3d0dc; font-size: 13px; }
.dream-comment-form textarea { box-sizing: border-box; width: 100%; min-height: 82px; max-height: 300px; resize: vertical; padding: 10px 12px; border: 1px solid #345264; border-radius: 8px; background: #0b1620; color: #e1e8ee; font: inherit; font-size: 16px; }
.dream-comment-form button, .dream-comments-more { justify-self: start; padding: 8px 14px; border: 1px solid #345264; border-radius: 8px; background: #14232f; color: #c5e8f8; font: inherit; font-size: 13px; cursor: pointer; }
.dream-comment-form button:disabled, .dream-comments-more:disabled { opacity: .6; }
.dream-comment-error { margin: 0; color: #f1a8a8; font-size: 13px; }
.dream-comment-menu { position: relative; flex-shrink: 0; }
.dream-comment-menu summary { display: grid; place-items: center; width: 28px; height: 28px; margin-top: -3px; color: #92a7b9; font-weight: 700; letter-spacing: 1px; cursor: pointer; list-style: none; }
.dream-comment-menu summary::-webkit-details-marker { display: none; }
.dream-comment-menu-panel { position: absolute; right: 0; top: 100%; z-index: 40; width: 170px; padding: 5px; border: 1px solid #29343f; border-radius: 10px; background: #17202a; box-shadow: 0 10px 24px #0007; }
.dream-comment-menu button { display: block; width: 100%; padding: 9px 10px; border: 0; border-radius: 6px; background: transparent; color: #e8edf3; font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.dream-comment-menu button:hover { background: #25313e; }
.dream-comment-menu button:disabled { opacity: .6; }
.dream-comment-menu .dream-comment-danger, .dream-comment-editor .dream-comment-danger { color: #fa8f8f; }
.dream-comment-editor { margin-top: 8px; }
.dream-comment-editor > p { margin: 0; font-size: 13px; }
.dream-comment-editor-actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (prefers-reduced-motion: reduce) { .dream-comments-loading { transition: none; } .dream-comments-loading.is-loading > span { animation: none; } }

/* Tabs under a dream: «сон», the reading (two on old dreams), comments (docs/DREAM_READINGS.md). */
.dream-comments .feed-reactions { gap: 16px; flex-wrap: wrap; }
/* All tabs, comments and the like in one row on the left. */
.dream-comments .feed-reactions > .dream-like { margin-left: 0; }
/* One reading size for the dream, readings and comments. */
.feed-card .feed-caption, .dream-saved-description .dream-saved-text, .dream-reading .dream-reading-text, .dream-comments .dream-comment-text { font-size: 16px; line-height: 1.55; }
.dream-tab { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 0; border: 0; background: transparent; color: #f4f5f7; font: inherit; font-weight: 700; cursor: pointer; transition: color .15s ease, opacity .15s ease; }
/* The dream tab is the ✍️ emoji instead of the word «сон» (owner, 3 Nov 2026); the selected one is marked by the underline only. */
.dream-tab--emoji { width: 32px; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-size: 22px; font-weight: 400; line-height: 1; }
.dream-tab--logo { width: 32px; border-radius: 8px; }
.dream-tab--logo svg { filter: grayscale(1) brightness(1.7); opacity: .55; transition: filter .25s ease, opacity .25s ease; }
.dream-tab--logo.is-ready svg { filter: none; opacity: 1; }
.dream-tab--logo svg[hidden] { display: none; }
/* A separate strip, so the rounded logo tab draws the same straight line as the others. */
.dream-tab[aria-pressed="true"]::after, .dream-comments .dream-comments-toggle[aria-expanded="true"]::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 2px; background: #78c7e8; pointer-events: none; }
.dream-tab[aria-pressed="true"] { color: #78c7e8; opacity: 1; }
.dream-tab:focus-visible { outline: none; color: #c5e8f8; opacity: 1; }
.dream-reading { margin: 4px 0 12px; }
.dream-reading-text { white-space: pre-line; color: #e9ecf1; }
.dream-reading-summary { margin: 2px 0 16px; padding: 2px 0 2px 14px; border-left: 3px solid #78c7e8; color: #f4f7fa; font-size: 17px; font-weight: 500; line-height: 1.45; }
.dream-reading-summary-label { display: block; margin-bottom: 4px; color: #78c7e8; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.dream-reading-progress { display: flex; align-items: center; gap: 10px; margin: 0; color: #b9c2cf; font-size: 14px; }
.dream-reading-dots { display: inline-flex; gap: 4px; }
.dream-reading-dots span { width: 6px; height: 6px; border-radius: 50%; background: #78c7e8; animation: dream-reading-dot 1.2s ease-in-out infinite; }
.dream-reading-dots span:nth-child(2) { animation-delay: .2s; }
.dream-reading-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes dream-reading-dot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .dream-reading-dots span { animation: none; opacity: .8; } }
.dream-reading-notice { margin: 0 0 10px; color: #f2b8b5; font-size: 14px; }
.dream-reading-empty { margin: 0; color: #9aa4b2; font-size: 14px; }
.dream-reading-button { min-height: 38px; padding: 0 18px; border: 0; border-radius: 999px; background: #78c7e8; color: #08121c; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.dream-reading-button:hover { background: #9ad6ef; }
.dream-reading-button:disabled { background: #4a5563; color: #aeb6c2; cursor: not-allowed; }
/* Сноска «Бесплатно» справа от кнопки; прячется вместе с кнопкой (dream-tabs.js ставит ей hidden) и у неактивной кнопки */
.dream-reading-free { margin-left: 10px; color: #9aa4b2; font-size: 13px; font-weight: 600; vertical-align: middle; }
.dream-reading-button[hidden] + .dream-reading-free, .dream-reading-button:disabled + .dream-reading-free { display: none; }
.dream-reading-staff { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.dream-reading-again { min-height: 34px; padding: 0 16px; border: 1px solid rgba(120, 199, 232, .45); border-radius: 999px; background: transparent; color: #9ad6ef; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.dream-reading-again:hover { border-color: #78c7e8; color: #c9ecfa; }
.dream-reading-delete { min-height: 34px; padding: 0 16px; border: 0; border-radius: 999px; background: #c94a4a; color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.dream-reading-delete:hover { background: #dc5c5c; }
.dream-reading-delete:disabled { opacity: .6; cursor: progress; }
.dream-reading [hidden], .dream-reading[hidden] { display: none; }

/* Tooltips under the five icons, in the style of the comic star tooltip. */
.dream-comments .feed-reactions .dream-tab, .dream-comments .feed-reactions .dream-comments-toggle, .dream-comments .feed-reactions .dream-like-heart { position: relative; }
.dream-tab-tooltip { position: absolute; bottom: calc(100% + 6px); left: 50%; z-index: 3; transform: translateX(-50%); padding: 7px 10px; border: 1px solid #ffffff1a; border-radius: 7px; background: #10151aeb; color: #fff; font: 400 12px/1.4 system-ui, sans-serif; letter-spacing: 0; white-space: nowrap; pointer-events: none; opacity: 0; visibility: hidden; transition: opacity .12s; }
.dream-tab:hover .dream-tab-tooltip, .dream-tab:focus-visible .dream-tab-tooltip, .dream-comments-toggle:hover .dream-tab-tooltip, .dream-comments-toggle:focus-visible .dream-tab-tooltip, .dream-like-heart:hover .dream-tab-tooltip, .dream-like-heart:focus-visible .dream-tab-tooltip { opacity: 1; visibility: visible; }
@media (hover: none) { .dream-tab-tooltip { display: none; } }
.dream-tab--emoji .dream-tab-tooltip { left: 0; transform: none; }
