/* ---------- Jetons de couleur (clair / sombre) ---------- */
:root {
  color-scheme: light;
  --bg: #f4f5f2;
  --surface: #fcfcfb;
  --surface-2: #f0efec;
  --line: #e2e1dc;
  --text: #0b0b0b;
  --text-2: #52514e;
  --text-3: #7a7974;
  --accent: #1f7a4d;          /* vert golf : boutons, liens, navigation */
  --accent-ink: #ffffff;
  --accent-soft: #e3f1e9;
  --series-1: #2a78d6;        /* palette categorielle validee (dataviz) */
  --series-2: #eb6834;
  --series-3: #1baf7a;
  --grid: #e9e8e4;
  --axis: #8a8984;
  --good: #0ca30c;
  --critical: #d03b3b;
  /* couleurs des resultats (sequence ordonnee bleu -> rouge, milieu gris) */
  --res-eagle: #1c5cab;
  --res-birdie: #5598e7;
  --res-par: #d9d8d3;
  --res-bogey: #f1a77f;
  --res-double: #e3683f;
  --res-triple: #b53a2c;
  --warn-bg: #fdebd3; --warn-ink: #8a4b00;
  --err-bg: #fbe4e2; --err-ink: #8c1d18;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 2px 8px rgba(0,0,0,.04);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #121211;
    --surface: #1a1a19;
    --surface-2: #232321;
    --line: #2e2e2b;
    --text: #f0efec;
    --text-2: #c3c2b7;
    --text-3: #93928a;
    --accent: #4cc38a;
    --accent-ink: #0b1a12;
    --accent-soft: #1d3327;
    --series-1: #3987e5;
    --series-2: #d95926;
    --series-3: #199e70;
    --grid: #2a2a28;
    --axis: #75746d;
    --res-par: #3a3a37;
    --res-bogey: #a55a39;
    --res-double: #c4532f;
    --res-triple: #e06a5b;
    --res-birdie: #5598e7;
    --res-eagle: #86b6ef;
    --warn-bg: #3a2a12; --warn-ink: #f3c27a;
    --err-bg: #3a1a18; --err-ink: #f2a59e;
    --shadow: none;
  }
}
:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #121211;
    --surface: #1a1a19;
    --surface-2: #232321;
    --line: #2e2e2b;
    --text: #f0efec;
    --text-2: #c3c2b7;
    --text-3: #93928a;
    --accent: #4cc38a;
    --accent-ink: #0b1a12;
    --accent-soft: #1d3327;
    --series-1: #3987e5;
    --series-2: #d95926;
    --series-3: #199e70;
    --grid: #2a2a28;
    --axis: #75746d;
    --res-par: #3a3a37;
    --res-bogey: #a55a39;
    --res-double: #c4532f;
    --res-triple: #e06a5b;
    --res-birdie: #5598e7;
    --res-eagle: #86b6ef;
    --warn-bg: #3a2a12; --warn-ink: #f3c27a;
    --err-bg: #3a1a18; --err-ink: #f2a59e;
    --shadow: none;
}

