.ofv-root {
  --ofv-bg: #f3f4f6;
  --ofv-surface: #ffffff;
  --ofv-surface-muted: #f8fafc;
  --ofv-text: #111827;
  --ofv-text-muted: #475569;
  --ofv-border: #d1d5db;
  --ofv-button-hover: #eef2f7;
  --ofv-highlight: #fde68a;
  box-sizing: border-box;
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--ofv-bg);
  color: var(--ofv-text);
  border: 1px solid var(--ofv-border);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ofv-theme-dark {
  --ofv-bg: #111827;
  --ofv-surface: #1f2937;
  --ofv-surface-muted: #273449;
  --ofv-text: #f9fafb;
  --ofv-text-muted: #cbd5e1;
  --ofv-border: #374151;
  --ofv-button-hover: #334155;
  --ofv-highlight: #92400e;
}

.ofv-root *,
.ofv-root *::before,
.ofv-root *::after {
  box-sizing: border-box;
}

.ofv-root [hidden],
.ofv-root .ofv-pdf-summary[aria-hidden="true"],
.ofv-root .ofv-sheet-summary[aria-hidden="true"],
.ofv-root .ofv-presentation-summary[aria-hidden="true"],
.ofv-root .ofv-media-info[aria-hidden="true"],
.ofv-root .ofv-image-info[aria-hidden="true"],
.ofv-root .ofv-drawing-summary[aria-hidden="true"],
.ofv-root .ofv-cad-summary[aria-hidden="true"],
.ofv-root .ofv-asset-summary[aria-hidden="true"],
.ofv-root .ofv-asset-download[aria-hidden="true"],
.ofv-root .ofv-gis-summary[aria-hidden="true"],
.ofv-root .ofv-archive-summary[aria-hidden="true"],
.ofv-root .ofv-archive-info[aria-hidden="true"],
.ofv-root .ofv-archive-probe-meta[aria-hidden="true"],
.ofv-root .ofv-epub-meta[aria-hidden="true"],
.ofv-root .ofv-xps-summary[aria-hidden="true"],
.ofv-root .ofv-sqlite-summary[aria-hidden="true"],
.ofv-root .ofv-wasm-summary[aria-hidden="true"],
.ofv-root .ofv-data-summary[aria-hidden="true"],
.ofv-root .ofv-data-note[aria-hidden="true"],
.ofv-root .ofv-font-status[aria-hidden="true"],
.ofv-root .ofv-font-info[aria-hidden="true"],
.ofv-root .ofv-model-measure[aria-hidden="true"],
.ofv-root .ofv-model-materials[aria-hidden="true"],
.ofv-root .ofv-details[aria-hidden="true"],
.ofv-root .ofv-table-scroll[aria-hidden="true"] {
  display: none !important;
}

.ofv-host {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 160px;
  overflow: hidden;
}

.ofv-viewport {
  container-type: inline-size;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--ofv-bg);
  color: var(--ofv-text);
}

.ofv-toolbar {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 42px;
  padding: 6px 8px;
  border-bottom: 1px solid var(--ofv-border);
  background: var(--ofv-surface);
  color: var(--ofv-text);
}

.ofv-toolbar button,
.ofv-toolbar input {
  max-width: 100%;
  min-height: 30px;
  border: 1px solid var(--ofv-border);
  border-radius: 6px;
  padding: 0 10px;
  background: var(--ofv-surface-muted);
  color: var(--ofv-text);
  font: inherit;
}

.ofv-toolbar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 0 1 auto;
  min-width: 0;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ofv-toolbar-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
}

.ofv-toolbar-icon svg {
  display: block;
  width: 1em;
  height: 1em;
}

.ofv-toolbar-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ofv-react-toolbar,
.ofv-vue-toolbar,
.ofv-vue-toolbar-content {
  display: contents;
}

.ofv-toolbar button:hover {
  background: var(--ofv-button-hover);
}

.ofv-toolbar button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.ofv-toolbar button:focus-visible,
.ofv-image-controls button:focus-visible,
.ofv-tabs button:focus-visible,
.ofv-code-action:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.ofv-toolbar-queue {
  flex: 0 0 auto;
  min-width: 42px;
  color: var(--ofv-text-muted);
  font-size: 13px;
  text-align: center;
}

.ofv-toolbar-search {
  display: flex;
  flex: 1 1 180px;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  min-width: 0;
}

.ofv-toolbar-search input {
  flex: 1 1 120px;
  width: min(160px, 100%);
  min-width: 0;
}

.ofv-toolbar-search-count {
  flex: 0 0 auto;
  min-width: 24px;
  color: var(--ofv-text-muted);
  font-size: 13px;
}

.ofv-search-match {
  border-radius: 2px;
  background: var(--ofv-highlight);
  color: inherit;
}

.ofv-print-frame {
  position: fixed;
  right: 0;
  bottom: 0;
  width: 0;
  height: 0;
  border: 0;
  visibility: hidden;
}

.ofv-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ofv-status {
  position: absolute;
  z-index: 2;
  inset: 12px auto auto 12px;
  max-width: calc(100% - 24px);
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(17, 24, 39, 0.82);
  color: #fff;
  font-size: 13px;
}

.ofv-media {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
}

.ofv-image-viewer {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  background: var(--ofv-bg);
}

.ofv-image-controls {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 40px;
  padding: 6px 8px;
  border-bottom: 1px solid var(--ofv-border);
  background: var(--ofv-surface);
  color: var(--ofv-text);
}

.ofv-image-controls button {
  flex: 0 1 auto;
  max-width: 100%;
  min-width: 0;
  min-height: 28px;
  border: 1px solid var(--ofv-border);
  border-radius: 6px;
  padding: 0 10px;
  background: var(--ofv-surface-muted);
  color: var(--ofv-text);
  font: inherit;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ofv-image-controls button:hover {
  background: var(--ofv-button-hover);
}

.ofv-image-zoom {
  flex: 0 0 auto;
  min-width: 48px;
  color: var(--ofv-text-muted);
  font-size: 13px;
  text-align: center;
}

.ofv-image-stage {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  min-height: min(320px, 55vh);
  min-width: 0;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
}

.ofv-image-stage.is-dragging {
  cursor: grabbing;
}

.ofv-image-content {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  transform-origin: center;
  transition: transform 120ms ease;
  will-change: transform;
  user-select: none;
}

.ofv-image-stage.is-dragging .ofv-image-content {
  transition: none;
}

.ofv-image-info {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 8px 14px;
  max-width: 100%;
  min-width: 0;
  padding: 8px 10px;
  border-top: 1px solid var(--ofv-border);
  background: var(--ofv-surface);
  color: var(--ofv-text-muted);
  font-size: 12px;
}

.ofv-image-info-item {
  display: inline-flex;
  gap: 5px;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
}

.ofv-image-info-item strong {
  color: var(--ofv-text);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.ofv-text {
  min-height: 100%;
  margin: 0;
  padding: 16px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  background: var(--ofv-surface);
  color: var(--ofv-text);
}

.ofv-pdf-viewer {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  background: #6b7280;
}

.ofv-pdf-summary {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 8px 14px;
  min-width: 0;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  background: var(--ofv-surface);
  color: var(--ofv-text-muted);
  font-size: 12px;
}

.ofv-pdf-summary > span {
  display: inline-flex;
  gap: 5px;
  min-width: 0;
}

.ofv-pdf-summary strong {
  color: var(--ofv-text);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.ofv-pdf {
  flex: 1 1 auto;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 100%;
  padding: 16px;
  overflow-x: hidden;
  overflow-y: auto;
  background: #6b7280;
}

.ofv-pdf-page {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.28);
}

.ofv-audio {
  width: min(520px, calc(100% - 32px));
  padding: 20px;
  border-radius: 8px;
  background: var(--ofv-surface);
  color: var(--ofv-text);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.16);
}

.ofv-audio-title {
  margin-bottom: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

.ofv-audio audio {
  width: 100%;
}

.ofv-media-info {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  min-width: 0;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--ofv-border);
  color: var(--ofv-text-muted);
  font-size: 12px;
}

.ofv-media-info-item {
  display: inline-flex;
  gap: 5px;
  min-width: 0;
}

.ofv-media-info-item strong {
  color: var(--ofv-text);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.ofv-video-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  background: #000;
}

.ofv-video-stage {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  overflow: hidden;
  position: relative;
}

.ofv-video-container .ofv-media-info {
  margin-top: 0;
  border-top-color: rgba(255, 255, 255, 0.16);
  background: var(--ofv-surface);
}

.ofv-fallback {
  width: min(420px, calc(100% - 32px));
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 20px;
  border-radius: 8px;
  background: var(--ofv-surface);
  color: var(--ofv-text);
  text-align: center;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.16);
}

.ofv-fallback span {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ofv-text-muted);
}

.ofv-fallback-meta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 10px;
  margin: 0;
  color: var(--ofv-text);
  font-size: 12px;
  line-height: 1.4;
  text-align: left;
}

.ofv-fallback-meta dt {
  margin: 0;
  color: var(--ofv-text-muted);
  font-weight: 500;
}

.ofv-fallback-meta dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.ofv-fallback a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
}

.ofv-panel {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 100%;
  padding: 16px;
  overflow: auto;
  background: var(--ofv-surface-muted);
  color: var(--ofv-text);
}

.ofv-section {
  min-width: 0;
  overflow-wrap: anywhere;
  margin: 0 0 16px;
  padding: 14px;
  border: 1px solid var(--ofv-border);
  border-radius: 8px;
  background: var(--ofv-surface);
}

.ofv-section h3 {
  margin: 0 0 12px;
  font-size: 15px;
}

.ofv-section p {
  margin: 0 0 10px;
  line-height: 1.6;
}

.ofv-meta-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--ofv-border);
  font-size: 13px;
}

.ofv-meta-row span {
  color: var(--ofv-text-muted);
}

.ofv-meta-row strong {
  overflow-wrap: anywhere;
}

.ofv-office {
  --ofv-office-zoom: 1;
  min-width: 0;
  max-width: 100%;
}

.ofv-document {
  overflow-wrap: anywhere;
  font-size: calc(14px * var(--ofv-office-zoom, 1));
  line-height: 1.7;
}

.ofv-document img {
  max-width: 100%;
  height: auto;
}

.ofv-document-extra {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.6;
}

.ofv-office-conversion {
  border-style: dashed;
}

.ofv-office-conversion > p:first-of-type {
  margin-top: 0;
  color: var(--ofv-text);
  line-height: 1.7;
}

.ofv-office-conversion > p:first-of-type strong {
  color: #f59e0b;
}

.ofv-office-binary-meta {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 6px 12px;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid var(--ofv-border);
  border-radius: 6px;
  background: var(--ofv-surface-muted);
  font-size: 13px;
}

.ofv-office-binary-meta dt {
  color: var(--ofv-text-muted);
  font-weight: 600;
}

