.chat-file-card.chat-word-file {
  width:100%;
  min-height:48px;
  border:1px solid #ded8ed;
  text-align:left;
  font:inherit;
  cursor:pointer;
}
.chat-file-card .chat-word-file-name {
  flex:1;
  min-width:0;
  overflow-wrap:anywhere;
}
.chat-file-card .chat-word-file-arrow {
  flex:none;
  color:#624b9c;
  font-size:20px;
}
.chat-word-preview {
  position:fixed;
  inset:0;
  box-sizing:border-box;
  width:100%;
  height:100%;
  height:100dvh;
  max-width:none;
  max-height:none;
  margin:0;
  padding:0;
  border:0;
  background:#f4f1f9;
  color:#262039;
  overflow:hidden;
  font:inherit;
  z-index:10000;
}
.chat-word-preview[open] { display:flex; flex-direction:column; }
.chat-word-preview::backdrop { background:#f4f1f9; }
.chat-word-preview-bar {
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
  padding:calc(8px + env(safe-area-inset-top,0px)) 12px 8px;
  background:#fff;
  border-bottom:1px solid #dfdae9;
}
.chat-word-preview-bar h2 {
  overflow:hidden;
  margin:0;
  color:inherit;
  font-size:16px;
  font-weight:650;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.chat-word-preview button {
  min-height:44px;
  padding:6px 11px;
  border:1px solid #ded8ed;
  border-radius:10px;
  background:#f0eafb;
  color:#5b428e;
  font:inherit;
  cursor:pointer;
}
.chat-word-preview-body {
  flex:1;
  overflow:auto;
  overscroll-behavior:contain;
  padding:10px 8px calc(12px + env(safe-area-inset-bottom,0px));
  text-align:center;
}
.chat-word-preview [role="status"] {
  margin:18px 0 12px;
  color:#675f77;
}
.chat-word-preview [data-word-pages] img {
  display:block;
  width:min(100%,860px);
  height:auto;
  margin:0 auto 10px;
  background:#fff;
  box-shadow:0 1px 3px rgb(36 29 52 / 14%);
}
.chat-word-preview.is-zoomed [data-word-pages] { width:max(720px,100%); }
.chat-word-preview.is-zoomed [data-word-pages] img { width:min(100%,1200px); }
