/*
    J.G. look, matched to 50State's quote card (Gabe, 2026-10-27): same type (Inter for text, Archivo for headings), same calm navy text on a
    soft blue-grey page and rounded white panels, but in J.G.'s own colors from the logo (sky blue, with coral as the accent where 50State
    uses orange). Loaded LAST on every layout, so it only overrides; delete the <link> to go back to the old look.
*/
:root {
    --jg-ink: #0b2545;          /* headings, numbers (50State's navy) */
    --jg-text: #2c4660;         /* body text: darker than the old grey #7c8798, easier to read */
    --jg-muted: #66809a;
    --jg-bg: #f2f6f9;           /* page */
    --jg-card: #ffffff;
    --jg-line: #dbe5ee;
    --jg-blue: #1d8fc4;         /* J.G. blue, dark enough for white text (logo sky blue #3cb1e4 is too light for it) */
    --jg-blue-dark: #15729d;
    --jg-blue-soft: #e4f3fb;
    --jg-sky: #3cb1e4;          /* logo blue */
    --jg-coral: #f4837d;        /* logo coral */
    --jg-coral-ink: #c4473f;
    --jg-radius: 12px;

    --bs-primary: var(--jg-blue);
    --bs-primary-rgb: 29, 143, 196;
    --bs-body-color: var(--jg-text);
    --bs-body-bg: var(--jg-bg);
    --bs-body-font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    --bs-link-color: var(--jg-blue-dark);
}

body {
    font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.55;
    color: var(--jg-text);
    background: var(--jg-bg);
}

h1, h2, h3, h4, h5, .page-title {
    font-family: Archivo, system-ui, sans-serif;
    font-stretch: 108%;
    font-weight: 700;
    color: var(--jg-ink);
    letter-spacing: -.01em;
    text-wrap: balance;
}

b, strong, th { color: var(--jg-ink); }
a { color: var(--jg-blue-dark); }
.text-muted { color: var(--jg-muted) !important; }