.ofv-office-binary-meta dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.ofv-office-binary-fragments {
  margin-top: 14px;
}

.ofv-office-binary-fragments h4 {
  margin: 0 0 10px;
  color: var(--ofv-text);
  font-size: 14px;
}

.ofv-office-binary-empty {
  margin: 14px 0 0;
  padding: 12px;
  border: 1px dashed var(--ofv-border);
  border-radius: 6px;
  background: var(--ofv-surface-muted);
  color: var(--ofv-text-muted);
  line-height: 1.6;
}

.ofv-docx-document {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: auto;
  color: #111827;
}

.ofv-docx-document .ofv-docx-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 24px;
  overflow: hidden;
  background: transparent;
  --ofv-docx-scale: 1;
  --ofv-docx-page-width: 794px;
}

.ofv-docx-page-frame {
  flex: 0 0 auto;
  width: min(100%, calc(var(--ofv-docx-page-width) * var(--ofv-docx-scale) * var(--ofv-office-zoom, 1)));
  max-width: 100%;
  min-width: 0;
  position: relative;
  overflow: visible;
}

.ofv-docx-document section.ofv-docx {
  box-sizing: border-box;
  flex: 0 0 auto;
  max-width: none;
  min-width: auto;
  background: #fff;
  color: #111827;
  overflow: visible;
  overflow-wrap: normal;
  transform: scale(calc(var(--ofv-docx-scale) * var(--ofv-office-zoom, 1)));
  transform-origin: top left;
}

.ofv-docx-document section.ofv-docx > section,
.ofv-docx-document section.ofv-docx .docx,
.ofv-docx-document section.ofv-docx .docx-wrapper {
  background: #fff;
}

.ofv-docx-document section.ofv-docx img,
.ofv-docx-document section.ofv-docx svg,
.ofv-docx-document section.ofv-docx canvas,
.ofv-docx-document section.ofv-docx video {
  max-width: 100%;
  height: auto;
}

.ofv-docx-document section.ofv-docx table {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.ofv-docx-fallback-note {
  margin: 0 0 12px;
  padding: 8px 10px;
  border: 1px solid var(--ofv-border);
  border-radius: 6px;
  background: var(--ofv-surface-muted);
  color: var(--ofv-text-muted);
  font-size: 13px;
}

.ofv-docx-textbox-layout {
  display: grid;
  grid-template-columns: minmax(180px, 0.34fr) minmax(0, 1fr);
  gap: 22px;
  width: min(100%, 920px);
  margin: 0 auto;
  padding: 38px;
  border: 1px solid var(--ofv-border);
  background: #fff;
  color: #111827;
  box-shadow: 0 10px 32px rgb(15 23 42 / 10%);
}

.ofv-docx-textbox-page {
  position: relative;
  width: min(100%, var(--ofv-docx-textbox-page-width, 595pt));
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--ofv-border);
  background: #fff;
  color: #111827;
  box-shadow: 0 10px 32px rgb(15 23 42 / 10%);
}

.ofv-docx-textbox-page-has-sidebar::before {
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--ofv-docx-textbox-sidebar-width, 180pt);
  background: var(--ofv-docx-textbox-sidebar-bg, #1f1c34);
  content: "";
}

