/* Public collection and the private website editor share the navy palette. */
.announcement {
  height: auto;
  min-height: 34px;
  padding: 9px 20px;
  text-align: center;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.announcement a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.announcement > span:only-child {
  display: inline;
}
#hero-title .hero-lead,
#hero-title .hero-second,
#approach-title .approach-lead {
  color: var(--text);
  background: none;
  -webkit-text-fill-color: currentColor;
}
[data-content="heroDescription"],
[data-content="approachBody"] {
  white-space: pre-line;
}
.catalog-tools {
  align-items: flex-start;
  gap: 24px;
}
.category-filters {
  flex-wrap: wrap;
  row-gap: 8px;
}
.catalog-tools .search-box {
  flex-shrink: 0;
}
.material-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 48px 22px;
}
.detail-image .material-photo {
  max-height: 460px;
}
.material-permalink {
  display: inline-block;
  margin-top: 18px;
  font-size: 14px;
}
.detail-subtitle {
  white-space: pre-line;
}
.specimen-word {
  overflow-wrap: anywhere;
}
.editor-shell .account-tabs {
  margin-bottom: 28px;
}
.editor-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 36px;
}
.editor-tabs button {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  color: #91a9d5;
  font: inherit;
  font-size: 12px;
  background: #14233a;
  border: 1px solid #344764;
  border-radius: 9px;
  cursor: pointer;
}
.editor-tabs button span {
  color: #c8d5ef;
  font-size: 14px;
}
.editor-tabs button[aria-pressed="true"] {
  background: #273e64;
  border-color: #829cf4;
}
.editor-tabs button:focus-visible {
  outline: 2px solid #a2bcff;
  outline-offset: 3px;
}
.editor-shell .button.secondary,
.material-dialog .button.secondary {
  border: 1px solid #4a6087;
  border-radius: 6px;
  background: #1b2d48;
  color: #d7e4ff;
}
.editor-shell .button.secondary:hover,
.material-dialog .button.secondary:hover {
  background: #2a4064;
}
.editor-filters {
  display: flex;
  align-items: end;
  gap: 20px;
  margin: 24px 0;
}
.editor-filters label {
  font-size: 13px;
  color: #b2c5e2;
}
.editor-filters label:first-child {
  flex: 1;
}
.editor-filters input,
.editor-filters select {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 13px 16px;
  background: #0d1a2e;
  border: 1px solid #3d5478;
  border-radius: 6px;
  color: #e1eaff;
  font: inherit;
  font-size: 15px;
  color-scheme: dark;
}
.editor-filters > span {
  padding-bottom: 14px;
  font-size: 13px;
  white-space: nowrap;
}
.material-list {
  display: grid;
  gap: 14px;
}
.material-row {
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 24px;
}
.material-row-image {
  width: 70px;
  height: 78px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: #253b5f;
  border: 1px solid #3a517b;
  border-radius: 8px;
  color: #96b1f5;
  font-size: 30px;
  overflow: hidden;
}
.material-row-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.material-row-info {
  min-width: 0;
  flex: 1;
}
.material-row .panel-kicker {
  font-size: 10px;
  margin-bottom: 8px;
}
.material-row h3 {
  font-weight: 500;
  font-size: 20px;
  margin: 0 0 8px;
  overflow-wrap: anywhere;
}
.material-row p {
  color: #97aecf;
  font-size: 13px;
  margin: 0 0 12px;
}
.material-row-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.remove-material {
  cursor: pointer;
  color: #c6aebd;
  background: none;
  border: 0;
  padding: 10px 0;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.editor-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}
