
.fine { margin: 16px 0 0; font-size: 13px; color: var(--muted) }
.fine a { color: var(--accent) }
.votebox { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--vote-bg); color: var(--vote); font-size: 13px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px }
.vote { min-height: 34px; padding: 6px 14px; border-radius: 999px; font: 700 12px/1 var(--body); background: var(--vote); color: var(--vote-bg); border: 0 }
.vote[aria-pressed="true"] { background: transparent; color: var(--vote); box-shadow: inset 0 0 0 1.5px var(--vote) }
.lm-map svg { width: 100%; height: auto; display: block }
.lm-map .land { fill: rgba(232,244,246,.14); stroke: rgba(2,16,25,.9); stroke-width: .6 }
.lm-map .land.on { fill: color-mix(in srgb, #4FD6CB var(--pct, 100%), #0b2433) }
.lm-map .dot { fill: #4FD6CB; stroke: rgba(2,16,25,.9); stroke-width: 2 }
.band-phone { margin: 0; width: 100%; max-width: 250px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start }
/* Phones: the hero fills the first screen, and the hero and trip band are centred */
@media (max-width: 760px) {
  .band-phone { align-items: center }
}
.checkout { max-width: 380px; width: 100%; margin: 0 auto; padding: 12px 14px; border-radius: 14px; background: var(--sunk); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; font-size: 14px }
.checkout p { margin: 0 }
.checkout[hidden] { display: none }
/* the Download tab: Free / Premium, which dive, which files, and a cart */
.dlbox { display: grid; gap: 12px; max-width: 520px }
/* the advanced editor's Download has the whole width beside the preview */
.studio:not(.quick) #finishSec .dlbox { max-width: none }
.dlbox .tierseg, .tierseg.dcseg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--sunk); border: 1px solid var(--line) }
.dlbox .tierseg button, .tierseg.dcseg button { min-height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font: 600 15px var(--body); padding: 8px }
.dlbox .tierseg button[aria-pressed="true"], .tierseg.dcseg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-fg) }
.dlbox .dlhead { font: 600 13px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--fg); margin: 6px 0 -2px }
.dlbox .dlhead[hidden], .dlbox .dltrip[hidden], .rcpt[hidden] { display: none }
.dlbox .dltrip { display: grid; gap: 12px }
.dchips { display: flex; flex-wrap: wrap; gap: 6px }
/* on phones a long list of dive chips folds into one line: "8 of 12 dives · Shark Point, Turtle Point and 6 more" with Change */
.dpsum { display: none }
@media (max-width: 760px) {
  .dpick .dpsum { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 12px; background: transparent; color: var(--fg); font: 500 14px var(--body); text-align: left; cursor: pointer }
  .dpick .dpsum span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
  .dpick .dpsum b { color: var(--accent); font-weight: 600; flex: none }
  .dpick:not(.open) .dchips { display: none }
  .dpick.open .dpsum { margin-bottom: 10px }
  .dpick.short .dpsum { display: none }
  .dpick.short .dchips { display: flex }
}
.dchip { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 5px 12px 5px 9px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); font: 600 14px var(--body) }
.dchip::before { content: ''; width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid currentColor; box-sizing: border-box; flex: none }
.dchip[aria-pressed="true"] { color: var(--fg); border-color: color-mix(in srgb, var(--accent) 60%, transparent) }
.dchip[aria-pressed="true"]::before { background: var(--accent); border-color: var(--accent) }
.dchip.all { border-style: dashed }
.dltwrap { border: 1px solid var(--line); border-radius: 12px; background: var(--sunk); overflow: hidden; overflow: clip }
/* the column names stay in view under the top bar while a long list of dives scrolls */
.dltab thead th { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--topbar, 61px)); z-index: 3; background: var(--sunk); box-shadow: inset 0 -1px 0 var(--line) }
.dltab th.nm { text-align: left; padding-left: 12px }
.dltab th label.all { display: flex; justify-items: start; align-items: center; gap: 8px; color: var(--fg); font: 600 13px var(--body) }
.dltab { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 14px }
.dltab col.tk { width: 74px }
.dltab col.cr { width: 84px }
.dltab th { font: 600 12px var(--body); color: var(--muted); padding: 10px 2px 8px; text-align: center; vertical-align: bottom; line-height: 1.25 }
.dltab th label { display: grid; justify-items: center; gap: 6px; cursor: pointer }
.dltab th .ptag { font-size: 9px; padding: 2px 5px }
.dltab td { padding: 10px 2px; border-top: 1px solid var(--line); text-align: center; vertical-align: middle }
.dltab input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); cursor: pointer }
.dltab input:disabled { opacity: .3; cursor: not-allowed }
.dltab .nm { text-align: left; padding-left: 12px }
.dltab .nm button { display: block; width: 100%; background: none; border: 0; padding: 0; min-height: 0; text-align: left; color: var(--fg); font: 600 15px var(--body); line-height: 1.25; cursor: pointer; overflow-wrap: break-word }
.dltab .nm button[aria-current="true"] { color: var(--accent) }
.dltab .nm > b { display: block; font: 600 15px var(--body); line-height: 1.25; overflow-wrap: break-word }   /* names wrap, never cut (owner, 26 Nov 2026) */
.dltab .nm small { display: block; color: var(--muted); font: 400 12px var(--body); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.dltab .nm small .linkbtn { display: inline; width: auto; background: none; border: 0; padding: 0; min-height: 0; color: var(--accent); font: 600 12px var(--body); text-decoration: underline; cursor: pointer }
.dltab .nm small.intrip { display: inline-block; margin: 4px 6px 0 0; font: 500 10px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--gold) }
.dltab .nm .ptag { display: inline-block; margin-top: 4px; font-size: 9px; padding: 2px 5px }
.dltab tr.trip .nm > b { color: var(--accent) }
.dltab .na { color: var(--muted) }
.dltab .cr { text-align: right; padding-right: 12px; font-weight: 700; font-variant-numeric: tabular-nums }
.dltab .cr .minus { color: var(--coral, #ff6b6b) }
.dltab .cr .ptag { font-size: 9px; padding: 2px 5px }
@media (max-width: 420px) {
  .dltab col.tk { width: 46px }
  /* Free has no Credits column, so the Carousel column has room for its Premium tag (owner, 17 Nov 2026: it was cut off) */
  .dltab.free col.tk { width: 62px }
  .dltab col.cr { width: 66px }
  .dltab th { font-size: 10px; letter-spacing: -.01em }
  .dltab .nm { padding-left: 10px }
  .dltab .cr { padding-right: 8px }
  .dltab .cr .ptag { font-size: 8px; padding: 2px 4px; letter-spacing: .02em }
  .dltab .nm button, .dltab .nm > b { white-space: normal; overflow-wrap: anywhere; line-height: 1.25 }
}
.dlsel { width: 100%; font: 600 15px var(--body); color: var(--fg); background: var(--sunk); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; min-height: 42px }
.dltripwho { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.45 }
.dltripwho b { display: block; color: var(--gold); font-size: 15px }
.dltripwho .linkbtn { background: none; border: 0; padding: 0; min-height: 0; color: var(--accent); text-decoration: underline; font-weight: 600; font-size: 14px }
.dchip:disabled { opacity: .45 }
.dlopts { display: grid; border: 1px solid var(--line); border-radius: 12px; overflow: hidden }
.dlopt { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; background: var(--sunk); cursor: pointer; font-size: 15px }
.dlopt + .dlopt { border-top: 1px solid var(--line) }
.dlopt input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent) }
.dlopt b { font-weight: 600 }
.dlopt small { color: var(--muted); font-size: 13px; margin-left: 6px }
.dlopt.off { cursor: not-allowed }
.dlopt.off b, .dlopt.off small, .dlopt.off input { opacity: .45 }
.ptag { font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap }
.ptag.gold { color: var(--gold); border-color: color-mix(in srgb, var(--gold) 50%, transparent) }
.ptag.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 50%, transparent) }
.ptag.accent { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 50%, transparent) }
.dlbox .dlgo { width: 100%; display: inline-flex; justify-content: center; align-items: center; gap: 8px }
.dlgo .cost { font: 600 12px var(--mono); padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--accent-fg) 16%, transparent) }
.dlbox .errmsg:empty { display: none }
.dlbox .hint { margin: 0 }
.cobody .linkbtn, .acct .linkbtn { align-self: flex-start; background: none; border: 0; padding: 0; min-height: 0; color: var(--accent); text-decoration: underline; font-weight: 600 }
.tripneed { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 16px; border-radius: 14px; border: 1px dashed var(--accent); color: var(--fg) }
.tripneed[hidden] { display: none }
.triprm { margin: 0; display: flex }
.triprm .iconbtn { margin-left: auto }
.tripdlg .tdf { margin-top: 14px; gap: 8px }
.tripdlg .tdf[hidden] { display: none }
.tripdlg .dchips { text-transform: none; letter-spacing: 0 }
.tripdlg .dchip { cursor: pointer }
.tripdlg .errmsg { margin-top: 12px }
.tdphotos { display: flex; flex-wrap: wrap; gap: 6px }
.tdphotos button { width: 54px; height: 54px; min-height: 0; padding: 0; border-radius: 10px; border: 2px solid transparent; overflow: hidden; background: var(--sunk); cursor: pointer }
.tdphotos button[aria-checked="true"] { border-color: var(--accent) }
.tdphotos img { width: 100%; height: 100%; object-fit: cover; display: block }
.tripform .tdh { margin: 14px 0 8px; font: 400 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted) }
.tripform .tfind { width: 100%; margin: 0 0 8px; box-sizing: border-box; font: 500 15px var(--body); color: var(--fg); background: var(--sunk); border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px 9px 34px; min-height: 42px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238aa3ad' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: 10px center; background-size: 16px }
.kpgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; max-height: min(360px, calc(100dvh - 300px)); overflow: auto; padding: 2px }
.kpgrid .kpth { width: 100%; height: auto; aspect-ratio: 1 }
.kpgrid .kpth[aria-pressed="true"] { outline: 3px solid var(--accent); outline-offset: -3px }
.tripform .trow[hidden], .tripform .tnone[hidden] { display: none }
.tripform .tnone { margin: 0; padding: 12px }
.tripform .tlist { max-height: clamp(130px, calc(100dvh - 520px), 380px); overflow: auto; border: 1px solid var(--line); border-radius: 12px }
.tripform .trow { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; padding: 9px 12px; border-top: 1px solid var(--line); cursor: pointer }
.tripform .trow:first-child { border-top: 0 }
.tripform .trow input { grid-row: span 2; width: 18px; height: 18px; margin: 0; accent-color: var(--accent) }
.tripform .tsite { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.tripform .tdate { color: var(--muted); font-size: 12px }
.tripform .errmsg { margin-top: 10px }
.medtrip { margin-top: 18px }
.tripform .tphoto { margin-top: 14px; gap: 8px }
.tripform .tprow { display: flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0 }
.tripform .tpv { width: 54px; height: 54px; border-radius: 10px; overflow: hidden; flex: none }
.tripform .tpv[hidden], .tripform .tprow .iconbtn[hidden] { display: none }
.tripform .tpv img { width: 100%; height: 100%; object-fit: cover; display: block }
.mtnote { margin: 8px 0 0 }
.tripneed p { margin: 0 }
.tripneed button { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); font-weight: 700 }
@property --x { syntax: '<percentage>'; inherits: true; initial-value: 50% }
#dlDialog { position: fixed }
.dlx { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; min-height: 0; padding: 0; border-radius: 50%; border: 0; background: transparent; color: var(--muted); font-size: 24px; line-height: 1 }
.dlx:hover { background: var(--sunk); color: var(--fg) }
.mbacts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center }
.asec .mbacts button { width: auto; min-height: 0; padding: 7px 14px; font-size: 14px }
.mbox .linkbtn, .tbox .linkbtn { background: none; border: 0; padding: 0; min-height: 0; color: var(--accent); text-decoration: underline; font-weight: 600 }
.mbox { border: 2px solid var(--accent) }
.tbox { border: 1px dashed var(--gold) }
.perks { margin: 4px 0 0; padding-left: 20px; color: var(--muted) }
#acctCredits { scroll-margin-top: calc(var(--stick, 64px) + 12px) }
.checkout .linkbtn { background: none; border: 0; padding: 0; min-height: 0; color: var(--accent); text-decoration: underline; font-weight: 600 }
.agree { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 10px 12px; border: 1px solid var(--warn-line); border-radius: 12px; background: var(--warn-bg); cursor: pointer; font-size: 14px }
.agree input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--warn) }
.agree b { display: block; font-weight: 700 }
.agree small { display: block; color: var(--warn-fg); font-size: 13px; margin-top: 2px; line-height: 1.4 }
.csub { font-weight: 600; margin: 0 0 8px }
.cwrap { max-height: min(300px, 45vh); overflow-y: auto; overflow-x: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--sunk) }
.ctable { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums }
.ctable th { position: sticky; top: 0; background: var(--sunk); text-align: left; font-weight: 500; color: var(--muted); padding: 8px 6px 6px; border-bottom: 1px solid var(--line) }
.ctable td { padding: 8px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: top }
.ctable tr:last-child td { border-bottom: 0 }
.ctable td:first-child { white-space: normal }
.ctable td b { display: block; font-weight: 700 }
.ctable td small { color: var(--muted) }
.ctable th:first-child, .ctable td:first-child { padding-left: 12px }
.ctable .num { text-align: right; white-space: nowrap; width: 1%; padding-left: 14px }
.ctable .num:last-child { padding-right: 12px }
.unlocknote .unlockbtns { margin-top: 10px }
.unlocknote .unlockbtns button { width: auto; min-height: 0; padding: 7px 14px; font-size: 14px }
.unlocknote { margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; font-size: 14px; background: color-mix(in srgb, var(--ok) 12%, transparent); border: 1px solid color-mix(in srgb, var(--ok) 45%, transparent) }
.unlocknote[hidden] { display: none }
.draftbox { margin: 0 0 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px }
.draftbox[hidden] { display: none }
.nextstep { display: flex; justify-content: flex-end; margin-top: 4px }
.nextstep[hidden] { display: none }
.screen { position: relative }
.emptyhint { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 78%; margin: 0; padding: 12px 14px; border-radius: 14px; background: rgba(2, 16, 25, .78); color: #E3F0F2; font-size: 14px; line-height: 1.35; text-align: center; text-wrap: balance; pointer-events: none }
.emptyhint[hidden] { display: none }
.dlwhat { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin: 6px 0 2px; padding: 0; list-style: none; font-size: 13px; color: var(--fg) }
.dlwhat li { display: inline-flex; align-items: center; gap: 6px }
.dlwhat svg { width: 16px; height: 16px; flex: none; fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round }
.dlwhat .yes svg { stroke: var(--ok) }
.dlwhat .no { color: var(--muted) }
.dlwhat .no svg { stroke: var(--coral) }
.nextstep button { width: auto; min-height: 44px; padding: 10px 20px; border-radius: 999px; font-weight: 600; background: var(--accent); color: var(--accent-fg); border-color: var(--accent) }
.nextstep button::after { content: ' →' }
.draftbox p { margin: 0; flex: 1 1 200px; display: flex; flex-direction: column; gap: 2px; font-size: 15px }
.draftbox p span { font: 500 12px var(--mono); color: var(--muted) }
.draftbtns { display: flex; gap: 8px }
.draftbtns button { width: auto; min-height: 40px; padding: 8px 16px; font-size: 14px; font-weight: 600 }
.f.memo { margin-top: 12px }
.f.memo textarea { font: 400 15px/1.45 var(--body); letter-spacing: 0; text-transform: none; color: var(--fg); background: var(--sunk); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; resize: vertical; min-height: 76px }
.unlocknote.changed { background: var(--warn-bg); border-color: var(--warn-line); display: flex; flex-direction: column; gap: 10px }
.unlocknote p { margin: 0 }
.unlockbtns { display: flex; flex-wrap: wrap; gap: 8px }
.acct { max-width: 760px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-bottom: 56px }
.acct[hidden] { display: none }
.acct h2 { margin: 28px 0 10px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted) }
.acct .card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px }
.acct ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px }
.acct li.row { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; justify-content: space-between }
.acct .big { font-weight: 700; font-size: 17px }
.acct .meta { color: var(--muted); font-size: 14px }
.acct .what { color: var(--muted); font-size: 13px; flex-basis: 100% }
.acct .chip { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted) }
.acct .chip.on { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent) }
.acct .empty { color: var(--muted); margin: 0 }
.acct .aact { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: flex-start; margin-top: 24px }
.acct .side { display: flex; gap: 10px; align-items: center; margin-left: auto }
.acct .side a { color: var(--accent); font-weight: 600; font-size: 14px }
.acct .balance { display: flex; align-items: center; gap: 16px; flex-wrap: wrap }
.acct .balance .num { font: 900 44px/1 var(--display); font-stretch: 125%; color: var(--accent) }
.acct .balance .lbl { display: flex; flex-direction: column; gap: 2px }
.acct .balance .lbl b { font-size: 17px }
.acct .balance button { margin-left: auto }
.acct li.row + li.row { padding-top: 10px; border-top: 1px solid var(--line) }
.acct li.row .outs { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px }
.acct li.row.trip .big { color: var(--accent) }
.acct .card > p.meta { margin: 12px 0 0 }
.acct .mylink { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; color: var(--fg); min-height: 0; cursor: pointer }
.acct .mylink:hover { border-color: var(--accent) }
.acct .mylink .lbl { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0 }
.acct .mylink .lbl b { font-size: 17px }
.acct .mylink .go { font-size: 28px; line-height: 1; color: var(--accent) }
/* the Dive log and My account pages (the side panel went 17 Nov 2026: the products are in the top bar) */
.acct.shell { max-width: 1180px; padding-top: 14px }
.acct.shell[hidden] { display: none }
.apane { min-width: 0 }
#account .apane { max-width: 1040px; margin: 0 auto }
.apphead[hidden], .mtabs[hidden] { display: none }
.acct .asec { margin-bottom: 16px; padding: 0 }
.asec .uhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 0 }
.asec .uhead h3 { margin: 0; font-size: 17px; font-weight: 700 }
.asec .uhead button { width: auto; min-height: 0; padding: 7px 14px; font-size: 14px }
.prow { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 4px 16px; align-items: center; padding: 14px 18px }
.prow + .prow { border-top: 1px solid var(--line) }
.drow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 14px 18px }
.drow + .drow { border-top: 1px solid var(--line) }
.drow > span { color: var(--muted); font-size: 14px; flex: 1 1 220px }
.drow .iconbtn { align-self: center }
.dangerbtn { width: auto; min-height: 36px; padding: 6px 14px; border-radius: 999px; font: 600 13px var(--body); background: transparent; color: var(--coral); border: 1px solid color-mix(in srgb, var(--coral) 55%, transparent) }
.dangerfill { background: var(--coral); color: #fff; border-color: var(--coral); border-radius: 999px }
.askdlg .hint { margin: 0 }
.askdlg .dlbtns { justify-content: center }
.dangerbtn:hover { background: color-mix(in srgb, var(--coral) 12%, transparent) }
.prow > span { color: var(--muted); font-size: 14px }
.prow > b { font-weight: 600; overflow-wrap: anywhere }
.prow .pin { display: flex; gap: 8px; min-width: 0 }
.fixtry { margin: 6px 0 0; font-size: 13px; color: var(--muted) }
.fixtry a { color: var(--accent); font-weight: 600 }
.prow .pnewsrow { display: flex; align-items: center; gap: 10px; color: var(--fg); font-size: 15px; cursor: pointer }
.pnews, .newsopt input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; flex: none }
.prow input { flex: 1; min-width: 0; font: inherit; font-size: 15px; color: var(--fg); background: var(--sunk); border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; min-height: 40px }
.prow .pin button { width: auto; min-height: 40px; padding: 6px 14px; font-size: 14px }
.ubody { padding: 12px 18px 18px }
/* account page cards (16 Nov 2026) */
.ahead { display: flex; align-items: center; gap: 14px; margin: 4px 0 18px }
.ahead .avatar { flex: none; width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, var(--brand2), #0e8a82); color: #04212A; font: 800 22px/52px var(--display); text-align: center }
.ahead > div { display: flex; flex-direction: column; min-width: 0 }
.ahead > div b { font-size: 18px; overflow-wrap: anywhere }   /* a long email wraps instead of being cut */
.ahead > div span { color: var(--muted); font-size: 14px } .ahead > div span:empty { display: none }
.atier { margin-left: auto; padding: 4px 12px; border-radius: 999px; font: 600 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--line); color: var(--muted); white-space: nowrap }
.atier.on { color: #04210f; background: var(--ok, #4ADE80); border-color: transparent }
.agrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch }
.agrid .awide { grid-column: 1 / -1 }
.agrid .ahalf { grid-column: span 1 }
@media (min-width: 761px) {
  .agrid { grid-template-columns: repeat(6, minmax(0, 1fr)) }
  .agrid > .acard { grid-column: span 2 }
  .agrid > .acard.awide { grid-column: 1 / -1 }
  .agrid > .acard.ahalf { grid-column: span 3 }
}
@media (max-width: 760px) {
  .agrid { grid-template-columns: minmax(0, 1fr) }
}
.acct .card.acard { padding: 0; display: flex; flex-direction: column; scroll-margin-top: 90px; min-width: 0 }
.acct .acard .atitle { margin: 0; padding: 16px 18px 0; display: flex; align-items: center; gap: 10px; font: 600 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted) }
.acct .acard .atitle .mstate { margin-left: 0 }
.acard .abody { padding: 12px 18px 18px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; flex: 1 }
.acard.rows .abody { padding: 6px 0 4px; align-items: stretch; gap: 0 }
.acard .abody > button:last-child, .acard .abody > .mbacts { margin-top: auto }
.mbox .abody .mbacts { flex-wrap: nowrap }
.mbox .abody .mbacts button { width: auto; min-height: 0; padding: 7px 12px; font-size: 13px; white-space: nowrap }
.acard .abody > button.cancelbtn { margin-top: 2px; padding: 0; min-height: 0; border: 0; background: none; color: var(--muted); font-size: 13px; font-weight: 600; text-decoration: underline }
.acard .abody > button.cancelbtn:hover { color: var(--warn) }
.acard .abody > button { width: auto; min-height: 0; padding: 9px 18px; font-size: 14px }
.acard .ameta { margin: 0; color: var(--muted); font-size: 14px }
.acard .ameta.pad { padding: 8px 18px 14px }
.acct .acard ul.perks { margin: 0; padding: 0 0 0 18px; list-style: disc; display: block; font-size: 14px; color: var(--muted) }
.acct .acard ul.perks li + li { margin-top: 4px }
.acard .prow { grid-template-columns: 74px minmax(0, 1fr); gap: 4px 10px; padding: 14px 16px }
.acard .pscroll { padding: 0 6px }
.ubig { display: flex; align-items: baseline; gap: 8px }
.ubig b { font: 700 34px/1 var(--body); font-variant-numeric: tabular-nums }
.uhead .ubig { padding: 2px 0 }
.acct .apane > #acctBody > h2 { margin: 26px 0 10px }
.ubig span { color: var(--muted) }
.ubar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; margin-top: 14px }
.ubar .tr { height: 8px; border-radius: 99px; background: var(--sunk); overflow: hidden }
.ubar .tr i { display: block; height: 100%; background: var(--accent); border-radius: 99px }
.ubar span { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums }
.ubody p { margin: 12px 0 0; color: var(--muted); font-size: 14px }
.ptable { width: 100%; border-collapse: collapse; font-size: 14px }
.ptable th { text-align: left; color: var(--muted); font-weight: 500; font-size: 13px; padding: 14px 12px 10px 0; border-bottom: 1px solid var(--line) }
.ptable td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; vertical-align: top }
.ptable tr:last-child td { border-bottom: 0 }
.ptable td:first-child, .ptable th:first-child { padding-left: 18px }
.ptable td:last-child, .ptable th:last-child { padding-right: 18px; text-align: right }
.ptable td a { color: var(--accent); font-weight: 600 }
.ptable td a.prefund { margin-left: 14px; color: var(--muted); font-weight: 500; text-decoration: underline }
.ptable .muted { color: var(--muted) }
.pscroll { overflow-x: auto }
@media (max-width: 560px) {
  .prow { grid-template-columns: 1fr }
  .ptable .opt { display: none }
}
/* Dive log: dive wall, trip wall, one dive or trip, dashboard */
.acct.mdl { max-width: 1120px }
.acct .mup { margin-top: 18px; font-weight: 600 }
.mdl .apphead { padding-top: 8px }
.mdl h1 .lp, .apphead h1 .lp { color: var(--brand2) }
.mtabs { display: flex; gap: 4px; margin: 10px 0 18px; border-bottom: 1px solid var(--line); overflow-x: auto }
.mtabs:empty { display: none }
.mtabs button { flex: none; background: none; border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: 10px 14px; min-height: 0; color: var(--muted); font-weight: 600 }
.mtabs button[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--accent) }
.mtabs .n, .mgh .n { font: 500 12px var(--mono); color: var(--muted); margin-left: 7px }
.mgroup { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 4px }
.mtabrow { display: flex; align-items: center; gap: 12px; margin: 10px 0 18px; border-bottom: 1px solid var(--line) }
.mtabrow[hidden] { display: none }
.mtabrow .mtabs { margin: 0; border-bottom: 0; flex: 1 1 auto; min-width: 0 }
/* on a computer the tabs keep their width and the buttons wrap under each other on the right, never a scroll bar on the tabs */
@media (min-width: 761px) { .mtabrow .mtabs { flex-shrink: 0 } .mtabrow .mimpb { justify-content: flex-end } }
.mimpb { display: flex; flex-wrap: wrap; gap: 8px }
.mtabrow .mimp:empty { display: none }
.mimpb .iconbtn:nth-last-child(-n+2)::after { left: auto; right: 0 }
.mgroup .mgsel { display: none; width: auto; min-height: 0; padding: 7px 30px 7px 12px; border-radius: 999px; font-size: 14px; font-weight: 600 }
@media (max-width: 760px) {
  .mgroup { flex-wrap: nowrap }
  .mgroup .mwide, .mgroup .mviewas .mlabel { display: none }
  .mgroup .mgsel { display: block; min-width: 0; flex: 0 1 auto }
}
.mgroup .mviewas { margin-left: auto; display: flex; align-items: center; gap: 4px }
.mgroup .mviewas .tierseg.glay { margin-right: 0 }
/* the empty Dive log: the main button and the three ways in line up on the left; on phones they're one column of
   equal width (owner, 28 Nov 2026: centred under a left button, they looked misaligned) */
