@charset "UTF-8";

:root {
  --wp15-navy: #1c335a;
  --wp15-navy-deep: #102441;
  --wp15-coral: #ec606b;
  --wp15-coral-soft: #fff1f2;
  --wp15-green: #287257;
  --wp15-green-soft: #eaf6f0;
  --wp15-ink: #182436;
  --wp15-muted: #617087;
  --wp15-line: #d8dee8;
  --wp15-surface: #f4f6f9;
}

.wp15-hidden {
  display: none !important;
}

body.wp15-open {
  margin-top: 0 !important;
  overflow: hidden !important;
}

body.wp15-open .hthb-notification {
  display: none !important;
}

.wp15-modal,
.wp15-modal * {
  box-sizing: border-box;
  letter-spacing: 0;
}

.wp15-modal {
  background: rgba(9, 17, 30, 0.78);
  display: none;
  inset: 0;
  overflow: auto;
  padding: 18px;
  position: fixed;
  z-index: 2147483001;
}

.wp15-modal.is-open {
  display: block;
}

.wp15-dialog {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.34);
  color: var(--wp15-ink);
  margin: 0 auto;
  max-width: 1220px;
  min-height: calc(100vh - 36px);
  overflow: hidden;
}

.wp15-header {
  align-items: center;
  background: var(--wp15-navy);
  color: #fff;
  display: flex;
  justify-content: space-between;
  min-height: 64px;
  padding: 12px 18px;
}

.wp15-header-title {
  display: grid;
  gap: 2px;
}

.wp15-header-title strong {
  font-size: 18px;
  line-height: 1.25;
}

.wp15-header-title span {
  color: #d8e2f0;
  font-size: 12px;
  line-height: 1.3;
}

.wp15-icon-button {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: 24px;
  height: 38px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 38px;
}

