/* AllergenKit — "Pantry" design system.
   Kitchen paperwork, done beautifully: cream paper, ink green, marigold,
   stamps, tape and sticker buttons. Common Measure micro-business template. */

:root {
  /* palette */
  --paper: #f6f0e3;
  --paper-deep: #ece3d0;
  --surface: #fffcf5;
  --ink: #27301f;
  --ink-soft: #5d6350;
  --brand: #2d5c40;
  --brand-dark: #1e4230;
  --brand-tint: #e3ebda;
  --accent: #eca43d;
  --accent-dark: #8f5c10;
  --danger: #b03a24;
  --line: #d9cfb8;

  /* legacy aliases (inline styles across pages rely on these) */
  --bg: var(--paper);

  --radius: 10px;
  --shadow: 0 2px 4px rgba(39, 48, 31, 0.06), 0 12px 28px -14px rgba(39, 48, 31, 0.18);
  --shadow-hard: 3px 3px 0 var(--ink);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 106.25%; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background-color: var(--paper);
  /* faint paper grain */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.18 0 0 0 0 0.15 0 0 0 0 0.07 0 0 0 0.045 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(236, 164, 61, 0.45); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; }
a { color: var(--brand); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent-dark); outline-offset: 2px; border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
  position: sticky; top: 0; z-index: 50;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 14px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.22rem;
  color: var(--ink); text-decoration: none; letter-spacing: -0.01em;
}
.logo svg { display: block; transform: rotate(-4deg); }
.nav { display: flex; gap: 20px; align-items: center; }
.nav a:not(.btn) {
  color: var(--ink); text-decoration: none; font-size: 0.93rem; font-weight: 600;
  border-bottom: 2px solid transparent; padding-bottom: 2px;
}
.nav a:not(.btn):hover { border-bottom-color: var(--accent); }