.ofv-docx-textbox-page-flow-layout {
  display: grid;
  grid-template-columns: var(--ofv-docx-textbox-sidebar-width, 180pt) minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

.ofv-docx-textbox-page-flow-layout::before {
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--ofv-docx-textbox-sidebar-width, 180pt);
  background: var(--ofv-docx-textbox-sidebar-bg, #1f1c34);
  content: "";
}

.ofv-docx-textbox-page-flow-sidebar,
.ofv-docx-textbox-page-flow-main {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  min-width: 0;
}

.ofv-docx-textbox-page-flow-sidebar {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 28pt;
  padding: 36pt 22pt 32pt;
  color: #fff;
}

.ofv-docx-textbox-page-flow-main {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 24pt;
  padding: 36pt 36pt 38pt 26pt;
  background: #fff;
  color: #111827;
}

.ofv-docx-textbox-page-flow-layout .ofv-docx-textbox-block-filled {
  background: transparent;
  color: inherit;
}

.ofv-docx-textbox-page-flow-layout .ofv-docx-textbox-block h3 {
  margin-bottom: 8pt;
}

.ofv-docx-textbox-page-flow-sidebar .ofv-docx-textbox-block h3 {
  color: #fff;
  font-size: 18px;
  line-height: 1.35;
}

.ofv-docx-textbox-page-flow-sidebar .ofv-docx-textbox-block p {
  color: #fff;
  font-size: 13.5px;
  line-height: 1.72;
}

.ofv-docx-textbox-page-flow-sidebar .ofv-docx-textbox-block + .ofv-docx-textbox-block {
  padding-top: 22pt;
  border-top: 1px solid rgb(255 255 255 / 65%);
}

.ofv-docx-textbox-page-flow-sidebar .ofv-docx-textbox-block:first-child h3 {
  font-size: 23px;
  line-height: 1.25;
}

.ofv-docx-textbox-page-flow-sidebar .ofv-docx-textbox-block:first-child p {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
}

.ofv-docx-textbox-page-flow-main .ofv-docx-textbox-block h3 {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #111827;
  font-size: 20px;
  line-height: 1.35;
}

.ofv-docx-textbox-page-flow-main .ofv-docx-textbox-block h3::before {
  display: inline-block;
  flex: 0 0 auto;
  width: 15px;
  height: 22px;
  background: #303241;
  clip-path: polygon(0 0, 45% 0, 100% 50%, 45% 100%, 0 100%, 55% 50%);
  content: "";
}

.ofv-docx-textbox-page-flow-main .ofv-docx-textbox-block p {
  color: #111827;
  font-size: 14px;
  line-height: 1.78;
}

.ofv-docx-textbox-page-flow-main .ofv-docx-textbox-block p + p {
  margin-top: 4px;
}

.ofv-docx-textbox-page-flow-main .ofv-docx-textbox-block + .ofv-docx-textbox-block {
  padding-top: 15pt;
  border-top: 1px solid #c9c9cf;
}

.ofv-docx-textbox-section-skills p {
  position: relative;
  padding-left: 18px;
}

.ofv-docx-textbox-section-skills p::before {
  position: absolute;
  top: 0.72em;
  left: 2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentcolor;
  content: "";
}

.ofv-docx-textbox-section-education p,
.ofv-docx-textbox-section-work p {
  font-weight: 700;
}

.ofv-docx-textbox-continuation-flow-layout .ofv-docx-textbox-page-flow-sidebar {
  justify-content: flex-start;
  gap: 18pt;
  padding: 52pt 24pt 32pt;
}

.ofv-docx-textbox-continuation-flow-layout .ofv-docx-textbox-page-flow-main {
  justify-content: flex-start;
  gap: 20pt;
  padding-top: 52pt;
}

.ofv-docx-textbox-continuation-flow-layout .ofv-docx-textbox-page-flow-sidebar .ofv-docx-textbox-block {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.ofv-docx-textbox-continuation-flow-layout .ofv-docx-textbox-page-flow-sidebar .ofv-docx-textbox-block h3 {
  margin-bottom: 10pt;
  font-size: 17px;
  line-height: 1.3;
}

.ofv-docx-textbox-continuation-flow-layout .ofv-docx-textbox-page-flow-sidebar .ofv-docx-textbox-block p {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.78;
}

.ofv-docx-textbox-continuation-flow-layout .ofv-docx-textbox-page-flow-main .ofv-docx-textbox-section-heading h3,
.ofv-docx-textbox-continuation-flow-layout .ofv-docx-textbox-page-flow-main .ofv-docx-textbox-block h3 {
  width: 100%;
  padding-bottom: 4pt;
  border-bottom: 2px solid #303241;
}

.ofv-docx-textbox-continuation-flow-layout .ofv-docx-textbox-page-flow-main .ofv-docx-textbox-block h3::before {
  flex: 0 0 auto;
}

.ofv-docx-textbox-continuation-flow-layout .ofv-docx-textbox-page-flow-main .ofv-docx-textbox-section-heading {
  margin-bottom: 2pt;
}

.ofv-docx-textbox-continuation-flow-layout .ofv-docx-textbox-page-flow-main .ofv-docx-textbox-section-heading h3 {
  font-size: 18px;
}

.ofv-docx-textbox-continuation-flow-layout .ofv-docx-textbox-page-flow-main .ofv-docx-textbox-block p {
  font-size: 13px;
  line-height: 2.05;
}

.ofv-docx-textbox-continuation-flow-layout .ofv-docx-textbox-page-flow-main .ofv-docx-textbox-block p + p {
  margin-top: 5px;
}

.ofv-docx-textbox-continuation-flow-layout .ofv-docx-textbox-page-flow-main .ofv-docx-textbox-block:only-child {
  min-height: 0;
}

.ofv-docx-textbox-page-block,
.ofv-docx-textbox-page-flow {
  position: absolute;
  z-index: 1;
  box-sizing: border-box;
}

.ofv-docx-textbox-page-block {
  overflow: hidden;
}

.ofv-docx-textbox-page-title-block h3 {
  margin-bottom: 8px;
  font-size: 24px;
  line-height: 1.15;
}

.ofv-docx-textbox-page-title-block p {
  font-size: 13px;
  line-height: 1.45;
}

.ofv-docx-textbox-page-filled-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8pt 12pt;
  background: var(--ofv-docx-textbox-fill, #303241);
  color: #fff;
}

.ofv-docx-textbox-page-filled-block h3,
.ofv-docx-textbox-page-filled-block p {
  color: inherit;
}

.ofv-docx-textbox-page-has-sidebar .ofv-docx-textbox-page-sidebar-block:not(.ofv-docx-textbox-page-filled-block),
.ofv-docx-textbox-page-has-sidebar .ofv-docx-textbox-page-sidebar-flow .ofv-docx-textbox-flow-block,
.ofv-docx-textbox-page-has-sidebar .ofv-docx-textbox-page-sidebar-flow .ofv-docx-textbox-flow-block h3,
.ofv-docx-textbox-page-has-sidebar .ofv-docx-textbox-page-sidebar-flow .ofv-docx-textbox-flow-block p {
  color: #fff;
}

.ofv-docx-textbox-page-has-sidebar .ofv-docx-textbox-page-sidebar-flow .ofv-docx-textbox-flow-block h3 {
  border-bottom-color: rgb(255 255 255 / 65%);
}

.ofv-docx-textbox-page-main-flow .ofv-docx-textbox-flow-block {
  margin-bottom: 14px;
}

.ofv-docx-textbox-page-main-flow .ofv-docx-textbox-flow-block h3 {
  padding-bottom: 5px;
  border-bottom: 3px solid #303241;
}

.ofv-docx-textbox-page-sidebar-flow .ofv-docx-textbox-flow-block {
  margin-bottom: 14px;
}

.ofv-docx-textbox-sidebar,
.ofv-docx-textbox-main {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 16px;
}

.ofv-docx-textbox-block {
  min-width: 0;
  break-inside: avoid;
}

.ofv-docx-textbox-sidebar-block.ofv-docx-textbox-block-filled {
  padding: 16px;
  background: var(--ofv-docx-textbox-fill, #303241);
  color: #fff;
}

.ofv-docx-textbox-block h3 {
  margin: 0 0 10px;
  color: inherit;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
}

.ofv-docx-textbox-main .ofv-docx-textbox-block h3 {
  padding-bottom: 6px;
  border-bottom: 3px solid #303241;
}

.ofv-docx-textbox-main-block.ofv-docx-textbox-block-filled {
  padding: 0;
  background: transparent;
  color: #111827;
}

.ofv-docx-textbox-main-block.ofv-docx-textbox-block-filled h3 {
  margin-bottom: 10px;
  padding: 10px 14px;
  border-bottom: 0;
  background: var(--ofv-docx-textbox-fill, #303241);
  color: #fff;
}

.ofv-docx-textbox-main-block.ofv-docx-textbox-block-filled p {
  padding: 0 14px;
}

.ofv-docx-textbox-block p {
  margin: 0 0 7px;
  color: inherit;
  font-size: 13px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.ofv-docx-textbox-block p:last-child {
  margin-bottom: 0;
}

.ofv-root.ofv-theme-dark .ofv-docx-document {
  color-scheme: light;
}

.ofv-details {
  margin-top: 12px;
}

.ofv-tabs {
  display: flex;
  flex-wrap: wrap;
  min-width: 0;
  gap: 8px;
  margin-bottom: 12px;
}

.ofv-tabs button {
  max-width: 100%;
  min-width: 0;
  min-height: 32px;
  border: 1px solid var(--ofv-border);
  border-radius: 6px;
  padding: 0 10px;
  background: var(--ofv-surface);
  color: var(--ofv-text);
  cursor: pointer;
  overflow: hidden;
  overflow-wrap: anywhere;
  text-overflow: ellipsis;
}

.ofv-tabs button.is-active {
  border-color: #2563eb;
  background: #dbeafe;
  color: #1e3a8a;
}

.ofv-root.ofv-theme-dark .ofv-tabs button.is-active {
  border-color: #60a5fa;
  background: #1e3a8a;
  color: #eff6ff;
}

.ofv-sheet h3 {
  margin: 0 0 10px;
  overflow-wrap: anywhere;
}

.ofv-sheet {
  font-size: calc(13px * var(--ofv-office-zoom, 1));
}

.ofv-sheet-summary {
  margin: 0 0 10px;
  color: var(--ofv-text-muted);
  font-size: 13px;
}

.ofv-office-package-note {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--ofv-border);
  border-radius: 6px;
  background: var(--ofv-surface-muted);
  color: var(--ofv-text);
  font-size: 13px;
  line-height: 1.55;
}

.ofv-iwork-meta {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
}

.ofv-iwork-meta > strong {
  font-size: 13px;
}

.ofv-iwork-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px 16px;
}

.ofv-office-package-list {
  display: grid;
  gap: 4px;
  max-height: 320px;
  margin: 12px 0 0;
  overflow: auto;
  padding: 12px 12px 12px 30px;
  border: 1px solid var(--ofv-border);
  border-radius: 6px;
  background: var(--ofv-surface);
  font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.ofv-sheet-window {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-width: 0;
  margin: 0 0 10px;
  padding: 8px;
  border: 1px solid var(--ofv-border);
  border-radius: 6px;
  background: var(--ofv-surface-muted);
}

.ofv-sheet-window-note {
  flex: 1 1 260px;
  min-width: 0;
  color: var(--ofv-text-muted);
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.ofv-sheet-window button {
  flex: 0 1 auto;
  max-width: 100%;
  min-width: 0;
  min-height: 30px;
  border: 1px solid var(--ofv-border);
  border-radius: 6px;
  padding: 0 10px;
  background: var(--ofv-surface);
  color: var(--ofv-text);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.ofv-sheet-window button:hover {
  background: var(--ofv-button-hover);
}

.ofv-sheet-window button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.ofv-table-scroll {
  max-width: 100%;
  max-height: min(680px, 72vh);
  overflow: auto;
  border: 1px solid var(--ofv-border);
  background: var(--ofv-surface);
}

.ofv-table-scroll table {
  border-collapse: collapse;
  min-width: 100%;
  table-layout: fixed;
}

.ofv-table-scroll td,
.ofv-table-scroll th {
  position: relative;
  border: 1px solid var(--ofv-border);
  padding: 5px 24px 5px 8px;
  white-space: normal;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-overflow: clip;
  font-size: inherit;
  line-height: 1.45;
  vertical-align: middle;
}

.ofv-cell-formula {
  background-image: linear-gradient(135deg, #f59e0b 0 8px, transparent 8px);
  background-repeat: no-repeat;
}

.ofv-cell-merged {
  white-space: normal;
}

.ofv-cell-multiline {
  white-space: pre-wrap;
  word-break: break-word;
  overflow: visible;
  text-overflow: clip;
}

.ofv-cell-image {
  padding: 6px;
  vertical-align: middle;
}

.ofv-workbook-image {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  margin: 2px 0;
}

.ofv-workbook-image img {
  display: block;
  max-width: 100%;
  max-height: 220px;
  object-fit: contain;
}

.ofv-column-resize-handle {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  width: 7px;
  height: 100%;
  cursor: col-resize;
  touch-action: none;
}

.ofv-column-resize-handle::after {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 3px;
  width: 1px;
  border-radius: 999px;
  background: transparent;
  content: "";
}

.ofv-column-resize-handle:hover::after,
.ofv-column-resize-handle:active::after {
  background: #2563eb;
}

.ofv-formula-list ul {
  margin: 8px 0 0;
  padding-left: 18px;
  font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.ofv-chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 12px;
}

.ofv-chart-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--ofv-border);
  border-radius: 8px;
  background: var(--ofv-surface);
}

.ofv-chart-card header {
  display: grid;
  gap: 4px;
  padding: 12px 14px 0;
}

.ofv-chart-card h4 {
  margin: 0;
  overflow: hidden;
  color: var(--ofv-text);
  font-size: 14px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ofv-chart-card header span {
  color: var(--ofv-text-muted);
  font-size: 12px;
}

.ofv-chart-svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 180px;
  padding: 8px 10px;
}

.ofv-chart-axis {
  stroke: var(--ofv-border);
  stroke-width: 1.5;
}

.ofv-chart-label {
  fill: var(--ofv-text-muted);
  font: 12px/1 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.ofv-chart-data {
  margin: 0;
  padding: 0 14px 12px;
  color: var(--ofv-text-muted);
  font-size: 13px;
}

.ofv-chart-data ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.ofv-epub-meta {
  display: grid;
  gap: 8px;
  min-width: 0;
  max-width: 520px;
}

.ofv-epub-reader {
  max-width: 100%;
  max-height: min(760px, 74vh);
  min-width: 0;
  overflow: auto;
  padding: 28px;
  border: 1px solid var(--ofv-border);
  border-radius: 8px;
  background: var(--ofv-surface);
  color: var(--ofv-text);
}

.ofv-epub-chapter {
  max-width: 760px;
  min-width: 0;
  margin: 0 auto 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--ofv-border);
}

.ofv-epub-chapter:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.ofv-epub-chapter h3 {
  margin: 0 0 18px;
  font-size: 18px;
}

.ofv-epub-content {
  font-family: Georgia, "Times New Roman", serif;
  font-size: calc(16px * var(--ofv-epub-zoom, 1));
  line-height: 1.75;
}

.ofv-epub-content p {
  margin: 0 0 1em;
}

.ofv-epub-content img,
.ofv-epub-content svg {
  max-width: 100%;
  height: auto;
}

.ofv-epub-content a {
  color: #2563eb;
}

.ofv-root.ofv-theme-dark .ofv-epub-content a {
  color: #60a5fa;
}

.ofv-xps-meta {
  display: grid;
  gap: 8px;
  max-width: 520px;
}

.ofv-xps-pages {
  display: grid;
  gap: 18px;
  max-width: 100%;
  max-height: min(760px, 74vh);
  min-width: 0;
  overflow: auto;
  padding: 20px;
  border: 1px solid var(--ofv-border);
  border-radius: 8px;
  background: var(--ofv-surface-muted);
}

.ofv-xps-page {
  width: min(100%, 840px);
  max-width: 840px;
  min-width: 0;
  margin: 0 auto;
  padding: 22px;
  border: 1px solid var(--ofv-border);
  border-radius: 6px;
  background: var(--ofv-surface);
  box-shadow: var(--ofv-shadow);
}

.ofv-xps-page h4 {
  margin: 0 0 4px;
  font-size: 16px;
}

.ofv-xps-page > span {
  display: block;
  margin-bottom: 14px;
  color: var(--ofv-text-muted);
  font: 12px/1.4 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.ofv-xps-canvas {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 68vh;
  margin: 12px 0 16px;
  border: 1px solid var(--ofv-border);
  border-radius: 4px;
  background: #fff;
  color-scheme: light;
}

.ofv-xps-text p {
  margin: 0 0 8px;
  line-height: 1.7;
}

.ofv-slide {
  min-width: 0;
  min-height: 160px;
  padding: 18px;
  border: 1px solid var(--ofv-border);
  border-radius: 8px;
  background: var(--ofv-surface);
  font-size: calc(14px * var(--ofv-office-zoom, 1));
  overflow-wrap: anywhere;
}

.ofv-pptx-viewer {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 160px;
  overflow: auto;
  background: var(--ofv-bg);
}

.ofv-pptx-viewer > div[data-slide-index] {
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
  overflow: auto;
  overflow-wrap: anywhere;
}

.ofv-pptx-viewer svg {
  width: auto;
  height: auto;
  fill: initial;
  stroke: initial;
  stroke-linecap: initial;
  stroke-linejoin: initial;
  stroke-width: initial;
}

.ofv-presentation-summary {
  display: grid;
  min-width: 0;
  gap: 12px;
}

.ofv-presentation-summary > p {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--ofv-border);
  border-radius: 6px;
  background: var(--ofv-surface-muted);
}

.ofv-presentation-summary strong {
  color: var(--ofv-text);
  font-size: 13px;
}

.ofv-presentation-summary span {
  color: var(--ofv-text-muted);
  font-size: 12px;
  line-height: 1.45;
}

.ofv-presentation-slides {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ofv-presentation-slides li {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--ofv-border);
  border-radius: 6px;
  background: var(--ofv-surface);
}

.ofv-presentation-slides p {
  margin: 0;
  overflow: hidden;
  color: var(--ofv-text-muted);
  font-size: 12px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}



.ofv-slide-image {
  margin: 12px 0 0;
}

.ofv-slide-image > img {
  display: block;
  max-width: 100%;
  max-height: 360px;
  object-fit: contain;
}

.ofv-slide-image figcaption {
  margin-top: 6px;
  color: var(--ofv-text-muted);
  font-size: 12px;
}

.ofv-text-block {
  max-width: 100%;
  max-height: 520px;
  overflow: auto;
  margin: 0;
  padding: 12px;
  border-radius: 6px;
  background: #0f172a;
  color: #e5e7eb;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: calc(13px * var(--ofv-email-zoom, var(--ofv-office-zoom, 1)));
  line-height: 1.6;
}

.ofv-font-preview {
  display: grid;
  gap: 10px;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid var(--ofv-border);
  border-radius: 8px;
  background: var(--ofv-surface-muted);
}

.ofv-font-preview strong {
  font-size: 13px;
}

.ofv-font-sample {
  font-size: 28px;
  line-height: 1.25;
  word-break: break-word;
}

.ofv-font-pangram {
  color: var(--ofv-text-muted);
  font-size: 16px;
  line-height: 1.5;
  word-break: break-word;
}

.ofv-font-status {
  color: var(--ofv-text-muted);
  font-size: 12px;
}

.ofv-font-info {
  display: grid;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--ofv-border);
}

.ofv-font-tables {
  max-width: 100%;
  overflow: auto;
}

.ofv-font-tables strong {
  display: block;
  margin: 0 0 8px;
}

.ofv-font-tables table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 13px;
}

.ofv-font-tables th,
.ofv-font-tables td {
  padding: 8px;
  border-bottom: 1px solid var(--ofv-border);
  text-align: left;
  vertical-align: top;
}

.ofv-font-tables th {
  color: var(--ofv-text-muted);
  font-weight: 600;
}

.ofv-font-tables td {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.ofv-wasm-preview {
  display: grid;
  gap: 12px;
  margin: 14px 0;
}

.ofv-wasm-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px 16px;
}

.ofv-wasm-sections {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.ofv-wasm-sections th,
.ofv-wasm-sections td {
  padding: 8px;
  border-bottom: 1px solid var(--ofv-border);
  text-align: left;
  vertical-align: top;
}

.ofv-wasm-sections th {
  color: var(--ofv-text-muted);
  font-weight: 600;
}

.ofv-wasm-error {
  color: #b91c1c;
}

.ofv-wasm-list ul {
  margin: 8px 0 0;
  padding-left: 18px;
  font: 13px/1.7 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.ofv-psd-preview {
  display: grid;
  min-width: 0;
}

.ofv-psd-error {
  color: #b91c1c;
}

.ofv-psd-composite {
  display: grid;
  min-width: 0;
}

.ofv-psd-canvas {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(72vh, 920px);
  margin: 0 auto;
  border: 1px solid var(--ofv-border);
  border-radius: 10px;
  background:
    linear-gradient(45deg, #e5e7eb 25%, transparent 25%),
    linear-gradient(-45deg, #e5e7eb 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e5e7eb 75%),
    linear-gradient(-45deg, transparent 75%, #e5e7eb 75%);
  background-color: #f8fafc;
  background-position:
    0 0,
    0 8px,
    8px -8px,
    -8px 0;
  background-size: 16px 16px;
  object-fit: contain;
}

.ofv-sqlite-preview {
  display: grid;
  gap: 12px;
  margin: 14px 0;
}

.ofv-sqlite-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px 16px;
}

.ofv-sqlite-schema,
.ofv-sqlite-data {
  max-width: 100%;
  overflow: auto;
}

.ofv-sqlite-schema strong,
.ofv-sqlite-data > strong {
  display: block;
  margin: 0 0 8px;
}

.ofv-sqlite-schema table,
.ofv-sqlite-data-table table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 13px;
}

.ofv-sqlite-schema th,
.ofv-sqlite-schema td,
.ofv-sqlite-data-table th,
.ofv-sqlite-data-table td {
  padding: 8px;
  border-bottom: 1px solid var(--ofv-border);
  text-align: left;
  vertical-align: top;
}

.ofv-sqlite-schema th,
.ofv-sqlite-data-table th {
  color: var(--ofv-text-muted);
  font-weight: 600;
}

.ofv-sqlite-schema td:last-child {
  max-width: 420px;
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.ofv-sqlite-table-sample {
  min-width: 0;
  margin-top: 10px;
}

.ofv-sqlite-data-table {
  max-width: 100%;
  overflow: auto;
}

.ofv-sqlite-data-table td {
  max-width: 280px;
  overflow-wrap: anywhere;
}

.ofv-sqlite-error,
.ofv-sqlite-empty {
  color: var(--ofv-text-muted);
}

.ofv-data-preview {
  display: grid;
  gap: 12px;
  margin: 14px 0;
}

.ofv-data-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px 16px;
}

.ofv-data-error,
.ofv-data-note {
  color: var(--ofv-text-muted);
}

.ofv-ai-pdf-preview {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.ofv-asset:has(.ofv-ai-pdf-preview .ofv-pdf-page-wrapper) > .ofv-section > h3,
.ofv-asset:has(.ofv-ai-pdf-preview .ofv-pdf-page-wrapper) .ofv-asset-summary,
.ofv-asset:has(.ofv-ai-pdf-preview .ofv-pdf-page-wrapper) .ofv-asset-download,
.ofv-asset:has(.ofv-ai-pdf-preview .ofv-pdf-page-wrapper) .ofv-asset-hex,
.ofv-asset:has(.ofv-ai-pdf-preview .ofv-pdf-page-wrapper) .ofv-data-preview {
  display: none !important;
}

.ofv-ai-pdf-preview .ofv-pdf-viewer {
  min-height: min(720px, 68vh);
  border: 1px solid var(--ofv-border);
  border-radius: 6px;
  background: var(--ofv-surface-muted);
  overflow: hidden;
}

.ofv-data-kv,
.ofv-avro-schema,
.ofv-avro-records,
.ofv-parquet-schema {
  max-width: 100%;
  overflow: auto;
}

.ofv-parquet-records {
  max-width: 100%;
  overflow: auto;
}

.ofv-parquet-schema,
.ofv-parquet-records {
  max-width: 100%;
  overflow: auto;
}

.ofv-data-kv strong,
.ofv-avro-schema > strong,
.ofv-avro-records > strong,
.ofv-parquet-schema > strong,
.ofv-parquet-records > strong {
  display: block;
  margin: 0 0 8px;
}

.ofv-data-kv table,
.ofv-avro-records table,
.ofv-parquet-schema table,
.ofv-parquet-records table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 13px;
}

.ofv-data-kv th,
.ofv-data-kv td,
.ofv-avro-records th,
.ofv-avro-records td,
.ofv-parquet-schema th,
.ofv-parquet-schema td,
.ofv-parquet-records th,
.ofv-parquet-records td {
  padding: 8px;
  border-bottom: 1px solid var(--ofv-border);
  text-align: left;
  vertical-align: top;
}

.ofv-data-kv th,
.ofv-avro-records th {
  width: 180px;
  color: var(--ofv-text-muted);
  font-weight: 600;
}

.ofv-data-kv td,
.ofv-avro-records td,
.ofv-parquet-schema td,
.ofv-parquet-records td {
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.ofv-avro-schema ul {
  margin: 8px 0 0;
  padding-left: 18px;
  font: 13px/1.7 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.ofv-file-list {
  max-width: 100%;
  max-height: 520px;
  overflow: auto;
  margin: 12px 0 0;
  padding-left: 18px;
  font: 13px/1.7 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.ofv-svg-stage {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: min(620px, 70vh);
  border: 1px solid var(--ofv-border);
  border-radius: 8px;
  background: var(--ofv-surface);
  color: var(--ofv-text);
}

.ofv-drawing-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  min-width: 0;
  margin: 0 0 12px;
  padding: 8px 10px;
  border: 1px solid var(--ofv-border);
  border-radius: 6px;
  background: var(--ofv-surface-muted);
  color: var(--ofv-text-muted);
  font-size: 12px;
}

.ofv-drawing-summary > span {
  display: inline-flex;
  gap: 5px;
  min-width: 0;
}

.ofv-drawing-summary strong {
  color: var(--ofv-text);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.ofv-cad-layers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-width: 0;
  margin: 0 0 12px;
  padding: 10px;
  border: 1px solid var(--ofv-border);
  border-radius: 8px;
  background: var(--ofv-surface-muted);
  font-size: 13px;
}

.ofv-cad-layers strong {
  margin-right: 4px;
}

.ofv-cad-layers label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 4px 8px;
  border: 1px solid var(--ofv-border);
  border-radius: 999px;
  background: var(--ofv-surface);
  color: var(--ofv-text-muted);
  cursor: pointer;
}

.ofv-cad-layers input {
  margin: 0;
}

.ofv-cad-summary {
  display: grid;
  gap: 8px;
  min-width: 0;
  max-width: 520px;
  margin: 12px 0;
}

.ofv-cad-types ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 6px 14px;
  min-width: 0;
  margin: 8px 0 0;
  padding-left: 18px;
  font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.ofv-cad-conversion {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid var(--ofv-border);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(20, 184, 166, 0.08)),
    var(--ofv-surface-muted);
  color: var(--ofv-text);
  font-size: 13px;
  line-height: 1.6;
}

.ofv-cad-conversion h4 {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
}

.ofv-cad-conversion ol {
  margin: 0;
  padding-left: 20px;
}

.ofv-cad-conversion li + li {
  margin-top: 6px;
}

.ofv-cad-binary-probe,
.ofv-cad-raw-preview {
  margin-top: 12px;
}

.ofv-cad-probe-list {
  display: grid;
  gap: 4px;
  margin: 10px 0;
  padding-left: 18px;
  color: var(--ofv-text-muted);
  font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.ofv-cad-entities {
  margin-top: 12px;
}

.ofv-dwg-preview {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  min-height: 520px;
  padding: 14px;
  border: 1px solid var(--ofv-border);
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(148, 163, 184, 0.09) 1px, transparent 1px),
    linear-gradient(0deg, rgba(148, 163, 184, 0.09) 1px, transparent 1px),
    #020617;
  background-size: 24px 24px;
  overflow: auto;
}

.ofv-dwg-preview-status {
  position: sticky;
  top: 0;
  z-index: 1;
  width: max-content;
  max-width: 100%;
  padding: 8px 10px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  font-size: 13px;
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.32);
}

.ofv-dwg-preview-status span {
  display: grid;
  gap: 4px;
}

.ofv-dwg-preview-status small {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}

.ofv-dwg-thumbnail {
  display: grid;
  grid-template-columns: minmax(180px, 320px) minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  width: min(100%, 640px);
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.78);
}

.ofv-dwg-thumbnail img,
.ofv-dwg-thumbnail-preview img {
  display: block;
  height: auto;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 6px;
  background: #020617;
  image-rendering: auto;
}

.ofv-dwg-thumbnail img {
  width: 100%;
}

.ofv-dwg-thumbnail figcaption {
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.5;
}

.ofv-dwg-thumbnail-preview {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 420px;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 10px;
  background: #020617;
  overflow: auto;
}

.ofv-dwg-thumbnail-preview img {
  width: min(100%, 1120px);
  margin: 0 auto;
}

.ofv-dwg-thumbnail-preview figcaption {
  max-width: 920px;
  margin: 0 auto;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

.ofv-dwg-preview-svg {
  display: block;
  max-width: none;
  height: auto;
}

.ofv-dwg-preview-frame {
  min-height: 420px;
  overflow: auto;
  background: #020617;
}

.ofv-dwg-preview-frame .ofv-dwg-preview-svg {
  min-height: 420px;
}

@container (max-width: 720px) {
  .ofv-dwg-thumbnail {
    grid-template-columns: 1fr;
  }
}

.ofv-ofd {
  --ofv-ofd-zoom: 1;
  --ofv-ofd-rotation: 0deg;
  height: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: auto;
  background: var(--ofv-bg);
}

.ofv-ofd-pages {
  display: grid;
  gap: 18px;
  width: max-content;
  min-width: 100%;
  margin: 0;
  padding: 16px;
  justify-items: center;
  overscroll-behavior: contain;
}

.ofv-ofd-page {
  width: min(100%, calc(var(--ofv-ofd-page-width, 210mm) * var(--ofv-ofd-zoom)));
  aspect-ratio: var(--ofv-ofd-page-width, 210mm) / var(--ofv-ofd-page-height, 297mm);
  min-width: 0;
  margin: 0;
}

.ofv-ofd.is-ofd-rotated-sideways .ofv-ofd-page {
  width: min(100%, calc(var(--ofv-ofd-page-height, 297mm) * var(--ofv-ofd-zoom)));
  aspect-ratio: var(--ofv-ofd-page-height, 297mm) / var(--ofv-ofd-page-width, 210mm);
}

.ofv-ofd-page svg {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: none;
  border: 1px solid var(--ofv-border);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  transform: rotate(var(--ofv-ofd-rotation));
  transform-origin: center;
}

.ofv-ofd-page svg {
  fill: revert;
  stroke: revert;
  stroke-linecap: revert;
  stroke-linejoin: revert;
  stroke-width: revert;
}

.ofv-model-stage {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 360px;
  background: var(--ofv-bg);
}

.ofv-model-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.ofv-model-message {
  position: absolute;
  z-index: 1;
  top: 12px;
  left: 12px;
  max-width: min(520px, calc(100% - 24px));
  padding: 8px 10px;
  border: 1px solid var(--ofv-border);
  border-radius: 6px;
  background: color-mix(in srgb, var(--ofv-surface) 92%, transparent);
  color: var(--ofv-text);
  font-size: 13px;
  line-height: 1.5;
}

.ofv-model-measure {
  position: absolute;
  z-index: 1;
  top: 12px;
  right: 12px;
  width: max-content;
  min-width: min(180px, calc(100% - 24px));
  max-width: min(260px, calc(100% - 24px));
  padding: 10px 12px;
  border: 1px solid var(--ofv-border);
  border-radius: 6px;
  background: color-mix(in srgb, var(--ofv-surface) 92%, transparent);
  color: var(--ofv-text);
  box-shadow: var(--ofv-shadow);
}

.ofv-model-materials {
  position: absolute;
  z-index: 1;
  top: 190px;
  right: 12px;
  width: max-content;
  min-width: min(180px, calc(100% - 24px));
  max-width: min(260px, calc(100% - 24px));
  padding: 10px 12px;
  border: 1px solid var(--ofv-border);
  border-radius: 6px;
  background: color-mix(in srgb, var(--ofv-surface) 92%, transparent);
  color: var(--ofv-text);
  box-shadow: var(--ofv-shadow);
}

.ofv-model-measure strong {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
}

.ofv-model-materials strong {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
}

.ofv-model-measure dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5px 12px;
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
}

.ofv-model-materials dl {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 5px 12px;
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
}

.ofv-model-measure dt {
  color: var(--ofv-text-muted);
}

.ofv-model-materials dt {
  color: var(--ofv-text-muted);
}

.ofv-model-measure dd {
  margin: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.ofv-model-materials dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  text-align: right;
}

@media (max-width: 640px) {
  .ofv-model-materials {
    top: auto;
    right: 12px;
    bottom: 12px;
  }
}

/* Archive / Zip layout styling */
.ofv-archive {
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.ofv-archive-layout {
  --ofv-archive-sidebar-expanded: 320px;
  --ofv-archive-sidebar-collapsed: 56px;
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-width: 0;
  background: var(--ofv-surface);
  min-height: 360px;
}

.ofv-archive-sidebar {
  width: var(--ofv-archive-sidebar-expanded);
  flex: 0 0 var(--ofv-archive-sidebar-expanded);
  min-width: 0;
  max-width: 100%;
  border-right: 1px solid var(--ofv-border);
  overflow: hidden;
  position: relative;
  z-index: 2;
  color: var(--ofv-text);
  background: var(--ofv-surface-muted);
  transition:
    flex-basis 0.2s ease,
    width 0.2s ease,
    max-width 0.2s ease;
}

.ofv-archive-layout.is-sidebar-collapsed .ofv-archive-sidebar {
  flex-basis: var(--ofv-archive-sidebar-collapsed);
  width: var(--ofv-archive-sidebar-collapsed);
  max-width: var(--ofv-archive-sidebar-collapsed);
}

.ofv-archive-sidebar-panel {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--ofv-surface-muted);
}

.ofv-archive-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--ofv-border);
  font-weight: bold;
  font-size: 14px;
  color: var(--ofv-text);
  background: var(--ofv-surface);
}

.ofv-archive-header-title {
  min-width: 0;
  overflow: hidden;
  opacity: 1;
  text-overflow: ellipsis;
  transition: opacity 0.12s ease;
  white-space: nowrap;
}

.ofv-archive-sidebar-toggle {
  display: inline-flex;
  flex: 0 0 28px;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--ofv-border);
  border-radius: 6px;
  color: var(--ofv-text);
  background: var(--ofv-surface-muted);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.ofv-archive-sidebar-toggle:hover,
.ofv-archive-sidebar-toggle:focus-visible {
  background: var(--ofv-button-hover);
}

.ofv-archive-sidebar-toggle:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.ofv-archive-tree {
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}

.ofv-archive-main {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: auto;
  overscroll-behavior: contain;
  position: relative;
  background: var(--ofv-bg);
}

.ofv-archive-item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 13px;
  font: inherit;
  color: var(--ofv-text);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  user-select: none;
  gap: 8px;
  text-align: left;
  transition: background 0.15s ease;
}

.ofv-archive-layout.is-sidebar-collapsed .ofv-archive-item {
  justify-content: center;
  padding: 10px 0;
  gap: 0;
}

.ofv-archive-item:hover,
.ofv-archive-item:focus-visible {
  background: var(--ofv-button-hover);
}

.ofv-archive-item:focus-visible {
  outline: 2px solid var(--ofv-accent);
  outline-offset: -2px;
}

.ofv-archive-item.is-active {
  background: var(--ofv-button-hover);
  font-weight: bold;
  border-left: 3px solid var(--ofv-text);
  padding-left: 13px;
}

.ofv-archive-layout.is-sidebar-collapsed .ofv-archive-item.is-active {
  padding-left: 0;
  border-left-width: 0;
  box-shadow: inset 3px 0 0 var(--ofv-text);
}

.ofv-archive-item-icon {
  display: inline-flex;
  flex: 0 0 20px;
  align-items: center;
  justify-content: center;
  width: 20px;
  text-align: center;
  font-size: 14px;
}

.ofv-archive-item-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  opacity: 1;
  text-overflow: ellipsis;
  transition: opacity 0.12s ease;
  white-space: nowrap;
}