.card.mempty .mimpb { justify-content: flex-start; margin-top: -4px }
.card.mempty .msub { margin: 10px 0 0; font: 600 12px var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted) }
@media (max-width: 600px) {
  .card.mempty > .primary, .card.mempty .mimpb { align-self: stretch }
  .card.mempty .mimpb { flex-direction: column; align-items: stretch }
  .card.mempty .mimpb .iconbtn { justify-content: center; align-self: stretch }
}
.mimpb .imptog { display: none }
@media (max-width: 760px) {
  .mtabrow .mimpb .imptog { display: inline-flex }
  .mtabrow .mimpb:not(.open) > :not(.imptog) { display: none }
  .mtabrow .mimpb.open .imptog { font-size: 0; gap: 0; padding: 7px }
  .mtabrow .mimpb.open .imptog svg { transform: rotate(45deg) }
}
@media (max-width: 760px) {
  .mtabrow { flex-wrap: wrap; row-gap: 6px }
  .mtabrow .mimp { order: -1; width: 100% }
}
/* the dive's profile drawn small in each picker row */
.impdialog .ctable .pf { width: 76px; padding-right: 12px }
.impdialog .ctable .pf svg { display: block; width: 72px; height: 28px; overflow: visible }
.impdialog .ctable .pf polyline { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linejoin: round; vector-effect: non-scaling-stroke }
.impdialog tr.short { opacity: .62 }
.impdialog .tag { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 999px; border: 1px solid var(--line); font: 500 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); vertical-align: 1px }
/* Import from dive computer: brand and model, then connect */
.dcform { display: grid; gap: 12px; margin: 4px 0 6px }
.dcform label { display: grid; gap: 5px; font-size: 13px; color: var(--muted) }
.dcform select { width: 100%; font: 600 15px var(--body); color: var(--fg); background: var(--sunk); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; min-height: 46px }
.dcform select:disabled { opacity: .5 }
.dcseg { margin-bottom: 12px }
.impdialog .ctable th.ck input { display: block; margin: 6px auto 0 }
.impdialog.dcnarrow { max-width: min(400px, calc(100vw - 32px)) }
.dcfound { margin: 0 0 4px }
.dcfound { font-size: 14px }
.dcfound b { color: var(--fg) }
.dclic { font-size: 12px; color: var(--muted); margin-top: 10px }
.dclic a { color: inherit }
.mgroup .mlabel { font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-right: 4px }
.gchip { min-height: 0; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--muted); font-weight: 600; font-size: 14px }
.gchip[aria-pressed="true"] { color: var(--accent-fg); background: var(--accent); border-color: var(--accent) }
.acct h2.mgh { scroll-margin-top: 84px; display: flex; align-items: baseline; font: 700 17px var(--body); letter-spacing: 0; text-transform: none; color: var(--fg); margin: 24px 0 12px }
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 14px 10px }
.mgrid.small { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)) }
.mtile { display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding: 0; background: none; border: 0; border-radius: 0; text-align: left; color: var(--fg); min-height: 0; cursor: pointer }
.mtile .pic { position: relative; aspect-ratio: 9 / 16; border-radius: 8px; overflow: hidden; background: var(--deep); border: 1px solid var(--line); display: grid; place-items: center; margin-bottom: 4px; transition: border-color .15s, transform .15s }
.mtile .pic img { width: 100%; height: 100%; object-fit: contain; display: block }
.mtile:hover .pic, .mtile:focus-visible .pic { border-color: var(--accent); transform: translateY(-2px) }
.mtile .t { font-weight: 700; font-size: 12px; line-height: 1.25; overflow: hidden; overflow-wrap: break-word; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2 }
.mtile .m { color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.mtile .nofile { color: var(--muted); font-size: 11px; padding: 6px; text-align: center }
.mtile.trip .t { color: var(--accent) }
/* a locked dive: the same card for every dive, like a locked card in a collection */
.mtile.locked .pic { background: radial-gradient(120% 70% at 50% 0%, #12506e 0%, #0b3a55 35%, #06202f 75%, #021019 100%); border-color: color-mix(in srgb, var(--gold) 35%, var(--line));
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 7px; padding: 10px 6px; color: #e8f4f6 }
.mtile.locked .pic::before { content: ''; position: absolute; inset: 4px; border: 1px solid rgba(245,192,78,.3); border-radius: 5px; pointer-events: none }
.mtile.locked .lk { width: 20px; height: 20px; fill: none; stroke: #f5c04e; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .9 }
.mtile.locked .lname { font: 800 10px/1.2 var(--display); font-stretch: 112%; text-transform: uppercase; text-align: center; max-width: 100%; overflow-wrap: anywhere; opacity: .85 }
.mtile.locked .lunlock { font: 600 8.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 3px 7px; border-radius: 999px; background: #f5c04e; color: #2a1e00 }
.mtile.locked:hover .pic { border-color: #f5c04e }
.mplain { width: min(340px, 100%); aspect-ratio: 9 / 16; max-height: calc(100svh - 200px); box-sizing: border-box; border-radius: 16px; border: 1px solid var(--line); padding: 24px 20px 16px; display: flex; flex-direction: column; gap: 6px; color: #fff; overflow: hidden;
  background: radial-gradient(120% 60% at 50% 0%, #12506e 0%, #0b3a55 35%, #06202f 75%, #021019 100%) }
.mplain .mptag { align-self: flex-start; font: 600 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); color: rgba(255,255,255,.8) }
.mplain .mpsite { margin: 10px 0 0; font: 800 26px/1.1 var(--display); font-stretch: 112%; text-transform: uppercase; overflow-wrap: anywhere }
.mplain .mpwhen { margin: 0; font: 500 12px var(--mono); letter-spacing: .06em; color: rgba(255,255,255,.75); text-transform: uppercase }
.mpstats { display: flex; gap: 18px; margin-top: 14px }
.mpstats div { display: flex; flex-direction: column; gap: 2px }
.mpstats span { font: 500 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.65) }
.mpstats b { font: 700 22px var(--body) }
.mpstats .coral b { color: #ff6b6b }
.mpchart { margin-top: auto }
.mpchart svg { width: 100%; height: auto; display: block; overflow: visible }
.mpchart .grid line { stroke: rgba(255,255,255,.14); stroke-width: 1; stroke-dasharray: 3 5 }
.mpchart .grid line.surf { stroke: rgba(255,255,255,.4); stroke-dasharray: 5 7 }
.mpchart .grid text { fill: rgba(255,255,255,.55); font: 500 10px var(--mono) }
.mpchart .fill { fill: url(#mpfill) }
.mpchart .ln { fill: none; stroke: #4fd6cb; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round }
.mpchart circle { fill: #ff6b6b; stroke: #06202f; stroke-width: 2 }
.fileprof { margin-top: 10px; padding: 14px 14px 6px; border-radius: 14px; border: 1px solid var(--line); max-width: 420px; background: radial-gradient(120% 90% at 50% 0%, #0f4560 0%, #06202f 70%, #021019 100%) }
.mmakeit { align-self: flex-start; min-width: 140px }
@media (max-width: 760px) {
  .mplain { width: 100%; aspect-ratio: auto; max-height: none; min-height: 440px }
}
.mtile.locked .lprof { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .5 }
.mtile.locked .lprof path { fill: none; stroke: #4fd6cb; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke }
.mtile.locked .lprof circle { fill: #ff6b6b }
.mtile.locked .lk, .mtile.locked .lname, .mtile.locked .lunlock { position: relative }
.mtile.locked .lmark { width: 30px; height: 30px; opacity: .95; filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)) }
.mtile.locked .limp { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); font: 600 7.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.75); white-space: nowrap }
.mempty { display: flex; flex-direction: column; align-items: flex-start; gap: 12px }
.mempty p { margin: 0 }
.mback { margin: 4px 0 12px }
.acct p.mnote { margin: 28px 0 0 }
.mdhead { margin-bottom: 16px }
.acct .mdhead h2.mdt { font: 800 clamp(22px, 3vw, 30px)/1.1 var(--display); font-stretch: 112%; letter-spacing: 0; text-transform: none; color: var(--fg); margin: 0 0 4px }
.acct .mdhead h2.mdt.gold { color: var(--accent) }
.mdhead .meta { margin: 0 }
.mdive { display: grid; grid-template-columns: auto minmax(0, 520px); justify-content: start; gap: 32px; align-items: start }
.mcol { display: flex; flex-direction: column; gap: 10px; min-width: 0 }
.mcol:empty { display: none }
.mdive .cardimg { width: 100%; border-radius: 16px; border: 1px solid var(--line); display: block }
.msub { margin: 12px 0 0; font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted) }
.mcol > .msub:first-child { margin-top: 0 }
/* the dive page: one file at full size, the rest as miniatures to pick from */
/* the open file fits the screen, like the editor's preview */
.mview { width: fit-content; max-width: 100%; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #000 }
.mview.wait { width: min(100%, calc(max(340px, calc(100svh - 290px)) * 9 / 16)); aspect-ratio: 9 / 16 }
.mview.wait img { opacity: 0 }
.mtile .pic.wait, .mmini .pic.wait, .mview.wait { background: linear-gradient(100deg, var(--deep) 30%, color-mix(in srgb, var(--line) 70%, var(--deep)) 50%, var(--deep) 70%) 0 0 / 300% 100%; animation: shimmer 1.4s linear infinite }
@keyframes shimmer { to { background-position: -150% 0 } }
@media (prefers-reduced-motion: reduce) {
  .pic.wait, .mview.wait { animation: none }
}
.mview img { display: block; width: auto; max-width: 100%; max-height: max(340px, calc(100svh - 290px)) }
.mview video { display: block; height: max(340px, calc(100svh - 290px)); width: auto; max-width: 100%; aspect-ratio: 9 / 16; background: #000 }
.mmemo { margin: 0; white-space: pre-wrap; font-size: 15px; line-height: 1.5; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line) }
.mview { position: relative }
.mview img { cursor: zoom-in }
.mexp { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; min-height: 0; padding: 0; display: grid; place-items: center; border-radius: 50%; border: 0; background: rgba(0,0,0,.45); color: #fff; cursor: pointer; z-index: 1 }
.mexp svg, .galx svg, .galnav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round }
.mexp:hover { background: rgba(0,0,0,.7) }
.gal { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(2,12,18,.8); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; overflow: hidden }
.gal::backdrop { background: transparent }
.galtrack { position: absolute; inset: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: contain }
.galtrack::-webkit-scrollbar { display: none }
.galslide { flex: none; width: 100%; height: 100%; scroll-snap-align: center; scroll-snap-stop: always; padding: 64px 0 80px; box-sizing: border-box; min-width: 0; display: flex; align-items: center; justify-content: center }
.galslide img, .galslide video { display: block; min-width: 0; min-height: 0; max-width: 100%; max-height: 100%; user-select: none; -webkit-user-select: none }
.galslide { container-type: size }
.galvid { flex: none; width: min(100cqw, 100cqh * 9 / 16); aspect-ratio: 9 / 16 }
.galvid video { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; background: #000 }
.gal .galx { display: none }
@media (hover: hover) {
  .galslide { padding: 64px 90px 80px }
}
@media (hover: none) {
  .galslide { padding: 56px 32px 84px }
}
.galtop { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: max(12px, env(safe-area-inset-top)) 12px 0 18px; pointer-events: none }
.galtop > * { pointer-events: auto }
.galn { font: 500 13px var(--mono); letter-spacing: .08em; color: rgba(255,255,255,.75) }
.galx { width: 42px; height: 42px; min-height: 0; padding: 0; display: grid; place-items: center; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; cursor: pointer }
.galx:hover { background: rgba(255,255,255,.24) }
.galbot { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; padding: 0 16px max(16px, env(safe-area-inset-bottom)); pointer-events: none }
.galdl { pointer-events: auto; display: inline-flex; align-items: center; gap: 8px; padding: 11px 24px; border-radius: 999px; background: #4fd6cb; color: #06202f; font: 600 15px var(--body); text-decoration: none }
.galclose { pointer-events: auto; display: none; align-items: center; gap: 8px; min-height: 0; padding: 11px 22px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); background: rgba(0,0,0,.35); color: #fff; font: 600 15px var(--body); cursor: pointer }
.galclose svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round }
@media (hover: none) {
  .galclose { display: inline-flex }
  .galbot { gap: 10px }
}
.galdl svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round }
.galnav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; min-height: 0; padding: 0; display: grid; place-items: center; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; cursor: pointer }
.galnav:hover { background: rgba(255,255,255,.24) }
.galnav:disabled { opacity: 0; pointer-events: none }
.galprev { left: 16px }
.galnext { right: 16px }
@media (hover: none) {
  .galnav { display: none }
}
.mcol .iconbtn.mone { align-self: flex-start }
.mfiles { display: flex; flex-wrap: wrap; gap: 8px }
.mfiles .iconbtn { align-self: auto }
.mfiles .mmake { border-style: dashed; color: var(--muted) }
.mfiles .mmake:hover { color: var(--fg); border-color: var(--accent) }
.acct .medit { align-self: flex-start; margin-top: 6px; font-weight: 600; font-size: 14px }
.acct .mdel { margin-top: 18px; color: var(--muted); font-weight: 500; font-size: 14px }
.mstats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px }
.mstat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0 }
.mstat .l { font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted) }
.mstat .v { font: 700 24px/1.15 var(--body); font-variant-numeric: tabular-nums }
.mbanner { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 10px 14px; border: 1px solid color-mix(in srgb, var(--gold) 45%, var(--line)); border-radius: 12px; background: color-mix(in srgb, var(--gold) 8%, var(--surface)); font-size: 14px }
.mbanner svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--gold); stroke-width: 2 }
.mstat .s { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.acct .card.mmap { margin-bottom: 14px }
.mapbox svg { width: 100%; height: auto; display: block; margin-top: 8px }
.mapbox .land { fill: color-mix(in srgb, var(--muted) 22%, var(--surface)); stroke: var(--surface); stroke-width: .6 }
.mapbox .land.on { fill: color-mix(in srgb, var(--brand2) var(--pct, 100%), var(--surface)) }
.mapbox .land:hover { fill: color-mix(in srgb, var(--muted) 40%, var(--surface)) }
.mapbox .land.on:hover { fill: color-mix(in srgb, var(--accent) 80%, var(--fg)) }
.mapbox .dot { fill: var(--accent); stroke: var(--surface); stroke-width: 2.5 }
.mapbox { position: relative }
.mapbox .on, .mapbox .dot { cursor: pointer }
/* hovering a country you dived: its numbers and its dives as miniatures */
.mtip { position: absolute; z-index: 5; width: 250px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.35); pointer-events: none }
.mtip.pinned { pointer-events: auto }
.mtip b.n { display: block; font-size: 15px; margin-bottom: 8px }
.mtip .rows { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; font-size: 13px }
.mtip .rows span { color: var(--muted) }
.mtip .rows b { text-align: right; font-variant-numeric: tabular-nums }
.mtip .rows b.coral { color: var(--coral) }
.mtip .minis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; margin-top: 10px }
.mtip .minis > * { aspect-ratio: 9 / 16; border-radius: 4px; overflow: hidden; background: var(--deep); border: 1px solid var(--line); display: grid; place-items: center }
.mtip .minis img { width: 100%; height: 100%; object-fit: cover; display: block }
.mtip .minis .lkd { background: radial-gradient(120% 70% at 50% 0%, #12506e 0%, #06202f 80%); border-color: color-mix(in srgb, var(--gold) 35%, var(--line)) }
.mtip .minis .lkd svg { width: 12px; height: 12px; fill: none; stroke: #f5c04e; stroke-width: 2 }
.mtip .minis .more { font: 600 11px var(--mono); color: var(--muted) }
.mtip .go { margin-top: 10px; font-size: 12px; color: var(--muted) }
.mapbox .land.on.sel, .mapbox .dot.sel { fill: var(--accent); stroke: var(--fg); stroke-width: 1.5 }
.mtip.below { position: static; width: auto; margin-top: 10px; box-shadow: none }
.mcchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px }
.mcchips .gchip { min-height: 0; padding: 6px 11px; font-size: 13px }
.mcchips .gchip .n { font: 500 11px var(--mono); color: var(--muted); margin-left: 6px }
.mcchips .gchip[aria-pressed="true"] .n { color: inherit }
.mtip .golink { margin-top: 10px; width: 100%; min-height: 0; padding: 8px 12px; font-size: 14px }
.mcols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px }
.mbars { display: flex; flex-direction: column; gap: 9px; margin-top: 10px }
.mbar { display: grid; grid-template-columns: minmax(70px, 38%) 1fr auto; gap: 10px; align-items: center; font-size: 14px }
.mbar .k { overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.mbar .tr { height: 10px; display: block }
.mbar .fill { display: block; height: 10px; background: var(--accent); border-radius: 0 4px 4px 0 }
.mstat.coral .v, .rcpt b.coral { color: var(--coral) } .k-green { --k: #A3E635 } .k-violet { --k: #A78BFA } .mstat.coral, .card.coral { --k: var(--coral) }
.mstat[class*="k-"], .mstat.coral { background: linear-gradient(180deg, color-mix(in srgb, var(--k) 16%, var(--surface)), var(--surface) 75%); border-color: color-mix(in srgb, var(--k) 40%, var(--line)) }
.mstat[class*="k-"] .l, .mstat.coral .l { color: var(--k) }
.card[class*="k-"] .mbar .fill { background: var(--k) }
.card[class*="k-"] > .msub, .card.coral > .msub { color: var(--k) }
.mslice { margin-bottom: 14px }
@media (min-width: 1240px) {
  .mstats { grid-template-columns: repeat(6, minmax(0, 1fr)) }
}
@media (max-width: 480px) {
  .mstats { grid-template-columns: repeat(2, minmax(0, 1fr)) }
}
.card.coral .mbar .fill { background: var(--coral) }
/* dashboard: records, every profile, dive days, trips and milestones */
.card.mrecs, .card.mprofs, .card.mcal { margin-bottom: 14px }
.mrecgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 10px }
.mrec { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 0; padding: 10px 12px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--k, var(--accent)) 35%, var(--line)); background: color-mix(in srgb, var(--k, var(--accent)) 8%, var(--surface)); color: var(--fg); text-align: left; cursor: pointer; min-width: 0 }
.mrec.coral { --k: var(--coral) }
.mrec:hover { border-color: var(--k, var(--accent)) }
.mrec .l { font: 500 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--k, var(--muted)) }
.mrec b { font: 700 20px/1.2 var(--body); font-variant-numeric: tabular-nums }
.mrec .s { color: var(--muted); font-size: 12px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.mnote { color: var(--muted); font-size: 13px; margin: 2px 0 0 }
.mprofbox { margin-top: 10px; border-radius: 12px; padding: 10px 6px 4px; background: radial-gradient(120% 90% at 50% 0%, #0b3a55 0%, #06202f 70%, #021019 100%) }
.mprofbox svg { width: 100%; height: auto; display: block }
.mprofbox .grid line { stroke: rgba(255,255,255,.12); stroke-dasharray: 3 5 }
.mprofbox .grid line.surf { stroke: rgba(255,255,255,.35); stroke-dasharray: 5 7 }
.mprofbox .grid text { fill: rgba(255,255,255,.5); font: 500 10px var(--mono) }
.mprofbox .lns path { fill: none; stroke: #4fd6cb; stroke-opacity: .3; stroke-width: 1.6; stroke-linejoin: round; cursor: pointer; transition: stroke-opacity .15s }
.mprofbox .lns path.deep { stroke: #ff6b6b; stroke-opacity: .95; stroke-width: 2.4 }
.mprofbox .lns path.long { stroke: #ffffff; stroke-opacity: .95; stroke-width: 2.2 }
.mprofbox .lns path:hover { stroke-opacity: 1; stroke-width: 3; stroke: #ffffff }
.mkey { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 13px; color: var(--muted) }
.mkey span { display: inline-flex; align-items: center; gap: 7px }
.mkey i { display: inline-block; width: 18px; height: 3px; border-radius: 2px }
.mkey .deep i { background: #ff6b6b } .mkey .long i { background: #ffffff }
.mcalrow { display: grid; grid-template-columns: 44px 1fr; column-gap: 10px; align-items: start; margin-top: 12px }
.mcalrow .y { font-weight: 700; font-variant-numeric: tabular-nums }
.mcalrow .n { grid-column: 1; grid-row: 2; color: var(--muted); font-size: 11px }
.mcalbox { grid-column: 2; grid-row: 1 / span 2; overflow-x: auto }
.mcalbox svg { width: 100%; min-width: 560px; height: auto; display: block }
.mcalbox text { fill: var(--muted); font: 500 9px var(--mono) }
.mcalbox rect.c0 { fill: var(--sunk); stroke: var(--line); stroke-width: .5 }
.mcalbox rect.c1 { fill: color-mix(in srgb, var(--brand2) 45%, var(--sunk)); cursor: pointer }
.mcalbox rect.c2 { fill: color-mix(in srgb, var(--brand2) 72%, var(--sunk)); cursor: pointer }
.mcalbox rect.c3 { fill: var(--brand2); cursor: pointer }
.mcalbox rect[data-d]:hover { stroke: var(--fg); stroke-width: 1 }
.mcols.one { grid-template-columns: 1fr }
.mtriplist { display: flex; flex-direction: column; margin-top: 6px }
.mtrip { display: flex; flex-direction: column; gap: 2px; padding: 9px 0; border-top: 1px solid var(--line); text-align: left; background: none; border-left: 0; border-right: 0; border-bottom: 0; border-radius: 0; color: var(--fg); min-height: 0; font: inherit }
.mtrip:first-child { border-top: 0 }
.mtrip b { font-size: 15px }
.mtrip .m { color: var(--muted); font-size: 13px }
.mtrip .s { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.mtrip.next .tr { display: block; height: 8px; border-radius: 4px; background: var(--sunk); margin-top: 6px; overflow: hidden }
.mtrip.next .fill { display: block; height: 100%; background: var(--k, var(--accent)); border-radius: 4px }
.card.mprint { margin-bottom: 14px; text-align: center }
.mprint .mkey { justify-content: center }
.mkey .rest i { background: #4fd6cb; opacity: .55 }
.mprint canvas { display: block; width: 100%; max-width: 560px; aspect-ratio: 1; height: auto; margin: 12px auto 0; border-radius: 16px }
/* the print for non-members: their own print blurred under a lock and Become a member */
.mpwrap { position: relative; max-width: 560px; margin: 12px auto 0; border-radius: 16px; overflow: hidden }
.mpwrap canvas { margin: 0; filter: blur(10px) brightness(.7); transform: scale(1.08) }
.mpover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 20px; text-align: center }
.mpover svg { width: 32px; height: 32px; fill: none; stroke: #f5c04e; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round }
.mtabs .mshort { display: none }
@media (max-width: 520px) { .mtabs .mlong { display: none } .mtabs .mshort { display: inline } }
.mpover strong { font-size: 18px }
.mpover span { color: rgba(255,255,255,.85); font-size: 14px; max-width: 260px }
.mpover button { margin-top: 6px }
.mprintbar { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap }
.mprintbar .tierseg.glay { margin: 0 }
.mprintbar .tierseg.pstyles { grid-template-columns: repeat(3, auto) }
.mprint .mpfp { margin: 10px 0 0; font-size: 13px }
/* the Dive log's grid view */
.mgroup.ggrid { flex-wrap: nowrap }
@media (max-width: 760px) {
  .mgroup.ggrid { flex-wrap: wrap }
  .mgroup.ggrid .gbar.dirty { order: 2; flex-basis: 100% }
}
.mgroup.ggrid .gbar { margin: 0; padding: 0; border: 0; background: none; flex: 1 1 auto; min-width: 0; flex-wrap: nowrap }
.mgroup.ggrid .gbar .n { margin-right: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.mgroup.ggrid .gbar.dirty .n { order: 0 }
.mgroup.ggrid .gbar button { flex: none }
.gtable th .gth { display: block; padding: 10px 12px; font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted) }
.gtable td.g-prof { padding: 4px 12px }
.gtable td.g-prof svg { display: block; width: 72px; height: 28px; overflow: visible }
.gtable td.g-prof polyline { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linejoin: round; vector-effect: non-scaling-stroke }

.tierseg.glay { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; border-radius: 999px; background: var(--sunk); border: 1px solid var(--line); margin-right: 10px }
.tierseg.glay button { min-height: 0; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: 600 14px var(--body); padding: 5px 14px }
.tierseg.glay button[aria-pressed="true"] { background: var(--accent); color: var(--accent-fg) }
.gbar, .gbulk { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin: 12px 0 0 }
.gbar .n { color: var(--muted); font-size: 14px; margin-right: auto }
.gbar.dirty { border-color: color-mix(in srgb, var(--gold) 60%, var(--line)) }
.gbar.dirty .n { color: var(--gold); font-weight: 700 }
.gbar button, .gbulk button { min-height: 0; padding: 7px 16px }
.gbar .iconbtn { padding: 7px 12px }
.gbulk { background: var(--sunk); font-size: 14px }
.gbulk select, .gbulk input { width: auto; min-width: 0; max-width: 220px; padding: 6px 8px; font-size: 14px }
.gbulk .gnote { color: var(--muted); font-size: 13px; flex-basis: 100% }
.gbulk .gnote:empty { display: none }
.gerr:not(:empty) { margin-top: 10px }
.gwrap { margin-top: 12px; overflow: auto; max-height: calc(100svh - 230px); min-height: 240px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface) }
.gtable { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 14px }
.gtable th { position: sticky; top: 0; z-index: 2; background: var(--surface); text-align: left; padding: 0; border-bottom: 1px solid var(--line); white-space: nowrap }
.gtable th button { all: unset; box-sizing: border-box; display: block; width: 100%; padding: 10px 12px; cursor: pointer; font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted) }
.gtable th[aria-sort] button { color: var(--fg) }
.gtable th button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px }
.gtable th.num button { text-align: right }
.gtable td { padding: 8px 12px; border-top: 1px solid var(--line); white-space: nowrap; max-width: 240px; overflow: hidden; text-overflow: ellipsis; vertical-align: middle }
.gtable tbody tr:first-child td { border-top: 0 }
.gtable td.num { text-align: right; font-variant-numeric: tabular-nums }
.gtable td.g-depth { color: var(--coral) }
.gtable td.g-memo { max-width: 280px; color: var(--muted) }
.gtable:not(.editing) tbody tr { cursor: pointer }
.gtable:not(.editing) tbody tr:hover td, .gtable tbody tr:focus-visible td { background: var(--sunk) }
.gtable tbody tr:focus-visible { outline: none }
/* the date (and the tick box) stay on the left while the table scrolls sideways */
.gtable .g-date, .gtable .gsel { position: sticky; left: 0; z-index: 1; background: var(--surface) }
.gtable th.g-date, .gtable th.gsel { z-index: 3 }
.gtable.editing .g-date { left: 40px }
.gtable .gsel, .gtable th.gsel { width: 40px; min-width: 40px; max-width: 40px; padding: 0 !important; text-align: center; vertical-align: middle }
.gbulk .linkbtn { padding: 0; align-self: center }
.gbulk select, .gbulk input { background: var(--sunk); color: var(--fg); border: 1px solid var(--line); border-radius: 8px }
.gtable td.g-country input.cinput { min-width: 170px }
.clist { position: absolute; top: 0; left: 0; z-index: 1000; overflow-y: auto; overscroll-behavior: contain; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 36px rgba(0, 0, 0, .4); padding: 4px; font: 500 14px var(--body); color: var(--fg); text-transform: none; letter-spacing: 0; text-align: left }
.copt { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; line-height: 1.25 }
.copt.hi { background: var(--sunk) }
.copt.cur { color: var(--accent); font-weight: 700 }
.copt.csep { box-shadow: 0 1px 0 var(--line); border-radius: 8px 8px 0 0; margin-bottom: 4px }
.cflag { flex: none; width: 22px; text-align: center; font-size: 18px; line-height: 1 }
.cflag.ccode { font: 600 10px var(--mono); letter-spacing: .06em; color: var(--muted) }
.cnone { padding: 10px; color: var(--muted) }
.acct .gbulk .mdel { margin: 0 0 0 auto; color: var(--coral); font-size: 14px; font-weight: 600 }
.gtable .gsel input { width: 16px; min-width: 0; height: 16px; margin: 0; padding: 0; accent-color: var(--accent); vertical-align: middle }
.gtable.editing td { padding: 5px 6px }
.gtable.editing td.g-date, .gtable.editing td.g-time, .gtable.editing td.num { padding: 5px 12px }
.gtable td input, .gtable td select, .gtable td textarea { width: 100%; min-width: 150px; padding: 6px 8px; font: inherit; font-size: 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--sunk); color: var(--fg) }
.gtable td textarea { min-width: 240px; resize: vertical; display: block; min-height: 34px }
.gtable td.g-country select { min-width: 170px }
.gtable td.chg { background: color-mix(in srgb, var(--gold) 16%, transparent) !important }
.gtable td.chg input, .gtable td.chg select, .gtable td.chg textarea { border-color: var(--gold) }
.gtable td.glock { color: var(--muted); padding: 5px 12px }
.gtable td.glock svg { width: 13px; height: 13px; vertical-align: -2px; margin-right: 6px; fill: none; stroke: var(--gold); stroke-width: 2 }
.mbar b { font-variant-numeric: tabular-nums; font-weight: 600; min-width: 28px; text-align: right }
.dlsave { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--muted); margin-top: 10px }
.dlsave.done { color: var(--fg) }
.dlsave .iconbtn { align-self: auto }
#detailsSec.locked input:disabled, #detailsSec.locked select:disabled, .sitein:disabled { opacity: .7; cursor: not-allowed }
@media (max-width: 720px) {
  .mdive, .mcols { grid-template-columns: 1fr }
  .mview { max-width: 360px; margin-inline: auto }
  .mcol .iconbtn.mone { align-self: center }
  .mgrid { grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 12px 8px }
  .mgrid.small { grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)) }
}

.recstep { margin: 10px 0 0; font-weight: 600 }
.recstep:empty { display: none }
.recprof { display: block; width: 100%; height: auto; margin: 14px 0 8px; overflow: visible }
.recprof .surf { stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 4 6; opacity: .6 }
.recprof .track { fill: none; stroke: var(--line); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round }
.recprof .fill { fill: none; stroke: #4fd6cb; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round }
/* no transition: a dot easing straight from point to point cut across the bends and left the line (owner, 26 Nov 2026) */
.recprof .head { fill: #fff; stroke: #4fd6cb; stroke-width: 3 }
.recprof .max { fill: #ff6b6b }
#recDialog.paused .recprof .fill { stroke: var(--gold) }
#recDialog.paused .recprof .head { stroke: var(--gold) }
/* The logo from the "Created with DiveLapse" bubble: it bobs like a rising bubble while the profile line draws itself */
.recbubble { display: flex; justify-content: center; margin: 4px 0 10px }
.recmark { width: 84px; height: 84px; animation: recbob 2.8s ease-in-out infinite }
.recline { stroke-dasharray: 1; stroke-dashoffset: 1; animation: recdraw 2.8s ease-in-out infinite }
.recdot { transform-box: fill-box; transform-origin: center; animation: recdot 2.8s ease-in-out infinite }
#recDialog.paused .recmark, #recDialog.paused .recline, #recDialog.paused .recdot { animation-play-state: paused }
@keyframes recbob { 0%, 100% { transform: translateY(4px) } 50% { transform: translateY(-6px) } }
@keyframes recdraw { 0% { stroke-dashoffset: 1 } 55%, 85% { stroke-dashoffset: 0 } 100% { stroke-dashoffset: -1 } }
@keyframes recdot { 0%, 22% { transform: scale(0) } 30% { transform: scale(1.6) } 36%, 85% { transform: scale(1) } 100% { transform: scale(0) } }
@media (prefers-reduced-motion: reduce) {
  .recmark, .recline, .recdot { animation: none; stroke-dashoffset: 0 }
}
.divebar { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--topbar, 61px) + 7px); z-index: 5; display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 4px 16px rgba(6,40,56,.12) }
.divebar span { flex: 1; min-width: 0; text-align: center; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.divebar button { width: 40px; height: 40px; min-height: 0; padding: 0; border-radius: 50%; font-size: 20px }
.addrow { display: flex; align-items: center; gap: 12px }
.addsplit { position: relative; flex: none; display: flex; align-items: center; height: 44px; border-radius: 999px; background: var(--accent); color: var(--accent-fg); overflow: hidden }
/* open, the + steps aside and the pill is just its two halves */
.addsplit .plusbtn { transition: width .2s, opacity .15s }
.addsplit.open .plusbtn { width: 0; opacity: 0; pointer-events: none; border: 0 }
.addopts { display: flex; align-items: center; max-width: 0; overflow: hidden; opacity: 0; transition: max-width .25s ease, opacity .2s; white-space: nowrap }
.addsplit.open .addopts { max-width: 420px; opacity: 1 }
.addopts button { display: inline-flex; align-items: center; gap: 6px; min-height: 0; height: 44px; padding: 0 16px; border: 0; border-radius: 0; background: none; color: inherit; font: 700 14px var(--body); transition: background .12s, color .12s }
.addopts button:first-child { padding-left: 18px }
.addopts button:last-child { padding-right: 18px }
.addopts button + button { border-left: 1.5px solid color-mix(in srgb, var(--accent-fg) 25%, transparent) }
.addopts svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round }
/* the half under the pointer turns darker teal with white text (outlined and navy versions were tried, 9 Nov 2026) */
.addsplit .addopts button:is(:hover, :focus-visible) { background: #0e8a82; color: #fff }
.addsplit.open + .hint { visibility: hidden }
@media (prefers-reduced-motion: reduce) {
  .addopts, .addsplit .plusbtn { transition: none }
}
.plusbtn { flex: none; width: 44px; height: 44px; min-height: 0; padding: 0; border-radius: 50%; font: 600 24px/1 var(--body); background: var(--accent); color: var(--accent-fg); border-color: var(--accent) }
.addrow .hint { flex: 1 }
.improw { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px }
/* a small tip under a button on hover or keyboard focus (the file types Import dive log takes) */
[data-tip] { position: relative }
[data-tip]::after { content: attr(data-tip); position: absolute; left: 0; top: calc(100% + 6px); z-index: 20; width: max-content; max-width: 260px; padding: 6px 10px; border-radius: 8px; background: var(--fg); color: var(--bg); font: 500 12px/1.35 var(--body); opacity: 0; pointer-events: none; transform: translateY(-2px); transition: opacity .12s, transform .12s }
[data-tip]:hover::after, [data-tip]:focus-visible::after { opacity: 1; transform: none }
@media (hover: none) {
  [data-tip]::after { display: none }
}
/* the import picker: one row per dive in the file, Make now on the left, Save for later on the right */
.impdialog { max-width: min(640px, calc(100vw - 32px)) }
.impdialog .cwrap { max-height: min(420px, 52vh) }
.impdialog .ctable td { vertical-align: middle }
.impdialog .ctable input[type=checkbox] { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); display: block }
.impdialog .ctable .ck { width: 44px; text-align: center; padding-left: 0; padding-right: 0 }
.impdialog .ctable .ck input { margin: 0 auto }
.impdialog .ctable th { z-index: 2; vertical-align: bottom }
.impdialog .ctable th.ck { width: 64px; font-size: 11px; line-height: 1.2; white-space: normal; padding-left: 4px; padding-right: 4px }
.impdialog .ctable tr.inlog td:not(.ck) { opacity: .55 }
.impdialog .ctable td small.nc { color: var(--warn) }
.impcount { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted) }
.impcount b { color: var(--fg) }
.impdialog .ctable td.dv { white-space: normal; min-width: 120px }
.impdialog .ctable .ck + .ck { border-right: 1px solid var(--line) }
.impdialog .impsite { display: block; width: 100%; max-width: 200px; height: 30px; min-height: 0; margin: 0 0 4px; padding: 3px 8px; font: 700 13px var(--body); border-radius: 8px }
.impdialog .impsite:placeholder-shown { border-color: var(--warn) }
.msite { display: flex; gap: 8px }
.mform { display: flex; flex-direction: column; gap: 10px; margin-top: 18px }
.mfield { display: flex; flex-direction: column; gap: 4px }
.mfield .l { display: inline-flex; align-items: center; gap: 6px; font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted) }
.mfield .l .lk { width: 13px; height: 13px; fill: none; stroke: var(--gold); stroke-width: 1.8 }
.mfield input, .mfield select, .mfield textarea { width: 100%; font: inherit; font-size: 15px; color: var(--fg); background: var(--sunk); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; min-height: 40px }
.mfield textarea { resize: vertical; min-height: 72px }
.mwhen { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px }
.mtwo { display: grid; grid-template-columns: 1fr 1fr; gap: 8px }
.mtwo .mfield { min-width: 0 }
.handform { margin-top: 4px }
.mfield input.bad, .mfield select.bad { border-color: var(--warn); box-shadow: 0 0 0 1px var(--warn) }
.handform .shapes { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px }
.handform .shapebtn { padding: 8px 4px; font-size: 11px }
.handform .shapebtn svg { width: 60px; height: 32px }
.mwhen .mfield { min-width: 0 }
.mwhen input { padding: 8px 6px }
@media (max-width: 420px) {
  .mwhen { grid-template-columns: 1fr 1fr }
  .mwhen .mfield:first-child { grid-column: 1 / -1 }
}
.mfield input:disabled, .mfield select:disabled { opacity: .65; cursor: not-allowed }
.mfield input[placeholder="Add the dive site"]:placeholder-shown { border-color: var(--warn) }
.mform > button.primary { align-self: flex-start; width: auto; min-height: 40px; padding: 8px 18px; font-size: 14px }
.msite input { flex: 1; min-width: 0; font: inherit; font-size: 15px; color: var(--fg); background: var(--sunk); border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; min-height: 40px }
.msite input:placeholder-shown { border-color: var(--warn) }
.msite button { flex: none; width: auto; min-height: 40px; padding: 6px 14px; font-size: 14px }
.impcn { display: block; margin-top: 4px; min-height: 30px; width: 100%; max-width: 200px; padding: 2px 6px; font-size: 12px; border-radius: 8px }
.impcn.nc { border-color: var(--warn); color: var(--warn) }
.impbar { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden }
.impbar i { display: block; height: 100%; background: var(--accent); width: 0; transition: width .2s }
@media (max-width: 560px) {
  .impdialog .ctable .opt { display: none }
}
.limitbox { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn-fg) }
.limitbox p { margin: 0 }
.limitbox button { background: var(--gold); color: var(--gold-fg); border-color: var(--gold) }
.trips .pick[aria-current="true"] small::after { content: " – editing"; color: var(--accent) }
/* the profile strip stays where it is in the Photos section; following the scroll it covered the names and framing */
.stripwrap { padding: 6px 0; background: var(--surface) }
.photos li.open, .photos li.closed { grid-template-columns: 56px minmax(0, 1fr); align-items: start }
.photos li.open > img, .photos li.closed > img { width: 56px; height: 56px }
.photos .pside { flex-direction: row; justify-content: space-between; align-items: center }
.slidepick { display: flex; flex-wrap: wrap; gap: 6px }
.slidepick button { min-height: 40px; padding: 8px 12px; border-radius: 999px; font-size: 13px; background: var(--sunk) }
.slidepick button[aria-pressed="true"] { background: var(--accent); color: var(--accent-fg); border-color: var(--accent) }
.rowhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; background: none; border: 0; padding: 0; min-height: 44px; text-align: left; font: inherit; color: inherit; width: 100% }
.rowhead:hover { border: 0 }
.rowhead .pname { flex: 1 }
.rowhead::after { content: ""; flex: none; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin-right: 4px }
.photos li.open .rowhead::after { transform: rotate(-135deg) }
.dlgrid { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 14px; align-items: start; margin: 8px 0 }
.dlgrid img { width: 110px; border-radius: 10px; display: block; background: var(--sunk) }
.dllist { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: 14px }
.topreview { position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 30; width: auto; min-height: 44px; padding: 8px 16px; border-radius: 999px; background: var(--surface); color: var(--fg); border: 1px solid var(--line); font-weight: 600; box-shadow: 0 6px 20px rgba(2,14,24,.35) }
.trips .invid { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); padding: 0 6px; white-space: nowrap }
.openlist { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px }
.openlist li { position: relative }
.photopick { display: flex; flex-wrap: wrap; gap: 8px }
.photopick button { width: 72px; height: 72px; min-height: 0; padding: 0; border-radius: 10px; overflow: hidden; border: 2px solid transparent }
.photopick button[aria-checked="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) }
.photopick img { width: 100%; height: 100%; object-fit: cover; display: block }
/* every photo of a trip: smaller miniatures, in rows */
#tripPhotoPick { gap: 6px }
#tripPhotoPick button { width: 54px; height: 54px; border-radius: 8px }
#tripPhotoPick .more { display: grid; place-items: center; border: 1px solid var(--line); background: transparent; color: var(--fg); font: 600 15px var(--body) }
.openlist img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; display: block }
.openlist button { position: absolute; top: -6px; right: -6px; width: 26px; height: 26px; min-height: 0; padding: 0; border-radius: 50%; font-size: 14px; line-height: 1 }
.openlist button.openpick { position: static; width: auto; height: auto; padding: 0; border-radius: 12px; border: 2px solid transparent; background: none; display: block }
.openlist button.openpick[aria-pressed="true"] { border-color: var(--accent) }
#openEdit { margin-top: 10px }
.locknote { max-width: 380px; width: 100%; margin: 0 auto; padding: 10px 12px; border-radius: 12px; background: var(--sunk); border: 1px dashed var(--accent); font-size: 13px; color: var(--fg) }
/* studio */
.apphead { padding-block: 22px 6px; display: flex; flex-direction: column; gap: 4px }
.apphead h1 { margin: 0; font-family: var(--display); font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: clamp(26px, 4vw, 38px); line-height: 1 }
.apphead p { margin: 0; color: var(--muted) }
.apphead.acchead { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px }
.acchead .ahead { margin: 0 }
.apphead.acchead { padding-bottom: 22px }
.apphead .edback { align-self: flex-start; margin: 0 0 6px }
.apphead .edback[hidden] { display: none }
/* Phones: in the editor the logo and the title are centred */
@media (max-width: 760px) {
  .apphead { align-items: center; text-align: center }
  .apphead.acchead { justify-content: center }
}
.wrap { max-width: 1160px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: 0 48px }
.studio { display: grid; grid-template-columns: minmax(0, 380px) 170px minmax(0, 1fr); gap: 20px; align-items: start }
/* Vertical tabs: what you're editing. Output tabs also pick what the preview shows (the dot) */
.tabs { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--topbar, 61px) + 11px); display: flex; flex-direction: column; gap: 4px }
.tabs button { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; background: transparent; border-color: transparent; color: var(--muted); padding: 11px 12px }
.tabs button:hover { color: var(--fg) }
.tabs button[aria-selected="true"] { background: var(--surface); border-color: var(--accent); color: var(--fg) }
.tabs .live { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-left: auto; flex: none }
.tabs .grp { font: 600 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: 16px 12px 4px }
.tabs .grp:first-child, .tabs .edmode:not([hidden]) + .grp { margin-top: 4px }
/* Dives | Trip: which side of the editor the tabs are for */
.edmode { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; padding: 3px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--sunk) }
.edmode[hidden], .edmode button[hidden] { display: none }
.tabs .edmode button { justify-content: center; padding: 8px 6px; border-radius: 9px; border-color: transparent; font-weight: 600; color: var(--muted) }
/* Download sits apart at the end, like a checkout, on both sides of the switch */
.tabs button.checkout { margin-top: 14px; justify-content: center; border-color: color-mix(in srgb, var(--accent) 55%, transparent); color: var(--accent); font-weight: 700; position: relative }
.tabs button.checkout::before { content: ''; position: absolute; left: 0; right: 0; top: -9px; height: 1px; background: var(--line) }
.tabs button.checkout[aria-selected="true"] { background: var(--accent); color: var(--accent-fg); border-color: var(--accent) }
.tabs button.checkout .live { display: none }
.tabs .edmode button[aria-pressed="true"] { background: var(--accent); color: var(--accent-fg); border-color: var(--accent) }
/* the quick editor's Dives | Trip switch tops its panel */
.qside { margin: 0; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr }
.qside button[hidden] { display: none }
.qside button { min-height: 0; justify-content: center; padding: 8px 6px; border-radius: 9px; border: 1px solid transparent; background: transparent; font: 600 15px var(--body); color: var(--muted); cursor: pointer }
.qside button[aria-pressed="true"] { background: var(--accent); color: var(--accent-fg); border-color: var(--accent) }
.qtrippane[hidden] { display: none }
/* the advanced editor: the same switch as a bar over the tabs and the settings */
/* across the tabs and the settings, beside the preview (owner, 28 Nov 2026) */
.studio:not(.quick) > .qside { grid-column: 2 / -1; grid-row: 1 }
.studio:not(.quick) > .stage { grid-row: 1 / span 2 }
.studio:not(.quick) > .tabs, .studio:not(.quick) > .panel { grid-row: 2 }
/* the first row is only as tall as the switch (the preview spans both, and the extra height went to both rows, so short
   settings sat in the middle of the page) */
