.record-details-page {
  min-height: calc(100vh - 112px);
  padding: clamp(16px, 3vw, 34px);
  background: #f6f7f9;
}

.record-details-shell {
  width: min(760px, 100%);
  margin: 0 auto;
}

.record-details-card,
.record-details-state {
  overflow: hidden;
  border: 1px solid #e4e7eb;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(23, 32, 46, .08);
}

.record-details-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 26px 20px;
  border-bottom: 1px solid #eceef1;
}

.record-details-eyebrow {
  display: block;
  margin-bottom: 5px;
  color: #8d1f2f;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.record-details-head h1 { margin: 0; color: #17202e; font-size: clamp(1.3rem, 3vw, 1.75rem); }
.record-details-back { border: 0; background: transparent; color: #5f6877; font: inherit; cursor: pointer; }
.record-details-back:hover { color: #8d1f2f; }

.record-details-body { display: grid; gap: 22px; padding: 24px 26px 28px; }
.record-details-identity { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 12px; }
.record-details-identity div { min-width: 0; padding: 13px 14px; border-radius: 14px; background: #f7f8fa; }
.record-details-identity span,
.record-details-section > span { display: block; margin-bottom: 5px; color: #737c89; font-size: .73rem; font-weight: 700; text-transform: uppercase; }
.record-details-identity strong { color: #202936; overflow-wrap: anywhere; }
.record-details-section p { margin: 0; color: #333d4c; line-height: 1.55; white-space: pre-wrap; }
.record-details-attachment { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 16px; border: 1px solid #e5e8ed; border-radius: 15px; }
.record-details-attachment strong { display: block; overflow-wrap: anywhere; }
.record-details-attachment small { color: #737c89; }
.record-details-attachment a { flex: 0 0 auto; padding: 9px 13px; border-radius: 10px; background: #202936; color: #fff; font-size: .82rem; font-weight: 700; text-decoration: none; }
.record-details-state { padding: 34px 28px; text-align: center; }
.record-details-state h1 { margin: 0 0 8px; font-size: 1.35rem; }
.record-details-state p { margin: 0 0 20px; color: #697382; }
.record-details-state button { border: 0; background: transparent; color: #8d1f2f; font: inherit; font-weight: 700; cursor: pointer; }

@media (max-width: 680px) {
  .record-details-page { min-height: calc(100vh - 76px); padding: 12px; }
  .record-details-card, .record-details-state { border-radius: 17px; }
  .record-details-head, .record-details-body { padding: 19px 17px; }
  .record-details-identity { grid-template-columns: 1fr; }
  .record-details-attachment { align-items: flex-start; flex-direction: column; }
  .record-details-attachment a { width: 100%; text-align: center; }
}
