/* Segunda pasada: lectura ejecutiva, red orgánica y operación compacta. */
.nav-toggle {
  display: none;
}
.brief-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin: 0 0 24px;
}
.brief-heading h1 {
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 750;
  letter-spacing: -1.4px;
}
.executive-lead {
  background: #173941;
  color: #e4efee;
  padding: 36px 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 48px;
  border-top: 5px solid #45b6aa;
}
.executive-lead .eyebrow {
  color: #a7d8d1;
}
.executive-lead h2 {
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.15;
  max-width: 760px;
  margin: 14px 0 20px;
  font-weight: 650;
  letter-spacing: -1px;
}
.lead-narrative {
  font-size: 20px;
  max-width: 780px;
  line-height: 1.6;
  margin-bottom: 16px;
}
.executive-lead .button {
  background: #bee6db;
  color: #123b3b;
  margin-top: 24px;
}
.lead-signal {
  border-left: 1px solid #608185;
  padding-left: 32px;
  align-self: center;
}
.lead-signal > a {
  display: block;
  font-size: 88px;
  line-height: 1.15;
  color: #c4eade;
  font-weight: 650;
}
.lead-signal p {
  font-size: 13px;
}
.review-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  font-size: 13px;
}
.brief-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 48px;
  margin: 32px 0;
}
.section-number {
  color: #3b676c;
  font-size: 11px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  margin: 28px 0 8px;
}
.brief-grid h2 {
  font-size: 26px;
  letter-spacing: -0.6px;
  font-weight: 650;
  margin-bottom: 10px;
}
.brief-grid h3 {
  font-size: 19px;
  font-weight: 650;
  line-height: 1.4;
}
.brief-rail {
  border-left: 1px solid var(--line);
  padding-left: 28px;
}
.brief-rail > section {
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.rising-actor {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.rising-actor p {
  font-size: 13px;
  color: var(--muted);
}
.rising-actor > strong {
  font-size: 28px;
  color: #096962;
}
.delta-track > div {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
}
.delta-track meter {
  display: block;
  width: 100%;
  height: 12px;
}
.evidence-link {
  font-size: 12px;
  grid-column: 1/-1;
}
.relation-brief {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.relation-pair {
  display: grid;
  grid-template-columns: 1fr 140px 1fr;
  align-items: center;
  gap: 20px;
  font-size: 19px;
  font-weight: 650;
  margin-bottom: 12px;
}
.relation-bridge {
  text-align: center;
  color: #50747a;
  font-size: 30px;
  border-bottom: 1px dashed #8eafb2;
}
.relation-bridge small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.relation-brief p,
.relation-brief > a {
  font-size: 13px;
}
.editorial-news {
  display: grid;
  grid-template-columns: 65px 1fr;
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.editorial-news time {
  font-size: 13px;
  color: var(--muted);
  padding-top: 4px;
}
.editorial-news p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
}
.alert-brief {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.alert-brief p {
  font-size: 14px;
  margin: 10px 0;
}
.alert-brief .badge {
  border-color: #cbaa83;
  color: #75532f;
  background: #faf3e8;
}
.topic-brief {
  position: relative;
  padding: 18px 50px 18px 0;
  border-bottom: 1px solid var(--line);
}
.topic-brief > strong {
  position: absolute;
  right: 0;
  top: 18px;
  color: #096962;
  font-size: 24px;
}
.topic-brief p {
  font-size: 12px;
  margin-top: 8px;
  color: var(--muted);
}
.empty.compact {
  padding: 24px 0;
  text-align: left;
  min-height: 0;
}
.provenance {
  font-size: 12px;
  margin-top: 24px;
}
.graph-filters {
  border-top: 1px solid var(--line);
  margin-bottom: 12px;
}
.graph-filters summary {
  cursor: pointer;
  padding: 10px 0;
  font-size: 13px;
  font-weight: 650;
}
.graph-filters .toolbar {
  padding: 12px 0;
}
.graph-label {
  padding: 8px 20px;
  margin: 0;
  background: #edf4f2;
  color: #234b50;
  font-size: 13px;
  min-height: 36px;
  overflow-wrap: anywhere;
}
.graph-legend {
  gap: 8px 18px;
  font-size: 11px;
  background: #fff;
  padding: 10px 20px;
}
.graph-workspace {
  min-height: 590px;
  grid-template-columns: minmax(0, 1fr) 290px;
}
.graph-stage {
  min-height: 590px;
  background-image: radial-gradient(#d0ddda 0.7px, transparent 0.7px);
  background-size: 24px 24px;
}
.graph-detail {
  padding: 22px;
  background: #fbfdfb;
}
.graph-detail h2 {
  font-size: 24px;
  line-height: 1.3;
}
.graph-detail .notice {
  font-size: 12px;
  padding: 14px;
}
body[data-page="red"] .page-heading {
  margin-bottom: 14px;
}
body[data-page="red"] .page-heading h1 {
  font-size: 32px;
}
.actor-primary-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin: 20px 0;
}
.actor-primary-actions button {
  font-size: 13px;
  min-height: 42px;
}
.actor-more {
  position: relative;
}
.actor-more summary {
  padding: 10px 14px;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.actor-more > div {
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 5;
  padding: 16px;
  width: 250px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 12px 25px #16333d1a;
}
.actor-more a {
  display: block;
  padding: 10px 0;
}
.actor-more form button {
  white-space: normal;
}
.actor-sections {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  font-size: 13px;
}
.back-link {
  display: block;
  font-size: 12px;
  margin: 0 0 14px;
}
body[data-page="actores"] header.panel h1 {
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -1px;
}
.temporal-landscape {
  margin: 24px 0;
  background: #e9f1ee;
  padding: 8px 24px 20px;
  border-top: 3px solid #2b8074;
}
.temporal-landscape .panel-head {
  background: transparent;
  padding: 14px 0;
  border: 0;
}
.temporal-bars {
  display: flex;
  gap: 4px;
  align-items: end;
  overflow-x: auto;
  padding: 24px 0 10px;
  min-height: 205px;
  border-bottom: 1px solid #739d92;
}
.temporal-bars > a {
  flex: 1;
  min-width: 36px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #214e46;
  font-size: 11px;
}
.temporal-bar {
  display: block;
  width: 75%;
  max-width: 52px;
  background: #358579;
  border-radius: 3px 3px 0 0;
  min-height: 12px;
}
.temporal-bars a:hover .temporal-bar,
.temporal-bars a:focus .temporal-bar {
  background: #174f46;
}
.temporal-value {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 5px;
}
.temporal-bars time {
  font-size: 10px;
  margin-top: 8px;
}
.temporal-landscape > p {
  font-size: 12px;
  margin-top: 12px;
}
.timeline-list > li:target {
  background: #e4efeb;
  outline: 2px solid #317568;
}
.queue-categories {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
  margin-bottom: 20px;
}
.queue-categories > a {
  border: 1px solid var(--line);
  padding: 8px 12px;
  font-size: 13px;
  background: #fff;
  border-radius: 6px;
}
.queue-categories strong {
  margin-left: 8px;
}
.queue-categories [aria-current="page"] {
  background: #183d43;
  color: white;
  border-color: #183d43;
}
.queue-search {
  justify-content: initial;
}
.queue-search label {
  flex: 1;
  max-width: 450px;
}
.queue-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  gap: 12px;
}
.queue-heading h2 {
  font-size: 26px;
  font-weight: 650;
}
.queue-heading span {
  font-size: 12px;
  color: var(--muted);
}
.curation-queue {
  list-style: none;
  margin: 12px 0 20px;
  padding: 0;
  border-top: 1px solid var(--line);
}
.curation-queue > li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.queue-priority {
  font-size: 20px;
  color: #285452;
  font-weight: 650;
  align-self: start;
}
.curation-queue h3 {
  font-size: 18px;
  font-weight: 650;
  margin: 4px 0;
}
.curation-queue p {
  font-size: 13px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.curation-queue .eyebrow {
  font-size: 9px;
}
@media (max-width: 1000px) {
  .brief-grid {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 24px;
  }
  .executive-lead {
    padding: 28px;
    gap: 24px;
    grid-template-columns: 1fr 160px;
  }
  .graph-workspace {
    grid-template-columns: 1fr;
  }
  .graph-detail {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .graph-stage {
    min-height: 540px;
  }
}
@media (max-width: 760px) {
  .product-header {
    padding: 12px 16px;
    position: relative;
  }
  .product-topline {
    margin: 0;
    align-items: center;
    gap: 12px;
  }
  .product-brand {
    font-size: 22px;
  }
  .product-brand small {
    display: none;
  }
  .nav-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    border: 1px solid #628087;
    color: #fff;
    padding: 7px 12px;
    border-radius: 4px;
    background: transparent;
    min-height: 40px;
  }
  .product-user {
    display: none;
  }
  .product-nav {
    display: none;
    margin: 0;
    padding: 14px 0 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }
  .product-nav.is-open {
    display: flex;
  }
  .product-nav > a,
  .product-nav summary {
    padding: 10px 12px;
    font-size: 14px;
  }
  .product-nav details > div {
    position: static;
    box-shadow: none;
    min-width: 0;
    width: 100%;
  }
  body > .notice {
    font-size: 10px;
    padding: 6px 12px !important;
    line-height: 1.3;
  }
  #main-content {
    padding: 18px 16px;
  }
  .brief-heading {
    align-items: start;
    gap: 12px;
    margin-bottom: 16px;
  }
  .brief-heading h1 {
    font-size: 28px;
  }
  .brief-heading .toolbar {
    margin: 0;
    gap: 6px;
    flex-direction: column;
  }
  .brief-heading .toolbar button {
    font-size: 11px;
    padding: 6px;
  }
  .brief-heading select {
    min-width: 95px;
    padding: 7px;
  }
  .brief-heading label {
    font-size: 10px;
  }
  .executive-lead {
    padding: 24px;
    display: block;
  }
  .executive-lead h2 {
    font-size: 30px;
  }
  .lead-narrative {
    font-size: 17px;
  }
  .executive-lead > div > p:not(.lead-narrative) {
    font-size: 12px;
  }
  .lead-signal {
    display: flex;
    gap: 12px;
    align-items: center;
    border-left: 0;
    border-top: 1px solid #608185;
    padding: 18px 0 0;
    margin-top: 22px;
  }
  .lead-signal > a {
    font-size: 42px;
  }
  .lead-signal > span {
    font-size: 12px;
  }
  .lead-signal p {
    font-size: 10px;
    max-width: 130px;
  }
  .review-line {
    align-items: start;
    gap: 12px;
    font-size: 11px;
  }
  .review-line .button {
    font-size: 11px;
    padding: 8px;
    min-width: 110px;
  }
  .brief-grid {
    display: block;
    margin-top: 20px;
  }
  .brief-rail {
    border-left: 0;
    padding-left: 0;
    border-top: 2px solid #547e78;
    margin-top: 28px;
  }
  .rising-actor {
    grid-template-columns: 1fr 95px auto;
    gap: 10px;
  }
  .rising-actor h3 {
    font-size: 16px;
  }
  .rising-actor > strong {
    font-size: 23px;
  }
  .delta-track > div {
    font-size: 9px;
  }
  .rising-actor p {
    font-size: 11px;
  }
  .relation-pair {
    gap: 10px;
    grid-template-columns: 1fr 80px 1fr;
    font-size: 15px;
  }
  body[data-page="red"] #main-content {
    padding: 12px 10px;
  }
  .page-heading {
    display: block;
    margin-bottom: 14px;
  }
  .page-heading h1 {
    font-size: 28px;
  }
  .page-heading p {
    font-size: 13px;
  }
  .page-heading > .button {
    margin-top: 12px;
    font-size: 12px;
  }
  body[data-page="red"] .page-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 10px;
  }
  body[data-page="red"] .page-heading h1 {
    font-size: 25px;
  }
  body[data-page="red"] .page-heading p,
  body[data-page="red"] .page-heading .eyebrow {
    display: none;
  }
  body[data-page="red"] .page-heading > .button {
    margin: 0;
    padding: 8px;
    font-size: 10px;
    max-width: 125px;
  }
  .graph-filters {
    margin: 0;
  }
  .graph-filters summary {
    font-size: 11px;
    padding: 8px;
  }
  .graph-legend {
    padding: 8px;
    gap: 4px 12px;
    font-size: 9px;
    line-height: 1.4;
  }
  .graph-label {
    font-size: 10px;
    padding: 6px 10px;
    min-height: 30px;
  }
  .graph-stage {
    min-height: 500px;
  }
  .graph-workspace {
    min-height: 500px;
  }
  .graph-actions {
    left: 10px;
    right: 10px;
    bottom: 10px;
    gap: 4px;
  }
  .graph-actions button,
  .graph-actions label,
  .graph-actions select {
    font-size: 11px;
    padding: 5px 8px;
  }
  .graph-detail {
    padding: 18px;
  }
  .graph-detail h2 {
    font-size: 22px;
  }
  body[data-page="red"] .panel-head {
    padding: 10px;
    font-size: 12px;
  }
  body[data-page="red"] .panel-head h2 {
    font-size: 16px;
  }
  #graph-status {
    font-size: 10px;
    max-width: 50%;
  }
  .actor-primary-actions {
    gap: 8px;
  }
  .actor-primary-actions > .button {
    font-size: 12px;
  }
  .actor-primary-actions form button {
    font-size: 11px;
    padding: 8px;
  }
  .actor-more summary {
    font-size: 12px;
  }
  .actor-sections {
    gap: 12px;
    font-size: 11px;
  }
  .actor-more > div {
    left: 0;
    right: auto;
    width: 240px;
  }
  .actor-primary-actions .actor-more {
    margin-left: 0;
  }
  .temporal-landscape {
    padding: 6px 14px 16px;
  }
  .temporal-landscape h2 {
    font-size: 18px;
  }
  .temporal-landscape .panel-head {
    display: block;
  }
  .temporal-landscape .panel-head > span {
    font-size: 11px;
  }
  .temporal-bars {
    min-height: 190px;
  }
  .temporal-bars > a {
    min-width: 30px;
  }
  .queue-categories {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 12px;
  }
  .queue-categories > a {
    white-space: nowrap;
    font-size: 12px;
  }
  .queue-heading h2 {
    font-size: 23px;
  }
  .curation-queue > li {
    grid-template-columns: 26px 1fr;
    gap: 10px;
    padding: 16px 0;
  }
  .curation-queue > li > .button {
    grid-column: 2;
    justify-self: start;
    font-size: 12px;
  }
  .curation-queue h3 {
    font-size: 16px;
  }
  .queue-priority {
    font-size: 16px;
  }
  .queue-heading span {
    font-size: 10px;
  }
}
.actor-position {
  font-size: 18px;
  color: #476367;
  margin: 10px 0;
}
.evidence-quote {
  border-left: 3px solid #648b84;
  padding: 12px 18px;
  margin: 20px 0;
  background: #edf3f0;
  font-size: 15px;
}
.evidence-quote cite {
  display: block;
  font-size: 11px;
  font-style: normal;
  color: #4c6869;
  margin-top: 10px;
}
@media (max-width: 760px) {
  .product-topline {
    padding: 0;
  }
  .brief-heading .toolbar {
    display: flex;
    width: 112px;
    flex-shrink: 0;
    align-items: stretch;
  }
  .brief-heading .toolbar label {
    min-width: 0;
    width: 100%;
  }
  .brief-heading .eyebrow {
    font-size: 9px;
    letter-spacing: 1px;
  }
  .brief-heading h1 {
    font-size: 27px;
    line-height: 1.15;
  }
}
.toolbar input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  height: 18px;
  padding: 0;
  flex: none;
}
.nav-account {
  display: none;
}
@media (min-width: 1101px) {
  .product-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 24px;
  }
  .product-topline {
    display: contents;
  }
  .product-brand {
    min-width: 135px;
    font-size: 23px;
  }
  .product-brand small {
    font-size: 7px;
    letter-spacing: 1px;
  }
  .product-nav {
    flex: 1;
    order: 2;
    gap: 0;
    padding: 8px 0;
  }
  .product-nav > a,
  .product-nav > details > summary {
    font-size: 12px;
    padding: 12px 9px;
  }
  .product-user {
    order: 3;
  }
  .product-user > span {
    display: none;
  }
  .product-user button {
    font-size: 12px;
  }
}
@media (max-width: 1100px) {
  .product-header {
    padding: 10px 16px;
  }
  .product-topline {
    padding: 0;
    align-items: center;
  }
  .product-brand small {
    display: none;
  }
  .product-user {
    display: none;
  }
  .nav-toggle {
    display: flex;
    margin-left: auto;
    gap: 10px;
    align-items: center;
    border: 1px solid #628087;
    color: #fff;
    padding: 7px 12px;
    border-radius: 4px;
    background: transparent;
    min-height: 40px;
  }
  .product-nav {
    display: none;
  }
  .product-nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding-top: 12px;
    gap: 2px;
  }
  .product-nav details > div {
    position: static;
    width: 100%;
    box-shadow: none;
  }
  .nav-account {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    border-top: 1px solid #628087;
    font-size: 12px;
  }
}
@media (max-width: 760px) {
  body[data-page="red"] .page-heading {
    flex-wrap: nowrap;
    justify-content: space-between;
  }
  body[data-page="red"] .page-heading > div {
    min-width: 0;
    flex: 1;
  }
  body[data-page="red"] .page-heading > .button {
    min-width: 0;
    width: 112px;
    flex: none;
  }
  body[data-page="red"] .panel > .notice {
    font-size: 11px;
    line-height: 1.5;
    padding: 10px;
    margin: 8px 0;
  }
}
@media (max-width: 760px) {
  body[data-page="red"] .page-heading {
    flex-direction: row;
  }
}

