@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700;800&display=swap");
:root { --bg:#091b23; --surface:#102b35; --raised:#173742; --line:#31515a; --text:#eff7f5; --muted:#aac0c2; --accent:#67e0cb; --sand:#f4bd7a; --danger:#ff9d91; }
* { box-sizing: border-box; }
body { margin:0; color:var(--text); background:radial-gradient(circle at 82% 0,#16454a 0,transparent 36%),var(--bg); font-family:Manrope,"Segoe UI",sans-serif; line-height:1.5; }
a { color:var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline:3px solid var(--sand); outline-offset:3px; }
button, input { font:inherit; }
.eyebrow { color:var(--accent); font-size:.7rem; font-weight:800; letter-spacing:.21em; }
.secondary-brand { display:inline-flex; align-items:center; gap:11px; color:var(--text); text-decoration:none; font-size:1.03rem; letter-spacing:-.05em; }
.secondary-brand > span { display:grid; place-items:center; width:42px; height:42px; border-radius:13px; color:#08332e; background:var(--accent); font-size:28px; transform:rotate(-14deg); }
.auth-layout { min-height:100dvh; display:grid; grid-template-columns:minmax(0,1.05fr) minmax(400px,.95fr); padding:clamp(12px,2vw,28px); gap:clamp(12px,2vw,28px); }
.auth-story { border-radius:28px; min-height:600px; display:flex; flex-direction:column; justify-content:space-between; padding:clamp(24px,4vw,58px); background:radial-gradient(circle at 88% 82%,rgba(99,227,205,.24),transparent 30%), linear-gradient(140deg,#153a43,#0d2832 70%); border:1px solid #38636a; overflow:hidden; position:relative; }
.auth-story::after { content:""; position:absolute; width:400px; height:400px; right:-95px; bottom:-115px; border:30px solid rgba(105,226,204,.1); border-radius:50%; box-shadow:0 0 0 56px rgba(105,226,204,.055),0 0 0 112px rgba(105,226,204,.035); pointer-events:none; }
.auth-story-copy { position:relative; z-index:1; max-width:690px; }
.auth-story-copy h1 { margin:13px 0 20px; font-size:clamp(3.1rem,5.6vw,6rem); line-height:1.04; letter-spacing:-.082em; }
.auth-story-copy p { margin:0; max-width:450px; color:#c0dad7; font-size:1.07rem; }
.auth-story-footer { position:relative; z-index:1; color:#bdd2d0; font-size:.82rem; font-weight:700; }
.auth-card { width:min(100%,430px); align-self:center; justify-self:center; padding:clamp(20px,4vw,42px); border:1px solid var(--line); border-radius:25px; background:var(--surface); box-shadow:0 18px 48px rgba(0,0,0,.19); }
.auth-card h2 { margin:8px 0 5px; font-size:clamp(1.7rem,2.5vw,2.3rem); line-height:1.12; letter-spacing:-.06em; }
.auth-card .muted { margin:0 0 26px; color:var(--muted); font-size:.86rem; }
.auth-card label { display:block; margin:15px 0 6px; color:#dbe9e7; font-size:.78rem; font-weight:800; }
.auth-card input { width:100%; min-height:48px; padding:10px 13px; background:var(--raised); color:var(--text); border:1px solid var(--line); border-radius:11px; }
.auth-card button { width:100%; min-height:50px; display:flex; align-items:center; justify-content:center; gap:12px; margin-top:25px; border:0; border-radius:11px; background:var(--accent); color:#07332e; font-weight:900; cursor:pointer; }
.auth-card button:hover { background:#84eedc; }
.auth-card .err { padding:11px 13px; border:1px solid var(--danger); border-radius:10px; color:var(--danger); background:rgba(255,157,145,.08); }
.auth-note { color:var(--muted); margin:22px 0 0; font-size:.71rem; text-align:center; }
.forecast-layout { max-width:1390px; margin:auto; padding:22px clamp(18px,3.2vw,48px) 60px; }
.secondary-header { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:12px 16px; margin-bottom:22px; border:1px solid var(--line); border-radius:19px; background:var(--surface); }
.back-link { padding:9px 13px; border:1px solid var(--line); border-radius:10px; color:var(--text); text-decoration:none; font-size:.78rem; font-weight:800; }
.back-link:hover { border-color:var(--accent); color:var(--accent); }
.forecast-hero { display:flex; justify-content:space-between; align-items:end; gap:24px; padding:clamp(23px,4vw,42px); margin-bottom:18px; border:1px solid var(--line); border-radius:24px; background:linear-gradient(120deg,#143b43,var(--surface)); }
.forecast-hero h1 { font-size:clamp(2.2rem,4.1vw,4rem); line-height:1.1; letter-spacing:-.075em; margin:10px 0; }
.forecast-hero p { color:var(--muted); margin:0; }
.criteria-card { min-width:250px; max-width:340px; padding:17px 19px; border:1px solid var(--line); border-radius:16px; background:var(--raised); }
.criteria-card span { display:block; font-size:.64rem; font-weight:900; letter-spacing:.15em; color:var(--muted); }
.criteria-card strong { display:block; font-size:1.55rem; letter-spacing:-.06em; color:var(--accent); margin:3px 0; }
.criteria-card small { display:block; color:var(--muted); font-size:.7rem; }
.forecast-section { background:var(--surface); border:1px solid var(--line); border-radius:22px; padding:clamp(19px,2.6vw,30px); margin:0 0 18px; }
.section-heading { display:flex; justify-content:space-between; align-items:end; gap:12px; margin-bottom:18px; }
.section-heading h2 { font-size:clamp(1.4rem,2.3vw,1.9rem); letter-spacing:-.05em; margin:3px 0 0; }
.section-counter,.source-tag { font-size:.72rem; font-weight:800; color:var(--accent); border:1px solid var(--line); background:var(--raised); border-radius:999px; padding:8px 12px; white-space:nowrap; }
.period-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.period-card { display:flex; flex-direction:column; gap:5px; padding:17px 19px; border:1px solid var(--line); border-radius:15px; background:var(--raised); }
.period-card .period-date { color:var(--accent); font-size:.76rem; font-weight:900; text-transform:capitalize; }
.period-card strong { font-size:1.3rem; line-height:1.1; letter-spacing:-.05em; }
.period-card > span:last-child { color:var(--muted); font-size:.74rem; }
.forecast-empty { grid-column:1/-1; padding:25px; border:1px dashed var(--line); border-radius:15px; color:var(--muted); }
.forecast-empty strong { color:var(--text); }
.forecast-empty p { margin:6px 0 0; }
.section-note { color:var(--muted); font-size:.76rem; margin:-5px 0 20px; }
.day-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:13px; }
.forecast-day { padding:17px; min-width:0; border:1px solid var(--line); border-radius:17px; background:var(--raised); }
.forecast-day-top { display:flex; align-items:start; justify-content:space-between; gap:7px; }
.forecast-day-top .day-weekday { display:block; color:var(--muted); font-size:.69rem; text-transform:capitalize; }
.forecast-day-top strong { font-size:1.08rem; line-height:1.3; }
.day-badge { font-size:.61rem; color:var(--muted); border:1px solid var(--line); border-radius:99px; padding:5px 7px; white-space:nowrap; }
.day-badge.has-match { color:var(--accent); background:rgba(103,224,203,.08); }
.day-figures { display:flex; justify-content:space-between; gap:8px; margin:17px 0 10px; }
.day-figures span { color:var(--muted); font-size:.64rem; }
.day-figures strong { display:block; color:var(--text); font-size:.9rem; margin-top:3px; }
.wind-bars { height:78px; display:flex; align-items:end; gap:2px; border-bottom:1px solid #627b7f; padding-bottom:1px; }
.wind-bar { display:block; width:100%; height:var(--bar-height); min-height:5px; border-radius:2px 2px 0 0; background:#728b8e; }
.wind-bar.night { opacity:.48; }
.wind-bar.matches { background:var(--accent); opacity:1; }
.bar-legend { display:flex; justify-content:space-between; color:var(--muted); font-size:.52rem; margin-top:5px; }
.hourly-details { background:var(--surface); border:1px solid var(--line); border-radius:19px; margin-bottom:18px; overflow:hidden; }
.hourly-details summary { display:flex; justify-content:space-between; gap:12px; cursor:pointer; padding:17px 21px; font-weight:900; }
.hourly-details summary span { color:var(--muted); font-size:.72rem; font-weight:700; }
.hourly-scroll { overflow:auto; max-height:540px; border-top:1px solid var(--line); }
.hourly-details table { width:100%; border-collapse:collapse; min-width:700px; }
.hourly-details th { position:sticky; top:0; background:#1d4049; color:var(--muted); font-size:.68rem; text-transform:uppercase; letter-spacing:.06em; }
.hourly-details th,.hourly-details td { padding:10px 12px; text-align:left; border-bottom:1px solid var(--line); white-space:nowrap; font-size:.75rem; }
.hourly-details tr.kite { background:rgba(103,224,203,.075); }
.hourly-details tr.night { color:#8aa0a3; }
.hour-status { padding:4px 8px; border-radius:99px; background:rgba(244,189,122,.11); color:var(--sand); font-weight:800; }
.hour-status.kite { color:var(--accent); background:rgba(103,224,203,.1); }
.forecast-disclaimer { color:var(--muted); font-size:.72rem; line-height:1.6; padding:0 5px; }
.users-page .page { max-width:1150px; padding:25px; }
.users-page .top { border:1px solid var(--line); border-radius:17px; background:var(--surface); padding:16px 20px; }
.users-page h1 { letter-spacing:-.05em; margin:0; }
.users-page .top p { margin:0; }
.users-page .me { color:var(--muted); }
.users-page .card { background:var(--surface); color:var(--text); border:1px solid var(--line); border-radius:18px; padding:22px; }
.users-page .card h2 { margin-top:0; letter-spacing:-.04em; }
.users-page input { box-sizing:border-box; background:var(--raised); color:var(--text); border:1px solid var(--line); border-radius:9px; }
.users-page .checks input { accent-color:var(--accent); }
.users-page button { background:var(--accent); color:#07332e; cursor:pointer; }
.users-page table { display:block; overflow-x:auto; }
.users-page th,.users-page td { border:1px solid var(--line); }
.users-page th { background:var(--raised); }
.users-page .flash-ok { background:rgba(103,224,203,.1); border-color:var(--accent); color:var(--accent); }
.users-page .flash-err { background:rgba(255,157,145,.1); border-color:var(--danger); color:var(--danger); }
@media(max-width:1050px) { .day-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:780px) {
  .auth-layout { grid-template-columns:1fr; gap:0; padding:0; }
  .auth-story { min-height:270px; padding:24px; border-radius:0 0 25px 25px; }
  .auth-story-copy h1 { font-size:2.8rem; margin:10px 0; }
  .auth-story-copy p { font-size:.85rem; }
  .auth-story-footer { display:none; }
  .auth-card { border:0; box-shadow:none; background:transparent; padding:28px 22px 40px; }
  .forecast-layout { padding:10px 12px 35px; }
  .secondary-header { margin-bottom:12px; }
  .forecast-hero { display:block; padding:22px; }
  .criteria-card { margin-top:20px; max-width:none; }
  .period-grid { grid-template-columns:1fr; }
  .day-grid { grid-template-columns:1fr 1fr; }
  .section-heading { align-items:start; flex-wrap:wrap; }
}
@media(max-width:500px) {
  .auth-story { min-height:245px; }
  .auth-story-copy h1 { font-size:2.35rem; }
  .forecast-hero h1 { font-size:2.3rem; }
  .day-grid { grid-template-columns:1fr; }
  .hourly-details summary { display:block; }
  .hourly-details summary span { display:block; margin-top:3px; }
  .users-page .page { padding:12px; }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation-duration:.01ms!important; transition-duration:.01ms!important; } }
