/* Shared shell integration; legacy functionality keeps its original form owner. */
body.unified-cockpit .cockpit{display:block;min-height:100vh}
body.unified-cockpit .cockpit-workspace>main{width:100%!important;max-width:none!important;margin:0;padding:0 0 30px}
body.unified-cockpit .cockpit-sidebar{height:100dvh;min-height:0;align-items:stretch;overflow:hidden}
body.unified-cockpit .cockpit-spine{display:flex;flex-direction:column;height:100%;min-height:0;width:100%}
body.unified-cockpit .cockpit-utilities{display:flex;padding:18px 0;gap:4px}
body.unified-cockpit .cockpit-utilities>.cockpit-nav-link{flex:1}
body.unified-cockpit .cockpit-search-trigger{width:48px;min-width:48px;justify-content:center;padding:0}
body.unified-cockpit .cockpit-search-trigger>span{display:none}
body.unified-cockpit .cockpit-tools{overflow:auto;max-height:45vh;flex:none}
body.unified-cockpit .cockpit-sidebar-foot{flex:none}
body.unified-cockpit .cockpit-sidebar-foot>span:nth-child(2){min-width:0;flex:1;overflow-wrap:anywhere}
body.unified-cockpit .cockpit-help,body.unified-cockpit .cockpit-logout{min-width:36px;width:36px;min-height:48px;padding:0;justify-content:center}
body.unified-cockpit .cockpit-section-link>span:last-child{min-width:0;flex:1}
body.unified-cockpit .cockpit-section-link small{display:block;font-size:9px;color:var(--cockpit-night-muted)}
body.unified-cockpit .cockpit-section-link .campo-dot{float:right;margin-top:-14px}
body.unified-cockpit .cockpit-menu[open]{display:flex;flex-direction:column}
body.unified-cockpit .cockpit-menu-head{flex:none}
body.unified-cockpit .cockpit-menu #cockpit-menu-slot{background:var(--cockpit-night);color:var(--cockpit-night-text);padding:18px;flex:1 1 auto;min-height:0;overflow:auto}
body.unified-cockpit .cockpit-menu .cockpit-spine{height:auto;min-height:0}
body.unified-cockpit .cockpit-menu .cockpit-section-list{flex:none;max-height:none;overflow:visible}
body.unified-cockpit .cockpit-menu .cockpit-brand{display:none}
body.unified-cockpit .cockpit-menu-head strong{font:600 24px var(--cockpit-serif);color:var(--cockpit-wine)}
body.unified-cockpit .cockpit-page-head .campo-dot{margin-right:5px}
body.unified-cockpit .campo-current h1{position:static;width:auto;height:auto;overflow:visible;clip:auto;white-space:normal}
body.unified-cockpit .campo-current{padding:0 0 24px;margin:0;scroll-margin-top:24px}
body.unified-cockpit .campo-current h1>[data-campo-active-id]{color:var(--cockpit-muted);font-size:.5em}
body.unified-cockpit .campo-current [data-campo-active-state]{font-size:11px;margin-top:12px;color:var(--cockpit-muted)}
body.unified-cockpit .cockpit-capture-surface{display:grid;grid-template-columns:minmax(0,1fr) 270px;border:1px solid var(--cockpit-line);border-radius:16px;background:var(--cockpit-surface);overflow:clip}
body.unified-cockpit .cockpit-mode-form{min-width:0}
body.unified-cockpit .cockpit-mode-form #main-project-form{border:0;margin:0;padding:26px;box-shadow:none;background:transparent;border-radius:0}
body.unified-cockpit .cockpit-mode-form #main-project-form>h2[data-campo-visible="segment"]{font:600 23px var(--cockpit-serif);margin:0 0 25px;padding:0 0 18px;border-bottom:1px solid var(--cockpit-line);color:var(--cockpit-wine)}
body.unified-cockpit .cockpit-mode-form .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 24px}
body.unified-cockpit .cockpit-evidence-panel{padding:25px 22px;border-left:1px solid var(--cockpit-line);background:var(--cockpit-paper-soft);min-width:0}
body.unified-cockpit .cockpit-evidence-panel h2{font:600 24px/1.2 var(--cockpit-serif);color:var(--cockpit-wine);margin:11px 0 20px}
body.unified-cockpit .cockpit-evidence-panel .cockpit-kicker{font-size:9px;letter-spacing:1px;color:var(--cockpit-muted)}
body.unified-cockpit .campo-photos{padding:25px 15px;border:1px dashed var(--cockpit-line-strong);border-radius:10px;background:var(--cockpit-surface);font-size:12px;margin-bottom:18px}
body.unified-cockpit .campo-photos ul{padding:0;margin:0;list-style:none}
body.unified-cockpit .campo-photos a{overflow-wrap:anywhere}
body.unified-cockpit .campo-photos-empty{margin:0;color:var(--cockpit-muted);text-align:center}
body.unified-cockpit .campo-photos ul:empty{display:none}
body.unified-cockpit .cockpit-evidence-tip{font-size:11px;line-height:1.7;color:var(--cockpit-muted);border-top:1px solid var(--cockpit-line);margin-top:20px;padding-top:16px}
body.unified-cockpit .campo-bar,body.unified-cockpit .sticky-actions{position:fixed;left:var(--cockpit-rail);right:0;bottom:0;z-index:55;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:17px 46px;min-height:92px;max-width:none;transform:none;background:var(--cockpit-surface);border:0;border-top:1px solid var(--cockpit-line);border-radius:0;box-shadow:none}
body.unified-cockpit .campo-msg{font-size:12px;margin:0;color:var(--cockpit-muted)}
body.unified-cockpit .campo-msg[data-tone="warn"]{color:var(--cockpit-amber)}
body.unified-cockpit .campo-msg[data-tone="ok"]{color:var(--cockpit-green)}
body.unified-cockpit .campo-actions{display:flex;gap:10px;margin:0}
body.unified-cockpit .campo-btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 20px;border:1px solid var(--cockpit-line-strong);border-radius:8px;font:600 12px var(--cockpit-sans);background:var(--cockpit-surface);color:var(--cockpit-wine)}
body.unified-cockpit .campo-primary{background:var(--cockpit-gold);border-color:var(--cockpit-gold);color:var(--cockpit-gold-ink);min-width:170px}
body.unified-cockpit .campo-photo-btn{width:100%}
body.unified-cockpit .m-app.cockpit-workspace{width:auto;max-width:none}
body.unified-cockpit.m-body{padding:0}
body.unified-cockpit .cockpit-form-section{margin:0 0 22px;padding:24px 26px;background:var(--cockpit-surface);border:1px solid var(--cockpit-line);border-radius:13px}
body.unified-cockpit .cockpit-form-section>h2{font:600 26px var(--cockpit-serif);margin:0 -26px 24px;padding:0 26px 20px;border-bottom:1px solid var(--cockpit-line);color:var(--cockpit-wine)}
body.unified-cockpit:not(.modo-campo):not(.modo-escritorio) #main-project-form{padding:0;border:0;background:none;box-shadow:none}
body.unified-cockpit .cockpit-capture-surface select{font-weight:600}
body.unified-cockpit .cockpit-dock-state{font-size:9px;line-height:1.5;color:var(--cockpit-night-muted);min-width:0}
body.unified-cockpit .cockpit-mobile-dock [hidden]{display:none}
body.unified-cockpit .hero.compact{background:transparent;color:var(--cockpit-ink);border:0;padding:0;margin:0 0 28px;box-shadow:none}
body.unified-cockpit .hero.compact h1{font:600 44px/1.1 var(--cockpit-serif);color:var(--cockpit-wine);margin:10px 0 14px;letter-spacing:-1px}
body.unified-cockpit .hero.compact .eyebrow{color:var(--cockpit-wine);font-size:10px;letter-spacing:1.5px}
body.unified-cockpit .hero.compact .hero-actions{margin-top:14px;max-width:none;justify-content:flex-start}
body.unified-cockpit .readiness-graph{background:var(--cockpit-surface);border:1px solid var(--cockpit-line);box-shadow:none;border-radius:12px;margin-bottom:22px}
body.unified-cockpit .readiness-heading h2{font:600 21px var(--cockpit-serif);color:var(--cockpit-wine)}
body.unified-cockpit .readiness-next{background:var(--cockpit-gold-soft);border-color:var(--cockpit-line-strong)}
body.unified-cockpit :where(.m-sticky-save,.ow-dock,.statusbar){bottom:0}
body.unified-cockpit .table-scroll{max-width:100%;overflow:auto}
body.unified-cockpit :where(.grid,.subpanel,.section-note,.form-panel){min-width:0}
@media(max-width:960px){
body.unified-cockpit .cockpit-workspace{margin-left:0;padding:24px 18px 130px}
body.unified-cockpit .cockpit-sidebar{display:none}
body.unified-cockpit .cockpit-capture-surface{display:flex;flex-direction:column}
body.unified-cockpit .cockpit-evidence-panel{order:0;border-left:0;border-bottom:1px solid var(--cockpit-line);padding:15px 16px;display:grid;grid-template-columns:1fr 48px;gap:8px 12px;align-items:center}
body.unified-cockpit .cockpit-evidence-panel h2{font:600 12px var(--cockpit-sans);margin:0;grid-column:1}
body.unified-cockpit .cockpit-evidence-panel .cockpit-kicker,body.unified-cockpit .cockpit-evidence-tip{display:none}
body.unified-cockpit .campo-photos{grid-column:1;grid-row:2;border:0;background:none;padding:0;margin:0;font-size:10px}
body.unified-cockpit .campo-photos-empty{text-align:left}
body.unified-cockpit .cockpit-evidence-panel .campo-photo-btn{grid-row:1/3;grid-column:2;font-size:0;min-width:48px;width:48px;padding:0}
body.unified-cockpit .cockpit-evidence-panel .campo-photo-btn:before{content:'+';font:400 25px var(--cockpit-sans)}
body.unified-cockpit .cockpit-mode-form{order:1}
body.unified-cockpit .cockpit-mode-form #main-project-form{padding:22px 16px}
body.unified-cockpit .cockpit-mode-form .grid{grid-template-columns:1fr;gap:17px}
body.unified-cockpit .campo-bar,body.unified-cockpit #sticky-actions{display:none}
body.unified-cockpit .cockpit-mobile-dock{display:flex;min-height:87px;padding:10px 14px calc(10px + env(safe-area-inset-bottom))}
body.unified-cockpit .cockpit-mobile-primary{flex:1}
body.unified-cockpit .cockpit-mobile-dock .cockpit-dock-state:empty{display:none}
body.unified-cockpit .cockpit-mobile-action{flex:none;min-width:52px}
body.unified-cockpit.modo-campo .cockpit-mobile-dock{gap:4px;padding-left:8px;padding-right:8px}
body.unified-cockpit.modo-campo .cockpit-mobile-action{min-width:48px;font-size:9px}
body.unified-cockpit.modo-campo .cockpit-dock-index{min-width:56px}
body.unified-cockpit.modo-campo [data-cockpit-position]{font-size:13px;white-space:nowrap}
body.unified-cockpit.modo-campo .cockpit-dock-previous .cockpit-icon{transform:rotate(180deg)}
body.unified-cockpit.modo-campo .cockpit-mobile-action:disabled{opacity:.4;cursor:default}
body.unified-cockpit.modo-campo .cockpit-mobile-primary{min-width:72px;justify-content:center;gap:6px;padding-left:10px;padding-right:10px}
body.unified-cockpit .cockpit-menu-views{margin-left:auto;min-height:48px;min-width:48px;padding:0 10px;border:1px solid var(--cockpit-line);border-radius:8px;background:var(--cockpit-paper);color:var(--cockpit-wine);font:600 12px var(--cockpit-sans)}
body.unified-cockpit .cockpit-form-section{padding:21px 16px;border-radius:12px}
body.unified-cockpit .cockpit-form-section>h2{font-size:24px;margin:0 -16px 21px;padding:0 16px 17px}
body.unified-cockpit .hero.compact h1{font-size:35px}

body.unified-cockpit :where(.m-sticky-save,.ow-dock,.statusbar){bottom:var(--cockpit-dock)}
body.unified-cockpit :where(.m-sticky-save,.ow-dock,.statusbar)~*{scroll-margin-bottom:180px}
}
@media(max-width:360px){body.unified-cockpit.modo-campo .cockpit-mobile-primary>.cockpit-icon{display:none}}

body.unified-cockpit .cockpit-sidebar-foot>form{flex:none;width:auto;margin:0;padding:0;border:0;box-shadow:none;background:transparent}

body.unified-cockpit .cockpit-boolean-field{min-width:0}
body.unified-cockpit .cockpit-boolean-field>label{display:block;margin-bottom:9px}
body.unified-cockpit .cockpit-boolean{display:flex;gap:0;max-width:240px;border:1px solid var(--cockpit-line-strong);border-radius:8px;background:var(--cockpit-surface);overflow:hidden}
body.unified-cockpit .cockpit-boolean>button{flex:1;min-height:48px;padding:10px 20px;border:0;border-radius:0;box-shadow:none;background:transparent;color:var(--cockpit-muted);font:600 12px var(--cockpit-sans)}
body.unified-cockpit .cockpit-boolean>button+button{border-left:1px solid var(--cockpit-line)}
body.unified-cockpit .cockpit-boolean>[aria-checked="true"]{background:var(--cockpit-gold-soft);color:var(--cockpit-wine)}
body.unified-cockpit .cockpit-boolean>[aria-checked="true"]:before{content:'✓';margin-right:8px}
body.unified-cockpit .cockpit-boolean>button:disabled{opacity:.65;cursor:default}

body.unified-cockpit .cockpit-sidebar-foot{gap:6px;padding-left:0;padding-right:0}
body.unified-cockpit .cockpit-sidebar-foot>span:nth-child(2){overflow-wrap:normal}
body.unified-cockpit .campo-current h1{max-width:none;font-size:42px}
body.unified-cockpit.modo-campo .cockpit-mode-form #main-project-form>h2[data-campo-visible="segment"]{height:1px;overflow:hidden;opacity:0;margin:0;padding:0;border:0;font-size:1px;line-height:1px}
body.unified-cockpit .hero.compact .back{display:none}
body.unified-cockpit .hero.compact h1{max-width:100%;font-size:40px}
body.unified-cockpit :where(.stepper,#spine){display:none}
body.unified-cockpit .cockpit-document-actions{display:flex;flex-direction:column;align-items:stretch;gap:5px;padding:15px 8px;border-top:1px solid var(--cockpit-night-rule);margin:10px 0}
body.unified-cockpit .cockpit-document-actions :where(a,button,summary){color:var(--cockpit-night-text);text-align:left;font:500 11px/1.5 var(--cockpit-sans);min-height:48px;border:0;background:none;box-shadow:none;white-space:normal}
body.unified-cockpit .cockpit-document-actions .cloud-presence-badge{margin:8px 0}
body.unified-cockpit .cockpit-document-actions .view-mode-toggle{max-width:100%;flex-wrap:wrap;background:var(--cockpit-night-active);border:0}
body.unified-cockpit .cockpit-project-tools{margin:0 0 22px;padding:0;border:1px solid var(--cockpit-line);border-radius:10px;background:var(--cockpit-surface)}
body.unified-cockpit .cockpit-project-tools>summary{padding:16px 20px;min-height:52px;color:var(--cockpit-wine);font:600 12px var(--cockpit-sans);cursor:pointer}
body.unified-cockpit .cockpit-project-tools[open]{padding-bottom:15px}
body.unified-cockpit .cockpit-project-tools>section,body.unified-cockpit .cockpit-project-tools>.campo-desk-tools{margin:12px 16px;box-shadow:none}
body.unified-cockpit .readiness-graph{padding:20px 24px}
body.unified-cockpit .readiness-heading{margin:0 0 12px}
body.unified-cockpit .readiness-heading h2{font:600 20px var(--cockpit-serif)}
body.unified-cockpit .readiness-scope{font-size:11px}
body.unified-cockpit .readiness-counts{margin:0 0 10px}
body.unified-cockpit .readiness-counts>span{font-size:10px}
body.unified-cockpit .readiness-list>summary{min-height:48px;padding:12px 0;font-size:12px}
@media(max-width:960px){body.unified-cockpit .campo-current h1{font-size:34px;max-width:none}body.unified-cockpit .hero.compact h1{font-size:34px}body.unified-cockpit .readiness-graph{padding:17px 16px}body.unified-cockpit .cockpit-project-tools>summary{font-size:11px;padding:14px 16px}}
body.unified-cockpit .cockpit-tools .flight-deck-workbench-bar{display:block;position:static;max-width:100%;width:auto;margin:12px 0;padding:12px 8px;border:0;border-top:1px solid var(--cockpit-night-rule);background:transparent;box-shadow:none;color:var(--cockpit-night-text)}
body.unified-cockpit .cockpit-tools .workbench-bar-actions{display:flex;flex-direction:column;align-items:stretch;gap:6px}
body.unified-cockpit .cockpit-tools .btn-workbench-toggle{min-height:48px;white-space:normal;text-align:left;color:var(--cockpit-night-text);background:var(--cockpit-night-active);border-color:var(--cockpit-night-rule)}
body.unified-cockpit .flight-deck-reopen-pill{display:none!important}
body.unified-cockpit .sticky-actions>.primary{background:var(--cockpit-gold);color:var(--cockpit-gold-ink);border-color:var(--cockpit-gold);border-radius:8px;box-shadow:none;min-height:48px;min-width:170px}
body.unified-cockpit :where(button,[role="button"],.button){min-height:48px;min-width:48px}
@media(max-width:960px){body.unified-cockpit .cockpit-menu :where(.cockpit-help,.cockpit-logout){width:48px;min-width:48px;min-height:48px}}

@media(max-width:960px){
body.unified-cockpit .cockpit-mobile-dock .cockpit-dock-state:not(:empty){display:block;position:absolute;bottom:100%;left:0;right:0;padding:9px 18px;background:var(--cockpit-surface);color:var(--cockpit-muted);border-top:1px solid var(--cockpit-line);font:500 11px/1.5 var(--cockpit-sans)}
body.unified-cockpit .cockpit-mobile-dock .cockpit-dock-state:is([data-state="error"],[data-state="conflict"],[data-state="validation"]){color:var(--cockpit-danger)}
}

/* Keep map controls, especially Close, reachable beside long titles on phones. */
@media (max-width: 760px) {
  body.unified-cockpit .gis-lightbox-content {
    width: calc(100vw - 24px) !important;
    max-height: calc(100dvh - 24px);
    overflow: auto;
  }
  body.unified-cockpit .gis-lightbox-header {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
  }
  body.unified-cockpit .gis-lightbox-header > div:first-child { padding-right: 52px; }
  body.unified-cockpit .gis-lightbox-header > div:last-child { flex-wrap: wrap; }
  body.unified-cockpit .gis-lightbox-close {
    position: absolute;
    top: 12px;
    right: 12px;
    margin: 0 !important;
    min-width: 48px;
    min-height: 48px;
  }
  body.unified-cockpit .gis-lightbox-body { padding: 12px !important; max-height: 60dvh !important; }
  body.unified-cockpit .gis-lightbox-footer { flex-wrap: wrap; gap: 12px; padding: 16px; }
  body.unified-cockpit .gis-lightbox-footer > div { flex-wrap: wrap; }
  body.unified-cockpit #gis-sheet-counter { min-width: 48px; }
  body.unified-cockpit #gis-lightbox-download { width: 100%; text-align: center; justify-content: center; }
}

/* Phone target sizes survive more specific legacy page/button selectors. */
@media (max-width: 960px) {
  body.unified-cockpit :is(button, [role="button"], input[type="submit"], input[type="button"], input[type="reset"], .button, .btn, .m-btn, .ow-button) {
    min-width: 48px !important;
    min-height: 48px !important;
  }
}

/* --- Sovereign Field Companion V2 · Mobile Campo -------------------------- */
body.unified-cockpit .campo-topbar,
body.unified-cockpit .campo-ropc-chip,
body.unified-cockpit .campo-gps-head,
body.unified-cockpit .cockpit-menu-modes,
body.unified-cockpit .cockpit-menu-cartera {
  display: none;
}

body.unified-cockpit .campo-kicker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body.unified-cockpit .campo-step-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--cockpit-paper-soft);
  border: 1px solid var(--cockpit-line-strong);
  color: var(--cockpit-wine);
  font: 700 11px/1.2 var(--cockpit-sans);
  font-variant-numeric: tabular-nums;
}

body.unified-cockpit .campo-progress-track {
  display: grid;
  grid-template-columns: repeat(15, minmax(0, 1fr));
  gap: 4px;
  margin: 0 0 12px;
}

body.unified-cockpit .campo-progress-seg {
  height: 6px;
  border-radius: 999px;
  background: var(--cockpit-line-strong);
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease;
}

