body.client { background: #f6f4f0; }
.previewbar { background: #fff4d6; color: #6b4e00; text-align: center; padding: 8px; font-size: 13px; font-weight: 600; }
.hero { background: linear-gradient(135deg, #0d88a7, #0a6f89); color: #fff; padding: 28px 24px 22px; }
/* Kris, Nov 24 2026: use the website blue (#0d88a7) instead of navy on the client page */
body.client .top { background: #0d88a7; }
body.client .mark { background: #fff; color: #0d88a7; }
.hero .in { max-width: 1100px; margin: 0 auto; }
.hero h1 { font-size: 28px; font-weight: 700; letter-spacing: -.01em; }
.hero .addr { opacity: .85; margin-top: 4px; }
.hero .chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.hero .chip { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); border-radius: 10px; padding: 8px 12px; min-width: 150px; }
.hero .chip b { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #fff3d9; font-weight: 700; }
.ctabs { position: sticky; top: 0; z-index: 5; background: #fff; border-bottom: 1px solid var(--line); display: flex; gap: 2px; overflow-x: auto; padding: 0 16px; }
.ctabs a { padding: 13px 14px; color: var(--muted); font-weight: 600; white-space: nowrap; border-bottom: 3px solid transparent; }
.ctabs a:hover { text-decoration: none; color: var(--char); }
.ctabs a.on { color: var(--char); border-bottom-color: var(--gold); }
body.client main { max-width: 1100px; }
.cardgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin: 14px 0; }
.ocard { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.ocard b { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--gold); margin-bottom: 4px; }
.ocard .big { font-size: 16px; font-weight: 700; }
.ocard p { margin: 6px 0 0; color: var(--muted); line-height: 1.45; }
.glance p { line-height: 1.55; margin: 0 0 10px; } .glance h3 { font-size: 13px; margin: 14px 0 4px; color: var(--teal); text-transform: uppercase; letter-spacing: .05em; }
.tl { list-style: none; margin: 0; padding: 0; }
.tl li { display: grid; grid-template-columns: 120px 1fr auto; gap: 12px; padding: 9px 4px; border-bottom: 1px solid var(--line); align-items: center; }
.tl li.today { border-top: 2px solid var(--gold); }
.tl .d { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13px; }
.tl li.done { color: var(--muted); } .tl li.done .t { text-decoration: line-through; }
.tag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: #eef1f3; color: var(--muted); }
.tag.green { background: #e3f4ea; color: #127a3a; } .tag.amber { background: #fff1d6; color: #8a5a00; } .tag.teal { background: #e6f3f6; color: var(--teal); } .tag.red { background: #fde7e5; color: #b42318; }
.files a.f { display: flex; justify-content: space-between; gap: 12px; padding: 9px 4px; border-bottom: 1px solid var(--line); color: var(--char); }
.files a.f:hover { background: #f0f8fa; text-decoration: none; }
details.sec { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin: 12px 0; padding: 4px 16px; }
details.sec summary { cursor: pointer; padding: 10px 0; font-weight: 700; }
.empty { color: var(--muted); padding: 10px 0; }
.note { background: #fff; border-left: 3px solid var(--gold); padding: 10px 14px; border-radius: 6px; color: var(--muted); margin: 10px 0; }
@media (max-width: 640px) { .tl li { grid-template-columns: 92px 1fr; } .tl li .tag { grid-column: 2; justify-self: start; } .hero h1 { font-size: 22px; } }

.login { text-align: left; } .login h2 { font-size: 20px; margin-bottom: 8px; }
.login label { display: block; font-weight: 600; font-size: 13px; margin: 12px 0 0; }
.login input { display: block; width: 100%; margin-top: 6px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 16px; }
.login .btn { width: 100%; margin-top: 16px; padding: 12px; font-size: 15px; } .login .err { min-height: 1em; margin: 8px 0 0; }

.q { margin: 14px 0; border: 0; padding: 0; } .q > label, .q legend { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.q input[type=text], .q input[type=email], .q input[type=tel], .q input[type=number], .q input[type=date], .q textarea, .q .other { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 16px; }
.q .other { margin-top: 8px; } .opts { display: flex; flex-wrap: wrap; gap: 6px 14px; } .opt { font-weight: 400; font-size: 14px; display: inline-flex; gap: 6px; align-items: flex-start; }
.ups { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; } .latestplan h2 { font-size: 20px; margin: 8px 0 2px; } .latestplan .btn { display: inline-block; text-decoration: none; }

.phbox { border: 2px dashed var(--line); border-radius: 12px; padding: 10px; margin-top: 6px; } .phbox.over { border-color: var(--teal); background: #eef7fa; }
.phgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.ph { position: relative; margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.ph img, .ph .pdf { display: grid; place-items: center; width: 100%; height: 120px; object-fit: cover; background: #f2f4f6; color: var(--muted); font-weight: 700; text-decoration: none; }
.ph figcaption { padding: 6px; font-size: 12px; } .ph .cap { width: 100%; border: 0; border-top: 1px solid var(--line); padding: 6px 2px; font: inherit; font-size: 13px; }
.ph .rm { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 16px; line-height: 26px; cursor: pointer; }
.ph.err .pdf { color: #b42318; font-size: 12px; text-align: center; padding: 8px; }
.addph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; margin-top: 10px; padding: 14px; border-radius: 10px; background: #eef7fa; color: var(--teal); cursor: pointer; text-align: center; }
.addph span { font-weight: 700; font-size: 15px; } .addph small { color: var(--muted); }
/* Nov 26 2026: long unbroken file names (underscores) wrap on phones instead of pushing the page sideways */
.files a.f > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.files a.f > span.muted { flex-shrink: 0; white-space: nowrap; }
/* service item photos on the client warranty list (Nov 26 2026) */
.tl .svph { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tl .svph img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); display: block; }
.tl li.done .svph { text-decoration: none; }

/* option / standard doc notes, e.g. the permanent lights app PIN (Nov 26 2026) */
.files .f .fnote { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }

/* item 7 #31: client progress photos */
.cprog h2{margin:0 0 4px}.cprog .wk{border-top:1px solid #e3e8ec;padding:10px 0}.cprog .wk:first-of-type{border-top:0}.cprog h3{margin:0 0 8px;font-size:15px}
.cprog .grid4{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px}.cprog figure{margin:0}.cprog img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:8px;background:#eef2f4;display:block}
.cprog figcaption{font-size:12px;color:#5b6b75;margin-top:3px}.cprog .more{font-size:12px;color:#5b6b75}

/* item 7 #33: client warranty request */
.wreq summary { cursor: pointer; }
.wrf { display: grid; gap: 10px; margin-top: 10px; }
.wrf label { display: grid; gap: 4px; font-size: 14px; }
.wrf input, .wrf textarea { font: inherit; padding: 8px; border: 1px solid var(--line); border-radius: 8px; max-width: 100%; box-sizing: border-box; }
.wrok { background: #e8f5ec; border: 1px solid #b9dfc5; color: #1d5e33; border-radius: 10px; padding: 10px 12px; }

/* item 7 #32: client Job cost totals, how to read, print */
.ctot { margin-top: 0; }
.cbar { display: flex; gap: 10px; align-items: center; margin: 0 0 12px; flex-wrap: wrap; }
.howread summary { cursor: pointer; font-weight: 700; color: var(--teal, #0d88a7); }
.howread[open] summary { margin-bottom: 8px; }
.howread p, .howread li { line-height: 1.5; }
.howread ul { padding-left: 20px; }
@media print {
  header.top, #tabs, .ctabs, footer.foot, #preview, .previewbar, .noprint, .cneeds, button { display: none !important; }
  body { background: #fff; }
  .hero { padding: 0 0 8px; background: none !important; color: #000 !important; }
  .hero .chips { display: none; }
  .card, .ocard { box-shadow: none !important; break-inside: avoid; }
  .tablewrap { overflow: visible !important; }
  details.howread > *:not(summary) { display: block; }
}

/* csp fix: from esign-client.js (its injected <style> is blocked by CSP) */
.esign{max-width:880px;margin:14px auto 0;padding:0 14px}.esign .card{border-left:4px solid #c8a96e}.esign h2{margin:0 0 4px;font-size:18px}
  .esign .sr{border-top:1px solid #e3e8ec;padding:12px 0}.esign .sr:first-of-type{border-top:0}.esign .sigpad{width:100%;max-width:520px;height:150px;border:1px dashed #8aa;border-radius:8px;background:#fff;touch-action:none;display:block}
  .esign input[type=text]{width:100%;max-width:520px;padding:10px;font-size:16px;border:1px solid #ccd;border-radius:6px}.esign label{display:block;margin:10px 0 4px;font-weight:600;font-size:14px}
  .esign .row{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:10px}.esign .agree{font-weight:400;display:flex;gap:8px;align-items:flex-start}.esign .err{color:#b42318;min-height:1em}
  .esign .ok{color:#0a6f89;font-weight:600}.esign textarea{width:100%;max-width:520px;min-height:70px;padding:8px;font-size:15px}.esign .done a{margin-right:8px}
/* end csp fix: esign-client.js */

/* csp fix: from client-msgs.js (its injected <style> is blocked by CSP) */
.cmsg-bar{display:flex;gap:8px;align-items:center;margin-left:auto}.cmsg-bar button{background:#fff;color:#0a6f89;border:1px solid #0d88a7;border-radius:18px;padding:6px 12px;font-size:14px;cursor:pointer;position:relative}
  .cmsg-bar .badge{background:#c8a96e;color:#fff;border-radius:10px;padding:0 6px;font-size:12px;margin-left:4px;font-weight:700}
  .cmsg{max-width:880px;margin:14px auto 0;padding:0 14px}.cmsg .card{border-left:4px solid #0d88a7}.cmsg h2{margin:0 0 6px;font-size:18px}
  .cmsg .n{padding:9px 0;border-top:1px solid #e3e8ec;cursor:pointer}.cmsg .n:first-of-type{border-top:0}.cmsg .n.unread b::before{content:'';display:inline-block;width:8px;height:8px;border-radius:4px;background:#c8a96e;margin-right:6px}
  .cmsg label{display:block;margin:10px 0 4px;font-weight:600;font-size:14px}.cmsg select,.cmsg textarea{width:100%;max-width:560px;padding:9px;font-size:16px;border:1px solid #ccd;border-radius:6px;box-sizing:border-box}
  .cmsg textarea{min-height:90px}.cmsg .err{color:#b42318;min-height:1em}.cmsg .ok{color:#0a6f89;font-weight:600}.cmsg .q{border-top:1px solid #e3e8ec;padding:10px 0}
  .cmsg .m{margin:6px 0;padding:8px 10px;border-radius:8px;background:#f3f6f8;max-width:600px}.cmsg .m.staff{background:#eef6f9;border-left:3px solid #0d88a7}.cmsg .row{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:8px}
/* end csp fix: client-msgs.js */

/* csp fix: from draws-client.js (its injected <style> is blocked by CSP) */
.cdraws{max-width:880px;margin:14px auto 0;padding:0 14px}.cdraws .card{border-left:4px solid #0d88a7}.cdraws h2{margin:0 0 6px;font-size:18px}
  .cdraws .d{border-top:1px solid #e3e8ec;padding:10px 0;display:flex;flex-wrap:wrap;gap:6px 16px;align-items:baseline}.cdraws .d:first-of-type{border-top:0}
  .cdraws .d .t{flex:1 1 260px}.cdraws .d .a{font-weight:700}.cdraws .owing{color:#9a5b00;font-weight:600}.cdraws .paid{color:#0a6f89;font-weight:600}.cdraws .sum{font-size:14px;color:#445;margin:4px 0 8px}
/* end csp fix: draws-client.js */

/* csp fix: from needs-client.js (its injected <style> is blocked by CSP) */
.cneeds{max-width:880px;margin:14px auto 0;padding:0 14px}.cneeds .card{border-left:4px solid #c8a96e}.cneeds h2{margin:0 0 6px;font-size:18px}
  .cneeds ul{list-style:none;margin:0;padding:0}.cneeds li{display:flex;gap:10px;align-items:baseline;justify-content:space-between;flex-wrap:wrap;border-top:1px solid #e3e8ec;padding:9px 0}
  .cneeds li:first-child{border-top:0}.cneeds .k{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:#0a6f89;margin-right:6px}
  .cneeds .late{color:#b42318;font-weight:600}.cneeds .w{flex:1 1 240px;min-width:0;overflow-wrap:anywhere}.cneeds a.go{white-space:nowrap}
/* end csp fix: needs-client.js */

/* item 8 #3 client concierge */
.cconc{max-width:880px;margin:14px auto 0;padding:0 14px}.cconc .card{border-left:4px solid #0d88a7}.cconc summary{cursor:pointer}
.cconc .cc-ask{display:flex;gap:8px;margin:10px 0 4px;flex-wrap:wrap}.cconc .cc-ask input{flex:1 1 240px;min-width:0;padding:9px;font-size:16px;border:1px solid #ccd;border-radius:6px}
.cconc .cc-item{border-top:1px solid #e3e8ec;padding:10px 0}.cconc .cc-q{font-weight:600;margin-bottom:4px}.cconc .cc-a ul{margin:4px 0;padding-left:18px}.cconc .cc-a li{margin:2px 0;overflow-wrap:anywhere}
.cconc .cc-ai{display:inline-block;font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;background:#eef6f9;color:#0a6f89;border-radius:9px;padding:1px 7px}
.cconc .cc-hand{margin-top:6px;display:flex;gap:8px;align-items:center;flex-wrap:wrap}.cconc .ok{color:#0a6f89;font-weight:600}.cconc .err{color:#b42318}

/* item 9 client file uploads */
.cfiles{max-width:880px;margin:14px auto;padding:0 14px}.cfiles .card{border-left:4px solid #0d88a7}.cfiles h3.cf-h{font-size:15px;margin:14px 0 4px}
.cfiles .cf-up{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:8px 0}.cfiles .cf-up input[type=text]{flex:1 1 220px;min-width:0;padding:9px;font-size:16px;border:1px solid #ccd;border-radius:6px}
.cfiles .cf-up input[type=file]{max-width:100%;font-size:14px}.cfiles .cf-list{list-style:none;margin:0;padding:0}
.cfiles .cf-list li{display:flex;gap:10px;justify-content:space-between;align-items:center;flex-wrap:wrap;border-top:1px solid #e3e8ec;padding:9px 0}
.cfiles .cf-w{flex:1 1 240px;min-width:0;overflow-wrap:anywhere}.cfiles .cf-w a{font-weight:600;margin-right:6px}.cfiles .cf-filed{color:#0a6f89;font-weight:600;font-size:13px}
.cfiles .ok{color:#0a6f89;font-weight:600}.cfiles .err{color:#b42318}

/* item 10 D budget confidentiality gate */
.bgate { border-left: 4px solid var(--gold, #c8a96e); }
.bgate-text { background: #f7f5ef; border-radius: 8px; padding: 12px 14px; line-height: 1.55; margin: 10px 0 14px; }
.bgf { display: grid; gap: 10px; max-width: 460px; }
.bgf label { display: grid; gap: 4px; }
.bgf .bgchk { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.bgf input[name=name] { padding: 8px 10px; border: 1px solid #cfd6da; border-radius: 6px; font: inherit; }

/* Questions 39: inline styles moved out of the scripts (CSP style-src self) */
[data-sty="ml-auto"]{margin-left:auto !important}
[data-sty="w-full"]{width:100% !important}
[data-sty="w150"]{width:150px !important}
[data-sty="w130"]{width:130px !important}
[data-sty="minh50"]{min-height:50px !important}
[data-sty="mt14"]{margin-top:14px !important}
[data-sty="ws-normal"]{white-space:normal !important}
[data-sty="c-bad"]{color:#b54 !important}
[data-sty="w140"]{width:140px !important}
[data-sty="w200"]{width:200px !important}
[data-sty="ws-preline"]{white-space:pre-line !important}
[data-sty="w170"]{width:170px !important}
[data-sty="w70"]{width:70px !important}
[data-sty="w60"]{width:60px !important}
[data-sty="w120"]{width:120px !important}
[data-sty="w100"]{width:100px !important}
[data-sty="q-item"]{border-top:1px solid #e3e8ec !important;padding:10px 0 !important}
[data-sty="w-full-bb"]{width:100% !important;box-sizing:border-box !important}
[data-sty="tgrid-cols"]{grid-template-columns:repeat(auto-fill,minmax(min(330px,100%),1fr)) !important}
[data-sty="tperson"]{min-width:0 !important;max-width:100% !important;box-sizing:border-box !important;overflow-wrap:anywhere !important}
[data-sty="w-full-fixed"]{width:100% !important;table-layout:fixed !important}
[data-sty="w34-ws"]{width:34% !important;white-space:normal !important}
[data-sty="wrap-any"]{overflow-wrap:anywhere !important}
[data-sty="block-mt8"]{display:block !important;margin-top:8px !important}
[data-sty="block"]{display:block !important}
[data-sty="c-ok"]{color:#2a7a3b !important}
[data-sty="qm-staff"],[data-sty="qm-client"]{margin:6px 0 !important;padding:6px 9px !important;border-radius:6px !important}[data-sty="qm-staff"]{background:#eef6f9 !important}[data-sty="qm-client"]{background:#f3f6f8 !important}
@media (max-width:760px){.teamgrid{display:block!important}.teamgrid>.tperson{width:auto;max-width:100%}}
/* end Questions 39 */

/* item 10 A preliminary estimate */
.prelim { border-left: 4px solid var(--gold, #c8a96e); }
.prange { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.prange > div { flex: 1 1 90px; background: #f7f5ef; border-radius: 8px; padding: 10px 12px; display: grid; gap: 2px; }
.prange > div b { font-size: 18px; }
.prange .pmid { background: #e6f3f6; }
.pgate { margin-bottom: 14px; }

/* Nov 29 2026 (Kris Nov 28): Current / Not most current labels on document lists */
.curl{display:inline-block;margin-left:6px;padding:0 6px;border-radius:9px;font-size:11px;font-weight:600;vertical-align:middle}
.curl.cur{background:#e3f4ea;color:#1d6b3a}
.curl.notcur{background:#f3eee2;color:#7a6331}
.f.old>span:first-child{opacity:.75}

/* Nov 29 2026 (Kris Nov 28): plans version description + what changed on the client's Plans tab */
.latestplan .plnote,.latestplan .plchg{margin:.4rem 0;font-size:14px;line-height:1.45}
.latestplan .plchg .tag{font-size:10px;padding:0 5px;vertical-align:middle}

/* deep pass Nov 27: phone tap targets (client header buttons) */
@media (max-width: 640px) { .cmsg-bar button, #so { min-height: 40px; padding: 8px 14px; } }
