:root {
  --green-700: #27795f;
  --green-600: #3e9b7a;
  --green-500: #51b28d;
  --green-300: #9edbc1;
  --mint-100: #e4f3ec;
  --mint-50: #f2f8f5;
  --navy-900: #14284e;
  --navy-800: #243b6b;
  --coral-500: #f29a7a;
  --white: #ffffff;
  --ink: #17233c;
  --muted: #667085;
  --line: #dfe7e4;
  --shadow: 0 18px 50px rgba(20, 40, 78, .10);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; font-family: "Sora", system-ui, sans-serif; color: var(--ink); background: var(--white); line-height: 1.55; }
a { color: inherit; }
button, input, textarea { font: inherit; }
img { display: block; max-width: 100%; }
.skip-link { position: absolute; z-index: 100; left: 1rem; top: -4rem; padding: .75rem 1rem; background: var(--navy-900); color: white; border-radius: 8px; }
.skip-link:focus { top: 1rem; }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

.topbar { height: 78px; display: flex; align-items: center; justify-content: space-between; padding: 0 max(24px, calc((100vw - 1180px) / 2)); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(12px); }
.brand img { width: 205px; height: 54px; object-fit: contain; object-position: left center; }
.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav a { padding: 10px 14px; text-decoration: none; color: var(--navy-800); font-weight: 600; font-size: .9rem; border-radius: 10px; }
.main-nav a:hover, .main-nav a:focus-visible { background: var(--mint-50); color: var(--green-700); }
.menu-toggle { display: none; border: 1px solid var(--line); background: white; color: var(--navy-800); border-radius: 10px; padding: 9px 12px; }

