.wiki-snapshot-page {
  --wiki-snapshot-panel-space: 0px;
  min-height: 100vh;
  padding-bottom: var(--wiki-snapshot-panel-space);
  background: #eef1f4;
  color: #20242a;
}
.wiki-snapshot-document {
  padding: 18px 12px 32px;
}
.wiki-snapshot-tiles {
  width: min(100%, var(--snapshot-width, 1440px));
  min-height: 50vh;
  margin: 0 auto;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 14px rgba(26, 36, 48, 0.12);
}
.wiki-snapshot-tiles img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
}
.wiki-snapshot-panel {
  position: fixed;
  right: 12px;
  bottom: 6px;
  left: 12px;
  z-index: 1040;
  width: min(1180px, calc(100% - 24px));
  margin: 0 auto;
  padding: 14px 16px;
  border: 1px solid #cfd6dd;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 32px rgba(20, 28, 38, 0.2);
  backdrop-filter: blur(12px);
}
.wiki-snapshot-panel-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1.18fr);
  gap: 24px;
  align-items: start;
}
.wiki-snapshot-heading {
  min-width: 0;
}
.wiki-snapshot-label {
  color: #506071;
  font-size: 12px;
}
.wiki-snapshot-heading h1 {
  margin: 3px 0 4px;
  overflow: hidden;
  color: #161a1f;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wiki-snapshot-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  color: #65717f;
  font-size: 12px;
}
.wiki-snapshot-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 9px;
}
.wiki-snapshot-actions a {
  padding: 7px 10px;
  border: 1px solid #cbd2da;
  border-radius: 6px;
  background: #fff;
  color: #354250;
  font-size: 13px;
  text-decoration: none;
}
.wiki-snapshot-actions .wiki-snapshot-original {
  border-color: #2677c9;
  background: #2677c9;
  color: #fff;
}
.wiki-snapshot-actions .wiki-snapshot-contact {
  max-width: 220px;
  overflow: hidden;
  color: #4b6074;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wiki-snapshot-source {
  display: block;
  max-width: 100%;
  margin-top: 8px;
  overflow: hidden;
  color: #4b6074;
  font-size: 12px;
  text-decoration: underline;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wiki-snapshot-notice {
  min-width: 0;
  padding-left: 18px;
  border-left: 1px solid #d8dde3;
}
.wiki-snapshot-notice p {
  margin: 0;
  color: #586572;
  font-size: 12px;
  line-height: 1.55;
}
.wiki-snapshot-notice p + p {
  margin-top: 4px;
}
.wiki-snapshot-notice strong {
  margin-right: 6px;
  color: #2f3a45;
  font-weight: 650;
}
@media (max-width: 720px) {
  .wiki-snapshot-panel {
    right: 8px;
    bottom: 4px;
    left: 8px;
    width: calc(100% - 16px);
    max-height: min(52vh, 360px);
    padding: 12px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    overflow-y: auto;
  }
  .wiki-snapshot-panel-inner {
    display: block;
  }
  .wiki-snapshot-heading h1 {
    display: -webkit-box;
    font-size: 17px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    white-space: normal;
  }
  .wiki-snapshot-notice {
    margin-top: 10px;
    padding-top: 9px;
    padding-left: 0;
    border-top: 1px solid #d8dde3;
    border-left: 0;
  }
  .wiki-snapshot-notice p {
    font-size: 11px;
    line-height: 1.45;
  }
  .wiki-snapshot-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
  }
  .wiki-snapshot-actions a {
    text-align: center;
  }
  .wiki-snapshot-actions .wiki-snapshot-contact {
    grid-column: 1 / -1;
    max-width: none;
  }
  .wiki-snapshot-source {
    margin-top: 7px;
  }
  .wiki-snapshot-document {
    padding: 8px 0 20px;
  }
  .wiki-snapshot-tiles {
    box-shadow: none;
  }
}
