/* Entrega A: componentes comunes y navegación, sobre la identidad existente. */
.private-amount{display:inline-block;position:relative;white-space:nowrap;vertical-align:baseline}
.private-mask{position:absolute;inset:0;visibility:hidden;overflow:hidden;white-space:nowrap;pointer-events:none}
.private-axis-mask{visibility:hidden}
.amounts-hidden .private-value,.amounts-hidden .private-axis-value{visibility:hidden}
.amounts-hidden .private-mask,.amounts-hidden .private-axis-mask{visibility:visible}
.e-skip{position:fixed;left:15px;top:-100px;z-index:100;background:var(--panel);color:var(--text);padding:12px;border:2px solid var(--accent);border-radius:8px}.e-skip:focus{top:10px}
.home-active .sidebar{overflow-y:auto}.home-active .brand{padding-bottom:25px}.home-active .nav-btn{font-size:13px;gap:10px}.e-nav-preview{margin-left:auto;color:var(--muted);font-size:14px}.home-active .side-info{margin-top:20px}.home-active .nav-btn svg{flex-shrink:0}
.home-active .topbar{height:auto;min-height:82px}.home-active .h-top-brand{white-space:nowrap}.home-active .top-controls{gap:8px}.e-header-ask{display:flex;align-items:center;gap:7px;border:1px solid var(--border);background:var(--accent-bg);color:var(--accent-strong);border-radius:9px;padding:10px 12px;font-size:12px;min-height:42px;white-space:nowrap}.e-header-ask:hover{border-color:var(--accent)}
.e-workspace-status{display:flex;align-items:center;gap:7px;padding:9px 36px;border-bottom:1px solid var(--border);font-size:10px;color:var(--muted);background:var(--sidebar)}.e-workspace-status:before{content:"";width:5px;height:5px;background:var(--warning);border-radius:50%}
.home-active .content{padding-top:28px}.home-active .page-head h1{font-weight:550;letter-spacing:-1px;font-size:29px}.home-active .page-head .eyebrow{font-size:10px;letter-spacing:1.7px}.home-active .subtext{font-size:13px}.home-active .card{border-radius:16px;box-shadow:0 4px 20px #00192b03}.home-active .article h3{font-size:17px;line-height:1.45}.home-active .article p,.home-active .analysis-block p,.home-active .detail-box p{font-size:13px;line-height:1.7}.home-active .article{padding:25px}.home-active .news-hero{background:var(--panel)}.home-active .news-hero h2{font-weight:550}.home-active .news-side .side-box{position:static}.home-active .op-card{padding:25px}.home-active .match-value{font-size:22px}.home-active .chip{min-height:42px}.home-active .op-summary{font-size:13px}.home-active .holding-row{margin:23px 0}.home-active .risk-panel p{font-size:12px}.e-news-label{display:block;font-size:9px;letter-spacing:1.1px;color:var(--muted);margin-top:15px}
.e-page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:22px;margin-bottom:26px}.e-page-head h1{font-size:32px;letter-spacing:-1.1px;font-weight:550;line-height:1.25;margin:9px 0 10px}.e-page-head p{color:var(--muted);font-size:13px;max-width:660px;margin:0;line-height:1.7}.e-badge{display:inline-flex;align-items:center;white-space:nowrap;font-size:9px;letter-spacing:.3px;font-weight:600;padding:5px 8px;border-radius:6px;border:1px solid var(--border);color:var(--muted);background:var(--panel-alt)}.e-badge-demo{color:var(--warning);background:var(--warning-bg);border-color:transparent}.e-feature-card{display:flex;align-items:center;gap:15px;border:1px solid var(--border);border-radius:13px;padding:17px 20px;margin-bottom:22px;background:linear-gradient(110deg,var(--accent-bg),var(--panel) 65%)}.e-feature-icon{display:grid;place-items:center;flex-shrink:0;width:40px;height:40px;border:1px solid var(--border);background:var(--panel);color:var(--accent-strong);border-radius:11px}.e-feature-card>div:nth-child(2){flex:1}.e-feature-label{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:14px;font-weight:600}.e-feature-card p{color:var(--muted);font-size:12px;margin:5px 0 0!important;line-height:1.6}.e-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid transparent;background:var(--accent);color:var(--bg);border-radius:9px;padding:11px 16px;min-height:42px;font-weight:600;font-size:12px}.e-button-secondary{background:var(--panel);color:var(--text);border-color:var(--border);white-space:nowrap}.e-button:hover{filter:brightness(.95)}.e-button:disabled{cursor:not-allowed;filter:none}.e-text-link{background:none;border:0;padding:8px 0;min-height:38px;display:inline-flex;align-items:center;gap:5px;color:var(--accent-strong);font-size:12px;font-weight:600}.e-text-link:hover{text-decoration:underline}
.e-source-banner{display:flex;align-items:center;gap:12px;padding:18px 20px;border:1px solid var(--border);border-radius:12px;background:var(--panel);margin-bottom:20px}.e-source-banner>svg{color:var(--accent-strong);flex-shrink:0}.e-source-banner>div{flex:1}.e-source-banner strong{font-size:12px}.e-source-banner p{font-size:12px;color:var(--muted);margin:4px 0 0;line-height:1.6}.e-source-banner button{white-space:nowrap}.e-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px}.e-search{display:flex;align-items:center;gap:10px;border:1px solid var(--border);background:var(--panel-alt);border-radius:9px;padding:10px 12px;width:330px;max-width:100%;color:var(--muted)}.e-search input{border:0;outline:none;background:transparent;color:var(--text);font:inherit;font-size:13px;width:100%;min-width:0}.e-search:focus-within{outline:2px solid var(--accent);outline-offset:2px}.e-search input:focus-visible{outline:0}.e-muted{font-size:11px;color:var(--muted)}.e-table-wrap{overflow:auto}.e-market-table{border-collapse:collapse;width:100%;text-align:right;font-size:13px}.e-market-table[hidden]{display:none}.e-market-table th,.e-market-table td{padding:16px 20px;border-top:1px solid var(--border)}.e-market-table thead th{color:var(--muted);font-size:10px;font-weight:500;white-space:nowrap;background:var(--panel-alt)}.e-market-table th:first-child{text-align:left}.e-market-table tbody th{font-weight:600;min-width:190px}.e-market-table tbody th>span{display:inline-block;vertical-align:middle}.e-market-table tbody small{display:block;font-size:10px;color:var(--muted);font-weight:400}.e-asset-token{width:32px;height:32px;line-height:32px;text-align:center;border-radius:9px;background:var(--panel-soft);color:var(--accent-strong);margin-right:12px}.e-market-table td{color:var(--muted)}.e-market-table tbody tr:hover{background:var(--panel-alt)}.e-table-foot{display:flex;justify-content:space-between;gap:15px;padding:16px 22px;border-top:1px solid var(--border);color:var(--muted);font-size:10px}.e-explainer{display:flex;gap:12px;align-items:flex-start;max-width:780px;margin:24px 0;color:var(--muted);font-size:12px}.e-explainer svg{flex-shrink:0;margin-top:3px}.e-explainer p{margin:0;line-height:1.8}.e-empty{text-align:center;padding:55px 22px}.e-empty-icon{display:grid;place-items:center;width:64px;height:64px;background:var(--accent-bg);border:1px solid var(--border);color:var(--accent-strong);margin:0 auto 20px;border-radius:18px}.e-empty h2{font-size:21px;letter-spacing:-.6px;font-weight:550;margin:0 0 10px}.e-empty p{max-width:430px;margin:0 auto 22px;font-size:13px;line-height:1.8;color:var(--muted)}.e-two-columns{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:20px}.e-info-card{padding:26px}.e-info-card h2{font-size:17px;font-weight:550;margin:15px 0 8px}.e-info-card p{font-size:13px;color:var(--muted);line-height:1.8;margin-bottom:15px}.e-section-icon{color:var(--accent-strong)}
.e-chat-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(240px,1fr);gap:20px;align-items:start}.e-chat{overflow:hidden}.e-chat-top{display:flex;align-items:center;gap:13px;border-bottom:1px solid var(--border);padding:22px}.e-avatar{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:var(--accent-bg);color:var(--accent-strong)}.e-chat-top strong{font-size:14px}.e-chat-top small{display:block;color:var(--muted);font-size:10px;margin-top:4px}.e-chat-content{padding:28px}.e-chat-message{background:var(--panel-alt);padding:20px;border:1px solid var(--border);border-radius:0 13px 13px 13px}.e-chat-message h2{font-size:18px;font-weight:550;line-height:1.5;margin:12px 0 8px}.e-chat-message p{font-size:13px;color:var(--muted);line-height:1.8;margin:0}.e-question-preview{display:grid;gap:9px;margin:20px 0}.e-question-preview span{font-size:12px;border:1px dashed var(--border);border-radius:9px;padding:12px 15px;color:var(--muted)}.e-chat-placeholder{text-align:center;color:var(--muted);padding:18px 0}.e-chat-placeholder p{font-size:12px;line-height:1.8}.e-chat-placeholder svg{color:var(--accent-strong)}.e-chat-compose{display:flex;gap:10px;border-top:1px solid var(--border);padding:18px;background:var(--panel-alt)}.e-chat-compose input{flex:1;min-width:0;background:none;border:0;color:var(--muted);font:inherit;font-size:12px}.e-chat-compose button{display:grid;place-items:center;width:40px;height:40px;border:0;border-radius:9px;background:var(--accent-bg);color:var(--accent-strong)}.e-context-card{padding:25px}.e-context-card h2{font-size:18px;font-weight:550;line-height:1.5;margin-top:16px}.e-context-card dl{margin:24px 0}.e-context-card dl>div{padding:12px 0;border-top:1px solid var(--border)}.e-context-card dt{font-size:10px;color:var(--muted);margin-bottom:5px}.e-context-card dd{margin:0;font-size:13px}.e-context-card p{font-size:12px;color:var(--muted);line-height:1.8}
.e-dialog{width:min(560px,calc(100vw - 32px));max-height:85dvh;padding:0;background:var(--panel);color:var(--text);border:1px solid var(--border);border-radius:18px;box-shadow:0 20px 70px #0006;overflow:auto}.e-dialog::backdrop{background:#050c18b3;backdrop-filter:blur(4px)}.e-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 23px;border-bottom:1px solid var(--border);position:sticky;top:0;background:var(--panel);z-index:1}.e-dialog-header h2{font-size:16px;font-weight:600;margin:0}.e-dialog-header button{font-size:23px}.e-dialog-content{padding:24px}.e-dialog-content h3{font-size:25px;letter-spacing:-.6px;font-weight:550;line-height:1.3;margin:18px 0 12px}.e-dialog-content p{font-size:13px;color:var(--muted);line-height:1.8}.e-preview-steps{counter-reset:steps;list-style:none;padding:0;margin:25px 0 0}.e-preview-steps li{counter-increment:steps;border-top:1px solid var(--border);padding:18px 0 4px 37px;position:relative}.e-preview-steps li:before{content:counter(steps,decimal-leading-zero);position:absolute;left:0;color:var(--accent-strong);font-size:12px}.e-preview-steps strong{font-size:13px}.e-preview-steps p{font-size:12px;margin:5px 0 12px}.e-detail-price{margin:22px 0}.e-detail-price span,.e-detail-price small{display:block;color:var(--muted);font-size:11px}.e-detail-price strong{display:block;font-size:38px}.e-preview-periods{display:flex;gap:7px}.e-preview-periods button{border:1px solid var(--border);color:var(--muted);background:var(--panel-alt);padding:7px 12px;border-radius:7px}.e-dialog .e-empty{padding:35px 10px 15px}.e-sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.e-compact-menu{position:fixed;bottom:82px;left:12px;right:12px;z-index:30;background:var(--panel);border:1px solid var(--border);padding:16px;border-radius:16px;box-shadow:0 -10px 40px #0003}.e-compact-menu[hidden]{display:none}.e-compact-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;font-size:12px;color:var(--muted)}.e-compact-head button{background:none;border:0;color:var(--muted);font-size:12px;padding:8px}.e-compact-links{display:grid;grid-template-columns:1fr 1fr;gap:8px}.e-compact-links button{display:flex;align-items:center;gap:9px;padding:15px 12px;background:var(--panel-alt);border:1px solid var(--border);border-radius:9px;color:var(--text);font-size:13px;text-align:left}.e-compact-links button>svg:last-child{margin-left:auto}.e-compact-links button.active{border-color:var(--accent);color:var(--accent-strong)}
@media(min-width:951px){.e-compact-menu{display:none}}
@media(max-width:1200px){.e-market-table th,.e-market-table td{padding:15px 12px}.e-page-head h1{font-size:28px}.e-chat-layout{grid-template-columns:minmax(0,1.6fr) minmax(220px,1fr)}.home-active .topbar{padding-left:24px;padding-right:24px}.e-workspace-status{padding-left:24px}}
@media(max-width:950px){.home-active .h-top-brand small,.h-brand-divider{display:none}.e-chat-layout{grid-template-columns:1fr}.e-context-card dl{display:grid;grid-template-columns:1fr 1fr;gap:0 24px}.home-active .top-controls{gap:6px}.e-header-ask{padding:10px}.home-active .mobile-nav button{flex:1}.e-workspace-status{padding:7px 18px}}
@media(max-width:700px){.e-page-head{flex-direction:column;gap:12px}.e-page-head h1{font-size:27px}.e-feature-card{display:grid;grid-template-columns:34px 1fr;padding:16px;gap:12px}.e-feature-icon{width:34px;height:34px}.e-feature-card>.e-button{grid-column:2;justify-self:start;padding:8px 12px;min-height:38px}.e-feature-label{font-size:13px;gap:7px}.e-feature-card p{font-size:12px}.e-two-columns{grid-template-columns:1fr}.e-toolbar{flex-direction:column;align-items:stretch;padding:17px;gap:12px}.e-search{width:100%}.e-source-banner{flex-wrap:wrap;padding:16px}.e-source-banner .e-text-link{margin-left:31px}.e-table-foot{flex-direction:column;gap:7px}.e-market-table th:nth-child(4),.e-market-table td:nth-child(4),.e-market-table th:nth-child(5),.e-market-table td:nth-child(5){display:none}.e-market-table tbody th{min-width:130px}.e-asset-token{display:none!important}.e-market-table th,.e-market-table td{padding:14px 11px}.e-chat-content{padding:18px}.e-chat-message{padding:16px}.e-empty{padding:38px 20px}.e-empty h2{font-size:20px}.e-context-card{padding:22px}.e-header-ask span{display:none}.e-header-ask{width:38px;padding:9px}.home-active .topbar{padding:12px}.home-active .top-controls{gap:4px}.home-active .field{padding:8px 5px}.home-active .field select{max-width:78px}.home-active .icon-btn{width:36px;height:40px;padding:8px}.home-active .h-top-brand{font-size:12px}.home-active .h-notifications{display:none}.e-dialog-content{padding:20px}.e-dialog-content h3{font-size:23px}.e-dialog-header{padding:15px 20px}.home-active .article{padding:20px}.home-active .page-head h1{font-size:26px}}
@media(max-width:360px){.home-active .topbar{gap:6px;padding-left:10px;padding-right:10px}.home-active .top-controls{gap:3px}.home-active .h-top-brand{font-size:11px}.home-active .field select{max-width:69px;font-size:10px}.home-active .icon-btn{width:32px}.e-header-ask{width:32px;padding:6px}.e-compact-links button{font-size:12px;padding:14px 9px}.e-chat-compose input{font-size:10px}}
@media(max-width:700px){.e-source-banner>div{flex-basis:calc(100% - 34px)}.e-compact-menu{bottom:calc(82px + env(safe-area-inset-bottom));max-height:65dvh;overflow:auto}}
/* Native controls and scrollbars follow the explicitly selected app theme. */
html[data-theme="light"]{color-scheme:light;--scroll-thumb:#a7b3bd;--scroll-track:#f3f5f6}
html[data-theme="dark"]{color-scheme:dark;--scroll-thumb:#42546b;--scroll-track:#0a121e}
html,*{scrollbar-color:var(--scroll-thumb) var(--scroll-track)}
::-webkit-scrollbar{width:12px;height:12px}
::-webkit-scrollbar-track{background:var(--scroll-track)}
::-webkit-scrollbar-thumb{background:var(--scroll-thumb);border:3px solid var(--scroll-track);border-radius:8px}
