/* Score entry precedes account history and summaries in live view. */
.is-live-course { display:flex; flex-direction:column; }
.is-live-course[hidden] { display:none; }
.is-live-course > .detail-nav { order:0; }
.is-live-course > #entry-section { order:1; margin-top:0; }
.is-live-course > .summary-band { order:2; }
.is-live-course > #history-section { order:3; }
.is-live-scorecard .detail-nav { padding-bottom:8px; }
.is-live-scorecard #entry-section > .section-head,
.is-live-scorecard #entry-description { display:none; }
.is-live-scorecard .course-tools { margin-bottom:6px; }
.is-live-scorecard .entry-panel { margin-top:6px; padding:12px; }
.sc-card { --sc-line:#343d32; --sc-muted:#b6beaf; color:#f3f6ec; min-width:0; }
.has-scorecard .modal-card { width:min(620px,100%); }
.has-scorecard .modal-head { position:sticky; top:0; background:var(--surface); z-index:1; }
.has-scorecard .modal-body { padding:12px; }
.sc-history h3 { font-size:15px; margin:12px 0 7px; }
.sc-history .sc-table td { font-size:14px; }
.sc-history .sc-input-mark { max-width:100%; }
.sc-history .sc-input-mark input { max-width:100%; }
.sc-history-note { color:var(--muted); font-size:14px; line-height:1.45; margin:12px 0; }
.sc-history-score { display:inline-flex; align-items:center; justify-content:center; min-height:36px; font-size:18px; font-weight:800; }
.sc-history-view .sc-table td { font-size:12px; }
.sc-history-view .sc-table th { font-size:12px; }
.sc-history-view .sc-table tr > :first-child { font-size:9px; }
.sc-history-view .sc-row-label { width:38px; }
.sc-history-view .sc-score-row td { padding:0; }
.has-scorecard .edit-hint { font-size:12px; }
.sc-heading { display:flex; justify-content:space-between; gap:16px; align-items:flex-start; margin-bottom:8px; }
.sc-heading h2 { margin:2px 0 4px; font-size:clamp(18px,4vw,23px); line-height:1.15; }
.sc-heading p { margin:0; color:var(--sc-muted); font-size:12px; }
.sc-heading .sc-eyebrow { font-size:10px; letter-spacing:.17em; color:#cbf45c; font-weight:800; }
.sc-save { font-size:11px; color:#cbf45c; text-align:right; max-width:190px; line-height:1.5; }
.sc-save::before { content:'●'; margin-right:5px; font-size:8px; }
.sc-save-controls { display:flex; flex-direction:column; align-items:flex-end; gap:8px; }
.sc-save-controls button, .sync-review button:not(.save-button), .sync-notice button { min-height:44px; border:1px solid #7e9556; border-radius:7px; padding:8px 12px; color:#e6f2cf; background:#27321d; font-size:12px; cursor:pointer; }
.sc-save-controls button[hidden], .sync-notice[hidden], .sync-notice button[hidden] { display:none; }
.sync-notice { position:sticky; top:8px; z-index:90; margin:12px; padding:12px; border:1px solid #7e9556; border-radius:12px; background:#171d1b; color:#fff; font-size:12px; line-height:1.5; }
.sync-notice > span { display:block; margin-bottom:8px; }
.sync-review { box-sizing:border-box; width:calc(100% - 24px); max-width:640px; max-height:85dvh; padding:20px; border:1px solid #718650; border-radius:14px; background:#151d15; color:#ecf1e5; overflow-y:auto; }
.sync-review::backdrop { background:#000a; }
.sync-review-head { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.sync-review h2 { font-size:21px; margin:0; }
.sync-review p { font-size:13px; line-height:1.5; color:#c8d0bd; }
.sync-quick-choices { display:flex; flex-wrap:wrap; gap:8px; margin:16px 0; }
.sync-conflict { padding:15px 0; border-top:1px solid #3e4a34; }
.sync-conflict h3 { margin:0 0 12px; font-size:15px; overflow-wrap:anywhere; }
.sync-values { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.sync-values small { display:block; font-size:9px; letter-spacing:.08em; color:#b7c49d; margin-bottom:7px; }
.sync-values strong { display:block; font-size:14px; line-height:1.4; overflow-wrap:anywhere; }
.sync-conflict label { margin-top:14px; }
.sync-conflict select { width:100%; min-height:44px; font-size:16px; }
.sync-conflict details { margin-top:12px; font-size:12px; }
.sync-conflict summary { cursor:pointer; }
.sync-conflict pre { max-height:180px; overflow:auto; white-space:pre-wrap; overflow-wrap:anywhere; background:#0c120c; padding:10px; font-size:11px; }
.sync-review [data-sync-error] { color:#ffacb6; }
.sync-review .save-button { width:100%; min-height:48px; }
.sync-review .save-button:disabled { opacity:.4; }
[data-save-state="pending"] .sc-save, [data-save-state="conflict"] .sc-save { color:#ffc487; }
[data-save-state="unprotected"] .sc-save, [data-save-state="conflict-unprotected"] .sc-save { color:#ff9cab; }
.sc-stats { display:grid; grid-template-columns:repeat(3,1fr); padding:10px 0; border-top:1px solid var(--sc-line); }
.sc-stats > div { padding:0 16px; border-right:1px solid var(--sc-line); }
.sc-stats > div:first-child { padding-left:0; }
.sc-stats > div:last-child { border:0; }
.sc-stats span { display:block; color:var(--sc-muted); font-size:9px; font-weight:700; letter-spacing:.12em; }
.sc-stats strong { display:block; font-size:24px; margin-top:5px; line-height:1; font-variant-numeric:tabular-nums; }
.sc-progress { appearance:none; display:block; border:0; height:4px; width:100%; background:#30372b; border-radius:4px; margin-bottom:8px; }
.sc-progress::-webkit-progress-bar { background:#30372b; border-radius:4px; }
.sc-progress::-webkit-progress-value { background:#cbf45c; border-radius:4px; }
.sc-progress::-moz-progress-bar { background:#cbf45c; }
.sc-tabs { display:flex; gap:8px; }
.sc-tabs button { padding:10px 17px; min-height:44px; border:1px solid var(--sc-line); border-radius:8px; color:#cbd3c1; background:#161c14; font:inherit; font-size:13px; font-weight:750; cursor:pointer; }
.sc-tabs button[aria-pressed="true"] { color:#cbf45c; border-color:#789138; background:#27311a; }
.sc-tabs span { margin-left:8px; font-size:10px; opacity:.7; }
.sc-tabs { margin-bottom:8px; }
.sc-tables { display:grid; gap:6px; }
.sc-table-wrap { min-width:0; border:1px solid var(--sc-line); border-radius:7px; overflow:hidden; }
.sc-table { border-collapse:separate; border-spacing:0; table-layout:fixed; width:100%; font-variant-numeric:tabular-nums; text-align:center; }
.sc-row-label { width:42px; }
.sc-table th, .sc-table td { padding:3px 0; border-right:1px solid #30382c; font-size:12px; }
.sc-table tr > :last-child { border-right:0; }
.sc-table tr > :first-child { background:#22291d; color:#ccd5bd; font-size:9px; }
.sc-table thead { background:#2b3521; }
.sc-table thead th { font-size:14px; }
.sc-yards { color:#abb5a0; background:#1c2319; }
.sc-par-row { background:#232c1c; color:#d1dbc6; }
.sc-score-row { background:#141b11; }
.sc-score-row td { padding:3px 0 0; }
.sc-input-mark { box-sizing:border-box; display:inline-flex; width:44px; height:44px; border:2px solid transparent; align-items:center; justify-content:center; position:relative; }
.sc-input-mark input { box-sizing:border-box; display:block; width:40px; height:40px; min-height:40px; padding:0; border:1px solid #47503e; border-radius:5px; background:#20291b; color:inherit; text-align:center; font-size:18px; font-weight:800; outline-offset:1px; }
.sc-input-mark:not(.sc-empty) input { border-color:transparent; background:transparent; }
.sc-input-mark input[aria-invalid="true"] { outline:2px solid #ff9cab; }
.sc-result-row { background:#141b11; color:var(--sc-muted); }
.sc-result-row td { font-size:10px; padding:0 0 3px; }
.sc-table .sc-blank { background:#1b2218; }
.sc-nine-total { display:flex; justify-content:space-between; flex-wrap:wrap; gap:4px 10px; padding:8px 0; font-size:12px; }
.sc-nine-total > span:first-child { font-weight:750; color:#cbf45c; }
.sc-nine-total > span:last-child { color:var(--sc-muted); }
.sc-nine-total strong { color:#f3f6ec; }
.sc-birdie { color:#cbf45c; border:2px solid #cbf45c; border-radius:50%; background:#304016; }
.sc-eagle, .sc-albatross { color:#95dfff; border:4px double #95dfff; border-radius:50%; background:#163340; }
.sc-par { color:#e0e6d6; background:#283021; border-radius:5px; }
.sc-bogey { color:#ffc487; border:2px solid #ffc487; border-radius:2px; background:#422c16; }
.sc-double { color:#ff9cab; border:4px double #ff9cab; border-radius:2px; background:#43212b; }
.sc-feedback { display:flex; align-items:center; gap:13px; min-height:52px; padding:6px 0; }
.sc-feedback-mark { display:flex; flex-shrink:0; align-items:center; justify-content:center; width:43px; height:43px; font-weight:800; font-size:18px; box-sizing:border-box; }
.sc-feedback strong { display:block; font-size:15px; }
.sc-feedback div > span { display:block; color:var(--sc-muted); font-size:12px; margin-top:5px; line-height:1.45; }
.sc-legend { display:flex; flex-wrap:wrap; gap:14px; padding:8px 0 10px; border-bottom:1px solid var(--sc-line); }
.sc-legend > span { display:flex; align-items:center; gap:6px; color:var(--sc-muted); font-size:10px; }
.sc-symbol { display:inline-block; width:15px; height:15px; box-sizing:border-box; }
.sc-actions { padding-top:10px; display:grid; grid-template-columns:1fr auto; align-items:center; gap:10px; }
.sc-actions .save-button { grid-column:1/-1; margin:0; min-height:48px; }
.sc-actions .save-button:disabled { opacity:.42; cursor:default; }
.sc-actions p { margin:0; color:var(--sc-muted); font-size:10px; line-height:1.5; }
.sc-discard { padding:12px 0 12px 12px; background:none; border:0; color:#b6beaf; font:inherit; font-size:10px; text-decoration:underline; cursor:pointer; }
.sc-sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.dev-channel { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 14px; margin-bottom:20px; border:1px solid #546393; background:#192034; border-radius:9px; color:#ccdaff; font-size:11px; }
.dev-channel[hidden] { display:none; }
.dev-channel strong { display:block; margin-bottom:3px; }
.dev-channel button, .dev-map-lab button { min-height:44px; font:inherit; font-size:11px; color:#e1eaff; background:#283551; border:1px solid #64739d; border-radius:6px; padding:8px 12px; cursor:pointer; }
.dev-map-lab { margin-top:24px; padding:16px; border:1px dashed #64739d; border-radius:9px; }
.dev-map-lab p { font-size:12px; color:#b7c4e5; line-height:1.5; }
@media(max-width:700px) {
  .sc-heading { flex-direction:column; gap:4px; margin-bottom:8px; }
  .sc-save { max-width:none; text-align:left; }
  .sc-save-controls { align-items:flex-start; }
  .sc-stats strong { font-size:24px; }
  .sc-stats > div { padding:0 12px; }
  .sc-stats span { font-size:8px; }
  .sc-legend { gap:10px; }
  .is-live-scorecard .entry-panel { padding:10px 6px; }
  .dev-channel { align-items:flex-start; }
}

@media(max-width:360px) { .sc-row-label { width:35px; } .sc-input-mark { width:38px; height:42px; } .sc-input-mark input { width:34px; height:38px; min-height:38px; } }
