input.ce.ce-ok, select.ce.ce-ok {
  border-color: #187249;
}
input.ce.ce-error, select.ce.ce-error {
  border-color: #B32F24;
  background: #FFF8F7;
}
.ce-hint {
  margin-top: 8px;
  min-height: 16px;
  font: 400 11px/1.4 "IBM Plex Mono", monospace;
  color: #B32F24;
}
.ce-hint.is-ok {
  color: #187249;
}
.ce-syntax {
  margin-top: 8px;
  font: 400 12.5px/1.4 "IBM Plex Mono", monospace;
  word-break: break-all;
}
.ce-syntax .loc { color: #12262B; }
.ce-syntax .at { color: #0A7570; font-weight: 500; }
.ce-syntax .dom { color: #42585C; }
.ce-syntax .tld { color: #187249; }
.ce-syntax .bad { color: #B32F24; background: #FFF8F7; }
.ce-syntax .muted { color: #9DB2B5; }
.ce-syntax .ok { color: #187249; }
.ce-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}
.ce-pdf {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: none;
}
.ce-pdf.is-on { display: block; }
.ce-pdf-bg {
  position: absolute;
  inset: 0;
  background: rgba(18, 38, 43, 0.72);
}
.ce-pdf-frame {
  position: relative;
  z-index: 1;
  width: min(1100px, calc(100vw - 32px));
  height: min(860px, calc(100vh - 32px));
  margin: 16px auto;
  background: #FFFFFF;
  border: 1px solid #12262B;
  display: flex;
  flex-direction: column;
}
.ce-pdf.is-arming { pointer-events: none; }
.ce-pdf-head {
  flex: 0 0 auto;
  background: #12262B;
  color: #FFFFFF;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 16px;
}
.ce-pdf-title {
  font: 500 11.5px/1.3 "IBM Plex Mono", monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  min-width: 0;
  flex: 1 1 220px;
}
.ce-pdf-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}
.ce-pdf-tools button,
.ce-pdf-tools a {
  font: 600 12px/1 "IBM Plex Sans", sans-serif;
  color: #12262B;
  background: #14B5AE;
  border: none;
  padding: 8px 12px;
  min-height: 32px;
  min-width: 32px;
  cursor: pointer;
  text-decoration: none;
}
.ce-pdf-tools button[disabled] {
  background: #EEF3F3;
  color: #5C6E71;
  cursor: default;
}
.ce-pdf-tools .ce-pdf-ghost {
  background: transparent;
  color: #FFFFFF;
  border: 1.5px solid #9DB2B5;
}
.ce-pdf-count,
.ce-pdf-zoom {
  font: 400 11px/1 "IBM Plex Mono", monospace;
  color: #9DB2B5;
  letter-spacing: 0.06em;
  min-width: 52px;
  text-align: center;
}
.ce-pdf-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  background: #F5F8F8;
  padding: 24px;
}
.ce-pdf-stage {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100%;
}
.ce-pdf-body canvas {
  display: block;
  background: #FFFFFF;
  border: 1px solid #D8E2E2;
}
.ce-pdf-status {
  font: 400 14px/1.5 "IBM Plex Sans", sans-serif;
  color: #42585C;
  padding: 24px;
  text-align: center;
}
.ce-pdf-status.is-error { color: #B32F24; }
@media (max-width: 720px) {
  .ce-pdf-frame { width: calc(100vw - 16px); height: calc(100vh - 16px); margin: 8px auto; }
  .ce-pdf-title { flex-basis: 100%; }
}
