/* CCFT v1.39.25 - native Post-mortem Vitreous Biochemistry Interpreter */

.ccft-vh-tool{max-width:1200px;margin:0 auto 32px;color:var(--text,#1e293b)}
.ccft-vh-topbar,.ccft-vh-panel,.ccft-vh-context-box,.ccft-vh-assessment-head{
  background:#fff;border:1px solid #e2e8f0;border-radius:16px;box-shadow:0 8px 26px rgba(15,23,42,.06)
}
.ccft-vh-topbar{display:flex;gap:24px;justify-content:space-between;align-items:flex-start;padding:28px;margin-bottom:18px;border-top:5px solid #8b0d2c}
.ccft-vh-topbar h1{margin:4px 0 8px;font-size:clamp(1.65rem,2.7vw,2.5rem);color:#3f0a18}
.ccft-vh-topbar p{max-width:820px;margin:0;color:#475569;line-height:1.55}
.ccft-vh-eyebrow{font-size:.75rem;letter-spacing:.13em;font-weight:800;color:#8b0d2c}
.ccft-vh-top-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}
.ccft-vh-tool button{border:0;border-radius:8px;padding:10px 15px;background:#8b0d2c;color:#fff;font-weight:750;cursor:pointer}
.ccft-vh-tool button:hover{background:#710821}
.ccft-vh-tool button.secondary{background:#fff;color:#701027;border:1px solid #cbd5e1}
.ccft-vh-panel{padding:24px;margin:18px 0}
.ccft-vh-section-head{display:flex;gap:14px;align-items:flex-start;margin-bottom:20px}
.ccft-vh-section-head>span{display:grid;place-items:center;min-width:44px;height:44px;border-radius:12px;background:#8b0d2c;color:#fff;font-weight:800}
.ccft-vh-section-head h2{margin:0 0 4px;color:#1f2937}
.ccft-vh-section-head p{margin:0;color:#64748b}
.ccft-vh-grid{display:grid;gap:16px}
.ccft-vh-grid.context{grid-template-columns:repeat(3,minmax(0,1fr))}
.ccft-vh-grid.results{grid-template-columns:repeat(4,minmax(0,1fr))}
.ccft-vh-grid label{display:flex;flex-direction:column;gap:6px;font-weight:700;color:#334155}
.ccft-vh-grid label small{font-weight:500;color:#64748b}
.ccft-vh-grid input,.ccft-vh-grid select,.ccft-vh-comment-panel textarea{
  width:100%;box-sizing:border-box;border:1px solid #cbd5e1;border-radius:8px;padding:10px 11px;background:#fff;color:#0f172a;font:inherit
}
.ccft-vh-grid input:focus,.ccft-vh-grid select:focus,.ccft-vh-comment-panel textarea:focus{outline:3px solid rgba(139,13,44,.14);border-color:#8b0d2c}
.ccft-vh-inline{display:grid;grid-template-columns:1fr 120px;gap:8px}
.ccft-vh-form-actions{display:flex;gap:10px;margin-top:18px}
.ccft-vh-analysis{margin:20px 0}
.ccft-vh-assessment-head{padding:22px 24px;display:flex;justify-content:space-between;gap:20px;align-items:center;border-top:5px solid #8b0d2c}
.ccft-vh-assessment-head h2{margin:4px 0 0;color:#3f0a18}
.ccft-vh-significance{display:inline-block;padding:7px 11px;border-radius:999px;background:#fee2e2;color:#991b1b;font-weight:800;white-space:nowrap}
.ccft-vh-assessment-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:14px 0 18px}
.ccft-vh-assessment{background:#fff;border:1px solid #e2e8f0;border-left:5px solid #94a3b8;border-radius:12px;padding:18px;box-shadow:0 5px 18px rgba(15,23,42,.04)}
.ccft-vh-assessment.high{border-left-color:#b91c1c}
.ccft-vh-assessment.medium{border-left-color:#d97706}
.ccft-vh-assessment.low{border-left-color:#15803d}
.ccft-vh-assessment-title{font-size:.82rem;text-transform:uppercase;letter-spacing:.06em;font-weight:800;color:#64748b}
.ccft-vh-assessment-level{font-size:1.15rem;font-weight:800;color:#1e293b;margin:5px 0}
.ccft-vh-assessment p{margin:6px 0 12px;line-height:1.5;color:#475569}
.ccft-vh-tag{display:inline-block;padding:5px 8px;border-radius:999px;background:#f1f5f9;font-size:.75rem;font-weight:800;color:#475569}
.ccft-vh-comment-panel textarea{min-height:270px;resize:vertical;line-height:1.55}
.ccft-vh-context-box{padding:22px;margin:18px 0}
.ccft-vh-context-box h3{margin-top:0;color:#3f0a18}
.ccft-vh-context-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:12px 0 14px}
.ccft-vh-context-stats>div{background:#f8fafc;border-radius:10px;padding:12px}
.ccft-vh-context-stats span{display:block;color:#64748b;font-size:.78rem;font-weight:700}
.ccft-vh-context-stats strong{display:block;margin-top:3px;color:#1e293b}
.ccft-vh-table-wrap{overflow:auto}
.ccft-vh-evidence table{width:100%;border-collapse:collapse}
.ccft-vh-evidence th,.ccft-vh-evidence td{text-align:left;vertical-align:top;padding:12px;border-bottom:1px solid #e2e8f0;line-height:1.45}
.ccft-vh-evidence th{background:#f8fafc;color:#334155}
.ccft-vh-evidence details{margin-top:14px}
.ccft-vh-evidence summary{cursor:pointer;font-weight:800;color:#701027}
.ccft-vh-footnote{margin:18px 0 0;color:#64748b;font-size:.84rem}

@media(max-width:900px){
  .ccft-vh-grid.context{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ccft-vh-grid.results{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:650px){
  .ccft-vh-topbar,.ccft-vh-assessment-head{flex-direction:column}
  .ccft-vh-top-actions{justify-content:flex-start}
  .ccft-vh-grid.context,.ccft-vh-grid.results,.ccft-vh-assessment-grid,.ccft-vh-context-stats{grid-template-columns:1fr}
  .ccft-vh-inline{grid-template-columns:1fr}
}

@media print{
  header,nav,footer,.ccft-vh-top-actions,.ccft-vh-form-actions{display:none!important}
  #calculators .ccft-calculator-grid,#calculators .ccft-calculators-header{display:none!important}
  .ccft-vh-tool{max-width:none}
  .ccft-vh-topbar,.ccft-vh-panel,.ccft-vh-context-box,.ccft-vh-assessment-head,.ccft-vh-assessment{box-shadow:none;break-inside:avoid}
}
