.och-dialog[open] {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}
.och-dialog.is-wide-reading[open] {
  inset: 0;
  width: min(1180px, calc(100vw - 48px));
  height: calc(100dvh - 48px);
  margin: auto;
  border: 1px solid #d8e5e2;
  border-radius: 10px;
  box-shadow: 0 18px 60px #193b4633;
}
.och-dialog[open] > header {
  box-sizing: border-box;
  flex: none;
  min-height: 56px;
  gap: 12px;
  margin: 0;
  padding: 8px 24px;
  border-bottom: 1px solid #e0e9e7;
}
.och-preview-toolbar { display: flex; align-items: center; gap: 6px; }
.och-dialog[open] .och-preview-toolbar > button {
  box-sizing: border-box;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: auto;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: #365963;
  font: 600 12px/1.35 var(--font-ui, system-ui);
  cursor: pointer;
}
.och-dialog[open] .och-preview-toolbar .och-preview-expand { border-color: #c8dcd8; color: #08746b; }
.och-dialog[open] .och-preview-toolbar > button:hover { background: #edf5f3; }
.och-preview-toolbar [data-chat-action="close-preview"] svg { width: 16px; height: 16px; }
.och-preview-toolbar button:focus-visible,
.och-preview-body .robson-doc-readable-image:focus-visible,
.och-preview-table-scroll:focus-visible { outline: 2px solid #087f79; outline-offset: 2px; }
.och-dialog[open] > .och-preview-content {
  box-sizing: border-box;
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  overflow: auto;
  overflow-anchor: none;
  overscroll-behavior: contain;
  padding: 24px 28px 36px;
}
.och-dialog.is-wide-reading[open] > .och-preview-content { padding-inline: clamp(24px, 4vw, 60px); }
.och-preview-body, .och-preview-body .toastui-editor-contents { min-width: 0; }
.och-preview-body img,
.och-preview-body .toastui-editor-contents img { max-width: 100%; height: auto; object-fit: contain; }
.och-preview-body .robson-doc-readable-image { cursor: zoom-in; }
.och-preview-body :is(video, .robson-doc-video-embed-wrap) {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.och-preview-body .robson-doc-video-embed-wrap {
  margin-block: 12px;
  overflow: hidden;
  border-radius: 6px;
}
.och-preview-body video {
  display: block;
  height: auto;
  aspect-ratio: auto 16 / 9;
  background: #101418;
  object-fit: contain;
}
.och-preview-body .cloud-preview-docx { max-width: 100%; overflow-x: visible; }
.och-preview-table-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }
.och-preview-body .och-preview-table-scroll > table {
  display: table;
  box-sizing: border-box;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100%;
  table-layout: fixed;
}
.och-preview-table-scroll :is(colgroup, col, td, th) {
  width: auto !important;
  min-width: 0 !important;
}
.och-preview-table-scroll :is(td, th) {
  padding-inline: clamp(3px, 1vw, 10px);
  white-space: normal;
  overflow-wrap: anywhere;
}
.och-preview-body pre { max-width: 100%; overflow-x: auto; }
@media (max-width: 760px) {
  .och-dialog[open], .och-dialog.is-wide-reading[open] {
    inset: 0;
    width: 100%;
    height: 100dvh;
    margin: 0;
    border: 0;
    border-radius: 0;
  }
  .och-dialog[open] > header { padding-inline: 16px; }
  .och-dialog[open] > .och-preview-content, .och-dialog.is-wide-reading[open] > .och-preview-content {
    padding: 18px 16px max(24px, env(safe-area-inset-bottom));
  }
  .och-dialog[open] .och-preview-toolbar .och-preview-expand { display: none; }
}
@media (pointer: coarse) {
  .och-dialog[open] .och-preview-toolbar > button { min-width: 44px; height: 44px; }
}