.ofv-archive-layout.is-sidebar-collapsed .ofv-archive-header {
  justify-content: center;
  padding-right: 0;
  padding-left: 0;
}

.ofv-archive-layout.is-sidebar-collapsed .ofv-archive-header-title,
.ofv-archive-layout.is-sidebar-collapsed .ofv-archive-item-name {
  flex: 0 1 0;
  width: 0;
  opacity: 0;
}

.ofv-archive-layout.is-sidebar-collapsed .ofv-archive-tree {
  overflow: hidden;
}

@container (max-width: 520px) {
  .ofv-archive-layout {
    --ofv-archive-sidebar-expanded: min(280px, 72cqw);
    --ofv-archive-sidebar-collapsed: 48px;
  }

  .ofv-archive-sidebar {
    flex: 0 0 var(--ofv-archive-sidebar-expanded);
    width: var(--ofv-archive-sidebar-expanded);
    max-width: var(--ofv-archive-sidebar-expanded);
    height: 100%;
    min-height: 0;
  }

  .ofv-archive-header {
    min-height: 48px;
    padding: 9px;
  }

  .ofv-archive-main {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    min-height: 0;
  }

  .ofv-archive-info {
    justify-content: flex-start;
    max-width: 100%;
    margin: 0;
    padding: 16px;
  }
}