body.unified-cockpit .campo-progress-seg.is-verde { background: #10b981; }
body.unified-cockpit .campo-progress-seg.is-amarillo { background: #f59e0b; }
body.unified-cockpit .campo-progress-seg.is-datos { background: #3b82f6; }
body.unified-cockpit .campo-progress-seg.is-current {
  box-shadow: 0 0 0 2px var(--cockpit-night);
  transform: scaleY(1.3);
}

body.unified-cockpit .campo-ext-assistant {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}

body.unified-cockpit .campo-nom002-pill {
  color: #065f46;
  font: 700 12px/1.35 var(--cockpit-sans);
}

body.unified-cockpit .campo-ext-clone {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 9px;
  background: #0f172a;
  color: #f8fafc;
  font: 700 12px/1 var(--cockpit-sans);
  text-decoration: none;
  white-space: nowrap;
}

body.unified-cockpit .tank-status-badge.badge-ok {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

body.unified-cockpit .tank-status-badge.badge-warn {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

@media (max-width: 960px) {
  body.unified-cockpit.modo-campo {
    background: #faf8f5;
    color: #0f172a;
  }

  body.unified-cockpit.modo-campo .cockpit-workspace {
    padding: 12px 14px 120px;
  }

  /* 1. Sticky Top Scope & Exit Bar */
  body.unified-cockpit.modo-campo .campo-topbar {
    position: sticky;
    top: 6px;
    z-index: 45;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin: 0 0 14px;
    padding: 6px 8px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(10px);
  }

  body.unified-cockpit.modo-campo .campo-topbar-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 11px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #faf8f5;
    color: #6b1d2f;
    font: 700 12px/1 var(--cockpit-sans);
    text-decoration: none;
    white-space: nowrap;
  }

  body.unified-cockpit.modo-campo .campo-topbar-exp {
    color: #475569;
    font: 800 11px/1 var(--cockpit-mono);
    letter-spacing: 0.04em;
    white-space: nowrap;
  }

  body.unified-cockpit.modo-campo .campo-topbar-modes {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f1f5f9;
    min-width: 0;
  }

  body.unified-cockpit.modo-campo .campo-topbar-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 36px;
    padding: 0 8px;
    border-radius: 7px;
    color: #475569;
    font: 700 11px/1 var(--cockpit-sans);
    text-decoration: none;
    white-space: nowrap;
  }

  body.unified-cockpit.modo-campo .campo-topbar-pill.is-active {
    background: #0f172a;
    color: #ffffff;
  }

  body.unified-cockpit.modo-campo .campo-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.28);
  }

  /* 2. Compact Section Progress Header */
  body.unified-cockpit.modo-campo .campo-current {
    padding: 0 0 14px;
  }

  body.unified-cockpit.modo-campo .campo-current h1 {
    margin: 4px 0 10px;
    color: #6b1d2f;
    font-size: clamp(23px, 6.8vw, 30px);
    line-height: 1.12;
  }

  body.unified-cockpit.modo-campo .campo-current [data-campo-active-state] {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    padding: 7px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
    color: #334155;
    font-size: 11px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  }

  /* 3. Smart Evidence Strip: below form when 0 photos, top chip strip when photos exist */
  body.unified-cockpit.modo-campo .cockpit-capture-surface {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  }

  body.unified-cockpit.modo-campo #campo-root[data-active-photos="0"] .cockpit-mode-form {
    order: 0;
  }

  body.unified-cockpit.modo-campo #campo-root[data-active-photos="0"] .cockpit-evidence-panel {
    order: 2;
    border-bottom: 0;
    border-top: 1px dashed #cbd5e1;
    background: #f8fafc;
    padding: 10px 14px;
  }

  body.unified-cockpit.modo-campo #campo-root:not([data-active-photos="0"]) .cockpit-evidence-panel,
  body.unified-cockpit.modo-campo.modo-campo-foto #campo-root .cockpit-evidence-panel {
    order: 0;
    background: #f0fdf4;
    border-bottom: 1px solid #bbf7d0;
    padding: 12px 14px;
  }

  body.unified-cockpit.modo-campo .campo-photos ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  body.unified-cockpit.modo-campo .campo-photos li {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 4px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #ffffff;
    font-size: 11px;
  }

  /* 4. Section 1: Collapsed 1-Line ROPC Verified Chip + 1-Tap GPS & Soil Card */
  body.unified-cockpit.modo-campo .campo-sec1-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  body.unified-cockpit.modo-campo .campo-ropc-chip {
    order: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid #a7f3d0;
    border-radius: 12px;
    background: #ecfdf5;
    color: #065f46;
    font-size: 12px;
    cursor: pointer;
  }

  body.unified-cockpit.modo-campo .campo-ropc-seal {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    background: #10b981;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
  }

  body.unified-cockpit.modo-campo .campo-ropc-summary {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #064e3b;
  }

  body.unified-cockpit.modo-campo .campo-ropc-toggle {
    flex: none;
    color: #047857;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
  }

  body.unified-cockpit.modo-campo .campo-sec1-grid:not(.is-ropc-expanded) > [data-campo-ropc-field],
  body.unified-cockpit.modo-campo .campo-sec1-grid:not(.is-ropc-expanded) > #identity-source-note {
    display: none !important;
  }

  body.unified-cockpit.modo-campo .campo-sec1-grid.is-ropc-expanded > [data-campo-ropc-field],
  body.unified-cockpit.modo-campo .campo-sec1-grid.is-ropc-expanded > #identity-source-note {
    order: 2;
  }

  body.unified-cockpit.modo-campo .campo-gps-card {
    order: 3;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    border: 1px solid #fde68a;
    border-radius: 14px;
    background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.08);
  }

  body.unified-cockpit.modo-campo .campo-gps-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
  }

  body.unified-cockpit.modo-campo .campo-gps-head strong {
    color: #78350f;
    font-size: 13px;
  }

  body.unified-cockpit.modo-campo .campo-gps-coords {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font: 600 11px/1.2 var(--cockpit-mono);
  }

  body.unified-cockpit.modo-campo .campo-gps-coords.is-set {
    border: 1px solid #a7f3d0;
    background: #ecfdf5;
    color: #047857;
  }

  body.unified-cockpit.modo-campo .campo-soil-field {
    order: 4;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
  }

  body.unified-cockpit.modo-campo .campo-sec1-grid > :not(.campo-ropc-chip):not([data-campo-ropc-field]):not(#identity-source-note):not(.campo-gps-card):not(.campo-soil-field) {
    order: 5;
  }

  /* 5. Progressive Disclosure on Electrical & Hydro Catalogs (Sections 5 & 6) */
  body.unified-cockpit.modo-campo .catalog-option {
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
    margin-bottom: 8px;
  }

  body.unified-cockpit.modo-campo .catalog-option:has(input[type="checkbox"]:checked) {
    border-color: #f59e0b;
    background: #fffbeb;
  }

  body.unified-cockpit.modo-campo .catalog-option:not(:has(input[type="checkbox"]:checked)):not(:focus-within) > input[name*="_spec__"]:placeholder-shown {
    display: none;
  }

  /* 6. Tactile Mobile Cards for Complex Tables & Repeatable Rows */
  body.unified-cockpit.modo-campo :where(.body-row, .tank-row, .chem-row) {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
    margin-bottom: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    background: #f8fafc;
  }

  body.unified-cockpit.modo-campo .cockpit-mode-form .subhead {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 10px;
  }

  body.unified-cockpit.modo-campo .cockpit-mode-form .subhead h3 {
    margin: 0;
    font-size: 15px;
    line-height: 1.3;
  }

  body.unified-cockpit.modo-campo .cockpit-mode-form .subhead > button {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
  }

  body.unified-cockpit.modo-campo #main-project-form .table-scroll {
    border: 0;
    padding: 0;
    background: transparent;
    overflow: visible !important;
  }

  body.unified-cockpit.modo-campo #main-project-form table.data-table,
  body.unified-cockpit.modo-campo #main-project-form table.data-table tbody {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  body.unified-cockpit.modo-campo #main-project-form table.data-table thead {
    display: none;
  }

  body.unified-cockpit.modo-campo #main-project-form table.data-table tbody tr:not(.empty-row) {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 14px;
    margin-bottom: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    background: #f8fafc;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  }

  body.unified-cockpit.modo-campo #main-project-form table.data-table tbody tr:not(.empty-row) td {
    display: block;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 0;
    border: 0;
  }

  body.unified-cockpit.modo-campo #main-project-form table.data-table tbody tr:not(.empty-row) td[data-mobile-label]::before {
    content: attr(data-mobile-label);
    display: block;
    margin-bottom: 4px;
    color: #475569;
    font: 700 11px/1.2 var(--cockpit-sans);
  }

  body.unified-cockpit.modo-campo #main-project-form table.data-table tbody tr:not(.empty-row) td :where(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]), select) {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  /* 7. Single-Glance #cockpit-menu Sheet Header + Obsidian Dock */
  body.unified-cockpit .cockpit-menu-head {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 14px;
    background: #faf8f5;
    border-bottom: 1px solid #cbd5e1;
  }

  body.unified-cockpit .cockpit-menu-toprow {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  body.unified-cockpit .cockpit-menu-cartera {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #ffffff;
    color: #6b1d2f;
    font: 700 12px/1 var(--cockpit-sans);
    text-decoration: none;
    white-space: nowrap;
  }

  body.unified-cockpit .cockpit-menu-toprow strong {
    font-size: 19px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.unified-cockpit .cockpit-menu-modes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    padding: 4px;
    border-radius: 12px;
    background: #0f172a;
  }

  body.unified-cockpit .cockpit-menu-mode {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 42px;
    padding: 0 6px;
    border-radius: 8px;
    color: #cbd5e1;
    font: 700 11px/1 var(--cockpit-sans);
    text-decoration: none;
    white-space: nowrap;
  }

  body.unified-cockpit .cockpit-menu-mode .cockpit-icon {
    width: 15px;
    height: 15px;
  }

  body.unified-cockpit .cockpit-menu-mode[aria-current="page"] {
    background: #f59e0b;
    color: #0f172a;
  }

  body.unified-cockpit.modo-campo .cockpit-mobile-dock,
  body.unified-cockpit.sovereign-full-v3 .cockpit-mobile-dock {
    background: rgba(11, 19, 43, 0.97);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
    min-height: 76px;
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
    gap: 4px;
  }

  body.unified-cockpit.modo-campo .cockpit-mobile-dock[data-sync-state="saved"] .cockpit-mobile-primary,
  body.unified-cockpit.sovereign-full-v3 .cockpit-mobile-dock[data-sync-state="saved"] .cockpit-mobile-primary {
    background: #10b981;
    color: #052e16;
  }
}

@media (max-width: 520px) {
  body.unified-cockpit.modo-campo .campo-topbar-exp,
  body.unified-cockpit.sovereign-full-v3 .campo-topbar-exp {
    display: none;
  }
}

/* --- Sovereign Full v3 & v10 (Nivel Dios) · Mobile Full & Desktop Full Workstation --- */
@media (max-width: 960px) {
  body.unified-cockpit.sovereign-full-v3 .campo-topbar-left {
    display: contents;
  }
  body.unified-cockpit.sovereign-full-v3 :where(
    #sovereign-full-talonario,
    .campo-topbar-ropc,
    .campo-topbar-tools,
    .campo-topbar-exp-name,
    .sv-dock-left,
    .sv-dock-right
  ) {
    display: none !important;
  }
}

