:root { --portal-ink:#0a192f; --portal-blue:#0052cc; --portal-gold:#d4af37; --portal-muted:#617188; --portal-line:#e3e9f0; --portal-bg:#f8fafc; }
.novum-portal { color:var(--portal-ink); background:var(--portal-bg); letter-spacing:0; }
.novum-portal [hidden], .novum-portal [x-cloak] { display:none!important; }
.novum-portal a, .novum-portal button { -webkit-tap-highlight-color:transparent; }
.novum-portal :focus-visible { outline:3px solid #86b7ff; outline-offset:3px; }
.novum-portal input, .novum-portal select, .novum-portal textarea { color:var(--portal-ink); border-radius:8px; }
.novum-portal img { object-fit:contain; }
.novum-portal p { line-height:1.6; }
.novum-portal h1, .novum-portal h2, .novum-portal h3 { letter-spacing:0; }
.novum-portal h1 { font-size:28px; line-height:1.25; font-weight:700; }
.novum-portal button[type=submit] { border-radius:8px; letter-spacing:0; text-transform:none; font-size:15px; }
.portal-modal-overlay { position:fixed; inset:0; z-index:100; display:grid; place-items:center; padding:16px; background:rgba(10,25,47,.55); }
.portal-modal { width:100%; max-width:420px; padding:32px 28px; border-radius:16px; background:#fff; text-align:center; box-shadow:0 24px 60px rgba(10,25,47,.35); }
.portal-modal-icon { width:56px; height:56px; margin:0 auto 18px; display:grid; place-items:center; border-radius:50%; background:#eef6ff; color:var(--portal-blue); font-size:26px; }
.portal-modal h2 { font-size:20px; font-weight:800; margin:0 0 10px; }
.portal-modal p { font-size:14px; color:var(--portal-muted); margin:0 0 24px; }
.portal-modal-button { display:inline-flex; align-items:center; justify-content:center; height:48px; padding:0 24px; border-radius:12px; background:var(--portal-blue); color:#fff; font-weight:800; font-size:14px; text-decoration:none; text-transform:uppercase; letter-spacing:.02em; }
.portal-modal-button:hover { background:#073a88; }
.portal-brand { display:flex; align-items:center; gap:12px; text-decoration:none; color:var(--portal-ink); }
.portal-brand img { flex-shrink:0; border-radius:50%; }
.portal-text-link { display:inline-flex; align-items:center; gap:9px; color:var(--portal-blue); font-size:14px; font-weight:600; }
.portal-text-link:hover { text-decoration:underline; }
.portal-shell { display:grid; grid-template-columns:240px minmax(0,1fr); min-height:100vh; }
.portal-sidebar { position:sticky; top:0; height:100dvh; display:flex; flex-direction:column; background:#fff; border-right:1px solid var(--portal-line); padding:28px 18px; }
.portal-sidebar-brand { padding:0 8px 36px; }
.portal-nav-label { font-size:11px; font-weight:700; color:var(--portal-muted); padding:0 14px; margin-bottom:12px; }
.portal-side-nav { display:grid; gap:6px; overflow-y:auto; min-height:0; scrollbar-width:thin; }
.portal-side-nav a { display:flex; align-items:center; gap:12px; padding:13px 14px; font-size:14px; font-weight:500; border-radius:7px; color:#47566c; }
.portal-side-nav a:hover { background:#f3f6fa; }
.portal-side-nav a.is-active { color:var(--portal-blue); background:#edf4ff; font-weight:600; box-shadow:inset 3px 0 var(--portal-blue); }
.portal-side-nav i { font-size:19px; }
.portal-side-nav .portal-nav-arrow { margin-left:auto; font-size:12px; }
.portal-sidebar-bottom { margin-top:auto; border-top:1px solid var(--portal-line); padding:20px 12px 0; display:grid; gap:18px; }
.portal-sidebar-bottom .portal-text-link { color:#53647b; }
.portal-sidebar-bottom small { font-size:11px; color:#7a8798; margin-top:10px; }
.portal-workspace { min-width:0; }
.portal-topbar { height:80px; padding:0 32px; background:#fff; border-bottom:1px solid var(--portal-line); display:flex; align-items:center; justify-content:space-between; gap:12px; }
.portal-breadcrumb { font-size:13px; color:var(--portal-muted); display:flex; gap:12px; align-items:center; }
.portal-breadcrumb i { font-size:10px; }
.portal-account { position:relative; }
.portal-topbar-actions { display:flex; align-items:center; gap:12px; flex-shrink:0; }
.portal-install-icon { display:grid; place-items:center; width:40px; height:40px; flex-shrink:0; border:1px solid #e6d598; border-radius:50%; background:#fbf6e5; color:#073a88; font-size:18px; transition:background .2s,border-color .2s; }
.portal-install-icon:hover { background:#f5e7b9; border-color:#d4af37; }
.portal-account>button { display:flex; gap:10px; align-items:center; font-size:13px; font-weight:600; }
.portal-avatar { display:grid; place-items:center; width:36px; height:36px; border-radius:50%; background:#eaf1fb; color:var(--portal-blue); border:1px solid #dae5f7; font-size:15px; }
.portal-account-name { max-width:180px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.portal-account-menu { position:absolute; right:0; top:48px; width:215px; padding:8px; border:1px solid var(--portal-line); border-radius:8px; background:white; box-shadow:0 12px 28px #0a192f16; z-index:30; }
.portal-account-menu a,.portal-account-menu button { display:flex; gap:10px; width:100%; padding:11px 10px; font-size:14px; border-radius:6px; }
.portal-account-menu a:hover,.portal-account-menu button:hover { background:#edf4ff; }
.portal-main { padding:32px; max-width:1500px; margin:0 auto; }
.portal-page-title { margin-bottom:28px; }
.portal-page-title>span { font-size:10px; font-weight:700; color:#7a6828; }
.portal-page-title h1 { margin:7px 0 8px; overflow-wrap:anywhere; }
.portal-page-title p { font-size:14px; color:var(--portal-muted); }
.portal-overview { display:grid; grid-template-columns:minmax(0,1.7fr) minmax(260px,1fr); gap:24px; }
.portal-identity { background:#0a2344; color:white; border-radius:8px; padding:24px 28px; border-top:3px solid var(--portal-gold); }
.portal-identity-heading { display:flex; align-items:center; gap:12px; font-size:12px; font-weight:700; }
.portal-identity-heading img { flex-shrink:0; border-radius:50%; }
.portal-identity-heading small { color:#b9c9dc; font-weight:400; display:inline-block; margin-top:4px; font-size:12px; }
.portal-identity-heading>i { margin-left:auto; font-size:23px; color:#e4c86b; }
.portal-identity-label { font-size:10px; color:#a8bed7; margin:25px 0 5px; }
.portal-identity h2 { font-size:22px; font-weight:500; overflow-wrap:anywhere; }
.portal-identity-bottom { display:flex; align-items:end; justify-content:space-between; gap:14px; margin-top:23px; }
.portal-identity-bottom>span { font-size:11px; color:#a8bed7; }
.portal-identity-bottom strong { display:block; font-size:13px; font-weight:500; color:white; margin-top:4px; }
.portal-identity-bottom a { font-size:12px; display:flex; gap:8px; align-items:center; white-space:nowrap; color:#efd98d; }
.portal-hero { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.3fr); background:#0a2344; color:white; border-radius:8px; border-top:3px solid var(--portal-gold); overflow:hidden; }
.portal-hero .portal-identity { border-radius:0; border-top:0; border-right:1px solid rgba(255,255,255,.12); }
.portal-hero-patrimonio { padding:24px 28px; display:flex; flex-direction:column; justify-content:space-between; gap:16px; }
.portal-hero-patrimonio-top { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.portal-hero-label { font-size:10px; font-weight:700; color:#a8bed7; }
.portal-hero-badge { display:inline-flex; align-items:center; gap:5px; font-size:11px; font-weight:800; padding:4px 10px; border-radius:99px; }
.portal-hero-badge.is-up { color:#8ce0ab; background:rgba(15,122,61,.28); }
.portal-hero-badge.is-down { color:#f3a5a5; background:rgba(179,38,30,.28); }
.portal-hero-value { font-size:34px; font-weight:800; line-height:1; }
.portal-hero-value small { font-size:15px; font-weight:600; color:#b9c9dc; }
.portal-hero-caption { display:block; margin-top:8px; font-size:12.5px; color:#b9c9dc; }
.portal-hero-stats { display:flex; align-items:center; gap:26px; padding-top:14px; border-top:1px solid rgba(255,255,255,.12); }
.portal-hero-stats>div span { display:block; font-size:10px; color:#a8bed7; }
.portal-hero-stats>div strong { display:block; font-size:14px; margin-top:3px; }
.portal-hero-stats .portal-button { margin-left:auto; }
.portal-precios-card { padding:22px 24px; background:white; border:1px solid var(--portal-line); border-radius:8px; }
.portal-precios-card dt { font-size:11px; color:var(--portal-muted); margin-bottom:3px; }
.portal-precios-card dd { font-size:22px; font-weight:800; margin:0 0 14px; }
.portal-precios-card dd.is-small { font-size:14px; font-weight:600; margin-bottom:0; }
.portal-products-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.portal-product-card { border:1px solid var(--portal-line); background:white; border-radius:8px; padding:22px; display:flex; flex-direction:column; gap:14px; text-decoration:none; color:var(--portal-ink); transition:border-color .2s,box-shadow .2s; }
a.portal-product-card:hover { border-color:#afc9ed; box-shadow:0 4px 12px #0a192f08; }
.portal-product-card.is-ghost { opacity:.65; }
.portal-product-icon { width:44px; height:44px; border-radius:9px; display:grid; place-items:center; font-size:21px; background:#fbf6e5; color:#87660e; }
.portal-product-icon.blue { background:#edf4ff; color:var(--portal-blue); }
.portal-product-card strong { font-size:15px; font-weight:700; }
.portal-product-card small { font-size:12.5px; color:var(--portal-muted); margin-top:4px; display:block; }
.portal-product-status { margin-top:auto; font-size:12px; font-weight:600; color:#7a8798; }
.portal-product-action { margin-top:auto; font-size:12.5px; font-weight:700; color:var(--portal-blue); display:flex; align-items:center; justify-content:space-between; }
.portal-product-more { border:1.5px dashed #dbe3ec; border-radius:8px; padding:22px; display:flex; flex-direction:column; justify-content:center; gap:8px; color:#8a97a8; }
.portal-product-more strong { font-size:13.5px; font-weight:700; color:var(--portal-muted); }
.portal-product-more small { font-size:12px; line-height:1.5; }
.portal-profile-summary { padding:22px 24px; background:white; border:1px solid var(--portal-line); border-radius:8px; }
.portal-section-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:18px; }
.portal-section-heading h2 { font-size:16px; font-weight:600; }
.portal-section-heading>i { font-size:20px; color:var(--portal-muted); }
.portal-progress-value { font-size:38px; font-weight:600; line-height:1.2; }
.portal-progress-value small { font-size:20px; margin-left:3px; color:var(--portal-muted); }
.portal-profile-summary p { font-size:13px; color:var(--portal-muted); margin:5px 0 16px; }
.portal-profile-summary progress { display:block; width:100%; height:6px; border:0; border-radius:4px; overflow:hidden; margin-bottom:22px; background:#e8eef5; accent-color:#168466; }
.portal-profile-summary progress::-webkit-progress-bar { background:#e8eef5; }
.portal-profile-summary progress::-webkit-progress-value { background:#168466; }
.portal-profile-summary progress::-moz-progress-bar { background:#168466; }
.portal-shortcuts-section { margin:32px 0; }
.portal-shortcuts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.portal-shortcuts>a { border:1px solid var(--portal-line); background:white; border-radius:8px; display:flex; align-items:center; gap:12px; padding:20px 16px; transition:border-color .2s,box-shadow .2s; }
.portal-shortcuts>a:hover { border-color:#afc9ed; box-shadow:0 4px 12px #0a192f08; }
.portal-shortcut-icon { width:40px; height:40px; display:grid; place-items:center; flex-shrink:0; border-radius:8px; background:#edf4ff; color:var(--portal-blue); font-size:20px; }
.portal-shortcut-icon.gold { background:#fbf6e5; color:#967315; }
.portal-shortcut-icon.green { background:#e9f7f1; color:#168466; }
.portal-shortcuts strong { display:block; font-size:14px; font-weight:600; }
.portal-shortcuts small { display:block; font-size:12px; color:var(--portal-muted); line-height:1.5; margin-top:4px; }
.portal-shortcuts>a>i { margin-left:auto; color:#8a97a8; font-size:12px; }
.portal-detail-grid { display:grid; grid-template-columns:minmax(0,1.4fr) minmax(0,1fr); gap:24px; }
.portal-relationship,.portal-contact-summary { border-top:1px solid var(--portal-line); padding:24px 0; }
.portal-relationship { padding-right:24px; }
.portal-relationship-content { padding:10px 0; max-width:520px; }
.portal-relation-symbol { display:grid; place-items:center; width:40px; height:40px; background:#eaf1fb; border-radius:8px; color:var(--portal-blue); font-size:21px; margin-bottom:14px; }
.portal-relationship h3 { font-size:19px; font-weight:600; margin-bottom:8px; }
.portal-relationship p { font-size:14px; color:var(--portal-muted); margin-bottom:20px; }
.portal-button { display:inline-flex; gap:12px; align-items:center; justify-content:center; background:var(--portal-blue); color:white; padding:12px 18px; min-height:44px; border-radius:7px; font-size:13px; font-weight:600; }
.portal-button:hover { background:#073a88; }
.portal-contact-summary dl>div { padding:14px 0; border-bottom:1px solid var(--portal-line); }
.portal-contact-summary dt { font-size:12px; color:var(--portal-muted); display:flex; align-items:center; gap:8px; }
.portal-contact-summary dd { font-size:14px; margin-top:7px; overflow-wrap:anywhere; }
.portal-contact-note { font-size:12px; color:var(--portal-muted); margin-top:16px; display:flex; gap:8px; }
.portal-main-footer { margin-top:36px; padding:22px 0 0; border-top:1px solid var(--portal-line); display:flex; align-items:center; gap:10px; font-size:11px; color:#7a8798; flex-wrap:wrap; }
.portal-main-footer img { border-radius:50%; }
.portal-main-footer a { margin-left:auto; display:flex; gap:7px; }
.portal-mobile-brand,.portal-bottom-nav { display:none; }
.portal-auth { min-height:100dvh; background:#f8fafc; border-top:4px solid var(--portal-gold); }
.portal-auth-form { border:1px solid var(--portal-line); border-radius:8px; box-shadow:0 12px 40px #0a192f09; }
.portal-auth-form h1 { font-size:27px; }
.portal-auth-form>div:first-child>img { width:56px; height:56px; }
.portal-auth-form input { font-size:16px; }
.portal-main>section { border-radius:8px; box-shadow:none; }
.portal-main>section form input { font-size:15px; }
.portal-offline-banner { background:#fff1cc; color:#654c0d; padding:10px 20px; text-align:center; font-size:13px; }
.portal-install { cursor:pointer; }
.portal-install-dialog { width:min(420px,calc(100% - 32px)); padding:24px; border:1px solid var(--portal-line); border-radius:8px; color:var(--portal-ink); }
.portal-install-dialog::backdrop { background:#0a192f80; }
.portal-install-dialog p { color:var(--portal-muted); font-size:14px; margin-bottom:20px; }
@media(max-width:1199px) {
 .portal-shell { grid-template-columns:220px minmax(0,1fr); } .portal-main { padding:24px; }
 .portal-shortcuts { grid-template-columns:1fr; } .portal-shortcuts>a { padding:16px; }
 .portal-overview { grid-template-columns:minmax(0,1.4fr) minmax(230px,1fr); }
 .portal-products-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:900px) {
 .portal-shell { display:block; } .portal-sidebar { display:none; }
 .portal-topbar { height:calc(70px + env(safe-area-inset-top)); padding:0 20px; padding-top:env(safe-area-inset-top); position:sticky; top:0; z-index:20; }
 .portal-breadcrumb { display:none; } .portal-mobile-brand { display:flex; gap:10px; align-items:center; font-size:17px; }
 .portal-mobile-brand img { border-radius:50%; } .portal-account-name { display:none; }
 .portal-main { padding:26px 20px calc(92px + env(safe-area-inset-bottom)); }
 .portal-bottom-nav { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); position:fixed; bottom:0; left:0; right:0; padding:6px 4px calc(6px + env(safe-area-inset-bottom)); background:white; border-top:1px solid var(--portal-line); z-index:25; }
 .portal-bottom-nav a { min-height:48px; display:grid; place-content:center; text-align:center; gap:3px; font-size:9.5px; color:var(--portal-muted); border-radius:6px; padding:0 2px; }
 .portal-bottom-nav i { font-size:17px; } .portal-bottom-nav .is-active { color:var(--portal-blue); background:#edf4ff; font-weight:600; }
 .portal-overview { grid-template-columns:minmax(0,1.4fr) minmax(210px,1fr); } .portal-main-footer a { margin-left:0; width:100%; }
 .portal-hero,.portal-products-grid { grid-template-columns:1fr; } .portal-hero .portal-identity { border-right:0; border-bottom:1px solid rgba(255,255,255,.12); }
}
@media(max-width:600px) {
 .portal-overview,.portal-detail-grid { grid-template-columns:1fr; gap:18px; } .portal-identity { padding:22px; }
 .portal-page-title h1 { font-size:26px; } .portal-profile-summary { padding:20px; } .portal-profile-summary .portal-section-heading { margin-bottom:12px; }
 .portal-shortcuts-section { margin:26px 0; } .portal-relationship { padding-right:0; } .portal-auth-form h1 { font-size:25px; }
 .portal-auth>section>div:first-child { gap:12px; } .portal-auth .portal-brand { gap:9px; } .portal-auth .portal-brand img { width:40px; height:40px; }
 .portal-auth .portal-brand small { font-size:10px; } .portal-contact-summary { padding-top:22px; }
 .portal-hero-stats { flex-wrap:wrap; row-gap:14px; } .portal-hero-stats .portal-button { margin-left:0; width:100%; }
}
@media(prefers-reduced-motion:reduce) { .novum-portal * { transition:none!important; scroll-behavior:auto!important; } }