/* ---------- Buttons (stickers) ---------- */
.btn {
  display: inline-block;
  background: var(--brand);
  color: #fdf9ec;
  font-weight: 700;
  font-size: 0.97rem;
  padding: 12px 22px;
  border-radius: 9px;
  text-decoration: none;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-hard);
  cursor: pointer;
  font-family: var(--font);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); background: var(--brand-dark); }
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.btn.secondary { background: var(--surface); color: var(--ink); }
.btn.secondary:hover { background: var(--paper-deep); }
.btn.accent { background: var(--accent); color: var(--ink); }
.btn.accent:hover { background: #e0952b; }
.btn.on-dark { background: transparent; color: #f3edd9; border-color: #f3edd9; box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.4); }
.btn.on-dark:hover { background: rgba(255, 255, 255, 0.08); box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.4); }
.btn.small { padding: 7px 14px; font-size: 0.86rem; box-shadow: 2px 2px 0 var(--ink); }
.btn.small:hover { box-shadow: 1px 1px 0 var(--ink); transform: translate(1px, 1px); }

/* ---------- Kickers, stamps, tape, highlights ---------- */
.kicker {
  display: flex; align-items: center; gap: 10px;
  text-transform: uppercase; font-size: 0.76rem; letter-spacing: 0.14em;
  font-weight: 700; color: var(--brand); font-family: var(--font);
  margin: 0 0 14px;
}
.kicker::before { content: ""; width: 26px; height: 3px; background: var(--accent); flex: none; }
.kicker.center { justify-content: center; }
.kicker.center::after { content: ""; width: 26px; height: 3px; background: var(--accent); flex: none; }

.stamp {
  display: inline-block;
  padding: 0.5em 0.9em;
  border: 2.5px solid currentColor;
  border-radius: 8px 11px 7px 12px;
  color: var(--brand);
  font-weight: 800; font-family: var(--font);
  text-transform: uppercase; letter-spacing: 0.13em; font-size: 0.7rem;
  transform: rotate(-3deg);
  opacity: 0.92;
  background: var(--surface);
}
.stamp.red { color: var(--danger); }
.stamp.amber { color: var(--accent-dark); }

.tape {
  position: absolute;
  width: 88px; height: 24px;
  background: rgba(224, 192, 134, 0.55);
  border-left: 1px dashed rgba(120, 95, 50, 0.35);
  border-right: 1px dashed rgba(120, 95, 50, 0.35);
  z-index: 2; pointer-events: none;
}

.hl {
  background: linear-gradient(120deg, rgba(236, 164, 61, 0) 0 2%, rgba(236, 164, 61, 0.42) 4% 96%, rgba(236, 164, 61, 0) 98%) no-repeat 0 68% / 100% 42%;
  padding: 0 0.08em;
}

.badge {
  display: inline-block;
  background: var(--paper-deep);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 13px;
  border-radius: 100px;
  margin-bottom: 20px;
}

/* ---------- Hero ---------- */
.hero { padding: 72px 0 56px; text-align: center; }
.hero h1 {
  font-size: clamp(2rem, 4.8vw, 3.3rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 auto 18px;
  max-width: 780px;
}
.hero .sub {
  font-size: 1.14rem;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto 30px;
}
.hero .cta-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero .note { margin-top: 16px; font-size: 0.88rem; color: var(--ink-soft); }

/* split hero (home, label maker) */
.hero-split {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 56px; align-items: center;
  padding: 64px 0 60px;
}
.hero-split .hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.6vw, 3.2rem);
  font-weight: 900; line-height: 1.07; letter-spacing: -0.015em;
  margin: 0 0 18px;
}
.hero-split .sub { font-size: 1.13rem; color: var(--ink-soft); margin: 0 0 28px; max-width: 560px; }
.hero-split .cta-row { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-split .note { margin-top: 16px; font-size: 0.88rem; color: var(--ink-soft); }
.tick-row { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 18px; padding: 0; list-style: none; font-size: 0.88rem; color: var(--ink-soft); }
.tick-row li::before { content: "✓ "; color: var(--brand); font-weight: 800; }

/* the "printed sheet" artifact */
.hero-art { position: relative; }
.artifact {
  background: #fff;
  border: 1px solid #d5c9ac;
  box-shadow: 0 22px 44px -20px rgba(39, 48, 31, 0.4), 4px 4px 0 rgba(39, 48, 31, 0.07);
  padding: 18px 18px 14px;
  position: relative;
  transform: rotate(1.4deg);
  border-radius: 3px;
}
.artifact .tape.tl { top: -11px; left: 18px; transform: rotate(-5deg); }
.artifact .tape.tr { top: -11px; right: 18px; transform: rotate(4deg); }
.artifact .art-title { font-weight: 800; font-size: 0.82rem; margin-bottom: 2px; font-family: Arial, Helvetica, sans-serif; }
.artifact .art-sub { font-size: 0.66rem; color: #666; margin-bottom: 8px; font-family: Arial, Helvetica, sans-serif; }
.artifact .stamp { position: absolute; right: 14px; bottom: -13px; transform: rotate(5deg); box-shadow: var(--shadow); }
table.mini-matrix { border-collapse: collapse; width: 100%; font-family: Arial, Helvetica, sans-serif; }
table.mini-matrix th, table.mini-matrix td { border: 1px solid #cfc5a8; font-size: 0.62rem; padding: 4px 3px; text-align: center; }
table.mini-matrix th { background: var(--brand-dark); color: #f6f0e3; font-weight: 600; }
table.mini-matrix th.item, table.mini-matrix td.item { text-align: left; padding-left: 7px; font-size: 0.68rem; white-space: nowrap; }
table.mini-matrix td.y { background: #f6d7d1; color: var(--danger); font-weight: 800; }
table.mini-matrix td.m { background: #fdeed3; color: var(--accent-dark); font-weight: 800; }

/* ---------- Sections ---------- */
section { padding: 60px 0; }
section.alt { background: var(--paper-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(1.55rem, 3vw, 2.05rem); letter-spacing: -0.012em; margin: 0 0 12px; }
.section-intro { color: var(--ink-soft); max-width: 660px; margin-bottom: 38px; }

.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 26px; }
.card {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  position: relative;
}
.card::before {
  content: "";
  position: absolute; top: -9px; left: 50%;
  width: 72px; height: 20px; margin-left: -36px;
  transform: rotate(-2.5deg);
  background: rgba(224, 192, 134, 0.5);
  border-left: 1px dashed rgba(120, 95, 50, 0.3);
  border-right: 1px dashed rgba(120, 95, 50, 0.3);
  pointer-events: none;
}
.card.no-tape::before { display: none; }
.card h3 { margin: 0 0 8px; font-size: 1.12rem; }
.card p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.card .icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; margin-bottom: 14px;
  background: var(--brand-tint); border: 1.5px solid var(--ink); border-radius: 9px;
  color: var(--brand-dark);
}
.card .icon svg { display: block; }
.pro-tag {
  position: absolute; top: 14px; right: 14px;
  font-size: 0.66rem; font-weight: 800; letter-spacing: 0.1em;
  background: var(--accent); color: var(--ink);
  border: 1.5px solid var(--ink);
  padding: 2px 8px; border-radius: 6px;
  transform: rotate(3deg);
}

/* ---------- Pricing ---------- */
.price-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; max-width: 760px; margin: 0 auto; }
.price-card { text-align: left; position: relative; }
.price-card.featured { border: 2px solid var(--ink); box-shadow: 6px 6px 0 rgba(45, 92, 64, 0.25); }
.price-card .plan-name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.price-card .price { font-family: var(--font-display); font-size: 2.4rem; font-weight: 900; letter-spacing: -0.02em; margin: 8px 0 2px; }
.price-card .price span { font-family: var(--font); font-size: 0.95rem; font-weight: 500; color: var(--ink-soft); }
.price-card ul { list-style: none; padding: 0; margin: 18px 0 22px; }
.price-card li { padding: 6px 0 6px 28px; position: relative; font-size: 0.94rem; color: var(--ink-soft); }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 800; }
.pill {
  position: absolute; top: -14px; right: 16px;
  background: var(--accent); color: var(--ink);
  border: 1.5px solid var(--ink);
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em;
  padding: 4px 12px; border-radius: 7px;
  transform: rotate(2.5deg);
}

/* ---------- FAQ (ruled notebook) ---------- */
.faq details {
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--line);
  border-radius: 0;
  padding: 4px 0 16px;
  margin-bottom: 14px;
}
.faq summary {
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  cursor: pointer; list-style: none; position: relative; padding: 8px 34px 0 0;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 4px;
  font-family: var(--font); font-weight: 700; font-size: 1.3rem; color: var(--accent-dark);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-soft); margin: 10px 0 0; font-size: 0.96rem; max-width: 68ch; }

/* ---------- Rule-change alerts signup ---------- */
.signup-strip { padding: 10px 0 56px; }
.signup-card {
  background: #f7e8c8;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 rgba(39, 48, 31, 0.12);
  padding: 28px 30px;
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: 28px; align-items: center;
  position: relative;
}
.signup-card::before {
  content: "";
  position: absolute; top: -10px; left: 34px;
  width: 82px; height: 22px; transform: rotate(-3deg);
  background: rgba(224, 192, 134, 0.65);
  border-left: 1px dashed rgba(120, 95, 50, 0.35);
  border-right: 1px dashed rgba(120, 95, 50, 0.35);
  pointer-events: none;
}
.signup-card h2 { font-size: 1.35rem; margin: 0 0 8px; }
.signup-card p { margin: 0; color: #5d5335; font-size: 0.93rem; }
.signup-card form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.signup-card input[type="email"] {
  flex: 1 1 220px;
  font-family: var(--font); font-size: 0.95rem;
  padding: 12px 14px; border: 2px solid var(--ink); border-radius: 9px;
  background: var(--surface); color: var(--ink); min-width: 0;
}
.signup-card input[type="email"]:focus { outline: 3px solid var(--accent-dark); outline-offset: 1px; }
.sub-msg { flex-basis: 100%; font-size: 0.86rem; color: var(--danger); min-height: 1.2em; margin: 0; }
.sub-done { font-weight: 700; color: var(--brand-dark); font-size: 1rem; margin: 0; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 760px) {
  .signup-card { grid-template-columns: 1fr; gap: 18px; padding: 24px 20px; }
}

/* ---------- Page CTA band + footer ---------- */
.page-cta {
  background: var(--brand-dark);
  color: #f3edd9;
  padding: 64px 0;
  text-align: center;
}
.page-cta h2 { color: #fdf9ec; margin-bottom: 10px; }
.page-cta p { color: #cfc8ab; max-width: 560px; margin: 0 auto 28px; }
.page-cta .cta-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.page-cta .btn.accent { border-color: var(--ink); }

.site-footer {
  background: #16301f;
  padding: 48px 0 28px;
  color: #b9c2ad;
  font-size: 0.9rem;
}
.site-footer a { color: #e6e0c8; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 34px; }
.foot-brand .logo { color: #fdf9ec; font-size: 1.15rem; margin-bottom: 10px; }
.foot-brand p { margin: 0 0 10px; max-width: 30ch; }
.foot-grid h4 {
  font-family: var(--font); text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 0.72rem; color: var(--accent); margin: 4px 0 12px;
}
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: 8px; }
.foot-legal {
  border-top: 1px solid rgba(233, 226, 200, 0.18);
  padding-top: 20px;
  font-size: 0.8rem;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}

.disclaimer {
  font-size: 0.84rem;
  color: var(--ink-soft);
  background: var(--paper-deep);
  border: 1px dashed #b9ad8e;
  border-radius: 8px;
  padding: 14px 18px;
  margin-top: 22px;
  position: relative;
}

/* ---------- Matrix tool ---------- */
.tool-head { padding: 40px 0 10px; }
.tool-head h1 {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  font-weight: 900; letter-spacing: -0.015em; line-height: 1.12;
  margin: 0 0 12px; max-width: 20em;
}
.tool-head p { color: var(--ink-soft); max-width: 700px; margin: 0; font-size: 1.05rem; }

.toolbar {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end;
  margin: 24px 0 14px;
}
.toolbar .field { display: flex; flex-direction: column; gap: 4px; }
.toolbar label { font-size: 0.74rem; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.08em; }
.toolbar input[type="text"] {
  font-family: var(--font); font-size: 0.95rem;
  padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 8px;
  background: var(--surface); color: var(--ink); min-width: 210px;
}
.toolbar input:focus { outline: 2px solid var(--accent-dark); outline-offset: 0; border-color: var(--accent-dark); }
.toolbar .spacer { flex: 1; }

.matrix-scroll {
  overflow-x: auto; background: #fff;
  border: 1px solid #d5c9ac; border-radius: 3px;
  box-shadow: 0 16px 36px -18px rgba(39, 48, 31, 0.35), 4px 4px 0 rgba(39, 48, 31, 0.06);
}
table.matrix { border-collapse: collapse; width: 100%; min-width: 980px; }
table.matrix th, table.matrix td { border: 1px solid var(--line); }
table.matrix thead th {
  background: var(--brand-dark); color: #f6f0e3;
  font-size: 0.72rem; font-weight: 600;
  padding: 9px 4px;
  text-align: center;
  vertical-align: bottom;
  line-height: 1.25;
}
table.matrix thead th.item-col { text-align: left; padding: 9px 12px; font-size: 0.85rem; min-width: 200px; font-family: var(--font-display); letter-spacing: 0.02em; }
table.matrix td.item-cell { padding: 0; min-width: 200px; }
table.matrix td.item-cell input {
  width: 100%; border: none; background: transparent;
  font-family: var(--font); font-size: 0.93rem; color: var(--ink);
  padding: 10px 12px;
}
table.matrix td.item-cell input:focus { outline: 2px solid var(--accent-dark); outline-offset: -2px; }
table.matrix td.al-cell { padding: 0; text-align: center; width: 52px; }
table.matrix td.al-cell button {
  width: 100%; height: 42px;
  border: none; background: transparent; cursor: pointer;
  font-size: 0.95rem; font-weight: 800; font-family: var(--font);
  color: #d3c8a9;
}
table.matrix td.al-cell button:hover { background: rgba(236, 164, 61, 0.12); }
table.matrix td.al-cell button:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: -2px; }
table.matrix td.al-cell.state-yes { background: #f6d7d1; }
table.matrix td.al-cell.state-yes button { color: var(--danger); }
table.matrix td.al-cell.state-may { background: #fdeed3; }
table.matrix td.al-cell.state-may button { color: var(--accent-dark); }
table.matrix td.del-cell { width: 40px; text-align: center; }
table.matrix td.del-cell button {
  border: none; background: transparent; cursor: pointer;
  color: var(--ink-soft); font-size: 1rem; padding: 6px;
}
table.matrix td.del-cell button:hover { color: var(--danger); }

.matrix-actions { display: flex; gap: 12px; margin: 16px 0 6px; flex-wrap: wrap; }

.legend { display: flex; gap: 20px; flex-wrap: wrap; margin: 12px 0; font-size: 0.88rem; color: var(--ink-soft); }
.legend .key { display: inline-flex; align-items: center; gap: 7px; }
.legend .swatch { width: 20px; height: 20px; border-radius: 5px; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.8rem; background: #fff; }
.legend .swatch.yes { background: #f6d7d1; color: var(--danger); }
.legend .swatch.may { background: #fdeed3; color: var(--accent-dark); }

.autosave-note { font-size: 0.82rem; color: var(--ink-soft); }

/* Print header block — hidden on screen */
.print-meta { display: none; }

/* SEO content under tool / guide prose */
.tool-content { max-width: 740px; padding-bottom: 26px; }
.tool-content h2 { font-size: 1.45rem; margin-top: 44px; padding-top: 16px; position: relative; }
.tool-content h2::before { content: ""; position: absolute; top: 0; left: 0; width: 30px; height: 3px; background: var(--accent); }
.tool-content p, .tool-content li { color: var(--ink-soft); font-size: 0.99rem; }
.tool-content li { margin-bottom: 5px; }
.tool-content li::marker { color: var(--accent-dark); font-weight: 700; }
.tool-content strong { color: var(--ink); }

@media (max-width: 860px) {
  .hero-split { grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 44px 0 48px; }
  .hero-copy, .hero-art { min-width: 0; max-width: 100%; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .nav { gap: 14px; }
  .nav a.hide-mobile { display: none; }
  .hero { padding: 48px 0 40px; }
  section { padding: 44px 0; }
}
@media (max-width: 480px) {
  .foot-grid { grid-template-columns: 1fr; gap: 24px; }
  /* slim the demo matrix so the artifact fits a phone */
  table.mini-matrix th:nth-child(n+7), table.mini-matrix td:nth-child(n+7) { display: none; }
  table.mini-matrix th, table.mini-matrix td { font-size: 0.56rem; padding: 3px 2px; }
  table.mini-matrix th.item, table.mini-matrix td.item { font-size: 0.62rem; }
  .artifact { padding: 12px 12px 10px; transform: rotate(0.8deg); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* ===================== Print (the PDF output) ===================== */
@media print {
  @page { size: A4 landscape; margin: 10mm; }
  body { background: #fff; }
  .site-header, .toolbar, .matrix-actions, .tool-head p, .tool-content,
  .site-footer, .page-cta, .autosave-note, .no-print { display: none !important; }
  .tool-head { padding: 0; }
  .print-meta {
    display: flex; justify-content: space-between; align-items: baseline;
    margin: 0 0 8px; font-size: 10pt;
  }
  .print-meta .pm-name { font-size: 14pt; font-weight: 700; }
  .matrix-scroll { overflow: visible; border: none; box-shadow: none; border-radius: 0; }
  table.matrix { min-width: 0; width: 100%; }
  table.matrix th, table.matrix td { border: 1px solid #888; }
  table.matrix thead th { background: #1e4230 !important; color: #fff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; font-size: 6.5pt; padding: 4px 2px; }
  table.matrix thead th.item-col { font-size: 8pt; font-family: Arial, Helvetica, sans-serif; }
  table.matrix td.al-cell.state-yes { background: #f6d7d1 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  table.matrix td.al-cell.state-may { background: #fdeed3 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  table.matrix td.al-cell button { height: 24px; font-size: 9pt; color: transparent; }
  table.matrix td.al-cell.state-yes button, table.matrix td.al-cell.state-may button { color: inherit; }
  table.matrix td.al-cell.state-yes button { color: #b03a24; }
  table.matrix td.al-cell.state-may button { color: #8f5c10; }
  table.matrix td.item-cell input { padding: 4px 8px; font-size: 9pt; }
  table.matrix td.del-cell { display: none; }
  th.del-col { display: none; }
  .legend { margin: 6px 0 0; font-size: 8pt; }
  .legend .swatch { width: 12px; height: 12px; font-size: 7pt; }
  .print-disclaimer { display: block !important; font-size: 7pt; color: #555; margin-top: 6px; }
}
.print-disclaimer { display: none; }
