/* Input form */
.form-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.form-row label {
  width: 76px;
  flex-shrink: 0;
  font-size: 13px;
  color: #555;
}
.form-row input[type=text],
.form-row select {
  flex: 1;
  padding: 9px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  outline: none;
  transition: border-color 0.15s;
  min-width: 0;
}
#num-input {
  font-family: 'Consolas', 'D2Coding', monospace;
  letter-spacing: 0.3px;
}
.form-row input:focus,
.form-row select:focus { border-color: #0078d4; }

.conv-note { margin: 4px 0 0; font-size: 12px; color: #999; }

.pdf-status,
.conv-error {
  display: none;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 13px;
  word-break: break-word;
  background: #fdecea;
  border: 1px solid #f5c6c0;
  color: #c0392b;
}
.conv-error.show { display: block; }

/* Result rows */
.res-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.res-label {
  width: 76px;
  flex-shrink: 0;
  font-size: 13px;
  color: #0078d4;
  font-weight: 700;
}
.res-label select {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #cfe0f0;
  border-radius: 6px;
  font-size: 12px;
  font-family: inherit;
  color: #0078d4;
  font-weight: 700;
  background: #f8fbff;
  cursor: pointer;
  outline: none;
}
.res-val {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid #e6e6e6;
  border-radius: 6px;
  background: #fafafa;
  font-family: 'Consolas', 'D2Coding', monospace;
  font-size: 14px;
  color: #1a1a1a;
  word-break: break-all;
  outline: none;
}
.res-val:focus { border-color: #0078d4; background: #fff; }
.btn-copy {
  flex-shrink: 0;
  padding: 9px 14px;
  background: #fff;
  color: #0078d4;
  border: 1px solid #0078d4;
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-copy:hover { background: #e8f2fc; }
.btn-copy.copied { background: #107c10; border-color: #107c10; color: #fff; }
