@font-face { font-family: Inter; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/app/fonts/inter-latin.woff2') format('woff2'); }
:root { color-scheme: light; --forest:#126747; --green:#126747; --ink:#172126; --muted:#59676f; --line:#dce3e7; --canvas:#f5f7f8; --focus:#2176d2; font-family:Inter,ui-sans-serif,system-ui,sans-serif; font-synthesis:none; }
* { box-sizing:border-box; font-style:normal; }
html { scroll-behavior:smooth; scroll-padding-top:80px; }
body { margin:0; color:var(--ink); background:var(--canvas); font-size:14px; line-height:1.55; }
button,input,select { font:inherit; color:inherit; }
button,a { touch-action:manipulation; -webkit-tap-highlight-color:transparent; }
a { color:inherit; text-underline-offset:3px; }
button { cursor:pointer; }
button:disabled { opacity:.48; cursor:default; transform:none; box-shadow:none; }
:is(button,a,input,select,summary,dialog):focus-visible { outline:3px solid var(--focus); outline-offset:3px; }
[hidden] { display:none!important; }
.shell { width:min(1240px,calc(100% - 64px)); margin-inline:auto; }
.skip-link { position:fixed; left:16px; top:-80px; z-index:20; opacity:0; pointer-events:none; background:#fff; padding:12px 16px; border-radius:10px; }
.skip-link:focus { top:8px; opacity:1; pointer-events:auto; }
.app-topbar { height:68px; display:flex; align-items:center; justify-content:space-between; gap:16px; border-bottom:1px solid var(--line); }
.brand { display:flex; align-items:center; gap:10px; text-decoration:none; font-weight:700; font-size:16px; letter-spacing:-.03em; }
.brand img { display:block; border-radius:8px; }
.app-topbar nav { display:flex; gap:24px; align-items:center; }
.app-topbar nav a { font-size:13px; font-weight:550; text-decoration:none; color:var(--muted); }
.app-topbar nav a:hover { color:var(--ink); }
.app-shell { padding:28px 0 48px; }
.app-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:16px; }
.app-heading h1 { font-size:28px; letter-spacing:-.055em; line-height:1.2; margin:0; font-weight:650; }
.local-badge { display:flex; align-items:center; gap:7px; font-size:11px; font-weight:550; color:var(--muted); }
.local-badge::before { content:''; width:6px; height:6px; border-radius:50%; background:var(--green); }
.notice { font-size:12px; margin:0 0 14px; padding:0; min-height:20px; color:var(--muted); background:transparent; border-radius:9px; }
.notice.error { padding:9px 12px; background:#fff0f2; color:#a72d39; }
.app-grid { display:grid; grid-template-columns:minmax(0,1fr) 320px; gap:24px; align-items:start; }
.app-primary,.app-secondary { display:grid; gap:20px; min-width:0; }
.surface { background:#fff; border:1px solid var(--line); border-radius:18px; padding:24px; min-width:0; }
.app-primary>.surface { box-shadow:0 8px 30px #17212605; }
.surface-head { display:flex; justify-content:space-between; align-items:start; gap:12px; margin-bottom:20px; }
.surface h2 { font-size:23px; margin:0; line-height:1.25; letter-spacing:-.045em; font-weight:650; }
.surface-head p { font-size:12px; color:var(--muted); margin:7px 0 0; }
.app-secondary h2 { font-size:18px; }
label { display:block; font-size:12px; font-weight:600; margin:0 0 6px; }
input,select { width:100%; min-width:0; height:46px; border:1px solid #c7d1d7; border-radius:10px; background:#fff; padding:10px 12px; transition:border-color 150ms,box-shadow 150ms; }
input:focus,select:focus { border-color:var(--focus); box-shadow:0 0 0 3px #2176d210; }
input::placeholder { color:#707e86; font-size:13px; }
select { padding-right:28px; }
.button { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; border:1px solid transparent; border-radius:12px; padding:11px 17px; font-size:13px; font-weight:600; text-decoration:none; line-height:1.3; transition:background-color 150ms,box-shadow 150ms,transform 120ms,border-color 150ms; }
.button:hover:not(:disabled) { transform:translateY(-1px); }
.button:active:not(:disabled),.step-button:active { transform:scale(.98); }
.button-primary { background:var(--green); color:#fff; box-shadow:0 3px 8px #12674716; }
.button-primary:hover:not(:disabled) { background:#0d5137; box-shadow:0 5px 14px #12674722; }
.button-outline { background:#fff; border-color:var(--line); color:var(--ink); }
.button-outline:hover:not(:disabled) { border-color:#bac9c1; background:#f5f8f6; }
.button-quiet { background:#e9edef; color:var(--ink); border-radius:999px; padding:10px 16px; }
.button-quiet:hover { background:#dfe6e9; }
.icon-button { display:grid; place-items:center; width:44px; height:44px; border:0; border-radius:50%; background:#f0f3f4; font-size:25px; color:var(--muted); }
#start-form { display:grid; grid-template-columns:minmax(0,1fr) minmax(100px,.38fr); gap:8px 16px; }
#start-form label[for=course-select] { grid-column:1; grid-row:1; }
#start-form #course-select { grid-column:1; grid-row:2; }
#start-form label[for=tee-select] { grid-column:2; grid-row:1; }
#start-form #tee-select { grid-column:2; grid-row:2; }
#course-note { grid-column:1/-1; margin:1px 0 8px; }
#start-form>.button { grid-column:1/-1; justify-self:start; min-width:156px; }
.form-help { font-size:12px; line-height:1.55; color:var(--muted); margin:12px 0 16px; }
.form-error { color:#a72d39; font-size:13px; font-weight:550; }
.optional { color:var(--muted); font-weight:400; font-size:11px; }
.required { color:#a72d39; }
.save-state { display:inline-flex; align-items:center; padding:6px 10px; border-radius:999px; background:#eaf4ee; color:#226044; font-size:11px; line-height:1.45; font-weight:600; max-width:190px; }
.score-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; border-block:1px solid var(--line); padding:15px 0; margin:0 0 10px; font-variant-numeric:tabular-nums; }
.score-summary>div { display:grid; gap:3px; }
.score-summary strong { font-size:23px; font-weight:600; letter-spacing:-.05em; line-height:1.2; }
.score-summary strong:first-child { overflow-wrap:anywhere; min-height:28px; }
.score-summary .empty-total { font-size:13px; font-weight:450; line-height:28px; letter-spacing:0; }
.score-summary span { font-size:11px; color:var(--muted); }
.upload-actions { display:flex; flex-wrap:wrap; align-items:center; gap:10px; min-height:26px; margin-bottom:12px; }
.upload-actions p { margin:0; font-size:11px; flex:1; min-width:180px; }
.upload-actions .button { font-size:11px; padding:8px 12px; }
.holes { display:flex; gap:7px; overflow-x:auto; scrollbar-width:thin; padding:3px 3px 10px; margin:0 -3px 16px; overscroll-behavior-inline:contain; }
.hole-button { flex:0 0 48px; min-height:58px; border:1px solid var(--line); border-radius:12px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; background:#fff; transition:background 150ms,box-shadow 150ms,transform 120ms; }
.hole-button strong { font-size:14px; font-weight:600; }
.hole-button span { font-size:12px; color:var(--muted); font-variant-numeric:tabular-nums; }
.hole-button:hover { background:#f1f5f3; }
.hole-button.active { color:var(--green); background:#eaf4ee; border-color:#81b69a; box-shadow:0 2px 5px #12674710; }
.hole-button.active span { color:var(--green); }
.score-form-title { display:flex; align-items:baseline; gap:12px; margin-bottom:14px; }
.score-form-title h3 { font-size:20px; letter-spacing:-.04em; margin:0; font-weight:650; }
.score-form-title>span { font-size:12px; color:var(--muted); }
.field-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.stroke-field { grid-column:1/-1; }
.score-stepper { display:flex; align-items:center; gap:12px; max-width:340px; padding:10px; border:1px solid var(--line); border-radius:16px; background:#f7f9fa; }
.step-button { width:52px; height:52px; flex:0 0 52px; display:grid; place-items:center; border:0; border-radius:12px; background:#fff; box-shadow:0 2px 6px #1721260b; font-size:26px; font-weight:400; transition:background 150ms,transform 120ms; }
.step-button:hover { background:#eaf4ee; }
#strokes { text-align:center; flex:1; min-width:60px; width:100px; height:62px; padding:0; border:0; background:transparent; font-size:42px; font-weight:600; letter-spacing:-.065em; font-variant-numeric:tabular-nums; appearance:textfield; }
#strokes::-webkit-inner-spin-button,#strokes::-webkit-outer-spin-button { -webkit-appearance:none; margin:0; }
#strokes::placeholder { font-size:18px; letter-spacing:-.025em; font-weight:450; }
.form-actions { display:flex; flex-wrap:wrap; gap:10px; }
#score-form>.form-actions .button-primary { min-width:160px; }
.round-actions { display:flex; flex-wrap:wrap; gap:10px 18px; border-top:1px solid var(--line); padding-top:12px; margin-top:20px; }
.text-button { min-height:44px; border:0; padding:8px 0; background:transparent; color:var(--green); font-size:12px; font-weight:550; text-decoration:none; }
.text-button:hover { text-decoration:underline; }
.text-button.danger { color:#a72d39; margin-left:auto; }
.round-list { display:grid; gap:4px; margin-top:12px; }
.round-list>p { font-size:13px; color:var(--muted); }
.round-item { display:flex; align-items:center; gap:12px; border-bottom:1px solid var(--line); padding:10px 0; }
.round-item.selected { background:#edf5f0; border-radius:10px; padding-inline:10px; border-color:transparent; }
.round-item button { flex:1; min-width:0; min-height:44px; border:0; padding:0; text-align:left; background:transparent; font-size:13px; font-weight:600; overflow-wrap:anywhere; }
.round-item small { display:block; font-size:10px; line-height:1.5; font-weight:400; color:var(--muted); margin-top:4px; }
.round-item>span { flex:0 0 auto; text-align:right; color:var(--muted); font-size:11px; white-space:pre-line; font-variant-numeric:tabular-nums; }
.export-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:18px; }
.export-actions .button { flex:1; font-size:11px; padding:9px 10px; }
.storage-note { font-size:11px; color:var(--muted); margin:0; padding:0 4px; }
.stats-panel p { font-size:12px; }
.stats-values { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px; margin:18px 0; font-size:12px; }
.stats-values dt { color:var(--muted); }
.stats-values dd { margin:0; font-weight:600; font-variant-numeric:tabular-nums; }
.stats-course { border-top:1px solid var(--line); padding-top:12px; color:var(--muted); }
summary { min-height:44px; padding:13px 0; cursor:pointer; font-size:12px; font-weight:600; }
.course-builder,.round-import,.course-map-panel { border-top:1px solid var(--line); margin-top:20px; }
.course-builder form { padding-top:10px; }
.course-holes { display:grid; gap:8px; margin:18px 0; }
.course-hole-row { display:grid; grid-template-columns:48px minmax(0,1fr) minmax(0,1.3fr); gap:10px; align-items:end; }
.course-hole-row>span { font-size:12px; font-weight:550; align-self:center; }
.course-hole-row label { font-size:10px; }
.course-hole-row input { margin-top:5px; }
.round-import input[type=file] { height:auto; padding:10px 0; border:0; border-radius:0; font-size:11px; }
.conflict-panel { background:#fff6e4; border:1px solid #e9d4a5; border-radius:14px; padding:18px; margin:16px 0; }
.conflict-panel h3 { font-size:18px; margin:0 0 10px; }
.conflict-panel p { font-size:12px; }
.conflict-table-wrap { overflow:auto; }
.conflict-panel table { width:100%; border-collapse:collapse; font-size:11px; min-width:280px; }
.conflict-panel caption { text-align:left; margin-bottom:10px; }
.conflict-panel th,.conflict-panel td { padding:8px 6px; border-bottom:1px solid #e9dab9; text-align:left; vertical-align:top; }
#account-dialog { width:min(480px,calc(100% - 32px)); max-height:85svh; padding:24px; border:1px solid var(--line); border-radius:20px; color:var(--ink); box-shadow:0 24px 80px #17212625; }
#account-dialog[open] { animation:panel-in 200ms ease-out; }
#account-dialog::backdrop { background:#17212666; backdrop-filter:blur(3px); }
.dialog-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:12px; }
.dialog-header h2 { font-size:23px; margin:0; letter-spacing:-.04em; }
.account-panel>p { color:var(--muted); font-size:12px; overflow-wrap:anywhere; }
.account-panel>#account-notice.error { color:#a72d39; }
.account-panel form { display:grid; gap:14px; margin-top:20px; }
.account-actions { display:flex; gap:16px; align-items:center; margin-top:18px; }
.account-controls { border-top:1px solid var(--line); margin-top:20px; }
.account-controls:empty { display:none; }
.account-controls summary { font-size:13px; }
.account-controls .account-consent { font-weight:400; }
.account-consent input { width:18px; height:18px; vertical-align:middle; margin-right:6px; }
.course-map { min-width:0; }
.course-map h3 { font-size:16px; margin:0 0 10px; }
.course-map p { font-size:12px; overflow-wrap:anywhere; color:var(--muted); }
.course-map .map-controls { display:flex; flex-wrap:wrap; gap:7px; align-items:center; margin:10px 0; }
.course-map button { min-height:44px; border:1px solid var(--line); border-radius:10px; padding:8px 11px; background:#fff; font-size:12px; transition:background 150ms; }
.course-map button:hover { background:#eaf4ee; }
.course-map label { display:flex; gap:7px; align-items:center; margin:0; font-size:11px; }
.course-map input[type=checkbox] { width:18px; height:18px; }
.course-map svg { display:block; width:100%; height:360px; border:1px solid var(--line); border-radius:12px; background:#f1f5f3; touch-action:none; }
.course-map .map-coordinates { display:flex; flex-wrap:wrap; align-items:end; gap:10px; }
.course-map .map-coordinates label { flex:1; min-width:110px; display:block; }
.course-map .map-controls select { width:auto; flex:1; min-width:130px; }
.course-map .map-source { font-size:11px; }
.course-map .map-import { border-top:1px solid var(--line); margin-top:16px; }
.course-map .map-distances { font-variant-numeric:tabular-nums; }
@keyframes panel-in { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
@media(min-width:1000px) { #score-form .field-grid { grid-template-columns:minmax(210px,1.15fr) repeat(2,minmax(115px,.7fr)); align-items:end; } #score-form .stroke-field { grid-column:auto; } #score-form .field-grid>div:not(.stroke-field) input { height:84px; text-align:center; font-size:24px; } .app-secondary { position:sticky; top:24px; } }
@media(max-width:900px) { .app-grid { grid-template-columns:minmax(0,1fr) 280px; gap:18px; } .surface { padding:20px; } .save-state { max-width:145px; } }
@media(max-width:720px) { .shell { width:calc(100% - 32px); } .app-topbar { height:60px; } .brand { font-size:14px; } .brand img { width:27px; height:27px; } .app-topbar nav { gap:13px; } .app-topbar nav>a { display:none; } .app-topbar .button { min-height:44px; font-size:12px; } .app-shell { padding-top:20px; } .app-heading h1 { font-size:24px; } .app-grid { grid-template-columns:minmax(0,1fr); gap:20px; } .app-primary,.app-secondary { gap:16px; } .surface { border-radius:16px; padding:18px; } .surface h2 { font-size:22px; } .surface-head { margin-bottom:16px; } .save-state { max-width:125px; font-size:11px; } .score-summary strong { font-size:21px; } .score-summary span { font-size:10px; } .field-grid { gap:12px; } .score-stepper { max-width:none; } #score-form>.form-actions .button-primary { flex:1; } .form-actions .button { padding-inline:13px; } .round-actions { gap:4px 12px; } .text-button { font-size:11px; } .local-badge { font-size:10px; } .course-hole-row { grid-template-columns:42px minmax(0,1fr) minmax(0,1.3fr); gap:8px; } }
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } *,*::before,*::after { animation:none!important; transition:none!important; } .button:hover:not(:disabled),.button:active:not(:disabled),.step-button:active { transform:none; } }
@media(max-width:720px) { #start-form { grid-template-columns:repeat(2,minmax(0,1fr)); } #start-form label[for=course-select],#start-form #course-select { grid-column:1/-1; } #course-note { grid-row:3; } #start-form label[for=tee-select] { grid-column:1; grid-row:4; } #start-form #tee-select { grid-column:1; grid-row:5; } #start-form>.button { grid-column:2; grid-row:5; min-width:0; width:100%; } }
