/* Nuevita · Red Comercial / editorial system. Presentation only.
   :nth-child(n) adds specificity because staff inserts its base sheet lazily. */
.channel-workspace:nth-child(n) {
  --ch-ink: #18352a;
  --ch-muted: #4d6258;
  --ch-line: #d2ded1;
  --ch-surface: #fffdf6;
  --ch-green: #e2f4b7;
  --ch-wash: #f3f2e9;
  border-color: #ccd9cb;
  padding: clamp(14px, 2.15vw, 28px);
  background: linear-gradient(155deg, #faf8ef 0%, var(--ch-wash) 55%, #edf2e9 100%);
  box-shadow: 0 15px 34px #18382b12, inset 0 1px #fffdf6;
  color-scheme: light;
}
.channel-workspace:nth-child(n) :is(h2,.channel-section-heading > h3,.channel-panel-heading h3,.channel-welcome > h3) {
  font-family: var(--font-display, Syne, Inter, system-ui, sans-serif);
  font-weight: 650;
}
.channel-workspace:nth-child(n) .channel-heading,
.channel-workspace:nth-child(n) .channel-heading[data-scene] {
  min-height: 147px;
  border-radius: 18px;
  border-color: #355748;
  background:
    radial-gradient(ellipse at 90% 3%, #5174598f, transparent 66%),
    linear-gradient(114deg, #112d23 13%, #1b4736 77%, #214c38);
  box-shadow: inset 0 1px #e2f4b738;
}
.channel-workspace:nth-child(n) .channel-heading::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -90% -14% -118% 49%;
  border-radius: 50%;
  border: 1px solid #ebf3c235;
  box-shadow: 0 0 0 25px #f0f5cc13, 0 0 0 54px #e8f2cc0c;
  transform: rotate(-26deg);
  pointer-events: none;
}
.channel-workspace:nth-child(n) .channel-heading h2 {
  font-size: clamp(2rem, 3.6vw, 3.14rem);
  font-weight: 650;
  color: #fffcf0;
  line-height: 1.05;
  overflow-wrap: anywhere;
}
.channel-workspace:nth-child(n) .channel-heading .channel-eyebrow {
  color: #e1f4b5;
  font-weight: 670;
}
.channel-workspace:nth-child(n) .channel-heading>div>p:last-child,
.channel-workspace:nth-child(n) .channel-heading[data-scene]>div>p:last-child {
  color: #f3f5e7;
  background: #132d23b3;
  border-color: #a8b89585;
}
.channel-workspace:nth-child(n) .channel-heading>button {
  min-height: 44px;
  min-width: 44px;
  background: #17362be6;
  color: #fffaf0;
  border-color: #97b098;
}
.channel-workspace:nth-child(n) .channel-heading>button:hover:not(:disabled) {
  background: #31583f;
  color: #fffaf0;
  border-color: #dcf0b3;
}
.channel-workspace:nth-child(n) .channel-chain {
  margin-block: 12px 23px;
  padding: 9px 13px;
  border: 1px solid #d4decf;
  border-radius: 11px;
  background: #fffdf080;
  color: #415c4e;
  font-size: 12px;
}
.channel-workspace:nth-child(n) .channel-chain li+li::before {color: #5b735d}
.channel-workspace:nth-child(n) .channel-nav {
  padding: 7px;
  border: 1px solid #d3dfd0;
  background: #fffdf0b8;
  border-radius: 14px;
  gap: 4px;
}
.channel-workspace:nth-child(n) .channel-nav button {
  border-radius: 8px;
  color: #3c5548;
  font-weight: 620;
}
.channel-workspace:nth-child(n) .channel-nav button:hover:not(:disabled):not([aria-current]) {
  background: #eaf0e2;
  border-color: #cbdbc8;
}
.channel-workspace:nth-child(n) .channel-nav button[aria-current=page],
.channel-workspace:nth-child(n) .channel-nav button[aria-current=page]:is(:hover,:focus-visible) {
  background: #24513d;
  color: #fffcf0;
  border-color: #234a38;
  box-shadow: inset 3px 0 #deefab;
}
.channel-workspace:nth-child(n) .channel-mobile-nav {
  color: #3a5547;
  font-size: 13px;
  margin-bottom: 17px;
}
.channel-workspace:nth-child(n) .channel-mobile-nav select {
  color: #fffef1;
  background: #24513d;
  border-color: #183f30;
}
.channel-workspace:nth-child(n) .channel-mobile-nav option {background: #fffdf6;color: #18352a}
.channel-workspace:nth-child(n) .channel-section-heading {
  padding-block: 5px 11px;
  border-bottom: 1px solid #c9d9c8;
}
.channel-workspace:nth-child(n) .channel-section-heading > h3 {
  color: #173d2e;
  font-size: clamp(1.45rem, 2.1vw, 2rem);
  letter-spacing: -.03em;
}
.channel-workspace:nth-child(n) :is(.channel-panel,.channel-progress-panel,.channel-directory-insights,.channel-metric,.channel-card,.channel-modal,.channel-profile-preview) {
  border-color: #d0ddce;
  background: #fffdf6;
  box-shadow: 0 2px 4px #17382c0a, 0 10px 26px #17382c06;
}
.channel-workspace:nth-child(n) :is(.channel-progress-panel,.channel-directory-insights) {
  background: linear-gradient(135deg, #fffef7 45%, #f0f5e9 100%);
}
.channel-workspace:nth-child(n) .channel-panel-heading h3 {font-size: clamp(1rem, 1.5vw, 1.35rem)}
.channel-workspace:nth-child(n) :is(.channel-panel-heading > p,.channel-panel-heading small,.channel-composition-legend>li,.channel-country-list>li,.channel-coverage>p,.channel-insight-total>p,.channel-facts dt,.channel-metric span,.channel-note,.channel-stage-row) {
  color: #435c50;
  font-size: .78rem;
  line-height: 1.55;
}
.channel-workspace:nth-child(n) :is(.channel-directory-insights h4,.channel-directory-meta h4) {color: #244638;font-size: .86rem}
.channel-workspace:nth-child(n) .channel-directory-filters {padding: 13px 15px;background: #e9efe3;border-color: #d0dfce}
.channel-workspace:nth-child(n) .channel-directory-filters :is(input,select) {background: #fffef9;border-color: #899e8d}
.channel-workspace:nth-child(n) .channel-directory-filters label {color: #375548;font-size: .8rem}
.channel-workspace:nth-child(n) .channel-composition-track {height: 12px;background: #dbe6da}
.channel-workspace:nth-child(n) .channel-stage-track {height: 9px;background: #dce7d8}
.channel-workspace:nth-child(n) .channel-metric {padding: 15px 17px;gap: 8px;border-top: 3px solid #92af85}
.channel-workspace:nth-child(n) .channel-metric strong {color: #194933;line-height: 1.08;overflow-wrap:anywhere}
.channel-workspace:nth-child(n) .channel-welcome {
  background: linear-gradient(135deg,#e9f0df,#f5f4e7);
  border-color: #c9dbc5;
}
.channel-workspace:nth-child(n) .channel-welcome > h3 {color: #214633;font-size: 1.05rem}
.channel-workspace:nth-child(n) .channel-workflow > li {
  padding: 12px;
  background: #fffef6bd;
  color: #385846;
  font-size: .77rem;
}
.channel-workspace:nth-child(n) .channel-partner-card .channel-person h3 {color: #1b4030;font-size: .98rem}
.channel-workspace:nth-child(n) .channel-partner-card .channel-actions button {
  min-height: 44px;
  background: #f2f5e9;
  border-color: #b3c6af;
}
.channel-workspace:nth-child(n) .channel-partner-card .channel-actions button:hover:not(:disabled) {background: #e4efde}
.channel-workspace:nth-child(n) .channel-primary {
  color: #1b431f;
  background: #e6f4bf;
  border-color: #9db479;
}
.channel-workspace:nth-child(n) .channel-primary:hover:not(:disabled) {background: #d4ed9c;border-color: #79965c}
.channel-workspace:nth-child(n) .channel-modal .channel-close {min-width:44px;min-height:44px;width:44px}
.channel-workspace:nth-child(n) :is(button,input,select,textarea,a):focus-visible {outline-color: #496b37}
.channel-workspace:nth-child(n) :is(.channel-heading button,.channel-mobile-nav select):focus-visible {outline-color: #728640;outline-offset: 3px}
.channel-workspace:nth-child(n) .channel-heading button:focus-visible {outline-color: #e0f3b4}
@media (min-width: 1200px) {
  .channel-workspace:nth-child(n) .channel-shell {grid-template-columns: minmax(168px, 190px) minmax(0,1fr);column-gap: 21px}
  .channel-workspace:nth-child(n) .channel-content {gap: 17px}
  .channel-workspace:nth-child(n) .channel-metrics {display:flex;flex-wrap:wrap}
  .channel-workspace:nth-child(n) .channel-metric {flex:1 1 17%;min-width:140px}
}
@media (max-width: 600px) {
  .channel-workspace:nth-child(n) {padding: 12px}
  .channel-workspace:nth-child(n) .channel-heading,
.channel-workspace:nth-child(n) .channel-heading[data-scene] {min-height: 0; padding: 18px 15px; gap: 12px}
  .channel-workspace:nth-child(n) .channel-heading>div {gap: 8px}
  .channel-workspace:nth-child(n) .channel-heading h2 {font-size: clamp(1.75rem, 8vw, 2.13rem)}
  .channel-workspace:nth-child(n) .channel-heading .channel-eyebrow {font-size: .69rem}
  .channel-workspace:nth-child(n) .channel-chain {padding: 7px 10px;gap:4px 9px;margin: 10px 0 16px;font-size: .7rem}
  .channel-workspace:nth-child(n) .channel-chain li {gap: 8px}
  .channel-workspace:nth-child(n) .channel-section-heading {padding-top: 1px}
  .channel-workspace:nth-child(n) .channel-directory-insights {grid-template-columns: minmax(68px, .85fr) minmax(0, 2fr);gap: 15px 11px;padding: 13px}
  .channel-workspace:nth-child(n) .channel-composition {padding-left: 10px}
  .channel-workspace:nth-child(n) .channel-directory-filters {padding: 13px;gap: 10px}
  .channel-workspace:nth-child(n) .channel-directory-filters label {font-size:.75rem}
  .channel-workspace:nth-child(n) .channel-stage-row {grid-template-columns: minmax(72px,1fr) minmax(32px,.85fr) 28px;gap: 9px}
  .channel-workspace:nth-child(n) .channel-metric {padding: 12px}
  .channel-workspace:nth-child(n) .channel-metric:last-child:nth-child(odd) {grid-column:1/-1}
}
@media (forced-colors: active) {
  .channel-workspace:nth-child(n),
  .channel-workspace:nth-child(n) :is(.channel-heading[data-scene],.channel-heading,.channel-chain,.channel-nav,.channel-panel,.channel-progress-panel,.channel-directory-insights,.channel-metric,.channel-card,.channel-modal,.channel-profile-preview,.channel-directory-filters,.channel-welcome,.channel-workflow>li) {
    background: Canvas;
    color: CanvasText;
    border-color: CanvasText;
    box-shadow: none;
  }
  .channel-workspace:nth-child(n) .channel-heading::after {display: none}
  .channel-workspace:nth-child(n) .channel-heading :is(h2,p) {color: CanvasText;background: Canvas}
  .channel-workspace:nth-child(n) :is(button,input,select,textarea,a):focus-visible {outline-color: Highlight}
  .channel-workspace:nth-child(n) .channel-nav button[aria-current=page] {outline: 2px solid Highlight;outline-offset: -3px}
}

/* Portal consolidation, opt-in only. Keep the current navigation at the top
   of each view; size records rather than clipping records or form controls. */
#channel-workspace .nv-portal-channel > .nv-portal-shell {
  display: grid;
  grid-template-columns: minmax(150px, 190px) minmax(0, 1fr);
  grid-template-rows: auto;
  align-items: start;
  gap: 12px;
  padding: 10px;
  min-block-size: 0;
}
#channel-workspace .nv-portal-channel .nv-portal-navigation {
  grid-area: auto;
  grid-column: 1;
  grid-row: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: auto;
  align-self: start;
  gap: 3px;
  padding: 5px;
}
#channel-workspace .nv-portal-channel .nv-portal-navigation button {
  min-block-size: 44px;
  padding: 7px 9px;
  font-size: .81rem;
  line-height: 1.3;
  white-space: normal;
}
#channel-workspace .nv-portal-channel .nv-portal-body {
  grid-column: 2;
  grid-row: 1;
  min-inline-size: 0;
  display: grid;
  gap: 8px;
  align-content: start;
}
#channel-workspace .nv-portal-channel .nv-live-dashboard {
  grid-template-columns: minmax(0, 1.65fr) minmax(210px, 1fr);
  grid-template-areas: "metrics metrics" "map insights" "path path";
  gap: 8px;
}
#channel-workspace .nv-portal-channel .nv-live-map .rc-live-map-art {
  inline-size: 100%;
  max-inline-size: min(100%, calc(clamp(120px, calc(var(--nv-portal-height, 600px) - 240px), 360px) * 340 / 244));
  block-size: auto;
  aspect-ratio: 340 / 244;
}
#channel-workspace .nv-portal-channel .nv-portal-body > .channel-content {
  padding: 12px;
  gap: 10px;
  border: 1px solid #d0ddce;
  border-radius: 12px;
  background: #fffdf6;
  color: #18352a;
}
#channel-workspace .nv-portal-channel .channel-section-heading {padding: 0 0 8px;gap: 8px}
#channel-workspace .nv-portal-channel .channel-section-heading > h3 {font-size: clamp(1.15rem, 2vw, 1.5rem)}
#channel-workspace .nv-portal-channel .channel-directory-filters {padding: 10px;gap: 8px}
#channel-workspace .nv-portal-channel .channel-directory-meta {gap: 6px}
#channel-workspace .nv-portal-channel .channel-card {padding: 13px;gap: 10px}
#channel-workspace .nv-portal-channel .channel-relationship {padding-block: 9px}
#channel-workspace .nv-portal-channel .nv-portal-summary {font-size: .8rem}
#channel-workspace .nv-portal-channel .nv-portal-summary > summary {cursor: pointer;min-block-size: 30px;padding: 5px 0}
#channel-workspace .nv-portal-channel .nv-portal-summary[open] > .channel-directory-insights {margin-block: 6px}
#channel-workspace .nv-portal-channel .nv-portal-page {display: grid;gap: 10px;min-inline-size: 0;align-content: start}
#channel-workspace .nv-portal-channel .nv-portal-page .channel-card-list {grid-template-columns: repeat(var(--nv-page-columns, 1), minmax(0, 1fr));gap: 10px}
#channel-workspace .nv-portal-channel .nv-portal-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  position: sticky;
  inset-block-end: 0;
  z-index: 2;
  background: #fffdf6;
  border-block-start: 1px solid #d0ddce;
  padding-block-start: 8px;
}
#channel-workspace .nv-portal-channel .nv-portal-pagination > span {font-size: .76rem;color: #435c50}
#channel-workspace .nv-portal-channel .nv-portal-pagination button {min-block-size: 44px;padding: 7px 12px}
#channel-workspace .nv-portal-channel :is(.crm-sales, .marketing-leads) {padding: 0;margin: 0;border: 0;background: transparent;box-shadow: none;min-inline-size: 0}
#channel-workspace .nv-portal-channel :is(.crm-sales-heading, .marketing-toolbar) {margin: 0 0 8px;padding: 0;min-block-size: 44px;justify-content: flex-end}
#channel-workspace .nv-portal-channel :is(.crm-sales-list, .marketing-list) {display: grid;grid-template-columns: minmax(0, 1fr);gap: 10px;margin: 0;padding: 0;list-style: none}
#channel-workspace .nv-portal-channel :is(.crm-sales-card, .marketing-list > li) {padding: 13px;margin: 0}
#channel-workspace .nv-portal-channel .crm-sales-intro {font-size: .82rem;margin-block: 6px}
#channel-workspace .nv-portal-channel .crm-sales-filters {margin-block: 8px}
#channel-workspace .nv-portal-channel details.crm-sales-quote > summary {cursor: pointer;min-block-size: 44px;gap: 9px}
#channel-workspace .nv-portal-channel details.crm-sales-quote > summary::after {content: "Ver detalle";font-size: .76rem;font-weight: 500}
#channel-workspace .nv-portal-channel details.crm-sales-quote[open] > summary::after {content: "Cerrar detalle"}
#channel-workspace .nv-portal-channel .nv-portal-quote-kind {max-inline-size: 20rem}
#channel-workspace .nv-portal-channel .nv-portal-received {display: grid;gap: 10px;min-inline-size: 0}
#channel-workspace .nv-portal-channel .nv-portal-received > button {justify-self: start}
#channel-workspace .nv-portal-channel .nv-portal-received-list {display: grid;grid-template-columns: repeat(var(--nv-received-columns, 1), minmax(0, 1fr));gap: 10px}
#channel-workspace .nv-portal-channel .nv-portal-received-list > .card {display: grid;gap: 7px;padding: 12px;margin: 0;border: 1px solid #d0ddce;border-radius: 12px;background: #fffdf6}
#channel-workspace .nv-portal-channel .nv-portal-received p:empty {display: none}
#channel-workspace .nv-portal-channel .nv-portal-quote-dialog {
  inline-size: min(700px, calc(100vw - 32px));
  max-block-size: calc(100dvh - 32px);
  margin: auto;
  padding: 16px;
  border: 1px solid #9eb69d;
  border-radius: 16px;
  background: #fffdf6;
  color: #18352a;
  overflow: auto;
  overscroll-behavior: contain;
}
#channel-workspace .nv-portal-channel .nv-portal-quote-dialog::backdrop {background: #0c211ac4}
#channel-workspace .nv-portal-channel .nv-portal-quote-dialog > div {display: grid;gap: 10px}
#channel-workspace .nv-portal-channel .nv-portal-quote-dialog form {display: grid;gap: 10px}
#channel-workspace .nv-portal-channel .nv-portal-quote-dialog fieldset {padding: 12px;min-inline-size: 0;border: 1px solid #cbd9c9;border-radius: 12px}
#channel-workspace .nv-portal-channel .nv-portal-quote-dialog .fields {display: grid;grid-template-columns: repeat(2, minmax(0, 1fr));gap: 10px}
#channel-workspace .nv-portal-channel .nv-portal-quote-dialog .wide {grid-column: 1 / -1}
#channel-workspace .nv-portal-channel .nv-portal-quote-close {position: sticky;inset-block-start: 0;z-index: 2;display: block;margin-inline-start: auto;background: #fffdf6}
#channel-workspace .nv-portal-channel .nv-portal-quote-actions {position: sticky;inset-block-end: -16px;display: flex;gap: 8px;flex-wrap: wrap;background: #fffdf6;border-block-start: 1px solid #cbd9c9;padding: 10px 0;z-index: 2}
#channel-workspace .nv-portal-channel .nv-portal-sr {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  padding: 0;
  margin: -1px;
  clip-path: inset(50%);
  white-space: nowrap;
  overflow: hidden;
}
@media (max-width: 850px) {
  #channel-workspace .nv-portal-channel > .nv-portal-shell {grid-template-columns: minmax(0, 1fr);gap: 8px}
  #channel-workspace .nv-portal-channel .nv-portal-navigation {grid-column: 1;grid-row: 1;display: flex;overflow-x: auto;overscroll-behavior-inline: contain}
  #channel-workspace .nv-portal-channel .nv-portal-navigation button {flex: 0 0 auto;inline-size: auto;max-inline-size: 13rem}
  #channel-workspace .nv-portal-channel .nv-portal-body {grid-column: 1;grid-row: 2}
}
@media (max-width: 660px) {
  #channel-workspace .nv-portal-channel .nv-live-dashboard {grid-template-columns: minmax(0, 1fr);grid-template-areas: "metrics" "map" "path" "insights"}
  #channel-workspace .nv-portal-channel .nv-portal-pagination > span {order: 3;flex-basis: 100%;text-align: center}
  #channel-workspace .nv-portal-channel .nv-portal-body > .channel-content {padding: 10px}
  #channel-workspace .nv-portal-channel .nv-portal-quote-dialog .fields {grid-template-columns: minmax(0, 1fr)}
}
@media (forced-colors: active) {
  #channel-workspace .nv-portal-channel :is(.nv-portal-shell, .nv-portal-navigation, .nv-portal-body > .channel-content, .nv-portal-pagination) {background: Canvas;color: CanvasText;border-color: CanvasText}
}
