.evidence-detail-main {
  min-width: 0;
  display: grid;
  gap: 20px;
  align-content: start;
}
.evidence-attachments {
  container-type: inline-size;
  min-width: 0;
}
.evidence-attachments > header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 20px;
}
.evidence-section-label {
  display: block;
  color: #8194ae;
  font-size: 11px;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.evidence-attachments h3 {
  font-size: 21px;
  color: #243955;
  margin: 0;
  font-weight: 650;
}
.evidence-attachments h3 small {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  vertical-align: middle;
  border: 1px solid #e4edf7;
  background: #f6faff;
  border-radius: 20px;
  color: #6e84a2;
  padding: 5px 10px;
  margin-left: 8px;
}
.evidence-section-note {
  color: #8a9ab0;
  font-size: 11px;
  line-height: 1.7;
}
.evidence-file-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.evidence-file {
  min-width: 0;
  padding: 20px;
  border: 1px solid #e3eaf3;
  border-radius: 19px;
  background: linear-gradient(145deg, #ffffffed, #f8fbff9e);
  box-shadow:
    inset 0 1px 0 #fff,
    0 5px 20px #3a6c9a05;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.evidence-file:hover {
  border-color: #c7d9ef;
  box-shadow:
    inset 0 1px 0 #fff,
    0 8px 24px #3a6c9a09;
}
.evidence-file-heading {
  display: flex;
  align-items: start;
  gap: 13px;
}
.evidence-file-heading > div {
  flex: 1;
  min-width: 0;
}
.evidence-file-heading h4 {
  margin: 2px 0 7px;
  font-size: 14px;
  color: #2c405c;
  line-height: 1.6;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.evidence-file-heading p {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  column-gap: 7px;
  font-size: 11px;
  line-height: 1.7;
  color: #7f90a7;
}
.evidence-file-icon {
  flex: 0 0 42px;
  height: 48px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  border: 1px solid #dce9fa;
  border-radius: 12px;
  color: #4b83c2;
  background: linear-gradient(150deg, #fff, #eaf3ff);
}
.evidence-file-icon img {
  width: 20px;
  height: 20px;
  opacity: 0.7;
}
.evidence-file-icon small {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.evidence-file-icon.pdf {
  color: #bc7467;
  border-color: #f3e3df;
  background: linear-gradient(150deg, #fff, #fff2ec);
}
.evidence-file-icon.image {
  color: #509084;
  border-color: #dceee8;
  background: linear-gradient(150deg, #fff, #edf9f4);
}
.evidence-file-icon.audio,
.evidence-file-icon.video {
  color: #8a79b0;
  border-color: #e8e1f4;
  background: linear-gradient(150deg, #fff, #f2edfa);
}
.evidence-file-icon.other {
  color: #8a96a6;
  border-color: #e6eaf0;
  background: #f4f6f8;
}
.evidence-file-number {
  color: #a4b0c2;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  padding-top: 5px;
}
.evidence-file-source {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #8798ad;
  font-size: 10px;
  margin: 16px 0 12px;
  min-width: 0;
}
.evidence-file-source img {
  width: 14px;
  height: 14px;
  opacity: 0.5;
}
.evidence-file-source span {
  overflow-wrap: anywhere;
}
.evidence-file-hash {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  gap: 5px 8px;
  border-top: 1px solid #edf1f6;
  padding-top: 13px;
}
.evidence-file-hash > span {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #91a0b5;
}
.evidence-file-hash code {
  grid-column: 1;
  color: #72859e;
  font:
    10px/1.65 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  overflow-wrap: anywhere;
}
.evidence-file-hash button {
  grid-column: 2;
  grid-row: 1/3;
  align-self: center;
  width: 26px;
  height: 28px;
  padding: 5px;
  border: 0;
  border-radius: 7px;
  background: transparent;
}
.evidence-file-hash button img {
  width: 14px;
  height: 14px;
  opacity: 0.5;
}
.evidence-file-hash button:hover {
  background: #edf3fb;
}
.evidence-file footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 36px;
  margin-top: 15px;
  padding: 12px 0 0;
  background: transparent;
  border-color: #edf1f6;
}
.evidence-file footer > span {
  color: #92a0b2;
  font-size: 10px;
  line-height: 1.6;
}
.evidence-preview-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
  border: 1px solid #dce8f7;
  border-radius: 10px;
  padding: 9px 11px;
  background: #f1f7ff;
  color: #467bad;
  font-size: 11px;
  font-weight: 550;
}
.evidence-preview-button img {
  width: 13px;
  height: 13px;
  opacity: 0.6;
}
.evidence-preview-button:hover {
  background: #e7f1ff;
  border-color: #c6dcf4;
}
.evidence-preview-button:focus-visible,
.evidence-file button:focus-visible,
.evidence-raw summary:focus-visible,
.evidence-preview-close:focus-visible {
  outline: 2px solid #4c91dc;
  outline-offset: 3px;
}
.evidence-empty {
  display: flex;
  align-items: center;
  gap: 17px;
  min-height: 135px;
  padding: 26px;
  border: 1px dashed #dce6f1;
  border-radius: 18px;
  background: #f8fbff70;
}
.evidence-empty.restricted {
  margin-top: 15px;
}
.evidence-empty > img {
  width: 33px;
  height: 33px;
  opacity: 0.45;
}
.evidence-empty strong {
  color: #60758f;
  font-size: 13px;
  font-weight: 550;
}
.evidence-empty p {
  margin: 8px 0 0;
  color: #91a0b3;
  font-size: 11px;
  line-height: 1.8;
}
.evidence-remark {
  border: 1px solid #e5ebf2;
  border-radius: 16px;
  padding: 20px;
  background: #ffffff75;
}
.evidence-remark h3 {
  font-size: 12px;
  color: #667e9c;
  margin: 0 0 10px;
}
.evidence-remark p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.9;
  color: #4e637e;
  margin: 0;
}
.evidence-raw {
  min-width: 0;
  border: 1px solid #e7edf4;
  border-radius: 14px;
  background: #ffffff45;
}
.evidence-raw summary {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 16px 18px;
  font-size: 11px;
  color: #8395ac;
  list-style: none;
}
.evidence-raw summary::-webkit-details-marker {
  display: none;
}
.evidence-raw summary img {
  width: 15px;
  height: 15px;
  opacity: 0.5;
}
.evidence-raw summary img:last-child {
  margin-left: auto;
  width: 12px;
}
.evidence-raw[open] summary img:last-child {
  transform: rotate(180deg);
}
.evidence-raw .proof-json {
  margin: 0 12px 12px;
  max-height: 400px;
}
.detail-back > img {
  width: 13px;
  height: 13px;
  vertical-align: middle;
  margin-right: 6px;
  opacity: 0.6;
}
.evidence-preview {
  width: min(740px, calc(100vw - 48px));
  height: min(82dvh, 940px);
  box-sizing: border-box;
  max-width: calc(100vw - 48px);
  max-height: calc(100dvh - 48px);
  padding: 0;
  border: 1px solid #ffffffdb;
  border-radius: 24px;
  background: #f8fbff;
  color: #354b68;
  box-shadow:
    0 28px 110px #203b5c38,
    inset 0 1px 0 #fff;
  overflow: hidden;
}
.evidence-preview[open] {
  display: flex;
  flex-direction: column;
}
.evidence-preview::backdrop {
  background: #28364a66;
  backdrop-filter: blur(7px);
}
.evidence-preview > header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  flex: 0 0 auto;
  gap: 20px;
  padding: 21px 26px 18px;
  background: linear-gradient(110deg, #fff, #f5f9ff);
  border-bottom: 1px solid #e2eaf4;
}
.evidence-preview header > div {
  min-width: 0;
}
.evidence-preview h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.evidence-preview header p {
  margin: 7px 0 0;
  font-size: 10px;
  color: #8293a9;
  overflow-wrap: anywhere;
}
.evidence-preview .evidence-section-label {
  margin-bottom: 6px;
}
.evidence-preview-close {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  padding: 11px;
  display: grid;
  place-items: center;
  border: 1px solid #e5ecf5;
  border-radius: 50%;
  background: #ffffffa8;
}
.evidence-preview-close img {
  width: 13px;
  height: 13px;
  opacity: 0.6;
}
.evidence-preview-content {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex: 1;
  min-height: 0;
  background: #eef3fa;
  overflow: auto;
}
.evidence-preview-document {
  width: 100%;
  min-height: 0;
  border: 0;
}
.evidence-image-content {
  flex-direction: column;
}
.evidence-image-page {
  flex: 1;
  min-height: 0;
  padding: 12px;
  overflow: auto;
}
.evidence-image-page img.evidence-preview-document {
  display: block;
  max-width: none;
  margin: auto;
  object-fit: contain;
}
img.evidence-preview-document,
video.evidence-preview-document {
  height: 100%;
  object-fit: contain;
}
.evidence-pdf {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  min-height: 0;
}
.evidence-pdf-tools {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  padding: 9px;
  background: #f8fbff;
  border-bottom: 1px solid #e3ebf4;
  color: #71859d;
  font-size: 12px;
}
.evidence-pdf-tools button {
  border: 1px solid #dfe8f2;
  background: #fff;
  border-radius: 8px;
  height: 30px;
  min-width: 32px;
  color: #4e739c;
  font-size: 18px;
}
.evidence-pdf-tools button:disabled {
  opacity: 0.35;
  cursor: default;
}
.evidence-pdf-tools button:focus-visible {
  outline: 2px solid #4c91dc;
  outline-offset: 2px;
}
.evidence-pdf-separator {
  height: 16px;
  width: 1px;
  background: #dfe8f2;
  margin: 0 5px;
}
.evidence-pdf-page {
  overflow: auto;
  flex: 1;
  min-height: 0;
  text-align: center;
  padding: 16px;
}
.evidence-pdf-page canvas {
  display: block;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 3px 18px #263b561c;
}
audio.evidence-preview-document {
  width: min(680px, 88%);
  margin: auto;
}
pre.evidence-preview-document {
  margin: 0;
  padding: 25px;
  color: #425873;
  background: #fcfdff;
  font:
    12px/1.9 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  overflow: auto;
}
.evidence-preview > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  gap: 20px;
  padding: 14px 25px;
  background: #ffffffed;
  border-top: 1px solid #e3ebf4;
  font-size: 10px;
  color: #8a9bb1;
}
.evidence-preview footer code {
  font:
    10px/1.6 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  overflow-wrap: anywhere;
  max-width: 70%;
}
.evidence-file .verified,
.evidence-preview .verified {
  color: #3c9b83 !important;
}
.evidence-preview-loading {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  color: #8598b0;
  font-size: 12px;
}
.evidence-preview-loading > span {
  display: block;
  width: 25px;
  height: 25px;
  border: 2px solid #d9e6f5;
  border-top-color: #639cda;
  border-radius: 50%;
  animation: evidence-loading 1s linear infinite;
}
.evidence-preview-error {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 500px;
  padding: 32px;
  text-align: center;
}
.evidence-preview-error > img {
  width: 40px;
  height: 40px;
  opacity: 0.4;
  margin-bottom: 20px;
}
.evidence-preview-error strong {
  font-size: 16px;
  color: #69809e;
  font-weight: 550;
}
.evidence-preview-error p {
  font-size: 12px;
  line-height: 1.9;
  color: #899bb1;
  overflow-wrap: anywhere;
}
@keyframes evidence-loading {
  to {
    transform: rotate(360deg);
  }
}
@container (max-width:650px) {
  .evidence-file-list {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 600px) {
  .evidence-file-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 13px;
  }
  .evidence-attachments > header {
    align-items: start;
    gap: 10px;
  }
  .evidence-attachments h3 {
    font-size: 18px;
  }
  .evidence-section-note {
    max-width: 100px;
    text-align: right;
    font-size: 10px;
  }
  .evidence-file {
    padding: 17px;
  }
  .evidence-preview {
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    border-radius: 19px;
  }
  .evidence-preview > header {
    padding: 17px 17px 14px;
  }
  .evidence-preview h3 {
    font-size: 15px;
  }
  .evidence-preview > footer {
    padding: 12px 16px;
    gap: 10px;
    align-items: start;
  }
  .evidence-preview footer code {
    max-width: 56%;
    font-size: 9px;
  }
  pre.evidence-preview-document {
    padding: 17px;
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .evidence-preview-loading > span {
    animation: none;
  }
  .evidence-file {
    transition: none;
  }
}
