/* HeadJudge's own pages (registration, and each company's pages). brand.js sets these from the company's colours. */
:root { --bg: #12161c; --panel: #1c222a; --text: #f4f6f8; --muted: #a3acb7; --line: #343c46; --primary: #ffc400; --on-primary: #101010; --primary-text: #ffc400; --accent: #3ddc97; --bad: #ff8a80; --display: "Barlow Condensed", "Arial Narrow", sans-serif; }
[data-mode="light"] { --bad: #b3261e; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 Barlow, -apple-system, "Segoe UI", system-ui, sans-serif; }
a { color: var(--primary-text); }
:focus-visible { outline: 3px solid var(--primary-text); outline-offset: 2px; }
h1, h2, legend { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .01em; margin: 0; }
.muted { color: var(--muted); }

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px clamp(16px, 4vw, 40px); border-bottom: 3px solid var(--primary); }
.mark { font: italic 800 28px var(--display); text-transform: uppercase; color: var(--text); text-decoration: none; }
.mark span { color: var(--primary-text); }
.topRight { display: flex; align-items: center; justify-content: flex-end; gap: 6px 14px; flex-wrap: wrap; min-width: 0; margin-inline-start: auto; } /* wrapped under the name on a phone, it stays on the right */
.topRight a { font-weight: 700; }
.top #who { font-size: 14px; overflow-wrap: anywhere; }
/* (30 Nov 2026, the owner: "can this all be put into a profile icon drop down?") signed in: the account's first letter, opening its menu
   (api-base.js drawSignOut) */
.profileMenu { position: relative; }
.profileBtn { width: 40px; height: 40px; border-radius: 50%; padding: 0; display: grid; place-items: center; cursor: pointer; background: var(--primary); color: var(--on-primary); border: 2px solid var(--primary); font: italic 800 1.25rem var(--display); }
.profileBtn:hover, .profileBtn[aria-expanded="true"] { box-shadow: 0 0 0 3px var(--panel), 0 0 0 5px var(--primary); }
/* (30 Nov 2026, the owner: in one language "the profile menu drop down [moved] to the left which stopped it from working": Arabic, right to
   left, puts the circle at the left, and a menu held to its right edge opened off the page) held to the circle's end, whichever way the
   language reads */
.profilePanel { position: absolute; inset-inline-end: 0; top: calc(100% + 10px); z-index: 60; width: min(300px, calc(100vw - 32px)); display: grid; gap: 2px; padding: 12px; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 14px 36px rgba(0, 0, 0, .5); }
.profileWho { display: grid; gap: 2px; padding: 2px 8px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); min-width: 0; }
.profileWho b { font-size: 1.05rem; overflow-wrap: anywhere; }
.profileWho #who, .profileWho .muted { font-size: .88rem; overflow-wrap: anywhere; }
.profilePanel a, .profilePanel .signOut { display: block; padding: 9px 8px; color: var(--text); font-weight: 600; text-decoration: none; text-align: start; }
.profilePanel a:hover, .profilePanel .signOut:hover { background: var(--bg); color: var(--primary-text); }
.profileLinks { display: grid; gap: 2px; }
.profileLang { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 8px; margin: 4px 0 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
.profileLang .langPick { max-width: 60%; }
.profilePanel .signOut { width: 100%; border-top: 1px solid var(--line); margin-top: 4px; padding-top: 12px; }

.page { max-width: 1120px; margin: 0 auto; padding: clamp(20px, 4vw, 44px) clamp(16px, 4vw, 40px) 64px; }
.intro { max-width: 720px; margin-bottom: 28px; }
.intro h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); line-height: 1; font-style: italic; }
.intro h1 span { color: var(--primary-text); }
.intro p { color: var(--muted); font-size: 1.1rem; margin: 12px 0 0; }

.card { background: var(--panel); border: 1px solid var(--line); padding: 20px; margin: 0 0 18px; min-width: 0; }
fieldset.card { padding-top: 8px; }
.card legend { font-size: 1.35rem; padding: 0 8px; margin-left: -8px; background: var(--panel); }
.card.narrow { max-width: 460px; }
.card h2 { font-size: 1.5rem; }
.status { border-left: 5px solid var(--primary); }
.status p { margin: 4px 0 0; color: var(--muted); }
.status[data-state="approved"] { border-left-color: var(--accent); }
.status[data-state="declined"], .status[data-state="suspended"] { border-left-color: var(--bad); }

