.login-view { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at top left, #e8f0fe, transparent 40%), var(--bg); }
.login-card { width: min(420px, 100%); display: grid; gap: 14px; padding: 28px; border: 1px solid var(--line); border-radius: 28px; background: white; box-shadow: var(--shadow); }
.login-card h1 { margin: 8px 0 0; font-size: 28px; }
.login-card p { margin: 0 0 8px; color: var(--muted); }
.login-card label { display: grid; gap: 6px; font-weight: 700; }
.brand-line, .brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center; background: var(--blue); color: white; font-weight: 900; letter-spacing: -.04em; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 260px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 18px; padding: 18px; border-right: 1px solid var(--line); background: rgba(255,255,255,.8); backdrop-filter: blur(16px); }
.nav-stack { display: grid; gap: 6px; }
.nav { width: 100%; display: flex; justify-content: space-between; align-items: center; border-radius: 999px; padding: 11px 14px; background: transparent; color: #475569; font-weight: 800; }
.nav.active, .nav:hover { background: var(--blue-soft); color: #174ea6; }
.nav em { min-width: 24px; padding: 2px 7px; border-radius: 999px; background: white; font-style: normal; font-size: 12px; }
.compose-button { width: 100%; border-radius: 18px; background: #c2e7ff; color: #001d35; padding: 15px 18px; font-size: 16px; font-weight: 900; box-shadow: 0 10px 20px rgba(37, 99, 235, .14); }
.sidebar-section { margin-top: auto; padding: 12px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.sidebar-section + .sidebar-section { margin-top: 0; }
.sidebar-section small { display: block; color: var(--muted); margin-bottom: 6px; }
.sidebar-section select { width: 100%; }
.sync-dot { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; margin-top: 8px; }
.sync-dot::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.main { min-width: 0; padding: 22px; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 18px; }
.topbar h1 { margin: 0; font-size: 28px; letter-spacing: -.04em; }
.topbar p { margin: 2px 0 0; color: var(--muted); }
.searchbox { width: min(520px, 42vw); display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: white; }
.searchbox input { flex: 1; border: 0; box-shadow: none; background: transparent; }
.view { display: none; }
.view.active { display: block; }
.quick-stats, .kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.stat { padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: 0 10px 25px rgba(16,24,40,.05); }
.stat small { display: block; color: var(--muted); }
.stat b { display: block; font-size: 24px; margin-top: 4px; }
@media (max-width: 980px) { .app-shell { grid-template-columns: 1fr; } .sidebar { position: static; height: auto; } .topbar { align-items: stretch; flex-direction: column; } .searchbox { width: 100%; } .quick-stats, .kpis { grid-template-columns: repeat(2, 1fr); } }
.kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1200px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
