/* 바수길 3.33 · Coastal glass. Decorative imagery never represents live data. */
:root {
  --ink:#073b55; --muted:#59768b; --aqua:#009bb3; --line:#cee5f0; --paper:#f8fdff;
  --header:86px; --nav:calc(78px + env(safe-area-inset-bottom));
  --ocean-shadow:0 7px 20px #08799d18,0 1px 3px #0b5b7610;
  --glass:linear-gradient(125deg,#ffffffed,#e7f7ffcf);
  --deep:linear-gradient(140deg,#008aab,#075571 58%,#063b58);
  --waves:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='90' viewBox='0 0 320 90'%3E%3Cg fill='none' stroke='%237ad8e3' stroke-opacity='.22'%3E%3Cpath d='M-30 59Q10 19 50 59T130 59T210 59T290 59T370 59M-30 72Q10 32 50 72T130 72T210 72T290 72T370 72M-30 85Q10 45 50 85T130 85T210 85T290 85T370 85'/%3E%3C/g%3E%3C/svg%3E");
}
html {background:#edf8fd;scroll-behavior:smooth}
body {
  background-color:#eef8fc;
  background-image:linear-gradient(180deg,#e9f9ff15 0,#e8f9ff08 145px,#eef9fcdb 270px,#f1f9fc 460px),url('/art/coast.jpg');
  background-repeat:no-repeat;background-size:100% 100%,100% auto;background-attachment:fixed;
  font-family:'Apple SD Gothic Neo','Pretendard','Noto Sans KR','Malgun Gothic',system-ui,sans-serif;
  -webkit-font-smoothing:antialiased;overscroll-behavior-y:none;
}
body>header {height:var(--header);padding:8px max(18px,calc((100vw - 1080px)/2));gap:18px;background:linear-gradient(180deg,#eaf9ffbc,#eaf9ff25);border:0}
.basugil-brand {position:relative;font-size:34px;font-weight:950;line-height:1.08;letter-spacing:-2.3px;color:#063c54;padding-bottom:10px;text-shadow:0 2px 0 #fff8}
.basugil-brand::after {content:'';position:absolute;top:34px;left:15px;width:58px;height:6px;background:var(--aqua);clip-path:polygon(0 0,25% 40%,50% 0,75% 40%,100% 0,100% 60%,75% 100%,50% 60%,25% 100%,0 60%)}
.basugil-brand small {font-size:10px;letter-spacing:0;font-weight:750;margin-top:11px;line-height:1}
#searchForm {flex:1;max-width:660px;width:auto;min-width:0;flex-direction:row-reverse;background:linear-gradient(110deg,#fffffff0,#e2f5ffbd);border:1.5px solid #fff;border-radius:26px;padding:0 13px;box-shadow:0 4px 17px #1a72951a,inset 0 1px 3px white;backdrop-filter:blur(12px)}
#searchForm input {height:48px;font-size:15px;padding-left:8px;color:#284f68;width:100%}
#searchForm input::placeholder {color:#607d91}
#searchForm>button,.reports-search>button {font-size:0;width:28px;flex:none}
#searchForm>button::before,.reports-search>button::before {content:'';display:block;width:21px;height:21px;border:2px solid var(--ink);border-radius:50%;position:relative;transform:scale(.75)}
#searchForm>button::after,.reports-search>button::after {content:'';display:block;width:10px;height:2px;background:var(--ink);transform:translate(18px,-1px) rotate(45deg);transform-origin:left}
body>header>.icon {margin-left:auto;background:transparent;border-radius:10px;font-size:0;width:36px;flex:none}
body>header>.icon::before {content:'';display:block;width:27px;height:20px;border-block:2px solid var(--ink);background:linear-gradient(var(--ink),var(--ink)) center/100% 2px no-repeat}
#searchResults {top:57px;max-height:min(60dvh,500px);overflow:auto;background:#f6fcff;border:1px solid white;box-shadow:0 14px 35px #07425a26;backdrop-filter:blur(20px)}
#searchResults button {font-size:15px;min-height:46px}
main {height:calc(100dvh - var(--header) - var(--nav))}
.screen {animation:screen-appear .28s ease-out}
@keyframes screen-appear {from{opacity:.3;translate:0 5px}to{opacity:1;translate:0 0}}
button,a { -webkit-tap-highlight-color:transparent }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible {outline:3px solid #008eb6;outline-offset:3px}
.home,.sea-screen,.records-screen,.reports-screen {max-width:1000px;padding:16px 22px 18px}
.home {overflow:hidden;gap:9px}
.home-heading {min-height:62px;margin-bottom:0;align-items:center;flex:none}
.home .home-heading h1 {font-size:38px;font-weight:900;letter-spacing:-1.8px;line-height:1.2;text-shadow:0 1px 8px #fff9;max-width:70%;overflow-wrap:anywhere}
.place-heading-meta {display:flex;align-items:center;gap:6px}
.home .update {font-size:11px;color:#164761;background:#ffffffa8;border-radius:15px;padding:4px 7px;max-width:none;white-space:nowrap;text-shadow:0 1px white}
#saveFavorite {display:grid;place-items:center;width:40px;height:40px;min-width:40px;background:#fffffff0;border:1px solid white;border-radius:50%;color:#009ab2;font-size:28px;margin-left:0;box-shadow:var(--ocean-shadow)}
.home #favorites {margin:0;padding:0 0 4px;gap:7px;min-height:39px}
.home #favorites button {font-size:13px;font-weight:700;min-height:34px;padding:5px 13px;background:#f4fcffe8;border:1.5px solid #fff;border-radius:22px;box-shadow:0 3px 9px #12658013;color:#18556b}
.home #favorites button.active {background:var(--deep);border-color:#69cadb;color:white;box-shadow:inset 0 1px 1px #a7f7ff99,0 4px 9px #10667c25}
.home-view-switch {padding:5px;gap:5px;border:1.5px solid #fff;border-radius:19px;background:var(--glass);box-shadow:var(--ocean-shadow);min-height:51px;backdrop-filter:blur(15px)}
.home-view-switch button {min-height:39px;font-size:16px;font-weight:700;border-radius:14px;color:#51758a;display:flex;align-items:center;justify-content:center;gap:9px}
.home-view-switch button::before {content:'';display:inline-block;width:18px;height:18px;background:currentColor;mask:var(--calendar-icon) center/contain no-repeat}
.home-view-switch button.active {background-image:var(--waves),var(--deep);background-size:auto 100%,100%;background-position:bottom;color:white;border:1px solid #38b3cc;box-shadow:inset 0 1px 1px #adfaff80,0 4px 10px #08627c22}
.home-weekly {gap:8px;min-height:0}
.home .week-title {gap:10px;flex:none;padding:5px 2px;min-height:44px}
.home .week-title h2 {font-size:20px;font-weight:850;letter-spacing:-.7px;position:relative}
.home .week-title h2::after,.sea-heading h1::after {content:'';display:block;width:42px;height:4px;border-radius:50%;background:linear-gradient(90deg,#20becd,transparent);margin-top:3px}
.home .wind-time {font-size:13px;gap:7px;color:#30556e;white-space:nowrap;margin-left:auto}
.home .wind-time input {font-size:15px;min-height:39px;width:105px;max-width:110px;padding:5px 7px;border:1px solid #cddfe9;border-radius:12px;background:#fffffff2;box-shadow:0 3px 12px #1264830a}
.home #retryTides {width:29px;padding:0;font-size:25px;color:#007e9c;flex:none;min-height:39px}
.forecast-tabs {display:flex;flex:none;padding:4px;gap:3px;min-height:59px;border-radius:20px;border:1px solid #d8edf3;background:linear-gradient(145deg,#d9f2f9db,#f6fbfce8);box-shadow:inset 0 1px white,0 4px 12px #10647c0d;position:relative;isolation:isolate;overflow:hidden}
.forecast-tabs::before {content:'';position:absolute;inset:0;z-index:-1;background:var(--waves) bottom/100% 100% no-repeat;opacity:.8;pointer-events:none}
.forecast-tabs>button {flex:1;display:flex;align-items:center;justify-content:center;gap:8px;font-size:17px;font-weight:800;border:0;border-radius:16px;position:relative;min-height:49px;color:#123e59;padding:5px}
.forecast-tabs>button::before {content:'';display:inline-block;flex:none;width:29px;height:29px;background:linear-gradient(135deg,#70d8e7,#008eae);mask:var(--wave-icon) center/contain no-repeat;filter:drop-shadow(0 2px 2px #fff9)}
#forecastWeather::before {mask-image:var(--wind-icon)}
#forecastSun::before {mask-image:var(--sun-icon);background:linear-gradient(135deg,#ffcd54,#ff981c)}
.forecast-tabs>button[aria-selected=true] {background:#fffffff5;color:#007e96;box-shadow:0 4px 11px #0a68852b,inset 0 1px white}
.home .forecast-head {padding:0 12px;border:0;flex:none;font-size:12px;color:#4d7187;min-height:19px;grid-template-columns:42px minmax(0,1fr)}
.home .week-overview {flex:1;min-height:90px;overflow-y:auto;padding:2px 3px 8px;scrollbar-width:thin;scrollbar-color:#a5cfdc transparent;overscroll-behavior:contain}
.home .forecast-day {width:100%;min-height:86px;border:1px solid #d3e9f2;border-radius:16px;margin-bottom:9px;display:grid;grid-template-columns:42px minmax(0,1fr);padding:11px 13px;gap:10px;background:linear-gradient(120deg,#fffffffa,#f6fcffed);box-shadow:0 4px 12px #0a628713;position:relative;isolation:isolate;overflow:hidden}
.home .forecast-day.active {border-color:#7fcbd7;background:linear-gradient(120deg,#e9fafff5,#f8fdfff2);box-shadow:inset 4px 0 #009db2,0 5px 15px #007c9820}
.home .forecast-date {border-right:1px solid #d9e7ee;align-self:stretch;display:flex;flex-direction:column;justify-content:center}
.home .forecast-date strong {font-size:26px;font-weight:850;line-height:1.2}
.home .forecast-date small {font-size:12px;line-height:1.7;color:#4f7287}
.home .forecast-columns {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:center}
.home .forecast-value {min-width:0;display:flex;flex-direction:column;gap:2px}
.home .forecast-value b {font-size:27px;font-weight:850;line-height:1.25;color:#083b55;letter-spacing:-.7px;font-variant-numeric:tabular-nums}
.home .forecast-value b small {font-size:12px;font-weight:650;letter-spacing:0}
.home .forecast-value>span {font-size:12px;color:#4b6e82;line-height:1.45}
.home .daily-peak b {font-size:24px;font-weight:750}
.home .tide-high b {color:#008fac}.home .tide-low b {color:#e29142}
.forecast-day[data-kind=sun]::before {content:'';position:absolute;inset:28% 0 0;z-index:-1;background:linear-gradient(180deg,#fff0 0,#ffe9b937 50%,#8ed9ec55),url('/art/coast.jpg') center 69%/cover;opacity:.22;mask:linear-gradient(transparent,#000)}
.forecast-day[data-kind=sun] .forecast-value:first-child b::before {content:'☀';font-size:21px;color:#ffae29;margin-right:5px;font-weight:500}
.forecast-day[data-kind=sun] .forecast-value:last-child b::before {content:'☾';font-size:24px;color:#667eaf;margin-right:5px;font-weight:500}
.forecast-day[data-kind=tides]::after {content:'';position:absolute;left:0;right:0;bottom:0;height:24px;z-index:-1;background:var(--waves) bottom/100% 70px;opacity:.5;pointer-events:none}
.home .forecast-footer {flex:none;padding:0 3px;gap:7px;background:#eff9fcbd;border-radius:8px}
.home .week-note {font-size:11px;line-height:1.5;color:#56758a;margin:0}
.home .tide-error {color:#8e5330}
.home .text-help {font-size:11px;min-height:28px;padding:2px 0}
.home .home-actions {padding-top:2px;gap:10px;margin:0;flex:none}
.home .home-actions button {min-height:47px;flex:1;padding:8px 12px;font-size:15px;font-weight:750;border:1.5px solid white;border-radius:15px;background:var(--glass);box-shadow:var(--ocean-shadow);color:#174962}
.home .home-actions #goMap {background-image:var(--waves),var(--deep);background-position:bottom;background-size:auto 100%,100%;border-color:#69c6d5;color:white;box-shadow:inset 0 1px 1px #c3faff88,0 5px 12px #08516d25}
/* Full-height sea cards keep the four rows visible on a standard phone. */
.sea-screen {display:flex;flex-direction:column;gap:10px;overflow-y:auto;padding-top:14px;scrollbar-gutter:auto}
.sea-heading {flex:none;min-height:64px;display:flex;align-items:center}
.sea-heading h1 {font-size:34px;font-weight:900;letter-spacing:-1.5px;margin:0;text-shadow:0 2px 8px #fffb}
.sea-place-label {margin:0;min-height:49px;padding:11px 15px;background:var(--glass);border:1.5px solid white;border-radius:16px;box-shadow:var(--ocean-shadow);font-size:14px;flex:none}
.sea-place-label select {font-size:16px;font-weight:800;color:#073b55;min-height:25px}
.sea-place-search {margin:0;flex:none;border:0}
.sea-add-place {min-height:48px;display:flex;align-items:center;justify-content:center;list-style:none;cursor:pointer;border:1.5px solid #cffbff;border-radius:17px;color:white;background-image:var(--waves),var(--deep);background-position:bottom;background-size:auto 100%,100%;font-size:18px;font-weight:800;box-shadow:inset 0 1px 1px #b6faff80,0 5px 13px #07758f30;padding:8px}
.sea-add-place::-webkit-details-marker {display:none}
.sea-place-search[open] {border-radius:17px;padding-bottom:8px;background:#f5fcfff7}
.sea-place-search[open] .sea-add-place {margin-bottom:8px}
.sea-place-search form {background:#fff;width:calc(100% - 16px);margin:4px 8px;border:1px solid var(--line)}
.sea-place-search .sea-browse {padding:7px 12px;font-size:14px}
.sea-screen .sea-links {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(4,minmax(92px,1fr));gap:10px;flex:1 0 398px;min-height:398px;margin:0;padding:0 0 3px}
.sea-screen .sea-link-card {position:relative;isolation:isolate;overflow:hidden;border:1.5px solid white;border-radius:19px;min-height:92px;height:auto;padding:14px 15px;align-items:center;background-color:#e4f7ff;background-image:url('/art/sea-cards.jpg');background-size:200% 400%;background-position:0 0;box-shadow:0 6px 15px #087b9d23,inset 0 1px 0 #fff;color:#063750}
.sea-link-card:nth-child(2) {background-position:100% 0}.sea-link-card:nth-child(3) {background-position:0 33.3333%}.sea-link-card:nth-child(4) {background-position:100% 33.3333%}.sea-link-card:nth-child(5) {background-position:0 66.6667%}.sea-link-card:nth-child(6) {background-position:100% 66.6667%}.sea-link-card:nth-child(7) {background-position:0 100%}.sea-link-card:nth-child(8) {background-position:100% 100%}
.sea-screen .sea-link-card::before {content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#f6fcffb8,#f6fcff55 45%,transparent 70%);pointer-events:none}
.sea-screen .sea-link-card strong {font-size:22px;line-height:1.3;font-weight:900;letter-spacing:-.8px;text-shadow:0 1px 3px #fffe}
.sea-screen .sea-link-card small {max-width:105px;font-size:12px;color:#466b83;font-weight:650;margin-top:6px;line-height:1.4;text-shadow:0 1px 2px white}
.sea-screen .sea-link-card .ico {display:none}
.sea-screen .sea-link-card::after {content:'›';position:absolute;right:9px;bottom:8px;display:grid;place-items:center;width:24px;height:24px;background:#effaffdf;border:1px solid white;border-radius:50%;font-size:25px;line-height:20px;color:#08637f;box-shadow:0 2px 6px #064b6d22}
/* Map: retain the real basemap and current vectors. No decorative fake geography. */
.map-screen,#map {background:#acdce8}
.map-plan {top:10px;left:12px;right:12px;width:auto;padding:13px 2px;min-height:74px;background:var(--glass);border:2px solid white;border-radius:22px;box-shadow:0 5px 18px #0c5f7e28,inset 0 1px white;backdrop-filter:blur(16px)}
.map-plan label {flex:1;min-width:0;padding:0 12px;gap:6px;border-color:#cddfe9}
.map-plan span {color:#466b84;font-size:12px;font-weight:600}
.map-plan input,.map-plan select,.map-plan #openEntryTime {max-width:none;width:100%;min-width:0;font-size:16px;font-weight:800;min-height:28px;text-align:left;color:#073955}
.map-plan input[type=date] {min-width:0}
.draw-controls {top:97px;left:14px;gap:8px}
.draw-controls button {min-height:42px;padding:8px 15px;font-size:14px;font-weight:750;background:var(--glass);border:1.5px solid white;border-radius:17px;box-shadow:var(--ocean-shadow);backdrop-filter:blur(12px)}
.draw-controls #beginRoute,.draw-controls button.active {background:var(--deep);color:white;border-color:#8cdeec;box-shadow:inset 0 1px 1px #bcfaff99,0 5px 15px #07536e2f}
.draw-controls button:disabled {background:#dbf4ffb8;opacity:.58;color:#577e91;box-shadow:none}
.leaflet-top.leaflet-left {top:164px;left:10px}
.leaflet-control-zoom {border:1.5px solid #fff!important;border-radius:14px!important;overflow:hidden;box-shadow:0 4px 16px #004b6b29!important}
.leaflet-control-zoom a {background:#f4fcffe8!important;color:#073b55!important;width:36px!important;height:37px!important;line-height:36px!important;border-color:#cfdfeb!important}
.leaflet-control-attribution {background:#ffffffe0!important;color:#30596f!important;font-size:9px!important}
.waypoint {background:#0c5773;border-color:#f9ffff;box-shadow:0 2px 8px #023e5f55}.waypoint.start {background:#0099b1}.waypoint.end {background:#f09a45}
.map-screen .map-dock {bottom:23px;left:12px;right:auto;width:min(540px,calc(100% - 24px));max-width:calc(100% - 24px);padding:12px 14px 10px;border:2px solid #f8ffff;border-radius:23px;background:linear-gradient(125deg,#ffffffed,#e9f9ffe8);box-shadow:0 -3px 22px #0855781f,inset 0 1px 2px white;backdrop-filter:blur(18px)}
.map-dock::before {content:'';position:absolute;top:5px;left:calc(50% - 13px);width:26px;height:3px;background:#80b9ce;border-radius:4px}
.map-dock .legend {background:transparent;border:0;padding:0;margin:0 0 5px;position:static;font-size:10px;box-shadow:none}
.map-dock .legend .legend-arrows {display:none}
.map-dock .summary {gap:6px;min-height:37px}
.map-dock .summary strong {font-size:32px;color:#063d59;font-weight:850;letter-spacing:-1.4px}
.map-dock .summary strong small {font-size:13px;font-weight:750}
.map-dock .summary-right {flex:1;max-width:none;min-width:0;text-align:left;gap:1px;padding-left:5px}
.map-dock .summary-right b {font-size:10px;line-height:1.35;font-weight:700}.map-dock .summary-right span {font-size:9px;line-height:1.35}
.map-dock #details,.map-dock #briefing {padding:8px 9px;border:1px solid #cce3ee;border-radius:12px;background:#f6fcff;font-size:12px;font-weight:750;min-height:36px;white-space:nowrap}
.map-dock #details {background:linear-gradient(135deg,#c3fcfa,#b7f0f7);border-color:#b4f2f6;color:#008b9e}
.map-dock .departure-tools {padding-top:7px;gap:5px;font-size:12px}
.map-dock .departure-tools>span {margin-right:0}
.map-dock .departure-tools button {min-height:33px;padding:5px 9px;background:#f4faff;border:1px solid #d9e9f1;border-radius:10px;font-size:13px}
.map-dock #departureClock {color:#0087a3;font-weight:850;border:0;background:transparent;font-size:17px;padding-inline:5px;text-decoration:underline;text-underline-offset:5px;text-decoration-thickness:2px}
.map-dock #windyCurrent {margin-left:auto;font-size:12px;font-weight:750;white-space:nowrap;color:#008aaa}
.map-dock .timeline {padding-top:7px;gap:8px}
.map-dock .timeline button {font-size:10px;min-height:28px;padding:4px 7px;background:#f8fdff;border:1px solid #d8eaf1;border-radius:9px}
.map-dock .timeline output {font-size:12px}.map-dock .timeline input {height:22px;accent-color:#00a7ba}
.map-dock .strongest-summary {font-size:12px;padding:4px 7px;margin-top:5px;min-height:25px;background:#fff0e9;border-color:#f4cbbd;border-radius:8px}
.map-screen:not(.has-course) .summary-right {display:none}
/* Shared cards and modal treatments. */
.calendar-day,.swim-plans,.records-month-tools,.record-stat,.records-calendar,.report-detail,.report-editor,.report-direction-tools,.entry-time-picker {
  border:1.5px solid white;background:var(--glass);box-shadow:var(--ocean-shadow);border-radius:18px
}
.calendar-toolbar input,.calendar-toolbar button {background:#f9fdff;border-color:#cfe5f0;border-radius:10px}
.calendar-date,.record-calendar-day {background:#f8fdff;border-color:#dbedf4;border-radius:10px;min-height:38px}
.calendar-date.selected,.record-calendar-day.selected {background:var(--deep);border-color:#5ec9da;color:white;box-shadow:0 3px 8px #00567c22}
.calendar-date.today {border-color:#1bb7c5}.calendar-date.has-forecast::after {background:#009db3}
.calendar-wind {background:linear-gradient(120deg,#dbf5ff,#f0fbff);border:1px solid #d1eaf3;color:var(--ink);border-radius:12px}
.calendar-value strong {color:#0c5470}.calendar-value small,.calendar-source {color:#57768c}
.swim-plan-save,.swim-plans-heading button,.record-primary,.reports-primary {background-image:var(--waves),var(--deep);background-position:bottom;background-size:auto 100%,100%;border:1px solid #71d1e1;color:#fff;box-shadow:inset 0 1px 1px #c6fbff80,0 5px 12px #08627c26;font-weight:800}
dialog,.admin-dialog,.record-editor-dialog,.record-detail-dialog,.swim-plan-dialog {background:linear-gradient(140deg,#faffff,#eaf8ff);border:1.5px solid #fff;box-shadow:0 22px 70px #06395744,inset 0 1px white;color:var(--ink);border-radius:23px}
dialog::backdrop {background:#0a38565c;backdrop-filter:blur(7px)}
dialog input,dialog select,dialog textarea,.report-form input,.report-form select {border-color:#c6e1ec!important;background:#ffffffed!important;color:#123f5b;border-radius:10px;}
.admin-dialog .report-admin-form button,.admin-session button:first-of-type,.admin-password-form #reportAdminPasswordApply {background:var(--deep);color:white;border-color:#5abacb}
.admin-password-form {background:#e4f5fc;border-color:#bfdeeb}
/* Community: real routes and real notes are the prominent content. */
.reports-screen {gap:12px;scrollbar-width:thin}
.reports-heading {position:relative;min-height:148px;align-items:flex-start;margin:0 -6px -3px;padding:20px 10px 16px;isolation:isolate;flex:none}
.reports-heading::before {content:'';position:absolute;inset:-20px -16px 0;z-index:-1;background-image:linear-gradient(90deg,#f3fbffd9 0,#f3fbff30 55%,#f3fbff00),url('/art/swim-scenes.jpg');background-size:100% 100%,100% 200%;background-position:center,center top;mask:linear-gradient(#000 80%,transparent);pointer-events:none}
.reports-heading small {font-size:14px;font-weight:600;color:#2f617b;text-shadow:0 1px white}
.reports-heading h1 {font-size:35px;letter-spacing:-1.5px;font-weight:900;line-height:1.3;margin:6px 0}
.reports-heading h1 span {display:block;font-size:12px;letter-spacing:0;font-weight:750;margin-top:5px;color:#15536e}
.reports-heading>.reports-admin {position:absolute;top:9px;right:10px;min-height:32px;font-size:11px;border-radius:20px;background:#f7fcffd6;border-color:#d5edf5;color:#215c73;padding:4px 10px}
.reports-heading>.reports-primary {position:absolute;right:10px;bottom:24px;min-height:43px;padding:9px 16px;font-size:14px;border-radius:17px}
.reports-access {background:#eef9ffdc;border:1px solid #d5eaf2;color:#56778a;border-radius:11px;font-size:11px;padding:7px 10px;margin:0}
.reports-browse-header {gap:10px}
.reports-search {min-height:47px;border:1.5px solid white;border-radius:18px;padding:0 15px;background:var(--glass);box-shadow:var(--ocean-shadow);flex-direction:row-reverse;gap:8px}
.reports-search input {height:47px;font-size:15px}
.reports-search>button {width:25px;min-height:35px}
.reports-display {border:1px solid white;background:#e1f2f9c9;border-radius:15px;padding:4px;box-shadow:inset 0 1px 1px #fff}
.reports-display button {border-radius:11px;font-size:14px;min-height:37px;color:#41687e;font-weight:700}
.reports-display button.active {background:#fffffff0;color:#007f9b;box-shadow:0 3px 8px #1c657919}
.reports-filters {gap:7px;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;min-height:36px;flex:none}
.reports-filters button {flex:none;border:1px solid white;background:#f5fcffcd;border-radius:20px;min-height:35px;padding:6px 14px;font-size:13px;box-shadow:0 2px 7px #0d597b0a;font-weight:700;color:#2b5a75}
.reports-filters button.active {background:var(--deep);border-color:#60c4d6;color:white;box-shadow:inset 0 1px 1px #87eaf47f,0 3px 10px #07638124}
.reports-sea-summary {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;flex:none}
.reports-sea-summary>* {min-width:0;border:1.5px solid white;border-radius:17px;padding:12px 10px;text-align:left;min-height:88px;background:linear-gradient(130deg,#fffffff0,#def5ffde);box-shadow:var(--ocean-shadow);position:relative;overflow:hidden;text-decoration:none;color:#0a4966;display:flex;flex-direction:column;justify-content:center;gap:4px}
.reports-sea-summary>*::after {content:'';position:absolute;left:0;bottom:-4px;right:0;height:28px;background:var(--waves) bottom/190% 70px;pointer-events:none}
.reports-sea-summary strong {font-size:16px;display:flex;gap:6px;align-items:center}
.reports-sea-summary strong::before {content:'';width:20px;height:20px;background:linear-gradient(135deg,#66d7ff,#0083c5);mask:var(--wave-icon) center/contain no-repeat}
.reports-sea-summary #reportContextWind strong::before {mask-image:var(--wind-icon)}
.reports-sea-summary span {font-size:11px;line-height:1.4;color:#42738a}
.reports-message:empty {display:none}
.reports-list-title {font-size:20px;font-weight:850;letter-spacing:-.5px;margin:4px 0 -3px;flex:none}
.reports-list {gap:13px}
.report-card {padding:10px;border:1.5px solid white;border-radius:20px;gap:13px;box-shadow:var(--ocean-shadow);background:linear-gradient(140deg,#fffffffa,#f9fdffeb);align-items:stretch}
.report-card-thumb {flex-basis:37%;min-width:95px;border:1px solid #d5edf6;border-radius:13px;align-self:stretch;display:flex;background:#dff5fc;overflow:hidden;align-items:center;position:relative;min-height:146px}
.report-card-thumb svg {width:100%;height:auto;min-height:146px;display:block}
.report-card-body {justify-content:center;gap:6px;flex:1;padding:4px 0}
.report-card strong {font-size:20px;color:#083b56;font-weight:850;letter-spacing:-.5px}
.report-card .report-card-meta {font-size:11px;color:#23748b;line-height:1.5}
.report-card .report-card-strength {font-size:12px;font-weight:750;color:#b24b32}
.report-card.no-current .report-card-strength {color:#088579}
.report-card .report-card-range {font-size:11px;color:#7d6161}
.report-card .report-card-note {font-size:12px;line-height:1.65;color:#516a7f;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.report-card .report-card-author {font-size:10px;color:#678196;border-top:1px solid #e1eef5;padding-top:6px}
.reports-empty {display:flex;flex-direction:column;align-items:center;text-align:center;justify-content:center;border:1.5px solid white;border-radius:20px;min-height:180px;padding:25px 18px;background:linear-gradient(120deg,#f5fcfff5,#e9f8ffdd);box-shadow:var(--ocean-shadow);gap:9px;grid-column:1/-1}
.reports-empty strong {font-size:20px;color:#174e69}.reports-empty p {font-size:13px;margin:0;color:#5e7e91}.reports-empty button {padding:10px 17px;border-radius:13px;margin-top:5px}
.reports-screen[data-reports-mode=write] .reports-heading,.reports-screen[data-reports-mode=detail] .reports-heading {min-height:62px;padding-block:5px}
.reports-screen[data-reports-mode=write] .reports-heading::before,.reports-screen[data-reports-mode=detail] .reports-heading::before {display:none}
.reports-screen[data-reports-mode=write] .reports-heading h1,.reports-screen[data-reports-mode=detail] .reports-heading h1 {font-size:26px;margin:3px 0}
.reports-screen[data-reports-mode=write] .reports-heading h1 span,.reports-screen[data-reports-mode=detail] .reports-heading h1 span {display:inline;font-size:13px;margin-left:6px}
.reports-screen .reports-map {border:2px solid white;border-radius:20px;box-shadow:var(--ocean-shadow)}
.reports-map-workspace[data-expanded=true] {background:linear-gradient(160deg,#d6f3ff,#effaff);padding-top:calc(10px + env(safe-area-inset-top))}
.report-route-controls button,.report-map-actions button,.report-map-footer button {border-radius:12px;border:1px solid #cae3ee;background:#f7fdff;box-shadow:0 2px 5px #0d587a0d;color:#154e6b}
.report-route-controls button.active,.report-map-footer button {background:var(--deep);color:white}
.report-direction-tools,.report-editor {padding:14px}
.report-details>summary {font-size:16px;color:#0a7f98;min-height:40px;display:flex;align-items:center}
.report-form input,.report-form select {min-height:44px;font-size:16px}
.reports-screen[data-reports-mode=write] .report-editor.report-form-open .report-form input,.reports-screen[data-reports-mode=write] .report-editor.report-form-open .report-form select {font-size:16px;min-height:44px;height:44px}
/* Personal records: swimmer hero / illustrated statistics / image-first diary. */
.records-screen {padding-top:12px;scrollbar-width:thin}
.records-heading {min-height:146px;position:relative;isolation:isolate;margin-bottom:10px;padding:14px 4px;align-items:flex-start}
.records-heading::before {content:'';position:absolute;z-index:-1;inset:-18px -22px -8px;background-image:linear-gradient(90deg,#f0fbffdd 0,#f0fbff44 45%,transparent 75%),url('/art/swim-scenes.jpg');background-size:100% 100%,100% 200%;background-position:center,center top;mask:linear-gradient(#000 80%,transparent);pointer-events:none}
.records-heading small {font-size:14px;font-weight:650;color:#1e5f7d;text-shadow:0 1px white}
.records-heading h1 {font-size:40px;letter-spacing:-1.5px;font-weight:900;line-height:1.3;margin:4px 0}
.records-heading .record-primary {min-height:45px;font-size:17px;border-radius:17px;padding:9px 16px;margin-top:19px}
.records-month-tools {gap:6px;min-height:48px;padding:4px 6px;margin-bottom:12px;background:var(--glass)}
.records-month-tools input {font-size:17px;font-weight:800;text-align:center;color:#114968}
.records-month-tools button {background:#ffffffe8;min-width:39px;min-height:39px;border-radius:12px;color:#17516b}
.records-month-tools #recordsAll {min-height:39px;font-size:13px;font-weight:750;border-color:white;white-space:nowrap}
.records-month-tools #recordsAll.active {background:var(--deep)}
.record-stats {gap:11px}
#recordStats>.record-stat {position:relative;isolation:isolate;min-height:112px;padding:16px 12px 14px 64px;flex-direction:column-reverse;justify-content:center;overflow:hidden;background-image:var(--waves),linear-gradient(140deg,#f8fdfff5,#d3f1ffdb);background-position:bottom;background-size:100% 90px,100%;border-radius:19px}
#recordStats>.record-stat::before {content:'';position:absolute;left:14px;top:calc(50% - 21px);width:39px;height:42px;background:linear-gradient(140deg,#7cdeff,#0088d1);mask:var(--wave-icon) center/contain no-repeat;filter:drop-shadow(0 4px 3px #008dc133)}
#recordStats>.record-stat:nth-child(2)::before {mask-image:var(--route-icon);background:linear-gradient(140deg,#1dbdf7,#0679a7)}
#recordStats>.record-stat strong {font-size:31px;line-height:1.3;font-weight:900;letter-spacing:-1px}
#recordStats>.record-stat small {font-size:13px;color:#164c68;font-weight:750}
.record-more-stats {margin:10px 0 17px}.record-more-stats summary {font-size:12px;color:#497591;padding:3px}
.record-more-stats .record-stat {border-color:#fff;background:#f9fdff;font-size:14px;border-radius:14px}
.records-calendar {position:relative;isolation:isolate;padding:16px;overflow:hidden;margin-bottom:18px}
.records-calendar>summary {font-size:18px;font-weight:800;min-height:39px;padding:0 0 0 40px;list-style:none;cursor:pointer;position:relative;line-height:1.4}
.records-calendar>summary::-webkit-details-marker {display:none}
.records-calendar>summary::before {content:'';position:absolute;left:0;top:3px;width:29px;height:32px;background:linear-gradient(135deg,#00b7da,#0061a1);mask:var(--calendar-icon) center/contain no-repeat}
.records-calendar>summary::after {content:'›';position:absolute;right:0;top:0;color:#0e6c90;font-size:28px}
.records-calendar[open]>summary::after {rotate:90deg}
.records-calendar-caption {display:block;font-weight:400;color:#5a819a;font-size:12px;margin-top:4px;padding-right:24px}
.records-calendar::before {content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#f8fdffff,#f8fdffdc 70%,#f8fdff20),url('/art/coast.jpg') right 57%/cover;opacity:.7;pointer-events:none}
.records-list-heading {margin-bottom:10px}.records-list-heading h2 {font-size:21px;letter-spacing:-.5px;font-weight:850}
.record-date-heading {font-size:13px;color:#3f7a91;margin-top:6px}
.personal-record-card {border:1.5px solid white;border-radius:21px;box-shadow:var(--ocean-shadow);background:linear-gradient(130deg,#fff,#f2fbff)}
.record-image {background:#e3f2fa;min-height:160px;height:240px;border-bottom:1px solid #d8edf5}
.record-no-image {background:linear-gradient(130deg,#e6f8ff,#d7f4fa);color:#1387a2}
.personal-record-body {padding:15px}.personal-record-head strong {font-size:20px;font-weight:850;color:#114764}
.personal-record-numbers {background:linear-gradient(130deg,#e8f8ff,#e1f5fd);padding:10px;border:1px solid #d4edf6;border-radius:11px;color:#0b5878}
.personal-record-body>p {font-size:14px;color:#55798c}
.records-empty {position:relative;isolation:isolate;overflow:hidden;min-height:248px;padding:28px 24px;border:1.5px solid white;border-radius:23px;justify-content:center;box-shadow:var(--ocean-shadow);background:transparent}
.records-empty::before {content:'';position:absolute;inset:0;z-index:-1;background-image:linear-gradient(90deg,#e8faffd9,#e8faff99 75%,#e8faff22),url('/art/swim-scenes.jpg');background-size:100% 100%,100% 200%;background-position:center,center bottom}
.records-empty strong {font-size:25px;letter-spacing:-.8px;font-weight:850;color:#063e5a;line-height:1.45}
.records-empty p {font-size:14px;line-height:1.7;color:#1b6886;max-width:320px;margin:12px 0 20px}
.records-empty .record-primary {min-height:45px;padding:10px 22px;font-size:16px;border-radius:15px}
.records-storage-tools {font-size:11px;color:#608096;border-color:#d1e6f2}.records-storage-tools button,.records-import-label {background:#f8fdff;border:1px solid #c7e3f0;border-radius:9px;color:#28647c;min-height:38px}
/* Bottom navigation stays reachable and follows the reference on every tab. */
.bottom-nav {height:var(--nav);position:relative;padding:5px max(10px,calc((100vw - 900px)/2)) calc(6px + env(safe-area-inset-bottom));gap:3px;border:1px solid #ffffffc9;border-bottom:0;border-radius:24px 24px 0 0;background:linear-gradient(120deg,#fffffffa,#f4fbfff5);box-shadow:0 -4px 20px #0b618316;backdrop-filter:blur(18px);overflow:hidden}
.bottom-nav button {position:relative;flex:1;width:auto;max-width:180px;min-width:0;flex-direction:column;gap:5px;font-size:12px;font-weight:650;color:#67849a;min-height:60px;padding:4px 1px 9px;line-height:1.2;white-space:nowrap}
.bottom-nav button span {font-size:0!important;position:relative;display:grid;place-items:center;width:34px;height:30px}
.bottom-nav button span::after {content:'';display:block;width:27px;height:27px;background:currentColor;mask:var(--nav-icon) center/contain no-repeat;transition:transform .22s}
.bottom-nav #tabHome {--nav-icon:var(--sun-icon)}.bottom-nav #tabMap {--nav-icon:var(--map-icon)}.bottom-nav #tabSea {--nav-icon:var(--wave-icon)}.bottom-nav #tabReports {--nav-icon:var(--flag-icon)}.bottom-nav #tabRecords {--nav-icon:var(--record-icon)}
.bottom-nav button.active {color:#00647c;font-weight:850}
.bottom-nav button.active span::before {content:'';position:absolute;inset:-5px -7px;background:radial-gradient(ellipse,#d4f7fa99,transparent 75%);border-radius:50%}
.bottom-nav button.active span::after {transform:translateY(-1px);filter:drop-shadow(0 2px 3px #00b2c232)}
.bottom-nav button.active::after {width:36px;height:4px;border-radius:4px;bottom:1px;left:calc(50% - 18px);background:linear-gradient(90deg,#008da8,#00bed0);box-shadow:0 1px 3px #0098a92a}
@media(hover:hover) {
  .sea-link-card,.record-primary,.reports-primary,.home-actions button,.report-card,.personal-record-card {transition:translate .18s,box-shadow .18s,border-color .18s}
  .sea-link-card:hover,.record-primary:hover,.reports-primary:hover,.home-actions button:hover,.report-card:hover,.personal-record-card:hover {translate:0 -2px;box-shadow:0 10px 22px #00658a26;border-color:#82d4e4}
}
.sea-link-card:active,.record-primary:active,.reports-primary:active,.home-actions button:active {scale:.98}
@media(min-width:900px) {
  body {background-size:100% 100%,100% 600px}
  .home,.sea-screen,.records-screen,.reports-screen {padding-inline:26px}
  .home .home-heading h1 {font-size:44px}
  .home #favorites {min-height:44px}.home #favorites button {font-size:14px}
  .home .forecast-day {min-height:92px}.home .forecast-day .forecast-value b {font-size:30px}
  .sea-screen .sea-link-card strong {font-size:28px}.sea-screen .sea-link-card small {font-size:15px;max-width:190px}
  .sea-screen .sea-links {gap:14px}.sea-screen .sea-link-card {padding-left:24px}
  .reports-heading,.records-heading {min-height:190px}
  .reports-heading h1,.records-heading h1 {font-size:45px}
  .reports-sea-summary>* {min-height:106px;padding-inline:18px}.reports-sea-summary span {font-size:13px}
}
@media(max-width:600px) {
  :root {--header:76px;--nav:calc(72px + env(safe-area-inset-bottom))}
  body {background-size:100% 100%,auto 370px}
  body>header {padding:8px 13px;gap:10px}
  .basugil-brand {font-size:30px;letter-spacing:-2px;padding-bottom:6px}.basugil-brand::after {top:30px;width:49px;height:4px;left:13px}.basugil-brand small {font-size:8px;margin-top:8px;letter-spacing:-.1px}
  #searchForm {padding:0 11px;border-radius:23px}#searchForm input {height:43px;font-size:13px;padding-left:4px}
  #searchForm>button {width:22px}#searchForm>button::before {width:19px;height:19px}#searchForm>button::after {width:9px;transform:translate(16px,-1px) rotate(45deg)}
  body>header>.icon {width:28px;height:36px}body>header>.icon::before {width:24px;height:18px}
  .home,.sea-screen,.records-screen,.reports-screen {padding:10px 13px 12px}
  .home {gap:8px}.home .home-heading {min-height:57px}.home .home-heading h1 {font-size:34px}
  .home .update {font-size:10px;padding:3px 5px}.home #saveFavorite {width:35px;height:35px;min-width:35px;font-size:25px}
  .home #favorites {min-height:36px}.home #favorites button {font-size:12px;min-height:31px;padding:4px 11px}
  .home-view-switch {min-height:47px;padding:4px;border-radius:17px}.home-view-switch button {min-height:36px;font-size:15px}
  .home .week-title {min-height:43px;gap:7px}.home .week-title h2 {font-size:18px}.home .wind-time {font-size:12px;gap:5px}.home .wind-time input {width:96px;font-size:14px;min-height:37px}
  .forecast-tabs {min-height:57px}.forecast-tabs>button {font-size:16px;gap:6px;min-height:46px}.forecast-tabs>button::before {width:24px;height:24px}
  .home .forecast-head {font-size:12px;padding:0 10px;grid-template-columns:35px minmax(0,1fr);gap:10px}
  .home .forecast-day {min-height:84px;grid-template-columns:35px minmax(0,1fr);padding:10px 11px;gap:10px;border-radius:16px;margin-bottom:8px}
  .home .forecast-columns {gap:10px}.home .forecast-value b {font-size:24px}.home .daily-peak b {font-size:23px}.home .forecast-value>span {font-size:11px}.home .forecast-date strong {font-size:25px}.home .forecast-date small {font-size:11px}
  .home .forecast-value b small {font-size:11px}
  .home .home-actions button {font-size:13px;min-height:44px;padding:7px 9px;border-radius:14px}.home .forecast-footer .week-note {font-size:10px;line-height:1.4}
  .sea-heading {min-height:53px}.sea-heading h1 {font-size:31px}.sea-screen {gap:9px}.sea-screen .sea-links {flex-basis:368px;min-height:368px;grid-template-rows:repeat(4,minmax(85px,1fr));gap:9px}
  .sea-screen .sea-link-card {min-height:85px;padding:13px 12px;border-radius:17px}.sea-screen .sea-link-card strong {font-size:21px}.sea-screen .sea-link-card small {font-size:11px;max-width:87px;margin-top:5px}.sea-screen .sea-link-card::after {width:22px;height:22px;right:7px;bottom:7px}
  .sea-place-label {font-size:13px;min-height:44px;padding:9px 13px;border-radius:15px}.sea-place-label select {font-size:15px}.sea-add-place {min-height:44px;font-size:17px;border-radius:15px}
  .map-plan {left:9px;right:9px;top:9px;padding:10px 0;min-height:68px;border-radius:20px}.map-plan label {padding:0 8px;gap:5px}.map-plan span {font-size:10px}.map-plan input,.map-plan select,.map-plan #openEntryTime {font-size:13px;min-height:25px}.map-plan label:first-child {flex:1.2}.map-plan label:nth-child(2) {flex:.85}
  .draw-controls {top:88px;left:11px;gap:7px}.draw-controls button {min-height:39px;padding:7px 12px;font-size:12px;border-radius:14px}.leaflet-top.leaflet-left {top:151px;left:8px}
  .leaflet-control-zoom a {width:33px!important;height:35px!important;line-height:34px!important}
  .map-screen .map-dock {left:9px;right:9px;width:calc(100% - 18px);max-width:calc(100% - 18px);padding:10px 11px 8px;border-radius:22px;bottom:22px}.map-dock .summary strong {font-size:29px}.map-dock #details,.map-dock #briefing {font-size:11px;padding:7px 8px;min-height:34px}.map-dock .summary-right {padding-left:0;max-width:none}.map-dock .summary-right b {font-size:11px}.map-dock .summary-right span {font-size:10px}
  .map-dock .departure-tools {gap:5px;font-size:11px}.map-dock .departure-tools button {padding:4px 8px;font-size:12px;min-height:30px}.map-dock #departureClock {font-size:16px}.map-dock #windyCurrent {font-size:11px}.map-dock .timeline {padding-top:6px}.map-dock .timeline button {font-size:10px}
  .reports-heading {min-height:139px;padding-top:14px}.reports-heading h1 {font-size:33px}.reports-heading small {font-size:13px}.reports-heading>.reports-primary {font-size:13px;padding:8px 13px;min-height:41px;bottom:22px}.reports-heading>.reports-admin {top:7px;right:6px;min-height:29px}
  .reports-list {grid-template-columns:1fr;gap:11px}.report-card {gap:11px;padding:9px}.report-card-thumb {flex-basis:37%;min-height:142px}.report-card strong {font-size:19px}.report-card .report-card-note {font-size:12px}
  .reports-sea-summary {gap:8px}.reports-sea-summary>* {padding:11px 8px;min-height:83px;border-radius:16px}.reports-sea-summary strong {font-size:15px;gap:4px}.reports-sea-summary span {font-size:10px}.reports-sea-summary strong::before {width:17px;height:17px}.reports-list-title {font-size:19px}
  .reports-search input {font-size:14px}.reports-display button {font-size:13px}.reports-filters button {font-size:12px;padding:6px 13px}
  .records-heading {min-height:140px;margin-bottom:6px;padding-top:13px}.records-heading h1 {font-size:37px}.records-heading small {font-size:13px}.records-heading .record-primary {font-size:16px;min-height:43px;margin-top:21px;padding:8px 13px}
  .records-month-tools {margin-bottom:11px}.records-month-tools input {font-size:16px}.records-month-tools button {min-width:34px}
  #recordStats>.record-stat {padding-left:50px;padding-right:9px;min-height:100px}#recordStats>.record-stat::before {left:10px;width:31px;height:36px;top:calc(50% - 18px)}#recordStats>.record-stat strong {font-size:27px}#recordStats>.record-stat small {font-size:12px}
  .records-calendar {padding:14px}.records-calendar>summary {font-size:17px}.records-calendar-caption {font-size:11px}.records-list-heading h2 {font-size:20px}
  .records-empty {min-height:237px;padding:24px 21px}.records-empty strong {font-size:23px}.records-empty p {font-size:13px;max-width:260px}.records-empty .record-primary {font-size:15px;min-height:43px}
  .bottom-nav {padding-inline:8px;border-radius:22px 22px 0 0}.bottom-nav button {font-size:11px;gap:4px;padding-bottom:8px;min-height:56px}.bottom-nav button span {height:28px}.bottom-nav button span::after {width:25px;height:25px}
}
@media(max-height:700px) {
  :root {--header:65px;--nav:calc(65px + env(safe-area-inset-bottom))}
  .home {gap:6px;padding-top:5px}.home .home-heading {min-height:43px}.home .home-heading h1 {font-size:29px}.home #favorites {min-height:31px}.home #favorites button {min-height:28px;font-size:11px}.home-view-switch {min-height:41px}.home-view-switch button {min-height:31px;font-size:14px}.home .week-title {min-height:37px}.home .week-title h2 {font-size:16px}.forecast-tabs {min-height:49px}.forecast-tabs>button {min-height:39px;font-size:14px}.forecast-tabs>button::before {width:21px;height:21px}.home .forecast-day {min-height:76px}.home .home-actions button {min-height:40px}.home .forecast-footer .week-note {font-size:9px}
  .sea-heading {min-height:40px}.sea-heading h1 {font-size:28px}.sea-screen {gap:7px}.sea-screen .sea-links {min-height:316px;flex-basis:316px;grid-template-rows:repeat(4,minmax(73px,1fr));gap:7px}.sea-screen .sea-link-card {min-height:73px;padding:9px 10px}.sea-screen .sea-link-card strong {font-size:19px}.sea-screen .sea-link-card small {font-size:10px;margin-top:3px}.sea-place-label {min-height:40px}.sea-add-place {min-height:40px;font-size:16px}
  .records-heading,.reports-heading {min-height:120px}.records-heading h1,.reports-heading h1 {font-size:32px}
  .bottom-nav button {min-height:49px;font-size:10px}.bottom-nav button span {height:25px}.bottom-nav button span::after {width:23px;height:23px}
}
@media(max-width:360px) {
  body>header {gap:7px;padding-inline:10px}.basugil-brand {font-size:27px}.basugil-brand::after {top:27px;left:12px;width:44px}.basugil-brand small {font-size:7px}#searchForm input {font-size:12px}#searchForm {padding-inline:8px}
  .home,.sea-screen,.records-screen,.reports-screen {padding-inline:10px}.home .week-title h2 {font-size:16px}.home .wind-time {font-size:11px}.home .wind-time input {width:86px;font-size:13px}.home .forecast-value b {font-size:22px}.home .daily-peak b {font-size:21px}.forecast-tabs>button {font-size:14px;gap:4px}.forecast-tabs>button::before {width:21px;height:21px}.home .home-heading h1 {font-size:30px;max-width:62%}.home .update {font-size:9px}
  .map-plan label {padding-inline:6px}.map-plan input,.map-plan select,.map-plan #openEntryTime {font-size:12px}.map-plan span {font-size:10px}.map-dock .summary-right {max-width:none}.map-dock #details,.map-dock #briefing {padding-inline:6px;font-size:11px}.map-dock .summary strong {font-size:27px}.map-dock #windyCurrent {font-size:11px}.map-dock .departure-tools {gap:3px}
  .sea-screen .sea-link-card strong {font-size:19px}.sea-screen .sea-link-card small {font-size:10px;max-width:80px}
  #recordStats>.record-stat {padding-left:42px}#recordStats>.record-stat::before {left:8px;width:27px}#recordStats>.record-stat strong {font-size:24px}#recordStats>.record-stat small {font-size:11px}.records-month-tools input {font-size:14px}.records-empty strong {font-size:21px}
}
@media(prefers-reduced-motion:reduce) {
  html {scroll-behavior:auto}.screen {animation:none}*,*::before,*::after {transition:none!important;animation:none!important}.sea-link-card:active,.record-primary:active,.reports-primary:active,.home-actions button:active {scale:none}
}
@media(max-width:335px) {
  .forecast-tabs>button {font-size:13px;gap:3px;padding-inline:2px;min-width:0}.forecast-tabs>button::before {width:18px;height:18px}
}
/* Keep the retained compact-screen rules from overriding the new sea controls. */
:root {--sea-location-height:49px;--sea-search-height:48px}
.sea-screen .sea-place-label {min-height:var(--sea-location-height);padding:9px 14px;margin:0}
.sea-screen .sea-place-search>.sea-add-place {min-height:var(--sea-search-height);padding:10px 12px;margin:0}
.sea-screen .sea-place-search[open]>.sea-add-place {background-image:var(--waves),var(--deep);background-position:bottom;background-size:auto 100%,100%;color:#fff;margin-bottom:8px}
@media(max-width:600px) {:root {--sea-location-height:44px;--sea-search-height:44px}}
@media(max-height:700px) {:root {--sea-location-height:40px;--sea-search-height:40px}.sea-screen .sea-place-search>.sea-add-place {padding-block:8px}}

/* 3.34: reserve four complete day rows on the phone. Calendar uses the same
   expandable middle track. The seven-day data and all click handlers stay intact. */
@media(max-width:800px) {
  #view-home {
    display:grid;grid-template-columns:minmax(0,1fr);
    grid-template-rows:36px 30px 36px minmax(0,1fr) 38px;
    gap:5px;padding:6px 13px;min-height:0;overflow:hidden;
  }
  #view-home .home-heading {grid-row:1;min-height:0;height:100%;margin:0;gap:8px}
  #view-home .home-heading h1 {font-size:30px;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:70%;margin:0;letter-spacing:-1.2px}
  #view-home .place-heading-meta {display:flex;align-items:center;gap:5px}
  #view-home #saveFavorite {width:29px;height:29px;min-width:29px;min-height:29px;font-size:23px;padding:0}
  #view-home .update {font-size:10px;line-height:1.3;padding:3px 5px}
  #view-home #favorites {grid-row:2;min-height:0;height:30px;margin:0;padding:0;gap:7px;align-items:center}
  #view-home #favorites button {min-height:27px;height:27px;padding:3px 10px;font-size:12px;line-height:1.3;flex:none}
  #view-home .home-view-switch {grid-row:3;min-height:0;height:36px;padding:3px;border-radius:14px;gap:4px}
  #view-home .home-view-switch button {min-height:0;height:27px;padding:2px 5px;font-size:14px;line-height:1.2;border-radius:10px;gap:7px}
  #view-home .home-view-switch button::before {width:16px;height:16px}
  #view-home #homeWeekly,#view-home #homeCalendar {grid-row:4;min-height:0;height:100%;margin:0}
  #view-home .home-weekly {
    display:grid;grid-template-columns:minmax(0,1fr);
    grid-template-rows:32px 40px 17px minmax(0,1fr) 22px;gap:4px;
  }
  #view-home .week-title {grid-row:1;min-height:0;height:32px;padding:0 2px;gap:7px}
  #view-home .week-title h2 {font-size:17px;line-height:1.2;margin:0;white-space:nowrap}
  #view-home .week-title h2::after {display:none}
  #view-home .wind-time {font-size:12px;margin:0 0 0 auto;gap:5px;line-height:1.2}
  #view-home .wind-time input {min-height:0;height:32px;width:97px;padding:3px 6px;max-width:100px;font-size:14px;line-height:1.2;border-radius:10px}
  #view-home #retryTides {min-height:0;height:32px;width:27px;min-width:27px;font-size:24px;padding:0}
  #view-home .forecast-tabs {grid-row:2;min-height:0;height:40px;padding:3px;gap:3px;border-radius:14px}
  #view-home .forecast-tabs>button {min-height:0;height:32px;padding:2px 4px;font-size:15px;line-height:1.2;border-radius:11px;gap:6px}
  #view-home .forecast-tabs>button::before {width:21px;height:21px}
  #view-home .forecast-head {grid-row:3;min-height:0;height:17px;padding:0 10px;font-size:11px;line-height:1.3;grid-template-columns:33px minmax(0,1fr);gap:10px}
  #view-home .week-overview {
    grid-row:4;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:none;
    grid-auto-flow:row;grid-auto-rows:calc((100% - 18px) / 4);row-gap:6px;
    align-content:start;min-height:0;height:100%;padding:0 1px;margin:0;overflow-y:auto;overflow-x:hidden;
    scroll-snap-type:y proximity;scroll-padding:0;overscroll-behavior-y:contain;
  }
  #view-home .forecast-day {
    min-height:0;height:100%;max-height:none;margin:0;padding:4px 10px;
    grid-template-columns:33px minmax(0,1fr);gap:10px;border-radius:13px;align-items:center;
    scroll-snap-align:start;scroll-margin:0;box-shadow:0 2px 6px #0a628710;
  }
  #view-home .forecast-date {justify-content:center;gap:1px}
  #view-home .forecast-date strong {font-size:23px;line-height:1}
  #view-home .forecast-date small {font-size:11px;line-height:1.2}
  #view-home .forecast-columns {gap:10px;min-width:0}
  #view-home .forecast-value {gap:1px;justify-content:center}
  #view-home .forecast-value b {font-size:22px;line-height:1.05;letter-spacing:-.6px}
  #view-home .forecast-value b small {font-size:11px;line-height:1}
  #view-home .daily-peak b {font-size:22px}
  #view-home .forecast-value>span {font-size:11px;line-height:1.15}
  #view-home .tide-high,#view-home .tide-low {gap:2px}
  #view-home .forecast-footer {grid-row:5;min-height:0;height:22px;margin:0;padding:0 2px;gap:6px;flex-wrap:nowrap;align-items:center;overflow:hidden}
  #view-home .forecast-footer .week-note {font-size:10px;line-height:1.3;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;flex:1}
  #view-home .text-help {font-size:10px;line-height:1.3;min-height:0;height:22px;padding:0;white-space:nowrap;flex:none}
  #view-home .home-actions {grid-row:5;min-height:0;height:38px;padding:0;margin:0;gap:9px}
  #view-home .home-actions button {min-height:0;height:38px;font-size:13px;line-height:1.2;padding:4px 8px;border-radius:12px}
}
@media(max-width:800px) and (max-height:650px) {
  #view-home {grid-template-rows:30px 26px 32px minmax(0,1fr) 34px;gap:3px;padding-block:4px}
  #view-home .home-heading h1 {font-size:27px}
  #view-home #favorites {height:26px}#view-home #favorites button {height:25px;min-height:25px;font-size:11px;padding:2px 9px}
  #view-home .home-view-switch {height:32px;padding:2px}#view-home .home-view-switch button {height:26px;font-size:13px}
  #view-home .home-weekly {grid-template-rows:28px 34px 14px minmax(0,1fr) 18px;gap:3px}
  #view-home .week-title {height:28px}#view-home .week-title h2 {font-size:15px}#view-home .wind-time input {height:28px;font-size:13px}
  #view-home #retryTides {height:28px;font-size:22px}#view-home .forecast-tabs {height:34px;padding:2px}#view-home .forecast-tabs>button {height:28px;font-size:14px}
  #view-home .forecast-tabs>button::before {width:19px;height:19px}
  #view-home .forecast-head {height:14px;font-size:10px}
  #view-home .forecast-day {padding-block:3px}#view-home .forecast-value b,#view-home .daily-peak b {font-size:20px;line-height:1}
  #view-home .tide-high,#view-home .tide-low {gap:1px}#view-home .forecast-date strong {font-size:21px}
  #view-home .forecast-footer,#view-home .text-help {height:18px}
  #view-home .home-actions,#view-home .home-actions button {height:34px}#view-home .home-actions button {font-size:12px}
}
@media(max-width:360px) {
  #view-home {padding-inline:10px}
  #view-home .home-heading h1 {font-size:27px;max-width:64%}
  #view-home .week-title h2 {font-size:15px}#view-home .wind-time {font-size:11px;gap:3px}
  #view-home .wind-time input {width:86px;font-size:13px}
  #view-home .forecast-tabs>button {font-size:13px;gap:4px}#view-home .forecast-tabs>button::before {width:19px;height:19px}
  #view-home .forecast-value b,#view-home .daily-peak b {font-size:20px}
  #view-home .forecast-value b small {font-size:10px}#view-home .forecast-value>span {font-size:10px}
  #view-home .home-actions button {font-size:12px}
}

/* Locally embedded nautical line icons. No external icon request. */
:root {
  --sun-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%224%22%2F%3E%3Cpath%20d%3D%22M12%201v3m0%2016v3M1%2012h3m16%200h3M4.2%204.2l2.1%202.1m11.4%2011.4%202.1%202.1M4.2%2019.8l2.1-2.1M17.7%206.3l2.1-2.1%22%2F%3E%3C%2Fsvg%3E");
  --wave-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M2%206c3.3-4%206.7%204%2010%200s6.7%204%2010%200M2%2012c3.3-4%206.7%204%2010%200s6.7%204%2010%200M2%2018c3.3-4%206.7%204%2010%200s6.7%204%2010%200%22%2F%3E%3C%2Fsvg%3E");
  --wind-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M2%208h13a3%203%200%201%200-3-3M2%2012h17a3%203%200%201%201-3%203M2%2016h7a3%203%200%201%201-3%203%22%2F%3E%3C%2Fsvg%3E");
  --calendar-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%224%22%20width%3D%2218%22%20height%3D%2218%22%20rx%3D%223%22%2F%3E%3Cpath%20d%3D%22M7%202v5m10-5v5M3%2010h18M7%2014h1m4%200h1m4%200h1M7%2018h1m4%200h1m4%200h1%22%2F%3E%3C%2Fsvg%3E");
  --map-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m3%208%205-2%208%203%205-2v14l-5%202-8-3-5%202V8Zm5-2v14m8-11v14%22%2F%3E%3Cpath%20d%3D%22M15%205c0%203-4%206-4%206S7%208%207%205a4%204%200%200%201%208%200Z%22%2F%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%225%22%20r%3D%221%22%2F%3E%3C%2Fsvg%3E");
  --route-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M6%2020h10a4%204%200%200%200%200-8H8a4%204%200%200%201%200-8h7%22%2F%3E%3Ccircle%20cx%3D%225%22%20cy%3D%2220%22%20r%3D%222%22%2F%3E%3Cpath%20d%3D%22M22%205c0%203-4%206-4%206s-4-3-4-6a4%204%200%200%201%208%200Z%22%2F%3E%3Ccircle%20cx%3D%2218%22%20cy%3D%225%22%20r%3D%221%22%2F%3E%3C%2Fsvg%3E");
  --flag-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M5%2022V3c5-5%209%205%2015%200v12c-6%205-10-5-15%200%22%2F%3E%3C%2Fsvg%3E");
  --record-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%225%22%20y%3D%222%22%20width%3D%2215%22%20height%3D%2221%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M9%207h7M9%2012h7M9%2017h5M2%206h3m-3%206h3m-3%206h3%22%2F%3E%3C%2Fsvg%3E");
}