/* Primary color everywhere Bootstrap or the old theme hard-coded it */
.bg-primary { background-color: var(--jg-blue) !important; }
.text-primary { color: var(--jg-blue) !important; }
.border-primary { border-color: var(--jg-blue) !important; }
.btn-primary {
    background-color: var(--jg-blue);
    border-color: var(--jg-blue);
    color: #fff;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: var(--jg-blue-dark) !important;
    border-color: var(--jg-blue-dark) !important;
    color: #fff;
}
.btn-outline-primary { color: var(--jg-blue-dark); border-color: var(--jg-blue); }
.btn-outline-primary:hover { background-color: var(--jg-blue); border-color: var(--jg-blue); color: #fff; }
.btn { border-radius: 10px; font-weight: 500; }
.badge { border-radius: 999px; font-weight: 600; }

/* Panels: white, rounded, a thin line instead of heavy shadows */
.card, .modal-content, .offcanvas {
    background: var(--jg-card);
    border: 1px solid var(--jg-line);
    border-radius: var(--jg-radius);
}
.card-header { background: var(--jg-card); border-bottom: 1px solid var(--jg-line); }

/* Tables: the blue header bar becomes a quiet label row like 50State's card */
.table { color: var(--jg-text); border-color: var(--jg-line); }
.table > :not(caption) > * > * { border-bottom-color: var(--jg-line); }
.table thead.bg-primary, .table thead.bg-primary td, .table thead.bg-primary th {
    background: var(--jg-blue-soft) !important;
    color: var(--jg-ink) !important;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.table thead.bg-primary tr { border-bottom: 1px solid var(--jg-line) !important; }

/* Form fields: soft fill, J.G. blue focus ring */
.form-control, .form-select {
    border-color: var(--jg-line);
    border-radius: 10px;
    color: var(--jg-ink);
}
.form-control:focus, .form-select:focus {
    border-color: var(--jg-sky);
    box-shadow: 0 0 0 .2rem rgba(60, 177, 228, .25);
}
label, .form-label { color: var(--jg-ink); font-weight: 500; }

/* Coral = J.G.'s accent (where 50State uses orange): alerts that need attention */
.alert { border-radius: var(--jg-radius); }
.alert-danger { border-color: var(--jg-coral); }

/* Numbers line up in columns */
.text-right, .text-end, td.tax-fee-amount { font-variant-numeric: tabular-nums; }

/* The dealer's "Next step" bar under the deal header (owner, 2026-10-28): slim, soft J.G. blue, one button on the right */
.jg-next-step {
    display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem;
    margin-top: .75rem; padding: .5rem .75rem;
    background: var(--jg-blue-soft); border: 1px solid #bfe2f3; border-radius: var(--jg-radius);
    color: var(--jg-ink); font-size: .92rem;
}
.jg-next-step .jg-next-step-text { flex: 1 1 14rem; min-width: 0; }
.jg-next-step .feather-icon, .jg-next-step svg { width: 18px; height: 18px; color: var(--jg-blue); flex: 0 0 auto; }
.jg-next-step .btn { margin-left: auto; white-space: nowrap; }
.jg-next-step[data-kind="info"] { background: #f4f7fa; border-color: var(--jg-line); }
.jg-next-step[data-kind="info"] svg { color: var(--jg-muted); }
/* One soft pulse on what the "Next step" button points at (no looping) */
@keyframes jgFlowPulse { 0% { box-shadow: 0 0 0 0 rgba(29, 143, 196, .55); } 100% { box-shadow: 0 0 0 14px rgba(29, 143, 196, 0); } }
.jg-flow-pulse { animation: jgFlowPulse 1.5s ease-out 1; border-radius: 10px; }

/* The guided dispute (Jordan, 2026-10-28): step dots, big tappable choice cards, chips, a friendly check */
.jg-dots { display: flex; gap: 6px; }
.jg-dots span { width: 8px; height: 8px; border-radius: 999px; background: var(--jg-line); transition: width .25s ease, background .25s ease; }
.jg-dots span.past { background: var(--jg-sky); }
.jg-dots span.on { width: 22px; background: var(--jg-blue); }
.jg-choices { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
@media (max-width: 380px) { .jg-choices { grid-template-columns: 1fr; } }
.jg-choice {
    display: flex; flex-direction: column; align-items: flex-start; gap: .2rem; text-align: left;
    padding: .8rem; min-height: 6.5rem; background: var(--jg-card); color: var(--jg-ink);
    border: 1px solid var(--jg-line); border-radius: var(--jg-radius);
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.jg-choice:hover, .jg-choice:focus-visible { border-color: var(--jg-blue); box-shadow: 0 4px 14px rgba(29, 143, 196, .15); transform: translateY(-1px); outline: 0; }
.jg-choice svg { width: 22px; height: 22px; color: var(--jg-blue); margin-bottom: .2rem; }
.jg-choice b { font-size: .95rem; line-height: 1.25; }
.jg-choice span { font-size: .8rem; color: var(--jg-muted); line-height: 1.3; }
.jg-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.jg-chip {
    padding: .45rem .8rem; border: 1px solid var(--jg-line); border-radius: 999px; background: var(--jg-card);
    color: var(--jg-ink); font-size: .87rem; text-align: left; transition: background .15s ease, border-color .15s ease;
}
.jg-chip:hover { border-color: var(--jg-blue); }
.jg-chip.on { background: var(--jg-blue-soft); border-color: var(--jg-blue); color: var(--jg-blue-dark); font-weight: 600; }
.jg-chip-amount { color: var(--jg-muted); font-variant-numeric: tabular-nums; margin-left: .25rem; }
.jg-chip.on .jg-chip-amount { color: var(--jg-blue-dark); }
.jg-check { width: 56px; height: 56px; }
.jg-check circle { fill: none; stroke: var(--jg-blue); stroke-width: 3; stroke-dasharray: 151; stroke-dashoffset: 151; animation: jgCheckDraw .5s ease-out forwards; }
.jg-check path { fill: none; stroke: var(--jg-blue); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: jgCheckDraw .35s .4s ease-out forwards; }
@keyframes jgCheckDraw { to { stroke-dashoffset: 0; } }
.jg-success-toast {
    position: fixed; left: 50%; top: 30%; transform: translateX(-50%); z-index: 1090;
    display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 1.2rem 1.6rem; max-width: calc(100vw - 32px);
    background: var(--jg-card); color: var(--jg-ink); font-weight: 600; text-align: center;
    border: 1px solid var(--jg-line); border-radius: var(--jg-radius); box-shadow: 0 12px 32px rgba(11, 37, 69, .18);
    animation: jgToastIn .2s ease-out;
}
@keyframes jgToastIn { from { opacity: 0; transform: translate(-50%, 8px); } }
@media (prefers-reduced-motion: reduce) {
    .jg-check circle, .jg-check path { animation: none; stroke-dashoffset: 0; }
    .jg-success-toast, .jg-flow-pulse { animation: none; }
    .jg-choice, .jg-dots span { transition: none; }
}

/* "Upload your documents" panel (owner, 2026-10-28): a packet drop zone, one row per document, a check once a file is in */
.jg-progress { height: 6px; border-radius: 999px; background: var(--jg-line); overflow: hidden; }
.jg-progress span { display: block; height: 100%; width: 0; background: var(--jg-blue); transition: width .4s ease; }
.jg-drop {
    display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; width: 100%; padding: .8rem;
    border: 2px dashed #bfe2f3; border-radius: var(--jg-radius); background: var(--jg-blue-soft); color: var(--jg-ink); cursor: pointer;
}
.jg-drop svg { width: 26px; height: 26px; color: var(--jg-blue); }
.jg-drop.drag, .jg-doc-row.drag { border-color: var(--jg-blue); background: #d3ecf8; }
.jg-drop[data-done="1"] { border-style: solid; border-color: #9fd6b2; background: #eefaf1; }
.jg-doc-row {
    display: flex; align-items: flex-start; gap: .6rem; padding: .6rem .5rem; margin-bottom: .4rem;
    border: 1px solid var(--jg-line); border-radius: 10px; background: var(--jg-card);
}
.jg-doc-row .jg-doc-main { flex: 1 1 auto; min-width: 0; font-size: .9rem; }
.jg-doc-check { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 2px; border: 2px solid var(--jg-line); border-radius: 999px; position: relative; }
.jg-doc-row[data-done="1"] .jg-doc-check { border-color: #2e9e5b; background: #2e9e5b; }
.jg-doc-row[data-done="1"] .jg-doc-check::after {
    content: ""; position: absolute; left: 5px; top: 1px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.jg-doc-row.busy, .jg-drop.busy { opacity: .6; pointer-events: none; }
/* "Next step" when the deal is Ready to Send: soft green, check icon */
.jg-next-step[data-kind="success"] { background: #eaf7ef; border-color: #a9dcbc; }
.jg-next-step[data-kind="success"] svg { color: #2e9e5b; }

/* Required Documents: one clean checklist everywhere (owner, 2026-10-28) */
.jg-req { display: flex; flex-direction: column; gap: .4rem; }
.jg-req-head { font-weight: 700; color: var(--jg-ink); font-size: .95rem; margin-bottom: .1rem; }
.jg-req-row {
    display: flex; align-items: flex-start; gap: .6rem; padding: .6rem .7rem;
    border: 1px solid var(--jg-line); border-radius: 10px; background: var(--jg-card);
}
.jg-req-main { flex: 1 1 auto; min-width: 0; }
.jg-req-title { font-weight: 600; color: var(--jg-ink); line-height: 1.35; overflow-wrap: anywhere; }
.jg-req-desc { font-size: .85rem; color: var(--jg-text); line-height: 1.35; margin-top: .1rem; overflow-wrap: anywhere; }
.jg-req-form { color: var(--jg-muted); font-size: .8rem; white-space: nowrap; }
.jg-req-note { font-size: .82rem; color: var(--jg-muted); margin-top: .2rem; overflow-wrap: anywhere; }
.jg-req-note.clamp { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.jg-req-toggle { font-size: .8rem; }
.jg-req-actions { flex: 0 0 auto; display: flex; flex-direction: column; gap: .3rem; align-items: flex-end; }
.jg-req-actions svg { width: 15px; height: 15px; }
@media (max-width: 420px) { .jg-req-dl { display: none; } }
.jg-pill { display: inline-block; padding: .05rem .5rem; border-radius: 999px; font-size: .72rem; font-weight: 600; vertical-align: middle;
    background: var(--jg-blue-soft); color: var(--jg-blue-dark); }
.jg-pill-soft { background: #f1f4f7; color: var(--jg-muted); }
.jg-pill-jg { background: #fff1e6; color: #a04000; }
/* Owner tags (2026-11-10): who completes an item; Buyer / J.G. rows are information, never asks */
.jg-pill-owner { background: #eef1f4; color: var(--jg-muted); }
.jg-pill-owner-buyer { background: #e8f1fb; color: #1b4f8a; }
.jg-pill-owner-jg { background: #fff1e6; color: #a04000; }
.jg-req-info { margin-top: .5rem; padding-top: .4rem; border-top: 1px dashed var(--jg-line); }
.jg-req-info-head { font-size: .85rem; font-weight: 600; color: var(--jg-muted); margin: .2rem 0 .3rem; }
.jg-req-row.jg-req-infrow { background: #f7f9fb; border-style: dashed; }
.jg-req-row.jg-req-infrow .jg-doc-check { border-style: dashed; opacity: .5; }
.jg-req-row.jg-req-infrow .jg-req-title { font-weight: 500; color: var(--jg-text); }
.jg-req-group { margin-top: .3rem; }
.jg-req-group > summary { cursor: pointer; font-weight: 600; color: var(--jg-text); font-size: .9rem; padding: .3rem 0; }
.jg-req-group[open] > summary { margin-bottom: .3rem; }
.jg-req-group > .jg-req-row + .jg-req-row { margin-top: .4rem; }
.jg-req-count { display: inline-block; min-width: 1.4rem; text-align: center; padding: 0 .35rem; border-radius: 999px; background: var(--jg-line); font-size: .75rem; }
.jg-req-row[data-done="1"] .jg-doc-check { border-color: #2e9e5b; background: #2e9e5b; }
.jg-req-row[data-done="1"] .jg-doc-check::after {
    content: ""; position: absolute; left: 5px; top: 1px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.jg-req-row.busy { opacity: .6; pointer-events: none; }
.jg-req-row.drag { border-color: var(--jg-blue); background: #d3ecf8; }
.jg-req-headrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem .6rem; }
.jg-req-print { display: flex; flex-wrap: wrap; gap: .4rem; }
.jg-req-print .btn { display: inline-flex; align-items: center; gap: .3rem; }
.jg-req-print svg { width: 15px; height: 15px; }
.jg-req-printhelp { font-size: .78rem; color: var(--jg-muted); margin: -.1rem 0 .2rem; }
.jg-req-printhelp [data-print-forms-msg] { color: var(--jg-coral-ink); }

/* The "Next step" bar, impossible to miss (owner + Jordan, 2026-10-28): a bold, friendly color block with a gently animated button */
.jg-next-step.jg-next-big {
    padding: .9rem 1rem; gap: .6rem 1rem; font-size: 1rem; border-width: 0; border-radius: 14px;
    background: linear-gradient(120deg, #1d8fc4 0%, #3cb1e4 100%); color: #fff; box-shadow: 0 6px 18px rgba(29, 143, 196, .25);
}
.jg-next-big .jg-next-icon { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 999px; background: rgba(255, 255, 255, .22); display: inline-flex; align-items: center; justify-content: center; }
.jg-next-big .jg-next-icon svg { width: 22px; height: 22px; color: #fff; }
.jg-next-big .jg-next-title { display: block; font-family: Archivo, system-ui, sans-serif; font-size: 1.15rem; color: #fff; line-height: 1.25; }
.jg-next-big .jg-next-sub { display: block; font-size: .92rem; opacity: .95; }
.jg-next-big .jg-next-btn {
    margin-left: auto; white-space: nowrap; font-weight: 700; padding: .55rem 1.1rem; border-radius: 999px; border: 0;
    background: #fff; color: var(--jg-blue-dark); animation: jgNextGlow 2.6s ease-in-out infinite;
}
.jg-next-big .jg-next-btn:hover { background: #f2f9fd; color: var(--jg-blue-dark); }
.jg-next-big .jg-next-arrow { display: inline-block; animation: jgNextNudge 3s ease-in-out infinite; }
.jg-next-step.jg-next-big[data-kind="attention"] { background: linear-gradient(120deg, #e8665f 0%, #f4837d 100%); box-shadow: 0 6px 18px rgba(244, 131, 125, .3); }
.jg-next-big[data-kind="attention"] .jg-next-btn { color: var(--jg-coral-ink); }
.jg-next-step.jg-next-big[data-kind="success"] { background: linear-gradient(120deg, #23935a 0%, #3cbf7a 100%); box-shadow: 0 6px 18px rgba(46, 158, 91, .3); }
.jg-next-big[data-kind="success"] .jg-next-btn { color: #1f7a48; }
.jg-next-big[data-kind="success"] .jg-next-icon svg { color: #fff; }
.jg-next-step.jg-next-big[data-kind="info"] { background: #eef5fa; color: var(--jg-ink); box-shadow: none; border: 1px solid var(--jg-line); }
.jg-next-big[data-kind="info"] .jg-next-title { color: var(--jg-ink); }
.jg-next-big[data-kind="info"] .jg-next-icon { background: #dcebf5; }
.jg-next-big[data-kind="info"] .jg-next-icon svg { color: var(--jg-blue); }
@keyframes jgNextGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); } 50% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); } }
@keyframes jgNextNudge { 0%, 80%, 100% { transform: translateX(0); } 88% { transform: translateX(5px); } 94% { transform: translateX(0); } }
@media (max-width: 576px) { .jg-next-big .jg-next-btn { margin-left: 0; width: 100%; } }
@media (prefers-reduced-motion: reduce) { .jg-next-big .jg-next-btn, .jg-next-big .jg-next-arrow { animation: none; } }

/* J.G.'s answer pop-ups (owner, 2026-10-28): icon header, checklist picks, one clear primary button */
.jg-staff-modal .modal-header { gap: .7rem; align-items: center; }
.jg-staff-icon { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--jg-blue-soft); }
.jg-staff-icon svg { width: 20px; height: 20px; color: var(--jg-blue); }
.jg-staff-icon.ok { background: #eaf7ef; } .jg-staff-icon.ok svg { color: #2e9e5b; }
.jg-staff-icon.miss { background: #fff1ef; } .jg-staff-icon.miss svg { color: var(--jg-coral-ink); }
.jg-picks { display: flex; flex-direction: column; gap: .35rem; max-height: 45vh; overflow-y: auto; }
.jg-pick { display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem; border: 1px solid var(--jg-line); border-radius: 10px; cursor: pointer; margin: 0; transition: background .15s ease, border-color .15s ease; }
.jg-pick:hover { border-color: var(--jg-blue); }
.jg-pick.on { background: #fff6f5; border-color: var(--jg-coral); }
/* style.css makes .form-check-input absolute (old Bootstrap 4 rule): keep each box in its own row, at a fixed size */
.jg-pick .form-check-input { position: static; float: none; margin: 0; flex: 0 0 auto; width: 1.15rem; height: 1.15rem; }
.jg-pick .jg-pill { flex: 0 0 auto; }
.jg-pick-name { flex: 1 1 auto; color: var(--jg-ink); font-weight: 600; }

/* "Where is this paperwork?" (owner, 2026-10-28; Views/Shared/_PaperworkChooser.cshtml): two big cards on Bulk Upload and the deal form's
   packet reader, no default. Coral = Quote only (the paperwork is not here), green = Paperwork is here (Shawnee office). Until one is
   picked the cards glow gently; the picked card gets a check mark and its color, the other dims. Then a strip shows the mode. */
:root {
    --jg-where-quote: var(--jg-coral);
    --jg-where-quote-ink: var(--jg-coral-ink);
    --jg-where-quote-soft: #fff1ef;
    --jg-where-here: #1f9d74;
    --jg-where-here-ink: #11704f;
    --jg-where-here-soft: #e6f6ef;
    --jg-where-warn-soft: #fff6e5;
    --jg-where-warn-ink: #8a5a00;
}
.jg-where { margin: 14px 0; }
.jg-where-prompt { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-family: Archivo, system-ui, sans-serif; font-weight: 700; font-size: 18px; color: var(--jg-ink); }
.jg-where-step { width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--jg-blue); color: #fff; font-size: 18px; }
.jg-where-help { width: 20px; height: 20px; border-radius: 50%; border: 1px solid currentColor; display: inline-grid; place-items: center; font-size: 12px; font-weight: 700; cursor: help; opacity: .75; flex: none; }
.jg-where-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.jg-where-card { position: relative; display: flex; flex-direction: column; gap: 3px; margin: 0; padding: 18px 20px 16px; text-align: left; cursor: pointer;
                 background: #fff; border: 2px solid var(--jg-line); border-radius: 16px;
                 transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, opacity .25s ease, filter .25s ease; }
.jg-where-card input { position: absolute; opacity: 0; pointer-events: none; }
.jg-where-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -18px rgba(11, 37, 69, .45); }
.jg-where-card:focus-within { outline: 3px solid rgba(29, 143, 196, .35); outline-offset: 2px; }
.jg-where-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 30px !important; margin-bottom: 6px; }
.jg-where-card.quote .jg-where-icon { background: var(--jg-where-quote-soft); color: var(--jg-where-quote-ink); }
.jg-where-card.here .jg-where-icon { background: var(--jg-where-here-soft); color: var(--jg-where-here-ink); }
.jg-where-tag { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.jg-where-card.quote .jg-where-tag { color: var(--jg-where-quote-ink); }
.jg-where-card.here .jg-where-tag { color: var(--jg-where-here-ink); }
.jg-where-head { font-family: Archivo, system-ui, sans-serif; font-weight: 700; font-size: 19px; color: var(--jg-ink); line-height: 1.25; }
.jg-where-sub { font-size: 14px; color: var(--jg-text); }
.jg-where-small { font-size: 12.5px; color: var(--jg-muted); margin-top: 4px; }
.jg-where-check { position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff;
                  font-size: 20px !important; transform: scale(0); transition: transform .28s cubic-bezier(.2, .9, .3, 1.4); }
.jg-where-card.quote .jg-where-check { background: var(--jg-where-quote); }
.jg-where-card.here .jg-where-check { background: var(--jg-where-here); }
.jg-where-card.quote:has(input:checked) { border-color: var(--jg-where-quote); background: var(--jg-where-quote-soft); box-shadow: 0 0 0 4px rgba(244, 131, 125, .2); }
.jg-where-card.here:has(input:checked) { border-color: var(--jg-where-here); background: var(--jg-where-here-soft); box-shadow: 0 0 0 4px rgba(31, 157, 116, .18); }
.jg-where-card:has(input:checked) .jg-where-check { transform: scale(1); }
.jg-where-cards:has(input:checked) .jg-where-card:not(:has(input:checked)) { opacity: .5; filter: saturate(.35); }
.jg-where-cards:has(input:checked) .jg-where-card:not(:has(input:checked)):hover { opacity: .8; }
/* Not answered yet: a gentle glow, the two cards taking turns */
.jg-where:not(:has(input:checked)) .jg-where-card { animation: jg-where-glow 2.6s ease-in-out infinite; }
.jg-where:not(:has(input:checked)) .jg-where-card.here { animation-delay: 1.3s; }
.jg-where.need:not(:has(input:checked)) .jg-where-card { animation-name: jg-where-glow-need; }
@keyframes jg-where-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(60, 177, 228, 0); } 50% { box-shadow: 0 0 0 7px rgba(60, 177, 228, .2); border-color: var(--jg-sky); } }
@keyframes jg-where-glow-need { 0%, 100% { box-shadow: 0 0 0 0 rgba(244, 131, 125, 0); } 50% { box-shadow: 0 0 0 8px rgba(244, 131, 125, .28); border-color: var(--jg-coral); } }
.jg-where-need { display: none; margin-top: 8px; font-size: 13.5px; font-weight: 600; color: var(--jg-coral-ink); }
.jg-where.need:not(:has(input:checked)) .jg-where-need { display: block; }
.jg-where-last { font-size: 12px; color: var(--jg-muted); margin-top: 6px; }
.jg-where-last:empty { display: none; }
.jg-where.compact { margin: 10px 0 4px; }
.jg-where.compact .jg-where-prompt { font-size: 15.5px; margin-bottom: 8px; }
.jg-where.compact .jg-where-step { width: 26px; height: 26px; font-size: 16px; }
.jg-where.compact .jg-where-cards { gap: 10px; }
.jg-where.compact .jg-where-card { padding: 12px 14px; border-radius: 13px; }
.jg-where.compact .jg-where-icon { width: 38px; height: 38px; border-radius: 11px; font-size: 22px !important; margin-bottom: 4px; }
.jg-where.compact .jg-where-head { font-size: 15.5px; }
.jg-where.compact .jg-where-sub { font-size: 13px; }
.jg-where.compact .jg-where-check { top: 10px; right: 10px; width: 24px; height: 24px; font-size: 16px !important; }
@media (max-width: 640px) { .jg-where-cards { grid-template-columns: 1fr; } }

/* The mode strip across the top of the packet list, the per-packet chip and the row notes */
.jg-where-strip { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 12px; padding: 10px 16px; border-radius: 12px; font-size: 14px; animation: jg-where-in .3s ease both; }
.jg-where-strip .material-symbols-outlined, .jg-where-strip .jg-ic { font-size: 20px; }
.jg-where-strip b { color: inherit; letter-spacing: .04em; }
.jg-where-strip.quote { background: var(--jg-where-quote-soft); color: var(--jg-where-quote-ink); border: 1px solid #f8c6c2; border-left: 6px solid var(--jg-where-quote); }
.jg-where-strip.here { background: var(--jg-where-here-soft); color: var(--jg-where-here-ink); border: 1px solid #bfe6d5; border-left: 6px solid var(--jg-where-here); }
.jg-where-strip .jg-where-change { margin-left: auto; border: 0; background: none; padding: 0; color: inherit; font-weight: 600; font-size: 13px; text-decoration: underline; }
.jg-where-summary { margin: 0 0 12px; padding: 10px 16px; border-radius: 12px; background: #fff; border: 1px solid var(--jg-line); font-size: 13.5px; display: flex; flex-direction: column; gap: 4px; animation: jg-where-in .3s ease both; }
.jg-where-summary a { font-weight: 600; }
.jg-where-chip { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; padding: 3px 10px; border: 0; border-radius: 999px; font-size: 11.5px; font-weight: 700; cursor: pointer; }
.jg-where-chip .material-symbols-outlined, .jg-where-chip .jg-ic { font-size: 13px; }
.jg-where-chip.quote { background: var(--jg-where-quote-soft); color: var(--jg-where-quote-ink); }
.jg-where-chip.here { background: var(--jg-where-here-soft); color: var(--jg-where-here-ink); }
.jg-where-chip.none { background: #f2f4f7; color: var(--jg-muted); cursor: default; }
.jg-where-chip.flipped { outline: 2px dashed currentColor; outline-offset: 1px; }
.jg-where-note { margin-top: 6px; padding: 5px 9px; border-radius: 8px; font-size: 12.5px; line-height: 1.35; }
.jg-where-note.ok { background: var(--jg-where-here-soft); color: var(--jg-where-here-ink); }
.jg-where-note.warn { background: var(--jg-where-warn-soft); color: var(--jg-where-warn-ink); }
@keyframes jg-where-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
    .jg-where-card, .jg-where-check { transition: none; }
    .jg-where-card:hover { transform: none; }
    .jg-where:not(:has(input:checked)) .jg-where-card { animation: none; border-color: var(--jg-sky); }
    .jg-where.need:not(:has(input:checked)) .jg-where-card { border-color: var(--jg-coral); }
    .jg-where-strip, .jg-where-summary { animation: none; }
}

/* Send cap hold (McKenzie DMV and other offices with a daily cap): a friendly light-blue note, not a warning */
.jg-hold-box { margin-top: 6px; padding: 6px 10px; border-radius: 8px; background: var(--jg-blue-soft); color: var(--jg-ink); border: 1px solid #c5e5f5; border-left: 4px solid var(--jg-blue); font-size: 12.5px; line-height: 1.35; font-weight: 500; }


/* Page loader (owner, 2026-11-07): replaces the theme's blue ripple. Logo breathing over a three-dot wave in the logo's
   blue, coral and navy; it fades in after a moment so a fast page never flashes it. */
.preloader { background: #f5f9fc; }
.jg-loader {
    position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
    opacity: 0; animation: jgLoaderIn .3s ease .15s forwards;
}
.jg-loader img { width: 132px; height: auto; animation: jgLoaderBreath 1.8s ease-in-out infinite; }
.jg-loader-dots { display: flex; gap: 9px; }
.jg-loader-dots i { width: 10px; height: 10px; border-radius: 50%; background: #3aa9e0; animation: jgLoaderWave 1.1s ease-in-out infinite; }
.jg-loader-dots i:nth-child(2) { background: #f27b6f; animation-delay: .14s; }
.jg-loader-dots i:nth-child(3) { background: #0b2545; animation-delay: .28s; }
@keyframes jgLoaderIn { to { opacity: 1; } }
@keyframes jgLoaderBreath { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.045); } }
@keyframes jgLoaderWave { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-9px); opacity: 1; } }

/* The bar along the top while the next page loads */
.jg-nav-progress {
    position: fixed; top: 0; left: 0; z-index: 100000; height: 3px; width: 0; opacity: 0; pointer-events: none;
    border-radius: 0 3px 3px 0; background: linear-gradient(90deg, #3aa9e0, #f27b6f); box-shadow: 0 0 10px rgba(58, 169, 224, .55);
}
.jg-nav-progress.run { opacity: 1; animation: jgNavProgress 8s cubic-bezier(.1, .7, .2, 1) forwards; }
@keyframes jgNavProgress { 0% { width: 0; } 8% { width: 38%; } 35% { width: 72%; } 100% { width: 93%; } }

@media (prefers-reduced-motion: reduce) {
    .jg-loader, .jg-loader img, .jg-loader-dots i { animation: none; opacity: 1; }
    .jg-nav-progress.run { animation: none; width: 70%; }
}

/* Dashboard card tabs (owner, 2026-11-08 phone screenshot: "Overdue" broke into "Overd / ue" and 1629 wrapped onto two lines, and the
   active Tasks tab went dark navy). Labels and counts stay on one line, the active tab is white like Reviews waiting. */
.jg-rv-tabs .nav-link { white-space: nowrap; min-width: 0; }
.jg-rv-tabs .nav-link > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.jg-rv-count { white-space: nowrap; flex: 0 0 auto; }
.jg-rv-tabs .nav-link.active, .jg-rv-tabs .nav-link.active:hover, .jg-rv-tabs .nav-link.active:focus { background: #fff !important; color: #0b2545 !important; }
@media (max-width: 480px) {
    .jg-rv-tabs .nav-link { padding: 6px 6px !important; gap: 5px !important; font-size: 13.5px; }
    .jg-rv-count { padding: 1px 6px; font-size: 11.5px; min-width: 20px; }
}
/* A tapped link answers at once (owner, 2026-11-08): a soft blue pulse while the next page loads */
.jg-tapped { animation: jgTapped .7s ease-in-out infinite; border-radius: 10px; }
@keyframes jgTapped { 0%, 100% { box-shadow: inset 0 0 0 2px rgba(27, 111, 179, .35); background-color: rgba(58, 169, 224, .12); } 50% { box-shadow: inset 0 0 0 2px rgba(27, 111, 179, .8); background-color: rgba(58, 169, 224, .26); } }
.jg-tapped { position: relative; }
.jg-tap-spin { position: absolute; right: 12px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; border: 2px solid rgba(27, 111, 179, .25); border-top-color: #1b6fb3; animation: jgTapSpin .7s linear infinite; pointer-events: none; }
@keyframes jgTapSpin { to { transform: rotate(360deg); } }
/* The loader shown on the current page while a slow page loads: fades in, no delay */
.preloader.jg-leaving { opacity: 1; background: rgba(245, 249, 252, .92); }
.preloader.jg-leaving .jg-loader { animation-delay: 0s; animation-duration: .2s; }
@media (prefers-reduced-motion: reduce) { .jg-tapped { animation: none; box-shadow: 0 0 0 3px rgba(58, 169, 224, .35); } }

/* Tap fun (owner, 2026-11-08): a blue + coral ripple bursts from the finger, and an "Opening Dashboard..." bubble with J.G.'s three
   bouncing dots slides up from the bottom. Fixed on top of the page, transform/opacity only, so it keeps moving while the next page loads. */
.jg-ripple { position: fixed; z-index: 100001; width: 0; height: 0; pointer-events: none; }
.jg-ripple i { position: absolute; left: -40px; top: -40px; width: 80px; height: 80px; border-radius: 50%; border: 3px solid #3aa9e0; opacity: .7; animation: jgRipple .7s cubic-bezier(.2, .7, .3, 1) forwards; }
.jg-ripple i + i { border-color: #f27b6f; animation-delay: .12s; }
@keyframes jgRipple { 0% { transform: scale(.15); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }
.jg-opening { position: fixed; z-index: 100001; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); display: inline-flex; align-items: center; gap: 10px;
    padding: 11px 18px; border-radius: 999px; background: #0b2545; color: #fff; font-weight: 600; font-size: 15px; box-shadow: 0 10px 30px rgba(11, 37, 69, .35);
    transform: translate(-50%, 0); animation: jgOpening .35s cubic-bezier(.2, .9, .3, 1.3); pointer-events: none; max-width: calc(100vw - 32px); white-space: nowrap; }
@keyframes jgOpening { from { transform: translate(-50%, 140%); } to { transform: translate(-50%, 0); } }
.jg-opening-dots { display: inline-flex; gap: 5px; }
.jg-opening-dots i { width: 8px; height: 8px; border-radius: 50%; background: #3aa9e0; animation: jgOpenDot .9s ease-in-out infinite; }
.jg-opening-dots i:nth-child(2) { background: #f27b6f; animation-delay: .12s; }
.jg-opening-dots i:nth-child(3) { background: #fff; animation-delay: .24s; }
@keyframes jgOpenDot { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .jg-ripple { display: none; } .jg-opening { animation: none; transform: translate(-50%, 0); } .jg-opening-dots i { animation: none; } }

/* The tapped button itself (owner, 2026-11-08: "no animation on the button itself"): a quick press-in squish, then a bright shimmer
   sweeping across it while the next page loads. Transform/opacity only, which iPhones keep animating during a page change. */
.jg-tapped { position: relative !important; overflow: hidden !important; animation: jgPress .45s cubic-bezier(.3, 1.6, .5, 1) !important; }
.jg-tapped::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 60%; pointer-events: none; border-radius: inherit;
    background: linear-gradient(100deg, rgba(58, 169, 224, 0), rgba(58, 169, 224, .45) 45%, rgba(242, 123, 111, .35) 60%, rgba(242, 123, 111, 0));
    transform: translateX(-120%); animation: jgSweep .9s ease-in-out .15s infinite; }
@keyframes jgPress { 0% { transform: scale(1); } 35% { transform: scale(.94); } 100% { transform: scale(1); } }
@keyframes jgSweep { 0% { transform: translateX(-120%); } 100% { transform: translateX(220%); } }
@media (prefers-reduced-motion: reduce) { .jg-tapped { animation: none !important; } .jg-tapped::after { animation: none; transform: none; width: 100%; opacity: .5; } }

/* The tapped button's glowing twin (owner, 2026-11-08): laid exactly over it, pops in, glows and shimmers until the page changes */
.jg-ghost { position: fixed; z-index: 100000; pointer-events: none; border-radius: 10px; overflow: hidden;
    box-shadow: 0 0 0 2px #3aa9e0, 0 0 18px rgba(58, 169, 224, .55); background: rgba(58, 169, 224, .14);
    animation: jgGhostIn .35s cubic-bezier(.3, 1.6, .5, 1), jgGhostGlow 1.1s ease-in-out .35s infinite; }
.jg-ghost i { position: absolute; top: 0; bottom: 0; left: 0; width: 55%;
    background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .75) 45%, rgba(242, 123, 111, .45) 60%, rgba(255, 255, 255, 0));
    transform: translateX(-120%); animation: jgSweep .9s ease-in-out .2s infinite; }
@keyframes jgGhostIn { 0% { transform: scale(.94); } 60% { transform: scale(1.03); } 100% { transform: scale(1); } }
@keyframes jgGhostGlow { 0%, 100% { opacity: 1; } 50% { opacity: .6; } }
@media (prefers-reduced-motion: reduce) { .jg-ghost, .jg-ghost i { animation: none; } .jg-ghost i { display: none; } }

/* owner, 2026-11-08 (phone test): iPhone browsers can freeze motion the moment a page change starts, so every tap effect above is
   visible from its very first frame; the motion is a bonus where the phone allows it */

/* Final look (owner, 2026-11-08): no finger ring; the tapped button's outline is a moving rainbow of J.G.'s colors (blue, purple, coral,
   gold); the "Opening..." bubble sits in the middle of the screen, bigger */
.jg-ghost { box-shadow: 0 0 22px rgba(122, 75, 209, .30); background: rgba(58, 169, 224, .10); }
.jg-ghost::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 3px;
    background: linear-gradient(90deg, #3aa9e0, #7a4bd1, #f27b6f, #ffc83d, #3aa9e0); background-size: 300% 100%;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
    animation: jgRainbow 1.4s linear infinite; }
@keyframes jgRainbow { to { background-position: 300% 0; } }
.jg-opening { top: 50%; bottom: auto; transform: translate(-50%, -50%); padding: 16px 26px; font-size: 18px; gap: 12px;
    background: linear-gradient(135deg, #0b2545, #1b3f6b); box-shadow: 0 18px 50px rgba(11, 37, 69, .45), 0 0 0 3px rgba(255, 255, 255, .6);
    animation: jgOpeningPop .35s cubic-bezier(.2, .9, .3, 1.4); }
@keyframes jgOpeningPop { from { transform: translate(-50%, -50%) scale(.7); } to { transform: translate(-50%, -50%) scale(1); } }
.jg-opening-dots i { width: 10px; height: 10px; }
.jg-opening-dots i:nth-child(3) { background: #ffc83d; }
@media (prefers-reduced-motion: reduce) { .jg-ghost::before { animation: none; } .jg-opening { animation: none; } }

/* Icons on New Deal + the dashboard doors use Font Awesome (owner, 2026-11-08: on his iPhone the Material Symbols font didn't draw,
   so the icon names showed as words like "note_add"). Centred like the old ones. */
.jg-ic { line-height: 1; font-style: normal; }

/* Sales lead import preview (owner, 2026-11-08): one card per dealer instead of a sideways table; whole-file pickers stacked with labels */
.sh-imp-whole { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; margin-bottom: 10px; }
.sh-imp-whole label { display: flex; flex-direction: column; gap: 2px; margin: 0; }
.sh-imp-list { display: flex; flex-direction: column; gap: 6px; }
.sh-imp-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 10px; align-items: start; padding: 10px 12px; border: 1px solid #e3edf3; border-radius: 10px; background: #fff; }
.sh-imp-row.on { border-color: #b9d6ec; background: #f6fbff; }
.sh-imp-row.dup { border-color: #f3c3c3; background: #fff7f7; }
.sh-imp-row > .form-check-input { margin-top: 3px; width: 1.2em; height: 1.2em; }
.sh-imp-main { min-width: 0; color: #0b2545; }
.sh-imp-main b { display: block; overflow-wrap: anywhere; }
.sh-imp-meta { font-size: 13px; color: #66809a; overflow-wrap: anywhere; }
.sh-imp-who { grid-column: 2; max-width: 260px; }
@media (min-width: 992px) { .sh-imp-row { grid-template-columns: auto minmax(0, 1fr) 220px; } .sh-imp-who { grid-column: 3; grid-row: 1; } }
/* Import cards, phone polish (owner, 2026-11-08 screenshot: tick boxes sat half outside the card and the salesperson picker poked out
   to the right, so the pop-up scrolled sideways). Tick box in its own column, picker on its own full-width line under the dealer. */
.sh-imp-list, .sh-imp-row { max-width: 100%; box-sizing: border-box; }
.sh-imp-row { overflow: hidden; }
.sh-imp-row > .form-check-input { float: none !important; position: static !important; margin: 3px 0 0 0 !important; grid-column: 1; grid-row: 1; }
.sh-imp-main { grid-column: 2; grid-row: 1; }
.sh-imp-row > .sh-imp-who { grid-column: 2 !important; grid-row: 2 !important; width: 100% !important; max-width: 100% !important; position: static !important; float: none !important; margin: 4px 0 0 !important; }
@media (min-width: 992px) { .sh-imp-row > .sh-imp-who { grid-column: 3 !important; grid-row: 1 !important; margin: 0 !important; } }

/* A call's notes on the lead's timeline (owner 2026-11-09): the 50State write-up right where the rep works */
.sh-cr-btn { margin-top: 6px; padding: 6px 12px; border: 1px solid #b9d6ec; border-radius: 999px; background: #eef6fc; color: #145a8c; font-weight: 700; font-size: 13.5px; }
.sh-cr-btn:hover { background: #e1effa; }
.sh-cr { margin-top: 8px; padding: 12px 14px; border: 1px solid #dfe9f2; border-radius: 12px; background: #fbfdff; color: #0b2545; font-size: 14px; max-width: 100%; overflow: hidden; }
.sh-cr-top { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin-bottom: 6px; }
.sh-cr-out { padding: 2px 10px; border-radius: 999px; background: #0b2545; color: #fff; font-weight: 700; font-size: 12.5px; }
.sh-cr-sum { margin: 4px 0 8px; line-height: 1.45; }
.sh-cr-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.sh-cr-chip { padding: 2px 9px; border-radius: 999px; border: 1px solid #dfe9f2; color: #8aa0b4; font-size: 12px; }
.sh-cr-chip.on { border-color: #b7e3c9; background: #effaf3; color: #1d7a46; font-weight: 700; }
.sh-cr-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 2px 10px; padding: 6px 0; border-top: 1px dashed #e7eef5; }
.sh-cr-row b { color: #2c4660; font-size: 13px; }
.sh-cr-row.keep b { color: #1d7a46; } .sh-cr-row.fix b { color: #b8433d; }
@media (max-width: 575px) { .sh-cr-row { grid-template-columns: 1fr; } }
.sh-cr-tr { margin-top: 8px; } .sh-cr-tr > summary { cursor: pointer; font-weight: 700; color: #145a8c; }
.sh-cr-tr .ln { padding: 3px 0; font-size: 13.5px; overflow-wrap: anywhere; } .sh-cr-tr .ln .ts { color: #8aa0b4; font-size: 11.5px; margin-right: 6px; font-variant-numeric: tabular-nums; }
.sh-cr-tr .ln.rep b { color: #145a8c; } .sh-cr-tr .ln.dlr b { color: #b8433d; }
/* The 50State call hand-off (owner, 2026-11-09: "make it stand out... fun... encourage them to use it"): green gradient card that
   bounces in, a ringing phone, and one big pulsing "Start the call" button */
.sh-callbar.sh-callgo { background: linear-gradient(135deg, #0f9d58, #1fbf75) !important; color: #fff !important; border: 0 !important;
    box-shadow: 0 14px 34px -12px rgba(15, 157, 88, .7) !important; animation: shGoIn .45s cubic-bezier(.2, 1.3, .4, 1) both; }
.sh-callgo .words .w { font-size: 18px; font-weight: 800; color: #fff; }
.sh-callgo .words .who { color: rgba(255, 255, 255, .9); }
.sh-callgo .btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; width: 100%; }
.sh-callgo .btns .btn-outline-primary { background: rgba(255, 255, 255, .15); color: #fff; border-color: rgba(255, 255, 255, .6); }
.sh-callgo .btns .btn-link { color: rgba(255, 255, 255, .85); }
.sh-callgo-btn { flex: 1 1 100%; order: -1; padding: 13px 18px; border-radius: 14px; background: #fff !important; color: #0b7a44 !important; font-size: 18px; font-weight: 800;
    border: 0; text-align: center; animation: shGoPulse 1.4s ease-in-out infinite; }
.sh-callgo-ring { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .2); flex: 0 0 auto;
    animation: shRing 1.6s ease-in-out infinite; }
.sh-callgo .notice { background: rgba(255, 255, 255, .95) !important; color: #7a3d00 !important; border-radius: 10px; }
@keyframes shGoIn { from { transform: translate(-50%, 30px) scale(.96); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
@keyframes shGoPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); } 50% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); } }
@keyframes shRing { 0%, 50%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(-14deg); } 20%, 40% { transform: rotate(14deg); } }
@media (prefers-reduced-motion: reduce) { .sh-callbar.sh-callgo, .sh-callgo-btn, .sh-callgo-ring { animation: none; } }

/* Phones (Jay, 2026-11-10: "the logo looks a tad off-center"): one icon on the left, two on the right left the logo centered in the gap,
   not on the screen. It now sits on the true center; the icons keep their places. */
@media (max-width: 767.98px) {
    .topbar .navbar-header { position: relative; }
    .topbar .navbar-header .navbar-brand { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; padding: 0; }
}

/* Owner 2026-11-14 night (three screenshots of the lead page running off the right edge on his iPhone, while Chrome at 375-430 px shows nothing
   wide): on iOS a single box wider than the screen widens the whole page, and overflow-x on <body> is ignored there. The page root clips sideways
   overflow on phones, so rows keep wrapping at the screen edge and only the one wide box (if any) gets cut, never the page. */
@media (max-width: 576px) {
  html { overflow-x: hidden; overflow-x: clip; }
  .page-wrapper { max-width: 100vw; overflow-x: hidden; overflow-x: clip; }
}
