/* HOR Portal. Mobile first, large text, high contrast for phones in sunlight. */
/* Brand colors come from the logo: navy #2c2280, red #c82b44 */
:root {
  --ocean: #2c2280;
  --ocean-dark: #1f1860;
  --accent: #c82b44;
  --sand: #f7f3ea;
  --ink: #111820;
  --muted: #4a5561;
  --line: #c9ced3;
  --ok: #1b6e3a;
  --error: #a4161a;
  --radius: 12px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
  background: #fff;
}
.site-header { background: #fff; padding: 12px 16px; text-align: center; border-bottom: 4px solid var(--accent); }
.brand { display: inline-block; }
.brand img { display: block; width: 120px; height: auto; }
/* Signed in pages: smaller logo so the task is on screen right away */
.site-header.compact { padding: 6px 16px; }
.site-header.compact .brand img { width: 64px; }
.env-banner { background: #ffd23f; color: #000; text-align: center; font-weight: 700; padding: 6px; font-size: 0.9rem; }
.site-nav { display: flex; justify-content: center; gap: 4px; background: var(--sand); border-bottom: 1px solid var(--line); padding: 0 8px; }
.site-nav a { flex: 1; max-width: 180px; text-align: center; padding: 14px 6px; min-height: 48px; font-weight: 600; text-decoration: none; color: var(--ink); border-bottom: 4px solid transparent; }
.site-nav a.active { color: var(--ocean); border-bottom-color: var(--ocean); }

.container { max-width: 560px; margin: 0 auto; padding: 24px 16px 48px; }
h1 { font-size: 1.75rem; line-height: 1.2; margin: 0 0 12px; }
h2 { font-size: 1.35rem; margin: 24px 0 8px; }
.lead { font-size: 1.15rem; color: var(--muted); }
a { color: var(--ocean); }

.button, button {
  display: block;
  width: 100%;
  min-height: 56px;
  padding: 14px 20px;
  border: 0;
  border-radius: var(--radius);
  background: var(--ocean);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  margin: 16px 0;
}
.button:hover, button:hover { background: var(--ocean-dark); }
.button.secondary, button.secondary { background: #fff; color: var(--ocean); border: 2px solid var(--ocean); }

label { display: block; font-weight: 600; margin: 16px 0 6px; }
input, select, textarea {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  font-size: 1.1rem; /* 16px+ stops iOS zoom on focus */
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 3px solid #7cc4dd; border-color: var(--ocean); }

button:disabled { opacity: 0.55; cursor: default; }
button.link { background: none; color: var(--ocean); text-decoration: underline; font-weight: 600; min-height: 48px; }
label.check { display: flex; align-items: center; gap: 12px; font-weight: 500; min-height: 48px; }
label.check input { width: 28px; min-height: 28px; height: 28px; margin: 0; flex: none; }
.code-input { font-size: 1.8rem; letter-spacing: 0.4em; text-align: center; font-variant-numeric: tabular-nums; }
.optional { font-weight: 400; color: var(--muted); }
.small { font-size: 0.95rem; color: var(--muted); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat { margin: 0; font-weight: 600; }
a.stat { display: block; color: inherit; text-decoration: none; }
a.stat:hover, a.stat:focus-visible { outline: 2px solid var(--ocean); outline-offset: 2px; }
.stat-n { display: block; font-size: 2rem; color: var(--ocean); }

fieldset { border: 0; padding: 0; margin: 20px 0 0; }
legend { font-weight: 600; margin-bottom: 6px; padding: 0; }
label.choice { display: flex; align-items: flex-start; gap: 12px; border: 2px solid var(--line); border-radius: var(--radius); padding: 14px; margin: 8px 0; font-weight: 400; min-height: 56px; cursor: pointer; }
label.choice input { width: 26px; min-height: 26px; height: 26px; margin: 2px 0 0; flex: none; }
label.choice span { display: flex; flex-direction: column; }
label.choice:has(input:checked) { border-color: var(--ocean); background: #eeecfa; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
label.choice.inline { margin: 6px 0; align-items: center; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; }
.two-col > div { display: flex; flex-direction: column; justify-content: flex-end; }
select { appearance: auto; }
input[type=file] { padding: 10px; font-size: 1rem; }

.boat-card h2 { margin: 0 0 4px; }
.engine-list { list-style: none; padding: 0; margin: 12px 0; }
.engine-list li + li { margin-top: 8px; }
.engine-link { display: flex; justify-content: space-between; align-items: center; min-height: 56px; padding: 12px 14px; border-radius: var(--radius); background: var(--sand); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.1rem; }
.chev { font-size: 1.6rem; color: var(--ocean); }
.row-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.small-btn { width: auto; min-height: 48px; padding: 10px 16px; font-size: 1rem; margin: 4px 0; }
.text-link { font-weight: 600; padding: 12px 0; display: inline-block; }

.facts { margin: 16px 0; }
.facts div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; text-align: right; }
.serial { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: 0.05em; }
.inline-details summary { color: var(--ocean); font-weight: 400; font-size: 0.95rem; cursor: pointer; }
.history { list-style: none; padding: 0; }
.history li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.photo { max-width: 100%; border-radius: var(--radius); }
.readonly { font-weight: 600; margin: 0; }

.guide { background: var(--sand); border-radius: var(--radius); padding: 4px 14px; margin: 8px 0; }
.guide summary { color: var(--ocean); font-weight: 600; min-height: 44px; display: flex; align-items: center; cursor: pointer; }
.guide img { display: block; width: 100%; height: auto; max-width: 360px; margin: 8px auto; }

.card { border: 2px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 12px 0; background: #fff; }
.notice { padding: 14px 16px; border-radius: var(--radius); background: var(--sand); margin: 16px 0; }
.error { color: var(--error); font-weight: 600; }

.badge { display: block; margin-top: 4px; font-size: 0.9rem; font-weight: 600; color: #7a4b00; }
.engine-link > span:first-child { display: flex; flex-direction: column; }

textarea { display: block; width: 100%; padding: 12px 14px; font-size: 1.1rem; border: 2px solid var(--line); border-radius: var(--radius); font-family: inherit; }
.prewrap { white-space: pre-wrap; }
.photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.photo-grid .photo { width: 100%; aspect-ratio: 1; object-fit: cover; }
.status-pill { flex: none; font-size: 0.85rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #e7e4f7; color: var(--ocean); margin-left: 8px; }
.status-pill.new { background: var(--accent); color: #fff; }
.admin-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-bottom: 12px; font-weight: 600; }
.admin-nav > a, .admin-nav .nav-form button { white-space: nowrap; }
.admin-nav .nav-form { margin-left: auto; }
.tabs { display: flex; gap: 8px; margin: 8px 0 12px; }
.tabs a { padding: 10px 14px; border-radius: 999px; border: 2px solid var(--line); text-decoration: none; font-weight: 600; min-height: 44px; }
.tabs a.active { border-color: var(--ocean); background: #eeecfa; }
.inline-form select { margin-bottom: 4px; }
.item-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.item-status { display: flex; gap: 8px; align-items: center; }
.item-status select { min-height: 44px; font-size: 1rem; padding: 6px 8px; width: auto; }
.code { background: var(--sand); padding: 10px; border-radius: 8px; white-space: pre-wrap; word-break: break-all; font-size: 0.9rem; }
.timer { text-align: center; }
button.stop { background: var(--accent); }
.item-row.done { opacity: 0.6; }
.nav-form { display: inline; margin-left: auto; }
.nav-form button { min-height: 0; margin: 0; padding: 0; width: auto; }
[hidden] { display: none !important; }
.offline-banner p { margin: 4px 0; }
.saved-note { color: var(--ocean); font-weight: 600; }
.flat-rate { font-size: 1.05rem; margin: 8px 0 0; }
.flat-rate .over { color: var(--accent); }
.report-section { border-top: 1px solid #ddd; padding-top: 8px; margin-top: 8px; }
form.inline { display: inline; }
.viewer-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.viewer-title { font-size: 1.2rem; margin: 0; overflow-wrap: anywhere; }
.viewer { margin-top: 12px; }
.viewer-page { display: block; width: 100%; height: auto; margin: 0 0 12px; box-shadow: 0 1px 4px rgba(0,0,0,.2); background: #fff; }
.viewer, .viewer-bar { position: relative; width: min(1000px, calc(100vw - 32px)); left: 50%; transform: translateX(-50%); }

/* Service sheet on a job: three big buttons per line */
.sheet-picker select { margin-bottom: 8px; }
.confirm { border-left: 4px solid var(--accent); padding: 8px 12px; background: var(--sand); }
details.sheet > summary { color: var(--ocean); font-weight: 600; min-height: 44px; display: flex; align-items: center; cursor: pointer; }
table.specs { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table.specs th, table.specs td { border: 1px solid var(--line); padding: 6px; text-align: left; vertical-align: top; }
fieldset.sheet-item { margin: 0; padding: 12px 0; border-top: 1px solid var(--line); }
fieldset.sheet-item legend { font-weight: 400; float: left; width: 100%; margin-bottom: 8px; }
.marks { clear: both; display: flex; gap: 6px; }
label.mark { position: relative; flex: 1 1 0; display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 4px 6px; border: 2px solid var(--line); border-radius: var(--radius); font-weight: 600; font-size: 0.95rem; text-align: center; cursor: pointer; }
label.mark input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; margin: 0; }
label.mark:focus-within { outline: 3px solid var(--ocean); outline-offset: 2px; }
label.mark-done:has(input:checked) { border-color: var(--ok); background: #e3f3e8; color: var(--ok); }
label.mark-skip:has(input:checked) { border-color: var(--muted); background: #eef0f2; color: var(--muted); }
label.mark-attn:has(input:checked) { border-color: var(--error); background: #fbe9e9; color: var(--error); }
fieldset.reading input + input { margin-top: 6px; }
.comp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.comp-grid label { font-weight: 600; }
details.item-change summary { color: var(--ocean); font-size: 0.95rem; cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.view-banner { background: var(--accent); color: #fff; padding: 8px 16px; text-align: center; font-size: 0.95rem; }
.view-banner form { display: inline; }
.view-banner button.link { color: #fff; text-decoration: underline; font-weight: 600; min-height: 0; padding: 0 4px; }
form.inline-form { display: inline-block; margin: 0 0 0 8px; }
.attn-extra { display: none; margin-top: 8px; }
fieldset.sheet-item:has(.mark-attn input:checked) .attn-extra { display: block; }
.attn-extra input[type=file] { display: block; margin-top: 4px; }
.photo-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
label.photo-choice { display: flex; flex-direction: column; gap: 4px; border: 2px solid var(--line); border-radius: var(--radius); padding: 6px; font-weight: 400; cursor: pointer; }
label.photo-choice:has(input:checked) { border-color: var(--ocean); background: #eeecfa; }
label.photo-choice img { width: 100%; height: 110px; object-fit: cover; border-radius: 6px; }
label.photo-choice input { width: 22px; min-height: 22px; height: 22px; margin: 0; }
img.boat-cover { display: block; width: 100%; max-height: 220px; object-fit: cover; border-radius: var(--radius); margin: 0 0 10px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 8px 0 16px; }
figure.gallery-item { margin: 0; }
figure.gallery-item img { width: 100%; height: 130px; object-fit: cover; border-radius: 8px; display: block; }
figure.gallery-item.is-cover img { outline: 3px solid var(--ocean); }
figure.gallery-item figcaption { font-size: 0.9rem; margin-top: 4px; }
figure.gallery-item form { display: inline; }
form.photo-upload { margin-top: 12px; }
.hours-block:has(input[type=checkbox]:checked) .hours-input { display: none; }
.news h2 { margin-top: 0; }
.badge.new-badge { background: var(--accent); color: #fff; margin-right: 4px; }
.news .new-badge { align-self: flex-start; display: inline-block; width: auto; padding: 1px 8px; border-radius: 999px; font-size: 0.8rem; margin-bottom: 2px; }

/* Diagnose */
ol.diag-steps { list-style: none; padding-left: 0; }
.diag-chart > summary .small, .diag-chart > summary .tag { margin-left: 6px; }
ol.diag-steps > li { margin-bottom: 8px; }
.diag-spec { margin: 4px 0; }
.diag-if-bad { display: none; margin: 6px 0 0; padding: 8px; border-left: 3px solid var(--error); background: #fbe9e9; }
fieldset.diag-step:has(.mark-attn input:checked) .diag-if-bad { display: block; }
.diag-step input[name^=v_] { margin-top: 6px; }
.diag-codes details.diag-code { border-bottom: 1px solid #e3e6ea; padding: 6px 0; }
.diag-codes details.diag-code > summary { cursor: pointer; }
.diag-codes details.diag-code[hidden] { display: none; }
.tag { display: inline-block; font-size: 0.8em; padding: 0 6px; border-radius: 8px; background: #e6f2ea; color: #1d6b3a; }
form.wizard li[data-step][hidden] { display: none; }
ol.diag-done { list-style: none; padding-left: 0; margin: 0 0 8px; }
ol.diag-done li { padding: 6px 8px; margin-bottom: 4px; border-left: 4px solid var(--muted); background: #f5f6f8; }
ol.diag-done li.diag-done-ok { border-left-color: #1d6b3a; }
ol.diag-done li.diag-done-bad { border-left-color: var(--error); }
.diag-progress { font-weight: 600; margin-bottom: 4px; }
.diag-next { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.diag-next[hidden] { display: none; }
.diag-next button { width: auto; }
label.mark.suggest { box-shadow: 0 0 0 3px #f2c94c; }
.diag-hint:empty { display: none; }
ol.diag-done li { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
ol.diag-done li button.link { width: auto; margin: 0; padding: 4px 8px; flex: none; }
.diag-if-ok { display: none; margin: 6px 0 0; padding: 8px; border-left: 3px solid #1d6b3a; background: #e6f2ea; }
fieldset.diag-step:has(.mark-done input:checked) .diag-if-ok { display: block; }
/* Diagnose on a phone: short symptom names, reading box only where there is a spec or a finding */
details.sheet.diag-chart > summary { display: block; padding: 10px 0; border-bottom: 1px solid #e3e6ea; }
.diag-chart > summary .diag-name { display: block; font-weight: 600; }
.diag-chart > summary .diag-sub { display: block; font-size: 0.85em; color: var(--muted); margin: 2px 0 0; }
.diag-chart > summary .diag-sub .tag { margin-left: 0; }
h3.diag-group { margin: 16px 0 4px; font-size: 1em; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
form.wizard li[data-step] .diag-reading { display: none; }
form.wizard li[data-step].has-reading .diag-reading,
form.wizard li[data-step]:has(.mark-attn input:checked) .diag-reading { display: block; }
form.wizard:not(.finished) .diag-notes { display: none; }
.diag-next { flex-direction: column; }
.diag-next button { width: 100%; }
.diag-alias > summary { color: var(--error); font-weight: 600; }
/* Passed checks folded into one line */
ol.diag-done li.diag-passed { display: block; }
ol.diag-done li.diag-passed > details > summary { cursor: pointer; font-weight: 600; color: #1d6b3a; min-height: 32px; }
ol.diag-done li.diag-passed > details > summary .small { font-weight: 400; color: var(--ocean); }
ol.diag-done li.diag-passed ol { list-style: none; padding-left: 0; margin: 6px 0 0; }
ol.diag-done li.diag-passed ol li { background: #fff; margin-bottom: 2px; }
a.diag-also { display: block; padding: 10px 0; border-bottom: 1px solid #e3e6ea; text-decoration: none; }
a.diag-also .diag-name { display: block; font-weight: 600; }
a.diag-also .diag-sub { display: block; font-size: 0.85em; color: var(--muted); margin-top: 2px; }
/* Request: "where is it now" only when the boat has moved */
fieldset:has(input[name=location_ok]:checked) .moved-note { display: none; }
/* Service record: what we recommend, first, with the yes button */
.card.recommend { border-color: var(--ocean); }
.card.recommend h2 { margin-top: 0; }
.card.recommend ul { padding-left: 1.2em; }
.card.recommend .button { margin-top: 8px; }
/* Office schedule: the week, one card per day */
.sched-nav { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.sched-week { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 900px) { .sched-week { grid-template-columns: repeat(7, minmax(0, 1fr)); } main:has(.sched-week) { max-width: 1400px; } }
.sched-day { border: 1px solid #e3e6ea; border-radius: 10px; padding: 8px; background: #fff; }
.sched-day.today { border-color: var(--ocean); box-shadow: 0 0 0 2px rgba(41, 37, 110, 0.15); }
.sched-day h2 { font-size: 1rem; margin: 0 0 6px; }
.sched-day ul { list-style: none; padding: 0; margin: 0; }
.sched-job { display: flex; flex-direction: column; gap: 2px; padding: 6px; margin-bottom: 6px; border-radius: 8px; background: #f5f6f8; }
.sched-job.clash { background: #fbe9e9; border-left: 4px solid var(--error); }
.sched-job > a { text-decoration: none; display: flex; flex-direction: column; }

/* Service kits: one part per block */
.kit-row { border-top: 1px solid var(--line, #d9dee3); padding-top: 8px; margin-top: 12px; }

/* Office pages on a desktop screen: wider page, smaller logo, lists in two columns, forms kept
   to a readable width, buttons their natural size. Phones and the customer side are unchanged. */
@media (min-width: 1000px) {
  body:has(.admin-nav) .site-header { padding: 6px 16px; }
  body:has(.admin-nav) .site-header .brand img { width: 64px; }
  main:has(.admin-nav) { max-width: 1160px; }
  main:has(.admin-nav) .admin-nav { padding: 10px 14px; background: var(--sand); border: 1px solid var(--line); border-radius: var(--radius); gap: 4px 22px; }
  main:has(.admin-nav) :is(form, .facts, details, fieldset, .notice) { max-width: 700px; }
  main:has(.admin-nav) > p, main:has(.admin-nav) > h1 + p { max-width: 820px; }
  main:has(.admin-nav) form.item-row, main:has(.admin-nav) li form, main:has(.admin-nav) .nav-form { max-width: none; }
  main:has(.admin-nav) .engine-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
  main:has(.admin-nav) .engine-list li + li { margin-top: 0; }
  main:has(.admin-nav) :is(.button, button):not(.link):not(.small-btn) { display: inline-block; width: auto; min-width: 240px; margin-right: 8px; }
  main:has(.admin-nav) .nav-form button { min-width: 0; margin: 0; }
  main:has(.admin-nav) .photo-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
  main:has(.admin-nav) .card { max-width: 820px; }
}

/* What boats.net's diagrams say about a part on an order */
.fit-listed strong { color: var(--ok); }
.fit-newer strong, .fit-unknown strong { color: #8a5a00; }
.fit-unlisted strong { color: var(--error); }

/* An order in two tabs. The job shows first; the parts tab shows when the address points at it
   or at anything inside it (#parts, #lookup, #zoho), which is where parts actions come back to. */
.order-tabs .tab-panel { scroll-margin-top: 12px; }
.order-tabs #parts { display: none; }
.order-tabs:has(#parts:target) #parts, .order-tabs:has(#parts :target) #parts { display: block; }
.order-tabs:has(#parts:target) #job, .order-tabs:has(#parts :target) #job { display: none; }
.order-tabs .tabs a.tab-job { border-color: var(--ocean); background: #eeecfa; }
.order-tabs:has(#parts:target) .tabs a.tab-job, .order-tabs:has(#parts :target) .tabs a.tab-job { border-color: var(--line); background: transparent; }
.order-tabs:has(#parts:target) .tabs a.tab-parts, .order-tabs:has(#parts :target) .tabs a.tab-parts { border-color: var(--ocean); background: #eeecfa; }

.item-row { scroll-margin-top: 90px; }
.saved-note { margin-left: 8px; }

/* Things only the office computer can do (HOR Desktop, boats.net) are not shown on a phone */
.phone-only { display: none; }
@media (max-width: 700px) {
  .desktop-only { display: none !important; }
  .phone-only { display: inline; }
  /* Menus and links in the facts are big enough for a thumb */
  .admin-nav { gap: 6px 6px; }
  .admin-nav > a, .admin-nav .nav-form button { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 10px; border-radius: 8px; background: var(--sand); text-decoration: none; }
  .facts dd a, main > p > a:only-child { display: inline-block; padding: 10px 0; min-height: 44px; }
}

.section-done { margin: 0 0 10px; }

/* Month calendar */
main:has(.cal) { max-width: 1400px; }
.cal { border: 1px solid #e3e6ea; border-radius: 10px; overflow: hidden; background: #fff; }
.cal-head, .cal-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-head span { padding: 6px 4px; font-weight: 700; font-size: 0.85rem; text-align: center; background: #f5f6f8; border-bottom: 1px solid #e3e6ea; }
.cal-day { min-height: 92px; padding: 4px; border-right: 1px solid #eef0f2; border-bottom: 1px solid #eef0f2; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-day:nth-child(7n) { border-right: 0; }
.cal-day.out { background: #fafafb; color: var(--muted); }
.cal-day.today { box-shadow: inset 0 0 0 2px var(--ocean); }
.cal-date { display: block; font-weight: 700; text-decoration: none; font-size: 0.9rem; padding: 6px 4px; }
.cal-count { font-weight: 400; color: var(--muted); display: none; }
.cal-job { display: block; padding: 3px 6px; border-radius: 6px; background: #eeecfa; color: inherit; text-decoration: none; font-size: 0.8rem; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-job.clash { background: #fbe9e9; border-left: 4px solid var(--error); }
.cal-job.no-tech { outline: 2px dotted var(--muted); outline-offset: -2px; }
/* On a phone the days are too narrow for names: show the time, and how many */
@media (max-width: 700px) {
  .cal-day { min-height: 64px; padding: 2px; }
  .cal-job { font-size: 0.7rem; padding: 2px 3px; }
  .cal-job strong { display: block; }
  .cal-job { white-space: normal; max-height: 2.6em; }
}
.book-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0; }
.book-row input { width: auto; min-width: 0; margin: 0; }

/* On the service sheet: what the chosen service says about a line */
.due { display: inline-block; font-size: 0.8rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; white-space: nowrap; }
.due-yes { background: #e3f3e8; color: var(--ok); }
.due-check { background: #fff3cd; color: #7a5200; }
.due-no { background: #eef0f2; color: var(--muted); }

/* A part to choose: look at it, then use it */
.pick-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pick-row form { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pick-row .qty { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 400; }
.pick-row .qty input { width: 3.5em; margin: 0; text-align: center; }
.pick-row .button { display: inline-block; text-decoration: none; }