@media (max-width: 960px) {
  /* Show Ir a ESCRITORIO in Campo topbar on mobile; hide Vista completa pill in Campo topbar */
  body.unified-cockpit .campo-topbar-pill[data-campo-escritorio] {
    display: inline-flex;
  }
  body.unified-cockpit.modo-campo .campo-topbar-pill[data-sovereign-full-pill] {
    display: none !important;
  }

  body.unified-cockpit .cockpit-menu-modes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* Shared 5-Control Dock Geometry for Mobile Campo + Mobile Full */
  body.unified-cockpit.sovereign-full-v3 .cockpit-mobile-action {
    min-width: 48px;
    font-size: 9px;
  }

  body.unified-cockpit.sovereign-full-v3 .cockpit-dock-index {
    min-width: 56px;
  }

  body.unified-cockpit.sovereign-full-v3 [data-cockpit-position] {
    font-size: 13px;
    white-space: nowrap;
  }

  body.unified-cockpit.sovereign-full-v3 .cockpit-dock-previous .cockpit-icon {
    transform: rotate(180deg);
  }

  body.unified-cockpit.sovereign-full-v3 .cockpit-mobile-action:disabled {
    opacity: 0.4;
    cursor: default;
  }

  body.unified-cockpit.sovereign-full-v3 .cockpit-mobile-primary {
    min-width: 72px;
    justify-content: center;
    gap: 6px;
    padding-left: 10px;
    padding-right: 10px;
  }

  /* Deep Obsidian Navy (#0B132B) Top Scope Bar on Mobile Campo & Mobile Full */
  body.unified-cockpit.modo-campo .campo-topbar,
  body.unified-cockpit.sovereign-full-v3 .sovereign-topbar {
    position: sticky;
    top: 6px;
    z-index: 45;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin: 0 0 12px;
    padding: 6px 8px;
    border: 1px solid #1e293b;
    border-radius: 14px;
    background: rgba(11, 19, 43, 0.97);
    color: #f8fafc;
    box-shadow: 0 8px 22px rgba(11, 19, 43, 0.22);
    backdrop-filter: blur(12px);
  }

  body.unified-cockpit.modo-campo .campo-topbar-back,
  body.unified-cockpit.sovereign-full-v3 .campo-topbar-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px !important;
    padding: 0 11px;
    border: 1px solid #334155;
    border-radius: 9px;
    background: #1c2541;
    color: #f8fafc;
    font: 700 11.5px/1 var(--cockpit-sans);
    text-decoration: none;
    white-space: nowrap;
  }

  body.unified-cockpit.modo-campo .campo-topbar-exp,
  body.unified-cockpit.sovereign-full-v3 .campo-topbar-exp {
    color: #94a3b8;
    font: 800 11px/1 var(--cockpit-mono);
    letter-spacing: 0.04em;
    white-space: nowrap;
  }

  body.unified-cockpit.modo-campo .campo-topbar-modes,
  body.unified-cockpit.sovereign-full-v3 .campo-topbar-modes {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px;
    border: 1px solid #334155;
    border-radius: 10px;
    background: #1c2541;
    min-width: 0;
  }

  body.unified-cockpit.modo-campo .campo-topbar-pill,
  body.unified-cockpit.sovereign-full-v3 .campo-topbar-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 34px !important;
    padding: 0 10px;
    border-radius: 7px;
    color: #cbd5e1;
    font: 800 11px/1 var(--cockpit-sans);
    text-decoration: none;
    white-space: nowrap;
  }

  body.unified-cockpit.modo-campo .campo-topbar-pill.is-active,
  body.unified-cockpit.sovereign-full-v3 .campo-topbar-pill.is-active {
    background: #c59b27;
    color: #0b132b;
  }

  /* Warm Daylight Alabaster Stage & Zero Horizontal Scroll on Mobile Full */
  body.unified-cockpit.sovereign-full-v3 {
    background: #f7f5f0;
    color: #0f172a;
    overflow-x: hidden;
  }

  body.unified-cockpit.sovereign-full-v3 .cockpit-workspace {
    padding: 10px 12px 126px;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  body.unified-cockpit.sovereign-full-v3 :where(.hero.compact, #readiness-graph) {
    display: none;
  }

  /* Crisp Vector SVGs (Zero Broken Emoji Tofu) */
  body.unified-cockpit.sovereign-full-v3 .sf-svg-ico {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: none;
  }

  /* Executive Dossier Header Card (#sovereign-full-dossier) */
  body.unified-cockpit.sovereign-full-v3 .sf-dossier-card {
    background: #ffffff;
    border: 1px solid #e5e0d8;
    border-radius: 16px;
    padding: 14px;
    margin: 0 0 12px;
    box-shadow: 0 4px 16px rgba(11, 19, 43, 0.06);
  }

  body.unified-cockpit.sovereign-full-v3 .sf-dossier-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
  }

  body.unified-cockpit.sovereign-full-v3 .sf-dossier-meta {
    flex: 1;
    min-width: 0;
  }

  body.unified-cockpit.sovereign-full-v3 .sf-dossier-title {
    margin: 0 0 8px;
    color: #7a1c32;
    font: 700 20px/1.15 var(--cockpit-serif);
    overflow-wrap: anywhere;
  }

  body.unified-cockpit.sovereign-full-v3 .sf-ropc-seal {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: 100%;
    padding: 4px 9px;
    border-radius: 8px;
    background: #fbf6e8;
    border: 1px solid #e6d08a;
    color: #78350f;
    font: 700 10.5px/1.25 var(--cockpit-sans);
  }

  body.unified-cockpit.sovereign-full-v3 .sf-ropc-seal span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.unified-cockpit.sovereign-full-v3 .sf-ring-box {
    position: relative;
    flex: none;
    width: 56px;
    height: 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  body.unified-cockpit.sovereign-full-v3 .sf-ring-svg {
    position: absolute;
    inset: 0;
    width: 56px;
    height: 56px;
    transform: rotate(-90deg);
  }

  body.unified-cockpit.sovereign-full-v3 .sf-ring-bg {
    fill: none;
    stroke: #e2e8f0;
    stroke-width: 4.5;
  }

  body.unified-cockpit.sovereign-full-v3 .sf-ring-fg {
    fill: none;
    stroke: #047857;
    stroke-width: 4.5;
    stroke-linecap: round;
    stroke-dasharray: 144.5;
    transition: stroke-dashoffset 240ms ease;
  }

  body.unified-cockpit.sovereign-full-v3 .sf-ring-label {
    position: relative;
    color: #0f172a;
    font: 800 12px/1 var(--cockpit-mono);
  }

  /* 3-Lens Segmented Switcher */
  body.unified-cockpit.sovereign-full-v3 .sf-lens-switcher {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    margin-top: 12px;
    padding: 4px;
    border-radius: 11px;
    background: #efece6;
  }

  body.unified-cockpit.sovereign-full-v3 .sf-lens-tab {
    min-height: 40px !important;
    min-width: 0 !important;
    padding: 0 6px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #475569;
    font: 800 11px/1.1 var(--cockpit-sans);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    white-space: nowrap;
  }

  body.unified-cockpit.sovereign-full-v3 .sf-lens-tab.is-active {
    background: #0b132b;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(11, 19, 43, 0.18);
  }

  /* Lens 1: Work-First Queue & 2x2 Bento Deliverable Deck */
  body.unified-cockpit.sovereign-full-v3 .sf-lens-panel {
    margin-top: 12px;
  }

  body.unified-cockpit.sovereign-full-v3 .sf-kicker {
    margin: 10px 0 6px;
    color: #475569;
    font: 800 9.5px/1.2 var(--cockpit-mono);
    letter-spacing: 0.06em;
  }

  body.unified-cockpit.sovereign-full-v3 .sf-queue-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  body.unified-cockpit.sovereign-full-v3 .sf-queue-card {
    padding: 12px;
    border-radius: 13px;
    border: 1px solid #e5e0d8;
    border-left: 4px solid #d97706;
    background: #faf8f5;
  }

  body.unified-cockpit.sovereign-full-v3 .sf-queue-card.is-resolved {
    border-left-color: #047857;
    background: #ecfdf5;
    border-color: #a7f3d0;
  }

  body.unified-cockpit.sovereign-full-v3 .sf-queue-title {
    color: #0f172a;
    font: 800 12.5px/1.25 var(--cockpit-sans);
    margin-bottom: 3px;
  }

  body.unified-cockpit.sovereign-full-v3 .sf-queue-sub {
    color: #475569;
    font: 600 11px/1.35 var(--cockpit-sans);
  }

  body.unified-cockpit.sovereign-full-v3 .sf-queue-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 9px;
  }

  body.unified-cockpit.sovereign-full-v3 .sf-btn-wine,
  body.unified-cockpit.sovereign-full-v3 .sf-btn-emerald,
  body.unified-cockpit.sovereign-full-v3 .sf-btn-navy {
    flex: 1 1 170px;
    min-height: 44px !important;
    min-width: 0 !important;
    padding: 0 11px;
    border: 0;
    border-radius: 9px;
    color: #ffffff;
    font: 800 11px/1.15 var(--cockpit-sans);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
  }

  body.unified-cockpit.sovereign-full-v3 .sf-btn-wine {
    background: #7a1c32;
  }

  body.unified-cockpit.sovereign-full-v3 .sf-btn-emerald {
    background: #047857;
  }

  body.unified-cockpit.sovereign-full-v3 .sf-btn-navy {
    background: #0b132b;
  }

  body.unified-cockpit.sovereign-full-v3 .sf-btn-pill {
    min-height: 44px !important;
    min-width: 0 !important;
    padding: 0 12px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    background: #ffffff;
    color: #0f172a;
    font: 700 11px/1.15 var(--cockpit-sans);
    white-space: nowrap;
  }

  /* 2x2 Bento Deliverable Deck (Zero Horizontal Scroll) */
  body.unified-cockpit.sovereign-full-v3 .sf-bento-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 6px;
  }

  body.unified-cockpit.sovereign-full-v3 .sf-bento-tile {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 9px;
    row-gap: 1px;
    align-items: center;
    min-height: 54px !important;
    min-width: 0 !important;
    padding: 8px 10px;
    border: 1px solid #e5e0d8;
    border-radius: 12px;
    background: #faf8f5;
    color: #0f172a;
    text-align: left;
  }

  body.unified-cockpit.sovereign-full-v3 .sf-bento-ico {
    grid-row: 1 / 3;
    grid-column: 1;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #7a1c32;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  body.unified-cockpit.sovereign-full-v3 .sf-bento-ico.sf-ico-emerald {
    background: #047857;
  }

  body.unified-cockpit.sovereign-full-v3 .sf-bento-ico.sf-ico-navy {
    background: #0b132b;
  }

  body.unified-cockpit.sovereign-full-v3 .sf-bento-ico.sf-ico-gold {
    background: #c59b27;
    color: #0b132b;
  }

  body.unified-cockpit.sovereign-full-v3 .sf-bento-title {
    grid-column: 2;
    grid-row: 1;
    font: 800 11.5px/1.2 var(--cockpit-sans);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.unified-cockpit.sovereign-full-v3 .sf-bento-sub {
    grid-column: 2;
    grid-row: 2;
    color: #64748b;
    font: 600 10px/1.2 var(--cockpit-sans);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Lens 3: Live Talonario Virtual (Glass Twin) */
  body.unified-cockpit.sovereign-full-v3 .sf-talonario-card {
    padding: 14px;
    border-radius: 14px;
    border: 1px solid #e6d08a;
    border-top: 5px solid #7a1c32;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(11, 19, 43, 0.06);
  }

  body.unified-cockpit.sovereign-full-v3 .sf-talonario-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
  }

  body.unified-cockpit.sovereign-full-v3 .sf-talonario-head strong {
    color: #7a1c32;
    font: 800 9.5px/1.2 var(--cockpit-mono);
    letter-spacing: 0.05em;
  }

  body.unified-cockpit.sovereign-full-v3 .sf-sha-badge {
    padding: 2px 8px;
    border-radius: 999px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
    font: 800 9.5px/1.2 var(--cockpit-mono);
    white-space: nowrap;
  }

  body.unified-cockpit.sovereign-full-v3 .sf-talonario-sheet {
    padding: 12px;
    border-radius: 10px;
    background: #faf8f5;
    border: 1px solid #e5e0d8;
    margin-bottom: 10px;
  }

  body.unified-cockpit.sovereign-full-v3 .sf-talonario-dochead {
    color: #0f172a;
    font: 800 11px/1.3 var(--cockpit-sans);
    margin-bottom: 6px;
  }

  body.unified-cockpit.sovereign-full-v3 .sf-talonario-sig {
    color: #7a1c32;
    font: italic 600 16px/1.2 var(--cockpit-serif);
    margin-bottom: 2px;
  }

  body.unified-cockpit.sovereign-full-v3 .sf-talonario-reg {
    color: #475569;
    font: 700 10.5px/1.25 var(--cockpit-sans);
    margin-bottom: 6px;
  }

  body.unified-cockpit.sovereign-full-v3 .sf-talonario-facts {
    color: #0f172a;
    font: 700 10.5px/1.3 var(--cockpit-mono);
  }

  body.unified-cockpit.sovereign-full-v3 .sf-talonario-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  /* Collapsible Sovereign Chapter Cards */
  body.unified-cockpit.sovereign-full-v3 .cockpit-form-section {
    padding: 16px 14px;
    margin: 0 0 12px;
    border-radius: 14px;
    border: 1px solid #e5e0d8;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(11, 19, 43, 0.03);
    overflow: hidden;
  }

  body.unified-cockpit.sovereign-full-v3 .cockpit-form-section > h2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 -14px 14px;
    padding: 0 14px 12px;
    font: 700 17px/1.25 var(--cockpit-serif);
    color: #7a1c32;
    cursor: pointer;
    user-select: none;
  }

  body.unified-cockpit.sovereign-full-v3 .sf-chapter-badge {
    flex: none;
    padding: 3px 8px;
    border-radius: 999px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
    font: 800 10px/1.2 var(--cockpit-mono);
    white-space: nowrap;
  }

  body.unified-cockpit.sovereign-full-v3 .cockpit-form-section[data-chapter-collapsed="true"] {
    padding-bottom: 14px;
  }

  body.unified-cockpit.sovereign-full-v3 .cockpit-form-section[data-chapter-collapsed="true"] > h2 {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
  }

  body.unified-cockpit.sovereign-full-v3 .cockpit-form-section[data-chapter-collapsed="true"] > :not(h2) {
    display: none !important;
  }

  /* 11.2 William T. Fine Filter Bar, Thumb-Tap Scale Pills & 11.4 Cédula Filter Bar */
  body.unified-cockpit.sovereign-full-v3 .fine-origin-grid,
  body.unified-cockpit.sovereign-full-v3 .fine-principles,
  body.unified-cockpit.sovereign-full-v3 .fine-atlas-legend {
    display: none;
  }

  body.unified-cockpit.sovereign-full-v3 .fine-origin-banner {
    padding: 10px 12px;
    margin-bottom: 10px;
  }

  body.unified-cockpit.sovereign-full-v3 .sf-fine-filter-bar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    margin: 8px 0 12px;
    padding: 4px;
    border-radius: 10px;
    background: #efece6;
  }

  body.unified-cockpit.sovereign-full-v3 .sf-cedula-filter-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.unified-cockpit.sovereign-full-v3 .sf-filter-pill {
    min-height: 38px !important;
    min-width: 0 !important;
    padding: 0 4px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #475569;
    font: 800 10.5px/1.1 var(--cockpit-sans);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.unified-cockpit.sovereign-full-v3 .sf-filter-pill.is-active {
    background: #0b132b;
    color: #ffffff;
  }

  body.unified-cockpit.sovereign-full-v3 .sf-filter-autopilot {
    background: #7a1c32 !important;
    color: #ffffff !important;
  }

  body.unified-cockpit.sovereign-full-v3 tr.sf-row-hidden {
    display: none !important;
  }

  body.unified-cockpit.sovereign-full-v3 td:has(.sovereign-fine-pills) > select {
    display: none !important;
  }

  body.unified-cockpit.sovereign-full-v3 .sovereign-fine-pills {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 4px;
    margin-top: 4px;
  }

  body.unified-cockpit.sovereign-full-v3 .sovereign-fine-pill {
    min-height: 40px !important;
    min-width: 0 !important;
    padding: 2px 1px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #0f172a;
    font: 800 11px/1 var(--cockpit-mono);
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  body.unified-cockpit.sovereign-full-v3 .sovereign-fine-pill.is-active {
    background: #7a1c32;
    border-color: #7a1c32;
    color: #ffffff;
  }

  body.unified-cockpit.sovereign-full-v3 .sf-cedula-markall {
    width: 100%;
    min-height: 44px !important;
    margin-bottom: 8px;
    border: 0;
    border-radius: 10px;
    background: #047857 !important;
    color: #ffffff !important;
    font: 800 12px/1.15 var(--cockpit-sans);
  }


  /* Tactile Mobile Cards for All Tables in Mobile Full (Zero Horizontal Scroll) */
  body.unified-cockpit.sovereign-full-v3 #main-project-form .table-scroll {
    border: 0;
    padding: 0;
    background: transparent;
    overflow-x: hidden !important;
  }

  body.unified-cockpit.sovereign-full-v3 #main-project-form table.data-table,
  body.unified-cockpit.sovereign-full-v3 #main-project-form table.data-table tbody {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  body.unified-cockpit.sovereign-full-v3 #main-project-form table.data-table thead {
    display: none;
  }

  body.unified-cockpit.sovereign-full-v3 #main-project-form table.data-table tbody tr:not(.empty-row) {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 13px;
    margin-bottom: 12px;
    border: 1px solid #e5e0d8;
    border-radius: 13px;
    background: #faf8f5;
    box-shadow: 0 2px 6px rgba(11, 19, 43, 0.03);
  }

  body.unified-cockpit.sovereign-full-v3 #main-project-form table.data-table tbody tr:not(.empty-row) td {
    display: block;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 0;
    border: 0;
  }

  body.unified-cockpit.sovereign-full-v3 #main-project-form table.data-table tbody tr:not(.empty-row) td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: #475569;
    font: 700 10.5px/1.2 var(--cockpit-sans);
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }

  body.unified-cockpit.sovereign-full-v3 #main-project-form table.data-table tbody tr:not(.empty-row) td :where(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea) {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  body.unified-cockpit.sovereign-full-v3 :where(.grid, .body-row, .tank-row, .chem-row) {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* ==========================================================================
   Sovereign Editorial Workstation v9 · Desktop Campo (@media min-width: 961px)
   60% Warm Daylight Vellum (#F6F3EC) | 30% Pure Ivory Cards (#FFFFFF) |
   10% Sovereign Obsidian Chrome (#0E1526) + Reserva Wine (#7B1E2B) + Gold
   ========================================================================== */

body.unified-cockpit .sv-ico {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

@media (max-width: 960px) {
  body.unified-cockpit.modo-campo .campo-topbar-left {
    display: contents;
  }
  body.unified-cockpit.modo-campo :where(
    .campo-topbar-ropc,
    .campo-topbar-tools,
    .campo-topbar-exp-name,
    .campo-doc-target-pill,
    #campo-sovereign-autopilot,
    #sovereign-talonario-deck,
    .sv-gis-mini-card,
    .sv-sidebar-filters,
    .sv-sec-pct-pill,
    .sv-sec-page-pill,
    .sv-workbench-footer,
    .sv-dock-left,
    [data-sv-dock-next],
    .campo-actions > [data-sovereign-modal-open]
  ) {
    display: none !important;
  }
  body.unified-cockpit.modo-campo .sv-evidence-support-grid,
  body.unified-cockpit.modo-campo .sv-photos-card {
    display: contents;
  }
}

@media (min-width: 961px) {
  /* 60% Warm Daylight Vellum Canvas */
  body.unified-cockpit.modo-campo {
    background: #f6f3ec;
    color: #18202c;
  }

  /* Show Ir a ESCRITORIO in Desktop Campo topbar; hide redundant full-view pill in Campo topbar */
  body.unified-cockpit.modo-campo .campo-topbar-pill[data-sovereign-full-pill],
  body.unified-cockpit.modo-campo .cockpit-project-caption {
    display: none !important;
  }

  /* 1. Top Sovereign Scope Bar (52px, Deep Architectural Night #0E1526) */
  body.unified-cockpit.modo-campo .campo-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 85;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    height: 52px;
    padding: 0 18px;
    background: linear-gradient(180deg, #131c31 0%, #0e1526 100%);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 4px 18px rgba(14, 21, 38, 0.16);
    color: #f8f6f0;
  }

  body.unified-cockpit.modo-campo .campo-topbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }

  body.unified-cockpit.modo-campo .campo-topbar-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px !important;
    min-width: 0 !important;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    color: #f8f6f0;
    font: 700 12px/1 var(--cockpit-sans);
    text-decoration: none;
    white-space: nowrap;
    transition: background 120ms ease, border-color 120ms ease;
  }

  body.unified-cockpit.modo-campo .campo-topbar-back:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(212, 175, 55, 0.45);
    color: #ffffff;
  }

  body.unified-cockpit.modo-campo .campo-topbar-exp {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border-radius: 8px;
    background: rgba(212, 175, 55, 0.14);
    border: 1px solid rgba(212, 175, 55, 0.36);
    color: #f3d27a;
    font: 800 11.5px/1 var(--cockpit-mono);
    white-space: nowrap;
  }

  body.unified-cockpit.modo-campo .campo-topbar-exp-name {
    font-family: var(--cockpit-sans);
    font-weight: 700;
    color: #f8f6f0;
  }

  body.unified-cockpit.modo-campo .campo-topbar-ropc {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 8px;
    background: rgba(16, 185, 129, 0.13);
    border: 1px solid rgba(16, 185, 129, 0.34);
    color: #6ee7b7;
    font: 700 11px/1 var(--cockpit-sans);
    white-space: nowrap;
  }

  body.unified-cockpit.modo-campo .campo-topbar-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
  }

  body.unified-cockpit.modo-campo .campo-topbar-tool {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px !important;
    min-width: 0 !important;
    padding: 0 11px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
    font: 600 11.5px/1 var(--cockpit-sans);
    white-space: nowrap;
    transition: background 120ms ease, border-color 120ms ease;
  }

  body.unified-cockpit.modo-campo .campo-topbar-tool:hover {
    background: rgba(212, 175, 55, 0.16);
    border-color: rgba(212, 175, 55, 0.45);
    color: #ffffff;
  }

  body.unified-cockpit.modo-campo .campo-topbar-tool kbd {
    padding: 2px 5px;
    border-radius: 4px;
    background: rgba(14, 21, 38, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #cbd5e1;
    font: 700 9.5px/1 var(--cockpit-mono);
  }

  body.unified-cockpit.modo-campo .campo-topbar-sync {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.28);
    color: #a7f3d0;
    font: 700 10.5px/1 var(--cockpit-mono);
    white-space: nowrap;
  }

  body.unified-cockpit.modo-campo .campo-live-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.26);
  }

  body.unified-cockpit.modo-campo .campo-topbar-modes {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
  }

  body.unified-cockpit.modo-campo .campo-topbar-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px !important;
    min-width: 0 !important;
    padding: 0 12px;
    border-radius: 6px;
    color: #cbd5e1;
    font: 700 11.5px/1 var(--cockpit-sans);
    text-decoration: none;
    white-space: nowrap;
  }

  body.unified-cockpit.modo-campo .campo-topbar-pill.is-active {
    background: #d4af37;
    color: #0e1526;
    font-weight: 800;
  }

  body.unified-cockpit.modo-campo .campo-topbar-pill.is-active .campo-live-dot {
    background: #047857;
    box-shadow: none;
  }

  /* 2. Left Column (276px Pure Ivory Card — Dedicated 15-Section Campo Index ONLY) */
  body.unified-cockpit.modo-campo #cockpit-sidebar {
    position: fixed;
    top: 66px;
    left: 16px;
    bottom: 70px;
    z-index: 60;
    width: 276px;
    height: auto;
    min-height: 0;
    padding: 14px 12px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #ddd5c4;
    box-shadow: 0 2px 6px rgba(24, 20, 14, 0.04), 0 12px 28px rgba(24, 20, 14, 0.06);
    color: #18202c;
  }

  /* Eliminate mixed menu clutter from the Left Column on Desktop Campo */
  body.unified-cockpit.modo-campo #cockpit-sidebar :where(
    .cockpit-brand,
    .cockpit-utilities,
    .cockpit-project,
    .cockpit-nav,
    #cockpit-tools,
    .cockpit-sidebar-foot
  ) {
    display: none !important;
  }

  body.unified-cockpit.modo-campo #cockpit-sidebar .cockpit-section-head {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 2px 4px 10px;
    border-bottom: 1px solid #eae4d7;
    margin-bottom: 6px;
  }

  body.unified-cockpit.modo-campo .sv-sec-head-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  body.unified-cockpit.modo-campo #cockpit-sidebar .cockpit-sidebar-label {
    color: #7b1e2b;
    font: 800 10.5px/1.2 var(--cockpit-mono);
    letter-spacing: 0.08em;
  }

  body.unified-cockpit.modo-campo #cockpit-sidebar [data-cockpit-section-count] {
    display: none;
  }

  body.unified-cockpit.modo-campo .sv-sec-pct-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
    font: 800 10.5px/1 var(--cockpit-mono);
  }

  body.unified-cockpit.modo-campo .sv-sidebar-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    padding: 3px;
    border-radius: 9px;
    background: #f3efe6;
    border: 1px solid #e5dec9;
  }

  body.unified-cockpit.modo-campo .sv-sec-filter-btn {
    min-height: 30px !important;
    min-width: 0 !important;
    padding: 0 8px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #525d6f;
    font: 700 11px/1 var(--cockpit-sans);
    white-space: nowrap;
  }

  body.unified-cockpit.modo-campo .sv-sec-filter-btn.is-active {
    background: #0e1526;
    color: #ffffff;
    box-shadow: 0 1px 3px rgba(14, 21, 38, 0.16);
  }

  body.unified-cockpit.modo-campo #cockpit-sidebar .cockpit-section-list {
    padding: 2px 2px 4px 0;
    scrollbar-color: #d5cbb8 transparent;
  }

  body.unified-cockpit.modo-campo #cockpit-sidebar .cockpit-section-list li.is-sv-filtered-out {
    display: none !important;
  }

  body.unified-cockpit.modo-campo #cockpit-sidebar .cockpit-section-link {
    position: relative;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    margin: 3px 0;
    padding: 7px 10px;
    border-radius: 9px;
    border: 1px solid transparent;
    background: transparent;
    color: #18202c;
    transition: background 120ms ease, border-color 120ms ease;
  }

  body.unified-cockpit.modo-campo #cockpit-sidebar .cockpit-section-link:hover {
    background: #f8f5ee;
    border-color: #e5dec9;
    color: #18202c;
  }

  body.unified-cockpit.modo-campo #cockpit-sidebar .cockpit-section-link .cockpit-section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 24px;
    border-radius: 6px;
    background: #f3efe6;
    border: 1px solid #e2dac7;
    color: #525d6f;
    font: 800 10.5px/1 var(--cockpit-mono);
  }

  body.unified-cockpit.modo-campo #cockpit-sidebar .cockpit-section-link > span:nth-of-type(2) {
    min-width: 0;
  }

  body.unified-cockpit.modo-campo #cockpit-sidebar .cockpit-section-link b {
    display: block;
    color: #18202c;
    font: 600 11.5px/1.22 var(--cockpit-sans);
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  body.unified-cockpit.modo-campo #cockpit-sidebar .cockpit-section-link small {
    display: inline-block;
    margin-top: 2px;
    color: #647084;
    font: 600 10px/1.15 var(--cockpit-sans);
    white-space: normal;
  }

  body.unified-cockpit.modo-campo #cockpit-sidebar .cockpit-section-link .campo-dot {
    float: none;
    display: inline-block;
    margin: 0 0 0 5px;
    vertical-align: middle;
  }

  body.unified-cockpit.modo-campo #cockpit-sidebar .sv-sec-page-pill {
    padding: 2px 6px;
    border-radius: 5px;
    background: #f6f3ec;
    border: 1px solid #e5dec9;
    color: #647084;
    font: 700 9.5px/1.1 var(--cockpit-mono);
    font-style: normal;
    white-space: nowrap;
  }

  body.unified-cockpit.modo-campo #cockpit-sidebar .cockpit-section-link:is(.is-active, [aria-current="true"], [aria-current="step"]) {
    background: #fdf8ed;
    border-color: #dfbe6f;
    box-shadow: inset 3px 0 0 #7b1e2b;
    color: #18202c;
  }

  body.unified-cockpit.modo-campo #cockpit-sidebar .cockpit-section-link:is(.is-active, [aria-current="true"], [aria-current="step"]) .cockpit-section-number {
    background: #7b1e2b;
    border-color: #7b1e2b;
    color: #ffffff;
  }

  body.unified-cockpit.modo-campo #cockpit-sidebar .cockpit-section-link:is(.is-active, [aria-current="true"], [aria-current="step"]) b {
    color: #7b1e2b;
    font-weight: 700;
  }

  body.unified-cockpit.modo-campo #cockpit-sidebar .cockpit-section-link:is(.is-active, [aria-current="true"], [aria-current="step"]) .sv-sec-page-pill {
    background: #7b1e2b;
    border-color: #7b1e2b;
    color: #ffffff;
  }

  /* 3. Workspace & 2-Column Inner Stage (Center Workbench 1fr | Right Talonario 428px) */
  body.unified-cockpit.modo-campo .cockpit-workspace {
    max-width: none;
    margin-left: 306px;
    padding: 66px 16px 72px 0;
    min-height: 100vh;
  }

  body.unified-cockpit.modo-campo .cockpit-workspace > footer {
    display: none;
  }

  body.unified-cockpit.modo-campo #campo-root {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 428px;
    gap: 0 14px;
    align-items: start;
  }

  body.unified-cockpit.modo-campo .cockpit-capture-surface {
    display: contents;
  }

  /* Center Column Top: Editorial Header + 15-Segment Bar + Contextual Autopilot */
  body.unified-cockpit.modo-campo .campo-current {
    grid-column: 1;
    margin: 0;
    padding: 18px 24px 16px;
    background: #ffffff;
    border: 1px solid #ddd5c4;
    border-bottom: 1px solid #eae4d7;
    border-radius: 14px 14px 0 0;
    box-shadow: 0 2px 6px rgba(24, 20, 14, 0.04);
  }

  body.unified-cockpit.modo-campo .campo-kicker-row {
    margin-bottom: 6px;
  }

  body.unified-cockpit.modo-campo .campo-kicker-badges {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  body.unified-cockpit.modo-campo .campo-doc-target-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #fdf8ed;
    border: 1px solid #e6d08a;
    color: #78350f;
    font: 800 10px/1.1 var(--cockpit-mono);
    letter-spacing: 0.04em;
  }

  body.unified-cockpit.modo-campo .campo-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 4px 0 12px;
  }

  body.unified-cockpit.modo-campo .campo-current h1 {
    margin: 0;
    color: #7b1e2b;
    font: 700 clamp(22px, 2vw, 27px)/1.15 var(--cockpit-serif);
    letter-spacing: -0.02em;
  }

  body.unified-cockpit.modo-campo .campo-current h1 > [data-campo-active-id] {
    color: #9a3412;
    font-size: 0.88em;
  }

  body.unified-cockpit.modo-campo .campo-current [data-campo-active-state] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 6px 12px;
    border-radius: 999px;
    background: #f8f5ee;
    border: 1px solid #e2dac7;
    color: #18202c;
    font: 700 11.5px/1.2 var(--cockpit-sans);
    cursor: pointer;
  }

  body.unified-cockpit.modo-campo #campo-root[data-active-state="verde"] .campo-current [data-campo-active-state] {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
  }

  body.unified-cockpit.modo-campo #campo-root[data-active-state="amarillo"] .campo-current [data-campo-active-state] {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
  }

  /* Warm Parchment Gold Autopilot Banner */
  body.unified-cockpit.modo-campo .campo-sovereign-autopilot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: 11px;
    background: linear-gradient(135deg, #fef9ec 0%, #faf1d6 100%);
    border: 1px solid #ead084;
    border-left: 4px solid #b45309;
  }

  body.unified-cockpit.modo-campo .sv-auto-body {
    flex: 1;
    min-width: 0;
  }

  body.unified-cockpit.modo-campo .sv-auto-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #92400e;
    font: 800 9.5px/1.2 var(--cockpit-mono);
    letter-spacing: 0.06em;
    margin-bottom: 3px;
  }

  body.unified-cockpit.modo-campo .sv-auto-headline {
    display: block;
    color: #18202c;
    font: 700 13px/1.3 var(--cockpit-sans);
  }

  body.unified-cockpit.modo-campo .sv-auto-detail {
    margin: 2px 0 0;
    color: #525d6f;
    font: 500 11.5px/1.35 var(--cockpit-sans);
  }

  body.unified-cockpit.modo-campo .sv-auto-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: none;
  }

  body.unified-cockpit.modo-campo .sv-auto-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px !important;
    min-width: 0 !important;
    padding: 0 13px;
    border-radius: 8px;
    border: 1px solid #d5c28f;
    background: #ffffff;
    color: #78350f;
    font: 700 11.5px/1 var(--cockpit-sans);
    white-space: nowrap;
  }

  body.unified-cockpit.modo-campo .sv-auto-btn:hover {
    background: #fdf8ed;
    border-color: #b45309;
  }

  body.unified-cockpit.modo-campo .sv-auto-btn-primary {
    background: #047857;
    border-color: #047857;
    color: #ffffff;
  }

  body.unified-cockpit.modo-campo .sv-auto-btn-primary:hover {
    background: #065f46;
    border-color: #065f46;
    color: #ffffff;
  }

  /* Center Column Body (#campo-form-slot) */
  body.unified-cockpit.modo-campo #draft-recovery {
    grid-column: 1;
    margin: 0;
    border-radius: 0;
    border-left: 1px solid #ddd5c4;
    border-right: 1px solid #ddd5c4;
  }

  body.unified-cockpit.modo-campo .cockpit-mode-form {
    grid-column: 1;
    background: #ffffff;
    border: 1px solid #ddd5c4;
    border-top: 0;
    border-radius: 0 0 14px 14px;
    box-shadow: 0 12px 28px rgba(24, 20, 14, 0.06);
    overflow: hidden;
  }

  body.unified-cockpit.modo-campo .cockpit-mode-form #main-project-form,
  body.unified-cockpit.modo-campo .cockpit-mode-form #evidencias {
    margin: 0;
    padding: 20px 24px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  body.unified-cockpit.modo-campo .cockpit-mode-form :where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]), select, textarea) {
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid #d5cbb8;
    border-radius: 8px;
    background: #fffefb;
    color: #18202c;
    font-size: 13px;
    transition: border-color 120ms ease, box-shadow 120ms ease;
  }

  body.unified-cockpit.modo-campo .cockpit-mode-form :where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]), select, textarea):focus {
    border-color: #7b1e2b;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(123, 30, 43, 0.12);
    outline: none;
  }

  body.unified-cockpit.modo-campo .cockpit-boolean {
    border-color: #d5cbb8;
    background: #f8f5ee;
  }

  body.unified-cockpit.modo-campo .cockpit-boolean > button {
    min-height: 40px !important;
    font-weight: 700;
  }

  body.unified-cockpit.modo-campo .cockpit-boolean > [aria-checked="true"] {
    background: #047857;
    color: #ffffff;
  }

  body.unified-cockpit.modo-campo .sv-workbench-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 24px;
    background: #faf7f0;
    border-top: 1px solid #eae4d7;
    color: #525d6f;
    font: 600 11px/1.3 var(--cockpit-sans);
  }

  body.unified-cockpit.modo-campo .sv-wf-norm {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #047857;
  }

  body.unified-cockpit.modo-campo .sv-wf-sync {
    font-family: var(--cockpit-mono);
    font-size: 10.5px;
    color: #647084;
  }

  /* 4. Right Column (428px Pure Ivory Card — Talonario Virtual & Supporting Evidence) */
  body.unified-cockpit.modo-campo aside.cockpit-evidence-panel {
    grid-column: 2;
    grid-row: 1 / span 4;
    position: sticky;
    top: 66px;
    max-height: calc(100vh - 138px);
    overflow-y: auto;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid #ddd5c4;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(24, 20, 14, 0.04), 0 12px 28px rgba(24, 20, 14, 0.06);
    scrollbar-color: #d5cbb8 transparent;
  }

  body.unified-cockpit.modo-campo .sv-talonario-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
  }

  body.unified-cockpit.modo-campo .sv-talonario-kicker {
    display: block;
    color: #7b1e2b;
    font: 800 9.5px/1.2 var(--cockpit-mono);
    letter-spacing: 0.08em;
  }

  body.unified-cockpit.modo-campo .sv-talonario-title {
    display: block;
    margin-top: 2px;
    color: #18202c;
    font: 700 15px/1.2 var(--cockpit-serif);
  }

  body.unified-cockpit.modo-campo .sv-sha-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
    font: 800 10px/1 var(--cockpit-mono);
    white-space: nowrap;
  }

  body.unified-cockpit.modo-campo .sv-talonario-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    padding: 3px;
    margin-bottom: 12px;
    border-radius: 9px;
    background: #f3efe6;
    border: 1px solid #e5dec9;
  }

  body.unified-cockpit.modo-campo .sv-talonario-tab {
    min-height: 32px !important;
    min-width: 0 !important;
    padding: 0 8px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #525d6f;
    font: 700 11px/1 var(--cockpit-sans);
    white-space: nowrap;
  }

  body.unified-cockpit.modo-campo .sv-talonario-tab.is-active {
    background: #0e1526;
    color: #ffffff;
    box-shadow: 0 1px 3px rgba(14, 21, 38, 0.18);
  }

  /* Realistic Stacked Paper Sheet (living_dossier tactile style) */
  body.unified-cockpit.modo-campo .sv-paper-sheet {
    padding: 13px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #dcd4c6;
    border-top: 4px solid #7b1e2b;
    box-shadow:
      0 2px 4px rgba(14, 21, 38, 0.05),
      0 8px 18px rgba(14, 21, 38, 0.05),
      3px 3px 0 #f2ede2,
      4px 4px 0 #d8d0c0;
    margin-bottom: 14px;
  }

  body.unified-cockpit.modo-campo .sv-paper-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eae4d7;
    margin-bottom: 9px;
  }

  body.unified-cockpit.modo-campo .sv-paper-brand strong {
    display: block;
    color: #7b1e2b;
    font: 800 9.5px/1.2 var(--cockpit-mono);
    letter-spacing: 0.05em;
  }

  body.unified-cockpit.modo-campo .sv-paper-brand span {
    display: block;
    margin-top: 2px;
    color: #18202c;
    font: 700 12px/1.25 var(--cockpit-sans);
  }

  body.unified-cockpit.modo-campo .sv-paper-page-badge {
    padding: 3px 8px;
    border-radius: 6px;
    background: #fdf8ed;
    border: 1px solid #e6d08a;
    color: #78350f;
    font: 800 10px/1 var(--cockpit-mono);
    white-space: nowrap;
  }

  body.unified-cockpit.modo-campo .sv-paper-live-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 10px;
  }

  body.unified-cockpit.modo-campo .sv-paper-cell {
    padding: 6px 8px;
    border-radius: 7px;
    background: #faf7f0;
    border: 1px solid #eae4d7;
    min-width: 0;
  }

  body.unified-cockpit.modo-campo .sv-paper-cell-lbl {
    display: block;
    color: #647084;
    font: 800 8.5px/1.1 var(--cockpit-mono);
    letter-spacing: 0.04em;
  }

  body.unified-cockpit.modo-campo .sv-paper-cell-val {
    display: block;
    margin-top: 2px;
    color: #18202c;
    font: 700 11px/1.25 var(--cockpit-sans);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.unified-cockpit.modo-campo .sv-paper-preview-wrap {
    position: relative;
    height: 220px;
    border-radius: 8px;
    border: 1px solid #e2dac7;
    background: #f3efe6;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    justify-content: center;
  }

  body.unified-cockpit.modo-campo .sv-paper-webp {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
  }

  body.unified-cockpit.modo-campo .sv-paper-fallback {
    padding: 24px 16px;
    text-align: center;
    color: #525d6f;
    font-size: 11.5px;
  }

  body.unified-cockpit.modo-campo .sv-paper-fallback strong {
    display: block;
    margin-bottom: 4px;
    color: #7b1e2b;
  }

  body.unified-cockpit.modo-campo .sv-paper-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 9px;
    padding-top: 8px;
    border-top: 1px solid #eae4d7;
  }

  body.unified-cockpit.modo-campo .sv-paper-pager {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  body.unified-cockpit.modo-campo .sv-pager-btn {
    min-height: 28px !important;
    min-width: 0 !important;
    padding: 0 9px;
    border-radius: 6px;
    border: 1px solid #d5cbb8;
    background: #faf7f0;
    color: #18202c;
    font: 700 10.5px/1 var(--cockpit-sans);
  }

  body.unified-cockpit.modo-campo .sv-pager-btn:hover {
    background: #f3efe6;
    border-color: #7b1e2b;
  }

  body.unified-cockpit.modo-campo .sv-pager-label {
    color: #525d6f;
    font: 700 10.5px/1 var(--cockpit-mono);
  }

  body.unified-cockpit.modo-campo .sv-paper-open-link {
    min-height: 28px !important;
    min-width: 0 !important;
    padding: 0 10px;
    border-radius: 6px;
    border: 1px solid #7b1e2b;
    background: #7b1e2b;
    color: #ffffff !important;
    font: 700 10.5px/28px var(--cockpit-sans);
    text-decoration: none;
    white-space: nowrap;
  }

  /* GIS Stage inside Talonario Virtual */
  body.unified-cockpit.modo-campo .sv-gis-stage-card {
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #dcd4c6;
    background: #faf7f0;
    margin-bottom: 14px;
  }

  body.unified-cockpit.modo-campo .sv-gis-stage-head,
  body.unified-cockpit.modo-campo .sv-gis-stage-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  body.unified-cockpit.modo-campo .sv-gis-stage-head strong {
    font: 700 11.5px/1.2 var(--cockpit-sans);
    color: #18202c;
  }

  body.unified-cockpit.modo-campo .sv-gis-img-box {
    height: 230px;
    margin: 8px 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #d5cbb8;
    background: #0e1526;
  }

  body.unified-cockpit.modo-campo .sv-gis-stage-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  body.unified-cockpit.modo-campo .sv-gis-stage-foot span {
    font-size: 10.5px;
    color: #525d6f;
  }

  /* Bottom 2-Card Supporting Evidence Grid inside Right Column */
  body.unified-cockpit.modo-campo .sv-evidence-support-grid {
    display: grid;
    grid-template-columns: 142px minmax(0, 1fr);
    gap: 10px;
    align-items: stretch;
  }

  body.unified-cockpit.modo-campo .sv-gis-mini-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #e2dac7;
    background: #faf7f0;
    cursor: pointer;
    transition: border-color 120ms ease, transform 120ms ease;
  }

  body.unified-cockpit.modo-campo .sv-gis-mini-card:hover {
    border-color: #b45309;
    transform: translateY(-1px);
  }

  body.unified-cockpit.modo-campo .sv-gis-mini-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    margin-bottom: 6px;
  }

  body.unified-cockpit.modo-campo .sv-mini-kicker {
    color: #78350f;
    font: 800 8.5px/1.1 var(--cockpit-mono);
  }

  body.unified-cockpit.modo-campo .sv-mini-tag {
    padding: 1px 5px;
    border-radius: 4px;
    background: #047857;
    color: #ffffff;
    font: 800 8.5px/1.2 var(--cockpit-mono);
  }

  body.unified-cockpit.modo-campo .sv-gis-mini-thumb {
    height: 78px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #d5cbb8;
    background: #0e1526;
    margin-bottom: 6px;
  }

  body.unified-cockpit.modo-campo .sv-gis-mini-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  body.unified-cockpit.modo-campo .sv-gis-mini-title {
    color: #18202c;
    font: 700 10.5px/1.25 var(--cockpit-sans);
  }

  body.unified-cockpit.modo-campo .sv-photos-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #e2dac7;
    background: #faf7f0;
    min-width: 0;
  }

  body.unified-cockpit.modo-campo .sv-photos-card.is-sv-pulse {
    border-color: #047857;
    box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.18);
  }

  body.unified-cockpit.modo-campo .sv-photos-card .cockpit-kicker {
    font-size: 8.5px;
    margin: 0;
  }

  body.unified-cockpit.modo-campo .sv-photos-card h2 {
    margin: 2px 0 6px;
    font: 700 13px/1.2 var(--cockpit-serif);
    color: #7b1e2b;
  }

  body.unified-cockpit.modo-campo .sv-photos-card .campo-photos {
    padding: 8px 10px;
    margin-bottom: 8px;
    border-radius: 7px;
    font-size: 11px;
    max-height: 92px;
    overflow-y: auto;
  }

  body.unified-cockpit.modo-campo .sv-photos-card .campo-photo-btn {
    min-height: 36px !important;
    padding: 0 12px;
    border-radius: 7px;
    background: #0e1526;
    border-color: #0e1526;
    color: #ffffff;
    font: 700 11.5px/1 var(--cockpit-sans);
  }

  body.unified-cockpit.modo-campo .sv-photos-card .campo-photo-btn:hover {
    background: #1e293b;
  }

  body.unified-cockpit.modo-campo .sv-photos-card .cockpit-evidence-tip {
    display: none;
  }

  /* 5. Bottom Obsidian Tactical Dock (56px, #0E1526) */
  body.unified-cockpit.modo-campo .campo-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 85;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 56px;
    min-height: 56px;
    padding: 0 18px;
    background: linear-gradient(180deg, #131c31 0%, #0e1526 100%);
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 -4px 18px rgba(14, 21, 38, 0.16);
    color: #f8f6f0;
  }

  body.unified-cockpit.modo-campo .sv-dock-left,
  body.unified-cockpit.modo-campo .campo-actions {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  body.unified-cockpit.modo-campo .sv-dock-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px !important;
    min-width: 0 !important;
    padding: 0 13px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
    font: 700 12px/1 var(--cockpit-sans);
    white-space: nowrap;
  }

  body.unified-cockpit.modo-campo .sv-dock-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(212, 175, 55, 0.45);
    color: #ffffff;
  }

  body.unified-cockpit.modo-campo .sv-dock-btn:disabled {
    opacity: 0.4;
    cursor: default;
  }

  body.unified-cockpit.modo-campo .sv-dock-btn-amber {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.4);
    color: #fcd34d;
  }

  body.unified-cockpit.modo-campo .campo-bar .campo-msg {
    flex: 1;
    text-align: center;
    color: #cbd5e1;
    font: 600 12px/1.3 var(--cockpit-sans);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.unified-cockpit.modo-campo .campo-bar .campo-msg[data-tone="ok"] {
    color: #6ee7b7;
  }

  body.unified-cockpit.modo-campo .campo-bar .campo-msg[data-tone="warn"] {
    color: #fcd34d;
  }

  body.unified-cockpit.modo-campo .campo-bar .campo-primary {
    min-height: 38px !important;
    min-width: 148px !important;
    padding: 0 18px;
    border-radius: 8px;
    background: #047857;
    border-color: #059669;
    color: #ffffff;
    font: 800 12.5px/1 var(--cockpit-sans);
    box-shadow: 0 2px 8px rgba(4, 120, 87, 0.35);
  }

  body.unified-cockpit.modo-campo .campo-bar .campo-primary:hover {
    background: #059669;
    color: #ffffff;
  }

  body.unified-cockpit.modo-campo .sv-dock-btn-next {
    background: #d4af37;
    border-color: #d4af37;
    color: #0e1526;
    font-weight: 800;
  }

  body.unified-cockpit.modo-campo .sv-dock-btn-next:hover:not(:disabled) {
    background: #e5c148;
    border-color: #e5c148;
    color: #0e1526;
  }
}

