.pdf-studio-root {
  overflow: hidden;
  background: #eef1f5;
  color: #172033;
  font: 13px/1.4 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.pdf-studio,
.pdf-studio * {
  box-sizing: border-box;
}

.pdf-studio {
  --pdf-accent: #b42318;
  --pdf-border: #d8dde6;
  --pdf-panel: #fff;
  --pdf-muted: #667085;
  position: relative;
  display: grid;
  grid-template-rows: 48px auto auto minmax(0, 1fr) 28px;
  width: 100%;
  height: 100%;
  background: #eef1f5;
  container-type: inline-size;
  container-name: pdf-studio;
}

.pdf-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border-bottom: 1px solid var(--pdf-border);
  background: rgba(255, 255, 255, 0.96);
  overflow: visible;
  position: relative;
  z-index: 20;
}

.pdf-brand {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 9px;
}

.pdf-brand-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  background: #fff0ee;
  font-size: 18px;
}

.pdf-title {
  max-width: min(560px, 45vw);
  overflow: hidden;
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pdf-top-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex: 0 0 auto;
  overflow: visible;
  position: relative;
  z-index: 12;
}

.pdf-document-tabs {
  display: flex;
  min-height: 35px;
  gap: 2px;
  padding: 4px 8px 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--pdf-border);
  background: #f2f4f7;
  scrollbar-width: thin;
}

.pdf-document-tabs[hidden] {
  display: none;
}

.pdf-document-tab {
  display: flex;
  flex: 0 1 220px;
  min-width: 112px;
  max-width: 260px;
  align-items: center;
  overflow: hidden;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  color: #475467;
  background: transparent;
}

.pdf-document-tab:hover {
  background: rgba(255, 255, 255, .66);
}

.pdf-document-tab.active {
  border-color: var(--pdf-border);
  color: #101828;
  background: var(--pdf-panel);
  box-shadow: 0 -1px 5px rgba(16, 24, 40, .04);
}

.pdf-document-tab-main,
.pdf-document-tab-close {
  min-width: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.pdf-document-tab-main {
  flex: 1 1 auto;
  overflow: hidden;
  padding: 6px 4px 6px 10px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pdf-document-tab-close {
  display: grid;
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  margin-right: 3px;
  place-items: center;
  border-radius: 6px;
  font-size: 16px;
}

.pdf-document-tab-close:hover,
.pdf-document-tab-close:focus-visible {
  outline: 0;
  background: #e4e7ec;
}

.pdf-theme-btn,
.pdf-toolbar button,
.pdf-pane-tabs button,
.pdf-sidebar button,
.pdf-inspector button {
  font: inherit;
}

.pdf-theme-btn {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background-color 140ms ease, transform 140ms ease;
}

.pdf-mobile-pane-btn {
  display: none;
}

.pdf-theme-btn:hover {
  background: #f2f4f7;
}

.pdf-toolbar {
  display: flex;
  align-items: center;
  min-height: 48px;
  gap: 6px;
  padding: 6px 10px;
  overflow-x: auto;
  border-bottom: 1px solid var(--pdf-border);
  background: #fafbfc;
  scrollbar-width: thin;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
}

.pdf-tool-group {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 3px;
  padding-right: 6px;
  border-right: 1px solid #e3e7ee;
}

.pdf-tool-group:last-child {
  padding-right: 0;
  border-right: 0;
}

.pdf-toolbar-spacer {
  flex: 1 1 auto;
  min-width: 12px;
}

.pdf-toolbar-popover {
  position: absolute;
  z-index: 80;
  display: grid;
  width: 218px;
  gap: 2px;
  padding: 7px;
  border: 1px solid #d0d5dd;
  border-radius: 11px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 16px 38px rgba(16, 24, 40, .2);
  backdrop-filter: blur(min(14px, var(--bs-max-blur, 14px)));
  animation: pdf-menu-in 120ms ease-out;
}

.pdf-toolbar-popover-title {
  padding: 5px 7px 7px;
  color: #667085;
  font-size: 11px;
}

.pdf-toolbar-popover button {
  width: 100%;
  padding: 8px 9px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #344054;
  text-align: left;
  cursor: pointer;
}

.pdf-toolbar-popover button:hover,
.pdf-toolbar-popover button:focus-visible {
  outline: 0;
  background: #f2f4f7;
}

.pdf-toolbar-popover button.danger {
  color: #b42318;
}

.pdf-toolbar-popover button:disabled {
  opacity: .42;
  cursor: not-allowed;
}

@keyframes pdf-menu-in {
  from { opacity: 0; transform: translateY(-4px) scale(.98); }
}

.pdf-tool-btn {
  min-height: 32px;
  padding: 5px 9px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #344054;
  white-space: nowrap;
  cursor: pointer;
  transition:
    color 140ms ease,
    background-color 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease,
    transform 90ms ease;
}

.pdf-tool-btn:hover:not(:disabled) {
  border-color: #d0d5dd;
  background: #fff;
}

.pdf-tool-btn:active:not(:disabled),
.pdf-theme-btn:active {
  transform: translateY(1px) scale(.98);
}

.pdf-tool-btn:focus-visible,
.pdf-theme-btn:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.pdf-tool-btn.active {
  border-color: #e99a92;
  background: #fff0ee;
  color: #9c2116;
  font-weight: 650;
  box-shadow: 0 1px 2px rgba(156, 33, 22, .12);
}

.pdf-tool-btn.primary {
  border-color: #9c2116;
  background: var(--pdf-accent);
  color: #fff;
  font-weight: 650;
}

.pdf-tool-btn:disabled {
  opacity: 0.48;
  cursor: wait;
}

.pdf-color {
  width: 30px;
  height: 30px;
  padding: 2px;
  border: 1px solid #d0d5dd;
  border-radius: 7px;
  background: #fff;
}

.pdf-select,
.pdf-wide-select {
  min-height: 30px;
  border: 1px solid #d0d5dd;
  border-radius: 7px;
  background: #fff;
  color: #344054;
}

.pdf-select {
  max-width: 92px;
}

.pdf-wide-select {
  width: 100%;
  padding: 5px 8px;
}

.pdf-workspace {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-columns: 220px minmax(360px, 1fr) 300px;
}

.pdf-sidebar,
.pdf-inspector {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  background: var(--pdf-panel);
}

.pdf-sidebar {
  border-right: 1px solid var(--pdf-border);
}

.pdf-inspector {
  border-left: 1px solid var(--pdf-border);
}

.pdf-pane-tabs {
  display: flex;
  flex: 0 0 auto;
  min-height: 39px;
  gap: 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--pdf-border);
  background: #fafbfc;
}

.pdf-pane-tabs button {
  flex: 1 0 auto;
  min-width: 54px;
  padding: 9px 7px 8px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--pdf-muted);
  font-size: 11px;
  cursor: pointer;
}

.pdf-pane-tabs button.active {
  border-bottom-color: var(--pdf-accent);
  color: #101828;
  font-weight: 700;
}

.pdf-sidebar-body,
.pdf-inspector-body {
  min-height: 0;
  flex: 1 1 auto;
  padding: 10px;
  overflow: auto;
}

.pdf-canvas-area {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,.74), transparent 40%),
    #dfe3e9;
}

.pdf-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 7px;
  color: #667085;
  text-align: center;
}

.pdf-empty[hidden] {
  display: none;
}

.pdf-empty > div {
  font-size: 48px;
}

.pdf-empty strong {
  color: #344054;
  font-size: 16px;
}

.pdf-pages-host {
  position: absolute;
  inset: 0;
  padding: 26px 34px 80px;
  overflow: auto;
  outline: none;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
  touch-action: pan-x pan-y;
}

.pdf-pages-host[hidden] {
  display: none;
}

.pdf-page-wrap {
  position: relative;
  display: flex;
  width: max-content;
  min-width: min(100%, 420px);
  min-height: 320px;
  margin: 0 auto 24px;
  justify-content: center;
  scroll-margin-top: 22px;
}