/* ---------- Palettes ---------- */
/* Daltonisme : bleu / orange (lisible pour les trois formes courantes de daltonisme) */
:root[data-palette="cvd"] {
  --series-1: #0072b2; --series-2: #e69f00; --series-3: #56b4e9;
  --res-eagle: #08306b; --res-birdie: #4a90d9; --res-bogey: #fdb863; --res-double: #e08214; --res-triple: #8c510a;
  --good: #0072b2; --critical: #d55e00;
}
/* Contraste eleve : couleurs franches, traits plus marques */
:root[data-palette="contrast"] {
  --text-2: var(--text); --text-3: var(--text); --line: #6b6a66; --grid: #b9b8b3; --axis: var(--text);
  --series-1: #0040a8; --series-2: #c43c00; --series-3: #00704a;
  --res-eagle: #001f66; --res-birdie: #0050d0; --res-par: #ffffff; --res-bogey: #ffa64d; --res-double: #d43d00; --res-triple: #7a0000;
  --accent: #00552f; --accent-soft: #cfe9da;
}
@media (prefers-color-scheme: dark) {
  :root[data-palette="contrast"]:not([data-theme="light"]) {
    --line: #8a8984; --grid: #555450; --res-par: #000000;
    --series-1: #6fb0ff; --series-2: #ff8a4d; --series-3: #3fe0a0; --accent: #6ff0b0; --accent-soft: #10331f;
  }
}
:root[data-theme="dark"][data-palette="contrast"] {
  --line: #8a8984; --grid: #555450; --res-par: #000000;
  --series-1: #6fb0ff; --series-2: #ff8a4d; --series-3: #3fe0a0; --accent: #6ff0b0; --accent-soft: #10331f;
}
:root[data-palette="contrast"] .card, :root[data-palette="contrast"] .tile { border-width: 2px; }

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px; line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
h1 { font-size: 1.45rem; margin: 0 0 4px; letter-spacing: -0.01em; }
h2 { font-size: 1.05rem; margin: 0 0 12px; }
h3 { font-size: .95rem; margin: 0 0 8px; color: var(--text-2); font-weight: 600; }
.muted { color: var(--text-2); }
.small { font-size: .82rem; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Mise en page ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 16px;
  padding: 10px 20px; background: var(--surface); border-bottom: 1px solid var(--line);
}
.brand { margin-right: auto; font-weight: 700; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.brand svg { width: 22px; height: 22px; }
.nav { display: flex; gap: 2px; overflow-x: auto; flex: 1; scrollbar-width: none; }
.nav a {
  padding: 7px 12px; border-radius: 8px; text-decoration: none; color: var(--text-2);
  font-weight: 500; white-space: nowrap;
}
.nav a.active { background: var(--accent-soft); color: var(--accent); }
.nav a:hover { color: var(--text); }
main { max-width: 1180px; margin: 0 auto; padding: 24px 20px 64px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow);
}
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 860px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.section { margin-top: 24px; }
@media (max-width: 860px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .topbar { padding: 8px 12px; gap: 8px; flex-wrap: wrap; }
  .nav { order: 3; width: 100%; flex-basis: 100%; }
  .topbar > button { min-height: 30px; padding: 4px 10px; font-size: .85rem; }
  main { padding: 16px 16px 48px; }
}

/* ---------- Tuiles de stat ---------- */
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.tile .label { color: var(--text-2); font-size: .82rem; }
.tile .value { font-size: 1.7rem; font-weight: 650; letter-spacing: -0.02em; margin: 2px 0; font-variant-numeric: tabular-nums; }
.tile .value .unit { font-size: .95rem; font-weight: 500; color: var(--text-2); margin-left: 2px; }
.tile .foot { display: flex; gap: 8px; align-items: center; font-size: .78rem; color: var(--text-3); }
.delta { font-weight: 600; font-variant-numeric: tabular-nums; }
.delta.up { color: var(--good); }
.delta.down { color: var(--critical); }

