:root {
  --bg: #08131f;
  --bg2: #0d1d2e;
  --card: #10243a;
  --line: #1d3a57;
  --ink: #e6eef6;
  --mute: #8aa3bb;
  --acc: #2ec4b6;
  --acc2: #f2b134;
  --fox: #ff8a3d;
  --fox2: #e5602a;
  --go: #2fbf71;
  --marg: #e6b422;
  --no: #e05252;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --sans: 'IBM Plex Sans', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font: 15px/1.45 var(--sans); -webkit-text-size-adjust: 100%; overscroll-behavior: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.top { display: flex; align-items: center; justify-content: space-between; padding: calc(10px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left)); border-bottom: 1px solid var(--line); background: var(--bg2); }
.top-right { display: flex; align-items: center; gap: 12px; }
.brand { font-weight: 600; letter-spacing: .02em; display: flex; align-items: center; gap: 8px; }
.brand img.mark { width: 24px; height: 24px; border-radius: 6px; display: block; }
.brand .mark { color: var(--acc); }
.badge { font: 12px var(--mono); color: var(--mute); }
.badge.mock { color: var(--acc2); }

.auth-screen { position: fixed; inset: 0; display: grid; place-items: center; background: var(--bg); z-index: 1000; padding: 16px; }
.auth-screen.hidden { display: none; }
.auth-card { width: 100%; max-width: 360px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.auth-card h1 { font-size: 18px; margin: 0 0 4px; }
.auth-card .mark { color: var(--acc); }
.auth-card h1 { display: flex; align-items: center; gap: 10px; }
.auth-card img.mark { width: 40px; height: 40px; border-radius: 10px; }
.auth-card p.muted { font-size: 13px; margin: 0 0 16px; }
.auth-card form { margin-top: 8px; }

/* Header + map/panel as a column that exactly fills the screen, whatever the header's height
   (it grows by the notch / Dynamic Island inset on an iPhone home-screen app). */
#appRoot:not(.hidden) { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
.top { flex: 0 0 auto; }
.layout { display: grid; grid-template-rows: 42vh minmax(0, 1fr); flex: 1 1 auto; min-height: 0; overflow: hidden; }
@media (min-width: 900px) { .layout { grid-template-columns: minmax(0, 1fr) 480px; grid-template-rows: minmax(0, 1fr); } }

.mapwrap { position: relative; min-height: 0; }
#map { position: absolute; inset: 0; background: #0a1a2a; }
.leaflet-control-attribution { font-size: 9px !important; max-width: 60%; }
.maptools { position: absolute; left: 10px; top: 86px; z-index: 500; display: flex; gap: 10px; align-items: center; background: rgba(8,19,31,.85); padding: 6px 10px; border-radius: 8px; font-size: 13px; }
.maptools { flex-direction: column; align-items: flex-start; gap: 4px; }
.maptools label { display: flex; gap: 4px; align-items: center; cursor: pointer; }
.hint { color: var(--acc2); font-size: 12px; }

.panel { overflow-y: auto; border-left: 1px solid var(--line); background: var(--bg); min-height: 0; }
.tabs { position: sticky; top: 0; z-index: 10; display: flex; background: var(--bg2); border-bottom: 1px solid var(--line); }
.tabs button { flex: 1; padding: 11px 2px; font-size: 14px; background: none; border: 0; color: var(--mute); cursor: pointer; border-bottom: 2px solid transparent; }
.tabs button.on { color: var(--ink); border-bottom-color: var(--acc); }
.view { padding: 14px 16px 6px; }
.hidden { display: none !important; }

.controls, .card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-bottom: 12px; }
.card h3 { margin: 0 0 8px; font-size: 15px; }
.row { margin-bottom: 10px; }
.row > label, .split label { display: block; font-size: 12px; color: var(--mute); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .05em; }
.split { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.split > div { flex: 1 1 90px; min-width: 0; }
.split .end { text-align: right; }
input, select, textarea { width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 7px 8px; }
input[type=checkbox], input[type=radio] { width: auto; }
button { background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 7px 10px; cursor: pointer; }
button:hover { border-color: var(--acc); }
button.primary { width: 100%; background: var(--acc); color: #04201d; border: 0; font-weight: 600; padding: 10px; }
button.danger { color: var(--no); }
button.small { padding: 3px 8px; font-size: 13px; }
#btnLocate.on { background: #1e90ff; border-color: #1e90ff; color: #fff; }
.bar-override { margin-top: 6px; display: grid; grid-template-columns: 1fr 90px; gap: 4px 8px; align-items: center; color: var(--ink); }
.bar-override label { margin: 0; }
.bar-override .muted { grid-column: 1 / -1; font-size: 11px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); font-size: 13px; cursor: pointer; user-select: none; }
.chip.on { background: rgba(46,196,182,.15); border-color: var(--acc); color: var(--acc); }
.chips.radio label { display: flex; gap: 5px; align-items: center; font-size: 13px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 999px; }

.banner { border-radius: 8px; padding: 9px 11px; margin-bottom: 10px; font-size: 14px; }
.banner.warn { background: rgba(242,177,52,.12); border: 1px solid rgba(242,177,52,.4); color: #f6cf7d; }
.banner.bad { background: rgba(224,82,82,.12); border: 1px solid rgba(224,82,82,.45); color: #f39a9a; }
.banner.info { background: rgba(46,196,182,.08); border: 1px solid rgba(46,196,182,.3); color: #9be4dc; }

.meta { display: flex; gap: 14px; flex-wrap: wrap; font: 13px var(--mono); color: var(--mute); margin-bottom: 10px; }
.meta b { color: var(--ink); font-weight: 600; }

.strip { display: grid; grid-template-columns: repeat(17, 1fr); gap: 2px; margin: 6px 0 14px; }
.strip div { height: 34px; border-radius: 3px; font: 10px var(--mono); display: flex; flex-direction: column; align-items: center; justify-content: center; color: #06131f; }
.strip .go { background: var(--go); } .strip .marg { background: var(--marg); } .strip .no { background: var(--no); }
.strip span { opacity: .8; }

.stop { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.stop:first-child { border-top: 0; }
.num { width: 26px; height: 26px; border-radius: 50%; background: var(--acc); color: #04201d; font-weight: 600; display: grid; place-items: center; font-size: 13px; }
.stop .t { font: 13px var(--mono); color: var(--acc2); }
.stop .n { font-weight: 600; }
.stop .d { font-size: 13px; color: var(--mute); }
.score { font: 600 15px var(--mono); }
.bar { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; margin-top: 4px; width: 64px; }
.bar i { display: block; height: 100%; background: var(--acc); }

table.hours { width: 100%; border-collapse: collapse; font: 12px var(--mono); }
table.hours th { text-align: left; color: var(--mute); font-weight: 400; padding: 4px 3px; border-bottom: 1px solid var(--line); position: sticky; top: 42px; background: var(--bg); }
table.hours td { padding: 5px 3px; border-bottom: 1px solid rgba(29,58,87,.5); vertical-align: top; }
table.hours tr.nogo td { color: #7a8796; }
table.hours tr.nogo td:first-child { border-left: 3px solid var(--no); }
table.hours tr.go td:first-child { border-left: 3px solid var(--go); }
table.hours tr.marg td:first-child { border-left: 3px solid var(--marg); }
.lt { font-size: 10px; color: var(--mute); }

.spot { padding: 10px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 6px; }
.spot .n { font-weight: 600; cursor: pointer; }
.spot .d { font-size: 13px; color: var(--mute); }
.zone { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 999px; margin-top: 3px; color: #071421; }
.facerow { display: flex; gap: 6px; margin-bottom: 6px; }
.facerow input { flex: 1; }

.loglist .e { padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; display: grid; grid-template-columns: 1fr auto; }
.disclaimer { font-size: 11px; color: var(--mute); padding: 6px 16px 18px; }
.muted { color: var(--mute); }
.leaflet-container { font: 13px var(--sans); }
/* Map markers — see the palette note above pinIcon in app.js. Shapes carry the meaning so nothing
   relies on colour alone; moorings keep the circle + their QPWS band colours. */
.pin { width: 14px; height: 14px; margin: -7px 0 0 -7px; } /* Leaflet positions markers absolutely — don't override */
.pin.mine::before, .pin.shared::before, .pin.sugg::before { content: ''; position: absolute; inset: 1px; transform: rotate(45deg); border: 2px solid #08131f; border-radius: 2px; background: #ff4fd8; }
.pin.shared::before { background: #b197fc; }
.pin.sugg::before { background: rgba(8,19,31,.35); border-color: #ff4fd8; box-shadow: 0 0 0 1px #08131f; }
.pin.launch { width: 16px; height: 16px; margin: -8px 0 0 -8px; background: #fff; border: 2px solid #08131f; border-radius: 3px; }
.pin.launch-off { width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; background: #c9d6e3; border: 1.5px solid #08131f; border-radius: 2px; opacity: .85; }
.pin.num-pin { width: auto; height: 24px; margin: -12px 0 0 -12px; }
.pin.num-pin b { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 4px; border-radius: 12px; background: #fff; color: #08131f; border: 3px solid #ff4fd8; box-shadow: 0 0 0 1px #08131f; font: 700 11px var(--mono); }
.pin.num-pin svg { width: 13px; height: 13px; }
.pin.moor { width: 18px; height: 18px; margin: -9px 0 0 -9px; }
.pin.moor b { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; border: 1.5px solid #08131f; }
.pin.moor svg { width: 12px; height: 12px; }
.pin.terr { width: 16px; height: 15px; margin: -9px 0 0 -8px; background: #08131f; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.pin.terr b { position: absolute; inset: 3px 2.5px 1.5px; clip-path: polygon(50% 0, 100% 100%, 0 100%); }

.cand { display: grid; grid-template-columns: 14px 1fr auto; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); align-items: start; }
.cand .dot, .legend .dot { width: 12px; height: 12px; border-radius: 50%; margin-top: 4px; display: inline-block; }
.dot.tri { border-radius: 0; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.cand .n { font-weight: 600; text-transform: capitalize; }
.cand .d { font-size: 13px; color: var(--mute); }
.cand .acts { display: flex; flex-direction: column; gap: 4px; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 13px; margin-bottom: 8px; }
.legend span { display: flex; gap: 5px; align-items: center; }
.tag { font-size: 11px; padding: 1px 6px; border-radius: 4px; background: rgba(242,177,52,.15); color: var(--acc2); margin-left: 4px; }
.cpop b { text-transform: capitalize; }
.cpop button { margin-top: 6px; background: var(--acc); color: #04201d; border: 0; }

.blend-multiply { mix-blend-mode: multiply; }
.leaflet-container img.leaflet-tile { mix-blend-mode: normal; } /* see the tile-seam note in app.js */
.leaflet-control-layers { background: rgba(8,19,31,.92); color: var(--ink); border: 1px solid var(--line) !important; }
.leaflet-control-layers-expanded { padding: 8px 10px; font-size: 13px; max-height: 60vh; overflow-y: auto; }
.leaflet-control-layers-separator { border-top-color: var(--line); }

.stop[data-stop] { cursor: pointer; border-radius: 6px; }
.stop[data-stop]:hover { background: rgba(46,196,182,.06); }
.stop.sel { background: rgba(46,196,182,.12); }
.stop .acts { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.stop.home .num { background: #fff; }

.coord { font: 12px var(--mono); color: var(--acc); margin-top: 3px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.leaflet-popup-content .coord { color: #0b6b62; }
.plan-actions { display: flex; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }

/* Observed-now card (BOM stations) */
.obs { padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 13px; }
.obs:last-child { border-bottom: 0; }
.obs .strip { grid-template-columns: repeat(6, 1fr); margin: 6px 0 2px; }
.obs .hot { color: var(--marg); }

/* Weather tab */
.wlist { padding: 0; overflow: hidden; }
.wrow { display: grid; grid-template-columns: 6px 88px 30px 1fr; gap: 10px; align-items: center; padding: 10px 10px 10px 0; border-bottom: 1px solid rgba(255,255,255,.08); cursor: pointer; }
.wrow:last-child { border-bottom: 0; }
.wbar { align-self: stretch; border-radius: 0 3px 3px 0; background: #555; }
.wbar.go { background: var(--go); } .wbar.marg { background: var(--marg); } .wbar.no { background: var(--no); }
.wwind { font-size: 14px; } .wwind b { font-size: 20px; }
.wmid .n { font-size: 15px; } .wmid .d { font-size: 12px; opacity: .85; margin-top: 2px; }
.wobs { display: inline-block; margin-right: 8px; padding: 1px 6px; border-radius: 3px; background: rgba(46,196,182,.15); }
.warr { display: inline-block; font-size: 12px; line-height: 1; }
.wdetail { padding: 6px 10px 12px 16px; border-bottom: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); }
.wdetail .d { font-size: 13px; margin: 4px 0; }
.wdetail .acts { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.wroute { display: grid; grid-template-columns: 46px 1fr auto; gap: 8px; padding: 5px 0; font-size: 13px; border-bottom: 1px solid rgba(255,255,255,.06); }
.wroute .t { font-family: var(--mono); opacity: .8; }
.got { color: var(--go); } .margt { color: var(--marg); } .not { color: var(--no); }
#wResults .cand { padding: 6px 0; }
/* High/low tide rows in the Weather tab's hourly table */
.hours tr.tide-high td { box-shadow: inset 0 2px 0 #4cc9f0, inset 0 -2px 0 #4cc9f0; background: rgba(76,201,240,.10); }
.hours tr.tide-low td { box-shadow: inset 0 2px 0 #e9c46a, inset 0 -2px 0 #e9c46a; background: rgba(233,196,106,.10); }
.hours tr.tide-high td b.tm, .hours tr.tide-high .tl { color: #4cc9f0; }
.hours tr.tide-low td b.tm, .hours tr.tide-low .tl { color: #e9c46a; }
.hours b.tm { font-size: 14px; font-weight: 700; }
.hours .tl { font-size: 10px; letter-spacing: .03em; }
.mclass { display: inline-block; width: 10px; height: 10px; border-radius: 50%; border: 1px solid #08131f; vertical-align: middle; }
.tripday h3 .muted { font-weight: normal; font-size: 13px; }

/* Data explainer */
.about p, .about li { font-size: 13px; line-height: 1.5; }
.about ol, .about ul { margin: 6px 0 0; padding-left: 18px; }
.about li { margin-bottom: 5px; }
.srctable { width: 100%; border-collapse: collapse; font-size: 12px; }
.srctable th { text-align: left; color: var(--mute); font-weight: 500; padding: 4px 6px 6px 0; border-bottom: 1px solid var(--line); }
.srctable td { vertical-align: top; padding: 6px 6px 6px 0; border-bottom: 1px solid var(--line); }
.srctable td:first-child { width: 30%; color: var(--ink); }
.srctable td:last-child { width: 22%; color: var(--mute); }
.mapkey { display: grid; gap: 8px; font-size: 13px; }
.mapkey span { display: flex; align-items: center; gap: 6px; }
.mapkey span.wrap { flex-wrap: wrap; }
.mapkey .dot { width: 12px; height: 12px; display: inline-block; margin-top: 0; }
.disclaimer a { color: var(--acc); display: inline-block; margin-top: 4px; }
@media (max-width: 520px) { .srctable td:last-child { display: none; } .srctable th:last-child { display: none; } }
.mapkey i { flex-shrink: 0; }

/* Sky icons (Weather tab) */
.wsky { display: grid; place-items: center; }
svg.sky { display: block; }
td.skycell svg.sky { margin-bottom: 1px; }

/* Fishing grounds editor */
.glist { display: grid; }
.grow { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.grow.off .gname { opacity: .45; }
.gname .d { font-size: 12px; color: var(--mute); margin-top: 2px; }
.gname .pos { color: var(--acc); } .gname .neg { color: var(--no); } .warnc { color: var(--acc2); }
.gtag { font-size: 10px; padding: 1px 6px; border-radius: 8px; background: rgba(255,79,216,.18); color: #ff9be9; vertical-align: middle; }
.gadj { display: flex; align-items: center; gap: 4px; font: 600 13px var(--mono); }
.gadj span { min-width: 38px; text-align: center; }
.gadj button { min-width: 28px; }
.gsw { position: relative; width: 36px; height: 20px; display: inline-block; }
.gsw input { opacity: 0; width: 0; height: 0; }
.gsw span { position: absolute; inset: 0; background: #2a3a4c; border-radius: 10px; transition: background .15s; cursor: pointer; }
.gsw span::before { content: ''; position: absolute; width: 16px; height: 16px; left: 2px; top: 2px; background: #c9d6e3; border-radius: 50%; transition: transform .15s; }
.gsw input:checked + span { background: var(--acc); }
.gsw input:checked + span::before { transform: translateX(16px); background: #fff; }
.gsw input:disabled + span { opacity: .5; cursor: default; }
.gsugg { margin-top: 10px; font-size: 12px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* Map focus (⤢): phone keeps just the tab bar under the map; computer hides the side panel */
.mapfull-btn { position: absolute; right: 10px; top: 64px; z-index: 800; width: 40px; height: 40px; border-radius: 10px; font-size: 20px; line-height: 1; padding: 0;
  background: rgba(8,19,31,.88); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 2px 8px rgba(0,0,0,.35); }
body.mapfull .layout { grid-template-rows: minmax(0, 1fr) auto; }
body.mapfull .panel > :not(#tabs) { display: none; }
body.mapfull .panel { overflow: hidden; border-top: 1px solid var(--line); }
@media (min-width: 900px) {
  body.mapfull .layout { grid-template-columns: minmax(0, 1fr) 0; grid-template-rows: minmax(0, 1fr); }
  body.mapfull .panel { display: none; }
}
/* Map tools: collapsed to Track me + ⋯ on a phone */
.mt-more { display: none; }
@media (max-width: 899px) {
  .mt-more { display: inline-block; }
  .maptools:not(.open) > label, .maptools:not(.open) > #btnSaveOffline { display: none; }
}

/* iPhone home-screen app: keep clear of the notch/Dynamic Island (header) and the home indicator
   (bottom of the panel — in map focus that's the tab bar), and stop iOS zooming into inputs. */
.panel { padding-bottom: env(safe-area-inset-bottom); }
.mapwrap .leaflet-control-attribution { margin-right: env(safe-area-inset-right) !important; }
@media (max-width: 899px) { input, select, textarea { font-size: 16px; } }
.top { gap: 12px; }
.brand { white-space: nowrap; }
@media (max-width: 520px) { #meInfo { display: none; } }

/* watched plans */
#watchBox:empty { display: none; }
.walert ul { margin: 6px 0 8px 18px; padding: 0; font-size: 13px; }
.walert li { margin: 2px 0; }
.watchlist { border: 1px solid var(--line, rgba(255,255,255,.12)); border-radius: 8px; margin-bottom: 10px; font-size: 13px; }
.watchlist > div { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 9px; }
.watchlist > div + div { border-top: 1px solid var(--line, rgba(255,255,255,.08)); }
button.small.on { border-color: var(--acc, #2ec4b6); color: var(--acc, #2ec4b6); }

/* reef names: faint chart-style lettering over the reef */
.leaflet-reefLabels-pane { pointer-events: none; }
.reef-label { pointer-events: none; }
.reef-label span { position: absolute; transform: translate(-50%, -50%); white-space: nowrap; font-family: var(--sans);
  font-style: italic; font-weight: 600; letter-spacing: .06em; color: rgba(255,255,255,.62);
  text-shadow: 0 0 3px rgba(0,20,40,.9), 0 0 1px rgba(0,20,40,.9); }
.reef-label.isl span { font-style: normal; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,240,200,.55); }

/* map tools box never grows across the map; hints wrap and can be tapped away */
.maptools { max-width: min(280px, calc(100% - 96px)); }
.maptools .hint { white-space: normal; line-height: 1.3; }
.maptools .hint:empty { display: none; }
#mapHint { cursor: pointer; }
#mapHint:not(:empty)::after { content: ' ✕'; color: var(--mute); }

/* wind overlay */
.windbar { position: absolute; left: 10px; right: 10px; bottom: 22px; z-index: 800; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  background: rgba(8,19,31,.88); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; font-size: 13px; }
.windbar.hidden { display: none; }
.windbar select { width: auto; padding: 4px 6px; font-size: 13px; }
.windbar input[type=range] { flex: 1 1 120px; min-width: 100px; }
.windbar b { font-family: var(--mono); min-width: 3.2em; }
.windkey { display: flex; align-items: center; gap: 3px; font-size: 11px; color: var(--mute); }
.windkey i { display: inline-block; width: 12px; height: 8px; border-radius: 2px; }
@media (max-width: 520px) { .windkey { display: none; } .windbar { bottom: 26px; } .windbar select, .windbar input { font-size: 16px; } }
.leaflet-wind-pane canvas { pointer-events: none; }

/* sailing passage plans */
.sailtab tr.motor td { color: var(--mute); }
.sailtab td { vertical-align: top; }
#v-sail details summary { cursor: pointer; margin: 6px 0; }

.pin.anch b { display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 6px; background: #13294b; border: 1.5px solid #fff; color: #fff; font-size: 12px; line-height: 1; box-shadow: 0 1px 3px rgba(0,0,0,.6); }
td.warn b { color: #f6cf7d; } td.bad b { color: #f39a9a; }

#sailInbox:empty { display: none; }
.inbox .unseen { background: rgba(46,196,182,.08); }
.sendform { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; width: 100%; margin-top: 6px; }
.sendform select, .sendform input { width: auto; flex: 1 1 140px; padding: 5px 8px; }

/* sign-in / approval screens — OceanFox brand */
.auth-screen { background: radial-gradient(120% 80% at 50% 0%, #14506e 0%, #0b2a40 45%, #06111c 100%); overflow: hidden; }
.auth-sea { position: absolute; left: 0; right: 0; bottom: 0; height: 32vh; pointer-events: none; }
.auth-sea svg { width: 100%; height: 100%; display: block; }
.auth-wrap { position: relative; width: 100%; max-width: 380px; display: flex; flex-direction: column; align-items: stretch; gap: 18px; }
.auth-brand { text-align: center; }
.auth-brand img { width: 88px; height: 88px; border-radius: 22px; box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.auth-brand h1 { margin: 12px 0 4px; font-size: 30px; font-weight: 600; letter-spacing: .01em; color: var(--ink); }
.auth-brand p { margin: 0 auto; max-width: 320px; color: #a9bfd3; font-size: 14px; line-height: 1.45; }
.auth-screen .auth-card { background: rgba(16,36,58,.82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-color: rgba(46,196,182,.25); border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,.35); }
.auth-foot { text-align: center; color: #7f93a8; font-size: 12px; margin: 0; }
button.primary.fox { background: linear-gradient(180deg, var(--fox), var(--fox2)); border-color: var(--fox2); color: #1a0d05; font-weight: 600; }
button.primary.fox:hover { filter: brightness(1.06); }
@media (max-height: 640px) { .auth-brand img { width: 64px; height: 64px; } .auth-brand h1 { font-size: 24px; } .auth-foot { display: none; } }
.auth-screen .auth-card .row.split button { width: 100%; height: 42px; }
.auth-foot { position: relative; z-index: 1; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