@media (min-width: 821px) { .studio:not(.quick) { grid-template-rows: auto 1fr } }
/* Download is its own step: no tab list beside it */
body[data-tab="download"] .studio:not(.quick) > .tabs { display: none }
@media (min-width: 821px) { body[data-tab="download"] .studio:not(.quick) > .panel { grid-column: 2 / -1 } }
/* quick editor, Trip side with no trip yet: the switch and Create a trip, no preview */
/* quick editor, Trip side with no trip yet: on phones Create a trip sits above the dive's preview */
@media (max-width: 820px) { .studio.quick.q-nomade > .qpanel { order: -1 } }
.studio.q-trip #slideNav { display: none !important }
.qtrippane, .qtripfields { display: flex; flex-direction: column; gap: 14px }
.qtripfields[hidden] { display: none }
.qtrippane .f, .qtrippane .ferr { margin: 0 }
.qtrippane .dchip { cursor: pointer }
#tabs[data-mode="dives"] [data-m="trip"], #tabs[data-mode="trip"] [data-m="dives"] { display: none }
.tab-off { display: none !important }
.stage .modes { display: none }
@media (max-width: 820px) {
  .studio { grid-template-columns: minmax(0, 1fr) }
  .tabs { flex-direction: row; overflow-x: auto; top: calc(env(safe-area-inset-top, 0px) + var(--topbar, 61px) + var(--qsh, 0px)); z-index: 6; background: var(--bg); padding: 8px 0; scrollbar-width: none }
  .tabs .grp { display: none }
  .studio:not(.quick) > .qside { order: -1; grid-column: auto; grid-row: auto; width: 100%; max-width: none; position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--topbar, 61px) + 8px); z-index: 7; box-shadow: 0 -8px 0 var(--bg), 0 8px 0 var(--bg) }
  .studio:not(.quick) > .stage { grid-row: auto }
  .studio:not(.quick) > .tabs, .studio:not(.quick) > .panel { grid-row: auto; order: 1 }
  .tabs button.checkout { margin: 0 0 0 4px }
  .tabs button.checkout::before { display: none }
  .tabs .edmode[hidden] { display: none }
  .tabs button { width: auto; flex: none; white-space: nowrap; border-color: var(--line) }
  /* Phones: the header and the tab row stay on screen, so anything scrolled to or pinned starts below both
     (--stick is their combined height, measured in fitScreen); the profile strip isn't pinned, as it took half the screen */
  #tabs { scroll-margin-top: calc(env(safe-area-inset-top, 0px) + var(--topbar, 61px)) }
  .divebar { top: calc(var(--stick, 125px) + 6px) }
  .dltab thead th { top: var(--stick, 125px) }
  /* room at the bottom so the floating "Back to top" button never covers the last controls */
}
.stage { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--topbar, 61px) + 11px); display: flex; flex-direction: column; gap: 12px }
@media (min-width: 821px) {
  .stage { max-height: calc(100svh - 88px - env(safe-area-inset-top, 0px)); overflow-y: auto; scrollbar-width: none; overscroll-behavior: contain }
  .stage::-webkit-scrollbar { display: none }
  .stage > * { flex-shrink: 0 }
}
.stage .status:empty { display: none }
#finishSec .actions, #finishSec .checkout { max-width: 520px; margin: 0 }
#finishSec .actions .wide { grid-column: auto; padding-inline: 8px }
#finishSec .actions .wide:last-child:nth-child(odd) { grid-column: 1 / -1 }
#finishSec { scroll-margin-top: 90px }
@media (max-width: 820px) {
  .stage { position: static }
}
.modes { display: flex; flex-wrap: wrap; gap: 4px; max-width: 380px; width: 100%; margin: 0 auto; padding: 4px; border-radius: 22px; background: var(--sunk); border: 1px solid var(--line) }
.modes button { flex: 1 1 auto; border: 0; border-radius: 999px; background: transparent; min-height: 38px; padding: 8px 10px; white-space: nowrap; font-size: 13px }
.modes button[aria-pressed="true"] { background: var(--accent); color: var(--accent-fg) }
.plabel { font: 500 14px var(--body); color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; min-height: 38px; width: 100%; min-width: 0 }
.screen { width: 100%; max-width: 380px; margin: 0 auto; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; background: #071B2A; box-shadow: 0 10px 30px rgba(5, 30, 45, .25) }
#reel { width: 100%; height: 100%; display: block }
.transport { display: flex; align-items: center; gap: 10px; max-width: 380px; width: 100%; margin: 0 auto }
.transport input[type=range] { flex: 1; min-width: 0; accent-color: var(--accent); height: 32px; margin: 0; cursor: pointer }
@media (pointer: coarse) {
  .transport input[type=range] { height: 44px }
}
.clock { font-family: var(--mono); font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 78px; text-align: right }
.actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-width: 380px; width: 100%; margin: 0 auto }
.actions .wide { grid-column: 1 / -1 }
.status { max-width: 380px; margin: 0 auto; width: 100%; min-height: 20px; font-size: 13px; color: var(--muted) }
.panel { display: flex; flex-direction: column; gap: 16px; min-width: 0 }
details.sec { border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 2px 10px rgba(6,40,56,.05); background: var(--surface); min-width: 0 }
details.sec > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; min-height: 56px; font-family: var(--display); font-weight: 800; font-stretch: 112%; text-transform: uppercase; letter-spacing: .02em; font-size: 16px }
details.sec > summary::-webkit-details-marker { display: none }
details.sec > summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin-right: 4px; transition: transform .15s }
details.sec[open] > summary::after { transform: rotate(-135deg) }
details.sec > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 16px }
.sec-body { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 14px; min-width: 0 }
.sub { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line) }
.sub:first-child { border-top: 0; padding-top: 0 }
.sub h3 { margin: 0; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted) }
.sub-inner { display: flex; flex-direction: column; gap: 8px }
.minilabel { font-size: 13px; color: var(--muted) }
.shapes { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px }
.shapebtn { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 8px; min-height: 0; font: 500 12px var(--body); background: var(--sunk); color: var(--fg); text-align: center; line-height: 1.25 }
.shapebtn svg { width: 72px; height: 40px; display: block }
.shapebtn[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset }
/* the dive being edited is a card you type the site into */
.trips div.pick { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px }
.trips .sitein { font: 600 17px var(--body); color: var(--fg); background: transparent; border: 0; border-bottom: 1.5px dashed var(--accent); border-radius: 0; padding: 4px 0 6px; margin-bottom: 4px; width: 100%; min-width: 0; outline: none }
.trips .sitein:focus { border-bottom-style: solid }
.trips .sitein::placeholder { color: var(--muted); opacity: .55; font-weight: 500 }
.samplebox { margin: 0; display: flex }
.samplebox button { min-height: 0; padding: 5px 12px 5px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--sunk); color: var(--fg); border: 1px solid var(--line); display: inline-flex; align-items: center; gap: 6px }
.samplebox button::before { content: ''; width: 0; height: 0; border-left: 7px solid var(--accent); border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent }
.samplebox button:hover { border-color: var(--accent) }
.samplebox[hidden] { display: none }
.slidenav { display: flex; align-items: center; justify-content: space-between; gap: 10px; max-width: 380px; width: 100%; margin: 0 auto }
.slidenav .clock { text-align: center; flex: 1 }
.trips { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px }
.trips li { display: flex; gap: 8px; align-items: stretch }
.trips .pick { flex: 1; min-width: 0; text-align: left; display: flex; flex-direction: column; gap: 2px; background: var(--sunk); font-weight: 500 }
.trips .pick small { font: 400 12px var(--mono); color: var(--muted) }
.trips li.ready .pick small::before { content: "✓ Ready – "; color: var(--ok); font-weight: 600 }
.trips li.ready .pick { border-left: 3px solid var(--ok) }
/* a dive still missing something says so in yellow, as in the quick editor (owner, 28 Nov 2026: the first warning
   only came in Download) */
