#by-order-ops-v2 .by-v3-production[data-by-v4-production='ready'] {
  background: #f4faf7;
}

.by-v4-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.by-v4-panel-heading p {
  margin: 4px 0 0;
  color: #465956;
  font-size: 13px;
}

.by-v4-panel-heading > span {
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--by-ops-green-dark);
  background: var(--by-ops-mint);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.by-v4-worker-card {
  border: 1px solid #c8ddd6;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}

.by-v4-worker-card + .by-v4-worker-card {
  margin-top: 14px;
}

.by-v4-worker-card > summary {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  color: var(--by-ops-green-dark);
  background: #e8f5ed;
  cursor: pointer;
  font-size: 15px;
  font-weight: 900;
}

.by-v4-worker-card > summary strong {
  color: var(--by-ops-ink);
  font-size: 13px;
}

.by-v4-worker-body {
  padding: 14px;
}

.by-v4-worker-overview {
  display: grid;
  grid-template-columns: minmax(220px, 310px) minmax(0, 1fr);
  gap: 16px;
}

.by-v4-preview {
  display: grid;
  min-width: 0;
  align-content: start;
  justify-items: center;
  gap: 8px;
  border: 1px solid var(--by-ops-line);
  border-radius: 14px;
  padding: 12px;
  background: #fbfdfc;
}

.by-v4-preview > strong {
  justify-self: start;
  color: var(--by-ops-ink);
  font-size: 13px;
}

.by-v4-preview > small {
  color: #465956;
  font-size: 12px;
}

.by-v4-bracelet-photo {
  display: block;
  width: 100%;
  max-width: 270px;
  max-height: 230px;
  border-radius: 12px;
  object-fit: contain;
}

.by-v4-bracelet-photo-missing {
  display: grid;
  width: 100%;
  min-height: 150px;
  place-items: center;
  border: 1px dashed #c4d3ce;
  border-radius: 12px;
  padding: 18px;
  color: var(--by-ops-muted);
  background: #f6f9f8;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.by-v4-params {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-content: start;
  margin: 0;
}

.by-v4-params > div {
  min-width: 0;
  border: 1px solid var(--by-ops-line);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
}

.by-v4-params dt,
.by-v4-production-notes span {
  margin: 0 0 4px;
  color: #465956;
  font-size: 12px;
  font-weight: 800;
}

.by-v4-params dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--by-ops-ink);
  font-size: 13px;
  font-weight: 900;
}

.by-v4-production-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 12px;
}

.by-v4-production-notes > div {
  display: grid;
  min-width: 0;
  border-left: 4px solid var(--by-ops-green);
  border-radius: 10px;
  padding: 9px 11px;
  background: #f4faf7;
}

.by-v4-production-notes strong {
  overflow-wrap: anywhere;
  color: var(--by-ops-ink);
  font-size: 13px;
}

.by-v4-sequence-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin: 16px 0 8px;
}

.by-v4-sequence-heading strong {
  color: var(--by-ops-ink);
  font-size: 14px;
}

.by-v4-sequence-heading span {
  color: #465956;
  font-size: 12px;
  line-height: 1.4;
  text-align: right;
}

.by-v4-stones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 9px;
}

.by-v4-stone {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 112px;
  align-content: start;
  justify-items: center;
  gap: 4px;
  border: 1px solid var(--by-ops-line);
  border-radius: 12px;
  padding: 8px 6px 7px;
  background: #fff;
  text-align: center;
}

.by-v4-stone-image-wrap {
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
}

.by-v4-stone img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
}

.by-v4-stone--ending img {
  width: 38px;
  height: 38px;
}

.by-v4-stone > strong {
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--by-ops-ink);
  font-size: 11px;
  line-height: 1.2;
}

.by-v4-stone > small {
  color: var(--by-ops-green);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.by-v4-stone-number {
  position: absolute;
  z-index: 2;
  top: 5px;
  left: 5px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--by-ops-green);
  font-size: 10px;
  font-weight: 900;
}

.by-v4-bracelet-link {
  display: inline-flex;
  margin-top: 13px;
  color: var(--by-ops-green);
  font-weight: 900;
  text-decoration: none;
}

