/* Apariencia común. Chrome → one active scroll panel → post → comments. */
#feedView.social-feed-view {
  display:flex; flex-direction:column; width:100%; max-width:none; height:100%;
  min-height:0; min-width:0; margin:0; padding:0; border:0; border-radius:0;
  overflow:hidden; background:var(--surface); color:var(--text);
}
#feedView [hidden],#feedView[hidden] { display:none!important; }
#feedView .feed-topbar {
  position:relative; inset:auto; flex:none; min-height:64px; padding:10px 24px;
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  border-bottom:1px solid var(--line); background:var(--surface); z-index:4;
}
.feed-title-group,.feed-topbar-actions { display:flex; align-items:center; gap:12px; min-width:0; }
#feedView .feed-topbar h1 { font-size:22px; line-height:28px; margin:0; }
#feedView .feed-topbar p { font-size:12px; line-height:16px; color:var(--muted); margin:2px 0 0; }
#feedView button,.feed-settings-modal button {
  min-height:44px; cursor:pointer; padding:8px 12px; font:inherit;
  border:1px solid var(--line); border-radius:10px; background:var(--surface-2); color:var(--text);
}
#feedView button:disabled,.feed-settings-modal button:disabled { cursor:wait; opacity:.55; }
#feedView .button.primary { background:var(--brand); color:var(--on-brand); border-color:transparent; }
.feed-icon-button { width:44px; flex:0 0 44px; display:grid; place-items:center; font-size:21px!important; }
.feed-topbar-actions>button { font-size:13px!important; }
#feedView .feed-scroll-panel { min-height:0; min-width:0; flex:1; overflow:auto; overscroll-behavior-y:contain; scrollbar-gutter:stable; scroll-padding-block:16px; }
.feed-notice { flex:none; margin:0; padding:10px 24px; border-bottom:1px solid var(--line); background:var(--surface-2); font-size:14px; max-height:110px; overflow:auto; }
#feedView .feed-tabs { position:sticky; top:0; z-index:3; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); background:var(--surface); border-bottom:1px solid var(--line); padding:0; }
#feedView .feed-tabs button { position:relative; min-height:50px; border:0; border-radius:0; background:transparent; color:var(--muted); padding:8px; font-size:14px; }
#feedView .feed-tabs button[aria-pressed=true] { color:var(--brand); font-weight:700; }
.feed-tabs button[aria-pressed=true]::after { content:""; position:absolute; height:3px; left:18%; right:18%; bottom:0; background:var(--brand); border-radius:3px; }
.feed-composer,.feed-card { display:grid; grid-template-columns:44px minmax(0,1fr); gap:14px; padding:20px clamp(16px,3vw,48px); border-bottom:1px solid var(--line); }
.feed-avatar { width:44px; height:44px; flex:0 0 44px; display:grid; place-items:center; border-radius:50%; background:var(--surface-3); color:var(--brand); font-size:14px; font-weight:750; }
.feed-composer form,.feed-post-content { min-width:0; }
#feedView textarea { width:100%; display:block; padding:12px; min-height:76px; resize:vertical; max-height:240px; border:1px solid var(--line); border-radius:10px; background:var(--surface-2); color:var(--text); font-size:16px; line-height:1.5; }
#feedView textarea:focus-visible { outline:3px solid var(--brand); outline-offset:2px; }
.feed-composer footer,.feed-reply-composer footer { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; margin-top:10px; }
.feed-composer footer>span,.feed-reply-composer footer>small { font-size:12px; color:var(--muted); flex:1; }
.feed-composer-status { font-size:14px; margin:12px 0 0; padding:10px 12px; background:var(--surface-2); border-radius:8px; overflow-wrap:anywhere; }
.feed-image-picker { display:inline-flex; align-items:center; gap:6px; min-height:40px; padding:6px 10px; border:1px solid var(--line); border-radius:10px; color:var(--brand); font-weight:750; cursor:pointer; }
.feed-composer-image { position:relative; width:min(100%,420px); margin-top:8px; }
.feed-composer-image img { display:block; width:100%; max-height:240px; object-fit:cover; border:1px solid var(--line); border-radius:12px; }
.feed-composer-image button { position:absolute; top:8px; right:8px; width:38px; min-width:38px; min-height:38px; padding:0; border-radius:50%; background:var(--surface); color:var(--text); border:1px solid var(--line); }
.is-error { color:var(--text); border-left:3px solid #c94b43; }
.feed-composer-guest { display:grid; gap:6px; font-size:14px; line-height:1.5; }
.feed-composer-guest span { color:var(--muted); }
.feed-composer-guest a { color:var(--brand); text-decoration:underline; min-height:44px; padding-top:8px; width:fit-content; }
.feed-attention { border-bottom:1px solid var(--line); padding:16px clamp(16px,3vw,48px); background:var(--surface-2); }
.feed-attention>header { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin-bottom:8px; }
.feed-attention h2 { margin:0; font-size:16px; }
.feed-attention small { color:var(--muted); font-size:12px; }
.feed-attention-list { display:grid; gap:8px; }
.feed-attention-item { display:flex; gap:16px; align-items:center; justify-content:space-between; background:var(--surface); padding:12px; border:1px solid var(--line); border-radius:10px; min-width:0; }
.feed-attention-item>div { min-width:0; }
.feed-attention-item h3 { font-size:14px; margin:0; overflow-wrap:anywhere; }
.feed-attention-item p { font-size:13px; margin:3px 0 0; color:var(--muted); }
.feed-attention-item a { min-height:44px; display:flex; align-items:center; color:var(--brand); flex-shrink:0; font-size:14px; }
.feed-context-bar { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px; padding:12px clamp(16px,3vw,48px); border-bottom:1px solid var(--line); }
.feed-context-bar>div { display:grid; gap:3px; }
.feed-context-bar strong { font-size:13px; }
.feed-context-bar small,.feed-context-bar p { font-size:12px; color:var(--muted); margin:0; }
.feed-card-action { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:12px; padding:10px 12px; border:1px solid color-mix(in srgb,var(--brand) 24%,var(--line)); border-radius:12px; background:color-mix(in srgb,var(--brand) 7%,var(--surface)); }
.feed-card-action a { min-height:36px; display:inline-flex; align-items:center; gap:8px; color:var(--brand); font-size:14px; font-weight:800; text-decoration:none; }
.feed-card-action a:hover { text-decoration:underline; }
.feed-card-action small { color:var(--muted); font-size:11px; text-align:right; }
.feed-grid { width:100%; padding:0; }
.feed-card { background:var(--surface); transition:background .15s; }
.feed-card:not(.is-detail):hover { background:color-mix(in srgb,var(--surface-2) 45%,var(--surface)); }
.feed-post-header { display:flex; align-items:flex-start; gap:8px; justify-content:space-between; }
.feed-post-header>div { display:flex; align-items:center; flex-wrap:wrap; gap:4px 8px; min-width:0; }
.feed-post-header strong { font-size:15px; overflow-wrap:anywhere; }
.feed-post-header time,.feed-handle { font-size:13px; color:var(--muted); overflow-wrap:anywhere; }
.feed-post-header a { min-height:24px; display:inline-flex; align-items:center; }
.feed-verified { color:var(--brand); }
.feed-post-context { font-size:12px; color:var(--muted); margin:4px 0 10px; display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.feed-demo-badge { display:inline-block; padding:2px 7px; border:1px solid var(--line); background:var(--surface-2); border-radius:6px; color:var(--muted); font-size:11px; }
.feed-post-link { display:block; color:inherit; text-decoration:none; border-radius:3px; }
.feed-post-link:focus-visible { outline:3px solid var(--brand); outline-offset:4px; }
.feed-post-content h2 { margin:0 0 8px; font-size:18px; line-height:1.4; max-width:80ch; overflow-wrap:anywhere; }
.feed-card-summary { font-size:16px; line-height:1.6; white-space:pre-wrap; overflow-wrap:anywhere; margin:0; max-width:85ch; }
.feed-post-media { margin:14px 0 0; overflow:hidden; border:1px solid var(--line); border-radius:12px; background:var(--surface-2); width:min(100%,900px); }
.feed-post-media img { display:block; width:100%; height:auto; aspect-ratio:16/9; max-height:460px; object-fit:cover; }
.feed-attribution { font-size:11px; color:var(--muted); display:block; margin-top:5px; }
.feed-attribution a { text-decoration:underline; }
.feed-post-date { font-size:13px; color:var(--muted); margin:16px 0; }
.feed-facts { display:flex; flex-wrap:wrap; gap:12px 24px; margin:12px 0; padding:12px 0; border-block:1px solid var(--line); }
.feed-facts>div { min-width:0; flex:1 1 150px; }
.feed-facts dt { font-size:12px; color:var(--muted); }
.feed-facts dd { font-size:15px; margin:4px 0 0; overflow-wrap:anywhere; }
.feed-reputation { background:var(--surface-2); padding:12px; border-radius:10px; font-size:14px; }
.feed-business-actions { display:flex; flex-wrap:wrap; gap:8px; margin:14px 0; }
.feed-business-actions a { min-height:44px; display:inline-flex; align-items:center; gap:8px; font-size:14px; }
.feed-social-actions { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:4px; margin-top:12px; max-width:850px; }
#feedView .feed-social-actions :is(button,a) { display:flex; align-items:center; justify-content:flex-start; gap:6px; min-width:0; min-height:44px; padding:8px; border:0; border-radius:10px; color:var(--muted); background:transparent; font-size:12px; text-decoration:none; }
.feed-social-actions svg { flex:0 0 20px; }
#feedView .feed-social-actions :is(button,a):hover { background:var(--surface-3); color:var(--brand); }
#feedView .feed-social-actions button[aria-pressed=true] { color:var(--brand); background:var(--surface-3); }
.feed-post-menu { position:relative; flex:0 0 44px; }
.feed-post-menu summary { cursor:pointer; width:44px; min-height:44px; list-style:none; display:grid; place-items:center; border-radius:10px; color:var(--muted); }
.feed-post-menu summary::-webkit-details-marker { display:none; }
.feed-post-menu[open] summary { background:var(--surface-3); }
#feedView .feed-post-menu>button { position:absolute; right:0; top:44px; z-index:2; white-space:nowrap; background:var(--surface); box-shadow:0 8px 24px #0002; }
.feed-comments-section { padding:0 clamp(16px,3vw,48px) 32px; }
.feed-comments-heading { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; margin:24px 0 16px; }
.feed-comments-heading h2 { font-size:18px; margin:0; scroll-margin:16px; }
.feed-comments-heading h2 span { color:var(--muted); margin-left:8px; font-size:14px; }
.feed-comments-heading small { color:var(--muted); font-size:12px; }
.feed-reply-composer { margin:0 0 12px; padding:16px; border:1px solid var(--line); border-radius:12px; }
.feed-reply-composer label { display:block; font-size:14px; font-weight:650; margin-bottom:8px; }
.feed-reply-composer>p { font-size:12px; color:var(--muted); margin:10px 0 0; }
.feed-reply-composer .feed-composer-status { font-size:14px; color:var(--text); }
.feed-comment-signin { padding:16px; background:var(--surface-2); border-radius:10px; font-size:15px; }
.feed-comment-signin a { text-decoration:underline; color:var(--brand); }
#feedCommentsStatus { padding:12px; margin:12px 0; font-size:14px; }
.feed-comment { display:grid; grid-template-columns:40px minmax(0,1fr); gap:12px; padding:20px 0; border-bottom:1px solid var(--line); }
.feed-comment .feed-avatar { width:40px; height:40px; font-size:12px; }
.feed-comment>div { min-width:0; }
.feed-comment header { display:flex; flex-wrap:wrap; align-items:baseline; gap:8px 12px; }
.feed-comment strong { font-size:14px; overflow-wrap:anywhere; }
.feed-comment time { color:var(--muted); font-size:12px; }
.feed-comment p { margin:6px 0 0; font-size:15px; line-height:1.6; white-space:pre-wrap; overflow-wrap:anywhere; max-width:85ch; }
.feed-comments-more { display:flex; justify-content:center; margin-top:20px; }
.feed-loading,.feed-end,.feed-disabled { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px; padding:32px 20px; font-size:15px; color:var(--muted); text-align:center; min-height:140px; }
.feed-loading h2,.feed-disabled h2 { font-size:20px; color:var(--text); margin:0; }
.feed-loading p,.feed-end p,.feed-disabled p { margin:0; max-width:65ch; }
.feed-end strong { font-size:15px; }
.feed-settings-modal { width:min(640px,calc(100% - 24px)); max-height:calc(100dvh - 24px); padding:20px; margin:auto; overflow:auto; border:1px solid var(--line); border-radius:12px; background:var(--surface); color:var(--text); }
.feed-settings-dialog>header { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:16px; }
.feed-settings-dialog h2 { font-size:22px; margin:0; }
.feed-settings-dialog form { display:grid; gap:16px; }
.feed-settings-dialog label { display:grid; gap:6px; font-size:14px; }
.feed-settings-dialog input:not([type=checkbox]) { width:100%; min-height:44px; padding:10px 12px; border:1px solid var(--line); border-radius:10px; color:var(--text); background:var(--surface-2); font-size:16px; }
.feed-settings-dialog .feed-toggle-row { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.feed-toggle-row span { display:grid; gap:4px; }
.feed-toggle-row small,.feed-privacy-note { color:var(--muted); font-size:13px; }
.feed-settings-dialog input[type=checkbox] { min-height:24px; width:24px; height:24px; flex:0 0 24px; accent-color:var(--brand); }
.feed-settings-dialog fieldset { border:1px solid var(--line); border-radius:10px; padding:12px; min-width:0; }
.feed-settings-dialog legend { font-size:14px; padding:0 6px; }
.feed-app-picker { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.feed-settings-dialog .feed-app-choice { display:flex; align-items:center; min-height:44px; gap:8px; min-width:0; font-size:13px; }
.feed-app-choice span { overflow-wrap:anywhere; }
@media(max-width:900px) { .feed-action-label { display:none; } }
@media(max-width:760px) {
  #feedView .feed-topbar { min-height:56px; padding:6px 12px; gap:8px; }
  #feedView .feed-topbar h1 { font-size:20px; }
  #feedView .feed-topbar p { display:none; }
  .feed-title-group,.feed-topbar-actions { gap:6px; }
  .feed-composer,.feed-card { padding:16px 12px; grid-template-columns:36px minmax(0,1fr); gap:10px; }
  .feed-avatar { width:36px; height:36px; font-size:12px; }
  .feed-post-header strong { font-size:14px; }
  .feed-handle { display:none; }
  .feed-post-content h2 { font-size:17px; }
  .feed-card-summary { font-size:15px; line-height:1.55; }
  .feed-context-bar { padding:12px; }
  .feed-context-bar>p { display:none; }
  .feed-comments-section { padding:0 12px 24px; }
  .feed-reply-composer { padding:12px; }
  .feed-post-media { border-radius:10px; }
  .feed-notice { padding:8px 12px; }
  .feed-social-actions { gap:0; }
  #feedView .feed-social-actions :is(button,a) { justify-content:center; padding:8px 2px; gap:5px; }
  .feed-comment { grid-template-columns:36px minmax(0,1fr); gap:10px; }
  .feed-comment .feed-avatar { width:36px; height:36px; }
  .feed-comments-heading { margin-top:20px; }
  .feed-card-action { align-items:flex-start; flex-direction:column; gap:1px; }
  .feed-card-action small { text-align:left; }
}
@media(max-width:370px) { #feedView .feed-topbar-actions>button { padding:6px; font-size:12px!important; } .feed-title-group { gap:4px; } .feed-post-content .feed-business-actions a { width:100%; justify-content:center; } }
@media(prefers-reduced-motion:reduce) { .feed-card { transition:none; } }