/* 6. Cinemascope Executive Modals (Filemón Office 19 Hojas & Atlas GIS CDMX) */
body.unified-cockpit .sv-cinemascope-modal {
  width: min(94vw, 1520px);
  height: min(88vh, 920px);
  max-width: 94vw;
  max-height: 88vh;
  margin: auto;
  padding: 0;
  border: 1px solid rgba(212, 175, 55, 0.38);
  border-radius: 16px;
  background: #f6f3ec;
  color: #18202c;
  box-shadow: 0 28px 80px rgba(14, 21, 38, 0.55);
  overflow: hidden;
}

body.unified-cockpit .sv-cinemascope-modal::backdrop {
  background: rgba(14, 21, 38, 0.72);
  backdrop-filter: blur(5px);
}

body.unified-cockpit .sv-modal-shell {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

body.unified-cockpit .sv-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  background: linear-gradient(180deg, #131c31 0%, #0e1526 100%);
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  color: #f8f6f0;
}

body.unified-cockpit .sv-modal-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(212, 175, 55, 0.16);
  border: 1px solid rgba(212, 175, 55, 0.38);
  color: #f3d27a;
  font: 800 9.5px/1.1 var(--cockpit-mono);
  letter-spacing: 0.06em;
}

body.unified-cockpit .sv-modal-title-group h2 {
  margin: 4px 0 0;
  color: #ffffff;
  font: 700 19px/1.2 var(--cockpit-serif);
}

body.unified-cockpit .sv-modal-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

body.unified-cockpit .sv-modal-sha {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
  font: 700 10.5px/1 var(--cockpit-mono);
}

body.unified-cockpit .sv-modal-link-btn {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #f8f6f0 !important;
  font: 700 11.5px/1 var(--cockpit-sans);
  text-decoration: none;
}

body.unified-cockpit .sv-modal-link-gold {
  background: #d4af37;
  border-color: #d4af37;
  color: #0e1526 !important;
}

body.unified-cockpit .sv-modal-close {
  min-width: 36px !important;
  min-height: 36px !important;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 15px;
}

body.unified-cockpit .sv-modal-body.sv-office-layout {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
}

body.unified-cockpit .sv-office-sheets {
  padding: 12px;
  border-right: 1px solid #ddd5c4;
  background: #faf7f0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

body.unified-cockpit .sv-office-sheet-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px !important;
  min-width: 0 !important;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: #18202c;
  font: 600 11.5px/1.25 var(--cockpit-sans);
  text-align: left;
}

body.unified-cockpit .sv-office-sheet-btn:hover {
  background: #f0ebe0;
}

body.unified-cockpit .sv-office-sheet-btn.is-active {
  background: #0e1526;
  color: #ffffff;
}

body.unified-cockpit .sv-sheet-num {
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(123, 30, 43, 0.1);
  color: #7b1e2b;
  font: 800 10px/1 var(--cockpit-mono);
}

body.unified-cockpit .sv-office-sheet-btn.is-active .sv-sheet-num {
  background: #d4af37;
  color: #0e1526;
}

body.unified-cockpit .sv-sheet-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.unified-cockpit .sv-office-grid-wrap,
body.unified-cockpit .sv-gis-modal-stage {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: #ffffff;
}

body.unified-cockpit .sv-office-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 18px;
  border-bottom: 1px solid #eae4d7;
  background: #fdfbf7;
  font-size: 12px;
}

body.unified-cockpit .sv-office-table-scroll {
  flex: 1;
  overflow: auto;
  padding: 14px 18px;
}

body.unified-cockpit .sv-office-grid {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

body.unified-cockpit .sv-office-grid th.sv-office-rownum {
  width: 42px;
  background: #f3efe6;
  color: #647084;
  font: 700 10.5px/1 var(--cockpit-mono);
  text-align: center;
  border: 1px solid #e2dac7;
  padding: 6px;
}

body.unified-cockpit .sv-office-grid td {
  border: 1px solid #eae4d7;
  padding: 7px 10px;
  color: #18202c;
}

body.unified-cockpit .sv-gis-modal-canvas {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 16px;
  background: #0e1526;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.unified-cockpit .sv-gis-modal-canvas img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

body.unified-cockpit .sv-gis-modal-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 700 11.5px/1 var(--cockpit-mono);
}

@media (min-width: 961px) {
  html:has(body.unified-cockpit.modo-campo.sovereign-campo-v9),
  body.unified-cockpit.modo-campo.sovereign-campo-v9 {
    height: auto !important;
    min-height: 100vh !important;
    max-height: none !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }

  body.unified-cockpit.modo-campo.sovereign-campo-v9 > footer,
  body.unified-cockpit.modo-campo.sovereign-campo-v9 .cockpit-main > footer {
    display: none !important;
  }

  body.unified-cockpit.modo-campo.sovereign-campo-v9 #copiloto-fab {
    top: auto !important;
    bottom: 66px !important;
    right: 12px !important;
    transform: scale(0.78) !important;
    transform-origin: bottom right !important;
  }

  body.unified-cockpit.modo-campo .subpanel .subhead {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    margin-bottom: 10px !important;
  }

  body.unified-cockpit.modo-campo .tank-row,
  body.unified-cockpit.modo-campo .body-row {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 12px 14px !important;
    align-items: end !important;
    padding: 14px 16px !important;
    border-radius: 12px !important;
    background: #faf8f2 !important;
    border: 1px solid #e6dfd1 !important;
    margin-bottom: 12px !important;
  }

  body.unified-cockpit.modo-campo .tank-row > label,
  body.unified-cockpit.modo-campo .tank-row > .tank-status-col,
  body.unified-cockpit.modo-campo .body-row > label {
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
  }

  body.unified-cockpit.modo-campo .tank-row > button.remove-body,
  body.unified-cockpit.modo-campo .body-row > button.remove-body {
    height: 40px !important;
    align-self: end !important;
    justify-self: start !important;
    padding: 0 16px !important;
    border-radius: 10px !important;
  }
}

/* ==========================================================================
   Sovereign Full Dossier Workstation v10 · Desktop Full (@media min-width: 961px)
   3-Pane Independent Scroll Architecture | 17 Normative Chapters |
   Work-First Queue + Bento 4x1 + Persistent Right Talonario Virtual (428px)
   ========================================================================== */
