.p2w-body { padding: clamp(16px, 2.4vw, 24px); }

.p2w-drop {
  border: 2px dashed var(--border-strong);
  border-radius: var(--r-lg, 16px);
  background: var(--bg-soft);
  padding: clamp(28px, 5vw, 52px) 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.p2w-drop:hover { border-color: var(--primary); background: var(--tint-purple); }
.p2w-drop.over  { border-color: var(--primary); background: var(--tint-purple); transform: scale(1.005); }
.p2w-drop:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

.p2w-drop-ic {
  width: 62px; height: 62px; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 18px;
  background: var(--bg); box-shadow: var(--shadow-sm);
}
.p2w-drop-ic .micon { width: 28px; height: 28px; color: var(--primary); }
.p2w-drop h2 { font-size: 1.05rem; font-weight: 600; color: var(--heading); margin-bottom: 6px; }
.p2w-drop p  { font-size: .88rem; color: var(--muted); margin: 0; }
.p2w-drop .p2w-browse { color: var(--primary); font-weight: 600; text-decoration: underline; }
.p2w-drop-note { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.p2w-drop-note span {
  font-size: .74rem; font-weight: 600; color: var(--muted);
  background: var(--bg); border: 1px solid var(--border);
  padding: 4px 10px; border-radius: var(--r-pill);
}

.p2w-file {
  display: flex; align-items: center; gap: 14px;
  border: 1px solid var(--border); border-radius: 14px;
  background: var(--bg-soft); padding: 12px 14px;
}
.p2w-file-ic {
  width: 42px; height: 42px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px; background: var(--tint-red);
}
.p2w-file-ic .micon { width: 20px; height: 20px; color: #DC2626; }
.p2w-file-meta { min-width: 0; flex: 1; }
.p2w-file-name {
  display: block; font-weight: 600; color: var(--heading); font-size: .92rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.p2w-file-sub { font-size: .78rem; color: var(--muted); }
.p2w-file-x {
  flex-shrink: 0; width: 32px; height: 32px; border: 1px solid var(--border);
  border-radius: 9px; background: var(--bg); color: var(--muted);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: color .2s ease, border-color .2s ease;
}
.p2w-file-x:hover { color: #E0415B; border-color: #E0415B; }
.p2w-file-x .micon { width: 15px; height: 15px; }

.p2w-opts {
  display: grid; gap: 12px; margin: 18px 0;
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
}
.p2w-opt label {
  display: block; font-size: .72rem; font-weight: 700; letter-spacing: .4px;
  text-transform: uppercase; color: var(--muted); margin-bottom: 5px;
}
.p2w-opt select,
.p2w-opt input[type="text"] {
  width: 100%; padding: 8px 10px;
  border: 1px solid var(--border); border-radius: 9px;
  background: var(--bg); color: var(--heading);
  font-family: inherit; font-size: .86rem; font-weight: 500;
}
.p2w-opt select:focus,
.p2w-opt input[type="text"]:focus { outline: none; border-color: var(--primary); }

.p2w-check {
  display: flex; align-items: flex-start; gap: 9px;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--bg-soft); padding: 10px 12px; cursor: pointer;
}
.p2w-check input { margin-top: 3px; accent-color: var(--primary); flex-shrink: 0; }
.p2w-check span { font-size: .82rem; color: var(--heading); font-weight: 600; line-height: 1.35; }
.p2w-check small { display: block; font-weight: 400; color: var(--muted); font-size: .75rem; }

.p2w-progress { margin: 4px 0 18px; display: none; }
.p2w-progress.show { display: block; }
.p2w-progress-track { height: 6px; border-radius: var(--r-pill); background: var(--bg-soft); overflow: hidden; }
.p2w-progress-bar {
  height: 100%; width: 0; border-radius: var(--r-pill);
  background: var(--primary-grad); transition: width .3s ease;
}
.p2w-progress-txt { margin-top: 7px; font-size: .8rem; color: var(--muted); font-weight: 500; }

.p2w-alert {
  display: none; gap: 10px; align-items: flex-start;
  border-radius: 12px; padding: 12px 14px; margin-bottom: 16px;
  font-size: .87rem; line-height: 1.55;
  background: var(--tint-red); color: #9F1239;
  border: 1px solid rgba(224, 65, 91, .25);
}
.p2w-alert.show { display: flex; }
.p2w-alert.warn { background: var(--tint-amber); color: #92400E; border-color: rgba(245, 158, 11, .3); }
.p2w-alert .micon { width: 17px; height: 17px; flex-shrink: 0; margin-top: 2px; }
[data-theme="dark"] .p2w-alert      { color: #FDA4AF; }
[data-theme="dark"] .p2w-alert.warn { color: #FCD34D; }

.p2w-stage {
  display: none;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: clamp(14px, 3vw, 30px);
  overflow-x: auto;
}
.p2w-stage.show { display: block; }
.p2w-stage-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 14px;
}
.p2w-stage-head h3 { font-size: .84rem; font-weight: 700; color: var(--heading); margin: 0; }
.p2w-stage-head p  { font-size: .78rem; color: var(--muted); margin: 0; }

.p2w-sheet-wrap { display: flex; justify-content: center; }
.p2w-sheet { transform-origin: top center; transition: transform .15s ease; }

.p2w-page {
  width: 794px;
  min-height: 400px;
  padding: 96px;
  box-sizing: border-box;
  background: #ffffff;
  color: #111827;
  font-family: Calibri, 'Segoe UI', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  box-shadow: 0 6px 26px rgba(15, 23, 42, .16);
  outline: none;
}
.p2w-page:focus-visible { box-shadow: 0 0 0 2px var(--primary), 0 6px 26px rgba(15, 23, 42, .16); }

.p2w-page > :first-child { margin-top: 0; }
.p2w-page > :last-child  { margin-bottom: 0; }
.p2w-page p { margin: 0 0 .7em; }
.p2w-page h1 { font-size: 1.7em; margin: .9em 0 .4em; font-weight: 700; }
.p2w-page h2 { font-size: 1.4em; margin: .9em 0 .35em; font-weight: 700; }
.p2w-page h3 { font-size: 1.2em; margin: .8em 0 .3em; font-weight: 700; }
.p2w-page ul, .p2w-page ol { margin: .4em 0 .8em; padding-left: 2em; }
.p2w-page ul { list-style: disc; }
.p2w-page ol { list-style: decimal; }
.p2w-page li { margin-bottom: .25em; }
.p2w-page img { max-width: 100%; height: auto; display: block; margin: 0 auto; }
.p2w-page strong { font-weight: 700; }

.p2w-break {
  height: 0;
  margin: 26px 0;
  border-top: 2px dashed #CBD5E1;
  position: relative;
  user-select: none;
}
.p2w-break::after {
  content: 'page break';
  position: absolute; top: -9px; left: 50%; transform: translateX(-50%);
  background: #ffffff; color: #94A3B8;
  font-size: 11px; letter-spacing: .4px; padding: 0 8px;
  font-family: system-ui, sans-serif;
}

.ws-btn[disabled] { opacity: .5; pointer-events: none; }
.p2w-hidden { display: none !important; }

@media (max-width: 900px) {
  .p2w-stage { padding: 12px; }
}
