/* Original Golflaunch 0.8.0 (38) desktop.html styles, followed by ios/app-ui.css. */
#measurement-mode-desktop, #account-btn { display:none !important; }

:root{
  --bg:#f5f5f7;
  --panel:#ffffff;
  --ink:#1d1d1f;
  --muted:#6e6e73;
  --line:#d2d2d7;
  --soft:#f5f5f7;
  --green:#248a3d;
  --green-2:#e8f3ea;
  --amber:#bf7f1a;
  --red:#d70015;
  --blue:#0071e3;
  --video:#000000;
  --shadow:0 18px 50px rgba(0,0,0,.08);
}
*{box-sizing:border-box;margin:0;padding:0;}
body{font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",system-ui,sans-serif;background:linear-gradient(180deg,#fbfbfd 0%,#f5f5f7 100%);color:var(--ink);min-height:100vh;font-size:14px;letter-spacing:0;-webkit-font-smoothing:antialiased;}
.hdr{min-height:54px;background:rgba(255,255,255,.72);border-bottom:1px solid rgba(0,0,0,.06);padding:8px 22px;display:flex;align-items:center;justify-content:space-between;gap:12px;backdrop-filter:saturate(180%) blur(24px);}
.logo{min-width:0;display:flex;align-items:center;gap:10px;font-size:15px;font-weight:700;color:var(--ink);}
.logo svg{width:20px;height:20px;display:block;}
.badge{font-size:11px;font-weight:600;padding:5px 9px;border-radius:999px;background:rgba(118,118,128,.1);color:var(--muted);}
.top-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;min-width:0;}
.icon-btn{min-height:30px;padding:0 11px;border:0;border-radius:999px;background:rgba(118,118,128,.1);color:var(--blue);font-size:12px;font-weight:650;font-family:inherit;cursor:pointer;transition:background .15s,transform .15s,opacity .15s;}
.icon-btn:disabled{color:#8e8e93;cursor:not-allowed;}
.icon-btn:not(:disabled):hover{background:rgba(0,113,227,.12);transform:translateY(-1px);}
.layout{display:grid;grid-template-columns:minmax(0,1fr) 356px;height:calc(100vh - 54px);transition:grid-template-columns .32s ease, gap .32s ease, padding .32s ease, background .32s ease;}
.layout.results-mode{grid-template-columns:300px minmax(0,1fr);grid-template-rows:auto auto 1fr;gap:14px 16px;padding:16px;background:linear-gradient(180deg,#fbfbfd 0%,#f2f2f7 100%);}
.layout.replay-mode{grid-template-columns:minmax(0,1.35fr) minmax(360px,.65fr);gap:18px;padding:18px;background:linear-gradient(180deg,#fbfbfd 0%,#f2f2f7 100%);}
.video-col{background:var(--video);position:relative;overflow:hidden;transition:border-radius .32s ease,height .32s ease,box-shadow .32s ease,align-self .32s ease;}
.layout.results-mode .video-col{grid-column:1;grid-row:1;height:220px;align-self:start;border-radius:24px;box-shadow:0 24px 70px rgba(0,0,0,.18);z-index:2;}
.layout.replay-mode .video-col{height:calc(100vh - 90px);border-radius:30px;box-shadow:0 30px 90px rgba(0,0,0,.18);}
.layout.demo-active:not(.replay-mode) .video-col{background:linear-gradient(180deg,#fbfbfd 0%,#edf0f4 100%);}
.layout.demo-active:not(.replay-mode) .video-col video{opacity:0;}
.layout.demo-active:not(.replay-mode) .video-col:before{content:"";position:absolute;inset:0;background:linear-gradient(rgba(0,0,0,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(0,0,0,.045) 1px,transparent 1px),radial-gradient(circle at 56% 44%,rgba(0,113,227,.12),transparent 28%);background-size:82px 82px,82px 82px,100% 100%;z-index:0;}
.layout.demo-active:not(.replay-mode) .video-col:after{box-shadow:inset 0 0 0 1px rgba(0,0,0,.04),inset 0 0 90px rgba(255,255,255,.42);}
.video-col:after{content:"";position:absolute;inset:0;pointer-events:none;box-shadow:inset -1px 0 rgba(255,255,255,.05),inset 0 0 120px rgba(255,255,255,.03);}
video{width:100%;height:100%;object-fit:contain;display:block;}
#det-canvas{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none;z-index:3;}
#side-alignment-guide{display:none;position:absolute;left:8%;right:8%;top:50%;height:1px;border-top:1px dashed rgba(255,255,255,.7);pointer-events:none;z-index:2;filter:drop-shadow(0 1px 2px #000);}
#side-alignment-guide span{position:absolute;top:7px;left:50%;transform:translateX(-50%);white-space:nowrap;font-size:10px;color:#fff;}
body.camera-view-active #side-alignment-guide:not([hidden]){display:block;}
.replay-layer{position:absolute;inset:0;display:none;align-items:center;justify-content:center;background:linear-gradient(180deg,#fbfbfd 0%,#eceff3 100%);z-index:4;}
.replay-layer.active{display:flex;}
.replay-layer img{width:100%;height:100%;object-fit:contain;display:block;}
.replay-layer canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;}
.replay-badge{position:absolute;top:14px;left:14px;padding:6px 10px;border:1px solid rgba(0,0,0,.06);border-radius:999px;background:rgba(255,255,255,.72);color:var(--ink);font-size:11px;font-weight:650;backdrop-filter:saturate(180%) blur(24px);box-shadow:0 12px 34px rgba(0,0,0,.12);}
.video-hud{position:absolute;top:14px;left:14px;display:flex;flex-direction:column;gap:8px;}
.hud-badge,.rec-pill,#motion-ind{border:1px solid rgba(255,255,255,.18);background:rgba(44,44,46,.58)!important;color:rgba(255,255,255,.88)!important;box-shadow:0 18px 44px rgba(0,0,0,.28);backdrop-filter:saturate(180%) blur(24px);}
.hud-badge{font-size:11px;font-weight:500;padding:6px 10px;border-radius:999px;}
.rec-pill{position:absolute;top:14px;right:14px;font-size:11px;font-weight:650;padding:7px 11px;border-radius:999px;display:none;align-items:center;gap:7px;text-transform:none;}
.rec-dot{width:7px;height:7px;border-radius:50%;background:#ff453a;animation:blink .8s ease infinite;}
#motion-ind{bottom:14px!important;left:14px!important;max-width:calc(100% - 28px);box-sizing:border-box;padding:8px 12px!important;border-radius:999px!important;font-size:12px!important;font-weight:500!important;}
.floating-bar{position:absolute;left:16px;right:16px;bottom:16px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px;border:1px solid rgba(255,255,255,.18);border-radius:999px;background:rgba(44,44,46,.58);box-shadow:0 18px 44px rgba(0,0,0,.28);backdrop-filter:saturate(180%) blur(24px);z-index:5;}
.layout.replay-mode .floating-bar{border-color:rgba(0,0,0,.06);background:rgba(255,255,255,.72);box-shadow:0 18px 44px rgba(0,0,0,.14);}
.floating-status{min-width:0;color:rgba(255,255,255,.88);font-size:12px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.layout.replay-mode .floating-status{color:var(--muted);}
.floating-actions{display:flex;align-items:center;gap:6px;flex-shrink:0;}
.floating-actions #overlay-toggle-btn,.floating-actions [data-debug-snapshot-button]{display:none;}
body.debug-tools-visible .floating-actions #overlay-toggle-btn,
body.debug-tools-visible .floating-actions [data-debug-snapshot-button]{display:inline-flex;align-items:center;}
.layout.results-mode .floating-status{display:none;}
.layout.results-mode .floating-actions{width:100%;justify-content:center;}
.glass-btn{min-height:30px;width:auto;padding:0 11px;border:0;border-radius:999px;background:rgba(255,255,255,.14);color:white;font-size:12px;font-weight:650;font-family:inherit;cursor:pointer;transition:background .15s,transform .15s,opacity .15s;}
.layout.replay-mode .glass-btn,.replay-controls .glass-btn{background:rgba(118,118,128,.1);color:var(--blue);}
.glass-btn:disabled{opacity:.45;cursor:not-allowed;}
.glass-btn:not(:disabled):hover{background:rgba(255,255,255,.2);transform:translateY(-1px);}
.layout.replay-mode .glass-btn:not(:disabled):hover,.replay-controls .glass-btn:not(:disabled):hover{background:rgba(0,113,227,.12);}
.glass-btn.overlay-active{background:rgba(255,214,10,.22);color:#ffd60a;border:1px solid rgba(255,214,10,.35);}
.glass-btn.overlay-active:hover{background:rgba(255,214,10,.32);}
.ball-lock-tag{position:absolute;left:16px;top:54px;display:none;align-items:center;gap:7px;padding:7px 11px;border:1px solid rgba(255,255,255,.18);border-radius:999px;background:rgba(44,44,46,.58);color:rgba(255,255,255,.88);font-size:12px;font-weight:600;backdrop-filter:saturate(180%) blur(24px);z-index:5;}
.ball-lock-tag:before{content:"";width:7px;height:7px;border-radius:50%;background:#30d158;}
@keyframes blink{0%,100%{opacity:1;}50%{opacity:.28;}}
#wait-overlay{background:radial-gradient(circle at 50% 48%,rgba(255,255,255,.08),rgba(0,0,0,.72) 36%,rgba(0,0,0,.91))!important;color:white!important;}
.panel-col{background:rgba(245,245,247,.78);border-left:1px solid rgba(0,0,0,.06);display:flex;flex-direction:column;overflow-y:auto;backdrop-filter:saturate(180%) blur(22px);transition:border-radius .32s ease,box-shadow .32s ease,border .32s ease;}
.layout.results-mode .panel-col{display:contents;}
.layout.replay-mode .panel-col{border:1px solid rgba(0,0,0,.06);border-radius:30px;background:rgba(245,245,247,.78);box-shadow:0 30px 90px rgba(0,0,0,.12);}
.panel{padding:20px 16px 24px;display:flex;flex-direction:column;gap:12px;}
.layout.results-mode .panel{display:grid;grid-column:1 / -1;grid-row:1 / -1;grid-template-columns:300px minmax(0,1.25fr) minmax(280px,.75fr);grid-template-rows:auto auto 1fr;align-content:start;gap:14px;padding:0;overflow:visible;z-index:1;}
.panel-section{min-width:0;background:rgba(255,255,255,.72);border:1px solid rgba(0,0,0,.06);border-radius:18px;padding:12px;box-shadow:var(--shadow);backdrop-filter:saturate(180%) blur(20px);}
.layout.replay-mode .panel-section{background:rgba(255,255,255,.72);border-color:rgba(0,0,0,.06);color:var(--ink);}
.layout.replay-mode .section-title,.layout.replay-mode .conn-row,.layout.replay-mode .summary-label,.layout.replay-mode .mc-unit{color:var(--muted);}
.layout.replay-mode .conn-row span:last-child,.layout.replay-mode .summary-value{color:var(--ink);}
.layout.replay-mode .history-section,.layout.replay-mode .connection-section,.layout.replay-mode .control-section{display:none;}
.layout.results-mode .result-section{grid-column:2;grid-row:1 / span 2;}
.layout.results-mode .history-section{grid-column:3;grid-row:1 / span 3;}
.layout.results-mode .connection-section{grid-column:1;grid-row:2;}
.layout.results-mode .control-section{grid-column:1;grid-row:3;}
.layout.results-mode .summary-section{grid-column:2;grid-row:3;}
.layout.results-mode .result-section{order:1;}
.layout.results-mode .history-section{order:2;}
.layout.results-mode .summary-section{order:3;}
.layout.results-mode .connection-section{order:4;}
.layout.results-mode .control-section{order:5;}
.section-title{font-size:12px;font-weight:650;text-transform:none;color:var(--muted);margin-bottom:10px;}
.conn-card{background:transparent;border:0;border-radius:0;padding:0;display:flex;flex-direction:column;gap:11px;}
.conn-row{display:flex;align-items:center;justify-content:space-between;font-size:13px;color:var(--muted);}
.conn-row span:last-child{color:var(--ink);font-weight:500;}
.conn-row.url-row{align-items:flex-start;gap:10px;}
.mobile-link-wrap{display:flex;flex-direction:column;align-items:flex-end;gap:6px;min-width:0;}
.mobile-link{max-width:230px;color:var(--blue);font-size:12px;font-weight:650;text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.mobile-link:hover{text-decoration:underline;}
.diag-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:3px;}
.diag-card{background:rgba(255,255,255,.58);border:1px solid rgba(0,0,0,.06);border-radius:13px;padding:9px;min-height:58px;}
.diag-label{font-size:10px;color:var(--muted);font-weight:650;margin-bottom:5px;}
.diag-value{font-size:13px;color:var(--ink);font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.diag-value.good{color:var(--green);}
.diag-value.warn{color:var(--amber);}
.diag-value.bad{color:var(--red);}
.live-status{border-radius:14px;padding:10px;background:rgba(118,118,128,.08);border:1px solid rgba(0,0,0,.05);display:flex;flex-direction:column;gap:7px;}
.live-line{display:flex;justify-content:space-between;gap:10px;font-size:12px;color:var(--muted);}
.live-line strong{color:var(--ink);font-weight:750;}
.setup-checks{display:grid;grid-template-columns:1fr 1fr;gap:7px;}
.setup-check{border:1px solid rgba(0,0,0,.05);border-radius:12px;background:rgba(255,255,255,.55);padding:8px;min-height:48px;}
.setup-check span{display:block;font-size:10px;color:var(--muted);font-weight:650;margin-bottom:4px;}
.setup-check strong{display:block;font-size:12px;color:var(--ink);font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.setup-check.good strong{color:var(--green);}
.setup-check.warn strong{color:var(--amber);}
.setup-check.bad strong{color:var(--red);}
.review-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;}
.review-card{background:rgba(118,118,128,.08);border:1px solid rgba(0,0,0,.05);border-radius:14px;padding:10px;min-height:62px;}
.review-label{font-size:10px;color:var(--muted);font-weight:650;margin-bottom:5px;}
.review-value{font-size:13px;color:var(--ink);font-weight:750;line-height:1.2;}
.dot{width:7px;height:7px;border-radius:50%;flex-shrink:0;}
.dot.green{background:var(--green);}
.dot.red{background:var(--red);}
.dot.pulse{animation:blink .9s ease infinite;}
.btn{width:100%;min-height:42px;padding:0 13px;border-radius:10px;font-size:14px;font-weight:600;cursor:pointer;font-family:inherit;transition:background .15s,border-color .15s,color .15s,opacity .15s,transform .15s;}
.btn:disabled{opacity:.42;cursor:not-allowed;}
.btn-p{border:1px solid var(--blue);background:var(--blue);color:white;}
.btn-p:disabled{background:#e5e5ea;border-color:#e5e5ea;color:#8e8e93;opacity:1;}
.btn-s{background:rgba(118,118,128,.1);border:1px solid transparent;color:var(--blue);}
.btn-ghost{width:auto;min-height:30px;padding:0 10px;border-radius:999px;background:rgba(118,118,128,.1);border:0;color:var(--blue);font-size:12px;font-weight:600;}
.btn-ghost:disabled{color:#8e8e93;opacity:1;}
.btn:not(:disabled):hover{opacity:.92;transform:translateY(-1px);}
.btn:focus{outline:none;}
.btn:focus-visible{box-shadow:0 0 0 4px rgba(0,113,227,.16);}
.field-row{display:grid;grid-template-columns:1fr 1fr;gap:8px;}
.quick-setting{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:10px;padding:7px 0 1px;}
.quick-setting>span{color:var(--muted);font-size:10px;font-weight:650;white-space:nowrap;}
.mini-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;}
.select,.text-input{width:100%;min-height:36px;border:1px solid rgba(0,0,0,.06);border-radius:11px;background:rgba(255,255,255,.7);padding:0 10px;font:inherit;font-size:13px;color:var(--ink);}
.club-select-shell{position:relative;min-width:0;}
.club-select-shell .select{padding-left:29px;}
.club-select-dot,.club-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--club-color,var(--blue));box-shadow:0 0 0 1px rgba(0,0,0,.06);flex:0 0 auto;}
.club-select-dot{position:absolute;left:11px;top:50%;z-index:1;transform:translateY(-50%);pointer-events:none;}
.hint-line{font-size:11px;color:var(--muted);line-height:1.4;padding:0;transition:background .2s ease,border-color .2s ease,color .2s ease,padding .2s ease;}
.hint-line.is-blocking{padding:9px 10px;border:1px solid rgba(215,0,21,.14);border-radius:8px;background:rgba(215,0,21,.055);color:#8f1d2c;font-weight:650;}
.hint-line.is-warning{padding:9px 10px;border:1px solid rgba(184,112,0,.14);border-radius:8px;background:rgba(255,159,10,.07);color:#805000;}
.mc-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;}
.mc{background:rgba(255,255,255,.74);border:1px solid rgba(0,0,0,.06);border-radius:16px;padding:12px;text-align:left;min-height:78px;display:flex;flex-direction:column;justify-content:space-between;}
.mc-label{font-size:11px;text-transform:none;color:var(--muted);font-weight:500;margin-bottom:8px;}
.mc-val{font-size:29px;font-weight:700;color:var(--ink);line-height:1;}
.mc-unit{font-size:11px;color:var(--muted);margin-top:4px;}
.result-stack{display:flex;flex-direction:column;gap:12px;}
.hero-metric{background:linear-gradient(180deg,rgba(255,255,255,.86),rgba(255,255,255,.64));border:1px solid rgba(0,0,0,.06);border-radius:22px;padding:18px;min-height:142px;display:flex;flex-direction:column;justify-content:space-between;}
.hero-label{font-size:13px;color:var(--muted);font-weight:550;}
.hero-value{font-size:64px;line-height:.95;font-weight:760;letter-spacing:-.04em;color:var(--ink);}
.hero-unit{font-size:14px;color:var(--muted);font-weight:600;margin-left:4px;letter-spacing:0;}
.secondary-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;}
.stat-card{background:rgba(255,255,255,.74);border:1px solid rgba(0,0,0,.06);border-radius:16px;padding:12px;min-height:86px;display:flex;flex-direction:column;justify-content:space-between;}
.stat-label{font-size:11px;color:var(--muted);font-weight:500;}
.stat-value{font-size:28px;line-height:1;font-weight:700;color:var(--ink);}
.cal-chip{display:inline-flex;align-items:center;gap:6px;width:max-content;max-width:100%;padding:5px 8px;border-radius:999px;background:rgba(118,118,128,.1);color:var(--muted);font-size:11px;font-weight:600;}
.cal-chip:before{content:"";width:6px;height:6px;border-radius:50%;background:var(--green);}
.cal-chip.estimated:before{background:var(--amber);}
.confidence-summary{min-height:38px;padding:8px 10px;border:1px solid #e5e5ea;border-radius:8px;background:#f7f7f9;display:flex;align-items:center;gap:8px;font-size:11px;color:#6e6e73;}
.confidence-dot{width:8px;height:8px;border-radius:50%;flex:0 0 auto;}
.confidence-summary strong{margin-left:auto;font-size:12px;}
.confidence-static{color:#8e8e93;}
.hist-table{border:1px solid rgba(0,0,0,.06);border-radius:16px;overflow:hidden;background:rgba(255,255,255,.58);}
.hist-hdr,.hist-row{display:grid;grid-template-columns:42px 46px 42px 45px 39px 53px 22px;column-gap:2px;align-items:center;}
.hist-table.hide-confidence .hist-hdr,.hist-table.hide-confidence .hist-row{grid-template-columns:42px 46px 42px 45px 39px 22px;}
.hist-hdr{padding:8px 10px;background:rgba(255,255,255,.72);font-size:10px;font-weight:600;color:var(--muted);text-transform:none;}
.hist-row{padding:9px 10px;font-size:12px;border-bottom:1px solid rgba(0,0,0,.06);cursor:pointer;transition:background .15s;}
.hist-row:hover{background:rgba(0,113,227,.06);}
.hist-row.active{background:rgba(0,113,227,.1);}
.hist-row:last-child{border-bottom:none;}
.hist-select{grid-column:1 / -2;display:grid;grid-template-columns:subgrid;align-items:center;min-height:28px;padding:0;border:0;border-radius:6px;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer;}
.hist-select:focus-visible,.hist-replay:focus-visible{outline:2px solid var(--blue);outline-offset:2px;}
.hist-replay{border:0;background:transparent;cursor:pointer;font-size:13px;padding:2px;color:var(--blue);line-height:1;}
.empty-state{display:flex;align-items:center;justify-content:center;min-height:66px;padding:12px;color:var(--muted);text-align:center;font-size:13px;}
.summary-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;}
.summary-card{background:rgba(255,255,255,.66);border:1px solid rgba(0,0,0,.06);border-radius:14px;padding:10px;}
.summary-label{font-size:10px;color:var(--muted);font-weight:600;margin-bottom:5px;}
.summary-value{font-size:18px;font-weight:750;color:var(--ink);}
.settings-backdrop{position:fixed;inset:0;display:none;align-items:center;justify-content:flex-end;background:rgba(0,0,0,.18);backdrop-filter:blur(8px);z-index:20;}
.settings-backdrop.open{display:flex;}
.settings-sheet{width:min(420px,calc(100vw - 28px));height:calc(100vh - 28px);margin:14px;border:1px solid rgba(0,0,0,.08);border-radius:28px;background:rgba(250,250,252,.88);box-shadow:0 30px 100px rgba(0,0,0,.22);backdrop-filter:saturate(180%) blur(28px);display:flex;flex-direction:column;overflow:hidden;}
.settings-head{display:flex;align-items:center;justify-content:space-between;padding:18px 18px 10px;}
.settings-title{font-size:20px;font-weight:760;letter-spacing:-.02em;}
.settings-body{padding:0 18px 18px;overflow-y:auto;display:flex;flex-direction:column;gap:14px;}
.setting-group{background:rgba(255,255,255,.72);border:1px solid rgba(0,0,0,.06);border-radius:18px;padding:13px;box-shadow:var(--shadow);}
.setting-label{font-size:12px;font-weight:650;color:var(--muted);margin-bottom:9px;}
.source-badge.warn{background:#fff1d6;color:#8a5c00;}
.source-badge.reload{cursor:pointer;box-shadow:0 0 0 1px rgba(138,92,0,.12) inset;}
.source-list{display:flex;flex-direction:column;gap:8px;}
.source-row{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;color:var(--muted);}
.source-row strong{max-width:58%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink);font-weight:680;text-align:right;}
.source-path{padding:9px 10px;border-radius:12px;background:rgba(118,118,128,.09);font-size:11px;line-height:1.35;color:var(--muted);word-break:break-word;}
.source-warning{padding:9px 10px;border-radius:12px;background:#fff1d6;color:#7a5200;font-size:11px;line-height:1.35;font-weight:620;}
.source-warning[hidden]{display:none;}
.reference-sheet{width:min(520px,calc(100vw - 24px));}
.reference-shot{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;}
.reference-shot>div,.reference-stat{padding:11px;border:1px solid var(--studio-line);border-radius:10px;background:var(--studio-surface-2);}
.reference-shot span,.reference-stat span{display:block;margin-bottom:4px;color:var(--muted);font-size:10px;font-weight:620;}
.reference-shot strong,.reference-stat strong{font-size:16px;font-weight:730;}
.reference-form{display:grid;grid-template-columns:1fr 1fr;gap:10px;}
.reference-field{display:flex;flex-direction:column;gap:6px;color:var(--muted);font-size:11px;font-weight:620;}
.reference-field.wide{grid-column:1/-1;}
.reference-field input,.reference-field select{min-height:40px;border:1px solid var(--studio-line);border-radius:9px;background:white;padding:0 10px;color:var(--ink);font:inherit;font-size:13px;}
.reference-actions{display:flex;gap:8px;flex-wrap:wrap;}
.reference-actions .btn{width:auto;min-width:112px;}
.reference-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;}
.reference-empty{padding:14px;color:var(--muted);font-size:12px;line-height:1.45;text-align:center;}
.reference-comparison{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;}
.reference-comparison .reference-stat strong{font-size:14px;}
.reference-tag{display:inline-flex;align-items:center;min-height:20px;padding:0 7px;border-radius:999px;background:#e8f3ea;color:#246b34;font-size:10px;font-weight:700;}
.seg{display:grid;gap:6px;}
.seg.cols-2{grid-template-columns:1fr 1fr;}
.seg.cols-3{grid-template-columns:repeat(3,1fr);}
.seg.cols-4{grid-template-columns:repeat(4,1fr);}
.seg button{min-height:34px;border:0;border-radius:11px;background:rgba(118,118,128,.1);color:var(--ink);font-size:12px;font-weight:650;font-family:inherit;cursor:pointer;}
.seg button.active{background:var(--blue);color:white;}
.ball-camera-placement-panel{margin-top:10px;padding:11px;border:1px solid rgba(0,113,227,.16);border-radius:14px;background:rgba(0,113,227,.045);}
.ball-camera-placement-panel[hidden]{display:none;}
.ball-camera-placement-diagram{position:relative;height:76px;margin-bottom:10px;border-radius:12px;overflow:hidden;background:linear-gradient(180deg,#eef7ed,#e4f0e2);border:1px solid rgba(59,109,17,.13);}
.ball-camera-placement-diagram:before{content:"";position:absolute;left:15%;right:10%;top:50%;height:2px;background:linear-gradient(90deg,rgba(59,109,17,.18),rgba(59,109,17,.78));}
.ball-camera-placement-diagram:after{content:"Mål";position:absolute;right:10px;top:calc(50% - 18px);font-size:9px;font-weight:760;color:#3b6d11;}
.placement-ball-dot{position:absolute;left:23%;top:50%;width:13px;height:13px;border:3px solid white;border-radius:50%;background:#3b6d11;transform:translate(-50%,-50%);box-shadow:0 2px 8px rgba(0,0,0,.2);}
.placement-phone-dot{position:absolute;left:7%;bottom:9px;display:flex;align-items:center;gap:5px;color:#174a77;font-size:9px;font-weight:760;transform:rotate(-18deg);transform-origin:center;}
.placement-phone-dot:before{content:"";width:10px;height:19px;border:2px solid #0071e3;border-radius:3px;background:white;box-shadow:0 2px 7px rgba(0,0,0,.14);}
.placement-angle-line{position:absolute;left:8%;bottom:21px;width:18%;height:1px;background:rgba(0,113,227,.58);transform:rotate(-18deg);transform-origin:left center;}
.placement-offset-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;}
.placement-offset-field{display:flex;flex-direction:column;gap:5px;color:var(--muted);font-size:10px;font-weight:680;}
.placement-offset-field.wide{grid-column:1/-1;}
.placement-offset-field input{width:100%;min-height:36px;padding:7px 9px;border:1px solid rgba(0,0,0,.1);border-radius:9px;background:white;color:var(--ink);font:650 13px/1 inherit;}
.placement-angle-status{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:9px;padding:8px 9px;border-radius:10px;background:rgba(255,255,255,.78);font-size:10px;color:var(--muted);}
.placement-angle-status strong{color:var(--ink);font-size:11px;}
.placement-angle-status[data-state="good"] strong{color:var(--green);}
.placement-angle-status[data-state="bad"] strong{color:var(--red);}
.placement-curve-experiment{margin-top:9px;padding:9px;border:1px solid rgba(191,127,26,.2);border-radius:11px;background:rgba(255,248,232,.82);}
.placement-curve-experiment-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:7px;color:#6f4d12;font-size:10px;}
.placement-curve-experiment-head strong{font-size:11px;}
.placement-curve-experiment-details{margin-top:9px;padding-top:9px;border-top:1px solid rgba(111,77,18,.13);}
.placement-curve-experiment-details[hidden]{display:none;}
.placement-curve-label{margin:8px 0 5px;color:var(--muted);font-size:9px;font-weight:700;line-height:1.35;}
.placement-confirm-row{display:flex;align-items:center;gap:8px;margin-top:9px;}
.placement-confirm-row .btn{flex:0 0 auto;}
.placement-confirm-status{min-width:0;color:var(--muted);font-size:10px;line-height:1.35;}
.placement-safety{margin-top:9px;color:#8a5a00;font-size:9px;font-weight:650;line-height:1.4;}
.replay-controls{display:none;position:absolute;left:16px;right:16px;bottom:62px;z-index:6;padding:9px 10px;border:1px solid rgba(0,0,0,.06);border-radius:18px;background:rgba(255,255,255,.74);backdrop-filter:saturate(180%) blur(24px);box-shadow:0 18px 44px rgba(0,0,0,.14);color:var(--ink);}
.replay-controls.active{display:block;}
.replay-row{display:flex;align-items:center;gap:8px;}
.replay-row input{width:100%;accent-color:var(--blue);}
.replay-speed{display:flex;gap:5px;margin-top:7px;justify-content:center;}
.replay-speed button{border:0;border-radius:999px;padding:5px 9px;background:rgba(118,118,128,.1);color:var(--ink);font-size:11px;font-weight:650;}
.replay-speed button.active{background:var(--blue);color:white;}
details summary{cursor:pointer;font-size:11px;color:var(--muted);user-select:none;}
details .dbg{background:rgba(118,118,128,.08);border-radius:12px;padding:10px;margin-top:7px;font-size:11px;color:var(--muted);line-height:1.65;}
.divider{display:none;}
@keyframes spin{to{transform:rotate(360deg)}}
@media (max-width:720px){
  .layout{grid-template-columns:1fr;height:auto;min-height:calc(100vh - 52px);}
  .layout.results-mode{grid-template-columns:1fr;padding:12px;}
  .layout.replay-mode{grid-template-columns:1fr;padding:12px;background:linear-gradient(180deg,#fbfbfd 0%,#f2f2f7 100%);}
  .video-col{height:58vh;}
  .layout.results-mode .video-col{height:210px;}
  .layout.replay-mode .video-col{height:62vh;}
  .panel-col{border-left:0;border-top:1px solid var(--line);}
  .layout.results-mode .panel-col{display:flex;}
  .layout.results-mode .panel{display:flex;}
  .secondary-grid{grid-template-columns:1fr;}
  .review-grid,.setup-checks{grid-template-columns:1fr 1fr;}
  .reference-form,.reference-shot,.reference-summary,.reference-comparison{grid-template-columns:1fr 1fr;}
  .hero-value{font-size:52px;}
}
@media (min-width:721px) and (max-width:1199px){
  .layout.results-mode{grid-template-columns:300px minmax(0,1fr);}
  .layout.results-mode .panel{grid-template-columns:300px minmax(0,1fr);grid-template-rows:auto auto auto 1fr;}
  .layout.results-mode .result-section{grid-column:2;grid-row:1;}
  .layout.results-mode .history-section{grid-column:2;grid-row:2 / span 3;}
  .layout.results-mode .summary-section{grid-column:2;grid-row:5;}
  .layout.results-mode .connection-section{grid-column:1;grid-row:2;}
  .layout.results-mode .control-section{grid-column:1;grid-row:3;}
}
@media (min-width:1200px){
  .layout{grid-template-columns:minmax(0,1fr) 400px;}
  .panel{padding:24px 22px 28px;gap:14px;}
  .panel-section{padding:14px;border-radius:20px;}
  .layout.results-mode{grid-template-columns:340px minmax(0,1fr);gap:18px 24px;padding:24px;}
  .layout.replay-mode{grid-template-columns:minmax(0,1.45fr) minmax(420px,.55fr);gap:24px;padding:24px;}
  .layout.results-mode .video-col{height:260px;border-radius:28px;}
  .layout.results-mode .panel{grid-template-columns:340px minmax(0,1fr) minmax(330px,.72fr);gap:18px;padding:0;}
  .layout.results-mode .panel-col{border-radius:28px;}
  .hero-metric{min-height:170px;padding:22px;border-radius:26px;}
  .hero-value{font-size:82px;}
  .hero-unit{font-size:16px;}
  .secondary-grid{gap:10px;}
  .stat-card{min-height:104px;padding:15px;border-radius:20px;}
  .stat-value{font-size:34px;}
  .hist-table{border-radius:20px;}
}
@media (min-width:1500px){
  .layout{grid-template-columns:minmax(0,1fr) 430px;}
  .layout.results-mode{grid-template-columns:380px minmax(0,1fr);gap:28px;padding:28px;}
  .layout.replay-mode{grid-template-columns:minmax(0,1.55fr) minmax(460px,.45fr);gap:28px;padding:28px;}
  .layout.results-mode .video-col{height:300px;}
  .layout.results-mode .panel{grid-template-columns:380px minmax(580px,1.1fr) minmax(420px,.72fr);gap:22px;padding:0;}
  .hero-metric{min-height:200px;padding:26px;}
  .hero-value{font-size:104px;}
  .secondary-grid{gap:12px;}
  .stat-card{min-height:122px;padding:18px;}
  .stat-value{font-size:40px;}
  .hist-hdr,.hist-row{grid-template-columns:44px 58px 52px 58px 48px 66px 28px;}
  .hist-hdr{padding:10px 12px;font-size:11px;}
  .hist-row{padding:11px 12px;font-size:13px;}
  .section-title{font-size:13px;}
  .conn-row{font-size:14px;}
}

/* GolfLaunch Studio UI */
:root{
  --studio-bg:#f5f5f7;
  --studio-surface:#fff;
  --studio-surface-2:#fbfbfd;
  --studio-line:rgba(0,0,0,.075);
  --studio-fill:rgba(118,118,128,.09);
  --studio-shadow:0 10px 34px rgba(0,0,0,.055);
}
html,body{height:100%;overflow:hidden;}
body{background:var(--studio-bg);font-size:14px;}
button,input,select{letter-spacing:0;}
.ui-icon{width:18px;height:18px;display:block;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto;}

.hdr{
  position:relative;z-index:15;height:56px;min-height:56px;padding:0 18px;
  display:grid;grid-template-columns:minmax(220px,1fr) auto minmax(220px,1fr);
  background:rgba(255,255,255,.82);border-color:var(--studio-line);
  backdrop-filter:saturate(180%) blur(28px);
}
.logo{gap:10px;font-size:14px;color:#24512d;}
.brand-mark{width:20px!important;height:20px!important;}
.brand-copy{display:flex;align-items:baseline;gap:9px;min-width:0;color:var(--ink);}
.brand-copy strong{font-size:15px;font-weight:730;}
.brand-copy span{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:12px;font-weight:520;}
.version-badge{padding:3px 6px;background:rgba(0,113,227,.09);color:var(--blue);font-size:10px;}
.top-status{display:flex;align-items:center;justify-content:center;gap:7px;min-width:0;}
.status-pill{
  min-height:28px;display:inline-flex;align-items:center;padding:0 11px;border-radius:999px;
  background:var(--studio-fill);color:var(--muted);font-size:12px;font-weight:650;
  transition:background .2s,color .2s;
}
.distance-readiness-banner{
  height:20px;min-height:20px;background:#d70015;border-bottom:1px solid rgba(0,0,0,.12);
  box-shadow:0 3px 10px rgba(0,0,0,.13);transition:background .16s ease;position:relative;z-index:14;
}
.distance-readiness-visible{--distance-ready-height:20px;}
.distance-readiness-banner[hidden]{display:none;}
.distance-readiness-banner[data-state="locked"]{background:#30d158;}
.top-actions{position:relative;gap:6px;flex-wrap:nowrap;}
.toolbar-text,.toolbar-icon{
  min-height:34px;border:0;background:var(--studio-fill);color:var(--blue);
  font-family:inherit;font-weight:650;cursor:pointer;transition:background .16s,transform .16s,opacity .16s;
}
.toolbar-text{padding:0 12px;border-radius:999px;font-size:12px;}
.toolbar-icon{width:34px;border-radius:50%;display:grid;place-items:center;}
.toolbar-icon .ui-icon{width:17px;height:17px;}
.ai-coach-quick{
  min-height:40px;padding:5px 12px 5px 10px;display:flex;align-items:center;gap:9px;
  border:0;border-radius:13px;background:linear-gradient(135deg,#0878e6,#0056c7);color:#fff;
  box-shadow:0 7px 18px rgba(0,92,205,.24);font:inherit;cursor:pointer;
  transition:transform .16s,box-shadow .16s,background .2s;
}
.ai-coach-quick:hover{transform:translateY(-1px);box-shadow:0 9px 22px rgba(0,92,205,.3);}
.ai-coach-quick:focus-visible{outline:3px solid rgba(0,113,227,.3);outline-offset:2px;}
.ai-coach-quick-icon{width:24px;height:24px;display:grid;place-items:center;flex:0 0 auto;border-radius:8px;background:rgba(255,255,255,.17);}
.ai-coach-quick-icon .ui-icon{width:15px;height:15px;stroke-width:2;}
.ai-coach-quick-copy{display:flex;flex-direction:column;align-items:flex-start;line-height:1.04;white-space:nowrap;}
.ai-coach-quick-copy strong{font-size:12px;font-weight:760;}
.ai-coach-quick-state{margin-top:3px;color:rgba(255,255,255,.82);font-size:9px;font-weight:650;}
.ai-coach-quick[data-state="requesting"],.ai-coach-quick[data-state="loading"],.ai-coach-quick[data-state="searching"]{background:linear-gradient(135deg,#c77d00,#a85e00);box-shadow:0 7px 18px rgba(168,94,0,.22);}
.ai-coach-quick[data-state="ready"]{background:linear-gradient(135deg,#2a9847,#176e31);box-shadow:0 7px 18px rgba(23,110,49,.22);}
.ai-coach-quick[data-state="warning"],.ai-coach-quick[data-state="error"]{background:linear-gradient(135deg,#e03243,#b60920);box-shadow:0 7px 18px rgba(182,9,32,.2);}
.account-button{text-decoration:none;position:relative;}
.account-button.signed-in .ui-icon{display:none;}
.account-initial{display:none;width:24px;height:24px;border-radius:50%;place-items:center;background:#e7f1e8;color:#2f5d37;font-size:11px;font-weight:760;}
.account-button.signed-in .account-initial{display:grid;}
.account-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;}
.toolbar-text:hover,.toolbar-icon:not(:disabled):hover{background:rgba(0,113,227,.12);transform:translateY(-1px);}
.toolbar-icon:disabled{color:#a1a1a6;cursor:not-allowed;opacity:.62;}
.toolbar-icon.view-active{background:rgba(0,113,227,.12);color:var(--blue);}
.command-wrap{position:relative;}
.command-menu{
  position:absolute;right:0;top:42px;width:220px;padding:6px;
  border:1px solid var(--studio-line);border-radius:14px;background:rgba(255,255,255,.94);
  box-shadow:0 18px 60px rgba(0,0,0,.16);backdrop-filter:saturate(180%) blur(28px);
}
.command-menu[hidden]{display:none;}
.command-menu button{
  width:100%;height:38px;padding:0 10px;display:flex;align-items:center;justify-content:space-between;
  border:0;border-radius:9px;background:transparent;color:var(--ink);font:inherit;font-size:13px;font-weight:560;cursor:pointer;
}
.command-menu button:hover{background:var(--studio-fill);}
.command-menu kbd{color:var(--muted);font:inherit;font-size:11px;}
.command-divider{height:1px;margin:5px;background:var(--studio-line);}

.layout{
  height:calc(100vh - 56px - var(--distance-ready-height,0px));grid-template-columns:minmax(0,1fr) 360px;
  background:var(--studio-line);gap:1px;overflow:hidden;
}
.video-col{background:#070708;box-shadow:none;}
.layout:not(.mobile-connected):not(.demo-active) .video-col{background:var(--studio-bg);}
.video-col:after{box-shadow:inset 0 0 0 1px rgba(255,255,255,.04);}
.panel-col{
  background:var(--studio-bg);border:0;backdrop-filter:none;overflow-x:hidden;
}
.panel{padding:16px;gap:12px;}
.panel-section{
  border:1px solid var(--studio-line);border-radius:14px;padding:14px;background:var(--studio-surface);
  box-shadow:none;backdrop-filter:none;
}
.section-title{margin-bottom:12px;color:var(--muted);font-size:11px;font-weight:650;}
.layout:not(.results-mode):not(.replay-mode) .result-section,
.layout:not(.results-mode):not(.replay-mode) .summary-section,
.layout:not(.results-mode):not(.replay-mode) .history-section{display:none;}
.layout:not(.mobile-connected) .connection-section .url-row{display:none;}

#wait-overlay{
  z-index:7;background:var(--studio-bg)!important;color:var(--ink)!important;padding:28px;
}
.connect-card{
  width:min(540px,calc(100% - 32px));padding:32px 36px;text-align:center;
  border:1px solid var(--studio-line);border-radius:18px;background:rgba(255,255,255,.88);
  box-shadow:var(--studio-shadow);
}
.connect-device{
  position:relative;width:58px;height:58px;margin:0 auto 18px;display:grid;place-items:center;
  border-radius:16px;background:var(--studio-fill);color:var(--ink);
}
.connect-device .ui-icon{width:29px;height:29px;stroke-width:1.5;}
.connect-device span{position:absolute;right:-3px;bottom:-3px;width:16px;height:16px;border:4px solid white;border-radius:50%;background:var(--green);}
.connect-eyebrow{margin-bottom:6px;color:var(--muted);font-size:11px;font-weight:650;}
.connect-card h1{font-size:28px;line-height:1.08;font-weight:730;letter-spacing:0;margin-bottom:9px;}
.connect-card p{max-width:350px;margin:0 auto;color:var(--muted);font-size:13px;line-height:1.45;}
.connect-actions{margin-top:20px;display:grid;grid-template-columns:116px minmax(0,1fr);align-items:center;gap:20px;text-align:left;}
.connect-qr{display:flex;flex-direction:column;align-items:center;gap:6px;color:var(--muted);font-size:9px;font-weight:620;}
.connect-qr-frame{
  position:relative;width:116px;height:116px;display:grid;place-items:center;overflow:hidden;
  border:1px solid var(--studio-line);border-radius:10px;background:white;
}
.connect-qr img{width:100%;height:100%;display:block;padding:5px;opacity:0;transition:opacity .16s ease;}
.connect-qr[data-state="ready"] img{opacity:1;}
.connect-qr-status{
  position:absolute;inset:5px;display:grid;place-items:center;padding:10px;text-align:center;
  border-radius:7px;background:var(--studio-fill);color:var(--muted);font-size:9px;line-height:1.35;
}
.connect-qr[data-state="ready"] .connect-qr-status{display:none;}
.connect-qr[data-state="error"] .connect-qr-status{color:var(--red);background:#fff2f3;}
.connect-qr-retry{
  position:absolute;right:8px;bottom:8px;width:28px;height:28px;display:grid;place-items:center;
  border:1px solid var(--studio-line);border-radius:8px;background:white;color:var(--blue);cursor:pointer;
  box-shadow:0 3px 12px rgba(0,0,0,.12);
}
.connect-qr-retry[hidden]{display:none;}
.connect-qr-retry .ui-icon{width:14px;height:14px;}
.connect-link-block{min-width:0;}
.pairing-code-label{margin-bottom:4px;color:var(--muted);font-size:10px;font-weight:650;}
.pairing-code{
  margin-bottom:10px;color:var(--ink);font-size:24px;font-weight:750;line-height:1;
  font-variant-numeric:tabular-nums;letter-spacing:2px;
}
.pairing-code-row{display:flex;align-items:center;justify-content:space-between;gap:10px;}
.pairing-refresh{
  width:30px;height:30px;border:0;border-radius:8px;background:var(--studio-fill);color:var(--muted);
  display:inline-flex;align-items:center;justify-content:center;cursor:pointer;
}
.pairing-refresh:hover{background:#e8e8ed;color:var(--ink);}
.pairing-refresh .ui-icon{width:15px;height:15px;}
.pairing-refresh[hidden]{display:none!important;}
.pairing-code-compact{font-size:12px;font-weight:700;font-variant-numeric:tabular-nums;letter-spacing:1px;}
.connect-url{
  display:block;max-width:100%;margin:0 0 10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  color:var(--blue);font-size:13px;font-weight:650;text-decoration:none;
}
.connect-copy{
  min-height:42px;padding:0 16px;display:inline-flex;align-items:center;gap:8px;border:0;border-radius:10px;
  background:var(--blue);color:white;font:inherit;font-size:13px;font-weight:650;cursor:pointer;
}
.connect-copy .ui-icon{width:16px;height:16px;}
.connect-steps{margin-top:20px;padding-top:16px;border-top:1px solid var(--studio-line);display:flex;justify-content:center;gap:18px;color:var(--muted);font-size:11px;}
.standalone-camera-actions{display:none;margin-top:20px;flex-direction:column;align-items:center;gap:10px;}
.measurement-mode-switch{display:grid;grid-template-columns:1fr 1fr;gap:4px;width:min(100%,390px);margin:0 auto 18px;padding:4px;border-radius:14px;background:rgba(118,118,128,.12);}
.measurement-mode-switch a{min-height:44px;padding:7px 10px;border-radius:11px;display:flex;align-items:center;justify-content:center;color:#5f655f;text-decoration:none;font-size:12px;font-weight:730;text-align:center;}
.measurement-mode-switch a[aria-current="page"]{background:#fff;color:#245b31;box-shadow:0 1px 7px rgba(35,52,39,.1);}
.standalone-camera-button{
  min-height:48px;padding:0 24px;border:0;border-radius:12px;background:var(--blue);color:white;
  font:inherit;font-size:15px;font-weight:700;cursor:pointer;box-shadow:0 10px 28px rgba(0,113,227,.22);
}
.standalone-camera-button:disabled{cursor:wait;opacity:.58;}
.standalone-camera-note{max-width:360px;color:var(--muted);font-size:11px;line-height:1.45;}
.standalone-torch-status{min-height:18px;color:var(--muted);font-size:11px;font-weight:620;}
.standalone-torch-status[data-state="ready"]{color:var(--green);}
.standalone-torch-status[data-state="unsupported"],.standalone-torch-status[data-state="error"]{color:var(--amber);}
.standalone-recovery-guard{
  position:fixed;inset:0;z-index:1000;padding:max(24px,env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left));
  display:none;align-items:center;justify-content:center;background:#f2f4f1;color:#172019;
}
body.standalone-mobile.standalone-recovery-required .standalone-recovery-guard{display:flex;}
.standalone-recovery-card{
  width:min(430px,100%);padding:28px 22px;border:1px solid rgba(35,52,39,.10);border-radius:24px;background:#fff;
  box-shadow:0 20px 60px rgba(35,52,39,.14);text-align:center;
}
.standalone-recovery-card h2{margin:0 0 10px;font-size:25px;letter-spacing:-.03em;}
.standalone-recovery-card p{margin:0 0 20px;color:#5f655f;font-size:15px;line-height:1.5;}
body.standalone-mobile #ai-coach-quick,body.standalone-mobile #ai-coach-setting-group{display:none;}
body.standalone-mobile .paired-only{display:none!important;}
body.standalone-mobile .layout.results-mode:not(.mobile-connected) .connect-eyebrow::after{content:"";}
body.standalone-mobile .standalone-camera-actions{display:flex;}
body.standalone-mobile .connect-card{max-width:430px;}
body.standalone-mobile .layout{
  display:flex;flex-direction:column;height:auto;min-height:calc(100svh - 56px - var(--distance-ready-height,0px));
  padding:10px;gap:10px;overflow:visible;background:var(--studio-bg);
}
body.standalone-mobile{overflow:auto;}
body.standalone-mobile .video-col{order:1;width:100%;height:min(58svh,520px);min-height:280px;border-radius:16px;}
body.standalone-mobile .layout.results-mode .video-col{width:100%;height:210px;order:1;}
body.standalone-mobile .layout:not(.results-mode):not(.replay-mode) .video-col{height:calc(100svh - 76px);}
body.standalone-mobile .panel-col{order:2;overflow:visible;}
body.standalone-mobile .panel{display:flex;padding:0;}
body.standalone-mobile .left-rail-stack{display:contents;}
body.standalone-mobile .result-section{order:1;}
body.standalone-mobile .control-section{order:2;}
body.standalone-mobile .summary-section{order:3;}
body.standalone-mobile .history-section{order:4;}
body.standalone-mobile .connection-section{order:4;}
body.standalone-mobile .connect-device{margin-bottom:12px;}
body.standalone-mobile .connect-card h1{font-size:24px;}
/* Mobile-first standalone shell: one clear task per screen. */
body.standalone-mobile{
  --mobile-nav-height:76px;
  --mobile-status-height:52px;
  --mobile-header-height:calc(58px + env(safe-area-inset-top));
  --mobile-app-height:100dvh;
  padding-bottom:calc(var(--mobile-nav-height) + env(safe-area-inset-bottom));
  background:#f2f4f1;
}
body.standalone-mobile .hdr{
  position:sticky;top:0;z-index:80;height:var(--mobile-header-height);min-height:var(--mobile-header-height);padding:env(safe-area-inset-top) max(14px,env(safe-area-inset-right)) 0 max(14px,env(safe-area-inset-left));
  grid-template-columns:minmax(0,1fr) auto;border-bottom-color:rgba(35,52,39,.08);
}
body.standalone-mobile .brand-copy strong{font-size:16px;}
body.standalone-mobile .top-actions{gap:8px;}
body.standalone-mobile .top-status,
body.standalone-mobile .brand-copy span,
body.standalone-mobile .version-badge,
body.standalone-mobile #unit-toggle-btn{display:none;}
body.standalone-mobile .mode-menu-trigger,
body.standalone-mobile #top-replay-btn,
body.standalone-mobile #account-btn,
body.standalone-mobile .command-wrap{display:none;}
body.standalone-mobile #top-camera-toggle,
body.standalone-mobile .top-actions>.toolbar-icon:not(#top-replay-btn){width:44px;height:44px;background:#fff;box-shadow:0 1px 8px rgba(35,52,39,.08);}
body.standalone-mobile .distance-readiness-banner{
  position:sticky;top:var(--mobile-header-height);z-index:30;height:var(--mobile-status-height);min-height:var(--mobile-status-height);
  padding:0 max(16px,env(safe-area-inset-left));display:flex;align-items:center;justify-content:center;gap:10px;
  border:0;background:#fff3d6;color:#6f4a00;box-shadow:0 4px 14px rgba(35,52,39,.09);
  font-size:15px;font-weight:750;letter-spacing:-.01em;
}
body.standalone-mobile .distance-readiness-banner[hidden]{display:none;}
body.standalone-mobile .distance-readiness-banner::before{content:"";width:12px;height:12px;border-radius:50%;background:#f59e0b;box-shadow:0 0 0 5px rgba(245,158,11,.14);}
body.standalone-mobile .distance-readiness-banner[data-state="locked"]{background:#eaf7ed;color:#1d652e;}
body.standalone-mobile .distance-readiness-banner[data-state="locked"]::before{background:#24a148;box-shadow:0 0 0 5px rgba(36,161,72,.14);}
body.standalone-mobile.distance-readiness-visible{--distance-ready-height:var(--mobile-status-height);}
body.standalone-mobile .layout{padding:12px 12px 18px;gap:12px;}
body.standalone-mobile .layout.results-mode{display:flex;flex-direction:column;height:auto;overflow:visible;grid-template-columns:none;}
body.standalone-mobile .layout.results-mode .panel-col{display:block;order:2;width:100%;overflow:visible;}
body.standalone-mobile .layout.results-mode .panel{display:flex;flex-direction:column;width:100%;padding:0;}
body.standalone-mobile .layout.results-mode .panel-section{
  width:100%;grid-column:auto;grid-row:auto;align-self:stretch;
}
body.standalone-mobile .layout:not(.mobile-connected){min-height:calc(100svh - var(--mobile-header-height));justify-content:safe center;}
body.standalone-mobile .layout:not(.mobile-connected) .video-col{height:auto;min-height:0;background:transparent;border:0;box-shadow:none;overflow:visible;}
body.standalone-mobile .layout:not(.mobile-connected) .video-col>:not(#wait-overlay){display:none!important;}
body.standalone-mobile .layout:not(.mobile-connected) .panel-col{display:none;}
body.standalone-mobile .layout:not(.mobile-connected) #wait-overlay{position:static!important;inset:auto!important;width:100%;height:auto;padding:0!important;min-height:0;}
body.standalone-mobile .layout:not(.mobile-connected) .connect-card{
  width:100%;height:auto;max-width:440px;padding:26px 20px 22px;border:1px solid rgba(35,52,39,.08);border-radius:24px;
  background:#fff;box-shadow:0 18px 48px rgba(35,52,39,.10);text-align:left;
}
body.standalone-mobile .layout:not(.mobile-connected) .connect-card h1,
body.standalone-mobile .layout:not(.mobile-connected) .connect-card p{display:block;}
body.standalone-mobile .layout:not(.mobile-connected) .connect-eyebrow{margin:0 0 8px;color:#347044;font-size:12px;letter-spacing:.02em;text-transform:uppercase;}
body.standalone-mobile .layout:not(.mobile-connected) .connect-card h1{margin-bottom:10px;font-size:32px;line-height:1.05;letter-spacing:-.035em;}
body.standalone-mobile .layout:not(.mobile-connected) .connect-card p{max-width:none;margin:0;color:#5f655f;font-size:15px;line-height:1.5;}
body.standalone-mobile .standalone-camera-actions{margin-top:22px;align-items:stretch;gap:12px;}
body.standalone-mobile .standalone-camera-button{width:100%;min-height:58px;border-radius:16px;font-size:17px;box-shadow:0 10px 24px rgba(0,113,227,.22);}
body.standalone-mobile .standalone-camera-note{max-width:none;padding:13px 14px;border-radius:13px;background:#f3f6f2;color:#4d554e;font-size:13px;line-height:1.45;}
body.standalone-mobile .standalone-camera-note::before{content:"Placera mobilen • ";color:#245b31;font-weight:750;}
.standalone-fullscreen-note{display:block;margin-top:7px;color:#245b31;font-weight:700;}
.standalone-fullscreen-note[hidden]{display:none;}
body.standal-mobile .standalone-torch-status,body.standalone-mobile .standalone-torch-status{font-size:12px;line-height:1.4;text-align:center;}
body.standalone-mobile .layout.mobile-connected.results-mode .video-col{height:0;min-height:0;border:0;overflow:hidden;}
body.standalone-mobile .layout.mobile-connected.results-mode .panel-col{width:100%;}
body.standalone-mobile .layout.mobile-connected:not(.results-mode):not(.replay-mode){
  height:calc(var(--mobile-app-height) - var(--mobile-header-height) - var(--distance-ready-height,0px) - var(--mobile-nav-height) - env(safe-area-inset-bottom));
  min-height:0;padding:0;overflow:hidden;background:#050706;
}
body.standalone-mobile .layout.mobile-connected:not(.results-mode):not(.replay-mode) .video-col{
  width:100%;height:100%;min-height:0;border:0;border-radius:0;
}
body.standalone-mobile .layout.mobile-connected:not(.results-mode):not(.replay-mode) .panel-col{display:none;}
body.standalone-mobile .layout.replay-mode{
  height:calc(var(--mobile-app-height) - var(--mobile-header-height) - var(--distance-ready-height,0px) - var(--mobile-nav-height) - env(safe-area-inset-bottom));
  min-height:0;padding:0;overflow:hidden;
}
body.standalone-mobile .layout.replay-mode .video-col{width:100%;height:100%;min-height:0;border-radius:0;}
body.standalone-mobile .layout.replay-mode .panel-col{display:none;}
body.standalone-mobile .replay-controls{bottom:10px;}
body.standalone-mobile .replay-play-button,body.standalone-mobile .replay-speed button{min-height:44px;}
body.standalone-mobile .settings-backdrop{z-index:100;}
body.standalone-mobile .settings-sheet{
  width:100%;height:calc(100dvh - env(safe-area-inset-top));margin:env(safe-area-inset-top) 0 0;
  border-radius:22px 22px 0 0;padding-bottom:env(safe-area-inset-bottom);
}
body.standalone-mobile .panel-section{border-radius:20px;}
body.standalone-mobile .result-section{padding:18px 16px;display:flex;flex-direction:column;}
body.standalone-mobile .result-section>.section-title{font-size:13px;}
body.standalone-mobile .result-section>#result-area{order:1;}
body.standalone-mobile .result-section>.virtual-range{order:2;margin-top:12px;}
body.standalone-mobile .virtual-range{border-radius:18px;}
body.standalone-mobile .hero-metric{min-height:126px;padding:4px 2px 18px;}
body.standalone-mobile .hero-value{font-size:68px;line-height:.9;}
body.standalone-mobile .hero-label{font-size:14px;}
body.standalone-mobile .secondary-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;}
body.standalone-mobile .stat-card{min-height:92px;padding:11px 9px;border-radius:14px;}
body.standalone-mobile .stat-label{font-size:10px;line-height:1.2;}
body.standalone-mobile .stat-value{font-size:22px;}
body.standalone-mobile .connection-section{display:none;}
body.standalone-mobile .control-section{margin:0;border:1px solid rgba(35,52,39,.08);}
body.standalone-mobile .control-section summary{min-height:52px;}
body.standalone-mobile .summary-section,body.standalone-mobile .history-section{margin:0;border:1px solid rgba(35,52,39,.08);}
.mobile-standalone-nav{display:none;}
body.standalone-mobile .layout.mobile-connected~.mobile-standalone-nav{
  position:fixed;left:0;right:0;bottom:0;z-index:70;height:calc(var(--mobile-nav-height) + env(safe-area-inset-bottom));
  padding:8px max(12px,env(safe-area-inset-right)) env(safe-area-inset-bottom) max(12px,env(safe-area-inset-left));
  display:grid;grid-template-columns:repeat(3,1fr);gap:8px;border-top:1px solid rgba(35,52,39,.10);
  background:rgba(255,255,255,.94);box-shadow:0 -8px 26px rgba(35,52,39,.10);backdrop-filter:saturate(180%) blur(22px);
}
body.standalone-mobile.camera-view-active .hdr,
body.standalone-mobile.camera-view-active .distance-readiness-banner,
body.standalone-mobile.camera-view-active .layout.mobile-connected~.mobile-standalone-nav,
body.standalone-mobile.camera-view-active .floating-bar,
body.standalone-mobile.camera-view-active .hud-badge,
body.standalone-mobile.camera-view-active #motion-ind,
body.standalone-mobile.camera-view-active .ball-lock-tag,
body.standalone-mobile.camera-view-active .rec-pill{
  -webkit-backdrop-filter:none;
  backdrop-filter:none;
}
body.standalone-mobile.camera-view-active .layout,
body.standalone-mobile.camera-view-active .video-col{transition:none;}
body.standalone-mobile.camera-view-active .video-col::after{display:none;}
.mobile-standalone-nav button{
  min-width:0;min-height:56px;padding:5px 4px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;
  border:0;border-radius:14px;background:transparent;color:#687069;font:inherit;font-size:11px;font-weight:680;cursor:pointer;
}
.mobile-standalone-nav button svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
.mobile-standalone-nav button.active{background:#e9f1ea;color:#245b31;}
.mobile-standalone-nav button:disabled{opacity:.42;}
.mobile-standalone-nav button:focus-visible,.standalone-camera-button:focus-visible{outline:3px solid rgba(0,113,227,.32);outline-offset:2px;}
@media (max-width:370px){
  body.standalone-mobile .layout{padding-inline:8px;}
  body.standalone-mobile .layout:not(.mobile-connected) .connect-card{padding:22px 17px;}
  body.standalone-mobile .layout:not(.mobile-connected) .connect-card h1{font-size:29px;}
  body.standalone-mobile .secondary-grid{grid-template-columns:1fr 1fr;}
}
@media (orientation:landscape){
  body.standalone-mobile .layout:not(.results-mode):not(.replay-mode) .video-col{height:calc(100svh - 76px);min-height:260px;}
  body.standalone-mobile .layout:not(.mobile-connected){min-height:calc(100svh - var(--mobile-header-height));padding:8px 18px;justify-content:flex-start;}
  body.standalone-mobile .layout:not(.mobile-connected) .connect-card{max-width:620px;padding:18px 22px;}
  body.standalone-mobile .layout:not(.mobile-connected) .connect-card h1{font-size:27px;}
  body.standalone-mobile .standalone-camera-actions{margin-top:14px;display:grid;grid-template-columns:minmax(210px,.8fr) minmax(0,1.2fr);align-items:center;}
  body.standalone-mobile .standalone-torch-status{grid-column:1/-1;}
  /* Keep the complete 16:9 camera image visible in Safari's short landscape
     viewport. GolfLaunch chrome disappears; the compact camera bar is the
     only navigation left. Video/canvas remain object-fit:contain so detection
     keeps the same uncropped coordinate system. */
  body.standalone-mobile.camera-view-active{
    --mobile-nav-height:0px;
    --mobile-status-height:0px;
    --mobile-header-height:0px;
    padding-bottom:0;overflow:hidden;background:#050706;
  }
  body.standalone-mobile.camera-view-active .hdr,
  body.standalone-mobile.camera-view-active .distance-readiness-banner,
  body.standalone-mobile.camera-view-active .layout.mobile-connected~.mobile-standalone-nav{display:none!important;}
  body.standalone-mobile.camera-view-active .layout.mobile-connected:not(.results-mode):not(.replay-mode){
    position:fixed;inset:0;z-index:0;width:100%;height:var(--mobile-app-height);min-height:0;padding:0;overflow:hidden;
  }
  body.standalone-mobile.camera-view-active .layout.mobile-connected:not(.results-mode):not(.replay-mode) .video-col{
    width:100%;height:100%;min-height:0;
  }
  body.standalone-mobile.camera-view-active .floating-bar{
    left:50%;right:auto;width:min(560px,calc(100% - max(24px,env(safe-area-inset-left)) - max(24px,env(safe-area-inset-right))));
    bottom:max(10px,env(safe-area-inset-bottom));transform:translateX(-50%);
  }
}

.floating-bar{
  left:18px;right:18px;bottom:18px;min-height:48px;padding:7px 8px 7px 14px;
  border-color:rgba(255,255,255,.12);border-radius:14px;background:rgba(28,28,30,.72);
  box-shadow:0 12px 34px rgba(0,0,0,.24);backdrop-filter:saturate(180%) blur(24px);
}
.layout:not(.mobile-connected) .floating-bar{display:none;}
.floating-status{font-size:12px;font-weight:600;}
.glass-btn{min-height:34px;border-radius:9px;}
#float-rec-btn{display:none;}
.layout.capture-mode #float-rec-btn{display:inline-flex;align-items:center;}
.layout.capture-mode #overlay-toggle-btn{display:none;}
.layout.results-mode #overlay-toggle-btn,.layout.results-mode #float-rec-btn{display:none;}
.layout.results-mode .floating-bar{left:12px;right:12px;bottom:12px;min-height:42px;padding:4px;background:rgba(28,28,30,.65);}
.layout.results-mode .floating-actions{justify-content:center;}

.connection-section .conn-card{gap:10px;}
.conn-row{font-size:12px;}
.conn-row span:last-child{font-weight:600;}
.diag-grid{gap:6px;}
.diag-card{min-height:52px;padding:9px;border-radius:10px;background:var(--studio-surface-2);border-color:var(--studio-line);}
.diag-label{font-size:10px;}
.diag-value{font-size:12px;}
.field-row{gap:7px;}
.select,.text-input{min-height:38px;border-radius:9px;background:var(--studio-surface-2);border-color:var(--studio-line);}
.btn{min-height:42px;border-radius:10px;}
.btn-p{box-shadow:0 5px 14px rgba(0,113,227,.16);}
.btn-s{background:var(--studio-fill);}
.core-tools .btn{min-height:38px;font-size:13px;}
.live-status{border:0;border-radius:10px;background:var(--studio-fill);}
.live-line{font-size:11px;}
.setup-checks{display:flex;flex-direction:column;gap:0;border:1px solid var(--studio-line);border-radius:10px;overflow:hidden;}
.setup-check{
  min-height:38px;padding:0 10px;display:flex;align-items:center;justify-content:space-between;
  border:0;border-bottom:1px solid var(--studio-line);border-radius:0;background:white;
}
.setup-check:last-child{border-bottom:0;}
.setup-check span,.setup-check strong{margin:0;font-size:11px;}
.secondary-tools{border-top:1px solid var(--studio-line);padding-top:10px;}
.secondary-tools summary{font-size:12px;font-weight:620;color:var(--blue);list-style:none;}
.secondary-tools summary::-webkit-details-marker{display:none;}
.secondary-tools-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:10px;}
.secondary-tools-grid .btn{min-height:36px;font-size:12px;}

body.camera-capture-active .hdr{grid-template-columns:1fr auto 1fr;}
body.camera-capture-active .brand-copy span,body.camera-capture-active .version-badge{display:none;}
body.camera-capture-active .top-actions{visibility:hidden;}
.layout.capture-mode{display:block;padding:0;background:#000;}
.layout.capture-mode .panel-col{display:none;}
.layout.capture-mode .video-col{height:100%;width:100%;}
.layout.capture-mode .floating-bar{
  display:flex;left:50%;right:auto;bottom:22px;min-width:280px;max-width:calc(100% - 32px);
  transform:translateX(-50%);border-radius:14px;
}
.layout.capture-mode .floating-actions{margin-left:auto;}
.layout.capture-mode .video-hud{top:18px;left:18px;}

.layout.replay-mode{
  display:block;height:calc(100vh - 56px - var(--distance-ready-height,0px));padding:16px;background:var(--studio-bg);overflow:hidden;
}
.layout.replay-mode .video-col{
  width:100%;height:100%;max-width:1680px;margin:0 auto;border-radius:18px;
  box-shadow:0 18px 50px rgba(0,0,0,.12);
}
.layout.replay-mode .panel-col,.layout.replay-mode .floating-bar{display:none;}
.replay-layer{background:var(--studio-surface-2);}
.replay-badge{
  top:18px;left:18px;display:flex;align-items:center;gap:7px;padding:7px 10px;
  border-radius:9px;background:rgba(255,255,255,.82);box-shadow:0 8px 24px rgba(0,0,0,.09);
}
.replay-live-dot{width:7px;height:7px;border-radius:50%;background:var(--blue);}
.replay-summary{
  position:absolute;top:18px;right:18px;display:flex;align-items:center;gap:18px;padding:10px 13px;
  border:1px solid var(--studio-line);border-radius:12px;background:rgba(255,255,255,.82);
  box-shadow:0 8px 24px rgba(0,0,0,.09);backdrop-filter:saturate(180%) blur(22px);
}
.replay-summary:empty{display:none;}
.replay-summary-item{display:flex;flex-direction:column;gap:2px;}
.replay-summary-item span{color:var(--muted);font-size:9px;font-weight:650;}
.replay-summary-item strong{font-size:16px;font-weight:720;color:var(--ink);}
.replay-controls{
  left:50%;right:auto;bottom:18px;width:min(760px,calc(100% - 36px));padding:11px 12px;
  transform:translateX(-50%);border-radius:14px;background:rgba(255,255,255,.84);
  box-shadow:0 12px 38px rgba(0,0,0,.13);
}
.replay-play-button{
  min-width:62px;height:34px;border:0;border-radius:9px;background:var(--studio-fill);color:var(--blue);
  font:inherit;font-size:12px;font-weight:650;cursor:pointer;
}
.replay-speed{margin-top:8px;}
.replay-speed button{min-height:28px;border-radius:8px;}

.layout.results-mode{
  height:calc(100vh - 56px - var(--distance-ready-height,0px));grid-template-columns:300px minmax(0,1fr);padding:16px;gap:14px;background:var(--studio-bg);overflow-y:auto;
}
.layout.results-mode .video-col{height:210px;border-radius:14px;box-shadow:none;border:1px solid var(--studio-line);}
.layout.results-mode:not(.mobile-connected) #wait-overlay{padding:12px;}
.layout.results-mode:not(.mobile-connected) .connect-card{
  width:100%;height:100%;padding:14px;text-align:left;border-radius:11px;box-shadow:none;
}
.layout.results-mode:not(.mobile-connected) .connect-device,
.layout.results-mode:not(.mobile-connected) .connect-card h1,
.layout.results-mode:not(.mobile-connected) .connect-card p,
.layout.results-mode:not(.mobile-connected) .connect-steps{display:none;}
.layout.results-mode:not(.mobile-connected) .connect-eyebrow{
  margin:0 0 10px;color:var(--ink);font-size:12px;font-weight:700;
}
.layout.results-mode:not(.mobile-connected) .connect-eyebrow::after{
  content:" · skanna QR-koden";color:var(--muted);font-weight:550;
}
.layout.results-mode:not(.mobile-connected) .connect-actions{
  margin:0;grid-template-columns:86px minmax(0,1fr);gap:12px;align-items:center;
}
.layout.results-mode:not(.mobile-connected) .connect-qr-frame{width:86px;height:86px;}
.layout.results-mode:not(.mobile-connected) .connect-qr>span{display:none;}
.layout.results-mode:not(.mobile-connected) .pairing-code{margin-bottom:7px;font-size:18px;}
.layout.results-mode:not(.mobile-connected) .pairing-code-label{font-size:9px;}
.layout.results-mode:not(.mobile-connected) .connect-url{margin-bottom:7px;font-size:10px;}
.layout.results-mode:not(.mobile-connected) .connect-copy{min-height:30px;padding:0 10px;font-size:11px;}
.layout.results-mode .panel{
  grid-template-columns:300px minmax(0,1.2fr) minmax(300px,.72fr);grid-template-rows:auto auto auto;gap:14px;
}
.left-rail-stack{display:contents;}
.layout.results-mode .left-rail-stack{
  display:flex;flex-direction:column;gap:14px;grid-column:1;grid-row:1 / span 3;
  align-self:start;padding-top:224px;
}
.layout.results-mode .left-rail-stack>.divider{display:none;}
.layout.results-mode .left-rail-stack>.connection-section,
.layout.results-mode .left-rail-stack>.control-section{grid-column:auto;grid-row:auto;}
.layout.results-mode .panel-section{border-radius:14px;}
.layout.results-mode .result-section{grid-row:1;}
.layout.results-mode .connection-section{grid-row:2;}
.layout.results-mode .connection-section .url-row{display:none;}
.layout.results-mode .control-section{grid-row:3;align-self:start;}
.layout.results-mode .summary-section{grid-row:2;align-self:start;}
.layout.results-mode .history-section{align-self:start;}
.result-section{padding:18px;}
.result-section #replay-btn{display:none;}
.hero-metric{
  min-height:145px;padding:2px 4px 18px;border:0;border-bottom:1px solid var(--studio-line);
  border-radius:0;background:transparent;
}
.hero-value{font-size:72px;font-weight:730;letter-spacing:0;}
.hero-label{font-size:12px;}
.secondary-grid{gap:8px;}
.stat-card{min-height:86px;padding:12px;border-radius:12px;background:var(--studio-surface-2);}
.stat-value{font-size:29px;}
.cal-chip{border-radius:7px;}
.review-grid{grid-template-columns:repeat(3,1fr);}
.review-card{min-height:56px;border:0;border-radius:10px;background:var(--studio-fill);}
.measurement-details{border-top:1px solid var(--studio-line);padding-top:10px;}
.height-model-note{margin-top:9px;padding:9px 11px;border-radius:9px;background:#f3f7fb;color:#52606d;font-size:10px;line-height:1.45;}
.measurement-details>summary{font-size:12px;font-weight:620;color:var(--blue);list-style:none;}
.measurement-details>summary::-webkit-details-marker{display:none;}
.measurement-details .review-grid{margin-top:10px;}
.environment-summary{padding:11px 12px;border:1px solid rgba(0,113,227,.14);border-radius:13px;background:#f5faff;color:#34404d;font-size:11px;line-height:1.5;}
.environment-summary strong{color:#10243a;}
.environment-summary.fallback{border-color:rgba(142,94,0,.18);background:#fffaf0;}
.environment-detail-copy{margin-top:8px;color:var(--muted);font-size:10px;line-height:1.55;}
.measurement-panel{padding:0!important;overflow:hidden;}
.measurement-panel>summary{
  min-height:52px;padding:0 13px;display:flex;align-items:center;justify-content:space-between;gap:12px;
  list-style:none;cursor:pointer;color:var(--ink);font-size:13px;font-weight:700;
}
.measurement-panel>summary::-webkit-details-marker{display:none;}
.measurement-panel>summary::after{content:"+";color:var(--blue);font-size:18px;font-weight:450;line-height:1;}
.measurement-panel[open]>summary::after{content:"−";}
.measurement-summary-copy{display:flex;align-items:center;gap:8px;min-width:0;}
.measurement-summary-state{color:var(--muted);font-size:11px;font-weight:620;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.measurement-panel-body{padding:0 12px 12px;display:flex;flex-direction:column;gap:8px;border-top:1px solid var(--studio-line);}
.measurement-primary-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding-top:10px;}
.measurement-primary-row .btn{width:auto;min-width:108px;}
.measurement-debug-tools{margin-top:2px;border-top:1px solid var(--studio-line);padding-top:8px;}
.measurement-debug-tools>summary{color:var(--muted);font-size:11px;font-weight:650;cursor:pointer;list-style:none;}
.measurement-debug-tools>summary::-webkit-details-marker{display:none;}
.measurement-debug-tools>summary::before{content:"Visa ";}
.measurement-debug-tools[open]>summary::before{content:"Dölj ";}
.measurement-debug-content{display:flex;flex-direction:column;gap:8px;margin-top:9px;}
.layout.system-healthy .connection-section{display:none!important;}
.layout.system-healthy.results-mode .left-rail-stack{padding-top:224px;}
.layout:not(.system-healthy) .connection-section{animation:consumer-issue-in .2s ease-out;}
@keyframes consumer-issue-in{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
.failure-card{padding:14px;border:1px solid rgba(215,0,21,.18);border-radius:12px;background:#fff5f6;color:#701f1f;font-size:13px;line-height:1.45;}
.failure-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;}
.failure-card-head strong{font-size:14px;}
.failure-card details{margin-top:12px;padding-top:10px;border-top:1px solid rgba(112,31,31,.14);}
.failure-card summary{cursor:pointer;color:#701f1f;font-size:12px;font-weight:700;}
.failure-debug-content{margin-top:10px;padding:10px;border-radius:9px;background:rgba(255,255,255,.7);font:11px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere;}
.failure-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px;}
.failure-actions button{width:auto;min-height:34px;padding:0 12px;}
.custom-club-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;margin-top:9px;}
.custom-club-row .btn{width:auto;min-height:36px;}
#clear-custom-clubs{margin-top:7px;}
.hist-table{border-radius:12px;background:white;}
.hist-hdr{background:var(--studio-surface-2);}
.hist-row{min-height:40px;}
.hist-row.active{background:rgba(0,113,227,.075);box-shadow:inset 3px 0 var(--blue);}
.hist-time{position:relative;min-width:0;display:block;color:#6e6e73;font-size:11px;white-space:nowrap;}
.hist-time .club-dot{position:absolute;left:-7px;top:50%;width:5px;height:5px;transform:translateY(-50%);}
.summary-grid{gap:7px;}
.summary-card{border:0;border-radius:10px;background:var(--studio-surface-2);}
.summary-value{font-size:19px;}
.session-trend{margin-top:14px;padding-top:13px;border-top:1px solid var(--studio-line);}
.session-trend:empty{display:none;}
.virtual-range{
  position:relative;margin-bottom:17px;overflow:hidden;
  border:1px solid var(--studio-line);border-radius:13px;background:white;
}
.virtual-range[hidden]{display:none;}
.virtual-range canvas{display:block;width:100%;height:260px;background:#fff;}
.range-head{
  min-height:58px;padding:12px 14px 10px;display:flex;align-items:flex-start;justify-content:space-between;
  gap:12px;border-bottom:1px solid var(--studio-line);pointer-events:none;
}
.range-head>div:first-child{display:flex;flex-direction:column;gap:2px;}
.range-head span{color:var(--muted);font-size:9px;font-weight:680;}
.range-head strong{display:flex;align-items:center;gap:7px;color:var(--ink);font-size:17px;font-weight:730;}
.range-head strong::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--club-color,var(--blue));box-shadow:0 0 0 3px color-mix(in srgb,var(--club-color,var(--blue)) 12%,transparent);}
.range-quality{
  padding:6px 8px;border:1px solid var(--studio-line);border-radius:8px;background:var(--studio-surface-2);
  color:var(--muted);font-size:9px;font-weight:680;
}
.range-head-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap;}
.ball-ready-indicator{
  min-height:27px;padding:0 9px;display:inline-flex;align-items:center;gap:7px;border:1px solid var(--studio-line);
  border-radius:8px;background:var(--studio-surface-2);color:var(--muted);font-size:9px;font-weight:700;
}
.ball-ready-lamp{
  width:8px;height:8px;border-radius:50%;background:#d70015;box-shadow:0 0 0 0 rgba(215,0,21,.32);
  animation:readiness-pulse-red 1.15s ease-in-out infinite;
}
.ball-ready-indicator[data-state="locked"]{color:#1f6f36;background:#f0f8f1;border-color:#d6ead9;}
.ball-ready-indicator[data-state="locked"] .ball-ready-lamp{
  background:#30d158;box-shadow:0 0 0 3px rgba(48,209,88,.18);animation:none;
}
.ball-ready-indicator[data-state="searching"]{color:#9b1c2e;background:#fff3f4;border-color:#f2d4d8;}
@keyframes readiness-pulse-red{
  0%,100%{opacity:1;box-shadow:0 0 0 0 rgba(215,0,21,.3)}
  50%{opacity:.52;box-shadow:0 0 0 5px rgba(215,0,21,0)}
}
@keyframes readiness-pulse-green{
  0%,100%{opacity:1;box-shadow:0 0 0 0 rgba(48,209,88,.32)}
  50%{opacity:.58;box-shadow:0 0 0 5px rgba(48,209,88,0)}
}
.range-foot{
  min-height:42px;padding:8px 12px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;
  border-top:1px solid var(--studio-line);color:var(--muted);font-size:10px;font-weight:650;pointer-events:none;
}
.range-foot span{min-width:0;padding:5px 7px;border-radius:7px;background:var(--studio-surface-2);text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.session-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;}
.session-head .section-title{margin:0;}
.club-filter{min-width:0;display:flex;align-items:center;justify-content:flex-end;gap:4px;overflow-x:auto;scrollbar-width:none;}
.club-filter::-webkit-scrollbar{display:none;}
.club-filter button{
  flex:0 0 auto;min-height:26px;padding:0 8px;border:0;border-radius:7px;background:var(--studio-fill);
  color:var(--muted);font:inherit;font-size:9px;font-weight:680;cursor:pointer;
}
.club-filter button[data-club]{display:flex;align-items:center;gap:5px;}
.club-filter button[data-club]::before{content:"";width:5px;height:5px;border-radius:50%;background:var(--club-color);flex:0 0 auto;}
.club-filter button.active{background:var(--ink);color:white;}
.club-dashboard{margin-top:14px;padding-top:13px;border-top:1px solid var(--studio-line);}
.club-dashboard:empty{display:none;}
.club-dashboard-head,.club-dashboard-row{
  display:grid;grid-template-columns:minmax(48px,.7fr) 40px repeat(3,minmax(58px,1fr));align-items:center;gap:7px;
}
.club-dashboard-head{padding:0 7px 7px;color:var(--muted);font-size:9px;font-weight:650;}
.club-dashboard-row{
  width:100%;min-height:40px;padding:7px;border:0;border-top:1px solid var(--studio-line);background:transparent;
  color:var(--ink);font:inherit;font-size:11px;text-align:left;cursor:pointer;
}
.club-dashboard-row:hover{background:rgba(0,113,227,.05);}
.club-dashboard-row.active{box-shadow:inset 3px 0 var(--blue);background:rgba(0,113,227,.06);}
.club-dashboard-row strong{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:720;}
.club-dashboard-row span{color:var(--muted);}
.club-dashboard-row .club-consistency.good{color:var(--green);}
.club-dashboard-row .club-consistency.warn{color:var(--amber);}
.trend-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;}
.trend-head span{color:var(--muted);font-size:11px;font-weight:620;}
.trend-head strong{color:var(--ink);font-size:11px;font-weight:680;text-align:right;}
.trend-bars{height:92px;margin-top:10px;display:flex;align-items:flex-end;gap:7px;}
.trend-column{height:100%;min-width:0;flex:1;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:5px;}
.trend-value{color:var(--muted);font-size:9px;font-weight:620;line-height:1;}
.trend-track{width:min(30px,72%);height:62px;display:flex;align-items:flex-end;border-radius:7px;background:var(--studio-fill);overflow:hidden;}
.trend-bar{width:100%;min-height:8px;border-radius:7px 7px 0 0;background:#a8c8ed;}
.trend-column.latest .trend-bar{background:var(--blue);}
.trend-column.best .trend-bar{background:var(--green);}
.trend-time{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:9px;}
.coach-camera{
  position:absolute;right:12px;bottom:62px;width:clamp(176px,22vw,280px);aspect-ratio:16/9;overflow:hidden;z-index:8;
  border:1px solid rgba(255,255,255,.28);border-radius:13px;background:#111;
  box-shadow:0 14px 38px rgba(0,0,0,.35);
}
.coach-camera[hidden]{display:none!important;}
.coach-camera video,.coach-camera canvas{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;transform:scaleX(-1);}
.coach-camera video{opacity:1!important;}
.coach-camera canvas{pointer-events:none;}
.coach-camera-badge{
  position:absolute;left:7px;top:7px;display:flex;align-items:center;gap:5px;max-width:calc(100% - 14px);
  padding:4px 6px;border-radius:999px;background:rgba(20,20,22,.7);color:#fff;font-size:8px;font-weight:720;
  backdrop-filter:blur(12px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.coach-camera-dot{width:6px;height:6px;flex:0 0 auto;border-radius:50%;background:#ff9f0a;}
.coach-camera[data-state="ready"] .coach-camera-dot{background:#30d158;}
.coach-camera[data-state="error"] .coach-camera-dot{background:#ff453a;}
.coach-camera-expand{
  position:absolute;right:7px;top:7px;z-index:2;min-width:76px;min-height:28px;padding:0 9px;
  border:1px solid rgba(255,255,255,.22);border-radius:999px;background:rgba(20,20,22,.72);
  color:#fff;font:inherit;font-size:9px;font-weight:720;cursor:pointer;backdrop-filter:blur(12px);
}
.coach-camera-expand:hover{background:rgba(44,44,46,.9);}
.coach-camera-expand:focus-visible{outline:3px solid rgba(255,255,255,.6);outline-offset:2px;}
.coach-camera.is-expanded{
  position:fixed;inset:70px 24px 24px;width:auto;aspect-ratio:auto;z-index:80;
  border-radius:22px;background:#050506;box-shadow:0 30px 110px rgba(0,0,0,.68);
}
.coach-camera.is-expanded .coach-camera-badge{left:12px;top:12px;padding:6px 9px;font-size:11px;}
.coach-camera.is-expanded .coach-camera-expand{right:12px;top:12px;min-width:88px;min-height:34px;font-size:11px;}
body.coach-preview-expanded{overflow:hidden;}
.layout.replay-mode .coach-camera{right:18px;bottom:78px;width:min(260px,31%);border-radius:18px;}
.layout.replay-mode .coach-camera.is-expanded{right:24px;bottom:24px;width:auto;border-radius:22px;}
.coach-setting-status{display:flex;align-items:flex-start;gap:8px;margin-top:9px;color:var(--muted);font-size:10px;line-height:1.4;}
.coach-setting-status .dot{width:7px;height:7px;margin-top:3px;flex:0 0 auto;border-radius:50%;background:#8e8e93;}
.coach-setting-status[data-state="ready"] .dot{background:var(--green);}
.coach-setting-status[data-state="loading"] .dot,.coach-setting-status[data-state="requesting"] .dot,.coach-setting-status[data-state="searching"] .dot{background:var(--amber);}
.coach-setting-status[data-state="error"] .dot,.coach-setting-status[data-state="warning"] .dot{background:var(--red);}
.coach-placement-lock{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:36px;padding:8px 10px;border:1px solid #d8e7f6;border-radius:10px;background:#f3f8fe;color:var(--ink);font-size:11px;font-weight:690;}
.coach-placement-lock small{color:var(--muted);font-size:9px;font-weight:620;text-align:right;}
.coach-result{
  margin-top:2px;padding:14px;border:1px solid #d9e8f7;border-radius:13px;background:linear-gradient(145deg,#f7fbff,#eef6ff);
}
.coach-result.warn{border-color:#efdfbd;background:linear-gradient(145deg,#fffdf7,#fff7e6);}
.coach-result.error{border-color:#efd4d8;background:#fff7f8;}
.shot-shape-result{border-color:#d7e7dc;background:linear-gradient(145deg,#f8fcf9,#eef8f1);}
.shot-shape-result.risk-elevated,.shot-shape-result.risk-high{border-color:#efdfbd;background:linear-gradient(145deg,#fffdf7,#fff7e6);}
.shot-shape-result.risk-high{border-color:#efd4d8;background:linear-gradient(145deg,#fffafa,#fff1f3);}
.shot-shape-result .coach-result-kicker{color:#16713a;}
.shot-shape-result .coach-result-kicker::before{background:#248a3d;box-shadow:0 0 0 4px rgba(36,138,61,.11);}
.shot-shape-result.risk-elevated .coach-result-kicker,.shot-shape-result.risk-high .coach-result-kicker{color:#8a5c00;}
.shot-shape-result.risk-elevated .coach-result-kicker::before,.shot-shape-result.risk-high .coach-result-kicker::before{background:#d99a1b;box-shadow:0 0 0 4px rgba(217,154,27,.12);}
.shot-direction-result{border-color:#d9ddf3;background:linear-gradient(145deg,#fafaff,#f1f3ff);}
.shot-direction-result .coach-result-kicker{color:#4b55a5;}
.shot-direction-result .coach-result-kicker::before{background:#6670c7;box-shadow:0 0 0 4px rgba(102,112,199,.11);}
.shot-direction-result .review-grid{margin-top:10px;}
.ball-curve-result{border-color:#ead9b7;background:linear-gradient(145deg,#fffdf8,#fff7e8);}
.ball-curve-result.signal{border-color:#e6c98f;background:linear-gradient(145deg,#fffaf0,#fff2d6);}
.ball-curve-result .coach-result-kicker{color:#8a5c00;}
.ball-curve-result .coach-result-kicker::before{background:#d99a1b;box-shadow:0 0 0 4px rgba(217,154,27,.12);}
.ball-curve-result .review-grid{margin-top:10px;}
.club-path-visual{margin:11px 0 2px;padding:10px;border:1px solid rgba(0,0,0,.07);border-radius:12px;background:rgba(255,255,255,.62);}
.club-path-visual svg{display:block;width:100%;height:104px;}
.club-path-visual .target-line{stroke:#6e6e73;stroke-width:1.5;stroke-dasharray:5 5;}
.club-path-visual .path-line{fill:none;stroke:#16713a;stroke-width:5;stroke-linecap:round;}
.club-path-visual .path-arrow{fill:#16713a;}
.club-path-visual text{fill:#6e6e73;font:650 10px -apple-system,BlinkMacSystemFont,sans-serif;}
.club-path-caption{margin:7px 0 0!important;color:var(--muted)!important;font-size:10px!important;text-align:center;}
.shot-shape-limit{margin-top:9px!important;padding-top:9px;border-top:1px solid rgba(0,0,0,.07);color:var(--muted)!important;font-size:10px!important;}
.coach-result-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px;}
.coach-result-kicker{display:flex;align-items:center;gap:7px;color:#0064c8;font-size:10px;font-weight:760;text-transform:uppercase;letter-spacing:.04em;}
.coach-result-kicker::before{content:"";width:7px;height:7px;border-radius:50%;background:#0071e3;box-shadow:0 0 0 4px rgba(0,113,227,.1);}
.coach-result.warn .coach-result-kicker{color:#8a5c00;}
.coach-result.warn .coach-result-kicker::before{background:#d99a1b;box-shadow:0 0 0 4px rgba(217,154,27,.12);}
.coach-result-confidence{color:var(--muted);font-size:9px;font-weight:650;}
.coach-result h3{font-size:15px;line-height:1.25;margin-bottom:6px;}
.coach-result p{color:#424245;font-size:12px;line-height:1.48;}
.coach-result-tip{margin-top:9px;padding-top:9px;border-top:1px solid rgba(0,0,0,.07);}
.coach-result-tip strong{display:block;margin-bottom:3px;color:var(--ink);font-size:10px;}
.coach-result-drill{margin-top:7px;color:var(--muted)!important;font-size:10px!important;}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{
  outline:3px solid rgba(0,113,227,.34);outline-offset:2px;
}

.settings-backdrop{background:rgba(0,0,0,.13);backdrop-filter:blur(14px);}
.settings-sheet{
  width:min(440px,calc(100vw - 24px));height:calc(100vh - 24px);margin:12px;border-radius:18px;
  background:rgba(245,245,247,.94);box-shadow:0 24px 90px rgba(0,0,0,.2);
}
.settings-head{padding:19px 20px 12px;}
.settings-title{font-size:22px;font-weight:730;letter-spacing:0;}
.sheet-done{min-height:32px;padding:0 11px;border:0;border-radius:999px;background:var(--studio-fill);color:var(--blue);font:inherit;font-size:12px;font-weight:650;cursor:pointer;}
.settings-body{padding:0 18px 22px;gap:8px;}
.settings-caption{padding:7px 4px 0;color:var(--muted);font-size:11px;font-weight:650;}
.settings-group-list{flex:0 0 auto;overflow:hidden;border:1px solid var(--studio-line);border-radius:13px;background:white;}
.setting-group{padding:13px;border:0;border-bottom:1px solid var(--studio-line);border-radius:0;background:white;box-shadow:none;}
.setting-group:last-child{border-bottom:0;}
.setting-group.ai-coach-focus{background:#f2f8ff;box-shadow:inset 0 0 0 2px rgba(0,113,227,.28);}
.setting-label{margin-bottom:9px;color:var(--ink);font-size:12px;font-weight:620;}
.seg{padding:2px;border-radius:10px;background:var(--studio-fill);gap:2px;}
.seg button{min-height:31px;border-radius:8px;background:transparent;font-size:11px;}
.seg button.active{background:white;color:var(--ink);box-shadow:0 1px 5px rgba(0,0,0,.12);}
.advanced-settings{margin-top:8px;}
.advanced-settings>summary{
  height:44px;padding:0 13px;display:flex;align-items:center;justify-content:space-between;
  border:1px solid var(--studio-line);border-radius:13px;background:white;color:var(--ink);font-size:13px;font-weight:620;list-style:none;
}
.advanced-settings>summary::-webkit-details-marker{display:none;}
.advanced-settings>summary .ui-icon{width:16px;height:16px;color:var(--muted);transition:transform .2s;}
.advanced-settings[open]>summary .ui-icon{transform:rotate(90deg);}
.advanced-settings[open]>summary{border-radius:13px 13px 0 0;border-bottom:0;}
.advanced-settings>.settings-group-list{border-radius:0 0 13px 13px;}
.source-path,.source-warning{border-radius:9px;}
.setting-note{margin-top:8px;color:var(--muted);font-size:10px;line-height:1.45;}
.terrain-assumption-fields{display:grid;grid-template-columns:minmax(0,1fr) 7.5rem;align-items:center;gap:10px 12px;}
.terrain-assumption-fields label{color:var(--ink);font-size:12px;line-height:1.4;}
.terrain-assumption-fields input{box-sizing:border-box;width:100%;min-width:0;padding:10px;border:1px solid var(--studio-line);border-radius:10px;background:var(--studio-fill);color:var(--ink);font:inherit;font-size:14px;}
.setting-label-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;}
.setting-label-row .setting-label{margin:0;}
.bag-reset{min-height:28px;padding:0 8px;border:0;border-radius:8px;background:var(--studio-fill);color:var(--blue);font:inherit;font-size:10px;font-weight:650;cursor:pointer;}
.bag-picker{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;}
.bag-club{
  min-width:0;min-height:34px;padding:0 7px;display:flex;align-items:center;justify-content:center;gap:6px;
  border:1px solid transparent;border-radius:9px;background:var(--studio-fill);color:var(--muted);
  font:inherit;font-size:11px;font-weight:650;cursor:pointer;
}
.bag-club::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--club-color);opacity:.42;flex:0 0 auto;}
.bag-club.active{border-color:color-mix(in srgb,var(--club-color) 32%,transparent);background:color-mix(in srgb,var(--club-color) 9%,white);color:var(--ink);}
.bag-club.active::before{opacity:1;box-shadow:0 0 0 3px color-mix(in srgb,var(--club-color) 14%,transparent);}
.bag-club:disabled{cursor:not-allowed;opacity:.62;}
.bag-count{margin-top:9px;color:var(--muted);font-size:10px;font-weight:600;}
.capture-library-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px;}
.capture-library-actions .btn{flex:1 1 120px;min-height:31px;}
.complete-capture-check{
  margin-top:10px;padding:10px;display:flex;align-items:flex-start;gap:10px;
  border:1px solid rgba(0,113,227,.22);border-radius:10px;background:#f4f9ff;cursor:pointer;
}
.complete-capture-check input{width:18px;height:18px;margin:1px 0 0;accent-color:var(--blue);flex:0 0 auto;cursor:pointer;}
.complete-capture-check-copy{min-width:0;color:var(--ink);font-size:11px;font-weight:650;line-height:1.35;}
.complete-capture-check-copy small{display:block;margin-top:3px;color:var(--muted);font-size:10px;font-weight:450;line-height:1.4;}
.complete-capture-status[data-state="ready"]{color:#248a3d;}
.complete-capture-status[data-state="partial"],.complete-capture-status[data-state="saving"]{color:#8a5c00;}
.complete-capture-status[data-state="error"]{color:#d70015;}
.collection-session-panel{margin-top:10px;padding:10px;border:1px solid var(--studio-line);border-radius:10px;background:white;}
.collection-session-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;}
.collection-session-copy{min-width:0;font-size:10px;line-height:1.4;color:var(--muted);}
.collection-session-copy strong{display:block;color:var(--ink);font-size:11px;font-weight:700;overflow-wrap:anywhere;}
.collection-session-copy strong[data-state="active"]{color:#248a3d;}
.collection-session-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px;}
.collection-session-actions .btn{min-height:30px;}
.collection-session-warning{margin-top:8px;color:#8a5c00;font-size:10px;line-height:1.4;}
.capture-feedback{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 10px;border:1px solid var(--studio-line);border-radius:10px;background:white;}
.capture-feedback-copy{min-width:0;color:var(--muted);font-size:10px;line-height:1.35;}
.capture-feedback-copy strong{display:block;color:var(--ink);font-size:11px;font-weight:650;}
.capture-feedback-actions{display:flex;gap:5px;flex-shrink:0;}
.capture-feedback-actions button{min-height:29px;padding:0 9px;border:0;border-radius:8px;background:var(--studio-fill);color:var(--ink);font:inherit;font-size:10px;font-weight:650;cursor:pointer;}
.capture-feedback-actions button.active{background:var(--blue);color:white;}

@media (max-width:1199px){
  .layout.results-mode{grid-template-columns:280px minmax(0,1fr);}
  .layout.results-mode .panel{grid-template-columns:280px minmax(0,1fr);}
  .layout.results-mode .result-section{grid-column:2;grid-row:1;}
  .layout.results-mode .history-section{grid-column:2;grid-row:2;}
  .layout.results-mode .summary-section{grid-column:2;grid-row:3;}
  .layout.results-mode .connection-section{grid-column:1;grid-row:2;}
  .layout.results-mode .control-section{grid-column:1;grid-row:3;}
  .virtual-range canvas{height:230px;}
  .virtual-range{min-height:230px;}
}
@media (min-width:1200px){
  .layout.results-mode .result-section{grid-column:2;grid-row:1 / span 3;}
  .layout.results-mode .history-section{grid-column:3;grid-row:1;}
  .layout.results-mode .summary-section{grid-column:3;grid-row:2 / span 2;}
  .summary-section .summary-grid{grid-template-columns:1fr 1fr;}
  .summary-section .club-dashboard-head,
  .summary-section .club-dashboard-row{grid-template-columns:48px 30px repeat(3,minmax(50px,1fr));gap:4px;}
  .summary-section .club-dashboard-head span:nth-child(5),
  .summary-section .club-dashboard-row span:nth-child(5){display:none;}
}
@media (min-width:1500px){
  .layout.results-mode{grid-template-columns:340px minmax(0,1fr);}
  .layout.results-mode .panel{grid-template-columns:340px minmax(580px,1.1fr) minmax(420px,.72fr);}
  .summary-section .club-dashboard-head,
  .summary-section .club-dashboard-row{grid-template-columns:minmax(52px,.7fr) 38px repeat(3,minmax(66px,1fr));gap:7px;}
  .summary-section .club-dashboard-head span:nth-child(5),
  .summary-section .club-dashboard-row span:nth-child(5){display:block;}
}
@media (max-width:760px){
  html,body{overflow:auto;}
  .bag-picker{grid-template-columns:repeat(3,minmax(0,1fr));}
  .hdr{grid-template-columns:1fr auto;padding:0 12px;}
  .top-status{display:none;}
  .brand-copy span,.version-badge{display:none;}
  .top-actions{justify-self:end;}
  .ai-coach-quick{min-height:34px;padding:4px 8px;border-radius:10px;gap:6px;}
  .ai-coach-quick-icon{width:23px;height:23px;}
  .ai-coach-quick-state{display:none;}
  .ai-coach-quick-copy strong{font-size:11px;}
  #unit-toggle-btn{display:none;}
  .layout{height:auto;min-height:calc(100vh - 56px - var(--distance-ready-height,0px));grid-template-columns:1fr;}
  .video-col{height:56vh;}
  .panel-col{overflow:visible;}
  .layout.results-mode{display:flex;flex-direction:column;height:auto;overflow:visible;padding:10px;}
  .layout.results-mode .video-col{width:100%;height:200px;order:1;}
  .layout.results-mode .panel-col{display:block;order:2;}
  .layout.results-mode .panel{display:flex;padding:0;}
  .layout.results-mode .left-rail-stack{display:contents;padding:0;}
  .layout.results-mode .result-section{order:1;}
  .layout.results-mode .summary-section{order:2;}
  .layout.results-mode .history-section{order:3;}
  .layout.results-mode .connection-section{order:4;}
  .layout.results-mode .control-section{order:5;}
  .secondary-grid{grid-template-columns:1fr 1fr;}
  .virtual-range canvas{height:220px;}
  .range-head{align-items:center;}
  .range-head-actions{max-width:58%;}
  .range-quality{display:none;}
  .club-dashboard-head,.club-dashboard-row{grid-template-columns:48px 32px repeat(3,minmax(54px,1fr));gap:4px;}
  .club-dashboard-head span:nth-child(5),.club-dashboard-row span:nth-child(5){display:none;}
  .hero-value{font-size:56px;}
  .connect-card{padding:20px 18px;}
  .connect-device,.connect-steps{display:none;}
  .connect-card h1{font-size:23px;}
  .connect-card p{font-size:12px;}
  .connect-actions{margin-top:14px;grid-template-columns:88px minmax(0,1fr);gap:12px;text-align:left;}
  .connect-qr-frame{width:88px;height:88px;}
  .connect-qr span{font-size:8px;}
  .connect-copy{min-height:38px;padding:0 10px;font-size:12px;}
  .replay-summary{top:14px;right:14px;gap:10px;}
  .replay-summary-item strong{font-size:13px;}
}
@media (prefers-reduced-motion:reduce){
  .ball-ready-lamp{animation:none;}
}
/* Keep the phone-only result flow deterministic after the wider desktop rules. */
body.standalone-mobile .layout.results-mode .left-rail-stack{display:contents!important;padding:0!important;}
body.standalone-mobile .layout.results-mode .panel-section{grid-column:auto!important;grid-row:auto!important;align-self:stretch!important;width:auto;}
body.standalone-mobile .layout.results-mode .result-section{order:1;}
body.standalone-mobile .layout.results-mode .control-section{order:2;}
body.standalone-mobile .layout.results-mode .summary-section{order:3;}
body.standalone-mobile .layout.results-mode .history-section{order:4;}
body.standalone-mobile .layout.results-mode .connection-section{order:5;}


/* Premium simulator launcher. Kept in desktop.html so Virtual Golf runtime and
   measurement behavior remain independent from the product-navigation skin. */
.mode-menu-backdrop{
  isolation:isolate;padding:clamp(14px,2.4vw,38px);
  background:
    radial-gradient(circle at 14% -10%,rgba(95,173,116,.2),transparent 32%),
    radial-gradient(circle at 92% 108%,rgba(40,104,73,.2),transparent 38%),
    linear-gradient(145deg,#030705 0%,#07110b 48%,#020503 100%);
}
.mode-menu-backdrop::before{
  content:"";position:fixed;z-index:-1;inset:0;pointer-events:none;opacity:.34;
  background-image:linear-gradient(rgba(255,255,255,.018) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.018) 1px,transparent 1px);
  background-size:64px 64px;mask-image:linear-gradient(to bottom,rgba(0,0,0,.82),transparent 84%);
}
.mode-menu-sheet{
  width:min(1540px,100%);min-height:min(900px,calc(100dvh - clamp(28px,4.8vw,76px)));max-height:calc(100dvh - clamp(28px,4.8vw,76px));
  padding:clamp(28px,3vw,48px);border:1px solid rgba(255,255,255,.13);border-radius:34px;
  background:linear-gradient(155deg,rgba(18,27,21,.98),rgba(8,14,10,.99));
  box-shadow:0 46px 150px rgba(0,0,0,.62),inset 0 1px 0 rgba(255,255,255,.08);color:#f5f8f5;
  scrollbar-color:rgba(255,255,255,.18) transparent;
}
.mode-menu-head{align-items:flex-end;gap:28px;padding:2px 2px 0}
.mode-menu-head>div:first-child{max-width:900px}
.mode-menu-kicker-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.mode-menu-head .vg-eyebrow{color:#8ccf9d;font-size:12px;font-weight:780;letter-spacing:.14em}
.mode-menu-edition{padding:6px 9px;border:1px solid rgba(140,207,157,.25);border-radius:999px;background:rgba(140,207,157,.08);color:#bce7c7;font-size:9px;font-weight:800;letter-spacing:.11em}
.mode-menu-head h2{max-width:860px;margin-top:12px;color:#f7faf7;font-size:clamp(42px,4.4vw,72px);font-weight:760;line-height:.94;letter-spacing:-.055em}
.mode-menu-head p{max-width:720px;margin-top:16px;color:#aebbb2;font-size:clamp(15px,1.25vw,19px);line-height:1.5}
.mode-menu-head-status{margin-left:auto;display:flex;align-items:center;gap:11px;padding:11px 14px;border:1px solid rgba(255,255,255,.1);border-radius:14px;background:rgba(255,255,255,.045);color:#dce5de;font-size:11px;font-weight:690;white-space:nowrap}
.mode-menu-head-status i{width:8px;height:8px;border-radius:50%;background:#54c976;box-shadow:0 0 0 5px rgba(84,201,118,.11)}
.mode-menu-close{width:56px;height:56px;border:1px solid rgba(255,255,255,.12);border-radius:17px;background:rgba(255,255,255,.07);color:#fff}
.mode-menu-close:hover{background:rgba(255,255,255,.13)}
.mode-menu-options{margin-top:clamp(28px,3.5vh,44px);grid-template-columns:1fr 1fr;gap:clamp(20px,2vw,30px)}
.mode-menu-option{
  min-height:clamp(480px,57vh,650px);border:1px solid rgba(255,255,255,.11);border-radius:30px;
  background:#111a14;color:#f7faf7;box-shadow:0 24px 68px rgba(0,0,0,.28);transform:translateZ(0);
}
.mode-menu-option::before{
  content:attr(data-mode-index);position:absolute;z-index:4;left:22px;top:20px;min-width:48px;height:34px;padding:0 10px;
  display:flex;align-items:center;justify-content:center;border:1px solid rgba(255,255,255,.24);border-radius:999px;
  background:rgba(3,9,5,.54);color:#fff;font-size:11px;font-weight:800;letter-spacing:.13em;backdrop-filter:blur(14px);
}
@media(hover:hover){
  .mode-menu-option:hover{border-color:rgba(134,211,153,.62);box-shadow:0 34px 78px rgba(0,0,0,.42),0 0 0 1px rgba(134,211,153,.13);transform:translateY(-6px)}
}
.mode-menu-option:focus-visible{outline:4px solid rgba(139,211,157,.5);outline-offset:4px}
.mode-menu-option.active{border-color:#77c98c;box-shadow:0 0 0 3px rgba(119,201,140,.14),0 30px 72px rgba(0,0,0,.36)}
.mode-menu-art{min-height:clamp(270px,34vh,395px);background-color:#17261c;background-position:center;background-repeat:no-repeat;background-size:cover}
.mode-menu-art-range{background-image:linear-gradient(180deg,rgba(3,9,5,.03) 30%,rgba(3,9,5,.84) 100%),none;background-position:center 52%}
.mode-menu-art-course{background-image:linear-gradient(180deg,rgba(3,9,5,.03) 26%,rgba(3,9,5,.82) 100%),none;background-position:center 48%}
.mode-menu-art-range::before,.mode-menu-art-range::after,.mode-menu-art-course::before,.mode-menu-art-course::after{content:none}
.mode-menu-art>i,.mode-menu-art>b{display:none}
.mode-menu-art-label{position:absolute;z-index:3;right:20px;top:20px;padding:9px 12px;border:1px solid rgba(255,255,255,.22);border-radius:999px;background:rgba(3,9,5,.54);color:#fff;font-size:10px;font-weight:780;letter-spacing:.05em;backdrop-filter:blur(14px)}
.mode-menu-option-copy{min-height:218px;padding:25px 28px 27px;background:linear-gradient(180deg,#121b15,#0d1510)}
.mode-menu-option-copy small{color:#8dd0a0;font-size:11px;letter-spacing:.1em}
.mode-menu-option-copy small em{background:rgba(111,195,134,.14);color:#a9dfb7}
.mode-menu-option-copy strong{margin-top:8px;color:#f7faf7;font-size:clamp(29px,2.2vw,38px);font-weight:750;letter-spacing:-.035em}
.mode-menu-option-copy>span{margin-top:10px;color:#aab7ae;font-size:15px;line-height:1.52}
.mode-menu-option-copy .mode-menu-action{
  min-height:58px;margin-top:22px;padding:0 18px;justify-content:space-between;border:1px solid rgba(132,210,151,.24);border-radius:15px;
  background:rgba(111,195,134,.11);color:#c4ead0;font-size:15px;font-weight:780;
}
.mode-menu-option-copy .mode-menu-action b{font-size:22px}
.mode-menu-check{right:20px;top:20px;width:38px;height:38px;background:#58b870}
.mode-menu-tools{margin-top:clamp(18px,2.5vh,28px);grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.mode-menu-tools button,.mode-menu-tools a{
  min-height:92px;padding:15px 16px;grid-template-columns:48px minmax(0,1fr);column-gap:13px;
  border:1px solid rgba(255,255,255,.09);border-radius:18px;background:rgba(255,255,255,.045);color:#f4f7f4;
}
.mode-menu-tools button:hover,.mode-menu-tools a:hover{border-color:rgba(134,211,153,.32);background:rgba(255,255,255,.085);transform:translateY(-2px)}
.mode-menu-tools>*>span{width:48px;height:48px;border-radius:14px;background:rgba(117,199,138,.12);color:#9fdbaf}
.mode-menu-tools svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.mode-menu-tools strong{font-size:14px;font-weight:740}
.mode-menu-tools small{margin-top:2px;color:#93a198;font-size:11px}
.mode-menu-footnote{margin:18px 2px 0;color:#718077;font-size:10px}
@media(max-width:1120px){
  .mode-menu-sheet{padding:28px}.mode-menu-head h2{font-size:44px}.mode-menu-option{min-height:430px}.mode-menu-art{min-height:235px}
  .mode-menu-option-copy{min-height:190px;padding:21px}.mode-menu-tools button,.mode-menu-tools a{min-height:82px}
}
@media(max-width:820px){
  .mode-menu-backdrop{padding:0;align-items:stretch}.mode-menu-sheet{width:100%;min-height:100dvh;max-height:100dvh;padding:24px;border:0;border-radius:0}
  .mode-menu-head{align-items:flex-start}.mode-menu-head-status{display:none}.mode-menu-head h2{font-size:39px}.mode-menu-options{grid-template-columns:1fr}
  .mode-menu-option{min-height:290px;display:grid;grid-template-columns:minmax(210px,.82fr) minmax(0,1.18fr);border-radius:24px}
  .mode-menu-art{min-height:290px}.mode-menu-option-copy{min-height:290px;padding:23px}.mode-menu-tools{grid-template-columns:1fr 1fr}
}
@media(max-width:620px){
  .mode-menu-sheet{padding:max(19px,env(safe-area-inset-top)) max(15px,env(safe-area-inset-right)) max(22px,env(safe-area-inset-bottom)) max(15px,env(safe-area-inset-left))}
  .mode-menu-kicker-row{padding-right:48px}.mode-menu-head h2{font-size:34px}.mode-menu-head p{font-size:13px}.mode-menu-close{width:46px;height:46px;border-radius:14px}
  .mode-menu-options{margin-top:20px;gap:14px}.mode-menu-option{min-height:0;display:block;border-radius:21px}.mode-menu-art{min-height:180px}
  .mode-menu-option-copy{min-height:0;padding:19px}.mode-menu-option-copy strong{font-size:25px}.mode-menu-option-copy>span{font-size:13px}
  .mode-menu-option-copy .mode-menu-action{min-height:52px;margin-top:16px;font-size:13px}.mode-menu-tools button,.mode-menu-tools a{min-height:76px;padding:11px;grid-template-columns:40px minmax(0,1fr)}
  .mode-menu-tools>*>span{width:40px;height:40px}.mode-menu-tools small{font-size:9px}
}
@media(max-height:760px) and (min-width:821px){
  .mode-menu-backdrop{padding:8px}.mode-menu-sheet{min-height:calc(100dvh - 16px);max-height:calc(100dvh - 16px);padding:22px 28px}.mode-menu-head h2{font-size:38px}.mode-menu-head p{margin-top:8px;font-size:13px}
  .mode-menu-options{margin-top:17px}.mode-menu-option{min-height:360px}.mode-menu-art{min-height:205px}.mode-menu-option-copy{min-height:154px;padding:17px 20px}
  .mode-menu-option-copy strong{font-size:26px}.mode-menu-option-copy>span{font-size:12px}.mode-menu-option-copy .mode-menu-action{min-height:48px;margin-top:12px;font-size:12px}
  .mode-menu-tools{margin-top:13px}.mode-menu-tools button,.mode-menu-tools a{min-height:66px;padding:9px 12px}.mode-menu-tools>*>span{width:38px;height:38px}.mode-menu-footnote{display:none}
}
@media(prefers-reduced-motion:reduce){.mode-menu-tools button,.mode-menu-tools a{transition:none}}


/* Mobile product launcher. It only orchestrates the existing standalone
   settings and camera entry points; measurement and rejection logic stay in
   their established runtime paths. */
.mobile-product-menu{
  position:fixed;inset:0;z-index:950;display:flex;align-items:stretch;justify-content:center;overflow:hidden;
  background:
    radial-gradient(circle at 12% -8%,rgba(91,181,116,.23),transparent 34%),
    radial-gradient(circle at 96% 102%,rgba(37,103,70,.22),transparent 42%),
    linear-gradient(145deg,#020503 0%,#07110b 50%,#020503 100%);color:#f6faf7;
}
.mobile-product-menu[hidden]{display:none!important}
.mobile-product-menu::before{
  content:"";position:absolute;inset:0;pointer-events:none;opacity:.34;
  background-image:linear-gradient(rgba(255,255,255,.02) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.02) 1px,transparent 1px);
  background-size:48px 48px;mask-image:linear-gradient(to bottom,rgba(0,0,0,.88),transparent 92%);
}
.mobile-product-menu-shell{
  position:relative;width:min(620px,100%);height:100dvh;padding:max(20px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));
  overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none;
}
.mobile-product-menu-shell::-webkit-scrollbar{display:none}
.mobile-product-menu-top{display:flex;align-items:center;justify-content:space-between;gap:14px}
.mobile-product-menu-brand{display:flex;align-items:center;gap:10px;color:#f5faf6;font-size:15px;font-weight:780;letter-spacing:-.01em}
.mobile-product-menu-brand .brand-mark{width:23px;height:23px;color:#92daa4}
.mobile-product-menu-badge{padding:6px 9px;border:1px solid rgba(140,207,157,.24);border-radius:999px;background:rgba(140,207,157,.09);color:#bce7c7;font-size:9px;font-weight:800;letter-spacing:.1em}
.mobile-product-menu-close,.mobile-product-back{
  min-width:46px;min-height:46px;border:1px solid rgba(255,255,255,.13);border-radius:14px;background:rgba(255,255,255,.07);color:#fff;font:inherit;cursor:pointer;
}
.mobile-product-menu-close{display:grid;place-items:center}.mobile-product-menu-close .ui-icon{width:20px;height:20px}
.mobile-product-screen{padding:34px 0 6px}.mobile-product-screen[hidden]{display:none!important}
.mobile-product-kicker{color:#8ed1a0;font-size:11px;font-weight:800;letter-spacing:.14em;text-transform:uppercase}
.mobile-product-screen h1{max-width:520px;margin-top:11px;color:#f8fbf8;font-size:clamp(37px,10vw,54px);font-weight:770;line-height:.95;letter-spacing:-.055em}
.mobile-product-lead{max-width:510px;margin-top:15px;color:#aebbb2;font-size:14px;line-height:1.5}
.mobile-product-home-grid{display:grid;gap:14px;margin-top:27px}
.mobile-product-range-group{display:grid;gap:9px;min-width:0}
.mobile-product-options{width:100%;min-height:48px;padding:10px 15px;border:1px solid rgba(255,255,255,.16);border-radius:14px;background:rgba(255,255,255,.055);color:#c9dfcf;font:inherit;font-size:13px;font-weight:720;text-align:left;cursor:pointer}
.mobile-product-options:disabled,.mobile-product-card:disabled{opacity:.55;cursor:not-allowed}
.mobile-product-start-status{margin:0;padding:11px 13px;border-radius:12px;background:rgba(236,179,91,.12);color:#f2d6a7;font-size:12px;line-height:1.45}
.mobile-product-start-status[hidden]{display:none!important}
.mobile-product-card{
  position:relative;width:100%;min-height:290px;padding:0;overflow:hidden;display:flex;align-items:flex-end;text-align:left;
  border:1px solid rgba(255,255,255,.12);border-radius:26px;background:#111a14;color:#fff;box-shadow:0 24px 68px rgba(0,0,0,.32);font:inherit;cursor:pointer;
}
.mobile-product-card::before{content:"";position:absolute;inset:0;background-position:center;background-size:cover;transition:transform .3s ease}
.mobile-product-card::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(3,8,5,.04) 18%,rgba(3,8,5,.22) 48%,rgba(3,8,5,.96) 100%)}
.mobile-product-card-range::before{background-image:none;background-position:center 54%}
.mobile-product-card-course{min-height:210px}.mobile-product-card-course::before{background-image:none;background-position:center 48%}
.mobile-product-card-copy{position:relative;z-index:1;width:100%;padding:70px 21px 21px;display:flex;flex-direction:column}
.mobile-product-card-copy small{color:#95d7a6;font-size:10px;font-weight:800;letter-spacing:.11em;text-transform:uppercase}
.mobile-product-card-copy strong{margin-top:7px;font-size:29px;font-weight:760;letter-spacing:-.035em}
.mobile-product-card-copy>span{max-width:470px;margin-top:7px;color:#b7c2ba;font-size:13px;line-height:1.45}
.mobile-product-card-action{min-height:52px;margin-top:17px;padding:0 15px;display:flex;align-items:center;justify-content:space-between;border:1px solid rgba(132,210,151,.25);border-radius:14px;background:rgba(111,195,134,.12);color:#c9ecd2;font-size:13px;font-weight:790}
.mobile-product-card-action b{font-size:20px}
.mobile-product-card-tag{position:absolute;z-index:2;top:17px;right:17px;padding:8px 10px;border:1px solid rgba(255,255,255,.2);border-radius:999px;background:rgba(3,9,5,.58);color:#fff;font-size:9px;font-weight:790;letter-spacing:.04em;backdrop-filter:blur(12px)}
.mobile-product-footnote{margin-top:15px;color:#748279;font-size:10px;line-height:1.45}
.mobile-product-step-head{display:flex;align-items:center;gap:12px;margin-bottom:25px}
.mobile-product-step-head>div{min-width:0}.mobile-product-step-head h1{margin-top:5px;font-size:clamp(32px,9vw,46px)}
.mobile-product-screen h1:focus{outline:none}
.mobile-placement-options{display:grid;grid-template-columns:1fr 1fr;gap:11px}
.mobile-placement-option{
  min-height:150px;padding:16px;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:13px;text-align:left;
  border:1px solid rgba(255,255,255,.12);border-radius:21px;background:rgba(255,255,255,.055);color:#f5f8f5;font:inherit;cursor:pointer;
}
.mobile-placement-option-icon{width:48px;height:48px;display:grid;place-items:center;border-radius:15px;background:rgba(139,211,157,.11);color:#9cdbac}
.mobile-placement-option-icon svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.mobile-placement-option strong{display:block;font-size:17px;font-weight:750}.mobile-placement-option small{display:block;margin-top:4px;color:#95a299;font-size:10px;line-height:1.35}
.mobile-placement-option.active{border-color:#78c98c;background:rgba(111,195,134,.12);box-shadow:0 0 0 3px rgba(119,201,140,.11)}
.mobile-placement-config{margin-top:13px;padding:18px;border:1px solid rgba(255,255,255,.11);border-radius:22px;background:rgba(255,255,255,.052)}
.mobile-placement-config[hidden]{display:none!important}
.mobile-placement-control-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px}
.mobile-placement-control-head span{color:#dbe5dd;font-size:12px;font-weight:720}.mobile-placement-control-head output{color:#a8e0b7;font-size:26px;font-weight:770;font-variant-numeric:tabular-nums}
.mobile-placement-angle-row{display:grid;grid-template-columns:52px minmax(0,1fr) 52px;align-items:center;gap:10px;margin-top:13px}
.mobile-placement-angle-step{width:52px;height:52px;border:1px solid rgba(255,255,255,.15);border-radius:15px;background:rgba(255,255,255,.08);color:#fff;font:inherit;font-size:26px;cursor:pointer}
.mobile-placement-angle-range{width:100%;height:44px;accent-color:#74ca89;touch-action:pan-x}
.mobile-placement-angle-scale{display:flex;justify-content:space-between;margin:2px 62px 0;color:#718077;font-size:9px;font-weight:700}
.mobile-placement-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:15px}
.mobile-placement-field{display:flex;flex-direction:column;gap:7px;color:#9eaaa1;font-size:10px;font-weight:720}
.mobile-placement-field input{width:100%;min-height:50px;padding:0 13px;border:1px solid rgba(255,255,255,.14);border-radius:14px;background:rgba(0,0,0,.23);color:#fff;font:inherit;font-size:16px;font-weight:720}
.mobile-placement-summary{margin-top:13px;padding:12px 13px;border-radius:14px;background:rgba(117,199,138,.1);color:#c8ead0;font-size:11px;font-weight:690;line-height:1.45}
.mobile-placement-safety{margin-top:12px;color:#849188;font-size:10px;line-height:1.48}
.mobile-product-primary{
  width:100%;min-height:60px;margin-top:15px;padding:0 18px;display:flex;align-items:center;justify-content:center;gap:9px;
  border:0;border-radius:17px;background:linear-gradient(135deg,#72c787,#4ca967);color:#061109;font:inherit;font-size:16px;font-weight:820;box-shadow:0 15px 38px rgba(67,161,91,.24);cursor:pointer;
}
.mobile-product-primary:disabled{opacity:.5;cursor:not-allowed}
.mobile-computer-steps{display:grid;gap:10px;margin-top:26px;counter-reset:mobile-computer-step}
.mobile-computer-step{min-height:78px;padding:15px;display:grid;grid-template-columns:40px minmax(0,1fr);gap:12px;align-items:center;border:1px solid rgba(255,255,255,.1);border-radius:18px;background:rgba(255,255,255,.05)}
.mobile-computer-step::before{counter-increment:mobile-computer-step;content:counter(mobile-computer-step);width:40px;height:40px;display:grid;place-items:center;border-radius:13px;background:rgba(117,199,138,.12);color:#a9dfb7;font-size:14px;font-weight:800}
.mobile-computer-step strong{display:block;font-size:13px}.mobile-computer-step span{display:block;margin-top:4px;color:#96a39a;font-size:11px;line-height:1.4}
.mobile-product-menu-toggle{display:none}
body.standalone-mobile .mobile-product-menu-toggle{width:44px;height:44px;place-items:center;border:0;border-radius:13px;background:#fff;color:#245b31;box-shadow:0 1px 8px rgba(35,52,39,.08);cursor:pointer}
body.standalone-mobile .mobile-product-menu-toggle{display:grid}
body.standalone-mobile .mobile-product-menu-toggle .ui-icon{width:20px;height:20px}
.mobile-placement-live-card{display:none}
body.standalone-mobile .mobile-placement-live-card[data-visible="true"]{
  position:fixed;left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));bottom:calc(var(--mobile-nav-height) + env(safe-area-inset-bottom) + 12px);z-index:76;
  max-width:470px;margin:0 auto;padding:13px;border:1px solid rgba(255,255,255,.2);border-radius:18px;background:rgba(8,15,10,.86);color:#fff;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;box-shadow:0 18px 50px rgba(0,0,0,.34);backdrop-filter:blur(20px);
}
.mobile-placement-live-copy{min-width:0}.mobile-placement-live-copy strong{display:block;color:#b9e8c5;font-size:12px}.mobile-placement-live-copy span{display:block;margin-top:4px;color:#bdc6bf;font-size:10px;line-height:1.35}
.mobile-placement-live-actions{display:flex;gap:6px}.mobile-placement-live-actions button{min-height:44px;padding:0 12px;border:1px solid rgba(255,255,255,.14);border-radius:12px;background:rgba(255,255,255,.09);color:#fff;font:inherit;font-size:10px;font-weight:750;cursor:pointer}
.mobile-placement-live-actions .confirm{border:0;background:#70c686;color:#071109}
body.mobile-product-menu-open{overflow:hidden!important}
@media(hover:hover){.mobile-product-card:hover::before{transform:scale(1.025)}.mobile-product-card:hover,.mobile-placement-option:hover{border-color:rgba(134,211,153,.45)}}
@media(max-width:390px){.mobile-product-screen{padding-top:27px}.mobile-product-screen h1{font-size:35px}.mobile-product-card{min-height:260px}.mobile-product-card-course{min-height:190px}.mobile-placement-options{grid-template-columns:1fr}.mobile-placement-option{min-height:116px}.mobile-placement-fields{grid-template-columns:1fr}}
@media(max-height:520px) and (orientation:landscape){
  .mobile-product-menu-shell{width:min(900px,100%);padding-top:max(12px,env(safe-area-inset-top));padding-bottom:max(12px,env(safe-area-inset-bottom))}.mobile-product-screen{padding-top:16px}.mobile-product-home-grid{grid-template-columns:1.15fr .85fr;margin-top:15px}.mobile-product-card,.mobile-product-card-course{min-height:230px}.mobile-product-card-copy{padding:55px 16px 16px}.mobile-product-card-action{margin-top:10px}.mobile-product-lead,.mobile-product-footnote{display:none}.mobile-product-step-head{margin-bottom:12px}.mobile-product-step-head h1{font-size:30px}.mobile-placement-options{grid-template-columns:1fr 1fr}.mobile-placement-option{min-height:112px;display:grid;grid-template-columns:42px minmax(0,1fr);align-items:center}.mobile-placement-option-icon{width:42px;height:42px}.mobile-placement-config{padding:13px}.mobile-placement-angle-row{margin-top:7px}.mobile-placement-fields{margin-top:8px}.mobile-placement-summary,.mobile-placement-safety{margin-top:7px}.mobile-product-primary{min-height:50px;margin-top:9px}
  body.standalone-mobile .mobile-placement-live-card[data-visible="true"]{left:auto;width:min(430px,calc(100vw - 24px));bottom:max(12px,env(safe-area-inset-bottom))}
}
@media(prefers-reduced-motion:reduce){.mobile-product-card::before{transition:none}}

/* The bundled iPhone presentation. Keep camera pixels, canvas coordinates and
   measurement state in the shared runtime; these rules only style its controls. */
html.native-app {
  color-scheme: light;
  --bg: #f2f2f7;
  --panel: #fff;
  --ink: #1c1c1e;
  --muted: #636366;
  --line: #e5e5ea;
  --soft: #f2f2f7;
  --green: #247348;
  --green-2: #e8f3ec;
  --blue: #247348;
  --studio-bg: #f2f2f7;
  --studio-surface: #fff;
  --studio-surface-2: #f2f2f7;
  --studio-fill: #ededf0;
  --studio-line: #e5e5ea;
  --shadow: none;
  -webkit-text-size-adjust: 100%;
}
html.native-app body {
  background: #f2f2f7;
  font-size: 15px;
  line-height: 1.4;
}
/* No glass or live blur anywhere in the iPhone interface. Dimmed modal
   backdrops remain simple scrims; the controls themselves are opaque. */
html.native-app *, html.native-app *::before, html.native-app *::after {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
html.native-app :is(button, a, summary, input, select) { touch-action: manipulation; }
html.native-app :is(button, input, select) { font-family: inherit; }
html.native-app button { -webkit-tap-highlight-color: transparent; }
html.native-app button:not(:disabled):active { opacity: .7; transform: none; }
html.native-app :is(button, a, input, select, summary):focus-visible {
  outline: 3px solid #247348; outline-offset: 3px;
}
html.native-app body.standalone-mobile {
  --mobile-header-height: 52px;
  --mobile-status-height: 46px;
  --mobile-nav-height: 66px;
}
html.native-app body.standalone-mobile .hdr {
  background: #fff; border-bottom: 1px solid #e5e5ea;
  padding: 0 16px; grid-template-columns: 1fr auto;
}
html.native-app .hdr .brand-mark,
html.native-app body.standalone-mobile #top-camera-toggle { display: none; }
html.native-app body.standalone-mobile .brand-copy strong { font-size: 20px; font-weight: 700; letter-spacing: -.4px; }
html.native-app body.standalone-mobile .top-actions { gap: 8px; }
html.native-app body.standalone-mobile :is(.mobile-product-menu-toggle, .toolbar-icon) {
  background: #f2f2f7; color: #247348; border-radius: 12px; box-shadow: none;
}
html.native-app body.standalone-mobile .distance-readiness-banner {
  background: #fff7e8; font-size: 13px; font-weight: 600; box-shadow: none;
  border-bottom: 1px solid #f0e5cd;
}
html.native-app body.standalone-mobile .distance-readiness-banner[data-state="locked"] {
  background: #e8f3ec; border-color: #d9e9df; color: #22633f;
}
html.native-app .distance-readiness-banner::before { box-shadow: none !important; width: 8px !important; height: 8px !important; }

/* A compact, useful launch screen instead of a second marketing page. */
html.native-app .mobile-product-menu { background: #f2f2f7; color: #1c1c1e; }
html.native-app .mobile-product-menu::before { display: none; }
html.native-app .mobile-product-menu-shell {
  width: min(620px, 100%); padding: 12px 20px 28px;
}
html.native-app .mobile-product-menu-top { min-height: 44px; }
html.native-app .mobile-product-menu-brand { color: #636366; font-size: 13px; font-weight: 500; }
html.native-app .mobile-product-menu-brand .brand-mark,
html.native-app .mobile-product-menu-badge { display: none; }
html.native-app :is(.mobile-product-menu-close, .mobile-product-back) {
  min-width: 44px; min-height: 44px; border: 0; border-radius: 50%;
  background: #e5e5ea; color: #636366; font-size: 22px;
}
html.native-app .mobile-product-screen { padding: 12px 0 0; }
html.native-app .mobile-product-kicker { color: #247348; font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; }
html.native-app .mobile-product-screen h1 {
  margin-top: 5px; font-size: 34px; line-height: 1.08; letter-spacing: -.9px; font-weight: 700; color: #1c1c1e;
}
html.native-app .mobile-product-lead { margin-top: 10px; color: #636366; font-size: 15px; line-height: 1.45; }
html.native-app .mobile-product-home-grid { gap: 20px; margin-top: 24px; }
html.native-app .mobile-product-range-group { gap: 10px; }
html.native-app .mobile-product-card {
  min-height: 0; display: block; border: 0; border-radius: 20px;
  background: #fff; color: #1c1c1e; box-shadow: 0 2px 6px #00000008;
}
html.native-app .mobile-product-card::before {
  position: relative; display: block; height: 148px; transform: none; transition: none;
}
html.native-app .mobile-product-card::after { display: none; }
html.native-app .mobile-product-card-copy { padding: 18px; }
html.native-app .mobile-product-card-copy small { color: #247348; font-size: 12px; letter-spacing: 0; text-transform: none; font-weight: 600; }
html.native-app .mobile-product-card-copy strong { margin-top: 4px; font-size: 24px; letter-spacing: -.5px; font-weight: 700; }
html.native-app .mobile-product-card-copy > span { font-size: 13px; line-height: 1.4; color: #636366; }
html.native-app .mobile-product-card .mobile-product-card-action {
  min-height: 50px; margin-top: 18px; padding: 0 16px; border: 0; border-radius: 12px;
  background: #247348; color: #fff; font-size: 17px; font-weight: 600;
}
html.native-app .mobile-product-card-tag {
  top: 12px; right: 12px; border: 0; padding: 6px 10px; border-radius: 7px;
  background: #1c1c1e; color: #fff; font-size: 11px; font-weight: 600; letter-spacing: 0;
}
html.native-app .mobile-product-options {
  min-height: 50px; padding: 12px 16px; border: 0; border-radius: 12px;
  background: #fff; color: #247348; font-size: 15px; font-weight: 500;
}
html.native-app .mobile-product-card-course { display: grid; grid-template-columns: 80px minmax(0, 1fr); align-items: center; padding: 14px; gap: 14px; border-radius: 16px; }
html.native-app .mobile-product-card-course::before { height: 84px; border-radius: 10px; background-position: center; }
html.native-app .mobile-product-card-course .mobile-product-card-copy { padding: 0; }
html.native-app .mobile-product-card-course .mobile-product-card-copy strong { font-size: 17px; margin: 0; letter-spacing: -.2px; }
html.native-app .mobile-product-card-course .mobile-product-card-copy small,
html.native-app .mobile-product-card-course .mobile-product-card-tag { display: none; }
html.native-app .mobile-product-card-course .mobile-product-card-action {
  min-height: 0; margin-top: 6px; padding: 0; background: #fff; color: #247348; font-size: 13px;
}
html.native-app .mobile-product-footnote { margin: 16px 4px 0; font-size: 12px; color: #636366; }
html.native-app .mobile-product-start-status { background: #fff3dd; color: #7c5005; font-size: 14px; }

/* Placement is a list selection, with the selected row evident without color. */
html.native-app .mobile-product-step-head { margin-bottom: 22px; gap: 12px; }
html.native-app .mobile-product-step-head h1 { font-size: 28px; }
html.native-app .mobile-placement-options { grid-template-columns: 1fr; gap: 10px; }
html.native-app .mobile-placement-option {
  position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px;
  min-height: 100px; padding: 16px 38px 16px 14px; align-items: center;
  background: #fff; color: #1c1c1e; border: 2px solid transparent; border-radius: 16px;
}
html.native-app .mobile-placement-option.active { border-color: #247348; background: #f5faf7; box-shadow: none; }
html.native-app .mobile-placement-option.active::after { content: "✓"; position: absolute; right: 13px; top: 18px; font-size: 18px; font-weight: 700; color: #247348; }
html.native-app .mobile-placement-option-icon { width: 40px; height: 40px; border-radius: 11px; background: #e8f3ec; color: #247348; }
html.native-app .mobile-placement-option strong { font-size: 16px; font-weight: 600; }
html.native-app .mobile-placement-option small { color: #636366; font-size: 13px; line-height: 1.4; margin-top: 5px; }
html.native-app .mobile-placement-safety { color: #636366; font-size: 13px; line-height: 1.5; margin: 16px 4px; }
html.native-app .mobile-placement-config { background: #fff; border: 0; border-radius: 16px; color: #1c1c1e; }
html.native-app :is(.mobile-placement-summary, .mobile-placement-control-head, .mobile-placement-field) { color: #636366; font-size: 13px; }
html.native-app .mobile-placement-control-head output { color: #247348; }
html.native-app .mobile-placement-control-head span,
html.native-app .mobile-computer-step span { color: #636366; }
html.native-app .mobile-computer-step { background: #fff; border: 0; border-radius: 14px; }
html.native-app .mobile-computer-step::before { background: #e8f3ec; color: #247348; }
html.native-app .mobile-computer-step strong { font-size: 15px; }
html.native-app .mobile-computer-step span { font-size: 13px; }
html.native-app .mobile-placement-angle-step { background: #f2f2f7; color: #247348; border-color: #e5e5ea; min-width: 44px; min-height: 44px; }
html.native-app .mobile-placement-field input { background: #f2f2f7; color: #1c1c1e; border: 1px solid #e5e5ea; min-height: 44px; font-size: 16px; }
html.native-app :is(.mobile-product-primary, .standalone-camera-button) { min-height: 50px; border-radius: 12px; border: 0; background: #247348; color: #fff; font-size: 17px; font-weight: 600; box-shadow: none; }

/* Camera controls sit on an opaque dock. The complete preview stays contain. */
html.native-app body.standalone-mobile.camera-view-active .floating-bar {
  left: 12px; right: 12px; bottom: 12px; width: auto; min-width: 0;
  min-height: 64px; padding: 10px; border: 1px solid #38383a; border-radius: 16px;
  background: #1c1c1e; box-shadow: none; gap: 8px; transform: none; max-width: none;
}
html.native-app .floating-status { color: #f2f2f7; font-size: 13px; font-weight: 500; line-height: 1.35; white-space: normal; }
html.native-app .floating-actions { gap: 8px; flex-wrap: wrap; flex-shrink: 1; min-width: 0; }
html.native-app .glass-btn { min-height: 44px; padding: 0 14px; border-radius: 10px; background: #3a3a3c; color: #fff; font-size: 15px; font-weight: 600; }
html.native-app #float-rec-btn { background: #247348; }
html.native-app body.camera-view-active #float-rec-btn { display: inline-flex; align-items: center; justify-content: center; }
html.native-app #float-rec-btn:disabled { background: #3a3a3c; opacity: .6; }
html.native-app .glass-btn:not(:disabled):hover { background: #48484a; transform: none; }
html.native-app :is(.hud-badge, .rec-pill, #motion-ind, .ball-lock-tag) { background: #1c1c1e !important; border: 0; box-shadow: none; font-size: 12px; }
html.native-app #motion-ind { bottom: 94px !important; max-width: calc(100% - 28px); }
html.native-app body.standalone-mobile .mobile-placement-live-card[data-visible="true"] { background: #1c1c1e; border-color: #38383a; box-shadow: none; }
html.native-app .mobile-placement-live-actions button { background: #3a3a3c; font-size: 13px; }
html.native-app .mobile-placement-live-actions .confirm { background: #247348; color: #fff; }
html.native-app body.standalone-mobile .layout.mobile-connected ~ .mobile-standalone-nav {
  background: #fff; box-shadow: none; border-top: 1px solid #d8d8dc; gap: 0;
  padding-top: 4px;
}
html.native-app .mobile-standalone-nav button { min-height: 56px; border-radius: 0; font-size: 11px; font-weight: 500; gap: 4px; color: #636366; }
html.native-app .mobile-standalone-nav button svg { width: 24px; height: 24px; }
html.native-app .mobile-standalone-nav button.active { background: #fff; color: #247348; font-weight: 600; }

/* Inset grouped settings and calm result surfaces. */
html.native-app :is(.panel-col, .panel-section, .hero-metric, .mc, .stat-card, .summary-card, .hist-table, .hist-hdr, .diag-card) {
  background: #fff; box-shadow: none;
}
html.native-app body.standalone-mobile .layout.results-mode .panel-section { background: #fff; border: 0; border-radius: 18px; }
html.native-app .hero-value { font-variant-numeric: tabular-nums; letter-spacing: -2px; }
html.native-app .stat-value { font-variant-numeric: tabular-nums; }
html.native-app :is(.section-title, .mc-label, .stat-label, .summary-label) { font-size: 13px; }
html.native-app :is(.btn, .btn-ghost, .icon-btn, .select, .text-input, .sheet-done, .replay-play-button, .replay-speed button) { min-height: 44px; font-size: 15px; }
html.native-app :is(.bag-club, .club-filter button) { min-height: 44px; }
html.native-app input[type="range"] { min-height: 44px; }
html.native-app :is(.select, .text-input) { font-size: 16px; background: #f2f2f7; }
html.native-app .btn-p { background: #247348; border-color: #247348; box-shadow: none; }
html.native-app .btn-s { background: #e8f3ec; color: #247348; }
html.native-app .btn:not(:disabled):hover { transform: none; }
html.native-app body.standalone-mobile .settings-backdrop { background: #0006; align-items: flex-end; justify-content: center; }
html.native-app body.standalone-mobile .settings-sheet {
  width: min(620px, 100%); height: calc(100dvh - 12px); margin: 0; border: 0;
  border-radius: 22px 22px 0 0; background: #f2f2f7; box-shadow: none;
}
html.native-app .settings-head { flex: 0 0 auto; min-height: 64px; padding: 10px 20px; background: #f2f2f7; }
html.native-app .settings-title { font-size: 22px; font-weight: 700; }
html.native-app .sheet-done { min-width: 54px; background: #f2f2f7; color: #247348; font-weight: 600; }
html.native-app .settings-body { padding: 0 16px max(24px, env(safe-area-inset-bottom)); gap: 12px; }
html.native-app .settings-caption { padding: 8px 16px 0; font-size: 13px; font-weight: 500; }
html.native-app .settings-group-list { border: 0; border-radius: 14px; background: #fff; }
html.native-app .setting-group { background: #fff; padding: 16px; border-color: #e5e5ea; }
html.native-app .setting-label { font-size: 15px; font-weight: 500; }
html.native-app .seg { background: #ededf0; padding: 3px; gap: 2px; border-radius: 10px; }
html.native-app .seg button { min-height: 44px; padding: 5px 6px; font-size: 13px; border-radius: 8px; color: #636366; }
html.native-app .seg button.active { color: #1c1c1e; background: #fff; box-shadow: 0 1px 3px #0002; font-weight: 600; }
html.native-app .advanced-settings > summary { min-height: 50px; height: auto; font-size: 15px; padding: 12px 16px; }
html.native-app :is(.hint-line, .setting-note, .source-row, .source-path, .source-warning) { font-size: 13px; line-height: 1.45; }
html.native-app .replay-controls { background: #f2f2f7; border-color: #e5e5ea; box-shadow: none; }
html.native-app .replay-badge { background: #fff; box-shadow: none; }
html.native-app .standalone-recovery-guard { background: #f2f2f7; }
html.native-app .standalone-recovery-card { background: #fff; box-shadow: none; }
html.native-app #side-alignment-guide,
html.native-app #measurement-mode-mobile,
html.native-app [data-setting="analysis"],
html.native-app .complete-capture-check,
html.native-app #complete-capture-status,
html.native-app .collection-session-panel { display: none !important; }
html.native-app :is(.replay-speed button, .capture-feedback-actions button, .capture-feedback select, .bag-reset) { min-width: 44px; min-height: 44px; }
html.native-app summary { min-height: 44px; padding-block: 10px; box-sizing: border-box; }
html.native-app .hist-row { min-height: 56px; padding: 6px 8px; }
html.native-app .hist-select { min-height: 44px; }
html.native-app .hist-replay { min-width: 44px; min-height: 44px; border-radius: 10px; background: #e8f3ec; color: #247348; }
html.native-app .hist-hdr, html.native-app .hist-row { grid-template-columns: 38px minmax(36px,1fr) minmax(34px,1fr) minmax(38px,1fr) minmax(34px,1fr) 44px 44px; }
html.native-app .hist-table.hide-confidence .hist-hdr, html.native-app .hist-table.hide-confidence .hist-row { grid-template-columns: 38px minmax(36px,1fr) minmax(34px,1fr) minmax(38px,1fr) minmax(34px,1fr) 44px; }
html.native-app body.standalone-mobile .video-col { transition: none; }

@media (orientation: portrait) {
  html.native-app body.standalone-mobile.camera-view-active .floating-bar { flex-direction: column; align-items: stretch; }
  html.native-app .floating-actions { justify-content: flex-end; }
  html.native-app .floating-status { padding: 0 4px 2px; }
  html.native-app #motion-ind { bottom: 122px !important; }
  html.native-app body.debug-tools-visible #motion-ind { bottom: 180px !important; }
}
@media (orientation: landscape) {
  html.native-app .mobile-product-menu-shell { width: min(960px, 100%); padding: 12px 24px 24px; }
  html.native-app .mobile-product-menu-top { position: absolute; right: 24px; top: 12px; z-index: 2; }
  html.native-app .mobile-product-menu-brand { display: none; }
  html.native-app .mobile-product-screen { padding-right: 0; }
  html.native-app .mobile-product-screen h1 { padding-right: 48px; }
  html.native-app .mobile-product-screen { padding-top: 4px; }
  html.native-app .mobile-product-screen h1 { font-size: 28px; }
  html.native-app .mobile-product-home-grid { grid-template-columns: 1.5fr 1fr; gap: 20px; margin-top: 16px; align-items: start; }
  html.native-app .mobile-product-card-range { display: grid; grid-template-columns: minmax(100px, .65fr) minmax(0, 1fr); }
  html.native-app .mobile-product-card-range::before { height: 100%; min-height: 196px; }
  html.native-app .mobile-product-card-range .mobile-product-card-tag { display: none; }
  html.native-app .mobile-product-card-copy { padding: 16px; }
  html.native-app .mobile-product-card-copy strong { font-size: 21px; }
  html.native-app .mobile-product-card .mobile-product-card-action { margin-top: 12px; }
  html.native-app .mobile-product-options { min-height: 44px; padding: 10px 16px; }
  html.native-app .mobile-product-footnote { display: block; }
  html.native-app .mobile-placement-options { grid-template-columns: 1fr 1fr; }
  html.native-app body.standalone-mobile.camera-view-active .floating-bar {
    left: 50%; right: auto; transform: translateX(-50%); width: min(660px, calc(100% - 32px));
    bottom: max(10px, env(safe-area-inset-bottom));
  }
  html.native-app body.standalone-mobile .settings-sheet { width: min(620px, 100%); height: 100dvh; border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html.native-app *, html.native-app *::before, html.native-app *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* One edge-to-edge app surface. Insets protect controls, never add an outer
   white frame. These also apply after returning from either landscape side. */
html.native-app {
  --native-safe-top: env(safe-area-inset-top, 0px);
  --native-safe-bottom: env(safe-area-inset-bottom, 0px);
  --native-safe-left: env(safe-area-inset-left, 0px);
  --native-safe-right: env(safe-area-inset-right, 0px);
  background: #f2f2f7;
}
/* The native preview is behind WKWebView. Clearing body alone is insufficient:
   an opaque document root would still cover every camera pixel. */
html.native-app:has(body.native-camera-active.camera-view-active) { background: transparent; }
html.native-app body.standalone-mobile {
  --mobile-header-height: calc(52px + var(--native-safe-top));
  padding-bottom: calc(var(--mobile-nav-height) + var(--native-safe-bottom));
}
html.native-app body.standalone-mobile .hdr {
  padding: var(--native-safe-top) max(16px, var(--native-safe-right)) 0 max(16px, var(--native-safe-left));
  background: #f2f2f7;
}
html.native-app .mobile-product-menu-shell {
  padding: max(12px, var(--native-safe-top)) max(20px, var(--native-safe-right)) max(28px, var(--native-safe-bottom)) max(20px, var(--native-safe-left));
}
html.native-app .mobile-product-menu-top { gap: 10px; }
html.native-app .mobile-product-menu-brand { margin-right: auto; }
html.native-app .native-camera-settings-button {
  min-width: 44px; min-height: 44px; padding: 8px 14px; border: 0; border-radius: 12px;
  background: #e8f3ec; color: #247348; font: inherit; font-weight: 600;
}
html.native-app .setting-group .native-camera-settings-button { margin-top: 10px; }
html.native-app .floating-actions .native-camera-settings-button { background: #3a3a3c; color: #fff; }
html.native-app body.standalone-mobile .layout.mobile-connected ~ .mobile-standalone-nav,
html.native-app .mobile-standalone-nav button.active { background: #f2f2f7; }
html.native-app body.standalone-mobile .layout.mobile-connected ~ .mobile-standalone-nav {
  height: calc(var(--mobile-nav-height) + var(--native-safe-bottom));
  padding: 4px max(12px, var(--native-safe-right)) var(--native-safe-bottom) max(12px, var(--native-safe-left));
}
html.native-app body.standalone-mobile .layout.replay-mode {
  height: calc(var(--mobile-app-height) - var(--mobile-header-height) - var(--distance-ready-height, 0px) - var(--mobile-nav-height) - var(--native-safe-bottom));
}
html.native-app body.standalone-mobile .settings-sheet {
  height: 100dvh; margin: 0; padding-top: var(--native-safe-top); border-radius: 0;
}
html.native-app .settings-head,
html.native-app .settings-body { padding-left: max(20px, var(--native-safe-left)); padding-right: max(20px, var(--native-safe-right)); }
html.native-app .settings-body { padding-bottom: max(24px, var(--native-safe-bottom)); }
html.native-app body.standalone-mobile.camera-view-active {
  --mobile-header-height: 0px; --mobile-nav-height: 0px; --mobile-status-height: 0px;
  padding: 0; overflow: hidden; background: #000;
}
html.native-app body.standalone-mobile.camera-view-active .hdr,
html.native-app body.standalone-mobile.camera-view-active .distance-readiness-banner,
html.native-app body.standalone-mobile.camera-view-active .layout.mobile-connected ~ .mobile-standalone-nav { display: none !important; }
html.native-app body.standalone-mobile.camera-view-active .layout.mobile-connected:not(.results-mode):not(.replay-mode) {
  position: fixed; inset: 0; width: 100%; height: var(--mobile-app-height); min-height: 0; padding: 0; margin: 0; overflow: hidden;
}
html.native-app body.standalone-mobile.camera-view-active .layout.mobile-connected:not(.results-mode):not(.replay-mode) .video-col {
  width: 100%; height: 100%; min-width: 0; min-height: 0;
}
html.native-app body.camera-view-active .video-hud {
  top: max(12px, var(--native-safe-top)); left: max(14px, var(--native-safe-left)); z-index: 4;
  max-width: calc(100% - max(14px, var(--native-safe-left)) - max(14px, var(--native-safe-right)));
}
html.native-app body.camera-view-active .rec-pill { top: max(12px, var(--native-safe-top)); right: max(14px, var(--native-safe-right)); }
.native-report-button { display: none; }
html.native-app body.camera-view-active .native-report-button {
  display: block; position: absolute; z-index: 6;
  top: max(12px, var(--native-safe-top)); right: max(14px, var(--native-safe-right));
  min-height: 44px; padding: 8px 12px; border: 1px solid #38383a; border-radius: 12px;
  background: #1c1c1e; color: #fff; font: inherit; font-size: 13px; font-weight: 600;
}
html.native-app body.camera-view-active .rec-pill { top: calc(max(12px, var(--native-safe-top)) + 52px); }
html.native-app body.standalone-mobile.camera-view-active .floating-bar {
  left: max(12px, var(--native-safe-left)); right: max(12px, var(--native-safe-right));
  bottom: max(12px, var(--native-safe-bottom)); width: auto; transform: none;
}
html.native-app body.camera-view-active #motion-ind {
  left: max(14px, var(--native-safe-left)) !important;
  bottom: calc(138px + var(--native-safe-bottom)) !important;
}
@media (orientation: landscape) {
  html.native-app .mobile-product-menu-top { right: max(24px, var(--native-safe-right)); top: max(12px, var(--native-safe-top)); }
  html.native-app .mobile-product-screen h1 { padding-right: 152px; }
  html.native-app body.camera-view-active #motion-ind { bottom: calc(92px + var(--native-safe-bottom)) !important; }
}

/* The course occupies the iPhone viewport. Controls and score sit in an
   opaque sheet; the same layout works in portrait and landscape. */
html.native-app body.virtual-golf-active{height:100dvh!important;min-height:0!important;overflow:hidden!important;padding:0!important}
html.native-app body.virtual-golf-active .hdr,
html.native-app body.virtual-golf-active #companion-bar{display:none!important}
html.native-app body.virtual-golf-active #virtual-golf-shell:not([hidden]){position:fixed;inset:0;display:block!important;height:100dvh!important;min-height:0!important;max-height:100dvh!important;overflow:hidden!important}
html.native-app body.virtual-golf-active .vg-stage{position:absolute;inset:0;padding:0!important;height:100%!important;min-height:0!important;gap:0}
html.native-app body.virtual-golf-active .vg-stage-head,
html.native-app body.virtual-golf-active .vg-beta-note,
html.native-app body.virtual-golf-active .vg-theme-status,
html.native-app body.virtual-golf-active .vg-spatial-status,
html.native-app body.virtual-golf-active .vg-map-legend{display:none!important}
html.native-app body.virtual-golf-active .vg-canvas-card{width:100%;height:100%;border:0!important;border-radius:0!important;box-shadow:none!important}
html.native-app .vg-compact-toolbar{position:absolute;z-index:20;top:calc(var(--native-safe-top,env(safe-area-inset-top)) + 8px);left:max(10px,env(safe-area-inset-left));right:max(10px,env(safe-area-inset-right));display:flex;align-items:center;justify-content:space-between;gap:8px}
html.native-app :is(.vg-compact-toolbar,.vg-compact-dock,.vg-controls-heading) button{min-width:44px;min-height:44px;padding:8px 13px;border:0;border-radius:12px;background:#f2f2f7;color:#215c3d;font:600 14px -apple-system,BlinkMacSystemFont,sans-serif;box-shadow:0 2px 8px #0002}
html.native-app #vg-compact-status{max-width:42%;padding:7px 10px;border-radius:10px;background:#1b3027;color:#fff;font-size:12px;line-height:1.3;text-align:center}
html.native-app .vg-compact-dock{display:flex;position:absolute;z-index:20;bottom:calc(var(--native-safe-bottom,env(safe-area-inset-bottom)) + 10px);left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));justify-content:space-between;align-items:center;gap:12px;pointer-events:none}
html.native-app .vg-compact-dock>*{pointer-events:auto;background:#f2f2f7;color:#1c1c1e;border-radius:14px;box-shadow:0 2px 10px #0002}
html.native-app #vg-compact-club-slot{display:flex;align-items:center;gap:8px;padding:4px 10px;font-size:12px;font-weight:600;min-width:0}
html.native-app #vg-compact-club-slot select{min-height:44px;max-width:105px;padding:5px;border:0;background:#f2f2f7;font:600 16px -apple-system,BlinkMacSystemFont,sans-serif;color:#215c3d}
html.native-app .vg-compact-aim{display:flex;align-items:center;padding:4px;gap:3px;font-size:13px;font-weight:600}
html.native-app .vg-compact-aim button{box-shadow:none;padding:8px 10px}
html.native-app body.virtual-golf-active .vg-map-hud-top{top:calc(var(--native-safe-top,env(safe-area-inset-top)) + 66px);left:max(12px,env(safe-area-inset-left));background:#1b3027}
html.native-app body.virtual-golf-active .vg-map-hud-bottom{bottom:calc(var(--native-safe-bottom,env(safe-area-inset-bottom)) + 134px);left:max(12px,env(safe-area-inset-left));background:#1b3027}
html.native-app body.virtual-golf-active .vg-3d-camera-controls{bottom:calc(var(--native-safe-bottom,env(safe-area-inset-bottom)) + 74px);background:#1b3027}
html.native-app body.virtual-golf-active .vg-shot-callout{top:calc(var(--native-safe-top,env(safe-area-inset-top)) + 110px);background:#1b3027}
html.native-app body.virtual-golf-active .vg-flight-hud{top:calc(var(--native-safe-top,env(safe-area-inset-top)) + 154px);right:12px;background:#1b3027}
html.native-app body.virtual-golf-active .vg-sidebar{display:none;position:absolute!important;z-index:40;top:auto!important;bottom:0!important;left:0!important;right:0!important;width:100%!important;box-sizing:border-box;max-height:75dvh!important;overflow:auto!important;padding:16px max(16px,env(safe-area-inset-right)) calc(16px + var(--native-safe-bottom,env(safe-area-inset-bottom))) max(16px,env(safe-area-inset-left));border:0;border-radius:24px 24px 0 0!important;background:#f2f2f7!important;color:#1c1c1e}
html.native-app .vg-controls-heading{display:flex;align-items:center;justify-content:space-between;padding:0 2px 12px;font-size:18px}
html.native-app body.vg-controls-open .vg-sidebar{display:block}
html.native-app body.vg-controls-open .vg-controls-scrim{display:block;position:absolute;z-index:35;inset:0;border:0;background:#0005;width:100%;height:100%}
html.native-app .vg-sidebar>section{margin-bottom:12px;background:#fff!important;border-radius:16px!important;box-shadow:none!important}
html.native-app .vg-sidebar .vg-stage-actions{display:flex;flex-wrap:wrap;margin-top:14px}
html.native-app #vg-input-card .vg-control-group[hidden]{display:none!important}
html.native-app body.companion-session #vg-input-help{display:none}
html.native-app body.virtual-golf-active .vg-hole-dialog{inset:0;z-index:60;background:#0006}
html.native-app body.virtual-golf-active .vg-hole-dialog-card{background:#f2f2f7;color:#1c1c1e;box-shadow:none}
html.native-app body.virtual-golf-active .vg-hole-dialog-card h2{color:#1c1c1e}
@media(orientation:landscape){
  html.native-app .vg-compact-dock{left:auto;width:350px}
  html.native-app body.virtual-golf-active .vg-map-hud-bottom{bottom:calc(var(--native-safe-bottom,env(safe-area-inset-bottom)) + 68px)}
  html.native-app body.virtual-golf-active .vg-3d-camera-controls{bottom:calc(var(--native-safe-bottom,env(safe-area-inset-bottom)) + 10px);right:auto;left:max(12px,env(safe-area-inset-left));margin:0}
  html.native-app body.virtual-golf-active .vg-sidebar{left:auto!important;width:min(460px,90vw)!important;max-height:90dvh!important}
}