@media (min-width: 961px) {
  html:has(body.unified-cockpit.sovereign-full-v3),
  body.unified-cockpit.sovereign-full-v3 {
    height: 100vh !important;
    max-height: 100vh !important;
    overflow: hidden !important;
    background: #f6f3ec !important;
    color: #18202c !important;
  }

  /* Hide legacy redundant chrome on Desktop Full */
  body.unified-cockpit.sovereign-full-v3 :where(
    .hero.compact,
    #readiness-graph,
    .cockpit-project-caption,
    #cockpit-sidebar .cockpit-brand,
    #cockpit-sidebar .cockpit-utilities,
    #cockpit-sidebar .cockpit-project,
    #cockpit-sidebar .cockpit-nav,
    #cockpit-sidebar #cockpit-tools,
    #cockpit-sidebar .cockpit-sidebar-foot,
    body > footer,
    .cockpit-main > footer,
    .cockpit-workspace > footer
  ) {
    display: none !important;
  }

  body.unified-cockpit.sovereign-full-v3 #copiloto-fab {
    top: auto !important;
    bottom: 66px !important;
    right: 12px !important;
    transform: scale(0.78) !important;
    transform-origin: bottom right !important;
  }

  /* 1. Top Sovereign Scope Bar (52px, Deep Architectural Night #0E1526) */
  body.unified-cockpit.sovereign-full-v3 #sovereign-full-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 85;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    height: 52px;
    padding: 0 18px;
    background: linear-gradient(180deg, #131c31 0%, #0e1526 100%);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 4px 18px rgba(14, 21, 38, 0.16);
    color: #f8f6f0;
  }

  body.unified-cockpit.sovereign-full-v3 .campo-topbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }

  body.unified-cockpit.sovereign-full-v3 .campo-topbar-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px !important;
    min-width: 0 !important;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    color: #f8f6f0;
    font: 700 12px/1 var(--cockpit-sans);
    text-decoration: none;
    white-space: nowrap;
  }

  body.unified-cockpit.sovereign-full-v3 .campo-topbar-back:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(212, 175, 55, 0.45);
    color: #ffffff;
  }

  body.unified-cockpit.sovereign-full-v3 .campo-topbar-exp {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border-radius: 8px;
    background: rgba(212, 175, 55, 0.14);
    border: 1px solid rgba(212, 175, 55, 0.36);
    color: #f3d27a;
    font: 800 11.5px/1 var(--cockpit-mono);
    white-space: nowrap;
  }

  body.unified-cockpit.sovereign-full-v3 .campo-topbar-exp-name {
    font-family: var(--cockpit-sans);
    font-weight: 700;
    color: #f8f6f0;
  }

  body.unified-cockpit.sovereign-full-v3 .campo-topbar-ropc {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 8px;
    background: rgba(16, 185, 129, 0.13);
    border: 1px solid rgba(16, 185, 129, 0.34);
    color: #6ee7b7;
    font: 700 11px/1 var(--cockpit-sans);
    white-space: nowrap;
  }

  body.unified-cockpit.sovereign-full-v3 .campo-topbar-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
  }

  body.unified-cockpit.sovereign-full-v3 .campo-topbar-tool {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px !important;
    min-width: 0 !important;
    padding: 0 11px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
    font: 600 11.5px/1 var(--cockpit-sans);
    white-space: nowrap;
  }

  body.unified-cockpit.sovereign-full-v3 .campo-topbar-tool:hover {
    background: rgba(212, 175, 55, 0.16);
    border-color: rgba(212, 175, 55, 0.45);
    color: #ffffff;
  }

  body.unified-cockpit.sovereign-full-v3 .campo-topbar-tool kbd {
    padding: 2px 5px;
    border-radius: 4px;
    background: rgba(14, 21, 38, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #cbd5e1;
    font: 700 9.5px/1 var(--cockpit-mono);
  }

  body.unified-cockpit.sovereign-full-v3 .campo-topbar-sync {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.28);
    color: #a7f3d0;
    font: 700 10.5px/1 var(--cockpit-mono);
    white-space: nowrap;
  }

  body.unified-cockpit.sovereign-full-v3 .campo-live-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.26);
  }

  body.unified-cockpit.sovereign-full-v3 .campo-topbar-modes {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
  }

  body.unified-cockpit.sovereign-full-v3 .campo-topbar-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px !important;
    min-width: 0 !important;
    padding: 0 12px;
    border-radius: 6px;
    color: #cbd5e1;
    font: 700 11.5px/1 var(--cockpit-sans);
    text-decoration: none;
    white-space: nowrap;
  }

  body.unified-cockpit.sovereign-full-v3 .campo-topbar-pill.is-active {
    background: #d4af37;
    color: #0e1526;
    font-weight: 800;
  }

  body.unified-cockpit.sovereign-full-v3 .campo-topbar-pill.is-active .campo-live-dot {
    background: #047857;
    box-shadow: none;
  }

  /* 2. Left Column (280px Pure Ivory Card — Dedicated 17-Chapter & Work-First Navigator) */
  body.unified-cockpit.sovereign-full-v3 #cockpit-sidebar {
    position: fixed;
    top: 66px;
    left: 16px;
    bottom: 70px;
    z-index: 60;
    width: 280px;
    height: auto;
    min-height: 0;
    padding: 14px 12px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #ddd5c4;
    box-shadow: 0 2px 6px rgba(24, 20, 14, 0.04), 0 12px 28px rgba(24, 20, 14, 0.06);
    color: #18202c;
    display: flex;
    flex-direction: column;
  }

  body.unified-cockpit.sovereign-full-v3 #cockpit-sidebar .cockpit-section-head {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 2px 4px 10px;
    border-bottom: 1px solid #eae4d7;
    margin-bottom: 6px;
  }

  body.unified-cockpit.sovereign-full-v3 .sv-sec-head-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  body.unified-cockpit.sovereign-full-v3 #cockpit-sidebar .cockpit-sidebar-label {
    color: #7b1e2b;
    font: 800 10.5px/1.2 var(--cockpit-mono);
    letter-spacing: 0.08em;
  }

  body.unified-cockpit.sovereign-full-v3 #cockpit-sidebar [data-cockpit-section-count] {
    display: none;
  }

  body.unified-cockpit.sovereign-full-v3 .sv-sec-pct-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
    font: 800 10px/1 var(--cockpit-mono);
  }

  body.unified-cockpit.sovereign-full-v3 .sf-sidebar-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
  }

  body.unified-cockpit.sovereign-full-v3 .sf-sidebar-search {
    width: 100%;
    min-height: 32px !important;
    padding: 5px 10px;
    border-radius: 8px;
    border: 1px solid #d5cbb8;
    background: #faf7f0;
    color: #18202c;
    font: 600 11.5px/1.2 var(--cockpit-sans);
  }

  body.unified-cockpit.sovereign-full-v3 .sf-sidebar-search:focus {
    background: #ffffff;
    border-color: #7b1e2b;
    outline: none;
  }

  body.unified-cockpit.sovereign-full-v3 .sf-sidebar-lenses,
  body.unified-cockpit.sovereign-full-v3 .sf-sidebar-3lenses {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 3px;
    padding: 3px;
    border-radius: 9px;
    background: #f3efe6;
    border: 1px solid #e5dec9;
  }

  body.unified-cockpit.sovereign-full-v3 .sv-sec-filter-btn {
    min-height: 28px !important;
    min-width: 0 !important;
    padding: 0 6px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #525d6f;
    font: 700 10px/1 var(--cockpit-sans);
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
  }

  body.unified-cockpit.sovereign-full-v3 .sv-sec-filter-btn.is-active {
    background: #0e1526;
    color: #ffffff;
    box-shadow: 0 1px 3px rgba(14, 21, 38, 0.16);
  }

  body.unified-cockpit.sovereign-full-v3 #cockpit-sidebar .cockpit-section-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 2px 2px 4px 0;
    scrollbar-color: #d5cbb8 transparent;
  }

  body.unified-cockpit.sovereign-full-v3 #cockpit-sidebar .cockpit-section-list li.is-sv-filtered-out,
  body.unified-cockpit.sovereign-full-v3 #cockpit-sidebar li.is-sv-filtered-out {
    display: none !important;
  }

  body.unified-cockpit.sovereign-full-v3 #cockpit-sidebar .cockpit-section-link {
    position: relative;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    margin: 2px 0;
    padding: 6px 9px;
    border-radius: 9px;
    border: 1px solid transparent;
    background: transparent;
    color: #18202c;
    transition: background 120ms ease, border-color 120ms ease;
  }

  body.unified-cockpit.sovereign-full-v3 #cockpit-sidebar .cockpit-section-link:hover {
    background: #f8f5ee;
    border-color: #e5dec9;
  }

  body.unified-cockpit.sovereign-full-v3 #cockpit-sidebar .cockpit-section-link .cockpit-section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 24px;
    border-radius: 6px;
    background: #f3efe6;
    border: 1px solid #e2dac7;
    color: #525d6f;
    font: 800 10px/1 var(--cockpit-mono);
  }

  body.unified-cockpit.sovereign-full-v3 #cockpit-sidebar .cockpit-section-link > span:nth-of-type(2) {
    min-width: 0;
  }

  body.unified-cockpit.sovereign-full-v3 #cockpit-sidebar .cockpit-section-link b {
    display: block;
    color: #18202c;
    font: 600 11px/1.22 var(--cockpit-sans);
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  body.unified-cockpit.sovereign-full-v3 #cockpit-sidebar .cockpit-section-link small {
    display: inline-block;
    margin-top: 2px;
    color: #647084;
    font: 600 9.5px/1.15 var(--cockpit-sans);
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    max-width: none;
    vertical-align: middle;
  }

  body.unified-cockpit.sovereign-full-v3 #cockpit-sidebar .cockpit-section-link .campo-dot {
    float: none;
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    margin: 0 0 0 5px;
    vertical-align: middle;
  }

  body.unified-cockpit.sovereign-full-v3 #cockpit-sidebar .cockpit-section-link .campo-dot-verde {
    background: #10b981;
  }

  body.unified-cockpit.sovereign-full-v3 #cockpit-sidebar .cockpit-section-link .campo-dot-amarillo {
    background: #f59e0b;
  }

  body.unified-cockpit.sovereign-full-v3 #cockpit-sidebar .sv-sec-page-pill {
    padding: 2px 6px;
    border-radius: 5px;
    background: #f6f3ec;
    border: 1px solid #e5dec9;
    color: #647084;
    font: 700 9.5px/1.1 var(--cockpit-mono);
    font-style: normal;
    white-space: nowrap;
  }

  body.unified-cockpit.sovereign-full-v3 #cockpit-sidebar .cockpit-section-link:is(.is-active, [aria-current="true"], [aria-current="step"]) {
    background: #fdf8ed;
    border-color: #dfbe6f;
    box-shadow: inset 3px 0 0 #7b1e2b;
  }

  body.unified-cockpit.sovereign-full-v3 #cockpit-sidebar .cockpit-section-link:is(.is-active, [aria-current="true"], [aria-current="step"]) .cockpit-section-number,
  body.unified-cockpit.sovereign-full-v3 #cockpit-sidebar .cockpit-section-link:is(.is-active, [aria-current="true"], [aria-current="step"]) .sv-sec-page-pill {
    background: #7b1e2b;
    border-color: #7b1e2b;
    color: #ffffff;
  }

  body.unified-cockpit.sovereign-full-v3 #cockpit-sidebar .cockpit-section-link:is(.is-active, [aria-current="true"], [aria-current="step"]) b {
    color: #7b1e2b;
    font-weight: 700;
  }

  /* 3. Right Column (428px Fixed Persistent Talonario Virtual & Audit Rail) */
  body.unified-cockpit.sovereign-full-v3 #sovereign-full-talonario {
    position: fixed;
    top: 66px;
    right: 16px;
    bottom: 70px;
    z-index: 60;
    width: 428px;
    max-height: none;
    overflow-y: auto;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid #ddd5c4;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(24, 20, 14, 0.04), 0 12px 28px rgba(24, 20, 14, 0.06);
    scrollbar-color: #d5cbb8 transparent;
  }

  body.unified-cockpit.sovereign-full-v3 #sovereign-full-talonario .sv-talonario-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
  }

  body.unified-cockpit.sovereign-full-v3 #sovereign-full-talonario .sv-talonario-kicker {
    display: block;
    color: #7b1e2b;
    font: 800 9.5px/1.2 var(--cockpit-mono);
    letter-spacing: 0.08em;
  }

  body.unified-cockpit.sovereign-full-v3 #sovereign-full-talonario .sv-talonario-title {
    display: block;
    margin-top: 2px;
    color: #18202c;
    font: 700 15px/1.2 var(--cockpit-serif);
  }

  body.unified-cockpit.sovereign-full-v3 #sovereign-full-talonario .sv-sha-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
    font: 800 10px/1 var(--cockpit-mono);
    white-space: nowrap;
  }

  body.unified-cockpit.sovereign-full-v3 #sovereign-full-talonario .sv-talonario-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    padding: 3px;
    margin-bottom: 12px;
    border-radius: 9px;
    background: #f3efe6;
    border: 1px solid #e5dec9;
  }

  body.unified-cockpit.sovereign-full-v3 #sovereign-full-talonario .sv-talonario-tab {
    min-height: 32px !important;
    min-width: 0 !important;
    padding: 0 8px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #525d6f;
    font: 700 11px/1 var(--cockpit-sans);
    white-space: nowrap;
  }

  body.unified-cockpit.sovereign-full-v3 #sovereign-full-talonario .sv-talonario-tab.is-active {
    background: #0e1526;
    color: #ffffff;
    box-shadow: 0 1px 3px rgba(14, 21, 38, 0.18);
  }

  body.unified-cockpit.sovereign-full-v3 #sovereign-full-talonario .sv-paper-sheet {
    padding: 13px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #dcd4c6;
    border-top: 4px solid #7b1e2b;
    box-shadow:
      0 2px 4px rgba(14, 21, 38, 0.05),
      0 8px 18px rgba(14, 21, 38, 0.05),
      3px 3px 0 #f2ede2,
      4px 4px 0 #d8d0c0;
    margin-bottom: 14px;
  }

  body.unified-cockpit.sovereign-full-v3 #sovereign-full-talonario .sv-paper-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eae4d7;
    margin-bottom: 9px;
  }

  body.unified-cockpit.sovereign-full-v3 #sovereign-full-talonario .sv-paper-brand strong {
    display: block;
    color: #7b1e2b;
    font: 800 9.5px/1.2 var(--cockpit-mono);
    letter-spacing: 0.05em;
  }

  body.unified-cockpit.sovereign-full-v3 #sovereign-full-talonario .sv-paper-brand span {
    display: block;
    margin-top: 2px;
    color: #18202c;
    font: 700 12px/1.25 var(--cockpit-sans);
  }

  body.unified-cockpit.sovereign-full-v3 #sovereign-full-talonario .sv-paper-page-badge {
    padding: 3px 8px;
    border-radius: 6px;
    background: #fdf8ed;
    border: 1px solid #e6d08a;
    color: #78350f;
    font: 800 10px/1 var(--cockpit-mono);
    white-space: nowrap;
  }

  body.unified-cockpit.sovereign-full-v3 #sovereign-full-talonario .sv-paper-live-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 10px;
  }

  body.unified-cockpit.sovereign-full-v3 #sovereign-full-talonario .sv-paper-cell {
    padding: 6px 8px;
    border-radius: 7px;
    background: #faf7f0;
    border: 1px solid #eae4d7;
    min-width: 0;
  }

  body.unified-cockpit.sovereign-full-v3 #sovereign-full-talonario .sv-paper-cell-lbl {
    display: block;
    color: #647084;
    font: 800 8.5px/1.1 var(--cockpit-mono);
    letter-spacing: 0.04em;
  }

  body.unified-cockpit.sovereign-full-v3 #sovereign-full-talonario .sv-paper-cell-val {
    display: block;
    margin-top: 2px;
    color: #18202c;
    font: 700 11px/1.25 var(--cockpit-sans);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.unified-cockpit.sovereign-full-v3 #sovereign-full-talonario .sv-paper-preview-wrap {
    position: relative;
    height: 220px;
    border-radius: 8px;
    border: 1px solid #e2dac7;
    background: #f3efe6;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    justify-content: center;
  }

  body.unified-cockpit.sovereign-full-v3 #sovereign-full-talonario .sv-paper-webp {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
  }

  body.unified-cockpit.sovereign-full-v3 #sovereign-full-talonario .sv-paper-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 9px;
    padding-top: 8px;
    border-top: 1px solid #eae4d7;
  }

  body.unified-cockpit.sovereign-full-v3 #sovereign-full-talonario .sv-paper-pager {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  body.unified-cockpit.sovereign-full-v3 #sovereign-full-talonario .sv-pager-btn {
    min-height: 28px !important;
    min-width: 0 !important;
    padding: 0 9px;
    border-radius: 6px;
    border: 1px solid #d5cbb8;
    background: #faf7f0;
    color: #18202c;
    font: 700 10.5px/1 var(--cockpit-sans);
  }

  body.unified-cockpit.sovereign-full-v3 #sovereign-full-talonario .sv-pager-label {
    color: #525d6f;
    font: 700 10.5px/1 var(--cockpit-mono);
  }

  body.unified-cockpit.sovereign-full-v3 #sovereign-full-talonario .sv-paper-open-link {
    min-height: 28px !important;
    min-width: 0 !important;
    padding: 0 10px;
    border-radius: 6px;
    border: 1px solid #7b1e2b;
    background: #7b1e2b;
    color: #ffffff !important;
    font: 700 10.5px/1 var(--cockpit-sans);
    white-space: nowrap;
  }

  body.unified-cockpit.sovereign-full-v3 #sovereign-full-talonario .sv-gis-stage-card {
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #dcd4c6;
    background: #faf7f0;
    margin-bottom: 14px;
  }

  body.unified-cockpit.sovereign-full-v3 #sovereign-full-talonario .sv-gis-stage-head,
  body.unified-cockpit.sovereign-full-v3 #sovereign-full-talonario .sv-gis-stage-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  body.unified-cockpit.sovereign-full-v3 #sovereign-full-talonario .sv-gis-img-box {
    height: 210px;
    margin: 8px 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #d5cbb8;
    background: #0e1526;
  }

  body.unified-cockpit.sovereign-full-v3 #sovereign-full-talonario .sv-gis-stage-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  body.unified-cockpit.sovereign-full-v3 #sovereign-full-talonario .sv-evidence-support-grid {
    display: grid;
    grid-template-columns: 142px minmax(0, 1fr);
    gap: 10px;
    align-items: stretch;
  }

  body.unified-cockpit.sovereign-full-v3 #sovereign-full-talonario .sv-gis-mini-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #e2dac7;
    background: #faf7f0;
    cursor: pointer;
  }

  body.unified-cockpit.sovereign-full-v3 #sovereign-full-talonario .sv-gis-mini-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    margin-bottom: 6px;
  }

  body.unified-cockpit.sovereign-full-v3 #sovereign-full-talonario .sv-mini-kicker {
    color: #78350f;
    font: 800 8.5px/1.1 var(--cockpit-mono);
  }

  body.unified-cockpit.sovereign-full-v3 #sovereign-full-talonario .sv-mini-tag {
    padding: 1px 5px;
    border-radius: 4px;
    background: #047857;
    color: #ffffff;
    font: 800 8.5px/1.2 var(--cockpit-mono);
  }

  body.unified-cockpit.sovereign-full-v3 #sovereign-full-talonario .sv-gis-mini-thumb {
    height: 74px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #d5cbb8;
    background: #0e1526;
    margin-bottom: 6px;
  }

  body.unified-cockpit.sovereign-full-v3 #sovereign-full-talonario .sv-gis-mini-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  body.unified-cockpit.sovereign-full-v3 #sovereign-full-talonario .sv-gis-mini-title {
    color: #18202c;
    font: 700 10.5px/1.25 var(--cockpit-sans);
  }

  body.unified-cockpit.sovereign-full-v3 #sovereign-full-talonario .sv-photos-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #e2dac7;
    background: #faf7f0;
    min-width: 0;
  }

  body.unified-cockpit.sovereign-full-v3 #sovereign-full-talonario .sv-photos-card h2 {
    margin: 2px 0 6px;
    font: 700 13px/1.2 var(--cockpit-serif);
    color: #7b1e2b;
  }

  body.unified-cockpit.sovereign-full-v3 .sf-audit-meta-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
  }

  body.unified-cockpit.sovereign-full-v3 .sf-audit-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    font: 600 10.5px/1.2 var(--cockpit-sans);
    color: #525d6f;
  }

  body.unified-cockpit.sovereign-full-v3 .sf-audit-meta-row strong {
    font: 800 10px/1 var(--cockpit-mono);
    color: #047857;
  }

  body.unified-cockpit.sovereign-full-v3 #sovereign-full-talonario .campo-photo-btn {
    min-height: 32px !important;
    padding: 0 10px;
    border-radius: 7px;
    background: #0e1526;
    border: 1px solid #0e1526;
    color: #ffffff;
    font: 700 11px/1 var(--cockpit-sans);
  }

  /* 4. Center Scrollable Stage (#cockpit-workspace — Independent Scroll Between 280px Left & 428px Right) */
  body.unified-cockpit.sovereign-full-v3 #cockpit-workspace {
    max-width: none !important;
    margin: 0 458px 0 310px !important;
    height: 100vh !important;
    max-height: 100vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 66px 6px 76px 0 !important;
    box-sizing: border-box !important;
    scrollbar-color: #d5cbb8 transparent;
  }

  body.unified-cockpit.sovereign-full-v3 .sf-svg-ico {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: none;
  }

  /* Executive Dossier Command Card (#sovereign-full-dossier) on Desktop Full */
  body.unified-cockpit.sovereign-full-v3 #sovereign-full-dossier.sf-dossier-card {
    background: #ffffff;
    border: 1px solid #ddd5c4;
    border-radius: 14px;
    padding: 18px 22px;
    margin: 0 0 16px;
    box-shadow: 0 2px 6px rgba(24, 20, 14, 0.04), 0 12px 28px rgba(24, 20, 14, 0.05);
  }

  body.unified-cockpit.sovereign-full-v3 .sf-dossier-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }

  body.unified-cockpit.sovereign-full-v3 .sf-dossier-meta {
    flex: 1;
    min-width: 0;
  }

  body.unified-cockpit.sovereign-full-v3 .sf-dossier-title {
    margin: 2px 0 8px;
    color: #7b1e2b;
    font: 700 24px/1.15 var(--cockpit-serif);
    letter-spacing: -0.02em;
  }

  body.unified-cockpit.sovereign-full-v3 .sf-ropc-seal {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 8px;
    background: #fdf8ed;
    border: 1px solid #e6d08a;
    color: #78350f;
    font: 700 11.5px/1.2 var(--cockpit-sans);
  }

  body.unified-cockpit.sovereign-full-v3 .sf-ring-box {
    position: relative;
    flex: none;
    width: 60px;
    height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  body.unified-cockpit.sovereign-full-v3 .sf-ring-svg {
    position: absolute;
    inset: 0;
    width: 60px;
    height: 60px;
    transform: rotate(-90deg);
  }

  body.unified-cockpit.sovereign-full-v3 .sf-ring-bg {
    fill: none;
    stroke: #e2e8f0;
    stroke-width: 4.5;
  }

  body.unified-cockpit.sovereign-full-v3 .sf-ring-fg {
    fill: none;
    stroke: #047857;
    stroke-width: 4.5;
    stroke-linecap: round;
    stroke-dasharray: 144.5;
  }

  body.unified-cockpit.sovereign-full-v3 .sf-ring-label {
    position: relative;
    color: #18202c;
    font: 800 13px/1 var(--cockpit-mono);
  }

  body.unified-cockpit.sovereign-full-v3 .sf-lens-switcher {
    display: none !important;
  }

  body.unified-cockpit.sovereign-full-v3 .sf-lens-panel[data-sf-panel="queue"] {
    display: block !important;
    margin-top: 10px;
  }

  body.unified-cockpit.sovereign-full-v3 .sf-kicker {
    margin: 10px 0 8px;
    color: #7b1e2b;
    font: 800 9.5px/1.2 var(--cockpit-mono);
    letter-spacing: 0.08em;
  }

  /* 3-Column Work-First Queue ("Por resolver (3)") on Widescreen Desktop */
  body.unified-cockpit.sovereign-full-v3 .sf-queue-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  body.unified-cockpit.sovereign-full-v3 .sf-queue-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 11px;
    border: 1px solid #ead084;
    border-left: 4px solid #b45309;
    background: linear-gradient(135deg, #fef9ec 0%, #faf3df 100%);
  }

  body.unified-cockpit.sovereign-full-v3 .sf-queue-card.is-resolved {
    border-color: #a7f3d0;
    border-left-color: #047857;
    background: #ecfdf5;
  }

  body.unified-cockpit.sovereign-full-v3 .sf-queue-title {
    color: #18202c;
    font: 800 12px/1.25 var(--cockpit-sans);
    margin-bottom: 4px;
  }

  body.unified-cockpit.sovereign-full-v3 .sf-queue-sub {
    color: #525d6f;
    font: 600 10.5px/1.35 var(--cockpit-sans);
  }

  body.unified-cockpit.sovereign-full-v3 .sf-queue-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
  }

  body.unified-cockpit.sovereign-full-v3 .sf-btn-wine,
  body.unified-cockpit.sovereign-full-v3 .sf-btn-emerald,
  body.unified-cockpit.sovereign-full-v3 .sf-btn-navy {
    flex: 1 1 auto;
    min-height: 34px !important;
    min-width: 0 !important;
    padding: 0 10px;
    border: 0;
    border-radius: 7px;
    color: #ffffff;
    font: 800 10.5px/1.15 var(--cockpit-sans);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
  }

  body.unified-cockpit.sovereign-full-v3 .sf-btn-wine {
    background: #7b1e2b;
  }

  body.unified-cockpit.sovereign-full-v3 .sf-btn-emerald {
    background: #047857;
  }

  body.unified-cockpit.sovereign-full-v3 .sf-btn-navy {
    background: #0e1526;
  }

  body.unified-cockpit.sovereign-full-v3 .sf-btn-pill {
    min-height: 34px !important;
    min-width: 0 !important;
    padding: 0 10px;
    border: 1px solid #d5cbb8;
    border-radius: 7px;
    background: #ffffff;
    color: #18202c;
    font: 700 10.5px/1.15 var(--cockpit-sans);
  }

  /* 4-Column Bento Deliverable Deck (4x1 on Desktop Full) */
  body.unified-cockpit.sovereign-full-v3 .sf-bento-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-top: 6px;
  }

  body.unified-cockpit.sovereign-full-v3 .sf-bento-tile {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 7px;
    row-gap: 2px;
    align-items: center;
    min-height: 54px !important;
    min-width: 0 !important;
    padding: 7px 9px;
    border: 1px solid #e2dac7;
    border-radius: 10px;
    background: #faf7f0;
    color: #18202c;
    text-align: left;
    transition: border-color 120ms ease, transform 120ms ease;
  }

  body.unified-cockpit.sovereign-full-v3 .sf-bento-tile:hover {
    border-color: #7b1e2b;
    background: #fdf8ed;
    transform: translateY(-1px);
  }

  body.unified-cockpit.sovereign-full-v3 .sf-bento-ico {
    grid-row: 1 / 3;
    grid-column: 1;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: #7b1e2b;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  body.unified-cockpit.sovereign-full-v3 .sf-bento-ico.sf-ico-emerald {
    background: #047857;
  }

  body.unified-cockpit.sovereign-full-v3 .sf-bento-ico.sf-ico-navy {
    background: #0e1526;
  }

  body.unified-cockpit.sovereign-full-v3 .sf-bento-ico.sf-ico-gold {
    background: #d4af37;
    color: #0e1526;
  }

  body.unified-cockpit.sovereign-full-v3 .sf-bento-title {
    grid-column: 2;
    grid-row: 1;
    font: 800 11px/1.18 var(--cockpit-sans);
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  body.unified-cockpit.sovereign-full-v3 .sf-bento-sub {
    grid-column: 2;
    grid-row: 2;
    color: #647084;
    font: 600 9.5px/1.15 var(--cockpit-sans);
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  /* 5. Sovereign Normative Chapter Cards (.cockpit-form-section) */
  body.unified-cockpit.sovereign-full-v3 .form-panel,
  body.unified-cockpit.sovereign-full-v3 #main-project-form {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
  }

  body.unified-cockpit.sovereign-full-v3 .cockpit-project-tools {
    display: none !important;
  }

  body.unified-cockpit.sovereign-full-v3 .sv-sec-pct-pill {
    white-space: nowrap !important;
  }

  body.unified-cockpit.sovereign-full-v3 .cockpit-form-section {
    padding: 20px 24px;
    margin: 0 0 16px;
    border-radius: 14px;
    border: 1px solid #ddd5c4;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(24, 20, 14, 0.04), 0 10px 24px rgba(24, 20, 14, 0.04);
  }

  body.unified-cockpit.sovereign-full-v3 .cockpit-form-section > h2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 16px;
    padding: 0 0 12px;
    border-bottom: 1px solid #eae4d7;
    font: 700 20px/1.2 var(--cockpit-serif);
    color: #7b1e2b;
    cursor: pointer;
    user-select: none;
  }

  body.unified-cockpit.sovereign-full-v3 .sf-chapter-badge {
    flex: none;
    padding: 4px 10px;
    border-radius: 999px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
    font: 800 10.5px/1.1 var(--cockpit-mono);
    white-space: nowrap;
  }

  body.unified-cockpit.sovereign-full-v3 .cockpit-form-section[data-chapter-collapsed="true"] {
    padding-bottom: 16px;
  }

  body.unified-cockpit.sovereign-full-v3 .cockpit-form-section[data-chapter-collapsed="true"] > h2 {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
  }

  body.unified-cockpit.sovereign-full-v3 .cockpit-form-section[data-chapter-collapsed="true"] > :not(h2) {
    display: none !important;
  }

  /* Chapter 11.2 William T. Fine Compact Atlas Drawer & Direct 1-Click C x E x P Scale Pills */
  body.unified-cockpit.sovereign-full-v3 .sf-fine-atlas-drawer {
    margin: 0 0 10px;
    border-radius: 10px;
    border: 1px solid #ead084;
    background: #fef9ec;
    overflow: hidden;
  }

  body.unified-cockpit.sovereign-full-v3 .sf-fine-atlas-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 14px;
    cursor: pointer;
    list-style: none;
    user-select: none;
  }

  body.unified-cockpit.sovereign-full-v3 .sf-fine-atlas-summary::-webkit-details-marker {
    display: none;
  }

  body.unified-cockpit.sovereign-full-v3 .sf-fine-atlas-chip {
    padding: 3px 8px;
    border-radius: 6px;
    background: #7b1e2b;
    color: #ffffff;
    font: 800 9.5px/1.1 var(--cockpit-mono);
    white-space: nowrap;
  }

  body.unified-cockpit.sovereign-full-v3 .sf-fine-atlas-meta {
    flex: 1;
    color: #18202c;
    font: 700 11px/1.2 var(--cockpit-sans);
  }

  body.unified-cockpit.sovereign-full-v3 .sf-fine-atlas-cta {
    color: #78350f;
    font: 800 10.5px/1 var(--cockpit-sans);
    white-space: nowrap;
  }

  body.unified-cockpit.sovereign-full-v3 .sf-fine-filter-bar {
    display: grid;
    grid-template-columns: auto auto auto minmax(0, 1fr);
    gap: 6px;
    margin: 10px 0 14px;
    padding: 4px;
    border-radius: 10px;
    background: #f3efe6;
    border: 1px solid #e5dec9;
  }

  body.unified-cockpit.sovereign-full-v3 .sf-cedula-filter-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.unified-cockpit.sovereign-full-v3 .sf-filter-pill {
    min-height: 34px !important;
    min-width: 0 !important;
    padding: 0 12px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #525d6f;
    font: 800 11px/1.1 var(--cockpit-sans);
    white-space: nowrap;
  }

  body.unified-cockpit.sovereign-full-v3 .sf-filter-pill.is-active {
    background: #0e1526;
    color: #ffffff;
  }

  body.unified-cockpit.sovereign-full-v3 .sf-filter-autopilot {
    background: #7b1e2b !important;
    color: #ffffff !important;
  }

  body.unified-cockpit.sovereign-full-v3 tr.sf-row-hidden {
    display: none !important;
  }

  body.unified-cockpit.sovereign-full-v3 table.data-table {
    min-width: 0 !important;
    width: 100% !important;
    table-layout: auto !important;
  }

  body.unified-cockpit.sovereign-full-v3 table.data-table th,
  body.unified-cockpit.sovereign-full-v3 table.data-table td {
    padding: 8px 7px !important;
    font-size: 11.5px !important;
    overflow-wrap: break-word;
  }

  body.unified-cockpit.sovereign-full-v3 td:has(.sovereign-fine-pills) > select {
    display: none !important;
  }

  body.unified-cockpit.sovereign-full-v3 .sovereign-fine-pills {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3px;
    min-width: 88px;
  }

  body.unified-cockpit.sovereign-full-v3 .sovereign-fine-pill {
    min-height: 24px !important;
    min-width: 0 !important;
    padding: 2px 3px;
    border: 1px solid #d5cbb8;
    border-radius: 5px;
    background: #faf7f0;
    color: #18202c;
    font: 800 10px/1 var(--cockpit-mono);
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  body.unified-cockpit.sovereign-full-v3 .sovereign-fine-pill:hover {
    border-color: #7b1e2b;
    background: #fdf8ed;
  }

  body.unified-cockpit.sovereign-full-v3 .sovereign-fine-pill.is-active {
    background: #7b1e2b;
    border-color: #7b1e2b;
    color: #ffffff;
  }

  body.unified-cockpit.sovereign-full-v3 .sf-cedula-markall {
    min-height: 38px !important;
    margin-bottom: 10px;
    padding: 0 16px;
    border: 0;
    border-radius: 9px;
    background: #047857 !important;
    color: #ffffff !important;
    font: 800 11.5px/1.15 var(--cockpit-sans);
  }

  /* 6. Bottom Obsidian Tactical Dock (#sticky-actions — 56px, #0E1526) */
  body.unified-cockpit.sovereign-full-v3 #sticky-actions {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 85 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    height: 56px !important;
    min-height: 56px !important;
    margin: 0 !important;
    padding: 0 18px !important;
    border-radius: 0 !important;
    background: linear-gradient(180deg, #131c31 0%, #0e1526 100%) !important;
    border: 0 !important;
    border-top: 1px solid rgba(212, 175, 55, 0.3) !important;
    box-shadow: 0 -4px 18px rgba(14, 21, 38, 0.16) !important;
    color: #f8f6f0 !important;
  }

  body.unified-cockpit.sovereign-full-v3 #sticky-actions .sv-dock-left,
  body.unified-cockpit.sovereign-full-v3 #sticky-actions .sv-dock-right {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  body.unified-cockpit.sovereign-full-v3 #sticky-actions .sv-dock-btn,
  body.unified-cockpit.sovereign-full-v3 #sticky-actions #prev-step-btn,
  body.unified-cockpit.sovereign-full-v3 #sticky-actions #next-step-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    min-height: 38px !important;
    min-width: 0 !important;
    padding: 0 13px !important;
    border-radius: 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    background: rgba(255, 255, 255, 0.06) !important;
    color: #e2e8f0 !important;
    font: 700 12px/1 var(--cockpit-sans) !important;
    white-space: nowrap !important;
    box-shadow: none !important;
  }

  body.unified-cockpit.sovereign-full-v3 #sticky-actions .sv-dock-btn:hover,
  body.unified-cockpit.sovereign-full-v3 #sticky-actions #prev-step-btn:hover,
  body.unified-cockpit.sovereign-full-v3 #sticky-actions #next-step-btn:hover {
    background: rgba(255, 255, 255, 0.13) !important;
    border-color: rgba(212, 175, 55, 0.45) !important;
    color: #ffffff !important;
  }

  body.unified-cockpit.sovereign-full-v3 #sticky-actions .sv-dock-btn-amber {
    background: rgba(245, 158, 11, 0.15) !important;
    border-color: rgba(245, 158, 11, 0.4) !important;
    color: #fcd34d !important;
  }

  body.unified-cockpit.sovereign-full-v3 #sticky-actions .sv-dock-btn-next {
    background: #d4af37 !important;
    border-color: #d4af37 !important;
    color: #0e1526 !important;
    font-weight: 800 !important;
  }

  body.unified-cockpit.sovereign-full-v3 #sticky-actions #save-status {
    flex: 1;
    text-align: center;
    color: #cbd5e1;
    font: 600 12px/1.3 var(--cockpit-sans);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.unified-cockpit.sovereign-full-v3 #sticky-actions button[type="submit"] {
    min-height: 38px !important;
    min-width: 152px !important;
    padding: 0 18px !important;
    border-radius: 8px !important;
    background: #047857 !important;
    border: 1px solid #059669 !important;
    color: #ffffff !important;
    font: 800 12.5px/1 var(--cockpit-sans) !important;
    box-shadow: 0 2px 8px rgba(4, 120, 87, 0.35) !important;
  }
}

