@font-face {
  font-family: Poppins;
  src: url('fonts/poppins-regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Poppins;
  src: url('fonts/poppins-semibold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Poppins;
  src: url('fonts/poppins-bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('fonts/cormorant-garamond.ttf') format('truetype');
  font-weight: 300 700;
  font-display: swap;
}

*{box-sizing:border-box} :root{font-family:Poppins,system-ui,sans-serif;color:#292823;background:#f1eeea;--ink:#292823;--muted:#605d51;--charcoal:#302720;--line:#dfd6cd;--paper:#fbf8f4;--accent:#c09956}html{scroll-behavior:smooth;scroll-padding-top:1rem}body{margin:0}button,input,select{font:inherit}a{color:inherit}button,select,summary{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible,select:focus-visible{outline:3px solid #926c36;outline-offset:2px}.top{background:var(--paper);border-bottom:1px solid var(--line)}.bar,main{max-width:1300px;margin:auto;padding-inline:clamp(16px,4.5vw,64px)}.bar{height:76px;display:flex;justify-content:space-between;align-items:center;gap:12px}.brand{display:flex;gap:12px;align-items:center;text-decoration:none;font-weight:700}.brand small{display:block;font-size:.67rem;letter-spacing:.18em;color:var(--muted);margin-top:2px}.actions{display:flex;gap:16px;align-items:center;font-size:.86rem}.actions details{position:relative}.actions summary,.add{display:inline-block;border:1px solid var(--line);border-radius:8px;padding:9px 13px;background:var(--paper);font-weight:600;text-decoration:none}.actions summary::-webkit-details-marker{display:none}.menu{position:absolute;right:0;top:calc(100% + 8px);z-index:2;min-width:210px;background:var(--paper);box-shadow:0 12px 32px #0002;border:1px solid var(--line);border-radius:10px;padding:6px}.menu button,.upload{display:block;width:100%;border:0;background:none;text-align:left;padding:10px;border-radius:6px;cursor:pointer}.upload input{position:absolute;opacity:0;width:1px}.menu button:hover,.upload:hover,.upload:focus-within{background:#efe3d2}.hero{margin-top:28px;background:var(--charcoal);color:#fffdf6;border-radius:18px;padding:clamp(22px,4.5vw,58px);display:grid;grid-template-columns:1.35fr 1fr;gap:24px;align-items:center;overflow:hidden;position:relative}.hero:before{content:'';position:absolute;width:560px;height:560px;right:-245px;top:-285px;border:1px solid #ffffff24;border-radius:50%;box-shadow:0 0 0 34px #ffffff09,0 0 0 70px #ffffff08;pointer-events:none}.intro,.score{position:relative}.eyebrow{font-size:.75rem;letter-spacing:.14em;font-weight:700;color:#e3c590}h1,h2,h3,.big{font-family:ivypresto-headline,"IvyPresto Headline","Cormorant Garamond",Georgia,serif;font-weight:300}h1{font-size:clamp(3.2rem,6.6vw,6rem);line-height:.96;letter-spacing:-.055em;margin:17px 0}h1 em{color:var(--accent);font-style:normal}.intro p{max-width:42ch;color:#f0e7de;line-height:1.55}.score{background:#ffffff0d;border:1px solid #ffffff36;border-radius:14px;padding:clamp(16px,3vw,32px)}.score .big{font-size:clamp(2.15rem,5vw,4.7rem);line-height:1.05;letter-spacing:-.045em;margin:12px 0;overflow-wrap:anywhere}.score p{margin:.5rem 0;color:#f0e7de}.score .eyebrow{color:#e3c590}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0 26px}.metric,.card,nav{background:var(--paper);border:1px solid var(--line);border-radius:13px}.metric{padding:16px;overflow-wrap:anywhere}.metric strong{display:block;margin:6px 0;font-size:clamp(1rem,2.35vw,1.65rem);letter-spacing:-.03em}.hint,.metric span,.side-note,small{color:var(--muted);font-size:.875rem;line-height:1.5}.workspace{display:grid;grid-template-columns:215px minmax(0,1fr);gap:20px}.workspace aside{align-self:start}nav{padding:8px}nav button{display:block;width:100%;text-align:left;background:none;border:0;padding:11px;border-radius:7px;font-weight:600;color:var(--muted)}nav button[aria-current=true]{background:#eadcca;color:#49331b}nav button:hover{background:#f3ebe1}.side-note{padding:15px 8px}.card{padding:clamp(14px,3vw,28px);margin-bottom:14px}h2{margin:0 0 8px;font-size:clamp(1.9rem,4vw,2.75rem);letter-spacing:-.035em}h3{margin:0 0 12px;font-size:1.55rem}p{line-height:1.5}.fields,.row{display:grid;gap:10px;align-items:end}.fields{grid-template-columns:repeat(auto-fit,minmax(min(100%,165px),1fr));margin:14px 0}.row{grid-template-columns:minmax(0,2fr) minmax(0,1fr) auto;margin:8px 0}.row.cost{grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(85px,1fr) auto}.field{display:grid;min-width:0;gap:5px;color:var(--muted);font-size:.875rem;font-weight:600}input:not([type=checkbox]),select{width:100%;min-width:0;padding:9px;border:1px solid #cbc8bc;border-radius:7px;background:#fff;color:var(--ink)}input[type=checkbox]{accent-color:var(--charcoal);width:16px;height:16px;vertical-align:middle;margin-right:7px}.remove{background:none;border:1px solid var(--line);border-radius:7px;width:37px;height:39px;color:#7e392e;font-size:1.15rem}.add{margin-top:8px;color:var(--charcoal)}.job-top{display:flex;gap:8px;align-items:end}.job-top label{flex:1}.banner{background:#f5e8d4;padding:12px;border-radius:8px;margin:12px 0;color:#59401e}.progress{height:10px;background:#e9dfd4;border-radius:12px;overflow:hidden}.progress span{display:block;height:100%;background:var(--accent)}.progress.over span{background:#b06147}.lines{margin:0}.lines div{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid var(--line)}.lines dd{margin:0;text-align:right;font-weight:600}.compare{overflow:auto}.compare table{width:100%;border-collapse:collapse;white-space:nowrap;text-align:right}.compare td,.compare th{padding:10px 8px;border-bottom:1px solid var(--line)}.compare td:first-child,.compare th:first-child{text-align:left}.neg{color:#932f21}.pos{color:#285d35}footer{border-top:1px solid var(--line);margin-top:25px;padding:16px 0 25px;display:flex;gap:10px;justify-content:space-between;color:var(--muted);font-size:.84rem}@media(max-width:780px){.workspace{grid-template-columns:minmax(0,1fr);gap:12px}nav{display:flex;overflow:auto;gap:3px}nav button{width:auto;white-space:nowrap}.side-note{display:none}.hero{grid-template-columns:1fr}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:480px){#save{display:none}.bar{height:65px}.brand{gap:7px}.row.cost{grid-template-columns:minmax(0,1fr) 76px 82px auto;gap:4px}.row.cost input,.row.cost select{padding:7px 3px}.remove{width:30px}}@media print{.top,.workspace aside,footer{display:none}.workspace{display:block}.hero{margin:0;background:#fff;color:#111;border:1px solid #aaa}.hero *,.score p,.score .eyebrow{color:#111!important}main{padding:0}.card{break-inside:avoid} }

.brand-signature {
  display: block;
  width: clamp(80px, 12vw, 142px);
  height: auto;
  aspect-ratio: 4.2;
  object-fit: cover;
}
.brand-name {
  border-inline-start: 1px solid var(--line);
  padding-inline-start: 12px;
}
.hero-signature {
  display: block;
  width: clamp(128px, 19vw, 196px);
  height: auto;
  margin-bottom: 12px;
}
.score small { color: #ebd4b0; }
@media (max-width: 420px) {
  .brand { gap: 5px; font-size: .78rem; }
  .brand-name { padding-inline-start: 6px; }
  .brand-signature { width: 74px; }
  .actions summary { padding-inline: 7px; white-space: nowrap; }
}
@media print {
  .hero-signature { display: none; }
}
.field-wrap { min-width: 0; }
.field-caption, .field-checkbox { display: flex; align-items: center; gap: .27rem .4rem; }
.field-caption { min-height: 1.25rem; }
.field-caption label { min-width: 0; overflow-wrap: anywhere; }
.field-checkbox { flex-wrap: wrap; }
.field-help {
  flex: 0 0 1.12rem;
  display: inline-grid;
  place-items: center;
  width: 1.12rem;
  height: 1.12rem;
  padding: 0;
  border: 1px solid #9c7750;
  border-radius: 50%;
  color: #60431f;
  background: var(--paper);
  font-size: .72rem;
  line-height: 1;
  font-weight: 700;
}
.field-tooltip {
  position: fixed;
  z-index: 20;
  pointer-events: none;
  width: max-content;
  max-width: min(19rem, calc(100vw - 16px));
  padding: .65rem .78rem;
  border-radius: 8px;
  background: var(--charcoal);
  color: #fffaf3;
  box-shadow: 0 5px 18px #30272038;
  font-size: .8rem;
  line-height: 1.5;
}
.job-top .field-wrap { flex: 1; }

@media print { .field-help, .field-tooltip { display: none; } }

.reserve-fields { min-width:0; margin:0; padding:0; border:0; }
.reserve-fields:disabled { opacity:.55; }

#print-report { display:none; }
@page { size:A4; margin:14mm 15mm; }
@media print {
  body > :not(#print-report) { display:none !important; }
  :root,body { background:white; }
  #print-report {
    display:block;
    background:white;
    color:#29231d;
    font-size:9pt;
    line-height:1.42;
    print-color-adjust:exact;
    -webkit-print-color-adjust:exact;
  }
  .report-cover { margin-bottom:7mm; break-inside:avoid; }
  .report-brand {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:5mm;
    padding-bottom:3mm;
    border-bottom:1pt solid #c09956;
    color:#605d51;
  }
  .report-brand img { display:block; width:37mm; aspect-ratio:4.2; object-fit:cover; }
  .report-cover h1 { font-size:33pt; line-height:1.02; margin:4mm 0 0; }
  .report-cover p { margin:1mm 0 4mm; color:#605d51; }
  .report-kpis { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:2mm; }
  .report-kpis div { padding:2.5mm; border:1px solid #d8c7aa; background:#f1eeea; border-radius:2mm; }
  .report-kpis small { display:block; font-size:8pt; }
  .report-kpis strong { display:block; font-size:12pt; margin-top:1mm; overflow-wrap:anywhere; }
  .report-section { margin:0 0 5mm; }
  .report-section h2 {
    margin:0 0 2mm;
    padding-bottom:1mm;
    border-bottom:1px solid #c09956;
    font-size:20pt;
    line-height:1.15;
    break-after:avoid;
  }
  .report-section h3, .report-section .card h2 {
    margin:2mm 0 1mm;
    border:0;
    font-size:13pt;
    break-after:avoid;
  }
  .report-group { margin:0 0 3mm; }
  .report-group > .lines { break-inside:avoid; }
  .report-note,.report-section .hint { color:#605d51; font-size:8pt; margin:1.5mm 0; }
  .report-section .lines div { padding:1mm 0; break-inside:avoid; }
  .report-section .lines dt { min-width:0; overflow-wrap:anywhere; }
  .report-section .lines dd { min-width:0; overflow-wrap:anywhere; }
  .report-section .card { padding:0; border:0; margin:0 0 3mm; background:white; break-inside:auto; }
  .report-section .progress { display:none; }
  .report-section .banner { margin:1mm 0 2mm; padding:1.5mm 2mm; break-inside:avoid; }
  .report-section p { orphans:3; widows:3; }
  .report-section .compare { overflow:visible; }
  .report-table,.report-section .compare table { width:100%; border-collapse:collapse; white-space:normal; }
  .report-table { margin:1mm 0 1.5mm; }
  .report-table:has(thead th:nth-child(4)) { table-layout:fixed; }
  .report-table thead th:nth-last-child(4) { width:39%; }
  .report-table thead th:nth-last-child(4) + th { width:23%; }
  .report-table thead th:nth-child(3):nth-last-child(2) { width:14%; }
  .report-section thead { display:table-header-group; }
  .report-section tr { break-inside:avoid; }
  .report-table th,.report-table td,.report-section .compare td,.report-section .compare th {
    padding:1.2mm 1.35mm;
    border-bottom:1px solid #ded8ce;
    vertical-align:top;
    text-align:left;
    overflow-wrap:anywhere;
  }
  .report-section thead th { background:#f1eeea; }
  .report-table tbody th { font-weight:400; }
  .report-section .compare th,.report-section .compare td { font-size:8pt; }
  .report-end { border-top:1px solid #c09956; color:#605d51; font-size:8pt; padding-top:2mm; }
}
