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

.w2p-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;
}
.w2p-drop:hover { border-color: var(--primary); background: var(--tint-purple); }
.w2p-drop.over  { border-color: var(--primary); background: var(--tint-purple); transform: scale(1.005); }
.w2p-drop:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

.w2p-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);
}
.w2p-drop-ic .micon { width: 28px; height: 28px; color: var(--primary); }
.w2p-drop h2 { font-size: 1.05rem; font-weight: 600; color: var(--heading); margin-bottom: 6px; }
.w2p-drop p  { font-size: .88rem; color: var(--muted); margin: 0; }
.w2p-drop .w2p-browse { color: var(--primary); font-weight: 600; text-decoration: underline; }
.w2p-drop-note {
  margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
}
.w2p-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);
}

.w2p-file {
  display: flex; align-items: center; gap: 14px;
  border: 1px solid var(--border); border-radius: 14px;
  background: var(--bg-soft); padding: 12px 14px;
}
.w2p-file-ic {
  width: 42px; height: 42px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px; background: var(--tint-blue);
}
.w2p-file-ic .micon { width: 20px; height: 20px; color: #2563EB; }
.w2p-file-meta { min-width: 0; flex: 1; }
.w2p-file-name {
  display: block; font-weight: 600; color: var(--heading); font-size: .92rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.w2p-file-sub { font-size: .78rem; color: var(--muted); }
.w2p-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;
}
.w2p-file-x:hover { color: #E0415B; border-color: #E0415B; }
.w2p-file-x .micon { width: 15px; height: 15px; }

.w2p-opts {
  display: grid; gap: 12px; margin: 18px 0;
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
}
.w2p-opt label {
  display: block; font-size: .72rem; font-weight: 700; letter-spacing: .4px;
  text-transform: uppercase; color: var(--muted); margin-bottom: 5px;
}
.w2p-opt select,
.w2p-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;
}
.w2p-opt select:focus,
.w2p-opt input[type="text"]:focus { outline: none; border-color: var(--primary); }

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

.w2p-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);
}
.w2p-alert.show { display: flex; }
.w2p-alert.warn { background: var(--tint-amber); color: #92400E; border-color: rgba(245, 158, 11, .3); }
.w2p-alert .micon { width: 17px; height: 17px; flex-shrink: 0; margin-top: 2px; }
.w2p-alert b { font-weight: 700; }
[data-theme="dark"] .w2p-alert      { color: #FDA4AF; }
[data-theme="dark"] .w2p-alert.warn { color: #FCD34D; }

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

.w2p-sheet-wrap { display: flex; justify-content: center; }
.w2p-sheet {
  transform-origin: top center;
  transition: transform .15s ease;
}
.w2p-page {
  width: 794px;
  min-height: 400px;
  padding: 76px;
  box-sizing: border-box;
  background: #ffffff;
  color: #111827;
  font-family: 'Times New Roman', Times, serif;
  font-size: 16px;
  line-height: 1.55;
  box-shadow: 0 6px 26px rgba(15, 23, 42, .16);
  outline: none;
}
.w2p-page:focus-visible { box-shadow: 0 0 0 2px var(--primary), 0 6px 26px rgba(15, 23, 42, .16); }

.w2p-page > :first-child { margin-top: 0; }
.w2p-page > :last-child  { margin-bottom: 0; }
.w2p-page p { margin: 0 0 .8em; }
.w2p-page h1 { font-size: 1.9em; margin: .9em 0 .45em; font-weight: 700; }
.w2p-page h2 { font-size: 1.5em; margin: .9em 0 .4em;  font-weight: 700; }
.w2p-page h3 { font-size: 1.22em; margin: .85em 0 .35em; font-weight: 700; }
.w2p-page h4, .w2p-page h5, .w2p-page h6 { font-size: 1.06em; margin: .8em 0 .3em; font-weight: 700; }
.w2p-page ul, .w2p-page ol { margin: .5em 0 .9em; padding-left: 2em; }
.w2p-page ul { list-style: disc; }
.w2p-page ol { list-style: decimal; }
.w2p-page li { margin-bottom: .3em; }
.w2p-page a { color: #1D4ED8; text-decoration: underline; }
.w2p-page img { max-width: 100%; height: auto; }

.w2p-page table {
  border-collapse: collapse;
  width: 100%; max-width: 100%;
  margin: .7em 0 1em; font-size: .95em;
}
.w2p-page th, .w2p-page td {
  border: 1px solid #9CA3AF; padding: 6px 9px; vertical-align: top;
  word-break: break-word; overflow-wrap: anywhere;
}
.w2p-page th { background: #F3F4F6; font-weight: 700; text-align: left; }
.w2p-page blockquote {
  margin: .8em 0; padding: .2em 0 .2em 1em;
  border-left: 3px solid #D1D5DB; color: #4B5563;
}
.w2p-page pre {
  background: #F3F4F6; padding: 10px 12px; border-radius: 6px;
  font-family: Consolas, 'Courier New', monospace; font-size: .9em;
  white-space: pre-wrap; word-break: break-word;
}
.w2p-page hr { border: none; border-top: 1px solid #D1D5DB; margin: 1.2em 0; }
.w2p-page sup, .w2p-page sub { font-size: .72em; }

.w2p-page ol[id^="footnote"] { font-size: .85em; color: #4B5563; }

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

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