.jsc-app,
.jsc-app * {
  box-sizing: border-box;
}

.jsc-app {
  --jsc-bg: #111113;
  --jsc-card: #1c1c1e;
  --jsc-line: #343438;
  --jsc-green: #399841;
  --jsc-orange: #ffad2b;
  --jsc-digit-size: 40px;
  --jsc-digit-gap: 5px;
  position: fixed !important;
  z-index: 2147483000;
  inset: 0;
  display: block;
  width: 100vw !important;
  max-width: none !important;
  height: 100vh;
  height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 0 !important;
  padding: 18px 28px 25px;
  border: 0;
  border-radius: 0;
  background: var(--jsc-bg);
  color: #f7f7f8;
  font: 400 16px/1.4 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-align: left;
  -webkit-overflow-scrolling: touch;
}

body.jsc-page-only {
  overflow: hidden !important;
}

body.jsc-page-only > :not(.jsc-app):not(#wpadminbar) {
  visibility: hidden !important;
}

body.jsc-page-only.admin-bar #wpadminbar {
  z-index: 2147483001;
}

.admin-bar .jsc-app {
  top: 32px;
  height: calc(100dvh - 32px);
}

.jsc-header,
.jsc-layout,
.jsc-footer {
  max-width: 1044px;
  margin-right: auto;
  margin-left: auto;
}

.jsc-app [hidden] {
  display: none !important;
}

.jsc-app button,
.jsc-app input {
  font: inherit;
}

.jsc-app button {
  cursor: pointer;
}

.jsc-app button:focus-visible,
.jsc-app input:focus-visible,
.jsc-app a:focus-visible {
  outline: 2px solid var(--jsc-orange);
  outline-offset: 2px;
}

.jsc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 63px;
  margin: 0 auto 15px;
  padding: 0 0 12px;
  border-bottom: 1px solid #303033;
}

.jsc-app .jsc-header h1 {
  margin: 0;
  color: #f5f5f6;
  font-size: clamp(22px, 7.4vw, 30px);
  font-weight: 850;
  letter-spacing: -.035em;
  line-height: 1.08;
  white-space: nowrap;
}

.jsc-header h1 span {
  position: relative;
}

.jsc-header h1 span::after {
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 5px;
  border-radius: 2px;
  background: var(--jsc-orange);
  content: "";
}

.jsc-state {
  display: grid;
  flex: none;
  place-items: center;
  width: 60px;
  height: 37px;
  border: 1px solid #5b5b64;
  border-radius: 22px;
  background: #242427;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.jsc-layout {
  display: grid;
  grid-template-columns: minmax(0, 425px) minmax(0, 1fr);
  align-items: start;
  gap: 28px;
}

.jsc-form,
.jsc-preview-wrap {
  min-width: 0;
}

.jsc-office {
  position: relative;
  min-width: 0;
  margin: 0 0 10px;
  padding: 11px 11px 12px;
  border: 1px solid var(--jsc-line);
  border-radius: 13px;
  background: var(--jsc-card);
}

.jsc-fixed {
  padding-bottom: 13px;
  border: 2px solid #e1ebf9;
  background: #ff811f;
}

.jsc-fixed .jsc-office-heading {
  margin-bottom: 14px;
}

.jsc-fixed .jsc-office-title,
.jsc-fixed .jsc-person-meta span {
  color: #fff;
}

.jsc-fixed .jsc-digit.is-filled {
  border-color: #fff;
  background: #fff;
  color: #1b2776;
}

.jsc-fixed .jsc-person-photo {
  border: 2px solid #fff;
}

.jsc-office-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 18px;
  margin-bottom: 9px;
}

.jsc-office-title {
  display: block;
  margin: 0;
  color: #bcbcc1;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1.3;
  text-transform: uppercase;
}

.jsc-clear {
  padding: 0;
  border: 0;
  background: transparent;
  color: #9f9fa4;
  font-size: 11px !important;
  line-height: 1.3;
}

.jsc-number-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
}

.jsc-digits {
  display: inline-flex;
  flex: none;
  gap: var(--jsc-digit-gap);
  max-width: 100%;
}

.jsc-digit {
  display: grid;
  flex: none;
  place-items: center;
  width: var(--jsc-digit-size);
  height: 48px;
  padding: 0;
  border: 1px solid #696a70;
  border-radius: 11px;
  background: #28282c;
  color: #fff;
  font-size: 27px;
  font-weight: 850;
  line-height: 1;
}

.jsc-digit.is-filled {
  border-color: var(--jsc-green);
  background: #141816;
}

.jsc-number-entry {
  position: relative;
  flex: none;
  max-width: 100%;
}

.jsc-number-input {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: transparent;
  caret-color: transparent;
  -webkit-text-fill-color: transparent;
  opacity: .04;
  font-size: 16px;
  cursor: text;
}

.jsc-number-entry:focus-within .jsc-digit {
  border-color: #8ed59a;
  box-shadow: 0 0 0 1px #8ed59a;
}

.jsc-number-entry:focus-within .jsc-digit.is-filled {
  background: #18301e;
}

.jsc-app .jsc-number-input:focus-visible {
  outline: 2px solid var(--jsc-orange);
  outline-offset: 2px;
}

.jsc-person-photo {
  flex: none;
  width: 47px;
  height: 49px;
  border: 1px solid var(--jsc-green);
  border-radius: 11px;
  background: #fff;
  object-fit: cover;
}

.jsc-person-meta {
  margin-top: 7px;
  line-height: 1.1;
}