.hero { min-height: 640px; display: grid; grid-template-columns: 1.08fr .92fr; gap: 72px; align-items: center; padding-block: 72px; position: relative; }
.hero::before { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; right: -100px; top: 40px; background: radial-gradient(circle, rgba(114,201,143,.30), rgba(242,248,245,0) 68%); z-index: -1; }
.eyebrow { display: inline-flex; color: var(--green-700); font-weight: 700; letter-spacing: .055em; text-transform: uppercase; font-size: .76rem; }
.hero h1 { margin: 18px 0 22px; color: var(--navy-900); font-size: clamp(3rem, 6vw, 5.8rem); line-height: .98; letter-spacing: -.055em; }
.hero h1 span { color: var(--green-600); }
.hero-copy > p { max-width: 650px; font-size: 1.14rem; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { appearance: none; display: inline-flex; justify-content: center; align-items: center; min-height: 46px; padding: 0 19px; border-radius: 12px; border: 1px solid transparent; font-weight: 700; font-size: .9rem; text-decoration: none; cursor: pointer; transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button.primary { color: white; background: var(--green-600); box-shadow: 0 9px 24px rgba(62,155,122,.22); }
.button.primary:hover { background: var(--green-700); }
.button.secondary { color: var(--navy-800); background: white; border-color: #cfd9d6; }
.button.compact { min-height: 38px; padding-inline: 14px; color: var(--muted); background: var(--mint-50); border-color: var(--line); }
.button:disabled { cursor: not-allowed; opacity: .62; }
.button.full { width: 100%; }
.hero-card { min-height: 410px; padding: 30px; background: linear-gradient(145deg, var(--navy-900), var(--navy-800)); border-radius: 30px; color: white; box-shadow: 0 28px 70px rgba(20,40,78,.25); transform: rotate(1.5deg); }
.hero-card-head { display: flex; justify-content: space-between; align-items: center; color: #d8e3f7; }
.hero-card-head strong { color: var(--green-300); font-size: 1.35rem; }
.mini-chart { height: 220px; margin: 32px 0; display: flex; align-items: flex-end; gap: 12px; padding: 28px 18px 0; border-bottom: 1px solid rgba(255,255,255,.18); background: linear-gradient(to bottom, rgba(255,255,255,.03), transparent); border-radius: 18px; }
.mini-chart span { flex: 1; min-width: 16px; border-radius: 12px 12px 3px 3px; background: linear-gradient(to top, var(--green-600), var(--green-300)); }
.metric-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.metric-row div { display: flex; flex-direction: column; padding: 16px; background: rgba(255,255,255,.08); border-radius: 14px; }
.metric-row small { color: #c7d3e8; }
.metric-row b { font-size: 1.45rem; }

.principles { padding: 64px 0 100px; border-top: 1px solid var(--line); }
.principles > div:first-child { display: grid; grid-template-columns: 80px 1fr; align-items: start; }
.section-number { color: var(--green-700); font-weight: 700; font-size: .78rem; letter-spacing: .05em; }
.principles h2 { margin: 0; max-width: 680px; color: var(--navy-900); font-size: clamp(1.8rem, 3.2vw, 3rem); line-height: 1.14; }
.principle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 38px 0 0 80px; }
.principle-grid article { padding: 28px; border-radius: var(--radius); background: var(--mint-50); border: 1px solid var(--mint-100); }
.principle-grid h3 { margin-top: 0; color: var(--navy-800); }
.principle-grid p { margin-bottom: 0; color: var(--muted); }

.app-surface { background: #f5f8f7; }
.workspace { padding-block: 46px 80px; }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.page-heading h1 { margin: 8px 0 6px; color: var(--navy-900); font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: -.035em; }
.page-heading p { margin: 0; color: var(--muted); }
.environment-badge { padding: 9px 13px; border: 1px solid #b9decf; color: var(--green-700); background: var(--mint-100); border-radius: 999px; font-weight: 600; font-size: .78rem; white-space: nowrap; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.metric-card { display: flex; flex-direction: column; min-height: 152px; padding: 22px; background: white; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 8px 26px rgba(20,40,78,.035); }
.metric-card small { color: var(--muted); }
.metric-card strong { margin: 7px 0; color: var(--navy-900); font-size: 2rem; letter-spacing: -.04em; }
.metric-card span { margin-top: auto; color: var(--green-700); font-size: .78rem; font-weight: 600; }
.metric-card.highlight { background: var(--navy-900); border-color: var(--navy-900); }
.metric-card.highlight small, .metric-card.highlight strong { color: white; }
.metric-card.highlight span { color: var(--green-300); }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 18px; margin-top: 18px; }
.panel-card { background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 26px rgba(20,40,78,.035); }
.panel-card.wide { padding: 26px; }
.card-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 22px; }
.card-heading h2, .panel-card h2 { margin: 0 0 4px; color: var(--navy-900); font-size: 1.2rem; }
.card-heading p { margin: 0; color: var(--muted); font-size: .88rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 12px; color: var(--muted); font-size: .76rem; text-align: left; text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--line); }
td { padding: 15px 12px; border-bottom: 1px solid #eef2f0; font-size: .88rem; }
td strong, td small { display: block; }
td small { color: var(--muted); margin-top: 2px; }
.empty-cell { color: var(--muted); text-align: center; padding: 40px 16px; }
.status { display: inline-flex; padding: 5px 9px; border-radius: 999px; color: var(--navy-800); background: #edf1f7; font-size: .72rem; font-weight: 700; }
.status-open, .status-agreement { color: var(--green-700); background: var(--mint-100); }
.status-review { color: #9a4c2e; background: #fff0e8; }
.action-card { padding: 26px; background: linear-gradient(160deg, white 55%, var(--mint-50)); }
.action-card h2 { margin-top: 10px; font-size: 1.65rem; }
.action-card p { color: var(--muted); }
.action-card .button { margin-top: 18px; }
.text-link { display: inline-flex; margin-top: 20px; color: var(--green-700); font-weight: 700; font-size: .84rem; text-decoration: none; }

.template-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 18px; align-items: start; }
.template-list { padding: 20px; }
.template-list h2 { margin: 4px 8px 16px; }
.template-item { display: flex; flex-direction: column; gap: 3px; margin-top: 6px; padding: 13px; text-decoration: none; border-radius: 12px; border: 1px solid transparent; }
.template-item span { font-weight: 700; font-size: .88rem; }
.template-item small { color: var(--muted); font-size: .72rem; }
.template-item:hover, .template-item.active { background: var(--mint-50); border-color: var(--mint-100); color: var(--green-700); }
.template-editor { padding: 26px; min-width: 0; }
.editor-tabs { display: flex; gap: 7px; padding-bottom: 14px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab { border: 0; background: transparent; color: var(--muted); padding: 9px 12px; font-weight: 700; font-size: .82rem; border-radius: 9px; cursor: pointer; white-space: nowrap; }
.tab.active { color: var(--green-700); background: var(--mint-100); }
.tab-panel { display: none; padding-top: 20px; }
.tab-panel.active { display: block; }
.subject-line { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; padding: 14px; background: #f8faf9; border: 1px solid var(--line); border-radius: 12px; }
.subject-line small { color: var(--muted); }
.email-preview { width: 100%; height: 620px; border: 1px solid var(--line); border-radius: 14px; background: #f1f3f5; }
.editor-form { display: grid; gap: 16px; }
.editor-form label, .access-form label { display: grid; gap: 7px; color: var(--navy-800); font-size: .82rem; font-weight: 700; }
input, textarea { width: 100%; border: 1px solid #cfd9d6; border-radius: 10px; padding: 11px 12px; color: var(--ink); background: white; }
textarea { resize: vertical; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .82rem; line-height: 1.55; }
input:focus, textarea:focus { outline: 3px solid rgba(62,155,122,.17); border-color: var(--green-600); }
.version-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.version-list li { display: flex; flex-direction: column; padding: 14px; background: #f8faf9; border: 1px solid var(--line); border-radius: 11px; }
.version-list span { color: var(--muted); font-size: .78rem; }
.notice { margin-bottom: 18px; padding: 13px 15px; border-radius: 11px; font-size: .86rem; font-weight: 600; }
.notice.success { color: var(--green-700); background: var(--mint-100); border: 1px solid #b9decf; }
.notice.error { color: #9a3f35; background: #fff0ed; border: 1px solid #f2c9c0; }

.portal-surface { background: radial-gradient(circle at 10% 0, var(--mint-100), transparent 34%), #f4f7f6; }
.portal-shell { min-height: calc(100vh - 150px); display: grid; place-items: center; padding: 48px 20px 70px; }
.portal-card { width: min(720px, 100%); padding: clamp(26px, 5vw, 48px); background: white; border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow); }
.access-card { max-width: 520px; }
.security-mark { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 22px; border-radius: 16px; color: white; background: var(--green-600); font-size: 1.4rem; font-weight: 700; }
.portal-card h1 { margin: 8px 0 12px; color: var(--navy-900); font-size: clamp(2rem, 6vw, 3.25rem); line-height: 1.08; }
.portal-card > p { color: var(--muted); }
.access-form { display: grid; gap: 16px; margin-top: 24px; }
.demo-help { margin-top: 20px; color: var(--muted); font-size: .78rem; }
.demo-help summary { cursor: pointer; font-weight: 700; color: var(--navy-800); }
.proposal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.debt-summary { display: flex; flex-direction: column; margin: 26px 0; padding: 22px; color: white; background: var(--navy-900); border-radius: 18px; }
.debt-summary small, .debt-summary span { color: #c8d4e8; }
.debt-summary strong { margin: 5px 0; font-size: 2.15rem; }
.proposal-options { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.proposal-options article { padding: 20px; background: var(--mint-50); border: 1px solid var(--mint-100); border-radius: 16px; }
.proposal-options article:first-child { border: 2px solid var(--green-500); }
.proposal-options span { color: var(--green-700); font-size: .72rem; font-weight: 700; text-transform: uppercase; }
.proposal-options h2 { margin: 6px 0; color: var(--navy-900); font-size: 1.1rem; }
.proposal-options p { min-height: 54px; color: var(--muted); font-size: .85rem; }
.privacy-note { margin-top: 20px; font-size: .76rem; }

.footer { min-height: 72px; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px max(24px, calc((100vw - 1180px) / 2)); color: #6c778b; background: white; border-top: 1px solid var(--line); font-size: .75rem; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 42px; padding-block: 54px; }
  .hero-card { min-height: 360px; transform: none; }
  .principle-grid, .metric-grid { grid-template-columns: 1fr 1fr; }
  .content-grid { grid-template-columns: 1fr; }
  .template-layout { grid-template-columns: 1fr; }
  .template-list { display: flex; align-items: center; gap: 8px; overflow-x: auto; }
  .template-list h2 { display: none; }
  .template-item { min-width: 210px; }
}

@media (max-width: 640px) {
  .shell { width: min(100% - 28px, 1180px); }
  .topbar { height: 68px; padding-inline: 14px; }
  .brand img { width: 168px; height: 46px; }
  .menu-toggle { display: inline-flex; }
  .main-nav { display: none; position: absolute; top: 62px; right: 14px; flex-direction: column; align-items: stretch; width: min(280px, calc(100vw - 28px)); padding: 10px; background: white; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .hero { min-height: auto; padding-block: 42px 62px; }
  .hero h1 { font-size: clamp(2.8rem, 16vw, 4.4rem); }
  .hero-actions { display: grid; }
  .hero-card { padding: 22px; min-height: 330px; border-radius: 22px; }
  .mini-chart { height: 170px; padding-inline: 8px; gap: 8px; }
  .principles > div:first-child { grid-template-columns: 1fr; gap: 12px; }
  .principle-grid { grid-template-columns: 1fr; margin-left: 0; }
  .page-heading { flex-direction: column; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-card { min-height: 130px; padding: 17px; }
  .metric-card strong { font-size: 1.55rem; }
  .panel-card.wide, .template-editor { padding: 18px; }
  .proposal-head { flex-direction: column; }
  .proposal-options { grid-template-columns: 1fr; }
  .footer { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 430px) {
  .metric-grid { grid-template-columns: 1fr; }
  .metric-card { min-height: 118px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

/* Formularios operativos accesibles en pantallas pequeñas. */
.editor-form select { width: 100%; min-height: 46px; font: inherit; font-size: 16px; }
.editor-form input { font-size: 16px; }
.panel-card { overflow-wrap: anywhere; }

/* Company settings: reuse native colors and typography. */
.integration-settings { max-width: 820px; margin-inline: auto; overflow-wrap: anywhere; }
.integration-settings dt { font-weight: 600; margin-top: 12px; }
.integration-settings dd { margin-left: 0; }
.integration-settings label { display: block; margin-bottom: 6px; }
.integration-settings input, .integration-settings select { min-height: 46px; min-width: 0; max-width: 100%; }
.integration-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 24px; }
.integration-actions form { flex: 1 1 250px; }
.integration-actions button { width: 100%; white-space: normal; }
/* Operational hub and ephemeral preview: native palette, mobile first. */
.hub-heading { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:16px; }
.hub-heading h1 { margin:8px 0; overflow-wrap:anywhere; }
.hub-badge { display:inline-block; padding:8px 12px; background:#F2F8F5; color:var(--green-700); border:1px solid #cfd9d6; border-radius:999px; font-size:13px; }
.hub-nav { display:flex; flex-wrap:wrap; gap:8px; margin:24px 0; }
.hub-nav a { padding:12px 16px; border:1px solid #cfd9d6; border-radius:10px; color:var(--navy-800); background:white; }
.hub-metrics,.portfolio-grid,.hub-columns { display:grid; grid-template-columns:minmax(0,1fr); gap:16px; margin:20px 0; }
.hub-metrics .metric-card { min-width:0; }
.hub-metrics strong { overflow-wrap:anywhere; }
.hub-metrics span { display:block; margin-top:8px; font-size:12px; line-height:1.6; }
.future-metric { background:#F2F8F5; }
.future-metric strong { color:#667670; }
.hub-integration { padding:24px; margin:28px 0; }
.hub-integration h2 { margin-top:6px; }
.hub-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:18px; }
.portfolio-card { display:grid; gap:12px; padding:22px; border:2px solid #dce8e2; border-radius:16px; background:white; color:var(--navy-800); }
.portfolio-card.selected { border-color:#3E9B7A; background:#F2F8F5; }
.portfolio-card strong { font-size:24px; }
.hub-list { padding:24px; min-width:0; scroll-margin-top:24px; }
.hub-list article { padding:16px 0; border-bottom:1px solid #e3ebe7; overflow-wrap:anywhere; }
.hub-list small { display:block; margin-top:6px; }
.hub-list .button { margin-top:24px; }
.preview-notice { margin:24px 0; padding:18px; background:#F2F8F5; border-left:4px solid #3E9B7A; border-radius:8px; }
.preview-facts { display:grid; grid-template-columns:minmax(0,1fr); gap:16px; }
.preview-facts div { min-width:0; overflow-wrap:anywhere; }
.preview-facts dt { font-size:13px; color:var(--navy-800); }
.preview-facts dd { margin:6px 0; }
.preview-connection { padding:18px; border:1px solid #dce8e2; border-radius:12px; margin:16px 0; }
.observed-amount { font-size:28px; overflow-wrap:anywhere; }
@media(min-width:700px) { .hub-metrics { grid-template-columns:repeat(3,minmax(0,1fr)); } .portfolio-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } .hub-columns,.preview-facts { grid-template-columns:repeat(2,minmax(0,1fr)); } }

/* Operational v1: same native palette, long contacts/links remain contained. */
.operational-v1 {overflow-wrap:anywhere;min-width:0;}
.operational-v1 .panel-card {margin-block:1rem;min-width:0;padding:1.5rem;}
.operational-v1 form {display:grid;gap:.75rem;max-width:48rem;}
.operational-v1 form p {margin:.25rem 0;}
.operational-v1 label {display:block;margin-bottom:.4rem;}
.operational-v1 input:not([type=checkbox]):not([type=hidden]), .operational-v1 select {width:100%;max-width:100%;box-sizing:border-box;min-height:44px;padding:.6rem;border:1px solid #a7c8be;border-radius:.5rem;background:#fff;color:#173c36;}
.operational-v1 input[type=checkbox] {width:22px;height:22px;vertical-align:middle;}
.operational-v1 button,.operational-v1 .button {min-height:44px;white-space:normal;}
.operational-v1 .errorlist {color:#952d24;}
.operational-v1 dd {margin:0 0 .8rem;font-weight:600;}
.operational-v1 .hub-actions {flex-wrap:wrap;}
.operational-v1 .private-link {overflow-wrap:anywhere;}
@media(max-width:600px){.operational-v1 .hub-columns{grid-template-columns:minmax(0,1fr);}.operational-v1 .panel-card{padding:1rem;}}


/* ===== NEXOCOBRO OPERATIONAL DESKTOP WORKSPACE 20260907 ===== */

.operations-shell {
  width: calc(100% - 48px);
  max-width: 1580px;
  margin-inline: auto;
  padding-top: 28px;
  padding-bottom: 64px;
}

.ops-company-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 0 4px 18px;
}

.ops-company-header .eyebrow {
  margin: 0 0 5px;
}

.ops-company-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ops-company-title h1 {
  margin: 0;
  color: var(--navy-900);
  font-size: clamp(1.5rem, 2.3vw, 2.25rem);
  letter-spacing: -.03em;
}

.ops-role {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #fff;
  font-size: .73rem;
  font-weight: 600;
}

.ops-module-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0 4px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: thin;
}

.ops-module-nav a {
  position: relative;
  flex: 0 0 auto;
  padding: 14px 15px 13px;
  color: #526078;
  text-decoration: none;
  font-size: .84rem;
  font-weight: 600;
  white-space: nowrap;
  border-radius: 9px 9px 0 0;
}

.ops-module-nav a:hover {
  color: var(--green-700);
  background: var(--mint-50);
}

.ops-module-nav a.active {
  color: var(--navy-900);
  background: #fff;
}

.ops-module-nav a.active::after {
  content: "";
  position: absolute;
  height: 3px;
  left: 13px;
  right: 13px;
  bottom: -1px;
  border-radius: 3px 3px 0 0;
  background: var(--green-600);
}

.ops-workspace {
  padding-top: 28px;
}

.ops-page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 22px;
}

.ops-section-label,
.ops-card-kicker {
  display: block;
  margin: 0 0 5px;
  color: var(--green-700);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .065em;
}

.ops-page-head h2 {
  margin: 0;
  color: var(--navy-900);
  font-size: clamp(1.55rem, 2.2vw, 2.15rem);
  letter-spacing: -.03em;
}

.ops-page-head p {
  max-width: 760px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: .9rem;
}

.ops-operation-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, .75fr);
  gap: 18px;
  align-items: stretch;
}

.ops-main-card,
.ops-status-card {
  min-width: 0;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 17px;
  box-shadow: 0 8px 24px rgba(20,40,78,.04);
}

.ops-card-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.ops-card-heading h3 {
  margin: 0;
  color: var(--navy-900);
  font-size: 1.13rem;
}

.operational-v1 .ops-scan-form {
  display: grid;
  grid-template-columns: minmax(220px, .75fr) minmax(260px, 1.1fr);
  gap: 18px;
  max-width: none;
  align-items: end;
}

.ops-form-field {
  min-width: 0;
}

.operational-v1 .ops-form-field label {
  margin-bottom: 7px;
  color: var(--navy-800);
  font-size: .78rem;
  font-weight: 700;
}

.operational-v1 .ops-form-field select,
.operational-v1 .ops-form-field input:not([type=checkbox]):not([type=hidden]) {
  min-height: 48px;
  border-color: #cbd8d4;
  border-radius: 10px;
  color: var(--ink);
}

.ops-primary-action {
  grid-column: 1 / -1;
  min-height: 50px !important;
  margin-top: 2px;
  font-size: .9rem;
}

.ops-advanced {
  grid-column: 1 / -1;
  margin-top: 2px;
  padding-top: 15px;
  border-top: 1px solid #edf1ef;
}

.ops-advanced > summary {
  cursor: pointer;
  color: var(--navy-800);
  font-size: .82rem;
  font-weight: 700;
}

.ops-advanced-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
  margin-top: 18px;
}

.ops-tech-note {
  margin: 14px 0 0 !important;
  color: var(--muted);
  font-size: .75rem;
}

.ops-status-card {
  display: flex;
  flex-direction: column;
}

.ops-integration-status {
  padding: 17px;
  background: var(--mint-50);
  border: 1px solid var(--mint-100);
  border-radius: 13px;
}

.ops-status-line {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--navy-900);
}

.ops-status-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green-600);
  box-shadow: 0 0 0 4px rgba(62,155,122,.12);
}

.ops-status-text {
  display: block;
  margin-top: 5px;
  color: var(--green-700);
  font-size: .77rem;
  font-weight: 600;
}

.ops-integration-status.warning .ops-status-text {
  color: var(--muted);
}

.ops-safe-info {
  margin-top: 15px;
  padding: 17px 3px;
  border-bottom: 1px solid #edf1ef;
}

.ops-safe-info strong {
  color: var(--navy-900);
  font-size: .84rem;
}

.ops-safe-info p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.55;
}

.ops-diagnostic {
  width: 100%;
  margin-top: auto;
}

.ops-bottom-note {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 16px;
  padding: 13px 17px;
  color: #566276;
  background: #f8faf9;
  border: 1px solid #e7eeeb;
  border-radius: 12px;
  font-size: .77rem;
}

.ops-bottom-note strong {
  color: var(--navy-800);
  white-space: nowrap;
}

@media (max-width: 1000px) {
  .operations-shell {
    width: calc(100% - 32px);
  }

  .ops-operation-grid {
    grid-template-columns: 1fr;
  }

  .ops-status-card {
    min-height: 280px;
  }
}

@media (max-width: 700px) {
  .operations-shell {
    width: calc(100% - 24px);
    padding-top: 20px;
  }

  .ops-company-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .ops-module-nav {
    margin-inline: -12px;
    padding-inline: 12px;
  }

  .ops-page-head {
    margin-bottom: 18px;
  }

  .ops-main-card,
  .ops-status-card {
    padding: 18px;
    border-radius: 14px;
  }

  .operational-v1 .ops-scan-form {
    grid-template-columns: 1fr;
  }

  .ops-primary-action,
  .ops-advanced {
    grid-column: 1;
  }

  .ops-advanced-grid {
    grid-template-columns: 1fr;
  }

  .ops-bottom-note {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}


/* ===== NEXOCOBRO PUBLIC HOME PRO 20260907 ===== */

.public-home-pro {
  background:#fff;
}

.nc-public-shell {
  width:min(1440px, calc(100% - 64px));
  margin-inline:auto;
}

.nc-overline {
  display:block;
  color:var(--green-700);
  font-size:.72rem;
  font-weight:700;
  letter-spacing:.085em;
  text-transform:uppercase;
}

.nc-hero {
  position:relative;
  overflow:hidden;
  padding:86px 0 105px;
  background:
    radial-gradient(circle at 82% 28%, rgba(81,178,141,.18), transparent 26%),
    radial-gradient(circle at 67% 70%, rgba(158,219,193,.16), transparent 26%),
    #fff;
}

.nc-hero-grid {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(480px,.9fr);
  gap:84px;
  align-items:center;
}

.nc-hero-copy h1 {
  max-width:760px;
  margin:18px 0 24px;
  color:var(--navy-900);
  font-size:clamp(4rem,7vw,7.4rem);
  line-height:.9;
  letter-spacing:-.07em;
}

.nc-hero-copy h1 span {
  display:block;
  color:var(--green-600);
}

.nc-hero-lead {
  max-width:730px;
  margin:0;
  color:#5d6a7f;
  font-size:1.08rem;
  line-height:1.7;
}

.nc-hero-actions {
  display:flex;
  flex-wrap:wrap;
  gap:11px;
  margin-top:30px;
}

.nc-btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:50px;
  padding:0 22px;
  border-radius:11px;
  font-size:.84rem;
  font-weight:700;
  text-decoration:none;
  transition:.18s ease;
}

.nc-btn:hover {
  transform:translateY(-1px);
}

.nc-btn-primary {
  color:#fff;
  background:var(--green-600);
  box-shadow:0 12px 28px rgba(62,155,122,.2);
}

.nc-btn-secondary {
  color:var(--navy-900);
  background:#fff;
  border:1px solid #ced9d5;
}

.nc-hero-trust {
  display:flex;
  flex-wrap:wrap;
  gap:22px;
  margin-top:24px;
  color:#6f7b8e;
  font-size:.75rem;
  font-weight:600;
}

.nc-hero-trust span::before {
  content:"";
  display:inline-block;
  width:6px;
  height:6px;
  margin-right:7px;
  border-radius:50%;
  background:var(--green-500);
  vertical-align:middle;
}

.nc-product-demo {
  position:relative;
  padding:28px;
  color:#fff;
  background:linear-gradient(145deg,#13284e,#203b70);
  border-radius:27px;
  box-shadow:0 34px 85px rgba(20,40,78,.24);
  transform:rotate(1.1deg);
}

.nc-demo-top {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
}

.nc-demo-top div {
  display:flex;
  flex-direction:column;
}

.nc-demo-top small {
  color:#b8c7df;
  font-size:.66rem;
  letter-spacing:.08em;
}

.nc-demo-top strong {
  margin-top:5px;
  font-size:2rem;
}

.nc-demo-badge {
  padding:6px 9px;
  border-radius:999px;
  color:#a8e4ca;
  background:rgba(81,178,141,.12);
  border:1px solid rgba(158,219,193,.18);
  font-size:.61rem;
  font-weight:700;
}

.nc-demo-chart {
  height:220px;
  display:flex;
  align-items:flex-end;
  gap:12px;
  margin:26px 0 20px;
  padding:22px 18px 0;
  border-radius:15px;
  background:rgba(255,255,255,.04);
  border-bottom:1px solid rgba(255,255,255,.12);
}

.nc-bar {
  flex:1;
  min-width:20px;
  border-radius:10px 10px 2px 2px;
  background:linear-gradient(to top,#3e9b7a,#9edbc1);
}

.nc-demo-metrics {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
}

.nc-demo-metrics article {
  padding:14px;
  border-radius:12px;
  background:rgba(255,255,255,.08);
}

.nc-demo-metrics small,
.nc-demo-metrics span {
  display:block;
  color:#b8c7df;
  font-size:.65rem;
}

.nc-demo-metrics strong {
  display:block;
  margin:2px 0;
  font-size:1.35rem;
}

.nc-demo-caption {
  margin:15px 0 0;
  color:#91a5c5;
  font-size:.6rem;
}

.nc-section {
  padding:105px 0;
}

.nc-section-heading {
  display:grid;
  grid-template-columns:70px minmax(0,1fr);
  gap:26px;
  align-items:start;
  margin-bottom:48px;
}

.nc-number {
  color:var(--green-700);
  font-size:.76rem;
  font-weight:700;
}

.nc-section-heading h2,
.nc-product-copy h2,
.nc-multi-grid h2,
.nc-wallet-note h2 {
  margin:8px 0 14px;
  color:var(--navy-900);
  font-size:clamp(2.1rem,4vw,4rem);
  line-height:1.04;
  letter-spacing:-.05em;
}

.nc-section-heading p,
.nc-product-copy p,
.nc-multi-grid p,
.nc-wallet-note p {
  max-width:760px;
  color:#647187;
  line-height:1.7;
}

.nc-chaos-grid {
  display:grid;
  grid-template-columns:minmax(260px,.75fr) 80px minmax(0,1.25fr);
  gap:28px;
  align-items:stretch;
  margin-left:96px;
}

.nc-chaos-sources {
  display:grid;
  gap:8px;
}

.nc-chaos-sources span {
  padding:14px 16px;
  color:#526078;
  background:#f7faf8;
  border:1px solid #e2ebe7;
  border-radius:10px;
  font-size:.82rem;
  font-weight:600;
}

.nc-chaos-arrow {
  display:grid;
  place-items:center;
  color:var(--green-600);
  font-size:2.8rem;
}

.nc-chaos-result {
  padding:32px;
  color:#fff;
  background:var(--navy-900);
  border-radius:20px;
}

.nc-chaos-result h3 {
  margin:8px 0;
  font-size:1.6rem;
}

.nc-chaos-result p {
  color:#c5d0e2;
}

.nc-flow-section {
  padding:100px 0;
  background:#f5f9f7;
  border-block:1px solid #e6eeeb;
}

.nc-flow {
  display:grid;
  grid-template-columns:repeat(7,1fr);
  gap:8px;
}

.nc-flow article {
  position:relative;
  min-height:150px;
  padding:19px;
  background:#fff;
  border:1px solid #dfe8e4;
  border-radius:14px;
}

.nc-flow article:not(:last-child)::after {
  content:"→";
  position:absolute;
  top:50%;
  right:-13px;
  z-index:2;
  width:20px;
  color:var(--green-600);
  font-weight:700;
}

.nc-flow article span {
  color:var(--green-700);
  font-size:.66rem;
  font-weight:700;
}

.nc-flow article strong {
  display:block;
  margin-top:32px;
  color:var(--navy-900);
  font-size:.9rem;
}

.nc-flow article small {
  display:block;
  margin-top:4px;
  color:#768196;
  font-size:.67rem;
}

.nc-product-showcase {
  display:grid;
  grid-template-columns:.72fr 1.28fr;
  gap:80px;
  align-items:center;
}

.nc-feature-list {
  display:grid;
  gap:10px;
  margin:26px 0 0;
  padding:0;
  list-style:none;
}

.nc-feature-list li {
  color:var(--navy-800);
  font-size:.83rem;
  font-weight:600;
}

.nc-feature-list li::before {
  content:"✓";
  margin-right:9px;
  color:var(--green-600);
}

.nc-app-window {
  min-height:520px;
  display:grid;
  grid-template-columns:185px 1fr;
  overflow:hidden;
  background:#fff;
  border:1px solid #dde7e3;
  border-radius:22px;
  box-shadow:0 28px 70px rgba(20,40,78,.12);
}

.nc-app-sidebar {
  display:flex;
  flex-direction:column;
  gap:6px;
  padding:22px 14px;
  color:#aab7ce;
  background:#14284e;
}

.nc-app-logo {
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  margin:0 5px 18px;
  color:#fff;
  background:var(--green-600);
  border-radius:9px;
  font-weight:700;
}

.nc-app-sidebar span {
  padding:10px 11px;
  border-radius:8px;
  font-size:.7rem;
}

.nc-app-sidebar .active {
  color:#fff;
  background:rgba(255,255,255,.1);
}

.nc-app-content {
  padding:28px;
  background:#f8faf9;
}

.nc-app-title {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
}

.nc-app-title div {
  display:flex;
  flex-direction:column;
}

.nc-app-title small {
  color:var(--green-700);
  font-size:.62rem;
  font-weight:700;
}

.nc-app-title strong {
  margin-top:5px;
  color:var(--navy-900);
  font-size:1.2rem;
}

.nc-app-title > span {
  color:var(--green-700);
  font-size:.67rem;
  font-weight:600;
}

.nc-app-stat-grid {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:9px;
  margin:25px 0;
}

.nc-app-stat-grid article {
  padding:14px;
  background:#fff;
  border:1px solid #e0e8e5;
  border-radius:11px;
}

.nc-app-stat-grid small {
  display:block;
  color:#7a8497;
  font-size:.6rem;
}

.nc-app-stat-grid strong {
  display:block;
  margin-top:5px;
  color:var(--navy-900);
  font-size:1.15rem;
}

.nc-app-table {
  overflow:hidden;
  background:#fff;
  border:1px solid #e0e8e5;
  border-radius:12px;
}

.nc-app-table > div {
  display:grid;
  grid-template-columns:1.5fr 1fr .8fr .8fr;
  gap:8px;
  padding:13px;
  border-bottom:1px solid #edf2ef;
  color:#59667b;
  font-size:.66rem;
}

.nc-app-table .head {
  color:#7b8698;
  background:#f4f7f6;
  font-weight:700;
}

.nc-dark-section {
  padding:110px 0;
  color:#fff;
  background:linear-gradient(145deg,#102342,#182f59);
}

.nc-dark-section .nc-overline {
  color:#8fd9bb;
}

.nc-dark-heading h2 {
  max-width:850px;
  margin:10px 0 48px;
  font-size:clamp(2.8rem,5vw,5rem);
  line-height:1;
  letter-spacing:-.055em;
}

.nc-capabilities {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
}

.nc-capabilities article {
  min-height:240px;
  padding:28px;
  border:1px solid rgba(255,255,255,.11);
  border-radius:17px;
  background:rgba(255,255,255,.04);
}

.nc-capabilities article > span {
  color:#91d8bc;
  font-size:.68rem;
}

.nc-capabilities h3 {
  margin:54px 0 12px;
  font-size:1.35rem;
}

.nc-capabilities p {
  color:#b9c6d9;
  line-height:1.7;
}

.nc-client-portal {
  display:grid;
  grid-template-columns:.8fr 1.2fr;
  gap:100px;
  align-items:center;
}

.nc-phone-wrap {
  display:grid;
  place-items:center;
}

.nc-phone {
  width:310px;
  padding:36px 23px 26px;
  color:var(--ink);
  background:#fff;
  border:8px solid #17233c;
  border-radius:38px;
  box-shadow:0 32px 70px rgba(20,40,78,.18);
}

.nc-phone-notch {
  width:95px;
  height:18px;
  margin:-29px auto 22px;
  border-radius:0 0 13px 13px;
  background:#17233c;
}

.nc-phone > small {
  color:var(--green-700);
  font-size:.6rem;
  font-weight:700;
}

.nc-phone h4 {
  margin:4px 0 18px;
  color:var(--navy-900);
  font-size:1rem;
}

.nc-phone-debt {
  display:flex;
  flex-direction:column;
  padding:18px;
  color:#fff;
  background:var(--navy-900);
  border-radius:14px;
}

.nc-phone-debt span {
  color:#becadf;
  font-size:.65rem;
}

.nc-phone-debt strong {
  font-size:1.7rem;
}

.nc-phone > p {
  color:#667085;
  font-size:.72rem;
}

.nc-phone-option {
  display:flex;
  justify-content:space-between;
  margin-top:8px;
  padding:13px;
  background:var(--mint-50);
  border:1px solid var(--mint-100);
  border-radius:10px;
  font-size:.7rem;
}

.nc-phone-action {
  margin-top:14px;
  padding:13px;
  color:#fff;
  background:var(--green-600);
  border-radius:10px;
  text-align:center;
  font-size:.68rem;
  font-weight:700;
}

.nc-inline-features {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:22px;
}

.nc-inline-features span {
  padding:8px 10px;
  color:var(--green-700);
  background:var(--mint-50);
  border:1px solid var(--mint-100);
  border-radius:999px;
  font-size:.7rem;
  font-weight:600;
}

.nc-control-section {
  padding:100px 0;
  background:#f5f9f7;
  border-block:1px solid #e4ede9;
}

.nc-control-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
  margin-left:96px;
}

.nc-control-grid article {
  min-height:180px;
  padding:25px;
  background:#fff;
  border:1px solid #dfe8e4;
  border-radius:14px;
}

.nc-control-grid strong {
  color:var(--navy-900);
}

.nc-control-grid p {
  color:#697589;
  font-size:.8rem;
  line-height:1.65;
}

.nc-integrations {
  display:grid;
  grid-template-columns:.85fr 1.15fr;
  gap:80px;
  align-items:start;
}

.nc-integration-list {
  border-top:1px solid var(--line);
}

.nc-integration-list article {
  display:grid;
  grid-template-columns:170px 1fr;
  gap:20px;
  padding:21px 0;
  border-bottom:1px solid var(--line);
}

.nc-integration-list strong {
  color:var(--navy-900);
}

.nc-integration-list span {
  color:#6a7689;
  font-size:.8rem;
}

.nc-multi-section {
  padding:110px 0;
  background:#f7faf8;
}

.nc-multi-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:90px;
  align-items:center;
}

.nc-org-stack {
  display:grid;
  gap:11px;
}

.nc-org-stack div {
  display:grid;
  grid-template-columns:42px 160px 1fr;
  gap:14px;
  align-items:center;
  padding:18px;
  background:#fff;
  border:1px solid #dfe8e4;
  border-radius:12px;
  box-shadow:0 7px 20px rgba(20,40,78,.03);
}

.nc-org-stack div > span {
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  color:#fff;
  background:var(--green-600);
  border-radius:9px;
  font-size:.72rem;
  font-weight:700;
}

.nc-org-stack strong {
  color:var(--navy-900);
  font-size:.8rem;
}

.nc-org-stack small {
  color:#737e90;
}

.nc-wallet-note {
  display:grid;
  grid-template-columns:64px 1fr;
  gap:28px;
  align-items:start;
  margin-top:90px;
  margin-bottom:90px;
  padding:32px;
  background:#f2f8f5;
  border:1px solid #dcebe4;
  border-radius:18px;
}

.nc-wallet-icon {
  display:grid;
  place-items:center;
  width:54px;
  height:54px;
  color:#fff;
  background:var(--navy-900);
  border-radius:15px;
  font-size:1.3rem;
  font-weight:700;
}

.nc-wallet-note h2 {
  font-size:1.8rem;
}

.nc-wallet-note p {
  margin-bottom:0;
  font-size:.82rem;
}

.nc-final-cta {
  padding:105px 0;
  color:#fff;
  background:linear-gradient(135deg,#102342,#193565);
}

.nc-final-cta .nc-overline {
  color:#92d9bd;
}

.nc-final-cta h2 {
  max-width:950px;
  margin:12px 0;
  font-size:clamp(3rem,6vw,6rem);
  line-height:.95;
  letter-spacing:-.06em;
}

.nc-final-cta p {
  color:#bfcbdd;
}

.nc-btn-light {
  color:var(--navy-900);
  background:#fff;
}

.nc-btn-outline-light {
  color:#fff;
  border:1px solid rgba(255,255,255,.28);
}

@media(max-width:1100px) {
  .nc-hero-grid,
  .nc-product-showcase,
  .nc-client-portal,
  .nc-integrations,
  .nc-multi-grid {
    grid-template-columns:1fr;
  }

  .nc-product-demo {
    max-width:720px;
  }

  .nc-flow {
    grid-template-columns:repeat(4,1fr);
  }

  .nc-flow article::after {
    display:none;
  }

  .nc-app-window {
    min-height:480px;
  }
}

@media(max-width:760px) {
  .nc-public-shell {
    width:min(100% - 28px,1440px);
  }

  .nc-hero {
    padding:55px 0 70px;
  }

  .nc-hero-grid {
    gap:48px;
  }

  .nc-hero-copy h1 {
    font-size:clamp(3.2rem,16vw,5.5rem);
  }

  .nc-product-demo {
    padding:20px;
    transform:none;
  }

  .nc-demo-chart {
    height:170px;
    padding-inline:8px;
    gap:7px;
  }

  .nc-demo-metrics {
    grid-template-columns:1fr;
  }

  .nc-section,
  .nc-flow-section,
  .nc-control-section,
  .nc-dark-section,
  .nc-multi-section,
  .nc-final-cta {
    padding:70px 0;
  }

  .nc-section-heading {
    grid-template-columns:1fr;
    gap:10px;
  }

  .nc-chaos-grid {
    grid-template-columns:1fr;
    margin-left:0;
  }

  .nc-chaos-arrow {
    transform:rotate(90deg);
  }

  .nc-flow {
    grid-template-columns:1fr 1fr;
  }

  .nc-app-window {
    grid-template-columns:74px 1fr;
  }

  .nc-app-sidebar {
    padding:14px 8px;
  }

  .nc-app-sidebar span {
    overflow:hidden;
    white-space:nowrap;
    text-indent:-9999px;
  }

  .nc-app-stat-grid {
    grid-template-columns:1fr 1fr;
  }

  .nc-app-table > div {
    grid-template-columns:1fr 1fr;
  }

  .nc-app-table > div span:nth-child(2),
  .nc-app-table > div span:nth-child(4) {
    display:none;
  }

  .nc-capabilities,
  .nc-control-grid {
    grid-template-columns:1fr;
  }

  .nc-control-grid {
    margin-left:0;
  }

  .nc-phone {
    width:min(310px,100%);
  }

  .nc-org-stack div {
    grid-template-columns:42px 1fr;
  }

  .nc-org-stack small {
    grid-column:2;
  }

  .nc-wallet-note {
    grid-template-columns:1fr;
    margin-block:60px;
    padding:24px;
  }

  .nc-integration-list article {
    grid-template-columns:1fr;
    gap:4px;
  }
}

@media(max-width:480px) {
  .nc-flow {
    grid-template-columns:1fr;
  }

  .nc-app-window {
    grid-template-columns:1fr;
  }

  .nc-app-sidebar {
    display:none;
  }

  .nc-app-content {
    padding:18px;
  }

  .nc-app-title {
    flex-direction:column;
  }

  .nc-app-stat-grid {
    grid-template-columns:1fr;
  }

  .nc-final-cta h2 {
    font-size:2.9rem;
  }
}


/* AJUSTE MANUAL: logo superior más visible */
.topbar .brand img,
.site-header .brand img,
header .brand img {
  height: 42px;
  width: auto;
  max-height: none;
}


/* AJUSTE MANUAL DEFINITIVO: logo superior más grande */
.topbar .brand img {
  width: 270px !important;
  height: 66px !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: left center !important;
}

.topbar {
  min-height: 86px;
}


/* ==========================================================
   NEXOCOBRO - UI OPERATIVA V1
   Sidebar + Casos
   ========================================================== */

.operational-v1.operations-shell {
  display:grid;
  grid-template-columns:240px minmax(0,1fr);
  grid-template-rows:auto 1fr;
  column-gap:30px;
  width:calc(100% - 40px);
  max-width:1660px;
}

.operational-v1 .ops-company-header {
  grid-column:2;
  grid-row:1;
  padding:18px 2px 20px;
}

.operational-v1 .ops-workspace {
  grid-column:2;
  grid-row:2;
  min-width:0;
  padding-top:18px;
}


/* SIDEBAR */

.operational-v1 .ops-module-nav {
  grid-column:1;
  grid-row:1 / span 2;
  align-self:start;
  position:sticky;
  top:88px;

  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:4px;

  margin:0;
  padding:18px 14px;

  background:#ffffff;
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow:0 12px 38px rgba(20,40,78,.055);

  overflow:visible;
}

.operational-v1 .ops-nav-head {
  display:flex;
  flex-direction:column;
  gap:2px;
  padding:4px 10px 18px;
  margin-bottom:8px;
  border-bottom:1px solid #edf1ef;
}

.operational-v1 .ops-nav-head strong {
  color:var(--navy-900);
  font-size:1.02rem;
}

.operational-v1 .ops-nav-head span {
  color:var(--muted);
  font-size:.72rem;
}

.operational-v1 .ops-nav-label {
  display:block;
  margin:12px 10px 5px;
  color:#8a94a4;
  font-size:.64rem;
  font-weight:800;
  letter-spacing:.09em;
}

.operational-v1 .ops-nav-admin-label {
  margin-top:24px;
  padding-top:15px;
  border-top:1px solid #edf1ef;
}

.operational-v1 .ops-module-nav a {
  position:relative;
  display:flex;
  align-items:center;
  min-height:42px;
  padding:0 12px;

  color:#526078;
  border-radius:10px;

  font-size:.83rem;
  font-weight:650;
  text-decoration:none;
}

.operational-v1 .ops-module-nav a:hover {
  color:var(--navy-900);
  background:var(--mint-50);
}

.operational-v1 .ops-module-nav a.active {
  color:var(--green-700);
  background:#edf8f3;
}

.operational-v1 .ops-module-nav a.active::after {
  content:"";
  position:absolute;
  left:0;
  top:10px;
  bottom:10px;
  width:3px;
  height:auto;
  border-radius:3px;
  background:var(--green-600);
}


/* PAGE */

.operational-v1 .ops-cases-head {
  align-items:center;
  margin-bottom:18px;
}

.operational-v1 .ops-cases-head h2 {
  margin:2px 0 5px;
  color:var(--navy-900);
  font-size:clamp(1.55rem,2vw,2rem);
  letter-spacing:-.03em;
}

.operational-v1 .ops-page-description {
  margin:0;
  color:var(--muted);
  font-size:.86rem;
}


/* FILTERS */

.operational-v1 .ops-case-filters {
  display:grid;
  grid-template-columns:minmax(260px,1.7fr) minmax(150px,.65fr) minmax(150px,.65fr) auto;
  gap:12px;
  align-items:end;

  max-width:none;
  margin:0 0 28px;
  padding:17px;
  border-radius:16px;
}

.operational-v1 .ops-case-filters label {
  margin-bottom:6px;
  color:#657186;
  font-size:.7rem;
  font-weight:750;
}

.operational-v1 .ops-case-filters input,
.operational-v1 .ops-case-filters select {
  min-height:44px;
}

.operational-v1 .ops-filter-button {
  min-height:44px;
  padding-inline:24px;
}


/* GROUP */

.operational-v1 .ops-case-group {
  margin-bottom:32px;
}

.operational-v1 .ops-case-group-head {
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:16px;
  margin:0 2px 12px;
}

.operational-v1 .ops-case-group-head h3 {
  margin:0;
  color:var(--navy-900);
  font-size:1rem;
}

.operational-v1 .ops-case-count {
  color:var(--muted);
  font-size:.72rem;
  font-weight:650;
}


/* CASE CARD */

.operational-v1 .ops-case-list {
  display:grid;
  gap:12px;
}

.operational-v1 .ops-case-card {
  margin:0;
  padding:20px 22px;
  border-radius:16px;
  transition:
    border-color .16s ease,
    box-shadow .16s ease,
    transform .16s ease;
}

.operational-v1 .ops-case-card:hover {
  border-color:#c9dbd5;
  box-shadow:0 12px 34px rgba(20,40,78,.07);
  transform:translateY(-1px);
}

.operational-v1 .ops-case-card-head {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:26px;
}

.operational-v1 .ops-case-identity {
  min-width:0;
}

.operational-v1 .ops-case-identity h3 {
  margin:10px 0 3px;
  color:var(--navy-900);
  font-size:1.06rem;
}

.operational-v1 .ops-case-identity > p {
  margin:0;
  color:var(--muted);
  font-size:.75rem;
}

.operational-v1 .ops-case-badges {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}

.operational-v1 .ops-badge {
  display:inline-flex;
  align-items:center;
  min-height:25px;
  padding:3px 8px;

  color:#566276;
  background:#f6f8f7;
  border:1px solid #e4ebe8;
  border-radius:999px;

  font-size:.64rem;
  font-weight:750;
}

.operational-v1 .ops-badge-portfolio {
  color:var(--green-700);
  background:#edf8f3;
  border-color:#d4ebe2;
}

.operational-v1 .ops-badge-state {
  color:var(--navy-800);
  background:#f2f5f9;
}

.operational-v1 .ops-case-balance {
  flex:0 0 auto;
  min-width:155px;
  text-align:right;
}

.operational-v1 .ops-case-balance span {
  display:block;
  margin-bottom:2px;
  color:var(--muted);
  font-size:.67rem;
  font-weight:650;
}

.operational-v1 .ops-case-balance strong {
  color:var(--navy-900);
  font-size:1.35rem;
  letter-spacing:-.03em;
}


/* CASE META */

.operational-v1 .ops-case-meta {
  display:grid;
  grid-template-columns:1fr 1.3fr .8fr;
  gap:18px;

  margin-top:17px;
  padding:14px 0;

  border-top:1px solid #edf1ef;
  border-bottom:1px solid #edf1ef;
}

.operational-v1 .ops-case-meta div {
  min-width:0;
}

.operational-v1 .ops-case-meta span {
  display:block;
  margin-bottom:3px;
  color:#8a94a4;
  font-size:.64rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.operational-v1 .ops-case-meta strong {
  display:block;
  overflow-wrap:anywhere;
  color:#405067;
  font-size:.76rem;
  font-weight:600;
}


/* ACTIONS */

.operational-v1 .ops-case-actions {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  margin-top:15px;
}

.operational-v1 .ops-case-actions .button {
  min-height:38px;
  padding:0 13px;
  border-radius:9px;
  font-size:.73rem;
}

.operational-v1 .ops-case-actions .ops-detail-action {
  margin-left:auto;
}


/* PAGINATION */

.operational-v1 .ops-pagination {
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-direction:row;
  gap:16px;
  max-width:none;

  margin-top:10px;
  padding-top:18px;
  border-top:1px solid var(--line);
}

.operational-v1 .ops-pagination span {
  color:var(--muted);
  font-size:.78rem;
}

.operational-v1 .ops-pagination div {
  display:flex;
  gap:8px;
}

.operational-v1 .ops-empty-state {
  padding:36px;
  text-align:center;
}


/* RESPONSIVE */

@media (max-width:1050px) {

  .operational-v1.operations-shell {
    grid-template-columns:205px minmax(0,1fr);
    column-gap:20px;
  }

  .operational-v1 .ops-case-filters {
    grid-template-columns:1fr 1fr;
  }

  .operational-v1 .ops-filter-search {
    grid-column:1 / -1;
  }

  .operational-v1 .ops-filter-button {
    width:100%;
  }

  .operational-v1 .ops-case-meta {
    grid-template-columns:1fr 1fr;
  }

}


@media (max-width:760px) {

  .operational-v1.operations-shell {
    display:block;
    width:calc(100% - 24px);
  }

  .operational-v1 .ops-company-header {
    padding-top:12px;
  }

  .operational-v1 .ops-module-nav {
    position:static;
    display:flex;
    flex-direction:row;
    gap:4px;

    margin:0 -12px 14px;
    padding:8px 12px;

    border-width:1px 0;
    border-radius:0;

    overflow-x:auto;
    box-shadow:none;
  }

  .operational-v1 .ops-nav-head,
  .operational-v1 .ops-nav-label {
    display:none;
  }

  .operational-v1 .ops-module-nav a {
    flex:0 0 auto;
    min-height:38px;
    padding:0 11px;
  }

  .operational-v1 .ops-module-nav a.active::after {
    left:10px;
    right:10px;
    top:auto;
    bottom:2px;
    width:auto;
    height:2px;
  }

  .operational-v1 .ops-workspace {
    padding-top:12px;
  }

  .operational-v1 .ops-case-filters {
    grid-template-columns:1fr;
  }

  .operational-v1 .ops-filter-search {
    grid-column:1;
  }

  .operational-v1 .ops-case-card-head {
    flex-direction:column;
    gap:14px;
  }

  .operational-v1 .ops-case-balance {
    text-align:left;
  }

  .operational-v1 .ops-case-meta {
    grid-template-columns:1fr;
    gap:12px;
  }

  .operational-v1 .ops-case-actions {
    display:grid;
    grid-template-columns:1fr 1fr;
  }

  .operational-v1 .ops-case-actions .button {
    width:100%;
  }

  .operational-v1 .ops-case-actions .ops-detail-action {
    grid-column:1 / -1;
    margin-left:0;
  }

  .operational-v1 .ops-pagination {
    align-items:stretch;
    flex-direction:column;
  }

}
