/* SHIP LAB 360: shared look for the candidate, verify and admin pages. Mobile first.
   Cinematic maritime style: deep-sea navy, gold accents, a cutaway ship banner. */
:root { --navy: #0a2340; --deep: #051428; --gold: #c9a24a; --gold2: #f1d58a; --ink: #1d2733; --muted: #5a6270; --line: #dde3ea;
  --bg: #eef2f6; --ok: #0d8a4f; --bad: #c0392b; --accent: #f15a2b; --radius: 16px; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink); min-height: 100vh; background: var(--bg); }
header.bar { position: relative; color: #fff; padding: 14px 18px 0; display: flex; align-items: flex-start; gap: 12px;
  padding-top: max(14px, env(safe-area-inset-top)); min-height: 150px; overflow: hidden;
  background: url("/static/academy/hero-ship.svg") center 75% / cover no-repeat, var(--deep);
  box-shadow: inset 0 -40px 40px -20px rgba(5, 20, 40, .9); }
header.bar::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(5, 20, 40, .85) 0, rgba(5, 20, 40, .25) 55%, rgba(5, 20, 40, 0) 100%); }
header.bar > * { position: relative; z-index: 1; }
header.bar .brand { font-weight: 800; letter-spacing: .2em; font-size: 15px; text-shadow: 0 2px 10px rgba(0, 0, 0, .6); }
header.bar .brand b { background: linear-gradient(90deg, var(--gold2), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
header.bar .right { margin-left: auto; font-size: 14px; opacity: .95; text-shadow: 0 1px 6px rgba(0, 0, 0, .7); }
header.bar a { color: #fff; }
@media (min-width: 720px) { header.bar { min-height: 200px; padding-left: 28px; padding-right: 28px; } }
main { max-width: 760px; margin: 0 auto; padding: 18px 14px 60px; }
main.wide { max-width: 1180px; }
h1 { font-size: 24px; margin: 6px 0 4px; color: var(--navy); line-height: 1.25; letter-spacing: -.01em; }
h2 { font-size: 19px; margin: 0 0 10px; color: var(--navy); }
p.sub { color: var(--muted); margin: 0 0 16px; }
.card { background: #fff; border: 1px solid rgba(10, 35, 64, .08); border-radius: var(--radius); padding: 18px; margin: 0 0 14px;
  box-shadow: 0 10px 30px -12px rgba(5, 20, 40, .35), 0 1px 2px rgba(12, 40, 74, .06); }
label { display: block; font-weight: 600; font-size: 14px; margin: 12px 0 6px; }
input[type=text], input[type=number], input[type=date], input[type=password], textarea, select {
  width: 100%; font: inherit; padding: 12px; border: 1px solid #c8d0da; border-radius: 10px; background: #fff; color: var(--ink); }
textarea { min-height: 80px; }
input:focus, textarea:focus, select:focus { outline: 3px solid rgba(176, 141, 58, .35); border-color: var(--gold); }
button, .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 16px/1 inherit;
  padding: 14px 20px; min-height: 48px; border-radius: 12px; border: 0; background: linear-gradient(180deg, #14406e, var(--navy)); color: #fff;
  cursor: pointer; text-decoration: none; box-shadow: 0 6px 16px -8px rgba(5, 20, 40, .7); }
button.secondary, .btn.secondary { background: #fff; color: var(--navy); border: 1px solid #c8d0da; }
button.gold, .btn.gold { background: linear-gradient(180deg, var(--gold2), var(--gold)); color: #1b1404; }
button.danger { background: #fff; color: var(--bad); border: 1px solid #e4b7b1; }
button.small { min-height: 36px; padding: 8px 12px; font-size: 14px; }
button:disabled { opacity: .45; cursor: not-allowed; }
.full { width: 100%; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.muted { color: var(--muted); }
.err { color: var(--bad); font-weight: 600; margin-top: 10px; min-height: 1em; }
.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #e9eef4; color: var(--navy); }
.pill.ok { background: #dff3e8; color: var(--ok); }
.pill.bad { background: #fbe4e1; color: var(--bad); }
.steps { display: flex; gap: 6px; margin: 4px 0 16px; }
.steps span { flex: 1; height: 5px; border-radius: 3px; background: #d6dde6; }
.steps span.on { background: linear-gradient(90deg, var(--gold2), var(--gold)); }
.video { margin: 0 0 14px; }
.video video { width: 100%; max-height: 70vh; background: #000; border-radius: 10px; display: block; }
.video .head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.video .head b { flex: 1; }
.q { border-top: 1px solid var(--line); padding: 16px 0 6px; }
.q:first-of-type { border-top: 0; padding-top: 0; }
.q .t { font-weight: 600; margin-bottom: 10px; }
.opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid #c8d0da; border-radius: 10px;
  margin: 0 0 8px; cursor: pointer; background: #fff; font-weight: 400; }
.opt input { margin-top: 4px; width: 20px; height: 20px; flex: none; accent-color: var(--navy); }
.opt:has(input:checked) { border-color: var(--navy); background: #eef3fa; }
.score { font-size: 52px; font-weight: 800; line-height: 1; background: linear-gradient(180deg, #14406e, var(--navy)); -webkit-background-clip: text;
  background-clip: text; color: transparent; }
.hide { display: none !important; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.tablewrap { overflow-x: auto; }
.grid2 { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
@media (min-width: 720px) { .grid2 { grid-template-columns: 1fr 1fr; } h1 { font-size: 28px; } }
.layout { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 960px) { .layout { grid-template-columns: 300px 1fr; } }
.modlist button { width: 100%; justify-content: flex-start; text-align: left; margin-bottom: 8px; background: #fff; color: var(--ink);
  border: 1px solid var(--line); font-weight: 600; line-height: 1.3; flex-direction: column; align-items: flex-start; }
.modlist button.on { border-color: var(--navy); box-shadow: inset 4px 0 0 var(--navy); }
.modlist button small { font-weight: 400; color: var(--muted); }
.linkbox { display: flex; gap: 8px; }
.linkbox input { flex: 1; font-size: 14px; }
.lesson .head { display: flex; align-items: center; gap: 10px; }
.lesson .head b { flex: 1; }
.lesson-overlay { position: fixed; inset: 0; z-index: 50; background: #0b1a2c; display: flex; flex-direction: column; }
.lesson-bar { display: flex; align-items: center; gap: 10px; background: var(--navy); color: #fff; padding: 8px 12px;
  padding-top: max(8px, env(safe-area-inset-top)); font-weight: 600; font-size: 14px; }
.lesson-bar span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lesson-bar button { min-height: 36px; padding: 8px 12px; font-size: 14px; background: rgba(255,255,255,.12); }
.lesson-overlay iframe { flex: 1; width: 100%; border: 0; background: #0b1a2c; }