.trips.checked li:not(.ready) .pick small::before { content: "Details to fill in – "; color: var(--warn); font-weight: 600 }
.trips.checked li:not(.ready) .pick { border-left: 3px solid var(--warn) }
/* the switch's Dives part gets a yellow dot while a dive is missing details */
.qside button.warn::after { content: ''; width: 7px; height: 7px; margin-left: 7px; border-radius: 50%; background: var(--warn); display: inline-block; vertical-align: middle }
.tabs button.ready::after { content: "✓"; margin-left: auto; color: var(--ok); font-weight: 700 }
.trips .pick[aria-current="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset }
.custom { display: flex; gap: 8px; align-items: center; flex-wrap: wrap }
.colorpick { width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--sunk); cursor: pointer }
.hexin { font: 500 14px var(--mono); color: var(--fg); background: var(--sunk); border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; min-height: 44px; width: 170px; max-width: 100% }
.hexin.bad { border-color: var(--warn) }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px }
div.f output { font: 600 15px var(--body); color: var(--fg); text-transform: none; letter-spacing: 0; min-height: 42px; display: flex; align-items: center }
label.f, div.f { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase; min-width: 0 }
label.f input, label.f select { font: 500 15px var(--body); color: var(--fg); background: var(--sunk); border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; min-height: 42px; width: 100%; min-width: 0; text-transform: none; letter-spacing: 0 }
label.f input.bad, label.f input.iswarn { border-color: var(--warn); box-shadow: 0 0 0 1px var(--warn) }
#shapes.iswarn { outline: 2px solid var(--warn); outline-offset: 4px; border-radius: 10px }
.lockdiffs { margin: 6px 0 0; padding-left: 18px; font-size: 14px; color: var(--warn) }
.lockdiffs li { margin: 2px 0 }
.lockor { margin: 8px 0 0; font-size: 13px; color: var(--muted) }
.dlwarn { margin: 0; font-size: 14px; color: var(--warn) }
.dlnote { margin: -4px 0 0; font-size: 13px; color: var(--muted); text-align: center }
.dlwarn button { margin-left: 4px }
.trips .sitein.bad { border-bottom-color: var(--warn); border-bottom-style: solid }
.cliprm { align-self: flex-start; background: none; border: 0; padding: 6px 2px; min-height: 0; color: var(--muted); font-size: 13px; text-decoration: underline; cursor: pointer }
.cliptrack { position: relative; height: 40px; margin: 2px 0 6px; border-radius: 8px; background: var(--sunk); border: 1px solid var(--line); touch-action: none; cursor: pointer }
.clipwin { position: absolute; top: -1px; bottom: -1px; min-width: 14px; border-radius: 8px; background: color-mix(in srgb, var(--accent) 35%, transparent); border: 2px solid var(--accent); cursor: grab }
.clipwin:active { cursor: grabbing }
.stripadd { display: flex; align-items: center; gap: 10px; margin-top: 6px }
.stripadd .filebtn { min-height: 36px; padding: 8px 12px; font-size: 13px }
#strip { width: 100%; height: 130px; display: block; border-radius: 10px; background: var(--sunk); touch-action: none; cursor: grab }
.photos { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none }
.photos li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--sunk) }
.photos li > img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; max-width: 100% }
.pmeta { display: flex; flex-direction: column; gap: 4px; min-width: 0 }
.pname { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.prow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted) }
.prow input[type=range] { flex: 1; min-width: 120px; accent-color: var(--accent) }
.prow select { font: 500 13px var(--body); color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; min-height: 36px; padding: 4px 8px }
.pmin { font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--fg) }
.warnbox { margin-top: 4px; padding: 8px 10px; border-radius: 8px; background: var(--warn-bg); color: var(--warn-fg); border: 1px solid var(--warn-line); font-size: 13px; line-height: 1.4 }
.photos li.needs-check { border-color: var(--warn-line) }
.framing { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted) }
.framer { position: relative; width: 100%; max-width: 260px; overflow: hidden; border-radius: 8px; touch-action: none; cursor: grab }
.framer img { width: 100%; height: 100%; object-fit: fill; border-radius: 0; display: block; pointer-events: none }
.framewin { position: absolute; border: 2px solid #FFFFFF; box-shadow: 0 0 0 999px rgba(2,14,24,.55) }
.src { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase }
.pside { display: flex; flex-direction: column; gap: 6px; align-items: flex-end }
.pside label { display: flex; align-items: center; gap: 6px; font-size: 13px; white-space: nowrap }
.pside label.cardpick { min-height: 36px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--sunk); cursor: pointer; font-weight: 600 }
.pside label.cardpick:has(input:checked) { border-color: var(--accent); color: var(--accent) }
.cardpick input { accent-color: var(--accent) }
.cardchip { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--sunk); cursor: pointer; font-size: 13px; font-weight: 600; color: var(--muted) }
.cardchip:has(input:checked) { border-color: var(--accent); color: var(--accent) }
.cardchip input { accent-color: var(--accent); margin: 0 }
.photos.nocard .cardchip, .photos.nocard .cardpick, .photos li.open .cardchip { display: none }
.photos img.is-card { box-shadow: 0 0 0 2px var(--accent) }
/* fonts shown in their own style */
.fontpick label span { font-size: 18px; line-height: 1 }
.pside button { min-height: 36px; padding: 8px 10px; font-size: 13px }
.surfmove { display: flex; gap: 6px; flex: none }
.surftop { display: flex; align-items: center; gap: 8px; min-width: 0 }
.surftop .rowhead { flex: 1; min-width: 0 }
.surftop .surfmove button { min-width: 40px; min-height: 36px; padding: 6px 0; font-size: 16px; line-height: 1 }
.photos li.surfrow { align-items: center }
.photos li.surfrow.sopen { align-items: start }
.photos li.sopen .rowhead::after { transform: rotate(-135deg) }
.surfrow .sub-inner[hidden] { display: none }
.surfrow .sub-inner { margin-top: 8px }
.photos .pside { flex-wrap: wrap; gap: 8px }
.surflist { margin-top: 10px }
.photos li.surfrow { grid-template-columns: 56px minmax(0, 1fr); align-items: start }
.photos li.surfrow > img { width: 56px; height: 56px }
.sheetbar { display: none }
@media (max-width: 820px) {
  .photos li.open { position: fixed; inset: 0; z-index: 60; display: block; border: 0; border-radius: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 16px calc(24px + env(safe-area-inset-bottom, 0px)); background: var(--bg) }
  .photos li.open > img, .photos li.open .rowhead { display: none }
  .photos li.open .sheetbar { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 2; margin: 0 -16px 4px; padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px; background: var(--bg); border-bottom: 1px solid var(--line) }
  .sheetbar strong { flex: 1; font-size: 17px }
  .sheetbar button { min-height: 44px; padding: 10px 18px; font-size: 16px }
  .photos li.open .sub-inner { gap: 14px }
  .photos li.open input[type=range] { min-height: 40px }
  .photos li.open .pside button, .photos li.open .pside label.cardpick { min-height: 44px; font-size: 15px }
}
.palrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px }
.swatches { display: flex; gap: 6px; flex-wrap: wrap; padding: 3px }
.swatch { flex: none; width: 26px; height: 26px; min-height: 0; min-width: 0; aspect-ratio: 1; border-radius: 50%; padding: 0; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line) }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--accent) }
.palrow .custom { gap: 6px; flex-wrap: nowrap }
.palrow .colorpick { width: 32px; height: 32px; border-radius: 8px }
.palrow .hexin { width: 96px; min-height: 32px; padding: 5px 8px; font-size: 12px }
.seg { display: flex; flex-wrap: wrap; gap: 8px }
.seg label { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--sunk); min-height: 44px; cursor: pointer; font-size: 14px }
.seg input { accent-color: var(--accent) }
.seg label[hidden] { display: none }
/* ---------- quick start (quick.js, 18 Nov 2026) ---------- */
.qlink { background: none; border: 0; padding: 0; min-height: 0; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; font: inherit; font-weight: 600; cursor: pointer }
.qswitch { margin: 8px 0 0 }
/* on wide screens it sits at the right, just above the settings (owner, 18 Nov 2026) */
@media (min-width: 761px) { #appHead { position: relative } .qswitch { position: absolute; right: 0; bottom: 6px; margin: 0 } }
.qswbtn { display: inline-flex; align-items: center; gap: 8px; min-height: 0; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--coral); background: color-mix(in srgb, var(--coral) 10%, transparent); color: var(--fg); font: 600 14px var(--body) }
.qswbtn svg { width: 16px; height: 16px; fill: var(--coral) }
.studio.quick { grid-template-columns: minmax(0, 380px) minmax(0, 440px); grid-template-rows: auto auto 1fr; justify-content: center; column-gap: 32px }
.studio.quick .tabs, .studio.quick #modes, .studio.quick .modes { display: none }
.studio.quick > .stage { grid-row: 1 / span 3 }
.studio.quick > .qpanel, .studio.quick > .panel, .studio.quick > .qside { grid-column: 2 }
.studio.quick.q-dl > .qpanel { display: none }
.studio.quick:not(.q-dl) > .panel { display: none }
.studio.quick .divebar, .studio.quick #nextStep { display: none !important }
.studio.q-drop > :not(.qdrop) { display: none !important }
.studio.q-drop { display: block }
.studio.quick #emptyHint { display: none }
/* the drop zone */
.qdrop { max-width: 560px; margin: 8px auto 0; display: flex; flex-direction: column; gap: 14px }
.qzone { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; min-height: min(52svh, 420px); padding: 28px; border: 2px dashed color-mix(in srgb, var(--accent) 55%, transparent); border-radius: 24px; background: color-mix(in srgb, var(--accent) 5%, transparent); cursor: pointer; transition: background .15s, border-color .15s }
.qzone:hover, .qzone.over { background: color-mix(in srgb, var(--accent) 12%, transparent); border-color: var(--accent) }
.qzone:focus-within { outline: 2px solid var(--accent); outline-offset: 3px }
.qplus { width: 60px; height: 60px; border-radius: 50%; background: var(--accent); color: var(--accent-fg); display: grid; place-items: center; font: 600 32px/1 var(--body) }
.qtitle { font: 800 20px var(--display); font-stretch: 112% }
.qsub { color: var(--muted); font-size: 14px }
.qmore { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px; margin: 0; font-size: 14px; color: var(--muted) }
.qdraft { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface) }
.qdraft p { margin: 0; font-size: 14px }
.qdraft span { color: var(--muted) }
.qdbtns { display: flex; gap: 8px }
/* tap spots on the card: dashed with the field's name while empty, invisible once the card shows the value.
   Sizes come from --k (screen px per card px), so they match the card at any size. */
