.doc-viewer {
  margin: 18px 0;
  border: 1px solid rgba(127, 127, 127, 0.22);
  border-radius: 10px;
  overflow: hidden;
  background: var(--card-bg, #fff);
}

.doc-viewer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  font-size: 13px;
  background: var(--btn-bg, #0078e7);
  color: #fff;
}

.doc-viewer__name {
  font-weight: 600;
  word-break: break-all;
}

.doc-viewer__open {
  flex: 0 0 auto;
  color: #fff;
  text-decoration: underline;
  font-size: 12px;
}

.doc-viewer__frame {
  display: block;
  width: 100%;
  height: var(--doc-h, 680px);
  border: 0;
  background: #f5f5f5;
}

.doc-viewer__unsupported {
  padding: 24px 16px;
  text-align: center;
  font-size: 14px;
}

.doc-viewer__unsupported a {
  color: var(--btn-bg, #0078e7);
  font-weight: 600;
}

@media (max-width: 768px) {
  .doc-viewer__frame {
    height: min(var(--doc-h, 680px), 70vh);
  }
}