.pdf-page {
  position: relative;
  flex: 0 0 auto;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 5px rgba(16, 24, 40, 0.12), 0 14px 38px rgba(16, 24, 40, 0.16);
  transition: box-shadow 160ms ease;
  contain: layout paint style;
}

.pdf-studio[data-tool="hand"] .pdf-pages-host,
.pdf-studio[data-tool="hand"] .pdf-page {
  cursor: grab;
  user-select: none;
}

.pdf-studio.is-panning .pdf-pages-host,
.pdf-studio.is-panning .pdf-page {
  cursor: grabbing;
  scroll-behavior: auto;
}

.pdf-studio[data-tool="select"] .pdf-text-layer,
.pdf-studio[data-tool="highlight"] .pdf-text-layer,
.pdf-studio[data-tool="underline"] .pdf-text-layer,
.pdf-studio[data-tool="strikeout"] .pdf-text-layer {
  pointer-events: auto;
  user-select: text;
}

.pdf-studio[data-tool="ink"] .pdf-page,
.pdf-studio[data-tool="line"] .pdf-page,
.pdf-studio[data-tool="arrow"] .pdf-page,
.pdf-studio[data-tool="rectangle"] .pdf-page,
.pdf-studio[data-tool="ellipse"] .pdf-page,
.pdf-studio[data-tool="free_text"] .pdf-page,
.pdf-studio[data-tool="note"] .pdf-page,
.pdf-studio[data-tool="redaction"] .pdf-page,
.pdf-studio[data-tool="signature"] .pdf-page {
  cursor: crosshair;
  touch-action: none;
  user-select: none;
}

.pdf-page-canvas {
  position: absolute;
  inset: 0;
  display: block;
}

.pdf-page-loading,
.pdf-page-error {
  display: grid;
  width: min(720px, calc(100vw - 600px));
  min-width: 360px;
  aspect-ratio: var(--page-ratio, 8.5 / 11);
  place-items: center;
  border: 1px solid #d0d5dd;
  background: #fff;
  color: #98a2b3;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.12);
}

.pdf-page-error {
  color: #b42318;
}

.pdf-page-number {
  position: absolute;
  right: 8px;
  bottom: 6px;
  z-index: 8;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(17, 24, 39, 0.62);
  color: #fff;
  font-size: 10px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 120ms ease;
}

.pdf-page:hover .pdf-page-number {
  opacity: 1;
}

.pdf-text-layer,
.pdf-form-layer,
.pdf-annotation-layer {
  position: absolute;
  inset: 0;
}

.pdf-text-layer {
  z-index: 2;
  overflow: hidden;
  line-height: 1;
  opacity: 1;
  text-align: initial;
  text-size-adjust: none;
  forced-color-adjust: none;
  transform-origin: 0 0;
}

.pdf-text-layer :is(span, br) {
  position: absolute;
  color: transparent;
  white-space: pre;
  transform-origin: 0 0;
  cursor: text;
}

.pdf-text-layer .markedContent {
  top: 0;
  height: 0;
}

.pdf-text-layer ::selection,
.pdf-text-layer span::selection {
  background: rgba(45, 125, 246, 0.34);
}

.pdf-form-layer {
  z-index: 3;
  pointer-events: none;
}

.pdf-form-control,
.pdf-native-signature {
  position: absolute;
  pointer-events: auto;
  border: 1px solid rgba(45, 125, 246, 0.55);
  background: rgba(255, 255, 255, 0.82);
  color: #101828;
  font: 12px sans-serif;
}

.pdf-native-signature {
  color: #1d4ed8;
  font-style: italic;
}

.pdf-link-hotspot {
  position: absolute;
  border: 0;
  border-bottom: 1px solid rgba(37, 99, 235, .45);
  background: rgba(37, 99, 235, .04);
  pointer-events: auto;
  cursor: pointer;
}

.pdf-link-hotspot:hover,
.pdf-link-hotspot:focus-visible {
  outline: 2px solid rgba(37, 99, 235, .8);
  background: rgba(37, 99, 235, .14);
}

.pdf-annotation-layer {
  z-index: 4;
  pointer-events: none;
}

.pdf-annotation {
  position: absolute;
  display: block;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  pointer-events: auto;
  cursor: pointer;
  transition: filter 120ms ease, box-shadow 120ms ease, opacity 120ms ease;
}

.pdf-studio[data-tool="hand"] .pdf-annotation,
.pdf-studio[data-tool="hand"] .pdf-vector-annotation path,
.pdf-studio[data-tool="select"] .pdf-annotation,
.pdf-studio[data-tool="select"] .pdf-vector-annotation path {
  cursor: move;
}

.pdf-annotation.is-dragging,
.pdf-markup-group.is-dragging {
  z-index: 24;
  cursor: grabbing !important;
  filter: drop-shadow(0 5px 8px rgba(16, 24, 40, .24));
  will-change: transform;
}

.pdf-annotation:not(.pdf-vector-annotation):hover,
.pdf-annotation:not(.pdf-vector-annotation):focus-visible,
.pdf-annotation:not(.pdf-vector-annotation).selected,
.pdf-markup-group.selected .pdf-annotation {
  filter: brightness(.96) saturate(1.12);
  outline: 2px solid rgba(37, 99, 235, .72);
  outline-offset: 1px;
}

.pdf-vector-annotation.selected path {
  filter: drop-shadow(0 0 4px rgba(37, 99, 235, .65));
}

.pdf-markup-group {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.pdf-markup-group .pdf-annotation {
  pointer-events: auto;
}

.pdf-vector-annotation,
.pdf-draft-vector {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.pdf-vector-annotation path {
  pointer-events: stroke;
  cursor: pointer;
  transition: filter 120ms ease;
}

.pdf-vector-annotation path:hover {
  filter: drop-shadow(0 0 3px rgba(37, 99, 235, .55));
}

.pdf-citation-focus {
  position: absolute;
  z-index: 8;
  border: 2px solid #2563eb;
  border-radius: 3px;
  background: rgba(59, 130, 246, .22);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .12);
  pointer-events: none;
  animation: pdf-citation-pulse 1.2s ease-in-out 2;
}

@keyframes pdf-citation-pulse {
  50% { background: rgba(59, 130, 246, .42); }
}

.pdf-highlight {
  background: color-mix(in srgb, var(--ann-color) calc(var(--ann-opacity) * 100%), transparent);
  mix-blend-mode: multiply;
}

.pdf-underline {
  border-bottom: var(--ann-stroke) solid var(--ann-color);
}

.pdf-strikeout::after {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  border-top: var(--ann-stroke) solid var(--ann-color);
  content: "";
}

.pdf-rectangle,
.pdf-ellipse {
  border: var(--ann-stroke) solid var(--ann-color);
  opacity: var(--ann-opacity);
}

.pdf-ellipse {
  border-radius: 50%;
}

.pdf-free_text {
  padding: 2px 4px;
  border: 1px dashed var(--ann-color);
  color: var(--ann-color);
  overflow: hidden;
  text-align: left;
}

.pdf-inline-text-editor {
  position: absolute;
  z-index: 30;
  min-width: 80px;
  min-height: 34px;
  padding: 3px 5px;
  resize: both;
  overflow: auto;
  border: 2px solid #2563eb;
  border-radius: 3px;
  outline: 0;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .14);
  pointer-events: auto;
}

.pdf-note {
  color: var(--ann-color);
  font-size: 19px;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.2));
}

.pdf-stamp {
  display: grid;
  place-items: center;
  border: 3px solid var(--ann-color);
  color: var(--ann-color);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .08em;
  opacity: .75;
  transform: rotate(-8deg);
}

