.question-title-with-sample {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2px 12px;
  margin-bottom: 8px;
}
.question-title-with-sample .qtitle {
  flex: 1 1 190px;
  margin: 0;
}
.sample-trigger {
  min-height: 44px;
  padding: 4px 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--blue);
  font-size: .875rem;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.sample-trigger:hover {
  background: #eff5fc;
}
.sample-reference-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  max-width: 100%;
}
.sample-reference-actions .sample-trigger {
  min-width: 0;
  overflow-wrap: anywhere;
}
#material-sample-dialog {
  width: min(calc(100% - 24px), 760px);
  height: min(760px, calc(100% - 24px));
  height: min(760px, calc(100dvh - 24px));
  max-width: none;
  max-height: none;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
}
#material-sample-dialog[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}
#material-sample-dialog::backdrop {
  background: rgba(17, 33, 54, .62);
}
#material-sample-dialog [hidden] {
  display: none;
}
.sample-heading, .sample-controls, .sample-pagination {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sample-heading, .sample-controls {
  padding: 10px 12px;
  justify-content: space-between;
}
.sample-heading h2 {
  min-width: 0;
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
#material-sample-dialog .secondary {
  flex-shrink: 0;
  min-height: 44px;
  padding: 5px 9px;
  white-space: nowrap;
  font-size: .875rem;
}
#material-sample-dialog .secondary:disabled {
  opacity: .55;
  cursor: default;
}
#material-sample-original {
  display: inline-flex;
  align-items: center;
  color: var(--blue);
}
.sample-body {
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  min-height: 0;
  border-block: 1px solid var(--line);
  background: #f2f5fa;
}
#material-sample-image {
  overflow: auto;
  overscroll-behavior: contain;
  padding: 8px;
}
#material-sample-image img {
  display: block;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
}
#material-sample-image.is-zoomed img {
  width: 180%;
  max-width: none;
  margin: 0;
}
#material-sample-message {
  align-self: center;
  justify-self: center;
  padding: 12px;
  text-align: center;
}
#material-sample-status {
  margin: 0 0 8px;
  color: var(--muted);
}
.sample-controls {
  flex-wrap: wrap;
}
#material-sample-counter {
  white-space: nowrap;
  font-size: .8125rem;
  color: var(--muted);
}