.jsc-person-meta strong,
.jsc-person-meta span {
  display: block;
}

.jsc-person-meta strong {
  overflow-wrap: anywhere;
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.jsc-person-meta span {
  margin-top: 3px;
  color: #aaaab0;
  font-size: 11px;
}

.jsc-number-feedback {
  margin: 8px 0 0;
  color: #ffb1a2;
  font-size: 12px;
  line-height: 1.3;
}

.jsc-picker.is-invalid .jsc-number-entry .jsc-digit {
  border-color: #db7764;
  box-shadow: none;
}

.jsc-reset {
  min-height: 44px;
  margin: 6px 0 0;
  padding: 6px 10px;
  border: 1px solid #4e4e53;
  border-radius: 8px;
  background: #28282b;
  color: #ededee;
  font-size: 12px !important;
  font-weight: 700 !important;
}

.jsc-privacy {
  margin: 9px 0 0;
  color: #a5a5ab;
  font-size: 11px;
}

.jsc-preview-wrap {
  position: sticky;
  top: 15px;
}

.jsc-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 12px;
}

.jsc-button,
.jsc-preview-toggle {
  min-height: 45px;
  padding: 8px 11px;
  border: 1px solid #3f9b48;
  border-radius: 9px;
  background: #278a32;
  color: #fff;
  font-size: 13px !important;
  font-weight: 800 !important;
}

.jsc-button:hover:not(:disabled),
.jsc-preview-toggle:hover {
  background: #1f7629;
}

.jsc-button:disabled {
  opacity: .5;
  cursor: wait;
}

.jsc-download,
.jsc-pdf-download {
  grid-column: 1 / -1;
}

.jsc-pdf-download {
  border-color: #ffad2b;
  background: #b64d06;
}

.jsc-pdf-download:hover:not(:disabled) {
  background: #973e02;
}

.jsc-pdf-spec {
  margin: -4px 0 12px;
  color: #bfc2cb;
  font-size: 11px;
  line-height: 1.4;
}

.jsc-print,
.jsc-share {
  background: #242a25;
  color: #dcf5df;
}

.jsc-preview-toggle {
  display: none;
  width: 100%;
  margin-bottom: 12px;
  background: #28282b;
  border-color: #55555a;
}

.jsc-preview-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.jsc-preview-item {
  min-width: 0;
  margin: 0;
}

.jsc-preview-item figcaption {
  min-height: 32px;
  color: #ededee;
  font-size: 12px;
  font-weight: 700;
}

.jsc-preview {
  overflow: hidden;
  width: 100%;
  border-radius: 10px;
  background: #f1f5ff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .24);
}

.jsc-story-preview,
.jsc-compact-preview {
  display: block;
  width: 100%;
  height: auto;
}

.jsc-story-preview {
  aspect-ratio: 3 / 4;
}

.jsc-compact-preview {
  aspect-ratio: 4 / 5;
}

.jsc-progress,
.jsc-status,
.jsc-footer {
  color: #b5b5bb;
  font-size: 11px;
}

.jsc-progress {
  margin: 10px 0 0;
}

.jsc-status {
  min-height: 17px;
  margin: 3px 0 0;
}

.jsc-status.jsc-error {
  color: #ffb1a2;
}

.jsc-footer {
  margin-top: 17px;
  line-height: 1.6;
}

.jsc-footer a {
  color: #89d594;
  text-decoration: underline;
}

@media (max-width: 780px) {
  .jsc-app {
    padding: 0 18px 25px;
  }

  .admin-bar .jsc-app {
    top: 46px;
    height: calc(100dvh - 46px);
  }

  .jsc-layout {
    display: block;
  }

  .jsc-header,
  .jsc-layout,
  .jsc-footer {
    max-width: 460px;
  }

  .jsc-office {
    max-width: 460px;
  }

  .jsc-preview-wrap {
    position: static;
    max-width: 460px;
    padding-top: 8px;
  }

  .jsc-preview-toggle {
    display: block;
  }

  .jsc-preview-gallery {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .jsc-preview-wrap:not(.is-open) .jsc-preview-gallery {
    display: none;
  }
}

@media (max-width: 360px) {
  .jsc-app {
    --jsc-digit-size: 34px;
    --jsc-digit-gap: 4px;
    padding-right: 14px;
    padding-left: 14px;
  }

  .jsc-app .jsc-header h1 {
    font-size: 23px;
  }

  .jsc-state {
    width: 48px;
  }

  .jsc-person-photo {
    width: 43px;
    height: 46px;
  }

}

@media print {
  body * {
    visibility: hidden !important;
  }

  .jsc-app .jsc-preview-gallery,
  .jsc-app .jsc-preview-item,
  .jsc-app .jsc-preview,
  .jsc-app .jsc-preview * {
    visibility: visible !important;
  }

  .jsc-app,
  .admin-bar .jsc-app {
    position: static !important;
    inset: auto !important;
    height: auto !important;
    overflow: visible !important;
  }

  .jsc-app .jsc-preview-wrap,
  .jsc-app .jsc-preview-gallery,
  .jsc-app .jsc-preview {
    display: block !important;
  }

  .jsc-app .jsc-preview-item:nth-child(2),
  .jsc-app .jsc-preview-item figcaption {
    display: none !important;
  }

  .jsc-app .jsc-preview {
    position: absolute;
    top: 8mm;
    left: 28mm;
    width: 155mm;
    padding: 0;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  @page {
    size: A4;
    margin: 0;
  }
}
