.production-gallery-page,
.production-gallery-admin,
.production-gallery-modal {
  color: var(--oa-text, #f4f4f5);
  font-family: inherit;
}

.production-gallery-page {
  width: min(1380px, 100%);
  margin-inline: auto;
  padding: 34px 38px 48px;
}

.production-gallery-page button,
.production-gallery-admin button,
.production-gallery-modal button {
  font: inherit;
  cursor: pointer;
}

.production-gallery-page button:disabled,
.production-gallery-admin button:disabled,
.production-gallery-modal button:disabled {
  opacity: .55;
  cursor: default;
}

.production-gallery-heading,
.production-gallery-admin-heading,
.production-gallery-history > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.production-gallery-heading {
  margin-bottom: 28px;
}

.production-gallery-eyebrow {
  color: var(--oa-subtle, #a8aaa1);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .16em;
  margin: 0 0 10px;
}

.production-gallery-heading h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -.04em;
}

.production-gallery-heading > div > p:last-child,
.production-gallery-history > header p,
.production-gallery-admin-heading p {
  margin: 10px 0 0;
  color: var(--oa-muted, #b8bab1);
  font-size: 12px;
  line-height: 1.8;
}

.gallery-primary,
.gallery-secondary,
.gallery-upload,
.gallery-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 13px;
  border: 1px solid var(--oa-border-strong, #555);
  border-radius: 8px;
  text-decoration: none;
  font-size: 11px;
  line-height: 1.5;
  font-weight: 500;
}

html[data-theme] .gallery-primary {
  background: var(--brand-primary, #c5ed3a) !important;
  border-color: var(--brand-primary, #c5ed3a) !important;
  color: #fff !important;
}

html[data-theme] .gallery-primary:hover:not(:disabled) {
  background: var(--brand-primary-hover, #b1d928) !important;
  border-color: var(--brand-primary-hover, #b1d928) !important;
}

.gallery-secondary,
.gallery-upload {
  background: var(--oa-panel, #151515);
  color: var(--oa-text, #f4f4f5);
}

.gallery-secondary:hover:not(:disabled),
.gallery-upload:hover:not(:disabled) {
  background: var(--oa-hover, #242424);
}

.production-gallery-page :is(button, a):focus-visible,
.production-gallery-admin :is(button, a):focus-visible,
.production-gallery-modal :is(button, input, textarea, select):focus-visible {
  outline: 2px solid var(--oa-accent-2, #d3f65c);
  outline-offset: 3px;
}

.production-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.production-gallery-card,
.production-gallery-history-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--oa-border, #303030);
  border-radius: 12px;
  background: var(--oa-panel, #151515);
}

.production-gallery-player {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #090909;
}

.production-gallery-player video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.production-gallery-card-body {
  padding: 17px;
}

.production-gallery-card-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.production-gallery-card h2 {
  min-width: 0;
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.gallery-favorite {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 32px;
  margin-top: -3px;
  padding: 4px 0 4px 4px;
  border: 0;
  background: transparent;
  color: var(--oa-muted, #b8bab1);
  font-size: 10px !important;
  white-space: nowrap;
}

.gallery-favorite:hover,
.gallery-favorite.is-favorited {
  color: var(--oa-accent, #e1f59a);
}

.gallery-favorite.is-favorited svg {
  fill: color-mix(in srgb, var(--oa-accent, #e1f59a) 18%, transparent);
}

.production-gallery-description {
  min-height: 36px;
  margin: 11px 0 0;
  color: var(--oa-muted, #b8bab1);
  font-size: 11px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.gallery-start {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 19px;
}

.production-gallery-error {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 20px;
  padding: 11px 13px;
  border: 1px solid #b2626255;
  border-radius: 8px;
  background: #b262620c;
  color: var(--oa-text, #f4f4f5);
  font-size: 12px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.production-gallery-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 230px;
  padding: 30px 20px;
  border: 1px dashed var(--oa-border, #303030);
  border-radius: 12px;
  color: var(--oa-muted, #b8bab1);
  font-size: 12px;
  text-align: center;
}

.production-gallery-empty svg {
  color: var(--oa-accent, #e1f59a);
}

.production-gallery-empty b {
  color: var(--oa-text, #f4f4f5);
  font-size: 14px;
  font-weight: 500;
}

.production-gallery-empty p {
  margin: 0;
  max-width: 380px;
  line-height: 1.8;
}

.production-gallery-history {
  margin-top: 45px;
  padding-top: 30px;
  border-top: 1px solid var(--oa-border, #303030);
}

.production-gallery-history > header {
  margin-bottom: 23px;
}

.production-gallery-history h2,
.production-gallery-admin-heading h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

.production-gallery-history-count {
  color: var(--oa-muted, #b8bab1);
  font-size: 11px;
  white-space: nowrap;
}

.production-gallery-history-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.production-gallery-history-card > video {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  background: #090909;
}

.production-gallery-history-info {
  padding: 17px;
}

.production-gallery-history-info h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.production-gallery-history-meta {
  margin: 10px 0 0;
  color: var(--oa-muted, #b8bab1);
  font-size: 10px;
  line-height: 1.9;
}

.production-gallery-history-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 17px;
}

.gallery-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 3px 7px;
  border: 1px solid color-mix(in srgb, var(--oa-accent, #e1f59a) 35%, transparent);
  border-radius: 5px;
  background: color-mix(in srgb, var(--oa-accent, #e1f59a) 8%, transparent);
  color: var(--oa-accent, #e1f59a);
  font-size: 9px;
  line-height: 1.6;
  white-space: nowrap;
}

html[data-theme] a.gallery-download {
  min-height: 32px;
  padding: 6px 10px;
  border-color: var(--oa-border, #303030);
  color: var(--oa-text, #f4f4f5);
}

.gallery-download:hover {
  background: var(--oa-hover, #242424);
}

.gallery-history-empty {
  min-height: 170px;
}

.production-gallery-history-pagination {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

.production-gallery-history-pagination > button {
  min-width: 140px;
}

.gallery-history-error {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
}

.production-gallery-admin {
  margin-top: 30px;
  padding: 22px;
  border: 1px solid var(--oa-border, #303030);
  border-radius: 12px;
  background: var(--oa-panel, #151515);
}

.production-gallery-admin-heading {
  margin-bottom: 23px;
}

.production-gallery-admin-list {
  border-top: 1px solid var(--oa-border, #303030);
}

.production-gallery-admin-list > article {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-block: 16px;
  border-bottom: 1px solid var(--oa-border, #303030);
}

.production-gallery-admin-list > article:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.gallery-admin-thumb {
  display: grid;
  flex: none;
  place-items: center;
  width: 100px;
  height: 62px;
  overflow: hidden;
  border: 1px solid var(--oa-border, #303030);
  border-radius: 6px;
  background: var(--oa-panel-2, #1b1b1b);
  color: var(--oa-accent, #e1f59a);
}

.gallery-admin-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-admin-card-info {
  flex: 1;
  min-width: 0;
}

.gallery-admin-card-info b {
  font-size: 13px;
  overflow-wrap: anywhere;
}

.gallery-admin-card-info > p {
  margin: 6px 0 9px;
  color: var(--oa-muted, #b8bab1);
  font-size: 10px;
}

.gallery-admin-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  color: var(--oa-muted, #b8bab1);
}

.production-gallery-backdrop {
  position: fixed;
  z-index: 22000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background: #0009;
  backdrop-filter: blur(8px);
}

.production-gallery-modal {
  display: flex;
  flex-direction: column;
  width: min(720px, 100%);
  max-height: calc(100dvh - 44px);
  overflow: hidden;
  border: 1px solid var(--oa-border-strong, #555);
  border-radius: 14px;
  background: var(--oa-panel-2, #1b1b1b);
  box-shadow: 0 28px 100px #0006;
}

.production-gallery-modal-head {
  display: flex;
  flex: none;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 26px 20px;
  border-bottom: 1px solid var(--oa-border, #303030);
  background: inherit;
}

.production-gallery-modal-head h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.5;
  font-weight: 600;
}

.gallery-close {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--oa-border-strong, #555);
  border-radius: 8px;
  background: transparent;
  color: var(--oa-text, #f4f4f5);
}

.gallery-close:hover {
  background: var(--oa-hover, #242424);
}

.production-gallery-editor-form {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.production-gallery-modal-body {
  overflow: auto;
  min-height: 0;
  overscroll-behavior: contain;
  padding: 24px 26px;
}

.gallery-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  margin: 0 0 22px;
  color: var(--oa-text, #f4f4f5);
  font-size: 12px;
}

.gallery-field :is(input, textarea, select) {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 9px 11px;
  border: 1px solid var(--oa-border-strong, #555);
  border-radius: 7px;
  background: var(--oa-panel, #151515);
  color: var(--oa-text, #f4f4f5);
  font: inherit;
  line-height: 1.7;
}

.gallery-field textarea {
  resize: vertical;
}

.gallery-field input[hidden] {
  display: none !important;
}

.gallery-upload {
  width: 100%;
  min-height: 43px;
  border-style: dashed;
  border-color: var(--oa-accent, #e1f59a);
}

.gallery-help {
  margin: 0;
  color: var(--oa-muted, #b8bab1);
  font-size: 10px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.gallery-admin-preview {
  display: block;
  width: 100%;
  max-height: 270px;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #090909;
  border: 1px solid var(--oa-border, #303030);
  border-radius: 7px;
}

.gallery-check {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 13px;
  color: var(--oa-text, #f4f4f5);
  font-size: 12px;
  line-height: 1.7;
}

.gallery-check input {
  flex: none;
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--brand-primary, #c5ed3a);
}

.gallery-check small {
  color: var(--oa-muted, #b8bab1);
  font-size: 10px;
  overflow-wrap: anywhere;
}

.gallery-visibility {
  margin: 22px 0 0;
  padding: 0;
  border: 0;
}

.gallery-visibility legend {
  padding: 0;
  margin-bottom: 15px;
  font-size: 12px;
}

.gallery-tenant-list {
  max-height: 220px;
  overflow: auto;
  margin: 16px 0 0;
  padding: 15px 14px 3px;
  border: 1px solid var(--oa-border, #303030);
  border-radius: 8px;
  background: var(--oa-panel, #151515);
}

.production-gallery-modal-footer {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 26px;
  border-top: 1px solid var(--oa-border, #303030);
  background: inherit;
}

@media (max-width: 1160px) {
  .production-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .production-gallery-page {
    padding: 25px 20px 35px;
  }

  .production-gallery-heading h1 {
    font-size: 26px;
  }

  .production-gallery-grid,
  .production-gallery-history-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .production-gallery-history {
    margin-top: 32px;
    padding-top: 25px;
  }

  .production-gallery-admin {
    padding: 17px;
  }

  .gallery-admin-thumb {
    width: 75px;
    height: 55px;
  }

  .production-gallery-admin-list > article {
    gap: 11px;
  }

  .production-gallery-admin-list > article > .gallery-secondary {
    gap: 4px;
    padding-inline: 9px;
  }
}

@media (max-width: 480px) {
  .production-gallery-heading,
  .production-gallery-admin-heading {
    align-items: flex-start;
    gap: 12px;
  }

  .production-gallery-admin-heading {
    flex-direction: column;
  }

  .production-gallery-heading > div > p:last-child {
    font-size: 11px;
  }

  .production-gallery-page {
    padding-inline: 15px;
  }

  .production-gallery-backdrop {
    padding: 12px;
  }

  .production-gallery-modal {
    max-height: calc(100dvh - 24px);
    border-radius: 12px;
  }

  .production-gallery-modal-head,
  .production-gallery-modal-body {
    padding: 20px;
  }

  .production-gallery-modal-head h2 {
    font-size: 20px;
  }

  .production-gallery-modal-footer {
    padding: 15px 20px;
  }
}

.production-gallery-tabs {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0 0 26px;
  border-bottom: 1px solid var(--oa-border, #303030);
}

.production-gallery-tabs > button {
  position: relative;
  min-height: 42px;
  padding: 8px 4px 13px;
  border: 0;
  background: transparent;
  color: var(--oa-muted, #b8bab1);
  font-size: 13px;
  font-weight: 500;
}

.production-gallery-tabs > button[aria-selected="true"] {
  color: var(--oa-accent, #e1f59a);
}

.production-gallery-tabs > button[aria-selected="true"]::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-primary, #c5ed3a);
}

.production-gallery-history.is-tab-panel {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

/* Match the left alignment and typography of the other sidebar items. */
.sidebar:not(.collapsed) .nav-item.skill-office-nav{justify-content:flex-start;text-align:left}
.sidebar:not(.collapsed) .nav-item.skill-office-nav>span:first-of-type{text-align:left;white-space:nowrap}

/* v303: history deletion uses the existing non-destructive record-hide API. */
.gallery-history-action-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.gallery-secondary.gallery-history-delete {
  min-height: 32px;
  padding: 6px 10px;
  color: var(--oa-text, #f4f4f5);
  border-color: var(--oa-border, #303030);
}
.gallery-history-delete:hover {
  color: var(--oa-accent, #e1f59a);
  border-color: var(--oa-accent, #e1f59a);
}
.gallery-history-delete-dialog {
  width: min(480px, 100%);
}
.gallery-history-delete-dialog .production-gallery-modal-head {
  align-items: center;
}
.gallery-history-delete-dialog .production-gallery-eyebrow {
  margin: 0 0 8px;
}
.gallery-history-delete-dialog .production-gallery-modal-body > p {
  margin: 0 0 14px;
  color: var(--oa-muted, #b8bab1);
  font-size: 12px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.gallery-history-delete-dialog .production-gallery-modal-body > .gallery-history-delete-name {
  color: var(--oa-text, #f4f4f5);
  font-weight: 600;
  font-size: 14px;
}
.gallery-history-delete-dialog .production-gallery-modal-footer {
  justify-content: flex-end;
  gap: 10px;
}
.gallery-history-delete-dialog button:focus-visible {
  outline: 2px solid var(--oa-accent, #e1f59a);
  outline-offset: 3px;
}

/* Tabs and their counts share one row. */
.production-gallery-menu-row{display:flex;align-items:flex-end;gap:20px;border-bottom:1px solid var(--oa-border,#303030);margin-bottom:22px}
.production-gallery-menu-row>.production-gallery-tabs{flex:1;min-width:0;border-bottom:0;margin-bottom:0}
.production-gallery-menu-count{flex-shrink:0;color:var(--oa-muted,#aaa);font-size:12px;padding-bottom:14px;white-space:nowrap}
.production-gallery-history.is-tab-panel{margin-top:0;padding-top:0;border-top:0}
/* v308: one management surface for a sample and its production workflow. */
.production-gallery-admin-list>article {display:grid;grid-template-columns:108px minmax(140px,.7fr) minmax(380px,2fr) auto;align-items:center;gap:20px}
.production-gallery-admin-list>article>.gallery-admin-thumb {width:108px;height:68px}
.gallery-card-workflow {min-width:0}
.gallery-workflow-controls {border:0!important;background:transparent!important;margin:0!important;box-shadow:none!important}
.gallery-workflow-controls>article {display:grid!important;grid-template-columns:auto auto minmax(220px,1fr)!important;gap:12px!important;padding:8px 0!important;border:0!important;background:transparent!important;min-height:0!important}
.gallery-workflow-controls>article>.stage-file-icon,.gallery-workflow-controls>article>.skill-package-copy,.gallery-workflow-controls>article>.skill-package-state,.gallery-workflow-controls>article>.skill-package-actions {display:none!important}
.gallery-workflow-controls>article>.skill-package-file {min-width:0!important;width:auto!important;white-space:normal!important}
.gallery-workflow-controls>article>.skill-package-settings {min-width:0!important;width:auto!important}
.gallery-workflow-controls>article>.skill-package-settings label {min-width:0!important}
.gallery-workflow-controls .skill-default-model select {max-width:100%;width:100%}
.gallery-workflow-empty {padding:16px;border:1px solid var(--oa-border,#303030);border-radius:12px;margin-top:16px}
.gallery-sample-edit {white-space:nowrap;align-self:center}
@media(max-width:1200px){.production-gallery-admin-list>article{grid-template-columns:96px minmax(140px,1fr) auto}.gallery-card-workflow{grid-column:1/-1;grid-row:2}.gallery-sample-edit{grid-column:3;grid-row:1}.gallery-workflow-controls>article{grid-template-columns:auto auto minmax(220px,1fr)!important}}
@media(max-width:600px){.production-gallery-admin-list>article{gap:12px;grid-template-columns:80px minmax(0,1fr)}.production-gallery-admin-list>article>.gallery-admin-thumb{width:80px;height:54px}.gallery-sample-edit{grid-row:3;grid-column:1/-1;justify-self:end}.gallery-workflow-controls>article{grid-template-columns:auto auto!important}.gallery-workflow-controls>article>.skill-package-settings{grid-column:1/-1}.production-gallery-admin-heading{gap:16px}}
/* Explicit areas override legacy Skill grid placements on the unified sample card. */
.production-gallery-admin .gallery-workflow-controls>article{grid-template-columns:126px 58px minmax(0,1fr)!important;grid-template-rows:auto!important;align-items:center!important}
.production-gallery-admin .gallery-workflow-controls>article>.skill-package-file{grid-column:1!important;grid-row:1!important;justify-self:start!important}
.production-gallery-admin .gallery-workflow-controls>article>.skill-new-control{grid-column:2!important;grid-row:1!important;margin:0!important;justify-self:start!important}
.production-gallery-admin .gallery-workflow-controls>article>.skill-package-settings{grid-column:3!important;grid-row:1!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px 16px!important;width:100%!important;min-width:0!important}
.production-gallery-admin .gallery-workflow-controls .skill-package-settings label{width:100%!important;min-width:0!important;display:grid!important;gap:8px!important;margin:0!important}
.production-gallery-admin .gallery-workflow-controls .skill-package-settings label:first-child{grid-column:1!important;grid-row:1!important}
.production-gallery-admin .gallery-workflow-controls .skill-package-settings label:last-child{grid-column:2!important;grid-row:1!important}
.production-gallery-admin .gallery-workflow-controls .skill-package-settings select{width:100%!important;max-width:none!important;min-width:0!important}
.production-gallery-admin .gallery-workflow-controls .skill-package-settings .skill-access-edit{grid-column:1/-1!important;grid-row:2!important}
@media(max-width:650px){.production-gallery-admin .gallery-workflow-controls>article{grid-template-columns:1fr auto!important}.production-gallery-admin .gallery-workflow-controls>article>.skill-package-settings{grid-column:1/-1!important;grid-row:2!important;grid-template-columns:1fr!important}.production-gallery-admin .gallery-workflow-controls .skill-package-settings label:last-child{grid-column:1!important;grid-row:2!important}.production-gallery-admin .gallery-workflow-controls .skill-package-settings .skill-access-edit{grid-row:3!important}}

/* v312: each display sample is a complete independent management card. */
.production-gallery-admin.gallery-admin-independent{padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
.gallery-admin-independent .gallery-admin-summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 2px 14px;color:var(--oa-muted,#aaa);font-size:12px}
.gallery-admin-independent .gallery-pin-count{color:var(--oa-accent,#e1f59a)}
.gallery-admin-independent .production-gallery-admin-list{display:grid;gap:18px}
.production-gallery-admin.gallery-admin-independent .production-gallery-admin-list>article{display:grid;grid-template-columns:130px minmax(0,1fr) auto;grid-template-rows:auto auto;gap:20px;padding:22px;border:1px solid var(--oa-border,#303030);border-radius:14px;background:var(--oa-panel,#151515);min-width:0}
.gallery-admin-independent .production-gallery-admin-list>article.is-pinned{border-color:color-mix(in srgb,var(--oa-accent,#e1fa8b) 48%,var(--oa-border,#303030))}
.production-gallery-admin.gallery-admin-independent .production-gallery-admin-list>article>.gallery-admin-thumb{grid-column:1;grid-row:1;width:130px;height:78px;border-radius:8px;overflow:hidden}
.gallery-admin-independent .gallery-admin-card-info{grid-column:2;grid-row:1;min-width:0;overflow-wrap:anywhere}
.gallery-admin-independent .gallery-admin-card-info>b{font-size:15px;color:var(--oa-text,#f4f4f5)}
.gallery-admin-independent .gallery-admin-card-info>p{margin:7px 0;color:var(--oa-muted,#aaa);font-size:12px}
.gallery-admin-independent .gallery-admin-badges{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.gallery-admin-independent .gallery-pinned-badge{display:inline-flex;align-items:center;gap:4px;color:var(--oa-accent,#e1f59a)}
.gallery-admin-independent .gallery-admin-card-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px;grid-column:3;grid-row:1}
.gallery-admin-independent .gallery-admin-card-actions>button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:36px;padding:8px 11px;white-space:nowrap}
.gallery-admin-independent .gallery-admin-card-actions .gallery-pin-button.is-pinned{color:var(--oa-accent,#e1f59a);background:color-mix(in srgb,var(--oa-accent,#d0eb72) 12%,transparent);border-color:color-mix(in srgb,var(--oa-accent,#e1fa8b) 50%,var(--oa-border,#303030))}
.gallery-admin-independent .gallery-admin-card-actions>button:disabled{opacity:.45;cursor:not-allowed}
.gallery-admin-independent .gallery-admin-card-actions .gallery-sample-delete:hover{color:var(--oa-accent,#e1f59a)}
.production-gallery-admin.gallery-admin-independent .production-gallery-admin-list>article>.gallery-card-workflow{grid-column:1/-1;grid-row:2;padding-top:16px;border-top:1px solid var(--oa-border,#303030)}
.gallery-add-sample-header{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;white-space:nowrap}
@media(max-width:900px){.production-gallery-admin.gallery-admin-independent .production-gallery-admin-list>article{grid-template-columns:104px minmax(0,1fr);gap:16px}.production-gallery-admin.gallery-admin-independent .production-gallery-admin-list>article>.gallery-admin-thumb{width:104px;height:68px}.gallery-admin-independent .gallery-admin-card-actions{grid-column:1/-1;grid-row:3;justify-content:flex-end}}
@media(max-width:500px){.production-gallery-admin.gallery-admin-independent .production-gallery-admin-list>article{padding:16px;grid-template-columns:76px minmax(0,1fr);gap:12px;border-radius:12px}.production-gallery-admin.gallery-admin-independent .production-gallery-admin-list>article>.gallery-admin-thumb{width:76px;height:55px}.gallery-admin-independent .gallery-admin-card-info>b{font-size:14px}.gallery-admin-independent .gallery-admin-card-actions{justify-content:space-between}.gallery-admin-independent .gallery-admin-card-actions>button{padding:8px 10px}.gallery-add-sample-header{min-height:36px}}

.gallery-admin-independent .gallery-workflow-controls .skill-access-edit{display:flex!important;flex-wrap:wrap;align-items:center;gap:5px 10px;text-align:left;line-height:1.6;height:auto;white-space:normal}
.gallery-workflow-enterprise-names{display:block;width:100%;font-size:11px;line-height:1.6;color:var(--oa-muted,#aaa);overflow-wrap:anywhere;white-space:normal}