.editor-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.editor-shell form > .button {
  margin-top: 24px;
}
#content-form .field-grid {
  margin-top: 28px;
}
.announcement-demo {
  text-align: center;
  padding: 16px 20px;
  background: #0c1729;
  color: #cad9f4;
  border-block: 1px solid #3b5277;
  font-size: 13px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.material-dialog {
  width: min(760px, calc(100% - 32px));
  max-height: 90vh;
  overflow-y: auto;
  margin: auto;
  color: var(--text);
}
.material-dialog::backdrop {
  background: #030b19d9;
  backdrop-filter: blur(5px);
}
.material-dialog .section-row {
  margin: 0 0 24px;
}
.material-dialog .panel-kicker {
  margin-bottom: 12px;
}
.material-dialog h2 {
  font-size: 30px;
  font-weight: 500;
  margin: 0;
}
.material-dialog .input-hint {
  color: #9db1d1;
  line-height: 1.7;
}
.upload-row {
  margin-top: 16px;
}
.upload-row input[type="file"] {
  padding: 10px;
  font-size: 13px;
}
.upload-row .button {
  margin-top: 12px;
}
#material-image-preview {
  margin-top: 16px;
  max-width: 160px;
  max-height: 160px;
  border: 1px solid #3d5478;
  border-radius: 8px;
  background: #0d1a2e;
  object-fit: contain;
}
.discord-preview {
  border-radius: 7px;
  border: 1px solid #34435c;
  border-left: 4px solid #7a9eff;
  padding: 24px;
  background: linear-gradient(135deg, #1a2334, #161d2b);
  color: #dce6f5;
  font:
    14px/1.6 "DM Sans",
    sans-serif;
  overflow-wrap: anywhere;
}
.discord-preview-author {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #9ab5ec;
  margin-bottom: 16px;
}
.discord-preview-title {
  display: block;
  color: #bdcfff;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 14px;
}
.discord-preview p {
  font-size: 13px;
  color: #b5c5dc;
}
.discord-thumbnail {
  float: right;
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin: 0 0 18px 20px;
  border-radius: 6px;
  background: #101928;
}
.discord-preview code {
  padding: 3px 6px;
  border-radius: 4px;
  color: #c4d7ff;
  background: #0e1726;
  font-size: 12px;
}
.discord-preview-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 26px;
  margin: 24px 0;
}
.discord-preview-fields strong {
  display: block;
  color: #92a8c8;
  font-size: 10px;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.discord-preview > a:not(.discord-preview-title) {
  color: #9bb7ff;
  font-size: 13px;
}
.discord-preview footer {
  color: #8499b7;
  font-size: 11px;
  margin-top: 24px;
  border-top: 1px solid #34435c;
  padding-top: 16px;
}
.delivery-panel {
  margin-top: 28px;
}
.delivery-panel .section-row {
  margin-top: 0;
}
.delivery-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: #afc1df;
}
@media (max-width: 1000px) {
  .catalog-tools {
    flex-direction: column;
  }
  .catalog-tools .search-box {
    width: 100%;
  }
  .editor-tabs {
    grid-template-columns: 1fr 1fr;
  }
  .material-row-actions {
    flex-direction: column;
    gap: 8px;
  }
  .editor-split {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .category-filters {
    flex-wrap: nowrap;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 10px;
  }
  .category {
    flex-shrink: 0;
  }
  .editor-tabs button {
    padding: 14px 10px;
    gap: 8px;
  }
  .editor-filters {
    flex-wrap: wrap;
    gap: 14px;
  }
  .editor-filters label:first-child {
    flex-basis: 100%;
  }
  .material-row {
    gap: 16px;
    flex-wrap: wrap;
    padding: 20px;
  }
  .material-row-image {
    width: 48px;
    height: 56px;
  }
  .material-row-actions {
    flex-basis: 100%;
    flex-direction: row;
    justify-content: flex-start;
    gap: 20px;
  }
  .material-row h3 {
    font-size: 18px;
  }
  .editor-split {
    gap: 20px;
  }
  .material-dialog {
    padding: 22px;
  }
  .material-dialog .section-row {
    flex-direction: row;
    align-items: center;
  }
  .delivery-row {
    flex-wrap: wrap;
    gap: 10px;
  }
  .hero-lead {
    display: inline;
  }
}

/* Shared material artwork scales as one unit, including full custom names. */
.material-art {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.material-art svg {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 520px;
}
.product-corner,
.product-image-footer {
  z-index: 1;
}
.detail-image {
  overflow: hidden;
}
.detail-info {
  min-width: 0;
}
.detail-info h2 {
  overflow-wrap: break-word;
  font-size: clamp(25px, 3vw, 36px);
}
.bag-monogram {
  overflow: hidden;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.discord-preview {
  display: flow-root;
}
.discord-preview.listing-removed {
  border-left-color: #d85c69;
}
.discord-preview.listing-removed .discord-preview-title {
  color: #f1abb5;
}
.discord-preview-author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.discord-author-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}
.discord-thumbnail {
  width: 112px;
  height: 112px;
}
.status-pill[data-state="pending"] {
  background: #392f22;
  color: #e7c694;
}
.status-pill[data-state="rejected"] {
  background: #38202a;
  color: #efa5b3;
}
.referral-actions {
  display: flex;
  gap: 16px;
}

/* Category colors are supplied by the catalog settings for every category. */
.category[data-category],
.product-card,
.detail-visual {
  --category-color: var(--category-accent, var(--brand-accent));
  --category-bg: color-mix(in srgb, var(--category-color) 18%, var(--surface));
}
.category[data-category] {
  color: var(--category-color);
  border-color: color-mix(in srgb, var(--category-color) 30%, var(--line));
}
.category[data-category].active {
  background: var(--category-bg);
  border-color: var(--category-color);
  box-shadow: inset 0 -2px var(--category-color);
}
.category[data-category] span {
  color: inherit;
  opacity: 0.8;
}
.product-card .product-image-button,
.detail-visual {
  background: radial-gradient(
    ellipse at bottom right,
    var(--category-bg),
    var(--bg) 90%
  );
  border-color: color-mix(in srgb, var(--category-color) 30%, var(--line));
}
.product-card .product-category {
  color: var(--category-color);
  background: var(--category-bg);
  border-color: color-mix(in srgb, var(--category-color) 45%, transparent);
}
@media (max-width: 520px) {
  .discord-thumbnail {
    width: 90px;
    height: 90px;
    margin-left: 12px;
  }
}

/* Reviewed PubChem identities share the editor's restrained navy framing. */
.material-chemistry {
  min-width: 0;
  border: 1px solid #334b6c;
  border-radius: 12px;
  padding: 18px;
  margin: 8px 0;
  background: #101e33;
}
.material-chemistry legend {
  padding: 0 8px;
  color: #c0d2f5;
}
.compound-search-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
}
.compound-search-row input {
  min-width: 0;
  flex: 1;
}
.compound-search-row button {
  flex: 0 0 auto;
}
.compound-record {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #2c405c;
}
.compound-record img {
  width: 120px;
  height: 100px;
  object-fit: contain;
  background: white;
  border-radius: 8px;
  padding: 6px;
}
.compound-record strong {
  color: #d8e4ff;
  overflow-wrap: anywhere;
}
.compound-record p {
  font-size: 12px;
  margin: 6px 0;
  overflow-wrap: anywhere;
}
.compound-record .compound-chemical-name {
  color: #9db2d2;
  font-size: 11px;
}
.compound-record .button {
  display: block;
  padding: 9px 12px;
  margin-top: 12px;
}
@media (max-width: 600px) {
  .compound-search-row {
    flex-direction: column;
  }
  .compound-record {
    grid-template-columns: 1fr;
  }
}
