:root{
  --ember-bg:#f3f4f6;
  --ember-card:#ffffff;
  --ember-text:#111827;
  --ember-muted:#6b7280;
  --ember-line:#d1d5db;
  --ember-dark:#111111;
  --ember-dark-2:#1f2937;
  --ember-accent:#b91c1c;
  --ember-accent-hover:#991b1b;
  --ember-shadow:0 10px 30px rgba(0,0,0,.08);
  --ember-radius:16px;
}

*{
  box-sizing:border-box;
}

body{
  margin:0;
  font-family:Arial, sans-serif;
  background:var(--ember-bg);
  color:var(--ember-text);
}

a{
  color:inherit;
  text-decoration:none;
}

.login-wrap{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
}

.login-card{
  width:100%;
  max-width:460px;
  background:#fff;
  border-radius:20px;
  box-shadow:var(--ember-shadow);
  padding:34px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:18px;
}

.brand-mark{
  width:18px;
  height:18px;
  background:var(--ember-accent);
  border-radius:4px;
}

.brand-name{
  font-size:28px;
  font-weight:700;
  letter-spacing:.5px;
}

.brand-name span{
  color:var(--ember-accent);
}

.login-card h1{
  margin:0 0 10px 0;
  font-size:38px;
}

.login-card p{
  color:var(--ember-muted);
  margin-bottom:22px;
  line-height:1.5;
}

.input{
  width:100%;
  padding:14px 16px;
  border:1px solid var(--ember-line);
  border-radius:12px;
  font-size:16px;
  margin-bottom:14px;
}

.input:focus{
  outline:none;
  border-color:var(--ember-dark);
}

.btn{
  display:inline-block;
  width:100%;
  border:none;
  cursor:pointer;
  background:var(--ember-dark);
  color:#fff;
  padding:14px 16px;
  border-radius:12px;
  font-weight:700;
  font-size:16px;
}

.btn:hover{
  background:var(--ember-dark-2);
}

.error{
  background:#fee2e2;
  color:#991b1b;
  padding:12px 14px;
  border-radius:12px;
  margin-bottom:14px;
}

.portal-shell{
  display:flex;
  min-height:100vh;
}

.sidebar{
  width:260px;
  background:var(--ember-dark);
  color:#fff;
  padding:24px 18px;
}

.logo{
  font-size:28px;
  font-weight:700;
  letter-spacing:.5px;
  margin-bottom:28px;
}

.logo span{
  color:#ef4444;
}

.nav-link{
  display:block;
  padding:12px 14px;
  border-radius:12px;
  margin-bottom:8px;
  color:#e5e7eb;
}

.nav-link:hover,
.nav-link.active{
  background:rgba(255,255,255,.08);
  color:#fff;
}

.main{
  flex:1;
  padding:28px;
}

.topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  margin-bottom:28px;
}

.page-title{
  font-size:32px;
  font-weight:700;
  margin:0;
}

.page-subtitle{
  color:var(--ember-muted);
  margin-top:6px;
}

.btn-top{
  display:inline-block;
  border:none;
  cursor:pointer;
  background:var(--ember-accent);
  color:#fff;
  padding:12px 16px;
  border-radius:12px;
  font-weight:700;
}

.btn-top:hover{
  background:var(--ember-accent-hover);
}

.grid{
  display:grid;
  grid-template-columns:repeat(12,1fr);
  gap:20px;
}

.card{
  grid-column:span 12;
  background:var(--ember-card);
  border-radius:var(--ember-radius);
  box-shadow:var(--ember-shadow);
  padding:22px;
}

.card h3{
  margin-top:0;
}

.kpi{
  font-size:34px;
  font-weight:700;
  margin:8px 0;
}

.muted{
  color:var(--ember-muted);
}

.list{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.list-item{
  padding:14px;
  border:1px solid var(--ember-line);
  border-radius:12px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
}

.badge{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  background:#fee2e2;
  color:#991b1b;
  font-size:12px;
  font-weight:700;
}

@media (max-width: 900px){
  .portal-shell{
    flex-direction:column;
  }

  .sidebar{
    width:100%;
  }

  .main{
    padding:18px;
  }

  .topbar{
    flex-direction:column;
    align-items:flex-start;
  }
  select.input{
  appearance:none;
  background:#fff;
}
.nav-actions{
    display:flex;
    gap:12px;
    align-items:center;
}

.btn-secondary{
    background:transparent;
    border:1px solid rgba(255,255,255,.2);
    color:#fff;
    border-radius:12px;
    padding:10px 18px;
    font-weight:700;
    transition:.2s;
}

.btn-secondary:hover{
    border-color:var(--primary);
    color:var(--primary);
}
}