.qfields { position: absolute; inset: 0; pointer-events: none; --k: .35 }
.qfields > * { pointer-events: auto }
.qspot { position: absolute; box-sizing: border-box; margin: 0; min-height: 0; padding: 0 calc(18px * var(--k)); display: flex; align-items: center; justify-content: flex-start; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; border-radius: calc(16px * var(--k)); border: 1.5px dashed rgba(255,255,255,.7); background: rgba(3,16,26,.45); color: #fff; font: 600 calc(34px * var(--k)) var(--body); letter-spacing: 0; text-transform: none; box-shadow: none; cursor: pointer }
.qspot.qbig { font: 700 calc(64px * var(--k)) var(--display); font-stretch: 105% }
.qspot[data-f="date"] { font: 500 calc(28px * var(--k)) var(--mono); letter-spacing: .06em; text-transform: uppercase }
.qspot.opt { border-color: rgba(255,255,255,.35); background: transparent; color: rgba(255,255,255,.6) }
.qspot:hover { background: rgba(3,16,26,.6); border-color: #fff }
.qspot.filled { background: transparent; border-color: transparent }
/* a filled spot is as small as the card's text (14 to 21 px tall on a phone); its tap area reaches past it where there's
   room: the date upwards, the country downwards, the numbers both ways (the text stays where the card draws it) */
.qspot.filled { overflow: visible }
.qspot.filled::before { content: ''; position: absolute; left: 0; right: 0; top: -5px; bottom: -5px }
.qspot.filled[data-f="date"]::before { top: -14px; bottom: 0 }
.qspot.filled[data-f="country"]::before { top: 0; bottom: -12px }
.qspot.filled:hover, .qspot.filled:focus-visible { border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.06) }
.qspot.on { border: 2px solid var(--accent); background: rgba(79,214,203,.12) }
.qspot:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px }
#screen.qgrab { cursor: grab }
#screen.qdragging { cursor: grabbing }
.studio.quick #screen { touch-action: pan-y }
/* the pop-up: one field at a time, normal size */
.qpop { position: absolute; left: 4%; width: 92%; z-index: 3; box-sizing: border-box; padding: 10px 12px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(0,0,0,.45); --ax: 40px }
.qpop::before { content: ""; position: absolute; top: -7px; left: var(--ax); width: 12px; height: 12px; margin-left: -6px; background: var(--surface); border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: rotate(45deg) }
.qpop.up::before { top: auto; bottom: -7px; transform: rotate(225deg) }
.qpoplab { display: block; margin: 0 0 6px; font: 600 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted) }
.qpoprow { display: flex; gap: 8px; align-items: stretch }
.qshapes { margin-top: 10px }
.qshapes[hidden] { display: none }
.qshh { display: block; margin-bottom: 6px; font: 400 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted) }
.qshrow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px }
.qshrow button { min-height: 0; padding: 4px; border-radius: 8px; border: 1px solid var(--line); background: var(--sunk); color: var(--fg); cursor: pointer }
.qshrow button[aria-checked="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; color: var(--accent) }
.qshrow svg { width: 100%; height: 22px; display: block }
.qpoprow > .qin { flex: 1; min-width: 0 }
.qpoprow > .qin[hidden] { display: none }
.qpoprow input { width: 100%; min-width: 0; font-size: 16px }
.qpoprow .qunit { display: flex; align-items: center; gap: 6px }
.qpoprow .qunit .u { color: var(--muted); font-size: 14px; flex: none }
.qpoprow #qDate { color-scheme: dark }
/* the whole date fits on a phone (owner, 28 Nov 2026: "13/11/20" with the year cut, then Next cut off the card's edge
   on a smaller card). The card clips the pop-up, so the row wraps instead: a box keeps at least 8.6em, and when Next
   doesn't fit beside it, it goes under it across the pop-up (beside the box, the box's far bigger flex-grow takes the
   room; alone on its line, Next takes it all) */
.qpoprow { flex-wrap: wrap }
.qpoprow > .qin { flex: 1000 1 8.6em }
.qpoprow #qDate { padding-inline: 8px 4px }
.qpoprow #qPopNext { flex: 1 0 auto; min-height: 40px; padding-inline: 16px }
.qpoprow .qunit input::-webkit-inner-spin-button, .qpoprow .qunit input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0 }
.qpoprow .qunit input { -moz-appearance: textfield; appearance: textfield }
.qpoprow #qPopNext { padding: 0 16px }
.qpoprow #qCtryBox select { display: none }
/* the panel beside the card */
.qpanel { display: flex; flex-direction: column; gap: 12px; padding-top: 4px }
#qMain { display: flex; flex-direction: column; gap: 12px }
#qMain[hidden] { display: none }
.qhint { margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: 15px; color: var(--fg) }
.qhint.ok { color: var(--ok, #3ccf8e); border-color: color-mix(in srgb, var(--ok, #3ccf8e) 45%, transparent) }
.qhint.shake { animation: qshake .4s }
@keyframes qshake { 25% { translate: -5px } 75% { translate: 5px } }
.qh { margin: 6px 0 0; font: 600 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted) }
.qstrip { display: flex; flex-wrap: wrap; gap: 8px }
.qth, .qadd { position: relative; width: 68px; height: 68px; flex: none; padding: 0; min-height: 0; border-radius: 12px; overflow: hidden; border: 2px solid transparent; background: var(--sunk) }
.qth.on { border-color: var(--accent) }
.qth img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none }
.qth .qx { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; background: rgba(0,0,0,.65); color: #fff; font-size: 14px; line-height: 22px; text-align: center }
.qth .qclip { position: absolute; left: 4px; bottom: 4px; font: 500 9px var(--mono); background: rgba(0,0,0,.6); color: #fff; border-radius: 4px; padding: 1px 4px }
.qadd { border: 2px dashed var(--line); background: transparent; color: var(--muted); font-size: 26px }
.qdl { margin-top: 6px; min-height: 50px; font-size: 16px }
.qadv { margin: 4px 0 0; font-size: 14px; color: var(--muted) }
.qback { align-self: flex-start; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; min-height: 0; font-size: 14px; color: var(--fg) }
/* the Download step's way back is a full-width button in the accent colour (owner, 19 Nov 2026: it was easy to miss) */
@media (max-width: 820px) {
  .studio.quick { grid-template-columns: minmax(0, 1fr) }
  .studio.quick > .stage { grid-row: auto }
  .studio.quick > .qpanel, .studio.quick > .panel, .studio.quick > .qside { grid-column: auto }
  /* the switch is the way around, so on phones it sits above the card, editing or downloading */
  .studio.quick > .qside { order: -1; width: 100%; max-width: 440px; margin: 0 auto }
  .qpanel { max-width: 440px; width: 100%; margin: 0 auto }
}

/* quick editor with several dives (19 Nov 2026): the open dive in a box with its name, the others folded above and
   below it (tap one to open it on the card), then Add another dive */
.qdives { display: flex; flex-direction: column; gap: 8px }
.qdives:empty { display: none }
.qcur { display: flex; flex-direction: column; gap: 12px }
#qMain .qcur { padding: 14px; border: 1px solid var(--accent); border-radius: 18px; background: color-mix(in srgb, var(--accent) 4%, transparent) }
#qMain .qhint { background: var(--bg) }
.qcurhead { display: flex; align-items: center; gap: 10px }
.qcurhead[hidden] { display: none }
.qcurhead b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 800 18px var(--display); font-stretch: 105% }
.qcurhead b.ph { color: var(--muted) }
.qnum { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-fg); font: 700 13px/1 var(--mono) }
.qrm { min-height: 0; padding: 6px 10px; border-radius: 999px; font-size: 13px; background: transparent; border: 1px solid var(--line); color: var(--muted) }
.qrm:hover { color: var(--coral); border-color: var(--coral) }
.qrm[hidden] { display: none }
.qdive { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 0; padding: 10px 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); text-align: left; font: inherit; cursor: pointer }
.qdive:hover { border-color: var(--accent) }
.qdive .qnum { background: var(--sunk); color: var(--fg) }
.qdive .qdt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px }
.qdive .qdt b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px }
.qdive .qdt small { color: var(--muted); font-size: 12px }
.qdive .qdt small.miss { color: var(--warn) }
.qdive .qmini { display: flex; gap: 3px; flex: none }
.qdive .qmini img { width: 28px; height: 28px; border-radius: 6px; object-fit: cover; display: block }
.qzone.qsmall { min-height: 0; padding: 18px; gap: 6px; border-radius: 18px }
.qzone.qsmall .qplus { width: 40px; height: 40px; font-size: 24px }
.qzone.qsmall .qtitle { font-size: 16px }
.qzone.qsmall .qsub { font-size: 13px }
.qzone[hidden], .qfrom[hidden], .qadddive[hidden], .qtrip[hidden] { display: none }
.qtrip { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 0; margin-top: 10px; padding: 12px; border-radius: 16px; border: 1.5px dashed color-mix(in srgb, var(--accent) 60%, transparent); background: transparent; color: var(--accent); font: 600 15px var(--body); cursor: pointer }
.qtrip:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); border-color: var(--accent) }
.qtrip svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none }
.qtrip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.qtrip b { display: none; font: 600 13px var(--body); text-decoration: underline; color: var(--muted) }
.qtrip.made { border-style: solid; justify-content: flex-start }
.qtrip.made b { display: inline; margin-left: auto }
.qfrom { justify-content: flex-start; margin-top: -4px }
.qadddive { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 0; padding: 12px; border-radius: 16px; border: 1.5px dashed color-mix(in srgb, var(--accent) 55%, transparent); background: transparent; color: var(--fg); font: 600 15px var(--body); cursor: pointer }
.qadddive:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); border-color: var(--accent) }
.qadddive .qplus { width: 26px; height: 26px; font-size: 18px }

