:root {
  color-scheme: light;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --ink: #203f37;
  --paper: #f4f0d7;
  font-family: Georgia, 'Times New Roman', serif;
  background: #a7c6ac;
  color: var(--ink);
}
* { box-sizing: border-box; }
html { height: 100%; height: 100dvh; min-height: -webkit-fill-available; scrollbar-width: thin; scrollbar-color: #698d78 #a7c6ac; }
body { margin: 0; height: 100%; height: 100dvh; min-height: -webkit-fill-available; overscroll-behavior: none; }
.viewport { position: fixed; inset: 0; height: 100%; height: 100dvh; min-height: -webkit-fill-available; overflow: hidden; }
#ocean { display: block; width: 100%; height: 100%; }
.masthead { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: flex-start; padding: calc(24px + var(--safe-top)) calc(32px + var(--safe-right)) 0 calc(32px + var(--safe-left)); pointer-events: none; }
.header-left, .header-right { display: flex; pointer-events: auto; }
.header-left { align-items: center; gap: 12px; }
.header-right { flex-direction: column; align-items: flex-end; gap: 7px; }
.header-actions { display: flex; gap: 8px; }
.eyebrow { display: block; font-family: 'Courier New', monospace; font-size: 10px; font-weight: bold; letter-spacing: .15em; text-transform: uppercase; }
h1 { margin: 5px 0 0; font-size: clamp(26px, 4vw, 40px); font-weight: normal; letter-spacing: -.06em; line-height: 1; }
.title-dot { color: #a56330; }
.instruments { text-align: right; font-family: 'Courier New', monospace; }
.header-right .instruments { margin-top: 0; }
.depth { margin: 3px 0 0; font-size: 30px; line-height: 1; letter-spacing: -.06em; }
.dive-time { margin: 3px 0 12px; font-size: 17px; line-height: 1; }
.unit { margin-left: 5px; font-size: 13px; }
.navigation-state { display: block; margin-top: 7px; font-size: 10px; letter-spacing: .03em; }
.dashboard { position: absolute; bottom: 0; left: 0; right: 0; display: flex; justify-content: flex-start; align-items: center; gap: 16px; padding: 12px calc(32px + var(--safe-right)) calc(18px + var(--safe-bottom)) calc(32px + var(--safe-left)); }
.key-guide > span[aria-hidden] { padding: 0 5px; opacity: .5; }
.actions { display: flex; gap: 8px; }
button { min-height: 40px; padding: 9px 14px; border: 1px solid currentColor; border-radius: 5px; background: transparent; color: inherit; font: 11px 'Courier New', monospace; cursor: pointer; }
button:hover { background: #f4f0d725; }
button:focus-visible { outline: 3px solid #c8843d; outline-offset: 4px; }
button[aria-pressed="true"] { background: var(--paper); color: #203f37; }
.pause-notice { position: absolute; top: 43%; left: 50%; transform: translate(-50%, -50%); margin: 0; padding: 18px 26px; border: 1px solid #d1d7b6; border-radius: 5px; background: #203f37; color: var(--paper); font-size: 19px; white-space: nowrap; }
body.is-deep { color: var(--paper); }
body.is-deep .identity { padding: 0; border: 0; background: transparent; color: #fff; }
body.is-deep .identity h1 { color: #fff; }
body.is-deep .title-dot { color: #f2c86e; }
@media (max-width: 600px) {
  .masthead { padding: calc(18px + var(--safe-top)) calc(18px + var(--safe-right)) 0 calc(18px + var(--safe-left)); }
  .header-left { gap: 7px; }
  .header-right { gap: 5px; }
  .header-actions { gap: 6px; }
  .dashboard { align-items: flex-end; padding: 10px calc(16px + var(--safe-right)) calc(14px + var(--safe-bottom)) calc(16px + var(--safe-left)); gap: 8px; }
  .actions { flex-direction: column; gap: 5px; }
  button { min-height: 36px; padding: 7px 9px; font-size: 10px; }
  .eyebrow { font-size: 8px; }
  .depth { font-size: 25px; }
  .dive-time { font-size: 14px; margin-bottom: 9px; }
}
@media (max-width: 380px) {
  .header-left { gap: 5px; }
  .header-left h1 { font-size: 22px; }
}
@media (max-height: 450px) {
  .masthead { padding-top: calc(10px + var(--safe-top)); }
  .dashboard { padding-bottom: calc(8px + var(--safe-bottom)); }
  h1 { font-size: 26px; }
  .navigation-state { display: none; }
}
