:root {
  --ink: #17221f;
  --muted: #66736e;
  --line: #dfe5e1;
  --soft: #f2f5f2;
  --canvas: #f7f8f5;
  --white: #ffffff;
  --navy: #172520;
  --navy-soft: #243831;
  --gold: #d49a36;
  --gold-soft: #fff5df;
  --green: #197755;
  --green-soft: #e7f5ee;
  --red: #b84b42;
  --red-soft: #faecea;
  --amber: #96651b;
  --amber-soft: #fff4d8;
  --shadow: 0 12px 35px rgba(25, 39, 34, 0.08);
  --radius: 18px;
  --radius-sm: 11px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); }
body { margin: 0; min-height: 100vh; background: var(--canvas); color: var(--ink); }
button, input, select, textarea { font: inherit; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(212, 154, 54, 0.35);
  outline-offset: 2px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  text-decoration: none;
}
.brand strong, .auth-brand strong { display: block; letter-spacing: 0.12em; font-size: 17px; }
.brand small, .auth-brand small { display: block; margin-top: 3px; font-size: 11px; color: #aebdb7; letter-spacing: 0.04em; }
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gold);
  color: #17221f;
  font-weight: 900;
  font-family: Georgia, serif;
}
.brand-mark-large { width: 46px; height: 46px; font-size: 22px; border-radius: 13px; }
.brand-logo-shell {
  display: inline-grid;
  place-items: center;
  width: 61px;
  height: 58px;
  flex: 0 0 61px;
  overflow: visible;
  background: radial-gradient(circle, rgba(67,185,243,.12), transparent 68%);
}
.brand-logo-shell img { width: 68px; max-width: none; height: auto; filter: drop-shadow(0 6px 9px rgba(0,0,0,.3)); }

.application-layout { display: grid; grid-template-columns: 244px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 25px 18px 20px;
  background: linear-gradient(170deg, #172520 0%, #13201c 100%);
  border-right: 1px solid rgba(255,255,255,.06);
}
.sidebar .brand { gap: 8px; padding: 0 5px 23px; border-bottom: 1px solid rgba(255,255,255,.09); }
.sidebar .brand strong { color: #fff; font-size: 16px; letter-spacing: .14em; }
.sidebar-nav { display: flex; flex-direction: column; gap: 5px; padding-top: 18px; }
.nav-label { margin: 18px 10px 6px; color: #80958d; font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  padding: 9px 11px;
  border-radius: 11px;
  color: #c5d0cc;
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
  transition: background .16s ease, color .16s ease;
}
.sidebar-nav a:hover { background: rgba(255,255,255,.07); color: white; }
.sidebar-nav a.active { background: rgba(212,154,54,.16); color: #ffd996; box-shadow: inset 3px 0 0 var(--gold); }
.nav-icon { display: inline-grid; place-items: center; width: 25px; height: 25px; border: 1px solid rgba(255,255,255,.13); border-radius: 7px; font-size: 10px; font-weight: 800; }
.sidebar-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 15px 10px 2px;
  border-top: 1px solid rgba(255,255,255,.09);
  color: #c8d3cf;
}
.sidebar-foot strong, .sidebar-foot small { display: block; }
.sidebar-foot strong { font-size: 12px; }
.sidebar-foot small { margin-top: 2px; font-size: 10px; color: #7f948c; }
.security-dot { width: 9px; height: 9px; border-radius: 50%; background: #45c88d; box-shadow: 0 0 0 5px rgba(69,200,141,.12); }

.main-area { display: flex; min-width: 0; min-height: 100vh; flex-direction: column; }
.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 73px;
  padding: 12px 30px;
  background: rgba(255,255,255,.91);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.topbar > div:first-child strong { display: block; margin-top: 3px; font-size: 14px; }
.eyebrow { color: #8a6a32; font-size: 10px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.account-menu { display: flex; align-items: center; gap: 10px; }
.avatar { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--navy); color: #f6d9a3; font-weight: 800; }
.account-copy strong, .account-copy small { display: block; }
.account-copy strong { font-size: 12px; }
.account-copy small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.link-button { padding: 7px 9px; border: 0; background: transparent; color: #7b5c25; font-size: 12px; font-weight: 750; cursor: pointer; }
.link-button:hover { color: var(--ink); text-decoration: underline; }

.content-area { width: min(1440px, 100%); margin: 0 auto; padding: 30px; flex: 1; }
.page-heading { display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; margin-bottom: 24px; }
.page-heading h1 { margin: 5px 0 6px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(30px, 3vw, 43px); font-weight: 500; line-height: 1.06; letter-spacing: -.025em; }
.page-heading p { max-width: 700px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.primary-button, .secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 17px;
  border-radius: 10px;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .14s ease, box-shadow .14s ease, background .14s ease;
}
.primary-button { background: var(--navy); color: white; box-shadow: 0 7px 18px rgba(23,37,32,.14); }
.primary-button:hover { transform: translateY(-1px); background: #21372f; box-shadow: 0 9px 23px rgba(23,37,32,.18); }
.primary-button:disabled { opacity: .42; cursor: not-allowed; transform: none; box-shadow: none; }
.secondary-button { border-color: #cbd5d0; background: white; color: var(--ink); }
.secondary-button:hover { background: var(--soft); }
.full-button { width: 100%; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(210px, .7fr) minmax(240px, .85fr); gap: 17px; margin-bottom: 22px; }
.market-score-card, .metric-card, .decision-card, .panel-section, .indicator-card, .result-hero, .result-grid article {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.market-score-card { position: relative; overflow: hidden; min-height: 250px; padding: 23px; }
.market-score-card::after { content: ""; position: absolute; right: -60px; bottom: -90px; width: 230px; height: 230px; border-radius: 50%; background: radial-gradient(circle, rgba(212,154,54,.18), transparent 67%); }
.score-topline { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 12px; font-weight: 700; }
.score-value { margin: 28px 0 10px; font-family: Georgia, serif; font-size: 69px; line-height: .9; letter-spacing: -.05em; }
.score-value small { margin-left: 6px; color: #87928e; font-family: inherit; font-size: 19px; letter-spacing: 0; }
.market-score-card p { max-width: 440px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.score-scale { position: relative; display: flex; justify-content: space-between; margin-top: 27px; padding-top: 13px; color: #87928e; font-size: 9px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.score-scale::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; border-radius: 5px; background: linear-gradient(90deg, #cc665d, #eadfbf 50%, #48a37e); }
.metric-stack { display: grid; gap: 17px; }
.metric-card { padding: 21px; }
.metric-label { display: block; color: var(--muted); font-size: 11px; font-weight: 750; }
.metric-card strong { display: block; margin: 13px 0 6px; font-family: Georgia, serif; font-size: 37px; font-weight: 500; }
.metric-card small { color: var(--muted); font-size: 10px; line-height: 1.45; }
.decision-card { padding: 23px; background: var(--navy); color: white; border-color: var(--navy); }
.decision-card h2 { margin: 18px 0 9px; font-family: Georgia, serif; font-size: 25px; font-weight: 500; }
.decision-card p { margin: 0 0 23px; color: #b7c5c0; font-size: 12px; line-height: 1.65; }
.decision-rule { display: flex; align-items: center; gap: 9px; margin-top: 11px; font-size: 11px; font-weight: 650; }
.decision-rule span { width: 8px; height: 8px; border-radius: 50%; background: #52c793; }
.decision-rule.muted { color: #82958e; }
.decision-rule.muted span { background: #657a72; }

.panel-section { padding: 22px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 18px; }
.section-heading.compact { align-items: center; }
.section-heading h2 { margin: 4px 0 0; font-family: Georgia, serif; font-size: 25px; font-weight: 500; }
.section-heading > a { color: #79602e; font-size: 11px; font-weight: 750; text-decoration: none; }
.indicator-table-wrap { width: 100%; overflow-x: auto; }
.indicator-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.indicator-table th { padding: 10px 11px; border-bottom: 1px solid var(--line); color: #7b8883; font-size: 9px; font-weight: 850; letter-spacing: .11em; text-align: left; text-transform: uppercase; }
.indicator-table td { padding: 13px 11px; border-bottom: 1px solid #edf0ee; color: #52605b; font-size: 11px; vertical-align: middle; }
.indicator-table tr:last-child td { border-bottom: 0; }
.indicator-table td strong, .indicator-table td small { display: block; }
.indicator-table td strong { color: var(--ink); font-size: 12px; }
.indicator-table td small { margin-top: 3px; color: #87938e; font-size: 9px; }
.position-number { display: inline-grid; place-items: center; min-width: 29px; height: 29px; padding: 0 7px; border-radius: 9px; background: var(--soft); color: #52605b; font-size: 11px; font-weight: 850; }
.category-tag { display: inline-flex; padding: 5px 8px; border-radius: 7px; background: #f1f4f2; color: #5f6b67; font-size: 9px; font-weight: 750; }
.badge { display: inline-flex; align-items: center; justify-content: center; padding: 5px 9px; border-radius: 99px; font-size: 9px; font-weight: 850; letter-spacing: .02em; }
.badge-positive, .badge-positive-text { color: var(--green); background: var(--green-soft); }
.badge-negative { color: var(--red); background: var(--red-soft); }
.badge-neutral { color: #5d6a65; background: #edf1ef; }
.badge-warning { color: var(--amber); background: var(--amber-soft); }
.badge-success { color: var(--green); background: var(--green-soft); }
.score-number { font-weight: 850; color: #5d6a65; }
.positive-text { color: var(--green) !important; }
.negative-text { color: var(--red) !important; }
.muted-text { color: #8a9692; font-size: 10px; }

.indicator-cards { display: grid; gap: 11px; }
.indicator-card { overflow: hidden; box-shadow: 0 6px 20px rgba(25,39,34,.05); }
.indicator-card summary { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 16px 18px; cursor: pointer; list-style: none; }
.indicator-card summary::-webkit-details-marker { display: none; }
.indicator-card[open] summary { border-bottom: 1px solid var(--line); background: #fbfcfa; }
.indicator-summary-copy { min-width: 0; }
.indicator-summary-copy strong, .indicator-summary-copy small { display: block; }
.indicator-summary-copy strong { margin-top: 5px; font-family: Georgia, serif; font-size: 19px; font-weight: 500; }
.indicator-summary-copy small { margin-top: 4px; color: var(--muted); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.indicator-reading { min-width: 125px; text-align: right; }
.indicator-reading span, .indicator-reading strong { display: block; }
.indicator-reading span { color: var(--muted); font-size: 9px; }
.indicator-reading strong { margin-top: 4px; font-size: 20px; }
.indicator-meter { display: block; width: 112px; height: 7px; margin: 6px 0 0 auto; border: 0; background: #e9eeeb; }
.indicator-meter::-webkit-meter-bar { border: 0; border-radius: 8px; background: linear-gradient(90deg, rgba(184,75,66,.3), rgba(212,154,54,.22) 50%, rgba(25,119,85,.3)); }
.indicator-meter::-webkit-meter-optimum-value { border-radius: 8px; background: var(--green); }
.indicator-meter::-webkit-meter-suboptimum-value { border-radius: 8px; background: var(--gold); }
.indicator-meter::-webkit-meter-even-less-good-value { border-radius: 8px; background: var(--red); }
.indicator-meter::-moz-meter-bar { border-radius: 8px; background: var(--green); }
.indicator-detail { padding: 20px; }
.indicator-metadata { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 17px; }
.indicator-metadata > div { padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); }
.indicator-metadata span, .indicator-metadata strong { display: block; }
.indicator-metadata span { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.indicator-metadata strong { margin-top: 5px; font-size: 11px; }
.latest-note { padding: 12px 14px; border-left: 3px solid var(--gold); background: var(--gold-soft); color: #6f5a32; font-size: 11px; line-height: 1.55; }
.indicator-chart-panel { margin: 4px 0 18px; padding: 17px; border: 1px solid #dce5e0; border-radius: 14px; background: linear-gradient(145deg, #fbfcfa, #f2f6f3); }
.indicator-chart-heading, .indicator-chart-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.indicator-chart-heading strong { display: block; margin-top: 4px; font-family: Georgia, serif; font-size: 18px; font-weight: 500; }
.chart-scale-legend { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 8px; }
.chart-scale-legend span { width: 7px; height: 7px; margin-left: 5px; border-radius: 50%; }
.bearish-dot { background: var(--red); }
.neutral-dot { background: var(--gold); }
.bullish-dot { background: var(--green); }
.indicator-canvas-wrap { min-height: 205px; margin-top: 8px; }
.indicator-score-chart { height: 205px; }
.indicator-source-chart { height: 245px; }
.motion-capable .indicator-canvas-wrap,
.motion-capable .indicator-canvas-wrap.chart-scroll-reveal-v063,
.motion-capable .indicator-canvas-wrap.chart-visible-v0610 {
  opacity: 1 !important;
  clip-path: none !important;
  transform: none !important;
}
.indicator-chart-arrival-v0610 { animation: indicatorChartArrivalV0610 .48s ease-out both; }
@keyframes indicatorChartArrivalV0610 { from { opacity: .35; } to { opacity: 1; } }
.indicator-chart-foot { color: var(--muted); font-size: 8px; }
.source-chart-panel { border-color: #cfdae6; background: linear-gradient(145deg, #fbfdff, #f2f6fa); }
.source-chart-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; color: var(--muted); font-size: 9px; text-align: right; }
.internal-chart-disclosure { margin: -5px 0 18px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfa; }
.internal-chart-disclosure > summary { padding: 12px 15px; color: #52605b; cursor: pointer; font-size: 10px; font-weight: 800; }
.internal-chart-disclosure > summary::marker { color: var(--gold); }
.internal-score-panel { margin: 0; border: 0; border-top: 1px solid var(--line); border-radius: 0 0 12px 12px; background: #fff; }
.indicator-form, .form-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.indicator-form { padding-top: 8px; }
.indicator-form .wide-field { grid-column: span 2; }
.form-actions { display: flex; justify-content: flex-end; align-items: end; }

label { display: flex; flex-direction: column; gap: 7px; color: #53605b; font-size: 10px; font-weight: 800; }
input, select, textarea { width: 100%; border: 1px solid #ced8d3; border-radius: 9px; background: white; color: var(--ink); padding: 10px 11px; font-size: 12px; transition: border .14s ease, box-shadow .14s ease; }
input, select { min-height: 41px; }
textarea { resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: #ba8a3a; box-shadow: 0 0 0 3px rgba(212,154,54,.12); outline: none; }

.calculator-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(330px, .75fr); gap: 18px; align-items: start; }
.calculator-form .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 18px 0; }
.calculator-results { display: grid; gap: 13px; }
.result-hero { padding: 22px; background: var(--navy); color: white; border-color: var(--navy); }
.result-hero span, .result-hero small { display: block; color: #aabbb5; font-size: 10px; }
.result-hero strong { display: block; margin: 13px 0 6px; color: #f5cf88; font-family: Georgia, serif; font-size: 41px; font-weight: 500; }
.result-hero b { display: inline-flex; margin-top: 11px; padding: 6px 9px; border: 1px solid rgba(245,207,136,.28); border-radius: 99px; color: #f5cf88; font-size: 10px; }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.result-grid article { padding: 15px; border-radius: 13px; box-shadow: 0 5px 15px rgba(25,39,34,.04); }
.result-grid span, .result-grid small { display: block; color: var(--muted); font-size: 9px; }
.result-grid strong { display: block; margin: 7px 0 4px; font-size: 17px; }
.result-grid article.accent-result { border-color: #e5c47f; background: var(--gold-soft); }
.calculator-message { margin: 0; padding: 11px 13px; border-radius: 10px; background: #edf1ef; color: var(--muted); font-size: 10px; line-height: 1.5; }
.calculator-message.error { background: var(--red-soft); color: var(--red); }
.range-panel { margin-top: 18px; }
.formula-note { color: var(--muted); font-family: ui-monospace, monospace; font-size: 10px; }
.inline-calculator { display: grid; grid-template-columns: 1fr 1fr auto minmax(230px, .8fr); gap: 13px; align-items: end; }
.range-result { min-height: 61px; padding: 10px 14px; border-radius: 10px; background: var(--soft); }
.range-result span, .range-result strong { display: block; }
.range-result span { color: var(--muted); font-size: 9px; }
.range-result strong { margin-top: 7px; font-size: 14px; }
.volatility-risk-panel { position: relative; overflow: hidden; background: linear-gradient(145deg, #fff, #f7fbf8); }
.volatility-risk-panel::after { content: ""; position: absolute; z-index: 0; right: -95px; top: -105px; width: 280px; height: 280px; border: 48px solid rgba(25,119,85,.035); border-radius: 50%; pointer-events: none; }
.volatility-risk-panel > * { position: relative; z-index: 1; }
.volatility-heading { align-items: center; }
.volatility-method-badge { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid rgba(25,119,85,.17); border-radius: 999px; color: #17684d; background: #eef8f3; font-size: 8px; font-weight: 850; }
.volatility-method-badge i { width: 7px; height: 7px; border-radius: 50%; background: #31a676; box-shadow: 0 0 0 4px rgba(49,166,118,.11); }
.volatility-range-hero { display: grid; grid-template-columns: minmax(0,1fr) minmax(280px,.72fr); gap: 24px; align-items: center; margin-top: 17px; padding: 22px; border: 1px solid rgba(25,119,85,.14); border-radius: 18px; background: linear-gradient(125deg, #0b3025, #124d3b); color: #fff; }
.volatility-range-hero span, .volatility-range-hero strong, .volatility-range-hero p { display: block; }
.volatility-range-hero > div:first-child > span { color: rgba(233,245,239,.66); font-size: 8px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.volatility-range-hero strong { margin-top: 9px; color: #f1cf8d; font-family: Georgia, serif; font-size: clamp(25px, 3vw, 38px); font-weight: 500; letter-spacing: -.025em; }
.volatility-range-hero strong small { display: inline; color: rgba(255,255,255,.64); font-family: Inter, Arial, sans-serif; font-size: 9px; font-weight: 750; }
.volatility-range-hero p { max-width: 650px; margin: 9px 0 0; color: rgba(234,244,239,.66); font-size: 9px; line-height: 1.55; }
.volatility-range-axis { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 9px; min-height: 62px; padding-top: 28px; color: rgba(238,247,242,.65); font-size: 8px; }
.volatility-range-axis::before { content: ""; position: absolute; right: 0; top: 22px; left: 0; height: 7px; border-radius: 99px; background: linear-gradient(90deg, #c56557, #e0b65f 50%, #57c395); }
.volatility-range-axis i { position: absolute; z-index: 1; top: 16px; left: 50%; width: 4px; height: 19px; border: 3px solid #124c3b; border-radius: 5px; background: #fff; transform: translateX(-50%); }
.volatility-range-axis span:last-child { text-align: right; }
.volatility-range-axis b { padding: 5px 8px; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; color: #fff; background: rgba(255,255,255,.08); font-size: 10px; }
.volatility-risk-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin-top: 12px; }
.volatility-risk-grid article { min-width: 0; padding: 15px; border: 1px solid #dfe8e3; border-radius: 14px; background: rgba(255,255,255,.82); }
.volatility-risk-grid span, .volatility-risk-grid strong, .volatility-risk-grid small { display: block; }
.volatility-risk-grid span { color: #78857f; font-size: 8px; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.volatility-risk-grid strong { margin: 8px 0 4px; color: #203c31; font-size: 18px; }
.volatility-risk-grid small { color: #7a8781; font-size: 8px; line-height: 1.4; }
.volatility-risk-grid .volatility-exposure { border-color: rgba(210,154,54,.25); background: #fff9ee; }
.volatility-risk-grid .volatility-exposure strong { color: #976716; }
.volatility-method-note { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin-top: 12px; padding: 13px 15px; border: 1px solid #e1e8e4; border-radius: 13px; background: #fafcfa; font-size: 8px; }
.volatility-method-note > span { color: #7d8984; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.volatility-method-note > strong { color: #41564d; }
.volatility-method-note p { grid-column: 1 / -1; margin: 4px 0 0; color: #718079; line-height: 1.55; }
.volatility-empty-state { margin-top: 16px; padding: 24px; border: 1px dashed #cbd8d2; border-radius: 16px; background: #f8faf9; text-align: center; }
.volatility-empty-state strong { color: #2a473b; }
.volatility-empty-state p { max-width: 650px; margin: 8px auto 0; color: #74817b; font-size: 10px; line-height: 1.6; }

.application-footer, .public-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #798680;
  font-size: 10px;
  letter-spacing: .03em;
}
.application-footer { margin-top: auto; padding: 17px 30px; border-top: 1px solid var(--line); background: #fff; }
.application-footer strong, .public-footer strong { color: #77591f; letter-spacing: .12em; }
.public-footer { position: fixed; z-index: 30; right: 25px; bottom: 18px; left: 25px; pointer-events: none; }
.auth-brand { flex-wrap: wrap; }
.auth-brand-image { display: block; width: 210px; height: auto; }
.auth-brand > small { width: 100%; margin: -6px 0 0 6px; color: var(--muted); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.error-brand-image { width: 210px; height: auto; margin: 0 auto 24px; }

.market-strip {
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
  padding: 21px;
  border: 1px solid #d7e1dc;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fff 0%, #f3f8f4 68%, #fff4dc 100%);
  box-shadow: var(--shadow);
}
.market-strip::after { content: ""; position: absolute; width: 240px; height: 240px; right: -120px; top: -130px; border: 1px solid rgba(212,154,54,.25); border-radius: 50%; box-shadow: 0 0 0 35px rgba(212,154,54,.04), 0 0 0 70px rgba(25,119,85,.025); }
.market-strip-head { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.market-strip-head strong { display: block; margin-top: 4px; font-size: 13px; }
.market-kpis { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; margin-top: 17px; }
.market-kpis article { padding: 15px; border: 1px solid rgba(205,218,212,.9); border-radius: 13px; background: rgba(255,255,255,.82); backdrop-filter: blur(5px); }
.market-kpis span, .market-kpis small { display: block; color: var(--muted); font-size: 9px; }
.market-kpis strong { display: block; margin: 8px 0 4px; font-family: Georgia, serif; font-size: 24px; font-weight: 500; }
.live-market-meta { display: flex !important; align-items: center; flex-wrap: wrap; gap: 5px; margin-top: 8px; color: #4f625b !important; font-size: 8px !important; }
.live-market-meta .live-dot { display: inline-block; width: 6px; height: 6px; border-radius: 999px; background: #39bf83; box-shadow: 0 0 0 3px rgba(57,191,131,.13); }
.live-market-meta small { margin-left: auto; color: #7d8b86 !important; font-size: 8px !important; }
.executive-kpi .live-market-meta { margin-top: 11px; padding-top: 8px; border-top: 1px solid rgba(207,218,213,.75); }
.market-kpis .market-status-card { background: var(--navy); color: white; border-color: var(--navy); }
.market-kpis .market-status-card strong { color: #f2cb80; font-family: inherit; font-size: 15px; font-weight: 800; letter-spacing: .08em; }
.market-kpis .market-status-card span, .market-kpis .market-status-card small { color: #a9bbb4; }
.source-row { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.source-row a, .source-link { color: #6e572a; font-size: 10px; font-weight: 750; text-decoration: none; }
.source-row a:hover, .source-link:hover { text-decoration: underline; }
.market-kpis .quotation-reference-card { border-color: rgba(210,154,54,.38); background: linear-gradient(145deg, #fffaf0, #fff); box-shadow: inset 3px 0 #d29a36; }
.market-kpis .quotation-reference-card > strong { color: #865b16; }
.quotation-reference-meta { display: flex !important; align-items: center; gap: 6px; color: #765a24 !important; font-weight: 800; }
.quotation-reference-meta i { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #198161; box-shadow: 0 0 0 4px rgba(25,129,97,.1); }
.quotation-reference-card.is-pending .quotation-reference-meta i { background: #b7644e; box-shadow: 0 0 0 4px rgba(183,100,78,.1); }
.quotation-close-notice { margin: 12px 0 0; padding: 12px 14px; border: 1px solid #e9bd70; border-radius: 10px; background: #fff7e8; color: #694613; font-size: 12px; line-height: 1.6; }
.quotation-close-notice a { display: inline-block; color: #225b45; font-weight: 700; }
.quotation-reference-lock { display: inline-flex; align-items: center; min-height: 31px; padding: 7px 11px; border: 1px solid rgba(210,154,54,.28); border-radius: 999px; color: #735820; background: #fff9ed; font-size: 9px; font-weight: 850; }
input[data-quote-reference] { border-color: rgba(210,154,54,.36); background: #fffaf0; color: #6f4e17; font-weight: 850; cursor: not-allowed; }
.manual-market-panel { margin-bottom: 18px; }
.manual-market-panel summary, .diff-editor summary { cursor: pointer; font-weight: 800; font-size: 12px; }
.manual-market-panel .form-grid { margin-top: 16px; }
.wide-field { grid-column: span 2; }

.quote-workspace { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(310px, .55fr); gap: 18px; align-items: start; }
.quote-form { padding: 25px; }
.quote-draft-status { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 11px; margin: 4px 0 2px; padding: 11px 13px; border: 1px solid #c8e3d5; border-radius: 12px; background: #eff8f4; }
.quote-draft-status[hidden] { display: none; }
.quote-draft-status strong, .quote-draft-status small { display: block; }
.quote-draft-status strong { color: #145e43; font-size: 10px; }
.quote-draft-status small { margin-top: 2px; color: #668078; font-size: 8px; line-height: 1.4; }
.quote-draft-status .link-button { color: #77591f; font-size: 9px; }
.draft-pulse { width: 9px; height: 9px; border-radius: 50%; background: #39b980; box-shadow: 0 0 0 5px rgba(57,185,128,.12); }
.quote-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-section-title { display: flex; align-items: center; gap: 12px; margin: 27px 0 16px; padding: 20px 0 0; border-top: 1px solid var(--line); }
.form-section-title:first-of-type { margin-top: 10px; }
.form-section-title > span { display: inline-grid; place-items: center; width: 31px; height: 31px; border-radius: 9px; background: var(--gold-soft); color: #8a6524; font-size: 10px; font-weight: 900; }
.form-section-title strong, .form-section-title small { display: block; }
.form-section-title strong { font-family: Georgia, serif; font-size: 17px; font-weight: 600; }
.form-section-title small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.quote-form > .full-button { margin-top: 20px; }
.derived-field input { border-color: #c5dbd1; background: #edf7f2; color: #145c43; font-weight: 850; }
.field-help { min-height: 12px; color: var(--muted); font-size: 8px; font-weight: 600; }
.quote-action-bar { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 22px; padding: 16px; border-radius: 13px; background: var(--soft); }
.quote-action-bar .primary-button, .quote-action-bar .secondary-button { min-width: 170px; }
.quote-action-bar .save-button { background: var(--green); }
.quote-action-bar .save-button:hover { background: #126342; }
.viewer-note { color: var(--muted); font-size: 10px; }
.quote-locked input:not([data-derived]), .quote-locked textarea, .quote-locked select { border-color: #dde4e0; background: #f5f7f5; color: #52605b; cursor: not-allowed; }
.quote-locked .form-section-title > span { color: var(--green); background: var(--green-soft); }
.quote-workspace .calculator-results { position: sticky; top: 94px; }
.calculator-results { opacity: .78; transition: opacity .18s ease, transform .18s ease; }
.calculator-results.quoted-results { opacity: 1; transform: translateY(-2px); }
.market-reference-result { padding: 18px; border: 1px solid #d8e5df; border-radius: 15px; background: linear-gradient(135deg, #edf7f2, #fff); box-shadow: 0 6px 20px rgba(25,39,34,.05); }
.market-reference-result span, .market-reference-result small { display: block; color: var(--muted); font-size: 9px; }
.market-reference-result strong { display: block; margin: 8px 0 5px; color: var(--green); font-family: Georgia, serif; font-size: 27px; font-weight: 500; }
.market-reference-result b { display: inline-flex; margin-bottom: 7px; padding: 5px 8px; border-radius: 99px; background: #dff1e8; color: #145e43; font-size: 9px; }
.pound-comparison { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; overflow: hidden; border: 1px solid #d9e2de; border-radius: 14px; background: #d9e2de; }
.pound-comparison > span { padding: 12px; background: #fff; }
.pound-comparison small, .pound-comparison strong, .pound-comparison em { display: block; }
.pound-comparison small { color: #7c8984; font-size: 8px; }
.pound-comparison strong { margin-top: 5px; color: #172520; font-size: 15px; }
.pound-comparison em { margin-top: 2px; color: #95a09c; font-size: 7px; font-style: normal; }
.result-disclaimer { padding: 12px; border: 1px dashed #cfd8d4; border-radius: 10px; color: #7b8782; font-size: 9px; line-height: 1.55; }
.recent-quotes-panel { margin-top: 18px; }
.commercial-offer-ready { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 17px; margin: 0 0 18px; padding: 18px 20px; border: 1px solid #bbdccd; border-radius: 17px; background: linear-gradient(125deg,#eff9f4,#fffaf0); box-shadow: 0 12px 30px rgba(22,68,50,.08); }
.commercial-offer-ready-icon { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 14px; background: var(--green); color: white; font-size: 19px; font-weight: 900; box-shadow: 0 8px 20px rgba(20,95,67,.18); }
.commercial-offer-ready h2 { margin: 4px 0 3px; color: var(--navy); font-family: Georgia,serif; font-size: 19px; font-weight: 600; }
.commercial-offer-ready p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.commercial-offer-ready .primary-button { white-space: nowrap; }
.commercial-document-title { border-top-color: rgba(210,154,54,.34); }
.commercial-document-title > span { background: #f7ebd1; color: #7d581e; }
.commercial-document-fields { padding: 16px; border: 1px solid rgba(210,154,54,.24); border-radius: 14px; background: linear-gradient(145deg,#fffdf8,#fff); }
.table-download-link { display: inline-flex; white-space: nowrap; padding: 7px 9px; border: 1px solid #bfd9cd; border-radius: 8px; background: #eef8f3; color: #165e44; font-size: 8px; font-weight: 850; text-decoration: none; }
.table-download-link:hover { border-color: #78b99d; background: #e2f3eb; }

.automation-heading { align-items: center; }
.bot-hero { position: relative; display: grid; grid-template-columns: auto minmax(0,1fr) minmax(230px,.4fr); align-items: center; gap: 22px; overflow: hidden; margin-bottom: 17px; padding: 25px; border-radius: 19px; background: linear-gradient(125deg, #14251f 0%, #1b372d 63%, #3d5b4e 100%); color: #fff; box-shadow: 0 17px 40px rgba(23,37,32,.16); }
.bot-hero::after { content: ""; position: absolute; width: 260px; height: 260px; right: -85px; top: -125px; border: 1px solid rgba(245,207,136,.22); border-radius: 50%; box-shadow: 0 0 0 38px rgba(245,207,136,.03), 0 0 0 76px rgba(245,207,136,.025); }
.bot-orbit { position: relative; z-index: 1; display: grid; place-items: center; width: 72px; height: 72px; border: 1px solid rgba(245,207,136,.34); border-radius: 22px; background: rgba(255,255,255,.06); box-shadow: inset 0 0 25px rgba(245,207,136,.06); }
.bot-orbit::before, .bot-orbit::after { content: ""; position: absolute; border: 1px solid rgba(245,207,136,.22); border-radius: 50%; }
.bot-orbit::before { width: 50px; height: 50px; }
.bot-orbit::after { width: 91px; height: 91px; }
.bot-orbit span { color: #f5cf88; font-size: 17px; font-weight: 900; letter-spacing: .08em; }
.bot-hero-copy, .bot-last-cut { position: relative; z-index: 1; }
.bot-hero-copy h2 { margin: 6px 0 7px; font-family: Georgia, serif; font-size: clamp(21px,2.1vw,31px); font-weight: 500; }
.bot-hero-copy p { max-width: 690px; margin: 0; color: #aec0b8; font-size: 10px; line-height: 1.55; }
.bot-last-cut { padding: 15px; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; background: rgba(10,25,19,.3); }
.bot-last-cut span, .bot-last-cut strong, .bot-last-cut small { display: block; }
.bot-last-cut span { color: #9fb3aa; font-size: 8px; text-transform: uppercase; letter-spacing: .09em; }
.bot-last-cut strong { margin: 8px 0 4px; color: #f5cf88; font-size: 12px; }
.bot-last-cut small { color: #9fb3aa; font-size: 8px; }
.automation-source-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-bottom: 17px; }
.automation-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.automation-action-note { max-width: 290px; color: #77837e; font-size: 8px; line-height: 1.45; }
.visual-list-actions { display: flex; align-items: center; gap: 12px; }
.visual-list-cleared { display: grid; min-height: 190px; place-content: center; justify-items: center; padding: 24px; text-align: center; }
.visual-list-cleared[hidden] { display: none; }
.visual-list-cleared > span { display: grid; width: 36px; height: 36px; margin-bottom: 10px; place-items: center; border-radius: 50%; background: #e8f6ef; color: #197755; font-weight: 800; }
.visual-list-cleared strong { font-family: Georgia, serif; font-size: 18px; }
.visual-list-cleared p { max-width: 360px; margin: 7px 0 14px; color: #78847f; font-size: 9px; line-height: 1.5; }
.report-archive-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.report-archive-card { position: relative; overflow: hidden; padding: 28px; border: 1px solid #dce5e1; border-radius: 24px; background: #fff; box-shadow: 0 15px 34px rgba(21, 43, 34, .06); }
.report-archive-card::after { position: absolute; right: -54px; bottom: -66px; width: 180px; height: 180px; border-radius: 50%; background: rgba(25, 119, 85, .07); content: ""; }
.archive-card-heading { display: flex; align-items: center; gap: 13px; }
.archive-card-heading i { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 13px; background: #eef5f2; color: #197755; font-style: normal; font-weight: 800; }
.archive-card-heading small, .archive-card-heading h2 { display: block; }
.archive-card-heading small { color: #8d6b2a; font-size: 7px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.archive-card-heading h2 { margin: 3px 0 0; font-family: Georgia, serif; font-size: 23px; font-weight: 500; }
.report-archive-card > strong { display: block; margin: 24px 0 4px; font-family: Georgia, serif; font-size: 44px; font-weight: 500; }
.report-archive-card > p { max-width: 560px; min-height: 42px; margin: 0; color: #6f7c77; font-size: 10px; line-height: 1.55; }
.archive-download-actions { position: relative; z-index: 1; display: flex; gap: 9px; margin-top: 22px; }
.archive-source-link, .archive-assurance { position: relative; z-index: 1; display: block; margin-top: 13px; color: #6f7c77; font-size: 8px; }
.report-memory-panel > p { max-width: 930px; color: #65736d; font-size: 10px; line-height: 1.65; }
.report-memory-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 17px; }
.report-memory-tags span { padding: 7px 11px; border-radius: 999px; background: #eff4f2; color: #4c5b55; font-size: 8px; font-weight: 700; }
@media (max-width: 760px) {
  .report-archive-grid { grid-template-columns: 1fr; }
  .report-archive-card { padding: 21px 16px; }
  .archive-download-actions { align-items: stretch; flex-direction: column; }
  .archive-download-actions a { width: 100%; }
}
.automation-source-card { position: relative; min-height: 165px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 7px 22px rgba(25,39,34,.05); }
.automation-source-card::after { content: ""; position: absolute; right: 0; top: 0; left: 0; height: 3px; border-radius: 16px 16px 0 0; background: #59bd91; }
.automation-source-card.source-assisted::after { background: #d49a36; }
.automation-source-card.source-supervised::after { background: #56718a; }
.automation-source-card > div { display: flex; align-items: center; gap: 7px; color: #788680; text-transform: uppercase; letter-spacing: .08em; }
.source-state-dot { width: 7px; height: 7px; border-radius: 50%; background: #3cb97f; box-shadow: 0 0 0 4px rgba(60,185,127,.1); }
.source-assisted .source-state-dot { background: #d49a36; box-shadow: 0 0 0 4px rgba(212,154,54,.1); }
.source-supervised .source-state-dot { background: #56718a; box-shadow: 0 0 0 4px rgba(86,113,138,.1); }
.automation-source-card h2 { margin: 18px 0 6px; font-family: Georgia, serif; font-size: 20px; font-weight: 500; }
.automation-source-card p { min-height: 42px; margin: 0 0 11px; color: var(--muted); font-size: 9px; line-height: 1.55; }
.automation-source-card > strong { color: #52625c; font-size: 9px; }
.automation-governance { margin-bottom: 17px; }
.governance-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.governance-grid > div { display: flex; align-items: flex-start; gap: 9px; padding: 12px; border-radius: 12px; background: #f5f8f6; }
.governance-grid b { display: grid; place-items: center; width: 27px; height: 27px; flex: 0 0 27px; border-radius: 8px; background: #172520; color: #f5cf88; font-size: 8px; }
.governance-grid strong, .governance-grid small { display: block; }
.governance-grid strong { font-size: 9px; }
.governance-grid small { margin-top: 3px; color: var(--muted); font-size: 8px; line-height: 1.4; }
.run-status { display: inline-flex; padding: 5px 8px; border-radius: 99px; font-size: 8px; font-weight: 850; }
.run-complete { color: var(--green); background: var(--green-soft); }
.run-partial { color: var(--amber); background: var(--amber-soft); }
.run-failed { color: var(--red); background: var(--red-soft); }
.run-running { color: #45657d; background: #eaf1f6; }

.differential-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.differential-card { overflow: hidden; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.differential-card header { display: flex; justify-content: space-between; gap: 20px; }
.differential-card h2 { margin: 5px 0 4px; font-family: Georgia, serif; font-size: 22px; font-weight: 500; }
.differential-card header small, .country-label { color: var(--muted); font-size: 9px; }
.country-label { font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.diff-hero { min-width: 100px; text-align: right; }
.diff-hero strong, .diff-hero span { display: block; }
.diff-hero strong { color: var(--green); font-family: Georgia, serif; font-size: 31px; font-weight: 500; }
.diff-hero span { color: var(--muted); font-size: 9px; }
.diff-range { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 18px 0; }
.diff-range div { padding: 11px; border-radius: 10px; background: var(--soft); }
.diff-range span, .diff-range strong { display: block; }
.diff-range span { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.diff-range strong { margin-top: 5px; font-size: 13px; }
.diff-method { min-height: 48px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.diff-meta { display: flex; justify-content: space-between; gap: 12px; margin: 14px 0 9px; color: var(--muted); font-size: 9px; }
.diff-editor { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.diff-editor form { margin-top: 15px; }
.three-field-grid, .two-field-grid { display: grid; gap: 10px; }
.three-field-grid { grid-template-columns: repeat(3,1fr); }
.two-field-grid { grid-template-columns: repeat(2,1fr); }
.history-panel { margin-top: 18px; }

.reports-heading { align-items: center; }
.download-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-panel { margin-bottom: 18px; padding: 16px 20px; }
.report-filters { display: grid; grid-template-columns: repeat(4, minmax(120px,1fr)) auto auto; gap: 10px; align-items: end; }
.report-summary-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap: 13px; margin-bottom: 18px; }
.report-summary-grid article { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: 0 6px 20px rgba(25,39,34,.05); }
.report-summary-grid span, .report-summary-grid small { display: block; color: var(--muted); font-size: 9px; }
.report-summary-grid strong { display: block; margin: 9px 0 4px; font-family: Georgia, serif; font-size: 25px; font-weight: 500; }
.report-summary-grid .positive-summary { border-top: 3px solid var(--green); }
.report-summary-grid .negative-summary { border-top: 3px solid var(--red); }
.chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; margin-bottom: 18px; }
.chart-card { padding: 19px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.chart-wide { grid-column: span 2; }
.chart-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
.chart-title h2 { margin: 4px 0 0; font-family: Georgia,serif; font-size: 22px; font-weight: 500; }
.chart-title small { color: var(--muted); font-size: 9px; }
.canvas-wrap { position: relative; width: 100%; min-height: 245px; }
.data-chart { display: block; width: 100%; height: 245px; cursor: crosshair; }
.chart-tooltip { position: absolute; z-index: 5; width: 145px; padding: 9px 10px; border-radius: 9px; background: rgba(23,37,32,.94); color: white; pointer-events: none; box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.chart-tooltip strong, .chart-tooltip span { display: block; }
.chart-tooltip strong { font-size: 11px; }
.chart-tooltip span { margin-top: 3px; color: #b9c6c1; font-size: 8px; line-height: 1.3; }
.report-table-panel { margin-top: 18px; }

.users-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr); gap: 18px; align-items: start; }
.create-user-panel { position: sticky; top: 98px; }
.stack-form { display: grid; gap: 14px; }
.alert { margin-bottom: 18px; padding: 12px 14px; border-radius: 10px; font-size: 11px; line-height: 1.5; }
.alert-success { color: var(--green); background: var(--green-soft); border: 1px solid #bfe3d2; }
.alert-error { color: var(--red); background: var(--red-soft); border: 1px solid #efc8c4; }
.alert-warning { color: var(--amber); background: var(--amber-soft); border: 1px solid #ebd49b; }
.alert a { font-weight: 800; }

.public-body { background: var(--canvas); }
.auth-page { display: grid; grid-template-columns: minmax(420px, .8fr) minmax(500px, 1.2fr); min-height: 100vh; }
.auth-panel { display: flex; flex-direction: column; justify-content: center; width: min(520px, 100%); margin: 0 auto; padding: 50px 60px; }
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 70px; }
.auth-brand small { color: var(--muted); }
.auth-copy h1, .simple-card h1 { margin: 9px 0 15px; font-family: Georgia, serif; font-size: clamp(34px, 4vw, 52px); font-weight: 500; line-height: 1.02; letter-spacing: -.035em; }
.auth-copy p, .lead { color: var(--muted); font-size: 13px; line-height: 1.7; }
.auth-panel .stack-form { margin-top: 25px; }
.privacy-note { margin: 18px 0 0; color: #89948f; font-size: 9px; line-height: 1.55; }
.auth-aside { position: relative; display: flex; align-items: flex-end; overflow: hidden; margin: 18px; border-radius: 24px; background: linear-gradient(145deg, #1b3028 0%, #101c18 100%); color: white; }
.auth-aside::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 75% 20%, rgba(212,154,54,.28), transparent 30%), linear-gradient(115deg, transparent 35%, rgba(255,255,255,.04)); }
.auth-aside::after { content: ""; position: absolute; width: 540px; height: 540px; right: -170px; top: -170px; border: 1px solid rgba(246,207,136,.18); border-radius: 50%; box-shadow: 0 0 0 70px rgba(246,207,136,.025), 0 0 0 140px rgba(246,207,136,.018); }
.auth-aside-content { position: relative; z-index: 2; max-width: 630px; padding: 70px; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.12); border-radius: 99px; color: #bfcfc9; font-size: 9px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.status-pill span { width: 7px; height: 7px; border-radius: 50%; background: #50c991; }
.auth-aside h2 { margin: 24px 0 45px; font-family: Georgia, serif; font-size: clamp(35px, 4.5vw, 63px); font-weight: 500; line-height: 1.02; letter-spacing: -.035em; }
.auth-flow { display: grid; gap: 1px; margin: 0; padding: 0; list-style: none; }
.auth-flow li { display: flex; gap: 15px; align-items: center; padding: 15px 0; border-top: 1px solid rgba(255,255,255,.09); color: #c1cdc9; font-size: 12px; }
.auth-flow li span { color: #e0b968; font-family: ui-monospace, monospace; font-size: 10px; }

.simple-page { display: grid; place-items: center; min-height: 100vh; padding: 30px; }
.simple-card { width: min(670px, 100%); padding: 45px; border: 1px solid var(--line); border-radius: 24px; background: white; box-shadow: var(--shadow); }
.simple-card .auth-brand { margin-bottom: 50px; }
.simple-card h1 { font-size: clamp(34px, 5vw, 49px); }
.checklist { display: grid; gap: 9px; margin: 28px 0; }
.check-item { display: flex; align-items: center; gap: 12px; padding: 13px; border: 1px solid #ecd6a4; border-radius: 11px; background: var(--amber-soft); }
.check-item.ready { border-color: #c1dfd0; background: var(--green-soft); }
.check-symbol { display: inline-grid; place-items: center; width: 29px; height: 29px; border-radius: 9px; background: white; color: var(--amber); font-weight: 900; }
.check-item.ready .check-symbol { color: var(--green); }
.check-item strong, .check-item small { display: block; }
.check-item strong { font-size: 11px; }
.check-item small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.status-box { display: flex; justify-content: space-between; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 11px; font-size: 11px; }
.simple-card .secondary-button { margin-top: 22px; }
.error-card { text-align: center; }
.error-card .brand-mark { margin: 0 auto 24px; }
.error-card .primary-button { margin-top: 20px; }

@media (max-width: 1080px) {
  .dashboard-grid { grid-template-columns: 1fr 1fr; }
  .decision-card { grid-column: span 2; }
  .calculator-layout, .users-layout { grid-template-columns: 1fr; }
  .create-user-panel { position: static; }
  .indicator-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inline-calculator { grid-template-columns: 1fr 1fr; }
  .market-kpis, .report-summary-grid { grid-template-columns: repeat(2,1fr); }
  .quote-workspace { grid-template-columns: 1fr; }
  .quote-workspace .calculator-results { position: static; }
  .report-filters { grid-template-columns: repeat(2,1fr); }
  .auth-page { grid-template-columns: 1fr; }
  .auth-panel { min-height: 100vh; }
  .auth-aside { display: none; }
}

@media (max-width: 760px) {
  .application-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; padding: 16px; }
  .sidebar .brand { padding-bottom: 14px; }
  .sidebar-nav { display: grid; grid-template-columns: repeat(7, minmax(76px, 1fr)); padding-top: 12px; overflow-x: auto; }
  .sidebar-nav .nav-label { display: none; }
  .sidebar-nav a { justify-content: center; padding: 8px; font-size: 10px; }
  .sidebar-foot { display: none; }
  .topbar { position: static; padding: 11px 16px; }
  .topbar > div:first-child, .account-copy { display: none; }
  .content-area { padding: 20px 14px; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .decision-card { grid-column: auto; }
  .indicator-metadata { grid-template-columns: 1fr 1fr; }
  .indicator-card summary { grid-template-columns: 36px 1fr; }
  .indicator-reading { grid-column: 2; text-align: left; display: flex; align-items: center; gap: 10px; }
  .indicator-meter { margin: 0; }
  .indicator-summary-copy small { white-space: normal; }
  .indicator-form, .form-grid, .calculator-form .form-grid { grid-template-columns: 1fr; }
  .indicator-form .wide-field { grid-column: auto; }
  .result-grid { grid-template-columns: 1fr 1fr; }
  .inline-calculator { grid-template-columns: 1fr; }
  .volatility-heading { align-items: flex-start; flex-direction: column; }
  .volatility-range-hero { grid-template-columns: 1fr; gap: 10px; padding: 17px; }
  .volatility-range-hero strong { font-size: 25px; }
  .volatility-risk-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .market-strip-head, .reports-heading, .diff-meta, .application-footer { align-items: flex-start; flex-direction: column; }
  .market-kpis, .report-summary-grid, .chart-grid, .differential-grid, .report-filters { grid-template-columns: 1fr; }
  .chart-wide { grid-column: auto; }
  .quote-grid, .three-field-grid, .two-field-grid { grid-template-columns: 1fr; }
  .quote-action-bar { align-items: stretch; flex-direction: column; }
  .quote-action-bar .primary-button, .quote-action-bar .secondary-button { width: 100%; }
  .indicator-chart-heading, .indicator-chart-foot { align-items: flex-start; flex-direction: column; }
  .wide-field { grid-column: auto; }
  .quote-draft-status { grid-template-columns: auto 1fr; }
  .quote-draft-status .link-button { grid-column: 2; justify-self: start; }
  .commercial-offer-ready { grid-template-columns: auto 1fr; }
  .commercial-offer-ready .primary-button { grid-column: 1 / -1; width: 100%; }
  .bot-hero { grid-template-columns: auto 1fr; }
  .bot-last-cut { grid-column: span 2; }
  .automation-source-grid, .governance-grid { grid-template-columns: 1fr 1fr; }
  .download-actions { width: 100%; }
  .download-actions a { flex: 1; }
  .public-footer { position: static; padding: 15px 24px; background: #fff; }
  .auth-panel { width: 100%; padding: 38px 24px; }
  .auth-brand { margin-bottom: 50px; }
  .simple-card { padding: 30px 22px; }
}

@media (max-width: 480px) {
  .volatility-risk-grid { grid-template-columns: 1fr; }
  .volatility-risk-grid article { padding: 13px; }
  .volatility-method-note { grid-template-columns: 1fr; }
  .volatility-method-note p { grid-column: auto; }
}

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

/* v0.7.8 · auditor de settlement por contrato */
.close-audit-panel { margin: 18px 0; padding: clamp(20px, 3vw, 28px); }
.close-audit-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 18px 0 12px; }
.close-audit-summary article { display: grid; gap: 4px; min-height: 86px; padding: 16px; border: 1px solid #e1e9e5; border-radius: 14px; background: linear-gradient(145deg, #fbfdfc, #f4f8f6); }
.close-audit-summary span { color: #83908a; text-transform: uppercase; font-size: 8px; font-weight: 900; letter-spacing: .1em; }
.close-audit-summary strong { color: #173228; font-family: Georgia, serif; font-size: 22px; font-weight: 500; }
.close-audit-summary small { color: #7b8882; font-size: 8px; }
.close-audit-note { margin: 0 0 18px; padding: 12px 14px; border-left: 3px solid #c99a42; color: #4f6259; background: #fffaf0; font-size: 10px; line-height: 1.6; }
.close-audit-table td { min-width: 110px; vertical-align: top; }
.close-audit-table td:last-child { min-width: 240px; }
.close-audit-table td small { display: block; margin-top: 5px; color: #75847d; line-height: 1.45; }
.audit-source-warnings { margin-top: 14px; color: #7a5f2b; font-size: 9px; }
.audit-source-warnings summary { cursor: pointer; font-weight: 800; }
.audit-source-warnings ul { margin: 8px 0 0; padding-left: 18px; }
@media (max-width: 820px) {
  .close-audit-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .close-audit-summary { grid-template-columns: 1fr; }
}

/* ANASUR Business Intelligence · Cockpit ejecutivo v0.5 */
.application-layout { grid-template-columns: 264px minmax(0, 1fr); }
.sidebar { padding: 22px 19px 19px; background: radial-gradient(circle at 15% 4%, rgba(25,119,85,.2), transparent 25%), linear-gradient(180deg, #152720 0%, #0f1d19 100%); }
.sidebar .brand { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-height: 92px; padding: 3px 7px 20px; }
.brand-wordmark { display: block; width: 184px; height: auto; object-fit: contain; filter: drop-shadow(0 8px 16px rgba(0,0,0,.2)); }
.brand-product { margin-left: 59px; color: #8fa49c; font-size: 8px; font-weight: 750; letter-spacing: .18em; text-transform: uppercase; }
.sidebar-nav { gap: 4px; padding-top: 13px; }
.sidebar-nav a { min-height: 46px; border: 1px solid transparent; border-radius: 12px; color: #b9c8c2; }
.sidebar-nav a:hover { border-color: rgba(255,255,255,.05); background: rgba(255,255,255,.055); }
.sidebar-nav a.active { border-color: rgba(222,174,85,.14); background: linear-gradient(90deg, rgba(212,154,54,.18), rgba(212,154,54,.08)); box-shadow: inset 3px 0 0 #e1aa48; }
.nav-icon { width: 26px; height: 26px; border: 0; background: rgba(255,255,255,.055); }
.nav-icon svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sidebar-nav a.active .nav-icon { background: rgba(225,170,72,.14); }
.topbar { min-height: 76px; padding: 12px 34px; background: rgba(250,252,250,.88); }
.topbar-account-area { display: flex; align-items: center; gap: 19px; }
.private-data-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid #dbe5e0; border-radius: 99px; background: rgba(255,255,255,.72); color: #687873; font-size: 9px; font-weight: 750; }
.private-data-chip i { width: 6px; height: 6px; border-radius: 50%; background: #34b67d; box-shadow: 0 0 0 4px rgba(52,182,125,.11); }
.content-area { width: min(1540px, 100%); padding: 31px 34px 38px; }

.executive-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 23px; }
.dashboard-kicker { display: inline-flex; align-items: center; gap: 8px; color: #7c6333; font-size: 9px; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.dashboard-kicker i { width: 7px; height: 7px; border-radius: 50%; background: #26ad78; box-shadow: 0 0 0 5px rgba(38,173,120,.1); }
.executive-heading h1 { margin: 9px 0 7px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(33px, 3.1vw, 48px); font-weight: 500; line-height: 1.03; letter-spacing: -.035em; }
.executive-heading p { max-width: 760px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.executive-actions { display: flex; gap: 9px; flex: 0 0 auto; }
.executive-actions .primary-button span { margin-left: 10px; font-size: 17px; font-weight: 400; }

.executive-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.executive-kpi { position: relative; overflow: hidden; min-height: 142px; padding: 17px 17px 15px; border: 1px solid #dce5e0; border-radius: 16px; background: rgba(255,255,255,.94); box-shadow: 0 8px 24px rgba(23,37,32,.055); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.executive-kpi::after { content: ""; position: absolute; right: -34px; bottom: -43px; width: 100px; height: 100px; border-radius: 50%; background: var(--kpi-glow, rgba(25,119,85,.07)); }
.executive-kpi:hover { transform: translateY(-3px); border-color: #cbd8d1; box-shadow: 0 14px 32px rgba(23,37,32,.09); }
.kpi-coffee { --kpi-glow: rgba(25,119,85,.11); }
.kpi-fnc { --kpi-glow: rgba(212,154,54,.12); }
.kpi-trm { --kpi-glow: rgba(54,105,154,.1); }
.kpi-signal { --kpi-glow: rgba(51,151,111,.1); }
.kpi-coverage { --kpi-glow: rgba(113,91,155,.09); }
.kpi-top, .kpi-bottom { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kpi-top > span { color: #667570; font-size: 10px; font-weight: 800; }
.kpi-symbol { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: #f0f4f2; color: #4d5f58; font-size: 9px; font-style: normal; font-weight: 900; }
.executive-kpi > strong { position: relative; z-index: 1; display: block; margin: 18px 0 13px; font-family: Georgia, serif; font-size: clamp(25px, 2vw, 32px); font-weight: 500; line-height: 1; letter-spacing: -.03em; white-space: nowrap; }
.kpi-fnc > strong { font-size: clamp(21px, 1.65vw, 27px); }
.kpi-bottom small { min-width: 0; color: #85918d; font-size: 8px; line-height: 1.35; }
.metric-trend { flex: 0 0 auto; font-size: 8px; font-weight: 850; }
.trend-up { color: var(--green); }
.trend-down { color: var(--red); }
.trend-flat { color: #8d9894; }
.coverage-mini { width: 58px; height: 5px; overflow: hidden; border-radius: 9px; background: #e6ece9; }
.coverage-mini i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #d29b3d, #1c8b61); }

.history-card-trigger { width: 100%; color: inherit; font: inherit; text-align: left; cursor: pointer; appearance: none; }
.history-card-trigger .kpi-top > span { display: grid; gap: 3px; }
.history-card-trigger .kpi-top > span small { color: #a08b63; font-size: 7px; font-weight: 850; letter-spacing: .055em; text-transform: uppercase; }
.history-card-trigger .kpi-symbol { transition: color .2s ease, background .2s ease, transform .2s ease; }
.history-card-trigger:hover .kpi-symbol, .history-card-trigger.is-active .kpi-symbol { color: #fff; background: #1a7657; transform: translateY(2px); }
.history-card-trigger.is-active { border-color: #97bcae; box-shadow: 0 16px 36px rgba(19,93,68,.13); }
.history-card-trigger.is-active .kpi-top > span small { color: #197755; }
.history-card-trigger:focus-visible { outline: 3px solid rgba(25,119,85,.22); outline-offset: 3px; }

.dashboard-history-panel { position: relative; scroll-margin-top: 96px; margin: 0 0 16px; padding: 23px; overflow: hidden; border: 1px solid #cadbd3; border-radius: 19px; background: linear-gradient(145deg, #fff, #f7faf8); box-shadow: 0 16px 42px rgba(23,37,32,.09); animation: historyPanelReveal .32s cubic-bezier(.2,.8,.2,1) both; }
.dashboard-history-panel[hidden] { display: none !important; }
.dashboard-history-panel::before { content: ""; position: absolute; width: 310px; height: 310px; right: -205px; top: -205px; border: 1px solid rgba(212,154,54,.16); border-radius: 50%; box-shadow: 0 0 0 45px rgba(25,119,85,.018); pointer-events: none; }
.dashboard-history-heading, .dashboard-history-toolbar, .dashboard-history-footer { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dashboard-history-heading { align-items: flex-start; }
.dashboard-history-heading h2 { margin: 5px 0 5px; font-family: Georgia,serif; font-size: clamp(25px,3vw,34px); font-weight: 500; letter-spacing: -.025em; }
.dashboard-history-heading p { margin: 0; color: #71807a; font-size: 10px; line-height: 1.5; }
.history-close-button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 11px; border: 1px solid #d7e1dc; border-radius: 99px; background: #fff; color: #52625c; font: inherit; font-size: 9px; font-weight: 800; cursor: pointer; }
.history-close-button span { font-size: 17px; font-weight: 400; line-height: .7; }
.history-close-button:hover { border-color: #b9cec4; color: #153e30; }
.dashboard-history-toolbar { margin: 18px 0 12px; }
.history-record-count { color: #71807a; font-size: 9px; font-weight: 750; }
.dashboard-history-plot-wrap { position: relative; z-index: 1; width: 100%; min-height: 330px; overflow: hidden; border: 1px solid #e0e7e3; border-radius: 14px; background: rgba(255,255,255,.78); }
.dashboard-history-chart { display: block; width: 100%; height: 330px; cursor: crosshair; touch-action: pan-y; }
.history-loading-state { position: absolute; z-index: 4; inset: 0; display: grid; place-items: center; padding: 20px; border-radius: 14px; background: rgba(249,251,250,.88); color: #66756f; font-size: 10px; font-weight: 750; backdrop-filter: blur(3px); }
.history-loading-state[hidden] { display: none; }
.dashboard-history-footer { margin-top: 11px; color: #7b8883; font-size: 9px; }
.dashboard-history-footer a { color: #8b6525; font-weight: 800; }
@keyframes historyPanelReveal { from { opacity: 0; transform: translateY(-9px); } to { opacity: 1; transform: translateY(0); } }

.dashboard-command-grid { display: grid; grid-template-columns: minmax(0, 1.58fr) minmax(315px, .62fr); gap: 15px; align-items: start; }
.command-panel, .decision-alerts-card, .executive-score-card, .quick-actions-card, .indicator-command-section { border: 1px solid #dce5e0; border-radius: 18px; background: #fff; box-shadow: 0 9px 28px rgba(23,37,32,.06); }
.command-panel { padding: 20px; }
.command-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.command-panel-heading h2, .quick-actions-card h2 { margin: 5px 0 0; font-family: Georgia, serif; font-size: 24px; font-weight: 500; letter-spacing: -.02em; }
.command-panel-heading p { margin: 6px 0 0; color: var(--muted); font-size: 9px; }
.command-panel-heading > a { color: #775b28; font-size: 10px; font-weight: 800; text-decoration: none; }
.chart-range-control { display: flex; gap: 3px; padding: 3px; border-radius: 10px; background: #f1f4f2; }
.chart-range-control button { min-height: 29px; padding: 5px 9px; border: 0; border-radius: 7px; background: transparent; color: #75817c; font-size: 8px; font-weight: 800; cursor: pointer; }
.chart-range-control button.active { background: #fff; color: var(--ink); box-shadow: 0 3px 9px rgba(23,37,32,.08); }
.dashboard-chart-wrap { min-height: 310px; margin-top: 7px; }
.dashboard-market-chart { height: 310px; }
.market-command-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 13px; border-top: 1px solid #edf1ef; }
.market-command-footer > div { display: grid; grid-template-columns: auto auto; align-items: center; column-gap: 8px; }
.market-command-footer strong { font-size: 9px; }
.market-command-footer small { grid-column: 2; color: var(--muted); font-size: 8px; }
.market-command-footer a { color: #6d5629; font-size: 9px; font-weight: 800; text-decoration: none; }
.live-dot { grid-row: span 2; width: 8px; height: 8px; border-radius: 50%; background: #31b97f; box-shadow: 0 0 0 5px rgba(49,185,127,.1); }

.dashboard-side-stack { display: grid; gap: 15px; }
.executive-score-card { position: relative; overflow: hidden; min-height: 285px; padding: 19px; background: radial-gradient(circle at 85% 5%, rgba(212,154,54,.18), transparent 28%), linear-gradient(145deg, #182a23, #102019); color: white; border-color: #1b3028; }
.score-card-head { display: flex; align-items: center; justify-content: space-between; }
.executive-score-card .eyebrow { color: #c9a763; }
.gauge-ring { position: relative; display: grid; place-items: center; width: 136px; height: 136px; margin: 18px auto 13px; border-radius: 50%; background: conic-gradient(#4bc18e calc(var(--score-progress) * 1%), rgba(255,255,255,.1) 0); transform: rotate(-90deg); }
.gauge-ring::before { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: #15261f; box-shadow: inset 0 0 28px rgba(0,0,0,.18); }
.gauge-ring > div { position: relative; z-index: 1; text-align: center; transform: rotate(90deg); }
.gauge-ring strong, .gauge-ring span { display: block; }
.gauge-ring strong { font-family: Georgia, serif; font-size: 34px; font-weight: 500; letter-spacing: -.04em; }
.gauge-ring span { margin-top: 3px; color: #93a69f; font-size: 8px; text-transform: uppercase; letter-spacing: .1em; }
.executive-score-card p { margin: 0; color: #aabbb4; font-size: 9px; line-height: 1.5; text-align: center; }
.executive-score-card p strong { color: #f4d18d; }
.mini-scale { position: relative; display: flex; justify-content: space-between; margin-top: 15px; padding-top: 10px; color: #81958d; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.mini-scale::before { content: ""; position: absolute; top: 0; right: 0; left: 0; height: 3px; border-radius: 9px; background: linear-gradient(90deg, #ae514a, #d7a448 50%, #43b887); }
.mini-scale i { position: absolute; top: -3px; width: 8px; height: 8px; margin-left: -4px; border: 2px solid #fff; border-radius: 50%; background: #e2aa4b; box-shadow: 0 2px 7px rgba(0,0,0,.3); }
.decision-alerts-card { padding: 17px; }
.compact-heading { align-items: center; }
.compact-heading h2 { font-size: 19px; }
.alert-count { display: inline-grid; place-items: center; width: 25px; height: 25px; border-radius: 8px; background: #f1f4f2; color: #65736d; font-size: 9px; font-weight: 900; }
.decision-alert-list { display: grid; gap: 7px; margin-top: 14px; }
.decision-alert { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px; border: 1px solid #e5ebe8; border-radius: 11px; color: inherit; text-decoration: none; transition: border .15s ease, transform .15s ease, background .15s ease; }
.decision-alert:hover { transform: translateX(2px); border-color: #cdd9d3; background: #fafcfb; }
.decision-alert > i { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: #edf1ef; color: #5e6c67; font-size: 9px; font-style: normal; font-weight: 900; }
.decision-alert.success > i { color: var(--green); background: var(--green-soft); }
.decision-alert.warning > i { color: var(--amber); background: var(--amber-soft); }
.decision-alert.danger > i { color: var(--red); background: var(--red-soft); }
.decision-alert strong, .decision-alert small { display: block; }
.decision-alert strong { font-size: 9px; }
.decision-alert small { margin-top: 3px; color: var(--muted); font-size: 7.5px; line-height: 1.3; }
.decision-alert > b { color: #91a09a; font-size: 12px; font-weight: 500; }

.indicator-command-section { margin-top: 15px; padding: 21px; }
.cockpit-section-heading { align-items: center; }
.cockpit-section-heading p { margin: 5px 0 0; color: var(--muted); font-size: 9px; }
.indicator-filter-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 11px; background: #f0f3f1; }
.indicator-filter-tabs button { min-height: 31px; padding: 6px 10px; border: 0; border-radius: 8px; background: transparent; color: #75817c; font-size: 8px; font-weight: 800; cursor: pointer; }
.indicator-filter-tabs button span { margin-left: 4px; opacity: .62; }
.indicator-filter-tabs button.active { background: #fff; color: var(--ink); box-shadow: 0 3px 10px rgba(23,37,32,.08); }
.category-overview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 13px; }
.category-overview-card { position: relative; overflow: hidden; padding: 12px; border-radius: 12px; background: #f3f6f4; }
.category-overview-card::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 3px; background: #6b9182; }
.category-overview-card.category-tecnico::after { background: #3a73a5; }
.category-overview-card.category-riesgo::after { background: #b77a36; }
.category-overview-card.category-source::after { background: #705e9c; }
.category-overview-card span, .category-overview-card strong, .category-overview-card small { display: block; }
.category-overview-card span { color: #70807a; font-size: 8px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.category-overview-card strong { margin: 5px 0 3px; font-size: 17px; }
.category-overview-card small { color: #8a9692; font-size: 7.5px; }
.indicator-command-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.indicator-command-card { position: relative; display: block; overflow: hidden; min-height: 151px; padding: 13px; border: 1px solid #e1e7e4; border-radius: 13px; background: #fbfcfb; color: inherit; text-decoration: none; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.indicator-command-card:hover { transform: translateY(-3px); border-color: #cbd8d2; background: #fff; box-shadow: 0 11px 24px rgba(23,37,32,.08); }
.indicator-command-card[hidden] { display: none; }
.indicator-command-top { display: flex; align-items: center; gap: 7px; }
.indicator-index { color: #8b9893; font-family: ui-monospace, monospace; font-size: 8px; font-weight: 850; }
.indicator-command-top .category-tag { padding: 4px 6px; font-size: 7px; }
.state-light { width: 7px; height: 7px; margin-left: auto; border-radius: 50%; background: #a7b1ad; box-shadow: 0 0 0 4px rgba(167,177,173,.1); }
.indicator-command-card.bullish .state-light { background: #28ae78; box-shadow: 0 0 0 4px rgba(40,174,120,.1); }
.indicator-command-card.bearish .state-light { background: #b84b42; box-shadow: 0 0 0 4px rgba(184,75,66,.1); }
.indicator-command-card.neutral .state-light { background: #d49a36; box-shadow: 0 0 0 4px rgba(212,154,54,.11); }
.indicator-command-card > strong { display: block; min-height: 34px; margin-top: 12px; font-family: Georgia, serif; font-size: 15px; font-weight: 600; line-height: 1.15; }
.indicator-command-card > small { display: block; min-height: 19px; margin-top: 4px; color: #7c8a84; font-size: 7.5px; line-height: 1.35; }
.indicator-axis { position: relative; height: 4px; margin: 12px 0 9px; border-radius: 8px; background: linear-gradient(90deg, rgba(184,75,66,.35), rgba(212,154,54,.2) 50%, rgba(25,119,85,.35)); }
.indicator-axis::after { content: ""; position: absolute; top: -2px; bottom: -2px; left: 50%; width: 1px; background: rgba(23,34,31,.16); }
.indicator-axis i { position: absolute; top: -3px; width: 10px; height: 10px; margin-left: -5px; border: 2px solid #fff; border-radius: 50%; background: #6e7b76; box-shadow: 0 1px 4px rgba(0,0,0,.18); }
.indicator-command-card.bullish .indicator-axis i { background: var(--green); }
.indicator-command-card.bearish .indicator-axis i { background: var(--red); }
.indicator-command-card.neutral .indicator-axis i { background: var(--gold); }
.indicator-command-card footer { display: flex; align-items: center; justify-content: space-between; color: #89958f; font-size: 7.5px; }
.indicator-command-card footer b { color: #53615b; font-size: 11px; }

.operations-dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(295px, .5fr); gap: 15px; align-items: start; margin-top: 15px; }
.recent-business-panel { min-height: 318px; }
.recent-business-list { display: grid; gap: 2px; margin-top: 13px; }
.recent-business-row { display: grid; grid-template-columns: minmax(190px, 1.25fr) repeat(3, minmax(85px, .65fr)) auto; align-items: center; gap: 12px; min-height: 50px; padding: 8px 5px; border-top: 1px solid #edf1ef; color: inherit; text-decoration: none; }
.recent-business-row:hover { background: #fafcfb; }
.business-origin { display: flex; align-items: center; gap: 9px; }
.business-origin > i { display: inline-grid; place-items: center; width: 33px; height: 33px; border-radius: 10px; background: #eaf4ef; color: #197755; font-size: 8px; font-style: normal; font-weight: 900; }
.recent-business-row strong, .recent-business-row small { display: block; }
.recent-business-row strong { font-size: 9px; }
.recent-business-row small { margin-bottom: 3px; color: #8b9792; font-size: 7px; }
.recent-business-row > b { color: #93a09b; font-weight: 500; }
.empty-dashboard-state { display: grid; place-items: center; padding: 45px 20px 25px; text-align: center; }
.empty-dashboard-state > span { color: #c09a54; font-size: 27px; }
.empty-dashboard-state strong { margin-top: 8px; font-family: Georgia, serif; font-size: 17px; }
.empty-dashboard-state p { margin: 6px 0 15px; color: var(--muted); font-size: 9px; }
.quick-actions-card { padding: 21px; background: linear-gradient(155deg, #fff 0%, #f6f9f7 100%); }
.quick-actions-card > p { margin: 7px 0 17px; color: var(--muted); font-size: 9px; }
.quick-actions-card nav { display: grid; gap: 7px; }
.quick-actions-card nav a { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 9px; border: 1px solid #e1e8e4; border-radius: 11px; background: rgba(255,255,255,.75); color: inherit; text-decoration: none; }
.quick-actions-card nav a:hover { border-color: #c7d5ce; background: #fff; }
.quick-actions-card nav i { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #172720; color: #f0c878; font-size: 9px; font-style: normal; font-weight: 900; }
.quick-actions-card nav strong, .quick-actions-card nav small { display: block; }
.quick-actions-card nav strong { font-size: 9px; }
.quick-actions-card nav small { margin-top: 3px; color: var(--muted); font-size: 7px; }
.quick-actions-card nav b { color: #93a09b; font-weight: 500; }
.model-governance-note { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 15px; padding: 14px 17px; border: 1px solid #dedfd6; border-radius: 14px; background: linear-gradient(90deg, #fffaf0, #fff); }
.model-governance-note > div { display: flex; align-items: center; gap: 11px; }
.governance-icon { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #fff1d4; color: #93651f; font-weight: 900; }
.model-governance-note strong, .model-governance-note small { display: block; }
.model-governance-note strong { font-size: 9px; }
.model-governance-note small { margin-top: 3px; color: #7d8177; font-size: 8px; }

.dashboard-reveal { animation: dashboardRise .55s cubic-bezier(.2,.8,.2,1) both; }
.executive-kpis.dashboard-reveal { animation-delay: .05s; }
.dashboard-command-grid.dashboard-reveal { animation-delay: .1s; }
.indicator-command-section.dashboard-reveal { animation-delay: .15s; }
.operations-dashboard-grid.dashboard-reveal { animation-delay: .2s; }
.model-governance-note.dashboard-reveal { animation-delay: .25s; }
@keyframes dashboardRise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1280px) {
  .executive-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .indicator-command-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1080px) {
  .dashboard-command-grid, .operations-dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-side-stack { grid-template-columns: 1fr 1fr; }
  .executive-score-card { min-height: 100%; }
  .indicator-command-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .application-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; padding: 13px 14px; }
  .sidebar .brand { min-height: 0; padding: 0 2px 12px; }
  .brand-wordmark { width: 145px; }
  .brand-product { margin-left: 46px; font-size: 6px; }
  .sidebar-nav { grid-template-columns: repeat(7, minmax(82px, 1fr)); }
  .sidebar-nav a { min-height: 50px; flex-direction: column; gap: 4px; }
  .topbar-account-area { width: 100%; justify-content: flex-end; }
  .private-data-chip { display: none; }
  .content-area { padding: 20px 14px 28px; }
  .executive-heading { align-items: flex-start; flex-direction: column; }
  .executive-actions { width: 100%; }
  .executive-actions a { flex: 1; }
  .executive-kpis { grid-template-columns: 1fr 1fr; }
  .dashboard-side-stack { grid-template-columns: 1fr; }
  .command-panel-heading, .cockpit-section-heading { align-items: flex-start; flex-direction: column; }
  .chart-range-control { width: 100%; }
  .chart-range-control button { flex: 1; }
  .category-overview { grid-template-columns: 1fr 1fr; }
  .indicator-filter-tabs { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .indicator-filter-tabs button { flex: 0 0 auto; }
  .indicator-command-grid { grid-template-columns: 1fr; }
  .recent-business-row { grid-template-columns: minmax(170px, 1fr) auto auto; }
  .recent-business-row > span:nth-of-type(3) { display: none; }
  .recent-business-row > b { display: none; }
  .model-governance-note { align-items: flex-start; flex-direction: column; }
  .dashboard-history-panel { padding: 18px 14px; }
  .dashboard-history-heading, .dashboard-history-toolbar { align-items: stretch; flex-direction: column; }
  .history-close-button { align-self: flex-end; }
  .dashboard-history-toolbar .chart-range-control { overflow-x: auto; }
  .dashboard-history-toolbar .chart-range-control button { min-width: 76px; }
  .dashboard-history-plot-wrap, .dashboard-history-chart { min-height: 275px; height: 275px; }
}

@media (max-width: 480px) {
  .automation-source-grid, .governance-grid { grid-template-columns: 1fr; }
  .bot-hero { grid-template-columns: 1fr; }
  .bot-last-cut { grid-column: auto; }
  .executive-kpis { grid-template-columns: 1fr; }
  .executive-kpi { min-height: 128px; }
  .category-overview { grid-template-columns: 1fr; }
  .executive-actions { flex-direction: column; }
  .recent-business-row { grid-template-columns: 1fr auto; }
  .recent-business-row > span:nth-of-type(2) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-reveal { animation: none !important; }
}

/* ANASUR Business Intelligence · Experiencia corporativa v0.6.2 */
:root {
  --copper: #b8733f;
  --champagne: #efc97f;
  --forest-950: #09130f;
  --forest-900: #0e1d17;
  --forest-800: #183128;
  --surface-glass: rgba(255,255,255,.86);
}

/* Acceso cinematográfico */
.public-body { background: var(--forest-950); }
.auth-v062 {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(410px, .62fr);
  min-height: 100vh;
  padding: 14px;
  background: radial-gradient(circle at 22% 5%, rgba(32,104,75,.22), transparent 30%), #09130f;
}
.auth-experience {
  position: relative;
  min-width: 0;
  min-height: calc(100vh - 28px);
  overflow: hidden;
  border: 1px solid rgba(239,201,127,.12);
  border-radius: 28px;
  background: #0b1712;
  color: #fff;
  isolation: isolate;
  box-shadow: 0 30px 80px rgba(0,0,0,.32);
}
.auth-experience-image {
  position: absolute;
  z-index: -3;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(8,18,14,.32), rgba(8,18,14,.04) 48%, rgba(8,18,14,.08)), url('/anasur-intelligence-hero-v062.webp');
  background-position: center;
  background-size: cover;
  transform: scale(1.015);
  animation: heroBreath 16s ease-in-out infinite alternate;
}
.auth-experience::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,14,11,.08), rgba(6,14,11,.02) 42%, rgba(6,14,11,.91) 92%), linear-gradient(90deg, rgba(6,14,11,.68), transparent 58%);
}
.auth-experience::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 42vw;
  height: 42vw;
  right: -13vw;
  top: -18vw;
  border: 1px solid rgba(239,201,127,.17);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(239,201,127,.018), 0 0 0 140px rgba(239,201,127,.012);
}
.auth-experience-grid {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .1;
  background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: linear-gradient(90deg, #000, transparent 65%);
}
.auth-experience-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 34px 40px;
}
.auth-experience-head img { width: 205px; height: auto; filter: drop-shadow(0 10px 22px rgba(0,0,0,.28)); }
.auth-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 99px;
  background: rgba(12,28,22,.56);
  color: #c7d5cf;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
}
.auth-live-pill i { width: 7px; height: 7px; border-radius: 50%; background: #46c98f; box-shadow: 0 0 0 5px rgba(70,201,143,.11); animation: livePulse 2.4s ease-in-out infinite; }
.auth-experience-copy { position: absolute; z-index: 2; left: 42px; bottom: 194px; width: min(590px, 55%); }
.auth-overline { color: var(--champagne); font-size: 10px; font-weight: 850; letter-spacing: .19em; text-transform: uppercase; }
.auth-experience-copy h1 {
  max-width: 570px;
  margin: 15px 0 17px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 4.4vw, 70px);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.auth-experience-copy p { max-width: 540px; margin: 0; color: #b6c4be; font-size: 13px; line-height: 1.72; }
.auth-market-pulse { position: absolute; z-index: 1; left: 43%; right: 5%; bottom: 165px; display: flex; align-items: flex-end; justify-content: space-between; height: 60px; opacity: .72; }
.auth-market-pulse::before { content: ""; position: absolute; right: 0; bottom: 4px; left: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(239,201,127,.55), transparent); }
.auth-market-pulse span { width: 2px; height: 18px; border-radius: 3px; background: linear-gradient(#5bd59d, rgba(91,213,157,.08)); box-shadow: 0 0 12px rgba(91,213,157,.23); animation: marketBars 2.8s ease-in-out infinite alternate; }
.auth-market-pulse span:nth-child(2) { height: 35px; animation-delay: -.5s; }
.auth-market-pulse span:nth-child(3) { height: 24px; animation-delay: -1s; }
.auth-market-pulse span:nth-child(4) { height: 49px; animation-delay: -1.5s; }
.auth-market-pulse span:nth-child(5) { height: 31px; animation-delay: -2s; }
.auth-market-pulse span:nth-child(6) { height: 55px; animation-delay: -2.5s; }
.auth-proof-grid {
  position: absolute;
  z-index: 3;
  right: 28px;
  bottom: 27px;
  left: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 17px;
  background: rgba(8,20,15,.7);
  backdrop-filter: blur(16px);
}
.auth-proof-grid article { min-width: 0; padding: 16px 18px; border-right: 1px solid rgba(255,255,255,.09); }
.auth-proof-grid article:last-child { border-right: 0; }
.auth-proof-grid span, .auth-proof-grid strong, .auth-proof-grid small { display: block; }
.auth-proof-grid span { color: #9aaca5; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.auth-proof-grid strong { margin: 8px 0 4px; color: #f4d28d; font-family: Georgia, serif; font-size: 19px; font-weight: 500; }
.auth-proof-grid small { color: #aebdb7; font-size: 10px; line-height: 1.4; }
.auth-entry { display: grid; place-items: center; min-height: calc(100vh - 28px); padding: 32px 4.2vw; background: linear-gradient(160deg, #f9fbf9, #edf2ef); }
.auth-entry .auth-panel { display: block; width: min(440px, 100%); min-height: 0; margin: 0; padding: 0; }
.auth-mobile-brand { display: none; }
.auth-entry .auth-copy h2 { margin: 10px 0 14px; font-family: Georgia, serif; font-size: clamp(36px, 3.2vw, 49px); font-weight: 500; line-height: 1.02; letter-spacing: -.04em; text-wrap: balance; }
.auth-entry .auth-copy p { margin: 0; color: #6c7a75; font-size: 12px; line-height: 1.68; }
.auth-form { margin-top: 31px !important; gap: 17px; }
.auth-form label > span:first-child { display: block; margin-bottom: 8px; color: #374841; font-size: 11px; font-weight: 800; }
.auth-input-shell { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 14px; border: 1px solid #ced9d3; border-radius: 13px; background: rgba(255,255,255,.86); box-shadow: 0 6px 18px rgba(23,37,32,.035); transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.auth-input-shell:focus-within { border-color: #5d927c; background: #fff; box-shadow: 0 0 0 4px rgba(25,119,85,.08), 0 9px 22px rgba(23,37,32,.06); }
.auth-input-shell svg { width: 17px; height: 17px; flex: 0 0 auto; fill: none; stroke: #82918b; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.auth-input-shell input { min-width: 0; flex: 1; min-height: 50px; padding: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 13px; }
.auth-input-shell input::placeholder { color: #a4aeaa; }
.password-shell button { padding: 7px; border: 0; background: transparent; color: #7a602c; font-size: 11px; font-weight: 850; cursor: pointer; }
.auth-submit { justify-content: space-between; min-height: 55px; margin-top: 3px; padding-inline: 19px; border-radius: 13px; background: linear-gradient(100deg, #173128, #0f201a); }
.auth-submit b { display: inline-grid; place-items: center; width: 29px; height: 29px; border-radius: 9px; background: rgba(255,255,255,.1); color: #f0ca80; font-size: 17px; font-weight: 400; }
.auth-security-note { display: flex; align-items: center; gap: 11px; margin-top: 24px; padding-top: 20px; border-top: 1px solid #dbe3df; }
.auth-security-note strong, .auth-security-note small { display: block; }
.auth-security-note strong { color: #495b54; font-size: 11px; }
.auth-security-note small { margin-top: 3px; color: #8b9893; font-size: 10px; }
.auth-v062 + .public-footer { color: rgba(255,255,255,.5); mix-blend-mode: difference; }

/* Interior ejecutivo */
.application-body { background: #edf2ef; }
.application-body::before { content: ""; position: fixed; z-index: -1; inset: 0; background: radial-gradient(circle at 82% 4%, rgba(212,154,54,.07), transparent 22%), radial-gradient(circle at 25% 85%, rgba(25,119,85,.055), transparent 26%); pointer-events: none; }
.application-layout { grid-template-columns: 272px minmax(0, 1fr); }
.sidebar {
  position: sticky;
  z-index: 60;
  overflow: hidden;
  padding: 22px 19px 15px;
  background: radial-gradient(circle at 12% 2%, rgba(36,139,98,.25), transparent 24%), linear-gradient(180deg, #142821 0%, #0b1713 100%);
  box-shadow: 12px 0 35px rgba(9,19,15,.08);
}
.sidebar::before { content: ""; position: absolute; inset: 0; opacity: .045; background-image: linear-gradient(rgba(255,255,255,.14) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.14) 1px, transparent 1px); background-size: 34px 34px; pointer-events: none; }
.sidebar > * { position: relative; z-index: 1; }
.sidebar-close, .nav-toggle { display: none; }
.sidebar-edition { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding: 10px; border: 1px solid rgba(255,255,255,.07); border-radius: 10px; color: #71877e; font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.sidebar-edition strong { color: #d1ae68; font-size: 10px; }
.sidebar-backdrop { display: none; }
.topbar { min-height: 78px; padding: 12px 34px; border-bottom-color: rgba(207,218,213,.82); background: rgba(247,250,248,.84); box-shadow: 0 7px 25px rgba(23,37,32,.035); backdrop-filter: blur(18px); }
.topbar-leading { display: flex; align-items: center; gap: 12px; }
.topbar-leading > div > strong { display: block; margin-top: 4px; font-size: 13px; }
.system-clock { display: grid; min-width: 78px; padding-right: 18px; border-right: 1px solid #dce4e0; text-align: right; }
.system-clock small { color: #8a9691; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.system-clock strong { margin-top: 3px; color: #34483f; font-family: ui-monospace, monospace; font-size: 12px; }
.content-area { position: relative; width: min(1580px, 100%); padding: 31px 35px 42px; }
.content-area > * { animation: interfaceArrival .45s cubic-bezier(.2,.8,.2,1) both; }
.content-area > *:nth-child(2) { animation-delay: .035s; }
.content-area > *:nth-child(3) { animation-delay: .07s; }
.content-area > *:nth-child(4) { animation-delay: .105s; }
.content-area > *:nth-child(n+5) { animation-delay: .14s; }
.page-heading:not(.executive-heading) { position: relative; overflow: hidden; padding: 24px 26px; border: 1px solid #dce5e0; border-radius: 18px; background: linear-gradient(120deg, rgba(255,255,255,.96), rgba(247,250,248,.86)); box-shadow: 0 9px 28px rgba(23,37,32,.05); }
.page-heading:not(.executive-heading)::after { content: ""; position: absolute; width: 240px; height: 240px; right: -135px; top: -155px; border: 1px solid rgba(212,154,54,.2); border-radius: 50%; box-shadow: 0 0 0 40px rgba(212,154,54,.025), 0 0 0 80px rgba(25,119,85,.018); }
.page-heading:not(.executive-heading) > * { position: relative; z-index: 1; }
.primary-button, .secondary-button { position: relative; overflow: hidden; }
.primary-button::after { content: ""; position: absolute; top: -50%; bottom: -50%; left: -45%; width: 28%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent); transform: skewX(-18deg); transition: left .5s ease; }
.primary-button:hover::after { left: 115%; }
.panel-section, .command-panel, .decision-alerts-card, .quick-actions-card, .indicator-command-section, .executive-kpi { border-color: #d8e2dd; box-shadow: 0 10px 32px rgba(23,37,32,.055); }
.panel-section:hover, .command-panel:hover { border-color: #cfdbd5; }
.application-footer { background: rgba(249,251,250,.9); backdrop-filter: blur(10px); }

/* Cabecera de mando del resumen */
.executive-heading-v062 {
  position: relative;
  min-height: 252px;
  overflow: hidden;
  align-items: center;
  margin-bottom: 0;
  padding: 36px 38px 62px;
  border: 1px solid #1d392e;
  border-radius: 23px;
  background: radial-gradient(circle at 80% 10%, rgba(184,115,63,.22), transparent 28%), linear-gradient(120deg, #10251d, #091711 72%);
  color: white;
  box-shadow: 0 20px 48px rgba(12,28,22,.16);
  isolation: isolate;
}
.executive-heading-v062::before { content: ""; position: absolute; z-index: -1; inset: 0; opacity: .09; background-image: linear-gradient(rgba(255,255,255,.11) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.11) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(90deg, transparent, #000); }
.executive-heading-v062 > div:not(.executive-constellation) { position: relative; z-index: 2; }
.executive-heading-v062 .dashboard-kicker { color: #d7b573; }
.executive-heading-v062 .dashboard-kicker i { background: #48c78e; }
.executive-heading-v062 h1 { max-width: 760px; font-size: clamp(38px, 4.1vw, 60px); }
.executive-heading-v062 p { max-width: 680px; color: #aec0b8; }
.executive-heading-v062 .secondary-button { border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.07); color: white; backdrop-filter: blur(8px); }
.executive-heading-v062 .secondary-button:hover { background: rgba(255,255,255,.13); }
.executive-heading-v062 .primary-button { background: #edc477; color: #16251f; box-shadow: 0 9px 25px rgba(0,0,0,.2); }
.executive-constellation { position: absolute; z-index: 0; width: 330px; height: 330px; right: 11%; top: -74px; border: 1px solid rgba(239,201,127,.17); border-radius: 50%; box-shadow: 0 0 0 48px rgba(239,201,127,.018), 0 0 0 95px rgba(239,201,127,.012); animation: constellationFloat 10s ease-in-out infinite alternate; }
.executive-constellation::before, .executive-constellation::after { content: ""; position: absolute; inset: 53px; border: 1px solid rgba(239,201,127,.16); border-radius: 50%; }
.executive-constellation::after { inset: 112px; background: radial-gradient(circle, rgba(184,115,63,.26), transparent 60%); }
.executive-constellation i { position: absolute; width: 8px; height: 8px; border: 2px solid #e8be71; border-radius: 50%; background: #153126; box-shadow: 0 0 16px rgba(232,190,113,.45); }
.executive-constellation i:nth-child(1) { left: 16px; top: 154px; }
.executive-constellation i:nth-child(2) { right: 60px; top: 46px; }
.executive-constellation i:nth-child(3) { right: 8px; bottom: 118px; }
.executive-constellation i:nth-child(4) { left: 92px; bottom: 31px; }
.executive-constellation span { position: absolute; top: 50%; right: -70px; left: -70px; height: 1px; background: linear-gradient(90deg, transparent, rgba(75,199,143,.55), rgba(239,201,127,.35), transparent); transform: rotate(-12deg); }
.market-intelligence-rail {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: -34px 19px 18px;
  overflow: hidden;
  border: 1px solid #d8e2dd;
  border-radius: 16px;
  background: rgba(255,255,255,.93);
  box-shadow: 0 16px 38px rgba(23,37,32,.11);
  backdrop-filter: blur(15px);
}
.market-intelligence-rail article { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; column-gap: 9px; padding: 14px 15px; border-right: 1px solid #e3e9e6; }
.market-intelligence-rail article:last-child { border-right: 0; }
.market-intelligence-rail article > i { grid-row: span 2; }
.market-intelligence-rail span, .market-intelligence-rail strong { display: block; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.market-intelligence-rail > article > span { color: #7e8c86; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.market-intelligence-rail strong { margin-top: 4px; color: #33463e; font-size: 11px; }
.market-intelligence-rail strong > span { display: inline; }
.rail-status { width: 8px; height: 8px; border-radius: 50%; background: #d59b37; box-shadow: 0 0 0 5px rgba(213,155,55,.12); }
.rail-status.rail-live { background: #38bc82; box-shadow: 0 0 0 5px rgba(56,188,130,.12); }
.rail-symbol { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: #edf3f0; color: #517064; font-size: 8px; font-style: normal; font-weight: 900; }
.executive-kpis { gap: 13px; }
.executive-kpi { background: linear-gradient(145deg, #fff, #f9fbfa); }
.executive-kpi:hover { transform: translateY(-4px) scale(1.005); }
.command-panel, .indicator-command-section { background: linear-gradient(145deg, #fff, #fbfcfb); }

@keyframes heroBreath { from { transform: scale(1.015) translate3d(0,0,0); } to { transform: scale(1.05) translate3d(-.7%, -.4%, 0); } }
@keyframes livePulse { 0%,100% { opacity: .65; transform: scale(.85); } 50% { opacity: 1; transform: scale(1); } }
@keyframes marketBars { from { transform: scaleY(.55); opacity: .45; } to { transform: scaleY(1); opacity: 1; } }
@keyframes constellationFloat { from { transform: rotate(-3deg) translateY(0); } to { transform: rotate(4deg) translateY(10px); } }
@keyframes interfaceArrival { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1260px) {
  .auth-v062 { grid-template-columns: minmax(0, 1.25fr) minmax(390px, .75fr); }
  .auth-experience-copy { width: 62%; }
  .auth-experience-copy h1 { font-size: clamp(40px, 4vw, 56px); }
  .market-intelligence-rail { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .market-intelligence-rail article:nth-child(3) { border-right: 0; }
  .market-intelligence-rail article:nth-child(n+4) { border-top: 1px solid #e3e9e6; }
}

@media (max-width: 1020px) {
  .auth-v062 { grid-template-columns: 1fr; padding: 10px; }
  .auth-experience { min-height: 610px; }
  .auth-entry { min-height: auto; padding: 72px 24px 85px; border-radius: 24px; }
  .auth-experience-copy { width: 60%; }
  .application-layout { grid-template-columns: 1fr; }
  .application-body .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(300px, 88vw);
    height: 100vh;
    transform: translateX(-105%);
    transition: transform .26s cubic-bezier(.2,.8,.2,1);
  }
  .application-body.nav-open { overflow: hidden; }
  .application-body.nav-open .sidebar { transform: translateX(0); }
  .sidebar-close { display: inline-grid; place-items: center; position: absolute; z-index: 5; top: 14px; right: 13px; width: 32px; height: 32px; border: 1px solid rgba(255,255,255,.1); border-radius: 9px; background: rgba(255,255,255,.05); color: #cad7d1; font-size: 20px; cursor: pointer; }
  .sidebar-backdrop { display: block; position: fixed; z-index: 50; inset: 0; background: rgba(5,13,10,.52); opacity: 0; pointer-events: none; transition: opacity .22s ease; backdrop-filter: blur(3px); }
  .application-body.nav-open .sidebar-backdrop { opacity: 1; pointer-events: auto; }
  .nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 4px; width: 36px; height: 36px; padding: 8px; border: 1px solid #d7e1dc; border-radius: 10px; background: #fff; cursor: pointer; }
  .nav-toggle span { display: block; width: 100%; height: 2px; border-radius: 2px; background: #345047; }
  .application-body .sidebar .brand { min-height: 92px; padding: 3px 7px 20px; }
  .application-body .sidebar-nav { display: flex; grid-template-columns: none; flex-direction: column; overflow: visible; }
  .application-body .sidebar-nav .nav-label { display: block; }
  .application-body .sidebar-nav a { justify-content: flex-start; min-height: 46px; flex-direction: row; gap: 11px; padding: 9px 11px; font-size: 14px; }
  .application-body .sidebar-foot { display: flex; }
  .topbar { position: sticky; padding-inline: 19px; }
  .topbar > .topbar-leading { display: flex; }
  .content-area { padding: 24px 20px 36px; }
}

@media (max-width: 720px) {
  .auth-experience { min-height: 640px; }
  .auth-experience-head { padding: 24px; }
  .auth-experience-head img { width: 166px; }
  .auth-live-pill { padding: 7px 9px; font-size: 7px; }
  .auth-experience-copy { left: 24px; bottom: 230px; width: calc(100% - 48px); }
  .auth-experience-copy h1 { max-width: 500px; font-size: clamp(36px, 10vw, 50px); }
  .auth-experience-copy p { max-width: 500px; font-size: 11px; }
  .auth-market-pulse { display: none; }
  .auth-proof-grid { grid-template-columns: 1fr; right: 18px; bottom: 18px; left: 18px; }
  .auth-proof-grid article { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; padding: 10px 13px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .auth-proof-grid article:last-child { border-bottom: 0; }
  .auth-proof-grid strong { grid-column: 2; grid-row: 1; margin: 0; font-size: 15px; }
  .auth-proof-grid small { margin-top: 3px; }
  .auth-entry { padding: 58px 21px 76px; }
  .auth-mobile-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-bottom: 48px; }
  .auth-mobile-brand img { width: 190px; height: auto; }
  .auth-mobile-brand span { margin-left: 55px; color: #71807a; font-size: 7px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
  .auth-v062 + .public-footer { position: static; padding: 16px 24px; background: #f4f7f5; color: #78857f; mix-blend-mode: normal; }
  .system-clock { display: none; }
  .topbar { min-height: 69px; }
  .topbar-account-area { width: auto; margin-left: auto; }
  .executive-heading-v062 { align-items: flex-start; min-height: 330px; padding: 28px 25px 76px; }
  .executive-heading-v062 .executive-actions { width: 100%; }
  .executive-constellation { right: -165px; top: -90px; }
  .market-intelligence-rail { grid-template-columns: 1fr; margin: -38px 12px 16px; }
  .market-intelligence-rail article { border-right: 0; border-bottom: 1px solid #e3e9e6; }
  .market-intelligence-rail article:nth-child(n+4) { border-top: 0; }
  .market-intelligence-rail article:last-child { border-bottom: 0; }
  .page-heading:not(.executive-heading) { padding: 20px; }
}

@media (max-width: 480px) {
  .auth-v062 { padding: 0; }
  .auth-experience, .auth-entry { border-radius: 0; }
  .auth-experience { min-height: 620px; }
  .auth-experience-image { background-position: 61% center; }
  .auth-live-pill { max-width: 128px; line-height: 1.3; }
  .auth-experience-copy { bottom: 228px; }
  .auth-experience-copy h1 { font-size: 36px; }
  .auth-entry .auth-copy h2 { font-size: 36px; }
  .content-area { padding: 18px 12px 30px; }
  .account-menu { gap: 7px; }
  .account-menu .link-button { padding-inline: 4px; }
  .private-data-chip { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-experience-image, .auth-live-pill i, .auth-market-pulse span, .executive-constellation, .content-area > * { animation: none !important; }
}

/* Movimiento inmersivo · v0.6.3 */
.auth-experience {
  --image-x: 0px;
  --image-y: 0px;
  --orbit-x: 0px;
  --orbit-y: 0px;
}
.auth-experience-image {
  will-change: transform;
  animation: heroBreathV063 14s ease-in-out infinite alternate;
}
.auth-motion-canvas {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .76;
  pointer-events: none;
}
.auth-orbit-field {
  position: absolute;
  z-index: 1;
  top: 1%;
  right: -3%;
  width: min(59%, 610px);
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate3d(var(--orbit-x), var(--orbit-y), 0);
  transition: transform .7s cubic-bezier(.2,.75,.2,1);
  pointer-events: none;
  will-change: transform;
}
.auth-orbit {
  position: absolute;
  display: block;
  border: 1px solid rgba(239,201,127,.22);
  border-radius: 50%;
  box-shadow: inset 0 0 38px rgba(239,201,127,.025), 0 0 25px rgba(0,0,0,.12);
  will-change: transform;
}
.auth-orbit::before,
.auth-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}
.auth-orbit::before {
  inset: -3px 42%;
  border-top: 2px solid rgba(75,206,148,.85);
  border-bottom: 2px solid rgba(75,206,148,.15);
  filter: drop-shadow(0 0 7px rgba(75,206,148,.5));
}
.auth-orbit::after {
  inset: 18% -3px;
  border-right: 2px solid rgba(239,201,127,.72);
  filter: drop-shadow(0 0 7px rgba(239,201,127,.35));
}
.auth-orbit i,
.auth-orbit b {
  position: absolute;
  display: block;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(255,230,175,.8);
  border-radius: 50%;
  background: #16382c;
  box-shadow: 0 0 0 5px rgba(75,206,148,.08), 0 0 12px rgba(239,201,127,.5);
}
.auth-orbit i { top: 8%; left: 28%; }
.auth-orbit b { right: 5%; bottom: 31%; }
.orbit-outer { inset: 2%; animation: orbitClockwise 28s linear infinite; }
.orbit-middle { inset: 15%; border-color: rgba(75,206,148,.18); animation: orbitCounter 21s linear infinite; }
.orbit-middle i { top: auto; bottom: 7%; left: 22%; }
.orbit-middle b { right: 13%; bottom: auto; top: 8%; }
.orbit-inner { inset: 29%; animation: orbitClockwise 13s linear infinite; }
.orbit-inner i { top: 47%; left: -4px; }
.auth-orbit-core {
  position: absolute;
  inset: 39%;
  border: 1px solid rgba(239,201,127,.18);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239,201,127,.13), rgba(75,206,148,.035) 47%, transparent 70%);
  box-shadow: 0 0 55px rgba(184,115,63,.11);
  animation: orbitCorePulse 4.8s ease-in-out infinite;
}
.auth-signal-wave {
  position: absolute;
  z-index: 1;
  right: -2%;
  bottom: 135px;
  left: 31%;
  width: 71%;
  height: 170px;
  overflow: visible;
  opacity: .68;
  pointer-events: none;
  filter: drop-shadow(0 0 7px rgba(69,198,140,.18));
}
.auth-signal-base,
.auth-signal-flow {
  fill: none;
  stroke: url(#auth-signal-gradient);
  vector-effect: non-scaling-stroke;
}
.auth-signal-base { stroke-width: 1; opacity: .22; }
.auth-signal-flow {
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-dasharray: 14 22;
  animation: signalTravel 3.4s linear infinite;
}
.auth-signal-nodes circle {
  fill: #102a21;
  stroke: #efc97f;
  stroke-width: 1.5;
  transform-box: fill-box;
  transform-origin: center;
  animation: signalNode 2.8s ease-in-out infinite;
}
.auth-signal-nodes circle:nth-child(2) { animation-delay: -.7s; }
.auth-signal-nodes circle:nth-child(3) { animation-delay: -1.4s; }
.auth-signal-nodes circle:nth-child(4) { animation-delay: -2.1s; }
.auth-scan-light {
  position: absolute;
  z-index: 1;
  top: -35%;
  bottom: -35%;
  left: -22%;
  width: 12%;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(239,201,127,.085), transparent);
  transform: rotate(12deg);
  animation: intelligenceScan 9s ease-in-out infinite;
  pointer-events: none;
}
.auth-experience-head { animation: interfaceArrival .7s .08s cubic-bezier(.2,.8,.2,1) both; }
.auth-experience-copy { animation: heroCopyArrival .9s .18s cubic-bezier(.2,.8,.2,1) both; }
.auth-proof-grid { animation: proofArrival .85s .38s cubic-bezier(.2,.8,.2,1) both; }
.auth-proof-grid::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -18%;
  width: 12%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.075), transparent);
  transform: skewX(-16deg);
  animation: proofGlint 8s 2s ease-in-out infinite;
  pointer-events: none;
}
.auth-entry .auth-panel { animation: accessPanelArrival .75s .13s cubic-bezier(.2,.8,.2,1) both; }
.auth-submit b { transition: transform .22s ease, background .22s ease; }
.auth-submit:hover b { transform: translateX(3px); background: rgba(255,255,255,.16); }

@keyframes heroBreathV063 {
  from { transform: translate3d(var(--image-x), var(--image-y), 0) scale(1.02); }
  to { transform: translate3d(var(--image-x), var(--image-y), 0) scale(1.065); }
}
@keyframes orbitClockwise { to { transform: rotate(360deg); } }
@keyframes orbitCounter { to { transform: rotate(-360deg); } }
@keyframes orbitCorePulse { 0%,100% { transform: scale(.92); opacity: .38; } 50% { transform: scale(1.14); opacity: .9; } }
@keyframes signalTravel { to { stroke-dashoffset: -72; } }
@keyframes signalNode { 0%,100% { transform: scale(.72); opacity: .45; } 50% { transform: scale(1.45); opacity: 1; } }
@keyframes intelligenceScan { 0%,58% { left: -22%; opacity: 0; } 65% { opacity: .8; } 82% { left: 112%; opacity: .12; } 100% { left: 112%; opacity: 0; } }
@keyframes heroCopyArrival { from { opacity: 0; transform: translate3d(-18px,16px,0); } to { opacity: 1; transform: translate3d(0,0,0); } }
@keyframes proofArrival { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes accessPanelArrival { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes proofGlint { 0%,60% { left: -18%; opacity: 0; } 69% { opacity: 1; } 82%,100% { left: 112%; opacity: 0; } }

@media (max-width: 1020px) {
  .auth-orbit-field { top: 1%; right: -6%; width: min(64%, 570px); }
  .auth-signal-wave { left: 28%; width: 75%; }
}

@media (max-width: 720px) {
  .auth-orbit-field { top: 4%; right: -30%; width: 92%; opacity: .72; }
  .auth-signal-wave { bottom: 205px; left: 10%; width: 94%; height: 120px; opacity: .44; }
  .auth-motion-canvas { opacity: .56; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-experience-image,
  .auth-orbit,
  .auth-orbit-core,
  .auth-signal-flow,
  .auth-signal-nodes circle,
  .auth-scan-light,
  .auth-experience-head,
  .auth-experience-copy,
  .auth-proof-grid,
  .auth-proof-grid::after,
  .auth-entry .auth-panel { animation: none !important; }
  .auth-motion-canvas { display: none; }
}

/* Narrativa interactiva al desplazarse por la plataforma */
.platform-scroll-progress {
  position: fixed;
  z-index: 220;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(90deg, #37bd82, #d49a36 72%, #efc97f);
  box-shadow: 0 2px 9px rgba(25,119,85,.24);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .09s linear;
  pointer-events: none;
}
.application-body::before {
  transform: translate3d(0, var(--page-scroll, 0px), 0);
  will-change: transform;
}
.motion-capable .scroll-reveal-v063 {
  --scroll-lift: 0px;
  opacity: 0;
  filter: blur(2px);
  transform: translate3d(0, calc(24px + var(--scroll-lift)), 0) scale(.988);
  transition:
    opacity .62s cubic-bezier(.2,.8,.2,1) var(--reveal-delay, 0ms),
    transform .68s cubic-bezier(.2,.8,.2,1) var(--reveal-delay, 0ms),
    filter .5s ease var(--reveal-delay, 0ms),
    border-color .22s ease,
    box-shadow .22s ease;
  will-change: opacity, transform;
}
.motion-capable .scroll-reveal-v063.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, var(--scroll-lift), 0) scale(1);
}
.motion-capable .executive-kpi.scroll-reveal-v063.is-visible:hover,
.motion-capable .indicator-command-card.scroll-reveal-v063.is-visible:hover,
.motion-capable .chart-card.scroll-reveal-v063.is-visible:hover {
  transform: translate3d(0, calc(var(--scroll-lift) - 4px), 0) scale(1.006);
}
.motion-capable .indicator-card.scroll-reveal-v063.is-visible[open] {
  box-shadow: 0 18px 45px rgba(22,45,36,.09);
}
.motion-capable .indicator-card.scroll-reveal-v063.is-visible summary::after {
  transition: color .25s ease, transform .35s cubic-bezier(.2,.8,.2,1);
}
.motion-capable .indicator-card.scroll-reveal-v063.is-visible[open] summary::after {
  transform: rotate(180deg);
}
.motion-capable .chart-scroll-reveal-v063 {
  opacity: .3;
  clip-path: inset(0 100% 0 0 round 10px);
  transform: translateY(8px);
  transition: clip-path 1.05s cubic-bezier(.18,.8,.18,1), opacity .5s ease, transform .7s ease;
}
.motion-capable .chart-scroll-reveal-v063.is-visible {
  opacity: 1;
  clip-path: inset(0 0 0 0 round 10px);
  transform: translateY(0);
}
.motion-capable .indicator-card.is-visible .indicator-meter {
  transform-origin: left center;
  animation: meterRevealV063 .8s .18s cubic-bezier(.2,.8,.2,1) both;
}
.motion-capable .indicator-command-card.is-visible .indicator-axis i,
.motion-capable .executive-score-card.is-visible .mini-scale i {
  animation: signalMarkerV063 .72s .25s cubic-bezier(.2,.8,.2,1) both;
}
.motion-capable .decision-alert.is-visible,
.motion-capable .quick-action.is-visible {
  transition: transform .22s ease, background .22s ease, border-color .22s ease;
}
@keyframes meterRevealV063 { from { transform: scaleX(.05); opacity: .25; } to { transform: scaleX(1); opacity: 1; } }
@keyframes signalMarkerV063 { from { transform: translate(-50%, 8px) scale(.5); opacity: 0; } to { transform: translate(-50%, 0) scale(1); opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .platform-scroll-progress { display: none; }
  .application-body::before { transform: none; }
  .motion-capable .scroll-reveal-v063,
  .motion-capable .scroll-reveal-v063.is-visible,
  .motion-capable .chart-scroll-reveal-v063,
  .motion-capable .chart-scroll-reveal-v063.is-visible {
    opacity: 1;
    filter: none;
    clip-path: none;
    transform: none;
    transition: none;
    animation: none;
  }
}

/* Estabilidad estructural y sincronización de recursos · v0.6.12 */
[hidden] { display: none !important; }
.auth-experience { --anasur-motion-version: 703; }
.application-layout,
.application-layout > .sidebar,
.application-layout > .main-area,
.topbar { animation: none !important; }
.application-layout,
.application-layout > .sidebar,
.application-layout > .main-area {
  filter: none !important;
}
.application-body.session-leaving .application-layout {
  opacity: .42;
  pointer-events: none;
  transition: opacity .18s ease;
}
.logout-form .link-button:disabled { opacity: .65; text-decoration: none; cursor: wait; }

@media (min-width: 1021px) {
  .application-layout {
    display: grid !important;
    grid-template-columns: 272px minmax(0, 1fr) !important;
    min-height: 100vh;
  }
  .application-layout > .sidebar {
    position: sticky !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    top: 0 !important;
    left: auto !important;
    width: auto !important;
    max-width: none !important;
    height: 100vh !important;
    transform: none !important;
  }
  .application-layout > .main-area {
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: auto !important;
    min-width: 0 !important;
    transform: none !important;
  }
  .sidebar-backdrop,
  .sidebar-close,
  .nav-toggle { display: none !important; }
}

@media (max-width: 1020px) {
  .application-layout { display: block !important; min-height: 100vh; }
  .application-layout > .main-area { width: 100% !important; min-width: 0 !important; }
  .application-body .application-layout > .sidebar {
    position: fixed !important;
    z-index: 60 !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 300px !important;
    max-width: 88vw !important;
    height: 100dvh !important;
    transform: translate3d(-105%, 0, 0) !important;
  }
  .application-body.nav-open .application-layout > .sidebar { transform: translate3d(0, 0, 0) !important; }
  .application-body.nav-open .sidebar-backdrop { display: block !important; }
}

/* Bot recolector de indicadores · v0.6.11 */
.bot-indicator-status {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}
.bot-indicator-status article {
  min-width: 0;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 8px 26px rgba(25,39,34,.045);
}
.bot-indicator-status span,
.bot-indicator-status strong,
.bot-indicator-status small { display: block; }
.bot-indicator-status span { color: #7b8882; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.bot-indicator-status strong { margin-top: 7px; color: #1d3029; font-size: 17px; }
.bot-indicator-status small { margin-top: 5px; color: var(--muted); line-height: 1.4; }
.bot-compact-history { padding: 0; overflow: hidden; }
.bot-compact-history > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 21px;
  cursor: pointer;
  list-style: none;
}
.bot-compact-history > summary::-webkit-details-marker { display: none; }
.bot-compact-history > summary span,
.bot-compact-history > summary strong,
.bot-compact-history > summary small { display: block; }
.bot-compact-history > summary strong { margin-top: 4px; }
.bot-compact-history > summary small { color: var(--muted); }
.bot-compact-history[open] > summary { border-bottom: 1px solid var(--line); }
.bot-compact-history .section-heading,
.bot-compact-history .indicator-table-wrap { margin-right: 21px; margin-left: 21px; }
.bot-compact-history .section-heading { margin-top: 18px; }
.bot-compact-history .indicator-table-wrap { margin-bottom: 21px; }

@media (max-width: 900px) {
  .bot-indicator-status { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .bot-indicator-status { grid-template-columns: 1fr; }
  .bot-compact-history > summary { align-items: flex-start; flex-direction: column; }
}

/* Acceso cinematográfico compacto y desplegable · v0.6.12 */
html:has(body.public-body .auth-v062),
body.public-body:has(.auth-v062) {
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}
.auth-v062 {
  width: 100%;
  height: 100dvh;
  min-height: 0;
  max-height: 100dvh;
  padding: 10px;
  overflow: hidden;
}
.auth-v062 .auth-experience,
.auth-v062 .auth-entry {
  height: calc(100dvh - 20px);
  min-height: 0;
  max-height: calc(100dvh - 20px);
}
.auth-v062 .auth-entry {
  overflow: hidden;
  padding: clamp(22px, 4.5vh, 48px) clamp(28px, 4vw, 66px);
}
.auth-v062 .auth-entry .auth-panel {
  width: min(430px, 100%);
  max-height: 100%;
}
.auth-credentials-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  min-height: 62px;
  margin-top: 23px;
  padding: 10px 11px 10px 15px;
  border: 1px solid #cfdad4;
  border-radius: 14px;
  background: rgba(255,255,255,.76);
  color: #263b33;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(23,37,32,.055);
  transition: border-color .22s ease, box-shadow .22s ease, background .22s ease, transform .22s ease;
}
.auth-credentials-toggle:hover,
.auth-credentials-toggle[aria-expanded="true"] {
  border-color: #97b8aa;
  background: #fff;
  box-shadow: 0 12px 30px rgba(23,70,52,.09);
  transform: translateY(-1px);
}
.auth-credentials-toggle > span,
.auth-credentials-toggle small,
.auth-credentials-toggle strong { display: block; }
.auth-credentials-toggle small {
  color: #8a6a32;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.auth-credentials-toggle strong { margin-top: 4px; font-size: 12px; }
.auth-credentials-toggle i {
  display: inline-grid;
  place-items: center;
  width: 35px;
  height: 35px;
  flex: 0 0 auto;
  border-radius: 11px;
  background: #173128;
  color: #efc97f;
  transition: transform .38s cubic-bezier(.2,.8,.2,1), background .2s ease;
}
.auth-credentials-toggle i svg { fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.auth-credentials-toggle[aria-expanded="true"] i { transform: rotate(180deg); background: #1d503e; }
.auth-credentials-region { display: grid; grid-template-rows: 1fr; opacity: 1; }
.auth-credentials-inner { min-height: 0; overflow: hidden; }
.credentials-toggle-ready .auth-credentials-region {
  grid-template-rows: 0fr;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: grid-template-rows .42s cubic-bezier(.2,.8,.2,1), opacity .24s ease, visibility 0s .42s;
}
.credentials-toggle-ready .auth-credentials-region.is-expanded {
  grid-template-rows: 1fr;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: grid-template-rows .42s cubic-bezier(.2,.8,.2,1), opacity .32s .08s ease, visibility 0s;
}
.auth-v062 .auth-form { margin-top: 18px !important; gap: 12px; }
.auth-v062 .auth-input-shell { min-height: 48px; }
.auth-v062 .auth-input-shell input { min-height: 44px; }
.auth-v062 .auth-submit { min-height: 49px; }
.auth-v062 .auth-security-note { margin-top: 18px; padding-top: 15px; }
.auth-motion-active .auth-motion-canvas { opacity: .9; }
.auth-motion-active .auth-orbit-field { filter: drop-shadow(0 0 30px rgba(75,206,148,.09)); }
.auth-motion-active .auth-signal-wave { opacity: .82; }
.auth-motion-active .auth-experience-image { animation-duration: 11s; }

@media (min-width: 1021px) and (max-height: 760px) {
  .auth-experience-head { padding: 22px 30px; }
  .auth-experience-head img { width: 176px; }
  .auth-experience-copy { left: 31px; bottom: 141px; width: min(540px, 56%); }
  .auth-experience-copy h1 { margin: 10px 0 11px; font-size: clamp(38px, 4vw, 54px); }
  .auth-experience-copy p { font-size: 10px; line-height: 1.5; }
  .auth-proof-grid { right: 18px; bottom: 17px; left: 18px; }
  .auth-proof-grid article { padding: 10px 13px; }
  .auth-proof-grid span { font-size: 8px; }
  .auth-proof-grid strong { margin: 5px 0 2px; font-size: 15px; }
  .auth-proof-grid small { font-size: 8px; }
  .auth-market-pulse { bottom: 119px; }
  .auth-signal-wave { bottom: 101px; height: 135px; }
  .auth-v062 .auth-entry { padding-block: 20px; }
  .auth-entry .auth-copy h2 { margin: 7px 0 9px; font-size: clamp(32px, 3vw, 41px); }
  .auth-entry .auth-copy p { font-size: 10px; line-height: 1.48; }
  .auth-credentials-toggle { min-height: 54px; margin-top: 16px; }
  .auth-v062 .auth-form { margin-top: 13px !important; gap: 8px; }
  .auth-form label > span:first-child { margin-bottom: 5px; font-size: 9px; }
  .auth-v062 .auth-input-shell { min-height: 43px; }
  .auth-v062 .auth-input-shell input { min-height: 39px; }
  .auth-v062 .auth-submit { min-height: 44px; }
  .auth-v062 .auth-security-note { margin-top: 13px; padding-top: 11px; }
}

@media (max-width: 1020px) {
  .auth-v062 { position: relative; display: block; padding: 8px; }
  .auth-v062 .auth-experience { height: calc(100dvh - 16px); min-height: 0; max-height: calc(100dvh - 16px); border-radius: 22px; }
  .auth-v062 .auth-entry {
    position: absolute;
    z-index: 20;
    right: clamp(16px, 4vw, 38px);
    bottom: clamp(16px, 4vh, 34px);
    width: min(430px, calc(100% - 32px));
    height: auto;
    min-height: 0;
    max-height: calc(100dvh - 32px);
    padding: clamp(20px, 3.6vh, 31px);
    border: 1px solid rgba(255,255,255,.62);
    border-radius: 20px;
    background: rgba(247,250,248,.95);
    box-shadow: 0 24px 65px rgba(3,15,10,.34);
    backdrop-filter: blur(22px);
  }
  .auth-v062 .auth-entry .auth-panel { width: 100%; }
  .auth-mobile-brand { display: none; }
  .auth-v062 .auth-experience-copy { bottom: 142px; width: min(520px, 52%); }
  .auth-v062 .auth-proof-grid { right: calc(min(430px, 42vw) + 50px); }
  .auth-v062 + .public-footer { position: fixed; z-index: 40; right: 24px; bottom: 13px; left: 24px; padding: 0; background: transparent; color: rgba(255,255,255,.62); mix-blend-mode: difference; }
}

@media (max-width: 720px) {
  .auth-v062 { padding: 0; }
  .auth-v062 .auth-experience { height: 100dvh; max-height: 100dvh; border: 0; border-radius: 0; }
  .auth-v062 .auth-experience-head { padding: 20px; }
  .auth-v062 .auth-experience-head img { width: 156px; }
  .auth-v062 .auth-experience-copy { top: 105px; bottom: auto; left: 21px; width: calc(100% - 42px); }
  .auth-v062 .auth-experience-copy h1 { max-width: 420px; margin: 9px 0; font-size: clamp(30px, 9vw, 40px); }
  .auth-v062 .auth-experience-copy p { display: none; }
  .auth-v062 .auth-proof-grid, .auth-v062 .auth-market-pulse { display: none; }
  .auth-v062 .auth-entry {
    right: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
    max-height: calc(100dvh - 24px);
    padding: 19px;
    border-radius: 18px;
  }
  .auth-entry .auth-copy h2 { margin: 6px 0 8px; font-size: clamp(27px, 8vw, 34px); }
  .auth-entry .auth-copy p { font-size: 10px; line-height: 1.45; }
  .auth-credentials-toggle { min-height: 52px; margin-top: 14px; }
  .auth-v062 .auth-security-note { margin-top: 12px; padding-top: 10px; }
  .auth-v062 + .public-footer { display: none; }
  .auth-orbit-field { right: -39%; width: 105%; }
  .auth-signal-wave { bottom: 35%; }
}

@media (max-height: 610px) and (max-width: 720px) {
  .auth-v062 .auth-experience-copy { top: 79px; }
  .auth-v062 .auth-experience-copy h1 { font-size: 29px; }
  .auth-entry .auth-copy p, .auth-v062 .auth-security-note { display: none; }
  .auth-v062 .auth-entry { padding: 15px 17px; }
  .auth-credentials-toggle { margin-top: 10px; }
  .auth-v062 .auth-form { margin-top: 10px !important; gap: 7px; }
  .auth-v062 .auth-input-shell { min-height: 40px; }
  .auth-v062 .auth-input-shell input { min-height: 36px; }
  .auth-v062 .auth-submit { min-height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-credentials-toggle,
  .auth-credentials-toggle i,
  .auth-credentials-region { transition: none !important; }
}

@media (scripting: none) {
  .auth-credentials-toggle { display: none; }
  .credentials-toggle-ready .auth-credentials-region {
    grid-template-rows: 1fr;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

/* Precisión visual del acceso · v0.6.12 */
.auth-experience-image {
  background: none;
  transform: translate3d(var(--image-x), var(--image-y), 0);
  animation: none !important;
  transition: none;
  contain: paint;
}
.auth-experience-image::before {
  content: "";
  position: absolute;
  inset: -3%;
  background-image: linear-gradient(90deg, rgba(8,18,14,.32), rgba(8,18,14,.04) 48%, rgba(8,18,14,.08)), url('/anasur-intelligence-hero-v062.webp');
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
  transform-origin: center;
  animation: heroBreathV0612 16s ease-in-out infinite alternate;
  will-change: transform;
}
.auth-motion-active .auth-experience-image { animation: none !important; }
.auth-motion-active .auth-experience-image::before { animation-duration: 14s; }

.auth-credentials-toggle {
  justify-content: center;
  min-height: 53px;
  padding: 10px 12px 10px 18px;
  border-color: #173128;
  background: linear-gradient(105deg, #173128, #0f241c);
  color: #fff;
  text-align: center;
  box-shadow: 0 11px 28px rgba(15,36,28,.14);
}
.auth-credentials-toggle:hover,
.auth-credentials-toggle[aria-expanded="true"] {
  border-color: #244b3d;
  background: linear-gradient(105deg, #1c3d31, #122a21);
  box-shadow: 0 13px 31px rgba(15,36,28,.18);
  transform: none;
}
.auth-credentials-toggle strong {
  flex: 1;
  margin: 0;
  color: #fff;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.auth-credentials-toggle i {
  width: 31px;
  height: 31px;
  margin-left: -31px;
  border: 1px solid rgba(239,201,127,.18);
  border-radius: 9px;
  background: rgba(255,255,255,.08);
}
.auth-credentials-toggle[aria-expanded="true"] i { background: rgba(255,255,255,.11); }

.auth-proof-grid { bottom: 42px; }
.auth-v062 + .public-footer {
  right: 34px;
  bottom: 24px;
  left: 34px;
}

@keyframes heroBreathV0612 {
  from { transform: scale(1.015); }
  to { transform: scale(1.045); }
}

@media (min-width: 1021px) and (max-height: 760px) {
  .auth-proof-grid { bottom: 38px; }
}

@media (max-width: 1020px) and (min-width: 721px) {
  .auth-v062 + .public-footer { bottom: 21px; }
}

@media (max-width: 480px) {
  .auth-experience-image::before { background-position: 61% center; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-experience-image::before { animation: none !important; }
}

/* Panel integral de acceso plegable · v0.6.13 */
.auth-v062 {
  --auth-drawer-width: min(460px, calc(100vw - 54px));
  position: relative;
  display: block;
}
.auth-v062 .auth-experience {
  width: 100%;
  height: calc(100dvh - 20px);
  min-height: 0;
  max-height: calc(100dvh - 20px);
}
.auth-v062 .auth-access-drawer {
  position: absolute;
  z-index: 33;
  top: 10px;
  right: 10px;
  bottom: 10px;
  width: var(--auth-drawer-width);
  height: auto;
  min-height: 0;
  max-height: none;
  overflow: auto;
  padding: clamp(24px, 4.5vh, 48px) clamp(30px, 4vw, 58px);
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(250,252,250,.985), rgba(236,242,239,.98));
  box-shadow: -24px 0 70px rgba(3,15,10,.28);
  overscroll-behavior: contain;
  backdrop-filter: blur(22px);
}
.credentials-toggle-ready .auth-v062 .auth-access-drawer {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(calc(100% + 28px), 0, 0);
  transition:
    transform .58s cubic-bezier(.2,.82,.2,1),
    opacity .28s ease,
    visibility 0s .58s;
}
.credentials-toggle-ready .auth-v062 .auth-access-drawer.is-expanded {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
  transition:
    transform .58s cubic-bezier(.2,.82,.2,1),
    opacity .34s .06s ease,
    visibility 0s;
}
.auth-v062 .auth-access-drawer .auth-panel {
  display: block;
  width: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
}
.auth-drawer-tab {
  position: absolute;
  z-index: 45;
  top: 50%;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 124px;
  min-height: 52px;
  padding: 8px 9px 8px 17px;
  border: 1px solid rgba(239,201,127,.3);
  border-right: 0;
  border-radius: 15px 0 0 15px;
  background: linear-gradient(105deg, #173a2e, #0d2119);
  color: #fff;
  font: inherit;
  cursor: pointer;
  box-shadow: -12px 14px 34px rgba(3,15,10,.28);
  transform: translateY(-50%);
  transition:
    right .58s cubic-bezier(.2,.82,.2,1),
    background .2s ease,
    box-shadow .2s ease;
}
.auth-v062.access-open .auth-drawer-tab { right: calc(var(--auth-drawer-width) + 10px); }
.auth-drawer-tab:hover,
.auth-drawer-tab:focus-visible {
  background: linear-gradient(105deg, #20513f, #123127);
  box-shadow: -15px 16px 38px rgba(3,15,10,.34);
}
.auth-drawer-tab strong {
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.auth-drawer-tab i {
  display: inline-grid;
  place-items: center;
  width: 33px;
  height: 33px;
  flex: 0 0 auto;
  border: 1px solid rgba(239,201,127,.22);
  border-radius: 10px;
  background: rgba(255,255,255,.07);
  color: #efc97f;
}
.auth-drawer-tab i svg {
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .45s cubic-bezier(.2,.82,.2,1);
}
.auth-v062.access-open .auth-drawer-tab i svg { transform: rotate(180deg); }
.auth-v062 + .public-footer { z-index: 40; }

@media (max-width: 720px) {
  .auth-v062 { --mobile-drawer-height: min(570px, calc(100dvh - 78px)); }
  .auth-v062 .auth-access-drawer {
    top: auto;
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
    height: var(--mobile-drawer-height);
    max-height: var(--mobile-drawer-height);
    padding: 24px 20px;
    border-radius: 21px;
    box-shadow: 0 -22px 60px rgba(3,15,10,.36);
  }
  .credentials-toggle-ready .auth-v062 .auth-access-drawer {
    transform: translate3d(0, calc(100% + 28px), 0);
  }
  .credentials-toggle-ready .auth-v062 .auth-access-drawer.is-expanded { transform: translate3d(0, 0, 0); }
  .auth-drawer-tab {
    top: auto;
    right: 18px;
    bottom: 18px;
    width: 128px;
    min-height: 50px;
    border-right: 1px solid rgba(239,201,127,.3);
    border-radius: 14px;
    transform: none;
    transition:
      bottom .58s cubic-bezier(.2,.82,.2,1),
      right .58s cubic-bezier(.2,.82,.2,1),
      background .2s ease,
      box-shadow .2s ease;
  }
  .auth-v062.access-open .auth-drawer-tab {
    right: 22px;
    bottom: calc(var(--mobile-drawer-height) + 12px);
  }
  .auth-entry .auth-copy h2 { padding-right: 0; }
}

@media (max-height: 610px) and (max-width: 720px) {
  .auth-v062 .auth-access-drawer { padding: 17px 19px; }
  .auth-v062 .auth-access-drawer .auth-copy p,
  .auth-v062 .auth-access-drawer .auth-security-note { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  .credentials-toggle-ready .auth-v062 .auth-access-drawer,
  .auth-drawer-tab,
  .auth-drawer-tab i svg { transition: none !important; }
}

@media (scripting: none) {
  .auth-drawer-tab { display: none; }
  .credentials-toggle-ready .auth-v062 .auth-access-drawer {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }
}

/* Núcleo solidario con el grano · v0.6.14 */
.auth-v062 {
  --access-core-shift-x: 0px;
  --access-core-shift-y: 0px;
}
.auth-v062.access-open {
  --access-core-shift-x: clamp(-185px, -13vw, -130px);
}
.auth-experience-image,
.auth-orbit-field {
  translate: var(--access-core-shift-x) var(--access-core-shift-y);
}
.auth-experience-image {
  transition: translate .62s cubic-bezier(.2,.82,.2,1);
}
.auth-experience-image::before {
  transform-origin: 69% 45%;
}
.auth-orbit-field {
  right: 7%;
  transition:
    transform .7s cubic-bezier(.2,.75,.2,1),
    translate .62s cubic-bezier(.2,.82,.2,1);
}

@media (max-width: 720px) {
  .auth-v062.access-open {
    --access-core-shift-x: 0px;
    --access-core-shift-y: -44px;
  }
  .auth-orbit-field {
    right: -39%;
    width: 105%;
  }
  .auth-experience-image::before { transform-origin: 84% 43%; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-experience-image,
  .auth-orbit-field { transition: none !important; }
}

/* Acomodación integral de la escena · v0.6.15 */
@media (min-width: 1021px) {
  .auth-v062 .auth-experience {
    width: 100%;
    transition: width .62s cubic-bezier(.2,.82,.2,1);
  }
  .auth-v062.access-open {
    --access-core-shift-x: 0px;
    --access-core-shift-y: 0px;
  }
  .auth-v062.access-open .auth-experience {
    width: calc(100% - var(--auth-drawer-width));
  }
  .auth-orbit-field {
    transition:
      right .62s cubic-bezier(.2,.82,.2,1),
      transform .7s cubic-bezier(.2,.75,.2,1),
      translate .62s cubic-bezier(.2,.82,.2,1);
  }
  .auth-v062.access-open .auth-orbit-field { right: -5%; }
}

@media (max-width: 1020px) {
  .auth-v062 .auth-experience,
  .auth-v062.access-open .auth-experience { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-v062 .auth-experience { transition: none !important; }
}

/* Apertura lineal sin desplazamiento del navegador · v0.6.16 */
.auth-v062 { overflow: clip; }
.credentials-toggle-ready .auth-v062 .auth-access-drawer {
  opacity: 1;
  transition:
    transform .62s cubic-bezier(.2,.82,.2,1),
    visibility 0s .62s;
}
.credentials-toggle-ready .auth-v062 .auth-access-drawer.is-expanded {
  opacity: 1;
  transition:
    transform .62s cubic-bezier(.2,.82,.2,1),
    visibility 0s;
}

@media (prefers-reduced-motion: reduce) {
  .credentials-toggle-ready .auth-v062 .auth-access-drawer { transition: none !important; }
}

/* v0.8.7 · Motor Comercial exclusivo de dirección */
.module-cards.module-cards-owner {
  width: min(1480px,100%);
  grid-template-columns: minmax(0,1fr) 34px minmax(0,1fr) 34px minmax(0,1fr);
}
.module-cards.module-cards-owner .module-card { min-height: 270px; padding: clamp(17px,1.6vw,25px); }
.module-cards.module-cards-owner .module-card h2 { font-size: clamp(28px,2.5vw,41px); }
.module-cards.module-cards-owner .module-card p { max-width: 330px; }
.module-card-commercial { background: linear-gradient(145deg,rgba(16,35,51,.92),rgba(7,24,24,.93)); }
.module-card-orbit-commercial { border-color: rgba(93,161,215,.32); }
.module-card-orbit-commercial i:nth-child(1) { background:#74b5e3; box-shadow:0 0 12px #74b5e3; }
.module-card-orbit-commercial b { color:#b9daf0; }
.module-owner-seal { position:absolute; z-index:2; top:19px; left:22px; display:inline-flex; align-items:center; gap:6px; padding:5px 8px; border:1px solid rgba(113,181,226,.23); border-radius:99px; background:rgba(91,154,200,.09); color:#a8d2ec; font-size:7px; font-weight:850; letter-spacing:.11em; text-transform:uppercase; }
.module-owner-seal i { width:5px; height:5px; border-radius:50%; background:#6fb8e4; box-shadow:0 0 0 4px rgba(111,184,228,.09); }
.module-card-commercial .module-card-copy { padding-top:29px; }
.commercial-access-body { min-height:100dvh; background:#06110d; color:#eef6f2; }
.commercial-access-body .public-footer { position:fixed; z-index:4; left:0; right:0; bottom:0; color:#62776e; }
.commercial-access-shell { min-height:100dvh; display:grid; place-items:center; padding:30px 36px 55px; overflow:hidden; background:radial-gradient(circle at 18% 22%,rgba(40,133,95,.14),transparent 30%),radial-gradient(circle at 88% 82%,rgba(58,119,159,.14),transparent 30%),#06110d; }
.commercial-access-scene { position:relative; width:min(1240px,100%); min-height:min(720px,calc(100dvh - 85px)); display:grid; grid-template-columns:minmax(0,1fr) 410px; grid-template-rows:auto 1fr; gap:28px 70px; align-items:center; padding:clamp(28px,4vw,58px); border:1px solid rgba(255,255,255,.1); border-radius:30px; overflow:hidden; background:linear-gradient(125deg,rgba(9,35,25,.94),rgba(7,25,21,.97) 53%,rgba(12,29,39,.97)); box-shadow:0 35px 90px rgba(0,0,0,.35); }
.commercial-access-grid { position:absolute; inset:0; opacity:.12; pointer-events:none; background-image:linear-gradient(rgba(255,255,255,.12) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.12) 1px,transparent 1px); background-size:48px 48px; mask-image:linear-gradient(90deg,#000,transparent 72%); }
.commercial-access-brand { position:relative; z-index:1; grid-column:1 / -1; display:flex; align-items:center; gap:18px; }
.commercial-access-brand img { width:185px; height:auto; }
.commercial-access-brand span { padding-left:18px; border-left:1px solid rgba(255,255,255,.15); color:#81968d; font-size:8px; font-weight:850; letter-spacing:.16em; text-transform:uppercase; }
.commercial-access-copy { position:relative; z-index:1; }
.commercial-private-kicker { display:inline-flex; align-items:center; gap:8px; color:#d9b36b; font-size:8px; font-weight:850; letter-spacing:.15em; text-transform:uppercase; }
.commercial-private-kicker i { width:7px; height:7px; border-radius:50%; background:#49ca91; box-shadow:0 0 0 6px rgba(73,202,145,.1); }
.commercial-access-copy h1 { max-width:710px; margin:15px 0 14px; font-family:Georgia,serif; font-size:clamp(43px,5.2vw,76px); font-weight:400; line-height:.95; letter-spacing:-.045em; }
.commercial-access-copy h1 em { color:#dcb96f; font-style:normal; }
.commercial-access-copy > p { max-width:670px; margin:0; color:#9cafA6; font-size:12px; line-height:1.7; }
.commercial-access-proof { display:grid; grid-template-columns:repeat(3,1fr); gap:9px; margin-top:30px; }
.commercial-access-proof article { display:flex; align-items:center; gap:10px; min-width:0; padding:12px; border:1px solid rgba(255,255,255,.08); border-radius:12px; background:rgba(255,255,255,.035); }
.commercial-access-proof article > span { display:grid; place-items:center; width:28px; height:28px; flex:0 0 28px; border-radius:9px; background:rgba(219,181,106,.11); color:#dfbd7b; font-family:Georgia,serif; font-size:11px; }
.commercial-access-proof strong,.commercial-access-proof small { display:block; overflow:hidden; text-overflow:ellipsis; }
.commercial-access-proof strong { font-size:9px; }
.commercial-access-proof small { margin-top:3px; color:#6f857c; font-size:7px; white-space:nowrap; }
.commercial-access-panel { position:relative; z-index:1; align-self:center; padding:32px; border:1px solid rgba(255,255,255,.12); border-radius:22px; background:rgba(3,15,11,.72); box-shadow:0 22px 50px rgba(0,0,0,.25); backdrop-filter:blur(18px); }
.commercial-access-lock { display:grid; place-items:center; width:52px; height:52px; margin-bottom:19px; border:1px solid rgba(105,177,222,.28); border-radius:16px; background:rgba(91,152,193,.1); color:#97c8e6; }
.commercial-access-panel > small { color:#d7b16a; font-size:8px; font-weight:850; letter-spacing:.15em; text-transform:uppercase; }
.commercial-access-panel h2 { margin:6px 0 8px; font-family:Georgia,serif; font-size:36px; font-weight:400; }
.commercial-access-panel > p { margin:0 0 20px; color:#80958c; font-size:10px; line-height:1.55; }
.commercial-access-form { display:grid; gap:10px; }
.commercial-access-form label { color:#a7b7b0; font-size:8px; font-weight:750; }
.commercial-access-form .password-shell { position:relative; display:block; }
.commercial-access-form .password-shell input { width:100%; min-height:47px; padding:12px 50px 12px 13px; border:1px solid rgba(255,255,255,.14); border-radius:11px; outline:0; background:rgba(255,255,255,.055); color:#f3f8f5; font-size:13px; }
.commercial-access-form .password-shell input:focus { border-color:#77b9df; box-shadow:0 0 0 3px rgba(119,185,223,.11); }
.commercial-access-form .password-shell button { position:absolute; right:8px; top:50%; transform:translateY(-50%); border:0; background:transparent; color:#dcb76f; font-size:9px; font-weight:800; cursor:pointer; }
.commercial-access-submit { display:flex; align-items:center; justify-content:space-between; min-height:48px; margin-top:4px; padding:12px 15px; border:0; border-radius:11px; background:#dfb765; color:#122019; font-size:10px; font-weight:850; letter-spacing:.06em; text-transform:uppercase; cursor:pointer; }
.commercial-access-submit b { font-size:16px; }
.commercial-access-back { display:inline-block; margin-top:18px; color:#7f958b; font-size:9px; text-decoration:none; }
.commercial-config-pending { padding:15px; border:1px solid rgba(214,158,72,.22); border-radius:12px; background:rgba(214,158,72,.08); }
.commercial-config-pending strong { color:#e0bb76; font-size:10px; }
.commercial-config-pending p { margin:6px 0 0; color:#9caea6; font-size:9px; line-height:1.55; }

.commercial-body { min-height:100dvh; background:#edf2ef; color:#1d3028; }
.commercial-shell { min-height:100dvh; background:radial-gradient(circle at 100% 0,rgba(57,124,158,.08),transparent 23%),#edf2ef; }
.commercial-topbar { position:sticky; z-index:20; top:0; display:flex; align-items:center; justify-content:space-between; min-height:76px; padding:12px clamp(20px,4vw,62px); border-bottom:1px solid rgba(255,255,255,.08); background:rgba(6,25,18,.96); color:#eef5f1; backdrop-filter:blur(15px); }
.commercial-brand { display:flex; align-items:center; gap:17px; color:inherit; text-decoration:none; }
.commercial-brand img { width:170px; height:auto; }
.commercial-brand > span { padding-left:17px; border-left:1px solid rgba(255,255,255,.13); }
.commercial-brand small,.commercial-brand strong { display:block; }
.commercial-brand small { color:#728c81; font-size:7px; font-weight:850; letter-spacing:.13em; text-transform:uppercase; }
.commercial-brand strong { margin-top:2px; font-size:10px; }
.commercial-owner-bar { display:flex; align-items:center; gap:10px; }
.commercial-session-state { display:flex; align-items:center; gap:8px; margin-right:6px; padding:7px 10px; border:1px solid rgba(255,255,255,.08); border-radius:10px; background:rgba(255,255,255,.035); }
.commercial-session-state > i { width:7px; height:7px; border-radius:50%; background:#4ccc91; box-shadow:0 0 0 5px rgba(76,204,145,.1); }
.commercial-session-state small,.commercial-session-state strong { display:block; }
.commercial-session-state small { color:#6f877d; font-size:6px; text-transform:uppercase; }
.commercial-session-state strong { margin-top:2px; font-size:8px; }
.commercial-owner-avatar { display:grid; place-items:center; width:34px; height:34px; border-radius:50%; background:#deb665; color:#14231c; font-size:11px; font-weight:850; }
.commercial-owner-copy strong,.commercial-owner-copy small { display:block; }
.commercial-owner-copy strong { font-size:9px; }
.commercial-owner-copy small { color:#6f877d; font-size:7px; }
.commercial-lock-button { min-height:34px; padding:7px 10px; border:1px solid rgba(255,255,255,.11); border-radius:9px; background:transparent; color:#dcb873; font-size:8px; font-weight:800; cursor:pointer; }
.commercial-content { width:min(1560px,100%); margin:0 auto; padding:clamp(20px,3vw,43px); }
.commercial-hero { position:relative; display:grid; grid-template-columns:minmax(0,1fr) 240px; align-items:end; gap:35px; min-height:290px; padding:clamp(30px,4vw,56px); border-radius:25px; overflow:hidden; color:#eff7f3; background:radial-gradient(circle at 76% 16%,rgba(91,158,198,.18),transparent 25%),linear-gradient(122deg,#09261b,#0a2c20 55%,#172d37); box-shadow:0 22px 55px rgba(17,43,32,.13); }
.commercial-hero::before { content:""; position:absolute; inset:0; opacity:.13; background-image:linear-gradient(rgba(255,255,255,.13) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.13) 1px,transparent 1px); background-size:44px 44px; mask-image:linear-gradient(90deg,transparent,#000 60%); }
.commercial-hero > * { position:relative; z-index:1; }
.commercial-hero h1 { margin:13px 0 11px; font-family:Georgia,serif; font-size:clamp(43px,5vw,72px); font-weight:400; line-height:.95; letter-spacing:-.045em; }
.commercial-hero h1 em { color:#dfbc75; font-style:normal; }
.commercial-hero > div:first-child > p { max-width:760px; margin:0; color:#9dafA7; font-size:12px; line-height:1.65; }
.commercial-hero-policy { padding:20px; border:1px solid rgba(255,255,255,.12); border-radius:18px; background:rgba(0,0,0,.13); }
.commercial-hero-policy > span { color:#87a096; font-size:7px; font-weight:850; letter-spacing:.12em; text-transform:uppercase; }
.commercial-hero-policy > strong { display:block; margin:8px 0 2px; font-family:Georgia,serif; color:#e4c281; font-size:50px; font-weight:400; line-height:1; }
.commercial-hero-policy > strong small { font-size:14px; }
.commercial-hero-policy p { margin:8px 0 0; color:#849b91; font-size:8px; line-height:1.5; }
.commercial-kpis { display:grid; grid-template-columns:repeat(5,1fr); gap:10px; margin-top:14px; }
.commercial-kpis article { padding:16px 17px; border:1px solid #d8e1dc; border-radius:14px; background:rgba(255,255,255,.83); box-shadow:0 8px 22px rgba(24,50,38,.04); }
.commercial-kpis span,.commercial-kpis strong,.commercial-kpis small { display:block; }
.commercial-kpis span { color:#778b82; font-size:7px; font-weight:800; letter-spacing:.09em; text-transform:uppercase; }
.commercial-kpis strong { margin:5px 0 2px; font-family:Georgia,serif; font-size:28px; font-weight:500; }
.commercial-kpis small { color:#92a198; font-size:7px; }
.commercial-kpi-qualified { border-color:rgba(50,164,115,.3) !important; background:#f1faf6 !important; }
.commercial-kpi-qualified strong { color:#207b55; }
.commercial-kpi-alert { border-color:rgba(194,129,38,.3) !important; background:#fff8ed !important; }
.commercial-kpi-alert strong { color:#a56e1f; }
.commercial-pipeline { display:grid; grid-template-columns:minmax(0,1fr) 18px minmax(0,1fr) 18px minmax(0,1fr) 18px minmax(0,1fr) 18px minmax(0,1fr) 18px minmax(0,1fr); align-items:center; gap:6px; margin-top:14px; padding:14px; border:1px solid #d9e1dd; border-radius:16px; background:#fff; }
.commercial-pipeline > article { display:flex; align-items:center; gap:12px; min-width:0; padding:10px 12px; border-radius:12px; background:#f4f7f5; }
.commercial-pipeline > article > span { display:grid; place-items:center; width:32px; height:32px; flex:0 0 32px; border-radius:10px; background:#183d2e; color:#e5c17a; font-family:Georgia,serif; font-size:11px; }
.commercial-pipeline small,.commercial-pipeline strong,.commercial-pipeline p { display:block; }
.commercial-pipeline small { color:#7c8d85; font-size:7px; font-weight:850; letter-spacing:.08em; text-transform:uppercase; }
.commercial-pipeline strong { margin-top:2px; font-family:Georgia,serif; font-size:20px; font-weight:500; }
.commercial-pipeline p { margin:2px 0 0; color:#91a097; font-size:7px; }
.commercial-pipeline > i { color:#b0bdb7; font-size:13px; font-style:normal; text-align:center; }
.commercial-pipeline-won { background:#edf8f3 !important; }
.commercial-pipeline-won > span { background:#277c58 !important; color:white !important; }
.commercial-workspace { display:grid; grid-template-columns:minmax(0,1fr) minmax(330px,410px); gap:16px; align-items:start; margin-top:16px; }
.commercial-prospects-panel,.commercial-new-prospect,.commercial-activity-panel { border:1px solid #d8e1dc; border-radius:18px; background:#fff; box-shadow:0 10px 28px rgba(24,50,38,.045); }
.commercial-prospects-panel { padding:20px; }
.commercial-section-head { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; }
.commercial-section-head span,.commercial-new-prospect header span,.commercial-activity-panel header span { color:#9b7131; font-size:7px; font-weight:850; letter-spacing:.12em; text-transform:uppercase; }
.commercial-section-head h2,.commercial-new-prospect h2,.commercial-activity-panel h2 { margin:4px 0 4px; font-family:Georgia,serif; font-size:25px; font-weight:500; letter-spacing:-.02em; }
.commercial-section-head p,.commercial-new-prospect header p { margin:0; color:#87978f; font-size:8px; }
.commercial-section-head > a { padding:9px 11px; border-radius:9px; background:#163f2f; color:#fff; font-size:8px; font-weight:800; text-decoration:none; }
.commercial-filters { display:grid; grid-template-columns:1.4fr repeat(3,1fr) auto auto; gap:8px; align-items:end; margin:17px 0; padding:12px; border-radius:13px; background:#f2f6f4; }
.commercial-filters label,.commercial-form-grid label,.commercial-new-prospect > form > label,.commercial-score-form label,.commercial-prospect-actions form label { color:#667a70; font-size:7px; font-weight:750; }
.commercial-filters input,.commercial-filters select,.commercial-form-grid input,.commercial-form-grid select,.commercial-new-prospect textarea,.commercial-new-prospect > form > label > input,.commercial-score-form input,.commercial-prospect-actions input,.commercial-prospect-actions select,.commercial-prospect-actions textarea { width:100%; margin-top:4px; padding:9px 10px; border:1px solid #d6dfda; border-radius:8px; outline:0; background:#fff; color:#20332b; font:inherit; font-size:8px; }
.commercial-filters input:focus,.commercial-filters select:focus,.commercial-form-grid input:focus,.commercial-form-grid select:focus,.commercial-new-prospect textarea:focus,.commercial-score-form input:focus,.commercial-prospect-actions input:focus,.commercial-prospect-actions select:focus,.commercial-prospect-actions textarea:focus { border-color:#55a982; box-shadow:0 0 0 3px rgba(85,169,130,.09); }
.commercial-filters button { min-height:34px; padding:8px 11px; border:0; border-radius:8px; background:#1b5c43; color:white; font-size:8px; font-weight:800; cursor:pointer; }
.commercial-filters > a { align-self:center; color:#8a6c3c; font-size:7px; font-weight:800; }
.commercial-empty-state { padding:50px 25px; border:1px dashed #cfdbd5; border-radius:14px; text-align:center; }
.commercial-empty-state > span { display:grid; place-items:center; width:45px; height:45px; margin:0 auto 11px; border-radius:50%; background:#edf5f1; color:#458165; font-family:Georgia,serif; font-size:18px; }
.commercial-empty-state h3 { margin:0; font-family:Georgia,serif; font-size:18px; font-weight:500; }
.commercial-empty-state p { margin:5px 0 0; color:#8d9c94; font-size:8px; }
.commercial-prospect-list { display:grid; gap:10px; }
.commercial-prospect { scroll-margin-top:92px; padding:16px; border:1px solid #dce4df; border-radius:15px; background:#fff; transition:border-color .2s ease,box-shadow .2s ease; }
.commercial-prospect:hover { border-color:#b9cec3; box-shadow:0 10px 24px rgba(29,69,49,.06); }
.commercial-prospect.is-protected { border-color:#e1cbb0; background:#fffdf9; }
.commercial-prospect > header { display:grid; grid-template-columns:40px minmax(0,1fr) 72px; gap:11px; align-items:center; }
.commercial-company-mark { display:grid; place-items:center; width:40px; height:40px; border-radius:12px; background:#163f30; color:#e6c37f; font-family:Georgia,serif; font-size:13px; }
.commercial-company-copy { min-width:0; }
.commercial-company-copy > span { color:#8b6a34; font-size:6px; font-weight:850; letter-spacing:.08em; text-transform:uppercase; }
.commercial-company-copy h3 { margin:3px 0 2px; overflow:hidden; font-family:Georgia,serif; font-size:19px; font-weight:500; line-height:1; text-overflow:ellipsis; white-space:nowrap; }
.commercial-company-copy p { margin:0; color:#8a9991; font-size:7px; }
.commercial-score { text-align:right; }
.commercial-score strong { font-family:Georgia,serif; font-size:24px; font-weight:500; }
.commercial-score small { color:#8b9a92; font-size:7px; }
.commercial-score meter { display:block; width:100%; height:6px; margin-top:3px; accent-color:#c18c39; }
.commercial-score.is-qualified strong { color:#208159; }
.commercial-score.is-qualified meter { accent-color:#2fae78; }
.commercial-prospect-badges { display:flex; flex-wrap:wrap; gap:5px; margin:11px 0; }
.commercial-prospect-badges span { padding:4px 7px; border-radius:99px; background:#eef3f0; color:#5d7167; font-size:6px; font-weight:800; }
.commercial-prospect-badges .policy-protected,.commercial-prospect-badges .stage-blocked { background:#f4e6d6; color:#8c5b25; }
.commercial-prospect-badges .policy-allowed,.commercial-prospect-badges .stage-qualified,.commercial-prospect-badges .stage-won { background:#e3f5ec; color:#247957; }
.commercial-prospect-badges .stage-offer,.commercial-prospect-badges .stage-negotiation { background:#e6f0f7; color:#386f93; }
.commercial-prospect-badges .deep-dive-running { background:#e8f3f8; color:#2f6e91; }
.commercial-prospect-badges .deep-dive-ready { background:#fff1d8; color:#8d641e; }
.commercial-prospect-badges .deep-dive-applied { background:#e2f6ec; color:#217652; }
.commercial-prospect-badges .deep-dive-quarantine,.commercial-prospect-badges .deep-dive-failed { background:#f8e8e2; color:#965339; }
.commercial-prospect-badges .direction-selected { background:#fff0cc; color:#805914; }
.commercial-prospect-grid { display:grid; grid-template-columns:1.35fr .65fr 1fr 1.2fr; gap:8px; padding:11px; border-radius:11px; background:#f5f8f6; }
.commercial-prospect-grid > div { min-width:0; }
.commercial-prospect-grid small,.commercial-prospect-grid strong,.commercial-prospect-grid span { display:block; }
.commercial-prospect-grid small { color:#8a9991; font-size:6px; text-transform:uppercase; }
.commercial-prospect-grid strong { margin-top:3px; overflow:hidden; font-size:8px; line-height:1.35; text-overflow:ellipsis; }
.commercial-prospect-grid span { margin-top:2px; overflow:hidden; color:#819088; font-size:7px; text-overflow:ellipsis; white-space:nowrap; }
.commercial-evidence { display:grid; grid-template-columns:65px 1fr; gap:8px; margin-top:8px; padding:8px 10px; border-left:3px solid #d8ae60; border-radius:0 9px 9px 0; background:#fbf8f1; }
.commercial-evidence span { color:#9a7439; font-size:6px; font-weight:850; text-transform:uppercase; }
.commercial-evidence p { margin:0; color:#687a71; font-size:7px; line-height:1.45; }
.commercial-direction-record { display:grid; grid-template-columns:1.2fr 1fr auto; align-items:center; gap:10px; margin-top:8px; padding:10px 11px; border:1px solid #e0bf78; border-radius:10px; background:#fffaf0; }
.commercial-direction-record span,.commercial-direction-record strong { display:block; }
.commercial-direction-record span { color:#96743c; font-size:6px; font-weight:850; letter-spacing:.06em; text-transform:uppercase; }
.commercial-direction-record strong { margin-top:3px; color:#4f493b; font-size:7px; line-height:1.4; }
.commercial-direction-record a { color:#216c51; font-size:7px; font-weight:800; text-decoration:none; }
.commercial-deep-dive-result { margin-top:9px; border:1px solid #d3e0da; border-radius:12px; background:#f8fbf9; overflow:hidden; }
.commercial-deep-dive-result > summary { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:9px 11px; color:#315d4a; font-size:7px; font-weight:850; cursor:pointer; list-style:none; }
.commercial-deep-dive-result > summary::-webkit-details-marker { display:none; }
.commercial-deep-dive-result > summary small { color:#819189; font-size:6px; font-weight:650; }
.commercial-deep-dive-result.review-pending { border-color:#e0be7c; background:#fffdf8; }
.commercial-deep-dive-result.review-quarantine,.commercial-deep-dive-result.status-failed { border-color:#e4c5b8; background:#fffaf8; }
.commercial-deep-dive-body { display:grid; gap:9px; padding:11px; border-top:1px solid #e0e8e4; }
.commercial-deep-dive-progress { display:flex; align-items:center; gap:10px; padding:12px; border-radius:9px; background:#eef6f2; }
.commercial-deep-dive-progress i { width:13px; height:13px; border:2px solid #b9d8ca; border-top-color:#27805d; border-radius:50%; animation:commercialResearchSpin .8s linear infinite; }
.commercial-deep-dive-progress strong,.commercial-deep-dive-progress small { display:block; }
.commercial-deep-dive-progress strong { font-size:8px; }
.commercial-deep-dive-progress small { margin-top:2px; color:#7b8f85; font-size:7px; }
.commercial-deep-dive-summary,.commercial-deep-dive-warning,.commercial-deep-dive-risks { margin:0; padding:9px 10px; border-radius:9px; color:#5d7368; background:#eef4f1; font-size:7px; line-height:1.55; }
.commercial-deep-dive-summary strong,.commercial-deep-dive-warning strong,.commercial-deep-dive-risks strong { display:block; margin-bottom:3px; color:#2d5443; font-size:6px; letter-spacing:.07em; text-transform:uppercase; }
.commercial-deep-dive-warning,.commercial-deep-dive-risks { color:#85583f; background:#fbefe9; }
.commercial-deep-dive-warning strong,.commercial-deep-dive-risks strong { color:#945139; }
.commercial-deep-dive-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:7px; }
.commercial-deep-dive-grid article { min-width:0; padding:9px; border:1px solid #dbe5e0; border-radius:9px; background:#fff; }
.commercial-deep-dive-grid span,.commercial-deep-dive-grid strong { display:block; }
.commercial-deep-dive-grid span { color:#88978f; font-size:6px; text-transform:uppercase; }
.commercial-deep-dive-grid strong { margin:4px 0 3px; color:#294b3d; font-size:8px; }
.commercial-deep-dive-grid p { margin:0; color:#71837a; font-size:7px; line-height:1.45; }
.commercial-deep-dive-evidence-list { display:grid; gap:6px; }
.commercial-deep-dive-evidence-list > strong { color:#4c655a; font-size:7px; }
.commercial-deep-dive-evidence-list article { display:grid; grid-template-columns:90px minmax(0,1fr) auto; align-items:start; gap:8px; padding:7px 8px; border:1px solid #e1e8e4; border-radius:8px; background:#fff; }
.commercial-deep-dive-evidence-list span { color:#8c713f; font-size:6px; font-weight:850; text-transform:uppercase; }
.commercial-deep-dive-evidence-list p { margin:0; color:#5d7167; font-size:7px; line-height:1.45; }
.commercial-deep-dive-evidence-list div { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:4px; }
.commercial-deep-dive-evidence-list a { color:#287255; font-size:6px; font-weight:800; text-decoration:none; }
.commercial-deep-dive-usage { display:grid; grid-template-columns:repeat(4,1fr); border:1px solid #dfe7e3; border-radius:9px; background:#fff; overflow:hidden; }
.commercial-deep-dive-usage span { padding:8px; border-right:1px solid #e5ebe8; }
.commercial-deep-dive-usage span:last-child { border-right:0; }
.commercial-deep-dive-usage small,.commercial-deep-dive-usage strong { display:block; }
.commercial-deep-dive-usage small { color:#89978f; font-size:6px; text-transform:uppercase; }
.commercial-deep-dive-usage strong { margin-top:3px; color:#345246; font-size:8px; }
.commercial-deep-dive-cost-note { color:#87958e; font-size:6px; }
.commercial-deep-dive-apply { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:9px 10px; border:1px solid #d8b66f; border-radius:9px; background:#fff9ed; }
.commercial-deep-dive-apply p { margin:0; color:#765f34; font-size:7px; line-height:1.45; }
.commercial-deep-dive-apply button { flex:0 0 auto; min-height:32px; padding:7px 10px; border:0; border-radius:8px; background:#1b684b; color:#fff; font-size:7px; font-weight:850; cursor:pointer; }
.commercial-prospect-actions { display:flex; flex-wrap:wrap; align-items:center; gap:7px; margin-top:11px; padding-top:10px; border-top:1px solid #e8edea; }
.commercial-prospect-actions > a,.commercial-prospect-actions summary,.commercial-archive-form button { padding:6px 8px; border:1px solid #d8e1dc; border-radius:8px; background:#fff; color:#48675a; font-size:7px; font-weight:800; text-decoration:none; cursor:pointer; list-style:none; }
.commercial-prospect-actions summary::-webkit-details-marker { display:none; }
.commercial-prospect-actions details[open] { flex:1 0 100%; order:10; padding:11px; border-radius:11px; background:#f3f7f5; }
.commercial-prospect-actions details[open] summary { display:inline-block; margin-bottom:9px; background:#173f30; color:white; }
.commercial-prospect-actions details form { display:grid; grid-template-columns:repeat(3,1fr); gap:7px; align-items:end; }
.commercial-prospect-actions form .wide { grid-column:span 2; }
.commercial-prospect-actions textarea { min-height:65px; resize:vertical; }
.commercial-prospect-actions details form button { min-height:32px; padding:7px 9px; border:0; border-radius:8px; background:#1d684c; color:#fff; font-size:7px; font-weight:800; cursor:pointer; }
.commercial-prospect-actions details form button:disabled { cursor:not-allowed; opacity:.58; }
.commercial-prospect-actions .commercial-deep-dive-control[open] { border:1px solid #dec07e; background:#fffaf0; }
.commercial-prospect-actions .commercial-direction-control[open] { border:1px solid #d6aa56; background:#fff9ec; }
.commercial-direction-control form > p { margin:0; padding:8px 9px; border-radius:8px; background:#f7ebd3; color:#72592d; font-size:7px; line-height:1.5; }
.commercial-deep-dive-control form > p { margin:0; padding:8px 9px; border-radius:8px; background:#f7eedb; color:#725c35; font-size:7px; font-weight:500; line-height:1.5; }
.commercial-deep-dive-control form > p strong { color:#8d5f17; }
.commercial-prospect-actions .commercial-spend-confirm { display:flex; grid-column:span 2; align-items:flex-start; gap:8px; padding:8px 9px; border:1px solid #e2c486; border-radius:8px; background:#fff; color:#604d2d; line-height:1.45; }
.commercial-prospect-actions .commercial-spend-confirm input { flex:0 0 auto; width:14px; height:14px; margin:0; accent-color:#1f7455; }
.commercial-prospect-actions .commercial-spend-confirm span { font-size:7px; }
.commercial-archive-form { margin-left:auto; }
.commercial-archive-form button { color:#9a5a43; }
.commercial-side-column { display:grid; gap:14px; }
.commercial-new-prospect { scroll-margin-top:95px; padding:20px; }
.commercial-new-prospect > form { display:grid; gap:10px; margin-top:15px; }
.commercial-form-grid { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.commercial-form-grid .wide { grid-column:1 / -1; }
.commercial-new-prospect textarea { min-height:75px; resize:vertical; }
.commercial-score-form { display:grid; gap:7px; margin:2px 0; padding:12px; border:1px solid #d8e1dc; border-radius:12px; background:#f5f8f6; }
.commercial-score-form legend { padding:0 5px; color:#294d3c; font-size:8px; font-weight:850; }
.commercial-score-form legend small { margin-left:4px; color:#9b763b; }
.commercial-score-form label { display:grid; grid-template-columns:1fr auto 54px; align-items:center; gap:7px; }
.commercial-score-form label span { color:#8a9991; font-size:6px; }
.commercial-score-form input { margin:0; text-align:center; }
.commercial-create-button { display:flex; align-items:center; justify-content:space-between; min-height:44px; padding:10px 13px; border:0; border-radius:10px; background:#173f30; color:#fff; font-size:8px; font-weight:850; letter-spacing:.06em; text-transform:uppercase; cursor:pointer; }
.commercial-create-button b { color:#e1bd78; font-size:15px; }
.commercial-activity-panel { padding:20px; }
.commercial-activity-panel header { margin-bottom:13px; }
.commercial-activity-empty { margin:0; color:#8b9a92; font-size:8px; line-height:1.5; }
.commercial-activity-list { display:grid; gap:0; }
.commercial-activity-list article { position:relative; display:grid; grid-template-columns:15px 1fr; gap:9px; padding:0 0 15px; }
.commercial-activity-list article:not(:last-child)::before { content:""; position:absolute; left:4px; top:10px; bottom:0; width:1px; background:#dbe4df; }
.commercial-activity-list i { position:relative; z-index:1; width:9px; height:9px; margin-top:3px; border:2px solid #fff; border-radius:50%; background:#3aa778; box-shadow:0 0 0 2px #cfe8dc; }
.commercial-activity-list span,.commercial-activity-list strong,.commercial-activity-list small { display:block; }
.commercial-activity-list span { color:#936d31; font-size:6px; font-weight:800; text-transform:uppercase; }
.commercial-activity-list strong { margin:3px 0; color:#354c41; font-size:8px; line-height:1.45; }
.commercial-activity-list small { color:#8f9d96; font-size:6px; }
.commercial-footer { display:flex; justify-content:space-between; margin-top:18px; padding:12px 4px 0; border-top:1px solid #d7e0db; color:#829189; font-size:7px; }
.commercial-footer strong { color:#547ca1; letter-spacing:.1em; }

@media (max-width:1180px) {
  .module-cards.module-cards-owner { grid-template-columns:1fr; gap:12px; }
  .module-cards.module-cards-owner .module-bridge { display:none; }
  .commercial-workspace { grid-template-columns:1fr; }
  .commercial-side-column { grid-template-columns:1fr 1fr; }
  .commercial-filters { grid-template-columns:1fr 1fr 1fr; }
  .commercial-filter-search { grid-column:span 2; }
}

@media (max-width:900px) {
  .commercial-access-shell { padding:15px 15px 50px; }
  .commercial-access-scene { grid-template-columns:1fr; gap:28px; padding:28px; overflow-y:auto; }
  .commercial-access-copy h1 { font-size:48px; }
  .commercial-access-proof { grid-template-columns:1fr; }
  .commercial-topbar { position:relative; align-items:flex-start; }
  .commercial-owner-copy,.commercial-session-state { display:none; }
  .commercial-content { padding:16px; }
  .commercial-hero { grid-template-columns:1fr; }
  .commercial-hero-policy { width:min(300px,100%); }
  .commercial-kpis { grid-template-columns:repeat(2,1fr); }
  .commercial-pipeline { grid-template-columns:1fr 1fr; }
  .commercial-pipeline > i { display:none; }
  .commercial-side-column { grid-template-columns:1fr; }
  .commercial-prospect-grid { grid-template-columns:1fr 1fr; }
  .commercial-deep-dive-grid { grid-template-columns:1fr 1fr; }
  .commercial-deep-dive-evidence-list article { grid-template-columns:75px minmax(0,1fr); }
  .commercial-deep-dive-evidence-list article div { grid-column:2; justify-content:flex-start; }
}

@media (max-width:600px) {
  .commercial-access-brand span { display:none; }
  .commercial-access-scene { border-radius:20px; }
  .commercial-access-copy h1 { font-size:38px; }
  .commercial-access-panel { padding:23px 19px; }
  .commercial-topbar { padding:11px 13px; }
  .commercial-brand img { width:135px; }
  .commercial-brand > span,.commercial-owner-avatar { display:none; }
  .commercial-lock-button { font-size:7px; }
  .commercial-hero { min-height:390px; padding:25px 20px; }
  .commercial-hero h1 { font-size:42px; }
  .commercial-kpis { grid-template-columns:1fr 1fr; }
  .commercial-kpis article:last-child { grid-column:1 / -1; }
  .commercial-pipeline { grid-template-columns:1fr; }
  .commercial-section-head { flex-direction:column; }
  .commercial-filters { grid-template-columns:1fr; }
  .commercial-filter-search { grid-column:auto; }
  .commercial-prospects-panel { padding:13px; }
  .commercial-prospect > header { grid-template-columns:38px minmax(0,1fr) 58px; }
  .commercial-prospect-grid { grid-template-columns:1fr; }
  .commercial-direction-record { grid-template-columns:1fr; }
  .commercial-deep-dive-grid,.commercial-deep-dive-usage { grid-template-columns:1fr; }
  .commercial-deep-dive-usage span { border-right:0; border-bottom:1px solid #e5ebe8; }
  .commercial-deep-dive-usage span:last-child { border-bottom:0; }
  .commercial-deep-dive-evidence-list article { grid-template-columns:1fr; }
  .commercial-deep-dive-evidence-list article div { grid-column:auto; }
  .commercial-deep-dive-apply { align-items:stretch; flex-direction:column; }
  .commercial-prospect-actions details form { grid-template-columns:1fr; }
  .commercial-prospect-actions form .wide { grid-column:auto; }
  .commercial-prospect-actions .commercial-spend-confirm { grid-column:auto; }
  .commercial-form-grid { grid-template-columns:1fr; }
  .commercial-form-grid .wide { grid-column:auto; }
  .commercial-footer { flex-direction:column; gap:6px; }
}

/* v0.7.0 · Centro de módulos y núcleo compartido SIGFE */
.module-switcher {
  display: grid;
  grid-template-columns: 34px minmax(0,1fr) 24px;
  align-items: center;
  gap: 10px;
  margin: 14px 2px 2px;
  padding: 10px;
  border: 1px solid rgba(224,181,94,.16);
  border-radius: 13px;
  background: linear-gradient(135deg,rgba(224,181,94,.12),rgba(52,132,99,.08));
  color: #eff7f3;
  text-decoration: none;
  transition: border-color .2s ease,background .2s ease;
}
.module-switcher:hover { border-color: rgba(224,181,94,.36); background: linear-gradient(135deg,rgba(224,181,94,.18),rgba(52,132,99,.12)); }
.module-switcher-mark { display:grid; place-items:center; width:34px; height:34px; border-radius:10px; background:#dca94f; color:#102119; font-family:Georgia,serif; font-size:18px; font-weight:800; }
.module-switcher span small,.module-switcher span strong { display:block; }
.module-switcher span small { color:#80968c; font-size:8px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; }
.module-switcher span strong { margin-top:2px; font-size:12px; }
.module-switcher b { color:#d8b56f; font-size:13px; text-align:center; }
.sidebar-sigfe { background:radial-gradient(circle at 12% 3%,rgba(179,126,49,.18),transparent 28%),linear-gradient(180deg,#14251f,#0b1915); }
.nav-shared-tag { margin-left:auto; padding:3px 6px; border-radius:99px; background:rgba(70,199,143,.11); color:#7bd1ab; font-size:7px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; }
.nav-future { display:grid; grid-template-columns:26px minmax(0,1fr); column-gap:9px; align-items:center; min-height:43px; padding:7px 10px; color:#72877e; }
.nav-future i { grid-row:1 / span 2; display:grid; place-items:center; width:25px; height:25px; border:1px solid rgba(255,255,255,.07); border-radius:8px; color:#887a5e; font-size:8px; font-style:normal; font-weight:800; }
.nav-future span { font-size:11px; font-weight:700; }
.nav-future small { font-size:8px; color:#586b64; }

.module-hub-body { min-height:100dvh; overflow-x:hidden; background:#07130f; }
.module-hub {
  position:relative;
  isolation:isolate;
  min-height:100dvh;
  display:grid;
  grid-template-rows:auto auto auto minmax(0,1fr) auto;
  gap:clamp(12px,1.6vh,22px);
  padding:clamp(18px,2.3vw,34px) clamp(20px,4vw,66px) 18px;
  overflow:hidden;
  color:#f3f7f4;
  background:linear-gradient(120deg,rgba(4,19,13,.96),rgba(9,30,23,.89) 52%,rgba(18,27,20,.96)),url('/anasur-intelligence-hero-v062.webp') center 43%/cover no-repeat;
}
.module-hub::before { content:""; position:absolute; z-index:-2; inset:0; background:radial-gradient(circle at 50% 48%,rgba(36,133,92,.12),transparent 35%),linear-gradient(rgba(255,255,255,.018) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.018) 1px,transparent 1px); background-size:auto,46px 46px,46px 46px; }
.module-motion-canvas { position:absolute; z-index:-1; inset:0; width:100%; height:100%; pointer-events:none; }
.module-ambient { position:absolute; z-index:-1; width:42vw; height:42vw; border-radius:50%; filter:blur(22px); opacity:.17; pointer-events:none; }
.module-ambient-a { left:-19vw; top:-22vw; background:#187655; animation:moduleAmbient 14s ease-in-out infinite alternate; }
.module-ambient-b { right:-24vw; bottom:-27vw; background:#c5903d; animation:moduleAmbient 17s ease-in-out infinite alternate-reverse; }
@keyframes moduleAmbient { to { opacity:.25; transform:scale(1.08); } }
.module-hub-header { display:flex; align-items:center; justify-content:space-between; gap:25px; }
.module-hub-brand { display:flex; align-items:center; gap:16px; color:white; text-decoration:none; }
.module-hub-brand img { width:clamp(148px,12vw,205px); height:auto; }
.module-hub-brand span { padding-left:16px; border-left:1px solid rgba(255,255,255,.16); color:#8ca098; font-size:9px; font-weight:800; letter-spacing:.15em; text-transform:uppercase; }
.module-hub-account { display:flex; align-items:center; gap:10px; }
.module-hub-account > span:not(.avatar):last-of-type strong,.module-hub-account > span:not(.avatar):last-of-type small { display:block; }
.module-hub-account > span:not(.avatar):last-of-type strong { font-size:11px; }
.module-hub-account > span:not(.avatar):last-of-type small { margin-top:2px; color:#82958d; font-size:9px; }
.module-hub-account .system-clock small { color:#71877e; }
.module-hub-account .system-clock strong { color:#eff7f3; }
.module-hub-account .private-data-chip { border-color:rgba(255,255,255,.1); background:rgba(255,255,255,.045); color:#bccbc5; }
.module-hub-account .avatar { background:#e1b35c; color:#122018; }
.module-logout { border:0; background:transparent; color:#d7b268; font-size:11px; font-weight:800; cursor:pointer; }
.module-hub-intro { width:min(820px,100%); margin:0 auto; text-align:center; }
.module-hub-kicker { display:inline-flex; align-items:center; gap:8px; color:#d9b36b; font-size:9px; font-weight:850; letter-spacing:.16em; text-transform:uppercase; }
.module-hub-kicker i { width:7px; height:7px; border-radius:50%; background:#46cb91; box-shadow:0 0 0 5px rgba(70,203,145,.11); }
.module-hub-intro h1 { margin:8px 0 6px; font-family:Georgia,"Times New Roman",serif; font-size:clamp(34px,4.2vw,62px); font-weight:400; line-height:.98; letter-spacing:-.04em; }
.module-hub-intro h1 em { color:#d8b46e; font-style:normal; }
.module-hub-intro p { width:min(690px,100%); margin:0 auto; color:#9cafa7; font-size:12px; line-height:1.55; }
.shared-core-rail { width:min(1180px,100%); margin:0 auto; display:grid; grid-template-columns:1.25fr repeat(4,1fr); border:1px solid rgba(255,255,255,.1); border-radius:16px; background:rgba(5,20,14,.64); backdrop-filter:blur(16px); overflow:hidden; }
.shared-core-rail > * { min-height:61px; padding:11px 16px; border-right:1px solid rgba(255,255,255,.075); }
.shared-core-rail > *:last-child { border-right:0; }
.shared-core-title { display:flex; align-items:center; gap:12px; }
.shared-core-title small,.shared-core-title strong,.shared-core-rail article small,.shared-core-rail article strong,.shared-core-rail article span { display:block; }
.shared-core-title small,.shared-core-rail article small { color:#71877e; font-size:7px; font-weight:850; letter-spacing:.11em; text-transform:uppercase; }
.shared-core-title strong { margin-top:3px; font-size:10px; }
.shared-core-pulse { width:12px; height:12px; border:2px solid #46cc92; border-radius:50%; box-shadow:0 0 0 7px rgba(70,204,146,.08); animation:corePulse 2.4s ease-in-out infinite; }
@keyframes corePulse { 50% { box-shadow:0 0 0 12px rgba(70,204,146,0); } }
.shared-core-rail article strong { margin:4px 0 1px; font-family:Georgia,serif; font-size:17px; font-weight:500; }
.shared-core-rail article span { color:#71877e; font-size:8px; }
.module-cards { position:relative; width:min(1180px,100%); min-height:0; margin:0 auto; display:grid; grid-template-columns:minmax(0,1fr) 54px minmax(0,1fr); align-items:stretch; }
.module-card { --card-glow-x:50%; --card-glow-y:50%; --card-tilt-x:0deg; --card-tilt-y:0deg; position:relative; display:grid; grid-template-rows:auto 1fr auto auto; min-height:250px; padding:clamp(20px,2vw,30px); border:1px solid rgba(255,255,255,.12); border-radius:22px; color:#f3f7f4; text-decoration:none; overflow:hidden; transform:perspective(1100px) rotateX(var(--card-tilt-x)) rotateY(var(--card-tilt-y)); transition:transform .24s ease,border-color .24s ease,box-shadow .24s ease; backdrop-filter:blur(17px); }
.module-card::before { content:""; position:absolute; inset:0; background:radial-gradient(circle at var(--card-glow-x) var(--card-glow-y),rgba(255,255,255,.13),transparent 34%); opacity:.65; pointer-events:none; }
.module-card:hover { border-color:rgba(224,183,101,.34); box-shadow:0 28px 58px rgba(0,0,0,.25); }
.module-card-intelligence { background:linear-gradient(145deg,rgba(15,55,41,.86),rgba(7,28,21,.87)); }
.module-card-sigfe { background:linear-gradient(145deg,rgba(46,40,25,.82),rgba(17,29,22,.9)); }
.module-card-number { position:absolute; top:18px; right:20px; color:rgba(255,255,255,.19); font-family:Georgia,serif; font-size:35px; }
.module-card-orbit { position:absolute; right:7%; top:12%; width:120px; height:120px; border:1px solid rgba(71,203,146,.22); border-radius:50%; animation:moduleOrbit 17s linear infinite; }
.module-card-orbit::before,.module-card-orbit::after,.module-card-orbit i { content:""; position:absolute; inset:15px; border:1px solid rgba(218,178,99,.18); border-radius:50%; }
.module-card-orbit::after { inset:32px; }
.module-card-orbit i:nth-child(1) { inset:-3px auto auto 48%; width:7px; height:7px; border:0; background:#4bcf96; box-shadow:0 0 12px #4bcf96; }
.module-card-orbit i:nth-child(2) { inset:auto 8px 22px auto; width:5px; height:5px; border:0; background:#ddb362; }
.module-card-orbit b { position:absolute; inset:0; display:grid; place-items:center; font-family:Georgia,serif; font-size:28px; }
.module-card-orbit-sigfe { border-color:rgba(220,174,84,.25); }
@keyframes moduleOrbit { to { transform:rotate(360deg); } }
.module-card-copy { position:relative; z-index:1; width:calc(100% - 95px); }
.module-card-kicker { color:#d7b167; font-size:8px; font-weight:850; letter-spacing:.15em; text-transform:uppercase; }
.module-card h2 { margin:5px 0 7px; font-family:Georgia,serif; font-size:clamp(31px,3vw,46px); font-weight:400; letter-spacing:-.035em; }
.module-card p { max-width:390px; margin:0; color:#9caea6; font-size:11px; line-height:1.5; }
.module-card-stats { position:relative; z-index:1; display:grid; grid-template-columns:repeat(3,1fr); margin-top:18px; border:1px solid rgba(255,255,255,.08); border-radius:13px; overflow:hidden; }
.module-card-stats span { padding:10px 11px; border-right:1px solid rgba(255,255,255,.08); }
.module-card-stats span:last-child { border-right:0; }
.module-card-stats small,.module-card-stats strong { display:block; }
.module-card-stats small { color:#697f76; font-size:7px; text-transform:uppercase; letter-spacing:.08em; }
.module-card-stats strong { margin-top:3px; font-size:9px; }
.module-card-action { position:relative; z-index:1; display:flex; align-items:center; justify-content:space-between; margin-top:13px; padding-top:13px; border-top:1px solid rgba(255,255,255,.08); color:#e6c786; font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:.08em; }
.module-card-action b { display:grid; place-items:center; width:28px; height:28px; border-radius:50%; background:rgba(255,255,255,.07); transition:transform .2s ease; }
.module-card:hover .module-card-action b { transform:translateX(3px); }
.module-bridge { position:relative; display:grid; place-items:center; }
.module-bridge span { position:absolute; width:100%; height:1px; background:linear-gradient(90deg,transparent,#d7ad5c,transparent); }
.module-bridge i,.module-bridge b,.module-bridge em { position:absolute; width:8px; height:8px; border-radius:50%; background:#48ca91; box-shadow:0 0 15px rgba(72,202,145,.6); animation:bridgeFlow 2.8s ease-in-out infinite; }
.module-bridge b { animation-delay:.9s; background:#d8ad5d; }
.module-bridge em { animation-delay:1.8s; }
@keyframes bridgeFlow { from { transform:translateX(-23px) scale(.6); opacity:0; } 45% { opacity:1; } to { transform:translateX(23px) scale(1); opacity:0; } }
.module-hub-footer { display:flex; justify-content:space-between; color:#62766e; font-size:8px; letter-spacing:.04em; }
.module-hub-footer strong { color:#7399c4; letter-spacing:.12em; }

/* SIGFE · Interfaz operativa */
.sigfe-layout .content-area { background:radial-gradient(circle at 90% 2%,rgba(206,155,65,.08),transparent 22%); }
.sigfe-hero { --surface-x:70%; --surface-y:30%; position:relative; min-height:330px; display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:28px; padding:clamp(30px,4vw,55px); border:1px solid rgba(204,163,84,.22); border-radius:26px; overflow:hidden; color:#f2f6f3; background:radial-gradient(circle at var(--surface-x) var(--surface-y),rgba(206,161,72,.13),transparent 24%),linear-gradient(125deg,#09241a,#10281f 54%,#292619); box-shadow:0 22px 52px rgba(15,31,24,.16); }
.sigfe-hero-grid { position:absolute; inset:0; opacity:.12; background-image:linear-gradient(rgba(255,255,255,.12) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.12) 1px,transparent 1px); background-size:42px 42px; mask-image:linear-gradient(90deg,transparent,#000 45%,#000); }
.sigfe-hero::after { content:""; position:absolute; inset:0; background:linear-gradient(100deg,transparent 48%,rgba(0,0,0,.16)); pointer-events:none; }
.sigfe-hero-copy,.sigfe-hero-state { position:relative; z-index:2; }
.sigfe-kicker { display:inline-flex; align-items:center; gap:8px; color:#deb66a; font-size:9px; font-weight:850; letter-spacing:.15em; text-transform:uppercase; }
.sigfe-kicker i { width:7px; height:7px; border-radius:50%; background:#45cb90; box-shadow:0 0 0 5px rgba(69,203,144,.1); }
.sigfe-hero h1 { margin:12px 0 10px; font-family:Georgia,serif; font-size:clamp(42px,5vw,72px); font-weight:400; line-height:.94; letter-spacing:-.045em; }
.sigfe-hero h1 em { color:#dfbc77; font-style:normal; }
.sigfe-hero p { max-width:650px; margin:0; color:#a8b9b1; font-size:13px; line-height:1.65; }
.sigfe-hero-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:23px; }
.sigfe-primary-action,.sigfe-secondary-action { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:11px 17px; border-radius:11px; text-decoration:none; font-size:11px; font-weight:800; }
.sigfe-primary-action { gap:20px; background:#e2b75f; color:#14221b; box-shadow:0 10px 24px rgba(0,0,0,.14); }
.sigfe-primary-action span { transition:transform .2s ease; }
.sigfe-primary-action:hover span { transform:translateX(3px); }
.sigfe-secondary-action { border:1px solid rgba(255,255,255,.15); color:#e3ebe7; background:rgba(255,255,255,.05); }
.sigfe-hero-state { min-width:205px; padding:18px; border:1px solid rgba(255,255,255,.1); border-radius:16px; background:rgba(5,18,13,.48); backdrop-filter:blur(12px); }
.sigfe-hero-state > span,.sigfe-hero-state strong,.sigfe-hero-state small { display:block; }
.sigfe-hero-state > span { color:#7d9087; font-size:8px; font-weight:850; letter-spacing:.13em; text-transform:uppercase; }
.sigfe-hero-state strong { margin:7px 0 3px; font-size:14px; }
.sigfe-hero-state strong i { display:inline-block; width:7px; height:7px; margin-right:6px; border-radius:50%; background:#45cb90; box-shadow:0 0 0 5px rgba(69,203,144,.1); }
.sigfe-hero-state small { color:#80938a; font-size:8px; }
.sigfe-hero-orbits { position:absolute; z-index:1; right:5%; top:50%; width:300px; height:300px; transform:translateY(-50%); border:1px solid rgba(222,182,105,.2); border-radius:50%; animation:sigfeOrbit 26s linear infinite; }
.sigfe-hero-orbits::before,.sigfe-hero-orbits::after,.sigfe-hero-orbits i { content:""; position:absolute; inset:35px; border:1px solid rgba(69,203,144,.16); border-radius:50%; }
.sigfe-hero-orbits::after { inset:82px; }
.sigfe-hero-orbits i:nth-child(1) { inset:-5px auto auto 48%; width:10px; height:10px; border:0; background:#e1b760; box-shadow:0 0 14px #e1b760; }
.sigfe-hero-orbits i:nth-child(2) { inset:auto 27px 49px auto; width:7px; height:7px; border:0; background:#44c98e; }
.sigfe-hero-orbits i:nth-child(3) { inset:92px; }
.sigfe-hero-orbits b { position:absolute; inset:0; display:grid; place-items:center; color:rgba(226,183,95,.36); font-family:Georgia,serif; font-size:72px; }
@keyframes sigfeOrbit { to { transform:translateY(-50%) rotate(360deg); } }
.sigfe-shared-strip { display:grid; grid-template-columns:repeat(4,1fr); margin:18px 0; border:1px solid #dbe3df; border-radius:17px; background:rgba(255,255,255,.92); box-shadow:0 10px 28px rgba(25,39,34,.06); overflow:hidden; }
.sigfe-shared-strip article { min-height:88px; padding:17px 20px; border-right:1px solid #e6ebe8; }
.sigfe-shared-strip article:last-child { border-right:0; }
.sigfe-shared-strip span,.sigfe-shared-strip strong,.sigfe-shared-strip small { display:block; }
.sigfe-shared-strip span { color:#7b8983; font-size:8px; font-weight:850; letter-spacing:.09em; text-transform:uppercase; }
.sigfe-shared-strip strong { margin:8px 0 2px; font-family:Georgia,serif; font-size:22px; font-weight:500; }
.sigfe-shared-strip small { color:#85918c; font-size:8px; }
.sigfe-shared-status strong { font-family:inherit; font-size:12px; }
.sigfe-shared-status strong i { display:inline-block; width:7px; height:7px; margin-right:6px; border-radius:50%; background:#43c88d; }
.sigfe-kpi-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-bottom:18px; }
.sigfe-kpi { position:relative; min-height:138px; padding:20px; border:1px solid #dce4df; border-radius:18px; background:#fff; box-shadow:0 10px 25px rgba(25,39,34,.05); overflow:hidden; }
.sigfe-kpi::after { content:""; position:absolute; right:-34px; bottom:-45px; width:120px; height:120px; border-radius:50%; background:radial-gradient(circle,rgba(57,132,99,.12),transparent 67%); }
.sigfe-kpi > span,.sigfe-kpi > strong,.sigfe-kpi > small { display:block; position:relative; z-index:1; }
.sigfe-kpi > span { color:#73817b; font-size:9px; font-weight:800; }
.sigfe-kpi > strong { margin:13px 0 4px; font-family:Georgia,serif; font-size:29px; font-weight:500; letter-spacing:-.03em; }
.sigfe-kpi > small { color:#8a9691; font-size:8px; }
.sigfe-kpi > i { position:absolute; left:20px; right:20px; bottom:15px; height:3px; border-radius:5px; background:#e8eeeb; overflow:hidden; }
.sigfe-kpi > i::before { content:""; display:block; width:var(--value); height:100%; border-radius:inherit; background:linear-gradient(90deg,#d7a341,#2f9c73); transform-origin:left; animation:sigfeMeter 1.2s .25s cubic-bezier(.2,.8,.2,1) both; }
@keyframes sigfeMeter { from { transform:scaleX(0); } }
.sigfe-kpi-accent { background:linear-gradient(145deg,#eff8f4,#fff); }
.sigfe-flow-panel,.sigfe-cost-panel,.sigfe-quotes-panel,.sigfe-next-stage { border:1px solid #dbe3df; border-radius:21px; background:#fff; box-shadow:0 12px 30px rgba(25,39,34,.055); }
.sigfe-flow-panel { --surface-x:50%; --surface-y:50%; position:relative; padding:25px; overflow:hidden; background:radial-gradient(circle at var(--surface-x) var(--surface-y),rgba(55,149,108,.065),transparent 25%),#fff; }
.sigfe-flow-panel .section-heading p { margin:5px 0 0; color:#7d8a85; font-size:10px; }
.sigfe-flow-legend { display:flex; align-items:center; gap:7px; color:#6c7b75; font-size:9px; }
.sigfe-flow-legend i { width:8px; height:8px; border-radius:50%; background:#45c98f; box-shadow:0 0 0 5px rgba(69,201,143,.1); }
.sigfe-flow { position:relative; display:grid; grid-template-columns:repeat(8,minmax(92px,1fr)); gap:9px; padding-top:8px; }
.sigfe-flow::before { content:""; position:absolute; top:35px; left:4%; right:4%; height:2px; background:linear-gradient(90deg,#d6aa53,#54b98e,#d6aa53); opacity:.35; }
.sigfe-flow-node { position:relative; z-index:1; min-height:105px; padding:15px 11px; border:1px solid #e1e7e3; border-radius:15px; background:rgba(249,251,249,.95); transition:border-color .2s ease,background .2s ease,box-shadow .2s ease; cursor:default; }
.sigfe-flow-node > span,.sigfe-flow-node > strong,.sigfe-flow-node > small { display:block; }
.sigfe-flow-node > span { display:grid; place-items:center; width:26px; height:26px; margin-bottom:11px; border:1px solid #d9e1dd; border-radius:50%; background:#fff; color:#87703f; font-size:8px; font-weight:850; }
.sigfe-flow-node > strong { font-size:10px; }
.sigfe-flow-node > small { margin-top:3px; color:#84918c; font-size:7px; line-height:1.35; }
.sigfe-flow-node > i { position:absolute; top:27px; right:-9px; width:9px; height:9px; border-radius:50%; background:#d8aa50; opacity:.45; }
.sigfe-flow-node:last-child > i { display:none; }
.sigfe-flow-node.is-active,.sigfe-flow-node:hover { border-color:rgba(47,156,115,.42); background:#f0f8f4; box-shadow:0 12px 24px rgba(39,113,82,.1); }
.sigfe-flow-node.is-active > span { border-color:#3caa7f; background:#287b5c; color:white; }
.sigfe-flow-node.is-active > i { opacity:1; box-shadow:0 0 0 5px rgba(216,170,80,.1); }
.sigfe-dashboard-grid { display:grid; grid-template-columns:1.05fr .95fr; gap:18px; margin-top:18px; }
.sigfe-cost-panel,.sigfe-quotes-panel { padding:24px; }
.sigfe-cost-total { display:flex; align-items:end; justify-content:space-between; gap:15px; padding:16px; border-radius:14px; background:#f3f7f4; }
.sigfe-cost-total small,.sigfe-cost-total strong { display:block; }
.sigfe-cost-total small { color:#7c8984; font-size:8px; text-transform:uppercase; letter-spacing:.08em; }
.sigfe-cost-total strong { margin-top:4px; font-family:Georgia,serif; font-size:24px; font-weight:500; }
.sigfe-cost-total > b { color:#597069; font-size:10px; }
.sigfe-cost-bars { display:grid; gap:13px; margin:18px 0 14px; }
.sigfe-cost-bars > div { display:grid; grid-template-columns:minmax(130px,.8fr) minmax(120px,1fr) 84px; align-items:center; gap:12px; }
.sigfe-cost-bars span strong,.sigfe-cost-bars span small { display:block; }
.sigfe-cost-bars span strong { font-size:10px; }
.sigfe-cost-bars span small { margin-top:2px; color:#89958f; font-size:8px; }
.sigfe-cost-bars > div > i { height:6px; border-radius:6px; background:#e8eeeb; overflow:hidden; }
.sigfe-cost-bars > div > i b { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,#d7aa51,#319c73); }
.sigfe-cost-bars em { color:#50635c; font-size:9px; font-style:normal; font-weight:800; text-align:right; }
.sigfe-cost-panel > p { margin:0; color:#83908b; font-size:9px; line-height:1.5; }
.sigfe-quote-list { display:grid; gap:8px; }
.sigfe-quote-list article { display:grid; grid-template-columns:minmax(0,1fr) 90px 75px; align-items:center; gap:10px; padding:12px 13px; border:1px solid #e5eae7; border-radius:12px; }
.sigfe-quote-list span small,.sigfe-quote-list span strong { display:block; }
.sigfe-quote-list span small { color:#87938e; font-size:7px; }
.sigfe-quote-list span strong { margin-top:2px; overflow:hidden; font-size:9px; text-overflow:ellipsis; white-space:nowrap; }
.sigfe-empty-state { padding:35px 15px; text-align:center; }
.sigfe-empty-state > span { color:#c49a4b; font-size:30px; }
.sigfe-empty-state strong { display:block; margin:7px 0 4px; font-family:Georgia,serif; font-size:18px; }
.sigfe-empty-state p { margin:0; color:#85918c; font-size:9px; }
.sigfe-next-stage { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-top:18px; padding:22px 24px; }
.sigfe-next-stage h2 { margin:4px 0 5px; font-family:Georgia,serif; font-size:22px; font-weight:500; }
.sigfe-next-stage p { max-width:850px; margin:0; color:#7c8984; font-size:10px; line-height:1.5; }
.sigfe-reveal-ready { opacity:0; transform:translateY(12px); transition:opacity .55s ease var(--sigfe-delay),transform .55s cubic-bezier(.2,.8,.2,1) var(--sigfe-delay); }
.sigfe-reveal-ready.is-visible { opacity:1; transform:none; }

/* SIGFE · Catálogo de costos */
.sigfe-page-heading { --surface-x:70%; --surface-y:35%; display:flex; align-items:flex-end; justify-content:space-between; gap:25px; padding:30px; border:1px solid #d7e1dc; border-radius:22px; background:radial-gradient(circle at var(--surface-x) var(--surface-y),rgba(207,159,70,.13),transparent 23%),linear-gradient(135deg,#f8faf8,#fff); box-shadow:0 12px 30px rgba(25,39,34,.05); }
.sigfe-page-heading h1 { margin:8px 0 7px; font-family:Georgia,serif; font-size:clamp(35px,4vw,53px); font-weight:400; letter-spacing:-.04em; }
.sigfe-page-heading p { max-width:760px; margin:0; color:#718079; font-size:11px; line-height:1.6; }
.sigfe-page-heading .sigfe-primary-action { flex:0 0 auto; }
.sigfe-cost-summary-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:13px; margin:18px 0; }
.sigfe-cost-summary-grid article { padding:18px; border:1px solid #dce4df; border-radius:16px; background:#fff; box-shadow:0 8px 22px rgba(25,39,34,.045); }
.sigfe-cost-summary-grid span,.sigfe-cost-summary-grid strong,.sigfe-cost-summary-grid small { display:block; }
.sigfe-cost-summary-grid span { color:#74827d; font-size:8px; font-weight:800; text-transform:uppercase; letter-spacing:.08em; }
.sigfe-cost-summary-grid strong { margin:8px 0 2px; font-family:Georgia,serif; font-size:25px; font-weight:500; }
.sigfe-cost-summary-grid small { color:#8a9691; font-size:8px; }
.sigfe-cost-controls { display:flex; align-items:center; justify-content:space-between; gap:25px; margin-bottom:18px; padding:16px 18px; }
.sigfe-scenario-basis { display:flex; align-items:end; gap:10px; }
.sigfe-scenario-basis label { color:#64736d; font-size:9px; font-weight:750; }
.sigfe-scenario-basis input { display:block; width:210px; margin-top:5px; padding:10px 11px; border:1px solid #d2ddd7; border-radius:9px; background:#fbfcfb; }
.sigfe-cost-controls > p { max-width:560px; margin:0; color:#7c8984; font-size:9px; line-height:1.5; }
.sigfe-cost-catalog { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.sigfe-cost-item { overflow:hidden; border:1px solid #dbe3df; border-radius:19px; background:#fff; box-shadow:0 10px 26px rgba(25,39,34,.045); }
.sigfe-cost-item-head { display:grid; grid-template-columns:38px minmax(0,1fr) auto; align-items:start; gap:12px; padding:19px; background:linear-gradient(135deg,#f8faf8,#fff); }
.sigfe-cost-code { display:grid; place-items:center; width:36px; height:36px; border-radius:11px; background:#17372c; color:#dfb765; font-family:Georgia,serif; font-size:15px; }
.sigfe-cost-item-head div > small { color:#a0772f; font-size:7px; font-weight:850; letter-spacing:.09em; text-transform:uppercase; }
.sigfe-cost-item-head h2 { margin:4px 0 3px; font-family:Georgia,serif; font-size:18px; font-weight:500; }
.sigfe-cost-item-head p { margin:0; color:#82908a; font-size:8px; }
.sigfe-cost-equivalent { min-width:80px; text-align:right; }
.sigfe-cost-equivalent strong,.sigfe-cost-equivalent small { display:block; }
.sigfe-cost-equivalent strong { font-family:Georgia,serif; font-size:18px; font-weight:500; }
.sigfe-cost-equivalent small { color:#89958f; font-size:7px; }
.sigfe-cost-form { display:grid; grid-template-columns:1.1fr .7fr 1fr 1.3fr; gap:9px; padding:15px 19px 17px; border-top:1px solid #edf0ee; }
.sigfe-cost-form label { color:#687770; font-size:8px; font-weight:750; }
.sigfe-cost-form input,.sigfe-cost-form select { width:100%; margin-top:5px; padding:9px 10px; border:1px solid #d4ddd8; border-radius:9px; background:#fbfcfb; color:#25352f; font-size:9px; }
.sigfe-cost-form .wide-field { grid-column:1 / -2; }
.sigfe-cost-form .primary-button { align-self:end; min-height:36px; padding:8px 12px; font-size:9px; }
.sigfe-cost-readonly { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; padding:16px 19px; border-top:1px solid #edf0ee; }
.sigfe-cost-readonly small,.sigfe-cost-readonly strong { display:block; }
.sigfe-cost-readonly small { color:#89958f; font-size:7px; }
.sigfe-cost-readonly strong { margin-top:3px; font-size:10px; }
.sigfe-cost-item footer { display:flex; justify-content:space-between; gap:15px; padding:10px 19px; border-top:1px solid #edf0ee; color:#89958f; font-size:7px; }
.sigfe-integrity-note { display:flex; align-items:center; gap:15px; margin-top:18px; padding:19px; border:1px solid rgba(64,157,117,.25); border-radius:16px; background:#edf8f3; }
.sigfe-integrity-note > span { display:grid; place-items:center; width:38px; height:38px; border-radius:50%; background:#247a58; color:white; }
.sigfe-integrity-note strong { display:block; font-size:11px; }
.sigfe-integrity-note p { margin:3px 0 0; color:#62756d; font-size:9px; line-height:1.45; }
.sigfe-linked-title { align-items:center; }
.sigfe-linked-title > a { margin-left:auto; color:#7c602b; font-size:9px; font-weight:800; text-decoration:none; }
.sigfe-cost-link-state { display:flex; align-items:center; justify-content:space-between; gap:15px; margin:-2px 0 13px; padding:10px 12px; border:1px solid #d8e3de; border-radius:12px; background:#f5f8f6; }
.sigfe-cost-link-state > span { display:grid; grid-template-columns:8px auto; align-items:center; column-gap:9px; }
.sigfe-cost-link-state > span i { grid-row:1 / span 2; width:8px; height:8px; border-radius:50%; background:#c08b32; }
.sigfe-cost-link-state > span strong { font-size:9px; }
.sigfe-cost-link-state > span small { color:#81908a; font-size:8px; }
.sigfe-cost-link-state.is-linked { border-color:rgba(53,164,116,.25); background:#eff8f4; }
.sigfe-cost-link-state.is-linked > span i { background:#3ec486; box-shadow:0 0 0 4px rgba(62,196,134,.1); }

@media (max-width:1180px) {
  .module-hub { overflow-y:auto; }
  .module-cards { grid-template-columns:1fr 38px 1fr; }
  .module-card { min-height:285px; }
  .sigfe-flow { grid-template-columns:repeat(4,1fr); }
  .sigfe-flow::before,.sigfe-flow-node > i { display:none; }
  .sigfe-cost-catalog { grid-template-columns:1fr; }
}

@media (max-width:800px) {
  .module-hub { display:block; min-height:100dvh; padding:18px 14px; overflow-y:auto; }
  .module-hub-header { align-items:flex-start; }
  .module-hub-brand span,.module-hub-account .system-clock,.module-hub-account .private-data-chip,.module-hub-account > span:not(.avatar):last-of-type { display:none; }
  .module-hub-intro { margin:36px auto 22px; text-align:left; }
  .module-hub-intro h1 { font-size:42px; }
  .module-hub-intro p { margin:0; }
  .shared-core-rail { grid-template-columns:repeat(2,1fr); margin-bottom:16px; }
  .shared-core-title { grid-column:1 / -1; }
  .shared-core-rail > * { border-bottom:1px solid rgba(255,255,255,.075); }
  .module-cards { display:grid; grid-template-columns:1fr; gap:13px; }
  .module-bridge { display:none; }
  .module-card { min-height:320px; transform:none; }
  .module-hub-footer { margin-top:18px; }
  .sigfe-hero { min-height:420px; grid-template-columns:1fr; align-items:end; padding:27px 22px; }
  .sigfe-hero-state { width:100%; }
  .sigfe-hero-orbits { right:-100px; top:37%; width:270px; height:270px; }
  .sigfe-shared-strip,.sigfe-kpi-grid,.sigfe-cost-summary-grid { grid-template-columns:repeat(2,1fr); }
  .sigfe-shared-strip article:nth-child(2) { border-right:0; }
  .sigfe-shared-strip article { border-bottom:1px solid #e6ebe8; }
  .sigfe-dashboard-grid { grid-template-columns:1fr; }
  .sigfe-flow { grid-template-columns:repeat(2,1fr); }
  .sigfe-page-heading,.sigfe-cost-controls,.sigfe-next-stage { align-items:flex-start; flex-direction:column; }
  .sigfe-scenario-basis { width:100%; align-items:stretch; flex-direction:column; }
  .sigfe-scenario-basis input { width:100%; }
  .sigfe-cost-form { grid-template-columns:repeat(2,1fr); }
  .sigfe-cost-form .wide-field { grid-column:1 / -1; }
  .sigfe-cost-form .primary-button { grid-column:1 / -1; }
  .nav-future { display:grid !important; }
}

@media (max-width:480px) {
  .module-hub-brand img { width:145px; }
  .module-card { min-height:345px; padding:20px; }
  .module-card-copy { width:100%; padding-right:72px; }
  .module-card-orbit { right:-15px; top:12px; width:105px; height:105px; opacity:.72; }
  .module-card-stats { grid-template-columns:1fr; }
  .module-card-stats span { border-right:0; border-bottom:1px solid rgba(255,255,255,.08); }
  .module-card-stats span:last-child { border-bottom:0; }
  .shared-core-rail article strong { font-size:15px; }
  .module-hub-footer { gap:8px; flex-direction:column; }
  .sigfe-shared-strip,.sigfe-kpi-grid,.sigfe-cost-summary-grid { grid-template-columns:1fr; }
  .sigfe-shared-strip article { border-right:0; }
  .sigfe-flow { grid-template-columns:1fr 1fr; }
  .sigfe-flow-panel,.sigfe-cost-panel,.sigfe-quotes-panel { padding:18px 14px; }
  .sigfe-cost-bars > div { grid-template-columns:1fr 72px; }
  .sigfe-cost-bars > div > i { grid-column:1 / -1; grid-row:2; }
  .sigfe-cost-bars em { grid-column:2; grid-row:1; }
  .sigfe-quote-list article { grid-template-columns:1fr 68px; }
  .sigfe-quote-list article span:last-child { display:none; }
  .sigfe-cost-item-head { grid-template-columns:34px minmax(0,1fr); }
  .sigfe-cost-equivalent { grid-column:2; text-align:left; }
  .sigfe-cost-form { grid-template-columns:1fr; }
  .sigfe-cost-form .wide-field,.sigfe-cost-form .primary-button { grid-column:auto; }
  .sigfe-cost-item footer { flex-direction:column; gap:4px; }
  .sigfe-cost-link-state { align-items:flex-start; flex-direction:column; }
  .sigfe-linked-title { display:grid; grid-template-columns:auto 1fr; }
  .sigfe-linked-title > a { grid-column:2; margin:4px 0 0; }
}

@media (prefers-reduced-motion:reduce) {
  .module-ambient,.shared-core-pulse,.module-card-orbit,.module-bridge i,.module-bridge b,.module-bridge em,.sigfe-hero-orbits,.sigfe-kpi > i::before { animation:none !important; }
  .module-card,.sigfe-reveal-ready { transform:none !important; transition:none !important; }
  .sigfe-reveal-ready { opacity:1 !important; }
}

/* v0.7.1 · Pantalla integral y continuidad de salida hacia el acceso */
.module-hub-body {
  width: 100%;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  overscroll-behavior: none;
}
.module-hub {
  width: 100%;
  height: 100dvh;
  min-height: 0;
  max-height: 100dvh;
}
.module-logout:disabled { opacity: .68; cursor: wait; }

@media (min-width: 801px) {
  .module-hub { overflow: hidden; }
  .module-card { min-height: 0; }
}

@media (min-width: 801px) and (max-height: 760px) {
  .module-hub {
    grid-template-rows: auto auto auto minmax(0, 1fr) auto;
    gap: clamp(8px, 1.15vh, 12px);
    padding: 14px clamp(20px, 3.2vw, 48px) 11px;
  }
  .module-hub-brand img { width: clamp(144px, 11vw, 178px); }
  .module-hub-intro h1 { margin: 5px 0 4px; font-size: clamp(32px, 3.65vw, 49px); }
  .module-hub-intro p { font-size: 10px; line-height: 1.42; }
  .shared-core-rail > * { min-height: 52px; padding: 8px 13px; }
  .shared-core-rail article strong { margin-top: 2px; font-size: 15px; }
  .module-card { padding: clamp(15px, 1.6vw, 22px); border-radius: 19px; }
  .module-card-orbit { width: 103px; height: 103px; }
  .module-card h2 { margin: 3px 0 5px; font-size: clamp(28px, 2.6vw, 39px); }
  .module-card p { font-size: 9px; line-height: 1.42; }
  .module-card-stats { margin-top: 10px; }
  .module-card-stats span { padding: 7px 9px; }
  .module-card-action { margin-top: 8px; padding-top: 8px; }
  .module-card-action b { width: 24px; height: 24px; }
}

@media (max-width: 800px) {
  .module-hub-body { overflow: hidden; }
  .module-hub { height: 100dvh; max-height: 100dvh; overflow-x: hidden; overflow-y: auto; }
}

.session-transition {
  position: fixed;
  z-index: 2147483000;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: all;
  contain: strict;
  transition: opacity .12s linear;
}
.session-transition.is-active { opacity: 1; }
.session-transition-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(20,71,50,.86), rgba(4,16,12,.98) 58%, #020a07);
}
.session-transition-rays,
.session-transition-particles,
.session-transition-core {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
}
.session-transition-rays i {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--ray-length);
  height: 1px;
  transform-origin: 0 50%;
  transform: rotate(var(--ray-angle)) translateX(36px) scaleX(1);
  background: linear-gradient(90deg, rgba(239,198,116,.95), rgba(66,211,148,.52) 48%, transparent);
  box-shadow: 0 0 9px rgba(93,218,164,.34);
  opacity: 0;
}
.session-transition-particles i {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--particle-size);
  height: var(--particle-size);
  border-radius: 50%;
  background: #55d69c;
  box-shadow: 0 0 10px rgba(85,214,156,.85);
  opacity: 0;
  transform: rotate(var(--particle-angle)) translateX(var(--particle-distance));
}
.session-transition-particles i:nth-child(4n),
.session-transition-particles i:nth-child(7n) {
  background: #ecc47a;
  box-shadow: 0 0 11px rgba(236,196,122,.78);
}
.session-transition-core {
  width: 1px;
  height: 1px;
  transform: translate(-50%, -50%);
}
.session-transition-ring {
  position: absolute;
  left: 0;
  top: 0;
  border: 1px solid rgba(94,220,164,.55);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%);
}
.session-transition-ring::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ecc47a;
  box-shadow: 0 0 13px rgba(236,196,122,.9);
}
.session-transition-ring.ring-a { width: 220px; height: 220px; }
.session-transition-ring.ring-b { width: 158px; height: 158px; border-color: rgba(236,196,122,.5); }
.session-transition-ring.ring-c { width: 106px; height: 106px; }
.session-transition-bean {
  position: absolute;
  left: -41px;
  top: -62px;
  width: 82px;
  height: 124px;
  border-radius: 48% 52% 49% 51% / 49% 48% 52% 51%;
  opacity: 0;
  overflow: hidden;
  background-image: url('/anasur-intelligence-hero-v062.webp');
  background-repeat: no-repeat;
  background-size: 836px 470.5px;
  background-position: -535px -168.5px;
  box-shadow: 0 0 0 1px rgba(247,199,119,.24), 0 0 34px rgba(221,158,73,.38), 0 19px 39px rgba(0,0,0,.48);
}
.session-transition-bean::before {
  content: none;
}
.session-transition-bean i {
  display: none;
}
.session-transition-caption {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: calc(50% + 82px);
  color: rgba(230,240,235,.78);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateX(-50%);
}

.session-transition-exit.is-active .session-transition-backdrop { animation: sessionBackdropIn 1.02s ease forwards; }
.session-transition-exit.is-active .session-transition-rays i { animation: sessionRayImplode .86s var(--ray-delay) cubic-bezier(.62,.02,.42,1) forwards; }
.session-transition-exit.is-active .session-transition-particles i { animation: sessionParticleImplode .92s var(--particle-delay) cubic-bezier(.7,.02,.4,1) forwards; }
.session-transition-exit.is-active .session-transition-ring.ring-a { animation: sessionRingImplode 1.06s .05s cubic-bezier(.66,.02,.35,1) forwards; }
.session-transition-exit.is-active .session-transition-ring.ring-b { animation: sessionRingImplode 1s .12s cubic-bezier(.66,.02,.35,1) forwards; }
.session-transition-exit.is-active .session-transition-ring.ring-c { animation: sessionRingImplode .92s .18s cubic-bezier(.66,.02,.35,1) forwards; }
.session-transition-exit.is-active .session-transition-bean { animation: sessionBeanForm .48s .78s cubic-bezier(.16,.8,.24,1) forwards; }
.session-transition-exit.is-active .session-transition-caption { animation: sessionCaptionIn .32s .9s ease forwards; }

body.session-leaving { overflow: hidden !important; }
body.session-leaving .application-layout,
body.session-leaving .module-hub {
  transform-origin: 50% 50%;
  animation: sessionSceneContract 1.08s cubic-bezier(.68,.02,.34,1) forwards !important;
  pointer-events: none;
}

.session-transition-arrival { --arrival-x: 0px; --arrival-y: 0px; }
.session-transition-arrival .session-transition-backdrop { opacity: 1; }
.session-transition-arrival .session-transition-caption { display: none; }
.session-transition-arrival .session-transition-bean { opacity: 1; }
.session-transition-arrival .session-transition-ring { opacity: .5; }
.session-transition-arrival.is-active .session-transition-backdrop { animation: sessionArrivalBackdrop 1.32s .08s ease forwards; }
.session-transition-arrival.is-active .session-transition-core { animation: sessionArrivalCore 1.18s .06s cubic-bezier(.22,.61,.36,1) forwards; }
.session-transition-arrival.is-active .session-transition-ring.ring-a { animation: sessionArrivalRing 1.1s ease forwards; }
.session-transition-arrival.is-active .session-transition-ring.ring-b { animation: sessionArrivalRing 1s .06s ease forwards; }
.session-transition-arrival.is-active .session-transition-ring.ring-c { animation: sessionArrivalRing .92s .12s ease forwards; }
.session-transition-arrival.is-active .session-transition-particles i { animation: sessionParticleRelease .82s var(--particle-delay) ease-out forwards; }

@keyframes sessionBackdropIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes sessionSceneContract {
  0% { opacity: 1; filter: blur(0); transform: scale(1); }
  52% { opacity: .82; filter: blur(.8px); transform: scale(.965); }
  100% { opacity: 0; filter: blur(9px); transform: scale(.58); }
}
@keyframes sessionRayImplode {
  0% { opacity: 0; transform: rotate(var(--ray-angle)) translateX(42px) scaleX(1.15); }
  18% { opacity: .92; }
  100% { opacity: 0; transform: rotate(var(--ray-angle)) translateX(0) scaleX(.02); }
}
@keyframes sessionParticleImplode {
  0% { opacity: 0; transform: rotate(var(--particle-angle)) translateX(var(--particle-distance)) scale(.6); }
  17% { opacity: 1; }
  84% { opacity: .95; }
  100% { opacity: 0; transform: rotate(var(--particle-angle)) translateX(0) scale(.12); }
}
@keyframes sessionRingImplode {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(0) scale(1.55); }
  22% { opacity: .82; }
  100% { opacity: 0; transform: translate(-50%, -50%) rotate(190deg) scale(.18); }
}
@keyframes sessionBeanForm {
  0% { opacity: 0; filter: blur(7px); transform: scale(.12); }
  68% { opacity: 1; filter: blur(0); transform: scale(1.07); }
  100% { opacity: 1; filter: blur(0); transform: scale(1); }
}
@keyframes sessionCaptionIn {
  from { opacity: 0; letter-spacing: .28em; }
  to { opacity: .78; letter-spacing: .18em; }
}
@keyframes sessionArrivalBackdrop {
  0%, 16% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes sessionArrivalCore {
  0% { opacity: 1; transform: translate(-50%, -50%) translate3d(0,0,0) scale(1); }
  76% { opacity: 1; transform: translate(-50%, -50%) translate3d(var(--arrival-x),var(--arrival-y),0) scale(2.46); }
  100% { opacity: 0; transform: translate(-50%, -50%) translate3d(var(--arrival-x),var(--arrival-y),0) scale(2.65); }
}
@keyframes sessionArrivalRing {
  0% { opacity: .48; transform: translate(-50%, -50%) rotate(0) scale(.35); }
  65% { opacity: .34; }
  100% { opacity: 0; transform: translate(-50%, -50%) rotate(145deg) scale(1.28); }
}
@keyframes sessionParticleRelease {
  0% { opacity: .8; transform: rotate(var(--particle-angle)) translateX(0) scale(.2); }
  100% { opacity: 0; transform: rotate(var(--particle-angle)) translateX(var(--particle-distance)) scale(.7); }
}

@media (prefers-reduced-motion: reduce) {
  .session-transition { display: none !important; }
  body.session-leaving .application-layout,
  body.session-leaving .module-hub { animation: none !important; }
}

/* v0.7.2 · Navegación alcanzable y mismo grano fotográfico del acceso */
.application-body .sidebar {
  min-height: 0;
}
.application-body .sidebar > .brand,
.application-body .sidebar > .module-switcher,
.application-body .sidebar > .sidebar-foot,
.application-body .sidebar > .sidebar-edition {
  flex: 0 0 auto;
}
.application-body .sidebar-nav {
  min-height: 0;
  flex: 1 1 auto;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  padding-right: 5px;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(222,180,96,.5) rgba(255,255,255,.035);
}
.application-body .sidebar-nav::-webkit-scrollbar { width: 5px; }
.application-body .sidebar-nav::-webkit-scrollbar-track { border-radius: 6px; background: rgba(255,255,255,.035); }
.application-body .sidebar-nav::-webkit-scrollbar-thumb { border-radius: 6px; background: linear-gradient(#d5aa59,#3fa577); }
.application-body .sidebar-nav::-webkit-scrollbar-thumb:hover { background: linear-gradient(#ecc879,#4bc18e); }
.application-body .sidebar-nav .nav-label:first-child { margin-top: 8px; }

/* v0.7.5 · Empalme continuo del grano y automatización de fuentes */
body.logout-arrival-pending {
  background: #020a07;
}

/* v0.7.8 · Trayectoria Coffee C, seguimiento intradía y auditoría de settlement */
.dashboard-trajectory-plot { margin-top: 8px; min-height: 330px; }
.dashboard-trajectory-plot .dashboard-market-chart { display: block; width: 100%; height: 330px; }
.dashboard-trajectory-plot .history-loading-state[hidden] { display: none; }
.market-command-panel [data-coffee-trajectory-caption] { max-width: 520px; }
.market-series-toolbar { display: grid; grid-template-columns: minmax(180px,1fr) minmax(150px,.8fr) auto minmax(240px,1.5fr); gap: 10px; align-items: end; margin: 14px 0 4px; padding: 12px; border: 1px solid #dbe6e1; border-radius: 13px; background: #f7faf8; }
.market-series-toolbar label { display: grid; gap: 5px; color: #71807a; font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.market-series-toolbar select { width: 100%; min-height: 35px; padding: 7px 29px 7px 10px; border: 1px solid #cbd9d3; border-radius: 9px; background: #fff; color: #173b31; font: 700 10px Inter,Arial,sans-serif; }
.market-series-toolbar select:disabled { opacity: .55; cursor: not-allowed; }
.market-series-explanation { align-self: center; color: #65746f; font-size: 9px; line-height: 1.45; }
.chart-type-control { flex: 0 0 auto; }
.market-technical-strip { display: grid; grid-template-columns: repeat(5,minmax(74px,1fr)) minmax(170px,1.4fr); gap: 8px; margin-top: 10px; }
.market-technical-strip > div, .market-technical-strip > a { min-height: 49px; padding: 9px 10px; border: 1px solid #dce6e1; border-radius: 10px; background: #fff; }
.market-technical-strip > div { display: grid; align-content: center; gap: 3px; }
.market-technical-strip span { color: #7a8782; font-size: 7px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.market-technical-strip strong { color: #173b31; font-size: 12px; }
.market-technical-strip > a { display: flex; align-items: center; justify-content: center; color: #176b4e; font-size: 9px; font-weight: 850; text-align: center; }
.differential-history-chart { margin: 0 0 18px; padding: 14px; border: 1px solid #dfe7e3; border-radius: 14px; background: linear-gradient(145deg,#fff,#f7faf8); }
.differential-history-chart svg { display: block; width: 100%; height: auto; max-height: 330px; }
.differential-history-chart text { fill: #71807a; font: 9px Inter,Arial,sans-serif; }
.differential-history-chart .diff-grid-line { stroke: #dfe7e3; stroke-width: 1; }
.differential-chart-legend { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 0 0 8px; }
.differential-chart-legend span { display: inline-flex; align-items: center; gap: 6px; color: #53645d; font-size: 9px; font-weight: 750; }
.differential-chart-legend i { width: 16px; height: 3px; border-radius: 5px; }
.differential-history-chart > p { margin: 5px 0 0; color: #71807a; font-size: 9px; line-height: 1.45; }
.weather-region-panel { margin: 0 0 16px; padding: 15px; border: 1px solid #dce6e1; border-radius: 15px; background: #f7faf8; }
.weather-region-panel header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 11px; }
.weather-region-panel header strong { color: #24483b; font-size: 13px; }
.weather-region-panel header small { margin-left: auto; color: #75827d; font-size: 8px; }
.weather-region-panel > div { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 8px; }
.weather-region-panel article { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; padding: 11px; border: 1px solid #e0e8e4; border-radius: 11px; background: #fff; }
.weather-region-panel article > strong { grid-column: 1 / -1; color: #25483b; font-size: 10px; }
.weather-region-panel article span { display: grid; gap: 2px; }
.weather-region-panel article small,.weather-region-panel article em { color: #81908a; font-size: 7px; font-style: normal; }
.weather-region-panel article b { color: #344f45; font-size: 9px; }
.weather-region-panel article em { grid-column: 1 / -1; }
.auth-method-separator { position: relative; display: grid; place-items: center; height: 18px; color: #89958f; font-size: 9px; }
.auth-method-separator::before { position: absolute; right: 0; left: 0; height: 1px; background: #e0e6e3; content: ""; }
.auth-method-separator span { position: relative; z-index: 1; padding: 0 9px; background: #fff; }
.passkey-login-button { justify-content: center; }
.passkey-status { margin: 0; padding: 9px 11px; border-radius: 9px; background: #eef4f1; color: #52655d; font-size: 9px; line-height: 1.45; }
.passkey-status[data-tone="error"] { background: #fff0ed; color: #9b3f37; }
.passkey-status[data-tone="success"] { background: #e7f6ee; color: #176247; }
.account-security-heading p { max-width: 760px; }
.account-security-grid { display: grid; grid-template-columns: minmax(300px,.8fr) minmax(420px,1.2fr); gap: 18px; }
.passkey-explanation { color: #62736c; font-size: 11px; line-height: 1.6; }
.passkey-device-list { display: grid; gap: 9px; }
.passkey-device-list article { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 13px; border: 1px solid #dfe7e3; border-radius: 12px; background: #fbfcfb; }
.passkey-device-icon { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 10px; background: #e8f5ef; color: #177153; font-weight: 900; }
.passkey-device-list article > div { display: grid; gap: 3px; }
.passkey-device-list strong { color: #213e34; font-size: 11px; }
.passkey-device-list small,.passkey-device-list em { color: #77857f; font-size: 8px; font-style: normal; }
.passkey-device-list em { color: #2f765e; font-weight: 750; }
.danger-link { color: #a23e37 !important; }
.passkey-empty { padding: 24px; border: 1px dashed #ccd9d3; border-radius: 12px; text-align: center; }
.passkey-empty strong { color: #2e493f; }
.passkey-empty p { color: #76847e; font-size: 10px; }

@media (max-width: 900px) {
  .account-security-grid { grid-template-columns: 1fr; }
}

/* v0.7.8 · Valores visibles en títulos y lecturas gobernadas por el Bot */
.chart-title-with-value { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; }
.chart-title-with-value > span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid rgba(25,119,85,.18);
  border-radius: 999px;
  color: #12644a;
  background: #edf8f3;
  font-family: Inter, Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.bot-managed-reading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(25,119,85,.18);
  border-radius: 16px;
  background: linear-gradient(145deg, #f7fcfa, #edf7f2);
}
.bot-managed-reading > div { display: grid; grid-template-columns: auto 1fr; gap: 3px 9px; align-items: center; }
.bot-managed-reading .live-dot { grid-row: 1 / span 2; }
.bot-managed-reading strong { color: #183f32; font-size: 12px; }
.bot-managed-reading small { color: #65766f; font-size: 11px; line-height: 1.5; }

@media (max-width: 720px) {
  .bot-managed-reading { align-items: stretch; flex-direction: column; }
  .bot-managed-reading .secondary-button { text-align: center; }
}

@media (max-width: 620px) {
  .dashboard-trajectory-plot,
  .dashboard-trajectory-plot .dashboard-market-chart { min-height: 275px; height: 275px; }
  .market-series-toolbar { grid-template-columns: 1fr 1fr; }
  .market-series-explanation { grid-column: 1 / -1; }
  .market-technical-strip { grid-template-columns: repeat(3,1fr); }
}

@media (max-width: 620px) {
  .market-series-toolbar { grid-template-columns: 1fr; }
  .market-series-explanation { grid-column: auto; }
  .market-technical-strip { grid-template-columns: repeat(2,1fr); }
  .market-technical-strip > a { grid-column: 1 / -1; }
}

/* v0.7.9 · Indicadores como tablero visual de decisión */
.indicator-page-heading { align-items: flex-end; }
.indicator-page-heading > div { max-width: 760px; }
.indicator-strategy-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr);
  gap: 28px;
  margin-bottom: 18px;
  padding: 26px;
  border: 1px solid #d7e2dc;
  border-radius: 22px;
  background:
    radial-gradient(circle at 12% 10%, rgba(25,119,85,.10), transparent 38%),
    linear-gradient(145deg, #fbfdfb, #f1f6f3);
  box-shadow: 0 16px 42px rgba(19,48,38,.07);
}
.indicator-strategy-hero.tone-bullish { border-color: rgba(25,119,85,.28); }
.indicator-strategy-hero.tone-bearish { border-color: rgba(184,75,66,.25); }
.indicator-pulse-title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 7px; }
.indicator-pulse-title h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(26px, 3vw, 40px); font-weight: 500; }
.indicator-score-badge { padding: 7px 11px; border-radius: 999px; color: #1d5f4a; background: #e8f4ee; font-size: 11px; font-weight: 850; }
.indicator-pulse-copy > p { max-width: 650px; margin: 11px 0 20px; color: #64736d; font-size: 12px; line-height: 1.65; }
.indicator-force-axis { position: relative; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: end; height: 38px; padding-top: 15px; color: #7a8782; font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.indicator-force-axis::before { content: ""; position: absolute; inset: 3px 0 auto; height: 8px; border-radius: 999px; background: linear-gradient(90deg, #c35b52, #d3a34a 50%, #278763); opacity: .72; }
.indicator-force-axis i { position: absolute; z-index: 1; top: -1px; left: var(--signal-position); width: 4px; height: 17px; border: 3px solid #fff; border-radius: 5px; background: #173c30; box-shadow: 0 2px 8px rgba(15,37,30,.25); transform: translateX(-50%); }
.indicator-force-axis span:nth-of-type(2) { text-align: center; }
.indicator-force-axis span:last-child { text-align: right; }
.indicator-force-panel { display: flex; flex-direction: column; justify-content: center; gap: 17px; padding: 20px; border: 1px solid rgba(25,119,85,.13); border-radius: 18px; background: rgba(255,255,255,.74); }
.indicator-force-balance { display: flex; width: 100%; height: 12px; overflow: hidden; border-radius: 999px; background: #edf1ef; }
.indicator-force-balance span { min-width: 0; transition: width .5s ease; }
.indicator-force-balance .bearish { background: #b84b42; }
.indicator-force-balance .neutral { background: #d49a36; }
.indicator-force-balance .bullish { background: #197755; }
.indicator-force-counts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.indicator-force-counts > div { padding: 10px; border-radius: 12px; background: #f4f7f5; }
.indicator-force-counts span, .indicator-force-counts strong { display: block; }
.indicator-force-counts span { color: #71807a; font-size: 8px; line-height: 1.35; }
.indicator-force-counts strong { margin-top: 7px; font-size: 21px; }
.indicator-force-counts .bearish strong { color: #a43e37; }
.indicator-force-counts .neutral strong { color: #a86e11; }
.indicator-force-counts .bullish strong { color: #126649; }
.indicator-force-counts .pending strong { color: #78837f; }
.indicator-confidence-coverage > div { display: flex; align-items: center; justify-content: space-between; color: #61706a; font-size: 9px; font-weight: 800; }
.indicator-confidence-coverage meter { width: 100%; height: 8px; margin-top: 6px; border: 0; }
.indicator-confidence-coverage meter::-webkit-meter-bar { border: 0; border-radius: 999px; background: #e7ece9; }
.indicator-confidence-coverage meter::-webkit-meter-optimum-value { border-radius: 999px; background: #197755; }
.indicator-confidence-coverage meter::-moz-meter-bar { border-radius: 999px; background: #197755; }

.indicator-view-toolbar { position: sticky; z-index: 5; top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 13px; padding: 10px; border: 1px solid #dce4df; border-radius: 15px; background: rgba(249,251,249,.93); box-shadow: 0 8px 24px rgba(22,45,36,.06); backdrop-filter: blur(12px); }
.indicator-filter-group, .indicator-expand-group { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.indicator-filter, .indicator-expand-group button { border: 1px solid #dbe3df; border-radius: 999px; color: #5f6d67; background: #fff; cursor: pointer; font-size: 9px; font-weight: 800; }
.indicator-filter { padding: 8px 11px; }
.indicator-filter span { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 4px; border-radius: 99px; background: #edf2ef; font-size: 8px; }
.indicator-filter:hover, .indicator-filter.is-active { border-color: #197755; color: #fff; background: #197755; }
.indicator-filter.is-active span { color: #145f46; background: #fff; }
.indicator-expand-group button { padding: 7px 10px; }
.indicator-expand-group button:hover { border-color: #9fb9ad; color: #245c48; }
.indicator-filter-empty { padding: 20px; border: 1px dashed #ccd7d1; border-radius: 14px; color: #6d7a75; background: #f7f9f8; text-align: center; font-size: 11px; }

.indicator-decision-card { position: relative; border-left: 4px solid #a8b3ae; }
.indicator-decision-card.signal-bullish { border-left-color: #197755; }
.indicator-decision-card.signal-bearish { border-left-color: #b84b42; }
.indicator-decision-card.signal-neutral { border-left-color: #d49a36; }
.indicator-decision-card.signal-pending { border-left-color: #9aa5a0; }
.indicator-decision-card > summary { grid-template-columns: 42px minmax(210px, 1fr) minmax(185px, .7fr) 150px; }
.indicator-summary-value { min-width: 0; padding-left: 16px; border-left: 1px solid #e1e7e3; }
.indicator-summary-value span, .indicator-summary-value strong, .indicator-summary-value small { display: block; }
.indicator-summary-value span { color: #7a8882; font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.indicator-summary-value strong { margin-top: 5px; overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.indicator-summary-value small { margin-top: 5px; font-size: 9px; }
.indicator-visual-reading { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 9px; min-width: 150px; }
.indicator-visual-reading > strong { grid-row: 1 / span 2; grid-column: 2; align-self: center; margin: 0; }
.signal-pill { display: inline-flex !important; width: fit-content; padding: 5px 8px; border-radius: 999px; font-size: 8px !important; font-weight: 900; }
.signal-pill.signal-bullish { color: #126649; background: #e6f4ed; }
.signal-pill.signal-bearish { color: #9d3e37; background: #faecea; }
.signal-pill.signal-neutral { color: #95600c; background: #fff4de; }
.signal-pill.signal-pending { color: #6b7772; background: #eef1ef; }
.indicator-summary-axis { position: relative; height: 5px; border-radius: 99px; background: linear-gradient(90deg, rgba(184,75,66,.75), rgba(212,154,54,.55) 50%, rgba(25,119,85,.75)); }
.indicator-summary-axis i { position: absolute; top: 50%; left: var(--signal-position); width: 9px; height: 9px; border: 2px solid #fff; border-radius: 50%; background: #244b3d; box-shadow: 0 1px 5px rgba(20,43,35,.3); transform: translate(-50%, -50%); }
.confidence-label { grid-column: 1 / -1; margin-top: 2px; text-align: left; font-size: 8px !important; font-weight: 800; }
.confidence-high { color: #187150 !important; }
.confidence-medium { color: #9a6a19 !important; }
.confidence-low { color: #a64c43 !important; }
.confidence-pending { color: #7b8682 !important; }
.change-up { color: #197755 !important; }
.change-down { color: #b84b42 !important; }
.change-flat { color: #75817c !important; }

.indicator-decision-detail { padding: 22px; }
.indicator-evidence-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-bottom: 16px; }
.indicator-evidence-strip > div { min-width: 0; padding: 12px 13px; border: 1px solid #e0e6e2; border-radius: 12px; background: #fafcfa; }
.indicator-evidence-strip span, .indicator-evidence-strip strong { display: block; }
.indicator-evidence-strip span { color: #7a8782; font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.indicator-evidence-strip strong { margin-top: 6px; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.indicator-bot-analysis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 18px; }
.indicator-bot-analysis article { position: relative; min-height: 118px; padding: 16px 17px; overflow: hidden; border: 1px solid #dde5e0; border-radius: 15px; background: #fff; }
.indicator-bot-analysis article > span, .indicator-bot-analysis article > strong { display: block; }
.indicator-bot-analysis article > span { color: #74817c; font-size: 8px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.indicator-bot-analysis article > strong { margin-top: 6px; color: #263d35; font-size: 13px; }
.indicator-bot-analysis article > p { margin: 8px 0 0; color: #65736e; font-size: 10px; line-height: 1.58; }
.indicator-bot-analysis .bot-analysis-lead { grid-column: 1 / -1; min-height: 140px; padding-right: 24%; background: linear-gradient(140deg, #f7fbf9, #edf6f1); }
.indicator-bot-analysis .bot-analysis-lead::after { content: ""; position: absolute; right: -28px; bottom: -42px; width: 175px; height: 175px; border: 35px solid rgba(25,119,85,.07); border-radius: 50%; }
.indicator-bot-analysis .bot-analysis-lead.signal-bearish { background: linear-gradient(140deg, #fffafa, #faeeee); }
.indicator-bot-analysis .bot-analysis-lead.signal-bearish::after { border-color: rgba(184,75,66,.07); }
.indicator-bot-analysis .bot-analysis-lead.signal-neutral { background: linear-gradient(140deg, #fffdf8, #fbf4e6); }
.indicator-bot-analysis .bot-analysis-lead.signal-neutral::after { border-color: rgba(212,154,54,.09); }
.indicator-bot-analysis .bot-impact-copy { color: #2f5144; font-weight: 700; }
.indicator-bot-analysis .bot-action-card { grid-column: 1 / -1; min-height: 105px; border-color: rgba(25,119,85,.2); background: #f1f8f4; }
.indicator-bot-analysis .bot-action-card a { display: inline-flex; margin-top: 10px; color: #17694d; font-size: 9px; font-weight: 850; text-decoration: none; }
.indicator-chart-status-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.indicator-chart-status-row > div { padding: 9px 10px; border: 1px solid rgba(78,103,93,.12); border-radius: 10px; background: rgba(255,255,255,.75); }
.indicator-chart-status-row span, .indicator-chart-status-row strong { display: block; }
.indicator-chart-status-row span { color: #7b8883; font-size: 7px; font-weight: 850; text-transform: uppercase; letter-spacing: .07em; }
.indicator-chart-status-row strong { margin-top: 5px; overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.source-chart-bullish { border-color: rgba(25,119,85,.25); background: linear-gradient(145deg, #fbfefc, #edf7f2); }
.source-chart-bearish { border-color: rgba(184,75,66,.22); background: linear-gradient(145deg, #fffdfd, #faefee); }
.source-chart-neutral { border-color: rgba(212,154,54,.25); background: linear-gradient(145deg, #fffefa, #fbf4e7); }
.signal-text-bullish { color: #197755; }
.signal-text-bearish { color: #b84b42; }
.signal-text-neutral { color: #a56c12; }
.signal-text-pending { color: #77847e; }
.indicator-method-note { display: grid; grid-template-columns: auto 1fr; gap: 7px 12px; padding: 13px 15px; border-top: 1px solid #e2e8e4; color: #69766f; font-size: 9px; }
.indicator-method-note span { color: #84908b; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.indicator-method-note strong { color: #465c53; }

@media (max-width: 1020px) {
  .indicator-strategy-hero { grid-template-columns: 1fr; }
  .indicator-decision-card > summary { grid-template-columns: 40px minmax(0, 1fr) 145px; }
  .indicator-summary-value { grid-column: 2; grid-row: 2; padding: 7px 0 0; border: 0; }
  .indicator-visual-reading { grid-column: 3; grid-row: 1 / span 2; }
}
@media (max-width: 760px) {
  .indicator-view-toolbar { position: static; align-items: stretch; flex-direction: column; }
  .indicator-expand-group { justify-content: flex-end; }
  .indicator-decision-card > summary { grid-template-columns: 35px minmax(0, 1fr); }
  .indicator-summary-value, .indicator-visual-reading { grid-column: 2; grid-row: auto; }
  .indicator-visual-reading { margin-top: 5px; }
  .indicator-evidence-strip, .indicator-chart-status-row { grid-template-columns: repeat(2, 1fr); }
  .indicator-bot-analysis { grid-template-columns: 1fr; }
  .indicator-bot-analysis .bot-analysis-lead, .indicator-bot-analysis .bot-action-card { grid-column: auto; }
  .indicator-bot-analysis .bot-analysis-lead { padding-right: 17px; }
  .indicator-force-counts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .indicator-strategy-hero { padding: 19px; border-radius: 17px; }
  .indicator-force-panel { padding: 14px; }
  .indicator-filter-group { display: grid; grid-template-columns: repeat(2, 1fr); }
  .indicator-filter { border-radius: 11px; }
  .indicator-evidence-strip, .indicator-chart-status-row { grid-template-columns: 1fr; }
  .indicator-chart-heading { align-items: flex-start; flex-direction: column; }
  .source-chart-meta { align-items: flex-start; text-align: left; }
  .indicator-chart-foot { align-items: flex-start; flex-direction: column; }
}
/* v0.8.5 · Aplicación instalable PWA */
.pwa-install-surface {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  margin: 8px 12px 0;
  padding: 9px;
  border: 1px solid rgba(114,208,165,.2);
  border-radius: 13px;
  background: rgba(255,255,255,.055);
}
.pwa-install-surface[hidden], .pwa-install-compact[hidden] { display: none !important; }
.pwa-install-surface img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.pwa-install-surface span, .pwa-install-surface strong, .pwa-install-surface small { display: block; min-width: 0; }
.pwa-install-surface strong { overflow: hidden; color: #f2f7f4; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.pwa-install-surface small { margin-top: 2px; color: rgba(223,239,232,.56); font-size: 7px; }
.pwa-install-surface button,
.pwa-install-compact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(25,119,85,.24);
  border-radius: 999px;
  color: #126348;
  background: #edf8f2;
  cursor: pointer;
  font-size: 8px;
  font-weight: 850;
  white-space: nowrap;
}
.pwa-install-surface button { padding: 6px 8px; }
.pwa-install-compact { min-height: 34px; padding: 7px 11px; }
.pwa-install-compact:hover { border-color: #197755; color: #fff; background: #197755; }
.module-hub .pwa-install-compact { border-color: rgba(117,212,170,.24); color: #ccebdd; background: rgba(32,111,82,.25); }
.module-hub .pwa-install-compact:hover { border-color: rgba(117,212,170,.55); color: #fff; background: rgba(36,134,96,.48); }
.pwa-network-banner {
  position: fixed;
  z-index: 10000;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: auto auto;
  gap: 1px 8px;
  align-items: center;
  max-width: min(430px, calc(100vw - 24px));
  padding: 11px 15px;
  border: 1px solid rgba(234,190,99,.34);
  border-radius: 14px;
  color: #f8f3e7;
  background: rgba(17,44,35,.96);
  box-shadow: 0 16px 38px rgba(0,0,0,.28);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 22px);
  transition: opacity .25s ease, transform .25s ease;
}
.pwa-network-banner.is-visible { opacity: 1; transform: translate(-50%, 0); }
.pwa-network-banner > span { grid-row: 1 / span 2; width: 9px; height: 9px; border-radius: 50%; background: #e4b44d; box-shadow: 0 0 0 5px rgba(228,180,77,.13); }
.pwa-network-banner strong { font-size: 10px; }
.pwa-network-banner small { grid-column: 2; color: rgba(244,244,237,.68); font-size: 8px; }
.pwa-offline-body {
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 24px;
  place-items: center;
  color: #eff7f3;
  background: radial-gradient(circle at 50% 18%, rgba(41,145,105,.28), transparent 34%), linear-gradient(145deg, #061a14, #0b3428 65%, #10251d);
}
.pwa-offline-card { width: min(520px, 100%); padding: clamp(28px, 6vw, 52px); border: 1px solid rgba(135,211,177,.18); border-radius: 26px; background: rgba(7,29,22,.76); box-shadow: 0 26px 70px rgba(0,0,0,.28); text-align: center; }
.pwa-offline-card img { width: 92px; height: 92px; margin-bottom: 20px; border-radius: 23px; box-shadow: 0 14px 36px rgba(0,0,0,.3); }
.pwa-offline-card .eyebrow { color: #88d2b1; }
.pwa-offline-card h1 { margin: 12px 0 10px; font-family: Georgia, serif; font-size: clamp(32px, 7vw, 50px); font-weight: 500; }
.pwa-offline-card p { margin: 0 auto 23px; color: rgba(237,246,241,.7); font-size: 13px; line-height: 1.7; }
.pwa-offline-card .primary-button { display: inline-flex; text-decoration: none; }
.pwa-offline-card > small { display: block; margin-top: 20px; color: rgba(225,240,233,.5); font-size: 9px; }
.pwa-standalone .topbar { padding-top: max(0px, env(safe-area-inset-top)); }
.pwa-standalone .application-footer { padding-bottom: max(0px, env(safe-area-inset-bottom)); }

@media (max-width: 760px) {
  .topbar-account-area .pwa-install-compact { width: 34px; padding: 7px; font-size: 0; }
  .topbar-account-area .pwa-install-compact svg { width: 16px; height: 16px; }
  .module-hub-account .pwa-install-compact { width: auto; padding: 7px 10px; font-size: 8px; }
}

@media (display-mode: standalone) {
  html { background: #071d16; }
}

body.logout-arrival-pending .auth-v062,
body.logout-arrival-pending .public-footer {
  opacity: 0 !important;
  visibility: hidden;
}

@media (scripting: none) {
  body.logout-arrival-pending .auth-v062,
  body.logout-arrival-pending .public-footer {
    opacity: 1 !important;
    visibility: visible;
  }
}
/* ============================================================
   v0.7.5 · Informe de decisión ANASUR
   ============================================================ */
.decision-report-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 36px;
  align-items: end;
  overflow: hidden;
  padding: clamp(28px, 4vw, 54px);
  border: 1px solid rgba(222, 181, 93, .24);
  border-radius: 26px;
  color: #f6f4ec;
  background:
    radial-gradient(circle at 78% 26%, rgba(216, 169, 70, .2), transparent 28%),
    radial-gradient(circle at 90% 92%, rgba(36, 147, 111, .2), transparent 32%),
    linear-gradient(125deg, #071d16 0%, #0a2a20 58%, #162519 100%);
  box-shadow: 0 28px 65px rgba(20, 48, 39, .16);
}
.decision-report-hero::before,
.decision-report-hero::after {
  content: "";
  position: absolute;
  right: 15%;
  top: 50%;
  width: 310px;
  height: 310px;
  border: 1px solid rgba(222, 181, 93, .17);
  border-radius: 50%;
  transform: translate(50%, -50%);
  animation: decisionOrbit 18s linear infinite;
}
.decision-report-hero::after { width: 210px; height: 210px; animation-direction: reverse; animation-duration: 13s; }
@keyframes decisionOrbit { to { transform: translate(50%, -50%) rotate(360deg); } }
.decision-report-hero > * { position: relative; z-index: 1; }
.decision-report-hero h1 { max-width: 720px; margin: 14px 0 10px; font-family: Georgia, serif; font-size: clamp(38px, 5vw, 70px); font-weight: 500; line-height: .98; letter-spacing: -.045em; }
.decision-report-hero p { max-width: 800px; margin: 0; color: rgba(244, 247, 244, .73); font-size: 15px; line-height: 1.7; }
.decision-report-hero-actions { display: grid; min-width: 220px; gap: 14px; }
.decision-score-badge { display: grid; grid-template-columns: 1fr auto; gap: 3px 16px; padding: 16px 18px; border: 1px solid rgba(255,255,255,.14); border-radius: 17px; background: rgba(255,255,255,.08); backdrop-filter: blur(12px); }
.decision-score-badge small { grid-column: 1 / -1; color: rgba(255,255,255,.58); text-transform: uppercase; font-size: 9px; font-weight: 800; letter-spacing: .13em; }
.decision-score-badge strong { font-family: Georgia, serif; font-size: 30px; font-weight: 500; }
.decision-score-badge em { align-self: center; font-style: normal; font-weight: 800; }
.decision-score-badge.positive em { color: #63d2a8; }
.decision-score-badge.negative em { color: #ef907f; }
.decision-score-badge.neutral em { color: #f3c969; }

.decision-action-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 18px 0; }
.decision-action-card { position: relative; min-height: 180px; overflow: hidden; padding: 24px; border: 1px solid #dfe7e2; border-radius: 20px; background: #fff; box-shadow: 0 14px 32px rgba(26, 63, 51, .06); }
.decision-action-card::after { content: ""; position: absolute; right: -36px; bottom: -52px; width: 132px; height: 132px; border-radius: 50%; background: currentColor; opacity: .07; }
.decision-action-card > span { color: #77847f; text-transform: uppercase; font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.decision-action-card h2 { margin: 12px 0 8px; color: #15241f; font-family: Georgia, serif; font-size: 27px; font-weight: 500; }
.decision-action-card p { margin: 0; color: #60706a; font-size: 12px; line-height: 1.65; }
.decision-action-card.bullish { color: #168765; border-color: rgba(22,135,101,.25); background: linear-gradient(145deg, #fff, #f1fbf7); }
.decision-action-card.bearish { color: #b94f40; border-color: rgba(185,79,64,.25); background: linear-gradient(145deg, #fff, #fff5f2); }
.decision-action-card.neutral { color: #b27b18; border-color: rgba(178,123,24,.25); background: linear-gradient(145deg, #fff, #fffaed); }
.decision-action-card.coverage { color: #426b88; background: linear-gradient(145deg, #fff, #f2f7fb); }

.decision-chart-panel,
.decision-evidence-panel,
.decision-level-map,
.decision-scenario-panel,
.decision-validation-grid > article,
.decision-method-note,
.decision-oscillator-panel { border: 1px solid #dce6e0; border-radius: 22px; background: rgba(255,255,255,.94); box-shadow: 0 18px 40px rgba(24, 61, 49, .055); }
.decision-chart-panel { padding: clamp(20px, 3vw, 32px); }
.decision-section-heading { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; margin-bottom: 18px; }
.decision-section-heading h2,
.decision-level-map h2,
.decision-scenario-panel h2,
.decision-validation-grid h2,
.decision-oscillator-panel h2,
.decision-method-note h2 { margin: 5px 0 6px; color: #17251f; font-family: Georgia, serif; font-size: clamp(24px, 2.5vw, 34px); font-weight: 500; letter-spacing: -.025em; }
.decision-section-heading p,
.decision-level-map header p,
.decision-scenario-panel header p { margin: 0; color: #71807b; font-size: 11px; }
.decision-section-heading > a { color: #7b591b; font-size: 11px; font-weight: 800; }
.decision-chart-legend { display: flex; flex-wrap: wrap; gap: 14px; color: #64736d; font-size: 10px; font-weight: 700; }
.decision-chart-legend span::before { content: ""; display: inline-block; width: 18px; height: 3px; margin-right: 6px; border-radius: 3px; vertical-align: middle; background: #168765; }
.decision-chart-legend .ma20::before { background: #d29b34; }
.decision-chart-legend .ma40::before { background: #3f75a1; }
.decision-chart-legend .ma200::before { background: #7d668e; }
.decision-main-chart-wrap { min-height: 350px; overflow-x: auto; border: 1px solid #e5ebe7; border-radius: 17px; background: linear-gradient(180deg, #fbfdfc, #f5f9f7); }
.decision-main-chart { display: block; width: 100%; min-width: 720px; height: auto; }
.chart-gridline { stroke: #dfe7e3; stroke-width: 1; }
.chart-axis-label { fill: #77857f; font: 10px system-ui, sans-serif; }
.decision-price-area { fill: url(#decision-price-fill); }
.decision-series-line { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.1; vector-effect: non-scaling-stroke; stroke-dasharray: 2600; stroke-dashoffset: 2600; animation: decisionLineDraw 1.7s cubic-bezier(.22,.76,.32,1) forwards; }
.decision-series-line.price { stroke: #168765; stroke-width: 2.8; }
.decision-series-line.sma20 { stroke: #d29b34; }
.decision-series-line.sma40 { stroke: #3f75a1; }
.decision-series-line.sma200 { stroke: #7d668e; }
.decision-series-line.rsi { stroke: #168765; stroke-width: 2.2; }
@keyframes decisionLineDraw { to { stroke-dashoffset: 0; } }
.decision-level-line { stroke-width: 1; stroke-dasharray: 5 5; }
.decision-level-line.resistance { stroke: rgba(185,79,64,.62); }
.decision-level-line.support { stroke: rgba(22,135,101,.62); }
.decision-level-label { font: 800 9px system-ui, sans-serif; letter-spacing: .04em; }
.decision-level-label.resistance { fill: #a2483b; }
.decision-level-label.support { fill: #147457; }
.decision-hitpoint { fill: transparent; cursor: crosshair; }
.decision-hitpoint:hover { fill: rgba(22,135,101,.28); }
.decision-candle-wick { stroke-width: 1; vector-effect: non-scaling-stroke; }
.decision-candle-wick.rising { stroke: #168765; }
.decision-candle-wick.falling { stroke: #b94f40; }
.decision-candle-body.rising { fill: rgba(22,135,101,.72); }
.decision-candle-body.falling { fill: rgba(185,79,64,.72); }
.decision-chart-footer { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 16px 5px 0; color: #6f7d78; font-size: 10px; }
.decision-chart-footer strong { color: #17251f; }
.decision-empty-chart { display: grid; min-height: 300px; place-content: center; text-align: center; color: #68766f; }
.decision-empty-chart strong { color: #17251f; font-family: Georgia, serif; font-size: 26px; }

.decision-technical-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 18px 0; }
.decision-oscillator-panel { padding: 22px; }
.decision-oscillator-panel header { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.decision-oscillator-panel header > strong { color: #17251f; font-family: Georgia, serif; font-size: 28px; font-weight: 500; }
.decision-oscillator-panel svg { display: block; width: 100%; height: 136px; margin-top: 4px; }
.decision-oscillator-panel > p { margin: 5px 0 0; color: #74817c; font-size: 10px; }
.rsi-neutral-zone { fill: rgba(210,155,52,.08); }
.macd-bar.positive { fill: #2b9b77; }
.macd-bar.negative { fill: #ca6657; }
.decision-small-empty { display: grid; min-height: 110px; place-content: center; color: #7d8a85; text-align: center; }

.decision-evidence-panel { padding: clamp(20px, 3vw, 30px); }
.decision-evidence-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.decision-evidence-card { display: flex; min-height: 285px; flex-direction: column; padding: 18px; border: 1px solid #e2e9e5; border-radius: 16px; background: #fbfcfb; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.decision-evidence-card:hover { transform: translateY(-3px); border-color: #bed4ca; box-shadow: 0 14px 25px rgba(20,59,46,.08); }
.decision-evidence-card > header { display: flex; align-items: center; justify-content: space-between; }
.decision-evidence-card > header span { color: #7d8984; text-transform: uppercase; font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.decision-evidence-card > header strong { font-family: Georgia, serif; font-size: 23px; font-weight: 500; }
.decision-evidence-card.positive > header strong { color: #168765; }
.decision-evidence-card.negative > header strong { color: #b94f40; }
.decision-evidence-card.neutral > header strong { color: #b27b18; }
.decision-evidence-card h3 { margin: 9px 0 3px; color: #17251f; font-family: Georgia, serif; font-size: 21px; font-weight: 500; }
.evidence-value { margin: 0; color: #4d5f58; font-size: 11px; font-weight: 700; }
.evidence-sparkline { display: block; width: 100%; height: 54px; margin: 14px 0 8px; overflow: visible; }
.evidence-sparkline path { fill: none; stroke: #28775e; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.decision-evidence-card.negative .evidence-sparkline path { stroke: #b94f40; }
.evidence-no-series { display: grid; height: 54px; margin: 14px 0 8px; place-content: center; border-radius: 8px; color: #88938f; background: #f0f4f2; font-size: 9px; }
.evidence-note { flex: 1; margin: 7px 0 14px; color: #6b7974; font-size: 10px; line-height: 1.55; }
.decision-evidence-card footer { display: flex; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid #e5ebe8; color: #85908c; font-size: 8px; }
.decision-evidence-card footer a { max-width: 52%; color: #76561d; font-weight: 800; text-align: right; }

.decision-map-grid { display: grid; grid-template-columns: minmax(330px, .8fr) minmax(0, 1.2fr); gap: 16px; margin: 18px 0; }
.decision-level-map,
.decision-scenario-panel { padding: clamp(20px, 3vw, 28px); }
.level-map-list { margin-top: 18px; }
.level-map-row { display: grid; grid-template-columns: 62px 86px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 12px; border-bottom: 1px solid #e6ece8; }
.level-map-row span { font-size: 9px; font-weight: 900; }
.level-map-row strong { color: #17251f; font-family: Georgia, serif; font-size: 18px; font-weight: 500; }
.level-map-row p { margin: 0; color: #72807b; font-size: 9px; }
.level-map-row.resistance span { color: #b94f40; }
.level-map-row.support span { color: #168765; }
.level-map-row.current { margin: 4px 0; border: 0; border-radius: 10px; color: #fff; background: #112c22; }
.level-map-row.current strong,
.level-map-row.current p { color: #fff; }
.scenario-stack { display: grid; gap: 10px; margin-top: 18px; }
.scenario-card { padding: 16px; border: 1px solid #e1e8e4; border-radius: 14px; background: #fafcfb; }
.scenario-card.principal { border-color: #caa253; box-shadow: inset 3px 0 #caa253; }
.scenario-card > header { display: flex; justify-content: space-between; gap: 10px; }
.scenario-card > header strong { color: #17251f; font-family: Georgia, serif; font-size: 19px; font-weight: 500; }
.scenario-card > header span { color: #8b6b2e; text-transform: uppercase; font-size: 8px; font-weight: 900; letter-spacing: .1em; }
.scenario-card dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0 0; }
.scenario-card dl div { padding-top: 9px; border-top: 1px solid #e4eae7; }
.scenario-card dt { color: #8a9691; text-transform: uppercase; font-size: 7px; font-weight: 800; letter-spacing: .09em; }
.scenario-card dd { margin: 4px 0 0; color: #55665f; font-size: 9px; line-height: 1.5; }

.decision-validation-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 18px 0; }
.decision-validation-grid > article { padding: 22px; }
.decision-validation-grid h2 { font-size: 24px; }
.decision-validation-grid ul { display: grid; gap: 8px; margin: 15px 0 0; padding: 0; list-style: none; }
.decision-validation-grid li { display: grid; gap: 3px; padding: 10px 0; border-top: 1px solid #e6ebe8; }
.decision-validation-grid li strong { color: #20302a; font-size: 10px; }
.decision-validation-grid li span { color: #6f7c77; font-size: 9px; line-height: 1.45; }
.decision-validation-grid .invalidation { border-color: rgba(185,79,64,.24); background: linear-gradient(145deg, #fff, #fff8f5); }
.decision-validation-grid .invalidation p { color: #53635d; font-size: 11px; line-height: 1.65; }
.decision-validation-grid .invalidation small { color: #9a6a60; font-size: 9px; }
.decision-method-note { display: grid; grid-template-columns: .6fr 1.4fr; gap: 30px; align-items: start; padding: 26px; }
.decision-method-note ul { display: grid; gap: 8px; margin: 0; padding-left: 18px; color: #61716a; font-size: 10px; line-height: 1.6; }

@media (max-width: 1120px) {
  .decision-report-hero { grid-template-columns: 1fr; }
  .decision-report-hero-actions { grid-template-columns: minmax(0, 280px) minmax(0, 260px); }
  .decision-evidence-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .decision-map-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .decision-report-hero { padding: 26px 20px; }
  .decision-report-hero-actions,
  .decision-action-grid,
  .decision-technical-grid,
  .decision-evidence-grid,
  .decision-validation-grid,
  .decision-method-note { grid-template-columns: 1fr; }
  .decision-section-heading { display: grid; }
  .decision-chart-legend { order: 2; }
  .scenario-card dl { grid-template-columns: 1fr; }
  .level-map-row { grid-template-columns: 48px 74px minmax(0, 1fr); padding-inline: 5px; }
  .decision-main-chart-wrap { min-height: 280px; }
}
@media (prefers-reduced-motion: reduce) {
  .decision-report-hero::before,
  .decision-report-hero::after,
  .decision-series-line { animation: none; stroke-dashoffset: 0; }
}

/* v0.8.5 · Alto visual real y acceso siempre visible en aplicación móvil */
@media (max-width: 720px) {
  html:has(body.public-body .auth-v062),
  body.public-body:has(.auth-v062) {
    width: 100%;
    height: var(--app-viewport-height, 100dvh);
    min-height: var(--app-viewport-height, 100dvh);
    max-height: var(--app-viewport-height, 100dvh);
  }
  .auth-v062 {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: var(--app-viewport-height, 100dvh) !important;
    min-height: var(--app-viewport-height, 100dvh) !important;
    max-height: var(--app-viewport-height, 100dvh) !important;
    padding: 0;
  }
  .auth-v062 .auth-experience {
    position: absolute;
    inset: 0;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }
  .auth-v062 .auth-experience-head {
    padding: max(18px, env(safe-area-inset-top)) 19px 18px;
  }
  .auth-v062 .auth-experience-head img { width: 148px; }
  .auth-v062 .auth-live-pill { padding: 7px 9px; font-size: 7px; }
  .auth-v062 .auth-experience-copy {
    top: clamp(104px, 15.5vh, 132px);
    left: 20px;
    width: calc(100% - 40px);
  }
  .auth-v062 .auth-experience-copy h1 {
    max-width: 360px;
    margin-top: 8px;
    font-size: clamp(29px, 8.6vw, 37px);
    line-height: .99;
  }
  .auth-v062 { --mobile-drawer-height: min(552px, calc(var(--app-viewport-height, 100dvh) - 96px - env(safe-area-inset-bottom))); }
  .auth-v062 .auth-access-drawer {
    position: fixed;
    right: 11px;
    bottom: calc(11px + env(safe-area-inset-bottom));
    left: 11px;
    width: auto;
    max-width: none;
    height: var(--mobile-drawer-height);
    max-height: var(--mobile-drawer-height);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .auth-drawer-tab {
    position: fixed;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom)) !important;
    width: 128px;
    min-height: 50px;
  }
  .auth-v062.access-open .auth-drawer-tab {
    right: 18px;
    bottom: calc(var(--mobile-drawer-height) + 18px + env(safe-area-inset-bottom)) !important;
  }
  .auth-v062.access-open { --access-core-shift-y: -24px; }
}

@media (max-width: 720px) and (max-height: 700px) {
  .auth-v062 .auth-experience-copy { top: 91px; }
  .auth-v062 .auth-experience-copy h1 { max-width: 330px; font-size: 28px; }
  .auth-v062 .auth-live-pill { display: none; }
}

/* v0.8.6 · SIGFE Oferta, exportación y cierre */
.sigfe-page-hero,
.sigfe-operation-header {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  overflow: hidden;
  margin-bottom: 24px;
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid rgba(18, 80, 60, .14);
  border-radius: 28px;
  background:
    radial-gradient(circle at 84% 18%, rgba(222, 178, 78, .22), transparent 28%),
    linear-gradient(135deg, #073b2e 0%, #0b4f3c 56%, #0d2d25 100%);
  color: #fff;
  box-shadow: 0 24px 50px rgba(4, 42, 31, .16);
}
.sigfe-page-hero::after,
.sigfe-operation-header::after {
  position: absolute;
  right: -80px;
  bottom: -140px;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  content: "";
}
.sigfe-page-hero > *, .sigfe-operation-header > * { position: relative; z-index: 1; }
.sigfe-page-hero h1, .sigfe-operation-header h1 {
  margin: 12px 0 14px;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 5vw, 66px);
  font-weight: 500;
  line-height: .94;
  letter-spacing: -.045em;
}
.sigfe-page-hero h1 em { color: #e8c86f; font-weight: 400; }
.sigfe-page-hero p, .sigfe-operation-header p { max-width: 760px; margin: 0; color: rgba(255,255,255,.76); line-height: 1.65; }
.sigfe-operations-hero .sigfe-primary-action { flex: 0 0 auto; }
.sigfe-operation-list { margin-top: 24px; }
.sigfe-operations-table th:last-child,
.sigfe-operations-table td:last-child { text-align: right; }
.sigfe-stage-badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 7px 10px;
  border: 1px solid rgba(15, 83, 63, .13);
  border-radius: 999px;
  background: #eef5f1;
  color: #155d48;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .035em;
  text-transform: uppercase;
  white-space: nowrap;
}
.sigfe-stage-badge.stage-export { border-color: rgba(169, 119, 13, .2); background: #fff6df; color: #8a6109; }
.sigfe-stage-badge.stage-closed { border-color: rgba(24, 110, 75, .2); background: #dff4e8; color: #11603f; }
.sigfe-work-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  background: #0b4f3c;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.sigfe-work-link:hover { background: #073b2e; color: #fff; transform: translateY(-1px); }
.commercial-offer-ready-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: 10px; }
.sigfe-quote-list article .sigfe-work-link { align-self: center; }
.sigfe-breadcrumb { display: flex; align-items: center; gap: 9px; margin: 2px 0 16px; color: #738078; font-size: 12px; }
.sigfe-breadcrumb a { color: #0b654d; font-weight: 800; }
.sigfe-operation-header { align-items: center; }
.sigfe-operation-header h1 { font-family: inherit; font-size: clamp(28px, 4vw, 48px); font-weight: 800; letter-spacing: -.035em; }
.sigfe-operation-market-lock {
  display: grid;
  min-width: min(100%, 280px);
  gap: 4px;
  padding: 18px 20px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(12px);
}
.sigfe-operation-market-lock span { color: rgba(255,255,255,.6); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.sigfe-operation-market-lock strong { color: #f0d37d; font-size: 26px; }
.sigfe-operation-market-lock small { color: rgba(255,255,255,.72); }
.sigfe-operation-snapshot {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.sigfe-operation-snapshot article {
  display: grid;
  gap: 5px;
  padding: 18px;
  border: 1px solid #e3e8e5;
  border-radius: 16px;
  background: #fff;
}
.sigfe-operation-snapshot span { color: #77827c; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.sigfe-operation-snapshot strong { color: #123d31; font-size: 18px; }
.sigfe-operation-snapshot small { color: #849089; }
.sigfe-operation-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, .75fr);
  align-items: start;
  gap: 20px;
}
.sigfe-finance-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.sigfe-finance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sigfe-check-field {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #dfe7e2;
  border-radius: 13px;
  background: #f8fbf9;
}
.sigfe-check-field input { flex: 0 0 auto; width: 20px !important; height: 20px; margin: 0; accent-color: #0b654d; }
.sigfe-check-field span { display: grid; gap: 3px; }
.sigfe-check-field strong { color: #1c4237; font-size: 12px; }
.sigfe-check-field small { color: #77837d; line-height: 1.35; }
.sigfe-save-analysis { width: 100%; margin-top: 18px; }
.sigfe-finance-results {
  position: sticky;
  top: 92px;
  padding: 24px;
  border: 1px solid rgba(12, 73, 55, .14);
  border-radius: 22px;
  background: linear-gradient(180deg, #fbfdfc, #f1f7f4);
  box-shadow: 0 18px 42px rgba(7, 55, 41, .09);
}
.sigfe-tax-warning { margin-bottom: 14px; padding: 13px 14px; border: 1px solid #edcf89; border-radius: 13px; background: #fff8e8; color: #72520a; }
.sigfe-tax-warning strong { font-size: 12px; }
.sigfe-tax-warning p { margin: 4px 0 0; font-size: 11px; line-height: 1.45; }
.sigfe-result-ledger { display: grid; gap: 7px; }
.sigfe-result-ledger article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 12px;
  padding: 11px 0;
  border-bottom: 1px solid #e1e8e4;
}
.sigfe-result-ledger article > span { color: #65716b; font-size: 11px; }
.sigfe-result-ledger article > strong { color: #183e33; font-size: 14px; text-align: right; }
.sigfe-result-ledger article > small { grid-column: 1 / -1; color: #89938e; font-size: 10px; line-height: 1.4; }
.sigfe-result-ledger .sigfe-result-primary { margin-top: 6px; padding: 15px; border: 0; border-radius: 14px; background: #0b4f3c; }
.sigfe-result-ledger .sigfe-result-primary span,
.sigfe-result-ledger .sigfe-result-primary small { color: rgba(255,255,255,.72); }
.sigfe-result-ledger .sigfe-result-primary strong { color: #f1d47b; font-size: 20px; }
.sigfe-accounting-panel { margin-top: 20px; }
.sigfe-accounting-table th:nth-child(4), .sigfe-accounting-table td:nth-child(4) { text-align: right; white-space: nowrap; }
.sigfe-tax-sources { margin-top: 20px; padding: 18px; border: 1px solid #dfe7e2; border-radius: 16px; background: #f8fbf9; }
.sigfe-tax-sources strong { color: #1a493b; }
.sigfe-tax-sources p { margin: 6px 0 12px; color: #66736c; font-size: 12px; line-height: 1.55; }
.sigfe-tax-sources span { display: flex; flex-wrap: wrap; gap: 8px; }
.sigfe-tax-sources a { padding: 7px 10px; border-radius: 999px; background: #e7f1ec; color: #0b654d; font-size: 10px; font-weight: 800; }

@media (max-width: 1120px) {
  .sigfe-operation-workspace { grid-template-columns: 1fr; }
  .sigfe-finance-results { position: static; }
  .sigfe-operation-snapshot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .sigfe-page-hero, .sigfe-operation-header { align-items: flex-start; flex-direction: column; padding: 26px 22px; border-radius: 22px; }
  .sigfe-operations-hero .sigfe-primary-action { width: 100%; justify-content: center; }
  .sigfe-operation-market-lock { width: 100%; }
  .sigfe-operation-snapshot, .sigfe-finance-grid { grid-template-columns: 1fr; }
  .sigfe-finance-results, .sigfe-finance-form, .sigfe-accounting-panel { padding: 18px; }
  .commercial-offer-ready-actions { width: 100%; }
  .commercial-offer-ready-actions > * { width: 100%; justify-content: center; }
}

/* v0.8.14 · Advertencias sin citas, cuarentena total y recuperación sin nueva búsqueda */
.commercial-agent {
  position: relative;
  overflow: hidden;
  margin: 24px 0;
  padding: clamp(22px, 3.2vw, 38px);
  border: 1px solid rgba(120, 174, 208, .22);
  border-radius: 28px;
  background:
    radial-gradient(circle at 93% 6%, rgba(95, 170, 216, .18), transparent 26%),
    radial-gradient(circle at 10% 110%, rgba(205, 163, 73, .13), transparent 31%),
    linear-gradient(145deg, #071b21 0%, #0a2c2a 56%, #09251e 100%);
  color: #fff;
  box-shadow: 0 28px 66px rgba(3, 35, 31, .22);
}
.commercial-agent::after {
  position: absolute;
  right: -96px;
  top: -108px;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}
.commercial-agent > * { position: relative; z-index: 1; }
.commercial-agent-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
}
.commercial-agent-head > div:first-child { max-width: 760px; }
.commercial-agent-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #a9d5eb;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.commercial-agent-kicker i { width: 7px; height: 7px; border-radius: 50%; background: #73bce3; box-shadow: 0 0 0 5px rgba(115,188,227,.1), 0 0 18px rgba(115,188,227,.62); }
.commercial-agent-head h2 { margin: 12px 0 10px; color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: clamp(34px, 4.4vw, 58px); font-weight: 500; letter-spacing: -.04em; }
.commercial-agent-head p { max-width: 720px; margin: 0; color: rgba(255,255,255,.69); font-size: 13px; line-height: 1.65; }
.commercial-agent-counters { display: grid; min-width: 390px; grid-template-columns: repeat(4, 1fr); overflow: hidden; border: 1px solid rgba(255,255,255,.1); border-radius: 18px; background: rgba(255,255,255,.055); backdrop-filter: blur(12px); }
.commercial-agent-counters > span { display: grid; min-height: 92px; place-content: center; gap: 4px; padding: 13px; border-left: 1px solid rgba(255,255,255,.08); text-align: center; }
.commercial-agent-counters > span:first-child { border-left: 0; }
.commercial-agent-counters small { color: rgba(255,255,255,.52); font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.commercial-agent-counters strong { color: #f0d27e; font-size: 28px; }

.commercial-agent-status-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 26px 0 16px; }
.commercial-agent-status-grid article { display: grid; gap: 5px; padding: 16px 18px; border: 1px solid rgba(255,255,255,.09); border-radius: 15px; background: rgba(255,255,255,.045); }
.commercial-agent-status-grid article > span { color: rgba(255,255,255,.48); font-size: 8px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.commercial-agent-status-grid article > strong { display: flex; align-items: center; gap: 8px; color: #edf7f3; font-size: 12px; }
.commercial-agent-status-grid article > strong i { width: 7px; height: 7px; border-radius: 50%; background: #cf9b38; box-shadow: 0 0 0 4px rgba(207,155,56,.08); }
.commercial-agent-status-grid article.is-ready > strong i { background: #45c791; box-shadow: 0 0 0 4px rgba(69,199,145,.09); }
.commercial-agent-status-grid article.is-running > strong i { background: #efc65e; box-shadow: 0 0 0 4px rgba(239,198,94,.12); animation: commercialResearchPulse 1.4s ease-in-out infinite; }
.commercial-agent-status-grid article.is-locked > strong i { background: #7bb9dc; box-shadow: 0 0 0 4px rgba(123,185,220,.09); }
.commercial-agent-status-grid article > small { color: rgba(255,255,255,.6); font-size: 9px; line-height: 1.45; }

.commercial-research-progress { display: flex; align-items: center; gap: 13px; margin: -4px 0 16px; padding: 13px 16px; border: 1px solid rgba(239,198,94,.2); border-radius: 14px; background: rgba(239,198,94,.08); }
.commercial-research-progress > div { display: grid; gap: 3px; }
.commercial-research-progress strong { color: #f4dda3; font-size: 11px; }
.commercial-research-progress small { color: rgba(255,255,255,.6); font-size: 9px; line-height: 1.45; }
.commercial-research-spinner { width: 22px; height: 22px; flex: 0 0 auto; border: 2px solid rgba(239,198,94,.22); border-top-color: #efc65e; border-radius: 50%; animation: commercialResearchSpin .9s linear infinite; }
@keyframes commercialResearchSpin { to { transform: rotate(360deg); } }
@keyframes commercialResearchPulse { 50% { opacity: .45; transform: scale(.78); } }

.commercial-agent-tools { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr); gap: 14px; }
.commercial-agent-research-form,
.commercial-seed-card { padding: 22px; border: 1px solid rgba(255,255,255,.1); border-radius: 20px; background: rgba(255,255,255,.06); }
.commercial-agent-research-form header span,
.commercial-seed-card > span,
.commercial-findings > header span { color: #83bddd; font-size: 8px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.commercial-agent-research-form h3,
.commercial-seed-card h3,
.commercial-findings > header h3 { margin: 5px 0 15px; color: #fff; font-size: 20px; }
.commercial-agent-research-form > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.commercial-agent-research-form label { display: grid; gap: 6px; color: rgba(255,255,255,.65); font-size: 9px; font-weight: 750; }
.commercial-agent-research-form label.wide { grid-column: 1 / -1; }
.commercial-agent-research-form input,
.commercial-agent-research-form select,
.commercial-agent-research-form textarea { width: 100%; border: 1px solid rgba(255,255,255,.12); border-radius: 11px; outline: 0; background: rgba(0,0,0,.18); color: #fff; }
.commercial-agent-research-form input,
.commercial-agent-research-form select { min-height: 43px; padding: 0 12px; }
.commercial-agent-research-form textarea { min-height: 88px; padding: 11px 12px; resize: vertical; }
.commercial-agent-research-form input:focus,
.commercial-agent-research-form select:focus,
.commercial-agent-research-form textarea:focus { border-color: rgba(116,188,227,.72); box-shadow: 0 0 0 3px rgba(116,188,227,.09); }
.commercial-agent-research-form option { color: #14231f; }
.commercial-agent-research-form > button,
.commercial-seed-card button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; margin-top: 13px; padding: 0 16px; border: 0; border-radius: 12px; background: #dfb552; color: #10251f; font-size: 10px; font-weight: 900; cursor: pointer; }
.commercial-agent-research-form > button:hover,
.commercial-seed-card button:hover { transform: translateY(-1px); background: #edc96f; }
.commercial-agent-research-form > button:disabled { opacity: .42; cursor: not-allowed; transform: none; }
.commercial-agent-research-form > small { display: block; margin-top: 11px; color: rgba(255,255,255,.48); font-size: 8px; line-height: 1.5; }
.commercial-seed-card { display: flex; flex-direction: column; }
.commercial-seed-card h3 { margin-top: 6px; font-family: Georgia, "Times New Roman", serif; font-size: 25px; font-weight: 500; }
.commercial-seed-card p { margin: 0; color: rgba(255,255,255,.68); font-size: 10px; line-height: 1.65; }
.commercial-seed-card p strong { color: #efcd7d; }
.commercial-seed-card ul { display: grid; gap: 8px; margin: 18px 0; padding: 0; list-style: none; }
.commercial-seed-card li { position: relative; padding-left: 16px; color: rgba(255,255,255,.6); font-size: 9px; line-height: 1.4; }
.commercial-seed-card li::before { position: absolute; left: 0; color: #6ac99e; content: "✓"; }
.commercial-seed-card form { margin-top: auto; }
.commercial-seed-card button { width: 100%; margin: 0; background: rgba(117,186,221,.15); color: #c9e5f4; border: 1px solid rgba(117,186,221,.25); }

.commercial-findings { margin-top: 16px; padding: 22px; border: 1px solid rgba(255,255,255,.09); border-radius: 22px; background: rgba(0,0,0,.13); }
.commercial-findings > header { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.commercial-findings > header h3 { margin-bottom: 0; }
.commercial-findings > header > small { color: rgba(255,255,255,.48); font-size: 9px; }
.commercial-agent-empty { display: grid; gap: 5px; margin-top: 15px; padding: 20px; border: 1px dashed rgba(255,255,255,.12); border-radius: 15px; text-align: center; }
.commercial-agent-empty strong { color: #e8f4ef; font-size: 13px; }
.commercial-agent-empty span { color: rgba(255,255,255,.52); font-size: 9px; }
.commercial-finding-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.commercial-finding { display: flex; min-width: 0; flex-direction: column; padding: 18px; border: 1px solid rgba(255,255,255,.1); border-radius: 17px; background: rgba(255,255,255,.055); }
.commercial-finding.status-protected { border-color: rgba(218,103,86,.28); background: rgba(105,32,28,.18); }
.commercial-finding.status-duplicate { opacity: .77; }
.commercial-finding > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.commercial-finding > header span { color: #80bada; font-size: 8px; font-weight: 850; text-transform: uppercase; }
.commercial-finding h4 { margin: 5px 0 4px; color: #fff; font-size: 18px; }
.commercial-finding > header small { color: rgba(255,255,255,.5); font-size: 9px; }
.commercial-finding-score { display: flex; align-items: baseline; color: #f0d27e; }
.commercial-finding-score strong { font-size: 27px; }
.commercial-finding-score span { color: rgba(255,255,255,.4); font-size: 8px; }
.commercial-finding-state { width: max-content; margin: 13px 0 6px; padding: 5px 8px; border-radius: 999px; background: rgba(78,197,145,.11); color: #80d8b1; font-size: 7px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.status-protected .commercial-finding-state { background: rgba(220,96,79,.13); color: #f0a69a; }
.status-duplicate .commercial-finding-state { background: rgba(255,255,255,.08); color: rgba(255,255,255,.63); }
.commercial-finding > p { margin: 9px 0 0; color: rgba(255,255,255,.66); font-size: 9px; line-height: 1.58; }
.commercial-finding > p strong { display: block; margin-bottom: 3px; color: rgba(255,255,255,.9); font-size: 8px; letter-spacing: .05em; text-transform: uppercase; }
.commercial-finding > p.commercial-finding-risk { color: #e8bd7b; }
.commercial-finding > footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; }
.commercial-finding-sources { display: flex; flex-wrap: wrap; gap: 6px; }
.commercial-finding-sources a { padding: 5px 7px; border-radius: 8px; background: rgba(116,188,227,.1); color: #9fd0ea; font-size: 7px; font-weight: 800; }
.commercial-finding-actions { display: flex; gap: 6px; }
.commercial-finding-actions form { margin: 0; }
.commercial-finding-actions button { min-height: 32px; padding: 0 10px; border: 1px solid rgba(255,255,255,.13); border-radius: 9px; background: rgba(255,255,255,.08); color: #fff; font-size: 8px; font-weight: 850; cursor: pointer; }
.commercial-finding-actions form:first-child button { border-color: rgba(69,199,145,.24); background: rgba(69,199,145,.13); color: #9ce3c3; }
.commercial-quarantine { margin-top: 15px; padding: 14px 16px; border: 1px solid rgba(232,189,123,.22); border-radius: 15px; background: rgba(106,72,28,.12); }
.commercial-quarantine > summary { color: #e8bd7b; font-size: 9px; font-weight: 850; cursor: pointer; }
.commercial-quarantine > p { margin: 9px 0 0; color: rgba(255,255,255,.56); font-size: 8px; line-height: 1.55; }
.commercial-quarantine-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; margin-top: 12px; }
.commercial-quarantine-grid article { padding: 13px; border: 1px solid rgba(232,189,123,.16); border-radius: 12px; background: rgba(0,0,0,.13); }
.commercial-quarantine-grid article header > span { color: #e8bd7b; font-size: 7px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.commercial-quarantine-grid h4 { margin: 4px 0 3px; color: #fff; font-size: 15px; }
.commercial-quarantine-grid header small,.commercial-quarantine-grid article > small { color: rgba(255,255,255,.45); font-size: 7px; overflow-wrap: anywhere; }
.commercial-quarantine-grid p { margin: 8px 0 0; color: rgba(255,255,255,.62); font-size: 8px; line-height: 1.5; }
.commercial-quarantine-grid p strong { display: block; margin-bottom: 2px; color: rgba(255,255,255,.86); font-size: 7px; text-transform: uppercase; }
.commercial-ai-history { margin-top: 14px; border-top: 1px solid rgba(255,255,255,.08); }
.commercial-ai-history summary { padding: 14px 0 0; color: #9ccce4; font-size: 9px; font-weight: 800; cursor: pointer; }
.commercial-ai-history > div { display: grid; gap: 7px; margin-top: 10px; }
.commercial-ai-history article { display: grid; grid-template-columns: 140px 210px minmax(0,1fr); gap: 12px; color: rgba(255,255,255,.52); font-size: 8px; }
.commercial-ai-history article strong { color: rgba(255,255,255,.78); }
.commercial-ai-history article.is-running small { color: #efd187; }
.commercial-ai-history .commercial-run-warning { color: #e8bd7b; }
.commercial-draft-form { margin: 0; }
.commercial-draft-form button { border-color: rgba(66,134,177,.24) !important; background: #e9f4fa !important; color: #266585 !important; }

.commercial-email-center { margin: 22px 0; padding: clamp(22px, 3vw, 32px); border: 1px solid #d9e5df; border-radius: 24px; background: linear-gradient(145deg, #f9fcfa, #eef6f2); box-shadow: 0 18px 45px rgba(7,55,41,.08); }
.commercial-email-center > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.commercial-email-center > header > div { max-width: 760px; }
.commercial-email-center > header span { color: #2d8067; font-size: 8px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.commercial-email-center > header h2 { margin: 6px 0 8px; color: #163c31; font-family: Georgia, "Times New Roman", serif; font-size: clamp(28px, 3vw, 40px); font-weight: 500; }
.commercial-email-center > header p { margin: 0; color: #687870; font-size: 11px; line-height: 1.6; }
.commercial-email-center > header form { flex: 0 0 auto; }
.commercial-email-center > header button { min-height: 40px; padding: 0 13px; border: 1px solid #c7dcd2; border-radius: 11px; background: #fff; color: #17644e; font-size: 9px; font-weight: 850; cursor: pointer; }
.commercial-email-setup { display: flex; align-items: center; gap: 14px; margin-top: 17px; padding: 14px 16px; border: 1px solid #e7cc8c; border-radius: 13px; background: #fff8e9; }
.commercial-email-setup strong { color: #805f17; font-size: 11px; }
.commercial-email-setup span { color: #836f41; font-size: 9px; line-height: 1.5; }
.commercial-email-center .commercial-agent-empty { border-color: #d6e3dd; color: #345d50; }
.commercial-email-center .commercial-agent-empty strong { color: #244b3f; }
.commercial-email-center .commercial-agent-empty span { color: #718179; }
.commercial-email-list { display: grid; gap: 12px; margin-top: 16px; }
.commercial-email-list > article { padding: 18px; border: 1px solid #dfe8e3; border-radius: 16px; background: #fff; }
.commercial-email-list > article.status-approved { border-color: #d8b65d; box-shadow: inset 4px 0 #d8b65d; }
.commercial-email-list > article.status-sent { opacity: .78; }
.commercial-email-list > article > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.commercial-email-list > article > header span { color: #728179; font-size: 8px; font-weight: 800; }
.commercial-email-list > article > header h3 { margin: 5px 0 0; color: #1b4639; font-size: 16px; }
.commercial-email-list > article > header > strong { padding: 6px 9px; border-radius: 999px; background: #e7f3ed; color: #17644e; font-size: 7px; letter-spacing: .08em; text-transform: uppercase; }
.commercial-email-list pre { max-height: 260px; overflow: auto; margin: 14px 0; padding: 14px; border: 1px solid #e4ebe7; border-radius: 12px; background: #f8faf9; color: #43534d; font: 10px/1.62 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; }
.commercial-email-list > article > footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.commercial-email-list > article > footer small { color: #839089; font-size: 8px; }
.commercial-email-list > article > footer > div { display: flex; gap: 7px; }
.commercial-email-list > article > footer form { margin: 0; }
.commercial-email-list > article > footer button { min-height: 34px; padding: 0 11px; border: 1px solid #d6e1db; border-radius: 9px; background: #fff; color: #52635c; font-size: 8px; font-weight: 850; cursor: pointer; }
.commercial-email-list > article > footer form:first-child button { border-color: #14674e; background: #14674e; color: #fff; }
.commercial-email-list > article > footer button:disabled { opacity: .42; cursor: not-allowed; }
.commercial-email-warning { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: #fff5de; color: #7d5d16; font-size: 9px; }

.commercial-sent-review { margin: 22px 0; padding: clamp(22px, 3vw, 32px); border: 1px solid rgba(40,111,88,.25); border-radius: 26px; background: linear-gradient(145deg, #0b3027 0%, #113f35 58%, #123a42 100%); box-shadow: 0 22px 55px rgba(5,38,30,.18); color: #eaf7f1; }
.commercial-sent-review > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.commercial-sent-review > header > div { max-width: 800px; }
.commercial-sent-review > header span { color: #82d9ba; font-size: 8px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.commercial-sent-review > header h2 { margin: 6px 0 8px; color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: clamp(29px, 3vw, 42px); font-weight: 500; }
.commercial-sent-review > header p { margin: 0; color: #b9d3ca; font-size: 10px; line-height: 1.65; }
.commercial-sent-review > header form { flex: 0 0 auto; }
.commercial-sent-review > header button { min-height: 42px; padding: 0 15px; border: 1px solid rgba(118,218,182,.42); border-radius: 11px; background: #d7ae52; color: #102b23; font-size: 9px; font-weight: 900; cursor: pointer; }
.commercial-sent-review button:disabled { opacity: .42; cursor: not-allowed; }
.commercial-sent-status-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }
.commercial-sent-status-grid article { min-height: 86px; padding: 15px; border: 1px solid rgba(159,213,194,.18); border-radius: 14px; background: rgba(255,255,255,.055); }
.commercial-sent-status-grid article > span { display: block; color: #91ada3; font-size: 7px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.commercial-sent-status-grid article strong { display: flex; align-items: center; gap: 7px; margin: 7px 0 5px; color: #edf9f4; font-size: 10px; }
.commercial-sent-status-grid article strong i { width: 7px; height: 7px; border-radius: 50%; background: #54d7a5; box-shadow: 0 0 0 4px rgba(84,215,165,.12); }
.commercial-sent-status-grid article.is-pending strong i { background: #dfb14f; box-shadow: 0 0 0 4px rgba(223,177,79,.12); }
.commercial-sent-status-grid article.is-locked strong i { background: #76bddd; box-shadow: 0 0 0 4px rgba(118,189,221,.12); }
.commercial-sent-status-grid article small { color: #93aea4; font-size: 8px; line-height: 1.5; }
.commercial-sent-review .commercial-email-setup { border-color: rgba(229,183,83,.35); background: rgba(229,183,83,.1); }
.commercial-sent-review .commercial-email-setup strong { color: #f3c866; }
.commercial-sent-review .commercial-email-setup span { color: #d7c28e; }
.commercial-sent-privacy { margin: 14px 0 0; color: #92aea3; font-size: 8px; line-height: 1.6; }
.commercial-sent-privacy strong { color: #73d8b2; }
.commercial-sent-review .commercial-agent-empty { margin-top: 18px; border-color: rgba(150,204,185,.18); color: #9bb9ae; }
.commercial-sent-review .commercial-agent-empty strong { color: #e9f6f1; }
.commercial-sent-list { display: grid; gap: 14px; margin-top: 18px; }
.commercial-sent-list > article { padding: 18px; border: 1px solid rgba(161,207,191,.2); border-radius: 17px; background: rgba(5,33,26,.38); }
.commercial-sent-list > article.status-completed { border-color: rgba(84,215,165,.35); }
.commercial-sent-list > article.status-failed { border-color: rgba(226,127,100,.35); }
.commercial-sent-list > article > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.commercial-sent-list > article > header span { color: #8eaea2; font-size: 8px; line-height: 1.45; letter-spacing: 0; text-transform: none; }
.commercial-sent-list > article > header h3 { margin: 5px 0 0; color: #fff; font-size: 15px; }
.commercial-sent-list > article > header > strong { padding: 6px 9px; border-radius: 999px; background: rgba(84,215,165,.12); color: #82e0bd; font-size: 7px; letter-spacing: .08em; text-transform: uppercase; }
.commercial-sent-running { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px; border-radius: 11px; background: rgba(118,189,221,.08); color: #b8d8e4; font-size: 9px; }
.commercial-sent-running i { width: 14px; height: 14px; border: 2px solid rgba(118,189,221,.2); border-top-color: #76bddd; border-radius: 50%; animation: commercial-spin .8s linear infinite; }
.commercial-sent-score-row { display: grid; grid-template-columns: 90px 1fr; gap: 16px; margin-top: 16px; }
.commercial-sent-score-row > div { display: flex; align-items: baseline; justify-content: center; padding: 14px; border: 1px solid rgba(226,180,78,.28); border-radius: 14px; background: rgba(226,180,78,.08); }
.commercial-sent-score-row > div strong { color: #f0c768; font: 500 31px/1 Georgia, serif; }
.commercial-sent-score-row > div span { color: #c9a755; font-size: 8px; }
.commercial-sent-score-row p { margin: 0; padding: 12px 0; }
.commercial-sent-score-row p strong, .commercial-sent-score-row p span { display: block; }
.commercial-sent-score-row p strong { color: #eff9f5; font-size: 11px; }
.commercial-sent-score-row p span { margin-top: 5px; color: #a9c1b8; font-size: 9px; line-height: 1.6; }
.commercial-sent-score-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; margin-top: 10px; }
.commercial-sent-score-grid span { padding: 9px; border: 1px solid rgba(157,199,184,.15); border-radius: 9px; color: #8ea99f; font-size: 7px; }
.commercial-sent-score-grid strong { display: block; margin-top: 3px; color: #d9ece5; font-size: 10px; }
.commercial-sent-analysis-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.commercial-sent-analysis-grid section { padding: 13px; border: 1px solid rgba(157,199,184,.14); border-radius: 11px; background: rgba(255,255,255,.025); }
.commercial-sent-analysis-grid section > span { color: #72d5b0; font-size: 7px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.commercial-sent-analysis-grid ul { margin: 9px 0 0; padding-left: 16px; color: #b3c9c0; font-size: 8px; line-height: 1.6; }
.commercial-sent-analysis-grid p { margin: 9px 0 0; color: #b3c9c0; font-size: 8px; line-height: 1.6; }
.commercial-sent-analysis-grid p strong { display: block; margin-bottom: 4px; color: #e4f2ed; }
.commercial-sent-improved { margin-top: 14px; padding: 12px 14px; border: 1px solid rgba(157,199,184,.17); border-radius: 11px; }
.commercial-sent-improved summary { color: #83dabb; font-size: 9px; font-weight: 850; cursor: pointer; }
.commercial-sent-improved h4 { margin: 13px 0 9px; color: #fff; font-size: 11px; }
.commercial-sent-improved > span { display: block; margin-top: 10px; color: #8aa99e; font-size: 7px; font-weight: 850; text-transform: uppercase; }
.commercial-sent-improved pre { max-height: 300px; overflow: auto; margin: 6px 0 0; padding: 13px; border: 1px solid rgba(157,199,184,.13); border-radius: 9px; background: rgba(0,0,0,.13); color: #d6e7e1; font: 9px/1.62 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; }
.commercial-sent-list > article > footer { margin-top: 12px; color: #809d92; font-size: 8px; }
.commercial-sent-evaluate-form { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 15px; padding-top: 14px; border-top: 1px solid rgba(157,199,184,.14); }
.commercial-sent-evaluate-form label { display: flex; align-items: flex-start; gap: 8px; max-width: 760px; color: #9db6ad; font-size: 8px; line-height: 1.55; }
.commercial-sent-evaluate-form input { margin-top: 2px; accent-color: #d7ae52; }
.commercial-sent-evaluate-form button { flex: 0 0 auto; min-height: 38px; padding: 0 13px; border: 1px solid #d7ae52; border-radius: 9px; background: #d7ae52; color: #102b23; font-size: 8px; font-weight: 900; cursor: pointer; }
.commercial-inbound-review { margin-top: 18px; }
.commercial-inbound-link { display:flex; align-items:center; justify-content:space-between; gap:14px; margin:0 0 12px; padding:10px 12px; border:1px solid rgba(157,199,184,.15); border-radius:10px; background:rgba(255,255,255,.025); }
.commercial-inbound-link strong,.commercial-inbound-link span { display:block; }
.commercial-inbound-link strong { color:#dcece6; font-size:8px; }
.commercial-inbound-link span { color:#8eaaa0; font-size:8px; }
.commercial-inbound-link.is-linked { border-color:rgba(84,215,165,.28); }
.commercial-inbound-link.is-unlinked { border-color:rgba(226,180,78,.28); }
.commercial-inbound-decisions { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px; margin-top:12px; padding:11px; border:1px solid rgba(84,215,165,.2); border-radius:11px; background:rgba(84,215,165,.045); }
.commercial-inbound-decisions form { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.commercial-inbound-decisions label,.commercial-inbound-decisions span { color:#9fb9af; font-size:8px; }
.commercial-inbound-decisions select { min-height:34px; padding:0 9px; border:1px solid rgba(157,199,184,.2); border-radius:8px; background:#123c30; color:#e6f3ee; font-size:8px; }
.commercial-inbound-decisions button { min-height:34px; padding:0 10px; border:1px solid #55c99e; border-radius:8px; background:#55c99e; color:#0b2b21; font-size:8px; font-weight:900; cursor:pointer; }

/* Motor Comercial v0.9.0: navegación por tareas, misiones y correspondencia progresiva. */
.commercial-view-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 18px 0; padding: 7px; border: 1px solid #d9e4de; border-radius: 18px; background: rgba(255,255,255,.9); box-shadow: 0 12px 34px rgba(6,49,37,.08); }
.commercial-view-nav button { position: relative; display: grid; grid-template-columns: 28px 1fr; grid-template-rows: auto auto; column-gap: 9px; align-items: center; min-height: 58px; padding: 10px 12px; border: 0; border-radius: 13px; background: transparent; color: #62736c; text-align: left; cursor: pointer; transition: background .18s ease, color .18s ease, transform .18s ease; }
.commercial-view-nav button:hover { background: #eef5f1; transform: translateY(-1px); }
.commercial-view-nav button > span { grid-row: 1 / 3; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: #edf4f0; color: #28745d; font-size: 8px; font-weight: 900; }
.commercial-view-nav button > strong { align-self: end; color: #1a483a; font-size: 10px; }
.commercial-view-nav button > small { align-self: start; margin-top: 2px; color: #87958f; font-size: 7px; }
.commercial-view-nav button.is-active { background: linear-gradient(135deg, #0c3a2e, #12483b); box-shadow: 0 8px 20px rgba(7,55,41,.18); color: #fff; }
.commercial-view-nav button.is-active > span { background: rgba(105,216,173,.14); color: #75dab5; }
.commercial-view-nav button.is-active > strong { color: #fff; }
.commercial-view-nav button.is-active > small { color: #a9c8bc; }
.commercial-view-panel { animation: commercial-view-enter .24s ease both; }
.commercial-view-panel[hidden] { display: none !important; }
.commercial-view-panel[data-commercial-view="correspondence"] { display: flex; flex-direction: column; }
.commercial-view-panel[data-commercial-view="correspondence"] .commercial-email-center { order: 1; }
.commercial-view-panel[data-commercial-view="correspondence"] .commercial-sent-review { order: 2; }
@keyframes commercial-view-enter { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

.commercial-sent-status-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 16px; }
.commercial-sent-status-grid article { min-height: 72px; padding: 12px 14px; }
.commercial-sent-list { gap: 8px; }
.commercial-sent-list > article { padding: 0; overflow: clip; }
.commercial-sent-item > summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 66px; padding: 13px 16px; list-style: none; cursor: pointer; }
.commercial-sent-item > summary::-webkit-details-marker { display: none; }
.commercial-sent-item > summary:hover { background: rgba(255,255,255,.035); }
.commercial-sent-item-copy { display: block; min-width: 0; }
.commercial-sent-item-copy small, .commercial-sent-item-copy strong { display: block; }
.commercial-sent-item-copy small { overflow: hidden; color: #8eaea2; font-size: 8px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.commercial-sent-item-copy strong { overflow: hidden; margin-top: 5px; color: #f1faf6; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.commercial-sent-item-state { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; }
.commercial-sent-item-state > strong { padding: 6px 9px; border-radius: 999px; background: rgba(84,215,165,.12); color: #82e0bd; font-size: 7px; letter-spacing: .08em; text-transform: uppercase; }
.commercial-sent-item-state > b { color: #f0c768; font: 500 22px/1 Georgia, serif; }
.commercial-sent-item-state > b small { color: #aa9562; font: 700 7px/1 sans-serif; }
.commercial-sent-item-state > i { color: #7ea99a; font: normal 14px/1 sans-serif; transition: transform .18s ease; }
.commercial-sent-item[open] .commercial-sent-item-state > i { transform: rotate(180deg); }
.commercial-sent-item-body { padding: 0 16px 16px; border-top: 1px solid rgba(157,199,184,.12); }
.commercial-sent-item-body > .commercial-sent-score-row,
.commercial-sent-item-body > .commercial-sent-running,
.commercial-sent-item-body > .commercial-email-warning { margin-top: 16px; }
.commercial-sent-evaluate-form input[type="checkbox"] { appearance: auto; flex: 0 0 16px; width: 16px; height: 16px; min-height: 0; padding: 0; }
.commercial-email-roadmap { display: flex; align-items: flex-start; gap: 14px; margin-top: 14px; padding: 11px 13px; border: 1px solid rgba(118,189,221,.22); border-radius: 11px; background: rgba(118,189,221,.07); }
.commercial-email-roadmap strong { flex: 0 0 auto; color: #9ed7eb; font-size: 8px; }
.commercial-email-roadmap span { color: #99b7ad; font-size: 8px; line-height: 1.55; }

@media (max-width: 880px) {
  .commercial-view-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .commercial-sent-review > header, .commercial-sent-evaluate-form { align-items: stretch; flex-direction: column; }
  .commercial-sent-review > header form, .commercial-sent-review > header button, .commercial-sent-evaluate-form button { width: 100%; }
  .commercial-sent-status-grid, .commercial-sent-analysis-grid { grid-template-columns: 1fr; }
  .commercial-sent-score-grid { grid-template-columns: repeat(2, 1fr); }
  .commercial-sent-score-row { grid-template-columns: 1fr; }
}

@media (max-width: 1080px) {
  .commercial-agent-head { display: grid; }
  .commercial-agent-counters { min-width: 0; width: min(100%, 440px); }
  .commercial-agent-tools { grid-template-columns: 1fr; }
  .commercial-finding-grid { grid-template-columns: 1fr; }
  .commercial-quarantine-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .commercial-agent { padding: 20px 15px; border-radius: 22px; }
  .commercial-agent-head h2 { font-size: 36px; }
  .commercial-agent-counters { width: 100%; }
  .commercial-agent-status-grid,
  .commercial-agent-research-form > div { grid-template-columns: 1fr; }
  .commercial-agent-research-form label.wide { grid-column: auto; }
  .commercial-agent-research-form,
  .commercial-seed-card,
  .commercial-findings { padding: 17px; }
  .commercial-findings > header,
  .commercial-finding > footer,
  .commercial-email-center > header,
  .commercial-email-list > article > footer { align-items: stretch; flex-direction: column; }
  .commercial-ai-history article { grid-template-columns: 1fr; gap: 3px; }
  .commercial-email-center { padding: 19px 15px; border-radius: 20px; }
  .commercial-email-center > header form,
  .commercial-email-center > header button { width: 100%; }
  .commercial-email-list > article { padding: 15px; }
  .commercial-email-list > article > footer > div { width: 100%; }
  .commercial-email-list > article > footer form,
  .commercial-email-list > article > footer button { flex: 1; width: 100%; }
  .commercial-email-setup { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .commercial-agent-status-grid article.is-running > strong i,
  .commercial-research-spinner { animation: none; }
}

/* Inteligencia v0.8.19: lectura especialista, bandas, clima y diferenciales. */
.specialist-brief { margin: 0 0 18px; padding: 26px; overflow: hidden; border: 1px solid #17483a; border-radius: 8px; background: #0b2c22; color: #edf6f2; box-shadow: 0 15px 38px rgba(9,39,30,.14); }
.specialist-brief-heading { display: grid; grid-template-columns: minmax(0,1fr) 190px; gap: 28px; align-items: end; }
.specialist-brief .dashboard-kicker { color: #d7b45e; }
.specialist-brief-heading h2 { margin: 8px 0 8px; color: #fff; font-family: Georgia,serif; font-size: 30px; font-weight: 500; letter-spacing: 0; }
.specialist-brief-heading p { max-width: 900px; margin: 0; color: #b7ccc3; font-size: 11px; line-height: 1.65; }
.specialist-confidence { padding: 14px; border: 1px solid rgba(255,255,255,.13); border-radius: 8px; background: rgba(255,255,255,.045); }
.specialist-confidence span,.specialist-confidence strong { display: block; }
.specialist-confidence span { color: #9eb8ad; font-size: 8px; font-weight: 800; }
.specialist-confidence strong { margin: 5px 0 9px; color: #fff; font-size: 22px; }
.specialist-confidence > i { display: block; height: 4px; overflow: hidden; border-radius: 4px; background: rgba(255,255,255,.12); }
.specialist-confidence > i b { display: block; height: 100%; background: #62c49e; }
.specialist-confidence.confidence-medium > i b { background: #d3a844; }
.specialist-confidence.confidence-low > i b { background: #c86654; }
.specialist-reading-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; margin-top: 20px; }
.specialist-reading { min-height: 146px; padding: 16px; border: 1px solid rgba(255,255,255,.1); border-radius: 8px; background: rgba(255,255,255,.035); }
.specialist-reading > span { display: block; color: #d7b45e; font-size: 8px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.specialist-reading p { margin: 9px 0 0; color: #c7d8d1; font-size: 9px; line-height: 1.66; }
.specialist-technical { border-top-color: #5e91ac; }
.specialist-fundamental { border-top-color: #62b592; }
.specialist-weather { border-top-color: #b99b54; }
.specialist-differentials { border-top-color: #b86b5d; }
.specialist-decision-strip { display: grid; grid-template-columns: 1.15fr .9fr auto; gap: 18px; align-items: center; margin-top: 10px; padding: 16px; border-top: 1px solid rgba(255,255,255,.12); background: rgba(0,0,0,.08); }
.specialist-decision-strip span,.specialist-decision-strip strong { display: block; }
.specialist-decision-strip span { color: #91aca1; font-size: 7px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.specialist-decision-strip strong { margin-top: 4px; color: #f2cb6e; font-size: 13px; }
.specialist-decision-strip p { margin: 5px 0 0; color: #b6cbc2; font-size: 8px; line-height: 1.55; }
.specialist-decision-strip > a { min-height: 38px; padding: 12px 14px; border: 1px solid #d7b45e; border-radius: 8px; color: #f3d584; font-size: 8px; font-weight: 900; text-decoration: none; white-space: nowrap; }

.coffee-chart-legend,.differential-chart-legend { display: flex; flex-wrap: wrap; gap: 11px 16px; margin: 9px 2px 0; color: #66766f; font-size: 8px; font-weight: 750; }
.coffee-chart-legend span::before,.differential-chart-legend span::before { display: inline-block; width: 16px; height: 3px; margin-right: 6px; border-radius: 3px; background: #197755; vertical-align: middle; content: ""; }
.coffee-chart-legend .bollinger::before { height: 7px; background: rgba(76,122,151,.25); border-top: 1px dashed #5c87a3; border-bottom: 1px dashed #5c87a3; }
.coffee-chart-legend .ma20::before { background: #d49a36; }
.coffee-chart-legend .ma40::before { background: #466d8a; }
.coffee-chart-legend .ma200::before { background: #8f4f63; }
.coffee-chart-legend .support::before { height: 1px; border-top: 1px dashed #197755; background: transparent; }
.coffee-chart-legend .resistance::before { height: 1px; border-top: 1px dashed #b84b42; background: transparent; }
.market-technical-strip { grid-template-columns: repeat(6,minmax(72px,1fr)) minmax(170px,1.4fr); }
.decision-chart-legend .bollinger::before { height: 7px; border-top: 1px dashed #5c87a3; border-bottom: 1px dashed #5c87a3; background: rgba(76,122,151,.2); }
.decision-bollinger-band { fill: rgba(76,122,151,.11); }
.decision-bollinger-line { fill: none; stroke: #5c87a3; stroke-width: 1.2; stroke-dasharray: 5 5; }

.intelligence-context-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 14px; margin: 0 0 20px; }
.weather-intelligence-panel,.differential-intelligence-panel { min-width: 0; overflow: hidden; border: 1px solid #d9e4de; border-radius: 8px; background: #fff; box-shadow: 0 12px 30px rgba(19,54,42,.06); }
.context-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 20px 20px 13px; }
.context-panel-heading h2 { margin: 5px 0 4px; color: #1a332a; font-family: Georgia,serif; font-size: 22px; font-weight: 500; letter-spacing: 0; }
.context-panel-heading p { margin: 0; color: #71807a; font-size: 9px; line-height: 1.5; }
.weather-layer-control { display: inline-flex; flex: 0 0 auto; overflow: hidden; border: 1px solid #cfdcd5; border-radius: 6px; background: #fff; }
.weather-layer-control button { min-height: 36px; padding: 0 11px; border: 0; border-right: 1px solid #dce4e0; background: #fff; color: #5e7068; font-size: 9px; font-weight: 850; cursor: pointer; }
.weather-layer-control button:last-child { border-right: 0; }
.weather-layer-control button:hover { color: #176c4e; }
.weather-layer-control button.active { background: #174f3e; color: #fff; }
.weather-layer-control button:focus-visible { position: relative; outline: 2px solid #61caa0; outline-offset: -3px; }
.weather-map-layout { display: grid; grid-template-columns: minmax(430px,1.75fr) minmax(255px,.62fr); gap: 12px; padding: 0 20px 16px; }
.weather-map-stage { min-height: 470px; overflow: hidden; border: 1px solid #183d33; border-radius: 8px; background: #0b211b; box-shadow: inset 0 0 70px rgba(2,14,11,.5); }
.weather-map-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 8px 10px 8px 14px; border-bottom: 1px solid rgba(220,241,232,.12); background: rgba(4,22,17,.9); color: #dfeee8; }
.weather-map-toolbar > span { display: grid; grid-template-columns: 8px auto; gap: 1px 7px; align-items: center; }
.weather-map-toolbar > span i { grid-row: 1 / span 2; width: 7px; height: 7px; border-radius: 50%; background: #48d49b; box-shadow: 0 0 0 5px rgba(72,212,155,.09); }
.weather-map-toolbar b { font-size: 10px; }
.weather-map-toolbar small { color: #87a99b; font-size: 8px; }
.weather-map-zoom { display: inline-flex; overflow: hidden; border: 1px solid rgba(214,237,228,.2); border-radius: 6px; }
.weather-map-zoom button { display: grid; width: 34px; height: 32px; place-items: center; padding: 0; border: 0; border-right: 1px solid rgba(214,237,228,.16); background: rgba(255,255,255,.05); color: #dcece5; cursor: pointer; }
.weather-map-zoom button:last-child { border-right: 0; }
.weather-map-zoom button:hover { background: rgba(255,255,255,.12); }
.weather-map-zoom button:focus-visible { outline: 2px solid #58d0a0; outline-offset: -3px; }
.weather-map-zoom svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.weather-map-stage .weather-map-graphic { display: block; width: 100%; height: 390px; cursor: grab; touch-action: pan-y; user-select: none; }
.weather-map-stage .weather-map-graphic.is-dragging { cursor: grabbing; }
.weather-map-graphic:focus-visible { outline: 2px solid #58d0a0; outline-offset: -2px; }
.weather-map-ocean { fill: #0c2924; }
.weather-map-grid path { fill: none; stroke: rgba(182,219,204,.08); stroke-width: .25; }
.weather-country { fill: #28463d; stroke: #69847a; stroke-width: .22; vector-effect: non-scaling-stroke; transition: fill .2s ease,opacity .2s ease; }
.weather-country-col,.weather-country-bra { fill: #355b4e; }
.weather-map-contours path { fill: none; stroke: rgba(197,225,214,.13); stroke-width: .35; stroke-dasharray: 1.2 2.2; }
.map-country-label { fill: rgba(221,239,231,.62); font: 750 2.7px Inter,Arial,sans-serif; letter-spacing: .12em; }
.weather-map-point { cursor: pointer; outline: none; }
.weather-heat-field { opacity: .55; mix-blend-mode: screen; transition: fill .25s ease,r .25s ease,opacity .25s ease; }
.weather-heat-halo { opacity: .28; transition: fill .25s ease,r .25s ease; }
.weather-heat-core { stroke: #fff; stroke-width: .65; transition: fill .25s ease,r .2s ease; }
.weather-map-point:hover .weather-heat-core,.weather-map-point:focus .weather-heat-core,.weather-map-point.is-active .weather-heat-core { r: 2.5px; }
.weather-map-point.is-active .weather-heat-halo { stroke: rgba(255,255,255,.72); stroke-width: .55; }
.weather-map-leader { stroke: rgba(225,241,234,.5); stroke-width: .28; stroke-dasharray: .7 .8; }
.weather-map-chip rect { fill: rgba(3,18,14,.9); stroke: rgba(224,240,233,.35); stroke-width: .25; }
.weather-map-value { fill: #fff; font: 850 2.6px Inter,Arial,sans-serif; letter-spacing: 0; }
.weather-wind-vector { display: none; fill: none; stroke: #b8edff; stroke-width: .72; stroke-linecap: round; stroke-dasharray: 2.5 2.2; opacity: .9; animation: weatherWindFlow var(--wind-duration,1.5s) linear infinite; }
.weather-intelligence-panel[data-weather-layer="wind"] .weather-wind-vector { display: block; }
.weather-intelligence-panel[data-weather-layer="wind"] .weather-heat-field { opacity: .22; }
@keyframes weatherWindFlow { to { stroke-dashoffset: -9.4; } }
@media (prefers-reduced-motion: reduce) { .weather-wind-vector { animation: none; stroke-dashoffset: 0; } }
.weather-map-legend { display: grid; grid-template-columns: auto 1fr auto; gap: 9px; align-items: center; min-height: 31px; padding: 0 12px; border-top: 1px solid rgba(220,241,232,.1); color: #9bb8ad; font-size: 8px; }
.weather-map-legend i { height: 5px; border-radius: 5px; background: linear-gradient(90deg,#6b5aa7,#4f7fb6,#4d9b83,#d0a23c,#d26643); }
.weather-intelligence-panel[data-weather-layer="rainfall"] .weather-map-legend i { background: linear-gradient(90deg,#be5c45,#d39a44,#4e9b83,#4a83ad); }
.weather-intelligence-panel[data-weather-layer="wind"] .weather-map-legend i { background: linear-gradient(90deg,#5986a5,#65b5c6,#b8edff); }
.weather-intelligence-panel[data-weather-layer="risk"] .weather-map-legend i { background: linear-gradient(90deg,#248262,#d1a13c,#b84b42); }
.weather-region-list { display: grid; align-content: start; max-height: 470px; overflow: auto; border: 1px solid #e0e7e3; border-radius: 8px; background: #fbfcfb; }
.weather-region-list article { padding: 12px 13px; border-bottom: 1px solid #e1e8e4; background: transparent; cursor: pointer; transition: background .15s ease,box-shadow .15s ease; }
.weather-region-list article:last-child { border-bottom: 0; }
.weather-region-list article:hover,.weather-region-list article:focus,.weather-region-list article.is-active { background: #f0f7f3; outline: none; box-shadow: inset 3px 0 #2b9270; }
.weather-region-list header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.weather-region-list header strong { overflow: hidden; color: #29463a; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.weather-risk-badge { padding: 4px 6px; border-radius: 8px; background: #e7f3ed; color: #1d7255; font-size: 8px; font-weight: 900; }
.weather-risk-badge.tone-watch { background: #fff3da; color: #895e13; }
.weather-risk-badge.tone-high { background: #fae6e2; color: #983e35; }
.weather-region-list dl { display: grid; grid-template-columns: repeat(2,1fr); gap: 7px; margin: 9px 0 0; }
.weather-region-list dl div { min-width: 0; }
.weather-region-list dt { color: #87948f; font-size: 8px; }
.weather-region-list dd { margin: 2px 0 0; color: #2d453b; font-size: 9px; font-weight: 800; }
.context-panel-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 43px; padding: 10px 20px; border-top: 1px solid #e1e8e4; background: #f8faf9; color: #74827c; font-size: 9px; }
.context-panel-footer a { color: #176c4e; font-weight: 850; text-decoration: none; }
.context-panel-sources { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px 14px; }
.context-empty-state { min-height: 300px; display: grid; place-content: center; padding: 30px; color: #71807a; text-align: center; }
.context-empty-state strong { color: #2a463a; font-size: 13px; }
.context-empty-state p { max-width: 340px; margin: 7px 0 0; font-size: 9px; line-height: 1.55; }

.differential-series-picker { display: grid; gap: 5px; color: #74817b; font-size: 9px; font-weight: 850; }
.differential-series-picker select { min-width: 165px; min-height: 35px; padding: 0 9px; border: 1px solid #d9e3de; border-radius: 8px; background: #fff; color: #28443a; font-size: 10px; }
.differential-summary-strip { display: grid; grid-template-columns: repeat(3,1fr); margin: 0 20px 10px; border: 1px solid #e0e7e3; border-radius: 8px; background: #f8faf9; }
.differential-summary-strip > div { min-width: 0; padding: 10px; border-right: 1px solid #e0e7e3; }
.differential-summary-strip > div:last-child { border-right: 0; }
.differential-summary-strip span,.differential-summary-strip strong,.differential-summary-strip small { display: block; }
.differential-summary-strip span { color: #7d8a84; font-size: 8px; font-weight: 850; text-transform: uppercase; }
.differential-summary-strip strong { margin-top: 5px; color: #244137; font-size: 14px; }
.differential-summary-strip small { margin-top: 2px; overflow: hidden; color: #8b9792; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.differential-chart-wrap { position: relative; min-height: 300px; margin: 0 20px; }
.differential-context-chart { display: block; width: 100%; min-height: 290px; }
.differential-chart-legend { margin: 3px 20px 13px; }
.differential-intelligence-panel .differential-chart-legend { font-size: 9px; }
.differential-chart-legend .range::before { height: 7px; background: rgba(212,161,61,.2); border-top: 1px solid #d4a13d; border-bottom: 1px solid #d4a13d; }

@media (max-width: 1180px) {
  .specialist-reading-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .intelligence-context-grid { grid-template-columns: 1fr; }
  .market-technical-strip { grid-template-columns: repeat(4,1fr); }
}
@media (max-width: 820px) {
  .specialist-brief { padding: 20px 15px; }
  .specialist-brief-heading { grid-template-columns: 1fr; }
  .specialist-confidence { width: min(100%,240px); }
  .specialist-decision-strip { grid-template-columns: 1fr; }
  .specialist-decision-strip > a { text-align: center; white-space: normal; }
  .context-panel-heading { align-items: stretch; flex-direction: column; }
  .weather-layer-control { align-self: flex-start; max-width: 100%; overflow-x: auto; }
  .weather-map-layout { grid-template-columns: 1fr; }
  .weather-region-list { grid-template-columns: repeat(2,minmax(0,1fr)); max-height: none; }
  .weather-region-list article:nth-child(odd) { border-right: 1px solid #e1e8e4; }
}
@media (max-width: 560px) {
  .specialist-reading-grid,.weather-region-list { grid-template-columns: 1fr; }
  .specialist-brief-heading h2 { font-size: 25px; }
  .weather-map-layout { padding-inline: 12px; }
  .weather-map-stage { min-height: 365px; }
  .weather-map-stage .weather-map-graphic { height: 285px; }
  .weather-map-toolbar { padding-left: 10px; }
  .weather-map-toolbar small { display: none; }
  .context-panel-heading { padding: 16px 12px 12px; }
  .weather-layer-control { width: 100%; }
  .weather-layer-control button { flex: 1; min-width: 58px; padding-inline: 8px; }
  .weather-region-list article:nth-child(odd) { border-right: 0; }
  .differential-summary-strip { grid-template-columns: 1fr; margin-inline: 12px; }
  .differential-summary-strip > div { border-right: 0; border-bottom: 1px solid #e0e7e3; }
  .differential-summary-strip > div:last-child { border-bottom: 0; }
  .differential-chart-wrap { margin-inline: 10px; }
  .context-panel-footer { align-items: flex-start; flex-direction: column; padding-inline: 12px; }
  .market-technical-strip { grid-template-columns: repeat(2,1fr); }
}

/* Investigación documental de diferenciales v0.8.19. */
.differential-research-lab { margin: 8px -32px 34px; border-top: 1px solid #d7e1dc; border-bottom: 1px solid #d7e1dc; background: #fff; }
.differential-research-heading { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 28px; align-items: center; padding: 28px 32px 22px; }
.differential-research-heading h2 { margin: 5px 0 7px; color: #17372c; font-family: Georgia,serif; font-size: clamp(25px,2.4vw,38px); font-weight: 500; letter-spacing: 0; }
.differential-research-heading p { max-width: 780px; margin: 0; color: #66766f; font-size: 13px; line-height: 1.6; }
.source-verification-link { display: grid; grid-template-columns: 1fr auto; gap: 3px 16px; min-width: 220px; padding: 13px 15px; border: 1px solid #cfdcd5; border-radius: 6px; color: #26483b; text-decoration: none; }
.source-verification-link span { grid-column: 1; color: #788780; font-size: 10px; font-weight: 750; }
.source-verification-link strong { grid-column: 1; font-size: 13px; }
.source-verification-link b { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: #197755; font-size: 17px; }
.differential-archive-strip { display: grid; grid-template-columns: 1.15fr 1.2fr 1fr .8fr; border-top: 1px solid #e1e8e4; border-bottom: 1px solid #e1e8e4; background: #f7faf8; }
.differential-archive-strip > div { min-width: 0; padding: 15px 20px; border-right: 1px solid #e1e8e4; }
.differential-archive-strip > div:last-child { border-right: 0; }
.differential-archive-strip span,.differential-archive-strip strong { display: block; }
.differential-archive-strip > div > span { color: #75847d; font-size: 10px; font-weight: 750; }
.differential-archive-strip strong { margin-top: 5px; overflow: hidden; color: #29483b; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.differential-archive-years { display: flex; align-items: center; justify-content: center; gap: 5px; }
.differential-archive-years span { padding: 5px 7px; border: 1px solid #d6e1db; border-radius: 5px; background: #fff; color: #476057; font-size: 10px; font-weight: 850; }
.differential-research-controls { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 20px 32px 14px; }
.differential-research-controls label { display: grid; gap: 6px; color: #66766f; font-size: 11px; font-weight: 800; }
.differential-research-controls select { min-width: min(420px,70vw); min-height: 42px; padding: 0 12px; border: 1px solid #cfdcd5; border-radius: 6px; background: #fff; color: #244438; font-size: 12px; }
.differential-period-control { display: inline-flex; border: 1px solid #cfdcd5; border-radius: 6px; overflow: hidden; background: #fff; }
.differential-period-control button { min-width: 64px; min-height: 40px; padding: 0 12px; border: 0; border-right: 1px solid #dbe4df; background: #fff; color: #5d6f67; font-size: 11px; font-weight: 800; cursor: pointer; }
.differential-period-control button:last-child { border-right: 0; }
.differential-period-control button.active { background: #1d674e; color: #fff; }
.differential-research-metrics { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); margin: 0 32px 18px; border: 1px solid #dce5e0; background: #fbfcfb; }
.differential-research-metrics > div { min-width: 0; padding: 14px; border-right: 1px solid #dce5e0; }
.differential-research-metrics > div:last-child { border-right: 0; }
.differential-research-metrics span,.differential-research-metrics strong,.differential-research-metrics small { display: block; }
.differential-research-metrics span { color: #77867f; font-size: 9px; font-weight: 850; text-transform: uppercase; }
.differential-research-metrics strong { margin-top: 7px; color: #1f4335; font-size: 16px; }
.differential-research-metrics small { margin-top: 3px; color: #8a9691; font-size: 9px; }
.differential-research-body { display: grid; grid-template-columns: minmax(0,2.15fr) minmax(270px,.85fr); border-top: 1px solid #e0e8e4; border-bottom: 1px solid #e0e8e4; }
.differential-research-chart-column { min-width: 0; padding: 18px 18px 15px 32px; }
.differential-chart-wrap-large { min-height: 420px; margin: 0; }
.differential-chart-wrap-large .differential-context-chart { min-height: 410px; }
.differential-research-chart-column .differential-chart-legend { margin: 2px 0 10px; font-size: 10px; }
.differential-chart-legend .average::before { height: 2px; background: #466d8a; }
.differential-chart-method { margin: 0; color: #77867f; font-size: 10px; line-height: 1.55; }
.differential-analyst-reading { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 30px 26px; background: #173d31; color: #eef7f2; }
.differential-analyst-reading > span { color: #9fcab9; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.differential-analyst-reading h3 { margin: 8px 0 14px; color: #fff; font-family: Georgia,serif; font-size: 22px; font-weight: 500; letter-spacing: 0; }
.differential-analyst-reading > p { margin: 0; color: #d8e8e1; font-size: 12px; line-height: 1.7; }
.differential-analyst-reading dl { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 22px 0 18px; }
.differential-analyst-reading dl div { min-width: 0; padding-top: 9px; border-top: 1px solid rgba(255,255,255,.18); }
.differential-analyst-reading dt { color: #9fc0b3; font-size: 8px; line-height: 1.35; }
.differential-analyst-reading dd { margin: 5px 0 0; color: #fff; font-size: 13px; font-weight: 850; }
.differential-analyst-reading .differential-analyst-caution { padding-top: 14px; border-top: 1px solid rgba(255,255,255,.18); color: #bcd1c8; font-size: 10px; line-height: 1.55; }
.differential-evidence-log { padding: 24px 32px 28px; }
.differential-evidence-log > header { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.differential-evidence-log h3 { margin: 4px 0 0; color: #244438; font-size: 18px; }
.differential-evidence-log > header > span { color: #75847d; font-size: 10px; }
.differential-evidence-head,.differential-evidence-log article { display: grid; grid-template-columns: 120px 140px 100px minmax(0,1fr); gap: 12px; align-items: center; }
.differential-evidence-head { padding: 8px 12px; border-bottom: 1px solid #d9e3de; color: #7b8983; font-size: 9px; font-weight: 850; text-transform: uppercase; }
.differential-evidence-log article { min-height: 44px; padding: 8px 12px; border-bottom: 1px solid #e7ece9; color: #54675f; font-size: 11px; }
.differential-evidence-log article time { color: #42574f; font-weight: 750; }
.differential-evidence-log article strong { color: #1c5f47; }
.differential-evidence-log article a { overflow: hidden; color: #176c4e; font-weight: 750; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.differential-research-disclaimer { padding: 15px 32px; background: #f3f7f5; color: #5f7069; font-size: 10px; line-height: 1.6; }
.differential-operational-heading { margin-top: 30px; }
.differential-audit-table { margin-top: 28px; }

@media (max-width: 1180px) {
  .differential-archive-strip { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .differential-archive-strip > div:nth-child(2) { border-right: 0; }
  .differential-archive-strip > div:nth-child(-n+2) { border-bottom: 1px solid #e1e8e4; }
  .differential-research-body { grid-template-columns: 1fr; }
  .differential-analyst-reading { min-height: 300px; }
}
@media (max-width: 820px) {
  .differential-research-lab { margin-inline: -20px; }
  .differential-research-heading { grid-template-columns: 1fr; padding-inline: 20px; }
  .source-verification-link { width: 100%; }
  .differential-research-controls { align-items: stretch; flex-direction: column; padding-inline: 20px; }
  .differential-research-controls select { width: 100%; min-width: 0; }
  .differential-period-control { align-self: flex-start; }
  .differential-research-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); margin-inline: 20px; }
  .differential-research-metrics > div { border-bottom: 1px solid #dce5e0; }
  .differential-research-metrics > div:nth-child(2n) { border-right: 0; }
  .differential-research-metrics > div:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .differential-research-chart-column,.differential-evidence-log { padding-inline: 20px; }
  .differential-evidence-head,.differential-evidence-log article { grid-template-columns: 90px 110px 75px minmax(160px,1fr); }
  .differential-evidence-log { overflow-x: auto; }
  .differential-evidence-head,.differential-evidence-log > div { min-width: 560px; }
}
@media (max-width: 560px) {
  .differential-research-lab { margin-inline: -12px; }
  .differential-research-heading { padding: 22px 14px 18px; }
  .differential-research-heading h2 { font-size: 27px; }
  .differential-archive-strip { grid-template-columns: 1fr; }
  .differential-archive-strip > div { border-right: 0; border-bottom: 1px solid #e1e8e4; }
  .differential-archive-years { justify-content: flex-start; overflow-x: auto; }
  .differential-research-controls { padding-inline: 14px; }
  .differential-period-control { width: 100%; }
  .differential-period-control button { flex: 1; min-width: 0; }
  .differential-research-metrics { grid-template-columns: 1fr; margin-inline: 14px; }
  .differential-research-metrics > div { border-right: 0; }
  .differential-research-metrics > div:last-child { grid-column: auto; }
  .differential-research-chart-column { padding: 10px 8px 14px; }
  .differential-chart-wrap-large { min-height: 330px; }
  .differential-chart-wrap-large .differential-context-chart { min-height: 320px; }
  .differential-analyst-reading { padding: 24px 18px; }
  .differential-analyst-reading dl { grid-template-columns: 1fr; }
  .differential-evidence-log { padding-inline: 14px; }
  .differential-research-disclaimer { padding-inline: 14px; }
}

/* Controles tecnológicos de cuenta v0.8.19. */
.account-actions { display: flex; align-items: center; gap: 6px; margin-left: 2px; padding-left: 12px; border-left: 1px solid #dce4e0; }
.account-actions .logout-form { display: flex; margin: 0; }
.account-actions .account-action { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 7px 10px; border: 1px solid #d8e2dd; border-radius: 7px; background: rgba(255,255,255,.72); color: #496058; font-size: 10px; font-weight: 800; line-height: 1; text-decoration: none; white-space: nowrap; box-shadow: 0 3px 10px rgba(19,54,42,.035); transition: transform .16s ease,border-color .16s ease,background .16s ease,color .16s ease,box-shadow .16s ease; }
.account-actions .account-action svg { width: 15px; height: 15px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.account-actions .account-action:hover { transform: translateY(-1px); border-color: #b9cec4; background: #fff; color: #176c4e; text-decoration: none; box-shadow: 0 7px 16px rgba(19,54,42,.08); }
.account-actions .account-action-security { color: #176c4e; }
.account-actions .account-action-password { color: #6c592f; }
.account-actions .account-action-logout { color: #8f463d; }
.account-actions .account-action-logout:hover { border-color: #e4c7c2; background: #fff8f6; color: #a0372d; }
.account-actions .account-action:focus-visible { outline: 3px solid rgba(42,142,104,.2); outline-offset: 2px; }

@media (max-width: 1180px) {
  .account-actions .account-action { width: 36px; padding-inline: 0; }
  .account-actions .account-action span { display: none; }
}
@media (max-width: 760px) {
  .account-menu { gap: 7px; }
  .account-actions { gap: 5px; margin-left: 0; padding-left: 0; border-left: 0; }
  .account-actions .account-action { width: 37px; min-height: 37px; }
}


/* v0.9.0 · Misiones persistentes del Agente Comercial */
.commercial-missions { margin: 18px 0; padding: 22px; border: 1px solid rgba(111,205,168,.18); border-radius: 20px; background: linear-gradient(145deg, rgba(24,67,54,.64), rgba(10,31,26,.78)); }
.commercial-missions > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.commercial-missions > header span { color: #70d2ad; font-size: 8px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.commercial-missions > header h3 { margin: 5px 0; color: #f3faf7; font: 500 27px/1.15 Georgia, "Times New Roman", serif; }
.commercial-missions > header p { max-width: 700px; margin: 0; color: #9ab8ad; font-size: 10px; line-height: 1.55; }
.commercial-missions > header > small { display: inline-flex; align-items: center; flex: 0 0 auto; gap: 7px; padding: 8px 10px; border: 1px solid rgba(255,255,255,.1); border-radius: 999px; color: #a9c4ba; font-size: 8px; }
.commercial-missions > header > small i, .commercial-mission > header > strong i { width: 7px; height: 7px; border-radius: 50%; background: #c99d4b; }
.commercial-missions > header > small.is-ready i, .commercial-mission.status-running > header > strong i, .commercial-mission.status-authorized > header > strong i { background: #57d29f; box-shadow: 0 0 0 4px rgba(87,210,159,.09); }
.commercial-mission-layout { display: grid; grid-template-columns: minmax(320px,.85fr) minmax(0,1.15fr); gap: 14px; align-items: start; }
.commercial-mission-create, .commercial-mission-list > article, .commercial-mission-list > .commercial-agent-empty { border: 1px solid rgba(255,255,255,.09); border-radius: 15px; background: rgba(255,255,255,.045); }
.commercial-mission-create > summary { padding: 15px 16px; color: #ecf7f2; font-size: 11px; font-weight: 850; cursor: pointer; }
.commercial-mission-create > form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; padding: 0 16px 16px; }
.commercial-mission-create label { display: grid; align-content: start; gap: 6px; color: #9bb9ae; font-size: 8px; font-weight: 800; letter-spacing: .04em; }
.commercial-mission-create label.wide, .commercial-mission-create fieldset.wide, .commercial-mission-create button.wide { grid-column: 1/-1; }
.commercial-mission-create input, .commercial-mission-create select, .commercial-mission-create textarea { width: 100%; min-height: 39px; padding: 9px 10px; border: 1px solid rgba(157,199,184,.18); border-radius: 9px; outline: 0; background: rgba(4,18,14,.58); color: #eef7f3; font: inherit; letter-spacing: 0; }
.commercial-mission-create textarea { min-height: 66px; resize: vertical; line-height: 1.45; }
.commercial-mission-create input:focus, .commercial-mission-create select:focus, .commercial-mission-create textarea:focus { border-color: rgba(103,211,169,.65); box-shadow: 0 0 0 3px rgba(103,211,169,.08); }
.commercial-mission-create label > small { color: #6f9486; font-size: 7px; font-weight: 600; line-height: 1.35; }
.commercial-mission-options { display: grid; gap: 8px; margin: 2px 0; padding: 11px; border: 1px solid rgba(157,199,184,.13); border-radius: 10px; }
.commercial-mission-options legend { padding: 0 5px; color: #92b6a8; font-size: 8px; font-weight: 850; }
.commercial-mission-options label, .commercial-mission-authorization { display: flex; grid-template-columns: none; align-items: flex-start; gap: 9px; line-height: 1.45; }
.commercial-mission-options label.is-disabled { opacity: .48; }
.commercial-mission-options input[type="checkbox"], .commercial-mission-authorization input[type="checkbox"] { appearance: auto; flex: 0 0 15px; width: 15px; height: 15px; min-height: 0; margin-top: 1px; padding: 0; }
.commercial-mission-authorization { padding: 11px; border: 1px solid rgba(228,186,87,.2); border-radius: 10px; background: rgba(228,186,87,.06); color: #cfc29d !important; }
.commercial-mission-create button { min-height: 43px; border: 0; border-radius: 11px; background: #d8b158; color: #10251f; font-size: 9px; font-weight: 900; cursor: pointer; }
.commercial-mission-create button:disabled { cursor: not-allowed; opacity: .45; }
.commercial-mission-list { display: grid; gap: 10px; }
.commercial-mission-list > article { padding: 14px; }
.commercial-mission > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.commercial-mission > header span { color: #6fa995; font-size: 7px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.commercial-mission > header h4 { margin: 4px 0 0; color: #f2faf6; font-size: 13px; }
.commercial-mission > header > strong { display: flex; align-items: center; flex: 0 0 auto; gap: 7px; color: #b8d5ca; font-size: 8px; }
.commercial-mission.status-awaiting_review > header > strong i { background: #e5b954; }
.commercial-mission.status-paused > header > strong i, .commercial-mission.status-budget_reached > header > strong i { background: #d79256; }
.commercial-mission.status-cancelled > header > strong i, .commercial-mission.status-failed > header > strong i { background: #d26969; }
.commercial-mission > p { margin: 10px 0; color: #9db9ae; font-size: 9px; line-height: 1.5; }
.commercial-mission > progress { width: 100%; height: 7px; border: 0; border-radius: 999px; overflow: hidden; accent-color: #61d0a4; }
.commercial-mission > progress::-webkit-progress-bar { background: rgba(255,255,255,.08); }
.commercial-mission > progress::-webkit-progress-value { background: linear-gradient(90deg,#45b887,#79d9b5); }
.commercial-mission-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; margin: 10px 0; }
.commercial-mission-metrics span { padding: 7px; border-radius: 8px; background: rgba(0,0,0,.15); }
.commercial-mission-metrics small, .commercial-mission-metrics strong { display: block; }
.commercial-mission-metrics small { color: #719486; font-size: 6px; letter-spacing: .04em; text-transform: uppercase; }
.commercial-mission-metrics strong { overflow: hidden; margin-top: 3px; color: #e8f5f0; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.commercial-mission > small { color: #728f84; font-size: 7px; }
.commercial-mission-error { padding: 8px; border-radius: 8px; background: rgba(188,77,77,.1); color: #e6aaaa !important; }
.commercial-mission > footer { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.commercial-mission > footer button { min-height: 30px; padding: 0 10px; border: 1px solid rgba(129,194,170,.2); border-radius: 8px; background: rgba(95,178,147,.09); color: #a9d9c7; font-size: 7px; font-weight: 850; cursor: pointer; }
.commercial-mission > footer button.danger { border-color: rgba(205,105,105,.18); background: rgba(205,105,105,.08); color: #dda2a2; }
.commercial-mission-events { margin-top: 12px; color: #97b8ab; font-size: 8px; }
.commercial-mission-events > summary { cursor: pointer; font-weight: 850; }
.commercial-mission-events ol { display: grid; gap: 5px; margin: 10px 0 0; padding: 0; list-style: none; }
.commercial-mission-events li { display: grid; grid-template-columns: 110px minmax(0,1fr) minmax(0,1fr); gap: 8px; padding: 7px 9px; border-radius: 8px; background: rgba(255,255,255,.035); }
.commercial-mission-events li span, .commercial-mission-events li small { color: #708f83; }
.commercial-discovery-seed { margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); }
.commercial-discovery-seed > span { color: #80c8e7; font-size: 8px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.commercial-discovery-seed > small { display: block; margin: 10px 0; color: #82a69a; font-size: 8px; }

@media (max-width: 1080px) {
  .commercial-mission-layout { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .commercial-missions { padding: 16px; }
  .commercial-missions > header { flex-direction: column; }
  .commercial-mission-create > form { grid-template-columns: 1fr; }
  .commercial-mission-create label.wide, .commercial-mission-create fieldset.wide, .commercial-mission-create button.wide { grid-column: auto; }
  .commercial-mission-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .commercial-mission-events li { grid-template-columns: 1fr; }
}
