.jpaf-wrapper {
	max-width: 640px;
	margin: 1.5rem auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: #1f2937;
}

.jpaf-form {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 1.25rem;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.jpaf-row {
	margin-bottom: 0.85rem;
}

.jpaf-row label {
	display: block;
	font-size: 0.85rem;
	font-weight: 600;
	color: #374151;
	margin-bottom: 0.3rem;
}

.jpaf-row input[type="text"] {
	width: 100%;
	box-sizing: border-box;
	padding: 0.55rem 0.7rem;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 0.95rem;
	background: #fff;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.jpaf-row input[type="text"]:focus {
	outline: none;
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.jpaf-zip-row {
	display: flex;
	gap: 0.5rem;
}

.jpaf-zip-row input {
	flex: 1;
}

.jpaf-zip-row button,
.jpaf-convert-btn {
	background: #2563eb;
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 0.55rem 1rem;
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s;
	white-space: nowrap;
}

.jpaf-zip-row button:hover,
.jpaf-convert-btn:hover {
	background: #1d4ed8;
}

.jpaf-zip-row button:disabled,
.jpaf-convert-btn:disabled {
	background: #93c5fd;
	cursor: not-allowed;
}

.jpaf-convert-btn {
	width: 100%;
	padding: 0.7rem;
	margin-top: 0.5rem;
	font-size: 1rem;
}

.jpaf-options {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	margin: 0.85rem 0;
	padding: 0.7rem;
	background: #f9fafb;
	border-radius: 8px;
	font-size: 0.9rem;
}

.jpaf-options label {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	cursor: pointer;
	color: #374151;
}

.jpaf-results {
	margin-top: 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

.jpaf-result-block {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 1rem;
}

.jpaf-result-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 0.5rem;
}

.jpaf-result-header h4 {
	margin: 0;
	font-size: 0.9rem;
	font-weight: 700;
	color: #6b7280;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.jpaf-copy {
	background: #f3f4f6;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	padding: 0.3rem 0.7rem;
	font-size: 0.8rem;
	font-weight: 600;
	color: #374151;
	cursor: pointer;
	transition: background 0.15s;
}

.jpaf-copy:hover {
	background: #e5e7eb;
}

.jpaf-result-block pre {
	margin: 0;
	padding: 0.7rem;
	background: #f9fafb;
	border-radius: 8px;
	font-family: ui-monospace, SFMono-Regular, "Menlo", "Monaco", monospace;
	font-size: 0.92rem;
	line-height: 1.5;
	white-space: pre-wrap;
	word-break: break-word;
	color: #111827;
}

.jpaf-status {
	margin-top: 0.7rem;
	font-size: 0.88rem;
	min-height: 1.2em;
	color: #6b7280;
}

.jpaf-status[data-type="error"] {
	color: #dc2626;
}

.jpaf-status[data-type="success"] {
	color: #059669;
}