body[data-page="actores"] button[title="Quitar"],
button[title="Quitar"] {
  min-width: 32px;
  min-height: 32px;
}

body[data-page="red"] #main-content {
  padding-top: 20px;
}
body[data-page="red"] .panel > .panel-head {
  padding: 10px 20px;
}
body[data-page="red"] .panel > .notice {
  margin: 0;
  padding: 10px 20px;
  font-size: 12px;
}
body[data-page="red"] .page-heading {
  margin-bottom: 8px;
}
@media (max-width: 600px) {
  body[data-page="red"] #main-content {
    padding-top: 12px;
  }
  body[data-page="red"] .panel > .panel-head {
    padding: 8px;
  }
  body[data-page="red"] .panel > .panel-head h2 {
    font-size: 12px;
  }
  body[data-page="red"] .panel > .notice {
    padding: 8px;
    font-size: 10px;
  }
  body[data-page="red"] .graph-filters {
    margin-bottom: 8px;
  }
}

@media (min-width: 601px) {
  body[data-page="red"] .page-heading .eyebrow {
    display: none;
  }
  body[data-page="red"] .page-heading h1 {
    font-size: 28px;
    margin: 0;
  }
  body[data-page="red"] .page-heading p {
    margin: 4px 0 0;
    font-size: 14px;
  }
  body[data-page="red"] .page-heading {
    align-items: center;
  }
  .graph-stage {
    min-height: 590px;
  }
  .graph-workspace {
    min-height: 590px;
  }
}

#graph-canvas {
  bottom: 75px;
}
@media (max-width: 600px) {
  #graph-canvas {
    bottom: 110px;
  }
}

.graph-workspace[data-empty="true"] {
  min-height: 320px;
  grid-template-columns: 1fr;
}
.graph-workspace[data-empty="true"] .graph-stage {
  min-height: 320px;
}
.graph-workspace[data-empty="true"] .graph-detail {
  display: none;
}
.graph-empty {
  position: relative;
  padding: 24px;
  max-width: 600px;
}
.graph-empty h2 {
  font-size: 22px;
  font-weight: 650;
  margin-bottom: 8px;
}
.graph-empty p {
  color: var(--muted);
  margin-bottom: 16px;
}
