/* Bookend portal
   Workwear navy, trade blue for actions, hi-vis yellow only for progress and "you are here". */

:root {
  --navy: #13233a;
  --navy-2: #1d3352;
  --navy-ink: #c3cedd;
  --blue: #0b5cab;
  --blue-dark: #084680;
  --blue-soft: #e6effa;
  --hivis: #f5c518;
  --bg: #edf1f5;
  --surface: #ffffff;
  --ink: #152131;
  --muted: #5a6778;
  --line: #d8dfe8;
  --field-line: #c3cddb;
  --ok-bg: #e2f3e9;
  --ok-ink: #155c38;
  --err-bg: #fbe6e1;
  --err-ink: #8e2a12;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r-panel: 14px;
  --r-control: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); }
h1, h2, p { margin: 0; }

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 10;
  background: var(--hivis); color: var(--navy); font-weight: 700;
  padding: 10px 14px; border-radius: var(--r-control); text-decoration: none;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 20px;
  background: var(--blue); color: #fff;
  border: 0; border-radius: var(--r-control);
  font: 650 15.5px/1 var(--font); letter-spacing: .005em;
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--blue-dark); }
.btn-wide { width: 100%; }

/* ---------- Notices ---------- */
.notice {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; margin-bottom: 24px;
  border-radius: var(--r-control);
  font-weight: 600; font-size: 15px;
}
.notice::before {
  content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%;
  background: currentColor;
}
.notice.is-ok { background: var(--ok-bg); color: var(--ok-ink); }
.notice.is-err { background: var(--err-bg); color: var(--err-ink); }

/* ---------- Form controls ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
label { font-size: 14.5px; font-weight: 600; }
.field-hint { font-size: 13.5px; color: var(--muted); }

input, select, textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  font: 400 16px/1.4 var(--font);
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--field-line);
  border-radius: var(--r-control);
}
textarea { resize: vertical; min-height: 92px; }
input::placeholder, textarea::placeholder { color: #8b96a5; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(11, 92, 171, .2);
}

/* =========================================================
   App shell: navy rail + workspace
   ========================================================= */
.app {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
  /* keep the navy running the full height on long pages */
  background: linear-gradient(90deg, var(--navy) 248px, var(--bg) 248px);
}

.rail {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
  padding: 26px 16px 20px;
  background: var(--navy);
  color: var(--navy-ink);
}
.rail :focus-visible { outline-color: var(--hivis); }

.rail-brand, .auth-brand {
  display: flex; align-items: center; gap: 10px; width: fit-content;
  font-weight: 800; font-stretch: 75%; font-size: 27px; line-height: 1; letter-spacing: -.01em;
  color: #fff; text-decoration: none;
}
.rail-brand .logo-mark, .auth-brand .logo-mark { width: 32px; height: 32px; flex: none; }
.rail-brand { padding: 0 12px; margin-bottom: 34px; }

