/* Shared pieces used by every mode: launch-monitor popover, menu link, status dot. Uses each page's own tokens. */
.dot { width: 7px; height: 7px; border-radius: 50%; background: #7d8a78; box-shadow: 0 0 0 3px rgba(125,138,120,0.2); flex: none; display: inline-block; }
.dot.wait { background: var(--flag); box-shadow: 0 0 0 3px rgba(245,197,66,0.25); }
.dot.live { background: #6ee38a; box-shadow: 0 0 0 3px rgba(110,227,138,0.25); }
.lm-btn { appearance: none; border: 0; background: transparent; padding: 0; cursor: pointer; display: flex; align-items: center; gap: 7px; color: inherit; font: inherit; text-align: left; }
.lm-btn:hover span { color: var(--bone); }
.menu-link { appearance: none; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-data); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sage, var(--mist)); padding: 7px 10px; border-radius: 7px; }
.menu-link:hover { color: var(--bone); background: rgba(255,255,255,0.06); }
.lm-pop { position: fixed; z-index: 20; left: max(16px, env(safe-area-inset-left, 0px)); top: calc(env(safe-area-inset-top, 0px) + 84px); width: min(360px, calc(100% - 32px)); padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.lm-head { display: flex; justify-content: space-between; align-items: center; font-family: var(--f-data); font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; }
.lm-x { appearance: none; border: 0; background: transparent; color: var(--sage, var(--mist)); font-size: 20px; cursor: pointer; padding: 2px 6px; }
.lm-note { margin: 0; font-size: 13px; line-height: 1.45; color: var(--sage, var(--mist)); }
.lm-lbl { font-family: var(--f-data); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sage, var(--mist)); }
.lm-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.lm-row input { min-width: 0; background: rgba(0,0,0,0.25); border: 1px solid var(--line); border-radius: 8px; color: var(--bone); font-family: var(--f-data); font-size: 15px; padding: 9px 10px; }
.lm-go { appearance: none; border: 0; border-radius: 8px; background: var(--flag); color: var(--flag-ink); padding: 0 14px; font-family: var(--f-data); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; }
.lm-state { margin: 0; font-family: var(--f-data); font-size: 13.5px; color: var(--bone); }
.menu-link .mshort { display: none; font-size: 20px; line-height: 0.8; }
@media (max-width: 560px) { .menu-link .mlong { display: none; } .menu-link .mshort { display: inline; } }

/* The simulated-shot tool (src/sim-tool.js): one small button, a fly-out with club, trajectory,
   a draggable shape line, Ideal and Hit. Kept small so the screen reads like it does with an R10. */
