:root {
  color-scheme: light;
  --ink: #102b23;
  --ink-soft: #1b4034;
  --muted: #687a72;
  --line: #dce6df;
  --paper: #f5f7f2;
  --white: #fff;
  --lime: #d6ff3f;
  --lime-deep: #b9e92b;
  --orange: #ff795e;
  --blue: #4f76ea;
  --green: #16815f;
  --shadow: 0 24px 70px rgba(16, 43, 35, .11);
  --font-body: 'DM Sans', 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', 'DM Sans', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before { position: absolute; inset: 0 0 auto; height: 760px; z-index: -1; content: ''; pointer-events: none; background: radial-gradient(ellipse at 90% 7%, rgba(214, 255, 63, .13), transparent 33%), radial-gradient(ellipse at 4% 42%, rgba(79, 118, 234, .045), transparent 35%); }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { color: inherit; }
img { max-width: 100%; }
.shell { width: min(1200px, calc(100% - 56px)); margin-inline: auto; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 100; transform: translateY(-150%); padding: 12px 16px; color: var(--ink); background: var(--lime); border-radius: 9px; font-weight: 700; }
.skip-link:focus { transform: translateY(0); }

/* Shared brand and navigation */
.site-header { position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between; min-height: 86px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand-mark { display: grid; place-items: center; width: 39px; height: 39px; color: var(--lime); background: var(--ink); border-radius: 13px; box-shadow: 0 6px 14px rgba(16, 43, 35, .17); }
.brand-mark > span { position: relative; width: 19px; height: 19px; border: 2px solid currentColor; border-radius: 50%; }
.brand-mark > span::before, .brand-mark > span::after { position: absolute; content: ''; background: currentColor; }
.brand-mark > span::before { width: 2px; height: 20px; left: 7px; top: -2px; transform: rotate(34deg); }
.brand-mark > span::after { width: 6px; height: 6px; right: -3px; top: 0; border: 1.5px solid var(--ink); border-radius: 50%; background: var(--orange); }
.brand-name { color: var(--ink); font: 700 23px/.95 var(--font-display); letter-spacing: -1.4px; }
.brand-name > span { color: var(--green); }
.main-nav, .admin-nav { display: flex; align-items: center; gap: 31px; color: var(--muted); font-size: 13px; font-weight: 600; }
.main-nav a, .admin-nav a { transition: color .18s ease; }
.main-nav a:hover, .admin-nav a:hover { color: var(--green); }
.main-nav a.active { color: var(--ink); }
.admin-link { display: inline-flex; align-items: center; gap: 13px; padding: 12px 16px; color: var(--ink) !important; background: var(--white); border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 5px 14px rgba(16, 43, 35, .04); }
.admin-link span { color: var(--green); font-size: 18px; }
.back-link { padding: 10px 14px; color: var(--ink); background: rgba(255,255,255,.8); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 15px; color: var(--green); font-size: 10px; line-height: 1.3; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.pulse-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(255, 121, 94, .15); }

/* Public club page */
.test-banner { display: flex; align-items: center; gap: 12px; margin-top: 2px; padding: 13px 17px; color: #6a4f19; background: #fff5d9; border: 1px solid #f0d98d; border-radius: 14px; font-size: 12px; line-height: 1.5; box-shadow: 0 8px 22px rgba(101, 72, 19, .06); }
.test-banner[hidden] { display: none; }
.test-banner strong { flex: 0 0 auto; font-size: 11px; letter-spacing: .3px; }
.test-banner > span:last-child { color: #8a713b; }
.test-banner-icon { display: grid; place-items: center; width: 23px; height: 23px; flex: 0 0 auto; color: #705116; border: 1px solid #d2b65c; border-radius: 50%; font-size: 12px; font-weight: 700; }
.hero { display: grid; grid-template-columns: .87fr 1.13fr; gap: clamp(25px, 5vw, 68px); align-items: center; padding-top: 30px; padding-bottom: 55px; }
.hero-copy { padding: 42px 0 34px; }
.hero-eyebrow { color: var(--green); }
.hero h1, .admin-title h1 { margin: 0; font: 700 clamp(52px, 6vw, 78px)/.99 var(--font-display); letter-spacing: -.065em; }
.hero h1 em, .how-heading h2 em, .admin-title h1 em { color: var(--green); font-style: normal; }
.hero-lead { max-width: 430px; margin: 22px 0 25px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.hero-cta { display: inline-flex; align-items: center; gap: 24px; padding: 14px 19px; color: var(--ink); background: var(--lime); border: 1px solid rgba(16,43,35,.08); border-radius: 12px; box-shadow: 0 9px 22px rgba(151, 192, 26, .2); font-size: 13px; font-weight: 700; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.hero-cta span { display: grid; place-items: center; width: 24px; height: 24px; background: rgba(16,43,35,.09); border-radius: 50%; font-size: 16px; }
.hero-cta:hover { transform: translateY(-2px); background: #e1ff72; box-shadow: 0 13px 25px rgba(151, 192, 26, .28); }
.hero-proof { display: flex; align-items: center; gap: 11px; margin-top: 35px; }
.proof-icon { display: grid; place-items: center; width: 37px; height: 37px; color: var(--green); background: #e4f0e7; border-radius: 11px; font-size: 20px; }
.hero-proof strong, .hero-proof small { display: block; }
.hero-proof strong { font-size: 11px; }
.hero-proof small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.hero-art { position: relative; min-width: 0; height: clamp(380px, 41vw, 510px); overflow: hidden; isolation: isolate; background: var(--ink); border-radius: 28px; box-shadow: 0 24px 55px rgba(16, 43, 35, .2); }
.hero-photo, .hero-photo-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-photo { z-index: -2; object-fit: cover; object-position: 51% center; }
.hero-photo-shade { z-index: -1; background: linear-gradient(180deg, rgba(8,24,20,.03) 35%, rgba(8,24,20,.3) 65%, rgba(8,24,20,.88) 100%), linear-gradient(90deg, rgba(8,24,20,.08), transparent 65%); }
.photo-tag { position: absolute; top: 21px; left: 21px; display: flex; align-items: center; gap: 9px; padding: 10px 12px; color: #fff; background: rgba(16,43,35,.72); border: 1px solid rgba(255,255,255,.24); border-radius: 999px; backdrop-filter: blur(10px); font-size: 9px; font-weight: 700; letter-spacing: 1px; }
.photo-tag-ball { width: 8px; height: 8px; background: var(--lime); border-radius: 50%; box-shadow: 0 0 0 4px rgba(214,255,63,.17); }
.floating-card { position: absolute; left: 23px; bottom: 22px; display: grid; gap: 5px; max-width: calc(100% - 105px); padding: 17px 19px; color: var(--ink); background: rgba(255,255,255,.94); border: 1px solid rgba(255,255,255,.65); border-radius: 14px; box-shadow: 0 14px 30px rgba(0,0,0,.18); backdrop-filter: blur(8px); }
.mini-label { color: var(--green); font-size: 9px; font-weight: 700; letter-spacing: 1.1px; }
.score-card strong { font: 700 22px var(--font-display); letter-spacing: -.8px; }
.score-card > span:last-child { color: var(--muted); font-size: 10px; }
.court-stamp { position: absolute; right: 22px; bottom: 23px; display: grid; justify-items: center; gap: 5px; color: #fff; text-align: center; }
.court-stamp > span { font: 700 26px var(--font-display); letter-spacing: -2px; }
.court-stamp i { width: 22px; height: 3px; background: var(--lime); border-radius: 3px; }
.court-stamp small { font-size: 7px; line-height: 1.25; font-weight: 700; letter-spacing: .9px; }
.search-section { padding-top: 28px; padding-bottom: 94px; scroll-margin-top: 35px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 23px; }
.section-eyebrow { margin-bottom: 9px; }
.section-heading h2, .how-heading h2, .admin-panel h2 { margin: 0; font: 700 clamp(30px, 3.4vw, 40px)/1.08 var(--font-display); letter-spacing: -.05em; }
.section-lead { margin: 9px 0 0; color: var(--muted); font-size: 13px; }
.retention-note { display: flex; align-items: center; gap: 11px; padding: 11px 14px; background: #fff; border: 1px solid var(--line); border-radius: 13px; }
.retention-icon { display: grid; place-items: center; width: 33px; height: 33px; color: var(--green); background: #edf5e9; border-radius: 10px; font-size: 20px; }
.retention-note strong, .retention-note small { display: block; }
.retention-note strong { font-size: 10px; }
.retention-note small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.search-form { display: grid; grid-template-columns: 1fr 1fr 1fr auto; align-items: end; gap: 10px; padding: 15px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 14px 34px rgba(16,43,35,.055); }
.field-group { min-width: 0; display: grid; gap: 8px; padding: 7px 10px 5px; }
.field-label, .field-group > span { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }
.field-icon { display: inline-grid; place-items: center; width: 17px; height: 17px; color: var(--green); background: #eef5e8; border-radius: 5px; font-size: 11px; }
input, select { min-width: 0; width: 100%; padding: 8px 0; color: var(--ink); background-color: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; outline: none; font-size: 13px; }
input:focus, select:focus { border-color: var(--green); }
input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid rgba(79,118,234,.5); outline-offset: 3px; }
select { cursor: pointer; }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 15px; min-height: 47px; padding: 0 18px; border: 0; border-radius: 11px; font-size: 12px; font-weight: 700; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.primary-button { color: var(--ink); background: var(--lime); box-shadow: 0 8px 18px rgba(151,192,26,.16); }
.primary-button:hover { transform: translateY(-1px); background: #e3ff78; box-shadow: 0 11px 22px rgba(151,192,26,.23); }
.primary-button:disabled, .secondary-button:disabled { opacity: .55; cursor: wait; transform: none; }
.primary-button > span { font-size: 18px; }
.search-status { min-height: 48px; padding: 20px 2px 9px; color: var(--muted); font-size: 12px; }
.results-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.match-card { position: relative; min-width: 0; padding: 12px; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 17px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.match-card:hover { transform: translateY(-4px); border-color: #c6d6ca; box-shadow: var(--shadow); }
.card-color { position: relative; height: 122px; margin-bottom: 14px; overflow: hidden; isolation: isolate; background: linear-gradient(135deg, #217658, #102b23); border-radius: 11px; }
.card-color::before, .card-color::after { position: absolute; z-index: -1; content: ''; border: 1px solid rgba(255,255,255,.28); }
.card-color::before { inset: 15px; }
.card-color::after { top: 15px; bottom: 15px; left: 50%; }
.card-color.sunset { background: linear-gradient(135deg, #ff9c65, #e25445); }
.card-color.violet { background: linear-gradient(135deg, #708bff, #404fad); }
.card-color .card-time { position: absolute; top: 10px; left: 11px; padding: 6px 8px; color: #fff; background: rgba(16,43,35,.52); border: 1px solid rgba(255,255,255,.22); border-radius: 7px; font-size: 10px; font-weight: 700; backdrop-filter: blur(6px); }
.play-chip { position: absolute; right: 10px; bottom: 9px; display: grid; place-items: center; width: 36px; height: 36px; padding-left: 3px; color: var(--ink); background: var(--lime); border: 2px solid rgba(255,255,255,.65); border-radius: 50%; box-shadow: 0 4px 12px rgba(0,0,0,.19); font-size: 12px; cursor: pointer; transition: transform .18s ease; }
.play-chip:hover { transform: scale(1.08); }
.match-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.match-top h3 { margin: 0; font: 700 16px var(--font-display); letter-spacing: -.4px; }
.status, .table-status { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 999px; font-size: 9px; font-weight: 700; white-space: nowrap; }
.status.ready, .table-status { color: #14684b; background: #e3f5e8; }
.status.processing, .table-status.processing { color: #875616; background: #fff0d8; }
.status.scheduled, .table-status.scheduled { color: #5653a0; background: #eeedff; }
.match-meta { margin: 0; color: var(--muted); font-size: 10px; }
.match-footer { display: flex; justify-content: space-between; gap: 9px; margin-top: 13px; padding-top: 11px; color: var(--muted); border-top: 1px solid #edf0ec; font-size: 9px; }
.match-footer > span:last-child { color: var(--green); font-weight: 700; text-align: right; }
.empty-state { grid-column: 1 / -1; padding: 34px 22px; color: var(--muted); background: #fff; border: 1px dashed #c6d5ca; border-radius: 16px; font-size: 13px; line-height: 1.7; text-align: center; }
.how-section { position: relative; overflow: hidden; color: #fff; background: var(--ink); }
.how-section::before, .how-section::after { position: absolute; width: 400px; height: 400px; content: ''; border: 1px solid rgba(214,255,63,.13); border-radius: 50%; pointer-events: none; }
.how-section::before { top: -270px; right: -100px; box-shadow: 0 0 0 38px rgba(214,255,63,.025), 0 0 0 78px rgba(214,255,63,.02); }
.how-section::after { bottom: -340px; left: 20%; box-shadow: 0 0 0 38px rgba(214,255,63,.025); }
.how-inner { position: relative; z-index: 1; display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 6vw, 82px); align-items: center; padding-top: 82px; padding-bottom: 86px; }
.how-heading .eyebrow { color: var(--lime); }
.how-heading h2 { margin: 0; font: 700 clamp(39px, 4.7vw, 58px)/1.02 var(--font-display); letter-spacing: -.065em; }
.how-heading h2 em { color: var(--lime); }
.how-heading > p:not(.eyebrow) { max-width: 320px; margin: 17px 0 22px; color: #b8c9c0; font-size: 12px; line-height: 1.7; }
.how-link { display: inline-flex; align-items: center; gap: 12px; color: var(--lime); font-size: 11px; font-weight: 700; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.step-card { min-height: 212px; padding: 15px 14px; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; }
.step-number { color: var(--lime); font: 700 11px var(--font-display); letter-spacing: .4px; }
.step-icon { display: grid; place-items: center; width: 37px; height: 37px; margin-top: 27px; color: var(--ink); background: var(--lime); border-radius: 11px; font-size: 16px; }
.step-card h3 { margin: 16px 0 7px; font: 700 14px var(--font-display); }
.step-card p { margin: 0; color: #b8c9c0; font-size: 10px; line-height: 1.55; }
.site-footer { display: flex; align-items: center; gap: 22px; min-height: 87px; color: var(--muted); font-size: 10px; }
.brand.small { gap: 8px; margin-right: auto; }
.brand.small .brand-mark { width: 28px; height: 28px; border-radius: 9px; }
.brand.small .brand-mark > span { transform: scale(.72); }
.brand.small .brand-name { font-size: 16px; }
.footer-status { display: inline-flex; align-items: center; gap: 8px; }
.footer-status i { width: 7px; height: 7px; background: var(--green); border-radius: 50%; box-shadow: 0 0 0 4px rgba(22,129,95,.1); }

/* Club administration */
.admin-body { min-height: 100vh; background: #f2f5ef; }
.admin-header { min-height: 75px; }
.admin-nav { gap: 24px; }
.admin-nav > a:not(.back-link) { padding: 9px 0; }
.admin-shell { padding-bottom: 75px; }
.admin-hero { position: relative; display: flex; align-items: center; min-height: 285px; margin: 10px 0 17px; padding: 40px 45px; overflow: hidden; color: #fff; background: linear-gradient(112deg, #102b23 0%, #163c2f 66%, #1d523c 100%); border-radius: 23px; box-shadow: 0 20px 45px rgba(16,43,35,.15); isolation: isolate; }
.admin-hero::after { position: absolute; inset: 0; z-index: -1; content: ''; opacity: .17; background-image: radial-gradient(rgba(214,255,63,.75) .75px, transparent .75px); background-size: 17px 17px; mask-image: linear-gradient(90deg, transparent, #000); }
.admin-title { position: relative; z-index: 2; display: flex; width: 100%; align-items: end; justify-content: space-between; gap: 26px; }
.admin-title .eyebrow { color: var(--lime); }
.eyebrow-mark { width: 8px; height: 8px; background: var(--orange); border-radius: 2px; transform: rotate(45deg); }
.admin-title h1 { color: #fff; font-size: clamp(44px, 5.3vw, 64px); }
.admin-title h1 em { color: var(--lime); }
.admin-title p:not(.eyebrow) { margin: 13px 0 0; color: #c4d4cb; font-size: 13px; }
.secondary-button { min-height: 43px; color: var(--ink); background: #fff; border: 1px solid rgba(255,255,255,.38); box-shadow: 0 7px 16px rgba(0,0,0,.08); white-space: nowrap; }
.secondary-button:hover { transform: translateY(-1px); box-shadow: 0 10px 20px rgba(0,0,0,.14); }
.secondary-button > span { color: var(--green); font-size: 18px; }
.admin-hero-art { position: absolute; z-index: 0; top: 16px; right: 30px; width: 340px; height: 250px; overflow: hidden; opacity: .77; }
.admin-hero-art::before { position: absolute; inset: 4px 15px; content: ''; border: 1px solid rgba(214,255,63,.38); }
.admin-hero-art::after { position: absolute; top: 4px; bottom: 4px; left: 50%; content: ''; border-left: 1px solid rgba(214,255,63,.38); }
.admin-court-line { position: absolute; border: 1px solid rgba(214,255,63,.36); }
.line-one { top: 22%; bottom: 22%; left: 31%; width: 38%; }
.line-two { top: 50%; right: 15px; left: 15px; border-width: 1px 0 0; }
.line-three { top: 22%; bottom: 22%; left: 50%; border-width: 0 0 0 1px; }
.admin-ball { position: absolute; top: 60%; left: 63%; width: 17px; height: 17px; background: var(--lime); border-radius: 50%; box-shadow: 0 0 22px rgba(214,255,63,.7); }
.admin-hero-stamp { position: absolute; top: 15px; right: 3px; display: grid; justify-items: center; gap: 5px; color: rgba(214,255,63,.9); font: 700 28px var(--font-display); line-height: .9; }
.admin-hero-stamp small { font: 700 7px/1.3 var(--font-body); letter-spacing: 1px; text-align: center; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 13px; margin-bottom: 14px; }
.metric { position: relative; min-height: 112px; padding: 19px 21px; overflow: hidden; background: var(--white); border: 1px solid #e0e7df; border-radius: 15px; }
.metric::after { position: absolute; right: -20px; bottom: -29px; width: 86px; height: 86px; content: ''; border: 1px solid rgba(22,129,95,.13); border-radius: 50%; box-shadow: 0 0 0 12px rgba(22,129,95,.025), 0 0 0 25px rgba(22,129,95,.02); }
.metric-label { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.metric strong { display: flex; align-items: baseline; gap: 7px; margin-top: 8px; font: 700 31px/1 var(--font-display); letter-spacing: -1px; }
.metric strong span { color: var(--muted); font: 500 10px var(--font-body); letter-spacing: 0; }
.admin-grid { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(280px,.85fr); align-items: start; gap: 14px; scroll-margin-top: 25px; }
.admin-panel { min-width: 0; padding: 22px; background: var(--white); border: 1px solid #e0e7df; border-radius: 16px; box-shadow: 0 8px 22px rgba(16,43,35,.035); }
.panel-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; margin-bottom: 17px; }
.panel-heading .eyebrow, .add-panel > .eyebrow, .camera-form-heading .eyebrow { margin-bottom: 7px; font-size: 9px; }
.admin-panel h2 { font-size: 23px; }
.panel-subtitle { margin: 7px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.live-label { display: inline-flex; align-items: center; gap: 7px; padding: 7px 9px; color: #1a724e; background: #ecf8ee; border-radius: 999px; font-size: 9px; font-weight: 700; white-space: nowrap; }
.live-label i { width: 7px; height: 7px; display: block; background: #38a56f; border-radius: 50%; box-shadow: 0 0 0 4px rgba(56,165,111,.12); }
.admin-table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 10px; }
th { padding: 0 9px 10px; color: #85948c; border-bottom: 1px solid var(--line); font-size: 8px; font-weight: 700; letter-spacing: .9px; text-transform: uppercase; }
td { padding: 12px 9px; border-bottom: 1px solid #edf1ed; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 700; }
.table-status { padding: 5px 7px; }
.table-action { padding: 5px 0; color: var(--green); background: transparent; border: 0; font-size: 10px; font-weight: 700; cursor: pointer; }
.table-action:hover { color: #0d523b; text-decoration: underline; }
.table-action:disabled { color: var(--muted); cursor: default; text-decoration: none; }
.muted { color: var(--muted); font-size: 10px; line-height: 1.6; }
.add-panel { position: relative; }
.add-panel h2 { font-size: 22px; }
.add-panel > .muted { margin: 7px 0 0; }
.form-panel-mark { position: absolute; top: 20px; right: 20px; display: grid; place-items: center; width: 30px; height: 30px; color: var(--ink); background: var(--lime); border-radius: 9px; font-size: 20px; }
.add-panel form { display: grid; gap: 12px; margin-top: 19px; }
.add-panel label, .camera-form label { display: grid; min-width: 0; gap: 6px; }
.add-panel label > span, .camera-form label > span { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .55px; }
.add-panel input, .add-panel select, .camera-form input, .camera-form select { padding: 8px 9px; background: #fbfcfa; border: 1px solid #dfe7df; border-radius: 8px; font-size: 11px; }
.add-panel .primary-button { width: 100%; min-height: 42px; margin-top: 3px; }
.form-message { min-height: 14px; margin: 0; color: var(--green); font-size: 10px !important; line-height: 1.4; }
.integration-note { display: flex; align-items: center; gap: 16px; margin-top: 14px; padding: 18px 22px; color: #fff; background: var(--ink); border-radius: 15px; }
.integration-icon { display: grid; place-items: center; width: 43px; height: 43px; flex: 0 0 auto; color: var(--ink); background: var(--lime); border-radius: 13px; font-size: 24px; }
.integration-note .eyebrow { margin: 0 0 5px; color: var(--lime); font-size: 8px; }
.integration-note h3 { margin: 0 0 4px; font: 700 15px var(--font-display); }
.integration-note p:not(.eyebrow) { max-width: 700px; margin: 0; color: #bdcec5; font-size: 9px; line-height: 1.55; }
.integration-tag { margin-left: auto; padding: 8px 10px; color: var(--lime); border: 1px solid rgba(214,255,63,.35); border-radius: 999px; font-size: 8px; font-weight: 700; letter-spacing: .8px; white-space: nowrap; }
.camera-section { margin-top: 14px; scroll-margin-top: 25px; }
.camera-section .panel-heading { align-items: center; }
.privacy-chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; color: #1a724e; background: #ecf8ee; border: 1px solid #d6efdc; border-radius: 999px; font-size: 9px; font-weight: 700; white-space: nowrap; }
.privacy-chip > span { font-size: 14px; }
.camera-intro { max-width: 760px; margin: -7px 0 18px; }
.camera-layout { display: grid; grid-template-columns: 1fr 1.05fr; gap: 16px; align-items: start; }
.camera-list { display: grid; gap: 9px; align-content: start; }
.camera-card-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px; background: #fbfcfa; border: 1px solid #e4ebe3; border-radius: 11px; }
.camera-card-item strong, .camera-card-item > div:first-child > span { display: block; }
.camera-card-item strong { font: 700 12px var(--font-display); }
.camera-card-item > div:first-child > span { max-width: 240px; margin-top: 5px; color: var(--muted); font-size: 8px; line-height: 1.5; overflow-wrap: anywhere; }
.camera-card-actions { display: flex; flex: 0 0 auto; align-items: center; justify-content: end; gap: 5px 9px; flex-wrap: wrap; }
.camera-status { padding: 5px 7px; color: #5653a0; background: #eeedff; border-radius: 999px; font-size: 8px; white-space: nowrap; }
.camera-status.online { color: #14684b; background: #e3f5e8; }
.camera-status.offline, .camera-status.timeout, .camera-status.probe_error { color: #a44037; background: #ffebe8; }
.camera-form { display: grid; gap: 11px; min-width: 0; padding: 15px; background: #f8faf6; border: 1px solid #e2eae0; border-radius: 12px; }
.camera-form-heading { display: flex; align-items: center; gap: 10px; }
.camera-form-heading .eyebrow { margin: 0 0 3px; }
.camera-form-heading h3 { margin: 0; font: 700 15px var(--font-display); }
.camera-form-icon { display: grid; place-items: center; width: 34px; height: 34px; color: var(--ink); background: var(--lime); border-radius: 10px; font-size: 20px; }
.camera-form small { color: var(--muted); font-size: 9px; line-height: 1.5; }
.camera-form input[type=password] { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; }
.camera-form .primary-button { min-height: 41px; }
.camera-rtsp-builder { display: grid; gap: 10px; min-width: 0; margin: 0; padding: 12px; border: 1px solid #dfe8d9; border-radius: 10px; }
.camera-rtsp-builder legend { padding: 0 4px; color: var(--green); font-size: 8px; font-weight: 700; letter-spacing: .85px; }
.camera-rtsp-builder > .muted { margin: 0; font-size: 9px; }
.form-two { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
.camera-rtsp-builder .form-two { gap: 8px; }

/* Shared dialogs and states */
.modal-backdrop { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 20px; background: rgba(7,20,16,.79); backdrop-filter: blur(10px); }
.modal-backdrop[hidden] { display: none !important; }
.video-modal { position: relative; width: min(930px, 100%); padding: 13px; color: #f3f7f4; background: #102019; border: 1px solid rgba(255,255,255,.11); border-radius: 19px; box-shadow: 0 34px 100px rgba(0,0,0,.52); }
.modal-close { position: absolute; z-index: 4; top: 20px; right: 20px; display: grid; place-items: center; width: 36px; height: 36px; color: #fff; background: rgba(7,20,16,.76); border: 1px solid rgba(255,255,255,.23); border-radius: 50%; backdrop-filter: blur(8px); font-size: 23px; cursor: pointer; transition: background .18s ease, transform .18s ease; }
.modal-close:hover { transform: rotate(90deg); background: rgba(214,255,63,.24); }
.video-frame { position: relative; display: grid; height: min(62vh, 560px); min-height: 270px; overflow: hidden; place-items: center; background: #080f0c; border: 1px solid rgba(214,255,63,.13); border-radius: 13px; }
.video-frame video { position: absolute; inset: 0; z-index: 1; display: block; width: 100%; height: 100%; background: #080b09; object-fit: contain; }
.play-splash { color: #fff; text-align: center; }
.play-button { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 13px; padding-left: 3px; color: var(--ink); background: var(--lime); border-radius: 50%; }
.play-splash p { margin: 0 0 6px; font: 600 17px var(--font-display); }
.play-splash small { color: #c1ccc2; font-size: 11px; }
.modal-info { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 5px 4px; }
.modal-info .eyebrow { margin-bottom: 7px; color: var(--lime); }
.modal-info h2 { margin: 0; color: #f4f7f3; font: 600 24px var(--font-display); }
.modal-info p:last-child { margin: 5px 0 0; color: #aab7ad; font-size: 11px; }
.ready-pill { display: inline-flex; align-items: center; padding: 8px 10px; color: #e1f29b; background: rgba(214,255,63,.1); border: 1px solid rgba(214,255,63,.2); border-radius: 999px; font-size: 9px; white-space: nowrap; }
.live-label i, .footer-status i { flex: 0 0 auto; }

@media (max-width: 1000px) {
  .hero { grid-template-columns: .9fr 1.1fr; gap: 32px; }
  .hero h1 { font-size: clamp(49px, 6.2vw, 65px); }
  .hero-art { height: clamp(350px, 43vw, 450px); }
  .admin-hero-art { right: 10px; opacity: .55; }
  .admin-grid { grid-template-columns: minmax(0,1.35fr) minmax(250px,.8fr); }
  .camera-layout { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .shell { width: min(100% - 36px, 600px); }
  .site-header { min-height: 72px; }
  .brand-mark { width: 35px; height: 35px; }
  .brand-name { font-size: 21px; }
  .main-nav { flex: 1 1 auto; justify-content: flex-end; gap: 8px; }
  .main-nav > a:not(.admin-link) { display: none; }
  .admin-link { flex: 0 0 auto; gap: 8px; padding: 10px 12px; font-size: 11px; white-space: nowrap; }
  .test-banner { align-items: flex-start; flex-wrap: wrap; gap: 8px; margin-top: 0; padding: 11px 12px; }
  .test-banner > span:last-child { flex-basis: 100%; padding-left: 31px; }
  .hero { grid-template-columns: 1fr; gap: 10px; padding-top: 24px; padding-bottom: 50px; }
  .hero-copy { min-width: 0; padding: 20px 0 12px; }
  .hero h1 { max-width: 550px; font-size: clamp(52px, 10vw, 72px); }
  .hero-lead { max-width: 100%; margin: 17px 0 20px; font-size: 14px; }
  .hero-proof { margin-top: 22px; }
  .hero-art { height: clamp(300px, 69vw, 420px); border-radius: 21px; }
  .photo-tag { top: 14px; left: 14px; }
  .floating-card { left: 14px; bottom: 14px; }
  .court-stamp { right: 14px; bottom: 17px; }
  .search-section { padding-top: 22px; padding-bottom: 65px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 16px; }
  .section-heading h2 { font-size: 34px; }
  .retention-note { width: 100%; }
  .search-form { grid-template-columns: 1fr 1fr; gap: 9px; padding: 11px; }
  .field-group { padding-inline: 7px; }
  .search-form .primary-button { grid-column: 1 / -1; }
  .results-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 11px; }
  .match-card { padding: 9px; }
  .card-color { height: 104px; }
  .match-top { align-items: flex-start; flex-direction: column; }
  .match-footer { font-size: 8px; }
  .how-inner { grid-template-columns: 1fr; gap: 30px; padding-top: 58px; padding-bottom: 62px; }
  .how-heading h2 { font-size: 46px; }
  .steps { gap: 9px; }
  .step-card { min-height: 190px; padding: 12px 10px; }
  .step-card h3 { font-size: 12px; }
  .step-card p { font-size: 9px; }
  .site-footer { min-height: 78px; gap: 12px; flex-wrap: wrap; padding-block: 16px; }
  .footer-message { display: none; }
  .admin-header { min-height: 68px; }
  .admin-nav { gap: 10px; font-size: 10px; }
  .admin-nav > a:not(.back-link) { display: none; }
  .back-link { padding: 8px 10px; }
  .admin-shell { padding-bottom: 45px; }
  .admin-hero { min-height: 248px; padding: 27px 24px; border-radius: 19px; }
  .admin-title { align-items: flex-start; flex-direction: column; gap: 18px; }
  .admin-title h1 { font-size: 50px; }
  .admin-hero-art { top: 19px; right: 12px; width: 48%; height: 205px; opacity: .38; }
  .metrics { gap: 8px; }
  .metric { min-height: 94px; padding: 14px 12px; }
  .metric-label { font-size: 8px; letter-spacing: .45px; }
  .metric strong { font-size: 25px; }
  .metric strong span { display: block; font-size: 8px; }
  .admin-grid { grid-template-columns: 1fr; gap: 11px; }
  .admin-panel { padding: 16px; }
  .panel-heading { gap: 8px; }
  .admin-panel h2 { font-size: 21px; }
  .live-label { padding: 6px 7px; font-size: 8px; }
  .integration-note { align-items: flex-start; gap: 11px; padding: 15px; }
  .integration-icon { width: 36px; height: 36px; border-radius: 10px; font-size: 19px; }
  .integration-note h3 { font-size: 13px; }
  .integration-tag { display: none; }
  .camera-section .panel-heading { align-items: flex-start; flex-direction: column; }
  .camera-card-item { align-items: flex-start; flex-direction: column; }
  .camera-card-actions { justify-content: flex-start; }
}

@media (max-width: 460px) {
  .shell { width: calc(100% - 28px); }
  .hero { padding-top: 15px; }
  .hero h1 { font-size: 51px; letter-spacing: -.06em; }
  .hero-art { height: 300px; }
  .floating-card { max-width: calc(100% - 91px); padding: 13px; }
  .score-card strong { font-size: 19px; }
  .score-card > span:last-child { font-size: 9px; }
  .court-stamp { right: 10px; bottom: 14px; }
  .court-stamp > span { font-size: 21px; }
  .search-form { grid-template-columns: 1fr; gap: 4px; }
  .search-form .primary-button { grid-column: auto; }
  .field-group { padding: 6px 7px; }
  .results-grid { grid-template-columns: 1fr; }
  .match-top { align-items: center; flex-direction: row; }
  .card-color { height: 130px; }
  .steps { grid-template-columns: 1fr; gap: 8px; }
  .step-card { display: grid; grid-template-columns: 34px 38px 1fr; align-items: center; min-height: 0; column-gap: 9px; padding: 11px; }
  .step-number { grid-row: span 2; }
  .step-icon { grid-row: span 2; width: 34px; height: 34px; margin: 0; }
  .step-card h3 { margin: 0 0 3px; font-size: 12px; }
  .step-card p { font-size: 9px; }
  .site-footer { justify-content: space-between; }
  .brand.small { margin-right: auto; }
  .footer-status { font-size: 8px; }
  .main-nav { flex: 0 0 auto; }
  .admin-link { gap: 5px; padding: 8px 9px; font-size: 9px; }
  .brand { gap: 8px; }
  .admin-nav { gap: 0; }
  .admin-title h1 { font-size: 46px; }
  .admin-title p:not(.eyebrow) { max-width: 240px; font-size: 11px; }
  .admin-hero-art { right: -19px; width: 62%; opacity: .27; }
  .metrics { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .metric { padding: 12px 9px; }
  .metric strong { font-size: 22px; }
  .panel-heading { flex-direction: column; }
  .admin-table-wrap { margin-inline: -4px; width: calc(100% + 8px); overflow: visible; }
  table { width: 100%; min-width: 0; table-layout: fixed; }
  th, td { padding-right: 4px; padding-left: 4px; white-space: normal; overflow-wrap: anywhere; }
  th:nth-child(1) { width: 22%; }
  th:nth-child(2) { width: 30%; }
  th:nth-child(3) { width: 21%; }
  th:nth-child(4) { width: 27%; }
  .table-status { padding: 4px 5px; font-size: 7px; }
  .table-action { font-size: 8px; white-space: normal; }
  .form-two { grid-template-columns: 1fr; }
  .camera-card-item > div:first-child > span { max-width: 100%; }
  .modal-backdrop { padding: 10px; }
  .video-modal { padding: 8px; border-radius: 15px; }
  .video-frame { height: min(55vh, 340px); min-height: 220px; border-radius: 10px; }
  .modal-close { top: 14px; right: 14px; }
  .modal-info { align-items: flex-start; flex-direction: column; gap: 11px; padding: 14px 5px 5px; }
  .modal-info h2 { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Tenant brand overrides: keep the shared Set Point layout, tint its accents. */
.brand-mark.has-logo { width: auto; min-width: 39px; max-width: 190px; padding: 2px 0; color: inherit; background: transparent; box-shadow: none; }
.brand-mark.has-logo img { display: block; max-width: 150px; max-height: 46px; object-fit: contain; }
.brand.small .brand-mark.has-logo { min-width: 28px; max-width: 140px; }
.brand.small .brand-mark.has-logo img { max-width: 120px; max-height: 34px; }
.brand-name > span, .main-nav a:hover, .admin-nav a:hover, .admin-link span, .eyebrow,
.hero h1 em, .how-heading h2 em, .admin-title h1 em, .hero-eyebrow, .mini-label,
.match-footer > span:last-child { color: var(--brand-primary-readable, var(--green)); }
.hero-cta, .primary-button, .step-icon, .play-chip { color: var(--brand-secondary-contrast, var(--ink)); }
.hero-cta:hover { background: color-mix(in srgb, var(--lime), white 16%); }
.how-heading .eyebrow, .how-heading h2 em, .how-link { color: var(--brand-secondary-dark-text, var(--lime)); }
.brand-mark { color: var(--brand-secondary-on-ink, var(--lime)); }
