:root {
  --fg-icon-neutral-light: #f9f9f9;
}
body {
  margin: 0;
}
.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  background: var(--fg-primary);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 700;
  border-radius: 0.5rem;
}
.fg-header {
  justify-content: space-between;
}
.brand-group {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.brand-sub {
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.header-tools {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.header-tools select {
  min-width: 7rem;
}
.beta-badge {
  font-size: 0.65rem;
  background: var(--fg-primary-soft);
  color: var(--fg-primary);
  padding: 0.25rem 0.5rem;
  border-radius: 1rem;
}
.fg-sidebar {
  min-height: calc(100vh - 4.5rem);
}
.sidebar-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin: 1rem 0.75rem 0.5rem;
}
.sidebar-button {
  border: 0;
  background: none;
  width: 100%;
  text-align: left;
  display: block;
}
.page-intro {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}
.eyebrow {
  color: var(--fg-primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}
.muted {
  color: var(--fg-muted);
}
.steps {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.step {
  border: 0;
  border-radius: 1.5rem;
  padding: 0.5rem 1rem;
  background: #ededee;
  color: var(--fg-muted);
}
.step.active {
  background: var(--fg-primary-soft);
  color: var(--fg-primary);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
.field {
  min-width: 0;
}
.field.full {
  grid-column: 1/-1;
}
.field label {
  display: block;
}
.setup-card {
  max-width: 68rem;
}
.article-context {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  background: white;
  border: 1px solid var(--fg-border);
  padding: 1rem 1.25rem;
  border-radius: 0.625rem;
  margin-bottom: 1.5rem;
}
.article-context strong {
  display: block;
  font-size: 0.8rem;
  color: var(--fg-muted);
  font-weight: 400;
}
.level-card {
  background: white;
  border: 1px solid #e4e5e6;
  border-radius: 0.75rem;
  margin-bottom: 1.5rem;
  overflow: hidden;
}
.level-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #ececed;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: #fcfcfc;
}
.level-title {
  font-size: 1.1rem;
  margin: 0;
}
.level-description {
  font-size: 0.8rem;
  color: var(--fg-muted);
  margin-top: 0.25rem;
}
.level-number {
  background: var(--fg-primary-soft);
  color: var(--fg-primary);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  font-weight: 700;
  flex-shrink: 0;
}
.component-row {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #ececed;
}
.component-row:last-child {
  border-bottom: 0;
}
.allocation {
  font-size: 0.85rem;
  background: #f4f5f5;
  border-radius: 0.375rem;
  padding: 0.65rem 1rem;
  min-width: 12rem;
}
.allocation strong {
  display: block;
  font-size: 1.1rem;
}
.empty-line {
  padding: 1.75rem;
  text-align: center;
  color: var(--fg-muted);
}
.action-bar {
  position: sticky;
  bottom: 0;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid #e1e1e3;
  border-radius: 0.625rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  z-index: 3;
  margin-top: 1.25rem;
}
.action-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  display: inline-block;
  border-radius: 50%;
  background: #999;
  margin-right: 0.5rem;
}
.status-approved {
  background: #237544;
}
.status-submitted {
  background: #d49a21;
}
.pill {
  font-size: 0.75rem;
  padding: 0.3rem 0.6rem;
  border-radius: 1rem;
  background: #f0f0f1;
  white-space: nowrap;
}
.pill.approved {
  background: #e5f3e8;
  color: #237544;
}
.pill.submitted {
  background: #fff2d1;
  color: #775600;
}
.table button.link {
  border: 0;
  background: none;
  color: var(--fg-primary);
  font-weight: 600;
  text-align: left;
}
.login {
  max-width: 27rem;
  margin: 8vh auto;
}
.admin-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.translation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
.config-item {
  padding: 1rem;
  border-bottom: 1px solid #eee;
}
.config-key {
  font-family: monospace;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}
.audit-item {
  border-left: 3px solid var(--fg-primary);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  background: white;
}
.audit-item pre {
  font-size: 0.75rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
#config-json.code-editor {
  width: 100%;
  height: 65vh;
  min-height: 24rem;
  resize: vertical;
  line-height: 1.5;
  tab-size: 2;
  font-family: monospace;
  font-size: 0.8rem;
}
.link-box {
  padding: 1rem;
  background: var(--fg-primary-soft);
  border-radius: 0.5rem;
  overflow-wrap: anywhere;
}
.notice-toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  max-width: min(90vw, 34rem);
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  background: #237544;
  color: white;
  z-index: 1000;
  box-shadow: 0 4px 24px #0002;
}
.notice-toast.error {
  background: #b42318;
}
.dirty-label {
  color: var(--fg-primary);
  font-size: 0.8rem;
}
.module-disabled {
  opacity: 0.5;
  cursor: default;
}
.hint-box {
  border-left: 3px solid #cfd0d2;
  padding: 0.75rem 1rem;
  background: white;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}
.pending-banner {
  padding: 1rem;
  background: #fff2d1;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}
.link-list {
  margin-top: 1rem;
}
.fg-main {
  padding-bottom: 3rem;
}
button:disabled {
  cursor: not-allowed;
}
.hide {
  display: none !important;
}
@media (max-width: 1000px) {
  .fg-sidebar {
    min-height: auto;
  }
  .fg-layout {
    display: block;
  }
  .fg-sidebar .nav {
    flex-direction: row !important;
    gap: 0.5rem;
  }
  .sidebar-eyebrow {
    display: none;
  }
  .sidebar-button {
    width: auto;
  }
  .fg-sidebar {
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #ddd;
  }
  .translation-grid {
    grid-template-columns: 1fr;
  }
  .header-tools .actor {
    display: none;
  }
}
@media (max-width: 600px) {
  .form-grid,
  .fg-header {
    padding: 1rem;
  }
  .brand-sub {
    display: none;
  }
  .level-header,
  .component-row {
    padding: 1rem;
  }
  .article-context {
    gap: 1rem;
  }
  .action-bar {
    position: static;
  }
  .header-tools {
    gap: 0.5rem;
  }
  .beta-badge {
    display: none;
  }
}

/* One component is one compact desktop row. Labels are shared by the block. */
.level-header {
  padding: 0.8rem 1rem;
}
.level-title {
  font-size: 1rem;
}
.component-table {
  width: 100%;
  overflow-x: auto;
}
.component-head,
.component-row {
  display: grid;
  grid-template-columns: var(--component-columns);
  gap: 10px;
  align-items: center;
  min-width: 900px;
  padding: 8px 12px;
}
.component-head {
  font-size: 0.66rem;
  line-height: 1.25;
  color: var(--fg-muted);
  background: #f7f7f8;
  border-bottom: 1px solid #e8e8e9;
  min-height: 42px;
}
.component-head > span {
  min-width: 0;
  overflow-wrap: break-word;
}
.component-row {
  min-height: 54px;
  background: var(--fg-surface);
  border-bottom: 1px solid #ececed;
}
.component-row:focus-within {
  background: #fffafa;
}
.component-row .field {
  min-width: 0;
  margin: 0;
}
.component-row .field.full {
  grid-column: auto;
}
.component-row .field > label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.component-row .form-control {
  font-size: 0.8rem;
  height: 34px;
  min-height: 34px;
  line-height: 1.35;
  padding: 0.4rem 0.5rem;
}
.component-row textarea.form-control {
  resize: none;
  overflow-y: auto;
}
.component-row .allocation {
  padding: 0;
  min-width: 0;
  border-radius: 0;
  background: none;
  text-align: right;
  line-height: 1.2;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.7rem;
}
.component-row .allocation strong {
  font-size: 0.85rem;
  white-space: nowrap;
}
.component-row .allocation small {
  font-size: 0.65rem;
  color: var(--fg-muted);
  white-space: nowrap;
}
.selected-icon {
  display: grid;
  place-items: center;
  color: var(--fg-muted);
  width: 36px;
  height: 36px;
}
.selected-icon .fg-packaging-icon {
  width: 34px;
  height: 34px;
}
.remove-component {
  border: 0;
  background: transparent;
  border-radius: 0.3rem;
  width: 30px;
  height: 32px;
  color: var(--fg-muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.remove-component:hover {
  color: var(--fg-primary);
  background: var(--fg-primary-soft);
}
.direct-mode {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  font-size: 0.65rem;
  color: var(--fg-muted);
  white-space: nowrap;
}
.component-combobox[aria-expanded="true"] {
  border-color: var(--fg-primary);
}
.component-combobox[aria-invalid="true"] {
  border-color: #b42318;
}
.component-suggestions {
  position: fixed;
  z-index: 2000;
  background: #fff;
  border: 1px solid var(--fg-border);
  border-radius: 0.5rem;
  box-shadow: 0 8px 28px #0002;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.component-suggestions[hidden] {
  display: none;
}
.component-option {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) max-content;
  gap: 10px;
  align-items: center;
  min-height: 46px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 0.8rem;
  border-bottom: 1px solid #f1f1f2;
}
.component-option:last-child {
  border-bottom: 0;
}
.component-option:hover,
.component-option[aria-selected="true"] {
  background: var(--fg-primary-soft);
  --fg-icon-stroke: var(--fg-primary);
  --fg-icon-fill: var(--fg-primary-soft);
  --fg-icon-light: var(--fg-surface);
}
.component-option code {
  font-size: 0.65rem;
  color: var(--fg-muted);
  max-width: 9rem;
  overflow-wrap: anywhere;
}
.suggestion-icon {
  display: grid;
  place-items: center;
}
.suggestion-icon .fg-packaging-icon {
  width: 30px;
  height: 30px;
}
.suggestion-label {
  min-width: 0;
  overflow-wrap: anywhere;
}
.component-no-results {
  padding: 1rem;
  font-size: 0.8rem;
  color: var(--fg-muted);
}
@media (max-width: 767px) {
  .component-table {
    overflow: visible;
  }
  .component-head {
    display: none;
  }
  .component-row {
    min-width: 0;
    grid-template-columns: 36px minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }
  .component-row .selected-icon {
    grid-column: 1;
    grid-row: 1;
    align-self: end;
  }
  .component-row > .field {
    grid-column: 2 / -1;
  }
  .component-row > .field:nth-of-type(2) {
    grid-column: 2 / -1;
  }
  .component-row > .field:nth-of-type(4) {
    grid-column: 2;
  }
  .component-row > .field:nth-of-type(5) {
    grid-column: 3;
  }
  .component-row .field > label {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0 0 0.3rem;
    overflow: visible;
    clip: auto;
    white-space: normal;
    font-size: 0.7rem;
  }
  .component-row .allocation {
    grid-column: 2;
    grid-row: auto;
    text-align: left;
    align-items: flex-start;
  }
  .component-row .remove-component {
    grid-column: 3;
    justify-self: end;
  }
  .component-row .form-control {
    height: 36px;
    min-height: 36px;
  }
  .component-row .field.full {
    grid-column: 2 / -1;
  }
  .component-option code {
    max-width: 7rem;
  }
}

.level-footer {
  padding: 0.75rem 1rem;
  border-top: 1px solid #ececed;
  background: #fcfcfc;
}
.line-actions {
  display: flex;
  gap: 2px;
  align-items: center;
}
.line-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 36px;
  padding: 4px;
  border: 1px solid transparent;
  border-radius: var(--fg-radius);
  background: transparent;
  color: var(--fg-muted);
}
.line-action:hover:not(:disabled) {
  background: #ececed;
  color: var(--fg-text);
}
.line-action:disabled {
  opacity: 0.35;
}
.line-action.confirmed {
  background: #eaf5ee;
  color: #237544;
  opacity: 1;
}
.line-action.delete:hover {
  color: #b42318;
  background: #faeae8;
}
.component-row.is-confirmed {
  background: #f5f6f6;
}
.component-row.is-confirmed .form-control:disabled {
  background: #eceeef;
  color: #656a6f;
  opacity: 1;
  cursor: default;
}
.article-gallery {
  background: white;
  border: 1px solid #ececed;
  border-radius: var(--fg-radius);
  padding: 1rem;
  margin: 1rem 0;
}
.gallery-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.gallery-heading h2 {
  font-size: 1rem;
  margin: 0;
}
.gallery-heading input[type="file"] {
  display: block;
  max-width: 230px;
  font-size: 0.75rem;
  margin-top: 0.4rem;
}
.gallery-layout {
  max-width: 550px;
  margin: 0.75rem auto 0;
}
.gallery-layout figure {
  margin: 0;
  text-align: center;
}
.gallery-main {
  width: 100%;
  height: 260px;
  object-fit: contain;
  background: #f9f9f9;
  border-radius: var(--fg-radius);
}
.gallery-thumbnails {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.5rem 2px;
}
.gallery-thumbnails > div {
  display: flex;
  align-items: center;
  flex-direction: column;
  flex-shrink: 0;
}
.gallery-thumbnail {
  padding: 3px;
  border: 2px solid #cfd0d2;
  border-radius: var(--fg-radius);
  background: white;
}
.gallery-thumbnail[aria-pressed="true"] {
  border-color: var(--fg-primary);
}
.gallery-thumbnail img {
  width: 66px;
  height: 58px;
  object-fit: contain;
}
@media (max-width: 767px) {
  .component-row .line-actions {
    grid-column: 2 / -1;
    justify-content: flex-end;
  }
}
@media (max-width: 600px) {
  .level-footer .btn {
    width: 100%;
  }
  .gallery-main {
    height: 220px;
  }
}

/* Optional component information stays outside the compact main row. */
.component-entry {
  border-bottom: 1px solid #ececed;
}
.component-entry:last-child {
  border-bottom: 0;
}
.details-toggle {
  border: 0;
  background: transparent;
  color: var(--fg-muted);
  padding: 6px 3px;
  font-size: 0.72rem;
  border-radius: var(--fg-radius);
}
.details-toggle:hover,
.details-toggle[aria-expanded="true"] {
  color: var(--fg-primary);
  background: var(--fg-primary-soft);
}
.details-toggle.has-missing {
  color: #b42318;
  font-weight: 700;
}
.line-details {
  background: #fafafa;
  border-top: 1px solid #ececed;
  padding: 1rem 1.25rem;
}
.line-details[hidden] {
  display: none;
}
.details-intro {
  display: flex;
  gap: 0.5rem 1.25rem;
  flex-wrap: wrap;
  align-items: baseline;
  margin-bottom: 0.85rem;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}
.line-details .form-label {
  display: block;
  margin-bottom: 0.3rem;
}
.line-details [aria-invalid="true"] {
  border-color: #b42318;
}
.detail-required-note {
  color: #b42318;
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
}
.constituent-block {
  border-top: 1px solid #ddd;
  margin-top: 1rem;
  padding-top: 1rem;
}
.constituent-block h3 {
  font-size: 0.95rem;
}
.constituent-row {
  display: grid;
  grid-template-columns: minmax(180px, 2fr) minmax(100px, 1fr) 32px;
  gap: 0.75rem;
  align-items: end;
  max-width: 650px;
  margin-bottom: 0.5rem;
}
.breakdown-summary {
  font-size: 0.85rem;
  margin: 0.75rem 0;
}
.material-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}
.material-admin-grid select[multiple] {
  min-height: 140px;
}
.material-group-heading {
  position: sticky;
  top: 0;
  padding: 0.45rem 0.75rem;
  background: #f3f3f3;
  color: var(--fg-text);
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 1;
}
.material-option {
  grid-template-columns: minmax(0, 1fr) auto;
}
.material-option code {
  max-width: 10rem;
}
@media (max-width: 767px) {
  .line-details {
    padding: 0.85rem;
  }
  .detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .constituent-row {
    grid-template-columns: minmax(0, 1fr) 88px 28px;
    gap: 0.4rem;
  }
  .line-actions {
    flex-wrap: wrap;
  }
  .component-row .allocation {
    grid-column: 2 / -1;
  }
}
select[data-allowed-constituents] {
  min-height: 190px;
}
@media (min-width: 768px) {
  .component-head:has(+ .component-entry .integration-field),
  .component-row:has(.integration-field) {
    min-width: 1024px;
  }
}
.brand-wordmark {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.fg-logo {
  width: 180px;
  height: 44px;
  object-fit: contain;
  display: block;
}
@media (max-width: 600px) {
  .fg-logo {
    width: 150px;
    height: auto;
  }
}

/* Administration: visible catalog navigation and compact translation cards. */
.admin-workspace {
  min-width: 0;
}
.admin-workspace .page-intro {
  margin-bottom: 1.2rem;
}
.admin-workspace .admin-tabs {
  padding-bottom: 0.25rem;
}
.admin-panel {
  min-width: 0;
}
.catalog-navigation {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.catalog-nav-card {
  border: 1px solid var(--fg-border);
  border-radius: 0.625rem;
  background: var(--fg-surface);
  color: var(--fg-text);
  text-align: left;
  padding: 1rem;
  min-width: 0;
}
.catalog-nav-card > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}
.catalog-nav-card small {
  display: block;
  color: var(--fg-muted);
  line-height: 1.35;
}
.catalog-nav-card:hover {
  border-color: var(--fg-primary);
}
.catalog-nav-card.active {
  background: var(--fg-primary-soft);
  border: 2px solid var(--fg-primary);
  padding: calc(1rem - 1px);
}
.catalog-nav-card.active strong {
  color: var(--fg-primary-hover);
}
.admin-count {
  display: inline-flex;
  padding: 0.15rem 0.45rem;
  border-radius: 1rem;
  background: #eee;
  color: var(--fg-muted);
  font-size: 0.75rem;
  font-weight: 600;
}
.catalog-nav-card.active .admin-count {
  background: var(--fg-primary);
  color: white;
}
.catalog-toolbar {
  display: flex;
  align-items: end;
  gap: 0.75rem;
  flex-wrap: wrap;
  background: white;
  padding: 1rem;
  border: 1px solid #ececed;
  border-radius: 0.625rem;
}
.catalog-toolbar label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0;
}
.catalog-toolbar label > span {
  display: block;
  margin-bottom: 0.3rem;
}
.catalog-search {
  flex: 1 1 240px;
}
.catalog-toolbar .btn {
  min-height: 44px;
}
.catalog-result-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 1rem 0 0.75rem;
}
.catalog-result-bar > span:last-child {
  margin-left: auto;
}
.catalog-result-bar [data-catalog-results] {
  color: var(--fg-muted);
  font-size: 0.8rem;
}
.catalog-grid,
.admin-field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  align-items: start;
}
.catalog-card,
.admin-field-card {
  background: white;
  border: 1px solid #dedfe1;
  border-radius: 0.625rem;
  padding: 1rem;
  min-width: 0;
}
.catalog-card[hidden] {
  display: none;
}
.catalog-card.is-inactive {
  background: #f3f3f3;
  border-style: dashed;
}
.catalog-card.is-modified,
.admin-field-card.is-modified {
  border-color: #c50637;
  box-shadow: inset 3px 0 var(--fg-primary);
}
.catalog-card-heading {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
}
.catalog-icon {
  display: flex;
  flex: 0 0 56px;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 64px;
  background: #f7f7f7;
  border-radius: 0.5rem;
}
.catalog-icon img {
  display: block;
  width: 56px;
  height: 56px;
}
.catalog-card-title {
  flex: 1;
  min-width: 0;
}
.catalog-card-title strong {
  display: block;
  font-size: 0.95rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.catalog-card-title code,
.admin-field-card header code {
  display: block;
  font-size: 0.7rem;
  color: var(--fg-muted);
  overflow-wrap: anywhere;
  margin-top: 0.25rem;
}
.catalog-active {
  font-size: 0.75rem;
  white-space: nowrap;
  align-self: start;
}
.catalog-active input {
  accent-color: var(--fg-primary);
}
.admin-translation-stack > .translation-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.admin-translation-stack > .translation-grid > div {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 0.4rem;
  align-items: center;
}
.admin-translation-stack > .translation-grid .form-label {
  margin: 0;
  font-size: 0.7rem;
  color: var(--fg-muted);
  font-weight: 600;
}
.catalog-card-footer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  margin-top: 1rem;
  border-top: 1px solid #ececed;
  padding-top: 0.75rem;
}
.catalog-card-footer > span {
  font-family: monospace;
  font-size: 0.68rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.catalog-card-footer .btn {
  width: 100%;
}
.catalog-settings {
  margin-top: 1rem;
  border-top: 1px solid #ececed;
  padding-top: 0.75rem;
}
.catalog-settings summary {
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fg-text);
}
.catalog-settings .material-admin-grid {
  grid-template-columns: minmax(0, 1fr);
}
.catalog-empty {
  background: white;
  border: 1px dashed var(--fg-border);
  padding: 2rem;
  text-align: center;
  border-radius: 0.625rem;
  color: var(--fg-muted);
}
.admin-save-bar {
  position: sticky;
  bottom: 0.75rem;
  z-index: 30;
  box-shadow: 0 3px 16px #0001;
  gap: 1rem;
}
.admin-save-bar.has-changes {
  border-color: var(--fg-primary);
}
.admin-save-bar.has-changes [data-config-dirty] {
  color: var(--fg-primary);
}
.admin-save-bar [data-config-dirty] {
  font-size: 0.9rem;
}
.admin-save-bar > div:first-child {
  max-width: 50rem;
}
.admin-section-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.admin-field-group {
  border: 1px solid #ececed;
  border-radius: 0.625rem;
  margin-bottom: 1rem;
  background: #fafafa;
}
.admin-field-group > summary {
  padding: 1rem;
  font-weight: 700;
  cursor: pointer;
}
.admin-field-group > summary .admin-count {
  margin-left: 0.75rem;
}
.admin-field-grid {
  padding: 0 1rem 1rem;
}
.admin-field-card header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 0.5rem;
}
.admin-field-card header strong {
  font-size: 0.9rem;
}
.admin-field-flags {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  margin: 0.75rem 0;
  font-size: 0.75rem;
}
.admin-badge {
  display: inline-block;
  font-size: 0.66rem;
  padding: 0.2rem 0.4rem;
  background: #f0f1f2;
  color: var(--fg-muted);
  border-radius: 0.25rem;
}
.admin-badge.required {
  color: var(--fg-primary-hover);
  background: var(--fg-primary-soft);
}
.svg-picker-dialog {
  width: min(940px, calc(100vw - 2rem));
  max-height: 85vh;
  border: 1px solid var(--fg-border);
  border-radius: 0.75rem;
  padding: 0;
  color: var(--fg-text);
}
.svg-picker-dialog::backdrop {
  background: #20262b99;
}
.svg-picker-header {
  display: flex;
  gap: 1rem;
  align-items: start;
  justify-content: space-between;
  padding: 1.25rem 1.25rem 0.5rem;
}
.svg-picker-header h2 {
  font-size: 1.15rem;
  margin: 0 0 0.35rem;
}
.svg-picker-search {
  display: block;
  padding: 0 1.25rem 1rem;
}
.svg-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: 0.65rem;
  padding: 0 1.25rem 1.25rem;
  overflow: auto;
  max-height: 56vh;
}
.svg-picker-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  gap: 0.4rem;
  padding: 0.75rem 0.5rem;
  background: white;
  border: 1px solid var(--fg-border);
  border-radius: 0.5rem;
  color: var(--fg-text);
  min-width: 0;
}
.svg-picker-choice img {
  width: 64px;
  height: 64px;
}
.svg-picker-choice strong {
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}
.svg-picker-choice small {
  font-size: 0.62rem;
  overflow-wrap: anywhere;
}
.svg-picker-choice span {
  font-size: 0.65rem;
  color: var(--fg-muted);
}
.svg-picker-choice:hover:not(:disabled),
.svg-picker-choice.selected {
  border-color: var(--fg-primary);
  background: var(--fg-primary-soft);
}
.svg-picker-choice:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
@media (max-width: 1100px) {
  .catalog-navigation {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .catalog-grid,
  .admin-field-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .catalog-navigation {
    gap: 0.5rem;
  }
  .catalog-nav-card {
    padding: 0.75rem;
  }
  .catalog-nav-card.active {
    padding: calc(0.75rem - 1px);
  }
  .catalog-nav-card > span {
    flex-wrap: wrap;
  }
  .catalog-nav-card small {
    font-size: 0.7rem;
  }
  .catalog-toolbar label {
    flex: 1 1 100%;
  }
  .catalog-result-bar > span:last-child {
    margin-left: 0;
  }
  .admin-save-bar {
    bottom: 0;
    padding: 0.75rem;
    flex-direction: column;
    align-items: stretch;
  }
  .admin-save-bar .action-group {
    flex-wrap: wrap;
  }
  .admin-save-bar .action-group > button {
    flex: 1;
  }
  .admin-section-heading {
    flex-wrap: wrap;
  }
  .svg-picker-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 0.75rem 0.75rem;
  }
  .svg-picker-dialog {
    width: calc(100vw - 1rem);
  }
  .svg-picker-header {
    padding: 0.75rem;
  }
  .svg-picker-search {
    padding: 0 0.75rem 0.75rem;
  }
}
.admin-detail-item {
  border: 1px solid #ececed;
  border-radius: 0.5rem;
  margin-top: 0.65rem;
}
.admin-detail-item > summary {
  cursor: pointer;
}
.admin-detail-item > summary .admin-badge {
  margin-left: 0.65rem;
}
.admin-detail-item > summary small {
  display: block;
  color: var(--fg-muted);
  margin: 0.3rem 0 0 1rem;
  font-size: 0.75rem;
}
.admin-detail-item > .translation-grid {
  max-width: 36rem;
}
.admin-workspace .page-intro > div {
  flex: 1;
  min-width: 0;
}
.admin-workspace .page-intro > .pill {
  align-self: start;
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .catalog-nav-card small {
    display: none;
  }
  .catalog-nav-card > span {
    margin-bottom: 0;
  }
  .admin-save-bar > div:first-child > .small {
    display: none;
  }
}
.language-switch {
  position: relative;
  width: 154px;
  flex-shrink: 0;
}
.language-switch #language {
  padding-left: 2.5rem;
  width: 100%;
  cursor: text;
}
.language-current-flag {
  position: absolute;
  left: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  pointer-events: none;
}
.language-flag {
  display: block;
  flex-shrink: 0;
  border-radius: 2px;
  box-shadow: 0 0 0 1px #0002;
  overflow: hidden;
}
.language-options {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  min-width: 190px;
  padding: 0.3rem;
  border: 1px solid var(--fg-border);
  border-radius: 0.5rem;
  background: white;
  box-shadow: 0 8px 24px #0002;
  z-index: 1200;
}
.language-options[hidden] {
  display: none;
}
.language-options button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.65rem;
  border: 0;
  border-radius: 0.3rem;
  padding: 0.65rem;
  background: white;
  color: var(--fg-text);
  text-align: left;
  font-size: 0.9rem;
}
.language-options button:hover,
.language-options button[aria-selected="true"] {
  background: var(--fg-primary-soft);
  color: var(--fg-primary-hover);
}
.language-check {
  margin-left: auto;
}
@media (max-width: 600px) {
  .language-options {
    left: 0;
    right: auto;
  }
}