/* quick editor buttons as small outlined pills with an icon, like the import buttons (owner, 19 Nov 2026) */
.qmore .iconbtn, .qadv .iconbtn { align-self: auto; background: transparent; cursor: pointer }
.qadv { display: flex; flex-wrap: wrap; align-items: center; gap: 8px }
.qfrom { gap: 8px }
.qadddive svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round }
/* the Download step: pick which dive and which file the preview shows */
.qprev { display: flex; flex-direction: column; gap: 6px; width: 100%; max-width: 380px; margin: 0 auto }
.qprev[hidden] { display: none }
.qprow { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px }
.qprow:empty { display: none }
.qprow button { min-height: 0; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--fg); font: 600 13px var(--body); max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.qprow button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-fg) }
.qprow button.trip { border-color: color-mix(in srgb, var(--accent) 60%, transparent); color: var(--accent) }
.qprow button.trip[aria-pressed="true"] { background: var(--accent); color: var(--accent-fg) }

/* phones: a shorter drop box and the other ways in as a compact grid of pills, two to a row (owner, 19 Nov 2026) */
@media (max-width: 820px) {
  .qdrop .qzone { min-height: 30svh }
  .qdrop .qmore { display: grid; grid-template-columns: 1fr 1fr; gap: 8px }
  .qdrop .qmore .iconbtn { justify-content: center; padding: 8px 8px; font-size: 12.5px; white-space: nowrap }
  .qdrop .qmore .iconbtn:last-child:nth-child(odd) { grid-column: 1 / -1 }
}
body:has(.studio.q-drop) #toPreview { display: none !important }

/* drop screen (owner, 19 Nov 2026): Skip inside the box, the other ways in on one labelled row; Go to before the advanced editor */
.qskip { min-height: 0; margin-top: 4px; padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); font: 600 13px var(--body); cursor: pointer }
.qskip:hover { color: var(--fg); border-color: var(--fg) }
.qopen { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap }
.qrowh { font: 600 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted) }
.qopen .qmore { gap: 8px }
@media (max-width: 820px) {
  .qopen { flex-direction: column; gap: 8px }
  .qdrop .qopen .qmore { grid-template-columns: repeat(3, 1fr); width: 100% }
  .qdrop .qopen .qmore .iconbtn { padding: 8px 4px; gap: 5px; font-size: 12px }
  .qdrop .qopen .qmore .iconbtn:last-child:nth-child(odd) { grid-column: auto }
  body:has(.studio.quick) #appTitle { font-size: 24px }
  body:has(.studio.quick) #appHead { padding-block: 14px 4px }
}

/* the second dive's Open from row and Start over (owner, 19 Nov 2026) */
.qfrom { margin-top: 0 }
.qfrom .qmore { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px }
.qfrom .iconbtn { padding: 8px 12px; font-size: 13px; white-space: nowrap }
.qadv .qreset { margin-right: auto }
.qcustom { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 10px 0 0; color: var(--muted); font-size: 15px }
.qcustom[hidden], .qtaphint[hidden] { display: none }
.qtaphint { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; color: var(--accent); font-size: 15px; font-weight: 600; text-align: center }
.qtaphint svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round }
.studio:not(.quick) .qtaphint { display: none }
.qadv .qreset:hover { color: var(--coral); border-color: var(--coral) }
@media (max-width: 820px) {
  .qfrom { flex-direction: column; gap: 8px }
}
.qhint:empty { display: none }