.regForm { max-width: 720px; }

label, .labelish { display: block; font-weight: 600; margin: 14px 0 5px; }
label small { font-weight: 400; color: var(--muted); }
input:not([type=color]):not([type=radio]):not([type=file]), textarea { width: 100%; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); padding: 10px 12px; border-radius: 0; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }
textarea { resize: vertical; }
.prefixed { display: flex; align-items: stretch; border: 1px solid var(--line); background: var(--bg); }
.prefixed span { padding: 10px 0 10px 12px; color: var(--muted); white-space: nowrap; }
.prefixed input { border: 0 !important; padding-left: 2px !important; min-width: 0; }
.prefixed:focus-within { outline: 3px solid var(--primary-text); outline-offset: 2px; }
.prefixed input:focus-visible { outline: none; }
.note { color: var(--muted); font-size: .9rem; margin: 5px 0 0; }
.note.bad, .error { color: var(--bad); }
.error { font-weight: 600; margin: 10px 0 0; }
/* an admin looking at a company's pages: whose they are, across the top */
.viewNote { margin: 0; padding: 10px 40px; background: #ffc400; color: #111; font-weight: 600; }
.viewNote a { color: inherit; margin-left: 8px; }
@media (max-width: 700px) { .viewNote { padding: 10px 16px; } }

.visuallyHidden { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.logoRow { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.drop { flex: 1 1 240px; margin: 0; display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 92px; padding: 12px; border: 2px dashed var(--line); background: var(--bg); cursor: pointer; font-weight: 600; color: var(--muted); text-align: center; }
.drop:hover, .drop.over { border-color: var(--primary-text); color: var(--text); }
.logoRow:focus-within .drop { outline: 3px solid var(--primary-text); outline-offset: 2px; }
.drop img { max-height: 68px; max-width: 45%; object-fit: contain; }
.link { background: none; border: 0; padding: 4px 0; color: var(--primary-text); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }

.colours { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0 16px; }
.colour { display: flex; }
.colour input[type=color] { width: 48px; height: 46px; padding: 2px; border: 1px solid var(--line); border-right: 0; background: var(--bg); cursor: pointer; flex: none; }
.segments { display: inline-flex; border: 1px solid var(--line); }
.segments label { margin: 0; font-weight: 600; cursor: pointer; }
.segments input { position: absolute; opacity: 0; }
.segments span { display: block; padding: 9px 22px; }
.segments input:checked + span { background: var(--primary); color: var(--on-primary); }
.segments input:focus-visible + span { outline: 3px solid var(--primary-text); outline-offset: 2px; }

.primary { width: 100%; margin-top: 14px; padding: 14px 18px; font: italic 800 1.35rem var(--display); text-transform: uppercase; background: var(--primary); color: var(--on-primary); border: 0; cursor: pointer; }
.primary:hover { filter: brightness(1.08); }
.primary:disabled { opacity: .55; cursor: default; }


.toast { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 20px); background: var(--text); color: var(--bg); padding: 10px 18px; font-weight: 700; opacity: 0; transition: .2s; pointer-events: none; max-width: calc(100vw - 32px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }

/* a company's own page */
.brandline { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.toplogo { height: 40px; max-width: 170px; object-fit: contain; }
.console { max-width: 1180px; }
.console > .card.narrow { margin-left: auto; margin-right: auto; }
/* (29 Nov 2026, the owner: "swap this with the book your ai judges", then "swap widths of the 2 columns") booking in the first, narrower
   column; the servers, the cameras and
   what the AI judge can track in the second. Without the booking box (History, paying), one column. On a phone: the servers and the
   cameras first, then booking, then what the judge can track and the rest. */
.consoleGrid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: start; }
.consoleGrid:has(> .consoleSide > #server[hidden]) { display: block; max-width: 720px; margin: 0 auto; }
.consoleSide, .consoleMain { min-width: 0; }
.tracked { margin: 0 0 18px; }
@media (max-width: 860px) {
  .consoleGrid { display: flex; flex-direction: column; }
  .consoleGrid .consoleSide, .consoleGrid .consoleMain { display: contents; }
  .consoleGrid > * > * { order: 9; }
  #bookingsBox { order: 2; } #server, #payArea { order: 4; } #plansBox { order: 5; }
}
.tracked h2 { font-size: 1.5rem; }
.trackCard { display: flex; gap: 14px; align-items: center; background: var(--panel); border: 1px solid var(--line); padding: 10px 14px 10px 10px; margin-top: 10px; min-width: 0; }
.trackCard canvas { width: 118px; height: 118px; flex: none; background: var(--bg); }
.trackCard div { min-width: 0; }
.trackCard h3 { margin: 0 0 4px; font: italic 800 1.3rem var(--display); text-transform: uppercase; }
.trackCard ul { list-style: none; margin: 0; padding: 0; font-size: .92rem; color: var(--muted); }
.trackCard li { padding-left: 16px; position: relative; transition: color .12s; }
.trackCard li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--line); transition: background .12s; }
.trackCard li.lit { color: var(--text); font-weight: 600; }
.trackCard li.lit::before { background: var(--accent); }
/* (1 Dec 2026) the last card: anything else, built on request (tracked-demos.js customCard) */
.trackCard.custom { border-style: dashed; border-color: var(--muted); }
.trackCard .trackAsk { margin: 6px 0 0; font-size: .9rem; line-height: 1.4; color: var(--text); }
.historyBox { margin-top: 18px; }
.historyBox:first-child, #payArea[hidden] + .historyBox { margin-top: 0; }
.historyBox h1, .historyBox h2 { font-size: 1.5rem; margin-bottom: 8px; }
.historyRow { display: grid; grid-template-columns: minmax(0, 2.6fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr); gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); font-size: .92rem; align-items: baseline; }
.historyRow.head { color: var(--muted); font-size: .82rem; border-top: 0; }
.historyRow span:last-child { text-align: right; }
@media (max-width: 480px) { .historyRow { grid-template-columns: minmax(0, 1fr) auto; } .historyRow.head { display: none; } .historyRow span:nth-child(2)::after { content: " cameras"; } .historyRow span:nth-child(3)::after { content: " hours"; } }
.serverCard { padding: clamp(20px, 4vw, 32px); }
.stateLine { display: flex; align-items: center; gap: 12px; }
.stateLine h1 { font-size: clamp(1.9rem, 6vw, 2.6rem); line-height: 1.05; font-style: italic; }
.light { flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); }
.light[data-state="on"] { background: var(--accent); }
.light[data-state="booked"] { background: transparent; box-shadow: inset 0 0 0 3px var(--primary); }
.light[data-state="starting"], .light[data-state="stopping"] { background: var(--primary); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .light { animation: none !important; } }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.actions .primary { width: auto; flex: 1 1 220px; margin: 0; }
.ghost { padding: 14px 18px; font: italic 800 1.35rem var(--display); text-transform: uppercase; background: none; color: var(--text); border: 2px solid var(--line); cursor: pointer; flex: 0 1 auto; }
.ghost:hover { border-color: var(--text); }
.ghost:disabled { opacity: .55; cursor: default; }
.linkbtn { display: block; text-align: center; text-decoration: none; box-sizing: border-box; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 22px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: .9rem; }
.facts dd { margin: 0; font: 700 1.7rem var(--display); }
.moreLinks { display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 600; }

