:root {
  color-scheme: light;
  --green: #103e34;
  --green-dark: #092c25;
  --ink: #182b25;
  --muted: #52675e;
  --hairline: #d8e4de;
  --wash: #edf4f0;
  font: 1rem/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #f5f8f6;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--green); font-weight: 650; text-underline-offset: .2em; }
:focus-visible { outline: 3px solid #96702f; outline-offset: 3px; }
.bar { background: var(--green-dark); }
.bar-inner { width: min(100% - 2.5rem, 68rem); margin: auto; min-height: 4.25rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.brand { display: inline-flex; align-items: baseline; gap: .65rem; text-decoration: none; color: white; }
.brand strong { font-size: 1.15rem; letter-spacing: .17em; }
.brand span { color: #c8ded3; font-size: .9rem; }
.bar .quiet { border-color: #76998c; color: white; background: transparent; }
.shell { width: min(100% - 2.5rem, 68rem); margin: auto; padding: 2.5rem 0 4rem; }
.intro { padding: clamp(1.5rem, 4vw, 3rem); background: var(--wash); border: 1px solid var(--hairline); border-radius: 1.25rem; margin-bottom: 1.25rem; overflow-wrap: anywhere; }
.intro > p:last-child { color: var(--muted); margin: .5rem 0 0; }
.eyebrow { font-size: .875rem; letter-spacing: .065em; color: var(--green); font-weight: 700; margin: 0 0 .4rem; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .65rem; }
h1 { font-size: clamp(1.75rem, 5vw, 3.1rem); letter-spacing: -.035em; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.05rem; margin-top: 1.3rem; }
.panel { background: white; border: 1px solid var(--hairline); border-radius: 1.1rem; padding: clamp(1rem, 3vw, 1.6rem); min-width: 0; }
.access { max-width: 33rem; }
.access > a { display: inline-block; margin: .8rem 0 0; }
.columns { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
.spaced { margin-top: 1rem; }
label { display: block; font-size: .95rem; font-weight: 600; margin: .85rem 0; }
input, select, textarea, button { font: inherit; }
input, select, textarea { display: block; width: 100%; min-height: 2.7rem; margin-top: .3rem; border: 1px solid #8da497; border-radius: .5rem; background: white; color: var(--ink); padding: .4rem .65rem; }
textarea { resize: vertical; }
.checkbox { display: flex; align-items: baseline; gap: .65rem; }
.checkbox input { width: 1rem; min-height: auto; margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.summary { margin-bottom: 1rem; }
.summary > :only-child { grid-column: 1 / -1; }
.indications { white-space: pre-wrap; overflow-wrap: anywhere; }
.date { font-size: .9rem; color: var(--muted); margin: .65rem 0 0; }
.client-intro { background: linear-gradient(130deg, #0c3028, #155847); color: #fff; border-color: #1a5345; }
.client-intro .eyebrow, .client-intro p { color: #d5ede1; }
.jump { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.jump a { border-radius: 2rem; border: 1px solid #8fafa1; color: white; padding: .35rem .75rem; text-decoration: none; font-size: .938rem; }
.jump a:hover { background: #ffffff20; }
.money > header { display: flex; align-items: start; gap: .7rem; justify-content: space-between; flex-wrap: wrap; margin-bottom: 1rem; }
.money > header p { color: var(--muted); margin: 0; }
.money-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; }
.money-grid > div { background: #f4f8f5; border: 1px solid var(--hairline); border-radius: .8rem; padding: .85rem; min-width: 0; }
.money-grid dd { font-size: clamp(1.2rem, 3vw, 1.65rem); letter-spacing: -.035em; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.money-grid .result { background: #e6f4eb; border-color: #a8c9b8; }
.money-grid .negative { background: #f9eeeb; border-color: #ddb4a9; }
.money meter { display: block; width: 100%; height: .55rem; margin-top: .6rem; accent-color: #236852; }
.money meter::-webkit-meter-bar { border: none; background: #dce8e0; }
.money meter::-webkit-meter-optimum-value { background: #236852; }
.money meter.expenses::-webkit-meter-optimum-value { background: #876022; }
.money-pending { margin-top: 1rem; }
.money-caption { font-size: .9rem; color: var(--muted); margin: 1rem 0 0; }
.line-editor { padding: .65rem .8rem; border: 1px solid var(--hairline); border-radius: .65rem; margin: .5rem 0; }
.line-editor summary { cursor: pointer; font-weight: 650; color: var(--green); }
.line-fields { display: grid; grid-template-columns: 1fr 1.35fr 1fr; gap: .7rem; }
.document-head { display: flex; justify-content: space-between; align-items: start; flex-wrap: wrap; gap: .65rem; }
.document-head p, .document-parties p { margin: .15rem 0; }
.document-parties { margin: 1.4rem 0; padding: .9rem 0; border-block: 1px solid var(--hairline); overflow-wrap: anywhere; }
.table-wrap { overflow-x: auto; }
.proposal-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.proposal-table th, .proposal-table td { padding: .65rem .55rem; border-bottom: 1px solid var(--hairline); text-align: right; }
.proposal-table th:first-child, .proposal-table td:first-child { text-align: left; min-width: 10rem; }
.proposal-total { background: var(--wash); border-radius: .8rem; width: fit-content; padding: .8rem 1rem; margin: 1rem 0 0 auto; }
.proposal-total > div:last-child dd { font-size: 1.2rem; }
button, .download { display: inline-flex; align-items: center; justify-content: center; min-height: 2.7rem; border: 1px solid transparent; border-radius: .6rem; padding: .4rem .8rem; background: var(--green); color: white; font-weight: 650; text-decoration: none; cursor: pointer; }
button:hover, .download:hover { background: var(--green-dark); }
.quiet { background: white; color: var(--green); border-color: #8da497; }
.quiet:hover { background: var(--wash); color: var(--green-dark); }
.danger { background: #fff7f5; border-color: #a26760; color: #73392f; }
.danger:hover { background: #f9e4df; }
.rows { list-style: none; padding: 0; margin: 0; }
.rows li { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .65rem; padding: .75rem 0; border-top: 1px solid var(--hairline); overflow-wrap: anywhere; }
.rows p { margin: .1rem 0; color: var(--muted); font-size: .9rem; }
.pill { font-size: .875rem; background: var(--wash); color: var(--green); padding: .2rem .55rem; border-radius: 1rem; }
.notice { background: #fff2d9; padding: .75rem 1rem; border: 1px solid #dcb976; border-radius: .6rem; }
code { display: block; overflow-wrap: anywhere; background: var(--wash); padding: .8rem; user-select: all; }
dl { display: flex; flex-wrap: wrap; gap: .75rem 2rem; margin: 0; }
dt { color: var(--muted); font-size: .9rem; }
dd { margin: 0; font-weight: 650; }
@media (max-width: 44rem) { .columns { grid-template-columns: 1fr; } .shell { padding-top: 1.5rem; } }
@media (max-width: 34rem) {
  .money-grid { grid-template-columns: 1fr; }
  .line-fields { grid-template-columns: 1fr; gap: 0; }
}
@media print {
  :root { background: #fff; font-size: 11pt; }
  .bar, .not-print, .notice { display: none !important; }
  .shell { width: 100%; padding: 0; }
  .print-document { margin: 0; padding: 0; border: 0; }
  .document-parties { grid-template-columns: 1fr 1fr; }
  .table-wrap { overflow: visible; }
  .proposal-total { border: 1px solid var(--hairline); }
}