.pdf-redaction {
  border: 2px dashed #fff;
  background: repeating-linear-gradient(135deg, #111 0 8px, #343434 8px 16px);
  box-shadow: 0 0 0 2px #111;
}

.pdf-redaction::after {
  display: grid;
  height: 100%;
  place-items: center;
  color: #fff;
  content: "PENDING REDACTION";
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .05em;
}

.pdf-signature {
  color: var(--ann-color);
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: 22px;
  font-style: italic;
  text-align: center;
  border-bottom: 1px solid var(--ann-color);
}

.pdf-ink {
  inset: 0;
  width: 100%;
  height: 100%;
}

.pdf-draft-annotation {
  position: absolute;
  z-index: 20;
  border: 2px dashed;
  background: rgba(45, 125, 246, 0.08);
  pointer-events: none;
  will-change: left, top, width, height;
}

.pdf-draft-ellipse {
  border-radius: 50%;
}

.pdf-draft-redaction {
  border-style: dashed;
  background: rgba(17, 24, 39, .2);
}

.pdf-draft-highlight {
  border-color: currentColor;
  background: color-mix(in srgb, currentColor 32%, transparent);
}

.pdf-draft-underline {
  border: 0;
  border-bottom: 3px solid currentColor;
  background: transparent;
}

.pdf-draft-strikeout {
  border: 0;
  background:
    linear-gradient(
      to bottom,
      transparent calc(50% - 1px),
      currentColor calc(50% - 1px),
      currentColor calc(50% + 1px),
      transparent calc(50% + 1px)
    );
}

.pdf-draft-free_text,
.pdf-draft-note,
.pdf-draft-signature {
  background: color-mix(in srgb, currentColor 8%, transparent);
}

.pdf-draft-vector {
  z-index: 20;
}

.pdf-draft-vector path {
  filter: drop-shadow(0 1px 1px rgba(16, 24, 40, .18));
}

.pdf-thumb-list {
  display: grid;
  gap: 10px;
}

.pdf-thumb {
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 7px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #344054;
  text-align: left;
  cursor: pointer;
}

.pdf-thumb:hover,
.pdf-thumb.active {
  border-color: #f0b5af;
  background: #fff3f1;
}

.pdf-thumb.is-checked {
  box-shadow: inset 0 0 0 2px #0f766e;
}

.pdf-thumb-paper {
  display: grid;
  width: 58px;
  place-items: center;
  border: 1px solid #cfd4dc;
  background: #fff;
  color: #98a2b3;
  box-shadow: 0 2px 5px rgba(16, 24, 40, .1);
  font-size: 11px;
  overflow: hidden;
}

.pdf-thumb-paper img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pdf-outline-item,
.pdf-search-result {
  display: block;
  width: 100%;
  padding: 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #344054;
  text-align: left;
  cursor: pointer;
}

.pdf-outline-item:hover,
.pdf-search-result:hover {
  background: #f2f4f7;
}

.pdf-search-box {
  display: grid;
  gap: 7px;
  margin-bottom: 10px;
}

.pdf-search-input,
.pdf-ai-input {
  width: 100%;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #fff;
  color: #101828;
}

.pdf-search-input {
  height: 34px;
  padding: 6px 9px;
}

.pdf-search-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--pdf-muted);
  font-size: 11px;
}

.pdf-search-options label {
  display: flex;
  align-items: center;
  gap: 3px;
}

.pdf-search-results {
  display: grid;
  gap: 4px;
}

.pdf-search-result strong,
.pdf-search-result span {
  display: block;
}

.pdf-search-result span {
  margin-top: 2px;
  color: var(--pdf-muted);
  font-size: 11px;
}

.pdf-pane-empty,
.pdf-pane-error {
  padding: 18px 10px;
  color: var(--pdf-muted);
  text-align: center;
}

.pdf-pane-error {
  color: #b42318;
}

.pdf-pane-actions,
.pdf-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.pdf-card-actions.vertical {
  align-items: stretch;
  flex-direction: column;
}

.pdf-pane-actions .pdf-tool-btn,
.pdf-card-actions .pdf-tool-btn {
  border-color: #d0d5dd;
  background: #fff;
}

.pdf-bookmark-list,
.pdf-version-list,
.pdf-annotation-list,
.pdf-comments {
  display: grid;
  gap: 7px;
}

.pdf-bookmark-row,
.pdf-version-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 8px;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  background: #fff;
}

.pdf-bookmark-row button,
.pdf-version-actions button,
.pdf-comment button {
  border: 0;
  background: transparent;
  color: #475467;
  cursor: pointer;
}

.pdf-version-row.current {
  border-color: #e99a92;
  background: #fff5f4;
}

.pdf-version-row span,
.pdf-version-row strong {
  display: block;
}

.pdf-version-row span {
  color: var(--pdf-muted);
  font-size: 10px;
}

.pdf-version-actions {
  display: flex;
}

.pdf-inspector-card {
  margin-bottom: 10px;
  padding: 11px;
  border: 1px solid #e4e7ec;
  border-radius: 10px;
  background: #fff;
}

.pdf-inspector-card h3,
.pdf-comments h3 {
  margin: 0 0 8px;
  font-size: 13px;
}

.pdf-inspector-card p {
  margin: 5px 0 10px;
  color: var(--pdf-muted);
}

.pdf-inspector-card.pdf-warning {
  border-color: #fedf89;
  background: #fffaeb;
}

.pdf-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.pdf-visibility-chip,
.pdf-resolved {
  padding: 2px 6px;
  border-radius: 99px;
  background: #f2f4f7;
  color: #475467;
  font-size: 10px;
}

.pdf-property-grid {
  display: grid;
  grid-template-columns: minmax(80px, .8fr) minmax(100px, 1.2fr);
  gap: 8px 10px;
  align-items: center;
  padding: 4px;
}

.pdf-property-grid span {
  color: var(--pdf-muted);
}

.pdf-property-grid strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.pdf-annotation-row {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  background: #fff;
  color: #344054;
  text-align: left;
  cursor: pointer;
}

.pdf-annotation-row:hover {
  border-color: #f0b5af;
  background: #fff7f6;
}

.pdf-ann-swatch {
  width: 10px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 4px;
}

.pdf-annotation-row strong,
.pdf-annotation-row small {
  display: block;
}

.pdf-annotation-row small {
  margin-top: 2px;
  color: var(--pdf-muted);
}

.pdf-comments {
  margin-top: 14px;
}

.pdf-comment {
  padding: 9px;
  border-left: 3px solid #d0d5dd;
  border-radius: 0 7px 7px 0;
  background: #f9fafb;
}

.pdf-comment > div {
  display: flex;
  justify-content: space-between;
  gap: 6px;
}

.pdf-comment time {
  color: var(--pdf-muted);
  font-size: 9px;
}

.pdf-comment p {
  margin: 5px 0;
}

.pdf-ai-messages {
  display: grid;
  min-height: 230px;
  max-height: calc(100vh - 380px);
  gap: 8px;
  padding-bottom: 10px;
  overflow: auto;
}

.pdf-ai-welcome,
.pdf-ai-assistant,
.pdf-ai-user {
  padding: 9px 10px;
  border-radius: 10px;
}

.pdf-ai-welcome,
.pdf-ai-assistant {
  background: #f2f4f7;
}

.pdf-ai-welcome p,
.pdf-ai-assistant p {
  margin: 4px 0;
}

.pdf-ai-user {
  margin-left: 28px;
  background: #7f1d1d;
  color: #fff;
}

.pdf-ai-compose {
  display: grid;
  gap: 7px;
  padding-top: 10px;
  border-top: 1px solid #e4e7ec;
}

.pdf-ai-input {
  min-height: 86px;
  padding: 8px;
  resize: vertical;
}

.pdf-citation {
  display: inline-flex;
  margin: 4px 4px 0 0;
  padding: 4px 7px;
  border: 1px solid #b2ccff !important;
  border-radius: 99px;
  background: #eff4ff !important;
  color: #175cd3 !important;
  font-size: 10px !important;
}

