.tool-hero--diving { background: radial-gradient(ellipse at 82% 38%, #234b49 0%, #182f2d 39%, #19241c 80%); }
@media (prefers-reduced-motion: no-preference) {
  .tool-hero--diving .tool-hero-items img { animation: dive-float 5s ease-in-out infinite; }
  .tool-hero--diving .tool-hero-items img:nth-child(2) { animation-delay: -.85s; }
  .tool-hero--diving .tool-hero-items img:nth-child(3) { animation-delay: -1.75s; }
  @keyframes dive-float { 50% { translate: 0 -5px; } }
}
.dive-panel { margin: .8rem 0; padding: clamp(1rem, 2.8vw, 1.55rem); background: #19231e; border: 1px solid #405348; border-radius: .8rem; scroll-margin-top: 6rem; }
.dive-panel h2 { margin: 0 0 .7rem; font-size: clamp(1.45rem, 3vw, 2.1rem); line-height: 1.06; }
.dive-panel p { margin: .6rem 0; color: #c1cdbf; }
.dive-panel > :last-child { margin-bottom: 0; }
.dive-tanks, .dive-fields, .dive-results { display: grid; gap: .55rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dive-tanks { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 1rem; }
.dive-tanks button, .dive-panel .dive-actions button { padding: .58rem .75rem; background: #25362c; color: #eef2e3; border: 1px solid #587264; border-radius: .55rem; cursor: pointer; font: inherit; min-width: 0; min-height: 44px; overflow-wrap: anywhere; }
.dive-tanks button { display: flex; align-items: center; gap: .5rem; text-align: start; }
.dive-tanks button img { flex: 0 0 auto; width: 42px; height: 42px; object-fit: contain; }
.dive-tanks small { display: block; color: #c9dfb7; font-variant-numeric: tabular-nums; }
.dive-tanks button[aria-pressed="true"], #dive-start:not(:disabled) { background: #cae4a5; color: #17291d; border-color: #cae4a5; }
.dive-tanks button[aria-pressed="true"] small { color: #283f25; }
.dive-tanks button:hover:not([aria-pressed="true"]), .dive-panel .dive-actions button:hover:not(:disabled) { border-color: #b8d9a2; }
.dive-panel .dive-actions button:disabled { opacity: .58; cursor: default; }
.dive-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: .8rem; align-items: start; }
.dive-layout .dive-panel { margin: 0; }
.dive-fields { margin: .8rem 0; }
.dive-fields label { display: flex; flex-direction: column; gap: .3rem; color: #e4eee2; min-width: 0; }
.dive-fields input { width: 100%; min-width: 0; min-height: 44px; padding: .45rem .65rem; color: #f0f5eb; background: #111b16; border: 1px solid #688072; border-radius: .45rem; font: inherit; }
.dive-supply-fields { align-items: start; }
.dive-supply-fields button { min-height: 44px; margin: 0; }
.dive-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: .7rem 0; }
.dive-results { margin: .75rem 0; }
.dive-results div { min-width: 0; background: #223731; border: 1px solid #3e6259; border-radius: .55rem; padding: .68rem; }
.dive-results dt { line-height: 1.2; color: #d0e4d9; font-size: .9rem; }
.dive-results dd { margin: .18rem 0 0; color: #e9f6cb; font-size: clamp(1.5rem, 3.2vw, 2rem); font-weight: 750; font-variant-numeric: tabular-nums; line-height: 1.12; overflow-wrap: anywhere; }
.dive-live dd { font-size: clamp(1.7rem, 4.7vw, 2.6rem); }
.dive-panel progress { width: 100%; height: .8rem; accent-color: #cae4a5; }
.dive-panel [data-alert="true"] { color: #ffc0a2; }
#dive-timer-status { min-height: 1.35em; }
.dive-gear, .dive-related { display: flex; flex-wrap: wrap; gap: .52rem; margin-top: .8rem; }
.dive-gear a, .dive-related a { display: flex; align-items: center; gap: .3rem; min-height: 44px; background: #243830; border: 1px solid #4d695c; border-radius: .48rem; padding: .3rem .7rem; color: #e3efda; }
.dive-related a { text-decoration: underline; text-underline-offset: .15em; }
.dive-gear a:hover, .dive-related a:hover { border-color: #b8d9a2; }
.dive-panel :focus-visible { outline: 2px solid #d7ebb1; outline-offset: 2px; }
.dive-panel [hidden], [data-dive-planner][hidden] { display: none !important; }
@media (max-width: 740px) {
  .dive-tanks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dive-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 450px) {
  .dive-supply-fields { grid-template-columns: minmax(0, 1fr); }
  .dive-tanks button { gap: .22rem; font-size: .86rem; padding: .45rem; }
  .dive-tanks button img { width: 30px; height: 30px; }
}