.st { position: relative; display: inline-flex; z-index: 8; }
.st-btn { appearance: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 4px 11px 4px 8px; border-radius: 18px; border: 1px solid var(--line); background: var(--glass, rgba(16,18,28,0.7)); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--mist, var(--sage)); cursor: pointer; font-family: var(--f-data); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.86; }
.st-btn svg { width: 18px; height: 18px; color: var(--flag); flex: none; }
.st-btn b { color: var(--bone); font-weight: 700; letter-spacing: 0.04em; }
.st-btn:hover, .st.open .st-btn { opacity: 1; border-color: var(--flag); }
.st.busy .st-btn { opacity: 0.5; }
.st-aim { appearance: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; min-height: 36px; margin-left: 5px; padding: 4px 9px 4px 7px; border-radius: 18px; border: 1px solid var(--line); background: var(--glass, rgba(16,18,28,0.7)); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--mist, var(--sage)); cursor: pointer; font-family: var(--f-data); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; }
.st-aim svg { width: 16px; height: 16px; flex: none; }
.st-aim .st-aimDot { opacity: 0; }
.st-aim[aria-pressed="true"] { opacity: 1; color: var(--flag); border-color: var(--flag); }
.st-aim[aria-pressed="true"] .st-aimDot { opacity: 1; }
.st-aim:hover { opacity: 1; }
.st.busy .st-aim { opacity: 0.45; }
.st-panel { position: absolute; left: 0; bottom: calc(100% + 8px); width: min(300px, calc(100vw - 24px)); max-height: calc(100vh - 110px); overflow-y: auto; padding: 10px 12px 11px; display: flex; flex-direction: column; gap: 9px; border-radius: 12px; border: 1px solid var(--line); background: var(--glass-hi, rgba(22,24,34,0.92)); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 12px 34px rgba(0,0,0,0.45); color: var(--bone); }
.st-panel header { display: flex; justify-content: space-between; align-items: center; font-family: var(--f-data); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mist, var(--sage)); }
.st-x, .st-clear { appearance: none; border: 0; background: transparent; color: var(--mist, var(--sage)); font-size: 19px; line-height: 1; cursor: pointer; padding: 0 4px; }
.st-target { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 5px 9px; border-radius: 8px; background: rgba(255,210,87,0.12); border: 1px solid rgba(255,210,87,0.4); font-family: var(--f-data); font-size: 13px; }
.st-clubs { display: flex; gap: 5px; overflow-x: auto; scrollbar-width: none; padding-bottom: 1px; }
.st-clubs::-webkit-scrollbar { display: none; }
.st-club, .st-seg button { appearance: none; flex: none; border: 1px solid var(--line); background: rgba(255,255,255,0.04); color: var(--bone); border-radius: 7px; padding: 5px 8px; font-family: var(--f-data); font-size: 13px; cursor: pointer; }
.st-club.sugg { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--flag); }
.st-club[aria-pressed="true"], .st-seg button[aria-pressed="true"] { background: var(--flag); color: var(--flag-ink); border-color: var(--flag); font-weight: 700; }
.st-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.st-shot { display: grid; grid-template-columns: minmax(0, 1fr) 54px; gap: 8px; align-items: start; }
.st-shape svg { display: block; width: 100%; height: 64px; touch-action: none; cursor: ew-resize; border-radius: 8px; background: rgba(0,0,0,0.22); }
.st-powBar { position: relative; height: 64px; border-radius: 8px; background: rgba(0,0,0,0.22); overflow: hidden; touch-action: none; cursor: ns-resize; }
.st-powFill { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(to top, rgba(255,210,87,0.32), rgba(255,210,87,0.12)); }
.st-powKnob { position: absolute; left: 7px; right: 7px; height: 3px; border-radius: 2px; background: var(--flag); }
.st-pow.auto .st-powFill { background: repeating-linear-gradient(-45deg, rgba(255,255,255,0.07) 0 4px, transparent 4px 8px); }
.st-pow.auto .st-powKnob { display: none; }
.st-powVal { appearance: none; border: 0; background: transparent; padding: 0; width: 100%; text-align: center; color: var(--bone); font-family: var(--f-data); font-size: 13px; cursor: pointer; }
.st-pow.auto .st-powVal { color: var(--mist, var(--sage)); }
.st-shape .st-mid { stroke: rgba(255,255,255,0.14); stroke-width: 1; stroke-dasharray: 3 4; }
.st-shape .st-path { fill: none; stroke: var(--flag); stroke-width: 2.6; stroke-linecap: round; }
.st-shape .st-sugg { fill: none; stroke: rgba(255,255,255,0.35); stroke-width: 1.4; stroke-dasharray: 2 4; }
.st-shape .st-ball { fill: #fff; }
.st-shape .st-flag { fill: none; stroke: #fff; stroke-width: 1.5; }
.st-shape .st-knob { fill: rgba(255,210,87,0.18); stroke: var(--flag); stroke-width: 1.5; }
.st-shapeRow { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; font-family: var(--f-data); font-size: 13px; }
.st-reset { appearance: none; border: 0; background: transparent; color: var(--flag); font-family: var(--f-data); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; padding: 0; }
.st-extra:empty { display: none; }
.st-fault { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-family: var(--f-data); font-size: 13px; color: var(--sage); }
.st-fault[hidden] { display: none; }
.st-fault select { appearance: none; min-width: 0; flex: 1 1 auto; max-width: 62%; background: rgba(255,255,255,0.06); color: var(--bone); border: 1px solid var(--line); border-radius: 7px; padding: 5px 8px; font: inherit; }
.st-go { display: grid; grid-template-columns: 1fr 1.5fr; gap: 6px; }
.st-go button { appearance: none; border-radius: 9px; min-height: 40px; font-family: var(--f-data); font-weight: 700; font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; }
.st-ideal { border: 1px dashed rgba(255,210,87,0.6); background: transparent; color: var(--flag); }
.st-hit { border: 0; background: var(--flag); color: var(--flag-ink); }
.st-go button:disabled { opacity: 0.45; cursor: default; }
.st-note { margin: 0; font-size: 11.5px; line-height: 1.4; color: var(--mist, var(--sage)); }
@media (max-height: 420px) { .st-panel { gap: 7px; padding: 8px 10px 9px; } .st-shape svg, .st-powBar { height: 52px; } .st-go button { min-height: 36px; } .st-note { display: none; } }
