:root{
  --bg:#f0f2f5;
  --card:#ffffff;
  --text:#212529;
  --muted:#5b6168;
  --primary:#007bff;
  --primaryDark:#001933;
  --border:#e6e8eb;
  --focus:#40e0d0;
}

body.theme-neuro{
  --primary:#941750;
  --primaryDark:#941750;
}

html,body{
  margin:0;
  padding:0;
  font-family:"Segoe UI",Tahoma,Geneva,Verdana,sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.6;
}

.container{
  max-width:980px;
  margin:0 auto;
  padding:18px;
}

.header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  color:inherit;
}

.brand img{
  width:52px;
  height:52px;
  border-radius:14px;
}

.brand img.brand-logo-xl{
  width:64px;
  height:64px;
  border-radius:18px;
  border:1px solid var(--border);
  background:var(--card);
  box-shadow:0 10px 26px rgba(0,0,0,0.14);
}

.brand-title{
  display:flex;
  flex-direction:column;
  gap:2px;
}

.brand-title strong{font-size:16px}
.brand-title span{font-size:12px;color:var(--muted)}

.nav{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.nav a{
  font-size:14px;
  text-decoration:none;
  padding:8px 12px;
  border-radius:12px;
  border:1px solid var(--border);
  background:var(--card);
  color:var(--text);
}

.hero{
  background:linear-gradient(180deg, rgba(0,123,255,0.10), rgba(0,123,255,0.00));
  border:1px solid var(--border);
  border-radius:22px;
  padding:18px;
  margin-top:12px;
}

.hero h1{
  margin:0 0 6px 0;
  font-size:26px;
  line-height:1.15;
}

.hero p{
  margin:0;
  color:var(--muted);
}

.bar{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:14px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:10px 14px;
  border-radius:14px;
  border:1px solid transparent;
  cursor:pointer;
  text-decoration:none;
  font-weight:700;
  font-size:15px;
  user-select:none;
}

.btn-primary{background:var(--primaryDark);color:#fff}
.btn-secondary{background:var(--card);color:var(--text);border-color:var(--border)}

.tabs{
  margin-top:14px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.tab{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:14px;
  padding:10px 12px;
  font-weight:700;
  font-size:14px;
  cursor:pointer;
}

.tab[aria-selected="true"]{
  border-color:rgba(0,123,255,0.35);
  box-shadow:0 6px 18px rgba(0,0,0,0.06);
}

.panel{
  margin-top:12px;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:18px;
  padding:16px;
}

.panel h2{
  margin:0 0 8px 0;
  font-size:18px;
}

.panel p{
  margin:0;
  color:var(--muted);
}

.panel .block{
  margin-top:12px;
  padding:12px 14px;
  border:1px solid var(--border);
  border-radius:14px;
  background:#fafbfc;
}

.field{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-top:10px;
}

.field label{
  font-size:13px;
  color:var(--muted);
  font-weight:700;
}

.field input,.field textarea{
  width:100%;
  box-sizing:border-box;
  padding:12px;
  border-radius:12px;
  border:1px solid var(--border);
  font-size:16px;
  background:#fff;
}

.field textarea{min-height:90px;resize:vertical}

.note{
  background:#e7f3ff;
  border:1px solid #b3d7ff;
  border-radius:14px;
  padding:12px 14px;
  color:#0b3d75;
}

.footer{
  margin-top:24px;
  padding:18px 0;
  font-size:13px;
  color:var(--muted);
}

.footer a{color:inherit}

 .overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.75);
  z-index:9999;
  display:flex;
  align-items:stretch;
  justify-content:center;
  padding:14px;
  box-sizing:border-box;
 }
 
 .overlay-card{
  width:100%;
  max-width:980px;
  background:var(--card);
  border-radius:18px;
  border:1px solid var(--border);
  overflow:hidden;
  display:flex;
  flex-direction:column;
 }
 
 .overlay-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:12px 14px;
  border-bottom:1px solid var(--border);
 }
 
 .overlay-title{
  font-weight:800;
  font-size:14px;
  color:var(--text);
 }
 
 .overlay-body{
  padding:0;
  flex:1;
  min-height:60vh;
 }
 
 .overlay-body iframe{
  width:100%;
  height:100%;
  border:0;
 }
 
 .overlay-footer{
  padding:12px 14px;
  border-top:1px solid var(--border);
  color:var(--muted);
  font-size:13px;
 }
 
button:focus,a:focus,input:focus,textarea:focus{
  outline:3px solid var(--focus);
  outline-offset:2px;
}

@media (min-width:760px){
  .hero{padding:24px}
  .hero h1{font-size:34px}
}
