:root{color-scheme:dark;--bg:#07121e;--panel:#101e2e;--panel2:#14263a;--border:#263b51;--text:#f1f7fc;--muted:#9eb2c5;--cyan:#48d0eb;--blue:#78aafa;--amber:#ffba69;--green:#79ddbd;--yellow:#fce37b;--head:#091827;--shadow:0 10px 30px #0002}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Noto Sans JP",Meiryo,sans-serif;line-height:1.55;-webkit-font-smoothing:antialiased}button,select,input{font:inherit}button{cursor:pointer}button:focus-visible,select:focus-visible,input:focus-visible,a:focus-visible{outline:3px solid var(--yellow);outline-offset:3px}a{color:var(--cyan)}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.hidden{display:none!important}.app-header{background:#06121e;border-bottom:1px solid #22354a;position:sticky;top:0;z-index:40}.header-inner{max-width:1050px;margin:auto;display:flex;align-items:center;gap:10px;padding:12px 18px}.brandmark{width:40px;height:40px;border:1px solid #286c83;border-radius:13px;display:grid;place-items:center;color:var(--cyan)}.brandmark svg{width:26px}.brand{display:flex;flex-direction:column;line-height:1.2}.brand strong{font-size:16px;letter-spacing:.05em;white-space:nowrap}.brand strong span{color:var(--cyan)}.brand small{font-size:9px;letter-spacing:.13em;color:var(--muted);margin-top:5px}.refresh{margin-left:auto;background:#16293b;color:var(--text);border:1px solid var(--border);width:42px;height:42px;border-radius:12px;font-size:28px}.layout{max-width:1050px;margin:auto;padding:16px 14px 108px;display:flex;flex-direction:column;gap:13px}.eyebrow{font-size:10px;letter-spacing:.14em;font-weight:800;color:#83a6c0}.location-bar{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.spot-choice{position:relative;display:inline-block}.spot-choice select{appearance:none;background:transparent;border:0;color:var(--text);font-size:clamp(22px,6vw,32px);font-weight:850;max-width:78vw;min-width:230px;padding:1px 26px 1px 0}.spot-choice select option{background:var(--panel);font-size:16px}.down-arrow{position:absolute;right:0;top:0;font-size:28px;color:var(--cyan);pointer-events:none}.spot-note{color:var(--muted);font-size:11px;margin-top:3px}.live-pill,.chip{border:1px solid var(--border);border-radius:30px;padding:5px 9px;color:var(--muted);font-size:11px;white-space:nowrap}.live-pill{margin-top:8px}.live-pill.ok{color:var(--green);border-color:#295f53}.live-pill.error{color:#ff9a9f;border-color:#6b3741}.date-bar{display:flex;align-items:center;background:var(--panel);border:1px solid var(--border);border-radius:13px;min-height:55px;gap:2px;padding:4px}.navbtn{background:var(--panel2);border:0;border-radius:9px;color:var(--text);font-size:27px;width:42px;min-width:42px;height:43px}.navbtn:disabled{opacity:.3}.date-center{flex:1;display:grid;align-items:center;justify-content:center;position:relative;min-width:0;text-align:center}.date-center span{font-size:16px;font-weight:780;white-space:nowrap}.date-center input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.today-btn{background:#154e65;color:#dffbff;border:1px solid #297e99;font-size:12px;font-weight:750;border-radius:9px;height:42px;padding:0 12px}.overview,.chart-panel,.selected-panel,.observation-panel,.source-panel,.calendar-panel,.points-panel,.settings-panel{border:1px solid var(--border);border-radius:16px;background:var(--panel);box-shadow:var(--shadow);overflow:hidden}.overview,.selected-panel,.observation-panel,.source-panel,.calendar-panel,.points-panel,.settings-panel{padding:16px}.overview-top,.panel-head{display:flex;align-items:center;justify-content:space-between;gap:9px}.overview h1,.panel-head h2,.source-panel h2{margin:0;font-size:19px;letter-spacing:.02em}.minor{font-size:11px;font-weight:500;color:var(--cyan);border:1px solid #25617a;border-radius:5px;padding:2px 4px;vertical-align:middle}.hero-stats{display:flex;justify-content:space-between;gap:10px;margin:16px 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border);padding:10px 2px}.hero-stats>div{display:flex;flex-direction:column;flex:1}.hero-stats span{font-size:11px;color:var(--muted)}.hero-stats strong{font-size:16px;font-variant-numeric:tabular-nums}.events{display:flex;gap:7px;flex-wrap:wrap;min-height:38px}.event{display:flex;gap:7px;align-items:center;padding:6px 9px;background:var(--panel2);border-radius:8px;border:1px solid var(--border);font-size:13px}.event strong{font-variant-numeric:tabular-nums}.event.high .event-type{color:var(--amber)}.event.low .event-type{color:var(--blue)}.placeholder{color:var(--muted);font-size:12px}.status-note{font-size:11px;color:var(--muted);margin:9px 0 0;line-height:1.7}.chart-panel{padding-bottom:12px}.chart-panel .panel-head,.chart-panel .chart-help,.legend,.chart-panel .status-note{margin-left:14px;margin-right:14px}.chart-panel .panel-head{padding-top:14px}.hour-pill{padding:7px 12px;border-radius:9px;background:#234c59;color:#defaff;font-weight:850;font-size:19px;font-variant-numeric:tabular-nums}.chart-help{font-size:11px;color:var(--muted);margin-top:6px}.timeline-viewport{overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-color:#4f6984 var(--panel);touch-action:pan-x pan-y;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}.timeline{width:max-content;position:relative}.hour-header{height:35px;display:flex;background:#17283a;border-bottom:1px solid #34475d}.hcell{width:52px;min-width:52px;border:0;border-left:1px solid #2d4055;background:transparent;color:#bfd0e0;font-size:11px;cursor:pointer}.hcell.selected{color:#ffe894;background:#374759;font-weight:900}.chart-svg{display:block;background:linear-gradient(#101e2e,#12253a)}.chart-svg text{fill:#8faac0;font-family:inherit;font-size:10px}.chart-svg .gridline{stroke:#263a4e;stroke-width:1}.chart-svg .tide-line{fill:none;stroke:var(--cyan);stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.chart-svg .tide-fill{fill:#39bdd5;opacity:.13}.chart-svg .cursor{stroke:var(--yellow);stroke-width:2;stroke-dasharray:4 4}.chart-svg .event-high{fill:var(--amber)}.chart-svg .event-low{fill:var(--blue)}.chart-svg .hour-target{fill:transparent;cursor:pointer}.forecast-table{display:grid;font-size:12px}.forecast-row{display:flex;height:43px;border-top:1px solid #243b52}.forecast-label{position:sticky;left:0;z-index:3;width:93px;min-width:93px;background:#1a3147;color:#d9e9f8;font-weight:700;font-size:11px;padding:10px 5px;border-right:1px solid #344e65}.forecast-cell{width:52px;min-width:52px;border:0;border-right:1px solid #2b4054;display:grid;place-items:center;align-content:center;background:transparent;color:var(--text);font-size:11px;font-weight:680;font-variant-numeric:tabular-nums;padding:1px;line-height:1.3}.forecast-cell.selected{background:#314456;color:#fff2a5}.forecast-cell .arrow{display:block;color:var(--cyan);font-size:15px;font-weight:800;line-height:1}.forecast-cell.missing{color:#748da3}.legend{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px;font-size:10px;color:var(--muted)}.legend span{display:flex;gap:4px;align-items:center}.legend i{display:inline-block;width:14px;height:3px}.linecyan{background:var(--cyan)}.lineyellow{background:var(--yellow)}.dotorange{background:var(--amber);border-radius:50%;height:8px!important;width:8px!important}.dotblue{background:var(--blue);border-radius:50%;height:8px!important;width:8px!important}.selection-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:14px 0}.metric{padding:11px 10px;border:1px solid var(--border);border-radius:10px;background:var(--panel2);min-width:0}.metric span{display:block;font-size:11px;color:var(--muted)}.metric strong{display:block;font-size:18px;font-variant-numeric:tabular-nums;white-space:nowrap;margin-top:4px}.metric small{display:block;color:var(--muted);font-size:10px;margin-top:2px}.source-summary{font-size:11px;color:var(--muted);line-height:1.7;border-top:1px solid var(--border);padding-top:8px}.observation-panel p,.source-panel p,.settings-panel p{font-size:12px;color:var(--muted)}.amber{color:var(--amber);border-color:#715331}.external-row{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.external-row a{border:1px solid #326076;background:#163649;border-radius:8px;padding:9px 11px;text-decoration:none;font-size:11px;font-weight:700;min-height:39px}.source-row{display:flex;gap:10px;justify-content:space-between;align-items:center;border-bottom:1px solid var(--border);padding:9px 0;font-size:12px}.source-row span{color:var(--muted);text-align:right}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;margin-top:14px}.cal-head{color:var(--muted);text-align:center;font-size:10px}.cal-day{border:1px solid var(--border);background:var(--panel2);color:var(--text);border-radius:8px;min-height:65px;padding:5px 1px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start}.cal-day strong{font-size:13px}.cal-day small{font-size:9px;color:var(--muted)}.cal-day.active{border-color:var(--yellow);background:#3b3b36}.cal-day:disabled{opacity:.25}.point{width:100%;text-align:left;border:1px solid var(--border);background:var(--panel2);color:var(--text);border-radius:10px;padding:13px;margin-top:7px}.point b{display:block}.point small{color:var(--muted)}.setting-row{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border);padding:15px 0}.setting-row select{background:var(--panel2);border:1px solid var(--border);border-radius:8px;color:var(--text);padding:9px}.secondary-btn{padding:10px;border-radius:8px;background:var(--panel2);border:1px solid var(--border);color:var(--text);margin-top:15px}.bottom-nav{position:fixed;z-index:45;bottom:0;left:0;right:0;display:flex;justify-content:center;background:#081727ed;backdrop-filter:blur(14px);border-top:1px solid #294156;padding:6px max(10px,env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left))}.bottom-nav button{background:none;border:0;color:var(--muted);flex:1;max-width:180px;display:flex;flex-direction:column;gap:1px;align-items:center;justify-content:center;min-height:53px;font-size:11px}.bottom-nav button span{font-size:23px;line-height:1}.bottom-nav button.active{color:var(--cyan);font-weight:800}.toast{position:fixed;z-index:90;bottom:90px;left:50%;transform:translateX(-50%);background:#244256;color:#fff;border:1px solid #4688a1;box-shadow:var(--shadow);border-radius:12px;padding:12px;min-width:min(350px,90vw);font-size:12px;text-align:center}.light{color-scheme:light;--bg:#eaf2f8;--panel:#fff;--panel2:#f1f7fb;--border:#c6d9e6;--text:#163047;--muted:#526b7f;--cyan:#007b9b;--blue:#286ea6;--amber:#ae5a07;--green:#18724d;--yellow:#a37800;--head:#edf5fb;--shadow:0 7px 20px #21507518}.light .app-header,.light .bottom-nav{background:#f5faffef}.light .date-bar,.light .forecast-label,.light .hour-header{background:#e5f0f7;color:var(--text)}.light .navbtn,.light .refresh{background:#e5f0f7;color:var(--text)}.light .chart-svg{background:#f5fafc}.light .chart-svg .tide-fill{opacity:.23}.light .forecast-cell.selected,.light .hcell.selected{background:#fff1b1;color:#34321a}.light .cal-day.active{background:#fff1b1}.light .hour-pill{color:#defaff}.light .external-row a{color:#075e7d;background:#e4f3f9}.light .overview .minor{color:#007b9b}.light .spot-choice select option{background:white;color:#163047}@media(min-width:720px){.layout{padding:22px 25px 110px}.selection-grid{grid-template-columns:repeat(6,minmax(0,1fr))}.calendar-grid{gap:10px}.cal-day{min-height:80px}.brand strong{font-size:19px}.forecast-label{width:115px;min-width:115px}.hcell,.forecast-cell{width:62px;min-width:62px}}@media(max-width:360px){.selection-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.brand small{font-size:8px}.overview,.selected-panel,.observation-panel,.source-panel,.calendar-panel,.points-panel,.settings-panel{padding:12px}.event{font-size:11px}}

.week-heading{font-size:14px;margin:18px 0 8px}.week-list{border:1px solid var(--border);border-radius:10px;overflow:hidden}.week-row{display:grid;grid-template-columns:1.2fr .9fr .9fr 1fr;align-items:center;gap:4px;padding:10px 8px;font-size:11px;border-top:1px solid var(--border)}.week-row:first-child{border-top:0}.week-row:nth-child(even){background:var(--panel2)}.week-row b{font-size:12px}.week-row span{text-align:right;font-variant-numeric:tabular-nums}.week-row.head{background:#26465a;color:#e6f7fd;font-weight:750}.week-row.head span{font-size:10px}.light .week-row.head{background:#d2e9f5;color:#163047}

/* v1.8 — BI-inspired readable overview; original iconography, no proprietary graphic assets. */
.overview{background:linear-gradient(160deg,#122c47 0%,#0b1c30 100%);border-color:#31516c;padding:15px 13px 16px}
.overview-top{align-items:flex-start}
.overview h1{font-size:20px;line-height:1.35}
.tide-day{display:flex;flex-direction:column;align-items:center;justify-content:center;flex:0 0 104px;border-radius:10px;border:1px solid #8cb5c6;background:linear-gradient(150deg,#2a5269,#14354f);min-height:68px;text-align:center;padding:6px 3px}
.tide-day strong{font-size:25px;line-height:1.18;color:#fff3b3;letter-spacing:.06em;text-shadow:0 1px 7px #08121f}
.tide-day small{font-size:9px;color:#d2e5f0;margin-top:5px;line-height:1.25}
.flow-summary{border:1px solid #466c82;background:#081b2e;border-radius:11px;padding:10px 12px;margin-top:12px}
.flow-head{display:flex;gap:10px;align-items:center;justify-content:space-between}
.flow-head>div{display:flex;flex-direction:column;min-width:0}
.flow-head small{font-size:10px;color:#a9c6d7;font-weight:650}
.flow-head strong{font-size:23px;font-variant-numeric:tabular-nums;font-weight:850;white-space:nowrap}
.flow-head .flow-direction{text-align:right;align-items:flex-end}
.flow-head .flow-direction strong{color:#a8eea8}
.flow-head .flow-direction strong.flow-falling{color:#99c5ff}
.flow-track{height:8px;background:#254157;border-radius:12px;overflow:hidden;margin:9px 0 5px}
.flow-track span{display:block;width:0;height:100%;background:linear-gradient(90deg,#36bfc5,#b1f5af);border-radius:12px;transition:width .15s ease}
.flow-track span.falling{background:linear-gradient(90deg,#478cc2,#a6c8ff)}
.flow-explanation{font-size:10px;color:#a6bccf;line-height:1.5;display:block}
.hero-stats{margin:10px 0 8px;border:0;padding:4px 2px 7px}
.hero-stats>div{gap:2px}
.hero-stats span{color:#9ac2da}
.hero-stats strong{font-size:16px;color:#f2fcff}
.day-graph{background:#0c2137;border:1px solid #304c67;border-radius:11px;margin:0 -4px 10px;min-height:215px;overflow:hidden}
.day-graph.empty{display:flex;align-items:center;justify-content:center;color:#b4c9d8;font-size:12px;padding:20px}
.day-svg{width:100%;height:auto;display:block;max-height:312px;font-family:inherit;touch-action:manipulation}
.day-grid{stroke:#37607b;stroke-width:.8;stroke-dasharray:2 3}
.day-vertical{stroke:#27455d;stroke-width:.7}
.day-line{stroke:#f8e47a;stroke-width:2.9;fill:none;stroke-linecap:round;stroke-linejoin:round}
.day-area{fill:#d3bb45;opacity:.12}
.day-cursor{stroke:#79d8f4;stroke-width:1.4;stroke-dasharray:3 3}
.day-selected{fill:#53dcff;stroke:#fff;stroke-width:2.2}
.day-high{fill:#ffbb62;stroke:#fff2cb;stroke-width:1.2}
.day-low{fill:#57c5ff;stroke:#d6f5ff;stroke-width:1.2}
.day-bubble-high{fill:#5c3715;stroke:#fbb865;stroke-width:1}
.day-bubble-low{fill:#124775;stroke:#6cbfff;stroke-width:1}
.day-svg .axis-label,.day-svg .time-label,.day-svg .axis-title{fill:#bbd2e4;font-size:10px}
.day-svg .axis-title{fill:#d7e7f0;font-weight:750}
.day-svg .event-time{fill:#fff;font-size:11px;font-weight:850}
.day-svg .event-height{fill:#e8f6ff;font-size:10px;font-weight:750}
.day-svg .day-time-pill{fill:#256f9b;stroke:#70d6f4;stroke-width:.7}
.day-svg .day-time-text{fill:#fff;font-size:10px;font-weight:850}
.day-hit{cursor:pointer}
.day-hit:focus{outline:none;stroke:#eefbff;stroke-width:1}
.overview .events{margin-top:4px;gap:5px}
.overview .event{flex:1 1 46%;justify-content:center;gap:5px;min-height:33px;font-size:12px;padding:5px 4px;background:#152e49;border-color:#32516c}
.chart-panel{background:#0e2033;border-color:#304a60}
.chart-panel .panel-head h2{font-size:18px}
/* The compact 24-hour chart above is the sole tide graph; below is an hourly data matrix. */
.timeline .chart-svg{display:none}
.forecast-row{height:45px}
.forecast-label{color:#eefaff;font-size:11px}
.forecast-cell{font-size:12px}
.forecast-cell.selected{background:#385775;box-shadow:inset 0 0 0 1px #9fcde9;color:#fff3ae}
.hcell.selected{background:#355b78;color:#fff2aa}
.cal-day .cal-tide{display:inline-flex;padding:2px 5px;border-radius:5px;background:#255578;color:#effaff;font-weight:800;font-size:10px;margin:3px 0}
.cal-day.active .cal-tide{background:#2a7796}
.light .overview{background:linear-gradient(150deg,#f1faff,#dceff8);border-color:#a4c7dc}
.light .tide-day{background:#d4eaf7;border-color:#6a9ab8}
.light .tide-day strong{color:#20516f;text-shadow:none}
.light .tide-day small{color:#436d80}
.light .flow-summary{background:#e6f3fb;border-color:#b1cdda}
.light .flow-head small,.light .flow-explanation{color:#466679}
.light .flow-head .flow-direction strong{color:#16744e}
.light .flow-head .flow-direction strong.flow-falling{color:#185f9e}
.light .flow-track{background:#cee0ee}
.light .hero-stats span{color:#365d72}
.light .hero-stats strong{color:#123849}
.light .day-graph{background:#eef8fc;border-color:#afcedd}
.light .day-grid{stroke:#aec8d9}.light .day-vertical{stroke:#ccdee8}
.light .day-svg .axis-label,.light .day-svg .time-label,.light .day-svg .axis-title{fill:#345d70}
.light .day-line{stroke:#d09919}.light .day-area{fill:#e3b83e;opacity:.15}
.light .overview .event{background:#e8f5fb;border-color:#b5d5e7}
.light .chart-panel{background:#fff}
.light .cal-day .cal-tide{background:#d1ebf8;color:#215474}
@media (max-width:400px){.overview{padding:12px 9px}.tide-day{flex-basis:94px}.tide-day strong{font-size:23px}.overview h1{font-size:18px}.minor{display:block;width:max-content;margin-top:5px}.flow-head strong{font-size:21px}.day-graph{margin:0 -1px 10px}}

@media(max-width:719px){.hcell,.forecast-cell{width:76px;min-width:76px}}
@media(min-width:720px){.hcell,.forecast-cell{width:84px;min-width:84px}}
@media(max-width:400px){.location-bar{flex-wrap:wrap}.location-bar>div:first-child{min-width:0;max-width:100%}.spot-choice select{min-width:0;max-width:calc(100vw - 50px)}.live-pill{margin:0}.date-center span{font-size:14px}}

/* v2.0 — cleaner BI-like UI, icon-rich, reduced explanatory copy */
.spot-note[hidden]{display:none!important}
.overview-top .eyebrow,.panel-head .eyebrow{letter-spacing:.16em}
.minor{background:linear-gradient(180deg,#173d52,#102e44);border-color:#2d6e86;color:#dff8ff;font-weight:700;padding:3px 7px;border-radius:999px}
.chart-panel .panel-head,.selected-panel .panel-head,.observation-panel .panel-head,.source-panel h2{position:relative}
.chart-panel,.selected-panel,.observation-panel,.source-panel{background:linear-gradient(180deg,#0e2135 0%,#0b1a2a 100%);border-color:#31516b}
.selected-panel{padding-top:14px}
.selection-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.metric{background:linear-gradient(180deg,#18324a 0%,#122639 100%);border-color:#294b66;border-radius:14px;box-shadow:inset 0 1px 0 #ffffff0d}
.metric span{display:flex;align-items:center;gap:6px;font-size:12px;color:#d6e8f3;font-weight:700}
.metric .micon{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:8px;background:#214863;font-style:normal;font-size:13px;box-shadow:inset 0 1px 0 #ffffff14}
.metric strong{font-size:21px;line-height:1.15;margin-top:7px}
.metric small:empty{display:none}
.forecast-label{font-size:12px;font-weight:800;color:#eefbff}
.forecast-label,.hcell,.forecast-cell{min-height:46px}
.forecast-label.row-weather,.forecast-cell.weather{background:linear-gradient(180deg,#173b52 0%,#112f42 100%)}
.forecast-cell .wx{font-size:18px;display:block;line-height:1.1}
.forecast-cell .wx-name{display:block;font-size:10px;color:#d6e8f3;margin-top:3px}
.forecast-cell.weather{line-height:1.1}
.forecast-cell.wind,.forecast-cell.wave,.forecast-cell.period,.forecast-cell.rain,.forecast-cell.temp,.forecast-cell.flow,.forecast-cell.wavedir,.forecast-cell.winddir{font-weight:700}
.external-row a{display:inline-flex;align-items:center;gap:7px;border-radius:12px;padding:10px 12px;font-size:12px;background:linear-gradient(180deg,#16364a,#122c3d)}
.source-panel h2::before{content:'📡 ';}
.source-row{padding:11px 0;font-size:13px}
.source-row b{font-weight:800}
.source-row span{color:#d2e7f5;font-variant-numeric:tabular-nums}
.observation-panel p:empty,.source-summary:empty,.chart-note:empty{display:none}
.point{background:linear-gradient(180deg,#173147 0%,#112538 100%);border-radius:14px;border-color:#2b4962}
.point b{font-size:15px}
.point small{display:block;margin-top:4px}
.live-pill{background:#112738;border-color:#27445a;color:#dff6ff}
.date-bar,.location-bar>.live-pill,.overview,.chart-panel,.selected-panel,.observation-panel,.source-panel{box-shadow:0 10px 30px #0000002a}
.light .minor{background:#d9eef8;border-color:#a5cfdf;color:#27546c}
.light .chart-panel,.light .selected-panel,.light .observation-panel,.light .source-panel{background:linear-gradient(180deg,#ffffff 0%,#f4fbff 100%);border-color:#b8d4e4}
.light .metric{background:linear-gradient(180deg,#f9fdff 0%,#ecf6fb 100%);border-color:#bfd9e7}
.light .metric span{color:#35576d}
.light .metric .micon{background:#dbeef8}
.light .forecast-label.row-weather,.light .forecast-cell.weather{background:#f0f8fd}
.light .source-row span{color:#35576d}
@media(min-width:720px){.selection-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:420px){.forecast-cell .wx-name{font-size:9px}.metric strong{font-size:19px}.external-row a{padding:9px 10px;font-size:11px}}

/* v2.1 — elegant BI-like blue styling with deeper contrast and refined surfaces */
:root{--bg:#08111d;--panel:#0f1d2d;--panel2:#13273b;--panel3:#183149;--border:#314c66;--text:#f4f8fc;--muted:#afc4d8;--cyan:#56d8fb;--blue:#71b6ff;--amber:#ffd36f;--gold:#f4b347;--shadow:0 18px 40px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.04)}
body{background:radial-gradient(circle at 50% 0,#15314a 0%,#0b1726 480px,#08111d 1100px) fixed}
.app-header{background:linear-gradient(180deg,rgba(8,18,31,.96),rgba(9,20,34,.90));backdrop-filter:blur(8px);border-bottom:1px solid rgba(86,145,192,.22);box-shadow:0 6px 24px rgba(0,0,0,.25)}
.brand{gap:12px}.brand strong{letter-spacing:.08em}.brand small{color:#cce8f8}
.brandmark{background:radial-gradient(circle at 30% 30%,#214a68,#10263a);border-color:#4f8fb4;box-shadow:0 8px 20px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.10)}
.location-bar .spot-choice select{background:linear-gradient(180deg,#16334b,#10283d);border-color:#406888;color:#f5fbff;box-shadow:inset 0 1px 0 rgba(255,255,255,.06)}
.location-bar .spot-choice::after{color:#dff4ff}
.live-pill{background:linear-gradient(180deg,#12304a,#10283a);border-color:#3d5f7a;color:#e2f8ff;box-shadow:var(--shadow)}
.date-bar{background:linear-gradient(180deg,#13263b,#0f2031);border-color:#395975;box-shadow:var(--shadow)}
.date-center span{font-weight:800;letter-spacing:.03em}
.nav-btn,.today-btn{box-shadow:0 6px 16px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.08)}
.today-btn{background:linear-gradient(180deg,#204d6d,#173d58);border-color:#5788a9;color:#effcff}
.overview,.chart-panel,.selected-panel,.observation-panel,.source-panel{background:linear-gradient(180deg,rgba(16,31,48,.96),rgba(10,22,35,.96));border-color:#355673;box-shadow:var(--shadow)}
.overview{position:relative;overflow:hidden}
.overview::before,.chart-panel::before,.selected-panel::before,.observation-panel::before,.source-panel::before{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(255,255,255,.04),transparent 22%);pointer-events:none}
.overview-top .eyebrow,.panel-head .eyebrow{letter-spacing:.18em;color:#86d8ff}
.minor{background:linear-gradient(180deg,#1c4663,#13344b);border-color:#3b7694;color:#e4f7ff;font-weight:800;padding:4px 9px;border-radius:999px;box-shadow:inset 0 1px 0 rgba(255,255,255,.08)}
.overview-main{gap:14px}
.day-graph{background:linear-gradient(180deg,#0a1b2d,#0a1827);border-color:#365b78;box-shadow:inset 0 1px 0 rgba(255,255,255,.03)}
.day-line{stroke:var(--cyan);stroke-width:3.25;filter:drop-shadow(0 2px 8px rgba(86,216,251,.26))}
.day-area{fill:#1db7df;opacity:.14}
.day-grid{stroke:#ffffff15}.day-axis{stroke:#7eb8d61c}.day-text{fill:#d8ebf7;font-weight:700}.day-label{fill:#99b8cd}.day-current{fill:#7fdfff}.day-event{fill:#ffd97f}
.day-cursor{stroke:#ffd775;stroke-width:1.6;stroke-dasharray:4 4}.day-selected{fill:#ffd775;stroke:#fff2bd;filter:drop-shadow(0 0 6px rgba(255,215,117,.32))}
.day-time-pill{fill:#ffd571;stroke:#f8ecbc}.day-time-text{fill:#21344b;font-weight:900}
.tide-day{background:linear-gradient(180deg,#28445a,#20394c);border-color:#537793;box-shadow:inset 0 1px 0 rgba(255,255,255,.07)}
.tide-day strong{color:#f6fbff;font-size:16px}.tide-day small{color:#d6e8f6}.tide-chip{background:#2c4255;color:#eef6fd;border-color:#4f6f89}
.flow-summary{background:linear-gradient(180deg,#102336,#0d1e30);border-color:#3b5c76;box-shadow:inset 0 1px 0 rgba(255,255,255,.04)}
.flow-summary strong{font-size:16px;color:#fff}.flow-summary span{color:#d7e9f7}.flow-track{background:#17354d;border-color:#456b86}.flow-track span{background:linear-gradient(90deg,#27bfd8,#8fe7ff);box-shadow:0 0 10px rgba(86,216,251,.20)}.flow-track span.falling{background:linear-gradient(90deg,#4796dd,#8ab7ff)}
.chart-panel .panel-head,.selected-panel .panel-head{padding-bottom:10px}
.hour-pill{background:linear-gradient(180deg,#ffe28d,#f7c85a);color:#20334a;box-shadow:0 0 0 1px #e0ab38, 0 6px 16px rgba(0,0,0,.22);font-weight:900}
.hour-header{background:linear-gradient(180deg,#17304a,#12273b);border-bottom:1px solid #35536f}
.forecast-table{border-radius:16px;overflow:hidden;border:1px solid #33526d;box-shadow:inset 0 1px 0 rgba(255,255,255,.03)}
.forecast-row{border-top:1px solid #2f4a61}
.forecast-label{background:linear-gradient(180deg,#19324a,#152b41);border-right:1px solid #3b5d79;color:#f1fbff;display:flex;align-items:center;gap:4px;white-space:nowrap;font-size:12px;font-weight:800}
.forecast-label::before{content:'';display:block;width:4px;height:20px;border-radius:999px;background:linear-gradient(180deg,#7ed8ff,#3879a6);margin-right:2px}
.forecast-cell{background:linear-gradient(180deg,#0f1d2d,#0d1a28);border-right:1px solid #263e55;color:#edf7ff;box-shadow:inset 0 1px 0 rgba(255,255,255,.02)}
.forecast-cell .wx{font-size:18px;display:block;line-height:1.05;filter:drop-shadow(0 1px 2px rgba(0,0,0,.25))}
.forecast-cell .wx-name{display:block;font-size:10px;color:#d1e4f3;margin-top:3px}
.forecast-cell .arrow{color:#a8eaff}
.forecast-cell.selected,.hcell.selected{background:linear-gradient(180deg,#ffe596,#f8cc67)!important;color:#1f3145!important;box-shadow:inset 0 0 0 2px #fff0bc, 0 0 0 1px rgba(0,0,0,.06);font-weight:900}
.forecast-cell.selected .wx-name,.forecast-cell.selected .arrow{color:#1f3145}
.selected-panel{padding-top:14px}
.selection-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.metric{background:linear-gradient(180deg,#173149,#12273b);border-color:#335471;border-radius:16px;box-shadow:var(--shadow)}
.metric span{display:flex;align-items:center;gap:8px;font-size:12px;color:#d9edf8;font-weight:800}
.metric .micon{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:9px;background:linear-gradient(180deg,#224e70,#183a56);font-style:normal;font-size:13px;box-shadow:inset 0 1px 0 rgba(255,255,255,.10)}
.metric strong{font-size:22px;line-height:1.1;margin-top:8px;color:#fff;letter-spacing:.01em}.metric small{color:#8fb7cf}.metric small:empty{display:none}
.metric:hover,.point:hover,.external-row a:hover{transform:translateY(-1px)}
.point{background:linear-gradient(180deg,#183149,#12273b);border-radius:16px;border-color:#365877;box-shadow:var(--shadow)}
.point b{font-size:15px;color:#f8fbff}.point small{display:block;margin-top:4px;color:#bdd4e3}
.observation-panel p:empty,.source-summary:empty,.chart-note:empty,.spot-note[hidden]{display:none!important}
.external-row a{display:inline-flex;align-items:center;gap:8px;border-radius:14px;padding:10px 12px;font-size:12px;background:linear-gradient(180deg,#17344c,#123048);border:1px solid #365876;box-shadow:var(--shadow)}
.source-panel h2::before{content:'📡 ';}
.source-row{padding:11px 0;font-size:13px}.source-row b{font-weight:800}.source-row span{color:#d2e7f5;font-variant-numeric:tabular-nums}
.cal-day.active{background:linear-gradient(180deg,#21445e,#183850);border-color:#5c8cb0;box-shadow:inset 0 0 0 1px rgba(255,255,255,.06)}
.bottom-nav{background:linear-gradient(180deg,rgba(10,19,32,.97),rgba(8,17,29,.97));border-top:1px solid #375570;backdrop-filter:blur(8px);box-shadow:0 -6px 20px rgba(0,0,0,.25)}
.bottom-nav button{color:#c9d7e4}.bottom-nav button.active{color:#76dcff}.bottom-nav button.active span{filter:drop-shadow(0 0 7px rgba(118,220,255,.45))}
.light{--bg:#edf5fb;--panel:#fff;--panel2:#f4f9fd;--panel3:#eaf3fb;--border:#b8d0e1;--text:#173149;--muted:#536d81;--cyan:#0b8fb4;--blue:#2b75bb;--amber:#a55b19;--gold:#d59b34;--shadow:0 10px 26px rgba(25,55,85,.10), inset 0 1px 0 rgba(255,255,255,.9)}
.light body,.light{background:#edf5fb}
.light .app-header{background:linear-gradient(180deg,rgba(244,250,255,.97),rgba(239,247,253,.93));border-bottom:1px solid rgba(64,122,164,.22)}
.light .brand small{color:#5b7e98}.light .brandmark{background:radial-gradient(circle at 30% 30%,#d9eef8,#bfdcee);border-color:#95bfd7}
.light .location-bar .spot-choice select,.light .date-bar,.light .overview,.light .chart-panel,.light .selected-panel,.light .observation-panel,.light .source-panel{background:linear-gradient(180deg,#ffffff,#f5fbff)}
.light .location-bar .spot-choice select{color:#173149;border-color:#b8d0e1}
.light .live-pill{background:linear-gradient(180deg,#edf6fc,#dcecf6);border-color:#b8d0e1;color:#1e4259}
.light .today-btn{background:linear-gradient(180deg,#3e90c4,#2d78a6);border-color:#5a9cc6;color:#fff}
.light .minor{background:linear-gradient(180deg,#dff0f9,#cfe7f3);border-color:#a9cddd;color:#27546c}
.light .day-graph{background:#f6fbff;border-color:#c5dbe9}.light .day-line{stroke:#0b90b5}.light .day-area{fill:#1fb3db;opacity:.14}
.light .day-text{fill:#33556c}.light .day-label{fill:#7390a7}.light .day-selected{fill:#f7cb62;stroke:#ffe39e}.light .day-time-pill{fill:#f6cf6f;stroke:#efdca7}.light .day-time-text{fill:#23374d}
.light .tide-day,.light .flow-summary,.light .point,.light .external-row a{background:linear-gradient(180deg,#ffffff,#f3f9fd)}
.light .tide-day{border-color:#bfd5e4}.light .tide-day strong{color:#193449}.light .tide-chip{background:#e7f1f7;color:#254760;border-color:#c2d6e4}
.light .hour-header{background:linear-gradient(180deg,#edf5fb,#e2eef7)}
.light .forecast-table{border-color:#c2d6e5}.light .forecast-row{border-top:1px solid #d7e3ec}
.light .forecast-label{background:linear-gradient(180deg,#eff6fb,#e5eff7);border-right:1px solid #d0e0ea;color:#24465d}
.light .forecast-label::before{background:linear-gradient(180deg,#58c9ea,#3f88b7)}
.light .forecast-cell{background:linear-gradient(180deg,#ffffff,#f7fbff);border-right:1px solid #e1eaf0;color:#264055}
.light .forecast-cell .wx-name{color:#4b6d86}.light .forecast-cell.selected,.light .hcell.selected{background:linear-gradient(180deg,#ffe59a,#f6cf69)!important;color:#23374d!important;box-shadow:inset 0 0 0 2px #fff0bd}
.light .metric{background:linear-gradient(180deg,#ffffff,#f5fbff);border-color:#bfd6e5}.light .metric span{color:#35576d}.light .metric .micon{background:linear-gradient(180deg,#eaf6fc,#dcecf6)}.light .metric strong{color:#203a50}.light .metric small{color:#66859b}
.light .cal-day.active{background:linear-gradient(180deg,#dff0f9,#cfe7f4);border-color:#94bdd5}
.light .bottom-nav{background:linear-gradient(180deg,rgba(251,253,255,.97),rgba(246,251,255,.97));border-color:#c0d6e5}.light .bottom-nav button{color:#587386}.light .bottom-nav button.active{color:#0b8fb4}
@media(min-width:720px){.selection-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:420px){.forecast-cell .wx-name{font-size:9px}.metric strong{font-size:19px}.external-row a{padding:9px 10px;font-size:11px}}

/* v2.2 — tighter BI-like density, graph-first hierarchy, denser data cards */
.layout{gap:10px;padding-top:12px}
.location-bar{gap:6px}.live-pill{margin-top:4px;padding:4px 8px;font-size:10px}
.spot-choice select{font-size:clamp(20px,5.6vw,31px);line-height:1.05;padding-right:24px}
.date-bar{min-height:50px;padding:3px 4px}.date-center span{font-size:15px}.navbtn{height:40px;width:40px;min-width:40px}.today-btn{height:40px;font-size:11px;padding:0 11px}
.overview,.selected-panel,.observation-panel,.source-panel,.calendar-panel,.points-panel,.settings-panel{padding:12px}.chart-panel{padding-bottom:10px}
.overview-top,.panel-head{gap:8px}.overview h1,.panel-head h2,.source-panel h2{font-size:18px;line-height:1.15}
.tide-day{padding:9px 10px;min-width:92px}.tide-day strong{font-size:15px}.tide-day small{font-size:10px}
.flow-summary{margin-top:8px;padding:8px 10px;border-radius:12px}.flow-head{gap:10px}.flow-head small{font-size:10px}.flow-head strong{font-size:19px}.flow-direction strong{font-size:17px}.flow-track{height:7px;margin-top:7px}.flow-explanation{display:none}
.hero-stats{margin:8px 0 6px;padding:0;gap:8px}.hero-stats span{font-size:10px}.hero-stats strong{font-size:15px}
.day-graph{margin:2px -2px 8px;border-radius:14px;min-height:258px;padding:2px}.day-graph svg,.day-svg{width:100%;height:272px;display:block}.overview .events{margin-top:3px;gap:4px;min-height:32px}.event{padding:5px 8px;font-size:12px;border-radius:10px}
.chart-panel .panel-head,.chart-panel .legend,.chart-panel .status-note{margin-left:10px;margin-right:10px}.chart-panel .panel-head{padding-top:10px;padding-bottom:8px}.hour-pill{font-size:18px;padding:8px 11px;border-radius:11px}
.timeline-viewport{border-top:1px solid #35536f;border-bottom:1px solid #35536f}
.hour-header{height:32px}.hcell{font-size:10px}.forecast-label,.hcell,.forecast-cell{min-height:40px}.forecast-row{height:40px}.forecast-table{font-size:11px}
.forecast-label{width:88px;min-width:88px;padding:8px 5px 8px 7px;font-size:10px;line-height:1.15}.forecast-label::before{height:16px}
.forecast-cell{font-size:10px;line-height:1.15;padding:0 1px}.forecast-cell .wx{font-size:16px}.forecast-cell .wx-name{font-size:9px;margin-top:2px}.forecast-cell .arrow{font-size:13px}
.legend{gap:7px;margin-top:8px;font-size:9px}
.selected-panel{padding-top:12px}.selection-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0 4px}
.metric{padding:8px 9px;border-radius:13px}.metric span{font-size:11px;gap:6px}.metric .micon{width:20px;height:20px;border-radius:7px;font-size:12px}.metric strong{font-size:18px;margin-top:5px}.metric small{font-size:9px;margin-top:1px}
.panel-head .chip{font-size:10px;padding:4px 8px}
.external-row{gap:7px;margin-top:8px}.external-row a{padding:8px 10px;font-size:11px;border-radius:12px;min-height:36px}
.source-row{padding:8px 0;font-size:11px}.source-row span{font-size:11px}
.bottom-nav button{min-height:50px;font-size:10px}.bottom-nav button span{font-size:22px}.toast{bottom:84px;font-size:11px;padding:10px 12px}

@media(max-width:420px){
  .layout{padding-left:10px;padding-right:10px;padding-bottom:104px}
  .overview,.selected-panel,.observation-panel,.source-panel,.calendar-panel,.points-panel,.settings-panel{padding:10px}
  .overview h1,.panel-head h2,.source-panel h2{font-size:17px}
  .day-graph{min-height:272px;margin:2px 0 8px}
  .day-graph svg,.day-svg{height:286px}
  .forecast-label{width:82px;min-width:82px;font-size:10px;padding-left:6px}
  .hcell,.forecast-cell{width:72px;min-width:72px}
  .hour-pill{font-size:17px;padding:7px 10px}
  .metric strong{font-size:17px}
}
@media(min-width:720px){
  .layout{padding-top:16px;gap:12px}
  .overview,.selected-panel,.observation-panel,.source-panel,.calendar-panel,.points-panel,.settings-panel{padding:14px}
  .overview h1,.panel-head h2,.source-panel h2{font-size:20px}
  .day-graph{min-height:310px}
  .day-graph svg,.day-svg{height:322px}
  .selection-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}
  .metric{padding:9px 10px}.metric strong{font-size:19px}
  .forecast-label{width:94px;min-width:94px}
  .hcell,.forecast-cell{width:80px;min-width:80px}
}
