/* Styles for the app, layered on top of Bootstrap 5.
   Sections: 1 typeface and colours  2 base  3 navigation  4 cards, buttons, forms  5 page pieces  6 small helpers

   Class names start with "qc-" (the project's original working name); they are internal and never shown. */

/* ---------- 1. Typeface and colours ---------- */

/* Inter, hosted with the app (no request to another site). One file covers every weight. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/InterVariable.woff2") format("woff2");
}

:root {
  --qc-green: #0f5c4d;
  --qc-green-dark: #0a4439;
  --qc-green-tint: #e7f2ee;
  --qc-ink: #101816;
  --qc-ink-soft: #3a4743;
  --qc-muted: #6b7773;
  --qc-line: #e5e9e7;
  --qc-line-strong: #d3dad7;
  --qc-page: #f6f7f6;
  --qc-surface: #ffffff;
  --qc-radius: 16px;
  --qc-radius-small: 10px;
  --qc-shadow: 0 1px 2px rgba(16, 24, 22, 0.04), 0 4px 16px rgba(16, 24, 22, 0.04);
  --qc-shadow-raised: 0 2px 4px rgba(16, 24, 22, 0.05), 0 12px 28px rgba(16, 24, 22, 0.09);
  --qc-tabbar-height: 62px;

  --bs-font-sans-serif: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bs-body-font-family: var(--bs-font-sans-serif);
  --bs-primary: var(--qc-green);
  --bs-primary-rgb: 15, 92, 77;
  --bs-body-color: var(--qc-ink);
  --bs-body-bg: var(--qc-page);
  --bs-secondary-color: var(--qc-muted);
  --bs-border-color: var(--qc-line);
  --bs-link-color: var(--qc-green);
  --bs-link-color-rgb: 15, 92, 77;
  --bs-link-hover-color: var(--qc-green-dark);
  --bs-link-hover-color-rgb: 10, 68, 57;
  --bs-border-radius: var(--qc-radius-small);
}

/* ---------- 2. Base ---------- */
html { font-size: 16px; scroll-padding-top: 80px; }

body {
  font-family: var(--bs-font-sans-serif);

  -webkit-font-smoothing: antialiased;
  background: var(--qc-page);
  color: var(--qc-ink);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.qc-page { flex: 1; padding-top: 1.5rem; padding-bottom: 2.5rem; }

/* Prices line up in columns: equal-width figures wherever amounts are shown. */
.table, .text-end, .qc-totals, .qc-stat, [data-total], [data-out] { font-variant-numeric: tabular-nums; }

/* One comfortable reading width for the top bar, the page and the footer, so they line up. */
.qc-topbar > .container, .container.qc-page, .qc-footer > .container { max-width: 960px; }

/* Bootstrap's flex helpers would otherwise override the "hidden" attribute. */
[hidden] { display: none !important; }

h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5 { letter-spacing: -0.022em; color: var(--qc-ink); }
h1.h3 { font-size: 1.65rem; font-weight: 700; }
h2.h5 { font-size: 1.1rem; font-weight: 650; }
h2.h6 { font-size: 0.95rem; font-weight: 650; }
.h4 { font-weight: 700; }
.fw-semibold { font-weight: 600 !important; }
.text-muted { color: var(--qc-muted) !important; }
.small, small { font-size: 0.855rem; }
a { text-underline-offset: 0.18em; }

:focus-visible { outline: 2px solid var(--qc-green); outline-offset: 2px; }

/* ---------- 3. Navigation ---------- */

/* Top bar: logo, main sections (desktop) and the New quote button. Slightly see-through. */
.qc-topbar {
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--qc-line);
  z-index: 1030;
}
.qc-topbar > .container { min-height: 60px; }

.qc-brand-link { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--qc-green); text-decoration: none; }
.qc-brand-link:hover { color: var(--qc-green-dark); }
.qc-logo-mark { flex: none; }
.qc-wordmark { font-weight: 750; font-size: 1.12rem; letter-spacing: -0.035em; color: var(--qc-ink); }
.qc-wordmark-accent { color: var(--qc-green); }

.qc-topnav { gap: 0.15rem; align-items: center; margin-left: 0.75rem; }
.qc-topnav a {
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  color: var(--qc-ink-soft);
  font-size: 0.93rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.12s ease, color 0.12s ease;
}
.qc-topnav a:hover { background: rgba(16, 24, 22, 0.05); color: var(--qc-ink); }
.qc-topnav a.active { background: var(--qc-green-tint); color: var(--qc-green); font-weight: 600; }

.qc-more-button { color: var(--qc-ink-soft); font-weight: 500; border: 1px solid transparent; border-radius: 999px; }
.qc-more-button:hover, .qc-more-button.show { color: var(--qc-ink); background: rgba(16, 24, 22, 0.05); }
.qc-more-button.active { color: var(--qc-green); background: var(--qc-green-tint); }

.dropdown-menu { border: 1px solid var(--qc-line); border-radius: 14px; box-shadow: var(--qc-shadow-raised); padding: 0.4rem; min-width: 13.5rem; }
.dropdown-item { border-radius: 9px; padding: 0.55rem 0.7rem; display: flex; align-items: center; gap: 0.65rem; font-size: 0.93rem; color: var(--qc-ink); }
.dropdown-item .qc-icon { color: var(--qc-muted); }
.dropdown-item:hover { background: rgba(16, 24, 22, 0.05); }
.dropdown-item.active, .dropdown-item:active { background: var(--qc-green-tint); color: var(--qc-green); }
.dropdown-item.active .qc-icon { color: var(--qc-green); }

