.diving-header { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; margin-bottom:24px; }
.diving-header h2 { margin:0; font-size:clamp(34px,4vw,52px); letter-spacing:-.04em; }
.diving-header p { color:var(--muted); max-width:52ch; }
.diving-kicker { color:#6edbd2!important; font-size:11px; font-weight:800; letter-spacing:.16em; text-transform:uppercase; }
.diving-toolbar,.diving-actions { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.diving-toolbar { margin:20px 0; }
.diving-toolbar input { flex:1; min-width:160px; }
.diving-toolbar input,.diving-toolbar select,.diving-form input,.diving-form select,.diving-form textarea { background:#102338; color:#edf6ff; border:1px solid #39516a; border-radius:10px; padding:11px 12px; font:inherit; max-width:100%; }
.diving-toolbar select { max-width:200px; }
.diving-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.diving-stat { border:1px solid #2c465a; border-radius:16px; padding:18px; background:linear-gradient(140deg,#102c3c,#0a1829); }
.diving-stat strong { display:block; font-size:28px; letter-spacing:-.03em; color:#effbff; }
.diving-stat span { color:#9bb4c6; font-size:12px; }
.diving-layout { display:grid; grid-template-columns:minmax(330px,.95fr) minmax(0,1.35fr); gap:22px; align-items:start; }
.diving-list { display:grid; align-content:start; gap:18px; max-height:790px; overflow:auto; padding:2px 7px 2px 2px; }
.diving-entry-group { display:grid; gap:9px; }
.diving-entry-group h3 { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0 2px 2px; color:#afc7d5; font-size:11px; letter-spacing:.13em; text-transform:uppercase; }
.diving-entry-group h3 small { color:#7f9aaa; font-size:10px; font-weight:600; letter-spacing:0; text-transform:none; }
.diving-entry { display:grid; grid-template-columns:58px minmax(0,1fr) auto; align-items:center; gap:13px; text-align:left; width:100%; border:1px solid #294256; border-radius:17px; background:linear-gradient(125deg,#102439,#0b1a29); color:#eaf3fc; padding:14px; cursor:pointer; transition:border-color .18s ease,background .18s ease,transform .18s ease,box-shadow .18s ease; }
.diving-entry:hover { border-color:#579ead; background:linear-gradient(125deg,#153349,#0d2030); transform:translateY(-1px); }
.diving-entry[aria-pressed="true"] { border-color:#64d6cb; box-shadow:inset 3px 0 #64d6cb,0 8px 24px #020b1350; background:linear-gradient(125deg,#143747,#0d2130); }
.diving-entry strong { font-size:15px; line-height:1.25; display:block; margin:6px 0 4px; overflow-wrap:anywhere; }
.diving-entry small { color:#a5bdce; font-size:11px; }
.entry-date { display:grid; justify-items:center; align-content:center; min-height:64px; border:1px solid #315266; border-radius:13px; background:#0a1927; color:#a9c5d3; line-height:1; }
.entry-date b { color:#effaff; font-size:23px; letter-spacing:-.05em; }
.entry-date>span { margin-top:4px; color:#78dfd6; font-size:10px; font-weight:800; text-transform:uppercase; }
.entry-date small { margin-top:5px; font-size:9px; }
.entry-content { min-width:0; }
.entry-kicker { display:flex; align-items:center; gap:7px; flex-wrap:wrap; }
.entry-kicker>small { color:#83a0b2; font-size:9px; font-weight:800; letter-spacing:.1em; }
.entry-subtitle { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.entry-metrics { display:flex; gap:14px; flex-wrap:wrap; margin-top:11px; }
.entry-metrics>span { display:grid; gap:3px; min-width:0; }
.entry-metrics b { color:#e0f2fa; font-size:11px; font-weight:700; }
.entry-metrics small { color:#7f9aaa; font-size:9px; text-transform:uppercase; letter-spacing:.06em; }
.entry-chevron { color:#78aaaF; font-size:24px; font-weight:300; line-height:1; }
.entry-gear-icon { display:grid; place-items:center; width:48px; height:48px; border:1px solid #315266; border-radius:15px; background:linear-gradient(145deg,#16414a,#102535); color:#8de0d6; font-size:18px; font-weight:800; }
.entry-review { display:flex; align-items:center; gap:5px; color:#78dfd6; font-size:10px; font-weight:700; white-space:nowrap; }
.entry-review.attention { color:#ffcd87; }
.entry-review.blocked { color:#ffabb5; }
.planner-entry-group { gap:10px; }
.planner-entry .entry-metrics { gap:17px; }
.planner-entry .entry-metrics b { font-size:10px; }
.plan-status-booked { color:#b4d8ff; background:#193653; }
.plan-status-cancelled { color:#ffb4bc; background:#4b2631; }
.diving-detail { position:sticky; top:18px; max-height:calc(100vh - 36px); overflow:auto; scrollbar-color:#34556a transparent; background:linear-gradient(155deg,#122a3b,#091725); border:1px solid #2c495c; border-radius:19px; padding:clamp(18px,2.5vw,28px); min-height:300px; }
.diving-detail h3 { margin:8px 0; font-size:27px; letter-spacing:-.03em; overflow-wrap:anywhere; }
.diving-detail h4 { margin:24px 0 12px; color:#c6e3ef; font-size:13px; }
.diving-detail p,.diving-empty p { color:#a9bfce; line-height:1.6; }
.diving-detail dl { display:grid; grid-template-columns:1fr 1fr; gap:18px 14px; margin:22px 0; }
.diving-detail dl div { min-width:0; }
.diving-detail dt { font-size:11px; color:#9eb5c8; margin-bottom:5px; }
.diving-detail dd { margin:0; font-weight:600; overflow-wrap:anywhere; }
.record-sections { display:grid; gap:10px; margin:20px 0; }
.record-section { border:1px solid #29475b; border-radius:14px; background:#0b1b2a; padding:2px 14px 13px; }
.record-section h4 { display:flex; align-items:center; gap:8px; margin:12px 0 10px; color:#a9d8dd; font-size:11px; letter-spacing:.11em; text-transform:uppercase; }
.record-section dl { margin:0; gap:14px 18px; }
.diving-notes { white-space:pre-wrap; overflow-wrap:anywhere; padding:16px; border-radius:12px; background:#081625; font-size:14px; }
.diving-raw { margin-top:24px; border:1px solid #30485d; border-radius:12px; background:#071523; }
.diving-raw summary { cursor:pointer; padding:14px; color:#b9d7e5; font-size:12px; font-weight:700; }
.diving-raw pre { max-height:430px; overflow:auto; margin:0; padding:16px; border-top:1px solid #30485d; color:#b6cada; font:11px/1.55 ui-monospace,SFMono-Regular,Consolas,monospace; white-space:pre-wrap; overflow-wrap:anywhere; }
.diving-profile-metrics { margin-top:0!important; padding:12px; border-radius:12px; background:#081625; }
.diving-badge { display:inline-block; font-size:10px; font-weight:800; letter-spacing:.07em; padding:5px 8px; border-radius:6px; background:#133f43; color:#95ead9; }
.diving-badge.attention { background:#50391f; color:#ffcf87; }
.diving-badge.blocked { background:#4b2631; color:#ffb4bc; }
.diving-empty { grid-column:1/-1; padding:40px 25px; border:1px dashed #39566b; border-radius:17px; text-align:center; }
.diving-empty h3 { color:#e0f2fb; }
.diving-status { min-height:22px; color:#a6c7d7; font-size:12px; margin:10px 0; }
.diving-status.is-error { color:#ffb1bc; }
.diving-footnote { color:#91a9ba; font-size:11px; margin:24px 0 0; }
.diving-chart { width:100%; height:auto; border-radius:12px; background:#071726; }
.diving-components { display:grid; gap:8px; padding:0; list-style:none; }
.diving-components li,.diving-check { padding:12px; border:1px solid #30485d; border-radius:10px; font-size:13px; }
.diving-components small { display:block; color:#9db5c8; margin-top:5px; }
.diving-setups { display:flex; gap:8px; overflow:auto; margin:20px 0; }
.diving-setups button { flex-shrink:0; border:1px solid #3d596d; color:#b9d4e5; background:#112536; border-radius:20px; padding:9px 14px; cursor:pointer; }
.diving-setups button[aria-pressed="true"] { color:#102b36; background:#91dfd7; border-color:#91dfd7; }
.diving-check { display:flex; align-items:center; gap:10px; margin:8px 0; }
.diving-check input { accent-color:#6edbd2; width:18px; height:18px; }
.diving-dialog { width:min(680px,calc(100% - 30px)); max-height:90vh; border:1px solid #456578; border-radius:20px; background:#0c1d2e; color:#edf6ff; padding:26px; }
.diving-dialog::backdrop { background:#020b13c9; backdrop-filter:blur(5px); }
.diving-dialog h3 { margin:0 0 20px; font-size:26px; }
.diving-form { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.diving-form label { display:grid; gap:7px; color:#b8cede; font-size:12px; }
.diving-form .wide { grid-column:1/-1; }
.diving-form textarea { min-height:100px; resize:vertical; }
.diving-form .diving-actions { justify-content:flex-end; }
.diving-dialog button,.diving-toolbar button,.diving-detail button { cursor:pointer; }
.diving-danger { color:#ffb0bc!important; border-color:#794453!important; }
.diving-detail .btn { font-size:12px; padding:9px 12px; }
.diving-entry:focus-visible,.diving-setups button:focus-visible { outline:3px solid #f6d58a; outline-offset:3px; }
.planner-alerts { display:grid; gap:9px; }
.planner-alert { border:1px solid #315067; border-left:4px solid #579ead; border-radius:11px; background:#0a1a29; padding:12px 14px; }
.planner-alert.warning { border-left-color:#e1a951; }
.planner-alert.danger { border-left-color:#ef7180; }
.planner-alert.good { border-left-color:#64d6cb; }
.planner-alert strong { color:#eaf6fb; font-size:13px; }
.planner-alert p { margin:5px 0 0; font-size:12px; }
.planner-timeline { display:grid; gap:0; list-style:none; padding:0; border-left:2px solid #315067; margin-left:8px; }
.planner-timeline li { display:grid; gap:3px; padding:4px 0 16px 18px; position:relative; }
.planner-timeline li::before { content:''; position:absolute; width:9px; height:9px; border-radius:50%; background:#6edbd2; left:-5.5px; top:8px; }
.planner-timeline span,.planner-timeline small { color:#9eb7c8; font-size:11px; }
.planner-packing .diving-check { justify-content:flex-start; }
.planner-packing small { color:#91a9ba; margin-left:auto; }
.planner-dialog { width:min(940px,calc(100% - 30px)); }
.planner-dialog fieldset { border:1px solid #30485d; border-radius:12px; padding:14px; }
.planner-dialog legend { color:#b8cede; font-size:12px; padding:0 6px; }
.planner-field-grid,.planner-cert-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.planner-cert-grid .diving-check { margin:0; }
.planner-segment { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; padding:13px; margin-bottom:10px; border:1px solid #30485d; border-radius:12px; background:#091827; }
.planner-segment .diving-danger { align-self:end; min-height:44px; }
.planner-task { display:grid; grid-template-columns:auto 1fr auto; gap:9px; align-items:center; margin:8px 0; }
.planner-task input[type="text"] { width:100%; }
.planner-site-results { display:grid; gap:5px; margin-top:-10px; }
.planner-site-results button { display:flex; justify-content:space-between; gap:12px; text-align:left; border:1px solid #345269; border-radius:9px; padding:10px; color:#e9f5fb; background:#0a1a29; }
.planner-site-results small { color:#9eb7c8; }
@media(max-width:1050px) { .diving-layout { grid-template-columns:1fr; } .diving-list { max-height:430px; } .diving-detail { position:static; max-height:none; } }
@media(max-width:760px) { .planner-field-grid,.planner-cert-grid,.planner-segment { grid-template-columns:1fr; } }
@media(max-width:600px) { .diving-header { display:block; } .diving-stats { gap:7px; } .diving-stat { padding:13px 10px; } .diving-stat strong { font-size:23px; } .diving-form { grid-template-columns:1fr; } .diving-toolbar select { max-width:100%; flex:1; } .diving-entry { grid-template-columns:48px minmax(0,1fr) auto; gap:10px; padding:12px; border-radius:14px; } .entry-date { min-height:58px; } .entry-date b { font-size:20px; } .entry-metrics { gap:10px; } .entry-metrics b { font-size:10px; } .entry-review { font-size:9px; } .diving-detail dl { grid-template-columns:1fr; gap:12px; } }

/* Dive tools workspace refresh */
.diving-header { align-items:center; margin:2px 0 16px; }
.diving-header h2 { color:#f1fbff; font-size:clamp(30px,3.5vw,42px); letter-spacing:-.045em; }
.diving-header p:not(.diving-kicker) { margin:7px 0 0; font-size:14px; }
.diving-kicker { margin:0 0 8px; color:#79ddd2!important; font-size:10px; letter-spacing:.14em; }
.diving-header > .btn { flex:0 0 auto; border-radius:11px; box-shadow:0 8px 22px rgba(22, 154, 146, .17); }
.diving-stats { grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; }
.account-view[data-account-view-panel="logbook"] .diving-stats .diving-stat:nth-child(n+4) { display:none; }
.diving-stat { position:relative; overflow:hidden; min-height:84px; padding:14px 16px; border-color:rgba(125, 195, 206, .17); border-radius:14px; background:linear-gradient(140deg, rgba(14, 47, 62, .98), rgba(8, 26, 41, .98)); }
.diving-stat::after { content:""; position:absolute; right:-22px; bottom:-35px; width:86px; height:86px; border:1px solid rgba(114, 218, 207, .1); border-radius:50%; box-shadow:0 0 0 12px rgba(114, 218, 207, .025), 0 0 0 24px rgba(114, 218, 207, .02); }
.diving-stat strong { position:relative; z-index:1; font-size:25px; }
.diving-stat span { position:relative; z-index:1; font-size:11px; }
.diving-status { min-height:18px; margin:8px 0 10px; font-size:11px; }
.diving-toolbar { position:sticky; z-index:5; top:8px; display:flex; gap:8px; margin:10px 0 12px; padding:9px; border:1px solid rgba(133, 192, 203, .14); border-radius:14px; background:rgba(7, 22, 35, .9); box-shadow:0 10px 28px rgba(0,0,0,.16); backdrop-filter:blur(16px); }
.diving-toolbar input, .diving-toolbar select { min-height:40px; padding:9px 11px; border-color:#304d60; border-radius:9px; background:#0b1d2d; font-size:12px; }
.diving-toolbar input { min-width:200px; }
.diving-toolbar button { min-height:40px; padding:8px 11px; border-radius:9px; font-size:11px; white-space:nowrap; }
.diving-layout { grid-template-columns:minmax(320px,.9fr) minmax(0,1.2fr); gap:13px; }
.diving-list { max-height:clamp(420px,calc(100vh - 430px),760px); gap:10px; padding:3px 5px 3px 2px; scrollbar-color:#315366 transparent; }
.diving-entry-group { gap:7px; }
.diving-entry-group h3 { position:sticky; top:0; z-index:2; padding:7px 8px; border-radius:8px; background:rgba(8, 25, 39, .95); backdrop-filter:blur(10px); color:#91b7c2; font-size:10px; }
.diving-entry { grid-template-columns:50px minmax(0,1fr) auto; gap:11px; padding:11px; border-color:rgba(103, 155, 174, .2); border-radius:13px; background:linear-gradient(125deg,#102a3d,#0b1d2c); }
.diving-entry:hover { transform:translateY(-1px); }
.diving-entry[aria-pressed="true"] { border-color:#62cfc5; box-shadow:inset 3px 0 #62cfc5,0 8px 20px #020b1340; background:linear-gradient(125deg,#123746,#0c2231); }
.entry-date { min-height:55px; border-color:#2d4b5e; border-radius:11px; }
.entry-date b { font-size:21px; }
.entry-content { overflow:hidden; }
.diving-entry strong { margin:4px 0 3px; font-size:14px; }
.entry-subtitle { font-size:10px!important; }
.entry-metrics { gap:10px; margin-top:8px; }
.entry-metrics b { font-size:10px; }
.entry-metrics small { font-size:8px; }
.diving-badge { padding:4px 7px; border-radius:999px; font-size:9px; }
.entry-kicker > small { font-size:8px; }
.entry-chevron { font-size:20px; }
.diving-detail { top:12px; max-height:calc(100vh - 24px); min-height:0; padding:20px; border-color:rgba(117, 186, 197, .2); border-radius:16px; background:linear-gradient(155deg,#102a3a,#081827); box-shadow:0 14px 36px rgba(0,0,0,.16); }
.diving-detail h3 { margin:9px 0 4px; font-size:24px; }
.diving-detail h4 { margin:18px 0 9px; }
.diving-detail dl { gap:13px 12px; margin:15px 0; }
.record-sections { gap:7px; margin:13px 0; }
.record-section { padding:11px 13px; border-color:rgba(101, 155, 173, .2); border-radius:11px; background:rgba(5, 19, 31, .72); }
.record-section h4 { margin:0 0 9px; font-size:10px; }
.record-section summary, .planner-disclosure summary { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:35px; color:#c7e5eb; font-size:12px; font-weight:750; cursor:pointer; list-style:none; }
.record-section summary::-webkit-details-marker, .planner-disclosure summary::-webkit-details-marker { display:none; }
.record-section summary::after, .planner-disclosure summary::after { content:'+'; color:#73d9d0; font-size:18px; font-weight:400; }
.record-section[open] > summary::after, .planner-disclosure[open] > summary::after { content:'−'; }
.record-section details, .planner-disclosure { min-width:0; }
.record-section[open] > summary { margin-bottom:11px; }
.record-section dl { gap:11px 14px; }
.record-section dt { font-size:10px; }
.record-section dd { font-size:12px; }
.diving-notes { padding:12px; border:1px solid rgba(113, 165, 179, .14); border-radius:10px; font-size:13px; }
.diving-raw { margin-top:16px; border-radius:11px; }
.diving-raw summary { padding:12px; }
.diving-footnote { margin:13px 0 0; font-size:10px; }
.planner-alert { border-radius:10px; padding:10px 12px; }
.planner-alert strong { font-size:12px; }
.planner-alert p { font-size:11px; }
.planner-disclosure { margin:9px 0; padding:6px 12px 9px; border:1px solid rgba(101, 155, 173, .2); border-radius:11px; background:rgba(5, 19, 31, .72); }
.planner-disclosure[open] > summary { margin-bottom:8px; border-bottom:1px solid rgba(101, 155, 173, .15); }
.diving-empty { padding:28px 18px; border-radius:14px; }

@media(max-width:1050px) {
  .diving-layout { grid-template-columns:minmax(0,1fr); }
  .diving-list { max-height:440px; }
  .diving-detail { position:relative; top:auto; max-height:none; }
}
@media(max-width:700px) {
  .diving-toolbar { top:66px; flex-wrap:wrap; }
  .diving-toolbar input { flex:1 1 100%; }
  .diving-toolbar select { flex:1 1 130px; max-width:none; }
  .diving-toolbar button { flex:1 1 auto; }
  .diving-list { max-height:380px; }
  .diving-stats { gap:6px; }
  .diving-stat { min-height:72px; padding:11px 10px; }
  .diving-stat strong { font-size:21px; }
  .diving-stat span { font-size:9px; }
  .diving-header > .btn { margin-top:10px; }
}
@media(max-width:480px) {
  .diving-layout { gap:9px; }
  .diving-entry { grid-template-columns:43px minmax(0,1fr) auto; gap:8px; padding:9px; }
  .entry-date { min-height:50px; }
  .entry-date b { font-size:19px; }
  .entry-metrics { gap:8px; }
  .entry-metrics b { font-size:9px; }
  .diving-detail { padding:15px; }
}

/* Mobile tools use a list-to-detail flow instead of stacking both screens. */
.diving-mobile-back { display:none; }
@media(max-width:760px) {
  .diving-toolbar { position:sticky; top:6px; margin:8px 0 10px; padding:8px; }
  .diving-toolbar input { min-width:0; }
  .diving-list { max-height:min(56svh,520px); min-height:160px; overflow:auto; overscroll-behavior:contain; -webkit-overflow-scrolling:touch; }
  .diving-layout { display:block; }
  .diving-layout:not(.is-mobile-detail) .diving-detail { display:none; }
  .diving-layout.is-mobile-detail [data-list] { display:none; }
  .diving-layout.is-mobile-detail .diving-detail { display:block; max-height:none; overflow:visible; }
  .diving-mobile-back { display:inline-flex; align-items:center; gap:6px; min-height:40px; margin:0 0 13px; padding:8px 12px; border:1px solid #35586a; border-radius:10px; color:#bce7e4; background:#0b2230; font:inherit; font-size:13px; font-weight:700; line-height:1; cursor:pointer; }
  .diving-mobile-back:active { background:#123747; }
  .diving-detail .diving-actions { gap:7px; }
  .diving-detail .diving-actions .btn { flex:1 1 auto; text-align:center; }
  .diving-entry { min-height:86px; }
}
@media(max-width:420px) {
  .diving-stats .diving-stat { min-height:68px; }
  .diving-stats .diving-stat strong { font-size:19px; }
  .diving-entry { grid-template-columns:40px minmax(0,1fr) auto; }
  .entry-metrics { gap:6px; }
  .entry-review { max-width:62px; white-space:normal; text-align:right; line-height:1.2; }
}

/* App-style tools: compact browser on the left, one task at a time on the right. */
[hidden] { display:none!important; }
.tool-tabs,.tool-view-switch { display:flex; gap:4px; padding:4px; border:1px solid #294554; border-radius:12px; background:#071725; }
.tool-tabs { flex-wrap:wrap; margin:18px 0 16px; }
.tool-tabs button,.tool-view-switch button { flex:1 0 auto; min-height:40px; padding:9px 13px; border:0; border-radius:8px; background:transparent; color:#9bb7c7; font-family:inherit; font-size:12px; font-weight:600; line-height:1.3; cursor:pointer; }
.tool-tabs button[aria-selected="true"],.tool-view-switch button[aria-pressed="true"] { color:#dcfffa; background:#1b444d; box-shadow:inset 0 -2px #70d7cd; }
.tool-tabs button:focus-visible,.tool-trip-shortcuts button:focus-visible { outline:2px solid #f6d58a; outline-offset:2px; }
.tool-view-switch { width:fit-content; margin:0 0 12px; }
.tool-pane { min-width:0; outline-offset:4px; }
.tool-pane > :first-child { margin-top:0; }
.tool-list-pagination { position:sticky; top:0; z-index:3; display:flex; gap:8px; align-items:center; padding:8px 12px; border-bottom:1px solid #294554; background:#0b2332; color:#a5bdce; font-size:12px; }
.tool-list-pagination span { flex:1; }
.tool-list-pagination button { min-width:38px; min-height:38px; padding:4px; border:1px solid #39516a; border-radius:8px; background:#102e3c; color:#d4f8f4; font-size:22px; cursor:pointer; }
.tool-list-pagination button:disabled { opacity:.3; cursor:default; }
.tool-key-metrics { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin:10px 0 16px; }
.tool-key-metrics .diving-stat { min-height:0; padding:12px; border-radius:10px; }
.tool-key-metrics .diving-stat strong { font-size:22px; }
.tool-key-metrics .diving-stat::after { display:none; }
.diving-header { margin-bottom:12px; }
.diving-header h2 { font-size:30px; }
.diving-header .diving-kicker { display:none; }
.diving-header p:not(.diving-kicker) { font-size:12px; margin-top:4px; max-width:58ch; }
.diving-stats { gap:0; border-block:1px solid #294554; margin:8px 0; }
.diving-stats > .diving-stat { border:0; border-radius:0; background:transparent; padding:10px 14px; min-height:0; }
.diving-stats > .diving-stat + .diving-stat { border-left:1px solid #294554; }
.diving-stats > .diving-stat::after { display:none; }
.diving-stats > .diving-stat strong { font-size:21px; }
.diving-toolbar { position:relative; top:auto; margin-bottom:8px; flex-wrap:nowrap; box-shadow:none; }
.diving-toolbar input { min-width:100px; }
.diving-toolbar select { max-width:150px; }
.diving-layout { display:grid; grid-template-columns:minmax(270px,.75fr) minmax(0,1.25fr); gap:14px; align-items:stretch; }
.diving-list,.diving-detail { height:clamp(380px,calc(100svh - 370px),850px); max-height:none; overflow:auto; overscroll-behavior:contain; }
.diving-list { display:block; padding:0; border:1px solid #294554; border-radius:14px; background:#091c2a; }
.diving-entry-group { display:block; }
.diving-entry-group h3 { border-radius:0; margin:0; padding:9px 12px; background:#0e2533; }
.diving-entry { min-height:88px; border:0; border-bottom:1px solid #203c4d; border-radius:0; background:transparent; padding:12px; }
.diving-entry:hover { transform:none; background:#102d3c; }
.diving-entry[aria-pressed="true"] { box-shadow:inset 3px 0 #70d7cd; background:#163642; }
.diving-detail { position:relative; top:auto; padding:18px 20px; background:#0b202e; box-shadow:none; }
.diving-detail h3 { font-size:24px; }
.diving-detail > p { font-size:12px; }
.diving-detail .diving-actions { gap:6px; }
.record-sections { grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; }
.record-section dl { grid-template-columns:1fr; }
.tool-card { min-width:0; padding:18px; border:1px solid #294554; border-radius:13px; background:#0a1e2c; }
.tool-card h3 { margin:0 0 16px; font-size:17px; }
.tool-card p { color:#a5bdce; font-size:12px; }
.tool-card dl { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.tool-card dt { color:#93afbf; font-size:11px; }
.tool-card dd { margin:5px 0 0; color:#e6f6fa; font-size:14px; overflow-wrap:anywhere; }
.tool-analytics-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.tool-analytics-grid > :last-child { grid-column:1/-1; }
.tool-bar-row { display:grid; grid-template-columns:minmax(80px,1fr) 1fr 30px; gap:12px; align-items:center; margin:14px 0; font-size:12px; }
.tool-bar-row meter { width:100%; height:16px; accent-color:#70d7cd; }
.is-stats-view .diving-stats { grid-template-columns:repeat(6,minmax(0,1fr)); }
.account-view[data-account-view-panel="logbook"] .is-stats-view .diving-stats .diving-stat { display:block; }
.tool-filters { margin:6px 0 12px; color:#a5bdce; font-size:12px; }
.tool-filters summary { cursor:pointer; padding:6px 2px; }
.tool-filters > div { display:flex; gap:12px; flex-wrap:wrap; padding:12px; border:1px solid #294554; border-radius:10px; }
.tool-filters label { display:grid; gap:5px; flex:1; }
.tool-filters input,.tool-filters select { min-width:0; min-height:40px; padding:8px; border:1px solid #39516a; border-radius:8px; color:#edf6ff; background:#102338; font:inherit; color-scheme:dark; }
.tool-export { position:relative; flex-shrink:0; }
.tool-export summary { cursor:pointer; list-style:none; padding:10px; font-size:12px; color:#b9e6e4; }
.tool-export > div { position:absolute; top:100%; right:0; z-index:10; display:grid; gap:5px; min-width:170px; padding:8px; border:1px solid #39516a; border-radius:10px; background:#0b202e; box-shadow:0 12px 30px #0008; }
.tool-profile-scrub { display:grid; gap:10px; font-size:12px; color:#b8d4df; padding:14px; background:#071725; border-radius:10px; }
.tool-profile-scrub input { width:100%; accent-color:#70d7cd; min-height:28px; }
.tool-profile-scrub output { font-variant-numeric:tabular-nums; min-height:18px; color:#d4fff7; }
.tool-trip-shortcuts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin:14px 0; }
.tool-trip-shortcuts button { text-align:left; padding:14px 10px; border:1px solid #365364; border-radius:10px; background:#102e3c; color:#d4f8f4; font:inherit; font-size:13px; cursor:pointer; }
.tool-trip-shortcuts b { display:block; margin-top:5px; color:#94b6c3; font-size:10px; }
.tool-pane .planner-disclosure { border:0; background:transparent; padding:0; }
.tool-pane .planner-disclosure > summary { pointer-events:none; border:0; }
.tool-pane .planner-disclosure > summary::after { display:none; }
.tool-pane .planner-timeline dl { margin:8px 0; }
.tool-pane .planner-timeline li { padding-bottom:22px; }
.tool-editor-body .tool-pane { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.tool-editor-body fieldset { grid-column:1/-1; min-width:0; }
.tool-editor-body .tool-tabs { position:sticky; top:-26px; z-index:2; background:#0c1d2e; }
.tool-editor-footer { position:sticky; bottom:-26px; padding:14px 0; background:#0c1d2e; border-top:1px solid #294554; z-index:2; }
@media(min-width:761px) and (max-width:1100px) { .diving-layout { grid-template-columns:minmax(230px,.75fr) minmax(0,1.25fr); } .diving-toolbar { flex-wrap:wrap; } .record-sections { grid-template-columns:1fr; } }
@media(max-width:760px) {
  .diving-header { gap:10px; display:flex; align-items:center; }
  .diving-header h2 { font-size:25px; }
  .diving-header p:not(.diving-kicker) { display:none; }
  .diving-header > .btn { margin:0; min-height:42px; padding:10px 12px; font-size:12px; }
  .diving-toolbar { flex-wrap:wrap; padding:7px; }
  .diving-toolbar input { flex:1 1 calc(100% - 60px); }
  .diving-toolbar select { flex:1 1 30%; max-width:none; min-width:0; }
  .diving-toolbar button { flex:0 0 auto; }
  .diving-stats > .diving-stat { padding:9px; }
  .diving-stats > .diving-stat span { font-size:10px; }
  .diving-layout { display:block; }
  .diving-list { height:auto; max-height:none; overflow:visible; }
  .diving-detail { height:auto; max-height:none; padding:14px; }
  .diving-layout.is-mobile-detail .diving-detail { overflow:visible; }
  .tool-tabs { flex-wrap:nowrap; overflow:auto; scrollbar-width:thin; position:sticky; top:6px; z-index:4; }
  .tool-tabs button { min-height:44px; }
  .tool-analytics-grid,.record-sections { grid-template-columns:1fr; }
  .tool-editor-body .tool-pane { grid-template-columns:1fr; }
  .is-stats-view .diving-stats { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .has-tool-detail > .diving-toolbar,.has-tool-detail > .diving-stats,.has-tool-detail > .tool-filters,.has-tool-detail > .diving-setups,.has-tool-detail > .tool-view-switch,.has-tool-detail > .diving-footnote { display:none; }
  .tool-key-metrics .diving-stat strong { font-size:20px; }
  .entry-metrics b { font-size:11px; }
  .entry-subtitle { font-size:11px!important; }
  .tool-trip-shortcuts { grid-template-columns:1fr; }
  .tool-trip-shortcuts button { display:flex; justify-content:space-between; align-items:center; min-height:48px; }
  .tool-trip-shortcuts b { margin:0; }
}