/* booking a server */
.booking, #running { margin-top: 14px; }
.bookFields { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0 16px; }
/* (28 Nov 2026) what a live and a non-live judge are, under their boxes */
.fieldHelp { display: block; color: var(--muted); font-size: .85rem; line-height: 1.35; margin: 4px 0 12px; }
select { width: 100%; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); padding: 10px 12px; border-radius: 0; }
.quote { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 14px 0; padding: 12px 14px; background: var(--bg); border-left: 4px solid var(--primary); }
.quote span { color: var(--muted); }
.quote b { font: 700 1.9rem var(--display); }
.booking .primary { margin-top: 0; }
#stateMore.warn { color: var(--primary-text); font-weight: 700; }
.serverList { display: grid; gap: 10px; }
.serverRow { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 14px; background: var(--bg); }
.serverRow b, .serverRow small { display: block; }
.serverRow small { color: var(--muted); }
.serverRow .primary { width: auto; margin: 0; padding: 10px 16px; font-size: 1.1rem; flex: 0 1 auto; }
.extend { display: grid; grid-template-columns: minmax(130px, 1fr) minmax(0, 2fr) auto; gap: 12px; align-items: end; margin-top: 14px; }
.extend .quote { margin: 0; padding: 7px 12px; }
.extend .quote b { font-size: 1.4rem; }
.extend label { margin-top: 0; }
.extend .ghost { padding: 9px 16px; font-size: 1.15rem; }
@media (max-width: 560px) { .extend { grid-template-columns: minmax(0, 1fr); } .serverRow .primary { width: 100%; } }