@container (max-width: 360px) {
  .ofv-archive-layout {
    --ofv-archive-sidebar-expanded: min(248px, 78cqw);
    --ofv-archive-sidebar-collapsed: 44px;
  }

  .ofv-archive-sidebar {
    flex-basis: var(--ofv-archive-sidebar-expanded);
    width: var(--ofv-archive-sidebar-expanded);
    max-width: var(--ofv-archive-sidebar-expanded);
  }

  .ofv-archive-header {
    min-height: 44px;
    padding: 7px;
  }

  .ofv-archive-sidebar-toggle {
    flex-basis: 28px;
    width: 28px;
    height: 28px;
  }

  .ofv-archive-item {
    gap: 6px;
    padding: 7px 10px;
  }

  .ofv-archive-item.is-active {
    padding-left: 7px;
  }

  .ofv-archive-layout.is-sidebar-collapsed .ofv-archive-item.is-active {
    padding-left: 0;
  }
}

.ofv-archive-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--ofv-text-muted);
  font-size: 14px;
  gap: 12px;
}

.ofv-archive-loading-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--ofv-border);
  border-top-color: var(--ofv-text);
  border-radius: 50%;
  animation: ofv-spin 1s linear infinite;
}

@keyframes ofv-spin {
  to { transform: rotate(360deg); }
}

.ofv-archive-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  min-width: 0;
  padding: 40px;
  color: var(--ofv-text);
  max-width: 600px;
  margin: auto;
}