/* ============================================================================
   TICKET #29183 (UI-01NOV-01): MODO CAMPO VERTICAL SCROLL & CLEARANCE
   TICKET #29194 (UI-02NOV-01): DESPLAZAMIENTO VERTICAL EN CAMPO PC (>= 961px)
   Guarantees unrestricted vertical scroll to the bottom-most controls and back
   to the top across all 15 sections on both PC (>= 961px) and mobile viewports.
   ============================================================================ */
html:has(body.unified-cockpit.modo-campo),
body.unified-cockpit.modo-campo,
body.unified-cockpit.modo-campo.sovereign-campo-v9 {
  height: auto !important;
  min-height: 100vh !important;
  max-height: none !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  touch-action: pan-y pinch-zoom;
}

body.unified-cockpit.modo-campo .cockpit-main,
body.unified-cockpit.modo-campo .cockpit-workspace,
body.unified-cockpit.modo-campo .cockpit-capture-surface,
body.unified-cockpit.modo-campo #campo-form-slot,
body.unified-cockpit.modo-campo #main-project-form {
  overflow-y: visible !important;
  max-height: none !important;
  touch-action: pan-y pinch-zoom;
}

body.unified-cockpit.modo-campo .cockpit-workspace {
  padding-bottom: calc(165px + env(safe-area-inset-bottom, 0px)) !important;
}

body.unified-cockpit.modo-campo #campo-form-slot {
  padding-bottom: 48px !important;
}

/* ============================================================================
   TICKET #29433 (UI-07NOV-01): SOVEREIGN CHRONOGRAPH 4-UI PERSONALITY UPGRADE
   Applies the Institutional Obsidian Navy (#0E1526) + Guinda (#7B1E2B) +
   Imperial Gold (#D4AF37) + Emerald (#10B981) aesthetic across all 4 surfaces:
   1. Campo · Desktop (> 960px)
   2. Campo · Mobile (<= 960px)
   3. Escritorio · Desktop & Mobile (E1..E17)
   4. Vista Completa (Full) · Desktop & Mobile
   ============================================================================ */

/* --- 1. Obsidian Navy Left Rail (#cockpit-sidebar) across Campo, Escritorio & Full --- */
@media (min-width: 961px) {
  body.unified-cockpit #cockpit-sidebar {
    background: linear-gradient(180deg, #0e1526 0%, #090e1a 100%) !important;
    border-right: 1px solid rgba(212, 175, 55, 0.26) !important;
    color: #f8fafc !important;
    box-shadow: 6px 0 24px rgba(9, 14, 26, 0.18) !important;
  }

  body.unified-cockpit #cockpit-sidebar .cockpit-sidebar-head,
  body.unified-cockpit #cockpit-sidebar .cockpit-section-head {
    background: rgba(14, 21, 38, 0.92) !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2) !important;
    color: #f8fafc !important;
  }

  body.unified-cockpit #cockpit-sidebar .cockpit-sidebar-label {
    color: #f3d066 !important;
    letter-spacing: 0.08em !important;
    font-weight: 800 !important;
  }

  body.unified-cockpit #cockpit-sidebar .sv-sec-pct-pill {
    background: rgba(212, 175, 55, 0.18) !important;
    color: #f3d066 !important;
    border: 1px solid rgba(212, 175, 55, 0.38) !important;
  }

  body.unified-cockpit #cockpit-sidebar .sf-sidebar-search {
    background: rgba(255, 255, 255, 0.07) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    color: #f8fafc !important;
  }

  body.unified-cockpit #cockpit-sidebar .sf-sidebar-search::placeholder {
    color: #94a3b8 !important;
  }

  body.unified-cockpit #cockpit-sidebar .sv-sidebar-filters {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
  }

  body.unified-cockpit #cockpit-sidebar .sv-sec-filter-btn {
    color: #94a3b8 !important;
  }

  body.unified-cockpit #cockpit-sidebar .sv-sec-filter-btn.is-active {
    background: linear-gradient(135deg, #7b1e2b 0%, #9b2637 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(123, 30, 43, 0.45) !important;
  }

  body.unified-cockpit #cockpit-sidebar a.cockpit-section-link {
    background: rgba(255, 255, 255, 0.025) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-left: 3px solid transparent !important;
    color: #cbd5e1 !important;
    border-radius: 10px !important;
    margin-bottom: 4px !important;
    transition: all 0.15s ease !important;
  }

  body.unified-cockpit #cockpit-sidebar a.cockpit-section-link:hover {
    background: rgba(255, 255, 255, 0.07) !important;
    color: #ffffff !important;
    border-color: rgba(212, 175, 55, 0.25) !important;
  }

  body.unified-cockpit #cockpit-sidebar a.cockpit-section-link b {
    color: #f1f5f9 !important;
  }

  body.unified-cockpit #cockpit-sidebar a.cockpit-section-link .sv-sec-sub,
  body.unified-cockpit #cockpit-sidebar a.cockpit-section-link .sf-sec-sub {
    color: #94a3b8 !important;
  }

  body.unified-cockpit #cockpit-sidebar a.cockpit-section-link .cockpit-section-number {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #cbd5e1 !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
  }

  body.unified-cockpit #cockpit-sidebar a.cockpit-section-link .sv-sec-page-pill {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #94a3b8 !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
  }

  body.unified-cockpit #cockpit-sidebar a.cockpit-section-link.is-active,
  body.unified-cockpit #cockpit-sidebar a.cockpit-section-link[aria-current="location"] {
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.18) 0%, rgba(123, 30, 43, 0.24) 100%) !important;
    border-color: rgba(212, 175, 55, 0.35) !important;
    border-left: 3px solid #d4af37 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22) !important;
  }

  body.unified-cockpit #cockpit-sidebar a.cockpit-section-link.is-active .cockpit-section-number,
  body.unified-cockpit #cockpit-sidebar a.cockpit-section-link[aria-current="location"] .cockpit-section-number {
    background: #d4af37 !important;
    color: #0e1526 !important;
    border-color: #f3d066 !important;
    font-weight: 900 !important;
  }

  body.unified-cockpit #cockpit-sidebar a.cockpit-section-link.is-active .sv-sec-page-pill,
  body.unified-cockpit #cockpit-sidebar a.cockpit-section-link[aria-current="location"] .sv-sec-page-pill {
    background: rgba(212, 175, 55, 0.22) !important;
    color: #f3d066 !important;
    border-color: rgba(212, 175, 55, 0.45) !important;
  }

  body.unified-cockpit #cockpit-sidebar .cockpit-rail-modes,
  body.unified-cockpit #cockpit-sidebar .cockpit-tools {
    background: rgba(9, 14, 26, 0.65) !important;
    border-color: rgba(212, 175, 55, 0.2) !important;
  }

  body.unified-cockpit #cockpit-sidebar .cockpit-mode-pill,
  body.unified-cockpit #cockpit-sidebar .cockpit-tool-link {
    color: #cbd5e1 !important;
  }
}

/* --- 2. Sovereign Executive Chapter Card (.campo-current) & Autopilot Banner --- */
body.unified-cockpit .campo-current {
  background: #ffffff !important;
  border: 1px solid #d8dee9 !important;
  border-left: 5px solid #7b1e2b !important;
  border-radius: 14px !important;
  padding: 16px 20px !important;
  box-shadow: 0 4px 16px rgba(14, 21, 38, 0.06) !important;
}

body.unified-cockpit .campo-kicker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

body.unified-cockpit .campo-kicker-badges {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

body.unified-cockpit .campo-doc-target-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fdf8ed;
  border: 1px solid #e6d08a;
  color: #78350f;
  font: 800 10px/1.1 var(--cockpit-mono, ui-monospace, monospace);
  letter-spacing: 0.04em;
}

body.unified-cockpit .campo-step-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  font: 800 10px/1.1 var(--cockpit-mono, ui-monospace, monospace);
}

body.unified-cockpit .campo-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 4px 0 12px;
}

body.unified-cockpit .campo-sovereign-autopilot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 11px;
  background: linear-gradient(135deg, #fef9ec 0%, #faf1d6 100%);
  border: 1px solid #ead084;
  border-left: 4px solid #b45309;
}

body.unified-cockpit .sv-auto-body {
  flex: 1;
  min-width: 220px;
}

body.unified-cockpit .sv-auto-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #92400e;
  font: 800 9.5px/1.2 var(--cockpit-mono, ui-monospace, monospace);
  letter-spacing: 0.06em;
  margin-bottom: 3px;
}

body.unified-cockpit .sv-auto-headline {
  display: block;
  color: #18202c;
  font: 700 13px/1.3 var(--cockpit-sans);
}

body.unified-cockpit .sv-auto-detail {
  margin: 2px 0 0;
  color: #525d6f;
  font: 500 11.5px/1.35 var(--cockpit-sans);
}

body.unified-cockpit .sv-auto-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

body.unified-cockpit .sv-auto-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px !important;
  padding: 0 13px;
  border-radius: 8px;
  border: 1px solid #d5c28f;
  background: #ffffff;
  color: #78350f;
  font: 700 11.5px/1 var(--cockpit-sans);
  cursor: pointer;
}

body.unified-cockpit .sv-auto-btn-primary {
  background: #047857;
  border-color: #047857;
  color: #ffffff;
}

body.unified-cockpit .campo-kicker {
  font-family: var(--cockpit-mono, ui-monospace, monospace) !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: #7b1e2b !important;
}

body.unified-cockpit .campo-norm-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 6px;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.32);
  font-family: var(--cockpit-mono, ui-monospace, monospace);
  font-size: 10.5px;
  font-weight: 800;
}

body.unified-cockpit .sv-autopilot-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: linear-gradient(90deg, #ecfdf5 0%, #f0fdf4 100%);
  border: 1px solid #a7f3d0;
}

body.unified-cockpit .sv-autopilot-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
  color: #065f46;
}

body.unified-cockpit .sv-autopilot-info strong {
  font-size: 12.5px;
  font-weight: 800;
  color: #064e3b;
}

body.unified-cockpit .sv-autopilot-cta {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid #047857;
  background: #059669;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25);
  transition: all 0.15s ease;
}

body.unified-cockpit .sv-autopilot-cta:hover {
  background: #047857;
  transform: translateY(-1px);
}

/* --- 3. Hardware Tactile Steppers (.sv-hw-stepper-wrap) & Audio-Haptic Pill --- */
.sv-hw-stepper-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  max-width: 240px;
  padding: 3px;
  border-radius: 10px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
}

.sv-hw-stepper-wrap input[type="number"].sv-has-hw-stepper {
  flex: 1;
  min-width: 64px;
  text-align: center !important;
  font-family: var(--cockpit-mono, ui-monospace, monospace) !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 4px 2px !important;
  min-height: 36px !important;
}

.sv-hw-step-btn {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  transition: all 0.1s ease;
  user-select: none;
}

.sv-hw-step-btn:hover {
  background: #0e1526;
  color: #f3d066;
  border-color: #d4af37;
}

.sv-hw-step-btn:active {
  transform: scale(0.93);
}

.campo-topbar-tool.sv-haptics-btn.is-on {
  border-color: rgba(212, 175, 55, 0.45) !important;
  background: rgba(212, 175, 55, 0.14) !important;
  color: #f3d066 !important;
}

/* --- 4. 35ms Gold-Flash Talonario Sync (.sv-paper-cell.is-gold-flash) --- */
@keyframes svGoldFlash {
  0% {
    background-color: rgba(212, 175, 55, 0.38);
    border-color: #d4af37;
    transform: translateY(-1px);
  }
  100% {
    background-color: #f8fafc;
    border-color: #e2e8f0;
    transform: translateY(0);
  }
}

.sv-paper-cell.is-gold-flash {
  animation: svGoldFlash 0.65s ease-out;
  border-color: #d4af37 !important;
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.22);
}

/* --- 5. 2-Column Polaroid Contact Sheet (.sv-polaroid-grid) --- */
body.unified-cockpit ul.sv-polaroid-grid[data-campo-photos] {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body.unified-cockpit .sv-polaroid-item {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 7px;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

body.unified-cockpit .sv-polaroid-thumb {
  height: 112px;
  border-radius: 7px;
  background-color: #0e1526;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 6px;
  overflow: hidden;
}

body.unified-cockpit .sv-polaroid-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 21, 38, 0.1) 0%, rgba(14, 21, 38, 0.72) 100%);
}

body.unified-cockpit .sv-polaroid-id,
body.unified-cockpit .sv-polaroid-sha {
  position: relative;
  z-index: 1;
  font-family: var(--cockpit-mono, ui-monospace, monospace);
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

body.unified-cockpit .sv-polaroid-id {
  background: rgba(14, 21, 38, 0.85);
  color: #f3d066;
  border: 1px solid rgba(212, 175, 55, 0.4);
}

body.unified-cockpit .sv-polaroid-sha {
  background: rgba(6, 95, 70, 0.9);
  color: #6ee7b7;
}

body.unified-cockpit .sv-polaroid-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

body.unified-cockpit .sv-polaroid-req {
  width: 100%;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  padding: 4px 7px !important;
  min-height: 28px !important;
  border-radius: 6px !important;
  border: 1px solid #e2e8f0 !important;
  background: #f8fafc !important;
}

body.unified-cockpit .sv-polaroid-caption-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

body.unified-cockpit .sv-polaroid-desc {
  font-size: 11px;
  color: #475569;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.unified-cockpit .sv-polaroid-edit {
  flex-shrink: 0;
  padding: 2px 7px;
  border-radius: 5px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #1e293b;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
}

/* --- 6. Escritorio 3-Pane Workstation (body.modo-escritorio.sovereign-escritorio-v9) --- */
@media (min-width: 961px) {
  body.modo-escritorio.sovereign-escritorio-v9 #cockpit-sidebar :where(
    .cockpit-brand,
    .cockpit-utilities,
    .cockpit-project,
    .cockpit-nav,
    #cockpit-tools,
    .cockpit-sidebar-foot,
    [data-cockpit-section-count]
  ) {
    display: none !important;
  }

  body.modo-escritorio.sovereign-escritorio-v9 #cockpit-sidebar .cockpit-section-head {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    padding: 12px 12px 10px !important;
  }

  body.modo-escritorio.sovereign-escritorio-v9 .sv-sec-head-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  body.modo-escritorio.sovereign-escritorio-v9 .sv-sec-pct-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    font: 800 10.5px/1 var(--cockpit-mono, ui-monospace, monospace);
  }

  body.modo-escritorio.sovereign-escritorio-v9 .sv-sidebar-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    padding: 3px;
    border-radius: 9px;
  }

  body.modo-escritorio.sovereign-escritorio-v9 .sv-sec-filter-btn {
    min-height: 30px !important;
    min-width: 0 !important;
    padding: 0 8px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    font: 700 11px/1 var(--cockpit-sans);
    white-space: nowrap;
    cursor: pointer;
  }

  body.modo-escritorio.sovereign-escritorio-v9 #cockpit-sidebar .cockpit-section-link {
    display: grid !important;
    grid-template-columns: 34px minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 10px !important;
  }

  body.modo-escritorio.sovereign-escritorio-v9 #cockpit-sidebar .cockpit-section-link .sv-sec-page-pill {
    font: 700 9.5px/1 var(--cockpit-mono, ui-monospace, monospace);
    font-style: normal;
    padding: 3px 6px;
    border-radius: 5px;
  }

  body.modo-escritorio.sovereign-escritorio-v9 .escritorio-topbar .campo-topbar-left,
  body.modo-escritorio.sovereign-escritorio-v9 .escritorio-topbar .campo-topbar-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }

  body.modo-escritorio.sovereign-escritorio-v9 .escritorio-topbar .campo-topbar-ropc {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 8px;
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #6ee7b7;
    font-size: 11px;
    font-weight: 700;
  }

  body.modo-escritorio.sovereign-escritorio-v9 .escritorio-topbar .campo-topbar-tool {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
  }

  body.modo-escritorio.sovereign-escritorio-v9 .escritorio-topbar .campo-topbar-tool kbd {
    padding: 2px 5px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: #f3d066;
    font-family: var(--cockpit-mono, ui-monospace, monospace);
    font-size: 10px;
  }

  body.modo-escritorio.sovereign-escritorio-v9 .escritorio-topbar .campo-topbar-sync {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #6ee7b7;
    font-family: var(--cockpit-mono, ui-monospace, monospace);
    font-size: 10.5px;
    font-weight: 800;
  }

  body.modo-escritorio.sovereign-escritorio-v9 main {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 428px !important;
    column-gap: 18px !important;
    align-items: start !important;
  }

  body.modo-escritorio.sovereign-escritorio-v9 main > :not(#escritorio-talonario-panel) {
    grid-column: 1 !important;
    min-width: 0 !important;
  }

  body.modo-escritorio.sovereign-escritorio-v9 #escritorio-talonario-panel {
    display: block !important;
    grid-column: 2 !important;
    grid-row: 1 / span 14 !important;
    position: sticky !important;
    top: 14px !important;
    align-self: start !important;
    max-height: calc(100vh - 96px) !important;
    overflow-y: auto !important;
    padding: 16px !important;
    border-radius: 14px !important;
    border: 1px solid #ddd5c4 !important;
    background: #ffffff !important;
    box-shadow: 0 2px 6px rgba(24, 20, 14, 0.04), 0 12px 28px rgba(24, 20, 14, 0.06) !important;
  }
}

/* Shared Talonario Virtual Card Styles for Escritorio (#escritorio-talonario-panel) */
#escritorio-talonario-panel .sv-talonario-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

#escritorio-talonario-panel .sv-talonario-kicker {
  display: block;
  color: #7b1e2b;
  font: 800 9.5px/1.2 var(--cockpit-mono, ui-monospace, monospace);
  letter-spacing: 0.08em;
}

#escritorio-talonario-panel .sv-talonario-title {
  display: block;
  margin-top: 2px;
  color: #18202c;
  font: 700 15px/1.2 var(--cockpit-serif, Georgia, serif);
}

#escritorio-talonario-panel .sv-sha-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
  font: 800 10px/1 var(--cockpit-mono, ui-monospace, monospace);
  white-space: nowrap;
}

#escritorio-talonario-panel .sv-talonario-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 3px;
  margin-bottom: 12px;
  border-radius: 9px;
  background: #f3efe6;
  border: 1px solid #e5dec9;
}

#escritorio-talonario-panel .sv-talonario-tab {
  min-height: 32px !important;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #525d6f;
  font: 700 11px/1 var(--cockpit-sans);
  cursor: pointer;
}

#escritorio-talonario-panel .sv-talonario-tab.is-active {
  background: #0e1526;
  color: #ffffff;
}

#escritorio-talonario-panel .sv-paper-sheet {
  padding: 13px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #dcd4c6;
  border-top: 4px solid #7b1e2b;
  box-shadow: 0 2px 4px rgba(14, 21, 38, 0.05), 3px 3px 0 #f2ede2, 4px 4px 0 #d8d0c0;
}

#escritorio-talonario-panel .sv-paper-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eae4d7;
  margin-bottom: 9px;
}

#escritorio-talonario-panel .sv-paper-brand strong {
  display: block;
  color: #7b1e2b;
  font: 800 9.5px/1.2 var(--cockpit-mono, ui-monospace, monospace);
}

#escritorio-talonario-panel .sv-paper-brand span {
  display: block;
  margin-top: 2px;
  color: #18202c;
  font: 700 12px/1.25 var(--cockpit-sans);
}

#escritorio-talonario-panel .sv-paper-page-badge {
  padding: 3px 8px;
  border-radius: 6px;
  background: #fdf8ed;
  border: 1px solid #e6d08a;
  color: #78350f;
  font: 800 10px/1 var(--cockpit-mono, ui-monospace, monospace);
}

#escritorio-talonario-panel .sv-paper-live-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 10px;
}

#escritorio-talonario-panel .sv-paper-cell {
  padding: 6px 8px;
  border-radius: 7px;
  background: #faf7f0;
  border: 1px solid #eae4d7;
  min-width: 0;
}

#escritorio-talonario-panel .sv-paper-cell-lbl {
  display: block;
  color: #647084;
  font: 800 8.5px/1.1 var(--cockpit-mono, ui-monospace, monospace);
}

#escritorio-talonario-panel .sv-paper-cell-val {
  display: block;
  margin-top: 2px;
  color: #18202c;
  font: 700 11px/1.25 var(--cockpit-sans);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#escritorio-talonario-panel .sv-paper-preview-wrap {
  position: relative;
  height: 220px;
  border-radius: 8px;
  border: 1px solid #e2dac7;
  background: #f3efe6;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

#escritorio-talonario-panel .sv-paper-webp {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

#escritorio-talonario-panel .sv-paper-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid #eae4d7;
}

#escritorio-talonario-panel .sv-paper-pager {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#escritorio-talonario-panel .sv-pager-btn {
  min-height: 28px !important;
  padding: 0 9px;
  border-radius: 6px;
  border: 1px solid #d5cbb8;
  background: #faf7f0;
  color: #18202c;
  font: 700 10.5px/1 var(--cockpit-sans);
  cursor: pointer;
}

#escritorio-talonario-panel .sv-paper-open-link {
  padding: 0 10px;
  border-radius: 6px;
  background: #7b1e2b;
  color: #ffffff !important;
  font: 700 10.5px/28px var(--cockpit-sans);
  text-decoration: none;
}

/* --- 7. Vista Completa Sovereign Passport Hero + 5-KPI Telemetry Ribbon + Bento Vigencias --- */
body.unified-cockpit.sovereign-full-v3 .sf-passport-hero {
  background: linear-gradient(135deg, #0e1526 0%, #17223b 62%, #4a121b 100%);
  border: 1px solid rgba(212, 175, 55, 0.42);
  border-radius: 14px;
  padding: 18px 20px;
  color: #f8fafc;
  box-shadow: 0 12px 28px rgba(9, 14, 26, 0.18);
  margin-bottom: 14px;
}

body.unified-cockpit.sovereign-full-v3 .sf-passport-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

body.unified-cockpit.sovereign-full-v3 .sf-passport-main {
  flex: 1 1 360px;
  min-width: 0;
}

body.unified-cockpit.sovereign-full-v3 .sf-passport-kicker {
  font-family: var(--cockpit-mono, ui-monospace, monospace);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f3d066;
  margin-bottom: 6px;
}

body.unified-cockpit.sovereign-full-v3 .sf-passport-title {
  font-family: var(--cockpit-serif, Georgia, serif) !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  line-height: 1.2 !important;
  margin-bottom: 10px !important;
}

body.unified-cockpit.sovereign-full-v3 .sf-passport-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.unified-cockpit.sovereign-full-v3 .sf-passport-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--cockpit-mono, ui-monospace, monospace);
  font-size: 10.5px;
  font-weight: 800;
}

body.unified-cockpit.sovereign-full-v3 .sf-passport-badge.is-gold {
  background: rgba(212, 175, 55, 0.16);
  color: #f3d066;
  border: 1px solid rgba(212, 175, 55, 0.4);
}

body.unified-cockpit.sovereign-full-v3 .sf-passport-badge.is-emerald {
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

body.unified-cockpit.sovereign-full-v3 .sf-passport-badge.is-blue {
  background: rgba(59, 130, 246, 0.18);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.38);
}

body.unified-cockpit.sovereign-full-v3 .sf-passport-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

body.unified-cockpit.sovereign-full-v3 .sf-ropc-sig-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 10px;
  padding: 8px 14px;
  text-align: right;
}

body.unified-cockpit.sovereign-full-v3 .sf-ropc-sig-kicker {
  font-family: var(--cockpit-mono, ui-monospace, monospace);
  font-size: 9px;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.06em;
}

body.unified-cockpit.sovereign-full-v3 .sf-ropc-sig-script {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 16px;
  font-weight: 700;
  color: #f3d066;
  margin: 2px 0;
}

body.unified-cockpit.sovereign-full-v3 .sf-ropc-sig-reg {
  font-family: var(--cockpit-mono, ui-monospace, monospace);
  font-size: 10px;
  font-weight: 700;
  color: #e2e8f0;
}