/* Bottom tab bar on phones. */
.qc-tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1030;
  display: flex;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-top: 1px solid var(--qc-line);
  padding-bottom: env(safe-area-inset-bottom);
}
.qc-tabbar a, .qc-tabbar button {
  flex: 1 1 0;
  min-width: 0;
  height: var(--qc-tabbar-height);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: none;
  border: 0;
  color: var(--qc-muted);
  font-size: 0.69rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  text-decoration: none;
}
/* The icon sits in a pill that fills with colour for the current section. */
.qc-tabbar .qc-icon { box-sizing: content-box; width: 21px; height: 21px; padding: 3px 16px; border-radius: 999px; transition: background-color 0.15s ease; }
.qc-tabbar a.active, .qc-tabbar button.active { color: var(--qc-green); font-weight: 650; }
.qc-tabbar a.active .qc-icon, .qc-tabbar button.active .qc-icon { background: var(--qc-green-tint); }

/* Leave room for the tab bar so it never covers the end of a page. */
@media (max-width: 991.98px) {
  body.qc-app { padding-bottom: calc(var(--qc-tabbar-height) + env(safe-area-inset-bottom)); }
  body.qc-app .qc-footer { display: none; }
  .qc-page { padding-top: 1.1rem; }
}

/* The "More" sheet that slides up from the tab bar. */
.qc-sheet { height: auto !important; max-height: 85vh; border: 0; border-radius: 22px 22px 0 0; padding-bottom: env(safe-area-inset-bottom); box-shadow: var(--qc-shadow-raised); }
.qc-sheet .offcanvas-header { padding-bottom: 0.4rem; }
.qc-sheet .list-group-item { display: flex; align-items: center; gap: 0.8rem; padding: 0.95rem 0.25rem; border-color: var(--qc-line); width: 100%; text-align: left; background: none; font-weight: 500; color: var(--qc-ink); }
.qc-sheet .list-group-item .qc-icon { color: var(--qc-muted); }
.qc-sheet form .list-group-item { border-width: 0; }
.qc-sheet .list-group-item.active { background: none; color: var(--qc-green); font-weight: 650; border-color: var(--qc-line); }
.qc-sheet .list-group-item.active .qc-icon { color: var(--qc-green); }
.offcanvas-backdrop.show { opacity: 0.35; }

/* "Back to ..." link at the top of inner pages. */
.qc-back {
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
  margin: -0.2rem 0 0.85rem -0.35rem;
  padding: 0.2rem 0.55rem 0.2rem 0.25rem;
  border-radius: 999px;
  color: var(--qc-muted);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}
.qc-back:hover { color: var(--qc-ink); background: rgba(16, 24, 22, 0.05); }
.qc-back .qc-icon { width: 17px; height: 17px; }

/* Shortcuts to the parts of a long page (the quote page). Scrolls sideways on narrow screens. */
.qc-sections { display: flex; gap: 0.4rem; overflow-x: auto; margin: 0 0 1.1rem; padding-bottom: 2px; scrollbar-width: none; }
.qc-sections::-webkit-scrollbar { display: none; }
.qc-sections a {
  flex: none;
  padding: 0.32rem 0.85rem;
  border-radius: 999px;
  background: var(--qc-surface);
  border: 1px solid var(--qc-line);
  color: var(--qc-ink-soft);
  font-size: 0.84rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.12s ease, color 0.12s ease;
}
.qc-sections a:hover { border-color: var(--qc-green); color: var(--qc-green); }

.qc-trial {
  display: inline-block;
  background: var(--qc-green-tint);
  color: var(--qc-green-dark);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  margin-bottom: 1rem;
  font-size: 0.84rem;
}
.qc-trial a { font-weight: 650; }

.qc-footer { border-top: 1px solid var(--qc-line); color: var(--qc-muted); font-size: 0.84rem; padding: 1.1rem 0; }

.qc-icon { flex: none; vertical-align: -0.2em; }

