/* ── Deck Doc Estimator — shared styles ────────────────────────────────
   One look with the Deck Doc projects app (project.chicagodeckdoc.com),
   which takes its palette from chicagodeckdoc.com: green CTAs, espresso
   wood, cream. Tokens and components mirror that app's
   src/views/layouts/main.handlebars so the two feel like one product.
   Error and delete states stay red on purpose.

   Fonts are self-hosted (techs are often on weak mobile signal).
   Rules follow chicagodeckdoc/css/fonts.css; Work Sans is a single
   variable file, so one face covers weights 400–600. */

@font-face{font-family:"Poppins";font-style:normal;font-weight:600;font-display:swap;src:url("fonts/Poppins-600-latin-ext.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Poppins";font-style:normal;font-weight:600;font-display:swap;src:url("fonts/Poppins-600-latin.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Poppins";font-style:normal;font-weight:700;font-display:swap;src:url("fonts/Poppins-700-latin-ext.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Poppins";font-style:normal;font-weight:700;font-display:swap;src:url("fonts/Poppins-700-latin.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Poppins";font-style:normal;font-weight:800;font-display:swap;src:url("fonts/Poppins-800-latin-ext.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Poppins";font-style:normal;font-weight:800;font-display:swap;src:url("fonts/Poppins-800-latin.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Work Sans";font-style:normal;font-weight:400 600;font-display:swap;src:url("fonts/WorkSans-latin-ext.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Work Sans";font-style:normal;font-weight:400 600;font-display:swap;src:url("fonts/WorkSans-latin.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

/* ── Tokens ─────────────────────────────────────────────────────────── */
:root{
  --primary:#4E9E3E;        /* green: buttons, links, focus */
  --primary-dark:#3F8F33;
  --grad:linear-gradient(135deg,#6BBF59 0%,#3F8F33 100%);  /* primary buttons, hero tile */
  --leaf:#5BA94C;           /* focus rings, selected borders */
  --espresso:#2A2018;       /* darkest brown: nav, headings, total card */
  --deep:#3D2C1C;
  --ink:#2A2018;
  --muted:#8a7d6d;
  --line:#EAE1D3;
  --bg:#F4EEE4;             /* cream page background */
  --card:#fff;
  --radius:18px;
  /* supporting tones, all lifted from the projects app's components */
  --label:#5a4a39;
  --field-line:#e2d7c7;
  --soft:#faf6ef;
  --tint:#EAF3E7;
  --tint-line:#cfe6c6;
  --mint:#8fd97e;           /* figures on the dark total card */
  --sand:#d8c4ad;           /* secondary text on espresso */
  --gold:#B8862F;
  --gold-bg:#F5EAD9;
  --danger:#c0392b;
  --danger-bg:#fdeaea;
  --danger-line:#f3c9c9;
  --head:"Poppins","Work Sans",sans-serif;
  --body:"Work Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;min-height:100vh;font-family:var(--body);color:var(--ink);background:radial-gradient(1100px 520px at 85% -12%,rgba(107,191,89,.08),transparent),radial-gradient(820px 460px at -6% 6%,rgba(61,44,28,.07),transparent),var(--bg);background-attachment:fixed}
h1,h2,h3{font-family:var(--head)}
a{color:var(--primary-dark)}
code{background:#f1ece2;padding:1px 5px;border-radius:5px;font-size:.9em;color:var(--deep)}
[hidden]{display:none !important}
svg.ic{width:18px;height:18px;stroke:currentColor;stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0;vertical-align:-3px}

/* ── Shell: espresso icon rail (tablet + desktop) ───────────────────── */
.rail{width:82px;background:linear-gradient(180deg,var(--espresso) 0%,var(--deep) 100%);color:#f3e7d8;border-radius:22px;display:flex;flex-direction:column;align-items:center;padding:16px 8px;position:fixed;top:14px;bottom:14px;left:14px;z-index:10}
.rail .brand{display:flex;flex-direction:column;align-items:center;gap:6px;text-decoration:none;margin-bottom:14px}
.rail .brand .logo{width:40px;height:40px;border-radius:12px;background:#fff;padding:5px;object-fit:contain;display:block}
.rail .brand b{font-family:var(--head);font-size:11px;font-weight:700;color:#fff;letter-spacing:.3px}
.rail-nav{display:flex;flex-direction:column;gap:6px;flex:1;width:100%;align-items:center;overflow:auto}
.nav-item{display:flex;flex-direction:column;align-items:center;gap:4px;width:66px;padding:9px 4px;border-radius:14px;color:var(--sand);text-decoration:none;text-align:center}
.nav-item svg{width:21px;height:21px;stroke:#cbb08f;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.nav-item span{font-size:10px;font-weight:600;line-height:1.1;font-family:var(--head)}
.nav-item:hover{background:rgba(255,255,255,.06);color:#fff}
.nav-item.active{background:rgba(107,191,89,.20);color:#fff}
.nav-item.active svg{stroke:var(--mint)}
.rail-user{margin-top:8px;display:flex;flex-direction:column;align-items:center;gap:6px}
.rail-user .av{width:38px;height:38px;border-radius:50%;background:var(--grad);color:#fff;display:flex;align-items:center;justify-content:center}
.rail-user .av svg{width:19px;height:19px;stroke:#fff;stroke-width:2;fill:none}
.rail-user .nm{font-size:10px;color:#e7d2ba;font-weight:600;max-width:70px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center}
.rail-user form{margin:0}
.rail-user button{background:rgba(0,0,0,.2);border:none;color:#e7d2ba;cursor:pointer;font-size:10px;font-family:var(--head);font-weight:600;padding:6px 10px;border-radius:9px}
.rail-user button:hover{color:#fff;background:rgba(0,0,0,.35)}

/* Main column + page header */
.wrap{margin-left:110px;padding:14px 20px 0 0;min-width:0}
.topbar{display:flex;align-items:center;gap:14px;padding:6px 6px 20px}
.topbar .head-l{flex:1;min-width:0}
.topbar h1{margin:0;flex:1;min-width:0;font-weight:800;font-size:26px;color:var(--espresso);line-height:1.1}
.topbar .sub{color:var(--muted);font-size:13.5px;margin-top:4px}
.topbar .back{display:inline-flex;align-items:center;gap:6px;height:40px;padding:0 14px 0 9px;border-radius:12px;border:1px solid var(--line);background:#fff;color:var(--espresso);font:600 13px var(--head);text-decoration:none;flex-shrink:0}
.topbar .back:hover{border-color:var(--leaf);background:#eef6ea}
.topbar .back svg{width:18px;height:18px;stroke:currentColor;stroke-width:2.2;fill:none;stroke-linecap:round;stroke-linejoin:round}
.topbar .tb-mark{display:none;width:36px;height:36px;border-radius:11px;background:#fff;padding:4px;flex-shrink:0}
.topbar .tb-mark img{width:100%;height:100%;object-fit:contain;display:block}
.topbar .logout-form{margin:0;display:none}
.topbar .logout{background:rgba(0,0,0,.22);border:none;color:#e7d2ba;font:600 11px var(--head);padding:9px 11px;border-radius:9px;cursor:pointer;white-space:nowrap}
main{padding:2px 6px 44px;max-width:780px;width:100%}
main.wide{max-width:1040px}

/* Full-screen sub-pages of the estimate form (repairs, draft, multiplier) */
.repairs-screen{position:fixed;top:0;right:0;bottom:0;left:110px;padding:14px 20px 0 0;background:var(--bg);overflow-y:auto;z-index:200}

/* Phones: the long form needs the full width, so the rail gives way to a
   compact espresso top bar. */
@media(max-width:820px){
  .rail{display:none}
  .wrap{margin-left:0;padding:0}
  .topbar{position:sticky;top:0;z-index:20;gap:10px;padding:10px 12px;padding-top:calc(10px + env(safe-area-inset-top));background:linear-gradient(90deg,var(--espresso),var(--deep));box-shadow:0 2px 12px rgba(42,32,24,.18)}
  .topbar h1{color:#fff;font-size:16px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .topbar .sub{display:none}
  .topbar .back{height:36px;padding:0 11px 0 6px;background:rgba(255,255,255,.09);border-color:transparent;color:#e7d2ba;font-size:12px}
  .topbar .back:hover{background:rgba(255,255,255,.16);border-color:transparent}
  .topbar .tb-mark{display:block}
  .topbar .logout-form{display:block}
  main,main.wide{padding:14px 14px 40px;max-width:none}
  .repairs-screen{left:0;padding:0}
}

/* ── Cards, fields, buttons ─────────────────────────────────────────── */
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:20px;margin-bottom:16px;box-shadow:0 3px 16px rgba(42,32,24,.05)}
.card h2{margin:0 0 14px;font-size:16px;font-weight:700;color:var(--espresso)}
.card-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}
.card-head h2{margin:0}
.card.accent{border-color:var(--leaf)}
.card.project-card{background:#f6faf4;border-color:var(--tint-line)}
.card.debris-card{background:#fbf6ec;border-color:#ecdcbf}
.card.center{text-align:center}
@media(max-width:820px){.card{padding:16px;margin-bottom:14px}}

label,.group-label,.sub-label{display:block;font-family:var(--head);font-size:13px;font-weight:600;margin-bottom:6px;color:var(--label)}
.sub-label{font-size:12.5px}
input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea{width:100%;padding:12px;font-size:16px;border:1px solid var(--field-line);border-radius:11px;font-family:inherit;background:#fff;color:var(--ink)}
textarea{line-height:1.5;resize:vertical}
input:focus,select:focus,textarea:focus{outline:2px solid var(--leaf);outline-offset:0;border-color:var(--leaf)}
input[type=checkbox]{accent-color:var(--primary)}
.field{margin-bottom:16px}
.field:last-child{margin-bottom:0}
.field-group{margin-top:16px}
.hint{color:var(--muted);font-size:13px;margin-top:6px;line-height:1.45}
.muted{color:var(--muted);font-size:13px}
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:12px}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:none;border-radius:14px;padding:14px 22px;font-family:var(--head);font-size:15px;font-weight:700;line-height:1.2;text-align:center;text-decoration:none;cursor:pointer;transition:filter .15s,transform .05s}
.btn:active{transform:translateY(1px)}
.btn svg{width:17px;height:17px;stroke:currentColor;stroke-width:2.2;fill:none;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.btn.primary{width:100%;background:var(--grad);color:#fff;font-size:16px;padding:16px 22px;box-shadow:0 8px 20px rgba(63,143,51,.24)}
.btn.primary:hover:not(:disabled){filter:brightness(1.04)}
.btn.secondary{background:#fff;color:var(--primary-dark);border:2px solid var(--leaf);padding:12px 20px}
.btn.secondary:hover:not(:disabled){background:#eef6ea}
.btn.danger{background:#fff;color:#c62828;border:2px solid #ef9a9a;padding:12px 20px}
.btn.danger:hover:not(:disabled){background:var(--danger-bg)}
.btn.auto{width:auto}
.btn.sm{padding:8px 14px;font-size:13px;border-radius:12px}
.btn.sm.primary{padding:10px 16px;box-shadow:none}
.btn:disabled,.btn.disabled{opacity:.5;cursor:not-allowed;box-shadow:none;filter:none}
.btn.busy{opacity:.6;pointer-events:none}

.ibtn{width:40px;height:40px;border-radius:12px;display:inline-grid;place-items:center;border:1px solid var(--line);background:#fff;cursor:pointer;text-decoration:none;flex-shrink:0;padding:0}
.ibtn svg{width:18px;height:18px;stroke:var(--espresso);stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round}
.ibtn.r{background:var(--danger-bg);border-color:var(--danger-line)}
.ibtn.r svg{stroke:var(--danger)}
.ibtn:hover{filter:brightness(.97)}
.ibtn.sm{width:34px;height:34px;border-radius:10px}
.ibtn.sm svg{width:16px;height:16px}

.dollar-input{display:flex;border:1px solid var(--field-line);border-radius:11px;overflow:hidden;background:#fff}
.dollar-input:focus-within{outline:2px solid var(--leaf);border-color:var(--leaf)}
.dollar-input span{background:var(--soft);padding:12px 13px;color:var(--muted);font-weight:600;border-right:1px solid var(--line)}
.dollar-input input:not([type=checkbox]){flex:1;min-width:0;border:none;border-radius:0;outline:none}

.error-banner{display:none;background:#ffebee;color:#c62828;border:1px solid #ef9a9a;padding:12px 14px;border-radius:11px;margin-bottom:16px}
.error-inline{display:none;background:#ffebee;color:#c62828;border:1px solid #ef9a9a;padding:10px 12px;border-radius:11px;margin-top:10px;font-size:14px}
.notice{background:#eef6ea;color:#2f6d22;border:1px solid #b9e0a9;padding:11px 14px;border-radius:11px;font-size:14px;line-height:1.45}
.notice.warn{background:#fff8e1;color:#7a5400;border-color:#f0dca0}
.placeholder{color:var(--muted);background:#fff;padding:22px;border-radius:var(--radius);border:1px dashed var(--field-line);text-align:center;font-size:14px}
.placeholder.err{color:#c62828;background:#ffebee;border:1px solid #ef9a9a}

/* Check rows (projects-app "check-row" treatment) */
.check-line{display:flex;align-items:center;gap:10px;margin:0;padding:12px 14px;background:var(--soft);border:1px solid var(--line);border-radius:12px;font-family:var(--body);font-size:15px;font-weight:500;color:var(--ink);cursor:pointer}
.check-line input[type=checkbox]{width:20px;height:20px;cursor:pointer;flex:none}
.check-line:has(input:checked){border-color:var(--leaf);background:#f1f8ee}
.check-line.lead{font-weight:600}
.toggle{margin-top:10px}
.conditional{margin-top:10px;padding-left:14px;border-left:3px solid var(--tint-line)}
.conditional.flush{padding-left:0;border-left:none}

/* Status pills */
.status{display:inline-flex;align-items:center;gap:5px;font-family:var(--head);font-weight:700;font-size:11px;line-height:1;padding:5px 11px;border-radius:20px;text-transform:capitalize;white-space:nowrap}
.status svg{width:12px;height:12px;stroke:currentColor;stroke-width:3;fill:none;stroke-linecap:round;stroke-linejoin:round}
.status.draft{background:#fff8e1;color:#7a5400}
.status.sent{background:var(--tint);color:var(--primary-dark)}
.count-pill{background:var(--tint);color:var(--primary-dark);padding:2px 10px;border-radius:20px;font-size:13px;margin-left:6px}

/* ── Total card ─────────────────────────────────────────────────────── */
.total-card{background:linear-gradient(150deg,var(--espresso),var(--deep));border:none;color:#fff;box-shadow:0 8px 26px rgba(42,32,24,.16)}
.total-card h2{color:var(--sand);font-size:13px;letter-spacing:.06em;text-transform:uppercase}
.total-row{display:flex;justify-content:space-between;gap:14px;padding:7px 0;font-size:15px;color:#e7d9c8}
.total-row > :last-child{font-family:var(--head);font-weight:600;color:#fff;white-space:nowrap}
.total-row.subtotal{border-top:1px solid rgba(255,255,255,.14);margin-top:8px;padding-top:11px;color:#fff;font-weight:600}
.total-row.total{border-top:1px solid rgba(255,255,255,.14);margin-top:8px;padding-top:12px;align-items:baseline;color:#fff;font-family:var(--head);font-weight:700;font-size:17px}
.total-row.total > :last-child{font-weight:800;font-size:30px;line-height:1;color:var(--mint)}
.total-row.note{font-size:13px;color:var(--sand);padding-top:10px}
.total-row.note strong{color:#fff}

/* ── Action tiles (home) ────────────────────────────────────────────── */
.tiles{display:grid;grid-template-columns:2fr 1fr;gap:14px;margin-bottom:20px}
.tile{border-radius:20px;padding:20px;position:relative;overflow:hidden;min-height:132px;display:flex;flex-direction:column;justify-content:space-between;gap:14px;text-decoration:none;box-shadow:0 8px 26px rgba(42,32,24,.08);transition:transform .12s}
.tile .tic{width:46px;height:46px;border-radius:14px;display:grid;place-items:center}
.tile .tic svg{width:23px;height:23px;stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round}
.tile h3{font-size:17px;margin:0}
.tile p{margin:3px 0 0;font-size:12.5px}
.tile.hero{background:var(--grad);color:#fff}
.tile.hero .tic{background:rgba(255,255,255,.2)}
.tile.hero .tic svg{stroke:#fff}
.tile.hero p{color:rgba(255,255,255,.92)}
.tile.hero::after{content:"";position:absolute;right:-30px;bottom:-30px;width:130px;height:130px;border-radius:50%;background:rgba(255,255,255,.12)}
.tile.lite{background:#fff;color:var(--espresso);border:1px solid var(--line)}
.tile.lite .tic{background:var(--gold-bg)}
.tile.lite .tic svg{stroke:var(--gold)}
.tile.lite p{color:var(--muted)}
.tile:hover{transform:translateY(-2px)}
.tile.disabled{opacity:.55;pointer-events:none}
@media(max-width:820px){.tiles{grid-template-columns:1fr;gap:12px}.tile{min-height:0;flex-direction:row;align-items:center;justify-content:flex-start;padding:16px}}

.section-head{margin:24px 0 12px}
.section-head h2{margin:0;font-size:16px;font-weight:700;color:var(--espresso)}

/* ── Estimate list (home) ───────────────────────────────────────────── */
.estimate-list{display:flex;flex-direction:column;gap:12px}
.estimate-row{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:16px 18px;display:grid;grid-template-columns:1fr auto;gap:10px 16px;align-items:start;box-shadow:0 3px 16px rgba(42,32,24,.05)}
.estimate-row:hover{border-color:var(--leaf)}
.estimate-row .er-main{cursor:pointer;min-width:0}
.estimate-row .name{font-family:var(--head);font-weight:700;font-size:15.5px;color:var(--espresso);overflow-wrap:anywhere}
.estimate-row .meta{font-size:12.5px;color:var(--muted);margin-top:3px;line-height:1.45}
.estimate-row .er-side{text-align:right;display:flex;flex-direction:column;align-items:flex-end;gap:7px}
.estimate-row .total{font-family:var(--head);font-weight:800;font-size:18px;color:var(--espresso);white-space:nowrap}
.er-actions{grid-column:1 / -1;display:flex;flex-wrap:wrap;align-items:center;gap:8px;border-top:1px solid var(--line);padding-top:12px}
.er-actions .grow{flex:1}
.er-areas{margin-top:10px;display:flex;flex-direction:column;gap:6px}
.er-area-line{display:flex;align-items:center;gap:8px;padding:8px 8px 8px 10px;background:var(--soft);border:1px solid var(--line);border-radius:12px}
.er-area{flex:1;min-width:0;cursor:pointer;font-size:13.5px;color:var(--deep);line-height:1.35}
.er-area b{font-family:var(--head);font-weight:600;color:var(--espresso)}
.er-area .ok{color:var(--primary-dark)}

/* ── Structure picker + step tracker ────────────────────────────────── */
.steps{display:flex;gap:8px;margin-bottom:18px;flex-wrap:wrap}
.step{display:flex;align-items:center;gap:8px;font-family:var(--head);font-weight:600;font-size:12.5px;color:var(--muted);background:var(--soft);border:1px solid var(--line);padding:8px 13px;border-radius:20px}
.step .sn{width:20px;height:20px;border-radius:50%;background:#e6ddce;color:var(--muted);display:grid;place-items:center;font-size:11px;font-weight:700}
.step.on{color:#fff;background:var(--grad);border-color:transparent}
.step.on .sn{background:rgba(255,255,255,.25);color:#fff}
.intro{color:var(--label);margin:4px 0 12px;font-family:var(--head);font-weight:600;font-size:14px}
.svc-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:12px}
.svc{position:relative;border:1.5px solid var(--line);border-radius:16px;padding:18px 12px 16px;text-align:center;cursor:pointer;background:#fff;text-decoration:none;display:block;color:var(--espresso)}
.svc .svic{width:48px;height:48px;border-radius:14px;background:var(--bg);display:grid;place-items:center;margin:0 auto 10px}
.svc .svic svg{width:24px;height:24px;stroke:var(--deep);stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round}
.svc b{font-family:var(--head);font-size:14px;font-weight:700;display:block}
.svc small{display:block;margin-top:4px;font-family:var(--head);font-size:10px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--muted)}
.svc:hover{border-color:var(--leaf);box-shadow:0 8px 20px rgba(63,143,51,.12)}
.svc.ready .svic{background:var(--grad)}
.svc.ready .svic svg{stroke:#fff}
.svc.soon{opacity:.72}
@media(max-width:480px){.svc-grid{grid-template-columns:1fr 1fr}}

/* Today's appointments (from Jobber) */
.appt-list{display:flex;flex-direction:column;gap:8px}
.appt{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;width:100%;text-align:left;background:var(--soft);border:1px solid var(--line);border-radius:12px;padding:12px 14px;cursor:pointer;font-family:inherit;color:var(--ink)}
.appt:hover{border-color:var(--leaf);background:#f1f8ee}
.appt .time{font-family:var(--head);font-weight:700;color:var(--primary-dark);font-size:13px;white-space:nowrap}
.appt .name{font-family:var(--head);font-weight:600;font-size:14.5px;color:var(--espresso)}
.appt .meta{font-size:12.5px;color:var(--muted);margin-top:2px;overflow-wrap:anywhere}
.appt .arrow{display:grid;color:var(--muted)}
.tech-row{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.tech-row label{margin:0;white-space:nowrap}
.tech-row select{flex:1;min-width:0;padding:9px 10px;font-size:15px}
.prefill-banner{display:none;align-items:center;gap:12px;background:#eef6ea;border:1px solid var(--leaf);border-radius:var(--radius);padding:14px 16px;margin-bottom:16px}
.prefill-banner .label{flex:1;min-width:0}
.prefill-banner strong{font-family:var(--head);color:var(--espresso);display:block}
.prefill-banner .sub{color:var(--muted);font-size:12.5px}

/* ── Estimate form ──────────────────────────────────────────────────── */
.section-nav{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:16px}
.section-nav-btn{display:flex;flex-direction:column;align-items:center;gap:8px;padding:14px 8px 12px;font-family:var(--head);font-size:13px;font-weight:700;color:var(--espresso);background:#fff;border:1.5px solid var(--line);border-radius:16px;cursor:pointer;box-shadow:0 3px 16px rgba(42,32,24,.05)}
.section-nav-btn .snic{width:40px;height:40px;border-radius:12px;background:var(--tint);display:grid;place-items:center}
.section-nav-btn .snic svg{width:20px;height:20px;stroke:var(--primary-dark);stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round}
.section-nav-btn:hover{border-color:var(--leaf);box-shadow:0 8px 20px rgba(63,143,51,.12)}
.section-nav-btn.done{border-color:var(--leaf);background:#f6faf4}
.section-nav-btn.done .snic{background:var(--grad)}
.section-nav-btn.done .snic svg{stroke:#fff}

.photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:8px;margin-bottom:12px}
.photo-grid:empty{display:none}
.photo-tile{position:relative;aspect-ratio:1/1;border-radius:12px;overflow:hidden;border:3px solid transparent;background:var(--soft)}
.photo-tile[data-url]{cursor:pointer}
.photo-tile.design{border-color:var(--leaf)}
.photo-tile img{width:100%;height:100%;object-fit:cover;display:block}
.photo-tile .set-design,.photo-tile .label{position:absolute;bottom:0;left:0;right:0;background:rgba(42,32,24,.72);color:#fff;border:none;padding:6px 4px;font-family:var(--head);font-size:10.5px;font-weight:600;text-align:center}
.photo-tile .set-design{cursor:pointer}
.photo-tile.design .set-design,.photo-tile .label{background:var(--primary-dark)}
.photo-tile .remove{position:absolute;top:5px;right:5px;background:rgba(42,32,24,.75);color:#fff;border:none;width:24px;height:24px;border-radius:12px;cursor:pointer;line-height:1;font-size:15px}
.add-photo-btn{display:inline-flex;align-items:center;gap:8px;margin:0;background:#fff;color:var(--primary-dark);border:2px dashed var(--leaf);padding:12px 16px;border-radius:14px;font-family:var(--head);font-size:14px;font-weight:700;cursor:pointer}
.add-photo-btn:hover{background:#eef6ea}
.add-photo-btn svg{width:18px;height:18px;stroke:currentColor;stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round}
.design-controls{margin-top:16px;padding-top:16px;border-top:1px solid var(--line)}
.design-controls-row{display:flex;gap:8px}
.design-controls-row select{flex:1;min-width:0}
.render-preview,.photo-preview,.render-img{width:100%;border-radius:14px;border:1px solid var(--line);display:block;margin-top:10px}
.render-img{margin-top:0;cursor:zoom-in}
.render-caption{color:var(--muted);font-size:13px;margin-top:8px;text-align:center}
.render-label{color:var(--label);font-family:var(--head);font-size:13px;font-weight:600;margin:14px 0 0}
.render-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.render-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px;margin-top:12px}
.render-list:empty{display:none}
.render-tile{position:relative;border-radius:12px;overflow:hidden;border:1px solid var(--line);background:var(--soft)}
.render-tile img{width:100%;aspect-ratio:1/1;object-fit:cover;display:block}
.render-tile-cap{padding:7px 9px;font-family:var(--head);font-size:12px;font-weight:600;color:var(--label);line-height:1.3}
.render-tile .remove{position:absolute;top:5px;right:5px;background:rgba(42,32,24,.75);color:#fff;border:none;width:24px;height:24px;border-radius:12px;cursor:pointer;line-height:1;font-size:15px}
.pp-renders{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px;margin-top:12px}
.pp-renders figure{margin:0}
.pp-renders img{width:100%;border-radius:14px;display:block;cursor:zoom-in}
.pp-renders figcaption{font-family:var(--head);font-weight:600;font-size:13px;color:var(--label);margin-top:6px;text-align:center}

.structures-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.structures-grid label{display:flex;align-items:center;gap:9px;margin:0;font-family:var(--body);font-size:14.5px;font-weight:500;color:var(--ink);padding:11px 12px;border:1px solid var(--line);border-radius:12px;cursor:pointer;background:var(--soft)}
.structures-grid label:has(input:checked){border-color:var(--leaf);background:#f1f8ee}
.structures-grid input[type=checkbox]{width:18px;height:18px;flex:none}

.extra-item{display:grid;grid-template-columns:1fr 130px auto;gap:8px;margin-bottom:8px;align-items:center}
.extra-item > button{background:none;border:none;color:var(--danger);font-size:22px;line-height:1;cursor:pointer;padding:0 4px}
@media(max-width:480px){.extra-item{grid-template-columns:1fr 104px auto}}
.of-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}
.of-head label{margin:0}
.of-remove,.block-remove{background:none;border:none;color:#c62828;font-family:var(--head);font-weight:600;cursor:pointer;font-size:12.5px;padding:4px 0}

.success-card{background:#fff;border-radius:var(--radius);padding:32px 20px;text-align:center;border:1px solid var(--line);box-shadow:0 3px 16px rgba(42,32,24,.05)}
.success-card .okic{width:56px;height:56px;border-radius:50%;background:var(--grad);display:grid;place-items:center;margin:0 auto 14px;box-shadow:0 8px 20px rgba(63,143,51,.24)}
.success-card .okic svg{width:26px;height:26px;stroke:#fff;stroke-width:3;fill:none;stroke-linecap:round;stroke-linejoin:round}
.success-card h2{color:var(--espresso);margin:0 0 6px;font-size:20px}
.success-card p{margin:0;color:var(--muted)}
.success-card .actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:22px}

/* Repairs sub-page */
.repair-row{padding:14px 0;border-top:1px solid var(--line)}
.repair-row:first-child{border-top:none;padding-top:0}
.repair-row .rhead{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 14px}
.repair-row .rlabel{font-family:var(--head);font-weight:600;font-size:14.5px;color:var(--espresso)}
.repair-toggle{display:flex;align-items:center;gap:6px;margin:0;font-family:var(--body);font-size:13px;color:var(--deep);font-weight:600;cursor:pointer}
.repair-toggle input[type=checkbox]{width:17px;height:17px;flex:none}
.repair-mats{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
.repair-mats label{display:flex;align-items:center;gap:6px;margin:0;padding:7px 11px;font-family:var(--body);font-size:13px;color:var(--ink);font-weight:500;cursor:pointer;background:var(--soft);border:1px solid var(--line);border-radius:20px}
.repair-mats label:has(input:checked){border-color:var(--leaf);background:#f1f8ee}
.repair-mats input[type=checkbox]{width:16px;height:16px;flex:none}
.board-line{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:8px}
.board-line .bl-matlabel{font-family:var(--head);font-size:13px;font-weight:600;color:var(--deep);white-space:nowrap;min-width:110px}
.board-line select,.board-line input:not([type=checkbox]){width:auto;padding:9px 10px;font-size:15px;border-radius:10px}
.board-line .bl-board{flex:1;min-width:150px}
.board-line .bl-material{min-width:120px}
.board-line .bl-qty{width:70px;text-align:center}
.board-line .bl-price{width:120px;text-align:center}
.board-line .bl-body{display:contents}
.board-line .bl-custom-name{flex:1;min-width:150px}
.board-line .bl-matprice{width:110px;text-align:center}
.board-line .bl-remove{background:none;border:none;color:var(--danger);font-size:22px;cursor:pointer;padding:0 4px;line-height:1}
.addmore{background:none;border:none;color:var(--primary-dark);font-family:var(--head);font-weight:600;cursor:pointer;padding:9px 0 0;font-size:13px}
.addblock{display:block;width:100%;background:#fff;border:2px dashed var(--leaf);color:var(--primary-dark);font-family:var(--head);font-weight:700;cursor:pointer;padding:11px;border-radius:14px;font-size:13px;margin:4px 0 12px}
.addblock:hover{background:#eef6ea}
.repair-row.repair-flag{background:var(--danger-bg);border:1px solid var(--danger-line);border-radius:12px;padding:12px 14px;margin-top:12px}
.repair-row.repair-flag .repair-toggle{color:#c62828;margin-top:8px}
.repair-row.repair-flag .repair-toggle input[type=checkbox]{accent-color:#c62828}
.rb-line{display:grid;grid-template-columns:1fr auto;gap:2px 12px;padding:9px 0;border-top:1px solid var(--line)}
.rb-line:first-child{border-top:none}
.rb-line .rb-name{font-weight:600;color:var(--ink);font-size:14.5px}
.rb-line .rb-cost{font-family:var(--head);font-weight:600;color:var(--espresso);white-space:nowrap;font-size:14px}
.rb-line .rb-detail{grid-column:1 / -1;font-size:12.5px;color:var(--muted)}
.rb-line.flagged .rb-name,.rb-line.flagged .rb-cost{color:#c62828}
.rb-totals{margin-top:8px;padding-top:10px;border-top:2px solid var(--line)}
.rb-trow{display:flex;justify-content:space-between;padding:3px 0;font-size:14.5px;color:var(--label)}
.rb-trow.grand{font-family:var(--head);font-weight:700;color:var(--espresso);font-size:16px;margin-top:4px}

/* Estimate preview (the line items exactly as they go to Jobber) */
.dp-item{padding:12px 0;border-bottom:1px solid var(--line)}
.dp-head{display:flex;justify-content:space-between;align-items:baseline;gap:16px}
.dp-name{font-family:var(--head);font-weight:700;font-size:14.5px;color:var(--espresso)}
.dp-price{font-family:var(--head);font-weight:700;white-space:nowrap}
.dp-free{color:var(--muted);font-weight:600}
.dp-desc{margin-top:6px;white-space:pre-wrap;line-height:1.5;font-size:14px;color:var(--label)}
.dp-grand{border-bottom:none;border-top:2px solid var(--espresso);margin-top:4px}
.dp-grand .dp-name,.dp-grand .dp-price{font-size:18px}
.dp-grand .dp-price{color:var(--primary-dark)}
.terms-toggle{margin-top:10px}
.terms-toggle summary{cursor:pointer;color:var(--primary-dark);font-family:var(--head);font-weight:600;font-size:13px}
.terms-toggle .hint{white-space:pre-wrap}

/* ── Estimate view ──────────────────────────────────────────────────── */
.actions{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 16px}
.actions .btn{flex:1 1 150px}
.crm-status{margin:-4px 0 16px}
.row{display:flex;justify-content:space-between;gap:16px;padding:7px 0;font-size:15px;border-bottom:1px solid #f3ede2}
.row:last-child{border-bottom:none}
.row .label{color:var(--muted)}
.row .value{color:var(--ink);font-weight:600;text-align:right;overflow-wrap:anywhere}
.row .label.flag{color:#c62828;font-weight:600;display:inline-flex;gap:7px;align-items:flex-start}
.meta-grid{display:grid;grid-template-columns:1fr 1fr;gap:4px 20px}
.meta-grid .field{display:flex;flex-direction:column;gap:2px;padding:7px 0;margin:0}
.meta-grid .label{color:var(--muted);font-size:12.5px}
.meta-grid .value{color:var(--ink);font-weight:600;font-size:15px;overflow-wrap:anywhere}
@media(max-width:480px){.meta-grid{grid-template-columns:1fr}}
.scope-text{white-space:pre-wrap;line-height:1.5;font-size:14.5px;color:var(--label)}
.card.warn{border-color:#ef9a9a}
.card.warn h2{color:#c62828}
.total-card .row{border-bottom:none;color:#e7d9c8}
.total-card .row .label{color:#e7d9c8}
.total-card .row .value{font-family:var(--head);color:#fff;white-space:nowrap;overflow-wrap:normal}
.total-card .row.subtotal{border-top:1px solid rgba(255,255,255,.14);margin-top:8px;padding-top:11px}
.total-card .row.subtotal .label{color:#fff;font-weight:600}
.total-card .row.total{border-top:1px solid rgba(255,255,255,.14);margin-top:8px;padding-top:12px;align-items:baseline}
.total-card .row.total .label{color:#fff;font-family:var(--head);font-weight:700;font-size:17px}
.total-card .row.total .value{font-weight:800;font-size:30px;line-height:1;color:var(--mint)}
.total-card .row.note .label{font-size:13px;color:var(--sand)}
.total-card .row.note strong{color:#fff}
.lightbox{position:fixed;inset:0;background:rgba(20,14,9,.92);display:none;align-items:center;justify-content:center;z-index:300;padding:16px}
.lightbox.open{display:flex}
.lightbox img{max-width:100%;max-height:100%;border-radius:10px}
.lightbox .close{position:absolute;top:16px;right:16px;background:#fff;border:none;width:40px;height:40px;border-radius:12px;cursor:pointer;display:grid;place-items:center}
.lightbox .close svg{width:18px;height:18px;stroke:var(--espresso);stroke-width:2.4;fill:none;stroke-linecap:round}

/* ── Visualizer ─────────────────────────────────────────────────────── */
.brand-row{margin-bottom:14px}
.brand-row select{font-family:var(--head);font-size:16px;font-weight:700;color:var(--espresso);padding:14px 44px 14px 16px;border:2px solid var(--leaf);border-radius:14px;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A2018' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center / 18px}
.swatch-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:10px}
.swatch{border:2px solid var(--line);border-radius:14px;background:#fff;padding:0;cursor:pointer;overflow:hidden;text-align:center;font-family:inherit}
.swatch:hover{border-color:var(--tint-line)}
.swatch.selected{border-color:var(--primary);box-shadow:0 0 0 3px rgba(107,191,89,.22)}
.swatch .chip{display:block;width:100%;height:64px;background-size:cover;background-position:center}
.swatch .swatch-name{display:block;font-size:12px;font-weight:600;color:var(--ink);padding:6px 4px;line-height:1.25}
.swatch .noref{font-size:10px;color:var(--muted);display:block;padding-bottom:5px}

/* ── Coming soon / Jobber page ──────────────────────────────────────── */
.big-ic{width:64px;height:64px;border-radius:18px;background:var(--gold-bg);display:grid;place-items:center;margin:6px auto 14px}
.big-ic svg{width:30px;height:30px;stroke:var(--gold);stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round}
.conn{display:flex;align-items:center;gap:14px}
.conn .conn-ic{width:46px;height:46px;border-radius:14px;display:grid;place-items:center;background:var(--gold-bg);flex-shrink:0}
.conn .conn-ic svg{width:22px;height:22px;stroke:var(--gold);stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round}
.conn.ok .conn-ic{background:var(--tint)}
.conn.ok .conn-ic svg{stroke:var(--primary-dark)}
.conn b{font-family:var(--head);font-size:16px;color:var(--espresso);display:block}
.conn span{color:var(--muted);font-size:13.5px}
.btn-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}
.steps-list{margin:0;padding-left:20px;line-height:1.6;font-size:14.5px;color:var(--label)}
.steps-list li{margin-bottom:6px}
.kv{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:13px;background:var(--soft);border:1px solid var(--line);border-radius:10px;padding:10px 12px;white-space:pre-wrap;overflow-wrap:anywhere;margin-top:12px}

/* ── Login (split screen, as in the projects app) ───────────────────── */
body.login{background:var(--bg)}
.split{display:flex;min-height:100vh}
.visual{flex:1.1;position:relative;overflow:hidden;background:linear-gradient(120deg,var(--deep),var(--espresso))}
.visual .bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.6}
.visual::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(42,32,24,.35),rgba(42,32,24,.88))}
.visual .in{position:absolute;inset:0;z-index:2;padding:min(6vw,48px);display:flex;flex-direction:column;justify-content:space-between;color:#fff}
.brandmark{display:flex;align-items:center;gap:13px}
.brandmark .lg{width:60px;height:60px;border-radius:16px;background:rgba(255,255,255,.94);display:grid;place-items:center;box-shadow:0 10px 24px rgba(0,0,0,.35);padding:8px}
.brandmark .lg img{width:100%;height:100%;object-fit:contain;display:block}
.brandmark b{font-family:var(--head);font-size:21px;font-weight:700}
.brandmark small{display:block;color:var(--sand);font-size:11px;letter-spacing:2px;text-transform:uppercase;margin-top:3px}
.visual h1{margin:0;font-size:clamp(24px,3vw,34px);font-weight:800;line-height:1.15;max-width:16ch}
.visual .tl{color:#e6d4c1;font-size:15px;margin:12px 0 0;max-width:42ch;line-height:1.6}
.chips{display:flex;gap:10px;margin-top:22px;flex-wrap:wrap}
.chip-pill{display:inline-flex;align-items:center;gap:7px;background:rgba(255,255,255,.12);backdrop-filter:blur(6px);border:1px solid rgba(255,255,255,.18);border-radius:20px;padding:8px 14px;font-size:12.5px;font-weight:600;font-family:var(--head)}
.chip-pill svg{width:14px;height:14px;stroke:var(--mint);stroke-width:2.4;fill:none;stroke-linecap:round;stroke-linejoin:round}
.formside{flex:.9;background:var(--bg);display:flex;align-items:center;justify-content:center;padding:40px 28px}
.login-card{width:100%;max-width:360px}
.login-card h2{margin:0;font-size:26px;font-weight:800;color:var(--espresso)}
.login-card .sub{color:var(--muted);font-size:14px;margin:6px 0 22px}
.login-card .err{display:none;background:#fdecec;color:var(--danger);border:1px solid var(--danger-line);padding:12px 14px;border-radius:12px;margin-bottom:16px;font-size:14px}
.login-card label{font-size:12.5px;margin:14px 0 7px}
.inp{position:relative}
.inp input:not([type=checkbox]){padding:14px 14px 14px 44px;border-color:var(--line);border-radius:14px}
.inp svg{position:absolute;left:15px;top:50%;transform:translateY(-50%);width:18px;height:18px;stroke:var(--muted);stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round}
.go{width:100%;margin-top:24px;background:var(--grad);color:#fff;border:none;border-radius:15px;padding:15px;font-family:var(--head);font-weight:700;font-size:16px;cursor:pointer;box-shadow:0 12px 26px rgba(63,143,51,.3);display:flex;align-items:center;justify-content:center;gap:9px}
.go svg{width:18px;height:18px;stroke:#fff;stroke-width:2.4;fill:none;stroke-linecap:round;stroke-linejoin:round}
.go:hover{filter:brightness(1.04)}
.login-card .foot{color:var(--muted);font-size:12px;text-align:center;margin-top:22px}
@media(max-width:780px){
  .split{flex-direction:column}
  .visual{min-height:210px;flex:none}
  .visual .in{padding:24px}
  .visual .tl,.chips{display:none}
  .formside{flex:none;padding:30px 22px}
}

/* ── Customer proposal page (/p/<link>): what the customer sees ─────── */
body.proposal{background:var(--bg)}
.pp-hero{background:linear-gradient(150deg,var(--espresso),var(--deep));color:#fff;padding:22px 18px 26px;padding-top:calc(22px + env(safe-area-inset-top))}
.pp-hero .in{max-width:860px;margin:0 auto}
.pp-brand{display:flex;align-items:center;gap:11px;margin-bottom:18px}
.pp-brand .lg{width:44px;height:44px;border-radius:13px;background:#fff;padding:5px;flex-shrink:0}
.pp-brand img{width:100%;height:100%;object-fit:contain;display:block}
.pp-brand b{font-family:var(--head);font-weight:700;font-size:17px}
.pp-hero h1{margin:0;font-size:clamp(24px,5vw,32px);font-weight:800;line-height:1.15}
.pp-hero .who{margin-top:8px;color:#e6d4c1;font-size:15px}
.pp-hero .meta{margin-top:4px;color:var(--sand);font-size:13px}
.pp-main{max-width:860px;margin:0 auto;padding:16px 14px 120px}
.pp-h{font-family:var(--head);font-weight:700;font-size:18px;color:var(--espresso);margin:24px 4px 12px}
.pp-packs{display:grid;gap:12px;grid-template-columns:1fr}
@media(min-width:720px){.pp-packs.n2{grid-template-columns:1fr 1fr}.pp-packs.n3{grid-template-columns:1fr 1fr 1fr}}
.pp-pack{position:relative;text-align:left;background:#fff;border:2px solid var(--line);border-radius:20px;padding:18px;cursor:pointer;font-family:inherit;color:var(--ink);box-shadow:0 3px 16px rgba(42,32,24,.05);display:flex;flex-direction:column;gap:12px}
.pp-pack:hover{border-color:var(--tint-line)}
.pp-pack.sel{border-color:var(--primary);box-shadow:0 0 0 3px rgba(107,191,89,.22),0 8px 26px rgba(42,32,24,.08)}
.pp-pack.single{cursor:default}
.pp-pack .nm{font-family:var(--head);font-weight:700;font-size:17px;color:var(--espresso);display:flex;align-items:center;justify-content:space-between;gap:10px}
.pp-pack .radio{width:24px;height:24px;border-radius:50%;border:2px solid var(--field-line);display:grid;place-items:center;flex-shrink:0}
.pp-pack .radio svg{display:none;width:13px;height:13px;stroke:#fff;stroke-width:3.5;fill:none;stroke-linecap:round;stroke-linejoin:round}
.pp-pack.sel .radio{border-color:transparent;background:var(--grad)}
.pp-pack.sel .radio svg{display:block}
.pp-pack .pr{font-family:var(--head);font-weight:800;font-size:28px;color:var(--espresso);line-height:1}
.pp-pack ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px;font-size:14px}
.pp-pack li{display:flex;gap:8px;align-items:flex-start;line-height:1.35}
.pp-pack li svg{width:16px;height:16px;flex-shrink:0;margin-top:2px;stroke:var(--primary-dark);stroke-width:2.6;fill:none;stroke-linecap:round;stroke-linejoin:round}
.pp-pack li.off{color:var(--muted)}
.pp-pack li.off svg{stroke:#cbbfae}
.pp-line{border-bottom:1px solid var(--line)}
.pp-line summary{display:flex;justify-content:space-between;align-items:baseline;gap:14px;padding:13px 0;cursor:pointer;list-style:none;font-family:var(--head);font-weight:600;font-size:14.5px;color:var(--espresso)}
.pp-line summary::-webkit-details-marker{display:none}
.pp-line summary .nm::after{content:" +";color:var(--primary-dark);font-weight:700}
.pp-line[open] summary .nm::after{content:" –"}
.pp-line.plain summary{cursor:default}
.pp-line.plain summary .nm::after{content:""}
.pp-line summary .amt{white-space:nowrap}
.pp-line .desc{white-space:pre-wrap;font-size:14px;line-height:1.5;color:var(--label);padding:0 0 14px}
.pp-total{display:flex;justify-content:space-between;align-items:baseline;margin-top:4px;padding-top:14px;font-family:var(--head);font-weight:700;font-size:17px;color:var(--espresso)}
.pp-total b{font-size:24px;font-weight:800;color:var(--primary-dark)}
.pp-bar{position:fixed;left:0;right:0;bottom:0;z-index:30;background:linear-gradient(150deg,var(--espresso),var(--deep));color:#fff;box-shadow:0 -6px 24px rgba(42,32,24,.25)}
.pp-bar .in{max-width:860px;margin:0 auto;padding:12px 16px;padding-bottom:calc(12px + env(safe-area-inset-bottom));display:flex;align-items:center;gap:14px}
.pp-bar .lbl{font-size:12px;color:var(--sand);font-family:var(--head);font-weight:600}
.pp-bar .tot{font-family:var(--head);font-weight:800;font-size:22px;color:var(--mint);line-height:1.15}
.pp-bar .btn{margin-left:auto;width:auto;padding:13px 20px;font-size:15px;box-shadow:none}
.pp-photos{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:8px}
.pp-photos img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:12px;display:block;cursor:zoom-in;background:var(--soft)}
.pp-render{margin-top:12px}
.pp-render img{width:100%;border-radius:14px;display:block;cursor:zoom-in}
.pp-near{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:10px}
.pp-near a{display:block;text-decoration:none;color:var(--espresso);font-family:var(--head);font-weight:600;font-size:13px;line-height:1.3}
.pp-near img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:12px;display:block;margin-bottom:7px;background:var(--soft)}
.pp-links{display:flex;flex-wrap:wrap;gap:8px}
.pp-scope{white-space:pre-wrap;line-height:1.55;font-size:14.5px;color:var(--label)}
.pp-scope.clamp{max-height:9.3em;overflow:hidden;-webkit-mask-image:linear-gradient(#000 55%,transparent);mask-image:linear-gradient(#000 55%,transparent)}
.pp-more{background:none;border:none;padding:8px 0 0;color:var(--primary-dark);font-family:var(--head);font-weight:600;font-size:13px;cursor:pointer}
.pp-area{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--line);font-size:14.5px}
.pp-area:last-child{border-bottom:none}
.pp-area b{font-family:var(--head);font-weight:600;color:var(--espresso)}
.pp-done{text-align:center}
.pp-done .okic{width:56px;height:56px;border-radius:50%;background:var(--grad);display:grid;place-items:center;margin:4px auto 14px;box-shadow:0 8px 20px rgba(63,143,51,.24)}
.pp-done .okic svg{width:26px;height:26px;stroke:#fff;stroke-width:3;fill:none;stroke-linecap:round;stroke-linejoin:round}
.pp-done h2{font-size:20px;margin:0 0 6px}
.pp-done p{margin:0;color:var(--label);line-height:1.5}

/* ── Estimate form: packages screen ─────────────────────────────────── */
.pkg-part{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-top:1px solid var(--line)}
.pkg-part:first-child{border-top:none;padding-top:0}
.pkg-part .pkg-name{font-family:var(--head);font-weight:600;font-size:14.5px;color:var(--espresso);min-width:0;overflow-wrap:anywhere}
.pkg-part select{width:auto;flex:0 0 auto;padding:9px 10px;font-size:15px}
.pkg-price{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;padding:12px 0;border-top:1px solid var(--line)}
.pkg-price:first-child{border-top:none;padding-top:0}
.pkg-price b{font-family:var(--head);font-weight:700;font-size:15.5px;color:var(--espresso)}
.pkg-price > span{font-family:var(--head);font-weight:800;font-size:17px;color:var(--espresso);white-space:nowrap}
.pkg-price .hint{margin-top:3px}
.section-nav{grid-template-columns:repeat(4,1fr)}
@media(max-width:480px){.section-nav{grid-template-columns:1fr 1fr}.section-nav-btn{flex-direction:row;justify-content:flex-start;padding:10px 12px;gap:10px;text-align:left}.section-nav-btn .snic{width:34px;height:34px;border-radius:10px;flex-shrink:0}.section-nav-btn .snic svg{width:17px;height:17px}}

/* ── Drafts kept on the phone, offline notice, toast ────────────────── */
.status.local{background:#fff8e1;color:#7a5400}
.status.queued{background:#e3f2fd;color:#0d47a1}
.status.failed{background:var(--danger-bg);color:var(--danger)}
.status.accepted{background:#e8f5e9;color:#2e7d32}
.offline-bar{display:none;align-items:center;gap:8px;background:#fff8e1;color:#7a5400;border:1px solid #f0dca0;border-radius:12px;padding:9px 13px;margin:0 6px 14px;font-size:13.5px;font-weight:500}
.offline-bar svg{width:16px;height:16px;stroke:currentColor;stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
body.is-offline .offline-bar{display:flex}
@media(max-width:820px){.offline-bar{border-radius:0;border-left:none;border-right:none;margin:0}}
.toast{position:fixed;left:50%;bottom:calc(20px + env(safe-area-inset-bottom));transform:translateX(-50%);z-index:400;background:var(--espresso);color:#fff;font-family:var(--head);font-weight:600;font-size:13.5px;padding:11px 18px;border-radius:14px;box-shadow:0 8px 26px rgba(42,32,24,.3);max-width:calc(100vw - 32px);text-align:center}
/* These pills are short sentences, not single status words: keep them as written. */
.status.local,.status.queued,.status.failed,.status.accepted,.card-head .status{text-transform:none}
