/* Visual source: Neptune NP2K development, current data-workspace UI, 19 October 2026. */
@font-face{font-family:Montserrat;src:url('/fonts/montserrat-400.ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:Montserrat;src:url('/fonts/montserrat-500.ttf') format('truetype');font-weight:500;font-style:normal;font-display:swap}
:root{--paper:#f5f7fb;--card:#fff;--surface:#edf1f8;--ink:#101b30;--muted:#536176;--blue:#245cfa;--blue-hover:#1649da;--line:#dfe5ef;--focus:#245cfa;--success:#13834b;--danger:#bc3040;--unknown:#667185;--tint:#e7eeff;--diagram:#dce9f0;--notice:#7a4a00;--on-blue:#fff;--nav:#101b30;--nav-muted:#b0bed3;--teal:#006d73;--energy:#885b00;--tank:#165d43;color-scheme:light}
:root[data-theme=night]{--paper:#080000;--card:#150404;--surface:#210808;--ink:#f77979;--muted:#da7777;--blue:#f16b6b;--blue-hover:#ff8989;--line:#582626;--focus:#ff9999;--success:#f16b6b;--danger:#f16b6b;--unknown:#d16d6d;--tint:#300c0c;--diagram:#110202;--notice:#ef8585;--on-blue:#100202;--nav:#1f0505;--nav-muted:#d16d6d;--teal:#f77979;--energy:#f77979;--tank:#f77979;color-scheme:dark}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:15px/1.5 Montserrat,"Helvetica Neue",Arial,sans-serif;-webkit-font-smoothing:antialiased}button,input,select{font:inherit}button,a,input,select,summary{touch-action:manipulation;-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:var(--blue);text-decoration:none;text-underline-offset:4px}a:hover{text-decoration:underline}button:disabled{opacity:.45;cursor:default}button,a{transition:background .16s,color .16s}input,select{width:100%;min-height:48px;border:1px solid var(--line);border-radius:12px;padding:12px;background:var(--card);color:var(--ink);caret-color:var(--blue)}input::placeholder{color:var(--muted)}input[type=checkbox]{width:24px;min-height:24px;flex:0 0 24px;accent-color:var(--blue)}:focus-visible{outline:3px solid var(--focus);outline-offset:3px}::selection{background:var(--tint);color:var(--ink)}[hidden]{display:none!important}h1,h2,h3,p{margin:0}h1,h2,h3{font-weight:700;letter-spacing:-.03em;line-height:1.2}h2{font-size:30px}h3{font-size:19px}p{max-width:70ch}.icon{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.icon-defs{position:absolute;width:0;height:0}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.skip{position:fixed;top:8px;left:8px;background:var(--card);padding:12px;z-index:2000;transform:translateY(-150%)}.skip:focus{transform:none}
.primary,.secondary{min-height:48px;padding:12px 18px;border-radius:14px;display:inline-flex;align-items:center;justify-content:center;gap:10px;font-weight:700;font-size:14px;border:0}.primary{background:var(--blue);color:var(--on-blue)}.primary:hover{background:var(--blue-hover);text-decoration:none}.secondary{background:var(--surface);color:var(--ink)}.secondary:hover{background:var(--tint);text-decoration:none}.secondary[aria-pressed=true]{background:var(--tint);color:var(--blue)}.icon-button{display:grid;place-items:center;min-width:44px;height:44px;border:0;border-radius:50%;background:var(--surface);color:var(--ink)}.icon-button:hover{background:var(--tint);text-decoration:none}.error{color:var(--danger);font-size:13px;min-height:20px}.subtle{font-size:13px;color:var(--muted);line-height:1.7}.text-link{display:flex;align-items:center;min-height:48px;gap:12px;font-size:14px;font-weight:500}.edit-button{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:8px 12px;border:0;border-radius:12px;background:var(--surface);color:var(--ink);font-size:13px;font-weight:700}.edit-button .icon{width:17px;height:17px}.edit-button[aria-pressed=true]{background:var(--ink);color:var(--card)}
#app{max-width:1100px;margin:auto;padding:0 20px calc(110px + env(safe-area-inset-bottom));min-height:100dvh}.app-header{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:76px;padding-top:env(safe-area-inset-top)}.brand,.wordmark{display:inline-flex;align-items:center;gap:8px;font-size:22px;font-weight:700;letter-spacing:-.04em;color:var(--ink);min-height:44px}.brand:hover,.wordmark:hover{text-decoration:none}.brand-mark{width:24px;height:26px;fill:none;stroke:var(--blue);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}.product-label{font-size:11px;letter-spacing:0;font-weight:500;color:var(--muted);padding-left:8px;border-left:1px solid var(--line)}.header-actions{display:flex;align-items:center;gap:12px}.demo-label{font-size:11px;font-weight:500;color:var(--notice)}.menu-trigger[aria-current=page]{color:var(--on-blue);background:var(--blue)}.boat-bar{padding:8px 0 0}.boat-bar h1{font-size:14px;letter-spacing:0;font-weight:500;color:var(--muted);overflow-wrap:anywhere}main{outline:none}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0 20px}.connection-error{padding:14px;color:var(--danger);border:1px solid var(--danger);background:var(--card);border-radius:14px;font-size:13px;margin-top:12px}
.bottom-nav{position:fixed;bottom:calc(14px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(260px,calc(100% - 40px));display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:7px;gap:8px;z-index:1000;background:var(--nav);border-radius:32px}.nav-link{min-height:48px;display:grid;place-items:center;color:var(--nav-muted);border-radius:25px}.nav-link:hover{background:var(--surface);color:var(--ink);text-decoration:none}.nav-link[aria-current=page]{background:var(--card);color:var(--blue)}.nav-link .icon{width:24px;height:24px;stroke-width:2.4}

/* Phone ocean map: summary above a clear vector canvas. */
#map-page .map-toolbar{display:flex;flex-direction:column;align-items:stretch;gap:8px;width:auto;max-width:420px;right:max(12px,env(safe-area-inset-right));pointer-events:none}
#map-page .map-toolbar>*{pointer-events:auto}
#map-page .map-summary{width:100%;padding:18px 18px 16px;border:0;border-radius:16px;background:#f7faff;color:var(--ink,#10263e)}
#map-page .map-summary-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
#map-page .map-summary h2{margin:0;font-size:21px;line-height:1.25;font-weight:500;letter-spacing:-.025em}
#map-page .map-summary-header p{margin:6px 0 0;color:var(--muted);font-size:12px;line-height:1.4}
#map-page .map-summary-main{display:flex;align-items:center;gap:14px;margin:12px 0 16px}
#map-page #map-summary-value{display:block;font-size:36px;line-height:1;letter-spacing:-.035em;font-weight:500;font-variant-numeric:tabular-nums}
#map-page #map-summary-label{margin:7px 0 0;font-size:13px;line-height:1.35;color:var(--muted)}
#map-page #map-summary-glyph{display:grid;place-items:center;width:44px;flex-shrink:0;color:var(--blue)}
#map-page #map-summary-glyph svg{width:36px;height:36px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
#map-page .map-summary-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
#map-page .map-summary-metrics span{display:block;margin-bottom:5px;font-size:11px;color:var(--muted)}
#map-page .map-summary-metrics strong{font-size:14px;font-weight:500;font-variant-numeric:tabular-nums}
#map-page #map-carousel{width:100%;min-width:0;margin:0;padding:0 0 4px;scrollbar-width:none;gap:6px;mask-image:linear-gradient(to right,#000 calc(100% - 12px),transparent)}
#map-carousel::-webkit-scrollbar{display:none}
#map-page .map-toolbar .place-tab,#map-page .map-toolbar .place-add{border:0;min-height:44px;background:#f7faff;padding:10px 14px;flex-shrink:0;font-size:12px}
#map-page .map-toolbar .place-add{display:grid;place-items:center;width:44px;min-width:44px;height:44px;padding:10px;border-radius:50%;color:var(--blue)}
#map-page .place-add svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}
#map-page .map-toolbar .place-tab.selected{background:var(--blue);color:#fff}
#map-page .map-toolbar .map-icon,#map-page .map-icon,#map-page .map-fab{width:48px;height:48px;min-height:48px;flex-shrink:0;border:0;display:grid;place-items:center;padding:12px;background:#eaf2ff;color:var(--blue);cursor:pointer;border-radius:50%}
#map-page .map-icon svg,#map-page .map-fab svg,#map-page .map-layers svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#map-page .map-fab{position:absolute;z-index:800;right:max(12px,env(safe-area-inset-right));bottom:calc(var(--map-nav-height) + 14px);width:56px;height:56px;background:#f7faff;color:var(--blue)}
#map-page .map-fab[aria-pressed=true]{background:var(--blue);color:#fff}
#map-page .map-layer-control{position:absolute;z-index:850;top:auto;left:auto;right:max(16px,env(safe-area-inset-right));bottom:calc(var(--map-nav-height) + 82px);max-width:none}
#map-page .map-layers{position:static;display:flex;flex-direction:column;align-items:stretch;gap:8px;width:auto;max-width:none;margin:0;padding:0;background:transparent;border:0;border-radius:0;overflow:visible}
#map-page .map-layers button{display:grid;place-items:center;width:48px;height:48px;min-width:48px;min-height:48px;padding:12px;border:0;border-radius:50%;background:#f7faff;color:var(--blue)}
#map-page .map-layers button[aria-pressed=true]{background:var(--blue);color:#fff}
#map-page .map-layers button:active,#map-page .map-fab:active{transform:scale(.94)}
#map-page .map-dock{left:max(12px,env(safe-area-inset-left));right:84px;bottom:calc(var(--map-nav-height) + 12px);width:auto;max-width:420px;padding:6px 10px;border:0;border-radius:12px;overflow:visible;background:#f7faff}
#map-page .map-time{display:grid;grid-template-columns:1fr 36px;grid-template-rows:20px 32px;column-gap:4px;row-gap:0}
#map-page .map-time label{grid-column:1;grid-row:1;font-size:11px;padding-left:2px;align-items:center;min-width:0;white-space:nowrap}
#map-page .map-time input{grid-column:1;grid-row:2;min-height:32px;max-height:32px;padding:0;border:0;background:transparent}
#map-page .map-time #map-refresh{grid-column:2;grid-row:1/3;width:36px;height:44px;min-height:44px;padding:8px;background:transparent;align-self:center}
#map-page .leaflet-top.leaflet-left{top:12px;right:12px;left:auto}
#map-page .leaflet-control-zoom{display:none}
#map-page .leaflet-bottom.leaflet-right{bottom:calc(var(--map-nav-height) + 78px);right:auto;left:12px;max-width:calc(100% - 96px)}
#map-page .leaflet-control-attribution{float:left;font-size:9px!important;padding:2px 4px;border-radius:4px;max-width:100%;line-height:1.5;background:#f7faffee!important}
#map-page .map-reading{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:0;background:transparent;border:0;border-radius:0;color:#124db5;font-size:14px;font-weight:500}
#map-page .map-reading svg{width:28px;height:28px;stroke-width:2}
body:has(#map-page:not([hidden])) nav [data-page=settings]{display:none}
body:has(#map-page:not([hidden])) #connection{display:none!important}
.settings-page{max-width:720px;margin:0 auto}.settings-page>.section{padding:22px 0}.settings-page>.section>h2{margin-bottom:16px}.settings-page .marine-readings{grid-template-columns:1fr 1fr}.settings-page .fishing-directory>summary{min-height:48px;cursor:pointer;padding:12px 0;color:var(--blue)}
.fishing-spot-dialog{width:calc(100% - 24px);max-width:480px;max-height:85dvh;overflow:auto;padding:24px}.fishing-spot-dialog h2{font-size:23px;margin-top:0}.fishing-spot-dialog p{font-size:14px;line-height:1.6}.spot-coordinates{font-variant-numeric:tabular-nums;color:var(--muted)}.fishing-spot-dialog summary{min-height:44px;padding:12px 0;cursor:pointer;color:var(--blue)}.fish-species{border-bottom:1px solid var(--line)}.fish-species figure{margin:16px 0}.fish-species img{display:block;max-width:100%;height:auto;border-radius:10px}.fish-species figcaption{font-size:11px;line-height:1.7;margin-top:8px;color:var(--muted)}.spot-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}.spot-actions button{min-height:44px}.spot-actions .primary{width:100%}
.fishing-map-pin{display:grid!important;place-items:center;background:transparent;border:0}.fishing-map-pin span{display:grid;place-items:center;width:28px;height:28px;background:#f7faff;border:2px solid var(--spot-colour);border-radius:50%;color:var(--spot-colour)}.fishing-map-pin svg{width:19px;height:19px;stroke:currentColor;stroke-width:1.6;fill:none}.fishing-map-pin:focus-visible{outline:3px solid #1759e8;outline-offset:0;border-radius:50%}
@media(min-width:900px) and (hover:hover) and (pointer:fine){#map-page .leaflet-control-zoom{display:block}}
@media(max-height:740px){#map-page .map-summary{padding:14px 16px}#map-page .map-summary-main{margin:10px 0 12px}#map-page #map-summary-value{font-size:30px}#map-page .map-layers{gap:6px}#map-page .map-layers button{width:44px;height:44px;min-width:44px;min-height:44px;padding:10px}#map-page .map-layer-control{right:18px}}
@media(max-width:360px){#map-page .map-summary h2{font-size:19px}#map-page #map-summary-value{font-size:30px}#map-page .map-summary-metrics strong{font-size:13px}.fishing-spot-dialog{padding:20px}}
@media(max-height:500px) and (orientation:landscape){#map-page .map-toolbar{max-width:330px}#map-page .map-summary{padding:12px 16px}#map-page .map-summary-main{margin:6px 0}#map-page .map-summary-metrics{display:none}#map-page .map-layer-control{bottom:calc(var(--map-nav-height) + 82px);right:16px}#map-page .map-layers{display:grid;grid-template-columns:repeat(3,44px);gap:6px}}

/* NP2K data tiles, shared visual primitives. */
.data-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.data-tile{position:relative;display:flex;flex-direction:column;min-width:0;min-height:168px;padding:18px 16px;background:var(--card);border-radius:22px;border:2px solid transparent;--value-color:var(--ink);scroll-margin-top:20px}.tile-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:6px;min-width:0}.tile-heading h3{font-size:12px;font-weight:500;line-height:1.5;letter-spacing:0;overflow-wrap:anywhere;max-width:100%}.dashboard-grid .tile-heading{padding-right:18px}.tile-value{display:flex;flex-wrap:wrap;align-items:baseline;gap:3px 5px;font-size:39px;line-height:1.15;letter-spacing:-.04em;font-weight:700;font-variant-numeric:tabular-nums;margin:14px 0 16px;color:var(--value-color);overflow-wrap:anywhere;min-width:0}.tile-value small{font-size:12px;letter-spacing:0;font-weight:500}.tile-value.compact{font-size:26px}.tile-value.extra-compact{font-size:20px}.category-navigation{--value-color:var(--blue)}.category-environment{--value-color:var(--teal)}.category-energy{--value-color:var(--energy)}.category-tanks{--value-color:var(--tank)}.category-engine{--value-color:var(--ink)}.tile-freshness{display:flex;align-items:center;flex-wrap:wrap;gap:4px 5px;font-size:11px;color:var(--muted);margin-top:auto;line-height:1.5}.tile-freshness time{margin-left:auto}.tile-stale .tile-value{color:var(--muted)}.tile-open{position:absolute;inset:0;display:flex;align-items:flex-start;justify-content:flex-end;padding:16px;border-radius:inherit;color:var(--muted)}.tile-open .icon{width:17px;height:17px}.tile-open:hover{background:color-mix(in srgb,var(--blue) 4%,transparent)}.dashboard-grid>.data-tile:first-child{background:var(--blue);--value-color:var(--on-blue);color:var(--on-blue)}.dashboard-grid>.data-tile:first-child .tile-freshness,.dashboard-grid>.data-tile:first-child .tile-open{color:#e5edff}.dashboard-grid>.data-tile:first-child .freshness-dot.current{background:var(--on-blue)}.dashboard-grid>.data-tile:first-child.tile-stale{background:var(--surface);color:var(--ink)}.dashboard-grid>.data-tile:first-child.tile-stale .tile-freshness,.dashboard-grid>.data-tile:first-child.tile-stale .tile-open{color:var(--muted)}:root[data-theme=night] .dashboard-grid>.data-tile:first-child{background:var(--tint);--value-color:var(--ink);color:var(--ink)}:root[data-theme=night] .dashboard-grid>.data-tile:first-child .tile-freshness,:root[data-theme=night] .dashboard-grid>.data-tile:first-child .tile-open{color:var(--muted)}:root[data-theme=night] .dashboard-grid>.data-tile:first-child .freshness-dot.current{background:var(--blue)}


/* Neptune Go adapts the NP2K workspace without changing forecast truth. */
:root{font-family:Montserrat,"Helvetica Neue",Arial,sans-serif;background:var(--paper);color:var(--ink)}
*,*::before,*::after{box-shadow:none!important;text-shadow:none!important}
#app{background:var(--paper);padding-top:0;max-width:1100px}
.app-header{margin-bottom:0}.brand span.product-label{color:var(--muted);font-weight:500}.brand .brand-mark{stroke:var(--blue)}
.page-title{font-size:30px;font-weight:700;letter-spacing:-.03em;line-height:1.2;margin:12px 0 20px}
#app>.places-header{margin-top:8px;margin-bottom:12px}.place-carousel{gap:8px;scrollbar-color:var(--line) var(--paper)}
.place-tab,.place-add{min-height:44px;border:0;border-radius:14px;background:var(--card);color:var(--ink);font-size:12px;font-weight:500;padding:10px 14px}
.place-tab.selected{background:var(--blue);color:var(--on-blue)}.place-add{color:var(--blue)}
.island-picker{margin-bottom:0}.island-picker .page-title{margin-bottom:20px}
#refresh{font-size:12px;font-weight:700;color:var(--ink);padding:10px 12px;border-radius:12px;background:var(--surface);margin-bottom:10px}
#today{display:block}.hero{border-radius:22px;min-height:260px;padding:22px;background:var(--blue);color:var(--on-blue)}
.hero.unknown{background:var(--card);color:var(--ink)}.hero.caution{background:#fff1cc;color:#644500}.hero.poor{background:var(--danger);color:#fff}
.hero .eyebrow{display:none}.hero-middle{margin:18px 0;gap:14px}.hero #decision{font-size:clamp(30px,8.2vw,40px);font-weight:700;letter-spacing:-.035em;line-height:1.1;margin:0 0 10px}
#hero-date{font-size:12px;line-height:1.6}#hero-window{font-size:14px;line-height:1.55}.hero-bottom{gap:18px}.hero-bottom strong{font-size:39px;font-weight:700;letter-spacing:-.04em;line-height:1.15}.hero-bottom p{font-size:12px;line-height:1.6}
.hero .weather-icon{width:58px;height:58px;stroke-width:1.7;opacity:1}.hero-conditions{gap:6px;margin-bottom:18px}.hero-conditions span{border:0;font-size:11px;padding:5px 8px;background:#ffffff20;border-radius:9px}
.hero.caution .hero-conditions span{background:#ffffff70}.hero.unknown .hero-conditions span{background:var(--surface)}
.hourly{padding:22px 0 6px;gap:10px}.hour{font-size:12px;gap:9px}.hour strong{font-weight:700}.hour svg{width:25px;height:25px;color:var(--blue)}
.section{padding:26px 0;border:0}.section h2{font-size:18px;font-weight:700;margin-bottom:16px}.section-title{margin-bottom:16px}.section-title h2{margin-bottom:0}.section-title .text-button{font-size:12px}
.metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#metrics .metric{display:flex;flex-direction:column;align-items:stretch;gap:0;min-height:168px;padding:18px 16px;border-radius:22px;background:var(--card)}
#metrics .metric .tile-heading h3{font-size:12px;font-weight:500;line-height:1.5;letter-spacing:0;margin:0;padding-right:18px}
#metrics .metric .tile-value{display:flex;align-items:baseline;flex-wrap:wrap;gap:3px 5px;font-size:39px;font-weight:700;line-height:1.15;letter-spacing:-.04em;margin:14px 0 16px;color:var(--value-color);overflow-wrap:anywhere}
#metrics .metric .tile-value small{font-size:12px;font-weight:500;letter-spacing:0}#metrics .metric .tile-value.compact{font-size:23px;letter-spacing:-.03em;line-height:1.3}
#metrics .metric .tile-freshness{margin-top:auto;font-size:11px;line-height:1.5}
#metrics .metric:first-child{background:var(--blue);--value-color:var(--on-blue);color:var(--on-blue)}
#metrics .metric:first-child .tile-freshness,#metrics .metric:first-child .metric-open{color:#e5edff}
#metrics .metric:first-child .freshness-dot.current{background:var(--on-blue)}
#metrics .metric.tile-stale{--value-color:var(--muted)}#metrics .metric:first-child.tile-stale{background:var(--surface);color:var(--ink);--value-color:var(--muted)}
#metrics .metric:first-child.tile-stale .tile-freshness,#metrics .metric:first-child.tile-stale .metric-open{color:var(--muted)}
.metric-open{position:absolute;right:6px;top:6px;display:grid;place-items:center;width:44px;height:44px;padding:12px;border:0;border-radius:50%;background:none;color:var(--muted)}.metric-open .icon{width:17px;height:17px}.metric-open:hover{background:color-mix(in srgb,var(--blue) 5%,transparent)}
.tile-tools{display:none;gap:8px;margin-top:18px}.tile-tools button{display:grid;place-items:center;min-width:48px;height:48px;padding:10px;border:0;border-radius:12px;background:var(--surface);color:var(--ink)}.tile-tools .metric-drag{margin-right:auto;touch-action:none;cursor:grab}.tile-tools svg{width:20px;height:20px}.metrics.editing{grid-template-columns:minmax(0,1fr)}.metrics.editing .tile-tools{display:flex}.metrics.editing .metric-open{display:none}#metrics.editing .metric{min-height:0}.metric.dragging{opacity:.6}
.source-status-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:2px;margin-bottom:18px;background:var(--card);border-radius:16px;padding:0 8px}
.source-status-strip .status-item{min-height:48px;display:flex;align-items:center;justify-content:center;gap:6px;border:0;background:none;border-radius:12px;color:var(--muted);font-size:11px;font-weight:500;padding:6px 1px}.source-status-strip .status-item:hover{background:var(--surface)}
.status-dot,.freshness-dot{width:7px;height:7px;border-radius:50%;flex:0 0 7px;background:var(--danger)}.status-dot.on,.freshness-dot.current{background:var(--success)}.status-dot.unknown,.freshness-dot.unknown{background:transparent;border:1.5px dashed var(--unknown)}
.notice{background:var(--card);border:0;border-radius:22px;padding:20px;color:var(--ink)}.notice strong{color:var(--ink);font-weight:700;font-size:17px}.notice p{font-size:13px;color:var(--muted)}.window{border-radius:16px;background:var(--tint);color:var(--ink);padding:18px}.window strong{font-size:24px;font-weight:700;letter-spacing:-.03em}
.day{background:var(--card);border:0;border-radius:16px;min-height:68px;padding:16px;margin:8px 0;color:var(--ink);font-size:13px}.day:first-child{background:var(--tint)}.day strong{font-weight:700}.day .status{font-weight:500}.status{color:var(--blue)}.status.caution{color:var(--energy)}.status.poor{color:var(--danger)}.status.unknown{color:var(--muted)}
.connection{color:var(--notice);background:var(--card);border-radius:14px;padding:12px 14px;font-size:13px;margin-bottom:12px}.connection:empty{display:none}.muted,.footnote,footer{color:var(--muted)}
#app>nav.bottom-nav,body:has(#map-page:not([hidden])) #app>nav.bottom-nav{position:fixed;bottom:calc(14px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(192px,calc(100% - 40px));max-width:192px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:7px;gap:8px;z-index:1200;background:var(--nav);border:0;border-radius:32px}
#app>nav.bottom-nav .nav-link{min-height:48px;display:grid;place-items:center;padding:0;border-radius:25px;background:none;color:var(--nav-muted);text-decoration:none}
#app>nav.bottom-nav .nav-link[aria-current=page]{background:var(--card);color:var(--blue)}#app>nav.bottom-nav .nav-link svg{width:24px;height:24px;stroke-width:2.4}
/* Shared NP2K settings rows: quiet dividers, generous touch targets, plain labels. */
.settings-view{padding-top:16px}
.settings-view>.page-title{font-size:36px;letter-spacing:-.035em;margin:10px 0 34px}
.settings-list{border-top:1px solid var(--line)}
.settings-item,.settings-share{border:0;border-bottom:1px solid var(--line);background:transparent}
.settings-item>summary,.settings-share{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:78px;padding:20px 0;list-style:none;color:var(--ink);font-size:18px;font-weight:500;letter-spacing:-.02em}
.settings-share{width:100%;text-align:left;border-radius:0}
.settings-item>summary{cursor:pointer}
.settings-item>summary::-webkit-details-marker{display:none}
.settings-item>summary>svg,.settings-share>svg{width:20px;height:20px;flex:0 0 20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;color:var(--muted);transition:transform .18s ease-out}
.settings-share>span,.settings-item>summary>span{min-width:0;overflow-wrap:anywhere}
.settings-item[open]>summary>svg{transform:rotate(90deg);color:var(--blue)}
.settings-share:hover,.settings-item>summary:hover{color:var(--blue)}
.settings-content{padding:0 0 26px;max-width:560px}
.settings-content>p+p{margin-top:12px}
.settings-content>.check{display:flex;align-items:flex-start;gap:12px;min-height:48px;font-size:14px;line-height:1.7}
.settings-content>.footnote{font-size:13px;line-height:1.7;margin:12px 0}
.settings-content .fishing-directory{margin-top:20px}
@media(min-width:700px){.settings-view{padding-top:28px}.settings-view>.page-title{font-size:42px}.settings-item>summary,.settings-share{min-height:88px;font-size:20px}}
@media(prefers-reduced-motion:reduce){.settings-item>summary>svg{transition:none}}
.theme-button{color:var(--blue)}.theme-switch{position:relative;display:block!important;width:40px;height:24px;flex:0 0 40px;border-radius:14px;background:var(--line)}.theme-switch::after{content:'';position:absolute;left:3px;top:3px;width:18px;height:18px;border-radius:50%;background:var(--muted);transition:transform .16s}.theme-button[aria-pressed=true] .theme-switch{background:var(--tint)}.theme-button[aria-pressed=true] .theme-switch::after{background:var(--blue);transform:translateX(16px)}
.marine-readings{border-color:var(--line)}.marine-readings strong{color:var(--ink)}.fishing-directory{padding-top:12px}.fishing-directory>summary{color:var(--blue)}.fish-compare-bar{background:var(--paper)}.fishing-result{border-color:var(--line);color:var(--ink)}.fish-controls select,.place-dialog select,.fishing-preferences select{background:var(--card);color:var(--ink);border-color:var(--line)}
dialog{border:0;border-radius:22px;background:var(--paper);color:var(--ink)}dialog::backdrop{background:#0008}form label{font-size:14px}input:not([type=checkbox]),select,textarea{background:var(--card);color:var(--ink);border-color:var(--line);border-radius:12px;font-size:16px;min-height:48px}input:disabled{background:var(--surface);color:var(--muted)}fieldset{border-color:var(--line);border-radius:14px}.check input{width:24px;height:24px;accent-color:var(--blue)}
.primary,.secondary{border:0;border-radius:14px;font-weight:700;min-height:48px}.primary{background:var(--blue);color:var(--on-blue)}.secondary{background:var(--surface);color:var(--ink)}.text-button{color:var(--blue);font-weight:500}.text-button:hover,.icon-button:hover{background:var(--surface)}
#toast{border-radius:14px;background:var(--nav);color:var(--card);bottom:104px}.tide-chart text{fill:var(--muted)}.tide-chart .curve{stroke:var(--blue)}.tide-chart .required{stroke:var(--danger)}.tide-chart rect{fill:var(--blue)}
#map-page .map-summary{background:var(--card);color:var(--ink);border-radius:22px;padding:16px 18px 18px}
#map-page .map-summary-brand{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:16px}#map-page .map-summary-brand .brand{font-size:22px}#map-page .map-summary-brand .brand-mark{width:23px;height:25px}
#map-page .map-summary-brand .map-icon{width:44px;height:44px;min-height:44px;background:var(--surface);color:var(--ink);padding:10px}
#map-page .map-summary h2{font-size:15px;font-weight:500;color:var(--muted);letter-spacing:0}#map-page .map-summary-header p{font-size:11px;margin-top:4px}
#map-page #map-summary-value{font-size:39px;font-weight:700;color:var(--blue);letter-spacing:-.04em}#map-page #map-summary-label{font-size:12px}#map-page .map-summary-metrics strong{font-size:16px;font-weight:700}#map-page .map-summary-main{margin:12px 0 18px}#map-page #map-summary-glyph svg{stroke-width:2}
#map-page .map-toolbar .place-tab,#map-page .map-toolbar .place-add{background:var(--card);color:var(--ink);border-radius:14px}#map-page .map-toolbar .place-add{border-radius:50%;color:var(--blue)}#map-page .map-toolbar .place-tab.selected{background:var(--blue);color:var(--on-blue)}
#map-page .map-fab,#map-page .map-layers button{background:var(--card);color:var(--ink)}#map-page .map-fab[aria-pressed=true],#map-page .map-layers button[aria-pressed=true]{background:var(--blue);color:var(--on-blue)}#map-page .map-dock{background:var(--card);border-radius:20px}#map-page .map-reading{color:var(--blue);font-weight:700}#map-page .leaflet-control-attribution{background:var(--card)!important;color:var(--muted)}#map-page .leaflet-control-zoom a{background:var(--card);color:var(--blue)}.leaflet-popup-content-wrapper,.leaflet-popup-tip,.leaflet-tooltip{background:var(--card);color:var(--ink);border-color:var(--line)}
.fishing-map-pin span{background:var(--card)}.fishing-spot-dialog h2{font-weight:700}.fish-species{border-color:var(--line)}.spot-coordinates{color:var(--muted)}
:root[data-theme=night] .hero,:root[data-theme=night] .hero.caution,:root[data-theme=night] .hero.poor{background:var(--tint);color:var(--ink)}:root[data-theme=night] .hero.unknown{background:var(--card)}:root[data-theme=night] .hero-conditions span{background:var(--surface)}
:root[data-theme=night] #metrics .metric:first-child{background:var(--tint);--value-color:var(--ink);color:var(--ink)}:root[data-theme=night] #metrics .metric:first-child .tile-freshness,:root[data-theme=night] #metrics .metric:first-child .metric-open{color:var(--muted)}:root[data-theme=night] .category-navigation,:root[data-theme=night] .category-environment,:root[data-theme=night] .category-energy,:root[data-theme=night] .category-tanks{--value-color:var(--ink)}
:root[data-theme=night] #condition-map .maplibregl-canvas,:root[data-theme=night] #condition-map .leaflet-tile{filter:grayscale(1) sepia(1) saturate(8) hue-rotate(320deg) brightness(.28) contrast(1.6)}:root[data-theme=night] .fishing-map-pin span{border-color:var(--blue);color:var(--blue)}:root[data-theme=night] .fishing-result .section-title>span{color:var(--ink)}
@media(min-width:700px){.metrics{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}#metrics .metric{min-height:188px;padding:22px}#metrics .metric .tile-value{font-size:46px}#metrics .metric .tile-value.compact{font-size:26px}.hero{max-width:none;min-height:260px}#today{display:block}}
@media(max-width:360px){#app{padding-left:16px;padding-right:16px}.brand{font-size:19px;gap:6px}.brand-mark{width:21px}.metrics{gap:10px}#metrics .metric{padding:16px 12px;min-height:158px;border-radius:20px}#metrics .metric .tile-value{font-size:33px}#metrics .metric .tile-value.compact{font-size:21px}#metrics .metric .tile-heading h3{font-size:11px}.hero{padding:20px 18px}.hero .weather-icon{width:48px;height:48px}.source-status-strip{padding:0 4px}.source-status-strip .status-item{gap:4px;font-size:10px}#map-page #map-summary-value{font-size:30px}#map-page .map-summary-brand .brand{font-size:19px}#map-page .map-summary-metrics strong{font-size:14px}}
@media(prefers-reduced-motion:reduce){button,a,.theme-switch::after{transition:none!important}}

@media(min-width:700px){#app{padding-left:36px;padding-right:36px}.app-header{min-height:88px}}
body:has(#settings-page:not([hidden])) #app>.places-header{display:none}
#metrics .metric svg{stroke:currentColor;stroke-width:2.2}
.metric-open{inset:0;width:auto;height:auto;display:flex;align-items:flex-start;justify-content:flex-end;padding:16px;border-radius:inherit}
@media(max-width:600px) and (max-height:740px){#map-page .map-summary{padding:12px 16px}#map-page .map-summary-brand{margin-bottom:8px}#map-page .map-summary-header>div{display:flex;align-items:baseline;justify-content:space-between;gap:12px;width:100%}#map-page .map-summary-header p{margin:0}#map-page .map-summary-main{margin:8px 0}#map-page .map-summary-metrics strong{font-size:14px}}
@media(max-width:600px) and (max-height:700px){#map-page .map-layers{display:grid;grid-template-columns:repeat(2,44px);gap:6px}}

/* Map operation: clean canvas, collapsible forecast card and local GPS tools. */
#map-page .map-toolbar{top:calc(72px + env(safe-area-inset-top));max-width:420px}
#map-page .map-summary-header{align-items:center;min-height:36px}#map-page .map-summary-header>div{display:block;width:auto}#map-page .map-summary-header p{margin-top:4px}
#map-page .map-summary{padding:16px 18px}#map-page .map-summary-header .map-icon{width:36px;height:36px;min-height:36px;padding:7px;background:transparent;color:var(--muted)}
#map-page .map-dock{position:static;inset:auto;width:100%;max-width:none;padding:14px 0 0;margin-top:14px;background:transparent;border:0;border-radius:0}
#map-page .map-time{grid-template-columns:1fr 36px;grid-template-rows:18px 28px}#map-page .map-time input{appearance:none;-webkit-appearance:none;width:100%;height:28px;min-height:28px;max-height:28px;padding:0;border:0;border-radius:0;background:transparent;accent-color:var(--blue)}
#map-page #map-hour::-webkit-slider-runnable-track{height:3px;background:var(--line);border:0;border-radius:2px}#map-page #map-hour::-moz-range-track{height:3px;background:var(--line);border:0;border-radius:2px}#map-page #map-hour::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:14px;height:14px;margin-top:-5.5px;border:0;border-radius:50%;background:var(--blue)}#map-page #map-hour::-moz-range-thumb{width:14px;height:14px;border:0;border-radius:50%;background:var(--blue)}
#map-page .map-corner-actions{position:absolute;z-index:900;top:calc(12px + env(safe-area-inset-top));left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));display:flex;align-items:center;justify-content:space-between;pointer-events:none}#map-page .map-corner-actions button{pointer-events:auto;background:var(--card);color:var(--ink)}#map-page #map-settings{margin-left:auto}
#map-page .map-left-actions{position:absolute;z-index:900;left:max(12px,env(safe-area-inset-left));bottom:calc(var(--map-nav-height) + 60px);display:flex;flex-direction:column;gap:8px}#map-page .map-left-actions .map-icon{background:var(--card);color:var(--ink)}#map-page #map-track[aria-pressed=true]{background:var(--danger);color:var(--on-blue)}
#map-page .map-speed{position:absolute;z-index:900;left:50%;transform:translateX(-50%);bottom:calc(var(--map-nav-height) + 14px);height:36px;min-height:36px;padding:6px 12px;display:flex;align-items:center;gap:7px;background:var(--card);color:var(--ink);border:0;border-radius:18px;font-size:12px;font-variant-numeric:tabular-nums}#map-page .map-speed strong{font-weight:700;font-size:15px}#map-page .map-speed svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.7}
#map-page .map-layers{gap:6px}#map-page .map-layers button{width:44px;height:44px;min-width:44px;min-height:44px;padding:10px}#map-page .map-layer-control{right:max(18px,env(safe-area-inset-right))}
#map-page .leaflet-bottom.leaflet-right{bottom:calc(var(--map-nav-height) + 54px);max-width:calc(100% - 96px)}#map-page .leaflet-control-attribution{font-size:8px!important}
.track-history-row{display:block;width:100%;min-height:48px;padding:12px 0;text-align:left;border:0;border-bottom:1px solid var(--line);background:transparent;color:var(--ink);font-size:13px}#track-history{padding:12px 0;color:var(--muted);font-size:13px}
@media(max-height:780px) and (max-width:600px){#map-page .map-layers{display:grid;grid-template-columns:repeat(2,44px);gap:6px}#map-page .map-summary{padding:12px 16px}#map-page .map-summary-main{margin:8px 0}#map-page .map-dock{margin-top:8px;padding-top:8px}#map-page #map-summary-value{font-size:30px}}
@media(min-width:900px) and (hover:hover) and (pointer:fine){#map-page .leaflet-top.leaflet-left{top:calc(72px + env(safe-area-inset-top))}}

#map-page .map-summary-main{margin:8px 0 12px}#map-page .map-dock{margin-top:0;padding-top:8px}
#map-page .leaflet-bottom.leaflet-right{bottom:max(2px,env(safe-area-inset-bottom));left:12px;max-width:calc(100% - 24px)}


/* Tides are primary place information; phone preferences are a full screen. */
.dashboard-tide{background:var(--card);border-radius:22px;padding:20px;margin:18px 0 4px}.tide-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.tide-panel-heading h2{font-size:15px;font-weight:500;letter-spacing:0}.tide-datum{color:var(--muted);font-size:11px}.tide-panel-reading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:12px 0 8px}.tide-panel-reading strong{font-size:36px;line-height:1.15;color:var(--blue);letter-spacing:-.03em;font-variant-numeric:tabular-nums}.tide-panel-reading small{font-size:14px;font-weight:500}.tide-panel-reading>span{font-size:13px;color:var(--muted)}
.tide-mini-graph{display:block;width:100%;height:76px;overflow:visible}.tide-mini-graph path{fill:none;stroke:var(--blue);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.tide-mini-graph circle{fill:var(--blue)}.tide-mini-graph .tide-now{stroke:var(--muted);stroke-width:1;stroke-dasharray:2 3}.tide-mini-graph text{fill:var(--muted);font:9px Montserrat,sans-serif}.tide-graph-empty{display:flex;align-items:center;justify-content:center;min-height:64px;color:var(--muted);font-size:12px;background:var(--paper);border-radius:10px}
#map-page .map-tide-graph{margin:10px 0 4px}.map-tide-trend{display:block;font-size:11px;color:var(--muted);margin-bottom:2px}#map-page .tide-mini-graph{height:48px}#map-page .tide-graph-empty{min-height:32px;background:transparent;justify-content:flex-start;font-size:11px}
#map-page .map-summary-main{margin:8px 0 12px}#map-page .map-summary-metrics strong{font-size:15px}#map-page .map-summary-metrics{gap:8px}#map-page .map-left-actions{bottom:calc(var(--map-nav-height) + 60px)}#map-page .map-layers{display:grid;grid-template-columns:repeat(2,44px);gap:6px}
.lagoon-answer{display:flex;align-items:baseline;justify-content:space-between;gap:18px;background:var(--card);border-radius:22px;padding:22px}.lagoon-answer strong{font-size:36px;letter-spacing:-.03em;color:var(--muted)}.lagoon-answer.allowed strong{color:var(--success)}.lagoon-answer>span{font-size:22px;font-weight:700;font-variant-numeric:tabular-nums}.access-section .section-title{align-items:center}.access-section h2{margin-bottom:0}.access-section .icon-button{background:none;color:var(--muted)}
.preference-page,.info-page{max-width:560px;margin:0 auto;padding-bottom:calc(24px + env(safe-area-inset-bottom))}.screen-header{position:sticky;top:0;z-index:1100;display:flex;align-items:center;gap:12px;min-height:76px;padding:env(safe-area-inset-top) 0 0;background:var(--paper)}.screen-header .page-title{font-size:22px;line-height:1.25;margin:0;letter-spacing:-.03em}.screen-header .icon-button{background:none;flex-shrink:0}.preference-group{padding:22px 0;border-bottom:1px solid var(--line)}.preference-group h2{font-size:19px;margin-bottom:20px}.preference-group>label{display:flex;flex-direction:column;gap:8px;margin:0 0 20px;font-size:14px;font-weight:500}.preference-group .form-grid{display:flex;flex-direction:column;gap:20px;margin-bottom:20px}.preference-group .form-grid label{display:flex;flex-direction:column;gap:8px;font-size:14px;font-weight:500}.preference-group label.check{flex-direction:row;align-items:center;gap:12px;min-height:48px;font-weight:400}.preference-group input:not([type=checkbox]),.preference-group select{min-height:52px;font-size:16px}.preference-group fieldset{margin:20px 0 0;padding:16px;border:1px solid var(--line)}.preference-group fieldset legend{font-size:13px;padding:0 6px}.preference-group fieldset .check{display:flex;align-items:center;gap:12px;min-height:44px;margin:6px 0}.preference-group .muted{font-size:13px;margin-bottom:18px}.preference-group .footnote{font-size:12px;line-height:1.7}.preference-group .secondary,.preference-group .text-button{margin:8px 0}.preference-save{position:sticky;bottom:0;z-index:1100;padding:12px 0 max(12px,env(safe-area-inset-bottom));background:var(--paper)}.preference-save .primary{width:100%}#save-status{color:var(--danger);font-size:13px}#save-status:empty{display:none}
body:has(#boat-page:not([hidden])) .app-header,body:has(#info-page:not([hidden])) .app-header,body:has(#boat-page:not([hidden])) #app>.places-header,body:has(#info-page:not([hidden])) #app>.places-header,body:has(#boat-page:not([hidden])) #connection,body:has(#info-page:not([hidden])) #connection,body:has(#boat-page:not([hidden])) #app>.bottom-nav,body:has(#info-page:not([hidden])) #app>.bottom-nav{display:none!important}
body:has(#boat-page:not([hidden])) #app,body:has(#info-page:not([hidden])) #app{max-width:600px;padding-bottom:0}.menu-info-button{margin:20px auto 0;background:none;color:var(--muted)}.information-content{padding:20px 0}.information-content p{font-size:13px;line-height:1.8;margin:0 0 20px}.information-content .marine-readings{margin:22px 0}.information-content #provider-tide-details{font-size:12px;color:var(--muted);line-height:1.8;margin:20px 0}
@media(max-height:740px) and (max-width:600px){#map-page .map-layers{grid-template-columns:repeat(3,44px)}#map-page .map-summary-main{margin:4px 0 8px}#map-page .map-tide-graph{margin:6px 0 0}#map-page .tide-mini-graph{height:32px}#map-page .map-summary{padding:12px 16px}#map-page .map-summary-header>div{display:flex;gap:12px;align-items:baseline}#map-page #map-summary-time{display:none}#map-page .map-dock{padding-top:4px}}

.screen-header{justify-content:center;padding-bottom:0;margin:0;min-height:72px}.screen-header>.icon-button{position:absolute;left:0;top:50%;transform:translateY(-50%)}.screen-header .page-title{width:100%;padding:0 44px;font-size:20px;text-align:center}.preference-group select{width:100%;max-width:none}.dashboard-tide{padding:16px 18px;margin:0 0 18px}.dashboard-tide .tide-panel-reading{margin:8px 0 2px}.dashboard-tide .tide-mini-graph{height:58px}.preference-group input:not([type=checkbox]),.preference-group select{margin-top:0}.preference-group label{line-height:1.5}
#map-page .map-tide-graph .tide-mini-graph{height:40px}.dashboard-tide .tide-mini-graph{height:72px}@media(max-height:740px) and (max-width:600px){#map-page .map-tide-graph .tide-mini-graph{height:32px}}
/* Dropped pins: a short, phone-sized name and icon flow. */
.pin-dialog{width:calc(100% - 32px);max-width:420px;padding:24px;border:0;border-radius:24px;background:var(--card);color:var(--ink)}
.pin-dialog .section-title,.pin-manager .section-title{align-items:center;gap:12px}.pin-dialog h2,.pin-manager h2{font-size:20px;line-height:1.3;margin:0}.pin-dialog form>label{display:block;font-size:14px;margin-top:24px}.pin-dialog input[name=name]{width:100%;box-sizing:border-box;min-height:48px;font-size:16px;margin-top:8px}.pin-dialog .primary{width:100%;min-height:48px}
.pin-icon-picker{border:0;padding:0;margin:24px 0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}.pin-icon-picker legend{font-size:14px;margin-bottom:12px}.pin-icon-option{position:relative;display:flex;flex-direction:column;align-items:center;gap:8px;cursor:pointer;min-width:0}.pin-icon-option input{position:absolute;opacity:0;width:1px;height:1px;min-height:0}.pin-icon-option span{display:grid;place-items:center;width:48px;height:48px;max-width:100%;box-sizing:border-box;border-radius:50%;background:var(--paper);color:var(--ink)}.pin-icon-option input:checked+span{background:var(--blue);color:var(--on-blue)}.pin-icon-option input:focus-visible+span{outline:3px solid var(--blue);outline-offset:3px}.pin-icon-option small{font-size:10px;color:var(--ink)}.pin-icon-option svg,.pin-list-name svg,.saved-map-pin svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.pin-list-name{display:flex;align-items:center;gap:12px;overflow-wrap:anywhere}.pin-list-name svg{flex-shrink:0;color:var(--blue)}.pin-manager{max-width:460px;background:var(--card);color:var(--ink)}.saved-map-pin{display:grid!important;place-items:center;background:var(--card);color:var(--blue);border:2px solid var(--blue);border-radius:50%;box-sizing:border-box}.pending-map-pin{background:var(--blue);color:var(--on-blue)}#condition-map{-webkit-touch-callout:none;user-select:none}
.pin-dialog #pin-name{margin-top:0}.pin-dialog .pin-icon-picker{margin:24px 0 20px}.pin-dialog .pin-icon-option{gap:0}.pin-dialog form>.sr-only{margin:0}
/* One phone control column; the island strip spans the complete map. */
#map-page .map-toolbar{left:0;right:0;top:calc(72px + env(safe-area-inset-top));width:100%;max-width:none;gap:16px;align-items:flex-start}
#map-page #map-carousel{order:-1;width:100%;height:44px;flex-shrink:0;padding:0 max(12px,env(safe-area-inset-right)) 0 max(12px,env(safe-area-inset-left));mask-image:none;scroll-padding-inline:12px}
#map-page .map-summary{width:min(420px,calc(100% - 96px));margin-left:max(12px,env(safe-area-inset-left));padding:16px}
#map-page .map-summary-header{min-height:0}#map-page .map-summary h2{color:var(--ink)}
#map-page .map-corner-actions{left:auto;right:max(12px,env(safe-area-inset-right));width:56px;justify-content:center}#map-page #map-settings{margin:0}
#map-page .map-right-actions{position:absolute;z-index:900;top:calc(132px + env(safe-area-inset-top));right:max(12px,env(safe-area-inset-right));display:flex;flex-direction:column;align-items:center;gap:8px}
#map-page .map-right-actions .map-layers{display:flex;flex-direction:column;align-items:center;gap:8px;width:auto;grid-template-columns:none}
#map-page .map-right-actions #map-card-toggle{width:56px;height:56px;min-height:56px;background:var(--card);color:var(--blue)}#map-page #map-card-toggle svg{width:30px;height:30px;stroke-width:1.8}
#map-page #map-card-toggle[aria-expanded=true]{background:var(--blue);color:var(--on-blue)}
#map-page .map-right-actions .map-fab{position:static;inset:auto;margin:0}#map-page .map-right-actions .map-icon,#map-page .map-right-actions .map-fab{flex-shrink:0}
#map-page .map-reading{flex-direction:row;gap:6px;padding:6px 10px;background:var(--card);color:var(--blue);border:0;border-radius:21px;font-size:16px;line-height:1.2;white-space:nowrap;font-variant-numeric:tabular-nums;font-weight:700}
#map-page .map-reading svg{width:28px;height:28px;flex:0 0 28px;stroke-width:2.3}#map-page .map-reading span{white-space:nowrap}
.saved-map-pin{background:none;border:0;border-radius:0;display:block!important;color:var(--blue)}.saved-map-pin>.map-pin-shape{display:block;width:32px;height:42px;overflow:visible;fill:none;stroke:none}.map-pin-shape .pin-body{fill:var(--blue);stroke:#fff;stroke-width:2;stroke-linejoin:round}.map-pin-shape .pin-symbol{fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.map-pin-shape .pin-centre{fill:#fff;stroke:none}
:root[data-theme=night] #condition-map .maplibregl-canvas{filter:none}:root[data-theme=night] #condition-map .leaflet-tile{filter:grayscale(1) sepia(1) saturate(6) hue-rotate(320deg) brightness(.7)}
:root[data-theme=night] .map-pin-shape .pin-body,:root[data-theme=night] .map-pin-shape .pin-symbol{stroke:#ffb3b3}:root[data-theme=night] .map-pin-shape .pin-centre{fill:#ffb3b3}
.pin-dialog #pin-title{margin:0 0 22px;font-size:20px;line-height:1.3}
@media(max-width:600px){#map-page #map-summary-value{font-size:32px}#map-page #map-summary-glyph{width:32px}#map-page #map-summary-glyph svg{width:30px;height:30px}#map-page .map-summary-main{gap:10px}#map-page .map-summary-metrics strong{font-size:14px}#map-page .map-summary-metrics span{font-size:10px}}
@media(max-height:740px){#map-page .map-right-actions,#map-page .map-right-actions .map-layers{gap:4px}#map-page .map-right-actions #map-card-toggle,#map-page .map-right-actions .map-fab{width:48px;height:48px;min-height:48px}#map-page .map-right-actions{width:56px}#map-page .map-summary{padding:12px}#map-page .map-summary-main{margin:6px 0}#map-page .map-summary-metrics{gap:4px}}
@media(min-width:900px) and (hover:hover) and (pointer:fine){#map-page .leaflet-top.leaflet-left{top:calc(528px + env(safe-area-inset-top));right:max(18px,env(safe-area-inset-right));left:auto}#map-page .leaflet-control-zoom{margin:0!important;border:0;border-radius:22px;overflow:hidden}#map-page .leaflet-control-zoom a{width:44px;min-width:44px;height:44px;border:0}}
/* Always reachable settings and night controls; bottom anchored map tools. */
#map-page .map-right-actions{top:auto;bottom:calc(var(--map-nav-height) + 14px)}
#map-page .map-corner-actions{left:auto;width:auto;right:max(16px,env(safe-area-inset-right));display:flex;flex-direction:row;gap:12px;z-index:1250;pointer-events:auto}
#map-page .map-corner-actions .map-icon,.app-header .header-actions .icon-button{width:44px;height:44px;padding:9px;background:transparent!important;border-radius:0;color:var(--ink)}
#map-page .map-corner-actions svg,.app-header .header-actions svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.app-header .header-actions{gap:10px}.menu-trigger[aria-expanded=true],.theme-toggle[aria-pressed=true]{color:var(--blue)!important}
#map-page .map-right-actions{gap:6px}#map-page .map-right-actions .map-layers{gap:6px}
.tide-time-labels{display:flex;justify-content:space-between;gap:8px;padding:3px 0 0;color:var(--muted);font-size:11px;line-height:1.4;font-variant-numeric:tabular-nums}.tide-time-labels span{flex:0 0 auto}.tide-mini-graph path,.tide-mini-graph .tide-now{vector-effect:non-scaling-stroke}
@media(min-width:900px) and (hover:hover) and (pointer:fine){#map-page .leaflet-top.leaflet-left{top:132px}}
#metrics .metric{user-select:none;-webkit-touch-callout:none}#metrics.sorting .metric{touch-action:none}#metrics .metric.dragging{opacity:.5;outline:2px dashed var(--blue);outline-offset:3px}#metrics.editing{grid-template-columns:repeat(2,minmax(0,1fr))}@media(min-width:700px){#metrics.editing{grid-template-columns:repeat(3,minmax(0,1fr))}}
#map-page .map-right-actions{max-height:calc(100dvh - 140px - var(--map-nav-height));overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none;width:64px;padding:4px;right:max(8px,env(safe-area-inset-right))}#map-page .map-right-actions::-webkit-scrollbar{display:none}
.account-intro{font-size:14px;color:var(--muted);padding:16px 0 24px}#account-form label{display:flex;flex-direction:column;gap:8px;margin:18px 0}#account-form>.primary,#account-signed-in>.primary,#account-signed-in>.secondary{width:100%;margin:12px 0}#account-status{color:var(--muted);font-size:13px;line-height:1.6}#account-email{overflow-wrap:anywhere;padding:20px 0}#account-signup,#account-signout{min-height:48px;display:block;margin:8px auto}
body:has(#account-page:not([hidden])) #app>.places-header,body:has(#account-page:not([hidden])) .app-header,body:has(#account-page:not([hidden])) #app>.bottom-nav{display:none!important}body:has(#account-page:not([hidden])) #app{max-width:600px}
#map-page #map-ais{width:44px;height:44px;min-height:44px;background:var(--card);color:var(--ink)}#map-page #map-ais[aria-pressed=true]{background:var(--blue);color:var(--on-blue)}.ais-vessel{display:grid!important;place-items:center;color:var(--teal)}.ais-vessel svg{width:28px;height:28px;fill:var(--teal);stroke:var(--card);stroke-width:1.8}.ais-dialog{width:calc(100% - 32px);max-width:440px;padding:24px;max-height:90dvh;overflow:auto}.ais-dialog h2{font-size:24px}.ais-dialog>p{font-size:13px;color:var(--muted);line-height:1.6;margin:16px 0}.ais-plans{display:flex;flex-direction:column;gap:12px;margin:24px 0}.ais-plans button{background:var(--card);color:var(--ink);border:1px solid var(--line);border-radius:16px;min-height:120px;padding:18px;text-align:left;display:flex;flex-direction:column;gap:8px}.ais-plans strong{font-size:26px;line-height:1.2;color:var(--blue)}.ais-plans small{font-size:12px;font-weight:500}.ais-plans span{font-size:12px}.ais-dialog>.primary{width:100%}.ais-dialog>.text-button{min-height:44px;display:block;margin:12px auto 0}.ais-plans button:disabled{opacity:.75}
.menu-info-button svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}

/* Phone preference fields share one geometry, with uncluttered secondary screens. */
#boat-form .preference-group>label,#boat-form .form-grid label{gap:9px;margin-bottom:22px;min-width:0;font-size:14px}
#boat-form .form-grid{gap:0;margin:0}
#boat-form input:not([type=checkbox]),#boat-form select,.island-search input{display:block;width:100%;max-width:100%;min-width:0;box-sizing:border-box;padding:14px 16px;border:1px solid var(--line);border-radius:12px;background:var(--card);color:var(--ink);font:400 16px/1.4 Montserrat,sans-serif;min-height:52px;margin:0}
#boat-form label.check{display:flex;align-items:center;gap:12px;line-height:1.5;margin:8px 0 14px;min-height:48px}
#boat-form label.check input{flex:0 0 24px;margin:0}
#boat-form input[type=number]{appearance:textfield;-moz-appearance:textfield}
#boat-form input::-webkit-inner-spin-button,#boat-form input::-webkit-outer-spin-button{appearance:none;margin:0}
#boat-form .preference-group h2{margin-bottom:24px}
#boat-form .preference-save{margin-top:8px}
.preference-choice{width:100%;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 0;border:0;border-top:1px solid var(--line);background:transparent;color:var(--ink);text-align:left;min-height:82px}
.preference-choice>span{display:flex;flex-direction:column;gap:7px;min-width:0}.preference-choice strong{font-size:16px;font-weight:500}.preference-choice small{font-size:12px;color:var(--muted);line-height:1.5;overflow-wrap:anywhere}
.preference-choice svg{width:20px;height:20px;flex:0 0 20px;fill:none;stroke:var(--muted);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.select-field{position:relative;width:100%;min-width:0}
#boat-form .native-select{position:absolute;width:1px;height:1px;min-height:0;padding:0;border:0;opacity:0;pointer-events:none}
.select-trigger{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:52px;padding:14px 16px;text-align:left;border:1px solid var(--line);border-radius:12px;background:var(--card);color:var(--ink);font-size:16px;font-weight:400}
.select-trigger>span{min-width:0;overflow-wrap:anywhere}.select-trigger svg{width:20px;height:20px;flex:0 0 20px;fill:none;stroke:var(--muted);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.select-trigger[aria-expanded=true]{border-color:var(--blue)}.select-trigger[aria-expanded=true] svg{transform:rotate(180deg)}
.select-options{position:absolute;top:calc(100% + 6px);left:0;right:0;z-index:1150;padding:6px;border:1px solid var(--line);border-radius:12px;background:var(--card);max-height:240px;overflow:auto}
.select-options button{display:block;width:100%;min-height:48px;padding:12px 10px;border:0;border-radius:8px;background:transparent;color:var(--ink);text-align:left;font-size:16px;font-weight:400}
.select-options button[aria-selected=true]{background:var(--tint);color:var(--blue)}.select-options button:hover{background:var(--surface)}
.island-search{display:block;margin:20px 0 14px;font-size:0}.island-search input{font-size:16px}
.island-count{font-size:12px;color:var(--muted);margin-bottom:16px}
.island-options{border-top:1px solid var(--line)}
.island-option{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:64px;padding:16px 0;border-bottom:1px solid var(--line);font-size:16px;font-weight:400;line-height:1.5;cursor:pointer}
.island-option span{min-width:0;overflow-wrap:anywhere}.island-option input{flex:0 0 24px;margin:0;accent-color:var(--blue)}
.island-empty{padding:24px 0;color:var(--muted);font-size:14px}
body:has(#islands-page:not([hidden])) .app-header,body:has(#islands-page:not([hidden])) #app>.places-header,body:has(#islands-page:not([hidden])) #connection,body:has(#islands-page:not([hidden])) #app>.bottom-nav{display:none!important}
body:has(#islands-page:not([hidden])) #app{max-width:600px;padding-bottom:0}
.community-intro{color:var(--muted);font-size:15px;line-height:1.7;margin:24px 0}.community-options{padding:8px 0 28px;border-bottom:1px solid var(--line)}.community-options .footnote{margin:8px 0 0}.community-sharing{padding:28px 0;display:grid;gap:18px}.community-sharing h2{font-size:20px}.community-sharing [role=status]{font-size:14px;line-height:1.6}.community-sharing .primary,.community-sharing .secondary{min-height:48px;width:100%}.community-sharing .menu-link{display:flex;align-items:center;justify-content:space-between}.community-sharing .icon{width:20px;height:20px}.community-vessel svg{width:32px;height:40px;overflow:visible;filter:drop-shadow(0 0 2px #fff)}.community-popup{max-width:220px}.community-popup img{display:block;object-fit:cover;border-radius:12px;max-width:100%;margin-block:12px}.community-popup p{font-size:12px;line-height:1.6}.community-popup small{color:var(--muted)}
body:has(#community-page:not([hidden])) .app-header,body:has(#community-page:not([hidden])) #app>.places-header,body:has(#community-page:not([hidden])) nav{display:none!important}
.boat-profile-picture svg [fill="#245cfa"],.boat-profile-type svg [fill="#245cfa"]{fill:var(--blue)}

/* Focused phone refinements: the map strip is the top edge of the canvas. */
#map-page .map-toolbar{top:calc(12px + env(safe-area-inset-top))}
#map-page #map-carousel{order:0}
#metrics .metric:focus-within .tile-tools{display:flex}
@media(max-width:600px){#metrics .metric .tile-value.compact{font-size:21px;line-height:1.25}}
/* Keep sideways swipes inside intentional scrollers, without blocking map gestures or vertical pages. */
html,body{max-width:100%;overflow-x:hidden;overscroll-behavior-x:none}
@supports(overflow:clip){html,body{overflow-x:clip}}
.place-carousel{overscroll-behavior-x:contain}
.tide-reference{display:grid;gap:3px;margin-top:8px;font-size:10px;line-height:1.5;color:var(--muted);overflow-wrap:anywhere}.tide-reference summary{cursor:pointer;padding:4px 0;min-height:28px}.tide-reference p{font-size:10px;line-height:1.6;margin-top:4px}.tide-reference details[open]{max-height:160px;overflow-y:auto;overscroll-behavior:contain}
/* Account entry shares NP2K's full-screen poster and field layout. */
#account-page.auth-screen{position:fixed;inset:0;z-index:1300;max-width:none;margin:0;padding:0;overflow-y:auto;overscroll-behavior:contain}
#account-page .auth-poster>.brand{color:inherit}
#account-page .auth-poster .brand-mark{stroke:currentColor}
#account-go-tools{display:grid;gap:12px;margin-top:24px}

.own-boat-marker{background:transparent;border:0}.own-boat-marker>svg{width:40px;height:50px}
/* Reset the older Go form margins so shared NP2K field spacing remains exact. */
.auth-fields .suite-account-form label,.boat-profile-fields label,.boat-profile-type{margin:0}