/* boxes still needed (owner, 19 Nov 2026) */
/* yellow, not coral: coral is the depth colour on the card (owner, 19 Nov 2026) */
.qspot.miss { border-color: #ffde85; color: #ffde85; background: rgba(255,222,133,.14) }
/* the pop-up's boxes leave room for the value: a date showed only "19/11/20" on a phone */
.qpoprow input { padding: 8px 10px; outline-offset: 0 }
.qpoprow #qDate { padding-right: 4px }
.qpoprow #qPopNext { padding: 0 12px }
.studio.q-dl #screen { cursor: pointer }
.qerr { margin: 8px 2px 0; font-size: 13.5px; line-height: 1.35; color: #ffde85 }
.qerr[hidden] { display: none }

/* dive page: arrows, trip links, profile with photo markers, kept photos and clips (members) */
.mdtop { display: flex; align-items: center; justify-content: space-between; gap: 12px }
.mdnav { display: flex; gap: 8px; flex: none }
.mdarrow { width: 38px; height: 38px; min-height: 0; padding: 0; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: none; color: var(--fg); cursor: pointer }
.mdarrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round }
.mdarrow:hover:not(:disabled) { border-color: var(--accent) }
.mdarrow:disabled { opacity: .3; cursor: default }
.mdtrips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px }
.mdtrip { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); cursor: pointer }
.mprof svg { display: block; width: 100%; height: auto }
.mprof .grid line { stroke: var(--line); stroke-width: 1 }
.mprof .grid .surf { stroke: color-mix(in srgb, var(--accent) 50%, transparent) }
.mprof text { fill: var(--muted); font: 500 11px var(--mono) }
.mprof .fill { fill: url(#mpfill2) }
.mprof .ln { fill: none; stroke: #4fd6cb; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round }
.mprof .deep { fill: var(--coral) }
.mprof .pmark { cursor: pointer; outline: none }
.mprof .pmark .ring { fill: none; stroke: #4fd6cb; stroke-width: 2.5 }
.mprof .pmark:hover .ring, .mprof .pmark:focus-visible .ring { stroke: #fff; stroke-width: 3 }
.mmedia { margin-top: 4px }
.mmgrid { display: grid; grid-template-columns: repeat(auto-fill, 64px); gap: 6px; margin-top: 6px }
.mmthumb { position: relative; aspect-ratio: 1; min-height: 0; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: var(--deep); cursor: zoom-in }
.mmthumb img { width: 100%; height: 100%; object-fit: cover; display: block }
.mmthumb .play { position: absolute; right: 6px; bottom: 6px; width: 22px; height: 22px; border-radius: 50%; background: rgba(0,0,0,.55); display: grid; place-items: center }
.mmadd { margin: 0 }
.mmacts { display: flex; align-items: center; gap: 8px; margin-top: 10px }
/* where a dragged photo goes to be removed: beside Add more, only while dragging */
.mprof.edit .pmark { touch-action: none }
.mmstat { margin: 8px 0 0 }
.mmlock { margin-top: 8px; padding: 14px 16px; border-radius: 12px; border: 1px dashed color-mix(in srgb, var(--gold) 50%, transparent); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px }
.mmlock p { margin: 0; color: var(--muted); font-size: 14px }
.galtog { pointer-events: auto; min-height: 0; padding: 11px 22px; border-radius: 999px; border: 1px solid rgba(255,255,255,.6); background: rgba(0,0,0,.35); color: #fff; font: 600 15px var(--body); cursor: pointer }
.galtog.on { border-color: var(--ok); color: var(--ok) }
.galtog.on::before { content: '✓ '; color: var(--ok) }
.galtog:disabled { opacity: .6; cursor: default }
.galrm { pointer-events: auto; min-height: 0; padding: 11px 22px; border-radius: 999px; border: 1px solid rgba(255,107,107,.6); background: rgba(0,0,0,.35); color: #ff8b8b; font: 600 15px var(--body); cursor: pointer }
.galbot { gap: 10px }
.mmthumb .play svg { width: 11px; height: 11px; fill: #fff; margin-left: 2px }
.stor { margin: 12px 0 4px; display: grid; gap: 6px; width: 100%; padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: pointer }
.stor .storhd { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font: 500 12px var(--mono); letter-spacing: .06em; color: var(--muted) }
.stor .storsee { color: var(--accent); letter-spacing: 0; font-family: var(--body); font-weight: 600 }
.stor:hover .storsee { text-decoration: underline }
.stlist { max-height: min(420px, calc(100dvh - 330px)); overflow: auto; border: 1px solid var(--line); border-radius: 12px }
.strow { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--fg); text-align: left; cursor: pointer; font: inherit }
.strow:first-child { border-top: 0 }
.strow:hover { background: var(--sunk) }
.strow .stn { display: grid; min-width: 0 }
.strow .stn b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.strow .stn small { color: var(--muted); font-size: 12px }
.strow .sts { font: 500 13px var(--mono); white-space: nowrap }
.storbar { height: 8px; border-radius: 999px; background: color-mix(in srgb, var(--line) 80%, transparent); overflow: hidden }
.storbar i { display: block; height: 100%; border-radius: inherit; background: var(--accent) }
.stor.full .storbar i { background: var(--gold) }
.mmlock > svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round }
.mmlock p { flex: 1; min-width: 160px }
.mperkbox { width: 100%; border-top: 1px solid var(--line); padding-top: 14px; font-size: 14px }
.mperkh { margin: 0 0 8px; color: var(--gold); font-size: 13px; font-weight: 600 }
.mperkbox button.gold { margin-top: 12px; background: var(--gold); color: var(--gold-fg); border-color: var(--gold); font-weight: 700 }
.mmlock button.gold { background: var(--gold); color: var(--gold-fg); border-color: var(--gold); font-weight: 700 }
.msub.mlocked { display: flex; align-items: center; gap: 8px }
.msub.mlocked svg { width: 16px; height: 16px; fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round }
.mperks { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; color: var(--muted) }
.mperks li { position: relative; padding-left: 22px }
.mperks li::before { content: '✓'; position: absolute; left: 0; color: var(--gold); font-weight: 700 }

.mdside { display: flex; align-items: center; gap: 10px; flex: none }
.mdedit { display: flex; gap: 8px }
.mdedit button { min-height: 0; padding: 8px 18px }
.mdeditbtn svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round }
.mddisc { border: 1px solid var(--line); background: none; color: var(--fg); border-radius: 999px; cursor: pointer; font-weight: 600 }
.mdmsg { margin: 6px 0 0; min-height: 1.2em; font-size: 14px; color: var(--muted) }
.mdmsg.busy { color: var(--accent) }
.mback-sp { height: 21px }
.mmemo { padding: 8px 0 6px; border-top: 1px solid var(--line) }
.mmemo span { font-size: 15px; color: var(--muted) }
.mmemo p { margin: 4px 0 0; white-space: pre-wrap; font-size: 15px }
.mmrow { margin: 12px 0 0; font-size: 13px; color: var(--muted) }
.mmnone { margin: 4px 0 0; font-size: 13px }
.mmthumb.new { outline: 1px dashed color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: -1px }
.mmthumb { cursor: pointer }
.mprof .pmark .bg { fill: var(--deep) }
.mprof.edit .pmark { cursor: grab; touch-action: none }
.mprof.edit .pmark.drag { cursor: grabbing }
.rcpt > .mmemo { display: block }
/* while editing, the title with Save and Discard stays in sight */
.mdhead.editing { position: sticky; top: var(--topbar, 60px); z-index: 5; background: var(--bg); padding: 8px 0; margin: -8px 0 8px; border-bottom: 1px solid var(--line) }

/* dive page, three columns (owner's mock, 24 Nov 2026): card | profile and photos | details, the rest below */
.mdtop { align-items: flex-start }
.mdtt { min-width: 0 }
.mdive.mdgrid { grid-template-columns: auto minmax(0, 1fr) minmax(260px, 320px); grid-template-areas: "card mid side" "card mid acts"; grid-template-rows: auto 1fr; justify-content: stretch; gap: 28px; align-items: start }
.mdgrid > .mdcard { grid-area: card } .mdgrid > .mdmid { grid-area: mid; min-width: 0 } .mdgrid > .mdsidec { grid-area: side; min-width: 0 } .mdgrid > .mdacts { grid-area: acts; min-width: 0 }
.mdcard .mview, .mdcard .mplain { margin: 0 }
.mdmid > .msub:first-child, .mdsidec > .msub:first-child { margin-top: 0 }
.mdsidec .msub { margin-bottom: 8px }
.mdsidec .msub + .mdtrips { margin-top: 0 }
@media (max-width: 1180px) {
  .mdive.mdgrid { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "card side" "card mid" "card acts"; grid-template-rows: auto auto 1fr }
}
@media (max-width: 700px) {
  .mdive.mdgrid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "card" "side" "mid" "acts"; grid-template-rows: none }
}
.mdblock .msub:first-child { margin-top: 0 }
/* flex, so a long value (Time 09:24–10:10) widens its own card instead of running out of it */
.mdstats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px }
.mdstats span { display: flex; flex-direction: column; gap: 3px; padding: 9px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); flex: 1 1 96px }
.mdstats i { font: 500 10.5px var(--mono); font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: var(--muted) }
.mdstats b { font-size: 18px; font-weight: 700; white-space: nowrap }
.mdstats b.c, .mdstats .c b { color: var(--coral) }
@media (max-width: 520px) { .mdstats:has(> :nth-child(4)) > span { flex-basis: 40% } }
/* viewing, the profile comes before the trips and memo */
@media (max-width: 1180px) { .mdive.mdgrid.viewing:not(.mdtripg) { grid-template-areas: "card mid" "card side" "card acts" } }
@media (max-width: 700px) { .mdive.mdgrid.viewing:not(.mdtripg) { grid-template-areas: "card" "mid" "side" "acts" } }
/* the card's miniatures wrap inside the card's width instead of widening the column */
.mdacts { display: flex; flex-direction: column; align-items: flex-start; gap: 18px }
.mdacts .mdblock { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; width: 100% }
.mdacts .mdblock > .msub { margin: 0 }
.mdacts .medit { margin: 0 }
.mdacts .mddel > * { margin: 0 }
.mdmemo { margin: 8px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.5 }
/* trip page: the photos of each dive under its name */
.mtghead { display: flex; align-items: baseline; gap: 8px; width: 100%; min-height: 0; margin: 14px 0 6px; padding: 0; border: 0; background: none; color: var(--fg); font: inherit; font-size: 14px; text-align: left; cursor: pointer }
.mtghead:first-of-type { margin-top: 0 }
.mtghead span { color: var(--muted); font-size: 13px }
.mtghead:hover b { color: var(--accent) }
.mtown { position: relative }
.mtown .mmthumb { width: 100% }
.mtx { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; min-height: 0; padding: 0; border: 0; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; display: grid; place-items: center; cursor: pointer }
.mtx svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round }
.mdtripg .mfield { display: flex; flex-direction: column; gap: 6px; margin-bottom: 6px }
.mtgal { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px }
.mnums { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 0 10px }
.munit { position: relative; display: block }
.munit input { width: 100%; padding-right: 38px; -moz-appearance: textfield }
.munit input::-webkit-inner-spin-button, .munit input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0 }
.munit > span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 13px; pointer-events: none }
.mnums .l { white-space: nowrap }
.mdbox { border: 1px solid var(--line); border-radius: 12px; background: var(--sunk); padding: 12px }
.mdbox .mform { margin-top: 0 }
.mdbox .rcpt { margin-top: 12px; background: none }
.mdsidec .mwhen { grid-template-columns: 1fr 1fr }
.mdsidec .mwhen > :first-child { grid-column: 1 / -1 }
/* edit: Save and Discard with the progress line under them */
.mdeditcol { display: flex; flex-direction: column; align-items: flex-end; gap: 6px }
.mdprog { display: flex; flex-direction: column; align-items: flex-end; gap: 2px }
.mdprog[hidden] { display: none }
.mdprog svg { width: 150px; height: 22px; overflow: visible }
.mdprog .tr { fill: none; stroke: var(--line); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round }
.mdprog .ln { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; transition: stroke-dashoffset .3s }
.mdprog .hd { fill: var(--coral) }
.mdprog .t { font-size: 13px; color: var(--muted) }
.mdprog.err .t { color: var(--warn) }
.mdmsg { display: none }
/* edit: drop spots */
.mmhint { margin: 4px 0 0; font-size: 13px }
.mmset { margin-top: 8px; border-radius: 12px; border: 1px dashed transparent; padding: 2px 6px 8px; margin-inline: -6px; transition: background .15s, border-color .15s }
.mmset .mmrow { margin-top: 6px }
body.dd-on .mmset { border-color: color-mix(in srgb, var(--accent) 45%, transparent) }
.mmset.over { background: color-mix(in srgb, var(--accent) 14%, transparent); border-color: var(--accent) }
.mmempty { grid-column: 1 / -1; display: grid; place-items: center; height: 64px; border-radius: 10px; border: 1px dashed var(--line); font-size: 13px; color: var(--muted) }
.mprof.edit { border-radius: 12px; transition: background .15s }
.mprof.over { background: color-mix(in srgb, var(--accent) 10%, transparent); outline: 1px dashed var(--accent) }
.mview.mddrop { transition: box-shadow .15s }
body.dd-on .mview.mddrop { box-shadow: 0 0 0 2px color-mix(in srgb, var(--gold) 60%, transparent) }
.mview.mddrop.over { box-shadow: 0 0 0 4px var(--gold) }
.mmedia .mmthumb { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none }
.mmthumb .cardtag { position: absolute; left: 4px; bottom: 4px; padding: 1px 6px; border-radius: 999px; background: var(--gold); color: #06202f; font: 700 10px var(--mono); letter-spacing: .06em; text-transform: uppercase }
.ddghost { position: fixed; left: 0; top: 0; z-index: 200; width: 60px; height: 60px; border-radius: 12px; overflow: hidden; pointer-events: none; box-shadow: 0 10px 30px rgba(0,0,0,.5); outline: 2px solid var(--accent); background: var(--deep) }
.ddghost img { width: 100%; height: 100%; object-fit: cover; display: block }
.ddghost .n { position: absolute; right: 3px; top: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #06202f; font: 700 11px/18px var(--body); text-align: center }
body.dd-on { -webkit-user-select: none; user-select: none; cursor: grabbing }
/* the trip page keeps the dives before the photos when the columns stack */
/* every part has a place, or the grid adds columns of its own and squeezes the rest (phones, 25 Nov 2026) */
@media (max-width: 1180px) { .mdive.mdgrid.mdtripg { grid-template-areas: "card mid" "card side" "card acts"; grid-template-rows: auto auto 1fr } }
@media (max-width: 700px) {
  .mdive.mdgrid.mdtripg { grid-template-areas: "card" "mid" "side" "acts"; grid-template-rows: none }
  /* the card in the middle of the screen, its miniatures under it */
  .mdgrid > .mdcard { justify-self: center; width: min(100%, 340px) }
  .mdgrid > .mdcard .mview, .mdgrid > .mdcard .mplain { margin-inline: auto }
  /* editing a trip on a phone: the form first (the card doesn't change while editing) */
  .mdtripg.editing > .mdcard { display: none }
}
@media (min-width: 1181px) { .mdive.mdgrid.mdtripg { grid-template-columns: auto minmax(0, 1fr) minmax(280px, 1fr) } }
/* trip page edit: the name field above the dive list */
.mdtripg .tripform .tdh:first-of-type { margin-top: 18px }
.mdtripg .tripform .tlist { max-height: 420px }

/* under the open file on a dive or trip page: what it is, and its Download (25 Nov 2026) */
.mcap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; width: 100% }
.mcapt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 200px }
.mcapt b { font: 700 15px var(--body); color: var(--fg) }
.mcapt span { font-size: 13px; color: var(--muted); line-height: 1.4 }
.mcapa { display: flex; flex-wrap: wrap; gap: 8px }
/* the Make block: each button with a line on what it makes */
.mmk .mkrow { display: flex; flex-direction: column; align-items: flex-start; gap: 4px }
.mmk .mkrow .hint { margin: 0; font-size: 13px }
.gal .galdl[hidden] { display: none }
@media (max-width: 720px) { .mcap { max-width: 360px; margin-inline: auto } }

/* 25 Nov 2026 (owner's round): the caption under the open file wraps inside the card's width instead of widening the
   column, with Download under the words */
.mdcard .mcap { width: 0; min-width: 100%; flex-direction: column; align-items: flex-start; flex-wrap: nowrap }
.mdcard .mcapt { flex: none; width: 100% }
/* Create: a clear heading with a line, then each button with what it makes */
.mmk { gap: 14px }
.mcreate { display: flex; align-items: center; gap: 14px; width: 100%; margin: 0; font: 700 17px var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--fg) }
.mcreate::after { content: ''; flex: 1; height: 1px; background: var(--line) }
.mmk .mkrow { width: 100% }
.mmk .mkrow + .mkrow { border-top: 1px solid var(--line); padding-top: 14px }
.mmk .mkrow .mtnote { color: var(--gold) }
/* Delete at the very bottom of a dive's or trip's page */
.mdfoot { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line) }
.mdfoot .mdel { margin: 0 }
/* editing photos: × to remove, a star for the card's photo */
.mmgrid .mtx { top: 3px; right: 3px; width: 20px; height: 20px }
.mmgrid .mtx svg { width: 12px; height: 12px }
.mtstar { position: absolute; left: 3px; bottom: 3px; width: 22px; height: 22px; min-height: 0; padding: 0; border: 0; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; display: grid; place-items: center; cursor: pointer }
.mtstar svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round }
.mtstar.on { background: var(--gold); color: #06202f; cursor: default }
.mtstar.on svg { fill: currentColor }
/* putting a dive in a trip while editing: the trips it isn't in are outlined */
.mdtrip svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; margin-right: 4px; flex: none }
.mdtrip { display: inline-flex; align-items: center }
.mdtrip.off { color: var(--muted); border-color: var(--line); border-style: dashed }
.mdtrip.off:hover { color: var(--accent) }
/* the photo on a trip's card: its dives' photos to tap, then one from the device */
.tpick { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; text-transform: none; letter-spacing: 0 }
.tpgrid { display: grid; grid-template-columns: repeat(auto-fill, 58px); gap: 6px; width: 100%; max-height: 200px; overflow-y: auto }
.tptile { position: relative; width: 58px; height: 58px; min-height: 0; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: var(--deep); cursor: pointer; outline: 2px solid transparent; outline-offset: -2px }
.tptile img { width: 100%; height: 100%; object-fit: cover; display: block }
.tptile.on { outline-color: var(--accent); outline-width: 3px; outline-offset: -3px }
.tpup { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 1.5px dashed var(--line); background: transparent; color: var(--muted); font-size: 10px; font-weight: 600; line-height: 1.1; text-align: center }
.tpup svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round }
.tpnone[hidden] { display: none }
.tpnone, .tripform .tpnone { font-size: 13px; padding-block: 8px; min-height: 32px }
/* the card column takes the card's width (a story card at the viewer's height), so the caption under it wraps inside it */
@media (min-width: 721px) { .mdgrid > .mdcard { width: calc(max(340px, calc(100svh - 290px)) * 9 / 16) } }
/* phones: the × and star and the text links get room for a finger */
@media (max-width: 720px) {
  .mmedia .mmgrid:has(.mtown) { grid-template-columns: repeat(auto-fill, 78px) }
  .mmgrid .mtx, .mtstar { width: 28px; height: 28px }
  .mmgrid .mtx svg { width: 14px; height: 14px } .mtstar svg { width: 15px; height: 15px }
  .acct .mback, .acct .mdfoot .mdel, .mback, .mdfoot .mdel, .mtghead { padding-block: 8px; min-height: 30px }
}

