﻿/* Jarvis - calm, simple, phone-first. Colors are grouped by meaning (see "Category colors" below). */
:root {
  --bg: #f5f5f2; --card: #ffffff; --ink: #1d1f21; --muted: #6b7075; --line: #e6e5e0;
  --accent: #b3261e; --accent-ink: #ffffff; --ok: #2e7d32; --warn: #a15c00; --soft: #f0efeb;
  --shadow: 0 1px 2px rgba(20, 20, 20, .04), 0 2px 8px rgba(20, 20, 20, .04);
  /* Job stages: cool colors early in the job, warm in the shop, green when done. */
  --st-lead: #64748b;        --st-lead-bg: #eef1f5;
  --st-quote: #2563eb;       --st-quote-bg: #e8f0fe;
  --st-approved: #4f46e5;    --st-approved-bg: #ecebfd;
  --st-proof: #7c3aed;       --st-proof-bg: #f2ebfe;
  --st-deposit: #0d9488;     --st-deposit-bg: #e3f5f3;
  --st-production: #d97706;  --st-production-bg: #fdf3e2;
  --st-install: #ea580c;     --st-install-bg: #fdeee5;
  --st-installed: #65a30d;   --st-installed-bg: #eff7e4;
  --st-paid: #15803d;        --st-paid-bg: #e6f4ea;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
header.top { background: var(--card); border-bottom: 1px solid var(--line); padding: 10px 16px;
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
header.top .brand { font-weight: 700; color: var(--ink); margin-right: auto; }
header.top nav { display: flex; gap: 12px; flex-wrap: wrap; font-size: 15px; }
main { max-width: 980px; margin: 0 auto; padding: 18px 16px 60px; }
main.narrow { max-width: 640px; }
h1 { font-size: 24px; margin: 6px 0 16px; }
h2 { font-size: 18px; margin: 26px 0 10px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 12px 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; color: var(--ink); }
.stat b { display: block; font-size: 28px; }
.stat span { color: var(--muted); font-size: 14px; }
.stages { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.stages a { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
  color: var(--ink); display: flex; justify-content: space-between; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.grow { flex: 1; }
table { width: 100%; border-collapse: collapse; }
td, th { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 13px; color: var(--muted); font-weight: 600; }
input, select, textarea { font: inherit; padding: 9px 10px; border: 1px solid #cfcfc9; border-radius: 8px;
  background: #fff; width: 100%; }
input[type=checkbox], input[type=radio] { width: auto; }
label { display: block; margin: 10px 0 4px; font-size: 14px; color: var(--muted); }
label.inline { display: inline-flex; gap: 6px; align-items: center; margin-right: 12px; color: var(--ink); }
button, .btn { font: inherit; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 8px;
  padding: 10px 16px; cursor: pointer; display: inline-block; }
button.secondary, .btn.secondary { background: var(--soft); color: var(--ink); border: 1px solid var(--line); }
button.small { padding: 6px 10px; font-size: 14px; }
form.inline { display: inline; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.flash { padding: 10px 14px; border-radius: 8px; margin: 10px 0; background: #e8f5e9; }
.flash.error { background: #fdecea; }
.banner { background: #fff4e5; color: var(--warn); padding: 8px 16px; font-size: 14px; text-align: center; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 99px; background: var(--soft); font-size: 13px; }
.pill.held { background: #fff4e5; } .pill.sent { background: #e8f5e9; } .pill.blocked_opt_out { background: #fdecea; }
.option { border: 2px solid var(--line); border-radius: 12px; padding: 16px; margin: 12px 0; background: #fff; }
.option .price { font-size: 26px; font-weight: 700; }
.steps { list-style: none; padding: 0; }
.steps li { padding: 8px 0 8px 30px; position: relative; color: var(--muted); }
.steps li::before { content: ""; position: absolute; left: 6px; top: 14px; width: 12px; height: 12px;
  border-radius: 50%; border: 2px solid var(--line); background: #fff; }
.steps li.done { color: var(--ink); } .steps li.done::before { background: var(--ok); border-color: var(--ok); }
.steps li.now { color: var(--ink); font-weight: 700; } .steps li.now::before { background: var(--accent); border-color: var(--accent); }
.proof-img { max-width: 100%; border: 1px solid var(--line); border-radius: 8px; }
canvas.sig { width: 100%; height: 160px; border: 1px dashed #aaa; border-radius: 8px; background: #fff; touch-action: none; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.thumbs img { width: 110px; height: 110px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.replyby { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; }
.replyby select { width: auto; padding: 2px 6px; font-size: 12px; }
.thumbs .pdfcard { position: relative; width: 110px; height: 140px; border: 1px solid var(--line); border-radius: 8px;
  overflow: hidden; background: #fff; text-decoration: none; color: inherit; display: block; }
.pdfcard object { width: 100%; height: 100px; border: 0; pointer-events: none; display: block; background: #f4f4f4; }
.pdfcard .pdfbadge { position: absolute; top: 6px; left: 6px; background: #c62828; color: #fff; font-size: 10px;
  font-weight: 700; padding: 1px 5px; border-radius: 4px; }
.pdfcard .pdfname { position: absolute; left: 0; right: 0; bottom: 0; height: 40px; padding: 3px 6px; font-size: 11px;
  line-height: 1.2; overflow: hidden; background: var(--soft, #f7f7f7); border-top: 1px solid var(--line);
  overflow-wrap: anywhere; }
.thumbs .filechip { width: 110px; height: 110px; box-sizing: border-box; padding: 8px; display: flex; align-items: center;
  justify-content: center; text-align: center; font-size: 12px; word-break: break-word; border-radius: 8px;
  border: 1px solid var(--line); text-decoration: none; }
details summary { cursor: pointer; color: var(--accent); }
textarea.code { font-family: ui-monospace, Consolas, monospace; font-size: 13px; min-height: 160px; }
.method-fields { display: none; } .method-fields.on { display: block; }
/* ------------------------------------------------------------------ polish */
.card, .stat, .stages a, .option { box-shadow: var(--shadow); border-color: #ecebe6; }
header.top { position: sticky; top: 0; z-index: 5; box-shadow: var(--shadow); }
header.top .brand { font-size: 18px; letter-spacing: .3px; display: flex; align-items: center; gap: 8px; }
header.top .brand::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
header.top nav a { color: var(--ink); padding: 4px 8px; border-radius: 6px; }
header.top nav a:hover { background: var(--soft); text-decoration: none; }
header.top nav a.cta { background: var(--accent); color: #fff; font-weight: 600; }
h2 { color: #3a3d40; letter-spacing: .2px; }
.pill { font-weight: 500; white-space: nowrap; }

/* ------------------------------------------------------------------ category colors */
/* Job stages (.st + .st-<stage>) - pills, dashboard tiles and list rows share these. */
.st { --c: var(--st-lead); --b: var(--st-lead-bg); }
.st-quote-sent { --c: var(--st-quote); --b: var(--st-quote-bg); }
.st-approved { --c: var(--st-approved); --b: var(--st-approved-bg); }
.st-proof-signed { --c: var(--st-proof); --b: var(--st-proof-bg); }
.st-deposit-paid { --c: var(--st-deposit); --b: var(--st-deposit-bg); }
.st-in-production { --c: var(--st-production); --b: var(--st-production-bg); }
.st-install-scheduled { --c: var(--st-install); --b: var(--st-install-bg); }
.st-installed-ready-for-pickup { --c: var(--st-installed); --b: var(--st-installed-bg); }
.st-paid-in-full { --c: var(--st-paid); --b: var(--st-paid-bg); }
.pill.st { background: var(--b); color: var(--c); }
.pill.st::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--c); margin-right: 6px; vertical-align: 1px; }
.stages a.st { border-left: 5px solid var(--c); }
.stages a.st b { color: var(--c); background: var(--b); min-width: 28px; text-align: center; border-radius: 99px; padding: 0 8px; }
.stages a.st.empty { opacity: .55; }
tr.st td:first-child { box-shadow: inset 4px 0 0 var(--c); padding-left: 10px; }

/* Dashboard number tiles: each number has its own color. */
.stat { border-top: 4px solid var(--line); }
.stat.approvals { border-top-color: #d97706; } .stat.approvals b { color: #b45309; }
.stat.owed { border-top-color: #15803d; } .stat.owed b { color: #15803d; }
.stat.look { border-top-color: #2563eb; } .stat.look b { color: #1d4ed8; }
.stat.drafts { border-top-color: #7c3aed; } .stat.drafts b { color: #6d28d9; }
.stat.zero b { color: var(--muted); }

/* Email categories. */
.pill.cat-new_job { background: #e6f4ea; color: #15803d; }
.pill.cat-existing_job { background: #e8f0fe; color: #1d4ed8; }
.pill.cat-unsure { background: #fdf3e2; color: #b45309; }
.pill.cat-ignore { background: #f1f1ef; color: #6b7075; }
.card.cat-unsure { border-left: 4px solid #d97706; }
.card.cat-draft { border-left: 4px solid #7c3aed; }

/* Text statuses. */
.pill.sent, .pill.received { background: #e6f4ea; color: #15803d; }
.pill.held { background: #fdf3e2; color: #b45309; }
.pill.mocked { background: #f1f1ef; color: #6b7075; }
.pill.failed, .pill.blocked_opt_out, .pill.no_phone { background: #fdecea; color: #b42318; }

/* Payments. */
.pill.paid { background: #e6f4ea; color: #15803d; }
.pill.pending { background: #fdf3e2; color: #b45309; }
.pill.cancelled { background: #f1f1ef; color: #6b7075; text-decoration: line-through; }

/* Quote statuses. */
.pill.q-draft { background: #f1f1ef; color: #6b7075; }
.pill.q-awaiting_owner { background: #fdf3e2; color: #b45309; }
.pill.q-sent { background: #e8f0fe; color: #1d4ed8; }
.pill.q-accepted { background: #e6f4ea; color: #15803d; }
.pill.q-declined, .pill.q-rejected_by_owner, .pill.q-no_response { background: #fdecea; color: #b42318; }

/* Customer tracker: colored progress dots. */
.steps li.done::before { background: var(--st-paid); border-color: var(--st-paid); }

@media (max-width: 640px) {
  .grid2 { grid-template-columns: 1fr; }
  h1 { font-size: 21px; }
  td, th { padding: 7px 4px; font-size: 15px; }
  .hide-sm { display: none; }
  header.top { position: static; }
}

/* customer quote page: example picture per package */
.option .pic { width: 100%; max-height: 220px; object-fit: cover; border-radius: 10px; margin: 8px 0; display: block; }
.option .pic-note { font-size: 12px; color: var(--muted); margin: -4px 0 6px; }

/* Home: active-jobs board, one colored column per stage */
.board-head { margin-top: 8px; align-items: baseline; gap: 14px; }
.board-head h1 { margin: 0; }
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(165px, 1fr); gap: 10px;
  overflow-x: auto; padding-bottom: 10px; align-items: start; }
.board .col { background: var(--b); border-radius: 12px; padding: 8px; border-top: 5px solid var(--c); min-height: 120px; }
.board .col-head { display: flex; justify-content: space-between; align-items: center; color: var(--c);
  font-weight: 700; font-size: 14px; padding: 2px 4px 8px; }
.board .col-head b { background: var(--c); color: #fff; border-radius: 99px; padding: 0 9px; font-size: 13px; }
.board .jobcard { display: block; background: var(--card); border-radius: 9px; padding: 9px 10px; margin-bottom: 7px;
  color: var(--ink); box-shadow: var(--shadow); border-left: 4px solid var(--c); }
.board .jobcard:hover { transform: translateY(-1px); }
.board .jobcard { cursor: grab; } .board .jobcard.dragging { opacity: .45; }
.board .col.drop { outline: 2px dashed var(--c); outline-offset: -2px; }
.board .jobcard b { display: block; font-size: 14px; }
.board .jobcard span { display: block; font-size: 13px; color: var(--muted); }
.board .jobcard small { display: inline-block; margin-top: 4px; font-size: 12px; color: var(--c); font-weight: 600; }
.board .col-empty { color: var(--muted); font-size: 13px; text-align: center; margin: 14px 0; opacity: .7; }
.alert-card { border-left: 5px solid #d97706; }
.todo-card { border-left: 5px solid #2563eb; }
.alert-card .row, .todo-card .row { margin-top: 8px; gap: 8px; }
@media (max-width: 700px) {
  .board { grid-auto-flow: row; grid-auto-columns: auto; overflow-x: visible; }
  .board .col { min-height: 0; }
  .board .col-empty { display: none; }
}

/* Home: not-active jobs (waiting on the customer) */
.inactive-head { margin-top: 30px; }
.inactive-list { opacity: .85; }
.inactive-list td { vertical-align: top; }

/* Board layout toggle: Columns (default) / Rows (stages stacked, for vertical or split screens) */
.viewtoggle { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.viewtoggle button { background: var(--card); color: var(--muted); border: 0; border-radius: 0; padding: 5px 10px;
  font-size: 13px; cursor: pointer; }
.viewtoggle button.on { background: var(--accent); color: #fff; }
.board.rows { grid-auto-flow: row; grid-auto-columns: auto; overflow-x: visible; }
.board.rows .col { min-height: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 7px; align-items: stretch; }
.board.rows .col-head { grid-column: 1 / -1; padding-bottom: 2px; }
.board.rows .jobcard { margin-bottom: 0; }
.board.rows .col-empty { grid-column: 1 / -1; margin: 2px 0 4px; text-align: left; padding-left: 4px; }

/* ---------------- Job page: header + next step, stage bar, steps, side panel ---------------- */
.jhead { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; border-left: 6px solid var(--c); }
.jhead-main { flex: 1; min-width: 240px; }
.jhead h1 { margin: 2px 0 6px; font-size: 24px; }
.jcust { font-weight: 600; color: var(--ink); }
.jstatus { display: inline-block; background: var(--b); color: var(--c); font-weight: 600; font-size: 13px;
  padding: 3px 12px; border-radius: 99px; }
.jhead-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.jhead-actions .btn, .jhead-actions button { white-space: nowrap; }
.moremenu { position: relative; }
.moremenu > summary { list-style: none; padding: 8px 14px; }
.moremenu > summary::-webkit-details-marker { display: none; }
.moremenu-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; background: var(--card);
  border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.12); padding: 6px; min-width: 260px; }
.linkbtn { display: block; width: 100%; text-align: left; background: none; color: var(--ink); border: 0;
  border-radius: 6px; padding: 8px 10px; font-size: 14px; cursor: pointer; }
.linkbtn:hover { background: var(--soft); }
.linkbtn.danger { color: #9b1c1c; }

.stagebar { display: flex; gap: 4px; margin: 14px 0 18px; }
.stagebar .seg { flex: 1; min-width: 0; }
.stagebar .seg::before { content: ""; display: block; height: 7px; border-radius: 4px; background: var(--line); }
.stagebar .seg.done::before { background: var(--c); }
.stagebar .seg.now::before { box-shadow: 0 0 0 2px var(--b), 0 0 0 3px var(--c); }
.stagebar .seg span { display: block; font-size: 11px; color: var(--muted); margin-top: 5px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.stagebar .seg.now span { color: var(--c); font-weight: 700; }

.jgrid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 16px; align-items: start; }
@media (max-width: 860px) { .jgrid { grid-template-columns: minmax(0, 1fr); } .stagebar .seg span { display: none; } }

.steps2 { padding: 6px 18px; }
.step2 { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.step2 .dot { flex: none; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-weight: 700; font-size: 13px; background: var(--soft); color: var(--muted); }
.step2 .body { flex: 1; min-width: 0; }
.step2.done .dot { background: var(--st-paid-bg); color: var(--st-paid); }
.step2.done .body { color: var(--muted); }
.step2.done .body b { color: var(--ink); font-weight: 600; }
.step2.now { background: #fffaf1; margin: 0 -18px; padding: 14px 18px; border-left: 4px solid #d97706; }
.step2.now .dot { background: #fdf3e2; color: #b45309; }
.step2.later { opacity: .55; }
.step2 .qline { gap: 8px; margin-top: 6px; align-items: center; }
.revreq { margin-top: 8px; background: #fdeee5; color: #9a3412; border-radius: 8px; padding: 8px 10px; font-size: 14px; }
.proofimg { display: block; max-width: 100%; max-height: 260px; margin-top: 10px; border-radius: 10px; border: 1px solid var(--line); }
.inlineform { margin-top: 10px; }
.inlineform > summary { font-size: 14px; font-weight: 600; }
.inlineform form { margin-top: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; align-items: end; }
.paytable { margin-top: 8px; width: auto; }
.paytable td { padding: 3px 12px 3px 0; }
.activity { padding: 14px 0 6px; }
.activity table td { vertical-align: top; padding: 4px 10px 4px 0; }
.nowrap { white-space: nowrap; } .pre { white-space: pre-wrap; }

.jside { display: flex; flex-direction: column; gap: 16px; }
.jside .card { margin: 0; }
.sidehead { font-weight: 700; margin-bottom: 6px; display: flex; justify-content: space-between; align-items: center; }
.saved { font-size: 12px; font-weight: 600; color: var(--ok); opacity: 0; transition: opacity .2s; }
.saved.show { opacity: 1; }
.jside label { font-size: 12px; color: var(--muted); margin-top: 8px; }
.jside .auto { border-color: transparent; background: var(--soft); }
.jside .auto:hover { border-color: var(--line); }
.jside .auto:focus { background: #fff; border-color: var(--accent); }
.notes p { margin: 0 0 6px; font-size: 14px; }
.notes { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.45; margin-bottom: 8px;
  max-height: none; overflow: visible; }
.addphoto { width: 64px; height: 64px; border: 2px dashed var(--line); border-radius: 8px; display: inline-flex;
  align-items: center; justify-content: center; font-size: 26px; color: var(--muted); cursor: pointer; margin: 0; vertical-align: top; }
.addphoto:hover { border-color: var(--accent); color: var(--accent); }

/* Talk to Jarvis (home): big button + voice conversation panel */
.talkbtn { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; text-align: left;
  font-size: 18px; font-weight: 700; padding: 14px 18px; border-radius: 14px; margin-bottom: 14px; }
.talkbtn span { font-size: 13px; font-weight: 400; opacity: .9; }
.talk { position: fixed; inset: 0; background: rgba(20, 20, 20, .45); z-index: 50; display: flex;
  align-items: flex-end; justify-content: center; padding: 16px; }
.talk[hidden] { display: none; }
.talk-box { background: var(--card); width: min(640px, 100%); max-height: 85vh; display: flex; flex-direction: column;
  border-radius: 16px; padding: 14px 16px; box-shadow: 0 12px 40px rgba(0,0,0,.25); }
.talk-log { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; margin: 10px 0; min-height: 160px; }
.tb { max-width: 85%; padding: 9px 13px; border-radius: 14px; line-height: 1.4; white-space: pre-wrap; }
.tb.user { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.tb.assistant { align-self: flex-start; background: var(--soft); border-bottom-left-radius: 4px; }
.tb.thinking { color: var(--muted); font-style: italic; }
.talk-live { min-height: 22px; color: var(--muted); font-style: italic; margin-bottom: 8px; }
@media (min-width: 700px) { .talk { align-items: center; } }

/* Jarvis mic on every page: nav button + floating button */
header.top nav .navmic { background: none; color: var(--accent); border: 1px solid var(--accent); border-radius: 8px;
  padding: 5px 10px; font-weight: 600; font-size: 14px; cursor: pointer; }
header.top nav .navmic:hover { background: var(--accent); color: #fff; }
.talkfab { position: fixed; right: 18px; bottom: 18px; z-index: 40; border-radius: 99px; padding: 12px 18px;
  font-weight: 700; font-size: 15px; box-shadow: 0 6px 20px rgba(0,0,0,.22); }
@media print { .talkfab { display: none; } }

body:has(.talkfab) main { padding-bottom: 80px; }

.attachbtn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin: 0;
  border: 1px solid var(--line); border-radius: 8px; font-size: 18px; cursor: pointer; background: var(--card); flex: none; }
.attachbtn:hover { border-color: var(--accent); }

/* Meeting mode */
.talkrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; margin-bottom: 14px; }
.talkrow .talkbtn { margin-bottom: 0; }
.talkbtn.secondary { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.meet { background: #fff5f5; border: 1px solid #f3c9c9; border-radius: 12px; padding: 10px 12px; margin-top: 10px; }
.meet .row { gap: 8px; align-items: center; }
.recdot { width: 10px; height: 10px; border-radius: 50%; background: #d32f2f; animation: recblink 1.2s infinite; flex: none; }
@keyframes recblink { 50% { opacity: .25; } }
.meet-text { max-height: 120px; overflow-y: auto; font-size: 14px; color: var(--muted); margin-top: 8px; font-style: italic; }

/* Dropbox proof pop-up */
.pmtoast { position: fixed; left: 18px; bottom: 18px; z-index: 45; display: flex; gap: 12px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--st-proof); border-radius: 12px;
  padding: 12px; width: min(440px, calc(100vw - 36px)); box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.pmtoast[hidden] { display: none; }
.pmtoast img { width: 96px; height: 72px; object-fit: contain; background: var(--soft); border-radius: 8px; flex: none; }
.pm-body { flex: 1; min-width: 0; }
.pm-body .row { gap: 6px; flex-wrap: wrap; }
@media (max-width: 600px) { .pmtoast { bottom: 80px; } }

.tb .talkaction { display: inline-block; margin-top: 8px; color: #fff; text-decoration: none; }

/* ---------------- Quote builder (same look as the job page) ---------------- */
.qb-head { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; border-left: 6px solid var(--st-quote); }
.qb-head h1 { margin: 4px 0; font-size: 24px; }
.qb-total { text-align: right; }
.qb-amount { font-size: 28px; font-weight: 800; color: var(--ink); line-height: 1.1; }
.qb-send { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
button.big { font-size: 16px; padding: 11px 20px; }
.qb-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 16px; align-items: start; margin-top: 16px; }
@media (max-width: 900px) { .qb-grid { grid-template-columns: minmax(0, 1fr); } .qb-send { align-items: flex-start; } .qb-total { text-align: left; } }
.qb-pkg { margin-top: 0; margin-bottom: 14px; }
.qb-pkg-head { display: flex; align-items: baseline; gap: 10px; }
.qb-pkg-head b { font-size: 17px; }
.qb-pkg-total { font-size: 20px; font-weight: 800; }
.qb-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.qb-item:first-of-type { margin-top: 8px; border-top: 1px solid var(--line); }
.qb-desc input { width: 100%; border-color: transparent; background: var(--soft); font-weight: 600; }
.qb-desc input:hover { border-color: var(--line); } .qb-desc input:focus { background: #fff; border-color: var(--accent); }
.qb-math { font-size: 12px; color: var(--muted); margin-top: 4px; }
.qb-price { font-weight: 700; white-space: nowrap; padding-top: 8px; min-width: 80px; text-align: right; }
.linkx { background: none; color: var(--muted); border: 0; padding: 8px 4px; cursor: pointer; font-size: 14px; }
.linkx:hover { color: #9b1c1c; }
.qb-empty { color: var(--muted); padding: 18px 0; text-align: center; border: 1px dashed var(--line); border-radius: 10px; margin-top: 10px; }
.qb-pkg-foot { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-top: 12px; padding-top: 10px; }
.qb-pkg-foot label { display: flex; flex-direction: column; font-size: 12px; color: var(--muted); margin: 0; gap: 3px; }
.qb-pkg-foot input, .qb-pkg-foot select { min-width: 130px; }
.qb-side { min-width: 0; }
.qb-add { margin-top: 0; }
.qb-install { margin-top: 16px; }
.qb-add label { font-size: 12px; color: var(--muted); margin-top: 8px; }
.qb-step { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--st-quote); margin: 14px 0 4px; }
.qb-size { display: flex; gap: 6px; align-items: center; }
.qb-size input { flex: 1; min-width: 0; } .qb-size select { width: 70px; flex: none; } .qb-size span { color: var(--muted); }
.qb-line input { max-width: 90px; } .qb-line select:not(.grow) { max-width: 130px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chip { display: inline-flex !important; align-items: center; margin: 0 !important; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip span { border: 1px solid var(--line); border-radius: 99px; padding: 5px 11px; font-size: 13px; color: var(--ink); background: var(--card); }
.chip input:checked + span { background: var(--st-quote-bg); border-color: var(--st-quote); color: var(--st-quote); font-weight: 600; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); }

/* 🎙 panel: a docked card in the corner, the page behind stays usable (no dark cover) */
.talk { position: fixed; inset: auto 16px 16px auto; background: none; padding: 0; z-index: 50; display: block;
  pointer-events: none; }
.talk .talk-box { pointer-events: auto; width: min(420px, calc(100vw - 32px)); max-height: 72vh; }
@media (min-width: 700px) { .talk { align-items: initial; } }
/* Pop-out window (/jarvis): the panel fills the whole small window, no top bar */
body.jarvis-window header.top, body.jarvis-window .banner { display: none; }
body.jarvis-window main { padding: 0; max-width: none; }
body.jarvis-window .talk { inset: 0; }
body.jarvis-window .talk .talk-box { width: 100%; max-height: none; height: 100vh; border-radius: 0; box-shadow: none; }
.jw-start { text-align: center; padding: 40px 16px; }

[hidden] { display: none !important; }

/* Home: job search with suggestions; Archive year tabs */
.jobsearch { position: relative; display: flex; gap: 6px; align-items: center; min-width: 240px; max-width: 520px; }
.jobsearch input { flex: 1; }
.jobsearch .scope { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; flex: none; }
.jobsearch .scope button { background: var(--card); color: var(--muted); border: 0; border-radius: 0; padding: 6px 10px; font-size: 13px; }
.jobsearch .scope button.on { background: var(--accent); color: #fff; }
.search-results { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 30; padding: 4px; margin: 0;
  max-height: 60vh; overflow-y: auto; box-shadow: 0 10px 30px rgba(0,0,0,.15); }
#arch-results { position: static; margin: 8px 0; }
.sr { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; padding: 8px 10px; border-radius: 8px; color: var(--ink);
  border-left: 4px solid var(--c); margin-bottom: 4px; }
.sr:hover { background: var(--soft); }
.sr b { font-size: 14px; } .sr span { grid-column: 1; font-size: 13px; color: var(--muted); }
.sr em { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-style: normal; font-size: 12px; color: var(--c); font-weight: 600; }
.yeartabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0; }
.yeartabs a { border: 1px solid var(--line); border-radius: 99px; padding: 5px 14px; color: var(--ink); background: var(--card); }
.yeartabs a.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.yeartabs a span { opacity: .7; font-size: 12px; margin-left: 4px; }

/* Board cards: payment tag */
.board .jobcard .paytag { display: inline-block; margin-top: 5px; font-style: normal; font-size: 12px; font-weight: 700;
  padding: 1px 8px; border-radius: 99px; }
.paytag.due { background: #fde8e8; color: #9b1c1c; }
.paytag.paid { background: var(--st-paid-bg); color: var(--st-paid); }

.qb-live { background: var(--soft); border-radius: 9px; padding: 8px 10px; margin: 6px 0 4px; font-size: 14px; }
.qb-live.err { color: var(--bad, #b42318); }

/* ---- Customer pages: logo header, footer, print / share ---- */
header.pub-top { background: #fff; padding: 8px 16px; display: flex; align-items: center; gap: 12px; }
header.pub-top .pub-logo img { height: 68px; width: auto; display: block; }
header.pub-top .pub-contact { margin-left: auto; text-align: right; display: flex; flex-direction: column; font-weight: 600; }
header.pub-top .pub-contact small { font-weight: 400; color: var(--muted); }
.doc-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: flex-end; margin: 12px 0 4px; }
.pub-foot { display: flex; gap: 10px; align-items: center; margin: 28px 0 18px; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted); }
.pub-foot b { color: var(--ink); }
.doc-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.doc-head .doc-meta { text-align: right; font-size: 14px; color: var(--muted); }
.doc-head .doc-meta b { color: var(--ink); font-size: 18px; display: block; }
.inv-lines { width: 100%; border-collapse: collapse; margin: 6px 0; }
.inv-lines td { padding: 7px 0; border-bottom: 1px solid var(--line); }
.inv-lines td.r { text-align: right; white-space: nowrap; font-weight: 600; }
.print-only { display: none; }
@media (max-width: 520px) { header.pub-top .pub-logo img { height: 42px; } }
@media print {
  header.top { position: static; box-shadow: none; border: 0; }
  header.pub-top .pub-logo img { height: 70px; }
  .doc-actions, .flash, form, button, .btn, .no-print { display: none !important; }
  .print-only { display: block; }
  body { background: #fff; }
  main.narrow { max-width: none; }
  .option, .card { box-shadow: none; break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
}
.doc-title { margin-bottom: 2px; } .doc-sub { margin-top: 0; } .doc-h2 { margin-bottom: 6px; } .inv-lines td.big-r { font-size: 20px; }

/* Quote page: use the whole screen. Quote items | Add an item | Installation side by side; header spans all three. */
main.wide { max-width: 1680px; }
@media (min-width: 1200px) {
  .qb-grid:has(.qb-side) { grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr) minmax(300px, .9fr); }
  .qb-grid .qb-side { display: contents; }
  .qb-grid .qb-install { margin-top: 0; }
}
.qb-date { gap: 6px; align-items: center; } .qb-date input { max-width: 170px; padding: 3px 6px; }
.inv-date { max-width: 200px; }

.qb-col3 { min-width: 0; } .qb-col3 .qb-proof { margin-top: 16px; }
.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center;
  border: 2px dashed var(--line); border-radius: 12px; padding: 22px 12px; cursor: pointer; background: var(--soft);
  color: var(--ink); font-size: 14px; margin-top: 4px; }
.dropzone:hover, .dropzone.over { border-color: var(--accent); background: #fff; }
.dropzone img { max-width: 100%; max-height: 160px; border-radius: 8px; }
.qb-proof-now { gap: 10px; align-items: center; margin-bottom: 8px; }
.qb-proof-now img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.inv-art { max-height: 320px; object-fit: contain; background: var(--soft); }

/* Desktop / phone switch and the phone frame (owner) */
.viewswitch { display: inline-flex; border: 1px solid var(--line); border-radius: 99px; overflow: hidden; background: #fff; vertical-align: middle; }
.viewswitch a { padding: 4px 12px; font-size: 13px; color: var(--ink); text-decoration: none; }
.viewswitch a.on { background: var(--accent); color: #fff; }
.preview-bar { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.phone-head { align-items: center; gap: 12px; }
.phone-frame { width: 410px; max-width: 100%; height: 864px; margin: 10px auto; border: 10px solid #111; border-radius: 44px;
  overflow: hidden; background: #111; box-shadow: 0 18px 50px rgba(0,0,0,.25); }
.phone-frame iframe { width: 390px; max-width: 100%; height: 844px; border: 0; display: block; background: #fff; border-radius: 34px; }
.center { text-align: center; }

/* Customer pages on a phone: bigger tap targets, full-width main buttons */
@media (max-width: 560px) {
  header.pub-top .pub-contact small { display: none; }
  .doc-actions { justify-content: stretch; }
  .doc-actions button { flex: 1; padding: 9px 4px; }
  .option form button, .option .btn { width: 100%; padding: 14px; font-size: 17px; }
  .doc-head .doc-meta b { font-size: 16px; }
  main.narrow { padding-left: 14px; padding-right: 14px; }
}

/* Home: Recent activity column on the left */
.home-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px; align-items: start; }
.home-main { min-width: 0; }
.activity { position: sticky; top: 70px; margin-top: 0; max-height: calc(100vh - 90px); overflow-y: auto; padding: 12px; }
.act { display: block; padding: 9px 10px; margin: 0 0 8px; border-radius: 10px; border-left: 4px solid var(--line);
  background: var(--soft); color: var(--ink); text-decoration: none; font-size: 13px; }
.act:hover { text-decoration: none; filter: brightness(.98); }
.act-top { display: flex; justify-content: space-between; gap: 8px; }
.act-top time { color: var(--muted); font-size: 12px; white-space: nowrap; }
.act-what { margin-top: 2px; }
.act-move { display: flex; align-items: center; gap: 5px; margin-top: 6px; flex-wrap: wrap; }
.act-move .arrow { color: var(--muted); font-weight: 700; }
.chip-stage { background: var(--b); color: var(--c); border: 1px solid var(--c); border-radius: 99px; padding: 1px 8px;
  font-size: 11px; font-weight: 600; white-space: nowrap; }
.act-me { background: #fff6e0; border-left-color: #e8a317; }
.act-me .act-todo { margin-top: 6px; font-weight: 700; color: #9a6400; }
.act-paid { background: #e8f6ec; border-left-color: #1f9d55; }
.act-paid .act-what { color: #146c3a; font-weight: 600; }
.act-late { background: #fdecec; border-left-color: #c62828; }
.act-me-pill { background: #e8a317; color: #fff; margin-left: 6px; }
@media (max-width: 1000px) {
  .home-grid { grid-template-columns: minmax(0, 1fr); }
  .activity { position: static; max-height: 420px; order: 2; }
}
.act .act-todo { margin-top: 6px; font-weight: 700; color: #9a6400; }

/* Board card progress symbols (top right): Q estimate, P proof, $ money.
   open = just the letter (sent / half paid); solid = dark circle, letter cut out (approved / signed / paid in full) */
.board .jobcard { position: relative; }
.board .jobcard:has(.marks) b { padding-right: 62px; }
.marks { position: absolute; top: 7px; right: 7px; display: flex; gap: 3px; }
.mk { width: 19px; height: 19px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font: 800 12px/1 Arial, sans-serif; font-style: normal; }
.mk-open { color: var(--ink); border: 1.5px solid transparent; }
.mk-solid { background: var(--ink); color: var(--card); }

.outside-box { margin: 0 0 10px; }
.outside-form { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin-top: 8px; }
.outside-form label.inline { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; }
.outside-form label.inline input { max-width: 100px; }
.outside-form p { flex-basis: 100%; margin: 2px 0; }

/* Symbol colors match the stages: Q blue (quote), P purple (proof), $ green (deposit / paid) */
.marks { gap: 7px; }
.board .jobcard:has(.marks) b { padding-right: 76px; }
.mk-q { --mk: var(--st-quote); } .mk-p { --mk: var(--st-proof); } .mk-d { --mk: #16a34a; }
.mk.mk-open { color: var(--mk); border: 1.5px solid var(--mk); background: #fff; }
.mk.mk-solid { background: var(--mk); color: #fff; }

/* Recent activity on the right */
.home-grid { grid-template-columns: minmax(0, 1fr) 300px; }
.home-grid .activity { order: 2; }
.home-grid .home-main { order: 1; }
@media (max-width: 1000px) { .home-grid { grid-template-columns: minmax(0, 1fr); } }

/* Invoices / Estimates lists */
.dl-head { align-items: center; gap: 12px; flex-wrap: wrap; }
.dl-head h1 { margin: 0; }
.dl-sum { display: flex; flex-direction: column; padding: 6px 12px; border-radius: 10px; background: var(--soft); font-size: 12px; }
.dl-sum b { font-size: 17px; }
.dl-sum.dl-paid b { color: #146c3a; } .dl-sum.dl-late b { color: #b42318; } .dl-sum.dl-due b { color: #9a6400; }
.dl-card { margin-top: 12px; }
.dl-tools { gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.dl-tools input { min-width: 260px; }
.dl-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.dl-table th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 8px; border-bottom: 1px solid var(--line); }
.dl-table td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.dl-table tbody tr[data-href] { cursor: pointer; } .dl-table tbody tr[data-href]:hover { background: var(--soft); }
.dl-table .r { text-align: right; }
.dl-st { font-weight: 700; font-size: 13px; }
.dl-st.dl-paid { color: #146c3a; } .dl-st.dl-late { color: #b42318; } .dl-st.dl-due { color: #9a6400; }
.dl-st.dl-draft { color: var(--muted); } .dl-st.dl-me { color: #fff; background: #e8a317; padding: 1px 7px; border-radius: 99px; }
@media (max-width: 760px) { .dl-table th:nth-child(4), .dl-table td:nth-child(4) { display: none; } }

.outside-box .outside-sum { display: inline-block; background: var(--soft); border: 1px solid var(--line); border-radius: 8px;
  padding: 6px 12px; font-weight: 600; color: var(--ink); cursor: pointer; }
.outside-box[open] .outside-sum { background: #fff6e0; border-color: #e8a317; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--muted); margin: 6px 0 8px; }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend .mk { position: static; }

.qb-desc textarea.grow-box { width: 100%; resize: none; overflow: hidden; border: 1px solid transparent; background: var(--soft);
  font: inherit; font-weight: 600; line-height: 1.35; padding: 6px 8px; border-radius: 8px; min-height: 34px; }
.qb-desc textarea.grow-box:hover { border-color: var(--line); }
.qb-desc textarea.grow-box:focus { background: #fff; border-color: var(--accent); outline: none; }

.no-contact { background: #fdecec; border: 1px solid #f3b4b4; margin: 10px 0; }
.no-contact form { gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.no-contact input { max-width: 220px; }

/* Messages inbox */
.nav-msgs { position: relative; }
.badge { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 4px; border-radius: 99px; background: #d7262f;
  color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; vertical-align: middle; }
.inbox { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 14px; align-items: start; }
.inbox-list { max-height: 75vh; overflow-y: auto; padding: 6px; margin: 0; }
.conv { display: block; padding: 9px 10px; border-radius: 9px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.conv:hover { background: var(--soft); text-decoration: none; }
.conv.on { background: #fff6e0; } .conv.unread b { color: #d7262f; }
.conv-last { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-thread { margin: 0; }
.thread { display: flex; flex-direction: column; gap: 8px; max-height: 60vh; overflow-y: auto; padding: 6px 0; }
.bubble { max-width: 75%; padding: 8px 11px; border-radius: 14px; font-size: 14px; }
.bubble.in { align-self: flex-start; background: var(--soft); border: 1px solid var(--line); }
.bubble.out { align-self: flex-end; background: #e8f0fe; }
.bubble .meta { font-size: 11px; color: var(--muted); margin-top: 3px; }
.reply { gap: 8px; margin-top: 10px; align-items: flex-end; }
@media (max-width: 800px) { .inbox { grid-template-columns: minmax(0, 1fr); } }

/* Quote items: type the price right on the line; add a typed line under the list */
.qb-price-edit { display: flex; align-items: center; gap: 2px; padding-top: 4px; font-weight: 700; }
.qb-price-edit input { width: 92px; text-align: right; font-weight: 700; padding: 5px 6px; border: 1px solid transparent; background: var(--soft); }
.qb-price-edit input:hover { border-color: var(--line); } .qb-price-edit input:focus { background: #fff; border-color: var(--accent); }
.qb-addline { display: flex; align-items: center; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.qb-addline input[name=price] { width: 90px; text-align: right; }
.qb-addline .chip { margin: 0; }

.qb-accept-form { display: flex; flex-direction: column; gap: 6px; align-items: stretch; margin-top: 6px; background: #fff;
  border: 1px solid var(--line); border-radius: 10px; padding: 8px; }
.qb-accept-form label { font-size: 12px; color: var(--muted); }

.dl-table .cb { width: 28px; text-align: center; }
.bulk { gap: 8px; align-items: center; }
button.danger:not(:disabled) { color: #b42318; border-color: #f3b4b4; }

/* Recent activity: customer actions by default, Everything on request; big NEW banner */
.activity:not(.show-all) .act-other { display: none; }
.act-scope { margin: 4px 0 10px; }
.act-new { display: flex; align-items: center; gap: 8px; background: #d7262f; color: #fff; border-radius: 12px;
  padding: 10px 12px; margin: 6px 0 10px; font-size: 15px; box-shadow: 0 4px 14px rgba(215,38,47,.3); }
.act-new .bell { font-size: 24px; animation: ring 1.2s ease-in-out 3; }
.act-new b { flex: 1; }
.act-new button { background: #fff; color: #d7262f; border: 0; font-weight: 700; }
@keyframes ring { 0%,100% { transform: rotate(0); } 25% { transform: rotate(18deg); } 75% { transform: rotate(-18deg); } }
.act { position: relative; }
.act-isnew { box-shadow: 0 0 0 2px #d7262f inset; }
.newdot { position: absolute; top: -6px; right: 8px; background: #d7262f; color: #fff; font-size: 9px; font-weight: 800;
  padding: 1px 6px; border-radius: 99px; letter-spacing: .5px; }

/* Job page header: dark, high-contrast band so the customer and job stand out from everything below */
.jhead { background: #16181d; color: #fff; border-left: 8px solid var(--c); padding: 16px 18px; }
.jhead .jcust { color: #fff; font-size: 15px; font-weight: 700; letter-spacing: .2px; }
.jhead .muted { color: #b9bec8; }
.jhead h1 { color: #fff; font-size: 30px; line-height: 1.15; margin: 4px 0 8px; }
.jhead .jstatus { background: var(--c); color: #fff; border-color: var(--c); font-weight: 600; }
.jhead-actions .btn.secondary, .jhead-actions button.secondary { background: rgba(255,255,255,.1); color: #fff;
  border-color: rgba(255,255,255,.25); }
.jhead-actions .btn.secondary:hover, .jhead-actions button.secondary:hover { background: rgba(255,255,255,.2); }
.jhead .moremenu-list { color: var(--ink); }

/* Home: Monday-style Table view */
.jtable { display: flex; flex-direction: column; gap: 14px; margin-top: 6px; }
.jt-group { background: var(--card); border-radius: 12px; padding: 8px 10px 4px; border-left: 6px solid var(--c); }
.jt-head { display: flex; align-items: center; gap: 8px; margin: 2px 0 6px; color: var(--c); font-size: 15px; }
.jt-head b { background: var(--c); color: #fff; border-radius: 99px; padding: 0 9px; font-size: 12px; }
.jt { width: 100%; border-collapse: collapse; font-size: 13px; table-layout: fixed; }
.jt th { text-align: left; font-size: 11px; color: var(--muted); font-weight: 600; padding: 4px 6px; border-bottom: 1px solid var(--line); }
.jt td { padding: 4px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; overflow: hidden; }
.jt th:nth-child(1) { width: 24%; } .jt th:nth-child(2) { width: 18%; } .jt th:nth-child(3) { width: 11%; }
.jt th:nth-child(4) { width: 15%; } .jt th:nth-child(5) { width: 12%; } .jt th:nth-child(6) { width: 5%; }
.jt-proj a { display: flex; flex-direction: column; color: var(--ink); text-decoration: none; }
.jt-proj span { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jt-notes { color: var(--muted); white-space: nowrap; text-overflow: ellipsis; }
.jt-pick { padding: 2px 3px !important; }
.jt-sel { width: 100%; appearance: none; -webkit-appearance: none; border: 0; border-radius: 4px; background: var(--pc);
  color: #fff; font-weight: 700; font-size: 12px; text-align: center; text-align-last: center; padding: 7px 4px; cursor: pointer; }
.jt-sel option { background: #fff; color: #222; font-weight: 500; }
.jt-marks { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; border-bottom: 0 !important; }
.jt-marks .paytag { font-size: 10px; }
.jt-files, .jt-date { color: var(--muted); font-size: 12px; white-space: nowrap; }
@media (max-width: 900px) { .jt th:nth-child(2), .jt td:nth-child(2), .jt th:nth-child(6), .jt td:nth-child(6),
  .jt th:nth-child(7), .jt td:nth-child(7) { display: none; } }
.act-scope { display: flex; gap: 0; border: 1px solid var(--line); border-radius: 99px; overflow: hidden; width: max-content; }
.act-scope button { background: #fff; color: var(--ink); border: 0; border-radius: 0; padding: 4px 12px; font-size: 12px; font-weight: 600; }
.act-scope button.on { background: var(--accent); color: #fff; }

/* Table view: 6 columns (Files and Last updated removed) */
.jt th:nth-child(1) { width: 28%; } .jt th:nth-child(2) { width: 24%; } .jt th:nth-child(3) { width: 12%; }
.jt th:nth-child(4) { width: 17%; } .jt th:nth-child(5) { width: 12%; } .jt th:nth-child(6) { width: 7%; }
@media (max-width: 900px) { .jt th:nth-child(6), .jt td:nth-child(6) { display: table-cell; } }

/* Production board format (home ▦ Table) */
.jt-scroll { overflow-x: auto; }
.jt { table-layout: auto; min-width: 1100px; }
.jt th, .jt td { white-space: nowrap; }
.jt th:nth-child(n) { width: auto; }
.jt-proj { min-width: 190px; max-width: 260px; border-left: 6px solid transparent; }
.jt-proj.m-red { border-left-color: #e2445c; } .jt-proj.m-yellow { border-left-color: #ffcb00; } .jt-proj.m-green { border-left-color: #00c875; }
.jt-proj span { max-width: 230px; display: block; }
.jt .ck { width: 42px; text-align: center; font-size: 11px; }
.jt .tick { color: #00a35c; font-weight: 800; font-size: 15px; }
.jt-contact, .jt-no { font-size: 12px; color: var(--ink); }
.jt-no { color: var(--muted); }
.jt-pick { min-width: 118px; }
.jt-notes { max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.jt-legend { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--muted); margin: 0 0 2px; }
.jt-legend span { width: 14px; height: 14px; border-radius: 3px; display: inline-block; margin-left: 8px; }
.jt-legend .m-red { background: #e2445c; } .jt-legend .m-yellow { background: #ffcb00; } .jt-legend .m-green { background: #00c875; }

/* Production board: symbols beside the name, contact underneath */
.jt { min-width: 860px; }
.jt-proj { min-width: 300px; max-width: 420px; }
.jt-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.jt-name a { color: var(--ink); text-decoration: none; }
.jt-name .jt-marks { display: inline-flex; gap: 5px; border: 0; }
.jt-name .paytag { font-size: 10px; }
.jt-sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jt-sub a { color: var(--muted); text-decoration: none; }
.jt-sub a.jt-who { color: var(--accent); }
.jt-sub a:hover { text-decoration: underline; }
.jt-proj .jt-name a, .jt-proj .jt-sub a { display: inline; }

/* Production board: resizable columns + inline quick note */
.jt { table-layout: fixed; width: max-content; min-width: 0; }
.jt th { position: relative; }
.col-grip { position: absolute; top: 0; right: -4px; width: 9px; height: 100%; cursor: col-resize; z-index: 2; }
.col-grip:hover, body.col-resizing .col-grip { background: linear-gradient(to right, transparent 3px, var(--accent) 3px, var(--accent) 5px, transparent 5px); }
body.col-resizing { cursor: col-resize; user-select: none; }
.jt td { overflow: hidden; text-overflow: ellipsis; }
.jt-proj { min-width: 0; max-width: none; }
.jt-pick { min-width: 0; }
.jt-notes { max-width: none; padding: 2px 4px !important; }
.jt-note { width: 100%; border: 1px solid transparent; background: transparent; font: inherit; font-size: 12px;
  padding: 6px 6px; border-radius: 6px; color: var(--ink); }
.jt-note::placeholder { color: var(--muted); opacity: .8; }
.jt-note:hover { border-color: var(--line); background: #fff; }
.jt-note:focus { border-color: var(--accent); background: #fff; outline: none; }
.jt-note.saved { border-color: #00c875; }

.row-grip { cursor: grab; color: var(--muted); font-size: 14px; padding: 0 2px; user-select: none; }
.row-grip:hover { color: var(--ink); }
.jt tr.dragging { opacity: .4; }
.jt-group.drop { outline: 2px dashed var(--c); outline-offset: -2px; background: var(--b); }

/* Recent activity: a tab on the right edge that swings out a side drawer */
.home-grid { grid-template-columns: minmax(0, 1fr) !important; }
.home-grid .activity { position: fixed !important; top: 0; right: 0; height: 100vh; max-height: none; width: min(380px, 92vw);
  margin: 0; border-radius: 14px 0 0 14px; z-index: 60; overflow-y: auto; transform: translateX(105%);
  transition: transform .25s ease; box-shadow: -12px 0 30px rgba(0,0,0,.18); padding: 16px 14px; order: 0 !important; }
.home-grid .activity.open { transform: translateX(0); }
.act-close { position: absolute; top: 10px; right: 12px; background: transparent; color: var(--muted); border: 0; font-size: 18px; padding: 2px 6px; }
.act-scrim { position: fixed; inset: 0; background: rgba(0,0,0,.25); z-index: 55; }
.act-tab { position: fixed; right: 0; top: 42%; z-index: 50; background: #16181d; color: #fff; border: 0;
  border-radius: 10px 0 0 10px; padding: 14px 8px; box-shadow: -4px 4px 14px rgba(0,0,0,.25); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 10px; }
.act-tab:hover { padding-right: 12px; }
.act-tab-label { writing-mode: vertical-rl; transform: rotate(180deg); font-weight: 700; font-size: 13px; letter-spacing: .5px; }
.act-tab-new { background: #d7262f; color: #fff; min-width: 30px; height: 30px; border-radius: 99px; display: flex; align-items: center;
  justify-content: center; font-weight: 800; font-size: 15px; box-shadow: 0 0 0 3px rgba(215,38,47,.35); animation: pulse 1.6s ease-in-out infinite; }
.act-tab.has-new { background: #b71c24; }
.act-tab.open { opacity: 0; pointer-events: none; }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.12); } }
/* Every group's table = exactly the sum of the shared column widths, so columns line up across groups
   (with width: max-content Chrome ignored the widths and grew columns to fit long text). */
.jt { table-layout: fixed !important; width: calc(var(--w1) + var(--w2) + var(--w3) + var(--w4) + var(--w5) + var(--w6)) !important; min-width: 0 !important; }
.jt td, .jt th { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jt-proj .jt-name { flex-wrap: nowrap; overflow: hidden; }
.jt-proj .jt-name a { overflow: hidden; text-overflow: ellipsis; }

/* No money stripe (the Q / P / PO / $ symbols say it). PO symbol. Bigger, always-visible activity tab. */
.jt-proj, .jt-proj.m-red, .jt-proj.m-yellow, .jt-proj.m-green { border-left: 0 !important; }
.mk-po { --mk: #b8860b; width: auto !important; padding: 0 5px; border-radius: 99px !important; font-size: 10px !important;
  background: var(--mk); color: #fff; }
.act-tab { top: 30%; padding: 18px 10px; background: #d7262f; z-index: 70; }
.act-tab-label { font-size: 14px; }
.act-tab.has-new { background: #16181d; }
.act-open2 { margin-left: 4px; }
.act-open2-n { background: #d7262f; color: #fff; border-radius: 99px; padding: 0 7px; margin-left: 2px; }

.jt-row { cursor: grab; }
.jt-row:active { cursor: grabbing; }
.jt-row select, .jt-row input, .jt-row a { cursor: pointer; }
.jt-row input { cursor: text; }
.row-grip { display: none; }

.jt { width: calc(var(--w1) + var(--w2) + var(--w3) + var(--w4)) !important; }

.navsearch input { width: 170px; padding: 5px 10px; border-radius: 99px; font-size: 13px; }
.navsearch input:focus { width: 240px; }
.bigsearch { gap: 8px; margin-bottom: 10px; } .bigsearch input { font-size: 17px; padding: 10px 14px; }
.srow { gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); align-items: center; }

/* Job page: Next step, Estimates, Invoices up top */
.jleft { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.jleft > .card { margin: 0; }
.jsteps { display: flex; gap: 6px; flex-wrap: wrap; }
.jstep { font-size: 12px; padding: 4px 10px; border-radius: 99px; background: var(--soft); color: var(--muted); font-weight: 600; }
.jstep.ok { background: #e8f6ec; color: #146c3a; }
.jstep.now { background: #fff6e0; color: #9a6400; box-shadow: 0 0 0 1px #e8a317 inset; }
.nextstep { border-left: 6px solid #e8a317; background: #fffaf0; }
.nextstep p { margin: 6px 0; }
.docs-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; }
.docrow { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.docrow.void { opacity: .55; }
.docno { font-weight: 700; white-space: nowrap; }
.docwhat { flex: 1; min-width: 120px; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.docamt { white-space: nowrap; }
.docacts { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.docacts .btn.small, .docacts button.small { padding: 4px 8px; }
.docdate { padding: 3px 4px; font-size: 12px; max-width: 132px; }
.jdetails > summary { cursor: pointer; list-style: none; }
.jdetails > summary::-webkit-details-marker { display: none; }
.jdetails[open] > summary { margin-bottom: 8px; }
.jleft .outside-box { padding: 10px 14px; }

.jdetails > summary { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.nextstep .proofimg { max-height: 220px; }

/* Home: Notes & reminders as a compact, high-contrast band */
.todo-dark { background: #16181d; color: #e9ebef; border-radius: 12px; padding: 8px 12px; margin: 10px 0; box-shadow: none; border: 0; }
.todo-dark .todo-head { font-size: 12px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: #ffcb00; margin-bottom: 2px; }
.todo-dark .todo-head span { color: #9aa1ad; font-weight: 600; }
.todo-dark .todo-row { padding: 3px 0; border-top: 1px solid rgba(255,255,255,.08); align-items: center; gap: 8px; }
.todo-dark .todo-row:first-of-type { border-top: 0; }
.todo-dark .todo-line { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.todo-dark .todo-line a { color: #fff; }
.todo-dark .todo-line b { color: #ffcb00; }
.todo-dark .muted { color: #a9afba !important; }
.todo-dark .todo-line a.small { color: #8fb4ff; }
.todo-dark button.secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); padding: 1px 8px; }

.jmsgs .jmsg { border-top: 1px solid var(--line); padding: 6px 0; }
.jmsg-meta { font-size: 11px; color: var(--muted); }
.jmsg-body { font-size: 13px; margin-top: 2px; max-height: 7.5em; overflow: auto; }
.jmsg.in .jmsg-body { background: var(--soft); border-radius: 8px; padding: 4px 8px; }
/* Notes & reminders: softer - slate gray band, subtle blue titles */
.todo-dark { background: #4a525e; color: #eef1f5; }
.todo-dark .todo-head { color: #cfe0f3; }
.todo-dark .todo-head span { color: #b9c2cd; }
.todo-dark .todo-row { border-top-color: rgba(255,255,255,.12); }
.todo-dark .todo-line b { color: #a9cdf5; }
.todo-dark .todo-line a { color: #f3f5f8; }
.todo-dark .muted { color: #c7ced7 !important; }
.todo-dark .todo-line a.small { color: #bcdcff; }

/* Top menu: one line, extras under More */
header.top { padding: 6px 14px; }
header.top nav { flex-wrap: nowrap; gap: 4px; align-items: center; font-size: 14px; white-space: nowrap; margin-left: 0; width: 100%; }
header.top nav a, header.top nav .navmic { padding: 4px 8px; }
header.top .navsearch input { width: 150px; }
header.top .navsearch input:focus { width: 210px; }
.navmore { position: relative; margin-left: auto; }
.navmore > summary { list-style: none; cursor: pointer; padding: 4px 10px; border-radius: 6px; color: var(--ink); }
.navmore > summary::-webkit-details-marker { display: none; }
.navmore > summary:hover, .navmore[open] > summary { background: var(--soft); }
.navmore-list { position: absolute; right: 0; top: calc(100% + 6px); background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; box-shadow: var(--shadow); padding: 6px; display: flex; flex-direction: column; min-width: 190px; z-index: 30; }
.navmore-list a { padding: 8px 10px !important; }
@media (max-width: 1100px) { header.top nav { flex-wrap: wrap; } }

.pastwork { margin: 10px 0; }
.pastwork > summary { cursor: pointer; }
.pastrow { display: flex; gap: 10px; align-items: baseline; padding: 6px 4px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 13px; }
.pastrow:hover { background: var(--soft); text-decoration: none; }
.pastrow .grow { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Click-to-rename job names */
.jtitle[contenteditable], .jt-title[contenteditable] { cursor: text; border-radius: 6px; outline: none; }
.jtitle[contenteditable]:hover { box-shadow: 0 0 0 1px rgba(255,255,255,.35); }
.jtitle[contenteditable]:focus { box-shadow: 0 0 0 2px #fff; background: rgba(255,255,255,.08); }
.jt-title[contenteditable]:hover { background: var(--soft); }
.jt-title[contenteditable]:focus { background: #fff; box-shadow: 0 0 0 1px var(--accent); color: var(--ink); padding: 0 3px; }

.artfirst { margin-left: auto; font-size: 12px; display: inline-flex; gap: 5px; align-items: center; color: var(--muted); cursor: pointer; }

.doclog { list-style: none; margin: -2px 0 8px 0; padding: 4px 0 4px 12px; border-left: 2px solid var(--line, #ddd); font-size: 12px; color: var(--muted); }
.doclog li { padding: 1px 0; }
.doclog b.ok { color: #1a7f37; }
.doclog b.bad { color: #c62828; }

/* Job notes: one compact block per email (date · who, then tight bullets) */
.notes.nblocks { white-space: normal; font-size: 13px; line-height: 1.38; }
.nblk { padding: 5px 0 6px 9px; border-left: 3px solid var(--line, #e3e3e3); margin-bottom: 7px; }
.nblk:nth-child(even) { border-left-color: #c9d6ea; }
.nhd { font-size: 11.5px; text-transform: none; color: var(--muted); margin-bottom: 2px; }
.nhd b { color: var(--ink, #222); font-weight: 700; margin-right: 3px; }
.nblk ul { margin: 0; padding-left: 14px; }
.nblk li { margin: 0 0 2px; }
.nblk li::marker { color: #9aa3ad; }
.nplain { white-space: pre-wrap; overflow-wrap: anywhere; }

.crrow { padding: 8px 0; border-bottom: 1px solid var(--line, #eee); }
.crrow.done, .crrow.dropped { opacity: .6; }
.qb-proof-left { margin-top: 12px; }

.qb-qty-edit { display: flex; align-items: center; gap: 4px; padding-top: 4px; }
.qb-qty-edit input { width: 54px; text-align: center; padding: 5px 4px; border: 1px solid transparent; background: var(--soft); }
.qb-qty-edit input:hover { border-color: var(--line); } .qb-qty-edit input:focus { background: #fff; border-color: var(--accent); }
.qb-linetotal { margin-left: 4px; white-space: nowrap; font-weight: 600; }

/* Item lines: the name, then any detail small and light underneath */
.iname { display: block; font-weight: 600; }
.idetail { display: block; font-size: 12px; color: var(--muted); font-weight: 400; line-height: 1.3; margin-top: 1px; }
.itemlist li { margin-bottom: 6px; }
.qb-desc { display: flex; flex-direction: column; gap: 2px; }
.qb-desc .qb-name { font-weight: 600; padding: 5px 8px; border: 1px solid transparent; background: var(--soft); }
.qb-desc .qb-detail { font-size: 12px; color: var(--muted); padding: 2px 8px; border: 1px solid transparent; background: transparent; }
.qb-desc input:hover { border-color: var(--line); } .qb-desc input:focus { background: #fff; border-color: var(--accent); color: inherit; }

.po-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.po-form input[name=po_number] { flex: 1 1 160px; }

/* Sent / approved estimate: document view */
.qdoc { max-width: 860px; padding: 28px 32px; }
.qdoc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; border-bottom: 2px solid var(--line, #eee); padding-bottom: 14px; }
.qdoc-logo { height: 62px; width: auto; }
.qdoc-meta { text-align: right; font-size: 13px; color: var(--muted); }
.qdoc-meta .qdoc-kind { font-size: 22px; font-weight: 800; color: var(--ink, #222); letter-spacing: .3px; }
.qdoc-meta b { display: block; color: var(--ink, #222); font-size: 15px; }
.qdoc-meta .pill { margin-top: 6px; display: inline-block; }
.qdoc-to { display: flex; gap: 40px; flex-wrap: wrap; margin: 16px 0 6px; font-size: 14px; }
.qdoc-pkg { margin-top: 14px; }
.qdoc-pkg.chosen { outline: 2px solid #00c875; outline-offset: 6px; border-radius: 6px; }
.qdoc-pkgname { font-weight: 700; margin-bottom: 4px; }
.qdoc-lines { width: 100%; border-collapse: collapse; font-size: 14px; }
.qdoc-lines th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); border-bottom: 1px solid var(--line, #eee); padding: 6px 4px; }
.qdoc-lines td { padding: 8px 4px; border-bottom: 1px solid #f1f1ee; vertical-align: top; }
.qdoc-lines .r { text-align: right; white-space: nowrap; }
.qdoc-lines tfoot td { border-bottom: none; padding-top: 6px; }
.qdoc-total td { font-size: 18px; font-weight: 800; border-top: 2px solid var(--ink, #222) !important; }
.qdoc-foot { margin: 14px 0 0; }
.qb-breakdown { margin-top: 12px; max-width: 860px; }
.qb-breakdown > summary { cursor: pointer; padding: 4px 2px; }
@media (max-width: 600px) { .qdoc { padding: 16px; } .qdoc-logo { height: 44px; } }
.docs-total { margin: -4px 0 6px; }

.inv-line { display: grid; grid-template-columns: minmax(0, 1fr) 64px 120px auto; gap: 6px; align-items: center; margin-bottom: 6px; }
.inv-line input[name=line_qty] { text-align: center; }
@media (max-width: 600px) { .inv-line { grid-template-columns: minmax(0, 1fr) 54px 96px; } .inv-line .chip { grid-column: 1 / -1; } }

.inv-po { margin: 10px 0; } .inv-po > summary { cursor: pointer; font-size: 13px; color: var(--accent, #b22); }

.inv-paid-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.inv-paid-row > div { min-width: 120px; }
.payrec { margin: 2px 0 6px; } .payrec > summary { color: var(--accent, #b22); }

/* Outstanding invoices */
.os-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.os-head h1 { margin-bottom: 2px; }
.os-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin: 12px 0; }
.os-stat { background: var(--card, #fff); border: 1px solid var(--line, #eee); border-radius: 12px; padding: 12px 14px; }
.os-stat span { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.os-stat b { display: block; font-size: 24px; margin: 2px 0; }
.os-stat small { color: var(--muted); }
.os-stat.late b { color: #c62828; }
.os-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.os-card { padding: 4px 12px; overflow-x: auto; }
.os-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.os-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); padding: 10px 6px; border-bottom: 1px solid var(--line, #eee); white-space: nowrap; }
.os-table th[data-k] { cursor: pointer; user-select: none; }
.os-table th.os-sorted { color: var(--ink, #222); }
.os-table th.os-sorted::after { content: " ▲"; font-size: 9px; } .os-table th.os-sorted.desc::after { content: " ▼"; }
.os-table td { padding: 9px 6px; border-bottom: 1px solid #f1f1ee; vertical-align: top; }
.os-table .r { text-align: right; white-space: nowrap; }
.os-table tr.is-late td:first-child { box-shadow: inset 3px 0 0 #e2445c; }
.os-table tfoot td { border-bottom: none; padding-top: 10px; font-size: 15px; }
@media print {
  .os-bar, .os-actions { display: none !important; }
  .os-card { box-shadow: none; border: none; padding: 0; }
  .os-table { font-size: 11px; } .os-table a { color: inherit; text-decoration: none; }
  .os-stat { border: 1px solid #ccc; }
}

.bal-left { display: flex; justify-content: space-between; align-items: center; background: #fdecee; border: 1px solid #f5c2c8;
  border-left: 5px solid #e2445c; border-radius: 8px; padding: 8px 12px; margin: 4px 0 10px; }
.bal-left span { font-weight: 700; color: #a3172b; font-size: 14px; }
.bal-left b { font-size: 24px; font-weight: 800; color: #c62828; }
.paidfull { color: #1a7f37; }

.pill.partial { background: #fff1d6; color: #9a5b00; }
.payparts { list-style: none; margin: 0 0 4px 0; padding: 0 0 0 12px; font-size: 12px; color: #1a7f37; }

.inv-art-pick { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 8px; }
.inv-art-thumb { width: 120px; height: auto; border-radius: 6px; border: 1px solid var(--line, #ddd); }

.cashline { margin: 2px 0 6px; font-size: 15px; }

/* Job page: one tidy box per invoice */
.invbox { border: 1px solid var(--line, #eee); border-radius: 10px; padding: 8px 10px; margin: 8px 0; }
.invbox.void { opacity: .55; }
.invtop { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.invacts { margin-left: auto; display: inline-flex; gap: 8px; align-items: center; font-size: 13px; }
.invacts a { text-decoration: none; }
.invacts .docdate { font-size: 12px; padding: 2px 4px; }
.invdetail { margin: 6px 0 4px; font-size: 13px; }
.invrow { display: flex; justify-content: space-between; padding: 2px 0; }
.invrow.paidrow { color: #1a7f37; }
.invrow.paidfull-row { color: #1a7f37; font-weight: 700; border-top: 1px solid var(--line, #eee); padding-top: 4px; }
.invbox .bal-left { margin: 4px 0 2px; }
.invcash { text-align: right; margin-bottom: 4px; }
.docpics { margin-bottom: 8px; }
.docpic { position: relative; display: inline-block; }
.docpic img { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line, #ddd); }
.docpic-x { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; padding: 0; font-size: 12px;
  background: #c62828; color: #fff; border: 2px solid #fff; opacity: 0; transition: opacity .15s; cursor: pointer; }
.docpic:hover .docpic-x, .docpic-x:focus { opacity: 1; }
@media (hover: none) { .docpic-x { opacity: 1; } }

.todo-edit { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 8px 10px; margin: 0 0 6px; background: rgba(255,255,255,.06); border-radius: 8px; }
.todo-edit input, .todo-edit textarea { color: inherit; }
.todo-edit-btn { margin-right: 4px; }

/* Home: compact one-line rows; empty groups are thin bars; production steps sit under In Production */
.jt-line { display: flex; align-items: center; gap: 8px; white-space: nowrap; overflow: hidden; }
.jt-line .jt-cust { color: var(--ink); text-decoration: none; flex: none; }
.jt-line .jt-title { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; min-width: 40px; }
.jt-line .jt-who { font-size: 12px; flex: none; }
.jt-line .jt-marks { display: inline-flex; gap: 4px; flex: none; }
.jt-sent { font-size: 11px; font-weight: 700; color: #b23b3b; background: #fdecee; border-radius: 6px; padding: 1px 6px; flex: none; }
.jt .jt-row td { padding-top: 4px !important; padding-bottom: 4px !important; }
.jt-group.jt-empty { padding: 3px 10px; opacity: .75; }
.jt-group.jt-empty .jt-head { margin: 0; font-size: 12px; }
.jt-group.jt-subgroup { margin-left: 22px; border-left-width: 4px; }
.jt-group.jt-subgroup .jt-head { font-size: 13px; }
.board .col.col-isempty { min-height: 0; padding: 4px 8px; }
.board .col.col-isempty .col-empty { display: none; }
.board .col.col-isempty .col-head { font-size: 12px; margin: 0; }
.board.rows .col.col-sub { margin-left: 22px; }

.jboard { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(255,255,255,.75); margin-right: 8px; }
.jboard-sel { background: var(--pc, #c4c4c4); color: #fff; font-weight: 700; border: 0; border-radius: 6px; padding: 3px 8px; font-size: 13px; }
.jboard-sel option { background: #fff; color: #222; }

/* Dark mode (owner pages only; customers never see it). The whole page is inverted, then pictures are inverted
   back so photos, proofs and logos look normal. One rule instead of re-coloring every part by hand. */
html[data-theme="dark"] { filter: invert(.9) hue-rotate(180deg); background: #fff; }
html[data-theme="dark"] img, html[data-theme="dark"] video, html[data-theme="dark"] object,
html[data-theme="dark"] iframe, html[data-theme="dark"] canvas, html[data-theme="dark"] svg image { filter: invert(1) hue-rotate(180deg); }
.theme-toggle { float: right; margin: 4px 0 0 8px; }
/* Parts that are already dark stay dark in dark mode (flip them back). */
html[data-theme="dark"] .jhead, html[data-theme="dark"] .todo-dark { filter: invert(1) hue-rotate(180deg); }
html[data-theme="dark"] .jhead img, html[data-theme="dark"] .todo-dark img { filter: none; }

.inline-email { font-size: 13px; padding: 2px 6px; min-width: 220px; }

.bal-left .bal-card { margin-left: auto; margin-right: 12px; font-size: 12px; color: #a3172b; opacity: .75; }

.job-activity { margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line, #eee); }
.job-activity .act { display: block; padding: 6px 8px; border-radius: 8px; margin: 4px 0; background: var(--soft); font-size: 13px; }
.job-activity .act-top { display: flex; justify-content: space-between; gap: 8px; }
.job-activity time { color: var(--muted); font-size: 11px; white-space: nowrap; }

/* Home table: quick-actions menu */
.qa { position: relative; flex: none; }
.qa > summary { list-style: none; cursor: pointer; width: 22px; height: 22px; line-height: 20px; text-align: center;
  border-radius: 6px; color: var(--muted); font-weight: 700; }
.qa > summary::-webkit-details-marker { display: none; }
.qa > summary:hover, .qa[open] > summary { background: var(--soft); color: var(--ink); }
.qa-menu { position: absolute; z-index: 40; top: 24px; left: 0; width: 250px; background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.14); padding: 6px; white-space: normal; }
.qa-menu a, .qa-menu .qa-item { display: block; width: 100%; text-align: left; padding: 6px 8px; border-radius: 6px; font-size: 13px;
  color: var(--ink); background: none; border: 0; cursor: pointer; text-decoration: none; }
.qa-menu a:hover, .qa-menu .qa-item:hover { background: var(--soft); }
.qa-menu form { margin: 0; }
.qa-menu .qa-danger { color: #c62828; }
.qa-msg { display: grid; gap: 4px; padding: 4px 4px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px !important; }
.qa-msg textarea { font-size: 13px; }
/* Columns clip their text; the quick-actions menu floats above the page (placed by script) so it isn't cut off */
.jt td { overflow: hidden; text-overflow: ellipsis; }
.jt-line { overflow: hidden; }
.jt-line .jt-title { white-space: nowrap; }
.qa-menu.qa-float { position: fixed; z-index: 1000; }

.jt-head span, .board .col-head span { text-transform: uppercase; letter-spacing: .3px; }

/* Home table, calmer (owner 2026-11-18): fits the page, one header, thin color stripe only, zebra rows */
#jtable .jt { width: 100% !important; min-width: 0 !important; table-layout: fixed !important; }
#jtable .jt-scroll { overflow: hidden; }
.jt-sticky { position: sticky; top: 0; z-index: 20; background: var(--bg); padding: 2px 0 0 16px; }
.jt-headrow th { border-bottom: 2px solid var(--line); background: var(--bg); }
#jtable .jt-group { border: 0; border-left: 4px solid var(--c); border-radius: 6px; background: var(--card); box-shadow: none;
  padding: 4px 0 2px 12px; margin: 6px 0; }
#jtable .jt-group.jt-subgroup { margin-left: 18px; border-left-width: 3px; }
#jtable .jt-head { margin: 2px 0 4px; }
#jtable .jt-head b { background: transparent; color: var(--c); border: 1px solid currentColor; padding: 0 7px; }
#jtable .jt tbody tr:nth-child(even) td { background: var(--soft); }
#jtable .jt tbody tr:hover td { background: #eef3fb; }
#jtable .jt td { border-bottom: 0; }
/* sub-rows (machines) line up with the header: indent only their name, not the columns */
#jtable .jt-group.jt-subgroup { margin-left: 0; border-left-width: 4px; }
#jtable .jt-group.jt-subgroup .jt-head { padding-left: 18px; }
.jt-sticky { top: var(--navh, 0px); z-index: 4; }
/* Group names and the column header sit on a band a few shades darker than the shaded rows, so each group's
   start is easy to see. */
#jtable .jt-head { background: #e2e0d9; margin: 0 0 2px -12px; padding: 4px 10px 4px 12px; border-radius: 0 6px 0 0; }
#jtable .jt-group.jt-subgroup .jt-head { padding-left: 30px; }
#jtable .jt-group.jt-empty .jt-head { border-radius: 0 6px 6px 0; }
#jtable .jt-group { padding-top: 0; padding-bottom: 0; overflow: hidden; }
.jt-headrow th { background: #e2e0d9 !important; }

.mk-i { --mk: #4a4a4a; }

/* Each group's header row is a light tint of its own color, its name a darker shade of the same color
   (owner 2026-11-18). Replaces the plain darker band. */
#jtable .jt-head { background: color-mix(in srgb, var(--c) 20%, #fff); color: color-mix(in srgb, var(--c) 62%, #000); }
#jtable .jt-head b { color: color-mix(in srgb, var(--c) 62%, #000); border-color: color-mix(in srgb, var(--c) 45%, #fff); background: #fff8; }
#jtable .jt-group { border-left-color: var(--c); }
.jt-headrow th { background: #e9e8e3 !important; }

/* IN PRODUCTION is only a header over its machine steps; the steps sit indented under it */
.jt-header-only { display: flex; align-items: center; gap: 8px; margin: 10px 0 2px; padding: 5px 12px; border-left: 4px solid var(--c);
  border-radius: 6px 6px 0 0; background: color-mix(in srgb, var(--c) 28%, #fff); color: color-mix(in srgb, var(--c) 60%, #000);
  font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: .4px; }
.jt-header-only b { font-size: 12px; border: 1px solid currentColor; border-radius: 99px; padding: 0 7px; }
#jtable .jt-group.jt-subgroup { margin-left: 26px; }
#jtable .jt-group.jt-subgroup .jt-head { padding-left: 12px; }
.board .col-header-only { font-weight: 800; text-transform: uppercase; color: var(--c); padding: 6px 4px 0; font-size: 13px; }
.board.rows .col-header-only { grid-column: 1 / -1; }

/* Estimate preview card in the Jarvis window */
.jw-main { display: none; } body.jarvis-window .jw-main { display: inline-block; }
.qcard-wrap { max-width: 100% !important; background: var(--card) !important; border: 1px solid var(--line); }
.qcard { font-size: 13px; }
.qcard-head { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 6px; }
.qcard-pkg { font-weight: 700; margin-top: 6px; }
.qcard-lines { width: 100%; border-collapse: collapse; }
.qcard-lines td { padding: 3px 4px; border-bottom: 1px solid #f0efea; vertical-align: top; }
.qcard-lines .r { text-align: right; white-space: nowrap; }
.qcard-total td { font-weight: 800; font-size: 15px; border-top: 2px solid var(--ink); border-bottom: 0; }
.qcard-past { margin-top: 8px; padding: 6px 8px; background: var(--soft); border-radius: 8px; }
.qcard-past a { display: block; font-size: 12px; color: var(--ink); text-decoration: none; padding: 2px 0; }
.qcard-proofs { display: flex; gap: 6px; margin-top: 6px; }
.qcard-proofs img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.qcard-acts { display: flex; gap: 6px; margin-top: 8px; align-items: center; }
.qcard-acts form { margin: 0; }

/* Home table: the project is the main title; the customer sits beside it, smaller */
.jt-line .jt-main { color: var(--ink); font-size: 13.5px; font-weight: 700; flex: none; max-width: 45%; overflow: hidden; text-overflow: ellipsis; }
.jt-line .jt-custsmall { color: var(--muted); font-size: 12.5px; font-weight: 500; }

/* Home rows: whole row opens the job; customer / contact look like links */
#jtable .jt-row { cursor: pointer; }
.jt-line .jt-custsmall, .jt-line .jt-who { color: #1f5fbf !important; text-decoration: underline; text-decoration-color: #1f5fbf55; }
.jt-line .jt-custsmall:hover, .jt-line .jt-who:hover { text-decoration-color: currentColor; }
.qa > summary { font-size: 13px; }

.os-dates { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.os-dates input[type=date] { max-width: 160px; }
.os-range-note { margin: 0 0 8px; font-weight: 600; }

.tx-split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; margin-bottom: 10px; }
@media (max-width: 760px) { .tx-split { grid-template-columns: minmax(0, 1fr); } }
.os-dates select { width: auto; min-width: 160px; flex: none; }

/* Rush jobs: yellow row all the way across, at the top of their group */
#jtable .jt tbody tr.jt-rush td, #jtable .jt tbody tr.jt-rush:nth-child(even) td { background: #fff3a8 !important; }
.rushtag { font-size: 10.5px; font-weight: 800; color: #7a5a00; background: #ffd84d; border-radius: 4px; padding: 1px 5px; flex: none; }
.rushpill { background: #ffd84d; color: #6b4e00; }
.qb-rush { margin: 0 8px 0 0; } .qb-rush .chip.on { background: #fff3a8; border-color: #e0b400; }

.cardacts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0; }
.cardacts form { margin: 0; }
.tx-unmatched { border-left: 4px solid #ef9a3c; margin-bottom: 10px; }
.tx-unmatched form { gap: 8px; margin-top: 6px; }

.sched-row { background: #eef3fb; border-radius: 8px; padding: 6px 10px; margin: 4px 0 8px; font-size: 13px; }

.sched-pill { background: #eef3fb; color: #1f4f9a; }

.os-actions { display: flex; gap: 8px; }

.act.act-auto { border-left-color: #7a72d1; }

/* Activity drawer: Outgoing messages tab (one card per customer) */
.activity .act-outbox { display: none; }
.activity.show-out .act-outbox { display: block; }
.activity.show-out > a.act, .activity.show-out .act-none { display: none !important; }
.outcard { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; margin: 8px 0; background: var(--card); }
.outcard .act-top { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.outcard .act-top a { color: var(--ink); text-decoration: none; }
.outcard time { color: var(--muted); font-size: 11px; white-space: nowrap; }
.outline { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; border-top: 1px solid #f1f0ec; font-size: 13px; color: var(--ink); text-decoration: none; }
.outline:hover { background: var(--soft); }

.sched-row .sendnow { font-weight: 600; color: var(--accent, #b3261e); }

.biz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 12px; margin-bottom: 8px; }
.biz-grid label { font-size: 12px; color: var(--muted); }
.biz-grid input { width: 100%; }

/* Shop-floor item lines: qty, size, SS/DS, material, process */
.jt-items, .jc-items { list-style: none; margin: 2px 0 0; padding: 0; font-size: 11.5px; color: var(--muted); line-height: 1.35; }
.jt-items li::before, .jc-items li::before { content: "• "; }
.jc-items { margin: 3px 0; }

/* Job page: estimate (left) + invoice (middle) side by side, each with a live preview */
@media (min-width: 861px) { .jgrid { grid-template-columns: minmax(0, 2.3fr) minmax(280px, 1fr); } }
.jdocs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.jdocs > .card { margin: 0; }
@media (max-width: 1100px) { .jdocs { grid-template-columns: minmax(0, 1fr); } }
.docprev { display: block; position: relative; height: 300px; overflow: hidden; border: 1px solid var(--line);
  border-radius: 8px; margin: 6px 0 10px; background: #fff; }
.docprev iframe { width: 250%; height: 250%; border: 0; transform: scale(.4); transform-origin: 0 0; pointer-events: none; }
.docprev:hover { border-color: var(--accent); }
.nextstep > summary { cursor: pointer; list-style: none; }
.nextstep > summary::-webkit-details-marker { display: none; }
.nextstep > summary::before { content: "▾ "; color: var(--muted); }
.nextstep:not([open]) > summary::before { content: "▸ "; }

.docprev { height: 210px; }

/* Job page mini preview: just the document info (no logo, buttons, footer or artwork) */
body.thumb .pub-top, body.thumb .doc-actions, body.thumb .pub-foot, body.thumb .preview-bar { display: none !important; }
body.thumb main.narrow { margin-top: 0; padding-top: 8px; }

/* Job page on a phone (owner 2026-11-19): one column, nothing wider than the screen */
@media (max-width: 860px) {
  .jgrid, .jdocs { grid-template-columns: minmax(0, 1fr) !important; }
  .jleft, .jside { min-width: 0; }
  .jsteps { display: flex; flex-wrap: wrap; gap: 4px 6px; }
  .docrow { flex-wrap: wrap; }
  .docacts, .invacts, .cardacts { flex-wrap: wrap; }
  .invtop { flex-wrap: wrap; gap: 6px; }
  .docprev { height: 180px; }
  .jhead .jbtns, .jhead-actions { flex-wrap: wrap; }
  .payrec form.row, .inlineform form.row { flex-wrap: wrap; }
  .payrec input, .payrec select { max-width: 100% !important; }
}

.talk-voice-pick select { max-width: 200px; font-size: 12px; padding: 2px 4px; }

/* Finished job photos + the review-and-send box */
.addfinished { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; font-size: 18px; }
.addfinished small { font-size: 10px; color: var(--muted); }
.review-final { border: 2px solid #2e8b57; background: #f3fbf6; }
.review-acts { align-items: center; gap: 8px; flex-wrap: wrap; }

/* Job files gallery + the table's 📎 icon */
.jt-pick { white-space: nowrap; }
.jt-files { text-decoration: none; margin-right: 6px; font-size: 14px; vertical-align: middle; }
.jt-files:hover { filter: brightness(.8); }
.fg-h { font-size: 15px; margin: 18px 0 8px; }
.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.ftile { display: flex; flex-direction: column; gap: 3px; text-decoration: none; color: var(--ink); }
.fthumb { position: relative; height: 200px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff;
  display: flex; align-items: center; justify-content: center; }
.fthumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.fthumb.doc iframe { position: absolute; top: 0; left: 0; width: 400%; height: 400%; border: 0; transform: scale(.25);
  transform-origin: 0 0; pointer-events: none; }
.fthumb.pdf object { width: 100%; height: 100%; pointer-events: none; }
.fthumb .pdfbadge { position: absolute; bottom: 6px; right: 6px; }
.ftile:hover .fthumb { border-color: var(--accent); }
.fname { font-size: 13px; font-weight: 600; }
.fmeta { font-size: 11px; color: var(--muted); }

/* Files column (folder icon) between Project and Priority */
.jt { width: calc(var(--w1) + 36px + var(--w2) + var(--w3) + var(--w4)) !important; }
.jt-filecell { text-align: center; padding-left: 0 !important; padding-right: 0 !important; }
.jt-files { color: #c9a227; display: inline-flex; margin: 0; }
.jt-files:hover { color: #a8841a; }

/* Deposit paid: the $ circle half filled (green left half, white right half) */
.mk.mk-half { color: var(--ink); border: 1.5px solid var(--mk); background: linear-gradient(to right, var(--mk) 50%, #fff 50%); }

/* AI designer */
.dgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-top: 12px; }
.dtile { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px; }
.dtile img { width: 100%; display: block; border: 1px solid var(--line); background: #fff; }
.dwait { min-height: 160px; display: flex; align-items: center; justify-content: center; color: var(--muted); }

/* Delete ✕ on files and designs */
.fwrap { position: relative; }
.fdel { position: absolute; top: 6px; right: 6px; z-index: 2; margin: 0; }
.fdel button { width: 26px; height: 26px; border-radius: 50%; padding: 0; border: 1px solid var(--line); background: #fff;
  color: #b42318; font-size: 13px; line-height: 1; cursor: pointer; opacity: .85; }
.fdel button:hover { opacity: 1; background: #fee4e2; }

/* Design tiles: fonts to order + letter heights */
.dinfo { list-style: none; margin: 6px 0 0; padding: 6px 0 0; border-top: 1px solid var(--line); font-size: 12px; }
.dinfo li { margin: 2px 0; }

/* Design page: pick one of the job's pictures */
.pickgrid { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0; }
.pick { position: relative; cursor: pointer; }
.pick input { position: absolute; opacity: 0; }
.pick img { width: 96px; height: 72px; object-fit: cover; border-radius: 6px; border: 3px solid transparent; display: block; }
.pick input:checked + img { border-color: var(--accent); box-shadow: 0 0 0 2px #fff inset; }

/* Jarvis panel: files dragged onto it */
.talk-drop { outline: 3px dashed var(--accent); outline-offset: -6px; }
.talk-drop::after { content: "Drop to send to Jarvis"; position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; font-weight: 700; font-size: 18px; background: rgba(255,255,255,.85); pointer-events: none; }

/* Item details: one "Label: value" per line, label bold (owner 2026-11-21) */
.idetail { font-size: 13px; color: var(--ink, #222); line-height: 1.45; margin-top: 3px; }
.idetail b { font-weight: 700; }
textarea.qb-detail { width: 100%; resize: vertical; font-family: inherit; line-height: 1.4; }

/* Quote package headline: what it quotes, big and bold (owner 2026-11-21) */
.opt-title { font-size: 20px; font-weight: 800; line-height: 1.25; }

/* Job page: small "schedule send" link beside Convert to invoice (owner 2026-11-21) */
.linkbtn { background: none; border: 0; padding: 0 4px; color: var(--accent); text-decoration: underline; cursor: pointer; font: inherit; font-size: 13px; }
details.inline-sched { display: inline-block; vertical-align: middle; }
details.inline-sched > summary { list-style: none; display: inline; }
details.inline-sched > summary::-webkit-details-marker { display: none; }
details.inline-sched[open] { display: block; }

/* Jarvis chat: design preview */
.dcard .dprev { display: block; max-width: 100%; max-height: 340px; background: repeating-conic-gradient(#eee 0 25%, #fff 0 50%) 0 0/16px 16px;
  border: 1px solid var(--line); border-radius: 6px; margin-bottom: 6px; }

.pill.sched-note { background: #fff4d6; color: #7a5600; }

.sched-box { margin-top: 6px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fffdf5; }

/* Messages: Send later */
.sendcol { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
details.later > summary { list-style: none; cursor: pointer; }
details.later > summary::-webkit-details-marker { display: none; }
.later-box { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.sched-line { margin: 6px 0; padding: 6px 8px; background: #fff4d6; border-radius: 6px; }

/* Proofs with several files: links instead of one preview */
.prooflinks { list-style: none; padding: 0; margin: 6px 0; }
.prooflinks li { margin: 4px 0; }
.prooflinks a { font-weight: 600; }

/* All proofs page */
.proofrow { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.proofrow:first-child { border-top: 0; }
.proofthumb { width: 120px; flex: none; }
.proofthumb img { width: 120px; border-radius: 6px; border: 1px solid var(--line); }

/* Little "done" note instead of a page reload */
#jtoast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: #1d1f21; color: #fff;
  padding: 10px 16px; border-radius: 8px; font-size: 14px; opacity: 0; pointer-events: none; transition: all .2s; z-index: 90; }
#jtoast.show { opacity: 1; transform: translateX(-50%); }
#jtoast.bad { background: #b3261e; }

/* Jarvis panel: press to record + a box that grows */
.dictbtn { width: 40px; height: 40px; padding: 0; font-size: 18px; border-radius: 8px; background: var(--card); color: var(--ink); border: 1px solid var(--line); flex: none; }
.dictbtn.on { background: #c0392b; color: #fff; border-color: #c0392b; animation: dictpulse 1.2s infinite; }
@keyframes dictpulse { 50% { box-shadow: 0 0 0 4px rgba(192,57,43,.25); } }
.dictbars { width: 60px; height: 28px; align-self: center; flex: none; }
#talk-text { resize: none; min-height: 40px; max-height: 320px; line-height: 1.4; padding: 9px 10px; font: inherit; overflow-y: auto; }
#talk-form { align-items: flex-end; }

#talk-mute.on { background: #444; color: #fff; }

/* Jarvis panel: pasted pictures waiting to send */
.pastedrow { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.pastedchip { position: relative; display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 8px; padding: 3px; background: var(--card); font-size: 12px; }
.pastedchip img { width: 64px; height: 48px; object-fit: cover; border-radius: 5px; display: block; }
.pastedchip button { border: 0; background: #0009; color: #fff; border-radius: 50%; width: 18px; height: 18px; padding: 0; font-size: 11px; line-height: 18px; cursor: pointer; }

.jt-sched { font-size: 11px; font-weight: 700; color: #7a5600; background: #fff4d6; border-radius: 6px; padding: 1px 6px; flex: none; }
/* line icons that replaced emoji (icons.js) */
svg.ico { vertical-align: -0.15em; flex: none; }

.finished-big { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 12px; }
.finished-big .btn { cursor: pointer; }

.sendchoice { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; margin: 8px 0; }
.sendchoice label { display: inline-flex; align-items: center; gap: 4px; margin: 0; font-weight: 400; }
.proofs-box .prooflinks { margin: 4px 0 8px; }

.proofpick .pickrow { display: flex; align-items: center; gap: 8px; margin: 4px 0; font-weight: 400; }
.proofpick .pickrow a { font-weight: 600; }

/* Job page: done = very light green, next up = cream (owner 2026-11-21) */
.card.done-green { background: #eefaf0; border-color: #cfe9d4; }
.card.next-cream { background: #fffaf0; border-left: 6px solid #e8a317; }
.schedcard .sched-row { margin: 6px 0; }

/* Job Files: a ✕ on each photo / PDF */
.thumbx { position: relative; display: inline-block; }
.thumbx-del { position: absolute; top: 3px; right: 3px; margin: 0; }
.thumbx-del button { border: 0; background: #000a; color: #fff; border-radius: 50%; width: 20px; height: 20px; padding: 0;
  font-size: 11px; line-height: 20px; cursor: pointer; opacity: .75; }
.thumbx-del button:hover { opacity: 1; background: #b3261e; }
aside.jside .activity table { font-size: 11px; }

.ptag { font-size: 11px; font-weight: 700; border-radius: 6px; padding: 1px 6px; white-space: nowrap; }
.ptag-sched { color: #7a5600; background: #fff4d6; }
.ptag-sent { color: #1e6b34; background: #e3f5e7; }

.ptag-open { color: #0b4f8a; background: #e3effb; }

/* Change requests: open = light green, done = greyed out (owner 2026-11-23) */
.crrow { display: block; padding: 10px 12px; margin: 6px 0; border-radius: 8px; border: 1px solid var(--line); }
.crrow.open { background: #eefaf0; border-color: #cfe9d4; }
.crrow.done, .crrow.dropped { background: #f3f3f3; color: #888; opacity: 1; }
.crrow .cr-acts { float: right; display: inline-flex; gap: 6px; align-items: center; }

.kept { color: #1e6b34; font-weight: 700; }

/* Font picker: each font shown in its own look */
.fontpick { position: relative; display: inline-block; }
.fp-btn { background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; }
.fp-cur { font-size: 16px; font-weight: 600; }
.fp-panel { position: absolute; z-index: 60; top: 100%; left: 0; margin-top: 4px; width: 340px; max-width: 90vw; background: var(--card);
  border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px #0002; padding: 8px; }
.fp-search { width: 100%; margin-bottom: 6px; }
.fp-acts { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.fp-list { max-height: 360px; overflow-y: auto; }
.fp-group { font-size: 11px; font-weight: 800; text-transform: uppercase; color: var(--muted); margin: 10px 0 4px; }
.fp-item { display: block; width: 100%; text-align: left; background: none; border: 0; border-radius: 6px; padding: 6px 8px;
  font-size: 20px; line-height: 1.2; color: var(--ink); cursor: pointer; }
.fp-item:hover { background: #f3efe6; }

/* Design editor */
.ded { position: fixed; inset: 0; background: #0007; z-index: 70; display: flex; align-items: center; justify-content: center; }
.ded-box { width: min(1100px, 96vw); max-height: 94vh; overflow: auto; }
.ded-main { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; }
.ded-canvas { flex: 1 1 520px; min-width: 280px; background: repeating-conic-gradient(#eee 0 25%, #fff 0 50%) 0 0/16px 16px;
  border: 1px solid var(--line); border-radius: 8px; padding: 8px; }
.ded-canvas svg { width: 100%; height: auto; display: block; }
.ded-canvas text { cursor: move; }
.ded-canvas .ded-sel { outline: 2px dashed #c0392b; }
.ded-side { flex: 0 0 280px; }
.ded-side label { display: block; margin: 6px 0; }
