:root,html[data-theme=light]{
 --bg:#f5f7fa;
 --ink:#15243a;
 --muted:#63748a;
 --panel:#fff;
 --line:#e1e7ee;
 --accent:#21638f;
 --dg-shadow:0 12px 38px rgba(20,39,63,.06);
}
html[data-theme=dark]{
 --bg:#0d1520;
 --ink:#edf3f9;
 --muted:#a2afbf;
 --panel:#172231;
 --line:#2b3b4c;
 --accent:#83bde5;
 --dg-shadow:0 12px 38px rgba(0,0,0,.18);
}
@media(prefers-color-scheme:dark){
 html[data-theme=system]{
  --bg:#0d1520;
  --ink:#edf3f9;
  --muted:#a2afbf;
  --panel:#172231;
  --line:#2b3b4c;
  --accent:#83bde5;
  --dg-shadow:0 12px 38px rgba(0,0,0,.18);
 }
}
body{
 background:var(--bg);
 color:var(--ink);
 -webkit-font-smoothing:antialiased;
}
header{
 min-height:76px;
 height:auto;
 background:var(--panel);
 border-bottom:1px solid var(--line);
 box-shadow:0 2px 15px rgba(15,30,50,.035);
}
.brand{
 font-weight:850;
 letter-spacing:.055em;
}
nav a{
 font-weight:550;
}
nav a:hover{
 color:var(--accent);
}
h1,h2,h3{
 letter-spacing:-.035em;
}
h1{
 font-family:inherit;
 font-weight:800;
 line-height:1.12;
}
.hero{
 min-height:68vh;
}
.hero h1{
 max-width:850px;
}
.primary,.cta a{
 border-radius:10px;
}
.card,.product-card,.customer-stats>div,
.stats>div,.bank{
 background:var(--panel);
 border:1px solid var(--line);
 border-radius:16px;
 box-shadow:var(--dg-shadow);
}
.card,.product-card{
 transition:transform .22s ease,box-shadow .22s ease;
}
.card:hover,.product-card:hover{
 transform:translateY(-3px);
 box-shadow:0 18px 42px rgba(20,39,63,.12);
}
.admin aside,.portal aside{
 border-radius:14px;
}
.admin>section,.portal>section{
 min-width:0;
}
input,textarea,select{
 border-radius:9px;
}
input:focus-visible,textarea:focus-visible,
select:focus-visible,button:focus-visible,
a:focus-visible{
 outline:2px solid var(--accent);
 outline-offset:3px;
}
button,input,select,textarea{
 font:inherit;
}
img{
 max-width:100%;
 height:auto;
}
footer{
 border-top:1px solid var(--line);
}
@media(max-width:820px){
 header{
  padding:14px 5vw;
  gap:12px;
  flex-wrap:wrap;
 }
 nav{
  gap:14px;
  flex-wrap:wrap;
 }
 .hero{
  min-height:auto;
 }
 .admin>section,.portal>section{
  width:100%;
 }
 table{
  display:block;
  max-width:100%;
  overflow-x:auto;
 }
}
@media(prefers-reduced-motion:reduce){
 .card,.product-card{
  transition:none;
 }
}
