* { box-sizing:border-box; }
:root { color-scheme:light; --ink:#151515; --muted:#555; --accent:#641f36; --line:#dedede; --field-line:#a1a1a1; --surface:#fff; --bg:#f7f7f7; --soft:#f1f1f1; }
body { margin:0; background:var(--bg); color:var(--ink); font:1rem/1.5 "Segoe UI", Arial, sans-serif; }
.shell { width:min(1200px,100% - 64px); margin-inline:auto; }
.masthead { background:var(--surface); border-top:3px solid var(--ink); border-bottom:1px solid var(--line); }
.header-inner,.intro,.actions,.compensation,.result-totals div,footer { display:flex; justify-content:space-between; align-items:center; gap:16px; }
.header-inner { min-height:78px; }
.brand { display:grid; width:max-content; color:var(--ink); line-height:1; text-decoration:none; }
.brand strong { font:700 2.05rem/1 Georgia,serif; letter-spacing:.12em; }
.brand span { margin-top:4px; font-size:.62rem; letter-spacing:.21em; }
.header-agent { display:grid; text-align:right; line-height:1.3; }
.header-agent span { font-size:.85rem; color:var(--muted); margin-top:3px; }
.agent { display:flex; align-items:center; gap:12px; }
.headshot { width:52px; height:52px; flex:none; border-radius:50%; object-fit:cover; object-position:center top; border:1px solid var(--line); }
.intro { margin:42px 0 29px; align-items:flex-end; }
.eyebrow { color:var(--muted); letter-spacing:.13em; font-size:.76rem; font-weight:750; margin:0 0 7px; }
h1,h2 { font-family:Georgia,"Times New Roman",serif; line-height:1.13; margin:0; font-weight:500; }
h1 { font-size:clamp(2.25rem,4.15vw,4rem); letter-spacing:-.045em; }
h2 { font-size:1.55rem; letter-spacing:-.02em; }
p { margin:0; }
.lede { color:var(--muted); margin-top:9px; }
.actions { justify-content:flex-end; flex-wrap:wrap; flex-shrink:0; gap:8px; }
button,input,select { font:inherit; }
button { border-radius:7px; cursor:pointer; padding:10px 14px; min-height:43px; font-weight:650; white-space:nowrap; border:1px solid transparent; }
button:disabled,select:disabled { opacity:.55; cursor:default; }
.primary { color:var(--surface); background:var(--ink); }
.primary:hover { background:#333; }
.quiet,.secondary { background:var(--surface); color:var(--ink); border-color:var(--field-line); }
.quiet:hover,.secondary:hover { background:var(--soft); }
.layout { display:grid; grid-template-columns:minmax(0,1.13fr) minmax(0,.87fr); align-items:start; gap:24px; }
.panel,.result-main { border-radius:12px; padding:23px; background:var(--surface); border:1px solid var(--line); }
form,.results { display:grid; gap:16px; min-width:0; }
.field { display:grid; gap:5px; min-width:0; font-size:.875rem; font-weight:650; }
.panel > .field { margin-top:17px; }
.field small { color:var(--muted); font-size:.78rem; font-weight:400; margin-left:4px; }
.fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; gap:13px; margin-top:13px; }
.lookup { display:flex; gap:8px; align-items:start; }
input,select { width:100%; min-width:0; height:43px; background:var(--surface); color:var(--ink); border:1px solid var(--field-line); border-radius:6px; padding:8px 10px; font-size:1rem; font-weight:400; }
input[type="number"],input[data-currency] { font-variant-numeric:tabular-nums; }
select { appearance:none; background:linear-gradient(45deg,transparent 50%,var(--muted) 50%) calc(100% - 16px) 52% / 5px 5px no-repeat,linear-gradient(135deg,var(--muted) 50%,transparent 50%) calc(100% - 11px) 52% / 5px 5px no-repeat,var(--surface); padding-right:23px; }
input:invalid { border-color:var(--accent); }
#estimate-input-status:empty { margin:0; }
:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.help { font-size:.875rem; color:var(--muted); margin-top:7px; }
.tax-status,.notice { margin-top:14px; font-size:.875rem; background:var(--soft); color:var(--ink); padding:10px 12px; border-radius:7px; }
.tax-status a { margin-right:12px; display:inline-block; }
#tax-sources:not(:empty) { margin-top:5px; }
a { color:var(--ink); text-underline-offset:3px; }
.compensation { padding:14px 0; border-bottom:1px solid var(--line); }
.compensation .help { margin-top:2px; }
.compensation-rate { flex:0 0 90px; }
details { padding:12px 0; border-bottom:1px solid var(--line); }
details:last-child { padding-bottom:0; border:0; }
summary { cursor:pointer; font-weight:650; }
details p { margin-bottom:5px; }
.result-main { color:var(--surface); background:var(--ink); border-color:transparent; }
.result-main h2 { font:600 1rem/1.3 "Segoe UI",Arial,sans-serif; letter-spacing:0; }
.amount { font:500 clamp(2.4rem,5.2vw,4.15rem)/1.1 Georgia,serif; letter-spacing:-.045em; margin:6px 0; overflow-wrap:anywhere; }
.subamount { font-size:.875rem; color:#d6d6d6; }
.result-totals { border-top:1px solid #696969; padding-top:11px; margin:17px 0 0; }
.result-totals div { margin:4px 0; }
.result-totals dd { font-variant-numeric:tabular-nums; margin:0; text-align:right; }
.closing { font-weight:700; }
.notice { margin:0; border:1px solid var(--line); border-inline-start:3px solid var(--accent); }
table { width:100%; border-collapse:collapse; margin-top:11px; font-size:.875rem; }
th,td { text-align:left; border-bottom:1px solid var(--line); padding:7px 0; vertical-align:top; }
td:not(:first-child),th:not(:first-child) { text-align:right; padding-left:8px; font-variant-numeric:tabular-nums; white-space:nowrap; }
th { color:var(--muted); }
.group th { color:var(--ink); font-size:.81rem; padding-top:11px; }
.target td { font-weight:700; color:var(--ink); }
footer { border-top:1px solid var(--line); align-items:start; margin:28px 0; padding-top:17px; font-size:.875rem; color:var(--muted); }
footer strong { color:var(--ink); }
footer > p { max-width:42ch; }
[hidden] { display:none !important; }
.print-only { display:none; }
.download-link { padding:9px 4px; font-size:.9rem; font-weight:650; }
.home { --ink:#231b21; --muted:#60575d; --bg:#faf7f3; --line:#ded4d5; }
.home .masthead { border-top-color:var(--accent); }
.home-nav,.home-actions { display:flex; gap:clamp(12px,2.5vw,30px); align-items:center; flex-wrap:wrap; }
.home-nav a,.home-actions a { font-weight:650; font-size:.9rem; }
.home-nav a { text-decoration:none; }
.home-nav a:hover { text-decoration:underline; }
.home-hero { display:grid; grid-template-columns:1.16fr .84fr; align-items:center; gap:clamp(28px,7vw,96px); padding:clamp(35px,7vw,90px) 0; }
.home .eyebrow { color:var(--accent); margin-bottom:18px; }
.home-hero h1 { font-size:clamp(2.85rem,6.1vw,6rem); line-height:.99; }
.home-role { margin-top:23px; font-weight:650; }
.home-intro .lede { max-width:42ch; margin-top:12px; }
.home-actions { margin-top:25px; }
.home-button { text-decoration:none; background:var(--accent); color:white; padding:13px 17px; display:inline-flex; gap:18px; }
.home-button:hover { background:#4d1728; }
.portrait { margin:0; background:#eadfe0; aspect-ratio:1 / 1.06; }
.portrait img { width:100%; height:100%; object-fit:cover; object-position:center 24%; display:block; }
.home-tools { display:grid; grid-template-columns:1fr 1fr 1fr; gap:26px; border-top:1px solid var(--line); padding:24px 0 11px; }
.home-tools h3 { margin:0 0 6px; font-size:1rem; }
.home-tools p { color:var(--muted); font-size:.93rem; max-width:40ch; }
@media (max-width:700px) { .home-hero,.home-tools { grid-template-columns:1fr; } .portrait { max-width:450px; } .home-nav { justify-content:end; } }
@media (max-width:850px) { .shell { width:calc(100% - 32px); } .intro { display:grid; gap:15px; margin-top:26px; } .actions { justify-content:start; } .layout { grid-template-columns:1fr; } .results { grid-row:2; } }
@media (max-width:460px) { .panel,.result-main { padding:15px; } .lookup { display:grid; } .header-agent { font-size:.8rem; } .header-agent span { font-size:.72rem; } footer { display:grid; } .fields { grid-template-columns:1fr; } }
@page { margin:13mm; }
@media print {
  .print-only { display:block; }
  :root { --ink:#111; --muted:#444; --line:#d0d0d0; }
  body,.masthead { background:#fff; }
  .shell { width:100%; }
  .masthead { border-top:0; }
  .header-inner { min-height:42px; }
  .headshot { width:36px; height:36px; }
  .intro { margin:14px 0 10px; }
  h1 { font-size:26pt; }
  h2 { font-size:15pt; }
  .eyebrow,.lede,.actions,form { display:none; }
  .layout,.results { display:block; }
  .result-main,.panel,.notice { border:1px solid var(--line); color:var(--ink); background:#fff; margin:0 0 8px; padding:10px 13px; }
  .result-main h2,.subamount { color:var(--ink); }
  .amount { font-size:28pt; }
  .result-totals { margin-top:7px; padding-top:4px; }
  .result-main,.scenario,.notice,tr,footer { break-inside:avoid; }
  .breakdown { break-inside:auto; }
  th,td { padding:3px 0; }
  footer { margin:10px 0 0; padding-top:7px; }
}
