:root {
  --navy: #123c69; --navy2: #0d2c4f; --ink: #1c2733; --mut: #5a6a7a;
  --bg: #f4f7fa; --card: #ffffff; --line: #dbe4ec; --good: #177245; --bad: #b3261e;
  --accent: #f5a623;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; background: var(--bg); color: var(--ink); }
a { color: var(--navy); }
.topbar { background: var(--navy); color: #fff; padding: 10px 14px; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 5; }
.brand { color: #fff; text-decoration: none; font-weight: 800; font-size: 19px; display: flex; align-items: center; gap: 8px; }
.brandmark { background: var(--accent); color: var(--navy2); border-radius: 8px; padding: 3px 7px; font-size: 15px; }
.topnav { display: flex; gap: 13px; align-items: center; flex-wrap: wrap; font-size: 14.5px; }
.topnav a { color: #dbe7f3; text-decoration: none; }
.topnav a:hover { color: #fff; }
.wrap { max-width: 880px; margin: 0 auto; padding: 18px 14px 42px; }
.foot { max-width: 880px; margin: 0 auto; padding: 14px; color: var(--mut); font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--line); }
h1 { font-size: 26px; margin: 6px 0 10px; color: var(--navy2); }
h2 { color: var(--navy2); }
h3 { margin: 4px 0 8px; color: var(--navy2); }
.lede { font-size: 17.5px; line-height: 1.5; }
.fineprint { color: var(--mut); font-size: 13.5px; line-height: 1.45; }
.center { text-align: center; }
.btn { display: inline-block; background: var(--navy); color: #fff; border: 0; border-radius: 10px; padding: 11px 18px; font-size: 15.5px; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--navy2); }
.btn.big { width: 100%; text-align: center; padding: 14px; font-size: 16.5px; }
.btn.small { padding: 7px 12px; font-size: 14px; }
.btn.ghost { background: #fff; color: var(--navy); border: 1.5px solid var(--navy); }
.btn.accept { background: var(--good); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.linkbtn { background: none; border: 0; color: #dbe7f3; cursor: pointer; font-size: 14.5px; padding: 0; }
.pubquote .linkbtn, .card .linkbtn { color: var(--navy); }
.linkbtn.danger { color: var(--bad); }
form.inline { display: inline; }
.hero { padding: 14px 0 4px; }
.hero h1 { font-size: 31px; line-height: 1.18; }
.cards { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 16px 0; }
@media (min-width: 680px) { .cards { grid-template-columns: repeat(3, 1fr); } .pricing .cards { grid-template-columns: repeat(2, 1fr); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin: 12px 0; }
.card p { line-height: 1.5; }
.card ul { margin: 6px 0; padding-left: 18px; }
.price .amount { font-size: 30px; font-weight: 800; color: var(--navy); margin: 2px 0; }
.price .amount span { font-size: 14px; color: var(--mut); font-weight: 500; }
.authbox { max-width: 430px; margin: 12px auto; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.form label { display: block; margin: 12px 0; font-weight: 600; font-size: 14.5px; }
.form input, .form select, .form textarea { width: 100%; margin-top: 5px; padding: 11px; border: 1.5px solid var(--line); border-radius: 10px; font-size: 16px; background: #fff; font-weight: 400; }
.form textarea { resize: vertical; font-family: inherit; }
.error { background: #fdecea; color: var(--bad); border: 1px solid #f2b8b2; padding: 10px 12px; border-radius: 10px; margin: 10px 0; }
.flash { background: #e7f4ec; color: var(--good); border: 1px solid #bfe3cd; padding: 10px 12px; border-radius: 10px; margin: 10px 0; }
.logopreview { max-width: 140px; max-height: 140px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pricerow, .linerow { display: grid; grid-template-columns: minmax(0, 1fr) 150px 120px 26px; gap: 7px; margin: 7px 0; align-items: center; }
.linerow { grid-template-columns: minmax(0, 1.7fr) 52px 78px minmax(0, 0.9fr) 26px; }
/* Phones: editor rows restack so the name/task field gets a full-width line
   of its own — item names must never truncate on a 390px screen. */
@media (max-width: 560px) {
  .pricerow { grid-template-columns: minmax(0, 1fr) 108px 26px; grid-template-areas: "pname pname pname" "punit pprice pdel"; row-gap: 5px; }
  .pricerow input:nth-child(1) { grid-area: pname; }
  .pricerow input:nth-child(2) { grid-area: punit; }
  .pricerow input:nth-child(3) { grid-area: pprice; }
  .pricerow .rowdel { grid-area: pdel; }
  .linerow { grid-template-columns: 52px 84px minmax(0, 1fr) 26px; grid-template-areas: "ltask ltask ltask ldel" "lqty lprice lnote lnote"; row-gap: 5px; }
  .linerow input:nth-child(1) { grid-area: ltask; }
  .linerow input:nth-child(2) { grid-area: lqty; }
  .linerow input:nth-child(3) { grid-area: lprice; }
  .linerow input:nth-child(4) { grid-area: lnote; }
  .linerow .rowdel { grid-area: ldel; }
}
.pricerow input, .linerow input { padding: 9px; border: 1.5px solid var(--line); border-radius: 8px; font-size: 15px; width: 100%; }
.linehead { display: grid; grid-template-columns: minmax(0, 1.7fr) 52px 78px minmax(0, 0.9fr) 26px; gap: 7px; font-size: 12px; color: var(--mut); font-weight: 700; text-transform: uppercase; }
.rowdel { background: #fdecea; color: var(--bad); border: 0; border-radius: 8px; width: 26px; height: 32px; cursor: pointer; font-size: 13px; }
.listhead { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.searchbar { display: flex; gap: 8px; margin: 10px 0; }
.searchbar input { flex: 1; padding: 11px; border: 1.5px solid var(--line); border-radius: 10px; font-size: 16px; }
.quotelist { display: flex; flex-direction: column; gap: 9px; }
.quoterow { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; text-decoration: none; color: var(--ink); }
.qmain { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.qsub { color: var(--mut); font-size: 12.5px; }
.qamt { font-weight: 800; color: var(--navy2); }
.chip { font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: #e8eef4; color: var(--navy); white-space: nowrap; }
.chip.st-draft { background: #e8eef4; color: var(--navy); }
.chip.st-sent { background: #fff3d6; color: #8a5a00; }
.chip.st-viewed { background: #dceeff; color: #0b5394; }
.chip.st-accepted { background: #d9f0e1; color: var(--good); }
.chip.st-declined { background: #fdecea; color: var(--bad); }
.custline { color: var(--mut); }
.photostrip { display: flex; gap: 8px; overflow-x: auto; padding: 6px 0; }
.photostrip img { height: 108px; border-radius: 10px; border: 1px solid var(--line); }
.airow { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.totals { display: flex; gap: 16px; flex-wrap: wrap; justify-content: flex-end; padding: 10px 2px; font-size: 15px; }
.totals strong { color: var(--navy2); }
.linkrow { display: flex; gap: 8px; }
.linkrow input { flex: 1; padding: 10px; border: 1.5px solid var(--line); border-radius: 10px; font-size: 13.5px; background: #f8fafc; }
.sendbtns { display: flex; gap: 9px; flex-wrap: wrap; }
.pubquote { max-width: 640px; margin: 0 auto; }
.pubhead { text-align: center; }
.publogo { max-width: 110px; max-height: 110px; border-radius: 12px; }
.pubhead h1 { margin-bottom: 2px; }
.linetable { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.linetable th { text-align: left; color: var(--mut); font-size: 12px; text-transform: uppercase; padding: 6px 4px; border-bottom: 2px solid var(--line); }
.linetable td { padding: 8px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
.linetable td:nth-child(2), .linetable td:nth-child(3), .linetable td:nth-child(4),
.linetable th:nth-child(2), .linetable th:nth-child(3), .linetable th:nth-child(4) { text-align: right; white-space: nowrap; }
.decided { border-color: #bfe3cd; background: #f2faf5; }
.declineform { text-align: center; margin-top: 10px; }
.activity ul { margin: 4px 0; }
.microw { margin: 2px 0 10px; }
#jobdesc { min-height: 210px; line-height: 1.45; }
/* Must come after the base .linehead rule: hide the column header on phones,
   where line rows are stacked and the header no longer lines up. */
@media (max-width: 560px) { .linehead { display: none; } }

/* ---- Launch features (Oct 29) ---- */
/* Quotes list rows: link + separate follow-up badge */
.quoterow { flex-direction: column; align-items: stretch; gap: 8px; }
.qmain-link { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.followup-badge { align-self: flex-start; background: #0b5394; color: #fff; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; text-decoration: none; }
.followup-badge:active { background: #083d6d; }
/* Tiers (owner detail) */
.tierblock { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin: 12px 0; }
.tierblock.chosen { border-color: var(--good); background: #f2faf4; }
.tierform { border-top: 2px solid var(--line); padding-top: 14px; margin-top: 16px; }
.tierhead { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.tierhead input { font-weight: 800; font-size: 16px; max-width: 240px; }
.popbadge { background: #ffcf3f; color: #5c4300; font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.removeopts { margin-top: 14px; }
/* Tiers (customer page) */
.tiercard.popular { border-color: #e3a008; box-shadow: 0 0 0 2px #ffedb5; }
.tierpubhead { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.langtoggle { text-align: right; margin: 0 0 4px; font-size: 14px; }
.langtoggle a { color: var(--navy2); font-weight: 700; }
/* Photo/video picker (owner fix) */
.mediafield { margin: 4px 0 10px; }
.photobtn { display: inline-block; font-size: 16px; padding: 12px 18px; cursor: pointer; }
.flabel { display: block; font-weight: 700; margin-bottom: 6px; }
.photoprev { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.previtem { position: relative; }
.previtem img { width: 74px; height: 74px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); display: block; }
.prevfile { display: inline-block; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: #e8eef4; border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.prevdel { position: absolute; top: -7px; right: -7px; width: 22px; height: 22px; border-radius: 50%; border: none; background: #b3261e; color: #fff; font-size: 12px; line-height: 1; cursor: pointer; }
.photocount { margin-top: 4px; }
.photostrip video { height: 108px; max-width: 180px; border-radius: 10px; border: 1px solid var(--line); background: #000; }
.startline { background: #fff8e1; border: 1px solid #ffe082; border-radius: 10px; padding: 9px 12px; }
/* Proof (setup + customer page) */
.proofslot { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin: 10px 0; }
.proofslot h4 { margin: 0 0 8px; }
.proofbtns { display: flex; gap: 8px; flex-wrap: wrap; }
.proofpair { display: flex; gap: 10px; margin: 8px 0; }
.proofpair figure { margin: 0; flex: 1; min-width: 0; }
.proofpair img { width: 100%; height: 130px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); display: block; }
.proofpair figcaption { font-size: 12px; font-weight: 700; text-align: center; margin-top: 4px; color: var(--navy); }
.checkline { display: flex; flex-direction: row; align-items: center; gap: 8px; font-weight: 600; margin-top: 8px; }
.checkline input { width: auto; }
.ratingline { font-size: 16px; font-weight: 700; }
/* Availability */
.daychecks { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.daycheck { display: flex; flex-direction: row; align-items: center; gap: 5px; background: #eef3f8; border-radius: 999px; padding: 6px 11px; font-weight: 700; }
.daycheck input { width: auto; }
.blockedlist { list-style: none; padding: 0; margin: 6px 0; }
.blockedlist li { display: flex; align-items: center; gap: 10px; padding: 4px 0; }
.inlineform { display: inline; }
