@font-face {
  font-family: "DM Sans";
  src: url("/assets/dm-sans-c2796eef.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "DM Mono";
  src: url("/assets/dm-mono-400-bf792450.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "DM Mono";
  src: url("/assets/dm-mono-500-e06c27ef.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Libre Baskerville";
  src: url("/assets/libre-baskerville-ab604eea.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --ink: #38242a;
  --muted: #816c6d;
  --paper: #fffdf9;
  --line: #e4cec8;
  --font-sans: "DM Sans", sans-serif;
  --font-serif: "Libre Baskerville", serif;
  --font-mono: "DM Mono", monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
.print-only { display: none; }
html { min-height: 100%; background: #d8b9b4; }
body { min-height: 100%; margin: 0; background: #d8b9b4; color: var(--ink); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
.icon { display: inline-block; flex: 0 0 auto; vertical-align: middle; }

.shared-document-page { background: #d8b9b4; }
.lilac-shell { --lilac: #7a2940; --lilac-deep: #5b1c2e; min-height: 100dvh; background: #d8b9b4; color: #3a2026; padding: 0 0 48px; }
.lilac-page { max-width: 570px; min-height: 100dvh; margin: 0 auto; background: var(--paper); box-shadow: 0 0 34px rgba(91, 28, 46, .2); position: relative; overflow: hidden; }
.lilac-page::after { content: ""; position: absolute; pointer-events: none; inset: 0; opacity: .075; background-image: radial-gradient(#b28b87 .45px, transparent .45px); background-size: 7px 7px; mix-blend-mode: multiply; }
.lilac-content { position: relative; z-index: 1; padding: 25px 22px 38px; }
.l-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 3px 0 13px; }
.l-brand { display: flex; align-items: center; gap: 8px; color: var(--lilac-deep); font-size: 15px; font-weight: 600; letter-spacing: -.03em; }
.l-brand-mark { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 9px; background: var(--lilac); color: #fff8f4; font-size: 13px; font-weight: 700; }
.l-print-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: 0 0 auto; min-height: 36px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); color: var(--lilac-deep); cursor: pointer; font: 600 11px var(--font-sans); }
.l-print-button:hover { background: #f9eeea; }
.l-print-note { margin: -5px 0 18px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.l-identity { display: grid; grid-template-columns: 1fr auto; align-items: end; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 15px 0 14px; margin-bottom: 30px; }
.l-person { font: 700 20px/1.2 var(--font-serif); }
.l-meta { color: var(--muted); font-size: 11px; line-height: 1.7; }
.l-meta strong { color: var(--ink); font-weight: 500; }
.l-stamp { width: 48px; height: 48px; border: 1px solid #b88686; border-radius: 50%; color: var(--lilac); display: grid; place-items: center; font: 700 10px/1.1 var(--font-serif); text-align: center; transform: rotate(-9deg); }
.l-update-summary { margin: -14px 0 20px; padding: 9px 11px; border-left: 2px solid #b88686; background: #f9eeea; color: var(--lilac-deep); font-size: 11px; line-height: 1.45; }
.l-update-summary a { color: inherit; font-weight: 600; text-decoration-color: #b88686; text-underline-offset: 2px; }
.l-update-summary a:focus-visible { outline: 2px solid var(--lilac); outline-offset: 3px; }
.l-section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 3px; gap: 12px; }
.l-section-title { font: 700 18px var(--font-serif); margin: 0; }
.l-section-count { color: var(--muted); font: 11px var(--font-mono); white-space: nowrap; }
.l-measure-row { min-height: 59px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; border-bottom: 1px solid var(--line); gap: 12px; scroll-margin-top: 20px; }
.l-measure-row--updated { background: linear-gradient(90deg, #fcf4f0, transparent 70%); }
.l-measure-name { min-width: 0; font-size: 14px; }
.l-measure-note { color: var(--muted); display: block; font-size: 10px; margin-top: 3px; }
.l-update-marker { color: var(--lilac); display: block; font: 500 10px var(--font-mono); letter-spacing: .02em; margin-top: 3px; }
.l-measure-value { color: var(--lilac-deep); font: 500 22px var(--font-mono); letter-spacing: -.08em; text-align: right; white-space: nowrap; }
.l-measure-alt { display: block; font: 400 10px var(--font-mono); color: var(--muted); letter-spacing: 0; margin-top: 2px; }
.l-measure-previous { display: block; color: var(--muted); font: 400 9px/1.4 var(--font-mono); letter-spacing: 0; margin-top: 4px; }
.l-caution { color: #a27664; margin-left: 5px; vertical-align: -2px; }
.l-caution-footnote { display: flex; align-items: flex-start; gap: 7px; margin: 18px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.l-caution-footnote .icon { color: #a27664; margin-top: 1px; }
.l-empty-state { margin: 18px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.l-footer-note { margin-top: 35px; padding: 17px 0 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 24px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.l-footer-note span { min-width: 0; }
.l-footer-note b { color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.text-right { text-align: right; }
.shared-unavailable { width: min(400px, calc(100% - 36px)); margin: 0 auto; padding: 40px; background: var(--paper); border: 1px solid var(--line); text-align: center; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.shared-unavailable .l-brand-mark { margin: 0 auto 20px; }
.shared-unavailable h1 { font: 700 24px/1.35 var(--font-serif); margin: 0; }

@media (min-width: 600px) {
  .lilac-shell { padding: 28px; }
  .lilac-page { border: 1px solid #d3b5b1; }
  .lilac-content { padding: 34px 44px 45px; }
}

@media (min-width: 1024px) {
  .lilac-shell { padding: 35px 35px 60px; }
  .lilac-page { max-width: 713px; }
  .lilac-content { padding: 43px 55px 56px; }
  .l-topline { padding: 4px 0 16px; }
  .l-brand { gap: 10px; font-size: 18.75px; }
  .l-brand-mark { width: 36px; height: 36px; border-radius: 11px; font-size: 16px; }
  .l-identity { padding: 19px 0 18px; margin-bottom: 38px; }
  .l-person { font-size: 25px; }
  .l-meta { font-size: 13.75px; }
  .l-stamp { width: 60px; height: 60px; font-size: 12.5px; }
  .l-update-summary { margin: -18px 0 25px; padding: 11px 14px; font-size: 13.75px; }
  .l-section-head { margin-bottom: 4px; }
  .l-section-title { font-size: 22.5px; }
  .l-section-count { font-size: 13.75px; }
  .l-measure-row { min-height: 74px; gap: 15px; }
  .l-measure-name { font-size: 17.5px; }
  .l-measure-note { margin-top: 4px; font-size: 12.5px; }
  .l-update-marker { margin-top: 4px; font-size: 12.5px; }
  .l-measure-value { font-size: 27.5px; }
  .l-measure-alt { margin-top: 3px; font-size: 12.5px; }
  .l-measure-previous { margin-top: 5px; font-size: 11.25px; }
  .l-caution { width: 16px; height: 16px; margin-left: 6px; }
  .l-caution-footnote { margin-top: 23px; font-size: 13.75px; }
  .l-empty-state { margin-top: 23px; font-size: 16px; }
  .l-footer-note { margin-top: 44px; padding-top: 21px; font-size: 12.5px; }
  .shared-unavailable { width: min(500px, calc(100% - 45px)); padding: 50px; }
  .shared-unavailable .l-brand-mark { margin-bottom: 25px; }
  .shared-unavailable h1 { font-size: 30px; }
}

@media print {
  @page { margin: 13mm 13mm 28mm; }
  html, body, .shared-document-page, .lilac-shell { min-height: 0; padding: 0; background: #fff !important; color: #000; }
  .print-hide, .l-topline, .l-identity, .l-footer-note { display: none !important; }
  .print-only { display: block !important; }
  .lilac-page { box-shadow: none; border: 0; max-width: 100%; min-height: auto; overflow: visible; }
  .lilac-page::after { display: none; }
  .lilac-content { padding: 0; }
  .l-print-header { display: flex !important; align-items: end; justify-content: space-between; gap: 18px; margin: 0 0 5mm; padding: 0 0 3mm; border-bottom: 1px solid #000; }
  .l-print-person { font: 700 18px/1.2 var(--font-serif); }
  .l-print-share, .l-print-date { margin-top: 1.5mm; font: 9px/1.4 var(--font-sans); }
  .l-print-date { text-align: right; white-space: nowrap; }
  .l-update-summary { margin: 0 0 4mm; padding: 0 0 0 3mm; border-left-color: #000; background: transparent; color: #000; font-size: 9px; }
  .l-update-summary a { color: inherit; text-decoration: none; }
  .l-section-head { margin-bottom: 1.5mm; }
  .l-section-title { color: #000; font-size: 16px; }
  .l-section-count { color: #000; font-size: 9px; }
  .l-measurements { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 8mm; }
  .l-measure-row { min-height: 13mm; gap: 8px; border-color: #000; background: transparent !important; break-inside: avoid; page-break-inside: avoid; }
  .l-measure-name { color: #000; font-size: 11px; }
  .l-measure-note, .l-update-marker { color: #000; margin-top: 1px; font-size: 8px; }
  .l-measure-value { color: #000; font-size: 16px; }
  .l-measure-alt { color: #000; margin-top: 1px; font-size: 8px; }
  .l-measure-previous { color: #000; margin-top: 2px; font-size: 7px; }
  .l-caution, .l-caution-footnote, .l-caution-footnote .icon { color: #000; }
  .l-caution-footnote { margin-top: 3mm; font-size: 8px; }
  .l-empty-state { color: #000; margin-top: 3mm; font-size: 11px; }
  .l-print-footer { position: fixed; left: 0; right: 0; bottom: -20mm; padding-top: 2mm; border-top: 1px solid #000; color: #000; font: 8px/1.35 var(--font-sans); }
  .l-print-footer strong, .l-print-footer span { display: block; }
  .l-print-footer span { margin-top: 1mm; overflow-wrap: anywhere; }
}
