[hidden] { display: none !important; }
@import url("/static/fonts.css");
:root {
  --ink: #111111;
  --ink-2: #3a3a3a;
  --muted: #7a7a7a;
  --line: #e6e6e6;
  --line-2: #d4d4d4;
  --bg: #f6f6f4;
  --card: #ffffff;
  --ok: #1f7a4d;
  --ok-bg: #e8f4ee;
  --warn: #9a5b00;
  --warn-bg: #fdf3e2;
  --bad: #b42318;
  --bad-bg: #fdecea;
  --radius: 10px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--ink); background: var(--bg);
  font-feature-settings: "cv11", "tnum";
}
a { color: inherit; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.r { text-align: right; }
.nowrap { white-space: nowrap; }

/* layout */
.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.shell > * { min-width: 0; }
.side { background: var(--ink); color: #fff; padding: 22px 16px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; }
.logo { display: flex; align-items: center; gap: 10px; padding: 0 8px 22px; text-decoration: none; }
.logo .mk { width: 32px; height: 32px; background: #fff; color: var(--ink); display: grid; place-items: center; font-weight: 800; font-size: 13px; letter-spacing: -0.04em; }
.logo b { display: block; font-size: 14px; letter-spacing: 0.02em; }
.logo small { display: block; color: #9a9a9a; font-size: 11px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 7px; color: #cfcfcf; text-decoration: none; font-weight: 500; }
.nav a:hover { background: #222; color: #fff; }
.nav a.on { background: #fff; color: var(--ink); }
.nav svg { width: 17px; height: 17px; flex: none; }
.side .spacer { flex: 1; }
.side .who { color: #9a9a9a; font-size: 12px; padding: 0 10px 8px; }
.side form button { width: 100%; text-align: left; background: none; border: 1px solid #333; color: #cfcfcf; padding: 8px 10px; border-radius: 7px; cursor: pointer; font: inherit; }
.side form button:hover { border-color: #666; color: #fff; }

.main { padding: 28px 36px 60px; max-width: 1240px; width: 100%; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.head h1 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.head .sub { color: var(--muted); margin-top: 2px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.card .ch { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.card .ch h2 { margin: 0; font-size: 14px; font-weight: 600; }
.card .cb { padding: 18px; }
.grid { display: grid; gap: 16px; }
.grid > *, .card { min-width: 0; }
.g2 { grid-template-columns: 1fr 1fr; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.lookup-box { background: #f7f7f5; border: 1px dashed var(--line-2); border-radius: 8px; padding: 14px 14px 10px; margin-bottom: 16px; }
.lookup-box .field { margin-bottom: 6px; }
.hint.ok { color: var(--ok); }
.hint.bad { color: var(--bad); }
.split { grid-template-columns: 1fr 300px; align-items: start; }
.stack > * + * { margin-top: 16px; }

.stat { padding: 16px 18px; }
.stat .k { font-size: 12px; color: var(--muted); font-weight: 500; }
.stat .v { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin-top: 4px; }
.stat .s { font-size: 12px; color: var(--muted); margin-top: 2px; }
.stat.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.stat.dark .k, .stat.dark .s { color: #a8a8a8; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); font: inherit; font-weight: 500; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--ink); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.primary:hover { background: #2a2a2a; }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; }
.btn.danger { color: var(--bad); }
.btn.danger:hover { border-color: var(--bad); }
.btn svg { width: 15px; height: 15px; }
form.inline { display: inline; margin: 0; }

/* tables */
table.t { width: 100%; border-collapse: collapse; }
table.t th { text-align: left; font-size: 11.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #fbfbfa; }
table.t td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t tr.link { cursor: pointer; }
table.t tr.link:hover td { background: #fafaf8; }
table.t td.strong a { font-weight: 600; text-decoration: none; }
table.t tfoot td { font-weight: 600; background: #fbfbfa; border-top: 1px solid var(--line); }
.tw { overflow-x: auto; }

/* pills */
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid transparent; }
.pill.draft { background: #f0f0ee; color: var(--ink-2); }
.pill.issued { background: #eef2fb; color: #2948a3; }
.pill.paid { background: var(--ok-bg); color: var(--ok); }
.pill.cancelled { background: #f3f3f3; color: #999; text-decoration: line-through; }
.pill.overdue { background: var(--bad-bg); color: var(--bad); }

/* tracker */
.nbadge { margin-left: auto; background: #f04438; color: #fff; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 7px; }
.tabs { display: flex; gap: 4px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 8px 14px; text-decoration: none; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.on { color: var(--ink); border-bottom-color: var(--ink); }
table.sum td, table.sum th { padding: 9px 14px; }
table.sum tr.sec td { background: #fbfbfa; font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
table.sum tr.tot td { font-weight: 700; border-top: 1px solid var(--ink); }
table.sum td.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.neg { color: var(--bad); }
tr.rev td { background: #fff8eb; }
.kind { font-size: 12px; font-weight: 600; display: inline-block; min-width: 150px; }
.kind.none { color: var(--bad); }
.desc { font-size: 12px; color: var(--muted); white-space: pre-line; max-width: 420px; }
.amt-in { color: var(--ok); }
.ok-dot::before { content: "✓ "; color: var(--ok); }

/* partner badges */
.bars .col { gap: 2px; }
.bars .col { display: flex; flex-direction: column-reverse; height: 100%; justify-content: flex-start; }
.bars .col .seg { width: 100%; min-height: 0; }
.bars .col .seg.alex { background: #c2560c; }
.bars .col .seg.deniss { background: #6a3fd4; }
.bars .col .seg:last-child { border-radius: 3px 3px 0 0; }
.export { display: flex; gap: 6px; }

/* documents */
.pill.wait { background: #fdf1dc; color: #9a5b00; }
.nbadge.warn { background: #e08a00; }
.warn-text { color: #9a5b00; }

.ok-mark { color: var(--ok); font-weight: 600; font-size: 12.5px; }
.miss-mark { color: var(--bad); font-weight: 600; font-size: 12.5px; }
.linkbtn { all: unset; cursor: pointer; font-size: 12px; color: var(--muted); text-decoration: underline; text-underline-offset: 2px; display: block; text-align: right; margin-top: 4px; }
.linkbtn:hover { color: var(--ink); }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.thumbs img { width: 120px; height: 120px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
fieldset[disabled] input, fieldset[disabled] select { background: #f6f6f4; }

/* copy */
.copy-val { all: unset; cursor: copy; font-weight: 600; border-radius: 6px; padding: 2px 6px; margin: -2px -6px; }
.copy-val:hover { background: #f0f0ee; }
.copy-val:focus-visible { outline: 2px solid var(--ink); }
.copy-table td { padding: 10px 16px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600; font-size: 13px; z-index: 50; max-width: 90vw; }

/* forms */
label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 5px; }
.field { margin-bottom: 14px; }
.hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
input[type=text], input[type=password], input[type=date], input[type=number], input[type=email], select, textarea {
  width: 100%; height: 38px; padding: 0 11px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; font: inherit; color: var(--ink);
}
textarea { height: auto; min-height: 70px; padding: 9px 11px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--ink); outline-offset: -1px; border-color: var(--ink); }
input.r { text-align: right; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.check input { width: 16px; height: 16px; }

.items-table td { padding: 6px 6px; border-bottom: 0; }
.items-table th { padding: 6px; }
.items-table td:first-child { padding-left: 0; }
.items-table .del { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 18px; line-height: 1; padding: 6px; }
.items-table .del:hover { color: var(--bad); }
.totals-box { margin-left: auto; width: 320px; }
.totals-box div { display: flex; justify-content: space-between; padding: 5px 0; }
.totals-box .grand { border-top: 1px solid var(--ink); margin-top: 6px; padding-top: 10px; font-weight: 700; font-size: 18px; }

.alert { padding: 11px 14px; border-radius: 8px; margin-bottom: 16px; font-weight: 500; }
.alert.info { background: #fff; border: 1px solid var(--line-2); }
.alert.err { background: var(--bad-bg); color: var(--bad); border: 1px solid #f6c9c4; }
.alert ul { margin: 4px 0 0; padding-left: 18px; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.filters select, .filters input { width: auto; height: 34px; }
.filters input[type=text] { min-width: 220px; }

.preview { width: 100%; height: 1120px; border: 0; background: #fff; display: block; }
.preview-wrap { background: #e9e9e6; padding: 24px; border-radius: var(--radius); }
.preview-wrap .paper { max-width: 800px; margin: 0 auto; box-shadow: 0 6px 30px rgba(0,0,0,.12); }

dl.kv { display: grid; grid-template-columns: 130px 1fr; gap: 8px 12px; margin: 0; }
dl.kv dt { color: var(--muted); }
dl.kv dd { margin: 0; font-weight: 500; }

.bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; align-items: end; height: 140px; }
.bars .b { background: var(--ink); border-radius: 3px 3px 0 0; min-height: 2px; position: relative; }
.bars .b:hover { background: #444; }
.bars-x { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; font-size: 11px; color: var(--muted); text-align: center; margin-top: 6px; }

.log { font-size: 12.5px; }
.log div { padding: 6px 0; border-bottom: 1px dashed var(--line); display: flex; gap: 10px; }
.log div:last-child { border: 0; }
.log .ts { color: var(--muted); white-space: nowrap; }

/* login */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: var(--ink); }
.auth .box { width: 100%; max-width: 380px; background: #fff; border-radius: 14px; padding: 32px; }
.auth .logo { padding: 0 0 22px; color: var(--ink); }
.auth .logo .mk { background: var(--ink); color: #fff; }
.auth h1 { font-size: 20px; margin: 0 0 4px; }
.auth p { color: var(--muted); margin: 0 0 20px; }
.auth .btn { width: 100%; justify-content: center; height: 42px; }
.qr { display: block; width: 200px; height: 200px; margin: 6px auto 12px; }
.secret { font-family: ui-monospace, Menlo, monospace; font-size: 12px; background: #f4f4f2; padding: 8px; border-radius: 6px; word-break: break-all; text-align: center; margin-bottom: 16px; }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 12px; }
  .side .logo { padding: 0 8px 0 0; }
  .nav { display: flex; flex-wrap: nowrap; gap: 2px; overflow-x: auto; width: 100%; order: 3; }
  .nav a { white-space: nowrap; }
  .side form { margin-left: auto; }
  .side form button { padding: 6px 10px; }
  .side .spacer, .side .who { display: none; }
  .main { padding: 18px 16px 40px; }
  .g2, .g3, .g4, .split { grid-template-columns: 1fr; }
  .totals-box { width: 100%; }
  .preview { height: 800px; }
  .items-table thead { display: none; }
  .items-table tr { display: grid; grid-template-columns: 64px 60px 1fr 1fr 32px; gap: 6px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
  .items-table td { padding: 0 !important; }
  .items-table td:first-child { grid-column: 1 / -1; }
}


/* ================= ILUMHOUSE: black & white ================= */
:root {
  --ink: #0a0a0a; --ink-2: #2e2e2e; --muted: #767676; --line: #e4e4e4; --line-2: #cfcfcf; --bg: #f5f5f5; --card: #fff;
  --ok: #0a0a0a; --ok-bg: #f0f0f0; --warn: #0a0a0a; --warn-bg: #f0f0f0; --bad: #0a0a0a; --bad-bg: #f0f0f0;
  --radius: 4px;
}
.btn, input[type=text], input[type=password], input[type=date], input[type=number], input[type=email], select, textarea { border-radius: 3px; }
.nav a, .side form button, .alert, .lookup-box { border-radius: 3px; }
table.t th, table.t tfoot td, table.t tr.link:hover td { background: #fafafa; }
.logo b { font-size: 15px; letter-spacing: 0.22em; font-weight: 800; }
.logo small { letter-spacing: 0.3em; font-size: 10px; margin-top: 2px; }
.side .who { line-height: 1.35; color: #fff; font-weight: 600; }
.side .who span { color: #9a9a9a; font-weight: 400; }
.side-link { color: #9a9a9a; font-size: 12px; padding: 0 10px 10px; text-decoration: none; }
.side-link:hover { color: #fff; }
.auth .box { border-radius: 4px; }
.auth .logo b { font-size: 18px; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; }
.c { text-align: center; }
.crumb { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.crumb a { color: inherit; }
.late { font-weight: 700; }
.btn.danger { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.alert.err { background: #fff; color: var(--ink); border: 1.5px solid var(--ink); }
.hint.bad { font-weight: 600; color: var(--ink); }
.hint.ok { font-weight: 600; }

/* pills: meaning carried by fill / outline / strike, not colour */
.pill { border-radius: 2px; padding: 2px 8px; font-size: 11.5px; letter-spacing: .02em; border: 1px solid var(--ink); background: #fff; color: var(--ink); white-space: nowrap; }
.pill.draft, .pill.st-new.none { border-style: dashed; border-color: #9a9a9a; color: #555; background: #fff; }
.pill.issued { background: #fff; color: var(--ink); }
.pill.paid { background: var(--ink); color: #fff; }
.pill.cancelled { border-color: #c4c4c4; color: #9a9a9a; background: #fff; text-decoration: line-through; }
.pill.overdue { background: #fff; color: var(--ink); border-width: 2px; padding: 1px 7px; }
.pill.overdue::before { content: "! "; font-weight: 800; }
.pill.wait { border-style: dashed; background: #fff; color: var(--ink); }
.pill.st-new { background: var(--ink); color: #fff; }
.pill.st-contacted, .pill.st-qualified, .pill.st-offer, .pill.st-negotiation { background: #fff; }
.pill.st-qualified, .pill.st-offer { background: #ececec; }
.pill.st-negotiation { background: #d6d6d6; }
.pill.st-won { background: var(--ink); color: #fff; }
.pill.st-won::before { content: "✓ "; }
.pill.st-lost { border-color: #c4c4c4; color: #9a9a9a; text-decoration: line-through; }
.pill.of-draft { border-style: dashed; border-color: #9a9a9a; color: #555; }
.pill.of-accepted { background: var(--ink); color: #fff; }
.pill.of-declined { border-color: #c4c4c4; color: #9a9a9a; text-decoration: line-through; }
.nbadge { background: #fff; color: var(--ink); border-radius: 2px; }
.nav a.on .nbadge { background: var(--ink); color: #fff; }
tr.off td { opacity: .45; }

/* overview pipeline */
.pipe { display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--line); background: #fff; border-radius: var(--radius); overflow: hidden; }
.pipe-step { padding: 16px 18px; text-decoration: none; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.pipe-step:last-child { border-right: 0; }
.pipe-step:hover { background: #fafafa; }
.pipe-step .n { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.pipe-step .k { font-size: 12px; color: var(--muted); }
.pipe-step.dark { background: var(--ink); color: #fff; }
.pipe-step.dark .k { color: #a8a8a8; }
.rowlink { display: flex; justify-content: space-between; gap: 12px; padding: 11px 18px; border-bottom: 1px solid var(--line); text-decoration: none; }
.rowlink:last-child { border-bottom: 0; }
.rowlink:hover { background: #fafafa; }
.rowlink small { display: block; color: var(--muted); font-size: 12.5px; }

/* follow-ups */
.task { display: flex; align-items: flex-start; gap: 10px; padding: 10px 18px; border-bottom: 1px solid var(--line); }
.task .body { flex: 1; min-width: 0; text-decoration: none; display: flex; flex-direction: column; }
.task .body b { font-size: 13px; }
.task .when { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.task.late .when { color: var(--ink); font-weight: 700; }
.task.done .body { text-decoration: line-through; color: var(--muted); }
.tick { width: 18px; height: 18px; border: 1.5px solid var(--ink); background: #fff; border-radius: 2px; cursor: pointer; padding: 0; margin-top: 1px; display: block; }
.tick:hover, .tick.on { background: var(--ink); }
.tick.on::after, .tick:hover::after { content: "✓"; color: #fff; font-size: 12px; line-height: 15px; display: block; text-align: center; }
.x { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 17px; line-height: 1; padding: 0 2px; }
.x:hover { color: var(--ink); }

/* lead card */
.split.wide { grid-template-columns: 1fr 360px; }
.stages { display: flex; overflow-x: auto; }
.stages form { flex: 1; display: flex; }
.stage { flex: 1; border: 0; border-right: 1px solid var(--line); background: #fff; padding: 12px 10px; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; }
.stages form:last-child .stage { border-right: 0; }
.stage:hover { color: var(--ink); background: #fafafa; }
.stage.on { background: var(--ink); color: #fff; cursor: default; }
.msg { white-space: pre-wrap; }
.composer textarea { margin-bottom: 10px; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 3px; overflow: hidden; flex-wrap: wrap; }
.seg label { margin: 0; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 6px 11px; font-size: 12.5px; font-weight: 600; color: var(--muted); border-right: 1px solid var(--line-2); }
.seg label:last-child span { border-right: 0; }
.seg input:checked + span { background: var(--ink); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: -2px; }
.timeline { border-top: 1px solid var(--line); }
.ev { padding: 12px 18px; border-bottom: 1px solid var(--line); }
.ev:last-child { border-bottom: 0; }
.evh { display: flex; gap: 10px; align-items: baseline; font-size: 12px; color: var(--muted); }
.evh b { color: var(--ink); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.evh .num { margin-left: auto; }
.evb { margin-top: 4px; white-space: pre-wrap; }
.ev.sys { padding: 7px 18px; background: #fafafa; }
.ev.sys .evh b { color: var(--muted); font-weight: 600; }
.ev.sys .evb { display: inline; color: var(--ink-2); font-size: 12.5px; }
.offer { padding: 12px 18px; border-bottom: 1px solid var(--line); }
.offer .oh { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2px; }
.file { display: inline-block; margin-top: 6px; font-size: 12.5px; text-underline-offset: 3px; word-break: break-all; }
.file::before { content: "↓ "; }
details.add summary { list-style: none; display: inline-flex; }
details.add summary::-webkit-details-marker { display: none; }
details.add[open] summary { display: none; }
input[type=file] { font: inherit; font-size: 12.5px; max-width: 100%; }

/* pipeline board */
.board { display: grid; grid-template-columns: repeat(7, minmax(140px, 1fr)); gap: 10px; overflow-x: auto; align-items: start; padding-bottom: 8px; }
.col { background: #ececec; border-radius: var(--radius); padding: 8px; min-height: 120px; }
.col header { display: flex; justify-content: space-between; padding: 4px 6px 8px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.col header span { color: var(--muted); }
.colsum { padding: 0 6px 8px; font-size: 12px; color: var(--muted); margin-top: -4px; }
.kcard { display: flex; flex-direction: column; gap: 3px; background: #fff; border: 1px solid var(--line); border-radius: 3px; padding: 10px; margin-bottom: 6px; text-decoration: none; font-size: 13px; }
.kcard:hover { border-color: var(--ink); }
.kcard.late { border-left: 3px solid var(--ink); }
.kcard span { color: var(--ink-2); overflow-wrap: anywhere; }
.kcard .meta { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); margin-top: 4px; }
.kcard .meta span { color: inherit; }
.kcard .val { font-weight: 600; font-size: 12.5px; color: var(--ink); }
.kempty { text-align: center; color: #b0b0b0; padding: 14px 0; }

/* permission matrix */
.matrix th.c, .matrix td.c { text-align: center; width: 120px; }
.matrix input { width: 16px; height: 16px; accent-color: #0a0a0a; }
input[type=checkbox], input[type=radio] { accent-color: #0a0a0a; }

.empty { max-width: 460px; margin: 12vh auto 0; text-align: center; }
.empty .code { font-size: 64px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.empty h1 { margin: 8px 0 6px; font-size: 22px; }
.empty p { margin: 0 0 18px; }
.spin { width: 12px; height: 12px; border: 2px solid #bbb; border-top-color: var(--ink); border-radius: 50%; display: inline-block; animation: sp .7s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }

@media (max-width: 1100px) { .split.wide { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .pipe { grid-template-columns: repeat(2, 1fr); }
  .pipe-step { border-bottom: 1px solid var(--line); }
  .side-link { display: none; }
  .board { grid-template-columns: repeat(7, 240px); }
}

/* ================= ILUMHOUSE identity =================
   One family with ilumhouse.com: Inter with tight tracking, warm paper, soft large corners, pill buttons.
   Black and white only. The logo's diagonal slats are the single decorative device (sign-in, "won", empty states). */
:root {
  --ink: #1d1d1f; --ink-2: #424245; --muted: #6e6e73; --faint: #a1a1a6;
  --line: #e3e3de; --line-2: #d2d2cc; --bg: #f5f5f2; --paper-2: #ecede7; --card: #fff;
  --ok: #1d1d1f; --warn: #1d1d1f; --bad: #1d1d1f; --ok-bg: #f5f5f2; --warn-bg: #f5f5f2; --bad-bg: #f5f5f2;
  --radius: 18px; --r-sm: 12px;
  --slats: repeating-linear-gradient(-58deg, currentColor 0 3px, transparent 3px 9px);
}
html { -webkit-font-smoothing: antialiased; }
body { letter-spacing: -0.011em; font-size: 14.5px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* shell: a floating black rail */
.shell { grid-template-columns: 264px 1fr; }
.side { margin: 12px 0 12px 12px; height: calc(100vh - 24px); top: 12px; border-radius: 24px; background: var(--ink); padding: 26px 14px 16px; }
.logo { flex-direction: column; align-items: flex-start; gap: 8px; padding: 0 12px 26px; }
.logo img { display: block; width: 150px; height: auto; }
.logo small { color: var(--faint); font-size: 11px; letter-spacing: 0.02em; font-weight: 500; margin: 0; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { border-radius: 12px; padding: 10px 12px; color: #c7c7cc; font-weight: 500; }
.nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav a.on { background: #fff; color: var(--ink); font-weight: 600; }
.nbadge { border-radius: 999px; padding: 1px 8px; background: #fff; color: var(--ink); }
.nav a.on .nbadge { background: var(--ink); color: #fff; }
.side .who { padding: 0 12px 6px; }
.side-link { padding: 0 12px 12px; }
.side form button { border-radius: 999px; border-color: rgba(255,255,255,.22); text-align: center; padding: 9px 12px; }
.side form button:hover { border-color: #fff; }
.main { padding: 40px 44px 72px; max-width: 1320px; }

/* type */
.head { margin-bottom: 28px; align-items: center; }
.head h1 { font-size: 34px; font-weight: 600; letter-spacing: -0.035em; line-height: 1.1; }
.head .sub { margin-top: 6px; font-size: 15px; }
.card .ch { padding: 18px 22px 14px; border-bottom: 0; }
.card .ch h2 { font-size: 16px; font-weight: 600; letter-spacing: -0.02em; }
.card .cb { padding: 4px 22px 22px; }
.card .ch + .tw, .card .ch + .timeline { border-top: 1px solid var(--line); }
label { font-weight: 500; color: var(--muted); }

/* surfaces */
.card { border: 0; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.btn { border-radius: 999px; height: 40px; padding: 0 18px; border-color: var(--line-2); transition: transform .08s; }
.btn:active { transform: scale(.98); }
.btn.sm { height: 32px; padding: 0 14px; }
.btn.primary { background: var(--ink); border-color: var(--ink); }
.btn.primary:hover { background: #000; }
input[type=text], input[type=password], input[type=date], input[type=number], input[type=email], select, textarea { border-radius: var(--r-sm); height: 42px; padding: 0 13px; border-color: var(--line-2); }
textarea { padding: 11px 13px; height: auto; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--ink); outline-offset: -1px; }
.filters { padding: 14px 18px; gap: 8px; border-bottom-color: var(--line); }
.filters select, .filters input[type=text] { height: 36px; border-radius: 999px; padding: 0 14px; }
.alert { border-radius: var(--r-sm); }
.alert.info { background: var(--ink); color: #fff; border: 0; }
.lookup-box { border-radius: var(--r-sm); background: var(--bg); border: 0; }

/* tables: quiet headers in sentence case */
table.t th { text-transform: none; letter-spacing: 0; font-size: 12.5px; font-weight: 500; color: var(--muted); background: #fff; padding: 12px 18px; }
table.t td { padding: 14px 18px; border-bottom-color: var(--line); }
table.t tr.link:hover td { background: var(--bg); }
table.t td.strong a { font-weight: 600; }

/* pills */
.pill { border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 500; letter-spacing: 0; border-color: var(--line-2); }
.pill.paid, .pill.st-new, .pill.st-won, .pill.of-accepted { background: var(--ink); border-color: var(--ink); color: #fff; }
.pill.st-qualified, .pill.st-offer { background: var(--bg); }
.pill.st-negotiation { background: var(--paper-2); }
.pill.issued, .pill.st-contacted { border-color: var(--ink); }
.pill.overdue { border-color: var(--ink); }
.tabs { border-bottom: 0; gap: 4px; background: var(--paper-2); display: inline-flex; padding: 4px; border-radius: 999px; margin-bottom: 20px; }
.tabs a { border: 0; margin: 0; padding: 7px 18px; border-radius: 999px; font-weight: 500; }
.tabs a.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }

/* overview */
.pipe { border: 0; background: none; gap: 10px; overflow: visible; }
.pipe-step { border: 0; background: #fff; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line); padding: 20px 22px 18px; gap: 6px; }
.pipe-step:hover { background: #fff; box-shadow: 0 0 0 1.5px var(--ink); }
.pipe-step .n { font-size: 40px; font-weight: 600; letter-spacing: -0.045em; line-height: 1; }
.pipe-step .k { font-size: 13px; }
.pipe-step.dark { background: var(--ink); color: #fff; box-shadow: none; position: relative; overflow: hidden; }
.pipe-step.dark::after { content: ""; position: absolute; inset: 0 0 0 68%; color: rgba(255,255,255,.16); background: var(--slats); }
.pipe-step.dark > * { position: relative; z-index: 1; }
.stat { padding: 20px 22px; }
.stat .k { font-size: 13px; }
.stat .v { font-size: 28px; font-weight: 600; letter-spacing: -0.035em; }
.stat.dark { background: var(--ink); box-shadow: none; }
.rowlink { padding: 13px 22px; }
.rowlink:hover, .task:hover { background: var(--bg); }
.task { padding: 13px 22px; }
.tick { border-radius: 999px; width: 20px; height: 20px; }
.tick.on::after, .tick:hover::after { line-height: 17px; }

/* lead card */
.stages { padding: 6px; gap: 4px; }
.stage { border: 0 !important; border-radius: 999px; padding: 10px 12px; font-weight: 500; }
.stage:hover { background: var(--bg); }
.stage.on { background: var(--ink); }
.seg { border-radius: 999px; border-color: var(--line-2); padding: 3px; gap: 2px; }
.seg span { border: 0 !important; border-radius: 999px; padding: 6px 13px; font-weight: 500; }
.timeline { border-top-color: var(--line); }
.ev { padding: 14px 22px; }
.ev.sys { padding: 9px 22px; background: var(--bg); }
.evh b { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 600; }
.offer { padding: 14px 22px; }
dl.kv { grid-template-columns: 96px 1fr; gap: 10px 12px; }

/* pipeline board */
.col { background: var(--paper-2); border-radius: var(--radius); padding: 10px; }
.col header { text-transform: none; letter-spacing: -0.01em; font-size: 13.5px; padding: 6px 8px 10px; }
.kcard { border: 0; border-radius: var(--r-sm); padding: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.kcard:hover { box-shadow: 0 0 0 1.5px var(--ink); }
.kcard.late { border-left: 0; box-shadow: inset 4px 0 0 var(--ink), 0 1px 2px rgba(0,0,0,.06); }
.kempty { height: 44px; border-radius: var(--r-sm); border: 1.5px dashed var(--line-2); font-size: 0; padding: 0; }

/* sign-in: the mark, large, on black */
.auth { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100vh; padding: 12px; gap: 12px; background: var(--bg); place-items: stretch; }
.auth-brand { background: var(--ink); color: #fff; border-radius: 28px; position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 44px; }
.auth-mark { position: absolute; right: -6%; top: 50%; transform: translateY(-54%); height: 86%; width: auto; opacity: .13; }
.auth-brand::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 14px; color: rgba(255,255,255,.5); background: var(--slats); }
.auth-line { position: relative; }
.auth-line img { display: block; width: 190px; height: auto; }
.auth-line p { margin: 22px 0 0; font-size: 22px; line-height: 1.25; letter-spacing: -0.025em; font-weight: 500; max-width: 15em; color: #fff; }
.auth-form { display: grid; place-items: center; padding: 24px; }
.auth .box { background: none; padding: 0; max-width: 360px; border-radius: 0; }
.auth-logo { display: none; width: 170px; height: auto; margin-bottom: 28px; }
.auth h1 { font-size: 30px; font-weight: 600; letter-spacing: -0.035em; margin: 0 0 6px; }
.auth p { margin: 0 0 26px; font-size: 15px; }
.auth .btn { height: 46px; }
.auth input.code { font-size: 22px; letter-spacing: .3em; text-align: center; height: 54px; }
.auth.solo { grid-template-columns: 1fr; place-items: center; }
.auth.solo .box { background: #fff; padding: 36px; border-radius: 28px; box-shadow: 0 0 0 1px var(--line); max-width: 420px; }
.auth.solo .auth-logo { display: block; }
.qr { border-radius: var(--r-sm); }
.secret { border-radius: var(--r-sm); background: var(--bg); }

.empty .code { font-size: 96px; font-weight: 600; letter-spacing: -0.06em; }
.preview-wrap { border-radius: var(--radius); background: var(--paper-2); }
.preview-wrap .paper { border-radius: 6px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.10); }
.toast { border-radius: 999px; padding: 10px 18px; }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { margin: 8px; height: auto; border-radius: 20px; padding: 12px; position: static; flex-direction: row; }
  .logo { flex-direction: row; align-items: center; padding: 4px 8px; }
  .logo img { width: 120px; }
  .logo small { display: none; }
  .nav { flex-direction: row; }
  .side form button { width: auto; padding: 7px 14px; }
  .main { padding: 20px 16px 48px; }
  .head h1 { font-size: 27px; }
  .pipe { grid-template-columns: repeat(2, 1fr); }
  .pipe-step { border-bottom: 0; }
  .pipe-step .n { font-size: 32px; }
  .auth { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth-logo { display: block; }
  .stages { flex-wrap: nowrap; }
}
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* ---- navigation groups */
.nav-h { margin: 18px 12px 6px; font-size: 11.5px; font-weight: 500; color: #8e8e93; letter-spacing: 0.01em; }

/* ---- active clients and project rows */
.aclient { display: grid; grid-template-columns: 250px 1fr; gap: 8px 24px; padding: 18px 22px; border-top: 1px solid var(--line); align-items: start; }
.aclient .who { display: flex; flex-direction: column; gap: 2px; padding-top: 8px; min-width: 0; }
.aclient .name { font-weight: 600; font-size: 16px; letter-spacing: -0.02em; text-decoration: none; }
.aclient .name:hover { text-decoration: underline; text-underline-offset: 3px; }
.aclient .who .muted { font-size: 13px; overflow-wrap: anywhere; }
.plist { display: flex; flex-direction: column; gap: 6px; }
.prow { display: grid; grid-template-columns: 1fr 150px 110px 130px; gap: 14px; align-items: center; padding: 10px 14px; border-radius: var(--r-sm); background: var(--bg); text-decoration: none; }
a.prow:hover { box-shadow: 0 0 0 1.5px var(--ink); }
.prow .t { display: flex; flex-direction: column; min-width: 0; }
.prow .t small { color: var(--muted); font-size: 12.5px; }
.prow .docs { font-size: 12.5px; }
.prow .pill { justify-self: end; }
.prow.none { display: flex; justify-content: space-between; background: none; border: 1.5px dashed var(--line-2); }
.plist.flush { gap: 0; }
.plist.flush .prow { border-radius: 0; background: #fff; border-top: 1px solid var(--line); padding: 14px 22px; }
.plist.flush a.prow:hover { background: var(--bg); box-shadow: none; }
.prog { display: inline-flex; gap: 3px; }
.prog i { width: 10px; height: 10px; border-radius: 3px; background: var(--line); display: block; }
.prog i.on { background: var(--ink); }

/* ---- project stage track */
.track { display: flex; padding: 8px; gap: 4px; overflow-x: auto; }
.track form { flex: 1; display: flex; }
.tstep { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; border: 0; background: none; border-radius: 12px; padding: 12px 12px 12px; font: inherit; font-size: 13px; font-weight: 500; color: var(--muted); cursor: pointer; white-space: nowrap; text-align: left; }
.tstep i { font-style: normal; width: 26px; height: 26px; border-radius: 999px; display: grid; place-items: center; font-size: 12px; font-weight: 600; background: var(--bg); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-2); }
.tstep:hover:not(:disabled) { background: var(--bg); color: var(--ink); }
.tstep.done { color: var(--ink); }
.tstep.done i { background: var(--ink); color: #fff; box-shadow: none; }
.tstep.on { background: var(--ink); color: #fff; cursor: default; }
.tstep.on i { background: #fff; color: var(--ink); box-shadow: none; }
.tstep:disabled:not(.on) { cursor: default; }

/* ---- drawings with approval */
.docrow { display: grid; grid-template-columns: 1fr auto auto; gap: 8px 16px; align-items: center; padding: 14px 22px; border-top: 1px solid var(--line); }
.dmain { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dname { font-weight: 600; text-underline-offset: 3px; overflow-wrap: anywhere; }
.dmain .muted { font-size: 12.5px; overflow-wrap: anywhere; }
.dnote { font-size: 13px; background: var(--bg); border-radius: 8px; padding: 6px 10px; margin-top: 4px; }
.dstate { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.dact summary { list-style: none; }
.dact summary::-webkit-details-marker { display: none; }
.dact[open] { grid-column: 1 / -1; }
.dact[open] summary { display: none; }
.dact form { display: flex; flex-direction: column; gap: 8px; background: var(--bg); border-radius: var(--r-sm); padding: 12px; }
.upload { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; border-top: 1px solid var(--line); padding-top: 16px !important; }
.upload select, .upload input[type=text] { width: auto; height: 36px; border-radius: 999px; }
.upload input[type=text] { flex: 1; min-width: 180px; }

/* ---- material selection */
fieldset.opt { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 16px 22px 18px; min-width: 0; }
fieldset.opt legend { float: left; width: 100%; padding: 0; margin-bottom: 10px; font-weight: 600; font-size: 14px; }
.chips { clear: both; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { margin: 0; cursor: pointer; }
.chip input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
.chip > span { display: flex; align-items: center; gap: 9px; padding: 7px 14px 7px 8px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); background: #fff; }
.chip i { width: 24px; height: 24px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.14); flex: none; }
.chip b { font-weight: 500; font-size: 13.5px; color: var(--ink); }
.chip small { font-size: 12px; color: var(--muted); }
.chip input:checked + span { box-shadow: inset 0 0 0 2px var(--ink); background: var(--bg); }
.chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.chip.other > span { padding-left: 14px; }
.chip.other input[type=text] { height: 26px; width: 150px; border-radius: 8px; padding: 0 8px; font-size: 13px; }
.optnote { margin-top: 10px; height: 34px !important; font-size: 13px; max-width: 520px; }
.extra { display: grid; grid-template-columns: 20px 1fr auto; gap: 12px; align-items: start; padding: 14px 22px; border-top: 1px solid var(--line); margin: 0; cursor: pointer; font-weight: 400; color: var(--ink); }
.extra input { width: 18px; height: 18px; margin-top: 2px; }
.extra span b { display: block; font-weight: 600; }
.extra span small { color: var(--muted); font-size: 12.5px; }

#of-items td { vertical-align: top; }
#of-items textarea { margin-top: 6px; min-height: 0; font-size: 13px; }
#of-items .line-total { padding-top: 17px; }

@media (max-width: 900px) {
  .nav-h { display: none; }
  .aclient { grid-template-columns: 1fr; }
  .prow { grid-template-columns: 1fr auto; }
  .prow .docs, .prow .prog { display: none; }
  .docrow { grid-template-columns: 1fr; }
  .dstate { align-items: flex-start; }
  .tstep span { display: none; }
  .tstep.on span { display: inline; }
  #of-items tr { grid-template-columns: 56px 60px 1fr 1fr 32px; }
}

/* offer builder v2 */
.of2 .card .ch h2 { margin-right: auto; }
.of-house { display: grid; grid-template-columns: 260px 1fr; gap: 22px; align-items: start; }
.of-photo { aspect-ratio: 4 / 3; background: #efefec; border-radius: 6px; overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; }
.of-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.of-extra { display: grid; grid-template-columns: 20px 1fr 130px; gap: 12px; align-items: center; }
.of-extra label { display: flex; flex-direction: column; cursor: pointer; margin: 0; }
.of-extra small { color: var(--muted); font-size: 12.5px; }
.of-svc tr.off td:not(:first-child) { opacity: .45; }
.of-svc select { height: 34px; }
#of-items textarea { margin-top: 6px; min-height: 34px; }
@media (max-width: 860px) { .of-house { grid-template-columns: 1fr; } .of-extra { grid-template-columns: 20px 1fr 100px; } }
.of-extra input[type=text] { width: 100%; height: 34px; margin: 0; }
.of-extra { cursor: default; align-items: center; }
.of-side { display: grid; grid-template-columns: 1fr 300px; gap: 20px; align-items: start; }
.of-side .card .cb { padding-top: 16px; }
.of-next { border: 1.5px solid var(--ink); }
.vlist a { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 13px; }
.vlist a.on { font-weight: 700; }
@media (max-width: 1100px) { .of-side { grid-template-columns: 1fr; } }
.pill.ct-draft { border-style: dashed; border-color: #9a9a9a; color: #555; background: #fff; }
.pill.ct-signed { background: var(--ink); border-color: var(--ink); color: #fff; }
.pill.ct-cancelled { border-color: #c4c4c4; color: #9a9a9a; text-decoration: line-through; background: #fff; }
.of-svc input { padding-left: 6px; padding-right: 6px; } #of-lang span { padding: 6px 9px; }
.of-next .btn { white-space: normal; height: auto; min-height: 38px; text-align: center; justify-content: center; }

/* type-ahead */
.ac-wrap { position: relative; }
.ac-list { position: absolute; z-index: 60; display: none; background: #fff; border: 1px solid var(--line-2); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.12); max-height: 340px; overflow-y: auto; padding: 4px; }
.ac-item { padding: 8px 10px; border-radius: 7px; cursor: pointer; position: relative; }
.ac-item.on, .ac-item:hover { background: #f1f1ee; }
.ac-l { font-size: 13.5px; color: var(--ink); white-space: pre-line; line-height: 1.35; padding-right: 64px; }
.ac-s { font-size: 12px; color: var(--muted); margin-top: 2px; }
.ac-tag { position: absolute; right: 10px; top: 9px; font-size: 10.5px; color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 1px 7px; }
.seg-btn { display: inline-flex; }
.seg-btn button { border: 0; background: none; border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 12.5px; font-weight: 500; color: var(--muted); cursor: pointer; }
.seg-btn button.on { background: var(--ink); color: #fff; }
.seg-btn button:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.items-table textarea[name=item_desc] { resize: none; min-height: 38px; line-height: 1.4; padding-top: 9px; padding-bottom: 8px; overflow: hidden; }
.lk-row .btn { height: 40px; }
/* website request on the lead page */
.rq { overflow: hidden; }
.rq-head { display: grid; grid-template-columns: 168px 1fr auto; gap: 20px; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.rq-head:not(:has(.rq-photo)) { grid-template-columns: 1fr auto; }
.rq-photo { width: 168px; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: #efefec; }
.rq-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rq-form { font-size: 12px; color: var(--muted); }
.rq-model { font-size: 24px; font-weight: 600; letter-spacing: -.01em; margin: 2px 0 2px; }
.rq-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.rq-pill { border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 10px; font-size: 12.5px; color: var(--ink); }
.rq-pill b { font-weight: 600; }
.rq-est { text-align: right; background: var(--ink); color: #fff; border-radius: 10px; padding: 12px 16px; }
.rq-est span { display: block; font-size: 11.5px; color: #b9b9bd; }
.rq-est b { font-size: 20px; font-weight: 600; }
.rq-msg { padding: 16px 22px; font-size: 14.5px; line-height: 1.5; border-bottom: 1px solid var(--line); background: #fafaf8; }
.rq-sec { padding: 16px 22px 4px; }
.rq-h { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.rq-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.rq-tile { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; }
.rq-tile small { display: block; font-size: 11.5px; color: var(--muted); }
.rq-tile b { display: block; font-size: 13.5px; font-weight: 500; line-height: 1.3; }
.rq-tile em { display: block; font-style: normal; font-size: 12px; color: var(--ink-2, #424245); }
.rq-sw { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); }
.rq-sw.none { background: repeating-linear-gradient(45deg, #f2f2ef, #f2f2ef 4px, #e6e6e2 4px, #e6e6e2 8px); }
.rq-chips, .rq-src { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rq-chips { margin-bottom: 12px; }
.rq-chip { border-radius: 999px; padding: 4px 11px; font-size: 12.5px; background: #f1f1ee; color: var(--ink); }
.rq-chip.on { background: var(--ink); color: #fff; }
.rq-src { padding: 14px 22px 18px; margin-top: 8px; border-top: 1px solid var(--line); }
.rq-link { margin-left: auto; font-size: 12.5px; }
@media (max-width: 760px) { .rq-head { grid-template-columns: 1fr; } .rq-photo { width: 100%; } .rq-est { text-align: left; } .rq-link { margin-left: 0; } }

/* offers page */
.of-house-cell { display: flex; align-items: center; gap: 10px; }
.of-house-cell img { width: 56px; height: 40px; object-fit: cover; border-radius: 6px; }
.pill.nolead { border-style: dashed; color: var(--muted); background: #fff; font-size: 11px; }
.pickbar { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 40; display: flex; gap: 10px; align-items: center;
  background: var(--ink); color: #fff; padding: 8px 8px 8px 18px; border-radius: 999px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.pickbar[hidden] { display: none; }
.pickbar .btn { background: #fff; color: var(--ink); border-color: #fff; }
.pickbar .btn.primary { background: #fff; }
.pickbar .btn.off { opacity: .45; pointer-events: none; }

/* compare */
.cmp-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.cmp { width: 100%; border-collapse: collapse; table-layout: fixed; min-width: calc(180px + var(--n) * 220px); }
.cmp th, .cmp td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.cmp th { padding-top: 16px; font-weight: 400; width: calc((100% - 180px) / var(--n)); }
.cmp th:first-child, .cmp td:first-child { width: 180px; color: var(--muted); position: sticky; left: 0; background: #fff; }
.cmp-photo { position: relative; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: #efefec; margin-bottom: 10px; }
.cmp-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cmp-low { position: absolute; left: 8px; top: 8px; background: var(--ink); color: #fff; font-size: 11.5px; padding: 3px 9px; border-radius: 999px; }
.cmp-model { font-size: 17px; font-weight: 600; }
.cmp-sub { font-size: 12.5px; margin-top: 2px; }
.cmp-total td { font-size: 15px; background: #fafaf8; }
.cmp-total td b { font-size: 18px; font-weight: 600; }
.cmp-total td:first-child { background: #fafaf8; }
.cmp-h td { font-size: 12px !important; font-weight: 600; color: var(--muted); background: #fafaf8 !important; padding-top: 14px; }
.cmp-plan { width: 100%; max-width: 240px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.cmp-line { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; padding: 2px 0; }
.cmp-line span:first-child { color: var(--ink); }

/* manager chip */
.agent { display: inline-flex; align-items: center; gap: 7px; padding: 3px 11px 3px 3px; border-radius: 999px; background: #f1f1ee;
  font-size: 13px; color: var(--ink); white-space: nowrap; max-width: 100%; }
.agent i { flex: none; width: 24px; height: 24px; border-radius: 50%; color: #fff; font-style: normal; font-size: 10.5px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; letter-spacing: .02em; }
.agent > span { overflow: hidden; text-overflow: ellipsis; }
.agent.sm { font-size: 11.5px; padding: 2px 8px 2px 2px; gap: 5px; }
.agent.sm i { width: 18px; height: 18px; font-size: 8.5px; }
.agent.none { background: #fff; border: 1px dashed #c9c9c4; color: var(--muted); padding: 3px 11px; }
.agent.none i { display: none; }

/* several offers at once */
.mo-svc summary { cursor: pointer; font-weight: 600; font-size: 14px; padding: 6px 0; }
.mo-bar { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.mo-cols { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 6px; align-items: start; }
.mo-col { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.mo-col .mo-photo { aspect-ratio: 16 / 9; background: #efefec; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; position: relative; }
.mo-col .mo-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mo-col .mo-n { position: absolute; left: 10px; top: 10px; background: var(--ink); color: #fff; border-radius: 999px; font-size: 12px; padding: 2px 10px; }
.mo-col .mo-x { position: absolute; right: 8px; top: 8px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); cursor: pointer; font-size: 16px; }
.mo-col .mo-body { padding: 14px; }
.mo-col .field { margin-bottom: 10px; }
.mo-col .grid { gap: 8px; }
.mo-col h4 { margin: 12px 0 6px; font-size: 12px; color: var(--muted); font-weight: 600; }
.mo-col select { height: 36px; font-size: 13px; }
.mo-fin label { font-size: 11.5px; }
.mo-ex { display: grid; grid-template-columns: 18px 1fr 92px; gap: 8px; align-items: center; font-size: 13px; padding: 3px 0; }
.mo-ex input[type=text] { height: 32px; font-size: 12.5px; }
.mo-total { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 10px; display: flex; justify-content: space-between; align-items: baseline; }
.mo-total b { font-size: 18px; font-weight: 600; }
.mo-tools { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }

/* services picker */
.svc-groups { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.svc-g { border: 1px solid var(--line-2); background: #fff; border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 13px; cursor: pointer; color: var(--ink); }
.svc-g:hover { border-color: var(--ink); }
.svc-g.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.svc-g.own { border-style: dashed; color: var(--muted); }
.svc-variants { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; margin-bottom: 12px; padding: 12px; background: #fafaf8; border-radius: 12px; }
.svc-v { text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 10px 12px; font: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 3px; }
.svc-v:hover { border-color: var(--ink); }
.svc-v b { font-weight: 500; font-size: 13px; line-height: 1.3; }
.svc-v small { color: var(--muted); font-size: 12px; }
.svc-v.own { border-style: dashed; }
.svc-find { margin-bottom: 12px; }
.svc-table td { vertical-align: middle; }
.svc-name { display: block; font-size: 13.5px; }
.svc-grp { display: block; font-size: 11.5px; color: var(--muted); }
.svc-save { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--muted); margin-top: 4px; }
.svc-save input { width: auto; height: auto; }
.svc-table select { height: 34px; }
.svc-empty { font-size: 13px; padding: 4px 0 2px; }
.flash-row td { background: #fff6d9; transition: background .3s; }
.mo-svc-h { font-weight: 600; font-size: 14px; margin: 6px 0 10px; }
.svc-table { table-layout: fixed; width: 100%; }
.svc-table td, .svc-table th { padding-left: 6px; padding-right: 6px; }
.svc-table input[type=text] { padding: 0 8px; width: 100%; }
.svc-table select { width: 100%; padding: 0 22px 0 8px; font-size: 12.5px; text-overflow: ellipsis; }
.svc-table td:first-child input[type=text] { padding: 0 10px; }
.svc-pick .svc-table select, .svc-pick .svc-table input[type=text] { width: 100% !important; min-width: 0; padding-left: 8px !important; }
.svc-pick .svc-table select { padding-right: 20px !important; background-position: right 6px center; }
.svc-pick .svc-table input[name=svc_qty], .svc-pick .svc-table input[name=svc_price] { padding-right: 8px !important; }
.svc-pick .svc-table td, .svc-pick .svc-table th { padding-left: 5px !important; padding-right: 5px !important; }
.svc-pick .svc-table td:first-child, .svc-pick .svc-table th:first-child { padding-left: 0 !important; }
.mo-svcs { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.mo-sv { border: 1px solid var(--line); border-radius: 10px; padding: 7px 9px; }
.mo-sv-n { display: flex; justify-content: space-between; gap: 6px; font-size: 12.5px; line-height: 1.3; }
.mo-sv-x { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 16px; line-height: 1; padding: 0 2px; }
.mo-sv-f { display: grid; grid-template-columns: 54px auto 1fr 84px; gap: 6px; align-items: center; margin-top: 6px; font-size: 12px; }
.mo-sv-f input, .mo-sv-f select { height: 30px !important; font-size: 12.5px; padding: 0 7px !important; min-width: 0; width: 100%; }
.mo-sv-f select { padding-right: 18px !important; }
.mo-svc-find { height: 34px; font-size: 12.5px; }
.mo-sv-rate { font-size: 11px; color: var(--muted); margin-top: 2px; }
.svc-status { background: #eef6ee; border: 1px solid #cfe3cf; color: #1f4d24; border-radius: 10px; padding: 9px 12px; font-size: 13px; margin-bottom: 10px; }
.svc-status.pop { animation: svcpop .5s ease; }
@keyframes svcpop { from { transform: translateY(-4px); opacity: .3; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .svc-status.pop { animation: none; } }
.svc-v.added { border-color: var(--ink); background: #f4f4f1; position: relative; }
.svc-v.added::after { content: "✓ added"; position: absolute; right: 10px; top: 9px; font-size: 11px; color: var(--ink); font-weight: 600; }
.svc-v.added b { padding-right: 52px; }
input.bad { border-color: #c0392b !important; background: #fdf2f1; }
.pickbar .btn.danger-pill { background: #fff; color: #b3261e; border-color: #fff; }

/* empty state inside a card (lists) */
.card > .empty { margin: 0 auto; padding: 56px 24px; max-width: 560px; text-align: center; color: var(--muted); }
.side-links { display: flex; gap: 2px; flex-wrap: wrap; } .side-links .side-link { padding-right: 4px; }

/* sidebar: never clip the footer on short screens — scroll inside the rail instead */
@media (min-width: 901px) {
  .side { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
  .side::-webkit-scrollbar { display: none; }
  .side > * { flex-shrink: 0; }
  .side .spacer { flex: 1 0 8px; }
}
@media (min-width: 901px) and (max-height: 820px) {
  .side { padding-top: 18px; }
  .logo { padding-bottom: 14px; }
  .nav a { padding: 7px 12px; }
  .nav-h { margin-top: 10px; }
}
