.feed-composer,.feed-card{padding:18px;margin-bottom:14px}.feed-composer .primary{width:100%}.feed-card header{display:flex;flex-wrap:wrap;gap:6px;justify-content:space-between;align-items:center}.feed-card time,.feed-domain{font-size:12px;color:var(--hint)}.feed-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5}.feed-snippet{display:flex;flex-direction:column;gap:8px;text-align:left;width:100%;padding:14px;border-radius:14px;background:var(--accent-soft);color:var(--text);overflow-wrap:anywhere}.feed-card footer{display:flex;justify-content:flex-end;gap:10px;margin-top:12px}.feed-card textarea,.feed-composer textarea{width:100%;resize:vertical}.feed-settings{margin-bottom:24px}.feed-settings label{display:block;margin:12px 0}.feed-settings input[type=checkbox]{width:auto}

.feed-video,.feed-video-play{width:100%;aspect-ratio:16/9;border:0;border-radius:14px;margin:12px 0;background:var(--accent-soft);color:var(--accent)}.feed-video-play{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;font-size:32px}.feed-video-play span{font-size:15px}

.feed-timeline{background:var(--surface);border-radius:13px;overflow:hidden}.feed-tweet{padding:16px}.feed-tweet+.feed-tweet{border-top:1px solid var(--line)}.feed-post-header{display:flex;align-items:center;gap:8px;margin-bottom:12px}.feed-post-header>.avatar{width:28px;height:28px;font-size:12px}.feed-post-meta{min-width:0;flex:1}.feed-tweet .feed-author-name{font-size:13px;font-weight:600}.feed-tweet .feed-username{font-size:11px}.feed-tweet .feed-author-name .author-badge{width:13px;height:13px;vertical-align:-2px}.feed-tweet .feed-time{font-size:11px;margin:2px 0 0}.feed-tweet-body{flex:1;min-width:0}.feed-author{display:flex;align-items:baseline;flex-wrap:wrap;gap:3px 7px;min-width:0}.feed-author-name{font-weight:650;font-size:15px;overflow-wrap:anywhere}.feed-author-name .author-badge{width:16px;height:16px;margin-left:4px;vertical-align:-3px}.feed-username,.feed-time{font-size:12px;color:var(--hint);overflow-wrap:anywhere}.feed-time{display:block;margin:3px 0 8px}.feed-tweet .feed-text{font-size:15px}.feed-tweet .feed-snippet{margin-top:12px;border:1px solid var(--line);background:transparent;font-size:13px}.feed-post-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:6px}.feed-icon-button{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;color:var(--hint);border-radius:50%;padding:10px}.feed-icon-button.danger{color:var(--danger)}.feed-icon-button:hover{background:var(--accent-soft)}.feed-icon-button svg{width:19px;height:19px}.feed-compose-dialog{padding:0;width:min(100%,600px);max-height:95dvh;border-radius:18px 18px 0 0}.feed-compose-dialog .feed-composer{margin:0;padding:0}.feed-compose-toolbar{display:flex;justify-content:space-between;align-items:center;padding:10px 14px;border-bottom:1px solid var(--line);position:sticky;top:0;background:var(--bg);z-index:1}.feed-compose-toolbar .feed-publish{width:auto;min-height:40px;border-radius:24px;padding:9px 18px;font-size:14px}.feed-compose-body{display:flex;gap:12px;padding:20px 16px calc(24px + var(--safe-bottom))}.feed-compose-body>.avatar{width:38px;height:38px;font-size:15px}.feed-compose-fields{flex:1;min-width:0}.feed-compose-fields textarea{display:block;width:100%;min-height:180px;border:0;background:transparent;color:var(--text);padding:14px 0;resize:vertical;outline-offset:2px;font-size:18px;line-height:1.5}.feed-compose-fields [role=alert]{font-size:13px;color:var(--danger);margin-top:12px}@media(min-width:700px){.feed-compose-dialog{margin:auto;border-radius:18px}}@media(max-width:350px){.feed-compose-body{padding-left:12px;padding-right:12px;gap:8px}.feed-tweet{padding-left:12px;padding-right:12px}}