/* the files of a dive or trip, one at a time: swiped on a phone, arrows inside on a computer (25 Nov 2026) */
.mview.mslides { position: relative; width: 100%; aspect-ratio: 9 / 16; max-height: max(340px, calc(100svh - 290px)) }
.mtrack { display: flex; width: 100%; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain }
.mtrack::-webkit-scrollbar { display: none }
.mslide { position: relative; flex: 0 0 100%; height: 100%; scroll-snap-align: start; padding: 0; min-height: 0; border: 0; border-radius: 0; background: #000; cursor: zoom-in }
.mslide img, .mslide video, .mview.mslides .mslide img { display: block; width: 100%; height: 100%; max-height: none; object-fit: contain; pointer-events: none }
.mplay { position: absolute; z-index: 1; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(0,0,0,.5); display: grid; place-items: center }
.mplay svg { width: 26px; height: 26px; fill: #fff; margin-left: 4px }
.mnav { position: absolute; top: 50%; width: 40px; height: 40px; margin-top: -20px; min-height: 0; padding: 0; border: 0; border-radius: 50%; background: rgba(2,16,25,.6); color: #fff; display: grid; place-items: center; cursor: pointer; z-index: 1 }
.mnav[hidden] { display: none }
.mnav:hover { background: rgba(2,16,25,.85) }
.mnav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round }
.mprev { left: 8px } .mnext { right: 8px }
.mdots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; pointer-events: none }
.mdots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.45); box-shadow: 0 0 3px rgba(0,0,0,.5) }
.mdots span.on { background: #fff; width: 18px; border-radius: 4px }
/* under it: the name with its download icon, then what it is */
.mviewer .mcap { flex-direction: column; align-items: flex-start; gap: 2px; flex-wrap: nowrap }
.mcaph { display: flex; align-items: center; gap: 8px; flex-wrap: wrap }
.mcaph b { font: 700 16px var(--body); color: var(--fg) }
.iconbtn.icononly { width: 36px; height: 36px; min-height: 0; padding: 0; justify-content: center; display: inline-grid; place-items: center }
.iconbtn.icononly svg { margin: 0 }
.mcapd { font-size: 13px; color: var(--muted); line-height: 1.4 }
/* Delete: coral, at the bottom right */
.mdfoot { display: flex; justify-content: flex-end }
.acct .mdfoot .mdel, .mdfoot .mdel { color: var(--coral) }
/* a trip's page: the card | the dives and their photos | Create; editing: the card | name and dives | photos and the
   card's photo. Each dive's photos are one row that scrolls sideways, about five in sight. */
.mdive.mdgrid.mdtripg { grid-template-columns: auto minmax(0, 1fr) minmax(280px, 340px); grid-template-areas: "card mid side"; grid-template-rows: auto }
.mdtripg > .mdacts, .mdtripg > .mdsidec { grid-area: side; min-width: 0 }
@media (max-width: 1180px) {
  .mdive.mdgrid.mdtripg { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "card side" "card mid"; grid-template-rows: auto 1fr }
  .mdive.mdgrid.mdtripg.editing { grid-template-areas: "card mid" "card side" }
}
@media (max-width: 720px) { .mdive.mdgrid.mdtripg, .mdive.mdgrid.mdtripg.editing { grid-template-columns: minmax(0, 1fr); grid-template-areas: "card" "mid" "side"; grid-template-rows: none } }
.mtmedia { min-width: 0 }
.mtmedia > .msub { margin-top: 26px }
.mtgal.strip { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: calc((100% - 24px) / 5); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; padding-bottom: 4px }
.mtgal.strip > * { scroll-snap-align: start }
@media (max-width: 720px) { .mtgal.strip { grid-auto-columns: 30% } }
.mdtpick { width: 100% }
.mdtpick .tlist { max-height: 260px }
.mmnote { margin: 8px 0 0; font-size: 13px }
@media (max-width: 720px) { .mview.mslides { max-height: none } }
/* the download under the viewer: a small oval, like the site's other buttons (owner, 26 Nov 2026) */
.iconbtn.icononly { width: auto; height: 28px; padding: 0 12px; border-radius: 999px; display: inline-flex; align-items: center }
.iconbtn.icononly svg { width: 15px; height: 15px }
/* a trip's gallery: a dive's name, date and Open dive, then its card, videos and photos in two rows that scroll */
.tghead { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 8px }
.tghead b { font-size: 15px } .tghead span { color: var(--muted); font-size: 13px }
.tggo { margin-left: 6px; display: inline-flex; align-items: center; gap: 2px; min-height: 0; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: none; color: var(--accent); font: 600 13px var(--body); cursor: pointer; align-self: center }
.tggo svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round }
.tggo:hover { border-color: var(--accent) }
.tgstrip { display: grid; grid-auto-flow: column dense; grid-template-rows: repeat(2, 76px); grid-auto-columns: 76px; gap: 6px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--line) 80%, transparent) transparent }
.tgtile { position: relative; width: 76px; height: 76px; min-height: 0; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: var(--deep); cursor: zoom-in }
.tgtile.tall { grid-row: span 2; width: 88px; height: 158px }
.tgstrip { grid-auto-columns: auto; justify-content: start }
.tgtile img, .tgtile video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none }
.tgtile .play { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: rgba(0,0,0,.5); display: grid; place-items: center; z-index: 1 }
.tgtile .play svg { width: 13px; height: 13px; fill: #fff; margin-left: 2px }
.mdacts .mtmedia { width: 100% }
.mdacts .mtmedia > .msub { margin-top: 0 }
.mdacts .mtmedia .hint { margin: 0 0 8px }
@media (max-width: 720px) { .tgstrip { grid-template-rows: repeat(2, 70px) } .tgtile { width: 70px; height: 70px } .tgtile.tall { width: 82px; height: 146px } }
/* ---------- the start screen (26 Nov 2026): the Dive log and a dive video, side by side, stacked on phones ---------- */
.qdrop.qstart { max-width: 1040px }
.qboxes { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: stretch }
.qbox { display: flex; flex-direction: column; gap: 14px; padding: 22px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); min-width: 0 }
.qbh { margin: 0; font: 800 22px/1.15 var(--display); font-stretch: 112% }
.qbk { display: block; margin-bottom: 6px; font: 600 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent) }
.qvidbox .qzone { flex: 1; min-height: 260px }
.qlogart { width: 100%; height: auto; max-height: 150px; border-radius: 16px; background: linear-gradient(#0b3a55, #06202f); padding: 10px 6px }
.qlogart .g { stroke: rgba(255,255,255,.08); stroke-width: 1.5; fill: none }
.qlogart .l { stroke: #4fd6cb; stroke-width: 4; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: qlogdraw 2.4s .2s ease-out forwards }
.qlogart .m { fill: #e8f4f6; stroke: #4fd6cb; stroke-width: 3; opacity: 0; animation: qlogpop .3s ease-out forwards }
.qlogart .m:nth-of-type(2) { animation-delay: 1.1s } .qlogart .m:nth-of-type(3) { animation-delay: 1.5s } .qlogart .m:nth-of-type(4) { animation-delay: 1.9s }
.qlogart .d { fill: #ff6b6b }
@keyframes qlogdraw { to { stroke-dashoffset: 0 } }
@keyframes qlogpop { from { opacity: 0; transform: scale(.4); transform-box: fill-box; transform-origin: center } to { opacity: 1; transform: none; transform-box: fill-box; transform-origin: center } }
@media (prefers-reduced-motion: reduce) { .qlogart .l { animation: none; stroke-dashoffset: 0 } .qlogart .m { animation: none; opacity: 1 } }
.qbl { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.45 }
.qlogbtns { display: flex; flex-direction: column; gap: 8px; margin-top: auto }
.qlb { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; background: transparent; color: var(--fg); text-align: left; cursor: pointer; font: inherit }
.qlb:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, transparent) }
.qlb svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round }
.qlb span { display: flex; flex-direction: column; gap: 2px; min-width: 0 }
.qlb b { font-size: 15px } .qlb small { color: var(--muted); font-size: 12.5px }
.qstart .qdraft { margin: 0 }
@media (max-width: 760px) {
  .qboxes { grid-template-columns: minmax(0, 1fr); gap: 14px }
  .qbox { padding: 16px; border-radius: 20px }
  .qvidbox .qzone, .qdrop .qvidbox .qzone { min-height: 180px }
  .qlogart { max-height: 110px }
}
/* short screens (a laptop at 125%): both boxes fit without a scroll, the draft offer included */
@media (min-width: 761px) and (max-height: 800px) {
  .qbox { padding: 18px; gap: 12px }
  .qlogart { max-height: 104px }
  .qlb { min-height: 48px; padding: 6px 14px }
  .qlogbtns { gap: 6px }
}
body:has(.studio.q-drop) #appHead { max-width: 1040px; margin-left: auto; margin-right: auto }

/* ---- Sort your photos (sort.js): a full-screen pop-up on computers ---- */
.askdlg button.gold { background: var(--gold); color: var(--gold-fg); border-color: var(--gold); font-weight: 700 }
.sortbtn.mem { color: var(--gold); border-color: color-mix(in srgb, var(--gold) 55%, transparent) }
.sortbtn .lk { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2 }
@media (pointer: coarse), (max-width: 899px) { .sortbtn { display: none !important } }
.sortdlg { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--bg); color: var(--fg); overflow-y: auto; overflow-x: hidden }
.sortdlg::backdrop { background: var(--bg) }
.sbanner { position: absolute; inset: 0 0 auto; height: 420px; pointer-events: none;
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 45%, transparent), var(--bg) 96%), linear-gradient(90deg, color-mix(in srgb, var(--bg) 45%, transparent), transparent 50%), url(/img/sort-banner.jpg) center 40% / cover }
.sinner { position: relative; max-width: 1760px; margin: 0 auto; padding: 28px clamp(24px, 4vw, 80px) 48px; box-sizing: border-box }
.sback { color: var(--accent); text-decoration: underline; font-size: 15px }
.shead { display: flex; align-items: center; gap: 16px; margin-top: 10px }
.shead h1 { margin: 0; font: 700 clamp(32px, 3vw, 46px)/1.1 var(--body) }
.spill { font: 700 12px var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--gold); border: 2px solid var(--gold); border-radius: 999px; padding: 4px 12px }
.ssub { margin: 10px 0 0; color: var(--muted); font-size: 18px }
.sgrid { display: grid; grid-template-columns: minmax(320px, 5fr) 7fr; gap: clamp(32px, 4vw, 72px); margin-top: 32px; align-items: start }
.sstage { position: sticky; top: 24px; height: min(640px, calc(100dvh - 220px)); min-height: 440px; display: flex; flex-direction: column }
.sdrop { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; border: 2px dashed color-mix(in srgb, var(--muted) 60%, transparent); border-radius: 24px; background: color-mix(in srgb, var(--surface) 80%, transparent); padding: 24px; transition: border-color .15s, background .15s }
.sortdlg.hot .sdrop { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface)) }
.sdt { margin: 0; font: 700 26px var(--body) }
.sdn { margin: 0; color: var(--muted) }
.sdbtns { display: flex; gap: 10px; margin-top: 16px }
.sdrop .ferr { max-width: 340px; margin-top: 14px }
.spile { position: relative; flex: 1 }
.spic { position: absolute; box-sizing: border-box; border: 5px solid #fff; border-radius: 6px; background: #fff; box-shadow: 0 8px 22px rgba(0, 0, 0, .45); transform: rotate(var(--r)); overflow: hidden }
.sfly .spic { position: fixed }
.spic img { width: 100%; height: 100%; object-fit: cover; display: block }
.spic.clip::after, .srtile.clip::after { content: ''; pointer-events: none; position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px; border-radius: 50%; background: rgba(0, 0, 0, .45) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7v10l8-5z' fill='white'/%3E%3C/svg%3E") center / 18px no-repeat }
.snopic { display: grid; place-items: center; width: 100%; height: 100%; background: var(--sunk); color: var(--muted); font: 600 11px var(--mono) }
.sfly { position: fixed; inset: 0; pointer-events: none; z-index: 5 }
.sstat { margin: 14px 0 0; text-align: center; font: 700 20px var(--body); font-variant-numeric: tabular-nums }
.skick { margin: 0 0 12px; font: 700 13px var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted) }
.srows { display: flex; flex-direction: column; gap: 14px; min-width: 0 }
.srow { border: 2px solid var(--line); border-radius: 18px; background: color-mix(in srgb, var(--surface) 92%, transparent); padding: 16px 20px }
.srow.in { animation: srin .45s ease-out both }
.srow.unm { background: color-mix(in srgb, var(--sunk) 80%, transparent) }
.srow.flash { animation: srflash .35s ease-out }
@keyframes srin { from { opacity: 0; transform: translateY(18px) } }
@keyframes srflash { from { border-color: var(--brand2) } }
.srhead { display: grid; grid-template-columns: 100px minmax(160px, 1fr) calc(var(--sn, 8) * 70px - 8px); align-items: center; gap: 20px }
@media (max-width: 1199px) {
  .srhead { grid-template-columns: 84px minmax(0, 1fr); gap: 10px 16px }
  .srstrip { grid-column: 1 / -1 }
  .srprof { width: 84px !important }
}
.srprof { display: block; width: 100px; height: 56px; border-radius: 10px; background: var(--sunk); padding: 6px; box-sizing: border-box }
.srprof svg { display: block; width: 100%; height: 100%; overflow: visible }
.srprof polyline { fill: none; stroke: var(--brand2); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke }
.srprof circle { fill: var(--coral) }
.srq { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto; border: 2px solid var(--muted); border-radius: 50%; color: var(--muted); font: 700 24px var(--body) }
.srt { display: flex; flex-direction: column; min-width: 0 }
.srt b { font-size: 20px; line-height: 1.25 }
.srt small { color: var(--muted); font-size: 14px }
.srcnt { margin-top: 4px; min-height: 20px; color: var(--brand2); font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums }
.srow.unm .srcnt { color: var(--muted) }
.srwarn { color: var(--warn) }
.srkept { color: var(--muted) }
.srstrip { display: flex; gap: 8px; min-height: 62px }
.srtile, .srplus { position: relative; flex: none; width: 62px; height: 62px; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: var(--sunk); cursor: pointer }
.srview { display: block; width: 100%; height: 100%; padding: 0; min-height: 0; border: 0; border-radius: 0; background: none; cursor: zoom-in }
.srview:disabled { cursor: default }
.srtile img { width: 100%; height: 100%; object-fit: cover; display: block }
.srow.unm .srtile img { opacity: .55 }
.srtile.off img { opacity: .3 }
/* kept: a green tick in the corner; left out: an empty ring (tap it to change) */
.srchk { position: absolute; right: 3px; bottom: 3px; z-index: 2; width: 24px; height: 24px; min-height: 0; padding: 0; border: 2px solid #fff; border-radius: 50%; background: rgba(0, 0, 0, .45); cursor: pointer }
.srchk[aria-pressed="true"] { border-color: var(--ok); background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%2304212a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat }
.srview:focus-visible, .srchk:focus-visible, .srplus:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px }
.srplus { color: var(--fg); font: 700 16px var(--body) }
.sracts { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 20px; margin-top: 10px }
.srmore { font-size: 14px; text-align: left }
.sracts .srmore:only-child:not(.srpick) { margin-right: auto }
.srow.open .srstrip { display: none }
.srmore.srpick { color: var(--warn); text-decoration: underline }
.pulse { animation: spulse .5s ease-out 2 }
@keyframes spulse { 50% { opacity: .35 } }
.scancel { align-self: center; margin-top: 12px }
/* review: the picture large on the left, the dive's miniatures on the right */
.sgrid.review { grid-template-columns: minmax(0, 3fr) minmax(360px, 2fr) }
.srev { flex: 1; display: flex; flex-direction: column; gap: 12px; min-height: 0 }
.srvtop { display: flex; align-items: center; justify-content: space-between; gap: 12px }
.srvt { display: flex; align-items: baseline; gap: 12px; min-width: 0 }
.srvt b { font-size: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.srvn { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap }
.srvtop .primary { min-width: 110px; border-radius: 999px }
.srvpic { flex: 1; min-height: 0; display: grid; place-items: center; border-radius: 16px; background: rgba(0, 0, 0, .35); overflow: hidden }
.srvpic img { max-width: 100%; max-height: 100%; object-fit: contain; display: block }
/* a clip fills the box (sized from its own small first frame it came out tiny) */
.srvpic video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000 }
.srbox.hot { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent) }
.srtile[draggable="true"] { cursor: grab }
.srtile.dragging { opacity: .4 }
.srvbar { display: flex; align-items: center; justify-content: center; gap: 14px }
.srvnav { width: 46px; height: 46px; min-height: 0; padding: 0; border-radius: 50%; display: grid; place-items: center }
.srvnav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round }
.srvkeep { min-width: 180px; padding: 11px 22px; border-radius: 999px; border: 1px solid rgba(255,255,255,.6); background: rgba(0,0,0,.35); color: #fff; font: 600 16px var(--body) }
.srvkeep.on { border-color: var(--ok); color: var(--ok) }
.srvkeep.on::before { content: '✓ ' }
.srvkeep:disabled { opacity: .6; cursor: default }
.srtile.cur { outline: 3px solid var(--accent); outline-offset: 2px }
.sagain { margin-top: 10px; min-width: min(360px, 100%); padding: 12px 28px; border-radius: 999px; font-size: 16px }
.srall { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 8px; padding: 4px }
/* an open dive: its boxes scroll inside it, not the page */
.srsel { margin-top: 12px; max-height: min(460px, calc(100dvh - 330px)); overflow-y: auto; scrollbar-width: thin; display: flex; flex-direction: column; gap: 12px; padding-right: 4px }
.srbox { border: 1px solid var(--line); border-radius: 14px; padding: 10px 10px 8px; background: color-mix(in srgb, var(--ok) 5%, transparent) }
.srbox.out { background: transparent; border-style: dashed }
.srboxh { display: flex; align-items: baseline; gap: 10px; margin: 0 4px 6px; font-size: 14px }
.srboxh span { color: var(--muted); font-variant-numeric: tabular-nums }
.srnone { color: var(--muted); font-size: 14px; padding: 18px 4px }
.srhead.tap { cursor: pointer }
/* the tick column: a clear box (the browser's own was hard to see on the dark rows) */
.sbox { appearance: none; -webkit-appearance: none; width: 26px; height: 26px; margin: 0; flex: none; border: 2px solid #fff; border-radius: 7px; background: transparent; cursor: pointer; display: grid; place-items: center }
.sbox:checked, .sbox:indeterminate { background: var(--accent); border-color: var(--accent) }
.sbox:checked::after { content: ''; width: 7px; height: 13px; border: solid var(--accent-fg); border-width: 0 3px 3px 0; transform: translateY(-2px) rotate(45deg) }
.sbox:indeterminate::after { content: ''; width: 12px; height: 3px; border-radius: 2px; background: var(--accent-fg) }
.sbox:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px }
.srhead.ticks { grid-template-columns: 26px 100px minmax(160px, 1fr) calc(var(--sn, 8) * 70px - 8px) }
@media (max-width: 1199px) { .srhead.ticks { grid-template-columns: 26px 84px minmax(0, 1fr) } }
.skickr { display: flex; align-items: flex-end; gap: 22px; padding-left: 22px; margin-bottom: 12px }
.skickr .skick { margin: 0 0 2px }
.sall { display: grid; justify-items: center; gap: 6px; cursor: pointer; font: 700 11px var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-left: -18px; width: 62px; white-space: nowrap }
.sdives { margin: 10px 0 0; font-weight: 700 }
.sdives.none { color: var(--warn) }
.srow.skip .srprof, .srow.skip .srt small, .srow.skip .srcnt, .srow.skip .srstrip, .srow.skip .srsel, .srow.skip .srpick, .srow.skip .sracts { opacity: .4 }
.srfold { display: inline-flex; align-items: center; gap: 4px }
.srfold svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s }
.srfold.up svg { transform: rotate(180deg) }
.ssum { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding-top: 40px }
.scheck { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--brand2); margin-bottom: 12px }
.scheck svg { width: 40px; height: 40px; fill: none; stroke: var(--accent-fg); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round }
.ssum h2 { margin: 0; font: 700 44px/1.15 var(--body) }
.sbig { margin: 4px 0 0; font-size: 20px }
.smut { margin: 0; color: var(--muted); font-size: 16px }
.swarn { margin: 4px 0 0; color: var(--warn); font-size: 15px; max-width: 420px }
.sroom { margin-top: 18px }
.sbar { display: flex; width: min(420px, 100%); height: 8px; border-radius: 4px; background: var(--line); overflow: hidden }
.sbar i { background: var(--muted) }
.sbar i.new { background: var(--brand2) }
.ssave { margin-top: 22px; min-width: min(360px, 100%); padding: 14px 28px; border-radius: 999px; font-size: 18px }
.sprog { width: min(420px, 100%); margin-top: 24px; --p: 0 }
.sprog svg { width: 100%; height: 28px; overflow: visible }
.sprog path { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round }
.sprog .bg { stroke: var(--line) }
.sprog .fg { stroke: var(--accent); stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--p)); transition: stroke-dashoffset .3s }
.sline { margin: 4px 0 8px; font-weight: 600 }
.ssum .ferr { margin-top: 12px; max-width: 440px }
