:root{--navy:#071d3f;--navy2:#0b2545;--blue:#0b7bff;--blue2:#005ee8;--ice:#b3e5ff;--bg:#f4f8fc;--text:#0d1b36;--muted:#6d7d98;--border:#dfe8f4;--success:#19a866;--warning:#f4a619;--danger:#ef4454;--shadow:0 16px 36px rgba(24,55,93,.08)}*{box-sizing:border-box}body{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;color:var(--text);background:var(--bg)}.app-body{margin:0}.app-shell{display:grid;grid-template-columns:250px minmax(0,1fr);min-height:100vh}.sidebar{background:linear-gradient(180deg,#071b39 0%,#06244a 60%,#03172f 100%);padding:22px 14px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{display:block;padding:5px 9px 24px}.brand img{width:185px;max-width:100%}.sidebar .nav-link{min-height:48px;display:flex;align-items:center;gap:13px;color:#cad8eb;border-radius:12px;padding:10px 13px;font-weight:600}.sidebar .nav-link i{font-size:1.15rem;width:22px}.sidebar .nav-link small{margin-left:auto;font-size:.65rem;opacity:.55}.sidebar .nav-link.active{background:linear-gradient(135deg,var(--blue),#1767e8);color:white;box-shadow:0 10px 22px rgba(0,123,255,.23)}.sidebar .nav-link.disabled{opacity:.48}.sidebar-claim{margin-top:auto;padding:20px 12px;color:#fff;border-top:1px solid rgba(255,255,255,.09);display:flex;flex-direction:column;font-size:1.04rem}.sidebar-claim span{color:#9eb6d7}.main-area{min-width:0}.topbar{height:76px;background:rgba(255,255,255,.95);border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 28px;position:sticky;top:0;z-index:20;backdrop-filter:blur(14px)}.global-search{position:relative;display:flex;align-items:center;background:#f7faff;border:1px solid var(--border);border-radius:13px;width:min(620px,57vw);height:46px;padding:0 14px;gap:9px}.global-search input{border:0;outline:0;background:transparent;width:100%;font-size:.96rem}.search-results{position:absolute;left:0;right:0;top:52px;background:white;border:1px solid var(--border);border-radius:14px;box-shadow:var(--shadow);display:none;overflow:hidden;z-index:50}.search-results.show{display:block}.search-results a{display:flex;flex-direction:column;padding:11px 14px;text-decoration:none;color:var(--text);border-bottom:1px solid #eef3f8}.search-results a:hover{background:#f6f9fd}.search-results span{font-size:.8rem;color:var(--muted)}.search-empty{padding:12px;color:var(--muted)}.topbar-user{display:flex;align-items:center;gap:10px}.topbar-user>div:nth-child(2){display:flex;flex-direction:column;font-size:.88rem}.topbar-user span{color:var(--muted);font-size:.75rem}.user-avatar{width:40px;height:40px;border-radius:50%;background:linear-gradient(135deg,#dbeaff,#a8cffd);display:grid;place-items:center;font-weight:800;color:var(--navy)}.page-wrap{padding:24px 28px 40px;max-width:1680px;margin:auto}.hero-panel{background:linear-gradient(105deg,#fff 0%,#f0f7ff 58%,#e0efff 100%);border:1px solid var(--border);border-radius:22px;padding:30px 34px;display:flex;align-items:center;justify-content:space-between;gap:24px;position:relative;overflow:hidden}.hero-panel:after{content:"";position:absolute;width:360px;height:360px;border-radius:50%;right:-110px;top:-170px;background:radial-gradient(circle,#6cc4ff55 0%,transparent 68%)}.eyebrow,.panel-kicker{font-size:.72rem;font-weight:800;letter-spacing:.14em;color:#2876d8}.hero-panel h1,.page-heading h1{font-size:clamp(1.8rem,2.4vw,2.7rem);margin:.35rem 0 .5rem;font-weight:800;letter-spacing:-.035em}.hero-panel p,.page-heading p{margin:0;color:var(--muted);font-size:1.02rem}.hero-signal{z-index:1;min-width:220px;background:#082750;color:white;border-radius:18px;padding:16px 18px;display:grid;grid-template-columns:12px 1fr;column-gap:10px}.hero-signal small{grid-column:2;color:#9bc6ff}.signal-dot{width:10px;height:10px;background:#28d27f;border-radius:50%;margin-top:5px;box-shadow:0 0 0 6px rgba(40,210,127,.12)}.kpi-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:14px;margin:18px 0}.kpi-card{background:white;border:1px solid var(--border);border-radius:17px;padding:17px;display:flex;align-items:center;gap:13px;min-width:0}.kpi-card>div:last-child{display:flex;flex-direction:column;min-width:0}.kpi-card span{font-size:.82rem;font-weight:700;color:#50627d}.kpi-card strong{font-size:1.7rem;line-height:1.1}.kpi-card small{color:var(--muted);margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.kpi-icon{width:48px;height:48px;border-radius:14px;display:grid;place-items:center;font-size:1.35rem;flex:0 0 auto}.kpi-icon.blue{background:#e7f2ff;color:#0876f9}.kpi-icon.green{background:#e7f8ef;color:#13a663}.kpi-icon.navy{background:#e9eef7;color:#254a7e}.kpi-icon.red{background:#ffebee;color:#ed3f50}.kpi-icon.amber{background:#fff4dc;color:#e79a00}.danger-card{background:#fffafb}.warning-card{background:#fffdf8}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(330px,.8fr);gap:18px;margin-bottom:18px}.bottom-grid{grid-template-columns:1fr 1fr}.panel{background:#fff;border:1px solid var(--border);border-radius:20px;padding:20px;box-shadow:0 4px 10px rgba(44,72,103,.02);min-width:0}.panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:16px}.panel-head h2{font-size:1.16rem;font-weight:800;margin:2px 0}.panel-head p{margin:0;color:var(--muted);font-size:.86rem}.asset-list{display:flex;flex-direction:column}.asset-row{display:grid;grid-template-columns:44px minmax(110px,.8fr) minmax(160px,1.25fr) auto auto 22px;align-items:center;gap:12px;text-decoration:none;color:var(--text);padding:12px 4px;border-top:1px solid #edf2f8}.asset-row:hover{background:#f8fbff}.asset-mark{width:38px;height:38px;border-radius:11px;background:#e8f2ff;display:grid;place-items:center;color:var(--blue)}.asset-main,.asset-location{display:flex;flex-direction:column;min-width:0}.asset-main span,.asset-location span{color:var(--muted);font-size:.78rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.asset-location strong{font-size:.9rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.risk-panel{background:linear-gradient(180deg,#fff,#fbfdff)}.alert-stack{display:flex;flex-direction:column;gap:10px}.risk-item{display:flex;gap:11px;padding:12px;border-radius:14px;background:#f7f9fc;border-left:4px solid #9fb1c7}.risk-item.severity-critical{background:#fff4f5;border-color:var(--danger)}.risk-item.severity-high{background:#fff8f0;border-color:#f2793d}.risk-item.severity-medium{background:#fffbea;border-color:var(--warning)}.risk-icon{font-size:1rem}.risk-item strong{font-size:.88rem}.risk-item p{font-size:.8rem;color:#556985;margin:3px 0}.risk-item small{font-size:.72rem;color:#8a99ad}.success-empty,.empty-state{display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;gap:5px;color:var(--muted);padding:32px}.success-empty i,.empty-state i{font-size:2rem;color:var(--success)}.success-empty.small{padding:20px}.warehouse-list{display:flex;flex-direction:column}.warehouse-row{display:grid;grid-template-columns:42px 1fr auto;gap:10px;align-items:center;padding:10px 0;border-top:1px solid #edf2f8}.warehouse-icon{width:38px;height:38px;border-radius:11px;background:#edf3fb;display:grid;place-items:center;color:var(--navy2)}.warehouse-row>div:nth-child(2){display:flex;flex-direction:column}.warehouse-row span{font-size:.78rem;color:var(--muted)}.warehouse-row b{font-size:1.2rem}.control-principle{background:linear-gradient(130deg,#071f43,#0b3e7a);color:white}.control-principle .panel-kicker{color:#6dc0ff}.control-principle h2{font-size:1.55rem;margin:.4rem 0}.control-principle p{color:#bed0e7;max-width:700px}.principle-pills{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}.principle-pills span{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.12);border-radius:999px;padding:8px 11px;font-size:.78rem}.page-heading{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:18px}.filter-bar{display:grid;grid-template-columns:minmax(260px,1fr) 220px auto auto;gap:10px;margin-bottom:16px}.search-field{height:42px;border:1px solid var(--border);border-radius:10px;display:flex;align-items:center;padding:0 11px;gap:8px}.search-field input{border:0;outline:0;width:100%}.custodium-table-wrap{border:1px solid #e7eef6;border-radius:14px;overflow:auto}.custodium-table thead th{font-size:.72rem;text-transform:uppercase;letter-spacing:.05em;color:#71819a;background:#f7f9fc;border:0;white-space:nowrap}.custodium-table td{border-color:#edf2f7;font-size:.88rem}.custodium-table td small{display:block;color:var(--muted);font-size:.75rem}.plate-link{font-weight:800;text-decoration:none}.table-footer{display:flex;justify-content:space-between;align-items:center;padding-top:15px;color:var(--muted);font-size:.85rem}.form-layout{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(280px,.55fr);gap:18px}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}.contextual-help{background:linear-gradient(180deg,#f8fbff,#eef6ff)}.help-icon{width:54px;height:54px;border-radius:16px;background:#dcecff;color:var(--blue);display:grid;place-items:center;font-size:1.5rem}.contextual-help h3{margin:14px 0 6px}.contextual-help p{color:var(--muted)}.rule-list{display:flex;flex-direction:column;gap:8px;font-size:.88rem}.rule-list i{color:var(--success)}.asset-hero{background:linear-gradient(110deg,#081d3d,#0a4c99);border-radius:22px;padding:24px 26px;color:white;display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.asset-identity{display:flex;gap:15px;align-items:center}.asset-symbol{width:58px;height:58px;border-radius:17px;background:linear-gradient(135deg,#eaf5ff,#8bcaff);color:#0758c5;display:grid;place-items:center;font-size:1.65rem}.asset-identity h1{font-size:2rem;margin:2px 0}.asset-identity p{color:#bed7f8;margin:0}.asset-hero .eyebrow{color:#74c0ff}.asset-hero-status{display:flex;gap:8px;flex-wrap:wrap}.asset-summary-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:18px}.summary-card{background:white;border:1px solid var(--border);border-radius:16px;padding:16px;display:flex;flex-direction:column}.summary-card span{font-size:.74rem;text-transform:uppercase;letter-spacing:.05em;color:#71819a;font-weight:700}.summary-card strong{font-size:1rem;margin:5px 0}.summary-card small{color:var(--muted)}.asset-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:18px}.timeline{position:relative}.timeline-item{display:grid;grid-template-columns:18px 1fr auto;gap:10px;padding:11px 0;border-top:1px solid #edf2f8}.timeline-node{width:10px;height:10px;border-radius:50%;background:var(--blue);margin-top:6px;box-shadow:0 0 0 4px #e8f2ff}.timeline-content{display:flex;flex-direction:column}.timeline-content span{font-size:.82rem;color:#53647c}.timeline-content small{font-size:.72rem;color:#8c9aab}.validation-list{display:flex;flex-direction:column}.validation-row{display:flex;gap:10px;padding:11px 0;border-top:1px solid #edf2f8}.validation-icon{width:36px;height:36px;border-radius:12px;display:grid;place-items:center}.validation-icon.ok{background:#e7f8ef;color:var(--success)}.validation-icon.warn{background:#fff3df;color:var(--warning)}.validation-row>div:last-child{display:flex;flex-direction:column}.validation-row span,.validation-row small{color:var(--muted);font-size:.78rem}.detail-dl{display:grid;grid-template-columns:1fr 1fr;gap:0;margin:0}.detail-dl div{padding:11px 0;border-top:1px solid #edf2f8}.detail-dl dt{font-size:.72rem;text-transform:uppercase;color:#7c8ba0}.detail-dl dd{margin:2px 0 0;font-weight:700}.empty-compact{padding:18px;color:var(--muted);text-align:center}.auth-body{margin:0;min-height:100vh;background:#fff}.auth-shell{min-height:100vh;display:grid;grid-template-columns:minmax(420px,1.05fr) minmax(400px,.95fr)}.auth-brand-panel{background:radial-gradient(circle at 75% 20%,#167bff55 0%,transparent 27%),linear-gradient(145deg,#041a39,#073465 62%,#062348);padding:50px;color:white;display:flex;flex-direction:column;justify-content:space-between;overflow:hidden;position:relative}.auth-brand-panel:after{content:"";position:absolute;inset:auto -8% -25% 18%;height:55%;background:linear-gradient(120deg,transparent,#2d8cff33);transform:skewY(-10deg);border-radius:80px}.auth-logo{width:230px}.auth-hero-copy{max-width:650px;z-index:1}.auth-hero-copy .eyebrow{color:#6fc0ff}.auth-hero-copy h1{font-size:clamp(2.3rem,4vw,4.6rem);font-weight:800;line-height:1.02;letter-spacing:-.05em;margin:.5rem 0 1rem}.auth-hero-copy p{font-size:1.1rem;color:#bbcee6;max-width:570px}.auth-proof{font-size:.82rem;color:#89a9cf;letter-spacing:.07em;z-index:1}.auth-login-panel{display:grid;place-items:center;padding:32px;background:linear-gradient(180deg,#fbfdff,#f3f8fd)}.auth-card{width:min(460px,100%);background:white;border:1px solid var(--border);border-radius:24px;padding:34px;box-shadow:var(--shadow)}.auth-card-logo{width:210px;margin-bottom:28px}.auth-card h2{font-weight:800}.security-note{text-align:center;color:#8a99ad;font-size:.75rem;margin-top:16px}.mobile-body{margin:0;background:#f3f7fc;min-height:100vh}.mobile-header{height:68px;background:linear-gradient(120deg,#061c3b,#073b77);display:flex;align-items:center;justify-content:space-between;padding:0 18px}.mobile-header img{width:160px}.mobile-header a{color:white;font-size:1.25rem}.mobile-wrap{padding:18px;max-width:650px;margin:auto}.mobile-welcome{background:linear-gradient(135deg,#082b59,#0b64c8);color:white;border-radius:22px;padding:23px;margin-bottom:14px}.mobile-welcome>span{font-size:.85rem;color:#a9d0ff}.mobile-welcome h1{font-size:1.8rem;font-weight:800;margin:4px 0 8px}.mobile-welcome p{margin:0;color:#c8def7;font-size:.9rem}.mobile-kpis{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:14px}.mobile-kpis div{background:white;border:1px solid var(--border);border-radius:16px;padding:15px;display:flex;flex-direction:column}.mobile-kpis strong{font-size:1.8rem}.mobile-kpis span{font-size:.78rem;color:var(--muted)}.mobile-kpis .warn{background:#fff9ed}.mobile-actions{display:flex;flex-direction:column;gap:9px}.mobile-action{border:1px solid var(--border);background:white;border-radius:16px;min-height:68px;padding:12px 14px;display:grid;grid-template-columns:42px 1fr 20px;align-items:center;gap:9px;text-decoration:none;color:var(--text);text-align:left;width:100%}.mobile-action>i:first-child{width:42px;height:42px;border-radius:13px;background:#edf5ff;display:grid;place-items:center;color:var(--blue);font-size:1.2rem}.mobile-action div{display:flex;flex-direction:column}.mobile-action span{font-size:.78rem;color:var(--muted)}.mobile-action.primary{background:linear-gradient(135deg,#0877f8,#0b5ed7);color:white;border:0}.mobile-action.primary>i:first-child{background:rgba(255,255,255,.16);color:white}.mobile-action.primary span{color:#d7eaff}.mobile-action:disabled{opacity:.55}.mobile-principle{display:flex;gap:12px;margin-top:16px;background:#e9f4ff;border:1px solid #cfe5ff;border-radius:16px;padding:15px}.mobile-principle>i{color:var(--blue);font-size:1.35rem}.mobile-principle div{display:flex;flex-direction:column}.mobile-principle span{font-size:.78rem;color:#637893;margin-top:3px}@media(max-width:1180px){.kpi-grid{grid-template-columns:repeat(3,1fr)}.dashboard-grid,.form-layout,.asset-detail-grid{grid-template-columns:1fr}.asset-summary-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:850px){.app-shell{grid-template-columns:1fr}.sidebar{display:none}.topbar{padding:0 14px}.global-search{width:65vw}.topbar-user>div:nth-child(2){display:none}.page-wrap{padding:16px}.kpi-grid{grid-template-columns:repeat(2,1fr)}.asset-row{grid-template-columns:40px 1fr auto}.asset-row .asset-location,.asset-row>div:nth-child(5){display:none}.filter-bar{grid-template-columns:1fr 1fr}.asset-summary-grid{grid-template-columns:1fr 1fr}.auth-shell{grid-template-columns:1fr}.auth-brand-panel{display:none}}@media(max-width:520px){.kpi-grid{grid-template-columns:1fr}.asset-summary-grid,.filter-bar{grid-template-columns:1fr}.hero-panel{padding:22px}.hero-signal{display:none}.page-heading{align-items:flex-start;flex-direction:column}.detail-dl{grid-template-columns:1fr}}

/* ==========================================================
   CUSTODIUM v1.4 · Sistema visual premium
   ========================================================== */
:root{
  --navy:#071d3f;
  --navy-2:#0b2545;
  --blue:#0b7bff;
  --blue-2:#005ee8;
  --ice:#b3e5ff;
  --bg:#f4f8fc;
  --card:#ffffff;
  --text:#0d1b36;
  --muted:#6d7d98;
  --border:#dfe8f4;
  --success:#19a866;
  --warning:#f4a619;
  --danger:#ef4454;
  --shadow-soft:0 12px 30px rgba(26,62,105,.08);
}

body{background:linear-gradient(180deg,#f8fbff 0%,#f3f7fb 100%)}
.app-shell{grid-template-columns:250px minmax(0,1fr)}
.main-area{background:transparent}
.page-wrap{max-width:1660px;padding:14px 24px 34px}

/* Sidebar */
.sidebar{
  padding:16px 14px 0;
  background:linear-gradient(180deg,#061a3a 0%,#082a55 54%,#03162e 100%);
  overflow:hidden;
  box-shadow:12px 0 35px rgba(4,26,58,.08);
}
.brand{padding:2px 8px 14px}
.brand img{width:196px;max-width:100%}
.sidebar-nav{gap:3px}
.sidebar .nav-link{
  min-height:43px;
  padding:8px 13px;
  border-radius:12px;
  gap:13px;
  color:#c8d7ea;
  font-weight:600;
  font-size:.93rem;
}
.sidebar .nav-link i{font-size:1.08rem;width:22px}
.sidebar .nav-link.active{
  color:#fff;
  background:linear-gradient(100deg,#0877ff 0%,#0a66e8 100%);
  box-shadow:0 9px 22px rgba(0,110,255,.30);
}
.sidebar .nav-link.disabled{opacity:.78;cursor:default}
.sidebar .nav-link.disabled:hover{color:#c8d7ea;background:rgba(255,255,255,.03)}
.sidebar-alert-count{
  margin-left:auto;min-width:20px;height:20px;padding:0 6px;border-radius:999px;
  display:grid;place-items:center;background:#ef4454;color:#fff;font-size:.66rem;font-weight:800
}
.sidebar-showcase{
  position:relative;
  flex:1 1 220px;
  min-height:170px;
  margin:12px -14px 0;
  overflow:hidden;
  background:#06172f;
}
.sidebar-showcase-image{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 45%;display:block;
  filter:saturate(1.08) contrast(1.04) brightness(1.04);
}
.sidebar-showcase-shade{
  position:absolute;inset:0;z-index:1;
  background:linear-gradient(180deg,rgba(2,17,38,.00) 0%,rgba(2,17,38,.05) 38%,rgba(2,17,38,.38) 66%,rgba(2,17,38,.94) 100%);
}
.sidebar-showcase-copy{
  position:absolute;z-index:2;left:26px;right:20px;bottom:24px;color:#fff;display:flex;flex-direction:column;align-items:flex-start;
  text-shadow:0 3px 18px rgba(0,0,0,.5)
}
.sidebar-showcase-kicker{font-size:.63rem;letter-spacing:.18em;font-weight:800;color:#8fd0ff;margin-bottom:7px}
.sidebar-showcase-copy strong{font-size:1.18rem;line-height:1.1;letter-spacing:-.02em}
.sidebar-showcase-copy>span:not(.sidebar-showcase-kicker){font-size:.94rem;line-height:1.25;color:#eff6ff;margin-top:5px;max-width:175px}
.sidebar-showcase-line{width:40px;height:4px;border-radius:999px;background:#1081ff;margin-top:14px;box-shadow:0 0 18px rgba(16,129,255,.7)}

/* Topbar */
.topbar{height:70px;padding:0 24px;border-bottom:1px solid #e3ebf5;background:rgba(255,255,255,.94);box-shadow:0 4px 18px rgba(33,66,105,.035)}
.global-search{height:44px;width:min(610px,56vw);border-radius:13px;background:#f8fbff}
.topbar-actions{display:flex;align-items:center;gap:13px}
.topbar-divider{width:1px;height:33px;background:#dfe7f1}
.topbar-alert-button{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;position:relative;color:#0a2248;text-decoration:none;font-size:1.18rem}
.topbar-alert-button:hover{background:#f0f6fd;color:#086ee8}
.topbar-alert-button span{position:absolute;right:1px;top:0;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:#ef4454;color:#fff;font-size:.64rem;font-weight:800;display:grid;place-items:center;border:2px solid #fff}
.topbar-logout{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;color:#61738f;text-decoration:none}
.topbar-logout:hover{background:#f1f6fb;color:#0b6fe8}

/* Hero */
.custodium-hero{
  position:relative;min-height:184px;border-radius:22px;overflow:hidden;border:1px solid #d7e4f2;box-shadow:var(--shadow-soft);background:#dcecff;
  display:flex;align-items:center;justify-content:space-between;gap:24px;padding:30px 34px;isolation:isolate
}
.custodium-hero__image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 54%;z-index:-3;filter:saturate(1.04) contrast(1.025)}
.custodium-hero__veil{position:absolute;inset:0;z-index:-2;background:linear-gradient(90deg,rgba(255,255,255,.98) 0%,rgba(255,255,255,.95) 29%,rgba(255,255,255,.75) 48%,rgba(255,255,255,.25) 69%,rgba(3,24,53,.12) 100%)}
.custodium-hero__copy{max-width:720px}
.custodium-hero__eyebrow{display:inline-block;color:#116fda;font-size:.68rem;letter-spacing:.14em;font-weight:800;margin-bottom:7px}
.custodium-hero h1{margin:0 0 8px;color:#071d3f;font-size:clamp(2.2rem,3vw,3.2rem);font-weight:850;line-height:1;letter-spacing:-.045em}
.custodium-hero p{margin:0;max-width:650px;color:#425a76;font-size:1.08rem;font-weight:500}
.custodium-hero__message{min-width:286px;max-width:310px;padding:21px 22px;border-radius:17px;color:#fff;background:linear-gradient(135deg,rgba(4,29,64,.96),rgba(6,59,121,.91));border:1px solid rgba(255,255,255,.25);box-shadow:0 18px 42px rgba(2,24,54,.27);backdrop-filter:blur(9px);display:flex;flex-direction:column;align-items:flex-start}
.custodium-hero__message strong{font-size:1.08rem;line-height:1.32}
.custodium-hero__message span{margin-top:4px;color:#c8ddf8;font-size:.79rem}
.custodium-hero__message i{display:block;width:44px;height:4px;border-radius:999px;background:#1680ff;margin-top:13px;box-shadow:0 0 18px rgba(22,128,255,.6)}

/* KPIs */
.kpi-grid-premium{margin:14px 0 14px;gap:12px}
.kpi-card{box-shadow:0 5px 18px rgba(32,70,111,.04);transition:transform .18s ease,box-shadow .18s ease}
.kpi-card:hover{transform:translateY(-1px);box-shadow:0 9px 22px rgba(32,70,111,.07)}
.kpi-card strong{font-size:1.58rem}

/* Main dashboard layout */
.control-grid{display:grid;grid-template-columns:minmax(0,1.52fr) minmax(360px,.95fr);gap:14px;margin-bottom:14px;align-items:stretch}
.right-stack{display:grid;grid-template-rows:auto 1fr;gap:14px;min-width:0}
.panel{border-radius:18px;border:1px solid #dfe8f3;box-shadow:0 6px 18px rgba(36,69,106,.035);padding:16px}
.panel-head-compact{margin-bottom:12px}
.panel-head-compact>div{display:flex;gap:10px;align-items:flex-start}
.panel-head-compact h2{margin:0 0 2px;font-size:1.05rem;letter-spacing:-.015em}
.panel-head-compact p{font-size:.79rem}
.panel-title-icon{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;flex:0 0 auto;font-size:1rem}
.panel-title-icon.blue{background:#e7f2ff;color:#0b75f4}

/* Real map */
.map-panel{padding-bottom:14px}
.asset-map-wrap{position:relative;min-height:330px;border-radius:15px;overflow:hidden;border:1px solid #e2eaf4;background:linear-gradient(135deg,#eef5fb,#e6f0f8)}
.asset-map{height:330px;width:100%;z-index:1}
.asset-map .leaflet-control-zoom{border:0;box-shadow:0 6px 18px rgba(16,51,89,.18)}
.asset-map .leaflet-control-zoom a{color:#0b4f9f;border:0}
.asset-map .leaflet-popup-content-wrapper{border-radius:13px;box-shadow:0 12px 30px rgba(19,53,91,.18)}
.asset-map .leaflet-popup-content{margin:11px 13px}
.map-empty-state{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:500;width:min(360px,82%);padding:18px;border-radius:15px;background:rgba(255,255,255,.94);box-shadow:0 10px 26px rgba(30,66,107,.12);display:flex;flex-direction:column;align-items:center;text-align:center;color:#5f718b;pointer-events:none}
.map-empty-state i{font-size:1.6rem;color:#0b7bff;margin-bottom:5px}.map-empty-state strong{color:#183554}.map-empty-state span{font-size:.8rem;margin-top:3px}
.custodium-map-pin{width:34px;height:34px;border-radius:50% 50% 50% 0;transform:rotate(-45deg);display:grid;place-items:center;color:#fff;border:3px solid #fff;box-shadow:0 6px 15px rgba(19,58,100,.25)}
.custodium-map-pin i{transform:rotate(45deg);font-size:.82rem}
.map-pin-low{background:#0b7bff}.map-pin-medium{background:#f3a20c}.map-pin-high{background:#ef6b3d}.map-pin-critical{background:#e93c4c}
.map-popup-card{display:flex;flex-direction:column;min-width:180px}.map-popup-card strong{font-size:.96rem;color:#0b2348}.map-popup-card span{font-size:.78rem;margin-top:2px;color:#405a78}.map-popup-card small{font-size:.72rem;color:#798ba3;margin-top:2px}.map-popup-card a{margin-top:7px;color:#0b74f0;text-decoration:none;font-weight:700;font-size:.77rem}

/* Risk */
.risk-overview__body{display:grid;grid-template-columns:118px 1fr;gap:15px;align-items:center}
.risk-donut{width:112px;height:112px;border-radius:50%;background:conic-gradient(#18a865 0 var(--normal-end),#f2aa1c var(--normal-end) var(--attention-end),#ef4454 var(--attention-end) 100%);display:grid;place-items:center;position:relative}
.risk-donut.no-data{background:#dfe8f2}.risk-donut:after{content:"";position:absolute;width:76px;height:76px;border-radius:50%;background:#fff}
.risk-donut>div{z-index:1;display:flex;flex-direction:column;align-items:center;line-height:1}.risk-donut strong{font-size:1.25rem}.risk-donut span{font-size:.67rem;color:#6f8198;margin-top:3px}
.risk-legend{display:flex;flex-direction:column;gap:8px}.risk-legend>div{display:grid;grid-template-columns:10px 1fr auto 34px;gap:7px;align-items:center;font-size:.76rem}.risk-legend strong{font-size:.82rem}.risk-legend em{font-style:normal;color:#7b8da5;text-align:right}.risk-dot{width:9px;height:9px;border-radius:50%}.risk-dot.normal{background:#18a865}.risk-dot.attention{background:#f2aa1c}.risk-dot.critical{background:#ef4454}
.risk-inline-alerts{margin-top:12px;display:flex;flex-direction:column;gap:6px}.risk-inline-alert{display:flex;gap:8px;align-items:flex-start;padding:8px 9px;border-radius:10px;font-size:.72rem;background:#f8fafc;border:1px solid #edf2f7;color:#50647f}.risk-inline-alert i{margin-top:1px}.risk-inline-alert strong{color:#223b59}.risk-critical,.risk-high{background:#fff6f7;border-color:#ffe0e4;color:#9f3340}.risk-medium{background:#fffaf0;border-color:#ffedc8;color:#8e6817}

/* Selected asset */
.selected-asset-card{padding:0;overflow:hidden}.selected-asset-card__title{height:42px;padding:0 14px;display:flex;align-items:center;justify-content:space-between;background:linear-gradient(90deg,#eef6ff,#f8fbff);border-bottom:1px solid #e1eaf4;font-size:.78rem;font-weight:800;color:#173c6c}.selected-asset-card__title a{color:#176fdc}.selected-asset-card__body{display:grid;grid-template-columns:94px 1fr;gap:13px;padding:14px}.selected-asset-visual{min-height:132px;border-radius:13px;background:linear-gradient(160deg,#e9f5ff,#f7fbff);display:grid;place-items:center;border:1px solid #e0ebf5}.selected-asset-visual img{width:64px;height:64px}.selected-asset-heading{display:flex;align-items:center;gap:9px;margin-bottom:8px}.selected-asset-heading strong{font-size:1.3rem;letter-spacing:-.03em}.selected-asset-data dl{display:grid;grid-template-columns:132px 1fr;gap:5px 9px;margin:0;font-size:.72rem}.selected-asset-data dt{font-weight:600;color:#6d7e97}.selected-asset-data dt i{width:15px;color:#476b98}.selected-asset-data dd{margin:0;color:#193858;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Bottom cards */
.dashboard-bottom-grid{display:grid;grid-template-columns:1.25fr .8fr .9fr;gap:14px}
.compact-panel{min-height:205px}.compact-table-wrap{overflow-x:auto}.premium-table{width:100%;border-collapse:collapse;font-size:.72rem}.premium-table th{background:#f6f9fc;color:#63748c;font-size:.66rem;padding:7px 8px;text-align:left;font-weight:800;white-space:nowrap}.premium-table td{padding:8px;border-bottom:1px solid #edf2f7;white-space:nowrap;color:#4b607c}.premium-table td:first-child a{font-weight:800;color:#173c70;text-decoration:none}.table-result{display:inline-flex;gap:4px;align-items:center;font-weight:700;font-size:.68rem}
.reconciliation-numbers{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.reconciliation-numbers>div{padding:13px 8px;border-radius:12px;background:#f2f7fc;text-align:center;display:flex;flex-direction:column}.reconciliation-numbers span{font-size:.68rem;color:#6b7e96}.reconciliation-numbers strong{font-size:1.35rem;color:#15395f}.reconciliation-numbers .diff{background:#fff0f2}.reconciliation-numbers .diff strong{color:#e03c4f}.reconciliation-numbers .ok{background:#eefaf4}.reconciliation-numbers .ok strong{color:#169c60}.reconciliation-status{margin-top:10px;border-radius:11px;padding:10px;display:flex;gap:8px;align-items:flex-start}.reconciliation-status div{display:flex;flex-direction:column}.reconciliation-status strong{font-size:.74rem}.reconciliation-status span{font-size:.68rem;margin-top:2px}.reconciliation-status.warning{background:#fff5f6;color:#a43d49}.reconciliation-status.ok{background:#effaf4;color:#20744b}
.responsible-list{display:flex;flex-direction:column;gap:9px}.responsible-row{display:grid;grid-template-columns:1fr 45px;gap:4px 8px;align-items:center}.responsible-row>div:first-child{display:flex;flex-direction:column;min-width:0}.responsible-row strong{font-size:.75rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.responsible-row span{font-size:.66rem;color:#7b8da4}.responsible-row b{font-size:.75rem;text-align:right}.responsible-row b.good{color:#19a866}.responsible-row b.mid{color:#d3900e}.responsible-row b.low{color:#e24755}.responsible-progress{grid-column:1/-1;height:6px;border-radius:999px;background:#edf2f7;overflow:hidden}.responsible-progress i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#16aa69,#18c27b)}
.premium-empty{height:100%;min-height:150px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#7a8da5}.premium-empty i{font-size:1.6rem;color:#0b79f7;margin-bottom:6px}.premium-empty strong{color:#244361}.premium-empty span{font-size:.75rem;margin-top:3px}.premium-empty-small{min-height:135px}

@media(max-height:760px) and (min-width:851px){
  .sidebar{padding-top:12px}.brand{padding-bottom:9px}.brand img{width:174px}.sidebar .nav-link{min-height:38px;padding-top:6px;padding-bottom:6px}.sidebar-showcase{min-height:145px;margin-top:7px}.sidebar-showcase-copy{bottom:16px}.sidebar-showcase-copy strong{font-size:1.04rem}.sidebar-showcase-copy>span:not(.sidebar-showcase-kicker){font-size:.82rem}
}
@media(max-width:1260px){
  .control-grid{grid-template-columns:1fr}.right-stack{grid-template-columns:1fr 1fr;grid-template-rows:auto}.dashboard-bottom-grid{grid-template-columns:1fr 1fr}.responsibles-card{grid-column:1/-1}.custodium-hero__copy{max-width:64%}.custodium-hero__message{min-width:235px}
}
@media(max-width:850px){
  .custodium-hero{min-height:210px;padding:24px 22px}.custodium-hero__veil{background:linear-gradient(90deg,rgba(255,255,255,.97),rgba(255,255,255,.78))}.custodium-hero__copy{max-width:100%}.custodium-hero__message{display:none}.dashboard-bottom-grid,.right-stack{grid-template-columns:1fr}.responsibles-card{grid-column:auto}.asset-map,.asset-map-wrap{height:320px;min-height:320px}.selected-asset-data dl{grid-template-columns:120px 1fr}
}
@media(max-width:520px){
  .page-wrap{padding:12px}.custodium-hero{min-height:205px;border-radius:18px;padding:22px 18px}.custodium-hero h1{font-size:1.9rem}.custodium-hero p{font-size:.94rem}.custodium-hero__eyebrow{font-size:.59rem}.selected-asset-card__body{grid-template-columns:1fr}.selected-asset-visual{min-height:90px}.selected-asset-data dl{grid-template-columns:1fr}.selected-asset-data dd{margin-bottom:4px}.risk-overview__body{grid-template-columns:100px 1fr}.risk-donut{width:96px;height:96px}.risk-donut.no-data{background:#dfe8f2}.risk-donut:after{width:65px;height:65px}.asset-map,.asset-map-wrap{height:290px;min-height:290px}
}


/* ===== Responsive patch v1.5 ===== */
.sidebar-backdrop{display:none}
.sidebar-toggle{display:none;border:0;background:#eff5fd;color:#0b274f;width:42px;height:42px;border-radius:12px;align-items:center;justify-content:center;font-size:1.35rem;box-shadow:0 4px 12px rgba(17,55,96,.08)}
.topbar-leading{display:flex;align-items:center;gap:12px;min-width:0;flex:1}
.topbar-mobile-brand{display:none;width:38px;height:38px;border-radius:10px;align-items:center;justify-content:center;background:#0a2550}
.topbar-mobile-brand img{width:24px;height:24px;display:block}
.topbar-actions{display:flex;align-items:center;gap:14px;flex-shrink:0}
.topbar-alert-button{position:relative;display:flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:12px;background:#f7faff;border:1px solid var(--border);color:#0f2a53;text-decoration:none}
.topbar-alert-button span{position:absolute;right:-4px;top:-4px;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:#ef4454;color:#fff;font-size:.66rem;display:flex;align-items:center;justify-content:center;font-weight:800}
.topbar-divider{width:1px;height:34px;background:#dfe6ef}
.topbar-logout{display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:10px;color:#31527d;text-decoration:none}
.topbar-logout:hover{background:#f2f6fb}
.sidebar-alert-count{margin-left:auto;background:#ef4454;color:#fff;min-width:18px;height:18px;border-radius:999px;font-size:.66rem;display:inline-flex;align-items:center;justify-content:center;padding:0 5px;font-weight:800}

@media (max-width: 1100px){
  body.sidebar-open{overflow:hidden}
  .app-shell{display:block}
  .sidebar-backdrop{position:fixed;inset:0;background:rgba(4,18,41,.42);backdrop-filter:blur(2px);z-index:1000;opacity:0;pointer-events:none;transition:opacity .2s ease;display:block}
  .sidebar-backdrop.show{opacity:1;pointer-events:auto}
  .sidebar{position:fixed;left:0;top:0;bottom:0;width:286px;max-width:86vw;height:100vh;z-index:1001;transform:translateX(-105%);transition:transform .24s ease;box-shadow:0 18px 40px rgba(8,31,66,.3);padding-bottom:20px}
  .sidebar.is-open{transform:translateX(0)}
  .sidebar-showcase{display:none}
  .sidebar-toggle,.topbar-mobile-brand{display:flex}
  .main-area{width:100%}
  .topbar{height:auto;min-height:72px;padding:12px 16px;gap:12px;align-items:center}
  .global-search{width:100%;max-width:none;flex:1;min-width:0}
  .topbar-user > div:nth-child(2) strong{font-size:.9rem}
  .topbar-user > div:nth-child(2) span{font-size:.73rem}
  .page-wrap{padding:16px 16px 28px}
  .kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .control-grid,.dashboard-bottom-grid,.right-stack,.dashboard-grid,.bottom-grid,.form-layout,.asset-detail-grid{grid-template-columns:1fr !important}
  .right-stack{grid-template-rows:auto}
  .compact-panel,.panel{min-height:auto}
  .custodium-hero,.hero-panel{min-height:auto}
  .custodium-hero__copy{max-width:100%}
  .custodium-hero__message{display:none}
  .asset-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .filter-bar{grid-template-columns:1fr 1fr}
}

@media (max-width: 768px){
  .topbar{flex-wrap:wrap;justify-content:space-between}
  .topbar-leading{order:1;width:100%}
  .topbar-actions{order:0;width:100%;justify-content:flex-end}
  .global-search{height:44px}
  .topbar-user>div:nth-child(2){display:none}
  .topbar-divider{display:none}
  .page-wrap{padding:14px 14px 24px}
  .custodium-hero{border-radius:18px;min-height:190px}
  .custodium-hero__veil{background:linear-gradient(180deg,rgba(255,255,255,.97),rgba(255,255,255,.76))}
  .custodium-hero h1,.hero-panel h1{font-size:1.95rem !important;line-height:1.02}
  .custodium-hero p,.hero-panel p{font-size:.95rem !important;max-width:100%}
  .kpi-grid,.asset-summary-grid,.filter-bar{grid-template-columns:1fr}
  .kpi-card{padding:14px}
  .asset-map-wrap,.asset-map{height:260px !important;min-height:260px !important}
  .risk-overview__body{grid-template-columns:1fr;justify-items:center;text-align:left}
  .selected-asset-card__body{grid-template-columns:1fr}
  .selected-asset-data dl{grid-template-columns:1fr}
  .selected-asset-data dd{white-space:normal}
  .reconciliation-numbers{grid-template-columns:1fr}
  .premium-table{font-size:.68rem}
  .premium-table th,.premium-table td{padding:7px 6px}
  .responsible-row{grid-template-columns:1fr 56px}
  .auth-shell{grid-template-columns:1fr}
  .auth-brand-panel{display:none}
  .auth-login-panel{padding:18px;background:linear-gradient(180deg,#f6faff,#eef4fb)}
  .auth-card{padding:24px 18px;border-radius:20px;width:min(100%,420px)}
  .auth-card-logo{width:170px;margin-bottom:18px}
}

@media (max-width: 480px){
  .sidebar{width:100%;max-width:100%}
  .topbar{padding:10px 12px}
  .topbar-alert-button,.sidebar-toggle{width:40px;height:40px}
  .user-avatar{width:36px;height:36px}
  .page-wrap{padding:12px}
  .panel{padding:14px}
  .panel-head-compact h2,.panel-head h2{font-size:1rem}
  .custodium-hero,.hero-panel{padding:18px}
  .custodium-hero h1,.hero-panel h1{font-size:1.72rem !important}
  .custodium-hero__eyebrow,.eyebrow{font-size:.62rem}
  .map-empty-state{width:90%;padding:14px}
  .auth-card{padding:20px 16px}
  .auth-card h2{font-size:1.4rem}
  .mobile-wrap{padding:14px}
}
