/* ANaMed BioAge Research Platform — Exact Design Edition v2.0.0 */
:root{
  --navy:#102b49;
  --navy2:#153b62;
  --navy3:#0c243e;
  --blue:#2675cb;
  --blue2:#3d8ed8;
  --sky:#eaf5ff;
  --cyan:#61c6ec;
  --teal:#24aa83;
  --green:#2fb078;
  --orange:#ef9950;
  --purple:#9568dc;
  --ink:#173352;
  --ink2:#314d68;
  --muted:#74879a;
  --bg:#f5f9fd;
  --panel:#ffffff;
  --line:#dce7f1;
  --line2:#e8eff5;
  --soft:#f1f7fc;
  --shadow:0 10px 30px rgba(32,73,115,.075);
  --shadow2:0 18px 44px rgba(27,65,105,.095);
}
html,body{background:var(--bg);color:var(--ink)}
body{
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  font-size:13px;
  letter-spacing:-.005em;
}
*{scrollbar-width:thin;scrollbar-color:#b8c9d8 transparent}
button,input,select{font:inherit}

/* shell */
.sidebar{
  width:220px;
  padding:14px 10px;
  background:linear-gradient(180deg,#112c4a 0%,#102d4c 52%,#0c243e 100%);
  box-shadow:10px 0 34px rgba(16,43,73,.15);
}
.main{margin-left:220px;width:calc(100% - 220px)}
.brand{
  padding:4px 8px 14px;
  border-bottom:1px solid rgba(255,255,255,.08);
  gap:9px;
}
.brand-mark{width:38px;height:45px}
.brand-mark svg{width:31px;height:39px;stroke:#6ed7ff}
.brand-name{font-size:22px;line-height:1;font-weight:800;color:#fff;letter-spacing:-.03em}
.brand-sub{font-size:7px;letter-spacing:.12em;color:#9fc4e4;line-height:1.35}
.nav{gap:5px;padding:15px 0}
.nav-item{
  min-height:43px;
  padding:9px 11px;
  border-radius:9px;
  color:#d5e3ef;
  font-size:12px;
  font-weight:520;
  transition:.18s ease;
}
.nav-item:hover{background:rgba(255,255,255,.055);color:#fff}
.nav-item.active{
  background:linear-gradient(90deg,#1d4d7f,#214f82);
  color:#fff;
  box-shadow:inset 3px 0 0 #73d4ff,0 8px 18px rgba(0,0,0,.08);
}
.nav-icon{width:22px;height:22px;display:grid;place-items:center;color:#cfe7fa}
.nav-icon svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.sidebar-footer{padding:8px 3px 0}
.research-note{border-radius:10px;padding:10px;background:rgba(255,255,255,.035)}
.research-note b{font-size:10px}.research-note span{font-size:9px}
.version-row{font-size:9px}

.topbar{
  height:58px;
  padding:0 18px;
  background:rgba(255,255,255,.94);
  border-bottom:1px solid #e1eaf2;
  box-shadow:0 3px 14px rgba(35,75,118,.035);
}
.topbar-title{display:none}
.topbar-actions{gap:9px}
.search-wrap{width:210px;height:34px;border-radius:8px;background:#fbfdff;border-color:#dce6ee}
.search-wrap input{font-size:11px}
.status-pill{height:34px;padding:0 10px;border-radius:8px;font-size:10px;background:#f7fafc}
.user-badge{width:32px;height:32px;font-size:10px}
.content{max-width:none;padding:14px 16px 28px;margin:0}

/* page header */
.page-heading{
  min-height:72px;
  align-items:center;
  margin:0 0 10px;
  position:relative;
  overflow:hidden;
}
.page-heading h1{font-size:28px;line-height:1.05;margin:0 0 4px;letter-spacing:-.035em;color:#16314f}
.page-heading p{font-size:11px;line-height:1.45;color:#6d8195;max-width:820px}
.page-heading .badge.soft{margin-left:auto}
#page-overview .page-heading{
  min-height:92px;
  padding-right:480px;
  background:url('top_mountains.webp') right bottom/500px 100px no-repeat;
}
#page-overview .page-heading:after{
  content:"Больше данных.\AГлубже понимание.\AЗдоровое завтра.";
  white-space:pre;
  position:absolute;
  right:180px;
  top:12px;
  color:#35618f;
  font-family:Georgia,serif;
  font-style:italic;
  font-size:15px;
  line-height:1.35;
  text-align:center;
}
#page-overview .page-heading .badge{display:none}

/* common */
.card,.stat-strip,.hero-card,.quote-card,.form-section,.filters-card,.model-card,.registry-table,.material{
  border:1px solid var(--line);
  background:#fff;
  box-shadow:var(--shadow);
}
.card{border-radius:11px;padding:12px}
.card-head{margin-bottom:9px}
.card-head h3{font-size:14px;margin:2px 0 0;letter-spacing:-.02em}
.eyebrow{font-size:7.5px;letter-spacing:.12em;color:#778b9d;font-weight:800}
.badge,.status-tag{font-size:8.5px;border-radius:999px;padding:4px 7px}
.btn{border-radius:7px;padding:8px 12px;font-size:10px;min-height:34px}
.btn.primary{background:linear-gradient(180deg,#2e7cd2,#2166b8);box-shadow:0 7px 15px rgba(47,111,218,.17)}
.btn.secondary{background:#edf5fd;border-color:#d4e6f5;color:#2d6598}
.btn.ghost{background:#fff}
.link-btn{font-size:9px;border:1px solid #dce7ef;border-radius:7px;padding:6px 9px;background:#fff;color:#2e69a1}
.fine{font-size:8.7px;line-height:1.5;color:#728598}
.notice{font-size:10px;border-radius:9px;padding:9px 11px}

/* overview */
.stat-strip{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  border-radius:10px;
  margin-bottom:10px;
  box-shadow:none;
  overflow:hidden;
}
.stat-cell{padding:10px 16px;border-right:1px solid var(--line)}
.stat-cell b{font-size:24px;line-height:1;color:#16314f}
.stat-cell span{font-size:9px;color:#6f8294;margin-top:4px}
.hero-grid{grid-template-columns:2.35fr .95fr;gap:10px;margin-bottom:10px}
.hero-card,.quote-card{border-radius:11px;min-height:214px;overflow:hidden}
.hero-card{display:grid;grid-template-columns:1.05fr 1.15fr;background:linear-gradient(110deg,#f9fcff 0%,#edf7ff 45%,#dcedfb 100%)}
.hero-copy{padding:23px 22px;z-index:3}
.hero-copy .eyebrow{display:none}
.hero-copy h2{font-size:24px;line-height:1.08;margin:4px 0 9px;max-width:380px;color:#15314f}
.hero-copy p{font-size:11px;line-height:1.55;color:#566f86;max-width:420px;margin-bottom:13px}
.hero-actions{gap:7px}
.hero-visual{
  min-height:214px;
  background:url('hero_face.webp') center/cover no-repeat;
  position:relative;
}
.hero-visual:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#eef7ff 0%,rgba(238,247,255,.12) 34%,transparent 66%)}
.hero-visual>*{display:none!important}
.quote-card{
  padding:22px 18px;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  background:
    linear-gradient(90deg,rgba(248,252,255,.97) 0%,rgba(248,252,255,.85) 45%,rgba(248,252,255,.12) 73%),
    url('mountains.webp') center/cover no-repeat;
}
.quote-card .mountain-lines{display:none}
.quote-card .eyebrow{display:none}
.quote-card blockquote{font-size:18px;line-height:1.33;color:#315f90;margin:11px 0 12px;max-width:210px}
.mini-checks{font-size:9px;gap:6px;color:#4c6a86}
.dashboard-grid{grid-template-columns:1.65fr 1fr 1.05fr;gap:10px}
.profile-preview{grid-column:span 2}
.chart-card{grid-column:3;grid-row:1 / span 2}
.profile-row{gap:7px}
.metric-tile{border-radius:8px;min-height:70px;padding:10px;background:linear-gradient(180deg,#fbfdff,#f3f8fc)}
.metric-tile span{font-size:8px}.metric-tile b{font-size:20px;margin:4px 0 1px}.metric-tile small{font-size:7.5px}
.layer-list{gap:8px}.layer-title{font-size:9px}.layer-title b{font-size:8px}.track{height:7px}
.model-mini{min-height:150px}
.model-kpis{gap:5px}.model-kpis div{border-radius:7px;padding:7px}.model-kpis b{font-size:15px}.model-kpis span{font-size:7.5px}
.qc-ring{width:72px;height:72px}.qc-ring b{font-size:16px}.qc-copy b{font-size:10px}.qc-copy p{font-size:8.5px}

/* helper tabs inserted by exact-ui.js */
.exact-tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);margin:-1px 0 10px;padding:0 3px}
.exact-tab{border:0;background:transparent;color:#6c8094;font-size:9px;font-weight:700;padding:8px 11px;border-bottom:2px solid transparent;cursor:pointer}
.exact-tab.active{color:#2168b2;border-bottom-color:#2c79cf}
.exam-stepper{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:0 0 10px}
.exam-step{display:flex;align-items:center;gap:8px;padding:8px 10px;background:#fff;border:1px solid var(--line);border-radius:9px;color:#708397;cursor:pointer}
.exam-step b{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:#edf5fd;color:#2c6ba7;font-size:9px}
.exam-step span{font-size:9px;font-weight:700}
.exam-step.active{border-color:#bcd7ef;background:#f7fbff;color:#1f5f9f}

/* individual profile */
.profile-dashboard{grid-template-columns:1.15fr 1fr 1fr;gap:10px}
.profile-identity{padding:10px 12px;border-radius:10px}
.avatar-science{width:42px;height:42px;border-radius:50%;font-size:8px}
.profile-identity h3{font-size:15px;margin:2px 0}.profile-identity p{font-size:9px;color:#718499;margin:2px 0}
.data-complete{margin-left:auto}.data-complete span{font-size:8px}.data-complete b{font-size:14px}
.profile-main{padding:12px}
.score-columns{gap:8px}
.score-box{border-radius:8px;padding:10px}.score-box span{font-size:8px}.score-box b{font-size:24px}.score-box small{font-size:7.5px}
.gauge{width:110px;height:110px}.gauge:after{inset:10px}
.gauge div b{font-size:24px}.gauge div span{font-size:7px}
.uncertainty{margin-top:9px;border-radius:8px;padding:8px 9px}.uncertainty span,.uncertainty b{font-size:8px}
.component-card h3{font-size:14px}.big-result{font-size:30px;margin:7px 0}.triplet{gap:5px}.triplet div{padding:7px;border-radius:7px}.triplet span{font-size:7px}.triplet b{font-size:12px}
.condition-tags span{font-size:7.5px;border-radius:999px;padding:4px 6px}
.contributors-card{grid-column:1 / span 2}.cohort-position-card{grid-column:3}.provenance-card{grid-column:1/-1}
.provenance-flow{font-size:8px;gap:5px}.provenance-flow span{padding:6px 8px;border-radius:6px}
.provenance-grid{gap:6px}.provenance-grid div{padding:7px;border-radius:7px}.provenance-grid span{font-size:7px}.provenance-grid b{font-size:9px}

/* input */
.input-layout{gap:10px;grid-template-columns:minmax(0,1fr) 250px}
.form-stack{gap:8px}.form-section{border-radius:9px;box-shadow:none}.form-section[open]{box-shadow:0 6px 18px rgba(35,75,116,.045)}
.form-section summary{padding:11px 12px}.form-section summary b{font-size:10px}.form-section summary small{font-size:7.5px}.step-number{width:22px;height:22px;font-size:8px}
.field-grid{gap:7px;padding:0 12px 12px}.field-grid label,.filters-card label{font-size:8px}.field-grid input,.field-grid select,.filters-card select,input[type=file]{border-radius:7px;padding:8px 9px;font-size:10px}
.derived-row{padding:0 12px 11px}.derived-row span{font-size:7.5px;padding:5px 7px}
.input-side{gap:9px}.sticky-card{top:66px}.live-score{padding:7px 0}.live-score span{font-size:8px}.live-score b{font-size:15px}

/* cohort */
.cohort-layout{grid-template-columns:205px 1fr;gap:10px}.filters-card{top:66px;border-radius:10px;padding:12px}.filters-card h3{font-size:13px}.cohort-kpis{gap:7px}.cohort-note{font-size:8px}.two-col{gap:10px}.stacked-bar{height:28px;margin:20px 0 10px}.band-legend{font-size:8px}

/* models */
.model-grid{gap:10px}.model-card{border-radius:10px;padding:13px}.model-card h2{font-size:17px}.model-card code{font-size:7.5px}.model-summary{gap:6px;margin:10px 0}.model-summary div{padding:7px;border-radius:7px}.model-summary b{font-size:7px}.model-summary span{font-size:8px}.metric-band{gap:5px}.metric-band div{padding:8px;border-radius:7px}.metric-band b{font-size:15px}.metric-band span{font-size:7px}
.registry-table table{font-size:8px}.registry-table th,.registry-table td{padding:8px}.registry-table th{font-size:7.5px}

/* validation */
.validation-kpis{gap:7px;margin-bottom:10px}.validation-kpis .metric-tile{min-height:66px}.validation-kpis .metric-tile b{font-size:19px}
.fold-row{padding:7px;border-radius:6px}.fold-row b,.fold-row span{font-size:8px}
.importance-row{grid-template-columns:125px 1fr 45px}.importance-row span,.importance-row b{font-size:7.5px}.importance-row .bar{height:6px}
.baseline-card{margin-top:10px}.baseline-bars{gap:8px}.baseline-bars div{grid-template-columns:150px 1fr 78px}.baseline-bars span,.baseline-bars b{font-size:8px}.baseline-bars i{height:7px}

/* quality / methods / publications */
.quality-grid{gap:10px}.quality-hero{min-height:150px}.quality-hero h2{font-size:22px}.quality-hero p{font-size:9px}.quality-donut{width:110px;height:110px}.quality-donut b{font-size:18px}.quality-donut span{font-size:7px}.qc-bar{grid-template-columns:135px 1fr 34px}.qc-bar span,.qc-bar b{font-size:7.5px}.check-list{font-size:9px}.security-badges span{font-size:7px}
.methods-flow{gap:5px}.methods-flow div{min-width:125px;border-radius:8px;padding:9px;box-shadow:none}.methods-flow b{font-size:8px}.methods-flow span{font-size:9px}.methods-flow small{font-size:7px}.formula-lines code{font-size:8.5px;padding:7px;border-radius:6px}.method-list b{font-size:9px}.method-list span{font-size:7.5px}.download-grid a{border-radius:7px;padding:9px}.download-grid b{font-size:9px}.download-grid span{font-size:7px}
.materials-grid{gap:8px}.material{border-radius:9px;padding:12px}.material-icon{font-size:22px}.material h3{font-size:13px}.material p{font-size:8.5px;min-height:38px}

/* charts */
canvas,svg#positionPlot{border:0!important;background:#fff!important;border-radius:6px!important}
.chart-card canvas{max-height:175px}
#validationScatter,#rocChart{max-height:320px}
#officeChart{max-height:330px}

/* responsive */
@media(max-width:1180px){
  .sidebar{width:205px}.main{margin-left:205px;width:calc(100% - 205px)}
  #page-overview .page-heading{padding-right:320px;background-size:360px 88px}
  #page-overview .page-heading:after{right:100px}
  .dashboard-grid{grid-template-columns:1fr 1fr}.chart-card{grid-column:auto;grid-row:auto}.profile-preview{grid-column:1/-1}
  .profile-dashboard{grid-template-columns:1fr 1fr}.contributors-card,.cohort-position-card{grid-column:auto}.provenance-card{grid-column:1/-1}
}
@media(max-width:900px){
  .sidebar{width:220px}.main{margin-left:0;width:100%}.content{padding:12px}
  #page-overview .page-heading{padding-right:0;background:none}.page-heading h1{font-size:23px}#page-overview .page-heading:after{display:none}
  .hero-grid,.dashboard-grid,.profile-dashboard,.input-layout,.cohort-layout,.two-col,.quality-grid{grid-template-columns:1fr}
  .profile-preview,.chart-card,.contributors-card,.cohort-position-card,.provenance-card{grid-column:auto;grid-row:auto}
  .hero-card{grid-template-columns:1fr 1fr}.stat-strip{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:600px){
  .topbar{height:54px}.content{padding:10px}.page-heading{min-height:auto;padding:4px 0 7px}.page-heading h1{font-size:20px}.page-heading p{font-size:9.5px}
  .stat-strip{grid-template-columns:1fr 1fr}.stat-cell b{font-size:20px}.hero-card{grid-template-columns:1fr}.hero-copy h2{font-size:22px}.hero-visual{min-height:180px}
  .profile-row,.validation-kpis,.cohort-kpis,.score-columns,.field-grid,.materials-grid,.download-grid,.exam-stepper{grid-template-columns:1fr}
  .exact-tabs{overflow:auto}.exact-tab{white-space:nowrap}
}
