.lc-header, .lc-header * { box-sizing: border-box; }
header.lc-header {
  position: relative; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  width: 100%; height: 76px; gap: 20px; padding: 0 max(4vw, calc((100% - 1240px)/2));
  margin: 0; background: #fff; border-bottom: 1px solid #dce5df;
  color: #172e30; font: 500 14px/1.4 Arial, Helvetica, sans-serif; text-align: left;
}
.lc-header a { color: inherit; text-decoration: none; letter-spacing: normal; }
.lc-header .lc-logo { display: flex; align-items: center; flex: 0 0 128px; height: 44px; }
.lc-header .lc-logo img { display: block; width: 128px; height: 34px; object-fit: contain; }
.lc-header nav { display: flex; align-items: center; gap: 18px; }
.lc-header nav a { display: flex; align-items: center; min-height: 44px; white-space: nowrap; }
.lc-header nav a:hover, .lc-header nav a[aria-current] { color: #17664c; text-decoration: underline; text-underline-offset: 5px; }
.lc-header .lc-crop, .lc-menu summary {
  display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 16px;
  border-radius: 8px; white-space: nowrap; font-weight: 600; cursor: pointer;
}
.lc-header .lc-crop { background: #17664c; color: white; }
.lc-header .lc-crop:hover { background: #104c39; }
.lc-menu { display: none; }
.lc-menu summary { gap: 8px; list-style: none; border: 1px solid #cddbd3; color: #234235; }
.lc-menu summary::-webkit-details-marker { display: none; }
.lc-menu summary::after { content: ''; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); }
.lc-menu[open] summary::after { transform: translateY(2px) rotate(225deg); }
.lc-header :focus-visible, .lc-skip:focus { outline: 3px solid #17664c; outline-offset: 2px; }
.lc-skip { position: absolute; left: 12px; top: -100px; z-index: 100; background: white; padding: 8px; }
.lc-skip:focus { top: 8px; }
@media (max-width: 1199px) {
  header.lc-header { height: 64px; gap: 10px; padding-inline: clamp(12px,4vw,48px); }
  .lc-header > nav { display: none; }
  .lc-header .lc-crop { margin-left: auto; }
  .lc-menu { display: block; }
  .lc-menu nav { position: absolute; inset: 100% 0 auto; align-items: stretch; gap: 0; padding: 8px max(16px,4vw); background: white; border-bottom: 1px solid #cddbd3; box-shadow: 0 12px 22px #12332314; flex-direction: column; max-height: calc(100dvh - 64px); overflow: auto; }
}
@media (max-width: 370px) {
  header.lc-header { gap: 6px; padding-inline: 8px; }
  .lc-header .lc-crop, .lc-menu summary { padding-inline: 9px; }
}
/* Keep the sorter's local help and file-format hint next to its workspace. */
body:has(.lc-header) .packlog-header { padding: 6px max(4vw,calc((100% - 1240px)/2)); height: auto; min-height: 44px; background: #f5f7f3; justify-content: flex-end; }
body:has(.lc-header) .packlog-header :is(.labelcut-brand,.header-tools) { display: none; }
body:has(.lc-header) .packlog-header .headernote { color: #506359; padding: 0; border: 0; }
body:has(.lc-header) .packlog-header .help { background: white; color: #17664c; border: 1px solid #cddbd3; }
@media print { header.lc-header, .lc-skip { display: none; } }
