:root { --text:#111; --muted:#6b6b6b; --line:#e3e3e3; --soft:#f7f7f7; --bad:#a11d1d; --ok:#1a7f37; }
* { box-sizing: border-box; }
body { margin:0; background:#fff; color:var(--text); font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing:antialiased; }
.site-header { height:64px; padding:0 20px; display:flex; align-items:center; }
.brand { color:var(--text); text-decoration:none; font-size:22px; font-weight:700; letter-spacing:-0.04em; }
.supplier-main { width:min(100%, 680px); margin:0 auto; padding:12px 18px 60px; }
h1 { font-size:clamp(26px, 5vw, 34px); line-height:1.15; letter-spacing:-0.03em; margin:6px 0 10px; }
h2 { font-size:17px; margin:0 0 10px; }
.eyebrow { margin:0; font-size:13px; font-weight:600; color:var(--muted); }
.muted { color:var(--muted); }
.big { font-size:28px; font-weight:700; margin:4px 0; letter-spacing:-0.02em; }
.intro { margin:8px 0 18px; }
.card { border:1px solid var(--line); border-radius:16px; padding:18px; margin:14px 0; }
.card.soft { background:var(--soft); border-color:var(--soft); }
.reqs { display:grid; grid-template-columns:max-content 1fr; gap:6px 16px; margin:12px 0 0; }
.reqs dt { color:var(--muted); }
.reqs dd { margin:0; }
.field { display:flex; flex-direction:column; gap:6px; margin:0 0 14px; font-size:13px; font-weight:600; }
.field small { font-weight:400; }
input, textarea { width:100%; font:inherit; font-size:16px; font-weight:400; color:var(--text); border:1px solid var(--line); border-radius:12px; padding:11px 13px; background:#fff; }
input:focus, textarea:focus { outline:none; border-color:#999; }
.row { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.items-wrap { margin:0 0 14px; }
.items-wrap .label { display:block; font-size:13px; font-weight:600; margin-bottom:6px; }
.item { display:grid; grid-template-columns:1fr 110px auto; gap:8px; margin-bottom:8px; align-items:center; }
button { font:inherit; cursor:pointer; }
button.primary, button.secondary { height:46px; padding:0 22px; border-radius:999px; font-weight:600; font-size:15px; }
button.primary { background:#111; color:#fff; border:0; }
button.secondary { background:#fff; color:#111; border:1px solid var(--line); }
button.link { background:none; border:0; padding:4px 0; color:var(--muted); text-decoration:underline; font-size:13px; }
button:disabled { opacity:.5; cursor:default; }
.error { color:var(--bad); font-size:14px; min-height:0; margin:6px 0; }
.messages { margin:10px 0 12px; display:flex; flex-direction:column; gap:10px; }
.msg { padding:10px 14px; border-radius:14px; background:var(--soft); }
.msg-supplier { background:#fff; border:1px solid var(--line); }
.msg .who { font-size:12px; font-weight:700; }
.msg p { margin:4px 0 0; white-space:pre-wrap; }
.lines { list-style:none; padding:0; margin:10px 0; }
.lines li { display:flex; justify-content:space-between; gap:12px; padding:6px 0; border-bottom:1px solid var(--line); }
details.card summary { cursor:pointer; font-weight:600; }
details.card textarea { margin:12px 0 8px; }
.footer { margin-top:28px; font-size:13px; color:var(--muted); text-align:center; }
.footer a { color:inherit; }
.prose h2 { margin-top:26px; }
.prose p { line-height:1.6; }
@media (max-width: 560px) { .row { grid-template-columns:1fr; } .item { grid-template-columns:1fr 90px; } .item .link { grid-column:1 / -1; justify-self:start; } }

/* Outcome cards */
.card.connected { border:2px solid var(--ok); }
.card.chosen { border:2px solid var(--text); }
.lines a { color:inherit; }

/* Number + unit side by side */
.inline-fields { display:flex; gap:8px; }
.inline-fields input { flex:1; }
.inline-fields select { font:inherit; font-size:16px; border:1px solid var(--line); border-radius:12px; padding:10px 12px; background:#fff; }

/* Quote form v2: items, totals, sheets, calendar */
input[type="date"] { max-width:100%; box-sizing:border-box; }
.date-field { width:100%; text-align:left; font:inherit; font-size:16px; border:1px solid var(--line); border-radius:12px; padding:10px 12px; background:#fff; color:var(--text); cursor:pointer; box-sizing:border-box; }
.date-field.empty { color:var(--muted); }
.quote-lines { border:1px solid var(--line); border-radius:12px; overflow:hidden; margin:6px 0 10px; }
.quote-line { display:grid; grid-template-columns:1fr auto; gap:2px 12px; width:100%; text-align:left; font:inherit; background:#fff; border:0; border-bottom:1px solid var(--line); padding:12px; cursor:pointer; color:var(--text); }
.quote-line:hover { background:#fafafa; }
.quote-line .ql-desc { font-weight:600; }
.quote-line .ql-calc { grid-column:1; }
.quote-line .ql-amount { grid-row:1 / span 2; grid-column:2; align-self:center; font-weight:600; }
.add-line { display:block; width:100%; text-align:left; padding:12px; background:none; border:0; font:inherit; font-weight:600; cursor:pointer; color:var(--text); text-decoration:underline; }
.quote-totals { margin:0 0 18px; }
.qt-row { display:flex; justify-content:space-between; align-items:baseline; padding:4px 2px; font-size:15px; }
.qt-total { border-top:1px solid var(--line); margin-top:4px; padding-top:8px; font-size:20px; }
.sheet-overlay { position:fixed; inset:0; background:rgba(0,0,0,.35); display:flex; align-items:flex-end; justify-content:center; z-index:900; }
.sheet { background:#fff; width:min(100%, 520px); max-height:92vh; overflow:auto; border-radius:18px 18px 0 0; padding:18px 18px calc(18px + env(safe-area-inset-bottom)); box-shadow:0 -10px 40px rgba(0,0,0,.2); box-sizing:border-box; }
@media (min-width: 700px) { .sheet-overlay { align-items:center; } .sheet { border-radius:18px; } }
.sheet-head { margin-bottom:12px; font-size:17px; }
.sheet-actions { display:flex; flex-wrap:wrap; gap:10px; justify-content:flex-end; align-items:center; margin-top:14px; }
.link.danger { color:var(--bad); margin-right:auto; background:none; border:0; font:inherit; cursor:pointer; text-decoration:underline; }
.cal-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; font-size:18px; }
.cal-nav { font:inherit; font-size:24px; width:44px; height:44px; border:0; background:none; cursor:pointer; color:var(--text); }
.cal-grid { display:grid; grid-template-columns:repeat(7, 1fr); gap:4px; text-align:center; }
.cal-dow { font-size:12px; font-weight:600; color:var(--muted); padding:6px 0; }
.cal-day { font:inherit; aspect-ratio:1; border:0; border-radius:50%; background:none; cursor:pointer; color:var(--text); }
.cal-day.other { color:var(--muted); }
.cal-day:disabled { color:#c8c8c8; cursor:default; }
.cal-day.today { box-shadow:inset 0 0 0 2px var(--text); }
.cal-day.selected { background:var(--text); color:#fff; }
.cal-day:not(:disabled):hover { background:var(--soft); }
.cal-quick { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }

/* Form polish: drop-downs like inputs; panel near the top with margins */
.card select, .sheet select {
  -webkit-appearance:none; appearance:none; width:100%; box-sizing:border-box; min-height:46px;
  font:inherit; font-size:16px; color:var(--text);
  background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23666' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center;
  border:1px solid var(--line); border-radius:12px; padding:10px 38px 10px 12px;
}
.card select:focus, .sheet select:focus { outline:none; border-color:#999; }
.inline-fields select { width:auto; min-width:112px; }
.items-label { display:block; font-weight:600; margin:4px 0 6px; }

.sheet-overlay { align-items:flex-start; padding:12px; padding-top:calc(12px + env(safe-area-inset-top)); box-sizing:border-box; }
.sheet { width:min(100%, 520px); max-height:calc(100dvh - 24px); border-radius:18px; padding:0 18px 18px; }
.sheet-head { position:sticky; top:0; z-index:1; display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:8px; margin:0 0 10px; padding:14px 0 10px; background:#fff; border-bottom:1px solid var(--line); text-align:center; font-size:17px; }
.sheet-link { font:inherit; font-size:16px; background:none; border:0; padding:6px 2px; color:#1a6fb5; cursor:pointer; }
.sheet-link.strong { font-weight:700; }
.sheet-link-spacer { display:inline-block; width:56px; }
.sheet .row { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.sheet-actions { justify-content:space-between; }
@media (min-width: 700px) { .sheet-overlay { align-items:center; } }

/* Message customer card */
.msg-toggle { display:inline-flex; align-items:center; gap:10px; }
.msg-count { background:var(--soft); border-radius:999px; padding:2px 9px; font-size:12px; font-weight:600; }
.msg-count[hidden] { display:none; }
.msg-panel { margin-top:14px; }
.msg-panel[hidden] { display:none; }
.msg-panel textarea { margin-top:6px; }
.msg-panel .primary { margin-top:8px; }

/* Actions panel */
.card.actions { background:#FAFAF8; display:flex; flex-direction:column; gap:12px; }
.actions-head { display:flex; justify-content:space-between; align-items:center; gap:8px; flex-wrap:wrap; }
.status-chip { font-size:12px; font-weight:700; padding:4px 10px; border-radius:999px; }
.status-chip.dark { background:#141414; color:#fff; }
.status-chip.ok { background:#E3F1E6; color:#1A6B33; }
.status-chip.muted-chip { background:var(--soft); color:var(--muted); }
.actions-due { font-size:13px; font-weight:600; color:#8A4B00; }
.card.actions > .primary, .card.actions > .secondary, .actions-grid > button, .actions-under > button { width:100%; }
.card.actions p { margin:0; }
.actions-grid { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:8px; }
.with-badge { display:inline-flex; align-items:center; justify-content:center; gap:8px; }
.badge-count { background:#B3261E; color:#fff; border-radius:999px; font-size:11px; font-weight:700; padding:2px 7px; line-height:1.3; }
.decline-link { align-self:center; color:var(--muted); background:none; border:0; font:inherit; font-size:14px; text-decoration:underline; cursor:pointer; }
.actions-price { font-size:28px; font-weight:700; letter-spacing:-0.02em; }
.actions-wrap { display:flex; flex-direction:column; gap:10px; margin-bottom:14px; }
.actions-under { display:flex; flex-direction:column; gap:8px; }
.decline-list { display:flex; flex-direction:column; gap:8px; }
.reason-btn { font:inherit; font-size:15px; font-weight:600; text-align:left; min-height:48px; padding:0 16px; border:1px solid var(--line); border-radius:14px; background:#fff; color:var(--text); cursor:pointer; }
.reason-btn:hover { background:#fafafa; }
.decline-other { display:flex; flex-direction:column; gap:8px; }
.decline-other[hidden] { display:none; }
.draft-note { margin:0 0 12px; }

/* GIGSON_SUPPLIER_TIDY: screen titles, the job's answers (stacked on phones, like the customer page), "How it works" link. */
.screen-title { font-size:clamp(24px, 5vw, 30px); line-height:1.2; letter-spacing:-0.02em; margin:4px 0 10px; }
.card dl.reqs { display:grid; grid-template-columns:minmax(150px, 38%) 1fr; gap:0; margin:8px 0 0; }
.card dl.reqs dt, .card dl.reqs dd { margin:0; padding:9px 0; border-top:1px solid var(--line); line-height:1.4; }
.card dl.reqs dt { color:var(--muted); padding-right:16px; }
.card dl.reqs dd { overflow-wrap:anywhere; }
.card dl.reqs dt:first-of-type, .card dl.reqs dt:first-of-type + dd { border-top:0; }
@media (max-width: 600px) {
  .card dl.reqs { display:block; }
  .card dl.reqs dt { padding:10px 0 0; font-size:13px; letter-spacing:.01em; }
  .card dl.reqs dd { padding:2px 0 10px; border-top:0; font-size:16px; }
  .card dl.reqs dt:first-of-type { padding-top:2px; }
}
.how-link { color:var(--text); font-weight:600; white-space:nowrap; }

/* GIGSON_BUTTONS: icons on "I'm interested" and "Message customer"; fee line under the buttons. */
.with-icon { display:inline-flex; align-items:center; justify-content:center; gap:8px; }
.with-icon::before { content:""; width:18px; height:18px; flex:none; background:currentColor; }
.icon-check::before { -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.icon-msg::before { -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16v11H9l-5 4z'/%3E%3C/svg%3E") center / contain no-repeat; mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16v11H9l-5 4z'/%3E%3C/svg%3E") center / contain no-repeat; }
.card.actions .fee-note { text-align:center; line-height:1.5; }
.actions-grid > button { white-space:nowrap; padding:0 14px; }
@media (max-width: 480px) { .actions-grid { grid-template-columns:1fr; } }

/* GIGSON_STAGES: "Will you quote for this job?" with Yes / No thanks. */
.card.actions .ask { font-size:18px; font-weight:700; letter-spacing:-.01em; margin:2px 0 0; }
.yesno { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.yesno > button { width:100%; white-space:nowrap; padding:0 12px; }
.card.actions .center { text-align:center; }
.link-inline { background:none; border:0; padding:0; font:inherit; color:var(--text); font-weight:600; text-decoration:underline; cursor:pointer; }

/* GIGSON_EDITS_1013: plus icon; "Message the customer" card; item sheet buttons. */
.icon-plus::before { -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat; mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat; }
.msg-row { display:grid; grid-template-columns:40px 1fr auto; align-items:center; gap:12px; width:100%; text-align:left; font:inherit; color:var(--text); background:#fff; border:1px solid var(--line); border-radius:14px; padding:12px 14px; cursor:pointer; }
.msg-row:hover { background:#fafafa; }
.msg-row-icon { width:40px; height:40px; border-radius:50%; background:#E3F1E6; display:flex; align-items:center; justify-content:center; }
.msg-row-icon::before { content:""; width:20px; height:20px; background:#1A6B33; -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16v11H9l-5 4z'/%3E%3C/svg%3E") center / contain no-repeat; mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16v11H9l-5 4z'/%3E%3C/svg%3E") center / contain no-repeat; }
.msg-row-text { display:flex; flex-direction:column; gap:1px; }
.msg-row-text strong { font-size:15px; }
.msg-row-text span { font-size:13px; color:var(--muted); }
.sheet-actions .primary, .sheet-actions .secondary { min-width:120px; }

/* GIGSON_JOB_INTRO */
.job-intro{font-size:16.5px;line-height:1.55;color:#333;margin:6px 0 16px}
.job-intro strong{color:#111}

/* GIGSON_HOW_STEPS */
.how-steps{margin:18px 0 0;border:1px solid #e3e5e8;border-radius:16px;padding:16px 18px 6px;background:#fff}
.how-steps h2{margin:0 0 6px;font-size:17px}
.how-steps ol{list-style:none;margin:0;padding:0;counter-reset:hs}
.how-steps li{counter-increment:hs;display:grid;grid-template-columns:28px 1fr;gap:10px;padding:10px 0;border-top:1px solid #f0f1f2}
.how-steps li:first-child{border-top:0}
.how-steps li::before{content:counter(hs);width:24px;height:24px;border-radius:50%;background:#15211B;color:#fff;font-size:13px;font-weight:700;display:flex;align-items:center;justify-content:center;margin-top:1px}
.how-steps b{display:block;font-size:15.5px}
.how-steps span{display:block;color:#5B6660;font-size:14.5px;line-height:1.45;margin-top:2px}
.how-steps li.key span{color:#1A6B33;font-weight:600}
.how-short{margin:18px 0 0;border:1px solid #e3e5e8;border-radius:12px;padding:10px 14px;color:#5B6660;font-size:14px;line-height:1.5}
.how-short strong{color:#111}

/* GIGSON_PRICE_TOGGLE */
.price-seg{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.seg-btn{text-align:left;border:1.5px solid #e3e5e8;border-radius:14px;background:#fff;padding:12px 14px;cursor:pointer;font:inherit;color:#111}
.seg-btn strong{display:block;font-size:15.5px}
.seg-btn small{display:block;color:#5B6660;font-size:13px;margin-top:2px;font-weight:400}
.seg-btn.on{border-color:#15211B;background:#f3f6f3;box-shadow:inset 0 0 0 1px #15211B}
.seg-btn:focus-visible{outline:3px solid #9cc7ff;outline-offset:2px}
/* GIGSON_PRICE_NUDGE */
.price-nudge{border:1px solid #f4d38a;background:#fffbeb;border-radius:14px;padding:12px 14px}
.price-nudge strong{display:block;font-size:14px;color:#7c3d06}
.price-nudge p{margin:3px 0 10px;font-size:14px;color:#7c4a12}
.price-nudge button{width:auto}
