body[data-view='notes'] .notes-view { padding-inline: clamp(24px, 3vw, 72px); }
body[data-view='notes'] .notes-shell { width: min(100%, 1440px); }
body[data-view='notes'] .notes-layout { grid-template-columns: minmax(0, .95fr) minmax(0, 1.8fr); gap: clamp(24px, 3vw, 48px); }
.klaus-updates { min-width: 0; min-height: 0; display: grid; grid-template-rows: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; }
.social-feeds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; min-width: 0; min-height: 0; }
.klaus-posts { min-width: 0; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 10px; }
.posts-window { min-height: 0; min-width: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: #0005 transparent; scrollbar-gutter: stable; overflow-anchor: none; outline-offset: -2px; padding-right: 6px; }
#public-posts, #public-replies { display: flex; flex-direction: column; gap: 12px; }
.public-post { position: relative; flex: none; min-width: 0; overflow-wrap: anywhere; }
.post-fallback { margin: 0; padding: 14px 16px; color: #fff2d8; background: #000; border: 1px solid rgb(255 242 216 / .18); border-radius: 12px; font: 17px/1.45 system-ui, sans-serif; }
.post-fallback p { white-space: pre-wrap; margin: 12px 0; }
.post-byline { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 10px; }
.post-byline a { font-weight: 500; }
.post-byline time { font-size: 14px; opacity: .62; }
.post-fallback a:hover, .post-fallback a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.post-media { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 6px; }
.post-media img { display: block; width: 100%; height: auto; border-radius: 8px; }
.post-quote { font-size: 15px; }
.post-embed { min-width: 0; }
.post-embed:empty { display: none; }
.post-embed .twitter-tweet { margin: 0 !important; }
.post-embed-pending { position: absolute; top: 0; left: 0; visibility: hidden; pointer-events: none; }
.public-post[data-loading='true'] > .post-fallback { display: none; }
.public-post[data-loading='true']::before { content: ''; display: block; height: 280px; box-sizing: border-box; border: 1px solid rgb(255 242 216 / .18); border-radius: 12px; background: linear-gradient(#fff2d812, #fff2d812) 16px 20px / 44px 44px no-repeat, linear-gradient(#fff2d812, #fff2d812) 72px 24px / 45% 12px no-repeat, linear-gradient(#fff2d812, #fff2d812) 72px 46px / 30% 10px no-repeat, linear-gradient(#fff2d80a, #fff2d80a) 16px 90px / calc(100% - 32px) 92px no-repeat, #000; }
.public-post[data-embedded='true'] > .post-embed:not(.post-embed-pending) { animation: post-appear 160ms ease-out; }
.public-post[data-embedded='true'] > .post-fallback { display: none; }
@keyframes post-appear { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .public-post[data-embedded='true'] > .post-embed { animation: none; } }
#posts-status, #replies-status { margin: 0; font-size: 16px; line-height: 1.5; }
@media (min-width: 851px) and (max-width: 950px) {
  .social-feeds { grid-template-columns: minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 850px) {
  .klaus-updates { display: block; margin-top: 40px; }
  .social-feeds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .klaus-posts { height: min(540px, 65svh); min-height: 300px; }
  .klaus-updates .klaus-log { margin-top: 36px; }
  .klaus-updates .log-list li + li { margin-top: 24px; }
  .posts-window { padding-right: 4px; -webkit-overflow-scrolling: touch; }
}

@media (max-width: 650px) {
  .social-feeds { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
