/* TrueHelm 3.1.0 — Digital Yacht inspections, iPad-first and mobile-ready */
.v310-stage-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:18px 0 22px}
.v310-stage{background:linear-gradient(135deg,#112e43,#092132);border:1px solid #2a5368;border-radius:16px;padding:25px;position:relative;color:#e4f6fa}
.v310-stage h2{color:#fff;margin:12px 0 6px;font-size:1.4rem}.v310-stage p{color:#adcbd7;min-height:3rem}.v310-stage .btn{width:100%;margin-top:8px}
.v310-ordinal{display:grid;place-items:center;border-radius:12px;background:#17495a;color:#76e2dc;font-weight:800;width:43px;height:43px}
.v310-sheet{color:#e3f6fa}.v310-top{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#13374a;border-radius:12px;padding:13px;margin-bottom:12px;color:#fff}.v310-top span{font-size:.85rem;color:#b2d2dc}
.v310-tabs{display:flex;flex-wrap:wrap;gap:7px;margin:15px 0}.v310-tabs .btn{border-radius:12px}
.v310-sheet h3{color:#fff;margin:19px 0 11px}.v310-line{background:#102d40;border:1px solid #2d5365;border-radius:13px;padding:15px;margin-bottom:10px;display:grid;grid-template-columns:minmax(165px,1fr) minmax(170px,auto);gap:8px 15px;align-items:center}
.v310-label{display:flex;flex-direction:column;gap:4px}.v310-label strong{color:#fff}.v310-label small{color:#acd3db}.v310-choices{display:grid;grid-template-columns:repeat(3,minmax(60px,1fr));gap:7px}
.v310-choice{cursor:pointer;touch-action:manipulation;min-height:45px;border-radius:10px;background:#1c4557;color:#f0f9ff;border:1px solid #4c6f80;font-weight:700;padding:10px}
.v310-choice.selected{background:#12655f;border-color:#64dfd0;color:#fff}.v310-choice.selected.issue{background:#7a382d;border-color:#f4aa86}
.v310-reading{display:flex;align-items:center;gap:8px}.v310-reading input{max-width:190px;width:100%;font-size:1.1rem;min-height:43px}.v310-reading small{color:#b2d4df}
.v310-line-details{grid-column:1/-1;color:#bdced8;font-size:.92rem}.v310-line-details summary{cursor:pointer;color:#a3d5df}.v310-line-details textarea{margin-top:7px;min-height:65px;width:100%}
.v310-foot{display:flex;justify-content:space-between;margin:16px 0;gap:9px}.v310-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.v310-meta label{display:flex;flex-direction:column;gap:6px;color:#d5f3fa}.v310-meta input,.v310-meta select{min-height:44px}
.v310-config{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.v310-config fieldset{max-height:290px;overflow-y:auto;border:1px solid #38566d;border-radius:10px}.v310-config legend{font-weight:700}.v310-config label{display:block;padding:6px}.v310-asset-choice{font-size:.9rem}
.v310-voyage-actions{background:#11364a;border:1px solid #2d6072;border-radius:12px;padding:12px;margin:12px 0;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px}
.v310-sunset{background:#19374a;border-left:5px solid #f0c26a;padding:16px;border-radius:10px}.v310-sunset h2{color:#f8d485}
@media(max-width:850px){.v310-stage-cards{grid-template-columns:1fr}.v310-stage p{min-height:0}.v310-line{grid-template-columns:1fr}.v310-top{flex-direction:column;align-items:flex-start}.v310-config{grid-template-columns:1fr}}
@media(max-width:540px){.v310-tabs{flex-wrap:nowrap;overflow-x:auto;padding-bottom:7px}.v310-tabs .btn{flex:none}.v310-meta{grid-template-columns:1fr}.v310-choice{min-height:51px}.v310-line{padding:12px}}

/* R3.1: Actions first; history follows immediately rather than hiding in a disclosure. */
.v310-inspection-history,.v310-completed-history{margin-top:14px}
.v310-inspection-history h2,.v310-completed-history h3{margin-top:0}
.v310-voyage-actions{margin:14px 0 20px;padding:17px 20px}
.v310-voyage-actions .workspace-actions{display:flex;gap:10px;flex-wrap:wrap}
.v310-voyage-actions button{min-width:145px;min-height:48px;font-weight:700}
@media(max-width:650px){.v310-voyage-actions .workspace-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%}.v310-voyage-actions button{min-width:0;padding:10px 5px;font-size:.84rem}}

/* Inspection-wide notes, displayed at end of each check sheet */
.v310-final-comment{margin:20px 0 12px;padding:16px;border:1px solid rgba(100,208,211,.35);border-radius:12px;background:rgba(17,62,77,.45)}
.v310-final-comment textarea{display:block;width:100%;margin-top:10px;min-height:96px;background:#0d2838;color:#fff;border:1px solid #3b6572;border-radius:8px;padding:12px;box-sizing:border-box}
.v310-final-comment p{white-space:pre-wrap;overflow-wrap:anywhere}