.by-v4-bracelet-link:hover {
  text-decoration: underline;
}

.by-v4-empty {
  margin: 0;
  padding: 14px;
  color: var(--by-ops-muted);
}

.by-v4-engraving {
  margin: 14px 0;
  padding: 14px;
  border: 1px solid #d8e6e2;
  border-radius: 16px;
  background: #fff;
}

.by-v4-engraving-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.by-v4-engraving-head button {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #0d6259;
  border-radius: 10px;
  background: #fff;
  color: #0d6259;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.by-v4-print-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.by-v4-print-actions > span { color: #3f5551; font-size: 12px; }
.by-v9-label-action-slot:empty { display: none; }
.by-v9-label-action-slot:not(:empty) { display: inline-flex; align-items: center; }
.by-v9-label-action-slot .by-v7-print,
.by-v9-label-action-slot [data-by-v6-register-europochta] { width: auto; min-width: 44px; height: 38px; min-height: 38px; margin: 0; padding: 4px 9px; }
.by-v9-label-action-slot [data-by-v6-register-europochta] { gap: 6px; font-size: 11px; line-height: 1.1; }
.by-v4-symbol-sheet-wrap { position: relative; display: grid; place-items: center; overflow: hidden; width: min(100%, 260px); aspect-ratio: 1; margin: 0 auto; border: 1px solid #dfe8e5; border-radius: 14px; background: #fff; }
.by-v4-symbol-sheet { display: block; width: 100%; height: 100%; aspect-ratio: 1; object-fit: contain; }
.by-v4-symbol-sheet[hidden], .by-v4-symbol-download[hidden], [data-by-v7-symbol-control][hidden], .by-v4-symbol-loading[hidden] { display: none !important; }
.by-v4-symbol-loading { max-width: 190px; color: #465956; font-size: 12px; text-align: center; }
.by-v4-symbol-download { position: absolute; right: 9px; bottom: 9px; width: 38px !important; height: 38px !important; border-radius: 50% !important; background: rgba(255,255,255,.94) !important; box-shadow: 0 4px 14px rgba(0,0,0,.14); }
.by-v4-symbol-caption { margin: 8px 0 0; color: #465956; font-size: 12px; line-height: 1.4; text-align: center; }
.by-v4-engraving-empty { margin: 12px 0; color: #465956; }
.by-v9-note-value { display: flex; min-width: 0; align-items: center; gap: 7px; flex-wrap: wrap; }
.by-v9-note-value > strong { min-width: 0; overflow-wrap: anywhere; }
.by-v9-copy-text { display: inline-grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; border: 1px solid #bfd3cd; border-radius: 9px; padding: 0; color: #0d6259; background: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.by-v9-copy-text:hover { border-color: #0d6259; background: #eef8f4; }
.by-v9-copy-status { min-width: 86px; color: #0d6259; font-size: 11px; font-weight: 800; }

@media (max-width: 720px) {
  .by-v4-engraving-head { align-items: flex-start; flex-direction: column; }
  .by-v4-print-actions { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
  .by-v4-worker-overview {
    grid-template-columns: 1fr;
  }

  .by-v4-bracelet-photo {
    max-height: 260px;
  }

  .by-v4-sequence-heading {
    display: grid;
    gap: 4px;
  }

  .by-v4-sequence-heading span {
    text-align: left;
  }
}

@media (max-width: 520px) {
  .by-v4-panel-heading,
  .by-v4-worker-card > summary {
    display: grid;
    gap: 5px;
  }

  .by-v4-panel-heading > span {
    justify-self: start;
  }

  .by-v4-worker-body {
    padding: 9px;
  }

  .by-v4-params,
  .by-v4-production-notes {
    grid-template-columns: 1fr;
  }

  .by-v4-stones-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .by-v4-stone-image-wrap {
    width: 50px;
    height: 50px;
  }

  .by-v4-stone img {
    width: 48px;
    height: 48px;
  }

  .by-v4-stone--ending img {
    width: 32px;
    height: 32px;
  }
}