/* ---------- Tableaux de stats ---------- */
.statlist { width: 100%; border-collapse: collapse; }
.statlist td { padding: 7px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.statlist tr:last-child td { border-bottom: 0; }
.statlist td.v { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.statlist td.n { text-align: right; color: var(--text-3); font-size: .78rem; width: 70px; white-space: nowrap; padding-left: 8px; }
.statlist .bar { height: 6px; background: var(--surface-2); border-radius: 3px; margin-top: 4px; overflow: hidden; }
.statlist .bar > i { display: block; height: 100%; background: var(--series-1); border-radius: 3px; }

.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
table.data th, table.data td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data th { font-size: .78rem; color: var(--text-2); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
table.data tbody tr.click { cursor: pointer; }
table.data tbody tr.click:hover { background: var(--surface-2); }
table.data td.r, table.data th.r { text-align: right; }

/* ---------- Carte de score ---------- */
.scorecard { border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 100%; }
.scorecard th, .scorecard td { padding: 6px 4px; text-align: center; border-bottom: 1px solid var(--line); min-width: 34px; }
.scorecard th:first-child, .scorecard td:first-child { text-align: left; padding-left: 0; color: var(--text-2); font-weight: 500; min-width: 90px; }
.scorecard .tot { font-weight: 700; background: var(--surface-2); }
.sc { display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; font-weight: 650; border-radius: 6px; }
.sc.eagle { background: var(--res-eagle); color: #fff; border-radius: 50%; }
.sc.birdie { background: var(--res-birdie); color: #fff; border-radius: 50%; }
.sc.par { background: transparent; }
.sc.bogey { background: var(--res-bogey); color: #1a1a19; }
.sc.double { background: var(--res-double); color: #fff; }
.sc.triple { background: var(--res-triple); color: #fff; }
.chip { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .75rem; font-weight: 600; background: var(--surface-2); color: var(--text-2); }
.chip.comp { background: var(--accent-soft); color: var(--accent); }
.chip.warn { background: var(--warn-bg); color: var(--warn-ink); }

/* ---------- Formulaires & filtres ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin-bottom: 16px; }
.field { display: flex; flex-direction: column; gap: 3px; }
.field label { font-size: .75rem; color: var(--text-2); font-weight: 600; }
select, input[type=text], input[type=search], input[type=number], input[type=date], input[type=email], input[type=password], textarea {
  font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line);
  border-radius: 8px; padding: 7px 10px; min-height: 36px;
}
select:focus, input:focus, textarea:focus, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
button, .btn {
  font: inherit; font-weight: 600; border: 1px solid var(--line); background: var(--surface); color: var(--text);
  border-radius: 8px; padding: 7px 14px; cursor: pointer; min-height: 36px; display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none;
}
button.primary, .btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
button:disabled { opacity: .55; cursor: default; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg button { border: 0; border-radius: 0; min-height: 34px; padding: 6px 12px; font-weight: 500; color: var(--text-2); }
.seg button.on { background: var(--accent-soft); color: var(--accent); font-weight: 650; }
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.switch input { width: 18px; height: 18px; accent-color: var(--accent); }

/* ---------- Graphiques ---------- */
.chart-box { position: relative; height: 300px; }
.chart-box.tall { height: 380px; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: .82rem; color: var(--text-2); margin-bottom: 8px; }
.legend i { display: inline-block; width: 12px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.heat td.cell { font-weight: 600; text-align: center; border-radius: 4px; }

/* ---------- Divers ---------- */
.empty { padding: 32px; text-align: center; color: var(--text-2); }
.notice { padding: 10px 14px; border-radius: 8px; background: var(--surface-2); color: var(--text-2); font-size: .85rem; }
.notice.err { background: var(--err-bg); color: var(--err-ink); }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--text); color: var(--surface); padding: 10px 16px; border-radius: 8px; font-size: .9rem; z-index: 50; }
.login { max-width: 380px; margin: 10vh auto; }
.login form { display: grid; gap: 12px; }
.spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.hint { font-size: .78rem; color: var(--text-3); margin-top: 6px; }

/* ---------- v2 ---------- */
.icon-btn { padding: 6px 9px; }
.icon-btn svg { width: 18px; height: 18px; }
.chip.event { background: transparent; color: var(--text-2); padding-left: 2px; font-weight: 500; }
table.data th.sort { cursor: pointer; user-select: none; }
table.data th.sort:hover { color: var(--text); }
table.data th .arrow { font-size: .7rem; margin-left: 3px; color: var(--accent); }
.banner { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 14px; border-radius: 10px;
  background: var(--accent-soft); color: var(--text); margin-bottom: 16px; font-size: .9rem; }
.banner a { font-weight: 600; }
.banner .close { margin-left: auto; border: 0; background: transparent; min-height: 0; padding: 2px 6px; color: var(--text-2); }
.sync-msg { font-size: .8rem; color: var(--text-2); text-align: right; }

/* fenetres */
.modal-back { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 40; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { background: var(--surface); color: var(--text); border-radius: var(--radius); border: 1px solid var(--line); width: min(460px, 100%);
  max-height: calc(100vh - 32px); overflow: auto; padding: 20px; box-shadow: 0 10px 40px rgba(0,0,0,.25); }
.modal h2 { margin-bottom: 14px; }
.modal .actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 18px; }
.modal .field { margin-bottom: 12px; }
.modal .seg { width: 100%; }
.modal .seg button { flex: 1; }
button.danger { color: var(--critical); }

/* edition */
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.card-head h2 { margin: 0; }
.scorecard input, .scorecard select { min-height: 30px; padding: 3px 2px; width: 42px; text-align: center; font-size: .9rem; }
.scorecard select { width: 60px; }
.scorecard input[type=checkbox] { width: 16px; }
.edit-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); margin-bottom: 16px; }
.edit-grid .field input, .edit-grid .field select { width: 100%; }
.savebar { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin: 12px -8px 0; padding: 10px 8px; position: sticky; bottom: 0;
  background: var(--surface); border-top: 1px solid var(--line); flex-wrap: wrap; }
.dirty-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--series-2); display: inline-block; }
.bunker-ico { display: inline-flex; gap: 1px; align-items: center; }
.bunker-ico svg { width: 22px; height: 22px; }

/* parcours */
.course-tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.course-tile { cursor: pointer; display: flex; flex-direction: column; gap: 6px; min-height: 150px; text-align: left; align-items: stretch;
  font-weight: 400; padding: 14px 16px; border-radius: var(--radius); }
.course-tile:hover { border-color: var(--accent); }
.course-tile .name { font-weight: 650; font-size: 1rem; line-height: 1.25; }
.course-tile .place { color: var(--text-2); font-size: .82rem; }
.course-tile .facts { margin-top: auto; display: flex; gap: 14px; font-size: .82rem; color: var(--text-2); }
.course-tile .facts b { color: var(--text); font-variant-numeric: tabular-nums; }

/* saisie sur le parcours */
.entry { max-width: 520px; margin: 0 auto; }
.entry .hole-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.entry .hole-num { font-size: 2.6rem; font-weight: 750; letter-spacing: -0.03em; line-height: 1; }
.entry .hole-par { color: var(--text-2); font-size: .95rem; }
.entry .block { margin-top: 18px; }
.entry .block > label { display: block; font-size: .8rem; font-weight: 650; color: var(--text-2); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .04em; }
.choices { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.choices button { min-height: 52px; justify-content: center; font-size: 1.15rem; }
.choices button.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.stepper { display: grid; grid-template-columns: 56px 1fr 56px; gap: 8px; align-items: center; }
.stepper button { min-height: 52px; justify-content: center; font-size: 1.4rem; }
.stepper .val { text-align: center; font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.stepper .val small { font-size: .85rem; font-weight: 500; color: var(--text-2); margin-left: 4px; }
.quick { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.quick button { min-height: 34px; padding: 4px 10px; font-weight: 500; }
.entry-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.entry-nav button { min-height: 52px; justify-content: center; }
.hole-dots { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 14px; }
.hole-dots button { min-height: 30px; width: 30px; padding: 0; justify-content: center; font-size: .8rem; font-weight: 600; }
.hole-dots button.done { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.hole-dots button.cur { outline: 2px solid var(--accent); }
.offline { background: var(--warn-bg); color: var(--warn-ink); }
table.data td.wrap { white-space: normal; min-width: 200px; }
.field.search { flex: 1 1 220px; }
.field.search input { width: 100%; }
.fw-pick { display: inline-flex; gap: 2px; }
.fw-pick button { min-height: 26px; padding: 0 5px; font-size: .85rem; font-weight: 600; }
.fw-pick button.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
/* parcours en lignes */
.course-list { display: flex; flex-direction: column; gap: 8px; }
.course-row { padding: 0; overflow: hidden; }
.course-row > button.head { width: 100%; border: 0; border-radius: 0; background: transparent; padding: 12px 16px; min-height: 56px;
  display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; text-align: left; font-weight: 400; align-items: center; }
.course-row > button.head:hover { background: var(--surface-2); }
.course-row .name { font-weight: 650; }
.course-row .place { color: var(--text-2); font-size: .82rem; }
.course-row .facts { display: flex; gap: 16px; font-size: .82rem; color: var(--text-2); grid-row: span 2; align-items: center; }
.course-row .facts b { color: var(--text); font-variant-numeric: tabular-nums; }
.course-row .chev { transition: transform .15s; color: var(--text-3); }
.course-row.open .chev { transform: rotate(90deg); }
.course-row .body { padding: 4px 16px 16px; border-top: 1px solid var(--line); }
@media (max-width: 640px) { .course-row > button.head { grid-template-columns: 1fr; } .course-row .facts { grid-row: auto; } }
/* saisie : putts detailles */
.putt-card { border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.putt-card .sub { font-size: .75rem; font-weight: 650; color: var(--text-2); margin: 12px 0 6px; text-transform: uppercase; letter-spacing: .04em; }
.choices button .ico { display: inline-flex; width: 26px; height: 26px; }
.choices button .ico svg { width: 26px; height: 26px; }
.choices button small { font-size: .7rem; font-weight: 500; }
.putt-card .choices button { flex-direction: column; gap: 2px; min-height: 60px; }
.miss-grid { display: grid; grid-template-columns: repeat(3, 56px); gap: 6px; justify-content: center; }
.miss-grid button { min-height: 44px; padding: 0; justify-content: center; }
.miss-grid button .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--text-3); }
.miss-grid button.on { background: var(--accent); border-color: var(--accent); }
.miss-grid button.on .dot { background: var(--accent-ink); }
.miss-grid .hole { display: flex; align-items: center; justify-content: center; }
.miss-grid .hole::after { content: ''; width: 22px; height: 22px; border-radius: 50%; background: var(--text); box-shadow: 0 0 0 4px var(--surface-2); }
.entry-list { display: flex; flex-direction: column; }
.entry-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--line); }
.entry-row:last-child { border-bottom: 0; }
.entry-open { border: 0; background: transparent; padding: 4px 0; flex: 1 1 200px; display: block; text-align: left; font-weight: 400; min-height: 0; }
.entry-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.entry-actions .chip { text-decoration: none; }
.small-btn { min-height: 30px; padding: 3px 10px; font-size: .82rem; }
/* champ de recherche avec croix */
.search-wrap { position: relative; display: flex; }
.search-wrap input { padding-right: 34px; }
.search-wrap input::-webkit-search-cancel-button { display: none; }
.search-wrap .clear { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); min-height: 28px; height: 28px; width: 28px; padding: 0;
  justify-content: center; border: 0; background: transparent; color: var(--text-2); font-size: 1rem; }
.search-wrap .clear:hover { color: var(--text); background: var(--surface-2); }
/* carte de score : colonnes alignees entre aller et retour */
.scorecard { table-layout: fixed; width: 100%; min-width: 520px; }
.scorecard th:first-child, .scorecard td:first-child { width: 110px; min-width: 0; }
.scorecard th, .scorecard td { min-width: 0; }
.scorecard .tot { width: 64px; }
.course-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; margin-bottom: 14px; }
.miss-map { display: grid; grid-template-columns: repeat(3, minmax(70px, 110px)); gap: 6px; justify-content: center; }
.miss-map .cell { border-radius: 8px; padding: 10px 6px; text-align: center; font-variant-numeric: tabular-nums; border: 1px solid var(--line); }
.miss-map .cell b { display: block; font-size: 1.15rem; }
.miss-map .cell small { color: var(--text-2); font-size: .72rem; }
.miss-map .hole { display: flex; align-items: center; justify-content: center; }
.miss-map .hole::after { content: ''; width: 26px; height: 26px; border-radius: 50%; background: var(--text); }
.pick-list { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.pick-list button { justify-content: space-between; min-height: 42px; font-weight: 500; text-align: left; }
.pick-list button small { color: var(--text-3); font-weight: 400; }
.pick-list button.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.tiles.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) { .tiles.five { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .tiles.five { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tiles.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1100px) { .tiles.six { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .tiles.six { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.miss-map.four { grid-template-columns: repeat(3, minmax(64px, 100px)) minmax(70px, 100px); }
.miss-map .cell.tot { background: var(--surface-2); border-style: dashed; }
.coming { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.coming h3 { margin-bottom: 6px; }
.coming ul { margin: 0; padding-left: 18px; color: var(--text-2); font-size: .82rem; }
.coming li { margin: 3px 0; }
.hole-dots button.warn { background: var(--warn-bg); color: var(--warn-ink); border-color: #e3a24a; }
.hole-dots button.warn.cur { outline-color: #e3a24a; }

/* lip out (v2.8) */
.lip-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; padding: 8px 10px; margin-bottom: 10px; min-height: 52px; font-weight: 500; }
.lip-toggle b { display: block; font-size: .92rem; }
.lip-toggle small { display: block; color: var(--text-3); font-size: .74rem; font-weight: 400; }
.lip-switch { width: 44px; height: 26px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); position: relative; flex: none; }
.lip-switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--text-3); transition: left .15s; }
.lip-switch.on { background: var(--accent); border-color: var(--accent); }
.lip-switch.on::after { left: 20px; background: var(--accent-ink); }
.lip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.lip button { flex-direction: column; gap: 4px; min-height: 96px; justify-content: center; font-size: .78rem; font-weight: 500; text-align: center; }
.lip button .ico, .lip button .ico svg { width: 50px; height: 50px; display: inline-flex; }
.lip button.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.lip-note { background: var(--accent-soft); color: var(--accent); border-radius: 8px; padding: 8px 10px; font-size: .78rem; margin: 8px 0 0; }
.tiles.seven { grid-template-columns: repeat(7, minmax(0, 1fr)); }
@media (max-width: 1100px) { .tiles.seven { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) { .tiles.seven { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