/* ---------- 4. Cards, buttons, forms ---------- */
.card {
  border: 1px solid rgba(16, 24, 22, 0.07);
  border-radius: var(--qc-radius);
  box-shadow: var(--qc-shadow);
  background: var(--qc-surface);
}
.card-body { padding: 1.1rem 1.2rem; }
.card-header { background: none; border-bottom-color: var(--qc-line); padding: 0.85rem 1.2rem; }
a.card { transition: border-color 0.14s ease, box-shadow 0.14s ease, transform 0.14s ease; }
a.card:hover { border-color: rgba(15, 92, 77, 0.45); box-shadow: var(--qc-shadow-raised); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { a.card:hover { transform: translateY(-1px); } }

/* Rows in a list (quotes, invoices, customers): avatar, text that fills the space, amount. */
.card-body > .qc-truncate { flex: 1 1 auto; }
.vstack > .card > .card-body { padding-top: 0.85rem; padding-bottom: 0.85rem; }

.btn { border-radius: var(--qc-radius-small); font-weight: 600; font-size: 0.94rem; letter-spacing: -0.005em; display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; transition: background-color 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease, color 0.12s ease; }
/* Big enough to tap with a thumb */
.btn, .form-control, .form-select { min-height: 44px; }
.btn-sm, .form-control-sm, .form-select-sm { min-height: 36px; }
.btn-sm { font-size: 0.86rem; padding-left: 0.8rem; padding-right: 0.8rem; }
.btn-lg { min-height: 52px; font-size: 1rem; padding-left: 1.4rem; padding-right: 1.4rem; border-radius: 12px; }

.btn-primary {
  --bs-btn-bg: var(--qc-green);
  --bs-btn-border-color: var(--qc-green);
  --bs-btn-hover-bg: var(--qc-green-dark);
  --bs-btn-hover-border-color: var(--qc-green-dark);
  --bs-btn-active-bg: var(--qc-green-dark);
  --bs-btn-active-border-color: var(--qc-green-dark);
  --bs-btn-disabled-bg: var(--qc-green);
  --bs-btn-disabled-border-color: var(--qc-green);
  box-shadow: 0 1px 2px rgba(15, 92, 77, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.btn-success { box-shadow: 0 1px 2px rgba(25, 135, 84, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.12); }
.btn-outline-primary {
  --bs-btn-color: var(--qc-green);
  --bs-btn-border-color: rgba(15, 92, 77, 0.4);
  --bs-btn-hover-bg: var(--qc-green-tint);
  --bs-btn-hover-color: var(--qc-green-dark);
  --bs-btn-hover-border-color: var(--qc-green);
  --bs-btn-active-bg: var(--qc-green-tint);
  --bs-btn-active-color: var(--qc-green-dark);
  --bs-btn-active-border-color: var(--qc-green);
  background: var(--qc-surface);
}
.btn-outline-secondary {
  --bs-btn-color: var(--qc-ink);
  --bs-btn-border-color: var(--qc-line-strong);
  --bs-btn-hover-bg: var(--qc-page);
  --bs-btn-hover-color: var(--qc-ink);
  --bs-btn-hover-border-color: #b9c2be;
  --bs-btn-active-bg: var(--qc-line);
  --bs-btn-active-color: var(--qc-ink);
  --bs-btn-active-border-color: #b9c2be;
  background: var(--qc-surface);
}
.btn-outline-danger { background: var(--qc-surface); --bs-btn-border-color: rgba(220, 53, 69, 0.4); }
.btn-outline-success { background: var(--qc-surface); }
.btn-check:checked + .btn-outline-primary { background: var(--qc-green); border-color: var(--qc-green); color: #fff; }
.btn-link { font-weight: 500; text-decoration: none; }
.btn-link:hover { text-decoration: underline; }

.form-control, .form-select { border-color: var(--qc-line-strong); background-color: var(--qc-surface); color: var(--qc-ink); transition: border-color 0.12s ease, box-shadow 0.12s ease; }
.form-control::placeholder { color: #9aa5a1; }
.form-control[readonly] { background-color: var(--qc-page); }
.form-control:focus, .form-select:focus, .form-check-input:focus { border-color: var(--qc-green); box-shadow: 0 0 0 3px rgba(15, 92, 77, 0.14); }
.form-check-input { border-color: #b9c2be; }
.form-check-input:checked { background-color: var(--qc-green); border-color: var(--qc-green); }
.form-label { font-weight: 550; font-size: 0.9rem; margin-bottom: 0.35rem; color: var(--qc-ink-soft); }
.form-text { color: var(--qc-muted); font-size: 0.82rem; }
textarea.form-control { line-height: 1.45; }

/* Filter pills (All / Pending / Accepted / Rejected) */
.nav-pills { --bs-nav-pills-link-active-bg: var(--qc-ink); gap: 0.4rem; }
.nav-pills .nav-link { color: var(--qc-ink-soft); background: var(--qc-surface); border: 1px solid var(--qc-line); border-radius: 999px; padding: 0.32rem 0.9rem; font-size: 0.88rem; font-weight: 500; white-space: nowrap; }
.nav-pills .nav-link:hover { border-color: var(--qc-line-strong); color: var(--qc-ink); }
.nav-pills .nav-link.active { border-color: var(--qc-ink); color: #fff; }

.alert { border-radius: 12px; border-width: 0; font-size: 0.93rem; }
.alert-success { background: #e4f4ea; color: #14532d; }
.alert-danger { background: #fdeaea; color: #7f1d1d; }
.alert-warning { background: #fdf4d9; color: #6b4e00; }
.alert-info { background: var(--qc-green-tint); color: var(--qc-green-dark); }
.alert-secondary { background: #eceff0; color: #333d3a; }
.alert a:not(.btn) { color: inherit; font-weight: 600; }

/* Status badges: a soft tint with a coloured dot, easier on the eye than solid blocks. */
.badge { font-weight: 600; font-size: 0.74rem; letter-spacing: 0.005em; border-radius: 999px; padding: 0.32em 0.75em; }
.badge[class*="text-bg-"] { display: inline-flex; align-items: center; gap: 0.4em; }
.badge[class*="text-bg-"]::before { content: ""; width: 0.5em; height: 0.5em; border-radius: 50%; background: currentColor; opacity: 0.85; }
.badge.text-bg-warning { background-color: #fdf1cf !important; color: #8a5a00 !important; }
.badge.text-bg-success { background-color: #dff3e7 !important; color: #17663a !important; }
.badge.text-bg-danger { background-color: #fde5e5 !important; color: #a12222 !important; }
.badge.text-bg-secondary { background-color: #eceff0 !important; color: #56625e !important; }
.badge.text-bg-light { background-color: var(--qc-page) !important; color: var(--qc-muted) !important; font-weight: 500; }
.badge.text-bg-light::before { display: none; }
/* Count badges next to headings stay solid and small. */
h2 > .badge[class*="text-bg-"] { vertical-align: 0.15em; padding: 0.3em 0.65em; }
h2 > .badge[class*="text-bg-"]::before { display: none; }

.table { --bs-table-bg: transparent; --bs-table-border-color: var(--qc-line); font-size: 0.93rem; }
.table > thead th { font-size: 0.74rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--qc-muted); border-bottom-color: var(--qc-line-strong); }
.table > :not(caption) > * > * { padding: 0.6rem 0.4rem; }
.table > tbody > tr:last-child > * { border-bottom-width: 0; }

hr { border-color: var(--qc-line-strong); opacity: 1; }

/* ---------- 5. Page pieces ---------- */
.qc-form { max-width: 560px; }
.qc-narrow { max-width: 620px; }
.qc-wide { max-width: 100%; }
.qc-public { max-width: 720px; }
.qc-totals { max-width: 340px; }
.qc-vat-select { max-width: 260px; }

/* Log in and sign up: one centred card. */
.qc-auth { margin: 1.5rem auto 0; padding: 1.75rem 1.5rem; max-width: 440px; background: var(--qc-surface); border: 1px solid rgba(16, 24, 22, 0.07); border-radius: var(--qc-radius); box-shadow: var(--qc-shadow); }
.qc-auth h1 { margin-bottom: 0.35rem; }

/* Home page */
.qc-hero { text-align: center; padding: 2.5rem 0 2.75rem; }
.qc-hero h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; margin: 0.9rem auto 1rem; }
.qc-hero-lead { font-size: clamp(1rem, 2.4vw, 1.18rem); color: var(--qc-ink-soft); max-width: 600px; margin: 0 auto 1.6rem; }
.qc-eyebrow { display: inline-block; background: var(--qc-green-tint); color: var(--qc-green-dark); font-size: 0.78rem; font-weight: 650; letter-spacing: 0.02em; padding: 0.3rem 0.8rem; border-radius: 999px; }
.qc-feature-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: var(--qc-green-tint); color: var(--qc-green); margin-bottom: 0.8rem; }
.qc-features .card-body { padding: 1.25rem; }
.qc-features p { font-size: 0.92rem; }

/* Today page: the four figures */
.qc-stat { height: 100%; color: inherit; }
.qc-stat .card-body { padding: 0.95rem 1.05rem; }
.qc-stat .card-body > :first-child { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.qc-stat .h4 { font-size: 1.55rem; letter-spacing: -0.03em; margin: 0.15rem 0 0.05rem; }

.qc-due { border-left: 3px solid #e5484d; }
.qc-won { border-left: 3px solid #2f9e62; }
.qc-not-counted td { color: #98a29e; }

/* Initials badge for a customer */
.qc-avatar { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; font-size: 0.82rem; font-weight: 650; letter-spacing: 0.01em; }
.qc-avatar-0 { background: #e7f2ee; color: #0f5c4d; }
.qc-avatar-1 { background: #e8eefc; color: #2f4fa8; }
.qc-avatar-2 { background: #fdf0d9; color: #8a5a00; }
.qc-avatar-3 { background: #f3e9fb; color: #6b3fa0; }
.qc-avatar-4 { background: #fde8ec; color: #a3324b; }
.qc-avatar-5 { background: #e3f3f6; color: #1d6878; }

.qc-logo { max-height: 64px; max-width: 200px; }
.qc-brand { color: var(--qc-green); font-weight: 750; letter-spacing: -0.03em; }
.qc-price-list { width: auto; max-width: 260px; }
.qc-file { max-width: 320px; }
[data-line] label { margin-bottom: 0; color: var(--qc-muted); font-weight: 500; }

/* Titles that the section shortcuts jump to should not hide under the sticky top bar. */
[id].qc-anchor { scroll-margin-top: 76px; }

/* ---------- 6. Small helpers ---------- */
.qc-truncate { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qc-notes { white-space: pre-wrap; }
.qc-fingerprint { font-family: ui-monospace, Consolas, monospace; font-size: 0.72rem; word-break: break-all; }
details > summary { cursor: pointer; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ---------- Help centre ---------- */
.qc-help-hero { text-align: center; padding: 1.25rem 0 1.5rem; }
.qc-help-hero h1 { font-size: clamp(1.8rem, 5vw, 2.5rem); font-weight: 800; letter-spacing: -0.035em; margin-bottom: 0.4rem; }
.qc-help-lead { color: var(--qc-ink-soft); margin-bottom: 1.25rem; }

.qc-help-search { position: relative; max-width: 560px; margin: 0 auto; }
.qc-help-search .qc-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--qc-muted); pointer-events: none; }
.qc-help-search .form-control { min-height: 54px; padding-left: 2.9rem; border-radius: 999px; font-size: 1rem; box-shadow: var(--qc-shadow); }
.qc-help-status { min-height: 1.3rem; margin: 0.5rem 0 0; font-size: 0.855rem; color: var(--qc-muted); }

.qc-help-popular { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.4rem; margin-top: 0.35rem; }
.qc-help-popular a { padding: 0.28rem 0.75rem; border-radius: 999px; background: var(--qc-surface); border: 1px solid var(--qc-line); color: var(--qc-ink-soft); font-size: 0.82rem; font-weight: 500; text-decoration: none; }
.qc-help-popular a:hover { border-color: var(--qc-green); color: var(--qc-green); }

/* Topic cards */
.qc-help-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0.75rem; margin-bottom: 2.25rem; }
.qc-help-grid a.card { text-decoration: none; color: inherit; }
.qc-help-grid .card-body { padding: 1rem 1.05rem; }
.qc-help-grid .qc-feature-icon { margin-bottom: 0.6rem; }
.qc-help-grid-title { font-weight: 650; letter-spacing: -0.01em; }
.qc-help-grid-summary { font-size: 0.84rem; color: var(--qc-muted); margin-top: 0.15rem; }
@media (max-width: 575.98px) {
  .qc-help-grid { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
  .qc-help-grid-summary { display: none; }
  .qc-help-grid .card-body { padding: 0.85rem 0.9rem; }
}

/* Side menu (desktop) */
.qc-help-side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 1px; }
.qc-help-side-title { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--qc-muted); padding: 0 0.7rem 0.4rem; }
.qc-help-side a { padding: 0.38rem 0.7rem; border-radius: 9px; color: var(--qc-ink-soft); font-size: 0.875rem; font-weight: 500; text-decoration: none; }
.qc-help-side a:hover { background: rgba(16, 24, 22, 0.05); color: var(--qc-ink); }
.qc-help-side a.active { background: var(--qc-green-tint); color: var(--qc-green); font-weight: 600; }

/* A topic and its questions */
.qc-help-category { margin-bottom: 2rem; }
.qc-help-category > h2 { display: flex; align-items: center; gap: 0.65rem; font-size: 1.15rem; font-weight: 700; margin-bottom: 0.75rem; }
.qc-help-category > h2 .qc-feature-icon { width: 34px; height: 34px; border-radius: 10px; margin: 0; }
.qc-help-category > h2 .qc-icon { width: 18px; height: 18px; }
.qc-help-category > .card { overflow: hidden; }

.qc-help-article + .qc-help-article { border-top: 1px solid var(--qc-line); }
.qc-help-article[hidden] + .qc-help-article { border-top: 0; }
.qc-help-article > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.2rem;
  font-weight: 550;
  list-style: none;
  transition: background-color 0.12s ease;
}
.qc-help-article > summary::-webkit-details-marker { display: none; }
.qc-help-article > summary:hover { background: rgba(16, 24, 22, 0.025); }
/* A chevron that turns when the answer is open. */
.qc-help-article > summary::after {
  content: "";
  flex: none;
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 0.2rem;
  border-right: 2px solid var(--qc-muted);
  border-bottom: 2px solid var(--qc-muted);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.15s ease;
}
.qc-help-article[open] > summary { color: var(--qc-green); }
.qc-help-article[open] > summary::after { transform: rotate(225deg) translate(-2px, -2px); border-color: var(--qc-green); }

.qc-help-body { padding: 0 1.2rem 1.1rem; color: var(--qc-ink-soft); font-size: 0.95rem; max-width: 68ch; }
.qc-help-body > :last-child { margin-bottom: 0; }
.qc-help-body p, .qc-help-body ul, .qc-help-body ol { margin-bottom: 0.75rem; }
.qc-help-body ul { padding-left: 1.2rem; }
.qc-help-body li { margin-bottom: 0.3rem; }
.qc-help-body strong { color: var(--qc-ink); font-weight: 600; }

/* Numbered steps with round green numbers */
.qc-help-steps { list-style: none; padding-left: 0; counter-reset: step; }
.qc-help-steps > li { position: relative; padding-left: 2.3rem; margin-bottom: 0.55rem; counter-increment: step; min-height: 1.6rem; }
.qc-help-steps > li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 1.55rem; height: 1.55rem;
  border-radius: 50%;
  background: var(--qc-green-tint);
  color: var(--qc-green);
  font-size: 0.78rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

.qc-help-note { border-radius: 10px; padding: 0.6rem 0.8rem; font-size: 0.9rem; }
.qc-help-tip { background: var(--qc-green-tint); color: var(--qc-green-dark); }
.qc-help-warning { background: #fdf4d9; color: #6b4e00; }
.qc-help-note strong { color: inherit; }

.qc-help-contact { margin-top: 0.5rem; }
/* ---------- Validation summaries ----------
   An empty summary contains <li style="display:none">, and the Content Security Policy blocks
   that inline style, so its bullet showed as a stray red dot. Hide the empty summary here instead. */
.validation-summary-valid { display: none; }
.validation-summary-errors ul { margin: 0; padding-left: 1.1rem; }

/* ---------- Your account (Identity manage pages) ---------- */
.qc-account { display: grid; gap: 1rem; }
.qc-account-nav { display: flex; gap: 0.4rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.qc-account-nav::-webkit-scrollbar { display: none; }
.qc-account-nav a {
    flex: 0 0 auto; white-space: nowrap; padding: 0.45rem 0.9rem; border-radius: 999px;
    border: 1px solid var(--qc-line); background: var(--qc-surface);
    color: var(--qc-ink-soft); font-weight: 500; font-size: 0.92rem; text-decoration: none;
}
.qc-account-nav a:hover { color: var(--qc-ink); border-color: var(--qc-line-strong); }
.qc-account-nav a.active { background: var(--qc-green-tint); border-color: transparent; color: var(--qc-green); font-weight: 600; }
.qc-account-body { min-width: 0; }
.qc-account-body h3, .qc-account-body h4 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 1rem; }
.qc-account-body h5 { font-size: 1rem; font-weight: 600; }
/* The built-in pages squeeze forms into half a column; give them a comfortable fixed width instead. */
.qc-account-body .row > [class*="col-md-"] { flex: 0 0 100%; width: 100%; max-width: 560px; }
.qc-account-body .btn-lg { font-size: 1rem; padding: 0.65rem 1.2rem; border-radius: var(--qc-radius-small); }
@media (min-width: 768px) {
    .qc-account { grid-template-columns: 210px minmax(0, 1fr); align-items: start; gap: 1.5rem; }
    .qc-account-nav { flex-direction: column; overflow: visible; position: sticky; top: 1rem; }
    .qc-account-nav a { border-radius: var(--qc-radius-small); border-color: transparent; background: transparent; padding: 0.55rem 0.85rem; }
    .qc-account-nav a:hover { background: var(--qc-surface); border-color: var(--qc-line); }
    .qc-account-body .card-body { padding: 1.5rem 1.75rem; }
}

/* Authenticator set-up */
.qc-auth-steps { padding-left: 1.2rem; max-width: 560px; }
.qc-auth-steps > li { margin-bottom: 1.25rem; padding-left: 0.25rem; }
.qc-qr { margin: 0.75rem 0; padding: 10px; display: inline-block; background: #fff; border: 1px solid var(--qc-line); border-radius: var(--qc-radius-small); }
.qc-qr img { display: block; image-rendering: pixelated; }
.qc-key { display: inline-block; margin-top: 0.35rem; padding: 0.35rem 0.6rem; border-radius: 8px; background: var(--qc-page); color: var(--qc-ink); font-size: 0.95rem; word-break: break-all; }
.qc-code-input { max-width: 12rem; letter-spacing: 0.15em; font-variant-numeric: tabular-nums; }

/* ---------- Getting started checklist (Today page) ---------- */
.qc-start { border-color: var(--qc-green-tint); }
.qc-start-progress { display: flex; align-items: center; gap: 0.75rem; margin: 0.9rem 0 0.4rem; }
.qc-start-progress progress { flex: 1; height: 8px; border: 0; border-radius: 999px; overflow: hidden; background: var(--qc-line); appearance: none; -webkit-appearance: none; }
.qc-start-progress progress::-webkit-progress-bar { background: var(--qc-line); border-radius: 999px; }
.qc-start-progress progress::-webkit-progress-value { background: var(--qc-green); border-radius: 999px; }
.qc-start-progress progress::-moz-progress-bar { background: var(--qc-green); border-radius: 999px; }
.qc-start-steps { list-style: none; padding: 0; margin: 0 0 0.9rem; counter-reset: qc-step; }
.qc-start-steps li {
    counter-increment: qc-step; position: relative; display: flex; flex-direction: column;
    padding: 0.7rem 0 0.7rem 2.6rem; border-bottom: 1px solid var(--qc-line);
}
.qc-start-steps li:last-child { border-bottom: 0; }
.qc-start-steps li::before {
    content: counter(qc-step); position: absolute; left: 0; top: 0.7rem;
    width: 1.75rem; height: 1.75rem; border-radius: 50%; display: grid; place-items: center;
    border: 1.5px solid var(--qc-line-strong); color: var(--qc-ink-soft); font-size: 0.82rem; font-weight: 600;
}
.qc-start-steps li.is-done::before { content: "\2713"; background: var(--qc-green); border-color: var(--qc-green); color: #fff; }
.qc-start-title { font-weight: 600; color: var(--qc-ink); }
a.qc-start-title { color: var(--qc-green); text-decoration: none; }
a.qc-start-title:hover { text-decoration: underline; }
.qc-start-steps li.is-done .qc-start-title { color: var(--qc-muted); text-decoration: line-through; text-decoration-color: var(--qc-line-strong); }
.qc-start-hint { font-size: 0.85rem; color: var(--qc-muted); }
/* ---------- Kind colours shared by the calendar, agenda lists and home tiles ---------- */
:root {
    --qc-job: #0f5c4d; --qc-job-tint: #e7f2ee;
    --qc-followup: #b45309; --qc-followup-tint: #fef3c7;
    --qc-expires: #be123c; --qc-expires-tint: #ffe4e6;
    --qc-invoice: #1d4ed8; --qc-invoice-tint: #dbeafe;
}

/* ---------- Home (Today) ---------- */
.qc-greet {
    background: linear-gradient(135deg, var(--qc-green-dark), var(--qc-green) 70%, #17806b);
    color: #fff; border-radius: var(--qc-radius); padding: 1.4rem 1.3rem 2.6rem; margin-bottom: -1.6rem;
}
.qc-greet-date { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.8; }
.qc-greet h1 { font-size: clamp(1.6rem, 5vw, 2.1rem); font-weight: 700; letter-spacing: -0.03em; margin: 0.35rem 0 0.25rem; color: #fff; }
.qc-greet p { margin: 0; opacity: 0.9; }
.qc-cta {
    position: relative; display: flex; align-items: center; gap: 0.9rem; margin: 0 0.6rem 1rem;
    padding: 0.95rem 1.1rem; border-radius: var(--qc-radius); background: var(--qc-surface); color: var(--qc-ink);
    border: 1px solid var(--qc-line); box-shadow: var(--qc-shadow-raised); text-decoration: none;
}
.qc-cta:hover { border-color: var(--qc-green); color: var(--qc-ink); }
.qc-cta-icon { flex: 0 0 auto; width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center; background: var(--qc-green); color: #fff; }
.qc-cta-text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.qc-cta-text strong { font-size: 1.05rem; letter-spacing: -0.01em; }
.qc-cta-text span { font-size: 0.85rem; color: var(--qc-muted); }
.qc-cta > .qc-icon { color: var(--qc-green); }

.qc-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; margin-bottom: 1.6rem; }
@media (min-width: 576px) { .qc-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.qc-tile {
    display: flex; flex-direction: column; align-items: flex-start; gap: 0.1rem; padding: 0.9rem 1rem;
    background: var(--qc-surface); border: 1px solid var(--qc-line); border-radius: var(--qc-radius);
    box-shadow: var(--qc-shadow); text-decoration: none; color: var(--qc-ink); min-width: 0;
}
.qc-tile:hover { border-color: var(--qc-line-strong); color: var(--qc-ink); }
.qc-tile-icon { width: 2.1rem; height: 2.1rem; border-radius: 50%; display: grid; place-items: center; margin-bottom: 0.45rem; }
.qc-tile-icon .qc-icon { width: 18px; height: 18px; }
.qc-tile-value { font-size: 1.45rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; font-variant-numeric: tabular-nums; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.qc-tile-label { font-size: 0.8rem; color: var(--qc-muted); }
.qc-tile.is-chase .qc-tile-icon { background: var(--qc-followup-tint); color: var(--qc-followup); }
.qc-tile.is-pending .qc-tile-icon { background: var(--qc-invoice-tint); color: var(--qc-invoice); }
.qc-tile.is-won .qc-tile-icon { background: var(--qc-job-tint); color: var(--qc-job); }
.qc-tile.is-unpaid .qc-tile-icon { background: #ede9fe; color: #6d28d9; }

.qc-section-title { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 0.7rem; }
.qc-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; scroll-margin-top: 5rem; }
.qc-section-head a { font-size: 0.9rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.qc-empty {
    display: flex; flex-direction: column; align-items: center; gap: 0.3rem; text-align: center;
    padding: 1.5rem 1.2rem; border: 1px dashed var(--qc-line-strong); border-radius: var(--qc-radius); color: var(--qc-muted);
}
.qc-empty strong { color: var(--qc-ink); }
.qc-empty a { font-weight: 600; text-decoration: none; margin-top: 0.3rem; }

.qc-shortcuts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
@media (min-width: 768px) { .qc-shortcuts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.qc-shortcuts a {
    display: flex; flex-direction: column; padding: 1rem; background: var(--qc-surface); border: 1px solid var(--qc-line);
    border-radius: var(--qc-radius); box-shadow: var(--qc-shadow); text-decoration: none; color: var(--qc-ink);
}
.qc-shortcuts a:hover { border-color: var(--qc-line-strong); }
.qc-shortcuts a > span:last-child { font-size: 0.82rem; color: var(--qc-muted); }
.qc-shortcut-icon { width: 2.3rem; height: 2.3rem; border-radius: 50%; display: grid; place-items: center; background: var(--qc-green-tint); color: var(--qc-green); margin-bottom: 0.6rem; }

/* "Finish setting up" reminder: closed by default so the home page stays clean */
details.qc-start > summary { list-style: none; cursor: pointer; padding: 0.85rem 1.1rem; display: flex; flex-direction: column; gap: 0.5rem; }
details.qc-start > summary::-webkit-details-marker { display: none; }
.qc-start-summary { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.qc-start-summary strong::after { content: " \203A"; color: var(--qc-muted); }
details.qc-start[open] .qc-start-summary strong::after { content: " \2304"; }
.qc-start progress, .qc-setup-progress progress {
    width: 100%; height: 6px; border: 0; border-radius: 999px; overflow: hidden; background: var(--qc-line);
    appearance: none; -webkit-appearance: none; display: block;
}
.qc-start progress::-webkit-progress-bar, .qc-setup-progress progress::-webkit-progress-bar { background: var(--qc-line); }
.qc-start progress::-webkit-progress-value, .qc-setup-progress progress::-webkit-progress-value { background: var(--qc-green); border-radius: 999px; }
.qc-start progress::-moz-progress-bar, .qc-setup-progress progress::-moz-progress-bar { background: var(--qc-green); border-radius: 999px; }

/* ---------- Agenda rows (calendar list and "Coming up") ---------- */
.qc-agenda { display: flex; flex-direction: column; gap: 0.45rem; }
.qc-agenda-day { display: flex; flex-direction: column; gap: 0.45rem; scroll-margin-top: 5rem; }
.qc-agenda-day h3 { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--qc-muted); margin: 0.7rem 0 0.1rem; }
.qc-agenda-day h3.is-today { color: var(--qc-green); }
.qc-agenda-item {
    display: flex; align-items: center; gap: 0.8rem; padding: 0.65rem 0.9rem 0.65rem 0.75rem;
    background: var(--qc-surface); border: 1px solid var(--qc-line); border-left: 4px solid var(--kind);
    border-radius: var(--qc-radius-small); text-decoration: none; color: var(--qc-ink);
}
.qc-agenda-item:hover { border-color: var(--qc-line-strong); border-left-color: var(--kind); color: var(--qc-ink); }
.qc-agenda-kind { flex: 0 0 auto; font-size: 0.72rem; font-weight: 600; padding: 0.15rem 0.5rem; border-radius: 999px; background: var(--kind-tint); color: var(--kind); white-space: nowrap; }
.qc-agenda-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.qc-agenda-text > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qc-agenda-text span { font-size: 0.85rem; color: var(--qc-muted); }
.qc-agenda-amount { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.is-job { --kind: var(--qc-job); --kind-tint: var(--qc-job-tint); }
.is-followup { --kind: var(--qc-followup); --kind-tint: var(--qc-followup-tint); }
.is-expires { --kind: var(--qc-expires); --kind-tint: var(--qc-expires-tint); }
.is-invoice { --kind: var(--qc-invoice); --kind-tint: var(--qc-invoice-tint); }

/* ---------- Calendar ---------- */
.qc-cal-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 0.8rem; }
.qc-cal-nav { display: flex; gap: 0.35rem; }
.qc-cal-nav .btn { min-width: 2.2rem; }
.qc-cal-filters { display: flex; gap: 0.4rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin-bottom: 0.8rem; }
.qc-cal-filters::-webkit-scrollbar { display: none; }
.qc-cal-filter {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.35rem 0.75rem; border-radius: 999px;
    border: 1px solid var(--kind); background: var(--kind-tint); color: var(--kind); font-size: 0.85rem; font-weight: 600; white-space: nowrap;
}
.qc-cal-filter[aria-pressed="false"] { background: var(--qc-surface); border-color: var(--qc-line-strong); color: var(--qc-muted); text-decoration: line-through; }
.qc-cal-dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--kind); }
.qc-cal-filter[aria-pressed="false"] .qc-cal-dot { background: var(--qc-line-strong); }

.qc-cal-grid { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; background: var(--qc-surface); border: 1px solid var(--qc-line); border-radius: var(--qc-radius); overflow: hidden; }
.qc-cal-grid th { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--qc-muted); text-align: center; padding: 0.5rem 0; border-bottom: 1px solid var(--qc-line); }
.qc-cal-grid td { vertical-align: top; height: 5.6rem; padding: 0.3rem; border-bottom: 1px solid var(--qc-line); border-right: 1px solid var(--qc-line); }
.qc-cal-grid td:last-child { border-right: 0; }
.qc-cal-grid tbody tr:last-child td { border-bottom: 0; }
.qc-cal-grid td.is-outside { background: var(--qc-page); }
.qc-cal-grid td.is-outside .qc-cal-day { color: var(--qc-line-strong); }
.qc-cal-day { display: inline-grid; place-items: center; min-width: 1.6rem; height: 1.6rem; border-radius: 50%; font-size: 0.82rem; font-weight: 600; color: var(--qc-ink-soft); text-decoration: none; font-variant-numeric: tabular-nums; }
td.is-today .qc-cal-day { background: var(--qc-green); color: #fff; }
.qc-cal-cell { display: flex; flex-direction: column; gap: 2px; margin-top: 2px; }
.qc-cal-chip { display: block; padding: 1px 6px; border-radius: 6px; background: var(--kind-tint); color: var(--kind); font-size: 0.72rem; font-weight: 600; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qc-cal-chip:hover { color: var(--kind); filter: brightness(0.96); }
.qc-cal-more { font-size: 0.7rem; color: var(--qc-muted); text-decoration: none; padding-left: 4px; }
.qc-cal.hide-job .is-job:not(.qc-cal-filter), .qc-cal.hide-followup .is-followup:not(.qc-cal-filter),
.qc-cal.hide-expires .is-expires:not(.qc-cal-filter), .qc-cal.hide-invoice .is-invoice:not(.qc-cal-filter) { display: none; }
/* Phones: no room for names in the grid, so each item becomes a coloured dot; the list below has the detail. */
@media (max-width: 767.98px) {
    .qc-cal-grid td { height: 3.4rem; padding: 0.25rem 0.1rem; text-align: center; }
    .qc-cal-cell { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 3px; }
    .qc-cal-chip { width: 7px; height: 7px; padding: 0; border-radius: 50%; background: var(--kind); font-size: 0; }
    .qc-cal-more { display: none; }
}

/* ---------- First-run setup screens ---------- */
.qc-setup-body { background: var(--qc-surface); }
.qc-setup { max-width: 460px; margin: 0 auto; padding: 0.9rem 1.2rem 2rem; min-height: 100dvh; display: flex; flex-direction: column; }
.qc-setup > main { flex: 1; display: flex; flex-direction: column; }
.qc-setup-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin-bottom: 1.2rem; }
.qc-setup-top form { justify-self: end; }
.qc-setup-back { width: 2.2rem; height: 2.2rem; display: inline-grid; place-items: center; border-radius: 50%; color: var(--qc-ink-soft); }
a.qc-setup-back:hover { background: var(--qc-page); }
.qc-setup-later, .qc-setup-skip { border: 0; background: none; padding: 0.3rem 0; font-size: 0.88rem; font-weight: 600; color: var(--qc-muted); text-decoration: none; }
.qc-setup-later:hover, .qc-setup-skip:hover { color: var(--qc-ink); }
.qc-setup-progress { display: grid; grid-template-columns: 1fr auto; row-gap: 0.4rem; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--qc-muted); margin-bottom: 1.6rem; }
.qc-setup-progress span:nth-child(2) { color: var(--qc-green); }
.qc-setup-progress progress { grid-column: 1 / -1; height: 4px; }
.qc-setup-title { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 0.4rem; }
.qc-setup-optional { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--qc-muted); background: var(--qc-page); border-radius: 999px; padding: 0.2rem 0.55rem; vertical-align: middle; }
.qc-setup-lead { color: var(--qc-muted); margin-bottom: 1.5rem; }
.qc-setup-section { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; margin: 1.4rem 0 0.8rem; }
.qc-setup-form { flex: 1; display: flex; flex-direction: column; }
.qc-setup-form legend { float: none; font-size: 0.9rem; font-weight: 600; margin-bottom: 0.4rem; }
.qc-setup-actions { margin-top: auto; padding-top: 1.5rem; display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }
.qc-setup-actions form { width: 100%; text-align: center; }
.qc-setup-actions .btn { padding: 0.8rem 1rem; font-weight: 600; }
.qc-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--qc-page); border-radius: var(--qc-radius-small); }
.qc-seg label { text-align: center; padding: 0.55rem 0.5rem; border-radius: 8px; font-weight: 600; font-size: 0.92rem; color: var(--qc-muted); cursor: pointer; border: 1.5px solid transparent; }
.qc-seg .btn-check:checked + label { background: var(--qc-surface); color: var(--qc-ink); border-color: var(--qc-green); box-shadow: var(--qc-shadow); }
.qc-seg .btn-check:focus-visible + label { outline: 2px solid var(--qc-green); outline-offset: 2px; }
.qc-setup-logo { padding: 1rem; border: 1px solid var(--qc-line); border-radius: var(--qc-radius-small); margin-bottom: 0.6rem; text-align: center; }
.qc-setup-logo img { max-width: 100%; max-height: 120px; }
.qc-install-card { padding: 0.9rem 1rem; border: 1px solid var(--qc-line); border-radius: var(--qc-radius-small); background: var(--qc-page); margin-bottom: 0.8rem; font-size: 0.93rem; }
.qc-install-card ol { margin: 0.5rem 0 0; padding-left: 1.2rem; }
.qc-install-card li { margin-bottom: 0.25rem; }

/* Postcode / address finder */
.qc-lookup { position: relative; }
.qc-lookup-results { position: absolute; z-index: 20; left: 0; right: 0; margin-top: 4px; max-height: 15rem; overflow-y: auto; background: var(--qc-surface); border: 1px solid var(--qc-line-strong); border-radius: var(--qc-radius-small); box-shadow: var(--qc-shadow-raised); }
.qc-lookup-item { display: block; width: 100%; text-align: left; padding: 0.6rem 0.8rem; border: 0; border-bottom: 1px solid var(--qc-line); background: none; font-size: 0.92rem; color: var(--qc-ink); }
.qc-lookup-item:last-child { border-bottom: 0; }
.qc-lookup-item:hover, .qc-lookup-item:focus { background: var(--qc-green-tint); outline: none; }

/* ---------- Terms and privacy ---------- */
.qc-legal { max-width: 720px; margin: 0 auto; line-height: 1.65; }
.qc-legal h1 { font-size: 1.9rem; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 0.2rem; }
.qc-legal-updated { color: var(--qc-muted); font-size: 0.9rem; margin-bottom: 1.5rem; }
.qc-legal h2 { font-size: 1.15rem; font-weight: 700; margin: 2rem 0 0.6rem; padding-bottom: 0.4rem; border-bottom: 1px solid var(--qc-line); }
.qc-legal li { margin-bottom: 0.35rem; }