/* Oceanic Leadership Lab - same visual family as the existing conversation lab */
:root {
    --navy: #071526; --navy2: #051220; --panel: #0b1d33; --panel2: #0e2239;
    --line: #1c3349; --line2: #24506a; --cyan: #67e8f9; --cyan-soft: #12313a;
    --text: #e8f1f5; --soft: #b6c6d2; --muted: #8fa4b3;
    --amber: #e2b55a; --amber-soft: #2b2412; --violet: #c4a6f5; --bubble: #164e63;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { min-height: 100vh; background: var(--navy); color: var(--text); font-family: Inter, -apple-system, "Segoe UI", Arial, sans-serif; line-height: 1.55; }
a { color: var(--cyan); }
h1 { margin: 0; font-size: clamp(1.7rem, 4vw, 2.2rem); letter-spacing: -0.02em; }
h2 { margin: 0 0 14px; font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 12px; }
button, input, select, textarea { font: inherit; }

.top { border-bottom: 1px solid var(--line); background: var(--navy2); }
.top-inner, .wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.top-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.brand { color: var(--cyan); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-decoration: none; }
.steps { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; }
.steps span { padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.steps span.on { background: var(--cyan); border-color: var(--cyan); color: #06202b; font-weight: 700; }
.wrap { padding-top: 34px; padding-bottom: 70px; }
.narrow { max-width: 860px; }
.lead { color: var(--soft); max-width: 720px; margin-top: 10px; }
.eyebrow { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 12px; }
.muted { color: var(--muted); } .small { font-size: 13px; }

.banner { background: var(--amber-soft); border-bottom: 1px solid var(--amber); color: var(--amber); font-size: 13px; text-align: center; padding: 8px 16px; }
.errors { background: #2b1518; border: 1px solid #f08a8a; color: #ffc9c9; border-radius: 10px; padding: 12px 16px; margin: 18px 0; }
.errors ul { margin: 0; padding-left: 18px; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px; margin-top: 18px; }
.panel.accent { border-color: var(--line2); }
.panel.talk { background: var(--cyan-soft); border-color: #2a7f95; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.tile { background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.tile .k { font-size: 11px; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.tile .v { font-size: 1.3rem; font-weight: 700; margin-top: 5px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border: 0; border-radius: 11px; background: var(--cyan); color: #06202b; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn:disabled { opacity: .45; cursor: default; }
.btn.ghost { background: transparent; border: 1px solid var(--line2); color: var(--soft); font-weight: 500; }
.btn.wide { width: 100%; }

label.field { display: block; margin-top: 16px; font-size: 14px; font-weight: 600; }
label.field .opt { color: var(--muted); font-weight: 400; }
.input, textarea.input, select.input { display: block; width: 100%; margin-top: 7px; min-height: 46px; padding: 11px 13px; background: var(--panel2); color: var(--text); border: 1px solid var(--line2); border-radius: 10px; }
textarea.input { min-height: 68px; resize: vertical; }
.input:focus, .btn:focus-visible, .card:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
::placeholder { color: #6f8798; }

/* motivator picker */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.card { text-align: left; min-height: 96px; padding: 12px 14px; background: var(--panel2); border: 1px solid var(--line2); border-radius: 11px; color: var(--text); cursor: pointer; position: relative; }
.card b { display: block; font-size: 15px; }
.card span { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.4; }
.card.picked { border-color: var(--cyan); background: var(--cyan-soft); }
.card .rank { position: absolute; top: 10px; right: 12px; width: 26px; height: 26px; border-radius: 50%; background: var(--cyan); color: #06202b; font-weight: 700; font-size: 13px; display: none; align-items: center; justify-content: center; margin: 0; }
.card.picked .rank { display: flex; }
.ranked { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ranked li { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 14px; background: var(--panel2); border: 1px solid var(--line2); border-radius: 10px; }
.ranked .n { color: var(--cyan); font-weight: 700; width: 18px; }
.ranked .name { flex: 1; font-weight: 600; }
.icon-btn { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 9px; background: transparent; color: var(--soft); cursor: pointer; }
.choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; margin-top: 7px; }
.choice label { display: block; padding: 11px 13px; border: 1px solid var(--line2); border-radius: 10px; background: var(--panel2); cursor: pointer; font-size: 14px; }
.choice input { margin-right: 6px; }
.choice label:has(input:checked) { border-color: var(--cyan); background: var(--cyan-soft); }

/* conversation */
.chat-layout { display: flex; flex-wrap: wrap; gap: 26px; }
.chat-main { flex: 999 1 540px; min-width: 0; }
.chat-side { flex: 1 1 260px; min-width: 0; }
.msg { display: flex; flex-direction: column; margin-bottom: 20px; align-items: flex-start; }
.msg.me { align-items: flex-end; }
.msg .who { font-size: 11px; color: var(--muted); margin-bottom: 5px; }
.bubble { max-width: 78%; padding: 12px 16px; border-radius: 14px; background: var(--panel2); border: 1px solid var(--line); white-space: pre-wrap; }
.msg.me .bubble { background: var(--bubble); border-color: #2a7f95; }
.bubble.thinking { color: var(--muted); font-style: italic; }
.composer { display: flex; gap: 10px; align-items: flex-end; margin-top: 26px; }
.composer textarea { flex: 1; margin: 0; min-height: 56px; }
.timer { font-weight: 700; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.timer.over { color: var(--amber); }
ol.drivers { list-style: none; margin: 0; padding: 0; }
ol.drivers li { display: flex; gap: 10px; padding: 5px 0; }
ol.drivers .n { color: var(--cyan); font-weight: 700; }
.linklike { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; padding: 12px; }

/* supervisor rating */
.rate { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -8px 0 22px; font-size: 13px; color: var(--amber); }
.rate label { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line2); border-radius: 9px; cursor: pointer; color: var(--text); background: var(--panel2); }
.rate input { position: absolute; opacity: 0; }
.rate label:has(input:checked) { background: var(--amber); border-color: var(--amber); color: #201a08; font-weight: 700; }
.rate label:has(input:focus-visible) { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* debrief */
.badge { display: inline-block; white-space: nowrap; font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 6px; border: 1px solid var(--line2); }
.badge.strong { color: #7fe0bd; border-color: #2c6e59; }
.badge.effective { color: var(--cyan); border-color: #2a7f95; }
.badge.developing { color: var(--amber); border-color: #7a6330; }
.badge.limited { color: var(--soft); }
.row-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.row-head b { font-size: 14px; }
.tile p { font-size: 13px; color: var(--soft); margin: 0; }
.moment { padding: 14px 0; border-bottom: 1px solid var(--line); }
.moment:last-child { border-bottom: 0; padding-bottom: 0; }
.moment:first-of-type { padding-top: 0; }
.moment div + div { color: var(--muted); font-size: 14px; margin-top: 4px; }
.chart { width: 100%; height: auto; display: block; }
.legend { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; color: var(--soft); margin-bottom: 8px; }
.legend i { display: inline-block; width: 22px; height: 0; border-top: 3px solid var(--cyan); vertical-align: middle; margin-right: 6px; }
.legend i.sup { border-top: 3px dashed var(--amber); }
.legend i.pos { border-top: 3px solid var(--violet); }
table.turns { width: 100%; border-collapse: collapse; font-size: 13px; }
table.turns th { text-align: left; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line2); }
table.turns td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.turns td.num { text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.scroll { overflow-x: auto; }
.gap-callout { border-left: 3px solid var(--amber); padding: 10px 14px; background: var(--panel2); border-radius: 0 10px 10px 0; margin-top: 10px; font-size: 14px; }
.replay { padding: 14px 16px; background: var(--panel2); border-radius: 10px; margin-top: 10px; }
.replay.better { background: var(--cyan-soft); }
.replay .k { display: block; font-size: 11px; letter-spacing: .08em; color: var(--muted); margin-bottom: 4px; }
ol.talk { margin: 0; padding-left: 20px; }
ol.talk li { margin-bottom: 12px; }
ol.talk b { display: block; }
.challenge-item { margin-top: 14px; }
.challenge-item .q { background: var(--amber-soft); border: 1px solid #7a6330; border-radius: 12px; padding: 11px 14px; }
.challenge-item .a { background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; margin-top: 8px; white-space: pre-wrap; }
.overlay { position: fixed; inset: 0; background: rgba(4, 12, 22, .88); display: none; align-items: center; justify-content: center; text-align: center; padding: 24px; z-index: 10; }
.overlay.on { display: flex; }
[hidden] { display: none !important; }

/* printable question sheet */
body.paper { background: #fff; color: #111; }
body.paper .sheet { max-width: 820px; margin: 0 auto; padding: 28px 24px 60px; font-size: 13.5px; }
body.paper h1 { font-size: 24px; } body.paper h2 { font-size: 15px; margin: 22px 0 8px; border-bottom: 1px solid #999; padding-bottom: 4px; }
body.paper .rules { border: 1px solid #999; border-radius: 8px; padding: 10px 14px; margin: 14px 0; }
body.paper ol.q { margin: 0; padding: 0; list-style: none; }
body.paper ol.q li { display: flex; gap: 10px; padding: 4px 0; break-inside: avoid; }
body.paper .box { flex: 0 0 13px; height: 13px; border: 1.5px solid #333; margin-top: 3px; }
body.paper table { width: 100%; border-collapse: collapse; margin-top: 6px; }
body.paper td, body.paper th { border: 1px solid #999; padding: 6px 8px; vertical-align: top; text-align: left; }
body.paper .printbar { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; }
body.paper .btn { background: #0b5c70; color: #fff; }
body.paper .page { break-before: page; }
body.paper .tally td { height: 30px; }
@media print { body.paper .printbar { display: none; } body.paper .sheet { padding: 0; } }
@media (max-width: 640px) { .bubble { max-width: 92%; } .top-inner, .wrap { padding-left: 16px; padding-right: 16px; } }

/* Supervisor selects only two or three different reactions, not energy each turn */
.difference-option { display: block; padding: 11px 14px; background: var(--panel2); border: 1px solid var(--line2); border-radius: 10px; margin: -7px 0 20px; cursor: pointer; font-size: 14px; }
.difference-option input { position: static; opacity: 1; margin-right: 8px; accent-color: var(--cyan); width: 17px; height: 17px; vertical-align: middle; }
.difference-option:has(input:checked) { border-color: var(--cyan); background: var(--cyan-soft); }
.difference-option:has(input:focus-visible) { outline: 2px solid var(--cyan); outline-offset: 2px; }
.scenario-choice { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.language-bar {display:flex;gap:5px;align-items:center;margin-left:auto;flex-wrap:wrap}
.language-bar .lang-button {color:var(--soft);text-decoration:none;border:1px solid var(--line2);border-radius:8px;padding:7px 10px;font-size:12px;font-weight:700}
.language-bar .lang-button.active {color:var(--text);border-color:var(--cyan);background:var(--cyan-soft)}
body.paper .printbar .language-bar .lang-button {color:#135b70;border-color:#aaa}
body.paper .printbar .language-bar .lang-button.active {background:#e0f5f7}
@media (max-width:900px) {.top-inner {flex-wrap:wrap}.language-bar {margin-left:0}}

@media print {
  @page {size:A4; margin:12mm;}
  body.paper .sheet {max-width:none;font-size:10.5px;line-height:1.25;}
  body.paper .rules {padding:6px 9px;margin:7px 0;}
  body.paper .rules p {margin:2px 0;}
  body.paper h1 {font-size:18px;margin:8px 0;}
  body.paper h2 {font-size:12px;margin:9px 0 4px;}
  body.paper ol.q li {padding:2px 0;}
  body.paper .page {break-before:page;page-break-before:always;}
  body.paper td,body.paper th {padding:3px 5px;}
}

/* V7: clearer visual separation between the situation and its action. */
.situation-action { margin-top: 18px; }