.pdf-ai-warning {
  margin-top: 7px;
  color: #b54708;
  font-size: 11px;
}

.pdf-statusbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border-top: 1px solid var(--pdf-border);
  background: #f8fafc;
  color: #667085;
  font-size: 11px;
}

.pdf-divider {
  width: 1px;
  height: 14px;
  background: #d0d5dd;
}

.pdf-status-spacer {
  flex: 1;
}

.pdf-status-text {
  max-width: 44%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pdf-studio.busy .pdf-status-text::before {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 5px;
  border: 2px solid #d0d5dd;
  border-top-color: var(--pdf-accent);
  border-radius: 50%;
  content: "";
  vertical-align: -2px;
  animation: pdf-spin .7s linear infinite;
}

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

.pdf-studio[data-reading-mode="sepia"] .pdf-canvas-area {
  background: #cfc5ae;
}

.pdf-studio[data-reading-mode="sepia"] .pdf-page-canvas {
  filter: sepia(.18) saturate(.9);
}

.pdf-studio[data-reading-mode="dark"] {
  --pdf-border: #303845;
  --pdf-panel: #171b23;
  --pdf-muted: #9ca6b7;
  color: #e5e7eb;
  background: #11151b;
}

.pdf-studio[data-reading-mode="dark"] .pdf-topbar,
.pdf-studio[data-reading-mode="dark"] .pdf-toolbar,
.pdf-studio[data-reading-mode="dark"] .pdf-pane-tabs,
.pdf-studio[data-reading-mode="dark"] .pdf-statusbar {
  background: #171b23;
  color: #e5e7eb;
}

.pdf-studio[data-reading-mode="dark"] .pdf-canvas-area {
  background: #0f1217;
}

.pdf-studio[data-reading-mode="dark"] .pdf-tool-btn,
.pdf-studio[data-reading-mode="dark"] .pdf-pane-tabs button,
.pdf-studio[data-reading-mode="dark"] .pdf-property-grid strong {
  color: #e5e7eb;
}

.pdf-studio[data-reading-mode="inverted"] .pdf-page-canvas {
  filter: invert(1) hue-rotate(180deg);
}

@media (max-width: 980px) {
  .pdf-workspace {
    grid-template-columns: 170px minmax(320px, 1fr) 245px;
  }
  .pdf-studio.is-plot-report .pdf-workspace {
    grid-template-columns: 170px minmax(320px, 1fr);
  }
  .pdf-toolbar {
    min-height: 44px;
  }
  .pdf-tool-btn {
    padding-inline: 7px;
  }
}

@media (max-width: 760px) {
  .pdf-studio {
    grid-template-rows: 44px auto auto minmax(0, 1fr) 28px;
  }
  .pdf-document-tab {
    flex-basis: 170px;
  }
  .pdf-workspace {
    display: block;
    position: relative;
  }
  .pdf-sidebar,
  .pdf-inspector {
    position: absolute;
    z-index: 30;
    top: 0;
    bottom: 0;
    width: min(84vw, 320px);
    box-shadow: 0 12px 36px rgba(16,24,40,.28);
  }
  .pdf-sidebar {
    left: 0;
    transform: translateX(-100%);
    transition: transform .18s ease;
  }
  .pdf-inspector {
    right: 0;
    transform: translateX(100%);
    transition: transform .18s ease;
  }
  .pdf-studio.mobile-sidebar-open .pdf-sidebar,
  .pdf-studio.mobile-inspector-open .pdf-inspector {
    transform: translateX(0);
  }
  .pdf-mobile-pane-btn {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    border: 1px solid var(--pdf-line);
    border-radius: 6px;
    background: var(--pdf-panel);
    color: inherit;
    font: inherit;
  }
  .pdf-canvas-area {
    position: absolute;
    inset: 0;
  }
  .pdf-pages-host {
    padding: 18px 10px 70px;
  }
  .pdf-page-loading,
  .pdf-page-error {
    width: calc(100vw - 30px);
    min-width: 280px;
  }
  .pdf-title {
    max-width: 55vw;
  }
  .pdf-toolbar {
    padding-inline: 6px;
  }
  .pdf-status-text,
  .pdf-sync-state {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pdf-pages-host {
    scroll-behavior: auto;
  }
  .pdf-studio *,
  .pdf-studio *::before,
  .pdf-studio *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  @page { size: A4 portrait; margin: 0; }
  body.printing-plot-report * {
    visibility: visible !important;
  }
  body.printing-plot-report .pdf-studio-root,
  body.printing-plot-report > *:not(#plotReportPrintRoot) {
    display: none !important;
    visibility: hidden !important;
  }
  body.printing-plot-report #plotReportPrintRoot,
  body.printing-plot-report #plotReportPrintRoot * {
    visibility: visible !important;
  }
  body.printing-plot-report #plotReportPrintRoot {
    display: block !important;
  }
  body.printing-plot-report .plot-report-page {
    display: flex !important;
    width: 210mm !important;
    height: 297mm !important;
    max-height: 297mm !important;
    margin: 0 !important;
    box-shadow: none !important;
    overflow: hidden !important;
    break-after: page;
    page-break-after: always;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  body.printing-plot-report .plot-report-page:last-child {
    break-after: auto;
    page-break-after: auto;
  }
  body * {
    visibility: hidden !important;
  }
  .pdf-studio-root,
  .pdf-studio-root .pdf-pages-host,
  .pdf-studio-root .pdf-page-wrap,
  .pdf-studio-root .pdf-page-wrap * {
    visibility: visible !important;
  }
  .pdf-studio-root {
    position: absolute !important;
    inset: 0 !important;
    overflow: visible !important;
  }
  .pdf-studio-root .pdf-topbar,
  .pdf-studio-root .pdf-toolbar,
  .pdf-studio-root .pdf-sidebar,
  .pdf-studio-root .pdf-inspector,
  .pdf-studio-root .pdf-statusbar,
  .pdf-studio-root .pdf-page-number {
    display: none !important;
  }
  .pdf-studio-root .pdf-workspace,
  .pdf-studio-root .pdf-canvas-area,
  .pdf-studio-root .pdf-pages-host {
    position: static !important;
    display: block !important;
    overflow: visible !important;
    padding: 0 !important;
    background: #fff !important;
  }
  .pdf-studio-root .pdf-page-wrap {
    min-height: 0 !important;
    margin: 0 !important;
    break-after: page;
  }
}

/* ---- Function / concept search (top-right of PDF chrome, not GS ribbon) ---- */
.pdf-studio .pdf-fnsearch {
  --fn-accent: var(--pdf-accent, #b42318);
  position: relative;
  z-index: 12;
  flex: none;
  flex-shrink: 0;
  align-self: center;
}
.pdf-studio .pdf-fnsearch-field {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  width: 178px;
  padding: 0 11px 0 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--fn-accent) 8%, #fff);
  border: 1px solid color-mix(in srgb, var(--fn-accent) 22%, #d0d5dd);
  color: #344054;
  box-sizing: border-box;
  cursor: text;
  transition: background .14s ease, border-color .14s ease, box-shadow .14s ease, width .18s ease, color .14s ease;
}
.pdf-studio .pdf-fnsearch-field:hover {
  background: color-mix(in srgb, var(--fn-accent) 12%, #fff);
  border-color: color-mix(in srgb, var(--fn-accent) 38%, #d0d5dd);
}
.pdf-studio .pdf-fnsearch.open .pdf-fnsearch-field,
.pdf-studio .pdf-fnsearch-field.on,
.pdf-studio .pdf-fnsearch-field:focus-within {
  background: #fff;
  border-color: var(--fn-accent);
  color: #1f2733;
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--fn-accent) 28%, transparent),
    0 8px 22px rgba(180, 35, 24, .16);
}
.pdf-studio .pdf-fnsearch-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  opacity: .92;
  flex: none;
}
.pdf-studio .pdf-fnsearch-ic svg {
  width: 15px;
  height: 15px;
  display: block;
  overflow: visible;
  stroke-width: 2;
}
.pdf-studio .pdf-fnsearch-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 12.5px;
  font-weight: 500;
  outline: none;
  padding: 0;
  line-height: 1;
  appearance: none;
  -webkit-appearance: none;
}
.pdf-studio .pdf-fnsearch-input:focus,
.pdf-studio .pdf-fnsearch-input:focus-visible { outline: none; }
.pdf-studio .pdf-fnsearch-input::-webkit-search-decoration,
.pdf-studio .pdf-fnsearch-input::-webkit-search-cancel-button { display: none; }
.pdf-studio .pdf-fnsearch-input::placeholder {
  color: var(--pdf-muted, #667085);
  font-weight: 500;
}
.pdf-studio .pdf-fnsearch.open .pdf-fnsearch-input::placeholder,
.pdf-studio .pdf-fnsearch-field.on .pdf-fnsearch-input::placeholder,
.pdf-studio .pdf-fnsearch-field:focus-within .pdf-fnsearch-input::placeholder {
  color: #6c7686;
}

.pdf-studio .pdf-fnsearch-pop,
.pdf-studio .pdf-fnsearch-pop.pdf-fnsearch-skin {
  --fn-pop-bg: #ffffff;
  --fn-pop-ink: #1f2733;
  --fn-pop-muted: #5c6573;
  --fn-pop-line: #d7dce6;
  --fn-pop-accent: var(--fn-accent, #b42318);
  --fn-pop-shadow: 0 16px 38px rgba(16, 24, 40, .22), 0 2px 8px rgba(16, 24, 40, .08);
  display: flex;
  flex-direction: column;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: auto;
  width: min(540px, calc(100cqi - 24px));
  max-width: min(540px, calc(100cqi - 24px));
  max-height: min(420px, 72vh, 72dvh);
  isolation: isolate;
  color-scheme: light;
  background-color: #ffffff;
  background-image: linear-gradient(180deg, color-mix(in srgb, var(--fn-pop-accent) 8%, transparent), transparent 2.4rem);
  color: #1f2733;
  border: 1px solid var(--fn-pop-line);
  border-radius: 12px;
  box-shadow: var(--fn-pop-shadow);
  z-index: 80;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px) scale(.985);
  transform-origin: top right;
  transition: opacity .14s ease, transform .16s ease, visibility 0s linear .16s;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.pdf-studio .pdf-fnsearch-pop.on {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  transition: opacity .14s ease, transform .16s ease, visibility 0s;
}
.pdf-studio .pdf-fnsearch-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex: none;
  padding: 10px 14px 8px;
  background: transparent;
  border-bottom: 1px solid color-mix(in srgb, var(--fn-pop-line) 85%, transparent);
}
.pdf-studio .pdf-fnsearch-title {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .72px;
  text-transform: uppercase;
  color: var(--fn-pop-muted);
}
.pdf-studio .pdf-fnsearch-count {
  margin-left: auto;
  font-size: 11px;
  color: var(--fn-pop-muted);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.pdf-studio .pdf-fnsearch-pop.is-suggest .pdf-fnsearch-count { display: none; }
.pdf-studio .pdf-fnsearch-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px 6px;
  padding: 8px;
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 0;
  flex: 1 1 auto;
  background: transparent;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--fn-pop-muted) 45%, transparent) transparent;
}
.pdf-studio .pdf-fnsearch-list::-webkit-scrollbar { width: 8px; height: 8px; }
.pdf-studio .pdf-fnsearch-list::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--fn-pop-muted) 40%, transparent);
  border-radius: 99px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