.feed-compose-fields textarea:focus,.feed-compose-fields textarea:focus-visible{outline:none;box-shadow:none}.feed-markdown{white-space:normal}.feed-markdown p+p{margin-top:10px}.feed-markdown blockquote{margin:10px 0;padding-left:12px;border-left:3px solid var(--line);color:var(--hint)}.feed-markdown pre{overflow:auto;padding:12px;background:var(--bg);border-radius:8px;white-space:pre-wrap}.feed-markdown code{font-size:.9em;background:var(--bg);border-radius:4px;padding:1px 3px}.feed-markdown ul,.feed-markdown ol{padding-left:22px;margin:8px 0}.feed-markdown h1,.feed-markdown h2,.feed-markdown h3{font-size:18px;margin:12px 0 8px}.feed-markdown-hint{font-size:11px;color:var(--hint);margin:12px 0;line-height:1.5}.feed-photo-add{display:inline-flex;align-items:center;min-height:44px;color:var(--accent);font-size:14px;cursor:pointer;position:relative}.feed-photo-add input{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}.feed-attachments{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px}.feed-attachment img{width:100%;height:100px;object-fit:cover;border-radius:8px}.feed-attachment>div{display:flex;justify-content:space-between}.feed-attachment button{min-height:44px;min-width:32px;color:var(--hint)}.feed-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;margin-top:12px;border-radius:12px;overflow:hidden}.feed-gallery button{padding:0;min-width:0;background:var(--bg)}.feed-gallery img{display:block;width:100%;aspect-ratio:1;object-fit:cover}.feed-gallery-single{grid-template-columns:1fr}.feed-gallery-single img{aspect-ratio:auto;max-height:460px;object-fit:contain}.feed-photo-viewer{width:min(100%,900px);padding:12px;background:var(--bg)}.feed-photo-viewer>img{display:block;width:100%;max-height:72dvh;object-fit:contain}.feed-photo-viewer>div{display:flex;align-items:center;justify-content:space-between}.feed-photo-viewer>div button{min-width:44px;min-height:44px;color:var(--accent)}

/* Keep the close control and its keyboard focus ring clear of the photo. */
.feed-photo-viewer>[data-photo-close]{display:flex;margin:0 0 8px auto}
/* Compact editor attachments retain 44px controls and scroll inside the row. */
.feed-compose-fields{min-width:0}.feed-attachments{display:flex;gap:8px;overflow-x:auto;overscroll-behavior-x:contain;padding-bottom:4px}.feed-attachment{flex:0 0 132px}.feed-attachment img{display:block;height:68px}.feed-attachment button{min-width:44px;min-height:44px}.feed-mentions{max-height:210px;overflow-y:auto;border:1px solid var(--line);border-radius:8px}.feed-mentions[hidden]{display:none}.feed-mentions button,[data-episode-results] button{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:3px;width:100%;min-height:44px;padding:8px;color:var(--text);overflow-wrap:anywhere}.feed-mentions button[aria-selected=true]{background:var(--bg)}.feed-mentions span,[data-episode-results] span{font-size:12px;color:var(--hint)}.feed-episode-picker{margin-top:8px}.feed-episode-picker summary{min-height:44px;display:flex;align-items:center;cursor:pointer;color:var(--accent);font-size:14px}.feed-episode-picker input{width:100%;min-width:0;min-height:44px;background:var(--bg);color:var(--text);border:1px solid var(--line);border-radius:8px;padding:8px;font:inherit}[data-episode-results]{max-height:240px;overflow-y:auto}.feed-episode-selected:empty{display:none}.feed-episode-selected{display:flex;align-items:center;gap:8px;font-size:13px;overflow-wrap:anywhere}.feed-episode-selected span{flex:1;min-width:0}.feed-episode-selected button{min-width:44px;min-height:44px;color:var(--hint)}.feed-podcast-play{display:flex;align-items:center;gap:12px;text-align:left;width:100%;padding:12px;margin-top:12px;background:var(--bg);border-radius:10px;color:var(--text)}.feed-podcast-play>span:first-child{color:var(--accent)}.feed-podcast-play>span:last-child{display:flex;flex-direction:column;gap:4px;min-width:0;overflow-wrap:anywhere}.feed-podcast-play small{color:var(--hint)}