body.unified-cockpit.sovereign-full-v3 .sf-kpi-ribbon {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

body.unified-cockpit.sovereign-full-v3 .sf-kpi-card {
  background: rgba(9, 14, 26, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

body.unified-cockpit.sovereign-full-v3 .sf-kpi-lbl {
  font-family: var(--cockpit-mono, ui-monospace, monospace);
  font-size: 9.5px;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.04em;
}

body.unified-cockpit.sovereign-full-v3 .sf-kpi-val {
  font-family: var(--cockpit-mono, ui-monospace, monospace);
  font-size: 16px;
  font-weight: 900;
  color: #ffffff;
}

body.unified-cockpit.sovereign-full-v3 .sf-kpi-val.is-emerald {
  color: #34d399;
}

body.unified-cockpit.sovereign-full-v3 .sf-kpi-val.is-gold {
  color: #f3d066;
}

body.unified-cockpit.sovereign-full-v3 .sf-kpi-val.is-amber {
  color: #fbbf24;
}

body.unified-cockpit.sovereign-full-v3 .sf-kpi-sub {
  font-size: 10.5px;
  color: #cbd5e1;
}

/* Module 15 (#vigencias-documentales) Bento Expiration Cards Mode */
body.unified-cockpit.sovereign-full-v3 .sf-bento-mode-toggle {
  margin-left: auto;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  background: #0e1526;
  color: #f3d066;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

body.unified-cockpit.sovereign-full-v3 #vigencias-documentales.is-bento-cards-mode table.data-table thead {
  display: none;
}

body.unified-cockpit.sovereign-full-v3 #vigencias-documentales.is-bento-cards-mode table.data-table,
body.unified-cockpit.sovereign-full-v3 #vigencias-documentales.is-bento-cards-mode table.data-table tbody {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 12px;
  border: 0;
  background: transparent;
}

body.unified-cockpit.sovereign-full-v3 #vigencias-documentales.is-bento-cards-mode table.data-table tbody tr {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  border-left: 4px solid #10b981;
  background: #ffffff;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.05);
}

body.unified-cockpit.sovereign-full-v3 #vigencias-documentales.is-bento-cards-mode table.data-table tbody td {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 3px 0;
  border: 0;
  font-size: 12px;
}

body.unified-cockpit.sovereign-full-v3 #vigencias-documentales.is-bento-cards-mode table.data-table tbody td::before {
  content: attr(data-label);
  font-family: var(--cockpit-mono, ui-monospace, monospace);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: #64748b;
}

/* --- 8. Mobile Bottom-Sheet Mirror Drawer & Responsive Rules (<= 960px) --- */
.sv-mobile-mirror-btn,
.sv-mobile-drawer-bar {
  display: none;
}

@media (max-width: 960px) {
  .sv-mobile-mirror-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    padding: 5px 10px !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, #7b1e2b 0%, #9b2637 100%) !important;
    border: 1px solid rgba(212, 175, 55, 0.55) !important;
    color: #ffffff !important;
    font-size: 11.5px !important;
    font-weight: 800 !important;
  }

  .sv-hw-step-btn {
    width: 46px;
    height: 46px;
    font-size: 20px;
  }

  body.unified-cockpit.sovereign-full-v3 .sf-kpi-ribbon {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.unified-cockpit.is-mobile-mirror-open .cockpit-evidence-panel,
  body.unified-cockpit.is-mobile-mirror-open #escritorio-talonario-panel,
  body.unified-cockpit.is-mobile-mirror-open #sovereign-full-talonario {
    display: block !important;
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    z-index: 1200 !important;
    max-height: 82vh !important;
    overflow-y: auto !important;
    padding: 12px 14px 90px !important;
    background: #0e1526 !important;
    border-top: 2px solid #d4af37 !important;
    border-radius: 18px 18px 0 0 !important;
    box-shadow: 0 -16px 40px rgba(9, 14, 26, 0.65) !important;
  }

  body.unified-cockpit.is-mobile-mirror-open .sv-mobile-drawer-bar {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.24);
  }

  body.unified-cockpit.is-mobile-mirror-open .sv-mobile-drawer-handle {
    width: 44px;
    height: 5px;
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.45);
  }

  body.unified-cockpit.is-mobile-mirror-open .sv-mobile-drawer-close {
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid rgba(212, 175, 55, 0.45);
    background: rgba(255, 255, 255, 0.1);
    color: #f3d066;
    font-size: 11.5px;
    font-weight: 800;
    cursor: pointer;
  }
}

/* ============================================================================
   TICKET #29506 — SOVEREIGN CLIENT ONBOARDING, CREW GOVERNANCE & TOKEN SWITCH
   (/admin/clients, /admin/clients/{id}, /account/users)
   ============================================================================ */
.sov-onboarding-wrap {
  max-width: 1460px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sov-hierarchy-ribbon {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.sov-tier-card {
  background: #ffffff;
  border: 1px solid #d5cbb8;
  border-radius: 14px;
  padding: 15px 18px;
  box-shadow: 0 2px 6px rgba(14, 21, 38, 0.04);
  display: flex;
  align-items: flex-start;
  gap: 13px;
  position: relative;
  overflow: hidden;
}

.sov-tier-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #7b1e2b;
}

.sov-tier-card.tier-super::before { background: #b8892b; }
.sov-tier-card.tier-admin::before { background: #7b1e2b; }
.sov-tier-card.tier-crew::before  { background: #047857; }

.sov-tier-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-family: var(--cockpit-mono, 'IBM Plex Mono', monospace);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.sov-tier-card.tier-super .sov-tier-icon { background: #fef3c7; border: 1px solid #fde68a; color: #92400e; }
.sov-tier-card.tier-admin .sov-tier-icon { background: #fce7ea; border: 1px solid #f4c2c9; color: #7b1e2b; }
.sov-tier-card.tier-crew  .sov-tier-icon { background: #ecfdf5; border: 1px solid #a7f3d0; color: #047857; }

.sov-tier-meta h3 {
  margin: 0 0 4px;
  font-size: 13.5px;
  font-weight: 800;
  color: #18202c;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sov-tier-meta p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: #525d6f;
}

.sov-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-family: var(--cockpit-mono, 'IBM Plex Mono', monospace);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.sov-pill.gold    { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.sov-pill.crimson { background: #fce7ea; color: #7b1e2b; border: 1px solid #f4c2c9; }
.sov-pill.emerald { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.sov-pill.slate   { background: #f1f5f9; color: #334155; border: 1px solid #cbd5e1; }
.sov-pill.amber   { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }

.sov-split-onboarding {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 20px;
  align-items: start;
}

.sov-card {
  background: #ffffff;
  border: 1px solid #d5cbb8;
  border-radius: 16px;
  box-shadow: 0 2px 6px rgba(14, 21, 38, 0.04), 0 14px 34px rgba(14, 21, 38, 0.06);
  overflow: hidden;
}

.sov-card-head {
  padding: 18px 22px 14px;
  border-bottom: 1px solid #e3dccd;
  background: linear-gradient(180deg, #ffffff 0%, #faf6ee 100%);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.sov-kicker {
  font-family: var(--cockpit-mono, 'IBM Plex Mono', monospace);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #7b1e2b;
  margin-bottom: 4px;
}

.sov-title {
  margin: 0;
  font-family: var(--cockpit-serif, 'Fraunces', Georgia, serif);
  font-size: 21px;
  font-weight: 700;
  color: #18202c;
  letter-spacing: -0.01em;
}

.sov-sub {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: #525d6f;
}

.sov-card-body {
  padding: 20px 22px;
}

.sov-section-divider {
  margin: 18px 0 12px;
  padding-top: 14px;
  border-top: 1px dashed #d5cbb8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.sov-section-divider h4 {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7b1e2b;
}

.sov-pkg-pills {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.sov-pkg-pill {
  background: #faf6ee;
  border: 1.5px solid #d5cbb8;
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  text-align: left;
  transition: all 0.14s ease;
}

.sov-pkg-pill:hover {
  border-color: #b8892b;
  background: #ffffff;
}

.sov-pkg-pill.active {
  background: #fef9ec;
  border-color: #7b1e2b;
  box-shadow: 0 0 0 2px rgba(123, 30, 43, 0.12);
}

.sov-pkg-pill strong {
  display: block;
  font-size: 12.5px;
  color: #18202c;
}

.sov-pkg-pill span {
  display: block;
  font-family: var(--cockpit-mono, 'IBM Plex Mono', monospace);
  font-size: 11px;
  color: #7b1e2b;
  font-weight: 700;
  margin-top: 2px;
}

.sov-pkg-pill small {
  display: block;
  font-size: 10.5px;
  color: #525d6f;
  margin-top: 2px;
}

/* Sticky WhatsApp Live Glass Twin Card */
.sov-wa-twin {
  position: sticky;
  top: 76px;
  background: #0e1526;
  color: #f8f5ef;
  border-radius: 16px;
  border: 1px solid rgba(212, 175, 55, 0.38);
  box-shadow: 0 18px 42px rgba(14, 21, 38, 0.24);
  overflow: hidden;
}

.sov-wa-head {
  padding: 15px 18px;
  background: linear-gradient(135deg, #0b1120 0%, #17223b 100%);
  border-bottom: 1px solid rgba(212, 175, 55, 0.24);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sov-wa-head-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sov-wa-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

.sov-wa-title {
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
}

.sov-wa-sub {
  font-family: var(--cockpit-mono, 'IBM Plex Mono', monospace);
  font-size: 10.5px;
  color: #e6c665;
}

.sov-wa-stage {
  padding: 16px 18px;
  background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.1), transparent 60%);
}

.sov-wa-bubble {
  background: #dcf8c6;
  color: #111b21;
  border-radius: 14px 14px 14px 4px;
  padding: 14px 15px;
  font-size: 12.5px;
  line-height: 1.5;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  border: 1px solid #b7e49c;
}

.sov-wa-bubble .wa-line { margin-bottom: 7px; }
.sov-wa-bubble .wa-line:last-child { margin-bottom: 0; }

.sov-wa-bubble code {
  font-family: var(--cockpit-mono, 'IBM Plex Mono', monospace);
  background: rgba(0, 0, 0, 0.07);
  padding: 1px 6px;
  border-radius: 5px;
  font-weight: 700;
  color: #064e3b;
}

.sov-wa-meta {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  font-size: 10.5px;
  color: #065f46;
  font-weight: 700;
  margin-top: 6px;
}

.sov-wa-actions {
  padding: 14px 18px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.sov-btn-wa {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 800;
  border: 1px solid #059669;
  background: #047857;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.sov-btn-wa:hover {
  background: #065f46;
}

/* 4-KPI Strip on Client Detail & Account Users */
.sov-kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.sov-kpi-box {
  background: #ffffff;
  border: 1px solid #d5cbb8;
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 2px 6px rgba(14, 21, 38, 0.04);
}

.sov-kpi-box .k-label {
  font-family: var(--cockpit-mono, 'IBM Plex Mono', monospace);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #525d6f;
}

.sov-kpi-box .k-val {
  font-family: var(--cockpit-serif, 'Fraunces', Georgia, serif);
  font-size: 26px;
  font-weight: 700;
  color: #18202c;
  margin: 4px 0 2px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.sov-kpi-box .k-sub {
  font-size: 11.5px;
  color: #525d6f;
}

/* Tactile Per-User Credit Spending Switch */
.sov-token-switch-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 11px;
  border-radius: 10px;
  background: #faf6ee;
  border: 1px solid #d5cbb8;
}

.sov-token-switch-wrap.allowed {
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.sov-token-switch-wrap.draft-only {
  background: #fffbeb;
  border-color: #fde68a;
}

.sov-switch {
  position: relative !important;
  width: 44px !important;
  height: 24px !important;
  min-width: 44px !important;
  min-height: 24px !important;
  border-radius: 999px !important;
  background: #cbd5e1 !important;
  border: 1px solid #94a3b8 !important;
  cursor: pointer;
  transition: all 0.18s ease;
  flex-shrink: 0;
  padding: 0 !important;
}

.sov-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.18s ease;
}

.sov-switch.on {
  background: #047857 !important;
  border-color: #065f46 !important;
}

.sov-switch.on::after {
  transform: translateX(20px);
}

.sov-switch.locked {
  opacity: 0.72;
  cursor: not-allowed;
}

.sov-switch-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  text-align: left;
}

.sov-switch-text strong {
  font-size: 11.5px;
  color: #18202c;
}

.sov-switch-text span {
  font-family: var(--cockpit-mono, 'IBM Plex Mono', monospace);
  font-size: 10px;
  color: #525d6f;
}

/* Word Dock Simulator on /account/users */
.sov-word-sim {
  margin-top: 14px;
  padding: 15px 18px;
  border-radius: 14px;
  background: #0e1526;
  color: #f8f5ef;
  border: 1px solid rgba(212, 175, 55, 0.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.sov-word-sim-left span {
  display: block;
  font-family: var(--cockpit-mono, 'IBM Plex Mono', monospace);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #e6c665;
}

.sov-word-sim-left strong {
  display: block;
  font-size: 13.5px;
  margin-top: 2px;
}

.sov-word-sim-btns {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.sov-sim-btn-draft {
  padding: 9px 14px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

.sov-sim-btn-final {
  padding: 9px 14px;
  border-radius: 9px;
  background: #047857;
  border: 1px solid #10b981;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.sov-sim-btn-final.locked {
  background: rgba(180, 83, 9, 0.22);
  border: 1px dashed #fbbf24;
  color: #fde68a;
}

.sov-word-lock-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 8px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 12px;
}

/* Modal for Direct Password Override */
.sov-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(14, 21, 38, 0.62);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1300;
  padding: 20px;
}

.sov-modal-backdrop.open {
  display: flex;
}

.sov-modal {
  width: 100%;
  max-width: 520px;
  background: #ffffff;
  border: 1px solid #d5cbb8;
  border-top: 4px solid #7b1e2b;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(14, 21, 38, 0.35);
  overflow: hidden;
}

@media (max-width: 1120px) {
  .sov-hierarchy-ribbon { grid-template-columns: 1fr; }
  .sov-split-onboarding { grid-template-columns: 1fr; }
  .sov-kpi-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sov-pkg-pills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* High-contrast Sovereign Role Badges */
body.unified-cockpit .badge-role-superadmin {
  background: #0e1526 !important;
  color: #e6c665 !important;
  border: 1px solid #d4af37 !important;
}

body.unified-cockpit .badge-role-admin {
  background: #fbf2f4 !important;
  color: #7b1e2b !important;
  border: 1px solid rgba(123, 30, 43, 0.35) !important;
}

body.unified-cockpit .badge-role-editor {
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  border: 1px solid #bfdbfe !important;
}

body.unified-cockpit .badge-role-viewer {
  background: #f1f5f9 !important;
  color: #475569 !important;
  border: 1px solid #cbd5e1 !important;
}

/* ==========================================================================
   TICKET #29697 · SOVEREIGN ZERO-FEAR ZOOM ONBOARDING (1 BOTÓN → 2 BOTONES)
   ========================================================================== */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/static/fonts/fraunces-600.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/static/fonts/fraunces-700.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/inter-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/static/fonts/inter-600.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/static/fonts/inter-700.woff2") format("woff2");
}

.zf-ico-lg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.zf-kicker {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b1d2f;
  margin-bottom: 6px;
}

/* Scene 2: «Solo 1 Botón» Empty Home Stage (/) */
.is-zero-fear-empty #mobile-project-resume {
  display: none !important;
}

.zf-empty-stage {
  min-height: calc(100vh - 110px);
  padding: clamp(18px, 3vw, 36px) 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.zf-empty-card {
  width: 100%;
  max-width: 680px;
  background: #ffffff;
  border: 1px solid #e2dcd2;
  border-radius: 22px;
  padding: clamp(22px, 3vw, 34px);
  box-shadow: 0 24px 52px -14px rgba(15, 27, 43, 0.16);
}

.zf-shield-reassurance {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(12, 107, 77, 0.09);
  border: 1.5px solid rgba(12, 107, 77, 0.28);
  color: #064e3b;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 18px;
}

.zf-shield-reassurance svg {
  color: #0c6b4d;
  margin-top: 1px;
}

.zf-shield-reassurance strong {
  display: block;
  font-size: 13.5px;
  color: #064e3b;
  margin-bottom: 2px;
}

.zf-shield-reassurance span {
  display: block;
  font-size: 12.5px;
  line-height: 1.42;
  color: #064e3b;
}

.zf-headline {
  margin: 0 0 8px;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(24px, 2.8vw, 32px);
  line-height: 1.14;
  color: #0f1b2b;
}

.zf-sub {
  margin: 0 0 18px;
  font-size: 14.5px;
  line-height: 1.5;
  color: #475569;
}

.zf-field-label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: #0f1b2b;
  margin-bottom: 6px;
}

.zf-field-input {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  color: #0f1b2b;
  background: #fcfbf9;
  border: 1.5px solid #cbbba3;
  border-radius: 12px;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.zf-field-input:focus {
  outline: none;
  background: #ffffff;
  border-color: #6b1d2f;
  box-shadow: 0 0 0 4px rgba(107, 29, 47, 0.12);
}

.zf-quick-presets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 10px 0 18px;
}

.zf-preset-hint {
  font-size: 12px;
  color: #5b6878;
  margin-right: 4px;
}

.zf-preset-chip {
  appearance: none;
  border: 1px solid #cbbba3;
  background: #f5f1ea;
  color: #0f1b2b;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  min-height: 38px;
  padding: 6px 13px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.14s ease;
}

.zf-preset-chip:hover {
  border-color: #6b1d2f;
  background: #ffffff;
}

.zf-btn-jewel {
  appearance: none;
  width: 100%;
  min-height: 54px;
  padding: 12px 26px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(135deg, #6b1d2f, #4a1320) !important;
  color: #ffffff !important;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: 0 8px 22px -4px rgba(107, 29, 47, 0.44);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  transition: transform 0.12s ease, filter 0.12s ease;
}

.zf-btn-jewel:hover {
  filter: brightness(1.07);
}

.zf-btn-jewel:active {
  transform: scale(0.98);
}

.zf-five-steps {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #e9e2d6;
  font-size: 13px;
  color: #475569;
}

.zf-five-steps summary {
  cursor: pointer;
  font-weight: 700;
  color: #5b6878;
  list-style: none;
}

.zf-five-steps ol {
  margin: 10px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 5px;
}

/* Scene 3: «Solo los 2 Botones» (/projects/{id}/modo) */
body.unified-cockpit .zf-modo-page {
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(18px, 3vw, 34px) 16px 42px;
}

.zf-two-doors-stage {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

.zf-two-doors-header {
  text-align: center;
  margin-bottom: 22px;
}

.zf-pill-gold {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 9999px;
  background: rgba(184, 134, 40, 0.13);
  border: 1px solid rgba(184, 134, 40, 0.42);
  color: #966919;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 11.5px;
  font-weight: 700;
}

.zf-two-doors-header h1 {
  margin: 10px 0 6px !important;
  font-family: "Fraunces", Georgia, serif !important;
  font-size: clamp(26px, 3vw, 34px) !important;
  line-height: 1.12 !important;
  color: #0f1b2b !important;
}

.zf-two-doors-header p {
  margin: 0 auto !important;
  max-width: 620px;
  font-size: 14.5px;
  line-height: 1.5;
  color: #475569;
}

body.unified-cockpit .zf-modo-page .zf-two-doors-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 20px !important;
}

body.unified-cockpit .zf-modo-page .zf-two-doors-grid.is-single-door {
  grid-template-columns: minmax(0, 540px) !important;
  justify-content: center;
}

body.unified-cockpit .zf-modo-page .zf-door-monolith {
  position: relative;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  gap: 18px !important;
  min-height: 0 !important;
  padding: 22px 24px !important;
  background: #ffffff !important;
  border: 2px solid #cbbba3 !important;
  border-radius: 22px !important;
  box-shadow: 0 10px 30px -8px rgba(15, 27, 43, 0.08), 0 2px 6px rgba(15, 27, 43, 0.04) !important;
  text-decoration: none !important;
  color: #0f1b2b !important;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease !important;
}

body.unified-cockpit .zf-modo-page .zf-door-monolith::before {
  display: none !important;
  content: none !important;
}

body.unified-cockpit .zf-modo-page .zf-door-monolith.is-campo {
  border-top: 6px solid #6b1d2f !important;
}

body.unified-cockpit .zf-modo-page .zf-door-monolith.is-campo:hover {
  transform: translateY(-3px);
  border-color: #6b1d2f !important;
  box-shadow: 0 24px 52px -14px rgba(15, 27, 43, 0.18) !important;
}

body.unified-cockpit .zf-modo-page .zf-door-monolith.is-escritorio {
  border-top: 6px solid #0f1b2b !important;
}

body.unified-cockpit .zf-modo-page .zf-door-monolith.is-escritorio:hover {
  transform: translateY(-3px);
  border-color: #0f1b2b !important;
  box-shadow: 0 24px 52px -14px rgba(15, 27, 43, 0.18) !important;
}

.zf-door-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
}

.zf-door-monolith.is-campo .zf-door-icon-badge {
  background: rgba(107, 29, 47, 0.1);
  color: #6b1d2f;
}

.zf-door-monolith.is-escritorio .zf-door-icon-badge {
  background: rgba(15, 27, 43, 0.09);
  color: #0f1b2b;
}

body.unified-cockpit .zf-modo-page .zf-door-step-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3 !important;
  background: #f5f1ea;
  color: #475569 !important;
  margin-bottom: 6px;
}

body.unified-cockpit .zf-modo-page .zf-door-title {
  margin: 0 0 6px !important;
}

body.unified-cockpit .zf-modo-page .zf-door-title b {
  display: inline !important;
  margin: 0 !important;
  font-family: "Fraunces", Georgia, serif !important;
  font-size: 26px !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  color: #0f1b2b !important;
}

body.unified-cockpit .zf-modo-page .zf-door-desc {
  margin: 0 0 12px !important;
  font-size: 13.8px;
  line-height: 1.5;
  color: #475569 !important;
}

.zf-door-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
}

.zf-door-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #0f1b2b;
}

body.unified-cockpit .zf-modo-page .zf-door-checklist li span {
  color: #0f1b2b !important;
  line-height: 1.38 !important;
}

.zf-ico-check {
  width: 17px;
  height: 17px;
  color: #0c6b4d;
  flex-shrink: 0;
  margin-top: 1px;
}

.zf-door-cta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 10px 18px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 14.5px;
  color: #ffffff !important;
}

body.unified-cockpit .zf-modo-page .zf-door-cta-bar span {
  color: #ffffff !important;
  line-height: 1.2 !important;
}

.zf-door-monolith.is-campo .zf-door-cta-bar {
  background: linear-gradient(135deg, #6b1d2f, #4a1320);
  box-shadow: 0 8px 22px -4px rgba(107, 29, 47, 0.44);
}

.zf-door-monolith.is-escritorio .zf-door-cta-bar {
  background: linear-gradient(135deg, #0f1b2b, #1b2b42);
  box-shadow: 0 8px 20px -4px rgba(15, 27, 43, 0.35);
}

.zf-continuity-note {
  margin: 22px auto 0 !important;
  text-align: center;
  padding: 12px 18px;
  border-radius: 9999px;
  background: #f5f1ea;
  border: 1px solid #e2dcd2;
  font-size: 13.5px;
  font-weight: 600;
  color: #475569 !important;
}

/* Scene 4: Paso 17 Word (.docx) Lock → 3-Zone Cinemascope WhatsApp Closer */
.zf-cinemascope-closer {
  container-type: inline-size;
  background: #ffffff;
  color: #0f1b2b;
  border: 1.5px solid #cbbba3;
  border-radius: 22px;
  box-shadow: 0 20px 44px -14px rgba(15, 27, 43, 0.16);
  overflow: hidden;
  margin: 10px 0 18px;
  text-align: left;
}

.zf-cm-zone1 {
  background: #0a121e;
  color: #ffffff;
  padding: 15px 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid rgba(223, 174, 75, 0.35);
}

.zf-cm-zone1-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.zf-cm-zone1-left strong {
  color: #ffffff;
}

.zf-pill-gold-dark {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 9999px;
  background: rgba(223, 174, 75, 0.16);
  border: 1px solid rgba(223, 174, 75, 0.48);
  color: #fae5b4;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
}

.zf-cm-balance {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  color: #fcd34d;
}

.zf-cm-zone2 {
  padding: 24px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  align-items: center;
}

@container (max-width: 780px) {
  .zf-cm-zone2 {
    grid-template-columns: 1fr;
    padding: 18px 20px;
    gap: 16px;
  }
}

.zf-docx-locked-sheet {
  background: #f5f1ea;
  border: 1.5px solid #cbbba3;
  border-radius: 16px;
  padding: 16px 18px;
}

.zf-docx-sheet-paper {
  background: #ffffff;
  border: 1px solid #e2dcd2;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 4px 14px rgba(15, 27, 43, 0.05);
}

.zf-docx-sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  border-bottom: 1px solid #e2dcd2;
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.zf-docx-sheet-head strong {
  color: #0f1b2b;
  font-size: 15px;
}

.zf-docx-kicker {
  display: block;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 10.5px;
  font-weight: 700;
  color: #6b1d2f;
}

.zf-docx-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  font-size: 12px;
}

.zf-docx-mini-grid > div {
  background: #fcfbf9;
  border: 1px solid #e9e2d6;
  padding: 8px 10px;
  border-radius: 8px;
  color: #0f1b2b;
}

.zf-docx-mini-grid strong {
  color: #0f1b2b;
  font-size: 12px;
  line-height: 1.25;
}

.zf-docx-mini-grid span {
  display: block;
  color: #5b6878;
  font-size: 11px;
  margin-bottom: 2px;
}

.zf-docx-lock-ribbon {
  margin-top: 12px;
  background: rgba(184, 134, 40, 0.13);
  border: 1.5px solid rgba(184, 134, 40, 0.45);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #0f1b2b;
  font-size: 13px;
}

.zf-docx-lock-ribbon svg {
  color: #966919;
  margin-top: 2px;
}

.zf-docx-lock-ribbon strong {
  display: block;
  margin-bottom: 2px;
}

.zf-cm-title {
  margin: 0 0 8px !important;
  font-family: "Fraunces", Georgia, serif !important;
  font-size: clamp(22px, 2.4vw, 28px) !important;
  line-height: 1.15 !important;
  color: #0f1b2b !important;
}

.zf-cm-copy {
  margin: 0;
  font-size: 14px;
  color: #475569;
  line-height: 1.5;
}

.zf-wa-preview-bubble {
  background: #ecfdf5;
  border: 1.5px solid rgba(12, 107, 77, 0.32);
  border-radius: 14px;
  padding: 14px 16px;
  margin-top: 14px;
  font-size: 13px;
  color: #064e3b;
  line-height: 1.45;
}

.zf-wa-preview-bubble strong {
  display: block;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.zf-cm-zone3 {
  background: #f5f1ea;
  border-top: 1px solid #e2dcd2;
  padding: 14px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.zf-mesa-word-closer {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(12, 107, 77, 0.14);
  border: 1px solid rgba(110, 231, 183, 0.35);
  max-width: 540px;
  text-align: left;
}

.zf-mesa-word-closer strong {
  display: block;
  margin-bottom: 6px;
  color: #ecfdf5;
}

.zf-mesa-word-closer p {
  margin: 0 0 12px !important;
  font-size: 13.5px;
}

/* Shared Buttons & Badges (Scene 4 & Scene 5) */
.zf-btn-emerald {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 22px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: linear-gradient(135deg, #10855f, #064e3b) !important;
  color: #ffffff !important;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 8px 20px -4px rgba(12, 107, 77, 0.38);
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.12s ease, filter 0.12s ease;
}

.zf-btn-emerald:hover {
  filter: brightness(1.06);
}

.zf-btn-secondary {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 18px;
  border-radius: 9999px;
  border: 1px solid #cbbba3;
  background: #ffffff;
  color: #0f1b2b !important;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none !important;
  transition: background 0.15s ease;
}

.zf-btn-secondary:hover {
  background: #f5f1ea;
}

.zf-badge-isolated {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 9999px;
  background: rgba(12, 107, 77, 0.1);
  color: #0c6b4d;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.zf-badge-zero-tok {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 9999px;
  background: rgba(184, 134, 40, 0.14);
  color: #7c430a;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

/* Scene 5: Superadmin Zoom KPIs & Isolated Prospects Table */
.zf-kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.zf-kpi-tile {
  background: #ffffff;
  border: 1px solid #e2dcd2;
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: 0 8px 24px -8px rgba(15, 27, 43, 0.07);
}

.zf-kpi-tile span {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #5b6878;
}

.zf-kpi-tile strong {
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-size: 27px;
  color: #0f1b2b;
  margin: 4px 0 2px;
}

.zf-kpi-tile strong.is-safe {
  color: #0c6b4d;
  font-size: 22px;
}

.zf-kpi-tile strong.is-warn {
  color: #7c430a;
  font-size: 22px;
}

.zf-kpi-tile small {
  font-size: 12.5px;
  color: #475569;
}

.zf-invite-pre {
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #064e3b;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 12.5px;
}

.zf-leads-table-wrap {
  overflow-x: auto;
}

table.zf-leads-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

table.zf-leads-table th {
  text-align: left;
  padding: 12px 14px;
  background: #f5f1ea;
  border-bottom: 1.5px solid #cbbba3;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #475569;
}

table.zf-leads-table td {
  padding: 13px 14px;
  border-bottom: 1px solid #e2dcd2;
  vertical-align: middle;
}

@media (max-width: 860px) {
  body.unified-cockpit .zf-modo-page .zf-two-doors-grid {
    grid-template-columns: 1fr !important;
  }
  .zf-cm-zone2 {
    grid-template-columns: 1fr;
    padding: 18px;
  }
  .zf-docx-mini-grid {
    grid-template-columns: 1fr;
  }
  .zf-cm-zone3 {
    flex-direction: column;
    align-items: stretch;
  }
  .zf-cm-zone3 a {
    width: 100%;
  }
}

/* ==========================================================================
   Sovereign Vitrina · Radar del Zoom · Inicio Rápido 60s (Ticket #29750)
   60-30-10 Daylight Architectural System · Zero-Hex in Rules (All hex in :root)
   ========================================================================== */
:root {
  --sv-bg: #FAF8F4;
  --sv-surface: #FFFFFF;
  --sv-surface-soft: #F3EFE7;
  --sv-surface-warm: #FFFEFC;
  --sv-ink: #0D1726;
  --sv-ink-2: #142338;
  --sv-ink-muted: #526174;
  --sv-ink-soft: #6C788B;
  --sv-ink-dim: #7C8798;
  --sv-border: #E5DFD3;
  --sv-border-strong: #D3CAB8;
  --sv-border-hair: #EAE4D8;
  --sv-guinda: #7B1E2B;
  --sv-guinda-hover: #5E1520;
  --sv-guinda-soft: #FBF1F3;
  --sv-guinda-border: #E8C5CB;
  --sv-emerald: #0D6E4F;
  --sv-emerald-bg: #EBF7F2;
  --sv-emerald-border: #B2DEC9;
  --sv-gold: #C89B3C;
  --sv-gold-deep: #966D15;
  --sv-gold-bg: #FCF7EB;
  --sv-gold-border: #EAD5A1;
  --sv-amber: #B45309;
  --sv-amber-bg: #FEF5E7;
  --sv-amber-border: #F3D19B;
  --sv-navy-dark: #0A1322;
  --sv-veil-bg: rgba(255, 253, 249, 0.90);
  --sv-veil-line: rgba(123, 30, 43, 0.25);
  --sv-veil-glow: rgba(200, 155, 60, 0.22);
  --sv-modal-backdrop: rgba(13, 23, 38, 0.62);
  --sv-bar-tint: rgba(250, 248, 244, 0.94);
  --sv-white: #FFFFFF;
  --sv-map-sea: #EBF2F7;
  --sv-map-land: #F8F4EC;
  --sv-map-park: #DCECE4;
  --sv-map-zone-stroke: #B87344;
  --sv-map-road: #DDD5C7;
  --sv-map-ring: #2563EB;
  --sv-font-display: 'Fraunces', Georgia, serif;
  --sv-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --sv-radius-sm: 8px;
  --sv-radius-md: 12px;
  --sv-radius-lg: 16px;
  --sv-shadow-sheet: 0 22px 52px -18px rgba(13, 23, 38, 0.14), 0 4px 14px -4px rgba(13, 23, 38, 0.06);
  --sv-shadow-card: 0 6px 20px -10px rgba(13, 23, 38, 0.09);
  --sv-shadow-rail: 0 12px 30px -14px rgba(13, 23, 38, 0.12);
  --sv-shadow-modal: 0 32px 80px rgba(13, 23, 38, 0.42);
}

.sv-stage {
  font-family: var(--sv-font-sans);
  color: var(--sv-ink);
  background: var(--sv-bg);
  border-radius: var(--sv-radius-lg);
  padding: 22px;
  border: 1px solid var(--sv-border);
  box-shadow: var(--sv-shadow-card);
}

.sv-eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sv-guinda);
  margin: 0 0 6px;
}

.sv-display {
  font-family: var(--sv-font-display);
  font-weight: 700;
  color: var(--sv-ink);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.sv-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  border: 1px solid var(--sv-border);
  background: var(--sv-surface);
  color: var(--sv-ink);
  white-space: nowrap;
}

.sv-badge.is-locked,
.sv-badge.is-warn {
  background: var(--sv-amber-bg);
  border-color: var(--sv-amber-border);
  color: var(--sv-amber);
}

.sv-badge.is-unlocked,
.sv-badge.is-emerald {
  background: var(--sv-emerald-bg);
  border-color: var(--sv-emerald-border);
  color: var(--sv-emerald);
}

.sv-badge.is-guinda {
  background: var(--sv-guinda-soft);
  border-color: var(--sv-guinda-border);
  color: var(--sv-guinda);
}

.sv-badge.is-gold {
  background: var(--sv-gold-bg);
  border-color: var(--sv-gold-border);
  color: var(--sv-gold-deep);
}

/* --- View 1: Inicio Rápido 60s --- */
.sv-start-wrap {
  max-width: 1180px;
  margin: 14px auto 32px;
  padding: 26px;
  background: var(--sv-bg);
  border: 1px solid var(--sv-border);
  border-radius: var(--sv-radius-lg);
  box-shadow: var(--sv-shadow-sheet);
}

.sv-shield-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 16px;
  border-radius: var(--sv-radius-md);
  background: var(--sv-emerald-bg);
  border: 1px solid var(--sv-emerald-border);
  color: var(--sv-emerald);
  margin-bottom: 18px;
}

.sv-shield-row-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sv-shield-row strong {
  display: block;
  font-size: 13.5px;
  color: var(--sv-ink);
}

.sv-shield-row span {
  font-size: 12.2px;
  color: var(--sv-ink-muted);
}

.sv-start-head {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  align-items: start;
  gap: 20px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--sv-border);
}

.sv-start-head h1 {
  font-family: var(--sv-font-display);
  font-size: clamp(24px, 3vw, 31px);
  font-weight: 700;
  color: var(--sv-ink);
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}

.sv-start-head p {
  margin: 0;
  font-size: 13.5px;
  color: var(--sv-ink-muted);
  max-width: 600px;
  line-height: 1.5;
}

.sv-ropc-card {
  background: var(--sv-surface);
  border: 1px solid var(--sv-border-strong);
  border-radius: var(--sv-radius-md);
  padding: 14px 16px;
  box-shadow: var(--sv-shadow-card);
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  container-type: inline-size;
  container-name: svropc;
}

.sv-ropc-card-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.sv-ropc-card-head span {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sv-guinda);
}

.sv-ropc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}

@container svropc (max-width: 460px) {
  .sv-ropc-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.sv-ropc-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.sv-ropc-field.is-wide {
  grid-column: 1 / -1;
}

.sv-ropc-field label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--sv-ink-muted);
}

.sv-ropc-field input {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--sv-border-strong);
  border-radius: var(--sv-radius-sm);
  padding: 7px 10px;
  font-size: 12.5px;
  font-family: var(--sv-font-sans);
  color: var(--sv-ink);
  background: var(--sv-surface-warm);
}

.sv-ropc-field input:focus {
  outline: 2px solid var(--sv-guinda);
  outline-offset: 1px;
  border-color: var(--sv-guinda);
}

.sv-start-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: 20px;
  align-items: start;
}

@media (max-width: 960px) {
  .sv-start-head,
  .sv-start-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .sv-ropc-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.sv-card-panel {
  background: var(--sv-surface);
  border: 1px solid var(--sv-border);
  border-radius: var(--sv-radius-lg);
  padding: 18px;
  box-shadow: var(--sv-shadow-card);
}

.sv-panel-title {
  font-family: var(--sv-font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--sv-ink);
  margin: 0 0 12px;
}

.sv-sample-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.sv-sample-card {
  width: 100%;
  text-align: left;
  background: var(--sv-surface-warm);
  border: 1.5px solid var(--sv-border);
  border-radius: var(--sv-radius-md);
  padding: 13px 14px;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
}

.sv-sample-card:hover {
  border-color: var(--sv-border-strong);
  background: var(--sv-surface);
  transform: translateY(-1px);
}

.sv-sample-card.is-selected {
  border-color: var(--sv-guinda);
  background: var(--sv-guinda-soft);
  box-shadow: 0 0 0 1px var(--sv-guinda);
}

.sv-sample-ico {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--sv-surface-soft);
  border: 1px solid var(--sv-border);
  color: var(--sv-guinda);
  font-size: 18px;
}

.sv-sample-card.is-selected .sv-sample-ico {
  background: var(--sv-guinda);
  color: var(--sv-white);
  border-color: var(--sv-guinda);
}

.sv-sample-meta strong {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--sv-ink);
  margin-bottom: 2px;
}

.sv-sample-meta small {
  display: block;
  font-size: 12px;
  color: var(--sv-ink-muted);
  margin-bottom: 6px;
}

.sv-sample-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.sv-mini-pill {
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--sv-surface);
  border: 1px solid var(--sv-border);
  color: var(--sv-ink-2);
}

.sv-btn-guinda,
body a.sv-btn-guinda,
body .sv-vitrina-shell a.sv-btn-guinda,
body .sv-radar-shell a.sv-btn-guinda {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  box-sizing: border-box;
  padding: 14px 18px;
  border-radius: var(--sv-radius-md);
  border: 0;
  background: var(--sv-guinda);
  color: var(--sv-white);
  font-family: var(--sv-font-sans);
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.16s ease, transform 0.14s ease;
}

.sv-btn-guinda:hover,
body a.sv-btn-guinda:hover {
  background: var(--sv-guinda-hover);
  color: var(--sv-white);
}

.sv-btn-emerald,
body a.sv-btn-emerald,
body .sv-vitrina-shell a.sv-btn-emerald,
body .sv-radar-shell a.sv-btn-emerald {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  padding: 13px 18px;
  border-radius: var(--sv-radius-md);
  border: 0;
  background: var(--sv-emerald);
  color: var(--sv-white);
  font-family: var(--sv-font-sans);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.sv-btn-emerald:hover,
body a.sv-btn-emerald:hover {
  filter: brightness(0.92);
  color: var(--sv-white);
}

.sv-btn-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: var(--sv-radius-sm);
  border: 1px solid var(--sv-border-strong);
  background: var(--sv-surface);
  color: var(--sv-ink);
  font-family: var(--sv-font-sans);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.sv-btn-soft:hover {
  background: var(--sv-surface-soft);
  color: var(--sv-ink);
}

.sv-live-calc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.sv-calc-tile {
  background: var(--sv-surface-soft);
  border: 1px solid var(--sv-border);
  border-radius: var(--sv-radius-sm);
  padding: 10px;
  min-width: 0;
  box-sizing: border-box;
}

.sv-calc-tile span {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sv-ink-muted);
  margin-bottom: 3px;
}

.sv-calc-tile strong {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--sv-ink);
  line-height: 1.3;
}

.sv-atlas-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

@media (max-width: 640px) {
  .sv-live-calc-grid,
  .sv-atlas-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.sv-atlas-plate {
  border: 1px solid var(--sv-border);
  border-radius: var(--sv-radius-sm);
  background: var(--sv-surface-warm);
  padding: 7px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.sv-atlas-plate:hover {
  border-color: var(--sv-guinda);
  transform: translateY(-2px);
  box-shadow: var(--sv-shadow-card);
}

.sv-atlas-svg-box {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--sv-border-hair);
  background: var(--sv-map-land);
  margin-bottom: 6px;
}

.sv-atlas-plate strong {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--sv-ink);
}

.sv-atlas-plate small {
  display: block;
  font-size: 10px;
  color: var(--sv-ink-muted);
}

.sv-custom-toggle {
  margin-top: 12px;
  border-top: 1px dashed var(--sv-border-strong);
  padding-top: 12px;
}

.sv-custom-toggle summary {
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--sv-ink-2);
}

/* --- 3-Zone Cinemascope Cartographic Loupe Modal --- */
.sv-loupe-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: var(--sv-modal-backdrop);
  backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.sv-loupe-backdrop.is-open {
  display: flex;
}

.sv-loupe-modal {
  width: min(1080px, 94vw);
  max-height: 90vh;
  background: var(--sv-bg);
  border: 1px solid var(--sv-border-strong);
  border-radius: var(--sv-radius-lg);
  box-shadow: var(--sv-shadow-modal);
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}

.sv-loupe-zone1 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: var(--sv-surface);
  border-bottom: 1px solid var(--sv-border);
}

.sv-loupe-zone2 {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 18px;
  padding: 20px;
  overflow-y: auto;
}

.sv-loupe-canvas {
  background: var(--sv-surface);
  border: 1px solid var(--sv-border-strong);
  border-radius: var(--sv-radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sv-loupe-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sv-loupe-zone3 {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
  background: var(--sv-surface);
  border-top: 1px solid var(--sv-border);
}

/* --- View 2: La Vitrina 3-Col Studio + Frosted Optical Veil --- */
.sv-vitrina-shell {
  background: var(--sv-bg);
  border: 1px solid var(--sv-border);
  border-radius: var(--sv-radius-lg);
  padding: 20px;
  box-shadow: var(--sv-shadow-card);
  font-family: var(--sv-font-sans);
  color: var(--sv-ink);
  box-sizing: border-box;
  container-type: inline-size;
  container-name: svvitrina;
}

.sv-vitrina-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--sv-border);
}

.sv-vitrina-head h3 {
  font-family: var(--sv-font-display);
  font-size: 23px;
  font-weight: 700;
  margin: 2px 0;
  color: var(--sv-ink);
}

.sv-vitrina-sub {
  font-size: 12.5px;
  color: var(--sv-ink-muted);
}

.sv-vitrina-grid {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr) 318px;
  gap: 18px;
  align-items: start;
}

