/* Golf Simulator Automation - dashboard light theme */
:root {
    /* ===== Fairway Light ===== deep teal-navy ink + the brand green accent on a soft,
       green-cool ground. Semantic status colours (ok / warn / danger) are kept SEPARATE
       from the accent so "needs attention" never competes with a call-to-action. */
    /* 2026-07-13: retargeted to the golfsimulatorautomation.com MARKETING look — lime accent,
       ink darks, Playfair + DM Sans, rounder corners. Semantic --ok / --warn / --danger left
       intact so "needs attention" never competes with the accent. */
    --navy:#181818; --navy-deep:#0F0F0F; --navy-ink:#181818;
    --green:#E4EE4F; --green-dark:#C2CC3A; --green-deep:#181818; --green-wash:#F6F9CF;
    --sky:#0070C8;
    --bg:#FAFBF3; --surface:#FFFFFF; --surface-2:#F2F4E7; --surface-3:#EAECDD;
    --border:#E7E9D6; --border-2:#DCDECB; --muted:#6B7064; --muted-2:#8A8F80;
    --text:#1A1C17; --text2:#5F6458;
    --danger:#DC2626; --danger-dark:#B91C1C; --danger-wash:#FBE9E9;
    --warn:#F59E0B; --warn-wash:#FBF1DE;
    --ok:#1A9D4A; --ok-wash:#E7F5EA;
    --radius:18px; --radius-sm:12px;
    --font-body:'DM Sans','Segoe UI',system-ui,-apple-system,sans-serif;
    /* One family everywhere. The display token is now an ALIAS of the body stack rather than a
       serif of its own, so headings can never drift away from body copy. Kept as a token (instead
       of deleting it) because ~6 rules reference it — re-pointing beats rewriting them all. */
    --font-display:var(--font-body);
    --shadow-sm:0 1px 2px rgba(16,37,25,.05),0 1px 1px rgba(16,37,25,.04);
    --shadow-md:0 6px 18px -6px rgba(16,37,25,.13);
    --shadow-lg:0 16px 38px -12px rgba(16,37,25,.20);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-body); background: var(--bg); color: var(--navy-ink); min-height: 100vh; -webkit-font-smoothing: antialiased; }
h1,h2,h3,h4 { font-family: var(--font-display); color: var(--navy); font-weight: 700; letter-spacing: -.01em; }

