@font-face {
  font-family: 'Bungee';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/bungee.woff2') format('woff2');
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: #ffffff;
  color: #111827;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
a { color: #0284c7; }
button, input, select, textarea { font: inherit; color: #111827; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #0284c7; outline-offset: 2px; }

.topbar {
  background-color: #0b1026; background-image: linear-gradient(rgba(15, 10, 20, 0.30), rgba(15, 10, 20, 0.30)), url('images/xmas-lights.jpg'); background-size: cover; background-position: center 35%; border-bottom: 4px solid #38bdf8; color: #ffffff;
  display: flex; flex-direction: column;
  min-height: 190px;
}
.topbar .brand { text-align: center; margin: auto 0; padding: 24px 16px 14px; }
/* Button strip (v19): the buttons sit back on the photo, in a dark strip
   along its bottom edge, so the Christmas lights picture stays visible
   above them. */
.strip {
  background: rgba(11, 16, 38, 0.78);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 10px 12px;
}
.strip #whoami { color: #ffffff; font-weight: 600; font-size: 15px; }
.strip #authBtn { margin-left: auto; }
.strip #postBtn { padding: 6px 12px; font-size: 15px; }
.brand { font-family: 'Bungee', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-size: 28px; font-weight: 400; letter-spacing: 0.5px; color: #7dd3fc; }
.brand small { display: block; font-size: 13px; font-weight: 600; color: #e7e5e4; letter-spacing: 0; }
#postBtn { background: #16a34a; border-color: #16a34a; color: #ffffff; }
main { max-width: 960px; margin: 0 auto; padding: 16px; }
h1 { font-size: 26px; line-height: 1.25; margin: 8px 0 4px; border-left: 6px solid #38bdf8; padding-left: 12px; }
.lead { color: #374151; margin: 0 0 16px; max-width: 62ch; }

.btn {
  background: #7dd3fc; color: #082f49; border: 2px solid #7dd3fc;
  border-radius: 10px; padding: 10px 16px; font-weight: 700;
}
.btn.secondary { background: #7dd3fc; color: #082f49; border-color: #7dd3fc; }
.btn.danger { background: #ffffff; color: #7f1d1d; border-color: #7f1d1d; }
.btn.small { padding: 6px 10px; font-size: 15px; }
.btn.tiny { padding: 4px 8px; font-size: 13px; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.badge {
  display: inline-block; min-width: 22px; text-align: center;
  background: #b91c1c; color: #fff; border-radius: 999px;
  font-size: 13px; font-weight: 800; padding: 1px 6px; margin-left: 4px;
}
.badge[hidden] { display: none; }

.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 12px 0; }
.toolbar input[type="search"], .toolbar select {
  border: 2px solid #374151; border-radius: 10px; padding: 9px 12px; background: #fff;
}
.toolbar input[type="search"] { flex: 1; min-width: 180px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
.chip {
  border: 2px solid #374151; background: #fff; border-radius: 999px;
  padding: 6px 12px; font-weight: 600;
}
.chip[aria-pressed="true"] { background: #7dd3fc; color: #082f49; border-color: #7dd3fc; }
.chip[data-type="Plumbing"] { background: #dbeafe; border-color: #1e40af; color: #1e3a8a; }
.chip[data-type="Electrical"] { background: #fef9c3; border-color: #854d0e; color: #713f12; }
.chip[data-type="Painting"] { background: #ede9fe; border-color: #5b21b6; color: #4c1d95; }
.chip[data-type="Drywall"] { background: #ffe4e6; border-color: #9f1239; color: #881337; }
.chip[data-type="Assembly"] { background: #ccfbf1; border-color: #0f766e; color: #115e59; }
.chip[data-type="Yard work"] { background: #e7e5d3; border-color: #78716c; color: #44403c; }
.chip[data-type="General repairs"] { background: #ffedd5; border-color: #9a3412; color: #7c2d12; }
.chip[data-type="Other"] { background: #e5e7eb; border-color: #374151; color: #111827; }
.chip[data-type="Plumbing"][aria-pressed="true"] { background: #1e40af; border-color: #1e40af; color: #fff; }
.chip[data-type="Electrical"][aria-pressed="true"] { background: #854d0e; border-color: #854d0e; color: #fff; }
.chip[data-type="Painting"][aria-pressed="true"] { background: #5b21b6; border-color: #5b21b6; color: #fff; }
.chip[data-type="Drywall"][aria-pressed="true"] { background: #9f1239; border-color: #9f1239; color: #fff; }
.chip[data-type="Assembly"][aria-pressed="true"] { background: #0f766e; border-color: #0f766e; color: #fff; }
.chip[data-type="Yard work"][aria-pressed="true"] { background: #57534e; border-color: #57534e; color: #fff; }
.chip[data-type="General repairs"][aria-pressed="true"] { background: #9a3412; border-color: #9a3412; color: #fff; }
.chip[data-type="Other"][aria-pressed="true"] { background: #111827; border-color: #111827; color: #fff; }
.tag.type-plumbing { background: #dbeafe; color: #1e3a8a; }
.tag.type-electrical { background: #fef9c3; color: #713f12; }
.tag.type-painting { background: #ede9fe; color: #4c1d95; }
.tag.type-drywall { background: #ffe4e6; color: #881337; }
.tag.type-assembly { background: #ccfbf1; color: #115e59; }
.tag.type-yard-work { background: #e7e5d3; color: #44403c; }
.tag.type-general-repairs { background: #ffedd5; color: #7c2d12; }
.tag.type-other { background: #e5e7eb; color: #111827; }
.empty { border: 2px dashed #9ca3af; border-radius: 16px; padding: 24px; color: #374151; }

.sheet {
  position: fixed; inset: 0; z-index: 40; display: flex; align-items: flex-start; justify-content: center;
  background: rgba(17, 24, 39, 0.55);
  overflow-y: auto;
}
.sheet[hidden] { display: none; }
.sheet-card {
  background: #fff; width: 100%; max-width: 640px; max-height: 92vh; overflow-y: auto;
  border-radius: 20px; padding: 20px; margin: 12px 0;
}
@media (min-width: 700px) { .sheet { align-items: center; } .sheet-card { border-radius: 20px; } }
.sheet-card img.main-photo { width: 100%; max-height: 320px; object-fit: cover; border-radius: 12px; background: #e5e7eb; }
.sheet-card h2 { font-size: 24px; margin: 10px 0 4px; }
.close-row { display: flex; justify-content: flex-end; }
form label { display: block; font-weight: 700; margin: 14px 0 4px; }
form input, form select, form textarea {
  width: 100%; border: 2px solid #374151; border-radius: 10px; padding: 10px 12px; background: #fff;
}
form textarea { min-height: 90px; }
.hint { color: #374151; font-size: 14px; margin: 4px 0 0; }
.status-line { background: #e0f2fe; border: 1px solid #0284c7; border-radius: 8px; padding: 10px 12px; font-size: 15px; }
.my-job-row { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; background: #fff; border: 1px solid #d1d5db; border-radius: 12px; padding: 10px; margin: 8px 0; cursor: pointer; font: inherit; color: inherit; }
.my-job-row:hover { border-color: #111827; }
.my-job-row img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; flex-shrink: 0; background: #e5e7eb; }
.linklike { background: none; border: none; padding: 0; cursor: pointer; font: inherit; color: #0284c7; text-decoration: underline; }
.error { color: #7f1d1d; font-weight: 700; }
.success { color: #0369a1; font-weight: 700; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.thumbs img { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; }

.thread { border: 2px solid #d1d5db; border-radius: 12px; padding: 12px; margin: 10px 0; }
.thread h3 { margin: 0 0 4px; font-size: 18px; }
.bubbles { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.bubble { max-width: 85%; padding: 10px 12px; border-radius: 14px; background: #e5e7eb; }
.bubble.mine { align-self: flex-end; background: #e0f2fe; }
.bubble .who { font-size: 13px; font-weight: 700; color: #374151; display: block; }
.quick { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.composer { display: flex; gap: 8px; }
.composer input { flex: 1; border: 2px solid #374151; border-radius: 10px; padding: 10px 12px; }
.footer { color: #374151; font-size: 14px; border-top: 1px solid #d1d5db; margin-top: 32px; padding: 16px 0 32px; }

.footer a { color: #0284c7; }
.brand a { color: inherit; text-decoration: none; }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; font-size: 14px; color: #44403c; }
.check input { margin-top: 3px; accent-color: #0284c7; }
.check a { color: #0284c7; }
.legal { max-width: 720px; }
.legal h1 { font-size: 28px; margin: 8px 0 4px; }
.legal h2 { font-size: 19px; margin: 24px 0 8px; color: #292524; }
.legal p, .legal li { line-height: 1.6; color: #44403c; }
.legal a { color: #0284c7; }

.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid { grid-template-columns: 1fr 1fr; } }
.card { display: block; width: 100%; text-align: left; background: #fff; border: 1px solid #d1d5db; border-radius: 16px; padding: 0 0 12px; overflow: hidden; cursor: pointer; font: inherit; color: inherit; }
.card img { width: 100%; height: 220px; object-fit: cover; display: block; background: #e5e7eb; }
.card-body { display: block; padding: 12px 14px 0; }
.card-body h2 { font-size: 19px; margin: 6px 0 4px; }
.card .price { font-size: 20px; font-weight: 800; color: #0369a1; }
.card .meta { color: #374151; font-size: 14px; margin: 4px 0; }

/* Show/hide password ("eye") toggle (v17) */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 44px; }
.pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; padding: 8px; color: #64748b; line-height: 0; }
.pw-toggle .slash { display: none; }
.pw-toggle.showing { color: #0284c7; }
.pw-toggle.showing .slash { display: block; }