.rail-nav { display: flex; flex-direction: column; gap: 4px; }
.rail-nav a {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  min-height: 44px; padding: 0 12px;
  border-radius: var(--r-control);
  color: var(--navy-ink); text-decoration: none; font-weight: 550; font-size: 15.5px;
}
.rail-nav a:hover { background: var(--navy-2); color: #fff; }
.rail-nav a.is-active { background: var(--navy-2); color: #fff; }
.rail-nav a.is-active::before {
  content: ""; position: absolute; left: -16px; top: 9px; bottom: 9px;
  width: 4px; border-radius: 0 4px 4px 0; background: var(--hivis);
}
.rail-nav svg, .empty svg {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

.rail-foot {
  margin-top: auto; padding: 16px 12px 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; flex-direction: column; gap: 12px;
}
.rail-user { display: flex; align-items: center; gap: 10px; min-width: 0; }
.avatar {
  flex: none; display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--navy-2); color: #fff; font-weight: 700; font-size: 14px;
}
.rail-email { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-logout {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--navy-ink); font: 550 14px var(--font); text-decoration: underline; text-underline-offset: 3px;
}
.rail-logout:hover { color: #fff; }

.workspace {
  width: 100%; max-width: 1080px;
  padding: 44px 48px 64px;
}

/* ---------- Page headings ---------- */
.page-head { margin-bottom: 32px; }
.page-head h1 {
  font-weight: 800; font-stretch: 75%;
  font-size: clamp(34px, 4vw, 46px); line-height: 1; letter-spacing: -.01em;
}
.page-head-split { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.head-btn { flex: none; gap: 8px; margin-top: 4px; }
.head-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.head-btn.is-warn { box-shadow: inset 0 0 0 2px var(--err-ink); color: var(--err-ink); }
.head-btn.is-warn:hover { background: var(--err-bg); }
html { scroll-behavior: smooth; }
#own, #days-off, #phone { scroll-margin-top: 24px; }
.page-head h1.greeting { font-size: clamp(44px, 6.5vw, 76px); line-height: .92; }
.page-sub { margin-top: 10px; color: var(--muted); font-size: 17px; max-width: 62ch; }

/* =========================================================
   Dashboard
   ========================================================= */
.dash {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  padding: 24px;
}
.panel-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin-bottom: 18px;
}
.panel-head h2 { font-size: 18px; font-weight: 700; }
.panel-meta { font-size: 14px; color: var(--muted); }
.panel-link { font-weight: 600; font-size: 15px; }
.enquiries { grid-column: 1 / -1; }

/* Setup checklist: a real sequence, so it's numbered */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step {
  position: relative;
  display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 14px;
  padding-bottom: 22px;
  counter-increment: step;
}
.step:last-child { padding-bottom: 0; }
.step:not(:last-child)::after {           /* connecting line */
  content: ""; position: absolute; left: 15px; top: 34px; bottom: 4px;
  width: 2px; background: var(--line);
}
.step-mark {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  border: 2px solid var(--line); background: #fff;
  font-weight: 700; font-size: 14px; color: var(--muted);
}
.step-mark::before { content: counter(step); }
.step.is-done .step-mark { background: var(--navy); border-color: var(--navy); color: #fff; }
.step.is-done .step-mark::before {
  content: ""; width: 10px; height: 6px; margin-top: -3px;
  border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(-45deg);
}
.step.is-current .step-mark { border-color: var(--blue); color: var(--blue); }
.step-body { display: flex; flex-direction: column; gap: 3px; padding-top: 4px; min-width: 0; }
.step-body strong { font-size: 16px; font-weight: 650; }
.step-body > span { color: var(--muted); font-size: 14.5px; }
.step:not(.is-done):not(.is-current) .step-body strong { color: var(--muted); }
.step-body .btn { align-self: flex-start; margin-top: 12px; }
.step-todo { margin-top: 6px; font-size: 14px; color: var(--ink); }

.meter {
  height: 8px; margin-top: 10px; max-width: 320px;
  background: #e2e8ef; border-radius: 99px; overflow: hidden;
}
.meter span { display: block; height: 100%; background: var(--hivis); border-radius: 99px; }

/* Details at a glance: reads like a job docket */
.docket-rows { margin: 0; }
.docket-row {
  display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 12px;
  padding: 11px 0;
  border-top: 1px dashed var(--line);
}
.docket-row:first-child { border-top: 0; padding-top: 0; }
.docket-row dt { color: var(--muted); font-size: 14px; }
.docket-row dd { margin: 0; font-weight: 550; font-size: 15px; white-space: pre-line; overflow-wrap: anywhere; }
.docket-row dd.is-empty { color: #97a2b0; font-weight: 400; }

/* Empty enquiries */
.empty {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px; border-radius: var(--r-control);
  background: var(--bg);
}
.empty svg { width: 28px; height: 28px; color: var(--muted); margin-top: 2px; }
.empty p { color: var(--muted); font-size: 15px; max-width: 60ch; }
.empty .empty-title { color: var(--ink); font-weight: 650; font-size: 16px; margin-bottom: 2px; }

/* =========================================================
   Enquiries
   ========================================================= */
.stat-strip {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 16px;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-control);
  overflow: hidden;
}
.stat { padding: 14px 16px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat.is-alert { box-shadow: inset 0 4px 0 var(--hivis); }   /* hi-vis marker: something needs attention */
.stat dt { font-size: 13.5px; color: var(--muted); }
.stat dd { margin: 4px 0 0; font-weight: 800; font-stretch: 75%; font-size: 34px; line-height: 1; }

.enq-list { display: flex; flex-direction: column; gap: 8px; }
.enq {
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-control);
}
.enq.is-flagged { border-left: 4px solid var(--hivis); }
.enq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 14px;
  padding: 14px 16px;
}
.enq summary::-webkit-details-marker { display: none; }
.enq summary:hover .enq-name { color: var(--blue); }
.enq-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.enq-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.enq-name { font-weight: 650; font-size: 16px; }
.enq-job { color: var(--muted); font-size: 14.5px; }
.enq-side { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex: none; }
.enq-time { font-size: 13px; color: var(--muted); white-space: nowrap; }

.pill {
  display: inline-flex; align-items: center; height: 24px; padding: 0 9px;
  border-radius: 99px; font-size: 12.5px; font-weight: 650; white-space: nowrap;
}
.pill-flag { background: #fff3c4; color: #6b5300; }
.pill-emergency { background: var(--err-bg); color: var(--err-ink); }
.pill-status { background: var(--bg); color: var(--muted); }
.pill-status.status-quoted { background: var(--blue-soft); color: var(--blue-dark); }
.pill-status.status-booked { background: var(--ok-bg); color: var(--ok-ink); }
.pill-status.status-lost { color: #97a2b0; }

.enq-body {
  display: flex; flex-direction: column; gap: 12px;
  padding: 14px 16px 16px;
  border-top: 1px dashed var(--line);
}
.enq-reason { font-size: 15px; }
.enq-summary { white-space: pre-line; }
.enq-facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; }
.enq-facts dt { font-size: 13px; color: var(--muted); }
.enq-facts dd { margin: 0; font-weight: 550; overflow-wrap: anywhere; }
.enq-draft { background: var(--bg); border-radius: var(--r-control); padding: 14px 16px; }
.enq-draft-label { font-size: 13.5px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.enq-draft-text { white-space: pre-line; }

/* =========================================================
   Details + account forms: grouped sections
   ========================================================= */
.details-form { border-top: 1px solid var(--line); }
.group {
  display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
.group-intro h2 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.group-intro p { color: var(--muted); font-size: 14.5px; }
.group-fields {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px;
  align-content: start;
}
.group-fields .field { grid-column: 1 / -1; }
.group-fields .field.is-half { grid-column: auto; }
.group-fields .field .btn { align-self: flex-start; }

.savebar {
  position: sticky; bottom: 0; z-index: 2;
  display: flex; align-items: center; justify-content: flex-end; gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  background: rgba(237, 241, 245, .96);
  backdrop-filter: blur(6px);
}
.savebar-note { color: var(--muted); font-size: 14px; }

/* =========================================================
   Login / sign-up: split screen
   ========================================================= */
body.auth { background: var(--surface); }
.auth-split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 100vh;
}
.auth-panel {
  display: flex; flex-direction: column;
  padding: 36px 48px;
  color: var(--navy-ink);
  background-color: var(--navy);
  /* faint plan-drawing grid */
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 32px 32px;
}
.auth-pitch { margin: auto 0; max-width: 520px; }
.auth-big {
  color: #fff;
  font-weight: 800; font-stretch: 72%;
  font-size: clamp(40px, 4.8vw, 64px); line-height: .95; letter-spacing: -.01em;
}
.auth-big::after {           /* a strip of hi-vis tape */
  content: ""; display: block; width: 72px; height: 6px; margin-top: 24px;
  background: var(--hivis); border-radius: 2px;
}
.auth-small { margin-top: 20px; font-size: 16px; max-width: 36ch; }
.auth-foot { font-size: 13.5px; color: #8796ab; }

.auth-main { display: flex; align-items: center; justify-content: center; padding: 48px 24px; background: var(--surface); }
.auth-box { width: 100%; max-width: 400px; }
.auth-box h1 { font-weight: 800; font-stretch: 78%; font-size: 40px; line-height: 1; }
.auth-lead { margin: 10px 0 28px; color: var(--muted); }
.auth-form { display: flex; flex-direction: column; gap: 18px; }
.auth-form .btn { margin-top: 6px; }
.auth-switch { margin-top: 24px; font-size: 15px; color: var(--muted); }
.auth-switch + .auth-switch { margin-top: 10px; }
.auth-new {
  margin-top: 32px; padding: 20px;
  background: var(--bg); border-radius: var(--r-panel);
  display: flex; flex-direction: column; gap: 6px;
}
.auth-new p { color: var(--muted); font-size: 15px; }
.auth-new .auth-new-title { color: var(--ink); font-weight: 700; font-size: 16px; }
.auth-new .btn { align-self: flex-start; margin-top: 10px; }
.btn-quiet { background: #fff; color: var(--blue); box-shadow: inset 0 0 0 2px var(--blue); }
.btn-quiet:hover { background: var(--blue-soft); color: var(--blue-dark); }
.auth-switch a { font-weight: 600; }

/* =========================================================
   Small shared bits
   ========================================================= */
.btn-small { min-height: 38px; padding: 0 14px; font-size: 14.5px; }
.btn-danger { background: var(--err-ink); }
.btn-danger:hover { background: #6f200e; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.linkbtn {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--blue); font: 600 14.5px var(--font); text-decoration: underline; text-underline-offset: 3px;
}
.linkbtn:hover { color: var(--blue-dark); }
.label-like { font-size: 14.5px; font-weight: 600; }
.opt { font-weight: 400; color: var(--muted); }
code {
  font: 500 13.5px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow-wrap: anywhere;
}

.pill-on { background: var(--ok-bg); color: var(--ok-ink); }
.pill-off { background: var(--bg); color: var(--muted); }
.pill-kind.kind-quote { background: var(--blue-soft); color: var(--blue-dark); }
.pill-kind.kind-job { background: var(--navy); color: #fff; }
.pill-status.status-visit_booked { background: var(--blue-soft); color: var(--blue-dark); }
.pill-status.status-accepted { background: #fff3c4; color: #6b5300; }

.check { display: flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; }
.check input { width: 20px; height: 20px; min-height: 0; margin: 0; flex: none; accent-color: var(--blue); }
.check-block { align-items: flex-start; }
.check-block input { margin-top: 2px; }
.check-block small { display: block; font-weight: 400; color: var(--muted); font-size: 13.5px; margin-top: 2px; }

/* =========================================================
   Calendar page
   ========================================================= */
.coming { grid-column: 1 / -1; }
.cal-top {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px;
  align-items: start; margin-bottom: 28px;
}
.cal-intro { margin-bottom: 28px; display: flex; flex-direction: column; gap: 4px; }
.cal-intro p:last-child { color: var(--muted); max-width: 70ch; }

.linkrow {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 14px 0; border-top: 1px dashed var(--line);
}
.linkrow:first-of-type { border-top: 0; padding-top: 0; }
.linkrow-flat { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-control); background: var(--bg); }
.linkrow-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.linkrow-text span { color: var(--muted); font-size: 14px; }
.linkrow-text code { margin-top: 4px; color: var(--ink); }
.linkrow-actions { display: flex; gap: 6px; flex: none; }

.bk-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.bk {
  display: flex; flex-direction: column; gap: 2px;
  padding: 12px 0; border-top: 1px dashed var(--line);
}
.bk:first-child { border-top: 0; padding-top: 0; }
.bk-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.bk-when { font-weight: 650; font-size: 14.5px; }
.bk-name { font-size: 16px; font-weight: 650; }
.bk-line, .bk-notes { font-size: 14.5px; color: var(--muted); overflow-wrap: anywhere; }
.bk-notes { white-space: pre-line; }
.bk-cancel { margin-top: 6px; }
.bk-cancel summary { cursor: pointer; color: var(--muted); font-size: 14px; font-weight: 600; width: fit-content; }
.bk-cancel form { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 8px; padding: 12px; border-radius: var(--r-control); background: var(--err-bg); }
.bk-cancel form p { font-size: 14px; color: var(--err-ink); }
.bk-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.bk-row .bk { padding: 14px; border: 1px solid var(--line); border-radius: var(--r-control); }
.bk-row .bk:first-child { padding-top: 14px; border-top: 1px solid var(--line); }
.coming .empty .btn { margin-top: 12px; }

.days { display: flex; flex-direction: column; gap: 6px; }
.dayrow {
  display: grid; grid-template-columns: 150px minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px;
  padding: 6px 10px; border-radius: var(--r-control); background: var(--surface); border: 1px solid var(--line);
}
.dayrow select { min-height: 40px; padding: 6px 10px; }
.dayrow-to { color: var(--muted); font-size: 14px; }
.dayrow.is-off select, .dayrow.is-off .dayrow-to { opacity: .35; }
.dayrow.is-off .check span { color: var(--muted); }

.cal-extra { margin-top: 12px; }
.off-list { list-style: none; margin: 0; padding: 0; gap: 0; }
.off-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 0; border-top: 1px dashed var(--line);
}
.off-list li:first-child { border-top: 0; padding-top: 0; }
.off-note { color: var(--muted); font-weight: 400; }
.off-add { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; align-items: end; }
.off-add .off-note-field { grid-column: 1 / -1; }
.off-add .btn { justify-self: start; }
.field > .linkbtn, form.field .linkbtn { align-self: flex-start; }
.own-status { padding: 16px; border-radius: var(--r-control); gap: 4px; }
.own-status.is-ok { background: var(--ok-bg); }
.own-status.is-err { background: var(--err-bg); }
.own-status p { font-size: 14.5px; }
.own-status.is-err p { color: var(--err-ink); }
.own-title { font-weight: 700; font-size: 15.5px !important; color: var(--ink) !important; }
.own-host { font-weight: 400; color: var(--muted); }
.own-meta { color: var(--muted) !important; font-size: 13.5px !important; }
.own-status .btn-row { margin-top: 8px; }
.own-status .btn-quiet { background: transparent; }
.own-row { display: flex; gap: 8px; }
.own-row input { flex: 1; min-width: 0; }
.howto-box summary { cursor: pointer; font-weight: 600; font-size: 14.5px; color: var(--blue); width: fit-content; }
.howto-box[open] summary { margin-bottom: 10px; }
.howto-box .field-hint { margin-top: 10px; }
.howto-note { display: block; margin-top: 4px; color: var(--muted); font-size: 13.5px; }
.group-intro h2 .opt { font-size: 15px; }
.howto { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; }

/* Texts to your mobile (Account page) */
.texts-group { margin-top: 8px; }
.texts-private { margin-top: 10px; font-size: 14px; }
.texts-lead { color: var(--muted); font-size: 15px; margin-bottom: 10px; }
.texts-url { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-control); background: var(--bg); }
.texts-url code { flex: 1 1 260px; min-width: 0; }
.texts-actions { flex-direction: row; flex-wrap: wrap; gap: 20px; }
.texts-start { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.tx-steps > li { padding-left: 2px; }
.tx-step .btn { display: flex; width: fit-content; margin-top: 8px; }
.texts-status { transition: background-color .3s; }
.setup-extra {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px;
  padding: 14px 16px; border-radius: var(--r-control); background: var(--bg); color: var(--ink); text-decoration: none;
}
.setup-extra:hover { background: var(--blue-soft); }
.setup-extra strong { display: block; font-size: 15.5px; }
.setup-extra span:first-child { font-size: 14.5px; color: var(--muted); }
.setup-extra strong { color: var(--ink); }
.setup-extra-meta { flex: none; font-size: 13px; font-weight: 600; color: var(--blue); }
.texts-actions .linkbtn { color: var(--muted); font-size: 14px; }
#texts, #alerts { scroll-margin-top: 24px; }
.alerts-group { margin-top: 8px; }
.alerts-status:not(.is-ok) { background: var(--bg); }
.alerts-status.is-ok { color: var(--ok-ink); }
.alerts-actions { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 16px; }
.alerts-actions .linkbtn { color: var(--muted); font-size: 14px; }
.setup-extra + .setup-extra { margin-top: 10px; }
.texts-group .own-status { font-size: 15px; }
.texts-group .own-status:not(.is-ok):not(.is-err) { background: var(--bg); }
.texts-group .own-status.is-ok { color: var(--ok-ink); }
.texts-group .own-status.is-err { color: var(--err-ink); }

/* Invoices (Xero) */
.inv-connect { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 22px; max-width: 760px; }
.inv-connect-mark { width: 64px; height: 64px; border-radius: 16px; background: var(--blue-soft); display: grid; place-items: center; }
.inv-connect-mark svg { width: 32px; height: 32px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.inv-connect-body { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.inv-connect-body h2 { font-size: 22px; }
.inv-connect-body p { color: var(--muted); }
.inv-points { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.inv-alert { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.inv-alert p { margin: 0; }
.inv-alert .linkbtn { color: var(--err-ink); }
.inline-form { display: inline; }
.inv-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0 0 20px; }
.inv-stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 18px 20px; display: flex; flex-direction: column; gap: 2px; }
.inv-stat dt { font-size: 14px; color: var(--muted); font-weight: 600; }
.inv-stat dd { margin: 0; font-weight: 800; font-stretch: 75%; font-size: 36px; line-height: 1.1; }
.inv-stat span { font-size: 13.5px; color: var(--muted); }
.inv-stat.is-overdue { border-color: var(--err-ink); box-shadow: inset 4px 0 0 var(--err-ink); }
.inv-stat.is-overdue dd { color: var(--err-ink); }
.inv-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.inv-tabs a { padding: 7px 14px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14.5px; }
.inv-tabs a:hover { background: var(--bg); color: var(--ink); }
.inv-tabs a.is-on { background: var(--navy); color: #fff; }
.inv-list { list-style: none; margin: 0; padding: 0; }
.inv { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.inv:first-child { border-top: 0; }
.inv-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.inv-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.inv-who { font-size: 16px; }
.inv-meta { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.inv-side { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: none; text-align: right; }
.inv-amount { font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; }
.inv-part { font-size: 13px; color: var(--muted); }
.inv-open { font-size: 13.5px; font-weight: 600; }
.pill-paid { background: var(--ok-bg); color: var(--ok-ink); }
.inv-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 16px; font-size: 14px; color: var(--muted); }
.inv-foot .linkbtn { color: var(--muted); font-size: 14px; }
.inv-mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; }
.inv-mini div { display: flex; flex-direction: column; gap: 2px; }
.inv-mini dt { font-size: 13.5px; color: var(--muted); }
.inv-mini dd { margin: 0; font-weight: 800; font-stretch: 75%; font-size: 28px; line-height: 1.1; }
.inv-mini .is-overdue dd { color: var(--err-ink); }
.head-btn svg { width: 18px; height: 18px; }
form.head-btn .btn { gap: 8px; }
form.head-btn .btn svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Texts and DMs, on enquiry cards */
.pill-channel { background: var(--bg); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.pill-channel.ch-instagram { background: #fbe9f3; color: #8a1f5c; box-shadow: none; }
.pill-channel.ch-facebook { background: var(--blue-soft); color: var(--blue-dark); box-shadow: none; }
.pill-channel.ch-sms { background: var(--ok-bg); color: var(--ok-ink); box-shadow: none; }
.enq-msgs { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.enq-msg { align-self: flex-start; max-width: 90%; padding: 9px 13px; border-radius: 14px 14px 14px 4px; background: var(--bg); font-size: 15px; white-space: pre-line; overflow-wrap: anywhere; }
.enq-msg time { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.enq-dm-note { font-size: 14px; color: var(--muted); margin: 10px 0 8px; }

/* Next step on enquiry cards: 1 quote visit link → 2 quote accepted → 3 job link */
.enq-step {
  display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px;
  padding: 14px 16px; border-radius: var(--r-control); background: var(--blue-soft); border: 1px solid #cfe0f3;
}
.enq-step p { font-size: 14.5px; }
.enq-step-title { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 15px !important; }
.enq-step-num {
  display: grid; place-items: center; width: 22px; height: 22px; flex: none; border-radius: 50%;
  background: var(--navy); color: #fff; font-size: 12.5px; font-weight: 700;
}
.step-skip { margin-top: 4px; }
.step-skip summary { cursor: pointer; width: fit-content; font-size: 13.5px; font-weight: 600; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; list-style: none; }
.step-skip summary::-webkit-details-marker { display: none; }
.step-skip[open] summary { text-decoration: none; }
.step-skip[open] summary { margin-bottom: 8px; }
.enq-again { font-size: 13.5px; color: var(--muted); width: fit-content; }
.enq-step.enq-accept { background: #fffbea; border-color: #f3e3a2; }

/* Quote accepted, on enquiry cards */
.enq-accept {
  display: flex; flex-direction: column; gap: 8px;
  padding: 14px 16px; border-radius: var(--r-control);
  background: #fffbea; border: 1px solid #f3e3a2;
}
.enq-accept p { font-size: 14.5px; }
.enq-accept-title { font-weight: 700; font-size: 15px !important; }
.enq-undo { margin-top: 2px; }
.enq-alt { font-size: 13.5px !important; color: var(--muted); }
.enq-undo .linkbtn { font-size: 13.5px; color: var(--muted); }
.enq-acceptform { display: flex; flex-direction: column; gap: 6px; }
.enq-acceptform label { font-size: 13.5px; color: var(--muted); }
.enq-acceptform-row { display: flex; gap: 8px; flex-wrap: wrap; }
.enq-acceptform select { width: auto; min-height: 38px; padding: 6px 10px; font-size: 15px; }

/* =========================================================
   Public booking pages (customers)
   ========================================================= */
body.book-page { background: var(--bg); }
.book-wrap { width: 100%; max-width: 680px; margin: 0 auto; padding: 0 20px; }
.book-band {
  background-color: var(--navy); color: var(--navy-ink); padding: 26px 0 30px;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 32px 32px;
}
.book-biz { color: #fff; font-weight: 800; font-stretch: 78%; font-size: clamp(28px, 6vw, 40px); line-height: 1; letter-spacing: -.01em; }
.book-biz::after { content: ""; display: block; width: 56px; height: 5px; margin-top: 14px; background: var(--hivis); border-radius: 2px; }
.book-trade { margin-top: 12px; font-size: 15px; }
.book-main { padding-top: 32px; padding-bottom: 32px; }
.book-title { font-weight: 800; font-stretch: 78%; font-size: 34px; line-height: 1.05; }
.book-lead { margin: 10px 0 24px; color: var(--muted); font-size: 16.5px; }
.book-lead strong { color: var(--ink); }
.book-small { margin-top: 18px; color: var(--muted); font-size: 15px; }
.book-foot { display: flex; align-items: center; gap: 7px; padding-bottom: 32px; color: var(--muted); font-size: 13px; }
.book-foot .logo-mark { width: 18px; height: 18px; flex: none; }
.book-none { display: flex; flex-direction: column; gap: 4px; }
.book-none p:last-child { color: var(--muted); }

.book-form { display: flex; flex-direction: column; gap: 22px; }
.book-narrow { max-width: 420px; }
.book-step { margin: 0; padding: 22px; border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--surface); min-width: 0; }
.book-step legend { float: left; width: 100%; display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding: 0; font-weight: 700; font-size: 18px; }
.book-step legend + * { clear: both; }
.step-num {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--navy); color: #fff; font-size: 14px; font-weight: 700;
}
.book-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.book-fields .field { grid-column: 1 / -1; }
.book-fields .field.is-half { grid-column: auto; }

.slot-days { display: flex; flex-direction: column; gap: 8px; }
.slot-day { border: 1px solid var(--line); border-radius: var(--r-control); background: var(--surface); }
.slot-day summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  min-height: 50px; padding: 0 14px; font-weight: 650;
}
.slot-day summary::-webkit-details-marker { display: none; }
.slot-day summary::after {
  content: ""; width: 9px; height: 9px; margin-left: 4px; flex: none;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-3px);
}
.slot-day[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.slot-day[open] summary { border-bottom: 1px dashed var(--line); }
.slot-count { margin-left: auto; color: var(--muted); font-weight: 500; font-size: 14px; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; padding: 12px; }
.slot-grid.is-wide { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.slot-grid.is-days { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); padding: 0; }
.slot { position: relative; display: block; cursor: pointer; }
.slot input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.slot span {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 46px; padding: 8px 10px; text-align: center;
  border: 1px solid var(--field-line); border-radius: var(--r-control); background: #fff;
  font-weight: 600; font-size: 15px;
}
.slot span small { font-weight: 400; font-size: 13px; color: var(--muted); }
.slot:hover span { border-color: var(--blue); }
.slot input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.slot input:checked + span small { color: #d7e6f8; }
.slot input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.done-mark {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px;
  border-radius: 50%; background: var(--ok-bg);
}
.done-mark::before {
  content: ""; width: 18px; height: 10px; margin-top: -4px;
  border-left: 3px solid var(--ok-ink); border-bottom: 3px solid var(--ok-ink); transform: rotate(-45deg);
}
.done-card { margin: 20px 0 18px; display: flex; flex-direction: column; gap: 4px; border-left: 4px solid var(--hivis); }
.done-kind { color: var(--muted); font-size: 14.5px; }
.done-when { font-weight: 700; font-size: 19px; }
.done-addr { color: var(--ink); }

/* =========================================================
   Emergency call-out
   ========================================================= */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.co-btn { gap: 6px; }
.co-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.co-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin: -12px 0 24px; padding: 14px 18px; border-radius: var(--r-control);
  background: var(--err-bg); color: var(--err-ink); text-decoration: none; font-size: 15px;
  border-left: 4px solid var(--err-ink);
}
.co-banner:hover { background: #f8d8d0; }
.co-banner-link { flex: none; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.co-form { display: flex; flex-direction: column; gap: 16px; max-width: 720px; }
.co-list { display: flex; flex-direction: column; gap: 8px; }
.co-item {
  display: flex; align-items: flex-start; gap: 14px; cursor: pointer;
  padding: 14px; border: 1px solid var(--line); border-radius: var(--r-control); background: #fff;
}
.co-item input { width: 22px; height: 22px; min-height: 0; margin: 2px 0 0; flex: none; accent-color: var(--err-ink); }
.co-item:has(input:checked) { border-color: var(--err-ink); background: #fff8f6; box-shadow: inset 0 0 0 1px var(--err-ink); }
.co-item:has(input:checked) .bk-when { text-decoration: line-through; text-decoration-color: var(--err-ink); }
.co-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.co-none { color: var(--muted); font-size: 15px; }
.co-send { display: flex; flex-direction: column; gap: 18px; }
.co-preview { padding: 14px 16px; border-radius: var(--r-control); background: var(--bg); }
.co-preview-label { font-size: 13.5px; font-weight: 650; color: var(--muted); margin-bottom: 6px; }
.co-preview-text { font-size: 15px; overflow-wrap: anywhere; }
.co-block small { display: block; margin-top: 2px; font-weight: 400; font-size: 13.5px; color: var(--muted); }
.co-block input { accent-color: var(--err-ink); }
.co-manual { font-size: 14.5px; color: var(--muted); }
.co-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.co-done-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.co-done { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.co-done:first-child { border-top: 0; padding-top: 0; }
.co-done-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.co-done-btns { flex: none; justify-content: flex-end; }
.co-old { text-decoration: line-through; color: var(--muted); }
.co-state { font-size: 14.5px; color: var(--muted); }
.co-state.is-ok { color: var(--ok-ink); font-weight: 650; }
.co-state.is-sent { color: var(--ok-ink); }
.co-state.is-err { color: var(--err-ink); font-weight: 600; }
.co-foot { margin-top: 18px; font-size: 15px; color: var(--muted); max-width: 720px; }

/* Customer re-book page */
.rebook-was { margin: 0 0 22px; display: flex; flex-direction: column; gap: 2px; border-left: 4px solid var(--line); }
.rebook-old { font-weight: 650; text-decoration: line-through; color: var(--muted); }
.done-actions { margin-bottom: 4px; }

/* =========================================================
   Smaller screens
   ========================================================= */
@media (max-width: 900px) {
  .dash { grid-template-columns: minmax(0, 1fr); }
  .cal-top { grid-template-columns: minmax(0, 1fr); }
  .group { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}

@media (max-width: 760px) {
  .linkrow { flex-direction: column; gap: 10px; }
  .own-row { flex-direction: column; }
  .page-head-split { flex-direction: column; gap: 16px; }
  .co-done { flex-direction: column; align-items: flex-start; gap: 10px; }
  .inv-stats { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .inv-stat dd { font-size: 30px; }
  .inv-connect { grid-template-columns: minmax(0, 1fr); }
  .inv { align-items: flex-start; }
  .inv-mini { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .co-done-btns { justify-content: flex-start; }
  .co-banner { margin-top: -8px; }
  #own, #days-off, #phone { scroll-margin-top: 120px; }
  .own-row .btn { align-self: flex-start; }
  .dayrow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 6px; }
  .dayrow .check { grid-column: 1 / -1; }
  .dayrow-to { display: none; }
  .off-add { grid-template-columns: minmax(0, 1fr); }
  .book-fields { grid-template-columns: minmax(0, 1fr); }
  .book-fields .field.is-half { grid-column: 1 / -1; }
  .book-step { padding: 18px 16px; }
  .book-title { font-size: 30px; }
  .app { grid-template-columns: minmax(0, 1fr); background: var(--bg); }

  .rail {
    position: sticky; top: 0; z-index: 5; height: auto;
    display: grid; grid-template-columns: 1fr auto; align-items: center;
    padding: 14px 16px 0; row-gap: 10px;
  }
  .rail-brand { padding: 0; margin: 0; font-size: 23px; gap: 8px; }
  .rail-brand .logo-mark { width: 28px; height: 28px; }
  .rail-foot { grid-column: 2; grid-row: 1; margin: 0; padding: 0; border: 0; }
  .rail-user { display: none; }
  .rail-nav {
    grid-column: 1 / -1; flex-direction: row; gap: 2px;
    overflow-x: auto; margin: 0 -16px; padding: 0 12px;
  }
  .rail-nav a { min-height: 44px; border-radius: 0; flex: none; padding: 0 12px; font-size: 15px; }
  .rail-nav a:hover, .rail-nav a.is-active { background: none; }
  .rail-nav a.is-active::before { left: 12px; right: 12px; top: auto; bottom: 0; width: auto; height: 4px; border-radius: 4px 4px 0 0; }
  .rail-nav svg { display: none; }

  .workspace { padding: 28px 16px 48px; }
  .panel { padding: 20px 18px; }
  .group-fields { grid-template-columns: minmax(0, 1fr); }
  .group-fields .field.is-half { grid-column: 1 / -1; }
  .savebar { justify-content: space-between; }
  .docket-row { grid-template-columns: 100px minmax(0, 1fr); }
  .stat { padding: 12px; }
  .stat dd { font-size: 28px; }
  .enq summary { padding: 13px 14px; }
  .enq-body { padding: 13px 14px 14px; }

  .auth-split { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .auth-panel { padding: 22px 20px 26px; }
  .auth-pitch { margin: 22px 0 0; }
  .auth-big { font-size: 34px; }
  .auth-big::after { margin-top: 16px; width: 56px; height: 5px; }
  .auth-small, .auth-foot { display: none; }
  .auth-main { align-items: flex-start; padding: 32px 20px 48px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}

/* ---------- Privacy and terms ---------- */
.legal-page { background: var(--surface); font-size: 16.5px; line-height: 1.6; }
.legal-wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 24px; }
.legal-band { background: var(--navy); color: var(--navy-ink); }
.legal-band :focus-visible { outline-color: var(--hivis); }
.legal-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.legal-nav { display: flex; gap: 18px; }
.legal-nav a { color: var(--navy-ink); font-weight: 600; font-size: 15px; text-decoration: none; }
.legal-nav a:hover, .legal-nav a[aria-current="page"] { color: #fff; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--hivis); }
.legal-main { padding-top: 48px; padding-bottom: 32px; }
.legal-main h1 { font-weight: 800; font-stretch: 78%; font-size: 44px; line-height: 1.05; letter-spacing: -.01em; }
.legal-updated { margin-top: 8px; color: var(--muted); font-size: 14.5px; }
.legal-lead { margin-top: 24px; font-size: 18px; }
.legal-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 8px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.legal-toc a { font-size: 14.5px; font-weight: 600; text-decoration: none; padding: 4px 10px; border-radius: 999px; background: var(--blue-soft); }
.legal-toc a:hover { text-decoration: underline; }
.legal-main section { margin-top: 36px; scroll-margin-top: 16px; }
.legal-main h2 { font-size: 21px; font-weight: 750; line-height: 1.25; margin-bottom: 10px; }
.legal-main h3 { font-size: 16.5px; font-weight: 700; margin: 18px 0 6px; }
.legal-main p + p, .legal-main ul + p, .legal-main p + ul { margin-top: 12px; }
.legal-main ul { margin: 8px 0 0; padding-left: 22px; }
.legal-main li + li { margin-top: 6px; }
.legal-contact { padding: 20px 22px; background: var(--bg); border-radius: var(--r-panel); }
.legal-contact h2 { margin-bottom: 6px; }
.legal-foot { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-top: 24px; padding-bottom: 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.legal-foot span { margin-right: auto; }
@media (max-width: 600px) {
  .legal-wrap { padding: 0 16px; }
  .legal-main { padding-top: 32px; }
  .legal-main h1 { font-size: 34px; }
  .legal-lead { font-size: 17px; }
  .legal-top .auth-brand { font-size: 23px; }
}

/* Forgot password, policy links on sign-up and the portal footer */
.auth-note { margin: -12px 0 8px; color: var(--muted); font-size: 15px; }
.auth-forgot { margin-top: 2px; font-size: 14.5px; }
.auth-legal { margin-top: 18px; font-size: 13.5px; color: var(--muted); }
.auth-foot a { color: #8796ab; }
.auth-foot a + a { margin-left: 14px; }
.app-legal { display: flex; gap: 16px; margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.app-legal a { color: var(--muted); }
.book-foot a { color: var(--muted); margin-left: auto; }

/* Delete account */
.danger-group .group-intro h2 { color: var(--err-ink); }
.danger-group details > summary { cursor: pointer; font-weight: 650; color: var(--err-ink); }
.danger-group details[open] > summary { margin-bottom: 14px; }
.danger-group ul { margin: 0 0 14px; padding-left: 20px; color: var(--muted); font-size: 14.5px; }
.delete-form { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.delete-form .btn { align-self: flex-start; }
