/* QPTCADDY + QPTunes look, on top of the suite base qpt.css (a copy of shared/qpt.css - never edit qpt.css here).
   Loaded right after qpt.css + qpt.js on every page (src/pages.js page()). Buttons, fields, badges, the toast, the
   spinner, the empty state and THE BAR all come from qpt.css; only what is QPTCADDY's own lives here. */
label { display: block; font-size: .9rem; color: var(--muted); margin-bottom: 4px; }
input[type="password"] { width: 100%; }
/* S-08: the Microsoft sign-in button */
.btn-ms { min-height: 44px; padding: 0 16px; gap: 10px; }
.btn-ms img { width: 18px; height: 18px; }

/* Kenneth's own colour (the mark's mint; B2): the bar line, its hub card, a kit on the gig (public/kenneth.css) */
:root { --acc-kenneth: #7fd6b0; }
:root[data-theme="light"] { --acc-kenneth: #1d7653; }
/* marks */
.caddy-mark { width: 1.4em; height: 1.4em; flex: none; vertical-align: middle; display: inline-block; }
/* the golf bag's grey camera and mic are drawn for a dark bar: darker greys on paper */
:root[data-theme="light"] .caddy-mark [fill="#dfe6ee"] { fill: #7d8894; }
:root[data-theme="light"] .caddy-mark [stroke="#9aa7b5"] { stroke: #5d6873; }
:root[data-theme="light"] .caddy-mark [stroke="#8794a3"] { stroke: #dfe6ee; }
.brand-login { display: flex; align-items: center; justify-content: center; gap: .4em; font-size: 2rem; margin-bottom: 18px; }
/* a tool's own mark in the bar (.tool-mark, .tool-up): qpt.css */

/* login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login .panel { width: min(380px, 100%); }
.login-ms { text-align: center; } /* the Microsoft page: logo, line and button on one centre line */
.signout-do { margin: 12px 0 0; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; } /* Sign out page: the one button + stay */

/* hub */
.hub { max-width: 1040px; margin: 0 auto; padding: 8px 16px 40px; }
.hub .intro { margin: 24px 0 20px; }
.hub .intro h1 { font-size: clamp(1.5rem, 4vw, 2.1rem); }
/* the tool cards: .toolcards / .toolcard (+ .small, .soon) are qpt.css; the colour comes in as --c on each card */
.toolcard .top { display: flex; align-items: center; gap: 10px; }
/* Each tool's own mark (Martin, 12 Oct 2026): before the name on its home page card and in its page title */
.tool-mark { flex: none; display: block; }
.toolcard .name { font-size: 1.5rem; }
/* the day's fact first and big, with a state dot; the "what" line small under it */
.toolcard .live { display: flex; align-items: baseline; gap: 10px; margin: 4px 0 0; font-size: 1.15rem; line-height: 1.35; }
.toolcard .live .dot { position: relative; top: -1px; }
.toolcard .live b { color: var(--text); }
.toolcard .live .muted { font-size: .95rem; }
.toolcard .what { margin: auto 0 0; padding-top: 10px; font-size: .92rem; color: var(--muted); }
.toolcard.soon .name, .toolcard.soon .what { color: var(--muted); }
/* the office row: the office's own tools, a second and smaller row of cards (office only) */
.toolcards.office { margin-top: 16px; grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); gap: 12px; }
.toolcard.small .name { font-size: 1.05rem; }
.toolcard.small .what { margin: 4px 0 0; padding-top: 0; font-size: .88rem; color: var(--muted); }

/* ink on a person's colour (willy.css): the person colours are bright in both modes, so the ink stays dark in both */
:root { --on-c: #0b0f14; }

/* customer relationship badges (src/relationships.js) */
.rel { display: inline-block; font-size: .72rem; font-weight: 800; padding: 1px 8px; border-radius: 999px; margin-left: 4px; vertical-align: 1px;
  color: var(--rc); background: color-mix(in oklab, var(--rc) 18%, transparent); border: 1px solid color-mix(in oklab, var(--rc) 50%, transparent); }

/* S-24 usage count on the hub (office only, folded) */
.usage { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 14px; }
.usage summary { cursor: pointer; font-weight: 700; }
.usage-body { display: grid; gap: 12px; margin-top: 12px; }
.usage-body p { margin: 0; }
.usage-scroll { overflow-x: auto; }
/* the table itself is .tbl.nums (qpt.css); here it only keeps to its content */
.usage-table { width: auto; font-size: .92rem; }
.usage-table th, .usage-table td { padding: 6px 12px 6px 0; white-space: nowrap; }
.usage-table tr.none th, .usage-table tr.none td { color: var(--muted); }
/* THE PHASE COLOURS (one place: ADMIN's chips, bars and clips, Willy's day tags). An element with class ph-<KIND> gets --pc.
   Lyd = pink, Lyd/AV = lime (Martin 26 Oct: the easy sound work on a gig's other days, told apart at a glance); Prep = indigo
   (b579, 4 Nov: the crew's call time that is not rigging - never the grey of Rigg, never the red of Live). */
:root {
  --ph-live: var(--live); --ph-opptak: var(--acc-rec); --ph-prove: var(--acc-book); --ph-rigg: var(--sep); --ph-jobb: var(--muted);
  --ph-befaring: var(--acc-viz); --ph-lyd: var(--acc-tunes); --ph-lydav: var(--acc-ndc); --ph-prep: var(--acc-inbox);
}
.ph-RIGG, .ph-NEDRIGG { --pc: var(--ph-rigg); } .ph-PRØVE { --pc: var(--ph-prove); } .ph-LIVE { --pc: var(--ph-live); }
.ph-OPPTAK { --pc: var(--ph-opptak); } .ph-JOBB { --pc: var(--ph-jobb); } .ph-BEFARING { --pc: var(--ph-befaring); }
.ph-LYD { --pc: var(--ph-lyd); } .ph-LYD\/AV { --pc: var(--ph-lydav); } .ph-PREP { --pc: var(--ph-prep); }
/* THE CARD TEXT (P34d, public/card-text.js): Trello's markdown drawn calm - ADMIN's From the card, comments and Teams pill, Willy's
   brief, the card in full and comments. Bold labels, short gaps between paragraphs, real lists, one thin rule; a hidden secret =
   "on the Trello card" in a dashed outline (a link to that card); a phone number = tap to call. */
.ct { white-space: normal; overflow-wrap: anywhere; line-height: 1.45; }
.ct p, .ct ul, .ct ol, .ct blockquote, .ct pre { margin: 0 0 .55em; }
.ct > :last-child, .ct details > :last-child { margin-bottom: 0; }
.ct ul, .ct ol { padding-left: 1.4em; }
.ct li + li { margin-top: .12em; }
.ct .ct-h { margin: .8em 0 .25em; }
.ct > .ct-h:first-child { margin-top: 0; }
.ct hr { border: 0; border-top: 1px solid var(--line); margin: .7em 0; }
.ct blockquote { padding-left: .7em; border-left: 2px solid var(--line); color: var(--muted); }
.ct code, .ct pre { font: .84em/1.4 var(--font-mono); background: var(--panel-2); border-radius: var(--radius-s); }
.ct code { padding: 0 .25em; }
.ct pre { padding: .45em .6em; white-space: pre-wrap; }
.ct-hid { display: inline-block; padding: 0 .4em; border: 1px dashed var(--sep); border-radius: var(--radius-s); font-size: .92em; line-height: 1.35; white-space: nowrap; color: var(--muted); }
a.ct-hid { color: var(--link); }
.ct-key { margin: 6px 0 2px; padding: 6px 12px; min-height: 36px; font-size: .92em; } /* "Show key" (audit R3): under the text it opens */
.ct-keyerr { margin-left: 8px; }
.ct-keybox { overflow-wrap: anywhere; } /* a shown key or address never wider than the screen (P9) */
.ct a.ct-tel { white-space: nowrap; }
.ct details.ct-more > summary { cursor: pointer; color: var(--link); font-size: .8rem; margin: 0 0 .4em; }

/* ---- THE SHARED PIECES (P10, 4 Nov 2026; the code and how a page uses each: public/app.js) ---- */
/* THE ? BY A HEADING: the suite's .qhelp (qpt.css) + a × in its corner (app.js help()); a 44 px × on a phone */
.qhelp > .qhelp-b { padding-right: 34px; }
.qhelp-x { position: absolute; top: 3px; right: 3px; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 6px;
  background: transparent; color: var(--muted); font-size: 1.15rem; font-weight: 400; line-height: 1; }
.qhelp-x:hover { color: var(--text); border-color: transparent; background: var(--panel); }
@media (max-width: 760px) { .qhelp > .qhelp-b { padding-right: 48px; min-height: 44px; } .qhelp-x { top: 0; right: 0; width: 44px; height: 44px; } }
/* in the bar: the ? right after the tool name (bar({ help })), never cut off with the name */
.qpt-bar .qpt-toolh { display: inline-flex; align-items: center; min-width: 0; }
.qpt-bar .qpt-toolh .qhelp { flex: none; font-size: .75rem; }
/* phone: the page's name and its ? stay whole; a long person's name gives way first ("Kari Nordm…") */
@media (max-width: 700px) {
  .qpt-bar .qpt-toolh { flex: 0 1 auto; } .qpt-bar .qpt-toolh .qpt-tool { flex: 0 1 auto; }
  .qpt-bar:has(.qpt-toolh) .qpt-you { flex: 1 1 0; min-width: 0; justify-content: flex-end; }
  .qpt-bar:has(.qpt-toolh) .qpt-you .qpt-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .qpt-bar:has(.qpt-toolh) .qpt-you .qpt-out { flex: none; }
}

/* THE ONE FOOTER LINE (page() in src/pages.js): [the page's fact] · Version … · Report a bug - centred, inside the side padding */
.qpt-foot.qpt-line { justify-content: center; text-align: center; gap: 4px .5em; margin: var(--sp-5) 0 0;
  padding: var(--sp-3) var(--sp-4) calc(var(--sp-5) + env(safe-area-inset-bottom, 0px)); }
.qpt-line > * + *::before, .qpt-fact > * + *::before { content: "·"; margin-right: .5em; }
.qpt-fact { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px .5em; }
.qpt-fact:empty, .qpt-fact:has(> :only-child:empty) { display: none; }
.qpt-fact:empty + *::before, .qpt-fact:has(> :only-child:empty) + *::before { content: none; }
/* a piece that starts a row of its own when the line wraps (app.js marks it .qpt-sol): no "·" in front of it - a long
   "Last change: ..." pushed "· Version dev" onto a row that began with the dot (P10 review, Kenneth on a phone) */
.qpt-line .qpt-sol::before { content: none; }
.qpt-line .dot { width: 8px; height: 8px; margin-right: 6px; }
.qpt-line .qpt-bug { display: inline-flex; align-items: center; }
.qpt-line .qpt-buglink { padding: 2px 4px; background: transparent; border-color: transparent; color: var(--muted);
  font-size: inherit; font-weight: 400; }
.qpt-line .qpt-buglink:hover { color: var(--text); border-color: var(--line); }
@media (pointer: coarse) { .qpt-line .qpt-buglink { min-height: 44px; } }
/* QPTunes: its player sits fixed at the foot of the screen - the line stays above it */
body:has(.player:not([hidden])) .qpt-line { padding-bottom: calc(150px + env(safe-area-inset-bottom, 0px)); }

/* TIMES: the 24-hour box (app.js timeBox()) is a text box as wide as "HH:MM" */
input[data-qtime] { width: calc(5ch + 24px); text-align: center; font-variant-numeric: tabular-nums; }

/* FOCUS ON CLICK, the hint in an empty box, a button that cannot be pressed yet: QPTCADDY's own since 8 Nov, the suite's
   since b476 (27 Nov 2026) - in qpt.css now */
.datebtn:focus { outline: 2px solid var(--focus); outline-offset: 2px; }   /* BOOK's date button: a ring on click too */

/* "YOU ARE INSIDE THIS": the colour of the open thing - an open editor and the row or block that opened it, framed together.
   Teal (ADMIN's colour) in both themes: box-shadow: 0 0 0 2px var(--open) or outline: 2px solid var(--open). */
:root { --open: var(--acc-man); }
.leads-open { color: var(--amber); font-weight: 600; } /* the hub's BOOKING card: open leads, amber where they sit (audit R8, P4) */