.pdf-studio .pdf-fnsearch-list.cols-2 {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.pdf-studio .pdf-fnsearch-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  color: var(--fn-pop-ink);
  border-radius: 8px;
  padding: 6px 8px;
  cursor: pointer;
  min-height: 40px;
  box-sizing: border-box;
  overflow: hidden;
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
  transition: background .08s ease, border-color .08s ease, color .08s ease, box-shadow .08s ease;
}
.pdf-studio .pdf-fnsearch-item:focus,
.pdf-studio .pdf-fnsearch-item:focus-visible { outline: none; }
.pdf-studio .pdf-fnsearch-item:hover {
  background: color-mix(in srgb, var(--fn-pop-accent) 8%, transparent);
  border-color: color-mix(in srgb, var(--fn-pop-accent) 18%, transparent);
}
.pdf-studio .pdf-fnsearch-item.is-active,
.pdf-studio .pdf-fnsearch-item:hover.is-active {
  background: var(--fn-pop-accent);
  border-color: var(--fn-pop-accent);
  color: #fff;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--fn-pop-accent) 38%, transparent);
}
.pdf-studio .pdf-fnsearch-item-ic {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--fn-pop-accent) 12%, transparent);
  color: var(--fn-pop-accent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fn-pop-accent) 14%, transparent);
}
.pdf-studio .pdf-fnsearch-item:hover:not(.is-active) .pdf-fnsearch-item-ic {
  background: color-mix(in srgb, var(--fn-pop-accent) 18%, transparent);
}
.pdf-studio .pdf-fnsearch-item.is-active .pdf-fnsearch-item-ic {
  background: rgba(255,255,255,.18);
  color: #fff;
  box-shadow: none;
}
.pdf-studio .pdf-fnsearch-item-ic svg {
  width: 15px;
  height: 15px;
  display: block;
  overflow: visible;
}
.pdf-studio .pdf-fnsearch-item-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1;
}
.pdf-studio .pdf-fnsearch-item-name {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pdf-studio .pdf-fnsearch-item-hint {
  font-size: 10.5px;
  color: var(--fn-pop-muted);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pdf-studio .pdf-fnsearch-item.is-active .pdf-fnsearch-item-hint {
  color: rgba(255,255,255,.82);
}
.pdf-studio .pdf-fnsearch-pop.is-empty {
  width: min(360px, calc(100cqi - 24px));
  max-width: min(360px, calc(100cqi - 24px));
  background-image: none;
  background-color: #ffffff;
  color: var(--fn-pop-ink);
}
.pdf-studio .pdf-fnsearch-pop.is-empty .pdf-fnsearch-list {
  grid-template-columns: minmax(0, 1fr);
  min-height: 168px;
  background-color: transparent;
}
.pdf-studio .pdf-fnsearch-empty,
.pdf-studio .pdf-fnsearch-empty.pdf-fnsearch-miss {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 32px 28px 28px;
  color: var(--fn-pop-muted);
  min-height: 168px;
  background: transparent;
}
.pdf-studio .pdf-fnsearch-empty-ic {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fn-pop-accent);
  background: color-mix(in srgb, var(--fn-pop-accent) 12%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fn-pop-accent) 16%, transparent);
}
.pdf-studio .pdf-fnsearch-empty-ic svg { width: 18px; height: 18px; overflow: visible; }
.pdf-studio .pdf-fnsearch-empty strong {
  color: var(--fn-pop-ink);
  font-size: 13px;
  font-weight: 700;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.pdf-studio .pdf-fnsearch-empty p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  max-width: 320px;
}
.pdf-studio .pdf-fnsearch-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  flex: none;
  padding: 7px 12px 8px;
  border-top: 1px solid var(--fn-pop-line);
  background: color-mix(in srgb, var(--fn-pop-ink) 2.5%, var(--fn-pop-bg));
  font-size: 10.5px;
  color: var(--fn-pop-muted);
}
.pdf-studio .pdf-fnsearch-k {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.pdf-studio .pdf-fnsearch-k kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 16px;
  padding: 0 5px;
  border-radius: 4px;
  font: 600 10px/1 ui-sans-serif, system-ui, sans-serif;
  color: var(--fn-pop-ink);
  background: color-mix(in srgb, var(--fn-pop-ink) 6%, var(--fn-pop-bg));
  box-shadow: inset 0 0 0 1px var(--fn-pop-line);
}
.pdf-studio .pdf-fnsearch-pop:not(.cols-2) .pdf-fnsearch-k-cols,
.pdf-studio .pdf-fnsearch-pop.is-empty .pdf-fnsearch-k-move,
.pdf-studio .pdf-fnsearch-pop.is-empty .pdf-fnsearch-k-cols,
.pdf-studio .pdf-fnsearch-pop.is-empty .pdf-fnsearch-k-open { display: none; }