/* the admin area */
.admin { max-width: 1120px; }
.adminTop { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 24px; }
.totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0; }
.totals > div { background: var(--panel); border: 1px solid var(--line); padding: 14px 16px; }
.totals dt { color: var(--muted); font-size: .9rem; }
.totals dd { margin: 2px 0 0; font: 700 2rem/1.1 var(--display); }
.totals small { color: var(--muted); }
.loss { color: var(--bad) !important; }
.pricing { margin: 0; }
.pricing .primary { margin-top: 12px; }
.suffixed { display: flex; align-items: stretch; max-width: 170px; border: 1px solid var(--line); background: var(--bg); }
.suffixed input { border: 0 !important; min-width: 0; font-size: 1.3rem !important; font-weight: 700; }
.suffixed span { padding: 10px 12px; color: var(--muted); font-weight: 700; }
.suffixed:focus-within { outline: 3px solid var(--primary-text); outline-offset: 2px; }
.suffixed input:focus-visible { outline: none; }
.sums { display: grid; gap: 6px; margin: 14px 0; padding: 12px 14px; background: var(--bg); border-left: 4px solid var(--primary); }
.sums > div { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); }
.sums b { color: var(--text); }
.sums .big b { font: 700 1.5rem/1.1 var(--display); }
.warnNote { color: var(--bad); }
.listHead { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.listHead h2 { font-size: 1.6rem; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters input { width: 220px !important; max-width: 100%; }
.filters select { width: auto; }
.customerList { display: grid; gap: 12px; }
.customer { margin: 0; padding: 16px; }
.custHead { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.custLogo { height: 40px; max-width: 110px; object-fit: contain; }
.custName { flex: 1 1 200px; min-width: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.custName h3 { margin: 0; font: italic 800 1.5rem var(--display); text-transform: uppercase; overflow-wrap: anywhere; }
.chip { font-size: .8rem; font-weight: 700; padding: 2px 8px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.chip[data-status="pending"] { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.chip[data-status="approved"] { color: var(--accent); border-color: var(--accent); }
.chip[data-status="suspended"], .chip[data-status="declined"] { color: var(--bad); border-color: var(--bad); }
.custActions { display: flex; gap: 8px; flex-wrap: wrap; }
.small { font: inherit; font-weight: 600; font-size: .95rem; padding: 7px 12px; background: none; color: var(--text); border: 1px solid var(--line); cursor: pointer; }
.small:hover { border-color: var(--text); }
.small.primaryish { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.custContact, .custAbout, .custNote { margin: 8px 0 0; font-size: .95rem; overflow-wrap: anywhere; }
.custNote { color: var(--muted); font-style: italic; }
.custServer { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-weight: 600; }
.custServer .light { width: 11px; height: 11px; }
.custUse { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--line); }
.custUse dt { color: var(--muted); font-size: .85rem; }
.custUse dd { margin: 0; font: 700 1.3rem var(--display); }

/* payment on the console, and customers' prices and admins in the admin area */
.facts .cardText { font: 600 1.05rem/1.35 Barlow, -apple-system, "Segoe UI", system-ui, sans-serif; padding-top: 4px; } /* words, not a figure */
.custPrice { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 10px 0; }
.custPrice label { margin: 0; }
.custPrice small { flex-basis: 100%; }
.custPriceBox { display: flex; align-items: center; gap: 4px; }
.custPriceBox input { width: 90px; }
.adminsBox { margin-top: 18px; max-width: 720px; }
.adminList { list-style: none; margin: 12px 0; padding: 0; }
.adminList li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.adminList b { display: block; overflow-wrap: anywhere; }
.adminList small { color: var(--muted); }
.addAdmin > div { display: flex; gap: 8px; }
.addAdmin input { flex: 1; min-width: 0; }

/* email sign-in, above the Google button */
.orLine { display: flex; align-items: center; gap: 10px; margin: 16px 0 0; color: var(--muted); font-size: .9rem; }
.orLine::before, .orLine::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.emailBtn { margin-top: 6px; }
#googleBtn { display: flex; justify-content: center; margin-top: 14px; }
.emailCreate { display: block; margin: 10px auto 0; }
#emailBtns .note { text-align: center; }
/* Sign in with Microsoft: Microsoft's light button, the same size as Google's beside it */
#msBtn { display: flex; justify-content: center; margin-top: 14px; }
#msBtn:empty { display: none; }
.msBtn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; width: min(300px, 100%); height: 40px; padding: 0 14px; background: #fff; color: #5e5e5e; border: 1px solid #8c8c8c; border-radius: 20px; font: 600 15px "Segoe UI", system-ui, sans-serif; cursor: pointer; }
.msBtn:hover { background: #f3f3f3; }
.msBtn:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
/* Sign out, top right while signed in (api-base.js) */
.top .signOut { padding: 0; font-weight: 700; white-space: nowrap; }

/* booking: now or chosen times; a booking made ahead */
@media (max-width: 480px) { .bookFields { grid-template-columns: minmax(0, 1fr); } }
.bookFields .segments { display: flex; }
.bookFields .segments label { flex: 1; text-align: center; }
.bookFields .segments span { padding: 10px 12px; }
input[type=datetime-local] { color-scheme: dark; min-height: 44px; }
.paidNote { display: block; color: var(--muted); font-size: .78rem; font-weight: 400; }

/* the payment page: pretend for now, and it says so */
.payArea { max-width: 560px; margin: 0 auto; }
.payArea h1 { margin: 6px 0 4px; }
.payArea h1:focus { outline: none; }
.pretendTag { display: inline-block; margin: 0; padding: 4px 10px; background: var(--primary); color: var(--on-primary); font: italic 800 .95rem var(--display); text-transform: uppercase; letter-spacing: .03em; }
.paySummary { margin: 16px 0; display: grid; gap: 0; }
.paySummary > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.paySummary dt { color: var(--muted); }
.paySummary dd { margin: 0; text-align: right; font-weight: 600; }
.paySummary .payTotal dd { font: 700 1.9rem var(--display); }
.paySummary .payTotal { align-items: baseline; }
.pretendCard { position: relative; display: grid; gap: 12px; padding: 16px; background: var(--bg); border: 1px dashed var(--line); }
.pretendCard::after { content: "TEST CARD"; position: absolute; top: 10px; right: 12px; color: var(--muted); font: 800 .75rem var(--display); letter-spacing: .08em; }
.pcRow span { display: block; color: var(--muted); font-size: .82rem; }
.pcRow b { font: 600 1.05rem ui-monospace, Consolas, monospace; letter-spacing: .04em; }
.pcSplit { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.payBack { display: block; margin: 12px auto 0; }
.closedNote { margin: 0 0 4px; padding: 10px 14px; background: var(--bg); border-left: 4px solid var(--primary); color: var(--text); font-size: .95rem; }

/* the tabs along the top (apptabs.js), the same five as the video review's; on a phone, a bar along the bottom */
.appTabs { display: flex; gap: 6px; flex: 1 1 auto; flex-wrap: wrap; min-width: 0; }
.appTabs button { display: inline-flex; align-items: center; gap: 7px; background: var(--panel); color: var(--muted); border: 1px solid var(--line); padding: 8px 15px; font: 700 15px Barlow, -apple-system, "Segoe UI", system-ui, sans-serif; cursor: pointer; }
.appTabs button:hover:not(:disabled) { color: var(--text); }
.appTabs button.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.appTabs button:disabled { opacity: .4; cursor: not-allowed; }
.appTabs .ts { display: none; } /* (each tab's short name: on a phone, as the video review's) */
.appTabs svg { display: none; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* (30 Nov 2026: "menu out of wack") above a phone's width, the name, the tabs and the circle on one row: the tabs a little tighter on a
   tablet, a long company name cut short, never the circle dropping onto a line of its own (the video review's header does the same) */
@media (min-width: 761px) {
  .top:has(.appTabs:not([hidden])) { flex-wrap: nowrap; }
  .top:has(.appTabs:not([hidden])) .brandline, .top:has(.appTabs:not([hidden])) > .mark { flex: 0 1 auto; min-width: 0; }
  .top:has(.appTabs:not([hidden])) .mark { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 26vw; }
  .top:has(.appTabs:not([hidden])) .topRight { flex: none; }
  .appTabs { flex: 1 1 0; }
}
@media (min-width: 761px) and (max-width: 1050px) { .appTabs button { padding: 7px 10px; font-size: 14px; } .top .mark { font-size: 24px; } .top { gap: 12px; } }
@media (max-width: 760px) {
  .appTabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0; background: var(--panel); border-top: 1px solid var(--line); padding: 0 0 env(safe-area-inset-bottom); }
  .appTabs[hidden] { display: none; }
  .appTabs button { display: grid; justify-items: center; gap: 3px; padding: 9px 2px 8px; background: none; border: 0; border-top: 3px solid transparent; font-size: 11.5px; }
  .appTabs button.on { background: none; color: var(--text); border-top-color: var(--primary); }
  .appTabs svg { display: block; }
  .appTabs .tl { display: none; } .appTabs .ts { display: inline; }
  body:has(.appTabs:not([hidden])) { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
}

/* Results: a recording a crowd was in, counted again in full on the server (deep analysis), still going or never finished */
.deepNote { display: grid; gap: 8px; margin: 0 0 16px; } .deepNote p { margin: 0; padding: 10px 14px; border-left: 4px solid var(--good, #3ddc97); background: rgba(127, 127, 127, .12); line-height: 1.4; }
.deepNote p.going { border-left-color: #ffc400; } .deepNote p.bad { border-left-color: var(--bad, #e2231a); }
/* (28 Nov 2026) the console's plans: the free version, by the hour, 20 hours a month, unlimited */
.planGrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 12px; }
.planOpt { display: flex; flex-direction: column; gap: 8px; background: var(--bg); border: 1px solid var(--line); border-top: 4px solid var(--primary); padding: 14px; min-width: 0; }
.planOpt b { font: italic 800 1.35rem/1.1 var(--display); text-transform: uppercase; }
.planOpt .planPrice { font-weight: 700; color: var(--primary-text); }
.planOpt small { color: var(--muted); line-height: 1.4; flex: 1; }
.planOpt .planCount { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.planOpt .planCount select { width: auto; }
.planOpt .linkbtn { text-align: center; text-decoration: none; }
.planHave { background: var(--bg); border-left: 4px solid var(--accent); padding: 12px 14px; margin-top: 10px; }
/* (28 Nov 2026) the plan, picked at the top of the booking, and under it what it needs */
.planPick { display: grid; gap: 4px; max-width: 420px; margin-bottom: 6px; }
.planPick label { font-weight: 700; }
.planPanel { display: grid; gap: 10px; background: var(--bg); border: 1px solid var(--line); border-top: 4px solid var(--primary); padding: 14px; margin: 4px 0 14px; }
.planPanel p { margin: 0; line-height: 1.45; }
.planPanel .linkbtn { justify-self: start; text-decoration: none; }
.planPanel textarea { width: 100%; }
.planPanel > .primary { justify-self: start; }
.planBuy { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.planBuy .planCount { display: flex; align-items: center; gap: 8px; font-weight: 600; margin: 0; }
.planBuy .planCount select { width: auto; }
.planHave p { margin: 0 0 6px; }

/* the language menu (i18n.js fills it), at the top right, and the currency menu by the prices (money.js) */
.langPick, .currencyPick { font: inherit; font-size: .9rem; color: var(--text); background: var(--panel); border: 1px solid var(--line); padding: 4px 6px; border-radius: 4px; max-width: 9.5em; }
.currencyPick { max-width: 100%; }
.currencyLine { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 10px; }
.currencyLine small { color: var(--muted); flex-basis: 100%; }
/* Arabic and Thai (i18n.js sets <html lang>): no slanted lettering or added letter spacing, which break Arabic's joined letters */
html[lang="ar"] *, html[lang="th"] * { font-style: normal !important; letter-spacing: 0 !important; }

/* (29 Nov 2026) a company's dedicated servers on its admin card, and the one-time code to pair one */
.custDedicated { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.custDedicated h4 { margin: 0 0 6px; font-size: 1rem; }
.custDedicated .pairCode { margin: 8px 0; overflow-wrap: anywhere; }
.custDedicated .pairCode b { font: 700 1.3rem ui-monospace, Consolas, monospace; letter-spacing: .12em; }
.custDedicated code { font-size: .85rem; }
/* the console's list of a company's own servers */
.dedicatedBox .serverRow small { display: block; }
/* (29 Nov 2026) Your cameras: its heading with Add camera beside it, and a camera's QR code popped out over the page (console.js showQr) */
.cardHead { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; }
.small:disabled { opacity: .55; cursor: default; }
.small:disabled:hover { border-color: var(--line); }
.qrDlg { background: var(--panel); color: var(--text); border: 1px solid var(--line); padding: 22px; width: min(400px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); text-align: center; }
.qrDlg::backdrop { background: rgb(0 0 0 / .65); }
.qrDlg h2 { font-size: 1.6rem; }
.qrDlg p { margin: 8px 0 0; }
.qrBox { display: grid; place-items: center; width: min(300px, 100%); aspect-ratio: 1; margin: 14px auto 0; background: #fff; }
.qrBox img { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.qrDlg .primary { margin-top: 16px; }

/* (29 Nov 2026, the owner: "it should just have a button for book a camera"; "update / edit bookings from a my bookings area") Home's
   Book a camera, and each booking as a card: on Home its cameras and their video review, in My bookings its changes too (console.js) */
.bookCta { display: grid; gap: 8px; margin: 18px 0 0; }
.bookCta .primary { margin: 0; font-size: 1.3rem; padding: 14px 18px; }
.bookCta small { color: var(--muted); }
.draftsNote { margin: 12px 0 0; }
.bookingList { display: grid; gap: 10px; margin: 14px 0 0; }
.bookingList:empty { display: none; }
.bkCard { padding: 12px 14px; background: var(--bg); border-left: 3px solid var(--line); }
.bkCard[data-state="on"] { border-left-color: var(--accent); }
.bkCard[data-state="booked"], .bkCard[data-state="starting"] { border-left-color: var(--primary); }
.bkHead { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; }
.bkHead .light { width: 11px; height: 11px; }
.bkHead > b { font-size: 1.1rem; min-width: 0; overflow-wrap: anywhere; }
.bkState { color: var(--muted); font-size: .9rem; }
.bkCost { margin-inline-start: auto; font-weight: 700; }
.bkCost small { color: var(--accent); font-weight: 600; }
.bkWhen { margin: 4px 0 0; color: var(--muted); font-size: .92rem; }
.bkCams { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.bkCams li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bkCams i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.bkCams li > span { flex: 1 1 160px; min-width: 0; }
.bkCams small { color: var(--muted); margin-left: 6px; }
.bkActions { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--line); }
.bkActions .linkbtn { display: inline-block; width: auto; margin: 0; }
.bkActions .primary.small { padding: 7px 12px; font-size: .95rem; }
.bkExtend { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .92rem; }
.bkExtend select { width: auto; padding: 6px 8px; }
.manageLink { display: inline-block; text-decoration: none; }
.bookingList + .bookingList, #bookingsEmpty + .bookingList { margin-top: 10px; }
.planRow small .inReview { color: var(--accent); }
/* (30 Nov 2026) each camera's state in Home's one list: Live, Starting, Booked, Off, Recording (its recordings still kept) */
.camState { flex: none !important; font-size: .76rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 9px; border-radius: 99px; background: var(--panel); color: var(--muted); border: 1px solid var(--line); }
.camState[data-s="live"] { background: var(--accent); color: #08130d; border-color: var(--accent); }
.camState[data-s="starting"], .camState[data-s="booked"] { color: var(--primary-text); border-color: var(--primary); }
.camState[data-s="recording"] { color: #9db7ff; border-color: #5b8cff; }
.bkCams .camBtns { flex: none !important; display: flex; gap: 6px; margin-inline-start: auto; }
.bkCard[data-state="past"] { border-left-color: #5b8cff; } .bkCard[data-state="off"] { border-left-color: var(--line); }
.historyBox .cardHead .linkbtn { width: auto; margin: 0; }
.historyBox h2 { font-size: 1.25rem; margin: 18px 0 0; }
.bkActions .primary.small, .historyBox .cardHead .primary.small { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
