/* SACTCheck v0.48.0 study-release visual polish. */
:root{
  --brand-navy:#12314a;
  --brand-navy-deep:#0a2538;
  --brand-teal:#20a8a6;
  --brand-teal-light:#71ddd4;
  --brand-ink:#17212b;
  --brand-surface:#f5f8fa;
  --brand-soft:#edf5f7;
  --brand-border:#d4e0e6;
  --brand-shadow:0 14px 35px rgba(11,43,64,.10);
}
body{background:linear-gradient(180deg,#eef4f7 0,#f7f9fa 280px,#f3f6f8 100%);color:var(--brand-ink)}
.app-header{padding:0;background:linear-gradient(118deg,var(--brand-navy-deep),var(--brand-navy) 56%,#174f68);box-shadow:0 5px 20px rgba(7,33,50,.22)}
.app-header-inner{max-width:1180px;margin:0 auto;padding:18px 22px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.brand-lockup{display:flex;align-items:center;gap:14px;color:#fff;text-decoration:none;min-width:0}
.brand-mark{width:58px;height:64px;flex:0 0 auto;filter:drop-shadow(0 5px 8px rgba(0,0,0,.18))}
.brand-copy{min-width:0}.brand-name{display:block;font-size:29px;font-weight:850;line-height:1;letter-spacing:-.6px}.brand-tagline{display:block;margin-top:7px;font-size:13px;line-height:1.35;color:#d9e9f0}
.brand-developer{display:block;margin-top:4px;font-size:11.5px;color:#9fc0ce}
.header-study-meta{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.study-build-badge,.header-version{display:inline-flex;align-items:center;border-radius:999px;font-size:11.5px;font-weight:800;white-space:nowrap}
.study-build-badge{padding:7px 10px;background:rgba(113,221,212,.14);border:1px solid rgba(113,221,212,.45);color:#d7fffb}.header-version{padding:7px 9px;background:rgba(255,255,255,.09);color:#e8f1f5;border:1px solid rgba(255,255,255,.16)}
.header-info-button{min-height:34px!important;padding:6px 10px!important;border-color:rgba(255,255,255,.3)!important;color:#fff!important;background:rgba(255,255,255,.08)!important;font-size:12px!important}.header-info-button:hover{background:rgba(255,255,255,.16)!important}
main{margin-top:18px}
.study-hero{position:relative;overflow:hidden;padding:24px 26px;background:linear-gradient(135deg,#fff 0,#f2f8fa 68%,#e8f4f4 100%);border-color:#bfd5de;box-shadow:var(--brand-shadow)}
.study-hero:after{content:"";position:absolute;right:-70px;top:-95px;width:260px;height:260px;border-radius:50%;background:radial-gradient(circle,rgba(32,168,166,.13),rgba(32,168,166,0) 70%);pointer-events:none}
.study-hero-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(260px,.8fr);gap:24px;align-items:center;position:relative;z-index:1}
.study-kicker{display:inline-flex;align-items:center;gap:7px;margin-bottom:9px;color:#176a70;font-size:11px;font-weight:850;text-transform:uppercase;letter-spacing:.07em}.study-kicker:before{content:"";width:8px;height:8px;border-radius:50%;background:var(--brand-teal)}
.study-hero h1{margin:0;color:var(--brand-navy);font-size:30px;line-height:1.12;letter-spacing:-.5px}.study-hero p{max-width:700px;margin:11px 0 0;color:#435966;font-size:14px;line-height:1.55}
.study-hero-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:17px}.study-hero-actions .btn{min-width:154px}
.study-stat-panel{display:grid;grid-template-columns:1fr 1fr;gap:9px}.study-stat{padding:13px;border:1px solid #c9dce3;border-radius:12px;background:rgba(255,255,255,.82)}.study-stat strong{display:block;color:var(--brand-navy);font-size:21px}.study-stat span{display:block;margin-top:4px;color:#58707e;font-size:11px;line-height:1.35}.study-stat.full{grid-column:1/-1}
.notice.prototype-notice{border-color:#c6d7df;background:#f8fbfc;color:#3c5260;box-shadow:none}.notice.prototype-notice strong{color:var(--brand-navy)}.notice-dismiss{border:1px solid #c3d1d8;background:#fff;color:var(--brand-navy);border-radius:7px;padding:6px 9px;font-weight:750;min-height:32px}
.mobile-open-note{background:#f7fafb;border-color:#d4e0e6;color:#4a606d}
#libraryScreen>section.library-only{border-color:#cddbe2;box-shadow:0 8px 28px rgba(11,43,64,.065)}
.section-heading h2{font-size:22px!important;letter-spacing:-.2px}.release-summary{box-shadow:none}.release-summary summary{white-space:nowrap}
.library-search-primary{background:linear-gradient(135deg,#f8fbfc,#edf6f7)!important;border-color:#a9cbd3!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.8)}
.library-search-primary label{color:var(--brand-navy)}.library-search-wrap input{border-width:2px;border-color:#7fa9b7!important;box-shadow:0 3px 12px rgba(11,61,85,.06)}.library-search-wrap input:focus{outline:3px solid rgba(32,168,166,.22);border-color:var(--brand-teal)!important}
.quick-access-group,.tissue-explorer,.library-filter-row{box-shadow:0 3px 14px rgba(18,49,74,.04)}
.tissue-explorer{border-color:#cddce3!important}.tissue-site-button{transition:transform .14s ease,box-shadow .14s ease,border-color .14s ease}.tissue-site-button:hover{transform:translateY(-1px);box-shadow:0 5px 13px rgba(18,49,74,.08)}
.regimen-card{border-color:#d2dde3!important;border-radius:13px!important;box-shadow:0 4px 14px rgba(18,49,74,.055)!important}.regimen-card:hover{box-shadow:0 11px 27px rgba(18,49,74,.12)!important}.regimen-card h2{color:#17364c}.regimen-description{color:#455d6b!important}.regimen-card .card-actions .btn:first-child{background:linear-gradient(120deg,#176b9b,#0d587f)}
.protocol-card-details{border-color:#d8e2e7!important}
.catalog-count{font-weight:750;color:#405968}
.status{box-shadow:0 7px 18px rgba(18,49,74,.055)}
.result-action-bar{box-shadow:0 3px 12px rgba(18,49,74,.05)}
.study-modal-open{overflow:hidden}.study-modal[hidden]{display:none!important}.study-modal{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:18px}.study-modal-backdrop{position:absolute;inset:0;background:rgba(5,27,42,.68);backdrop-filter:blur(4px)}
.study-modal-panel{position:relative;width:min(720px,100%);max-height:min(760px,92vh);overflow:auto;background:#fff;border:1px solid #b9ced7;border-radius:18px;box-shadow:0 28px 80px rgba(0,0,0,.3)}
.study-modal-head{display:flex;align-items:center;gap:13px;padding:19px 21px;background:linear-gradient(125deg,#0c2d43,#174b64);color:#fff;border-radius:17px 17px 0 0}.study-modal-head img{width:50px;height:56px}.study-modal-head h2{margin:0;color:#fff;font-size:23px}.study-modal-head p{margin:5px 0 0;color:#cfe1e9;font-size:12.5px}.study-modal-close{margin-left:auto;align-self:flex-start;border:1px solid rgba(255,255,255,.26);background:rgba(255,255,255,.08);color:#fff;border-radius:999px;width:36px;height:36px;min-height:36px;padding:0;font-size:20px}
.study-modal-body{padding:21px}.study-modal-intro{margin:0;color:#405966;line-height:1.55}.study-step-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:18px 0}.study-step{padding:13px;border:1px solid #d3e0e5;border-radius:11px;background:#f8fbfc}.study-step b{display:flex;align-items:center;justify-content:center;width:27px;height:27px;border-radius:50%;background:#dff3f1;color:#176b70;margin-bottom:8px}.study-step strong{display:block;color:var(--brand-navy);font-size:13px}.study-step span{display:block;margin-top:5px;color:#586e7a;font-size:11.5px;line-height:1.4}
.study-safety-panel{padding:13px 14px;border-left:5px solid #d59a28;border-radius:9px;background:#fff8e8;color:#574619;font-size:12.5px;line-height:1.5}.study-safety-panel strong{color:#4a3711}.study-modal-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:17px}.study-modal-actions-left{display:flex;gap:8px;flex-wrap:wrap}.study-modal-checkbox{display:flex;align-items:center;gap:7px;color:#526975;font-size:12px}.study-modal-checkbox input{margin:0}
.study-footer{max-width:1180px;margin:5px auto 30px;padding:0 18px;color:#657783;font-size:11.5px;text-align:center}.study-footer a{color:#315f78}
@media(max-width:800px){.app-header-inner{align-items:flex-start}.header-study-meta{max-width:210px}.study-hero-grid{grid-template-columns:1fr}.study-stat-panel{grid-template-columns:repeat(3,1fr)}.study-stat.full{grid-column:auto}.study-step-grid{grid-template-columns:1fr}.study-hero h1{font-size:25px}}
@media(max-width:560px){.app-header-inner{padding:14px 15px}.brand-mark{width:46px;height:52px}.brand-name{font-size:24px}.brand-tagline{font-size:11.5px}.header-study-meta{display:none}.study-hero{padding:19px}.study-stat-panel{grid-template-columns:1fr 1fr}.study-stat.full{grid-column:1/-1}.study-modal{padding:9px}.study-modal-body{padding:16px}.study-modal-actions{align-items:stretch}.study-modal-actions-left,.study-modal-actions-left .btn{width:100%}.study-modal-checkbox{width:100%}}
@media print{.app-header,.study-hero,.study-modal,.study-footer{display:none!important}}