/* A single GS1 action, with an independent accessible result next to each GTIN. */
.gs1-panel { border:1px solid var(--fg-border); border-left:4px solid var(--fg-primary); border-radius:var(--fg-radius); background:var(--fg-surface); padding:1rem 1.25rem; margin-bottom:1.25rem; }
.gs1-panel-heading { display:flex; align-items:center; justify-content:space-between; gap:1rem; }
.gs1-panel-heading p { margin:.25rem 0 0; color:var(--fg-muted); font-size:.875rem; max-width:52rem; }
.gs1-panel-heading button { flex-shrink:0; }
.gs1-field-status { font-size:.8rem; margin-top:.375rem; line-height:1.4; }
.is-valid + .gs1-field-status { color:#237544; }
.is-invalid + .gs1-field-status { color:#b42318; }
.gs1-unavailable { border-color:#a16b00; }
.gs1-records { margin-top:.75rem; font-size:.875rem; }
.gs1-records summary { cursor:pointer; font-weight:600; }
.gs1-records ul { margin:.5rem 0; }
.gs1-manual-note { margin-top:1rem; padding:1rem; background:#fff8e5; border-radius:var(--fg-radius); font-size:.875rem; }
@media(max-width: 767px) { .gs1-panel-heading { align-items:stretch; flex-direction:column; } .gs1-panel-heading button { width:100%; white-space:normal; } }

@media(max-width: 600px) { .form-grid .gs1-field { grid-column:1/-1; } }
@media(max-width: 600px) { .gallery-heading { flex-wrap:wrap; } .gallery-heading > label { max-width:100%; } .gallery-heading input[type="file"] { max-width:100%; } }

.gs1-gtin-control {display:flex;align-items:center;gap:.4rem;}
.gs1-gtin-control input {min-width:0;flex:1;}
.gs1-gtin-control input[readonly].is-valid {background-color:#f1f7f3;}
.gs1-field-actions {display:flex;gap:.15rem;flex-shrink:0;}
.gs1-field-actions .confirmed {color:#237544;opacity:1;background:#eef6f0;}
.gs1-gtin-control + .gs1-field-status {font-size:.875rem;}
.gs1-gtin-control:has(.is-valid) + .gs1-field-status {color:#237544;}
.gs1-gtin-control:has(.is-invalid) + .gs1-field-status {color:#b42318;}
.gs1-explorer-layout {display:grid;grid-template-columns:minmax(0,1fr) minmax(22rem,1fr);gap:1.25rem;align-items:start;}
.gs1-tree,.gs1-preview-panel {background:var(--fg-surface);border:1px solid var(--fg-border);border-radius:var(--fg-radius);padding:1rem;min-width:0;}
.gs1-preview-panel h2 {font-size:1.15rem;margin-bottom:1rem;}
.gs1-provider>summary {font-size:1rem;font-weight:700;}
.gs1-payload,.gs1-system,.gs1-unit {margin-top:.75rem;}
.gs1-payload>summary,.gs1-system>summary,.gs1-unit>summary {cursor:pointer;padding:.5rem;border-radius:.25rem;background:#f6f6f6;font-weight:600;overflow-wrap:anywhere;}
.gs1-system>summary small {display:block;color:var(--fg-muted);font-weight:400;margin-top:.25rem;}
.gs1-system,.gs1-unit {padding-left:.75rem;border-left:2px solid #ececed;}
.gs1-tree-component {border-top:1px solid #ececed;padding:.8rem .25rem;}
.gs1-tree-component-heading {display:flex;gap:.65rem;align-items:center;overflow-wrap:anywhere;}
.gs1-small-icon {display:inline-flex;flex-shrink:0;width:2rem;height:2rem;}
.gs1-small-icon svg {width:100%;height:100%;}
.gs1-level-choice {display:flex;flex-wrap:wrap;gap:.4rem 1rem;margin:.65rem 0 .4rem;border:0;padding:0;font-size:.875rem;}
.gs1-level-choice label {display:flex;gap:.3rem;align-items:center;cursor:pointer;}
.gs1-preview-row {border-bottom:1px solid #ececed;padding:0 0 1rem;margin:0 0 1rem;}
.gs1-preview-row header {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.5rem;margin-bottom:.75rem;}
.gs1-preview-fields {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem;}
.gs1-preview-fields label span {display:block;font-size:.875rem;margin-bottom:.25rem;}
.gs1-preview-row summary {cursor:pointer;font-size:.875rem;}
.gs1-preview-row code {overflow-wrap:anywhere;}
.gs1-import-actions {display:flex;justify-content:space-between;gap:1rem;position:sticky;bottom:0;z-index:8;margin-top:1rem;padding:1rem;background:var(--fg-surface);border:1px solid var(--fg-border);border-radius:var(--fg-radius);}
@media(max-width:1100px){.gs1-explorer-layout{grid-template-columns:1fr;}}
@media(max-width:600px){.gs1-preview-fields{grid-template-columns:1fr;}.gs1-import-actions{flex-direction:column;}.gs1-gtin-control{flex-wrap:wrap;}.gs1-gtin-control input{flex-basis:100%;}.gs1-field-actions{margin-left:auto;}}

.gs1-preview-fields .invalid-feedback {font-size:.875rem;color:#b42318;}
.gs1-preview-fields .invalid-feedback[hidden] {display:none !important;}
.gs1-preview-fields .invalid-feedback:not([hidden]) {display:block;}

.gs1-mapping-add {display:grid;grid-template-columns:1fr 1fr 2fr auto;gap:.75rem;align-items:end;margin:1rem 0 1.5rem;}
.gs1-unmapped {display:flex;gap:1rem;justify-content:space-between;padding:.75rem 0;border-bottom:1px solid var(--fg-border);overflow-wrap:anywhere;}
@media(max-width:900px){.gs1-mapping-add{grid-template-columns:1fr 1fr;}}
@media(max-width:600px){.gs1-mapping-add{grid-template-columns:1fr;}.gs1-unmapped{flex-direction:column;}}

/* A shared compact product pass: data and images belong to the same card. */
.product-pass.setup-card { max-width: none; }
.product-pass { margin-bottom: 1.25rem; }
.product-pass-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
.product-pass-data, .product-pass .article-gallery { min-width: 0; }
.product-pass .form-grid { gap: 1rem; }
.product-pass .article-gallery { border: 0; border-radius: 0; padding: 1rem 0 0; margin: 0; border-top: 1px solid var(--fg-border); }
.product-pass .gallery-heading { flex-wrap: wrap; gap: .5rem; }
.product-pass .gallery-heading > label { max-width: 100%; }
.product-pass .gallery-heading input[type="file"] { max-width: 100%; }
.product-pass .gallery-layout { max-width: 100%; margin-top: .75rem; }
.product-pass .gallery-main { height: 230px; }
.product-pass .gallery-thumbnail img { width: 48px; height: 44px; }
.product-pass .article-gallery > p { margin: .75rem 0 0; }
.product-pass .article-context { border: 0; border-radius: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; }
.product-pass .article-context > div { min-width: 0; overflow-wrap: anywhere; }
.product-pass-compact .gallery-main { height: 155px; }
@media (min-width: 1100px) {
  .product-pass-layout { grid-template-columns: minmax(0, 1fr) minmax(250px, 30%); align-items: start; }
  .product-pass .article-gallery { padding: 0 0 0 1.25rem; border-top: 0; border-left: 1px solid var(--fg-border); }
}
@media (max-width: 600px) {
  .product-pass .gallery-main { height: 190px; }
  .product-pass .article-context { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
}


/* Compact F&O-style grid, with column menus and one workflow status per row. */
.fo-grid .card-body { padding:.65rem; }
.fo-command-bar { display:flex; gap:.4rem; align-items:center; flex-wrap:wrap; padding:.25rem 0 .6rem; border-bottom:1px solid var(--fg-border); }
.fo-command-bar .btn { padding:.25rem .5rem; font-size:.8rem; }
.fo-search { width:210px; max-width:100%; }
.fo-view { margin-left:auto; max-width:200px; }
.fo-grid-summary { display:flex; flex-wrap:wrap; justify-content:space-between; gap:.5rem; align-items:center; padding:.25rem 0; font-size:.8rem; }
.fo-grid-summary .btn { padding:.15rem .4rem; font-size:.8rem; }
.article-table-pagination { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:.5rem; padding-top:.5rem; font-size:.8rem; }
.article-table-pagination select { border:1px solid var(--fg-border); border-radius:2px; padding:.15rem; }
.fo-grid-scroll { max-height:65vh; min-height:120px; border:1px solid #dedee0; }
.article-overview-table { min-width:1050px; width:100%; font-size:.8rem; margin:0; table-layout:auto; }
.fo-grid .article-overview-table td,.fo-grid .article-overview-table th { padding:.25rem .5rem; height:34px; white-space:nowrap; vertical-align:middle; border-bottom:1px solid #ededee; }
.fo-grid thead th { position:sticky; top:0; z-index:1; background:#edebea; font-size:.75rem; font-weight:500; }
.fo-grid .fo-name { max-width:260px; overflow:hidden; text-overflow:ellipsis; }
.fo-grid .link { padding:0; font-weight:500; }
.table-sort { display:flex; justify-content:space-between; align-items:center; gap:.5rem; width:100%; border:0; padding:0; background:none; color:inherit; font:inherit; text-align:left; }
.table-sort.has-filter { color:#1264a3; font-weight:600; }
.fo-grid tbody tr:hover { background:#f3f6fa; }
.fo-grid tbody tr.is-selected { background:#dbe6fa; box-shadow:inset 3px 0 #2867bc; }
.article-row-actions { display:flex; gap:.25rem; }
.fo-row-action { display:inline-flex; align-items:center; justify-content:center; width:25px; height:25px; border:0; border-radius:2px; background:none; color:var(--fg-text); }
.fo-row-action:hover { background:#e3e6ea; }.fo-row-action:disabled { opacity:.3; }
.dt-gs1 { font-size:.75rem; }.dt-gs1-present { color:#237544; }.dt-gs1-error { color:#b42318; }.dt-gs1-unknown,.dt-gs1-pending { color:var(--fg-muted); }
.fo-export-hint { font-size:.75rem; margin:.5rem 0 0; }
.table-column-menu { position:fixed; width:284px; max-width:calc(100vw - 16px); z-index:2500; padding:.3rem 0; background:#fff; border:1px solid #ddd; border-radius:2px; box-shadow:0 3px 10px #0003; font-size:.8rem; }
.fo-menu-sort { display:block; width:100%; text-align:left; border:0; padding:.5rem 1rem; background:none; color:var(--fg-text); }
.fo-menu-sort:hover { background:#f0f3f8; }
.table-column-menu form { display:grid; gap:.65rem; border-top:1px solid #ddd; padding:.7rem 1rem; }
.table-column-menu label { display:grid; gap:.5rem; }
@media(max-width:600px) { .fo-view { margin-left:0; } .fo-grid-scroll { max-height:65vh; } .fo-search { width:100%; } }

.gs1-sector-statuses { display:flex; flex-wrap:wrap; gap:.25rem .75rem; margin-top:.35rem; font-size:.75rem; }
.gs1-sector { white-space:normal; }.gs1-sector strong { font-weight:600; }

.gs1-sector-statuses { display:inline-flex; flex-wrap:wrap; align-items:baseline; gap:.2rem .4rem; margin-top:0; }
.gs1-quantity-hint { margin-top:.35rem; font-size:.75rem; }

.gs1-sector.dt-gs1-absent,.gs1-sector.dt-gs1-not_found,.gs1-sector.dt-gs1-none { color:var(--fg-muted); }
.supplier-link-form,.article-import-form { display:flex; align-items:flex-end; flex-wrap:wrap; gap:1rem; }
.supplier-link-form label:first-child,.article-import-form label:first-child { flex:1 1 280px; }
.supplier-link-form label:nth-child(2) { width:160px; }
.supplier-share { margin-top:1.25rem; border-top:1px solid var(--fg-border); padding-top:1rem; }
.import-summary { display:flex; gap:1rem; flex-wrap:wrap; align-items:center; margin:1rem 0; }
.import-summary button { margin-left:auto; }
.import-preview-table { min-width:1100px; font-size:.8rem; }
.import-preview-table td { white-space:nowrap; }.import-preview-table td:last-child { white-space:normal; min-width:190px; }
.supplier-overview-table { min-width:760px; }
.article-import-warning { color:#895700; font-size:1rem; cursor:help; margin-left:.3rem; }
.gs1-explorer-layout { grid-template-columns:minmax(0,1.5fr) minmax(20rem,1fr); }
.gs1-source-table { border:1px solid var(--fg-border); border-radius:var(--fg-radius); background:white; margin-bottom:.8rem; overflow:hidden; }
.gs1-source-table>header { padding:.6rem .75rem; background:#f3f3f3; }
.gs1-source-table table { margin:0; font-size:.8rem; min-width:760px; }
.gs1-source-table th,.gs1-source-table td { padding:.5rem; vertical-align:middle; }
.gs1-source-table td:first-child { min-width:160px; }
.gs1-source-table .gs1-small-icon { display:inline-flex; vertical-align:middle; margin-right:.4rem; }
.gs1-source-table .gs1-level-choice { display:grid; grid-template-columns:repeat(4,minmax(70px,1fr)); gap:.2rem; margin:0; min-width:320px; }
.gs1-source-table .gs1-level-choice label { position:relative; padding:.4rem; border:1px solid var(--fg-border); border-radius:.25rem; justify-content:center; font-size:.7rem; text-align:center; }
.gs1-source-table .gs1-level-choice label:has(input:checked) { border-color:var(--fg-primary); background:var(--fg-primary-soft); color:var(--fg-primary); }
.gs1-source-table .gs1-level-choice label:has(input:focus-visible) { outline:2px solid var(--fg-primary); outline-offset:2px; }
.gs1-source-table .gs1-level-choice label:has(input:disabled) { opacity:.5; }
.gs1-source-table .gs1-level-choice input { position:absolute; inset:0; opacity:0; width:100%; height:100%; margin:0; cursor:pointer; scroll-margin-block:8rem; }
.gs1-product-pass { margin-bottom:.8rem; }
.gs1-product-pass>.card-body { display:grid; grid-template-columns:minmax(0,1fr) 140px; gap:.75rem; padding:.75rem; }
.gs1-product-pass .gallery-main { height:100px; max-width:140px; }
.gs1-product-pass .gallery-heading h2 { font-size:.8rem; }
.gs1-product-pass .gallery-heading button { display:none; }
.gs1-product-pass .gallery-thumbnail { width:30px; height:30px; }
.gs1-product-pass .gallery-thumbnails { gap:.2rem; }
@media(max-width:1100px){.gs1-explorer-layout{grid-template-columns:1fr;}}
.article-gs1-progress { padding:.75rem; margin:.5rem 0; border:1px solid var(--fg-border); border-radius:var(--fg-radius); }
.article-gs1-progress progress { height:.5rem; accent-color:var(--fg-success,#237544); }
.article-gs1-results { max-height:16rem; overflow:auto; padding-left:1.25rem; margin:.5rem 0 0; font-size:.8rem; }
@media(max-width:600px) { .supplier-link-form>*,.article-import-form>* { width:100%; } .import-summary button { width:100%; } }

.gs1-explorer-layout>*,.gs1-source-table,.gs1-product-pass,.gs1-product-pass .card-body>* { min-width:0; max-width:100%; }
.gs1-source-table .table-responsive { max-width:100%; overflow-x:auto; }
@media(max-width:600px){.gs1-product-pass>.card-body{grid-template-columns:minmax(0,1fr) 90px;}.gs1-product-pass .gallery-main{max-width:90px;height:80px;}.gs1-product-pass .article-context{flex-wrap:wrap;}.gs1-product-pass .article-context>div{min-width:0;overflow-wrap:anywhere;}}

.gs1-tree,.gs1-preview-panel { overflow:hidden; overflow-wrap:anywhere; }
.gs1-product-pass .article-gallery { padding:.3rem; margin:0; }
@media(max-width:1100px){.gs1-explorer-layout{grid-template-columns:minmax(0,1fr);}}

.gs1-source-table .gs1-level-choice { position:relative; }
.gs1-source-table .gs1-level-choice legend { top:0; left:0; }

/* Shared GS1 consumer product passport in import and packaging views. */
.passport-heading {display:flex;align-items:center;flex-wrap:wrap;gap:.5rem 1rem;margin-bottom:1rem;}
.passport-heading h2 {font-size:1.15rem;margin:0;}
.passport-provider {margin-left:auto;font-size:.8rem;max-width:100%;}
.passport-card {container-type:inline-size;}
.passport-columns {display:grid;grid-template-columns:minmax(230px,280px) minmax(280px,1.3fr) minmax(180px,.9fr) minmax(220px,1fr);gap:1rem;align-items:start;}
.passport-card .article-gallery {padding:0;border:0;margin:0;}
.passport-card .gallery-main {height:270px;width:100%;object-fit:contain;}
.passport-card .gallery-thumbnails {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.4rem;max-height:190px;overflow:auto;}
.passport-card .gallery-thumbnails > div {min-width:0;}
.passport-card .gallery-thumbnail {width:100%;aspect-ratio:1;}
.passport-card .gallery-thumbnail img {width:100%;height:100%;max-height:85px;object-fit:contain;}
.passport-card .gallery-heading h2 {font-size:.85rem;}
.passport-card .gallery-heading .btn {font-size:.75rem;}
.passport-facts {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.9rem 1rem;margin:0;}
.passport-facts > div {min-width:0;overflow-wrap:anywhere;}
.passport-facts dt {font-size:.9rem;font-weight:700;color:inherit;margin-bottom:.4rem;}
.passport-facts dd {font-size:.875rem;margin:0;white-space:pre-line;}
.passport-food, .passport-nutrition-panel {min-width:0;border-left:1px solid var(--fg-border);padding-left:1rem;font-size:.8rem;overflow-wrap:anywhere;}
.passport-food h3, .passport-nutrition-panel h3 {font-size:.9rem;font-weight:700;margin:0 0 .4rem;}
.passport-food h3:not(:first-child) {margin-top:1rem;}
.passport-ingredients {white-space:pre-line;}
.passport-allergens {margin:.25rem 0 .75rem;}
.passport-allergens li {margin:.1rem 0;}
.passport-nutrition {font-size:.8rem;width:100%;}
.passport-nutrition th {font-weight:500;}
.passport-nutrition td {text-align:right;}
.passport-image-trigger {display:block;width:100%;padding:0;border:0;background:transparent;cursor:zoom-in;}
.passport-image-hover {display:none;position:fixed;z-index:1060;top:29vh;left:30vw;width:40vw;height:42vh;pointer-events:none;padding:1rem;background:white;border:1px solid var(--fg-border);border-radius:.5rem;box-shadow:0 12px 55px #0004;}
.passport-image-hover img {width:100%;height:100%;object-fit:contain;}
@media(hover:hover) and (pointer:fine){.passport-image-trigger:hover .passport-image-hover{display:block;}}
.passport-image-dialog {width:min(1000px,94vw);max-height:94vh;border:1px solid var(--fg-border);border-radius:.5rem;padding:1rem;}
.passport-image-dialog::backdrop {background:#0008;}
.passport-image-dialog > button {display:block;margin-left:auto;}
.passport-image-dialog > img {display:block;width:100%;height:75vh;object-fit:contain;}
@container(max-width:1250px){
 .passport-columns{grid-template-columns:minmax(230px,280px) minmax(0,1fr);}
 .passport-food,.passport-nutrition-panel{grid-column:auto;border-left:0;padding-left:0;border-top:1px solid var(--fg-border);padding-top:1rem;}
}
@container(max-width:700px){
 .passport-columns{grid-template-columns:repeat(2,minmax(0,1fr));}
 .passport-card .article-gallery{grid-column:1/-1;width:min(100%,320px);justify-self:center;}
 .passport-facts{grid-column:1/-1;}
 .passport-heading{align-items:flex-start;}
 .passport-provider{margin-left:0;width:100%;}
}
@container(max-width:480px){
 .passport-columns{grid-template-columns:minmax(0,1fr);}
 .passport-food,.passport-nutrition-panel{grid-column:1/-1;}
 .passport-facts{gap:.75rem;}
}
