/* Shared navigation: deliberately independent of the editor/gallery styles. */
.sf-header {
  height: 66px;
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 22px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 5;
  flex-wrap: nowrap;
  font:
    13px/1.45 'Segoe UI',
    system-ui,
    sans-serif;
}
.sf-header .sf-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 210px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.sf-header .sf-brand strong {
  display: block;
  font-size: 20px;
  letter-spacing: 0.3px;
}
.sf-header .sf-brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 2.2px;
  color: var(--muted);
}
.sf-header nav {
  display: flex;
  align-self: stretch;
  align-items: stretch;
  gap: 4px;
  flex-wrap: nowrap;
  overflow-x: auto;
  min-width: 0;
}
.sf-header .sf-nav-link {
  display: flex;
  align-items: center;
  padding: 0 16px;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  white-space: nowrap;
  text-decoration: none;
}
.sf-header .sf-nav-link:hover {
  color: var(--ink);
  background: #ffffff05;
}
.sf-header .sf-nav-link[aria-current='page'] {
  color: var(--ink);
  border-bottom-color: var(--accent);
  font-weight: 600;
}
.sf-header a:focus-visible {
  outline: 2px solid #75b6df;
  outline-offset: -3px;
}
.sf-header .sf-version {
  margin-left: auto;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.8px;
}
@media (max-width: 1000px) {
  .sf-header {
    gap: 12px;
    padding: 0 14px;
  }
  .sf-header .sf-brand {
    min-width: 170px;
  }
  .sf-header .sf-version {
    display: none;
  }
  .sf-header .sf-nav-link {
    padding: 0 12px;
  }
}
@media (max-width: 640px) {
  .sf-header {
    gap: 8px;
    padding: 0 8px;
  }
  .sf-header .sf-brand {
    min-width: 0;
    gap: 6px;
  }
  .sf-header .sf-brand > img {
    width: 28px;
    height: 28px;
  }
  .sf-header .sf-brand strong {
    font-size: 16px;
  }
  .sf-header .sf-brand small {
    font-size: 8px;
  }
  .sf-header nav {
    flex: 1 1 auto;
  }
  .sf-header .sf-nav-link {
    padding: 0 10px;
    font-size: 12px;
  }
}
@media print {
  .sf-header {
    display: none !important;
  }
}
.custom-pack-art svg {
  width: 100%;
  height: 100%;
}
