.inventory-page {
  --inv-ink: #1a2921;
  --inv-green: #23543c;
  --inv-deep: #163a2a;
  --inv-paper: #f4f2e9;
  --inv-rule: #cfd2c6;
  --inv-ochre: #be8741;
  --inv-muted: #566358;
  color: var(--inv-ink);
  background: var(--inv-paper);
}
.inventory-page * { box-sizing: border-box; }
.inventory-page .page-shell { width: min(1160px, calc(100% - 40px)); }
.inventory-page .site-header { min-height: 66px; }
.inventory-page .site-header, .inventory-page .site-nav, .inventory-page .brand { color: var(--inv-ink); }
.inventory-main { padding-top: 18px; padding-bottom: 56px; }
.inventory-crumb { margin: 0 0 14px; color: var(--inv-muted); font-size: .78rem; }
.inventory-crumb a { color: var(--inv-green); font-weight: 750; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.inventory-intro { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding: 12px 0 18px; border-bottom: 1px solid var(--inv-rule); }
.inventory-eyebrow { margin: 0 0 6px; color: var(--inv-ochre); font-size: .73rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.inventory-intro h1 { max-width: 760px; margin: 0; color: var(--inv-ink); font: 700 clamp(2rem, 4.4vw, 3.4rem)/1.02 Georgia, 'Times New Roman', serif; letter-spacing: -.04em; }
.inventory-lead { max-width: 780px; margin: 12px 0 0; color: var(--inv-muted); font-size: 1rem; line-height: 1.55; }
.inventory-stamp { display: grid; min-width: 150px; gap: 5px; border-left: 2px solid var(--inv-ochre); padding: 8px 0 8px 14px; color: var(--inv-green); font-size: .67rem; font-weight: 850; letter-spacing: .08em; }
.inventory-tool { margin-top: 20px; border: 1px solid var(--inv-rule); background: #fbfaf5; box-shadow: 0 8px 26px rgba(26,41,33,.06); }
.inventory-grid { display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(300px, .84fr); align-items: stretch; }
.inventory-inputs { min-width: 0; padding: 22px 24px 24px; }
.inventory-block-title { display: flex; align-items: start; gap: 12px; margin: 0 0 14px; }
.inventory-index { display: grid; place-items: center; flex: 0 0 26px; width: 26px; height: 26px; border: 1px solid var(--inv-ochre); color: var(--inv-green); font-size: .7rem; font-weight: 850; }
.inventory-block-title h2 { margin: 0; color: var(--inv-ink); font-size: 1.05rem; line-height: 1.2; }
.inventory-block-title p { margin: 4px 0 0; color: var(--inv-muted); font-size: .78rem; line-height: 1.45; }
.depth-strip { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: end; border-bottom: 1px solid var(--inv-rule); padding: 0 0 18px; }
.inventory-field { display: grid; min-width: 0; gap: 6px; color: var(--inv-ink); font-size: .79rem; font-weight: 760; }
.inventory-field small { color: var(--inv-muted); font-size: .69rem; font-weight: 450; line-height: 1.4; }
.inventory-field input, .inventory-field select, .volume-entry select { width: 100%; min-width: 0; min-height: 42px; border: 1px solid #9ba69a; border-radius: 0; padding: 8px 10px; color: var(--inv-ink); background: #fffef9; font: inherit; font-size: .9rem; }
.inventory-field input:focus-visible, .inventory-field select:focus-visible, .volume-entry select:focus-visible, .inventory-button:focus-visible, .remove-row:focus-visible, .copy-estimate:focus-visible, .source-link:focus-visible { outline: 3px solid #ad7433; outline-offset: 2px; }
.depth-field { max-width: 290px; }
.depth-unit-note { margin: 0 0 2px; color: var(--inv-muted); font-size: .72rem; line-height: 1.45; }
.inventory-ledger-head { display: flex; justify-content: space-between; gap: 12px; align-items: end; margin: 18px 0 2px; }
.inventory-ledger-head .inventory-block-title { margin: 0; }
.sample-flag { color: #815c2d; font-size: .68rem; font-weight: 780; text-align: right; }
.inventory-rows { border-top: 1px solid var(--inv-rule); }
.inventory-row { display: grid; grid-template-columns: minmax(112px, .74fr) minmax(150px, 1fr) auto; gap: 12px; align-items: end; margin: 0; border: 0; border-bottom: 1px solid var(--inv-rule); padding: 12px 0; }
.inventory-row legend { display: contents; }
.inventory-row legend > span:last-child { align-self: center; color: var(--inv-green); font-size: .79rem; font-weight: 800; }
.row-index { align-self: center; color: var(--inv-ochre); font-size: .69rem; font-weight: 850; font-variant-numeric: tabular-nums; }
.inventory-row .inventory-field { gap: 5px; font-size: .7rem; }
.inventory-row .inventory-field input, .inventory-row .volume-entry select { min-height: 38px; padding: 6px 8px; font-size: .84rem; }
.volume-entry { display: grid; grid-template-columns: minmax(0, 1fr) 74px; gap: 5px; }
.remove-row { min-height: 36px; border: 0; padding: 7px; color: #5c655b; background: transparent; font: inherit; font-size: .68rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.remove-row:disabled { visibility: hidden; }
.inventory-actions { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; margin-top: 13px; }
.inventory-button, .copy-estimate { min-height: 42px; border: 1px solid var(--inv-green); border-radius: 0; padding: 9px 12px; color: var(--inv-green); background: transparent; font: inherit; font-size: .77rem; font-weight: 820; cursor: pointer; }
.inventory-button:hover:not(:disabled) { color: #fffdf7; background: var(--inv-green); }
.inventory-button.secondary { border-color: var(--inv-rule); color: var(--inv-muted); }
.inventory-button.secondary:hover:not(:disabled) { border-color: var(--inv-green); color: var(--inv-green); background: #efeee5; }
.inventory-button:disabled { cursor: not-allowed; opacity: .5; }
.inventory-hint { margin: 12px 0 0; border-left: 2px solid var(--inv-ochre); padding-left: 10px; color: var(--inv-muted); font-size: .75rem; line-height: 1.5; }
.inventory-error { min-height: 1.25em; margin: 10px 0 0; color: #8b3226; font-size: .77rem; }
.coverage-result { display: flex; flex-direction: column; min-width: 0; padding: 22px 23px 20px; color: #f8f5e9; background: var(--inv-deep); }
.result-overline { margin: 0 0 9px; color: #e9c07f; font-size: .68rem; font-weight: 850; letter-spacing: .12em; }
.coverage-result h2 { margin: 0; color: #fffdf6; font: 650 1.48rem/1.18 Georgia, 'Times New Roman', serif; }
.coverage-result [role="status"] { min-height: 40px; margin: 9px 0 12px; color: #dbe3da; font-size: .74rem; line-height: 1.45; }
.coverage-answer { border-top: 1px solid rgba(239,237,220,.29); border-bottom: 1px solid rgba(239,237,220,.29); padding: 12px 0 13px; }
.coverage-answer span { display: block; color: #dbe3da; font-size: .72rem; }
.coverage-answer strong { display: block; margin-top: 3px; color: #f4cd86; font: 760 clamp(2.2rem, 4.2vw, 3.1rem)/1 Georgia, 'Times New Roman', serif; letter-spacing: -.04em; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.coverage-answer .metric-answer { margin-top: 5px; color: #fffdf6; font-size: .92rem; font-weight: 750; }
.coverage-details { display: grid; gap: 0; margin: 9px 0 12px; }
.coverage-details div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dotted rgba(239,237,220,.24); padding: 7px 0; }
.coverage-details dt { color: #dbe3da; font-size: .7rem; line-height: 1.35; }
.coverage-details dd { margin: 0; color: #fffdf6; font-size: .74rem; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.coverage-detail { margin: 0; color: #dbe3da; font-size: .73rem; line-height: 1.5; }
.copy-estimate { display: flex; justify-content: space-between; align-items: center; margin-top: auto; border-color: #e7bd77; color: var(--inv-deep); background: #efc77f; text-align: left; }
.copy-estimate:hover:not(:disabled) { background: #ffdc9d; }
.copy-estimate:disabled { cursor: not-allowed; opacity: .58; }
.copy-status { min-height: 1em; margin: 5px 0 0; color: #dbe3da; font-size: .68rem; }
.copy-fallback { width: 100%; margin-top: 6px; border: 1px solid #8ea18f; padding: 8px; color: #fff; background: #254633; font: inherit; font-size: .72rem; }
.result-boundary { margin: 10px 0 0; color: #bfcfc1; font-size: .67rem; line-height: 1.45; }
.tool-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; border-top: 1px solid var(--inv-rule); padding: 10px 16px; color: var(--inv-muted); background: #eeeee4; font-size: .68rem; }
.tool-footer strong { color: var(--inv-green); }
.inventory-figure { max-width: 980px; margin: 30px auto 36px; }
.inventory-figure img { display: block; width: 100%; height: auto; border: 1px solid var(--inv-rule); background: #faf9f4; }
.inventory-figure figcaption { margin-top: 7px; color: var(--inv-muted); font-size: .74rem; line-height: 1.45; text-align: center; }
.inventory-section { max-width: 1000px; margin: 0 auto 32px; }
.inventory-section h2 { margin: 0 0 10px; color: var(--inv-deep); font: 700 clamp(1.35rem, 3vw, 1.8rem)/1.15 Georgia, 'Times New Roman', serif; }
.inventory-section h3 { margin: 17px 0 5px; color: var(--inv-green); font-size: .94rem; }
.inventory-section p, .inventory-section li { color: var(--inv-muted); font-size: .86rem; line-height: 1.6; }
.inventory-section p { margin: 0 0 10px; }
.inventory-formula { margin: 14px 0; border-left: 2px solid var(--inv-ochre); padding: 10px 13px; color: var(--inv-ink); background: #efeee5; font-size: .9rem; line-height: 1.65; font-variant-numeric: tabular-nums; }
.inventory-method-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--inv-rule); border-bottom: 1px solid var(--inv-rule); }
.inventory-method-grid article { padding: 14px 16px 14px 0; }
.inventory-method-grid article + article { border-left: 1px solid var(--inv-rule); padding-left: 16px; }
.inventory-method-grid b { display: block; margin-bottom: 6px; color: var(--inv-ochre); font-size: .68rem; letter-spacing: .08em; }
.inventory-faq details { border-top: 1px solid var(--inv-rule); padding: 11px 0; }
.inventory-faq details:last-child { border-bottom: 1px solid var(--inv-rule); }
.inventory-faq summary { color: var(--inv-green); font-size: .9rem; font-weight: 790; cursor: pointer; }
.inventory-faq details p { max-width: 860px; margin: 7px 0 0; font-size: .82rem; }
.inventory-links { border-top: 1px solid var(--inv-rule); padding-top: 18px; }
.inventory-links a, .inventory-section a { color: var(--inv-green); font-weight: 760; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.inventory-source { font-size: .74rem !important; }
.inventory-page .site-footer { margin-top: 0; }
@media (max-width: 900px) {
  .inventory-grid { grid-template-columns: minmax(0, 1fr); }
  .coverage-result { grid-row: 1; }
  .inventory-inputs { grid-row: 2; }
  .inventory-method-grid { grid-template-columns: minmax(0, 1fr); }
  .inventory-method-grid article, .inventory-method-grid article + article { border-left: 0; border-bottom: 1px solid var(--inv-rule); padding: 12px 0; }
  .inventory-method-grid article:last-child { border-bottom: 0; }
}
@media (max-width: 650px) {
  .inventory-page .page-shell { width: min(100% - 24px, 1160px); }
  .inventory-page .site-header.page-shell { width: 100%; min-height: 0; padding: 8px 10px; flex-direction: column; align-items: stretch; gap: 4px; }
  .inventory-page .brand { gap: 6px; font-size: 15px; letter-spacing: -.45px; }
  .inventory-page .brand-symbol { flex-basis: 24px; width: 24px; height: 24px; }
  .inventory-page .brand-symbol svg { width: 19px; height: 19px; }
  .inventory-page .site-nav { display: grid; width: 100%; min-width: 0; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; padding: 0; }
  .inventory-page .site-nav a { min-height: 35px; padding: 4px 1px; font-size: 10.5px; }
  .inventory-main { padding-top: 12px; }
  .inventory-intro { align-items: start; gap: 12px; }
  .inventory-stamp { min-width: 104px; padding-left: 9px; font-size: .58rem; }
  .inventory-intro h1 { font-size: clamp(1.8rem, 8vw, 2.5rem); }
  .inventory-lead { margin-top: 9px; font-size: .91rem; }
  .inventory-tool { margin-top: 14px; }
  .inventory-inputs, .coverage-result { padding: 17px 14px; }
  .depth-strip { grid-template-columns: minmax(0,1fr); gap: 8px; }
  .depth-field { max-width: none; }
  .inventory-ledger-head { align-items: start; flex-direction: column; gap: 5px; }
  .sample-flag { text-align: left; }
  .inventory-row { grid-template-columns: 22px minmax(0, 1fr) minmax(0, 1fr); gap: 7px; }
  .inventory-row legend > span:last-child { grid-column: 2 / -1; grid-row: 1; }
  .row-index { grid-column: 1; grid-row: 1; }
  .inventory-row .count-field { grid-column: 1 / 3; }
  .inventory-row .volume-field { grid-column: 1 / 3; }
  .remove-row { grid-column: 3; grid-row: 2 / span 2; justify-self: end; align-self: center; }
  .coverage-answer strong { font-size: 2.75rem; }
  .tool-footer { padding: 9px 12px; }
  .inventory-figure { margin: 22px auto 28px; }
  .inventory-section { margin-bottom: 26px; }
}
@media (max-width: 390px) {
  .inventory-page .page-shell { width: calc(100% - 20px); }
  .inventory-page .site-header.page-shell { width: 100%; }
  .inventory-intro { display: block; }
  .inventory-stamp { display: flex; gap: 12px; margin-top: 9px; border-left: 0; border-top: 1px solid var(--inv-rule); padding: 7px 0 0; }
  .inventory-intro h1 { font-size: 1.9rem; }
  .inventory-row { grid-template-columns: 20px minmax(0, 1fr) 48px; gap: 6px; }
  .inventory-row .count-field { grid-column: 2 / -1; }
  .inventory-row .volume-field { grid-column: 2 / -1; }
  .remove-row { grid-column: 3; grid-row: 2 / span 2; }
  .inventory-row legend > span:last-child { grid-column: 2 / -1; }
  .volume-entry { grid-template-columns: minmax(0,1fr) 68px; }
  .inventory-actions { align-items: stretch; flex-direction: column; }
  .inventory-button { width: 100%; }
  .coverage-result h2 { font-size: 1.3rem; }
  .coverage-answer strong { font-size: 2.35rem; }
  .coverage-details dt { max-width: 56%; }
  .coverage-details dd { max-width: 44%; overflow-wrap: anywhere; }
}