.pdf-studio[data-reading-mode="dark"] .pdf-fnsearch-field,
.pdf-studio[data-reading-mode="inverted"] .pdf-fnsearch-field {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.28);
  color: #e5e7eb;
}
.pdf-studio[data-reading-mode="dark"] .pdf-fnsearch-field:hover,
.pdf-studio[data-reading-mode="inverted"] .pdf-fnsearch-field:hover {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.4);
}
.pdf-studio[data-reading-mode="dark"] .pdf-fnsearch.open .pdf-fnsearch-field,
.pdf-studio[data-reading-mode="dark"] .pdf-fnsearch-field.on,
.pdf-studio[data-reading-mode="dark"] .pdf-fnsearch-field:focus-within,
.pdf-studio[data-reading-mode="inverted"] .pdf-fnsearch.open .pdf-fnsearch-field,
.pdf-studio[data-reading-mode="inverted"] .pdf-fnsearch-field.on,
.pdf-studio[data-reading-mode="inverted"] .pdf-fnsearch-field:focus-within {
  background: #fff;
  border-color: var(--fn-accent, #b42318);
  color: #1f2733;
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--fn-accent, #b42318) 40%, transparent),
    0 10px 24px rgba(0, 0, 0, .45);
}
.pdf-studio[data-reading-mode="dark"] .pdf-fnsearch-input::placeholder,
.pdf-studio[data-reading-mode="inverted"] .pdf-fnsearch-input::placeholder {
  color: #9ca6b7;
}
.pdf-studio[data-reading-mode="dark"] .pdf-fnsearch.open .pdf-fnsearch-input::placeholder,
.pdf-studio[data-reading-mode="dark"] .pdf-fnsearch-field.on .pdf-fnsearch-input::placeholder,
.pdf-studio[data-reading-mode="dark"] .pdf-fnsearch-field:focus-within .pdf-fnsearch-input::placeholder,
.pdf-studio[data-reading-mode="inverted"] .pdf-fnsearch.open .pdf-fnsearch-input::placeholder,
.pdf-studio[data-reading-mode="inverted"] .pdf-fnsearch-field.on .pdf-fnsearch-input::placeholder,
.pdf-studio[data-reading-mode="inverted"] .pdf-fnsearch-field:focus-within .pdf-fnsearch-input::placeholder {
  color: #6c7686;
}

.pdf-studio[data-reading-mode="dark"] .pdf-fnsearch-pop,
.pdf-studio[data-reading-mode="inverted"] .pdf-fnsearch-pop,
.dark .pdf-studio .pdf-fnsearch-pop,
#os.dark .pdf-studio .pdf-fnsearch-pop,
.window[data-app-color-tone="dark"] .pdf-studio .pdf-fnsearch-pop {
  --fn-pop-bg: #1c212b;
  --fn-pop-ink: #e8ecf3;
  --fn-pop-muted: #9aa5b5;
  --fn-pop-line: #3a4252;
  --fn-pop-accent: #f97066;
  --fn-pop-shadow: 0 28px 64px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.06);
  color-scheme: dark;
  background-color: #1c212b;
  color: #e8ecf3;
  border-color: #3a4252;
}
.pdf-studio[data-reading-mode="dark"] .pdf-fnsearch-pop.is-empty,
.pdf-studio[data-reading-mode="inverted"] .pdf-fnsearch-pop.is-empty,
.dark .pdf-studio .pdf-fnsearch-pop.is-empty,
#os.dark .pdf-studio .pdf-fnsearch-pop.is-empty {
  background-color: #1c212b;
  background-image: none;
  color: #e8ecf3;
}
.pdf-studio[data-reading-mode="dark"] .pdf-fnsearch-list,
.dark .pdf-studio .pdf-fnsearch-list {
  background-color: transparent;
}
.pdf-studio[data-reading-mode="dark"] .pdf-fnsearch-foot,
.dark .pdf-studio .pdf-fnsearch-foot {
  background: #191e27;
  border-top-color: #3a4252;
  color: #9aa5b5;
}
.pdf-studio[data-reading-mode="dark"] .pdf-fnsearch-empty,
.dark .pdf-studio .pdf-fnsearch-empty { color: #9aa5b5; }
.pdf-studio[data-reading-mode="dark"] .pdf-fnsearch-empty strong,
.dark .pdf-studio .pdf-fnsearch-empty strong { color: #e8ecf3; }
.pdf-studio[data-reading-mode="dark"] .pdf-fnsearch-item:hover:not(.is-active),
.dark .pdf-studio .pdf-fnsearch-item:hover:not(.is-active) {
  background: rgba(249, 112, 102, .14);
  border-color: rgba(249, 112, 102, .28);
}
.pdf-studio[data-reading-mode="dark"] .pdf-fnsearch-item-ic,
.dark .pdf-studio .pdf-fnsearch-item-ic {
  background: rgba(249, 112, 102, .16);
  color: #fda29b;
  box-shadow: inset 0 0 0 1px rgba(249, 112, 102, .22);
}
.pdf-studio[data-reading-mode="dark"] .pdf-fnsearch-k kbd,
.dark .pdf-studio .pdf-fnsearch-k kbd {
  color: #e8ecf3;
  background: #2a3140;
  box-shadow: inset 0 0 0 1px #3a4252;
}

@media (prefers-reduced-motion: reduce) {
  .pdf-studio .pdf-fnsearch-field,
  .pdf-studio .pdf-fnsearch-pop,
  .pdf-studio .pdf-fnsearch-pop.on,
  .pdf-studio .pdf-fnsearch-item { transition: none; transform: none; }
}
@media (max-width: 920px) {
  .pdf-studio .pdf-fnsearch-field { width: 148px; padding: 0 10px 0 8px; }
  .pdf-studio .pdf-fnsearch-input { font-size: 12px; }
}
@media (max-width: 760px) {
  .pdf-studio .pdf-fnsearch-field { width: 32px; padding: 0 8px; gap: 0; }
  .pdf-studio .pdf-fnsearch-input { width: 0; min-width: 0; padding: 0; opacity: 0; pointer-events: none; }
  .pdf-studio .pdf-fnsearch.open .pdf-fnsearch-field,
  .pdf-studio .pdf-fnsearch-field.on,
  .pdf-studio .pdf-fnsearch-field:focus-within { width: 158px; gap: 6px; }
  .pdf-studio .pdf-fnsearch.open .pdf-fnsearch-input,
  .pdf-studio .pdf-fnsearch-field.on .pdf-fnsearch-input,
  .pdf-studio .pdf-fnsearch-field:focus-within .pdf-fnsearch-input {
    width: auto; opacity: 1; pointer-events: auto; flex: 1;
  }
}
@container pdf-studio (max-width: 920px) {
  .pdf-studio .pdf-fnsearch-field { width: 148px; }
}
@container pdf-studio (max-width: 760px) {
  .pdf-studio .pdf-fnsearch-field { width: 32px; padding: 0 8px; gap: 0; }
  .pdf-studio .pdf-fnsearch-input { width: 0; min-width: 0; padding: 0; opacity: 0; pointer-events: none; }
  .pdf-studio .pdf-fnsearch.open .pdf-fnsearch-field,
  .pdf-studio .pdf-fnsearch-field.on,
  .pdf-studio .pdf-fnsearch-field:focus-within { width: min(158px, calc(100cqi - 160px)); gap: 6px; }
  .pdf-studio .pdf-fnsearch.open .pdf-fnsearch-input,
  .pdf-studio .pdf-fnsearch-field.on .pdf-fnsearch-input,
  .pdf-studio .pdf-fnsearch-field:focus-within .pdf-fnsearch-input {
    width: auto; opacity: 1; pointer-events: auto; flex: 1;
  }
}

.pdf-chrome {
  min-width: 0;
}

.pdf-studio.is-plot-report {
  --pdf-accent: #1b6b63;
  --prpt-ink: #161616;
  --prpt-accent: #16382f;
  --prpt-surface: #f4f1ea;
  --pr-ribbon-ink: #1a2420;
  --pr-ribbon-teal: #1b6b63;
}

.pdf-studio.is-plot-report .pdf-toolbar {
  display: none !important;
}
.pdf-studio.is-plot-report .pdf-inspector {
  display: none !important;
}
.pdf-studio.is-plot-report .pdf-workspace {
  grid-template-columns: 220px minmax(360px, 1fr);
}

.pdf-studio:not(.is-plot-report) .plot-report-ribbon {
  display: none !important;
}
.pdf-studio.is-plot-report [data-plot-chrome="hide"] {
  display: none !important;
}
.pdf-studio.is-plot-report .pdf-brand-icon {
  background: color-mix(in srgb, var(--prpt-accent, #16382f) 10%, #f7f4ee);
}
.pdf-studio.is-plot-report .pdf-tool-btn.active {
  border-color: color-mix(in srgb, var(--prpt-accent, #16382f) 32%, #d8dde6);
  background: color-mix(in srgb, var(--prpt-accent, #16382f) 8%, #fff);
  color: var(--prpt-ink, #161616);
  box-shadow: none;
}
.pdf-studio.is-plot-report .pdf-tool-btn.primary {
  border-color: var(--pdf-accent, #1b6b63);
  background: var(--pdf-accent, #1b6b63);
  color: #fff;
}
.pdf-studio.is-plot-report .pdf-pages-host {
  background: #e4e0d8;
  padding: 18px 16px 48px;
  scroll-behavior: auto;
}
.pdf-studio.is-plot-report .pdf-plot-report-host {
  zoom: var(--plot-report-scale, 1);
}
.pdf-studio.is-plot-report .plot-report-pdf-page {
  width: 210mm;
  height: 297mm;
  overflow: hidden;
  background: var(--prpt-surface, #f4f1ea);
  contain: none;
  box-shadow: 0 8px 24px rgba(48, 40, 32, .08);
}
.pdf-studio.is-plot-report .plot-report-pdf-page .plot-report-page {
  margin: 0;
  box-shadow: none;
  width: 210mm;
  height: 297mm;
  max-width: none;
}
.pdf-studio.is-plot-report[data-tool="select"] .plot-report-page,
.pdf-studio.is-plot-report[data-tool="highlight"] .plot-report-page,
.pdf-studio.is-plot-report[data-tool="underline"] .plot-report-page,
.pdf-studio.is-plot-report[data-tool="strikeout"] .plot-report-page {
  cursor: text;
  user-select: text;
}
.pdf-studio.is-plot-report[data-tool="redaction"] .plot-report-page,
.pdf-studio.is-plot-report[data-tool="signature"] .plot-report-page,
.pdf-studio.is-plot-report[data-tool="ink"] .plot-report-page,
.pdf-studio.is-plot-report[data-tool="line"] .plot-report-page,
.pdf-studio.is-plot-report[data-tool="arrow"] .plot-report-page,
.pdf-studio.is-plot-report[data-tool="rectangle"] .plot-report-page,
.pdf-studio.is-plot-report[data-tool="ellipse"] .plot-report-page,
.pdf-studio.is-plot-report[data-tool="free_text"] .plot-report-page,
.pdf-studio.is-plot-report[data-tool="note"] .plot-report-page {
  cursor: crosshair;
}
.pdf-studio.is-plot-report:not([data-tool="hand"]) [data-plot-report-role] {
  cursor: inherit;
}
.pdf-studio.is-plot-report .plot-report-page {
  max-width: 210mm;
}
.pdf-studio.is-plot-report .pdf-thumb:hover,
.pdf-studio.is-plot-report .pdf-thumb.active {
  border-color: color-mix(in srgb, var(--prpt-accent, #16382f) 32%, #d8dde6);
  background: color-mix(in srgb, var(--prpt-accent, #16382f) 8%, #fff);
}
.pdf-studio.is-plot-report .pdf-thumb.is-checked {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--prpt-accent, #16382f) 42%, transparent);
}
.pdf-studio.is-plot-report [data-plot-report-role].is-selected {
  outline: 1px solid color-mix(in srgb, var(--prpt-accent, #16382f) 52%, #6b645c);
  outline-offset: 2px;
}

.plot-report-ribbon {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  height: 118px;
  min-height: 118px;
  max-height: 118px;
  overflow: hidden;
  background: #f7f5f0;
  border-bottom: 1px solid #d5d0c6;
  color: var(--pr-ribbon-ink, #1a2420);
}
.plot-report-ribbon-tabs {
  display: flex;
  flex: 0 0 26px;
  align-items: stretch;
  height: 26px;
  min-height: 26px;
  gap: 0;
  padding: 0 8px;
  overflow: hidden;
  background: #efece4;
  border-bottom: 1px solid #ddd8ce;
}
.plot-report-ribbon-kicker {
  display: grid;
  align-items: center;
  margin-right: 8px;
  padding-right: 8px;
  border-right: 1px solid #ddd8ce;
  color: var(--pr-ribbon-teal, #1b6b63);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.plot-report-ribbon-tab {
  position: relative;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: #5c645e;
  font: 650 11px/26px inherit;
  cursor: pointer;
}
.plot-report-ribbon-tab:hover {
  color: var(--pr-ribbon-ink, #1a2420);
  background: color-mix(in srgb, #fff 55%, #efece4);
}
.plot-report-ribbon-tab.is-active,
.plot-report-ribbon-tab[aria-selected="true"] {
  color: var(--pr-ribbon-teal, #1b6b63);
  background: #f7f5f0;
}
.plot-report-ribbon-tab.is-active::after,
.plot-report-ribbon-tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 0;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: var(--pr-ribbon-teal, #1b6b63);
}
.plot-report-ribbon-body {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  align-items: stretch;
  height: 92px;
  min-height: 92px;
  max-height: 92px;
  gap: 0;
  padding: 4px 6px 2px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}
.plot-report-ribbon-group {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
  padding: 0 8px;
  border-right: 1px solid #e4dfd4;
}
.plot-report-ribbon-group:last-child {
  border-right: 0;
}
.plot-report-ribbon-items,
.plot-report-ribbon-items.is-wrap,
.plot-report-ribbon-items.is-stack {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(2, 28px);
  grid-auto-columns: max-content;
  align-content: center;
  align-items: center;
  gap: 3px 4px;
  min-height: 59px;
  max-height: 59px;
  max-width: none;
}
.plot-report-ribbon-themes {
  display: contents;
}
.plot-report-ribbon-group.is-wide {
  flex: 0 0 auto;
}
.plot-report-ribbon-group.is-wide .plot-report-ribbon-items.is-wrap {
  max-width: none;
}
.plot-report-ribbon-field {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  min-height: 28px;
  color: #4a524c;
  font-size: 11px;
  white-space: nowrap;
}
.plot-report-ribbon-field > span {
  min-width: 36px;
  color: #6b726c;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.plot-report-ribbon-field input[type="text"],
.plot-report-ribbon-field .pdf-token-input {
  width: 108px;
  max-width: 120px;
}
.plot-report-ribbon-check {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  font-size: 11px;
  color: #2b322e;
  white-space: nowrap;
}
.plot-report-ribbon-body.is-panel {
  display: block;
  height: 92px;
  min-height: 92px;
  max-height: 92px;
  overflow: auto;
  padding: 6px 10px;
}
.plot-report-ribbon-body.is-panel .pdf-property-grid {
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 2px 10px;
  font-size: 11px;
}
.plot-report-ribbon-body.is-panel .pdf-property-grid,
.plot-report-ribbon-body.is-panel .pdf-inspector-card,
.plot-report-ribbon-body.is-panel .plot-report-ribbon-group {
  margin-bottom: 6px;
}
.plot-report-ribbon-body.is-panel .pdf-ai-welcome p,
.plot-report-ribbon-body.is-panel .pdf-inspector-card p {
  margin: 2px 0 4px;
  font-size: 11px;
}
.plot-report-ribbon-body.is-panel .pdf-ai-input,
.plot-report-ribbon-body.is-panel textarea {
  min-height: 28px;
  height: 28px;
  max-height: 36px;
}
.plot-report-ribbon-label {
  flex: 0 0 12px;
  padding-top: 1px;
  color: #8a8478;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .04em;
  line-height: 12px;
  text-align: center;
  text-transform: uppercase;
}
.plot-report-ribbon-cmd {
  min-height: 26px;
  height: 28px;
  padding: 0 7px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: #2b322e;
  font: 550 11px/1 inherit;
  white-space: nowrap;
  cursor: pointer;
}
.plot-report-ribbon-cmd:hover {
  border-color: #d5d0c6;
  background: #fff;
}
.plot-report-ribbon-cmd.is-active,
.plot-report-ribbon-cmd[aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--pr-ribbon-teal, #1b6b63) 40%, #d5d0c6);
  background: color-mix(in srgb, var(--pr-ribbon-teal, #1b6b63) 10%, #fff);
  color: var(--prpt-ink, #161616);
}
.plot-report-ribbon-cmd.is-primary {
  border-color: var(--pr-ribbon-teal, #1b6b63);
  background: var(--pr-ribbon-teal, #1b6b63);
  color: #fff;
}
.plot-report-ribbon-cmd:disabled {
  opacity: .42;
  cursor: not-allowed;
}
.plot-report-ribbon-select,
.plot-report-ribbon select,
.plot-report-ribbon input[type="number"],
.plot-report-ribbon .pdf-wide-select {
  min-height: 26px;
  height: 28px;
  max-width: 128px;
  padding: 0 6px;
  border: 1px solid #d5d0c6;
  border-radius: 5px;
  background: #fff;
  color: #1a2420;
  font: 12px/1 inherit;
}
.plot-report-ribbon input[type="number"] {
  width: 54px;
  max-width: 54px;
}
.plot-report-ribbon-color,
.plot-report-ribbon input[type="color"] {
  width: 28px;
  height: 28px;
  padding: 2px;
  border: 1px solid #d5d0c6;
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
}
.plot-report-ribbon-select.pdf-tool-scope {
  max-width: 108px;
}
.plot-report-ribbon-theme {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  min-width: 0;
  height: 28px;
  padding: 0 5px;
  border: 1px solid #ddd8ce;
  border-radius: 5px;
  background: #fff;
  color: #2b322e;
  text-align: left;
  cursor: pointer;
}
.plot-report-ribbon-theme.is-compact {
  min-width: 24px;
  width: 28px;
  padding: 3px;
  gap: 0;
}
.plot-report-ribbon-theme:hover {
  border-color: #b7b1a5;
}
.plot-report-ribbon-theme.is-active {
  border-color: var(--pr-ribbon-teal, #1b6b63);
  box-shadow: inset 0 0 0 1px var(--pr-ribbon-teal, #1b6b63);
}
.plot-report-ribbon-swatch {
  display: flex;
  width: 22px;
  height: 12px;
  overflow: hidden;
  border-radius: 2px;
}
.plot-report-ribbon-theme.is-compact .plot-report-ribbon-swatch {
  width: 100%;
  height: 100%;
}
.plot-report-ribbon-swatch i {
  flex: 1 1 auto;
}
.plot-report-ribbon-theme-name {
  overflow: hidden;
  max-width: 62px;
  font-size: 10px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pdf-thumb-paper.is-plot-report-thumb {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 4px;
  padding: 6px 5px 4px;
  overflow: hidden;
  background: var(--prpt-surface, #f4f1ea);
  color: var(--prpt-ink, #161616);
  font-size: 11px;
}
.pdf-thumb-paper.is-plot-report-thumb img,
.pdf-thumb-paper.is-plot-report-thumb svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 70%;
  object-fit: contain;
  pointer-events: none;
}
.pdf-thumb-paper.is-plot-report-thumb small {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  color: color-mix(in srgb, var(--prpt-ink, #161616) 72%, #8a8178);
  font-size: 10px;
  line-height: 1.3;
}
.pdf-layout-field {
  display: grid;
  gap: 4px;
  margin: 8px 0;
}
.pdf-layout-field > span {
  color: var(--pdf-muted, #667085);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.pdf-layout-tokens {
  margin: 8px 0 0;
  color: var(--pdf-muted, #667085);
  font-size: 12px;
}
.pdf-inline-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.pdf-tool-scope {
  min-width: 9.5rem;
}
.pdf-token-menu {
  position: fixed;
  z-index: 80;
  max-height: min(320px, 50vh);
  overflow: auto;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  padding: 6px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(16, 24, 40, .18);
}
.pdf-token-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 7px 8px;
  background: transparent;
  color: #101828;
  text-align: left;
  cursor: pointer;
}
.pdf-token-option kbd {
  flex: 0 0 auto;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  padding: 1px 6px;
  background: #f8fafc;
  font: 600 11px ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #0f766e;
}
.pdf-token-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.pdf-token-copy strong {
  font-size: 12px;
}
.pdf-token-copy small {
  color: #667085;
  font-size: 11px;
  line-height: 1.3;
}
.pdf-token-option.is-active,
.pdf-token-option:hover {
  background: #f0fdf9;
}

#plotReportPrintRoot { display: none; }
body.printing-plot-report #plotReportPrintRoot { display: block !important; }
body.printing-plot-report .plot-report-pdf-page {
  width: 210mm;
  height: 297mm;
  box-shadow: none;
  overflow: hidden;
}
body.printing-plot-report .plot-report-pdf-page .plot-report-page {
  margin: 0;
  box-shadow: none;
}

@media print {
  body.printing-plot-report * {
    visibility: visible !important;
  }
  body.printing-plot-report .pdf-studio-root,
  body.printing-plot-report > *:not(#plotReportPrintRoot) {
    display: none !important;
    visibility: hidden !important;
  }
  body.printing-plot-report #plotReportPrintRoot {
    display: block !important;
    position: static !important;
    visibility: visible !important;
  }
  body.printing-plot-report .plot-report-page {
    display: flex !important;
    width: 210mm !important;
    height: 297mm !important;
    max-height: 297mm !important;
    margin: 0 !important;
    box-shadow: none !important;
    overflow: hidden !important;
    break-after: page;
    page-break-after: always;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  body.printing-plot-report .plot-report-page:last-child {
    break-after: auto;
    page-break-after: auto;
  }
}

/* Report style gallery — the ten finished plot-report looks. */
.pdf-theme-card p {
  margin: 4px 0 9px;
}

.pdf-theme-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.pdf-theme-swatch {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 7px 8px;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  background: #fff;
  color: #344054;
  text-align: left;
  cursor: pointer;
}

.pdf-theme-swatch:hover {
  border-color: #98a2b3;
}

.pdf-studio.is-plot-report .pdf-theme-swatch.is-active {
  border-color: var(--prpt-accent, #16382f);
  box-shadow: inset 0 0 0 1px var(--prpt-accent, #16382f);
}

.pdf-theme-chips {
  display: flex;
  height: 14px;
  overflow: hidden;
  border-radius: 3px;
}

.pdf-theme-chips i {
  flex: 1 1 auto;
}

.pdf-theme-name {
  overflow: hidden;
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