.ofv-archive-info h3 {
  margin: 0 0 16px;
  font-size: 20px;
  border-bottom: 1px solid var(--ofv-border);
  padding-bottom: 8px;
}

.ofv-archive-info-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
}

.ofv-archive-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 12px;
  min-width: 0;
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--ofv-border);
  font-size: 13px;
  line-height: 1.45;
}

.ofv-archive-summary dt {
  margin: 0;
  color: var(--ofv-text-muted);
  font-weight: 600;
}

.ofv-archive-summary dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.ofv-archive-probe-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px 16px;
  margin: 12px 0;
}

.ofv-archive-probe-table {
  margin-top: 12px;
}

/* Email specific styles */
.ofv-email-attachments {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  min-width: 0;
  gap: 8px;
}

.ofv-email-mbox-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px 16px;
  margin-bottom: 12px;
}

.ofv-email-mbox-table {
  margin-top: 8px;
}

.ofv-email-attachment-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  padding: 6px 12px;
  background: var(--ofv-surface-muted);
  border: 1px solid var(--ofv-border);
  border-radius: 6px;
  font-size: 13px;
  color: var(--ofv-text);
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.ofv-email-attachment-item:hover {
  background: var(--ofv-button-hover);
  border-color: var(--ofv-text-muted);
}

.ofv-email-body-iframe {
  width: 100%;
  max-width: 100%;
  border: none;
  border-radius: 4px;
  background: #ffffff;
  box-shadow: inset 0 0 2px rgba(0,0,0,0.05);
}

/* GIS / Map Visualization Styles */
.ofv-gis-viewer {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 320px;
  overflow: hidden;
}

.ofv-gis-summary {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 8px 14px;
  min-width: 0;
  padding: 8px 12px;
  border-bottom: 1px solid var(--ofv-border);
  background: var(--ofv-surface);
  color: var(--ofv-text-muted);
  font-size: 12px;
}

.ofv-gis-summary > span {
  display: inline-flex;
  gap: 5px;
  min-width: 0;
}

