@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');
:root{font-family:'DM Sans',sans-serif;color:#213a30;background:#f5f7f3;--green:#234638;--muted:#6c776f;--line:#dfe5dc;--soft:#edf2e8}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit;color:inherit}button{cursor:pointer;border:0;background:none}button:disabled{opacity:.45;cursor:not-allowed}a{color:inherit;text-underline-offset:4px}button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:3px solid #dca158;outline-offset:4px}input,select{border:1px solid #cfd8ca;background:white;border-radius:8px;padding:12px;font-size:1rem;min-width:0}h1,h2,h3,p{margin:0}h1,h2,h3,.brand{font-family:Manrope,sans-serif}h1{font-size:2.15rem;line-height:1.25;letter-spacing:-1.2px}h2{font-size:1.2rem;letter-spacing:-.4px}h3{font-size:1rem}p{font-size:1rem;line-height:1.65;color:var(--muted)}svg{fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.app-header{height:84px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 max(24px,calc((100vw - 1020px)/2))}.brand{display:flex;gap:10px;align-items:center;font-size:1.65rem;font-weight:800;letter-spacing:-1px;text-decoration:none}.quiet{padding:9px 0;font-size:.875rem;font-weight:600}.quiet:hover{text-decoration:underline}.primary,.secondary{display:inline-flex;justify-content:center;align-items:center;gap:15px;border-radius:8px;font-size:.9rem;font-weight:600;min-height:47px;padding:12px 18px}.primary{background:var(--green);color:white}.primary:hover:not(:disabled){background:#345d46}.secondary{border:1px solid #cbd7c5;background:#fff}.secondary:hover{background:var(--soft)}main{max-width:1020px;padding:34px 24px 0;margin:auto}.steps{list-style:none;display:flex;gap:35px;padding:0;margin:0 0 42px;color:#8c968c;font-size:.875rem}.steps li{display:flex;align-items:center;gap:9px}.steps span{display:grid;place-items:center;width:25px;height:25px;border:1px solid #cdd6c6;border-radius:50%;font-size:.8rem}.steps [aria-current=step]{color:var(--green);font-weight:600}.steps [aria-current=step] span{background:var(--green);border-color:var(--green);color:white}.eyebrow{font-size:.75rem;letter-spacing:1.5px;font-weight:600;color:#77866c}.heading{margin-bottom:28px}.heading h1{margin:12px 0}.heading p{max-width:650px}.panel{background:#fff;border:1px solid var(--line);border-radius:13px}.club-picker{overflow:hidden}.search-box{display:flex;align-items:center;gap:12px;padding:17px 23px;border-bottom:1px solid var(--line)}.search-box svg{width:22px;height:22px;color:#899482;flex:none}.search-box input{border:0;padding:7px 0;width:100%;background:transparent}.list-heading{display:flex;justify-content:space-between;gap:10px;padding:19px 23px 12px;font-size:.8rem}.list-heading strong{font-weight:500;color:var(--muted)}.list-heading>span{color:#899382}.club-list{max-height:365px;overflow:auto;display:grid;grid-template-columns:1fr 1fr;padding:0 12px 12px;align-content:start;gap:4px}.club-option{display:flex;align-items:center;text-align:left;gap:14px;padding:15px 12px;border-radius:8px;min-height:81px;border:1px solid transparent}.club-option:hover{background:#f5f7f1}.club-option[aria-pressed=true]{background:#eef4e8;border-color:#c7d7b9}.club-check{border:1.5px solid #c9d2c2;border-radius:6px;height:22px;width:22px;display:grid;place-items:center;color:transparent;flex:none;font-size:.9rem}.club-option[aria-pressed=true] .club-check{background:var(--green);border-color:var(--green);color:white}.club-option strong{display:block;font-size:.875rem;font-weight:600;line-height:1.4}.club-option small{display:block;font-size:.8rem;color:var(--muted);margin-top:4px}.directory-note{display:flex;justify-content:space-between;gap:12px;font-size:.75rem;color:#7a8473;background:#fafbf8;border-top:1px solid var(--line);padding:14px 23px}.custom-club{margin-top:20px;font-size:.875rem;color:var(--muted)}summary{cursor:pointer}.custom-club p{font-size:.875rem;margin:14px 0}.custom-club form{display:flex;gap:12px;align-items:end}.custom-club label{flex:1}.custom-club input{width:100%;margin-top:7px}.custom-club .secondary{white-space:nowrap}.setup-footer{position:sticky;bottom:0;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:23px 0;margin-top:14px;background:#f5f7f3f5;backdrop-filter:blur(10px);border-top:1px solid var(--line)}.setup-footer strong{display:block;font-size:.875rem}.setup-footer>div>span{display:block;font-size:.8rem;color:var(--muted);max-width:500px;line-height:1.5;margin-top:5px}.footer-actions{display:flex;align-items:center;gap:20px;flex:none}.club-tabs{display:flex;gap:9px;overflow-x:auto;padding:0 0 15px;margin-bottom:10px}.club-tabs button{display:flex;align-items:center;gap:9px;white-space:nowrap;border:1px solid var(--line);border-radius:8px;padding:11px 14px;background:#fff;font-size:.875rem;min-height:44px}.club-tabs button[aria-pressed=true]{background:var(--green);border-color:var(--green);color:white}.club-tabs .done{font-size:.75rem}.direction-panel{padding:26px}.direction-title{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:24px}.direction-title p{font-size:.875rem;margin-top:5px}.direction-title a{font-size:.8rem;white-space:nowrap}.mode-options{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.mode-options button{border:1px solid var(--line);border-radius:9px;padding:17px;text-align:left;display:flex;flex-direction:column;gap:6px;background:#fafbf8}.mode-options button[aria-pressed=true]{border:2px solid var(--green);padding:16px;background:#edf3e6}.mode-symbol{font-size:1.7rem;height:33px;color:#587047}.mode-options strong{font-size:.9rem}.mode-options small{font-size:.8rem;color:var(--muted);line-height:1.5}.compass-layout{display:grid;grid-template-columns:1fr 1.05fr;gap:40px;align-items:center;padding:26px 0}.compass{width:100%;max-width:320px;margin:auto;touch-action:none;border-radius:50%}.compass svg{display:block;width:100%;height:auto;user-select:none}.compass-ring{stroke:#c9d6c0;fill:#f7f9f3}.compass-inner{stroke:#dce4d7;stroke-dasharray:3 6}.compass-grid{stroke:#e1e7dc}.compass text{fill:#788770;stroke:none;font:13px 'DM Sans',sans-serif;text-anchor:middle}.compass .north{fill:#234638;font-weight:bold}.compass-center{fill:#234638;stroke:white;stroke-width:2}.compass-tick{stroke:#c5d0bb}.runway-shape{fill:#d8e4cd;stroke:none}.runway-centerline{stroke:#6b8657;stroke-width:2;stroke-dasharray:7 5}.takeoff-arrow{stroke:#234638;stroke-width:3}.takeoff-tip{fill:#234638;stroke:none}.direction-point{fill:#fff;stroke:#234638;stroke-width:2}.compass-caption{text-align:center;font-size:.8rem;max-width:300px;margin:9px auto 0}.direction-controls h3{font-size:1.25rem;letter-spacing:-.4px}.direction-controls>p{font-size:.875rem;margin:10px 0 21px;max-width:350px}.preset-row{display:grid;grid-template-columns:repeat(2,1fr);gap:7px;margin-bottom:22px}.preset-row button,.cardinal-grid button{border:1px solid var(--line);background:#fafbf8;border-radius:6px;padding:10px 7px;font-size:.8rem}.preset-row button:hover,.cardinal-grid button:hover{background:var(--soft)}label{font-size:.875rem}.direction-controls input[type=range]{display:block;width:100%;margin:14px 0 17px;padding:0;accent-color:var(--green)}.degree-row{display:flex;align-items:center;gap:9px;font-size:.8rem;flex-wrap:wrap}.degree-row label{margin-right:auto}.degree-row input{width:83px;padding:9px}.cardinal-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-bottom:18px}.cardinal-grid button[aria-pressed=true]{background:#dce8cf;border-color:#6c8a50}.heading-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:15px}.heading-chips button{padding:6px 9px;font-size:.8rem;background:#edf3e6;border-radius:20px;border:1px solid #d4dfca}.all-directions{border-left:3px solid #a0ba87;padding-left:18px}.all-directions>span{font:600 2.2rem Manrope,sans-serif}.all-directions p{font-size:.875rem;margin-top:8px}.location-details{border-top:1px solid var(--line);padding-top:18px}.location-details summary{display:flex;justify-content:space-between;gap:10px;font-size:.875rem;font-weight:600;list-style:none}.location-details summary:after{content:'⌄'}.location-details summary>span:last-child{font-weight:400;font-size:.8rem;color:#92662f;margin-left:auto}.location-details p{font-size:.875rem;margin-top:17px}.location-links{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:.8rem;margin:12px 0}.coordinate-row{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:18px}.coordinate-row input{display:block;width:100%;margin-top:8px}.confirmation{display:flex;align-items:center;gap:9px;font-size:.875rem}.confirmation input{accent-color:var(--green);width:18px;height:18px}.error-message{color:#aa4935;font-size:.875rem;line-height:1.6;margin-top:15px}.weather-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:10px 0 26px}.weather-heading h1{margin-top:9px}.weather-toolbar{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:0 0 20px}.weather-toolbar>div{display:flex;gap:15px;align-items:center}.weather-toolbar select{font-size:.875rem;padding:9px}.weather-toolbar>button{color:var(--muted);font-weight:400;text-align:left}.briefing{background:var(--green);color:#fff;padding:28px;display:flex;gap:35px;align-items:center;justify-content:space-between}.briefing .eyebrow{color:#c8d6bf;font-size:.75rem;letter-spacing:1px}.briefing h2{font-size:1.85rem;margin:12px 0}.briefing p{font-size:.9rem;color:#d0dcca;max-width:550px}.briefing .quiet{color:#d4e3c7;font-size:.8rem;margin-top:12px}.score{display:flex;flex-direction:column;align-items:center;min-width:115px;gap:7px}.score strong{font:500 4.3rem Manrope,sans-serif;letter-spacing:-3px;line-height:1}.score span{font-size:.8rem;color:#d5e6c6}.metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:16px 0}.metric{border:1px solid var(--line);border-radius:9px;padding:19px;background:white}.metric>span{font-size:.8rem;color:var(--muted)}.metric strong{display:block;font-size:1.65rem;font-weight:500;margin-top:11px}.metric small{font-size:.8rem;color:var(--muted)}.metric p{font-size:.8rem;margin-top:5px}.takeoff-advice{background:#eaf0e2;border-radius:8px;padding:16px 19px;display:flex;gap:13px;align-items:center;font-size:.875rem;line-height:1.6}.takeoff-advice .arrow{font-size:1.7rem;flex:none}.best-window{font-size:.875rem;line-height:1.7;color:var(--muted);margin:20px 0}.best-window button{font-weight:600;color:var(--green);text-decoration:underline;padding:0}.outlook{padding:23px}.outlook-heading{display:flex;align-items:center;justify-content:space-between;gap:15px}.muted{color:var(--muted);font-size:.8rem}.day-tabs{display:flex;gap:20px;border-bottom:1px solid var(--line);margin:24px 0 16px}.day-tabs button{padding:0 2px 12px;font-size:.875rem;border-bottom:2px solid transparent}.day-tabs button[aria-pressed=true]{font-weight:600;border-color:var(--green)}.hourly-scroll{overflow-x:auto;scrollbar-width:thin;padding-bottom:5px}.hourly{display:flex;gap:8px;position:relative;min-width:max-content}.hour{width:79px;flex:none;background:#f1f3ed;border-radius:7px;padding:13px 5px;display:flex;flex-direction:column;align-items:center;gap:9px;font-size:.8rem;border:1px solid transparent}.hour.good{background:#edf4e2}.hour.marginal{background:#faf1df}.hour[aria-pressed=true]{border-color:var(--green);box-shadow:inset 0 0 0 1px var(--green)}.hour strong{font-size:1.45rem}.hour small{font-size:.75rem}.more-details{margin-top:25px;font-size:.875rem;color:var(--muted)}.more-details p{font-size:.875rem;margin-top:15px}table{border-collapse:collapse;width:100%;text-align:left;font-size:.875rem;margin:20px 0}th,td{border-bottom:1px solid var(--line);padding:12px 6px;white-space:nowrap}th{font-weight:500;color:var(--muted)}td small{display:block;font-size:.75rem;margin-top:4px;color:var(--muted)}.notice{background:#fff0d7;border:1px solid #ecd9b8;border-radius:7px;padding:15px;font-size:.875rem;line-height:1.6;margin-bottom:20px}.empty-state{text-align:center;min-height:320px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:16px}.loader{height:30px;width:30px;border:3px solid #dce4d6;border-top-color:var(--green);border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}footer{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:35px 0 0;padding:22px 0;border-top:1px solid var(--line);font-size:.75rem;color:#7c8676}footer .quiet{font-size:.75rem}dialog{border:1px solid var(--line);border-radius:13px;background:#fafbf7;color:#263d30;width:min(670px,calc(100% - 26px));max-height:88vh;padding:28px;box-shadow:0 25px 90px #18301f40}dialog::backdrop{background:#14261b99;backdrop-filter:blur(3px)}.dialog-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}dialog p{font-size:.875rem;margin:13px 0}dialog h3{margin-top:23px}dialog li{font-size:.875rem;margin:12px 0}.reason-list{font-size:.875rem;color:var(--muted);line-height:1.7}.factor{display:flex;justify-content:space-between;gap:12px;padding:7px 0;border-bottom:1px solid var(--line);font-size:.8rem}.score-summary{padding:16px;background:var(--soft);border-radius:8px;margin-bottom:20px}.empty-list{padding:25px;font-size:.875rem;grid-column:1/-1;color:var(--muted)}[hidden]{display:none!important}
@media(max-width:700px){.app-header{height:70px;padding:0 20px}main{padding:25px 18px 0}.steps{gap:21px;font-size:.8rem;margin-bottom:29px}h1{font-size:1.8rem}.heading p{font-size:.9rem}.club-list{grid-template-columns:1fr;max-height:360px}.search-box{padding:14px 18px}.list-heading{padding:17px 18px 10px}.directory-note{padding:13px 18px;flex-wrap:wrap}.setup-footer{gap:12px;align-items:flex-start;flex-wrap:wrap;padding:18px 0}.setup-footer>div:first-child{flex:1}.setup-footer>div>span{max-width:250px}.footer-actions{gap:15px;flex:1;justify-content:flex-end}.primary{font-size:.875rem;padding:13px}.custom-club form{flex-wrap:wrap}.custom-club label{flex-basis:45%}.direction-panel{padding:18px}.direction-title{flex-wrap:wrap;gap:8px}.direction-title h2{font-size:1.1rem}.mode-options{gap:7px}.mode-options button{padding:12px 9px}.mode-options button[aria-pressed=true]{padding:11px 8px}.mode-options strong{font-size:.8rem;line-height:1.5}.mode-options small{font-size:.75rem}.mode-symbol{font-size:1.45rem}.compass-layout{grid-template-columns:1fr;gap:23px;padding:22px 0}.compass{max-width:265px}.direction-controls{max-width:400px;width:100%;margin:auto}.direction-controls h3{font-size:1.2rem}.direction-controls>p{margin-bottom:17px}.location-details summary{font-size:.8rem;flex-wrap:wrap}.location-details summary>span:last-child{margin-left:0}.location-links{flex-wrap:wrap}.weather-heading{align-items:flex-start}.weather-heading h1{font-size:1.65rem}.weather-heading .secondary{font-size:.8rem;white-space:nowrap}.weather-toolbar{flex-direction:column;align-items:stretch;gap:7px}.weather-toolbar>div{justify-content:space-between}.weather-toolbar select{flex:1;max-width:250px}.briefing{padding:21px;gap:17px;align-items:flex-start}.briefing h2{font-size:1.45rem}.briefing p{font-size:.875rem}.score{min-width:65px;padding-top:22px}.score strong{font-size:3.2rem}.score span{font-size:.75rem;text-align:center}.metrics{gap:8px}.metric{padding:13px 10px}.metric>span{font-size:.75rem}.metric strong{font-size:1.3rem}.metric p,.metric small{font-size:.75rem}.outlook{padding:19px 16px}.outlook-heading{flex-wrap:wrap}.takeoff-advice{font-size:.8rem}.coordinate-row{gap:10px}footer{gap:13px;align-items:flex-start}.custom-club p{font-size:.8rem}dialog{padding:21px}dialog table{font-size:.75rem}.day-tabs{gap:15px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;scroll-behavior:auto!important}}

.confidence{margin-top:12px!important;font-size:.8rem!important;color:#d9e7cb!important}.forecast-guide{font-size:.8rem;margin-top:12px;max-width:690px}.wind-arrow{display:inline-block;font-size:1.15rem;line-height:1;margin-right:5px}.hour-direction,.metric-direction{display:flex;align-items:center;justify-content:center;gap:2px}.metric-direction{justify-content:flex-start;margin-top:10px!important}.hour{width:94px}.day-tabs{overflow-x:auto;gap:18px}.day-tabs button{flex:none;white-space:nowrap}.more-details{overflow-x:auto}dialog table{white-space:normal}dialog td,dialog th{white-space:normal}.weather-toolbar .muted{font-size:.85rem}@media(max-width:700px){.metric{min-width:0}.metric p{overflow-wrap:anywhere}.weather-toolbar>div{gap:10px}.day-tabs{gap:17px}dialog table{font-size:.7rem}}

.hour-direction,.metric-direction{display:flex;flex-direction:column;align-items:stretch;gap:7px;width:100%}.wind-source{display:flex;align-items:center;justify-content:space-between;gap:9px;white-space:nowrap}.wind-source-name{font-size:.75rem;color:var(--muted);font-weight:600}.wind-source-value{display:inline-flex;align-items:center;font-size:.875rem;white-space:nowrap}.wind-arrow{flex:none;margin-right:5px}.hour{width:154px;padding:13px 9px}.hour-direction{margin:4px 0}.metric-direction{max-width:240px}.forecast-guide{max-width:760px}@media(max-width:700px){.metric:first-child{grid-column:1/-1}.metrics{grid-template-columns:1fr 1fr}.metric-direction{max-width:270px}.metric p{overflow-wrap:normal}}

.sun-times{font-size:.875rem;color:var(--green);margin:0 0 18px;line-height:1.7}.hour>span:first-child{white-space:nowrap}

/* Compact branding and forecast hierarchy. */
.brand{gap:8px;font-size:1.35rem;letter-spacing:-.7px;white-space:nowrap}
.brand img{width:52px;height:52px;object-fit:contain;flex:none}
.brand-lockup{display:flex;flex-direction:column;align-items:flex-start;gap:4px;line-height:1.2}
.brand-beta{display:inline-block;padding:3px 8px;border:1px solid #d7b56d;border-radius:5px;background:#fff0c9;color:#684608;font-size:.875rem;font-weight:700;letter-spacing:.02em;line-height:1.2}
.brand-name{color:var(--green)}
.brand-domain{font-weight:500;color:var(--muted)}
.app-header{height:76px;gap:14px}
.app-header .quiet{white-space:nowrap;min-height:44px}
.heading h1{margin:0 0 10px}
.steps{margin-bottom:30px}
.weather-heading{margin:0 0 20px}
.weather-heading h1{margin:0}
.weather-toolbar{margin-bottom:16px}
.weather-toolbar>div{margin-left:auto}
.weekly-picks{margin:28px 0}
.picks-heading{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:14px;flex-wrap:wrap}
.picks-heading>span{font-size:.875rem;color:var(--muted)}
.top-windows{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.top-window{min-width:0;display:flex;align-items:center;gap:11px;text-align:left;padding:17px 13px;border:1px solid var(--line);border-radius:10px;background:white}
.top-window:hover{border-color:var(--green);background:#f9fbf6}
.top-rank{display:grid;place-items:center;flex:none;width:25px;height:25px;border-radius:50%;background:var(--soft);color:var(--green);font-weight:700;font-size:.875rem}
.top-window-when{min-width:0;flex:1}
.top-window-when strong,.top-window-when small{display:block}
.top-window-when strong{font-size:.95rem}
.top-window-when small{font-size:.875rem;color:var(--muted);line-height:1.5;margin-top:3px}
.top-window-label{display:block;font-size:.8rem;margin-top:6px;color:var(--green)}
.top-window.marginal .top-window-label{color:#875518}
.top-window-score{font-size:1.5rem;font-weight:700;white-space:nowrap}
.top-window-score small{display:block;font-size:.75rem;color:var(--muted);font-weight:400;text-align:center}
.top-empty{grid-column:1/-1;padding:16px;border:1px solid var(--line);border-radius:8px;font-size:.875rem;color:var(--muted)}
.best-window{font-size:.875rem;margin:12px 0 0}
.forecast-help{margin-top:14px;font-size:.875rem;color:var(--muted)}
.forecast-help p{font-size:.875rem;margin-top:8px;max-width:620px}
@media(max-width:700px){
  .app-header{padding:8px 16px;height:auto;min-height:76px;gap:8px;flex-wrap:wrap}
  .brand{font-size:1.05rem;letter-spacing:-.5px;gap:4px}
  .brand img{width:38px;height:38px}
  .app-header .quiet{font-size:.8rem}
  .weather-toolbar{flex-direction:row;align-items:center}
  .weather-toolbar>button{max-width:70%}
  .top-windows{grid-template-columns:1fr}
  .top-window{padding:13px 16px;gap:14px}
  .top-window-label{display:inline-block;margin-top:3px}
  .top-window-score small{display:inline;margin-left:3px}
  .picks-heading>span{font-size:.8rem}
  footer{flex-wrap:wrap}
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    color: #e7e9ea;
    background: #0e1113;
    --green: #29bd8a;
    --muted: #a5adb1;
    --line: #343a3f;
    --soft: #202a2b;
    --surface: #181c1f;
    --surface-raised: #22272b;
    --text: #e7e9ea;
  }

  body { background: #0e1113; color: var(--text); }
  .app-header, .panel, .club-picker, .metric, .top-window { background: var(--surface); }
  .app-header { border-color: var(--line); }
  .brand-name, .brand-domain { color: #e7e9ea; }
  .brand-beta { background: #3a2d16; border-color: #80662d; color: #f6d58f; }
  .eyebrow, .sun-times { color: #62d6a4; }
  .steps { color: #929ba0; }
  .steps span { border-color: #4a5257; }
  input, select {
    color: var(--text);
    background: #202529;
    border-color: #495157;
  }
  input::placeholder { color: #9da6ab; }
  .search-box { border-color: var(--line); }
  .search-box input { background: transparent; }
  .list-heading strong, .list-heading > span, .directory-note { color: var(--muted); }
  .directory-note { background: #14181b; border-color: var(--line); }
  .club-option { color: var(--text); }
  .club-option:hover { background: #22282b; }
  .club-option[aria-pressed="true"] { background: #18342c; border-color: #386452; }
  .club-check { border-color: #697379; }
  .club-option[aria-pressed="true"] .club-check { background: #177553; border-color: #177553; color: white; }
  .primary { background: #147a59; color: white; }
  .primary:hover:not(:disabled) { background: #188c67; }
  .secondary, .club-tabs button {
    color: var(--text);
    background: var(--surface-raised);
    border-color: #41494e;
  }
  .secondary:hover, .club-tabs button:hover { background: #2b3236; }
  .club-tabs button[aria-pressed="true"] { background: #147a59; border-color: #147a59; color: white; }
  .mode-options button, .preset-row button, .cardinal-grid button {
    color: var(--text);
    background: var(--surface-raised);
    border-color: #41494e;
  }
  .mode-options button[aria-pressed="true"] { background: #19372d; border-color: #49a981; }
  .mode-symbol, .compass .north { color: #64d9a7; fill: #64d9a7; }
  .compass-ring { fill: #1a2023; stroke: #46534c; }
  .compass-inner, .compass-grid, .compass-tick { stroke: #343c40; }
  .compass text { fill: #a8b2ad; }
  .compass .runway-shape { fill: #294237; }
  .compass .runway-centerline { stroke: #74a888; }
  .compass-center, .takeoff-tip { fill: #69d5a6; }
  .takeoff-arrow { stroke: #69d5a6; }
  .direction-point { fill: #20272a; stroke: #69d5a6; }
  .cardinal-grid button[aria-pressed="true"] { background: #19372d; border-color: #49a981; }
  .all-directions { border-color: #4b9b75; }
  .location-details { border-color: var(--line); }
  .location-details summary > span:last-child { color: #efbd70; }
  .setup-footer { background: rgb(14 17 19 / 94%); border-color: var(--line); }
  .briefing { background: #123b30; color: #f0f5f3; }
  .briefing .eyebrow { color: #a4e8ca; }
  .briefing p { color: #cfddd7; }
  .briefing .quiet { color: #b6eed4; }
  .score span { color: #c0f1d8; }
  .takeoff-advice { background: #1c2b25; color: #e0eee7; }
  .outlook { background: var(--surface); }
  .hour { background: #22272b; color: var(--text); }
  .hour.good { background: #173026; }
  .hour.marginal { background: #30291d; }
  .hour[aria-pressed="true"] { border-color: #55c394; }
  .day-tabs { border-color: var(--line); }
  .day-tabs button[aria-pressed="true"] { border-color: #55c394; }
  .top-window:hover { background: #202a2b; border-color: #4aa982; }
  .top-window.good { background: #172c23; }
  .top-window.marginal { background: #2a251b; }
  .top-rank { background: #263a33; color: #8ee4bd; }
  .top-window-label { color: #83d9af; }
  .top-window.marginal .top-window-label { color: #f0bf72; }
  .top-window-score small { color: #b5bec2; }
  .top-empty { border-color: var(--line); }
  .forecast-help, .more-details, footer { color: var(--muted); }
  footer { border-color: var(--line); }
  .notice { color: #f3d49e; background: #342b1e; border-color: #66512f; }
  .error-message { color: #ff9c91; }
  table th, table td { border-color: var(--line); }
  th { color: #b5bec2; }
  .score-summary { background: #202a2b; }
  .factor { border-color: var(--line); }
  dialog { color: var(--text); background: #181c1f; border-color: #41494e; }
  dialog::backdrop { background: rgb(0 0 0 / 78%); }
  a { color: #8fdbff; }
  .brand, .club-tabs button[aria-pressed="true"], .primary, .preset-row button, .cardinal-grid button { color: inherit; }
  .brand-name, .brand-domain { color: #e7e9ea; }
  .primary, .club-tabs button[aria-pressed="true"] { color: white; }
  .preset-row button:hover, .cardinal-grid button:hover { background: #30383c; }
  [hidden] { display: none !important; }
}
.weather-icon{display:inline-flex;align-items:center;justify-content:center;flex:none;font-family:"Apple Color Emoji","Segoe UI Emoji",sans-serif;font-size:1.45rem;line-height:1.2;vertical-align:middle}
.weather-summary{display:inline-flex;align-items:center;gap:5px;font-size:.8rem;line-height:1.5;white-space:nowrap;color:var(--muted);font-weight:400}
.weather-summary .weather-icon{font-size:1.15rem}
.rain-chance{color:#166796;font-weight:600}
.hour-verdict{display:flex;align-items:center;gap:8px}
.hour-verdict .weather-icon{font-size:1.8rem}
.top-window-when .weather-summary{display:flex;flex-wrap:wrap;column-gap:5px;row-gap:0;margin-top:5px}
.top-window-label{margin-top:3px}
.day-tabs button>.weather-summary{display:flex;margin-top:3px;font-size:.75rem}
.best-window>.weather-summary{margin-left:5px;vertical-align:middle}
#verdict .weather-icon{font-size:1.8rem;margin-right:5px}
.hour{gap:7px}
@media(prefers-color-scheme:dark){.rain-chance{color:#87cff7}}

.weather-fog{display:inline-flex;align-items:center;gap:3px;color:var(--muted);vertical-align:middle;font-family:inherit;font-size:.75rem;line-height:1.2;font-weight:500;white-space:nowrap}
.weather-fog svg{width:1.5rem;height:1.5rem;flex:none;stroke-width:2}
.metrics:has(> :last-child:nth-child(2)){grid-template-columns:repeat(2,minmax(0,1fr))}
.metric strong .weather-summary{font-size:1.05rem;flex-wrap:wrap;white-space:normal}
@media(max-width:700px){.metrics:has(> :last-child:nth-child(2)) .metric:first-child{grid-column:auto}}

.picks-note{font-size:.8rem;line-height:1.5;color:var(--muted);margin:-10px 0 14px;max-width:760px}

/* Show one best flying window for each of the next five days. */
.weekly-picks{margin:0 0 24px}
.picks-heading{margin-bottom:9px}
.picks-note{margin:0 0 12px}
.top-windows{align-items:stretch}
.top-window{min-height:116px;align-items:center;gap:14px;padding:15px 16px;transition:border-color .16s ease,transform .16s ease}
.top-window:hover{transform:translateY(-1px)}
.top-window-when{display:flex;flex-direction:column;gap:3px}
.top-window-when small{font-size:.8rem}
.top-window-score{min-width:48px;padding-left:13px;border-left:1px solid var(--line);font-size:1.65rem;line-height:1.1;text-align:center}
.top-window-score small{font-size:.7rem;margin-top:3px}
.top-window-when .weather-summary{white-space:normal;gap:6px}
.top-window-when .weather-icon{font-size:1.15rem}
.hourly-scroll{scroll-margin-top:24px}
.hour{scroll-margin-inline:12px}
.hour.top-window-hour{box-shadow:inset 0 0 0 2px var(--green)}
.hour[aria-pressed="true"].top-window-hour{box-shadow:inset 0 0 0 2px var(--green),0 0 0 2px var(--green)}
.hour-temp{display:flex;justify-content:space-between;gap:5px;width:100%;padding-top:4px;border-top:1px solid var(--line);font-size:.72rem;color:var(--muted);white-space:nowrap}
.hour-direction{flex-direction:row;justify-content:center;align-items:center;gap:7px;margin-top:3px}
.wind-direction{display:grid;place-items:center;width:27px;height:27px;border:1px solid var(--line);border-radius:9px;background:var(--soft)}
.wind-direction[data-model="icon_seamless"]{color:#19799a}
.wind-direction[data-model="gfs_seamless"]{color:#a36a17}
.wind-direction[data-model="knmi_harmonie_arome_netherlands"]{color:#42784f}
.wind-arrow{display:block;width:16px;height:16px;margin:0;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;fill:none}
@media(prefers-color-scheme:dark){
  .wind-direction[data-model="icon_seamless"]{color:#76d7ef}
  .wind-direction[data-model="gfs_seamless"]{color:#f0bf72}
  .wind-direction[data-model="knmi_harmonie_arome_netherlands"]{color:#91d9a1}
}
@media(max-width:700px){
  .top-window{min-height:0;padding:14px;gap:12px}
  .top-window-score{min-width:46px;padding-left:10px}
  .top-window-when .weather-summary{font-size:.75rem;flex-wrap:wrap}
  .hour{width:150px}
}
.takeoff-advice .arrow{display:grid;place-items:center;width:34px;height:34px;font-size:0}
.takeoff-direction-arrow{display:block;width:27px;height:27px;stroke:currentColor;stroke-width:2.25;stroke-linecap:round;stroke-linejoin:round;fill:none}

.top-windows{grid-template-columns:1fr;gap:8px}
.top-window{display:grid;grid-template-columns:minmax(180px,1fr) minmax(240px,1.3fr) 110px;min-height:82px;padding:13px 18px;gap:16px}
.top-window-when{gap:2px}
.top-window-weather{display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-width:0}
.top-window-weather .weather-summary{display:flex;align-items:center;flex-wrap:wrap;gap:6px;font-size:.85rem}
.top-window-weather .weather-icon{font-size:1.2rem}
.top-window-temp{color:var(--muted);font-size:.8rem}
.window-weather-summary{display:flex;align-items:flex-start;gap:8px;min-width:0}
.window-rain{display:flex;flex-direction:column;gap:2px;min-width:0;font-size:.8rem;line-height:1.35}
.window-rain .rain-chance{font-size:.85rem;white-space:normal}
.window-rain-range{color:var(--muted);white-space:normal}
.top-window-score{min-width:0;padding-left:14px;font-size:1.7rem}
.top-window-score small{white-space:normal;line-height:1.3}
.top-window.poor{background:#fff7f3}
.top-window.unavailable{opacity:.85}
.window-reason,.window-confidence{font-size:.75rem;line-height:1.4;color:var(--muted);white-space:normal}
.hour-insight{font-size:.85rem;margin:12px 0;line-height:1.5}
.top-window.unavailable:hover{transform:none;background:var(--surface,#fff);border-color:var(--line)}
.detail-time{font-size:.8rem;line-height:1.4;font-weight:600;color:var(--muted);margin:0 0 -7px}
@media(max-width:700px){
  .top-window{grid-template-columns:minmax(0,1fr) 78px;gap:6px 12px;padding:13px 14px}
  .top-window-when{grid-column:1;grid-row:1}
  .top-window-weather{grid-column:1;grid-row:2}
  .top-window-score{grid-column:2;grid-row:1 / span 2;align-self:center;padding-left:10px;font-size:1.5rem}
  .top-window-score small{display:block;margin-left:0;font-size:.68rem}
}
@media(prefers-color-scheme:dark){.top-window.poor{background:#30211f}}

/* Neutral forecast surfaces; colour belongs to the score instrument. */
:root{--score-poor:#bf4b41;--score-marginal:#a1690a;--score-good:#658029;--score-excellent:#14805b;--card:#fff;--card-hover:#f4f6f5;--selection:#52616a}
.top-window,.hour{background:var(--card);border:1px solid var(--line)}
.top-window:hover,.hour:hover{background:var(--card-hover);border-color:var(--selection)}
.top-window-score{border:0;padding:0;display:grid;place-items:center}
.top-window{grid-template-columns:minmax(180px,1fr) minmax(240px,1.3fr) 124px}
.score-gauge{display:inline-flex;flex-direction:column;align-items:center;width:116px;flex:none;line-height:1;color:var(--muted)}
.score-gauge svg{display:block;width:100%;height:auto;overflow:visible}
.gauge-band{fill:none;stroke-width:7;stroke-linecap:butt}
.gauge-band-poor{stroke:var(--score-poor)}.gauge-band-marginal{stroke:var(--score-marginal)}.gauge-band-good{stroke:var(--score-good)}.gauge-band-excellent{stroke:var(--score-excellent)}
.score-poor{color:var(--score-poor)}.score-marginal{color:var(--score-marginal)}.score-good{color:var(--score-good)}.score-excellent{color:var(--score-excellent)}
.gauge-needle{fill:currentColor;stroke:none}
.gauge-value{fill:currentColor;stroke:none;text-anchor:middle;font:800 29px Manrope,sans-serif;letter-spacing:-1px;font-variant-numeric:tabular-nums}
.gauge-caption{font-size:.875rem;line-height:1.3;font-weight:600;letter-spacing:0}
.score-gauge-compact{width:96px}.score-gauge-compact .gauge-caption{font-size:.75rem;color:var(--muted);font-weight:400}
.score-unknown .gauge-band{stroke:var(--line)}
.hour{width:156px;gap:8px;padding:13px 10px}
.hour>span:first-child{font-size:.875rem}
.hour-condition{display:flex;justify-content:center;align-items:center;min-height:28px}
.hour-rain{display:flex;flex-direction:column;gap:4px;font-size:.875rem;line-height:1.35;font-weight:500;white-space:normal;overflow-wrap:anywhere}
.hour .hour-rain{width:100%;padding-top:8px;border-top:1px solid var(--line);text-align:center;color:var(--muted)}
.metric>.hour-rain{margin-top:12px;font-size:1rem}
.hour[aria-pressed="true"]{border-color:var(--selection);box-shadow:inset 0 0 0 1px var(--selection)}
.hour.top-window-hour{box-shadow:inset 0 -3px var(--selection)}
.hour[aria-pressed="true"].top-window-hour{box-shadow:inset 0 0 0 1px var(--selection),inset 0 -3px var(--selection)}
@media(max-width:700px){.top-window{grid-template-columns:minmax(0,1fr) 100px;gap:8px}.score-gauge{width:100px}.score-gauge-compact{width:96px}.gauge-caption{font-size:.8rem}}
@media(prefers-color-scheme:dark){:root{--score-poor:#ed8b80;--score-marginal:#e2b85b;--score-good:#b5ce79;--score-excellent:#62d4a7;--card:#181c1f;--card-hover:#22272b;--selection:#adb8bf}.top-window,.hour{background:var(--card)}}

.top-window-card{display:grid;grid-template-columns:minmax(0,1fr) 34px;align-items:center;gap:4px;padding-right:8px;border:1px solid var(--line);border-radius:10px;background:var(--card)}
.top-window-card:hover{border-color:var(--selection)}
.top-window-card .top-window{width:100%;grid-template-columns:minmax(180px,1fr) minmax(240px,1.3fr) 116px;border:0;border-radius:9px;background:transparent;transition:none}
.top-window-card .top-window:hover{border-color:transparent;background:transparent;transform:none}
.top-window-card .top-window.unavailable{opacity:.85}
.score-info{display:grid;place-items:center;width:28px;height:28px;padding:0;border:1px solid var(--line);border-radius:50%;background:var(--surface);color:var(--muted);font:700 .9rem Manrope,sans-serif;line-height:1;cursor:pointer}
.score-info:hover,.score-info:focus-visible{border-color:var(--green);color:var(--green);outline:2px solid color-mix(in srgb,var(--green) 30%,transparent);outline-offset:2px}
.score-factors{margin:14px 0 18px;padding:10px 14px;border-radius:9px;background:var(--soft)}
.score-factors .score-bonus strong{color:var(--green)}
.score-factors .factor:last-child{border-bottom:0}
.score-note{font-size:.8rem;line-height:1.55;color:var(--muted)}
@media(max-width:700px){.top-window-card{grid-template-columns:minmax(0,1fr) 32px;padding-right:5px}.top-window-card .top-window{grid-template-columns:minmax(0,1fr) 96px;gap:8px;padding:13px 12px}.top-window-card .score-gauge{width:92px}.score-info{width:26px;height:26px}}
.day-rain-chance{display:block;margin-top:3px;font-size:.8rem;line-height:1.35;color:var(--muted)}
.hour{width:208px;align-items:stretch;gap:10px;padding:14px 12px;text-align:left}
.hour-time{font-size:.9rem;font-weight:700;font-variant-numeric:tabular-nums}
.hour-condition{justify-content:flex-start;gap:8px;font-size:.875rem;color:var(--muted)}
.hour-condition .weather-icon{font-size:1.1rem}
.hour-fact{display:flex;justify-content:space-between;gap:8px;font-size:.875rem;line-height:1.4}
.hour-fact>span{color:var(--muted)}
.hour-fact strong{font-weight:600;font-variant-numeric:tabular-nums}
.hour .hour-temp{font-size:.8rem}
.hour .hour-rain{align-items:flex-start;text-align:left;font-size:.875rem}
.hour .hour-rain .rain-chance{font-size:.8rem}
.hour-directions{display:flex;flex-direction:column;align-items:flex-start;gap:5px;padding-top:8px;border-top:1px solid var(--line);font-size:.8rem;color:var(--muted)}
.hour-directions .hour-direction{width:100%;justify-content:flex-start}
@media(max-width:700px){.hour{width:202px}}

/* Shared layout: aligned page edges, independent details, readable touch cards. */
:root{--surface:#fff}
.app-header{padding-inline:max(24px,calc((100vw - 972px)/2))}
main,.outlook,.weekly-picks,.top-windows,.top-window-card,.top-window>*{min-width:0}
.weather-toolbar{flex-direction:row;flex-wrap:wrap;gap:4px 16px}
.weather-toolbar>div{gap:8px}.weather-toolbar .muted{font-size:.8rem}
#refresh{display:grid;place-items:center;min-width:44px;min-height:44px;font-size:1.25rem}
.picks-note{font-size:.875rem;line-height:1.6;max-width:720px;margin-bottom:16px}
.top-window-card{position:relative;display:block;padding:0}
.top-window-card .top-window{grid-template-columns:minmax(0,.9fr) minmax(0,1.4fr) 144px;padding:18px 20px;gap:20px}
.top-window-when strong{font-size:1rem}.top-window-when small{font-size:.875rem}
.top-window-weather{gap:6px;line-height:1.5}.top-window-temp{font-size:.875rem;white-space:normal}
.top-window-score{justify-self:start}.top-window-card .score-gauge{width:100px}
.top-window-weather .hour-rain{font-size:.875rem;line-height:1.5;color:var(--muted)}
.top-window-weather .rain-chance{font-size:.8rem;font-weight:400}
.score-info{position:absolute;right:10px;top:50%;transform:translateY(-50%);width:40px;height:40px;font-size:1rem;border-radius:50%;background:var(--card);color:var(--muted)}
.window-confidence,.window-reason{font-size:.8rem}
.day-tabs{margin:18px 0 12px;gap:18px;padding:0;max-width:100%;scrollbar-width:thin}
.day-tabs button{min-height:44px;padding:8px 1px}
.sun-times{margin-bottom:5px;font-size:.875rem;color:var(--muted)}
.window-context{font-size:.875rem;line-height:1.5;margin-bottom:16px}
.hourly-scroll{min-width:0;max-width:100%;overflow-x:auto;padding-bottom:12px;scrollbar-width:thin;overscroll-behavior-x:contain}
.hourly{width:max-content;min-width:100%;gap:10px;align-items:stretch}
.hour{width:184px;padding:14px 12px;gap:9px;align-items:stretch;text-align:left}
.hour strong{font-size:1rem;font-weight:600}.hour .hour-time{font-size:.9rem;font-weight:700}
.hour-condition{justify-content:flex-start;gap:7px;min-height:30px;font-size:.875rem;line-height:1.4}
.hour-condition .weather-icon{font-size:1.25rem}.hour-fact{font-size:.875rem;line-height:1.45}
.hour .hour-rain{font-size:.875rem;line-height:1.45;border:0;padding-top:3px}
.hour .hour-rain .rain-chance{font-size:.8rem;font-weight:400}
.hour-reason{font-size:.8rem;line-height:1.4;color:var(--muted)}
.hour-directions{margin-top:auto;padding-top:12px;gap:8px;font-size:.75rem}
.hour-directions>.hour-direction{display:flex;flex-direction:row;justify-content:space-around;gap:8px;margin:0}
.hour-direction .wind-direction{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;width:auto;height:auto;min-width:32px;flex:1}
.wind-direction .wind-arrow{width:22px;height:22px;margin:0}.wind-direction small{font-size:.6875rem;font-weight:600}
.hour-hint{font-size:.8rem;margin:7px 0 12px}.forecast-help{font-size:.8rem;margin:0}.forecast-help p{font-size:.875rem;margin-top:8px}
#selected-hour-details{border-top:1px solid var(--line);margin-top:20px;padding-top:20px;scroll-margin-top:20px}
.detail-time{margin:0;font-size:.95rem;color:inherit}.metrics{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.metric{min-width:0;padding:16px}.metric:first-child{grid-column:auto}.metric>span{font-size:.875rem}.metric>.hour-rain{font-size:.95rem}
.metric p{font-size:.875rem}.metric-direction{max-width:none}.hour-insight{font-size:.875rem}
.more-details{margin-top:18px}.more-details table{min-width:510px}.more-details td:first-child{white-space:normal}
.takeoff-advice{background:var(--soft);font-size:.875rem}
.method-calculation{margin-top:22px;font-size:.875rem}.method-calculation summary{font-weight:600}
.dialog-heading .quiet{min-width:44px;min-height:44px}.dialog-heading{gap:16px}
.setup-footer>div>span{overflow-wrap:anywhere}.mode-options button{min-width:0}.location-details summary>span:last-child{color:var(--muted)}
@media(max-width:760px){
 .top-window-card .top-window{grid-template-columns:minmax(0,1fr) 90px;gap:14px 12px;padding:16px}
 .top-window-when{grid-column:1/-1;grid-row:1;padding-right:38px}
 .top-window-weather{grid-column:1;grid-row:2}.top-window-score{grid-column:2;grid-row:2;align-self:center;padding:0}
 .top-window-card .score-gauge{width:90px}.top-window-card .score-info{top:8px;right:8px;transform:none}
 .metrics{grid-template-columns:1fr 1fr}.metric:first-child{grid-column:1/-1}
}
@media(max-width:700px){
 main{padding:24px 16px 0}.app-header{padding-inline:16px}.outlook{padding:18px 14px}
 .weather-toolbar>div{margin-left:0}.weather-toolbar{justify-content:space-between}
 .weather-toolbar .muted{font-size:.75rem}.weather-heading{margin-bottom:16px}
 .weekly-picks{margin:20px 0 26px}.picks-heading{margin-bottom:9px}
 .top-window-when small{font-size:.8125rem}.top-window-temp{font-size:.8125rem}
 .gauge-caption{font-size:.75rem}.top-window-weather .hour-rain{font-size:.8125rem}
 .top-window-weather .rain-chance{font-size:.75rem}.day-tabs{gap:18px}
 .hour{width:176px}.hour-hint{line-height:1.5}.outlook-heading .muted{font-size:.75rem}
}
@media(max-width:520px){
 .mode-options{grid-template-columns:1fr;gap:8px}
 .mode-options button{display:grid;grid-template-columns:32px 1fr;gap:3px 12px;padding:12px 14px}
 .mode-options button[aria-pressed=true]{padding:11px 13px}
 .mode-options .mode-symbol{grid-column:1;grid-row:1/3;align-self:center;height:auto}
 .mode-options strong{font-size:.875rem}.mode-options small{font-size:.8rem}
 .setup-footer{gap:12px}.footer-actions{gap:12px}.setup-footer .primary{white-space:nowrap}
 .metrics{grid-template-columns:1fr}.metric:first-child{grid-column:auto}
 .app-header .brand{font-size:1.1rem;gap:4px}.brand img{width:42px;height:42px}.brand-beta{font-size:.7rem}
 .app-header .quiet{font-size:.8rem}.app-header{gap:8px}
}
@media(prefers-color-scheme:dark){:root{--surface:#181c1f}.takeoff-advice{background:var(--soft)}}

.site-footer-links{display:flex;align-items:center;justify-content:flex-end;gap:14px;flex-wrap:wrap}.site-footer-links a{font-size:.8rem}footer{flex-wrap:wrap}

/* Put flying conditions first; detailed provider arrows live in the hour details. */
.hour-insight-label{font-size:.875rem;line-height:1.45;font-weight:600;white-space:normal;color:inherit}
.wind-warning{font-size:.875rem;line-height:1.45;font-weight:600;color:inherit;white-space:normal}
.window-short{display:inline-block;margin-top:5px;font-size:.875rem;line-height:1.4;color:var(--muted)}
.hour-wind{display:flex;align-items:center;gap:8px;font-size:.875rem;line-height:1.45;color:inherit;white-space:normal}
.hour-wind .wind-arrow{flex-shrink:0;width:22px;height:22px}

/* Mobile navigation owns the iPhone home-indicator area. */
.mobile-navigation{display:none}
.saved-clubs{display:grid;gap:16px;margin-bottom:22px}
.saved-club,.mobile-info{padding:22px;display:grid;gap:12px}
.saved-club-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.mobile-info h2:not(:first-child){margin-top:12px}
.mobile-info .secondary{justify-self:start}
.mobile-view-note{font-size:.875rem;margin-top:16px}
@media(max-width:700px){
 body.has-mobile-tabs{padding-bottom:calc(88px + env(safe-area-inset-bottom,0px))}
 body.has-mobile-tabs #manage-clubs,body.has-mobile-tabs footer{display:none}
 body.has-mobile-tabs .weather-toolbar #edit-directions{display:none}
 body.has-mobile-tabs .weather-toolbar>div{width:100%}
 .mobile-navigation{position:fixed;z-index:20;left:0;right:0;bottom:0;display:block;border-top:1px solid var(--line);background:var(--surface,#fff);padding:0 max(12px,env(safe-area-inset-right,0px)) max(8px,env(safe-area-inset-bottom,0px)) max(12px,env(safe-area-inset-left,0px))}
 .mobile-navigation [role=tablist]{display:flex;max-width:700px;margin:auto}
 .mobile-navigation [role=tab]{flex:1;min-width:0;min-height:66px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:6px 4px;color:var(--muted);font-size:.75rem;font-weight:500;-webkit-tap-highlight-color:transparent}
 .mobile-tab-icon{display:grid;place-items:center;min-width:60px;border-radius:18px;padding:4px 12px}
 .mobile-tab-icon svg{width:24px;height:24px;stroke-width:1.8}
 .mobile-navigation [aria-selected=true]{color:var(--green);font-weight:700}
 .mobile-navigation [aria-selected=true] .mobile-tab-icon{background:var(--soft)}
 .mobile-navigation button:focus-visible{outline-offset:-3px;border-radius:12px}
 .saved-club-actions .secondary{flex:1}
}

/* Browse five scores in one row and expand only the chosen day. */
.day-score-strip{display:flex;gap:10px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scrollbar-width:thin;padding:3px 2px 9px;margin:0 -2px}
.day-score-pick{flex:0 0 112px;min-height:108px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:9px 5px 7px;border:1px solid var(--line);border-radius:12px;background:var(--card);scroll-snap-align:start}
.day-score-pick[aria-pressed=true]{border-color:var(--green);box-shadow:inset 0 0 0 1px var(--green)}
.day-score-pick:focus-visible{outline-offset:-3px}
.day-score-label{font-size:.8125rem;font-weight:600;white-space:nowrap}
.day-score-pick .score-gauge{width:72px}
.day-score-pick .gauge-caption{display:none}
.day-score-hint{font-size:.8125rem;line-height:1.5;margin:0 0 12px}
.top-window-card{scroll-margin-block:16px}
@media(max-width:700px){
 .weekly-picks{margin-top:14px}
 .weekly-picks .picks-note{font-size:.75rem;line-height:1.45;margin-bottom:10px}
 .day-score-strip{display:flex;gap:8px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scrollbar-width:thin;padding:3px 2px 9px;margin:0 -2px}
 .day-score-pick{flex:0 0 82px;min-height:94px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:9px 5px 7px;border:1px solid var(--line);border-radius:12px;background:var(--card);scroll-snap-align:start}
 .day-score-label{font-size:.75rem;font-weight:600;white-space:nowrap}
 .day-score-pick .score-gauge{width:64px}
 .day-score-pick .gauge-caption{display:none}
 .day-score-hint{display:block;font-size:.75rem;line-height:1.5;margin:0 0 10px}
 .top-window-card{scroll-margin-block:16px}
 .top-window-card .top-window{grid-template-columns:minmax(0,1fr) 76px;padding:14px;gap:7px 10px}
 .top-window-card .top-window-when{grid-column:1;grid-row:1;padding-right:0}
 .top-window-card .top-window-score{grid-column:2;grid-row:1 / span 2;align-self:center;padding:22px 0 0}
 .top-window-card .score-gauge{width:76px}
 .top-window-card .top-window-weather{grid-column:1;grid-row:2;gap:4px;line-height:1.4}
 .top-window-card .top-window-when strong{font-size:.9375rem}
 .top-window-card .top-window-when small,.top-window-card .window-short,.top-window-card .wind-warning,.top-window-card .window-confidence,.top-window-card .window-reason{font-size:.75rem;line-height:1.4}
 .top-window-card .top-window-temp,.top-window-card .top-window-weather .hour-rain{font-size:.75rem;line-height:1.4}
}

/* Keep multi-club setup compact, with an explicit editable selection. */
.storage-note{font-size:.8rem!important;color:var(--muted);line-height:1.6;max-width:650px}
.selected-clubs{display:flex;flex-wrap:wrap;gap:6px;max-height:108px;overflow:auto;margin-top:8px;font-size:.8rem;color:var(--muted)}
.selected-club-chip{display:inline-flex;align-items:center;gap:8px;max-width:100%;text-align:left;border:1px solid var(--line);border-radius:16px;padding:6px 10px;background:var(--soft);font-size:.75rem;line-height:1.4;color:var(--text);overflow-wrap:anywhere}
.selected-club-chip span{font-size:1rem;flex:none}
#setup-progress{font-size:.875rem;color:var(--muted)}
#storage-warning{margin-top:0}
@media(max-width:700px){#club-step>.setup-footer{display:grid;grid-template-columns:1fr}#club-step>.setup-footer .footer-actions{justify-content:flex-end}.selected-clubs{max-height:82px;flex-wrap:nowrap;align-items:stretch}.selected-club-chip{min-height:36px;max-width:min(240px,80vw);flex:none}.storage-note{margin-top:10px!important}}

/* Display preferences use the same navigation and safe-area spacing. */
.settings-panel{padding:24px;display:grid;gap:12px;max-width:560px}
.settings-panel label{font-weight:600}
.settings-panel select{width:100%;min-height:48px;padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--surface,#fff);color:inherit;font:inherit}
.settings-panel p{color:var(--muted);font-size:.875rem}
.settings-back{margin-top:20px}
@media(max-width:700px){body.has-mobile-tabs #open-settings,.settings-back{display:none}}

/* Shared, themed controls keep manual headings legible in both appearances. */
:root{color-scheme:light;--text:#213a30;--muted:#616d64;--score-good:#5b7424;--danger:#a7332d;--control-border:#7c897c}
body{color:var(--text)}
.app-header #open-settings{margin-left:auto}
.steps,.list-heading>span,.directory-note,footer{color:var(--muted)}
.steps [aria-current=step] span{color:var(--surface)}
.compass text{fill:var(--muted)}
.club-check{border-color:var(--control-border)}
input,select{border-color:var(--control-border)}
.heading-chips button{background:var(--soft);color:var(--text);border-color:var(--control-border);min-height:44px;padding:10px 14px}
.compass-all-area{fill:var(--soft);stroke:var(--control-border)}
.compass-center{stroke:var(--surface)}
.direction-controls .degree-row{align-items:center;gap:10px}
#custom-controls .degree-row{display:grid;grid-template-columns:minmax(0,1fr) auto}
#custom-controls .degree-row label,#custom-angle-help{grid-column:1/-1}
#custom-angle{width:100%;min-height:48px}
.input-help{color:var(--muted);font-size:.8rem;line-height:1.5}
.cardinal-grid button,.preset-row button{min-height:44px}
input[aria-invalid=true]{border-color:var(--danger)}
.location-details summary>span:last-child{color:var(--text);font-weight:600;font-size:.875rem}
.quiet,.custom-club summary,.location-details summary{min-height:44px;align-content:center}
.club-removed{display:flex;align-items:center;justify-content:space-between;gap:12px}
.club-removed .quiet{flex:none;text-decoration:underline}
.delete-club{display:inline-flex;align-items:center;justify-content:center;gap:7px;color:var(--danger);min-height:44px;padding:10px 12px;border:1px solid var(--line);border-radius:8px}
.delete-club svg{width:18px;height:18px;flex:none}
.delete-club:hover{background:var(--soft)}
.saved-club-actions{gap:10px}
.saved-club-actions .secondary{flex:1}
.selected-clubs:empty{display:none}
#club-step .heading{margin-bottom:18px}
.club-list{overscroll-behavior:contain;scrollbar-gutter:stable}
.search-box:focus-within{box-shadow:inset 0 0 0 2px var(--green)}
.search-box input:focus-visible{outline:none}
dialog{max-height:calc(100dvh - 32px);overscroll-behavior:contain}
@media(prefers-color-scheme:dark){
 :root{color-scheme:dark;--text:#e7e9ea;--muted:#a5adb1;--score-good:#b5ce79;--danger:#ffaaa2;--control-border:#697479}
 .brand img{background:#edf2e8;border-radius:9px;padding:3px}
 .heading-chips button{color:var(--text);background:var(--soft);border-color:var(--control-border)}
 .compass-all-area{fill:#19372d;stroke:#49a981}
}
@media(max-width:700px){
 #club-step .heading h1{font-size:1.7rem}
 #club-step .heading p{font-size:.875rem;line-height:1.5}
 #club-step .storage-note{font-size:.75rem!important}
 .club-list{max-height:clamp(210px,42dvh,400px);padding:0 8px 8px}
 .club-option{min-height:64px;padding:11px 10px;gap:10px}
 .search-box{padding:10px 16px}
 .search-box input{min-height:32px}
 .list-heading{padding:12px 16px 8px}
 .directory-note{padding:10px 16px;line-height:1.4}
 .directory-note span:last-child{display:none}
 #club-step{padding-bottom:140px}
 #club-step>.setup-footer{position:fixed;left:0;right:0;bottom:0;margin:0;padding:12px max(16px,env(safe-area-inset-right,0px)) calc(12px + env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px));gap:10px}
 #club-step>.setup-footer .footer-actions{width:100%;display:flex;justify-content:space-between}
 #club-step>.setup-footer .primary{flex:1}
 #direction-step>.setup-footer{padding-bottom:calc(12px + env(safe-area-inset-bottom,0px))}
 .custom-club form{display:grid;grid-template-columns:minmax(0,1fr)}
 .saved-club{padding:18px;gap:10px}
 .saved-club-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 .saved-club-actions .secondary{padding-inline:8px}
 .saved-club-actions .delete-club{font-size:.875rem;padding-inline:8px;gap:6px}
 .saved-club-actions [data-open-club]{grid-column:1/-1}
 .club-removed{align-items:flex-start;flex-wrap:wrap}
}
