*, *::before, *::after { box-sizing: border-box; }

.ptw-wrapper { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; max-width: 860px; margin: 0 auto; padding: 20px 16px 40px; color: #1e293b; }

.ptw-header { text-align: center; margin-bottom: 28px; }
.ptw-badge { display: inline-block; background: #e0f2fe; color: #0369a1; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 4px 14px; border-radius: 20px; margin-bottom: 10px; }
.ptw-title { font-size: 2rem; font-weight: 800; color: #0f172a !important; margin: 0 0 8px; }
.ptw-subtitle { font-size: 0.95rem; color: #64748b; margin: 0; }

.ptw-layout { display: flex; flex-direction: column; gap: 20px; }

.ptw-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 24px; box-shadow: 0 2px 12px rgba(0,0,0,.06); }

.ptw-quick-section { margin-bottom: 20px; }
.ptw-quick-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #94a3b8; margin: 0 0 10px; }
.ptw-info-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.ptw-pill { display: inline-flex; align-items: center; gap: 4px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 20px; padding: 4px 12px; font-size: 12px; font-weight: 600; color: #475569; }
.ptw-pill .dashicons { font-size: 14px; width: 14px; height: 14px; color: #0ea5e9; }

.ptw-step { margin-bottom: 16px; }
.ptw-step-label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: #374151; margin-bottom: 10px; }
.ptw-step-num { width: 24px; height: 24px; background: #0ea5e9; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; flex-shrink: 0; }

.ptw-upload-zone { border: 2px dashed #93c5fd; border-radius: 12px; background: #f0f9ff; padding: 40px 20px; text-align: center; cursor: pointer; transition: all .2s; }
.ptw-upload-zone:hover, .ptw-drag-over { border-color: #0ea5e9; background: #e0f2fe; }
.ptw-upload-icon .dashicons { font-size: 52px; width: 52px; height: 52px; color: #0ea5e9; display: block; margin: 0 auto 10px; }
.ptw-upload-text strong { color: #0ea5e9; font-size: 15px; }
.ptw-upload-text span { font-size: 13px; color: #94a3b8; }

.ptw-file-preview { display: flex; align-items: center; gap: 12px; background: #f0f9ff; border: 1px solid #bae6fd; border-radius: 10px; padding: 12px 14px; margin-top: 12px; }
.ptw-file-icon .dashicons { font-size: 28px; width: 28px; height: 28px; color: #0ea5e9; }
.ptw-file-info { flex: 1; min-width: 0; }
.ptw-file-name { font-size: 13px; font-weight: 700; color: #0369a1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ptw-file-size { font-size: 12px; color: #0ea5e9; margin-top: 2px; }
.ptw-remove-btn { background: #fee2e2; border: none; border-radius: 6px; width: 28px; height: 28px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background .2s; }
.ptw-remove-btn:hover { background: #fecaca; }
.ptw-remove-btn .dashicons { font-size: 16px; width: 16px; height: 16px; color: #dc2626; }

.ptw-field-error { color: #dc2626; font-size: 13px; font-weight: 600; margin: 8px 0 0; background: #fef2f2; border: 1px solid #fecaca; padding: 8px 12px; border-radius: 8px; }

.ptw-calc-btn { width: 100%; padding: 14px; background: #0ea5e9; color: #fff; border: none; border-radius: 10px; font-size: 15px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; transition: all .2s; }
.ptw-calc-btn:hover { background: #0284c7; transform: translateY(-2px); box-shadow: 0 10px 30px rgba(14,165,233,0.4); }
.ptw-calc-btn .dashicons { font-size: 18px; width: 18px; height: 18px; }

.ptw-progress { margin-top: 16px; }
.ptw-progress-bar { background: #e2e8f0; border-radius: 99px; height: 8px; overflow: hidden; }
.ptw-progress-fill { height: 100%; background: linear-gradient(90deg, #0ea5e9, #38bdf8); border-radius: 99px; width: 0; transition: width .4s ease; }
.ptw-progress-text { text-align: center; font-size: 13px; color: #64748b; margin-top: 8px; }

.ptw-result-card { border-color: #bae6fd; }
.ptw-result-hero { text-align: center; margin-bottom: 20px; }
.ptw-result-filename { font-size: 13px; color: #64748b; margin-top: 4px; }

.ptw-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 24px; }
.ptw-feature { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 18px 14px; text-align: center; }
.ptw-feat-icon .dashicons { font-size: 32px; width: 32px; height: 32px; color: #0ea5e9; display: block; margin: 0 auto 8px; }
.ptw-feat-title { font-size: 13px; font-weight: 700; color: #0f172a; margin-bottom: 4px; }
.ptw-feat-desc { font-size: 12px; color: #64748b; line-height: 1.5; }

.ptw-wrapper .dashicons { font-family: dashicons !important; speak: never; font-style: normal; font-weight: 400; font-variant: normal; text-transform: none; line-height: 1; -webkit-font-smoothing: antialiased; }

@media (max-width: 600px) {
  .ptw-features { grid-template-columns: repeat(2, 1fr); }
  .ptw-title { font-size: 1.5rem; }
}