.ofv-gis-summary strong {
  color: var(--ofv-text);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.ofv-map-stage {
  flex: 1 1 auto;
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 280px;
  position: relative;
  background: var(--ofv-bg);
  overflow: hidden;
}

.ofv-map-stage .leaflet-container,
.ofv-map-stage.leaflet-container {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 280px;
  background: var(--ofv-bg);
}

.ofv-map-stage .leaflet-pane,
.ofv-map-stage .leaflet-tile,
.ofv-map-stage .leaflet-marker-icon,
.ofv-map-stage .leaflet-marker-shadow,
.ofv-map-stage .leaflet-tile-container,
.ofv-map-stage .leaflet-pane > svg,
.ofv-map-stage .leaflet-pane > canvas,
.ofv-map-stage.leaflet-container .leaflet-pane,
.ofv-map-stage.leaflet-container .leaflet-tile,
.ofv-map-stage.leaflet-container .leaflet-marker-icon,
.ofv-map-stage.leaflet-container .leaflet-marker-shadow,
.ofv-map-stage.leaflet-container .leaflet-tile-container,
.ofv-map-stage.leaflet-container .leaflet-pane > svg,
.ofv-map-stage.leaflet-container .leaflet-pane > canvas {
  position: absolute;
  left: 0;
  top: 0;
}

.ofv-map-stage .leaflet-container,
.ofv-map-stage.leaflet-container {
  overflow: hidden;
}

.ofv-map-stage .leaflet-tile,
.ofv-map-stage .leaflet-marker-icon,
.ofv-map-stage .leaflet-marker-shadow,
.ofv-map-stage.leaflet-container .leaflet-tile,
.ofv-map-stage.leaflet-container .leaflet-marker-icon,
.ofv-map-stage.leaflet-container .leaflet-marker-shadow {
  user-select: none;
  -webkit-user-drag: none;
}

.ofv-map-stage .leaflet-overlay-pane svg,
.ofv-map-stage.leaflet-container .leaflet-overlay-pane svg {
  width: auto;
  height: auto;
  pointer-events: none;
}

.ofv-map-stage .leaflet-interactive,
.ofv-map-stage.leaflet-container .leaflet-interactive {
  pointer-events: auto;
}

.ofv-map-stage .leaflet-map-pane,
.ofv-map-stage.leaflet-container .leaflet-map-pane {
  z-index: 400;
}

.ofv-map-stage .leaflet-tile-pane,
.ofv-map-stage.leaflet-container .leaflet-tile-pane {
  z-index: 200;
}

.ofv-map-stage .leaflet-overlay-pane,
.ofv-map-stage.leaflet-container .leaflet-overlay-pane {
  z-index: 400;
}

.ofv-map-stage .leaflet-shadow-pane,
.ofv-map-stage.leaflet-container .leaflet-shadow-pane {
  z-index: 500;
}

.ofv-map-stage .leaflet-marker-pane,
.ofv-map-stage.leaflet-container .leaflet-marker-pane {
  z-index: 600;
}

.ofv-map-stage .leaflet-tooltip-pane,
.ofv-map-stage.leaflet-container .leaflet-tooltip-pane {
  z-index: 650;
}

.ofv-map-stage .leaflet-popup-pane,
.ofv-map-stage.leaflet-container .leaflet-popup-pane {
  z-index: 700;
}

.ofv-map-stage .leaflet-control,
.ofv-map-stage.leaflet-container .leaflet-control {
  position: relative;
  z-index: 800;
  pointer-events: auto;
}

.ofv-map-empty {
  position: absolute;
  inset: 0;
  z-index: 400;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 24px;
  text-align: center;
  color: var(--ofv-text-muted);
  pointer-events: none;
}

.ofv-map-empty strong {
  color: var(--ofv-text);
  font-size: 14px;
}

.ofv-map-legend {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 450;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: min(280px, calc(100% - 24px));
  padding: 8px 10px;
  border: 1px solid rgba(225, 29, 72, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: #475569;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
  font-size: 12px;
  pointer-events: none;
}

.ofv-map-legend strong {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #111827;
  font-size: 13px;
}

.ofv-map-legend strong::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 4px;
  border-radius: 999px;
  background: #e11d48;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9), 0 0 0 5px rgba(225, 29, 72, 0.24);
}

.ofv-map-stage .ofv-map-feature {
  filter: drop-shadow(0 1px 0 #ffffff) drop-shadow(0 0 5px rgba(225, 29, 72, 0.82));
}

.ofv-map-stage .ofv-map-point {
  filter: drop-shadow(0 0 0 #ffffff) drop-shadow(0 0 8px rgba(225, 29, 72, 0.95));
}

.ofv-map-stage .ofv-map-tooltip {
  border: 1px solid rgba(225, 29, 72, 0.22);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.96);
  color: #111827;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
}

/* Premium custom Leaflet map controls styling */
.ofv-map-stage .leaflet-bar {
  border: 1px solid var(--ofv-border) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

.ofv-map-stage .leaflet-bar a {
  background-color: var(--ofv-surface) !important;
  color: var(--ofv-text) !important;
  border-bottom: 1px solid var(--ofv-border) !important;
}

.ofv-map-stage .leaflet-bar a:hover {
  background-color: var(--ofv-button-hover) !important;
}

/* Elegant feature popup table styling */
.ofv-map-popup {
  font-family: inherit;
  color: var(--ofv-text);
  min-width: 0;
  max-width: 280px;
}

.ofv-map-popup h4 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid var(--ofv-border);
  padding-bottom: 4px;
}

.ofv-map-popup-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.ofv-map-popup-table tr {
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.ofv-map-popup-table tr:last-child {
  border-bottom: none;
}

.ofv-map-popup-key {
  font-weight: 600;
  color: var(--ofv-text-muted);
  padding: 4px 8px 4px 0;
  vertical-align: top;
  white-space: nowrap;
}

.ofv-map-popup-val {
  padding: 4px 0;
  word-break: break-word;
}

/* Code container styling */
.ofv-code-container {
  --ofv-text-zoom: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--ofv-surface);
}

.ofv-code-header {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 54px;
  min-width: 0;
  padding: 10px 14px;
  border-bottom: 1px solid var(--ofv-border);
  background: var(--ofv-surface);
}

.ofv-code-title {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.ofv-code-title strong {
  overflow: hidden;
  color: var(--ofv-text);
  font-size: 14px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ofv-code-title span {
  color: var(--ofv-text-muted);
  font-size: 12px;
  line-height: 1.4;
}

.ofv-code-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

.ofv-code-status {
  flex: 0 1 96px;
  min-width: 0;
  overflow: hidden;
  color: var(--ofv-text-muted);
  font-size: 12px;
  line-height: 1.4;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ofv-code-action {
  flex: 0 0 auto;
  min-height: 30px;
  border: 1px solid var(--ofv-border);
  border-radius: 6px;
  padding: 0 10px;
  background: var(--ofv-surface-muted);
  color: var(--ofv-text);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  white-space: nowrap;
}

.ofv-code-action:hover {
  background: var(--ofv-button-hover);
}

.ofv-code-action:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.ofv-code-action[aria-pressed="true"] {
  border-color: #2563eb;
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
}

.ofv-theme-dark .ofv-code-action[aria-pressed="true"] {
  color: #93c5fd;
}

.ofv-code-notice {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-bottom: 1px solid var(--ofv-border);
  background: rgba(245, 158, 11, 0.12);
  color: var(--ofv-text);
  font-size: 12px;
  line-height: 1.45;
}

.ofv-text-structure {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 8px 14px;
  min-width: 0;
  padding: 8px 14px;
  border-bottom: 1px solid var(--ofv-border);
  background: var(--ofv-surface-muted);
  color: var(--ofv-text-muted);
  font-size: 12px;
  line-height: 1.45;
}

.ofv-text-structure > span {
  display: inline-flex;
  gap: 5px;
  min-width: 0;
}

.ofv-text-structure strong {
  color: var(--ofv-text);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.ofv-code-body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  flex: 1 1 auto;
  position: relative;
  isolation: isolate;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  background: var(--ofv-surface-muted);
}

.ofv-code-body[hidden] {
  display: none;
}

.ofv-code-gutter {
  position: sticky;
  left: 0;
  z-index: 3;
  min-width: 48px;
  margin: 0;
  padding: 18px 12px;
  border-right: 1px solid var(--ofv-border);
  background: var(--ofv-surface);
  box-shadow: 8px 0 14px -14px rgba(15, 23, 42, 0.65);
  color: var(--ofv-text-muted);
  font-family: var(--ofv-font-mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace);
  font-size: calc(13px * var(--ofv-text-zoom, 1));
  line-height: 1.6;
  text-align: right;
  user-select: none;
}

.ofv-code-container pre {
  position: relative;
  z-index: 0;
  margin: 0;
  padding: 18px 20px;
  max-width: 100%;
  min-width: max-content;
  background: transparent !important;
  font-family: var(--ofv-font-mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace);
  font-size: calc(13px * var(--ofv-text-zoom, 1));
  line-height: 1.6;
}

.ofv-code-container pre[class*="language-"] {
  overflow: visible;
}

.ofv-code-container code {
  white-space: pre;
}

.ofv-code-container.is-wrapped .ofv-code-body {
  overflow-x: hidden;
}

.ofv-code-container.is-wrapped pre[class*="language-"] {
  min-width: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.ofv-code-container.is-wrapped code {
  white-space: pre-wrap;
  word-break: break-word;
}

@media (max-width: 640px) {
  .ofv-code-header {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .ofv-code-actions {
    justify-content: flex-start;
    flex-wrap: nowrap;
  }

  .ofv-code-status {
    flex-basis: 88px;
    text-align: left;
  }
}

/* Markdown container styling */
.ofv-markdown-body {
  --ofv-markdown-zoom: 1;
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-width: 0;
  overflow: auto;
  padding: 32px;
  box-sizing: border-box;
  background: var(--ofv-surface);
  color: var(--ofv-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  font-size: calc(15px * var(--ofv-markdown-zoom, 1));
  line-height: 1.65;
  word-wrap: break-word;
}

/* Light / Dark adjustments for Markdown */
.ofv-root.ofv-theme-dark .ofv-markdown-body {
  background: var(--ofv-surface-muted);
}

.ofv-markdown-body h1,
.ofv-markdown-body h2,
.ofv-markdown-body h3,
.ofv-markdown-body h4,
.ofv-markdown-body h5,
.ofv-markdown-body h6 {
  margin-top: 24px;
  margin-bottom: 16px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ofv-text);
}

.ofv-markdown-body h1 { font-size: 2em; padding-bottom: .3em; border-bottom: 1px solid var(--ofv-border); }
.ofv-markdown-body h2 { font-size: 1.5em; padding-bottom: .3em; border-bottom: 1px solid var(--ofv-border); }
.ofv-markdown-body h3 { font-size: 1.25em; }
.ofv-markdown-body h4 { font-size: 1em; }

.ofv-markdown-body p,
.ofv-markdown-body blockquote,
.ofv-markdown-body ul,
.ofv-markdown-body ol,
.ofv-markdown-body dl,
.ofv-markdown-body table,
.ofv-markdown-body pre {
  margin-top: 0;
  margin-bottom: 16px;
}

.ofv-markdown-body a {
  color: #2563eb;
  text-decoration: none;
}

.ofv-markdown-body a:hover {
  text-decoration: underline;
}

.ofv-root.ofv-theme-dark .ofv-markdown-body a {
  color: #60a5fa;
}

.ofv-markdown-body blockquote {
  padding: 0 1em;
  color: var(--ofv-text-muted);
  border-left: .25em solid var(--ofv-border);
  margin-left: 0;
  margin-right: 0;
}

.ofv-markdown-body ul,
.ofv-markdown-body ol {
  padding-left: 2em;
}

.ofv-markdown-body ul {
  list-style-type: disc;
}

.ofv-markdown-body ol {
  list-style-type: decimal;
}

.ofv-markdown-body li + li {
  margin-top: .25em;
}

.ofv-markdown-body code {
  padding: .2em .4em;
  margin: 0;
  font-size: 85%;
  background-color: var(--ofv-surface-muted);
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.ofv-root.ofv-theme-dark .ofv-markdown-body code {
  background-color: rgba(255, 255, 255, 0.08);
}

.ofv-markdown-body pre {
  max-width: 100%;
  padding: 16px;
  overflow: auto;
  font-size: 85%;
  line-height: 1.45;
  background-color: var(--ofv-surface-muted);
  border-radius: 6px;
}

.ofv-root.ofv-theme-dark .ofv-markdown-body pre {
  background-color: rgba(0, 0, 0, 0.2);
}

.ofv-markdown-body pre code {
  padding: 0;
  margin: 0;
  font-size: 100%;
  word-break: normal;
  white-space: pre;
  background: transparent !important;
  border: 0;
}

.ofv-markdown-body hr {
  height: .25em;
  padding: 0;
  margin: 24px 0;
  background-color: var(--ofv-border);
  border: 0;
}

.ofv-markdown-body table {
  border-spacing: 0;
  border-collapse: collapse;
  display: block;
  width: max-content;
  max-width: 100%;
  overflow: auto;
}

.ofv-markdown-body table th,
.ofv-markdown-body table td {
  padding: 6px 13px;
  border: 1px solid var(--ofv-border);
}

.ofv-markdown-body table tr {
  background-color: var(--ofv-surface);
}

.ofv-markdown-body table tr:nth-child(2n) {
  background-color: var(--ofv-surface-muted);
}

/* PDF lazy loading elements */
.ofv-pdf-page-wrapper {
  margin: 16px auto;
  max-width: 100%;
  min-width: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--ofv-border);
  background-color: var(--ofv-surface);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
}

.ofv-pdf-skeleton {
  font-size: 14px;
  color: var(--ofv-text-muted);
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--ofv-surface-muted) 25%, var(--ofv-border) 37%, var(--ofv-surface-muted) 63%);
  background-size: 400% 100%;
  animation: ofv-skeleton-pulse 1.4s ease infinite;
}

@keyframes ofv-skeleton-pulse {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.ofv-pdf-error {
  color: #ef4444;
  font-weight: 500;
  font-size: 14px;
  width: 100%;
  height: 100%;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  line-height: 1.6;
  background: color-mix(in srgb, #ef4444 8%, var(--ofv-surface));
  box-sizing: border-box;
}

.ofv-pdf-empty {
  position: absolute;
  inset: 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  border: 1px solid color-mix(in srgb, #f59e0b 34%, var(--ofv-border));
  border-radius: 8px;
  background: color-mix(in srgb, #fef3c7 86%, transparent);
  color: #92400e;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  text-align: center;
  box-sizing: border-box;
}

/* PDF Text Layer styling */
.ofv-pdf-text-layer {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  line-height: 1;
  pointer-events: none;
  user-select: text;
}

.ofv-pdf-text-layer span {
  color: transparent;
  position: absolute;
  white-space: pre;
  cursor: text;
  transform-origin: 0% 0%;
  pointer-events: auto;
}

.ofv-pdf-text-layer span::selection {
  background: rgba(59, 130, 246, 0.35); /* Premium blue highlight matching theme */
}

/* For Firefox support of selection background */
.ofv-pdf-text-layer span::-moz-selection {
  background: rgba(59, 130, 246, 0.35);
}

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
   ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */

html {
  line-height: 1.15; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

/* Sections
   ========================================================================== */

/**
 * Remove the margin in all browsers.
 */

body {
  margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */

main {
  display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Grouping content
   ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */

hr {
  box-sizing: content-box; /* 1 */
  height: 0; /* 1 */
  overflow: visible; /* 2 */
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

pre {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/* Text-level semantics
   ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */

a {
  background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */

abbr[title] {
  border-bottom: none; /* 1 */
  text-decoration: underline; /* 2 */
  text-decoration: underline dotted; /* 2 */
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */

b,
strong {
  font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

code,
kbd,
samp {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/**
 * Add the correct font size in all browsers.
 */

small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Embedded content
   ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */

img {
  border-style: none;
}

/* Forms
   ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-size: 100%; /* 1 */
  line-height: 1.15; /* 1 */
  margin: 0; /* 2 */
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */

button,
input { /* 1 */
  overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */

button,
select { /* 1 */
  text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */

fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */

legend {
  box-sizing: border-box; /* 1 */
  color: inherit; /* 2 */
  display: table; /* 1 */
  max-width: 100%; /* 1 */
  padding: 0; /* 3 */
  white-space: normal; /* 1 */
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */

progress {
  vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */

textarea {
  overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */

[type="checkbox"],
[type="radio"] {
  box-sizing: border-box; /* 1 */
  padding: 0; /* 2 */
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */

[type="search"] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */

[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/* Interactive
   ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */

details {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */

summary {
  display: list-item;
}

/* Misc
   ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */

template {
  display: none;
}

/**
 * Add the correct display in IE 10.
 */

[hidden] {
  display: none;
}

/* Make clicks pass-through */
#nprogress {
  pointer-events: none;
}

#nprogress .bar {
  background: #29d;

  position: fixed;
  z-index: 1031;
  top: 0;
  left: 0;

  width: 100%;
  height: 2px;
}

/* Fancy blur effect */
#nprogress .peg {
  display: block;
  position: absolute;
  right: 0px;
  width: 100px;
  height: 100%;
  box-shadow: 0 0 10px #29d, 0 0 5px #29d;
  opacity: 1.0;

  -webkit-transform: rotate(3deg) translate(0px, -4px);
      -ms-transform: rotate(3deg) translate(0px, -4px);
          transform: rotate(3deg) translate(0px, -4px);
}

/* Remove these to get rid of the spinner */
#nprogress .spinner {
  display: block;
  position: fixed;
  z-index: 1031;
  top: 15px;
  right: 15px;
}

#nprogress .spinner-icon {
  width: 18px;
  height: 18px;
  box-sizing: border-box;

  border: solid 2px transparent;
  border-top-color: #29d;
  border-left-color: #29d;
  border-radius: 50%;

  -webkit-animation: nprogress-spinner 400ms linear infinite;
          animation: nprogress-spinner 400ms linear infinite;
}

.nprogress-custom-parent {
  overflow: hidden;
  position: relative;
}

.nprogress-custom-parent #nprogress .spinner,
.nprogress-custom-parent #nprogress .bar {
  position: absolute;
}

@-webkit-keyframes nprogress-spinner {
  0%   { -webkit-transform: rotate(0deg); }
  100% { -webkit-transform: rotate(360deg); }
}
@keyframes nprogress-spinner {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


/*!
 * Viewer.js v1.11.6
 * https://fengyuanchen.github.io/viewerjs
 *
 * Copyright 2015-present Chen Fengyuan
 * Released under the MIT license
 *
 * Date: 2023-09-17T03:16:35.830Z
 */

.viewer-zoom-in::before, .viewer-zoom-out::before, .viewer-one-to-one::before, .viewer-reset::before, .viewer-prev::before, .viewer-play::before, .viewer-next::before, .viewer-rotate-left::before, .viewer-rotate-right::before, .viewer-flip-horizontal::before, .viewer-flip-vertical::before, .viewer-fullscreen::before, .viewer-fullscreen-exit::before, .viewer-close::before {
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARgAAAAUCAYAAABWOyJDAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAAQPSURBVHic7Zs/iFxVFMa/0U2UaJGksUgnIVhYxVhpjDbZCBmLdAYECxsRFBTUamcXUiSNncgKQbSxsxH8gzAP3FU2jY0kKKJNiiiIghFlccnP4p3nPCdv3p9778vsLOcHB2bfveeb7955c3jvvNkBIMdxnD64a94GHMfZu3iBcRynN7zAOI7TG15gHCeeNUkr8zaxG2lbYDYsdgMbktBsP03jdQwljSXdtBhLOmtjowC9Mg9L+knSlcD8TNKpSA9lBpK2JF2VdDSR5n5J64m0qli399hNFMUlpshQii5jbXTbHGviB0nLNeNDSd9VO4A2UdB2fp+x0eCnaXxWXGA2X0au/3HgN9P4LFCjIANOJdrLr0zzZ+BEpNYDwKbpnQMeAw4m8HjQtM6Z9qa917zPQwFr3M5KgA6J5rTJCdFZJj9/lyvGhsDvwFNVuV2MhhjrK6b9bFiE+j1r87eBl4HDwCF7/U/k+ofAX5b/EXBv5JoLMuILzf3Ap6Z3EzgdqHMCuF7hcQf4HDgeoHnccncqdK/TvSDWffFXI/exICY/xZyqc6XLWF1UFZna4gJ7q8BsRvgd2/xXpo6P+D9dfT7PpECtA3cnWPM0GXGFZh/wgWltA+cDNC7X+AP4GzjZQe+k5dRxuYPeiuXU7e1qwLpDz7dFjXKRaSwuMLvAlG8zZlG+YmiK1HoFqT7wP2z+4Q45TfEGcMt01xLoNZEBTwRqD4BLpnMLeC1A41UmVxsXgXeBayV/Wx20rpTyrpnWRft7p6O/FdqzGrDukPNtkaMoMo3FBdBSQMOnYBCReyf05s126fU9ytfX98+mY54Kxnp7S9K3kj6U9KYdG0h6UdLbkh7poFXMfUnSOyVvL0h6VtIXHbS6nOP+s/Zm9mvyXW1uuC9ohZ72E9uDmXWLJOB1GxsH+DxPftsB8B6wlGDN02TAkxG6+4D3TWsbeC5CS8CDFce+AW500LhhOW2020TRjK3b21HEmgti9m0RonxbdMZeVzV+/4tF3cBpP7E9mKHNL5q8h5g0eYsCMQz0epq8gQrwMXAgcs0FGXGFRcB9wCemF9PkbYqM/Bas7fxLwNeJPdTdpo4itQti8lPMqTpXuozVRVXPpbHI3KkNTB1NfkL81j2mvhDp91HgV9MKuRIqrykj3WPq4rHyL+axj8/qGPmTqi6F9YDlHOvJU6oYcTsh/TYSzWmTE6JT19CtLTJt32D6CmHe0eQn1O8z5AXgT4sx4Vcu0/EQecMydB8z0hUWkTd2t4CrwNEePqMBcAR4mrBbwyXLPWJa8zrXmmLEhNBmfpkuY2102xxrih+pb+ieAb6vGhuA97UcJ5KR8gZ77K+99xxeYBzH6Q3/Z0fHcXrDC4zjOL3hBcZxnN74F+zlvXFWXF9PAAAAAElFTkSuQmCC);
    background-repeat: no-repeat;
    background-size: 280px;
    color: transparent;
    display: block;
    font-size: 0;
    height: 20px;
    line-height: 0;
    width: 20px;
  }

.viewer-zoom-in::before {
  background-position: 0 0;
  content: 'Zoom In';
}

.viewer-zoom-out::before {
  background-position: -20px 0;
  content: 'Zoom Out';
}

.viewer-one-to-one::before {
  background-position: -40px 0;
  content: 'One to One';
}

.viewer-reset::before {
  background-position: -60px 0;
  content: 'Reset';
}

.viewer-prev::before {
  background-position: -80px 0;
  content: 'Previous';
}

.viewer-play::before {
  background-position: -100px 0;
  content: 'Play';
}

.viewer-next::before {
  background-position: -120px 0;
  content: 'Next';
}

.viewer-rotate-left::before {
  background-position: -140px 0;
  content: 'Rotate Left';
}

.viewer-rotate-right::before {
  background-position: -160px 0;
  content: 'Rotate Right';
}

.viewer-flip-horizontal::before {
  background-position: -180px 0;
  content: 'Flip Horizontal';
}

.viewer-flip-vertical::before {
  background-position: -200px 0;
  content: 'Flip Vertical';
}

.viewer-fullscreen::before {
  background-position: -220px 0;
  content: 'Enter Full Screen';
}

.viewer-fullscreen-exit::before {
  background-position: -240px 0;
  content: 'Exit Full Screen';
}

.viewer-close::before {
  background-position: -260px 0;
  content: 'Close';
}

.viewer-container {
  bottom: 0;
  direction: ltr;
  font-size: 0;
  left: 0;
  line-height: 0;
  overflow: hidden;
  position: absolute;
  right: 0;
  -webkit-tap-highlight-color: transparent;
  top: 0;
  -ms-touch-action: none;
      touch-action: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}

.viewer-container::-moz-selection, .viewer-container *::-moz-selection {
    background-color: transparent;
  }

.viewer-container::selection,
  .viewer-container *::selection {
    background-color: transparent;
  }

.viewer-container:focus {
    outline: 0;
  }

.viewer-container img {
    display: block;
    height: auto;
    max-height: none !important;
    max-width: none !important;
    min-height: 0 !important;
    min-width: 0 !important;
    width: 100%;
  }

.viewer-canvas {
  bottom: 0;
  left: 0;
  overflow: hidden;
  position: absolute;
  right: 0;
  top: 0;
}

.viewer-canvas > img {
    height: auto;
    margin: 15px auto;
    max-width: 90% !important;
    width: auto;
  }

.viewer-footer {
  bottom: 0;
  left: 0;
  overflow: hidden;
  position: absolute;
  right: 0;
  text-align: center;
}

.viewer-navbar {
  background-color: rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.viewer-list {
  box-sizing: content-box;
  height: 50px;
  margin: 0;
  overflow: hidden;
  padding: 1px 0;
}

.viewer-list > li {
    color: transparent;
    cursor: pointer;
    float: left;
    font-size: 0;
    height: 50px;
    line-height: 0;
    opacity: 0.5;
    overflow: hidden;
    transition: opacity 0.15s;
    width: 30px;
  }

.viewer-list > li:focus,
    .viewer-list > li:hover {
      opacity: 0.75;
    }

.viewer-list > li:focus {
      outline: 0;
    }

.viewer-list > li + li {
      margin-left: 1px;
    }

.viewer-list > .viewer-loading {
    position: relative;
  }

.viewer-list > .viewer-loading::after {
      border-width: 2px;
      height: 20px;
      margin-left: -10px;
      margin-top: -10px;
      width: 20px;
    }

.viewer-list > .viewer-active,
  .viewer-list > .viewer-active:focus,
  .viewer-list > .viewer-active:hover {
    opacity: 1;
  }

.viewer-player {
  background-color: #000;
  bottom: 0;
  cursor: none;
  display: none;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 1;
}

.viewer-player > img {
    left: 0;
    position: absolute;
    top: 0;
  }

.viewer-toolbar > ul {
    display: inline-block;
    margin: 0 auto 5px;
    overflow: hidden;
    padding: 6px 3px;
  }

.viewer-toolbar > ul > li {
      background-color: rgba(0, 0, 0, 0.5);
      border-radius: 50%;
      cursor: pointer;
      float: left;
      height: 24px;
      overflow: hidden;
      transition: background-color 0.15s;
      width: 24px;
    }

.viewer-toolbar > ul > li:focus,
      .viewer-toolbar > ul > li:hover {
        background-color: rgba(0, 0, 0, 0.8);
      }

.viewer-toolbar > ul > li:focus {
        box-shadow: 0 0 3px #fff;
        outline: 0;
        position: relative;
        z-index: 1;
      }

.viewer-toolbar > ul > li::before {
        margin: 2px;
      }

.viewer-toolbar > ul > li + li {
        margin-left: 1px;
      }

.viewer-toolbar > ul > .viewer-small {
      height: 18px;
      margin-bottom: 3px;
      margin-top: 3px;
      width: 18px;
    }

.viewer-toolbar > ul > .viewer-small::before {
        margin: -1px;
      }

.viewer-toolbar > ul > .viewer-large {
      height: 30px;
      margin-bottom: -3px;
      margin-top: -3px;
      width: 30px;
    }

.viewer-toolbar > ul > .viewer-large::before {
        margin: 5px;
      }

.viewer-tooltip {
  background-color: rgba(0, 0, 0, 0.8);
  border-radius: 10px;
  color: #fff;
  display: none;
  font-size: 12px;
  height: 20px;
  left: 50%;
  line-height: 20px;
  margin-left: -25px;
  margin-top: -10px;
  position: absolute;
  text-align: center;
  top: 50%;
  width: 50px;
}

.viewer-title {
  color: #ccc;
  display: inline-block;
  font-size: 12px;
  line-height: 1.2;
  margin: 5px 5%;
  max-width: 90%;
  min-height: 14px;
  opacity: 0.8;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.15s;
  white-space: nowrap;
}

.viewer-title:hover {
    opacity: 1;
  }

.viewer-button {
  -webkit-app-region: no-drag;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  cursor: pointer;
  height: 80px;
  overflow: hidden;
  position: absolute;
  right: -40px;
  top: -40px;
  transition: background-color 0.15s;
  width: 80px;
}

.viewer-button:focus,
  .viewer-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
  }

.viewer-button:focus {
    box-shadow: 0 0 3px #fff;
    outline: 0;
  }

.viewer-button::before {
    bottom: 15px;
    left: 15px;
    position: absolute;
  }

.viewer-fixed {
  position: fixed;
}

.viewer-open {
  overflow: hidden;
}

.viewer-show {
  display: block;
}

.viewer-hide {
  display: none;
}

.viewer-backdrop {
  background-color: rgba(0, 0, 0, 0.5);
}

.viewer-invisible {
  visibility: hidden;
}

.viewer-move {
  cursor: move;
  cursor: grab;
}

.viewer-fade {
  opacity: 0;
}

.viewer-in {
  opacity: 1;
}

.viewer-transition {
  transition: all 0.3s;
}

@keyframes viewer-spinner {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.viewer-loading::after {
    animation: viewer-spinner 1s linear infinite;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    content: '';
    display: inline-block;
    height: 40px;
    left: 50%;
    margin-left: -20px;
    margin-top: -20px;
    position: absolute;
    top: 50%;
    width: 40px;
    z-index: 1;
  }

@media (max-width: 767px) {
  .viewer-hide-xs-down {
    display: none;
  }
}

@media (max-width: 991px) {
  .viewer-hide-sm-down {
    display: none;
  }
}

@media (max-width: 1199px) {
  .viewer-hide-md-down {
    display: none;
  }
}

