:root{font-family:system-ui,-apple-system,Segoe UI,Arial,sans-serif;color:#183247;background:#edf4f8}*{box-sizing:border-box}body{margin:0}main{max-width:820px;margin:auto;padding:16px}header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:8px 0 20px}header h1{margin:3px 0;font-size:26px}small,.sub,footer{color:#647e90;font-size:13px}small{font-weight:700;letter-spacing:.12em}.card{background:white;border-radius:16px;padding:20px;margin-bottom:14px;box-shadow:0 3px 16px #0a38550b}h2{font-size:19px;margin:0 0 15px}label{font-size:14px;font-weight:600;display:block;margin-bottom:7px}input,select,button{font:inherit;border-radius:9px;padding:10px;border:1px solid #bed1dd}input{width:100%;margin:6px 0 10px}button{background:#146b9c;color:white;border:0;cursor:pointer}button:disabled{opacity:.5}.hero{background:linear-gradient(135deg,#116b9e,#074769);color:white}.hero .sub{color:#cce8fa}.level{font-size:64px;font-weight:750;line-height:1.25}.level span+span{font-size:25px}.row{display:flex;align-items:center;justify-content:space-between;gap:10px}.row h2{margin:0}canvas{width:100%;height:270px;display:block;touch-action:pan-y;margin:16px 0 6px}.weather{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.weather>div{background:#f2f7fa;border-radius:12px;padding:15px}.weather strong{font-size:28px}.weather p{margin:5px 0;color:#607a8d;font-size:13px}.forecast{display:flex;gap:8px;overflow:auto;margin-top:14px}.forecast>div{min-width:85px;background:#f2f7fa;border-radius:10px;padding:10px;text-align:center;font-size:13px}.thresholds{display:grid;grid-template-columns:1fr 1fr;gap:12px}#push{background:#398064}footer{text-align:center;padding:15px}.header-controls{display:flex;align-items:flex-end;gap:8px}.language-control label{font-size:12px;margin:0 0 3px;color:#647e90}.language-control select{max-width:130px;padding:8px 25px 8px 9px;background:#fff}.header-controls #reload{min-height:38px;min-width:42px;font-size:20px}@media(max-width:400px){main{padding:10px}.card{padding:14px}.level{font-size:54px}header h1{font-size:21px}.language-control select{max-width:110px}}

.tide-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:13px 0}.tide-tile{display:flex;flex-direction:column;gap:5px;background:#f2f7fa;padding:14px;border-radius:12px;min-width:0}.tide-tile>span{font-size:13px;color:#4f697e}.tide-tile strong{font-size:22px;line-height:1.3}.tide-tile small{font-weight:600;letter-spacing:0;color:#59778a}.legend{display:flex;gap:10px;flex-wrap:wrap;margin-top:15px;font-size:12px;color:#45657c}.legend-entry{display:inline-flex;align-items:center;gap:5px}.legend-entry i{display:inline-block;width:23px;height:0;border-top:3px solid #267aa9}.legend-entry .forecast-line{border-color:#dd7331;border-top-style:dashed}.legend-entry .tidal-line{border-color:#198b83;border-top-style:dotted}#bshLink{display:inline-block;font-size:13px;color:#146b9c;margin-top:5px}#tideStatus,#hydroForecastStatus{margin:10px 0}@media(max-width:450px){.tide-tile strong{font-size:18px}.tide-summary{gap:8px}.tide-tile{padding:10px}}

.warnings-list{display:flex;flex-direction:column;gap:9px;margin-bottom:12px}.warning-item{padding:12px 14px;border-left:4px solid #e39b20;border-radius:9px;background:#fff7eb}.warning-item.severe{background:#fff0f0;border-left-color:#c62828}.warning-item strong{display:block;font-size:14px}.warning-item p{font-size:13px;margin:6px 0;line-height:1.5;white-space:pre-line}.warning-item small{font-size:12px;letter-spacing:0}.warning-sources{display:flex;gap:12px;flex-wrap:wrap;margin:10px 0}.warning-sources a{font-size:13px;color:#146b9c}.tide-tile strong{word-break:normal}.forecast-line{border-color:#198b83!important}.tidal-line{border-color:#dd7331!important;border-top-style:dashed!important}

.notification-options{display:grid;gap:9px;margin:14px 0}.notification-options .toggle{display:flex;gap:9px;align-items:flex-start;font-weight:500;line-height:1.4}.notification-options input[type=checkbox]{width:17px;height:17px;margin:2px 0 0;flex:none;accent-color:#146b9c}.notification-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.notification-actions button{margin:0}.notification-actions #testPush{background:#527790}.notification-actions #disablePush{background:#6c7881}.notification-actions button{font-size:13px;padding:9px 12px}

.ferry-state{font-size:14px;font-weight:650;padding:11px 13px;border-radius:10px;background:#eef5f8;color:#274d66;margin:9px 0 14px}.ferry-state.green{background:#edf7f1;color:#236b49}.ferry-state.yellow{background:#fff6df;color:#805c11}.ferry-state.red{background:#ffebec;color:#aa2630}.ferry-values{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.ferry-values>div{display:flex;flex-direction:column;gap:5px;background:#f2f7fa;border-radius:10px;padding:11px;min-width:0}.ferry-values span{font-size:12px;color:#537085}.ferry-values strong{font-size:21px;color:#193c57}.ferry-values strong:not(:empty){white-space:nowrap}@media(max-width:450px){.ferry-values{gap:5px}.ferry-values>div{padding:8px}.ferry-values span{font-size:11px}.ferry-values strong{font-size:17px}}

.legend-entry[hidden],.legend[hidden]{display:none!important}
.legend-levels{background:#f5f8fa;border-radius:8px;padding:8px 10px;margin-top:10px;gap:13px}
.legend-entry .mean-line{border-color:#7896a8;border-top-style:dashed}
.legend-entry .yellow-line{border-color:#e2a11b;border-top-style:dashed}
.legend-entry .red-line{border-color:#d44a4a;border-top-style:dashed}
.legend-entry .now-line{border-color:#8a94a0;border-top-style:dotted}
.forecast-badge{display:inline-block;background:#ecf4fb;color:#245978;border:1px solid #cfe1ed;border-radius:8px;font-size:12px;line-height:1.4;padding:7px 10px;margin-top:12px}
.forecast-badge.empty{background:#f5f6f7;color:#61717b;border-color:#dfe5ea}
#waterDisclaimer{line-height:1.45}

.site-notices{margin:14px 2px 0}.data-notes{border-radius:10px;background:#f5f8fa;padding:10px 13px}.data-notes summary{color:#44657b;font-size:13px;font-weight:600;cursor:pointer}.data-notes[open] summary{margin-bottom:10px}.data-notes p{margin:8px 0;line-height:1.5}.site-notices #refreshStatus{padding:10px 4px 0;font-size:12px;text-align:center}
#graph{margin-bottom:0}
.chart-legend{margin-top:11px;gap:9px 14px;line-height:1.5}
.legend-levels{margin-top:9px;gap:9px 14px;line-height:1.5}
.legend-entry .mean-line{border-color:#96aebc;border-top-style:solid;border-top-width:2px}
.legend-entry .yellow-line{border-color:#e2a11b;border-top-style:dashed;border-top-width:2px}
.legend-entry .red-line{border-color:#d44a4a;border-top-style:solid;border-top-width:2px}
#point{margin-top:10px}

.bsh-line{border-color:#087a84!important;border-top-style:dashed!important}

.tide-tile small{overflow-wrap:anywhere}
.tide-followups[hidden]{display:none}
.tide-followups{margin-top:16px}
.tide-followups-title{color:#547185;font-size:13px;font-weight:650;margin-bottom:7px}
.tide-table{width:100%;border-collapse:collapse;font-size:13px;font-variant-numeric:tabular-nums}
.tide-table th{padding:9px 7px;text-align:left;color:#5f7b8e;font-weight:600;font-size:12px;border-bottom:1px solid #dce7ec}
.tide-table td{padding:10px 7px;border-bottom:1px solid #edf2f6;white-space:nowrap}
.tide-table tr:last-child td{border-bottom:0}
.tide-table td:nth-child(3){font-weight:650}
.tide-table td:last-child,.tide-table th:last-child{text-align:right}
@media(max-width:400px){.tide-table{font-size:12px}.tide-table th{font-size:11px}.tide-table th,.tide-table td{padding:9px 3px}}