.sv-chap-rail {
  background: var(--sv-surface);
  border: 1px solid var(--sv-border);
  border-radius: var(--sv-radius-md);
  padding: 12px;
  position: sticky;
  top: 14px;
  min-width: 0;
  box-sizing: border-box;
}

.sv-chap-btn {
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  border-radius: var(--sv-radius-sm);
  padding: 9px 10px;
  font-family: var(--sv-font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--sv-ink-2);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.sv-chap-btn small {
  flex-shrink: 0;
  white-space: nowrap;
  color: var(--sv-ink-muted);
  font-weight: 600;
}

.sv-chap-btn:hover {
  background: var(--sv-surface-soft);
}

.sv-chap-btn.is-active {
  background: var(--sv-guinda-soft);
  border-color: var(--sv-guinda-border);
  color: var(--sv-guinda);
  font-weight: 700;
}

.sv-a4-frame {
  background: var(--sv-surface);
  border: 1px solid var(--sv-border-strong);
  border-radius: var(--sv-radius-md);
  box-shadow: var(--sv-shadow-sheet);
  padding: 22px 24px;
}

.sv-a4-inner {
  border: 1px solid var(--sv-border);
  border-radius: var(--sv-radius-sm);
  padding: 20px;
  background: var(--sv-surface-warm);
}

.sv-sgirpc-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--sv-guinda);
}

.sv-sgirpc-brand strong {
  display: block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sv-guinda);
}

.sv-sgirpc-brand small {
  font-size: 10.5px;
  color: var(--sv-ink-muted);
}

.sv-ropc-sig-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--sv-radius-sm);
  background: var(--sv-surface);
  border: 1px solid var(--sv-border-strong);
  margin: 14px 0;
}

.sv-ropc-monogram {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--sv-ink);
  color: var(--sv-white);
  display: grid;
  place-items: center;
  font-family: var(--sv-font-display);
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.sv-a4-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 14px 0;
}

.sv-a4-kpi {
  background: var(--sv-surface);
  border: 1px solid var(--sv-border);
  border-radius: var(--sv-radius-sm);
  padding: 9px 10px;
}

.sv-a4-kpi span {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: var(--sv-ink-muted);
  text-transform: uppercase;
}

.sv-a4-kpi strong {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--sv-ink);
  margin-top: 2px;
}

.sv-a4-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-top: 10px;
  background: var(--sv-surface);
  border: 1px solid var(--sv-border);
}

.sv-a4-table th,
.sv-a4-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--sv-border-hair);
  text-align: left;
}

.sv-a4-table th {
  background: var(--sv-surface-soft);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--sv-ink-muted);
}

.sv-optical-veil-box {
  position: relative;
  margin-top: 18px;
  border: 1px dashed var(--sv-veil-line);
  border-radius: var(--sv-radius-md);
  overflow: hidden;
  transition: all 0.4s ease;
}

.sv-optical-blur {
  padding: 16px;
  filter: blur(5px);
  opacity: 0.48;
  user-select: none;
  pointer-events: none;
  transition: filter 0.4s ease, opacity 0.4s ease;
}

.sv-optical-overlay {
  position: absolute;
  inset: 0;
  background: var(--sv-veil-bg);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  gap: 8px;
  transition: opacity 0.35s ease;
}

.sv-vitrina-shell.is-unlocked .sv-optical-blur {
  filter: none;
  opacity: 1;
  user-select: auto;
  pointer-events: auto;
}

.sv-vitrina-shell.is-unlocked .sv-optical-overlay {
  opacity: 0;
  pointer-events: none;
}

.sv-conv-rail {
  background: var(--sv-surface);
  border: 1px solid var(--sv-border-strong);
  border-radius: var(--sv-radius-md);
  padding: 18px;
  box-shadow: var(--sv-shadow-rail);
  position: sticky;
  top: 14px;
}

.sv-conv-rail h4 {
  font-family: var(--sv-font-display);
  font-size: 18.5px;
  font-weight: 700;
  color: var(--sv-ink);
  margin: 0 0 8px;
}

.sv-roi-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 12px;
}

.sv-roi-chip {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--sv-border-strong);
  background: var(--sv-surface-soft);
  color: var(--sv-ink);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

.sv-roi-chip.is-active {
  background: var(--sv-gold-bg);
  border-color: var(--sv-gold);
  color: var(--sv-gold-deep);
}

.sv-live-poll-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sv-emerald);
  display: inline-block;
}

.sv-unlock-toast {
  display: none;
  margin-bottom: 14px;
  padding: 12px 16px;
  border-radius: var(--sv-radius-md);
  background: var(--sv-emerald-bg);
  border: 1px solid var(--sv-emerald-border);
  color: var(--sv-emerald);
  font-size: 13px;
  font-weight: 700;
}

.sv-vitrina-shell.is-just-unlocked .sv-unlock-toast {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sv-vitrina-grid > * {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

@container svvitrina (max-width: 1020px) {
  .sv-vitrina-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .sv-chap-rail {
    position: static;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 10px;
  }
  .sv-chap-rail > :not(.sv-chap-btn) {
    grid-column: 1 / -1;
  }
  .sv-chap-btn {
    margin-bottom: 0;
    min-width: 0;
  }
  .sv-conv-rail {
    position: static;
  }
}

@container svvitrina (max-width: 620px) {
  .sv-vitrina-shell {
    padding: 12px;
    overflow-x: clip;
  }
  .sv-chap-rail {
    grid-template-columns: minmax(0, 1fr);
  }
  .sv-chap-rail .sv-btn-soft {
    white-space: normal;
    text-align: center;
  }
  .sv-sgirpc-banner,
  .sv-ropc-sig-box {
    flex-wrap: wrap;
  }
  .sv-a4-frame {
    padding: 12px;
  }
  .sv-a4-inner {
    padding: 12px;
  }
  .sv-a4-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* --- View 3: Radar del Zoom Work-First --- */
.sv-radar-shell {
  background: var(--sv-bg);
  border: 1px solid var(--sv-border);
  border-radius: var(--sv-radius-lg);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--sv-shadow-card);
  color: var(--sv-ink);
}

.sv-radar-invite-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  background: var(--sv-surface);
  border: 1px solid var(--sv-border);
  border-radius: var(--sv-radius-md);
  padding: 14px 16px;
  margin-bottom: 14px;
}

.sv-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.sv-filter-pill {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--sv-border-strong);
  background: var(--sv-surface);
  color: var(--sv-ink-2);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.sv-filter-pill.is-active {
  background: var(--sv-ink);
  border-color: var(--sv-ink);
  color: var(--sv-white);
}

.sv-radar-queue {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sv-radar-card {
  background: var(--sv-surface);
  border: 1px solid var(--sv-border);
  border-radius: var(--sv-radius-md);
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 1.25fr 1fr auto;
  gap: 14px;
  align-items: center;
}

.sv-radar-card.stage-ready {
  border-left: 4px solid var(--sv-guinda);
}

.sv-radar-card.stage-paid {
  border-left: 4px solid var(--sv-emerald);
}

.sv-radar-card.stage-exploring {
  border-left: 4px solid var(--sv-border-strong);
}

@media (max-width: 1060px) {
  .sv-start-grid,
  .sv-vitrina-grid,
  .sv-loupe-zone2,
  .sv-radar-card {
    grid-template-columns: 1fr;
  }
  .sv-chap-rail,
  .sv-conv-rail {
    position: static;
  }
}

@media (max-width: 640px) {
  .sv-start-wrap,
  .sv-vitrina-shell,
  .sv-radar-shell {
    padding: 14px;
  }
  .sv-ropc-grid,
  .sv-live-calc-grid,
  .sv-atlas-grid,
  .sv-a4-kpis {
    grid-template-columns: 1fr 1fr;
  }
}

