.hub-panel{display:grid;gap:1rem}.hub-today-intro h2{margin:.15rem 0}.hub-audience{padding:1.25rem}.hub-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.75rem;margin:1rem 0}.hub-metric{border:1px solid var(--outline,#d8dde5);border-radius:14px;padding:1rem;display:flex;flex-direction:column;gap:.25rem}.hub-metric strong{font:600 1.8rem Newsreader,serif}.hub-note-list{display:grid;gap:.55rem;padding-left:1.5rem}.hub-note-list li{padding-left:.25rem}.hub-note-list .tag{margin-left:.6rem}.note-workspace{display:grid;grid-template-columns:minmax(0,2.25fr) minmax(300px,.75fr);gap:1rem;align-items:start}.note-document,.note-assistant{min-width:0}.note-assistant{position:sticky;top:1rem;display:grid;gap:1rem}.note-selection-tools{display:flex;gap:.5rem;flex-wrap:wrap;margin:.7rem 0}.note-assistant .asis-grid{grid-template-columns:1fr}.note-assistant .asis-side{max-height:180px;overflow:auto}.note-assistant .asis-msg{max-width:100%}.radar-lenses{display:flex;gap:.5rem;margin-bottom:1rem}.god-tools{margin-top:auto;padding-top:.75rem;border-top:1px solid rgba(255,255,255,.15)}
.hub-pending{padding:1.25rem}.hub-pending-head{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;flex-wrap:wrap}.hub-pending-head h2{margin:0}.hub-pending-total{font-size:.78rem;font-weight:700;color:var(--on-surface-variant,#44474a);background:var(--surface-low,#f4f3f1);border-radius:999px;padding:.28rem .65rem}.hub-work-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin:.9rem 0 1rem}.hub-work-group{min-width:0;border-top:2px solid var(--outline-variant,#c5c6ca);padding-top:.7rem}.hub-work-group-head{display:flex;align-items:center;justify-content:space-between;gap:.5rem}.hub-work-group-head h3{font:700 .94rem/1.35 var(--font-body,system-ui);margin:0}.hub-work-count{flex:none;font-size:.76rem;font-weight:700;color:var(--on-surface-variant,#44474a);background:var(--surface-low,#f4f3f1);border-radius:999px;min-width:1.5rem;text-align:center;padding:.2rem .4rem}.hub-pending-list{display:grid;gap:.55rem;list-style:none;margin:.7rem 0 0;padding:0}.hub-task-card{min-width:0;border:1px solid var(--outline-variant,#c5c6ca);border-left:3px solid var(--outline-variant,#c5c6ca);border-radius:10px;background:var(--surface-lowest,#fff);padding:.7rem .75rem}.hub-task-card.is-overdue{border-left-color:var(--error,#ba1a1a)}.hub-task-card.is-urgent{border-left-color:var(--coral,#fe6946)}.hub-task-title{display:block;color:var(--primary,#070a0c);font-weight:700;line-height:1.35;text-decoration:none;overflow-wrap:anywhere}.hub-task-title:hover{text-decoration:underline}.hub-task-title:focus-visible{outline:2px solid var(--coral,#fe6946);outline-offset:2px}.hub-task-meta{display:flex;align-items:center;flex-wrap:wrap;gap:.3rem;margin-top:.55rem}.hub-task-chip{max-width:100%;border:1px solid var(--outline-variant,#c5c6ca);border-radius:999px;background:var(--surface-low,#f4f3f1);color:var(--on-surface-variant,#44474a);font-size:.72rem;font-weight:650;line-height:1.25;padding:.2rem .5rem;overflow-wrap:anywhere}.hub-task-chip.is-overdue{background:var(--error-container,#ffdad6);color:var(--on-error-container,#93000a);border-color:transparent}.hub-task-chip.is-today,.hub-task-chip.is-urgent{background:var(--coral-fixed,#ffdad2);color:var(--on-coral-fixed,#3d0600);border-color:transparent}.hub-task-chip.is-high,.hub-task-chip.is-unassigned{background:#fff0d8;color:#704400;border-color:transparent}.hub-task-chip.is-upcoming{background:#e8f0ff;color:#214d80;border-color:transparent}.hub-task-chip.is-label{border-left:3px solid var(--hub-label-color,#75777a);background:var(--surface-lowest,#fff)}.hub-admin-details{padding:.8rem 1rem}.hub-admin-details>summary{cursor:pointer;font-weight:600}.hub-admin-details .hub-signatures{margin-top:.75rem}
@media(max-width:1200px){.hub-work-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.hub-work-grid{grid-template-columns:1fr}.hub-pending{padding:1rem}}
.hub-audience-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.hub-audience-groups section{min-width:0;border-top:1px solid var(--outline,#d8dde5);padding-top:.8rem}.hub-audience-groups section:last-child{grid-column:1/-1}.hub-audience-groups h3{margin:.2rem 0 .6rem}
.hub-audience-head{display:flex;align-items:start;justify-content:space-between;gap:1rem;flex-wrap:wrap}.hub-audience-head h2{margin:0 0 .15rem}.hub-audience-head p{margin:0}.hub-period-switch{display:flex;gap:.2rem;padding:.2rem;background:var(--surface-low,#f4f3f1);border-radius:10px}.hub-period-switch button{font:700 .83rem var(--font-body,system-ui);border:0;border-radius:8px;background:transparent;color:var(--on-surface-variant,#44474a);cursor:pointer;padding:.55rem .85rem}.hub-period-switch button[aria-pressed="true"]{background:var(--surface-lowest,#fff);color:var(--primary,#070a0c);box-shadow:0 1px 4px #0002}.hub-period-switch button:focus-visible{outline:2px solid var(--coral,#fe6946);outline-offset:2px}.hub-period-switch button:disabled{opacity:.5;cursor:not-allowed}.hub-audience-period{font-size:.84rem;font-weight:700;color:var(--on-surface-variant,#44474a);margin:.9rem 0 .2rem}.hub-metrics.is-audience{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));margin:.6rem 0 1.25rem}.hub-audience-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(270px,1fr);gap:1.5rem}.hub-audience-layout>section{min-width:0;border-top:1px solid var(--outline-variant,#c5c6ca);padding-top:.9rem}.hub-audience-layout h3{margin:0 0 .75rem;font:700 1rem var(--font-body,system-ui)}.hub-audience-note-list,.hub-topic-list,.hub-alert-list{list-style:none;margin:0;padding:0}.hub-audience-note{display:grid;grid-template-columns:2rem minmax(0,1fr);gap:.55rem;padding:.6rem 0;border-bottom:1px solid var(--surface-container,#efeeeb)}.hub-audience-rank{font:600 1.2rem var(--font-head,Georgia,serif);color:var(--outline,#75777a)}.hub-audience-note-body{display:flex;justify-content:space-between;align-items:baseline;gap:.5rem;min-width:0}.hub-audience-note-body a,.hub-audience-note-body strong{font-weight:650;line-height:1.4;overflow-wrap:anywhere}.hub-audience-views{white-space:nowrap;font-size:.8rem;font-weight:750;color:var(--on-surface-variant,#44474a)}.hub-topic{padding:.45rem 0}.hub-topic-text{display:flex;align-items:baseline;justify-content:space-between;gap:.5rem;flex-wrap:wrap}.hub-topic-text strong{font-size:.9rem}.hub-topic-track{height:5px;background:var(--surface-container,#efeeeb);border-radius:999px;margin-top:.35rem;overflow:hidden}.hub-topic-fill{display:block;height:100%;background:var(--coral,#fe6946);border-radius:999px}.hub-audience-topics>p{margin:.7rem 0 0}.hub-audience-alerts{margin:1.2rem 0;padding:1rem;border:1px solid var(--coral-fixed,#ffdad2);border-left:4px solid var(--coral,#fe6946);border-radius:10px;background:#fffaf7}.hub-audience-alerts h3{margin:0 0 .65rem;font:700 1rem var(--font-body,system-ui)}.hub-alert-list{display:grid;gap:.65rem}.hub-alert-list li{padding-top:.55rem;border-top:1px solid var(--coral-fixed,#ffdad2)}.hub-alert-list li:first-child{border-top:0;padding-top:0}.hub-alert-list p{margin:.25rem 0;font-size:.85rem;line-height:1.45}.hub-alert-list .btn{margin-top:.3rem}
@media(max-width:950px){.hub-audience-layout{grid-template-columns:1fr}}@media(max-width:600px){.hub-audience-note-body{display:block}.hub-audience-views{display:block;margin-top:.2rem}.hub-audience-head{display:block}.hub-period-switch{display:inline-flex;margin-top:.7rem}}
.hub-signature-list{display:grid;gap:.5rem;margin-top:1rem}.hub-signature-row{display:grid;grid-template-columns:minmax(180px,1fr) minmax(190px,1fr) auto auto;gap:.6rem;align-items:center;padding:.65rem 0;border-top:1px solid var(--outline,#d8dde5)}
@media(max-width:980px){.hub-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
.note-assistant{align-content:start;max-height:calc(100vh - 2rem);overflow:auto}
.note-side-tabs{display:flex;gap:.25rem;padding:.2rem;background:var(--surface-low,#f3f4f6);border-radius:12px}
.note-side-tab{flex:1;min-height:42px;border:0;border-radius:9px;background:transparent;color:inherit;cursor:pointer;font:inherit;font-weight:600}
.note-side-tab[aria-selected="true"]{background:var(--surface,#fff);box-shadow:0 1px 4px #0002}
.note-side-tab:focus-visible{outline:2px solid var(--coral,#c74d22);outline-offset:2px}
#nota-ia-panel[hidden],#nota-assistant-panel[hidden],.note-assistant[hidden],.note-tools[hidden],.note-style-details[hidden]{display:none!important}
#nota-ia-panel button[hidden]{display:none!important}
.note-tools{border-top:1px solid var(--outline-variant,#ddd);padding-top:.75rem}
.note-tools summary,.note-style-details summary{cursor:pointer;font-weight:600;min-height:32px}
details.note-tools:not([open])>:not(summary),.note-style-details:not([open])>:not(summary){display:none!important}
.note-selection-tools{margin:.65rem 0 0}
.note-style-details{margin-top:1rem}
.note-style-details .note-style{padding-top:.75rem}
.editor-source-row{display:flex;gap:.35rem;align-items:start;border-bottom:1px solid var(--outline-variant,#ddd);padding:.45rem 0}
.editor-source-row details{min-width:0;flex:1}.editor-source-row summary{cursor:pointer;overflow-wrap:anywhere}
.editor-source-text{white-space:pre-wrap;overflow-wrap:anywhere;max-height:18rem;overflow:auto;font-size:.85rem;line-height:1.5}
@media(max-width:980px){.note-workspace{grid-template-columns:1fr}.note-assistant{position:static;max-height:none}}
@media(max-width:980px){.note-workspace.note-chat-first .note-assistant{order:-1}}
@media(max-width:720px){.hub-signature-row{grid-template-columns:1fr}.hub-signature-row .btn{justify-self:start}}
@media(max-width:560px){.hub-metrics{grid-template-columns:1fr}.note-selection-tools .btn{flex:1 1 45%}}
@media(max-width:720px){.hub-audience-groups{grid-template-columns:1fr}.hub-audience-groups section:last-child{grid-column:auto}}
.hub-today-news,.hub-performance{margin-top:1.2rem;padding-top:1rem;border-top:1px solid var(--outline-variant,#c5c6ca)}
.hub-today-news h3,.hub-performance h3{margin:0 0 .75rem;font:700 1rem var(--font-body,system-ui)}
.hub-section-heading{display:flex;align-items:center;justify-content:space-between;gap:.75rem}.hub-section-heading h3{margin:0}.hub-section-count{font-size:.76rem;font-weight:750;color:var(--on-surface-variant,#44474a);background:var(--surface-low,#f4f3f1);border-radius:999px;padding:.25rem .6rem}.hub-section-help{margin:.25rem 0 .75rem}
.hub-data-warning{margin:.4rem 0;padding:.8rem 1rem;border-left:4px solid #c47700;border-radius:8px;background:#fff4df;color:#5d3b00;line-height:1.45}
.hub-review-summary{display:flex;align-items:center;justify-content:space-between;gap:.75rem;flex-wrap:wrap;margin:.75rem 0;padding:.75rem .85rem;border:1px solid var(--outline-variant,#c5c6ca);border-radius:10px;background:var(--surface-low,#f4f3f1)}.hub-review-summary>div:first-child{min-width:220px}.hub-review-summary p{margin:0}.hub-review-controls,.hub-note-actions{display:flex;align-items:center;gap:.45rem;flex-wrap:wrap}.hub-review-loading{margin:.65rem 0}.hub-today-note-list{list-style:none;margin:0;padding:0}.hub-today-note{display:grid;grid-template-columns:2rem minmax(0,1fr);gap:.65rem;padding:.8rem .7rem;border:1px solid transparent;border-bottom-color:var(--surface-container,#efeeeb);border-radius:10px}.hub-today-note.needs-review{margin:.45rem 0;border-color:#f2c89c;background:#fffaf4}.hub-today-note-body{display:grid;gap:.28rem;min-width:0}.hub-today-note a,.hub-today-note strong{font-weight:700;line-height:1.4;overflow-wrap:anywhere}.hub-note-actions{margin-top:.2rem}.hub-note-actions:empty{display:none}.hub-note-actions .btn{width:auto!important;min-height:32px;padding:.35rem .65rem}.hub-note-review{display:grid;gap:.2rem;margin-top:.35rem;padding:.65rem .75rem;border-left:3px solid #d76d18;border-radius:6px;background:#fff1df;color:#603600;font-size:.82rem;line-height:1.4}.hub-note-review strong{font-size:.78rem;text-transform:uppercase;letter-spacing:.035em}.hub-today-news.show-review-only .hub-today-note:not(.needs-review){display:none}
.hub-live-metrics-status{margin:.25rem 0 .65rem}.hub-live-metrics-status.is-pending{color:#6c6257}.hub-note-live-views{display:inline-flex;width:max-content;max-width:100%;align-items:center;padding:.2rem .48rem;border-radius:999px;background:#eaf4ec;color:#245c35;font-size:.76rem;font-weight:700;line-height:1.35}.hub-note-live-views.is-pending{padding:0;background:transparent;color:var(--muted,#6b6b70);font-weight:500}
.hub-performance>.hub-period-switch{display:inline-flex;margin-bottom:.65rem}.hub-traffic-window>.hub-audience-notes{margin-top:1rem;border-top:1px solid var(--surface-container,#efeeeb);padding-top:.9rem}
.hub-performance{margin-top:1.5rem;background:var(--surface-low,#f4f3f1);border:0;border-radius:12px;padding:1rem}.hub-performance-context{max-width:68ch;margin:.1rem 0 .75rem}.hub-traffic-lead{display:grid;gap:.35rem;margin:.75rem 0;padding:.8rem;border:1px solid var(--outline-variant,#c5c6ca);border-radius:10px;background:var(--surface-lowest,#fff)}.hub-traffic-lead-row{display:flex;justify-content:space-between;align-items:baseline;gap:.75rem}.hub-traffic-lead-row a,.hub-traffic-lead-row strong{font-weight:700;overflow-wrap:anywhere}.hub-traffic-ranking{margin-top:.55rem}.hub-traffic-ranking>summary{cursor:pointer;font-weight:700;font-size:.86rem;padding:.4rem 0}.hub-traffic-ranking>.hub-audience-notes{margin-top:.6rem;padding-top:.7rem;border-top:1px solid var(--outline-variant,#c5c6ca)}.hub-traffic-ranking>.hub-audience-notes>h3{display:none}
.hub-method-note{margin-top:1.25rem;padding-top:.8rem;border-top:1px dashed var(--outline-variant,#c5c6ca)}
@media(max-width:600px){.hub-performance>.hub-period-switch{display:flex;overflow-x:auto}.hub-performance>.hub-period-switch button{white-space:nowrap}.hub-review-summary{align-items:stretch}.hub-review-controls{width:100%}.hub-review-controls .btn{flex:1}.hub-today-note{grid-template-columns:1.6rem minmax(0,1fr);padding:.75rem .25rem}.hub-traffic-lead-row{display:grid}.hub-note-actions .btn{flex:1}}
.hub-trends{padding:1.25rem}.hub-trends-heading{display:flex;align-items:start;justify-content:space-between;gap:1rem;flex-wrap:wrap}.hub-trends-heading h2{margin:.1rem 0 .2rem}.hub-trends-heading p{margin:.1rem 0}.hub-trend-tabs{display:inline-flex;gap:.2rem;margin:.9rem 0;padding:.2rem;background:var(--surface-low,#f4f3f1);border-radius:10px}.hub-trend-tabs button{border:0;border-radius:8px;background:transparent;color:var(--on-surface-variant,#44474a);cursor:pointer;font:700 .84rem var(--font-body,system-ui);padding:.55rem .9rem}.hub-trend-tabs button[aria-pressed="true"]{background:var(--surface-lowest,#fff);color:var(--primary,#070a0c);box-shadow:0 1px 4px #0002}.hub-trend-tabs button:focus-visible{outline:2px solid var(--coral,#fe6946);outline-offset:2px}.hub-trend-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.hub-trend-card{--trend-accent:#d56b24;display:grid;align-content:start;gap:0;min-width:0;border:1px solid var(--outline-variant,#c5c6ca);border-top:4px solid var(--trend-accent);border-radius:12px;background:var(--surface-lowest,#fff);overflow:hidden;box-shadow:0 1px 2px #0000000b}.hub-trend-card.is-working{--trend-accent:#2563a7}.hub-trend-card.is-covered{--trend-accent:#338357}.hub-trend-card.is-following{--trend-accent:#8b6c24}.hub-trend-head{display:grid;gap:.5rem;padding:1rem 1rem .8rem}.hub-trend-kicker,.hub-trend-section-title{margin:0;color:var(--on-surface-variant,#5f6368);font-size:.68rem;font-weight:800;letter-spacing:.075em;text-transform:uppercase}.hub-trend-head h3{margin:0;color:var(--on-surface,#1d252d);font:750 1.16rem/1.28 var(--font-body,system-ui);overflow-wrap:anywhere}.hub-trend-signals{display:flex;align-items:center;gap:.4rem;flex-wrap:wrap}.hub-trend-signal{display:inline-flex;align-items:baseline;width:max-content;max-width:100%;padding:.24rem .52rem;border-radius:999px;background:#f1f2f4;color:#515963;font-size:.72rem;font-weight:650}.hub-trend-signal.is-volume{background:#edf3fb;color:#244d7d}.hub-trend-signal.is-new{background:#e5f3ff;color:#145683}.hub-trend-signal.is-current{background:#e8f5e9;color:#245c35}.hub-trend-signal.is-ended{background:#eee;color:#555}.hub-trend-signal.is-language{background:#fff0d8;color:#704400}.hub-trend-source-block{display:grid;gap:.55rem;padding:.8rem 1rem 1rem;border-top:1px solid #eceef0}.hub-trend-sources{display:grid;gap:.55rem;margin:0;padding:0;list-style:none;counter-reset:trend-source}.hub-trend-sources li{position:relative;display:grid;gap:.12rem;min-width:0;padding-left:1.6rem;counter-increment:trend-source}.hub-trend-sources li:before{content:counter(trend-source);position:absolute;left:0;top:.08rem;display:grid;place-items:center;width:1.15rem;height:1.15rem;border-radius:50%;background:#f0f1f3;color:#626a73;font-size:.65rem;font-weight:800}.hub-trend-sources a{color:var(--on-surface,#1d252d);font-weight:650;line-height:1.35;text-decoration:none;overflow-wrap:anywhere}.hub-trend-sources a:hover{text-decoration:underline;text-decoration-color:var(--trend-accent);text-underline-offset:2px}.hub-trend-publisher{color:var(--on-surface-variant,#676d73);font-size:.72rem}.hub-trend-editorial{display:grid;gap:.65rem;margin-top:auto;padding:.8rem 1rem;border-top:1px solid #e6e8ea;background:#fafafa}.hub-trend-editorial>div:first-child{display:grid;gap:.1rem;padding-left:.75rem;border-left:3px solid var(--trend-accent)}.hub-trend-editorial strong{font-size:.82rem;line-height:1.3}.hub-trend-editorial span{color:var(--on-surface-variant,#60666d);font-size:.76rem;line-height:1.35}.hub-trend-editorial.is-opportunity{background:#fffaf5}.hub-trend-editorial.is-working{background:#f4f8fd}.hub-trend-editorial.is-covered{background:#f3faf5}.hub-trend-actions{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}.hub-trend-actions .btn{width:auto!important}.hub-trend-source-warning{display:block;color:#7a4a17!important;font-weight:650}.hub-trend-more{margin-top:.75rem}.hub-trend-more>summary{cursor:pointer;font-weight:700;padding:.55rem 0}.hub-trend-more>.hub-trend-list{margin-top:.6rem}.hub-trends>.hub-method-note{margin-top:1rem}.hub-trends .hub-data-warning{margin:.75rem 0}
.hub-trend-toolbar{display:grid;grid-template-columns:repeat(3,minmax(170px,1fr));gap:.75rem;margin:1rem 0}.hub-trend-toolbar .field{display:grid;gap:.3rem}.hub-trend-toolbar .field>span{font-size:.78rem;font-weight:700;color:var(--on-surface-variant,#44474a)}.hub-trend-toolbar select,.hub-trend-toolbar input{width:100%}.hub-trend-summary{margin:.2rem 0 .8rem}
@media(max-width:900px){.hub-trend-toolbar{grid-template-columns:repeat(2,minmax(160px,1fr))}}@media(max-width:760px){.hub-trend-list{grid-template-columns:1fr}.hub-trends{padding:1rem}.hub-trend-tabs{display:flex}.hub-trend-tabs button{flex:1}.hub-trend-toolbar{grid-template-columns:1fr}}

/* Continuous story workspace: original modules and handlers in three stable zones. */
.fiaca-unified #view-nota .note-view-head{margin-bottom:.5rem;display:flex;justify-content:space-between;align-items:center;gap:.5rem}.fiaca-unified #view-nota .view-title{margin:0;font-size:22px}
.note-mobile-views{display:none}.note-history{min-width:0;padding:12px;overflow:auto}.note-history h2{font-size:16px;margin:0 0 10px}.note-history .asis-side{max-height:none;overflow:visible;width:auto;padding:0}.note-history .asis-brand,.note-history .asis-quick-actions{display:none}.note-history .asis-side-action{white-space:normal}.note-history .editorial-list{border-top:1px solid var(--outline-variant,#d9e2eb);margin-top:14px;padding-top:10px}.note-history .editorial-items{max-height:none}.note-history .editorial-list h3{font-size:14px}
.note-workspace.note-chat-first{height:calc(100dvh - 140px);min-height:360px;align-items:stretch;overflow:hidden}
.note-workspace .note-document{overflow:auto;margin:0;min-height:0}.note-workspace .editorial-layout{display:block}
.note-workspace .note-assistant{position:static;max-height:none;min-height:0;display:flex;flex-direction:column;overflow:hidden;gap:.6rem}
.note-workspace #nota-assistant-panel{flex:1;min-height:0;overflow:hidden}
.note-workspace .asis-body{height:100%;min-height:0}
.note-workspace .asis-grid{display:flex;flex-direction:column;height:100%;min-height:0}
.note-workspace .asis-main.is-chat{display:flex;flex-direction:column;flex:1;height:auto;min-height:0;overflow:hidden}
.note-workspace .asis-hilo{flex:1;min-height:160px;max-height:none;overflow:auto}
/* Menú ＋ Herramientas (20/10): popover sobre el cuadro de pedido. */
.note-workspace .asis-tools{position:static}
/* El menú se contiene en el cuadro de pedido (position:relative más abajo): nunca es más ancho que él, también a 390 px. */
.note-workspace .asis-tools-menu{position:absolute;left:8px;bottom:calc(100% - 4px);z-index:30;box-sizing:border-box;width:min(340px,calc(100% - 16px));max-height:min(70vh,calc(100vh - 9rem));overflow:auto;display:grid;gap:4px;padding:8px;background:var(--surface-lowest,#fff);border:1px solid var(--outline-variant,#ddd9d2);border-radius:8px;box-shadow:0 10px 30px #17263d2e}
.note-workspace .asis-tools-menu[hidden]{display:none!important}
.note-workspace .asis-tools-menu>p{margin:0 2px 2px;font-size:11px}
.note-workspace .asis-tools-menu .asis-composer-tools{display:grid;gap:2px;border-top:1px solid var(--outline-variant,#ddd9d2);padding-top:4px}
.note-workspace .asis-tools-menu .asis-composer-tools button{width:100%;text-align:left;font-size:12px;min-height:32px;border-color:transparent}
.note-workspace .asis-tools-menu .asis-composer-tools button:hover{background:var(--surface-low,#f0ece5)}
.note-workspace .asis-tools-menu .asis-tools-label{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.note-workspace .asis-tools-menu select{font-size:12px;min-height:32px}
.note-workspace .asis-ajustes{display:flex;flex-wrap:wrap;gap:4px;align-items:center;margin-top:6px;padding-top:6px;border-top:1px dashed var(--outline-variant,#ddd9d2)}
.note-workspace .asis-ajustes button{font-size:11px;min-height:28px;padding:3px 8px}
.note-workspace .asis-preparado{display:flex;flex-wrap:wrap;align-items:center;gap:6px;border-left:3px solid var(--fiaca-orange,#f37021)}
.note-workspace .asis-preparado strong{font-size:12px}
.note-workspace .asis-estilo-boton{font-size:11px;min-height:24px;padding:2px 7px;margin-left:4px}
.editor-source-types{display:flex;flex-wrap:wrap;gap:4px;margin:4px 0}.editor-source-types button[aria-pressed="true"]{background:var(--fiaca-selection,#fff1e7);border-color:var(--fiaca-accent-dark,#ac4106);color:var(--fiaca-navy,#0d1f3c)}
.note-workspace .asis-composer{position:relative;flex:none;background:var(--surface-lowest,#fff);margin-top:6px;margin-bottom:0;padding:8px}
.note-workspace .asis-editorial-tools{display:flex;flex-wrap:wrap;flex-basis:100%;gap:5px}.note-workspace .asis-editorial-tools button{width:auto;margin:0}
.note-workspace #nota-help-panel{font-size:13px;flex:0 1 auto;max-height:140px;overflow:auto;padding-right:4px}
@media(max-width:980px){.note-workspace #nota-help-panel{max-height:130px}}
.note-workspace .editorial-suggestions:empty{display:none}.note-workspace .editorial-prepared-packet p{margin:.35rem 0}
.note-document .editorial-document-actions{position:sticky;top:0;z-index:8;display:flex;flex-wrap:wrap;align-items:center;gap:5px;margin:0 0 12px;padding:8px;background:var(--surface-lowest,#fff);border:1px solid var(--outline-variant,#d8dde5);border-radius:8px;box-shadow:0 2px 6px #18283b12}
.note-document .editorial-document-actions button{flex:0 1 auto;margin:0}
.editorial-primary-actions,.editorial-secondary-actions{display:flex;flex-wrap:wrap;align-items:center;gap:5px;min-width:0}
.editorial-secondary-actions{margin-left:auto}
.editorial-save-state{flex-basis:100%;margin:0}.note-document .editorial-save-state{font-size:12px;line-height:1.35}
.note-workspace .field>label{display:inline-block}.note-workspace .field>textarea,.note-workspace .field>input{clear:both}
/* Compact information above the thread keeps composer and conversation within the viewport. */
.fiaca-unified .main:has(>#view-nota:not([hidden])){padding:1rem}
.fiaca-unified .main>#view-nota{width:100%}
.note-workspace #nota-ia-panel:not([hidden]){flex:0 1 auto;max-height:200px;overflow:auto}
.note-workspace .asis-conv-head{flex:none;margin-bottom:6px}
.note-workspace .asis-composer textarea{height:75px;min-height:75px;max-height:160px;margin:0}
.note-workspace .asis-composer-fila{display:flex;flex-wrap:wrap;gap:5px;align-items:center;margin-top:6px}
.note-workspace .asis-composer-fila button{width:auto;margin:0;font-size:11px;padding:4px 6px;line-height:1.25;min-height:30px}
.note-workspace .asis-composer-fila>span.muted{display:none}
.note-workspace .asis-composer>.asis-draft-context{padding:6px;font-size:12px;line-height:1.35;margin-bottom:5px}
.note-workspace .asis-composer>p[aria-label="Estilo del próximo pedido"]{font-size:11px;line-height:1.35;margin:4px 0}
.note-workspace .asis-composer .asis-style-summary{font-size:11px;margin:4px 0}
.note-workspace .note-tools{margin:0;font-size:12px;flex:none}
.note-workspace .asis-workspace-tools[hidden]{display:none!important}
.note-history nav[aria-label="Qué querés hacer"]{display:none}
.note-document .field .editorial-field-propose{display:inline-flex;width:auto;float:right;min-height:28px;font-size:12px;padding:4px 8px;margin:0 0 4px}
.fiaca-unified #view-nota #nota-editor-panel .field>.editorial-field-propose{display:inline-flex;width:max-content!important;max-width:100%;float:right;min-height:28px;font-size:12px;padding:4px 8px;margin:0 0 4px}

/* Each history group keeps its own bounded space; profile stays reachable. */
.note-workspace>.note-history{display:flex;flex-direction:column;overflow:auto;gap:10px;padding:14px;align-items:stretch}
.note-history>h2,.note-history>#nota-profile-open{flex:none;margin:0}
.note-history #nota-documents-panel .editorial-list{margin-top:0}

/* Context lives in dialogs; the assistant keeps one conversation scroll. */
.note-workspace .note-side-tabs{flex:none;flex-wrap:wrap;background:none;padding:0;gap:6px}
.note-workspace .note-side-tabs .note-side-tab{flex:1;min-width:140px;width:auto;min-height:40px}
.note-context-dialog{width:min(760px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:calc(100dvh - 40px);overflow:auto;padding:24px}
.note-context-dialog #nota-help-panel,.note-context-dialog #nota-ia-panel{max-height:none;overflow:visible;padding:0}
.note-context-dialog .estilo-editor-layout{display:block}

.note-workspace .asis-hilo .asis-msg,.note-workspace .asis-hilo .asis-adjuntos{min-width:0;max-width:100%;overflow-wrap:anywhere}
.note-workspace .asis-hilo .asis-adjuntos .tag{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;overflow:visible;text-overflow:clip}

/* Narrow layout: one view at a time and a single page-level scroll for the assistant. */
@media(max-width:980px){
  .note-mobile-views{display:flex;gap:4px}
  .note-mobile-views button{min-height:44px;padding:5px 8px;font-size:12px}
  .note-mobile-views button[aria-pressed="true"]{background:var(--primary,#1a5bb5);color:white}
  .note-workspace.note-chat-first{display:block;height:calc(100dvh - 150px);min-height:360px;overflow:hidden}
  .note-workspace>.note-document,.note-workspace>.note-assistant,.note-workspace>.note-history{height:100%;overflow:auto}
  .note-workspace[data-note-view="document"]>.note-assistant,.note-workspace[data-note-view="document"]>.note-history,.note-workspace[data-note-view="assistant"]>.note-document,.note-workspace[data-note-view="assistant"]>.note-history,.note-workspace[data-note-view="history"]>.note-document,.note-workspace[data-note-view="history"]>.note-assistant{display:none!important}
  .note-workspace #nota-assistant-panel{flex:none;min-height:0;overflow:visible}
  .note-workspace .asis-body,.note-workspace .asis-grid{height:auto;overflow:visible}
  .note-workspace .asis-main.is-chat{height:auto;min-height:0;overflow:visible}
  .note-workspace .asis-hilo{flex:none;max-height:none;overflow:visible;min-height:0}
  .note-workspace .asis-conv-head h2{font-size:18px;line-height:1.3}
  .note-workspace .asis-composer-fila button{min-height:40px}
  .note-document .editorial-document-actions button{min-height:44px;font-size:12px;padding:.4rem .6rem}
  .note-context-dialog{padding:20px 14px}
}

.note-selection-label{display:block;margin-bottom:6px;font-size:12px;color:var(--on-surface-variant,#44546b)}
.note-workspace .note-selection-tools{display:flex;flex-wrap:wrap;gap:6px}
.note-workspace .note-selection-tools button{width:auto;min-height:32px;margin:0}

/* The history grows with its records instead of reserving half a column per list. */
.note-workspace .note-history>h2{font-size:18px;line-height:1.3;margin:0}
.note-workspace .note-history>#nota-history-panel,.note-workspace .note-history>#nota-documents-panel{flex:none;min-height:0;max-height:none;overflow:visible}
.note-history #asis-history{display:grid;grid-template-columns:92px minmax(0,1fr);gap:6px;padding:0;background:none;border:0;overflow:visible}
.note-history #asis-history>.asis-brand,.note-history #asis-history>.asis-shortcuts,.note-history #asis-history>.asis-side-label{display:none}
.note-history #asis-history>.asis-new-chat{grid-column:1/-1;min-height:34px;margin:0;padding:6px 10px}
.note-history #asis-history>select{grid-column:1;min-width:0;width:100%;min-height:34px;padding:5px;font-size:12px;margin:0}
.note-history #asis-history>.asis-history-search{grid-column:2;min-width:0;padding:5px 7px;font-size:12px;min-height:34px;margin:0}
.note-history #asis-history>.asis-convs,.note-history #asis-history>p{grid-column:1/-1;min-height:0;max-height:none;overflow:visible}
.note-history .asis-conv-btn{padding:6px 7px;font-size:13px;line-height:1.35}
.note-history .asis-conv-titulo{white-space:normal;overflow-wrap:anywhere}
.note-history #nota-documents-panel{border-top:1px solid var(--outline-variant,#ddd);padding-top:8px}
.note-history .editorial-list>h3:first-child{display:none}
.note-history .editorial-list>h3{font-size:14px;line-height:1.3;margin:6px 0}
.note-history .editorial-list>button{min-height:32px;padding:5px 9px;margin:0 0 6px;font-size:12px}
.note-history .editorial-items{gap:5px}
.note-history .editorial-items button{min-height:32px;padding:6px 7px;font-size:12px;line-height:1.35}

/* Notes: the document is primary; field actions share their label row. */
.fiaca-unified #view-nota #nota-editor-panel .editorial-form>fieldset>.field{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px 10px;margin:0 0 12px;min-width:0}
.fiaca-unified #view-nota #nota-editor-panel .editorial-form>fieldset>.field>label{grid-column:1;grid-row:1;min-width:0;margin:0;font-size:12px;line-height:1.35;font-weight:600;overflow-wrap:anywhere}
.fiaca-unified #view-nota #nota-editor-panel .editorial-form>fieldset>.field>.editorial-field-propose{grid-column:2;grid-row:1;float:none;justify-self:end;align-self:center;display:inline-flex;width:auto!important;max-width:100%;min-height:32px;margin:0;padding:5px 8px;white-space:nowrap;font-size:12px;line-height:1.2}
.fiaca-unified #view-nota #nota-editor-panel .editorial-form>fieldset>.field>input,.fiaca-unified #view-nota #nota-editor-panel .editorial-form>fieldset>.field>textarea,.fiaca-unified #view-nota #nota-editor-panel .editorial-form>fieldset>.field>select,.fiaca-unified #view-nota #nota-editor-panel .editorial-form>fieldset>.field>.editorial-rich,.fiaca-unified #view-nota #nota-editor-panel .editorial-form>fieldset>.field>.ql-toolbar{grid-column:1/-1;min-width:0;width:100%;clear:none;margin:0}
.fiaca-unified #view-nota #nota-editor-panel #editorial-titulo_home,.fiaca-unified #view-nota #nota-editor-panel #editorial-titulo_redes{min-height:3.2rem;resize:vertical;font-size:15px;line-height:1.4}
.note-history-head{display:flex;align-items:center;justify-content:space-between;gap:8px;flex:none;min-width:0}
.note-history-head h2{margin:0;font-size:17px;line-height:1.3}
.note-history-toggle{display:inline-flex;align-items:center;justify-content:center;flex:none;width:32px!important;height:32px;min-height:32px;padding:0;margin:0;line-height:1}
.note-history-toggle:focus-visible{outline:2px solid var(--coral,#fe6946);outline-offset:2px}
@media(min-width:981px){
  .note-workspace.note-chat-first{grid-template-columns:minmax(190px,.48fr) minmax(360px,1.55fr) minmax(320px,1fr);gap:12px}
  .note-workspace.note-chat-first.is-history-collapsed{grid-template-columns:44px minmax(360px,1.55fr) minmax(320px,1fr)}
  .note-workspace.is-history-collapsed>.note-history{padding:6px;overflow:hidden}
  .note-workspace.is-history-collapsed .note-history-head{justify-content:center}
  .note-workspace.is-history-collapsed .note-history-head h2,.note-workspace.is-history-collapsed #nota-history-panel,.note-workspace.is-history-collapsed #nota-documents-panel{display:none}
}
@media(max-width:1150px) and (min-width:981px){
  .note-workspace.note-chat-first{grid-template-columns:155px minmax(310px,1.4fr) minmax(290px,1fr);gap:8px}
  .note-workspace.note-chat-first.is-history-collapsed{grid-template-columns:44px minmax(310px,1.4fr) minmax(290px,1fr)}
  .note-workspace .note-document,.note-workspace .note-assistant{padding:10px}
}
@media(max-width:980px){
  .note-history-toggle{display:none}
  .fiaca-unified #view-nota #nota-editor-panel .editorial-form>fieldset>.field>.editorial-field-propose{min-height:44px}
}

.note-workspace .asis-empty.is-draft-active{justify-content:flex-start;align-items:stretch;align-content:start;text-align:left;padding:16px 0;gap:8px;min-height:0;margin:0;flex:none;height:auto;width:100%}.note-workspace .asis-empty.is-draft-active h2{font-size:17px;line-height:1.3;margin:0}.note-workspace .asis-empty.is-draft-active .asis-draft-context{margin:0;padding:8px 10px}.note-workspace .asis-empty.is-draft-active>p:last-child{margin:0}

.note-document #editorial-titulo,.note-document #editorial-titulo_home,.note-document #editorial-titulo_redes,.note-document #editorial-bajada{field-sizing:content;min-height:3.2rem;max-height:12rem}

.note-workspace .asis-hilo.is-empty{flex:none;min-height:0;height:auto;margin:0;padding:0}

/* Radar: filtros secundarios en disclosure; resumen siempre visible. */
.radar-filters{margin:0 0 .75rem}
.radar-filters[hidden]{display:none}
.radar-filters>summary{cursor:pointer;font-size:.8125rem;line-height:1.5;padding:.4rem 0;min-height:2.25rem;display:flex;align-items:center}
.radar-filters>summary #radar-filter-summary{margin-left:.35rem;font-weight:700}
.radar-tab[tabindex="-1"]{cursor:pointer}

/* Documento de nota: cuerpo legible. */
.note-document .ql-editor{font-size:1.0625rem;line-height:1.65;max-width:46rem;margin-inline:auto}
.note-document label{font-weight:600}

/* Lateral persistente: cuatro pestañas, sin diálogos; el editor siempre visible en escritorio. */
.note-side-head{display:none}
.note-workspace .note-side-tabs .note-side-tab{min-width:0;flex:1 1 auto;padding:.4rem .5rem;font-size:13px}
.note-workspace .note-side-tabs .note-side-tab[aria-selected="true"]{background:var(--primary,#1a5bb5);color:#fff;font-weight:700;text-decoration:underline;text-underline-offset:3px}
.note-workspace .note-side-tabs .note-side-tab:focus-visible{outline:3px solid var(--primary,#1a5bb5);outline-offset:2px}
.note-workspace .note-side-panel{flex:1 1 auto;min-height:0;overflow:auto;font-size:13px}
.note-workspace .note-side-panel[hidden]{display:none!important}
.note-workspace #nota-help-panel,.note-workspace #nota-ia-panel:not([hidden]){max-height:none}
.note-workspace #nota-assistant-panel:not([hidden]){display:flex;flex-direction:column;overflow:hidden}
.note-workspace .note-side-panel .estilo-editor-layout{display:block}
@media(max-width:980px){
  .note-side-head{display:block;margin-bottom:.4rem}
  .note-side-back{min-height:44px;width:100%}
  .note-workspace .note-side-panel{overflow:visible}
  .note-workspace #nota-assistant-panel:not([hidden]){overflow:visible}
}
.antecedentes-lista{display:grid;gap:.6rem;margin:.5rem 0;padding:0;list-style:none}
.antecedente-card{border:1px solid var(--outline-variant,#d8dde5);border-radius:8px;padding:.6rem;overflow-wrap:anywhere}
.antecedente-card h4{margin:0 0 .25rem;font-size:14px}
.antecedente-card.is-elegida{border-color:var(--primary,#1a5bb5);border-width:2px}
.antecedente-acciones{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:.4rem}
.antecedente-acciones .btn{min-height:36px}
.fiaca-review-obs{border-left:4px solid var(--outline,#6b7787);padding:.4rem .6rem;margin:.4rem 0}
.fiaca-review-obs[data-nivel="bloquea"]{border-left-color:#b3261e}
.fiaca-review-obs[data-nivel="requiere_revision"]{border-left-color:#b26a00}
.fiaca-review-nivel{font-weight:700}
.fiaca-review-lista{list-style:none;padding:0;margin:.4rem 0}
.fiaca-review-cab{margin:0 0 .2rem}
.fiaca-review-fragmento{margin:.2rem 0;font-style:italic;overflow-wrap:anywhere}
.fiaca-review-origenes{margin:.2rem 0;font-size:.85em}
.fiaca-review-previa{margin-top:.6rem;border-top:1px solid var(--outline,#6b7787);padding-top:.5rem}
.fiaca-fragmento-resaltado{background:#ffe08a;outline:2px solid #b26a00}
.editorial-contador{font-size:12px;margin:.2rem 0}
.editorial-mas-acciones{position:relative}
.editorial-mas-acciones>summary{cursor:pointer;min-height:36px;display:inline-flex;align-items:center;padding:0 .6rem}
.editorial-mas-acciones[open]>div{display:flex;flex-direction:column;gap:.3rem;padding:.4rem}
.editorial-secundarios>summary{cursor:pointer;font-weight:600;min-height:36px}
.asis-detalles-pedido{margin:.4rem 0;font-size:12px}
.asis-detalles-pedido>summary{cursor:pointer;min-height:32px}

/* Colaboración en Radar: Abrir / Sumarme / Crear otro. */
.hub-collab{display:flex;flex-direction:column;gap:.5rem;margin:.5rem 0}
.hub-collab-actions{display:flex;flex-wrap:wrap;gap:.5rem}
.hub-collab-note{margin:0;font-size:.8125rem;line-height:1.5}
.hub-collab-list{margin:0;padding-left:1.1rem;font-size:.8125rem;line-height:1.5}
.hub-collab-dialog{max-width:32rem;width:calc(100% - 2rem);padding:1rem}
.hub-collab-dialog textarea{width:100%;min-height:4.5rem}
.hub-collab-dialog-actions{display:flex;justify-content:flex-end;gap:.5rem;margin-top:.75rem}
/* Hoy liviana: aviso de actualización, ventanas de resultados y 7 días plegados. */
.hub-refresh-status.is-error{color:#8a3b12;background:#fff1df}
.hub-performance .hub-traffic-window+.hub-traffic-window{margin-top:1.25rem;padding-top:1rem;border-top:1px solid var(--outline-variant,#c5c6ca)}
.hub-performance-more{margin-top:1.25rem;padding-top:.75rem;border-top:1px solid var(--outline-variant,#c5c6ca)}.hub-performance-more>summary{cursor:pointer;font-weight:700;font-size:.9rem;padding:.4rem 0}.hub-performance-more>.hub-traffic-window{margin-top:.5rem}
/* Trends San Juan (2b-B1): posible tema relacionado del Radar San Juan. */
.hub-trend-related{margin-top:.6rem;padding:.55rem .75rem;border-left:3px solid #173b63;background:#eef3f8;border-radius:4px;font-size:.88rem}
.hub-trend-related strong{display:block;margin-bottom:.2rem}
.hub-trend-related ul{margin:0;padding-left:1.1rem}.hub-trend-related li{margin:.15rem 0;overflow-wrap:anywhere}
.hub-trend-related .hub-trend-related-state{font-weight:700;color:#173b63;margin-left:.35rem}
