body.ow-archive-open { overflow: hidden; }

.ow-artifact-overlay {
  position: fixed;
  inset: 0;
  z-index: 11000;
  background: rgba(12,19,16,.78);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  box-sizing: border-box;
}

.ow-artifact-panel {
  background: #f1e8d8;
  color: #332f29;
  width: min(100%, 850px);
  max-height: 94vh;
  overflow-y: auto;
  border-radius: 8px;
  padding: clamp(18px,4vw,42px);
  box-sizing: border-box;
  box-shadow: 0 15px 55px rgba(0,0,0,.45);
  font-family: Georgia, serif;
}

.ow-artifact-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #cab99d;
  padding-bottom: 14px;
  margin-bottom: 22px;
  color: #826b49;
  font: 11px Arial, sans-serif;
  letter-spacing: 1px;
}

.ow-artifact-top button {
  border: 1px solid #9e8968;
  background: transparent;
  color: #483b2d;
  padding: 9px 12px;
  cursor: pointer;
}

.ow-artifact-panel h2 {
  font: normal clamp(26px,4vw,40px)/1.2 Georgia, serif;
  color: #302e28;
  margin: 0 0 24px;
}

.ow-artifact-image {
  display: block;
  max-width: 100%;
  max-height: 65vh;
  object-fit: contain;
  margin: 22px auto;
  background: white;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
}

.ow-artifact-document {
  width: 100%;
  height: min(65vh,750px);
  border: 1px solid #c5b59b;
  background: white;
  margin: 12px 0 24px;
}

.ow-artifact-description {
  white-space: pre-line;
  line-height: 1.75;
  margin: 20px 0;
}

.ow-artifact-panel a.ow-archive-action {
  display: block;
  padding: 12px 0;
  color: #725331;
  font-weight: bold;
}

.ow-artifact-note, .ow-archive-status {
  color: #796b57;
  font-size: 14px;
  line-height: 1.6;
}