/* Login */
.login-page { display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse at top, rgba(91,197,0,.06), transparent 60%), linear-gradient(180deg,#FFFFFF 0%,var(--bg) 100%); }
.login-container { background: var(--surface); padding: 44px 40px; border-radius: 16px; width: 420px; border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.login-logo { text-align: center; margin-bottom: 30px; }
.login-logo-img { width: 84px; height: 84px; object-fit: contain; margin-bottom: 12px; filter: drop-shadow(0 8px 22px rgba(0,48,104,.18)); }
.login-logo h1 { color: var(--navy); font-size: 22px; line-height: 1.2; }
.login-logo p { color: var(--muted); margin-top: 6px; font-size: 13px; font-family: var(--font-body); }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; color: var(--navy-ink); margin-bottom: 6px; font-size: 13px; font-weight: 500; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 11px 14px; background: var(--surface); border: 1px solid var(--border); color: var(--navy-ink); border-radius: var(--radius-sm); font-size: 14px; font-family: var(--font-body); transition: border-color .15s ease, box-shadow .15s ease; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(91,197,0,.15); }
/* Checkboxes/radios must stay inline with their label text (not stretch full width like text inputs). */
.form-group input[type="checkbox"], .form-group input[type="radio"] { width: auto; display: inline-block; margin: 0 8px 0 0; padding: 0; vertical-align: middle; accent-color: var(--green); box-shadow: none; }
.form-group label:has(> input[type="checkbox"]), .form-group label:has(> input[type="radio"]) { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.form-group small { font-weight: 400; }
/* Notification bell */
.notif-wrap { position: relative; }
.notif-bell { position: relative; background: none; border: none; font-size: 16px; cursor: pointer; line-height: 1; padding: 5px; border-radius: 8px; transition: background .15s ease; }
.notif-bell:hover { background: var(--surface-2); }
.notif-badge { position: absolute; top: -1px; right: -1px; background: var(--danger); color: #fff; font-size: 9px; font-weight: 700; min-width: 14px; height: 14px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; padding: 0 3px; box-shadow: 0 0 0 2px var(--surface); }
/* Hover tooltip shown only when there are unread notifications */
.notif-bell.has-unread::after { content: attr(data-tip); position: absolute; top: 130%; right: 0; background: var(--navy-ink); color: #fff; font-size: 11.5px; font-weight: 500; white-space: nowrap; padding: 6px 10px; border-radius: 8px; box-shadow: 0 6px 18px rgba(15,27,51,.28); opacity: 0; pointer-events: none; transform: translateY(-4px); transition: opacity .15s ease, transform .15s ease; z-index: 9500; }
.notif-bell.has-unread::before { content: ""; position: absolute; top: 118%; right: 8px; border: 5px solid transparent; border-bottom-color: var(--navy-ink); opacity: 0; transition: opacity .15s ease; z-index: 9500; }
.notif-bell.has-unread:hover::after { opacity: 1; transform: translateY(0); }
.notif-bell.has-unread:hover::before { opacity: 1; }
.notif-panel { position: absolute; right: 0; top: 38px; width: 360px; max-height: 460px; overflow-y: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: 0 12px 32px rgba(15,27,51,.18); z-index: 9000; }
.notif-head { padding: 12px 16px; font-weight: 600; font-size: 13.5px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; color: var(--navy-ink); letter-spacing: -.005em; }
.notif-head .notif-count { background: var(--surface-2); color: var(--text2); font-size: 11px; padding: 2px 8px; border-radius: 999px; font-weight: 600; }
.notif-empty { padding: 28px 18px; color: var(--text2); text-align: center; font-size: 13px; }
.notif-item { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); align-items: flex-start; }
.notif-item:last-child { border-bottom: 0; }
.notif-item.unread { background: rgba(91,197,0,.06); }
.notif-item.unread .notif-title::after { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #5BC500; margin-left: 6px; vertical-align: middle; }
.notif-icon { font-size: 16px; line-height: 18px; text-align: center; padding-top: 1px; }
.notif-body { min-width: 0; }
.notif-title { font-weight: 600; font-size: 13px; color: var(--navy-ink); line-height: 1.35; }
.notif-msg { font-size: 12.5px; color: var(--text2); margin-top: 3px; line-height: 1.45; }
.notif-time { font-size: 11.5px; color: var(--muted); margin-top: 5px; font-weight: 500; }

/* Top-right user menu (name + dropdown) */
.user-menu { position: relative; }
.user-menu-btn { display: flex; align-items: center; gap: 9px; background: transparent; border: 1px solid var(--border); border-radius: 999px; padding: 5px 10px 5px 6px; cursor: pointer; font-family: var(--font-body); transition: background .15s ease, border-color .15s ease; }
.user-menu-btn:hover { background: var(--surface-2); border-color: var(--muted-2); }
.user-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 12.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; text-transform: uppercase; flex: 0 0 auto; }
.user-name { font-size: 13.5px; font-weight: 600; color: var(--navy-ink); max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-caret { font-size: 11px; color: var(--muted); transition: transform .18s ease; }
.user-menu.open .user-caret { transform: rotate(180deg); }
.user-menu-panel { position: absolute; right: 0; top: 46px; width: 230px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: 0 12px 32px rgba(15,27,51,.18); z-index: 9000; overflow: hidden; padding: 6px; }
.user-menu-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.user-menu-name { font-size: 14px; font-weight: 600; color: var(--navy-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-menu-mail { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.user-menu-plan { display: inline-block; margin-top: 8px; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: var(--green-wash); color: var(--green-deep); }
.user-menu-plan.inactive { background: #FEF3C7; color: #92400E; }
.user-menu-item { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; background: transparent; border: none; cursor: pointer; padding: 9px 12px; border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 13.5px; font-weight: 500; color: var(--navy-ink); text-decoration: none; transition: background .12s ease; }
.user-menu-item:hover { background: var(--surface-2); }
.user-menu-item.danger { color: var(--danger); }
.user-menu-item.danger:hover { background: rgba(220,38,38,.08); }
@media (max-width: 640px) { .user-name { display: none; } }
.notif-time { font-size: 11px; color: var(--text2); margin-top: 4px; }
.btn { padding: 10px 22px; border: none; border-radius: 999px; cursor: pointer; font-size: 14px; font-weight: 600; font-family: var(--font-body); transition: background .15s ease, transform .1s ease, box-shadow .15s ease, color .15s ease; }
.btn:active { transform: translateY(1px); }
/* Marketing-look accent button — lime pill with BLACK text (white would vanish on lime); dark fill on hover. */
.btn-primary { background: var(--green); color: #111; box-shadow: none; }
.btn-primary:hover { background: #181818; color: #fff; box-shadow: none; }
/* Visible keyboard-focus ring on every interactive control (was missing). */
.btn:focus-visible, .tk-tab:focus-visible, .bk-chip:focus-visible, .ven-bay-tab:focus-visible,
.user-menu-btn:focus-visible, .bay-del:focus-visible, .notif-bell:focus-visible, .guide-help-btn:focus-visible,
a:focus-visible { outline: 2px solid var(--green-dark); outline-offset: 2px; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: var(--danger-dark); }
.btn-warn { background: var(--warn); color: #1F2A44; }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--navy-ink); }
.btn-outline:hover { background: var(--surface-2); border-color: var(--muted-2); }
.btn-small { padding: 6px 12px; font-size: 12px; }
.btn-full { width: 100%; }
.error-msg { color: var(--danger); margin-top: 10px; text-align: center; min-height: 20px; font-size: 13px; }
.register-link { text-align: center; margin-top: 18px; color: var(--muted); font-size: 14px; }
.register-link a { color: var(--green-dark); text-decoration: none; font-weight: 600; }
.register-link a:hover { color: var(--navy); }

/* ===== Split-screen auth (login) ===== */
.auth-page { min-height: 100vh; background: var(--surface); }
.auth-split { display: flex; min-height: 100vh; }

/* Brand panel */
.auth-brand {
    flex: 0 0 46%;
    position: relative;
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 56px 52px;
    color: #fff;
    background:
        radial-gradient(1100px 480px at 18% 0%, rgba(91,197,0,.18), transparent 55%),
        radial-gradient(900px 600px at 100% 100%, rgba(0,112,200,.22), transparent 55%),
        linear-gradient(155deg, var(--navy) 0%, var(--navy-deep) 100%);
    overflow: hidden;
}
.auth-brand::after {
    content: ""; position: absolute; left: 52px; right: 52px; bottom: 92px; height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,.18), transparent);
}
.auth-brand-inner { margin: auto 0; max-width: 440px; }
.auth-brand-logo { box-sizing: border-box; width: 220px; height: 220px; object-fit: contain; margin-bottom: 26px; background: #fff; border-radius: 24px; padding: 22px; box-shadow: 0 14px 34px rgba(0,0,0,.30); }
.auth-brand-title { color: #fff; font-size: 30px; line-height: 1.15; letter-spacing: -.02em; margin-bottom: 16px; }
.auth-brand-tag { color: rgba(255,255,255,.78); font-size: 16px; line-height: 1.6; font-family: var(--font-body); margin-bottom: 30px; max-width: 400px; }
.auth-feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.auth-feature-list li { position: relative; padding-left: 36px; font-size: 14.5px; color: rgba(255,255,255,.9); font-family: var(--font-body); line-height: 1.4; }
.auth-feature-list li::before {
    content: "✓"; position: absolute; left: 0; top: -1px;
    width: 24px; height: 24px; border-radius: 50%;
    background: rgba(91,197,0,.18); color: var(--green);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; box-shadow: inset 0 0 0 1px rgba(91,197,0,.45);
}
.auth-brand-footer { position: relative; color: rgba(255,255,255,.5); font-size: 12.5px; font-family: var(--font-body); }

/* Form panel */
.auth-form-panel { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 28px; background: var(--surface); }
.auth-form-wrap { width: 100%; max-width: 380px; }
.auth-form-logo { display: none; width: 220px; height: 220px; object-fit: contain; margin: 0 auto 16px; }
.auth-form-head { margin-bottom: 28px; }
.auth-form-head h2 { color: var(--navy); font-size: 26px; letter-spacing: -.01em; }
.auth-form-head p { color: var(--muted); font-size: 14px; margin-top: 6px; font-family: var(--font-body); }

/* Password field with show/hide toggle */
.auth-pass-wrap { position: relative; }
.auth-pass-wrap input { padding-right: 64px; }
.auth-pass-toggle {
    position: absolute; top: 50%; right: 8px; transform: translateY(-50%);
    background: transparent; border: none; cursor: pointer;
    color: var(--green-dark); font-weight: 600; font-size: 12.5px; font-family: var(--font-body);
    padding: 6px 8px; border-radius: 6px; transition: background .15s ease, color .15s ease;
}
.auth-pass-toggle:hover { background: var(--green-wash); color: var(--navy); }

.auth-form-wrap .btn-full { margin-top: 6px; padding: 12px 20px; font-size: 15px; }
.auth-form-wrap .btn-primary:disabled { opacity: .7; cursor: default; box-shadow: none; }

/* Responsive: drop the brand panel, center the form, show the small logo */
@media (max-width: 860px) {
    .auth-brand { display: none; }
    .auth-form-panel { background: radial-gradient(ellipse at top, rgba(91,197,0,.06), transparent 60%), linear-gradient(180deg,#FFFFFF 0%,var(--bg) 100%); }
    .auth-form-head { text-align: center; }
    .auth-form-logo { display: block; }
}

/* Layout - navy sidebar + light main */
.app { display: flex; min-height: 100vh; }
/* Fairway Light sidebar (2026-07-07 redesign) — a pine-tinted near-black rail with a
   GREEN active indicator: soft green-tinted active row + a 3px accent bar on the left
   edge, so the current page reads at a glance instead of a flat grey block. (This is the
   dashboard's own look; the Windows bay app / POS keep their neutral grey.) */
.sidebar { width: 250px; background: #181818; padding: 18px 0; display: flex; flex-direction: column; box-shadow: 4px 0 18px rgba(0,0,0,.28); }
.sidebar-brand { padding: 0 10px 16px; border-bottom: 1px solid rgba(255,255,255,.06); display: flex; flex-direction: column; align-items: stretch; }
.sidebar-logo { width: 100%; max-height: 100px; object-fit: contain; box-sizing: border-box; }
.sidebar-nav { flex: 1; padding: 14px 8px; }
.sidebar-nav a { display: flex; align-items: center; padding: 10px 14px; color: rgba(255,255,255,.72); text-decoration: none; font-size: 14px; transition: color .15s ease, background .15s ease; gap: 10px; border-radius: 9px; margin-bottom: 2px; font-weight: 500; }
.sidebar-nav a:hover { color: #fff; background: rgba(255,255,255,.06); }
.sidebar-nav a.active { color: #fff; background: rgba(228,238,79,.13); box-shadow: none; }
.sidebar-nav a.active::before { content: ""; position: absolute; left: 4px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--green); }
.sidebar-nav a.gated { opacity: .42; cursor: not-allowed; }
.sidebar-nav a.gated::after { content: "\1F512"; margin-left: auto; font-size: 11px; opacity: .8; }
.plan-badge { margin: 10px 16px 0; padding: 6px 10px; background: rgba(91,197,0,.18); color: #c9f5a0; border: 1px solid rgba(91,197,0,.35); border-radius: 999px; font-size: 11px; font-weight: 600; text-align: center; text-transform: uppercase; letter-spacing: .06em; }
.plan-badge:empty { display: none; }
.upgrade-card { max-width: 640px; }
.upgrade-card h2 { color: var(--navy); margin-bottom: 10px; font-family: var(--font-display); }
.upgrade-card p { color: var(--muted); margin-bottom: 8px; }
.upgrade-card a { color: var(--green-dark); font-weight: 600; }
.sidebar-footer { padding: 14px 16px; border-top: 1px solid rgba(255,255,255,.1); }
.sidebar-footer .user-info { font-size: 12.5px; color: rgba(255,255,255,.65); margin-bottom: 10px; }
.sidebar-footer .btn-outline { color: #fff; border-color: rgba(255,255,255,.22); }
.sidebar-footer .btn-outline:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.4); }
.main { flex: 1; overflow-y: auto; }
.topbar { padding: 18px 28px; background: var(--surface); border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; box-shadow: var(--shadow-sm); gap: 12px; }
.topbar-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.topbar h1 { font-size: 22px; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hamburger { display: none; background: transparent; border: none; font-size: 22px; line-height: 1; color: var(--navy); cursor: pointer; padding: 4px 8px; border-radius: 8px; }
.hamburger:hover { background: var(--surface-2); }
.sidebar-backdrop { display: none; position: fixed; inset: 0; background: rgba(15,27,51,.45); z-index: 1100; }
/* On mobile the action buttons are relocated out of the topbar into a strip below it (set by JS). */
#topbarActions.actions-mobile { width: 100%; padding: 0 16px; }
#topbarActions.actions-mobile:not(:empty) { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px 2px; background: var(--bg); }
#topbarActions.actions-mobile .btn { flex: 1 1 auto; min-width: 140px; }
.content { padding: 28px; max-width: 1400px; }

/* Cards */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease; }
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-card .label { color: var(--muted); font-size: 12px; margin-bottom: 6px; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; }
.stat-card .value { font-size: 30px; font-weight: 700; color: var(--navy); font-family: var(--font-display); }
.stat-card .value.green { color: var(--green-dark); }
.stat-card .value.red { color: var(--danger); }
.stat-card .value.yellow { color: var(--warn); }
.stat-card .value.blue { color: var(--sky); }

.bay-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(370px, 1fr)); gap: 18px; }
/* overflow: visible so the Reset dropdown can escape the card on small screens.
   The bay-header below restates its border-radius so its colored background still
   visually clips at the top corners without relying on the parent to clip it. */
.bay-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease; position: relative; }
.bay-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
/* Severity rail — a colour-coded bar down the left edge so the whole grid's health reads
   peripherally. Driven by the bay's real connection + system status (see renderBayCard):
   ok = healthy, warn = degraded, crit = down, off = offline, idle = neutral. z-index keeps
   it above the header background so it runs the full card height. */
.bay-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; border-radius: var(--radius) 0 0 var(--radius); background: var(--border-2); z-index: 2; pointer-events: none; }
.bay-card.sev-ok::before   { background: var(--ok); }
.bay-card.sev-warn::before { background: var(--warn); }
.bay-card.sev-crit::before { background: var(--danger); }
.bay-card.sev-off::before  { background: #9AA8A0; }
.bay-card.sev-idle::before { background: var(--border-2); }
.bay-header { padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); background: var(--surface-2); border-radius: var(--radius) var(--radius) 0 0; }
.bay-header h3 { font-size: 17px; color: var(--navy); }
.bay-header-right { display: flex; align-items: center; gap: 10px; }
.bay-del { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 1px solid var(--border,#D8DFEB); background: var(--surface,#fff); color: var(--muted,#5C6B85); border-radius: 8px; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.bay-del:hover { background: #DC2626; color: #fff; border-color: #DC2626; }
.bay-status { padding: 4px 12px; border-radius: 999px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.bay-status.active, .bay-status.idle { background: var(--green-wash); color: var(--green-deep); }
.bay-status.offline { background: #FEE2E2; color: var(--danger); }
.bay-status.resetting, .bay-status.booting { background: #FEF3C7; color: #B45309; }
.bay-status.restarting { background: #FEE2E2; color: var(--danger); }
.bay-body { padding: 16px 18px; }
.bay-info { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.bay-info .info-item { font-size: 13px; color: var(--navy-ink); }
.bay-info .info-label { color: var(--muted); font-size: 12px; display: block; margin-bottom: 1px; }
.bay-controls { display: flex; gap: 8px; flex-wrap: wrap; }
.bay-controls .btn { flex: 1; min-width: 80px; text-align: center; }

/* Slider */
.slider-group { display: flex; align-items: center; gap: 10px; margin: 8px 0; }
.slider-group label { font-size: 13px; color: var(--muted); min-width: 70px; }
.slider-group input[type="range"] { flex: 1; accent-color: var(--green); }
.slider-group .slider-val { font-size: 13px; min-width: 35px; text-align: right; color: var(--navy-ink); font-weight: 600; }

/* Table */
.table-container { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow-x: auto; box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; padding: 13px 16px; color: var(--muted); font-size: 12px; border-bottom: 1px solid var(--border); background: var(--surface-2); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
td { padding: 12px 16px; font-size: 14px; border-bottom: 1px solid var(--border); color: var(--navy-ink); }
tr:last-child td { border-bottom: none; }
tr:hover { background: var(--surface-2); }

/* Plan badge (used in license/bay rows) */
.plan-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: var(--green-wash); color: var(--green-deep); }
.plan-badge.commercial { background: #DBEAFE; color: #1E40AF; }
.plan-badge.professional { background: #E0E7FF; color: #4338CA; }
.plan-badge.enterprise { background: #FCE7F3; color: #9D174D; }

/* Toast */
.toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 9999; }
.toast { background: var(--surface); color: var(--navy-ink); padding: 14px 20px; border-radius: var(--radius-sm); margin-top: 8px; border-left: 4px solid var(--green); font-size: 14px; animation: slideIn .3s; box-shadow: var(--shadow-md); }
.toast.error   { border-left-color: var(--danger); }
.toast.success { border-left-color: #16A34A; }
.toast.warn    { border-left-color: #F59E0B; }
.toast.info    { border-left-color: #2563EB; }
@keyframes slideIn { from { transform: translateX(100px); opacity:0; } to { transform: translateX(0); opacity:1; } }

/* Modal */
.modal-overlay { display: none; position: fixed; top:0; left:0; right:0; bottom:0; background: rgba(15,27,51,.5); z-index: 9998; align-items: center; justify-content: center; backdrop-filter: blur(2px); }
.modal-overlay.show { display: flex; }
.modal { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; min-width: 420px; max-width: 560px; width: 92vw; max-height: 88vh; overflow-y: auto; box-shadow: var(--shadow-lg); position: relative; }
.modal h2 { margin-bottom: 18px; font-size: 22px; padding-right: 36px; }
.modal-actions { display: flex; gap: 10px; margin-top: 22px; justify-content: flex-end; position: sticky; bottom: -28px; background: var(--surface); padding: 12px 0 4px; }
.modal-close { position: absolute; top: 12px; right: 14px; width: 32px; height: 32px; border: none; background: transparent; color: var(--text2, #6B7280); font-size: 24px; line-height: 1; cursor: pointer; border-radius: 6px; transition: background .12s ease, color .12s ease; z-index: 2; }
.modal-close:hover { background: rgba(0,0,0,.06); color: var(--text, #111); }

/* Venue page — stack the cover + gallery columns below the small breakpoint */
@media (max-width: 900px) {
    .venue-photos-grid { grid-template-columns: 1fr !important; }
}

/* Tickets / generic tab strip used across the dashboard (currently Tickets page) */
.tk-tab {
    background: transparent; border: 0; padding: 12px 18px; cursor: pointer;
    font-family: inherit; font-size: 14px; font-weight: 600;
    color: var(--muted, #6B7280); position: relative;
    border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tk-tab:hover { color: var(--text, #111); }
.tk-tab.active { color: var(--green-deep, #0F5132); border-bottom-color: var(--green-deep, #0F5132); }

/* Venue page — bay tab pills */
.ven-bay-tab {
    display: inline-flex; align-items: center;
    padding: 9px 16px; border-radius: 999px;
    background: var(--surface, white); border: 1.5px solid var(--border);
    color: var(--text, #111); font-family: inherit; font-size: 14px; font-weight: 600;
    cursor: pointer; transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.ven-bay-tab:hover { background: var(--surface-2, #F1F5F9); border-color: #CBD5E1; }
.ven-bay-tab.active { background: var(--green); color: #111; border-color: var(--green); }
.ven-bay-tab.active:hover { background: var(--green-dark); color: #111; }

/* Section */
.section { margin-bottom: 28px; }
.section-title { font-size: 18px; margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; color: var(--navy); font-family: var(--font-display); }

/* Plan-gating - locked features */
.locked { position: relative; opacity: .55; pointer-events: none; }
.locked::after { content: '\1F512  Upgrade required'; position: absolute; top: 8px; right: 8px; background: var(--navy); color: #fff; padding: 4px 10px; border-radius: 999px; font-size: 10px; font-weight: 700; letter-spacing: .04em; pointer-events: auto; }

/* Responsive */
@media (max-width: 768px) {
    /* Off-canvas sidebar toggled by the hamburger */
    .hamburger { display: inline-flex; align-items: center; justify-content: center; }
    .sidebar { position: fixed; top: 0; left: 0; height: 100vh; width: 250px; z-index: 1200; transform: translateX(-100%); transition: transform .25s ease; }
    .sidebar.open { transform: translateX(0); box-shadow: 0 0 50px rgba(0,0,0,.5); }
    .sidebar-backdrop.show { display: block; }
    .topbar { padding: 14px 16px; }
    .topbar h1 { font-size: 18px; }
    .topbar-right { gap: 6px; }
    .content { padding: 18px; }
    .bay-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    /* Modal must never be wider than the viewport */
    .modal { min-width: 0; width: calc(100vw - 32px); max-width: 540px; padding: 22px; }
}
@media (max-width: 420px) {
    .stats-grid { grid-template-columns: 1fr; }
}

/* ===================== Guide system (tour + per-tab help) ===================== */
/* Topbar Help button */
.guide-help-btn { display: inline-flex; align-items: center; gap: 7px; background: transparent; border: 1px solid var(--border); color: var(--muted); border-radius: 999px; padding: 6px 12px 6px 8px; cursor: pointer; font-family: var(--font-body); font-size: 13px; font-weight: 600; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.guide-help-btn:hover { background: var(--green-wash); color: var(--green-deep); border-color: var(--green); }
.guide-help-q { display: inline-flex; align-items: center; justify-content: center; width: 19px; height: 19px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 12px; font-weight: 700; line-height: 1; }
.guide-help-btn:hover .guide-help-q { background: var(--green-dark); }
@media (max-width: 640px) { .guide-help-label { display: none; } .guide-help-btn { padding: 6px; } }

/* Spotlight tour */
.guide-catch { position: fixed; inset: 0; z-index: 10000; background: transparent; }
.guide-catch.dim { background: rgba(15,27,51,.55); }
.guide-spot { position: fixed; z-index: 10001; border-radius: 10px; box-shadow: 0 0 0 9999px rgba(15,27,51,.55), 0 0 0 2px var(--green); pointer-events: none; transition: left .25s ease, top .25s ease, width .25s ease, height .25s ease; }
.guide-tip { position: fixed; z-index: 10002; width: 320px; max-width: calc(100vw - 28px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 16px 18px; font-family: var(--font-body); animation: guideTipIn .2s ease; }
.guide-tip.center { left: 50% !important; top: 50% !important; transform: translate(-50%, -50%); width: 380px; }
@keyframes guideTipIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.guide-tip.center { animation: none; }
.guide-tip-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.guide-step { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--green-deep); text-transform: uppercase; }
.guide-x { background: transparent; border: none; color: var(--muted-2); font-size: 22px; line-height: 1; cursor: pointer; padding: 0 2px; border-radius: 6px; }
.guide-x:hover { color: var(--navy-ink); }
.guide-tip-title { font-size: 16px; font-weight: 700; color: var(--navy-ink); margin-bottom: 5px; }
.guide-tip-body { font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.guide-tip-body b { color: var(--navy-ink); font-weight: 600; }
.guide-tip-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.guide-foot-right { display: flex; gap: 8px; }
.guide-btn { background: var(--green); color: #fff; border: 1px solid var(--green-dark); border-radius: var(--radius-sm); padding: 8px 16px; font-size: 13px; font-weight: 600; font-family: var(--font-body); cursor: pointer; transition: background .15s ease; }
.guide-btn:hover { background: var(--green-dark); }
.guide-btn.ghost { background: transparent; color: var(--navy-ink); border-color: var(--border); }
.guide-btn.ghost:hover { background: var(--surface-2); }
.guide-link { background: transparent; border: none; color: var(--muted-2); font-size: 13px; cursor: pointer; font-family: var(--font-body); padding: 0; }
.guide-link:hover { color: var(--navy-ink); text-decoration: underline; }

/* Per-tab help drawer */
.guide-drawer-back { position: fixed; inset: 0; z-index: 10010; background: rgba(15,27,51,.4); opacity: 0; transition: opacity .24s ease; }
.guide-drawer-back.open { opacity: 1; }
.guide-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 10011; width: 380px; max-width: 92vw; background: var(--surface); border-left: 1px solid var(--border); box-shadow: -12px 0 32px rgba(0,48,104,.14); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .24s ease; }
.guide-drawer.open { transform: none; }
.guide-drawer-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 20px 22px 16px; border-bottom: 1px solid var(--border); }
.guide-drawer-kicker { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green-deep); margin-bottom: 3px; }
.guide-drawer-head h3 { font-size: 19px; color: var(--navy-ink); font-weight: 700; }
.guide-drawer-body { padding: 18px 22px; overflow-y: auto; flex: 1; }
.guide-intro { font-size: 13.5px; line-height: 1.55; color: var(--muted); margin-bottom: 18px; }
.guide-sec-h { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); margin: 0 0 10px; }
.guide-steps { list-style: none; margin: 0 0 22px; padding: 0; }
.guide-steps li { display: flex; gap: 11px; align-items: flex-start; font-size: 13.5px; line-height: 1.5; color: var(--navy-ink); margin-bottom: 12px; }
.guide-steps li b { font-weight: 600; }
.guide-num { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; background: var(--green-wash); color: var(--green-deep); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
.guide-tips { margin: 0; padding-left: 18px; }
.guide-tips li { font-size: 12.5px; line-height: 1.5; color: var(--muted); margin-bottom: 7px; }
.guide-drawer-foot { padding: 14px 22px; border-top: 1px solid var(--border); }
.guide-drawer-foot .guide-btn { width: 100%; }
@media (prefers-reduced-motion: reduce) { .guide-spot, .guide-tip, .guide-drawer, .guide-drawer-back { transition: none; animation: none; } }

/* ===================== Bay card v2: connection, component pills, loading, reset menu ===================== */
.bay-conn { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; border: 1px solid transparent; }
.bay-conn::before { content: ''; width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.bay-conn.online { background: var(--green-wash); color: var(--green-deep); border-color: rgba(91,197,0,.35); }
.bay-conn.online::before { background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.18); }
.bay-conn.offline { background: rgba(220,38,38,.08); color: var(--danger-dark); border-color: rgba(220,38,38,.25); }
.bay-conn.offline::before { background: var(--danger); }
.bay-conn.busy { background: rgba(245,158,11,.10); color: #B45309; border-color: rgba(245,158,11,.30); }
.bay-conn.busy::before { background: var(--warn); animation: bayPulse 1.4s ease-in-out infinite; }

.comp-row { display: flex; flex-wrap: wrap; gap: 6px; }
.bay-status-footer { border-top: 1px solid var(--border); margin: 14px -18px -16px; padding: 12px 18px 14px; background: transparent; border-radius: 0 0 var(--radius) var(--radius); display: flex; flex-direction: column; gap: 8px; }
.comp-pill { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px 4px 9px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; font-size: 12.5px; color: var(--navy-ink); font-weight: 600; }
.comp-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.comp-dot.ok   { background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.16); }
.comp-dot.warn { background: var(--warn); box-shadow: 0 0 0 3px rgba(245,158,11,.16); animation: bayPulse 1.4s ease-in-out infinite; }
.comp-dot.bad  { background: var(--danger); box-shadow: 0 0 0 3px rgba(220,38,38,.16); }
.comp-dot.idle { background: #CBD5E1; }
@keyframes bayPulse { 0%,100% { opacity: 1; } 50% { opacity: .55; } }

.boot-line { display: flex; align-items: center; gap: 8px; padding: 6px 18px 0; font-size: 12.5px; color: #B45309; font-weight: 600; }
.boot-line .spinner { width: 12px; height: 12px; border: 2px solid var(--warn); border-top-color: transparent; border-radius: 50%; animation: baySpin .9s linear infinite; }
@keyframes baySpin { to { transform: rotate(360deg); } }

.round-line { padding: 8px 18px 0; font-size: 12.5px; color: var(--muted); }
.round-line b { color: var(--navy-ink); font-weight: 600; }
.round-tag { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-right: 6px; }
.round-tag.in   { background: var(--green-wash); color: var(--green-deep); }
.round-tag.menu { background: #DBEAFE; color: #1E40AF; }
.round-tag.idle { background: #F1F5F9; color: #64748B; }
.round-tag.warn { background: #FEF3C7; color: #92400E; }
.idle-info      { color: var(--muted-2); font-weight: 500; }
.idle-info.on   { color: #B45309; font-weight: 600; }

/* ===================== Tickets page (v1.9) ===================== */
/* Company-mode header (above the sidebar nav). Only visible for role=company users. */
.company-header { padding: 14px 16px 12px; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 8px; }
.company-header-name { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: rgba(255,255,255,.7); margin-bottom: 6px; }
.franchise-picker { width: 100%; padding: 8px 10px; background: rgba(0,0,0,.25); color: #fff; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; font-size: 13px; font-family: var(--font-body); cursor: pointer; }
.franchise-picker:focus { outline: 2px solid var(--green); outline-offset: 1px; }
/* Subtle "Franchise: X" badge tag for entity rows when the row's user is under a company. */
.org-crumb { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: var(--surface-3, #E6ECF6); color: var(--muted, #5C6B85); font-size: 11px; font-weight: 600; margin-left: 6px; }
.org-crumb b { color: var(--navy-ink, #0F1B33); font-weight: 700; }

/* Sidebar badge for unread escalated tickets — also used on the Bays/Tickets nav links. */
.sidebar-nav a { position: relative; }
.nav-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 18px; padding: 0 6px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; margin-left: 8px; box-shadow: 0 0 0 3px rgba(220,38,38,.18); animation: navPulse 2s ease-in-out infinite; vertical-align: middle; }
@keyframes navPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }

.ticket-headline { background: rgba(220,38,38,.06); border: 1px solid rgba(220,38,38,.18); color: var(--danger-dark); padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; margin: -4px 0 16px; }
.ticket-headline b { color: var(--danger); font-size: 18px; }

.ticket-row-bump td { background: rgba(245,158,11,.06); }
.ticket-row-bump td:first-child { box-shadow: inset 3px 0 0 var(--warn); }

.ticket-badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.ticket-badge.open    { background: var(--surface-3); color: var(--muted); }
.ticket-badge.running { background: rgba(245,158,11,.10); color: #B45309; }
.ticket-badge.ok      { background: var(--green-wash); color: var(--green-deep); }
.ticket-badge.bad     { background: rgba(220,38,38,.08); color: var(--danger-dark); }
.ticket-unread { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); margin-left: 6px; vertical-align: middle; box-shadow: 0 0 0 3px rgba(220,38,38,.16); }

.ticket-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.ticket-meta b { color: var(--navy-ink); font-weight: 600; }

.ticket-sec-h { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); margin: 6px 0 8px; }

.ticket-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ticket-shot { background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.ticket-shot-label { padding: 6px 10px; font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--muted); background: var(--surface); border-bottom: 1px solid var(--border); letter-spacing: .04em; }
.ticket-shot-img { width: 100%; display: block; min-height: 140px; background: #0F1B33; }

.ticket-log { padding-left: 22px; margin: 0; }
.ticket-log li { font-size: 13px; color: var(--navy-ink); margin-bottom: 6px; }
.ticket-log-time { color: var(--muted-2); font-size: 11.5px; }

@media (max-width: 540px) {
    .ticket-shots { grid-template-columns: 1fr; }
}

/* Comments on ticket detail (v1.9 phase 3) */
.ticket-comments { display: flex; flex-direction: column; gap: 8px; max-height: 240px; overflow-y: auto; }
.ticket-comment-empty { color: var(--muted-2); font-style: italic; font-size: 13px; padding: 4px 0; }
.ticket-comment { background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 9px 12px; }
.ticket-comment-head { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.ticket-comment-head b { color: var(--navy-ink); font-weight: 600; }
.ticket-comment-time { color: var(--muted-2); font-size: 11.5px; margin-left: 8px; }
.ticket-comment-body { font-size: 13px; color: var(--navy-ink); white-space: pre-wrap; line-height: 1.45; }
.ticket-comment-form { display: flex; gap: 8px; align-items: flex-end; margin-top: 10px; }
.ticket-comment-form textarea { flex: 1; padding: 9px 12px; background: var(--surface); border: 1px solid var(--border); color: var(--navy-ink); border-radius: var(--radius-sm); font-size: 13px; font-family: var(--font-body); resize: vertical; min-height: 50px; }

/* Split-button Reset → small popover with three options */
.reset-wrap { position: relative; display: inline-block; }
.reset-menu { position: absolute; top: 100%; left: 0; min-width: 230px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg, 0 12px 32px rgba(15,23,42,.18)); padding: 4px; margin-top: 6px; z-index: 1000; }
.reset-menu-h { font-size: 11px; color: var(--muted-2); padding: 6px 12px 4px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.reset-menu button { display: block; width: 100%; text-align: left; background: transparent; border: none; padding: 9px 12px; font-size: 13px; font-family: var(--font-body); color: var(--navy-ink); cursor: pointer; border-radius: 5px; font-weight: 500; }
.reset-menu button:hover { background: var(--surface-2); }
.reset-menu .muted { color: var(--muted-2); font-weight: 400; font-size: 12px; }

/* ===== Bookings table: row overflow menu (⋯) =====
   Six buttons per row made the table unreadable, so everything that modifies a booking lives here
   and only Details stays inline. */
.bk-act { white-space: nowrap; }
.bk-act .btn { margin-right: 6px; }
.rowmenu-wrap { position: relative; display: inline-block; }
.rowmenu-btn { line-height: 1; font-weight: 700; letter-spacing: .06em; padding-left: 12px; padding-right: 12px; }
/* position:fixed, NOT absolute — .table-container is overflow-x:auto, which clips an absolutely
   positioned child. Coordinates are set by toggleRowMenu() from the button's rect. */
.rowmenu {
    position: fixed; z-index: 1000;
    min-width: 232px; padding: 4px; text-align: left;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg, 0 12px 32px rgba(15,23,42,.18));
}
.rowmenu button {
    display: block; width: 100%; text-align: left; background: transparent; border: none;
    padding: 9px 12px; font-size: 13px; font-family: var(--font-body); color: var(--navy-ink);
    cursor: pointer; border-radius: 5px; font-weight: 500; white-space: nowrap;
}
.rowmenu button:hover { background: var(--surface-2); }
.rowmenu button.danger { color: var(--danger); }
.rowmenu button.danger:hover { background: var(--danger-wash); }
.rowmenu-sep { height: 1px; background: var(--border); margin: 4px 6px; }

/* ===== Bookings status tabs (player-dashboard style chips) ===== */
.bk-filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 2px 0 4px; }
.bk-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); border-radius: 999px; padding: 8px 14px; font-size: 13.5px; font-weight: 600; font-family: var(--font-body); cursor: pointer; transition: all .15s ease; }
.bk-chip:hover { border-color: var(--green); color: var(--navy-ink); }
.bk-chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.bk-chip-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 11.5px; font-weight: 700; }
.bk-chip.active .bk-chip-count { background: rgba(255,255,255,.22); color: #fff; }
.bk-chip.alert { border-color: #FDE68A; background: #FEF8E7; color: #92400E; }
.bk-chip.alert .bk-chip-count { background: #F59E0B; color: #fff; }
.bk-chip.alert.active { background: #92400E; border-color: #92400E; color: #fff; }

/* ===================== 2026-07-13: marketing-site look, scoped to Venue + Bookings =====================
   Retargets the shared design tokens (accent, neutrals, radius, fonts) + a few component overrides ONLY
   when #pageContent is showing the venue or bookings page. Because the dashboard is token/class-driven,
   this reskins buttons, cards, tables, tabs, forms and headings on those two pages toward the
   golfsimulatorautomation.com look — no markup or handler changes, fully revertible. Semantic status
   colours (--ok / --warn / --danger) are left alone so "needs attention" still reads. */
#pageContent[data-page="venue"], #pageContent[data-page="bookings"] {
    --green:#E4EE4F; --green-dark:#D3DD3F; --green-deep:#181818; --green-wash:#F6F9CF;
    --navy:#181818; --navy-ink:#181818; --navy-deep:#0F0F0F;
    --bg:#FAFBF3; --surface-2:#F2F4E7; --surface-3:#EAECDD; --border:#E7E9D6; --border-2:#DCDECB;
    --muted:#6B7064; --muted-2:#8A8F80; --text:#1A1C17; --text2:#5F6458;
    --radius:18px; --radius-sm:12px;
    --font-body:'DM Sans','Segoe UI',system-ui,-apple-system,sans-serif;
    --font-display:var(--font-body);   /* alias — see the base :root */
    font-family: var(--font-body);
}
/* Buttons → full pill; primary = lime with BLACK text (white would vanish on lime), dark fill on hover. */
#pageContent[data-page="venue"] .btn, #pageContent[data-page="bookings"] .btn { border-radius:999px; padding:11px 22px; }
#pageContent[data-page="venue"] .btn-small, #pageContent[data-page="bookings"] .btn-small { padding:8px 15px; font-size:12.5px; }
#pageContent[data-page="venue"] .btn-primary, #pageContent[data-page="bookings"] .btn-primary { color:#111; box-shadow:none; }
#pageContent[data-page="venue"] .btn-primary:hover, #pageContent[data-page="bookings"] .btn-primary:hover { background:#181818; color:#fff; box-shadow:none; }
/* Slightly airier cards to match the marketing feel. */
#pageContent[data-page="venue"] .stat-card, #pageContent[data-page="bookings"] .stat-card { padding:22px 24px; }
/* Venue bay-tab pill: lime active needs black text (its rule hard-codes white). */
#pageContent[data-page="venue"] .ven-bay-tab.active,
#pageContent[data-page="venue"] .ven-bay-tab.active:hover { background:var(--green); color:#111; border-color:var(--green); }

/* ============================================================================================
   GUARDIAN DESIGN LAYER — ported from /dashboard-guardian (2026-07-18)
   --------------------------------------------------------------------------------------------
   GSA and Guardian were already the same design language ("Fairway Light"): same lime #E4EE4F,
   same Playfair headings. Guardian is the refined evolution of it, so this layer adopts Guardian's
   palette, type and components WITHOUT removing a single GSA control — every page, card and button
   keeps working, it just wears Guardian's clothes.

   Strategy: retune the EXISTING token values first. GSA's app.js carries ~730KB of inline styles
   written as var(--text2), var(--border), var(--surface-2)… so re-pointing the tokens restyles the
   entire dashboard at once, with no markup churn and nothing left half-converted. Guardian's own
   token names are then aliased on top so Guardian-shaped markup can be pasted in verbatim.
   ============================================================================================ */

:root{
    /* --- Guardian's palette, mapped onto GSA's existing token names --- */
    --bg:#F4F6EF;                 /* warm off-white, faint green bias (was #FAFBF3) */
    --surface:#FFFFFF; --surface-2:#EEF1E7; --surface-3:#E3E8D8;
    --border:rgba(22,30,15,.12); --border-2:rgba(22,30,15,.18);
    --text:#161A11; --text2:#5A6450;
    --muted:#5A6450; --muted-2:#8B9384;
    --navy:#161A11; --navy-deep:#0F1209; --navy-ink:#161A11;
    --green:#E4EE4F; --green-dark:#d6e138; --green-wash:#F1F6C9;
    /* THE key Guardian move: lime is unreadable as text on white, so accent-as-text becomes a deep
       leaf-green. GSA used near-black here, which made every accent link look like body copy. */
    --green-deep:#3E6A22;
    --ok:#1E9E57; --ok-wash:rgba(30,158,87,.12);
    --warn:#AD7714; --warn-wash:rgba(173,119,20,.13);
    --danger:#D14338; --danger-dark:#B4332A; --danger-wash:rgba(209,67,56,.10);
    --radius:14px; --radius-sm:10px;
    --shadow-sm:0 1px 2px rgba(28,40,22,.04);
    --shadow-md:0 6px 18px rgba(28,40,22,.09);
    --shadow-lg:0 10px 28px rgba(28,40,22,.10);

    /* --- Guardian's own token names, so its markup can be reused verbatim --- */
    --panel:#FFFFFF; --panel-2:#EEF1E7; --panel-3:#E3E8D8;
    --ink:#161A11; --faint:#8B9384;
    --accent:#E4EE4F; --accent-2:#d6e138; --accent-ink:#191C09; --accent-text:#3E6A22;
    --teal:#E0EDE3; --teal-line:#C2D8C8;
    --border-soft:rgba(22,30,15,.07);
    --ok-bg:rgba(30,158,87,.12); --warn-bg:rgba(173,119,20,.13);
    --bad:#D14338; --bad-bg:rgba(209,67,56,.10); --bad-line:rgba(209,67,56,.32);
    --sans:'Satoshi','Inter',system-ui,-apple-system,'Segoe UI',sans-serif;
    /* Guardian's heading token, likewise aliased to the one family. The name stays --serif so the
       Guardian markup this layer was ported from still applies cleanly; only the value changed. */
    --serif:var(--sans);
    --shadow:0 10px 28px rgba(28,40,22,.10);
    --font-body:'Satoshi','Inter','DM Sans',system-ui,-apple-system,'Segoe UI',sans-serif;
}

/* ---------- Typography ---------- */
body{ background:var(--bg); color:var(--ink); font-family:var(--sans); font-size:15px; line-height:1.5; -webkit-font-smoothing:antialiased; }
h1,h2,h3,h4{ font-family:var(--serif); font-weight:700; letter-spacing:-.01em; }
::selection{ background:var(--accent); color:var(--accent-ink); }

/* ---------- Sidebar: Guardian's white panel (was near-black #181818) ---------- */
.sidebar{ width:248px; background:var(--panel); border-right:1px solid var(--border); box-shadow:none; padding:0; }
.sidebar-brand{ padding:16px 14px 14px; border-bottom:1px solid var(--border-soft); }
/* Dark plate behind ONLY the logo (operator 2026-07-23) — pairs with the white logo so the mark
   reads on the light Fairway sidebar. Padding is the plate; the transparent logo sits on the ink. */
.sidebar-logo{ display:block; width:100%; max-height:78px; box-sizing:border-box;
    background:#14170F; border-radius:12px; padding:14px 16px; object-fit:contain; }
.sidebar-nav{ padding:8px 12px; gap:3px; }
.sidebar-nav a{ color:var(--muted); font-weight:500; font-size:14.5px; padding:10px 13px; border-radius:10px; gap:12px; }
.sidebar-nav a:hover{ background:var(--panel-2); color:var(--ink); }
.sidebar-nav a.active{ background:var(--panel-3); color:var(--ink); box-shadow:none; }
.sidebar-nav a.active::before{ display:none; }              /* Guardian has no left rail on nav items */
/* Push the badge right like Guardian's .count, but KEEP its red urgency. Guardian's count is
   always visible and muted until .hot; GSA only shows this badge when something is unread, so it
   is by definition an attention signal and must not be greyed out. */
.sidebar-nav .nav-badge{ margin-left:auto; }
.sidebar-download{ margin:10px 12px 16px; border-radius:10px; background:var(--panel-2); color:var(--ink); border:1px solid var(--border); }
.sidebar-download:hover{ background:var(--panel-3); }
.company-header{ background:var(--panel-2); border:1px solid var(--border); border-radius:10px; margin:10px 12px; padding:10px 12px; }
.company-header-name{ color:var(--ink); }
.franchise-picker{ background:var(--panel); color:var(--ink); border:1px solid var(--border); border-radius:8px; }

/* ---------- Topbar: sticky + frosted ---------- */
.topbar{ padding:20px 34px; background:rgba(255,255,255,.82); backdrop-filter:blur(10px);
         border-bottom:1px solid var(--border); box-shadow:none; position:sticky; top:0; z-index:20; }
.topbar h1{ font-size:24px; color:var(--ink); }

/* ---------- Buttons: Guardian's 10px radius (GSA used 999px pills) ---------- */
.btn{ display:inline-flex; align-items:center; gap:8px; border:1px solid var(--border);
      background:var(--panel); color:var(--ink); padding:9px 16px; border-radius:10px;
      font-weight:600; font-size:14px; transition:.14s; white-space:nowrap; }
.btn:hover{ background:var(--panel-2); border-color:rgba(22,30,15,.22); }
.btn:disabled{ opacity:.5; cursor:not-allowed; }
.btn-primary{ background:var(--accent); color:var(--accent-ink); border-color:transparent; font-weight:700; }
.btn-primary:hover{ background:var(--accent-2); }
.btn-outline{ background:var(--panel); color:var(--ink); border:1px solid var(--border); }
.btn-outline:hover{ background:var(--panel-2); border-color:rgba(22,30,15,.22); }
.btn-danger{ background:var(--panel); color:var(--bad); border-color:var(--bad-line); }
.btn-danger:hover{ background:var(--bad-bg); }
.btn-small,.btn-sm{ padding:6px 12px; font-size:13px; border-radius:9px; }

/* ---------- Cards ---------- */
.stat-card,.card{ background:var(--panel); border:1px solid var(--border); border-radius:var(--radius);
                  padding:22px; box-shadow:var(--shadow-sm); }
.stat-card:hover{ transform:none; box-shadow:var(--shadow-md); }   /* Guardian doesn't lift cards */
.section-title{ font-size:14px; letter-spacing:.12em; text-transform:uppercase; color:#000000; font-weight:600; }
.section-title span{ font-family:var(--sans); }

/* GSA stat tiles adopt Guardian's proportions: small caps key, big serif value. */
.stat-card .label{ font-size:12px; letter-spacing:.05em; text-transform:uppercase; color:var(--muted); font-weight:600; }
.stat-card .value{ font-family:var(--serif); font-size:40px; font-weight:800; line-height:1; margin-top:10px;
                   font-variant-numeric:tabular-nums; color:var(--ink); }
.stat-card .value.green{ color:var(--accent-text); }
.stat-card .value.red{ color:var(--bad); }
.stat-card .value.yellow{ color:var(--warn); }
.stat-card .value.blue{ color:var(--accent-text); }

/* ---------- Bay cards ---------- */
.bay-card{ background:var(--panel); border:1px solid var(--border); border-radius:var(--radius);
           box-shadow:var(--shadow-sm); transition:.16s; }
.bay-card:hover{ transform:none; border-color:rgba(22,30,15,.22); box-shadow:0 6px 18px rgba(28,40,22,.09); }
.bay-card::before{ display:none; }        /* Guardian carries status in the pill, not a colour rail */
.bay-header h3{ font-family:var(--serif); font-size:19px; font-weight:700; color:var(--ink); }

/* ---------- Tables ---------- */
.table-container{ border:1px solid var(--border); border-radius:var(--radius); background:var(--panel); overflow-x:auto; }
table{ width:100%; border-collapse:collapse; font-size:14px; }
table th{ text-align:left; font-size:11px; letter-spacing:.05em; text-transform:uppercase; color:var(--faint);
          font-weight:600; padding:13px 16px; border-bottom:1px solid var(--border); background:var(--panel-2); }
table td{ padding:14px 16px; border-bottom:1px solid var(--border-soft); }
table tr:last-child td{ border-bottom:none; }
table tbody tr:hover td{ background:rgba(30,45,20,.035); }

/* ---------- Forms ---------- */
input,select,textarea{ background:var(--panel); border:1px solid var(--border); color:var(--ink);
                       padding:11px 13px; border-radius:10px; font-family:inherit; font-size:14px; }
input:focus,select:focus,textarea:focus{ outline:none; border-color:var(--accent-text); box-shadow:0 0 0 3px rgba(62,106,34,.15); }
.form-group label{ font-size:12.5px; color:var(--muted); font-weight:600; }

/* ============================================================================================
   Guardian component classes — available for markup ported straight across.
   ============================================================================================ */
.pill{ display:inline-flex; align-items:center; gap:6px; font-size:12px; font-weight:600; padding:4px 10px;
       border-radius:999px; border:1px solid transparent; white-space:nowrap; }
.pill .dot{ width:7px; height:7px; border-radius:50%; background:currentColor; }
.pill.on{ color:var(--ok); background:var(--ok-bg); border-color:rgba(30,158,87,.28); }
.pill.off{ color:var(--bad); background:var(--bad-bg); border-color:rgba(209,67,56,.28); }
.pill.warn{ color:var(--warn); background:var(--warn-bg); border-color:rgba(173,119,20,.28); }
.pill.mut{ color:var(--muted); background:var(--panel-2); border-color:var(--border); }
.pill.live{ color:var(--accent-ink); background:var(--accent); }
/* Guardian's ticketBadge emits .pill.bad but its CSS never defined it — defining it here so an
   escalated ticket doesn't fall back to an unstyled pill. */
.pill.bad{ color:var(--bad); background:var(--bad-bg); border-color:var(--bad-line); }

.stat{ background:var(--panel); border:1px solid var(--border); border-radius:var(--radius); padding:20px 22px;
       position:relative; overflow:hidden; box-shadow:var(--shadow-sm); }
.stat .k{ font-size:12px; letter-spacing:.05em; text-transform:uppercase; color:var(--muted); font-weight:600; }
.stat .v{ font-family:var(--serif); font-size:40px; font-weight:800; line-height:1; margin-top:10px; font-variant-numeric:tabular-nums; }
.stat .v small{ font-size:18px; color:var(--faint); font-weight:600; }
.stat .sub{ font-size:12.5px; color:var(--faint); margin-top:8px; }
.stat .glow{ position:absolute; right:-30px; top:-30px; width:120px; height:120px; border-radius:50%;
             background:radial-gradient(circle,var(--accent) 0%,transparent 70%); opacity:.30; }
.stat.ok .glow{ background:radial-gradient(circle,var(--ok) 0%,transparent 70%); opacity:.12; }
.stat.bad .glow{ background:radial-gradient(circle,var(--bad) 0%,transparent 70%); opacity:.12; }

.grid{ display:grid; gap:16px; }
.grid-2{ grid-template-columns:repeat(2,1fr); }
.grid-3{ grid-template-columns:repeat(3,1fr); }
.grid-4{ grid-template-columns:repeat(4,1fr); }
@media(max-width:1000px){ .grid-4{ grid-template-columns:repeat(2,1fr); } .grid-3,.grid-2{ grid-template-columns:1fr; } }

.bays{ display:grid; grid-template-columns:repeat(auto-fill,minmax(320px,1fr)); gap:16px; }
.bay{ background:var(--panel); border:1px solid var(--border); border-radius:var(--radius); padding:18px 20px;
      transition:.16s; box-shadow:var(--shadow-sm); }
.bay:hover{ border-color:rgba(22,30,15,.22); box-shadow:0 6px 18px rgba(28,40,22,.09); }
.bay-top{ display:flex; align-items:flex-start; gap:12px; margin-bottom:14px; }
.bay-top .name{ font-family:var(--serif); font-size:19px; font-weight:700; }
.bay-top .meta{ font-size:12px; color:var(--faint); margin-top:2px; }
.bay-top .spacer{ flex:1; }
.bay-rows{ display:flex; flex-direction:column; gap:8px; margin:6px 0 16px; }
.bay-row{ display:flex; align-items:center; font-size:13px; }
.bay-row .rk{ color:var(--muted); width:96px; flex:0 0 auto; }
.bay-row .rv{ color:var(--ink); font-weight:500; }
.bay-actions{ display:flex; gap:8px; flex-wrap:wrap; border-top:1px solid var(--border-soft); padding-top:14px; }

.kv{ display:flex; justify-content:space-between; gap:16px; padding:11px 0; border-bottom:1px solid var(--border-soft); font-size:14px; }
.kv:last-child{ border-bottom:none; }
.kv .k{ color:var(--muted); }
.kv .v{ font-weight:500; text-align:right; font-variant-numeric:tabular-nums; }

.card-h{ display:flex; align-items:center; gap:12px; margin-bottom:16px; }
.card-h h2{ font-size:18px; }
.card-h .spacer{ flex:1; }
.sectlabel{ font-size:14px; letter-spacing:.12em; text-transform:uppercase; color:#030303; font-weight:600; margin:35px 0 12px; }
.pageintro{ color:var(--muted); font-size:14px; margin:-6px 0 22px; max-width:70ch; }
.muted{ color:var(--muted); } .faint{ color:var(--faint); }
.empty{ text-align:center; padding:60px 20px; color:var(--faint); }
.empty .ei{ font-size:44px; opacity:.4; margin-bottom:12px; }
.empty h3{ font-size:19px; color:var(--muted); margin-bottom:6px; }
.tbl-wrap{ overflow-x:auto; border:1px solid var(--border); border-radius:var(--radius); background:var(--panel); }
table.tbl{ width:100%; border-collapse:collapse; font-size:14px; min-width:560px; }
tr.clickrow{ cursor:pointer; }
kbd{ display:inline-block; font-family:var(--sans); font-size:12.5px; font-weight:700; line-height:1; color:var(--ink);
     background:var(--panel-2); border:1px solid var(--border); border-bottom-width:2px; border-radius:6px; padding:5px 8px; white-space:nowrap; }
/* ---------- Bay actions table (bay detail page) ---------- */
/* The card supplies the border + radius, so the table sits flush inside it and the header band
   reaches the card edges rather than floating in padding. */
.sc-card{ padding:0; overflow:hidden; }
.sc-wrap{ overflow-x:auto; }              /* long descriptions scroll the table, never the page */
.sc-tbl{ width:100%; border-collapse:collapse; min-width:620px; }
.sc-tbl th{ background:var(--panel-2); text-align:left; padding:13px 18px; font-size:11px;
            letter-spacing:.12em; text-transform:uppercase; color:var(--muted); font-weight:600; }
.sc-tbl td{ padding:15px 18px; vertical-align:top; border-top:1px solid var(--border-soft); }
.sc-tbl tbody tr:hover{ background:var(--panel-2); }
.sc-keys{ width:210px; white-space:nowrap; }
.sc-plus{ color:var(--faint); margin:0 5px; font-size:12.5px; }
.sc-t{ font-weight:600; font-size:14.5px; color:var(--ink); margin-bottom:3px; }
.sc-d{ color:var(--muted); font-size:13.5px; line-height:1.5; }
.sc-act{ width:110px; text-align:right; }
.sc-na{ color:var(--faint); font-size:12.5px; white-space:nowrap; }

code.lic{ font-family:ui-monospace,'SF Mono',Menlo,Consolas,monospace; font-size:13px; background:var(--panel-2);
          border:1px solid var(--border); padding:3px 9px; border-radius:7px; color:var(--accent-text); letter-spacing:.02em; }

/* ---------- Tabs (GSA's .tk-tab strip adopts Guardian's underline treatment) ---------- */
/* The row scrolls horizontally on narrow screens rather than wrapping into a second line that
   fights the border. Inline styles used to set this per-strip; it belongs here. */
.tk-tab-row,.tabs{
    display:flex; gap:2px; align-items:stretch;
    border-bottom:1px solid var(--border); margin:-6px 0 18px;
    overflow-x:auto; scrollbar-width:none;
}
.tk-tab-row::-webkit-scrollbar,.tabs::-webkit-scrollbar{ height:0; }
.tk-tab,.tabs .tab{
    display:inline-flex; align-items:center; gap:8px; white-space:nowrap;
    background:none; border:none; border-bottom:2px solid transparent; color:var(--muted);
    font-size:14.5px; font-weight:600; padding:11px 15px; cursor:pointer; margin-bottom:-1px;
    border-radius:8px 8px 0 0; transition:color .13s ease, background .13s ease, border-color .13s ease;
}
/* A faint ground on hover gives the pointer a target the full height of the tab, not just the text. */
.tk-tab:hover,.tabs .tab:hover{ color:var(--ink); background:var(--panel-2); }
.tk-tab.active,.tabs .tab.on{ color:var(--accent-text); border-bottom-color:var(--accent-text); background:#ffffff; }
/* Active tab keeps its white ground on hover — otherwise the hover rule above would tint the tab
   you are already on, which reads as if it were about to change. */
.tk-tab.active:hover,.tabs .tab.on:hover{ color:var(--accent-text); background:#ffffff; }
.tk-tab:focus-visible,.tabs .tab:focus-visible{ outline:2px solid var(--accent-text); outline-offset:-2px; }
/* Icons ride at the tab's own colour; slightly dimmed until the tab is hovered or active so the
   label leads and the icon supports it. */
.tk-tab-ico{ flex:0 0 auto; opacity:.62; transition:opacity .13s ease; }
.tk-tab:hover .tk-tab-ico,.tk-tab.active .tk-tab-ico{ opacity:1; }
/* Same icon set inside a section heading, where it sits beside larger type. */
.sec-ico{ opacity:.55; margin-right:9px; vertical-align:-3px; }
/* Sub-heading inside a card (Booking rules: Cancellation / Tax / Payment before play). */
.sub-head{ display:flex; align-items:center; gap:8px; margin:0 0 8px;
           font-size:12.5px; letter-spacing:.1em; text-transform:uppercase;
           color:var(--ink); font-weight:700; }
.sub-ico{ flex:0 0 auto; opacity:.5; }

/* ---------- Modals ---------- */
.modal-content,.modal-card{ background:var(--panel); border:1px solid var(--border); border-radius:16px; box-shadow:var(--shadow); }
.modal-actions,.modal-foot{ border-top:1px solid var(--border-soft); }

@media(max-width:820px){ .topbar{ padding:16px 18px; } }

/* ============================================================================================
   GUARDIAN LAYOUT — bay cards restructured to Guardian's arrangement (2026-07-18)
   --------------------------------------------------------------------------------------------
   Done entirely in CSS, on GSA's existing classes, rather than rewriting the 366-line card
   renderer. Same visual result, and it is structurally impossible to drop a control this way —
   every button, pill, slider and block the card emits is still emitted, just re-laid-out.

   Mapping: .bay-header→.bay-top · .bay-info→.bay-rows · .info-item→.bay-row ·
            .info-label→.rk · .bay-controls→.bay-actions · .bay-grid→.bays
   ============================================================================================ */

.bay-grid{ grid-template-columns:repeat(auto-fill,minmax(340px,1fr)); gap:16px; }

/* Header becomes Guardian's .bay-top: no grey bar, no divider — one continuous card face, with
   the name top-left and the status pill pushed to the right. */
.bay-header{ background:transparent; border-bottom:none; border-radius:var(--radius) var(--radius) 0 0;
             padding:18px 20px 0; align-items:flex-start; gap:12px; }
.bay-header h3{ font-family:var(--serif); font-size:19px; font-weight:700; color:var(--ink); line-height:1.2; }
.bay-header-right{ margin-left:auto; align-items:flex-start; gap:8px; }
.bay-body{ padding:14px 20px 18px; }

/* Info block becomes Guardian's .bay-rows — label and value on ONE line, key column a fixed
   96px so every row's value starts at the same x. (GSA stacked label above value in 2 columns.) */
.bay-info{ display:flex; flex-direction:column; gap:8px; margin:6px 0 16px; }
.bay-info .info-item{ display:flex; align-items:center; font-size:13px; color:var(--ink); }
.bay-info .info-label{ display:inline-block; width:96px; flex:0 0 auto; margin-bottom:0;
                       color:var(--muted); font-size:13px; font-weight:400; }

/* Actions become Guardian's .bay-actions: hairline above, natural-width buttons (GSA stretched
   them with flex:1, which made a 6-button row look like a toolbar rather than a set of choices). */
.bay-controls{ border-top:1px solid var(--border-soft); padding-top:14px; gap:8px; }
.bay-controls .btn{ flex:0 0 auto; min-width:0; }

/* Status pill adopts Guardian's .pill proportions (was uppercase + letter-spaced). */
.bay-conn{ font-size:12px; font-weight:600; text-transform:none; letter-spacing:0; padding:4px 10px; }
.bay-conn::before{ width:7px; height:7px; box-shadow:none; }
.bay-conn.online{ background:var(--ok-bg); color:var(--ok); border-color:rgba(30,158,87,.28); }
.bay-conn.online::before{ background:currentColor; }
.bay-conn.offline{ background:var(--bad-bg); color:var(--bad); border-color:rgba(209,67,56,.28); }
.bay-conn.offline::before{ background:currentColor; }

/* Overview stat row on the Bays page (Guardian's 3-tile grid). */
.bay-statrow{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-bottom:24px; }
@media(max-width:1000px){ .bay-statrow{ grid-template-columns:1fr; } }

/* 3.7.50 — self-healing pill: work-in-progress, blue (not amber/red = fault). */
.comp-pill.heal{background:rgba(56,132,255,.14);border-color:rgba(56,132,255,.45);color:#bcd6ff;}
.comp-pill.heal .comp-dot{background:#3884ff;box-shadow:0 0 0 3px rgba(56,132,255,.20);}


/* ============================================================================
   ANYTIME LAYER — feature rules on the Fairway Light base (see anytime-guardian-ui-port).
   ============================================================================ */
html.any-brand .bay-conn.online  { background:#1E9E57; color:#fff; border-color:#188A4B; }
html.any-brand .bay-conn.online::before  { background:#fff; box-shadow:none; }
html.any-brand .bay-conn.offline { background:#D14338; color:#fff; border-color:#B4332A; }
html.any-brand .bay-conn.offline::before { background:#fff; }
html.any-brand .bay-card { --rail:var(--border-2); box-shadow: inset 4px 0 0 var(--rail), var(--shadow-sm); }
html.any-brand .bay-card:hover { box-shadow: inset 4px 0 0 var(--rail), var(--shadow-md); }
html.any-brand .bay-card:has(.bay-conn.online) { --rail:#1E9E57; }
html.any-brand .bay-card:has(.bay-conn.busy)   { --rail:var(--warn); }
html.any-brand .bay-controls .btn-danger { background:#fff; color:var(--danger); border:1px solid var(--bad-line); box-shadow:none; }
html.any-brand .bay-controls .btn-danger:hover { background:var(--danger-wash); }
@media (max-width: 768px) {
    html.any-brand .content { padding:16px; }
    html.any-brand .topbar h1 { font-size:19px; }
    html.any-brand .bay-controls .btn { padding:9px 12px; min-height:38px; }
    html.any-brand .bay-info .info-item { overflow-wrap:anywhere; }
}
/* Wider sidebar (operator request 2026-07-23). */
html.any-brand .sidebar { width: 292px; }
