/* Basic reset and dark theme */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Noto Sans";
  background: #0b0f14;
  color: #eef2f6;
  line-height: 1.6;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.no-select, .guard, .guard * {
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.header { text-align: center; margin-bottom: 10px; }
h1 { margin: 0 0 4px; font-size: 1.6rem; }
.subtitle { margin: 0 0 10px; color: #a8b3c7; font-size: 0.95rem; }

.actions { display: flex; justify-content: center; }
.btn.disabled {
  background: #273245;
  color: #93a0b6;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid #2b3650;
  font-weight: 600;
  cursor: not-allowed;
}

.viewer {
  margin-top: 12px;
  background: #0f1520;
  border: 1px solid #1b2540;
  border-radius: 16px;
  padding: 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,.25);
}

.pdf-frame {
  display: block;
  width: 100%;
  height: min(80vh, 1100px);
  border: 0;
}

.overlay {
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: auto;
}

.watermark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  font-weight: 700;
  font-size: 3rem;
  line-height: 1;
  opacity: 0.08;
  transform: rotate(-20deg);
  letter-spacing: 1px;
  user-select: none;
}

.footer { margin-top: 14px; text-align: center; color: #9aa7bd; }
