/* Ocean Layers Dive: the dive order and control beside the ship / ROV / instrument scene, inside the practice shell's stage. */
.ol { position: absolute; inset: 0; display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 12px; padding: 8px 12px; color: var(--tlg-text, #172c38); }
.ol-panel { display: flex; flex-direction: column; gap: 8px; min-height: 0; overflow-y: auto; padding: 2px; }

/* the dive order */
.ol-ticket { padding: 8px 12px 10px; border-radius: var(--tlg-radius-lg, 14px); border: 2px dashed #8fb6cc; background: #f2f8fb; color: #10283a; }
.ol-ticket-k { margin: 0; font-size: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: var(--tlg-tracking-caps, .08em); color: #1d5f86; }
.ol-ticket-d { margin: 2px 0 6px; font-size: 22px; font-weight: 600; }
.ol-ticket-d b { font-size: 26px; font-weight: 900; font-variant-numeric: tabular-nums; }
.ol-log { width: 100%; border-collapse: collapse; font-size: 17px; font-variant-numeric: tabular-nums; }
.ol-log caption { text-align: left; font-size: 16px; font-weight: 800; padding-bottom: 2px; }
.ol-log th, .ol-log td { padding: 3px 8px; border-bottom: 1px solid #c8dbe6; text-align: right; }
.ol-log thead th { font-size: 16px; font-weight: 800; border-bottom: 2px solid #8fb6cc; }
.ol-log tbody th { font-weight: 800; }
.ol-log th:first-child { text-align: left; }
.ol-limits, .ol-givens { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; font-size: 18px; }
.ol-limits li { display: flex; align-items: center; gap: 8px; }
.ol-givens li { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; border-bottom: 1px solid #c8dbe6; }
.ol-formula { margin: 8px 0 0; font-size: 22px; font-weight: 800; text-align: center; padding: 6px; border-radius: 10px; background: #e1eff6; }
.ol-note { margin: 6px 0 0; font-size: 16px; color: var(--tlg-text-muted, #4b5d68); }
html[data-theme="dark"] .ol-ticket { background: #10283a; color: #e3f1f9; border-color: #3f7395; }
html[data-theme="dark"] .ol-ticket-k { color: #8fd0f2; }
html[data-theme="dark"] .ol-log th, html[data-theme="dark"] .ol-log td, html[data-theme="dark"] .ol-givens li { border-color: #2c4c63; }
html[data-theme="dark"] .ol-log thead th { border-color: #3f7395; }
html[data-theme="dark"] .ol-formula { background: #173a52; }
html[data-theme="dark"] .ol-note { color: #b8cbd8; }

/* zone icons: sun, dim, dark (with a shape, so color is never the only signal) */
.ol-zi { flex: none; display: inline-block; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #12324a; }
.ol-zi--sunlit { background: radial-gradient(circle, #fff6b0 0 35%, #f5c63a 36% 100%); }
.ol-zi--twilight { background: linear-gradient(180deg, #5b8db6 0 50%, #1c3d5c 50% 100%); }
.ol-zi--midnight { background: #050c18; box-shadow: inset 0 0 0 4px #050c18, inset 0 0 0 6px #5ee7ff; }
html[data-theme="dark"] .ol-zi { border-color: #9ec7e0; }

/* the control */
.ol-field { border: 0; margin: 0; padding: 0; min-width: 0; }
.ol-field legend { padding: 0; margin: 0 0 6px; font-size: 17px; font-weight: 800; color: var(--tlg-text, #172c38); }
.ol-entry { display: flex; align-items: center; gap: 8px; }
.ol-num { width: 130px; height: 54px; font: inherit; font-size: 28px; font-weight: 800; text-align: right; padding: 0 12px; border-radius: 10px;
  border: 2px solid var(--tlg-border, #a5b6c1); background: var(--tlg-surface, #fff); color: var(--tlg-text, #172c38); font-variant-numeric: tabular-nums; }
.ol--pressure .ol-num { width: 170px; }
.ol-num::-webkit-outer-spin-button, .ol-num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ol-num { -moz-appearance: textfield; appearance: textfield; }
.ol-num:focus { border-color: #1d5f86; }
.ol-unit { font-size: 22px; font-weight: 800; }
.ol-step { flex: none; width: 48px; height: 48px; font: inherit; font-size: 28px; font-weight: 800; line-height: 1; cursor: pointer; border-radius: 10px; color: var(--tlg-text, #172c38);
  background: var(--tlg-surface, #fff); border: 2px solid var(--tlg-border, #a5b6c1); box-shadow: 0 2px 0 rgba(0, 0, 0, .08); touch-action: manipulation; }
.ol-step:hover:not(:disabled) { border-color: #1d5f86; }
.ol-zones { display: grid; grid-template-columns: 1fr; gap: 8px; }
.ol-zone-btn { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 14px; font: inherit; font-size: 19px; font-weight: 800; text-align: left; cursor: pointer;
  border-radius: 12px; border: 2px solid var(--tlg-border, #a5b6c1); background: var(--tlg-surface, #fff); color: var(--tlg-text, #172c38); box-shadow: 0 2px 0 rgba(0, 0, 0, .08); touch-action: manipulation; }
.ol-zone-btn:hover:not(:disabled) { border-color: #1d5f86; }
.ol-zone-btn[aria-pressed="true"] { border-color: #1d5f86; border-width: 3px; background: #e1eff6; }
.ol-zone-btn[aria-pressed="true"] .ol-zone-name::after { content: '  ✓ your call'; font-size: 16px; font-weight: 700; color: #1d5f86; }
html[data-theme="dark"] .ol-zone-btn[aria-pressed="true"] { background: #173a52; border-color: #8fd0f2; }
html[data-theme="dark"] .ol-zone-btn[aria-pressed="true"] .ol-zone-name::after { color: #8fd0f2; }
.ol :focus-visible { outline: 3px solid #b16a08; outline-offset: 2px; }
.ol button:disabled, .ol input:disabled { cursor: default; }
.ol.is-locked .ol-step { opacity: .45; }
.ol-msg { margin: 0; min-height: 1.2em; font-size: 16px; font-weight: 700; color: var(--tlg-danger, #b42318); }
.ol-msg:empty { display: none; }
html[data-theme="dark"] .ol-msg { color: #ffb4a8; }
.ol-badge { padding: 8px 12px; border-radius: 10px; font-size: 17px; font-weight: 700; line-height: 1.35; background: var(--tlg-surface, #fff); color: var(--tlg-text, #10202c);
  border: 3px solid #1d5f86; animation: ol-pop .25s ease-out; }
.ol-badge.is-ok { border-color: #2e8b57; }
.ol-badge.is-bad { border-color: #b42318; }
@keyframes ol-pop { from { transform: scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.ol-about { font-size: 16px; line-height: 1.4; }
.ol-about summary { cursor: pointer; font-weight: 700; }
.ol-about p { margin: 4px 0 0; }

/* the dive scene */
.ol-view { position: relative; min-width: 0; min-height: 0; display: flex; align-items: flex-start; justify-content: center; }
.ol-scene { position: relative; width: 100%; aspect-ratio: 720 / 620; border-radius: var(--tlg-radius-lg, 14px); overflow: hidden; border: var(--tlg-border-width, 1px) solid var(--tlg-border, #a5b6c1); user-select: none; -webkit-user-select: none; }
.ol-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ol-sky { fill: url(#ol-g-sky); }
html[data-theme="dark"] .ol-sky { fill: url(#ol-g-sky-d); }
html[data-theme="dark"] .ol-sun { opacity: .35; }
.ol-ruler-bg { fill: rgba(5, 20, 36, .72); }
.ol-tick { stroke: #d6ecf7; stroke-width: 2; }
.ol-t { font-family: var(--tlg-font-body, system-ui, sans-serif); fill: #10283a; }
.ol-t-ruler { font-size: 18px; font-weight: 800; fill: #eaf6fc; }
.ol-t-ruler-k { font-size: 16px; font-weight: 700; fill: #d6ecf7; }
.ol-t-rov { font-size: 14px; font-weight: 900; fill: #5a3a00; letter-spacing: .1em; }
.ol-tether { stroke: #f2d27a; stroke-width: 2.5; stroke-dasharray: 2 0; }
.ol-tag { fill: #ffffff; stroke: #12324a; stroke-width: 2; }
.ol-t-tag { font-size: 18px; font-weight: 900; fill: #12324a; font-variant-numeric: tabular-nums; }
.ol-station { stroke: #ffe680; stroke-width: 2; stroke-dasharray: 6 6; opacity: .85; }

/* instrument card */
.ol-card { fill: rgba(246, 251, 253, .93); stroke: #8fb6cc; stroke-width: 2; }
html[data-theme="dark"] .ol-card { fill: rgba(9, 24, 40, .92); stroke: #3f7395; }
.ol-t-ck { font-size: 18px; font-weight: 900; letter-spacing: .06em; fill: #1d5f86; }
.ol-t-cs { font-size: 18px; font-weight: 600; fill: #23415a; }
.ol-t-axis { font-size: 18px; font-weight: 800; fill: #10283a; }
.ol-t-note { font-size: 16px; font-weight: 600; font-style: italic; fill: #4b6578; paint-order: stroke; stroke: #f6fbfd; stroke-width: 5px; stroke-linejoin: round; }
html[data-theme="dark"] .ol-t-ck { fill: #8fd0f2; }
html[data-theme="dark"] .ol-t-cs, html[data-theme="dark"] .ol-t-axis, html[data-theme="dark"] .ol-t-led, html[data-theme="dark"] .ol-t-ledv, html[data-theme="dark"] .ol-t-dial, html[data-theme="dark"] .ol-t-dialu { fill: #e3f1f9; }
html[data-theme="dark"] .ol-t-note { fill: #a9c2d3; stroke: #09182a; }
.ol-axis { stroke: #23415a; stroke-width: 2; }
.ol-grid { stroke: #9fbccd; stroke-width: 1; stroke-dasharray: 3 5; }
html[data-theme="dark"] .ol-axis { stroke: #b8d4e4; }
html[data-theme="dark"] .ol-grid { stroke: #3f6680; }
.ol-prof { fill: none; stroke: #d0482f; stroke-width: 3.5; stroke-linejoin: round; }
.ol-pt { fill: #ffffff; stroke: #d0482f; stroke-width: 3; }
html[data-theme="dark"] .ol-prof { stroke: #ff8a6e; }
html[data-theme="dark"] .ol-pt { fill: #0b1e30; stroke: #ff8a6e; }
.ol-band { fill: rgba(240, 140, 60, .18); stroke: #e08a3c; stroke-width: 1.5; stroke-dasharray: 5 4; }
.ol-t-band { font-size: 18px; font-weight: 900; fill: #9a4a08; }
.ol-t-bandn { font-size: 16px; font-weight: 700; fill: #9a4a08; }
.ol-t-band, .ol-t-bandn { paint-order: stroke; stroke: #f6eee6; stroke-width: 5px; stroke-linejoin: round; }
html[data-theme="dark"] .ol-t-band, html[data-theme="dark"] .ol-t-bandn { fill: #ffc58f; stroke: #2a2420; }
.ol-hit { fill: rgba(46, 139, 87, .18); stroke: #2e8b57; stroke-width: 3.5; }
.ol-pill-ok { fill: #2e8b57; }
.ol-t-pill { font-size: 18px; font-weight: 900; fill: #ffffff; }
.ol-mine-d { fill: #fff0ec; stroke: #b42318; stroke-width: 3; }
.ol-t-mine { font-size: 17px; font-weight: 800; fill: #b42318; paint-order: stroke; stroke: #ffffff; stroke-width: 4px; }
html[data-theme="dark"] .ol-t-mine { fill: #ffb4a8; stroke: #0b1e30; }

/* light meter */
.ol-arrow { stroke: #23415a; stroke-width: 3; fill: none; }
.ol-arrow-h { fill: none; stroke: #23415a; stroke-width: 3; stroke-linejoin: round; }
html[data-theme="dark"] .ol-arrow, html[data-theme="dark"] .ol-arrow-h { stroke: #b8d4e4; }
.ol-zline { stroke: #ffe680; stroke-width: 2.5; stroke-dasharray: 10 6; }
.ol-zone { fill: rgba(255, 255, 255, .7); stroke: #8fb6cc; stroke-width: 1.5; }
.ol-zone.is-on { fill: #fff3c4; stroke: #c98a12; stroke-width: 3.5; }
html[data-theme="dark"] .ol-zone { fill: rgba(20, 50, 75, .8); stroke: #3f7395; }
html[data-theme="dark"] .ol-zone.is-on { fill: #4a3a10; stroke: #ffd36a; }
.ol-t-zone { font-size: 19px; font-weight: 900; fill: #10283a; }
html[data-theme="dark"] .ol-t-zone { fill: #f2f8fb; }
.ol-life { fill: rgba(255, 255, 255, .94); stroke: #c98a12; stroke-width: 2.5; }
.ol-t-life { font-size: 17px; font-weight: 700; fill: #10283a; }

/* pressure gauge */
.ol-dial-rim { fill: #5f6b76; stroke: #2a3138; stroke-width: 2; }
.ol-dial { fill: url(#ol-g-dial); stroke: #2a3138; stroke-width: 2; }
html[data-theme="dark"] .ol-dial { fill: url(#ol-g-dial-d); }
.ol-dial-tick { stroke: #23415a; stroke-width: 3; }
html[data-theme="dark"] .ol-dial-tick { stroke: #b8d4e4; }
.ol-t-dial { font-size: 18px; font-weight: 800; fill: #10283a; }
.ol-t-dialu { font-size: 18px; font-weight: 700; fill: #23415a; }
.ol-needle { stroke: #d0482f; stroke-width: 5; stroke-linecap: round; }
.ol-hub { fill: #2a3138; }
.ol-lcd-bg { fill: #10241a; stroke: #2a3138; stroke-width: 2; }
.ol-lcd { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 24px; font-weight: 700; fill: #4c6b58; }
.ol-lcd.is-on { fill: #7dff9e; }
.ol-t-led { font-size: 18px; font-weight: 700; fill: #10283a; }
.ol-t-ledv { font-size: 18px; font-weight: 800; fill: #10283a; font-variant-numeric: tabular-nums; }
.ol-b { font-weight: 900; }
.ol-colline { stroke: #ffe680; stroke-width: 3; stroke-dasharray: 6 5; fill: none; }
.ol-colhead { fill: none; stroke: #ffe680; stroke-width: 3; stroke-linejoin: round; }
.ol-colfill { fill: rgba(255, 230, 128, .35); stroke: #ffe680; stroke-width: 1.5; }

/* layer task reveal */
.ol-t-delta { font-size: 17px; font-weight: 800; fill: #23415a; paint-order: stroke; stroke: #f6fbfd; stroke-width: 4px; }
.ol-t-delta.is-big { fill: #9a4a08; font-weight: 900; }
html[data-theme="dark"] .ol-t-delta { fill: #e3f1f9; stroke: #09182a; }
html[data-theme="dark"] .ol-t-delta.is-big { fill: #ffc58f; }
.ol-mine-band { fill: none; stroke: #b42318; stroke-width: 3; stroke-dasharray: 8 5; }
/* life task: the animals stay hidden until Check, so the scene never answers the question */
.ol--life:not(.is-revealed) .ol-plankton, .ol--life:not(.is-revealed) .ol-school, .ol--life:not(.is-revealed) .ol-jelly,
.ol--life:not(.is-revealed) .ol-lantern, .ol--life:not(.is-revealed) .ol-angler { display: none; }
/* generic choice buttons (layer, life) */
.ol-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ol-choices--life { grid-template-columns: 1fr; }
.ol-choice { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 12px; font: inherit; font-size: 18px; text-align: left; cursor: pointer;
  border-radius: 12px; border: 2px solid var(--tlg-border, #a5b6c1); background: var(--tlg-surface, #fff); color: var(--tlg-text, #172c38); box-shadow: 0 2px 0 rgba(0, 0, 0, .08); touch-action: manipulation; }
.ol-choice:hover:not(:disabled) { border-color: #1d5f86; }
.ol-choice[aria-pressed="true"] { border-color: #1d5f86; border-width: 3px; background: #e1eff6; }
.ol-choice[aria-pressed="true"] b::after { content: ' ✓'; color: #1d5f86; }
html[data-theme="dark"] .ol-choice[aria-pressed="true"] { background: #173a52; border-color: #8fd0f2; }
.ol-choice-t { display: flex; flex-direction: column; line-height: 1.25; }
.ol-choice-t b { font-weight: 800; }
.ol-choice-t span { font-size: 16px; color: var(--tlg-text-muted, #4b5d68); }
html[data-theme="dark"] .ol-choice-t span { color: #b8cbd8; }
.ol-life-ic { flex: none; display: inline-flex; }
.ol-life-ic svg { display: block; border-radius: 8px; }

/* gentle idle motion (none with reduced motion) */
.ol-school { animation: ol-swim 9s ease-in-out infinite alternate; }
.ol-jelly { animation: ol-bob 5s ease-in-out infinite alternate; transform-box: fill-box; }
.ol-lure { animation: ol-glow 2.6s ease-in-out infinite alternate; }
@keyframes ol-swim { from { transform: translateX(-18px); } to { transform: translateX(22px); } }
@keyframes ol-bob { from { translate: 0 -5px; } to { translate: 0 5px; } }
@keyframes ol-glow { from { opacity: .55; } to { opacity: 1; } }

/* briefing + start */
.ol-example-svg { display: block; width: 100%; height: auto; max-height: 460px; }
.ol-start-svg { display: block; width: 100%; height: 100%; }

@media (prefers-reduced-motion: reduce) { .ol-badge, .ol-school, .ol-jelly, .ol-lure { animation: none; } }
@media (max-width: 1100px) { .ol { grid-template-columns: 300px minmax(0, 1fr); } }
@media (max-width: 900px) {
  .ol { position: static; grid-template-columns: 1fr; }
  .ol-panel { overflow: visible; }
  .ol-view { display: block; order: -1; }
  .ol-scene { width: 100% !important; }
}
