:root {
  --ink: #173d2e;
  --charcoal: #2b2f32;
  --deep: #173d2e;
  --deep-2: #13372b;
  --green: #1e4b34;
  --green-2: #376b50;
  --accent: #c7b55f;
  --accent-ink: #173d2e;
  --copper: #c47f50;
  --sky: #3ea0da;
  --cream: #f2f1ec;
  --paper: #fffdf8;
  --line: #d7d9d4;
  --strong-line: #173d2e;
  --muted: #66716c;
  --danger: #9c3028;
  --danger-soft: #fff0ed;
  --danger-surface: #fff4f2;
  --input-surface: #fff;
  --floating-surface: rgba(255,255,255,.9);
  --panel-translucent: rgba(255,255,255,.55);
  --warning-bg: #fff1bc;
  --warning-border: #ead889;
  --warning-text: #5e4b0b;
  --drop-line: #aeb9b3;
  --success-soft: #eff7d8;
  --shadow: 0 18px 60px rgba(23, 61, 46, .13);
  --serif: Iowan Old Style, Baskerville, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ink: #e6ece8;
    --charcoal: #cbd4ce;
    --deep: #0a241b;
    --deep-2: #103126;
    --green: #8fbea1;
    --green-2: #79ad8c;
    --accent: #d0bd65;
    --accent-ink: #122d22;
    --copper: #df9666;
    --cream: #1b2521;
    --paper: #111814;
    --line: #35433d;
    --strong-line: #607068;
    --muted: #9eaaa4;
    --danger: #e5847c;
    --danger-soft: #311f1d;
    --danger-surface: #2a1d1b;
    --input-surface: #1a2420;
    --floating-surface: rgba(20,31,26,.92);
    --panel-translucent: rgba(24,34,30,.82);
    --warning-bg: #3a3219;
    --warning-border: #665725;
    --warning-text: #ead98e;
    --drop-line: #52635b;
    --success-soft: #1f3325;
    --shadow: 0 18px 60px rgba(0, 0, 0, .34);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body::selection { background: var(--accent); color: var(--accent-ink); }
img, video { display: block; width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
button { color: inherit; }
main { min-height: 75vh; }
.page-wrap { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; overflow: hidden; }

.eyebrow { display: block; color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .17em; line-height: 1.2; text-transform: uppercase; }
.eyebrow.light { color: var(--accent); }
.eyebrow.danger { color: var(--danger); }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { letter-spacing: -.045em; }
h1 em, h2 em { color: var(--green-2); font-family: var(--serif); font-weight: 400; }

.site-header { align-items: center; background: var(--paper); display: flex; height: 100px; justify-content: space-between; padding: 0 max(32px, calc((100% - 1180px)/2)); position: relative; z-index: 20; }
.brand { align-items: center; display: inline-flex; gap: 10px; text-decoration: none; }
.header-brand { flex: 0 0 auto; width: min(210px, 24vw); }
.header-brand-picture, .header-brand-lockup { display: block; width: 100%; }
.header-brand-lockup { height: auto; }
.brand-mark { border-radius: 9px; box-shadow: 0 4px 12px rgba(23,61,46,.16); flex: 0 0 34px; height: 34px; object-fit: cover; width: 34px; }
.brand-name { display: flex; flex-direction: column; line-height: .86; text-transform: uppercase; }
.brand-name strong { font-size: 17px; font-weight: 850; letter-spacing: .09em; }
.brand-name small { color: var(--copper); font-size: 8px; font-weight: 850; letter-spacing: .38em; margin-top: 5px; padding-left: 2px; }
.header-actions { align-items: center; display: flex; gap: 24px; }
.nav-link { background: transparent; border: 0; color: var(--ink); cursor: pointer; font-size: 13px; font-weight: 700; padding: 7px 0; text-decoration: none; }
.button-reset { appearance: none; }
.logout-form { display: flex; }
.shared-notice { align-items: center; background: var(--deep); color: rgba(255,255,255,.78); display: flex; font-size: 11px; gap: 9px; justify-content: center; letter-spacing: .02em; min-height: 31px; padding: 7px 20px; text-align: center; }
.notice-dot { background: var(--accent); border-radius: 50%; height: 6px; width: 6px; }
.demo-notice { background: var(--warning-bg); border-bottom: 1px solid var(--warning-border); color: var(--warning-text); font-size: 12px; padding: 8px 20px; text-align: center; }

.button { align-items: center; appearance: none; border: 1px solid transparent; border-radius: 999px; cursor: pointer; display: inline-flex; font-size: 13px; font-weight: 800; gap: 16px; justify-content: center; line-height: 1; min-height: 47px; padding: 0 24px; text-decoration: none; transition: transform .2s ease, background .2s ease, color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-small { min-height: 38px; padding-inline: 18px; }
.button-large { min-height: 58px; padding-inline: 30px; }
.button-accent { background: var(--accent); border-color: var(--deep); color: var(--accent-ink); box-shadow: 3px 3px 0 var(--deep); }
.button-dark { background: var(--deep); color: white; }
.button-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.button-danger { background: var(--danger); color: #fff; }
.text-link { font-size: 13px; font-weight: 800; text-underline-offset: 5px; }
.back-link { color: var(--muted); display: inline-block; font-size: 12px; font-weight: 750; text-decoration: none; }
.text-button { appearance: none; background: none; border: 0; cursor: pointer; font-size: 12px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

/* Login */
.login-body { background: var(--cream); }
.login-shell { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(400px, .9fr); min-height: 100vh; }
.login-art { background: var(--deep); color: white; display: grid; grid-template-rows: minmax(260px, 42vh) 1fr; min-height: 100vh; overflow: hidden; position: relative; }
.login-art::before { background-image: radial-gradient(rgba(199,181,95,.22) .75px, transparent .75px); background-size: 11px 11px; bottom: 0; content: ""; height: 58%; left: 0; opacity: .35; position: absolute; right: 0; }
.login-landscape { height: 100%; object-fit: cover; position: relative; z-index: 1; }
.login-art-copy { max-width: 680px; padding: clamp(42px, 5vw, 74px) clamp(50px, 7vw, 100px) 120px; position: relative; z-index: 2; }
.login-art h1 { font-size: clamp(42px, 4.4vw, 64px); font-weight: 720; line-height: .9; margin: 28px 0 24px; }
.login-art h1 em { color: var(--accent); }
.login-art-copy > p { color: rgba(255,255,255,.62); font-size: 15px; line-height: 1.7; max-width: 440px; }
.swing-arc { border: 1px solid rgba(199,181,95,.38); border-bottom-color: transparent; border-left-color: transparent; border-radius: 50%; bottom: -25vw; height: 52vw; max-height: 730px; max-width: 730px; position: absolute; right: -8vw; transform: rotate(-24deg); width: 52vw; }
.swing-arc::after, .swing-arc::before { border: inherit; border-radius: 50%; content: ""; inset: 10%; position: absolute; }
.swing-arc::after { inset: 21%; }
.swing-arc span { background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 13px rgba(199,181,95,.12); height: 15px; left: 14%; position: absolute; top: 12%; width: 15px; }
.login-stat { align-items: baseline; bottom: 48px; display: flex; gap: 12px; left: clamp(50px, 7vw, 100px); position: absolute; z-index: 3; }
.login-stat strong { color: var(--accent); font-family: var(--serif); font-size: 62px; font-weight: 400; line-height: 1; }
.login-stat span { color: rgba(255,255,255,.55); font-size: 10px; font-weight: 750; letter-spacing: .1em; line-height: 1.3; text-transform: uppercase; }
.login-panel { align-items: center; background: var(--paper); display: flex; justify-content: center; padding: clamp(36px, 5vw, 72px); position: relative; }
.login-form-wrap { display: flex; flex-direction: column; gap: clamp(34px, 4.8vh, 52px); max-width: 470px; width: 100%; }
@media (prefers-color-scheme: dark) {
  .header-brand-lockup { mix-blend-mode: screen; }
}
.login-panel h2 { font-size: clamp(38px, 3.6vw, 52px); line-height: .96; margin: 15px 0 16px; }
.lede-small { color: var(--muted); font-size: 14px; line-height: 1.6; }
.pin-form label { display: block; font-size: 11px; font-weight: 800; letter-spacing: .08em; margin-bottom: 9px; text-transform: uppercase; }
.pin-row { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr) auto; }
.pin-row input { background: var(--cream); border: 1px solid var(--line); border-radius: 2px; min-width: 0; outline: 0; padding: 0 16px; }
.pin-row input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(25,77,58,.12); }
.field-help { color: var(--muted); font-size: 11px; margin: 10px 0 0; }
.form-error { color: var(--danger); font-size: 12px; font-weight: 700; line-height: 1.45; margin: 10px 0 0; }
.privacy-card { align-items: flex-start; border-top: 1px solid var(--line); display: flex; gap: 14px; padding-top: 22px; }
.privacy-icon { border: 1px solid var(--line); border-radius: 50%; display: grid; flex: 0 0 32px; height: 32px; place-items: center; }
.privacy-card p { color: var(--muted); font-size: 11px; line-height: 1.6; margin: 0; }
.privacy-card strong { color: var(--ink); }

/* Gallery */
.gallery-hero { align-items: end; column-gap: 48px; display: grid; grid-template-areas: "heading intro" "brand brand"; grid-template-columns: minmax(0, 1fr) minmax(300px, 390px); padding-block: 56px 52px; row-gap: 32px; }
.gallery-heading { grid-area: heading; }
.gallery-hero h1 { font-size: clamp(46px, 5vw, 68px); font-weight: 760; line-height: .9; margin: 16px 0 0; }
.gallery-intro { border-top: 1px solid var(--line); grid-area: intro; padding-top: 20px; }
.gallery-brand-image { border-radius: 8px; box-shadow: 0 10px 28px rgba(7, 45, 32, .08); grid-area: brand; margin: 0; overflow: hidden; }
.gallery-brand-image img { aspect-ratio: 3.07 / 1; object-fit: cover; }
.gallery-intro p { color: var(--muted); font-family: var(--serif); font-size: 18px; line-height: 1.5; margin-bottom: 18px; }
.gallery-section { padding-bottom: 80px; }
.section-toolbar { align-items: end; border-bottom: 1px solid var(--strong-line); display: flex; justify-content: space-between; margin-bottom: 26px; padding-bottom: 15px; }
.section-toolbar h2 { font-size: 26px; margin: 8px 0 0; }
.filter-field { align-items: center; border-bottom: 1px solid var(--line); display: flex; gap: 8px; min-width: 230px; padding: 8px 0; }
.filter-field svg { fill: none; height: 16px; stroke: var(--muted); stroke-width: 1.7; width: 16px; }
.filter-field input { background: transparent; border: 0; color: var(--ink); min-width: 0; outline: 0; width: 100%; }
.swing-grid { display: grid; gap: 36px 22px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.swing-card { min-width: 0; position: relative; }
.card-link { inset: 0; position: absolute; z-index: 4; }
.card-media { aspect-ratio: 4 / 3; background: var(--cream); overflow: hidden; position: relative; }
.card-media::before { background: linear-gradient(135deg, rgba(234,223,171,.08), rgba(16,47,37,.12)); content: ""; inset: 0; mix-blend-mode: soft-light; pointer-events: none; position: absolute; z-index: 1; }
.card-media::after { background: linear-gradient(180deg, transparent 50%, rgba(5,24,18,.25)); content: ""; inset: 0; pointer-events: none; position: absolute; z-index: 1; }
.card-media img { height: 100%; object-fit: cover; transition: transform .5s ease; }
.swing-card:hover .card-media img { transform: scale(1.035); }
.image-placeholder { align-items: center; background: linear-gradient(135deg, var(--deep-2), var(--deep)); display: flex; height: 100%; justify-content: center; }
.image-placeholder span { background: url('/static/brand/bolder-swing-mark.png') center / cover; border-radius: 24px; box-shadow: 0 12px 38px rgba(0,0,0,.24); color: transparent; height: 112px; overflow: hidden; width: 118px; }
.score-badge { align-items: center; background: linear-gradient(145deg, hsl(var(--score-hue, 55deg) 50% 64%), hsl(var(--score-hue, 55deg) 44% 51%)); border: 1px solid hsl(var(--score-hue, 55deg) 42% 18%); bottom: 15px; box-shadow: 0 9px 24px hsl(var(--score-hue, 55deg) 40% 10% / .18); color: var(--accent-ink); display: flex; flex-direction: column; justify-content: center; left: 15px; min-height: 91px; min-width: 100px; padding: 12px; position: absolute; z-index: 2; }
.score-badge strong { font-size: 37px; letter-spacing: -.07em; line-height: .95; }
.score-badge span { font-size: 8px; font-weight: 900; letter-spacing: .09em; margin-top: 6px; text-transform: uppercase; }
.status-badge { align-items: center; bottom: 16px; display: flex; font-size: 10px; font-weight: 850; gap: 7px; left: 16px; letter-spacing: .07em; padding: 10px 13px; position: absolute; text-transform: uppercase; z-index: 2; }
.status-working { background: var(--accent); color: var(--accent-ink); }
.status-failed { background: var(--input-surface); color: var(--danger); }
.status-failed span { background: var(--danger); border-radius: 50%; color: white; display: grid; height: 17px; place-items: center; width: 17px; }
.spinner-mini { animation: spin 1s linear infinite; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; height: 14px; width: 14px; }
@keyframes spin { to { transform: rotate(360deg); } }
.card-open { display: none; }
.card-body { align-items: start; border-bottom: 1px solid var(--line); display: flex; gap: 12px; justify-content: space-between; padding: 16px 1px 17px; }
.card-body h3 { font-size: 18px; letter-spacing: -.03em; margin: 0 0 5px; }
.card-body p { color: var(--muted); font-family: var(--serif); font-size: 14px; margin: 0; }
.card-body time { color: var(--muted); font-size: 10px; font-weight: 750; padding-top: 3px; white-space: nowrap; }
.card-fail-reason { color: var(--danger); font-size: 11px; line-height: 1.45; margin: 9px 0 0; }
.filter-empty { color: var(--muted); padding: 40px 0; text-align: center; }
.empty-state { align-items: center; background: linear-gradient(180deg, var(--paper), var(--cream)); border: 1px solid var(--line); display: flex; flex-direction: column; padding: 80px 24px; text-align: center; }
.empty-graphic { border-radius: 24px; box-shadow: var(--shadow); height: 112px; margin-bottom: 30px; object-fit: cover; width: 118px; }
.empty-state h2 { font-size: 42px; margin: 13px 0; }
.empty-state p { color: var(--muted); font-family: var(--serif); font-size: 17px; line-height: 1.5; max-width: 500px; }
.empty-state .button { margin-top: 14px; }

/* Upload */
.upload-page { display: grid; gap: 9vw; grid-template-columns: minmax(300px, .78fr) minmax(0, 1.22fr); padding-block: 64px 110px; }
.upload-heading { position: sticky; top: 35px; align-self: start; }
.upload-heading .back-link { margin-bottom: 60px; }
.upload-heading h1 { font-size: clamp(58px, 6.5vw, 92px); line-height: .86; margin: 23px 0 28px; }
.upload-heading > p { color: var(--muted); font-family: var(--serif); font-size: 18px; line-height: 1.5; max-width: 450px; }
.upload-tips { border-top: 1px solid var(--line); margin-top: 48px; max-width: 450px; }
.upload-tips > div { align-items: start; border-bottom: 1px solid var(--line); display: grid; gap: 18px; grid-template-columns: 30px 1fr; padding: 17px 0; }
.upload-tips span { color: var(--green); font-family: var(--serif); font-size: 13px; }
.upload-tips p { color: var(--muted); font-size: 11px; line-height: 1.6; margin: 0; }
.upload-tips strong { color: var(--ink); }
.upload-form { border-top: 1px solid var(--strong-line); }
.form-step { display: grid; gap: 22px; grid-template-columns: 48px 1fr; padding: 38px 0 54px; border-bottom: 1px solid var(--line); }
.step-number { color: var(--green); font-family: var(--serif); font-size: 14px; }
.step-title { display: block; font-size: 23px; font-weight: 800; letter-spacing: -.03em; margin-bottom: 23px; }
.dropzone { background: var(--cream); border: 1px dashed var(--drop-line); min-height: 290px; overflow: hidden; position: relative; }
.dropzone.dragging { background: var(--success-soft); border-color: var(--green); }
.dropzone > input { inset: 0; opacity: 0; pointer-events: none; position: absolute; }
.dropzone-idle { align-items: center; display: flex; flex-direction: column; inset: 0; justify-content: center; padding: 35px; position: absolute; text-align: center; }
.dropzone-idle[hidden] { display: none; }
.upload-icon { border: 1px solid var(--strong-line); border-radius: 50%; display: grid; font-size: 24px; height: 53px; margin-bottom: 17px; place-items: center; width: 53px; }
.dropzone-idle strong { font-size: 17px; }
.dropzone-idle > span:not(.upload-icon) { color: var(--muted); font-family: var(--serif); font-size: 13px; margin: 5px 0 20px; }
.file-selected { align-items: center; display: flex; gap: 17px; inset: 0; padding: 32px; position: absolute; }
.file-selected[hidden] { display: none; }
.file-icon { background: var(--deep); border-radius: 50%; color: var(--accent); display: grid; flex: 0 0 55px; height: 55px; place-items: center; }
.file-selected > div { display: flex; flex: 1; flex-direction: column; gap: 6px; min-width: 0; }
.file-selected strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-selected span { color: var(--muted); font-size: 11px; }
.field-grid { display: grid; gap: 23px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > span { font-size: 10px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.field input { background: transparent; border: 0; border-bottom: 1px solid var(--strong-line); border-radius: 0; color: var(--ink); font-size: 16px; outline: 0; padding: 11px 0 13px; }
.field input:focus { border-bottom-color: var(--green-2); box-shadow: 0 1px 0 var(--green-2); }
.field small { color: var(--muted); font-size: 10px; line-height: 1.4; }
.upload-submit { padding: 36px 0 0 70px; }
.submit-note { color: var(--muted); font-size: 10px; line-height: 1.5; margin: 17px 0 0; }
.submit-note span { color: var(--green); margin-right: 5px; }
.upload-error { background: var(--danger-soft); border-left: 3px solid var(--danger); margin: 0 0 18px; padding: 13px 15px; }
.progress-wrap { margin-bottom: 27px; }
.progress-copy { display: flex; font-size: 12px; font-weight: 800; justify-content: space-between; }
.progress-track { background: var(--line); height: 6px; margin-top: 10px; overflow: hidden; }
.progress-track span { background: var(--green); display: block; height: 100%; transition: width .2s ease; width: 0; }
.progress-wrap p { color: var(--muted); font-size: 10px; margin: 8px 0 0; }

/* Report */
.detail-body { background: var(--paper); }
.report-topbar { align-items: center; display: flex; justify-content: space-between; min-height: 74px; }
.report-actions { display: none; }
.report-hero { align-items: center; border-bottom: 1px solid var(--strong-line); border-top: 1px solid var(--strong-line); display: grid; grid-template-columns: .8fr 1.2fr; min-height: 535px; }
.report-score-block { align-items: center; align-self: stretch; background: var(--accent); border-right: 1px solid var(--strong-line); display: flex; justify-content: center; margin-left: calc((1180px - 100vw)/2); padding-left: max(0px, calc((100vw - 1180px)/2)); }
.score-giant { align-items: center; display: flex; flex-direction: column; padding: 40px; }
.score-giant strong { font-size: clamp(104px, 13vw, 186px); letter-spacing: -.1em; line-height: .73; }
.score-giant sup { font-size: .3em; letter-spacing: 0; margin-left: 5px; top: -1.65em; }
.score-giant span { font-size: 10px; font-weight: 900; letter-spacing: .14em; margin-top: 35px; text-transform: uppercase; }
.score-giant small { color: var(--green); font-family: var(--serif); font-size: 13px; margin-top: 7px; }
.report-intro { padding: 60px 7vw; }
.report-intro h1 { font-size: clamp(55px, 7vw, 96px); line-height: .85; margin: 23px 0 15px; }
.report-location { color: var(--green); font-family: var(--serif); font-size: 20px; font-style: italic; }
.report-summary { color: var(--muted); font-family: var(--serif); font-size: clamp(17px, 1.5vw, 21px); line-height: 1.52; margin: 40px 0 0; max-width: 650px; }
.category-strip { border-bottom: 1px solid var(--strong-line); display: grid; grid-template-columns: repeat(4, 1fr); }
.category-score { border-right: 1px solid var(--line); padding: 24px 24px 25px; }
.category-score:last-child { border-right: 0; }
.category-score > span { display: block; font-size: 9px; font-weight: 850; letter-spacing: .11em; min-height: 22px; text-transform: uppercase; }
.category-score strong { display: block; font-size: 29px; letter-spacing: -.06em; margin: 5px 0 11px; }
.category-score small { color: var(--muted); font-family: var(--serif); font-size: 10px; }
.mini-meter { background: var(--line); height: 3px; margin-bottom: 7px; }
.mini-meter i { background: var(--green); display: block; height: 100%; }
.report-section { padding-block: 105px; }
.section-heading { align-items: end; display: grid; gap: 70px; grid-template-columns: 1.35fr .65fr; margin-bottom: 45px; }
.section-heading h2 { font-size: clamp(42px, 5vw, 68px); line-height: .92; margin: 14px 0 0; }
.section-heading > p { color: var(--muted); font-family: var(--serif); font-size: 15px; line-height: 1.55; margin: 0; }
.report-video { background: var(--deep); max-height: 680px; overflow: hidden; position: relative; }
.report-video video { aspect-ratio: 16 / 9; max-height: 680px; object-fit: contain; }
.video-corner { background: var(--accent); bottom: 12px; font-size: 9px; font-weight: 900; letter-spacing: .1em; padding: 9px 12px; position: absolute; right: 12px; text-transform: uppercase; }
.coaching-readout { display: grid; grid-template-columns: 1fr 1fr; padding-block: 0 105px; }
.readout-panel { padding: 65px; }
.readout-panel h2 { font-size: 43px; margin: 13px 0 35px; }
.strengths-panel { background: var(--cream); }
.priorities-panel { background: var(--deep); color: #fff; }
.readout-panel ol { list-style: none; margin: 0; padding: 0; }
.readout-panel li { align-items: start; border-top: 1px solid rgba(103,117,111,.35); display: grid; gap: 20px; grid-template-columns: 32px 1fr; padding: 20px 0; }
.readout-panel li span { color: var(--green-2); font-family: var(--serif); font-size: 13px; }
.priorities-panel li { border-top-color: rgba(255,255,255,.16); }
.priorities-panel li span { color: var(--accent); }
.readout-panel li p { font-size: 15px; line-height: 1.55; margin: 0; }
.positions-section { border-top: 1px solid var(--strong-line); }
.position-grid { display: grid; gap: 62px 22px; grid-template-columns: 1fr 1fr; }
.position-card { margin: 0; }
.position-image { align-items: center; background: var(--deep); display: flex; justify-content: center; overflow: hidden; position: relative; }
.position-image img { height: auto; object-fit: contain; }
.position-image > span { background: var(--accent); bottom: 0; display: grid; font-family: var(--serif); font-size: 16px; height: 45px; left: 0; place-items: center; position: absolute; width: 45px; }
.position-card figcaption { border-bottom: 1px solid var(--line); padding: 17px 0; }
.position-card h3 { font-size: 24px; letter-spacing: -.03em; margin: 8px 0 0; }
.scorecard-section { border-top: 1px solid var(--strong-line); }
.score-group { border-top: 1px solid var(--strong-line); }
.score-group > header { align-items: center; background: var(--cream); display: flex; justify-content: space-between; padding: 16px 20px; }
.score-group > header h3 { font-size: 14px; margin: 0; text-transform: uppercase; letter-spacing: .08em; }
.score-group > header strong { color: var(--green); font-family: var(--serif); font-size: 14px; }
.score-row { align-items: center; border-bottom: 1px solid var(--line); display: grid; gap: 30px; grid-template-columns: minmax(145px, .95fr) minmax(0, 1.75fr) minmax(95px, auto); padding: 19px 20px; }
.score-label strong { display: block; font-size: 17px; line-height: 1.25; }
.score-row > p { color: var(--muted); font-family: var(--serif); font-size: 13px; line-height: 1.5; margin: 0; }
.score-result { align-items: flex-end; display: flex; flex-direction: column; gap: 8px; min-width: 95px; }
.row-score { align-items: baseline; display: inline-flex; font-size: 28px; font-weight: 850; gap: 3px; justify-content: flex-end; letter-spacing: -.04em; text-align: right; white-space: nowrap; }
.row-score small { color: var(--muted); flex: 0 0 auto; font-size: 10px; letter-spacing: 0; }
.stars { color: var(--line); display: inline-block; font-size: 12px; letter-spacing: 2px; line-height: 1; position: relative; }
.stars i { font-style: normal; }
.stars span { color: var(--green); left: 0; overflow: hidden; position: absolute; top: 0; white-space: nowrap; }
.drills-section { background: var(--deep); color: white; padding-block: 105px 115px; }
.light-heading h2 { color: white; }
.light-heading > p { color: rgba(255,255,255,.58); }
.drill-grid { display: grid; gap: 17px; grid-template-columns: repeat(3, 1fr); }
.drill-card { background: var(--deep-2); border: 1px solid rgba(255,255,255,.13); display: flex; flex-direction: column; min-height: 450px; padding: 30px; }
.drill-number { color: var(--accent); font-family: var(--serif); font-size: 14px; }
.drill-goal { color: rgba(255,255,255,.55); font-size: 9px; font-weight: 800; letter-spacing: .1em; margin: 35px 0 8px; text-transform: uppercase; }
.drill-card h3 { font-size: 26px; letter-spacing: -.04em; line-height: 1; margin: 0 0 28px; }
.drill-card ol { color: rgba(255,255,255,.77); margin: 0; padding-left: 20px; }
.drill-card li { font-family: var(--serif); font-size: 13px; line-height: 1.5; margin-bottom: 9px; padding-left: 5px; }
.drill-cue { border-top: 1px solid rgba(255,255,255,.13); display: flex; flex-direction: column; gap: 7px; margin-top: auto; padding-top: 20px; }
.drill-cue span { color: var(--accent); font-size: 8px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.drill-cue strong { font-family: var(--serif); font-size: 16px; font-style: italic; font-weight: 400; }
.report-closing { align-items: center; display: flex; flex-direction: column; padding-block: 120px 90px; text-align: center; }
.report-closing h2 { font-size: clamp(52px, 7vw, 92px); line-height: .86; margin: 25px 0 38px; }
.report-closing > p { color: var(--muted); font-size: 9px; line-height: 1.5; margin: 43px 0 0; max-width: 580px; }

/* Classical report dashboard */
.detail-body { background: var(--paper); }
.report-wide { margin-inline: auto; width: min(1520px, calc(100% - 64px)); }
.report-topbar { border-bottom: 1px solid var(--line); min-height: 66px; }
.report-actions { gap: 10px; }
.report-actions .button { border-radius: 4px; gap: 9px; min-height: 40px; }
.report-actions .button:hover { transform: none; }
.report-dashboard { align-items: start; border-bottom: 1px solid var(--line); display: grid; grid-template-areas: "nav main score"; grid-template-columns: minmax(190px, 250px) minmax(470px, 1fr) minmax(280px, 380px); }
.report-section-nav { align-self: start; border: 1px solid var(--line); grid-area: nav; margin: 24px 24px 24px 0; position: sticky; top: 18px; }
.report-section-nav a { align-items: center; background: var(--panel-translucent); border-bottom: 1px solid var(--line); display: flex; font-size: 13px; font-weight: 700; gap: 14px; min-height: 74px; padding: 14px 20px; text-decoration: none; transition: background .18s ease, color .18s ease; }
.report-section-nav a:last-child { border-bottom: 0; }
.report-section-nav a:hover { background: var(--cream); }
.report-section-nav a.is-active { background: var(--deep); box-shadow: inset 4px 0 var(--accent); color: #fff; }
.report-section-nav a span { color: currentColor; display: grid; font-family: var(--serif); font-size: 24px; height: 28px; place-items: center; width: 28px; }
.report-dashboard-main { border-inline: 1px solid var(--line); grid-area: main; min-width: 0; padding: 35px 30px 28px; }
.dashboard-intro { scroll-margin-top: 20px; }
.dashboard-intro h1 { font-family: var(--serif); font-size: clamp(39px, 3.4vw, 54px); font-weight: 500; letter-spacing: -.035em; line-height: 1; margin: 10px 0 7px; }
.report-meta { align-items: center; color: var(--charcoal); display: flex; flex-wrap: wrap; font-family: var(--serif); font-size: 16px; gap: 10px; margin: 0; }
.report-meta i { background: var(--accent); border-radius: 50%; display: inline-block; height: 5px; width: 5px; }
.dashboard-intro .report-summary { color: var(--muted); font-family: var(--serif); font-size: 16px; line-height: 1.55; margin: 20px 0 0; max-width: 760px; }
.dashboard-video { margin-top: 20px; scroll-margin-top: 20px; }
.dashboard-video .report-video { border-radius: 5px; max-height: 570px; }
.dashboard-video .report-video video { aspect-ratio: 16 / 9; max-height: 570px; object-fit: contain; }
.dashboard-video .video-corner { bottom: 10px; font-size: 8px; padding: 8px 10px; right: 10px; }
.dashboard-readout.coaching-readout { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; margin-top: 20px; padding: 0; }
.dashboard-readout .readout-panel { background: var(--panel-translucent); border: 1px solid var(--line); color: var(--ink); padding: 18px 20px 12px; }
.dashboard-readout .readout-panel h2 { border-bottom: 1px solid var(--line); font-size: 16px; letter-spacing: -.02em; margin: 6px 0 7px; padding-bottom: 12px; }
.dashboard-readout .readout-panel .eyebrow { color: var(--green); font-size: 8px; }
.dashboard-readout .readout-panel li { align-items: start; border-bottom: 1px solid var(--line); border-top: 0; display: grid; gap: 10px; grid-template-columns: 22px 1fr; padding: 10px 0; }
.dashboard-readout .readout-panel li:last-child { border-bottom: 0; }
.dashboard-readout .readout-panel li span { color: var(--green); font-family: var(--serif); font-size: 13px; line-height: 1.45; text-align: center; }
.dashboard-readout .priorities-panel li span { color: #9b8426; }
.dashboard-readout .readout-panel li p { color: var(--charcoal); font-family: var(--serif); font-size: 12px; line-height: 1.45; margin: 0; }
.report-score-sidebar { align-self: start; border: 1px solid var(--line); grid-area: score; margin: 24px 0 24px 24px; position: sticky; top: 18px; }
.overall-score-panel { text-align: center; }
.overall-score-panel h2, .category-score-panel > h2 { background: var(--deep); color: #fff; font-size: 10px; letter-spacing: .14em; margin: 0; padding: 15px 16px; text-transform: uppercase; }
.overall-score-panel > strong { display: block; font-family: var(--serif); font-size: clamp(76px, 7vw, 112px); font-weight: 400; letter-spacing: -.08em; line-height: .8; padding: 35px 20px 0; }
.overall-score-panel sup { font-size: .36em; letter-spacing: 0; margin-left: 3px; position: relative; top: -1.2em; }
.overall-score-panel p { color: var(--charcoal); font-family: var(--serif); font-size: 17px; margin: 13px 0 27px; }
.category-score-panel { border-top: 1px solid var(--line); }
.category-score-panel > h2 { background: transparent; color: var(--ink); font-size: 10px; padding-block: 17px; }
.category-score-row { align-items: center; border-top: 1px solid var(--line); display: grid; gap: 6px 14px; grid-template-columns: minmax(0, 1fr) auto; padding: 14px 16px 12px; }
.category-score-row span { font-family: var(--serif); font-size: 15px; }
.category-score-row small { color: var(--muted); display: block; font-size: 9px; margin-top: 3px; }
.category-score-row strong { font-family: var(--serif); font-size: 24px; font-weight: 400; }
.category-score-row .mini-meter { grid-column: 1 / -1; }
.score-note { align-items: start; background: var(--cream); border-top: 1px solid var(--line); color: var(--muted); display: flex; font-size: 10px; gap: 8px; line-height: 1.45; margin: 0; padding: 16px; }
.score-note span { color: var(--ink); }
.report-section { padding-block: 78px; }
.section-heading { gap: 50px; margin-bottom: 34px; }
.section-heading h2 { font-family: var(--serif); font-size: clamp(34px, 3.6vw, 48px); font-weight: 500; line-height: 1; margin: 10px 0 0; }
.positions-section, .scorecard-section { scroll-margin-top: 20px; }
.position-grid { gap: 44px 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.position-image { aspect-ratio: 3 / 4; }
.position-image img { height: 100%; object-fit: cover; object-position: center; width: 100%; }
.position-image > span { font-size: 13px; height: 38px; width: 38px; }
.position-card figcaption { padding: 14px 0; }
.position-card h3 { font-family: var(--serif); font-size: 19px; font-weight: 500; letter-spacing: -.02em; margin-top: 7px; }
.drills-section { padding-block: 78px 88px; scroll-margin-top: 20px; }
.drill-card { min-height: 390px; padding: 26px; }
.report-closing { padding-block: 85px 75px; }
.report-closing h2 { font-family: var(--serif); font-size: clamp(42px, 5vw, 64px); font-weight: 500; line-height: .95; margin: 20px 0 30px; }

/* Processing and errors */
.processing-shell, .failed-shell { align-items: center; display: grid; gap: 8vw; grid-template-columns: 1fr 1fr; min-height: 650px; padding-block: 70px 105px; }
.processing-copy h1, .failed-copy h1 { font-size: clamp(55px, 6vw, 86px); line-height: .86; margin: 23px 0 30px; }
.processing-copy > p, .failed-copy > p { color: var(--muted); font-family: var(--serif); font-size: 17px; line-height: 1.55; max-width: 520px; }
.processing-copy small { color: var(--muted); font-size: 10px; }
.processing-line { background: var(--line); height: 4px; margin: 35px 0 12px; overflow: hidden; width: min(400px, 100%); }
.processing-line span { animation: progress-slide 2s ease-in-out infinite; background: var(--green); display: block; height: 100%; width: 40%; }
@keyframes progress-slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(350%); } }
.processing-media { background: var(--cream); overflow: hidden; position: relative; }
.processing-media img { aspect-ratio: 4 / 3; filter: saturate(.7); object-fit: cover; }
.scan-line { animation: scan 2.4s ease-in-out infinite; background: linear-gradient(90deg, transparent, var(--accent), transparent); box-shadow: 0 0 22px var(--accent); height: 2px; left: 0; position: absolute; right: 0; top: 0; }
@keyframes scan { 0%, 100% { top: 8%; opacity: .5; } 50% { top: 90%; opacity: 1; } }
.processing-label { align-items: center; background: var(--accent); bottom: 16px; display: flex; font-size: 9px; font-weight: 900; gap: 8px; left: 16px; letter-spacing: .08em; padding: 11px 13px; position: absolute; text-transform: uppercase; }
.failed-video video { background: var(--deep); max-height: 560px; }
.failure-message { align-items: flex-start; background: var(--danger-soft); border-left: 4px solid var(--danger); display: flex; gap: 13px; margin: 25px 0; padding: 18px; }
.failure-message span { background: var(--danger); border-radius: 50%; color: white; display: grid; flex: 0 0 24px; height: 24px; place-items: center; }
.failure-message p { color: var(--danger); font-size: 13px; font-weight: 700; line-height: 1.5; margin: 1px 0 0; }
.delete-zone { border-top: 1px solid var(--line); padding-block: 25px 70px; }
.delete-zone summary { color: var(--muted); cursor: pointer; font-size: 11px; font-weight: 750; }
.delete-panel { align-items: end; background: var(--danger-surface); display: grid; gap: 22px; grid-template-columns: 1fr auto; margin-top: 14px; padding: 22px; }
.delete-panel strong { font-size: 13px; }
.delete-panel p { color: var(--muted); font-size: 11px; margin: 5px 0 0; }
.delete-panel form { display: flex; gap: 8px; }
.delete-panel input { background: var(--input-surface); border: 1px solid var(--drop-line); min-height: 38px; padding: 0 11px; }
.delete-panel > .form-error { grid-column: 1 / -1; }

.site-footer { align-items: center; background: var(--cream); border-top: 1px solid var(--line); display: flex; justify-content: center; padding: 40px max(32px, calc((100% - 1180px)/2)); }
.footer-copyright { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; margin: 0; text-transform: uppercase; }

@media (max-width: 1200px) {
  .report-wide { width: min(100% - 40px, 1520px); }
  .report-dashboard { grid-template-areas: "nav nav" "main score"; grid-template-columns: minmax(0, 1fr) 300px; }
  .report-section-nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 18px 0 0; position: static; }
  .report-section-nav a { border-bottom: 0; border-right: 1px solid var(--line); gap: 9px; justify-content: center; min-height: 58px; padding: 10px; text-align: center; }
  .report-section-nav a:last-child { border-right: 0; }
  .report-section-nav a.is-active { box-shadow: inset 0 4px var(--accent); }
  .report-section-nav a span { font-size: 20px; height: 24px; width: 24px; }
  .report-dashboard-main { border-left: 1px solid var(--line); }
  .report-score-sidebar { margin-left: 18px; }
}

@media (max-width: 900px) {
  .login-shell { grid-template-columns: 1fr; min-height: 0; }
  .login-art { display: block; height: clamp(190px, 34vw, 280px); min-height: 0; }
  .login-landscape { object-position: center; }
  .login-art::before, .login-art-copy, .swing-arc, .login-stat { display: none; }
  .login-panel { padding: 54px 35px 62px; }
  .login-form-wrap { gap: 38px; }
  .gallery-hero { gap: 28px; grid-template-areas: "heading" "brand" "intro"; grid-template-columns: 1fr; }
  .gallery-intro { border-top: 0; padding-top: 0; }
  .swing-grid { grid-template-columns: 1fr 1fr; }
  .upload-page { gap: 60px; grid-template-columns: 1fr; }
  .upload-heading { position: static; }
  .upload-heading .back-link { margin-bottom: 38px; }
  .upload-tips { max-width: none; }
  .report-hero { grid-template-columns: 1fr 1fr; }
  .report-score-block { margin-left: calc((100% - 100vw)/2); padding-left: calc((100vw - 100%)/2); }
  .report-intro { padding-inline: 45px; }
  .readout-panel { padding: 45px; }
  .drill-grid { grid-template-columns: 1fr; }
  .drill-card { min-height: auto; }
  .report-dashboard { grid-template-areas: "nav" "main" "score"; grid-template-columns: minmax(0, 1fr); }
  .report-section-nav { grid-template-columns: repeat(5, minmax(145px, 1fr)); overflow-x: auto; }
  .report-section-nav a { justify-content: flex-start; }
  .report-dashboard-main { border-right: 1px solid var(--line); }
  .report-score-sidebar { display: grid; grid-template-columns: minmax(230px, .42fr) minmax(0, 1fr); margin: 18px 0 24px; position: static; }
  .category-score-panel { border-left: 1px solid var(--line); border-top: 0; }
  .overall-score-panel > strong { font-size: 92px; }
}

@media (max-width: 640px) {
  .page-wrap { width: min(100% - 34px, 1180px); }
  .site-header { height: 78px; padding: 0 17px; }
  .header-brand { width: 145px; }
  .brand-mark { border-radius: 7px; flex-basis: 29px; height: 29px; width: 29px; }
  .brand-name strong { font-size: 14px; }
  .brand-name small { font-size: 6px; margin-top: 4px; }
  .header-actions { gap: 8px; }
  .header-actions .nav-link[href="/"] { display: none; }
  .header-actions .button { min-height: 36px; padding-inline: 13px; }
  .logout-form .nav-link { font-size: 11px; }
  .shared-notice { font-size: 9px; min-height: 37px; padding-inline: 14px; }
  .gallery-hero { padding-block: 65px 56px; }
  .gallery-hero h1 { font-size: 58px; }
  .gallery-intro p { font-size: 17px; }
  .section-toolbar { align-items: stretch; flex-direction: column; gap: 20px; }
  .filter-field { min-width: 0; width: 100%; }
  .swing-grid { grid-template-columns: 1fr; }
  .gallery-section { padding-bottom: 75px; }
  .empty-state { padding: 55px 20px; }
  .empty-state h2 { font-size: 34px; }
  .login-art { height: 170px; min-height: 0; }
  .login-panel { padding: 45px 20px 54px; }
  .login-form-wrap { gap: 34px; }
  .pin-row { grid-template-columns: 1fr; }
  .pin-row input { min-height: 50px; }
  .upload-page { padding-block: 40px 75px; }
  .upload-heading h1 { font-size: 57px; }
  .form-step { grid-template-columns: 30px 1fr; padding-block: 30px 43px; }
  .dropzone { min-height: 255px; }
  .upload-submit { padding-left: 0; }
  .upload-submit .button { width: 100%; }
  .report-topbar { min-height: 65px; }
  .report-actions .button-outline { display: none; }
  .report-hero { display: flex; flex-direction: column; width: 100%; }
  .report-score-block { border-bottom: 1px solid var(--strong-line); border-right: 0; margin: 0; padding: 0; width: 100%; }
  .score-giant { padding: 62px 30px 50px; }
  .score-giant strong { font-size: 125px; }
  .report-intro { padding: 55px 21px 62px; width: min(100% - 34px, 1180px); }
  .report-intro h1 { font-size: 55px; }
  .report-summary { font-size: 17px; margin-top: 30px; }
  .category-strip { grid-template-columns: 1fr 1fr; }
  .category-score:nth-child(2) { border-right: 0; }
  .category-score:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .category-score { padding: 20px 16px; }
  .report-section { padding-block: 72px; }
  .section-heading { align-items: start; gap: 22px; grid-template-columns: 1fr; margin-bottom: 32px; }
  .section-heading h2 { font-size: 43px; }
  .report-video { margin-inline: -17px; }
  .coaching-readout { grid-template-columns: 1fr; padding-block: 0 72px; }
  .readout-panel { padding: 45px 25px; }
  .readout-panel h2 { font-size: 36px; }
  .position-grid { gap: 45px; grid-template-columns: 1fr; }
  .score-row { align-items: start; gap: 14px 20px; grid-template-columns: minmax(0, 1fr) auto; padding: 18px 13px; }
  .score-row > p { grid-column: 1 / -1; grid-row: 2; }
  .score-result { grid-column: 2; grid-row: 1; }
  .score-group > header { padding-inline: 13px; }
  .drills-section { padding-block: 75px; }
  .drill-card { padding: 26px; }
  .report-closing { padding-block: 85px 70px; }
  .report-closing h2 { font-size: 54px; }
  .processing-shell, .failed-shell { gap: 50px; grid-template-columns: 1fr; min-height: 0; padding-block: 55px 75px; }
  .processing-copy h1, .failed-copy h1 { font-size: 55px; }
  .delete-panel { align-items: stretch; grid-template-columns: 1fr; }
  .delete-panel form { align-items: stretch; flex-direction: column; }
  .delete-panel input { min-height: 44px; }
  .site-footer { justify-content: center; padding: 35px 20px; }
  .report-wide { width: min(100% - 34px, 1520px); }
  .report-topbar { min-height: 61px; }
  .report-actions .button { font-size: 11px; min-height: 36px; padding-inline: 12px; }
  .report-section-nav { margin-top: 12px; }
  .report-dashboard-main { padding: 28px 18px 20px; }
  .dashboard-intro h1 { font-size: 41px; }
  .dashboard-intro .report-summary { font-size: 15px; margin-top: 16px; }
  .dashboard-readout.coaching-readout { grid-template-columns: 1fr; margin-top: 14px; padding: 0; }
  .dashboard-video { margin-top: 17px; }
  .dashboard-video .report-video { margin-inline: 0; }
  .report-score-sidebar { display: block; }
  .category-score-panel { border-left: 0; border-top: 1px solid var(--line); }
  .overall-score-panel > strong { font-size: 88px; }
  .report-section { padding-block: 58px; }
  .section-heading h2 { font-size: 36px; }
  .report-closing h2 { font-size: 48px; }
}

@media print {
  @page { margin: .5in; }
  :root { --ink: #000; --charcoal: #222; --green: #173d2e; --green-2: #376b50; --paper: #fff; --cream: #fff; --line: #999; --strong-line: #000; --muted: #444; --panel-translucent: #fff; }
  body { background: #fff; color: #000; }
  .site-header, .shared-notice, .demo-notice, .site-footer, .report-topbar, .delete-zone, .no-print, .video-section, .report-closing .button { display: none !important; }
  .page-wrap { width: 100%; }
  .report-wide { width: 100%; }
  .report-dashboard { display: grid; grid-template-areas: "main score"; grid-template-columns: minmax(0, 1fr) 2.25in; }
  .report-section-nav { display: none; }
  .report-dashboard-main { border: 1px solid #999; padding: 20px; }
  .report-score-sidebar { display: block; margin: 0 0 0 12px; position: static; }
  .category-score-panel { border-left: 0; border-top: 1px solid #999; }
  .dashboard-readout.coaching-readout { grid-template-columns: 1fr 1fr; }
  .report-hero { min-height: 0; page-break-after: always; }
  .report-score-block { margin-left: 0; padding-left: 0; }
  .report-section { padding-block: 35px; }
  .coaching-readout, .position-card, .score-group, .drill-card { break-inside: avoid; }
  .positions-section, .scorecard-section, .drills-section { page-break-before: always; }
  .drills-section { background: #fff; color: #000; }
  .light-heading h2, .drill-card { color: #000; }
  .drill-card { background: #fff; border-color: #999; }
  .drill-card li, .drill-goal, .light-heading > p { color: #444; }
}
