﻿/* VG Perform - no external fonts or frameworks (keeps the Content-Security-Policy strict) */
:root {
    --navy: #0b1f3a;
    --navy-2: #13305a;
    --ink: #142033;
    --muted: #5d6b80;
    --line: #e2e7ef;
    --bg: #f5f7fb;
    --card: #ffffff;
    --accent: #f5a524;
    --accent-ink: #3a2500;
    --teal: #0e9f8e;
    --good: #138a52;
    --good-bg: #e3f6ec;
    --bad: #c2362b;
    --bad-bg: #fde8e6;
    --warn-bg: #fff4dc;
    --warn: #8a5a00;
    --radius: 12px;
    --shadow: 0 1px 2px rgba(16, 31, 58, .06), 0 4px 16px rgba(16, 31, 58, .06);
    color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
main { flex: 1; }
a { color: #1957b8; }
a:hover { color: #0f3f8a; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5rem; }
h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h2 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.page { padding-top: 28px; padding-bottom: 48px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

/* ---------- Top bar ---------- */
/* A very faint version of the logo's rising chart stretches across the top bar: revenue going up.
   Kept light so the logo and the links stay easy to read. */
.topbar { background: url("/icons/header-graph.svg") left bottom / 100% 100% no-repeat, var(--navy); color: #fff; position: sticky; top: 0; z-index: 10; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.2rem; }
.brand:hover { color: #fff; }
.brand-logo { display: block; height: 60px; width: auto; margin: 4px 0; }
.hero-logo { display: block; width: 100%; max-width: 380px; height: auto; margin: 0 auto 18px; }
.auth-logo { display: block; width: 140px; height: auto; margin: 0 auto 12px; }
.brand-mark { background: var(--accent); color: var(--accent-ink); border-radius: 8px; padding: 4px 8px; font-weight: 800; letter-spacing: .5px; }
.topnav { display: flex; align-items: center; gap: 6px 16px; flex-wrap: wrap; padding: 8px 0; order: 2; margin-left: auto; }
.topbar-tools { display: flex; align-items: center; gap: 8px; order: 3; }
.nav-toggle {
    display: none; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0;
    border-radius: 10px; border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close, .nav-open .nav-toggle .icon-menu { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }
.topnav a { color: #d6e2f5; text-decoration: none; font-size: .95rem; }
.topnav a:hover { color: #fff; }
.topnav a.btn-primary { color: var(--accent-ink); }
.nav-user { color: #9fb3d1; font-size: .875rem; border-left: 1px solid rgba(255,255,255,.2); padding-left: 16px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 18px; border-radius: 10px; border: 1px solid var(--line);
    background: #fff; color: var(--ink); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
    transition: background .15s, border-color .15s, transform .05s;
}
.btn:hover { border-color: #c4cddb; color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid rgba(245, 165, 36, .55); outline-offset: 2px;
}
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #ffb53d; border-color: #ffb53d; color: var(--accent-ink); }
.btn-ghost-light { background: transparent; border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; color: #fff; }
.btn-danger { color: var(--bad); }
.btn-danger:hover { border-color: var(--bad); color: var(--bad); }
.btn-sm { padding: 6px 12px; font-size: .875rem; border-radius: 8px; }
.btn-block { width: 100%; }
.inline-form { display: inline; margin: 0; }

/* ---------- Landing ---------- */
.landing { padding-bottom: 32px; }
.hero { background: radial-gradient(1200px 500px at 85% -10%, #1d4d8f 0%, transparent 60%), var(--navy); color: #fff; }
.hero-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 80px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -.5px; }
.eyebrow { text-transform: uppercase; letter-spacing: 1.5px; font-size: .78rem; font-weight: 700; color: var(--teal); margin-bottom: .4rem; }
.hero .eyebrow { color: var(--accent); }
.lead { font-size: 1.15rem; color: #c7d5ea; max-width: 40em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0; }
.stat { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 20px; }
.stat dt { color: #a9bcd8; font-size: .85rem; }
.stat dd { margin: 4px 0 0; font-size: 1.9rem; font-weight: 800; }

.section { padding-top: 64px; }
.section-title { text-align: center; font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 28px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.feature h3 { font-size: 1.1rem; }
.feature p { color: var(--muted); margin: 0; }
.section-sub { text-align: center; color: var(--muted); max-width: 46em; margin: -16px auto 28px; }
.feature-grid-4 { grid-template-columns: repeat(4, 1fr); }
.feature-icon { display: inline-flex; width: 44px; height: 44px; border-radius: 12px; background: #fff4dc; color: #b86e00; align-items: center; justify-content: center; margin-bottom: 12px; }
.feature-icon svg { width: 24px; height: 24px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step-num { display: inline-flex; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; align-items: center; justify-content: center; margin-bottom: 12px; }
.hero-side { min-width: 0; }
.partner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: start; background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; border-radius: var(--radius); padding: 36px; }
.partner-copy p { color: #c7d5ea; }
.partner-copy a { color: var(--accent); }
.partner-form { color: var(--ink); margin: 0; }
.checks { list-style: none; padding: 0; margin: 0 0 20px; }
.checks li { padding-left: 28px; position: relative; margin-bottom: 8px; }
.checks li::before { content: "\2713"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.form-note { margin: 12px 0 0; }
.compare-table { background: var(--card); border-radius: var(--radius); }
.compare-table th[scope=row] { font-weight: 700; }
.compare-table td { color: var(--muted); }
.compare-table .us { background: #fff8ea; color: var(--ink); font-weight: 600; border-left: 3px solid var(--accent); }
.check-form .field-grid { margin-bottom: 4px; }
.match-list { margin: 0; padding-left: 20px; }
.match-list li { margin-bottom: 6px; }
.compare { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 18px; }
.rank-meter { width: 100%; height: 18px; margin: 6px 0 8px; }
.compare-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.compare-grid div { background: #f5f7fb; border-radius: 10px; padding: 12px; display: flex; flex-direction: column; }
.compare-grid b { font-size: 1.25rem; }
.gap-callout { margin-top: 22px; background: #fff4dc; border: 1px solid #f3dca6; border-radius: var(--radius); padding: 20px; }
.gap-callout p { margin-bottom: 8px; }
.hero-check { margin-top: 28px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); padding: 18px; max-width: 34em; }
.hero-check label { display: block; font-weight: 700; margin-bottom: 8px; }
.hero-check-row { display: flex; gap: 8px; }
.hero-check-row input { flex: 1; min-width: 0; }
.hero-check p { color: #a9bcd8; font-size: .85rem; margin: 8px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.portal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 18px; }
.portal-card {
    display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 24px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .15s, border-color .15s, box-shadow .15s;
}
.portal-card:hover { transform: translateY(-3px); border-color: var(--accent); color: var(--ink); box-shadow: 0 10px 30px rgba(16,31,58,.12); }
.portal-card p { color: var(--muted); font-size: .95rem; flex: 1; }
.portal-icon { display: inline-flex; width: 48px; height: 48px; border-radius: 12px; background: #eef3fb; color: var(--navy-2); align-items: center; justify-content: center; margin-bottom: 14px; flex: none; }
.portal-svg { width: 26px; height: 26px; }
.portal-cta { font-weight: 700; color: #1957b8; }
.install-band { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; border-radius: var(--radius); padding: 32px; }
.install-band p { color: #c7d5ea; margin: 0; max-width: 52em; }

/* ---------- Auth ---------- */
.auth-page { display: flex; align-items: flex-start; justify-content: center; padding: 48px 16px; }
.auth-wrap { width: 100%; max-width: 440px; }
.auth-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 32px; box-shadow: var(--shadow); }
.auth-head { display: flex; gap: 14px; align-items: center; margin-bottom: 8px; }
.auth-head .portal-icon { margin: 0; }
.auth-head h1 { font-size: 1.5rem; margin: 0; }
.auth-head .eyebrow { margin: 0; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 18px; border: 0; padding: 0; }
.field label, .field legend { font-weight: 600; font-size: .92rem; padding: 0; }
input, select, textarea {
    font: inherit; color: inherit; width: 100%; padding: 10px 12px; border: 1px solid #cdd5e1; border-radius: 10px; background: #fff;
}
textarea { resize: vertical; }
.field-error { color: var(--bad); font-size: .85rem; }
.field-error:empty { display: none; }
.input-validation-error { border-color: var(--bad); }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.choice { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-weight: 500; cursor: pointer; }
.choice input { width: auto; margin: 0; }
.choice:has(input:checked) { border-color: var(--accent); background: #fff8ea; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.filters input, .filters select { width: auto; flex: 1 1 160px; padding: 8px 10px; }
.filters input[type=search] { flex: 2 1 220px; }
[hidden] { display: none !important; }

/* ---------- Alerts & badges ---------- */
.alert { border-radius: 10px; padding: 12px 16px; margin: 0 0 18px; border: 1px solid transparent; }
.alert ul { margin: 0; padding-left: 18px; }
.alert-error { background: var(--bad-bg); color: #7d1f17; border-color: #f6c3bd; }
.alert-success { background: var(--good-bg); color: #0d5a36; border-color: #b7e4cb; }
.alert-warn { background: var(--warn-bg); color: var(--warn); border-color: #f3dca6; }
.validation-summary-valid { display: none; }
.temp-password code { display: inline-block; font-size: 1.25rem; background: #fff; border: 1px dashed var(--warn); border-radius: 8px; padding: 6px 12px; margin: 4px 0 8px; user-select: all; }
.temp-password p { margin: 0; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: #eef2f8; color: #34445c; white-space: nowrap; }
.badge-good { background: var(--good-bg); color: var(--good); }
.badge-bad { background: var(--bad-bg); color: var(--bad); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-info { background: #e6efff; color: #1d4fa8; }

/* ---------- Locations search ---------- */
.search-form fieldset { border: 0; padding: 0; margin: 0 0 14px; }
.search-form legend { font-weight: 700; font-size: .9rem; margin-bottom: 8px; padding: 0; }
.check-group { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.check-group legend { width: 100%; }
.check { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; font-size: .92rem; font-weight: 600; }
.check input { width: auto; margin: 0; accent-color: var(--brand, #0b1f3a); }
.check:has(input:checked) { border-color: var(--accent); background: #fff8ea; }
.search-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 14px; }
.search-fields label { display: flex; flex-direction: column; gap: 5px; font-size: .85rem; font-weight: 600; color: var(--muted); }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Update notice ---------- */
.update-banner { background: var(--good-bg); border-bottom: 1px solid #b7e4cb; color: #0d5a36; }
.update-banner-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; font-size: .92rem; }
.update-banner-actions { display: flex; align-items: center; gap: 12px; }
.update-banner a { color: #0d5a36; font-weight: 700; }
.release ul { margin: 6px 0 0; padding-left: 20px; }
.release li { margin: 4px 0; }
#location-results { transition: opacity .15s; }
#location-results.is-loading { opacity: .55; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.trend-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 4px 0 14px; }
.trend-stat { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.trend-stat b { display: block; font-size: 1.2rem; }
.trend-stat span { color: var(--muted); font-size: .8rem; font-weight: 600; }
.change-list { list-style: none; margin: 0; padding: 0; }
.change-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.change-list li:last-child { border-bottom: 0; }
.field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 18px; }

/* ---------- Dashboard ---------- */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { margin-bottom: .2rem; }
.page-head p { margin: 0; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 22px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.kpi-label { color: var(--muted); font-size: .82rem; font-weight: 600; }
.kpi-value { font-size: 1.55rem; font-weight: 800; margin-top: 2px; }
.kpi-value small { font-size: .9rem; color: var(--muted); font-weight: 600; }
.kpi-sub { color: var(--muted); font-size: .8rem; }
/* Columns of two stacked boxes (dashboard). Each pair stays together when the screen narrows. */
.kpis.kpi-columns { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-bottom: 8px; }
.kpi-stack { display: flex; flex-direction: column; gap: 14px; }
.kpi-stack .kpi { flex: 1; }
.kpi-note { margin: 0 0 22px; }
.up { color: var(--good); }
.down { color: var(--bad); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); margin-bottom: 22px; }
.card-accent { border-left: 4px solid var(--accent); }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.card-head .filters { margin: 0; }
.narrow { max-width: 560px; }
.two-col { display: grid; grid-template-columns: 1.1fr 1fr; gap: 22px; align-items: start; }
.empty { padding: 28px; text-align: center; color: var(--muted); background: #fafbfd; border: 1px dashed var(--line); border-radius: 10px; }
.empty-state { text-align: center; padding: 64px 16px; }

.tabs { display: inline-flex; background: #e9eef6; border-radius: 10px; padding: 4px; gap: 4px; flex-wrap: wrap; }
.tab { padding: 7px 14px; border-radius: 8px; text-decoration: none; color: #34445c; font-weight: 600; font-size: .9rem; }
.tab.active { background: #fff; color: var(--ink); box-shadow: var(--shadow); }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; }
table.data { width: 100%; border-collapse: collapse; font-size: .94rem; }
table.data th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); font-weight: 700; padding: 10px 12px; border-bottom: 2px solid var(--line); white-space: nowrap; }
table.data td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data tbody tr:hover { background: #fafcff; }
table.data .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.row-actions { white-space: nowrap; }
.row-actions .inline-form + .inline-form { margin-left: 6px; }
/* Earnings grid: Year | Jan..Dec | Total */
.earnings .filters select { min-width: 260px; }
table.earnings-grid { font-size: .88rem; min-width: 980px; }
table.earnings-grid th, table.earnings-grid td { padding: 9px 10px; }
table.earnings-grid tbody th { font-size: .95rem; color: var(--ink); text-transform: none; letter-spacing: 0; border-bottom: 1px solid var(--line); }
table.earnings-grid tbody tr:nth-child(even) { background: #f8fafd; }
table.earnings-grid tr.current th { color: var(--accent); }
table.earnings-grid tr > :first-child { position: sticky; left: 0; background: var(--card); z-index: 1; box-shadow: 1px 0 0 var(--line); }
table.earnings-grid tbody tr:nth-child(even) > :first-child { background: #f8fafd; }
table.earnings-grid .total { font-weight: 800; background: #eef4ff; border-left: 2px solid var(--line); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pager { display: flex; justify-content: center; align-items: center; gap: 18px; padding-top: 16px; }

.lead-list, .contact-list, .timeline { list-style: none; margin: 0; padding: 0; }
.lead-list li, .contact-list li, .timeline li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.lead-list li:last-child, .contact-list li:last-child, .timeline li:last-child { border-bottom: 0; }
.timeline p { margin: 6px 0 0; white-space: pre-line; }

/* ---------- Chart ---------- */
.chart { margin: 0; }
.chart svg { width: 100%; height: auto; display: block; }
.chart .grid { stroke: #e8edf4; stroke-width: 1; }
.chart .axis { fill: #7a879a; font-size: 11px; }
.chart .bar { fill: #2f6fd0; }
.chart .bar:hover { fill: #1d4f9e; }
.chart .peer-line { fill: none; stroke: var(--accent); stroke-width: 2.5; }
.chart .peer-dot { fill: #fff; stroke: var(--accent); stroke-width: 2; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); margin-top: 8px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.key { display: inline-block; width: 14px; height: 10px; border-radius: 2px; }
.key-bar { background: #2f6fd0; }
.key-line { background: var(--accent); height: 3px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: #fff; padding: 18px 0; font-size: .875rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
/* Phones and tablets: the links fold into a menu opened by the menu button (theme.js). */
@media (max-width: 1320px) {
    .topbar { background-position: left top; background-size: 100% 60px; }   /* graph stays bar-height when the menu opens */
    .topbar-inner { min-height: 60px; gap: 10px; }
    .brand-logo { height: 50px; }
    .topbar-tools { order: 2; margin-left: auto; }
    .nav-toggle { display: inline-flex; }
    .topnav { order: 3; width: 100%; margin: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 0 0 14px; }
    .js .topnav { display: none; }
    .js .topbar.nav-open .topnav { display: flex; }
    .topnav a { padding: 12px 4px; font-size: 1rem; border-top: 1px solid rgba(255,255,255,.1); }
    .topnav a.btn, .topnav .inline-form .btn { margin-top: 10px; padding: 12px; width: 100%; border: 1px solid rgba(255,255,255,.35); }
    .topnav a.btn-primary { border-color: var(--accent); }
    .topnav .inline-form { display: block; }
    .topnav .nav-user, .topbar .topnav .nav-user { display: block; border-left: 0; padding: 12px 4px 4px; border-top: 1px solid rgba(255,255,255,.1); }
    .topbar.nav-open { max-height: 100vh; overflow-y: auto; }
}
@media (max-width: 960px) {
    .portal-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
    .partner { grid-template-columns: 1fr; padding: 24px; }
    .hero-inner { grid-template-columns: 1fr; gap: 32px; padding-top: 48px; padding-bottom: 56px; }
    .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .feature-grid, .feature-grid-4, .steps, .portal-grid, .compare-grid { grid-template-columns: 1fr; }
    .hero-check-row { flex-direction: column; }
    .nav-user { display: none; }
    .card { padding: 16px; }
    .kpis, .kpis.kpi-columns { grid-template-columns: 1fr 1fr; gap: 10px; }
    .kpi-stack { gap: 10px; }
    .kpi { padding: 12px 14px; }
    .kpi-value { font-size: 1.25rem; }
    .auth-card { padding: 22px; }
    .page { padding-top: 20px; }
}
@media (display-mode: standalone) {
    .topbar { padding-top: env(safe-area-inset-top); }
}

/* ---------- Light / dark switch (button in the top bar; js/theme.js sets data-theme on <html>) ---------- */
.theme-toggle {
    display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0;
    border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; cursor: pointer;
}
.theme-toggle:hover { border-color: #fff; }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
[data-theme=dark] .theme-toggle .icon-sun { display: block; }
[data-theme=dark] .theme-toggle .icon-moon { display: none; }

[data-theme=dark] {
    --navy: #07152a;
    --navy-2: #0f2748;
    --ink: #e6ecf5;
    --muted: #9aa8bd;
    --line: #2a3a52;
    --bg: #0d1726;
    --card: #142236;
    --accent-ink: #2a1a00;
    --good-bg: #0f3324;
    --bad-bg: #3d1714;
    --warn-bg: #3a2c0c;
    --warn: #f3c66b;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 4px 16px rgba(0,0,0,.3);
    color-scheme: dark;
}
[data-theme=dark] a { color: #7fb0ff; }
[data-theme=dark] a:hover { color: #a9c9ff; }
[data-theme=dark] .topnav a { color: #d6e2f5; }
[data-theme=dark] .topnav a.btn-primary, [data-theme=dark] a.btn-primary { color: var(--accent-ink); }
[data-theme=dark] .btn { background: #1b2c44; border-color: var(--line); color: var(--ink); }
[data-theme=dark] .btn:hover { border-color: #46597a; color: var(--ink); }
[data-theme=dark] .btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
[data-theme=dark] .btn-ghost-light { background: transparent; border-color: rgba(255,255,255,.35); color: #fff; }
[data-theme=dark] input, [data-theme=dark] select, [data-theme=dark] textarea { background: #0f1b2c; border-color: #33465f; color: var(--ink); }
[data-theme=dark] .portal-icon { background: #1c2f4a; color: #a9c9ff; }
[data-theme=dark] .feature-icon { background: #3a2c0c; color: #f5b54a; }
[data-theme=dark] .alert-error { color: #ffb4ab; border-color: #6b2620; }
[data-theme=dark] .alert-success { color: #9be3bd; border-color: #1f5a3d; }
[data-theme=dark] .alert-warn { border-color: #5c4614; }
[data-theme=dark] .badge { background: #22334c; color: #c8d4e6; }
[data-theme=dark] .badge-info { background: #1a2f55; color: #a9c9ff; }
[data-theme=dark] .check, [data-theme=dark] .tab.active { background: #1b2c44; }
[data-theme="dark"] .choice:has(input:checked), [data-theme="dark"] .check:has(input:checked) { background: #3a2c0c; }
[data-theme=dark] .tabs { background: #0f1b2c; }
[data-theme=dark] .tab { color: #c8d4e6; }
[data-theme=dark] .empty { background: #101d30; }
[data-theme=dark] table.data tbody tr:hover { background: #1a2a40; }
[data-theme="dark"] table.earnings-grid tbody tr:nth-child(even),
[data-theme="dark"] table.earnings-grid tbody tr:nth-child(even) > :first-child { background: #17273d; }
[data-theme=dark] table.earnings-grid .total { background: #1a2f55; }
[data-theme=dark] .compare-table .us { background: #2b230f; }
[data-theme=dark] .compare-grid div { background: #0f1b2c; }
[data-theme=dark] .gap-callout { background: #2b230f; border-color: #5c4614; }
[data-theme=dark] .chart .grid { stroke: #2a3a52; }
[data-theme=dark] .chart .axis { fill: #9aa8bd; }
[data-theme=dark] .chart .bar, [data-theme=dark] .key-bar { fill: #4d8ef0; background: #4d8ef0; }
[data-theme=dark] .chart .peer-dot { fill: var(--card); }
[data-theme=dark] .temp-password code { background: #0f1b2c; }
[data-theme=dark] .update-banner, [data-theme=dark] .update-banner a { color: #9be3bd; border-color: #1f5a3d; }
[data-theme=dark] .footer { background: #0a1322; }

/* ---------- Light mode: light top bar and home page header (dark mode keeps the navy look) ---------- */
[data-theme=light] .topbar {
    background: url("/icons/header-graph.svg") left bottom / 100% 100% no-repeat, #ffffff;
    color: var(--ink); border-bottom: 1px solid var(--line); box-shadow: 0 2px 10px rgba(16,31,58,.06);
}
[data-theme=light] .topnav a { color: #34445c; }
[data-theme=light] .topnav a:hover { color: var(--navy); }
[data-theme=light] .topnav a.btn-primary { color: var(--accent-ink); }
[data-theme=light] .topbar .btn-ghost-light { border-color: #c4cddb; color: var(--ink); }
[data-theme=light] .topbar .btn-ghost-light:hover { border-color: var(--navy); color: var(--navy); }
[data-theme=light] .nav-user { color: var(--muted); border-left-color: var(--line); }
[data-theme=light] .theme-toggle, [data-theme=light] .nav-toggle { border-color: #c4cddb; color: var(--navy); }
[data-theme=light] .theme-toggle:hover, [data-theme=light] .nav-toggle:hover { border-color: var(--navy); }

[data-theme=light] .hero {
    background: radial-gradient(1200px 500px at 85% -10%, #dbe8fb 0%, transparent 60%), linear-gradient(180deg, #f3f7fd 0%, #e8f0fb 100%);
    color: var(--ink); border-bottom: 1px solid var(--line);
}
[data-theme=light] .hero .eyebrow { color: #b86e00; }
[data-theme=light] .hero .lead { color: #46556b; }
[data-theme=light] .hero .btn-ghost-light { border-color: #c4cddb; color: var(--ink); background: #fff; }
[data-theme=light] .hero .btn-ghost-light:hover { border-color: var(--navy); }
[data-theme=light] .stat { background: #ffffff; border-color: var(--line); box-shadow: var(--shadow); }
[data-theme=light] .stat dt { color: var(--muted); }
[data-theme=light] .stat dd { color: var(--navy); }
[data-theme=light] .hero-check { background: #ffffff; border-color: var(--line); box-shadow: var(--shadow); }
[data-theme=light] .hero-check p { color: var(--muted); }

@media (max-width: 1320px) {
    [data-theme=light] .topbar { background-position: left top; background-size: 100% 60px; }
    [data-theme=light] .topnav a, [data-theme=light] .topbar .topnav .nav-user { border-top-color: var(--line); }
    [data-theme=light] .topnav a.btn { border: 1px solid #c4cddb; }
    [data-theme=light] .topnav a.btn-primary { border-color: var(--accent); }
}
/* Light mode: the "Want a closer look" band and other navy panels turn light too, so the whole site switches. */
[data-theme=light] .partner, [data-theme=light] .install-band {
    background: linear-gradient(120deg, #eef4fc 0%, #e3edfb 100%); color: var(--ink); border: 1px solid var(--line);
}
[data-theme=light] .partner-copy p, [data-theme=light] .install-band p { color: #46556b; }
[data-theme=light] .partner-copy a { color: #1957b8; }
[data-theme=light] .checks li::before { color: #b86e00; }
/* Dark mode: numbered steps stand out on dark cards. */
[data-theme=dark] .step-num { background: var(--accent); color: var(--accent-ink); }
/* ---------- Navigation links: easy to spot, highlighted for the page / section you're on ---------- */
.topnav { gap: 4px 6px; }
.topnav a:not(.btn) {
    padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: 1rem; color: #e6eefb;
    transition: background .15s, color .15s, box-shadow .15s;
}
.topnav a:not(.btn):hover { background: rgba(255,255,255,.12); color: #fff; }
.topnav a:not(.btn).active { background: rgba(245,165,36,.18); color: #ffc15c; box-shadow: inset 0 -2px 0 var(--accent); }
.topnav .btn { font-size: .95rem; padding: 8px 14px; }
.topnav .btn.active { box-shadow: 0 0 0 3px rgba(245,165,36,.45); }
[data-theme="light"] .topnav a:not(.btn) { color: #1f2d44; }
[data-theme="light"] .topnav a:not(.btn):hover { background: #eef3fb; color: var(--navy); }
[data-theme="light"] .topnav a:not(.btn).active { background: #fff4dc; color: #8a5a00; box-shadow: inset 0 -2px 0 var(--accent); }
@media (max-width: 1320px) {
    .topnav a:not(.btn) { padding: 12px 10px; border-radius: 0; }
    .topnav a:not(.btn).active { box-shadow: inset 3px 0 0 var(--accent); }
    [data-theme="light"] .topnav a:not(.btn).active { box-shadow: inset 3px 0 0 var(--accent); }
}
/* ---------- State picker (top bar) and state-shaped logos ---------- */
.hero-logo { width: auto; max-width: min(380px, 100%); max-height: 300px; height: auto; }
.auth-logo { width: auto; max-width: 200px; max-height: 120px; height: auto; }
.brand-logo { width: auto; max-width: 140px; object-fit: contain; }
.state-picker { display: flex; align-items: center; gap: 6px; margin: 0; }
.state-picker select {
    width: auto; padding: 7px 10px; font-size: .95rem; font-weight: 600; border-radius: 8px; cursor: pointer;
    background-color: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.35);
}
.state-picker select:hover { border-color: #fff; }
.state-picker option { color: #142033; background: #fff; }
[data-theme=light] .state-picker select { background-color: #fff; color: var(--ink); border-color: #c4cddb; }
[data-theme=light] .state-picker select:hover { border-color: var(--navy); }
@media (max-width: 1320px) {
    .brand-logo { max-width: 100px; }
    .state-picker select { padding: 6px 8px; font-size: .9rem; }
}
/* ---------- Fixed logo box: every state logo fits the same space, so the menu never shifts ---------- */
.topbar .brand { flex: none; width: 128px; height: 60px; margin: 4px 0; display: flex; align-items: center; justify-content: center; }
.topbar .brand-logo { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; margin: 0; object-fit: contain; }
.topbar .state-picker select { width: 140px; }
@media (max-width: 1320px) {
    .topbar .brand { width: 96px; height: 50px; }
    .topbar .state-picker select { width: 122px; }
}
/* ---------- v17: clean navigation bar + "Free revenue check" growth button ---------- */
.topbar, [data-theme=dark] .topbar { background: var(--navy); }
[data-theme=light] .topbar { background: #ffffff; }
@media (max-width: 1320px) { .topbar, [data-theme=light] .topbar { background-image: none; } }

/* Green pill with three rising bars: says "grow your earnings" and leads to the free revenue check. */
.topnav a.grow-btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; font-weight: 700;
    background: rgba(61,220,104,.14); border: 1px solid rgba(61,220,104,.55); color: #bbf7d0;
}
.topnav a.grow-btn:hover { background: rgba(61,220,104,.24); border-color: #4ade80; color: #ffffff; }
.topnav a.grow-btn.active { box-shadow: 0 0 0 3px rgba(61,220,104,.35); }
.grow-icon { width: 16px; height: 16px; fill: #4ade80; flex: none; }
.grow-icon rect { transform-box: fill-box; transform-origin: bottom; }
.grow-btn:hover .grow-icon rect { animation: vgp-grow .6s ease-out both; }
.grow-btn:hover .grow-icon rect:nth-child(2) { animation-delay: .08s; }
.grow-btn:hover .grow-icon rect:nth-child(3) { animation-delay: .16s; }
@keyframes vgp-grow { from { transform: scaleY(.3); } to { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .grow-btn:hover .grow-icon rect { animation: none; } }
[data-theme=light] .topnav a.grow-btn { background: #e3f6ec; border-color: #7fd3a4; color: #0d5a36; }
[data-theme=light] .topnav a.grow-btn:hover { background: #cdeedb; border-color: #138a52; color: #0a4a2c; }
[data-theme=light] .grow-icon { fill: #138a52; }
@media (max-width: 1320px) {
    .topnav a.grow-btn { justify-content: center; margin-top: 10px; padding: 12px; width: 100%; border-radius: 10px; }
    [data-theme=light] .topnav a.grow-btn { border: 1px solid #7fd3a4; }
}
/* ---------- DK Gaming logo: black lettering in light mode, white lettering in dark mode ---------- */
.logo-for-dark { display: none !important; }
[data-theme=dark] .logo-for-dark { display: block !important; }
[data-theme=dark] .logo-for-light { display: none !important; }
.hero-logo.logo-for-light, .hero-logo.logo-for-dark { margin-left: auto; margin-right: auto; }
.auth-logo.logo-for-light, .auth-logo.logo-for-dark { margin-left: auto; margin-right: auto; }
/* ---------- Illinois gaming numbers page (laid out like the old dkgamingllc.com gaming page) ---------- */
.gaming-summary { font-variant: small-caps; margin: 8px 0 28px; }
.gs-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 1.05rem; margin: 0 0 8px; }
.gs-month { width: auto; font-variant: small-caps; font-weight: 800; font-size: 1.05rem; padding: 4px 8px; }
.gs-dash { color: var(--muted); }
.gs-small { color: var(--muted); }
.gs-list { margin: 0; padding-left: 22px; font-size: 1.05rem; line-height: 1.7; }
.gs-list b, .gs-head b { color: var(--ink); font-variant: normal; font-weight: 800; }
.gaming-eval { margin: 0 0 30px; }
.gaming-eval h2 { font-size: 1.3rem; color: var(--good); text-decoration: underline; margin-bottom: 12px; }
.gaming-eval-form { display: flex; gap: 0; max-width: 620px; }
.gaming-eval-form input { flex: 1; min-width: 0; border-radius: 10px 0 0 10px; }
.eval-btn { border-radius: 0 10px 10px 0; background: #7ed321; border-color: #7ed321; color: #fff; text-transform: uppercase; font-size: .85rem; letter-spacing: .5px; padding: 10px 26px; }
.eval-btn:hover { background: #6cbf15; border-color: #6cbf15; color: #fff; }
/* Row above the list: sign-in bubble (left, takes the free width) + "Illinois  25 Per Page" (right, over Earned). */
.gl-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 16px; margin: 6px 0 10px; }
.gl-bar > .unlock-bar, .gl-bar > .unlocked-note { flex: 1 1 520px; min-width: 0; margin: 0; }
.gl-top { display: flex; align-items: center; gap: 10px; margin-left: auto; flex: 0 0 auto; }
.gl-state { font-variant: small-caps; color: var(--muted); }
.gl-per { width: auto; }
table.gaming-list { width: 100%; border-collapse: collapse; font-variant: small-caps; }
table.gaming-list th { text-align: left; vertical-align: bottom; padding: 6px 8px 10px; font-size: .78rem; font-weight: 700; color: var(--muted); letter-spacing: .3px; }
table.gaming-list th input, table.gaming-list th select { margin-top: 6px; font-variant: normal; }
.gl-label { margin-left: 2px; }
table.gaming-list td { padding: 8px; vertical-align: top; border-top: 1px solid #c0392b33; border-left: 1px solid var(--line); }
table.gaming-list td:first-child { border-left: 0; }
table.gaming-list tbody tr:nth-child(even) { background: rgba(127,127,127,.09); }
.gl-dba { font-weight: 700; color: var(--ink); text-decoration: none; }
a.gl-dba:hover { color: #1957b8; text-decoration: underline; }
.gl-legal, .gl-city { padding-left: 14px; color: var(--muted); }
.gl-month { color: var(--muted); }
.gl-amount { font-weight: 800; font-variant: normal; color: var(--good); }
.sort-btn { background: none; border: 0; padding: 0 2px; font: inherit; font-size: .95rem; color: var(--good); cursor: pointer; }
.sort-btn.sorted { color: var(--accent); }
#g-rows { transition: opacity .15s; }
#g-rows.is-loading { opacity: .5; }
.pager .btn:disabled { opacity: .45; cursor: default; }
/* Phones: the column headers become a stack of search boxes, and each location a small card. */
@media (max-width: 760px) {
    table.gaming-list, table.gaming-list thead, table.gaming-list tbody, table.gaming-list tr,
    table.gaming-list th, table.gaming-list td { display: block; width: 100%; }
    table.gaming-list thead tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; margin-bottom: 8px; }
    table.gaming-list th { padding: 4px 0; }
    table.gaming-list tbody tr { border-top: 1px solid var(--line); padding: 10px 0; }
    table.gaming-list td { border: 0; padding: 1px 0; }
    table.gaming-list td.gl-type { color: var(--muted); }
    table.gaming-list td.gl-earned { display: flex; gap: 8px; align-items: baseline; }
    .gaming-eval-form { flex-direction: column; gap: 8px; }
    .gaming-eval-form input, .eval-btn { border-radius: 10px; }
}/* Prominent "Gaming numbers" link in the navigation */
.topnav a.nav-gaming { color: #ffc15c; font-weight: 800; }
.topnav a.nav-gaming::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #4ade80; margin-right: 7px; vertical-align: middle; box-shadow: 0 0 0 3px rgba(74,222,128,.25); }
[data-theme=light] .topnav a.nav-gaming { color: #8a5a00; }
/* Navigation spacing: keep every link on one line on desktop (the menu button takes over at 1200px and below). */
@media (min-width: 1321px) {
    .topnav { gap: 2px 2px; }
    .topnav a:not(.btn) { padding: 8px 9px; font-size: .95rem; }
    .topnav a.grow-btn { padding: 8px 13px; margin-left: 4px; }
}
/* ---------- Earnings grid that opens under a location (like the old page) ---------- */
button.gl-dba { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--ink); text-align: left; cursor: pointer; font-variant: small-caps; }
button.gl-dba:hover, .gl-open button.gl-dba { color: #1957b8; text-decoration: underline; }
table.gaming-list tr.gl-open > td { background: rgba(126,211,33,.10); }
tr.gh-row > td { padding: 0 0 14px; border-left: 0; }
.gh-box { background: #d9f7cf; border: 1px solid #b6e3a6; border-radius: 8px; padding: 10px 12px; color: #14301b; font-variant: normal; }
.gh-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; font-size: .9rem; }
.gh-lic { font-weight: 700; }
.gh-check { font-size: .85rem; color: #1957b8; }
.gh-op { text-align: right; }
.gh-opnum { font-weight: 700; }
.gh-opname { font-style: italic; font-weight: 700; }
table.gh-grid { width: 100%; min-width: 860px; border-collapse: collapse; font-size: .9rem; }
table.gh-grid th { text-align: left; font-variant: small-caps; font-weight: 800; padding: 4px 6px; border-bottom: 2px solid #8fcf7a; color: #14301b; }
table.gh-grid th.num, table.gh-grid td.num { text-align: right; }
table.gh-grid tbody th { border-bottom: 1px solid #b6e3a6; }
table.gh-grid td { padding: 4px 6px; border-bottom: 1px solid #b6e3a6; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.gh-grid td.gh-total { font-weight: 800; }
[data-theme=dark] .gh-box { background: #12301d; border-color: #1f5a3d; color: #d6f5dc; }
[data-theme=dark] table.gh-grid th { color: #bbf7d0; border-bottom-color: #2f7a4f; }
[data-theme=dark] table.gh-grid td, [data-theme=dark] table.gh-grid tbody th { border-bottom-color: #1f5a3d; }
[data-theme=dark] .gh-check { color: #7fb0ff; }
[data-theme=dark] button.gl-dba:hover, [data-theme=dark] .gl-open button.gl-dba { color: #7fb0ff; }
@media (max-width: 760px) {
    tr.gh-row > td { padding: 4px 0 12px; }
    .gh-op { text-align: left; }
}/* The grid sits inside the location list: undo the list's own table styles for it. */
table.gaming-list table.gh-grid { display: table; width: 100%; }
table.gaming-list table.gh-grid thead { display: table-header-group; }
table.gaming-list table.gh-grid tbody { display: table-row-group; }
table.gaming-list table.gh-grid tr { display: table-row; padding: 0; border: 0; background: transparent; }
table.gaming-list table.gh-grid th, table.gaming-list table.gh-grid td { display: table-cell; width: auto; border-top: 0; border-left: 0; padding: 4px 6px; }
table.gaming-list tbody tr.gh-row { background: transparent; }
@media (max-width: 760px) {
    table.gaming-list tbody tr.gh-row { border-top: 0; padding: 0 0 12px; }
    table.gaming-list table.gh-grid { min-width: 860px; }
}
/* ---------- Gaming numbers: email sign-in to see the amounts ---------- */
.unlock-bar { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: center; background: #fff4dc; border: 1px solid #f3dca6; border-radius: var(--radius); padding: 14px 16px; margin: 6px 0 12px; }
.unlock-bar .alert { grid-column: 1 / -1; margin: 0; }
.unlock-text { color: #5c3d00; }
.unlock-form { display: flex; gap: 8px; }
.unlock-form input { width: 240px; }
.unlock-alt { grid-column: 1 / -1; margin: 0; color: #5c3d00; }
.xxx { font-weight: 800; letter-spacing: 1px; color: var(--muted); text-decoration: none; font-variant: normal; }
a.xxx:hover { color: #b86e00; text-decoration: underline; }
.unlocked-note { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: .9rem; color: var(--good); margin: 4px 0 10px; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: #1957b8; text-decoration: underline; cursor: pointer; }
[data-theme=dark] .unlock-bar { background: #2b230f; border-color: #5c4614; }
[data-theme=dark] .unlock-text, [data-theme=dark] .unlock-alt { color: #f3d9a4; }
[data-theme=dark] .link-btn { color: #7fb0ff; }
/* Narrower Earned column, so the address column has room for its search box */
table.gaming-list th.gl-earned-col { width: 118px; }
table.gaming-list th.gl-earned-col input { width: 100px; }
.gl-addr-search { margin-top: 6px; }
@media (max-width: 760px) {
    .unlock-bar { grid-template-columns: 1fr; }
    .unlock-form { flex-direction: column; }
    .unlock-form input { width: 100%; }
    table.gaming-list th.gl-earned-col, table.gaming-list th.gl-earned-col input { width: 100%; }
}
/* ---------- Before signing in: red "click here" arrow and "Sign in to see #'s" ---------- */
.gl-arrow {
    display: inline-flex; align-items: center; gap: 5px; margin: 0 8px 4px 0; padding: 3px 10px 3px 6px;
    background: #d62828; color: #fff; border: 0; border-radius: 999px; font: inherit; font-size: .78rem; font-weight: 800;
    font-variant: normal; text-transform: uppercase; letter-spacing: .4px; cursor: pointer; vertical-align: middle;
    box-shadow: 0 0 0 0 rgba(214,40,40,.6); animation: vgp-pulse 1.8s ease-out infinite;
}
.gl-arrow:hover { background: #b51f1f; }
.gl-arrow-icon { display: inline-block; font-size: 1rem; animation: vgp-nudge 1s ease-in-out infinite; }
@keyframes vgp-pulse { 0% { box-shadow: 0 0 0 0 rgba(214,40,40,.55); } 70% { box-shadow: 0 0 0 9px rgba(214,40,40,0); } 100% { box-shadow: 0 0 0 0 rgba(214,40,40,0); } }
@keyframes vgp-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(3px); } }
@media (prefers-reduced-motion: reduce) { .gl-arrow, .gl-arrow-icon { animation: none; } }
.gh-signin { display: inline-block; background: #d62828; color: #fff !important; font-weight: 800; padding: 6px 14px; border-radius: 8px; text-decoration: none; }
.gh-signin:hover { background: #b51f1f; }
.xxx { white-space: nowrap; letter-spacing: 0; }
table.gh-grid td .xxx { font-size: .85rem; }/* Keep the list's columns fixed so a wide earnings grid scrolls inside its own box instead of widening the page. */
@media (min-width: 761px) {
    table.gaming-list { table-layout: fixed; }
    table.gaming-list .gh-box { overflow: hidden; }
}
table.gh-grid td .xxx { font-size: .78rem; }
/* Signed in with a confirmed email: "Locations" link (full numbers) */
.topnav a.nav-unlocked::before { background: #4ade80; box-shadow: 0 0 0 3px rgba(74,222,128,.35); }/* Long email addresses in the navigation are shortened with "..." (the full address shows on hover). */
@media (min-width: 1321px) {
    .topnav .nav-user { display: inline-block; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; padding-left: 10px; }
}
/* ---------- Sign-in form inside an opened grid (before signing in) ---------- */
.gh-signin-box {
    position: relative; overflow: hidden; margin: 0 0 12px; padding: 18px 16px 14px; border-radius: 10px;
    background: #fff; border: 2px solid #d62828; text-align: center; isolation: isolate;
}
.gh-signin-box::before {   /* "Enter email to see numbers" written large and faint behind the form */
    content: attr(data-watermark); position: absolute; inset: 0; z-index: -1; display: flex; align-items: center; justify-content: center;
    font-size: clamp(1.4rem, 4vw, 2.6rem); font-weight: 900; text-transform: uppercase; letter-spacing: 1px; line-height: 1.1;
    color: rgba(214,40,40,.10); transform: rotate(-4deg); white-space: nowrap; pointer-events: none;
}
.gh-signin-title { margin: 0 0 10px; font-weight: 900; font-size: 1.15rem; color: #d62828; }
.gh-signin-form { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.gh-signin-form input[type=email] { width: 280px; max-width: 100%; background: rgba(255,255,255,.85); }
.gh-signin-note { margin: 8px 0 0; font-size: .82rem; color: #5d6b80; }
[data-theme=dark] .gh-signin-box { background: #142236; }
[data-theme=dark] .gh-signin-box::before { color: rgba(255,120,120,.12); }
[data-theme=dark] .gh-signin-form input[type=email] { background: rgba(15,27,44,.9); }
[data-theme=dark] .gh-signin-note { color: #9aa8bd; }
@media (max-width: 760px) {
    .gh-signin-form { flex-direction: column; }
    .gh-signin-form input[type=email] { width: 100%; }
}
/* ---------- v27: five search columns (label, then sort arrow + search box), like the old page ---------- */
table.gaming-list thead tr.gl-labels th {
    font-variant: small-caps; color: #1e5b2e; font-size: .9rem; font-weight: 800; letter-spacing: .3px;
    padding: 6px 8px 4px; vertical-align: bottom; border: 0;
}
table.gaming-list thead tr.gl-searches td { padding: 2px 8px 12px; border: 0; background: transparent; vertical-align: top; }
.gl-search { display: flex; align-items: center; gap: 6px; }
.gl-search input, .gl-search select { flex: 1; min-width: 0; margin: 0; font-variant: normal; }
.gl-search .sort-btn { flex: none; color: #1e5b2e; font-size: 1rem; }
.gl-search .sort-btn.sorted { color: var(--accent); }
.sort-btn.is-off { opacity: .3; cursor: default; }
.gl-search input:disabled { background: #f1f3f7; cursor: not-allowed; }
table.gaming-list td.gl-addr, table.gaming-list td.gl-city { color: var(--ink); }
[data-theme=dark] table.gaming-list thead tr.gl-labels th { color: #8fd4a0; }
[data-theme=dark] .gl-search .sort-btn { color: #8fd4a0; }
[data-theme=dark] .gl-search input:disabled { background: #0d1726; }
@media (min-width: 761px) {
    table.gaming-list > thead > tr.gl-labels > th:nth-child(1) { width: 30%; }
    table.gaming-list > thead > tr.gl-labels > th:nth-child(2) { width: 20%; }
    table.gaming-list > thead > tr.gl-labels > th:nth-child(3) { width: 17%; }
    table.gaming-list > thead > tr.gl-labels > th:nth-child(4) { width: 15%; }
    table.gaming-list > thead > tr.gl-labels > th:nth-child(5) { width: auto; }
}
@media (max-width: 760px) {
    table.gaming-list thead tr.gl-labels { display: none; }
    table.gaming-list thead tr.gl-searches { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; margin-bottom: 8px; }
    table.gaming-list thead tr.gl-searches td { padding: 0; }
    table.gaming-list td.gl-addr, table.gaming-list td.gl-city { display: inline; width: auto; color: var(--muted); }
    table.gaming-list td.gl-addr:not(:empty)::after { content: ","; }   /* v53: comma ends the street line, never starts the city line */
}
/* ---------- Back to top arrow (includes/footer.php, js/site.js) ---------- */
.to-top {
    position: fixed; right: 18px; bottom: 18px; z-index: 50;
    width: 46px; height: 46px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--accent); color: var(--accent-ink);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
    text-decoration: none; transition: transform .15s, background .15s;
}
.to-top:hover, .to-top:focus-visible { background: #ffb53d; color: var(--accent-ink); transform: translateY(-2px); }
.to-top:focus-visible { outline: 3px solid var(--navy-2); outline-offset: 2px; }
[data-theme=dark] .to-top, [data-theme=dark] .to-top:hover { color: var(--accent-ink); }
@media print { .to-top { display: none !important; } }

/* ---------- Continue with Google / Microsoft / Facebook (includes/social-buttons.php) ---------- */
.social-buttons { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 14px; }
.social-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
    background: #fff; color: #1f1f1f; border: 1px solid #c9d1dd; font-weight: 600; text-decoration: none; }
.social-btn:hover, .social-btn:focus-visible { background: #f3f6fa; color: #1f1f1f; border-color: #9aa8bd; }
.social-btn svg { flex: 0 0 auto; }
[data-theme=dark] .social-btn { background: #fff; color: #1f1f1f; }
.social-btn.social-apple, [data-theme=dark] .social-btn.social-apple { background: #000; color: #fff; border-color: #000; }   /* dkgaming.us v36 */
.social-btn.social-apple:hover, .social-btn.social-apple:focus-visible { background: #222; color: #fff; }
.gh-signin-box .social-buttons { margin: 4px 0 10px; }   /* v36: sign-in choices inside a location's numbers */
.gh-signin-or { margin: 6px 0; text-align: center; font-size: .9rem; color: var(--muted, #667); }
.gh-signin-more { margin-top: 6px; }
.or-line { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .85rem; margin: 4px 0 12px; }
.or-line::before, .or-line::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
/* Inside the yellow "Sign in to see #'s" bubble on the gaming page: the buttons sit in a row. */
.unlock-social { grid-column: 1 / -1; }
.unlock-social .social-buttons { flex-direction: row; flex-wrap: wrap; margin: 0; }
.unlock-social .social-btn { width: auto; flex: 1 1 200px; }

/* ---------- "An Illinois licensed terminal operator" under the DK Gaming logo (home page, sign-in) ---------- */
.logo-tagline { text-align: center; margin: -8px 0 18px; font-weight: 700; letter-spacing: .3px; color: #c7d5ea; }
[data-theme=light] .logo-tagline { color: var(--navy); }
.auth-card .logo-tagline, [data-theme=light] .auth-card .logo-tagline { color: var(--muted); margin: -4px 0 14px; font-size: .95rem; }
/* "Need help getting a gaming license? Click here for help" box in the home page hero */
.stat-help dd { font-size: 1.15rem; }
.stat-help dd a { color: var(--accent); }
[data-theme=light] .stat-help dd a { color: #1957b8; }

/* ---------- Signed in: "See every month" button under each location name (js/gaming.js) ---------- */
button.gl-dba.gl-dba-link { color: #1957b8; text-decoration: underline; text-underline-offset: 3px; }
[data-theme=dark] button.gl-dba.gl-dba-link { color: #7fb0ff; }
.gl-stats-btn { display: inline-flex; align-items: center; gap: 6px; margin: 6px 0 0; padding: 5px 12px; white-space: nowrap;
    border: 0; border-radius: 999px; background: var(--good); color: #fff; font: inherit; font-size: .88rem; font-weight: 700;
    cursor: pointer; box-shadow: 0 2px 6px rgba(19, 138, 82, .35); transition: background .15s, transform .15s; }
.gl-stats-btn:hover, .gl-stats-btn:focus-visible { background: #0f6f42; transform: translateY(-1px); }
.gl-stats-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.gl-open .gl-stats-btn { background: #0b5e37; }
.gl-stats-icon { font-size: 1rem; line-height: 1; }

/* Signed in on IL gaming numbers: Previous / page count / Next at the top right (instead of Illinois / Per Page). */
.gl-pager-top { margin-left: auto; padding: 0; justify-content: flex-end; gap: 12px; }

/* ---------- Admin dashboard, locations, CRM (admin/*.php) ---------- */
.admin-tabs { align-self: flex-end; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
a.kpi-link { text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
a.kpi-link:hover, a.kpi-link:focus-visible { border-color: var(--accent); transform: translateY(-1px); }
.admin-filters { align-items: center; }
.admin-filters .btn { flex: 0 0 auto; }
.check-inline { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; font-weight: 600; white-space: nowrap; }
.check-inline input { width: auto; margin: 0; }
.admin-list-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.admin-two-col { grid-template-columns: 1.15fr 1fr; }
.crm-list { list-style: none; margin: 0; padding: 0; }
.crm-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.crm-list li:last-child { border-bottom: 0; }
.crm-note { margin: 4px 0 2px; white-space: normal; }
.crm-stage { margin-bottom: 14px; }
.crm-stage select { flex: 0 1 220px; }
.crm-note-form { border-top: 1px solid var(--line); padding-top: 14px; margin-bottom: 8px; }
.crm-note-form textarea { width: 100%; }
.crm-add-contact { margin-top: 12px; }
.crm-add-contact summary { cursor: pointer; font-weight: 700; color: #1957b8; margin-bottom: 10px; }
.lead-form { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 4px; }
.lead-form select, .lead-form input { width: auto; padding: 6px 8px; }
.lead-form input { width: 110px; }
@media (max-width: 960px) { .admin-two-col { grid-template-columns: 1fr; } }

/* v50: portal buttons on the admin dashboard */
.admin-portals { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; }

/* ---------- v51: on / off switches (Admin > Permissions, Accounts) ---------- */
.toggle-form { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.toggle { position: relative; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; font-size: .85rem; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.toggle-track { position: relative; width: 44px; height: 24px; border-radius: 999px; background: #c5cedb; transition: background .15s; flex: 0 0 auto; }
.toggle-knob { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.toggle input:checked + .toggle-track { background: #16a34a; }
.toggle input:checked + .toggle-track .toggle-knob { transform: translateX(20px); }
.toggle input:focus-visible + .toggle-track { outline: 3px solid var(--accent); outline-offset: 2px; }
.toggle input:disabled + .toggle-track { opacity: .5; cursor: not-allowed; }
.toggle-state { min-width: 2em; color: var(--muted); }
.toggle input:checked ~ .toggle-state { color: #15803d; }
.perm-table td, .perm-table th { vertical-align: middle; }
.perm-col { text-align: center; white-space: nowrap; }
.perm-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.perm-row:last-of-type { border-bottom: 0; }
.btn-link { background: none; border: 0; padding: 0 0 0 6px; color: #1957b8; text-decoration: underline; cursor: pointer; font: inherit; }
.tab-badge { display: inline-block; min-width: 1.4em; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: #dc2626; color: #fff; font-size: .75rem; text-align: center; }
details > summary.details-head { cursor: pointer; list-style: none; }
details > summary.details-head h2 { display: inline; }
details > summary.details-head::before { content: "+ "; font-weight: 700; color: #1957b8; }
details[open] > summary.details-head::before { content: "\2212  "; }   /* v250: was a garbled minus sign */

/* ---------- v51: location owner sign-up (claim.php, Admin > Owner sign-ups) ---------- */
.claim-wrap { max-width: 760px; margin: 0 auto; }
.claim-loc { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; margin: 0 0 16px; background: #f6f8fc; }
.claim-search { display: flex; gap: 8px; margin: 12px 0; }
.claim-search input { flex: 1 1 auto; }
.claim-results { list-style: none; margin: 0 0 12px; padding: 0; }
.claim-results li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.claim-proof-head { margin-top: 8px; font-size: 1.1rem; }
.claim-views { margin-bottom: 14px; }
.claim-howto { margin: 0; padding-left: 1.2em; }
.claim-howto li { margin: 4px 0; }
.claim-compare th { width: 110px; }
.claim-code-box { display: grid; gap: 6px; }
.claim-code { font-size: 2rem; font-weight: 800; letter-spacing: .15em; font-family: ui-monospace, Consolas, monospace; }
.claim-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.claim-actions form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }
.claim-decide input[name=note] { flex: 1 1 260px; width: auto; }
@media (max-width: 600px) { .claim-results li, .perm-row { flex-direction: column; align-items: flex-start; } }
[data-theme=dark] .claim-loc { background: #101d30; }
[data-theme=dark] .toggle-track { background: #3a4a63; }
[data-theme=dark] .btn-link, [data-theme=dark] details > summary.details-head::before { color: #8fb8ff; }

/* ---------- v52: location owners (Admin > Location) ---------- */
.owner-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.owner-acct { flex: 0 0 auto; }
.owner-edit { margin-top: 6px; }
.owner-edit summary { cursor: pointer; color: #1957b8; display: inline-block; }
.owner-edit form { margin-top: 10px; }
.owner-remove { margin-top: 6px; }
.owner-hidden { opacity: .6; }
[data-theme=dark] .owner-edit summary { color: #8fb8ff; }
@media (max-width: 600px) { .owner-row { flex-direction: column; } }

/* ---------- v55: dashboards for each kind of sign-in (dash/*.php, includes/dash.php) ---------- */
.dash-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.dash-tile {
    display: flex; flex-direction: column; gap: 4px; min-height: 104px; padding: 14px 16px; text-decoration: none; color: var(--ink);
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
    transition: border-color .15s, transform .15s;
}
a.dash-tile:hover, a.dash-tile:focus-visible { border-color: var(--accent); transform: translateY(-2px); color: var(--ink); }
.dash-tile b { font-size: 1rem; }
.dash-tile small { color: var(--muted); font-size: .86rem; }
.dash-tile.is-pro { border-style: dashed; }
.pro-tag { display: inline-block; vertical-align: middle; padding: 1px 7px; border-radius: 999px; background: #7c3aed; color: #fff;
    font-size: .66rem; font-weight: 800; letter-spacing: .5px; line-height: 1.5; }
.pro-tag-lg { font-size: .78rem; padding: 3px 12px; margin-bottom: 10px; text-transform: uppercase; }
.pro-price { font-size: 2rem; font-weight: 900; margin: 10px 0 2px; }
.pro-price small { font-size: 1rem; font-weight: 600; }
.dash-note { margin-top: 10px; }
.viewas-bar { background: #fff4dc; border-bottom: 1px solid #f3dca6; color: #5c3d00; font-size: .92rem; }
.viewas-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding-top: 8px; padding-bottom: 8px; }
.viewas-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.topnav a.nav-viewas { color: #ffc15c; }
.viewas-card label { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.viewas-card .btn { margin-top: auto; align-self: flex-start; }
.viewas-card { gap: 6px; min-height: 150px; }
.viewas-card.is-picked { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(245,165,36,.35); }
[data-theme=dark] .pro-tag { background: #8b5cf6; }
[data-theme=dark] .viewas-bar { background: #2b230f; border-color: #5c4614; color: #f3d9a4; }
[data-theme=light] .topnav a.nav-viewas { color: #8a5a00; }
@media (max-width: 640px) {
    .dash-tiles { grid-template-columns: 1fr; }
    .dash-tile { min-height: 0; }
    .viewas-actions { width: 100%; }
    .viewas-actions .btn, .viewas-actions .inline-form { flex: 1 1 auto; }
    .viewas-actions .inline-form .btn { width: 100%; }
}

/* ---------- v56: dashboard menu: main items in the top bar, sub-items in dropdowns ---------- */
.nav-item { position: relative; display: inline-flex; align-items: center; }
.nav-caret, .nav-user-btn {
    display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; cursor: pointer;
    color: #e6eefb; font: inherit; font-weight: 600; border-radius: 8px;
}
.nav-caret { padding: 8px 6px; margin-left: -8px; }
.nav-caret svg, .nav-user-btn svg { width: 14px; height: 14px; transition: transform .15s; flex: none; }
.nav-item.open > .nav-caret svg, .nav-item.open > .nav-user-btn svg { transform: rotate(180deg); }
.nav-caret:hover, .nav-user-btn:hover { background: rgba(255,255,255,.12); color: #fff; }
.nav-user-btn { gap: 6px; padding: 8px 10px; font-size: .95rem; }
.nav-user-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.subnav {
    display: none; position: absolute; top: 100%; left: 0; z-index: 30; min-width: 230px; padding: 6px; flex-direction: column; gap: 2px;
    background: var(--navy-2); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; box-shadow: 0 14px 34px rgba(0,0,0,.35);
}
.subnav-right { left: auto; right: 0; }
.nav-item.open > .subnav { display: flex; }
@media (hover: hover) and (min-width: 1321px) {
    .nav-item:hover > .subnav, .nav-item:focus-within > .subnav { display: flex; }
}
.topnav .subnav a:not(.btn) { padding: 9px 12px; font-size: .95rem; white-space: nowrap; border-radius: 8px; }
.subnav-note { padding: 6px 12px 8px; font-size: .8rem; color: #9fb3d1; border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: 4px; overflow-wrap: anywhere; }
.subnav-form { margin: 0; }
.subnav-btn { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 9px 12px; border-radius: 8px;
    font: inherit; font-weight: 600; font-size: .95rem; color: #e6eefb; cursor: pointer; }
.subnav-btn:hover { background: rgba(255,255,255,.12); color: #fff; }
.topnav .nav-item.is-current > a:not(.btn) { background: rgba(245,165,36,.18); color: #ffc15c; box-shadow: inset 0 -2px 0 var(--accent); }
[data-theme=light] .nav-caret, [data-theme=light] .nav-user-btn, [data-theme=light] .subnav-btn { color: #1f2d44; }
[data-theme=light] .nav-caret:hover, [data-theme=light] .nav-user-btn:hover, [data-theme=light] .subnav-btn:hover { background: #eef3fb; color: var(--navy); }
[data-theme=light] .subnav { background: #fff; border-color: var(--line); box-shadow: 0 14px 34px rgba(16,31,58,.16); }
[data-theme=light] .subnav-note { color: var(--muted); border-bottom-color: var(--line); }
[data-theme="light"] .topnav .nav-item.is-current > a:not(.btn) { background: #fff4dc; color: #8a5a00; }
/* Phones and tablets: everything is in the â˜° menu; each dropdown opens with its arrow, under its main item. */
@media (max-width: 1320px) {
    .nav-item { display: flex; flex-wrap: wrap; width: 100%; border-top: 1px solid rgba(255,255,255,.1); }
    .nav-item > a:not(.btn) { flex: 1 1 auto; border-top: 0; }
    .nav-caret { margin: 0; padding: 0 16px; border-radius: 0; border-left: 1px solid rgba(255,255,255,.1); }
    .nav-caret svg { width: 18px; height: 18px; }
    .nav-user-btn { flex: 1 1 auto; justify-content: space-between; padding: 12px 10px; border-radius: 0; font-size: 1rem; }
    .nav-user-name { max-width: none; }
    .subnav, .subnav-right { position: static; width: 100%; min-width: 0; border: 0; border-radius: 0; box-shadow: none; padding: 0 0 6px; background: rgba(255,255,255,.05); }
    .topnav .subnav a:not(.btn) { padding: 11px 10px 11px 28px; border-top: 0; white-space: normal; }
    .subnav-note { padding: 8px 10px 8px 28px; }
    .subnav-btn { padding: 11px 10px 11px 28px; border-radius: 0; font-size: 1rem; }
    .topnav .nav-item.is-current > a:not(.btn) { box-shadow: inset 3px 0 0 var(--accent); }
    [data-theme=light] .nav-item { border-top-color: var(--line); }
    [data-theme=light] .nav-caret { border-left-color: var(--line); }
    [data-theme=light] .subnav, [data-theme=light] .subnav-right { background: #f5f8fc; box-shadow: none; }
    [data-theme="light"] .topnav .nav-item.is-current > a:not(.btn) { box-shadow: inset 3px 0 0 var(--accent); }
}

/* ---------- v58: one location's pages under Admin (admin/loc/*.php, includes/locpages.php) ---------- */
.nav-loc-pin { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 7px; vertical-align: middle; }
@media (min-width: 1321px) {
    .subnav-cols { display: none; grid-template-columns: 1fr 1fr; min-width: 420px; }
    .nav-item.open > .subnav-cols { display: grid; }
}
@media (hover: hover) and (min-width: 1321px) {
    .nav-item:hover > .subnav-cols, .nav-item:focus-within > .subnav-cols { display: grid; }
}
.topnav .subnav a.active { background: rgba(245,165,36,.18); color: #ffc15c; }
[data-theme=light] .topnav .subnav a.active { background: #fff4dc; color: #8a5a00; }
.loc-head { margin-bottom: 18px; }
.loc-head h1 { margin-bottom: .2rem; }
.loc-head-name { color: var(--muted); font-weight: 600; font-size: .7em; }
.loc-head p { margin: 0; }
.loc-progress { width: 100%; height: 10px; margin: 4px 0 14px; accent-color: var(--good); }
.timeline-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.timeline-step { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; border-left: 4px solid var(--bad); }
.timeline-step.is-done { border-left-color: var(--good); }
.tl-strip { list-style: none; margin: 0 0 10px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.tl-strip li { display: flex; flex-direction: column; padding: 8px 10px; border-radius: 10px; background: var(--bad-bg); color: var(--bad); }
.tl-strip li.is-done { background: var(--good-bg); color: var(--good); }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-head { font-size: .75rem; font-weight: 700; color: var(--muted); text-align: center; padding: 4px 0; }
.cal-day { min-height: 72px; padding: 6px; border: 1px solid var(--line); border-radius: 8px; display: flex; flex-direction: column; gap: 2px; font-size: .78rem; overflow: hidden; }
.cal-day.is-empty { border: 0; }
.cal-day.is-quiet { opacity: .55; }
.cal-num { font-weight: 800; font-size: .85rem; }
.cal-g { color: var(--good); font-weight: 700; }
.cal-b { color: #1957b8; }
.note-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.note-reply { margin: 6px 0 0 14px; padding-left: 10px; border-left: 2px solid var(--line); }
.note-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.note-reply-form summary { cursor: pointer; color: #1957b8; }
.note-reply-form form { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; min-width: 240px; }
.crm-list li.is-picked { background: #fff8ea; border-radius: 8px; padding-left: 8px; padding-right: 8px; }
.link-list { margin: 0; padding-left: 18px; }
.link-list li { margin: 5px 0; }
.doc-list li { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
.doc-upload { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 10px; }
.igb-links { margin-bottom: 16px; }
.total-row td { border-top: 2px solid var(--line); }
.deposit-table input { width: 110px; text-align: right; padding: 6px 8px; }
[data-theme=dark] .cal-b, [data-theme=dark] .note-reply-form summary { color: #7fb0ff; }
[data-theme=dark] .crm-list li.is-picked { background: #2b230f; }
@media (max-width: 640px) {
    .cal { gap: 2px; }
    .cal-day { min-height: 54px; padding: 3px; font-size: .68rem; }
    .deposit-table input { width: 80px; }
}

/* ---------- v59: Admin > Locations live search; divider in the right-hand menu ---------- */
.loc-search-ticks { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-bottom: 12px; }
.loc-search-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.loc-search-grid input, .loc-search-grid select { padding: 8px 10px; }
.loc-search-buttons { display: flex; gap: 8px; align-items: center; }
#loc-results { transition: opacity .15s; }
#loc-results.is-loading { opacity: .55; }
.subnav-sep { display: block; height: 1px; margin: 4px 6px; background: rgba(255,255,255,.14); }
[data-theme=light] .subnav-sep { background: var(--line); }
@media (max-width: 960px) { .loc-search-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .loc-search-grid { grid-template-columns: 1fr; } }

/* ---------- v66: Admin > Locations: sort arrows, "All locations" list in the old site's look ---------- */
.th-sort { color: inherit; text-decoration: none; white-space: nowrap; }
.th-sort:hover { color: var(--ink); }
.th-arrow { color: var(--good); font-size: .85em; }
.th-sort.is-on .th-arrow { color: var(--accent); }
table.loc-list { font-variant: small-caps; }
table.loc-list td { vertical-align: top; }
table.loc-list .loc-list-name { font-weight: 700; color: var(--ink); text-decoration: none; }
table.loc-list .loc-list-name:hover { color: #1957b8; text-decoration: underline; }
.loc-list-sub { padding-left: 14px; color: var(--muted); }
.loc-list-op { font-style: italic; font-size: .85rem; color: var(--muted); }
tr[data-href] { cursor: pointer; }
/* v68: search box = two lines: tick boxes (+ per page and Clear on the right), then the searches */
.loc-search-ticks { align-items: center; }
.loc-search-right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.loc-search-right select { width: auto; padding: 7px 10px; }
.loc-search-row { display: flex; flex-wrap: wrap; gap: 10px; }
.loc-search-row input, .loc-search-row select { flex: 1 1 130px; width: auto; min-width: 0; padding: 8px 10px; }
.loc-search-row .grow-2 { flex: 2 1 220px; }
@media (max-width: 640px) {
    .loc-search-right { margin-left: 0; width: 100%; }
    .loc-search-right select { flex: 1 1 auto; }
    /* v69: two per line (name search full width), so the results start sooner */
    .loc-search-row { gap: 8px; }
    .loc-search-row input, .loc-search-row select { flex: 1 1 calc(50% - 4px); padding: 8px; font-size: 16px; }
    .loc-search-row .grow-2 { flex: 1 1 100%; }
    .loc-search-ticks { gap: 6px; }
    .loc-search-ticks .check { padding: 6px 10px; font-size: .85rem; }
    .loc-search .card, .card.loc-search { padding: 12px; }
}
.kpi-value.small-value { font-size: 1.15rem; }
[data-theme=dark] table.loc-list .loc-list-name:hover { color: #7fb0ff; }

/* ---------- v69: phones ---------- */
@media (max-width: 640px) {
    /* Sortable lists: the column headers stay, as a row of sort buttons above the cards. */
    table.data.is-stacked.sortable thead { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; display: block; margin: 0 0 10px; }
    table.data.is-stacked.sortable thead tr { display: flex; flex-wrap: wrap; gap: 6px; border: 0; padding: 0; margin: 0; background: none; }
    table.data.is-stacked.sortable thead th { display: block; padding: 0; border: 0; text-transform: none; letter-spacing: 0; font-variant: normal; }
    table.data.is-stacked.sortable thead th:empty { display: none; }
    table.data.is-stacked.sortable .th-sort { display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border: 1px solid var(--line);
        border-radius: 999px; background: var(--card); font-size: .8rem; font-weight: 700; color: var(--ink); }
    table.data.is-stacked.sortable .th-sort.is-on { border-color: var(--accent); background: #fff8ea; }
    [data-theme=dark] table.data.is-stacked.sortable .th-sort.is-on { background: #2b230f; }
    /* "All locations" cards: name on top, the rest underneath without the indents. */
    table.loc-list.is-stacked .loc-list-sub { padding-left: 0; }
    table.loc-list.is-stacked td.num { text-align: left; }
    /* Page heads: the list tabs and buttons go full width under the title. */
    .page-head .tabs { width: 100%; }
    .page-head .tabs .tab { flex: 1 1 auto; text-align: center; }
    .loc-head h1 { font-size: 1.45rem; }
    .loc-head-name { display: block; font-size: .8em; margin-top: 2px; }
    /* Location pages */
    .kpi-value.small-value { font-size: 1rem; }
    .timeline-grid { grid-template-columns: 1fr 1fr; }
    .tl-strip { grid-template-columns: 1fr 1fr; }
    .igb-links .btn { flex: 1 1 45%; }
    .note-top { flex-direction: column; gap: 6px; }
    .viewas-inner { font-size: .85rem; }
}
@media (max-width: 380px) {
    .timeline-grid, .tl-strip { grid-template-columns: 1fr; }
}

/* ---------- v69: Get the app (app.php) ---------- */
.app-page { max-width: 860px; margin: 0 auto; }
.app-hero { display: flex; gap: 22px; align-items: flex-start; }
.app-hero-icon { flex: none; width: 96px; height: 96px; border-radius: 22px; box-shadow: var(--shadow); }
.app-status { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; margin-top: 6px; }
.app-status .alert { margin: 0; }
.app-install-btn { font-size: 1.05rem; padding: 12px 22px; }
.app-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 18px; }
.app-steps ol { margin: 0; padding-left: 20px; }
.app-steps li { margin: 6px 0; }
.app-steps .is-yours { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(245,165,36,.25); }
.app-glyph { display: inline-block; padding: 0 6px; border: 1px solid var(--line); border-radius: 6px; font-size: .85em; }
@media (max-width: 640px) {
    .app-hero { flex-direction: column; align-items: center; text-align: center; }
    .app-status { align-items: stretch; }
    .app-install-btn { width: 100%; }
}

/* ---------- v70: "Get the app" button in the top bar ---------- */
.app-get-btn {
    display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 999px;
    background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: .92rem; text-decoration: none; white-space: nowrap;
    box-shadow: 0 0 0 0 rgba(245,165,36,.55); animation: app-get-pulse 2.6s ease-out 3;
}
.app-get-btn:hover, .app-get-btn:focus-visible { background: #ffb53d; color: var(--accent-ink); }
.app-get-btn svg { width: 22px; height: 22px; flex: none; }   /* v280 */
[data-theme=dark] .app-get-btn, [data-theme=light] .app-get-btn { color: var(--accent-ink); }
@keyframes app-get-pulse { 0% { box-shadow: 0 0 0 0 rgba(245,165,36,.55); } 70% { box-shadow: 0 0 0 10px rgba(245,165,36,0); } 100% { box-shadow: 0 0 0 0 rgba(245,165,36,0); } }
@media (prefers-reduced-motion: reduce) { .app-get-btn { animation: none; } }
@media (display-mode: standalone) { .app-get-btn { display: none; } }   /* already in the app */
.app-get-btn[hidden] { display: none; }
@media (max-width: 640px) {
    .app-get-btn { width: 38px; padding: 0; justify-content: center; }   /* phones: just the icon */
    .app-get-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    /* Keep logo, state, app, theme and menu on ONE line on phones */
    .topbar-inner { gap: 6px; }
    .topbar .brand { width: 84px; height: 46px; }
    .topbar .state-picker select { width: 98px; padding: 6px 6px; font-size: 16px; }
    .topbar-tools { gap: 6px; flex: none; }
    .app-get-btn, .theme-toggle { width: 34px; height: 34px; }
    .nav-toggle { width: 38px; height: 38px; }
}
@media (max-width: 640px) {
    /* the menu drops below the bar when opened; logo, state and buttons stay on the first line */
    .topbar-inner { row-gap: 0; }
    .topbar-inner > .brand, .topbar-inner > .state-picker, .topbar-inner > .topbar-tools { flex-shrink: 0; }
}
@media (max-width: 350px) {
    .topbar .state-picker select { width: 82px; }
    .theme-toggle { display: none; }   /* very narrow phones: light / dark follows the phone's own setting */
}

/* ---------- v70: install popup (includes/footer.php) ---------- */
.install-sheet { position: fixed; inset: 0; z-index: 100; background: rgba(5,12,24,.55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.install-sheet[hidden] { display: none; }
.install-card { position: relative; width: 100%; max-width: 440px; background: var(--card); color: var(--ink); border-radius: 18px; padding: 22px 22px 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.install-close { position: absolute; top: 8px; right: 10px; width: 36px; height: 36px; border: 0; background: none; font-size: 1.6rem; line-height: 1; color: var(--muted); cursor: pointer; border-radius: 50%; }
.install-close:hover { background: var(--bg); }
.install-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding-right: 30px; }
.install-head img { border-radius: 13px; flex: none; }
.install-head h2 { margin: 0; font-size: 1.2rem; }
.install-steps { margin: 0 0 10px; padding-left: 22px; }
.install-steps li { margin: 10px 0; }
div.install-steps { padding-left: 0; }
.install-steps[hidden] { display: none; }
.install-share { width: 22px; height: 22px; vertical-align: -5px; color: #1a73e8; }
.install-foot { margin: 6px 0 0; }
@media (max-width: 640px) {
    /* phones: a sheet at the bottom of the screen, near the browser's buttons */
    .install-sheet { align-items: flex-end; padding: 0; }
    .install-card { max-width: none; border-radius: 18px 18px 0 0; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
}

/* ---------- v53: mobile ready ---------- */
/* Grid and flex boxes may shrink below their content (a wide table or a long email no longer widens the page). */
.two-col > *, .admin-two-col > *, .kpis > *, .kpi-stack > *, .field-grid > *, .search-fields > *, .trend-stats > *,
.owner-row > :first-child, .claim-results li > :first-child, .perm-row > :first-child { min-width: 0; }
.card, .claim-loc, .alert { overflow-wrap: break-word; }
.earnings .filters select { min-width: min(260px, 100%); }

@media (max-width: 760px) {
    /* 16px text in form fields: iPhones zoom the whole page in when you tap a smaller one. */
    input, select, textarea { font-size: 16px; }
    /* The month-by-month grid under a location scrolls sideways inside its own box. */
    .gh-box { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

@media (max-width: 640px) {
    /* Bigger tap targets */
    .btn-sm { padding: 9px 14px; }
    .tab { padding: 9px 14px; }
    .tabs { width: 100%; }
    .admin-tabs { align-self: stretch; }
    .page-head { align-items: stretch; }
    .head-actions .btn, .admin-portals .btn { flex: 1 1 auto; }
    .filters .btn, .admin-filters .btn { flex: 1 1 auto; }
    .claim-search { flex-direction: column; }
    .pager { gap: 10px; flex-wrap: wrap; }
    .to-top { right: 12px; bottom: 12px; }

    /* List tables become one card per row (js/site.js labels each cell with its column name). */
    .table-wrap:has(> table.is-stacked) { overflow: visible; margin: 0; }
    table.data.is-stacked { display: block; min-width: 0; font-size: .95rem; }
    table.data.is-stacked thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    table.data.is-stacked tbody, table.data.is-stacked tr { display: block; }
    table.data.is-stacked tr { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 0 0 10px; background: var(--card); }
    table.data.is-stacked tbody tr:hover { background: var(--card); }
    table.data.is-stacked td, table.data.is-stacked tbody th {
        display: block; border: 0; padding: 4px 0; text-align: left; white-space: normal; overflow-wrap: anywhere;
    }
    table.data.is-stacked td:empty { display: none; }
    /* Column name on the left 40% (grows to two lines when it's long), the value on the right. */
    table.data.is-stacked td[data-label] { padding-left: 40%; }
    table.data.is-stacked td[data-label]::before {
        content: attr(data-label); display: inline-block; vertical-align: top; box-sizing: border-box;
        width: 66.667%; margin-left: -66.667%; padding: .2em 10px 0 0;
        font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; line-height: 1.5;
        color: var(--muted); overflow-wrap: break-word; white-space: normal;
    }
    /* The first cell is the card's title: full width, no label. */
    table.data.is-stacked tr > :first-child { padding: 0 0 6px; font-size: 1rem; }
    table.data.is-stacked tr > td:first-child[data-label] { padding-left: 0; }
    table.data.is-stacked tr > td:first-child[data-label]::before { display: none; }
    table.data.is-stacked tbody th { color: var(--ink); text-transform: none; letter-spacing: 0; font-weight: 700; }
    /* Buttons (cells without a column name) sit full width at the bottom of the card. */
    table.data.is-stacked td:not([data-label]):not(:first-child) { padding-top: 8px; }
    table.data.is-stacked .row-actions { white-space: normal; }
    table.data.is-stacked td.us { border-left: 0; border-radius: 6px; padding-right: 6px; }
}

/* v72: website requests - received date / time / day, and the Delete button */
.lead-when { white-space: nowrap; line-height: 1.45; }
.lead-delete { margin: 8px 0 0; }


/* v73: home page, other states: gaming law status + Notify me */
.law-card { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 28px; align-items: start; }
.law-copy h2 { margin: 4px 0 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.law-link { font-weight: 700; overflow-wrap: anywhere; }
.law-notify { border-left: 1px solid var(--line); padding-left: 28px; }
.law-notify h3 { margin: 0 0 6px; }
.law-form { display: flex; gap: 8px; margin: 10px 0 6px; }
.law-form input[type=email] { flex: 1 1 auto; min-width: 0; }
@media (max-width: 760px) {
    .law-card { grid-template-columns: 1fr; gap: 18px; }
    .law-notify { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 18px; }
}
@media (max-width: 420px) {
    .law-form { flex-direction: column; }
}
.law-form .btn { white-space: nowrap; flex: 0 0 auto; }

/* ---------- v74: state picker with small logos (includes/header.php) ---------- */
.state-picker { position: relative; display: block; }
.state-picker > summary {
    list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; min-width: 140px;
    padding: 4px 10px 4px 6px; border-radius: 8px; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.08);
    color: #fff; font-weight: 600; font-size: .95rem; white-space: nowrap; user-select: none;
}
.state-picker > summary::-webkit-details-marker { display: none; }
.state-picker > summary:hover { border-color: #fff; }
.state-pick-logo { display: block; height: 30px; width: auto; max-width: 44px; object-fit: contain; flex: none; }
.state-pick-name { flex: 1 1 auto; }
.state-pick-chev { width: 14px; height: 14px; flex: none; transition: transform .15s; }
.state-picker[open] .state-pick-chev { transform: rotate(180deg); }
.state-pick-list {
    position: absolute; top: calc(100% + 6px); left: 0; z-index: 40; min-width: 230px; padding: 6px; display: flex; flex-direction: column; gap: 2px;
    background: var(--navy-2); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; box-shadow: 0 14px 34px rgba(0,0,0,.35);
}
.state-pick-list a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 8px; color: #e6eefb; text-decoration: none; font-weight: 600; }
.state-pick-list a:hover { background: rgba(255,255,255,.12); color: #fff; }
.state-pick-list a.active { background: rgba(245,165,36,.18); color: #ffc15c; }
.state-pick-thumb { width: 46px; height: 38px; display: flex; align-items: center; justify-content: center; flex: none; }
.state-pick-thumb img { display: block; max-width: 46px; max-height: 38px; width: auto; height: auto; }
[data-theme=light] .state-picker > summary { background: #fff; color: var(--ink); border-color: #c4cddb; }
[data-theme=light] .state-picker > summary:hover { border-color: var(--navy); }
[data-theme=light] .state-pick-list { background: #fff; border-color: var(--line); box-shadow: 0 14px 34px rgba(16,31,58,.16); }
[data-theme=light] .state-pick-list a { color: #1f2d44; }
[data-theme=light] .state-pick-list a:hover { background: #eef3fb; color: var(--navy); }
[data-theme=light] .state-pick-list a.active { background: #fff4dc; color: #8a5a00; }
@media (max-width: 1320px) { .state-picker > summary { min-width: 0; font-size: .9rem; } }
@media (max-width: 640px) {
    /* phones: just the state's logo and the arrow (the list shows the names) */
    .state-picker > summary { padding: 3px 6px; gap: 4px; }
    .state-pick-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .state-pick-logo { height: 28px; max-width: 40px; }
    .state-pick-list { left: -40px; }
}

/* ---------- v74: home page, other states: law (left) + message board (right) ---------- */
.state-top { padding-top: 28px; }
.state-top-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: start; }
.state-top .law-card { display: block; }
.law-title { font-size: clamp(1.45rem, 2.4vw, 1.9rem); margin: 4px 0 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.state-top .law-notify { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 16px; }
.law-notify .h3 { font-size: 1.1rem; margin: 0 0 6px; }
.board-logo { display: flex; justify-content: center; margin: 0 0 12px; }
.board-logo-img { display: block; width: auto; height: auto; max-height: 110px; max-width: 240px; object-fit: contain; }
.board-title { font-size: 1.35rem; margin: 0 0 4px; }
.board-sub { margin: 0 0 6px; }
.board-form { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 14px; }
.board-form textarea { width: 100%; resize: vertical; min-height: 60px; }
.board-who { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.board-who input { width: 100%; min-width: 0; }
.board-form .btn { align-self: flex-start; }
.board-as { margin: 0; }
.board-list { border-top: 1px solid var(--line); }
.board-post { padding: 14px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.board-meta { margin: 0 0 4px; font-size: .9rem; }
.board-meta .badge { font-size: .7rem; vertical-align: 1px; }
.board-body { margin: 0; overflow-wrap: anywhere; }
.board-replies { margin: 10px 0 0 6px; padding-left: 14px; border-left: 3px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.board-reply { scroll-margin-top: 90px; }
.board-reply .board-body { font-size: .95rem; }
.board-reply-box { margin-top: 8px; }
.board-reply-box > summary { cursor: pointer; display: inline-block; font-weight: 600; font-size: .9rem; color: #1957b8; }
.board-reply-box > summary:hover { text-decoration: underline; }
.board-reply-box .board-form { margin: 8px 0 4px 6px; }
.board-pager { display: flex; gap: 10px; align-items: center; justify-content: center; margin-top: 14px; }
.board-rules { margin: 12px 0 0; }
[data-theme=dark] .board-reply-box > summary { color: #8fb8ff; }
@media (max-width: 900px) {
    .state-top-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .board-who { grid-template-columns: 1fr; }
    .state-top { padding-top: 16px; }
}
.board-admin-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

/* ---------- v75: message board: New question popup, categories; small state logo; Illinois averages ---------- */
.law-eyebrow { display: flex; align-items: center; gap: 10px; }
.law-state-logo { display: block; height: 40px; width: auto; max-width: 56px; object-fit: contain; flex: none; }
.state-left { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.il-avg-card .h3 { font-size: 1.1rem; margin: 0 0 4px; }
.il-avg-card > p { margin: 0 0 10px; }
.il-avg-table { font-size: .9rem; }
.il-avg-table th, .il-avg-table td { padding: 7px 8px; }
.il-avg-card .il-avg-note { margin: 10px 0 0; }
.board-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.board-new-btn { flex: none; font-weight: 700; }
.board-new-btn span { font-size: 1.15em; line-height: 1; margin-left: 2px; }
.board-cats { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 10px; }
.board-cats a { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: .88rem; font-weight: 600; text-decoration: none; color: inherit; }
.board-cats a:hover { border-color: #9fb0c8; }
.board-cats a.active { background: var(--navy); border-color: var(--navy); color: #fff; }
[data-theme=dark] .board-cats a { border-color: #2c3f5c; }
[data-theme=dark] .board-cats a.active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.board-cat-tag { display: inline-block; margin-right: 6px; padding: 1px 8px; border-radius: 6px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
    background: #fff4dc; color: #8a5a00; vertical-align: 1px; }
[data-theme=dark] .board-cat-tag { background: #3a2c10; color: #ffc15c; }
.board-dialog { width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 16px;
    background: var(--card); color: var(--ink); box-shadow: 0 24px 70px rgba(0,0,0,.4); }
.board-dialog::backdrop { background: rgba(5,12,24,.6); }
.board-dialog .board-new-form { margin: 0; padding: 18px 20px 20px; gap: 12px; }
.board-dialog-head { display: flex; align-items: center; justify-content: space-between; }
.board-dialog-head .h3 { margin: 0; font-size: 1.2rem; }
.board-dialog-x { background: none; border: 0; font-size: 1.7rem; line-height: 1; cursor: pointer; color: inherit; padding: 0 4px; }
.board-dialog .field { margin: 0; }
.board-dialog .field label { display: block; font-weight: 600; margin-bottom: 4px; }
.board-dialog select, .board-dialog textarea, .board-dialog input { width: 100%; }
.board-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }
.board-dialog-actions .btn { align-self: auto; }
.board-dialog:not([open]) { display: none; }
.state-left > .card, .state-right > .card { margin: 0; }
@media (max-width: 900px) {
    /* phones / tablets: law box, then the message board, then the Illinois averages */
    .state-left { display: contents; }
    .state-left > .law-card { order: 1; }
    .state-right { order: 2; }
    .state-left > .il-avg-card { order: 3; }
}

/* ---------- v76: "What can you earn?" bubble (right of Get notified) and its popup ---------- */
.law-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start;
    border-top: 1px solid var(--line); padding-top: 16px; margin-top: 16px; }
.state-top .law-row .law-notify { border-top: 0; padding-top: 0; margin-top: 0; }
.law-row .law-form { flex-direction: column; }
.law-row .law-form .btn { align-self: stretch; }
.earn-bubble { background: #fff4dc; border: 1px solid #f3d38f; border-radius: 16px; padding: 14px 16px; }
.earn-bubble .h3 { font-size: 1.1rem; margin: 0 0 6px; }
.earn-bubble p { margin: 0 0 10px; }
.earn-btn { font-weight: 700; background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.earn-btn:hover { filter: brightness(1.05); color: var(--accent-ink); }
[data-theme=dark] .earn-bubble { background: #2d2412; border-color: #5c4718; }
.earn-dialog { width: min(600px, calc(100vw - 32px)); }
.earn-dialog-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; }
.earn-dialog-body p { margin: 0; }
.earn-sub { font-size: 1rem; margin: 0; }
.earn-disclaimer { padding: 10px 12px; border-radius: 10px; background: #fff4dc; color: #5c3d00; font-size: .9rem; }
[data-theme=dark] .earn-disclaimer { background: #3a2c10; color: #ffd98a; }
@media (max-width: 1100px) and (min-width: 901px) { .law-row { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .law-row { grid-template-columns: 1fr; } }
.law-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.earn-btn { white-space: nowrap; padding: 6px 10px; }
.earn-bubble { padding: 14px 12px; }
@media (max-width: 1100px) and (min-width: 901px) { .law-row { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .law-row { grid-template-columns: 1fr; } }

/* v77: the state button shows just the name (no logo), so the top menu stays on one row on medium screens */
.state-picker > summary { min-width: 0; padding: 6px 10px; gap: 6px; }
@media (max-width: 640px) {
    .state-pick-name { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
    .state-picker > summary { padding: 6px 8px; font-size: .9rem; max-width: 120px; }
    .state-pick-name { overflow: hidden; text-overflow: ellipsis; }
}

/* v78: Get notified and What can you earn? as two matching boxes side by side (same width and height), note across the bottom */
.law-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.state-top .law-row .law-notify, .law-row .earn-bubble {
    display: flex; flex-direction: column; border-radius: 16px; padding: 14px 14px 16px; margin: 0; min-width: 0;
}
.state-top .law-row .law-notify { background: #eef4ff; border: 1px solid #c9dafa; }
[data-theme=dark] .state-top .law-row .law-notify { background: #16284a; border-color: #2a4677; }
.law-row .law-notify .h3, .law-row .earn-bubble .h3 { font-size: 1.1rem; margin: 0 0 6px; }
.law-row .law-notify p, .law-row .earn-bubble p { margin: 0 0 10px; }
.law-row .law-form { margin: auto 0 0; }
.law-row .earn-btn { margin-top: auto; align-self: flex-start; }
.law-row .alert { margin: 0; }
.law-row-note { margin: 10px 0 0; text-align: center; }
@media (max-width: 1100px) and (min-width: 901px) { .law-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 420px) { .law-row { grid-template-columns: 1fr; } }

/* ---------- v79: free revenue check, other states: two even columns ---------- */
.check-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; margin-bottom: 20px; }
.check-col { min-width: 0; }
.check-col .gaming-eval { margin-bottom: 18px; }
.check-col .gaming-eval-form { max-width: none; }
.check-col .check-form, .check-col .check-avg { margin: 0; }
.field-grid.field-grid-1 { grid-template-columns: 1fr; }
.check-avg .h3 { font-size: 1.15rem; margin: 0 0 4px; }
.check-avg > p { margin: 0 0 10px; }
.check-avg .earn-disclaimer { margin: 12px 0 0; }
@media (max-width: 860px) { .check-cols { grid-template-columns: 1fr; } }

/* ---------- v82: address links and the Google Maps popup ---------- */
a.map-link { color: inherit; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; cursor: pointer; }
a.map-link::before { content: "\1F4CD"; font-size: .8em; margin-right: 3px; text-decoration: none; display: inline-block; }
a.map-link:hover { color: #1957b8; text-decoration-style: solid; }
[data-theme=dark] a.map-link:hover { color: #8fb8ff; }
.map-dialog { width: min(760px, calc(100vw - 24px)); }
.map-dialog-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 12px; }
.map-title { margin: 0; font-size: 1.05rem; overflow-wrap: anywhere; padding-right: 8px; }
.map-frame-box { position: relative; width: 100%; aspect-ratio: 4 / 3; max-height: 65vh; border-radius: 12px; overflow: hidden; background: #e8edf4; }
.map-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* v83: map popup: street view, directions */
.map-note { margin: -4px 0 0; }
.map-actions { flex-wrap: wrap; justify-content: flex-start; }
.map-dir-btn { font-weight: 700; }
@media (max-width: 520px) { .map-actions .btn { flex: 1 1 auto; text-align: center; } .map-frame-box { aspect-ratio: 1 / 1; } }

/* v84: Illinois home page banner: the condensed "How does your location compare?" table (in place of the logo + 4 stat boxes) */
.hero-compare { background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 14px; box-shadow: 0 18px 45px rgba(0, 0, 0, .3); }
.hero .hero-compare-title { font-size: 1.3rem; line-height: 1.2; margin: 0 0 4px; color: var(--ink); letter-spacing: 0; }
.hero-compare-sub { font-size: .82rem; line-height: 1.4; color: var(--muted); margin: 0 0 10px; }
.hero-compare-sub strong { color: var(--ink); }
.hero-compare-table { width: 100%; font-size: .9rem; border-collapse: collapse; }
table.data.hero-compare-table th, table.data.hero-compare-table td { padding: 5px 10px; vertical-align: middle; }
table.data.hero-compare-table thead th { font-size: .68rem; padding-top: 4px; padding-bottom: 6px; }
table.data.hero-compare-table tbody th { font-size: .76rem; letter-spacing: .3px; border-bottom: 1px solid var(--line); }
table.data.hero-compare-table td.us { font-weight: 700; white-space: nowrap; }
.hero-compare-note { font-size: .72rem; line-height: 1.4; color: var(--muted); margin: 10px 0 0; }
@media (max-width: 420px) { .hero-compare { padding: 14px 12px 12px; } table.data.hero-compare-table th, table.data.hero-compare-table td { padding: 5px 7px; } table.data.hero-compare-table th { white-space: normal; } }

.site-dk .state-picker { display: none !important; }   /* vgperform v104: hidden on the DK sites only */
body[data-signed-in] .topbar .state-picker { display: none !important; }   /* vgperform v104: signed in - the state selector is in the bar under the top menu */

/* v86 (dkgaming.us v1): the comparison card on the free revenue check page */
.check-compare { box-shadow: 0 12px 32px rgba(20, 32, 51, .12); }
.check-compare .hero-compare-title { font-size: 1.3rem; line-height: 1.2; margin: 0 0 4px; color: var(--ink); letter-spacing: 0; }
.check-col .gaming-summary { margin-top: 0; }

/* v88 (dkgaming.us v3): phone/tablet menu (and the installed app): every item left-aligned, like the plain links */
@media (max-width: 1320px) {
    .topnav a.btn, .topnav a.grow-btn, .topnav .inline-form .btn {
        justify-content: flex-start; text-align: left; padding-left: 10px; padding-right: 10px;
    }
    .topnav .inline-form .btn { display: flex; width: 100%; }
}

/* v89 (dkgaming.us v4): the home page search button looks like the "Free revenue check" link in the top bar */
.hero-check .grow-btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; white-space: nowrap;
    font: inherit; font-weight: 700; cursor: pointer;
    background: rgba(61,220,104,.14); border: 1px solid rgba(61,220,104,.55); color: #bbf7d0;
}
.hero-check .grow-btn:hover { background: rgba(61,220,104,.24); border-color: #4ade80; color: #ffffff; }
[data-theme=light] .hero-check .grow-btn { background: #e3f6ec; border-color: #7fd3a4; color: #0d5a36; }
[data-theme=light] .hero-check .grow-btn:hover { background: #cdeedb; border-color: #138a52; color: #0a4a2c; }
@media (max-width: 1320px) { .hero-check .grow-btn { justify-content: center; } }

/* v90 (dkgaming.us v5): type of location box under "Check my location"; on wide screens its bottom lines up
   with the bottom of the "How does your location compare?" box on the right */
.check-forms { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.check-forms .card { margin: 0; }
.check-type .small { margin: 4px 0 12px; }
@media (min-width: 861px) {
    .check-cols-il { align-items: stretch; }
    .check-cols-il .check-col-left { display: flex; flex-direction: column; }
    .check-cols-il .check-forms { flex: 1; }
    .check-cols-il .check-type { margin-top: auto; }
}

/* v92 (dkgaming.us v7): home page "How does your location stack up?" box; on wide screens its bottom
   lines up with the bottom of the "How does your location compare?" box */
.hero-check-title { font-size: 1.15rem; line-height: 1.25; margin: 0 0 6px; color: inherit; letter-spacing: 0; }
.hero-check p { margin: 0 0 14px; }
.hero-check .grow-btn { text-decoration: none; }
@media (min-width: 961px) {
    .hero-inner { align-items: stretch; }
    .hero-copy { display: flex; flex-direction: column; }
    .hero-check { margin-top: auto; }
    .hero-side { display: flex; flex-direction: column; justify-content: flex-end; }
}

/* v95 (dkgaming.us v10): revenue check: entry box as tall as the comparison box; 5 result boxes on one line */
@media (min-width: 861px) {
    .check-cols-il .check-col-left > .check-form { flex: 1; display: flex; flex-direction: column; margin: 0; }
    .check-cols-il .check-col-left > .check-form .btn { align-self: flex-start; margin-top: auto; }
    .check-cols-il .check-col-right > .hero-compare { height: 100%; }
}
.kpis.kpis-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.kpi-sub { color: var(--muted); font-size: .8rem; font-weight: 600; margin-top: 2px; }
@media (max-width: 1100px) { .kpis.kpis-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .kpis.kpis-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* v96 (dkgaming.us v11): highlighted "Location share" tag next to the location's name and type */
.share-tag { display: inline-block; vertical-align: middle; margin-left: 6px; padding: 3px 10px; border-radius: 999px;
    font-size: .8rem; font-weight: 800; letter-spacing: .2px; background: #fff4dc; color: #8a5a00; border: 1px solid #f5a524; }
[data-theme=dark] .share-tag { background: rgba(245,165,36,.18); color: #ffc15c; border-color: rgba(245,165,36,.6); }

/* v97 (dkgaming.us v12): revenue check opens at the results; "Top" button on the left */
.check-results { scroll-margin-top: 90px; }
#top { scroll-margin-top: 90px; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.to-top { position: fixed; left: 18px; bottom: 18px; z-index: 40; display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 14px; border-radius: 999px; font-weight: 700; font-size: .9rem; text-decoration: none;
    background: var(--navy); color: #fff; border: 1px solid rgba(255,255,255,.25); box-shadow: 0 8px 22px rgba(0,0,0,.25); }
.to-top svg { width: 16px; height: 16px; }
.to-top:hover { background: #1d4d8f; color: #fff; }
[data-theme=light] .to-top { background: #ffffff; color: var(--navy); border-color: #c4cddb; }
[data-theme=light] .to-top:hover { background: #eef3fb; }

/* v99 (dkgaming.us v15): the note under "Request my free review": bold red italic */
.form-note.form-note-alert { color: #c81e1e; font-weight: 700; font-style: italic; }
[data-theme=dark] .form-note.form-note-alert { color: #ff6b6b; }

/* v100 (dkgaming.us v17): owner / decision maker confirmation in place of the comment box */
.owner-confirm { margin: 4px 0 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(200,30,30,.04); }
.owner-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; cursor: pointer; }
.owner-check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: #c81e1e; }
.owner-confirm .form-note { margin: 10px 0 0; }

/* v101 (dkgaming.us v18): IL gaming numbers page */
.gl-top.gl-top-stack { flex-direction: column; align-items: flex-end; gap: 8px; }
.gl-reset { white-space: nowrap; }
.gl-msg { flex: 1 1 100%; margin: 0; }
.gl-all-btn { display: flex; margin: 8px 0 0; text-transform: none; letter-spacing: 0; font-size: .8rem; line-height: 1.25; text-align: left; white-space: normal; }

/* v102 (dkgaming.us v19): Reset to the left of Per Page, same height; red button on one line across City + Type */
.gl-top.gl-top-stack { flex-direction: row; align-items: center; gap: 10px; }
.gl-top-stack .gl-reset, .gl-top-stack .gl-per { height: 40px; box-sizing: border-box; margin: 0; }
.gl-top-stack .gl-reset { display: inline-flex; align-items: center; padding-top: 0; padding-bottom: 0; }
.gl-top-stack .gl-per { padding-top: 0; padding-bottom: 0; }
@media (min-width: 901px) {
    table.gaming-list td.gl-city { overflow: visible; }
    .gl-all-btn { position: relative; z-index: 2; display: inline-flex; width: max-content; white-space: nowrap; }
}

/* v105 (dkgaming.us v22): the green "Free revenue check" pill from the top bar, for buttons anywhere on a page */
.grow-pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 16px; border-radius: 999px;
    font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap;
    background: rgba(61,220,104,.14); border: 1px solid rgba(61,220,104,.55); color: #bbf7d0; }
.grow-pill:hover { background: rgba(61,220,104,.24); border-color: #4ade80; color: #ffffff; }
[data-theme=light] .grow-pill { background: #e3f6ec; border-color: #7fd3a4; color: #0d5a36; }
[data-theme=light] .grow-pill:hover { background: #cdeedb; border-color: #138a52; color: #0a4a2c; }
.grow-pill-block { display: flex; width: 100%; padding: 12px 16px; }

/* v107 (dkgaming.us v24): the red button starts under the address and reads across Address, City and Type */
@media (min-width: 901px) {
    table.gaming-list td.gl-addr { overflow: visible; }
}

/* v108 (dkgaming.us v25): red button on its own line under each location, across Address, City and Type */
table.gaming-list tbody tr:nth-child(even) { background: none; }
table.gaming-list tbody tr.gl-alt { background: rgba(127,127,127,.09); }
table.gaming-list tr.gl-btn-row td { border-top: 0; padding-top: 0; }
table.gaming-list td.gl-btn-cell { overflow: visible; }
table.gaming-list .gl-btn-cell .gl-all-btn { display: inline-flex; width: auto; max-width: 100%; white-space: normal; margin: 0 0 4px; }
@media (max-width: 760px) {
    table.gaming-list tr.gl-btn-row td.gl-btn-gap { display: none; }
    table.gaming-list tr.gl-btn-row { margin-top: -8px; }
}

/* v109 (dkgaming.us v26): review form: fields left, "Check all that apply" right (same section background as before) */
.partner.partner-v2 { display: block; }
.partner-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: start; margin: 0; }
.partner-error { grid-column: 1 / -1; margin: 0; }
.partner-side { display: flex; flex-direction: column; gap: 14px; }
.partner-wants { padding: 4px 4px 0; }
.partner-wants h2 { margin: 0 0 12px; font-size: 1.35rem; }
.partner-wants .checks { margin: 6px 0 18px 34px; }
.partner-wants .checks li { font-size: .95rem; margin-bottom: 6px; }
.want { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.05rem; margin: 0 0 12px; cursor: pointer; }
.want input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 0; flex: none; border-radius: 50%;
    border: 2px solid #b9c4d4; background: radial-gradient(circle at 35% 35%, #ffffff 0%, #e3e8ef 100%); box-shadow: inset 0 -2px 3px rgba(0,0,0,.12); cursor: pointer; }
.want input:checked { border-color: #138a52; background: radial-gradient(circle, #138a52 0 38%, #e3f6ec 42% 100%); }
.want input:focus-visible { outline: 3px solid rgba(245,165,36,.6); outline-offset: 2px; }
.owner-sub { display: block; font-weight: 600; font-size: .9rem; margin-top: 6px; }
.owner-check input { border-radius: 4px; }
.form-note-box { margin: 0; padding: 10px 12px; border-radius: 8px; background: rgba(255,255,255,.92); border: 1px solid #f1c4c4; }
.partner-sent { max-width: 640px; }
@media (max-width: 900px) { .partner-grid { grid-template-columns: 1fr; } }

/* v110 (dkgaming.us v27): "Check all that apply" uses square checkboxes (not round buttons) */
.want input { appearance: auto; -webkit-appearance: checkbox; width: 22px; height: 22px; border-radius: 4px; border: 0;
    background: none; box-shadow: none; accent-color: #138a52; }
.want input:checked { background: none; }

/* v111 (dkgaming.us v28): owner checkbox indented under the review list; left box and right side the same height */
.owner-indent { margin: -6px 0 18px 34px; font-size: .95rem; }
.owner-indent input { accent-color: #138a52; }
@media (min-width: 901px) {
    .partner-grid { align-items: stretch; }
    .partner-grid > .partner-form { height: 100%; margin: 0; }
    .partner-side { height: 100%; }
    .partner-wants { flex: 1; }
}

/* v112 (dkgaming.us v29): a form field that takes the whole row */
.field-grid > .field.field-full { grid-column: 1 / -1; }

/* v114 (dkgaming.us v31): News page: totals left, IGB meetings + links right */
.news-cols { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.news-main .gaming-summary { margin-top: 0; }
.news-side { display: flex; flex-direction: column; gap: 18px; }
.news-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.news-box h2 { font-size: 1.25rem; margin: 0 0 10px; }
.news-sub { font-size: .95rem; font-weight: 700; color: var(--muted); }
.news-dates { list-style: none; padding: 0; margin: 0; }
.news-dates li { padding: 6px 0 6px 14px; border-bottom: 1px solid var(--line); font-weight: 700; }
.news-dates li:last-child { border-bottom: 0; }
.news-dates li:first-child { color: #138a52; }
.news-links { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.news-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-radius: 10px;
    font-weight: 800; font-size: 1.05rem; text-decoration: none; background: #e3f6ec; border: 1px solid #7fd3a4; color: #0d5a36; }
.news-link:hover { background: #cdeedb; border-color: #138a52; color: #0a4a2c; }
.news-link-arrow { font-size: 1.1rem; }
[data-theme=dark] .news-link { background: rgba(61,220,104,.14); border-color: rgba(61,220,104,.55); color: #bbf7d0; }
[data-theme=dark] .news-link:hover { background: rgba(61,220,104,.24); color: #fff; }
@media (max-width: 900px) { .news-cols { grid-template-columns: 1fr; } }

/* v115 (dkgaming.us v32): Admin > IGB meetings */
.meetings-form { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; }
.meetings-form .field { margin: 0; }
.meetings-note { flex: 1 1 260px; }
.news-note { font-weight: 600; color: var(--muted); }

/* v116 (dkgaming.us v33): News page columns start and end level; comparison bubble under the totals */
.news-cols { align-items: stretch; margin-top: 18px; }
.news-main { display: flex; flex-direction: column; gap: 18px; }
.news-main .page-head { margin: 0; padding: 0; }
.news-main .gaming-summary { margin: 0; }
.news-compare { margin-top: auto; box-shadow: var(--shadow); }
.news-side { justify-content: flex-start; }
.news-side .news-box:last-child { flex: 1; }
@media (max-width: 900px) { .news-compare { margin-top: 0; } }

/* v117 (dkgaming.us v34): News page: "News" on top, one bubble around everything on the left */
.news-eyebrow { margin: 18px 0 8px; }
.news-cols { margin-top: 0; }
.news-bubble { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); }
.news-title h1 { margin: 0 0 4px; }
.news-title p { margin: 0; }
.news-compare { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); box-shadow: none; }

/* v118 (dkgaming.us v35): "Help me get licensed" link (to vgperform.com) under the IGB links, in the site's orange */
.news-link-help { margin-top: 10px; background: #fff4dc; border-color: #f5a524; color: #8a5a00; }
.news-link-help:hover { background: #ffe9bd; border-color: #d98e0b; color: #6b4600; }
[data-theme=dark] .news-link-help { background: rgba(245,165,36,.18); border-color: rgba(245,165,36,.6); color: #ffc15c; }

/* dkgaming.us v37: sign-in page tabs - Sign in | Create a free login */
.auth-tabs { display: flex; gap: 4px; margin: 0 0 16px; border-bottom: 2px solid var(--line); }
.auth-tabs a { flex: 1; text-align: center; padding: 10px 8px; font-weight: 700; text-decoration: none; color: var(--muted);
    border-bottom: 3px solid transparent; margin-bottom: -2px; }
.auth-tabs a.active { color: var(--text, inherit); border-bottom-color: #1e9e4a; }
.auth-tabs a:hover, .auth-tabs a:focus-visible { color: var(--text, inherit); }
.auth-gets { list-style: none; padding: 0; margin: 0 0 14px; }
.auth-gets li { position: relative; padding-left: 24px; margin: 4px 0; }
.auth-gets li::before { content: "\2713"; position: absolute; left: 0; color: #1e9e4a; font-weight: 800; }
.auth-card .check-line { display: flex; align-items: center; justify-content: flex-start; gap: 8px; margin: 2px 0 14px;
    padding: 0; width: 100%; text-align: left; font-size: .95rem; }   /* v38: box and words all the way left */
.auth-card .check-line input.check-box { width: 18px; height: 18px; min-width: 18px; margin: 0; padding: 0; flex: 0 0 auto; }

/* dkgaming.us v40: News - total state earnings since gaming started */
.news-state-total { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin: 10px 0 12px; padding: 12px 16px;
    border: 1px solid #b7e2c4; border-left: 5px solid #1e9e4a; border-radius: 12px; background: #eefaf2; }
.news-state-total .nst-label { font-weight: 700; font-size: .95rem; color: #1f3b2a; }
.news-state-total .nst-value { font-size: 1.9rem; font-weight: 800; color: #157a38; line-height: 1.15; }
.news-state-total .nst-range { font-size: .85rem; color: #4d6657; }
[data-theme=dark] .news-state-total { background: rgba(30,158,74,.12); border-color: rgba(30,158,74,.45); }
[data-theme=dark] .news-state-total .nst-label { color: inherit; }
[data-theme=dark] .news-state-total .nst-value { color: #4fd17e; }
[data-theme=dark] .news-state-total .nst-range { color: var(--muted); }

/* dkgaming.us v41/v42: Share icon (after Get the app), same round button as the light/dark switch */
.nav-share-wrap { position: relative; display: inline-flex; }
.nav-share { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; margin: 0;
    border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; cursor: pointer; }
[data-theme=light] .nav-share { border-color: #c4cddb; color: var(--navy); }
.nav-share svg { width: 18px; height: 18px; }
.nav-share:hover, .nav-share:focus-visible, .nav-share[aria-expanded=true] { border-color: #1e9e4a; color: #1e9e4a; }
.share-box { position: absolute; top: calc(100% + 8px); right: 0; z-index: 60; min-width: 210px; padding: 8px;
    display: flex; flex-direction: column; gap: 2px; background: var(--card, #fff); color: var(--text, #1f2933);
    border: 1px solid var(--line, #dde3ea); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.15); text-align: left; }
.share-box[hidden] { display: none; }
.share-box-title { margin: 2px 8px 6px; font-weight: 700; font-size: .9rem; }
.share-opt { display: block; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: none; font: inherit;
    font-size: .95rem; color: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.share-opt:hover, .share-opt:focus-visible { background: rgba(30,158,74,.1); color: inherit; }
.share-box-done { margin: 4px 8px 2px; font-size: .85rem; font-weight: 700; color: #1e9e4a; }
/* v43: the share icon sits in the menu after Contact. In the phone menu it is left-aligned and its box opens under it. */
@media (max-width: 1320px) {
    .nav-share-wrap { display: flex; flex-direction: column; align-items: flex-start; }
    .share-box { position: static; box-shadow: none; margin: 6px 0 8px; width: 100%; }
}
.nav-share-label { display: none; }   /* wide screens: icon only */
@media (max-width: 1320px) {   /* v45: folded menu: "Share" with its icon in a bubble, like Sign in */
    .nav-share { width: auto; height: auto; gap: 6px; padding: 8px 14px; border-radius: 8px; font-size: .95rem;
        border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; font-family: inherit; font-weight: 600; }
    [data-theme=light] .nav-share { border-color: #c4cddb; color: var(--ink); }   /* same bubble as Sign in */
    .nav-share svg { width: 17px; height: 17px; }
    .nav-share-label { display: inline; }
}

/* dkgaming.us v46: each address that opens the map sits in its own light-blue map bubble (pin on the left, map on the right) */
a.map-link { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 5px 11px; border-radius: 999px;
    background: #f3f9fe; border: 1px solid #cfe3f6; color: #0c447c; font-weight: 600; font-size: .92em; line-height: 1.3;
    text-decoration: none; overflow-wrap: anywhere; cursor: pointer; }
a.map-link::before, a.map-link::after { content: ""; flex: 0 0 auto; width: 15px; height: 15px; margin: 0;
    background: center / contain no-repeat; text-decoration: none; }
a.map-link::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23378add' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.5a7 7 0 0 1 14 0C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E"); }
a.map-link::after { width: 13px; height: 13px; opacity: .75;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23378add' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6l6-3 6 3 6-3v15l-6 3-6-3-6 3z'/%3E%3Cpath d='M9 3v15M15 6v15'/%3E%3C/svg%3E"); }
a.map-link:hover, a.map-link:focus-visible { background: #e6f1fb; border-color: #a9cdf0; color: #0c447c; text-decoration: none; }
[data-theme=dark] a.map-link { background: rgba(55,138,221,.14); border-color: rgba(133,183,235,.4); color: #b5d4f4; }
[data-theme=dark] a.map-link:hover, [data-theme=dark] a.map-link:focus-visible { background: rgba(55,138,221,.24); color: #e6f1fb; }

/* dkgaming.us v47: the top bar is a little wider than the page (room for Contact, Sign in and the share icon on one line,
   right before Get the app). Below 1320px wide everything folds into the menu button. */
.topbar .wrap.topbar-inner { max-width: 1340px; }
@media (min-width: 1321px) {
    .topbar-inner { flex-wrap: nowrap; }
    .topnav { flex-wrap: nowrap; white-space: nowrap; }
    .topnav > * { flex: 0 0 auto; }
}

/* dkgaming.us v49: Home, IL gaming numbers and Contact in bubbles like the other top links; light/dark left of Sign in */
@media (min-width: 1321px) {
    .topnav .nav-bubble { border: 1px solid rgba(255,255,255,.35); border-radius: 10px; margin: 0 2px; }
    .topnav a.nav-bubble { padding: 7px 12px; }
    .topnav .nav-item.nav-bubble { padding: 0 2px 0 0; }
    .topnav .nav-item.nav-bubble > a:not(.btn) { padding: 7px 4px 7px 12px; border-radius: 10px 0 0 10px; }
    .topnav .nav-item.nav-bubble > .nav-caret { margin-right: 4px; }
    .topnav .nav-bubble:hover { border-color: #fff; }
    [data-theme=light] .topnav .nav-bubble { border-color: #c4cddb; background: #fff; }
    [data-theme=light] .topnav .nav-bubble:hover { border-color: var(--navy); }
    [data-theme=light] .topnav a.nav-gaming.nav-bubble.active, [data-theme=light] .topnav .nav-item.nav-bubble.is-current { background: #fff4dc; border-color: #f3c977; }
    .topnav .nav-theme { display: inline-flex; margin: 0 4px 0 6px; }
}
@media (max-width: 1320px) {   /* folded menu: the light / dark switch on its own line, left-aligned */
    .topnav .nav-theme { display: flex; justify-content: flex-start; padding: 10px 0 0; }
    .topnav .nav-theme .theme-toggle { display: inline-flex; }
}

/* dkgaming.us v50: free login -> claim your location */
.gh-claim { display: inline-block; margin-left: 14px; font-weight: 700; color: #157a38; }
.gh-claim:hover { color: #0f5c2a; }
[data-theme=dark] .gh-claim { color: #4fd17e; }
.owner-next { margin-top: 12px; }
.alert-info { background: #eef6fd; border-color: #cfe3f6; color: #0c447c; }
[data-theme=dark] .alert-info { background: rgba(55,138,221,.14); border-color: rgba(133,183,235,.4); color: #b5d4f4; }
.expired-card { max-width: 520px; margin: 40px auto; }   /* v51 */

/* dkgaming.us v54: who is signed in + today's date, under the top bar */
.whoami-bar { background: #eef3fb; border-bottom: 1px solid #dbe4f0; font-size: .88rem; color: #1f2d44; }
.whoami-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 16px; padding-top: 6px; padding-bottom: 6px; }
.whoami-role { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #fff; border: 1px solid #c4cddb; font-size: .78rem; }
.whoami-date { color: #4a5a72; }
[data-theme=dark] .whoami-bar { background: rgba(255,255,255,.05); border-bottom-color: rgba(255,255,255,.1); color: #d6e2f5; }
[data-theme=dark] .whoami-role { background: transparent; border-color: rgba(255,255,255,.3); }
[data-theme=dark] .whoami-date { color: #a9b8cf; }

/* dkgaming.us v55: every top link in the same bubble, and the page you are on lit the same way */
@media (min-width: 1321px) {
    .topnav .nav-bubble { border: 1px solid rgba(255,255,255,.35); border-radius: 10px; margin: 0 2px; }
    .topnav a.nav-bubble { padding: 7px 12px; }
    .topnav .nav-item.nav-bubble { padding: 0 2px 0 0; }
    .topnav .nav-item.nav-bubble > a:not(.btn) { padding: 7px 4px 7px 12px; border-radius: 10px 0 0 10px; background: none; box-shadow: none; }
    .topnav .nav-item.nav-account.nav-bubble { padding: 0; }
    .topnav .nav-account.nav-bubble > .nav-user-btn { padding: 7px 10px 7px 12px; border: 0; background: none; }
    .topnav a.nav-bubble.active, .topnav .nav-bubble.is-current { background: rgba(245,165,36,.18); border-color: var(--accent); box-shadow: none; color: #ffc15c; }
    .topnav .nav-bubble.is-current > a:not(.btn), .topnav .nav-bubble.is-current > .nav-user-btn { color: #ffc15c; background: none; box-shadow: none; }
    [data-theme=light] .topnav .nav-bubble { border-color: #c4cddb; background: #fff; }
    [data-theme=light] .topnav .nav-bubble:hover { border-color: var(--navy); }
    [data-theme=light] .topnav a.nav-bubble.active, [data-theme=light] .topnav .nav-bubble.is-current { background: #fff4dc; border-color: #f3c977; color: #8a5a00; }
    [data-theme=light] .topnav .nav-bubble.is-current > a:not(.btn), [data-theme=light] .topnav .nav-bubble.is-current > .nav-user-btn { color: #8a5a00; }
}

/* dkgaming.us v59: signed in: a small light-green "➤ $" bubble before each location's name opens its months */
.gl-money-btn { display: inline-flex; align-items: center; gap: 3px; margin: 0 8px 0 0; padding: 2px 9px; vertical-align: middle;
    border-radius: 999px; border: 1px solid #b7e2c4; background: #eefaf2; color: #157a38; font: inherit; font-size: .8rem;
    font-weight: 800; line-height: 1.4; cursor: pointer; }
.gl-money-btn:hover, .gl-money-btn:focus-visible { background: #dcf3e4; border-color: #7ccc97; }
.gl-money-btn .gl-money-arrow { font-size: .75rem; }
.gl-open .gl-money-btn, .gl-money-btn[aria-expanded=true] { background: #1e9e4a; border-color: #1e9e4a; color: #fff; }
[data-theme=dark] .gl-money-btn { background: rgba(30,158,74,.15); border-color: rgba(30,158,74,.45); color: #4fd17e; }

/* dkgaming.us v60: Settings drop-down (what you have, more features) and the My Location steps */
.subnav .subnav-have .have-check { color: #1e9e4a; font-weight: 800; }
.verify-steps { margin: 0 0 16px; padding-left: 22px; }
.verify-steps li { margin: 0 0 10px; line-height: 1.5; }
.person-pick { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.person-list { list-style: none; margin: 0; padding: 0; }
.person-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.perm-person-table select { min-width: 150px; }
.perm-kind { white-space: nowrap; }

/* dkgaming.us v61: Permissions much shorter: tight rows, small switches, explanations only on hover */
.perm-compact th, .perm-compact td { padding: 4px 8px; line-height: 1.25; font-size: .88rem; }
.perm-compact td strong { font-weight: 600; }
.perm-compact .badge { font-size: .72rem; padding: 1px 6px; }
.perm-compact .toggle { gap: 5px; font-size: .78rem; }
.perm-compact .toggle-track { width: 32px; height: 18px; }
.perm-compact .toggle-knob { top: 2px; left: 2px; width: 14px; height: 14px; }
.perm-compact .toggle input:checked + .toggle-track .toggle-knob { transform: translateX(14px); }
.perm-compact select { padding: 3px 6px; font-size: .85rem; }
.js .perm-compact .toggle-form .btn { display: none; }
.card:has(.perm-compact) { padding: 12px 16px; margin-bottom: 12px; }
.card:has(.perm-compact) h2 { font-size: 1.05rem; margin: 0 0 6px; }
.card:has(.perm-compact) .card-head { margin-bottom: 4px; }
.gl-money-btn.gl-money-under { margin: 4px 0 0; }   /* v63: under the city / state */

/* dkgaming.us v64: Type drop-down on IL gaming numbers (Edit type of location) */
.gl-type-select { max-width: 100%; padding: 3px 6px; font: inherit; font-size: .85rem; border: 1px solid #cdd5e1; border-radius: 8px; background: #fff; }
[data-theme=dark] .gl-type-select { background: transparent; color: inherit; border-color: rgba(255,255,255,.3); }
.gl-type-note { min-height: 0; font-size: .75rem; color: var(--muted); }
.gl-type-note.ok { color: #157a38; font-weight: 700; }
.gl-type-note.err { color: #b42318; font-weight: 700; }
.person-kind { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #f7f9fc; }   /* v66 */
[data-theme=dark] .person-kind { background: rgba(255,255,255,.04); }
/* v67: flipped kind-of-account table: kinds down the side, features across, header words wrap */
.perm-flipped thead th.perm-col { white-space: normal; min-width: 84px; max-width: 120px; font-size: .78rem; line-height: 1.2; vertical-align: bottom; }
.perm-flipped tbody th { white-space: nowrap; font-weight: 600; font-size: .88rem; padding: 4px 8px; text-align: left; }

/* dkgaming.us v68: profile picture at the top right (your settings) */
.nav-me { position: relative; display: inline-flex; align-items: center; margin-left: 4px; }
.nav-me-btn { display: inline-flex; align-items: center; padding: 0; border: 2px solid transparent; border-radius: 50%; background: none; cursor: pointer; }
.nav-me-btn:hover, .nav-me-btn:focus-visible, .nav-me.is-current .nav-me-btn { border-color: var(--accent); }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.avatar-initials { background: #1f3b5a; color: #fff; font-weight: 800; font-size: .8rem; letter-spacing: .02em; }
[data-theme=light] .avatar-initials { background: #dbe4f0; color: #1f3b5a; }
.profile-pic .avatar { width: 96px; height: 96px; font-size: 1.8rem; }
.profile-row { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.profile-upload { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; max-width: 420px; }
@media (max-width: 1320px) { .nav-me { margin: 10px 0 0; } .nav-me .subnav { position: static; } }
/* dkgaming.us v69: Location approvals */
.ownloc-person { border-top: 1px solid var(--line); padding: 10px 0; }
.ownloc-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 6px; }
.ownloc-actions { white-space: nowrap; }
.ownloc-actions .inline-form { display: inline-block; margin-left: 4px; }
/* dkgaming.us v70: Groups & master */
.grp-grid .grp-section th { background: #f3f6fa; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
[data-theme=dark] .grp-grid .grp-section th { background: rgba(255,255,255,.05); }
.grp-grid tr.grp-off td { opacity: .55; }
.grp-grid select { padding: 2px 6px; font-size: .82rem; }
.grp-rename input { padding: 3px 8px; font-size: .88rem; max-width: 220px; }
.grp-add { margin-top: 10px; }
.grp-check { display: inline-flex; align-items: center; gap: 5px; margin-right: 8px; font-size: .9rem; }   /* v70 */
.myloc-on td { background: #fff4dc; }   /* v71: the location being shown */
[data-theme=dark] .myloc-on td { background: rgba(245,165,36,.12); }
/* dkgaming.us v72: DK dashboard */
.dk-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 16px; background: #eefaf2; border-color: #b7e2c4; }
.dk-pick select { min-width: 280px; max-width: 100%; }
[data-theme=dark] .dk-pick { background: rgba(30,158,74,.1); }
.dk-months td, .dk-months th { white-space: nowrap; }

/* dkgaming.us v73: "Install App" - bigger download icon, "Install" and "App" on two lines, same orange bubble */
.app-get-btn { gap: 7px; padding-top: 4px; padding-bottom: 4px; }
.app-get-btn svg { width: 24px; height: 24px; stroke-width: 2.4; }
.app-get-text { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1.05; font-size: .86rem; font-weight: 800; }
/* dkgaming.us v75: the Dashboard, laid out like the old site's Admin Dash */
.dk-box { background: #ccffcc; color: #111; padding: 10px 0 6px; margin: 0 0 22px; }
.dk-top { display: grid; grid-template-columns: minmax(0, 2fr) 1fr 1fr; align-items: center; gap: 12px; padding: 0 28px 8px; }
.dk-sel select { width: 100%; max-width: 540px; padding: 7px 12px; font-size: 1rem; background: #ccffcc; color: #333; border: 1px solid #9ac59a; border-radius: 4px; }
.dk-excel { justify-self: start; display: inline-flex; }
.dk-score { justify-self: center; display: inline-flex; align-items: center; gap: 4px; color: #d11; font-size: 1rem; }
.dk-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px 16px; padding: 4px 32px 10px; }
.dk-grid > div { display: flex; flex-direction: column; font-size: .92rem; }
.dk-head { font-weight: 700; font-style: italic; text-decoration: underline; font-size: .82rem; color: #222; }
.dk-dates { font-style: italic; font-size: .82rem; color: #333; line-height: 1.55; }
.dk-grid b { font-size: .98rem; margin: 2px 0 4px; }
.dk-note { padding: 4px 32px; font-style: italic; }
.dk-years { width: 100%; border-collapse: collapse; font-size: .92rem; }
.dk-years th, .dk-years td { padding: 3px 10px; text-align: left; white-space: nowrap; border-top: 1px dotted #808080; }
.dk-years thead th { font-variant: small-caps; font-weight: 800; font-size: .95rem; border-top: 0; }
.dk-years tbody th, .dk-years .dk-total { font-weight: 800; }
@media (max-width: 900px) { .dk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 4px 14px 10px; } .dk-top { grid-template-columns: 1fr auto auto; padding: 0 14px 8px; } }
/* dkgaming.us v76: Dashboard text in the same style as the rest of the site (no italics, underlines or small caps) */
.dk-box, .dk-box select { font-family: inherit; }
.dk-head { font-style: normal; text-decoration: none; font-weight: 600; font-size: .82rem; color: #4a5a72; }
.dk-dates { font-style: normal; font-size: .82rem; color: #4a5a72; line-height: 1.45; }
.dk-grid b { font-size: 1.25rem; font-weight: 800; color: #12233a; margin: 2px 0 8px; }
.dk-note { font-style: normal; }
.dk-years { font-size: .9rem; }
.dk-years thead th { font-variant: normal; font-weight: 700; font-size: .82rem; color: #4a5a72; }
.dk-years tbody th { font-weight: 700; }
.dk-years .dk-total { font-weight: 800; }
.dk-score { font-size: .95rem; font-weight: 600; }
/* dkgaming.us v77: Dashboard laid out like IL gaming numbers - white cards, tiles, a clean table */
.dk-box { background: none; color: inherit; padding: 0; }
.dk-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 16px; margin-bottom: 16px; }
.dk-sel { flex: 1 1 320px; }
.dk-sel select { width: 100%; max-width: 520px; background: #fff; color: inherit; border: 1px solid #cdd5e1; border-radius: 10px; padding: 8px 12px; }
[data-theme=dark] .dk-sel select { background: transparent; border-color: rgba(255,255,255,.3); }
.dk-excel, .dk-score { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px;
    background: var(--card); color: inherit; font-weight: 600; font-size: .9rem; text-decoration: none; }
.dk-excel:hover { border-color: #1e7a3e; }
.dk-score { color: var(--muted); }
.dk-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0; gap: 14px; margin-bottom: 18px; }
.dk-grid .kpi { padding: 14px 16px; }
.dk-grid .dk-head { color: var(--muted); }
.dk-grid .dk-dates { color: var(--muted); font-size: .8rem; margin-top: 2px; }
.dk-grid .kpi-value { margin: 4px 0 0; font-size: 1.45rem; color: inherit; }
.dk-years { width: 100%; }
.dk-years th, .dk-years td { border-top: 0; padding: 6px 10px; text-align: right; }
.dk-years th:first-child, .dk-years td:first-child { text-align: left; }
.dk-years tbody tr:nth-child(even) { background: rgba(31,59,90,.035); }
.dk-years .dk-total { border-left: 1px solid var(--line); }
.dk-note { padding: 14px 16px; }
@media (max-width: 1000px) { .dk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.igb-log { max-height: 260px; overflow: auto; background: #f7f9fc; border: 1px solid var(--line); border-radius: 8px; padding: 10px; white-space: pre-wrap; }   /* v78 */
[data-theme=dark] .igb-log { background: rgba(255,255,255,.04); }
/* dkgaming.us v79: DK earnings (Accel revenue share) panel */
.dk-acc { margin-bottom: 18px; }
.dk-acc-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.dk-acc-head h2 { margin: 0; }
.dk-acc-pick select { border: 1px solid #cdd5e1; border-radius: 10px; padding: 7px 12px; background: var(--card); color: inherit; }
.dk-acc .dk-grid { margin-bottom: 16px; }
.dk-green { color: #1e7a3e !important; }
[data-theme=dark] .dk-green { color: #5fd38a !important; }
.dk-acc-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 22px; margin-bottom: 14px; }
.dk-acc h3 { margin: 4px 0 8px; }
.dk-steps { width: 100%; font-size: .9rem; }
.dk-steps th { text-align: left; font-weight: 600; padding: 5px 10px 5px 0; }
.dk-steps td { text-align: right; padding: 5px 0; white-space: nowrap; }
.dk-steps .dk-sub th, .dk-steps .dk-sub td { font-weight: 800; border-top: 1px solid var(--line); }
@media (max-width: 900px) { .dk-acc-cols { grid-template-columns: 1fr; } }
.dk-grid.dk-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }   /* v83: Earnings details, 2 rows of 3 */
@media (max-width: 700px) { .dk-grid.dk-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* dkgaming.us v84: Dashboard pages use more of the screen (less empty space on the sides) */
.wrap.wrap-wide { max-width: 1640px; padding: 0 24px; }
@media (max-width: 700px) { .wrap.wrap-wide { padding: 0 12px; } }
/* dkgaming.us v86: Earnings by month - month names centered over their numbers, numbers centered too */
table.data.dk-yeargrid th, table.data.dk-yeargrid td { text-align: center; }
table.data.dk-yeargrid th:first-child, table.data.dk-yeargrid td:first-child { text-align: left; }
/* dkgaming.us v87: Dashboard back to the normal page width; Earnings by month made compact so it fits without a scrollbar */
table.data.dk-yeargrid { width: 100%; font-size: .8rem; font-variant-numeric: tabular-nums; }
table.data.dk-yeargrid th, table.data.dk-yeargrid td { padding: 7px 3px; }
table.data.dk-yeargrid thead th { font-size: .7rem; letter-spacing: .3px; }
table.data.dk-yeargrid th:first-child, table.data.dk-yeargrid td:first-child { padding-left: 8px; }
table.data.dk-yeargrid th:last-child, table.data.dk-yeargrid td:last-child { padding-right: 8px; padding-left: 8px; }
/* dkgaming.us v88: signed in - menu links start on the left (after the logo); Admin dashboard, picture,
   dark/light and Install App stay on the right */
@media (min-width: 1321px) {
    .topnav.nav-split { flex: 1 1 auto; margin-left: 28px; }
    .topnav.nav-split .nav-push { margin-left: auto; }
}
/* dkgaming.us v89: Locations - "➤ $" to the right of the month; operator under the type; names open the edit page */
.gl-month-line { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: nowrap; }
.gl-money-btn.gl-money-side { margin: 0; }
.gl-op { margin-top: 3px; font-size: .78rem; color: var(--muted); }
.gl-op::before { content: "TO: "; font-weight: 600; }
a.gl-edit-link { color: #1957b8; text-decoration: underline; text-underline-offset: 3px; }
a.gl-dba.gl-edit-link { font-weight: 700; font-variant: small-caps; }
.gl-legal a.gl-edit-link { color: var(--muted); }
.gl-legal a.gl-edit-link:hover { color: #1957b8; }
[data-theme=dark] a.gl-edit-link { color: #7fb0ff; }
/* v89: location edit page */
.le-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; }
.le-grid label { display: flex; flex-direction: column; gap: 4px; font-size: .82rem; font-weight: 600; color: var(--muted); }
.le-grid input[type=text], .le-grid input[type=date], .le-grid select { font-size: .95rem; padding: 8px 10px; border: 1px solid #cdd5e1; border-radius: 8px; background: var(--card); color: var(--ink); font-weight: 400; }
.le-check { flex-direction: row !important; align-items: center; gap: 8px !important; margin-top: 22px; }
.le-time { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 16px; }
.le-step { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.le-step b { font-size: .88rem; }
.le-step input[type=date] { padding: 6px 8px; border: 1px solid #cdd5e1; border-radius: 8px; background: var(--card); color: var(--ink); }
.le-step label { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--muted); }
.le-step.done { border-color: #7ccc97; background: rgba(30,158,74,.06); }
.le-bar { height: 8px; border-radius: 6px; background: var(--line); overflow: hidden; margin: 6px 0 14px; }
.le-bar > span { display: block; height: 100%; background: #1e9e4a; }
.le-actions { display: flex; gap: 10px; align-items: center; margin-top: 16px; flex-wrap: wrap; }
.le-card { margin-bottom: 18px; }
.le-card h2 { margin-top: 0; }
@media (max-width: 900px) { .le-grid { grid-template-columns: 1fr 1fr; } .le-time { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .le-grid, .le-time { grid-template-columns: 1fr; } }
/* v89: timeline progress bar widths (no inline styles) */
.le-bar > .le-bar-0 { width: 0%; }
.le-bar > .le-bar-5 { width: 5%; }
.le-bar > .le-bar-10 { width: 10%; }
.le-bar > .le-bar-15 { width: 15%; }
.le-bar > .le-bar-20 { width: 20%; }
.le-bar > .le-bar-25 { width: 25%; }
.le-bar > .le-bar-30 { width: 30%; }
.le-bar > .le-bar-35 { width: 35%; }
.le-bar > .le-bar-40 { width: 40%; }
.le-bar > .le-bar-45 { width: 45%; }
.le-bar > .le-bar-50 { width: 50%; }
.le-bar > .le-bar-55 { width: 55%; }
.le-bar > .le-bar-60 { width: 60%; }
.le-bar > .le-bar-65 { width: 65%; }
.le-bar > .le-bar-70 { width: 70%; }
.le-bar > .le-bar-75 { width: 75%; }
.le-bar > .le-bar-80 { width: 80%; }
.le-bar > .le-bar-85 { width: 85%; }
.le-bar > .le-bar-90 { width: 90%; }
.le-bar > .le-bar-95 { width: 95%; }
.le-bar > .le-bar-100 { width: 100%; }
/* dkgaming.us v90: staff filters on Locations */
.gl-staff { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 10px 16px; margin: 0 0 12px; }
.gl-chk { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .92rem; cursor: pointer; }
.gl-chk input { width: 17px; height: 17px; }
.gl-op-pick { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92rem; }
.gl-op-pick select { min-width: 220px; max-width: 320px; padding: 6px 10px; border: 1px solid #cdd5e1; border-radius: 8px; background: var(--card); color: var(--ink); }
.gl-staff-note { flex: 1 1 260px; }
.gl-add { margin-left: auto; }
.gl-nodata { color: var(--muted); font-size: .82rem; font-style: italic; }
/* dkgaming.us v91: Earned column right-justified (month + $ bubble, then the amount) */
table.gaming-list td.gl-earned { text-align: right; }
table.gaming-list td.gl-earned .gl-amount { text-align: right; }
table.gaming-list th.gl-earned-col { text-align: right; }
@media (max-width: 900px) { table.gaming-list td.gl-earned { justify-content: flex-end; } }
/* dkgaming.us v93: the open location's menu in the top bar - name cut to 10 characters, fixed width */
.nav-dkloc .dkloc-name { display: inline-block; width: 10ch; overflow: hidden; white-space: nowrap; text-overflow: clip; vertical-align: bottom; font-weight: 700; }
.soon-tag { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 0 4px; margin-left: 4px; }
/* dkgaming.us v95: Admin > Update reports */
.upd-table td { vertical-align: top; }
.upd-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.upd-ok { background: #e3f6ea; color: #1e7a3e; }
.upd-run { background: #fde8e8; color: #b42318; }
.upd-wait { background: #fff4d6; color: #8a6100; }
[data-theme=dark] .upd-ok { background: rgba(30,158,74,.18); color: #5fd38a; }
[data-theme=dark] .upd-run { background: rgba(220,60,60,.18); color: #ff9b9b; }
[data-theme=dark] .upd-wait { background: rgba(240,180,40,.18); color: #f3c969; }
.upd-note { display: flex; gap: 6px; align-items: center; }
.upd-note input { min-width: 180px; padding: 5px 8px; border: 1px solid #cdd5e1; border-radius: 8px; background: var(--card); color: var(--ink); }
.gl-count { font-weight: 800; font-size: 1rem; white-space: nowrap; }   /* v96: "31 Locations" by the Operator filter */
/* dkgaming.us v97: staff - the corporate (legal) name is a light-yellow bubble that opens Edit location */
.gl-legal a.gl-corp-bubble { display: inline-block; margin-top: 3px; padding: 1px 9px; border-radius: 999px; background: #fff7cc; border: 1px solid #f0dc8a;
    color: #5c4a00; text-decoration: none; font-size: .82rem; line-height: 1.5; }
.gl-legal a.gl-corp-bubble:hover, .gl-legal a.gl-corp-bubble:focus-visible { background: #ffef99; border-color: #e0c75a; color: #3d3100; }
[data-theme=dark] .gl-legal a.gl-corp-bubble { background: rgba(240,210,80,.16); border-color: rgba(240,210,80,.45); color: #f3dc8a; }
/* dkgaming.us v99: Pending - terminal operator drop-down under the type */
.gl-op-edit { margin-top: 4px; }
.gl-op-select { max-width: 190px; font-size: .8rem; padding: 3px 6px; border: 1px solid #cdd5e1; border-radius: 6px; background: var(--card); color: var(--ink); }
/* dkgaming.us v105: Edit location - IGB pending / licensed dates */
.le-dates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.le-dates > div { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.le-dates span { font-size: .8rem; color: var(--muted); font-weight: 600; }
.le-dates b { font-size: 1.05rem; }
@media (max-width: 560px) { .le-dates { grid-template-columns: 1fr; } }
.gl-stage { margin-top: 3px; display: inline-block; font-size: .74rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: #e8f0ff; color: #1957b8; border: 1px solid #c4d6fb; }   /* v106 */
[data-theme=dark] .gl-stage { background: rgba(80,140,255,.16); color: #9cc0ff; border-color: rgba(80,140,255,.4); }
/* dkgaming.us v108: location documents */
.doc-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.doc-ext { display: inline-block; min-width: 38px; text-align: center; font-size: .68rem; font-weight: 800; padding: 2px 5px; border-radius: 5px; background: #eef2f7; color: #4a5a72; }
.doc-pdf { background: #fde8e8; color: #b42318; }
.doc-jpg, .doc-jpeg, .doc-png, .doc-gif, .doc-webp, .doc-heic { background: #e3f6ea; color: #1e7a3e; }
.doc-doc, .doc-docx { background: #e8f0ff; color: #1957b8; }
.doc-xls, .doc-xlsx { background: #e3f6ea; color: #14683a; }
.doc-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.doc-thumbs a { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: inherit; font-size: .8rem; }
.doc-thumbs img { width: 100%; height: 120px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: #f3f5f8; }
.doc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.doc-list { margin: 0; padding-left: 18px; line-height: 1.9; }
.le-wide { grid-column: span 2; }
.link-btn { background: none; border: 0; padding: 0; color: #b42318; cursor: pointer; text-decoration: underline; }
@media (max-width: 700px) { .doc-cols { grid-template-columns: 1fr; } .le-wide { grid-column: auto; } }
/* dkgaming.us v109: Target / Working tick boxes beside the location name */
.loc-title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.loc-title h1 { margin: 0; }
.loc-flags { display: flex; gap: 8px; }
.loc-flag { margin: 0; }
.loc-flag label { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px;
    font-weight: 700; font-size: .88rem; cursor: pointer; background: var(--card); }
.loc-flag input { width: 16px; height: 16px; }
.loc-flag.on label { background: #e3f6ea; border-color: #7ccc97; color: #1e7a3e; }
[data-theme=dark] .loc-flag.on label { background: rgba(30,158,74,.18); color: #5fd38a; }
/* dkgaming.us v111: IGB Docs/Links laid out like the old site (4 columns) */
.dl-head { margin: 0 0 16px; }
.dl-head .loc-title h1 { font-size: 1.6rem; }
.dl-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 4px; font-size: .95rem; }
.dl-name { margin-top: 6px; font-weight: 800; font-variant: small-caps; font-size: 1.05rem; }
.dl-addr { font-weight: 700; font-variant: small-caps; }
.dl-cols { display: grid; grid-template-columns: 1.25fr 1.15fr 1fr 1fr; gap: 26px; padding: 18px 20px; margin-bottom: 18px; }
.dl-cols section { min-width: 0; }
.dl-h { font-size: 1.05rem; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; margin: 0 0 10px; }
.dl-list { list-style: none; margin: 0; padding: 0; }
.dl-list li { display: flex; align-items: center; gap: 6px; padding: 5px 0; border-bottom: 1px dotted var(--line); font-size: .9rem; }
.dl-list li a { display: inline-flex; align-items: center; gap: 6px; flex: 1 1 auto; min-width: 0; color: #1957b8; text-decoration: underline; text-underline-offset: 2px; }
[data-theme=dark] .dl-list li a { color: #7fb0ff; }
.dl-list .doc-ext { flex: none; min-width: 30px; font-size: .62rem; }
.dl-ico { flex: none; font-size: .95rem; text-decoration: none; }
.dl-upload { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.dl-upload select, .dl-upload input[type=text] { padding: 6px 8px; border: 1px solid #cdd5e1; border-radius: 8px; background: var(--card); color: var(--ink); font-size: .88rem; }
.dl-upload input[type=file] { font-size: .82rem; }
.dl-upload button { align-self: flex-start; }
.dl-del { margin: 0; flex: none; }
.dl-del button { background: none; border: 0; padding: 2px; color: #d11; cursor: pointer; }
.dl-del button:hover { color: #900; }
@media (max-width: 1100px) { .dl-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .dl-cols { grid-template-columns: 1fr; } }
/* dkgaming.us v113: drag-and-drop upload box on IGB Docs/Links */
.dl-drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 84px; padding: 10px;
    border: 2px dashed #b9c6da; border-radius: 10px; background: #f7f9fc; color: var(--muted); font-size: .85rem; text-align: center; cursor: pointer; }
.dl-drop input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.dl-drop-ico { font-size: 1.4rem; line-height: 1; }
.dl-drop:hover, .dl-drop:focus-within { border-color: #1957b8; color: #1957b8; }
.dl-drop.is-over { border-color: #1e9e4a; background: #e3f6ea; color: #1e7a3e; }
.dl-drop.has-file { border-style: solid; border-color: #1e9e4a; color: var(--ink); font-weight: 600; }
[data-theme=dark] .dl-drop { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.25); }
[data-theme=dark] .dl-drop.is-over { background: rgba(30,158,74,.15); }
/* dkgaming.us v115: location pages (Recap, IGB Licensing, Notes/Tasks, Contacts, Analyze, Events, Ledger, Deposits, Groups, Reminders ...) */
.recap-cols { grid-template-columns: 1fr 1fr 1.6fr; }
.notes-cols { grid-template-columns: 1.8fr 1fr; }
.analyze-cols { grid-template-columns: 1fr 1fr; }
.path-list li { gap: 10px; }
.path-list li b { min-width: 86px; }
.path-dot { display: inline-flex; width: 20px; height: 20px; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid #cdd5e1; color: #8a97ab; font-size: .75rem; }
.path-list li.ok .path-dot { background: #1e9e4a; border-color: #1e9e4a; color: #fff; }
.path-row { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.path-row li { border: 0; }
.note-list { list-style: none; margin: 0 0 14px; padding: 0; }
.note { border-bottom: 1px dotted var(--line); padding: 8px 0; }
.note.done { opacity: .6; }
.note-top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.note-type { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .3px; padding: 1px 8px; border-radius: 999px; background: #e8f0ff; color: #1957b8; }
.note-fu { font-size: .75rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: #fff4d6; color: #8a6100; }
.note-fu.late { background: #fde8e8; color: #b42318; }
.note-text { margin-top: 4px; font-size: .92rem; white-space: normal; }
.note-act { display: flex; gap: 12px; margin-top: 4px; }
.link-btn.ok { color: #1e7a3e; }
.note-form { margin-bottom: 16px; }
.note-form textarea, .crud-form textarea { width: 100%; padding: 8px 10px; border: 1px solid #cdd5e1; border-radius: 8px; background: var(--card); color: var(--ink); font: inherit; }
.crud-table td.num, .crud-table th.num { text-align: right; }
.crud-act { white-space: nowrap; display: flex; gap: 10px; align-items: center; }
.crud-editing { background: #fff7cc; }
[data-theme=dark] .crud-editing { background: rgba(240,210,80,.12); }
.crud-form { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.crud-title { grid-column: 1 / -1; margin: 0; }
.crud-btns { grid-column: 1 / -1; display: flex; gap: 12px; align-items: center; }
.crud-tabs { display: flex; gap: 6px; margin: 0 0 10px; }
.crud-tabs a { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: inherit; font-weight: 600; }
.crud-tabs a.active { background: #1957b8; border-color: #1957b8; color: #fff; }
.rem-soon td { color: #b42318; font-weight: 600; }
.rem-past td { color: var(--muted); }
@media (max-width: 1100px) { .recap-cols, .notes-cols, .analyze-cols { grid-template-columns: 1fr; } }
/* dkgaming.us v116: Analyze, laid out like the old site */
.an-card { padding: 16px 18px; }
.an-top { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; border-top: 2px solid var(--ink); border-bottom: 1px dashed var(--ink); padding: 8px 0; margin-bottom: 12px; }
.an-top > div { display: flex; flex-direction: column; gap: 3px; padding: 0 10px; }
.an-labels { text-align: right; font-style: italic; color: var(--muted); }
.an-col { text-align: center; font-weight: 600; }
.an-month { font-weight: 800; font-style: italic; }
.an-now .an-month { color: #1957b8; }
.an-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 16px; margin-bottom: 10px; }
.an-filters label { display: flex; flex-direction: column; gap: 3px; font-size: .82rem; font-weight: 700; }
.an-filters label > span { font-size: .95rem; }
.an-filters select { min-width: 150px; padding: 6px 10px; border: 1px solid #cdd5e1; border-radius: 8px; background: var(--card); color: var(--ink); }
.an-checks { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; flex: 0 0 auto; }
.an-checks label { flex-direction: row; justify-content: flex-start; align-items: center; gap: 6px; font-weight: 600; white-space: nowrap; text-align: left; }
/* v118/v119: days left in the current month, next to Day over the list */
.an-left { margin-left: 8px; font-size: .78rem; font-weight: 700; font-style: normal; color: #b45309; white-space: nowrap; }
.an-results { max-height: 640px; overflow-y: auto; border-bottom: 2px solid var(--ink); }
.an-table th.num, .an-table td.num { text-align: right; }
.an-table tr.an-break td { border-top: 1px solid var(--ink); }
.an-table tfoot th { border-top: 2px solid var(--ink); }
@media (max-width: 700px) { .an-top { grid-template-columns: 1fr 1fr; } .an-labels { display: none; } }

/* v120: Dashboard location search (before the All My Earning Locations dropdown) */
.dk-find { position: relative; flex: 0 1 300px; }
.dk-find input { width: 100%; padding: 8px 12px; border: 1px solid #cdd5e1; border-radius: 10px; background: var(--card); color: var(--ink); font-size: 1rem; }
.dk-find-list { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 4px); max-height: 320px; overflow-y: auto; margin: 0; padding: 4px 0;
    list-style: none; background: var(--card); border: 1px solid #cdd5e1; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.15); }
.dk-find-list li { display: flex; flex-direction: column; padding: 6px 12px; cursor: pointer; }
.dk-find-list li b { font-weight: 600; }
.dk-find-list li small { color: var(--muted); }
.dk-find-list li.on { background: #e7f0ff; }
[data-theme=dark] .dk-find-list li.on { background: rgba(255,255,255,.12); }
.dk-find-list li.none { color: var(--muted); cursor: default; }
[data-theme=dark] .dk-find input { background: transparent; border-color: rgba(255,255,255,.3); }

/* v121: days left next to This Month on the Dashboard */
.dk-left { font-weight: 700; color: #b45309; }

/* v122: Dashboard reset button and count links */
.dk-reset { flex: 0 0 auto; white-space: nowrap; }
.dk-grid b a { color: inherit; text-decoration: none; }
.dk-grid b a:hover { text-decoration: underline; }

/* v123: Dashboard - no "Staff" label, page sits higher */
.page.dk-page { padding-top: 10px; }
.dk-head-top { margin-bottom: 10px; }
.dk-head-top h1 { margin: 0; }

/* v124: Dashboard count bubbles - label left, number right, two per bubble */
.dk-grid .dk-pairs { justify-content: center; gap: 8px; }
.dk-pair { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.dk-pair > span { font-weight: 600; font-size: .9rem; color: #4a5a72; }
.dk-grid .dk-pair b { margin: 0; }
[data-theme=dark] .dk-pair > span { color: inherit; opacity: .8; }

/* v128: Dashboard > TUA's */
.tua-card { padding: 14px 16px; }
.tua-filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 16px; margin-bottom: 12px; }
.tua-filter label { display: flex; flex-direction: column; gap: 3px; font-size: .82rem; font-weight: 700; }
.tua-filter select { min-width: 180px; padding: 6px 10px; border: 1px solid #cdd5e1; border-radius: 8px; background: var(--card); color: var(--ink); }
.tua-count { font-weight: 700; padding-bottom: 6px; }
.tua-table td { vertical-align: top; }
.tua-table td.num, .tua-table th.num { text-align: right; }
.tua-past td { color: #b42318; font-weight: 600; }
.tua-soon td { color: #b45309; font-weight: 600; }

/* v130: Location info bottom row - TUA signed | TUA date is correct (left) | TUA expires */
.le-tua-row { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; border-top: 1px dashed #cdd5e1; padding-top: 12px; }
.le-tua-row .le-check { justify-self: start; justify-content: flex-start; text-align: left; }
@media (max-width: 560px) { .le-tua-row { grid-template-columns: 1fr; } }

/* v131: Edit location - Target / Working / Licensed / Pending tick boxes under Sales & licensing */
.le-flags { display: flex; flex-wrap: wrap; gap: 10px 26px; padding: 12px 16px; margin: 4px 0 14px; border-radius: 12px; background: var(--card); box-shadow: 0 1px 4px rgba(0,0,0,.08); border: 1px solid #e3e8f0; }
.le-flags label { display: inline-flex; align-items: center; gap: 8px; font-size: .98rem; font-weight: 500; color: var(--ink); cursor: pointer; }
.le-flags input[type=checkbox] { width: 18px; height: 18px; }
.le-flags .le-flag-lock { cursor: default; }
.le-flags .le-flag-lock input { opacity: .75; }
/* v132: Priority beside the tick boxes */
.le-flags { align-items: center; }
.le-flags .le-flag-sel { gap: 8px; margin-left: 6px; }
.le-flags .le-flag-sel span { font-weight: 600; color: var(--muted); font-size: .85rem; }
.le-flags .le-flag-sel select { font-size: .95rem; padding: 6px 10px; border: 1px solid #cdd5e1; border-radius: 8px; background: var(--card); color: var(--ink); }

/* v135: Add a sales agent */
.le-add-agent { margin-top: 12px; }
.le-add-agent summary { cursor: pointer; font-weight: 600; color: #1957b8; margin-bottom: 8px; }

/* v136: Owner referrer at the left of the tick-box row */
.le-flags .le-flag-ref label { flex-direction: row; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; color: var(--muted); cursor: default; }
.le-flags .le-flag-ref select { font-size: .95rem; padding: 6px 10px; border: 1px solid #cdd5e1; border-radius: 8px; background: var(--card); color: var(--ink); max-width: 260px; }

/* v138: TUA expires worked out from the IGB licensed date */
.le-calc { background: #f3f6fa !important; font-weight: 600 !important; }
.le-tua-row small { display: block; margin-top: 3px; font-weight: 400; }

/* v140: Location info auto-save status */
.le-saved { margin-left: 10px; font-weight: 600; font-size: .8rem; }
.le-saved.is-busy { color: var(--muted); }
.le-saved.is-ok { color: #1e7a3e; }
.le-saved.is-err { color: #b42318; }

/* v141: Admin > Daily numbers */
.dn-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dn-form, .dn-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 8px 0; }
.dn-sub { margin-top: 18px; }
.dn-log { white-space: pre-wrap; font-size: .82rem; background: #f3f6fa; color: #12233a; padding: 10px 12px; border-radius: 8px; max-height: 360px; overflow: auto; }
[data-theme=dark] .dn-log { background: rgba(255,255,255,.06); color: inherit; }
@media (max-width: 800px) { .dn-cols { grid-template-columns: 1fr; } }
/* v142: Daily numbers drop box */
.dn-drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 110px; padding: 14px;
    border: 2px dashed #9fb3cf; border-radius: 12px; background: #f6f9fd; text-align: center; cursor: pointer; margin: 8px 0; }
.dn-drop input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.dn-drop.is-over { border-color: #1957b8; background: #e7f0ff; }
.dn-drop.is-busy { opacity: .7; cursor: progress; }
[data-theme=dark] .dn-drop { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.3); }

/* v146: Dashboard - numbers you can click sit in a light green pill with an arrow */
.dk-grid b a { display: inline-flex; align-items: center; gap: 4px; padding: 1px 10px 1px 12px; border-radius: 999px;
    background: #dcfce7; border: 1px solid #86efac; color: #14532d !important; text-decoration: none !important; line-height: 1.5; }
.dk-grid b a::after { content: "\203A"; font-weight: 800; font-size: 1.05em; }
.dk-grid b a:hover, .dk-grid b a:focus-visible { background: #bbf7d0; border-color: #4ade80; }
[data-theme=dark] .dk-grid b a { background: rgba(34,197,94,.18); border-color: rgba(74,222,128,.5); color: #bbf7d0 !important; }

/* v148: TUA's page - location in a light blue bubble, PDF links, inactive rows */
.tua-loc { display: inline-block; padding: 2px 10px; border-radius: 999px; background: #e0f2fe; border: 1px solid #7dd3fc; color: #075985 !important;
    text-decoration: none !important; font-weight: 600; line-height: 1.45; }
.tua-loc:hover, .tua-loc:focus-visible { background: #bae6fd; border-color: #38bdf8; }
[data-theme=dark] .tua-loc { background: rgba(56,189,248,.18); border-color: rgba(125,211,252,.5); color: #bae6fd !important; }
.tua-pdfs { white-space: nowrap; }
.tua-pdf { display: inline-block; margin: 0 4px 2px 0; padding: 1px 8px; border-radius: 6px; background: #fee2e2; border: 1px solid #fca5a5;
    color: #991b1b !important; font-size: .78rem; font-weight: 700; text-decoration: none !important; }
.tua-pdf::before { content: "\1F4C4 "; }
.tua-pdf:hover { background: #fecaca; }
.tua-inact { margin: 0; }
.tua-inact input[type=checkbox] { width: 18px; height: 18px; cursor: pointer; }
.tua-off td { color: var(--muted); text-decoration: line-through; }
.tua-off td .tua-loc, .tua-off td .tua-pdf, .tua-off td form { text-decoration: none; }
/* v149: TUA length editable on the TUA's list */
.tua-yrs { margin: 0; }
.tua-yrs select { padding: 3px 6px; border: 1px solid #cdd5e1; border-radius: 6px; background: var(--card); color: var(--ink); font-weight: 600; }
/* v150: Years saved / not saved */
.tua-yrs select.is-saved { border-color: #22c55e; background: #f0fdf4; }
.tua-yrs select.is-err { border-color: #ef4444; background: #fef2f2; }
/* v151: TUA PDF as a plain PDF icon under the status */
.tua-pdf { display: inline-block; margin: 4px 0 0; padding: 0; border: 0; background: none; line-height: 0; }
.tua-pdf::before { content: none; }
.tua-pdf:hover { background: none; opacity: .8; }
.tua-pdf + br + .tua-pdf { margin-left: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
/* v153: TUA's table fits - no Operator column, tighter cells */
.tua-table th, .tua-table td { padding-left: 8px; padding-right: 8px; }
.tua-table td:last-child, .tua-table th:last-child { white-space: nowrap; }
/* v155: Active / Inactive word beside the box */
.tua-inact label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-weight: 600; font-size: .85rem; }
.tua-act-lbl { color: #15803d; }
.tua-off .tua-act-lbl { color: #b42318; }
/* v156: Active / Inactive as a switch */
.tua-inact label { position: relative; }
.tua-inact .tua-sw-in { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tua-sw { position: relative; display: inline-block; width: 38px; height: 21px; border-radius: 999px; background: #cbd5e1; transition: background .15s; flex: 0 0 auto; }
.tua-sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 17px; height: 17px; border-radius: 50%; background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .15s; }
.tua-sw-in:checked + .tua-sw { background: #22c55e; }
.tua-sw-in:checked + .tua-sw::after { transform: translateX(17px); }
.tua-sw-in:focus-visible + .tua-sw { outline: 2px solid #1957b8; outline-offset: 2px; }
.tua-act-lbl { min-width: 54px; }
.tua-sw-in:not(:checked) ~ .tua-act-lbl { color: #b42318; }
/* v158: TUA's table - city under the location, status under the license #, PDF under the years */
.tua-city { display: inline-block; margin-top: 3px; font-size: .82rem; color: var(--muted); }
.tua-status { font-size: .82rem; color: var(--muted); }
.tua-pdfrow { margin-top: 4px; text-align: right; }
.tua-pdfrow .tua-pdf { margin: 0; }
/* v160: TUA's table - headers stay at the top while the list scrolls inside the card */
.tua-card .table-wrap { max-height: calc(100vh - 230px); min-height: 240px; overflow: auto; }
.tua-table thead th { position: sticky; top: 0; z-index: 2; background: var(--card, #fff); box-shadow: inset 0 -2px 0 #cdd5e1; }
[data-theme=dark] .tua-table thead th { background: var(--card, #1b2536); }
/* v164: sort arrow on Days left */
.tua-sort { margin-left: 4px; color: var(--muted) !important; text-decoration: none !important; font-size: .95rem; }
.tua-sort.is-on, .tua-sort:hover { color: #1957b8 !important; }

/* v169: Earnings details - "How it's figured" pop-up on the DK earned bubble; By location full width */
.dk-how-btn { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; padding: 2px 10px; border-radius: 999px; align-self: flex-start;
    background: #dcfce7; border: 1px solid #86efac; color: #14532d !important; font-size: .8rem; font-weight: 700; text-decoration: none !important; }
.dk-how-btn:hover { background: #bbf7d0; }
.dk-modal { display: none; position: fixed; inset: 0; z-index: 1000; align-items: center; justify-content: center; padding: 16px; }
.dk-modal:target { display: flex; }
.dk-modal-bg { position: absolute; inset: 0; background: rgba(5,12,24,.55); }
.dk-modal-box { position: relative; width: min(620px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--card, #fff); color: var(--ink);
    border-radius: 14px; padding: 18px 20px; box-shadow: 0 18px 50px rgba(0,0,0,.35); }
.dk-modal-x { position: absolute; top: 8px; right: 12px; font-size: 1.6rem; line-height: 1; color: var(--muted) !important; text-decoration: none !important; }
.dk-modal-box .dk-steps { width: 100%; }
.dk-acc-full { margin: 18px 0; }
.dk-acc-full .table-wrap, .dk-acc-full table { width: 100%; }
.dk-acc-full table td:not(:first-child), .dk-acc-full table th:not(:first-child) { text-align: right; }
/* v171: Earnings details > By location - search box and Total row */
.dk-bl-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.dk-bl-head h3 { margin: 0; }
.dk-bl-find { flex: 0 1 320px; padding: 7px 12px; border: 1px solid #cdd5e1; border-radius: 10px; background: var(--card); color: var(--ink); font-size: .95rem; }
.dk-bl td { vertical-align: top; }
.dk-bl tfoot th, .dk-bl tfoot td { border-top: 2px solid var(--ink); font-weight: 800; }
.dk-bl tfoot td { text-align: right; }
/* v172: Month by month totals */
.dk-mm tfoot th, .dk-mm tfoot td { border-top: 2px solid var(--ink); font-weight: 800; }
/* v173: Month by month - totals on top, squeezed to fit without a scroll bar */
.dk-mm { font-size: .84rem; }
.dk-mm th, .dk-mm td { padding: 5px 6px; white-space: nowrap; }
.dk-mm td:not(:first-child), .dk-mm th:not(:first-child) { text-align: right; }
.dk-mm .dk-mm-tot th, .dk-mm .dk-mm-tot td { font-weight: 800; background: #f3f6fa; border-bottom: 2px solid var(--ink); }
[data-theme=dark] .dk-mm .dk-mm-tot th, [data-theme=dark] .dk-mm .dk-mm-tot td { background: rgba(255,255,255,.06); }
/* v174: By location - totals first, + to show the locations */
.dk-bl .dk-bl-tot th, .dk-bl .dk-bl-tot td { font-weight: 800; background: #f3f6fa; border-bottom: 2px solid var(--ink); }
.dk-bl .dk-bl-tot td { text-align: right; }
[data-theme=dark] .dk-bl .dk-bl-tot th, [data-theme=dark] .dk-bl .dk-bl-tot td { background: rgba(255,255,255,.06); }
.dk-bl-toggle { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; margin-right: 6px; border-radius: 50%;
    border: 1px solid #86efac; background: #dcfce7; color: #14532d; font-weight: 800; font-size: 1.05rem; line-height: 1; cursor: pointer; vertical-align: middle; }
.dk-bl-toggle:hover { background: #bbf7d0; }
/* v175: + sits in the Location heading */
.dk-bl thead .dk-bl-toggle { margin: 0 0 0 6px; width: 22px; height: 22px; font-size: .95rem; }
/* v176: + in the Month heading */
.dk-mm thead .dk-bl-toggle { margin: 0 0 0 6px; width: 22px; height: 22px; font-size: .95rem; }
/* v177: By location and Month by month each in their own box */
.dk-card-bl, .dk-card-mm { margin-top: 16px; }
.dk-card-bl .dk-acc-full { margin: 0; }

/* v183: Locations list - Target switch right of the DBA */
.gl-target { display: inline-flex; align-items: center; gap: 5px; margin-left: 8px; vertical-align: middle; cursor: pointer; position: relative; font-size: .78rem; font-weight: 700; color: var(--muted); }
.gl-target-in { position: absolute; opacity: 0; width: 1px; height: 1px; }
.gl-target-sw { position: relative; display: inline-block; width: 30px; height: 17px; border-radius: 999px; background: #cbd5e1; transition: background .15s; }
.gl-target-sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.3); transition: transform .15s; }
.gl-target-in:checked + .gl-target-sw { background: #f59e0b; }
.gl-target-in:checked + .gl-target-sw::after { transform: translateX(13px); }
.gl-target-in:checked ~ .gl-target-lbl { color: #b45309; }
.gl-target-in:focus-visible + .gl-target-sw { outline: 2px solid #1957b8; outline-offset: 2px; }
.gl-target.is-busy { opacity: .6; }
.gl-target.is-err .gl-target-lbl { color: #b42318; }
/* v184: Target switch on the legal-name line, at the right of the column; green when on */
.gl-legal-row { display: flex; align-items: center; gap: 8px; }
.gl-legal-row .gl-target { margin-left: auto; }
.gl-target-in:checked + .gl-target-sw { background: #22c55e; }
.gl-target-in:checked ~ .gl-target-lbl { color: #15803d; }
/* v185: Working switch under city / state / zip, right side of the column */
.gl-switch-row { display: flex; justify-content: flex-end; margin-top: 4px; }
.gl-switch-row .gl-target { margin-left: 0; }
/* v186: Locations - month a place went pending (red, in the light-yellow edit bubble) and its status */
.gl-pend-bubble { color: #b42318 !important; font-weight: 700; }
.gl-pend-bubble.gl-pend-none { color: var(--muted) !important; font-weight: 600; font-style: italic; }
.gl-pend-month { color: #b42318; font-weight: 700; }
.gl-status { font-weight: 700; }
.gl-month-line a.gl-pend-bubble { display: inline-block; padding: 1px 9px; border-radius: 999px; background: #fff7cc; border: 1px solid #f0dc8a; text-decoration: none; font-size: .85rem; line-height: 1.5; }
.gl-month-line a.gl-pend-bubble:hover { background: #fff0a8; }
[data-theme=dark] .gl-month-line a.gl-pend-bubble { background: rgba(240,210,80,.16); border-color: rgba(240,210,80,.45); }

/* v190: Permissions - who you're setting, and the Type of permission box (one on, three columns) */
.perm-for { margin: -4px 0 10px; padding: 6px 12px; border-radius: 10px; background: #e0f2fe; border: 1px solid #7dd3fc; color: #075985; font-size: .9rem; }
[data-theme=dark] .perm-for { background: rgba(56,189,248,.15); border-color: rgba(125,211,252,.45); color: #bae6fd; }
.ptype-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 24px; }
.ptype-col { display: flex; flex-direction: column; gap: 10px; }
.ptype-opt { position: relative; display: inline-flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; }
.ptype-opt.is-on { color: #15803d; }
.ptype-opt.is-locked { cursor: default; opacity: .9; }
@media (max-width: 700px) { .ptype-cols { grid-template-columns: 1fr; } }
.ptype-opt .tua-sw-in { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ptype-opt .tua-sw-in:focus-visible + .tua-sw { outline: 2px solid #1957b8; outline-offset: 2px; }
/* v191: Permissions find-as-you-type */
.person-results.is-busy { opacity: .55; }
.ptype-form.is-busy { opacity: .6; pointer-events: none; }

/* v194: Permissions - Dashboard and Locations boxes open with + */
.perm-fold > summary { list-style: none; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.perm-fold > summary::-webkit-details-marker { display: none; }
.perm-fold > summary h2 { margin: 0; }
.perm-plus { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%;
    border: 1px solid #86efac; background: #dcfce7; color: #14532d; font-weight: 800; font-size: 1.05rem; line-height: 1; }
.perm-plus::before { content: "+"; }
.perm-fold[open] .perm-plus::before { content: "\2212"; }
.perm-fold[open] > summary { margin-bottom: 14px; }
.perm-sw-form { margin: 0; }
.perm-sw-form .ptype-opt .tua-sw-in { position: absolute; opacity: 0; width: 1px; height: 1px; }

/* v198: Admin > View permissions */
.pv-filters { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: flex-end; margin-bottom: .6rem; }
.pv-filters label { display: flex; flex-direction: column; gap: .2rem; font-size: .85rem; font-weight: 600; }
.pv-filters input, .pv-filters select { min-width: 12rem; }
.pv-count { margin: .2rem 0 .4rem; }
.pv-table td { vertical-align: top; }
.pv-table tr.pv-off td { opacity: .55; }
.pv-type { display: inline-block; padding: .1rem .55rem; border-radius: 999px; background: #e8f0fe; color: #1a3d7c; font-size: .82rem; font-weight: 600; white-space: nowrap; }
.pv-type-public { background: #f1f1f1; color: #555; }
.pv-type-admin, .pv-type-officeadmin, .pv-type-owner { background: #fde8e8; color: #8a1f1f; }
.pv-type-location, .pv-type-staff { background: #e6f6ea; color: #1d6b35; }

/* v199: Edit location > Location info > "+" People (assign location to user, approve Yes / No) */
.le-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.le-head h2 { margin: 0; }
.la-plus { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 3px 12px 3px 6px; border: 1px solid var(--line); border-radius: 999px;
    background: var(--card, #fff); color: inherit; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }
.la-plus:hover, .la-plus.is-open { border-color: #1957b8; color: #1957b8; }
.la-plus-sign { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%;
    background: #1957b8; color: #fff; font-size: 1.05rem; line-height: 1; }
.la-panel { margin: 10px 0 14px; padding: 12px 14px; border: 1px solid #bcd0f0; border-radius: 14px; background: #f4f8ff; }
[data-theme="dark"] .la-panel { background: rgba(25, 87, 184, .12); border-color: rgba(120, 160, 230, .35); }
.la-panel-head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin-bottom: 8px; }
.la-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 9px 0; border-top: 1px solid var(--line); }
.la-row:first-child { border-top: 0; }
.la-row.la-waiting { background: rgba(250, 204, 21, .12); margin: 0 -8px; padding: 9px 8px; border-radius: 8px; }
.la-who { min-width: 0; }
.la-who > div { margin-top: 2px; }
.la-decide { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; flex: 0 0 auto; min-width: 170px; }
.la-tag-wait { display: inline-block; padding: 1px 8px; border-radius: 999px; background: #fef3c7; color: #92400e; font-weight: 600; }
.la-rejected .la-by { color: #b42318; }
.la-add { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.la-add .la-email { flex: 1 1 220px; max-width: 320px; }
.la-msg.is-ok { color: #1e7a3e; font-weight: 600; }
.la-msg.is-err { color: #b42318; font-weight: 600; }

/* v200: Active / Inactive switch at the right of the blue "Setting permissions for" bubble */
.perm-for { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.perm-active { margin: 0 0 0 auto; }
.perm-active .toggle { font-size: .85rem; }
.perm-active .toggle-track { width: 38px; height: 21px; }
.perm-active .toggle-knob { width: 15px; height: 15px; }
.perm-active .toggle input:checked + .toggle-track .toggle-knob { transform: translateX(17px); }
.perm-active-lbl { min-width: 4.2em; color: #15803d; font-weight: 700; }
.perm-active-lbl.is-off { color: #b42318; }

/* v201: Daily numbers - which databases to update */
.dn-dbs { margin: 10px 0 0; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; }
.dn-dbs legend { padding: 0 4px; }
.dn-db { display: flex; align-items: center; gap: 8px; margin: 4px 0; font-size: .9rem; }
/* v202: the database tick boxes sit at the left (not stretched full width) */
.dn-dbs { text-align: left; }
.dn-db { justify-content: flex-start; text-align: left; }
.dn-db input[type=checkbox] { width: auto; flex: 0 0 auto; margin: 0; padding: 0; }
/* v204: Start page after sign-in - same switches as Type of permission */
#pstart .ptype-opt { cursor: pointer; }

/* v205: Sales > Prospecting (liquor licenses) - same look as the Locations list */
.pr-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 10px; margin-bottom: 10px; }
.pr-filters .gl-search input { min-width: 170px; }
.pr-filters .gl-op-pick { display: flex; flex-direction: column; gap: 2px; font-size: .8rem; font-weight: 600; }
.pr-filters .gl-op-pick select { min-width: 150px; }
.pr-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 8px 12px; margin-bottom: 8px; }
.pr-bar .pager { margin: 0; }
.pr-list td { vertical-align: top; }
.pr-sort { color: inherit; text-decoration: none; white-space: nowrap; }
.pr-sort span { opacity: .6; font-size: .85em; }
.pr-tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.pr-new { background: #dcfce7; color: #166534; }
.pr-has { background: #e5e7eb; color: #374151; }
.pr-inloc { background: #dbeafe; color: #1e40af; }
.pr-file { max-width: 360px; }
/* v206: Settings > Page after signing in */
.profile-start { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.profile-start label { font-weight: 600; }
.profile-start select { width: auto; min-width: 260px; max-width: 100%; }
/* v207: Prospecting - inactive tag, Edit (IGB location #) under each row */
.pr-off { background: #fee2e2; color: #991b1b; margin-top: 4px; }
.pr-edit { margin-top: 6px; }
.pr-edit summary { cursor: pointer; font-size: .8rem; font-weight: 600; color: #1957b8; list-style: none; }
.pr-edit summary::-webkit-details-marker { display: none; }
.pr-edit summary::before { content: "✎ "; }
.pr-edit-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px 8px; margin-top: 6px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: rgba(25,87,184,.05); }
.pr-edit-form label { display: flex; flex-direction: column; gap: 2px; font-size: .78rem; font-weight: 600; }
.pr-edit-form input[type=text] { width: 140px; padding: 6px 8px; }

/* v210: Dashboard > Database updates - tabs across the top of each update page, and the overview cards */
.dbu-tabs { display: flex; width: fit-content; max-width: 100%; margin: 4px 0 14px; }
.dbu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.dbu-card { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.dbu-card p { margin: 0; }
.dbu-card .btn { align-self: flex-start; margin-top: auto; }
.dbu-card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.dbu-card-head h2 { margin: 0; }
.dbu-stats { margin: 0; padding-left: 18px; }
.dbu-stats li { margin: 4px 0; }
@media (max-width: 700px) { .dbu-tabs { width: 100%; } .dbu-tabs .tab { flex: 1 1 auto; text-align: center; } }

/* v211: location invites (+ People bubble) and Admin > Sign-ins */
.la-row.la-invited { background: rgba(25, 87, 184, .06); margin: 0 -8px; padding: 9px 8px; border-radius: 8px; }
.la-tag-inv { display: inline-block; padding: 1px 8px; border-radius: 999px; background: #dbeafe; color: #1e40af; font-size: .75rem; font-weight: 700; }
.la-invited .la-decide { flex-direction: row; gap: 6px; }
.la-send-lbl { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.la-send-lbl input { width: auto; margin: 0; }
.si-made { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: #f1f5f9; color: #334155; white-space: nowrap; }
.si-ownsignup { background: #dcfce7; color: #166534; }
.si-inviteemail { background: #dbeafe; color: #1e40af; }
.si-freelogin { background: #fef3c7; color: #92400e; }
.si-invited { background: #fef3c7; color: #92400e; }
.si-approved { background: #dcfce7; color: #166534; }
.si-cancelled { background: #fee2e2; color: #991b1b; }

/* v212: Liquor licenses - "How to get the file" pop-up bubble next to the drop box */
.lq-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; position: relative; }
.lq-head h2 { margin: 0; }
.lq-help { position: relative; }
.lq-help summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; border: 1px solid #bcd0f0;
    border-radius: 999px; font-size: .82rem; font-weight: 600; color: #1957b8; background: #f4f8ff; white-space: nowrap; }
.lq-help summary::-webkit-details-marker { display: none; }
.lq-help summary span { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: #1957b8; color: #fff; font-weight: 700; }
.lq-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; width: min(460px, 86vw); padding: 14px 16px; border-radius: 14px;
    background: var(--card, #fff); border: 1px solid #bcd0f0; box-shadow: 0 12px 32px rgba(15, 40, 80, .18); font-size: .88rem; }
.lq-pop::before { content: ""; position: absolute; right: 28px; top: -8px; width: 14px; height: 14px; background: inherit; border-left: 1px solid #bcd0f0;
    border-top: 1px solid #bcd0f0; transform: rotate(45deg); }
.lq-pop h3 { font-size: .95rem; margin: 4px 0 6px; }
.lq-pop ol { margin: 0 0 10px; padding-left: 20px; }
.lq-pop li { margin: 4px 0; }
.lq-pop code { font-size: .8rem; word-break: break-all; background: rgba(25, 87, 184, .08); padding: 1px 4px; border-radius: 4px; }
.lq-fetch { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
/* v215: "Automate this" pop-up on each Database updates card and page */
.dbu-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.dbu-title h1 { margin: 0; }
.dbu-title .lq-pop { left: 0; right: auto; }
.dbu-title .lq-pop::before { left: 28px; right: auto; }
.dbu-auto { display: flex; justify-content: flex-end; }
.dbu-card { position: relative; }
.dbu-first { background: #fff7e6; border: 1px solid #f5d38a; border-radius: 8px; padding: 6px 8px; }
[data-theme=dark] .dbu-first { background: rgba(245, 211, 138, .12); }
/* v216: drop box - spinner + timer while a file loads */
.dn-drop.is-busy { border-color: #1957b8; background: #eef4ff; opacity: 1; }
.dn-drop.is-busy input[type=file] { pointer-events: none; }
.dn-spin { width: 34px; height: 34px; border-radius: 50%; border: 4px solid #c7d7f3; border-top-color: #1957b8; animation: dn-spin .8s linear infinite; }
@keyframes dn-spin { to { transform: rotate(360deg); } }
.dn-timer { font-weight: 700; color: #1957b8; }
@media (prefers-reduced-motion: reduce) { .dn-spin { animation-duration: 2.4s; } }
/* v223: Prospecting search bar - every box the same font and height */
.pr-filters input[type=search], .pr-filters select, .pr-filters .btn {
    height: 38px; box-sizing: border-box; font-family: inherit; font-size: .9rem; font-weight: 500; line-height: 1.2;
    padding: 0 12px; border-radius: 10px; margin: 0;
}
.pr-filters .btn { display: inline-flex; align-items: center; }
.pr-filters .gl-search, .pr-filters .gl-op-pick { margin: 0; }
.pr-filters .gl-search input[type=search] { width: 190px; min-width: 0; }
.pr-filters .gl-op-pick select { min-width: 160px; width: auto; }
.pr-filters .gl-op-pick span { font-size: .75rem; font-weight: 600; color: var(--muted); line-height: 1; margin-bottom: 4px; }
/* v224: Prospecting > Edit - owners on the liquor license */
.pr-own { margin-top: 6px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: rgba(25,87,184,.04); }
.pr-own-t { width: 100%; border-collapse: collapse; font-size: .8rem; margin: 4px 0; }
.pr-own-t td { padding: 2px 6px 2px 0; border-bottom: 1px solid var(--line); }
.pr-own-t td.num { text-align: right; font-weight: 700; white-space: nowrap; }

/* v225: Sales > Municipality */
.mu-yes { background: #dcfce7; color: #166534; }
.mu-no { background: #fee2e2; color: #991b1b; }
.mu-limited { background: #fef3c7; color: #92400e; }
.mu-unknown { background: #e5e7eb; color: #374151; }
.page-head .pr-tag { margin-left: 4px; }
.mu-list td { vertical-align: top; }
.mu-ord { display: block; max-width: 520px; }
.mu-links { margin: 6px 0 0; padding: 0; list-style: none; }
.mu-links li { margin: 2px 0; }
.mu-notes { margin-top: 6px; padding: 6px 8px; border-radius: 8px; background: rgba(25,87,184,.05); }
.mu-edit { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; }
.mu-linkrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: .82rem; }
.mu-linkrow .mu-del { padding: 2px 8px; font-size: .75rem; }
.mu-url input[type=url] { width: 260px; max-width: 100%; padding: 6px 8px; }
.mu-notes-form label { display: flex; flex-direction: column; gap: 4px; }
.mu-notes-form textarea { width: 100%; font-size: .85rem; }
.mu-notes-form .btn { margin-top: 6px; }
.pr-filters .mu-ours { align-self: center; display: inline-flex; align-items: center; gap: 6px; height: 38px; font-size: .9rem; }
.pr-filters .mu-ours input { width: auto; margin: 0; }
/* v226: Prospecting - DBA, legal name, phone each on its own line */
.pr-biz strong, .pr-biz .pr-legal, .pr-biz .pr-phone { display: block; }
.pr-biz .pr-legal { font-size: .85rem; color: var(--muted); margin-top: 2px; }
.pr-biz .pr-phone { font-size: .85rem; margin-top: 2px; white-space: nowrap; }

/* v227: Prospecting - bubbles that open a pop-up in place (legal name -> owners, license # -> IGB #, address -> map) */
.pr-bub { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 2px 10px; border-radius: 999px; border: 1px solid #cbd5e1;
    background: #f8fafc; color: #1e293b; font-size: .8rem; font-weight: 600; line-height: 1.35; text-decoration: none; cursor: pointer; white-space: normal; }
.pr-bub:hover { filter: brightness(.97); text-decoration: none; }
.pr-bub-blue { background: #e0f2fe; border-color: #7dd3fc; color: #075985; }
.pr-bub-green { background: #dcfce7; border-color: #86efac; color: #166534; }
.pr-bub-map { background: #f1f5f9; border-color: #cbd5e1; color: #0f172a; font-weight: 500; }
.pr-bub-map::before { content: "📍"; font-size: .8rem; }
details.pr-pop { display: block; margin-top: 4px; }
details.pr-pop > summary { list-style: none; }
details.pr-pop > summary::-webkit-details-marker { display: none; }
details.pr-pop[open] > summary { box-shadow: 0 0 0 2px rgba(25,87,184,.25); }
.pr-pop .lq-pop { position: relative; top: auto; right: auto; left: auto; margin-top: 10px; width: auto; min-width: 240px; max-width: 420px; z-index: 5; }
.pr-pop .lq-pop::before { right: auto; left: 18px; }
.pr-pop .lq-pop h3 { margin-top: 0; }
.pr-pop .pr-edit-form { border: 0; padding: 0; background: none; margin: 6px 0; }
.pr-biz .pr-pop + .pr-phone, .pr-biz strong + .pr-phone { margin-top: 4px; }
.pr-addr .map-link.pr-bub { text-align: left; }
.pr-own-t + .pr-bub { margin-top: 8px; }
/* v228: Prospecting pop-ups float over the rows (placed by js/prospecting.js) */
.pr-pop .lq-pop { position: fixed; margin-top: 0; z-index: 60; width: max-content; min-width: 260px; max-width: min(420px, 92vw); }
.pr-pop .lq-pop::before { left: var(--arrow-x, 18px); right: auto; }
.pr-pop .lq-pop.is-above::before { top: auto; bottom: -8px; transform: rotate(225deg); }
.pr-bub-green + .pr-bub-green { margin-top: 4px; }
/* v231: yellow "does the city allow gaming" bubble + licensed-by-type pop-up */
.pr-bub-yellow { background: #fef9c3; border-color: #facc15; color: #713f12; }
.pr-bub-yellow.mu-no-b { background: #fef9c3; border-color: #f87171; color: #991b1b; }
.pr-own-t tr.is-zero td { color: #b45309; }
.pr-own-t tr.is-mine td { font-weight: 700; background: rgba(250, 204, 21, .18); }
.pr-own-t tr.is-total td { font-weight: 700; border-top: 2px solid var(--line); }
.mu-liq-form select { height: 32px; padding: 0 8px; font-size: .82rem; width: auto; }
.mu-liq-form input[type=text] { width: 240px; }
/* v233: Municipality - ordinance / local laws / notes and Edit as pop-up bubbles */
.mu-list .pr-pop { display: inline-block; margin: 2px 6px 2px 0; vertical-align: top; }
.lq-pop.mu-edit { border: 1px solid #bcd0f0; padding: 14px 16px; gap: 10px; max-width: min(480px, 94vw); }
.lq-pop .mu-links { margin: 4px 0 8px; }
/* v234: Municipality Edit pop-up wide enough for every field (kept on screen by js/prospecting.js) */
.pr-pop .lq-pop.mu-edit { width: min(760px, 94vw); max-width: 94vw; min-width: 0; box-sizing: border-box; }
.lq-pop.mu-edit .pr-edit-form { display: grid; grid-template-columns: 1fr 2fr auto; gap: 8px 10px; align-items: end; }
.lq-pop.mu-edit .pr-edit-form label { min-width: 0; }
.lq-pop.mu-edit .pr-edit-form input[type=text], .lq-pop.mu-edit .pr-edit-form input[type=url], .lq-pop.mu-edit .pr-edit-form select { width: 100%; box-sizing: border-box; }
.lq-pop.mu-edit .mu-url input[type=url], .lq-pop.mu-edit .mu-liq-form input[type=text] { width: 100%; }
.lq-pop.mu-edit .mu-linkrow { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; }
.lq-pop.mu-edit .mu-linkrow a { overflow-wrap: anywhere; }
.lq-pop.mu-edit .mu-notes-form textarea { width: 100%; box-sizing: border-box; min-height: 70px; }
@media (max-width: 640px) { .lq-pop.mu-edit .pr-edit-form, .lq-pop.mu-edit .mu-linkrow { grid-template-columns: 1fr; } }
/* v235: pop-ups float on top of the page (moved out of the table) and size to their text */
.lq-pop.pr-portal { position: fixed; z-index: 1000; margin: 0; width: max-content; min-width: 260px; max-width: min(760px, 94vw); box-sizing: border-box; }
.lq-pop.pr-portal::before { left: var(--arrow-x, 18px); right: auto; }
.lq-pop.pr-portal.is-above::before { top: auto; bottom: -8px; transform: rotate(225deg); }
.lq-pop.pr-portal.mu-edit { width: min(760px, 94vw); }
.lq-pop.pr-portal p, .lq-pop.pr-portal .mu-notes { max-width: 70ch; }
.pr-bub-red { background: #fee2e2; border-color: #fca5a5; color: #991b1b; }
.pr-bub-add { background: #f8fafc; border-style: dashed; color: #1957b8; }
/* v236: Locations - the yellow bubbles (legal name, pending / start date) show a link symbol; Target + Working
   sit together at the bottom right of the name column */
a.gl-corp-bubble::after { content: "\00a0➜"; font-weight: 700; font-size: .9em; }   /* v237: a "go to" arrow, not the link / attachment symbol */
td.gl-name { position: relative; }
.gl-name-switches { display: flex; justify-content: flex-end; gap: 12px; margin-top: 6px; }
.gl-name-switches .gl-target { margin-left: 0; }
/* v238: Locations - Target + Working under the city */
.gl-city-switches { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 10px; margin-top: 5px; }
.gl-city-switches .gl-target { margin-left: 0; }
/* v239: Locations - Target + Working at the bottom of the city cell */
td.gl-city.gl-city-has-sw { position: relative; padding-bottom: 34px; }
td.gl-city.gl-city-has-sw .gl-city-switches { position: absolute; left: 12px; right: 8px; bottom: 8px; margin: 0; }
/* v240: Locations - Target bottom right of the address cell, Working bottom left of the city cell */
td.gl-cell-has-sw { position: relative; padding-bottom: 34px; }
td.gl-cell-has-sw .gl-sw-bottom { position: absolute; left: 12px; right: 12px; bottom: 8px; margin: 0; display: flex; }
.gl-sw-bottom.gl-sw-right { justify-content: flex-end; }
.gl-sw-bottom.gl-sw-left { justify-content: flex-start; }
.gl-sw-bottom .gl-target { margin-left: 0; }
/* v243: Prospecting Working / All switch; Inquiries */
.pr-seg { display: inline-flex; height: 38px; border: 1px solid #cdd5e1; border-radius: 10px; overflow: hidden; align-self: flex-end; }
.pr-seg label { display: inline-flex; align-items: center; padding: 0 14px; font-size: .9rem; font-weight: 600; cursor: pointer; color: var(--muted); background: var(--card, #fff); }
.pr-seg label + label { border-left: 1px solid #cdd5e1; }
.pr-seg label.is-on { background: #16a34a; color: #fff; }
.pr-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pr-seg label:focus-within { outline: 2px solid #1957b8; outline-offset: -2px; }
.inq-src { background: #eef2ff; color: #3730a3; font-size: .72rem; margin-top: 4px; }
.inq-st-new { background: #fee2e2; border-color: #fca5a5; color: #991b1b; }
.inq-st-contacted { background: #fef3c7; border-color: #fcd34d; color: #92400e; }
.inq-st-converted { background: #dcfce7; border-color: #86efac; color: #166534; }
.inq-st-closed { background: #e5e7eb; border-color: #cbd5e1; color: #374151; }
.inq-st-spam { background: #f1f5f9; border-color: #cbd5e1; color: #64748b; }
.inq-unlink { display: inline; margin: 0; }
.lq-pop .mu-notes-form select { width: auto; height: 34px; padding: 0 8px; }
/* v244: bubbles wrap their whole text (the pop-up summary style was nowrap) */
.lq-help summary.pr-bub, details.pr-pop > summary.pr-bub { white-space: normal; text-align: left; height: auto; padding: 3px 10px; line-height: 1.35; max-width: 100%; }
/* Revenue Check requests: narrow Received, wider business + address */
.pr-list th.inq-rcv, .pr-list td.inq-rcv { width: 84px; min-width: 76px; max-width: 96px; white-space: normal; }
.pr-list th.inq-biz, .pr-list td.inq-biz { min-width: 260px; width: 30%; }
.pr-list th.inq-addr, .pr-list td.inq-addr { min-width: 220px; width: 22%; }
.inq-src-t { display: block; margin-top: 3px; font-size: .74rem; color: var(--muted); }
/* the location finder */
.inq-find-form { display: flex; flex-direction: column; gap: 8px; margin: 6px 0; min-width: min(460px, 86vw); }
.inq-find-lbl { display: flex; flex-direction: column; gap: 3px; font-size: .78rem; font-weight: 600; }
.inq-find-lbl input { width: 100%; height: 36px; padding: 0 10px; box-sizing: border-box; }
.inq-hits { display: flex; flex-direction: column; gap: 4px; max-height: 260px; overflow: auto; }
.inq-hits.is-busy { opacity: .55; }
.inq-hit { display: block; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; font-size: .85rem; }
.inq-hit input { width: auto; margin: 0 4px 0 0; }
.inq-hit.is-picked { border-color: #16a34a; background: #f0fdf4; }
.inq-wk { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600; }
.inq-wk input { width: auto; margin: 0; }
.inq-go[disabled] { opacity: .5; cursor: not-allowed; }
/* v245: a website request's Edit page */
.inq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.inq-grid > .card { margin: 0; }
.inq-grid #notes, .inq-grid #contacts { grid-column: 1 / -1; }
@media (max-width: 900px) { .inq-grid { grid-template-columns: 1fr; } }
.inq-dl { display: grid; grid-template-columns: 110px 1fr; gap: 6px 12px; margin: 0 0 8px; font-size: .92rem; }
.inq-dl dt { font-weight: 700; color: var(--muted); }
.inq-dl dd { margin: 0; }
.inq-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.inq-deny { color: #991b1b; border-color: #fca5a5; }
.inq-owner-form, .inq-status-form { display: flex; flex-direction: column; gap: 8px; }
.inq-owner-form label { display: flex; flex-direction: column; gap: 3px; }
.inq-owner-form input[type=text] { width: 100%; }
.inq-status-form { flex-direction: row; align-items: flex-end; flex-wrap: wrap; margin-bottom: 10px; }
.inq-status-form select { width: auto; height: 36px; padding: 0 10px; }
.inq-notes { list-style: none; margin: 12px 0 0; padding: 0; }
.inq-notes li { padding: 8px 0; border-top: 1px solid var(--line); font-size: .9rem; }
.inq-contact-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; margin-top: 10px; }
.inq-contact-form label { display: flex; flex-direction: column; gap: 2px; font-size: .78rem; font-weight: 600; }
.inq-contact-form input[type=text], .inq-contact-form input[type=email] { width: 150px; padding: 6px 8px; }
.inq-msg summary { cursor: pointer; color: #1957b8; font-weight: 600; }
/* v246: Set permissions > All users (closed until + or a search) */
.pall-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-bottom: 10px; }
.pall-toggle { display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; padding: 0; cursor: pointer; color: inherit; font: inherit; }
.pall-toggle h2 { margin: 0; }
.pall-toggle.is-open .perm-plus::before { content: "\2212"; }
#pall-results { margin-top: 8px; }
/* v247: Set permissions - the "Setting permissions for ... Active" bubble at the top of All users, with Clear */
.pall-for { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.pall-for .perm-for { flex: 1 1 auto; margin: 0; }
/* v249: Accounts - "+ Add an account" opens the form above the list */
.acct-add-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.acct-add-head h2 { margin: 0; }
details[open] > .acct-add-head .perm-plus::before { content: "\2212"; }
/* v250: Add an account has its own round +/- - no extra sign in front */
.acct-add-head::before, details[open] > summary.acct-add-head::before { content: none; display: none; }
/* v253: Accounts - Open + Send password link */
.acct-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.acct-actions form { margin: 0; }
/* v254: Admin Settings > Duplicate locations */
.dup-group { margin-bottom: 14px; }
.dup-table { width: 100%; margin-bottom: 10px; }
.dup-table td { vertical-align: top; }
.dup-table td:first-child, .dup-table td:nth-child(2), .dup-table th:first-child, .dup-table th:nth-child(2) { text-align: center; width: 54px; }
/* v255: inactive rows on Duplicate locations */
.dup-table tr.dup-off td { background: #f7f7f8; color: #6b7280; }
.dup-table .perm-active { margin: 0; }
/* v260: Duplicate locations - live search, 10 groups a page */
.dup-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 10px; }
.dup-filters .dup-q { flex: 1 1 320px; }
.dup-filters .dup-q input { width: 100%; }
[data-dup-results].is-loading { opacity: .55; transition: opacity .15s; }
.dup-pager { display: flex; gap: 12px; align-items: center; justify-content: center; margin: 12px 0 20px; }
/* v265: Chat page (whoifollow.com) */
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0 4px; }
.chat-head h1 { margin: 0; }
.chat-note { margin: 0 0 8px; }
.chat-frame-wrap { border: 0; border-radius: 0; overflow: hidden; background: none; }   /* v270: no border */
.chat-frame { display: block; width: 100%; height: calc(100vh - 150px); min-height: 520px; border: 0; }
.nav-chat { font-weight: 700; }
/* v269: Chat = a see-through speech bubble with "Chat" inside */
.topnav a.nav-chat { display: inline-flex; align-items: center; padding: 2px 6px; background: none; border: 0; }
.nav-chat-icon { width: 58px; height: 36px; display: block; overflow: visible; }
.nav-chat-icon text { font-family: inherit; dominant-baseline: middle; }
.topnav a.nav-chat:hover .nav-chat-icon, .topnav a.nav-chat.active .nav-chat-icon { color: #f3a712; }
.topnav a.nav-chat:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; border-radius: 8px; }
/* v271: Chat on its own page - no highlight box behind the icon, only the icon turns gold */
.topnav a.nav-chat:not(.btn).active, [data-theme="light"] .topnav a.nav-chat:not(.btn).active,
.topnav a.nav-chat:hover, [data-theme="light"] .topnav a.nav-chat:hover { background: none; box-shadow: none; border: 0; }
@media (max-width: 9999px) { .topnav a.nav-chat:not(.btn).active { background: none; box-shadow: none; } }
/* v273: Edit location - Active slider in a bubble in the middle of the Location info heading */
.le-head .le-active-pill { margin: 0 auto; padding: 4px 12px 4px 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-size: .95rem; }
.le-head .le-active-pill ~ .la-plus { margin-left: 0; }
.le-active .toggle-track { width: 38px; height: 21px; }
.le-active .toggle-knob { width: 15px; height: 15px; }
.le-active input:checked + .toggle-track .toggle-knob { transform: translateX(17px); }
.le-active-lbl { min-width: 4.2em; color: #15803d; font-weight: 700; }
.le-active-lbl.is-off { color: #b42318; }

/* v274/v275: Locations, Earned column - navy bubble with "Show $" and a down arrow; open: "Collapse" and an up arrow */
.gl-month-line { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.gl-show-btn { display: inline-flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 10px 5px; border: 1px solid #9fd9b2; border-radius: 6px; background: #e3f6ea; color: #146c35;
    cursor: pointer; font: inherit; font-size: .8rem; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.gl-show-txt { color: #146c35; }
.gl-show-chev { position: relative; display: block; width: 12px; height: 12px; }
.gl-show-chev::before { content: ""; position: absolute; left: 50%; top: 30%; width: 7px; height: 7px; border: solid #146c35; border-width: 0 2.5px 2.5px 0;
    transform: translate(-50%, -50%) rotate(45deg); transition: transform .15s; }
.gl-show-btn[aria-expanded=true] .gl-show-chev::before { top: 62%; transform: translate(-50%, -50%) rotate(-135deg); }
.gl-show-btn:hover, .gl-show-btn:focus-visible { background: #cdefd9; border-color: #5fbf80; }
.gl-show-btn[aria-expanded=true] { background: #1e9e4a; border-color: #1e9e4a; color: #fff; }
.gl-show-btn[aria-expanded=true] .gl-show-txt { color: #fff; }
.gl-show-btn[aria-expanded=true] .gl-show-chev::before { border-color: #fff; }
.gl-show-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
[data-theme=dark] .gl-show-btn { background: rgba(30,158,74,.15); border-color: rgba(30,158,74,.45); color: #4fd17e; }
[data-theme=dark] .gl-show-txt { color: #4fd17e; }
[data-theme=dark] .gl-show-chev::before { border-color: #4fd17e; }
/* v277: the words sit above the arrow, inside the green bubble */
.gl-month-line { align-items: center; }
/* v278: Admin Settings is a gear icon (with the small menu arrow), no box */
/* v279: the gear is a 36px circle, the same size and outline as the light / dark switch; the small arrow sits just outside it */
.nav-gear-btn { gap: 3px; padding: 0; background: none; }
.nav-gear-btn .nav-gear-ring { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 0 !important; flex: none; }   /* v280: no outline */
.nav-gear-btn:hover .nav-gear-ring, .nav-gear.open .nav-gear-ring, .nav-gear.is-current .nav-gear-ring { border-color: currentColor; }
[data-theme=light] .nav-gear-btn .nav-gear-ring { border-color: #c4cddb; }
[data-theme=light] .nav-gear-btn:hover .nav-gear-ring, [data-theme=light] .nav-gear.open .nav-gear-ring { border-color: currentColor; }
.nav-gear-icon { width: 36px; height: 36px; display: block; flex: none; transition: transform .25s; }   /* v280: the gear fills the 36px space */
.nav-gear-btn:hover, .nav-gear-btn:focus-visible, .nav-gear.open > .nav-gear-btn, .nav-gear.is-current > .nav-gear-btn { color: #f3a712; background: none; }
.nav-gear-btn:hover .nav-gear-icon { transform: rotate(30deg); }
[data-theme=light] .nav-gear-btn:hover, [data-theme=light] .nav-gear.open > .nav-gear-btn, [data-theme=light] .nav-gear.is-current > .nav-gear-btn { color: #c98500; background: none; }
/* v281: the gear's size beats the small-arrow rule (.nav-user-btn svg = 14px), and it doesn't flip over when the menu opens */
.topnav .nav-gear-btn svg.nav-gear-icon, .nav-gear-btn svg.nav-gear-icon { width: 34px; height: 34px; }
.nav-item.open > .nav-gear-btn svg.nav-gear-icon { transform: none; }
.nav-gear-btn:hover svg.nav-gear-icon { transform: rotate(30deg); }
@media (max-width: 900px) { .topnav .nav-gear-btn svg.nav-gear-icon { width: 30px; height: 30px; } }
/* v282: Install App without the gold bubble - a gold phone icon with "Install / App" beside it */
.app-get-btn, [data-theme=dark] .app-get-btn, [data-theme=light] .app-get-btn {
    background: none; box-shadow: none; animation: none; border-radius: 6px; padding: 0 4px; gap: 5px; height: 38px; color: #f5a524; }
[data-theme=light] .app-get-btn { color: #b87400; }
.app-get-btn svg { width: 32px; height: 32px; stroke-width: 1.6; }
.app-get-text { font-weight: 700; }
.app-get-btn:hover, .app-get-btn:focus-visible, [data-theme=dark] .app-get-btn:hover, [data-theme=light] .app-get-btn:hover { background: none; color: #ffc15c; }
[data-theme=light] .app-get-btn:hover, [data-theme=light] .app-get-btn:focus-visible { color: #8a5a00; }
.app-get-btn:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
@media (max-width: 640px) { .app-get-btn { width: auto; padding: 0 2px; } .app-get-btn svg { width: 30px; height: 30px; } }
/* v283: icons beside Dashboard, Locations and Sales (inside their outlined bubbles on wide screens) */
.topnav a .nav-ico { width: 19px; height: 19px; flex: none; margin-right: 6px; vertical-align: -4px; display: inline-block; }
@media (min-width: 1321px) {
    .topnav a.nav-bubble, .topnav .nav-item.nav-bubble > a { display: inline-flex; align-items: center; }
}
/* v284: Calendar */
.cal-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cal-tabs { margin: 0 0 12px; }
.cal-card, .cal-list-card, .cal-form-card { padding: 14px 16px; }
.cal-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.cal-nav { display: flex; align-items: center; gap: 6px; }
.cal-title { margin: 0 0 0 8px; font-size: 1.25rem; }
.cal-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: .88rem; margin: 0 0 8px; }
.cal-filters label { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; white-space: nowrap; }
.cal-key::before { content: ""; display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--k, #888); }
.cal-layer input { accent-color: var(--k, #1957b8); }
.cal-l-task { --k: #1957b8; } .cal-l-appt { --k: #7c3aed; } .cal-l-follow { --k: #d97706; } .cal-l-tua { --k: #dc2626; } .cal-l-meeting { --k: #0f766e; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 14px; margin: 10px 0 0; color: var(--muted, #5b6b82); }
.cal-key { display: inline-flex; align-items: center; gap: 5px; }
.cal-month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid #dfe5ee; border-radius: 10px; overflow: hidden; }
.cal-wd { padding: 6px 8px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; background: #f1f5fb; color: #42536b; border-bottom: 1px solid #dfe5ee; }
.cal-cell { min-height: 112px; padding: 4px 5px 6px; border-right: 1px solid #edf1f6; border-bottom: 1px solid #edf1f6; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-cell:nth-child(7n) { border-right: 0; }
.cal-cell.is-other { background: #fafbfd; }
.cal-cell.is-other .cal-daynum { color: #9aa7b8; }
.cal-cell-top { display: flex; align-items: center; justify-content: space-between; }
.cal-daynum { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; border-radius: 50%; font-weight: 700; font-size: .88rem; text-decoration: none; color: var(--ink); }
.cal-cell.is-today .cal-daynum { background: #1957b8; color: #fff; }
.cal-add { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; text-decoration: none; color: #7b8aa0; font-weight: 700; opacity: 0; }
.cal-cell:hover .cal-add, .cal-wcol:hover .cal-add, .cal-add:focus-visible { opacity: 1; }
.cal-add:hover { background: #e8eef8; color: #1957b8; }
.cal-more { font-size: .76rem; font-weight: 700; color: #1957b8; text-decoration: none; padding-left: 4px; }
.cal-item { display: flex; align-items: flex-start; gap: 5px; padding: 3px 6px; border-radius: 6px; font-size: .78rem; line-height: 1.3; background: color-mix(in srgb, var(--k) 10%, #fff);
    border-left: 3px solid var(--k); min-width: 0; }
.cal-item.cal-task { --k: #1957b8; } .cal-item.cal-appt { --k: #7c3aed; } .cal-item.cal-follow { --k: #d97706; } .cal-item.cal-tua { --k: #dc2626; } .cal-item.cal-meeting { --k: #0f766e; }
.cal-body { min-width: 0; flex: 1; overflow: hidden; }
.cal-month .cal-body { white-space: nowrap; text-overflow: ellipsis; }
.cal-item a { color: var(--ink); text-decoration: none; font-weight: 600; }
.cal-item a:hover { text-decoration: underline; }
.cal-time { font-weight: 700; color: color-mix(in srgb, var(--k) 80%, #000); }
.cal-item.is-done .cal-body { text-decoration: line-through; opacity: .6; }
.cal-item.is-late { background: #fdecec; }
.cal-item.is-high { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--k) 45%, transparent); }
.cal-sub { color: #5b6b82; font-size: .78rem; white-space: normal; margin-top: 1px; }
.cal-who { margin-left: 6px; padding: 0 6px; border-radius: 999px; background: #fff; border: 1px solid #dfe5ee; font-size: .72rem; color: #42536b; }
.cal-tick { margin: 0; flex: none; }
.cal-check { width: 15px; height: 15px; margin-top: 1px; padding: 0; border: 1.5px solid color-mix(in srgb, var(--k) 70%, #fff); border-radius: 4px; background: #fff; cursor: pointer; position: relative; }
.cal-check:hover { border-color: var(--k); }
.cal-check.is-on { background: var(--k); border-color: var(--k); }
.cal-check.is-on::after { content: ""; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.cal-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.cal-wcol { border: 1px solid #e3e8f0; border-radius: 10px; padding: 6px; min-height: 240px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cal-wcol.is-today { border-color: #1957b8; box-shadow: inset 0 3px 0 #1957b8; }
.cal-wcol-head { display: flex; justify-content: space-between; align-items: center; font-size: .85rem; padding: 0 2px 4px; border-bottom: 1px solid #edf1f6; }
.cal-wcol-head a { text-decoration: none; color: var(--ink); }
.cal-empty { color: #9aa7b8; text-align: center; margin: 8px 0; }
.cal-agenda, .cal-list-card { display: flex; flex-direction: column; gap: 6px; }
.cal-agenda .cal-item, .cal-list-card .cal-item, .cal-week .cal-item { font-size: .88rem; padding: 6px 8px; }
.cal-group { font-size: .95rem; margin: 12px 0 2px; color: #42536b; }
.cal-group.is-late { color: #b42318; }
.cal-group.is-today { color: #1957b8; }
.cal-form { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.cal-form label > span { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 3px; }
.cal-form input[type=text], .cal-form textarea, .cal-wide input { width: 100%; }
.cal-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cal-kind { display: flex; gap: 18px; font-weight: 600; }
.cal-kind label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.cal-actions { display: flex; gap: 8px; }
.cal-del { margin-top: 12px; }
[data-theme=dark] .cal-month, [data-theme=dark] .cal-cell, [data-theme=dark] .cal-wcol { border-color: rgba(255,255,255,.12); }
[data-theme=dark] .cal-wd { background: rgba(255,255,255,.06); color: #cfd8e6; }
[data-theme=dark] .cal-cell.is-other { background: rgba(255,255,255,.02); }
[data-theme=dark] .cal-item { background: color-mix(in srgb, var(--k) 18%, transparent); }
[data-theme=dark] .cal-item a, [data-theme=dark] .cal-daynum, [data-theme=dark] .cal-wcol-head a { color: #e8eef8; }
[data-theme=dark] .cal-sub { color: #b4c0d2; }
@media (max-width: 760px) {
    .cal-month { grid-template-columns: repeat(7, minmax(0, 1fr)); }
    .cal-cell { min-height: 64px; padding: 2px; }
    .cal-month .cal-item { padding: 0; border-left-width: 0; background: none; }
    .cal-month .cal-body, .cal-month .cal-tick { display: none; }
    .cal-month .cal-item::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--k); margin: 2px auto; }
    .cal-week { grid-template-columns: 1fr; }
    .cal-wcol { min-height: 0; }
}
/* v287: location Dashboard - earnings grid in the old DK site's look */
.ld-earn { margin: 0 0 22px; }
.ld-earn-total { margin: 0 0 4px; color: #2f3bd6; font-size: 1rem; }
.ld-grid-wrap { overflow-x: auto; }
.ld-grid { width: 100%; border-collapse: collapse; background: #ccffcc; color: #111; font-size: .95rem; }
.ld-grid th, .ld-grid td { padding: 3px 10px 3px 6px; text-align: left; white-space: nowrap; border-bottom: 1px dotted #7cbf7c; }
.ld-grid thead th { font-weight: 800; font-size: .78rem; letter-spacing: .03em; text-transform: uppercase; border-bottom: 1px solid #7cbf7c; }
.ld-grid thead th::first-letter { font-size: 1.25em; }
.ld-grid tbody th { font-weight: 800; }
.ld-grid td { color: #d0021b; }
.ld-grid td.ld-tot { color: #111; font-weight: 800; }
[data-theme=dark] .ld-earn-total { color: #8fa2ff; }
[data-theme=dark] .ld-grid { background: #163a22; color: #e8f5ea; }
[data-theme=dark] .ld-grid td { color: #ff7a7a; }
[data-theme=dark] .ld-grid td.ld-tot { color: #fff; }
[data-theme=dark] .ld-grid th, [data-theme=dark] .ld-grid td { border-color: #2e6b40; }
/* v290: the map pin in every address bubble is red (like Google Maps); the bubble stays light blue */
a.map-link::before, .pr-bub-map::before { content: ""; width: 15px; height: 15px; font-size: 0;
    background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7-6.2-7-11.5a7 7 0 0 1 14 0C19 14.8 12 21 12 21z' fill='%23ea4335' stroke='%23c5221f' stroke-width='1.2' stroke-linejoin='round'/%3E%3Ccircle cx='12' cy='9.5' r='2.6' fill='%23fff'/%3E%3C/svg%3E"); }
/* v293: Analyze - the reload lands with the month / year heading at the top of the screen (below the top bar) */
.an-card { scroll-margin-top: 96px; }
/* v294: terminal operator under the Target / Working boxes at the top of a location's pages */
.loc-flags-wrap { display: flex; flex-direction: column; gap: 2px; }
.loc-flags-op { font-size: .85rem; font-weight: 600; color: #42536b; padding-left: 2px; }
[data-theme=dark] .loc-flags-op { color: #b4c0d2; }
/* v296: Locations - one light-yellow bubble around the DBA and the legal name (opens the location), plain text */
a.gl-name-bubble { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; box-sizing: border-box; min-height: 52px; padding: 5px 30px 18px 12px; border-radius: 12px; position: relative;
    background: #fff7cc; border: 1px solid #f0dc8a; color: #3d3100; text-decoration: none; line-height: 1.3; }
a.gl-name-bubble:hover, a.gl-name-bubble:focus-visible { background: #ffef99; border-color: #e0c75a; color: #3d3100; text-decoration: none; }
.gl-nb-dba { font-weight: 400; font-size: .95rem; color: #1f2d44; overflow-wrap: anywhere; }
.gl-nb-legal { font-size: .85rem; color: #5c4a00; overflow-wrap: anywhere; }
/* v297: the bubble fills the column, same for every row; the arrow is always bottom right */
a.gl-name-bubble::after { content: "➜"; position: absolute; right: 10px; bottom: 4px; font-weight: 700; font-size: .85rem; color: #5c4a00; }
[data-theme=dark] a.gl-name-bubble::after { color: #e8d48a; }
[data-theme=dark] a.gl-name-bubble { background: rgba(240,210,80,.16); border-color: rgba(240,210,80,.45); }
[data-theme=dark] .gl-nb-dba { color: #f6e7a8; }
[data-theme=dark] .gl-nb-legal { color: #e8d48a; }
/* v298: sort arrows in the Locations header all look alike; the sorted one is the same green, a little bolder */
.gl-search .sort-btn.sorted, .sort-btn.sorted { color: #1e5b2e; font-weight: 800; }
[data-theme=dark] .gl-search .sort-btn.sorted, [data-theme=dark] .sort-btn.sorted { color: #8fd4a0; }
/* v299/v300: Dashboard - the yellow "go to" bubble (same as the names on Locations) right next to the locations dropdown */
.dk-sel { display: flex; align-items: center; gap: 8px; }
.dk-sel select { flex: 1 1 auto; min-width: 0; }
a.gl-name-bubble.dk-goloc { width: auto; flex: 0 1 260px; min-height: 0; padding: 4px 30px 6px 12px; }
.dk-goloc .gl-nb-dba { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
/* v301: phones - Target / Working sit on their own line under the address and the city instead of floating over the text */
@media (max-width: 760px) {
    table.gaming-list td.gl-addr.gl-cell-has-sw, table.gaming-list td.gl-city.gl-cell-has-sw { display: block; position: static; padding-bottom: 4px; }
    table.gaming-list td.gl-addr.gl-cell-has-sw::after { content: none; }
    td.gl-cell-has-sw .gl-sw-bottom { position: static; left: auto; right: auto; bottom: auto; margin: 6px 0 2px; justify-content: flex-start; }
    table.gaming-list td.gl-city.gl-cell-has-sw { color: var(--ink); }
}
/* v307: Revenue Check - narrow Received; more room for Business / person and Address; Open = the yellow "go to" bubble */
table.gaming-list.pr-list > thead > tr.gl-labels > th.inq-rcv { width: 92px; }
table.gaming-list.pr-list > thead > tr.gl-labels > th.inq-biz { width: 30%; }
table.gaming-list.pr-list > thead > tr.gl-labels > th.inq-addr { width: 24%; }
table.gaming-list.pr-list > thead > tr.gl-labels > th.inq-open-th { width: 130px; }
table.gaming-list.pr-list td.inq-rcv { width: 92px; white-space: normal; }
a.gl-name-bubble.inq-open { min-height: 0; padding: 4px 26px 6px 10px; }
/* v308: Revenue Check - one bubble per request: where it came from, then the business / person (opens the details pop-up) */
summary.pr-bub.inq-who { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px; text-align: left; white-space: normal; padding: 4px 12px 5px; border-radius: 12px; max-width: 100%; }
.inq-who-src { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; opacity: .75; }
.inq-who-name { font-weight: 700; overflow-wrap: anywhere; }
.inq-who-sub { font-size: .85em; font-weight: 500; overflow-wrap: anywhere; }
/* v310: the request bubble's lines are plain text (the pop-up "?" circle style was squeezing them) */
.lq-help summary.inq-who span { display: block; width: auto; height: auto; border-radius: 0; background: none; color: inherit; justify-content: flex-start; }
.lq-help summary.inq-who .inq-who-src { font-weight: 700; }
.lq-help summary.inq-who .inq-who-name { font-weight: 700; }
.lq-help summary.inq-who .inq-who-sub { font-weight: 500; }
a.gl-name-bubble.inq-open { min-height: 36px; padding: 6px 28px 6px 12px; justify-content: center; }
/* v311/v312: Revenue Check - View column just wide enough for "View ➜" (no side scrolling); the rest goes to Address */
table.gaming-list.pr-list { table-layout: auto; width: 100%; }
table.gaming-list.pr-list > thead > tr.gl-labels > th.inq-open-th { width: 88px; min-width: 88px; padding-left: 4px; padding-right: 6px; }
table.gaming-list.pr-list td:last-child { width: 88px; min-width: 88px; padding-left: 4px; padding-right: 6px; }
a.gl-name-bubble.inq-open { width: 100%; box-sizing: border-box; min-height: 0; padding: 6px 24px 6px 10px; white-space: nowrap; }
a.gl-name-bubble.inq-open::after { right: 8px; bottom: 50%; transform: translateY(50%); }
table.gaming-list.pr-list > thead > tr.gl-labels > th.inq-addr, table.gaming-list.pr-list td.inq-addr { width: 30%; min-width: 160px; }
table.gaming-list.pr-list > thead > tr.gl-labels > th.inq-biz, table.gaming-list.pr-list td.inq-biz { width: 28%; min-width: 170px; }
/* v313: Revenue Check - narrower Received, wider Address (still no side scrolling) */
table.gaming-list.pr-list > thead > tr.gl-labels > th.inq-rcv, table.gaming-list.pr-list td.inq-rcv { width: 70px; min-width: 66px; max-width: 76px; padding-left: 6px; padding-right: 4px; }
table.gaming-list.pr-list > thead > tr.gl-labels > th.inq-addr, table.gaming-list.pr-list td.inq-addr { width: 34%; min-width: 160px; }
/* v314: request page - Status and notes sits to the right of "Owner of this location?" (the empty space), sized to fit */
.inq-grid #notes { grid-column: auto; }
.inq-grid #notes .inq-status-form { flex-wrap: nowrap; gap: 8px; margin-bottom: 8px; }
.inq-grid #notes .inq-status-form label { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.inq-grid #notes .inq-status-form select { width: 100%; max-width: 220px; }
.inq-grid #notes .mu-notes-form textarea { box-sizing: border-box; min-height: 64px; }
.inq-grid #notes .inq-notes { max-height: 260px; overflow-y: auto; }
/* v315: request page - follow-up date beside Add note; follow-up tags on the notes */
.inq-fu-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.inq-fu { display: flex; flex-direction: column; gap: 2px; }
.inq-fu input { height: 34px; }
.inq-fu-row .btn { margin-top: 0; }
.inq-notes .note-fu { display: inline-block; margin-left: 6px; padding: 0 8px; border-radius: 999px; font-size: .75rem; font-weight: 700; background: #fef3c7; color: #92400e; }
.inq-notes .note-fu.late { background: #fee2e2; color: #991b1b; }
.inq-notes .note-fu.done { background: #dcfce7; color: #166534; }
.inq-fu-done { display: inline; margin: 0 0 0 4px; }
/* v316: request page - contacts first (full width), notes in the "Whole message" style, earlier ones / more contacts under expands */
.inq-grid #contacts { grid-column: 1 / -1; order: -1; }
.inq-notes li.inq-note { border-top: 0; margin: 0 0 8px; padding: 8px 10px; }
.inq-note-text { margin-top: 4px; }
.inq-more { margin-top: 8px; }
.inq-more > summary { margin-bottom: 6px; }
.inq-contacts td:first-child, .inq-contacts th:first-child { width: 28%; }
.inq-contacts td:nth-child(2), .inq-contacts th:nth-child(2) { width: 22%; }
.inq-contacts td:nth-child(3), .inq-contacts th:nth-child(3) { width: 20%; }
/* v317: request page - Back + Delete (Super admin) in the page head */
.inq-head-btns { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inq-del { margin: 0; }
.btn.btn-danger { background: #fff; color: #b42318; border-color: #f1b5ae; }
.btn.btn-danger:hover, .btn.btn-danger:focus-visible { background: #fdecec; color: #8f1b12; border-color: #e58b80; }
/* v319: Calendar > Follow Ups - Completed switch, Due and Completed dates on each follow-up; Back link on the page it opens */
.cal-fu { padding: 8px 10px; }
.cal-fu-form { display: flex; align-items: center; gap: 12px; width: 100%; margin: 0; flex-wrap: wrap; }
.cal-fu-form.is-saving { opacity: .6; }
.cal-fu-sw { flex: none; }
.cal-fu-body { flex: 1 1 260px; min-width: 0; }
.cal-fu-body a { font-weight: 600; }
.cal-fu-date { display: flex; flex-direction: column; gap: 1px; font-size: .72rem; font-weight: 700; color: #5b6b82; text-transform: uppercase; letter-spacing: .03em; }
.cal-fu-date input { height: 32px; padding: 0 6px; font-size: .85rem; text-transform: none; }
.cal-fu-date.is-off input { opacity: .55; }
.cal-item.cal-fu.is-done .cal-body, .cal-item.cal-fu.is-done .cal-fu-body { text-decoration: none; opacity: 1; }
.cal-item.cal-fu.is-done .cal-fu-body a { text-decoration: line-through; opacity: .7; }
.cal-backbar { margin: 10px 0 0; }
@media (max-width: 640px) { .cal-fu-body { flex-basis: 100%; order: -1; } }
/* v322: Calendar add / edit - Task / Appointment with the location finder beside it */
.cal-kind-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px 28px; }
.cal-kind-row .cal-kind { padding-top: 22px; }
.cal-loc { position: relative; flex: 1 1 340px; max-width: 520px; }
.cal-loc-find-lbl { display: block; }
.cal-loc-find { width: 100%; }
.cal-loc-picked { display: flex; align-items: center; gap: 10px; margin-top: 6px; padding: 5px 10px; border-radius: 10px; background: #fff7cc; border: 1px solid #f0dc8a; color: #3d3100; font-weight: 600; font-size: .9rem; }
.cal-loc-hits { position: absolute; z-index: 30; left: 0; right: 0; top: 64px; margin: 0; padding: 4px 0; list-style: none; max-height: 300px; overflow-y: auto;
    background: var(--card, #fff); border: 1px solid #cdd5e1; border-radius: 10px; box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.cal-loc-hits li.none { padding: 8px 12px; color: var(--muted); font-size: .9rem; }
.cal-loc-hit { display: flex; flex-direction: column; align-items: flex-start; width: 100%; padding: 6px 12px; border: 0; background: none; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.cal-loc-hit:hover, .cal-loc-hit:focus-visible { background: #eef3fb; }
.cal-loc-legal { font-size: .82rem; color: #5b6b82; }
.cal-loc-where { font-size: .8rem; color: #7b8aa0; }
/* v323: appointment type (Phone / Text / In Person) */
.cal-atype select { height: 32px; padding: 0 8px; font-weight: 600; }
.cal-atype-tag { display: inline-block; padding: 0 6px; border-radius: 6px; background: color-mix(in srgb, var(--k, #7c3aed) 16%, #fff); color: #4c1d95; font-size: .72rem; font-weight: 700; }
/* v324: Expenses - the monthly mileage / expense sheet */
.exp-h-month { font-weight: 500; color: var(--muted); font-size: .7em; margin-left: 6px; }
.exp-month-nav { display: flex; gap: 6px; align-items: center; }
.exp-all, .exp-card { padding: 14px 16px; margin-bottom: 16px; }
.exp-all tr.is-sel td { background: #fff7cc; }
a.gl-name-bubble.exp-open { width: auto; min-height: 0; padding: 4px 26px 4px 10px; }
.exp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.exp-head h2 { margin: 0 0 2px; }
.exp-btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.exp-btns form { margin: 0; }
.exp-home { display: inline-flex; flex-direction: column; gap: 2px; margin: 8px 0; }
.exp-home input { width: 220px; }
.exp-edit { width: 100%; }
.exp-edit td input[type=text] { width: 100%; min-width: 140px; }
.exp-edit td input[type=date] { width: 150px; }
.exp-edit td.num input { width: 90px; text-align: right; }
.exp-edit input.is-missing { border-color: #f59e0b; background: #fffbeb; }
.exp-d { white-space: nowrap; }
.exp-sub { margin: 18px 0 6px; }
.exp-add, .exp-settings { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin: 6px 0; }
.exp-add label, .exp-settings label { display: flex; flex-direction: column; gap: 2px; font-size: .82rem; font-weight: 600; }
.exp-add .exp-w { flex: 1 1 220px; }
.exp-add .exp-w input { width: 100%; }
.exp-grand { margin-top: 14px; font-size: 1.05rem; text-align: right; }
.exp-st-open { background: #e0f2fe; color: #075985; }
.exp-st-turnedin { background: #fef3c7; color: #92400e; }
.exp-st-approved { background: #dcfce7; color: #166534; }
/* the printable sheet - laid out like the DK Gaming Mileage Log */
.exp-print-body { background: #fff; color: #111; padding: 20px; }
.exp-print-bar { max-width: 1100px; margin: 0 auto 12px; display: flex; gap: 8px; }
.exp-sheet { max-width: 1100px; margin: 0 auto; border: 2px solid #111; font-family: Arial, Helvetica, sans-serif; }
.exp-top { display: flex; justify-content: space-between; align-items: flex-end; padding: 14px 12px 0; min-height: 70px; }
.exp-logo img, .exp-logo svg { height: 34px; width: auto; }
.exp-title { font-size: 1.7rem; }
.exp-name { padding: 2px 0 6px 330px; font-size: 1.05rem; border-bottom: 2px solid #111; }
.exp-rate-row { display: flex; align-items: baseline; gap: 10px; padding: 4px 12px; border-bottom: 2px solid #111; font-size: .92rem; }
.exp-rate-row small { font-size: .7rem; }
.exp-rate-row .exp-date { margin-left: auto; margin-right: 18%; color: #1f4fb8; font-weight: 700; }
.exp-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.exp-table th { background: #34b89c; color: #fff; text-align: left; padding: 3px 6px; font-weight: 700; }
.exp-table td { border: 1px solid #b0b0b0; padding: 8px 6px; }
.exp-table td.exp-d { text-align: right; }
.exp-table .num { text-align: right; }
.exp-table tfoot th, .exp-table tfoot td { background: none; color: #111; border: 1px solid #b0b0b0; }
.exp-table tfoot td:first-child { border: 0; }
.exp-other { margin-top: 16px; }
.exp-sheet .exp-grand { padding: 8px 12px; }
.exp-foot { padding: 6px 12px; color: #666; }
/* v327: the sheet is an 11 x 8.5 inch (landscape letter) page with half-inch margins - on screen as a page preview, and when printed */
.exp-print-body { background: #e9edf2; }
.exp-print-bar { width: 11in; max-width: 100%; }
.exp-sheet { box-sizing: border-box; width: 11in; max-width: 100%; min-height: 8.5in; padding: 0.5in; background: #fff; border: 0; box-shadow: 0 2px 12px rgba(0,0,0,.18); }
.exp-sheet > .exp-frame { border: 2px solid #111; }
.exp-name { padding-left: 30%; }
.exp-table { font-size: 10pt; }
.exp-table td { padding: 5px 6px; }
.exp-table tr { page-break-inside: avoid; break-inside: avoid; }
.exp-title { font-size: 20pt; }
@page { size: 11in 8.5in; margin: 0.5in; }
@media print {
    html, body.exp-print-body { background: #fff; margin: 0; padding: 0; }
    .exp-print-bar { display: none; }
    .exp-sheet { width: auto; max-width: none; min-height: 0; padding: 0; margin: 0; box-shadow: none; }
    .exp-table th, .exp-table td { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .exp-table thead { display: table-header-group; }
    .exp-table tfoot { display: table-row-group; }
}

/* v328: location list pages (Contacts etc.) - bigger names, switches in 3 left-aligned columns */
.crud-table td.crud-name { font-size: 1.08rem; font-weight: 700; color: var(--ink); }
.crud-switches { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 16px; margin-top: 6px; }
.le-grid .crud-switches label.crud-switch { flex-direction: row; justify-content: flex-start; align-items: center; gap: 10px; margin: 0; font-size: .9rem; color: var(--ink); white-space: nowrap; }
.crud-switch-lbl { white-space: nowrap; }
@media (max-width: 900px) { .crud-switches { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .crud-switches { grid-template-columns: 1fr; } }

/* v329: location page heading in two lines - title, Target / Working, address bubble; then company, phone, operator, IGB # */
.dl-head2 .loc-title { gap: 8px 14px; }
.dl-head2 .loc-title h1 { font-size: 1.6rem; margin-right: 4px; }
.loc-addr-pill { display: inline-flex; align-items: center; max-width: 100%; font-size: .92rem; font-weight: 600; }
.dl-head2 .dl-meta { margin-top: 8px; gap: 4px 10px; align-items: baseline; font-size: .98rem; }
.dl-head2 .dl-co { font-weight: 800; font-size: 1.05rem; }
.dl-head2 .dl-sep { color: var(--muted); }
@media (max-width: 560px) { .dl-head2 .dl-sep { display: none; } .dl-head2 .dl-meta { flex-direction: column; gap: 2px; } }

/* v330: driver's license upload on Contacts; per-person list on IGB Docs/Links */
.crud-file { grid-column: span 1; }
.crud-file input[type=file] { font-size: .9rem; padding: 6px 0; font-weight: 400; color: var(--ink); }
.crud-file .small { font-weight: 400; color: var(--ink); }
.crud-dl { display: inline-block; padding: 1px 8px; border-radius: 999px; background: #e7effc; color: #1957b8; font-weight: 700; font-size: .78rem; text-decoration: none; }
.crud-dl:hover { background: #d4e3fa; }
[data-theme=dark] .crud-dl { background: rgba(80,140,240,.18); color: #9cc0ff; }
.dl-sub { font-size: .9rem; margin: 12px 0 4px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }

/* v332: expense sheets - Paid */
.exp-st-paid { background: #d1fae5; color: #065f46; font-weight: 800; }
.exp-paid-on { color: #15803d; }
.exp-pay-form { display: inline-flex; align-items: center; gap: 6px; margin: 0; flex-wrap: wrap; }
.exp-pay-form input[type=date] { padding: 4px 6px; border: 1px solid #cdd5e1; border-radius: 6px; font-size: .85rem; background: var(--card); color: var(--ink); }
.exp-pay-form label { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.exp-paid-cell { white-space: nowrap; }

/* v333: Meetings - the bell in the top bar, the new-meeting form, who has read it */
.topnav a.nav-meet { position: relative; display: inline-flex; align-items: center; padding: 4px 6px; background: none; border: 0; box-shadow: none; color: inherit; }
.nav-meet-icon { width: 26px; height: 26px; display: block; }
.topnav a.nav-meet:hover .nav-meet-icon, .topnav a.nav-meet.active .nav-meet-icon { color: #f3a712; }
.topnav a.nav-meet.has-new .nav-meet-icon { color: #f3a712; animation: meet-ring 1.6s ease-in-out 2; transform-origin: 50% 10%; }
.nav-meet-badge { position: absolute; top: -2px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #dc2626; color: #fff; font-size: .7rem; font-weight: 800; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--card, #fff); }
@keyframes meet-ring { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(14deg); } 30% { transform: rotate(-12deg); } 45% { transform: rotate(8deg); } 60% { transform: rotate(-4deg); } }
@media (prefers-reduced-motion: reduce) { .topnav a.nav-meet.has-new .nav-meet-icon { animation: none; } }
.meet-form { max-width: 980px; }
.meet-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; }
.meet-grid label, .meet-addr label { display: flex; flex-direction: column; gap: 4px; font-size: .82rem; font-weight: 600; color: var(--muted); }
.meet-grid input[type=text], .meet-grid input[type=date], .meet-grid input[type=time], .meet-grid textarea { font: inherit; font-size: .95rem; padding: 8px 10px; border: 1px solid #cdd5e1; border-radius: 8px; background: var(--card); color: var(--ink); font-weight: 400; }
.meet-wide { grid-column: 1 / -1; }
.meet-addr { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px 16px; }
.meet-addr[hidden] { display: none; }
.meet-addr .meet-wide { grid-column: 1 / -1; }
.meet-mode { border: 0; padding: 0; margin: 0; display: flex; gap: 22px; align-items: center; }
.meet-mode legend { font-size: .82rem; font-weight: 600; color: var(--muted); padding: 0; margin-bottom: 4px; float: left; width: 100%; }
.meet-mode label { flex-direction: row; align-items: center; gap: 6px; font-size: .95rem; color: var(--ink); }
.meet-to-h { margin: 18px 0 6px; }
.meet-group { margin-bottom: 12px; }
.meet-group-h { margin-bottom: 6px; }
.meet-people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 16px; }
.meet-person { white-space: nowrap; font-weight: 600; }
.meet-btns { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 14px; }
.meet-dl { display: grid; grid-template-columns: 110px 1fr; gap: 8px 14px; margin: 0 0 12px; }
.meet-dl dt { font-weight: 700; color: var(--muted); }
.meet-dl dd { margin: 0; }
.meet-link { word-break: break-all; }
.meet-notes { white-space: normal; }
.meet-list { list-style: none; margin: 0; padding: 0; }
.meet-list li { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line); }
.meet-list li.is-new { background: #fff8e1; margin: 0 -10px; padding: 8px 10px; }
[data-theme=dark] .meet-list li.is-new { background: rgba(243,167,18,.12); }
.meet-new { display: inline-block; padding: 1px 8px; border-radius: 999px; background: #dc2626; color: #fff; font-size: .72rem; font-weight: 800; }
.meet-cancel-tag { display: inline-block; padding: 1px 8px; border-radius: 999px; background: #e5e7eb; color: #374151; font-size: .72rem; font-weight: 800; margin: 0; }
.is-cancelled b, .is-cancelled .meet-dl dd b { text-decoration: line-through; opacity: .7; }
.meet-count { margin-left: auto; font-size: .82rem; font-weight: 700; color: #92400e; background: #fef3c7; padding: 1px 10px; border-radius: 999px; }
.meet-count.all { color: #166534; background: #dcfce7; }
.meet-read { color: #15803d; font-weight: 600; }
.meet-unread { color: #b45309; font-weight: 700; }
.meet-bad { color: #b91c1c; font-weight: 600; }
@media (max-width: 760px) { .meet-grid, .meet-people { grid-template-columns: 1fr 1fr; } .meet-addr { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .meet-grid, .meet-people, .meet-addr { grid-template-columns: 1fr; } .meet-dl { grid-template-columns: 1fr; } }

/* v337: New meeting - Online / In person on one line each; agenda upload */
.meet-mode { flex-wrap: wrap; }
.meet-mode legend { float: none; width: auto; margin-right: 6px; }
.meet-grid .meet-mode label { display: inline-flex; flex-direction: row; align-items: center; gap: 8px; white-space: nowrap; flex: 0 0 auto; font-size: .95rem; font-weight: 600; color: var(--ink); }
.meet-mode input[type=radio] { width: 18px; height: 18px; margin: 0; accent-color: #1957b8; }
.meet-agenda { display: grid; grid-template-columns: 1fr 2fr; gap: 12px 16px; }
.meet-agenda input[type=file], .meet-addfile input[type=file] { font-size: .9rem; padding: 6px 0; font-weight: 400; color: var(--ink); }
.meet-file { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.meet-file a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.meet-addfile { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.meet-addfile input[type=text] { padding: 6px 10px; border: 1px solid #cdd5e1; border-radius: 8px; background: var(--card); color: var(--ink); font: inherit; font-size: .9rem; }
@media (max-width: 620px) { .meet-agenda { grid-template-columns: 1fr; } }

/* v338: edit a meeting */
.meet-notify { margin-top: 12px; font-weight: 600; white-space: normal; }
.meet-one .btn + .inline-form { margin-left: 8px; }

/* v340: Add location - find it first (Locations + liquor license list) */
.lf-wrap { position: relative; }
.lf-card .lf-q { width: 100%; font-size: 1rem; padding: 10px 12px; border: 1px solid #cdd5e1; border-radius: 10px; background: var(--card); color: var(--ink); }
.lf-results { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 4px); max-height: 420px; overflow-y: auto; background: var(--card, #fff); border: 1px solid #cdd5e1; border-radius: 10px; box-shadow: 0 10px 28px rgba(0,0,0,.16); padding: 4px 0; }
.lf-h { padding: 6px 12px 2px; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.lf-row { display: block; padding: 7px 12px; text-decoration: none; color: var(--ink); line-height: 1.3; }
.lf-row:hover, .lf-row:focus { background: #fff6d6; outline: none; }
[data-theme=dark] .lf-row:hover, [data-theme=dark] .lf-row:focus { background: rgba(243,167,18,.14); }
.lf-row span { color: var(--muted); font-weight: 600; }
.lf-row small { display: block; color: var(--muted); font-size: .8rem; }
.lf-loc b::before { content: "● "; color: #16a34a; }
.lf-liq b::before { content: "● "; color: #2563eb; }
.lf-none { padding: 10px 12px; color: var(--muted); font-size: .9rem; }
/* v343: Find it first - Legal name, DBA, City, Address */
.lf-boxes { display: grid; grid-template-columns: 2fr 2fr 1fr 2fr; gap: 10px 14px; }
.lf-boxes label { display: flex; flex-direction: column; gap: 4px; font-size: .82rem; font-weight: 600; color: var(--muted); }
.lf-boxes input { font-size: .95rem; padding: 8px 10px; border: 1px solid #cdd5e1; border-radius: 8px; background: var(--card); color: var(--ink); font-weight: 400; }
@media (max-width: 760px) { .lf-boxes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .lf-boxes { grid-template-columns: 1fr; } }
.lf-picked { margin: 0 0 12px; }

/* v346: Dashboard's pages as a row next to the role bubble; the row sticks under the (sticky) top bar */
.whoami-sticky { position: sticky; top: var(--topbar-h, 64px); z-index: 9; }
[data-theme=dark] .whoami-sticky { background: #18202e; }
.whoami-inner { flex-wrap: wrap; }
.whoami-name { white-space: nowrap; }
.whoami-links { display: flex; align-items: center; gap: 4px; margin-right: auto; margin-left: 4px; overflow-x: auto; scrollbar-width: none; }
.whoami-links::-webkit-scrollbar { display: none; }
.whoami-links a { flex: 0 0 auto; padding: 4px 12px; border-radius: 999px; border: 1px solid transparent; color: #24344f; text-decoration: none; font-weight: 600; font-size: .85rem; white-space: nowrap; }
.whoami-links a:hover { background: #dfe8f6; }
.whoami-links a.active { background: #1957b8; border-color: #1957b8; color: #fff; }
[data-theme=dark] .whoami-links a { color: #d6e2f5; }
[data-theme=dark] .whoami-links a:hover { background: rgba(255,255,255,.08); }
[data-theme=dark] .whoami-links a.active { background: #2f6fd6; border-color: #2f6fd6; color: #fff; }
@media (max-width: 760px) { .whoami-links { order: 3; width: 100%; margin: 4px 0 0; } }

/* v352: Analyze with no daily numbers - the average for its type of location */
.an-typeavg { text-align: center; padding: 28px 20px; }
.an-ta-label { margin: 0 0 6px; font-size: 1.05rem; }
.an-ta-num { margin: 0 0 6px; font-size: 2.4rem; font-weight: 800; color: #15803d; line-height: 1.1; }
.an-ta-num span { font-size: 1rem; font-weight: 600; color: var(--muted); }

/* v354/v355: location Dashboard - Type of location right after "licensed", on the same line */
.ld-type { display: inline; margin: 0 0 0 10px; }
.ld-type select { padding: 3px 8px; border: 1px solid #cdd5e1; border-radius: 8px; background: var(--card); color: var(--ink); font-size: .85rem; font-weight: 600; vertical-align: middle; }

/* v357: Analyze (no daily numbers) - this location vs the average for its type */
.an-ta-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; text-align: center; }
.an-ta-grid.an-ta-one { grid-template-columns: minmax(0, 360px); justify-content: center; }
.an-ta-box { border: 1px solid var(--line); border-radius: 12px; padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; }
.an-ta-box span { font-weight: 700; color: var(--muted); font-size: .85rem; }
.an-ta-box b { font-size: 1.9rem; font-weight: 800; line-height: 1.15; color: var(--ink); }
.an-ta-box small { color: var(--muted); }
.an-ta-box.is-low { background: #fef2f2; border-color: #fca5a5; } .an-ta-box.is-low b { color: #b91c1c; }
.an-ta-box.is-high { background: #f0fdf4; border-color: #86efac; } .an-ta-box.is-high b { color: #15803d; }
[data-theme=dark] .an-ta-box.is-low { background: rgba(220,38,38,.12); } [data-theme=dark] .an-ta-box.is-high { background: rgba(22,163,74,.12); }
.an-ta-verdict { margin: 14px 0 0; font-weight: 800; font-size: 1.05rem; }
.an-ta-verdict.is-low { color: #b91c1c; } .an-ta-verdict.is-high { color: #15803d; }
@media (max-width: 640px) { .an-ta-grid { grid-template-columns: 1fr; } }

/* v358: Signed docs - Delete button */
.dl-del button { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border: 1px solid #fca5a5; border-radius: 999px; background: #fff5f5; color: #b91c1c; font-size: .78rem; font-weight: 700; }
.dl-del button:hover { background: #fee2e2; color: #991b1b; }
[data-theme=dark] .dl-del button { background: rgba(220,38,38,.12); border-color: rgba(252,165,165,.5); color: #fca5a5; }

/* v360: note attachments */
.note-files { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 6px 0 2px; }
.note-file { display: inline-flex; align-items: center; gap: 4px; }
.note-file a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .88rem; }
.note-file .link-btn { color: #b91c1c; font-size: 1rem; line-height: 1; }
.note-attach-lbl { position: relative; cursor: pointer; }
.note-attach-lbl input[type=file] { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.note-files-in input[type=file] { font-size: .9rem; padding: 6px 0; font-weight: 400; color: var(--ink); }

/* v361: location Dashboard - IGB # · status · operator to the right of Target / Working */
.ld-info { font-size: .95rem; font-weight: 600; color: var(--muted); }

/* v362: location Dashboard - Target / Working, then the address and Type on one line */
.ld-line2 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 6px; }
.ld-line2 > p { margin: 0; }

/* v363: location list pages - "+ Add contact" opens the form */
.crud-add { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.crud-add-sum { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 800; font-size: 1.05rem; list-style: none; }
.crud-add-sum::-webkit-details-marker { display: none; }
.crud-add > .crud-form { margin-top: 10px; border-top: 0; padding-top: 0; }
.crud-add[open] .perm-plus::before { content: "\2212"; }

/* v364: list pages - Edit is a blue bubble with a pencil (like the other bubbles on the site), Remove a red one */
.crud-edit { gap: 5px; font-weight: 700; font-size: .8rem; }
.crud-remove { display: inline-flex; align-items: center; padding: 2px 10px; border: 1px solid #fca5a5; border-radius: 999px; background: #fff5f5; color: #b91c1c; font-size: .8rem; font-weight: 700; cursor: pointer; }
.crud-remove:hover { background: #fee2e2; }
[data-theme=dark] .crud-remove { background: rgba(220,38,38,.12); border-color: rgba(252,165,165,.5); color: #fca5a5; }
.crud-act { gap: 8px; }

/* v365: "+ Add contact" stays on the page while a contact is being edited */
.crud-add-row { margin-top: 16px; }
.crud-addnew { gap: 8px; font-weight: 800; font-size: .95rem; padding: 4px 14px 4px 6px; }
.crud-addnew .perm-plus { width: 22px; height: 22px; }

/* v366: Edit and Add each in their own card under the list */
.crud-box .crud-add { margin-top: 0; border-top: 0; padding-top: 0; }
.crud-box-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.crud-box-head .crud-title { margin: 0; }
.crud-close { font-size: 1.6rem; line-height: 1; text-decoration: none; color: var(--muted); padding: 0 6px; }
.crud-close:hover { color: var(--ink); }
.crud-edit-box { border: 2px solid #7dd3fc; }
.crud-box .crud-form { margin-top: 10px; border-top: 0; padding-top: 0; }

/* v367: a minus in a circle beside "Edit ..." closes it (like the x) */
.crud-box-head { justify-content: flex-start; gap: 10px; }
.crud-box-head .crud-close { margin-left: auto; }
.crud-collapse { display: inline-flex; text-decoration: none; }
.perm-plus.is-minus::before { content: "\2212"; }

/* v368: driver's license - front and back, instructions, barcode status */
.dl-box { border: 1px dashed #b9c6d8; border-radius: 10px; padding: 10px 14px; background: rgba(25,87,184,.03); }
.dl-box-h { margin-bottom: 4px; }
.dl-steps { margin: 4px 0 10px 18px; padding: 0; color: var(--ink); font-weight: 400; }
.dl-steps li { margin: 2px 0; }
.dl-files { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.dl-status { margin: 8px 0 0; font-weight: 700; }
.dl-status.ok { color: #15803d; } .dl-status.bad { color: #b45309; }
.crud-form input.dl-filled { background: #f0fdf4; border-color: #86efac; }
[data-theme=dark] .crud-form input.dl-filled { background: rgba(22,163,74,.12); }
@media (max-width: 640px) { .dl-files { grid-template-columns: 1fr; } }

/* v369: one look for delete / remove everywhere - a red trash can, no bubble */
.del-ico { display: inline-flex; align-items: center; justify-content: center; padding: 3px; margin: 0; background: none; border: 0; border-radius: 6px; color: #dc2626; cursor: pointer; line-height: 0; vertical-align: middle; }
.del-ico:hover { color: #991b1b; background: rgba(220,38,38,.08); }
.del-ico:focus-visible { outline: 2px solid #dc2626; outline-offset: 1px; }
[data-theme=dark] .del-ico { color: #f87171; }
.dl-del button.del-ico { padding: 3px; border: 0; background: none; color: #dc2626; }

/* v370: "+ Add contact" in the list's header, above Edit / trash */
.crud-th-act { text-align: right; white-space: nowrap; }
.crud-th-add { display: inline-flex; align-items: center; gap: 6px; text-transform: none; letter-spacing: 0; font-size: .85rem; font-weight: 800; color: #15803d; text-decoration: none; }
.crud-th-add .perm-plus { width: 20px; height: 20px; }
.crud-th-add:hover { text-decoration: underline; }

/* v372: actions column - Edit at the left, DL next to it, the trash can at the right */
td.crud-act { display: flex; align-items: center; gap: 8px; }
td.crud-act > form { margin-left: auto; }
.crud-th-act { text-align: right; }
td.crud-act { min-width: 150px; }

/* v378: IGB info worksheet page */
.ws-status { font-weight: 800; font-size: 1.05rem; margin: 0 0 10px; }
.ws-status.ok { color: #15803d; } .ws-status.bad { color: #b91c1c; }
.ws-btns { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }

/* v382: every file box is a drag-and-drop / click-to-choose box */
.dz { min-height: 64px; margin-top: 2px; text-align: center; font-weight: 600; color: var(--muted); }
.dz .dz-txt { font-size: .85rem; word-break: break-word; }
.dz input[type=file] { z-index: 1; }

/* v382: the location camera */
.snap-form { display: grid; gap: 12px; max-width: 520px; }
.snap-type { display: flex; flex-direction: column; gap: 4px; font-weight: 700; }
.snap-type select { font-size: 1rem; padding: 10px; border: 1px solid #cdd5e1; border-radius: 10px; background: var(--card); color: var(--ink); }
.snap-take { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 22px; border-radius: 14px; background: #1957b8; color: #fff; font-size: 1.2rem; font-weight: 800; cursor: pointer; }
.snap-take:hover { background: #154a9c; }
.snap-take input[type=file] { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.snap-or { margin: 0; text-align: center; color: var(--muted); font-weight: 700; }
.js .snap-up { justify-self: start; }
.loc-cam { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid #cfd8e6; background: #fff; color: #1957b8; text-decoration: none; flex: 0 0 auto; }
.loc-cam:hover { background: #eef4ff; }
[data-theme=dark] .loc-cam { background: transparent; border-color: #3a4a63; color: #9cc0ff; }
.gl-cam { display: inline-flex; align-items: center; margin-left: 6px; color: #1957b8; vertical-align: middle; }
.crud-name .crud-dl { margin-left: 6px; vertical-align: middle; }

/* v384: Camera - the numbers read from the picture */
.scan-status { margin: 0; font-weight: 700; }
.scan-status.ok { color: #15803d; } .scan-status.bad { color: #b45309; }
.scan-preview { max-width: 100%; max-height: 260px; border-radius: 8px; border: 1px solid var(--line); justify-self: start; }
.scan-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.scan-fields > p { grid-column: 1 / -1; margin: 0; }
.scan-fields label { display: flex; flex-direction: column; gap: 4px; font-weight: 700; font-size: .9rem; }
.scan-fields label[hidden] { display: none; }
.scan-fields input { font-size: 1rem; padding: 9px 10px; border: 1px solid #cdd5e1; border-radius: 8px; background: var(--card); color: var(--ink); font-weight: 400; }
.scan-fields input.dl-filled { background: #f0fdf4; border-color: #86efac; }
@media (max-width: 520px) { .scan-fields { grid-template-columns: 1fr; } }

/* v386: Target / Working shown (not changed) beside the heading on a location's pages */
.loc-tag { display: inline-flex; align-items: center; padding: 3px 12px; border-radius: 999px; background: #e3f6ea; border: 1px solid #7ccc97; color: #1e7a3e; font-weight: 800; font-size: .85rem; }
[data-theme=dark] .loc-tag { background: rgba(30,158,74,.18); color: #5fd38a; border-color: rgba(124,204,151,.5); }

/* v386: talk instead of typing */
.sp-wrap { display: flex; align-items: stretch; gap: 6px; width: 100%; }
.sp-wrap > input, .sp-wrap > textarea { flex: 1 1 auto; min-width: 0; }
.sp-mic { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 38px; border: 1px solid #cdd5e1; border-radius: 8px; background: var(--card); color: #1957b8; cursor: pointer; }
.sp-mic:hover { background: #eef4ff; }
.sp-mic.is-on, .sp-all.is-on { background: #dc2626; border-color: #dc2626; color: #fff; animation: sp-pulse 1s ease-in-out infinite; }
@keyframes sp-pulse { 50% { opacity: .65; } }
.sp-bar { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.sp-all { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.sp-tip { margin: 0; flex: 1 1 300px; }

/* v387: the ? help - a highlighted circle left of each page's heading, and its window */
h1.has-help { display: flex; align-items: center; gap: 12px; }
.help-btn { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; border: 0;
    background: #f3a712; color: #1b1300; font-size: 1.05rem; font-weight: 900; line-height: 1; cursor: pointer; box-shadow: 0 0 0 4px rgba(243,167,18,.28); font-family: inherit; }
.help-btn:hover { background: #e09400; }
.help-btn:focus-visible { outline: 2px solid #1957b8; outline-offset: 2px; }
.help-dlg { width: min(640px, 94vw); border: 0; border-radius: 16px; padding: 18px 20px; background: var(--card, #fff); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.help-dlg::backdrop { background: rgba(10,20,35,.45); }
.help-head { display: flex; justify-content: space-between; align-items: center; margin: 0 0 10px; font-size: 1.15rem; }
.help-x { border: 0; background: none; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--muted); }
.help-ask { display: flex; gap: 8px; align-items: stretch; }
.help-q { flex: 1 1 auto; min-width: 0; font-size: 1rem; padding: 10px 12px; border: 1px solid #cdd5e1; border-radius: 10px; background: var(--card); color: var(--ink); }
.help-mic, .dk-voice { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.help-mic { width: 44px; border: 1px solid #cdd5e1; border-radius: 10px; background: var(--card); color: #1957b8; cursor: pointer; }
.help-mic.is-on, .dk-voice.is-on { background: #dc2626; color: #fff; border-color: #dc2626; animation: sp-pulse 1s ease-in-out infinite; }
.help-say { margin: 12px 0 8px; font-weight: 700; min-height: 1.2em; }
.help-opts { display: grid; gap: 6px; }
.help-opt { display: block; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); }
.help-opt:hover { background: #fff6d6; border-color: #f0c64a; }
.help-opt small { display: block; color: var(--muted); font-weight: 400; margin-top: 2px; }
.help-tips { margin: 12px 0 0; }
.dk-head-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.dk-voice { font-weight: 800; }

/* v388: every microphone is a round bubble with what it does next to it */
.mic-bub { display: inline-flex; align-items: center; gap: 10px; padding: 0; margin: 6px 0 0; border: 0; background: none; cursor: pointer; color: var(--ink); font: inherit; text-align: left; }
.mic-ring { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%;
    background: #1957b8; color: #fff; box-shadow: 0 0 0 4px rgba(25,87,184,.16); }
.mic-bub:hover .mic-ring { background: #154a9c; }
.mic-txt { font-weight: 700; font-size: .9rem; line-height: 1.25; }
.mic-bub.is-on .mic-ring { background: #dc2626; box-shadow: 0 0 0 4px rgba(220,38,38,.22); animation: sp-pulse 1s ease-in-out infinite; }
.mic-bub.is-on .mic-txt::after { content: " - listening…"; color: #dc2626; }
.help-mic { width: auto; border: 0; margin-top: 10px; }
.dk-voice { margin: 0; }
.sp-bar .mic-bub { margin: 0; }
.mic-bub.is-on { background: none; border-color: transparent; color: var(--ink); animation: none; }

/* v389: license camera - by "+ Add contact" and by the front / back */
.crud-th-cam { margin-left: 8px; }
.crud-th-act { white-space: nowrap; }
.dl-side-h { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-weight: 700; margin-bottom: 4px; }
/* v391: the license camera is just the icon, the same everywhere (by + Add contact, the front and the back) */
.dl-cam { display: inline-flex; align-items: center; justify-content: center; padding: 2px; border: 0; background: none; color: #1957b8; cursor: pointer; line-height: 0; text-decoration: none; vertical-align: middle; }
.dl-cam svg { width: 22px; height: 22px; }
.dl-cam:hover { color: #0f3f8a; }
[data-theme=dark] .dl-cam { color: #9cc0ff; }
.dl-box-cam { border: 2px solid #1957b8; border-radius: 12px; padding: 12px 14px; background: #f3f7ff; scroll-margin-top: calc(var(--topbar-h, 60px) + 70px); }
[data-theme=dark] .dl-box-cam { background: rgba(25,87,184,.12); }
.dl-box-cam .dl-steps { font-size: .95rem; }

/* v390: other gaming licenses on a contact */
.ol-box { border: 1px solid #d6deeb; border-radius: 12px; padding: 10px 14px; background: #f8fafd; }
[data-theme=dark] .ol-box { background: transparent; border-color: #3a4a63; }
.ol-h { font-weight: 800; margin-bottom: 4px; }
.ol-sub { font-weight: 700; font-size: .85rem; color: var(--muted); margin: 8px 0 2px; text-transform: uppercase; letter-spacing: .03em; }
.ol-list { margin: 0; padding-left: 18px; }
.ol-list li { margin: 3px 0; }
.ol-list .del-ico { vertical-align: middle; }
.ol-tag { display: inline-block; padding: 0 8px; border-radius: 999px; background: #e7eefb; color: #1957b8; font-size: .75rem; font-weight: 700; }
.ol-add { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(160px, 2fr) minmax(140px, 2fr) auto; gap: 8px; align-items: end; margin-top: 10px; }
.ol-add label { display: flex; flex-direction: column; font-weight: 700; font-size: .85rem; }
.ol-add-btn { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.ol-add-btn .perm-plus { width: 18px; height: 18px; }
@media (max-width: 700px) { .ol-add { grid-template-columns: 1fr; } }

/* v391: "On any other gaming license?" - smaller dropdown with Check liquor licenses to its right */
.crud-q-row { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.crud-q-row label { flex: 0 1 auto; }
.crud-q-row select { width: 7em; min-width: 0; }
.ol-liq-btn { white-space: nowrap; margin-bottom: 2px; }

/* v392: contact form - other gaming licenses in the left half, the driver's license in the right half */
.crud-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.crud-split-l { display: grid; gap: 12px; }
.crud-split .ol-add { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.crud-split .ol-add label:nth-child(3) { grid-column: 1 / -1; }
.crud-split .ol-add-btn { justify-self: start; }
.crud-split .dl-box { margin: 0; }
@media (max-width: 900px) { .crud-split { grid-template-columns: 1fr; } }

/* v392: every check box on the site is a slide switch, the same as Decision maker on Contacts
   (the ones already drawn as switches - .toggle, .tua-sw-in, .gl-target-in, .pr-seg - keep their own; data-no-switch opts out) */
input[type=checkbox]:not(.toggle input):not(.tua-sw-in):not(.gl-target-in):not(.pr-seg input):not([data-no-switch]) {
    -webkit-appearance: none; appearance: none; position: relative; display: inline-block; flex: 0 0 auto;
    width: 44px; min-width: 44px; height: 24px; margin: 0 6px 0 0; padding: 0; border: 0; border-radius: 999px;
    background: #c5cedb; cursor: pointer; vertical-align: middle; transition: background .15s; box-shadow: none; outline: none;
}
input[type=checkbox]:not(.toggle input):not(.tua-sw-in):not(.gl-target-in):not(.pr-seg input):not([data-no-switch])::before {
    content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s;
}
input[type=checkbox]:not(.toggle input):not(.tua-sw-in):not(.gl-target-in):not(.pr-seg input):not([data-no-switch]):checked { background: #16a34a; }
input[type=checkbox]:not(.toggle input):not(.tua-sw-in):not(.gl-target-in):not(.pr-seg input):not([data-no-switch]):checked::before { transform: translateX(20px); }
input[type=checkbox]:not(.toggle input):not(.tua-sw-in):not(.gl-target-in):not(.pr-seg input):not([data-no-switch]):focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
input[type=checkbox]:not(.toggle input):not(.tua-sw-in):not(.gl-target-in):not(.pr-seg input):not([data-no-switch]):disabled { opacity: .5; cursor: not-allowed; }
[data-theme=dark] input[type=checkbox]:not(.toggle input):not(.tua-sw-in):not(.gl-target-in):not(.pr-seg input):not([data-no-switch]):not(:checked) { background: #4b5a72; }
.crud-split { grid-column: 1 / -1; }
.crud-split .crud-q-row { flex-wrap: nowrap; }
.crud-split .crud-q-row label { flex: 0 1 auto; width: max-content; max-width: 70%; }
.crud-split .crud-q-row .ol-liq-btn { flex: 0 0 auto; }
/* v392: the question, with the smaller dropdown and Check liquor licenses side by side under it */
.crud-split label.crud-q-row { display: flex; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 4px; font-size: .82rem; font-weight: 600; color: var(--muted); }
.crud-q-ctl { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.crud-q-ctl select { width: 7em; }
.crud-q-ctl .ol-liq-btn { margin: 0; }
/* v393: other gaming licenses take 2 of the 3 columns, the driver's license the 3rd */
.crud-split { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.crud-split .ol-add { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 2fr) auto; }
.crud-split .ol-add label:nth-child(3) { grid-column: auto; }
.crud-split .dl-files { grid-template-columns: 1fr; }
@media (max-width: 900px) { .crud-split { grid-template-columns: 1fr; } .crud-split .ol-add { grid-template-columns: 1fr 1fr; } .crud-split .ol-add label:nth-child(3) { grid-column: 1 / -1; } }
.crud-split { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.crud-split-l { grid-column: span 2; }
@media (max-width: 900px) { .crud-split { grid-template-columns: 1fr; } .crud-split-l { grid-column: auto; } }

/* v395: other gaming licenses as small tables - IGB name, location, address, date, license, Different owner */
.ol-table { font-size: .82rem; margin: 2px 0 6px; }
.ol-table th, .ol-table td { padding: 5px 8px; vertical-align: top; }
.ol-table .nowrap { white-space: nowrap; }
.ol-table .ol-diff-th, .ol-table .ol-diff-td { text-align: center; }
.ol-table .toggle { justify-content: center; }
.ol-table tr.ol-is-diff td { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(100,116,139,.6); }
.ol-table tr.ol-is-diff td.ol-diff-td, .ol-table tr.ol-is-diff td:last-child { text-decoration: none; }
.ol-note { margin: 2px 0 0; }
/* v396: Other gaming licenses stays inside its 2 columns (no running under the driver's license) */
.crud-split-l { grid-template-columns: minmax(0, 1fr); min-width: 0; }
.crud-split-l > * { min-width: 0; }
.crud-split .ol-box { min-width: 0; overflow: hidden; }
.crud-split .ol-box .table-wrap { max-width: 100%; overflow-x: auto; }
.ol-table .ol-lic { white-space: normal; word-break: break-word; min-width: 7em; }
.ol-table td:first-child { min-width: 8em; }
/* v397: Different owner ones folded at the bottom of each list */
.ol-diff-fold { margin: 2px 0 8px; }
.ol-diff-fold > summary { font-size: .82rem; font-weight: 700; color: var(--muted); gap: 8px; }
.ol-diff-fold .perm-plus { width: 20px; height: 20px; }
.ol-diff-fold[open] > summary { margin-bottom: 4px; }

/* v404: Licensing details - Liquor | Corporate | IGB columns, then Use agreement and DOJ rows */
.lic-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 24px; align-items: start; }
.lic-col { display: flex; flex-direction: column; gap: 12px; }
.lic-col label, .lic-row label { display: flex; flex-direction: column; gap: 4px; font-size: .82rem; font-weight: 600; color: var(--muted); }
.lic-col input[type=text], .lic-col input[type=date], .lic-col select { font-size: .95rem; padding: 8px 10px; border: 1px solid #cdd5e1; border-radius: 8px; background: var(--card); color: var(--ink); font-weight: 400; }
.lic-h { margin: 4px 0 0; font-size: .8rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #1957b8; border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.lic-row-h { margin-top: 20px; }
.lic-row { margin-top: 10px; }
label.toggle.lic-switch { flex-direction: row; align-items: center; gap: 10px; color: var(--ink); font-size: .9rem; }
@media (max-width: 900px) { .lic-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .lic-cols { grid-template-columns: 1fr; } }

/* v405: Path to license - one line of steps, days between, progress bar */
.pl-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
progress.pl-bar { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 10px; border: 0; border-radius: 999px; background: #e3e8f0; overflow: hidden; margin: 6px 0 14px; color: #16a34a; }
progress.pl-bar::-webkit-progress-bar { background: #e3e8f0; border-radius: 999px; }
progress.pl-bar::-webkit-progress-value { background: #16a34a; border-radius: 999px; }
progress.pl-bar::-moz-progress-bar { background: #16a34a; border-radius: 999px; }
[data-theme=dark] progress.pl-bar, [data-theme=dark] progress.pl-bar::-webkit-progress-bar { background: #2b3648; }
.pl-scroll { overflow-x: auto; padding-bottom: 4px; }
.pl-steps { list-style: none; margin: 0; padding: 0; display: flex; align-items: flex-start; min-width: 760px; }
.pl-step { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 3px; width: 78px; text-align: center; }
.pl-step b { font-size: .82rem; }
.pl-dot { display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; border-radius: 50%; border: 2px solid #cdd5e1; background: var(--card); color: #fff; font-weight: 800; font-size: .9rem; }
.pl-step.ok .pl-dot { background: #16a34a; border-color: #16a34a; }
.pl-date { font-size: .75rem; color: var(--muted); white-space: nowrap; }
.pl-gap { flex: 1 1 0; min-width: 34px; position: relative; display: flex; flex-direction: column; align-items: center; padding-top: 0; }
.pl-line { display: block; width: 100%; height: 3px; margin-top: 13px; background: #cdd5e1; border-radius: 2px; }
.pl-gap.ok .pl-line { background: #16a34a; }
.pl-days { margin-top: 5px; font-size: .72rem; font-weight: 700; color: #1957b8; white-space: nowrap; }

/* v406: Location > Update - three columns: Location info | Sales & licensing | Timeline */
.le-3col { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.le-3col > .le-card { margin: 0; min-width: 0; }
.le-3col .le-grid, .le-3col .le-tua-row, .le-3col .le-time { grid-template-columns: minmax(0, 1fr); }
.le-3col .le-grid > *, .le-3col .le-tua-row > * { grid-column: auto; }
.le-3col .le-head { flex-wrap: wrap; gap: 8px; }
.le-3col .le-flags { flex-direction: column; align-items: stretch; gap: 10px; }
.le-3col .le-flags > * { width: 100%; }
.le-3col .le-dates { grid-template-columns: minmax(0, 1fr); display: grid; gap: 6px; }
.le-3col .le-time { gap: 6px; }
.le-3col .le-step { flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px; flex-wrap: wrap; }
.le-3col .le-step b { min-width: 70px; }
.le-3col .le-step input[type=date] { flex: 1 1 120px; min-width: 0; }
@media (max-width: 1100px) { .le-3col { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .le-3col { grid-template-columns: 1fr; } }
.le-emb-note { margin: -4px 0 16px; }

/* v409: the Main contact under the location's name on its Dashboard */
.ld-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 2px 0 6px; font-size: .95rem; }
.ld-main-lbl { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #1957b8; }
.ld-main a { text-decoration: none; }
.ld-main a:hover { text-decoration: underline; }
.note-mail { text-decoration: none; color: #1957b8; font-weight: 700; }
/* v411: contacts - the switches 2 across inside the left 2 columns; Notes full width of that part */
.crud-split-l .crud-switches { grid-column: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 2px; }
.crud-split-l > label.le-wide { grid-column: auto; display: flex; flex-direction: column; gap: 4px; font-size: .82rem; font-weight: 600; color: var(--muted); }
.crud-split-l > label.le-wide textarea { width: 100%; }
@media (max-width: 560px) { .crud-split-l .crud-switches { grid-template-columns: 1fr; } }
/* v412: the Main contact in its own bubble, below the Target / Working line */
.ld-main-bub { display: inline-flex; margin: 10px 0 0; padding: 8px 16px; border: 1px solid #d6deeb; border-radius: 999px; background: var(--card); box-shadow: 0 1px 3px rgba(0,0,0,.06); }
[data-theme=dark] .ld-main-bub { border-color: #3a4a63; }
/* v413: the agent / analyst's phone and email under the dropdown */
.lic-agent { display: block; font-weight: 600; color: var(--ink); min-height: 1em; margin-top: 2px; }
.lic-col .lic-h + label, .lic-col .lic-h { }
.lic-col > .lic-h:not(:first-child) { margin-top: 14px; }
/* v414: IGB site inspection date and "Site inspection done" on one line */
.lic-pair { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.lic-pair label.toggle.lic-switch { margin-bottom: 8px; white-space: nowrap; }

/* v415: Licensing - DOJ / Fingerprints / Application fee paid / License fee paid switches, in their own bubble at the top */
.lic-checks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 20px; }
.lic-check { display: flex; flex-direction: column; gap: 4px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.lic-check.is-on { border-color: #7ccc97; background: rgba(30,158,74,.06); }
.lic-check-h { font-weight: 800; font-size: .95rem; color: var(--ink); }
.lic-check-d { min-height: 1.2em; }
.lic-check .toggle { margin-top: 4px; }
.lic-check-s { font-size: .85rem; color: var(--muted); font-weight: 700; }
.lic-check.is-on .lic-check-s { color: #15803d; }
@media (max-width: 900px) { .lic-checks { grid-template-columns: 1fr 1fr; } }

/* v417: Licensing requirements - each switch with its date on one line; fingerprints per person */
.lic-req { grid-template-columns: minmax(0, 1fr) 150px; }
.lic-req .lic-req-date { font-size: .75rem; }
.lic-req .lic-req-date input { padding: 5px 8px; font-size: .88rem; }
.lic-fp { display: flex; flex-direction: column; gap: 8px; border-top: 1px dashed var(--line); padding-top: 8px; }
.lic-fp-h { font-weight: 800; font-size: .9rem; color: var(--ink); }
.lic-fp-row { grid-template-columns: minmax(0, 1fr) 150px auto; }
.lic-fp-rc { white-space: nowrap; margin-bottom: 8px; }
/* v417: Contacts - Fingerprints: switch, date, receipt */
.fp-box { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.fp-h { font-weight: 800; margin-bottom: 6px; }
.fp-row { display: grid; grid-template-columns: auto 160px minmax(0, 1fr); gap: 12px; align-items: end; }
.fp-row label.fp-date, .fp-row label.fp-file { display: flex; flex-direction: column; gap: 4px; font-size: .82rem; font-weight: 600; color: var(--muted); }
.fp-row label.toggle { margin-bottom: 8px; }
@media (max-width: 700px) { .fp-row, .lic-fp-row, .lic-req { grid-template-columns: 1fr; } }
/* v421: IGB agents & analysts search */
.ag-search { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.ag-search input[type=search] { flex: 1 1 260px; padding: 8px 12px; border: 1px solid #cdd5e1; border-radius: 10px; font-size: .95rem; background: var(--card); color: var(--ink); }
.ag-search select { padding: 8px 10px; border: 1px solid #cdd5e1; border-radius: 10px; background: var(--card); color: var(--ink); }
/* v422: IGB agents - the Add / Edit box */
.ag-dlg { border: 0; border-radius: 14px; padding: 18px 20px; width: min(720px, 94vw); background: var(--card); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.ag-dlg::backdrop { background: rgba(15,23,42,.45); }
.ag-dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.ag-dlg-head h2 { margin: 0; }
.ag-form label.toggle { align-self: end; margin-bottom: 8px; flex-direction: row; }
/* v423: search, type and the Active switch on one line */
.ag-search { flex-wrap: nowrap; }
.ag-search input[type=search] { flex: 1 1 auto; min-width: 140px; }
.ag-search select { flex: 0 0 auto; }
.ag-search .ag-act { flex: 0 0 auto; white-space: nowrap; }
.ag-search [data-ag-count] { flex: 0 0 auto; white-space: nowrap; }
@media (max-width: 560px) { .ag-search { flex-wrap: wrap; } }
/* v424: the Add / Edit box fits its form - no scroll bar */
.ag-dlg { width: min(860px, 96vw); max-width: 96vw; max-height: none; overflow: visible; box-sizing: border-box; }
.ag-dlg .le-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ag-dlg .le-grid input, .ag-dlg .le-grid select { width: 100%; box-sizing: border-box; min-width: 0; }
.ag-dlg .crud-btns { grid-column: 1 / -1; }
@media (max-width: 640px) { .ag-dlg .le-grid { grid-template-columns: 1fr; } .ag-dlg { max-height: 92vh; overflow-y: auto; } }
/* v425: search bar - wide search box, the type dropdown only as wide as its words, Active on the right */
.ag-search input[type=search] { flex: 1 1 auto; width: auto; min-width: 220px; }
.ag-search select { flex: 0 0 auto; width: auto !important; min-width: 0; max-width: 140px; }
.ag-search .ag-act { margin-left: auto; }
/* v427: search box about half as wide, type dropdown right next to it, "n shown" then Active on the right */
.ag-search input[type=search] { flex: 0 1 380px; min-width: 180px; }
.ag-search .ag-count { margin-left: auto; }
.ag-search .ag-act { margin-left: 0; }

/* v428: the location's link row - the page you're on in a lighter blue; links with something open in light amber with a dot */
.whoami-links a.active { background: #dbe8ff; border-color: #9dbcf0; color: #123f8c; }
[data-theme=dark] .whoami-links a.active { background: rgba(47,111,214,.28); border-color: #2f6fd6; color: #fff; }
.whoami-links a.attn { background: #fff4d6; border-color: #f2c94c; color: #7a4b00; }
.whoami-links a.attn.active { background: #dbe8ff; border-color: #f2c94c; color: #123f8c; }
.attn-dot { display: inline-block; width: 7px; height: 7px; margin-left: 6px; border-radius: 50%; background: #e8a400; vertical-align: middle; }
[data-theme=dark] .whoami-links a.attn { background: rgba(242,201,76,.18); border-color: #b8901c; color: #ffe39a; }
/* v428: Open Tasks */
.ot-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.ot-bar input[type=search] { flex: 0 1 320px; padding: 8px 12px; border: 1px solid #cdd5e1; border-radius: 10px; background: var(--card); color: var(--ink); }
.ot-bar select { width: auto; padding: 8px 10px; border: 1px solid #cdd5e1; border-radius: 10px; background: var(--card); color: var(--ink); }
.ot-late td.ot-date { color: #b42318; font-weight: 700; }
.ot-soon td.ot-date { color: #b45309; font-weight: 700; }
.ot-kind { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: .72rem; font-weight: 700; background: #e7eefb; color: #1957b8; }
.ot-kind-igb { background: #fff4d6; color: #7a4b00; } .ot-kind-marketing { background: #f3e8ff; color: #6b21a8; } .ot-kind-timeline { background: #e6f6ec; color: #15803d; }
.ot-loc-h td { background: var(--line); font-weight: 800; }
/* v429: Working */
.ot-plus { width: 34px; }
.wk-plus { border: 0; background: none; padding: 0; cursor: pointer; line-height: 0; }
.wk-plus .perm-plus { width: 22px; height: 22px; }
.ot-bar .ot-count { margin-left: auto; }
.wk-dlg { width: min(640px, 96vw); }
.wk-form .wk-open { margin-left: 12px; }
/* v430: Working - what's open, at the top of the + box */
.wk-what { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; background: rgba(25,87,184,.04); }
.wk-what-top { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.wk-what-item { font-weight: 700; }
.wk-what-detail { margin-top: 6px; white-space: pre-wrap; max-height: 200px; overflow-y: auto; font-size: .92rem; }
.wk-what-meta { margin-top: 6px; }
/* v434: Working - the search bar and the column headings stay at the top of the box; the list scrolls under them */
.wk-card { display: flex; flex-direction: column; }
.wk-card .ot-bar { position: sticky; top: calc(var(--topbar-h, 64px) + 44px); z-index: 3; background: var(--card); padding: 6px 0; margin-bottom: 8px; }
.wk-card .table-wrap { max-height: calc(100vh - var(--topbar-h, 64px) - 240px); min-height: 260px; overflow: auto; }
.wk-card thead th { position: sticky; top: 0; z-index: 2; background: var(--card); box-shadow: 0 1px 0 var(--line); }
.to-force { margin-top: 10px; }
/* v439: Working - the location and the open item as bubbles (the location's opens in place) */
.wk-loc { margin: 0; }
.wk-loc .wk-city { font-weight: 400; opacity: .8; margin-left: 2px; }
.wk-loc .lq-pop { min-width: 260px; }
.wk-loc-links a { white-space: nowrap; }
.wk-item { text-align: left; }
/* v440: Terminal operators - the one-time clean-up */
.to-onetime { margin-top: 12px; padding: 10px 14px; border: 1px dashed #e0a800; border-radius: 12px; background: #fffaeb; }
[data-theme=dark] .to-onetime { background: rgba(224,168,0,.08); }
.to-onetime ul { margin: 4px 0 6px 18px; padding: 0; }
/* v441: Working - the city inside the location bubble is plain text (not the round "?" badge) */
.lq-help summary.pr-bub .wk-city { display: inline; width: auto; height: auto; border-radius: 0; background: none; color: inherit; font-weight: 400; opacity: .8; margin-left: 4px; }
.wk-loc > summary.pr-bub { display: inline-block; }
.ot-bar select.ot-cat { max-width: 260px; }
/* v447: the city in the location bubble (a <small> now) */
.wk-loc summary .wk-city { display: inline; font-size: .9em; font-weight: 400; opacity: .8; margin-left: 4px; background: none; color: inherit; width: auto; height: auto; }
/* v448: Working - the location bubble has a little arrow at its bottom right (it opens) */
.wk-loc > summary.pr-bub { position: relative; padding-right: 24px; }
.wk-loc > summary.pr-bub::after { content: "\2197"; position: absolute; right: 7px; bottom: 2px; font-size: .78rem; font-weight: 800; line-height: 1; color: #1957b8; }
[data-theme=dark] .wk-loc > summary.pr-bub::after { color: #9cc0ff; }
.lq-help.wk-loc > summary.pr-bub { padding-right: 26px; }
/* v449: the x that closes a location's box on Working */
.wk-loc .lq-pop { padding-top: 12px; }
.wk-pop-x { position: absolute; top: 6px; right: 8px; width: 26px; height: 26px; border: 1px solid var(--line); border-radius: 50%; background: var(--card); color: var(--ink); font-size: 1.05rem; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.wk-pop-x:hover { background: #eef2f7; }
.wk-loc .lq-pop h3 { padding-right: 30px; }
/* v450: Path to license inside a Working timeline item's box */
.wk-path { margin-bottom: 12px; }
.wk-path .path-card { margin: 0; padding: 10px 12px; box-shadow: none; border: 1px solid var(--line); }
.wk-path .pl-steps { min-width: 0; }
.wk-path .pl-step { width: 62px; }
.wk-path .pl-step b { font-size: .74rem; }
.wk-path .pl-dot { width: 22px; height: 22px; font-size: .75rem; }
.wk-path .pl-line { margin-top: 10px; }
.wk-dlg { width: min(860px, 96vw); }
.wk-why { margin: -2px 0 8px; }
/* v452: Working - a timeline task's Path to license, right under it in the list */
.wk-card tbody tr:has(+ .wk-path-row) td { border-bottom: 0; }
.wk-path-row td { padding-top: 0; }
.pl-mini { max-width: 760px; }
.pl-mini progress.pl-bar { height: 6px; margin: 0 0 6px; }
.pl-mini .pl-steps { min-width: 560px; }
.pl-mini .pl-step { width: 60px; gap: 1px; }
.pl-mini .pl-step b { font-size: .7rem; }
.pl-mini .pl-dot { width: 18px; height: 18px; font-size: .65rem; border-width: 2px; }
.pl-mini .pl-line { margin-top: 8px; height: 2px; }
.pl-mini .pl-date { font-size: .66rem; }
.pl-mini .pl-days { font-size: .64rem; margin-top: 2px; }
/* v454: Working path runs the full width of the row; months and days on 2 lines */
.pl-mini { max-width: none; width: 100%; }
.pl-mini .pl-steps { min-width: 0; }
.pl-mini .pl-step { width: 58px; }
.pl-mini .pl-gap { min-width: 50px; }
.pl-days { white-space: nowrap; text-align: center; line-height: 1.15; }
/* v455: IGB Licensing header - the signed TUA beside the camera */
.loc-tua { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid #b7e0c3; background: #effaf2; color: #15803d; font-weight: 700; font-size: .85rem; text-decoration: none; white-space: nowrap; flex: 0 0 auto; }
.loc-tua small { font-weight: 600; color: #3f7a52; }
.loc-tua:hover { background: #e0f5e7; }
.loc-tua-none { border-color: #e3c58a; background: #fff8ea; color: #9a6a12; font-weight: 600; }
[data-theme=dark] .loc-tua { background: transparent; border-color: #2f6b45; color: #7fd39b; }
/* v456: the TUA icon (/icons/tua.png) wherever a signed TUA / use agreement is shown */
.tua-ico { display: inline-block; vertical-align: middle; object-fit: contain; flex: 0 0 auto; margin-right: 6px; }
.loc-tua .tua-ico { margin-right: 0; }
.tua-pdf .tua-ico { margin-right: 0; }
.dl-docs .tua-ico { margin-right: 8px; }
/* v458: the TUA icon 25% bigger - keep the rows it sits in from growing */
.dl-docs .tua-ico, .lic-h .tua-ico, .kpi-label .tua-ico, .tua-count .tua-ico, label .tua-ico { margin-top: -4px; margin-bottom: -4px; }
.loc-tua { padding-left: 8px; }
/* v459: Working - one row per location; more than one open item folds into "Multiple outstanding" */
.wk-multi summary { cursor: pointer; display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; background: #fff4d6; color: #7a4b00; border: 1px solid #f0d58a; list-style: none; }
.wk-multi summary::-webkit-details-marker { display: none; }
.wk-multi summary::after { content: '▾'; font-size: .75rem; }
.wk-multi[open] summary::after { content: '▴'; }
.wk-multi ul { list-style: none; margin: 8px 0 2px; padding: 0; display: grid; gap: 6px; }
.wk-multi li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wk-multi li .wk-plus { flex: 0 0 auto; }
.wk-late { color: #b42318; font-weight: 600; }
/* v460: Database updates > Ready for live */
.rl-title { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.rl-help .rl-pop { left: 0; right: auto; width: min(680px, 92vw); max-height: 70vh; overflow-y: auto; }
.rl-help .rl-pop::before { left: 28px; right: auto; }
.rl-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; }
.rl-acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rl-acts form { margin: 0; }
.rl-cols { grid-template-columns: 2fr 1fr; align-items: start; }
@media (max-width: 900px) { .rl-cols { grid-template-columns: 1fr; } }
.rl-sql { list-style: none; margin: 6px 0; padding: 0; display: grid; gap: 6px; }
.rl-sql li { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.rl-sql form { margin: 0; }
.rl-done summary { cursor: pointer; margin-top: 10px; }
.rl-hist-h { margin-top: 16px; }
.rl-hist { padding-left: 18px; }
/* v463: DK dashboard TUA's tile - the TUA icon twice as big (this tile only) */
.kpi-label .tua-ico.tua-ico-kpi { margin: -6px 8px -6px 0; }
.kpi-tua-lbl { display: inline-flex; align-items: center; }
/* v464: the TUA icon left of the number on the TUA's tile */
.kpi-tua-row { display: flex; align-items: center; gap: 14px; }
.kpi-tua-row .tua-ico.tua-ico-kpi { margin: 0; }
.kpi-tua-row .kpi-value { margin: 0; }
/* v465: Chat in the top bar - just a bigger icon, no bubble, no word */
.nav-chat2 { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; color: #1957b8; text-decoration: none; background: none; border: 0; }
.nav-chat2:hover { background: rgba(25, 87, 184, .08); }
.nav-chat2.active { color: #0f3f8c; background: rgba(25, 87, 184, .12); }
.nav-chat2-ico { width: 32px; height: 32px; }
[data-theme=dark] .nav-chat2 { color: #9cc0ff; }
/* v466: DK Dashboard - tiles above the search bar */
.dk-box > .dk-grid { margin-bottom: 16px; }
.dk-sel .dk-reset { flex: 0 0 auto; }
/* v467: Keep me signed in on this device */
.keep-signed { margin: 4px 0 14px; }
.rem-devs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rem-devs li { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid #e3e8f0; }
.rem-devs form { margin: 0; }
/* v473: phones - the Target / Working / Licensed / Pending / Inactive switches line up in two even columns */
@media (max-width: 700px) {
    .gl-staff { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; align-items: center; }
    .gl-staff .gl-chk { justify-self: start; }
    .gl-staff .gl-op-pick, .gl-staff .gl-staff-note { grid-column: 1 / -1; }
    .gl-staff .gl-count { justify-self: start; }
    .gl-staff .gl-add { justify-self: end; }
}
/* v474: phones - a location's Target and Working switches side by side on one line */
.gl-switch-row.gl-sw-pair { justify-content: flex-start; gap: 28px; flex-wrap: wrap; align-items: center; margin-top: 6px; }
.gl-sw-pair > * { margin: 0 !important; }
/* v475: phones (the app) - month and amount stacked (month over the $), Show $ beside them,
   and the whole thing moved up beside the location type / T.O. so each location takes less height */
@media (max-width: 640px) {
    table.gaming-list tbody tr:has(> td.gl-earned) { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; align-items: start; }
    table.gaming-list tbody tr:has(> td.gl-earned) > td { grid-column: 1 / -1; }
    table.gaming-list tbody tr:has(> td.gl-earned) > td.gl-type { grid-column: 1; min-width: 0; }
    table.gaming-list tbody tr:has(> td.gl-earned) > td.gl-earned { grid-column: 2; align-self: center; }
    table.gaming-list tbody tr:has(> td.gl-type) > td.gl-earned { grid-row: span 1; }
    table.gaming-list td.gl-addr:not(:empty)::after { content: none; }   /* no stray comma line */
    table.gaming-list td.gl-earned { display: grid !important; grid-template-columns: auto auto; grid-template-areas: "btn month" "btn amt";
        column-gap: 8px; row-gap: 0; align-items: center; justify-content: end; text-align: right; width: auto !important; }
    table.gaming-list td.gl-earned .gl-month-line { display: contents; }
    table.gaming-list td.gl-earned .gl-month, table.gaming-list td.gl-earned .gl-pend-bubble { grid-area: month; justify-self: end; font-size: .85rem; line-height: 1.2; }
    table.gaming-list td.gl-earned .gl-amount { grid-area: amt; justify-self: end; line-height: 1.2; }
    table.gaming-list td.gl-earned .gl-show-btn { grid-area: btn; padding: 3px 8px 4px; }
}
/* v476: phones - nothing wider than the screen, so the page never slides sideways.
   The month-by-month earnings (Show $) scroll inside their own green box instead of moving the page. */
@media (max-width: 640px) {
    .gl-top, .gl-top-stack { flex-wrap: wrap; max-width: 100%; }
    .pager, .gl-pager-top { flex-wrap: wrap; gap: 8px 12px; justify-content: flex-start; max-width: 100%; }
    .gl-pager-top #g-pageinfo { flex: 1 1 100%; order: 3; }
    .gl-op-pick { min-width: 0; max-width: 100%; }
    .gl-op-pick select { min-width: 0; width: 100%; max-width: 100%; }
    table.gaming-list, table.gaming-list tbody, table.gaming-list tr, table.gaming-list td { max-width: 100%; min-width: 0; }
    table.gaming-list td { overflow-wrap: anywhere; }
    table.gaming-list td.gl-type select { max-width: 100%; }
    .gh-box { max-width: calc(100vw - 32px); overflow-x: auto; -webkit-overflow-scrolling: touch; }
    table.gaming-list tbody tr.gh-row, table.gaming-list tbody tr.gh-row > td { max-width: 100%; overflow: hidden; }
    .table-wrap:has(table.gaming-list) { overflow-x: visible; max-width: 100%; }
}
/* v477: the app is installed on this device - no "Install App" in the top bar */
html.app-is-installed .app-get-btn, html.app-is-installed [data-app-get] { display: none !important; }
/* v478: phones - "+ Add contact" (and the license camera) above the list, since the list's header is hidden there */
.crud-add-mobile { display: none; }
@media (max-width: 640px) {
    .crud-add-mobile { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 10px; }
    .crud-add-mobile .btn { display: inline-flex; align-items: center; gap: 6px; }
}
/* v479: Calendar - the switches above it line up in even columns on phones / narrow windows */
@media (max-width: 760px) {
    .cal-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; align-items: center; }
    .cal-filters label { white-space: normal; justify-self: start; }
    .cal-filters .btn { grid-column: 1 / -1; justify-self: start; }
}
@media (min-width: 761px) and (max-width: 1100px) {
    .cal-filters { display: grid; grid-template-columns: repeat(4, minmax(0, max-content)); gap: 8px 22px; }
}
/* v480: Notes - Edit opens under the note */
.note-edit { display: inline-block; }
.note-edit > summary { list-style: none; cursor: pointer; }
.note-edit > summary::-webkit-details-marker { display: none; }
.note-edit[open] { display: block; flex-basis: 100%; width: 100%; order: 99; margin-top: 8px; }
.note-edit-form { display: grid; gap: 10px; margin-top: 8px; padding: 12px; border: 1px solid #dbe3ef; border-radius: 10px; background: rgba(25,87,184,.03); }
.note-edit-form label { display: grid; gap: 4px; font-size: .85rem; font-weight: 600; }
.note-edit-form label.toggle { display: inline-flex; }
.note-edit-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: end; }
.note-edit-row > label { flex: 1 1 180px; }
.note-edit-row > label.toggle { flex: 0 0 auto; }
.note-act { flex-wrap: wrap; align-items: center; }
/* v481: Dashboard > Tools */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-bottom: 24px; }
.tool-card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; padding: 16px 18px; transition: box-shadow .15s, transform .15s; }
.tool-card:hover { box-shadow: 0 6px 18px rgba(15, 40, 80, .12); transform: translateY(-1px); }
.tool-card b { display: inline-flex; align-items: center; gap: 6px; font-size: 1rem; color: #1957b8; }
/* v482: the Dashboard row's links wrap instead of being cut off (Tools was hidden past the edge) */
.whoami-links { flex-wrap: wrap; overflow: visible; min-width: 0; row-gap: 4px; }
/* v485: Tools in a location's row - just a wrench, no bubble until you're on Tools */
.whoami-links a.wl-tools { display: inline-flex; align-items: center; justify-content: center; padding: 4px 8px; background: none; border-color: transparent; color: #1957b8; }
.whoami-links a.wl-tools:hover { background: #dfe8f6; }
.whoami-links a.wl-tools.active { background: #dbe8ff; border-color: #9dbcf0; color: #123f8c; }
[data-theme=dark] .whoami-links a.wl-tools { color: #9cc0ff; }
.whoami-links a.wl-tools svg { width: 20px; height: 20px; }
/* v486: a location's Tools - four action bubbles, the worksheet full width under them */
.lt-bubbles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0 0 16px; }
@media (max-width: 1000px) { .lt-bubbles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .lt-bubbles { grid-template-columns: 1fr; } }
.lt-bubble { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; min-height: 112px; border: 1px solid #dbe3ef; }
.lt-bubble.is-set { border-color: #b7e0c3; background: #f6fcf8; }
.lt-bubble.is-open { border-color: #1957b8; box-shadow: 0 0 0 2px rgba(25, 87, 184, .18); }
.lt-b-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lt-b-head b { font-size: 1rem; color: #12305e; }
.lt-plus { display: inline-flex; flex: 0 0 auto; }
.lt-b-sum { font-weight: 700; color: #15803d; }
.lt-bubble:not(.is-set) .lt-b-sum { color: #8a6a12; }
.lt-sheet { margin-bottom: 18px; }
.lt-form { display: grid; gap: 14px; }
.lt-form label { display: grid; gap: 4px; font-size: .85rem; font-weight: 600; }
.lt-form label.toggle { display: inline-flex; }
.lt-form label.lt-radio { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.lt-wide { max-width: 760px; }
.lt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 14px; margin: 6px 0 4px; }
.lt-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.lt-step { border: 1px solid #e3e8f0; border-radius: 10px; padding: 12px 14px; }
.lt-step.done { background: #f3fbf5; border-color: #b7e0c3; }
.lt-step-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 6px; }
.lt-step-row { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: end; margin-top: 8px; }
.lt-step-row .lt-date { flex: 0 0 170px; }
.lt-step-row .lt-notes { flex: 1 1 260px; }
.lt-forms { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 6px 0; }
.lt-docs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 8px 18px; }
.lt-docs li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 10px; border-radius: 8px; border: 1px solid #e3e8f0; }
.lt-docs li.have { background: #f3fbf5; border-color: #b7e0c3; }
.lt-docs li.miss { background: #fff8ea; border-color: #f0d58a; }
.lt-docs li.off { opacity: .6; }
.lt-doc-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.lt-missing { color: #9a6a12; font-weight: 600; }
.lt-alerts td { vertical-align: middle; }
.lt-more-h { margin: 18px 0 8px; }
.lt-more { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.lt-more-link { padding: 5px 12px; border: 1px solid #d5deea; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .88rem; color: #24344f; background: #fff; }
.lt-more-link:hover { background: #eef4ff; }
.cal-l-alert { --k: #be185d; }
.cal-item.cal-alert { --k: #be185d; }
.lt-docs { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); }
.lt-docs li { flex-wrap: wrap; min-width: 0; }
.lt-doc-link { white-space: nowrap; }
/* v490: the open location in the top bar - a plain link (no drop-down) */
.topnav a.nav-dkloc-plain { background: #fff4d6; border-color: #f0d58a; color: #7a4b00; }
.topnav a.nav-dkloc-plain .dkloc-name { width: auto; max-width: 16ch; text-overflow: ellipsis; }
/* v491: Documents for the agent > Email to the agent */
.lt-mail { margin-top: 18px; padding-top: 16px; border-top: 1px solid #e3e8f0; }
.lt-mail-h { margin: 0; }
.lt-mail-grid .lt-wide2 { grid-column: 1 / -1; max-width: 760px; }
.lt-noagent { font-weight: 500; color: #9a6a12; padding: 8px 0; }
.lt-att-head { display: flex; align-items: center; gap: 10px; }
.lt-att { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 6px 18px; }
.lt-att li { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border: 1px solid #e3e8f0; border-radius: 8px; }
.lt-att .lt-att-item { display: inline-flex !important; align-items: center; gap: 6px; flex: 1 1 auto; font-weight: 600; cursor: pointer; }
/* v492: Docs - files still on dkgaming.llc */
.dl-fetchold { margin: 0 0 10px; }
a.doc-old { opacity: .85; }
/* v493: Lease wizard - 1 page / 8 page lease */
.lt-disclaimer { padding: 10px 14px; border-radius: 10px; background: #fff4e5; border: 1px solid #f2c27a; color: #6b3d00; font-size: .9rem; margin: 6px 0 10px; }
.lt-lease-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; margin: 4px 0 10px; }
.lt-form label.lt-lease-opt { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid #dbe3ef; border-radius: 10px; cursor: pointer; font-weight: 500; }
.lt-lease-opt:has(input:checked) { border-color: #1957b8; background: #eef4ff; }
.lt-lease-opt input { margin-top: 3px; }
.lt-lease-opt > span { display: flex; flex-direction: column; gap: 2px; }
.lt-lease-title { font-weight: 800; font-size: 1rem; color: #1957b8; }
.lt-agree { margin-top: 2px; }
.lt-sub { margin: 12px 0 2px; font-size: .85rem; text-transform: uppercase; letter-spacing: .4px; color: #4a5a72; }
.lt-lease-fields[hidden], .lt-pickfirst[hidden] { display: none !important; }
/* v494: a location's pages in the row under the top bar - each in a light bubble so it reads as a link (the page you're on stays the blue one) */
.whoami-links.whoami-loc a:not(.wl-tools) { border: 1px solid #cfd8e6; background: #fff; }
.whoami-links.whoami-loc a:not(.wl-tools):hover { background: #eef4ff; border-color: #9dbcf0; }
.whoami-links.whoami-loc a.active:not(.wl-tools) { background: #dbe8ff; border-color: #9dbcf0; color: #123f8c; }
.whoami-links.whoami-loc a.attn:not(.active) { background: #fff4d6; border-color: #f0d58a; }
.whoami-links.whoami-loc { gap: 6px; }
[data-theme=dark] .whoami-links.whoami-loc a:not(.wl-tools) { background: transparent; border-color: #3a4a63; }
/* v496: Locations - the "?" on the same row as Reset search / Previous / Next, and less space above */
.gl-bar:has(.gl-top[data-help-slot]) { margin-top: 0; }
.gl-top[data-help-slot] { width: 100%; margin-left: 0; justify-content: flex-end; }
.gl-top[data-help-slot] .help-in-slot { margin-right: auto; }
.gaming-list-wrap:has([data-help-slot]) { margin-top: -14px; }
/* v499: the open location in the top bar - a gold bubble with up to 26 letters of its name */
.topnav a.nav-dkloc-plain { display: inline-flex; align-items: center; padding: 6px 14px; border: 1px solid #f0d58a; border-radius: 999px; font-weight: 700; }
.topnav a.nav-dkloc-plain .dkloc-name { width: auto; max-width: 26ch; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
/* v501: assign / add the location's IGB agent */
.lt-agent-form [hidden] { display: none !important; }
.lt-agent-form .lt-noagent { color: #9a6a12; }
/* v502: Locations opened from the Dashboard's Live Locations */
.gl-live-note { margin: 0 0 8px; padding: 6px 12px; border-radius: 8px; background: #e6f6ec; border: 1px solid #b7e0c3; color: #14532d; }
/* v509: location dashboard - "+ Daily numbers" opens / closes the daily numbers */
.ld-daily { margin: 0 0 18px; }
.ld-daily > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; border: 1px solid #cfd8e6; background: #fff; font-weight: 700; color: #12305e; margin: 0 0 10px; }
.ld-daily > summary::-webkit-details-marker { display: none; }
.ld-daily > summary:hover { background: #eef4ff; }
.ld-daily[open] > summary .perm-plus::before { content: "\2212"; }   /* + becomes - */
[data-theme=dark] .ld-daily > summary { background: transparent; border-color: #3a4a63; color: #cfe0ff; }
/* v510: License alerts - who gets them */
.lt-to .lt-att-item { align-items: flex-start; }
.lt-to .lt-att-item input { margin-top: 3px; }
.lt-owner { display: inline-block; margin-left: 6px; padding: 0 8px; border-radius: 999px; background: #e6f6ec; color: #15803d; font-size: .75rem; font-weight: 700; }
/* v511: Duplicate locations - the message right under the Merge button */
.dup-near-msg { display: inline-block; margin-left: 12px; font-weight: 600; font-size: .9rem; }
.dup-near-msg.ok { color: #15803d; } .dup-near-msg.err { color: #b42318; }
/* v512: a location name that opens the location - same outlined bubble as the location links in the top bar */
a.loc-link { display: inline-block; padding: 2px 10px; margin: 2px 0; border: 1px solid #cfd8e6; border-radius: 999px; background: #fff; color: #123f8c; font-size: .88rem; font-weight: 600; text-decoration: none; line-height: 1.5; max-width: 100%; overflow-wrap: anywhere; }
a.loc-link:hover, a.loc-link:focus-visible { background: #eef4ff; border-color: #9dbcf0; text-decoration: none; }
[data-theme=dark] a.loc-link { background: transparent; border-color: #3a4a63; color: #9cc0ff; }
[data-theme=dark] a.loc-link:hover { background: #1c2a40; }
/* v513: Chat - the word "Chat" inside a speech bubble, next to Calendar */
.topnav a.nav-chat3 { position: relative; display: inline-flex; align-items: flex-start; justify-content: center; width: 64px; height: 36px; padding: 0; margin: 0 2px; color: #1957b8; text-decoration: none; background: none; border: 0; box-shadow: none; align-self: center; }
.nav-chat3-ico { position: absolute; inset: 0; width: 64px; height: 36px; }
.nav-chat3-txt { position: relative; line-height: 32px; font-size: .9rem; font-weight: 700; letter-spacing: .02em; }
.topnav a.nav-chat3:hover, .topnav a.nav-chat3:focus-visible { color: #f3a712; background: none; }
.topnav a.nav-chat3.active { color: #0f3f8c; background: none; }
.topnav a.nav-chat3.active .nav-chat3-ico path { fill: rgba(25, 87, 184, .12); }
.topnav a.nav-chat3:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; border-radius: 8px; }
[data-theme=dark] .topnav a.nav-chat3 { color: #9cc0ff; }
/* v515: "Add to my expenses" on a note */
.note-exp { margin-top: 4px; }
/* v516: location Notes / Tasks - "+ All notes" across both columns, filters, 10 at a time */
.notes-all { padding: 14px 20px; margin-bottom: 18px; }
.notes-all-d > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1rem; text-transform: uppercase; letter-spacing: .03em; padding: 6px 14px 6px 6px; border: 1px solid #cfd8e6; border-radius: 999px; background: #fff; color: #123f8c; }
.notes-all-d > summary::-webkit-details-marker { display: none; }
.notes-all-d > summary:hover { background: #eef4ff; border-color: #9dbcf0; }
.notes-plus { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: #1957b8; color: #fff; font-size: 1.1rem; line-height: 1; transition: transform .15s; }
.notes-all-d[open] > summary .notes-plus { transform: rotate(45deg); }
.notes-filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; margin: 14px 0 10px; padding: 12px; border: 1px solid #e3e9f2; border-radius: 12px; background: #f8fafd; }
.notes-filter label:not(.toggle) { display: flex; flex-direction: column; gap: 3px; font-size: .85rem; font-weight: 600; }
.notes-filter input[type=search] { min-width: 220px; }
.notes-filter .notes-open-sw { align-self: center; margin-top: 18px; }
.notes-all-list.is-loading { opacity: .5; }
.notes-pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 6px 0 4px; }
.notes-all-err { color: #b42318; }
[data-theme=dark] .notes-all-d > summary { background: transparent; border-color: #3a4a63; color: #9cc0ff; }
[data-theme=dark] .notes-filter { background: transparent; border-color: #3a4a63; }
@media (max-width: 640px) { .notes-filter input[type=search] { min-width: 0; width: 100%; } .notes-filter label:not(.toggle) { flex: 1 1 140px; } }
/* v517: Edit a note - Follow up on always to the right of Note about */
.note-edit-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: end; }
.note-edit-pair > label { min-width: 0; }
.note-edit-pair select, .note-edit-pair input[type=date] { width: 100%; min-width: 0; box-sizing: border-box; }
/* v519: Calendar - Month Week Day [list] Tasks Follow Ups [Only mine] on one row; no switches under the month / year */
.cal-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.cal-tabs .cal-tab-list { display: inline-flex; align-items: center; justify-content: center; padding-left: 10px; padding-right: 10px; }
.cal-tabs .cal-tab-list svg circle { fill: currentColor; stroke: none; }
.cal-mine-form { display: inline-flex; align-items: center; margin: 0 0 0 10px; }
.cal-mine-sw { font-size: .88rem; white-space: nowrap; }
.cal-card .cal-bar { margin-bottom: 8px; }
/* v521: Calendar list view - filter pills (Everything, Tasks, Follow-ups, Appointments ...) */
.cal-listf { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: -4px 0 12px; }
.cal-listf-pill { display: inline-block; padding: 4px 12px; border: 1px solid #cfd8e6; border-radius: 999px; background: #fff; color: #123f8c; font-size: .86rem; font-weight: 600; text-decoration: none; }
.cal-listf-pill:hover { background: #eef4ff; border-color: #9dbcf0; text-decoration: none; }
.cal-listf-pill.active { background: #1957b8; border-color: #1957b8; color: #fff; }
[data-theme=dark] .cal-listf-pill { background: transparent; border-color: #3a4a63; color: #9cc0ff; }
[data-theme=dark] .cal-listf-pill.active { background: #2f6fd6; border-color: #2f6fd6; color: #fff; }
/* v522: Admin > Analyze activity */
.act-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 16px; margin-bottom: 14px; }
.act-filters label { display: flex; flex-direction: column; gap: 3px; font-size: .85rem; font-weight: 600; }
.act-filters select { max-width: 320px; }
.act-periods { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; flex-basis: 100%; }
.act-per, .act-mlabel, .act-mnav { padding: 5px 13px; border: 1px solid #cfd8e6; border-radius: 999px; background: #fff; color: #123f8c; font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; }
.act-per:hover, .act-mlabel:hover, .act-mnav:hover:not(:disabled) { background: #eef4ff; border-color: #9dbcf0; }
.act-per.active, .act-month.active .act-mlabel { background: #1957b8; border-color: #1957b8; color: #fff; }
.act-month { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; }
.act-mnav { padding: 5px 10px; }
.act-mnav:disabled { opacity: .35; cursor: default; }
.act-results.is-loading { opacity: .5; }
.act-period { margin: 0 0 10px; }
.act-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.act-tile { border: 1px solid #e3e9f2; border-radius: 12px; padding: 10px 14px; background: #f8fafd; }
.act-tile b { display: block; font-size: 1.5rem; color: #123f8c; }
.act-tile span { font-size: .82rem; color: #5b6b82; font-weight: 600; }
.act-cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }
.act-cols section { min-width: 0; }
.act-h { font-size: 1rem; text-transform: uppercase; letter-spacing: .03em; margin: 0 0 8px; }
.act-table td { vertical-align: top; }
.act-table td.num, .act-table th.num { text-align: right; }
.act-pick { background: none; border: 0; padding: 0; font: inherit; color: #1957b8; font-weight: 600; text-align: left; cursor: pointer; }
.act-pick:hover { text-decoration: underline; }
.act-table tr.is-sel td { background: #eef4ff; }
.act-bar { display: block; height: 4px; margin-top: 4px; border-radius: 2px; background: #9dbcf0; width: 0; }
.act-more { margin-top: 14px; }
.act-more > summary { cursor: pointer; font-weight: 700; }
[data-theme=dark] .act-per, [data-theme=dark] .act-mlabel, [data-theme=dark] .act-mnav { background: transparent; border-color: #3a4a63; color: #9cc0ff; }
[data-theme=dark] .act-per.active, [data-theme=dark] .act-month.active .act-mlabel { background: #2f6fd6; color: #fff; }
[data-theme=dark] .act-tile { background: transparent; border-color: #3a4a63; }
[data-theme=dark] .act-tile b { color: #9cc0ff; }
@media (max-width: 900px) { .act-cols { grid-template-columns: 1fr; } .act-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* v525: Analyze activity - pick a top-bar link, then its page */
.act-filters .act-grp { min-width: 170px; }
.act-filters .act-sub[hidden] { display: none; }
/* v527: Analyze activity - 25 rows, then "Show all"; the Sign-ins tile opens the sign-ins */
.act-showall { margin-top: 8px; }
.act-table tr[hidden] { display: none; }
.act-tile-btn { font: inherit; text-align: left; cursor: pointer; }
.act-tile-btn:hover { border-color: #9dbcf0; background: #eef4ff; }
[data-theme=dark] .act-tile-btn:hover { background: #1c2a40; }
/* v528: Chat - on the Chat page only the bubble itself is lit; no box / underline around it */
html .topnav a.nav-chat3:not(.btn).active,
html[data-theme] .topnav a.nav-chat3:not(.btn).active,
html .topnav a.nav-chat3:not(.btn):hover { background: none; box-shadow: none; border: 0; outline: 0; }
html[data-theme] .topnav a.nav-chat3:not(.btn).active { color: #0f3f8c; }
html[data-theme=dark] .topnav a.nav-chat3:not(.btn).active { color: #9cc0ff; }
html .topnav a.nav-chat3:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; border-radius: 8px; }
/* v529: Analyze activity - Pages and Users each full width (one under the other) */
.act-cols { grid-template-columns: 1fr; gap: 22px; }
.act-filters input[list] { min-width: 240px; }
/* v530: Analyze activity - Details (devices, app or website, browsers, came from, cities, searches) */
.act-det-h { margin-top: 22px; }
.act-det { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.act-det-box { border: 1px solid #e3e9f2; border-radius: 12px; padding: 10px 14px; background: #fbfcfe; min-width: 0; }
.act-det-box h3 { margin: 0 0 6px; font-size: .9rem; text-transform: uppercase; letter-spacing: .03em; color: #123f8c; }
.act-det-list { list-style: none; margin: 0; padding: 0; }
.act-det-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 4px 0; border-bottom: 1px solid #eef2f7; font-size: .88rem; }
.act-det-list li:last-child { border-bottom: 0; }
.act-det-k { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act-det-n { font-weight: 700; text-align: right; white-space: nowrap; }
.act-det-n small { color: #5b6b82; font-weight: 600; }
.act-det-list .act-bar { grid-column: 1 / -1; margin-top: 0; }
.act-det-note { margin-top: 16px; }
[data-theme=dark] .act-det-box { background: transparent; border-color: #3a4a63; }
[data-theme=dark] .act-det-box h3 { color: #9cc0ff; }
[data-theme=dark] .act-det-list li { border-color: #2a3850; }
@media (max-width: 1000px) { .act-det { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .act-det { grid-template-columns: 1fr; } }
.act-tiles { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
/* v536: Super admin - the gear is a link to the Super admin dashboard, the arrow next to it opens the list */
.nav-gear .nav-gear-link { display: inline-flex; align-items: center; color: inherit; text-decoration: none; }
.nav-gear .nav-gear-link:hover, .nav-gear .nav-gear-link:focus-visible { color: #f3a712; }
[data-theme=light] .nav-gear .nav-gear-link:hover { color: #c98500; }
.nav-gear .nav-gear-link:hover svg.nav-gear-icon { transform: rotate(30deg); }
.nav-gear .nav-gear-caret { padding: 0 2px; min-width: 18px; }
.nav-gear .nav-gear-caret svg { width: 14px; height: 14px; }
/* v537: Super admin dashboard - action links in bubbles, stuck under the top bar */
.sa-nav { position: sticky; top: var(--topbar-h, 64px); z-index: 8; display: flex; flex-wrap: wrap; gap: 6px 8px; padding: 10px 0; margin: -6px 0 14px; background: var(--bg, #f5f7fb); border-bottom: 1px solid #e3e9f2; }
.sa-pill { display: inline-block; padding: 5px 14px; border: 1px solid #cfd8e6; border-radius: 999px; background: #fff; color: #123f8c; font-size: .9rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.sa-pill:hover, .sa-pill:focus-visible { background: #eef4ff; border-color: #9dbcf0; text-decoration: none; }
[data-theme=dark] .sa-nav { background: var(--bg, #0b1626); border-color: #2a3850; }
[data-theme=dark] .sa-pill { background: transparent; border-color: #3a4a63; color: #9cc0ff; }
[data-theme=dark] .sa-pill:hover { background: #1c2a40; }
/* v538: the Super admin action links on each of their pages - the page you're on is lit */
.sa-pill.active { background: #1957b8; border-color: #1957b8; color: #fff; }
.sa-pill.sa-home { font-weight: 800; }
[data-theme=dark] .sa-pill.active { background: #2f6fd6; border-color: #2f6fd6; color: #fff; }
main > .sa-nav { margin-top: 0; }
/* v540: the "?" help opens with what the page you're on is for */
.help-here { margin: 10px 0 6px; padding: 10px 12px; border-radius: 10px; background: #eef4ff; border: 1px solid #cfdcf3; }
.help-here-t { display: block; color: #123f8c; margin-bottom: 4px; }
.help-here-say { margin: 0; font-size: .92rem; line-height: 1.45; }
[data-theme=dark] .help-here { background: #16233a; border-color: #2f4466; }
[data-theme=dark] .help-here-t { color: #9cc0ff; }
/* v542: Types of users, and each person's own switches on Web Permissions */
.ut-types { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 0 0 14px; }
.ut-card { margin-bottom: 16px; }
.ut-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ut-head h2 { margin: 0 0 8px; }
.ut-desc { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.ut-desc label { flex: 1 1 420px; display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: .9rem; }
.ut-desc textarea { width: 100%; box-sizing: border-box; }
.ut-sub { margin: 16px 0 6px; font-size: .95rem; text-transform: uppercase; letter-spacing: .03em; color: #123f8c; }
.ut-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 26px; }
.ut-grid > .ut-sub { grid-column: 1 / -1; }
.ut-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid #eef2f7; }
.ut-row > div:first-child { min-width: 0; }
.ut-row .toggle-form { flex: none; }
.ut-row.is-custom { background: linear-gradient(90deg, rgba(25,87,184,.06), transparent); }
.pp-ctl { display: flex; align-items: center; gap: 8px; flex: none; }
.pp-tag { display: inline-block; padding: 0 7px; border-radius: 999px; font-size: .72rem; font-weight: 700; background: #eef1f5; color: #5b6b82; vertical-align: middle; }
.pp-tag.pp-custom { background: #1957b8; color: #fff; }
.pp-def { white-space: nowrap; }
.pp-reset { padding: 2px 10px; }
[data-theme=dark] .ut-sub { color: #9cc0ff; }
[data-theme=dark] .ut-row { border-color: #2a3850; }
[data-theme=dark] .pp-tag { background: #23324a; color: #b8c6dc; }
@media (max-width: 900px) { .ut-grid { grid-template-columns: 1fr; } }
/* v543: Type of permission - a + next to each type opens its permissions in a bubble below */
.ptype-line { display: flex; align-items: center; gap: 8px; }
.ptype-line .ptype-opt { flex: 1 1 auto; }
.ptype-plus { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1px solid #9dbcf0; background: #fff; color: #1957b8; font: 700 1rem/1 inherit; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.ptype-plus:hover, .ptype-plus.is-open { background: #1957b8; color: #fff; border-color: #1957b8; }
.ptype-defs { border: 2px solid #9dbcf0; background: #f8fbff; }
.ptype-defs .ut-card { box-shadow: none; border: 0; padding: 0; background: transparent; margin-bottom: 10px; }
[data-theme=dark] .ptype-plus { background: transparent; color: #9cc0ff; border-color: #3a4a63; }
[data-theme=dark] .ptype-defs { background: #121d30; border-color: #2f4466; }
/* v544: the + sits to the left of its switch, a little space between */
.ptype-line { gap: 10px; }
.ptype-line .ptype-plus { order: 0; }
/* v547: Type of permission - a heading over each column (Location views, Staff views, Management view) */
.ptype-colh { margin: 0 0 2px; font-size: .82rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #5b6b82; border-bottom: 1px solid #e3e9f2; padding-bottom: 4px; }
[data-theme=dark] .ptype-colh { color: #9fb0c8; border-color: #2a3850; }
/* v548: "Setting permissions for ..." bubble right under the Name or email search, with Clear inside it */
.pall-for-under { margin: 10px 0 4px; }
.pall-for-under .perm-for { border-radius: 999px; padding: 6px 8px 6px 16px; }
.pall-for-under .perm-for > span:first-child { flex: 1 1 auto; }
.pall-for-under .perm-active { margin-left: auto; }
.pall-for-under .pall-clear { border-radius: 999px; }
/* v551: the blue - circle on the open bubble (closes it), next to its heading */
.ptype-defs .ptype-close { margin-right: 10px; vertical-align: middle; position: relative; top: -2px; }
.ptype-plus.is-open { background: #1957b8; color: #fff; border-color: #1957b8; }
/* v552: Web permissions - "+ Define permission levels" in front of the title */
.perm-title { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; }
.perm-levels-btn { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 6px; border: 1px solid #9dbcf0; border-radius: 999px; background: #fff; color: #123f8c; font: 700 .9rem/1.2 inherit; cursor: pointer; }
.perm-levels-btn:hover { background: #eef4ff; }
.perm-levels-btn .ptype-plus { pointer-events: none; }
.perm-levels .ut-types { align-items: center; }
.perm-levels .ut-types .ptype-close { margin-right: 6px; }
[data-theme=dark] .perm-levels-btn { background: transparent; border-color: #3a4a63; color: #9cc0ff; }
/* v553: Define permission levels - the same three columns, a + by each type, no switches */
.perm-levels-h { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.perm-levels .lv-name { font-weight: 600; }
.perm-levels .ptype-line { padding: 3px 0; }
#levels-defs { margin-top: -6px; }
/* v555: a level's + bubble - their navigation on top, then Included | Features they can add */
.lv-navprev { margin: 6px 0 14px; padding: 10px 12px; border-radius: 12px; background: #0b1f3a; color: #fff; }
.lv-navprev-t { display: block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #c8d6ec; margin-bottom: 8px; }
.lv-navprev-t .muted { color: #9fb0c8; text-transform: none; letter-spacing: 0; font-weight: 600; }
.lv-navbar { display: flex; flex-wrap: wrap; gap: 8px; }
.lv-navitem { display: inline-flex; flex-direction: column; padding: 5px 12px; border: 1px solid rgba(255,255,255,.35); border-radius: 10px; background: rgba(255,255,255,.06); }
.lv-navitem b { font-size: .9rem; }
.lv-navitem small { font-size: .72rem; color: #c8d6ec; }
.lv-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 26px; }
.lv-col { min-width: 0; }
.lv-col-on .ut-sub { color: #15803d; }
.lv-col-off .ut-sub { color: #5b6b82; }
@media (max-width: 900px) { .lv-cols { grid-template-columns: 1fr; } }
/* v559: Verify my location box on the Dashboard (Anyone view numbers / Location free view) */
.dash-verify { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border: 2px solid #9dbcf0; background: #f3f8ff; }
.dash-verify h2 { margin: 0 0 4px; }
.dash-verify p { margin: 0; }
[data-theme=dark] .dash-verify { background: #121d30; border-color: #2f4466; }
/* v560: a level's + bubble - what they see when they sign in: the real top bar look (DK Gaming logo) and a small dashboard */
.lv-prev { margin: 6px 0 16px; }
.lv-prev-label { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #5b6b82; margin-bottom: 6px; }
.lv-prev-label span { text-transform: none; letter-spacing: 0; font-weight: 600; }
.lv-prev-screen { border: 1px solid #cfd8e6; border-radius: 12px; overflow: hidden; box-shadow: 0 6px 18px rgba(11,31,58,.12); background: var(--bg, #f5f7fb); }
.lv-prev-top { display: flex; align-items: center; gap: 14px; padding: 8px 14px; background: url("/icons/header-graph.svg") left bottom / 100% 100% no-repeat, var(--navy, #0b1f3a); color: #fff; }
.lv-prev-logo .brand-logo { height: 30px; width: auto; display: block; }
.lv-prev-nav { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 auto; }
.lv-prev-pill { padding: 4px 11px; border: 1px solid rgba(255,255,255,.35); border-radius: 8px; font-size: .8rem; font-weight: 700; color: #fff; background: rgba(255,255,255,.05); }
.lv-prev-pill.is-on { background: rgba(245,165,36,.18); color: #ffc15c; box-shadow: inset 0 -2px 0 #f5a524; }
.lv-prev-empty { font-size: .8rem; color: #c8d6ec; }
.lv-prev-right { display: flex; align-items: center; gap: 8px; }
.lv-prev-bell, .lv-prev-me, .lv-prev-moon { display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.7); }
.lv-prev-me { background: #c8d6ec; border-color: #fff; width: 22px; height: 22px; }
.lv-prev-who { display: flex; justify-content: space-between; padding: 5px 16px; font-size: .78rem; background: #e9eef6; color: #33435c; }
.lv-prev-body { padding: 12px 16px 6px; zoom: .78; }
.lv-prev-body h1 { font-size: 1.6rem; margin: 0 0 12px; }
.lv-prev-body .card { margin-bottom: 12px; }
.lv-prev-body .dash-tile { cursor: default; }
[data-theme=dark] .lv-prev-screen { border-color: #2f4466; }
[data-theme=dark] .lv-prev-who { background: #16233a; color: #b8c6dc; }
/* v560: light mode top bar is white like the real one */
.lv-prev-top { background: #fff; color: #0b1f3a; border-bottom: 1px solid #e3e9f2; }
.lv-prev-pill { border-color: #cfd8e6; color: #0b1f3a; background: #fff; }
.lv-prev-pill.is-on { background: #fff4dc; color: #8a5a00; box-shadow: inset 0 -2px 0 #f5a524; border-color: #f0d58a; }
.lv-prev-bell, .lv-prev-moon { border-color: #33435c; }
.lv-prev-me { background: #c8d6ec; border-color: #9fb0c8; }
.lv-prev-empty { color: #5b6b82; }
[data-theme=dark] .lv-prev-top { background: url("/icons/header-graph.svg") left bottom / 100% 100% no-repeat, var(--navy, #0b1f3a); color: #fff; border-color: transparent; }
[data-theme=dark] .lv-prev-pill { border-color: rgba(255,255,255,.35); color: #fff; background: rgba(255,255,255,.05); }
[data-theme=dark] .lv-prev-pill.is-on { background: rgba(245,165,36,.18); color: #ffc15c; border-color: transparent; }
[data-theme=dark] .lv-prev-bell, [data-theme=dark] .lv-prev-moon { border-color: rgba(255,255,255,.7); }
/* v561: "View as this permission" next to the preview's title */
.lv-prev-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.lv-prev-head .lv-prev-label { margin-bottom: 0; }
/* v562: a free login's settings picture (their first letter) */
.fl-avatar { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: #1957b8; color: #fff; font-weight: 800; font-size: 1rem; }
/* v562: the preview's right side - bell, settings picture, light / dark, Install App */
.lv-prev-right { color: #0b1f3a; }
.lv-prev-ico { width: 20px; height: 20px; display: block; }
.lv-prev-moonico { padding: 3px; border: 1px solid #cfd8e6; border-radius: 50%; width: 22px; height: 22px; box-sizing: border-box; }
.lv-prev-me { width: 24px; height: 24px; border-radius: 50%; background: #c8d6ec; border: 2px solid #9fb0c8; }
.lv-prev-app { display: inline-flex; align-items: center; gap: 3px; color: #b26a00; }
.lv-prev-app b { font-size: .62rem; line-height: 1; }
[data-theme=dark] .lv-prev-right { color: #fff; }
[data-theme=dark] .lv-prev-app { color: #ffc15c; }
/* v563: My location requests on the Dashboard */
.vr-st { display: inline-block; padding: 1px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; background: #fff4dc; color: #8a5a00; }
.vr-st.vr-good { background: #dcfce7; color: #15803d; }
.vr-st.vr-bad { background: #fee2e2; color: #b42318; }
[data-theme=dark] .vr-st { background: rgba(245,165,36,.18); color: #ffc15c; }
[data-theme=dark] .vr-st.vr-good { background: rgba(34,197,94,.18); color: #86efac; }
[data-theme=dark] .vr-st.vr-bad { background: rgba(239,68,68,.18); color: #fca5a5; }
/* v564: the dashboard's buttons - the definition pops up on hover; in the preview, click to change name / definition */
.dash-tile-tip { position: relative; }
.dash-tile-tip .dash-tip { position: absolute; left: 10px; right: 10px; top: calc(100% + 6px); z-index: 20; padding: 8px 10px; border-radius: 8px; background: #0b1f3a; color: #fff; font-size: .82rem; line-height: 1.35; box-shadow: 0 8px 20px rgba(11,31,58,.25); opacity: 0; visibility: hidden; transform: translateY(-3px); transition: opacity .15s, transform .15s, visibility .15s; pointer-events: none; }
.dash-tile-tip:hover .dash-tip, .dash-tile-tip:focus-visible .dash-tip { opacity: 1; visibility: visible; transform: none; }
.lv-edit-hint { font-size: .75rem; font-weight: 600; color: #5b6b82; margin-left: 8px; }
.lv-edit-tile [contenteditable] { outline: none; border-radius: 4px; padding: 1px 3px; margin: -1px -3px; cursor: text; }
.lv-edit-tile [contenteditable]:hover { background: #eef4ff; }
.lv-edit-tile [contenteditable]:focus { background: #fff; box-shadow: 0 0 0 2px #9dbcf0; }
.lv-edit-tile .is-saving { opacity: .6; }
.lv-edit-tile .is-saved { box-shadow: 0 0 0 2px #22c55e; }
.lv-edit-tile .is-err { box-shadow: 0 0 0 2px #ef4444; }
/* v571: Contact us (signed in) - only the form; requests already made say "In process" */
.contact-only-head { padding-top: 22px; }
.contact-only-head h1 { margin: 0 0 4px; }
.lead-inproc { display: inline-block; margin-left: 8px; padding: 1px 9px; border-radius: 999px; background: #fff4dc; color: #8a5a00; border: 1px solid #f0d58a; font-size: .74rem; font-weight: 800; vertical-align: middle; }
[data-theme=dark] .lead-inproc { background: rgba(245,165,36,.18); color: #ffc15c; border-color: transparent; }

/* v573: My contact requests on the Dashboard - what they switched on under Contact us */
.dash-cr .cr-item { padding: 10px 0; border-top: 1px solid var(--line, #e5e7eb); }
.dash-cr .cr-item:first-of-type { border-top: 0; padding-top: 0; }
.dash-cr .cr-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.dash-cr .cr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.dash-cr .cr-check { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 5px; background: #1d6fe0; color: #fff; font-size: .72rem; font-weight: 800; margin-right: 6px; }
[data-theme=dark] .vr-st { background: rgba(245,165,36,.18); color: #ffc15c; }

/* v574: preview tabs open that page as the level sees it */
button.lv-prev-pill { font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; }
button.lv-prev-pill:hover { box-shadow: inset 0 -2px 0 #f5a524; }

/* v576: Location view - "My locations only" switch by Reset search, and a verified owner's location menu (like the top menu) */
.gl-mine { margin: 0 6px 0 0; font-size: .85rem; }
.gl-own { position: relative; width: 100%; }
button.gl-name-bubble { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; box-sizing: border-box; min-height: 52px; padding: 5px 30px 18px 12px; border-radius: 12px; position: relative;
    background: #fff7cc; border: 1px solid #f0dc8a; color: #3d3100; line-height: 1.3; font: inherit; text-align: left; cursor: pointer; }
button.gl-name-bubble:hover, button.gl-name-bubble[aria-expanded=true] { background: #ffef99; border-color: #e0c75a; }
button.gl-name-bubble::after { content: "▾"; position: absolute; right: 10px; bottom: 4px; font-weight: 700; font-size: .9rem; color: #5c4a00; }
[data-theme=dark] button.gl-name-bubble { background: rgba(240,210,80,.16); border-color: rgba(240,210,80,.45); color: #f3e7b5; }
[data-theme=dark] button.gl-name-bubble::after { color: #e8d48a; }
.gl-own-menu { position: absolute; top: calc(100% + 4px); left: 0; z-index: 40; min-width: 240px; padding: 6px; display: flex; flex-direction: column; gap: 2px;
    background: var(--navy-2, #0b1f3a); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; box-shadow: 0 14px 34px rgba(0,0,0,.35); }
.gl-own-menu[hidden] { display: none; }
.gl-own-note { padding: 6px 12px 8px; font-size: .78rem; color: #9fb3d1; border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: 4px; }
.gl-own-item { display: block; padding: 9px 12px; border-radius: 8px; color: #e8eef8; font: inherit; font-size: .93rem; text-align: left; text-decoration: none; background: none; border: 0; cursor: pointer; white-space: nowrap; }
.gl-own-item:hover, .gl-own-item:focus-visible { background: rgba(255,255,255,.1); color: #fff; text-decoration: none; }

/* v580: Location $ - "My locations only" centered between the "?" and Reset search */
.gl-top[data-help-slot]:has(.gl-mine) .help-in-slot { margin-right: 0; }
.gl-top[data-help-slot] .gl-mine { margin: 0 auto; }

/* v581: pick which verified location (View as bar, Dashboard) */
.loc-pick { display: inline-flex; vertical-align: middle; margin: 0 4px; }
.loc-pick select { padding: 4px 28px 4px 10px; border-radius: 8px; font-weight: 700; font-size: .9rem; max-width: 280px; }
.viewas-bar .loc-pick select { background-color: #fff; border: 1px solid #e8c66d; color: #5c3d00; }
.dash-grid h2 .loc-pick { margin-left: 8px; }

/* v583: Dashboard - the verified-location drop-down (All first) and Review / edit, next to the heading */
.dash-h1-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.dash-h1-row h1 { margin: 0; }
.dash-h1-row .loc-pick select { padding: 7px 30px 7px 12px; font-size: .95rem; }

/* v586: location sign-in Contacts - Invite user bubble, and the "leaving the corporation" pop-up */
.crud-act .crud-invite { margin-left: 6px; white-space: nowrap; }
.cr-dialog { width: min(620px, calc(100vw - 32px)); }
.cr-dialog .cr-step { padding: 18px 20px 20px; }
.cr-dialog .cr-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.cr-steps { margin: 8px 0 6px; padding-left: 22px; display: grid; gap: 8px; line-height: 1.45; }
.inv-acc { border: 0; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
.inv-acc legend { padding: 0; margin-bottom: 4px; color: var(--muted); width: 100%; }
.inv-acc-table td .toggle-form { margin: 0; }

/* v590: Toolbox > Documents for my store - upload, and "for the Operator" */
.lt-upload .lt-forop { display: flex; align-items: center; gap: 8px; margin: 8px 0 4px; font-weight: 600; }
.lt-mydocs .badge-warn { margin-left: 6px; }

/* v591: Tools > Edit corporate ownership - the owners table */
.lt-owners input { width: 100%; box-sizing: border-box; }
.lt-owners .lt-pct { max-width: 90px; }

/* v593: Marketing > campaigns */
.camp-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.camp-cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px 28px; }
@media (max-width: 860px) { .camp-cols { grid-template-columns: 1fr; } }
.camp-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 6px 0 10px; }
.camp-kpi { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.camp-kpi b { font-size: 1.35rem; }
.camp-kpi b.up { color: #15803d; } .camp-kpi b.down { color: #b42318; }
.camp-kpi span { font-size: .8rem; color: var(--muted); }
.camp-counts, .camp-check, .camp-checkform { list-style: none; padding: 0; margin: 6px 0; display: grid; gap: 4px; }
.camp-check li.done { color: #15803d; }
.camp-dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0 0 10px; }
.camp-dl dt { font-weight: 700; color: var(--muted); }
.camp-dl dd { margin: 0; }
.camp-channels { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 4px 0 10px; }

/* v597: the + by "33 Locations" - how many of each type */
.gl-count-wrap { position: relative; display: inline-flex; align-items: center; gap: 8px; }
.gl-types-btn { border: 0; background: none; padding: 0; cursor: pointer; display: inline-flex; align-items: center; }
.gl-types { position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; min-width: 230px; padding: 10px 14px; background: var(--card, #fff);
    border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 28px rgba(0,0,0,.16); font-size: .9rem; }
.gl-types[hidden] { display: none; }
.gl-types ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.gl-types li { display: flex; gap: 10px; align-items: baseline; }
.gl-type-n { min-width: 3ch; text-align: right; font-weight: 800; }

/* v599: Pending list - marked pending by us but not on the IGB's list */
.gl-notigb { display: inline-block; margin: 0 6px 4px 0; padding: 1px 9px; border-radius: 999px; background: #fee2e2; color: #b42318; border: 1px solid #fca5a5; font-size: .75rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
a.gl-notigb:hover { background: #fecaca; text-decoration: none; }
[data-theme=dark] .gl-notigb { background: rgba(239,68,68,.18); color: #fca5a5; border-color: transparent; }

/* v600: DK Dashboard - the IGB's whole-state count next to ours */
.dk-igb-wrap { display: inline-flex; align-items: center; gap: 8px; }
a.dk-igb { padding: 2px 9px; border-radius: 999px; border: 1px solid #cfd8e6; background: #fff; color: #123f8c; font-size: .78rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
a.dk-igb:hover { background: #eef4ff; border-color: #9dbcf0; text-decoration: none; }
[data-theme=dark] a.dk-igb { background: transparent; border-color: #3a4a63; color: #9cc0ff; }

/* v601: Database updates - "Running 1:23" while a report / load runs */
.dbu-running { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; padding: 2px 10px; border-radius: 999px; background: #fff4dc; color: #8a5a00;
    border: 1px solid #f0d58a; font-size: .78rem; font-weight: 800; white-space: nowrap; vertical-align: middle; }
.dbu-running[hidden] { display: none; }
.dbu-running-tab { margin-left: 6px; padding: 0 7px; font-size: .7rem; }
.dbu-spin { width: 10px; height: 10px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: dbu-spin .8s linear infinite; }
@keyframes dbu-spin { to { transform: rotate(360deg); } }
[data-theme=dark] .dbu-running { background: rgba(245,165,36,.18); color: #ffc15c; border-color: transparent; }
.dbu-done { margin-top: 10px; }

/* v602: Pending - the IGB has it under another number */
.gl-igbsug { margin: 2px 0 6px; font-size: .78rem; line-height: 1.35; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.gl-igbsug-txt { color: #5c3d00; font-weight: 600; text-align: right; }
.gl-igbsug-btn { border: 1px solid #86efac; background: #dcfce7; color: #166534; border-radius: 999px; padding: 2px 10px; font: inherit; font-weight: 800; cursor: pointer; text-decoration: none; white-space: nowrap; }
.gl-igbsug-btn:hover { background: #bbf7d0; text-decoration: none; }
.gl-igbsug-err { color: #b42318; font-weight: 700; text-align: right; }
[data-theme=dark] .gl-igbsug-txt { color: #ffc15c; }

/* v603: Locations - the IGB license # in the Earned column (staff, licensed / pending); Target never over the address */
.gl-igbno { margin-top: 3px; font-size: .74rem; font-weight: 700; color: var(--muted); white-space: nowrap; text-align: right; }
td.gl-addr.gl-cell-has-sw { padding-bottom: 44px; }

/* v604: Locations - a narrower Earned / $$$ column and more room for the address (the table stays the same width) */
@media (min-width: 761px) {
    table.gaming-list > thead > tr.gl-labels > th:nth-child(1) { width: 29%; }
    table.gaming-list > thead > tr.gl-labels > th:nth-child(2) { width: 26%; }
    table.gaming-list > thead > tr.gl-labels > th:nth-child(3) { width: 16%; }
    table.gaming-list > thead > tr.gl-labels > th:nth-child(4) { width: 15%; }
    table.gaming-list > thead > tr.gl-labels > th:nth-child(5), table.gaming-list th.gl-earned-col { width: 14%; }
    table.gaming-list th.gl-earned-col input { width: 100%; max-width: 92px; }
}

/* v605: Locations - the state average for the location's type, under the operator, right */
.gl-typeavg { text-align: right; margin-top: 3px; }
a.gl-typeavg-n { font-style: italic; text-decoration: underline; font-size: .82rem; font-weight: 700; color: #123f8c; font-variant: normal; }
[data-theme=dark] a.gl-typeavg-n { color: #9cc0ff; }

/* v606: Locations - name column ~20% narrower; Address +12%, City / state +8% (the table stays the same width) */
@media (min-width: 761px) {
    table.gaming-list > thead > tr.gl-labels > th:nth-child(1) { width: 23%; }
    table.gaming-list > thead > tr.gl-labels > th:nth-child(2) { width: 29%; }
    table.gaming-list > thead > tr.gl-labels > th:nth-child(3) { width: 17.5%; }
    table.gaming-list > thead > tr.gl-labels > th:nth-child(4) { width: 16.5%; }
    table.gaming-list > thead > tr.gl-labels > th:nth-child(5), table.gaming-list th.gl-earned-col { width: 14%; }
}

/* v607: Locations - name 25%, type 13% (the rest to the address) */
@media (min-width: 761px) {
    table.gaming-list > thead > tr.gl-labels > th:nth-child(1) { width: 25%; }
    table.gaming-list > thead > tr.gl-labels > th:nth-child(2) { width: 30.5%; }
    table.gaming-list > thead > tr.gl-labels > th:nth-child(3) { width: 17.5%; }
    table.gaming-list > thead > tr.gl-labels > th:nth-child(4) { width: 13%; }
    table.gaming-list > thead > tr.gl-labels > th:nth-child(5), table.gaming-list th.gl-earned-col { width: 14%; }
}
.gl-typeavg-lbl { font-size: .74rem; color: var(--muted); font-style: italic; }   /* v608 */

/* v609: Analyze - the area (Census) and the video gaming around it */
.demo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 8px 0 10px; }
.demo-kpi { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.demo-kpi b { font-size: 1.25rem; }
.demo-kpi span { font-size: .8rem; color: var(--muted); }

/* v615: Location approvals - Recently decided opens / closes with the green + */
.rd-fold > summary { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; }
.rd-fold > summary::-webkit-details-marker { display: none; }
.rd-fold > summary h2 { margin: 0; }
.rd-fold[open] > summary { margin-bottom: 10px; }

/* v620: Super admin dash - the sections */
.sa-sec h2 { margin: 4px 0 8px; }
.sa-sec h2 a { color: inherit; text-decoration: none; }
.sa-sec h2 a:hover { text-decoration: underline; }
.sa-tiles { margin-top: 4px; }   /* v623 */
.sa-sections .tool-card b { font-size: 1.1rem; }

/* v624: Super admin - the 5 links evenly apart, stuck under the top bar; the section's tiles in a bubble below */
#sa-bar { display: contents; }
/* v626: the 5 links, each in its own bubble like the top navigation; the row itself has no bubble */
.sa-links { position: sticky; top: var(--topbar-h, 64px); z-index: 8; display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; margin: 4px 0 12px; background: var(--bg, #f5f7fb); }
.sa-links a { flex: 1 1 0; text-align: center; padding: 8px 12px; border-radius: 8px; background: var(--navy); font-weight: 600; font-size: 1rem; color: #e6eefb; text-decoration: none; box-shadow: 0 1px 4px rgba(16,31,58,.15); transition: background .15s, color .15s, box-shadow .15s; }
.sa-links a:hover, .sa-links a:focus-visible { background: #1d3a66; color: #fff; text-decoration: none; }
.sa-links a.active { color: #ffc15c; box-shadow: inset 0 -2px 0 var(--accent), 0 1px 4px rgba(16,31,58,.15); }
[data-theme=dark] .sa-links { background: var(--bg, #0b1626); }
[data-theme=dark] .sa-links a { color: #e6eefb; border: 1px solid #2a3850; }
[data-theme=light] .sa-links a { background: #fff; border: 1px solid var(--line); color: #1f2d44; box-shadow: 0 1px 4px rgba(16,31,58,.06); }
[data-theme=light] .sa-links a:hover { background: #eef3fb; color: var(--navy); }
[data-theme=light] .sa-links a.active { background: #fff4dc; color: #8a5a00; box-shadow: inset 0 -2px 0 var(--accent); }
@media (max-width: 640px) { .sa-links { gap: 5px; } .sa-links a { padding: 8px 4px; font-size: .9rem; } }
.sa-bubble { border: 1px solid #cfdcf3; background: #eef4ff; border-radius: 14px; padding: 12px; margin: 0 0 16px; }
.sa-bubble .sa-tiles { margin: 0; }
[data-theme=dark] .sa-bubble { background: #142036; border-color: #2a3850; }

/* v627: + bubbles under the Super admin links (Dash, Permissions, IGB), evenly apart */
.sa-plus-row { display: flex; justify-content: space-between; gap: 10px; margin: 0 0 16px; flex-wrap: wrap; }
.sa-plus { flex: 1 1 0; min-width: 150px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 14px; border: 1px solid #cfdcf3; border-radius: 999px; background: #fff; color: #123f8c; font-weight: 700; text-decoration: none; box-shadow: 0 1px 4px rgba(16,31,58,.06); }
.sa-plus:hover, .sa-plus:focus-visible { background: #eef4ff; border-color: #9dbcf0; text-decoration: none; }
.sa-plus.active { border-color: var(--accent); background: #fff4dc; color: #8a5a00; }
[data-theme=dark] .sa-plus { background: #142036; border-color: #2a3850; color: #9cc0ff; }
[data-theme=dark] .sa-plus:hover { background: #1c2a40; }
[data-theme=dark] .sa-plus.active { background: rgba(245,165,36,.18); color: #ffc15c; border-color: var(--accent); }

/* v628: the Dash + bubbles open below them */
.sa-inline { position: relative; margin: 0 0 16px; padding-top: 40px; }
.sa-inline-close { position: absolute; top: 10px; left: 12px; background: none; border: 0; padding: 0; cursor: pointer; }
.sa-plus .perm-plus.is-minus::before { content: "\2212"; }
.sa-inline.is-busy { opacity: .6; pointer-events: none; }   /* v629 */
/* v630: + bubbles fit their text, all to the left, text left-justified inside */
.sa-plus-row { justify-content: flex-start; }
.sa-plus { flex: 0 0 auto; min-width: 0; justify-content: flex-start; text-align: left; }
/* v631: an open + bubble shows a green - to close it */
.sa-plus.is-open .perm-plus::before { content: "\2212"; }
.sa-plus.is-open .perm-plus { border-color: #86efac; background: #dcfce7; color: #14532d; }
/* v632: every close (-) at the top of what a + opened is the green circle */
.ptype-close, .ptype-plus.ptype-close, .ptype-plus.ptype-close:hover { background: #dcfce7; color: #14532d; border-color: #86efac; width: 26px; height: 26px; font-weight: 800; }
.ptype-close:hover { background: #bbf7d0; }
.sa-page-close { margin: -6px 0 10px; }
.sa-page-close a { display: inline-flex; text-decoration: none; }
.sa-inline .perm-levels-h .ptype-close { display: none; }   /* on the Dash the box's own - closes it */
/* v633: the Super admin links and the + bubbles under them stick to the top together */
#sa-bar .sa-sticky { position: sticky; top: var(--topbar-h, 64px); z-index: 8; background: var(--bg, #f5f7fb); padding-bottom: 6px; margin-bottom: 10px; }
#sa-bar .sa-sticky .sa-links { position: static; margin-bottom: 8px; }
#sa-bar .sa-sticky .sa-plus-row { margin-bottom: 0; }
[data-theme=dark] #sa-bar .sa-sticky { background: var(--bg, #0d1726); }
/* v636: a ? circle by each Super admin + bubble (same look as the page ? help) and its little bubble */
.sa-plus-wrap { display: inline-flex; align-items: center; gap: 6px; }
.sa-q { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; border: 0; padding: 0; background: #f3a712; color: #1b1300; font: 900 .85rem/1 inherit; cursor: pointer; box-shadow: 0 0 0 3px rgba(243,167,18,.25); display: inline-flex; align-items: center; justify-content: center; }
.sa-q:hover, .sa-q.is-on { background: #e09400; }
.sa-help-pop { margin: 8px 0 0; padding: 8px 12px; border-radius: 10px; background: #fff8e6; border: 1px solid #f3d08a; color: #3d2c00; font-size: .93rem; max-width: 720px; }
[data-theme=dark] .sa-help-pop { background: #2a2210; border-color: #6b5420; color: #f5e6c4; }
/* v637: All users - 10 per page */
.pv-pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 0; flex-wrap: wrap; }
.pv-pager .is-disabled { opacity: .45; pointer-events: none; }
/* v638: one bubble per item - ? at the far left inside it, the name, then + on the right */
.sa-plus-wrap { gap: 0; padding: 4px 6px 4px 6px; border: 1px solid #cfdcf3; border-radius: 999px; background: #fff; box-shadow: 0 1px 4px rgba(16,31,58,.06); }
.sa-plus-wrap .sa-plus { border: 0; background: none; box-shadow: none; padding: 4px 4px 4px 10px; gap: 8px; border-radius: 999px; }
.sa-plus-wrap:hover { background: #eef4ff; border-color: #9dbcf0; }
.sa-plus-wrap .sa-plus:hover { background: none; }
.sa-plus-wrap:has(.sa-plus.active), .sa-plus-wrap:has(.sa-plus.is-open) { border-color: var(--accent); background: #fff4dc; }
.sa-plus-wrap .sa-plus.active { background: none; }
[data-theme=dark] .sa-plus-wrap { background: #142036; border-color: #2a3850; }
[data-theme=dark] .sa-plus-wrap .sa-plus { background: none; }
[data-theme=dark] .sa-plus-wrap:hover { background: #1c2a40; }
[data-theme=dark] .sa-plus-wrap:has(.sa-plus.active), [data-theme=dark] .sa-plus-wrap:has(.sa-plus.is-open) { background: rgba(245,165,36,.18); border-color: var(--accent); }
/* v639: + on the left, ? on the right, inside the one bubble */
.sa-plus-wrap .sa-plus { padding: 4px 10px 4px 4px; }
/* v646: Settings drop-down headings - Super admin / Staff Admin / Location Admin (small letters) */
.subnav .subnav-head { display: block; padding: 10px 14px 4px; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #8a5a00; border-top: 1px solid var(--line, #e3e9f2); }
.subnav .subnav-head:first-child { border-top: 0; padding-top: 6px; }
[data-theme=dark] .subnav .subnav-head { color: #ffc15c; border-color: #2a3850; }
/* v646: Staff permissions grid */
.sa-grid th.sa-grid-group { text-align: center; background: #eef4ff; }
.sa-grid th.sa-grid-col { font-size: .8rem; white-space: nowrap; }
.sa-grid td.sa-grid-cell { text-align: center; }
.sa-grid .toggle-state { display: none; }
/* v640: Super admin pages - the same heading on every page: no "Administrator" line above it, no ? beside it */
main:has(#sa-bar) .page-head .eyebrow { display: none; }
main:has(#sa-bar) > .page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 6px 0 4px; }
main:has(#sa-bar) > .page-head h1 { font-size: 1.9rem; margin: 0; display: block; }
main:has(#sa-bar) > .page-head h1 > .help-btn { display: none; }
/* v650: "Super administrator" next to each Super admin page heading */
.sa-level { display: inline-block; margin-left: 12px; padding: 3px 10px; border-radius: 999px; background: #fff4dc; border: 1px solid #f3d08a; color: #8a5a00; font-size: .8rem; font-weight: 700; vertical-align: middle; letter-spacing: .02em; }
[data-theme=dark] .sa-level { background: rgba(245,165,36,.18); border-color: #6b5420; color: #ffc15c; }
/* v651: the box under the bubbles - its - and the page name in a bubble like the open one above (no "Administrator") */
.sa-inline { padding-top: 14px; }
.sa-inline .sa-inline-close { position: static; display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 8px; margin: 0 0 10px; border: 1px solid var(--accent); border-radius: 999px; background: #fff4dc; color: #8a5a00; font: 700 1.05rem/1.2 inherit; cursor: pointer; }
.sa-inline .sa-inline-close:hover { background: #ffecc2; }
[data-theme=dark] .sa-inline .sa-inline-close { background: rgba(245,165,36,.18); color: #ffc15c; }
.sa-inline .page-head:empty, .sa-inline .page-head > div:empty { display: none; }
.sa-inline .eyebrow { display: none; }
/* v652: the open box is just its bubble and what it opens - no second box around it */
#sa-inline.sa-inline { background: none; border: 0; box-shadow: none; padding: 0; }
.sa-inline .sa-inline-head { margin: 0 0 10px; }
.sa-inline .sa-inline-close { position: static; border: 0; background: none; padding: 4px 10px 4px 4px; font: inherit; font-weight: 700; color: #8a5a00; margin: 0; }
.sa-inline .sa-inline-close:hover { background: none; }
[data-theme=dark] .sa-inline .sa-inline-close { background: none; color: #ffc15c; }
/* v654: the row under the top menu - every sub link in a bubble, the page you're on in bold; the name sits by the date on the right */
.whoami-links { order: 1; gap: 6px; }
.whoami-name { order: 2; margin-left: auto; }
.whoami-date { order: 3; }
.whoami-links a:not(.wl-tools) { border: 1px solid #cfd8e6; background: #fff; }
.whoami-links a:not(.wl-tools):hover { background: #eef4ff; border-color: #9dbcf0; }
.whoami-links a.active { font-weight: 800; }
.whoami-links a.active:not(.wl-tools) { background: #dbe8ff; border-color: #9dbcf0; color: #123f8c; }
.whoami-links a.attn:not(.active) { background: #fff4d6; border-color: #f0d58a; }
[data-theme=dark] .whoami-links a:not(.wl-tools) { background: transparent; border-color: #3a4a63; }
[data-theme=dark] .whoami-links a.active:not(.wl-tools) { background: rgba(47,111,214,.28); border-color: #2f6fd6; color: #fff; }
@media (max-width: 760px) { .whoami-name { margin-left: 0; } }
/* v656: the same gap under the top menu on every page, and the same size page heading (Dashboard, Locations, Sales, Calendar, settings ...) */
main.page { padding-top: 24px; }
main.page .page-head, main.page .dash-h1-row { margin-top: 0; }
main.page .page-head { margin-bottom: 18px; }
.page-head h1, .dash-h1-row h1, .dk-head-top h1, main:has(#sa-bar) > .page-head h1 { font-size: 2rem; line-height: 1.15; margin: 0; }
h1.has-help { min-height: 38px; }
main.page > .page-head:first-child, main.page > form:first-child + .page-head, main.page > script:first-child ~ .page-head:first-of-type { margin-top: 0; }
/* v657: Dashboard had less space at the top (v123) - now the same gap as every other page */
main.page, main.page.dk-page { padding-top: 20px; }
/* v658: the light blue row under the top menu is the same height with or without sub link bubbles */
.whoami-inner { min-height: 44px; padding-top: 5px; padding-bottom: 5px; box-sizing: border-box; }
.whoami-links a { line-height: 1.3; }
@media (max-width: 760px) { .whoami-inner { min-height: 0; } }
/* v659: Super admin - gear + "Super admin" first in the row under the top menu, then Dash / Permissions / IGB / Database / Users bubbles */
#sa-bar .sa-links { display: none; }
#sa-bar .sa-sticky { top: calc(var(--topbar-h, 64px) + 44px); padding-top: 6px; }
.whoami-links a.whoami-sa-home { display: inline-flex; align-items: center; gap: 6px; border: 0 !important; background: none !important; padding: 4px 8px 4px 0; color: #1f2d44; font-size: .92rem; }
.whoami-links a.whoami-sa-home:hover { color: #1957b8; }
.whoami-cog { width: 20px; height: 20px; }
[data-theme=dark] .whoami-links a.whoami-sa-home { color: #d6e2f5; }
/* v660: Super admin pages all look the same - no page heading (the bubble row under the top menu says where you are),
   no second copy of the open bubble at the top of the box, no extra - at the top of a page a bubble opened */
main:has(#sa-bar) > .page-head h1, main:has(#sa-bar) > .page-head .eyebrow, main:has(#sa-bar) > .page-head p.muted { display: none; }
main:has(#sa-bar) > .page-head { margin: 0; min-height: 0; }
main:has(#sa-bar) > .page-head:not(:has(a, button, form, select, input)) { display: none; }
.sa-inline .sa-inline-head { display: none; }
.sa-page-close { display: none; }
#sa-bar .sa-sticky { margin-top: 0; }
/* v663: Add location - Note (owner, notes, follow-up) */
.nw-card { margin-top: 16px; }
.nw-grid label > input[data-nw-other] { margin-top: 6px; }
/* v665: Go / Yield sign right of City; Type of liquor license (read only) */
.le-city-row { display: flex; align-items: center; gap: 8px; }
.le-city-row > input { flex: 1 1 auto; min-width: 0; }
.muni-sign { flex: 0 0 auto; display: inline-flex; width: 34px; height: 34px; }
.muni-sign svg { width: 34px; height: 34px; }
input.le-readonly { background: #f3f5f9; color: #34445c; }
[data-theme=dark] input.le-readonly { background: rgba(255,255,255,.05); color: #c6d3e8; }
/* v666: Sales - the count and what the list is / what's picked, in one bubble */
.pr-count-bubble { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 6px 14px; border: 1px solid #cfdcf3; border-radius: 14px; background: #eef4ff; max-width: 100%; }
.pr-count-bubble .pr-about { font-weight: 400; font-size: .85rem; color: #34445c; }
[data-theme=dark] .pr-count-bubble { background: rgba(47,111,214,.15); border-color: #2a3850; }
[data-theme=dark] .pr-count-bubble .pr-about { color: #c6d3e8; }
/* v668: Sales - the count bubble wraps its own text; Previous / Page / Next always stay on its right */
.pr-bar { display: flex; flex-wrap: nowrap; align-items: center; gap: 12px; }
.pr-bar .pr-count-bubble { flex: 1 1 auto; min-width: 0; display: block; white-space: normal; }
.pr-bar .pr-count-bubble b { margin-right: 6px; }
.pr-bar .pager { flex: 0 0 auto; white-space: nowrap; margin-left: auto; }
/* v672: Sales list - the city's gaming bubble under the city */
.pr-city-bub { margin-top: 6px; }
/* v673: Sales list - a green + left of every bubble that opens a pop-up (a - while it's open) */
details.pr-pop > summary { display: inline-flex; align-items: center; gap: 6px; }
.pr-plus { width: 20px; height: 20px; font-size: .9rem; flex: 0 0 auto; }
details.pr-pop[open] > summary .pr-plus::before { content: "\2212"; }
/* v676: Sales list - Locations / status, and Call at the bottom right of the last column */
.pr-list td.pr-vg { position: relative; padding-bottom: 44px; min-width: 150px; }
.pr-list td.pr-vg .pr-call { position: absolute; right: 8px; bottom: 8px; }
.pr-call-form { margin: 0; }
button.pr-bub.pr-call { font: inherit; cursor: pointer; }
.pr-vg-st { font-weight: 700; }
.pr-juris { display: inline-block; margin-top: 4px; color: #34445c; font-weight: 600; }   /* v678 */
/* v679: City limits check */
.geo-stats { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-bottom: 12px; }
.geo-stats div { display: flex; flex-direction: column; }
.geo-stats b { font-size: 1.4rem; }
.geo-stats span { font-size: .8rem; color: var(--muted, #5b6b82); }
.geo-bar { height: 10px; border-radius: 6px; background: #e3e9f2; overflow: hidden; margin: 4px 0 10px; }
.geo-bar span { display: block; height: 100%; width: 0; background: #16a34a; transition: width .4s; }
.geo-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 10px 0; }
.pr-addr .pr-juris { display: block; margin-top: 6px; }
.pr-juris.is-city { color: #166534; }
.pr-juris.is-uninc { color: #8a5a00; }
.pr-juris .pr-juris-how { font-weight: 400; color: var(--muted, #5b6b82); }
/* v680: Sales list - status under the business, phone + Call in the last column (no heading), County column */
.pr-wstat { display: block; margin: 4px 0 2px; font-size: .8rem; font-weight: 800; color: #123f8c; text-transform: none; }
.pr-wstat-licensed, .pr-wstat-live { color: #166534; }
.pr-wstat-pending { color: #8a5a00; }
.pr-wstat-denied { color: #b42318; }
.pr-list td.pr-vg { position: static; padding-bottom: 8px; min-width: 130px; white-space: nowrap; }
.pr-list td.pr-vg .pr-call { position: static; display: inline-block; margin-top: 6px; }
.pr-ord { max-height: 220px; overflow: auto; white-space: normal; }
/* v682: Census numbers around an address */
.pr-juris-pop { display: block; margin-top: 6px; }
.pr-juris-pop > summary.pr-juris { cursor: pointer; font-size: .85rem; font-weight: 600; list-style: none; }
.pr-juris-pop > summary::-webkit-details-marker { display: none; }
.ca-t th, .ca-t td { padding: 3px 8px; }
.ca-t thead th { font-size: .75rem; color: var(--muted, #5b6b82); }
/* v683: City / County - the name in the bubble, its status under it; Call at the bottom right */
.pr-place .pr-pop { display: inline-block; }
.pr-place-st { display: block; margin-top: 4px; font-size: .8rem; font-weight: 800; }
.mu-yes-t, .mu-limited-t { color: #166534; }
.mu-no-t, .mu-unknown-t { color: #b42318; }
.pr-zip { display: block; margin-top: 2px; }
.pr-list td.pr-vg { position: relative; padding-bottom: 46px; }
.pr-list td.pr-vg .pr-call { position: absolute; right: 8px; bottom: 8px; margin: 0; }
.pr-list td.pr-vg .pr-call-form { position: static; }
/* v684: Parlor finder */
.pf-prof td.num, .pf-prof th.num { min-width: 110px; }
.pf-prof tr.pf-nti td { font-weight: 800; }
.pf-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.pf-find { display: flex; gap: 6px; }
.pf-score { display: inline-block; min-width: 38px; padding: 3px 8px; border-radius: 999px; font-weight: 800; text-align: center; }
.pf-shi { background: #dcfce7; color: #14532d; }
.pf-smid { background: #fff4dc; color: #8a5a00; }
.pf-slo { background: #fde8e8; color: #b42318; }
.pf-third { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.pf-top { background: #dcfce7; color: #14532d; }
.pf-mid { background: #eef4ff; color: #123f8c; }
.pf-low { background: #fde8e8; color: #b42318; }
/* v685: Parlor finder - top half / bottom half */
.pf-halves { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 800px) { .pf-halves { grid-template-columns: 1fr; } }
.pf-half { border: 1px solid #e3e9f2; border-radius: 12px; padding: 12px 14px; }
.pf-half-top { background: #f3fbf5; border-color: #bfe8cc; }
.pf-half-low { background: #fff7f5; border-color: #f3cfc8; }
.pf-avg b { font-size: 1.5rem; }
.pf-traits { margin: 6px 0 8px; padding-left: 20px; }
.pf-traits li { margin: 6px 0; }
.pf-bar { display: inline-block; vertical-align: middle; width: 80px; height: 8px; margin: 0 6px 0 8px; border-radius: 4px; background: #e3e9f2; overflow: hidden; }
.pf-bar-in { display: block; height: 100%; width: 0; background: #16a34a; }
.pf-half-low .pf-bar-in { background: #dc6b5a; }
.pf-strong { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 999px; font-size: .7rem; font-weight: 800; background: #123f8c; color: #fff; }
[data-theme=dark] .pf-half-top { background: rgba(22,163,74,.08); border-color: #2a5a3a; }
[data-theme=dark] .pf-half-low { background: rgba(220,107,90,.08); border-color: #5a2f2a; }
/* v686: Sales search - four even columns, every box the same width */
.pr-filters .pr-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 14px; align-items: end; width: 100%; }
.pr-grid .pr-f { display: flex; flex-direction: column; gap: 4px; min-width: 0; margin: 0; }
.pr-grid .pr-f > span:first-child:not(.sr-only) { font-size: .78rem; font-weight: 600; color: var(--muted, #5b6b82); text-align: center; }
.pr-grid .pr-f input, .pr-grid .pr-f select { width: 100%; box-sizing: border-box; height: 38px; }
.pr-grid .pr-f-2 { grid-column: span 2; }
.pr-grid .pr-f-seg { align-items: center; }
.pr-grid .pr-f-seg .pr-seg { align-self: center; }
.pr-grid .pr-f-reset { align-items: flex-end; justify-content: flex-end; }
@media (max-width: 760px) { .pr-filters .pr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* v694: Analyze - three side-by-side bubbles; one + opens all three lists */
.demo3 > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 12px; align-items: stretch; }
.demo3 > summary::-webkit-details-marker { display: none; }
.demo3-bub { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 64px; padding: 10px 14px; border: 1px solid #cfdcf3; border-radius: 14px; background: #eef4ff; }
.demo3-bub b { font-size: 1.02rem; }
.demo3-bub small { color: var(--muted, #5b6b82); }
.demo3-plus { align-self: center; }
.demo3[open] .demo3-plus::before { content: "\2212"; }
.demo3-body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; padding-right: 38px; }
.demo3-col { border: 1px solid #e3e9f2; border-radius: 12px; padding: 8px 12px; }
.demo3-list { margin: 0; }
.demo3-list > div { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid #edf1f7; }
.demo3-list dt { color: var(--muted, #5b6b82); font-size: .9rem; }
.demo3-list dd { margin: 0; font-weight: 700; text-align: right; }
[data-theme=dark] .demo3-bub { background: rgba(47,111,214,.15); border-color: #2a3850; }
[data-theme=dark] .demo3-col { border-color: #2a3850; }
@media (max-width: 760px) { .demo3 > summary, .demo3-body { grid-template-columns: 1fr; padding-right: 0; } }
/* v695: Need construction? */
a.lt-ext { text-decoration: none; color: inherit; }
a.lt-ext:hover { border-color: #9dbcf0; }
.lt-ext-ico { color: #1957b8; font-weight: 800; }
.pf-tools { margin: 0 0 12px; text-align: right; }
/* v696: the + on the left of the three bubbles */
.demo3 > summary { grid-template-columns: auto repeat(3, minmax(0, 1fr)); }
.demo3-body { padding-right: 0; padding-left: 38px; }
@media (max-width: 760px) { .demo3 > summary { grid-template-columns: auto 1fr; } .demo3 > summary .demo3-bub { grid-column: 2; } .demo3-body { padding-left: 0; } }
/* v700: Analyze - each box opens / closes with the + at its top left */
.pf-fold > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; }
.pf-fold > summary::-webkit-details-marker { display: none; }
.pf-fold > summary h2 { margin: 0; }
.pf-fold[open] > summary { margin-bottom: 10px; }
.pf-fold[open] > summary .pf-fold-plus::before { content: "\2212"; }
/* v702: Analyze - Good places list: best / worst arrows and the Score pop-up in the heading */
.pf-score-th { white-space: nowrap; text-align: left; }
.pf-sort { display: inline-flex; flex-direction: column; vertical-align: middle; margin-right: 6px; line-height: 1; }
.pf-sort a { color: #9aa8bd; text-decoration: none; font-size: .75rem; padding: 1px 2px; }
.pf-sort a.is-on, .pf-sort a:hover { color: #1957b8; }
.pf-score-help { display: inline-block; vertical-align: middle; margin-top: 0; text-transform: none; letter-spacing: 0; font-weight: 400; }
.pf-score-pop { text-align: left; white-space: normal; text-transform: none; letter-spacing: 0; font-weight: 400; }
.pf-score-pop ul { margin: 4px 0 8px 18px; padding: 0; }
.pf-score-pop p { margin: 0 0 8px; }
#cands .pf-head p { flex: 1 1 320px; margin: 0; }
/* v703: Analyze - Good towns: the town bubble opens a map of its video gaming; the address bubble opens who lives around it */
.pf-town-pop { display: inline-block; margin-top: 0; }
.pf-addr-pop { margin: 0 0 2px; }
.pf-addr-pop > summary.pr-bub { font-weight: 400; }
.pf-map-pop { width: min(560px, 94vw) !important; max-width: 94vw !important; box-sizing: border-box; }
.pf-map { display: block; width: 100%; height: auto; }
.pf-map-bg { fill: #f4f7fb; stroke: #d6e0ee; }
.pf-map-scale { stroke: #5b6b82; stroke-width: 2; }
.pf-map-st { font-size: 11px; fill: #5b6b82; }
.pf-map-lic { fill: #2e9e4f; fill-opacity: .75; stroke: #fff; stroke-width: 1; }
.pf-map-g circle { fill: #1957b8; stroke: #fff; stroke-width: 1.5; }
.pf-map-g.is-parlor circle { fill: #c0392b; }
.pf-map-g text { fill: #fff; font-size: 10px; font-weight: 700; text-anchor: middle; pointer-events: none; }
.pf-map-key { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 6px 0; }
.pf-key { display: inline-block; width: 12px; height: 12px; border-radius: 50%; }
.pf-key-g { background: #1957b8; } .pf-key-p { background: #c0392b; } .pf-key-l { background: #2e9e4f; }
.pf-map-list { columns: 2; column-gap: 18px; margin: 6px 0 0 18px; padding: 0; max-height: 220px; overflow: auto; }
@media (max-width: 560px) { .pf-map-list { columns: 1; } }
/* v704: Analyze - Current parlors: the address bubble opens the Google pop-up, green + on its left */
a.pf-map-bub { display: inline-flex; align-items: center; gap: 6px; text-align: left; white-space: normal; text-decoration: none; }
/* v705: Analyze - every score circle and the Score pop-up bubble: yellow, same text color */
.pf-score, .pf-shi, .pf-smid, .pf-slo { background: #fef3c7; color: #7a4d00; border: 1px solid #f5c542; }
summary.pf-score-bub { background: #fef3c7; border-color: #f5c542; color: #7a4d00; }
/* v705: the map in the address pop-up (Analyze and Sales) - this address and the video gaming in its tract */
.ca-map-wrap { margin-top: 10px; }
.ca-map-h { margin: 0 0 6px; font-size: .95rem; }
.ca-flag line { stroke: #334155; stroke-width: 1.5; }
.ca-flag path { fill: #1957b8; stroke: #fff; stroke-width: .8; }
.ca-flag circle { fill: #334155; }
.ca-flag.in-bg path { fill: #c0392b; }
.ca-flag text { font-size: 10px; font-weight: 700; fill: #1e293b; }
.ca-home path { fill: #111827; stroke: #fff; stroke-width: 1.2; }
.ca-home circle { fill: #fff; }
.ca-key-home { background: #111827; }
/* v706: Analyze - Good towns: headings wrap so the columns stay narrow and the table fits without a scroll bar */
#towns table.pf-list { width: 100%; table-layout: auto; }
#towns table.pf-list th { white-space: normal; line-height: 1.25; vertical-align: bottom; padding: 8px 8px; min-width: 0; max-width: 110px; overflow-wrap: break-word; }
#towns table.pf-list th.pf-score-th { white-space: nowrap; max-width: none; }
#towns table.pf-list td { padding: 8px 8px; }
#towns .pf-town-pop > summary.pr-bub { white-space: normal; max-width: 220px; }
/* v707: Analyze - Current parlors: headings wrap, a wide address bubble, the name in the location bubble (wraps) */
#parlors table.pf-list { width: 100%; }
#parlors table.pf-list th { white-space: normal; line-height: 1.25; vertical-align: bottom; padding: 8px 8px; max-width: 110px; overflow-wrap: break-word; }
#parlors table.pf-list td { padding: 8px 8px; }
#parlors td.pf-par-name { min-width: 150px; max-width: 240px; }
/* v708: the name uses the Locations yellow bubble (gl-name-bubble) with its arrow */
#parlors td.pf-par-addr { min-width: 230px; }
#parlors a.pf-map-bub { font-size: 1rem; padding: 6px 14px; line-height: 1.35; width: 100%; box-sizing: border-box; }
#parlors a.pf-map-bub .pr-plus { width: 22px; height: 22px; }
/* v709: Good towns - the liquor license count is a bubble with a pop-up of the kinds */
.pf-types-pop { display: inline-block; margin-top: 0; }
/* v710: Current parlors - the area score is a bubble: what it means, and where the parlor ranks in its town */
.pf-area-pop { display: inline-block; margin-top: 0; }
.pf-rank-t tr.is-me td { background: #fef3c7; font-weight: 700; }
.pf-rank-t td a { text-decoration: none; }

/* ===== v711: Leaflet 1.9.4 (leafletjs.com, BSD-2-Clause) - street maps; the map pieces come through /map-tile.php ===== */
/* required styles */

.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
	position: absolute;
	left: 0;
	top: 0;
	}
.leaflet-container {
	overflow: hidden;
	}
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow {
	-webkit-user-select: none;
	   -moz-user-select: none;
	        user-select: none;
	  -webkit-user-drag: none;
	}
/* Prevents IE11 from highlighting tiles in blue */
.leaflet-tile::selection {
	background: transparent;
}
/* Safari renders non-retina tile on retina better with this, but Chrome is worse */
.leaflet-safari .leaflet-tile {
	image-rendering: -webkit-optimize-contrast;
	}
/* hack that prevents hw layers "stretching" when loading new tiles */
.leaflet-safari .leaflet-tile-container {
	width: 1600px;
	height: 1600px;
	-webkit-transform-origin: 0 0;
	}
.leaflet-marker-icon,
.leaflet-marker-shadow {
	display: block;
	}
/* .leaflet-container svg: reset svg max-width decleration shipped in Joomla! (joomla.org) 3.x */
/* .leaflet-container img: map is broken in FF if you have max-width: 100% on tiles */
.leaflet-container .leaflet-overlay-pane svg {
	max-width: none !important;
	max-height: none !important;
	}
.leaflet-container .leaflet-marker-pane img,
.leaflet-container .leaflet-shadow-pane img,
.leaflet-container .leaflet-tile-pane img,
.leaflet-container img.leaflet-image-layer,
.leaflet-container .leaflet-tile {
	max-width: none !important;
	max-height: none !important;
	width: auto;
	padding: 0;
	}

.leaflet-container img.leaflet-tile {
	/* See: https://bugs.chromium.org/p/chromium/issues/detail?id=600120 */
	mix-blend-mode: plus-lighter;
}

.leaflet-container.leaflet-touch-zoom {
	-ms-touch-action: pan-x pan-y;
	touch-action: pan-x pan-y;
	}
.leaflet-container.leaflet-touch-drag {
	-ms-touch-action: pinch-zoom;
	/* Fallback for FF which doesn't support pinch-zoom */
	touch-action: none;
	touch-action: pinch-zoom;
}
.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {
	-ms-touch-action: none;
	touch-action: none;
}
.leaflet-container {
	-webkit-tap-highlight-color: transparent;
}
.leaflet-container a {
	-webkit-tap-highlight-color: rgba(51, 181, 229, 0.4);
}
.leaflet-tile {
	filter: inherit;
	visibility: hidden;
	}
.leaflet-tile-loaded {
	visibility: inherit;
	}
.leaflet-zoom-box {
	width: 0;
	height: 0;
	-moz-box-sizing: border-box;
	     box-sizing: border-box;
	z-index: 800;
	}
/* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */
.leaflet-overlay-pane svg {
	-moz-user-select: none;
	}

.leaflet-pane         { z-index: 400; }

.leaflet-tile-pane    { z-index: 200; }
.leaflet-overlay-pane { z-index: 400; }
.leaflet-shadow-pane  { z-index: 500; }
.leaflet-marker-pane  { z-index: 600; }
.leaflet-tooltip-pane   { z-index: 650; }
.leaflet-popup-pane   { z-index: 700; }

.leaflet-map-pane canvas { z-index: 100; }
.leaflet-map-pane svg    { z-index: 200; }

.leaflet-vml-shape {
	width: 1px;
	height: 1px;
	}
.lvml {
	behavior: url(#default#VML);
	display: inline-block;
	position: absolute;
	}


/* control positioning */

.leaflet-control {
	position: relative;
	z-index: 800;
	pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
	pointer-events: auto;
	}
.leaflet-top,
.leaflet-bottom {
	position: absolute;
	z-index: 1000;
	pointer-events: none;
	}
.leaflet-top {
	top: 0;
	}
.leaflet-right {
	right: 0;
	}
.leaflet-bottom {
	bottom: 0;
	}
.leaflet-left {
	left: 0;
	}
.leaflet-control {
	float: left;
	clear: both;
	}
.leaflet-right .leaflet-control {
	float: right;
	}
.leaflet-top .leaflet-control {
	margin-top: 10px;
	}
.leaflet-bottom .leaflet-control {
	margin-bottom: 10px;
	}
.leaflet-left .leaflet-control {
	margin-left: 10px;
	}
.leaflet-right .leaflet-control {
	margin-right: 10px;
	}


/* zoom and fade animations */

.leaflet-fade-anim .leaflet-popup {
	opacity: 0;
	-webkit-transition: opacity 0.2s linear;
	   -moz-transition: opacity 0.2s linear;
	        transition: opacity 0.2s linear;
	}
.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {
	opacity: 1;
	}
.leaflet-zoom-animated {
	-webkit-transform-origin: 0 0;
	    -ms-transform-origin: 0 0;
	        transform-origin: 0 0;
	}
svg.leaflet-zoom-animated {
	will-change: transform;
}

.leaflet-zoom-anim .leaflet-zoom-animated {
	-webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1);
	   -moz-transition:    -moz-transform 0.25s cubic-bezier(0,0,0.25,1);
	        transition:         transform 0.25s cubic-bezier(0,0,0.25,1);
	}
.leaflet-zoom-anim .leaflet-tile,
.leaflet-pan-anim .leaflet-tile {
	-webkit-transition: none;
	   -moz-transition: none;
	        transition: none;
	}

.leaflet-zoom-anim .leaflet-zoom-hide {
	visibility: hidden;
	}


/* cursors */

.leaflet-interactive {
	cursor: pointer;
	}
.leaflet-grab {
	cursor: -webkit-grab;
	cursor:    -moz-grab;
	cursor:         grab;
	}
.leaflet-crosshair,
.leaflet-crosshair .leaflet-interactive {
	cursor: crosshair;
	}
.leaflet-popup-pane,
.leaflet-control {
	cursor: auto;
	}
.leaflet-dragging .leaflet-grab,
.leaflet-dragging .leaflet-grab .leaflet-interactive,
.leaflet-dragging .leaflet-marker-draggable {
	cursor: move;
	cursor: -webkit-grabbing;
	cursor:    -moz-grabbing;
	cursor:         grabbing;
	}

/* marker & overlays interactivity */
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-image-layer,
.leaflet-pane > svg path,
.leaflet-tile-container {
	pointer-events: none;
	}

.leaflet-marker-icon.leaflet-interactive,
.leaflet-image-layer.leaflet-interactive,
.leaflet-pane > svg path.leaflet-interactive,
svg.leaflet-image-layer.leaflet-interactive path {
	pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
	pointer-events: auto;
	}

/* visual tweaks */

.leaflet-container {
	background: #ddd;
	outline-offset: 1px;
	}
.leaflet-container a {
	color: #0078A8;
	}
.leaflet-zoom-box {
	border: 2px dotted #38f;
	background: rgba(255,255,255,0.5);
	}


/* general typography */
.leaflet-container {
	font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-size: 0.75rem;
	line-height: 1.5;
	}


/* general toolbar styles */

.leaflet-bar {
	box-shadow: 0 1px 5px rgba(0,0,0,0.65);
	border-radius: 4px;
	}
.leaflet-bar a {
	background-color: #fff;
	border-bottom: 1px solid #ccc;
	width: 26px;
	height: 26px;
	line-height: 26px;
	display: block;
	text-align: center;
	text-decoration: none;
	color: black;
	}
.leaflet-bar a,
.leaflet-control-layers-toggle {
	background-position: 50% 50%;
	background-repeat: no-repeat;
	display: block;
	}
.leaflet-bar a:hover,
.leaflet-bar a:focus {
	background-color: #f4f4f4;
	}
.leaflet-bar a:first-child {
	border-top-left-radius: 4px;
	border-top-right-radius: 4px;
	}
.leaflet-bar a:last-child {
	border-bottom-left-radius: 4px;
	border-bottom-right-radius: 4px;
	border-bottom: none;
	}
.leaflet-bar a.leaflet-disabled {
	cursor: default;
	background-color: #f4f4f4;
	color: #bbb;
	}

.leaflet-touch .leaflet-bar a {
	width: 30px;
	height: 30px;
	line-height: 30px;
	}
.leaflet-touch .leaflet-bar a:first-child {
	border-top-left-radius: 2px;
	border-top-right-radius: 2px;
	}
.leaflet-touch .leaflet-bar a:last-child {
	border-bottom-left-radius: 2px;
	border-bottom-right-radius: 2px;
	}

/* zoom control */

.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
	font: bold 18px 'Lucida Console', Monaco, monospace;
	text-indent: 1px;
	}

.leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out  {
	font-size: 22px;
	}


/* layers control */

.leaflet-control-layers {
	box-shadow: 0 1px 5px rgba(0,0,0,0.4);
	background: #fff;
	border-radius: 5px;
	}
.leaflet-control-layers-toggle {
	background-image: url(images/layers.png);
	width: 36px;
	height: 36px;
	}
.leaflet-retina .leaflet-control-layers-toggle {
	background-image: url(images/layers-2x.png);
	background-size: 26px 26px;
	}
.leaflet-touch .leaflet-control-layers-toggle {
	width: 44px;
	height: 44px;
	}
.leaflet-control-layers .leaflet-control-layers-list,
.leaflet-control-layers-expanded .leaflet-control-layers-toggle {
	display: none;
	}
.leaflet-control-layers-expanded .leaflet-control-layers-list {
	display: block;
	position: relative;
	}
.leaflet-control-layers-expanded {
	padding: 6px 10px 6px 6px;
	color: #333;
	background: #fff;
	}
.leaflet-control-layers-scrollbar {
	overflow-y: scroll;
	overflow-x: hidden;
	padding-right: 5px;
	}
.leaflet-control-layers-selector {
	margin-top: 2px;
	position: relative;
	top: 1px;
	}
.leaflet-control-layers label {
	display: block;
	font-size: 13px;
	font-size: 1.08333em;
	}
.leaflet-control-layers-separator {
	height: 0;
	border-top: 1px solid #ddd;
	margin: 5px -10px 5px -6px;
	}

/* Default icon URLs */
.leaflet-default-icon-path { /* used only in path-guessing heuristic, see L.Icon.Default */
	background-image: url(images/marker-icon.png);
	}


/* attribution and scale controls */

.leaflet-container .leaflet-control-attribution {
	background: #fff;
	background: rgba(255, 255, 255, 0.8);
	margin: 0;
	}
.leaflet-control-attribution,
.leaflet-control-scale-line {
	padding: 0 5px;
	color: #333;
	line-height: 1.4;
	}
.leaflet-control-attribution a {
	text-decoration: none;
	}
.leaflet-control-attribution a:hover,
.leaflet-control-attribution a:focus {
	text-decoration: underline;
	}
.leaflet-attribution-flag {
	display: inline !important;
	vertical-align: baseline !important;
	width: 1em;
	height: 0.6669em;
	}
.leaflet-left .leaflet-control-scale {
	margin-left: 5px;
	}
.leaflet-bottom .leaflet-control-scale {
	margin-bottom: 5px;
	}
.leaflet-control-scale-line {
	border: 2px solid #777;
	border-top: none;
	line-height: 1.1;
	padding: 2px 5px 1px;
	white-space: nowrap;
	-moz-box-sizing: border-box;
	     box-sizing: border-box;
	background: rgba(255, 255, 255, 0.8);
	text-shadow: 1px 1px #fff;
	}
.leaflet-control-scale-line:not(:first-child) {
	border-top: 2px solid #777;
	border-bottom: none;
	margin-top: -2px;
	}
.leaflet-control-scale-line:not(:first-child):not(:last-child) {
	border-bottom: 2px solid #777;
	}

.leaflet-touch .leaflet-control-attribution,
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
	box-shadow: none;
	}
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
	border: 2px solid rgba(0,0,0,0.2);
	background-clip: padding-box;
	}


/* popup */

.leaflet-popup {
	position: absolute;
	text-align: center;
	margin-bottom: 20px;
	}
.leaflet-popup-content-wrapper {
	padding: 1px;
	text-align: left;
	border-radius: 12px;
	}
.leaflet-popup-content {
	margin: 13px 24px 13px 20px;
	line-height: 1.3;
	font-size: 13px;
	font-size: 1.08333em;
	min-height: 1px;
	}
.leaflet-popup-content p {
	margin: 17px 0;
	margin: 1.3em 0;
	}
.leaflet-popup-tip-container {
	width: 40px;
	height: 20px;
	position: absolute;
	left: 50%;
	margin-top: -1px;
	margin-left: -20px;
	overflow: hidden;
	pointer-events: none;
	}
.leaflet-popup-tip {
	width: 17px;
	height: 17px;
	padding: 1px;

	margin: -10px auto 0;
	pointer-events: auto;

	-webkit-transform: rotate(45deg);
	   -moz-transform: rotate(45deg);
	    -ms-transform: rotate(45deg);
	        transform: rotate(45deg);
	}
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
	background: white;
	color: #333;
	box-shadow: 0 3px 14px rgba(0,0,0,0.4);
	}
.leaflet-container a.leaflet-popup-close-button {
	position: absolute;
	top: 0;
	right: 0;
	border: none;
	text-align: center;
	width: 24px;
	height: 24px;
	font: 16px/24px Tahoma, Verdana, sans-serif;
	color: #757575;
	text-decoration: none;
	background: transparent;
	}
.leaflet-container a.leaflet-popup-close-button:hover,
.leaflet-container a.leaflet-popup-close-button:focus {
	color: #585858;
	}
.leaflet-popup-scrolled {
	overflow: auto;
	}

.leaflet-oldie .leaflet-popup-content-wrapper {
	-ms-zoom: 1;
	}
.leaflet-oldie .leaflet-popup-tip {
	width: 24px;
	margin: 0 auto;

	-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";
	filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);
	}

.leaflet-oldie .leaflet-control-zoom,
.leaflet-oldie .leaflet-control-layers,
.leaflet-oldie .leaflet-popup-content-wrapper,
.leaflet-oldie .leaflet-popup-tip {
	border: 1px solid #999;
	}


/* div icon */

.leaflet-div-icon {
	background: #fff;
	border: 1px solid #666;
	}


/* Tooltip */
/* Base styles for the element that has a tooltip */
.leaflet-tooltip {
	position: absolute;
	padding: 6px;
	background-color: #fff;
	border: 1px solid #fff;
	border-radius: 3px;
	color: #222;
	white-space: nowrap;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	pointer-events: none;
	box-shadow: 0 1px 3px rgba(0,0,0,0.4);
	}
.leaflet-tooltip.leaflet-interactive {
	cursor: pointer;
	pointer-events: auto;
	}
.leaflet-tooltip-top:before,
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
	position: absolute;
	pointer-events: none;
	border: 6px solid transparent;
	background: transparent;
	content: "";
	}

/* Directions */

.leaflet-tooltip-bottom {
	margin-top: 6px;
}
.leaflet-tooltip-top {
	margin-top: -6px;
}
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-top:before {
	left: 50%;
	margin-left: -6px;
	}
.leaflet-tooltip-top:before {
	bottom: 0;
	margin-bottom: -12px;
	border-top-color: #fff;
	}
.leaflet-tooltip-bottom:before {
	top: 0;
	margin-top: -12px;
	margin-left: -6px;
	border-bottom-color: #fff;
	}
.leaflet-tooltip-left {
	margin-left: -6px;
}
.leaflet-tooltip-right {
	margin-left: 6px;
}
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
	top: 50%;
	margin-top: -6px;
	}
.leaflet-tooltip-left:before {
	right: 0;
	margin-right: -12px;
	border-left-color: #fff;
	}
.leaflet-tooltip-right:before {
	left: 0;
	margin-left: -12px;
	border-right-color: #fff;
	}

/* Printing */

@media print {
	/* Prevent printers from removing background-images of controls. */
	.leaflet-control {
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
		}
	}
/* ===== end of Leaflet ===== */
/* v711: the street maps (js/lmap.js) */
.lmap { width: 100%; height: 320px; border-radius: 8px; border: 1px solid #d6e0ee; background: #eef2f7; z-index: 0; }
.ca-lmap { width: min(400px, 84vw); height: 260px; }
.lmap .leaflet-control-attribution { font-size: 10px; }
.lm-pin { display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.45); color: #fff; font: 700 11px/1 system-ui, sans-serif; box-sizing: border-box; }
.lm-g { background: #1957b8; }
.lm-p, .lm-b { background: #c0392b; }
.lm-l { background: #2e9e4f; opacity: .85; border-width: 1.5px; }
.lm-h { background: none; border: 0; box-shadow: none; border-radius: 0; }
.lm-h::before { content: ""; position: absolute; left: 1px; top: 0; width: 24px; height: 24px; border-radius: 50% 50% 50% 0; background: #111827; transform: rotate(-45deg); transform-origin: 50% 50%; border: 2px solid #fff; box-sizing: border-box; box-shadow: 0 1px 3px rgba(0,0,0,.5); }
.lm-h::after { content: ""; position: absolute; left: 9px; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.lm-pop a, .lm-pop b { font-weight: 700; }
.pf-map-pop .lmap { height: 340px; }
/* v712: Analyze - "Gaming per 1,000 people (tract)" heading with a ? pop-up */
.pf-th-q { display: inline-flex; align-items: flex-end; gap: 6px; text-align: right; }
.pf-q-pop { display: inline-block; margin: 0; vertical-align: middle; }
.lq-help summary.pf-q { padding: 0; border: 0; width: 20px; height: 20px; text-transform: none; letter-spacing: 0; list-style: none; }
.lq-help summary.pf-q::-webkit-details-marker { display: none; }
#towns table.pf-list th.pf-th-wide, #parlors table.pf-list th.pf-th-wide { max-width: 130px; }
/* v713: Analyze - My top 10 locations for a parlor */
.pf-top10 { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.pf-top-item { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pf-top-item:last-child { border-bottom: 0; }
.pf-top-item > .pf-score { flex: 0 0 auto; margin-top: 2px; }
.pf-top-main { flex: 1 1 auto; min-width: 0; }
.pf-top-where { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 4px; }
.pf-top-where .pf-addr-pop { margin: 0; display: inline-block; }
.pf-top-item .pr-call-form { flex: 0 0 auto; margin-left: auto; }
@media (max-width: 640px) { .pf-top-item { flex-wrap: wrap; } .pf-top-item .pr-call-form { margin-left: 0; } }
/* v714: Location > Analyze > Location worksheet */
.lws .lws-sum { display: flex; align-items: center; gap: 14px; margin: 6px 0 12px; }
.lws-sum-big { display: inline-flex; align-items: center; justify-content: center; min-width: 58px; height: 58px; border-radius: 50%; font-size: 1.35rem; font-weight: 800; background: #fef3c7; color: #7a4d00; border: 2px solid #f5c542; }
.lws-pill { display: inline-block; min-width: 26px; padding: 1px 8px; border-radius: 999px; font-weight: 800; text-align: center; background: #eef2f7; color: #334155; }
.lws-pill.lws-lo, .lws-sum-big.lws-lo { background: #fde8e8; color: #b42318; border-color: #f5a3a3; }
.lws-pill.lws-mid { background: #fff4dc; color: #8a5a00; }
.lws-pill.lws-hi, .lws-sum-big.lws-hi { background: #dcfce7; color: #14532d; border-color: #86d9a3; }
.lws-cmp tr.lws-grp td { background: #f3f6fb; font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); padding: 6px 12px; }
.lws-cmp td { padding: 7px 12px; }
.lws-chg { font-size: .75rem; margin-left: 4px; }
.lws-chg.up { color: #15803d; } .lws-chg.down { color: #b42318; }
.lws-behind { color: #b42318; font-weight: 700; }
.lws-sugg { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 14px 0; }
.lws-col { border-radius: 12px; padding: 12px 14px; border: 1px solid var(--line); }
.lws-col-fix { background: #fff7f5; border-color: #f6c9c0; }
.lws-col-promo { background: #f3fbf5; border-color: #bfe6cb; }
.lws-col h3 { margin: 0 0 8px; }
.lws-col ol { margin: 0; padding-left: 20px; }
.lws-col li { margin-bottom: 8px; line-height: 1.4; }
.lws-plan { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 12px; }
.lws-plan h3 { margin: 0 0 4px; }
.lws-new, .lws-hist { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.lws-form { display: flex; flex-direction: column; gap: 10px; }
.lws-date { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.lws-g { margin: 10px 0 0; font-size: .85rem; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.lws-rows { display: flex; flex-direction: column; }
.lws-row { display: grid; grid-template-columns: minmax(180px, 1.2fr) auto minmax(160px, 1fr); gap: 6px 14px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); }
.lws-lab { display: flex; flex-direction: column; }
.lws-scale { display: inline-flex; border: 1px solid #cdd5e1; border-radius: 10px; overflow: hidden; }
.lws-scale label { position: relative; cursor: pointer; }
.lws-scale label + label { border-left: 1px solid #cdd5e1; }
.lws-scale input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lws-scale span { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 34px; font-weight: 700; color: var(--muted); background: var(--card, #fff); }
.lws-scale input:checked + span { background: #1957b8; color: #fff; }
.lws-scale label:nth-child(2) input:checked + span, .lws-scale label:nth-child(3) input:checked + span { background: #c0392b; }
.lws-scale label:nth-child(4) input:checked + span { background: #d08700; }
.lws-scale label:nth-child(5) input:checked + span, .lws-scale label:nth-child(6) input:checked + span { background: #15803d; }
.lws-scale .lws-na input:checked + span { background: #e2e8f0; color: #334155; }
.lws-scale input:focus-visible + span { outline: 2px solid #1957b8; outline-offset: -2px; }
.lws-note { width: 100%; box-sizing: border-box; }
.lws-ta { display: flex; flex-direction: column; gap: 4px; font-weight: 600; }
.lws-ta textarea { width: 100%; box-sizing: border-box; font: inherit; font-weight: 400; }
.lws-form .btn-primary { align-self: flex-start; }
@media (max-width: 760px) { .lws-sugg, .lws-plan { grid-template-columns: 1fr; } .lws-row { grid-template-columns: 1fr; } }
/* v715: Analyze - Top 10 (municipalities): same narrow, wrapping headings as Good Municipalities */
#mytop table.pf-list { width: 100%; }
#mytop table.pf-list th { white-space: normal; line-height: 1.25; vertical-align: bottom; padding: 8px 8px; max-width: 110px; overflow-wrap: break-word; }
#mytop table.pf-list th.pf-th-wide { max-width: 130px; }
#mytop table.pf-list td { padding: 8px 8px; }
#mytop .pf-town-pop > summary.pr-bub { white-space: normal; max-width: 220px; }
/* v716: Top 10 - the address to look near, under the county */
.pf-look { margin-top: 6px; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 170px; }
.pf-look a.pf-map-bub { font-size: .9rem; }
/* v717: Analyze - every Score heading bubble and every score number: the same yellow, same text color */
details.pr-pop > summary.pr-bub.pf-score-bub, .lq-help > summary.pr-bub.pf-score-bub { background: #fef3c7; border: 1px solid #f5c542; color: #7a4d00; font-weight: 800; }
details.pr-pop > summary.pr-bub.pf-score-bub:hover { background: #fde68a; }
span.pf-score, span.pf-score.pf-shi, span.pf-score.pf-smid, span.pf-score.pf-slo { background: #fef3c7; color: #7a4d00; border: 1px solid #f5c542; }
#mytop table.pf-list th.pf-score-th, #parlors table.pf-list th.pf-score-th, #cands table.pf-list th.pf-score-th { white-space: nowrap; max-width: none; }
/* v718: Top 10 - "Near" + the address bubble on its own line under Municipality and County */
#mytop tr.pf-has-look > td { border-bottom: 0; padding-bottom: 2px; }
#mytop tr.pf-look-row > td { padding-top: 0; }
#mytop .pf-look { display: flex; flex-direction: row; align-items: center; gap: 8px; margin: 0; min-width: 0; }
#mytop .pf-look-w { flex: 0 0 auto; font-weight: 700; color: var(--muted); font-size: .85rem; }
#mytop .pf-look a.pf-map-bub { flex: 1 1 auto; width: 100%; box-sizing: border-box; }
/* v719: Analyze - Location under achievers */
#under table.pf-list { width: 100%; }
#under table.pf-list th { white-space: normal; line-height: 1.25; vertical-align: bottom; padding: 8px 8px; max-width: 110px; overflow-wrap: break-word; }
#under table.pf-list td { padding: 8px 8px; }
#under td.pf-par-name { min-width: 170px; max-width: 240px; }
#under .pf-head > p { flex: 1 1 320px; margin: 0; }
.pf-pct { display: inline-block; margin-top: 3px; padding: 1px 8px; border-radius: 999px; font-weight: 800; font-size: .82rem; }
.pf-pct-lo { background: #fde8e8; color: #b42318; }
.pf-pct-mid { background: #fff4dc; color: #8a5a00; }
.pf-pct-hi { background: #dcfce7; color: #14532d; }
/* v720: Location under achievers - Terminal operator / Type of location drop-downs */
.pf-ufilter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; margin: 4px 0 10px; }
.pf-ufilter label { display: flex; flex-direction: column; gap: 3px; font-size: .82rem; font-weight: 700; color: var(--muted); }
.pf-ufilter select { min-width: 220px; max-width: 320px; }


/* ---------- vgperform v104: from vgperform.com v89-v103 (headline logos, the other states' home page boxes) ---------- */

/* v89: the selected state's logo on the same line as the home page headline */
.headline-row { display: flex; align-items: center; gap: 18px; margin: 0 0 .5rem; }
.headline-row h1 { margin: 0; min-width: 0; }
.headline-logo { display: block; flex: none; width: auto; height: clamp(76px, 11vw, 150px); max-width: 40%; object-fit: contain; }
.headline-logo.headline-logo-sm { height: 64px; max-width: 34%; }
.headline-row .law-title { margin: 0; }
.law-card .headline-row { margin: 4px 0 12px; }
@media (max-width: 520px) { .headline-row { gap: 12px; } .headline-logo { height: 64px; } .headline-logo.headline-logo-sm { height: 52px; } }

/* v89: the Illinois logo next to the "How does your location compare?" / averages tables */
.table-title-row { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; }
.table-title-row h2, .table-title-row h3 { margin: 0; min-width: 0; }
.table-title-logo { display: block; flex: none; width: auto; height: 40px; }
.earn-dialog .table-title-row { margin: 2px 0 6px; }

/* v101: other states: "Video gaming in (state)" across the top; Get notified and What can you earn? as their own full-width boxes */
.state-top-eyebrow { margin: 0 0 14px; font-size: .95rem; }
.state-right { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.state-top .notify-card { margin: 0; padding: 18px 20px; background: #eef4ff; border: 1px solid #c9dafa; border-radius: 16px; }
[data-theme="dark"] .state-top .notify-card { background: #16284a; border-color: #2a4677; }
.notify-card .h3 { font-size: 1.15rem; margin: 0 0 6px; }
.notify-card > p { margin: 0 0 10px; }
.notify-card .law-form { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; margin: 0; }
.notify-card .law-form input[type="email"] { flex: 1 1 200px; min-width: 0; }
.notify-card .law-form .btn { flex: none; }
.notify-card .notify-note { margin: 10px 0 0; }
.notify-card .alert { margin: 0; }
.earn-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 16px 20px; margin: 0; }
.earn-card .h3 { font-size: 1.15rem; margin: 0 0 4px; }
.earn-card p { margin: 0; }
.earn-card .earn-btn { flex: none; margin: 0; }
.state-top .law-card .headline-row { margin-top: 0; }
@media (max-width: 900px) {
    /* phones / tablets: Get notified, the law box, What can you earn?, then the message board */
    .state-left { display: contents; }
    .state-left > .notify-card { order: 1; }
    .state-left > .law-card { order: 2; }
    .state-right { order: 3; }
}
@media (max-width: 480px) { .notify-card .law-form { flex-direction: column; } .notify-card .law-form input[type="email"] { flex: none; } .notify-card .law-form .btn { align-self: stretch; } }

/* v102: message boards hidden for now; right column = What can you earn?, then Get notified */
@media (max-width: 900px) { .state-left > .law-card { order: 1; } .state-right { order: 2; } }


/* ---------- vgperform v104: the state being worked in (bar under the top menu, signed in) ---------- */
.work-state { order: 2; position: relative; margin: 0; }
.work-state > summary { list-style: none; display: flex; align-items: center; gap: 6px; cursor: pointer; padding: 2px 10px 2px 4px;
    border: 1px solid #cfd8e6; border-radius: 999px; background: #fff; font-weight: 700; font-size: .85rem; color: #1f2d44; white-space: nowrap; }
.work-state > summary::-webkit-details-marker { display: none; }
.work-state > summary:hover { border-color: #9dbcf0; background: #eef4ff; }
.work-state-img { display: block; width: auto; height: 24px; max-width: 30px; object-fit: contain; }
.work-state-chev { width: 14px; height: 14px; flex: none; }
.work-state[open] .work-state-chev { transform: rotate(180deg); }
.work-state-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 200px; padding: 6px;
    background: #fff; border: 1px solid #cfd8e6; border-radius: 12px; box-shadow: 0 12px 30px rgba(20, 32, 51, .18); }
.work-state-list a { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 8px; color: #1f2d44; text-decoration: none; font-weight: 600; }
.work-state-list a img { width: auto; height: 26px; max-width: 34px; object-fit: contain; }
.work-state-list a:hover { background: #eef4ff; }
.work-state-list a.active { background: #dbe8ff; font-weight: 800; }
.work-state-note { margin: 4px 6px; max-width: 220px; white-space: normal; }
[data-theme=dark] .work-state > summary { background: transparent; border-color: #3a4a63; color: #d6e2f5; }
[data-theme=dark] .work-state-list { background: #13213a; border-color: #2c3f5c; }
[data-theme=dark] .work-state-list a { color: #d6e2f5; }
[data-theme=dark] .work-state-list a:hover, [data-theme=dark] .work-state-list a.active { background: rgba(47,111,214,.28); }
@media (max-width: 760px) { .work-state-list { right: auto; left: 0; } }

/* ---------- vgperform v106 / v109: Missouri / Pennsylvania license list (Dashboard and Locations) - laid out like Illinois Locations ---------- */
.sl-head h1 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sl-state { display: inline-flex; align-items: center; gap: 8px; font-size: .65em; font-weight: 700; padding: 4px 12px 4px 6px;
    border: 1px solid #cfd8e6; border-radius: 999px; background: #fff; }
.sl-state img { height: 30px; width: auto; max-width: 40px; object-fit: contain; }
.sl-sub { margin: 4px 0 0; }
.sl-list .gl-top { align-items: center; }
.sl-count { margin-right: auto; font-weight: 700; }
.sl-table .gl-search select { width: 100%; min-width: 0; }
.sl-table .gl-search input { min-width: 0; }
.sl-name strong { display: block; }
.sl-legal { display: block; }
.sl-nowrap { white-space: nowrap; }
.sl-table tbody.is-loading { opacity: .5; }
[data-theme=dark] .sl-state { background: transparent; border-color: #3a4a63; }

/* vgperform v109: the state selector at the far left of the bar under the top menu */
.whoami-inner .work-state { order: 0; margin-right: 6px; }
@media (max-width: 760px) { .work-state-list { right: auto; left: 0; } }
.whoami-inner .work-state-list { right: auto; left: 0; }
/* v109: the state lists have more columns than Illinois - every column gets its own width (the table scrolls sideways on small screens) */
.sl-list .table-wrap, .sl-list { overflow-x: auto; }
.sl-table td { vertical-align: top; }
/* v110: the address pill (map popup) gets room so it doesn't squeeze to a few letters a line */
.sl-table a.map-link { padding: 4px 8px; gap: 4px; }
.sl-table a.map-link { overflow-wrap: normal; word-break: normal; }
.sl-list > .pager { justify-content: center; margin-top: 10px; }
/* v111: Review / create (or Review / edit) under the last column of the Missouri / Pennsylvania list */
.sl-review-wrap { margin-top: 6px; }
.sl-table a.sl-review { white-space: normal; text-align: center; font-variant: normal; text-decoration: none; padding: 3px 10px; font-size: .78rem; }
/* v113: the yellow name bubble gets room, like Illinois */
/* v114: the "Active alcohol licenses · ... (data.mo.gov)" line between the search boxes and the list */
table.gaming-list.sl-table thead tr.sl-note-row td { padding: 0 5px 8px; border: 0; background: transparent; }
.sl-note-row .sl-sub { margin: 0; font-variant: normal; }
/* v116: Missouri - the phone, license type and contact under the address, city and county */
.sl-table .sl-under { margin-top: 6px; font-size: .84rem; color: var(--muted); }
.sl-table .sl-under-phone a { white-space: nowrap; }
.sl-table .sl-under-contact::before { content: "Contact: "; font-variant: normal; }
.sl-list .gl-op-pick > span { white-space: nowrap; }

/* v123: Missouri / Pennsylvania / Nebraska use Illinois's own column widths (5 columns); only these are extra */
.sl-table .gl-type-select { width: 100%; }
.sl-table .sl-under-county { margin-top: 4px; }
.sl-table td.gl-earned .sl-earned-none { color: var(--muted); font-size: .85rem; font-variant: normal; }
.sl-table td.gl-earned .sl-lic { margin-top: 6px; font-size: .78rem; font-weight: 700; color: var(--muted); }
.sl-table .gl-op { font-size: .78rem; color: var(--muted); margin-top: 4px; }table.gaming-list.sl-table td.gl-cell-has-sw { padding-bottom: 36px; }   /* v123: room for the Target / Working switch under the extra lines */
.sl-il-only { max-width: 720px; } .sl-il-only h2 { display: flex; align-items: center; gap: 10px; } .sl-il-only .stl-flag, .stl-flag { height: 28px; width: auto; } .sl-il-only-btns { display: flex; flex-wrap: wrap; gap: 10px; }   /* v124 */
/* vgperform v128: Super admin > Own % (admin/owners.php) */
.own-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin: 0 0 14px; }
.own-search { display: flex; gap: 8px; align-items: center; flex: 1 1 320px; }
.own-search input { flex: 1 1 auto; min-width: 0; }
.own-form { margin-bottom: 16px; }
.own-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 14px; }
.own-grid label { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; font-weight: 700; }
.own-grid label > span { color: var(--muted); }
.own-grid .own-wide { grid-column: span 2; }
.own-grid textarea { width: 100%; }
.own-actions { display: flex; gap: 10px; margin: 14px 0 0; }
.own-remove { margin-top: 10px; }
.own-co { margin-bottom: 14px; }
.own-co-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 8px; }
.own-co-head h2 { margin: 0; }
.own-co-head .btn { margin-left: auto; }
.own-total { font-weight: 700; font-size: .9rem; color: #146c35; }
.own-total.is-under { color: var(--muted); }
.own-total.is-over { color: #b42318; }
.own-table td { vertical-align: top; }
@media (max-width: 760px) { .own-grid { grid-template-columns: 1fr 1fr; } .own-grid .own-wide { grid-column: 1 / -1; } }
/* vgperform v129: Own % - company tree and money */
.own-crumbs { font-weight: 700; font-size: .92rem; }
.own-crumbs a { text-decoration: none; }
.own-of { font-size: .85rem; color: var(--muted); font-weight: 700; }
.own-money { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px 14px; margin: 6px 0 12px; }
.own-money > div { background: rgba(30,158,74,.07); border: 1px solid rgba(30,158,74,.25); border-radius: 10px; padding: 8px 12px; display: flex; flex-direction: column; gap: 2px; }
.own-money span { font-size: .78rem; color: var(--muted); font-weight: 700; }
.own-money b { font-size: 1.05rem; color: #146c35; }
.own-money small { font-size: .78rem; color: var(--muted); }
.own-pct-in { width: 72px; text-align: right; padding: 3px 6px; }
.own-row-co td { background: rgba(127,127,127,.06); }
.own-found { margin: 0; padding-left: 18px; }
[data-theme=dark] .own-money b { color: #4fd17e; }
/* vgperform v130: Own % - the Email bubble */
.own-email-note { margin: 0; }
.own-email-note.ok { color: #146c35; font-weight: 700; }
.own-email-note.err { color: #b42318; font-weight: 700; }
/* vgperform v131: Own % - the + / - circle opens and closes each company; Back to Own % */
.own-toggle { background: none; border: 0; padding: 0; margin: 0; cursor: pointer; display: inline-flex; align-items: center; }
.own-co:not(.is-open) .own-co-head { margin-bottom: 0; }
.own-back { font-weight: 700; }
.own-bar { justify-content: flex-start; }
.own-bar .own-search { margin-left: auto; flex: 0 1 380px; }
/* vgperform v132: Own % - attachments in the Email bubble */
.own-em-saved { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin: 0; }
.own-em-saved legend { font-weight: 600; padding: 0 4px; }
.own-em-saved label { display: flex; align-items: center; gap: 8px; font-weight: 400; margin: 4px 0; }
.own-em-saved input[type=checkbox] { width: 18px; height: 18px; flex: 0 0 auto; }
.board-dialog.own-email-dlg { max-height: calc(100vh - 24px); overflow-y: auto; }
/* vgperform v133: Own % - drag and drop attachments in the Email bubble */
.own-em-att-lbl { display: block; font-weight: 600; margin-bottom: 4px; }
.own-drop { display: flex; align-items: center; justify-content: center; min-height: 70px; padding: 12px; border: 2px dashed #9fb3cf; border-radius: 12px;
    background: rgba(55,138,221,.05); cursor: pointer; text-align: center; position: relative; }
.own-drop.is-over { border-color: #1e9e4a; background: rgba(30,158,74,.1); }
.own-drop-in { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.own-drop-txt { font-size: .9rem; color: var(--muted); }
.own-drop-txt b { color: var(--ink); }
.own-drop-list { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.own-drop-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 8px; font-size: .85rem; }
.own-drop-x { background: none; border: 0; font-size: 1.2rem; line-height: 1; cursor: pointer; color: #b42318; padding: 0 4px; }
.board-dialog .field label.own-drop { display: flex; margin: 0; font-weight: 400; }   /* v133: centered in the box */
/* vgperform v134: Own % - Add / edit owners in each bubble, board member, job description, the ownership tree */
.own-board { display: inline-block; padding: 0 7px; border-radius: 999px; background: #1f3b5a; color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .3px; vertical-align: middle; }
.own-job { color: var(--ink); opacity: .85; margin-top: 2px; }
.own-edit-bar { display: flex; align-items: center; gap: 14px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.own-edit-toggle { gap: 8px; font: inherit; color: var(--ink); }
.own-edit { margin-top: 10px; display: flex; flex-direction: column; gap: 10px; }
.own-q { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px 10px; align-items: end; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(127,127,127,.04); }
.own-q-new { border-style: dashed; border-color: #1e9e4a; background: rgba(30,158,74,.05); }
.own-q-title { grid-column: 1 / -1; margin: 0; }
.own-q label { display: flex; flex-direction: column; gap: 3px; font-size: .78rem; font-weight: 700; color: var(--muted); }
.own-q input { font-size: .9rem; padding: 5px 8px; min-width: 0; }
.own-q .own-q-job { grid-column: span 3; }
.own-q .own-check, .own-grid .own-check { flex-direction: row; align-items: center; gap: 8px; color: var(--ink); align-self: center; }
.own-q-btns { display: flex; gap: 8px; align-items: center; justify-content: flex-end; grid-column: span 2; }
@media (max-width: 900px) { .own-q { grid-template-columns: 1fr 1fr; } .own-q .own-q-job, .own-q-btns { grid-column: 1 / -1; } }
/* the tree */
.own-tree, .own-tree ul { list-style: none; margin: 0; padding: 0; }
.own-tree ul { margin-left: 22px; padding-left: 18px; border-left: 2px solid #c8d6e8; }
.own-tree li { position: relative; margin: 6px 0; }
.own-tree ul > li::before { content: ""; position: absolute; left: -18px; top: 18px; width: 16px; border-top: 2px solid #c8d6e8; }
.own-tree-node { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 6px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); border: 1px solid var(--line); background: var(--card); }
.own-tree-co > .own-tree-node { background: rgba(30,158,74,.08); border-color: rgba(30,158,74,.35); }
.own-tree-node:hover { border-color: #1e9e4a; text-decoration: none; }
.own-tree-node small { color: var(--muted); font-size: .78rem; }
.own-tree-pct { font-weight: 700; color: #146c35; }
.own-jump { display: inline-flex; text-decoration: none; }   /* v134 */
/* vgperform v136: owner wallets - Super admin > Own % (referrals, payments, sign-in) and My ownership */
.own-inline { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 12px; margin: 8px 0 14px; }
.own-inline label { display: flex; flex-direction: column; gap: 3px; font-size: .82rem; font-weight: 700; }
.own-inline label > span { color: var(--muted); }
.own-inline > p { flex: 1 1 100%; margin: 0; }
.own-inline-wide { flex: 1 1 220px; }
.own-money-in { width: 110px; text-align: right; }
.own-refs input[type=month], .own-refs input[type=date] { max-width: 150px; }
.own-ref-btns { white-space: nowrap; }
.own-ref-btns form { display: inline-block; margin: 0 4px 4px 0; }
.own-warn { color: #b42318; font-weight: 700; }
.own-preview { margin-left: 10px; vertical-align: middle; }
.subnav-own { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 6px; font-weight: 700; }
.own-mine h3.h4 { margin: 16px 0 6px; }
.own-wallet b { font-size: 1.25rem; }
.own-duties p { margin: 0 0 6px; }
.own-formula { margin: 0; padding-left: 18px; }
.own-formula li { margin-bottom: 8px; }
.own-calc { font-size: .9rem; color: var(--muted); margin-top: 2px; }
.own-calc b { color: inherit; }
.own-refs td:first-child { min-width: 180px; }
/* vgperform v137: ROI */
.own-money b.own-neg, .own-neg { color: #b42318; }
.own-pos { color: #146c35; }
[data-theme=dark] .own-money b.own-neg, [data-theme=dark] .own-neg { color: #ff8a80; }
/* vgperform v138: a company as an owner */
.own-board.own-cotag { background: #6b4fbb; }
.own-q-co { border-style: dashed; margin-top: 8px; }
.own-q-co .own-q-btns { grid-column: span 1; }
.own-in-pct { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); }