/* One attachment toolbar; search stays collapsed until requested. */
.feed-attach-bar{display:flex;align-items:flex-start;flex-wrap:wrap;gap:0 12px;border-top:1px solid var(--line);margin-top:12px;padding-top:4px;position:relative}
.feed-attach-bar .feed-photo-add,.feed-attach-bar summary{display:flex;align-items:center;gap:6px;min-height:44px;margin:0;padding:0;font-size:13px;font-weight:500;color:var(--accent)}
.feed-attach-bar svg,.feed-episode-selected>svg{width:18px;height:18px;flex-shrink:0}
.feed-photo-add:focus-within{outline:2px solid var(--accent);outline-offset:2px;border-radius:6px}
.feed-attach-bar>output{margin-left:auto;line-height:44px;font-size:11px;color:var(--hint);white-space:nowrap}
.feed-attach-bar .feed-episode-picker{margin:0;position:static}
.feed-episode-picker summary{list-style:none}.feed-episode-picker summary::-webkit-details-marker{display:none}
.feed-episode-picker[open]{flex:1 0 100%;order:3}
.feed-episode-picker[open] summary{font-weight:600}
.feed-episode-search{padding:4px 0 0}.feed-episode-search input{font-size:14px}
[data-episode-results]{max-height:180px;margin-top:4px}[data-episode-results] button{padding:10px 4px;border-bottom:1px solid var(--line);font-size:13px}
.feed-attachments:empty{display:none}.feed-attachments{margin-top:4px;padding-bottom:0;gap:8px}
.feed-attachment{flex-basis:132px;position:relative;border-radius:10px;overflow:hidden;background:var(--bg)}
.feed-attachment img{height:64px;border-radius:0}.feed-attachment>div{justify-content:center}.feed-attachment button{padding:0;min-width:0;width:calc(100% / 3);min-height:44px}
.feed-episode-selected:not(:empty){padding:8px 0;margin-top:8px;border-top:1px solid var(--line);color:var(--hint)}
.feed-episode-selected strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:13px;font-weight:500;color:var(--text)}
.feed-episode-selected small{display:block;font-size:11px;margin-top:3px}.feed-episode-selected button{padding:0;font-size:20px}
.feed-compose-fields [data-feed-error]:empty{display:none}

.feed-compose-body{position:relative;display:block;padding-top:18px;padding-bottom:calc(12px + var(--safe-bottom))}
.feed-compose-body>.avatar{position:absolute;top:14px;left:16px;width:32px;height:32px;font-size:13px}
.feed-compose-fields>.feed-author{min-height:30px;padding-left:42px;align-items:center}
.feed-compose-fields textarea{min-height:140px;font-size:17px;padding:16px 0 12px}
@media(max-width:350px){.feed-compose-body>.avatar{left:12px}}

/* The author is one compact identity control, not a separate form field. */
.feed-author-switch{position:relative;margin:-4px 0 2px}
.feed-author-switch [data-author-toggle]{display:flex;align-items:center;gap:9px;max-width:100%;min-height:44px;padding:4px 8px 4px 0;text-align:left;border-radius:10px;color:var(--text)}
.feed-author-switch [data-author-toggle]:disabled{opacity:1;cursor:default}
.feed-author-switch [data-author-toggle]:not(:disabled):hover,.feed-author-switch [data-author-toggle][aria-expanded=true]{background:var(--accent-soft)}
.feed-author-switch .avatar{flex:0 0 32px;width:32px;height:32px;font-size:13px}
.feed-identity-text{display:flex;flex-direction:column;gap:2px;min-width:0}.feed-identity-text strong{font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.feed-identity-text small{font-size:11px;color:var(--hint);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.feed-author-chevron{color:var(--hint);padding-left:6px;font-size:18px}
.feed-author-options{position:absolute;top:calc(100% + 4px);left:0;width:min(100%,340px);max-height:240px;overflow-y:auto;padding:4px;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:0 8px 24px #0002;z-index:4;box-sizing:border-box}
.feed-author-options[hidden]{display:none}.feed-author-options button{display:flex;align-items:center;gap:10px;width:100%;min-height:52px;padding:8px;text-align:left;border-radius:8px;color:var(--text)}
.feed-author-options button:hover,.feed-author-options button[aria-checked=true]{background:var(--accent-soft)}.feed-author-check{margin-left:auto;color:var(--accent)}

.feed-attach-bar .feed-draft-discard{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;min-height:44px;padding:13px;color:var(--ds-danger,var(--danger));border-radius:12px}
.feed-attach-bar .feed-draft-discard[hidden]{display:none}
.feed-attach-bar .feed-draft-discard svg{width:18px;height:18px}

.feed-skeleton .feed-skeleton-avatar,
.feed-skeleton-name,
.feed-skeleton-date,
.feed-skeleton .feed-text span {
  display:block;
  background:var(--line);
  border-radius:4px;
}
.feed-skeleton .feed-skeleton-avatar {
  flex:0 0 28px;
  border-radius:50%;
}
.feed-skeleton-name { width:min(45%, 112px); height:10px; }
.feed-skeleton-date { width:min(30%, 72px); height:8px; margin-top:5px; }
.feed-skeleton .feed-text > div { display:flex; align-items:center; height:1.5em; }
.feed-skeleton .feed-text span { width:94%; height:10px; }
.feed-skeleton .feed-text div:nth-child(even) span { width:84%; }
.feed-skeleton .feed-text div:last-child span { width:57%; }
