:root {
  --bg: #f4efe6; --surface: #fff; --surface2: #ece6da; --ink: #10222e; --muted: #5b6b75; --line: #ddd5c6;
  --navy: #0b2a3d; --ocean: #12607f; --sun: #ff7a59; --sun2: #ffb36b;
  --top: #12b87a; --good: #6fcf4f; --ok: #f2b632; --weak: #ee8446; --none: #98a7af;
  --tab-h: 64px; --radius: 18px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #08171f; --surface: #102631; --surface2: #17323f; --ink: #eaf2f5; --muted: #8fa5b0; --line: #20404f; }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif; padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 12px); }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
a { color: var(--ocean); }
small { color: var(--muted); }
.muted { color: var(--muted); }

.top { position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; padding: calc(env(safe-area-inset-top) + 8px) 16px 8px; background: var(--navy); color: #fff; }
.brand { display: flex; gap: 10px; align-items: center; } .brand b { font-size: 17px; display: block; line-height: 1.1; }
.brand small { color: #9fc2d3; font-size: 12px; } .logo { font-size: 26px; }
#refresh { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; }
#refresh svg { width: 22px; height: 22px; } #refresh.spin svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.stripwrap { position: sticky; top: calc(env(safe-area-inset-top) + 57px); z-index: 19; background: var(--navy); }
.daystrip { display: flex; gap: 6px; overflow-x: auto; padding: 4px 12px 10px; scrollbar-width: none; scroll-snap-type: x proximity; }
.daystrip::-webkit-scrollbar { display: none; }
.daychip { flex: 0 0 52px; scroll-snap-align: center; display: grid; justify-items: center; gap: 1px; padding: 6px 0 7px; border-radius: 14px; background: rgba(255,255,255,.08); color: #cfe3ec; }
.daychip b { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; opacity: .8; }
.daychip span { font-size: 18px; font-weight: 700; line-height: 1.1; } .daychip em { font-style: normal; font-size: 17px; }
.daychip u { display: flex; gap: 3px; height: 6px; text-decoration: none; } .dt { width: 6px; height: 6px; border-radius: 50%; display: block; }
.daychip.on { background: linear-gradient(160deg, var(--sun2), var(--sun)); color: #2a1208; box-shadow: 0 4px 12px rgba(255,122,89,.45); }
.daychip.on b { opacity: 1; }

main { padding: 0 14px 8px; max-width: 640px; margin: 0 auto; }

.hero { margin: 0 -14px; padding: 18px 18px 20px; background: linear-gradient(180deg, var(--navy), #114a66); color: #fff; border-radius: 0 0 28px 28px; }
.hero .date { color: var(--sun2); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.hero h1 { font-size: 24px; line-height: 1.15; margin: 4px 0; } .hero p { color: #b6d3e0; }
.hero-top { display: flex; justify-content: space-between; gap: 12px; }
.bigwx { text-align: center; font-size: 46px; line-height: 1; flex: none; } .bigwx small { display: block; font-size: 11px; color: #9fc2d3; margin-top: 4px; max-width: 76px; }
.count { background: rgba(255,179,107,.18); color: var(--sun2); padding: 6px 12px; border-radius: 99px; display: inline-block; margin-bottom: 10px; font-size: 14px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.stats div { background: rgba(255,255,255,.09); border-radius: 14px; padding: 9px 10px; } .stats b { font-size: 18px; display: block; } .stats small { color: #9fc2d3; font-size: 11px; }
.now { margin-top: 12px; background: rgba(255,255,255,.12); border-radius: 12px; padding: 8px 12px; font-size: 14px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.skeleton { color: var(--muted); padding: 16px; text-align: center; }

.verdict { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin-top: 16px; box-shadow: 0 6px 18px -10px rgba(0,0,0,.25); }
.verdict > span { font-size: 30px; } .verdict p { color: var(--muted); font-size: 14px; }

.sec { font-size: 19px; margin: 26px 2px 10px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; } .sec.first { margin-top: 18px; }
.sec small { font-size: 12px; font-weight: 500; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.sess-list { display: grid; gap: 10px; }
.sess { border-left: 6px solid var(--none); } .sess.r-top { border-left-color: var(--top); } .sess.r-good { border-left-color: var(--good); } .sess.r-ok { border-left-color: var(--ok); } .sess.r-weak { border-left-color: var(--weak); }
.sess-h { display: flex; align-items: center; gap: 8px; } .sess-h h3 { font-size: 16px; flex: 1; } .ic { font-size: 22px; }
.sess-main { display: flex; gap: 12px; align-items: center; margin: 10px 0 4px; }
.score { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; font-weight: 800; color: #fff; background: var(--none); flex: none; }
.r-top .score { background: var(--top); } .r-good .score { background: var(--good); color: #10310b; } .r-ok .score { background: var(--ok); color: #3a2a00; } .r-weak .score { background: var(--weak); }
.when { color: var(--muted); font-size: 14px; } .why { font-size: 14px; color: var(--muted); }
.alt { font-size: 12.5px; color: var(--muted); margin-top: 8px; border-top: 1px dashed var(--line); padding-top: 8px; }
.pill { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; color: #fff; background: var(--none); }
.pill.r-top { background: var(--top); } .pill.r-good { background: var(--good); color: #10310b; } .pill.r-ok { background: var(--ok); color: #3a2a00; } .pill.r-weak { background: var(--weak); }
.row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 12px; background: var(--ocean); color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; min-height: 44px; }
.btn.sm { padding: 8px 12px; min-height: 40px; font-size: 13px; } .btn.ghost { background: var(--surface2); color: var(--ink); }

.parts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.part { display: flex; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.part.done { opacity: .55; } .part h4 { font-size: 16px; margin: 1px 0 4px; } .part p { color: var(--muted); font-size: 14.5px; }
.part .when { font-size: 11.5px; font-weight: 700; color: var(--sun); text-transform: uppercase; letter-spacing: .06em; }
.chk { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; color: #fff; font-weight: 800; margin-top: 2px; }
.chk[aria-pressed="true"] { background: var(--top); border-color: var(--top); }
.lnk { display: inline-block; margin-top: 8px; font-size: 14px; font-weight: 600; text-decoration: none; padding: 4px 0; }
.chips { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; } .chips li { background: var(--surface2); border-radius: 14px; padding: 11px 14px; font-size: 15px; }
.foods { display: grid; gap: 8px; } .food { display: flex; justify-content: space-between; gap: 10px; align-items: center; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.food small { margin-left: 6px; } .food p { color: var(--muted); font-size: 14px; }
.rain { margin-top: 14px; background: var(--surface2); border-radius: var(--radius); padding: 12px 14px; } .rain summary { font-weight: 700; cursor: pointer; } .rain p { margin-top: 8px; color: var(--muted); }

.spotchips { display: flex; gap: 8px; overflow-x: auto; padding: 14px 0 4px; scrollbar-width: none; } .spotchips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 9px 14px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 14px; min-height: 40px; }
.chip.on { background: var(--ocean); color: #fff; border-color: var(--ocean); }
.spotcap { margin-top: 10px; display: flex; flex-direction: column; }
.chart { width: 100%; height: auto; display: block; } .chart .grid { stroke: var(--line); stroke-width: 1; } .chart .ax { fill: var(--muted); font-size: 9px; }
.chart .band { fill: var(--top); opacity: .12; } .chart .line { fill: none; stroke-width: 2.2; stroke-linejoin: round; } .chart .dash { stroke-dasharray: 4 3; }
.s-wind { stroke: var(--ocean); } .s-wind.fill { fill: var(--ocean); opacity: .18; stroke: none; } .s-gust { stroke: var(--sun); }
.s-wave { stroke: #1b9fc2; } .s-wave.fill { fill: #1b9fc2; opacity: .2; stroke: none; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); } .legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: 5px; background: currentColor; }
.legend i.s-wind { background: var(--ocean); } .legend i.s-gust { background: var(--sun); } .legend i.s-wave { background: #1b9fc2; } .legend .unit { margin-left: auto; }
.tides { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 0; } .tide { font-size: 13px; padding: 5px 10px; border-radius: 99px; background: var(--surface2); }

.hrs { display: grid; gap: 6px; }
.hr { display: grid; grid-template-columns: 38px 1fr 1.35fr 1fr 78px; gap: 6px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 8px; font-size: 13px; }
.hr.head { background: none; border: 0; font-size: 11px; color: var(--muted); padding: 0 8px; }
.hr .t { font-weight: 700; font-size: 15px; } .hr .t small { display: block; font-size: 13px; } .hr .c b { display: block; font-size: 14px; } .hr .c small { display: block; font-size: 11px; line-height: 1.25; }
.hr .wnd { display: flex; gap: 5px; align-items: center; } .arrow { width: 22px; height: 22px; color: var(--ocean); flex: none; }
.sc { display: flex; gap: 3px; } .sc i, .sc span { flex: 1; text-align: center; font-style: normal; font-size: 10.5px; font-weight: 800; border-radius: 7px; padding: 4px 0; color: #fff; background: var(--none); opacity: .55; }
.sc i.r-top { background: var(--top); opacity: 1; } .sc i.r-good { background: var(--good); color: #10310b; opacity: 1; } .sc i.r-ok { background: var(--ok); color: #3a2a00; opacity: 1; } .sc i.r-weak { background: var(--weak); opacity: 1; }
.hr.head .sc span { background: none; opacity: 1; color: inherit; font-size: 13px; padding: 0; }
.fine { font-size: 12.5px; color: var(--muted); margin-top: 14px; } .fine .k { padding: 1px 8px; border-radius: 99px; margin-left: 4px; color: #fff; font-weight: 700; }
.k.r-top { background: var(--top); } .k.r-good { background: var(--good); color: #10310b; } .k.r-ok { background: var(--ok); color: #3a2a00; } .k.r-weak { background: var(--weak); }

.spot { margin-bottom: 10px; padding: 0; overflow: hidden; } .spot summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 14px; cursor: pointer; }
.spot summary::-webkit-details-marker { display: none; } .spot h3 { font-size: 17px; } .car { transition: transform .2s; font-size: 20px; } .spot[open] .car { transform: rotate(180deg); }
.spot > *:not(summary) { margin-left: 14px; margin-right: 14px; } .spot > :last-child { margin-bottom: 14px; }
.minis { display: flex; gap: 8px; margin-bottom: 10px; } .mini { flex: 1; border-radius: 12px; padding: 8px; text-align: center; background: var(--none); color: #fff; } .mini b { display: block; font-size: 18px; } .mini small { color: inherit; opacity: .9; font-size: 11px; }
.mini.r-top { background: var(--top); } .mini.r-good { background: var(--good); color: #10310b; } .mini.r-ok { background: var(--ok); color: #3a2a00; } .mini.r-weak { background: var(--weak); }
.spot dl { margin: 12px 14px 0; } .spot dt { font-weight: 700; margin-top: 10px; font-size: 14px; } .spot dd { margin: 2px 0 0; color: var(--muted); font-size: 14.5px; }
.tips { margin: 10px 14px 0; padding-left: 20px; color: var(--muted); font-size: 14.5px; } .tips li { margin: 4px 0; } .tips.warn { background: rgba(238,132,70,.12); border-radius: var(--radius); padding: 12px 12px 12px 30px; margin: 0; color: var(--ink); }

.crews { display: flex; gap: 8px; overflow-x: auto; } .crew { flex: 1 0 auto; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 10px; font-weight: 700; font-size: 13px; } .crew span { display: block; font-size: 28px; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; } .facts li { display: flex; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px; } .facts span { font-size: 24px; } .facts p { color: var(--muted); font-size: 14px; }
.card h4 { margin: 14px 0 4px; font-size: 14px; color: var(--sun); text-transform: uppercase; letter-spacing: .05em; } .card h4:first-child { margin-top: 0; }
.chkl { display: flex; align-items: center; gap: 12px; padding: 9px 2px; min-height: 44px; border-bottom: 1px solid var(--line); } .chkl:last-child { border: 0; } .chkl.on { opacity: .5; text-decoration: line-through; }
.chkl input { width: 22px; height: 22px; accent-color: var(--top); }

.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr); height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.tabbar button { display: grid; place-items: center; align-content: center; font-size: 11px; font-weight: 600; color: var(--muted); gap: 2px; } .tabbar span { font-size: 22px; filter: grayscale(1); opacity: .7; }
.tabbar .on { color: var(--sun); } .tabbar .on span { filter: none; opacity: 1; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* Kasse */
body.noscroll { overflow: hidden; }
.seg { display: flex; background: var(--surface2); border-radius: 12px; padding: 3px; margin-bottom: 12px; } .seg button { flex: 1; padding: 8px; border-radius: 10px; font-weight: 600; font-size: 14px; min-height: 40px; } .seg .on { background: var(--ocean); color: #fff; }
.bal { display: grid; grid-template-columns: 90px 1fr 84px; gap: 8px; align-items: center; margin: 8px 0; font-size: 14px; } .bar { height: 10px; background: var(--surface2); border-radius: 99px; overflow: hidden; } .bar i { display: block; height: 100%; border-radius: 99px; } .bar .pos { background: var(--top); } .bar .neg { background: var(--weak); }
b.pos { color: var(--top); text-align: right; } b.neg { color: var(--weak); text-align: right; }
.pay { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); } .pay span { flex: 1; } .pay em { font-style: normal; font-weight: 800; }
.dayh { margin: 18px 2px 6px; font-size: 13px; color: var(--muted); text-transform: capitalize; }
.exp { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 11px 14px; margin-bottom: 6px; min-height: 56px; } .exp div { flex: 1; min-width: 0; } .exp b, .exp small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .exp em { font-style: normal; font-weight: 800; } .ec { font-size: 24px; }
.fab { position: fixed; right: 18px; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 16px); width: 58px; height: 58px; border-radius: 50%; background: linear-gradient(160deg, var(--sun2), var(--sun)); color: #2a1208; font-size: 30px; box-shadow: 0 8px 20px rgba(255,122,89,.5); z-index: 25; }
.err { border-color: var(--weak); } .errtxt { color: #d9482b; font-size: 14px; min-height: 1em; margin-top: 6px; }
.gate label { display: block; font-weight: 600; font-size: 14px; margin-top: 12px; }
input { width: 100%; font: inherit; font-size: 16px; padding: 12px; margin-top: 4px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface2); color: var(--ink); }
.pchips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; } .pc { padding: 9px 14px; border-radius: 99px; background: var(--surface2); font-weight: 600; font-size: 14px; min-height: 42px; border: 2px solid transparent; } .pc.on { background: var(--ocean); color: #fff; border-color: var(--sun2); } .pc.cat { font-size: 20px; padding: 6px 12px; }
#sheet .scrim { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 40; }
.sheetp { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-height: 92dvh; overflow-y: auto; background: var(--surface); border-radius: 24px 24px 0 0; padding: 10px 18px calc(env(safe-area-inset-bottom) + 18px); max-width: 640px; margin: 0 auto; } .sheetp h3 { margin: 6px 0 12px; font-size: 20px; } .sheetp label { display: block; font-weight: 600; font-size: 14px; margin-top: 12px; }
.grab { width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto; } .btn.danger { color: #d9482b; }
.crew small { display: block; font-weight: 400; color: var(--muted); font-size: 11px; }
.whos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.who { display: grid; justify-items: center; gap: 2px; padding: 14px 6px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); min-height: 120px; } .who span { font-size: 32px; } .who b { font-size: 16px; } .who small { font-size: 13px; } .who em { font-style: normal; font-size: 12px; font-weight: 700; color: #2a1208; background: linear-gradient(160deg, var(--sun2), var(--sun)); padding: 4px 10px; border-radius: 99px; margin-top: 6px; }
