:root{color-scheme:light;--ink:#172f26;--muted:#52665c;--green:#12362c;--accent:#276049;--line:#d4ded3;--paper:#f6f5ed;--white:#fffefa;--wash:#e7efe2;--gold:#f4df9d;--error:#9a2f2c;font:16px/1.5 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink)}button,input,textarea,select{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #bb8041;outline-offset:3px}a{color:var(--accent)}[hidden]{display:none!important}.bar{background:var(--green);color:var(--white)}.bar-inner{max-width:1130px;margin:auto;min-height:73px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 28px}.brand{display:flex;align-items:center;gap:10px;color:inherit;text-decoration:none;font-weight:730;line-height:1.2}.brand-mark{display:grid;place-items:center;background:#35604b;color:#f3d082;border-radius:10px;width:35px;height:35px;flex:none;font-size:24px}.bar-actions{display:flex;gap:8px}.quiet{color:inherit;border:1px solid #60816f;background:transparent;border-radius:9px;padding:8px 12px;cursor:pointer;min-height:42px}main{max-width:1130px;padding:34px 28px 64px;margin:auto}h1,h2,h3,p{margin:0}h1{font:700 clamp(2.25rem,5vw,4rem)/1 Georgia,serif;letter-spacing:-.045em;margin-bottom:14px;overflow-wrap:anywhere}h2{font-size:1.2rem;letter-spacing:-.025em}h3{font-size:1rem}p+ p{margin-top:9px}.muted,.field-note{color:var(--muted)}.field-note{font-size:.88rem}.lead{max-width:55ch;color:var(--muted)}.panel,.hero,.login-card{padding:22px;background:var(--white);border:1px solid var(--line);border-radius:17px}.hero{background:var(--wash);border-color:#cad9c8;padding:clamp(24px,4vw,42px);display:flex;justify-content:space-between;align-items:end;gap:18px}.hero h1{margin-bottom:12px}.hero-actions{flex:none}.grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,.58fr);gap:20px;margin-top:20px}.login-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(300px,.8fr);gap:35px;align-items:start;margin-top:22px}.login-about{padding:25px 0}.login-card{box-shadow:0 14px 30px #163e2412}.small-title{color:var(--accent);font-weight:750;font-size:.88rem;margin-bottom:8px}.steps{padding:0;list-style:none;display:grid;gap:11px;margin:22px 0 0}.steps li{display:flex;gap:10px;align-items:center}.steps b{background:var(--wash);border:1px solid var(--line);width:28px;height:28px;display:grid;place-items:center;border-radius:50%;flex:none}.tabs,.actions{display:flex;flex-wrap:wrap;gap:8px}.actions{margin-top:12px}.tabs{margin:0 0 18px}.btn,.tab{appearance:none;display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:9px 15px;border-radius:9px;border:1px solid var(--line);background:var(--white);color:var(--ink);font-weight:680;cursor:pointer;text-decoration:none;text-align:center}.btn.primary,.tab[aria-pressed=true]{background:var(--green);color:white;border-color:var(--green)}.btn:hover,.tab:hover{filter:brightness(.94)}.btn:disabled,.tab:disabled{opacity:.55;cursor:wait}.btn.small{min-height:38px;padding:6px 11px;font-weight:600}.btn.danger{color:var(--error)}.full{width:100%}form{display:grid;gap:14px}label{display:grid;gap:5px;font-weight:650}input:not([type=file]),select,textarea{min-height:44px;min-width:0;width:100%;background:white;color:var(--ink);border:1px solid #aebfb2;border-radius:9px;padding:9px 11px}textarea{resize:vertical}.row{display:flex;gap:12px;align-items:center;justify-content:space-between}.stack{display:grid;gap:13px}.columns{display:grid;grid-template-columns:1fr 1fr;gap:12px}.section-title{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:14px}.entry{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:13px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.entry:last-child{border-bottom:0;padding-bottom:0}.entry h3{line-height:1.3}.tally{color:var(--muted);font-size:.86rem}.chip{padding:3px 9px;border-radius:999px;background:var(--wash);font-size:.8rem;font-weight:700;white-space:nowrap}.chip.pending{background:#f8e8ba}.photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,225px),1fr));gap:12px}.photo{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fff}.photo img{width:100%;height:165px;object-fit:contain;display:block;background:#e9eee6}.photo-info{padding:10px}.photo-info .actions{margin-top:6px}.notice{position:fixed;z-index:10;bottom:max(18px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);max-width:min(92vw,580px);width:max-content;padding:12px 18px;background:var(--green);color:white;border-radius:10px;box-shadow:0 10px 18px #17392733}.notice.error{background:var(--error)}.callout{padding:12px 14px;border-radius:9px;background:var(--wash)}.pay-card{padding:12px 0}.toolbar{margin:15px 0}.form-width{max-width:700px;margin:20px auto 0}.files{padding:10px;border:1px dashed #829c8a;border-radius:10px;background:var(--wash);width:100%}.linkbtn{color:var(--accent);background:none;border:none;padding:7px 0;text-decoration:underline;cursor:pointer;font-weight:650}.legend{display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin:12px 0}.dot{width:26px;height:26px;color:#fff;background:#315f49;display:inline-grid;place-items:center;border-radius:50%;font-weight:800;font-size:.76rem}.dot.dark{background:#24272a}.dot.brown{background:#6d4834}.dot.red{background:#ac3434}.dot.orange{background:#955023}.dot.yellow{background:#f3cc57;color:#332517}.dot.green{background:#336c4e}.dot.blue{background:#28598a}.dot.purple{background:#694987}.dot.gray{background:#516064}.dot.white{background:#fff;color:#173326;border:1px solid #869b8d}.receipt{font-size:.82rem;overflow-wrap:anywhere}.owner-link{margin-top:12px}.preview-panel{margin-top:20px}.anchor-top{scroll-margin-top:16px}
@media(max-width:760px){.grid,.login-grid{grid-template-columns:1fr;gap:15px}.login-grid{margin-top:0}.login-card{grid-row:1}.login-about{padding:4px 0}.bar-inner{padding:11px 15px;min-height:65px}main{padding:22px 15px 45px}.hero{align-items:start;flex-direction:column}.panel,.login-card{padding:16px}.hero-actions{width:100%}.hero-actions .btn{width:100%}.columns{grid-template-columns:1fr}.bar-actions{gap:4px}.quiet{padding:7px 8px;font-size:.86rem}.brand{font-size:.92rem}.brand-mark{width:30px;height:30px}.entry .btn{max-width:42%;flex:none}.photo img{height:220px}}

/* Christmas palette */
:root {
  --ink: #18362a;
  --muted: #526459;
  --green: #124632;
  --accent: #9b2939;
  --line: #dbcfc2;
  --paper: #f9f2e5;
  --white: #fffcf5;
  --wash: #e7efdf;
  --gold: #f2c776;
  --cranberry: #a52237;
  --cranberry-dark: #78182a;
}
body { background: radial-gradient(ellipse at 50% 0, #fffaf0 0, var(--paper) 72%); }
.bar { background: #102e22; }
.brand-mark {
  background: #8e2033;
  color: #ffe2a2;
  border: 1px solid #bc5661;
}
.quiet { border-color: #8d9f86; }
.quiet:hover { background: #254d3b; }
.light-strand {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  justify-items: center;
  height: 18px;
  max-width: 1074px;
  margin: 0 auto;
  border-top: 1px solid #849477;
}
.light-strand i {
  --bulb: #ffa4a1;
  position: relative;
  width: 8px;
  height: 11px;
  margin-top: 2px;
  border-radius: 4px 4px 50% 50%;
  background: var(--bulb);
  box-shadow: 0 0 9px var(--bulb);
}
.light-strand i::before {
  content: "";
  position: absolute;
  inset: -4px 2px auto;
  height: 4px;
  background: #849477;
  border-radius: 1px;
}
.light-strand i:nth-child(3n + 2) { --bulb: #ffda85; }
.light-strand i:nth-child(3n) { --bulb: #a8e7aa; }
.login-about, .hero {
  background:
    radial-gradient(ellipse at 94% 6%, #357652 0%, transparent 56%),
    #143e2d;
  border: 1px solid #1b5039;
  color: #fff7e7;
}
.login-about {
  padding: clamp(24px, 4vw, 44px);
  border-radius: 17px;
  box-shadow: 0 18px 34px #163e2418;
}
.login-about .small-title {
  color: #ffce7c;
  letter-spacing: .045em;
}
.login-about .lead, .hero .lead { color: #e1ebdc; }
.steps li + li {
  border-top: 1px solid #fff7e72e;
  padding-top: 10px;
}
.steps b {
  color: #2a2316;
  background: #f2c776;
  border-color: #f2c776;
}
.login-card { border-top: 4px solid var(--cranberry); }
.btn.primary, .tab[aria-pressed=true] {
  background: var(--cranberry);
  border-color: var(--cranberry);
}
.btn.primary:hover, .tab[aria-pressed=true]:hover {
  background: var(--cranberry-dark);
  border-color: var(--cranberry-dark);
}
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline-color: #b57624;
}
@media (max-width:760px) {
  .login-about { padding: 23px 19px; }
  .light-strand { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .light-strand i:nth-child(n + 9) { display: none; }
}

.price-summary {
  margin-top: 12px;
  padding: 12px 14px;
  border-left: 3px solid var(--cranberry);
  border-radius: 8px;
  background: #f6eddf;
  font-size: .93rem;
}
.price-summary h2 { font-size: 1rem; margin-bottom: 4px; }
.price-summary p + p { margin-top: 2px; }
.customer-fields {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 15px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.customer-fields legend { font-weight: 750; padding: 0 5px; }
.checkline { display: flex; align-items: flex-start; gap: 9px; font-size: .9rem; }
.checkline input[type=checkbox] {
  width: 18px;
  height: 18px;
  min-height: 0;
  padding: 0;
  flex: none;
  margin: 3px 0 0;
  accent-color: var(--cranberry);
}
.recovery-key { overflow-wrap: anywhere; font-weight: 700; }
.instruction-grid, .sample-grid { display: grid; gap: 12px; margin-top: 12px; }
.instruction-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.sample-grid { grid-template-columns: repeat(2,minmax(0,1fr)); margin-top: 0; }
.instruction-card, .sample-grid figure {
  display: grid;
  gap: 9px;
  margin: 0;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 10px;
}
.instruction-card h3, .sample-grid figcaption strong { color: var(--ink); }
.sample-grid figcaption p { margin-top: 3px; }
.guide-picture, .marker-picture {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 105px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--wash);
}
.marker-picture { height: 72px; }
.marker-picture::before, .wire-line {
  background: #294936;
  height: 5px;
}
.marker-picture::before { content: ""; position: absolute; left: 12%; right: 12%; }
.wire-line { width: 34%; }
.clip-sample, .adhesive-sample {
  position: relative;
  z-index: 1;
  color: white;
  background: var(--cranberry);
  border: 2px solid #78182a;
  border-radius: 7px;
  min-width: 27px;
  text-align: center;
  font-weight: 800;
  box-shadow: 0 2px 0 #39131b50;
}
.adhesive-sample {
  color: #222;
  background: #fffdf5;
  border: 1px solid #82827a;
  border-radius: 2px;
  padding: 0 6px;
  letter-spacing: .14em;
  font-family: monospace;
}
.guide-roof { align-items: flex-end; justify-content: space-around; padding-bottom: 9px; }
.roof-shape {
  position: absolute;
  left: 25%;
  right: 25%;
  top: 19%;
  height: 47%;
  background: var(--cranberry);
  clip-path: polygon(0 88%,50% 0,100% 88%,97% 100%,50% 16%,3% 100%);
}
.roof-tag { z-index: 1; background: var(--cranberry); color: white; font-size: .68rem; font-weight: 750; padding: 2px 4px; border-radius: 4px; }
.guide-phone {
  display: grid;
  place-items: center;
  min-width: 53px;
  height: 73px;
  padding: 3px;
  border: 3px solid #204936;
  border-radius: 10px;
  background: #fffdf6;
  color: var(--cranberry);
  line-height: 1;
  font-size: 25px;
}
.guide-phone small { font-size: .64rem; font-weight: 750; }
@media(max-width:600px) {
  .instruction-grid { grid-template-columns: 1fr; }
  .instruction-card { grid-template-columns: 112px minmax(0,1fr); align-items: center; }
  .guide-picture { height: 78px; }
  .sample-grid { grid-template-columns: 1fr; }
  .sample-grid figure { grid-template-columns: 78px minmax(0,1fr); align-items: center; }
}

.roof-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, .8fr);
  align-items: start;
  gap: 18px;
}
.roof-map {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 10px;
  background: #263b31;
}
.roof-map img, .roof-map canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.roof-map canvas { cursor: crosshair; touch-action: none; }
.roof-zoom {
  position: absolute;
  bottom: 9px;
  right: 9px;
  display: flex;
  gap: 5px;
}
.roof-tools { margin-top: 0; }
.roof-tools [aria-pressed=true], .roof-run[aria-pressed=true] {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}
.roof-run { display: flex; justify-content: space-between; gap: 8px; width: 100%; margin-bottom: 5px; }
.roof-runs .row { flex-wrap: wrap; }
@media (max-width: 760px) {
  .roof-grid { grid-template-columns: minmax(0, 1fr); }
}
