body.page { background: var(--canvas); min-height: 100%; height: auto; }
html:has(.board-head) { scrollbar-gutter: stable; }
main.wrap { max-width: 760px; margin: 0 auto; padding: 24px 16px 80px; }
main.narrow { max-width: 560px; }
.paper { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px 32px 32px; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 10px 30px rgba(0,0,0,.05); }
.paper .box { box-shadow: none; }
h1 { margin: 0 0 6px; font-size: 26px; font-weight: 600; letter-spacing: -0.01em; }
.sub { margin: 4px 0 0; color: var(--muted); }
.label { margin: 28px 0 10px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.errorlist { list-style: none; padding: 0; margin: 4px 0; color: #c0392b; font-size: 13px; }
.form-grid { display: grid; gap: 4px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

/* Home */
.home { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.choice { display: flex; flex-direction: column; justify-content: center; padding: 48px; color: var(--fg); text-decoration: none; background: var(--bg); }
.choice h2 { margin: 0; font-size: clamp(28px, 4vw, 48px); font-weight: 600; letter-spacing: -0.02em; }
.choice p { margin: 8px 0 0; color: var(--muted); }
.choice.alt { background: var(--canvas); }
.home form { display: contents; }
button.choice { border: 0; font: inherit; text-align: left; cursor: pointer; }
.role-switch { display: flex; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: 99px; }
.role-switch form { display: contents; }
.role-switch button { padding: 4px 12px; border: 0; border-radius: 99px; background: none; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; }
.role-switch button:hover { color: var(--fg); }
.role-switch button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.brand { position: fixed; top: 22px; left: 50%; transform: translateX(-50%); font-weight: 600; }
.home-account { position: fixed; z-index: 20; top: 12px; right: 28px; display: flex; gap: 14px; align-items: center; }
.foot { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); display: grid; justify-items: center; gap: 6px; width: max-content; max-width: calc(100vw - 32px); font-size: 13px; }
.foot div { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--fg); }
@media (max-width: 760px) { .home { grid-template-columns: 1fr; } .foot { position: static; transform: none; margin: 24px auto; } }

/* Tables of jobs */
.rows { display: grid; gap: 6px; }
.row { display: grid; grid-template-columns: 72px 1fr; align-items: center; gap: 2px 12px; padding: 8px; border-radius: 12px; background: var(--field-bg); border: 1px solid var(--line); color: var(--fg); text-decoration: none; }
.row:hover { border-color: var(--fg); }
.row img { grid-row: span 3; width: 72px; height: 56px; border-radius: 8px; object-fit: cover; background: #eee; }
.row .t { font-size: 14px; font-weight: 600; }
.row .st { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.row .st::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--dot); flex: none; }
.row .nx { color: var(--muted); font-size: 13px; }
.row.s1 { --dot: #f2c94c; }
.row.review { --dot: var(--accent); }
.row.s2, .row.s3, .row.s5, .row.s8 { --dot: #f2994a; }
.row.s4, .row.s7 { --dot: #e5484d; }
.row.s6 { --dot: #2fbf71; }
.row.s9 { --dot: var(--muted); opacity: .55; }
.row.new .st::before { display: none; }

/* Contractor board */
.tabs { display: flex; gap: 20px; }
.tabs a { padding: 4px 0; border-bottom: 2px solid transparent; color: var(--muted); font-size: 18px; font-weight: 600; text-decoration: none; }
.tabs a.on { color: var(--fg); border-color: var(--fg); }
.tabs span { font-weight: 400; }

/* Job page */
.hero { display: block; width: 100%; aspect-ratio: 16 / 9; max-height: 380px; object-fit: cover; border-radius: 10px; background: var(--line); margin-bottom: 12px; }
.thumbs { display: flex; gap: 8px; margin: 0 0 20px; overflow-x: auto; }
.thumbs:has(img:only-child) { display: none; }
.thumbs img { width: 72px; height: 54px; object-fit: cover; border-radius: 6px; cursor: pointer; opacity: .55; border: 2px solid transparent; }
.thumbs img.on { opacity: 1; border-color: var(--fg); }
.before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0; }
.before-after img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.offer { padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-bottom: 12px; }
.offer .who { font-weight: 600; }
.offer .who a { color: inherit; }
.offer .who span { font-weight: 400; color: var(--muted); font-size: 13px; }
.offer .start { font-size: 13px; color: var(--muted); }
.offer .acts { display: flex; justify-content: flex-end; align-items: center; gap: 16px; padding-top: 14px; }
.offer.s3, .offer.s4, .offer.s5 { opacity: .5; }
.client-line { display: flex; gap: 10px; margin: 8px 0 0; font-weight: 600; }
.client-line a { color: inherit; }
.client-line span { font-weight: 400; color: var(--muted); }
.pay-link, .contract-link { margin: 16px 0; }
table.lines { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 14px; margin-top: 10px; }
table.lines th, table.lines td { padding: 6px 0; border-bottom: 1px solid var(--line); text-align: right; }
table.lines th:first-child, table.lines td:first-child { text-align: left; }
table.lines thead th { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
table.lines .total td { font-weight: 600; border-top: 2px solid var(--fg); border-bottom: 0; }

/* Contract */
.contract { font-family: Georgia, "Times New Roman", serif; line-height: 1.55; }
.contract h1 { text-align: center; font-size: 22px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.contract .no { text-align: center; }
.contract h2 { margin: 26px 0 10px; font-size: 16px; font-weight: 700; }
.contract .cl { margin: 0 0 8px; }
.contract .cl b { font-weight: 400; color: var(--muted); margin-right: 6px; }
.contract .party, .contract .sign, .contract .pay, .contract table, .contract dl, .contract button, .contract input { font-family: system-ui, sans-serif; }
.law { display: block; color: var(--muted); font-family: system-ui, sans-serif; font-size: 12px; }
.law-list { color: var(--muted); font-size: 13px; }
.withdrawal-form { margin: 12px 0 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; break-inside: avoid; }
.withdrawal-form small { display: block; color: var(--muted); }
.withdrawal-form p { margin: 8px 0 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.party, .sign { padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; }
.party small, .sign small { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.sign span { display: block; font-size: 14px; color: var(--muted); }
dl.facts { display: grid; grid-template-columns: 140px 1fr; gap: 10px 16px; margin: 0; }
dl.facts dt { color: var(--muted); font-size: 14px; }
dl.facts dd { margin: 0; }
.pay div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; }
.pay small { display: block; color: var(--muted); font-size: 13px; }
.bank { margin-top: 14px; padding: 14px 16px; border-radius: 10px; background: #f6f6f4; }
.bank dd { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; }
.pad { display: block; width: 100%; height: 110px; border: 1px dashed var(--field-line); border-radius: 8px; background: #fff; touch-action: none; cursor: crosshair; }
.sig { display: block; max-width: 100%; height: 80px; }
.signed { color: #1a8a4a; font-weight: 600; }
.waiting { color: var(--muted); }
.sign .acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.decline-btn { background: #c0392b; color: #fff; border: 0; border-radius: 6px; padding: 8px 14px; cursor: pointer; font-weight: 500; }
@media (max-width: 640px) { .paper { padding: 18px; } .two { grid-template-columns: 1fr; } dl.facts { grid-template-columns: 1fr; } }
@media print { .board-head, .no-print { display: none !important; } body.page { background: #fff; } .paper { border: 0; box-shadow: none; padding: 0; } }

/* Payment */
.due { border: 2px solid #e5484d; }
.due .what { margin: 0; color: #c0392b; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: 13px; }
.due .amount { margin: 4px 0 0; font-size: 40px; font-weight: 700; }
.due .now { margin: 2px 0 20px; color: #c0392b; font-weight: 600; }
.paid-ok { color: #1a8a4a; font-weight: 600; }
.paid-late { color: #c0392b; font-weight: 600; }

/* People */
.rev { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: start; padding: 10px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 12px; }
.rev img { width: 96px; height: 72px; border-radius: 8px; object-fit: cover; background: #eee; }
.rev p { margin: 2px 0 0; }
.rev p:empty, .review-quote:has(p:empty) { display: none; }
.rev small { color: var(--muted); }

/* Legal pages */
.doc { font-family: Georgia, "Times New Roman", serif; line-height: 1.6; }
.doc h2 { margin: 26px 0 8px; font-size: 16px; }
.doc p { margin: 0 0 8px; }


/* Login and sign up */
.auth-page { background: var(--bg); }
.auth { display: grid; grid-template-columns: minmax(320px, 1fr) minmax(360px, 1.1fr); min-height: 100vh; }
.auth-brand { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: 40px 56px; background: var(--canvas); border-right: 1px solid var(--line); color: var(--fg); }
.auth-logo { margin: 0; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.auth-brand h2 { margin: 0 0 28px; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; font-weight: 600; letter-spacing: -0.02em; max-width: 14ch; }
.auth-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; max-width: 40ch; }
.auth-points li { padding-left: 18px; border-left: 2px solid var(--fg); color: var(--muted); }
.auth-points b { display: block; color: var(--fg); font-weight: 600; }
.auth-links { display: flex; gap: 18px; font-size: 13px; }
.auth-links a { color: var(--muted); text-decoration: none; }
.auth-links a:hover { color: var(--fg); }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: var(--bg); }
.auth-card { width: 100%; max-width: 380px; }
.auth-card h1 { font-size: 28px; margin: 0 0 6px; }
.auth-card .sub { margin: 0 0 28px; }
.auth-card .auth-notice { margin: 0 0 24px; font-size: 24px; line-height: 1.25; }
a.auth-submit { box-sizing: border-box; text-align: center; }
.auth-fields { display: grid; gap: 4px; }
.auth-fields label { margin-bottom: 12px; }
.auth-fields .field, .auth-fields input:not([type=checkbox], [type=radio], [type=hidden]) { padding: 11px 12px; border-radius: 8px; font-size: 15px; }
.auth-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-submit { width: 100%; padding: 12px; margin-top: 6px; border-radius: 8px; font-size: 15px; }
.auth-error { margin: 0 0 14px; padding: 10px 12px; border-radius: 8px; background: #fdecea; color: #962d22; font-size: 14px; }
.auth-switch { margin: 24px 0 0; text-align: center; color: var(--muted); font-size: 14px; }
.auth-switch a { color: var(--fg); font-weight: 600; }
@media (max-width: 760px) {
  .auth { grid-template-columns: 1fr; }
  .auth-brand { padding: 28px 24px; gap: 20px; }
  .auth-brand h2 { font-size: 28px; margin-bottom: 16px; }
  .auth-points, .auth-links { display: none; }
  .auth-form { align-items: flex-start; padding: 32px 24px 48px; }
}

/* Boards (job lists) */
body.board-page { min-height: 100vh; }
.board-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 65px; padding: 0 28px; background: var(--bg); border-bottom: 1px solid var(--line); }
.board-title { margin: 0; font-size: 18px; font-weight: 600; }
.head-actions { display: flex; align-items: center; gap: 18px; }
.check { display: flex; align-items: center; gap: 8px; padding: 3px 0; cursor: pointer; }
.check input { accent-color: var(--accent); margin: 0; }
.results-meta { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; color: var(--muted); font-size: 13px; }
.empty { padding: 60px 0; text-align: center; color: var(--muted); }
@media (max-width: 760px) {
  .board-head { padding: 0 16px; }
}

/* Job page, as in the mockup */
.head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.head h1 { margin: 0; }
.summary { color: var(--muted); white-space: nowrap; }
.meta { margin: 6px 0 14px; color: var(--muted); font-size: 13px; }
.paper h2 { margin: 36px 0 12px; font-size: 18px; font-weight: 600; }
.paper .schedule h2 { margin: 36px 0 12px; font-size: 18px; text-transform: none; letter-spacing: 0; color: var(--fg); }
.note { margin: 14px 0; color: var(--muted); }
.offers-head { display: flex; justify-content: space-between; align-items: center; }
.nav { display: flex; align-items: center; gap: 10px; }
.nav button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: none; cursor: pointer; font-size: 18px; line-height: 1; color: var(--fg); }
.nav button:hover:not(:disabled) { border-color: var(--fg); }
.nav button:disabled { opacity: .3; cursor: default; }
.pages { justify-content: center; margin: 16px 0 24px; }
.pages a, .pages .off { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); color: var(--fg); font-size: 18px; line-height: 1; text-decoration: none; }
.pages a:hover { border-color: var(--fg); }
.pages .off { opacity: .3; }
.pos { font-size: 13px; color: var(--muted); min-width: 36px; text-align: center; }
.offer[hidden] { display: none; }
.offer.s1 { border-color: #1a8a4a; }
.offer .phone { margin-top: 2px; font-size: 14px; }
.accepted { color: #1a8a4a; font-weight: 600; }
.declined { color: var(--muted); }
.done { padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; margin: 0 0 16px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.contact dt { font-size: 13px; color: var(--muted); }
.contact dd { margin: 2px 0 0; font-weight: 500; overflow-wrap: anywhere; }
.contact a { color: inherit; text-decoration: none; }
.contact a:hover { text-decoration: underline; }
.party .contact { grid-template-columns: 1fr; gap: 12px; margin: 10px 0 0; padding: 0; border: 0; }
.party { break-inside: avoid; }
@media (max-width: 560px) { .contact { grid-template-columns: 1fr; gap: 14px; } }
a.primary { display: inline-block; text-decoration: none; }
.pay-link a.primary { background: #e5484d; color: #fff; }

/* Offer form */
.offer-form { background: #fff; border: 1px solid var(--field-line); border-radius: 12px; padding: 18px 20px 20px; }
.offer-form .note { margin: 0 0 14px; }
.offer-form table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.offer-form thead th { padding: 0 0 8px 8px; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--line); text-align: left; }
.offer-form thead th:first-child { padding-left: 0; }
.offer-form td { padding: 6px 0 6px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.offer-form td:first-child { padding-left: 0; }
.offer-form td:last-child { width: 32px; padding-left: 2px; }
.item-in { margin: 0; }
.price-in { width: 110px; margin: 0 0 0 auto; text-align: right; }
.x { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 20px; line-height: 1; padding: 4px 6px; }
.x:hover { color: var(--fg); }
.offer-form .add-row td { padding: 10px 0; border-bottom: 0; }
.add-line { width: 100%; padding: 9px; border: 1px dashed var(--field-line); border-radius: 6px; background: none; color: var(--muted); cursor: pointer; font-weight: 500; }
.add-line:hover { border-color: var(--fg); color: var(--fg); }
.offer-form .total td { padding-top: 12px; font-size: 16px; font-weight: 600; border-top: 2px solid var(--fg); border-bottom: 0; }
.offer-form .total td:nth-child(2) { text-align: right; }
.send { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-top: 18px; }
.when-label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--field-line); background: #fff; color: var(--fg); border-radius: 99px; padding: 6px 12px; font-size: 13px; cursor: pointer; }
.chip:hover { border-color: var(--fg); }
.chip[aria-pressed="true"] { background: var(--fg); border-color: var(--fg); color: #fff; }
.start-in { max-width: 200px; margin-top: 8px; }
.when-text { display: block; margin-top: 6px; font-size: 13px; min-height: 1.2em; }
.when-text.error { color: #c0392b; }

/* Finish the job */
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.shot { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; margin: 0; border: 1px dashed var(--field-line); border-radius: 12px; background: var(--bg); cursor: pointer; overflow: hidden; color: var(--muted); font-size: 14px; }
.shot:hover { border-color: var(--fg); color: var(--fg); }
.shot input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.shot.has { border-style: solid; }
.complete-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 12px; }
.complete-foot .note { margin: 0; font-size: 13px; }
@media (max-width: 640px) { .complete-foot, .send { flex-direction: column; align-items: stretch; } }
label .hint { display: block; margin-top: 4px; font-size: 13px; color: var(--fg); }

/* Your jobs: post a new job */
.post-cta { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; padding: 16px 20px; border: 1px dashed var(--field-line); border-radius: 12px; background: var(--field-bg); color: var(--fg); text-decoration: none; }
.post-cta:hover { border-color: var(--fg); border-style: solid; }
.post-cta .plus { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--fg); color: var(--bg); font-size: 22px; flex: none; }
.post-cta b { display: block; }
.post-cta small { color: var(--muted); }
.post-cta .arrow { margin-left: auto; font-size: 20px; transition: transform 200ms ease; }
.post-cta:hover .arrow { transform: translateX(4px); }

/* Post a job */
body.post-page { background: var(--bg); }
.post { display: grid; grid-template-columns: 1.1fr 1fr; min-height: calc(100vh - 65px); }
.post-form { padding: 28px 32px 60px; }
.post-preview { padding: 28px 32px 60px; background: var(--canvas); border-left: 1px solid var(--line); }
.post-inner { max-width: 480px; margin: 0 auto; }
.post-inner.sticky { position: sticky; top: 24px; }
.post h1 { margin: 0 0 4px; font-size: 28px; }
.post .sub { margin: 0 0 8px; }
.post .label { margin: 22px 0 8px; }
.area { text-transform: none; letter-spacing: 0; color: var(--fg); font-weight: 400; }
.drop { position: relative; display: flex; align-items: center; justify-content: center; padding: 22px; margin: 0; border: 1px dashed var(--field-line); border-radius: 12px; background: var(--bg); text-align: center; cursor: pointer; }
.drop:hover { border-color: var(--fg); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop b { display: block; color: var(--fg); font-size: 15px; }
.drop small { color: var(--muted); }
.picked { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.picked img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.hint-line { margin: 18px 0 0; font-size: 13px; color: var(--muted); }
.post-actions { display: flex; justify-content: flex-end; align-items: center; gap: 18px; margin-top: 16px; }
.post-actions .primary { padding: 10px 22px; }
.ad { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.06); }
.ad-photo { position: relative; aspect-ratio: 4 / 3; background: var(--line); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; }
.ad-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ad-photo .badge { position: absolute; left: 10px; bottom: 10px; padding: 2px 8px; border-radius: 99px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; }
.ad-body { padding: 16px 18px 18px; }
.ad h3 { margin: 0; font-size: 18px; font-weight: 600; }
.ad-meta { margin: 4px 0 10px; font-size: 13px; color: var(--muted); }
.ad-desc { margin: 0; white-space: pre-line; }
.ad .empty { color: var(--muted); }
.tips { margin: 20px 0 0; padding-left: 18px; color: var(--muted); font-size: 14px; display: grid; gap: 6px; }
@media (max-width: 760px) {
  .post { grid-template-columns: 1fr; }
  .post-form, .post-preview { padding: 20px 16px 40px; }
  .post-preview { border-left: 0; border-top: 1px solid var(--line); }
}

/* List on the left, job on the right */
.split-view { display: grid; grid-template-columns: minmax(340px, 420px) 1fr; height: calc(100vh - 65px); }
.list-pane { overflow-y: auto; padding: 16px; border-right: 1px solid var(--line); }
.detail-pane { overflow-y: auto; padding: 24px 32px 60px; background: var(--canvas); }
.detail-pane .paper { max-width: 760px; margin: 0 auto; }
.pick { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--muted); }
.list-pane .post-cta { margin-bottom: 14px; padding: 12px 14px; }
.list-pane .post-cta .plus { width: 32px; height: 32px; font-size: 18px; }
.list-pane .row.on { border-color: var(--fg); box-shadow: inset 3px 0 0 var(--fg); }
.list-pane .row.new .st { font-weight: 500; }
@media (max-width: 900px) {
  .split-view { grid-template-columns: 1fr; height: auto; }
  .list-pane { border-right: 0; overflow: visible; }
  .detail-pane { padding: 16px 12px 40px; overflow: visible; }
  .split-view.has-detail .list-pane, .split-view:not(.has-detail) .detail-pane { display: none; }
}

/* Photos of people */
.menu { position: relative; }
.menu summary { display: flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; border: 1px solid var(--line); border-radius: 99px; background: var(--field-bg); font-size: 14px; font-weight: 500; cursor: pointer; list-style: none; user-select: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover, .menu[open] summary { border-color: var(--fg); }
.menu-list { position: absolute; z-index: 20; top: calc(100% + 8px); right: 0; min-width: 200px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 10px 30px rgba(0,0,0,.1); }
.menu-list form { margin: 6px 0 0; padding-top: 6px; border-top: 1px solid var(--line); }
.menu-list a, .menu-list button { display: block; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: none; color: var(--fg); font-size: 14px; text-align: left; text-decoration: none; cursor: pointer; }
.menu-list a:hover, .menu-list button:hover { background: var(--canvas); }
.menu-arrow { transition: transform 150ms; }
.menu[open] .menu-arrow { transform: rotate(180deg); }
.profile-picture img, .face-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.profile-picture img[src=""], .face-pic img[src=""], .photo-tile img[src=""] { display: none; }
.me-head { display: flex; align-items: center; gap: 16px; margin-bottom: 4px; }
.me-head h1 { margin: 0; }
.about { margin-top: 20px; overflow-wrap: anywhere; }
.about p { margin: 0 0 10px; }
.about:has(p:empty) { display: none; }
.photo-pick { margin: 0; }
.photo-tile { position: relative; overflow: visible; display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; margin: 0; border-radius: 50%; background: var(--canvas); border: 1px solid var(--line); cursor: pointer; font-size: 22px; font-weight: 600; color: var(--fg); }
.photo-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.photo-tile input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.face-pic { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none; width: 28px; height: 28px; margin-right: 8px; border-radius: 50%; overflow: hidden; background: var(--canvas); border: 1px solid var(--line); font-size: 12px; font-weight: 600; vertical-align: middle; }
.me-head .face-pic { width: 72px; height: 72px; margin: 0; font-size: 22px; }
.offer .who { display: flex; align-items: center; flex-wrap: wrap; gap: 0 6px; }
.offer .who .face-pic { margin-right: 4px; }

.print-row { max-width: 760px; margin: 0 auto 8px; text-align: right; }
@media print {
  .board-head, .list-pane { display: none !important; }
  .split-view { display: block; height: auto; }
  .detail-pane { overflow: visible; padding: 0; background: #fff; }
}

.list-tools { display: grid; gap: 8px; margin-bottom: 12px; }
.list-tools .search { margin: 0; padding: 8px 12px; border-radius: 8px; }
.state-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.state-chips a { padding: 4px 10px; border-radius: 99px; font-size: 13px; color: var(--muted); text-decoration: none; }
.state-chips a:hover { color: var(--fg); }
.state-chips a.on { background: var(--fg); color: var(--bg); }
.list-tools .from { margin: 0; font-size: 13px; color: var(--muted); }
.list-tools .sort { width: auto; }
.list-tools .results-meta { padding: 2px 0 0; }
.sort-row { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; color: var(--muted); }
.sort-row .sort { margin: 0; padding: 5px 8px; }

.pay-form { margin-top: 16px; }
.pay-form .primary { width: 100%; padding: 12px; }
.decline-form { margin-top: 12px; }

.review-quote { margin: 12px 0 0; padding: 12px 14px; border-left: 3px solid var(--line); background: var(--bg); overflow-wrap: anywhere; }
.review-quote p { margin: 0 0 6px; }
.review-quote footer { color: var(--muted); font-size: 13px; }
.review-form label { margin-bottom: 12px; }

.upper { text-transform: uppercase; }
.toast { position: fixed; z-index: 30; left: 50%; bottom: 28px; padding: 12px 20px; border-radius: 99px; background: #1a8a4a; color: #fff; font-size: 14px; font-weight: 500; box-shadow: 0 10px 30px rgba(0,0,0,.2); transform: translateX(-50%); animation: toast 4s ease forwards; }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, 12px); } 6%, 88% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, 12px); visibility: hidden; } }

.pencil { display: grid; place-items: center; flex: none; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--fg); font-size: 18px; line-height: 1; cursor: pointer; }
.pencil:hover, .pencil:focus-visible { border-color: var(--fg); }
.pencil.ok { background: #1a8a4a; border-color: #1a8a4a; color: #fff; }
.edit-box { padding-top: 4px; padding-bottom: 4px; }
.edit { padding: 12px 0; border-bottom: 1px solid var(--line); }
.edit:last-child { border-bottom: 0; }
.edit-view { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.edit-view small { display: block; color: var(--muted); font-size: 13px; }
.edit-value { overflow-wrap: anywhere; }
.edit-form { display: flex; align-items: flex-end; gap: 12px; }
.edit-form label { flex: 1; margin: 0; }
.edit-acts { display: flex; gap: 8px; }
.edit-view[hidden], .edit-form[hidden] { display: none; }
.photo-pencil { position: absolute; right: -4px; bottom: -4px; display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 50%; background: #fff; pointer-events: none; }
.photo-tile:hover .photo-pencil { border-color: var(--fg); }

.work-templates { margin: 0 0 16px; }
.work-templates:has(.chips:empty) { display: none; }
.chip:disabled { opacity: .45; cursor: default; }
.chip small { color: inherit; }