.wp15-progress {
  background: #fff;
  border-bottom: 1px solid var(--wp15-line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 0 18px;
}

.wp15-progress span {
  align-items: center;
  color: var(--wp15-muted);
  display: flex;
  font-size: 12px;
  font-weight: 700;
  gap: 8px;
  justify-content: center;
  min-height: 48px;
  position: relative;
}

.wp15-progress span::before {
  align-items: center;
  background: #e9edf3;
  border-radius: 50%;
  color: var(--wp15-muted);
  content: attr(data-number);
  display: inline-flex;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.wp15-progress span.is-current {
  color: var(--wp15-navy);
}

.wp15-progress span.is-current::after {
  background: var(--wp15-coral);
  bottom: -1px;
  content: '';
  height: 3px;
  left: 22%;
  position: absolute;
  right: 22%;
}

.wp15-progress span.is-current::before {
  background: var(--wp15-coral);
  color: #fff;
}

.wp15-progress span.is-complete {
  color: var(--wp15-green);
}

.wp15-progress span.is-complete::before {
  background: var(--wp15-green);
  color: #fff;
  content: '✓';
}

.wp15-intro {
  display: grid;
  grid-template-columns: minmax(380px, 1.05fr) minmax(360px, 0.95fr);
  min-height: 650px;
}

.wp15-intro-visual {
  background: #dfe5ec;
  min-height: 520px;
  overflow: hidden;
  position: relative;
}

.wp15-intro-visual > img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.wp15-camera-frame {
  border: 2px solid rgba(255, 255, 255, 0.95);
  inset: 8%;
  pointer-events: none;
  position: absolute;
}

.wp15-camera-frame::before,
.wp15-camera-frame::after {
  background: var(--wp15-coral);
  content: '';
  left: 10%;
  position: absolute;
  right: 10%;
}

.wp15-camera-frame::before {
  animation: wp15-scan 2.6s ease-in-out infinite;
  box-shadow: 0 0 16px rgba(236, 96, 107, 0.58);
  height: 2px;
  top: 16%;
}

.wp15-camera-frame::after {
  background: rgba(255, 255, 255, 0.92);
  bottom: 20px;
  height: 1px;
}

.wp15-visual-note {
  background: rgba(16, 36, 65, 0.93);
  bottom: 20px;
  color: #fff;
  left: 20px;
  max-width: calc(100% - 40px);
  padding: 11px 14px;
  position: absolute;
}

.wp15-visual-note strong,
.wp15-visual-note span {
  display: block;
}

.wp15-visual-note strong {
  font-size: 14px;
}

.wp15-visual-note span {
  color: #dbe5f2;
  font-size: 12px;
  margin-top: 2px;
}

@keyframes wp15-scan {
  0%, 100% { top: 16%; }
  50% { top: 78%; }
}

.wp15-intro-copy {
  align-self: center;
  padding: 42px clamp(24px, 4vw, 58px);
}

.wp15-kicker {
  color: var(--wp15-coral);
  font-size: 12px;
  font-weight: 800;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.wp15-intro h2 {
  color: var(--wp15-navy);
  font-family: Arial, sans-serif;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.12;
  margin: 0;
}

.wp15-lead {
  color: var(--wp15-muted);
  font-size: 15px;
  line-height: 1.55;
  margin: 14px 0 20px;
}

.wp15-instructions {
  border-bottom: 1px solid var(--wp15-line);
  border-top: 1px solid var(--wp15-line);
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
}

.wp15-instructions li {
  align-items: flex-start;
  display: grid;
  gap: 12px;
  grid-template-columns: 30px 1fr;
  padding: 13px 0;
}

.wp15-instructions li + li {
  border-top: 1px solid #edf0f4;
}

.wp15-instructions b {
  align-items: center;
  background: var(--wp15-navy);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  font-size: 12px;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.wp15-instructions strong,
.wp15-instructions span {
  display: block;
}

.wp15-instructions strong {
  color: var(--wp15-navy);
  font-size: 14px;
  line-height: 1.35;
}

.wp15-instructions span {
  color: var(--wp15-muted);
  font-size: 12px;
  line-height: 1.45;
  margin-top: 2px;
}

.wp15-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.wp15-button,
.wp15-file-button,
.wp15-link-button {
  align-items: center;
  appearance: none;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  font-family: inherit;
  font-size: 13px;
  font-weight: 750;
  justify-content: center;
  line-height: 1.25;
  min-height: 42px;
  padding: 9px 14px;
  text-decoration: none;
}

.wp15-button-primary,
.wp15-file-button {
  background: var(--wp15-coral);
  color: #fff;
}

.wp15-button-secondary,
.wp15-link-button {
  background: #fff;
  border-color: #aeb9c8;
  color: var(--wp15-navy);
}

.wp15-button-navy {
  background: var(--wp15-navy);
  color: #fff;
}

.wp15-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.wp15-file-button {
  position: relative;
}

.wp15-file-button input {
  inset: 0;
  opacity: 0;
  position: absolute;
  width: 100%;
}

.wp15-print-tip {
  color: var(--wp15-muted);
  font-size: 11px;
  line-height: 1.4;
  margin: 10px 0 0;
}

.wp15-a4-link {
  color: var(--wp15-navy);
  cursor: pointer;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.wp15-work {
  background: var(--wp15-surface);
  min-height: 650px;
}

.wp15-toolbar {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--wp15-line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 16px;
}

.wp15-toolbar-group {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wp15-toolbar-group + .wp15-toolbar-group {
  border-left: 1px solid var(--wp15-line);
  padding-left: 10px;
}

.wp15-toolbar-spacer {
  flex: 1;
}

.wp15-dimension {
  align-items: center;
  color: var(--wp15-muted);
  display: inline-flex;
  font-size: 11px;
  font-weight: 700;
  gap: 6px;
}

.wp15-dimension input {
  background: #fff;
  border: 1px solid #b8c1cf;
  border-radius: 4px;
  color: var(--wp15-navy);
  font: inherit;
  min-height: 38px;
  padding: 7px;
  width: 76px;
}

.wp15-range {
  align-items: center;
  color: var(--wp15-muted);
  display: inline-flex;
  font-size: 11px;
  font-weight: 700;
  gap: 7px;
}

.wp15-range input {
  accent-color: var(--wp15-coral);
  width: 96px;
}

.wp15-range input[type="range"] {
  appearance: none !important;
  background: #cfd6e0 !important;
  border: 0 !important;
  border-radius: 2px !important;
  box-shadow: none !important;
  height: 4px !important;
  margin: 0 !important;
  min-height: 4px !important;
  padding: 0 !important;
  width: 96px !important;
}

.wp15-range input[type="range"]::-webkit-slider-thumb {
  appearance: none !important;
  background: var(--wp15-coral) !important;
  border: 2px solid #fff !important;
  border-radius: 50% !important;
  box-shadow: 0 0 0 1px #9ca8b8 !important;
  height: 18px !important;
  width: 18px !important;
}

.wp15-range input[type="range"]::-moz-range-thumb {
  background: var(--wp15-coral) !important;
  border: 2px solid #fff !important;
  border-radius: 50% !important;
  box-shadow: 0 0 0 1px #9ca8b8 !important;
  height: 14px !important;
  width: 14px !important;
}

.wp15-toggle {
  align-items: center;
  color: var(--wp15-navy);
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  gap: 7px;
  min-height: 38px;
}

.wp15-toggle input {
  accent-color: var(--wp15-navy);
  height: 18px;
  width: 18px;
}

.wp15-stage-wrap {
  margin: 0 auto;
  max-width: 1188px;
  padding: 16px;
}

.wp15-stage {
  background: #ccd3dc;
  min-height: 360px;
  overflow: hidden;
  position: relative;
}

.wp15-stage canvas {
  display: block;
  height: auto;
  max-height: calc(100vh - 245px);
  object-fit: contain;
  touch-action: none;
  width: 100%;
}

.wp15-stage canvas[data-mode="place"] {
  cursor: crosshair;
}

.wp15-stage canvas[data-mode="manual"] {
  cursor: crosshair;
}

.wp15-stage canvas[data-mode="erase"],
.wp15-stage canvas[data-mode="restore"] {
  cursor: cell;
}

.wp15-scan-overlay {
  align-items: center;
  background: rgba(16, 36, 65, 0.78);
  color: #fff;
  display: none;
  flex-direction: column;
  inset: 0;
  justify-content: center;
  position: absolute;
}

.wp15-scan-overlay.is-visible {
  display: flex;
}

.wp15-scan-symbol {
  border: 2px solid rgba(255, 255, 255, 0.62);
  height: 92px;
  overflow: hidden;
  position: relative;
  width: 92px;
}

.wp15-scan-symbol::after {
  animation: wp15-symbol-scan 1.5s ease-in-out infinite;
  background: var(--wp15-coral);
  box-shadow: 0 0 12px rgba(236, 96, 107, 0.72);
  content: '';
  height: 2px;
  left: 8px;
  position: absolute;
  right: 8px;
  top: 12px;
}

@keyframes wp15-symbol-scan {
  0%, 100% { top: 12px; }
  50% { top: 76px; }
}

.wp15-scan-overlay strong {
  font-size: 16px;
  margin-top: 14px;
}

.wp15-scan-overlay span {
  color: #dce5f1;
  font-size: 12px;
  margin-top: 4px;
}

.wp15-statusbar {
  align-items: center;
  background: #fff;
  border-top: 1px solid var(--wp15-line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-height: 58px;
  padding: 10px 16px;
}

.wp15-status {
  align-items: flex-start;
  color: var(--wp15-muted);
  display: flex;
  font-size: 12px;
  gap: 9px;
  line-height: 1.4;
}

.wp15-status::before {
  background: #9aa6b7;
  border-radius: 50%;
  content: '';
  flex: 0 0 auto;
  height: 10px;
  margin-top: 3px;
  width: 10px;
}

.wp15-status[data-state="success"] {
  color: var(--wp15-green);
}

.wp15-status[data-state="success"]::before {
  background: var(--wp15-green);
}

.wp15-status[data-state="warning"] {
  color: #8a5a18;
}

.wp15-status[data-state="warning"]::before {
  background: #d79839;
}

.wp15-status[data-state="error"] {
  color: #91424a;
}

.wp15-status[data-state="error"]::before {
  background: var(--wp15-coral);
}

.wp15-manualbar {
  align-items: center;
  background: var(--wp15-coral-soft);
  border-bottom: 1px solid #f0c3c7;
  display: none;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 16px;
}

.wp15-manualbar.is-visible {
  display: flex;
}

.wp15-manualbar strong {
  color: var(--wp15-navy);
  font-size: 12px;
  margin-right: auto;
}

.wp15-manual-sequence {
  color: var(--wp15-muted);
  font-size: 11px;
}

.wp15-quality {
  align-items: center;
  background: var(--wp15-green-soft);
  border-bottom: 1px solid #c2e1d4;
  color: var(--wp15-green);
  display: none;
  font-size: 12px;
  font-weight: 700;
  gap: 9px;
  justify-content: center;
  padding: 9px 16px;
}

.wp15-quality.is-visible {
  display: flex;
}

.wp15-error {
  background: #fff1f2;
  border: 1px solid #efb8bd;
  color: #853f46;
  display: none;
  font-size: 12px;
  line-height: 1.4;
  margin-top: 10px;
  padding: 9px 11px;
}

.wp15-error.is-visible {
  display: block;
}

@media (max-width: 860px) {
  .wp15-modal {
    padding: 0;
  }

  .wp15-dialog {
    border-radius: 0;
    min-height: 100vh;
  }

  .wp15-intro {
    grid-template-columns: 1fr;
  }

  .wp15-intro-visual {
    aspect-ratio: 16 / 10;
    min-height: 0;
  }

  .wp15-intro-copy {
    padding: 26px 22px 34px;
  }

  .wp15-toolbar-spacer {
    display: none;
  }

  .wp15-toolbar-group + .wp15-toolbar-group {
    border-left: 0;
    padding-left: 0;
  }

  .wp15-stage-wrap {
    padding: 0;
  }

  .wp15-stage canvas {
    max-height: none;
  }

  .wp15-statusbar {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .wp15-header {
    min-height: 58px;
  }

  .wp15-header-title strong {
    font-size: 15px;
  }

  .wp15-progress {
    padding: 0 8px;
  }

  .wp15-progress span {
    font-size: 10px;
    gap: 5px;
    min-height: 44px;
  }

  .wp15-progress span::before {
    height: 21px;
    width: 21px;
  }

  .wp15-intro h2 {
    font-size: 27px;
  }

  .wp15-actions,
  .wp15-actions > * {
    width: 100%;
  }

  .wp15-toolbar {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .wp15-toolbar-group {
    display: contents;
  }

  .wp15-dimension,
  .wp15-range,
  .wp15-toggle {
    justify-content: space-between;
  }

  .wp15-range,
  .wp15-toggle {
    grid-column: 1 / -1;
  }

  .wp15-toolbar .wp15-button,
  .wp15-toolbar .wp15-file-button {
    min-width: 0;
    width: 100%;
  }

  .wp15-stage {
    min-height: 260px;
  }

  .wp15-statusbar .wp15-actions,
  .wp15-statusbar .wp15-actions > * {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wp15-camera-frame::before,
  .wp15-scan-symbol::after {
    animation: none;
  }
}
