@page { size: auto; margin: 0; }

    :root {
      --navy: #0c1c30;
      --navy-2: #1e3b60;
      --ink: #212529;
      --muted: #5c6770;
      --line: #d5dde3;
      --red: #e30613;
      --green: #36ad5b;
      --green-dark: #2d8f4f;
      --gold: #36ad5b;
      --gold-soft: #d8f0e0;
      --paper: #ffffff;
      --soft: #f3f7f4;
    }

    @font-face {
      font-family: "New Academy";
      src: url("fonts/NewAcademy.ttf") format("truetype");
      font-weight: 700;
      font-style: normal;
      font-display: swap;
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }
    img { max-width: 100%; height: auto; }
    .brand-logo {
      max-width: none;
      width: auto;
      object-fit: contain;
    }

    html {
      scroll-behavior: smooth;
      overflow-x: clip;
      max-width: 100%;
      background:
        radial-gradient(1100px 480px at 8% -8%, rgba(96, 143, 62, 0.16), transparent 52%),
        radial-gradient(900px 420px at 92% 0%, rgba(54, 173, 91, 0.08), transparent 48%),
        #1c2533;
    }

    body {
      background: transparent;
      color: var(--ink);
      font-family: Arial, Helvetica, "Segoe UI", sans-serif;
      font-size: 16px;
      line-height: 1.45;
      overflow-x: clip;
      max-width: 100%;
      padding-bottom: 72px;
      -webkit-print-color-adjust: exact;
      print-color-adjust: exact;
    }

    .chrome-bg {
      position: fixed;
      inset: 0;
      z-index: 0;
      pointer-events: none;
      overflow: hidden;
    }
    .chrome-bg img {
      position: absolute;
      top: 0;
      height: 100%;
      width: min(540px, 40vw);
      max-width: none;
      object-fit: cover;
      opacity: 0.5;
      filter: blur(4px);
    }
    .chrome-bg-lab {
      left: 0;
      object-position: 36% 64%;
    }
    .chrome-bg-chem {
      right: 0;
      object-position: 90% 40%;
    }

    .site-header {
      position: sticky;
      top: 0;
      z-index: 20;
      background: rgba(7, 11, 18, 0.82);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border-bottom: 1px solid rgba(96, 143, 62, 0.45);
      box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
    }

    .site-header-inner {
      width: min(1600px, calc(100% - 32px));
      max-width: 100%;
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      padding: 12px 0;
      padding-top: calc(12px + env(safe-area-inset-top));
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 12px;
      text-decoration: none;
      min-width: 0;
    }
    .wordmark {
      font-family: "New Academy", Impact, "Arial Black", sans-serif;
      font-size: clamp(26px, 3vw, 36px);
      letter-spacing: 0.06em;
      line-height: 1;
      white-space: nowrap;
    }
    .wm-bazz { color: #ffffff; }
    .wm-lab { color: #afafaf; }

    .header-logo-img {
      height: 58px;
      width: auto;
      max-width: 160px;
      display: block;
      object-fit: contain;
    }

    .header-save {
      appearance: none;
      flex: 0 0 auto;
      border: 1px solid var(--green);
      background: var(--green);
      color: #fff;
      font-weight: 700;
      font-family: inherit;
      font-size: 13px;
      text-transform: uppercase;
      padding: 9px 16px;
      border-radius: 6px;
      cursor: pointer;
    }
    .header-save:hover {
      background: var(--green-dark);
      border-color: var(--green-dark);
    }

    .toolbar {
      position: relative;
      z-index: 2;
      display: flex;
      flex-direction: row;
      flex-wrap: nowrap;
      align-items: center;
      justify-content: flex-start;
      gap: 5px;
      background: rgba(7, 11, 18, 0.82);
      padding: 0 16px 12px;
      min-width: 0;
      overflow-x: auto;
      scrollbar-width: thin;
    }

    .toolbar a, .toolbar button {
      appearance: none;
      flex: 0 0 auto;
      border: 1px solid rgba(255, 255, 255, 0.14);
      background: rgba(255, 255, 255, 0.07);
      color: #e7eee4;
      font-weight: 700;
      font-family: inherit;
      font-size: 12px;
      text-transform: uppercase;
      padding: 7px 10px;
      border-radius: 6px;
      cursor: pointer;
      text-decoration: none;
      white-space: nowrap;
    }

    .toolbar a:hover, .toolbar button:hover {
      color: #fff;
      background: rgba(96, 143, 62, 0.35);
      border-color: rgba(157, 206, 106, 0.55);
    }

    .toolbar .ghost {
      background: var(--green);
      border-color: var(--green);
      color: #fff;
    }

    .toolbar .ghost:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }

    .toolbar-heading {
      margin: 0;
      color: #39ff14;
      font-size: 15px;
      font-weight: 800;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      line-height: 1.2;
    }

    @media (min-width: 1024px) {
      :root {
        --sheet-w: min(210mm, 100vw - 20px);
        --menu-left: max(12px, calc((100vw - var(--sheet-w)) / 2 - 236px));
      }
      body { padding-left: 0; padding-bottom: 24px; }
      .save-pdf-sticky { display: none; }
      .site-header-inner {
        width: 100%;
        max-width: none;
        margin: 0;
        padding-left: var(--menu-left);
        padding-right: max(16px, calc((100vw - var(--sheet-w)) / 2));
      }
      .toolbar {
        position: sticky;
        top: 86px;
        left: 0;
        z-index: 15;
        width: 0;
        height: 0;
        margin: 0;
        padding: 10px 0 0 var(--menu-left);
        overflow: visible;
        background: none;
        border: none;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 6px;
      }
      .toolbar .extra-first { margin-top: calc(3 * 38px + 2 * 6px); }
      .toolbar-heading { width: 200px; padding: 0 12px 4px; font-size: 16px; }
      .toolbar a, .toolbar button {
        width: 200px;
        min-width: 200px;
        min-height: 38px;
        text-align: left;
        background: rgba(255, 255, 255, 0.07);
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 6px;
        padding: 8px 12px;
        font-size: 13px;
        color: #e7eee4;
        white-space: nowrap;
        line-height: 1.25;
      }
      .toolbar a:hover, .toolbar button:hover {
        color: #fff;
        background: rgba(96, 143, 62, 0.35);
        border-color: rgba(157, 206, 106, 0.55);
      }
      .toolbar .ghost { display: none; }
    }

    .save-pdf-sticky {
      position: fixed;
      right: 16px;
      bottom: calc(16px + env(safe-area-inset-bottom));
      z-index: 50;
      appearance: none;
      border: 1px solid var(--green);
      background: var(--green);
      color: #fff;
      font-weight: 700;
      font-family: inherit;
      font-size: 14px;
      padding: 12px 18px;
      border-radius: 8px;
      cursor: pointer;
      box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
      -webkit-transform: translateZ(0);
      transform: translateZ(0);
    }
    .save-pdf-sticky:hover {
      background: var(--green-dark);
      border-color: var(--green-dark);
    }

    @media (min-width: 561px) {
      body { padding-bottom: 24px; }
      .save-pdf-sticky { display: none; }
    }

    .sheet-stack { position: relative; z-index: 1; padding: 16px 0 24px; }

    .site-footer {
      position: relative;
      z-index: 1;
      background: var(--navy);
      color: #d5dde6;
      padding: 28px 16px 36px;
    }

    .site-footer-inner {
      width: min(210mm, calc(100% - 20px));
      margin: 0 auto;
      display: grid;
      grid-template-columns: auto 1fr 1fr 1fr;
      gap: 18px;
      align-items: start;
    }

    .footer-brand {
      display: flex;
      align-items: center;
      gap: 12px;
    }
    .footer-logo {
      height: 64px;
      width: auto;
      max-width: 180px;
      background: transparent;
      padding: 0;
      border-radius: 0;
      object-fit: contain;
    }
    .footer-brand .wordmark { font-size: 28px; }

    .site-footer strong { color: #fff; display: block; margin-bottom: 4px; }
    .site-footer p { margin: 0; font-size: 13px; }
    .site-footer a { color: #b7e7c6; text-decoration: none; }

    .same { color: var(--green-dark); font-weight: 700; }
    .gap { color: var(--red); font-weight: 700; }

    .page {
      width: min(210mm, calc(100% - 20px));
      max-width: 100%;
      height: auto;
      margin: 0 auto 16px;
      background: var(--paper);
      box-shadow: 0 10px 28px rgba(0,0,0,.28);
      position: relative;
      overflow-x: hidden;
      scroll-margin-top: 90px;
    }

    .page-inner {
      padding: 22px 20px 28px;
      min-width: 0;
      max-width: 100%;
    }

    .running {
      display: flex;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 6px 12px;
      border-bottom: 1.4px solid var(--navy);
      padding-bottom: 5px;
      margin-bottom: 10px;
      font-size: 11px;
      letter-spacing: .1em;
      text-transform: uppercase;
      color: var(--navy);
      font-weight: 700;
    }

    .running span { min-width: 0; overflow-wrap: anywhere; }
    .running span:last-child { letter-spacing: .03em; color: var(--muted); }

    .folio {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 8px;
      font-size: 11px;
      color: var(--muted);
      border-top: 0.8px solid var(--line);
      padding-top: 8px;
      margin-top: 18px;
    }

    .folio b { color: var(--navy); }

    h1, h2, h3 { font-weight: 700; color: var(--navy); }
    h2 { font-size: clamp(1.35rem, 3vw, 1.7rem); letter-spacing: -.02em; margin: 0 0 6px; }
    h3 { font-size: 1.02rem; margin: 14px 0 6px; }
    p { margin: 0 0 8px; }
    .lead { color: var(--muted); max-width: 70ch; overflow-wrap: break-word; }

    .rule {
      height: 2px;
      background: linear-gradient(90deg, var(--gold), transparent 78%);
      margin: 6px 0 12px;
    }

    .scroll {
      width: 100%;
      max-width: 100%;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
    }

    table {
      width: 100%;
      border-collapse: collapse;
      font-size: 14px;
    }

    .scroll table { min-width: 560px; }

    th, td {
      border: 0.6px solid #b7c0c8;
      padding: 7px 8px;
      vertical-align: top;
      text-align: left;
    }

    th {
      background: var(--navy);
      color: #fff;
      font-size: 11px;
      letter-spacing: .05em;
      text-transform: uppercase;
    }

    tr:nth-child(even) td { background: #f5f7f9; }
    td.num, th.num { text-align: right; white-space: nowrap; }
    td.mid { text-align: center; }
    table.tight { min-width: 0; }

    .grid-2, .grid-3 { display: grid; gap: 12px; min-width: 0; }
    .grid-2 { grid-template-columns: 1fr 1fr; }
    .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
    .grid-2 > *, .grid-3 > * { min-width: 0; }

    .box {
      border: 0.7px solid var(--line);
      padding: 12px;
      background: var(--soft);
    }

    .box.gold { background: #eef8f1; border-color: var(--gold-soft); }
    .box.navy { background: var(--navy); color: #e8eef4; }
    .box.navy h3, .box.navy b { color: #fff; }
    .box.navy p { color: #d5dde6; }

    .fig {
      width: 100%;
      max-width: 100%;
      height: 220px;
      object-fit: cover;
      object-position: center;
      display: block;
      background: #0c1c30;
      border: 0.6px solid var(--line);
    }

    .caption {
      font-size: 12px;
      color: var(--muted);
      margin-top: 6px;
      font-style: italic;
    }

    .kvs { width: 100%; min-width: 0; }
    .kvs td { border: 0; background: transparent !important; padding: 4px 0; }
    .kvs td:first-child { color: var(--muted); width: 48%; }
    .kvs td:last-child { font-weight: 700; color: var(--navy); }

    .note {
      font-size: 14px;
      color: #3d4650;
      background: #eef8f1;
      border-left: 3px solid var(--green);
      padding: 10px 12px;
      margin-top: 12px;
    }

    .tiny { font-size: 13px; color: var(--muted); }

    .badge-new, .badge-best {
      display: inline-block;
      margin-left: 6px;
      padding: 1px 6px;
      font-size: 10px;
      font-weight: 800;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      color: #fff;
      background: var(--red);
      border-radius: 2px;
      vertical-align: middle;
      line-height: 1.4;
      white-space: nowrap;
    }
    .badge-best { background: var(--green); }
    h2 .badge-new, h3 .badge-new, h2 .badge-best, h3 .badge-best { margin-left: 8px; }
    tr.is-new td:first-child { font-weight: 700; }
    .toolbar a.best-nav {
      color: #dff5c8;
      background: rgba(96, 143, 62, 0.28);
      border-color: rgba(157, 206, 106, 0.5);
    }
    .box.best { background: #eef8f1; border: 2px solid var(--green); }

    .cover { padding: 0; overflow-x: hidden; }
    .cover-hero {
      position: relative;
      width: 100%;
      height: auto;
      overflow: hidden;
      background: #08182b;
    }
    .cover-compare { margin-top: 12px; }
    .cover-hero img {
      position: static;
      width: 100%;
      height: auto;
      display: block;
      object-fit: contain;
    }
    .cover-hero::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(180deg, rgba(8,20,36,.12) 0%, rgba(8,20,36,.82) 100%);
    }
    .cover-stamp {
      position: absolute;
      top: 14px;
      left: 16px;
      right: 16px;
      z-index: 2;
      display: flex;
      justify-content: flex-end;
      align-items: center;
      gap: 8px;
      color: #fff;
      font-size: 11px;
      letter-spacing: .08em;
      text-transform: uppercase;
      font-weight: 700;
    }
    .cover-title {
      position: absolute;
      left: 16px;
      right: 16px;
      bottom: 16px;
      z-index: 2;
      color: #fff;
    }
    .cover-title small {
      display: block;
      letter-spacing: .16em;
      text-transform: uppercase;
      color: #b7e7c6;
      font-size: 12px;
      font-weight: 700;
      margin-bottom: 6px;
    }
    .cover-title h1 {
      color: #fff;
      font-family: Georgia, "Times New Roman", serif;
      font-size: clamp(1.45rem, 5.4vw, 2.5rem);
      line-height: 1.08;
      overflow-wrap: break-word;
    }
    .cover-body { padding: 20px 20px 8px; min-width: 0; max-width: 100%; }
    .print-cover-head { display: none; }

    .toc-list { list-style: none; width: 100%; }
    .toc-list a {
      display: grid;
      grid-template-columns: 36px minmax(0, 1fr);
      gap: 8px;
      padding: 10px 0;
      border-bottom: 0.6px dotted #b7c0c8;
      color: inherit;
      text-decoration: none;
    }
    .toc-list a > :last-child { min-width: 0; max-width: 100%; }
    .toc-list .no {
      font-family: Arial, Helvetica, sans-serif;
      font-size: 1.15rem;
      color: var(--red);
      font-weight: 800;
    }
    .toc-list .name { display: block; font-size: 1.05rem; font-weight: 700; color: var(--navy); overflow-wrap: break-word; }
    .toc-list .desc { display: block; font-size: 13px; color: var(--muted); font-weight: 400; margin-top: 2px; overflow-wrap: break-word; }

    @media (max-width: 820px) {
      .grid-2, .grid-3 { grid-template-columns: 1fr; }
      .cover-stamp { flex-direction: column; }
      .fig { height: 180px; object-fit: cover; }
    }

    @media (max-width: 560px) {
      .header-save { display: none; }
      .chrome-bg-lab {
        left: 0;
        width: 100%;
        object-position: center 55%;
      }
      .chrome-bg-chem { display: none; }
      body { font-size: 15px; padding-bottom: 76px; }
      .page { width: calc(100% - 12px); margin-bottom: 12px; }
      .page-inner, .cover-body { padding: 16px 14px 20px; }
      .site-footer-inner { grid-template-columns: 1fr; width: calc(100% - 16px); }
      .site-header {
        position: static;
        top: auto;
      }
      .site-header-inner { width: calc(100% - 16px); }
      .header-logo-img { height: 44px; }
      .wordmark { font-size: 22px; }
      .toolbar {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
        align-items: stretch;
        justify-content: flex-start;
        overflow: visible;
        gap: 6px;
        padding: 0 8px 12px;
      }
      .toolbar-heading {
        flex: 1 1 100%;
        width: auto;
        padding: 6px 4px 0;
      }
      .toolbar a, .toolbar button {
        flex: 1 1 calc(50% - 6px);
        text-align: center;
        white-space: nowrap;
        line-height: 1.25;
        font-size: 10px;
        padding: 8px 6px;
        background: rgba(255, 255, 255, 0.08);
        color: #e7eee4;
        border-color: rgba(255, 255, 255, 0.14);
      }
      .toolbar .ghost { display: none; }
      .save-pdf-sticky {
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        border-radius: 0;
        border: 0;
        padding: 14px 16px;
        padding-bottom: calc(14px + env(safe-area-inset-bottom));
        font-size: 15px;
        box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
      }
      .cover-hero { height: auto; }
      .cover-stamp { letter-spacing: .04em; font-size: 10px; }
      .running { letter-spacing: .04em; gap: 6px; }
      .running span { overflow-wrap: anywhere; }
      th, td { padding: 8px 6px; }
      .scroll table { min-width: 480px; }
    }

    @media print {
      .chrome-bg { display: none !important; }
      html, body {
        background: #fff;
        font-size: 16px;
        line-height: 1.45;
        padding: 0;
        margin: 0;
        overflow: visible;
        max-width: none;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
      }
      .util-bar, .site-header, .sheet-stack { padding: 0; margin: 0; }
      .util-bar,
      .site-header,
      .header-save,
      .toolbar,
      .site-footer,
      .save-pdf-sticky {
        display: none !important;
        position: static !important;
        height: 0 !important;
        overflow: hidden !important;
      }
      .page,
      .page.page-tall,
      .page.cover {
        width: auto;
        max-width: none;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0;
        box-shadow: none;
        overflow: visible;
        break-after: auto;
        break-before: auto;
        break-inside: auto;
        page-break-after: auto;
        page-break-before: auto;
        page-break-inside: auto;
      }
      .page { break-inside: avoid; page-break-inside: avoid; }
      .page-inner {
        padding: 22px 20px 28px;
        height: auto;
        min-height: 0;
      }
      .cover-body {
        padding: 20px 20px 8px;
        height: auto;
        min-height: 0;
      }
      .cover-hero {
        height: auto;
        overflow: hidden;
        background: #08182b;
      }
      .cover-hero img {
        position: static !important;
        inset: auto;
        width: 100% !important;
        height: auto !important;
        object-fit: contain;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
      }
      .running,
      .print-cover-head { display: none !important; }
      .print-cover-head p {
        margin: 0 0 2px;
        letter-spacing: .12em;
        text-transform: uppercase;
        color: #2d8f4f;
        font-size: 8pt;
        font-weight: 700;
      }
      .print-cover-head h1 {
        margin: 0;
        color: #0c1c30;
        font-family: Georgia, "Times New Roman", serif;
        font-size: 18pt;
        line-height: 1.15;
      }
      .cover .fig,
      .cover .caption {
        display: block;
        margin-top: 3mm;
      }
      .cover .fig.cover-compare {
        height: 48mm;
        object-fit: cover;
      }
      .toc-list a { padding: 10px 0; }
      .folio {
        position: static;
        left: auto;
        right: auto;
        bottom: auto;
        margin-top: 3mm;
        padding-top: 2mm;
        break-before: avoid;
        page-break-before: avoid;
        break-inside: avoid;
        page-break-inside: avoid;
      }
      .page > :last-child,
      .page-inner > :last-child {
        break-before: avoid;
        page-break-before: avoid;
      }
      h2, h3 {
        break-after: avoid;
        page-break-after: avoid;
      }
      tr {
        break-inside: avoid;
        page-break-inside: avoid;
      }
      thead { display: table-header-group; }
      .scroll { overflow: visible; }
      table { font-size: 14px; width: 100%; table-layout: auto; }
      .scroll table { min-width: 560px; }
      th { font-size: 11px; padding: 7px 8px; }
      td { padding: 7px 8px; }
      .fig {
        height: 220px;
        object-fit: cover;
        object-position: center;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
      }
    }

    .toolbar a.current {
      color: #fff;
      background: rgba(96, 143, 62, 0.45);
      border-color: #9dce6a;
    }

    .check {
      display: flex;
      align-items: flex-start;
      gap: 8px;
      margin: 5px 0;
      font-size: 14px;
      line-height: 1.35;
    }
    .check input {
      margin-top: 2px;
      width: 15px;
      height: 15px;
      accent-color: var(--green);
      flex: 0 0 15px;
    }
    .weigh-actual { min-width: 72px; background: #fffef6 !important; }

    .status-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
      margin: 10px 0 12px;
    }
    .status-grid .box { margin: 0; }
    .status-grid h3 { font-size: 13px; }
    .status-grid p { font-size: 13px; margin: 0; }
    .record-line td:last-child { min-height: 22px; background: #fffef6; }
    @media (max-width: 700px) {
      .status-grid { grid-template-columns: 1fr; }
    }

    body.pdf-capture {
      overflow: auto !important;
    }
    body.pdf-capture .sheet-stack {
      width: 794px;
      max-width: 794px;
      margin: 0 auto;
    }
    body.pdf-capture .page {
      width: 794px !important;
      max-width: 794px !important;
      overflow: visible !important;
    }
